:root {
  color-scheme: light;
  --ink: #18201d;
  --muted: #65706c;
  --paper: #f7f8f3;
  --panel: #ffffff;
  --line: #dfe5dd;
  --teal: #087f7a;
  --teal-dark: #055955;
  --coral: #cf5d3f;
  --lime: #a9c95a;
  --gold: #c89127;
  --shadow: 0 18px 44px rgba(23, 35, 31, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial,
    sans-serif;
  line-height: 1.5;
}

main {
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #ffffff;
}

.site-header::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(17, 25, 22, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.brand,
.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.brand {
  justify-self: start;
  min-width: 0;
  font-weight: 780;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #14201d;
  background: var(--lime);
  border-radius: 7px;
  font-weight: 850;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-action {
  justify-self: end;
  min-height: 40px;
  padding: 0 14px;
  color: #17201d;
  background: #ffffff;
  border-radius: var(--radius);
  font-weight: 720;
}

.hero {
  position: relative;
  order: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 610px;
  height: 74svh;
  max-height: 760px;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-enterprise-ai.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 16, 14, 0.88), rgba(10, 16, 14, 0.52) 48%, rgba(10, 16, 14, 0.08)),
    linear-gradient(180deg, rgba(10, 16, 14, 0.16), rgba(10, 16, 14, 0.68));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  width: 100%;
  min-width: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: 132px clamp(20px, 4vw, 42px) 44px;
  color: #ffffff;
}

.kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 820;
}

.hero .kicker {
  color: var(--lime);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 760;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.button-primary {
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 12px 26px rgba(8, 127, 122, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal-dark);
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(10px);
}

.ghost-button {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 150px));
  gap: 18px;
  width: min(100%, 520px);
  margin: 34px 0 0;
}

.hero-metrics div {
  padding-top: 14px;
  border-top: 2px solid rgba(255, 255, 255, 0.28);
}

.hero-metrics dt {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 850;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.hero-process-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 760px);
  margin-top: 26px;
}

.hero-process-rail div {
  display: grid;
  min-height: 82px;
  align-content: center;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.hero-process-rail span {
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
}

.hero-process-rail strong {
  line-height: 1.24;
}

.case-workspace,
.submit-section {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 70px clamp(20px, 4vw, 42px);
  scroll-margin-top: 84px;
}

.case-workspace {
  order: 3;
  padding-top: 56px;
}

.submit-section {
  order: 2;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-note {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.filter-band {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(5, minmax(118px, 170px)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(27, 40, 36, 0.06);
}

.role-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.role-action {
  display: grid;
  min-height: 74px;
  align-content: center;
  gap: 3px;
  padding: 12px 14px;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(27, 40, 36, 0.06);
}

.role-action span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.role-action strong {
  color: var(--ink);
  font-size: 16px;
}

.role-action:hover,
.role-action:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 127, 122, 0.1);
}

.filter-band label,
.case-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.filter-band label > span,
.case-form label > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.search-field {
  position: relative;
}

.search-field > span {
  position: absolute;
  top: 38px;
  left: 14px;
  color: var(--teal);
}

.search-field input {
  padding-left: 40px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #cad5cf;
  border-radius: var(--radius);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input,
select {
  height: 46px;
  padding: 0 12px;
}

textarea {
  min-height: 112px;
  resize: vertical;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 127, 122, 0.12);
}

.switch-control {
  display: inline-flex !important;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: end;
  min-height: 46px;
  gap: 8px !important;
  color: var(--ink);
  font-weight: 720;
}

.switch-control input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.switch-control span {
  color: var(--ink) !important;
  font-size: 14px !important;
}

.segment-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 12px;
}

.segment {
  min-width: 74px;
  height: 38px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 720;
}

.segment.is-active {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
}

.case-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-weight: 720;
}

.text-button {
  min-height: 34px;
  padding: 0;
  color: var(--teal-dark);
  background: transparent;
  border: 0;
  font-weight: 800;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
  margin: -6px 0 18px;
}

.active-filters:empty {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 780;
}

.filter-chip button {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: #eef3e9;
  border: 0;
  border-radius: 999px;
  line-height: 1;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.case-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(27, 40, 36, 0.07);
}

.case-card {
  display: grid;
  min-height: 360px;
  padding: 18px;
}

.case-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.case-card h3 {
  margin: 12px 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.case-card p {
  margin: 0;
  color: var(--muted);
}

.case-signal {
  display: grid;
  gap: 7px;
  padding: 14px;
  margin: 14px 0 0;
  background: #f7f8f3;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
}

.case-signal span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 840;
}

.case-signal p {
  color: var(--muted);
  font-size: 14px;
}

.tag-row,
.case-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: var(--teal-dark);
  background: #e4f2ee;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 780;
}

.pill.coral {
  color: #8f351f;
  background: #f7e4dd;
}

.pill.gold {
  color: #745018;
  background: #f4e7cc;
}

.pill.muted {
  color: #46514d;
  background: #edf1ee;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-self: end;
  margin-top: 18px;
}

