/* ===========================================================
   AI Software Registry — VIN-themed app styles
   Built on VIN Design System tokens (colors_and_type.css).
   =========================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--surface-bg);
  color: var(--fg1);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; }
a { color: var(--fg-link); }
::selection { background: var(--color-light-steel); }

/* ── App shell ── */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.layout { display: grid; grid-template-columns: 232px 1fr; flex: 1; }
@media (max-width: 1024px) { .layout { grid-template-columns: 1fr; } }
.main {
  padding: 32px clamp(20px, 4vw, 48px) 80px;
  max-width: 1320px;
  width: 100%;
}

/* ── Site header ── */
.site-header {
  background: var(--surface-nav);
  color: var(--color-light-steel);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 1px 3px rgba(0,0,0,.10);
}
.site-header__brand img { height: 26px; display: block; }
.site-header__divider { height: 22px; width: 1px; background: rgba(255,255,255,0.18); }
.site-header__product {
  font-size: 10px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--color-steel-hover);
}
.site-header__product strong { color: var(--color-white); font-weight: 800; letter-spacing: .04em; }
.site-header__spacer { margin-left: auto; }
.site-header__search {
  flex: 1; max-width: 380px; margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}
.site-header__search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--color-white); font-family: inherit; font-size: 13px;
}
.site-header__search input::placeholder { color: rgba(255,255,255,0.55); }
.site-header__role {
  display: flex; align-items: stretch;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.site-header__role button {
  background: transparent; border: none; cursor: pointer;
  color: var(--color-steel-hover);
  font-size: 11px; font-weight: 500; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px;
  transition: all 150ms var(--easing-out, ease-out);
}
.site-header__role button:hover { color: var(--color-white); }
.site-header__role button.is-active {
  background: var(--color-white); color: var(--color-navy);
  font-weight: 800;
}
.site-header__user {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  font-size: 12px; font-weight: 500; color: var(--color-white);
}
.site-header__avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-gold); color: var(--color-navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
}

/* ── Sidebar ── */
.sidebar {
  background: var(--surface-card);
  border-right: 1px solid var(--border-subtle);
  padding: 24px 14px;
}
.sidebar__heading {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  color: var(--color-steel); margin: 0 12px 8px;
}
.sidebar__list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 2px; }
.sidebar__item a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
  color: var(--color-navy); text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: background-color 150ms var(--easing-out, ease-out);
}
.sidebar__item a:hover { background: var(--color-light-steel); }
.sidebar__item a.is-active {
  background: var(--color-light-steel); color: var(--color-navy-deep); font-weight: 800;
}
.sidebar__item .sidebar__count {
  margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  background: var(--color-white); color: var(--color-navy);
  border: 1px solid var(--border-subtle);
  padding: 1px 8px; border-radius: 999px;
}
.sidebar__item a.is-active .sidebar__count { background: var(--color-navy); color: var(--color-white); border-color: transparent; }
.sidebar__item img { width: 14px; height: 14px; opacity: .55; }

