:root {
  --white: #ffffff;
  --graphite-25: #fafafa;
  --graphite-50: #f4f5f4;
  --graphite-100: #e5e8e6;
  --graphite-200: #d5dad7;
  --graphite-300: #a9b1ad;
  --graphite-500: #63706b;
  --graphite-700: #2d3833;
  --graphite-800: #202923;
  --graphite-900: #121815;
  --green-900: #09281f;
  --green: #0f3d2e;
  --green-650: #1f5a43;
  --moss: #5c7867;
  --mint: #dcebe1;
  --mint-soft: #eef6f1;
  --lime: #a9c75c;
  --gold: #c5a45a;
  --rose: #b35b5b;
  --blue: #47768a;
  --shadow-sm: 0 10px 28px rgba(18, 24, 21, 0.07);
  --shadow: 0 24px 70px rgba(18, 24, 21, 0.11);
  --shadow-strong: 0 30px 90px rgba(9, 40, 31, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--graphite-900);
  background: var(--graphite-50);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(15, 61, 46, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 61, 46, 0.035) 1px, transparent 1px),
    var(--graphite-50);
  background-size: 44px 44px;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(169, 199, 92, 0.45);
  outline-offset: 2px;
}

.hidden {
  display: none;
}

.dashboard {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(9, 40, 31, 0.96) 0%, rgba(9, 40, 31, 0.88) 36%, rgba(9, 40, 31, 0.42) 70%, rgba(9, 40, 31, 0.2) 100%),
    linear-gradient(180deg, rgba(9, 40, 31, 0.08), rgba(9, 40, 31, 0.72)),
    url("./src/assets/uroboro-hero-bg.png"),
    var(--graphite-50);
  background-position: center;
  background-size: cover;
}

.hero {
  width: min(1280px, calc(100% - 48px));
  min-height: 78vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 900px);
  gap: 64px;
  align-items: center;
  padding: 48px 0;
}

.hero-copy {
  color: var(--white);
}

.eyebrow,
.local-badge,
.signal-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  border: 1px solid rgba(220, 235, 225, 0.76);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.hero .eyebrow {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: var(--mint);
  box-shadow: none;
}

.ring-dot {
  width: 11px;
  height: 11px;
  border: 2px solid var(--lime);
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 5px rgba(169, 199, 92, 0.18);
}

.hero h1 {
  margin: 28px 0 0;
  font-size: clamp(56px, 8vw, 94px);
  line-height: 0.96;
  letter-spacing: 0;
}

.subtitle {
  max-width: 850px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.38;
}

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

.primary-action,
.secondary-action,
.chat-input button,
.doc-actions button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.primary-action,
.chat-input button {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(15, 61, 46, 0.22);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.button-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  line-height: 1;
}

.chat-input .button-icon {
  margin-right: 0;
}

.primary-action:hover,
.chat-input button:hover {
  background: var(--green-900);
  transform: translateY(-1px);
}

.secondary-action:hover {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.case-showcase {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 472px;
  gap: 34px;
  align-items: stretch;
}

.showcase-copy {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(14px);
}

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

.showcase-copy h2 {
  margin: 12px 0 0;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.showcase-copy p:not(.kicker) {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.65;
}

.showcase-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.showcase-nav button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.showcase-nav button:hover {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.hero-card,
.panel {
  border: 1px solid rgba(213, 218, 215, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  box-shadow: var(--shadow-strong);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--lime), var(--green), var(--gold));
}

.hero-card-top,
.topbar,
.case-header,
.panel-title,
.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.kicker {
  margin: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.hero-card h2,
.case-header h2,
.module-header h3 {
  margin: 8px 0 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

.mark,
.brand-mark,
.icon-circle {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--green), var(--green-900));
  color: var(--white);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.progress-block {
  margin-top: 34px;
}

.progress-label {
  color: var(--graphite-700);
  font-size: 14px;
}

.progress-label strong {
  color: var(--green);
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--graphite-100);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--lime));
}

.progress-block .progress-track {
  margin-top: 12px;
}

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

.hero-metrics article {
  border: 1px solid var(--graphite-100);
  border-radius: 8px;
  padding: 12px;
  background: var(--graphite-25);
}

.hero-metrics strong {
  display: block;
  color: var(--green);
  font-size: 24px;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 6px;
  color: var(--graphite-500);
  font-size: 11px;
  font-weight: 800;
}

.workflow-preview {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.workflow-preview article {
  display: flex;
  gap: 12px;
  border: 1px solid var(--graphite-100);
  border-radius: 8px;
  padding: 13px;
  background: var(--white);
}

.workflow-preview article > span {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--graphite-300);
}

