
    :root {
      color-scheme: light;
      --navy-950: #0b1220;
      --navy-900: #111827;
      --navy-850: #172033;
      --navy-800: #1e293b;
      --navy-700: #334155;
      --brand-700: #3e6636;
      --brand-600: #507d45;
      --brand-500: #6b9560;
      --brand-100: #eaf2e7;
      --brand-50: #f3f8f1;
      --canvas: #f3f5f2;
      --surface: #ffffff;
      --surface-soft: #f8faf7;
      --border: #dfe5de;
      --border-strong: #cfd8cf;
      --text: #18211b;
      --text-soft: #465149;
      --muted: #748078;
      --muted-light: #a0aaa2;
      --amber-700: #98510f;
      --amber-600: #b86618;
      --amber-100: #ffedd5;
      --amber-50: #fff8ed;
      --danger-700: #a33434;
      --danger-100: #feeaea;
      --focus: #7aa7e8;
      --shadow-float: 0 16px 48px rgba(16, 24, 40, .14);
      --radius: 14px;
      --radius-sm: 10px;
      --sidebar-width: 248px;
      --ease: 180ms ease;
      --space-1: 4px;
      --space-2: 8px;
      --space-3: 12px;
      --space-4: 16px;
      --space-5: 20px;
      --space-6: 24px;
      --space-8: 32px;
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      background: var(--canvas);
      color: var(--text);
      font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 14px;
      line-height: 1.45;
      -webkit-font-smoothing: antialiased;
    }

    button, input, select { font: inherit; }

    button, a { -webkit-tap-highlight-color: transparent; }

    button:focus-visible,
    a:focus-visible,
    summary:focus-visible,
    input:focus-visible,
    select:focus-visible {
      outline: 3px solid color-mix(in srgb, var(--focus) 58%, transparent);
      outline-offset: 2px;
    }

    button { cursor: pointer; }

    .icon {
      width: 18px;
      height: 18px;
      display: inline-block;
      flex: 0 0 auto;
      stroke: currentColor;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
      fill: none;
    }

    .icon-sm { width: 16px; height: 16px; }
    .icon-lg { width: 22px; height: 22px; }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .app-shell { min-height: 100vh; }
    body:not(.authenticated) .app-shell { display: none; }
    body.authenticated .login-view { display: none; }

    .login-view {
      min-height: 100vh;
      display: grid;
      grid-template-columns: minmax(420px, 1.05fr) minmax(430px, .95fr);
      background: #f4f6f2;
    }

    .login-showcase {
      position: relative;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      padding: 32px clamp(32px, 5vw, 76px) 36px;
      background: linear-gradient(148deg, #0b1322 0%, #111c30 56%, #17263c 100%);
      color: #fff;
      isolation: isolate;
    }

    .login-showcase::before, .login-showcase::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none; }
    .login-showcase::before { width: 430px; height: 430px; right: -180px; top: -160px; background: radial-gradient(circle, rgba(111, 153, 96, .34), rgba(111, 153, 96, 0) 68%); }
    .login-showcase::after { width: 360px; height: 360px; left: -180px; bottom: -170px; background: radial-gradient(circle, rgba(76, 119, 155, .22), rgba(76, 119, 155, 0) 70%); }
    .login-grid-pattern { position: absolute; inset: 0; z-index: -2; opacity: .055; background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, #000, transparent 84%); }

    .login-brand { display: flex; align-items: center; gap: 11px; }
    .login-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg, #83aa78, var(--brand-600)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 10px 25px rgba(0,0,0,.18); }
    .brand-logo { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
    .login-brand-copy strong { display: block; font-size: 14px; }
    .login-brand-copy span { display: block; margin-top: 2px; color: #8591a4; font-size: 9px; }
    .login-showcase-content { width: min(580px, 100%); margin: auto 0; padding: 54px 0 34px; }
    .login-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(143, 185, 132, .18); border-radius: 999px; background: rgba(104, 148, 93, .10); color: #b7d2b0; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
    .login-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #82b575; box-shadow: 0 0 0 4px rgba(130,181,117,.10); }
    .login-showcase h1 { max-width: 540px; margin: 18px 0 14px; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.01; letter-spacing: -.055em; }
    .login-showcase h1 span { color: #8fb384; }
    .login-showcase-lead { max-width: 500px; margin: 0; color: #9aa6b8; font-size: 13px; line-height: 1.65; }
    .login-insight-card { width: min(520px, 100%); margin-top: 30px; padding: 14px; border: 1px solid rgba(255,255,255,.085); border-radius: 16px; background: rgba(255,255,255,.045); box-shadow: 0 22px 60px rgba(0,0,0,.15); backdrop-filter: blur(12px); }
    .login-insight-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
    .login-insight-head strong { font-size: 10px; }
    .login-live { display: inline-flex; align-items: center; gap: 5px; color: #9ec195; font-size: 7px; font-weight: 800; text-transform: uppercase; }
    .login-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #78ad6c; }
    .login-insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .login-insight { padding: 11px; border-radius: 11px; background: rgba(255,255,255,.045); }
    .login-insight span { display: block; color: #7f8ba0; font-size: 7px; font-weight: 750; text-transform: uppercase; }
    .login-insight strong { display: block; margin-top: 4px; color: #f2f6fa; font-size: 20px; font-variant-numeric: tabular-nums; }
    .login-insight small { display: block; margin-top: 3px; color: #849184; font-size: 7px; }
    .login-showcase-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #657187; font-size: 8px; }
    .login-secure { display: inline-flex; align-items: center; gap: 6px; color: #849184; }

    .login-panel { min-height: 100vh; display: grid; place-items: center; padding: 32px clamp(24px, 5vw, 72px); background: radial-gradient(circle at 100% 0, rgba(80,125,69,.08), transparent 35%), #f5f7f3; }
    .login-panel-inner { width: min(420px, 100%); }
    .login-mobile-brand { display: none; }
    .login-heading h2 { margin: 0; color: var(--text); font-size: 29px; letter-spacing: -.04em; }
    .login-heading p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
    .login-form { margin-top: 26px; }
    .login-field { margin-bottom: 15px; }
    .login-field label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: var(--text-soft); font-size: 9px; font-weight: 800; }
    .login-field-control { position: relative; }
    .login-field-control > .icon { position: absolute; left: 13px; top: 50%; z-index: 1; color: #849087; transform: translateY(-50%); pointer-events: none; }
    .login-field-control input { width: 100%; min-height: 48px; padding: 10px 44px 10px 42px; border: 1px solid #d6ded5; border-radius: 11px; background: #fff; color: var(--text); font-size: 11px; outline: none; box-shadow: 0 1px 0 rgba(15,23,42,.02); transition: border-color var(--ease), box-shadow var(--ease); }
    .login-field-control input:focus { border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(80,125,69,.10); }
    .login-password-toggle { position: absolute; top: 50%; right: 8px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); transform: translateY(-50%); }
    .login-password-toggle:hover { color: var(--brand-700); background: var(--brand-50); }
    .login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 20px; }
    .login-remember { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
    .login-remember input { accent-color: var(--brand-700); }
    .login-forgot { padding: 0; border: 0; background: transparent; color: var(--brand-700); font-size: 9px; font-weight: 800; }
    .login-submit { width: 100%; min-height: 48px; justify-content: center; border-radius: 11px; font-size: 10px; box-shadow: 0 10px 24px rgba(62,102,54,.16); }
    .login-submit .icon { margin-left: auto; }
    .login-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted-light); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
    .login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
    .login-help-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.55); }
    .login-help-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--brand-50); color: var(--brand-700); }
    .login-help-card strong { display: block; color: var(--text-soft); font-size: 9px; }
    .login-help-card span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.45; }
    .login-prototype-note { margin: 14px 0 0; color: var(--muted-light); font-size: 8px; text-align: center; }

    .sidebar {
      position: fixed;
      inset: 0 auto 0 0;
      z-index: 30;
      width: var(--sidebar-width);
      display: flex;
      flex-direction: column;
      background: linear-gradient(180deg, #0d1525 0%, var(--navy-900) 58%, var(--navy-950) 100%);
      color: #cbd5e1;
      border-right: 1px solid rgba(255, 255, 255, .06);
    }

    .brand {
      min-height: 72px;
      display: flex;
      align-items: center;
      gap: 11px;
      padding: 15px 16px;
    }

    .brand-mark {
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      border-radius: 12px;
      color: #fff;
      background: linear-gradient(145deg, #7aa16f, var(--brand-600));
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
    }

    .brand-copy strong {
      display: block;
      color: #fff;
      font-size: 15px;
      line-height: 1.2;
    }

    .brand-copy span {
      color: #8e9aae;
      font-size: 10px;
    }

    .sidebar-workspace {
      display: flex;
      align-items: center;
      gap: 9px;
      margin: 0 11px 8px;
      padding: 10px 11px;
      border: 1px solid rgba(255, 255, 255, .075);
      border-radius: 11px;
      background: rgba(255, 255, 255, .035);
    }

    .workspace-status { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #78ad6c; box-shadow: 0 0 0 4px rgba(120, 173, 108, .11); }
    .workspace-copy { min-width: 0; flex: 1; }
    .workspace-copy strong { display: block; color: #e8edf4; font-size: 9px; }
    .workspace-copy span { display: block; margin-top: 1px; color: #778398; font-size: 8px; }
    .workspace-tag { padding: 3px 6px; border-radius: 6px; background: rgba(107, 149, 96, .14); color: #a9c9a1; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }

    .nav-scroll {
      flex: 1;
      overflow-y: auto;
      padding: 6px 10px 18px;
    }

    .nav-label {
      margin: 17px 10px 7px;
      color: #626e83;
      font-size: 8px;
      font-weight: 800;
      letter-spacing: .13em;
      text-transform: uppercase;
    }

    .nav-label:first-child { margin-top: 8px; }

    .nav-item {
      width: 100%;
      min-height: 42px;
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 2px 0;
      padding: 6px 8px;
      border: 1px solid transparent;
      border-radius: 10px;
      background: transparent;
      color: #aeb8c8;
      text-align: left;
      transition: color var(--ease), background var(--ease), border-color var(--ease), transform var(--ease);
    }

    .nav-item:hover { color: #fff; background: rgba(255, 255, 255, .045); transform: translateX(1px); }

    .nav-item.active {
      color: #f4fbf2;
      border-color: rgba(130, 177, 119, .18);
      background: linear-gradient(90deg, rgba(107, 149, 96, .23), rgba(107, 149, 96, .10));
      box-shadow: inset 2px 0 0 #7eaa73;
    }

    .nav-icon { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: #7f8ba0; transition: color var(--ease), background var(--ease); }
    .nav-icon .icon { width: 16px; height: 16px; }
    .nav-item:hover .nav-icon { color: #c5cfdd; background: rgba(255, 255, 255, .045); }
    .nav-item.active .nav-icon { color: #d9ead5; background: rgba(126, 170, 115, .16); }
    .nav-text { min-width: 0; flex: 1; font-size: 11px; font-weight: 620; }
    .nav-badge { min-width: 20px; padding: 3px 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #94a0b3; font-size: 7px; font-weight: 800; text-align: center; }
    .nav-badge.alert { background: rgba(184, 102, 24, .16); color: #e5b982; }

    .sidebar-profile {
      display: grid;
      grid-template-columns: 36px 1fr 34px;
      align-items: center;
      gap: 10px;
      margin: 0 10px 10px;
      padding: 10px;
      border: 1px solid rgba(255, 255, 255, .07);
      border-radius: 12px;
      background: rgba(255, 255, 255, .035);
    }

    .profile-avatar {
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      border-radius: 10px;
      background: linear-gradient(145deg, #6f9970, #42693c);
      color: #fff;
      font-size: 12px;
      font-weight: 800;
    }

    .profile-copy strong { display: block; color: #f8fafc; font-size: 12px; }
    .profile-copy span { display: flex; align-items: center; gap: 5px; color: #7f8ba0; font-size: 9px; }
    .profile-copy span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #75a86a; }

    .profile-action {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255, 255, 255, .08);
      border-radius: 9px;
      background: rgba(255, 255, 255, .04);
      color: #9aa6b8;
    }

    .mobile-bar { display: none; }

    .sidebar-backdrop {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 25;
      border: 0;
      background: rgba(11, 18, 32, .56);
      backdrop-filter: blur(2px);
    }

    .main-shell {
      min-height: 100vh;
      margin-left: var(--sidebar-width);
      padding: 20px 24px 96px;
    }

    .content-wrap {
      width: min(1180px, 100%);
      margin: 0 auto;
    }

    #dashboardView[hidden],
    #reportsView[hidden],
    #clientsView[hidden],
    #clientDetailView[hidden],
    #accountsView[hidden],
    #complaintsView[hidden],
    #teamView[hidden],
    #settingsView[hidden],
    #companiesView[hidden],
    #detailsView[hidden] { display: none; }

    .breadcrumb-row {
      min-height: 32px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
      color: var(--muted);
      font-size: 12px;
    }

    .breadcrumb {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .breadcrumb a { color: var(--text-soft); text-decoration: none; font-weight: 650; }

    .prototype-note {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--muted);
    }

    .companies-page-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 18px;
    }

    .companies-page-head h1 {
      margin: 0;
      color: var(--text);
      font-size: 28px;
      letter-spacing: -.04em;
    }

    .companies-page-head p {
      margin: 5px 0 0;
      color: var(--muted);
      font-size: 12px;
    }

    .companies-overview {
      display: flex;
      align-items: center;
      gap: 18px;
      padding: 10px 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
    }

    .overview-item { min-width: 58px; }
    .overview-item span { display: block; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; }
    .overview-item strong { display: block; margin-top: 2px; color: var(--text); font-size: 18px; font-variant-numeric: tabular-nums; }
    .overview-divider { width: 1px; height: 30px; background: var(--border); }

    .companies-toolbar {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 14px;
      padding: 9px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
    }

    .companies-search-wrap {
      position: relative;
      width: min(360px, 38vw);
    }

    .companies-search-wrap .icon {
      position: absolute;
      left: 11px;
      top: 50%;
      color: var(--muted);
      transform: translateY(-50%);
      pointer-events: none;
    }

    .companies-search,
    .companies-filter {
      min-height: 38px;
      border: 1px solid var(--border-strong);
      border-radius: 9px;
      background: #fff;
      color: var(--text-soft);
      font-size: 11px;
    }

    .companies-search { width: 100%; padding: 8px 10px 8px 34px; }
    .companies-filter { padding: 8px 32px 8px 10px; }
    .companies-toolbar-spacer { flex: 1; }
    .companies-result-count { color: var(--muted); font-size: 10px; white-space: nowrap; }

    .companies-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .company-list-card {
      min-width: 0;
      display: flex;
      flex-direction: column;
      padding: 16px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
      transition: border-color var(--ease), transform var(--ease);
    }

    .company-list-card:hover {
      border-color: #bcc9ba;
      transform: translateY(-1px);
    }

    .company-list-card[hidden] { display: none; }

    .company-card-top {
      display: flex;
      align-items: flex-start;
      gap: 11px;
    }

    .list-company-logo {
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      border: 1px solid #dce5da;
      border-radius: 11px;
      background: var(--brand-50);
      color: var(--brand-700);
      font-size: 13px;
      font-weight: 850;
      letter-spacing: -.02em;
    }

    .list-company-logo.navy { border-color: #d9e0e8; background: #eef2f7; color: var(--navy-800); }
    .list-company-logo.amber { border-color: #eee0bc; background: var(--amber-100); color: var(--amber-700); }

    .company-card-heading { min-width: 0; flex: 1; }
    .company-card-title-line { display: flex; align-items: center; gap: 7px; min-width: 0; }
    .company-card-title-line h2 { min-width: 0; margin: 0; overflow: hidden; color: var(--text); font-size: 14px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
    .company-card-caption { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }

    .company-card-status {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      flex: 0 0 auto;
      color: var(--brand-700);
      font-size: 9px;
      font-weight: 800;
    }

    .company-card-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
    .company-card-status.setup { color: var(--amber-700); }
    .company-card-status.paused { color: #7b7260; }
    .company-card-status.finished { color: #526274; }

    .company-card-owner {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 15px;
      padding-bottom: 13px;
      border-bottom: 1px solid #edf0ec;
    }

    .company-card-owner .responsible-avatar { width: 27px; height: 27px; border-radius: 8px; font-size: 8px; }
    .company-card-owner span:last-child { min-width: 0; }
    .company-card-owner small { display: block; color: var(--muted); font-size: 8px; }
    .company-card-owner strong { display: block; margin-top: 1px; overflow: hidden; color: var(--text-soft); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

    .company-demand-row {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 12px;
      margin-top: 14px;
    }

    .company-demand-row span { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
    .company-demand-row strong { color: var(--text); font-size: 11px; font-variant-numeric: tabular-nums; }

    .company-progress-track {
      height: 6px;
      margin-top: 7px;
      overflow: hidden;
      border-radius: 999px;
      background: #e9ede8;
    }

    .company-progress-fill { height: 100%; border-radius: inherit; background: var(--brand-600); }
    .company-progress-fill.warning { background: var(--amber-600); }
    .company-progress-fill.muted { background: #9ba6b3; }
    .company-progress-fill.p-0 { width: 0; }
    .company-progress-fill.p-25 { width: 25%; }
    .company-progress-fill.p-45 { width: 45%; }
    .company-progress-fill.p-58 { width: 58%; }
    .company-progress-fill.p-70 { width: 70%; }
    .company-progress-fill.p-71 { width: 71%; }
    .company-progress-fill.p-88 { width: 88%; }
    .company-progress-fill.p-86 { width: 86%; }
    .company-progress-fill.p-94 { width: 94%; }
    .company-progress-fill.p-100 { width: 100%; }

    .company-card-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      margin-top: 13px;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--border);
    }

    .company-card-stat { padding: 8px 9px; background: var(--surface-soft); }
    .company-card-stat span { display: block; color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
    .company-card-stat strong { display: block; margin-top: 2px; color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; }

    .company-card-alert {
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 10px;
      color: var(--amber-700);
      font-size: 9px;
      font-weight: 700;
    }

    .company-card-alert .icon { flex: 0 0 auto; }
    .company-card-alert.danger { color: var(--danger-700); }

    .company-start-block {
      margin-top: 10px;
      padding: 10px;
      border: 1px solid #eadbb6;
      border-radius: 10px;
      background: #fffaf0;
    }

    .company-start-title {
      display: flex;
      align-items: center;
      gap: 6px;
      color: var(--amber-700);
      font-size: 9px;
      font-weight: 800;
    }

    .company-start-title .icon { flex: 0 0 auto; }

    .company-missing-items {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin-top: 7px;
    }

    .company-missing-item {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 7px;
      border-radius: 999px;
      background: #f6ead0;
      color: #765c20;
      font-size: 8px;
      font-weight: 750;
    }

    .company-missing-item::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

    .company-card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-top: auto;
      padding-top: 14px;
    }

    .company-card-update { color: var(--muted); font-size: 8px; }
    .company-open-button { padding-inline: 11px; }

    .companies-empty {
      display: none;
      padding: 48px 20px;
      border: 1px dashed var(--border-strong);
      border-radius: var(--radius);
      color: var(--muted);
      text-align: center;
      font-size: 12px;
    }

    .companies-empty.show { display: block; }

    .dashboard-page-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 16px;
    }

    .dashboard-page-head h1 { margin: 0; color: var(--text); font-size: 28px; letter-spacing: -.04em; }
    .dashboard-page-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

    .dashboard-date {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 9px 11px;
      border: 1px solid var(--border);
      border-radius: 9px;
      background: var(--surface);
      color: var(--text-soft);
      font-size: 10px;
      font-weight: 700;
      white-space: nowrap;
    }

    .dashboard-kpis {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 12px;
    }

    .dashboard-kpi {
      min-width: 0;
      display: grid;
      grid-template-columns: 38px minmax(0, 1fr);
      align-items: center;
      gap: 11px;
      padding: 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
    }

    .dashboard-kpi-icon {
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      border-radius: 10px;
      background: var(--brand-50);
      color: var(--brand-700);
    }

    .dashboard-kpi-icon.navy { background: #eef2f7; color: var(--navy-800); }
    .dashboard-kpi-icon.amber { background: var(--amber-100); color: var(--amber-700); }
    .dashboard-kpi-copy span { display: block; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
    .dashboard-kpi-copy strong { display: inline-block; margin-top: 2px; color: var(--text); font-size: 23px; line-height: 1; font-variant-numeric: tabular-nums; }
    .dashboard-kpi-copy small { margin-left: 5px; color: var(--muted); font-size: 9px; }

    .dashboard-main-grid,
    .dashboard-bottom-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr);
      gap: 12px;
      margin-bottom: 12px;
    }

    .dashboard-bottom-grid { grid-template-columns: minmax(300px, .72fr) minmax(0, 1.45fr); }

    .operation-alerts {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      margin-bottom: 12px;
    }

    .operation-alert {
      min-width: 0;
      display: grid;
      grid-template-columns: 32px minmax(0, 1fr) 20px;
      align-items: center;
      gap: 9px;
      padding: 10px 11px;
      border: 1px solid #eadbb6;
      border-radius: 10px;
      background: #fffaf0;
      color: var(--text-soft);
      text-align: left;
    }

    .operation-alert.danger { border-color: #e8c7c7; background: var(--danger-100); }
    .operation-alert-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #f6ead0; color: var(--amber-700); }
    .operation-alert.danger .operation-alert-icon { background: #f5dede; color: var(--danger-700); }
    .operation-alert-copy { min-width: 0; }
    .operation-alert-copy strong { display: block; overflow: hidden; color: var(--text); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
    .operation-alert-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
    .operation-alert > .icon { color: var(--muted); }

    .dashboard-card {
      min-width: 0;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
    }

    .dashboard-card-head {
      min-height: 56px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 12px 15px;
      border-bottom: 1px solid var(--border);
    }

    .dashboard-card-head h2 { margin: 0; color: var(--text); font-size: 14px; letter-spacing: -.02em; }
    .dashboard-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
    .dashboard-card-link { border: 0; background: transparent; color: var(--brand-700); font-size: 9px; font-weight: 800; }

    .demand-overview-list { padding: 4px 15px; }

    .demand-overview-item {
      display: grid;
      grid-template-columns: minmax(150px, 1.1fr) minmax(120px, .8fr) 90px minmax(130px, 1fr) 30px;
      align-items: center;
      gap: 12px;
      min-height: 66px;
      border-bottom: 1px solid #edf0ec;
    }

    .demand-overview-item:last-child { border-bottom: 0; }
    .dashboard-company { display: flex; align-items: center; gap: 9px; min-width: 0; }
    .dashboard-company .list-company-logo { width: 32px; height: 32px; border-radius: 9px; font-size: 9px; }
    .dashboard-company strong { display: block; overflow: hidden; color: var(--text); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
    .dashboard-company span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
    .dashboard-owner { min-width: 0; color: var(--text-soft); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dashboard-deadline strong { display: block; color: var(--text); font-size: 9px; }
    .dashboard-deadline span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
    .dashboard-deadline.warning strong, .dashboard-deadline.warning span { color: var(--danger-700); }
    .dashboard-progress { min-width: 0; }
    .dashboard-progress-copy { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 8px; }
    .dashboard-progress-copy strong { color: var(--text); font-size: 9px; font-variant-numeric: tabular-nums; }
    .dashboard-progress .company-progress-track { margin-top: 5px; }
    .dashboard-open { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--muted); }
    .dashboard-open:hover { color: var(--brand-700); background: var(--brand-50); }

    .owner-load-list { padding: 5px 15px 10px; }
    .owner-load-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 0; }
    .owner-load-item .responsible-avatar { width: 28px; height: 28px; border-radius: 8px; font-size: 8px; }
    .owner-load-name { min-width: 0; }
    .owner-load-name strong { display: block; overflow: hidden; color: var(--text-soft); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
    .owner-load-bar { height: 4px; margin-top: 5px; overflow: hidden; border-radius: 999px; background: #e9ede8; }
    .owner-load-fill { height: 100%; border-radius: inherit; background: var(--brand-600); }
    .owner-load-fill.w-50 { width: 50%; }
    .owner-load-fill.w-100 { width: 100%; }
    .owner-load-count { color: var(--text); font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
    .owner-load-count small { display: block; color: var(--muted); font-size: 7px; font-weight: 650; text-align: right; }

    .deadline-list { padding: 5px 15px 10px; }
    .deadline-item { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf0ec; }
    .deadline-item:last-child { border-bottom: 0; }
    .deadline-date { display: grid; place-items: center; min-height: 42px; border-radius: 9px; background: var(--surface-soft); color: var(--text-soft); }
    .deadline-date strong { font-size: 14px; line-height: 1; }
    .deadline-date span { margin-top: 2px; color: var(--muted); font-size: 7px; font-weight: 750; text-transform: uppercase; }
    .deadline-date.danger { background: var(--danger-100); color: var(--danger-700); }
    .deadline-copy strong { display: block; color: var(--text); font-size: 10px; }
    .deadline-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }

    .schedule-board { padding: 12px 15px 15px; }
    .schedule-header, .schedule-row { display: grid; grid-template-columns: minmax(90px, .9fr) repeat(2, minmax(80px, 1fr)); gap: 8px; }
    .schedule-header { margin-bottom: 6px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
    .schedule-row { align-items: stretch; margin-top: 7px; }
    .schedule-day { padding: 9px 10px; border-radius: 9px; background: var(--navy-900); color: #fff; }
    .schedule-day strong { display: block; font-size: 10px; }
    .schedule-day span { display: block; margin-top: 2px; color: #9eaabc; font-size: 8px; }
    .schedule-cell { padding: 8px 9px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-soft); color: inherit; font: inherit; text-align: left; cursor: pointer; }
    .schedule-cell span { display: block; color: var(--muted); font-size: 8px; }
    .schedule-cell strong { display: block; margin-top: 2px; color: var(--text); font-size: 11px; font-variant-numeric: tabular-nums; }
    .schedule-cell.warning { border-color: #eadbb6; background: #fffaf0; }
    .schedule-cell.warning strong { color: var(--amber-700); }
    .schedule-cell:hover { border-color: #b8c8b5; background: var(--brand-50); }

    .schedule-detail-summary {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      margin-bottom: 12px;
    }

    .schedule-detail-stat { padding: 10px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
    .schedule-detail-stat span { display: block; color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
    .schedule-detail-stat strong { display: block; margin-top: 3px; color: var(--text); font-size: 18px; font-variant-numeric: tabular-nums; }

    .complaints-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
    .complaints-page-head h1 { margin: 0; color: var(--text); font-size: 28px; letter-spacing: -.04em; }
    .complaints-page-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
    .complaints-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
    .complaints-summary-card { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
    .complaints-summary-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: #eef2f7; color: var(--navy-800); }
    .complaints-summary-icon.green { background: var(--brand-50); color: var(--brand-700); }
    .complaints-summary-icon.amber { background: var(--amber-100); color: var(--amber-700); }
    .complaints-summary-copy span { display: block; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
    .complaints-summary-copy strong { display: inline-block; margin-top: 2px; color: var(--text); font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; }
    .complaints-summary-copy small { margin-left: 4px; color: var(--muted); font-size: 8px; }
    .complaints-ingest-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr); gap: 12px; margin-bottom: 12px; align-items: stretch; }
    .complaints-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
    .complaints-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 58px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
    .complaints-card-head h2 { margin: 0; color: var(--text); font-size: 14px; }
    .complaints-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
    .complaint-upload-body { padding: 14px; }
    .complaint-link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .complaint-upload-label { display: block; margin-bottom: 6px; color: var(--text-soft); font-size: 8px; font-weight: 800; }
    .complaint-upload-select, .complaint-paste-area { width: 100%; border: 1px solid var(--border-strong); border-radius: 9px; background: #fff; color: var(--text); font: inherit; font-size: 9px; outline: none; }
    .complaint-upload-select { min-height: 38px; padding: 8px 30px 8px 10px; }
    .complaint-upload-select:disabled { border-color: #dfe5de; background: #f5f7f4; color: var(--text-soft); opacity: 1; cursor: not-allowed; }
    .complaint-auto-demand { display: block; margin-top: 5px; color: var(--muted); font-size: 7px; }
    .complaint-auto-demand.linked { color: var(--brand-700); font-weight: 750; }
    .complaint-paste-area { min-height: 112px; padding: 10px 11px; line-height: 1.55; resize: vertical; }
    .complaint-upload-select:focus, .complaint-paste-area:focus { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(80,125,69,.10); }
    .complaint-source-grid { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 10px; margin-top: 12px; }
    .complaint-dropzone { min-height: 112px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 14px; border: 1px dashed #b8c5b7; border-radius: 10px; background: var(--surface-soft); color: var(--muted); text-align: center; cursor: pointer; transition: border-color var(--ease), background var(--ease); }
    .complaint-dropzone:hover, .complaint-dropzone.dragging { border-color: var(--brand-600); background: var(--brand-50); }
    .complaint-dropzone .icon { color: var(--brand-700); }
    .complaint-dropzone strong { color: var(--text-soft); font-size: 9px; }
    .complaint-dropzone span { font-size: 7px; }
    .complaint-upload-file { margin-top: 7px; color: var(--brand-700); font-size: 7px; font-weight: 750; }
    .complaint-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
    .complaint-form-actions span { color: var(--muted); font-size: 7px; }
    .triage-steps { display: grid; gap: 0; padding: 5px 14px 13px; }
    .triage-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf0ec; }
    .triage-step:last-child { border-bottom: 0; }
    .triage-step-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #eef2f7; color: var(--navy-800); font-size: 9px; font-weight: 850; }
    .triage-step strong { display: block; color: var(--text); font-size: 9px; }
    .triage-step span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.45; }
    .triage-results { margin-bottom: 12px; }
    .triage-overview { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 14px; border-bottom: 1px solid var(--border); }
    .triage-score { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 112px; border-radius: 12px; background: var(--navy-900); color: #fff; text-align: center; }
    .triage-score span { color: #93a0b3; font-size: 8px; font-weight: 750; text-transform: uppercase; }
    .triage-score strong { margin-top: 4px; font-size: 31px; line-height: 1; font-variant-numeric: tabular-nums; }
    .triage-score small { margin-top: 5px; color: #a5c49d; font-size: 7px; }
    .triage-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .triage-category { padding: 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
    .triage-category-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
    .triage-category-head span { color: var(--text-soft); font-size: 8px; font-weight: 800; }
    .triage-category-head strong { color: var(--amber-700); font-size: 14px; }
    .triage-category p { margin: 5px 0 0; color: var(--muted); font-size: 7px; line-height: 1.4; }
    .triage-category-bar { height: 4px; margin-top: 9px; overflow: hidden; border-radius: 999px; background: #e4e9e3; }
    .triage-category-fill { height: 100%; border-radius: inherit; background: var(--amber-600); }
    .triage-category-fill.high { width: 76%; }
    .triage-category-fill.medium { width: 52%; }
    .triage-category-fill.low { width: 28%; }
    .triage-table-toolbar { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-bottom: 1px solid var(--border); background: #fbfcfa; }
    .triage-filter { min-height: 34px; padding: 6px 28px 6px 9px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; color: var(--text-soft); font-size: 8px; }
    .triage-toolbar-spacer { flex: 1; }
    .triage-count { color: var(--muted); font-size: 8px; }
    .triage-text-cell { min-width: 280px; max-width: 430px; }
    .triage-text-cell strong { display: -webkit-box; overflow: hidden; color: var(--text); font-size: 9px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .triage-text-cell span { display: block; margin-top: 3px; color: var(--muted); font-size: 7px; }
    .triage-flags { display: flex; flex-wrap: wrap; gap: 4px; min-width: 160px; }
    .triage-flag { display: inline-flex; padding: 3px 6px; border-radius: 999px; background: var(--amber-100); color: var(--amber-700); font-size: 7px; font-weight: 750; }
    .triage-flag.textual { background: #eef2f7; color: var(--navy-700); }
    .triage-flag.length { background: var(--danger-100); color: var(--danger-700); }
    .triage-flag.success { background: var(--brand-100); color: var(--brand-700); }
    .triage-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .triage-review-column label { display: block; margin-bottom: 6px; color: var(--text-soft); font-size: 8px; font-weight: 800; }
    .triage-review-column textarea { width: 100%; min-height: 190px; padding: 10px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; color: var(--text); font: inherit; font-size: 9px; line-height: 1.55; resize: vertical; }
    .triage-review-column.original textarea { background: var(--surface-soft); color: var(--muted); }
    .triage-findings { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

    .team-page-head, .settings-page-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 14px;
    }

    .team-page-head h1, .settings-page-head h1 { margin: 0; color: var(--text); font-size: 28px; letter-spacing: -.04em; }
    .team-page-head p, .settings-page-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
    .team-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
    .team-summary-card { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
    .team-summary-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: #eef2f7; color: var(--navy-800); }
    .team-summary-icon.green { background: var(--brand-50); color: var(--brand-700); }
    .team-summary-icon.amber { background: var(--amber-100); color: var(--amber-700); }
    .team-summary-copy span { display: block; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
    .team-summary-copy strong { display: inline-block; margin-top: 2px; color: var(--text); font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; }
    .team-summary-copy small { margin-left: 4px; color: var(--muted); font-size: 8px; }
    .team-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; align-items: start; }
    .team-panel, .team-side-card, .settings-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
    .team-panel-head, .team-side-head, .settings-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
    .team-panel-head h2, .team-side-head h2, .settings-card-head h2 { margin: 0; color: var(--text); font-size: 14px; }
    .team-panel-head p, .team-side-head p, .settings-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
    .team-toolbar { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-bottom: 1px solid var(--border); background: #fbfcfa; }
    .team-search-wrap { position: relative; flex: 1; min-width: 180px; }
    .team-search-wrap .icon { position: absolute; left: 11px; top: 50%; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
    .team-search, .team-filter { min-height: 36px; border: 1px solid var(--border-strong); border-radius: 9px; background: #fff; color: var(--text-soft); font-size: 10px; }
    .team-search { width: 100%; padding: 8px 10px 8px 34px; }
    .team-filter { padding: 7px 30px 7px 10px; }
    .team-member { display: flex; align-items: center; gap: 9px; min-width: 180px; }
    .team-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--navy-900); color: #fff; font-size: 9px; font-weight: 850; }
    .team-member strong, .team-company-count strong { display: block; color: var(--text); font-size: 9px; }
    .team-member span, .team-company-count span { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; }
    .team-goal { min-width: 80px; }
    .team-goal-line { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 7px; }
    .team-goal-line strong { color: var(--text); font-size: 8px; font-variant-numeric: tabular-nums; }
    .team-goal-track { height: 5px; margin-top: 5px; overflow: hidden; border-radius: 999px; background: #e9ede7; }
    .team-goal-fill { height: 100%; border-radius: inherit; background: var(--brand-600); }
    .team-goal-fill.full { width: 100%; }
    .team-goal-fill.partial { width: 50%; }
    .team-goal-fill.low { width: 38%; }
    .team-goal-fill.zero { width: 0; }
    .team-goal-fill.warning { background: var(--amber-600); }
    .team-goal-fill.empty { background: #cbd3cc; }
    .team-side-stack { display: grid; gap: 12px; }
    .team-workload-list, .team-alert-list { display: grid; gap: 11px; padding: 13px 14px; }
    .team-workload-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
    .team-workload-row .team-avatar { width: 28px; height: 28px; border-radius: 8px; font-size: 7px; }
    .team-workload-copy strong { display: block; color: var(--text); font-size: 9px; }
    .team-workload-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; }
    .team-load-badge { color: var(--text); font-size: 9px; font-weight: 850; font-variant-numeric: tabular-nums; }
    .team-alert { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; align-items: start; }
    .team-alert-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--amber-100); color: var(--amber-700); }
    .team-alert-icon.neutral { background: #eef2f7; color: var(--navy-800); }
    .team-alert strong { display: block; color: var(--text); font-size: 9px; }
    .team-alert span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.45; }

    .settings-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 12px; align-items: start; }
    .settings-nav { display: grid; gap: 4px; padding: 7px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
    .settings-nav-button { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 750; text-align: left; cursor: pointer; }
    .settings-nav-button:hover { background: var(--surface-soft); color: var(--text); }
    .settings-nav-button.active { background: var(--navy-900); color: #fff; }
    .settings-nav-button .icon { flex: 0 0 auto; }
    .settings-form { display: grid; gap: 12px; }
    .settings-panel[hidden] { display: none; }
    .settings-card-body { padding: 2px 14px; }
    .setting-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 260px); align-items: center; gap: 24px; min-height: 68px; padding: 12px 0; border-bottom: 1px solid #edf0ec; }
    .setting-row:last-child { border-bottom: 0; }
    .setting-copy strong { display: block; color: var(--text); font-size: 10px; }
    .setting-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.45; }
    .setting-control { width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 9px; background: #fff; color: var(--text-soft); font: inherit; font-size: 9px; }
    .setting-time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
    .setting-checks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
    .setting-check { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-soft); font-size: 8px; }
    .setting-check input { accent-color: var(--brand-700); }
    .setting-toggle { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--text-soft); font-size: 8px; }
    .setting-toggle input { width: 34px; height: 18px; accent-color: var(--brand-700); }
    .settings-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: #fbfcfa; }
    .role-matrix { width: 100%; border-collapse: collapse; }
    .role-matrix th, .role-matrix td { padding: 10px 8px; border-bottom: 1px solid #edf0ec; color: var(--muted); font-size: 8px; text-align: center; }
    .role-matrix th:first-child, .role-matrix td:first-child { text-align: left; }
    .role-matrix th { color: var(--text-soft); font-weight: 800; }
    .role-matrix td:first-child { color: var(--text); font-weight: 750; }
    .role-yes { color: var(--brand-700); }
    .role-no { color: #b6bdb7; }

    .account-settings-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 12px; align-items: start; }
    .settings-profile-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
    .settings-profile-main { display: flex; align-items: center; flex-direction: column; padding: 24px 18px 18px; text-align: center; }
    .settings-profile-avatar { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; background: var(--navy-900); color: #fff; font-size: 17px; font-weight: 850; letter-spacing: -.03em; }
    .settings-profile-main h2 { margin: 12px 0 0; color: var(--text); font-size: 15px; }
    .settings-profile-main p { margin: 4px 0 10px; color: var(--muted); font-size: 9px; }
    .settings-profile-meta { padding: 4px 14px; border-top: 1px solid var(--border); }
    .settings-profile-meta > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; border-bottom: 1px solid #edf0ec; }
    .settings-profile-meta > div:last-child { border-bottom: 0; }
    .settings-profile-meta span { color: var(--muted); font-size: 8px; }
    .settings-profile-meta strong { color: var(--text-soft); font-size: 8px; text-align: right; }
    .settings-profile-meta .profile-security-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-700); }
    .settings-profile-note { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: #fbfcfa; color: var(--muted); font-size: 8px; line-height: 1.5; }
    .settings-profile-note .icon { flex: 0 0 auto; color: var(--brand-700); }
    .account-settings-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px 14px; }
    .account-setting-field { min-width: 0; }
    .account-setting-field:first-child { grid-column: 1 / -1; }
    .account-setting-field label { display: block; margin-bottom: 6px; color: var(--text-soft); font-size: 9px; font-weight: 800; }
    .account-setting-field > span { display: block; margin-top: 5px; color: var(--muted); font-size: 7px; line-height: 1.45; }
    .account-input-wrap { position: relative; }
    .account-input-wrap .icon { position: absolute; left: 11px; top: 50%; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
    .account-input-wrap input { width: 100%; min-height: 40px; padding: 8px 11px 8px 36px; border: 1px solid var(--border-strong); border-radius: 9px; background: #fff; color: var(--text); font: inherit; font-size: 10px; outline: none; }
    .account-input-wrap input:focus { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(80, 125, 69, .12); }
    .settings-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--border); background: #fbfcfa; }
    .settings-card-footer > span { color: var(--muted); font-size: 7px; text-align: right; }
    .settings-security-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); }
    .password-settings-fields .field-span-full { grid-column: 1 / -1; }
    .password-guidance { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 0 14px 14px; color: var(--muted); font-size: 8px; }
    .password-guidance div, .password-guidance label { display: inline-flex; align-items: center; gap: 5px; }
    .password-guidance div .icon { color: var(--brand-700); }
    .password-guidance label { margin-left: auto; color: var(--text-soft); cursor: pointer; }
    .password-guidance input { accent-color: var(--brand-700); }

    .accounts-page-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 14px;
    }

    .accounts-page-head h1 { margin: 0; color: var(--text); font-size: 28px; letter-spacing: -.04em; }
    .accounts-page-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
    .accounts-head-actions { display: flex; gap: 8px; }

    .accounts-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
    .account-summary-card { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
    .account-summary-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); }
    .account-summary-icon.navy { background: #eef2f7; color: var(--navy-800); }
    .account-summary-icon.amber { background: var(--amber-100); color: var(--amber-700); }
    .account-summary-icon.red { background: var(--danger-100); color: var(--danger-700); }
    .account-summary-copy span { display: block; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
    .account-summary-copy strong { display: inline-block; margin-top: 2px; color: var(--text); font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; }
    .account-summary-copy small { margin-left: 4px; color: var(--muted); font-size: 8px; }

    .accounts-alert {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 12px;
      padding: 10px 12px;
      border: 1px solid #eadbb6;
      border-radius: 10px;
      background: #fffaf0;
    }

    .accounts-alert-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #f6ead0; color: var(--amber-700); }
    .accounts-alert-copy { min-width: 0; flex: 1; }
    .accounts-alert-copy strong { display: block; color: var(--text); font-size: 9px; }
    .accounts-alert-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }

    .account-rule-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: #fbfcfa; color: var(--muted); font-size: 8px; line-height: 1.55; }
    .account-rule-note .icon { margin-top: 1px; color: var(--brand-700); }
    .account-rule-note strong { color: var(--text-soft); }

    .accounts-panel { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
    .accounts-panel-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
    .accounts-panel-head h2 { margin: 0; color: var(--text); font-size: 14px; }
    .accounts-panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
    .accounts-view-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 9px; background: var(--surface-soft); }
    .accounts-view-tab { padding: 5px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 8px; font-weight: 800; }
    .accounts-view-tab.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }

    .accounts-toolbar { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-bottom: 1px solid var(--border); background: #fbfcfa; }
    .accounts-search-wrap { position: relative; width: min(340px, 35vw); }
    .accounts-search-wrap .icon { position: absolute; left: 11px; top: 50%; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
    .accounts-search, .accounts-filter { min-height: 36px; border: 1px solid var(--border-strong); border-radius: 9px; background: #fff; color: var(--text-soft); font-size: 10px; }
    .accounts-search { width: 100%; padding: 8px 10px 8px 34px; }
    .accounts-filter { padding: 7px 30px 7px 10px; }
    .accounts-toolbar-spacer { flex: 1; }
    .accounts-result-count { color: var(--muted); font-size: 9px; white-space: nowrap; }

    .account-password-cell { display: flex; align-items: center; gap: 6px; min-width: 128px; }
    .account-password-value { min-width: 68px; color: var(--text); font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
    .account-inline-action { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--muted); }
    .account-inline-action:hover { color: var(--brand-700); background: var(--brand-50); }
    .account-assignment strong { display: block; color: var(--text); font-size: 9px; }
    .account-assignment span { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; }
    .account-usage { color: var(--text); font-size: 9px; font-weight: 800; font-variant-numeric: tabular-nums; }
    .account-usage span { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; font-weight: 500; }
    .account-cooldown strong { display: block; color: var(--text); font-size: 8px; }
    .account-cooldown span { display: block; margin-top: 2px; color: var(--danger-700); font-size: 7px; }
    .account-bulk-bar { display: none; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #cfe0cb; background: var(--brand-50); }
    .account-bulk-bar.show { display: flex; }
    .account-bulk-bar strong { color: var(--brand-700); font-size: 9px; }
    .account-bulk-spacer { flex: 1; }

    .account-history-list { display: grid; gap: 8px; }
    .account-history-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
    .account-history-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: #eef2f7; color: var(--navy-800); }
    .account-history-copy strong { display: block; color: var(--text); font-size: 9px; }
    .account-history-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
    .account-history-date { color: var(--muted); font-size: 8px; text-align: right; }

    .clients-page-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 14px;
    }

    .clients-page-head h1 { margin: 0; color: var(--text); font-size: 28px; letter-spacing: -.04em; }
    .clients-page-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

    .clients-summary {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 12px;
    }

    .client-summary-card {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 11px;
      padding: 13px 14px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
    }

    .client-summary-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); }
    .client-summary-icon.navy { background: #eef2f7; color: var(--navy-800); }
    .client-summary-icon.amber { background: var(--amber-100); color: var(--amber-700); }
    .client-summary-icon.red { background: var(--danger-100); color: var(--danger-700); }
    .client-summary-copy span { display: block; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
    .client-summary-copy strong { display: inline-block; margin-top: 2px; color: var(--text); font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; }
    .client-summary-copy small { margin-left: 4px; color: var(--muted); font-size: 8px; }

    .clients-toolbar {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
      padding: 9px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
    }

    .clients-search-wrap { position: relative; width: min(360px, 38vw); }
    .clients-search-wrap .icon { position: absolute; left: 11px; top: 50%; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
    .clients-search, .clients-filter { min-height: 38px; border: 1px solid var(--border-strong); border-radius: 9px; background: #fff; color: var(--text-soft); font-size: 10px; }
    .clients-search { width: 100%; padding: 8px 10px 8px 34px; }
    .clients-filter { padding: 8px 30px 8px 10px; }
    .clients-toolbar-spacer { flex: 1; }
    .clients-result-count { color: var(--muted); font-size: 9px; white-space: nowrap; }

    .clients-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .client-card {
      min-width: 0;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
      transition: border-color var(--ease), transform var(--ease);
    }

    .client-card:hover { border-color: #bdcabb; transform: translateY(-1px); }
    .client-card[hidden] { display: none; }
    .client-card-main { padding: 15px 16px 13px; }
    .client-card-top { display: flex; align-items: flex-start; gap: 11px; }
    .client-avatar { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #d9e2d6; border-radius: 11px; background: var(--brand-50); color: var(--brand-700); font-size: 11px; font-weight: 850; }
    .client-avatar.navy { border-color: #d9e0e8; background: #eef2f7; color: var(--navy-800); }
    .client-avatar.amber { border-color: #eee0bc; background: var(--amber-50); color: var(--amber-700); }
    .client-card-heading { min-width: 0; flex: 1; }
    .client-card-heading h2 { margin: 0; overflow: hidden; color: var(--text); font-size: 14px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
    .client-card-heading p { margin: 4px 0 0; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
    .client-status { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; background: var(--brand-100); color: var(--brand-700); font-size: 8px; font-weight: 800; }
    .client-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
    .client-status.attention { background: var(--amber-100); color: var(--amber-700); }
    .client-status.onboarding { background: #e8f1fb; color: #365d86; }
    .client-status.paused { background: #eef1ed; color: #68736b; }

    .client-contact {
      display: flex;
      align-items: center;
      gap: 9px;
      margin-top: 13px;
      padding: 9px 10px;
      border-radius: 10px;
      background: var(--surface-soft);
    }

    .client-contact .icon { color: var(--muted); }
    .client-contact-copy { min-width: 0; flex: 1; }
    .client-contact-copy span { display: block; color: var(--muted); font-size: 7px; text-transform: uppercase; letter-spacing: .04em; }
    .client-contact-copy strong { display: block; margin-top: 1px; overflow: hidden; color: var(--text-soft); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
    .client-contact-mail { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--brand-700); }

    .client-meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 11px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--border); }
    .client-meta-item { min-width: 0; padding: 8px 9px; background: #fff; }
    .client-meta-item span { display: block; color: var(--muted); font-size: 7px; text-transform: uppercase; letter-spacing: .04em; }
    .client-meta-item strong { display: block; margin-top: 3px; overflow: hidden; color: var(--text); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

    .client-companies { margin-top: 12px; }
    .client-section-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }
    .client-section-label strong { color: var(--text-soft); font-size: 8px; }
    .client-company-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
    .client-company-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text-soft); font-size: 8px; font-weight: 700; }
    .client-company-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-500); }
    .client-company-chip.warning::before { background: var(--amber-600); }
    .client-company-chip.danger::before { background: var(--danger-700); }
    .client-company-chip.muted::before { background: #98a29b; }

    .client-operation { margin-top: 12px; }
    .client-operation-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 8px; }
    .client-operation-line strong { color: var(--text); font-size: 9px; font-variant-numeric: tabular-nums; }
    .client-operation .company-progress-track { height: 5px; margin-top: 5px; }

    .client-card-footer { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--border); background: var(--surface-soft); }
    .client-card-footer-copy { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 8px; }
    .client-card-footer-copy strong { overflow: hidden; color: var(--text-soft); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
    .client-card-footer-copy .responsible-avatar { width: 23px; height: 23px; border-radius: 7px; font-size: 7px; }
    .clients-empty { display: none; padding: 48px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); text-align: center; font-size: 11px; }
    .clients-empty.show { display: block; }

    .client-detail-back {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 0;
      border: 0;
      background: transparent;
      color: var(--text-soft);
      font-size: 10px;
      font-weight: 750;
    }

    .client-detail-hero {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      padding: 17px 18px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
    }

    .client-detail-identity { min-width: 0; display: flex; align-items: center; gap: 13px; }
    .client-detail-identity .client-avatar { width: 52px; height: 52px; border-radius: 13px; font-size: 14px; }
    .client-detail-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
    .client-detail-title-line h1 { margin: 0; color: var(--text); font-size: 24px; letter-spacing: -.035em; }
    .client-detail-subline { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; margin-top: 5px; color: var(--muted); font-size: 9px; }
    .client-detail-subline span { display: inline-flex; align-items: center; gap: 5px; }
    .client-detail-actions { display: flex; gap: 8px; flex: 0 0 auto; }

    .client-detail-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
    .client-detail-kpi { padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
    .client-detail-kpi span { display: block; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
    .client-detail-kpi strong { display: block; margin-top: 4px; color: var(--text); font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; }
    .client-detail-kpi small { display: block; margin-top: 5px; color: var(--muted); font-size: 7px; }

    .client-detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .7fr); gap: 12px; margin-bottom: 12px; }
    .client-detail-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
    .client-detail-card-head { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
    .client-detail-card-head h2 { margin: 0; color: var(--text); font-size: 13px; }
    .client-detail-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }

    .linked-company-list { padding: 4px 14px; }
    .linked-company-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 58px; border-bottom: 1px solid #edf0ec; }
    .linked-company-item:last-child { border-bottom: 0; }
    .linked-company-item .list-company-logo { width: 32px; height: 32px; border-radius: 8px; font-size: 8px; }
    .linked-company-copy { min-width: 0; }
    .linked-company-copy strong { display: block; overflow: hidden; color: var(--text); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
    .linked-company-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; }

    .client-relationship-list { padding: 6px 14px 10px; }
    .client-relationship-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid #edf0ec; }
    .client-relationship-row:last-child { border-bottom: 0; }
    .client-relationship-row span { color: var(--muted); font-size: 8px; }
    .client-relationship-row strong { overflow: hidden; color: var(--text-soft); font-size: 9px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }

    .client-no-active {
      display: grid;
      place-items: center;
      min-height: 150px;
      padding: 24px;
      text-align: center;
    }

    .client-no-active-icon { width: 40px; height: 40px; display: grid; place-items: center; margin: 0 auto 9px; border-radius: 11px; background: var(--brand-50); color: var(--brand-700); }
    .client-no-active strong { display: block; color: var(--text); font-size: 11px; }
    .client-no-active p { max-width: 390px; margin: 5px auto 0; color: var(--muted); font-size: 8px; line-height: 1.5; }

    .active-demand-list { padding: 4px 14px; }
    .active-demand-item { display: grid; grid-template-columns: minmax(150px, 1.2fr) 90px minmax(130px, .8fr) 92px auto; align-items: center; gap: 12px; min-height: 66px; border-bottom: 1px solid #edf0ec; }
    .active-demand-item:last-child { border-bottom: 0; }
    .demand-main strong { display: block; color: var(--text); font-size: 9px; }
    .demand-main span { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; }
    .demand-stat span { display: block; color: var(--muted); font-size: 7px; text-transform: uppercase; }
    .demand-stat strong { display: block; margin-top: 2px; color: var(--text); font-size: 9px; font-variant-numeric: tabular-nums; }

    .client-history-section { margin-top: 12px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
    .client-history-table-wrap { overflow-x: auto; }
    .client-history-table { width: 100%; border-collapse: collapse; }
    .client-history-table th { padding: 10px 13px; border-bottom: 1px solid var(--border); background: var(--surface-soft); color: var(--muted); font-size: 8px; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: .045em; white-space: nowrap; }
    .client-history-table td { padding: 11px 13px; border-bottom: 1px solid #edf0ec; color: var(--text-soft); font-size: 9px; white-space: nowrap; }
    .client-history-table tbody tr:last-child td { border-bottom: 0; }
    .client-history-table .btn { min-height: 28px; padding: 5px 8px; }
    .client-history-empty { padding: 30px; color: var(--muted); font-size: 9px; text-align: center; }

    .reports-page-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 14px;
    }

    .reports-page-head h1 { margin: 0; color: var(--text); font-size: 28px; letter-spacing: -.04em; }
    .reports-page-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

    .reports-filters {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 12px;
      padding: 9px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
    }

    .report-filter-label { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
    .report-filter {
      min-height: 36px;
      padding: 7px 30px 7px 10px;
      border: 1px solid var(--border-strong);
      border-radius: 9px;
      background: #fff;
      color: var(--text-soft);
      font-size: 10px;
    }
    .reports-filter-spacer { flex: 1; }

    .report-kpis {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 12px;
    }

    .report-kpi {
      min-width: 0;
      padding: 14px 15px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
    }

    .report-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .report-kpi-label { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
    .report-kpi-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--brand-50); color: var(--brand-700); }
    .report-kpi-icon.navy { background: #eef2f7; color: var(--navy-800); }
    .report-kpi-icon.amber { background: var(--amber-100); color: var(--amber-700); }
    .report-kpi-value { display: block; margin-top: 9px; color: var(--text); font-size: 25px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
    .report-kpi-bottom { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: var(--muted); font-size: 8px; }
    .report-delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; }
    .report-delta.positive { color: var(--brand-700); }
    .report-delta.negative { color: var(--danger-700); }

    .reports-primary-grid,
    .reports-insights-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr);
      gap: 12px;
      margin-bottom: 12px;
    }

    .reports-insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .report-card {
      min-width: 0;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
    }

    .report-card + .report-card-full,
    .report-card-full { margin-bottom: 12px; }

    .report-card-head {
      min-height: 58px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 12px 15px;
      border-bottom: 1px solid var(--border);
    }

    .report-card-head h2 { margin: 0; color: var(--text); font-size: 14px; letter-spacing: -.02em; }
    .report-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
    .report-legend { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 8px; white-space: nowrap; }
    .report-legend span { display: inline-flex; align-items: center; gap: 5px; }
    .legend-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--brand-600); }
    .legend-dot.av { background: var(--navy-700); }

    .report-period-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--surface-soft); }
    .report-period-button { padding: 5px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 8px; font-weight: 750; }
    .report-period-button.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }

    .production-chart { padding: 18px 18px 14px; }
    .production-chart-plot {
      height: 205px;
      display: grid;
      grid-template-columns: repeat(7, minmax(34px, 1fr));
      align-items: end;
      gap: 12px;
      padding: 11px 7px 0;
      border-bottom: 1px solid var(--border-strong);
      background-image: linear-gradient(to bottom, transparent 24%, #edf0ec 25%, transparent 25%, transparent 49%, #edf0ec 50%, transparent 50%, transparent 74%, #edf0ec 75%, transparent 75%);
    }

    .production-day { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
    .production-bars { height: 100%; display: flex; align-items: end; justify-content: center; gap: 4px; }
    .production-bar { width: min(17px, 42%); min-height: 6px; border-radius: 5px 5px 2px 2px; background: var(--brand-600); }
    .production-bar.av { background: var(--navy-700); }
    .production-label { color: var(--muted); font-size: 8px; font-weight: 700; text-align: center; }
    .bar-28 { height: 28%; } .bar-36 { height: 36%; } .bar-42 { height: 42%; } .bar-48 { height: 48%; }
    .bar-53 { height: 53%; } .bar-58 { height: 58%; } .bar-61 { height: 61%; } .bar-66 { height: 66%; }
    .bar-71 { height: 71%; } .bar-76 { height: 76%; } .bar-82 { height: 82%; } .bar-88 { height: 88%; }
    .production-chart-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 8px; }
    .production-chart-foot strong { color: var(--text-soft); }

    .funnel-list { display: grid; gap: 9px; padding: 16px; }
    .funnel-stage { position: relative; overflow: hidden; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
    .funnel-stage::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--stage-width); background: #e9f0e7; }
    .funnel-stage.navy::before { background: #e9eef4; }
    .funnel-stage-copy { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .funnel-stage-copy span { color: var(--text-soft); font-size: 9px; font-weight: 750; }
    .funnel-stage-copy strong { color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; }
    .funnel-stage small { position: relative; display: block; margin-top: 3px; color: var(--muted); font-size: 7px; }
    .stage-100 { --stage-width: 100%; } .stage-84 { --stage-width: 84%; } .stage-69 { --stage-width: 69%; } .stage-63 { --stage-width: 63%; }

    .analysis-table-wrap { overflow-x: auto; }
    .analysis-table { width: 100%; border-collapse: collapse; }
    .analysis-table th { padding: 10px 13px; border-bottom: 1px solid var(--border); background: var(--surface-soft); color: var(--muted); font-size: 8px; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: .045em; white-space: nowrap; }
    .analysis-table td { padding: 11px 13px; border-bottom: 1px solid #edf0ec; color: var(--text-soft); font-size: 9px; vertical-align: middle; white-space: nowrap; }
    .analysis-table tbody tr:last-child td { border-bottom: 0; }
    .analysis-entity { display: flex; align-items: center; gap: 8px; min-width: 150px; }
    .analysis-entity .responsible-avatar, .analysis-entity .list-company-logo { width: 29px; height: 29px; border-radius: 8px; font-size: 8px; }
    .analysis-entity strong { display: block; color: var(--text); font-size: 9px; }
    .analysis-entity span { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; }
    .analysis-number { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
    .analysis-number.danger { color: var(--danger-700); }
    .analysis-progress { min-width: 105px; }
    .analysis-progress-copy { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 7px; }
    .analysis-progress-copy strong { color: var(--text); font-size: 8px; }
    .analysis-progress .company-progress-track { height: 5px; margin-top: 4px; }
    .score-evolution { display: inline-flex; align-items: center; gap: 5px; color: var(--text); font-weight: 800; }
    .score-evolution svg { color: var(--brand-700); }

    .efficiency-body { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; padding: 17px; }
    .efficiency-score { width: 132px; height: 132px; display: grid; place-items: center; margin: auto; border-radius: 50%; background: conic-gradient(var(--brand-600) 0 82%, #e9ede8 82% 100%); }
    .efficiency-score::before { content: ""; position: absolute; }
    .efficiency-score-inner { width: 100px; height: 100px; display: grid; place-items: center; border-radius: 50%; background: #fff; text-align: center; }
    .efficiency-score strong { display: block; color: var(--text); font-size: 24px; line-height: 1; }
    .efficiency-score span { display: block; margin-top: 4px; color: var(--muted); font-size: 7px; text-transform: uppercase; }
    .efficiency-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .efficiency-metric { padding: 10px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
    .efficiency-metric span { display: block; color: var(--muted); font-size: 8px; }
    .efficiency-metric strong { display: block; margin-top: 4px; color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; }
    .efficiency-metric small { display: block; margin-top: 3px; color: var(--muted); font-size: 7px; }

    .trend-list { display: grid; gap: 8px; padding: 14px 15px 15px; }
    .trend-item { display: grid; grid-template-columns: minmax(120px, 1fr) auto 86px; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #edf0ec; }
    .trend-item:last-child { border-bottom: 0; }
    .trend-copy strong { display: block; color: var(--text); font-size: 9px; }
    .trend-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; }
    .trend-values { text-align: right; }
    .trend-values strong { display: block; color: var(--text); font-size: 10px; }
    .trend-values span { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; }
    .trend-spark { height: 28px; display: flex; align-items: end; gap: 3px; }
    .trend-spark i { width: 100%; border-radius: 2px 2px 0 0; background: #c8d8c4; }
    .trend-spark i:last-child { background: var(--brand-600); }

    .blockers-body { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 22px; padding: 16px; }
    .blocker-list { display: grid; gap: 11px; }
    .blocker-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-soft); font-size: 9px; }
    .blocker-item-head strong { color: var(--text); font-size: 9px; font-variant-numeric: tabular-nums; }
    .blocker-track { height: 7px; margin-top: 5px; overflow: hidden; border-radius: 999px; background: #edf0ec; }
    .blocker-fill { height: 100%; border-radius: inherit; background: var(--amber-600); }
    .blocker-fill.danger { background: var(--danger-700); }
    .blocker-50 { width: 50%; } .blocker-38 { width: 38%; } .blocker-25 { width: 25%; } .blocker-13 { width: 13%; }
    .blocker-summary { padding: 14px; border-radius: 10px; background: var(--navy-900); color: #fff; }
    .blocker-summary span { display: block; color: #9faabd; font-size: 8px; font-weight: 750; text-transform: uppercase; }
    .blocker-summary strong { display: block; margin-top: 5px; font-size: 29px; font-variant-numeric: tabular-nums; }
    .blocker-summary p { margin: 8px 0 0; color: #b9c1cf; font-size: 8px; line-height: 1.5; }
    .blocker-summary button { width: 100%; margin-top: 12px; }

    .prototype-note::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--brand-500);
      box-shadow: 0 0 0 4px var(--brand-100);
    }

    .company-header {
      position: relative;
      min-height: 96px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      padding: 18px 20px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
    }

    .company-identity {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .company-logo {
      width: 58px;
      height: 58px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      border: 1px solid #d6e0d2;
      border-radius: 14px;
      background: var(--brand-50);
      color: var(--brand-700);
      font-size: 19px;
      font-weight: 800;
      letter-spacing: -.03em;
    }

    .company-heading-line {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .company-heading-line h1 {
      margin: 0;
      overflow: hidden;
      color: var(--text);
      font-size: clamp(21px, 2.1vw, 28px);
      line-height: 1.15;
      letter-spacing: -.035em;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .status-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      flex: 0 0 auto;
      padding: 5px 9px;
      border-radius: 999px;
      background: var(--brand-100);
      color: var(--brand-700);
      font-size: 11px;
      font-weight: 750;
    }

    .status-pill::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--brand-600);
    }

    .company-subline {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 8px;
    }

    .responsible-avatar {
      width: 25px;
      height: 25px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      border-radius: 8px;
      background: var(--navy-900);
      color: #fff;
      font-size: 8px;
      font-weight: 800;
      letter-spacing: .02em;
    }

    .responsible-copy {
      display: flex;
      align-items: baseline;
      gap: 7px;
      min-width: 0;
    }

    .responsible-copy span {
      color: var(--muted);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .045em;
      text-transform: uppercase;
    }

    .responsible-copy strong {
      overflow: hidden;
      color: var(--text-soft);
      font-size: 12px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

    .btn {
      min-height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 9px 14px;
      border: 1px solid transparent;
      border-radius: var(--radius-sm);
      font-weight: 700;
      text-decoration: none;
      transition: transform var(--ease), background var(--ease), border-color var(--ease), color var(--ease);
    }

    .btn:active { transform: translateY(1px); }
    .btn-primary { color: #fff; background: var(--brand-600); border-color: var(--brand-600); }
    .btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); }
    .btn-secondary { color: var(--text-soft); background: var(--surface); border-color: var(--border-strong); }
    .btn-secondary:hover { color: var(--text); background: var(--surface-soft); }
    .btn-ghost { color: var(--text-soft); background: transparent; border-color: transparent; }
    .btn-ghost:hover { background: var(--surface-soft); }
    .btn-danger-ghost { color: var(--danger-700); background: transparent; }
    .btn-danger-ghost:hover { background: var(--danger-100); }
    .btn-sm { min-height: 34px; padding: 6px 10px; font-size: 12px; }
    .btn-icon { width: 40px; padding: 0; }

    .menu-wrap { position: relative; }

    .action-menu {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      z-index: 12;
      width: 208px;
      padding: 6px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--surface);
      box-shadow: var(--shadow-float);
    }

    .action-menu[hidden] { display: none; }

    .menu-item {
      width: 100%;
      min-height: 38px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 10px;
      border: 0;
      border-radius: 8px;
      color: var(--text-soft);
      background: transparent;
      text-align: left;
    }

    .menu-item:hover { background: var(--surface-soft); color: var(--text); }
    .menu-item.danger { color: var(--danger-700); }
    .menu-item.danger:hover { background: var(--danger-100); }
    .menu-divider { height: 1px; margin: 5px 4px; background: var(--border); }

    .metrics-panel {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      margin-top: 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
      overflow: hidden;
    }

    .metric {
      min-height: 92px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 14px 20px;
      border-right: 1px solid var(--border);
    }

    .metric:last-child { border-right: 0; }

    .metric-label {
      margin-bottom: 3px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 750;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .metric-value-line { display: flex; align-items: baseline; gap: 9px; }

    .metric-value {
      color: var(--text);
      font-size: 30px;
      font-weight: 760;
      line-height: 1.1;
      letter-spacing: -.045em;
      font-variant-numeric: tabular-nums;
    }

    .metric-percent {
      color: var(--brand-700);
      font-size: 12px;
      font-weight: 750;
      font-variant-numeric: tabular-nums;
    }

    .metric-helper { margin-top: 3px; color: var(--muted); font-size: 11px; }

    .delay-notice {
      grid-column: 1 / -1;
      display: flex;
      align-items: center;
      gap: 8px;
      min-height: 38px;
      padding: 8px 16px;
      border-top: 1px solid #f2dcc3;
      background: var(--amber-50);
      color: var(--amber-700);
      font-size: 12px;
      font-weight: 650;
    }

    .delay-notice[hidden] { display: none; }

    .work-grid {
      display: grid;
      grid-template-columns: minmax(280px, .76fr) minmax(520px, 1.6fr);
      gap: 12px;
      margin-top: 12px;
    }

    .card {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
    }

    .card-head {
      min-height: 54px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 10px 16px;
      border-bottom: 1px solid var(--border);
    }

    .card-title {
      display: flex;
      align-items: center;
      gap: 9px;
      min-width: 0;
    }

    .card-title-icon {
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      border-radius: 9px;
      background: var(--brand-50);
      color: var(--brand-700);
    }

    .card-title h2 { margin: 0; font-size: 14px; line-height: 1.2; }
    .card-title p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }

    .access-card { min-height: 300px; }

    .access-body { padding: 5px 16px 10px; }

    .access-row {
      display: grid;
      grid-template-columns: 78px minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      min-height: 58px;
      border-bottom: 1px solid #edf0ec;
    }

    .access-row:last-of-type { border-bottom: 0; }
    .access-label { color: var(--muted); font-size: 12px; }

    .access-value {
      min-width: 0;
      overflow: hidden;
      color: var(--text);
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 12px;
      font-weight: 650;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .access-link {
      color: var(--brand-700);
      font-weight: 750;
      text-decoration: none;
    }

    .access-actions { display: flex; align-items: center; gap: 4px; }

    .mini-action {
      min-height: 32px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      padding: 6px 8px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--surface);
      color: var(--text-soft);
      font-size: 11px;
      font-weight: 700;
    }

    .mini-action:hover { background: var(--surface-soft); color: var(--text); }

    .security-hint {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin-top: 9px;
      padding: 10px 11px;
      border-radius: 9px;
      background: #f7f8f6;
      color: var(--muted);
      font-size: 10.5px;
    }

    .evolution-card { min-height: 300px; overflow: hidden; }

    .evolution-body { padding: 12px 14px 10px; }

    .comparison-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .comparison-grid.single { grid-template-columns: minmax(0, 1fr); }

    .snapshot-card {
      position: relative;
      min-width: 0;
      display: grid;
      grid-template-columns: 116px minmax(0, 1fr);
      gap: 11px;
      padding: 9px;
      border: 1px solid var(--border);
      border-radius: 11px;
      background: #fff;
      text-align: left;
      transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
    }

    .snapshot-card:hover {
      border-color: #b9c9b5;
      transform: translateY(-1px);
      box-shadow: 0 8px 18px rgba(25, 40, 29, .07);
    }

    .snapshot-preview {
      position: relative;
      height: 86px;
      overflow: hidden;
      border: 1px solid #e5e9e4;
      border-radius: 8px;
      background: #f7f8f7;
    }

    .snapshot-image { width: 100%; height: 100%; display: block; object-fit: cover; }

    .snapshot-art {
      width: 100%;
      height: 100%;
      display: grid;
      grid-template-rows: 21px 1fr 15px;
      background: #fff;
      color: #333;
    }

    .art-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 7px;
      background: #17202a;
      color: #fff;
      font-size: 6px;
      font-weight: 800;
      letter-spacing: .04em;
    }

    .art-dot { width: 5px; height: 5px; border-radius: 50%; background: #64a454; }

    .art-main {
      display: grid;
      grid-template-columns: 1fr 1.3fr;
      align-items: center;
      gap: 4px;
      padding: 5px 7px;
    }

    .art-score { color: var(--brand-700); font-size: 23px; font-weight: 850; line-height: 1; letter-spacing: -.06em; }
    .tone-amber .art-score { color: var(--amber-600); }
    .tone-red .art-score { color: var(--danger-700); }

    .art-score small { display: block; margin-top: 2px; color: #8d958e; font-size: 5px; font-weight: 700; letter-spacing: .03em; }

    .art-bars { display: grid; gap: 4px; }
    .art-bar { height: 4px; border-radius: 4px; background: #e8ede7; overflow: hidden; }
    .art-bar::after { content: ""; display: block; width: 76%; height: 100%; background: #79a76e; }
    .art-bar:nth-child(2)::after { width: 58%; }
    .art-bar:nth-child(3)::after { width: 88%; }

    .art-foot { display: flex; align-items: center; padding: 0 7px; border-top: 1px solid #eef1ed; color: #9ba29c; font-size: 5px; }

    .snapshot-meta { min-width: 0; align-self: center; }

    .snapshot-kicker {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      margin-bottom: 5px;
      color: var(--brand-700);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .05em;
      text-transform: uppercase;
    }

    .snapshot-kicker.current { color: var(--navy-800); }

    .snapshot-meta strong {
      display: block;
      overflow: hidden;
      color: var(--text);
      font-size: 13px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .snapshot-meta span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }

    .timeline {
      position: relative;
      margin-top: 10px;
      padding-top: 9px;
      border-top: 1px solid #eef1ed;
    }

    .timeline-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 7px;
      color: var(--muted);
      font-size: 10px;
      font-weight: 750;
      letter-spacing: .06em;
      text-transform: uppercase;
    }

    .timeline-track {
      position: relative;
      display: flex;
      gap: 9px;
      overflow-x: auto;
      padding: 1px 1px 5px;
      scrollbar-width: thin;
    }

    .timeline-item {
      position: relative;
      min-width: 94px;
      display: grid;
      grid-template-columns: 38px 1fr;
      align-items: center;
      gap: 7px;
      padding: 5px;
      border: 1px solid var(--border);
      border-radius: 9px;
      background: #fff;
      color: var(--text);
      cursor: pointer;
      text-align: left;
    }

    .timeline-item:hover { border-color: #b7c7b4; }

    .timeline-thumb {
      height: 34px;
      overflow: hidden;
      border-radius: 6px;
      background: var(--surface-soft);
    }

    .timeline-thumb .snapshot-art { transform: scale(.4); transform-origin: left top; width: 250%; height: 250%; }
    .timeline-thumb .snapshot-image { object-fit: cover; }

    .timeline-date { color: var(--text-soft); font-size: 9px; font-weight: 750; line-height: 1.2; }
    .timeline-tag { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 600; }

    .timeline-actions {
      position: absolute;
      top: -7px;
      right: -5px;
      display: flex;
      gap: 2px;
      opacity: 0;
      transform: translateY(2px);
      transition: opacity var(--ease), transform var(--ease);
    }

    .timeline-item:hover .timeline-actions,
    .timeline-item:focus-within .timeline-actions { opacity: 1; transform: translateY(0); }

    .tiny-icon-button {
      width: 23px;
      height: 23px;
      display: grid;
      place-items: center;
      padding: 0;
      border: 1px solid var(--border);
      border-radius: 7px;
      background: #fff;
      color: var(--text-soft);
      box-shadow: 0 4px 9px rgba(20, 30, 23, .08);
    }

    .tiny-icon-button:hover { color: var(--brand-700); }
    .tiny-icon-button.danger:hover { color: var(--danger-700); background: var(--danger-100); }

    .empty-evolution {
      min-height: 226px;
      display: grid;
      place-items: center;
      padding: 24px;
      text-align: center;
    }

    .empty-illustration {
      width: 54px;
      height: 54px;
      display: grid;
      place-items: center;
      margin: 0 auto 12px;
      border-radius: 15px;
      background: var(--brand-50);
      color: var(--brand-600);
    }

    .empty-evolution h3 { margin: 0; font-size: 15px; }
    .empty-evolution p { max-width: 390px; margin: 6px auto 14px; color: var(--muted); font-size: 12px; }

    .tabs-strip {
      display: flex;
      align-items: center;
      gap: 3px;
      margin-top: 12px;
      padding: 5px;
      overflow-x: auto;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
    }

    .tab-button {
      min-height: 40px;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      flex: 0 0 auto;
      padding: 8px 12px;
      border: 0;
      border-radius: 9px;
      background: transparent;
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
    }

    .tab-button:hover { background: var(--surface-soft); color: var(--text); }
    .tab-button.active { background: var(--brand-100); color: var(--brand-700); }

    .table-panel {
      margin-top: 12px;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
    }

    .table-panel-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 24px;
      padding: 18px 20px 14px;
      border-bottom: 1px solid var(--border);
    }

    .table-panel-title h2 {
      margin: 0;
      color: var(--text);
      font-size: 17px;
      letter-spacing: -.02em;
    }

    .table-panel-title p {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 11px;
    }

    .table-kpis {
      display: grid;
      grid-template-columns: repeat(4, minmax(88px, 1fr));
      min-width: min(500px, 55%);
      border: 1px solid var(--border);
      border-radius: 11px;
      overflow: hidden;
    }

    .table-kpi {
      min-height: 56px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 8px 12px;
      border-right: 1px solid var(--border);
      background: var(--surface-soft);
    }

    .table-kpi:last-child { border-right: 0; }
    .table-kpi span { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
    .table-kpi strong { margin-top: 1px; color: var(--text); font-size: 18px; line-height: 1.1; font-variant-numeric: tabular-nums; }

    .table-toolbar {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-bottom: 1px solid var(--border);
      background: #fbfcfa;
    }

    .table-search-wrap {
      position: relative;
      width: min(310px, 34vw);
    }

    .table-search-wrap .icon {
      position: absolute;
      left: 11px;
      top: 50%;
      color: var(--muted);
      transform: translateY(-50%);
      pointer-events: none;
    }

    .table-search,
    .table-filter {
      min-height: 36px;
      border: 1px solid var(--border-strong);
      border-radius: 9px;
      background: var(--surface);
      color: var(--text-soft);
      font-size: 11px;
    }

    .table-search { width: 100%; padding: 8px 10px 8px 34px; }
    .table-filter { padding: 7px 30px 7px 10px; }
    .table-toolbar-spacer { flex: 1; }
    .table-visible-count { color: var(--muted); font-size: 10px; white-space: nowrap; }

    .data-table-wrap { width: 100%; overflow-x: auto; }

    .data-table {
      width: 100%;
      border-collapse: collapse;
      color: var(--text-soft);
      font-size: 11px;
    }

    .data-table th {
      height: 42px;
      padding: 8px 12px;
      border-bottom: 1px solid var(--border);
      background: #f6f8f5;
      color: var(--muted);
      font-size: 9px;
      font-weight: 800;
      letter-spacing: .06em;
      text-align: left;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .data-table td {
      min-height: 54px;
      padding: 10px 12px;
      border-bottom: 1px solid #edf0ec;
      vertical-align: middle;
    }

    .data-table tbody tr:last-child td { border-bottom: 0; }
    .data-table tbody tr:hover td { background: #fafbf9; }
    .data-table tbody tr[hidden] { display: none; }

    .table-check { width: 34px; text-align: center; }
    .table-check input { width: 15px; height: 15px; accent-color: var(--brand-600); }

    .row-number {
      color: var(--text);
      font-weight: 800;
      font-variant-numeric: tabular-nums;
    }

    .account-cell strong,
    .complaint-cell strong,
    .date-cell strong,
    .owner-cell strong {
      display: block;
      color: var(--text);
      font-size: 11px;
      font-weight: 700;
    }

    .account-cell span,
    .complaint-cell span,
    .date-cell span,
    .owner-cell span {
      display: block;
      margin-top: 2px;
      color: var(--muted);
      font-size: 9px;
    }

    .complaint-cell {
      min-width: 250px;
      max-width: 340px;
    }

    .complaint-cell strong {
      margin-bottom: 3px;
      font-size: 11px;
    }

    .complaint-cell span {
      display: -webkit-box;
      overflow: hidden;
      line-height: 1.45;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .owner-cell { display: flex; align-items: center; gap: 8px; }

    .owner-mini-avatar {
      width: 28px;
      height: 28px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      border-radius: 8px;
      background: var(--navy-900);
      color: #fff;
      font-size: 8px;
      font-weight: 800;
    }

    .row-status {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 5px 8px;
      border-radius: 999px;
      font-size: 9px;
      font-weight: 800;
      white-space: nowrap;
    }

    .row-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
    .row-status.success { color: var(--brand-700); background: var(--brand-100); }
    .row-status.info { color: #365d86; background: #e8f1fb; }
    .row-status.warning { color: var(--amber-700); background: var(--amber-100); }
    .row-status.danger { color: var(--danger-700); background: var(--danger-100); }
    .row-status.neutral { color: #68736b; background: #eef1ed; }

    .progress-cell { min-width: 132px; }
    .progress-line { display: flex; align-items: center; gap: 8px; }
    .progress-track { width: 78px; height: 6px; overflow: hidden; border-radius: 999px; background: #e8ece7; }
    .progress-fill { height: 100%; border-radius: inherit; background: var(--brand-600); }
    .progress-fill.p-100 { width: 100%; }
    .progress-fill.p-80 { width: 80%; }
    .progress-fill.p-67 { width: 67%; }
    .progress-fill.p-60 { width: 60%; }
    .progress-fill.p-50 { width: 50%; }
    .progress-fill.p-33 { width: 33%; }
    .progress-fill.p-20 { width: 20%; }
    .progress-fill.p-0 { width: 0; }
    .progress-line strong { min-width: 30px; color: var(--text); font-size: 10px; font-variant-numeric: tabular-nums; }

    .row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }

    .row-action {
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      padding: 0;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: #fff;
      color: var(--muted);
    }

    .row-action:hover { color: var(--brand-700); border-color: #b8c8b5; background: var(--brand-50); }
    .row-action.danger:hover { color: var(--danger-700); border-color: #e6bcbc; background: var(--danger-100); }

    .table-empty-filter {
      display: none;
      padding: 34px 18px;
      color: var(--muted);
      font-size: 12px;
      text-align: center;
    }

    .table-empty-filter.show { display: block; }

    .prototype-disclaimer {
      padding: 9px 14px;
      border-top: 1px solid var(--border);
      background: var(--surface-soft);
      color: var(--muted);
      font-size: 9px;
      text-align: right;
    }

    .prototype-switcher {
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 20;
      width: 308px;
      padding: 10px;
      border: 1px solid rgba(255, 255, 255, .12);
      border-radius: 14px;
      background: color-mix(in srgb, var(--navy-900) 94%, transparent);
      color: #fff;
      box-shadow: var(--shadow-float);
      backdrop-filter: blur(12px);
    }

    .switcher-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 7px;
      color: #aeb8c8;
      font-size: 10px;
      font-weight: 750;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .switcher-title span:last-child { color: #718096; font-weight: 600; letter-spacing: 0; text-transform: none; }

    .switcher-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }

    .scenario-button {
      min-height: 34px;
      padding: 6px 8px;
      border: 1px solid transparent;
      border-radius: 8px;
      background: rgba(255, 255, 255, .055);
      color: #bdc7d5;
      font-size: 10px;
      font-weight: 700;
    }

    .scenario-button:hover { color: #fff; background: rgba(255, 255, 255, .09); }
    .scenario-button.active { color: #fff; background: var(--brand-600); }

    dialog {
      width: min(560px, calc(100vw - 32px));
      max-height: min(760px, calc(100vh - 32px));
      padding: 0;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--surface);
      color: var(--text);
      box-shadow: 0 26px 90px rgba(10, 18, 32, .26);
    }

    dialog::backdrop { background: rgba(11, 18, 32, .62); backdrop-filter: blur(3px); }

    .dialog-head {
      min-height: 62px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 12px 18px;
      border-bottom: 1px solid var(--border);
    }

    .dialog-head h2 { margin: 0; font-size: 17px; }

    .dialog-close {
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      padding: 0;
      border: 0;
      border-radius: 9px;
      background: var(--surface-soft);
      color: var(--text-soft);
    }

    .dialog-body { padding: 18px; overflow-y: auto; }
    .dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); }

    .field { display: grid; gap: 7px; margin-bottom: 14px; }
    .field label { color: var(--text-soft); font-size: 12px; font-weight: 700; }

    .field input,
    .field select {
      min-height: 42px;
      width: 100%;
      padding: 9px 11px;
      border: 1px solid var(--border-strong);
      border-radius: 9px;
      background: #fff;
      color: var(--text);
    }

    .field input[readonly] {
      background: var(--surface-soft);
      color: var(--muted);
      cursor: not-allowed;
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0 14px;
    }

    .field-full { grid-column: 1 / -1; }

    .dialog-note {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin-bottom: 16px;
      padding: 10px 11px;
      border: 1px solid #dce7da;
      border-radius: 10px;
      background: var(--brand-50);
      color: var(--brand-700);
      font-size: 10px;
      line-height: 1.5;
    }

    .dialog-note .icon { margin-top: 1px; flex: 0 0 auto; }

    .field-help { margin: -4px 0 0; color: var(--muted); font-size: 10px; }

    .viewer-dialog { width: min(960px, calc(100vw - 28px)); }
    .form-dialog { width: min(700px, calc(100vw - 32px)); }
    .demand-dialog { width: min(1080px, calc(100vw - 28px)); }
    .form-dialog .dialog-body { max-height: calc(100vh - 170px); }
    .demand-dialog .dialog-body { max-height: calc(100vh - 140px); }

    .viewer-stage {
      min-height: 470px;
      display: grid;
      grid-template-columns: 46px minmax(0, 1fr) 46px;
      align-items: center;
      gap: 12px;
      padding: 18px;
      background: #eef1ed;
    }

    .viewer-content {
      min-height: 430px;
      display: grid;
      place-items: center;
      overflow: hidden;
      border-radius: 12px;
      background: #fff;
      box-shadow: 0 12px 35px rgba(19, 30, 23, .11);
    }

    .viewer-content .snapshot-art { width: min(720px, 90%); height: 390px; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
    .viewer-content .snapshot-image { max-width: 100%; max-height: 430px; object-fit: contain; }
    .viewer-content .art-top { padding: 0 28px; font-size: 15px; }
    .viewer-content .art-dot { width: 11px; height: 11px; }
    .viewer-content .art-main { gap: 26px; padding: 24px 36px; }
    .viewer-content .art-score { font-size: 84px; }
    .viewer-content .art-score small { margin-top: 10px; font-size: 13px; }
    .viewer-content .art-bars { gap: 15px; }
    .viewer-content .art-bar { height: 12px; }
    .viewer-content .art-foot { padding: 0 28px; font-size: 12px; }

    .viewer-nav {
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      padding: 0;
      border: 1px solid var(--border);
      border-radius: 50%;
      background: #fff;
      color: var(--text-soft);
    }

    .viewer-nav:disabled { opacity: .35; cursor: default; }

    .confirm-copy { color: var(--text-soft); }
    .confirm-copy strong { color: var(--text); }

    .toast {
      position: fixed;
      left: calc(var(--sidebar-width) + 50%);
      bottom: 24px;
      z-index: 60;
      min-width: 220px;
      max-width: calc(100vw - 40px);
      padding: 11px 14px;
      border-radius: 10px;
      background: var(--navy-900);
      color: #fff;
      box-shadow: var(--shadow-float);
      font-size: 12px;
      font-weight: 650;
      opacity: 0;
      pointer-events: none;
      transform: translate(-50%, 10px);
      transition: opacity var(--ease), transform var(--ease);
    }

    .toast.show { opacity: 1; transform: translate(-50%, 0); }

    @media (max-width: 1040px) {
      .login-view { grid-template-columns: minmax(370px, .9fr) minmax(400px, 1.1fr); }
      .login-showcase { padding-inline: 34px; }
      .login-showcase h1 { font-size: 42px; }
      .work-grid { grid-template-columns: minmax(270px, .72fr) minmax(480px, 1.4fr); }
      .snapshot-card { grid-template-columns: 98px minmax(0, 1fr); }
      .snapshot-preview { height: 80px; }
      .table-panel-head { display: block; }
      .table-kpis { width: 100%; min-width: 0; margin-top: 12px; }
      .companies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .companies-toolbar { flex-wrap: wrap; }
      .companies-search-wrap { flex: 1; min-width: 280px; width: auto; }
      .companies-toolbar-spacer { display: none; }
      .companies-result-count { margin-left: auto; }
      .dashboard-main-grid, .dashboard-bottom-grid { grid-template-columns: 1fr; }
      .reports-primary-grid, .reports-insights-grid { grid-template-columns: 1fr; }
      .clients-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .accounts-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .client-detail-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 820px) {
      body.sidebar-open { overflow: hidden; }

      .login-view { display: block; min-height: 100vh; background: #f5f7f3; }
      .login-showcase { display: none; }
      .login-panel { min-height: 100vh; padding: 28px 20px; }
      .login-mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 42px; }
      .login-mobile-brand .login-brand-mark { width: 38px; height: 38px; border-radius: 11px; color: #fff; }
      .login-mobile-brand strong { display: block; color: var(--text); font-size: 13px; }
      .login-mobile-brand span { display: block; color: var(--muted); font-size: 8px; }

      .sidebar {
        width: min(292px, 86vw);
        transform: translateX(-102%);
        box-shadow: 18px 0 55px rgba(4, 9, 18, .26);
        transition: transform 220ms ease;
      }

      body.sidebar-open .sidebar { transform: translateX(0); }
      body.sidebar-open .sidebar-backdrop { display: block; }

      .mobile-bar {
        position: sticky;
        top: 0;
        z-index: 22;
        min-height: 62px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        border-bottom: 1px solid var(--border);
        background: rgba(255, 255, 255, .92);
        backdrop-filter: blur(12px);
      }

      .mobile-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; }
      .mobile-brand .brand-mark { width: 34px; height: 34px; border-radius: 9px; }

      .main-shell { margin-left: 0; padding: 14px 14px 118px; }
      .breadcrumb-row { margin-bottom: 7px; }
      .prototype-note { display: none; }

      .company-header { align-items: flex-start; flex-direction: column; gap: 14px; padding: 16px; }
      .company-identity { width: 100%; }
      .company-heading-line { flex-wrap: wrap; }
      .company-heading-line h1 { white-space: normal; }
      .header-actions { width: 100%; }
      .header-actions .btn-primary { flex: 1; }

      .metric { min-height: 84px; padding: 12px 14px; }
      .metric-value { font-size: 27px; }
      .metric-percent { font-size: 11px; }

      .work-grid { grid-template-columns: 1fr; }
      .access-card, .evolution-card { min-height: auto; }
      .comparison-grid { grid-template-columns: 1fr; }
      .snapshot-card { grid-template-columns: 124px minmax(0, 1fr); }
      .snapshot-preview { height: 88px; }

      .prototype-switcher { right: 10px; bottom: 10px; width: calc(100vw - 20px); }
      .toast { left: 50%; bottom: 96px; }
      .table-toolbar { flex-wrap: wrap; }
      .table-search-wrap { width: 100%; }
      .table-toolbar-spacer { display: none; }
      .table-visible-count { margin-left: auto; }
      .companies-page-head { align-items: flex-start; }
      .companies-overview { flex: 0 0 auto; }
      .companies-toolbar { flex-wrap: wrap; }
      .companies-search-wrap { width: 100%; }
      .companies-toolbar-spacer { display: none; }
      .companies-result-count { margin-left: auto; }
      .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .dashboard-page-head { align-items: flex-start; }
      .report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .reports-page-head { align-items: flex-start; }
      .efficiency-body { grid-template-columns: 140px minmax(0, 1fr); }
      .clients-page-head { align-items: flex-start; }
      .clients-toolbar { flex-wrap: wrap; }
      .clients-search-wrap { flex: 1; min-width: 280px; width: auto; }
      .clients-toolbar-spacer { display: none; }
      .clients-result-count { margin-left: auto; }
      .client-detail-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .accounts-page-head { align-items: flex-start; }
      .accounts-toolbar { flex-wrap: wrap; }
      .accounts-search-wrap { flex: 1; min-width: 280px; width: auto; }
      .accounts-toolbar-spacer { display: none; }
      .accounts-result-count { margin-left: auto; }
      .team-page-head, .settings-page-head { align-items: flex-start; }
      .team-layout { grid-template-columns: 1fr; }
      .team-side-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .settings-layout { grid-template-columns: 190px minmax(0, 1fr); }
      .account-settings-layout { grid-template-columns: 220px minmax(0, 1fr); }
      .complaints-ingest-grid { grid-template-columns: 1fr; }
      .triage-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 560px) {
      .login-panel { place-items: start center; padding: 22px 16px 36px; }
      .login-mobile-brand { margin-bottom: 34px; }
      .login-heading h2 { font-size: 26px; }
      .login-field-control input { min-height: 46px; }
      .login-options { align-items: flex-start; }
      .login-insights { grid-template-columns: 1fr; }
      .complaints-page-head { display: block; }
      .complaints-page-head h1 { font-size: 24px; }
      .complaints-page-head .btn { width: 100%; margin-top: 12px; }
      .complaints-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .complaint-link-grid, .complaint-source-grid, .triage-categories, .triage-review-grid { grid-template-columns: 1fr; }
      .triage-overview { grid-template-columns: 1fr; }
      .triage-score { min-height: 92px; }
      .complaint-form-actions { align-items: flex-start; flex-direction: column; }
      .complaint-form-actions .btn { width: 100%; }
      .triage-table-toolbar { flex-wrap: wrap; }
      .triage-toolbar-spacer { display: none; }
      .triage-count { margin-left: auto; }
      .breadcrumb-row { min-height: 26px; }
      .companies-page-head { display: block; }
      .companies-page-head h1 { font-size: 24px; }
      .companies-overview { margin-top: 14px; justify-content: space-between; }
      .overview-item { min-width: 0; }
      .companies-grid { grid-template-columns: 1fr; }
      .companies-filter { flex: 1; min-width: 0; }
      .companies-toolbar .btn { flex: 1; }
      .dashboard-page-head { display: block; }
      .dashboard-page-head h1 { font-size: 24px; }
      .dashboard-date { margin-top: 12px; }
      .dashboard-kpi { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; padding: 11px; }
      .dashboard-kpi-icon { width: 32px; height: 32px; border-radius: 9px; }
      .dashboard-kpi-copy strong { font-size: 20px; }
      .dashboard-kpi-copy small { display: block; margin: 2px 0 0; }
      .operation-alerts { grid-template-columns: 1fr; }
      .demand-overview-item { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; padding: 10px 0; }
      .dashboard-company { grid-column: 1; }
      .dashboard-open { grid-column: 2; grid-row: 1; }
      .dashboard-owner { grid-column: 1; grid-row: 2; }
      .dashboard-deadline { grid-column: 2; grid-row: 2; text-align: right; }
      .dashboard-progress { grid-column: 1 / -1; }
      .schedule-header, .schedule-row { grid-template-columns: minmax(78px, .8fr) repeat(2, minmax(74px, 1fr)); gap: 5px; }
      .reports-page-head { display: block; }
      .reports-page-head h1 { font-size: 24px; }
      .clients-page-head { display: block; }
      .clients-page-head h1 { font-size: 24px; }
      .clients-page-head .btn { width: 100%; margin-top: 12px; }
      .clients-grid { grid-template-columns: 1fr; }
      .clients-search-wrap { min-width: 100%; width: 100%; }
      .clients-filter { flex: 1; min-width: 0; }
      .clients-toolbar .btn { flex: 1; }
      .client-meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .accounts-page-head { display: block; }
      .accounts-page-head h1 { font-size: 24px; }
      .accounts-head-actions { margin-top: 12px; }
      .accounts-head-actions .btn { flex: 1; }
      .accounts-panel-head { align-items: flex-start; flex-direction: column; }
      .accounts-view-tabs { width: 100%; overflow-x: auto; }
      .accounts-view-tab { flex: 1; white-space: nowrap; }
      .accounts-search-wrap { min-width: 100%; width: 100%; }
      .accounts-filter { flex: 1; min-width: 0; }
      .accounts-alert { align-items: flex-start; }
      .team-page-head, .settings-page-head { display: block; }
      .team-page-head h1, .settings-page-head h1 { font-size: 24px; }
      .team-page-head .btn, .settings-page-head .btn { width: 100%; margin-top: 12px; }
      .team-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .team-toolbar { flex-wrap: wrap; }
      .team-search-wrap { flex-basis: 100%; }
      .team-filter { flex: 1; min-width: 0; }
      .team-side-stack { grid-template-columns: 1fr; }
      .settings-layout { grid-template-columns: 1fr; }
      .account-settings-layout { grid-template-columns: 1fr; }
      .settings-profile-main { align-items: flex-start; padding: 16px; text-align: left; }
      .settings-profile-avatar { width: 48px; height: 48px; border-radius: 14px; font-size: 13px; }
      .account-settings-fields { grid-template-columns: 1fr; }
      .account-setting-field:first-child, .password-settings-fields .field-span-full { grid-column: auto; }
      .settings-card-footer { align-items: flex-start; flex-direction: column; }
      .settings-card-footer > span { text-align: left; }
      .password-guidance { align-items: flex-start; flex-direction: column; }
      .password-guidance label { margin-left: 0; }
      .settings-nav { display: flex; overflow-x: auto; }
      .settings-nav-button { flex: 0 0 auto; white-space: nowrap; }
      .setting-row { grid-template-columns: 1fr; gap: 10px; }
      .setting-checks { justify-content: flex-start; }
      .client-detail-hero { align-items: flex-start; flex-direction: column; }
      .client-detail-actions { width: 100%; }
      .client-detail-actions .btn { flex: 1; }
      .client-detail-title-line h1 { font-size: 21px; }
      .active-demand-item { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 10px 0; }
      .active-demand-item .demand-main { grid-column: 1; }
      .active-demand-item .row-status { grid-column: 2; grid-row: 1; justify-self: end; }
      .active-demand-item .demand-stat { grid-column: auto; }
      .active-demand-item .btn { grid-column: 1 / -1; justify-content: center; }
      .client-history-table, .client-history-table tbody, .client-history-table tr, .client-history-table td { display: block; width: 100%; }
      .client-history-table thead { display: none; }
      .client-history-table tbody { display: grid; gap: 9px; padding: 10px; background: #f6f8f5; }
      .client-history-table tbody tr { padding: 7px 11px; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
      .client-history-table td { min-height: 36px; display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 0; white-space: normal; }
      .client-history-table td::before { content: attr(data-label); color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
      .reports-filters { align-items: stretch; }
      .report-filter-label { width: 100%; }
      .report-filter { flex: 1; min-width: 0; }
      .reports-filter-spacer { display: none; }
      .reports-filters .btn { flex: 1; }
      .report-kpi { padding: 12px; }
      .report-kpi-value { font-size: 22px; }
      .report-card-head { align-items: flex-start; }
      .report-card-head .report-legend { display: none; }
      .production-chart { padding-inline: 10px; }
      .production-chart-plot { gap: 5px; padding-inline: 1px; }
      .production-bar { width: min(12px, 43%); }
      .analysis-table, .analysis-table tbody, .analysis-table tr, .analysis-table td { display: block; width: 100%; }
      .analysis-table thead { display: none; }
      .analysis-table tbody { display: grid; gap: 9px; padding: 10px; background: #f6f8f5; }
      .analysis-table tbody tr { padding: 7px 11px; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
      .analysis-table td { min-height: 36px; display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 0; white-space: normal; }
      .analysis-table td::before { content: attr(data-label); color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
      .analysis-entity { min-width: 0; }
      .analysis-progress { min-width: 0; }
      .efficiency-body { grid-template-columns: 1fr; }
      .efficiency-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .trend-item { grid-template-columns: minmax(0, 1fr) auto; }
      .trend-spark { grid-column: 1 / -1; }
      .blockers-body { grid-template-columns: 1fr; }
      .blocker-summary { order: -1; }
      .company-logo { width: 50px; height: 50px; border-radius: 12px; font-size: 17px; }
      .company-heading-line h1 { font-size: 21px; }
      .status-pill { padding: 4px 8px; }
      .company-subline { margin-top: 5px; }
      .responsible-copy { display: grid; gap: 0; }

      .metrics-panel { grid-template-columns: repeat(3, 1fr); }
      .metric { min-width: 0; min-height: 78px; padding: 11px 9px; }
      .metric-label { font-size: 9px; letter-spacing: .045em; }
      .metric-value-line { display: block; }
      .metric-value { font-size: 24px; }
      .metric-percent { display: block; margin-top: 1px; font-size: 9px; }
      .metric-helper { display: none; }

      .card-head { align-items: flex-start; }
      .card-head .btn { min-height: 34px; padding: 6px 9px; }
      .card-head .btn .button-label { display: none; }

      .access-row { grid-template-columns: 62px minmax(0, 1fr); gap: 7px; padding: 6px 0; }
      .access-actions { grid-column: 2; justify-self: start; }
      .access-link { grid-column: 2; }

      .snapshot-card { grid-template-columns: 105px minmax(0, 1fr); }
      .snapshot-preview { height: 78px; }
      .timeline-item { min-width: 100px; }

      .tabs-strip { margin-bottom: 2px; }
      .table-panel { margin-top: 10px; }
      .table-panel-head { padding: 15px 14px 12px; }
      .table-kpis { grid-template-columns: repeat(2, 1fr); }
      .table-kpi { min-height: 50px; border-bottom: 1px solid var(--border); }
      .table-kpi:nth-child(2) { border-right: 0; }
      .table-kpi:nth-child(3), .table-kpi:nth-child(4) { border-bottom: 0; }
      .table-toolbar { padding: 9px 10px; }
      .table-filter { flex: 1; min-width: 0; }
      .table-toolbar .btn { flex: 1; }
      .data-table-wrap { padding: 10px; background: #f6f8f5; }
      .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
      .data-table thead { display: none; }
      .data-table tbody { display: grid; gap: 9px; }
      .data-table tbody tr { padding: 7px 11px; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
      .data-table tbody tr:hover td { background: transparent; }
      .data-table td {
        min-height: 38px;
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding: 7px 0;
      }
      .data-table td::before { content: attr(data-label); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
      .data-table .table-check { display: none; }
      .data-table td:last-child { border-bottom: 0; }
      .complaint-cell { min-width: 0; max-width: none; }
      .row-actions { justify-content: flex-start; }
      .prototype-disclaimer { text-align: left; }
      .viewer-stage { min-height: 360px; grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 6px; padding: 10px; }
      .form-grid { grid-template-columns: 1fr; }
      .field-full { grid-column: auto; }
      .viewer-content { min-height: 330px; }
      .viewer-content .snapshot-art { width: 100%; height: 310px; }
      .viewer-content .art-score { font-size: 58px; }
      .viewer-nav { width: 34px; height: 34px; }
      .switcher-title span:last-child { display: none; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
    }
  