:root {
  --navy-950: #041326;
  --navy-900: #071d3a;
  --navy-800: #0b3262;
  --navy-700: #154b86;
  --blue-600: #1d64d8;
  --blue-100: #eaf2ff;
  --teal-600: #168f9a;
  --teal-100: #eaf8fa;
  --gold-600: #b88322;
  --coral-600: #d85f4f;
  --green-600: #238767;
  --sky-100: #eef5ff;
  --paper: #f4f7fb;
  --surface: #ffffff;
  --ivory: #fffdf8;
  --ink: #172033;
  --muted: #66758b;
  --line: #dce5ee;
  --shadow: 0 20px 60px rgba(6, 18, 36, 0.13);
  --radius: 8px;
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
body.admin-mode {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(29, 100, 216, 0.22), transparent 34%), var(--navy-950);
}
body.admin-mode .topbar { display: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 88px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(220, 229, 238, 0.88);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 270px;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  color: transparent;
  background: url("assets/logo.svg?v=202609062030") center / cover no-repeat;
  font-size: 0;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(29, 100, 216, 0.2);
}

.brand strong {
  display: block;
  color: var(--navy-950);
  font-size: 1.12rem;
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 550;
}

.nav-links, .nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-actions {
  justify-content: flex-end;
  margin-left: auto;
}

.nav-actions .ghost-btn { min-width: 112px; }
.nav-actions .primary-btn { min-width: 162px; }

.nav-links a {
  color: #33445d;
  font-weight: 500;
  font-size: 0.94rem;
}

.primary-btn, .secondary-btn, .ghost-btn, .menu-btn, .icon-btn, .tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: var(--radius);
  border: 0;
  padding: 0 16px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--blue-600), var(--navy-800));
  box-shadow: 0 14px 30px rgba(29, 100, 216, 0.24);
}

.secondary-btn {
  color: var(--navy-900);
  background: var(--blue-100);
  border: 1px solid rgba(29, 100, 216, 0.22);
}

.ghost-btn, .menu-btn {
  color: var(--navy-900);
  background: white;
  border: 1px solid var(--line);
}

.icon-btn {
  width: 42px;
  padding: 0;
  color: var(--navy-900);
  background: var(--paper);
}

.full { width: 100%; }
.menu-btn { display: none; }
.page { min-height: calc(100vh - 88px); }

.hero {
  position: relative;
  display: grid;
  min-height: auto;
  overflow: hidden;
  color: white;
  background: var(--navy-950);
}

.hero-image, .hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center center;
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 18, 36, 0.93), rgba(6, 18, 36, 0.72) 45%, rgba(6, 18, 36, 0.44)),
    linear-gradient(0deg, rgba(6, 18, 36, 0.72), rgba(6, 18, 36, 0.08));
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 34px;
  align-items: start;
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0 128px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  font-weight: 600;
}

.hero .eyebrow { color: #9cc3ff; }
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.35rem, 3.35vw, 3.45rem);
  line-height: 1.1;
  letter-spacing: 0;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 650;
}

.hero-copy {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.83);
  font-size: 1.04rem;
  line-height: 1.65;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  width: min(884px, 100%);
  margin-top: 24px;
}

.hero-actions .primary-btn,
.hero-actions .secondary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding-inline: 18px;
  text-align: center;
  white-space: nowrap;
}

.hero-search {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px 220px;
  gap: 12px;
  width: min(884px, 100%);
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-search .primary-btn {
  width: 100%;
}

input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: white;
  outline: none;
}

textarea { min-height: 124px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(29, 100, 216, 0.13);
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 126px;
  transform: translateX(12px);
}

.trust-tile {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-tile strong {
  display: block;
  color: #9cc3ff;
  font-size: 1.5rem;
}

.trust-tile span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.section, .market-panel, .directory-page, .dashboard-page {
  width: min(1220px, calc(100% - 36px));
  margin: 76px auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  align-items: end;
  margin-bottom: 22px;
}

.section-head > div { max-width: 780px; }
h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(1.55rem, 2.65vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: 0;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 650;
}
h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.08rem;
  line-height: 1.25;
}
p { line-height: 1.7; }
.muted { color: var(--muted); }

.stat-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1120px, calc(100% - 36px));
  margin: -56px auto 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--line);
}

