:root {
  --ink: #15232d;
  --ink-soft: #354751;
  --muted: #65757e;
  --muted-light: #8b989f;
  --canvas: #f3f7f6;
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --line: #dce5e2;
  --line-strong: #c6d3cf;
  --navy: #0b1721;
  --navy-soft: #142630;
  --brand: #08735f;
  --brand-dark: #055846;
  --brand-soft: #dff4ed;
  --blue: #2563a8;
  --blue-soft: #e7f0fb;
  --violet: #6c4eb6;
  --violet-soft: #eee9fb;
  --danger: #b4232f;
  --danger-dark: #8f1722;
  --danger-soft: #fdebed;
  --warning: #9a5c00;
  --warning-soft: #fff3d6;
  --shadow-sm: 0 1px 2px rgb(14 29 37 / 5%), 0 5px 18px rgb(14 29 37 / 4%);
  --shadow-md: 0 18px 45px rgb(14 29 37 / 10%);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --sidebar-width: 248px;
  --topbar-height: 72px;
  --content-max: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Noto Sans KR", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

button,
select,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button,
summary {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
  margin-top: 0;
}

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

:focus-visible {
  outline: 3px solid #268bd2;
  outline-offset: 3px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: #268bd2;
  outline: 3px solid rgb(38 139 210 / 20%);
  outline-offset: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  min-height: 44px;
  padding: 11px 16px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

.positive,
.up {
  color: var(--brand-dark) !important;
}

.negative,
.down {
  color: var(--danger) !important;
}

/* Authentication */
.auth-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surface);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 480px);
  min-width: 0;
  margin-inline: auto;
  padding: max(28px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
}

.auth-brand,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.auth-brand {
  align-self: flex-start;
  margin-bottom: 48px;
}

.auth-brand > span:last-child,
.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.auth-brand strong,
.brand strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.auth-brand small,
.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-grid;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #16987d, #075a4a);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 6px 14px rgb(4 88 70 / 20%);
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.08em;
}

.brand-mark-large {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-radius: 13px;
  font-size: 22px;
}

.auth-heading {
  margin-bottom: 28px;
}

