/*
 * Mid-AI / Vertus visual system
 *
 * The product remains a server-rendered vanilla-JS application. This file is
 * intentionally a theme layer so the existing workflow markup and API-backed
 * interactions remain stable while the interface moves to the new visual
 * language from premium_vertus_events.tsx.
 */
:root {
  --ink: #eef3f8;
  --ink-strong: #ffffff;
  --muted: #8d9aab;
  --muted-strong: #b8c3d0;
  --line: rgba(148, 163, 184, .17);
  --line-strong: rgba(245, 158, 11, .36);
  --paper: #070b12;
  --paper-raised: #0d1420;
  --panel: rgba(15, 23, 42, .72);
  --panel-strong: rgba(17, 26, 43, .92);
  --blue: #72a9ff;
  --blue-soft: rgba(62, 111, 196, .22);
  --green: #38d6b1;
  --green-soft: rgba(45, 212, 191, .13);
  --yellow: #f6bd55;
  --yellow-soft: rgba(245, 158, 11, .14);
  --red: #fb7185;
  --red-soft: rgba(244, 63, 94, .14);
  --black: #111827;
  --accent: #f59e0b;
  --accent-bright: #ffc45c;
  --teal: #2dd4bf;
  --shadow: 0 22px 60px rgba(0, 0, 0, .28);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, .2);
  --radius: 16px;
}

html {
  min-width: 320px;
  background: var(--paper);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(30, 64, 175, .17), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgba(245, 158, 11, .09), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
  letter-spacing: .005em;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .38;
  background-image: linear-gradient(rgba(148, 163, 184, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

* {
  scrollbar-color: rgba(245, 158, 11, .38) rgba(15, 23, 42, .55);
  scrollbar-width: thin;
}

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

button {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 15px;
  color: #15100a;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  box-shadow: 0 8px 24px rgba(245, 158, 11, .15);
  font-weight: 750;
  letter-spacing: .01em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, .24);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

button.secondary, .button-link.secondary {
  color: var(--muted-strong);
  background: rgba(15, 23, 42, .72);
  border-color: var(--line);
  box-shadow: none;
}

button.secondary:hover:not(:disabled), .button-link.secondary:hover {
  color: var(--ink-strong);
  border-color: rgba(245, 158, 11, .42);
  background: rgba(30, 41, 59, .92);
}

button.danger {
  color: #fff1f2;
  background: linear-gradient(135deg, #fb7185, #be123c);
  box-shadow: 0 8px 24px rgba(225, 29, 72, .16);
}

button.small, .button-link.small {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.button-link {
  display: inline-block;
  border: 1px solid rgba(245, 158, 11, .3);
  border-radius: 10px;
  padding: 10px 15px;
  color: #15100a;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  box-shadow: 0 8px 24px rgba(245, 158, 11, .14);
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.button-link:hover {
  color: #15100a;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, .22);
}

a {
  color: var(--accent-bright);
}

a:hover {
  color: #ffe0a3;
}

input, textarea, select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(2, 6, 23, .66);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .025);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input::placeholder, textarea::placeholder {
  color: #667386;
}

input:hover, textarea:hover, select:hover {
  border-color: rgba(148, 163, 184, .4);
}

input:focus, textarea:focus, select:focus {
  border-color: rgba(245, 158, 11, .62);
  background: rgba(2, 6, 23, .84);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .11);
  outline: 0;
}

input[type="checkbox"], input[type="radio"] {
  width: auto;
  accent-color: var(--accent);
}

label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) {
  display: flex;
  align-items: center;
  gap: 8px;
}

label:has(> input[type="checkbox"]) input, label:has(> input[type="radio"]) input {
  flex: 0 0 auto;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

code, pre, .metric, .review-json, .submission-panel code, .history-panel code {
  font-family: "SF Mono", "Roboto Mono", ui-monospace, Menlo, monospace;
}

code {
  color: #fbd38d;
}

::selection {
  color: #fff7e6;
  background: rgba(245, 158, 11, .34);
}

.loading, .login-card {
  position: relative;
  max-width: 480px;
  margin: 12vh auto;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 22px;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(22, 33, 51, .92), rgba(9, 14, 24, .9));
  box-shadow: var(--shadow);
}

.login-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--accent), var(--teal), transparent);
}