/* ── Page header ── */
.page-overline {
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-steel); margin: 0 0 8px;
}
.page-title {
  font-size: 30px; font-weight: 800; line-height: 1.12;
  margin: 0 0 8px; color: var(--color-navy); letter-spacing: -.01em;
}
.page-desc {
  font-size: 14px; line-height: 1.6;
  color: var(--color-steel); margin: 0 0 24px; max-width: 70ch;
}
.page-headbar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 28px; flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid transparent; border-radius: 8px;
  font-family: inherit; font-weight: 500; font-size: 13px;
  cursor: pointer; white-space: nowrap;
  transition: background-color 150ms var(--easing-out, ease-out),
              transform 150ms var(--easing-out, ease-out),
              color 150ms var(--easing-out, ease-out);
}
.btn:focus-visible { outline: 2px solid var(--color-navy-focus); outline-offset: 2px; }
.btn--primary { background: var(--color-navy); color: var(--color-white); }
.btn--primary:hover { background: var(--color-navy-deep); }
.btn--secondary { background: var(--color-white); color: var(--color-navy); border-color: var(--border-subtle); }
.btn--secondary:hover { background: var(--color-light-steel); }
.btn--ghost { background: transparent; color: var(--color-navy); }
.btn--ghost:hover { background: var(--color-light-steel); }
.btn--success { background: var(--color-green); color: var(--color-white); }
.btn--success:hover { background: #006850; }
.btn--danger { background: var(--color-red); color: var(--color-white); }
.btn--danger:hover { background: #a93b39; }
.btn--warning { background: var(--color-amber); color: var(--color-white); }
.btn--warning:hover { background: #93470a; }
.btn--link { background: transparent; color: var(--color-blue); padding: 6px 8px; }
.btn--link:hover { color: var(--color-navy-deep); }
.btn--sm { padding: 6px 12px; font-size: 12px; }
.btn--lg { padding: 12px 22px; font-size: 14px; }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ── Cards ── */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.card--padded { padding: 22px 24px; }
.card__header {
  padding: 16px 22px; border-bottom: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.card__title { font-size: 14px; font-weight: 800; color: var(--color-navy); margin: 0; }
.card__body { padding: 20px 22px; }
.card__footer { padding: 14px 22px; border-top: 1px solid var(--border-subtle); display: flex; justify-content: flex-end; gap: 10px; background: #FBFCFD; border-radius: 0 0 12px 12px; }

/* Hero (used on dashboard) */
.hero {
  position: relative;
  background: var(--color-navy);
  color: var(--fg-on-dark);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 28px;
  overflow: hidden;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 10px);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 85% 60%, rgba(77,105,149,0.34) 0%, transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero__overline { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--color-steel-hover); margin-bottom: 10px; }
.hero__title { font-size: 26px; font-weight: 800; line-height: 1.18; margin: 0 0 8px; max-width: 28ch; color: var(--fg-on-dark); }
.hero__desc { font-size: 14px; font-weight: 300; color: var(--color-light-steel); line-height: 1.6; max-width: 60ch; margin: 0 0 18px; }
.hero__row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__stat { display: flex; flex-direction: column; gap: 2px; padding-inline-end: 22px; border-inline-end: 1px solid rgba(255,255,255,0.14); }
.hero__stat:last-child { border-inline-end: none; padding-inline-end: 0; }
.hero__stat-value { font-size: 22px; font-weight: 800; color: var(--color-white); line-height: 1; }
.hero__stat-label { font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--color-steel-hover); }

/* ── Status badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  border: 1px solid transparent; white-space: nowrap;
}
.badge::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.badge--draft     { background: #EFF2F6; color: #4D6995; border-color: #DDE5ED; }
.badge--pending-it { background: #FDF1DE; color: #8C4503; border-color: #F2D8A9; }
.badge--pending-legal { background: #DCEBFB; color: #08489B; border-color: #B9D3F2; }
.badge--needs-info { background: #FFEAEA; color: #9B2D2C; border-color: #F6C8C7; }
.badge--approved  { background: #DCEFE9; color: #00563F; border-color: #ACD4C7; }
.badge--conditional { background: #C2E9F1; color: #006875; border-color: #94D6E0; }
.badge--rejected  { background: #FBE6E6; color: #7E2A29; border-color: #F0B7B6; }
.badge--neutral   { background: var(--color-light-steel); color: var(--color-navy); border-color: var(--border-subtle); }

/* Risk pill */
.risk-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.risk-pill--low { background: #DCEFE9; color: #00563F; }
.risk-pill--med { background: #FDF1DE; color: #8C4503; }
.risk-pill--high { background: #FBE6E6; color: #7E2A29; }

/* ── Stage tracker ── */
.tracker {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0;
  position: relative;
  padding: 26px 16px 8px;
}
.tracker__step { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 8px; }
.tracker__node {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--border-subtle);
  color: var(--color-steel);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  position: relative; z-index: 2;
  transition: all 300ms var(--easing-out, ease-out);
}
.tracker__step--done .tracker__node { background: var(--color-green); border-color: var(--color-green); color: var(--color-white); }
.tracker__step--current .tracker__node { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-white); box-shadow: 0 0 0 4px rgba(0, 40, 85, 0.10); }
.tracker__step--rejected .tracker__node { background: var(--color-red); border-color: var(--color-red); color: var(--color-white); }
.tracker__step--conditional .tracker__node { background: var(--color-teal); border-color: var(--color-teal); color: var(--color-white); }
.tracker__connector {
  position: absolute;
  top: 13px; height: 2px;
  background: var(--border-subtle);
  z-index: 1;
}
.tracker__step--done + .tracker__step .tracker__connector { background: var(--color-green); }
.tracker__label {
  margin-top: 10px;
  font-size: 11px; font-weight: 800; color: var(--color-navy);
  text-transform: uppercase; letter-spacing: .06em; text-align: center;
}
.tracker__sub {
  margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--color-steel); text-align: center;
}
.tracker__step--pending .tracker__label,
.tracker__step--pending .tracker__sub { color: #94A0B2; }
.tracker__step--rejected .tracker__label,
.tracker__step--conditional .tracker__label { color: inherit; }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: 12px; font-weight: 800;
  color: var(--color-navy); letter-spacing: .02em;
}
.field__label .field__req { color: var(--color-red); margin-left: 4px; }
.field__help { font-size: 12px; color: var(--color-steel); line-height: 1.5; margin: -2px 0 6px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field input[type="password"],
.field textarea,
.field select {
  font-family: inherit; font-size: 14px; color: var(--color-navy);
  background: var(--color-white);
  border: 1px solid var(--border-subtle); border-radius: 8px;
  padding: 10px 12px;
  transition: border-color 150ms var(--easing-out, ease-out), box-shadow 150ms var(--easing-out, ease-out);
}
.field textarea { min-height: 84px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--color-navy-focus);
  box-shadow: 0 0 0 3px rgba(0, 58, 112, 0.14);
}
.field--error input, .field--error textarea, .field--error select {
  border-color: var(--color-red); box-shadow: 0 0 0 3px rgba(197,70,68,0.10);
}
.field__error { font-size: 11px; color: var(--color-red); font-weight: 500; margin-top: 2px; }

/* Yes/No radio cards */
.yesno {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.yesno__opt {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border-subtle); border-radius: 10px;
  padding: 12px 14px; cursor: pointer;
  background: var(--color-white);
  transition: all 150ms var(--easing-out, ease-out);
}
.yesno__opt:hover { border-color: var(--color-steel); background: #FAFBFC; }
.yesno__opt input { accent-color: var(--color-navy); }
.yesno__opt.is-selected { border-color: var(--color-navy); background: #F4F7FB; box-shadow: inset 0 0 0 1px var(--color-navy); }
.yesno__opt.is-selected.is-yes { border-color: var(--color-amber); box-shadow: inset 0 0 0 1px var(--color-amber); background: #FDF6E9; }
.yesno__title { font-size: 13px; font-weight: 800; color: var(--color-navy); margin: 0; }
.yesno__sub { font-size: 11px; color: var(--color-steel); margin: 1px 0 0; }

/* Inline alert / banner */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: 8px;
  font-size: 13px; line-height: 1.5;
}
.alert--info { background: #DCEBFB; color: #08489B; border: 1px solid #B9D3F2; }
.alert--warn { background: var(--color-warm-light); border-left: 4px solid var(--color-amber); color: var(--color-navy); }
.alert--success { background: #DCEFE9; color: #00563F; border: 1px solid #ACD4C7; }
.alert--danger { background: #FBE6E6; color: #7E2A29; border: 1px solid #F0B7B6; }
.alert strong { font-weight: 800; }

/* ── Tables ── */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th {
  text-align: left; font-weight: 800; font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--color-steel);
  padding: 12px 16px;
  background: #F4F7FA;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky; top: 0; z-index: 1;
}
.table th:first-child { border-top-left-radius: 12px; }
.table th:last-child { border-top-right-radius: 12px; }
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--color-navy);
  vertical-align: middle;
}
.table tbody tr { background: var(--color-white); cursor: pointer; transition: background-color 150ms var(--easing-out, ease-out); }
.table tbody tr:hover { background: #F4F7FA; }
.table tbody tr:last-child td { border-bottom: none; }
.table .mono { font-family: var(--font-mono); font-size: 12px; color: var(--color-steel); }
.table .tool-name { font-weight: 800; color: var(--color-navy); }
.table .tool-sub { font-size: 11px; color: var(--color-steel); margin-top: 1px; }
.table-wrap {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--color-white);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

/* ── Stat tiles ── */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin-bottom: 28px;
}
.stat {
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.stat__label {
  font-size: 10px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--color-steel);
}
.stat__value { font-size: 28px; font-weight: 800; color: var(--color-navy); line-height: 1.1; letter-spacing: -.01em; }
.stat__delta { font-size: 11px; color: var(--color-steel); }
.stat--accent { border-top: 3px solid var(--color-navy); }
.stat--success { border-top: 3px solid var(--color-green); }
.stat--warning { border-top: 3px solid var(--color-amber); }
.stat--danger  { border-top: 3px solid var(--color-red); }

/* ── Toolbar / Search ── */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.search {
  flex: 1; max-width: 480px; min-width: 220px;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border: 1px solid var(--border-subtle); border-radius: 8px;
  background: var(--color-white);
}
.search input { flex: 1; border: none; outline: none; font-family: inherit; font-size: 13px; color: var(--color-navy); background: transparent; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--color-white); border: 1px solid var(--border-subtle);
  color: var(--color-navy); font-size: 12px; font-weight: 500; cursor: pointer;
  transition: all 150ms var(--easing-out, ease-out);
}
.chip:hover { background: var(--color-light-steel); }
.chip.is-active { background: var(--color-navy); color: var(--color-white); border-color: var(--color-navy); }
.chip__count { font-size: 10px; font-weight: 800; opacity: .85; }

/* View toggle */
.viewtoggle { display: inline-flex; padding: 3px; background: var(--color-light-steel); border-radius: 8px; }
.viewtoggle button {
  border: none; background: transparent; padding: 6px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 500; color: var(--color-steel); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.viewtoggle button.is-active { background: var(--color-white); color: var(--color-navy); font-weight: 800; box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* ── Wizard ── */
.wizard {
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
  overflow: hidden;
}
.wizard__stepper {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 22px 28px 0;
  position: relative;
  background: #FBFCFD;
  border-bottom: 1px solid var(--border-subtle);
}
.wizard__step { display: flex; flex-direction: column; align-items: center; padding-bottom: 20px; position: relative; cursor: pointer; }
.wizard__node {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--border-subtle); color: var(--color-steel);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  transition: all 250ms var(--easing-out, ease-out);
  z-index: 2;
}
.wizard__step--done .wizard__node { background: var(--color-green); border-color: var(--color-green); color: var(--color-white); }
.wizard__step--current .wizard__node { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-white); box-shadow: 0 0 0 4px rgba(0, 40, 85, 0.10); }
.wizard__step-label { font-size: 11px; font-weight: 800; color: var(--color-navy); margin-top: 8px; letter-spacing: .04em; text-transform: uppercase; }
.wizard__step--pending .wizard__step-label { color: var(--color-steel); font-weight: 500; }
.wizard__connector {
  position: absolute; top: calc(22px + 15px); height: 2px; background: var(--border-subtle); z-index: 1;
}
.wizard__connector--done { background: var(--color-green); }

.wizard__body { padding: 32px 36px 28px; min-height: 420px; }
.wizard__step-overline { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--color-steel); margin: 0 0 8px; }
.wizard__step-title { font-size: 22px; font-weight: 800; color: var(--color-navy); margin: 0 0 6px; letter-spacing: -.01em; }
.wizard__step-desc { font-size: 13px; color: var(--color-steel); margin: 0 0 24px; max-width: 64ch; line-height: 1.6; }
.wizard__grid { display: grid; gap: 18px; }
.wizard__grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .wizard__grid--2 { grid-template-columns: 1fr; } }
.wizard__footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px; border-top: 1px solid var(--border-subtle);
  background: #FBFCFD;
}
.wizard__footer-info { font-size: 12px; color: var(--color-steel); }

/* Review summary on last step */
.review-section { border-bottom: 1px solid var(--border-subtle); padding: 16px 0; }
.review-section:last-child { border-bottom: none; }
.review-section__row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 4px 0; }
.review-section__label { font-size: 11px; font-weight: 800; color: var(--color-steel); text-transform: uppercase; letter-spacing: .08em; align-self: start; padding-top: 2px; }
.review-section__value { color: var(--color-navy); font-size: 13px; line-height: 1.55; }
.review-section__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-section__title { font-size: 14px; font-weight: 800; color: var(--color-navy); margin: 0; }
.review-section__edit { background: transparent; border: none; color: var(--color-blue); font-size: 12px; font-weight: 500; cursor: pointer; padding: 4px 0; }

