:root {
  --bg: #f7f9fc;
  --bg-soft: #eef3f8;
  --surface: #ffffff;
  --surface-raised: #fbfdff;
  --ink: #111827;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #dbe4ef;
  --line-strong: #c7d3e2;
  --accent: #176b51;
  --accent-2: #1d4ed8;
  --danger: #b42318;
  --warning: #9a6500;
  --shadow: 0 20px 45px rgba(15, 23, 42, .08);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, .06);
  --radius: 8px;
  --sidebar: 276px;
  --operator: 316px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(235, 242, 250, .74) 0, rgba(247, 249, 252, .92) 360px),
    linear-gradient(110deg, rgba(23, 107, 81, .08), transparent 38%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
  letter-spacing: 0;
}

a { color: var(--accent-2); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: none; color: #153ea6; }
button, .button-link {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: 7px;
  padding: 10px 13px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
button:hover, .button-link:hover {
  transform: translateY(-1px);
  border-color: #9fb1c8;
  box-shadow: var(--shadow-soft);
}
.primary, .approve {
  background: linear-gradient(180deg, #218060, var(--accent));
  color: white;
  border-color: rgba(23, 107, 81, .92);
  box-shadow: 0 12px 24px rgba(23, 107, 81, .18);
}
.secondary {
  background: #eef5ff;
  color: #183b8f;
  border-color: #c8d9f5;
}
.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  box-shadow: none;
}
.reject { background: #fff4f2; color: var(--danger); border-color: #ffd1cb; }

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr) var(--operator);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  background: rgba(255, 255, 255, .82);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #102033, #1d4ed8);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(29, 78, 216, .22);
}
.brand strong { display: block; font-size: 17px; line-height: 1.1; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 800; }
.side-nav { display: grid; gap: 7px; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 8px;
  color: #475569;
  font-size: 14px;
}
.side-nav a:hover, .side-nav a.active {
  background: #edf4ff;
  color: #183b8f;
}
.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}
.side-nav a.active .nav-icon { color: white; background: var(--accent-2); border-color: var(--accent-2); }
.mobile-bottom-nav, .mobile-action-bar, .mobile-lead-list { display: none; }
.sidebar-note {
  margin-top: auto;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #bfe4d3;
  background: #eefbf5;
  color: #23624d;
  font-size: 12px;
  font-weight: 800;
}
.note-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
  margin-right: 7px;
  box-shadow: 0 0 0 4px rgba(23, 107, 81, .12);
}
.main-shell { min-width: 0; }
.app-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(219, 228, 239, .72);
  background: rgba(247, 249, 252, .72);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.app-header strong { display: block; font-size: 15px; }
.app-header form { margin: 0; flex: 0 0 auto; }
.app-header .ghost { min-width: 76px; white-space: nowrap; }
.top-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.top-status-bar span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  border: 1px solid #c6ead9;
  border-radius: 999px;
  background: #eefbf5;
  color: #176b51;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}
.eyebrow, .panel-kicker {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 900;
}
.page { max-width: 1240px; margin: 0 auto; padding: 34px 28px 64px; }