.login-card::after {
  position: absolute;
  top: -100px;
  right: -90px;
  width: 240px;
  height: 240px;
  content: "";
  border: 1px solid rgba(245, 158, 11, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(245, 158, 11, .035), 0 0 0 44px rgba(245, 158, 11, .025);
  pointer-events: none;
}

.login-card h1 {
  position: relative;
  margin: 0 0 8px;
  color: var(--ink-strong);
  font-size: 30px;
  letter-spacing: -.04em;
}

.login-card h1 span, .brand span, .review-brand span {
  color: var(--accent-bright);
}

.login-card .muted {
  position: relative;
  color: var(--muted-strong);
}

.login-card .footer-note {
  position: relative;
}

.shell, .inbox-app, .processing-app, .tracking-app, .review-app {
  min-height: 100vh;
  background: transparent;
}

.topbar, .review-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 74px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
  color: var(--ink);
  background: rgba(5, 10, 19, .78);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
  backdrop-filter: blur(20px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar .brand, .review-brand {
  color: var(--ink-strong);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.02em;
}

.topbar .identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.topbar .identity span {
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.layout {
  position: relative;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: calc(100vh - 74px);
}

.sidebar {
  position: sticky;
  top: 74px;
  align-self: start;
  height: calc(100vh - 74px);
  padding: 28px 14px;
  border-right: 1px solid rgba(148, 163, 184, .13);
  background: rgba(7, 12, 21, .52);
}

.sidebar::before {
  display: block;
  margin: 0 13px 18px;
  color: #667386;
  content: "WORKSPACE / CONTROL";
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .14em;
}

.nav {
  display: grid;
  gap: 5px;
}

.nav button {
  position: relative;
  width: 100%;
  padding: 11px 13px 11px 18px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  text-align: left;
  font-weight: 700;
}

.nav button::before {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
  transform: translateY(-50%);
}

.nav button:nth-child(1)::after { content: "01"; }
.nav button:nth-child(2)::after { content: "02"; }
.nav button:nth-child(3)::after { content: "03"; }
.nav button:nth-child(4)::after { content: "04"; }
.nav button:nth-child(5)::after { content: "05"; }
.nav button:nth-child(6)::after { content: "06"; }

.nav button::after {
  position: absolute;
  right: 13px;
  color: #536174;
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .06em;
}

.nav button.active, .nav button:hover {
  color: var(--accent-bright);
  border-color: rgba(245, 158, 11, .2);
  background: linear-gradient(90deg, rgba(245, 158, 11, .15), rgba(245, 158, 11, .035));
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav button.active::before {
  opacity: 1;
  background: var(--accent-bright);
  box-shadow: 0 0 10px rgba(245, 158, 11, .8);
}

.main, .inbox-main, .processing-main, .tracking-main {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 36px 42px 70px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 25px;
}

.page-head h1 {
  margin: 0 0 6px;
  color: var(--ink-strong);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.page-head h1::after {
  display: inline-block;
  width: 32px;
  height: 3px;
  margin: 0 0 7px 10px;
  content: "";
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(245, 158, 11, .55);
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 17px;
}

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

.card {
  position: relative;
  padding: 21px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: linear-gradient(145deg, rgba(20, 31, 49, .82), rgba(10, 16, 27, .76));
  box-shadow: var(--shadow-soft);
}

.card::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, .33), transparent);
  opacity: .8;
}

.card h2, .card h3 {
  color: var(--ink-strong);
  letter-spacing: -.015em;
}

.card h2 {
  font-size: 18px;
}

.card h3 {
  font-size: 15px;
}

.metric {
  color: var(--ink-strong);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -.055em;
}

.metric::first-letter {
  color: var(--accent-bright);
}

.metric-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section {
  margin-top: 22px;
}

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

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  color: var(--ink);
  background: rgba(7, 12, 21, .48);
  font-size: 13px;
}

th, td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, .11);
  text-align: left;
  vertical-align: top;
}