/* ── Timeline (request history) ── */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ''; position: absolute;
  left: 14px; top: 8px; bottom: 8px; width: 2px;
  background: var(--border-subtle);
}
.timeline__item { position: relative; padding: 0 0 22px 44px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: 6px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-white); border: 2px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.timeline__dot--submitted { border-color: var(--color-navy); background: var(--color-navy); }
.timeline__dot--approved { border-color: var(--color-green); background: var(--color-green); }
.timeline__dot--rejected { border-color: var(--color-red); background: var(--color-red); }
.timeline__dot--info { border-color: var(--color-amber); background: var(--color-amber); }
.timeline__dot--comment { border-color: var(--color-blue); background: var(--color-blue); }
.timeline__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.timeline__actor { font-size: 13px; font-weight: 800; color: var(--color-navy); }
.timeline__action { font-size: 13px; color: var(--color-navy); }
.timeline__time { font-size: 11px; color: var(--color-steel); margin-left: auto; }
.timeline__detail { font-size: 13px; color: var(--color-steel); line-height: 1.55; background: #F4F7FA; border-radius: 8px; padding: 10px 12px; margin: 6px 0 0; }
.timeline__detail strong { color: var(--color-navy); font-weight: 800; }

/* ── Registry card view ── */
.regrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.regcard {
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
  cursor: pointer;
  transition: transform 200ms var(--easing-out, ease-out), box-shadow 200ms var(--easing-out, ease-out);
}
.regcard:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.04); }
.regcard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.regcard__logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--color-light-steel); color: var(--color-navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; letter-spacing: .02em; flex-shrink: 0;
}
.regcard__name { font-size: 15px; font-weight: 800; color: var(--color-navy); margin: 0; }
.regcard__vendor { font-size: 11px; color: var(--color-steel); margin: 2px 0 0; }
.regcard__desc { font-size: 12px; line-height: 1.55; color: var(--color-steel); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.regcard__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.regcard__meta-key { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-steel); }
.regcard__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.regcard__tag {
  padding: 1px 8px; border-radius: 999px;
  font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: var(--color-light-steel); color: var(--color-steel);
  border: 1px solid var(--border-subtle);
}

