:root {
  color-scheme: light;
  --ink: #18362f;
  --ink-strong: #10261f;
  --muted: #63736e;
  --line: #d7e1dd;
  --line-strong: #b7cac4;
  --surface: #ffffff;
  --surface-soft: #f5f8f7;
  --surface-green: #e8f3f0;
  --green: #00665a;
  --green-dark: #004d45;
  --gold: #d89b25;
  --gold-soft: #fff4dc;
  --red: #a63f39;
  --red-soft: #fff0ee;
  --blue: #2f659b;
  --blue-soft: #eaf3fb;
  --shadow: 0 12px 30px rgba(21, 49, 42, 0.1);
  --sidebar-width: 252px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

button, input, select, textarea { font: inherit; }
button, a, select, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; }
button { color: inherit; }

:focus-visible {
  outline: 3px solid rgba(216, 155, 37, 0.45);
  outline-offset: 2px;
}

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

.boot {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand strong {
  color: var(--ink-strong);
  font-size: 21px;
  letter-spacing: 0;
}

.brand strong span { color: var(--gold); }
.brand small { margin-top: 6px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.brand--large strong { font-size: 31px; }
.brand--large small { font-size: 12px; }

.portal-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 28px 18px 20px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.sidebar > .brand { padding: 0 12px 28px; }

.nav { display: grid; gap: 5px; }

.nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  color: #526862;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 650;
}

.nav a:hover { background: var(--surface-soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface-green); color: var(--green-dark); }

.sidebar__foot {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sidebar__foot > span:nth-child(2) { min-width: 0; }
.sidebar__foot strong, .sidebar__foot small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__foot strong { font-size: 13px; }
.sidebar__foot small { color: var(--muted); font-size: 11px; }

.avatar, .account-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--green);
  font-weight: 750;
}

.avatar { width: 36px; height: 36px; border-radius: 50%; font-size: 12px; }

