:root {
  --bg: #f6fbff;
  --surface: #ffffff;
  --ink: #102033;
  --muted: #5c6d7d;
  --line: #d9e9f5;
  --blue: #1d9bd7;
  --blue-dark: #12668f;
  --teal: #1fa6a0;
  --amber: #c9861a;
  --red: #c94a55;
  --shadow: 0 16px 40px rgba(22, 74, 110, 0.12);
  --workspace-width: 1140px;
  --workspace-gutter: 40px;
  --workspace-content: min(var(--workspace-width), calc(100% - (var(--workspace-gutter) * 2)));
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
main { min-height: calc(100vh - 72px); }

.topbar {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 0 40px;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar div { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: var(--muted); font-size: 14px; border-radius: 999px; padding: 8px 10px; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.topbar a:hover { color: var(--blue-dark); }
.topbar a.nav-active {
  color: var(--blue-dark);
  background: #e8f7ff;
  box-shadow: inset 0 0 0 1px #b9e3f6;
  font-weight: 700;
}
.topbar a.nav-active::after {
  content: "";
  display: block;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
  margin: 5px auto -4px;
}
.topbar a.user-link,
.topbar .user-name {
  color: var(--ink);
  background: #f4f9fd;
}
.topbar .user-name {
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 14px;
}
.topbar a.logout-link {
  color: var(--red);
  background: #fff7f8;
  border: 1px solid #f2c7cc;
  font-weight: 700;
}
.topbar a.logout-link:hover {
  color: #a83340;
  background: #fff0f1;
}
.brand { color: var(--ink) !important; font-weight: 900; font-size: 24px !important; gap: 8px !important; letter-spacing: -0.055em; }
.topbar .brand { padding: 0; border-radius: 0; }
.topbar .brand::after { display: none; }
.brand-logo-img { display: block; width: 142px; height: auto; object-fit: contain; }
.brand-tag { color: var(--blue-dark); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin-left: 2px; align-self: center; font-weight: 900; }
.dashboard-actions .eyebrow { margin-bottom: 0; }
@media (max-width: 860px) { .dashboard-actions { margin-left: 20px; margin-right: 20px; align-items: flex-start; flex-direction: column; } .dashboard-actions .toolbar { width: 100%; } }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 48px;
  align-items: center;
  padding: 72px 40px 48px;
  max-width: 1180px;
  margin: 0 auto;
}
.eyebrow {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 12px;
}
h1 {
  font-size: 52px;
  line-height: 1.02;
  margin: 0 0 18px;
}
.lead {
  color: var(--muted);
  font-size: 20px;
  max-width: 680px;
}
.hero-actions, .toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 16px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  cursor: pointer;
}
.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.button.disabled,
.button[aria-disabled="true"] {
  background: #e9eef2;
  border-color: #d5dee5;
  color: #6f8190;
  cursor: not-allowed;
  box-shadow: none;
}
.button.ghost { background: white; color: var(--blue-dark); }
.button.danger {
  background: white;
  border-color: #f2c7cc;
  color: var(--red);
}
.action-hint {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: -4px;
}

.hero-panel, .table-panel, .form-panel, .case-main, .case-side, .empty-state, .list-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-panel { padding: 24px; }
.score-card {
  display: grid;
  gap: 4px;
  padding: 22px;
  border-radius: 8px;
  background: #eaf7ff;
}
.score-card strong { font-size: 64px; line-height: 1; color: var(--blue-dark); }
.score-card em { color: var(--amber); font-style: normal; font-weight: 700; }
.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  margin-top: 18px;
}
.signal-grid span { color: var(--muted); }
.signal-grid b { color: var(--ink); }

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 56px;
  padding: 0 40px;
}
.feature-band article { border-top: 3px solid var(--blue); padding-top: 18px; }
.feature-band h2 { margin: 0 0 8px; }
.feature-band p { margin: 0; color: var(--muted); }

