:root {
  color-scheme: light;
  --teal-950: #003b38;
  --teal-900: #004940;
  --teal-800: #075b51;
  --teal-100: #e7f2ef;
  --gold: #e5a917;
  --ink: #20362f;
  --muted: #61716b;
  --canvas: #f7f8f7;
  --surface: #ffffff;
  --line: #dce5e1;
  --line-strong: #b9cac3;
  --success: #19744d;
  --success-bg: #e9f5ee;
  --warning: #8a5a00;
  --warning-bg: #fff5d9;
  --info: #245f8f;
  --info-bg: #eaf3fa;
  --danger: #a53939;
  --danger-bg: #fbecec;
  --shadow: 0 16px 46px rgb(13 55 48 / 14%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { min-width: 320px; background: var(--canvas); font-size: 16px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-color: var(--gold); outline-offset: 2px; }
button { letter-spacing: 0; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: 1.75rem; line-height: 1.2; letter-spacing: 0; }
h2 { margin-bottom: 12px; font-size: 1.125rem; line-height: 1.3; letter-spacing: 0; }
h3 { margin-bottom: 6px; font-size: 1rem; letter-spacing: 0; }
p { color: var(--muted); }
svg { display: block; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
.muted { color: var(--muted); }
.small { font-size: .8125rem; }
.nowrap { white-space: nowrap; }

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
}
.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--line);
  border-top-color: var(--teal-900);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.spinner--small { width: 16px; height: 16px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 38%) 1fr;
  background: var(--surface);
}
.login-brand {
  padding: clamp(32px, 6vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--teal-900);
  color: white;
}
.wordmark { display: inline-flex; flex-direction: column; width: max-content; font: 700 1.5rem Georgia, serif; letter-spacing: .08em; }
.wordmark::after { content: ""; width: 34px; height: 3px; margin-top: 7px; background: var(--gold); }
.login-brand__copy { max-width: 390px; }
.login-brand__copy h1 { font-size: clamp(2rem, 4vw, 3.5rem); max-width: 8ch; margin-bottom: 20px; color: white; }
.login-brand__copy p { color: #dcebe7; font-size: 1rem; }
.login-form-wrap { display: grid; place-content: center; padding: 32px; }
.login-form { width: min(420px, calc(100vw - 48px)); }
.login-form h2 { font-size: 1.75rem; margin-bottom: 8px; }
.login-form > p { margin-bottom: 32px; }
.login-form .button { width: 100%; margin-top: 8px; }
.login-foot { color: #b9d1cc; font-size: .8125rem; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); transition: grid-template-columns .18s ease; }
.app-shell.sidebar-collapsed { grid-template-columns: 72px minmax(0,1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--teal-900);
  color: white;
  z-index: 30;
}
.sidebar__head { padding: 26px 22px 20px; border-bottom: 1px solid rgb(255 255 255 / 12%); }
.sidebar__monogram { display: none; font: 700 1.45rem Georgia, serif; }
.workspace-name { margin-top: 22px; color: #b9d1cc; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.nav { padding: 18px 12px; display: grid; gap: 4px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 5px;
  color: #d9e8e4;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}
.nav a:hover { background: rgb(255 255 255 / 8%); color: white; }
.nav a[aria-current="page"] { background: white; color: var(--teal-900); }
.sidebar__profile {
  margin-top: auto;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgb(255 255 255 / 12%);
}
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #e6f0ed; color: var(--teal-900); font-weight: 800; font-size: .8125rem; }
.profile-copy { min-width: 0; flex: 1; }
.profile-copy strong, .profile-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy strong { font-size: .8125rem; }
.profile-copy span { color: #b9d1cc; font-size: .75rem; }
.sidebar__profile .icon-button { color: #d9e8e4; }

.sidebar-collapsed .sidebar { overflow-x: hidden; }
.sidebar-collapsed .sidebar__head { min-height: 88px; display: grid; place-items: center; padding: 18px 8px; }
.sidebar-collapsed .sidebar__head .wordmark, .sidebar-collapsed .workspace-name { display: none; }
.sidebar-collapsed .sidebar__monogram { width: 38px; height: 38px; display: grid; place-items: center; border-bottom: 3px solid var(--gold); }
.sidebar-collapsed .nav { padding-inline: 10px; }
.sidebar-collapsed .nav a { justify-content: center; padding-inline: 0; }
.sidebar-collapsed .nav a span { display: none; }
.sidebar-collapsed .sidebar__profile { flex-direction: column; padding: 14px 8px; }
.sidebar-collapsed .profile-copy { display: none; }
.sidebar-collapsed .avatar { width: 34px; height: 34px; }

.main-area { min-width: 0; }
.topbar {
  height: 58px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 92%);
}
.topbar__context { color: var(--muted); font-size: .8125rem; }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.menu-button { display: inline-grid; }
.page { padding: 28px clamp(20px, 3vw, 40px) 48px; max-width: 1500px; margin: 0 auto; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-header p { margin: 0; }
.breadcrumb { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; color: var(--muted); font-size: .8125rem; }
.toolbar { min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolbar__spacer { flex: 1; }

.button {
  min-height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--teal-900);
  color: white;
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  text-decoration: none;
}
.button:hover { background: var(--teal-800); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button--secondary { border-color: var(--line-strong); background: white; color: var(--ink); }
.button--secondary:hover { background: var(--canvas); }
.button--quiet { padding-inline: 8px; background: transparent; color: var(--teal-900); }
.button--quiet:hover { background: var(--teal-100); }
.button--danger { border-color: #edc4c4; background: white; color: var(--danger); }
.icon-button { width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; border: 0; border-radius: 5px; background: transparent; color: var(--ink); cursor: pointer; }
.icon-button:hover { background: rgb(0 0 0 / 6%); }

.field { display: grid; gap: 7px; }
.field--spaced { margin-top: 16px; }
.field > label, .field > .field-label { color: var(--ink); font-size: .875rem; font-weight: 700; }
.field-hint { color: var(--muted); font-size: .75rem; }
.required-mark { color: var(--danger); }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: white;
  color: var(--ink);
  font-size: .875rem;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-900); box-shadow: 0 0 0 3px rgb(0 73 64 / 10%); }
.search-field { position: relative; min-width: min(300px, 100%); }
.search-field svg { position: absolute; left: 11px; top: 13px; color: var(--muted); }
.search-field input { padding-left: 38px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 20px; }
.field--wide { grid-column: 1 / -1; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--teal-900); }
.checkbox-copy { display: grid; }
.checkbox-copy strong { font-size: .875rem; }
.checkbox-copy span { font-size: .75rem; color: var(--muted); }
.check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.check-card {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: white;
  cursor: pointer;
}
.check-card:hover { border-color: var(--teal-800); background: var(--canvas); }
.check-card:has(input:checked) { border-color: var(--teal-800); background: var(--teal-100); }
.check-card:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.check-card input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--teal-900);
}
.check-card span { min-width: 0; }
.check-card strong { display: block; font-size: .875rem; line-height: 1.3; }
.role-details { display: grid; gap: 0; }
.role-fields { padding: 4px 0 20px; }
.role-fields + .role-fields { padding-top: 20px; border-top: 1px solid var(--line); }
.role-fields:last-of-type { padding-bottom: 0; }
.role-fields h4 { margin: 0 0 14px; color: var(--teal-900); font-size: .875rem; }
.role-details__empty { margin: 0; font-size: .875rem; }
.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px; border: 1px solid var(--line-strong); border-right: 0; font-size: .8125rem; font-weight: 700; cursor: pointer; }
.segmented label:first-child span { border-radius: 5px 0 0 5px; }
.segmented label:last-child span { border-right: 1px solid var(--line-strong); border-radius: 0 5px 5px 0; }
.segmented input:checked + span { background: var(--teal-100); color: var(--teal-900); border-color: var(--teal-900); box-shadow: inset 0 0 0 1px var(--teal-900); }

.kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; margin-bottom: 30px; border: 1px solid var(--line); background: var(--line); }
.kpi { min-height: 122px; padding: 20px; background: white; }
.kpi__label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8125rem; font-weight: 700; }
.kpi__value { display: block; margin-top: 14px; color: var(--ink); font-size: 2rem; line-height: 1; font-weight: 750; }
.section { margin-top: 28px; }
.section-copy { margin-top: 16px; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.section-header h2 { margin: 0; }
.next-step-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-bottom: 1px solid var(--line); }
.next-step { padding: 20px 24px 22px 0; border-right: 1px solid var(--line); }
.next-step + .next-step { padding-left: 24px; }
.next-step:last-child { border-right: 0; }
.next-step__number { color: var(--gold); font-weight: 800; font-size: .8125rem; }
.next-step h3 { margin-top: 8px; }
.next-step p { margin-bottom: 0; font-size: .875rem; }