.operator-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 88px 18px 22px 0;
  align-self: start;
}
.operator-card {
  min-height: calc(100vh - 110px);
  border: 1px solid rgba(199, 211, 226, .86);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(238,245,255,.92)),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  align-content: space-between;
}
.operator-stage {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: end center;
  padding-top: 42px;
  background:
    linear-gradient(180deg, rgba(16,32,51,.94), rgba(29,78,216,.72)),
    #102033;
}
.operator-stage::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 28px;
  height: 1px;
  background: rgba(255,255,255,.38);
}
.operator-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 180px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  filter: blur(10px);
}
.operator-figure {
  position: relative;
  width: 124px;
  height: 250px;
  animation: operator-idle 3.8s ease-in-out infinite;
  z-index: 1;
}
.operator-head {
  position: absolute;
  top: 8px;
  left: 41px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f7cfa8, #b97952);
  border: 3px solid rgba(255,255,255,.16);
}
.operator-head::after {
  content: "";
  position: absolute;
  left: -7px;
  right: -7px;
  top: 11px;
  height: 8px;
  border-radius: 999px;
  background: #0b1220;
}
.operator-body {
  position: absolute;
  top: 55px;
  left: 22px;
  width: 80px;
  height: 128px;
  border-radius: 28px 28px 14px 14px;
  background: linear-gradient(160deg, #16263e, #1f7a5a);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.operator-body::before {
  content: "B";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: rgba(255,255,255,.14);
  font-weight: 950;
}
.operator-body::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -58px;
  height: 68px;
  border-left: 18px solid #111827;
  border-right: 18px solid #111827;
}
.operator-tablet {
  position: absolute;
  top: 88px;
  right: -4px;
  width: 54px;
  height: 74px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc, #c8d9f5);
  border: 3px solid #0f172a;
  transform: rotate(-8deg);
  box-shadow: 0 12px 24px rgba(0,0,0,.24);
}
.operator-copy {
  padding: 20px;
}
.operator-copy h2 {
  margin: 4px 0 12px;
  font-size: 24px;
  line-height: 1.05;
}
.operator-copy p {
  margin: 8px 0 0;
  padding: 9px 10px;
  border: 1px solid #d5e3fb;
  border-radius: 8px;
  background: #f3f7ff;
  color: #183b8f;
  font-size: 13px;
  font-weight: 900;
}
@keyframes operator-idle {
  0%, 100% { transform: translateY(0) rotate(-.5deg); }
  50% { transform: translateY(-8px) rotate(.6deg); }
}

.hero-row, .lead-header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}
.command-hero {
  padding: 24px;
  border: 1px solid rgba(199, 211, 226, .82);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(237,244,255,.88)),
    var(--surface);
  box-shadow: var(--shadow);
}
.hero-row > div:first-child, .lead-header > div:first-child {
  flex: 1;
  min-width: 0;
}
.hero-row h1, .lead-header h1 {
  margin: 0 0 10px;
  max-width: 780px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
  letter-spacing: 0;
}
.hero-row p, .lead-header p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 760px;
}
.compact h1 { font-size: clamp(32px, 4vw, 44px); }
.hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero-actions form { margin: 0; }
.safety-box, .panel, .stat, .mini-card {
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.safety-box {
  padding: 18px;
  min-width: 286px;
  max-width: 340px;
  display: grid;
  gap: 7px;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(244, 250, 247, .94)),
    var(--surface);
}
.safety-box strong { color: var(--ink); font-size: 20px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.workflow-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 18px;
  padding: 0;
}
.workflow-step {
  position: relative;
  min-height: 112px;
  padding: 18px;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 8px;
  align-content: center;
}
.workflow-step:last-child { border-right: 0; }
.workflow-step span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #102033;
  color: white;
  font-size: 12px;
  font-weight: 950;
}
.workflow-step strong {
  font-size: 13px;
  line-height: 1.2;
}
.workflow-step em {
  color: var(--accent);
  font-style: normal;
  font-weight: 950;
  font-size: 22px;
}
.stat {
  padding: 18px;
  display: grid;
  gap: 8px;
  min-height: 116px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.stat:hover, .mini-card:hover { transform: translateY(-2px); box-shadow: 0 24px 46px rgba(15,23,42,.1); }
.stat span { color: var(--muted); text-transform: capitalize; font-size: 13px; font-weight: 900; }
.stat strong { font-size: 34px; line-height: 1; letter-spacing: 0; }

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.mini-card { padding: 18px; transition: transform .18s ease, box-shadow .18s ease; }
.mini-card h3 { margin: 10px 0 6px; font-size: 18px; }
.mini-card p, .panel-copy { margin: 0; color: var(--muted); font-size: 14px; }
.card-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #183b8f;
  background: #edf4ff;
  border: 1px solid #d5e3fb;
  font-weight: 900;
}

