:root {
  --bg: #05070b;
  --bg-soft: #0a0e15;
  --panel: rgba(12, 17, 27, 0.92);
  --panel-alt: rgba(15, 21, 33, 0.88);
  --line: rgba(214, 173, 94, 0.14);
  --line-strong: rgba(214, 173, 94, 0.32);
  --text: #e7e0d1;
  --muted: #8e93a1;
  --gold: #d8a95b;
  --gold-2: #f0c979;
  --green: #70d18c;
  --purple: #8c6ef0;
  --blue: #6c86ff;
  --orange: #c78549;
  --danger: #df7c67;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
  --title-font: Georgia, "Times New Roman", serif;
  --body-font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at top, rgba(66, 39, 12, 0.32), transparent 28%),
    radial-gradient(circle at bottom right, rgba(34, 48, 82, 0.2), transparent 22%),
    linear-gradient(180deg, #070a10 0%, #04060a 100%);
}

button {
  font: inherit;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app {
  min-height: 100vh;
  padding: 20px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.card,
.panel-card,
.table-card,
.topbar,
.sidebar,
.profile-card,
.inner-card,
.block-card {
  background: linear-gradient(180deg, rgba(16, 21, 31, 0.96), rgba(10, 14, 22, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 40px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: 24px;
  padding: 22px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(31, 22, 12, 0.95), rgba(10, 11, 16, 0.95));
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  fill: var(--gold);
}

.brand-title,
.brand-subtitle,
.sidebar-caption,
.stat-card span,
.field span,
.table-card th,
.audit-head span,
.history-head span,
.info-grid dt {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-title {
  margin: 0;
  font-family: var(--title-font);
  font-size: 1.8rem;
  color: var(--gold-2);
}

.brand-subtitle {
  margin: 0;
  color: #d9d3c2;
  font-size: 0.8rem;
}

.sidebar-nav,
.sidebar-section,
.stack-actions,
.participant-list,
.info-stack {
  display: grid;
  gap: 8px;
}

.sidebar-caption {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

.nav-button,
.action-button,
.tab-button,
.icon-button,
.profile-chip,
.outline-button,
.back-button,
.link-button,
.primary-wide {
  border: 0;
  cursor: pointer;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  color: #c9cfdb;
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.nav-button:hover,
.nav-button.is-active {
  color: #f2d6a2;
  background: linear-gradient(180deg, rgba(81, 60, 30, 0.42), rgba(38, 31, 18, 0.42));
}

.badge-count {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(188, 54, 54, 0.88);
  color: #fff;
  font-size: 0.75rem;
}

.profile-card {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
}

.profile-copy {
  display: grid;
  gap: 4px;
}

.profile-copy strong {
  font-size: 1rem;
}

.profile-copy span {
  color: var(--gold);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  border-radius: 22px;
  padding: 14px 18px;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, 100%);
  padding: 13px 16px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #7f8796;
  background: rgba(7, 10, 16, 0.7);
}

.search-pill svg,
.topbar-actions svg,
.profile-chip svg,
.icon-button svg,
.header-button svg,
.back-button svg,
.outline-button svg,
.primary-wide svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

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

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #b9c0cc;
  background: rgba(255, 255, 255, 0.03);
}

.icon-button.subtle {
  background: transparent;
}

.icon-button.framed {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.badge-count.floating {
  position: absolute;
  top: -3px;
  right: -2px;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  color: #d7cdb9;
  background: rgba(255, 255, 255, 0.04);
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
  color: #0a0d12;
  text-shadow: none;
}

.avatar.small {
  width: 34px;
  height: 34px;
  font-size: 0.86rem;
}

.judge-avatar {
  background: radial-gradient(circle at 28% 28%, #f6ddb0, #8c5d2f 60%, #3e2815 100%);
}

.witness-avatar {
  background: radial-gradient(circle at 28% 28%, #eadfc0, #6c8a55 60%, #23321d 100%);
}

.accused-avatar {
  background: radial-gradient(circle at 28% 28%, #eadfc0, #6b4a46 60%, #241514 100%);
}

.hero {
  padding: 4px 4px 0;
}

.hero h1,
.detail-header h1,
.split-header h1 {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(2rem, 2vw, 2.5rem);
  text-transform: uppercase;
  color: #efe8d7;
}

.hero p,
.detail-header p,
.split-note,
.field small,
.upload-drop small {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.stat-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2.6rem;
  color: var(--gold-2);
}

.stat-card small {
  display: block;
  margin-top: 6px;
  color: #8b90a1;
}

.stat-icon {
  display: grid;
  place-items: center;
  align-self: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.stat-icon svg {
  width: 30px;
  height: 30px;
}

.stat-icon.gold,
.stat-icon.amber {
  color: var(--gold);
  background: rgba(216, 169, 91, 0.08);
}

.stat-icon.blue {
  color: var(--blue);
  background: rgba(108, 134, 255, 0.09);
}

.stat-icon.green {
  color: var(--green);
  background: rgba(112, 209, 140, 0.09);
}

.stat-icon svg {
  fill: currentColor;
}

.accent-blue {
  color: #88a1ff !important;
}

.accent-green {
  color: #8bdd9c !important;
}

.table-card {
  border-radius: 22px;
  padding: 18px;
}

.section-heading h2,
.block-card h2,
.inner-card h2,
.upload-box h2 {
  margin: 0;
  font-family: var(--title-font);
  font-size: 1.35rem;
  text-transform: uppercase;
  color: #f2ebd8;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

thead th {
  color: #7f8696;
  font-size: 0.76rem;
}

tbody td {
  color: #d0d5df;
}

.case-code {
  color: var(--gold-2);
  font-weight: 700;
}

.status-badge,
.live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  color: #fff;
}

.status-badge.purple {
  background: rgba(140, 110, 240, 0.72);
}

.status-badge.blue {
  background: rgba(71, 112, 223, 0.75);
}

.status-badge.gold {
  background: rgba(180, 145, 49, 0.75);
}

.status-badge.orange {
  background: rgba(183, 121, 71, 0.75);
}

.status-badge.green {
  background: rgba(78, 138, 96, 0.75);
}

.table-footer {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.outline-button,
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  color: #e5c88f;
  background: rgba(35, 27, 15, 0.35);
}

.outline-button.small-button {
  min-width: 92px;
  padding-inline: 14px;
}

.back-button {
  width: 42px;
  height: 42px;
  padding: 0;
  color: #d8d0c0;
  background: rgba(255, 255, 255, 0.04);
}

.detail-shell,
.split-shell {
  display: grid;
  gap: 18px;
  max-width: 1560px;
  margin: 0 auto;
}

.detail-header,
.split-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.header-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-header {
  margin-bottom: 18px;
}

.detail-header p,
.split-header p {
  font-size: 1rem;
}

.status-link {
  color: #9f8fff;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 18px;
}

.left-column,
.right-column {
  display: grid;
  gap: 18px;
}

.block-card,
.assigned-card,
.panel-card {
  border-radius: 22px;
  padding: 18px;
}

.progress-list,
.timeline-list,
.document-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.progress-list li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 10px;
  color: #a3aaB7;
}

.step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
}

.progress-list .done .step-dot {
  border-color: rgba(112, 209, 140, 0.5);
  background: radial-gradient(circle, #b8f0c8 0 35%, #4d9e66 36% 100%);
}

.progress-list .current {
  color: #ded7ff;
}

.progress-list .current .step-dot {
  border-color: rgba(140, 110, 240, 0.55);
  background: radial-gradient(circle, #f0d6ff 0 35%, #8c6ef0 36% 100%);
}

.progress-list small {
  color: var(--muted);
}

.assigned-user,
.participant-item,
.chat-message,
.hearing-meta,
.choice-row {
  display: flex;
  align-items: center;
}

.assigned-user,
.participant-item {
  gap: 12px;
}

.assigned-user small,
.participant-item span,
.chat-message header span,
.hearing-topline small,
.audit-row span:last-child,
.history-row span:last-child {
  color: var(--muted);
}

.assigned-user > div,
.participant-item > div {
  display: grid;
  gap: 4px;
}

.tab-shell {
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 16px 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tabs.compact {
  padding-inline: 0;
}

.tab-button {
  position: relative;
  padding: 12px 16px 14px;
  color: #a0a6b6;
  background: transparent;
}

.tab-button::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

.tab-button.is-active {
  color: #f0dfbf;
}

.tab-button.is-active::after {
  background: linear-gradient(90deg, var(--gold), #f3d9a2);
}

.tab-panel {
  display: none;
  padding: 16px;
}

.tab-panel.is-active {
  display: block;
}

.content-grid {
  display: grid;
  gap: 16px;
}

.content-grid.two {
  grid-template-columns: 1.2fr 1fr;
}

.content-grid.three.metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.inner-card {
  border-radius: 18px;
  padding: 18px;
}

.info-grid {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.info-grid div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px;
}

.info-grid dt,
.info-grid dd {
  margin: 0;
}

.danger-text {
  color: var(--danger);
}

.body-copy,
.timeline-list p,
.chat-message p,
.audit-row span,
.history-row span,
.document-list span,
.upload-card strong,
.upload-card small {
  line-height: 1.5;
}

.timeline-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.timeline-list li {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding-left: 18px;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c7cbe0;
  box-shadow: 0 0 0 4px rgba(199, 203, 224, 0.15);
}

.timeline-list span {
  color: #92d49f;
  font-size: 0.92rem;
}

.link-button {
  margin-top: 12px;
  padding: 0;
  color: #d0d7e7;
  background: transparent;
}

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

.evidence-card,
.upload-card,
.metric-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.evidence-card strong,
.document-list li,
.metric-card strong {
  display: block;
}

.evidence-card span,
.metric-card span,
.info-stack span {
  color: var(--muted);
}

.evidence-thumb {
  position: relative;
  height: 120px;
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.3)),
    linear-gradient(180deg, #2f3744, #171d28);
}

.evidence-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 8px);
}

.evidence-thumb.log {
  background:
    linear-gradient(135deg, rgba(220, 145, 88, 0.2), rgba(12, 17, 27, 0.1)),
    linear-gradient(180deg, #393325, #181411);
}

.evidence-thumb.receipt {
  background:
    linear-gradient(135deg, rgba(198, 154, 94, 0.25), rgba(13, 16, 23, 0.15)),
    linear-gradient(180deg, #544333, #1d1712);
}

.evidence-thumb.video::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.audience-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.metric-card {
  display: grid;
  gap: 8px;
  text-align: center;
}

.metric-card strong {
  font-size: 1.7rem;
  color: var(--gold-2);
}

.document-list {
  display: grid;
  gap: 12px;
}

.document-list li,
.history-row,
.audit-row {
  display: grid;
  align-items: center;
  gap: 12px;
}

.document-list li {
  grid-template-columns: 18px 1fr auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.document-list svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
}

.history-table,
.audit-table {
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  overflow: hidden;
}

.history-row {
  grid-template-columns: 1.3fr 0.8fr 1fr 1.5fr;
}

.audit-row {
  grid-template-columns: 1.35fr 0.9fr 1fr 1.4fr 0.8fr;
}

.history-row,
.audit-row {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.history-head,
.audit-head {
  background: rgba(255, 255, 255, 0.03);
}

.action-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  color: #dbc6a0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.action-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.action-button.primary,
.primary-wide {
  color: #24170a;
  background: linear-gradient(180deg, #f0c979, #cc9b47);
}

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

.panel-card {
  position: relative;
  min-height: 760px;
}

.panel-focus {
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.panel-focus.is-focused {
  border-color: rgba(240, 201, 121, 0.38);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(240, 201, 121, 0.14);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.mock-input,
.mock-textarea,
.composer-input,
.upload-drop {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.mock-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  color: #d4d9e4;
}

.mock-input.with-icon svg {
  width: 14px;
  height: 14px;
  fill: var(--muted);
}

.mock-textarea {
  min-height: 112px;
  padding: 14px;
  color: #d4d9e4;
  line-height: 1.55;
}

.mock-textarea.compact {
  min-height: 88px;
}

.upload-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.upload-drop {
  display: grid;
  place-items: center;
  min-height: 130px;
  margin-top: 14px;
  padding: 16px;
  border-style: dashed;
  text-align: center;
}

.upload-drop p,
.split-note {
  margin: 0;
}

.upload-drop span {
  color: #8eb5ff;
}

.upload-grid {
  margin-top: 14px;
}

.upload-card {
  position: relative;
}

.remove-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(176, 39, 39, 0.9);
  cursor: pointer;
}

.primary-wide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  border-radius: 14px;
}

.hearing-topline,
.chat-message header,
.chat-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hearing-topline {
  margin-top: 16px;
}

.live-pill {
  padding: 6px 10px;
  background: rgba(177, 55, 55, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chat-stream {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.chat-message {
  align-items: flex-start;
  gap: 12px;
}

.chat-message header {
  gap: 12px;
  justify-content: flex-start;
}

.chat-message strong {
  color: #f0d39d;
}

.chat-attachment {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: #bcc4d3;
  background: rgba(255, 255, 255, 0.02);
}

.chat-composer {
  gap: 12px;
  margin-top: 22px;
}

.composer-input {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  color: #7d8596;
}

.split-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  text-align: center;
}

.roomy {
  margin-top: 18px;
  gap: 16px;
}

.info-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.info-stack div {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.info-stack strong {
  display: block;
  margin-top: 6px;
}

.choice-row {
  gap: 18px;
}

.choice-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c6cddb;
}

.choice-pill.selected {
  color: #f0d39d;
}

.choice-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.choice-pill.selected .choice-dot {
  border-color: rgba(240, 201, 121, 0.55);
  background: radial-gradient(circle, #f0c979 0 35%, #5a4221 36% 100%);
}

@media (max-width: 1200px) {
  .detail-layout,
  .split-shell,
  .stats-grid,
  .content-grid.two {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }

  .detail-header,
  .split-header,
  .audience-summary,
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .split-note {
    position: static;
    margin-top: 22px;
  }

  .panel-card {
    min-height: auto;
  }
}

@media (max-width: 1080px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }
}

@media (max-width: 900px) {
  .app {
    padding: 12px;
  }

  .stats-grid,
  .form-grid,
  .evidence-grid,
  .upload-grid,
  .content-grid.three.metrics,
  .info-stack {
    grid-template-columns: 1fr;
  }

  .history-row,
  .audit-row {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding-inline: 8px;
  }

  .hero h1,
  .detail-header h1,
  .split-header h1 {
    font-size: 1.6rem;
  }
}