.table-wrap { width: 100%; overflow-x: auto; border-bottom: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: white; }
th { padding: 11px 14px; border-bottom: 1px solid var(--line-strong); color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; text-align: left; white-space: nowrap; }
td { padding: 15px 14px; border-bottom: 1px solid var(--line); font-size: .875rem; vertical-align: middle; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #f8fbfa; }
tbody tr:last-child td { border-bottom: 0; }
.table-primary { display: grid; gap: 2px; min-width: 180px; }
.table-primary strong { font-size: .875rem; }
.table-primary span { color: var(--muted); font-size: .75rem; }
.companies-page-header { margin-bottom: 22px; }
.companies-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 20px; border: 1px solid var(--line); background: var(--line); gap: 1px; }
.companies-summary__item { min-height: 86px; display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: white; color: var(--teal-900); }
.companies-summary__item > span { display: grid; }
.companies-summary__item strong { color: var(--ink); font-size: 1.55rem; line-height: 1.1; }
.companies-summary__item small { margin-top: 3px; color: var(--muted); font-size: .75rem; }
.companies-summary__item--warning { color: var(--warning); }
.companies-toolbar { display: grid; grid-template-columns: minmax(240px,1.5fr) repeat(4,minmax(130px,.7fr)); align-items: end; gap: 10px; padding: 12px 0 16px; border-bottom: 1px solid var(--line); }
.compact-filter { min-width: 0; display: grid; gap: 4px; }
.compact-filter > span { color: var(--muted); font-size: .6875rem; font-weight: 700; }
.compact-filter select { min-height: 42px; }
.companies-layout { display: grid; gap: 20px; align-items: start; }
.companies-register { min-width: 0; background: white; }
.companies-register__meta { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.companies-table { min-width: 1020px; table-layout: fixed; }
.companies-table th:nth-child(1) { width: 23%; }
.companies-table th:nth-child(2) { width: 13%; }
.companies-table th:nth-child(3) { width: 14%; }
.companies-table th:nth-child(4) { width: 15%; }
.companies-table th:nth-child(5) { width: 10%; }
.companies-table th:nth-child(6) { width: 10%; }
.companies-table th:nth-child(7) { width: 12%; }
.companies-table th:nth-child(8) { width: 3%; }
.companies-table th { padding: 11px 10px; letter-spacing: 0; text-transform: none; }
.companies-table td { min-width: 0; padding: 15px 10px; overflow: hidden; }
.companies-table td:last-child { width: 28px; padding-left: 0; color: var(--muted); }
.companies-table .table-primary { min-width: 0; }
.companies-table .table-primary strong, .companies-table .table-primary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-data-unavailable { color: var(--muted); font-size: .75rem; }
.company-readiness { min-width: 104px; display: grid; grid-template-columns: 1fr; gap: 5px; }
.company-readiness strong { font-size: .75rem; }
.company-readiness > span { width: 100%; height: 5px; overflow: hidden; border-radius: 3px; background: var(--line); }
.company-readiness i { height: 100%; display: block; border-radius: inherit; background: var(--teal-800); }
.company-count-cell { display: grid; grid-template-columns: 18px auto; align-items: center; gap: 1px 5px; }
.company-count-cell svg, .company-count-cell .case-indicator { grid-row: 1 / span 2; }
.company-count-cell strong { font-size: .8125rem; }
.company-count-cell small { color: var(--muted); font-size: .6875rem; white-space: nowrap; }
.case-indicator { width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: var(--line-strong); }
.case-indicator.is-active { background: var(--success); }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.companies-attention { border: 1px solid var(--line); background: white; }
.companies-attention__header { min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--line); }
.companies-attention__header > span:first-child { display: flex; align-items: center; gap: 9px; }
.attention-count { min-width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--danger); color: white; font-size: .75rem; font-weight: 800; }
.attention-count--muted { background: var(--line-strong); }
.attention-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; padding: 3px 14px 12px; }
.attention-list button { width: 100%; display: grid; grid-template-columns: 22px minmax(0,1fr) 18px; align-items: start; gap: 9px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.attention-list button:hover strong { color: var(--teal-900); text-decoration: underline; }
.attention-list button > span { min-width: 0; display: grid; gap: 2px; }
.attention-list strong { overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.attention-list small { color: var(--muted); font-size: .6875rem; }
.attention-empty { min-height: 110px; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; place-content: center; align-items: center; column-gap: 12px; padding: 20px; color: var(--success); text-align: left; }
.attention-empty > svg { grid-row: 1 / span 2; }
.attention-empty strong { color: var(--ink); font-size: .8125rem; }
.attention-empty span { color: var(--muted); font-size: .75rem; }
.attention-empty--unavailable { color: var(--muted); }
.status { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border-radius: 999px; font-size: .75rem; font-weight: 750; white-space: nowrap; }
.status--success { background: var(--success-bg); color: var(--success); }
.status--warning { background: var(--warning-bg); color: var(--warning); }
.status--info { background: var(--info-bg); color: var(--info); }
.status--danger { background: var(--danger-bg); color: var(--danger); }
.status--neutral { background: #edf1ef; color: #4f5f59; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: .75rem; }
.skeleton { display: block; width: 80%; height: 14px; border-radius: 3px; background: linear-gradient(90deg,#edf1ef,#f8faf9,#edf1ef); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty-state { min-height: 270px; display: grid; place-content: center; justify-items: center; padding: 36px; color: var(--muted); text-align: center; }
.empty-state h3 { margin-top: 14px; color: var(--ink); }
.empty-state p { max-width: 420px; margin-bottom: 18px; font-size: .875rem; }

.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.tab { padding: 12px 1px 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: .875rem; font-weight: 700; cursor: pointer; }
.tab[aria-selected="true"] { border-bottom-color: var(--teal-900); color: var(--teal-900); }
.account-tabs { margin-top: -8px; }
.account-tabs + .toolbar { margin-top: 16px; }
.account-context { min-height: 58px; display: flex; align-items: center; gap: 11px; margin-top: 16px; padding: 9px 12px; border-left: 3px solid var(--teal-800); background: var(--teal-100); }
.account-context > svg { color: var(--teal-900); }
.account-context > span { min-width: 0; display: grid; }
.account-context strong, .account-context small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-context small { color: var(--muted); font-size: .75rem; }
.account-context .button { margin-left: auto; }
.account-context + .toolbar { margin-top: 10px; }
#account-company-context:empty + .toolbar { margin-top: 16px; }
.company-access-list { max-height: 320px; margin-top: 14px; overflow-y: auto; border-top: 1px solid var(--line); }
.company-access-row { min-height: 62px; display: grid; grid-template-columns: minmax(0,1fr) 150px; align-items: center; gap: 16px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.company-access-row > label { min-width: 0; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.company-access-row input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--teal-800); }
.company-access-row label > span { min-width: 0; display: grid; }
.company-access-row strong, .company-access-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-access-row small { color: var(--muted); font-size: .75rem; }
.company-access-row select { min-width: 0; }
.master-detail { min-height: 610px; display: grid; grid-template-columns: minmax(430px, 58%) minmax(350px, 42%); background: white; }
.master-pane { min-width: 0; border-right: 1px solid var(--line); }
.detail-pane { padding: 22px; }
.detail-pane__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.detail-pane__header p { margin: 3px 0 0; font-size: .75rem; }
.detail-form { display: grid; gap: 17px; padding-top: 20px; }
.detail-form__actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 9px; padding: 16px 0 0; background: white; border-top: 1px solid var(--line); }
.selected-row { background: var(--teal-100) !important; box-shadow: inset 3px 0 0 var(--teal-900); }

dialog { width: min(780px, calc(100vw - 28px)); max-height: min(900px, calc(100vh - 28px)); padding: 0; border: 0; border-radius: 6px; box-shadow: var(--shadow); color: var(--ink); }
dialog::backdrop { background: rgb(12 32 28 / 52%); backdrop-filter: blur(2px); }
.dialog__header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 21px 24px 16px; border-bottom: 1px solid var(--line); background: white; }
.dialog__header h2 { margin: 0; }
.dialog__header p { margin: 4px 0 0; font-size: .8125rem; }
.dialog__body { padding: 22px 24px; }
.ssm-import { margin: -2px 0 22px; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.ssm-import__heading { display: flex; align-items: flex-start; gap: 12px; }
.ssm-import__heading h3 { margin-bottom: 3px; }
.ssm-import__heading p { margin-bottom: 0; font-size: .8125rem; }
.ssm-import__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 5px; background: var(--teal-100); color: var(--teal-900); }
.ssm-import__controls { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 12px; margin-top: 16px; }
.ssm-import__privacy { margin: 8px 0 0; color: var(--muted); font-size: .75rem; }
.ssm-import__result:empty { display: none; }
.scan-result { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; padding: 11px 12px; border-left: 3px solid var(--line-strong); background: var(--canvas); font-size: .8125rem; }
.scan-result--success { border-left-color: var(--success); background: var(--success-bg); color: var(--success); }
.scan-result--warning { border-left-color: var(--warning); background: var(--warning-bg); color: var(--warning); }
.scan-result--error { border-left-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
.scan-result strong, .scan-result span { display: block; }
.scan-result span { margin-top: 2px; color: var(--ink); }
.scan-result ul { margin: 7px 0 0; padding-left: 18px; color: var(--ink); }
.dialog__section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.dialog__section h3 { margin-bottom: 14px; }
.set-template-category { margin-top: 16px; }
.set-template-category h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--teal-900); font-size: .875rem; }
.set-template-category h4 span { color: var(--muted); font-size: .75rem; font-weight: 700; }
.dialog__actions { position: sticky; bottom: 0; z-index: 1; display: flex; justify-content: flex-end; gap: 9px; padding: 16px 24px; border-top: 1px solid var(--line); background: white; }
.confirm-dialog { width: min(590px, calc(100vw - 28px)); }
.confirm-dialog__title { display: flex; align-items: center; gap: 13px; }
.confirm-dialog__title > span:last-child { display: grid; }
.confirm-dialog__title small { color: var(--muted); font-size: .7rem; font-weight: 750; text-transform: uppercase; }
.confirm-dialog__title h2 { margin-top: 2px; }
.confirm-dialog__icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--teal-100); color: var(--teal-900); }
.confirm-dialog__intro { margin-bottom: 19px; color: var(--ink); }
.publish-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.publish-summary > div { min-width: 0; padding: 14px 13px; border-right: 1px solid var(--line); }
.publish-summary > div:last-child { border-right: 0; }
.publish-summary dt { color: var(--muted); font-size: .6875rem; font-weight: 700; text-transform: uppercase; }
.publish-summary dd { margin: 4px 0 0; overflow: hidden; color: var(--ink); font-size: .875rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.publish-warning { display: flex; align-items: flex-start; gap: 11px; margin-top: 20px; padding: 13px 14px; border-left: 3px solid var(--warning); background: var(--warning-bg); }
.publish-warning > svg { flex: 0 0 auto; margin-top: 1px; color: var(--warning); }
.publish-warning strong { font-size: .875rem; }
.publish-warning p { margin: 3px 0 0; color: var(--ink); font-size: .8125rem; }
.conditional { display: none; }
.conditional.is-visible { display: block; }

.back-link { width: max-content; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; color: var(--teal-900); font-size: .8125rem; font-weight: 750; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.company-profile-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.company-profile-header .breadcrumb { margin-bottom: 8px; }
.company-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.company-title-line h1 { margin: 0; font-size: 2rem; }
.company-actions { display: flex; gap: 10px; }
.sales-progress { position: relative; display: grid; grid-template-columns: repeat(5, minmax(105px, 1fr)); margin: 34px 0 26px; padding: 0 4px 24px; overflow-x: auto; }
.sales-progress__track { position: absolute; top: 14px; left: calc(10% + 4px); right: calc(10% + 4px); height: 2px; background: var(--line-strong); }
.sales-progress__track span { display: block; width: 0; height: 100%; background: var(--teal-800); }
.sales-progress--step-1 .sales-progress__track span { width: 25%; }
.sales-progress--step-2 .sales-progress__track span { width: 50%; }
.sales-progress--step-3 .sales-progress__track span { width: 75%; }
.sales-progress--step-4 .sales-progress__track span { width: 100%; }
.sales-progress--lost .sales-progress__track span { width: 0; }
.sales-step { position: relative; z-index: 1; display: grid; justify-items: center; gap: 9px; color: var(--muted); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.sales-step__marker { width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.sales-step.is-complete .sales-step__marker { border-color: var(--teal-800); background: var(--teal-800); color: white; }
.sales-step.is-current { color: var(--ink); }
.sales-step.is-current .sales-step__marker { border-color: var(--gold); background: var(--gold); }
.sales-step__dot { width: 6px; height: 6px; border-radius: 50%; background: white; }
.company-detail-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .95fr); border-top: 1px solid var(--line); }
.company-detail-main { min-width: 0; padding-right: 34px; }
.company-detail-aside { min-width: 0; padding-left: 34px; border-left: 1px solid var(--line); }
.profile-section { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.profile-section:last-child { border-bottom: 0; }
.profile-section__header { min-height: 32px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.profile-section__header > div { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.profile-section__header h2 { margin: 0; font-size: 1.15rem; }
.company-facts { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1.8fr); gap: 12px 22px; margin: 0; font-size: .875rem; }
.company-facts dt { color: var(--muted); }
.company-facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.empty-value { color: var(--muted); font-style: italic; }
.company-documents { border-top: 1px solid var(--line); }
.company-document { display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(100px, .7fr) minmax(150px, .8fr); align-items: center; gap: 14px; min-height: 64px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .8125rem; }
.company-document--header { min-height: 38px; color: var(--muted); font-size: .7rem; font-weight: 750; text-transform: uppercase; }
.document-name { min-width: 0; display: flex; align-items: flex-start; gap: 10px; }
.document-name > span { min-width: 0; display: grid; gap: 2px; }
.document-name strong { overflow-wrap: anywhere; }
.document-name small { color: var(--muted); line-height: 1.35; }
.company-document .button { justify-self: start; }
.document-actions { display: inline-flex; align-items: center; justify-self: start; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 5px; background: var(--canvas); }
.document-actions .icon-button { width: 36px; height: 36px; color: var(--teal-900); }
.document-actions .button { margin: -3px; }
.document-preview-host:empty { display: none; }
.document-preview-host { margin-top: 18px; scroll-margin-top: 18px; }
.document-preview { border: 1px solid var(--line-strong); background: white; }
.document-preview__header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 12px 9px 15px; border-bottom: 1px solid var(--line); }
.document-preview__header > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.document-preview__header span { min-width: 0; display: grid; }
.document-preview__header strong { font-size: .875rem; }
.document-preview__header small { overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.document-preview__actions { flex: 0 0 auto; }
.document-preview__frame { width: 100%; height: min(720px, 70vh); display: block; border: 0; background: #edf1ef; }
.document-preview-loading { min-height: 110px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.document-viewer-dialog { width: min(1180px,calc(100vw - 32px)); max-width: none; height: min(860px,calc(100vh - 32px)); padding: 0; overflow: hidden; }
.document-viewer-dialog .dialog__header { min-height: 64px; }
.document-viewer-dialog .dialog__header > div { display: flex; align-items: center; gap: 10px; }
.document-viewer-dialog .dialog__header h2 { margin: 0; font-size: 1rem; }
.document-viewer-dialog__frame { width: 100%; height: calc(100% - 64px); display: block; border: 0; background: #e9eeec; }

.document-register-heading { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 0; }
.document-register-heading > div { min-width: 0; display: flex; align-items: baseline; gap: 13px; }
.document-register-heading h2 { margin: 0; font-size: 1.25rem; }
.document-register-heading p { margin: 0; color: var(--muted); font-size: .8125rem; }
.document-library { min-height: 690px; display: grid; grid-template-columns: 216px minmax(620px,1fr) 340px; align-items: stretch; border: 1px solid var(--line); background: white; }
.document-library.is-inspector-closed { grid-template-columns: 216px minmax(620px,1fr); }
.document-library-sidebar { min-width: 0; padding: 18px 10px; border-right: 1px solid var(--line); background: #fbfcfc; }
.document-library-sidebar > button, .document-library-case-tree > button { width: 100%; min-height: 42px; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 5px; color: var(--ink); background: transparent; font-size: .8125rem; text-align: left; cursor: pointer; }
.document-library-sidebar > button:hover, .document-library-case-tree > button:hover { background: #f0f5f3; }
.document-library-sidebar > button.is-active, .document-library-case-tree > button.is-active { color: var(--teal-900); background: var(--teal-100); font-weight: 750; }
.document-library-sidebar button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-library-sidebar button > strong { color: var(--muted); font-size: .7rem; }
.document-library-sidebar button > .document-library-count--warning { min-width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #7a5100; background: #ffe8ad; }
.document-library-sidebar__divider { height: 1px; margin: 15px 5px; background: var(--line); }
.document-library-sidebar h3 { margin: 0 10px 8px; color: var(--muted); font-size: .65rem; text-transform: uppercase; }
.document-library-case-tree > button { grid-template-columns: 22px minmax(0,1fr) 16px; }
.document-library-case-tree > .document-library-case-category { min-height: 34px; grid-template-columns: 18px minmax(0,1fr); padding: 6px 10px 6px 34px; color: var(--muted); font-size: .75rem; }
.document-library-main { min-width: 0; overflow-x: auto; }
.document-library-breadcrumb { min-height: 50px; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.document-library-breadcrumb strong { color: var(--ink); }
.document-library-controls { display: grid; grid-template-columns: minmax(190px,1fr) 126px 138px 138px 76px; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.document-library-controls select, .document-library-search { min-height: 40px; border: 1px solid var(--line-strong); border-radius: 5px; background: white; }
.document-library-search { display: flex; align-items: center; gap: 8px; padding: 0 11px; color: var(--muted); }
.document-library-search input { min-width: 0; width: 100%; min-height: 38px; padding: 0; border: 0; outline: 0; background: transparent; }
.document-library-view-toggle { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 5px; }
.document-library-view-toggle button { display: grid; place-items: center; border: 0; color: var(--muted); background: white; cursor: pointer; }
.document-library-view-toggle button.is-active { color: var(--teal-900); background: var(--teal-100); }
.document-library-table { min-width: 0; }
.document-library-row { width: 100%; min-height: 68px; display: grid; grid-template-columns: minmax(150px,1.45fr) minmax(100px,.9fr) 84px 50px 100px 88px 45px; align-items: center; gap: 6px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: white; text-align: left; }
.document-library-row[hidden] { display: none; }
.document-library-row:not(.document-library-row--head):hover { background: #f7faf9; }
.document-library-row[aria-selected="true"] { background: #eef6f4; }
.document-library-row--head { min-height: 42px; color: var(--muted); background: #fbfcfc; font-size: .625rem; font-weight: 750; line-height: 1.25; text-transform: uppercase; cursor: default; }
.document-library-row--head > span:nth-child(4), .document-library-row--head > span:last-child { text-align: center; }
.document-library-name { min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.document-library-name > svg { flex: 0 0 auto; color: var(--primary); }
.document-library-name > span { min-width: 0; display: grid; gap: 3px; }
.document-library-name strong, .document-library-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-library-name strong { font-size: .8125rem; }
.document-library-name small { color: var(--muted); font-size: .71875rem; font-weight: 500; }
.document-library-row > span:not(.document-library-name) { min-width: 0; font-size: .75rem; }
.document-library-row .status { width: max-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-library-updated { display: grid; gap: 2px; }
.document-library-updated strong { font-size: .72rem; font-weight: 650; }
.document-library-updated small { color: var(--muted); font-size: .66rem; }
.document-library-row__actions { display: flex; justify-content: flex-end; gap: 3px; }
.document-library-row__actions .icon-button { width: 26px; height: 26px; border: 0; background: transparent; }
.document-library-table--grid { min-width: 0; display: grid; grid-template-columns: repeat(3,minmax(190px,1fr)); gap: 12px; padding: 16px; }
.document-library-table--grid .document-library-row--head { display: none; }
.document-library-table--grid .document-library-row { min-height: 176px; display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 5px; }
.document-library-table--grid .document-library-name { grid-column: 1 / -1; }
.document-library-table--grid .document-library-name > svg { width: 32px; height: 32px; }
.document-library-table--grid .document-library-row > span:nth-child(2), .document-library-table--grid .document-library-row > span:nth-child(3) { grid-column: 1 / -1; }
.document-library-table--grid .document-library-row > span:nth-child(4) { display: none; }
.document-library-table--grid .document-library-row > span:nth-child(5) { grid-column: 1; }
.document-library-table--grid .document-library-row > span:nth-child(6) { display: none; }
.document-library-table--grid .document-library-row__actions { grid-column: 2; grid-row: 3; }
.document-library-table--grid .document-library-empty { grid-column: 1 / -1; }
.document-library-empty { min-height: 260px; display: grid; place-content: center; justify-items: center; gap: 7px; color: var(--muted); text-align: center; }
.document-library-empty[hidden] { display: none; }
.document-library-empty strong { color: var(--ink); }
.document-library-empty span { font-size: .8125rem; }
.document-library-inspector { min-width: 0; min-height: 688px; max-height: 820px; overflow-y: auto; padding: 20px; border-left: 1px solid var(--line); background: #fbfcfc; }
.document-library-inspector.is-closed { display: none; }
.document-library-detail[hidden] { display: none; }
.document-library-detail__hero { display: grid; grid-template-columns: 30px minmax(0,1fr) 30px; align-items: flex-start; gap: 10px; padding-bottom: 16px; }
.document-library-detail__hero > div { min-width: 0; }
.document-library-detail__hero h3 { margin: 0 0 4px; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.35; }
.document-library-detail__hero p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.document-library-detail__close { width: 30px; height: 30px; border: 0; background: transparent; }
.document-library-thumbnail { height: 230px; display: grid; place-items: center; margin-bottom: 14px; padding: 18px; background: #eef2f0; }
.document-library-thumbnail__paper { width: 142px; height: 190px; display: grid; align-content: start; gap: 8px; padding: 25px 18px; border: 1px solid #dfe5e2; box-shadow: 0 4px 12px rgb(20 45 37 / 8%); background: white; }
.document-library-thumbnail__paper span { margin-bottom: 13px; color: var(--primary); font-size: .68rem; font-weight: 800; text-align: center; }
.document-library-thumbnail__paper i { height: 5px; display: block; background: #d9e0dd; }
.document-library-thumbnail__paper i:nth-of-type(3) { width: 68%; }
.document-library-thumbnail__paper i:nth-of-type(5) { width: 82%; }
.document-library-meta { margin: 17px 0; display: grid; gap: 10px; }
.document-library-meta > div { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 10px; align-items: start; }
.document-library-meta dt { color: var(--muted); font-size: .71875rem; }
.document-library-meta dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: .75rem; font-weight: 650; }
.document-library-link { padding: 0; border: 0; color: var(--primary); background: transparent; font: inherit; text-decoration: underline; cursor: pointer; }
.document-library-detail__actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: 7px; margin-bottom: 17px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.document-library-detail__actions .button { min-width: 0; padding-inline: 9px; }
.document-library-subsection { padding-top: 17px; margin-top: 17px; border-top: 1px solid var(--line); }
.document-library-subsection h4 { margin: 0 0 11px; font-size: .8125rem; }
.document-review-list, .document-version-list { display: grid; gap: 8px; }
.document-review-list article { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 4px 8px; padding: 10px; border: 1px solid var(--line); background: white; }
.document-review-list article > span:first-child { color: var(--muted); font-size: .6875rem; font-weight: 750; text-transform: uppercase; }
.document-review-list article strong { overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.document-review-list article .status { grid-column: 1 / -1; width: max-content; }
.document-version-list > button { min-width: 0; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 4px 8px; padding: 10px; border: 1px solid var(--line); color: var(--ink); background: white; text-align: left; cursor: pointer; }
.document-version-list > button:hover { border-color: var(--primary); }
.document-version-list > button > span:first-child { grid-row: 1 / span 2; color: var(--primary); font-size: .75rem; font-weight: 800; }
.document-version-list > button > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.document-version-list strong, .document-version-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-version-list strong { font-size: .75rem; }
.document-version-list small { color: var(--muted); font-size: .6875rem; }
.document-version-list .status { grid-column: 2; width: max-content; }
.document-library-missing { margin-top: 17px; padding: 14px; border: 1px solid #ead7aa; background: #fff8e7; }
.document-library-missing p { margin: 0 0 12px; color: #75520d; font-size: .75rem; line-height: 1.5; }
.document-upload-choices { display: grid; gap: 10px; }
.document-upload-choices > button { display: grid; grid-template-columns: 28px minmax(0,1fr) 20px; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--ink); background: white; text-align: left; cursor: pointer; }
.document-upload-choices > button:hover { border-color: var(--primary); background: #f7faf9; }
.document-upload-choices span { display: grid; gap: 3px; }
.document-upload-choices small { color: var(--muted); font-size: .75rem; }
.sales-opportunity-form { display: grid; gap: 16px; }
.sales-opportunity-form .button { justify-self: end; }
.dd-readiness { display: flex; align-items: flex-start; gap: 13px; padding: 17px; border: 1px solid var(--line); background: var(--canvas); }
.dd-readiness--ready { border-color: #b9dac9; background: var(--success-bg); }
.dd-readiness__icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #e6ebe9; color: var(--muted); }
.dd-readiness--ready .dd-readiness__icon { background: white; color: var(--success); }
.dd-readiness strong { display: block; font-size: .875rem; }
.dd-readiness p { margin: 3px 0 13px; font-size: .8125rem; }
.company-case-list { display: grid; margin-bottom: 12px; border-top: 1px solid var(--line); }
.company-case { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.company-case:hover strong { color: var(--teal-900); text-decoration: underline; }
.company-case > span { min-width: 0; display: flex; align-items: center; gap: 8px; }
.company-case > span:first-child { display: grid; gap: 2px; }
.company-case strong, .company-case small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-case strong { font-size: .8125rem; }
.company-case small { color: var(--muted); }
.case-create-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 22px; padding: 13px; border-left: 3px solid var(--teal-800); background: var(--teal-100); }
.case-create-note div { display: grid; gap: 2px; }
.case-create-note strong { font-size: .8125rem; }
.case-create-note span { color: var(--muted); font-size: .75rem; }

.case-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 23px; }
.case-header .breadcrumb { margin-bottom: 8px; }
.case-summary { display: grid; grid-template-columns: 1.25fr 1.25fr .65fr .8fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.case-summary > div { min-width: 0; display: grid; gap: 4px; padding: 15px 18px; border-right: 1px solid var(--line); }
.case-summary > div:last-child { border-right: 0; }
.case-summary span { color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.case-summary strong, .case-summary a { overflow: hidden; color: var(--ink); font-size: .875rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.case-summary a { color: var(--teal-900); }
.case-workspace { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(300px,.75fr); }
.case-workspace__main { min-width: 0; padding-right: 32px; }
.case-workspace__aside { min-width: 0; padding-left: 32px; border-left: 1px solid var(--line); }
.case-section { margin-top: 0; padding: 24px 0; }
.case-section + .case-section { border-top: 1px solid var(--line); }
.case-section .section-header { align-items: flex-start; }
.case-section .section-header p { margin: 3px 0 0; font-size: .75rem; }
.case-checklist { margin-top: 12px; border-top: 1px solid var(--line); }
.case-checklist__row { display: grid; grid-template-columns: minmax(210px,1.35fr) 80px minmax(180px,1fr) 100px 78px; align-items: center; gap: 12px; min-height: 64px; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: .8125rem; }
.case-checklist__header { min-height: 38px; color: var(--muted); font-size: .7rem; font-weight: 750; text-transform: uppercase; }
.case-checklist__row.is-excluded { background: #fafbfa; color: var(--muted); }
.case-checklist__row.is-excluded .case-request strong { text-decoration: line-through; }
.case-request { min-width: 0; display: grid; gap: 3px; }
.case-request strong { overflow-wrap: anywhere; }
.case-request small { color: var(--muted); }
.case-row-actions { display: inline-flex; justify-content: flex-end; gap: 2px; }
.reviewer-tags { align-content: center; }
.reviewer-tags .tag { color: var(--ink); }
.reviewer-choice-grid { margin-top: 18px; }
.compact-empty { min-height: 190px; padding: 24px; border: 1px solid var(--line); }
.readiness-list { display: grid; border-top: 1px solid var(--line); }
.readiness-check { width: 100%; display: grid; grid-template-columns: 18px minmax(0,1fr) 16px; align-items: center; gap: 9px; padding: 9px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); font-size: .8125rem; text-align: left; }
button.readiness-check { cursor: pointer; }
button.readiness-check:hover { background: var(--canvas); color: var(--ink); }
.readiness-check > svg { flex: 0 0 auto; color: var(--line-strong); }
.readiness-check > span { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.readiness-check small { color: var(--warning); font-size: .6875rem; font-weight: 700; }
.readiness-check.is-ready { color: var(--ink); }
.readiness-check.is-ready > svg:first-child { color: var(--success); }
.readiness-check.is-ready small { color: var(--success); }
.readiness-help { display: block; margin-top: 14px; }
.workflow-note--success > svg { color: var(--success); }
.case-setup-form { display: grid; gap: 16px; }
.case-setup-form .button { justify-self: end; }
.workflow-note { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; }
.workflow-note > svg { color: var(--teal-800); }
.workflow-note strong { font-size: .875rem; }
.workflow-note p { margin: 4px 0 0; font-size: .8125rem; }
.case-activity { margin-top: 17px; }
.activity-timeline { display: grid; }
.activity-item { position: relative; display: grid; grid-template-columns: 18px minmax(0,1fr) auto; gap: 12px; min-height: 68px; }
.activity-item::before { content: ""; position: absolute; left: 6px; top: 17px; bottom: -2px; width: 1px; background: var(--line-strong); }
.activity-item:last-child::before { display: none; }
.activity-item__marker { position: relative; z-index: 1; width: 13px; height: 13px; margin-top: 3px; border: 3px solid var(--teal-100); border-radius: 50%; background: var(--teal-800); }
.activity-item__marker--muted { border-color: #edf1ef; background: #80908a; }
.activity-item strong { display: block; font-size: .8125rem; }
.activity-item p { margin: 2px 0 0; font-size: .75rem; }
.activity-item time { color: var(--muted); font-size: .75rem; white-space: nowrap; }

.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: grid; gap: 9px; }
.toast { width: min(390px, calc(100vw - 32px)); display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 5px; background: white; box-shadow: var(--shadow); font-size: .875rem; }
.toast--success { border-left-color: var(--success); }
.toast--error { border-left-color: var(--danger); }
.error-banner { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 18px; padding: 12px; border: 1px solid #edc4c4; border-radius: 5px; background: var(--danger-bg); color: var(--danger); font-size: .875rem; }

/* Company profile workspace */
.company-profile-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 9px; color: var(--muted); font-size: .75rem; }
.company-profile-meta span + span { position: relative; }
.company-profile-meta span + span::before { content: ""; position: absolute; left: -11px; top: 7px; width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.company-profile-tabs { display: flex; gap: 26px; margin-top: 26px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.company-profile-tab { flex: 0 0 auto; padding: 13px 1px 11px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-size: .8125rem; font-weight: 750; cursor: pointer; }
.company-profile-tab:hover { color: var(--ink); }
.company-profile-tab[aria-selected="true"] { border-bottom-color: var(--teal-900); color: var(--teal-900); }
.company-profile-content { min-width: 0; }
.overview-status-band { display: grid; grid-template-columns: 1.15fr repeat(3,1fr); border-bottom: 1px solid var(--line); background: white; }
.overview-status { min-width: 0; min-height: 108px; display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: start; gap: 12px; padding: 20px 22px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--teal-900); text-align: left; }
button.overview-status { cursor: pointer; }
button.overview-status:hover { background: var(--canvas); }
.overview-status:last-child { border-right: 0; }
.overview-status > span { min-width: 0; display: grid; gap: 3px; }
.overview-status small { color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.overview-status strong { color: var(--ink); font-size: 1.25rem; }
.overview-status em { color: var(--muted); font-size: .7rem; font-style: normal; }
.overview-status em svg { display: inline; vertical-align: -2px; }
.overview-status--readiness > span { grid-template-columns: auto 1fr; align-items: center; }
.overview-status--readiness small { grid-column: 1 / -1; }
.overview-status--readiness strong { grid-column: 1; grid-row: 2; }
.overview-status--readiness i { grid-column: 2; grid-row: 2; height: 6px; overflow: hidden; border-radius: 3px; background: var(--line); }
.overview-status--readiness i b { height: 100%; display: block; border-radius: inherit; background: var(--teal-800); }
.overview-status--readiness em { grid-column: 1 / -1; }
.company-overview-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(330px,.95fr); }
.company-overview-grid > main { min-width: 0; padding-right: 30px; }
.company-overview-grid > aside { min-width: 0; padding-left: 30px; border-left: 1px solid var(--line); }
.overview-section { min-width: 0; padding: 22px 0 25px; border-bottom: 1px solid var(--line); }
.overview-section:last-child { border-bottom: 0; }
.overview-section__header { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.overview-section__header h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 1rem; }
.overview-section__header h2 svg { color: var(--teal-800); }
.overview-link { display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; border: 0; background: transparent; color: var(--teal-900); font-size: .75rem; font-weight: 750; cursor: pointer; }
.overview-link:hover { text-decoration: underline; }
.overview-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 24px; margin: 0; }
.overview-facts > div { min-width: 0; display: grid; grid-template-columns: minmax(125px,.7fr) minmax(0,1.4fr); gap: 12px; }
.overview-facts__wide { grid-column: 1 / -1; padding-top: 13px; border-top: 1px solid var(--line); }
.overview-facts dt, .engagement-facts dt, .overview-side-facts dt { color: var(--muted); font-size: .75rem; }
.overview-facts dd, .engagement-facts dd, .overview-side-facts dd { min-width: 0; margin: 0; font-size: .8125rem; overflow-wrap: anywhere; }
.overview-facts dd small { display: block; margin-top: 3px; color: var(--muted); }
.engagement-facts { display: grid; gap: 11px; margin: 0; }
.engagement-facts > div { display: grid; grid-template-columns: 150px minmax(0,1fr); align-items: center; gap: 14px; }
.engagement-facts dd { display: flex; align-items: center; gap: 10px; }
.engagement-facts dd small { color: var(--muted); }
.engagement-progress { width: min(240px,45%); height: 6px; overflow: hidden; border-radius: 3px; background: var(--line); }
.engagement-progress i { height: 100%; display: block; border-radius: inherit; background: var(--teal-800); }
.overview-action-list { display: grid; }
.overview-action-list button { width: 100%; display: grid; grid-template-columns: 24px minmax(0,1fr) 18px; align-items: start; gap: 10px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.overview-action-list button:hover strong { color: var(--teal-900); text-decoration: underline; }
.overview-action-list button > svg:first-child { color: var(--warning); }
.overview-action-list button > span { min-width: 0; display: grid; gap: 2px; }
.overview-action-list strong { font-size: .8125rem; }
.overview-action-list small { color: var(--muted); font-size: .7rem; }
.overview-side-facts { display: grid; gap: 10px; margin: 0; }
.overview-side-facts > div { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 12px; }
.overview-people { display: grid; }
.overview-people button { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto 18px; align-items: center; gap: 9px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.overview-people button:hover strong { color: var(--teal-900); }
.overview-people button > span { min-width: 0; display: grid; }
.overview-people strong, .overview-people small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-people strong { font-size: .8125rem; }
.overview-people small { color: var(--muted); font-size: .6875rem; }
.overview-people em { padding: 3px 7px; border-radius: 999px; background: #edf1ef; color: var(--muted); font-size: .6875rem; font-style: normal; white-space: nowrap; }
.overview-all-clear { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; color: var(--success); }
.overview-all-clear > span { display: grid; }
.overview-all-clear strong { color: var(--ink); font-size: .8125rem; }
.overview-all-clear small { color: var(--muted); font-size: .7rem; }
.workspace-toolbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.workspace-toolbar h2, .workspace-toolbar p { margin: 0; }
.workspace-toolbar p { margin-top: 3px; font-size: .8125rem; }
.workspace-toolbar > div:last-child { display: flex; gap: 9px; }
.company-workspace-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr); }
.company-workspace-grid > main { min-width: 0; padding-right: 32px; }
.company-workspace-grid > aside { min-width: 0; padding-left: 32px; border-left: 1px solid var(--line); }
.company-workspace-grid--overview { border-top: 1px solid var(--line); }
.workspace-section { min-width: 0; padding: 23px 0 26px; border-bottom: 1px solid var(--line); }
.workspace-section:last-child { border-bottom: 0; }
.workspace-section__header { min-height: 35px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.workspace-section__header h2, .workspace-section__header h3, .workspace-section__header p { margin: 0; }
.workspace-section__header h2 { font-size: 1.125rem; }
.workspace-section__header p { margin-top: 3px; font-size: .75rem; }
.workspace-section__header > div { min-width: 0; }
.workspace-section--compact .workspace-section__header { margin-bottom: 14px; }
.workspace-subsection { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.workspace-subsection h3, .workspace-split h3 { margin-bottom: 7px; font-size: .75rem; text-transform: uppercase; color: var(--muted); }
.workspace-subsection p, .workspace-split p { margin: 0; color: var(--ink); font-size: .875rem; }
.long-copy { max-width: 90ch; line-height: 1.7; }
.workspace-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.company-facts--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; }
.company-facts--three > div { min-width: 0; display: grid; gap: 5px; }
.company-facts--three dt { font-size: .75rem; }
.company-facts--three dd { margin: 0; font-weight: 650; }
.completion-value { color: var(--teal-900); font-size: 1.25rem; }
.completion-track { height: 7px; margin-bottom: 18px; overflow: hidden; border-radius: 4px; background: var(--line); }
.completion-track span { height: 100%; display: block; border-radius: inherit; background: var(--teal-800); }
.button--full { width: 100%; }
.case-snapshot { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 9px; margin-bottom: 12px; padding: 12px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.case-snapshot > span:first-child { min-width: 0; display: grid; }
.case-snapshot strong, .case-snapshot small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-snapshot small { color: var(--muted); }
.workspace-empty { min-height: 170px; display: grid; place-content: center; justify-items: center; padding: 24px; border: 1px dashed var(--line-strong); background: var(--canvas); text-align: center; }
.workspace-empty svg { color: var(--muted); }
.workspace-empty h3 { margin: 9px 0 3px; }
.workspace-empty p { max-width: 480px; margin: 0 0 13px; font-size: .8125rem; }
.workspace-empty--small { min-height: 100px; }
.workspace-empty--small p { margin: 0; }
.structure-chart { min-height: 310px; display: grid; justify-items: center; align-content: center; padding: 26px; overflow-x: auto; background: var(--canvas); border: 1px solid var(--line); }
.structure-tier { min-width: max-content; display: flex; justify-content: center; gap: 16px; }
.structure-line { width: 2px; height: 34px; background: var(--line-strong); }
.structure-node { width: 210px; min-height: 86px; display: grid; align-content: center; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 5px; background: white; color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 4px 13px rgb(13 55 48 / 6%); }
.structure-node span { color: var(--muted); font-size: .65rem; font-weight: 750; text-transform: uppercase; }
.structure-node strong, .structure-node small { overflow-wrap: anywhere; }
.structure-node small { color: var(--muted); }
.structure-node--company { width: 250px; border-color: var(--teal-800); background: var(--teal-900); color: white; cursor: default; }
.structure-node--company span, .structure-node--company small { color: #cae2dc; }
.workspace-table { overflow-x: auto; border-top: 1px solid var(--line); }
.workspace-table__row { width: 100%; min-width: 720px; min-height: 62px; display: grid; grid-template-columns: minmax(220px,1.5fr) minmax(140px,.8fr) minmax(110px,.65fr) minmax(130px,.75fr) 30px; align-items: center; gap: 14px; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
button.workspace-table__row { cursor: pointer; }
button.workspace-table__row:hover { background: var(--canvas); }
.workspace-table__row > span { min-width: 0; }
.workspace-table__row > span:first-child { display: grid; gap: 2px; }
.workspace-table__row strong, .workspace-table__row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-table__row small { color: var(--muted); }
.workspace-table__head { min-height: 38px; color: var(--muted); font-size: .7rem; font-weight: 750; text-transform: uppercase; }
.metric-list { display: grid; margin: 0; }
.metric-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.metric-list > div:last-child { border-bottom: 0; }
.metric-list dt { color: var(--muted); font-size: .8125rem; }
.metric-list dd { margin: 0; font-size: .8125rem; font-weight: 750; text-align: right; }
.validation-list { display: grid; gap: 12px; }
.validation-item { display: flex; align-items: flex-start; gap: 10px; color: var(--warning); }
.validation-item.is-valid { color: var(--success); }
.validation-item span { display: grid; }
.validation-item strong { color: var(--ink); font-size: .8125rem; }
.validation-item small { color: var(--muted); }
.people-list { border-top: 1px solid var(--line); }
.person-row { width: 100%; min-height: 72px; display: grid; grid-template-columns: 42px minmax(180px,1.2fr) minmax(180px,1fr) auto 22px; align-items: center; gap: 13px; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.person-row:hover { background: var(--canvas); }
.person-row > span:nth-child(2) { min-width: 0; display: grid; }
.person-row strong, .person-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-row small, .person-row > span:nth-child(3) { color: var(--muted); font-size: .75rem; }
.person-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-100); color: var(--teal-900); font-size: .7rem; font-weight: 800; }
.people-list--compact .person-row { grid-template-columns: 38px minmax(0,1fr) 20px; }
.people-list--compact .person-row > span:nth-child(3), .people-list--compact .status { display: none; }
.risk-summary-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-bottom: 1px solid var(--line); background: white; }
.risk-summary-strip > div { min-height: 78px; display: grid; align-content: center; gap: 5px; padding: 14px 20px; border-right: 1px solid var(--line); }
.risk-summary-strip > div:last-child { border-right: 0; }
.risk-summary-strip span:first-child { color: var(--muted); font-size: .7rem; font-weight: 750; text-transform: uppercase; }
.risk-summary-strip strong { font-size: .9375rem; }
.risk-summary-strip .status { justify-self: start; }
.risk-checks { border-top: 1px solid var(--line); }
.risk-check-row { width: 100%; min-height: 65px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto 95px 20px; align-items: center; gap: 12px; padding: 9px 7px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.risk-check-row:hover { background: var(--canvas); }
.risk-check-row > span:nth-child(2) { min-width: 0; display: grid; }
.risk-check-row small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.risk-check-row > span:nth-child(4) { color: var(--muted); font-size: .75rem; text-align: right; }
.risk-check-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-100); color: var(--teal-900); }
.flag-list { border-top: 1px solid var(--line); }
.flag-row { min-height: 76px; display: grid; grid-template-columns: 5px minmax(0,1fr) auto auto; align-items: center; gap: 14px; padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); }
.flag-row p { margin: 2px 0; font-size: .8125rem; }
.flag-row small { color: var(--muted); }
.flag-marker { align-self: stretch; border-radius: 3px; background: var(--info); }
.flag-marker--medium { background: var(--warning); }
.flag-marker--high, .flag-marker--critical { background: var(--danger); }
.verification-list { display: grid; }
.verification-row { min-height: 52px; display: grid; grid-template-columns: minmax(0,1fr) 128px 36px; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); }
.verification-row > span { min-width: 0; display: flex; align-items: center; gap: 8px; }
.verification-row strong { overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.verification-row select { min-height: 34px; padding: 5px 24px 5px 8px; font-size: .75rem; }
.verification-row .icon-button { width: 34px; height: 34px; }
.storage-note { display: flex; align-items: flex-start; gap: 12px; max-width: 720px; padding: 15px; border-left: 3px solid var(--teal-800); background: var(--teal-100); }
.storage-note > div { display: grid; gap: 3px; }
.storage-note span { color: var(--muted); font-size: .8125rem; }
.case-register { overflow-x: auto; border-top: 1px solid var(--line); }
.case-register__row { width: 100%; min-width: 920px; min-height: 68px; display: grid; grid-template-columns: minmax(220px,1.3fr) minmax(140px,.8fr) minmax(180px,1fr) 110px 110px 24px; align-items: center; gap: 14px; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
button.case-register__row { cursor: pointer; }
button.case-register__row:hover { background: var(--canvas); }
.case-register__row > span { min-width: 0; }
.case-register__row > span:first-child, .case-register__row > span:nth-child(3) { display: grid; gap: 2px; }
.case-register__row small { color: var(--muted); }
.case-register__head { min-height: 38px; color: var(--muted); font-size: .7rem; font-weight: 750; text-transform: uppercase; }
.mini-progress { width: 100%; height: 4px; margin-top: 4px; overflow: hidden; border-radius: 2px; background: var(--line); }
.mini-progress i { height: 100%; display: block; background: var(--teal-800); }

@media (max-width: 1320px) {
  .document-library { grid-template-columns: 200px minmax(0,1fr); }
  .document-library.is-inspector-closed { grid-template-columns: 200px minmax(0,1fr); }
  .document-library-inspector { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .document-library-detail { max-width: 760px; }
}

@media (max-width: 980px) {
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .companies-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .companies-toolbar .search-field { grid-column: 1 / -1; width: 100%; }
  .overview-status-band { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-status:nth-child(2) { border-right: 0; }
  .overview-status:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .company-overview-grid { grid-template-columns: 1fr; }
  .company-overview-grid > main { padding-right: 0; }
  .company-overview-grid > aside { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .master-detail { grid-template-columns: 1fr; }
  .master-pane { border-right: 0; }
  .detail-pane { border-top: 1px solid var(--line); }
  .next-step-list { grid-template-columns: 1fr; }
  .next-step, .next-step + .next-step { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .next-step:last-child { border-bottom: 0; }
  .company-detail-layout { grid-template-columns: 1fr; }
  .company-detail-main { padding-right: 0; }
  .company-detail-aside { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .company-workspace-grid { grid-template-columns: 1fr; }
  .company-workspace-grid > main { padding-right: 0; }
  .company-workspace-grid > aside { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .company-facts--three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .risk-summary-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .risk-summary-strip > div:nth-child(2) { border-right: 0; }
  .risk-summary-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .profile-section--aside:last-child { padding-bottom: 0; }
  .case-summary { grid-template-columns: 1fr 1fr; }
  .case-summary > div:nth-child(2) { border-right: 0; }
  .case-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .case-workspace { grid-template-columns: 1fr; }
  .case-workspace__main { padding-right: 0; }
  .case-workspace__aside { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .attention-list { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-brand { min-height: 230px; padding: 28px; }
  .login-brand__copy h1 { margin-top: 30px; font-size: 2rem; max-width: none; }
  .login-brand__copy p { margin-bottom: 0; }
  .login-foot { display: none; }
  .login-form-wrap { padding: 36px 24px; place-content: start center; }
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; transform: translateX(-100%); width: min(290px, 86vw); transition: transform .18s ease; box-shadow: var(--shadow); }
  .sidebar-collapsed .sidebar { overflow-y: auto; }
  .sidebar-collapsed .sidebar__head { min-height: 0; display: block; padding: 26px 22px 20px; }
  .sidebar-collapsed .sidebar__head .wordmark { display: inline-flex; }
  .sidebar-collapsed .sidebar__monogram { display: none; }
  .sidebar-collapsed .workspace-name { display: block; }
  .sidebar-collapsed .nav { padding: 18px 12px; }
  .sidebar-collapsed .nav a { justify-content: flex-start; padding: 10px 12px; }
  .sidebar-collapsed .nav a span { display: inline; }
  .sidebar-collapsed .sidebar__profile { flex-direction: row; padding: 18px; }
  .sidebar-collapsed .profile-copy { display: block; }
  .sidebar-collapsed .avatar { width: 36px; height: 36px; }
  .app-shell.sidebar-open .sidebar { transform: translateX(0); }
  .app-shell.sidebar-open::after { content: ""; position: fixed; inset: 0; z-index: 20; background: rgb(12 32 28 / 45%); }
  .menu-button { display: inline-grid; }
  .topbar { padding: 0 14px; }
  .page { padding: 22px 16px 40px; }
  .page-header { align-items: stretch; flex-direction: column; margin-bottom: 20px; }
  .page-header .button { width: 100%; }
  .toolbar { align-items: stretch; flex-wrap: wrap; }
  .toolbar .search-field { width: 100%; }
  .toolbar select { flex: 1; }
  .companies-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .companies-summary__item { min-height: 76px; padding: 13px 14px; }
  .companies-summary__item strong { font-size: 1.3rem; }
  .companies-toolbar { grid-template-columns: 1fr 1fr; }
  .compact-filter--sort { grid-column: 1 / -1; }
  .companies-register__meta span:last-child { display: none; }
  .companies-table { min-width: 0; background: transparent; }
  .companies-table thead { display: none; }
  .companies-table tbody { display: grid; gap: 10px; padding: 12px 0; }
  .companies-table tr { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 14px; border: 1px solid var(--line); background: white; }
  .companies-table td { min-width: 0; display: grid; align-content: start; gap: 4px; padding: 0; border: 0; }
  .companies-table td:first-child { grid-column: 1 / -1; padding: 0 30px 11px 0; border-bottom: 1px solid var(--line); }
  .companies-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .625rem; font-weight: 750; text-transform: uppercase; }
  .companies-table__arrow { position: absolute; top: 17px; right: 10px; display: block !important; width: auto !important; }
  .company-readiness { min-width: 0; }
  .company-count-cell { align-content: start; }
  .overview-facts { grid-template-columns: 1fr; }
  .overview-facts__wide { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .check-grid { grid-template-columns: 1fr; }
  .account-context { align-items: flex-start; flex-wrap: wrap; }
  .account-context .button { width: 100%; margin-left: 0; }
  .company-access-row { grid-template-columns: 1fr; gap: 8px; padding: 12px 2px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi { min-height: 106px; padding: 16px; }
  .kpi__value { font-size: 1.6rem; }
  .tabs { gap: 16px; overflow-x: auto; }
  .master-detail { min-height: 0; }
  .detail-pane { padding: 18px 0; }
  dialog { max-height: calc(100vh - 12px); width: calc(100vw - 12px); }
  .dialog__header, .dialog__body, .dialog__actions { padding-left: 17px; padding-right: 17px; }
  .segmented { grid-template-columns: repeat(2,1fr); gap: 6px; }
  .ssm-import__controls { grid-template-columns: 1fr; }
  .ssm-import__controls .button { width: 100%; }
  .segmented span, .segmented label:first-child span, .segmented label:last-child span { border: 1px solid var(--line-strong); border-radius: 5px; }
  .toast-region { right: 16px; bottom: 16px; }
  .company-profile-header { align-items: stretch; flex-direction: column; }
  .company-profile-meta { gap: 5px 14px; }
  .company-profile-meta span + span::before { left: -8px; }
  .company-profile-tabs { margin-top: 20px; gap: 20px; }
  .workspace-toolbar { align-items: stretch; flex-direction: column; }
  .workspace-toolbar > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .workspace-toolbar > .button { width: 100%; }
  .workspace-split, .company-facts--three { grid-template-columns: 1fr; }
  .structure-chart { justify-items: stretch; padding: 18px 12px; }
  .structure-tier { min-width: 0; flex-direction: column; }
  .structure-node, .structure-node--company { width: 100%; }
  .risk-summary-strip { grid-template-columns: 1fr 1fr; }
  .risk-check-row { grid-template-columns: 34px minmax(0,1fr) auto 20px; }
  .risk-check-row > span:nth-child(4) { display: none; }
  .flag-row { grid-template-columns: 5px minmax(0,1fr) auto; }
  .flag-row .button { grid-column: 2 / -1; justify-self: start; }
  .person-row { grid-template-columns: 38px minmax(0,1fr) 20px; }
  .person-row > span:nth-child(3), .person-row .status { display: none; }
  .verification-row { grid-template-columns: 1fr 110px 34px; }
  .company-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .company-title-line h1 { font-size: 1.6rem; }
  .case-header { align-items: stretch; flex-direction: column; }
  .case-header .button { width: 100%; }
  .case-summary { grid-template-columns: 1fr; }
  .case-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-summary > div:nth-child(2) { border-right: 0; }
  .case-summary > div:last-child { border-bottom: 0; }
  .case-checklist__header { display: none; }
  .case-checklist__row { grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; padding: 13px 4px; }
  .case-checklist__row > :nth-child(2), .case-checklist__row > :nth-child(3) { grid-column: 1; }
  .case-checklist__row > :nth-child(4) { grid-column: 2; grid-row: 1; }
  .case-checklist__row > :nth-child(5) { grid-column: 2; grid-row: 2 / span 2; }
  .sales-progress { margin-top: 26px; padding-bottom: 17px; }
  .company-facts { grid-template-columns: 1fr; gap: 3px; }
  .company-facts dd { margin-bottom: 9px; }
  .company-document { grid-template-columns: 1fr auto; }
  .company-document--header { display: none; }
  .company-document > :nth-child(2) { justify-self: end; }
  .company-document .button { grid-column: 1 / -1; }
  .document-actions { grid-column: 1 / -1; width: max-content; }
  .document-preview__header { align-items: flex-start; }
  .document-preview__actions .button { width: 40px; padding: 0; font-size: 0; }
  .document-preview__frame { height: 62vh; }
  .document-register-heading { align-items: stretch; flex-direction: column; padding: 10px 0 14px; }
  .document-register-heading > div { display: grid; gap: 3px; }
  .document-register-heading .button { width: 100%; }
  .document-library { min-height: 0; display: block; }
  .document-library-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .document-library-sidebar__divider, .document-library-sidebar h3, .document-library-case-tree { display: none; }
  .document-library-main { overflow-x: visible; }
  .document-library-controls { grid-template-columns: 1fr 1fr 76px; }
  .document-library-search { grid-column: 1 / -1; }
  .document-library-controls select:nth-of-type(3) { grid-column: 1 / 3; }
  .document-library-table { min-width: 0; }
  .document-library-row--head { display: none; }
  .document-library-row { grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; min-height: 0; padding: 14px; }
  .document-library-row .document-library-name { grid-column: 1 / -1; }
  .document-library-row > span:nth-child(2), .document-library-row > span:nth-child(3), .document-library-row > span:nth-child(4), .document-library-row > span:nth-child(6) { display: none; }
  .document-library-row > span:nth-child(5) { align-self: center; }
  .document-library-row__actions { justify-self: end; }
  .document-library-table--grid { grid-template-columns: 1fr 1fr; }
  .document-library-inspector { min-height: 0; max-height: none; padding: 17px; border-left: 0; }
  .activity-item { grid-template-columns: 18px minmax(0,1fr); }
  .activity-item time { grid-column: 2; margin-top: -22px; }
}

@media (max-width: 430px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .companies-summary { grid-template-columns: 1fr; }
  .companies-toolbar { grid-template-columns: 1fr; }
  .compact-filter--sort { grid-column: auto; }
  .overview-status-band { grid-template-columns: 1fr; }
  .overview-status { border-right: 0; border-bottom: 1px solid var(--line); }
  .overview-status:last-child { border-bottom: 0; }
  .overview-facts > div, .engagement-facts > div, .overview-side-facts > div { grid-template-columns: 1fr; gap: 3px; }
  .engagement-facts dd { flex-wrap: wrap; }
  .engagement-progress { width: 100%; }
  h1 { font-size: 1.5rem; }
  .topbar__context { display: none; }
  .dialog__actions { flex-direction: column-reverse; }
  .dialog__actions .button { width: 100%; }
  .publish-summary { grid-template-columns: 1fr; }
  .publish-summary > div { display: flex; justify-content: space-between; gap: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .publish-summary > div:last-child { border-bottom: 0; }
  .publish-summary dd { margin-top: 0; text-align: right; }
  .company-actions { grid-template-columns: 1fr; }
  .workspace-toolbar > div:last-child { grid-template-columns: 1fr; }
  .risk-summary-strip { grid-template-columns: 1fr; }
  .risk-summary-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .risk-summary-strip > div:last-child { border-bottom: 0; }
  .verification-row { grid-template-columns: minmax(0,1fr) 34px; }
  .verification-row select { grid-column: 1; grid-row: 2; margin-bottom: 8px; }
  .verification-row .icon-button { grid-column: 2; grid-row: 1 / span 2; }
  .document-library-controls { grid-template-columns: 1fr 76px; }
  .document-library-controls select, .document-library-controls select:nth-of-type(3) { grid-column: 1 / -1; }
  .document-library-view-toggle { grid-column: 2; grid-row: 3; }
  .document-library-table--grid { grid-template-columns: 1fr; }
  .document-library-detail__actions { grid-template-columns: 1fr 1fr; }
  .document-library-detail__actions .icon-button { grid-column: 1 / -1; justify-self: end; }
}

[hidden] { display: none !important; }
.form-definition { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px; border: 1px solid var(--line); background: #f5f9f7; }
.segmented--response { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.segmented--response label span, .segmented--response label:first-child span, .segmented--response label:last-child span { border: 1px solid var(--line-strong); border-radius: 4px; }
.form-definition > span { color: var(--muted); font-size: .8125rem; }
.form-definition > button { margin-left: auto; }
.form-builder-dialog { width: min(1120px, calc(100vw - 36px)); max-width: none; max-height: min(820px, calc(100dvh - 36px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); box-shadow: 0 24px 70px #10251f44; }
.form-builder-dialog::backdrop { background: #14272194; }
.form-builder-shell { display: grid; grid-template-rows: auto minmax(0,1fr) auto; height: min(820px, calc(100dvh - 36px)); }
.form-builder-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.form-builder-header small { color: #006255; font-size: .6875rem; font-weight: 800; }
.form-builder-header h2 { margin: 5px 0 3px; font-size: 1.4rem; }
.form-builder-header p { margin: 0; font-size: .8125rem; }
.form-builder-main { display: grid; grid-template-columns: 190px minmax(0,1fr) 290px; min-height: 0; }
.form-builder-main > * { min-width: 0; overflow-y: auto; padding: 20px; }
.form-builder-main h3 { margin: 0 0 16px; font-size: .9375rem; }
.form-builder-palette { border-right: 1px solid var(--line); background: #f6f9f7; }
.form-builder-palette button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; margin-bottom: 5px; padding: 7px 9px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.form-builder-palette button:hover { border-color: var(--line-strong); background: white; }
.form-builder-canvas { background: #fbfcfb; }
.form-builder-canvas-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.form-builder-canvas-head h3 { margin-bottom: 2px; }
.form-builder-canvas-head small, .form-builder-canvas-head > span { color: var(--muted); font-size: .75rem; }
.form-builder-empty { padding: 50px 15px; border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; }
.form-builder-question { display: flex; align-items: center; gap: 10px; min-height: 66px; margin-bottom: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: white; cursor: pointer; }
.form-builder-question.is-selected { border-color: #006255; box-shadow: inset 3px 0 #006255; }
.form-builder-handle { color: var(--muted); cursor: grab; }
.form-builder-question-copy { flex: 1; min-width: 0; }
.form-builder-question-copy strong, .form-builder-question-copy small { display: block; overflow-wrap: anywhere; }
.form-builder-question-copy strong { font-size: .8125rem; }
.form-builder-question-copy small { margin-top: 3px; color: var(--muted); font-size: .75rem; }
.form-builder-order { display: flex; gap: 2px; }
.form-builder-order button { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: white; cursor: pointer; }
.form-builder-order button:disabled { opacity: .35; cursor: default; }
.form-builder-settings { border-left: 1px solid var(--line); }
.form-builder-settings .field { margin-bottom: 17px; }
.form-builder-settings textarea { min-height: 74px; }
.form-builder-settings small { color: var(--muted); font-size: .75rem; }
.form-builder-required { display: flex; align-items: center; gap: 8px; margin: 16px 0 30px; font-size: .8125rem; font-weight: 700; }
.form-builder-required input { flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--teal-900); }
.form-builder-delete { width: 100%; justify-content: center; }
.form-builder-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 24px; border-top: 1px solid var(--line); }
.form-builder-footer > div { display: flex; gap: 8px; }
.form-builder-error { color: #b43b36 !important; }
@media (max-width: 900px) {
  .form-builder-main { grid-template-columns: 150px minmax(0,1fr); }
  .form-builder-settings { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .form-builder-settings .field { max-width: 680px; }
}
@media (max-width: 600px) {
  .form-builder-dialog { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); }
  .form-builder-shell { height: calc(100dvh - 12px); }
  .form-builder-header { padding: 14px; }
  .form-builder-main { display: block; overflow-y: auto; }
  .form-builder-main > * { overflow: visible; padding: 15px; }
  .form-builder-palette { display: flex; flex-wrap: wrap; gap: 5px; border-right: 0; border-bottom: 1px solid var(--line); }
  .form-builder-palette h3 { width: 100%; margin-bottom: 2px; }
  .form-builder-palette button { width: auto; min-height: 34px; margin: 0; border-color: var(--line); background: white; font-size: .75rem; }
  .form-builder-footer { align-items: stretch; flex-direction: column; padding: 10px 14px; }
  .form-builder-footer > div { justify-content: flex-end; }
}

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

/* Admin workspace visual system */
:root { --ink: #182a28; --muted: #60716e; --canvas: #f8faf9; --line: #dfe7e4; --teal-900: #064b43; --teal-800: #076055; }
body { font-size: 15px; font-variant-numeric: tabular-nums; }
.app-shell { grid-template-columns: 280px minmax(0,1fr); }
.app-shell.sidebar-collapsed { grid-template-columns: 72px minmax(0,1fr); }
.sidebar { background: #064b43; }
.sidebar__head { min-height: 124px; padding: 23px 23px 18px; }
.brand-logo { display: block; width: 175px; height: auto; object-fit: contain; }
.brand-logo--login { width: min(245px,65vw); }
.sidebar__monogram { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.workspace-name { margin-top: 13px; letter-spacing: 0; font-size: 11px; }
.nav a { min-height: 52px; border-radius: 4px; font-size: 15px; font-weight: 500; }
.nav a[aria-current="page"] { background: #12685e; color: white; box-shadow: inset 3px 0 0 #d7bd71; }
.nav a:hover { background: rgb(255 255 255 / 10%); }
.sidebar-collapsed .sidebar__head .brand-logo { display: none; }
.topbar { height: 64px; padding-inline: 38px; }
.topbar__context { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.topbar__context strong { color: var(--ink); font-weight: 600; }
.topbar__identity { display: flex; align-items: center; gap: 10px; }
.topbar__identity .avatar { width: 30px; height: 30px; }
.topbar__identity > span:last-child { display: grid; line-height: 1.25; }
.topbar__identity strong { font-size: 12px; }
.topbar__identity small { color: var(--muted); font-size: 11px; }
.topbar__right { min-width: 0; display: flex; align-items: center; gap: 22px; }
.topbar__search-wrap { position: relative; width: min(340px, 28vw); }
.topbar__search { min-width: 0; height: 37px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #fff; }
.topbar__search:focus-within { border-color: var(--teal-800); box-shadow: 0 0 0 2px rgb(7 96 85 / 12%); }
.topbar__search svg { flex: 0 0 auto; }
.topbar__search input { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; font-size: 12px; outline: none; }
.topbar__search input:focus { box-shadow: none; }
.topbar__search-results { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; width: min(390px, 88vw); padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; box-shadow: 0 12px 28px rgb(19 41 37 / 13%); }
.topbar__search-results[hidden] { display: none; }
.topbar__search-results > strong { display: block; padding: 9px 9px 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.topbar__search-results a { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 9px; border-radius: 4px; color: var(--ink); font-size: 12px; text-decoration: none; }
.topbar__search-results a:hover, .topbar__search-results a:focus-visible { background: var(--teal-100); }
.topbar__search-results a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__search-results p { margin: 8px; color: var(--muted); font-size: 12px; }
.page { max-width: 1760px; padding: 27px clamp(24px,2vw,40px) 48px; }
.page-header { margin-bottom: 21px; }
.page-header h1 { font-size: 28px; font-weight: 700; }
.page-header p { font-size: 14px; }
.breadcrumb { font-size: 12px; }
.button { min-height: 40px; border-radius: 5px; font-weight: 600; }
.field > label, .field > .field-label { font-weight: 600; }
input, select, textarea { font-size: 15px; }
th { padding: 11px 12px; background: #f5f8f7; font-size: 12px; letter-spacing: 0; }
td { padding: 13px 12px; font-size: 14px; }
tbody tr:focus-visible { outline: 2px solid var(--teal-900); outline-offset: -2px; }
.table-primary strong { font-size: 14px; }
.table-primary span { font-size: 12px; }
.status { border-radius: 5px; font-size: 12px; font-weight: 600; }
.section-header h2, .profile-section__header h2 { font-size: 18px; font-weight: 650; }
.sidebar-collapsed .sidebar__head { min-height: 95px; }

.operations-header { margin: 3px 0 27px; }
.operations-header h1 { font-size: 32px; line-height: 1.15; color: #152b30; }
.operations-header p { font-size: 15px; color: #566775; }
.operations-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 0 0 29px; border-bottom: 1px solid var(--line); }
.operations-kpi { min-width: 0; min-height: 162px; display: flex; align-items: center; gap: clamp(12px,1.7vw,31px); padding: 16px clamp(15px,2vw,38px); border-right: 1px solid var(--line); text-decoration: none; }
.operations-kpi:first-child { padding-left: 0; }
.operations-kpi:last-child { border-right: 0; }
.operations-kpi:hover { background: #f7faf9; }
.operations-kpi__icon { width: 74px; height: 74px; flex: 0 0 74px; display: grid; place-items: center; border-radius: 50%; background: #e3f4ec; color: #006449; }
.operations-kpi--1 .operations-kpi__icon { background: #e6f2fc; color: #1666a6; }
.operations-kpi--2 .operations-kpi__icon { background: #fff1d9; color: #ae6900; }
.operations-kpi--3 .operations-kpi__icon { background: #ffebeb; color: #c83a42; }
.operations-kpi__copy { min-width: 0; display: grid; gap: 3px; color: #1b2c3f; }
.operations-kpi__copy > span { font-size: 16px; font-weight: 600; }
.operations-kpi__copy strong { font-size: 43px; line-height: 1.1; font-weight: 720; }
.operations-kpi__copy small { font-size: 12px; color: var(--muted); }
.operations-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(360px,.94fr); grid-template-areas: "priority workload" "activity pipeline"; }
.operations-section { min-width: 0; padding: 26px 27px 27px 0; border-bottom: 1px solid var(--line); }
.operations-priority { grid-area: priority; }
.operations-workload { grid-area: workload; }
.operations-activity { grid-area: activity; }
.operations-pipeline { grid-area: pipeline; }
.operations-workload, .operations-pipeline { padding-left: 27px; padding-right: 0; border-left: 1px solid var(--line); }
.operations-section__heading { min-height: 42px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.operations-section__heading h2 { margin: 0; font-size: 21px; font-weight: 690; color: #152b30; }
.operations-section__heading h3 { margin: 0; font-size: 16px; font-weight: 650; }
.operations-section__heading a { display: inline-flex; align-items: center; gap: 7px; color: #256293; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.operations-section__heading a:hover { text-decoration: underline; }
.operations-table { width: 100%; min-width: 720px; table-layout: fixed; }
.operations-table th { padding: 13px 9px; background: #f5f7f7; color: #3a4647; font-size: 12px; text-transform: none; }
.operations-table td { padding: 13px 9px; font-size: 13px; line-height: 1.4; vertical-align: middle; }
.operations-table td strong { font-weight: 650; }
.operations-table th:nth-child(1) { width: 16%; }
.operations-table th:nth-child(2) { width: 21%; }
.operations-table th:nth-child(3) { width: 14%; }
.operations-table th:nth-child(4) { width: 19%; }
.operations-table th:nth-child(5) { width: 14%; }
.operations-table th:nth-child(6) { width: 16%; }
.operations-owner { display: flex; align-items: center; gap: 8px; }
.operations-owner__avatar { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 50%; background: #e3e8e7; color: #294444; font-size: 10px; font-weight: 700; }
.operations-due { display: grid; gap: 2px; }
.operations-due small { color: var(--muted); font-size: 11px; }
.operations-due small.is-overdue { color: var(--danger); }
.operations-next { color: #2c3c45; }
.operations-workload h3 { margin: 4px 0 17px; color: #38474e; font-size: 15px; font-weight: 600; }
.workload-register { padding-bottom: 14px; }
.workload-row { display: grid; grid-template-columns: 95px minmax(0,1fr) 58px; align-items: center; gap: 12px; margin: 15px 0; font-size: 14px; }
.workload-row__bar { width: 100%; height: 17px; border: 0; background: #e4e9ec; appearance: none; }
.workload-row__bar::-webkit-progress-bar { background: #e4e9ec; }
.workload-row__bar::-webkit-progress-value { background: #00685d; }
.workload-row__bar::-moz-progress-bar { background: #00685d; }
.workload-row strong { text-align: right; font-weight: 600; }
.operations-overdue { margin-top: 18px; padding-top: 19px; border-top: 1px solid var(--line); }
.operations-overdue__items { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-top: 12px; }
.operations-overdue__item { min-width: 0; display: flex; align-items: center; gap: 8px; padding-right: 5px; border-right: 1px solid var(--line); }
.operations-overdue__item:last-child { border-right: 0; }
.operations-overdue__item > span { font-size: 12px; font-weight: 600; }
.operations-overdue__count { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; font-size: 16px; }
.operations-overdue__count--overdue { background: #fce4e5; color: #b92f3c; }
.operations-overdue__count--soon { background: #fff0c9; color: #925c00; }
.operations-overdue__count--later { background: #e9edef; color: #314252; }
.activity-register__header, .activity-register__row { display: grid; grid-template-columns: 116px minmax(135px,.75fr) minmax(0,1.8fr); align-items: center; gap: 12px; }
.activity-register__header { padding: 9px 0; border-bottom: 1px solid var(--line); color: #506065; font-size: 12px; font-weight: 650; }
.activity-register__row { min-height: 58px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.activity-register__row:last-child { border-bottom: 0; }
.activity-register time { color: var(--muted); font-size: 12px; }
.activity-register__actor { min-width: 0; display: flex; align-items: center; gap: 8px; }
.activity-register__actor strong { font-size: 12px; font-weight: 620; }
.activity-register__row > span:last-child small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.pipeline-bar { display: block; width: 100%; height: 44px; margin-top: 28px; background: var(--line); border-radius: 5px; overflow: hidden; }
.pipeline-bar__segment--0 { fill: #006657; }
.pipeline-bar__segment--1 { fill: #61a49b; }
.pipeline-bar__segment--2 { fill: #8bbbea; }
.pipeline-bar__segment--3 { fill: #f3c568; }
.pipeline-bar__segment--4 { fill: #9eabb9; }
.pipeline-legend { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; margin-top: 13px; }
.pipeline-legend > div { min-width: 0; display: grid; grid-template-columns: 8px minmax(0,1fr); gap: 1px 5px; align-content: start; font-size: 11px; }
.pipeline-legend__swatch { width: 7px; height: 7px; grid-row: 1 / 3; margin-top: 4px; border-radius: 2px; }
.pipeline-legend__swatch--0 { background: #006657; }
.pipeline-legend__swatch--1 { background: #61a49b; }
.pipeline-legend__swatch--2 { background: #8bbbea; }
.pipeline-legend__swatch--3 { background: #f3c568; }
.pipeline-legend__swatch--4 { background: #9eabb9; }
.pipeline-legend strong { font-size: 14px; font-weight: 650; }
.pipeline-legend small { grid-column: 2; color: var(--muted); font-size: 10px; }
.pipeline-total { margin-top: 28px; color: #283b43; font-size: 15px; font-weight: 650; }
.operations-empty { padding: 18px 0; font-size: 13px; }

.companies-summary { margin-bottom: 14px; }
.companies-summary__item { min-height: 93px; }
.companies-summary__item strong { font-size: 25px; }
.companies-toolbar { padding-top: 13px; }
.companies-layout { position: relative; display: block; }
.companies-layout.has-snapshot { padding-right: 310px; }
.companies-snapshot { position: absolute; top: 0; right: 0; width: 310px; min-height: 480px; padding: 17px 18px; border: 1px solid var(--line); background: white; }
.companies-snapshot[hidden] { display: none; }
.companies-snapshot__header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.companies-snapshot__header h2 { margin: 0; font-size: 16px; }
.companies-snapshot h3 { margin: 20px 0 4px; font-size: 15px; }
.companies-snapshot p { font-size: 12px; }
.companies-snapshot dl { margin: 18px 0 24px; border-top: 1px solid var(--line); }
.companies-snapshot dl > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--line); }
.companies-snapshot dt { color: var(--muted); font-size: 12px; }
.companies-snapshot dd { margin: 0; font-size: 13px; font-weight: 600; text-align: right; }
.companies-snapshot .company-readiness { width: 98px; }
.company-readiness progress { display: block; width: 100%; height: 5px; border: 0; background: var(--line); appearance: none; }
.company-readiness progress::-webkit-progress-bar { background: var(--line); }
.company-readiness progress::-webkit-progress-value { background: var(--teal-800); }
.company-readiness progress::-moz-progress-bar { background: var(--teal-800); }
.overview-status--readiness i progress, .engagement-progress progress, .mini-progress progress { display: block; width: 100%; height: 100%; border: 0; background: var(--line); appearance: none; }
.overview-status--readiness i progress::-webkit-progress-bar, .engagement-progress progress::-webkit-progress-bar, .mini-progress progress::-webkit-progress-bar { background: var(--line); }
.overview-status--readiness i progress::-webkit-progress-value, .engagement-progress progress::-webkit-progress-value, .mini-progress progress::-webkit-progress-value { background: var(--teal-800); }
.overview-status--readiness i progress::-moz-progress-bar, .engagement-progress progress::-moz-progress-bar, .mini-progress progress::-moz-progress-bar { background: var(--teal-800); }
.companies-snapshot > .button { width: 100%; }
.companies-table { min-width: 1010px; }
.companies-table tr[aria-selected="true"] { background: #edf6f3; }
.companies-table .companies-table__arrow { overflow: visible; }
.companies-table .icon-button { width: 30px; height: 30px; }
.companies-attention-band { margin-top: 20px; }
.companies-attention-band .companies-attention { border: 0; border-top: 1px solid var(--line); background: transparent; }
.companies-attention-band .companies-attention__header { border-bottom: 0; }
.companies-attention-band .attention-list { display: flex; flex-wrap: wrap; gap: 0 30px; }
.companies-attention-band .attention-list button { max-width: 260px; }

.case-header { align-items: center; padding-bottom: 17px; }
.case-reference { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.case-header-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 12px; }
.case-header-meta span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.case-header .company-title-line h1 { font-size: 26px; }
.case-workspace { grid-template-columns: minmax(0,1fr) 290px; border-top: 1px solid var(--line); }
.case-workspace__main { padding-right: 20px; }
.case-workspace__aside { padding-left: 20px; }
.case-progress { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin-bottom: 21px; border-bottom: 1px solid var(--line); }
.case-progress > div { min-width: 0; display: grid; gap: 6px; padding: 0 18px 16px; border-right: 1px solid var(--line); }
.case-progress > div:first-child { padding-left: 0; }
.case-progress > div:last-child { border-right: 0; }
.case-progress span:first-child { color: var(--muted); font-size: 12px; }
.case-progress strong { font-size: 17px; }
.case-progress__bar { width: 100%; height: 7px; border: 0; background: #e6eeea; appearance: none; }
.case-progress__bar::-webkit-progress-bar { background: #e6eeea; }
.case-progress__bar::-webkit-progress-value { background: var(--teal-800); }
.case-progress__bar::-moz-progress-bar { background: var(--teal-800); }
.case-progress__bar--risk::-webkit-progress-value { background: var(--danger); }
.case-progress__bar--risk::-moz-progress-bar { background: var(--danger); }
.case-checklist { overflow-x: auto; }
.case-checklist__row { min-width: 810px; grid-template-columns: minmax(155px,1.3fr) 75px 110px minmax(140px,1fr) 130px 66px; gap: 8px; font-size: 13px; }
.case-checklist__header { font-size: 11px; }
.case-overview-snapshot dl { margin: 0; }
.case-overview-snapshot dl > div { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.case-overview-snapshot dt { color: var(--muted); font-size: 12px; }
.case-overview-snapshot dd { margin: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.case-overview-snapshot a { color: var(--teal-800); }
.case-overview-snapshot__findings { margin-top: 17px; }
.case-overview-snapshot__findings > div { display: grid; gap: 3px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.case-overview-snapshot__findings strong { font-size: 12px; }
.case-overview-snapshot__findings small { color: var(--muted); }

.template-builder { display: grid; grid-template-columns: 170px minmax(390px,1fr) 350px; min-height: 610px; border: 1px solid var(--line); background: white; }
.template-builder__outline { min-width: 0; padding: 15px 8px; border-right: 1px solid var(--line); }
.template-builder__outline h2 { margin: 4px 10px 15px; font-size: 14px; }
.template-builder__outline button { width: 100%; min-height: 42px; display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 7px 9px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font-size: 13px; text-align: left; cursor: pointer; }
.template-builder__outline button:hover { background: #f2f8f6; }
.template-builder__outline button.is-active { background: var(--teal-100); color: var(--teal-900); font-weight: 650; }
.template-builder__outline button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.template-builder__outline button strong { color: var(--muted); font-size: 11px; }
.template-builder__outline .template-category-create { margin-bottom: 12px; border: 1px solid var(--line-strong); justify-content: center; color: var(--teal-900); font-weight: 650; }
.template-category-draft { display: grid; gap: 8px; padding: 9px; margin-top: 8px; border-top: 1px solid var(--line); }
.template-category-draft > div { display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: center; gap: 7px; }
.template-category-draft input { min-width: 0; height: 34px; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 4px; font: inherit; }
.template-category-draft span { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.template-category-draft .button { min-height: 34px; padding: 7px 9px; display: inline-flex; justify-content: center; font-size: 12px; }
.template-category-fixed { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: var(--teal-900); background: var(--teal-100); border: 1px solid var(--line-strong); border-radius: 4px; font-weight: 750; }
.template-category-fixed svg { flex: 0 0 auto; }
.template-builder__list { min-width: 0; border-right: 1px solid var(--line); }
.template-builder__list-head { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.template-builder__list-head h2 { margin: 0 0 3px; font-size: 18px; }
.template-builder__list-head p { margin: 0; font-size: 12px; }
.template-new-checklist { white-space: nowrap; }
.template-builder__list table { min-width: 600px; }
.template-builder__list td, .template-builder__list th { padding-inline: 9px; }
.template-builder__list .table-primary { min-width: 125px; }
.template-builder__list td:last-child { min-width: 120px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.template-add-empty { width: calc(100% - 28px); min-height: 88px; display: grid; place-items: center; gap: 5px; margin: 14px; border: 1px dashed var(--line-strong); border-radius: 6px; background: white; color: var(--teal-900); cursor: pointer; }
.template-add-empty span { color: var(--muted); font-size: 12px; }
.template-add-empty:hover { background: #f7fbfa; border-color: var(--teal-900); }
.template-builder__settings { min-width: 0; padding: 17px; max-height: calc(100vh - 185px); overflow-y: auto; }
.template-builder__settings .detail-pane__header h2 { font-size: 16px; }
.template-builder__settings .form-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
.segmented--response { grid-template-columns: repeat(3,minmax(0,1fr)); }
.segmented--response span { min-width: 0; font-size: 12px; }
.management-definition { display: grid; gap: 10px; padding: 14px; background: var(--teal-100); border: 1px solid var(--line); }
.management-definition[hidden] { display: none; }
.management-definition .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.management-dialog { width: min(1180px,calc(100vw - 32px)); height: min(90dvh,900px); max-height: none; }
.management-dialog__head { display: flex; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.management-dialog__head h2 { margin: 2px 0; font-size: 21px; }
.management-dialog__head p { margin: 0; }
.management-dialog__head small { color: var(--muted); }
.management-dialog--scope .management-dialog__head { align-items: center; background: var(--teal-900); color: white; border-bottom: 0; }
.management-dialog--scope .management-dialog__head small, .management-dialog--scope .management-dialog__head p { color: #c9ddda; }
.management-dialog--scope .management-dialog__head .icon-button { color: white; border-color: #ffffff33; }
.management-step-badge { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; margin-left: auto; border-radius: 50%; background: white; color: var(--teal-900); font-weight: 850; }
.management-dialog__body { height: calc(100% - 93px); overflow: auto; padding: 0 24px 28px; }
.management-dialog__body > section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.management-statement-tabs { display: flex; overflow-x: auto; margin: 12px 0 16px; border-bottom: 1px solid var(--line); }
.management-statement-tabs button { flex: 1 0 auto; min-height: 42px; padding: 8px 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.management-statement-tabs button.is-active { border-color: var(--teal-800); color: var(--teal-800); }
.management-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.management-section-head h3 { margin: 0; font-size: 16px; }
.management-section-head span, .management-period-note { color: var(--muted); font-size: 12px; }
.management-settings, .management-controls, .management-audited-grid { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.management-settings__wide { flex: 1 1 100%; min-width: 0; }
.management-settings label, .management-audited-grid label, .management-controls label { display: grid; gap: 5px; min-width: 160px; font-size: 12px; font-weight: 600; }
.management-settings input, .management-settings select, .management-controls input, .management-controls select, .management-audited-grid input { height: 40px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: white; color: var(--ink); }
.management-dialog--scope .management-dialog__body { background: #fbfcfb; }
.management-dialog--scope .management-dialog__body > section { border-bottom: 0; }
.management-scope-form { display: grid; gap: 14px; }
.management-scope-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; width: 100%; }
.management-scope-grid label { min-width: 0; }
.management-scope-grid label:nth-child(n+3) { max-width: 320px; }
.management-scope-grid label:first-child, .management-scope-grid label:nth-child(2) { grid-column: span 1; }
.management-scope-help { margin: 0; color: var(--muted); font-size: 13px; }
.management-month-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(132px,1fr)); gap: 8px; }
.management-month-card { display: grid; grid-template-rows: auto auto 1fr; gap: 6px; min-height: 92px; padding: 11px; border: 1px solid var(--line-strong); border-radius: 4px; background: #eef7f4; }
.management-month-card.has-extra { background: #fff8df; border-color: #dfca81; }
.management-month-card strong { font-size: 13px; line-height: 1.1; }
.management-month-card span { color: var(--muted); font-size: 11px; line-height: 1.2; }
.management-month-card > div { display: flex; align-items: end; gap: 10px; margin-top: 6px; }
.management-month-card label { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 11px; font-weight: 750; }
.management-month-card input { width: auto; height: auto; padding: 0; }
.management-requirements { border: 1px solid var(--line); }
.management-requirements > div { display: grid; grid-template-columns: 1.2fr 1.2fr 120px; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.management-requirements > div:first-child { background: var(--canvas); color: var(--muted); font-size: 11px; text-transform: uppercase; }
.management-requirements > div:last-child { border-bottom: 0; }
.management-requirements em { justify-self: start; min-width: 68px; padding: 4px 9px; border-radius: 4px; background: var(--teal-100); color: var(--teal-900); font-style: normal; font-weight: 750; text-align: center; }
.management-scope-actions { display: flex; justify-content: space-between; gap: 10px; }
.management-schedule-editor { max-height: 260px; overflow: auto; border: 1px solid var(--line); }
.management-schedule-editor table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 13px; }
.management-schedule-editor th, .management-schedule-editor td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.management-schedule-editor thead { position: sticky; top: 0; background: var(--canvas); color: var(--muted); }
.management-schedule-editor label { min-width: 0; display: inline-flex; grid-template-columns: none; align-items: center; gap: 7px; font-weight: 600; }
.management-schedule-editor input { width: auto; height: auto; padding: 0; }
.management-controls { margin: 14px 0; }
.management-controls > select { min-width: 150px; }
.management-table-wrap { overflow: auto; border: 1px solid var(--line); }
.management-table { width: 100%; border-collapse: collapse; min-width: 590px; font-size: 13px; }
.management-table th, .management-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.management-table th:first-child { text-align: left; }
.management-table thead { background: var(--canvas); color: var(--muted); }
.management-table tbody th { font-weight: 600; }
.management-detail-row th { padding-left: 28px; font-weight: 400 !important; }
.management-audited-grid { margin-top: 12px; }
.management-audited-grid input { width: 170px; }
.management-review-log { padding: 12px 0; border-top: 1px solid var(--line); }
.management-review-log small { display: block; color: var(--muted); }
.management-review-log p { margin: 7px 0 0; font-size: 13px; }
@media (max-width: 680px) {
  .management-dialog { width: 100vw; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  .management-dialog__head { padding: 14px 16px; }
  .management-dialog__body { padding: 0 16px 24px; }
  .management-settings, .management-controls, .management-audited-grid { align-items: stretch; }
  .management-settings label, .management-settings button, .management-audited-grid label { flex: 1 1 100%; }
  .management-definition .form-grid { grid-template-columns: 1fr; }
}
.template-builder__settings .segmented { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; }
.template-builder__settings .segmented span { font-size: 11px; }
.template-builder__settings .segmented svg { display: none; }
.template-builder__settings .check-grid { gap: 8px; }
.template-client-preview { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); background: #f8faf9; }
.template-client-preview strong { font-size: 12px; color: var(--muted); }
.template-client-preview span { font-size: 14px; font-weight: 650; }
.template-client-preview p { margin: 0; font-size: 12px; overflow-wrap: anywhere; }

@media (max-width: 1450px) {
  .operations-grid, .case-workspace { grid-template-columns: 1fr; }
  .operations-grid { grid-template-areas: "priority" "workload" "activity" "pipeline"; }
  .operations-workload, .operations-pipeline { padding-left: 0; border-left: 0; }
  .operations-kpi { gap: 13px; padding-inline: 17px; }
  .operations-kpi__icon { width: 56px; height: 56px; flex-basis: 56px; }
  .operations-kpi__copy strong { font-size: 35px; }
  .case-workspace__main { padding-right: 0; }
  .case-workspace__aside { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 22px; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .template-builder { grid-template-columns: minmax(0,1fr) 320px; }
  .template-builder__outline { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .template-builder__outline h2 { width: auto; margin: 0 12px 0 4px; }
  .template-builder__outline button { width: auto; }
}
@media (max-width: 1100px) {
  .topbar__search-wrap { width: min(260px, 30vw); }
  .operations-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .operations-kpi:nth-child(2) { border-right: 0; }
  .operations-kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 1280px) {
  .companies-layout.has-snapshot { padding-right: 0; }
  .companies-snapshot { position: absolute; z-index: 5; top: 0; right: 0; width: min(350px,100%); box-shadow: var(--shadow); }
}
@media (max-width: 1000px) {
  .operations-grid { grid-template-columns: 1fr; }
  .operations-workload, .operations-pipeline { padding-left: 0; border-left: 0; }
  .template-builder { grid-template-columns: 1fr; }
  .template-builder__outline { display: flex; flex-wrap: wrap; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .template-builder__outline h2 { width: 100%; }
  .template-builder__outline button { width: auto; }
  .template-builder__list { border-right: 0; border-bottom: 1px solid var(--line); }
  .template-builder__settings { max-height: none; }
  .case-workspace { grid-template-columns: 1fr; }
  .case-workspace__main { padding-right: 0; }
  .case-workspace__aside { grid-template-columns: 1fr; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar__head .brand-logo, .sidebar-collapsed .sidebar__head .brand-logo { display: block; }
  .topbar { padding-inline: 14px; }
  .topbar__right { flex: 1; justify-content: flex-end; gap: 10px; }
  .topbar__search-wrap { width: min(215px, 55vw); }
  .topbar__identity > span:last-child { display: none; }
  .page { padding: 20px 16px 40px; }
  .page-header h1 { font-size: 24px; }
  .operations-header h1 { font-size: 26px; }
  .operations-kpis { grid-template-columns: 1fr 1fr; }
  .operations-kpi { min-height: 116px; gap: 9px; padding: 12px !important; }
  .operations-kpi__icon { width: 42px; height: 42px; flex-basis: 42px; }
  .operations-kpi__icon svg { width: 21px; height: 21px; }
  .operations-kpi__copy > span { font-size: 12px; }
  .operations-kpi__copy strong { font-size: 26px; }
  .operations-kpi__copy small { display: none; }
  .operations-kpi:nth-child(2) { border-right: 0; }
  .operations-kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .activity-register__header { display: none; }
  .activity-register__row { grid-template-columns: 78px minmax(0,1fr); align-items: start; }
  .activity-register__row > span:last-child { grid-column: 2; }
  .operations-section { padding-right: 0; }
  .operations-overdue__item { gap: 4px; }
  .operations-overdue__item > span { font-size: 10px; }
  .operations-overdue__count { width: 32px; height: 32px; flex-basis: 32px; font-size: 13px; }
  .pipeline-legend { gap: 4px; }
  .operations-table { display: block; min-width: 0; width: 100%; }
  .operations-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .operations-table tbody { display: block; }
  .operations-table tbody tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 10px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .operations-table td { display: block; min-width: 0; padding: 0; border: 0; font-size: 12px; overflow-wrap: anywhere; }
  .operations-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .operations-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .operations-table td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .operations-table td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; color: var(--muted); }
  .operations-table td:nth-child(5) { grid-column: 1; grid-row: 4; color: var(--muted); }
  .operations-table td:nth-child(6) { grid-column: 2; grid-row: 4; color: var(--muted); text-align: right; }
  .companies-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .companies-summary__item { min-height: 85px; gap: 9px; padding: 11px; }
  .companies-summary__item strong { font-size: 22px; }
  .companies-table { min-width: 0; }
  .template-builder__list table { display: block; min-width: 0; width: 100%; }
  .template-builder__list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .template-builder__list tbody { display: block; }
  .template-builder__list tbody tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 10px; padding: 13px 10px; border-bottom: 1px solid var(--line); }
  .template-builder__list td { min-width: 0; display: block; padding: 0; border: 0; font-size: 12px; overflow-wrap: anywhere; }
  .template-builder__list td:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .template-builder__list td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .template-builder__list td:nth-child(3) { grid-column: 2; grid-row: 2; text-align: right; }
  .template-builder__list td:nth-child(4) { grid-column: 1; grid-row: 3; color: var(--muted); }
  .template-builder__list td:nth-child(5) { grid-column: 1 / -1; grid-row: 4; color: var(--muted); white-space: normal; }
  .cases-table, .accounts-table { display: block; min-width: 0; width: 100%; }
  .cases-table thead, .accounts-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cases-table tbody, .accounts-table tbody { display: block; }
  .cases-table tbody tr, .accounts-table tbody tr { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 10px; padding: 15px 10px; border-bottom: 1px solid var(--line); }
  .cases-table td, .accounts-table td { display: block; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  .cases-table td:first-child, .accounts-table td:first-child { grid-column: 1; grid-row: 1 / span 2; padding-right: 4px; }
  .cases-table td:nth-child(2) { grid-column: 1; grid-row: 3; font-size: 12px; }
  .cases-table td:nth-child(3) { grid-column: 1; grid-row: 4; font-size: 12px; }
  .cases-table td:nth-child(4) { grid-column: 2; grid-row: 3; font-size: 12px; text-align: right; }
  .cases-table td:nth-child(5) { grid-column: 2; grid-row: 4; font-size: 12px; text-align: right; }
  .cases-table td:nth-child(6) { grid-column: 2; grid-row: 1; }
  .cases-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
  .accounts-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 3; }
  .accounts-table td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .accounts-table td:nth-child(4) { grid-column: 1; grid-row: 4; font-size: 12px; }
  .accounts-table td:nth-child(4)::before { content: "Last sign in: "; }
  .accounts-table td:nth-child(5) { grid-column: 2; grid-row: 4; text-align: right; }
  .case-progress { grid-template-columns: 1fr 1fr 1fr; }
  .case-progress > div { padding-inline: 8px; }
  .case-progress > div:first-child { padding-left: 0; }
  .case-progress strong { font-size: 14px; }
  .case-checklist { overflow-x: visible; }
  .case-checklist__row { min-width: 0; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
  .case-checklist__row > :nth-child(2) { grid-column: 1; }
  .case-checklist__row > :nth-child(3) { grid-column: 2; grid-row: 1; }
  .case-checklist__row > :nth-child(4) { grid-column: 1; grid-row: 3; }
  .case-checklist__row > :nth-child(5) { grid-column: 1; grid-row: 4; }
  .case-checklist__row > :nth-child(6) { grid-column: 2; grid-row: 3 / span 2; }
}
@media (max-width: 430px) {
  .topbar__context { display: none; }
  .operations-kpi { gap: 7px; }
  .operations-kpi__copy strong { font-size: 23px; }
  .template-builder__settings .form-grid { grid-template-columns: 1fr; }
  .companies-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