.workspace-header {
  padding: 42px 0 18px;
  width: var(--workspace-content);
  max-width: none;
  margin: 0 auto;
}
.workspace-header h1 { font-size: 38px; }
.workspace-header p { color: var(--muted); max-width: 760px; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: var(--workspace-content);
  max-width: none;
  margin: 0 auto 20px;
  padding: 0;
}
.metric-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.metric-grid span { color: var(--muted); display: block; font-size: 13px; }
.metric-grid strong { font-size: 34px; }
.metric-card { position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,74,110,.10); }
.metric-card:after { content: ''; position: absolute; width: 80px; height: 80px; border-radius: 50%; right: -28px; top: -28px; background: rgba(29,155,215,.08); }
.metric-label { font-weight: 700; }
.metric-card small { display: block; color: var(--muted); margin-top: 4px; font-size: 12px; }
.metric-review:after { background: rgba(201,134,26,.12); }
.metric-edd:after { background: rgba(201,74,85,.10); }
.metric-screened:after { background: rgba(31,166,160,.10); }
.dashboard-actions { width: var(--workspace-content); max-width: none; margin: 28px auto 20px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(110deg,#ffffff,#f1faff); box-shadow: 0 10px 28px rgba(22,74,110,.06); }
.dashboard-actions h2 { margin: 6px 0 3px; font-size: 22px; }
.dashboard-actions p { margin: 0; color: var(--muted); }
.dashboard-actions .toolbar { width: auto; max-width: none; margin: 0; }
.admin-kpis { width: var(--workspace-content); max-width: none; margin: 0 auto 22px; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }.admin-kpis article { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(22,74,110,.05); }.admin-kpis span,.admin-kpis small { display: block; color: var(--muted); }.admin-kpis strong { display: block; margin: 4px 0; font-size: 34px; color: var(--blue-dark); }.admin-kpis small { font-size: 12px; }.admin-hub { width: var(--workspace-content); max-width: none; margin: 0 auto 30px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(120deg,#fff,#f1faff); }.admin-hub h2 { margin: 5px 0; font-size: 25px; }.admin-hub p { max-width: 600px; color: var(--muted); }.admin-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 24px; }.admin-links a { display: grid; gap: 5px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }.admin-links a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,74,110,.10); }.admin-links b { color: var(--ink); }.admin-links span { color: var(--muted); font-size: 12px; }
@media (max-width: 860px) { .admin-kpis { margin-left: 20px; margin-right: 20px; padding-left: 0; padding-right: 0; grid-template-columns: 1fr; }.admin-hub { margin-left: 20px; margin-right: 20px; }.admin-links { grid-template-columns: 1fr; } }
.link-button { border: 0; background: none; color: var(--red); cursor: pointer; padding: 0; font: inherit; font-weight: 700; }.link-button:hover { text-decoration: underline; }
.login-panel .text-link { text-align: center; color: var(--blue-dark); }.reset-dev-link { display: grid; gap: 5px; padding: 14px; border-radius: 10px; background: #eaf7ff; border: 1px solid #bfe4f5; }.reset-dev-link a { color: var(--blue-dark); font-weight: 700; }.reset-dev-link small { color: var(--muted); font-size: 11px; }
.admin-link { color: var(--blue-dark) !important; font-weight: 700; }.admin-login-panel { border-top: 4px solid var(--blue-dark); }
.signup-panel { width: min(620px, 100%); }.signup-progress { display: flex; align-items: center; margin-bottom: 26px; }.signup-progress span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #edf3f6; color: var(--muted); font-weight: 800; }.signup-progress span.active { background: var(--blue); color: #fff; }.signup-progress i { flex: 1; height: 2px; background: var(--line); }.signup-plans { display: grid; gap: 12px; }.plan-choice { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }.plan-choice input { width: auto; grid-row: span 2; margin-top: 4px; }.plan-choice strong { color: var(--ink); }.plan-choice span { color: var(--muted); font-size: 12px; }.payment-summary { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: baseline; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; }.payment-summary small { grid-column: 1 / -1; color: var(--muted); }.terms-consent { grid-template-columns: auto 1fr; }.terms-consent input { width: auto; }.terms-consent a { color: var(--blue-dark); font-weight: 700; }
.legal-page { max-width: 900px; margin: 48px auto 80px; padding: 0 40px; }.legal-page h1 { font-size: 42px; }.legal-page article { margin-top: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }.legal-page h2 { margin: 24px 0 6px; font-size: 20px; }.legal-page h2:first-child { margin-top: 0; }.legal-page p { color: var(--muted); }
.success-page { width: min(620px, calc(100% - 40px)); margin: 80px auto; padding: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); text-align: center; }.success-page h1 { margin-bottom: 10px; font-size: 40px; }.success-page p { color: var(--muted); }.success-page .button { margin-top: 12px; }.success-logo { display: block; width: 170px; height: auto; margin: 0 auto 20px; }
.form-section { display: grid; gap: 14px; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdff; }.form-section legend { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--ink); font-weight: 800; }.form-section legend small { color: var(--muted); font-weight: 400; font-size: 12px; }.step-badge { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #e5f5fc; color: var(--blue-dark); font-size: 12px; }.field-help { color: var(--muted); font-size: 11px; }
.case-title-row { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }.case-title-row h2 { margin: 5px 0 2px; }.case-title-row p { margin: 0; color: var(--muted); }.case-risk-score { min-width: 96px; padding: 12px; border-radius: 10px; background: #f1faff; text-align: center; }.case-risk-score strong { font-size: 30px; line-height: 1; }.case-risk-score span { color: var(--muted); font-size: 12px; }.case-risk-score small { display: block; color: var(--blue-dark); font-weight: 700; margin-top: 4px; }.next-action { display: grid; gap: 3px; margin-top: 22px; padding: 14px 16px; border-left: 3px solid var(--blue); background: #f6fbff; }.next-action span { color: var(--blue-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.next-action strong { font-size: 13px; }
.case-filters { width: var(--workspace-content); max-width: none; margin: 24px auto 0; padding: 16px; display: flex; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.case-filters input { flex: 1 1 220px; width: auto; }.case-filters select { width: auto; min-width: 180px; }.case-filters .button { min-height: 42px; }
.table-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; }.table-heading h2 { margin: 0 0 3px; }.table-heading p { margin: 0; }.result-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.case-name { display: block; }.table-panel td small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }.risk-low { background: #eafaf4; color: #16805f; }.risk-medium { background: #fff5df; color: #9b6610; }.risk-high,.risk-critical { background: #fff0f1; color: #b23a49; }.empty-table { display: grid; gap: 5px; justify-items: start; padding: 18px 0; color: var(--muted); }.empty-table strong { color: var(--ink); font-size: 16px; }.empty-table .button { margin-top: 8px; }
@media (max-width: 860px) { .case-filters { margin-left: 20px; margin-right: 20px; }.case-filters input,.case-filters select,.case-filters .button { width: 100%; }.table-heading { flex-direction: column; gap: 6px; } }
.case-progress { width: var(--workspace-content); max-width: none; margin: 0 auto 20px; padding: 22px 28px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(22,74,110,.06); }
.progress-heading { display: flex; justify-content: space-between; gap: 16px; color: var(--ink); }
.progress-heading span { color: var(--muted); font-size: 13px; }
.progress-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 18px; }
.progress-step { display: flex; gap: 11px; align-items: center; padding: 12px; border-radius: 10px; background: #f6f9fb; color: var(--muted); }
.progress-step > b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #e6eff4; color: var(--blue-dark); }
.progress-step span { display: grid; gap: 2px; }.progress-step strong { color: var(--ink); font-size: 13px; }.progress-step small { font-size: 11px; }.progress-step.complete { background: #eafaf4; }.progress-step.complete > b { background: #bfeedd; color: #16805f; }
@media (max-width: 860px) { .case-progress { margin-left: 20px; margin-right: 20px; }.progress-steps { grid-template-columns: 1fr; } }

.toolbar, .table-panel, .form-panel, .case-layout, .empty-state, .list-panel, .work-grid, .report-doc {
  width: var(--workspace-content);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.table-panel { padding: 22px; margin-top: 18px; }
.table-panel h2 { margin-top: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 13px; }
td a { color: var(--blue-dark); font-weight: 700; text-decoration: none; }
.risk-badge, .status-pill {
  display: inline-flex;
  border-radius: 999px;
  background: #eaf7ff;
  color: var(--blue-dark);
  padding: 5px 10px;
  font-weight: 800;
  font-size: 12px;
}

.form-panel {
  padding: 24px;
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.inline-form {
  display: grid;
  gap: 14px;
}
.compact-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 8px;
}
.compact-form input,
.compact-form select {
  width: auto;
  min-width: 150px;
}
.verifime-launch-panel {
  max-width: 900px;
}
.case-summary-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4fbff;
  padding: 14px 16px;
}
.case-summary-strip div {
  display: grid;
  gap: 4px;
}
.case-summary-strip span {
  color: var(--muted);
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px;
}
.check-option {
  display: flex;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  padding: 14px;
  color: var(--ink);
}
.check-option input {
  width: auto;
  margin-top: 3px;
}
.check-option span {
  display: grid;
  gap: 4px;
}
.check-option small {
  color: var(--muted);
  line-height: 1.45;
}
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: white;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #b8e3f8; border-color: var(--blue); }

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  padding: 0;
}
.case-main, .case-side { padding: 24px; }
.case-side { display: grid; gap: 12px; align-self: start; }
.case-actions {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f7fcff);
  box-shadow: 0 10px 24px rgba(22,74,110,.06);
  text-align: center;
}
.case-actions .eyebrow {
  margin: 0 0 2px;
  color: var(--blue-dark);
}
.case-actions form,
.case-actions .case-action-item,
.case-actions .button {
  width: 100%;
}
.case-actions .button {
  justify-content: center;
  min-height: 44px;
}
.case-actions .button.danger {
  background: #fff;
  border-color: #ffc9cf;
  color: #b23a49;
}
.case-actions .action-hint {
  display: block;
  max-width: 220px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.risk-meter { height: 10px; background: #edf4f8; border-radius: 999px; overflow: hidden; margin: 18px 0; }
.risk-meter span { display: block; height: 100%; background: var(--teal); }

.empty-state, .list-panel {
  margin-top: 18px;
  padding: 24px;
}
.muted { color: var(--muted); }
.list-panel { display: grid; gap: 12px; }
.list-panel > div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.list-panel > div.verifime-start-row {
  align-items: flex-start;
  gap: 24px;
}
.verifime-start-row > span {
  flex: 1;
  max-width: 820px;
}
.verifime-inline-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff, #f3faff);
  padding: 18px;
}
.verifime-inline-head {
  display: grid;
  gap: 4px;
}
.verifime-inline-head span {
  color: var(--muted);
  font-size: 13px;
}
.compact-check-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.compact-check-grid .check-option {
  min-height: 86px;
}
.verifime-inline-actions {
  display: flex;
  justify-content: flex-end;
}
.verifime-inline-actions > div {
  display: grid;
  gap: 8px;
  justify-items: end;
  max-width: 360px;
}
.verifime-inline-actions .button {
  min-width: 220px;
}
.verifime-action-form {
  display: grid;
  gap: 8px;
  justify-items: end;
}
.verifime-action-form .action-hint,
.verifime-inline-actions .action-hint {
  max-width: 360px;
  text-align: right;
}
.reason-list { color: var(--muted); padding-left: 20px; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 24px;
  align-items: start;
  padding: 0 0 56px;
}
.work-grid .table-panel,
.work-grid .form-panel {
  width: 100%;
  margin-top: 0;
  box-sizing: border-box;
}
.work-grid .table-panel {
  max-width: none;
}
.work-grid .case-work-card {
  min-width: 0;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(22,74,110,.06);
}
.work-grid .case-work-card h2 {
  margin-bottom: 18px;
}
.work-grid .case-work-card table {
  table-layout: fixed;
}
.work-grid .case-work-card th,
.work-grid .case-work-card td {
  overflow-wrap: anywhere;
}
.work-grid .name-screening-card {
  grid-column: 1 / -1;
}
.work-grid .evidence-card,
.work-grid .reviewer-decision-card,
.work-grid .monitoring-alert-card,
.work-grid .regulatory-event-card {
  align-self: stretch;
}
.work-grid .evidence-card form,
.work-grid .reviewer-decision-card form,
.work-grid .monitoring-alert-card form,
.work-grid .regulatory-event-card form {
  margin-bottom: 16px;
}
.work-grid .evidence-card input[type="file"] {
  min-height: 42px;
}
.report-doc {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 30px;
  margin-top: 18px;
  margin-bottom: 48px;
}
.report-doc h1 { font-size: 34px; }
.report-doc h2 { margin-top: 28px; }
.report-kv {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}

.login-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 40px; }
.login-panel { width: min(440px, 100%); }
.login-panel h1 { font-size: 30px; }
.alert { background: #fff2f2; color: var(--red); border: 1px solid #f2c7cc; border-radius: 8px; padding: 10px 12px; }
.notice-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: var(--workspace-content);
  max-width: none;
  margin: 18px auto 0;
  padding: 14px 16px;
  border: 1px solid #b6dff0;
  border-radius: 8px;
  background: #eef9ff;
  color: #24475f;
}
.notice-panel strong { color: #0b3958; }
.notice-panel span { color: #526577; }
.success-notice {
  border-color: #9bd9bd;
  background: #f1fff8;
}
.warning-notice {
  border-color: #ffd6a3;
  background: #fff8ed;
}
pre { white-space: pre-wrap; overflow: auto; }
.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fcff;
}
.checkbox-line input {
  width: auto;
  margin-top: 3px;
}
.checkbox-grid,
.feature-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.feature-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  background: #f4f8fb;
  color: #526577;
  font-size: 14px;
}
.feature-pill.enabled {
  background: #e7f8ff;
  border-color: #a8ddf3;
  color: #12668f;
}
.feature-pill.disabled {
  opacity: .58;
}
.admin-plan {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
  background: #fbfdff;
}
.admin-plan summary {
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 860px) {
  :root { --workspace-gutter: 20px; }
  .topbar { padding: 16px 20px; align-items: flex-start; flex-direction: column; }
  .hero, .feature-band, .metric-grid { grid-template-columns: 1fr; padding-left: 20px; padding-right: 20px; }
  .case-layout, .work-grid { grid-template-columns: 1fr; margin-left: 20px; margin-right: 20px; padding-left: 0; padding-right: 0; }
  .work-grid .name-screening-card { grid-column: auto; }
  h1 { font-size: 40px; }
  .workspace-header, .metric-grid { margin-left: 20px; margin-right: 20px; padding-left: 0; padding-right: 0; }
  .toolbar, .table-panel, .form-panel, .empty-state, .list-panel, .report-doc, .notice-panel { margin-left: 20px; margin-right: 20px; }
  .case-layout .case-main,
  .case-layout .case-side,
  .work-grid .table-panel,
  .work-grid .form-panel { margin-left: 0; margin-right: 0; }
  .report-kv { grid-template-columns: 1fr; gap: 2px; }
  .compact-form input,
  .compact-form select,
  .compact-form .button { width: 100%; }
}

/* Refined public landing page */
.hero { max-width: none; min-height: 560px; padding: 92px max(40px, calc((100% - 1100px)/2)) 72px; background: radial-gradient(circle at 78% 35%, #e8f8ff 0, transparent 28%), linear-gradient(135deg,#f9fdff 0%,#eef9ff 100%); }
.hero-copy { max-width: 590px; }
.hero h1 { font-size: clamp(48px,6vw,76px); letter-spacing: -0.055em; color: #102b45; }
.hero h1 em { color: #239fd4; font-family: Georgia, serif; font-weight: 500; }
.lead { font-size: 19px; line-height: 1.65; }
.hero-panel { border-radius: 18px; padding: 25px; box-shadow: 0 24px 60px rgba(22,74,110,.14); }
.score-card { border-radius: 13px; padding: 27px; }
.score-card strong { font-size: 68px; letter-spacing: -.05em; }
.feature-band { margin-bottom: 80px; }
.feature-band article { border-top-width: 4px; padding: 22px 8px 0; }
.feature-band h2 { font-size: 24px; }
.button { border-radius: 10px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(18,102,143,.18); }
.topbar { padding-left: max(24px, calc((100% - 1100px)/2)); padding-right: max(24px, calc((100% - 1100px)/2)); }
.hero-panel { max-width: 440px; justify-self: end; padding: 18px; }
.score-card { padding: 20px; }
.score-card strong { font-size: 56px; }
.signal-grid { gap: 9px 16px; margin-top: 14px; font-size: 14px; }
.signal-grid b { font-size: 14px; line-height: 1.35; }