.workflow-preview article.done > span {
  background: var(--green);
}

.workflow-preview article.active {
  border-color: rgba(15, 61, 46, 0.24);
  background: var(--mint-soft);
}

.workflow-preview article.active > span {
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(169, 199, 92, 0.18);
}

.workflow-preview strong {
  display: block;
  color: var(--graphite-900);
  font-size: 14px;
}

.workflow-preview p {
  margin: 4px 0 0;
  color: var(--graphite-500);
  font-size: 13px;
  line-height: 1.45;
}

.workspace {
  min-height: 100vh;
  padding-bottom: 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(213, 218, 215, 0.82);
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--graphite-900);
  text-align: left;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--graphite-500);
}

.brand-mark {
  width: 40px;
  height: 40px;
}

.topbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.local-badge {
  background: var(--graphite-50);
  color: var(--graphite-700);
  font-size: 12px;
}

.signal-badge {
  border-color: rgba(169, 199, 92, 0.42);
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  box-shadow: none;
}

.case-header,
.workflow-strip,
.workspace-grid {
  width: min(1560px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.case-header {
  margin-top: 16px;
  margin-bottom: 12px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(220, 235, 225, 0.7), transparent 38%),
    var(--white);
}

.case-header p {
  max-width: 800px;
  margin: 8px 0 0;
  color: var(--graphite-500);
  line-height: 1.55;
}

.case-status {
  display: grid;
  grid-template-columns: 190px 260px;
  gap: 12px;
}

.case-status article {
  border: 1px solid var(--graphite-100);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.case-status span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-status strong {
  display: block;
  color: var(--graphite-900);
  font-size: 14px;
  line-height: 1.35;
}

.case-status .progress-track {
  margin-top: 9px;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 14px;
  overflow: hidden;
}

.workflow-strip article {
  position: relative;
  min-height: 76px;
  border-right: 1px solid var(--graphite-100);
  padding: 14px 16px 14px 42px;
  background: var(--white);
}

.workflow-strip article:last-child {
  border-right: 0;
}

.workflow-strip span {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--graphite-100);
  color: var(--graphite-500);
  font-size: 10px;
  font-weight: 900;
}

.workflow-strip strong,
.workflow-strip small {
  display: block;
}

.workflow-strip strong {
  color: var(--graphite-900);
  font-size: 14px;
}

.workflow-strip small {
  margin-top: 3px;
  color: var(--graphite-500);
  font-size: 12px;
  line-height: 1.35;
}

.workflow-strip .complete span {
  background: var(--green);
  color: var(--white);
}

.workflow-strip .current {
  background: var(--mint-soft);
}

.workflow-strip .current span {
  background: var(--lime);
  color: var(--green-900);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr) 390px;
  gap: 16px;
}

.chat,
.module-panel,
.case-panel {
  min-height: 720px;
  overflow: hidden;
}

.panel-title {
  justify-content: flex-start;
  border-bottom: 1px solid var(--graphite-100);
  padding: 16px;
  background: linear-gradient(180deg, var(--white), var(--graphite-25));
}

.panel-title h3 {
  margin: 0;
  font-size: 17px;
}

.panel-title p {
  margin: 3px 0 0;
  color: var(--graphite-500);
  font-size: 12px;
}

.icon-circle {
  width: 42px;
  height: 42px;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.icon-circle.dark {
  background: linear-gradient(145deg, var(--graphite-900), var(--graphite-700));
}

.demo-cases,
.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--graphite-100);
  padding: 12px;
  background: var(--graphite-25);
}

.prompt-actions {
  border-top: 1px solid var(--graphite-100);
  border-bottom: 0;
  padding-top: 10px;
}

.demo-cases button,
.prompt-actions button {
  border: 1px solid var(--graphite-100);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--white);
  color: var(--graphite-700);
  font-size: 12px;
  font-weight: 850;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.demo-cases button:hover,
.demo-cases button.active,
.prompt-actions button:hover {
  border-color: rgba(15, 61, 46, 0.24);
  background: var(--mint-soft);
  color: var(--green);
  transform: translateY(-1px);
}

.demo-cases button.active {
  box-shadow: inset 0 0 0 1px rgba(15, 61, 46, 0.08);
}

.messages {
  display: grid;
  align-content: start;
  gap: 14px;
  height: 464px;
  overflow: auto;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(244, 245, 244, 0.45), transparent 42%),
    var(--white);
}

.messages article {
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(18, 24, 21, 0.045);
}

