@import "./brand/tokens.css";

:root {
  --settled: #15803D;
  --settled-soft: #EAF6EE;
  --signal: #B45309;
  --signal-soft: #FFF4E5;
  --alert: #B91C1C;
  --alert-soft: #FDECEC;
  --radius: 10px;
  --line-height: 1.55;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
html { overflow-x: clip; }
body {
  overflow-x: clip;
  color: #1F2B40;
  background: var(--wash);
  font-family: var(--font);
  font-size: 14px;
  line-height: var(--line-height);
  font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #7EA7FF;
  outline-offset: 2px;
}
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { display: flex; min-height: 100vh; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.settings-grid > .panel { min-width: 0; }
.settings-profile > strong { display: block; color: var(--ink); font-size: 16px; }
.settings-profile > span { display: block; margin: 3px 0 18px; color: var(--labs); }
.cell-subtitle { display: block; margin-top: 3px; color: var(--labs); font-size: 13px; }
.empty-cell { padding: 22px !important; color: var(--labs); text-align: center; }
.stored-file { width: min(100%, 310px); min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; color: var(--ink); border: 1px dashed #B8C5D8; border-radius: 9px; background: #F8FAFD; text-align: center; }
.stored-file > small { max-width: 240px; color: var(--labs); }
.stored-file-mark { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 3px; border-radius: 10px; background: var(--soft); color: var(--accent); }
.auth-screen { min-height: 100vh; min-height: 100dvh; background: var(--paper); }
.auth-frame { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(260px, 0.86fr) minmax(320px, 1.14fr); }
.auth-aside { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 36px 40px 28px; background: var(--ink); color: #E7ECF6; }
.auth-aside::after { position: absolute; z-index: -1; right: -190px; bottom: 74px; width: 440px; height: 440px; border: 1px solid rgba(212,226,255,.12); border-radius: 50%; box-shadow: 0 0 0 46px rgba(212,226,255,.035), 0 0 0 100px rgba(212,226,255,.025); content: ""; pointer-events: none; }
.auth-identity, .auth-brief, .auth-home { position: relative; }
.auth-mark { display: inline-flex; }
.auth-mark img { display: block; width: min(210px, 100%); height: auto; }
.auth-word { margin: 18px 0 0; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .18em; }
.auth-brief { max-width: 410px; margin: 34px 0 auto; padding: 38px 0 30px; }
.auth-aside .auth-eyebrow { margin: 0 0 10px; color: #AFC7F7; }
.auth-brief-title { max-width: 370px; margin: 0; color: #F7F9FD; font-size: clamp(25px, 2.6vw, 36px); line-height: 1.13; letter-spacing: -.04em; }
.auth-steps { display: grid; gap: 19px; margin: 30px 0 0; padding: 0; list-style: none; }
.auth-steps li { display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: start; gap: 11px; }
.auth-steps li > span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(210,225,255,.28); border-radius: 7px; color: #BFD2F6; font-family: var(--font-data); font-size: 11px; }
.auth-steps strong, .auth-steps small { display: block; }
.auth-steps strong { color: #F4F7FC; font-size: 14px; font-weight: 650; }
.auth-steps small { margin-top: 2px; color: #AAB8CF; font-size: 13px; line-height: 1.45; }
.auth-home { color: #C5D0E4; font-size: 14px; text-decoration: none; }
.auth-home:hover { color: #fff; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; justify-self: center; width: min(100%, 440px); padding: 48px 28px; }
.auth-eyebrow { margin: 0 0 6px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.auth-panel h1 { margin: 0 0 22px; color: var(--ink); font-size: 28px; letter-spacing: -.03em; }
.auth-description { color: var(--labs); margin: -12px 0 22px; }
.auth-panel .field-grid { grid-template-columns: 1fr; gap: 14px; }
.auth-panel .field { gap: 6px; }
.auth-panel .field label { color: var(--ink); font-size: 13px; }
.auth-panel .field input { min-height: 46px; padding: 0 12px; font-size: 16px; }
.auth-password-hint { color: var(--labs); font-size: 12px; line-height: 1.45; }
.auth-panel .primary-button { width: 100%; justify-content: center; min-height: 46px; margin-top: 6px; font-size: 15px; }
.auth-error { margin: 0 0 16px; padding: 10px 12px; border: 1px solid #F4C7C7; border-radius: 6px; background: var(--alert-soft); color: var(--alert); }
.auth-switch { margin: 18px 0 0; font-size: 14px; }
.auth-switch a { color: var(--accent); font-weight: 650; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-loading { color: var(--labs); text-align: center; padding: 42px 18px; }
.skeleton { display: block; border-radius: 6px; background: #E4E9F2; background-image: linear-gradient(90deg, #E4E9F2 0%, #F7F9FC 50%, #E4E9F2 100%); background-size: 220% 100%; animation: skeleton-shine 1.15s ease-in-out infinite; }
.boot-side .skeleton { background-color: rgba(255,255,255,.14); background-image: linear-gradient(90deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.1) 100%); }
@keyframes skeleton-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.boot-skeleton { min-height: 100vh; min-height: 100dvh; display: flex; overflow-x: clip; background: var(--wash); }
.boot-side { width: 248px; flex: 0 0 248px; display: flex; flex-direction: column; gap: 10px; padding: 22px 14px; background: var(--ink); }
.boot-main { min-width: 0; flex: 1; }
.boot-top { height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 30px; background: var(--paper); border-bottom: 1px solid var(--line); }
.boot-page { max-width: 1560px; margin: 0 auto; padding: 28px 30px 42px; display: grid; gap: 14px; }
.boot-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sk-logo { width: 148px; height: 28px; }
.sk-nav { height: 36px; }
.sk-search { width: min(440px, 46vw); height: 34px; }
.sk-pill { width: 92px; height: 32px; }
.sk-title { width: min(240px, 60%); height: 26px; }
.sk-card { height: 108px; }
.sk-table { height: 42px; margin-top: 8px; }
.sk-row { height: 52px; }
.view-skeleton { display: grid; gap: 14px; }
.preview-slot { position: relative; min-height: min(52vh, 480px); }
.preview-slot .sk-preview { position: absolute; inset: 0; height: auto; }
.sidebar {
  width: 248px;
  flex: 0 0 248px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 21px 14px 14px;
  color: #E7ECF6;
  background: var(--ink);
}
@media (min-width: 781px) {
  .sidebar { position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto; }
  .topbar { position: sticky; top: 0; z-index: 20; }
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 2px 10px 0;
  text-decoration: none;
  color: white;
}
.brand-lockup img { display: block; width: 148px; height: auto; }
.product-name {
  padding: 0;
  color: #DDE7FF;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}
.workspace-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 23px;
  padding: 10px 9px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}
.workspace-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  color: #fff;
  border-radius: 7px;
  background: #315DAF;
  font-size: 13px;
  font-weight: 700;
}
.workspace-copy, .account-copy { min-width: 0; display: grid; }
.workspace-copy strong, .account-copy strong {
  overflow: hidden;
  color: #F5F7FB;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-copy small, .account-copy small { color: #A7B3C9; font-size: 13px; }
.workspace-switcher > svg { width: 13px; height: 13px; margin-left: auto; color: #93A1BA; }
.nav-label {
  margin: 0 10px 9px;
  color: #8190AA;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
.primary-nav { display: grid; gap: 4px; }
.nav-item {
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  color: #B8C3D7;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  transition: background-color 120ms ease, color 120ms ease;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.075); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-item svg { width: 16px; height: 16px; flex: 0 0 16px; }
.nav-item span:nth-child(2) { flex: 1; font-size: 14px; font-weight: 500; }
.nav-count, .nav-alert {
  min-width: 22px;
  padding: 1px 5px;
  color: #DDE7FF;
  border-radius: 5px;
  background: rgba(255,255,255,.11);
  font-family: var(--font-data);
  font-size: 12px;
  text-align: center;
}
.nav-alert { color: #FFCECE; background: rgba(185,28,28,.22); }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: #F3B44A; }
.sidebar-bottom { display: grid; gap: 15px; margin-top: auto; }
.help-link {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  color: #B8C3D7;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,.11);
  font-size: 13px;
}
.help-mark {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid #8090AA;
  border-radius: 50%;
  font-size: 13px;
}
.help-link svg { width: 12px; height: 12px; margin-left: auto; }
.account-row { display: flex; align-items: center; gap: 9px; padding: 10px 8px 2px; border-top: 1px solid rgba(255,255,255,.11); }
.avatar { width: 30px; height: 30px; display: grid; flex: 0 0 30px; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 700; }
.avatar-blue { color: #fff; background: #3D6CC7; border: 2px solid rgba(255,255,255,.18); }
.account-row .account-copy { flex: 1; }
.more-button { width: auto; padding: 6px 8px; color: #A7B3C9; border: 0; border-radius: 5px; background: transparent; font-size: 13px; font-weight: 600; }
.topbar-signout { min-height: 32px; padding: 0 10px; color: #354663; border: 1px solid var(--line); background: #fff; }
.topbar-signout:hover { background: #F7F9FC; }

.main-panel { min-width: 0; flex: 1; }
.topbar {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.topbar-search { position: relative; width: min(440px, 40vw); height: 34px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #FAFBFD; }
.search-results { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 12px 32px rgba(19,32,58,.12); }
.search-hit, .search-empty { display: grid; gap: 2px; width: 100%; padding: 8px 10px; border: 0; border-bottom: 1px solid #EDF0F5; background: white; text-align: start; }
.search-hit small, .search-empty { color: #6D7C92; font-size: 12px; }
.search-hit:hover { background: #F5F8FD; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 12px 0; }
.detail-list dt { color: #6D7C92; font-size: 12px; }
.detail-list dd { margin: 2px 0 0; color: var(--ink); }
.stage-move { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.stage-move select, .stage-move .primary-button, .stage-move .secondary-button { min-height: 36px; }
.form-section { margin: 14px 0 0; color: #3E4E68; font-size: 13px; font-weight: 650; }
.form-section:first-child { margin-top: 0; }
.candidate-cards { display: none; }
.candidate-card { display: grid; gap: 4px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; text-align: start; }
.doc-preview { width: 100%; max-height: min(52vh, 480px); border: 0; background: white; object-fit: contain; }
button.pipeline-stage { width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.topbar-search > svg { width: 15px; height: 15px; color: #8190A6; }
.topbar-search input { width: 100%; min-width: 0; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 13px; }
.topbar-search input::placeholder { color: #9AA5B5; }
kbd { padding: 1px 5px; color: #7D8AA0; border: 1px solid #DCE2EC; border-radius: 4px; background: white; font-family: var(--font-data); font-size: 12px; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.calendar-toggle { height: 33px; display: flex; align-items: center; gap: 7px; padding: 0 8px; color: #4D5D75; border: 1px solid var(--line); border-radius: 6px; background: white; font-size: 13px; white-space: nowrap; }
.calendar-toggle svg { width: 14px; height: 14px; }
.toggle-mark { padding: 1px 4px; color: #64748B; border-radius: 3px; background: #F0F3F8; font-family: var(--font-data); font-size: 12px; }
.language-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #F9FAFC; }
.language { min-width: 27px; padding: 3px 5px; color: #7A879C; border: 0; border-radius: 4px; background: transparent; font-size: 12px; }
.language.active { color: var(--ink); background: white; box-shadow: 0 1px 3px rgba(27,42,74,.12); }
.icon-button { position: relative; display: grid; width: 31px; height: 31px; place-items: center; color: #65738A; border: 1px solid transparent; border-radius: 6px; background: transparent; }
.icon-button:hover { border-color: var(--line); background: #FAFBFD; }
.icon-button svg { width: 16px; height: 16px; }
.notification-button i { position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border: 1px solid white; border-radius: 50%; background: #D14A4A; }
.topbar-divider { width: 1px; height: 26px; background: var(--line); }
.topbar-user { min-width: 0; display: flex; align-items: center; gap: 8px; }
.topbar-user > span:last-child { min-width: 0; max-width: 180px; }
.topbar-user strong, .topbar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-user strong { color: #34435B; font-size: 13px; font-weight: 600; }
.topbar-user small { color: #8894A6; font-size: 12px; }
.topbar-user .avatar { width: 27px; height: 27px; flex-basis: 27px; font-size: 12px; }

.page-content { max-width: 1560px; margin: 0 auto; padding: 28px 30px 42px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.page-heading > div, .panel-header > div { min-width: 0; }
.page-subtitle, .section-caption { overflow-wrap: anywhere; }
.eyebrow { margin: 0 0 5px; color: var(--labs); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 4px; color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -.035em; line-height: 1.25; }
.page-subtitle { margin: 0; color: #738199; font-size: 13px; }
.heading-actions { display: flex; align-items: center; gap: 8px; }
.primary-button, .secondary-button, .quiet-button, .danger-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.primary-button { color: white; border-color: #245BDC; background: var(--accent); box-shadow: 0 1px 2px rgba(37,99,235,.16); }
.primary-button:hover { background: #1E56D0; }
.primary-button svg, .secondary-button svg, .quiet-button svg, .danger-button svg { width: 14px; height: 14px; }
.secondary-button { color: #354663; border-color: var(--line); background: white; }
.secondary-button:hover, .quiet-button:hover { border-color: #C5D0E0; background: #F9FAFC; }
.quiet-button { color: #5B6B85; border-color: transparent; background: transparent; }
.danger-button { color: #A32828; border-color: #F0C4C4; background: #FFF8F8; }
.danger-button:hover { background: var(--alert-soft); }
.mono { font-family: var(--font-data); font-size: 13px; letter-spacing: -.015em; }
.muted { color: #8793A6; }
.section-title { margin: 0; color: #273650; font-size: 14px; font-weight: 650; }
.section-caption { margin: 3px 0 0; color: #8A96A8; font-size: 13px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 1px 2px rgba(27,42,74,.025); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #EEF1F6; }
.panel-body { padding: 15px 16px; }
.view-grid { display: grid; gap: 14px; }
.view-grid > *, .triage-grid > *, .dashboard-grid > * { min-width: 0; }
.spacer { flex: 1; }
.pill, .status-badge { display: inline-flex; align-items: center; gap: 5px; min-height: 21px; padding: 2px 7px; border-radius: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-badge::before, .pill-dot { width: 5px; height: 5px; display: inline-block; border-radius: 50%; background: currentColor; content: ""; }
.success { color: var(--settled); background: var(--settled-soft); }
.warning { color: var(--signal); background: var(--signal-soft); }
.danger { color: var(--alert); background: var(--alert-soft); }
.info { color: #2856A6; background: #ECF2FF; }
.neutral { color: #65738A; background: #F0F2F6; }
.license-strip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #DEE7F8; border-radius: 8px; background: #F6F9FF; }
.license-label { display: flex; align-items: center; gap: 7px; color: #3C4F72; font-size: 13px; font-weight: 650; white-space: nowrap; }
.license-label svg { width: 14px; height: 14px; color: var(--accent); }
.license-items { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.license-item { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; color: #53627A; border: 1px solid #E3EAF7; border-radius: 5px; background: white; font-size: 12px; }
.license-item strong { color: #34435B; font-weight: 650; }
.license-item .mono { font-size: 12px; }
.license-note { margin-left: auto; color: #8995A9; font-size: 12px; white-space: nowrap; }
.triage-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }
.triage-card { min-height: 108px; position: relative; display: grid; grid-template-columns: 37px 1fr auto; align-items: start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-left: 3px solid #D39A48; border-radius: 8px; background: white; }
.triage-card.red { border-left-color: #C74444; }
.triage-card.blue { border-left-color: #4776D1; }
.triage-icon { width: 35px; height: 35px; display: grid; place-items: center; color: #A76217; border-radius: 7px; background: var(--signal-soft); }
.triage-card.red .triage-icon { color: #AA3333; background: var(--alert-soft); }
.triage-card.blue .triage-icon { color: #315FAE; background: #ECF2FF; }
.triage-icon svg { width: 17px; height: 17px; }
.triage-count { color: var(--ink); font-family: var(--font-data); font-size: 20px; font-weight: 600; line-height: 1; }
.triage-title { margin: 4px 0 2px; color: #35445C; font-size: 13px; font-weight: 650; }
.triage-copy { margin: 0; color: #8793A6; font-size: 12px; }
.triage-action { grid-column: 2 / 4; justify-self: start; margin-top: 7px; padding: 0; color: #355FAF; border: 0; background: transparent; font-size: 12px; font-weight: 600; }
.triage-card.red .triage-action { color: #A23535; }
.triage-action:hover { text-decoration: underline; }
.triage-card > .status-badge { align-self: start; }
.dashboard-grid { grid-template-columns: minmax(0, 1.45fr) minmax(275px, .8fr); align-items: start; }
.pipeline-panel { overflow: hidden; }
.pipeline-summary { display: flex; align-items: baseline; gap: 8px; }
.pipeline-summary strong { color: var(--ink); font-family: var(--font-data); font-size: 19px; }
.pipeline-summary span { color: #8793A6; font-size: 12px; }
.pipeline-track { display: grid; grid-template-columns: repeat(8, minmax(108px,1fr)); overflow-x: auto; padding: 1px 16px 14px; }
.pipeline-stage { min-width: 108px; position: relative; padding: 6px 11px 0 0; }
.pipeline-stage:not(:last-child)::after { position: absolute; top: 15px; right: 7px; left: 30px; height: 1px; background: #D8E0EC; content: ""; }
.pipeline-stage-head { display: flex; align-items: center; gap: 6px; position: relative; z-index: 1; }
.pipeline-stage-dot { width: 8px; height: 8px; border: 2px solid #7FA1E4; border-radius: 50%; background: white; }
.pipeline-stage.active .pipeline-stage-dot { border-color: #3C70D3; background: #3C70D3; }
.pipeline-stage-name { margin: 8px 0 1px; color: #637189; font-size: 12px; line-height: 1.25; }
.pipeline-stage-count { color: #273650; font-family: var(--font-data); font-size: 14px; font-weight: 600; }
.pipeline-stage-sub { color: #97A2B2; font-size: 12px; }
.pipeline-foot { display: flex; align-items: center; gap: 8px; margin: 0 16px 14px; padding-top: 11px; border-top: 1px solid #EEF1F6; color: #7F8BA0; font-size: 12px; }
.pipeline-foot strong { color: #52627B; font-weight: 600; }
.pipeline-foot .spacer { flex: 1; }
.pipeline-foot button { padding: 0; color: #315FAE; border: 0; background: none; font-size: 12px; font-weight: 600; }
.side-stack { display: grid; gap: 14px; }
.bottleneck-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F0F2F6; }
.bottleneck-row:last-child { padding-bottom: 0; border-bottom: 0; }
.bottleneck-icon { width: 27px; height: 27px; display: grid; flex: 0 0 27px; place-items: center; color: #A76217; border-radius: 6px; background: #FFF4E5; }
.bottleneck-icon svg { width: 14px; height: 14px; }
.bottleneck-copy { min-width: 0; flex: 1; }
.bottleneck-copy strong { display: block; color: #384760; font-size: 13px; font-weight: 600; }
.bottleneck-copy small { color: #8793A6; font-size: 12px; }
.bottleneck-value { color: #54637B; font-family: var(--font-data); font-size: 13px; }
.manifest-panel { margin-top: 14px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 9px 13px; color: #66758A; border-bottom: 1px solid #EDF0F5; background: #FBFCFE; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; }
td { padding: 10px 13px; color: #47566F; border-bottom: 1px solid #F0F2F6; font-size: 13px; vertical-align: middle; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #FAFBFD; }
.candidate-cell { display: flex; align-items: center; gap: 8px; }
.candidate-cell .avatar { width: 26px; height: 26px; flex-basis: 26px; color: #315A9D; border: 0; background: #E9EFF9; font-size: 12px; }
.candidate-cell strong { display: block; color: #2D3B53; font-size: 13px; font-weight: 600; }
.candidate-cell small { display: block; color: #939EAF; font-size: 12px; }
.table-link { padding: 0; color: #315FAE; border: 0; background: transparent; font-size: inherit; font-weight: 600; text-align: left; }
.table-link:hover { text-decoration: underline; }
.country-chip { display: inline-flex; align-items: center; gap: 5px; color: #596881; font-size: 12px; }
.country-chip b { display: inline-grid; width: 18px; height: 15px; place-items: center; color: #54627B; border: 1px solid #E3E8F0; border-radius: 3px; background: #F8FAFC; font-family: var(--font-data); font-size: 12px; }
.action-icon { display: inline-grid; width: 27px; height: 27px; place-items: center; color: #68778E; border: 1px solid var(--line); border-radius: 5px; background: white; }
.action-icon svg { width: 13px; height: 13px; }
.action-icon:hover { color: var(--accent); border-color: #C9D8F6; background: #F6F9FF; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-select, .field input, .field select, .field textarea, .toolbar-search {
  min-height: 34px;
  padding: 0 9px;
  color: #40506A;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  font-size: 13px;
}
.toolbar-search { display: flex; align-items: center; gap: 7px; min-width: 200px; }
.toolbar-search svg { width: 13px; height: 13px; color: #8B97A8; }
.toolbar-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.table-count { color: #8793A6; font-size: 12px; }
.candidate-grid { display: grid; gap: 12px; }
.candidate-list-panel { overflow: hidden; }
.candidate-row { cursor: pointer; }
.candidate-row:hover td { background: #F8FAFE; }
.stage-label { display: inline-flex; align-items: center; max-width: 180px; padding: 3px 7px; overflow: hidden; color: #53627A; border: 1px solid #E9EDF4; border-radius: 4px; background: #F9FAFC; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.stage-label.stage-alert { color: #9D4F10; border-color: #F5E2C9; background: #FFF8EE; }
.stage-label.stage-done { color: #27633D; border-color: #D8EBDD; background: #F3FAF4; }
.empty-state { padding: 34px 20px; color: #7E8BA0; text-align: center; }
.empty-state strong { display: block; margin-bottom: 5px; color: #34435B; font-size: 14px; }
.empty-state p { margin: 0; font-size: 13px; }

.document-layout { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(420px, 1.22fr); gap: 14px; align-items: start; }
.doc-list { padding: 0; }
.doc-person { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-bottom: 1px solid #EEF1F6; }
.doc-person .avatar { color: #315A9D; border: 0; background: #E9EFF9; }
.doc-person strong { display: block; color: #33435B; font-size: 13px; }
.doc-person small { color: #8793A6; font-size: 12px; }
.doc-checklist { display: grid; }
.doc-check-row { display: flex; width: 100%; align-items: center; gap: 9px; padding: 10px 13px; color: #4D5C73; border: 0; border-bottom: 1px solid #F0F2F6; background: white; text-align: left; }
.doc-check-row:hover { background: #FAFBFD; }
.doc-check-row.selected { background: #F1F5FE; box-shadow: inset 3px 0 0 var(--accent); }
.doc-status-mark { width: 19px; height: 19px; display: grid; flex: 0 0 19px; place-items: center; color: #74829A; border: 1px solid #DCE2EC; border-radius: 50%; font-size: 12px; }
.doc-status-mark.verified { color: var(--settled); border-color: #CFE7D3; background: var(--settled-soft); }
.doc-status-mark.pending { color: var(--signal); border-color: #F2D8B7; background: var(--signal-soft); }
.doc-check-copy { min-width: 0; flex: 1; }
.doc-check-copy strong { display: block; overflow: hidden; color: #3B4A62; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.doc-check-copy small { color: #8A96A8; font-size: 12px; }
.doc-review-card { overflow: hidden; }
.doc-review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px; border-bottom: 1px solid #EDF0F5; }
.doc-review-head strong { color: #34435B; font-size: 13px; }
.doc-review-head small { display: block; color: #8793A6; font-size: 12px; }
.doc-review-body { display: grid; grid-template-columns: minmax(210px,.9fr) minmax(210px,1fr); min-height: 350px; }
.scan-stage { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; border-right: 1px solid #EDF0F5; background: #F3F5F9; }
.scan-caption { margin-top: 9px; color: #8793A6; font-size: 14px; text-align: center; }
.extraction-form { padding: 15px; }
.extraction-form h3 { margin: 0 0 10px; color: #33435B; font-size: 13px; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.field { display: grid; gap: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #7B879A; font-size: 12px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; color: #34435B; }
.field input[readonly] { color: #5D6D84; background: #F9FAFC; }
.field textarea { min-height: 72px; padding: 8px 9px; resize: vertical; }
.guardrail-box { display: grid; gap: 7px; margin-top: 13px; padding: 10px; border: 1px solid #DCE8DA; border-radius: 6px; background: #F7FBF6; }
.guardrail-title { margin: 0 0 1px; color: #43604A; font-size: 12px; font-weight: 700; }
.guardrail-row { display: flex; align-items: flex-start; gap: 7px; color: #526B57; font-size: 12px; }
.guardrail-row i { width: 14px; height: 14px; display: grid; flex: 0 0 14px; place-items: center; color: #fff; border-radius: 50%; background: var(--settled); font-style: normal; font-size: 12px; }
.doc-review-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 11px 14px; border-top: 1px solid #EDF0F5; }
.doc-review-actions .spacer { flex: 1; }
.demo-note { color: #8793A6; font-size: 12px; }

.job-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.job-card { padding: 14px; }
.job-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.job-card h3 { margin: 0 0 2px; color: #2D3C55; font-size: 13px; }
.job-ref { color: #8B97A9; font-family: var(--font-data); font-size: 12px; }
.job-info { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; color: #68778E; font-size: 12px; }
.job-info span { display: inline-flex; align-items: center; gap: 4px; }
.job-info svg { width: 12px; height: 12px; color: #8996A8; }
.quota-line { display: flex; justify-content: space-between; gap: 8px; color: #66758D; font-size: 12px; }
.quota-line strong { color: #36465F; font-family: var(--font-data); font-size: 12px; }
.quota-track { height: 5px; overflow: hidden; margin: 6px 0 9px; border-radius: 5px; background: #E9EDF4; }
.quota-fill { height: 100%; border-radius: inherit; background: #3770D5; }
.job-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid #EEF1F6; }
.job-footer small { color: #8894A6; font-size: 12px; }
.job-footer .secondary-button { min-height: 27px; padding: 0 8px; font-size: 12px; }
.showroom-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.showroom-card { overflow: hidden; }
.showroom-card-top { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border-bottom: 1px solid #EEF1F6; }
.candidate-photo { width: 52px; height: 58px; display: grid; flex: 0 0 52px; place-items: center; color: #46649A; border-radius: 6px; background: #E9EFF9; font-size: 15px; font-weight: 650; }
.showroom-card h3 { margin: 1px 0 2px; color: #2E3D55; font-size: 13px; }
.showroom-card-top small { color: #8793A6; font-size: 12px; }
.showroom-card-body { padding: 12px 14px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0 11px; }
.skill-tag { padding: 2px 6px; color: #596981; border: 1px solid #E6EAF2; border-radius: 4px; background: #FAFBFD; font-size: 12px; }
.showroom-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-bottom: 11px; }
.showroom-stats div { padding: 7px 6px; border-radius: 5px; background: #F8F9FC; }
.showroom-stats strong { display: block; color: #3E4E67; font-family: var(--font-data); font-size: 12px; }
.showroom-stats small { color: #8995A8; font-size: 12px; }
.showroom-card .secondary-button, .showroom-card .primary-button { width: 100%; min-height: 30px; }
.reservation-banner { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; padding: 9px 12px; color: #4F6285; border: 1px solid #DEE7F8; border-radius: 6px; background: #F6F9FF; font-size: 12px; }
.reservation-banner svg { width: 14px; height: 14px; color: #4268AC; }

.finance-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.summary-card { padding: 13px 14px; }
.summary-card small { display: block; margin-bottom: 6px; color: #8390A3; font-size: 12px; font-weight: 600; }
.summary-card strong { color: #2D3D57; font-family: var(--font-data); font-size: 18px; font-weight: 600; }
.summary-card span { display: block; margin-top: 3px; color: #919CAE; font-size: 12px; }
.ledger-grid { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 13px; align-items: start; }
.compliance-aside { padding: 14px; }
.compliance-aside h3 { margin: 0 0 8px; color: #36465F; font-size: 13px; }
.compliance-aside p { margin: 0 0 10px; color: #78869B; font-size: 12px; line-height: 1.55; }
.payer-rule { display: grid; gap: 6px; padding: 9px 0; border-top: 1px solid #EEF1F6; }
.payer-rule strong { color: #51617A; font-size: 12px; }
.payer-rule span { color: #7E8BA0; font-size: 12px; }
.ledger-entry { color: #33435B; font-family: var(--font-data); font-size: 12px; }

.welfare-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr); gap: 13px; align-items: start; }
.sos-card { padding: 14px; border-left: 3px solid #C74444; }
.sos-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; color: #9F3030; font-size: 13px; font-weight: 700; }
.sos-heading svg { width: 15px; height: 15px; }
.incident-item { padding: 10px 0; border-bottom: 1px solid #EEF1F6; }
.incident-item:last-child { padding-bottom: 0; border-bottom: 0; }
.incident-top { display: flex; align-items: center; gap: 7px; }
.incident-top strong { flex: 1; color: #394960; font-size: 13px; }
.incident-item p { margin: 4px 0; color: #748198; font-size: 12px; }
.incident-item small { color: #97A2B2; font-size: 12px; }
.welfare-note { padding: 13px; color: #56657D; border: 1px solid #E0E7F3; border-radius: 7px; background: #F8FAFE; }
.welfare-note strong { display: block; margin-bottom: 5px; color: #3B4B65; font-size: 13px; }
.welfare-note p { margin: 0; color: #7B879A; font-size: 12px; }
.timeline-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #EEF1F6; }
.timeline-row:last-child { border-bottom: 0; }
.timeline-dot { width: 7px; height: 7px; flex: 0 0 7px; margin-top: 4px; border-radius: 50%; background: #5380D5; }
.timeline-row strong { display: block; color: #46566F; font-size: 12px; }
.timeline-row small { color: #8D99AA; font-size: 12px; }

.modal { width: min(560px, calc(100% - 28px)); max-width: 560px; max-height: min(90vh, 780px); padding: 0; overflow: auto; border: 1px solid #DCE2EC; border-radius: 10px; background: white; box-shadow: 0 18px 55px rgba(19,32,58,.23); }
.modal:has(.form-section) { width: min(720px, calc(100% - 28px)); max-width: 720px; }
.modal::backdrop { background: rgba(19,32,58,.38); }
.modal form { display: flex; min-height: 220px; flex-direction: column; }
.modal-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 17px; border-bottom: 1px solid #EDF0F5; background: white; }
.modal-head h2 { margin: 0; color: #253550; font-size: 14px; }
.modal-close { width: 26px; height: 26px; display: grid; place-items: center; color: #718099; border: 1px solid transparent; border-radius: 5px; background: transparent; }
.modal-close:hover { border-color: var(--line); background: #F8F9FC; }
.modal-close svg { width: 14px; height: 14px; }
.modal-body { display: grid; gap: 12px; padding: 16px 17px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; padding: 12px 17px; border-top: 1px solid #EDF0F5; background: #FBFCFE; }
.inline-note { margin: 0; padding: 8px 9px; color: #64738B; border: 1px solid #E5EAF3; border-radius: 5px; background: #F9FAFD; font-size: 12px; }
.inline-note.warning-note { color: #8D4E11; border-color: #F2DEBE; background: #FFF9F1; }
.candidate-guarantor-section { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.candidate-guarantor-section .panel-header { margin: 0 0 8px; padding: 0; border: 0; }
.incident-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.incident-actions .quiet-button { padding: 3px 7px; font-size: 12px; }
.toast-region { position: fixed; z-index: 20; right: 20px; bottom: 18px; display: grid; gap: 8px; }
.toast { min-width: 240px; max-width: 360px; display: flex; align-items: center; gap: 9px; padding: 10px 13px; color: #2F4A37; border: 1px solid #CFE3D2; border-radius: 7px; background: white; box-shadow: 0 5px 20px rgba(27,42,74,.14); font-size: 13px; animation: enter 140ms ease-out both; }
.toast svg { width: 15px; height: 15px; color: var(--settled); }
@keyframes enter { from { transform: translateY(5px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.rtl .app-shell { flex-direction: row-reverse; }
.rtl .nav-item, .rtl th, .rtl td { text-align: right; }
.rtl .stage-label { direction: rtl; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 1100px) {
  .settings-grid { grid-template-columns: 1fr; }
  .topbar { padding: 0 20px; }
  .page-content { padding: 23px 20px 34px; }
  .sidebar { width: 218px; flex-basis: 218px; }
  .topbar-actions { gap: 7px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .job-grid, .showroom-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 780px) {
  .app-shell { display: block; }
  .sidebar { width: 100%; min-height: 0; height: auto; padding: 10px 13px; }
  .brand-lockup { flex-direction: row; align-items: center; gap: 10px; padding: 0 2px; }
  .brand-lockup img { width: 108px; }
  .product-name { letter-spacing: .12em; }
  .boot-skeleton { display: block; }
  .boot-side { width: 100%; flex-direction: row; align-items: center; gap: 8px; padding: 12px; overflow: hidden; }
  .boot-side .sk-nav { width: 92px; flex: 0 0 92px; }
  .boot-side .sk-logo { width: 108px; flex: 0 0 108px; }
  .boot-top { height: auto; min-height: 54px; flex-wrap: wrap; padding: 10px 14px; }
  .boot-page { padding: 20px 14px 32px; }
  .boot-cards { grid-template-columns: 1fr; }
  .sk-search { width: 100%; }
  .auth-frame { grid-template-columns: 1fr; }
  .auth-aside { flex-direction: row; align-items: center; gap: 16px; min-height: 0; padding: 18px 16px; }
  .auth-brief, .auth-aside::after { display: none; }
  .auth-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .auth-mark img { width: 132px; }
  .auth-word { margin: 0; }
  .auth-home { margin-left: auto; white-space: nowrap; }
  .auth-panel { justify-content: flex-start; width: 100%; padding: 28px 18px 40px; }
  .workspace-switcher, .nav-label, .sidebar-bottom { display: none; }
  .primary-nav { display: flex; gap: 4px; overflow-x: auto; margin-top: 9px; padding: 0 2px 2px; scrollbar-width: none; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .nav-item { min-height: 44px; flex: 0 0 auto; gap: 7px; padding: 0 9px; }
  .nav-item svg { width: 14px; height: 14px; flex-basis: 14px; }
  .nav-item span:nth-child(2) { font-size: 12px; }
  .nav-count, .nav-dot, .nav-alert { display: none; }
  .topbar { height: auto; min-height: 54px; flex-wrap: wrap; gap: 8px; padding: 9px 14px; }
  .topbar-search { width: 100%; height: auto; min-height: 44px; order: 2; }
  .topbar-search kbd { display: none; }
  .topbar-actions { width: 100%; flex-wrap: wrap; justify-content: flex-start; order: 3; }
  #calendar-date { display: none; }
  .calendar-toggle { min-height: 44px; height: auto; }
  .topbar-divider { display: none; }
  .topbar-signout { min-height: 44px; margin-left: auto; }
  .page-content { padding: 19px 14px 32px; }
  .page-heading { align-items: flex-start; }
  h1 { font-size: 20px; }
  .candidate-list-panel .table-wrap { display: none; }
  .candidate-cards { display: grid; gap: 8px; padding: 0 14px 12px; }
  .pipeline-track { grid-template-columns: 1fr 1fr; }
  .pipeline-stage { min-width: 0; }
  .pipeline-stage:not(:last-child)::after { display: none; }
  .triage-grid { grid-template-columns: 1fr; }
  .triage-card { min-height: 92px; }
  .dashboard-grid, .welfare-grid, .ledger-grid { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr; }
  .document-layout { grid-template-columns: 1fr; }
  .doc-review-body { grid-template-columns: 1fr; }
  .scan-stage { min-height: 300px; border-right: 0; border-bottom: 1px solid #EDF0F5; }
  .job-grid, .showroom-grid { grid-template-columns: 1fr; }
  .finance-summary { grid-template-columns: 1fr; gap: 8px; }
  .summary-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .summary-card small, .summary-card span { margin: 0; }
  .summary-card strong { font-size: 14px; }
  .toolbar { width: 100%; }
  .toolbar-search { flex: 1; }
  .page-heading .heading-actions { flex-wrap: wrap; justify-content: flex-end; }
  .heading-actions .filter-select { width: 100%; max-width: 100%; }
  .primary-button, .secondary-button, .quiet-button, .danger-button, .filter-select, .field input, .field select, .field textarea, .auth-card .primary-button { min-height: 44px; }
  .field input, .field select, .field textarea, .toolbar-search input, .topbar-search input { font-size: 16px; }
  .icon-button, .action-icon, .modal-close { width: 44px; height: 44px; }
  .language { min-width: 44px; min-height: 44px; }
  .panel-header, .doc-review-head, .doc-review-actions, .modal-actions, .job-footer, .incident-top { flex-wrap: wrap; align-items: flex-start; }
  .toolbar { align-items: stretch; }
  .toolbar-search { min-width: 0; flex: 1 1 160px; }
  .job-footer .secondary-button, .showroom-card .secondary-button, .showroom-card .primary-button, .stage-move select, .stage-move .primary-button, .stage-move .secondary-button { min-height: 44px; }
  .doc-review-actions .primary-button, .doc-review-actions .secondary-button, .doc-review-actions .danger-button { flex: 1 1 140px; }
  .doc-check-row { min-height: 48px; }
  .showroom-stats strong, .candidate-card, .candidate-card strong, .reservation-banner { overflow-wrap: anywhere; }
  .reservation-banner { align-items: flex-start; }
  .reservation-banner svg { flex: 0 0 14px; }
  .toast-region { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; }
  .toast { width: 100%; min-width: 0; max-width: none; }
  .stack-table thead { display: none; }
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table td { display: block; width: auto; }
  .stack-table tr { margin: 10px 12px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; }
  .stack-table td { padding: 8px 0; border-bottom: 1px solid #F0F2F6; white-space: normal; }
  .stack-table td:last-child { border-bottom: 0; }
  .stack-table td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: #66758A; font-size: 12px; font-weight: 600; }
  .stack-table td[colspan]::before, .stack-table td:not([data-label])::before { content: none; }
  .stack-table .status-badge { margin: 0 6px 6px 0; white-space: normal; }
  .stack-table .secondary-button, .stack-table .primary-button { margin-top: 4px; }
  .page-content { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
  .auth-aside { padding: 16px 14px; }
  .auth-mark img { width: 112px; }
  .auth-panel { padding: 24px 16px max(36px, env(safe-area-inset-bottom)); }
  .page-heading { display: grid; }
  .page-heading .heading-actions { justify-content: flex-start; }
  .license-strip { align-items: flex-start; flex-direction: column; gap: 7px; }
  .license-note { margin-left: 0; white-space: normal; }
  .candidate-list-panel .table-wrap { display: none; }
  .candidate-cards { display: grid; gap: 8px; padding: 0 14px 12px; }
  .pipeline-track { grid-template-columns: 1fr; }
  .pipeline-stage { min-width: 0; }
  .pipeline-stage:not(:last-child)::after { display: none; }
  .detail-list { grid-template-columns: 1fr; }
  .topbar-actions { gap: 4px; }
  .topbar-user > span:last-child { max-width: 110px; }
  .calendar-toggle { padding: 0 6px; font-size: 12px; }
  .language-switch { gap: 0; }
  .language { min-width: 44px; min-height: 44px; padding: 3px 6px; }
  .showroom-stats { grid-template-columns: 1fr; }
  .triage-card { grid-template-columns: 37px minmax(0, 1fr); }
  .triage-action { min-height: 44px; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .modal-body { padding: 13px; }
  .modal-actions { padding: 10px 13px; }
}
