/* ============================================================================
   SRC Maintenance & Handover Portal — enterprise "operations control-board" UI
   Palette:  ink #171A21 · slate-bg #EEF1F6 · surface #FFFFFF · hairline #DDE3EC
             crimson #C8102E (SRC accent, used sparingly) · muted #5B6472
   Type:     Space Grotesk (display) · IBM Plex Sans (body) · IBM Plex Mono (data)
   ========================================================================== */

:root {
  --ink: #171a21;
  --ink-soft: #2a2f3a;
  --muted: #5b6472;
  --muted-2: #8b93a1;
  --bg: #eef1f6;
  --bg-tint: #e6eaf1;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --hairline: #dde3ec;
  --hairline-strong: #c9d2df;

  --crimson: #c8102e;
  --crimson-ink: #9c0c24;
  --crimson-wash: #fbe9ec;

  --amber: #b06a00;
  --amber-wash: #fbefdb;
  --blue: #1f5fbf;
  --blue-wash: #e5eefb;
  --green: #0f7a4d;
  --green-wash: #e0f3ea;
  --slate: #5b6472;
  --slate-wash: #eceff4;
  --violet: #6b3fb5;
  --violet-wash: #efe8fb;

  --radius: 10px;
  --radius-sm: 7px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(23, 26, 33, 0.05);
  --shadow: 0 6px 22px -12px rgba(23, 26, 33, 0.28);
  --sidebar-w: 256px;
  --maxw: 1180px;

  --font-display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --------------------------------------------------------------- layout ---- */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 16px;
  background: var(--ink);
  color: #e7eaf0;
  border-right: 1px solid #0d0f14;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 20px;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--crimson);
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.brand__cross {
  position: relative;
  width: 18px;
  height: 18px;
}
.brand__cross::before,
.brand__cross::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 1px;
}
.brand__cross::before { left: 7px; top: 0; width: 4px; height: 18px; }
.brand__cross::after { top: 7px; left: 0; width: 18px; height: 4px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand__sub {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #98a0b0;
}

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #b9c0cd;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4b525f;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.nav__link:hover { background: rgba(255, 255, 255, 0.05); color: #eef1f6; }
.nav__link.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.nav__link.is-active .nav__dot {
  background: var(--crimson);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.25);
}

.sidebar__foot { margin-top: auto; padding-top: 12px; }
.deskcard {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.deskcard__label {
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #98a0b0;
}
.deskcard__state {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.deskcard__state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
}
.deskcard.is-open .deskcard__state { color: #7ee2b0; }
.deskcard.is-open .deskcard__state::before {
  background: #34d47f;
  box-shadow: 0 0 0 3px rgba(52, 212, 127, 0.22);
}
.deskcard.is-closed .deskcard__state { color: #ff9aa8; }
.deskcard.is-closed .deskcard__state::before {
  background: var(--crimson);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.22);
}
.deskcard__hours { font-size: 11px; color: #8b93a1; font-family: var(--font-mono); }

/* --------------------------------------------------------------- main ------ */
.main { min-width: 0; }
.view {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 40px 72px;
}

/* page header */
.pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.pagehead__titles { min-width: 0; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson-ink);
  margin: 0 0 7px;
}
.pagehead h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.pagehead p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.pagehead__actions { display: flex; gap: 10px; flex-shrink: 0; }

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.crumb a { color: var(--crimson-ink); font-weight: 500; }
.crumb a:hover { text-decoration: underline; }

/* --------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
/* Buttons carry a filled background, so the global outline ring can be low
   contrast against it — give keyboard focus a distinct offset ring instead. */
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--crimson);
}
.btn--primary { background: var(--crimson); color: #fff; }
.btn--primary:hover { background: var(--crimson-ink); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--hairline-strong); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--muted-2); }
.btn--danger { background: var(--surface); color: var(--crimson-ink); border-color: #eeccd2; }
.btn--danger:hover { background: var(--crimson-wash); border-color: var(--crimson); }
.btn--sm { padding: 6px 11px; font-size: 12.5px; }

/* --------------------------------------------------------------- cards ----- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
}
.card__head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  margin: 0;
  letter-spacing: -0.01em;
}
.card__body { padding: 20px; }

/* --------------------------------------------------- dashboard / stats ----- */
.statgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--hairline-strong);
}
.stat--accent::before { background: var(--crimson); }
.stat__label {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__meta { margin-top: 8px; font-size: 12.5px; color: var(--muted-2); font-family: var(--font-mono); }

.breakdown { display: grid; gap: 12px; }
.breakdown__row {
  display: grid;
  grid-template-columns: 150px 1fr 44px;
  align-items: center;
  gap: 14px;
}
.breakdown__key { display: flex; }
.breakdown__bar {
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-tint);
  overflow: hidden;
}
.breakdown__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--crimson);
  min-width: 2px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.breakdown__count {
  font-family: var(--font-mono);
  font-weight: 500;
  text-align: right;
  font-size: 14px;
}
.fill--pending { background: var(--amber); }
.fill--in-progress { background: var(--blue); }
.fill--accepted { background: var(--green); }
.fill--s1 { background: var(--crimson); }
.fill--s2 { background: var(--amber); }
.fill--s3 { background: var(--blue); }
.fill--s4 { background: var(--slate); }