.content-grid, .detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 18px;
  margin-bottom: 18px;
}
.panel { padding: 20px; overflow: hidden; }
.banner-error { border-left: 4px solid #c0392b; background: #fdf0ee; color: #7c221a; margin-bottom: 16px; }
.banner-error p { margin: 0; }
.banner-info { border-left: 4px solid #1f7a5a; background: #eef8f3; color: #14523d; margin-bottom: 16px; }
.banner-info p { margin: 0; }
.status.email-deliverable_domain { background: #e5f6ec; color: #14623c; border-color: #bfe5cf; }
.status.email-undeliverable, .status.email-bad_format { background: #fdecec; color: #8c1f1f; border-color: #f0c4c4; }
.status.email-unverified, .status.email-no_email { background: #f4f1e4; color: #6b5d1f; border-color: #e3dcba; }
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.panel-heading h2 { margin: 2px 0 0; font-size: 22px; line-height: 1.1; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
}
th { color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
tbody tr { transition: background .16s ease; }
tbody tr:hover { background: #f7faff; }
tr:last-child td { border-bottom: 0; }
.row-link { white-space: nowrap; }

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: #194185;
  border: 1px solid #d5e3fb;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.quality-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .03em;
  border: 1px solid #d5e3fb;
  background: #eef4ff;
  color: #194185;
  white-space: nowrap;
}
.quality-badge.client-ready {
  border-color: #bfe5cf;
  background: #e5f6ec;
  color: #14623c;
}
.quality-badge.manual-review,
.quality-badge.not-reviewed {
  border-color: #e3dcba;
  background: #f8f4df;
  color: #6b5d1f;
}
.quality-badge.needs-rework {
  border-color: #ffd1cb;
  background: #fff4f2;
  color: #9f2a20;
}
.guardrail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}
.guardrail-list span {
  padding: 10px;
  border: 1px solid #c6ead9;
  border-radius: 8px;
  background: #eefbf5;
  color: #176b51;
  font-size: 12px;
  font-weight: 900;
}
.stack { display: grid; gap: 12px; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: #8bb4ee;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, .1);
}
textarea { resize: vertical; }
.meta-line, .action-row, .approval-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
}
.mobile-lead-card h3 { margin: 0 0 5px; font-size: 17px; line-height: 1.2; }
.mobile-lead-card p { margin: 0; color: var(--muted); font-size: 13px; }
.mobile-lead-meta {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.meta-line span:not(.status) {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.72);
  font-size: 13px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.facts { display: grid; grid-template-columns: 150px 1fr; gap: 9px 12px; }
.facts.two { grid-template-columns: 170px 1fr; }
.facts dt { color: var(--muted); font-weight: 900; }
.facts dd { margin: 0; }
.score-big {
  display: inline-flex;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eefbf5;
  color: #176b51;
  border: 1px solid #c6ead9;
  font-size: 26px;
  font-weight: 950;
  margin-bottom: 14px;
}
.screenshot {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f7;
  margin-top: 14px;
}
.fine, .muted-cell { color: var(--muted); font-size: 13px; }

.studio-grid, .approval-board {
  display: grid;
  gap: 16px;
}
.studio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.studio-card, .approval-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 18px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.studio-card:hover, .approval-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #b6c6db;
}
.studio-card.client-ready { border-color: #bfe5cf; }
.studio-card.needs-rework { border-color: #ffd1cb; }
.studio-card-head, .approval-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.studio-card h2, .approval-card h2 {
  margin: 3px 0 5px;
  font-size: 22px;
  line-height: 1.1;
}
.studio-card p, .approval-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.quality-meter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 8px;
  background: #f6f9fd;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.quality-meter span { color: var(--muted); font-weight: 900; font-size: 12px; }
.quality-meter strong { font-size: 24px; line-height: 1; }
.studio-facts {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 12px;
  margin: 0;
}
.studio-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.studio-facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.weak-link-box, .draft-preview {
  margin-top: 14px;
  padding: 13px;
  border: 1px solid #e3dcba;
  border-radius: 8px;
  background: #fffaf0;
}
.weak-link-box strong, .draft-preview strong { display: block; margin-bottom: 8px; }
.weak-link-box ul { margin: 0; padding-left: 18px; color: #5f4d16; }
.weak-link-box li { margin: 6px 0; }
.draft-preview p { margin: 0; overflow-wrap: anywhere; }
.card-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
}
.card-actions form { margin: 0; }
.approval-status-stack {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: flex-end;
  flex-wrap: wrap;
}
.alert { background: #fff3f1; border: 1px solid #ffd2cc; color: var(--danger); padding: 10px 12px; border-radius: 6px; margin-bottom: 12px; }
.back-link { display: inline-flex; margin-bottom: 10px; font-size: 13px; }

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(237,244,255,.78), rgba(247,249,252,.96)),
    var(--bg);
}
.login-panel {
  width: min(440px, 100%);
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 30px;
}
.login-panel h1 { margin: 0 0 8px; font-size: 34px; line-height: 1; }
.login-panel p { margin-top: 0; color: var(--muted); }

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .42s ease, transform .42s ease;
}
.can-animate .reveal {
  opacity: 1;
  transform: none;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 1fr; }
  .operator-panel {
    position: static;
    height: auto;
    padding: 0 16px 18px;
  }
  .operator-card {
    min-height: 0;
    grid-template-columns: 160px 1fr;
  }
  .operator-stage { min-height: 180px; }
  .operator-figure { transform: scale(.7); transform-origin: bottom center; animation: none; }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .side-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sidebar-note { margin-top: 0; }
  .content-grid, .detail-grid { grid-template-columns: 1fr; }
  .workflow-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workflow-step:nth-child(3) { border-right: 0; }
  .workflow-step:nth-child(n+4) { border-top: 1px solid var(--line); }
  .studio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .app-header { align-items: flex-start; flex-direction: column; padding: 14px 16px; gap: 12px; }
  .page { padding: 24px 16px 160px; }
  .hero-row, .lead-header, .toolbar { flex-direction: column; }
  .stat-grid, .workflow-grid { grid-template-columns: 1fr; }
  .workflow-rail { grid-template-columns: 1fr; }
  .workflow-step { border-right: 0; border-top: 1px solid var(--line); min-height: 82px; grid-template-columns: 34px 1fr auto; align-items: center; }
  .workflow-step:first-child { border-top: 0; }
  .workflow-step:nth-child(n+4) { border-top: 1px solid var(--line); }
  .side-nav { display: none; }
  .top-status-bar { justify-content: flex-start; margin-left: 0; }
  .top-status-bar span { font-size: 10px; }
  .operator-panel { padding: 0 16px 16px; }
  .operator-card {
    grid-template-columns: 96px 1fr;
    border-radius: 10px;
  }
  .operator-stage { min-height: 122px; padding-top: 10px; }
  .operator-stage::before, .operator-stage::after { display: none; }
  .operator-figure { width: 78px; height: 128px; transform: scale(.48); transform-origin: bottom center; }
  .operator-copy { padding: 13px; }
  .operator-copy h2 { font-size: 18px; }
  .operator-copy p { padding: 7px 8px; font-size: 11px; }
  .desktop-table { display: none; }
  table:not(.desktop-table) { display: block; overflow-x: auto; white-space: nowrap; }
  .facts, .facts.two { grid-template-columns: 1fr; }
  .safety-box { max-width: none; width: 100%; }
  .sidebar { gap: 18px; padding-bottom: 14px; }
  .sidebar-note { font-size: 11px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand strong { font-size: 15px; }
  .hero-row h1, .lead-header h1 { font-size: 34px; }
  .hero-row p, .lead-header p { font-size: 15px; }
  .action-row form, .action-row button, .approval-actions form, .approval-actions button, .hero-actions a, .hero-actions button {
    width: 100%;
  }
  .mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
    border: 1px solid rgba(199, 211, 226, .94);
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .18);
    backdrop-filter: blur(14px);
  }
  .mobile-bottom-nav a {
    display: grid;
    place-items: center;
    gap: 3px;
    min-height: 48px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
  }
  .mobile-bottom-nav a span {
    width: 22px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: #f1f6ff;
    color: #183b8f;
    font-size: 10px;
  }
  .mobile-bottom-nav a.active {
    background: #edf4ff;
    color: #183b8f;
  }
  .mobile-action-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 78px;
    z-index: 39;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 8px;
    border: 1px solid rgba(199, 211, 226, .94);
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .14);
    backdrop-filter: blur(14px);
  }
  .mobile-action {
    width: 100%;
    min-height: 42px;
    padding: 9px 8px;
    font-size: 12px;
    border-radius: 9px;
  }
  .mobile-lead-list {
    display: grid;
    gap: 12px;
  }
  .mobile-lead-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-raised);
    box-shadow: var(--shadow-soft);
  }
  .mobile-lead-card .button-link { width: 100%; }
  .command-hero { padding: 18px; }
  .guardrail-list { grid-template-columns: 1fr; }
  .studio-card-head, .approval-main { flex-direction: column; }
  .approval-status-stack { align-items: flex-start; justify-content: flex-start; }
  .studio-facts { grid-template-columns: 1fr; }
  .card-actions > *, .card-actions form, .card-actions button, .card-actions .button-link { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