.stat-strip article {
  padding: 22px;
  background: var(--surface);
}

.stat-strip strong {
  display: block;
  color: var(--navy-900);
  font-size: 1.35rem;
}

.market-panel {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 22px;
  align-items: start;
}

.finder-panel, .conversion-panel, .service-card, .lawyer-card, .guide-card, .court-card, .update-card, .updates-sidebar,
.dash-card, .metric-card, .table-card, .profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(6, 18, 36, 0.06);
}

.finder-panel, .conversion-panel { padding: 24px; }
.finder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.finder-grid .wide { grid-column: 1 / -1; }
label {
  display: grid;
  gap: 7px;
  color: #33445d;
  font-weight: 500;
}

.result-stack { display: grid; gap: 12px; }
.lawyer-card {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 16px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: var(--radius);
  color: white;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-600));
  font-size: 1.05rem;
  font-weight: 650;
}

.lawyer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--navy-800);
  background: var(--sky-100);
  font-size: 0.78rem;
  font-weight: 600;
}

.pill.green { color: var(--green-600); background: #e6f5ee; }
.pill.gold { color: #8b620f; background: #fff2d8; }
.pill.red { color: #9a372c; background: #ffe7e3; }
.pill.teal { color: #0d4f9f; background: var(--blue-100); }

.fee-box {
  min-width: 150px;
  text-align: right;
}

.fee-box strong {
  display: block;
  color: var(--navy-950);
  font-size: 1.05rem;
}

.role-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.role-path {
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(6, 18, 36, 0.08);
}
.customer-path {
  background: linear-gradient(135deg, #ffffff, #eef5ff);
}
.advocate-path {
  color: white;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-950));
}
.advocate-path h2,
.advocate-path h3 {
  color: white;
}
.advocate-path .muted {
  color: rgba(255, 255, 255, 0.78);
}
.role-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.role-actions .primary-btn,
.role-actions .secondary-btn,
.role-actions .ghost-btn {
  min-width: 180px;
}

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

.service-card {
  display: grid;
  gap: 12px;
  min-height: 246px;
  padding: 18px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  color: var(--navy-950);
  background: var(--blue-100);
  font-weight: 650;
}

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

.steps-band {
  background: var(--navy-950);
  color: white;
  padding: 72px 0;
}

.steps-band .section { margin: 0 auto; }
.steps-band h2,
.steps-band h3 {
  color: white;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.step-card {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(156,195,255,0.22);
}
.step-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  color: var(--navy-950);
  background: #b8d4ff;
  font-weight: 650;
}
.step-card p { color: rgba(255,255,255,0.82); }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.tab-btn {
  color: var(--navy-900);
  background: white;
  border: 1px solid var(--line);
}
.tab-btn.active {
  color: white;
  background: var(--navy-900);
}

.cloud, .court-grid, .guide-grid {
  display: grid;
  gap: 12px;
}
.cloud { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.court-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cloud button, .court-card, .guide-card {
  min-height: 58px;
  padding: 14px;
}
.cloud button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--navy-900);
  text-align: left;
  font-weight: 500;
}

.advocate-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eaf2ff, #f8fbff);
}
.advocate-benefits {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}
.advocate-benefits li {
  padding: 12px;
  border: 1px solid rgba(29,100,216,0.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.72);
  font-weight: 500;
}

.panel-preview {
  display: grid;
  gap: 12px;
}
.mini-screen {
  padding: 16px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(6,18,36,0.08);
}
.mini-row {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 12px;
  align-items: center;
  min-height: 36px;
  border-bottom: 1px solid var(--line);
}
.bar {
  height: 9px;
  border-radius: 999px;
  background: var(--blue-100);
  overflow: hidden;
}
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-600), var(--navy-700)); }

.footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 26px;
  padding: 48px clamp(18px, 5vw, 64px);
  color: rgba(255,255,255,0.76);
  background: var(--navy-950);
}
.footer h3, .footer strong { color: white; }
.footer a { display: block; margin: 8px 0; }