.dash-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* --------------------------------------------------------------- tables ---- */
.tablewrap { overflow-x: auto; }
table.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.grid thead th {
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-2);
  white-space: nowrap;
}
.grid tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}
.grid tbody tr { transition: background 0.12s ease; cursor: pointer; }
.grid tbody tr:hover { background: var(--surface-2); }
.grid tbody tr:last-child td { border-bottom: none; }
.grid .num { font-family: var(--font-mono); color: var(--muted-2); font-size: 12.5px; }
.cell-strong { font-weight: 600; }
.cell-sub { font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cell-mono { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.cell-clip { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* --------------------------------------------------------------- badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
.badge--plain::before { display: none; }
.b-crimson { color: var(--crimson-ink); background: var(--crimson-wash); border-color: #f3ccd3; }
.b-amber { color: var(--amber); background: var(--amber-wash); border-color: #f2dcb4; }
.b-blue { color: var(--blue); background: var(--blue-wash); border-color: #cbdcf6; }
.b-green { color: var(--green); background: var(--green-wash); border-color: #bfe6d1; }
.b-slate { color: var(--slate); background: var(--slate-wash); border-color: #d7dde6; }
.b-violet { color: var(--violet); background: var(--violet-wash); border-color: #ddccf3; }
.b-ink { color: #eef1f6; background: var(--ink-soft); border-color: var(--ink); }

.spoc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--crimson-ink);
}
.spoc::before { content: "★"; font-size: 12px; }

/* --------------------------------------------------------- detail panels --- */
.detailgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.deflist { display: grid; gap: 0; }
.deflist__row {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}
.deflist__row:last-child { border-bottom: none; }
.deflist__key {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.deflist__val { font-size: 14px; color: var(--ink); }
.deflist__val--mono { font-family: var(--font-mono); font-size: 13px; }
.stack-quote {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--surface-2);
  border-left: 3px solid var(--crimson);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 15px;
}

/* --------------------------------------------------- support-hours notice -- */
.hours-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #fff 0%, var(--surface-2) 100%);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--crimson);
  box-shadow: var(--shadow-sm);
}
.hours-banner__clock {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  min-width: 118px;
}
.hours-banner__body { flex: 1; min-width: 0; }
.hours-banner__title {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hours-banner__sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.hours-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.hours-pill.is-open { color: var(--green); background: var(--green-wash); }
.hours-pill.is-closed { color: var(--crimson-ink); background: var(--crimson-wash); }

/* --------------------------------------------------------------- forms ----- */
.form { display: grid; gap: 18px; max-width: 720px; }
.form__row { display: grid; gap: 7px; }
.form__row--split { grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form__row--split { grid-template-columns: 1fr; } }
.form label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.form label .req { color: var(--crimson); margin-left: 2px; }
.input,
.select,
.textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6472' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.hint { font-size: 12px; color: var(--muted-2); }
.checkline { display: flex; align-items: center; gap: 10px; }
.checkline input { width: 17px; height: 17px; accent-color: var(--crimson); }
.checkline span { font-size: 13.5px; color: var(--ink-soft); }
.form__foot {
  display: flex;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--hairline);
  margin-top: 4px;
  padding-top: 18px;
}

/* --------------------------------------------------- filters / toolbar ----- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.toolbar .select { width: auto; min-width: 168px; padding-top: 8px; padding-bottom: 8px; }
.toolbar__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 2px;
}
.toolbar__spacer { flex: 1; }

/* --------------------------------------------------------------- states ---- */
.state {
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
}
.state__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-tint);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 20px;
}
.state h3 { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--ink-soft); font-size: 16px; }
.state p { margin: 0; font-size: 13.5px; max-width: 340px; }
.state--error .state__icon { background: var(--crimson-wash); color: var(--crimson-ink); }

.spinner {
  width: 26px; height: 26px;
  border: 3px solid var(--hairline-strong);
  border-top-color: var(--crimson);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- toaster --- */
.toaster {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 60;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 260px;
  max-width: 380px;
  padding: 13px 15px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #eef1f6;
  box-shadow: var(--shadow);
  font-size: 13.5px;
  animation: toast-in 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  background: var(--muted-2);
}
.toast--success::before { background: #34d47f; }
.toast--error::before { background: var(--crimson); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* utility */
.muted { color: var(--muted); }
.stack-sm > * + * { margin-top: 18px; }
.nowrap { white-space: nowrap; }
.empty-dash { color: var(--muted-2); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    padding: 14px 18px;
  }
  .brand { padding: 0; margin-right: auto; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar__foot { margin: 0; padding: 0; width: 100%; }
  .deskcard { display: flex; align-items: center; gap: 12px; }
  .view { padding: 24px 20px 60px; }
  .statgrid { grid-template-columns: repeat(2, 1fr); }
  .dash-two, .detailgrid { grid-template-columns: 1fr; }
  .pagehead { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .statgrid { grid-template-columns: 1fr; }
  .breakdown__row { grid-template-columns: 110px 1fr 36px; }
}

/* Narrow viewports: tighten dense data grids so they stay readable within the
   horizontal scroll region rather than forcing wide scroll on small screens. */
@media (max-width: 700px) {
  table.grid { font-size: 12.5px; }
  .grid thead th { padding: 10px 12px; }
  .grid tbody td { padding: 11px 12px; }
  .cell-clip { max-width: 200px; }
}

/* ============================================================================
   Ops modules (task 2) — releases, maintenance log, vulnerabilities.
   Additive only; reuses the existing tokens, cards, tables and badges.
   ========================================================================== */

/* --- dashboard section heading (home ops section) --- */
.section-head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 34px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

/* --- inline alert banner (overdue findings) --- */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid var(--hairline);
  background: var(--surface-2);
}
.alert__mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.alert--danger {
  background: var(--crimson-wash);
  border-color: #f3ccd3;
  color: var(--crimson-ink);
}
.alert--danger .alert__mark { background: var(--crimson); color: #fff; }

/* --- checklist completion meter (release list) --- */
.checkmeter { display: flex; align-items: center; gap: 9px; min-width: 96px; }
.checkmeter__bar {
  flex: 1;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-tint);
  overflow: hidden;
}
.checkmeter__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--amber);
  min-width: 2px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.checkmeter__fill.is-complete { background: var(--green); }
.checkmeter__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  min-width: 30px;
  text-align: right;
}

/* --- verification checklist (release detail) --- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface-2);
}
.checklist__item.is-checked { background: var(--green-wash); border-color: #bfe6d1; }
.checklist__mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.checklist__item.is-checked .checklist__mark {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.checklist__body { min-width: 0; }
.checklist__desc { font-size: 14px; font-weight: 500; color: var(--ink); }
.checklist__by { font-size: 12px; color: var(--muted); margin-top: 2px; font-family: var(--font-mono); }

/* --- rollback timeline (release detail) --- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 6px; }
.timeline__item { position: relative; padding: 0 0 20px 22px; border-left: 2px solid var(--hairline); }
.timeline__item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline__dot {
  position: absolute;
  left: -7px; top: 2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-wash);
}
.timeline__body { margin-top: -3px; }
.timeline__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.timeline__what { font-weight: 600; font-size: 14px; }
.timeline__when { font-size: 12px; color: var(--muted); }
.timeline__why { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* --- deadline cell (vulnerability list + detail) --- */
.deadline { display: flex; flex-direction: column; gap: 2px; }
.deadline__hint { font-size: 11.5px; color: var(--muted-2); font-family: var(--font-mono); }
.deadline__hint.is-overdue { color: var(--crimson-ink); font-weight: 600; }
.deadline__val { font-family: var(--font-mono); font-size: 13px; }
.deadline__val.is-overdue { color: var(--crimson-ink); font-weight: 600; }

/* --- overdue row highlight (vulnerability list) --- */
.grid tbody tr.row--overdue { background: var(--crimson-wash); box-shadow: inset 3px 0 0 var(--crimson); }
.grid tbody tr.row--overdue:hover { background: #f8dbe0; }
.overdue-tag { margin-left: 8px; vertical-align: middle; font-size: 10px; letter-spacing: 0.06em; }

/* --- nested-collection repeater (release form) --- */
.repeater { display: grid; gap: 10px; }
.repeater__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.repeater__cell { min-width: 0; }
.repeater__cell--grow { flex: 1 1 40%; }
.repeater__cell--date, .repeater__cell--name { flex: 0 0 150px; }
.repeater__cell--check { flex: 0 0 auto; }
.repeater__check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.repeater__check input { width: 17px; height: 17px; accent-color: var(--crimson); }
.repeater__del { flex: 0 0 auto; color: var(--crimson-ink); padding: 6px 10px; }
@media (max-width: 640px) {
  .repeater__row { flex-wrap: wrap; }
  .repeater__cell--grow, .repeater__cell--date, .repeater__cell--name { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