.auth-heading h1 {
  margin-bottom: 10px;
  font-size: clamp(27px, 8vw, 37px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.auth-heading > p:last-child {
  max-width: 39ch;
  margin-bottom: 0;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.field label,
.field-inline > label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
}

.field small {
  color: var(--muted);
  font-size: 12px;
}

.field input,
.field select,
.field textarea,
.filter-bar input,
.filter-bar select,
.compact-filter select {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  appearance: none;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder,
.filter-bar input::placeholder {
  color: #929fa5;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 68px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  min-width: 56px;
  min-height: 44px;
  padding: 9px;
  color: var(--brand-dark);
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  transform: translateY(-50%);
}

form.is-submitting {
  cursor: wait;
}

form.is-submitting .button {
  pointer-events: none;
  opacity: 0.68;
}

.auth-security {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.auth-security svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: var(--brand);
}

.auth-security p {
  margin-bottom: 0;
  font-size: 12px;
}

.auth-visual {
  display: none;
}

/* Shell and navigation */
.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  display: none;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  background: rgb(243 247 246 / 92%);
  border-bottom: 1px solid rgb(220 229 226 / 85%);
  backdrop-filter: blur(16px);
}

.topbar-title {
  min-width: 0;
}

.topbar-title .eyebrow {
  display: none;
}

.topbar-title h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.user-menu {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid #bfe4d8;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

.user-copy {
  display: none;
}

.user-menu form {
  margin: 0;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
}

.icon-button:hover {
  color: var(--ink);
  background: #e7eeec;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.main-content {
  width: min(100%, var(--content-max));
  min-width: 0;
  margin-inline: auto;
  padding: 16px 16px calc(92px + env(safe-area-inset-bottom));
}

.main-content > * + * {
  margin-top: 18px;
}

.bottom-nav {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: calc(64px + env(safe-area-inset-bottom));
  padding: 4px 8px env(safe-area-inset-bottom);
  background: rgb(255 255 255 / 96%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 25px rgb(14 29 37 / 7%);
  backdrop-filter: blur(18px);
}

.bottom-nav a {
  display: flex;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}

.bottom-nav a.is-active {
  color: var(--brand-dark);
  background: linear-gradient(to top, var(--brand-soft), transparent 88%);
}

.bottom-nav svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

/* Shared controls */
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.2;
  text-align: center;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease,
    transform 150ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button[disabled],
.button.is-submitting {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.button-primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 6px 18px rgb(8 115 95 / 16%);
}

.button-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.button-secondary {
  color: var(--ink-soft);
  background: var(--surface);
  border-color: var(--line-strong);
}

.button-secondary:hover {
  color: var(--brand-dark);
  border-color: #98b8ae;
  background: #f9fcfb;
}

.button-danger-soft {
  color: var(--danger-dark);
  background: var(--danger-soft);
  border-color: #f3c5ca;
}

.button-danger-soft:hover {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}

.button-small {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 12px;
}

.button-wide {
  width: 100%;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 5px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 780;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice {
  padding: 14px 15px;
  border: 1px solid;
  border-radius: var(--radius-sm);
}

.notice strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.notice p,
.notice ul {
  margin-bottom: 0;
  font-size: 13px;
}

.notice ul {
  padding-left: 19px;
}

.notice-danger {
  color: #791722;
  background: var(--danger-soft);
  border-color: #f4c2c8;
}

.notice-warning {
  color: #704300;
  background: var(--warning-soft);
  border-color: #edce8c;
}

.notice-info {
  color: #174a70;
  background: #eaf5fc;
  border-color: #bcdcf0;
}

.notice-success {
  color: #075b49;
  background: var(--brand-soft);
  border-color: #b9e1d5;
}

.status-pill,
.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.status-pill {
  min-height: 30px;
  padding: 5px 10px;
}

.badge {
  min-height: 26px;
  padding: 4px 9px;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 70%);
}

.status-healthy,
.badge-approved,
.badge-succeeded {
  color: #075b49;
  background: var(--brand-soft);
  border-color: #b9e1d5;
}

.status-warning,
.badge-warning,
.badge-partial {
  color: #7a4900;
  background: var(--warning-soft);
  border-color: #ecd093;
}

.status-critical,
.badge-rejected,
.badge-failed {
  color: #8f1722;
  background: var(--danger-soft);
  border-color: #f1c3c8;
}

.status-neutral,
.status-unknown,
.badge-pending,
.badge-revoked,
.badge-unknown {
  color: #4c5d66;
  background: #edf2f1;
  border-color: #d5dfdc;
}

/* Page composition */
.hero-card,
.operations-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 5%, rgb(40 190 153 / 20%), transparent 38%),
    linear-gradient(135deg, #0b1721 0%, #132b34 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-card::after,
.operations-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 240px;
  height: 240px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgb(255 255 255 / 3%), 0 0 0 70px rgb(255 255 255 / 2%);
  pointer-events: none;
}

.hero-card {
  display: grid;
  gap: 24px;
  padding: 23px 20px;
}

.hero-copy,
.hero-date,
.operations-hero > * {
  position: relative;
  z-index: 1;
}

.section-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}

.section-kicker .muted {
  color: #aab9bf;
  font-size: 11px;
  text-align: right;
}

.hero-card .eyebrow,
.operations-hero .eyebrow {
  color: #80ddc3;
}

.hero-card h2,
.operations-hero h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 8vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.055em;
}

.hero-description,
.operations-hero p {
  max-width: 58ch;
  margin-bottom: 0;
  color: #bfd0d5;
  font-size: 14px;
}

.hero-date {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 15px;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.hero-date span,
.hero-date small {
  color: #aebfc5;
  font-size: 11px;
}

.hero-date strong {
  margin: 3px 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.section-heading,
.panel-heading {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.section-heading {
  margin-bottom: 12px;
}

.section-heading h2,
.panel-heading h2 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.panel-heading {
  align-items: flex-start;
  margin-bottom: 16px;
}

.panel-heading > div {
  min-width: 0;
}

.panel-heading p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 156px), 1fr));
  gap: 10px;
}