.updates-tabs { margin-bottom: 18px; }
.updates-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  align-items: start;
}
.updates-sidebar,
.update-card {
  padding: 18px;
}
.updates-sidebar {
  position: sticky;
  top: 96px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.updates-list {
  display: grid;
  gap: 12px;
}
.update-card {
  display: grid;
  gap: 10px;
  border-left: 4px solid var(--blue-600);
}
.update-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.modal {
  width: min(820px, calc(100% - 28px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: transparent;
}
.wide-modal {
  width: min(1180px, calc(100% - 28px));
}
.modal::backdrop { background: rgba(6,18,36,0.58); backdrop-filter: blur(4px); }
.modal-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.modal-card header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}
.modal-card h2 { font-size: 1.7rem; }
.compact-modal { width: min(520px, 100%); margin: 0 auto; }
.split-auth {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.split-auth::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line);
}
.auth-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}
.auth-panel h3 {
  margin-bottom: 4px;
}
.auth-panel textarea {
  min-height: 84px;
}
.advocate-auth {
  padding-left: 10px;
}
.registration-split .auth-panel {
  max-height: min(68vh, 720px);
  overflow-y: auto;
  padding-right: 10px;
}
.auth-hint {
  margin: 18px 0 0;
  text-align: center;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .wide { grid-column: 1 / -1; }
.form-grid.single { grid-template-columns: 1fr; }
.login-roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.login-roles button {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy-950);
  background: var(--paper);
  font-weight: 600;
}
.hint { color: var(--muted); margin-bottom: 0; }
.hint.center { text-align: center; margin: 16px 0 0; }
.text-btn {
  border: 0;
  padding: 0;
  color: var(--blue-600);
  background: transparent;
  font-weight: 600;
}

.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 130%);
  min-width: min(440px, calc(100% - 32px));
  padding: 14px 16px;
  border-radius: var(--radius);
  color: white;
  background: var(--navy-900);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: 0.22s ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.dashboard-page {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  margin-top: 44px;
  scroll-margin-top: 120px;
}
body.admin-mode .dashboard-page {
  width: min(1320px, calc(100% - 36px));
  margin: 24px auto;
}
.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  color: white;
}
.admin-login-brand {
  position: fixed;
  top: 28px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.admin-login-brand strong,
.admin-login-brand small {
  display: block;
}
.admin-login-brand small {
  color: rgba(255, 255, 255, 0.68);
  margin-top: 2px;
}
.admin-login-card {
  display: grid;
  gap: 16px;
  width: min(440px, 100%);
  padding: 30px;
  border: 1px solid rgba(184, 212, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}
.admin-login-card h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: 2rem;
  line-height: 1.12;
  letter-spacing: 0;
}
.admin-login-card .muted {
  margin: 0 0 4px;
}
.admin-back-link {
  justify-self: center;
  margin-top: 2px;
}
.dash-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  height: max-content;
  min-height: 0;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding: 18px 18px 24px;
  border-radius: var(--radius);
  color: white;
  background: var(--navy-950);
}
.dash-sidebar .brand { min-width: 0; color: white; margin-bottom: 18px; }
.dash-sidebar .brand strong,
.dash-sidebar .brand small {
  color: white;
}
.dash-profile {
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.dash-profile small { display: block; color: rgba(255,255,255,0.68); margin-top: 4px; }
.dash-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 18px 0;
}
.dash-nav button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 12px;
  color: rgba(255,255,255,0.74);
  background: transparent;
  text-align: left;
  font-weight: 500;
}
.dash-nav button.active { color: white; background: rgba(29,100,216,0.24); }
.dash-exit {
  width: calc(100% - 16px);
  margin: 18px auto 0;
  min-height: 46px;
  color: var(--navy-950);
  background: white;
  box-shadow: none;
}
.dash-main { min-width: 0; }
.advocate-dashboard .dash-sidebar {
  background: linear-gradient(180deg, #08172c, #061326);
  border: 1px solid rgba(215, 160, 72, 0.28);
}
.advocate-dashboard .dash-nav button.active {
  background: rgba(215, 160, 72, 0.18);
  color: #ffe4a0;
}
.advocate-dashboard .eyebrow {
  color: #9b681c;
}
.dash-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
.dash-header h2 {
  font-size: clamp(1.85rem, 2.8vw, 2.7rem);
}

.dash-header > .primary-btn,
.dash-header > .secondary-btn,
.dash-header > .ghost-btn {
  flex: 0 0 auto;
  min-width: 220px;
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.metric-card { padding: 18px; }
.metric-card strong {
  display: block;
  margin-top: 6px;
  color: var(--navy-950);
  font-size: 1.45rem;
}
.work-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}
.table-card, .dash-card, .profile-card { padding: 18px; }
.customer-home-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 14px;
}
.document-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 14px;
}
.case-tracker-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}
.case-track-card {
  align-self: start;
}
.case-list-card {
  grid-column: 1 / -1;
}
.tracked-case-row {
  align-items: flex-start;
}
.tracked-case-row > div:first-child {
  min-width: 0;
}
.case-next-action {
  flex: 0 0 280px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #f7fbff;
}
.document-upload-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.document-upload-form .primary-btn {
  justify-self: start;
  min-width: 190px;
}
.document-list-card {
  grid-column: 1 / -1;
}
.document-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.document-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.advocate-home-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}
.advocate-feature {
  background: linear-gradient(135deg, #ffffff, #fff9ec);
  border-color: rgba(215, 160, 72, 0.32);
}
.advocate-metrics .pill {
  color: #8b620f;
  background: #fff2d8;
}
.request-center {
  min-height: 220px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}
.request-center .role-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 500px;
}
.request-center .role-actions .primary-btn,
.request-center .role-actions .secondary-btn {
  width: 100%;
  min-width: 0;
}
.advocate-profile-center {
  display: grid;
  gap: 18px;
}
.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.profile-fields.compact {
  grid-template-columns: 1fr;
  margin: 14px 0;
}
.profile-fields div,
.message-row {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.profile-fields span {
  color: var(--muted);
}
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.76rem;
  font-weight: 600;
}
.task-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.task-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: var(--radius);
  background: var(--paper);
}
.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.empty-state p {
  margin-bottom: 0;
}
.task-list input { width: 18px; height: 18px; min-height: 18px; }
.matter-list { display: grid; gap: 12px; }