.main-area { min-height: 100vh; margin-left: var(--sidebar-width); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 34px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.topbar__right { display: flex; align-items: center; gap: 18px; }

.topbar select {
  min-width: 210px;
  max-width: 320px;
  height: 40px;
  padding: 0 38px 0 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-weight: 650;
}

.topbar select:disabled { opacity: 1; color: var(--ink); }
.user-chip { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 650; }
.menu-button, .mobile-brand, .bottom-nav { display: none; }

.page {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 27px;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; color: var(--ink-strong); font-size: 31px; line-height: 1.2; letter-spacing: 0; }
h2 { margin-bottom: 14px; color: var(--ink-strong); font-size: 20px; line-height: 1.3; letter-spacing: 0; }
h3 { margin-bottom: 8px; font-size: 14px; letter-spacing: 0; }
p { color: var(--muted); }
.page-header p { margin-bottom: 0; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.summary-grid > div { min-height: 116px; padding: 22px 24px; border-right: 1px solid var(--line); }
.summary-grid > div:last-child { border-right: 0; }
.summary-grid span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 650; }
.summary-grid strong { display: block; margin-top: 12px; color: var(--ink-strong); font-size: 31px; line-height: 1; }
.summary-grid .summary-warning span, .summary-grid .summary-warning strong { color: #94620a; }

.case-table, .document-list {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.case-row {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(190px, 1.45fr) minmax(150px, 1fr) 130px 145px 112px;
  align-items: center;
  gap: 18px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}

.case-row:last-child { border-bottom: 0; }
.case-row--header { min-height: 45px; color: var(--muted); background: var(--surface-soft); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.case-name strong, .case-name span { display: block; }
.case-name span { margin-top: 3px; color: var(--muted); font-size: 13px; }

.progress > progress, .case-progress > progress {
  display: block;
  width: 100%;
  height: 7px;
  accent-color: var(--green);
}

.progress progress::-webkit-progress-bar, .case-progress progress::-webkit-progress-bar { background: #e2e9e6; border-radius: 5px; }
.progress progress::-webkit-progress-value, .case-progress progress::-webkit-progress-value { background: var(--green); border-radius: 5px; }
.progress small { display: block; margin-top: 6px; color: var(--muted); }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.overview-panel { min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.overview-panel__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.overview-panel__heading h2 { margin-bottom: 3px; }
.overview-panel__heading p { margin-bottom: 0; font-size: 13px; }
.overview-panel__heading--section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.overview-case { margin-top: 18px; padding: 18px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 5px; }
.overview-case > strong, .overview-case > span { display: block; overflow-wrap: anywhere; }
.overview-case > strong { color: var(--ink-strong); font-size: 18px; }
.overview-case > span { margin-top: 3px; color: var(--muted); }
.overview-case__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; margin: 17px 0 8px; color: var(--muted); font-size: 13px; }
.overview-case .button { margin-top: 18px; }
.overview-actions, .overview-case-list { margin-top: 10px; }
.overview-action, .overview-case-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 0; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.overview-action:last-child, .overview-case-list button:last-child { border-bottom: 0; }
.overview-action > span:nth-child(2), .overview-case-list button > span:first-child { min-width: 0; flex: 1; }
.overview-action strong, .overview-action small, .overview-case-list strong, .overview-case-list small { display: block; overflow-wrap: anywhere; }
.overview-action small, .overview-case-list small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.overview-action__icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: var(--green); background: var(--surface-green); border-radius: 5px; }
.overview-case-list button { flex-wrap: wrap; }
.overview-case-list .status { flex: 0 0 auto; }
.cases-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cases-search { min-width: 0; flex: 1; display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 13px; color: var(--muted); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 5px; }
.cases-search input { min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.cases-toolbar select { width: 180px; height: 44px; padding: 0 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 5px; }
.cases-count { min-width: 62px; color: var(--muted); text-align: right; font-size: 13px; }
.cases-no-results { padding: 30px; color: var(--muted); text-align: center; }
.case-name { min-width: 0; overflow-wrap: anywhere; }

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 750;
}

.button:hover { background: var(--green-dark); border-color: var(--green-dark); }
.button:disabled { cursor: wait; opacity: 0.6; }
.button--full { width: 100%; }

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  color: var(--green);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.icon-button:hover { background: var(--surface-green); }
.topbar .menu-button { display: none; }

.text-button, .text-link {
  padding: 0;
  color: var(--green);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.status {
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.status--success { color: #17633d; background: #e7f5eb; }
.status--info { color: #275e8d; background: var(--blue-soft); }
.status--warning { color: #855a0b; background: var(--gold-soft); }
.status--danger { color: var(--red); background: var(--red-soft); }
.status--neutral { color: #586863; background: #edf1ef; }

.empty-state {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 38px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.empty-state > svg { margin-bottom: 14px; color: var(--green); }
.empty-state h1, .empty-state h2 { margin-bottom: 7px; }
.empty-state p { max-width: 430px; margin-bottom: 0; }
.empty-state .button { margin-top: 18px; }
.empty-state--page { min-height: calc(100vh - 180px); }

.back-link {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--green);
  font-weight: 750;
  text-decoration: none;
}

.page--case-submissions { width: min(1460px, calc(100% - 64px)); }
.case-submission-page .back-link { margin-bottom: 19px; }

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-bottom: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.case-header__main { min-width: 0; }
.case-header__main h1 { margin-bottom: 10px; }
.case-header__company { display: block; color: var(--ink-strong); font-size: 15px; overflow-wrap: anywhere; }
.case-header__main p { margin: 3px 0 0; font-size: 13px; }
.case-header__summary { display: flex; align-items: center; gap: 27px; flex: 0 0 auto; }
.case-header__due { display: grid; gap: 3px; padding-right: 27px; border-right: 1px solid var(--line); }
.case-header__due small, .case-progress small { color: var(--muted); font-size: 12px; }
.case-header__due strong { white-space: nowrap; }
.case-header__due .status { margin-top: 5px; }
.header-meta { display: flex; align-items: center; gap: 15px; color: var(--muted); }
.case-progress { width: 190px; }
.case-progress strong { display: block; margin: 3px 0 12px; font-size: 15px; }

.submission-toolbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.category-tabs { min-width: 0; display: flex; align-items: stretch; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.category-tab {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}
.category-tab:hover { color: var(--green-dark); background: var(--surface-green); }
.category-tab.is-active { color: var(--green-dark); border-bottom-color: var(--green); }
.category-tab span, .action-filter span { min-width: 22px; padding: 1px 6px; text-align: center; color: var(--ink); background: #e9eeec; border-radius: 99px; font-size: 11px; }
.category-tab.is-active span { color: var(--green-dark); background: var(--surface-green); }
.action-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 5px 11px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}
.action-filter:hover, .action-filter.is-active { color: var(--green-dark); background: var(--surface-green); border-color: var(--green); }
.action-filter span { color: #855a0b; background: var(--gold-soft); }

.case-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.72fr) minmax(410px, 1fr);
  align-items: start;
  gap: 16px;
}

.checklist, .request-workspace {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.checklist { overflow: hidden; }
.checklist > header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.checklist > header h2 { margin: 0; font-size: 18px; }
.checklist > header span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.checklist__rows { max-height: min(770px, calc(100vh - 210px)); overflow-y: auto; }
.request-group-title { display: flex; justify-content: space-between; padding: 11px 19px; color: var(--muted); background: var(--surface-soft); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.request-group-title:not(:first-child) { border-top: 1px solid var(--line); }

.checklist-item {
  width: 100%;
  min-height: 83px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 17px;
  align-items: start;
  gap: 13px;
  padding: 15px 19px;
  text-align: left;
  background: var(--surface);
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.checklist-item:last-child { border-bottom: 0; }
.checklist-item:hover { background: var(--surface-soft); }
.checklist-item.is-selected { background: var(--surface-green); box-shadow: inset 3px 0 var(--green); }
.checklist-item > svg { margin-top: 2px; color: var(--green); }
.checklist-item > svg:last-child { color: var(--muted); }
.checklist-item__content { min-width: 0; }
.checklist-item strong, .checklist-item small { display: block; }
.checklist-item strong { color: var(--ink-strong); font-size: 13px; overflow-wrap: anywhere; }
.checklist-item small { margin-top: 1px; color: var(--muted); font-size: 11px; }
.request-state { display: block; position: relative; margin-top: 3px; padding-left: 13px; font-size: 11px; font-weight: 700; }
.request-state::before { position: absolute; top: 5px; left: 0; width: 7px; height: 7px; content: ""; background: currentColor; border-radius: 50%; }
.request-state--warning { color: #a66e0c; }
.request-state--success { color: #167347; }
.request-state--info { color: var(--blue); }
.request-state--neutral { color: var(--muted); }
.checklist-empty { min-height: 220px; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 22px; color: var(--muted); text-align: center; }
.checklist-empty svg { color: var(--green); }
.checklist-empty strong { color: var(--ink); }
.checklist-empty .text-button { margin-top: 8px; }
.request-workspace__empty { padding: 30px; color: var(--muted); }

.request-detail { padding: 26px; scroll-margin-top: 78px; }
.request-detail > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.request-detail > header h2 { margin-bottom: 0; font-size: 22px; overflow-wrap: anywhere; }
.request-detail__badges { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; flex: 0 0 auto; }
.required-badge { padding: 5px 9px; color: #855a0b; background: var(--gold-soft); border-radius: 99px; font-size: 11px; font-weight: 800; }

.request-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  margin: 20px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.request-meta > span { padding-right: 16px; }
.request-meta > span + span { padding-left: 16px; border-left: 1px solid var(--line); }
.request-meta small, .request-meta strong { display: block; }
.request-meta small { margin-bottom: 2px; color: var(--muted); }

.current-submission { margin-bottom: 20px; }
.current-submission h3 { margin-bottom: 8px; }
.instructions { margin-bottom: 20px; }
.instructions p { margin-bottom: 0; white-space: pre-line; }

.clarification {
  display: flex;
  gap: 11px;
  margin: 0 0 20px;
  padding: 14px;
  color: #79520a;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
}

.clarification svg { margin-top: 2px; flex: 0 0 auto; }
.clarification strong, .clarification span { display: block; }
.clarification span { margin-top: 3px; }

.clarification-requests { margin: 0 0 20px; }
.clarification-requests > h3 { margin-bottom: 9px; font-size: 15px; }
.clarification-request { overflow: hidden; margin-top: 10px; border: 1px solid #e2c26d; border-radius: 5px; }
.clarification-request > header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; color: #79520a; background: var(--gold-soft); }
.clarification-request > header > span { display: flex; align-items: center; gap: 8px; }
.clarification-request > header small { color: var(--muted); white-space: nowrap; }
.clarification-request.is-answered { border-color: var(--line); }
.clarification-request.is-answered > header { color: var(--green-dark); background: var(--surface-green); }
.clarification-question, .clarification-answer { padding: 12px; border-top: 1px solid var(--line); }
.clarification-question small, .clarification-answer small { display: block; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.clarification-question p, .clarification-answer p { margin: 4px 0 0; white-space: pre-line; }
.clarification-answer { background: var(--surface-soft); }
.clarification-request > form { padding: 12px; border-top: 1px solid var(--line); }
.clarification-request > footer { padding: 9px 12px; color: var(--muted); background: var(--surface-soft); border-top: 1px solid var(--line); font-size: 11px; }
.supporting-upload { display: grid; gap: 5px; margin: 0 0 14px; padding: 11px 12px; background: var(--surface-soft); border: 1px dashed var(--line-strong); border-radius: 4px; }
.supporting-upload > span { display: flex; align-items: center; gap: 7px; font-weight: 750; }
.supporting-upload input { max-width: 100%; color: var(--muted); font-size: 12px; }
.supporting-upload small { color: var(--muted); }
.attachment-button { width: 100%; min-height: 42px; display: grid; grid-template-columns: 18px minmax(0,1fr) 16px; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 9px; color: var(--green-dark); text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.attachment-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-button:hover { border-color: var(--green); }

.uploaded-file {
  min-height: 64px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 11px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.uploaded-file > svg { color: var(--green); }
.uploaded-file strong, .uploaded-file small { display: block; overflow-wrap: anywhere; }
.uploaded-file small { margin-top: 2px; color: var(--muted); }
.submission-versions { margin: -5px 0 18px; border: 1px solid var(--line); border-radius: 4px; }
.submission-versions summary { min-height: 46px; display: grid; grid-template-columns: 20px minmax(0,1fr) auto 18px; align-items: center; gap: 8px; padding: 9px 12px; cursor: pointer; font-weight: 750; }
.submission-versions summary > svg { color: var(--green); }
.submission-versions summary > svg:last-child { color: var(--muted); transition: transform 150ms ease; }
.submission-versions[open] summary > svg:last-child { transform: rotate(180deg); }
.submission-versions summary small { color: var(--muted); font-size: 10px; font-weight: 600; }
.submission-versions > div { padding: 0 12px 10px; border-top: 1px solid var(--line); }
.submission-versions > div > p { margin: 10px 0; font-size: 11px; }
.submission-versions article { min-height: 54px; display: grid; grid-template-columns: 30px minmax(0,1fr) 36px; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--line); }
.submission-versions article:first-of-type { border-top: 0; }
.submission-versions article > span:nth-child(2) { min-width: 0; }
.submission-versions article strong, .submission-versions article small { display: block; overflow-wrap: anywhere; }
.submission-versions article small { margin-top: 2px; color: var(--muted); font-size: 10px; }

[hidden] { display: none !important; }
.client-form { margin-top: 20px; }
.client-form__head, .client-form-review__head { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.client-form__head h3, .client-form-review__head h3 { margin: 0 0 3px; font-size: 1.05rem; }
.client-form__head p, .client-form-review__head p { margin: 0; color: var(--muted); font-size: .8125rem; }
.client-form__saved { color: var(--green); font-size: .75rem; font-weight: 750; white-space: nowrap; }
.client-form-entry { margin-bottom: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 4px; background: #fbfcfb; }
.client-form-entry header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.client-form-entry h4 { margin: 0; font-size: .9375rem; }
.client-form-field { display: grid; gap: 7px; margin-bottom: 18px; font-size: .875rem; font-weight: 700; }
.client-form-field small { color: var(--muted); font-size: .75rem; font-weight: 400; }
.client-form-field input, .client-form-field select, .client-form-field textarea { width: 100%; min-width: 0; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: white; color: var(--ink); font: inherit; font-weight: 400; }
.client-form-field textarea { min-height: 110px; resize: vertical; }
.required-mark { color: #b13b38; }
.client-form__actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.client-form-review { margin-top: 18px; }
.client-form-review__summary { display: grid; gap: 12px; }
.client-form-review-entry { border: 1px solid var(--line); border-radius: 4px; background: #fbfcfb; overflow: hidden; }
.client-form-review-entry h4 { margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.client-form-review-entry dl { margin: 0; }
.client-form-review-entry div { display: grid; grid-template-columns: minmax(130px, .45fr) minmax(0, 1fr); gap: 14px; padding: 12px 14px; border-top: 1px solid var(--line); }
.client-form-review-entry div:first-child { border-top: 0; }
.client-form-review-entry dt { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; overflow-wrap: anywhere; }
.client-form-review-entry dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.client-form-confirm { display: flex; align-items: start; gap: 9px; margin-top: 14px; font-size: .8125rem; }
.client-form-confirm input { margin-top: 2px; }
@media (max-width: 600px) { .client-form__actions { flex-direction: column; } .client-form__actions .button { width: 100%; justify-content: center; } .client-form-review-entry div { grid-template-columns: 1fr; gap: 4px; } }
.version-number { width: 28px; height: 25px; display: grid; place-items: center; color: var(--green-dark); background: var(--surface-green); border-radius: 4px; font-size: 10px; font-weight: 850; }

.client-review-points { margin: 0 0 18px; border: 1px solid #e2c26d; border-radius: 5px; overflow: hidden; }
.client-review-points > header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--gold-soft); }
.client-review-points > header > div { min-width: 0; display: flex; align-items: center; gap: 9px; }
.client-review-points > header svg { flex: 0 0 auto; color: #94620a; }
.client-review-points strong, .client-review-points small { display: block; }
.client-review-points small { color: var(--muted); font-size: 11px; }
.review-point { width: 100%; min-height: 60px; display: grid; grid-template-columns: 25px minmax(0,1fr) 18px; align-items: center; gap: 9px; padding: 10px 12px; text-align: left; background: var(--surface); border: 0; border-top: 1px solid var(--line); cursor: pointer; }
.review-point:hover { background: var(--surface-soft); }
.review-point > span:nth-child(2) { min-width: 0; }
.review-point small { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-comment-index { width: 24px; height: 24px; display: inline-grid; place-items: center; border: 1px solid; border-radius: 50%; font-size: 10px; font-weight: 850; }
.client-comment-index--yellow { background: #ffeaa4; border-color: #d79b00; }
.client-comment-index--red { color: #7b2824; background: #f7c8c4; border-color: #b54841; }

.annotation-dialog { width: min(1380px, calc(100vw - 36px)); height: min(900px, calc(100vh - 36px)); max-width: none; max-height: none; padding: 0; color: var(--ink); background: var(--surface); border: 0; border-radius: 6px; box-shadow: 0 24px 70px rgba(16,38,31,.28); }
.annotation-dialog::backdrop { background: rgba(13,30,25,.64); }
.annotation-dialog__shell { height: 100%; display: flex; flex-direction: column; }
.annotation-dialog__shell > header { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.annotation-dialog__shell > header h2 { margin-bottom: 0; font-size: 18px; }
.annotation-dialog__shell > header > div:last-child { display: flex; align-items: center; gap: 4px; }
.annotation-dialog__body { min-height: 0; flex: 1; display: grid; grid-template-columns: minmax(420px,1fr) 340px; }
.client-pdf-viewer { min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; overflow: auto; padding: 20px 16px 38px; color: var(--muted); background: #e8edeb; }
.client-pdf-page { position: relative; flex: 0 0 auto; max-width: 100%; background: #fff; box-shadow: 0 5px 20px rgba(21,49,42,.16); }
.client-pdf-page canvas { display: block; width: 100%; height: 100%; }
.client-annotation-layer { position: absolute; inset: 0; overflow: hidden; }
.client-highlight { position: absolute; margin: 0; padding: 0; cursor: pointer; border: 2px solid; border-radius: 2px; }
.client-highlight--yellow { background: rgba(244,190,38,.3); border-color: #d79b00; }
.client-highlight--red { background: rgba(195,67,59,.2); border-color: #b54841; }
.client-highlight > span { position: absolute; top: -12px; right: -12px; width: 23px; height: 23px; display: grid; place-items: center; color: #fff; background: var(--ink-strong); border: 2px solid #fff; border-radius: 50%; font-size: 10px; font-weight: 850; }
.client-highlight.is-selected { border-width: 3px; box-shadow: 0 0 0 3px rgba(0,102,90,.28); }
.annotation-dialog aside { min-width: 0; overflow: auto; padding: 18px; border-left: 1px solid var(--line); }
.annotation-dialog aside h3 { margin-bottom: 3px; font-size: 16px; }
.annotation-dialog aside > p { margin-bottom: 16px; font-size: 12px; }
.client-comment-list { display: grid; gap: 8px; }
.client-comment-list > button { width: 100%; display: grid; grid-template-columns: 25px minmax(0,1fr) 18px; align-items: start; gap: 9px; padding: 12px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.client-comment-list > button:hover { background: var(--surface-soft); }
.client-comment-list > button.is-selected { border-color: var(--green); box-shadow: inset 3px 0 var(--green); }
.client-comment-list > button > span:nth-child(2) { min-width: 0; }
.client-comment-list strong, .client-comment-list small, .client-comment-list span span { display: block; }
.client-comment-list small { margin: 1px 0 7px; color: var(--muted); font-size: 10px; }
.client-comment-list span span { color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }
.client-comment-list svg { margin-top: 4px; color: var(--green); }
.viewer-error { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 7px; text-align: center; }

.field { display: grid; gap: 7px; margin-bottom: 16px; font-weight: 750; }
.field textarea {
  min-height: 148px;
  resize: vertical;
  padding: 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-weight: 400;
}

.upload-zone {
  position: relative;
  min-height: 164px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 18px;
  color: var(--green);
  text-align: center;
  background: var(--surface-soft);
  border: 1px dashed #8cb2a8;
  border-radius: 4px;
  cursor: pointer;
}

.upload-zone:hover { background: var(--surface-green); }
.upload-zone.is-dragging, .upload-zone:focus-within { background: var(--surface-green); border-color: var(--green); }
.upload-zone strong { margin-top: 8px; }
.upload-zone span { color: var(--muted); font-size: 12px; }
.upload-zone .upload-zone__selection { max-width: 100%; margin-top: 8px; color: var(--green-dark); font-weight: 750; overflow-wrap: anywhere; }
.upload-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.accepted-note { padding: 14px; color: #17633d; background: #e7f5eb; border-radius: 4px; }

.document-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) 130px 140px 135px 40px;
  align-items: center;
  gap: 17px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}

.document-row:last-child { border-bottom: 0; }
.document-row--header { min-height: 45px; color: var(--muted); background: var(--surface-soft); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.document-name { min-width: 0; display: flex; align-items: center; gap: 12px; }
.document-name > svg { flex: 0 0 auto; color: var(--green); }
.document-name strong, .document-name small { display: block; overflow-wrap: anywhere; }
.document-name small { margin-top: 2px; color: var(--muted); }

.account-section {
  display: grid;
  grid-template-columns: 92px minmax(0, 620px);
  gap: 30px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.account-avatar { width: 92px; height: 92px; border-radius: 50%; font-size: 28px; }
.account-section dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 15px 24px; margin: 0; }
.account-section dt { color: var(--muted); }
.account-section dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.security-section { display: flex; gap: 13px; max-width: 760px; margin-top: 28px; padding: 18px; background: var(--surface-green); border-radius: 4px; }
.security-section > svg { flex: 0 0 auto; color: var(--green); }
.security-section h2 { margin-bottom: 4px; font-size: 16px; }
.security-section p { margin-bottom: 0; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 0.8fr) minmax(520px, 1.2fr); }

.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 58px;
  color: #fff;
  background: var(--ink-strong);
}

.login-brand .brand strong, .login-brand .brand small { color: #fff; }
.login-brand .brand strong span { color: var(--gold); }
.login-brand h1 { max-width: 430px; color: #fff; font-size: 42px; }
.login-brand p { max-width: 430px; color: #c9d6d2; font-size: 17px; }
.login-brand > small { color: #91aaa3; }

.login-form-wrap { display: grid; place-items: center; padding: 44px; background: var(--surface-soft); }
.login-form { width: min(420px, 100%); }
.login-form h2 { margin-bottom: 7px; font-size: 28px; }
.login-form > p { margin-bottom: 28px; }
.login-form > label { display: grid; gap: 8px; margin-bottom: 17px; color: var(--ink); font-weight: 750; }
.login-form input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-weight: 400;
}

.password-field { position: relative; display: block; }
.password-field input { padding-right: 48px; }
.password-field .icon-button { position: absolute; top: 6px; right: 6px; }
.login-form > .button { width: 100%; min-height: 48px; margin-top: 6px; }
.security-note { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 30px; padding-top: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.mobile-login-brand { display: none; }

.error-banner {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 18px;
  padding: 12px;
  color: var(--red);
  background: var(--red-soft);
  border-left: 3px solid var(--red);
}

.error-banner svg { flex: 0 0 auto; margin-top: 2px; }

.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; gap: 9px; }
.toast-region--dialog { z-index: 2; right: 18px; bottom: 18px; }
.toast { width: min(380px, calc(100vw - 32px)); display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; color: #fff; background: var(--ink-strong); border-radius: 5px; box-shadow: var(--shadow); }
.toast > svg { flex: 0 0 auto; margin-top: 2px; }
.toast--error { background: #7d2f2b; }

@media (max-width: 980px) {
  .overview-grid { grid-template-columns: minmax(0, 1fr) minmax(230px, .75fr); }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 180ms ease;
    box-shadow: var(--shadow);
  }

  .sidebar-open .sidebar { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .topbar { justify-content: space-between; padding: 0 22px; }
  .topbar .menu-button { display: inline-grid; }
  .mobile-brand { display: inline-flex; flex-direction: column; margin-right: auto; margin-left: 10px; font-weight: 850; }
  .mobile-brand small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
  .page { width: min(100% - 40px, 940px); }
  .user-chip { display: none; }
  .case-table { overflow: visible; background: transparent; border: 0; }
  .case-row { min-width: 0; min-height: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-bottom: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
  .case-row.case-row--header { display: none; }
  .case-row:last-child { border-bottom: 1px solid var(--line); }
  .case-row > .progress { grid-column: 1 / -1; grid-row: 2; }
  .case-row > span:not(.status) { grid-column: 1; color: var(--muted); font-size: 12px; }
  .case-row > .status { grid-column: 2; grid-row: 1; align-self: start; }
  .case-row > .button { grid-column: 1 / -1; min-height: 40px; }
  .page--case-submissions { width: min(100% - 40px, 940px); }
  .case-layout { grid-template-columns: minmax(285px, 0.9fr) minmax(380px, 1.1fr); }
  .document-list { overflow-x: auto; }
  .document-row { min-width: 840px; }
}

@media (max-width: 900px) {
  .overview-grid { grid-template-columns: 1fr; }
}

@media (min-width: 721px) and (max-width: 980px) {
  .case-row { grid-template-columns: minmax(0, 1.4fr) minmax(130px, 1fr) 115px; }
  .case-row > .progress { grid-column: 2; grid-row: 1; }
  .case-row > span:not(.status) { grid-column: 3; grid-row: 1; }
  .case-row > .status { grid-column: 1; grid-row: 2; }
  .case-row > .button { grid-column: 3; grid-row: 2; }
}

@media (max-width: 720px) {
  .overview-grid { grid-template-columns: 1fr; }
  .overview-panel { padding: 18px; }
  .cases-toolbar { flex-wrap: wrap; }
  .cases-search { flex-basis: 100%; }
  .cases-toolbar select { flex: 1; width: auto; }
  body { padding-bottom: 68px; }
  .topbar { height: 60px; padding: 0 15px; }
  .topbar__right { gap: 0; }
  .topbar select { min-width: 0; width: min(44vw, 210px); height: 38px; padding-left: 9px; font-size: 12px; }
  .page { width: calc(100% - 28px); padding: 26px 0 36px; }
  .bottom-nav {
    position: fixed;
    z-index: 25;
    inset: auto 0 0 0;
    height: 68px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--surface);
    border-top: 1px solid var(--line);
  }

  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 10px; font-weight: 750; }
  .bottom-nav a[aria-current="page"] { color: var(--green); }
  h1 { font-size: 27px; }
  .page-header { margin-bottom: 21px; }
  .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-grid > div { min-height: 96px; padding: 15px 12px; }
  .summary-grid span { align-items: flex-start; gap: 5px; font-size: 11px; }
  .summary-grid span svg { width: 14px; height: 14px; flex: 0 0 auto; }
  .summary-grid strong { margin-top: 10px; font-size: 25px; }
  .document-list { overflow: visible; background: transparent; border: 0; border-radius: 0; }
  .document-row--header { display: none; }
  .page--case-submissions { width: calc(100% - 28px); }
  .case-submission-page .back-link { margin-bottom: 15px; }
  .case-header { display: block; padding-bottom: 18px; }
  .case-header__main h1 { font-size: 23px; }
  .case-header__summary { justify-content: space-between; gap: 12px; margin-top: 20px; }
  .case-header__due { flex: 1; padding-right: 12px; }
  .case-header__due strong { white-space: normal; }
  .case-progress { flex: 1; width: auto; margin-top: 0; }
  .case-progress strong { margin-bottom: 9px; font-size: 13px; }
  .submission-toolbar { display: block; margin-bottom: 14px; }
  .category-tabs { gap: 0; margin: 0 -14px; padding: 0 14px; }
  .category-tab { min-height: 49px; padding: 0 10px; font-size: 12px; }
  .action-filter { margin: 10px 0; }
  .header-meta { flex-wrap: wrap; }
  .case-layout { display: block; }
  .checklist__rows { max-height: none; overflow: visible; }
  .request-workspace { margin-top: 14px; }
  .request-detail { padding: 18px; }
  .request-detail > header { display: block; }
  .request-detail__badges { justify-content: flex-start; margin-top: 10px; }
  .client-review-points > header { align-items: flex-start; }
  .annotation-dialog { width: 100vw; height: 100dvh; margin: 0; border-radius: 0; }
  .annotation-dialog__shell > header { min-height: 62px; padding: 9px 12px; }
  .annotation-dialog__shell > header h2 { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
  .annotation-dialog__body { display: flex; flex-direction: column; }
  .client-pdf-viewer { min-height: 54vh; max-height: 62vh; padding: 12px 10px 26px; }
  .annotation-dialog aside { flex: 1; padding: 14px; border-top: 1px solid var(--line); border-left: 0; }
  .document-row { min-width: 0; min-height: 0; grid-template-columns: minmax(0, 1fr) 40px; gap: 12px; margin-bottom: 10px; padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
  .document-row > .document-name { grid-column: 1 / -1; }
  .document-row > .text-link { justify-self: start; }
  .document-row > span:not(.document-name):not(.status) { color: var(--muted); font-size: 12px; }
  .document-row > .status { justify-self: start; }
  .document-row > .icon-button { grid-column: 2; grid-row: 2; }
  .account-section { grid-template-columns: 64px minmax(0, 1fr); gap: 18px; }
  .account-avatar { width: 64px; height: 64px; font-size: 20px; }
  .account-section dl { grid-template-columns: 1fr; gap: 4px; }
  .account-section dd { margin-bottom: 11px; }
  .login-page { display: block; min-height: 100vh; }
  .login-brand { display: none; }
  .login-form-wrap { min-height: 100vh; padding: 28px 22px; }
  .mobile-login-brand { display: flex; margin-bottom: 45px; }
  .login-form h2 { font-size: 26px; }
  .toast-region { right: 16px; bottom: 84px; }
}

@media (max-width: 390px) {
  .overview-panel__heading { flex-wrap: wrap; }
  .case-row { grid-template-columns: minmax(0, 1fr); }
  .case-row > .status, .case-row > .progress, .case-row > span:not(.status), .case-row > .button { grid-column: 1; grid-row: auto; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-grid > div { min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-grid > div:last-child { border-bottom: 0; }
  .summary-grid strong { margin-top: 0; }
  .request-meta { grid-template-columns: 1fr; gap: 12px; }
  .request-meta > span + span { padding-top: 12px; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.management-dialog { width: min(900px,calc(100vw - 24px)); max-height: min(92dvh,950px); padding: 0; border: 0; border-radius: 6px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.management-dialog::backdrop { background: rgb(13 40 34 / 58%); }
.management-dialog__head { display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.management-dialog__head h2 { margin: 3px 0; font-size: 20px; }
.management-dialog__head p { margin: 0; }
.management-dialog__head small { color: var(--muted); }
.management-dialog__body { max-height: calc(92dvh - 94px); overflow-y: auto; padding: 20px 22px 28px; }
.management-error { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0; padding: 12px; color: var(--red); background: var(--red-soft); border-left: 3px solid var(--red); border-radius: 4px; font-size: 13px; }
.management-error svg { flex: 0 0 auto; margin-top: 1px; }
.management-progress { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; margin-bottom: 14px; font-size: 13px; }
.management-progress span { color: var(--muted); }
.management-progress progress { grid-column: 1 / -1; width: 100%; height: 7px; accent-color: var(--green); }
.management-schedule { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.management-schedule button { display: grid; gap: 2px; flex: 0 0 auto; min-width: 120px; padding: 8px 10px; text-align: left; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-size: 12px; }
.management-schedule button.is-active { border-color: var(--green); background: #e7f2ef; }
.management-schedule button:disabled { opacity: .55; cursor: not-allowed; }
.management-schedule small { color: var(--muted); }
.management-tabs { display: flex; gap: 0; overflow-x: auto; margin: 16px 0 0; border-bottom: 1px solid var(--line); }
.management-tabs button { flex: 1 0 auto; min-height: 42px; padding: 8px 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.management-tabs button.is-active { border-color: var(--green); color: var(--green); }
.management-section-intro { margin: 13px 0; color: var(--muted); font-size: 13px; }
.management-month-bar { display: flex; justify-content: space-between; gap: 16px; align-items: end; padding-bottom: 17px; }
.management-month-bar label { display: grid; gap: 5px; font-size: 12px; font-weight: 700; }
.management-month-bar select { min-width: 180px; min-height: 40px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: white; }
.management-month-bar > div { display: grid; text-align: right; font-size: 13px; }
.management-month-bar > div span { color: var(--muted); }
.management-table-wrap { overflow: auto; border: 1px solid var(--line); }
.management-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 13px; }
.management-table th, .management-table td { border-bottom: 1px solid var(--line); padding: 8px 12px; }
.management-table th { text-align: left; }
.management-table td { width: 190px; text-align: right; }
.management-table thead { background: var(--canvas); color: var(--muted); }
.management-table input[type=number] { width: 150px; min-height: 36px; padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 4px; text-align: right; }
.management-table input:disabled { background: var(--canvas); }
.management-not-reported { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; }
.management-total { background: var(--canvas); font-weight: 700; }
.management-result { background: #e7f2ef; }
.management-reconciliation { display: grid; gap: 9px; margin-top: 12px; padding: 12px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 4px; }
.management-reconciliation h3 { margin: 0 0 2px; font-size: 14px; }
.management-reconciliation > div { display: grid; grid-template-columns: minmax(0,1fr) 170px; align-items: center; gap: 12px; }
.management-reconciliation span { font-weight: 700; }
.management-reconciliation input { width: 100%; min-height: 36px; padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 4px; text-align: right; }
.management-reconciliation input:disabled { background: var(--canvas); }
.management-reconciliation strong { text-align: right; }
.management-line th { padding-left: 28px; font-weight: 500; }
.management-line th:has(.management-line-remove) { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.management-line-remove { width: 26px; height: 26px; color: var(--muted); }
.management-line-remove:hover { color: var(--red); background: var(--red-soft); }
.management-add-row form { display: flex; justify-content: flex-end; gap: 8px; }
.management-add-row input { flex: 1; max-width: 240px; min-height: 36px; padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 4px; }
.management-add-row .button { min-height: 36px; padding: 5px 10px; }
.management-note { display: grid; gap: 7px; margin-top: 20px; font-size: 13px; font-weight: 700; }
.management-note textarea { min-height: 80px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 4px; resize: vertical; }
.management-submit-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.management-submit-bar label { display: flex; align-items: flex-start; gap: 8px; min-width: 0; font-size: 12px; line-height: 1.45; }
.management-submit-bar label input { flex: 0 0 auto; margin-top: 2px; }
.management-submit-bar > div { display: flex; flex: 0 0 auto; gap: 8px; }
.management-submit-bar .button { min-height: 38px; padding: 7px 13px; white-space: nowrap; font-size: 13px; }
.management-submit-bar .button svg { width: 16px; height: 16px; }
.management-client-questions, .management-audited-readonly { margin: 0 0 18px; padding: 14px; background: var(--canvas); border: 1px solid var(--line); }
.management-client-questions h3, .management-audited-readonly h3 { margin-bottom: 9px; }
.management-client-questions p { display: grid; gap: 2px; margin: 8px 0; }
.management-question { display: grid; gap: 3px; width: 100%; margin-top: 7px; padding: 9px 10px; text-align: left; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font: inherit; font-size: 13px; }
.management-question:hover { border-color: var(--green); }
.management-question span { color: var(--muted); }
.management-audited-readonly { margin-top: 20px; }
.management-audited-readonly span { display: block; font-size: 12px; }
.management-history { margin: 0 0 14px; font-size: 12px; }
.management-history p { margin: 6px 0; }
.management-lock-note { color: var(--muted); font-size: 13px; }
@media (max-width: 600px) {
  .management-dialog { width: 100vw; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  .management-dialog__head { padding: 13px 16px; }
  .management-dialog__body { max-height: calc(100dvh - 85px); padding: 14px 16px 30px; }
  .management-month-bar, .management-submit-bar { align-items: stretch; flex-direction: column; }
  .management-month-bar > div { text-align: left; }
  .management-submit-bar > div { display: grid; grid-template-columns: 1fr 1fr; }
  .management-add-row form { flex-wrap: wrap; }
}