.metric-card,
.panel,
.recommendation-card,
.approval-card,
.job-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.metric-card {
  padding: 15px;
  border-radius: var(--radius);
}

.metric-icon {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
}

.metric-icon-green { color: #075b49; background: var(--brand-soft); }
.metric-icon-blue { color: #20558c; background: var(--blue-soft); }
.metric-icon-violet { color: #5c3da2; background: var(--violet-soft); }
.metric-icon-red { color: #931b26; background: var(--danger-soft); }
.metric-icon-slate { color: #50616a; background: #edf2f1; }

.metric-card p {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
}

.metric-card > strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(18px, 5.5vw, 25px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.metric-card small {
  color: var(--muted-light);
  font-size: 10px;
}

.collector-strip {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #edf8f4, #f8fbfa 62%);
  border: 1px solid #cce6dd;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.collector-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
}

.collector-copy {
  min-width: 0;
}

.collector-copy .eyebrow {
  margin-bottom: 2px;
  color: var(--brand);
}

.collector-copy h2 {
  margin-bottom: 3px;
  font-size: 17px;
  letter-spacing: -0.035em;
}

.collector-copy > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.collector-metrics {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 0;
}

.collector-metrics > div {
  min-width: 0;
  padding: 9px;
  background: rgb(255 255 255 / 72%);
  border: 1px solid rgb(8 115 95 / 10%);
  border-radius: 10px;
}

.collector-metrics dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
}

.collector-metrics dd {
  margin-bottom: 0;
  font-size: 11px;
  font-weight: 800;
}

.content-grid,
.content-grid-wide {
  display: grid;
  gap: 18px;
}

.panel {
  padding: 17px;
  border-radius: var(--radius);
}

.compact-recommendation-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.compact-recommendation-list li + li {
  border-top: 1px solid var(--line);
}

.compact-recommendation-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  min-height: 66px;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-radius: 8px;
}

.compact-recommendation-list a:hover {
  background: var(--surface-soft);
}

.rank-badge {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 850;
}

.rank-badge-large {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 11px;
  font-size: 14px;
}

.stock-copy,
.score-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.stock-copy strong,
.score-copy strong {
  font-size: 13px;
}

.stock-copy small,
.score-copy small {
  color: var(--muted);
  font-size: 10px;
}

.stock-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-copy {
  align-items: flex-end;
  text-align: right;
}

.score-copy strong {
  color: var(--brand-dark);
  font-size: 16px;
}

.chevron {
  color: var(--muted-light);
  font-size: 22px;
}

.definition-grid,
.performance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.definition-grid > div,
.performance-grid > div {
  min-width: 0;
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid #e9efed;
  border-radius: 11px;
}

.definition-grid dt,
.performance-grid dt {
  color: var(--muted);
  font-size: 10px;
}

.definition-grid dd,
.performance-grid dd {
  margin: 3px 0 0;
  font-size: 15px;
  font-weight: 800;
}

.control-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: var(--ink-soft);
  background: #f1f7f5;
  border: 1px solid #d9e8e3;
  border-radius: 11px;
}

.control-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-weight: 800;
}

.control-state strong {
  font-size: 12px;
}

.control-state p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.decision-list {
  display: grid;
}

.decision-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}

.decision-row + .decision-row {
  border-top: 1px solid var(--line);
}

.decision-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 850;
}