/* ── Reviewer action panel ── */
.action-panel {
  background: var(--color-white);
  border: 1px solid var(--border-subtle); border-radius: 12px;
  padding: 20px 22px;
}
.action-panel__title { font-size: 14px; font-weight: 800; color: var(--color-navy); margin: 0 0 4px; }
.action-panel__sub { font-size: 12px; color: var(--color-steel); margin: 0 0 14px; }
.action-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.action-tab {
  background: var(--color-white); border: 1px solid var(--border-subtle); border-radius: 8px;
  padding: 10px 8px; cursor: pointer; text-align: center;
  font-size: 11px; font-weight: 800; color: var(--color-navy); letter-spacing: .04em;
  transition: all 150ms var(--easing-out, ease-out);
  display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center;
  text-transform: uppercase;
}
.action-tab:hover { background: var(--color-light-steel); }
.action-tab.is-active[data-kind="approve"] { background: var(--color-green); color: var(--color-white); border-color: var(--color-green); }
.action-tab.is-active[data-kind="conditional"] { background: var(--color-teal); color: var(--color-white); border-color: var(--color-teal); }
.action-tab.is-active[data-kind="clarify"] { background: var(--color-blue); color: var(--color-white); border-color: var(--color-blue); }
.action-tab.is-active[data-kind="reject"] { background: var(--color-red); color: var(--color-white); border-color: var(--color-red); }
.action-tab__icon { font-size: 14px; }

