.container-narrow{max-width:1100px}
.block-title{font-weight:700;letter-spacing:.02em;margin:0 0 .5rem 0}
.card{border-radius:.5rem}
.toolbar-col .icon{margin-right:.5rem}

/* KPI */
.kpi{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.kpi .item{border:1px solid rgba(0,0,0,.08);border-radius:.5rem;padding:.6rem .8rem;background:#f8fafc}

/* Chips */
.chip{display:inline-block;border:1px solid rgba(0,0,0,.12);border-radius:999px;padding:.25rem .6rem;background:#fff;font-size:.9rem}

/* Lists/Dividers */
.bullet li+li{margin-top:.35rem}
.divider{height:1px;background:rgba(0,0,0,.08)}

/* Flags */
.flag-svg{display:inline-block;width:1.2em;height:.9em;margin-right:.35em;border-radius:2px;vertical-align:-.12em;box-shadow:0 0 0 1px rgba(0,0,0,.08);background-size:100% 100%;background-repeat:no-repeat}
.flag-de{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'><rect width='5' height='3' fill='%23000'/><rect width='5' height='2' y='1' fill='%23dd0000'/><rect width='5' height='1' y='2' fill='%23ffce00'/></svg>")}
.flag-gb{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'><rect width='60' height='30' fill='%23012a6b'/><g stroke='%23fff' stroke-width='6'><path d='M0 0 L60 30'/><path d='M60 0 L0 30'/></g><g stroke='%23c8102e' stroke-width='4'><path d='M0 0 L60 30'/><path d='M60 0 L0 30'/></g><g fill='%23fff'><rect x='25' y='0' width='10' height='30'/><rect x='0' y='10' width='60' height='10'/></g><g fill='%23c8102e'><rect x='26.5' y='0' width='7' height='30'/><rect x='0' y='11.5' width='60' height='7'/></g></svg>");background-size:100% 100%;background-repeat:no-repeat}

/* Portrait */
.portrait{max-width:280px}
.portrait img{display:block;width:100%;height:auto;border-radius:.75rem;border:1px solid rgba(0,0,0,.08)}

/* Modal */
.modal2{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.30);z-index:1050}
.modal2.is-open{display:flex}
.modal2__panel{width:100%;max-width:620px;background:#E9EEF4;color:#1c2430;border-radius:.5rem;border:1px solid rgba(0,0,0,.06);box-shadow:0 12px 36px rgba(0,0,0,.35);display:flex;flex-direction:column;max-height:96vh;min-height:auto}
.modal2__header,.modal2__footer{padding:12px 16px;border-bottom:1px solid rgba(0,0,0,.06);display:flex;align-items:center;justify-content:space-between;position:relative}
.modal2__footer{border-top:1px solid rgba(0,0,0,.06);border-bottom:0;padding:12px 16px 14px;gap:12px;justify-content:flex-end}
.modal2__title{margin:0 0 .4rem;font-size:1.1rem}
.modal2__body{padding:18px 16px 10px;overflow:auto;max-height:72vh}
.modal2__x{position:absolute;top:10px;right:12px;background:transparent;border:0;padding:2px 6px;color:#4b5a6a;font-size:22px;line-height:1;cursor:pointer}
.modal2__x:hover{color:#0e1217}
.modal2__x:focus{outline:2px solid rgba(61,217,182,.45);outline-offset:2px}

/* Modal flash effects */
@keyframes flashDanger{0%{background:#E9EEF4}10%{background:#ffd7d7}50%{background:#ffcccc}100%{background:#E9EEF4}}
.modal2__panel.auth-fail{animation:flashDanger 1s ease}

@keyframes fieldFlashBorder{0%{box-shadow:0 0 0 0 rgba(220,53,69,0);border-color:#ced4da}15%{box-shadow:0 0 0 3px rgba(220,53,69,.35);border-color:#dc3545}50%{box-shadow:0 0 0 2px rgba(220,53,69,.25);border-color:#e35d6a}100%{box-shadow:0 0 0 0 rgba(220,53,69,0);border-color:#ced4da}}
.field-fail{animation:fieldFlashBorder 1s ease}

/* Password toggle + hide native reveal */
.pw-wrap{position:relative}
.pw-wrap .form-control{padding-right:2.4rem}
.pw-toggle{position:absolute;top:50%;right:10px;transform:translateY(-50%);background:transparent;border:0;padding:0;font-size:18px;line-height:1;cursor:pointer;color:#4b5a6a;z-index:1}
.pw-toggle:hover{color:#0e1217}
.pw-toggle:focus{outline:2px solid rgba(61,217,182,.45);outline-offset:2px}
.pw-toggle.active{color:#0d6efd}
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear{display:none;width:0;height:0}
input[type="password"]::-webkit-contacts-auto-fill-button{visibility:hidden;display:none !important;pointer-events:none;position:absolute;right:0}

/* Modal buttons */
.modal2__footer .btn{width:200px}
@media (max-width:540px){.modal2__footer{flex-direction:column-reverse;align-items:stretch}.modal2__footer .btn{width:100%}}

/* Print */
@media print{.portrait{max-width:220px}.chip,.kpi .item{border-color:#ccc;background:#fff}}

/* Utilities + выравнивание контента */
.d-none{display:none!important}
.card p,.card .text-muted,.card ul li{text-align:justify;text-justify:inter-word;hyphens:auto;overflow-wrap:anywhere}
.role h3{margin-bottom:.4rem}

/* Выровнять низ левого столбца */
.cv-left{display:flex;flex-direction:column}
.cv-left>.card{flex:0 0 auto}
.cv-left>.push-bottom{margin-top:auto;margin-bottom:0}