th {
  color: #8694a7;
  background: rgba(15, 23, 42, .76);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

tr:hover td {
  background: rgba(245, 158, 11, .035);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(51, 65, 85, .44);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge.green { color: #7cebd4; border-color: rgba(45, 212, 191, .32); background: var(--green-soft); }
.badge.yellow { color: #ffd889; border-color: rgba(245, 158, 11, .34); background: var(--yellow-soft); }
.badge.red { color: #fda4af; border-color: rgba(244, 63, 94, .34); background: var(--red-soft); }
.badge.black { color: #f8fafc; border-color: rgba(100, 116, 139, .38); background: #111827; }

.warning, .error, .success {
  border: 1px solid transparent;
  border-radius: 11px;
  box-shadow: none;
}

.warning {
  color: #ffda8a;
  border-color: rgba(245, 158, 11, .28);
  background: rgba(245, 158, 11, .1);
}

.error {
  color: #fecdd3;
  border-color: rgba(244, 63, 94, .3);
  background: rgba(159, 18, 57, .16);
}

.success {
  color: #a7f3d0;
  border-color: rgba(45, 212, 191, .28);
  background: rgba(13, 148, 136, .13);
}

.detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.sticky {
  position: sticky;
  top: 96px;
}

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

.list-item, .claim, .translation-card, .ai-material-choice, .ai-candidate {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(9, 15, 26, .58);
}

.list-item {
  padding: 12px;
}

.list-item:hover, .list-item.selected {
  border-color: rgba(245, 158, 11, .48);
  background: rgba(245, 158, 11, .09);
}

.claim {
  padding: 15px;
  margin: 11px 0;
}

.claim-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.claim-text {
  color: var(--ink-strong);
  font-weight: 750;
}

.evidence {
  border-left: 3px solid #70829a;
  padding: 9px 11px;
  margin-top: 9px;
  color: var(--muted-strong);
  background: rgba(51, 65, 85, .2);
  font-size: 13px;
}

.evidence.supports { border-color: var(--teal); background: rgba(13, 148, 136, .11); }
.evidence.refutes { border-color: var(--red); background: var(--red-soft); }

.submission-panel, .history-panel {
  max-width: 560px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted-strong);
  background: rgba(9, 15, 26, .66);
  font-size: 12px;
}

.history-panel {
  margin-top: 9px;
}

.history-panel summary, .inline-editor summary, .block-reference summary {
  color: var(--accent-bright);
  cursor: pointer;
  font-weight: 750;
}

.correction-fields, .revision-detail-fields, .inline-editor, .ai-policy-fields {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 15, 26, .52);
}

.ai-policy-fields {
  border-color: rgba(114, 169, 255, .28);
  background: rgba(30, 64, 175, .15);
}

.ai-policy-fields legend {
  color: var(--blue);
}

.ai-workbench {
  border-color: rgba(114, 169, 255, .38);
}

blockquote {
  border-left-color: var(--accent);
  color: var(--muted-strong);
  background: rgba(245, 158, 11, .07);
}

/* Public archive: the sample's immersive events-and-snapshots treatment. */
.public {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px 76px;
}

.public::before {
  display: block;
  margin: 0 0 22px;
  color: #718096;
  content: "MID-AI  /  PUBLIC EVENT ARCHIVE";
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .2em;
}

.public-header {
  position: relative;
  min-height: 270px;
  padding: 48px 50px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 24px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 26%, rgba(245, 158, 11, .26), transparent 17rem),
    radial-gradient(circle at 74% 115%, rgba(45, 212, 191, .14), transparent 21rem),
    linear-gradient(125deg, rgba(24, 37, 60, .96), rgba(7, 12, 21, .93) 72%);
  box-shadow: var(--shadow);
}

.public-header::before {
  position: absolute;
  top: -110px;
  right: -20px;
  width: 360px;
  height: 360px;
  content: "";
  border: 1px solid rgba(245, 158, 11, .24);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(245, 158, 11, .035), 0 0 0 68px rgba(245, 158, 11, .02);
  pointer-events: none;
}

.public-header::after {
  position: absolute;
  right: 42px;
  bottom: 34px;
  width: 92px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 -8px 0 rgba(245, 158, 11, .22), 0 8px 0 rgba(245, 158, 11, .12);
}

.public-header > * {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.public-header .muted {
  color: #aebbd0;
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.public-header h1 {
  margin: 13px 0 12px;
  color: var(--ink-strong);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -.065em;
}

.public-header h1::first-line {
  text-shadow: 0 8px 26px rgba(0, 0, 0, .25);
}

.public-header p {
  max-width: 720px;
  color: #c0ccdb;
  font-size: 16px;
}

.public-section {
  margin-top: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: linear-gradient(145deg, rgba(16, 25, 41, .76), rgba(8, 13, 23, .72));
  box-shadow: var(--shadow-soft);
}

.public-section h2 {
  margin: 0 0 15px;
  color: var(--ink-strong);
  font-size: 21px;
  letter-spacing: -.02em;
}

.public-filter-form {
  padding: 17px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 13px;
  background: rgba(2, 6, 23, .4);
}

.public-filter-form .form-grid label:first-child {
  grid-column: 1 / -1;
}

.public-filter-form .form-grid label:first-child input {
  border-radius: 999px;
  padding: 13px 18px;
}

.public-event-card {
  position: relative;
  display: block;
  min-height: 275px;
  padding: 0 24px 23px;
  overflow: hidden;
  border-color: rgba(148, 163, 184, .17);
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.public-event-card::before {
  display: block;
  height: 148px;
  margin: 0 -24px 21px;
  content: "";
  border-bottom: 1px solid rgba(245, 158, 11, .25);
  background:
    radial-gradient(circle at 72% 32%, rgba(245, 158, 11, .76), transparent 12%),
    linear-gradient(145deg, rgba(45, 212, 191, .42), rgba(29, 78, 216, .5) 44%, rgba(10, 15, 28, .96) 84%);
  filter: saturate(.9);
}

.public-event-card:nth-child(2n)::before {
  background:
    radial-gradient(circle at 24% 28%, rgba(45, 212, 191, .7), transparent 14%),
    linear-gradient(145deg, rgba(124, 58, 237, .52), rgba(8, 47, 73, .7) 54%, rgba(10, 15, 28, .98) 86%);
}

.public-event-card:nth-child(3n)::before {
  background:
    radial-gradient(circle at 78% 62%, rgba(251, 113, 133, .56), transparent 13%),
    linear-gradient(145deg, rgba(180, 83, 9, .56), rgba(30, 41, 59, .8) 54%, rgba(10, 15, 28, .98) 86%);
}

.public-event-card::after {
  position: absolute;
  top: 121px;
  right: 18px;
  content: "EVENT SNAPSHOT";
  color: rgba(255, 255, 255, .54);
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: .14em;
}

.public-event-card:hover {
  border-color: rgba(245, 158, 11, .48);
  background: linear-gradient(145deg, rgba(22, 34, 53, .9), rgba(9, 15, 26, .86));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .3), 0 0 0 1px rgba(245, 158, 11, .08);
  transform: translateY(-4px);
}

.public-event-card .actions {
  position: relative;
  z-index: 1;
  min-height: 24px;
  margin-top: -46px;
  margin-bottom: 21px;
}

.public-event-card h3 {
  margin: 0 0 10px;
  color: var(--ink-strong);
  font-size: 21px;
  line-height: 1.17;
  letter-spacing: -.025em;
}

.public-event-card:hover h3 {
  color: var(--accent-bright);
}

.public-event-card p {
  color: var(--muted-strong);
}

.public-event-card p:last-child {
  color: #738195;
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 11px;
}

.public-dates {
  color: #94a3b8 !important;
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 11px !important;
}

.fact, .statement, .analysis, .body-block {
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 10px;
  color: var(--muted-strong);
  background: rgba(51, 65, 85, .16);
}

.fact { border-left-color: var(--teal); background: rgba(13, 148, 136, .1); }
.statement { border-left-color: var(--yellow); background: rgba(245, 158, 11, .09); }
.analysis { border-left-color: var(--blue); background: rgba(37, 99, 235, .12); }
.body-block-dispute { border-left-color: var(--red); background: var(--red-soft); }
.body-block-analysis { border-left-color: var(--blue); background: rgba(37, 99, 235, .12); }

.body-block-label {
  color: var(--accent-bright);
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.block-reference {
  border-color: rgba(148, 163, 184, .18);
  background: rgba(2, 6, 23, .34);
}

.timeline-item {
  position: relative;
  margin-left: 9px;
  padding: 6px 0 17px 24px;
  border-left: 2px solid rgba(100, 116, 139, .64);
  color: var(--muted-strong);
}

.timeline-item::before {
  position: absolute;
  top: 7px;
  left: -7px;
  width: 11px;
  height: 11px;
  content: "";
  border: 3px solid var(--paper-raised);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 14px rgba(245, 158, 11, .55);
}

.timeline-item strong {
  display: inline-block;
  margin-bottom: 4px;
  color: #fbd38d;
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 11px;
}

.public-document-list {
  color: var(--muted-strong);
}

.public-document-list li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(148, 163, 184, .1);
}

.public-document-list li:last-child {
  border-bottom: 0;
}

.page-link {
  border-color: var(--line);
  color: var(--muted-strong);
  background: rgba(15, 23, 42, .66);
}

.page-link:hover, .page-link.active {
  color: #1b1204;
  border-color: var(--accent);
  background: var(--accent);
}

.withdrawn {
  border-color: rgba(244, 63, 94, .42);
  color: #fecdd3;
  background: rgba(159, 18, 57, .16);
}

.preview-banner {
  margin: -28px -24px 24px;
  color: #ffe1a8;
  border-bottom-color: rgba(245, 158, 11, .32);
  background: rgba(120, 53, 15, .7);
}

.footer-note {
  color: #718096;
  font-size: 11px;
}

/* Shared visual treatment for the secondary workbenches. */
.review-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 20px;
}

.review-identity {
  color: var(--muted);
}

.review-logout {
  color: var(--muted-strong);
  border-color: var(--line);
  background: rgba(15, 23, 42, .72);
}

.review-tabs {
  border-bottom-color: var(--line);
  background: rgba(5, 10, 19, .9);
}

.review-tab {
  color: var(--muted);
  border-radius: 0;
  background: rgba(15, 23, 42, .86);
  box-shadow: none;
}

.review-tab.active {
  color: var(--accent-bright);
  background: rgba(245, 158, 11, .12);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.review-count {
  color: #1b1204;
  background: var(--accent);
}

.review-main {
  max-width: 880px;
}

.review-panel, .review-card {
  border-color: var(--line);
  color: var(--ink);
  background: linear-gradient(145deg, rgba(20, 31, 49, .86), rgba(9, 15, 26, .82));
  box-shadow: var(--shadow-soft);
}

.review-panel h1, .review-panel h2, .review-card h2, .review-detail-head h1 {
  color: var(--ink-strong);
}

.review-task-card {
  border-color: var(--line);
  background: rgba(9, 15, 26, .55);
}

.review-task-card:hover {
  border-color: rgba(245, 158, 11, .48);
  background: rgba(245, 158, 11, .07);
}

.review-claim-preview {
  color: var(--muted-strong);
}

.review-notification {
  border-bottom-color: rgba(148, 163, 184, .13);
}

.review-notification.unread {
  border-left-color: var(--accent);
}

.review-disclaimer {
  color: #c7d2fe;
  border-left-color: var(--blue);
  background: rgba(37, 99, 235, .12);
}

.review-json {
  color: #c7d2fe;
  background: rgba(2, 6, 23, .7);
}

.review-evidence {
  border-left-color: #70829a;
  background: rgba(51, 65, 85, .2);
}

.review-evidence.supports { border-left-color: var(--teal); background: rgba(13, 148, 136, .11); }
.review-evidence.refutes { border-left-color: var(--red); background: var(--red-soft); }

.review-readonly {
  color: var(--muted-strong);
  background: rgba(51, 65, 85, .2);
}

.review-release {
  border-top-color: var(--line);
}

.review-release summary {
  color: var(--accent-bright);
}

.review-action-grid {
  background: rgba(5, 10, 19, .95);
  border-top-color: var(--line);
}

.inbox-tabs {
  border-bottom: 1px solid var(--line);
}

.inbox-tabs button {
  color: var(--muted-strong);
  border-color: var(--line);
  background: rgba(15, 23, 42, .66);
  box-shadow: none;
}

.inbox-tabs button:hover:not(.active) {
  color: var(--ink-strong);
  border-color: rgba(245, 158, 11, .34);
  background: rgba(245, 158, 11, .08);
}

.inbox-tabs button.active {
  color: #1b1204;
  background: var(--accent);
}

.inbox-capability {
  border-color: rgba(45, 212, 191, .22);
  background: rgba(13, 148, 136, .08);
}

.tracking-update {
  border-top-color: rgba(148, 163, 184, .13);
}

.tracking-evidence {
  border-left-color: var(--accent);
  background: rgba(245, 158, 11, .08);
}

.processing-settings {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 15, 26, .48);
}

.preview-banner + .public-header {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .sticky {
    position: static;
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 12px 15px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar::before {
    display: none;
  }

  .nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
  }

  .nav button {
    width: auto;
    min-width: max-content;
    padding-right: 13px;
  }

  .nav button::after {
    display: none;
  }
}

@media (max-width: 700px) {
  .topbar {
    min-height: 68px;
    padding: 10px 15px;
  }

  .topbar .brand, .review-brand {
    font-size: 17px;
  }

  .topbar .identity span {
    display: none;
  }

  .topbar .identity {
    gap: 5px;
  }

  .main, .inbox-main, .processing-main, .tracking-main {
    padding: 25px 15px 48px;
  }

  .page-head, .review-section-head, .review-detail-head {
    display: block;
  }

  .page-head > .actions, .page-head > button, .page-head > a {
    margin-top: 14px;
  }

  .grid.two, .form-grid {
    grid-template-columns: 1fr;
  }

  .public {
    padding: 18px 13px 48px;
  }

  .public::before {
    margin-left: 5px;
  }

  .public-header {
    min-height: 245px;
    padding: 32px 25px;
    border-radius: 18px;
  }

  .public-header h1 {
    font-size: 40px;
  }

  .public-header::before {
    right: -130px;
  }

  .public-section {
    padding: 18px;
    border-radius: 14px;
  }

  .public-filter-form .form-grid label:first-child {
    grid-column: auto;
  }

  .public-event-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .public-event-card::before {
    height: 126px;
    margin-right: -18px;
    margin-left: -18px;
  }

  .public-event-card .actions {
    margin-top: -39px;
  }

  .login-card {
    margin: 8vh 15px;
    padding: 27px 22px;
  }

  .review-action-grid {
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
}

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