/* ── Duplicate detection ── */
.dup-notice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-radius: 10px;
  background: var(--color-warm-light);
  border-left: 4px solid var(--color-amber);
  margin-bottom: 18px;
}
.dup-notice__icon {
  width: 32px; height: 32px; border-radius: 50%; background: var(--color-amber); color: var(--color-white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.dup-notice__title { font-weight: 800; font-size: 13px; color: var(--color-navy); margin: 0 0 4px; }
.dup-notice__body { font-size: 12px; color: var(--color-navy); margin: 0; line-height: 1.5; }

/* ── Login ── */
.login {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface-bg);
}
@media (max-width: 900px) { .login { grid-template-columns: 1fr; } }
.login__panel {
  background: var(--color-navy); color: var(--color-white);
  padding: 60px 56px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 10px);
}
.login__panel::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 80%, rgba(77,105,149,0.34) 0%, transparent 60%);
  pointer-events: none;
}
.login__panel > * { position: relative; }
.login__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 56px; }
.login__brand img { height: 32px; }
.login__brand-tag {
  font-size: 10px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--color-steel-hover);
  padding-left: 14px; border-left: 1px solid rgba(255,255,255,0.20);
}
.login__hello {
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-steel-hover); margin-bottom: 14px;
}
.login__headline { font-size: 38px; font-weight: 800; line-height: 1.1; max-width: 18ch; margin: 0 0 18px; letter-spacing: -.01em; }
.login__lede { font-size: 15px; line-height: 1.6; color: var(--color-light-steel); max-width: 44ch; margin: 0 0 32px; }
.login__bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.login__bullets li { display: flex; gap: 12px; font-size: 13px; color: var(--color-light-steel); line-height: 1.5; }
.login__bullets li::before {
  content: ''; display: block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-gold); margin-top: 8px; flex-shrink: 0;
}
.login__form-side {
  display: flex; align-items: center; justify-content: center; padding: 60px 56px;
}
.login__card { width: 100%; max-width: 380px; }
.login__title { font-size: 24px; font-weight: 800; color: var(--color-navy); margin: 0 0 6px; }
.login__sub { font-size: 13px; color: var(--color-steel); margin: 0 0 28px; }
.login__sso {
  display: flex; gap: 10px; flex-direction: column; margin-bottom: 22px;
}
.login__divider {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0; font-size: 10px; font-weight: 800; letter-spacing: .14em;
  color: var(--color-steel); text-transform: uppercase;
}
.login__divider::before, .login__divider::after { content: ''; flex: 1; height: 1px; background: var(--border-subtle); }
.login__fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.login__row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.login__row a { color: var(--color-blue); text-decoration: none; }