@media (max-width: 1240px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .topbar.menu-open .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: grid;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
  }
  .hero-inner, .market-panel, .advocate-band, .dashboard-page, .work-grid, .footer, .updates-layout, .role-paths, .customer-home-grid, .advocate-home-grid, .document-grid, .case-tracker-grid {
    grid-template-columns: 1fr;
  }
  .hero-trust, .stat-strip, .service-grid, .steps-grid, .cloud, .court-grid, .guide-grid, .dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-trust {
    padding-top: 20px;
    transform: none;
  }
  .dash-sidebar, .updates-sidebar { position: static; height: auto; min-height: 0; }
}

@media (max-width: 680px) {
  .brand { min-width: 0; }
  .brand small, .nav-actions .ghost-btn { display: none; }
  .topbar { padding-inline: 14px; }
  .hero { min-height: auto; }
  .hero-inner { padding: 88px 0 90px; }
  .hero h1 { font-size: 2.18rem; }
  h2 { font-size: 1.65rem; }
  .dash-header h2 { font-size: 2rem; }
  .hero-search, .hero-actions, .finder-grid, .form-grid, .login-roles, .lawyer-card, .stat-strip,
  .service-grid, .steps-grid, .cloud, .court-grid, .guide-grid, .dash-grid, .profile-fields {
    grid-template-columns: 1fr;
  }
  .fee-box { text-align: left; }
  .section, .market-panel, .directory-page, .dashboard-page { margin: 48px auto; }
  .section-head, .dash-header { align-items: stretch; flex-direction: column; }
  .role-actions .primary-btn,
  .role-actions .secondary-btn,
  .role-actions .ghost-btn,
  .dash-header > .primary-btn,
  .dash-header > .secondary-btn,
  .dash-header > .ghost-btn {
    width: 100%;
    min-width: 0;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .ghost-btn,
  .nav-actions .primary-btn {
    min-width: 0;
  }
  .update-card footer { align-items: stretch; flex-direction: column; }
  .split-auth {
    grid-template-columns: 1fr;
  }
  .split-auth::before {
    display: none;
  }
  .advocate-auth {
    padding-left: 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
  .registration-split .auth-panel {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .document-row {
    align-items: stretch;
    flex-direction: column;
  }
  .case-next-action {
    width: 100%;
    flex-basis: auto;
  }
  .document-row .secondary-btn {
    width: 100%;
  }
}