.messages strong {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.messages p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.messages p + p {
  margin-top: 8px;
}

.messages ul {
  margin: 9px 0 0;
  padding-left: 18px;
  color: inherit;
  font-size: 14px;
  line-height: 1.55;
}

.message-note {
  display: block;
  margin-top: 10px;
  border-top: 1px solid rgba(15, 61, 46, 0.12);
  padding-top: 9px;
  color: var(--graphite-500);
  font-size: 12px;
  font-weight: 800;
}

.agent-message,
.next-action {
  border: 1px solid rgba(15, 61, 46, 0.16);
  background: var(--mint-soft);
  color: var(--green);
}

.user-message {
  border: 1px solid var(--graphite-100);
  background: var(--graphite-25);
  color: var(--graphite-700);
}

.chat-input {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--graphite-100);
  padding: 12px;
  background: var(--graphite-25);
}

.chat-input input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--graphite-100);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--white);
  color: var(--graphite-900);
  outline: 0;
}

.chat-input input::placeholder {
  color: var(--graphite-300);
}

.chat-input input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 61, 46, 0.08);
}

.chat-input button {
  width: 48px;
  padding: 0;
}

.module-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  min-height: 46px;
  border: 1px solid var(--graphite-100);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--graphite-700);
  font-weight: 850;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.tab:hover,
.tab.active {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
  transform: translateY(-1px);
}

.module {
  display: none;
}

.module.active {
  display: block;
}

.module-header {
  border-bottom: 1px solid var(--graphite-100);
  padding: 22px;
  background:
    linear-gradient(120deg, rgba(220, 235, 225, 0.48), transparent 44%),
    var(--white);
}

.module-header p:last-child {
  max-width: 840px;
  margin: 10px 0 0;
  color: var(--graphite-500);
  line-height: 1.6;
}

.insight-grid,
.actor-grid,
.roadmap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px;
}

.insight,
.actor-grid article,
.roadmap article,
.document-preview,
.case-fields section {
  border: 1px solid var(--graphite-100);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(18, 24, 21, 0.045);
}

.insight {
  position: relative;
  overflow: hidden;
}

.insight::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
}

.insight.green { background: rgba(238, 246, 241, 0.95); }
.insight.blue { background: #f1f7f9; }
.insight.amber { background: #fbf7eb; }
.insight.rose { background: #fbf0ef; }
.insight.green::before { background: var(--green); }
.insight.blue::before { background: var(--blue); }
.insight.amber::before { background: var(--gold); }
.insight.rose::before { background: var(--rose); }

.insight h4,
.actor-grid h4,
.roadmap h4 {
  margin: 0;
  color: var(--graphite-900);
  font-size: 17px;
}

.insight ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--graphite-700);
  line-height: 1.65;
}

.actor-grid article,
.roadmap article {
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.actor-grid article:hover,
.roadmap article:hover {
  border-color: rgba(15, 61, 46, 0.24);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.actor-grid span,
.roadmap span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--mint-soft);
  padding: 5px 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.actor-grid p,
.roadmap p {
  margin: 10px 0;
  color: var(--graphite-500);
  line-height: 1.55;
}

.actor-grid small {
  display: inline-block;
  border-radius: 999px;
  background: var(--graphite-50);
  padding: 7px 10px;
  color: var(--graphite-700);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  padding: 20px;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--graphite-100);
  border-radius: 8px;
  background: var(--white);
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid var(--graphite-100);
  padding: 14px;
  text-align: left;
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--graphite-50);
  color: var(--graphite-700);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

td {
  color: var(--graphite-700);
}

td:first-child {
  color: var(--graphite-900);
  font-weight: 800;
}

.priority {
  display: inline-block;
  border: 1px solid var(--graphite-100);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--graphite-50);
  color: var(--graphite-700);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.priority.high {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.roadmap {
  counter-reset: phase;
}

.roadmap article {
  position: relative;
  padding-left: 54px;
}

.roadmap article::before {
  counter-increment: phase;
  content: counter(phase);
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.roadmap strong {
  display: block;
  border-radius: 8px;
  margin-top: 14px;
  padding: 10px;
  background: var(--mint-soft);
  color: var(--green);
  font-size: 14px;
}

.documents-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
}

.doc-actions {
  display: grid;
  gap: 10px;
  align-content: start;
}

.doc-actions button {
  border: 1px solid var(--graphite-100);
  background: var(--white);
  color: var(--graphite-700);
  text-align: left;
}

.doc-actions button span {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.doc-actions button:hover,
.doc-actions button.active {
  border-color: rgba(15, 61, 46, 0.24);
  background: var(--mint-soft);
  color: var(--green);
}

.document-stack {
  display: grid;
  gap: 16px;
}

.document-preview {
  position: relative;
  overflow: hidden;
}

.document-preview::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--lime), var(--gold));
}

