  @import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;1,14..32,400&display=swap');

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg: #f4f5f8;
    --surface: #ffffff;
    --surface-2: #fafbfc;
    --hairline: #e7eaf0;
    --hairline-strong: #d4d9e2;

    --text: #0b1424;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-dim: #94a3b8;

    --gold: #a37c2f;
    --plan: #cfd6e1;
    --plan-strong: #94a3b8;
    --fact: #1e3a5f;
    --fact-bright: #2a4f80;
    --fact-light: #6b8cb8;
    --coral: #c2410c;
    --sage: #15803d;
    --sage-light: #5db98a;
    --amber: #b45309;

    --radius: 14px;
    --radius-sm: 8px;

    --page-max-width: 1600px;
    --page-gutter: clamp(20px, 4vw, 48px);
  }

  @media (max-width: 1100px) {
    :root { --page-gutter: clamp(16px, 4vw, 32px); }
  }
  @media (max-width: 680px) {
    :root { --page-gutter: 16px; }
  }

  body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    padding: 0;
    min-height: 100vh;
    min-width: 1180px;
    font-feature-settings: "ss01", "tnum";
    -webkit-font-smoothing: antialiased;
  }

  /* ── SITE HEADER (shadcn-inspired) ── */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    border-bottom: 1px solid var(--hairline);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .site-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 56px;
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    width: 100%;
    min-width: 0;
  }
  .site-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 180px;
    padding-right: 16px;
    border-right: 1px solid var(--hairline);
  }
  .app-logo {
    display: block;
    height: auto;
    object-fit: contain;
  }
  .app-logo-header {
    width: auto;
    height: 44px;
    max-width: 120px;
    border-radius: 4px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--text);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.04em;
  }
  .brand-copy { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; }
  .brand-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
  }
  .brand-period {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
  }

  .main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    padding: 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }

  .nav-item, .role-btn {
    position: relative;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .nav-item:hover, .role-btn:hover {
    color: var(--text);
    background: rgba(11, 20, 36, 0.04);
  }
  .nav-item.active, .role-btn.active {
    color: var(--text);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--hairline), 0 1px 2px rgba(11, 20, 36, 0.04);
  }
  .nav-item[hidden], .role-btn[hidden] { display: none; }

  .site-header-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
  }
  .header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 4px;
    border-radius: 10px;
    border: 1px solid var(--hairline);
    background: var(--surface-2);
  }
  .header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2a4f80, var(--fact));
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    flex-shrink: 0;
  }

  /* legacy aliases */
  .topbar { display: contents; }
  .topbar-left, .topbar-right, .topbar-user, .role-switcher { display: contents; }
  .brand, .brand-kpi, .topbar-sep, .topbar-meta { display: none; }
  .role-btn .role-name, .role-btn .rb-main { display: none; }
  .user-info { display: flex; flex-direction: column; gap: 1px; text-align: right; }
  .user-name { font-size: 12px; font-weight: 700; color: var(--text); }
  .user-pos { font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
  .user-logout {
    font-family: inherit; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text); background: var(--surface);
    border: 1px solid var(--text-muted); border-radius: 6px;
    padding: 8px 13px; cursor: pointer; transition: 0.15s;
    display: inline-flex; align-items: center; gap: 7px;
  }
  .user-logout:hover { color: #fff; border-color: var(--text); background: var(--text); }
  .user-logout::before {
    content: ''; width: 12px; height: 12px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/><polyline points='16 17 21 12 16 7'/><line x1='21' y1='12' x2='9' y2='12'/></svg>") no-repeat center / contain;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/><polyline points='16 17 21 12 16 7'/><line x1='21' y1='12' x2='9' y2='12'/></svg>") no-repeat center / contain;
  }

  /* Индикатор «новые данные» — спокойная точка */
  .nav-signal {
    position: absolute; top: 7px; right: 7px;
    width: 8px; height: 8px;
    display: inline-block;
    border-radius: 999px;
    background: var(--gold);
    border: 1.5px solid var(--surface);
    box-shadow: 0 0 0 1px rgba(163, 124, 47, 0.22);
    pointer-events: none;
  }
  .nav-signal[hidden] { display: none; }
  .nav-signal-count {
    position: absolute; top: -7px; right: -10px;
    min-width: 15px; height: 15px; padding: 0 4px;
    border-radius: 999px; font-size: 8px; font-weight: 800; line-height: 15px; text-align: center;
    background: var(--text); color: #fff;
    border: 1.5px solid var(--surface);
    box-shadow: 0 1px 3px rgba(11, 20, 36, 0.12);
  }
  .nav-signal-count:empty { display: none; }
  .role-badge { display: none !important; }

  /* ── ЭКРАН ВХОДА — классическая карточка по центру ─────────────── */
  .login-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: #eceef2;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
    overflow: auto;
    color: var(--text);
  }
  .login-overlay[hidden] { display: none; }

  .app-logo-corner {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 2;
    line-height: 0;
  }
  .app-logo-corner img {
    width: auto;
    height: 48px;
    max-width: 120px;
    border-radius: 4px;
    display: block;
  }

  .login-card {
    width: 100%; max-width: 400px;
    background: #fff;
    border: 1px solid rgba(11, 20, 36, 0.08);
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(11, 20, 36, 0.08), 0 1px 3px rgba(11, 20, 36, 0.04);
    padding: 40px 36px 28px;
    display: flex; flex-direction: column; gap: 28px;
  }

  .login-card-header {
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
    gap: 10px;
  }
  .app-logo-login {
    width: min(200px, 100%);
    height: auto;
    max-height: 96px;
    border-radius: 4px;
  }
  .login-hint {
    margin: 0;
    font-size: 13px; font-weight: 500;
    color: #6b7280;
    line-height: 1.45;
  }
  .login-hint-secondary {
    font-size: 13px; font-weight: 400;
    color: #9ca3af;
  }

  .login-form {
    display: flex; flex-direction: column; gap: 16px;
  }
  .login-field { display: flex; flex-direction: column; gap: 6px; }
  .login-field-label {
    font-size: 13px; font-weight: 600;
    color: #374151;
  }
  .login-field-input {
    width: 100%; box-sizing: border-box;
    font-family: inherit;
    font-size: 15px; font-weight: 400;
    color: var(--text);
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 11px 12px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .login-field-input::placeholder { color: #9ca3af; }
  .login-field-input:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.12);
  }

  .login-forgot-row {
    display: flex; justify-content: flex-end;
    margin-top: -6px;
  }
  .login-forgot-btn {
    font-family: inherit;
    font-size: 13px; font-weight: 500;
    color: #6b7280;
    background: none; border: none; padding: 0;
    cursor: pointer;
    transition: color 0.15s;
  }
  .login-forgot-btn:hover { color: var(--text); text-decoration: underline; }

  .login-submit-btn {
    width: 100%;
    font-family: inherit;
    font-size: 15px; font-weight: 600;
    color: #fff;
    background: #1f2937;
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
    margin-top: 4px;
  }
  .login-submit-btn:hover { background: #111827; }
  .login-submit-btn:disabled { opacity: 0.55; pointer-events: none; }

  .login-error {
    margin: 0; text-align: center;
    font-size: 13px; font-weight: 500;
    color: #b42318;
    line-height: 1.4;
  }
  .login-error[hidden] { display: none; }

  .login-card-footer {
    text-align: center;
    padding-top: 4px;
    border-top: 1px solid #f3f4f6;
  }
  .login-foot-meta {
    color: #9ca3af;
    font-size: 12px; font-weight: 400;
  }

  @media (max-width: 480px) {
    .login-card { padding: 32px 24px 24px; }
    .app-logo-corner { display: none; }
    .app-logo-login { width: min(200px, 100%); max-height: 88px; }
    .app-logo-header { height: 40px; max-width: 100px; }
  }

  /* Плитки в стиле твоего сайта — разделители, без рамок */
  .login-tiles {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 2px;
    max-width: 1100px;
    border-top: 1px solid rgba(11,20,36,0.18);
  }
  .login-tile {
    position: relative;
    font-family: inherit;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(11,20,36,0.12);
    border-radius: 0;
    padding: 32px 36px 32px 0;
    text-align: left; cursor: pointer;
    transition: all 0.22s ease;
    display: flex; flex-direction: column;
    overflow: hidden;
  }
  .login-tile:not(:first-child) { padding-left: 36px; }
  .login-tile:last-child { border-right: none; }
  .login-tile::before {
    content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
    background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s ease;
  }
  .login-tile:hover::before { transform: scaleX(1); }
  .login-tile:hover .lt-arrow {
    color: var(--gold); transform: translateX(4px);
  }
  .login-tile:hover .login-tile-name { color: var(--text); }

  .lt-num {
    font-family: 'Inter', sans-serif; font-weight: 800;
    font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 28px;
  }
  .lt-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
  .login-tile .login-tile-name {
    font-family: 'Inter', sans-serif; font-size: clamp(22px, 2.4vw, 28px); font-weight: 500;
    letter-spacing: -0.018em; color: var(--text); line-height: 1.1;
  }
  .login-tile .login-tile-role {
    font-size: 9.5px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold); margin-top: 16px;
  }
  .login-tile .login-tile-desc {
    font-size: 12.5px; font-weight: 400; color: var(--text-muted);
    line-height: 1.5; margin-top: 10px;
  }
  .lt-arrow {
    margin-top: 28px;
    font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 400;
    color: var(--text-dim); transition: all 0.22s ease;
    align-self: flex-start;
  }

  /* ── ВЫБРАННЫЙ ТАЙЛ ── */
  .login-tile.selected::before { transform: scaleX(1); }
  .login-tile.selected .lt-arrow { color: var(--gold); }
  .login-tile.selected .login-tile-name { color: var(--text); }

  /* ── ФОРМА ВВОДА ПАРОЛЯ ── */
  .login-pw-form {
    display: flex; flex-direction: column; gap: 0;
    animation: login-pw-in 0.25s ease;
  }
  @keyframes login-pw-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);     }
  }
  .login-pw-form .login-section-label { margin-bottom: 10px; }
  .login-pw-who {
    font-family: 'Inter', sans-serif; font-weight: 500;
    font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.018em;
    color: var(--text); line-height: 1.1;
    margin-bottom: 20px;
  }
  .login-pw-row {
    display: flex; gap: 0; align-items: stretch;
    max-width: 480px;
    border-top: 1px solid rgba(11,20,36,0.18);
  }
  .login-pw-input {
    flex: 1;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(11,20,36,0.12);
    color: var(--text);
    font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500;
    padding: 18px 20px;
    outline: none;
    transition: background 0.15s;
    caret-color: var(--gold);
  }
  .login-pw-input::placeholder { color: var(--text-dim); font-weight: 400; }
  .login-pw-input:focus { background: rgba(163,124,47,0.04); }
  .login-pw-btn {
    background: transparent;
    border: none;
    color: var(--gold);
    font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 400;
    padding: 18px 28px;
    cursor: pointer;
    transition: all 0.22s ease;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .login-pw-btn:hover { color: var(--text); transform: translateX(4px); }
  .login-pw-btn:disabled { opacity: 0.4; pointer-events: none; }
  .login-pw-back {
    background: none; border: none; padding: 0;
    margin-top: 16px;
    font-family: 'Inter', sans-serif; font-size: 10px;
    font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--text-dim); cursor: pointer;
    transition: color 0.15s; align-self: flex-start;
  }
  .login-pw-back:hover { color: var(--text-secondary); }

  .login-foot-row { display: none; }

  /* ── ДОМАШНЯЯ СТРАНИЦА ИСПОЛНИТЕЛЯ («Мои показатели») ── */
  .exec-home {
    background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
    padding: 26px 28px 22px;
    box-shadow: 0 1px 2px rgba(11,20,36,0.04), 0 12px 32px -16px rgba(11,20,36,0.08);
    display: flex; flex-direction: column; gap: 18px;
  }
  .exec-home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
  .exec-home-title { font-family: 'Inter', sans-serif; font-size: 26px; font-weight: 500; letter-spacing: -0.015em; color: var(--text); }
  .exec-home-sub { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
  .exec-home-period-wrap {
    display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  }
  .exec-home-period-label {
    font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
  }
  .exec-home-period-select {
    font-family: inherit; font-size: 12px; font-weight: 700; color: var(--text);
    background: var(--surface); border: 1px solid rgba(163,124,47,0.35); border-radius: 10px;
    padding: 8px 12px; min-width: 148px; cursor: pointer;
    box-shadow: 0 1px 2px rgba(11,20,36,0.04);
  }
  .exec-home-period-select:focus { outline: 2px solid rgba(163,124,47,0.35); outline-offset: 1px; }

  .input-head-row {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  }
  .exec-form-period-badge {
    flex-shrink: 0; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gold); background: rgba(163,124,47,0.08); border: 1px solid rgba(163,124,47,0.25);
    padding: 6px 10px; border-radius: 999px; white-space: nowrap;
  }

  .field-label-compact {
    font-size: 8.5px !important; letter-spacing: 0.1em !important; line-height: 1.25;
    min-height: 26px; display: flex; align-items: flex-end;
  }
  .field-grid-2-tight { align-items: start; gap: 12px; }
  .registry-exec-fact-block .exec-date-input,
  .registry-exec-fact-block .reason-select {
    height: 38px; box-sizing: border-box; width: 100%;
  }
  .acts-saved-chips {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
  }
  .acts-saved-chip {
    font-family: inherit; text-align: left; cursor: pointer;
    border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--surface);
    padding: 6px 10px; max-width: 100%; transition: 0.12s;
  }
  .acts-saved-chip:hover { border-color: var(--gold); background: rgba(163,124,47,0.04); }
  .acts-saved-chip.active { border-color: var(--gold); background: rgba(163,124,47,0.08); box-shadow: inset 0 0 0 1px rgba(163,124,47,0.2); }
  .acts-saved-chip-name { display: block; font-size: 11px; font-weight: 700; color: var(--text); line-height: 1.25; }
  .acts-saved-chip-meta { display: block; font-size: 9.5px; font-weight: 600; color: var(--text-muted); margin-top: 2px; }

  .exec-home-tiles { display: grid; grid-template-columns: 1fr; gap: 10px; }

  .exec-tile {
    font-family: inherit;
    display: grid;
    grid-template-columns: 200px 1fr 220px 130px;
    gap: 18px; align-items: center;
    padding: 18px 22px;
    background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 10px;
    text-align: left; cursor: pointer; transition: 0.15s;
  }
  .exec-tile:hover {
    border-color: var(--gold);
    box-shadow: 0 1px 2px rgba(11,20,36,0.04), 0 8px 20px -10px rgba(163,124,47,0.30);
  }
  .et-name { font-family: 'Inter', sans-serif; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; color: var(--text); }
  .et-sub { font-size: 9.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }
  .et-plan { display: flex; flex-direction: column; gap: 2px; }
  .et-plan-label { font-size: 9.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
  .et-plan-val { font-size: 16px; font-weight: 700; color: var(--text); }
  .et-status { display: inline-flex; align-items: center; gap: 8px; }
  .et-status-dot { width: 8px; height: 8px; border-radius: 50%; }
  .et-status.pending .et-status-dot { background: var(--coral); }
  .et-status.filled  .et-status-dot { background: var(--sage); }
  .et-status-text { font-size: 11.5px; font-weight: 700; color: var(--text); }
  .et-status-when { font-size: 10px; font-weight: 600; color: var(--text-muted); margin-top: 2px; display: block; }
  .et-cta {
    text-align: right;
    font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold);
  }
  .et-cta::after { content: ' →'; }

  .btn-back {
    font-family: inherit; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted); background: var(--surface);
    border: 1px solid var(--hairline-strong); border-radius: 8px;
    padding: 10px 16px 10px 14px; cursor: pointer;
    align-self: flex-start; margin-bottom: 4px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: 0.15s;
    box-shadow: 0 1px 2px rgba(11,20,36,0.03);
  }
  .btn-back:hover {
    color: var(--text); border-color: var(--text-muted);
    transform: translateX(-2px);
  }
  .btn-back .bb-arrow {
    font-size: 14px; font-weight: 700; line-height: 1;
    color: var(--gold);
  }
  .exec-form-wrap { display: flex; flex-direction: column; gap: 12px; }
  .exec-form-wrap[hidden] { display: none; }

  /* ── ДОМАШНЯЯ СТРАНИЦА РУКОВОДИТЕЛЯ (плитки KPI) ── */
  #view-manager.view {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
    padding-top: 16px;
    padding-bottom: 20px;
  }
  .mgr-home {
    display: flex; flex-direction: column; gap: 12px;
    max-width: 100%;
    margin: 0;
    width: 100%;
    padding: 0;
  }
  .mgr-home-head { padding: 0 2px 4px; }
  .mgr-home-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(30px, 3.2vw, 38px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--text);
  }
  .mgr-home-sub { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-top: 6px; }
  .mgr-home-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, 188px);
    gap: 12px;
    justify-content: start;
    align-items: stretch;
    width: 100%;
  }
  .mgr-tile {
    font-family: inherit;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 188px;
    max-width: 188px;
    min-height: 0;
    padding: 15px 14px 13px;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(11, 20, 36, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  }
  .mgr-tile::before { display: none; }
  .mgr-tile:hover {
    border-color: #d4dbe4;
    box-shadow: 0 6px 18px rgba(11, 20, 36, 0.07);
    transform: translateY(-1px);
  }
  .mgr-tile-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
  }
  .mgr-tile-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .mgr-tile-metric {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
  }
  .mgr-tile-icon-wrap {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8ecf1;
    border: none;
    color: #64748b;
    margin-bottom: 0;
  }
  .mgr-tile-icon { width: 13px; height: 13px; opacity: 0.85; }
  .mgr-tile-title {
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: #0b1424;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mgr-tile-desc {
    font-size: 9px;
    font-weight: 400;
    line-height: 1.45;
    color: #94a3b8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mgr-tile-value-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: nowrap;
    margin: 0;
  }
  .mgr-tile-fact {
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #0b1424;
  }
  .mgr-tile-fact.no-data {
    font-size: 18px;
    color: #94a3b8;
    font-style: italic;
    font-weight: 500;
  }
  .mgr-tile-unit {
    font-size: 9px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .mgr-tile-plan-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    margin: 0;
    min-height: 0;
  }
  .mgr-tile-plan-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
  }
  .mgr-tile-plan-val {
    font-size: 9px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.3;
  }
  .mgr-tile-plan-val strong {
    font-weight: 600;
    color: #475569;
  }
  .mgr-tile-plan-lbl {
    font-size: 8px;
    font-weight: 400;
    color: #b0bac7;
    line-height: 1.25;
  }
  .mgr-tile-plan-text {
    font-size: 10px;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.3;
    min-width: 0;
  }
  .mgr-tile-plan-text strong {
    font-weight: 600;
    color: #64748b;
  }
  .mgr-tile-track {
    height: 5px;
    border-radius: 99px;
    background: #edf0f4;
    overflow: hidden;
    margin-top: auto;
  }
  .mgr-tile-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .mgr-tile-fill.achieved { background: #1e3a2f; }
  .mgr-tile-fill.pending { background: #9a4a32; }
  .mgr-tile-fill.no-data { background: #cbd5e1; width: 0 !important; }
  .mgr-tile-pct {
    font-size: 9px;
    font-weight: 500;
    color: #94a3b8;
    flex-shrink: 0;
    letter-spacing: 0;
    text-transform: none;
    padding-top: 0;
  }
  .mgr-tile--achieved .mgr-tile-pct { color: #64748b; }
  .mgr-tile--pending .mgr-tile-pct { color: #9a4a32; }
  /* legacy selectors — старая разметка плиток */
  .mgr-tile-head-main,
  .mgr-tile-meta,
  .mgr-tile-sub,
  .mgr-tile-status,
  .mgr-tile-mid,
  .mgr-tile-fact-row,
  .mgr-tile-plan,
  .mgr-tile-foot,
  .mgr-tile-executor { display: none; }

  .mgr-detail { display: flex; flex-direction: column; }
  .mgr-detail[hidden] { display: none; }
  .mgr-detail .strip { min-height: 580px; margin-top: 0; }

  /* Персонал — drill-down (не плитка) */
  .pers-person {
    display: inline-flex;
    width: 14px;
    height: 18px;
    flex-shrink: 0;
  }
  .pers-person-svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
  }
  .pers-person--hired { color: #1e3a5f; }
  .pers-person--fired { color: #9b2c2c; }
  .pers-flow-item.hired { color: #1e3a5f; }
  .pers-flow-item.fired { color: #9b2c2c; }
  .pers-metric-compact .pers-mini-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
  }
  .pers-dynamics {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px 18px;
    margin-bottom: 14px;
  }
  .pers-dynamics-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: 0.01em;
  }
  .pers-dynamics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .pers-dynamics-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }
  .pers-dynamics-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .pers-dynamics-label.hired { color: #1e3a5f; }
  .pers-dynamics-label.fired { color: #9b2c2c; }
  .pers-dynamics-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 36px;
    align-items: flex-end;
  }
  .pers-dynamics-icons .pers-person {
    width: 22px;
    height: 30px;
  }
  .pers-dynamics-count {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .pers-dynamics-count.hired { color: #1e3a5f; }
  .pers-dynamics-count.fired { color: #9b2c2c; }
  .pers-dynamics-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
  }
  .pers-dynamics-foot strong { color: var(--text); }
  .pers-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    margin-bottom: 10px;
  }
  .pers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
  }
  .pers-table th,
  .pers-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eef1f5;
  }
  .pers-table th {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: #f8fafc;
  }
  .pers-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
  .pers-table td.hired { color: #1e3a5f; }
  .pers-table td.fired { color: #9b2c2c; }
  .pers-table tr.pers-row-current td { background: rgba(163, 124, 47, 0.06); }
  @media (max-width: 680px) {
    .pers-dynamics-grid { grid-template-columns: 1fr; }
    .pers-dynamics-count { font-size: 34px; }
  }

  .mgr-home[hidden] { display: none !important; }

  @media (max-width: 1100px) {
    .mgr-home-tiles {
      grid-template-columns: repeat(auto-fill, minmax(170px, 188px));
      justify-content: start;
    }
  }
  @media (max-width: 680px) {
    .mgr-home-tiles {
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .mgr-tile {
      width: 100%;
      max-width: none;
    }
    .mgr-tile { padding: 14px 14px 12px; }
  }

  @media (max-width: 900px) {
    .exec-tile { grid-template-columns: 1fr; gap: 8px; }
    .et-cta { text-align: left; }
  }

  .view { display: flex; flex-direction: column; gap: 18px; padding: 24px var(--page-gutter) 32px; max-width: var(--page-max-width); margin: 0 auto; width: 100%; }
  .view[hidden] { display: none; }

  /* ── STRIP ── */
  .strip {
    background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
    overflow: hidden; display: grid; position: relative;
    box-shadow: 0 1px 2px rgba(11,20,36,0.04), 0 12px 32px -16px rgba(11,20,36,0.08);
    min-height: 580px;
  }
  .strip.two-col  { grid-template-columns: 420px 1fr; }
  .strip.three-col { grid-template-columns: 380px 300px 1fr; }
  .strip::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(163,124,47,0.45) 18%, rgba(163,124,47,0.55) 30%, rgba(163,124,47,0.18) 60%, transparent 100%);
    z-index: 1;
  }

  /* ── METRIC CARD ── */
  .metric-card {
    padding: 28px 28px 22px; border-right: 1px solid var(--hairline);
    display: flex; flex-direction: column; gap: 22px;
  }
  .metric-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    padding-bottom: 18px; border-bottom: 1px solid var(--hairline);
  }
  .metric-title { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 22px; letter-spacing: -0.015em; color: var(--text); line-height: 1.1; }
  .metric-subtitle { font-size: 9.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-top: 5px; }
  .metric-status {
    font-size: 9.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    padding: 5px 9px; border-radius: 4px; white-space: nowrap;
  }
  .metric-status.behind { border: 1px solid rgba(194,65,12,0.30); color: var(--coral); background: rgba(194,65,12,0.06); }
  .metric-status.ahead { border: 1px solid rgba(21,128,61,0.30); color: var(--sage); background: rgba(21,128,61,0.06); }
  .metric-status.on-track { border: 1px solid rgba(11,20,36,0.15); color: var(--text-secondary); background: rgba(11,20,36,0.03); }

  .period-toggle {
    display: inline-flex; background: rgba(11,20,36,0.04); border: 1px solid var(--hairline);
    border-radius: 8px; padding: 3px; gap: 2px; width: fit-content;
    margin-bottom: 4px;
  }
  .period-btn {
    font-family: inherit; font-size: 10px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
    color: var(--text-muted); background: transparent; border: none; border-radius: 5px;
    padding: 7px 13px; cursor: pointer; transition: 0.15s;
  }
  .period-btn:hover { color: var(--text-secondary); }
  .period-btn.active { color: var(--text); background: var(--surface); box-shadow: 0 1px 2px rgba(11,20,36,0.08), inset 0 0 0 1px rgba(11,20,36,0.08); }

  /* ── Горизонтальная полоска пилюль периода ── */
  .period-pills-wrap {
    display: flex; gap: 4px;
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    margin-bottom: 4px;
  }
  .period-pills-wrap::-webkit-scrollbar { display: none; }
  .period-pill {
    font-family: inherit;
    display: flex; flex-direction: column; align-items: center;
    gap: 1px; flex-shrink: 0;
    background: rgba(11,20,36,0.04); border: 1px solid var(--hairline);
    border-radius: 8px; padding: 6px 11px; cursor: pointer; transition: 0.15s;
  }
  .period-pill:hover { border-color: var(--text-muted); background: rgba(11,20,36,0.06); }
  .period-pill.active {
    background: var(--text); border-color: var(--text);
    box-shadow: 0 1px 4px rgba(11,20,36,0.2);
  }
  .period-pill .pp-label {
    font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-muted); transition: 0.15s;
  }
  .period-pill .pp-sub {
    font-size: 8.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: lowercase;
    color: var(--text-dim); transition: 0.15s;
  }
  .period-pill.active .pp-label { color: #fff; }
  .period-pill.active .pp-sub { color: rgba(255,255,255,0.65); }

  .period-view { display: flex; flex-direction: column; gap: 14px; flex: 1; }
  .period-view[hidden] { display: none; }

  .tf-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
  .tf-tag {
    display: inline-block; margin-left: 8px; padding: 2px 7px;
    background: rgba(11,20,36,0.04); border: 1px solid var(--hairline);
    border-radius: 3px; font-size: 8.5px; letter-spacing: 0.14em; color: var(--text-dim);
  }
  .tf-numbers { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
  .tf-hero {
    font-family: 'Inter', sans-serif; font-weight: 500; font-size: 50px;
    letter-spacing: -0.03em; line-height: 0.95; color: var(--text);
  }
  .tf-hero.no-data { color: var(--text-dim); font-style: italic; }
  .tf-unit { font-size: 13px; font-weight: 600; color: var(--text-muted); }
  .tf-vs {
    display: flex; align-items: center; gap: 8px; font-size: 12px;
    color: var(--text-secondary); font-weight: 500; margin-top: 10px; flex-wrap: wrap;
  }
  .tf-vs .plan-num { font-weight: 600; }
  .tf-vs .dot-sep { color: var(--text-dim); }
  .tf-delta { font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
  .tf-delta.behind { color: var(--coral); }
  .tf-delta.behind::before { content: "▾"; font-size: 9px; }
  .tf-delta.ahead { color: var(--sage); }
  .tf-delta.ahead::before { content: "▴"; font-size: 9px; }
  .tf-delta.neutral { color: var(--text-secondary); }

  .tf-track {
    position: relative; height: 5px; border-radius: 99px; background: var(--plan);
    overflow: visible; margin-top: 8px;
  }
  .tf-fill {
    position: absolute; inset: 0; background: var(--fact); border-radius: 99px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .tf-fill.over { background: var(--sage); }
  .tf-fill.forecast {
    background: repeating-linear-gradient(135deg, var(--fact) 0px, var(--fact) 4px, rgba(30,58,95,0.30) 4px, rgba(30,58,95,0.30) 7px);
  }
  .tf-ratio {
    margin-top: 4px; display: flex; justify-content: space-between;
    font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
  }
  .tf-ratio .ratio-actual { color: var(--fact); }
  .tf-ratio .ratio-actual.over { color: var(--sage); }

  /* ── KPI ДИРЕКТОРА (inline strip in executor form — elegant, no boxes) ── */
  .kpi-d-inline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0 14px;
    border-top: 1px dashed var(--hairline-strong);
    border-bottom: 1px dashed var(--hairline-strong);
    margin: 4px 0 2px;
  }
  .kpi-d-inline-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .kpi-d-inline-body {
    font-size: 12.5px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
  }
  .kpi-d-inline-body strong {
    color: var(--text);
    font-weight: 700;
  }
  .kpi-d-inline-body .sep {
    color: var(--text-dim);
    margin: 0 2px;
  }
  .kpi-d-inline-body .reserve-pos { color: var(--sage); font-weight: 700; }
  .kpi-d-inline-body .reserve-neg { color: var(--coral); font-weight: 700; }
  .kpi-d-inline-body .reserve-neutral { color: var(--text-muted); font-weight: 600; }
  .donut-svg { width: 140px; height: 140px; }
  .donut-swatch { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; display: inline-block; }

  /* ── DONUT SECTION (separate middle column for акты and договоры) ── */
  .donut-section {
    padding: 26px 24px 18px;
    border-right: 1px solid var(--hairline);
    display: flex; flex-direction: column; gap: 14px;
    background: linear-gradient(180deg, rgba(11,20,36,0.012) 0%, transparent 30%);
  }
  .donut-section-head {
    padding-bottom: 12px; border-bottom: 1px solid var(--hairline);
    display: flex; flex-direction: column; gap: 4px;
  }
  .donut-section-title {
    font-family: 'Inter', sans-serif; font-weight: 500; font-size: 16px;
    letter-spacing: -0.01em; color: var(--text); line-height: 1.2;
  }
  .donut-section-sub {
    font-size: 9.5px; font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--text-muted);
  }
  .donut-wrap {
    display: flex; justify-content: center; align-items: center;
    padding: 18px 0;
  }
  .donut-svg-lg { width: 210px; height: 210px; }
  .donut-center-num-lg {
    font-family: 'Inter', sans-serif; font-weight: 500; font-size: 28px;
    fill: var(--text); letter-spacing: -0.02em;
  }
  .donut-center-label-lg {
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 8.5px;
    fill: var(--text-muted); letter-spacing: 0.15em; text-transform: uppercase;
  }

  .donut-legend-stacked {
    display: flex; flex-direction: column;
    padding-top: 4px;
  }
  .donut-legend-row {
    display: flex; flex-direction: column; gap: 6px;
    padding: 12px 0;
    border-top: 1px solid var(--hairline);
  }
  .donut-legend-row:first-child { border-top: none; padding-top: 4px; }
  .donut-legend-row.accent .donut-legend-name { color: var(--fact); }
  .donut-legend-head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
  }
  .donut-legend-name {
    display: flex; align-items: center; gap: 8px;
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-secondary);
  }
  .donut-legend-pct {
    font-size: 11px; font-weight: 800; color: var(--text);
    font-feature-settings: "tnum";
  }
  .donut-legend-value {
    font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 500;
    color: var(--text); letter-spacing: -0.02em;
  }
  .donut-legend-value .du-unit { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600; color: var(--text-muted); margin-left: 4px; }

  .donut-section-foot {
    margin-top: auto; padding-top: 12px;
    border-top: 1px dashed var(--hairline-strong);
    font-size: 11px; color: var(--text-secondary); font-weight: 500; line-height: 1.5;
  }
  .donut-section-foot strong { color: var(--text); font-weight: 700; }
  .donut-section-foot-label {
    display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px;
  }

  /* ── АКТЫ: парные горизонтальные бары ── */
  .acts-bars-head {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding-bottom: 14px; border-bottom: 1px solid var(--hairline);
  }
  .acts-bars-title { font-family: 'Inter', sans-serif; font-size: 19px; font-weight: 500; letter-spacing: -0.015em; color: var(--text); }
  .acts-bars-sub { font-size: 9.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }

  .acts-bars { display: flex; flex-direction: column; gap: 18px; padding: 16px 0 4px; }

  .acts-bar-row { display: flex; flex-direction: column; gap: 10px; }
  .abr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .abr-label {
    font-size: 10px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-secondary);
  }
  .abr-vals { display: inline-flex; align-items: baseline; gap: 5px; font-feature-settings: 'tnum'; white-space: nowrap; }
  .abr-fact { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
  .abr-sep { font-size: 13px; color: var(--text-dim); font-weight: 400; margin: 0 1px; }
  .abr-plan { font-size: 13px; font-weight: 600; color: var(--text-muted); }
  .abr-unit { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-dim); margin-left: 2px; }

  .abr-bar-row {
    display: flex; align-items: center; gap: 10px;
  }
  .abr-track {
    position: relative; height: 10px; flex: 1;
    background: rgba(11,20,36,0.05); border-radius: 5px;
    overflow: visible;
  }
  .abr-fill {
    position: absolute; left: 0; top: 0; bottom: 0;
    border-radius: 5px;
    background: var(--fact);
    transition: width 0.4s ease;
  }
  .abr-fill.signed { background: var(--gold); opacity: 0.85; }  /* legacy, не используется */

  .abr-plan-marker {
    position: absolute; top: -3px; bottom: -3px; width: 2px;
    background: var(--text); opacity: 0.45;
    border-radius: 1px;
    transform: translateX(-1px);
  }
  /* подпись «план» под маркером убрана — она конфликтовала с строкой цифр */

  .abr-pct {
    flex-shrink: 0;
    min-width: 46px; text-align: center;
    font-size: 10px; font-weight: 800; letter-spacing: 0.04em; font-feature-settings: 'tnum';
    color: var(--text-secondary);
    padding: 4px 8px; border: 1px solid var(--hairline-strong); border-radius: 11px;
    background: var(--surface);
  }
  .abr-foot-note {
    font-size: 10.5px; font-style: italic; font-weight: 500; color: var(--text-muted);
    padding-left: 2px;
  }
  /* central donut label (used by small donut helper, kept for compatibility) */
  .donut-center-num {
    font-family: 'Inter', sans-serif; font-weight: 500; font-size: 22px;
    fill: var(--text); letter-spacing: -0.02em;
  }
  .donut-center-label {
    font-family: 'Inter', sans-serif; font-weight: 700; font-size: 8px;
    fill: var(--text-muted); letter-spacing: 0.15em; text-transform: uppercase;
  }

  /* Inline qty breakdown (placeholder, unused now) */
  .qty-strip { display: none; }

  .tf-note {
    padding-top: 12px; margin-top: 8px;
    border-top: 1px dashed var(--hairline-strong);
    font-size: 11.5px; color: var(--text-secondary); font-weight: 500; line-height: 1.55;
  }
  .tf-note strong { color: var(--text); font-weight: 700; }
  .tf-note em { font-style: italic; color: var(--fact-bright); font-weight: 500; }
  .tf-note-label {
    display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
  }

  .metric-foot {
    margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hairline);
    display: flex; justify-content: space-between;
    font-size: 10px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-dim);
  }
  .metric-foot strong { color: var(--text-muted); font-weight: 700; }
  .metric-foot .edited-tag { color: var(--gold); font-weight: 800; letter-spacing: 0.1em; }

  /* ── CHART ── */
  .chart-card { padding: 26px 30px 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .chart-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding-bottom: 12px; border-bottom: 1px solid var(--hairline); flex-shrink: 0;
  }
  .chart-title { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; color: var(--text); line-height: 1.2; }
  .chart-title-sub { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
  .chart-legend { display: flex; gap: 18px; font-size: 10.5px; font-weight: 600; color: var(--text-secondary); }
  .legend-swatch {
    display: inline-block; width: 22px; height: 8px; border-radius: 2px;
    margin-right: 7px; vertical-align: middle; transform: translateY(-1px);
  }
  .legend-swatch.plan { background: var(--plan-strong); }
  .legend-swatch.fact { background: var(--fact); }
  .legend-swatch.forecast {
    background: repeating-linear-gradient(135deg, var(--fact) 0px, var(--fact) 3px, rgba(30,58,95,0.30) 3px, rgba(30,58,95,0.30) 5px);
  }
  .legend-swatch.line-plan {
    background: transparent; border-top: 2px dashed var(--plan-strong);
    height: 0; margin-top: 5px; border-radius: 0;
  }
  .legend-swatch.line-fact {
    background: var(--fact); height: 2px; margin-top: 5px; border-radius: 0;
  }
  .chart-area { flex: 1; width: 100%; display: flex; min-height: 0; }
  .chart-area svg { width: 100%; height: 100%; display: block; }

  /* ── KPI STRIP (unified adaptive layout) ── */
  .strip.strip-kpi,
  .strip.strip-nzp {
    display: block;
    min-height: 0;
    overflow: visible;
  }
  .strip.strip-kpi { min-height: 520px; }
  .nzp-shell-body.has-donut {
    grid-template-columns: minmax(220px, 280px) minmax(200px, 260px) minmax(260px, 1fr);
  }
  .kpi-donut-col {
    min-width: 0;
    overflow: auto;
  }
  .nzp-metric-extra {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--hairline-strong);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.35;
  }
  .nzp-metric-extra-lbl {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .nzp-metric-extra strong { color: var(--text); font-weight: 800; font-size: 13px; }
  .nzp-metric-extra-sub { font-size: 10px; color: var(--text-muted); }

  .nzp-shell { display: flex; flex-direction: column; }
  .nzp-shell-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 22px 28px 0;
  }
  .nzp-shell-title { min-width: 0; }
  .nzp-period-pills { padding: 14px 28px 0; margin-bottom: 0; }
  .nzp-shell-body {
    display: grid;
    grid-template-columns: minmax(260px, 300px) 1fr;
    gap: 0;
    border-top: 1px solid var(--hairline);
    margin-top: 16px;
    min-height: 320px;
    min-width: 0;
    overflow-x: auto;
  }
  .nzp-aside {
    padding: 20px 24px 18px;
    border-right: 1px solid var(--hairline);
    display: flex; flex-direction: column; gap: 0;
    background: linear-gradient(180deg, rgba(11,20,36,0.015) 0%, transparent 40%);
  }
  .nzp-metric-compact { display: flex; flex-direction: column; gap: 10px; flex: 1; }
  .nzp-metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .nzp-metric-period { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
  .nzp-metric-tag {
    font-size: 8px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 3px 7px; border-radius: 4px;
    background: rgba(11,20,36,0.04); border: 1px solid var(--hairline); color: var(--text-dim);
  }
  .nzp-metric-hero-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
  .nzp-metric-hero {
    font-family: 'Inter', sans-serif; font-weight: 500; font-size: 42px;
    letter-spacing: -0.03em; line-height: 1; color: var(--text);
  }
  .nzp-metric-hero.no-data { color: var(--text-dim); font-style: italic; font-size: 36px; }
  .nzp-metric-unit { font-size: 12px; font-weight: 600; color: var(--text-muted); }
  .nzp-metric-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    font-size: 12px; color: var(--text-secondary); font-weight: 500;
  }
  .nzp-metric-dot { color: var(--text-dim); }
  .nzp-metric-track {
    height: 6px; border-radius: 99px; background: var(--plan); overflow: hidden; margin-top: 4px;
  }
  .nzp-metric-fill {
    height: 100%; border-radius: 99px; background: var(--fact);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nzp-metric-fill.over { background: var(--sage); }
  .nzp-metric-ratio {
    display: flex; justify-content: space-between;
    font-size: 9px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
  }
  .nzp-metric-ratio span:first-child { color: var(--fact); }
  .nzp-metric-ratio span:first-child.over { color: var(--sage); }
  .nzp-aside-foot {
    margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hairline);
    display: flex; justify-content: space-between; gap: 8px;
    font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
  }
  .nzp-aside-foot strong { color: var(--text-muted); }
  .nzp-chart-panel {
    padding: 18px 24px 16px;
    display: flex; flex-direction: column; gap: 12px; min-width: 0;
  }
  .nzp-chart-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding-bottom: 10px; border-bottom: 1px solid var(--hairline);
  }
  .nzp-legend { flex-shrink: 0; }
  .nzp-chart-area {
    flex: 1; display: block;
    min-height: 260px; max-height: none;
    background: linear-gradient(180deg, rgba(11,20,36,0.02) 0%, transparent 100%);
    border: 1px solid var(--hairline); border-radius: 12px;
    padding: 6px 4px 4px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .nzp-chart-area--wide {
    min-height: 300px;
  }
  .nzp-chart-area > svg,
  .nzp-chart-area .nzp-chart-svg {
    width: 100%; height: auto; max-height: none; min-height: 240px;
    display: block;
  }
  .nzp-chart-area--wide > svg,
  .nzp-chart-area--wide .nzp-chart-svg {
    min-height: 300px;
  }
  .nzp-chart-svg {
    width: 100%; height: auto; max-height: none; min-height: 200px;
    display: block;
  }
  .nzp-chart-svg-pair { max-width: none; }
  .nzp-stat-chips {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  }
  .nzp-stat-chip {
    padding: 10px 12px; border-radius: 10px;
    border: 1px solid var(--hairline); background: var(--surface-2);
    display: flex; flex-direction: column; gap: 4px; min-width: 0;
  }
  .nzp-stat-lbl {
    font-size: 8.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
  }
  .nzp-stat-val {
    font-size: 12px; font-weight: 700; color: var(--text); font-feature-settings: "tnum";
  }
  .nzp-stat-val em { font-style: normal; font-weight: 600; color: var(--text-muted); }
  .nzp-stat-pct {
    align-self: flex-start; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
    background: rgba(11,20,36,0.05); color: var(--text-secondary);
  }
  .nzp-stat-pct.up { background: rgba(21,128,61,0.10); color: var(--sage); }
  .nzp-stat-pct.mid { background: rgba(71,85,105,0.08); color: var(--text-secondary); }
  .nzp-stat-pct.down { background: rgba(194,65,12,0.08); color: var(--coral); }

  /* ── Иерархия KPI-карточек: главное крупнее/конtrast, второстепенное — в фон ── */
  .strip-kpi .nzp-shell-head .metric-title {
    font-size: 24px;
    letter-spacing: -0.02em;
  }
  .strip-kpi .nzp-shell-head .metric-subtitle {
    color: var(--text-dim);
    font-size: 9px;
    letter-spacing: 0.22em;
  }
  .strip-kpi .nzp-shell-head .metric-status {
    font-size: 9px;
    letter-spacing: 0.16em;
    font-weight: 700;
  }
  .strip-kpi .nzp-period-pills { opacity: 0.95; }

  /* Уровень 1 — ключевая цифра слева */
  .strip-kpi .nzp-aside {
    background: linear-gradient(180deg, rgba(11, 20, 36, 0.018) 0%, transparent 55%);
  }
  .strip-kpi .nzp-metric-hero {
    font-size: 46px;
    color: var(--text);
  }
  .strip-kpi .nzp-metric-period {
    color: var(--text-dim);
    font-size: 9px;
    letter-spacing: 0.16em;
  }
  .strip-kpi .nzp-metric-tag {
    color: var(--text-dim);
    background: rgba(11, 20, 36, 0.025);
    border-color: rgba(231, 234, 240, 0.9);
  }
  .strip-kpi .nzp-metric-meta {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
  }
  .strip-kpi .nzp-metric-meta .tf-delta { font-weight: 600; }
  .strip-kpi .nzp-metric-track {
    height: 5px;
    background: rgba(207, 214, 225, 0.5);
  }
  .strip-kpi .nzp-metric-ratio {
    color: var(--text-dim);
    font-size: 8.5px;
  }
  .strip-kpi .nzp-metric-ratio span:first-child {
    color: var(--text-secondary);
    font-weight: 800;
  }
  .strip-kpi .nzp-metric-ratio span:first-child.over { color: var(--sage); }
  .strip-kpi .nzp-metric-extra {
    color: var(--text-dim);
    font-size: 10px;
  }
  .strip-kpi .nzp-metric-extra strong {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
  }
  .strip-kpi .nzp-aside-foot {
    color: var(--text-dim);
    font-size: 9px;
  }

  /* Уровень 2 — структура / бублик (средний план) */
  .strip-kpi .kpi-donut-col {
    background: rgba(11, 20, 36, 0.004);
  }
  .strip-kpi .kpi-donut-col .donut-section {
    background: transparent;
    padding-top: 22px;
    padding-bottom: 16px;
  }
  .strip-kpi .kpi-donut-col .donut-section-title,
  .strip-kpi .kpi-donut-col .acts-bars-title {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
  }
  .strip-kpi .kpi-donut-col .donut-section-sub,
  .strip-kpi .kpi-donut-col .acts-bars-sub {
    color: var(--text-dim);
    font-size: 8.5px;
    letter-spacing: 0.16em;
  }
  .strip-kpi .kpi-donut-col .donut-section-head,
  .strip-kpi .kpi-donut-col .acts-bars-head {
    padding-bottom: 10px;
    border-bottom-color: rgba(231, 234, 240, 0.85);
  }
  .strip-kpi .kpi-donut-col .abr-fact {
    font-size: 17px;
    color: var(--text);
  }
  .strip-kpi .kpi-donut-col .abr-plan,
  .strip-kpi .kpi-donut-col .abr-sep,
  .strip-kpi .kpi-donut-col .abr-unit {
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 600;
  }
  .strip-kpi .kpi-donut-col .abr-label {
    color: var(--text-dim);
    font-size: 9px;
    letter-spacing: 0.14em;
  }
  .strip-kpi .kpi-donut-col .abr-pct {
    font-size: 9px;
    color: var(--text-muted);
    border-color: rgba(231, 234, 240, 0.95);
    background: rgba(255, 255, 255, 0.6);
    min-width: 40px;
    padding: 3px 6px;
  }
  .strip-kpi .kpi-donut-col .abr-track {
    background: rgba(11, 20, 36, 0.04);
    height: 8px;
  }
  .strip-kpi .kpi-donut-col .donut-legend-name {
    color: var(--text-dim);
    font-size: 9.5px;
  }
  .strip-kpi .kpi-donut-col .donut-legend-value {
    font-size: 15px;
    color: var(--text-secondary);
  }
  .strip-kpi .kpi-donut-col .donut-legend-pct {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
  }
  .strip-kpi .kpi-donut-col .donut-center-num-lg {
    font-size: 22px;
    fill: var(--text-secondary);
  }
  .strip-kpi .kpi-donut-col .donut-section-foot {
    font-size: 10px;
    color: var(--text-dim);
    font-weight: 500;
    border-top-color: rgba(231, 234, 240, 0.9);
  }

  /* Уровень 3 — динамика / график (фон) */
  .strip-kpi .nzp-chart-panel {
    background: var(--surface);
  }
  .strip-kpi .nzp-chart-head {
    border-bottom-color: rgba(231, 234, 240, 0.85);
    padding-bottom: 8px;
  }
  .strip-kpi .nzp-chart-head .chart-title {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-muted);
  }
  .strip-kpi .nzp-chart-head .chart-title-sub {
    color: var(--text-dim);
    font-size: 8.5px;
    letter-spacing: 0.14em;
    margin-top: 3px;
  }
  .strip-kpi .nzp-legend {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-dim);
    gap: 12px;
  }
  .strip-kpi .nzp-chart-area {
    background: rgba(11, 20, 36, 0.012);
    border-color: rgba(231, 234, 240, 0.95);
    min-height: 280px;
    max-height: none;
  }
  .strip-kpi .nzp-chart-area--wide {
    min-height: 340px;
  }
  .strip-kpi .nzp-chart-area--wide > svg,
  .strip-kpi .nzp-chart-area--wide .nzp-chart-svg {
    min-height: 320px;
  }
  .strip-kpi .nzp-stat-chips { gap: 8px; }
  .strip-kpi .nzp-stat-chip {
    background: transparent;
    border-color: rgba(231, 234, 240, 0.9);
    padding: 8px 10px;
    gap: 3px;
  }
  .strip-kpi .nzp-stat-lbl {
    color: var(--text-dim);
    font-size: 8px;
    letter-spacing: 0.12em;
  }
  .strip-kpi .nzp-stat-val {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
  }
  .strip-kpi .nzp-stat-val em {
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 600;
  }
  .strip-kpi .nzp-stat-pct {
    font-size: 9px;
    font-weight: 700;
    opacity: 0.92;
  }

  .strip.strip-nzp .nzp-drill-wrap,
  .strip.strip-kpi .nzp-drill-wrap,
  .strip.strip-kpi .acts-drill-wrap { border-top: 1px solid var(--hairline); }
  .strip.strip-nzp .decision-band,
  .strip.strip-kpi .decision-band { border-top: 1px solid var(--hairline); }

  .footnote {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px; color: var(--text-muted); font-weight: 500; flex-shrink: 0;
  }
  .footnote em { font-style: normal; color: var(--text); font-weight: 700; }
  .footnote-right { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-dim); text-transform: uppercase; }

  /* ── ФАКТОРЫ ПРОГНОЗА (под графиком) ── */
  .forecast-factors {
    margin-top: 8px;
    padding: 9px 12px;
    background: linear-gradient(180deg, rgba(42,79,128,0.05) 0%, rgba(42,79,128,0.01) 100%);
    border: 1px solid rgba(42,79,128,0.15);
    border-radius: 7px;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
    font-size: 11px;
  }
  .forecast-factors .ff-head {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 9px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
    color: #2a4f80;
  }
  .forecast-factors .ff-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #2a4f80; opacity: 0.7;
    display: inline-block;
  }
  .forecast-factors .ff-k {
    font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-muted);
  }
  .forecast-factors .ff-v { font-size: 12px; font-weight: 700; color: var(--text); }
  .forecast-factors .ff-sub { font-size: 9.5px; font-weight: 600; color: var(--text-muted); margin-left: 2px; }
  .forecast-factors .ff-sep { color: var(--text-muted); font-weight: 700; opacity: 0.5; }
  .source-note {
    margin-top: 6px;
    padding: 7px 11px;
    background: rgba(180, 83, 9, 0.05);
    border: 1px solid rgba(180, 83, 9, 0.18);
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 500;
    color: var(--amber);
    line-height: 1.45;
    flex-shrink: 0;
  }

  /* ── EXECUTOR VIEW ── */
  .exec-header {
    display: flex; flex-direction: column; gap: 14px;
    padding: 22px 26px; background: var(--surface);
    border: 1px solid var(--hairline); border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(11,20,36,0.04), 0 12px 32px -16px rgba(11,20,36,0.08);
    position: relative; overflow: hidden;
  }
  .exec-header::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(163,124,47,0.45) 18%, rgba(163,124,47,0.55) 30%, rgba(163,124,47,0.18) 60%, transparent 100%);
  }
  .exec-greeting {
    font-family: 'Inter', sans-serif; font-size: 19px; font-weight: 500;
    letter-spacing: -0.01em; color: var(--text); line-height: 1.3;
  }
  .exec-greeting strong { font-weight: 600; color: var(--fact); }
  .exec-greeting-sub { font-size: 12px; font-weight: 500; color: var(--text-muted); line-height: 1.5; }

  .kpi-picker { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
  .kpi-pick-btn {
    font-family: inherit; background: var(--surface);
    border: 1px solid var(--hairline-strong); border-radius: 8px;
    padding: 11px 16px; cursor: pointer; transition: all 0.15s;
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    text-align: left; min-width: 200px;
  }
  .kpi-pick-btn:hover { border-color: var(--fact-bright); }
  .kpi-pick-btn.active { background: var(--fact); border-color: var(--fact); color: white; box-shadow: 0 4px 12px -4px rgba(30,58,95,0.35); }
  .kpi-pick-btn.active .kpi-pick-exec { color: rgba(255,255,255,0.65); }
  .kpi-pick-title { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
  .kpi-pick-exec { font-size: 9.5px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }

  .exec-layout { display: grid; grid-template-columns: minmax(460px, 480px) 1fr; gap: 18px; align-items: stretch; }
  @media (max-width: 1024px) {
    .exec-layout { grid-template-columns: 1fr; }
  }

  .input-card {
    background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
    padding: 26px 26px 22px;
    box-shadow: 0 1px 2px rgba(11,20,36,0.04), 0 12px 32px -16px rgba(11,20,36,0.08);
    display: flex; flex-direction: column; gap: 16px;
    position: relative; overflow: hidden;
    min-width: 0;
    scroll-margin-top: 72px;
  }
  .input-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(163,124,47,0.45) 18%, rgba(163,124,47,0.55) 30%, rgba(163,124,47,0.18) 60%, transparent 100%);
  }
  .input-head { padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
  .input-title { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; color: var(--text); }
  .input-sub { font-size: 9.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-top: 5px; }
  .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .field-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); }
  .field-help { font-size: 11px; color: var(--text-muted); font-weight: 500; line-height: 1.4; }
  .field-help strong { color: var(--text); font-weight: 700; }
  .field input, .field select {
    font-family: inherit; font-size: 17px; font-weight: 600; color: var(--text);
    background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 8px;
    padding: 12px 14px; outline: none;
    transition: border-color 0.15s, box-shadow 0.15s; font-feature-settings: "tnum";
    width: 100%; box-sizing: border-box; min-width: 0;
  }
  .field input:focus, .field select:focus { border-color: var(--fact); box-shadow: 0 0 0 3px rgba(30,58,95,0.10); }
  .field input::placeholder { color: var(--text-dim); font-weight: 400; }
  .field input[type="number"] { -moz-appearance: textfield; }
  .field input[type="number"]::-webkit-outer-spin-button,
  .field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .field-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .field-grid-3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .field-input-wrap { position: relative; min-width: 0; }
  .field-row-suffix {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-dim);
    pointer-events: none;
    background: var(--surface); padding-left: 4px;
  }
  .field-input-wrap input { padding-right: 42px; }
  .field-input-wrap.no-suffix input { padding-right: 14px; }

  .input-actions { margin-top: 4px; display: flex; gap: 10px; }
  .btn-primary {
    flex: 1; font-family: inherit; font-size: 11.5px; font-weight: 800;
    letter-spacing: 0.12em; text-transform: uppercase; color: white;
    background: var(--fact); border: 1px solid var(--fact); border-radius: 8px;
    padding: 14px 18px; cursor: pointer; transition: 0.15s;
    box-shadow: 0 4px 12px -4px rgba(30,58,95,0.4);
  }
  .btn-primary:hover { background: #16314f; }
  .btn-secondary {
    font-family: inherit; font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary);
    background: var(--surface); border: 1px solid var(--hairline-strong);
    border-radius: 8px; padding: 14px 16px; cursor: pointer;
  }
  .btn-secondary:hover { color: var(--text); border-color: var(--text-dim); }

  .input-foot {
    margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hairline);
    font-size: 11px; color: var(--text-secondary); line-height: 1.5;
  }
  .input-foot strong { color: var(--text); font-weight: 700; }
  .input-foot-arrow { color: var(--gold); margin: 0 4px; }

  .toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text); color: white; padding: 12px 22px;
    border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
    box-shadow: 0 10px 30px -10px rgba(11,20,36,0.4);
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s, transform 0.25s; z-index: 100;
    display: flex; align-items: center; gap: 8px;
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
  .toast-dot { width: 6px; height: 6px; background: var(--sage); border-radius: 50%; }

  .preview-wrap { position: relative; min-width: 0; }
  .preview-tag {
    position: absolute; top: -10px; left: 24px;
    background: var(--surface); border: 1px solid var(--hairline);
    border-radius: 6px; padding: 4px 10px; font-size: 9px; font-weight: 800;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); z-index: 2;
    box-shadow: 0 2px 8px -2px rgba(11,20,36,0.1);
  }
  /* Превью у исполнителя: график на всю ширину, иначе 3-я колонка схлопывается в 0 */
  .preview-wrap .strip-kpi,
  .strip-kpi[data-context="preview"] {
    min-height: 0;
  }
  .preview-wrap .strip-kpi .nzp-shell-body.has-donut,
  .strip-kpi[data-context="preview"] .nzp-shell-body.has-donut {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    overflow-x: visible;
  }
  .preview-wrap .strip-kpi .nzp-shell-body.has-donut .nzp-aside,
  .strip-kpi[data-context="preview"] .nzp-shell-body.has-donut .nzp-aside {
    grid-column: 1;
    grid-row: 1;
    border-right: 1px solid var(--hairline);
  }
  .preview-wrap .strip-kpi .nzp-shell-body.has-donut .kpi-donut-col,
  .strip-kpi[data-context="preview"] .nzp-shell-body.has-donut .kpi-donut-col {
    grid-column: 2;
    grid-row: 1;
    border-right: none;
  }
  .preview-wrap .strip-kpi .nzp-shell-body.has-donut .nzp-chart-panel,
  .strip-kpi[data-context="preview"] .nzp-shell-body.has-donut .nzp-chart-panel {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    border-top: 1px solid var(--hairline);
  }
  .preview-wrap .strip-kpi .nzp-shell-body:not(.has-donut),
  .strip-kpi[data-context="preview"] .nzp-shell-body:not(.has-donut) {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
  .preview-wrap .strip-kpi .nzp-shell-body:not(.has-donut) .nzp-chart-panel,
  .strip-kpi[data-context="preview"] .nzp-shell-body:not(.has-donut) .nzp-chart-panel {
    border-top: 1px solid var(--hairline);
  }
  .preview-wrap .strip-kpi .nzp-stat-chips,
  .strip-kpi[data-context="preview"] .nzp-stat-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  @keyframes pulseEdit {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }
  .just-edited { animation: pulseEdit 1s ease-in-out 2; }

  /* ── ОБЩЕЕ: textarea + select в форме ── */
  .field textarea {
    font-family: inherit; font-size: 13px; font-weight: 500; color: var(--text);
    background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 8px;
    padding: 11px 13px; outline: none; resize: vertical; line-height: 1.45;
    transition: border-color 0.15s, box-shadow 0.15s; width: 100%;
  }
  .field textarea:focus { border-color: var(--fact); box-shadow: 0 0 0 3px rgba(30,58,95,0.10); }
  .field textarea::placeholder { color: var(--text-dim); font-weight: 400; }
  .field-label .req { color: var(--coral); font-weight: 800; }
  .field-label .opt { color: var(--text-dim); font-weight: 600; letter-spacing: 0; text-transform: none; }

  /* ── БЛОК ОТКЛОНЕНИЯ (форма исполнителя) ── */
  .deviation-block {
    display: flex; flex-direction: column; gap: 12px;
    padding: 16px; border-radius: 10px;
    background: rgba(194,65,12,0.04); border: 1px solid rgba(194,65,12,0.22);
    transition: opacity 0.2s, background 0.2s, border-color 0.2s;
  }
  .deviation-block.inactive {
    background: rgba(11,20,36,0.02); border-color: var(--hairline); opacity: 0.7;
  }
  .deviation-block.inactive .deviation-flag { color: var(--text-muted); }
  .deviation-head { display: flex; flex-direction: column; gap: 4px; }
  .deviation-flag { font-size: 9.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); }
  .deviation-note { font-size: 11px; font-weight: 600; color: var(--text-secondary); line-height: 1.45; }
  .reason-select { width: 100%; }
  .field-error {
    font-size: 11px; font-weight: 700; color: var(--coral);
    background: rgba(194,65,12,0.08); border: 1px solid rgba(194,65,12,0.25);
    border-radius: 6px; padding: 8px 11px; line-height: 1.4;
  }
  .reason-select.invalid, .field textarea.invalid { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(194,65,12,0.12); }

  /* ── ПОСТРОЧНЫЙ ВВОД РЕЕСТРОВ (акты, договоры) ── */
  .registry-exec { display: flex; flex-direction: column; gap: 14px; }
  .registry-exec-progress {
    font-size: 12px; font-weight: 700; line-height: 1.45;
    padding: 10px 14px; border-radius: 10px;
    background: var(--surface-2); border: 1px solid var(--hairline);
  }
  .registry-prog-ok { color: var(--sage); }
  .registry-prog-pending { color: var(--text-muted); }
  .registry-prog-pending strong { color: var(--text); }
  .registry-exec-form {
    display: flex; flex-direction: column; gap: 12px;
    padding: 16px; border-radius: 12px;
    border: 1px solid var(--hairline); background: var(--surface);
  }
  .registry-exec-form[hidden] { display: none; }
  .registry-exec-form-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
  .registry-exec-form-title { font-size: 14px; font-weight: 800; color: var(--text); }
  .registry-exec-form-sub { font-size: 11px; font-weight: 600; color: var(--text-muted); }
  .registry-exec-hint {
    margin: 6px 0 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dim);
  }
  .registry-exec-hint[hidden] { display: none; }
  .registry-exec-done {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    text-align: center; padding: 24px 16px;
    background: var(--surface-2); border: 1px dashed var(--hairline-strong);
    border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--text-muted);
  }
  .registry-exec-done[hidden] { display: none; }
  .registry-exec-done-ico {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(21,128,61,0.1); color: var(--sage); font-size: 18px;
  }
  .registry-exec-context {
    background: var(--surface-2); border: 1px solid var(--hairline);
    border-radius: 10px; padding: 12px 14px;
  }
  .registry-exec-context-empty {
    font-size: 12px; font-weight: 600; color: var(--text-muted); line-height: 1.45;
  }
  .registry-exec-context-cap {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--text-dim); margin-bottom: 8px;
  }
  .registry-exec-context-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px;
  }
  @media (max-width: 560px) { .registry-exec-context-grid { grid-template-columns: 1fr; } }
  .registry-exec-context-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .registry-exec-context-lbl { font-size: 10px; font-weight: 700; color: var(--text-dim); }
  .registry-exec-context-val { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.35; word-break: break-word; }
  .registry-exec-fact-block {
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px; border-radius: 10px;
    border: 1px solid var(--hairline-strong); background: var(--surface);
  }
  .registry-exec-fact-title {
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--fact); margin-bottom: 2px;
  }
  .acts-exec-new-btn { align-self: flex-start; margin-top: 4px; }

  /* ── ФОРМА ВВОДА НЗП ПО ОБЪЕКТАМ ── */
  .nzp-input { display: flex; flex-direction: column; gap: 16px; }
  .nzp-select { font-feature-settings: "tnum"; }

  .nzp-empty {
    display: flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--text-muted);
    background: var(--surface-2); border: 1px dashed var(--hairline-strong);
    border-radius: 10px; padding: 16px 18px;
  }
  .nzp-empty-ico { font-size: 18px; color: var(--text-dim); flex-shrink: 0; }

  .nzp-obj-panel { display: flex; flex-direction: column; gap: 18px; }
  .nzp-obj-panel[hidden] { display: none; }
  .nzp-anim { animation: nzpReveal 0.34s cubic-bezier(0.22, 0.61, 0.36, 1); }
  @keyframes nzpReveal {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* справочный блок объекта */
  .nzp-obj-meta {
    background: var(--surface-2); border: 1px solid var(--hairline);
    border-radius: 12px; padding: 16px 18px;
  }
  .nzp-meta-obj { font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
  .nzp-meta-client { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-top: 3px; }
  .nzp-meta-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px;
    margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline);
  }
  .nzp-meta-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .nzp-meta-lbl { font-size: 8.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
  .nzp-meta-val { font-size: 14px; font-weight: 700; color: var(--text); font-feature-settings: "tnum"; }
  .nzp-meta-val.accent { color: var(--fact); }
  .nzp-meta-foot { margin-top: 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--text-dim); text-transform: uppercase; }

  /* снимок прошлого месяца + блокировка отката стадий */
  .nzp-baseline {
    margin-top: 14px; padding: 12px 14px; border-radius: 10px;
    border: 1px solid rgba(163,124,47,0.28);
    background: linear-gradient(135deg, rgba(255,251,235,0.9) 0%, rgba(254,243,199,0.35) 100%);
  }
  .nzp-baseline:empty { display: none; }
  .nzp-baseline-empty {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 12px; font-weight: 600; color: var(--text-muted); line-height: 1.45;
    border-color: var(--hairline); background: var(--surface-2);
  }
  .nzp-baseline-ok { display: flex; flex-direction: column; gap: 8px; }
  .nzp-baseline-main { display: flex; align-items: flex-start; gap: 10px; }
  .nzp-baseline-ico { color: var(--gold); font-size: 11px; line-height: 1.6; flex-shrink: 0; }
  .nzp-baseline-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .nzp-baseline-lbl {
    font-size: 8.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
  }
  .nzp-baseline-val { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.35; }
  .nzp-baseline-val strong { font-weight: 800; color: var(--fact); }
  .nzp-baseline-hint { font-size: 11px; font-weight: 600; color: var(--text-secondary); line-height: 1.4; padding-left: 21px; }
  .nzp-baseline-hint strong { color: var(--gold); font-weight: 800; }
  .nzp-stage.locked {
    opacity: 0.38; cursor: not-allowed; pointer-events: none;
    filter: grayscale(0.35);
  }
  .nzp-stage.locked .nzp-stage-dot { border-color: var(--text-dim); background: transparent; }

  /* прогресс-бар стадий */
  .nzp-stage-title { font-size: 9.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
  .nzp-stage-track {
    position: relative; height: 6px; border-radius: 999px;
    background: var(--hairline); overflow: hidden; margin-bottom: 14px;
  }
  .nzp-stage-fill {
    height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--fact-light), var(--fact));
    transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .nzp-stage-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .nzp-stage {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    font-family: inherit; text-align: left; cursor: pointer;
    background: var(--surface); border: 1px solid var(--hairline-strong);
    border-radius: 10px; padding: 11px 12px; transition: all 0.16s ease;
  }
  .nzp-stage:hover { border-color: var(--fact-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(11,20,36,0.06); }
  .nzp-stage-dot {
    width: 11px; height: 11px; border-radius: 50%;
    border: 2px solid var(--hairline-strong); background: var(--surface); transition: all 0.16s ease;
  }
  .nzp-stage-lbl { font-size: 11.5px; font-weight: 700; color: var(--text); line-height: 1.25; }
  .nzp-stage-pct { font-size: 10px; font-weight: 800; color: var(--text-muted); font-feature-settings: "tnum"; }
  .nzp-stage.done { border-color: var(--fact-light); background: rgba(30,58,95,0.04); }
  .nzp-stage.done .nzp-stage-dot { border-color: var(--fact); background: var(--fact); }
  .nzp-stage.done .nzp-stage-pct { color: var(--fact); }
  .nzp-stage.active {
    border-color: var(--fact); background: rgba(30,58,95,0.08);
    box-shadow: 0 0 0 2px rgba(30,58,95,0.12);
  }
  .nzp-stage.active .nzp-stage-dot { box-shadow: 0 0 0 3px rgba(30,58,95,0.18); }

  /* расчёт НЗП */
  .nzp-calc {
    background: var(--surface-2); border: 1px solid var(--hairline);
    border-radius: 12px; padding: 14px 16px;
  }
  .nzp-calc-hint { font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
  .nzp-calc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
  .nzp-calc-formula { font-size: 11px; font-weight: 700; color: var(--text-muted); font-feature-settings: "tnum"; }
  .nzp-calc-flag { font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
  .nzp-calc-flag.ok { color: var(--sage); background: rgba(21,128,61,0.10); }
  .nzp-calc-flag.behind { color: var(--coral); background: rgba(194,65,12,0.10); }
  .nzp-calc-result { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .nzp-calc-label { font-size: 9.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
  .nzp-calc-value { font-size: 22px; font-weight: 800; color: var(--fact); font-feature-settings: "tnum"; letter-spacing: -0.01em; }
  .nzp-calc-extra {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline);
  }
  .nzp-calc-x { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .nzp-calc-x span { font-size: 8.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
  .nzp-calc-x b { font-size: 13px; font-weight: 800; color: var(--text); font-feature-settings: "tnum"; }

  /* поле ручного ввода % готовности */
  .nzp-pct-field input { font-feature-settings: "tnum"; }
  .nzp-pct-hint { font-size: 11px; font-weight: 600; line-height: 1.4; color: var(--text-muted); }
  .nzp-pct-hint strong { color: var(--fact); font-weight: 800; }

  /* блок динамики НЗП (этап 2): светофор + спарклайн + предупреждения */
  .nzp-trend:empty { display: none; }
  .nzp-trend { display: flex; flex-direction: column; gap: 10px; }
  .nzp-trend-top {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: var(--surface-2); border: 1px solid var(--hairline);
    border-radius: 12px; padding: 12px 16px;
  }
  .nzp-move { display: flex; align-items: center; gap: 11px; min-width: 0; }
  .nzp-move-light {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; color: #fff;
  }
  .nzp-move-light.up   { background: var(--sage); }
  .nzp-move-light.flat { background: var(--amber); }
  .nzp-move-light.down { background: var(--coral); }
  .nzp-move-light.none { background: var(--text-dim); }
  .nzp-move-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .nzp-move-label { font-size: 12.5px; font-weight: 800; color: var(--text); }
  .nzp-move-delta { font-size: 10.5px; font-weight: 600; color: var(--text-muted); font-feature-settings: "tnum"; }

  .nzp-spark { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
  .nzp-spark-cap { font-size: 8px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
  .nzp-spark svg { display: block; height: 40px; }

  .nzp-warns { display: flex; flex-direction: column; gap: 6px; }
  .nzp-warn {
    font-size: 10.5px; font-weight: 700; line-height: 1.35; color: var(--amber);
    background: rgba(180,83,9,0.08); border: 1px solid rgba(180,83,9,0.22);
    border-radius: 8px; padding: 7px 10px;
  }

  /* блок причины отставания */
  .nzp-reason {
    display: flex; flex-direction: column; gap: 12px;
    padding: 16px; border-radius: 10px;
    background: rgba(194,65,12,0.04); border: 1px solid rgba(194,65,12,0.22);
    animation: nzpReveal 0.28s ease;
  }
  .nzp-reason[hidden] { display: none; }
  .nzp-reason-head { font-size: 11px; font-weight: 800; letter-spacing: 0.02em; color: var(--coral); }

  /* ── ПОЛОСА РЕШЕНИЙ РУКОВОДИТЕЛЯ (дашборд, во всю ширину) ── */
  .decision-band {
    grid-column: 1 / -1;
    border-top: 1px solid var(--hairline);
    padding: 22px 28px 18px;
    display: flex; flex-direction: column; gap: 16px;
  }
  .decision-band-head {
    display: flex; align-items: center; gap: 10px;
    font-size: 10px; font-weight: 800; letter-spacing: 0.20em; text-transform: uppercase; color: var(--text-muted);
  }
  .decision-band-head .dbh-count {
    font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
    color: var(--text-secondary); background: rgba(11,20,36,0.04);
    border-radius: 12px; padding: 2px 8px;
  }
  .dec-rows { display: flex; flex-direction: column; }

  .dec-row {
    display: grid;
    grid-template-columns: 158px minmax(0, 1fr) minmax(360px, 460px);
    gap: 24px; align-items: start;
    padding: 18px 0;
    border-top: 1px solid var(--hairline);
  }
  .dec-row:first-child { border-top: none; padding-top: 4px; }
  .dec-row:last-child { padding-bottom: 4px; }
  .dec-row-flag { display: flex; flex-direction: column; gap: 4px; }
  .drf-month { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; color: var(--text); line-height: 1; }
  .drf-dev { font-size: 10px; font-weight: 800; letter-spacing: 0.04em; color: var(--coral); }
  .drf-ok { color: var(--text-muted); }

  .dec-row-reason { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .dec-k { font-size: 8.5px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
  .dec-v { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; }
  .dec-comment { font-size: 12px; font-style: italic; color: var(--text-secondary); line-height: 1.4; }
  .dec-await { font-size: 11px; font-weight: 600; color: var(--text-muted); font-style: italic; }

  .dec-row-controls {
    display: grid; grid-template-columns: 1fr auto;
    grid-template-areas: "action action" "comment save" "saved saved";
    gap: 8px; align-content: start;
  }
  .dec-row-controls .field-label { font-size: 8.5px; grid-column: 1 / -1; margin-bottom: -2px; }
  .dec-row-controls .dec-action { grid-area: action; }
  .dec-row-controls .dec-comment-input { grid-area: comment; }
  .dec-row-controls .btn-decision { grid-area: save; }
  .dec-row-controls .dec-saved { grid-area: saved; }
  .dec-row select, .dec-row textarea {
    font-family: inherit; color: var(--text); background: var(--surface);
    border: 1px solid var(--hairline-strong); border-radius: 7px; outline: none;
    transition: border-color 0.15s, box-shadow 0.15s; width: 100%;
  }
  .dec-row select { font-size: 12px; font-weight: 600; padding: 9px 10px; }
  .dec-row textarea { font-size: 12px; font-weight: 500; padding: 9px 10px; resize: vertical; line-height: 1.4; min-height: 38px; }
  .dec-row select:focus, .dec-row textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(163,124,47,0.12); }
  .btn-decision {
    font-family: inherit; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
    color: #fff; background: var(--gold); border: 1px solid var(--gold); border-radius: 7px;
    padding: 10px 16px; cursor: pointer; transition: 0.15s; white-space: nowrap;
  }
  .btn-decision:hover { filter: brightness(0.94); }
  .dec-saved { font-size: 10px; font-weight: 700; color: var(--sage); letter-spacing: 0.04em; }

  @media (max-width: 1024px) {
    .dec-row { grid-template-columns: 1fr; gap: 12px; }
  }

  /* ── ЖУРНАЛ ── */
  .journal-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    padding: 22px 26px; background: var(--surface); border: 1px solid var(--hairline);
    border-radius: var(--radius); margin-bottom: 18px; position: relative; overflow: hidden;
  }
  .journal-head::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(163,124,47,0.45) 18%, rgba(163,124,47,0.55) 30%, rgba(163,124,47,0.18) 60%, transparent 100%);
  }
  .journal-title-wrap { display: flex; flex-direction: column; gap: 5px; }
  .journal-title { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; color: var(--text); }
  .journal-sub { font-size: 11px; font-weight: 500; color: var(--text-muted); line-height: 1.5; }
  .journal-controls { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
  .journal-filter { display: flex; flex-direction: column; gap: 5px; }
  .journal-filter label { font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
  .journal-filter-row { display: flex; align-items: center; gap: 7px; }
  .journal-filter select {
    font-family: inherit; font-size: 12px; font-weight: 600; color: var(--text);
    background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 7px;
    padding: 9px 11px; outline: none;
  }
  .journal-filter select:focus { border-color: var(--fact); }
  .journal-export { display: flex; gap: 10px; }
  .btn-export {
    font-family: inherit; font-size: 11px; font-weight: 800; letter-spacing: 0.10em; text-transform: uppercase;
    color: var(--text); background: var(--surface); border: 1px solid var(--hairline-strong);
    border-radius: 8px; padding: 11px 16px; cursor: pointer; transition: 0.15s;
    display: inline-flex; align-items: center; gap: 9px;
    box-shadow: 0 1px 2px rgba(11,20,36,0.03);
  }
  .btn-export:hover { border-color: var(--text); background: rgba(11,20,36,0.02); transform: translateY(-1px); box-shadow: 0 4px 12px -4px rgba(11,20,36,0.15); }
  .btn-export.primary {
    color: #fff; background: var(--fact); border-color: var(--fact);
  }
  .btn-export.primary:hover { background: #16314f; color: #fff; border-color: #16314f; }
  .btn-export svg { width: 14px; height: 14px; flex-shrink: 0; }
  .btn-export .be-format {
    font-size: 9px; font-weight: 700; letter-spacing: 0.10em;
    padding: 2px 6px; border-radius: 3px;
    background: rgba(255,255,255,0.18); color: inherit; opacity: 0.85;
    margin-left: 2px;
  }
  .btn-export:not(.primary) .be-format {
    background: rgba(11,20,36,0.05);
  }

  .journal-table {
    width: 100%; background: var(--surface); border: 1px solid var(--hairline);
    border-radius: var(--radius); overflow: hidden; border-collapse: separate; border-spacing: 0;
    box-shadow: 0 1px 2px rgba(11,20,36,0.04), 0 12px 32px -16px rgba(11,20,36,0.08);
  }
  .journal-table th {
    text-align: left; font-size: 9px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--text-muted); padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--hairline);
    vertical-align: bottom;
  }
  .journal-table td { padding: 16px; border-bottom: 1px solid var(--hairline); vertical-align: top; font-size: 12.5px; color: var(--text-secondary); line-height: 1.45; }
  .journal-table tr:last-child td { border-bottom: none; }
  .jr-period { font-weight: 800; color: var(--text); white-space: nowrap; }
  .jr-kpi { font-weight: 700; color: var(--text); }
  .jr-exec { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted); text-transform: uppercase; margin-top: 3px; }
  .jr-dev { font-weight: 800; color: var(--coral); white-space: nowrap; }
  .jr-dev.over { color: var(--coral); }
  .jr-figures { font-size: 11px; color: var(--text-muted); margin-top: 3px; white-space: nowrap; }
  .jr-reason { font-weight: 700; color: var(--text); }
  .jr-comment { font-style: italic; color: var(--text-muted); margin-top: 4px; }
  .jr-none { color: var(--text-dim); font-style: italic; }
  .jr-cell-decision { min-width: 240px; }
  .jr-cell-decision select, .jr-cell-decision textarea {
    font-family: inherit; color: var(--text); background: var(--surface);
    border: 1px solid var(--hairline-strong); border-radius: 7px; outline: none; width: 100%; margin-bottom: 7px;
  }
  .jr-cell-decision select { font-size: 12px; font-weight: 600; padding: 8px 9px; }
  .jr-cell-decision textarea { font-size: 12px; font-weight: 500; padding: 8px 9px; resize: vertical; line-height: 1.4; }
  .jr-cell-decision select:focus, .jr-cell-decision textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(163,124,47,0.10); }
  .jr-save {
    font-family: inherit; font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    color: #fff; background: var(--gold); border: 1px solid var(--gold); border-radius: 6px;
    padding: 8px 12px; cursor: pointer;
  }
  .jr-save:hover { filter: brightness(0.94); }
  .jr-saved-at { font-size: 9.5px; font-weight: 700; color: var(--sage); margin-top: 6px; }
  .journal-empty {
    padding: 60px 26px; text-align: center; color: var(--text-muted); font-size: 13px; font-weight: 500;
    background: var(--surface); border: 1px dashed var(--hairline-strong); border-radius: var(--radius);
  }
  .journal-section-title {
    font-size: 10px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-muted); margin: 24px 0 10px;
  }
  .journal-section-title:first-child { margin-top: 0; }
  .journal-table-detail { margin-bottom: 8px; }
  .jr-note-item { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--hairline); }
  .jr-note-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .jr-note-meta { font-size: 10px; font-weight: 700; color: var(--text-muted); margin-bottom: 3px; }
  .btn-export.subtle {
    background: transparent; border-color: var(--hairline-strong); color: var(--text-secondary);
    font-size: 11px; padding: 10px 14px;
  }
  .btn-export.subtle:hover { border-color: var(--fact-light); color: var(--fact); }
  .nzp-proj-name-row {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  }
  .nzp-proj-name-row .nzp-proj-name { flex: 1; min-width: 0; }
  .debtor-col-name {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
  }
  .debtor-name-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .obj-detail-notes-empty {
    font-size: 12px; color: var(--text-muted); margin-bottom: 12px;
  }
  .obj-detail-notes-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .obj-detail-note-item {
    padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 8px;
    background: var(--surface-2);
  }
  .obj-detail-note-meta { font-size: 10px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
  .obj-detail-note-text { font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
  .obj-detail-note-assign { font-size: 11px; font-weight: 700; color: var(--fact); margin-top: 4px; }
  .obj-detail-note-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: 4px;
    width: auto;
    height: auto;
    line-height: 1.2;
    white-space: nowrap;
  }
  .review-note-btn {
    flex-shrink: 0; font-family: inherit; font-size: 13px; line-height: 1;
    width: 28px; height: 28px; border: 1px solid var(--hairline-strong); border-radius: 7px;
    background: var(--surface); cursor: pointer; position: relative; transition: 0.15s;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .review-note-btn:hover { border-color: var(--gold); background: rgba(163,124,47,0.06); }
  .review-note-count {
    position: absolute; top: -5px; right: -5px; min-width: 14px; height: 14px; padding: 0 3px;
    border-radius: 7px; background: var(--gold); color: #fff; font-size: 8px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
  }
  .rn-context { margin-bottom: 16px; }
  .rn-context-label { font-weight: 800; font-size: 15px; color: var(--text); }
  .rn-context-sub { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-top: 4px; }
  .rn-existing { margin-bottom: 16px; }
  .rn-existing-title { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
  .rn-existing-item {
    padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 8px;
    margin-bottom: 8px; background: var(--surface-2);
  }
  .rn-existing-meta { font-size: 10px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
  .rn-existing-text { font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
  .rn-existing-assign { font-size: 11px; font-weight: 700; color: var(--fact); margin-top: 4px; }
  .rn-delete-btn {
    margin-top: 8px; font-family: inherit; font-size: 10px; font-weight: 700;
    border: none; background: transparent; color: var(--coral); cursor: pointer; padding: 0;
  }
  .rn-form { display: flex; flex-direction: column; gap: 12px; }
  .rn-field { display: flex; flex-direction: column; gap: 5px; }
  .rn-field span { font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
  .rn-field input, .rn-field select, .rn-field textarea {
    font-family: inherit; font-size: 13px; padding: 9px 10px; border: 1px solid var(--hairline-strong);
    border-radius: 8px; background: var(--surface);
  }
  .rn-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

  /* ══════════════════════════════════════
     PROJECTS VIEW
  ══════════════════════════════════════ */
  .proj-head {
    background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
    padding: 20px 26px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
    position: relative; overflow: hidden;
    box-shadow: 0 1px 2px rgba(11,20,36,0.04), 0 12px 32px -16px rgba(11,20,36,0.08);
  }
  .proj-head::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(163,124,47,0.45) 18%, rgba(163,124,47,0.55) 30%, rgba(163,124,47,0.18) 60%, transparent 100%);
  }
  .proj-head-left { display: flex; flex-direction: column; gap: 3px; }
  .proj-head-title { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 22px; letter-spacing: -0.015em; color: var(--text); }
  .proj-head-sub { font-size: 9.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }
  .proj-summary { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
  .proj-kpi { display: flex; flex-direction: column; gap: 3px; text-align: right; }
  .proj-kpi-val { font-family: 'Inter', sans-serif; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); line-height: 1; }
  .proj-kpi-lbl { font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }
  .proj-kpi-sep { width: 1px; height: 36px; background: var(--hairline-strong); }
  .proj-pct-chip {
    font-size: 13px; font-weight: 800; padding: 8px 14px; border-radius: 6px;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .proj-pct-chip.behind { color: var(--coral); background: rgba(194,65,12,0.08); border: 1px solid rgba(194,65,12,0.22); }
  .proj-pct-chip.ok { color: var(--sage); background: rgba(21,128,61,0.08); border: 1px solid rgba(21,128,61,0.22); }
  .proj-pct-chip.par { color: var(--amber); background: rgba(180,83,9,0.08); border: 1px solid rgba(180,83,9,0.22); }

  .proj-controls {
    background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
    padding: 11px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    box-shadow: 0 1px 2px rgba(11,20,36,0.03);
  }
  .proj-ctrl-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); flex-shrink: 0; }
  .proj-ctrl-select {
    font-family: inherit; font-size: 12px; font-weight: 600; color: var(--text);
    background: var(--surface-2); border: 1px solid var(--hairline-strong); border-radius: 6px;
    padding: 6px 10px; outline: none; cursor: pointer;
  }
  .proj-ctrl-select:focus { border-color: var(--fact); box-shadow: 0 0 0 2px rgba(30,58,95,0.08); }
  .proj-ctrl-sep { width: 1px; height: 20px; background: var(--hairline-strong); }
  .proj-search {
    font-family: inherit; font-size: 12px; font-weight: 500; color: var(--text);
    background: var(--surface-2); border: 1px solid var(--hairline-strong); border-radius: 6px;
    padding: 6px 10px; outline: none; min-width: 180px;
  }
  .proj-search:focus { border-color: var(--fact); box-shadow: 0 0 0 2px rgba(30,58,95,0.08); }
  .proj-search::placeholder { color: var(--text-dim); font-weight: 400; }
  .proj-count { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--text-muted); }
  .proj-toggle-done {
    font-family: inherit; font-size: 10.5px; font-weight: 700; color: var(--text-secondary);
    background: transparent; border: 1px solid var(--hairline-strong); border-radius: 6px;
    padding: 5px 10px; cursor: pointer; transition: 0.15s;
  }
  .proj-toggle-done.on { color: var(--fact); background: rgba(30,58,95,0.06); border-color: rgba(30,58,95,0.25); }
  .proj-toggle-done:hover { border-color: var(--text-dim); }

  .proj-table-wrap {
    background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(11,20,36,0.04), 0 12px 32px -16px rgba(11,20,36,0.08);
  }
  .proj-table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .proj-table th {
    font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-muted); background: var(--surface-2); border-bottom: 1px solid var(--hairline);
    padding: 10px 14px; text-align: left; white-space: nowrap; position: sticky; top: 0; z-index: 1;
  }
  .proj-table th.num { text-align: right; }
  .proj-table td { padding: 9px 14px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
  .proj-table tr:last-child td { border-bottom: none; }
  .proj-table tr.proj-row:hover td { background: rgba(11,20,36,0.015); cursor: default; }

  .proj-group-hdr td {
    background: rgba(30,58,95,0.04); border-bottom: 1px solid var(--hairline-strong);
    border-top: 2px solid rgba(30,58,95,0.12); padding: 8px 14px;
  }
  .proj-group-hdr-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .proj-group-hdr-name { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--fact); text-transform: uppercase; }
  .proj-group-stats { font-size: 10.5px; font-weight: 600; color: var(--text-secondary); }
  .proj-group-pct {
    display: inline-block; padding: 2px 7px; border-radius: 3px; font-size: 10px; font-weight: 800;
    letter-spacing: 0.08em;
  }
  .proj-group-pct.behind { color: var(--coral); background: rgba(194,65,12,0.08); }
  .proj-group-pct.ok { color: var(--sage); background: rgba(21,128,61,0.08); }
  .proj-group-pct.par { color: var(--amber); background: rgba(180,83,9,0.08); }

  .proj-total-row td {
    background: rgba(11,20,36,0.03); font-weight: 700;
    border-top: 2px solid var(--hairline-strong); border-bottom: none; padding: 10px 14px;
  }
  .proj-total-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }

  .proj-cell-main { display: flex; flex-direction: column; gap: 2px; min-width: 160px; }
  .proj-client { font-weight: 700; color: var(--text); font-size: 11.5px; line-height: 1.3; }
  .proj-object { font-weight: 500; color: var(--text-secondary); font-size: 11px; line-height: 1.3; }
  .proj-contract { font-size: 9.5px; color: var(--text-dim); margin-top: 1px; }

  .proj-status {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 3px 7px; border-radius: 4px; white-space: nowrap;
  }
  .proj-status.active { color: var(--sage); background: rgba(21,128,61,0.08); border: 1px solid rgba(21,128,61,0.2); }
  .proj-status.done { color: var(--text-muted); background: rgba(11,20,36,0.04); border: 1px solid var(--hairline); }
  .proj-status.cancelled { color: var(--coral); background: rgba(194,65,12,0.06); border: 1px solid rgba(194,65,12,0.2); }
  .proj-status-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
  .proj-status.active .proj-status-dot { background: var(--sage); }
  .proj-status.done .proj-status-dot { background: var(--text-muted); }
  .proj-status.cancelled .proj-status-dot { background: var(--coral); }

  .proj-num { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--text); text-align: right; white-space: nowrap; display: block; }
  .proj-num-sm { font-size: 9.5px; font-weight: 600; color: var(--text-muted); display: block; margin-top: 2px; text-align: right; }
  .proj-num-zero { color: var(--text-dim); }

  .proj-bar-cell { min-width: 110px; }
  .proj-mini-bar { height: 4px; border-radius: 99px; background: var(--plan); margin-top: 5px; width: 90px; position: relative; overflow: hidden; display: inline-block; }
  .proj-mini-fill { position: absolute; inset-block: 0; left: 0; border-radius: 99px; min-width: 3px; }
  .proj-mini-fill.ok { background: var(--sage); }
  .proj-mini-fill.behind { background: var(--coral); }
  .proj-mini-fill.par { background: var(--amber); }
  .proj-mini-fill.over { background: var(--sage-light); }
  .proj-mini-fill.noplan { background: var(--fact-light); }

  .proj-pct-lbl { font-size: 11px; font-weight: 800; display: inline-block; min-width: 36px; text-align: right; }
  .proj-pct-lbl.ok { color: var(--sage); }
  .proj-pct-lbl.behind { color: var(--coral); }
  .proj-pct-lbl.par { color: var(--amber); }
  .proj-pct-lbl.over { color: var(--sage); }
  .proj-pct-lbl.noplan { color: var(--text-muted); }

  .proj-dev { font-weight: 700; font-size: 12px; white-space: nowrap; }
  .proj-dev.pos { color: var(--sage); }
  .proj-dev.neg { color: var(--coral); }
  .proj-dev.neu { color: var(--text-muted); }

  .proj-readiness { font-size: 10.5px; font-weight: 700; color: var(--fact); display: block; }
  .proj-contract-val { font-size: 10.5px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; text-align: right; }
  .proj-empty-row td { padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 13px; border: none; }

  /* ══════════════════════════════════════
     NZP INLINE DRILL-DOWN PANEL
  ══════════════════════════════════════ */
  .nzp-drill-wrap {
    grid-column: 1 / -1;
    border-top: 1px solid var(--hairline);
    background: var(--surface-2);
  }
  .nzp-drill-toggle {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 9px 28px; background: transparent; border: none; cursor: pointer;
    font-family: inherit; color: var(--text-secondary); transition: background 0.15s;
  }
  .nzp-drill-toggle:hover { background: rgba(11,20,36,0.03); }
  .nzp-drill-toggle-left { display: flex; align-items: center; gap: 10px; }
  .nzp-drill-icon { font-size: 13px; color: var(--fact); }
  .nzp-drill-label { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary); }
  .nzp-drill-summary { font-size: 10px; color: var(--text-muted); margin-left: 8px; }
  .nzp-drill-chevron { font-size: 14px; color: var(--text-dim); transition: transform 0.2s; }
  .nzp-drill-chevron.open { transform: rotate(180deg); }

  .nzp-drill-body { overflow: hidden; transition: max-height 0.3s ease; }
  .nzp-drill-body.collapsed { max-height: 0; }
  .nzp-drill-body.expanded { max-height: 9999px; }

  .nzp-drill-inner { padding: 16px 28px 20px; }

  /* Tab bar */
  .nzp-tabs { display: flex; gap: 4px; margin-bottom: 16px; }
  .nzp-tab {
    font-family: inherit; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 5px 12px; border-radius: 5px; border: 1px solid var(--hairline-strong);
    background: transparent; color: var(--text-muted); cursor: pointer; transition: 0.15s;
  }
  .nzp-tab:hover { color: var(--text-secondary); background: rgba(11,20,36,0.03); }
  .nzp-tab.active { color: var(--fact); background: rgba(30,58,95,0.07); border-color: rgba(30,58,95,0.25); }

  /* NZP insights: концентрация, драйверы, застывшие */
  .nzp-insights { margin-bottom: 16px; }
  .nzp-insights-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  }
  .nzp-insight-card {
    border: 1px solid var(--hairline); border-radius: 10px; padding: 12px 14px;
    background: var(--surface); display: flex; flex-direction: column; gap: 8px; min-width: 0;
  }
  .nzp-insight-head {
    font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary);
  }
  .nzp-insight-sub { font-size: 9.5px; font-weight: 600; color: var(--text-muted); margin-top: -4px; }
  .nzp-insight-kpi { font-size: 11px; font-weight: 700; color: var(--text); line-height: 1.35; }
  .nzp-insight-kpi b { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px; color: var(--fact); }
  .nzp-insight-empty { font-size: 10px; font-weight: 600; color: var(--text-muted); line-height: 1.4; padding: 4px 0; }
  .nzp-insight-net { font-size: 10px; font-weight: 700; color: var(--text-secondary); }
  .nzp-insight-net b.pos { color: var(--sage); }
  .nzp-insight-net b.neg { color: var(--coral); }
  .nzp-insight-net b.neu { color: var(--text-muted); }
  .nzp-conc-bar {
    display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--surface-2);
    border: 1px solid var(--hairline);
  }
  .nzp-conc-seg { min-width: 2px; transition: width 0.2s; }
  .nzp-conc-seg--empty { width: 100%; background: var(--hairline); }
  .nzp-conc-legend { display: flex; flex-direction: column; gap: 4px; }
  .nzp-conc-leg {
    display: grid; grid-template-columns: 10px 1fr auto; gap: 6px; align-items: center; font-size: 10px;
  }
  .nzp-conc-swatch { width: 8px; height: 8px; border-radius: 2px; }
  .nzp-conc-leg-name {
    color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .nzp-conc-leg-pct { font-weight: 800; color: var(--text); font-feature-settings: "tnum"; }
  .nzp-driver-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .nzp-driver-col-title {
    font-size: 8.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 4px;
  }
  .nzp-insight-row {
    display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: baseline;
    padding: 5px 0; border-bottom: 1px solid var(--hairline); font-size: 10px;
  }
  .nzp-insight-row:last-child { border-bottom: none; }
  .nzp-insight-row.nzp-proj-row-clickable {
    cursor: pointer; margin: 0 -6px; padding: 5px 6px; border-radius: 6px; border-bottom: none;
  }
  .nzp-insight-row.nzp-proj-row-clickable:hover { background: rgba(30,58,95,0.06); }
  .nzp-insight-row-name {
    color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .nzp-insight-row-meta { font-size: 9px; font-weight: 700; color: var(--text-muted); text-align: right; grid-column: 2; }
  .nzp-insight-row-val { font-weight: 800; font-feature-settings: "tnum"; white-space: nowrap; }
  .nzp-insight-row-val.pos { color: var(--sage); }
  .nzp-insight-row-val.neg { color: var(--coral); }
  .nzp-insight-row-val.neu { color: var(--text-secondary); }
  .nzp-insight-row--frozen,
  .nzp-insight-row--behind { grid-template-columns: 1fr auto auto; }
  .nzp-frozen-list { display: flex; flex-direction: column; gap: 2px; }
  .nzp-insight-link {
    font-family: inherit; font-size: 10px; font-weight: 700; color: var(--fact);
    background: transparent; border: none; padding: 6px 0 0; cursor: pointer; text-align: left;
  }
  .nzp-insight-link:hover { text-decoration: underline; }
  .nzp-frozen-pill {
    font-size: 8px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    color: #b45309; background: rgba(180,83,9,0.1); border: 1px solid rgba(180,83,9,0.22);
    border-radius: 4px; padding: 2px 5px; flex-shrink: 0;
  }

  /* View: Вклад */
  .nzp-contrib-view { display: flex; flex-direction: column; gap: 12px; }
  .nzp-contrib-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  }
  .nzp-contrib-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; min-width: 0; }
  .nzp-filter-input, .nzp-filter-select {
    font-family: inherit; font-size: 12px; font-weight: 600; color: var(--text);
    background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 8px;
    padding: 7px 10px; outline: none; transition: border-color 0.15s;
  }
  .nzp-filter-input { min-width: 180px; flex: 1; max-width: 260px; }
  .nzp-filter-input:focus, .nzp-filter-select:focus { border-color: var(--fact-light); box-shadow: 0 0 0 3px rgba(30,58,95,0.08); }
  .nzp-filter-select { cursor: pointer; max-width: 160px; }
  .nzp-filter-check {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
    color: var(--text-secondary); cursor: pointer; white-space: nowrap; user-select: none;
  }
  .nzp-filter-check input { accent-color: var(--fact); }
  .nzp-contrib-meta { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted); white-space: nowrap; }
  .nzp-contrib-grid {
    display: grid; gap: 0;
    border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; background: var(--surface);
  }
  .nzp-col-hdr-sort .nzp-sort-btn {
    font-family: inherit; font-size: 8.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-muted); background: transparent; border: none; padding: 0; cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px; transition: color 0.15s;
  }
  .nzp-col-hdr-sort .nzp-sort-btn:hover { color: var(--text); }
  .nzp-col-hdr-sort .nzp-sort-btn.active { color: var(--fact); }
  .nzp-sort-arrow { font-size: 8px; opacity: 0.7; }
  .nzp-col-static { font-size: 8.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); text-align: center; }
  .nzp-contrib-empty {
    padding: 28px 16px; text-align: center; font-size: 12px; font-weight: 600; color: var(--text-muted);
    grid-column: 1 / -1;
  }
  .nzp-contrib-pager {
    display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
    padding-top: 4px;
  }
  .nzp-page-btn, .nzp-page-nav {
    font-family: inherit; font-size: 11px; font-weight: 700; min-width: 32px; height: 32px;
    border: 1px solid var(--hairline-strong); border-radius: 8px; background: var(--surface);
    color: var(--text-secondary); cursor: pointer; transition: 0.15s;
  }
  .nzp-page-nav { padding: 0 10px; }
  .nzp-page-btn:hover, .nzp-page-nav:hover:not(:disabled) { border-color: var(--fact-light); color: var(--fact); }
  .nzp-page-btn.active { background: var(--text); border-color: var(--text); color: #fff; }
  .nzp-page-nav:disabled { opacity: 0.35; cursor: default; }
  .nzp-page-btns { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
  .nzp-page-label { font-size: 10px; font-weight: 700; color: var(--text-muted); margin-left: 4px; }
  .nzp-col-hdr {
    display: grid; grid-template-columns: 1fr 90px 90px 80px 72px;
    gap: 10px; padding: 8px 10px;
    font-size: 8.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--text-muted); border-bottom: 1px solid var(--hairline);
    background: var(--surface-2);
  }
  .nzp-col-hdr span:not(:first-child) { text-align: right; }
  .nzp-proj-row {
    display: grid; grid-template-columns: 1fr 90px 90px 80px 72px;
    gap: 10px; padding: 8px 10px; align-items: center;
    border-bottom: 1px solid var(--hairline); transition: background 0.1s;
  }
  .nzp-proj-row:last-child { border-bottom: none; }
  .nzp-proj-row:hover { background: rgba(11,20,36,0.02); }
  .nzp-proj-row-clickable { cursor: pointer; transition: background 0.15s, box-shadow 0.15s; }
  .nzp-proj-row-clickable:hover { background: rgba(30,58,95,0.05); box-shadow: inset 3px 0 0 var(--fact-light); }
  .nzp-proj-row-clickable:focus-visible { outline: 2px solid var(--fact-light); outline-offset: -2px; }
  .nzp-top-item.nzp-proj-row-clickable { border-radius: 8px; padding: 6px 8px; margin: 0 -8px; }
  .nzp-resp-item.nzp-proj-row-clickable { cursor: pointer; border-radius: 6px; padding: 4px 6px; margin: 0 -6px; transition: background 0.15s; }
  .nzp-resp-item.nzp-proj-row-clickable:hover { background: rgba(30,58,95,0.06); }
  .nzp-proj-row.total-row { background: rgba(11,20,36,0.025); border-top: 1.5px solid var(--hairline-strong); border-bottom: none; margin-top: 4px; }
  .nzp-proj-name { font-size: 11.5px; font-weight: 600; color: var(--text); line-height: 1.25; }
  .nzp-proj-client { font-size: 9.5px; color: var(--text-muted); margin-top: 1px; }

  .strip .acts-drill-wrap { border-top: 1px solid var(--hairline); }
  .acts-summary-chips {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
  }
  .acts-chip {
    font-size: 10px; font-weight: 700; color: var(--text-secondary);
    padding: 6px 10px; border-radius: 999px; border: 1px solid var(--hairline);
    background: var(--surface);
  }
  .acts-chip b { font-feature-settings: "tnum"; margin-right: 4px; }
  .acts-chip.issued { color: var(--coral); border-color: rgba(194,65,12,0.25); background: rgba(194,65,12,0.05); }
  .acts-chip.draft { color: var(--text-muted); }
  .acts-chip.coord { color: var(--amber, #b45309); border-color: rgba(180,83,9,0.2); background: rgba(180,83,9,0.06); }
  .acts-contrib-grid .acts-col-hdr,
  .acts-contrib-grid .acts-proj-row,
  .acts-contrib-grid .acts-total-row {
    grid-template-columns: minmax(140px, 1.4fr) minmax(100px, 1.1fr) 72px 72px 88px minmax(90px, 1fr) 64px;
  }
  .acts-contrib-grid .acts-col-hdr span:nth-child(5) {
    text-align: center;
  }
  .acts-contrib-grid .acts-proj-row > .act-sign-badge,
  .acts-contrib-grid .acts-total-row > .act-sign-badge {
    justify-self: center;
  }
  .acts-col-contract {
    font-size: 9.5px; font-weight: 600; color: var(--text-secondary); line-height: 1.25;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .acts-col-date { font-size: 10px; font-weight: 700; color: var(--text-secondary); text-align: right; font-feature-settings: "tnum"; }
  .acts-col-money { font-size: 9.5px; font-weight: 800; text-align: right; }
  .acts-col-money.pos { color: var(--sage); }
  .acts-col-money.neg { color: var(--coral); }
  .acts-col-money.neu { color: var(--text-muted); }
  .act-sign-badge {
    display: inline-flex; justify-content: center; align-items: center;
    font-size: 8.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
    padding: 2px 8px; border-radius: 999px; border: none; line-height: 1.35;
    white-space: nowrap;
  }
  .act-sign-badge.signed { color: #166534; background: rgba(22,101,52,0.07); }
  .act-sign-badge.issued { color: #9a3412; background: rgba(154,52,18,0.07); }
  .act-sign-badge.coord { color: #92400e; background: rgba(146,64,14,0.07); }
  .act-sign-badge.draft { color: var(--text-muted); background: rgba(11,20,36,0.05); }
  .act-status-pill {
    font-size: 9px; font-weight: 500; color: var(--text-muted); line-height: 1.3; text-align: right;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .obj-detail-status.act-st-signed { color: var(--sage); background: rgba(21,128,61,0.08); border-color: rgba(21,128,61,0.22); }
  .obj-detail-status.act-st-issued { color: var(--coral); background: rgba(194,65,12,0.08); border-color: rgba(194,65,12,0.22); }
  .obj-detail-status.act-st-coord { color: #b45309; background: rgba(180,83,9,0.08); border-color: rgba(180,83,9,0.22); }
  .obj-detail-status.act-st-draft { color: var(--text-muted); background: rgba(11,20,36,0.04); }
  .obj-detail-kpi-val.pos { color: var(--sage); }
  .obj-detail-kpi-val.neg { color: var(--coral); }

  .receipts-contrib-grid .receipts-col-hdr,
  .receipts-contrib-grid .receipts-proj-row,
  .receipts-contrib-grid .receipts-total-row {
    grid-template-columns: minmax(150px, 1.5fr) 72px 88px 88px minmax(100px, 1fr) 72px;
  }

  .debtor-contrib-grid .debtor-col-hdr,
  .debtor-contrib-grid .debtor-contrib-row,
  .debtor-contrib-grid .debtor-total-row {
    display: grid;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    grid-template-columns: 36px minmax(120px, 1.8fr) 64px minmax(100px, 1.2fr) 76px 72px;
  }
  .debtor-contrib-grid .debtor-col-hdr {
    font-size: 8.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-muted); border-bottom: 1px solid var(--hairline); background: var(--surface-2);
  }
  .debtor-contrib-grid .debtor-col-hdr span:not(:first-child):not(:nth-child(2)) { text-align: right; }
  .debtor-contrib-grid .debtor-contrib-row {
    border-bottom: 1px solid var(--hairline); transition: background 0.1s;
  }
  .debtor-contrib-grid .debtor-contrib-row:hover { background: rgba(11,20,36,0.02); }
  .debtor-contrib-grid .debtor-contrib-row:last-of-type { border-bottom: none; }
  .debtor-contrib-grid .debtor-total-row {
    background: rgba(11,20,36,0.025); border-top: 1.5px solid var(--hairline-strong);
    font-size: 11px; font-weight: 700;
  }
  .debtor-col-num { font-size: 10px; font-weight: 700; color: var(--text-muted); text-align: center; font-feature-settings: "tnum"; }
  .debtor-col-name { font-size: 11.5px; font-weight: 600; color: var(--text); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .debtor-col-account { font-size: 10px; font-weight: 600; color: var(--text-secondary); text-align: right; font-feature-settings: "tnum"; }
  .debtor-col-term { font-size: 10px; color: var(--text-muted); line-height: 1.25; text-align: right; }
  .debtor-col-amt { text-align: right; }
  .debtor-term { font-size: 10px; color: var(--text-muted); line-height: 1.25; }
  .debtor-bucket-tag {
    font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
    padding: 3px 6px; border-radius: 4px; text-align: center; line-height: 1.2;
  }
  .debtor-bucket-tag.gss { color: #1e3a5f; background: rgba(30,58,95,0.1); }
  .debtor-bucket-tag.over60 { color: var(--coral); background: rgba(194,65,12,0.08); }
  .debtor-bucket-tag.current { color: var(--text-muted); background: rgba(11,20,36,0.05); }
  .debtor-total-tags { font-size: 10px; color: var(--text-muted); text-align: right; }

  .creditor-contrib-grid .creditor-col-hdr,
  .creditor-contrib-grid .creditor-contrib-row,
  .creditor-contrib-grid .creditor-total-row {
    display: grid;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    grid-template-columns: 36px minmax(110px, 1.5fr) minmax(90px, 1.2fr) 56px 64px 76px 72px;
  }
  .creditor-contrib-grid .creditor-col-hdr {
    font-size: 8.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-muted); border-bottom: 1px solid var(--hairline); background: var(--surface-2);
  }
  .creditor-contrib-grid .creditor-col-hdr span:not(:first-child):not(:nth-child(2)) { text-align: right; }
  .creditor-contrib-grid .creditor-contrib-row {
    border-bottom: 1px solid var(--hairline); transition: background 0.1s;
  }
  .creditor-contrib-grid .creditor-contrib-row:hover { background: rgba(11,20,36,0.02); }
  .creditor-contrib-grid .creditor-contrib-row:last-of-type { border-bottom: none; }
  .creditor-contrib-grid .creditor-total-row {
    background: rgba(11,20,36,0.025); border-top: 1.5px solid var(--hairline-strong);
    font-size: 11px; font-weight: 700;
  }
  .creditor-col-num { font-size: 10px; font-weight: 700; color: var(--text-muted); text-align: center; font-feature-settings: "tnum"; }
  .creditor-col-name { font-size: 11.5px; font-weight: 600; color: var(--text); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .creditor-col-contract { font-size: 10px; color: var(--text-secondary); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .creditor-col-account { font-size: 10px; font-weight: 600; color: var(--text-secondary); text-align: right; font-feature-settings: "tnum"; }
  .creditor-col-term { font-size: 10px; color: var(--text-muted); line-height: 1.25; text-align: right; }
  .creditor-col-amt { text-align: right; }
  .creditor-bucket-tag {
    font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
    padding: 3px 6px; border-radius: 4px; text-align: center; line-height: 1.2;
  }
  .creditor-bucket-tag.gss { color: #1e3a5f; background: rgba(30,58,95,0.1); }
  .creditor-bucket-tag.over60 { color: var(--coral); background: rgba(194,65,12,0.08); }
  .creditor-bucket-tag.current { color: var(--text-muted); background: rgba(11,20,36,0.05); }
  .creditor-total-tags { font-size: 10px; color: var(--text-muted); text-align: right; }

  .nzp-accountant-comment {
    margin: 0 12px 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(163, 124, 47, 0.06);
    border: 1px solid rgba(163, 124, 47, 0.18);
  }
  .nzp-accountant-comment-lbl {
    font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 4px;
  }
  .nzp-accountant-comment-text { font-size: 12px; line-height: 1.45; color: var(--text); }

  .contracts-portfolio-grid .contracts-portfolio-hdr,
  .contracts-portfolio-grid .contracts-portfolio-row,
  .contracts-portfolio-grid .contracts-portfolio-total {
    grid-template-columns: minmax(150px, 1.6fr) 88px 72px 72px 64px 64px minmax(88px, 1fr);
  }

  /* Загрузка выгрузки 1С — поступления */
  .upload-dropzone {
    border: 1.5px dashed var(--hairline-strong);
    border-radius: 12px;
    padding: 22px 18px;
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
  }
  .upload-dropzone:hover,
  .upload-dropzone.dragover,
  .upload-dropzone.has-file {
    border-color: var(--gold);
    background: rgba(163, 124, 47, 0.04);
  }
  .upload-drop-inner {
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  }
  .upload-icon { color: var(--text-muted); }
  .upload-title { font-size: 13px; font-weight: 700; color: var(--text); }
  .upload-sub { font-size: 11px; color: var(--text-muted); }
  .upload-file-meta {
    margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline);
    font-size: 12px; color: var(--text-secondary); text-align: center;
  }
  .receipts-upload-summary { margin-top: 4px; }

  .receipts-preview-card { max-width: 960px; }
  .receipts-preview-body { max-height: min(70vh, 640px); overflow: auto; padding-top: 0; }
  .receipts-preview-summary {
    display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center;
    padding: 10px 12px; margin-bottom: 10px;
    background: var(--surface-2); border-radius: 8px; font-size: 13px;
  }
  .receipts-preview-src { font-size: 11px; color: var(--text-muted); }
  .receipts-preview-note {
    font-size: 11px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.45;
  }
  .receipts-preview-expenses {
    margin: 0 0 12px; padding: 10px 12px; border-radius: 8px;
    border: 1px solid rgba(30,58,95,0.15); background: rgba(30,58,95,0.04);
  }
  .receipts-preview-expenses-title {
    font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--fact); margin-bottom: 8px;
  }
  .receipts-preview-expenses-grid { display: flex; flex-wrap: wrap; gap: 6px; }
  .receipts-preview-exp-chip {
    font-size: 10px; font-weight: 700; color: var(--text-secondary);
    padding: 4px 8px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface);
  }
  .receipts-preview-exp-chip b { color: var(--text); margin-right: 4px; }
  .receipts-preview-table .rp-static { font-size: 11px; font-weight: 600; color: var(--text-secondary); }
  .receipts-preview-table-wrap { overflow-x: auto; }
  .receipts-preview-table {
    width: 100%; border-collapse: collapse; font-size: 12px;
  }
  .receipts-preview-table th,
  .receipts-preview-table td {
    padding: 6px 8px; border-bottom: 1px solid var(--hairline); vertical-align: middle;
  }
  .receipts-preview-table th {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--text-muted); text-align: left; position: sticky; top: 0; background: var(--surface);
  }
  .receipts-preview-table .num { text-align: right; white-space: nowrap; }
  .receipts-preview-table .rp-inp {
    width: 100%; min-width: 0; font-size: 12px; padding: 5px 7px;
    border: 1px solid var(--hairline); border-radius: 6px; background: var(--surface);
  }
  .receipts-preview-table .rp-date { min-width: 118px; }
  .receipts-preview-table .rp-amount { min-width: 88px; text-align: right; }
  .receipts-preview-table .rp-del {
    border: none; background: transparent; color: var(--coral);
    font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px;
  }
  .receipts-preview-total td { font-weight: 700; border-top: 2px solid var(--hairline-strong); }
  .receipts-preview-actions { justify-content: flex-end; gap: 10px; }

  .receipts-summary-card {
    border: 1px solid var(--hairline); border-radius: 10px; padding: 12px 14px; background: var(--surface);
  }
  .receipts-summary-title {
    font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
  }
  .receipts-summary-body { font-size: 13px; color: var(--text-secondary); }
  .receipts-summary-body strong { color: var(--text); }
  .receipts-summary-src { display: block; margin-top: 4px; font-size: 10px; color: var(--text-dim); }
  .receipts-summary-empty { font-size: 12px; color: var(--text-muted); padding: 8px 2px; }

  .nzp-bullet {
    display: flex; flex-direction: column; gap: 3px;
  }
  .nzp-bullet-bar { height: 5px; border-radius: 99px; position: relative; overflow: hidden; background: #e8ecf1; }
  .nzp-bullet-plan { background: #e8ecf1; }
  .nzp-bullet-fact { background: #e8ecf1; }
  .nzp-bullet-fill { position: absolute; top: 0; left: 0; bottom: 0; border-radius: 99px; }
  .fill-ok { background: var(--sage); }
  .fill-par { background: var(--amber); }
  .fill-bad { background: var(--coral); }
  .fill-over { background: var(--sage-light); }
  .fill-dark { background: var(--fact); }
  .fill-none { background: var(--text-dim); }
  .nzp-num { font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 500; text-align: right; color: var(--text); white-space: nowrap; }
  .nzp-num.zero { color: var(--text-dim); }
  .nzp-pct { font-size: 11px; font-weight: 800; text-align: right; white-space: nowrap; }
  .nzp-pct.ok { color: var(--sage); }
  .nzp-pct.par { color: var(--amber); }
  .nzp-pct.bad { color: var(--coral); }
  .nzp-pct.over { color: var(--sage-light); }
  .nzp-pct.none { color: var(--text-dim); }
  .nzp-dev { font-size: 11px; font-weight: 800; text-align: right; white-space: nowrap; }
  .nzp-dev.pos { color: var(--sage); }
  .nzp-dev.neg { color: var(--coral); }
  .nzp-dev.neu { color: var(--text-dim); }

  /* View: По отв-м */
  .nzp-resp-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .nzp-resp-card {
    border: 1px solid var(--hairline); border-radius: 8px; padding: 12px 14px;
    background: var(--surface); display: flex; flex-direction: column; gap: 8px;
  }
  .nzp-resp-name { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fact); }
  .nzp-resp-kpi { display: flex; gap: 12px; align-items: baseline; }
  .nzp-resp-val { font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 500; color: var(--text); }
  .nzp-resp-plan { font-size: 10px; color: var(--text-muted); }
  .nzp-resp-bar { height: 5px; border-radius: 99px; background: var(--plan); position: relative; overflow: hidden; margin: 0; }
  .nzp-resp-fill { position: absolute; inset: 0; border-radius: 99px; }
  .nzp-resp-items { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--hairline); padding-top: 6px; }
  .nzp-resp-item { display: flex; justify-content: space-between; align-items: baseline; font-size: 10px; }
  .nzp-resp-item-name { color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
  .nzp-resp-item-dev { font-weight: 700; white-space: nowrap; }

  /* View: Топ откл */
  .nzp-top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .nzp-top-section-title { font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
  .nzp-top-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--hairline); }
  .nzp-top-item:last-child { border-bottom: none; }
  .nzp-top-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
  .nzp-top-info { flex: 1; min-width: 0; }
  .nzp-top-obj { font-size: 11px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nzp-top-resp { font-size: 9.5px; color: var(--text-muted); }
  .nzp-top-dev { font-size: 12px; font-weight: 800; flex-shrink: 0; }
  .nzp-source-note { font-size: 9px; color: var(--text-dim); margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--hairline); }

  /* ════ СПРАВОЧНИКИ (этап 3) ════ */
  .refs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
  .refs-head-title { font-family: 'Inter', sans-serif; font-size: 26px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
  .refs-head-sub { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-top: 4px; }
  .refs-add-btn { white-space: nowrap; }

  .refs-tabs { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; padding: 4px; margin-bottom: 16px; }
  .refs-tab {
    font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
    color: var(--text-muted); background: transparent; border: none; border-radius: 7px;
    padding: 8px 16px; transition: 0.15s;
  }
  .refs-tab:hover { color: var(--text); }
  .refs-tab.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline-strong); }

  .rf-table-wrap { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
  .rf-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
  .rf-table thead th {
    text-align: left; font-size: 9px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-muted); padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--hairline);
  }
  .rf-table thead th.num, .rf-table td.num { text-align: right; }
  .rf-table tbody td { padding: 11px 14px; border-bottom: 1px solid var(--hairline); color: var(--text); vertical-align: middle; }
  .rf-table tbody tr:last-child td { border-bottom: none; }
  .rf-table tbody tr:hover { background: var(--surface-2); }
  .rf-mono { font-feature-settings: "tnum"; color: var(--text-secondary); }
  .rf-strong { font-weight: 700; color: var(--text); }
  .rf-sub { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; }
  .rf-inactive { opacity: 0.5; }
  .rf-badge { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--hairline-strong); color: var(--text-secondary); white-space: nowrap; }
  .rf-badge.ok { color: var(--sage); background: rgba(21,128,61,0.08); border-color: rgba(21,128,61,0.25); }
  .rf-badge.off { color: var(--text-muted); }
  .rf-actions { text-align: right; white-space: nowrap; }
  .rf-act { font-size: 13px; cursor: pointer; background: transparent; border: 1px solid var(--hairline-strong); border-radius: 6px; padding: 4px 8px; margin-left: 4px; transition: 0.15s; }
  .rf-act:hover { background: var(--surface-2); border-color: var(--text-muted); }
  .rf-act.danger:hover { border-color: var(--coral); background: rgba(194,65,12,0.06); }
  .rf-foot { font-size: 10.5px; font-weight: 700; color: var(--text-dim); margin-top: 10px; letter-spacing: 0.04em; }
  .rf-note { font-size: 11.5px; font-weight: 600; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; }

  /* модалка */
  .modal-overlay {
    position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
    background: rgba(11,20,36,0.45); backdrop-filter: blur(3px); padding: 24px;
    animation: nzpReveal 0.2s ease;
  }
  .modal-overlay[hidden] { display: none; }
  .modal-card {
    width: 100%; max-width: 640px; max-height: 88vh; display: flex; flex-direction: column;
    background: var(--surface); border-radius: 16px; box-shadow: 0 24px 64px rgba(11,20,36,0.28);
    overflow: hidden;
  }
  .modal-card-wide { max-width: 720px; }
  .modal-subtitle { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
  .modal-head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--hairline); }
  .modal-title { font-size: 16px; font-weight: 800; color: var(--text); }
  .modal-close { font-size: 22px; line-height: 1; cursor: pointer; background: transparent; border: none; color: var(--text-muted); padding: 0 4px; }
  .modal-close:hover { color: var(--text); }
  .modal-body { flex: 1; min-height: 0; padding: 20px 22px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .modal-error { margin: 0 22px; font-size: 11.5px; font-weight: 700; color: var(--coral); background: rgba(194,65,12,0.08); border: 1px solid rgba(194,65,12,0.25); border-radius: 8px; padding: 9px 12px; }
  .modal-error[hidden] { display: none; }
  .modal-actions { flex-shrink: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--hairline); background: var(--surface); }

  /* карточка объекта (drill-down) */
  .obj-detail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .obj-detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .obj-detail-status {
    font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px; border: 1px solid var(--hairline);
  }
  .obj-detail-status.active { color: var(--fact); background: rgba(30,58,95,0.08); border-color: rgba(30,58,95,0.22); }
  .obj-detail-status.done { color: var(--sage); background: rgba(21,128,61,0.08); }
  .obj-detail-status.cancelled { color: var(--coral); background: rgba(194,65,12,0.08); }
  .obj-detail-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px;
    padding: 14px 16px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface-2);
  }
  .obj-detail-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .obj-detail-cell.wide { grid-column: 1 / -1; }
  .obj-detail-lbl { font-size: 8.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
  .obj-detail-val { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.35; }
  .obj-detail-val.accent { color: var(--fact); font-feature-settings: "tnum"; }
  .obj-detail-kpis {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  }
  .obj-detail-kpi {
    padding: 12px 14px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--surface);
    display: flex; flex-direction: column; gap: 4px;
  }
  .obj-detail-kpi-lbl { font-size: 8.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
  .obj-detail-kpi-val { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 500; color: var(--text); letter-spacing: -0.02em; }
  .obj-detail-kpi-val.neg { color: var(--coral); }
  .obj-detail-kpi-val.pos { color: var(--sage); }
  .obj-detail-kpi-sub { font-size: 10px; font-weight: 600; color: var(--text-muted); }
  .obj-detail-section-title {
    font-size: 9.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
    padding-bottom: 8px; border-bottom: 1px solid var(--hairline); margin-bottom: 4px;
  }
  .obj-detail-chart {
    padding: 14px 16px 12px; border-radius: 12px; border: 1px solid var(--hairline);
    background: linear-gradient(180deg, rgba(11,20,36,0.02) 0%, transparent 100%);
    min-width: 0;
  }
  .obj-detail-chart-scroll {
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
    margin: 0 -2px; padding: 0 2px 2px;
  }
  .obj-detail-chart-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 5), minmax(72px, 1fr));
    gap: 8px;
    align-items: end;
    min-width: max(100%, calc(var(--cols, 5) * 76px));
  }
  .obj-detail-chart-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-width: 0;
  }
  .obj-detail-chart-plot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    height: 92px;
  }
  .obj-detail-chart-pct {
    font-size: 10px;
    font-weight: 800;
    color: #1e3a5f;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .obj-detail-chart-bar-track {
    width: 30px;
    height: 58px;
    display: flex;
    align-items: flex-end;
    border-radius: 6px;
    background: rgba(207, 214, 225, 0.35);
    overflow: hidden;
  }
  .obj-detail-chart-bar {
    width: 100%;
    border-radius: 6px 6px 0 0;
    background: #b8c2d0;
    min-height: 0;
    transition: height 0.2s ease;
  }
  .obj-detail-chart-col.current .obj-detail-chart-bar { background: var(--fact); }
  .obj-detail-chart-col.current .obj-detail-chart-pct { color: var(--fact); }
  .obj-detail-chart-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 0;
    padding: 7px 6px;
    border-radius: 8px;
    border: 1px solid var(--hairline);
    background: var(--surface-2);
    font-size: 9px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .obj-detail-chart-mon {
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    flex-shrink: 0;
  }
  .obj-detail-chart-sep::before {
    content: '·';
    margin: 0 5px;
    color: var(--text-dim);
    font-weight: 400;
  }
  .obj-detail-chart-rub {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .obj-detail-chart-col.current .obj-detail-chart-label {
    border-color: rgba(163, 124, 47, 0.45);
    background: rgba(163, 124, 47, 0.08);
  }
  .obj-detail-chart-col.current .obj-detail-chart-mon { color: var(--text); }
  .obj-detail-reason {
    padding: 12px 14px; border-radius: 10px; border: 1px solid var(--hairline);
    background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--text-secondary); line-height: 1.45;
  }
  .obj-detail-reason strong {
    display: block; font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 8px;
  }
  .obj-detail-reason--empty { border-style: dashed; }
  .obj-detail-reason-code { font-weight: 700; color: var(--text); margin-bottom: 4px; }
  .obj-detail-reason-text { font-weight: 500; color: var(--text-secondary); }
  .obj-detail-reason-empty { font-size: 11px; font-weight: 600; color: var(--text-dim); font-style: italic; }
  .obj-detail-quality {
    padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(180, 83, 9, 0.28);
    background: rgba(180, 83, 9, 0.06); font-size: 11px; color: var(--text-secondary); line-height: 1.45;
  }
  .obj-detail-quality strong {
    display: block; font-size: 9px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    color: #b45309; margin-bottom: 8px;
  }
  .obj-detail-quality-list { margin: 0; padding-left: 16px; }
  .obj-detail-quality-list li { margin-bottom: 4px; }
  .obj-detail-quality-list li:last-child { margin-bottom: 0; }
  .obj-detail-review-notes {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px; border-radius: 12px; border: 1px solid var(--hairline);
    background: var(--surface-2); margin-top: 2px;
  }
  .obj-detail-review-notes .obj-detail-section-title { margin-bottom: 0; }

  .rf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .rf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-top: 14px; }
  .rf-field:first-child, .rf-grid .rf-field { margin-top: 0; }
  .rf-label { font-size: 9.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
  .rf-label .req { color: var(--coral); }
  .rf-input {
    font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text);
    background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 8px;
    padding: 10px 12px; outline: none; width: 100%; transition: border-color 0.15s, box-shadow 0.15s;
  }
  .rf-input:focus { border-color: var(--fact-light); box-shadow: 0 0 0 3px rgba(30,58,95,0.1); }
  textarea.rf-input { resize: vertical; }
  .rf-hint { font-size: 10px; font-weight: 600; color: var(--text-dim); }
  .rf-check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); padding: 9px 0; }
  .rf-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
  .rf-checks .rf-check { padding: 4px 0; }

  /* ════ АДМИН-ПАНЕЛЬ ════ */
  .rf-badge.role-admin { color: var(--coral); background: rgba(194,65,12,0.08); border-color: rgba(194,65,12,0.25); }
  .rf-badge.role-manager { color: var(--fact-light); background: rgba(30,58,95,0.08); border-color: rgba(30,58,95,0.22); }
  .rf-badge.role-executor { color: var(--text-secondary); }
  .rf-badge.lvl-info { color: var(--text-secondary); }
  .rf-badge.lvl-warn { color: #92660a; background: rgba(217,164,6,0.12); border-color: rgba(217,164,6,0.3); }
  .rf-badge.lvl-error { color: var(--coral); background: rgba(194,65,12,0.1); border-color: rgba(194,65,12,0.3); }

  .log-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
  .log-stats { display: flex; gap: 14px; }
  .log-stat { font-size: 11.5px; font-weight: 700; color: var(--text-muted); }
  .log-stat b { color: var(--text); font-size: 13px; }
  .log-stat.warn b { color: #92660a; }
  .log-stat.err b { color: var(--coral); }
  .log-filters { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 9px; padding: 3px; }
  .log-lvl { font-family: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; color: var(--text-muted); background: transparent; border: none; border-radius: 6px; padding: 6px 12px; transition: 0.15s; }
  .log-lvl:hover { color: var(--text); }
  .log-lvl.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
  .log-actions { display: flex; gap: 8px; margin-left: auto; }
  .log-btn { font-size: 12px; padding: 8px 14px; cursor: pointer; }
  .log-btn.danger { color: var(--coral); }

  .log-table { font-size: 12px; }
  .log-table td { vertical-align: top; }
  .log-ts { white-space: nowrap; color: var(--text-muted); font-size: 11px; }
  .log-detail { color: var(--text-secondary); max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .log-table tr.log-error td { background: rgba(194,65,12,0.035); }
  .log-table tr.log-warn td { background: rgba(217,164,6,0.04); }

  /* ════ УВЕДОМЛЕНИЯ (рассылки KPI) ════ */
  .notify-btn {
    position: relative;
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid var(--hairline);
    border-radius: 9px;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    color: var(--text-muted);
    transition: color 0.15s, background 0.15s, border-color 0.15s;
  }
  .notify-btn:hover {
    color: var(--text);
    background: rgba(11, 20, 36, 0.03);
    border-color: var(--hairline-strong);
  }
  .notify-icon { width: 17px; height: 17px; display: block; flex-shrink: 0; }
  .notify-badge {
    position: absolute; top: 3px; right: 3px;
    min-width: 14px; height: 14px; padding: 0 3px;
    border-radius: 999px;
    background: var(--text);
    color: #fff;
    font-size: 8px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--surface);
    box-shadow: 0 1px 4px rgba(11, 20, 36, 0.14);
  }
  .notify-badge[hidden] { display: none !important; }
  .notify-panel { position: absolute; top: calc(100% + 10px); right: 0; width: min(380px, 92vw); max-height: 420px; background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 14px; box-shadow: 0 16px 48px rgba(11,20,36,0.18); z-index: 300; display: flex; flex-direction: column; overflow: hidden; animation: nzpReveal 0.2s ease; }
  .notify-panel[hidden] { display: none; }
  .notify-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--hairline); font-size: 12px; font-weight: 800; color: var(--text); }
  .notify-mark-all { font-family: inherit; font-size: 10.5px; font-weight: 700; color: var(--fact-light); background: transparent; border: none; cursor: pointer; }
  .notify-list { overflow-y: auto; padding: 8px; }
  .notify-empty { padding: 24px 16px; text-align: center; font-size: 12px; font-weight: 600; color: var(--text-muted); }
  .notify-item { padding: 12px; border-radius: 10px; border: 1px solid var(--hairline); margin-bottom: 8px; background: var(--surface-2); }
  .notify-item.unread { border-color: rgba(30,58,95,0.25); background: rgba(30,58,95,0.04); }
  .notify-item-title { font-size: 12.5px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
  .notify-item-msg { font-size: 11.5px; font-weight: 600; color: var(--text-secondary); line-height: 1.45; margin-bottom: 6px; }
  .notify-item-meta { font-size: 10px; color: var(--text-dim); margin-bottom: 8px; }
  .notify-go { font-family: inherit; font-size: 11px; font-weight: 800; color: var(--fact-light); background: transparent; border: none; cursor: pointer; padding: 0; }
  .notify-go:hover { text-decoration: underline; }

  .mail-actions { margin-bottom: 14px; }
  .mail-table textarea.rf-input { min-height: 56px; font-size: 12px; }
  .mail-hist-title { font-size: 14px; font-weight: 800; color: var(--text); margin: 22px 0 10px; }
  .smtp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
  .smtp-test-to { max-width: 240px; flex: 1; min-width: 180px; }
  .smtp-env-note { border-color: rgba(217,164,6,0.35); background: rgba(217,164,6,0.08); }
  #smtp-form.rf-grid { margin-bottom: 12px; }