/* ── Comments / Discussion thread ── */
.comment {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.comment:last-child { border-bottom: none; }
.comment__avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-light-steel); color: var(--color-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.comment__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.comment__name { font-size: 13px; font-weight: 800; color: var(--color-navy); }
.comment__role { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-steel); }
.comment__time { font-size: 11px; color: var(--color-steel); margin-left: auto; }
.comment__body { font-size: 13px; color: var(--color-navy); line-height: 1.55; margin: 0; }
.comment__quote { font-size: 12px; color: var(--color-steel); border-left: 3px solid var(--color-light-steel); padding-left: 10px; margin-top: 6px; }

/* ── Layout helpers ── */
.row { display: flex; gap: 22px; }
.row--2col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: flex-start; }
@media (max-width: 1080px) { .row--2col { grid-template-columns: 1fr; } }
.row--3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.muted { color: var(--color-steel); }
.kbd {
  font-family: var(--font-mono); font-size: 11px;
  padding: 2px 6px; border-radius: 4px;
  background: var(--color-light-steel); color: var(--color-navy);
  border: 1px solid var(--border-subtle);
}
.mono { font-family: var(--font-mono); }
.divider { height: 1px; background: var(--border-subtle); margin: 18px 0; }

/* ── Reveal animation ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: fadeUp 400ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .reveal-1 { animation-delay: 40ms; }
  .reveal-2 { animation-delay: 80ms; }
  .reveal-3 { animation-delay: 120ms; }
  .reveal-4 { animation-delay: 160ms; }
}

/* Toast */
.toast-wrap {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--color-navy); color: var(--color-white);
  padding: 12px 16px; border-radius: 10px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  min-width: 280px;
  animation: fadeUp 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.toast__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-green); }
.toast--warn .toast__dot { background: var(--color-amber); }
.toast--err .toast__dot { background: var(--color-red); }

/* Inline icon */
.icon { width: 14px; height: 14px; display: inline-block; vertical-align: middle; }
.icon--lg { width: 18px; height: 18px; }
.icon-tint { filter: brightness(0) saturate(100%) invert(13%) sepia(48%) saturate(2024%) hue-rotate(196deg) brightness(94%) contrast(101%); }

/* Settings table */
.settings-grid { display: grid; grid-template-columns: 220px 1fr; gap: 0; }
.settings-grid > div { padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.settings-grid > div:nth-last-child(-n+2) { border-bottom: none; }
.settings-grid label { font-size: 12px; font-weight: 800; color: var(--color-navy); }
.settings-grid p { font-size: 12px; color: var(--color-steel); margin: 2px 0 0; }

/* Toggle */
.toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.toggle input { display: none; }
.toggle__track { width: 36px; height: 20px; background: var(--color-light-steel); border-radius: 999px; position: relative; transition: background-color 150ms var(--easing-out, ease-out); }
.toggle__track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-white); box-shadow: 0 1px 2px rgba(0,0,0,.15); transition: transform 200ms var(--easing-out, ease-out); }
.toggle input:checked + .toggle__track { background: var(--color-navy); }
.toggle input:checked + .toggle__track::after { transform: translateX(16px); }
.toggle__label { font-size: 13px; color: var(--color-navy); font-weight: 500; margin-left: 10px; }