.document-preview h4 {
  margin: 10px 0;
  font-size: 28px;
  line-height: 1.15;
}

.document-preview p:not(.kicker) {
  color: var(--graphite-500);
  line-height: 1.6;
}

.doc-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.doc-sections span {
  border-radius: 8px;
  background: var(--graphite-50);
  padding: 14px;
  color: var(--graphite-800);
  font-weight: 800;
}

.doc-sections article {
  border: 1px solid var(--graphite-100);
  border-radius: 8px;
  background: var(--graphite-50);
  padding: 14px;
}

.doc-sections h5 {
  margin: 0 0 8px;
  color: var(--graphite-900);
  font-size: 14px;
}

.doc-sections p,
.doc-sections ul {
  margin: 0;
  color: var(--graphite-700);
  font-size: 13px;
  line-height: 1.55;
}

.doc-sections ul {
  padding-left: 18px;
}

.pdf-panel {
  border: 1px solid var(--graphite-100);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(18, 24, 21, 0.045);
}

.pdf-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--graphite-100);
  padding: 14px 16px;
  background: var(--graphite-25);
}

.pdf-panel-header h4 {
  margin: 4px 0 0;
  color: var(--graphite-900);
  font-size: 18px;
}

.pdf-panel-header a {
  flex: 0 0 auto;
  border: 1px solid rgba(15, 61, 46, 0.2);
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--white);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.pdf-panel iframe {
  display: block;
  width: 100%;
  min-height: 560px;
  border: 0;
  background: var(--graphite-50);
}

.case-panel {
  max-height: calc(100vh - 274px);
}

.case-fields {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 355px);
  overflow: auto;
  padding: 16px;
  background: var(--white);
}

.case-fields h4 {
  margin: 0 0 12px;
  font-size: 15px;
}

.case-fields article {
  border: 1px solid transparent;
  border-radius: 8px;
  margin-top: 10px;
  padding: 12px;
  background: var(--graphite-25);
}

.case-fields article:has(.status.critical) {
  border-color: rgba(179, 91, 91, 0.18);
  background: #fbf0ef;
}

.case-fields article p {
  margin: 8px 0 0;
  color: var(--graphite-700);
  font-size: 14px;
  line-height: 1.55;
}

.status {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status.ok {
  border-color: #b7dfc8;
  background: #eefaf3;
  color: #16633e;
}

.status.inferred {
  border-color: #b9d9e9;
  background: #eef7fb;
  color: #21627c;
}

.status.pending {
  border-color: #f1d189;
  background: #fff8e7;
  color: #8a5c00;
}

.status.critical {
  border-color: #f4b5b5;
  background: #fff1f1;
  color: #9b2d2d;
}

@media (max-width: 1240px) {
  .dashboard {
    background:
      linear-gradient(180deg, rgba(9, 40, 31, 0.9), rgba(9, 40, 31, 0.46) 48%, rgba(9, 40, 31, 0.92)),
      linear-gradient(90deg, rgba(9, 40, 31, 0.96), rgba(9, 40, 31, 0.24)),
      url("./src/assets/uroboro-hero-bg.png"),
      var(--green-900);
    background-position: center right;
    background-size: cover;
  }

  .hero,
  .case-showcase,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .case-status {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .workflow-strip {
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    overflow-x: auto;
  }

  .chat,
  .module-panel,
  .case-panel {
    min-height: auto;
  }

  .messages,
  .case-fields {
    max-height: none;
    height: auto;
  }

  .case-panel {
    max-height: none;
  }
}

@media (max-width: 760px) {
  .hero {
    width: calc(100% - 24px);
    gap: 28px;
  }

  .case-showcase {
    width: calc(100% - 24px);
    padding-bottom: 44px;
  }

  .showcase-copy {
    padding: 22px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-actions,
  .topbar,
  .case-header {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-meta,
  .local-badge,
  .signal-badge {
    justify-content: flex-start;
  }

  .module-tabs,
  .insight-grid,
  .actor-grid,
  .roadmap,
  .documents-grid,
  .doc-sections,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .module-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .tab {
    min-width: 150px;
  }

  .workspace-grid,
  .case-header,
  .workflow-strip {
    width: calc(100% - 20px);
  }

  .document-preview h4 {
    font-size: 24px;
  }
}