.decision-approved { color: #075b49; background: var(--brand-soft); }
.decision-rejected { color: #921b26; background: var(--danger-soft); }
.decision-pending { color: #6d4b00; background: var(--warning-soft); }

.decision-row > div:nth-child(2) {
  min-width: 0;
}

.decision-row strong {
  font-size: 13px;
}

.decision-row p {
  overflow: hidden;
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-meta {
  display: flex;
  grid-column: 2;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.decision-meta time {
  color: var(--muted);
  font-size: 10px;
}

.empty-line {
  margin: 0;
  padding: 22px 4px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.validation-grid {
  display: grid;
  gap: 10px;
}

.validation-card {
  min-width: 0;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.validation-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.validation-card > div:first-child > strong {
  font-size: 14px;
}

.validation-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.validation-card dl > div {
  min-width: 0;
}

.validation-card dt {
  color: var(--muted);
  font-size: 9px;
}

.validation-card dd {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 36px 20px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.empty-state.compact {
  min-height: 180px;
}

.empty-state > span:first-child {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 13px;
  place-items: center;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
}

.empty-state h2,
.empty-state h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.empty-state p {
  max-width: 44ch;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

/* Intro and filters */
.page-intro {
  display: grid;
  gap: 18px;
  padding: 19px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.page-intro h2 {
  margin-bottom: 7px;
  font-size: clamp(23px, 7vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.page-intro > div:first-child > p:last-child {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.intro-meta {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 13px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.intro-meta span,
.intro-meta small {
  color: var(--muted);
  font-size: 10px;
}

.intro-meta strong {
  font-size: 18px;
}

.filter-bar {
  display: grid;
  align-items: end;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.field-inline {
  display: grid;
  gap: 6px;
}

.filter-bar select,
.compact-filter select {
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.summary-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.summary-strip > div {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  padding: 11px 13px;
}

.summary-strip > div:nth-child(even) {
  border-left: 1px solid var(--line);
}

.summary-strip > div:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.summary-strip span {
  color: var(--muted);
  font-size: 10px;
}

.summary-strip strong {
  font-size: 13px;
}

/* Recommendations */
.recommendation-grid,
.approval-queue,
.job-grid {
  display: grid;
  gap: 14px;
}

.recommendation-card,
.approval-card {
  padding: 17px;
  border-radius: var(--radius);
}

.recommendation-card:target {
  border-color: #73b5a3;
  box-shadow: 0 0 0 3px rgb(8 115 95 / 12%), var(--shadow-sm);
}

.recommendation-header,
.approval-card-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.stock-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.stock-identity > div {
  min-width: 0;
}

.stock-identity h3 {
  overflow: hidden;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-identity p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.score-badge {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
  padding: 7px 9px;
  background: #eff8f5;
  border: 1px solid #d4e9e2;
  border-radius: 10px;
}

.score-badge span {
  color: var(--muted);
  font-size: 9px;
}

.score-badge strong {
  color: var(--brand-dark);
  font-size: 18px;
  line-height: 1.2;
}

.recommendation-facts,
.approval-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 15px 0;
}

.recommendation-facts > div,
.approval-facts > div {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  padding: 10px;
  background: var(--surface-soft);
  border-radius: 9px;
}

.recommendation-facts span,
.approval-facts dt {
  color: var(--muted);
  font-size: 9px;
}

.recommendation-facts strong,
.approval-facts dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 800;
}

.evidence-details,
.review-details {
  border-top: 1px solid var(--line);
}

.evidence-details > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  list-style: none;
}

.evidence-details > summary::-webkit-details-marker,
.review-details > summary::-webkit-details-marker {
  display: none;
}

.evidence-details > summary::after {
  content: "+";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--muted);
  background: #eef3f2;
  border-radius: 50%;
  font-size: 16px;
}

.evidence-details[open] > summary::after {
  content: "−";
}

.factor-list {
  display: grid;
  gap: 11px;
  padding: 12px;
  background: var(--surface-soft);
  border-radius: 10px;
}

.factor-list > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
}

.factor-list span,
.factor-list strong {
  font-size: 10px;
}

.factor-list strong {
  text-align: right;
}

meter {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #dfe8e5;
}

meter::-webkit-meter-bar {
  height: 8px;
  background: #dfe8e5;
  border: 0;
  border-radius: 999px;
}

meter::-webkit-meter-optimum-value {
  background: linear-gradient(90deg, #12a27f, #08735f);
  border-radius: 999px;
}

meter::-moz-meter-bar {
  background: linear-gradient(90deg, #12a27f, #08735f);
  border-radius: 999px;
}

.quality-flags {
  padding: 12px 2px 4px;
}

.quality-flags strong {
  font-size: 11px;
}

.quality-flags ul {
  padding-left: 18px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.quality-flags code {
  color: #52636c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.quality-flags p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.review-details {
  margin-top: 2px;
  padding-top: 13px;
}

.review-details > summary.button {
  width: 100%;
  list-style: none;
}

.review-details[open] > summary.button {
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-color: #b8dfd3;
  box-shadow: none;
}

.review-details-revoke > summary.text-link {
  width: 100%;
  justify-content: flex-end;
  list-style: none;
}

.review-form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.optional {
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 500;
}

.check-field {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  min-height: 44px;
  align-items: start;
  gap: 8px;
  padding: 9px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 11px;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.form-caution {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.decision-complete {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 11px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.decision-complete strong {
  font-size: 12px;
}

.decision-complete p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.recommendation-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  padding-top: 11px;
  color: var(--muted-light);
  border-top: 1px solid var(--line);
  font-size: 9px;
}

/* Approval */
.page-intro-approval {
  color: #fff;
  background:
    radial-gradient(circle at 95% 20%, rgb(34 193 154 / 20%), transparent 35%),
    linear-gradient(135deg, var(--navy), #17323b);
  border: 0;
}

.page-intro-approval .eyebrow {
  color: #80ddc3;
}

.page-intro-approval > div:first-child > p:last-child {
  color: #bfd0d5;
}

.approval-count {
  display: flex;
  align-items: baseline;
  gap: 4px;
  width: fit-content;
  padding: 13px 16px;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 13px;
}

.approval-count span {
  margin-right: 8px;
  color: #bfd0d5;
  font-size: 11px;
}

.approval-count strong {
  font-size: 28px;
  line-height: 1;
}

.approval-count small {
  color: #bfd0d5;
}

.approval-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.approval-summary > span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
}

.approval-summary strong {
  color: var(--ink);
}

.approval-card-main {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.approval-facts {
  margin-bottom: 4px;
}

.review-summary {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.review-summary strong {
  font-size: 13px;
}

.review-summary span {
  color: var(--muted);
  font-size: 10px;
}

.compact-filter {
  display: flex;
  align-items: center;
  gap: 7px;
}

.compact-filter select {
  min-width: 110px;
  min-height: 40px;
  font-size: 12px;
}

.audit-table-wrap {
  min-width: 0;
}

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

.audit-table th,
.audit-table td {
  padding: 12px 9px;
  text-align: left;
}

.audit-table th {
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  font-size: 10px;
  font-weight: 750;
}

.audit-table td {
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.audit-table td strong,
.audit-table td small {
  display: block;
}

.audit-table td small {
  color: var(--muted);
  font-size: 9px;
}

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

.audit-note {
  max-width: 300px;
  color: var(--muted);
}

/* Operations */
.operations-hero {
  display: grid;
  gap: 20px;
  padding: 22px 20px;
}

.operations-hero h2 {
  margin-top: 18px;
}

.operations-updated {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 12px;
}

.operations-updated > span {
  color: #aebfc5;
  font-size: 10px;
}

.operations-updated > strong {
  margin-bottom: 7px;
  font-size: 13px;
}

.operations-updated .button-secondary {
  color: #fff;
  background: rgb(255 255 255 / 8%);
  border-color: rgb(255 255 255 / 20%);
}

.alert-list,
.check-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.alert-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
}

.alert-item + .alert-item {
  margin-top: 8px;
}

.alert-warning {
  background: #fff9eb;
  border: 1px solid #f1ddb2;
}

.alert-critical {
  background: #fff1f2;
  border: 1px solid #f4c9cd;
}

.alert-symbol {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #fff;
  background: var(--warning);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 850;
}

.alert-critical .alert-symbol {
  background: var(--danger);
}

.alert-item strong {
  font-size: 12px;
}

.alert-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.alert-item > .badge {
  grid-column: 2;
  justify-self: start;
}

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

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.check-list li > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 850;
}

.check-list li.is-bad > span {
  background: var(--danger);
}

.check-list strong,
.check-list small {
  display: block;
}

.check-list strong {
  font-size: 12px;
}

.check-list small {
  color: var(--muted);
  font-size: 10px;
}

.job-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 13px;
  border-radius: 11px;
}

.job-card > div:first-child {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.job-card .status-dot {
  color: var(--muted);
  box-shadow: none;
}

.job-card .status-dot-succeeded { background: var(--brand); }
.job-card .status-dot-partial { background: var(--warning); }
.job-card .status-dot-failed { background: var(--danger); }

.job-card strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.job-card > small {
  grid-column: 1 / -1;
  color: var(--muted-light);
  font-size: 9px;
}

.performance-grid {
  margin-bottom: 0;
}

/* Error page */
.error-panel {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  width: min(100%, 620px);
  margin-inline: auto;
  padding: max(32px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
}

.error-panel .auth-brand {
  margin-bottom: 50px;
}

.error-code {
  margin-bottom: 7px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.error-panel h1 {
  margin-bottom: 10px;
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.05em;
}

.error-panel > p:not(.error-code) {
  max-width: 48ch;
  margin-bottom: 10px;
  color: var(--muted);
}

.error-panel > small {
  color: var(--muted-light);
  font-size: 10px;
}

.error-panel code {
  overflow-wrap: anywhere;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

/* Responsive audit table */
@media (max-width: 639px) {
  .audit-table,
  .audit-table tbody,
  .audit-table tr,
  .audit-table td {
    display: block;
    width: 100%;
  }

  .audit-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .audit-table tr {
    padding: 10px 0;
  }

  .audit-table tr + tr {
    border-top: 1px solid var(--line);
  }

  .audit-table td {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 9px;
    padding: 5px 0;
    border: 0;
  }

  .audit-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
  }

  .audit-note {
    max-width: none;
  }

  .panel-heading .compact-filter {
    width: 100%;
  }

  .panel-heading .compact-filter select {
    flex: 1;
  }

  .panel:has(.compact-filter) .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (min-width: 480px) {
  .main-content {
    padding-inline: 20px;
  }

  .hero-card,
  .operations-hero {
    padding: 27px 25px;
  }

  .hero-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .hero-date {
    min-width: 160px;
  }

  .filter-bar {
    grid-template-columns: minmax(125px, 0.65fr) minmax(0, 1.35fr) auto;
  }

  .summary-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .summary-strip > div:nth-child(n + 3) {
    border-top: 0;
  }

  .summary-strip > div + div {
    border-left: 1px solid var(--line);
  }

  .recommendation-facts,
  .approval-facts {
    grid-template-columns: repeat(4, 1fr);
  }

  .decision-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .decision-meta {
    grid-column: auto;
    align-items: flex-end;
    flex-direction: column;
  }

  .page-intro {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    padding: 24px;
  }

  .intro-meta {
    min-width: 175px;
  }

  .page-intro-approval {
    align-items: center;
  }

  .approval-count {
    justify-self: end;
  }

  .alert-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .alert-item > .badge {
    grid-column: auto;
    justify-self: end;
  }
}

@media (min-width: 640px) {
  .topbar {
    padding-inline: 24px;
  }

  .user-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.25;
  }

  .user-copy strong {
    max-width: 160px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-copy small {
    color: var(--muted);
    font-size: 10px;
  }

  .main-content {
    padding: 22px 24px calc(94px + env(safe-area-inset-bottom));
  }

  .panel,
  .recommendation-card,
  .approval-card {
    padding: 21px;
  }

  .recommendation-grid,
  .approval-queue,
  .job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .performance-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .collector-strip {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .collector-metrics {
    min-width: 330px;
    grid-column: auto;
  }
}

@media (min-width: 768px) {
  .app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    flex-direction: column;
    padding: 24px 17px max(22px, env(safe-area-inset-bottom));
    color: #dbe5e8;
    background:
      radial-gradient(circle at 20% 0, rgb(27 139 113 / 18%), transparent 25%),
      var(--navy);
    border-right: 1px solid #1d3039;
  }

  .brand {
    min-height: 48px;
    margin: 0 7px 29px;
    color: #fff;
  }

  .brand small {
    color: #81939b;
  }

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

  .nav-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #93a6ae;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
  }

  .nav-link:hover {
    color: #e8f2f4;
    background: #132630;
  }

  .nav-link.is-active {
    color: #fff;
    background: linear-gradient(100deg, rgb(13 132 105 / 38%), rgb(11 23 33 / 0%));
    border-color: rgb(91 208 177 / 16%);
  }

  .nav-link svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: currentColor;
  }

  .sidebar-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: auto;
    padding: 12px;
    color: #b1c1c7;
    background: #12242d;
    border: 1px solid #203740;
    border-radius: 12px;
  }

  .live-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-top: 6px;
    background: #48d0aa;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgb(72 208 170 / 10%);
  }

  .sidebar-note strong {
    font-size: 11px;
  }

  .sidebar-note p {
    margin: 2px 0 0;
    color: #7f949c;
    font-size: 9px;
  }

  .topbar {
    min-height: 78px;
    padding: 13px 30px;
  }

  .topbar-title .eyebrow {
    display: block;
  }

  .topbar-title h1 {
    font-size: 23px;
  }

  .main-content {
    padding: 28px 30px 46px;
  }

  .bottom-nav {
    display: none;
  }

  .auth-shell {
    grid-template-columns: minmax(420px, 0.85fr) minmax(340px, 1.15fr);
  }

  .auth-panel {
    padding-inline: clamp(34px, 6vw, 80px);
  }

  .auth-visual {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: flex-end;
    padding: 8vw 6vw;
    color: #fff;
    background:
      radial-gradient(circle at 53% 35%, rgb(56 212 170 / 18%), transparent 22%),
      linear-gradient(145deg, #0a151e, #12323a);
  }

  .auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
      linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
  }

  .auth-orbit {
    position: absolute;
    z-index: 1;
    top: 18%;
    left: 50%;
    width: min(32vw, 390px);
    aspect-ratio: 1;
    transform: translateX(-50%);
  }

  .orbit {
    position: absolute;
    inset: 0;
    border: 1px solid rgb(111 224 193 / 25%);
    border-radius: 50%;
  }

  .orbit-one::before,
  .orbit-two::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: #55d6b2;
    border-radius: 50%;
    box-shadow: 0 0 20px #55d6b2;
  }

  .orbit-one::before { top: 10%; left: 20%; }

  .orbit-two {
    inset: 18%;
    border-color: rgb(105 173 224 / 24%);
  }

  .orbit-two::before { right: 5%; bottom: 24%; background: #6eabe0; box-shadow: 0 0 20px #6eabe0; }

  .orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    color: #d7fff3;
    background: rgb(26 132 106 / 18%);
    border: 1px solid rgb(100 224 191 / 35%);
    border-radius: 50%;
    box-shadow: 0 0 50px rgb(45 200 160 / 18%);
    font-size: 19px;
    font-weight: 800;
    transform: translate(-50%, -50%);
  }

  .auth-visual-copy {
    position: relative;
    z-index: 2;
    max-width: 520px;
  }

  .auth-visual-copy .eyebrow {
    color: #74d9bd;
  }

  .auth-visual-copy h2 {
    margin-bottom: 14px;
    font-size: clamp(32px, 4.6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.055em;
  }

  .auth-visual-copy > p:last-child {
    max-width: 45ch;
    margin-bottom: 0;
    color: #a9bdc3;
  }
}

@media (min-width: 960px) {
  .content-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  }

  .content-grid-wide {
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.65fr);
  }

  .operations-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .operations-updated {
    min-width: 230px;
  }

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

@media (min-width: 1200px) {
  .main-content {
    padding-inline: 38px;
  }

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

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

  .metric-card {
    padding: 18px;
  }
}

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

@media (forced-colors: active) {
  .status-dot,
  .live-dot,
  .metric-icon,
  .rank-badge,
  .decision-icon,
  .control-icon {
    border: 1px solid currentColor;
  }

  .button,
  .status-pill,
  .badge {
    border: 1px solid ButtonText;
  }
}