.meta-item {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.meta-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.meta-item strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

.case-card-actions {
  align-self: end;
  justify-content: space-between;
  margin-top: 18px;
}

.icon-button,
.link-button {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

.icon-button.is-favorite {
  color: #ffffff;
  background: var(--coral);
  border-color: var(--coral);
}

.link-button {
  grid-auto-flow: column;
  gap: 8px;
  padding: 0 14px;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(44px, 8vw, 78px) 20px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed #bac7c0;
  border-radius: var(--radius);
}

.empty-state span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
}

.empty-state h3 {
  max-width: 620px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.12;
}

.empty-state p {
  max-width: 660px;
  margin: 0;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.submit-section {
  background: #eef3e9;
  width: 100%;
  max-width: none;
}

.submit-section > * {
  width: min(100%, 1180px);
  margin-right: auto;
  margin-left: auto;
}

.submit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

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

.import-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(27, 40, 36, 0.07);
}

.import-panel-header,
.import-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.import-panel h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.12;
}

.file-drop {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  gap: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #f7f8f3;
  border: 1px dashed #aebbb4;
  border-radius: var(--radius);
  font-weight: 760;
  cursor: pointer;
}

.file-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

#file-name {
  overflow: hidden;
  max-width: 240px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#import-text {
  min-height: 150px;
}

.ai-parse-settings {
  padding: 12px 14px;
  background: #f7f8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ai-parse-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.ai-parse-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  background: #d8dfda;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(29, 45, 38, 0.1);
  transition: background 0.18s ease;
}

.toggle-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(24, 35, 31, 0.18);
  transition: transform 0.18s ease;
}

.ai-parse-toggle input:checked + .toggle-track {
  background: var(--accent);
}

.ai-parse-toggle input:checked + .toggle-track::after {
  transform: translateX(18px);
}

.toggle-copy {
  display: grid;
  gap: 3px;
}

.toggle-copy strong {
  color: var(--ink);
  font-size: 14px;
}

.toggle-copy em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.endpoint-settings {
  padding: 12px 14px;
  background: #f7f8f3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.endpoint-settings summary {
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
  cursor: pointer;
}

.endpoint-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}

.endpoint-field {
  display: grid;
  gap: 7px;
}

.endpoint-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.endpoint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.endpoint-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.import-actions {
  justify-content: start;
  flex-wrap: wrap;
}

.import-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.import-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
}

.import-preview:empty {
  display: none;
}

.import-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--teal-dark);
  background: #e4f2ee;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 780;
}

.is-imported {
  animation: imported-field 900ms ease;
}

@keyframes imported-field {
  0% {
    box-shadow: 0 0 0 0 rgba(8, 127, 122, 0.28);
  }

  100% {
    box-shadow: 0 0 0 8px rgba(8, 127, 122, 0);
  }
}

.wide-field {
  grid-column: span 2;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.draft-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.quality-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(27, 40, 36, 0.07);
}

.quality-panel h3 {
  margin: 0;
  font-size: 23px;
}

.quality-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 14px;
}

.quality-score strong {
  color: var(--teal-dark);
  font-size: 48px;
  line-height: 1;
}

.quality-score span {
  color: var(--muted);
  font-weight: 760;
}

.quality-meter {
  height: 9px;
  margin-top: 14px;
  overflow: hidden;
  background: #dfe8dd;
  border-radius: 999px;
}

.quality-meter span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--coral);
  border-radius: inherit;
  transition:
    width 180ms ease,
    background 180ms ease;
}

.quality-panel[data-quality="medium"] .quality-meter span {
  background: var(--gold);
}

.quality-panel[data-quality="high"] .quality-meter span {
  background: var(--teal);
}

.quality-summary {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.quality-checklist {
  display: grid;
  gap: 10px;
  padding: 16px 0 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.quality-checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.quality-checklist span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: transparent;
  background: #eef3e9;
  border: 1px solid #cfdbd3;
  border-radius: 999px;
  font-size: 12px;
}

.quality-checklist li.is-done {
  color: var(--ink);
}

.quality-checklist li.is-done span {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 16px;
  color: #ffffff;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(20px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.76);
  background: #17201d;
}

.site-footer a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 590px;
    height: 72svh;
  }

  .filter-band,
  .role-actions,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-field,
  .switch-control {
    grid-column: 1 / -1;
  }

  .switch-control {
    justify-content: start;
  }

  .case-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .submit-layout {
    grid-template-columns: 1fr;
  }

  .quality-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .nav-action {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero {
    min-height: 600px;
    height: 76svh;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(10, 16, 14, 0.42), rgba(10, 16, 14, 0.9)),
      linear-gradient(90deg, rgba(10, 16, 14, 0.78), rgba(10, 16, 14, 0.24));
  }

  .hero-content {
    padding: 92px 18px 24px;
  }

  .hero-actions .button {
    flex: 1 1 132px;
    padding: 0 12px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-process-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-process-rail div {
    min-height: 82px;
    padding: 10px;
  }

  .hero-process-rail strong {
    font-size: 13px;
  }

  .case-workspace {
    padding: 46px 18px;
  }

  .submit-section {
    padding: 46px 18px;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .filter-band,
  .role-actions,
  .case-grid,
  .case-form {
    grid-template-columns: 1fr;
  }

  .import-panel-header {
    display: grid;
    align-items: start;
  }

  .ai-parse-toggle {
    grid-template-columns: auto 1fr;
  }

  .endpoint-grid {
    grid-template-columns: 1fr;
  }

  .endpoint-actions .button {
    flex: 1 1 136px;
  }

  .import-actions .button,
  .file-drop {
    width: 100%;
  }

  .wide-field {
    grid-column: auto;
  }

  .case-card {
    min-height: 0;
  }

}
