/* ============================================================
   SU Content Development Console — console.css
   Amazon / Seller University design tokens & component styles
   Req 18.1–18.4 (visual style & accessibility)
   ============================================================ */

/* ----------------------------------------------------------
   1. Design tokens (Req 18.1)
   ---------------------------------------------------------- */
:root {
  /* Amazon / SU palette */
  --squid-ink: #232F3E;      /* top bar, headings */
  --amazon-orange: #FF9900;  /* primary CTA, active pipeline stage */
  --ink: #161E2D;            /* body text */
  --muted: #6b7280;
  --line: #e3e6ea;           /* dividers, card borders */
  --link-blue: #0a6fd6;      /* links, secondary buttons */
  --error-red: #d13212;      /* required markers, QA failures */
  --success-green: #067d62;  /* done stages, passed checks */
  --warn-amber: #b45309;     /* blocked / awaiting decision */
  --bg: #f7f8fa;             /* page background behind white cards */
  --card: #ffffff;
  --radius: 6px;

  /* Chip status colors (Req 18.2) */
  --chip-done-bg: #eaf6f2;
  --chip-done-fg: var(--success-green);
  --chip-done-border: #9fd6c8;
  --chip-active-bg: #fff3e0;
  --chip-active-fg: #a35c00;
  --chip-active-border: var(--amazon-orange);
  --chip-blocked-bg: #fdf1e2;
  --chip-blocked-fg: var(--warn-amber);
  --chip-blocked-border: #e3a35c;
  --chip-pending-bg: #f1f3f5;
  --chip-pending-fg: var(--muted);
  --chip-pending-border: #d4d8dd;
  --chip-skipped-bg: #f7f8fa;
  --chip-skipped-fg: #9aa2ad;
  --chip-skipped-border: #e3e6ea;
  --chip-failed-bg: #fbeae7;
  --chip-failed-fg: var(--error-red);
  --chip-failed-border: #eab4a8;

  /* Focus ring (Req 18.3) */
  --focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px var(--link-blue);

  --shadow-card: 0 1px 2px rgba(22, 30, 45, 0.06);
  --shadow-pop: 0 8px 24px rgba(22, 30, 45, 0.18);

  --font-stack: "Amazon Ember", "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
}

/* ----------------------------------------------------------
   2. Base & typography
   ---------------------------------------------------------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-stack);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4 {
  color: var(--squid-ink);
  margin: 0 0 8px;
  line-height: 1.3;
}

h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }

a {
  color: var(--link-blue);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.muted { color: var(--muted); }

.section-heading {
  font-weight: 700;
  color: var(--squid-ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

/* ----------------------------------------------------------
   3. Visible keyboard focus indicators (Req 18.3)
   Links, buttons, inputs, and stage chips
   ---------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
.stage-chip:focus-visible,
.side-nav a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius);
}

/* Fallback for browsers without :focus-visible */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
.stage-chip:focus {
  outline: 2px solid var(--link-blue);
  outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
.stage-chip:focus:not(:focus-visible) {
  outline: none;
}

/* ----------------------------------------------------------
   4. App shell: top bar + sidebar (Req 18.1 squid-ink top bar)
   ---------------------------------------------------------- */
/* NOTE: selectors match the actual index.html class names
   (.topbar / .sidebar / .content / .nav-entry). */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: var(--squid-ink);
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

.topbar-brand { display: flex; align-items: center; gap: 10px; }

.topbar-product-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.topbar-user { margin-left: auto; }

.env-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  background: var(--amazon-orange);
  color: var(--squid-ink);
  text-transform: uppercase;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
}

.user-chip-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--amazon-orange);
  color: var(--squid-ink);
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar {
  position: fixed;
  top: 56px; bottom: 0; left: 0;
  width: 220px;
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  overflow-y: auto;
}

.sidebar-nav { list-style: none; margin: 0; padding: 0; }
.sidebar-nav li { margin-bottom: 2px; }

.nav-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 500;
}
.nav-entry:hover { background: var(--bg); text-decoration: none; }
.nav-entry.active {
  background: #fff3e0;
  color: var(--squid-ink);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--amazon-orange);
}

.content {
  margin: 56px 0 0 220px;
  padding: 24px 28px;
  min-height: calc(100vh - 56px);
}
.content > .page { max-width: 1160px; }

@media (max-width: 760px) {
  .sidebar { display: none; }
  .content { margin-left: 0; padding: 16px; }
}

/* ----------------------------------------------------------
   5. Cards (Req 18.1: white, 1px --line border, 6px radius)
   ---------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 16px;
  margin-bottom: 16px;
}

.card .card-title {
  font-weight: 700;
  color: var(--squid-ink);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.kpi-card {
  text-align: left;
}
.kpi-card .kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--squid-ink);
}
.kpi-card .kpi-label {
  color: var(--muted);
  font-size: 13px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

/* Empty-state panel */
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 40px 16px;
}
.empty-state .empty-title {
  font-weight: 700;
  color: var(--squid-ink);
  margin-bottom: 6px;
}

/* ----------------------------------------------------------
   6. Buttons (Req 18.1: orange primary, blue outline secondary)
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-stack);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary: solid Amazon Orange */
.btn-primary {
  background: var(--amazon-orange);
  border-color: #e68a00;
  color: var(--squid-ink);
}
.btn-primary:hover:not(:disabled) { background: #ffad33; }
.btn-primary:active:not(:disabled) { background: #e68a00; }

/* Secondary: blue outline */
.btn-secondary {
  background: var(--card);
  border-color: var(--link-blue);
  color: var(--link-blue);
}
.btn-secondary:hover:not(:disabled) { background: #f0f7fd; }
.btn-secondary:active:not(:disabled) { background: #e1eefb; }

/* Danger: for destructive confirms (demo reset) */
.btn-danger {
  background: var(--card);
  border-color: var(--error-red);
  color: var(--error-red);
}
.btn-danger:hover:not(:disabled) { background: #fdf3f1; }

/* Quiet/link-style button */
.btn-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--link-blue);
}
.btn-quiet:hover:not(:disabled) { text-decoration: underline; }

.btn-sm { padding: 4px 10px; font-size: 12px; }

/* ----------------------------------------------------------
   7. Badge pills
   ---------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge-new      { background: #e8f1fb; color: var(--link-blue);     border-color: #b9d7f2; }
.badge-round    { background: #f1eafd; color: #6d28d9;              border-color: #d6c5f7; }
.badge-running  { background: #fff3e0; color: #a35c00;              border-color: #f5d199; }
.badge-awaiting { background: #fdf1e2; color: var(--warn-amber);    border-color: #e3a35c; }
.badge-review   { background: #e8f1fb; color: var(--link-blue);     border-color: #b9d7f2; }
.badge-published{ background: #eaf6f2; color: var(--success-green); border-color: #9fd6c8; }
.badge-archived { background: #f1f3f5; color: var(--muted);         border-color: #d4d8dd; }
.badge-draft    { background: #f7f8fa; color: var(--muted);         border-color: #e3e6ea; }
.badge-error    { background: #fbeae7; color: var(--error-red);     border-color: #eab4a8; }

/* ----------------------------------------------------------
   8. Pipeline stage chips (Req 18.2, 18.5)
   green done / orange active / amber blocked / grey pending
   ---------------------------------------------------------- */
.pipeline {
  counter-reset: step;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  padding: 6px 0;
}

.stage-chip {
  counter-increment: step;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--chip-pending-border);
  background: var(--chip-pending-bg);
  color: var(--chip-pending-fg);
  font-family: var(--font-stack);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}
.stage-chip:hover { transform: translateY(-1px); }

/* Numbered step circle (label text always visible — Req 18.5) */
.stage-chip::before {
  content: counter(step);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--chip-pending-fg);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
/* Per-state circle color */
.stage-chip[data-status="done"]::before    { content: "\2713"; background: var(--chip-done-fg); }
.stage-chip[data-status="active"]::before   { background: var(--chip-active-fg); }
.stage-chip[data-status="blocked"]::before  { background: var(--chip-blocked-fg); }
.stage-chip[data-status="skipped"]::before  { background: var(--chip-skipped-fg); }
.stage-chip[data-status="failed"]::before   { background: var(--chip-failed-fg); }

.stage-chip[data-status="done"] {
  background: var(--chip-done-bg);
  color: var(--chip-done-fg);
  border-color: var(--chip-done-border);
}

.stage-chip[data-status="active"] {
  background: var(--chip-active-bg);
  color: var(--chip-active-fg);
  border-color: var(--chip-active-border);
  border-width: 2px;
  padding: 5px 13px 5px 9px; /* compensate thicker border */
}

.stage-chip[data-status="blocked"] {
  background: var(--chip-blocked-bg);
  color: var(--chip-blocked-fg);
  border-color: var(--chip-blocked-border);
  animation: chip-pulse 1.6s ease-in-out infinite;
}

.stage-chip[data-status="pending"] {
  background: var(--chip-pending-bg);
  color: var(--chip-pending-fg);
  border-color: var(--chip-pending-border);
}

.stage-chip[data-status="skipped"] {
  background: var(--chip-skipped-bg);
  color: var(--chip-skipped-fg);
  border-color: var(--chip-skipped-border);
  text-decoration: line-through;
}

.stage-chip[data-status="failed"] {
  background: var(--chip-failed-bg);
  color: var(--chip-failed-fg);
  border-color: var(--chip-failed-border);
}

/* Selected chip (artifact panel shown for this stage) */
.stage-chip.selected {
  box-shadow: 0 0 0 2px var(--squid-ink);
}

/* Animated pulse for blocked stages (Req 18.2 / 10.1) */
@keyframes chip-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(180, 83, 9, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(180, 83, 9, 0); }
  100% { box-shadow: 0 0 0 0 rgba(180, 83, 9, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .stage-chip[data-status="blocked"] { animation: none; }
}

/* Connector between chips */
.pipeline .stage-connector {
  width: 14px;
  height: 1px;
  background: var(--line);
  flex: none;
}

/* Mini progress bar for task rows */
.mini-progress {
  display: inline-block;
  width: 90px;
  height: 6px;
  border-radius: 999px;
  background: var(--chip-pending-bg);
  overflow: hidden;
  vertical-align: middle;
}
.mini-progress .fill {
  display: block;
  height: 100%;
  background: var(--success-green);
  border-radius: 999px;
}

/* ----------------------------------------------------------
   9. Forms (Req 18.4: red required asterisk; 18.6 labels)
   ---------------------------------------------------------- */
.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--squid-ink);
  margin-bottom: 4px;
}

/* Red required-asterisk marker, adjacent to label text (Req 18.4) */
.required-marker,
label.required::after {
  color: var(--error-red);
  font-weight: 700;
  margin-left: 3px;
}
label.required::after { content: "*"; }

input[type="text"],
input[type="email"],
input[type="search"],
select,
textarea {
  width: 100%;
  max-width: 480px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-stack);
  font-size: 13px;
  color: var(--ink);
  background: var(--card);
}

input::placeholder, textarea::placeholder { color: #9aa2ad; }

.field-error {
  color: var(--error-red);
  font-size: 12px;
  margin-top: 4px;
}

input.invalid, select.invalid, textarea.invalid {
  border-color: var(--error-red);
}

.inline-message {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: #fbeae7;
  color: var(--error-red);
  border: 1px solid #eab4a8;
  font-size: 13px;
}

/* Inline error chip (upload rejection) */
.error-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fbeae7;
  color: var(--error-red);
  border: 1px solid #eab4a8;
  font-size: 12px;
  font-weight: 600;
}

/* Upload dropzone */
.dropzone {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.dropzone.dragover {
  border-color: var(--amazon-orange);
  background: #fff8ee;
}

/* ----------------------------------------------------------
   10. Toasts (Req 17.1–17.3)
   ---------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.toast {
  background: var(--squid-ink);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  font-size: 13px;
  line-height: 1.4;
  animation: toast-in 0.2s ease-out;
}

.toast-success { border-left: 4px solid var(--success-green); }
.toast-warn    { border-left: 4px solid var(--warn-amber); }
.toast-error   { border-left: 4px solid var(--error-red); }
.toast-info    { border-left: 4px solid var(--link-blue); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------
   11. Confirm dialog (Req 17.4–17.5)
   ---------------------------------------------------------- */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(22, 30, 45, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  width: min(420px, calc(100vw - 40px));
  padding: 20px;
}

.dialog .dialog-title {
  font-weight: 700;
  color: var(--squid-ink);
  margin: 0 0 8px;
  font-size: 16px;
}

.dialog .dialog-body {
  color: var(--ink);
  margin-bottom: 16px;
}

.dialog .dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ----------------------------------------------------------
   12. Tables (task list, history, change list, QA checklist)
   ---------------------------------------------------------- */
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  font-weight: 700;
  color: var(--squid-ink);
  padding: 8px 10px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}

.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table tr.clickable { cursor: pointer; }
.data-table tr.clickable:hover td { background: var(--bg); }

.data-table tr:focus-visible td {
  background: #f0f7fd;
}

/* Group header rows (history grouped by course/module) */
.data-table tr.group-header td {
  background: var(--bg);
  font-weight: 700;
  color: var(--squid-ink);
  border-bottom: 1px solid var(--line);
}

/* Pass / fail markers for QA checklist */
.check-pass { color: var(--success-green); font-weight: 700; }
.check-fail { color: var(--error-red); font-weight: 700; }

/* Diff summary grid */
.diff-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(80px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.diff-summary .diff-cell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  background: var(--card);
}
.diff-summary .diff-count {
  font-size: 20px;
  font-weight: 700;
  color: var(--squid-ink);
}
.diff-summary .diff-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 14px;
}
.filter-bar .form-field { margin-bottom: 0; }
.filter-bar input, .filter-bar select { max-width: 200px; }

/* ----------------------------------------------------------
   13. Step guide + action list (workflow made concrete)
   ---------------------------------------------------------- */
/* The step guide and artifact panels sit inside the work card; keep them
   flat (no heavy shadow) so nested cards don't look boxy. */
.artifact-panel { box-shadow: none; }
.artifact-panel.stage-info { background: #fcfcfd; }

/* Step guidance rows: Assistant does X · You do Y */
.step-line {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px; border-radius: 6px; font-size: 13px; margin-bottom: 6px;
}
.step-does { background: #f4f7fb; }
.step-action { background: #fafafa; border-left: 3px solid var(--line); }
.step-action.is-now { background: #fff7ef; border-left-color: var(--amazon-orange); }
.step-action.is-done { background: #eaf6f2; border-left-color: var(--success-green); }
.step-role {
  flex: none; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.4px; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  margin-top: 1px;
}
.role-ai { background: #e8f1fb; color: var(--link-blue); }
.role-you { background: #fff3e0; color: #a35c00; }
.step-action.is-done .role-you { background: #eaf6f2; color: var(--success-green); }
.step-text { flex: 1; }

/* Slide review (the courseware shown as slides for 一审 / 二审) */
.slide-review .slide-stage { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.slide-frame {
  position: relative;
  flex: 1 1 420px; max-width: 640px;
  aspect-ratio: 16 / 9;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: 26px 30px;
  overflow: hidden;
}
.slide-badge { position: absolute; top: 12px; right: 12px; }
.slide-titlebar { width: 42%; height: 7px; border-radius: 4px; background: var(--amazon-orange); margin-bottom: 18px; }
.slide-heading { font-size: 17px; font-weight: 700; color: var(--squid-ink); margin-bottom: 14px; }
.slide-lines .ln { height: 9px; border-radius: 3px; background: #eef0f2; margin: 9px 0; }
.slide-realtext {
  font-size: 12px; line-height: 1.55; color: var(--ink); white-space: pre-wrap;
  overflow: auto; max-height: 100%;
}

.slide-callout {
  flex: 1 1 260px; min-width: 240px;
  border: 1px solid var(--chip-active-border);
  background: #fff8ee; border-radius: 8px; padding: 12px 14px;
}
.slide-callout-title { font-weight: 700; color: var(--squid-ink); font-size: 12px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.4px; }
.before-after { display: flex; flex-direction: column; gap: 8px; }
.ba-col { }
.ba-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); margin-bottom: 2px; }
.ba-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.ba-new { font-size: 13px; color: var(--ink); font-weight: 600; }

.filmstrip {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 2px 4px; margin-top: 6px;
  border-top: 1px solid var(--line);
}
.thumb {
  flex: none; width: 108px; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: 5px; background: #fff;
  cursor: pointer; position: relative;
  display: flex; align-items: flex-end; padding: 5px 7px;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}
.thumb:hover { transform: translateY(-1px); }
.thumb .thumb-no { font-size: 11px; font-weight: 700; color: var(--muted); }
.thumb .thumb-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--amazon-orange); }
.thumb.changed-modified { border-color: var(--amazon-orange); box-shadow: inset 0 0 0 2px #ffe6c7; }
.thumb.changed-added    { border-color: var(--success-green); box-shadow: inset 0 0 0 2px #c6ece1; }
.thumb.changed-added .thumb-dot { background: var(--success-green); }
.thumb.changed-removed  { border-color: var(--error-red); opacity: 0.6; }
.thumb.changed-removed .thumb-dot { background: var(--error-red); }
.thumb.changed-shifted  { border-color: var(--link-blue); box-shadow: inset 0 0 0 2px #cfe3f7; }
.thumb.changed-shifted .thumb-dot { background: var(--link-blue); }
.thumb.selected { outline: 2px solid var(--squid-ink); outline-offset: 1px; }
.thumb.signed { border-color: var(--success-green); }

/* Real rendered slide images */
.slide-frame > .slide-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #fff;
}
.thumb .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.thumb .thumb-no { position: relative; z-index: 1; background: rgba(255,255,255,0.85); padding: 0 3px; border-radius: 3px; }
.thumb .thumb-check { position: absolute; bottom: 5px; right: 6px; z-index: 1; color: var(--success-green); font-weight: 700; font-size: 12px; background: rgba(255,255,255,0.85); border-radius: 3px; padding: 0 2px; }

/* Slide review layout: slide on the left, inline per-page sign-off on the right */
.slide-review-layout { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.slide-review-layout .slide-stage { flex: 1 1 460px; }
.slide-side {
  flex: 1 1 240px; min-width: 240px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fcfcfd; padding: 12px 14px;
}
.sside-head { font-weight: 700; color: var(--squid-ink); margin-bottom: 10px; }
.sside-signoff { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; margin-bottom: 12px; }
.sside-signoff input { width: 16px; height: 16px; }
.sside-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); margin-bottom: 6px; }
.sside-comment {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 6px; padding: 8px;
  font: inherit; font-size: 13px; resize: vertical;
}
.slide-review-foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
}
.slide-review-count { color: var(--muted); font-size: 13px; }

/* Read-only QA context at 二审 (not a decision) */
.qa-context-list { margin: 8px 0 0; padding-left: 18px; }
.qa-context-list li { margin: 4px 0; font-size: 13px; }
.qa-context-rule { font-weight: 600; color: var(--squid-ink); }
.qa-context-detail { color: var(--muted); }

/* ----------------------------------------------------------
   14. Fact tiles (course detail) + stat tiles (catalog)
   ---------------------------------------------------------- */
.fact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px; margin-top: 4px;
}
.fact {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; background: #fcfcfd;
}
.fact .fact-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--muted); margin-bottom: 3px;
}
.fact .fact-value { font-size: 13px; font-weight: 600; color: var(--ink); word-break: break-word; }
.fact .fact-value a { font-weight: 600; }

.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 16px; }
.stat {
  flex: 1; min-width: 150px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 12px 16px; box-shadow: var(--shadow-card);
}
.stat .stat-value { font-size: 26px; font-weight: 700; color: var(--squid-ink); line-height: 1.1; }
.stat .stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat.accent { border-left: 3px solid var(--amazon-orange); }

/* Course detail header */
.course-header { margin-bottom: 4px; }
.course-header h1 { margin-bottom: 2px; }

/* Iteration selector row */
.iter-bar .btn { border-radius: 999px; }

/* ----------------------------------------------------------
   16. Work banners (status / error / preview notices above the pipeline)
   ---------------------------------------------------------- */
.work-banner {
  padding: 8px 12px; border-radius: 6px; margin-bottom: 10px; font-size: 13px;
  background: #eef4fb; border: 1px solid #cfe0f3; color: var(--squid-ink);
}
.work-banner-err { background: #fbeae7; border-color: #eab4a8; color: var(--error-red); }
.work-banner-sim { background: #fff7ef; border-color: #f5d199; color: #a35c00; }

/* Per-page review & sign-off (二审 review loop) */
.page-review { border-left: 3px solid var(--amazon-orange); }
.page-review-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.page-review-row {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fcfcfd;
}
.page-review-no { flex: none; font-weight: 700; font-size: 12px; color: var(--squid-ink); width: 64px; }
.page-review-row input[type="text"] { max-width: none; }
.page-review-footer { margin-top: 10px; }

/* ----------------------------------------------------------
   17. Utility
   ---------------------------------------------------------- */
.flex-row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ----------------------------------------------------------
   18. Content catalog, course detail, FLAT via Quick, slide review
       toggle, Settings hints (2026-09-23 additions)

   These classes were introduced by the catalog/course-detail/settings
   rework and the Quick-based FLAT panel. Several of them still carry
   inline fallback styles in JS; the rules below only add what the
   inline styles do not set (or agree with them), so the two never fight.
   ---------------------------------------------------------- */

/* --- Catalog filter bar: wraps to several rows, each field ~150px --- */
.catalog-filters { row-gap: 12px; }
.catalog-filters .form-field { min-width: 150px; flex: 0 1 auto; }
.catalog-filters .form-field input,
.catalog-filters .form-field select { min-width: 150px; }
/* Localization triple (region / status / flag) sits inside one field. */
.catalog-filters .form-field > div > select { min-width: 0; width: auto; max-width: 150px; }
.catalog-filters .form-field > div > select + select { margin-left: 0; }
.catalog-filters .catalog-toggles label { margin-bottom: 0; font-weight: 500; white-space: nowrap; }
.catalog-filters .catalog-toggles input[type="checkbox"] { vertical-align: middle; margin-right: 4px; }
.cat-clear { align-self: flex-end; }

/* Result count line above the table */
.catalog-count { color: var(--muted); font-size: 12px; margin: 0 0 8px; }

/* --- Catalog table column sizing ---
   Course column gets guaranteed room; launch-site chips wrap inside a
   bounded cell instead of stretching the row. */
.page-catalog .data-table { table-layout: auto; }
.page-catalog .data-table td.col-course { min-width: 260px; width: 34%; }
.page-catalog .data-table td.col-sites { max-width: 220px; }
.col-sites .site-chip { margin: 0 4px 4px 0; }

/* Module ID shown as the third line of the Course cell: ellipsize
   rather than widen the column. */
.col-course code.module-id {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  font-size: 11px;
  margin-top: 2px;
}

/* Module ID: monospace, copy-on-click */
code.module-id {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  cursor: copy;
  white-space: nowrap;
  color: var(--ink);
}
code.module-id:hover { border-color: #c9ced5; }
code.module-id.muted { background: none; border-color: transparent; cursor: default; color: var(--muted); }

/* Launch-site chips: compact variant of .badge */
.site-chip { font-size: 11px; padding: 1px 7px; font-weight: 600; }

/* Localization "not tracked": light gray outline chip */
.badge.loc-untracked {
  background: var(--card);
  color: var(--muted);
  border-color: #d4d8dd;
  font-weight: 600;
}

/* --- Course detail --- */
.course-header { margin-bottom: 8px; }

/* Module ID line under the course title, and module IDs inside fact tiles:
   36-char GUIDs must wrap instead of overflowing the tile. */
.course-module-line {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.course-module-line code.module-id,
.fact-value code.module-id {
  white-space: normal;
  word-break: break-all;
  max-width: 100%;
}
/* Fact tiles never overflow the grid, whatever the value length. */
.fact { min-width: 0; overflow-wrap: anywhere; }

.course-status-select,
.loc-status-select {
  width: auto;
  max-width: none;
  font: inherit;
  font-size: 12px;
  padding: 3px 6px;
  line-height: 1.3;
}
.status-hint { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.edit-details-btn { padding: 4px 10px; font-size: 12px; }
form.course-edit-form .form-field { margin-bottom: 10px; }
form.course-edit-form input,
form.course-edit-form select,
form.course-edit-form textarea { max-width: none; }

.course-localization .loc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.course-localization .loc-row:last-child { border-bottom: none; }

/* --- FLAT review via Quick (C05) --- */
.quick-review .quick-packet {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fcfcfd;
  padding: 12px;
  margin-bottom: 12px;
}
.quick-review .quick-packet h4,
.quick-review .quick-verdict h4 { margin: 0 0 6px; font-size: 14px; }
.quick-packet-list { margin: 6px 0 10px; padding-left: 18px; font-size: 13px; }
.quick-packet-list li { margin: 2px 0; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* An <a> that must look like .btn (the .btn rules are class-based, so they
   already apply; this just neutralizes anchor defaults and hover underline). */
a.quick-open {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
a.quick-open:hover { text-decoration: none; }
.quick-open-hint { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
form.quick-verdict { margin-top: 12px; }
.quick-verdict-options { display: flex; flex-wrap: wrap; gap: 16px; margin: 6px 0 8px; font-size: 13px; }
.quick-verdict-options label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.quick-verdict-status { margin: 0 0 8px; font-size: 13px; }
textarea.quick-notes {
  width: 100%;
  max-width: none;
  min-height: 72px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 10px;
  font-family: var(--font-stack);
  font-size: 13px;
  color: var(--ink);
  resize: vertical;
}
.quick-verdict-msg { color: var(--warn-amber); font-size: 12px; margin: 6px 0 0; }
.quick-footer { color: var(--muted); font-size: 12px; margin: 12px 0 0; }

/* --- Slide review: "Show unchanged pages too" toggle --- */
.slide-review .slide-review-showall,
.slide-review label[for^="slide-review-showall-"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.slide-review .slide-review-showall input[type="checkbox"] { margin: 0; }

/* --- Settings --- */
.field-hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.import-errors { color: var(--muted); font-size: 12px; white-space: pre-line; }
/* input.invalid keeps the existing error color (section 9); also outline the
   invalid field so it reads even when the border blends with the card. */
input.invalid,
select.invalid,
textarea.invalid { box-shadow: 0 0 0 1px var(--error-red) inset; }

/* ----------------------------------------------------------
   19. Course metadata governance
       Provenance, active state, planning reminders, Record timeline
   ---------------------------------------------------------- */

/* Compact, keyboard-accessible provenance hint shown beside fact labels. */
.prov-hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  vertical-align: middle;
  text-transform: none;
  letter-spacing: normal;
}

.prov-hint-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #c9ced5;
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  font-family: var(--font-stack);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  cursor: help;
}

.prov-hint-btn:hover,
.prov-hint-btn:focus-visible {
  border-color: var(--link-blue);
  color: var(--link-blue);
  background: #f0f7fd;
}

.prov-tip {
  position: absolute;
  z-index: 120;
  left: 50%;
  bottom: calc(100% + 8px);
  width: max-content;
  min-width: 160px;
  max-width: 260px;
  padding: 7px 9px;
  border: 1px solid #d4d8dd;
  border-radius: var(--radius);
  background: #f1f3f5;
  color: var(--ink);
  box-shadow: var(--shadow-pop);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  transform: translateX(-50%) translateY(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
}

.prov-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 1px solid #d4d8dd;
  border-bottom: 1px solid #d4d8dd;
  background: #f1f3f5;
  transform: translate(-50%, -4px) rotate(45deg);
}

.prov-hint:hover .prov-tip,
.prov-hint:focus-within .prov-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.prov-hint.prov-tip-hidden .prov-tip {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(3px);
}

/* Planning and audit badges extend the established status-pill palette. */
.badge-planned {
  background: var(--chip-active-bg);
  color: var(--chip-active-fg);
  border-color: #f5d199;
}
.badge-overdue {
  background: var(--chip-failed-bg);
  color: var(--error-red);
  border-color: var(--chip-failed-border);
}
.badge-system {
  background: #e8f1fb;
  color: var(--link-blue);
  border-color: #b9d7f2;
}

/* Unified Record entries: collapsed summaries with compact diff tables. */
.tl-entry {
  margin: 0 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fcfcfd;
  overflow: hidden;
}

.tl-entry > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.tl-entry > summary::-webkit-details-marker { display: none; }
.tl-entry > summary::before {
  content: "\203A";
  flex: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.12s ease;
}
.tl-entry[open] > summary::before { transform: rotate(90deg); }
.tl-entry > summary:hover { background: var(--bg); }
.tl-entry[open] > summary { border-bottom: 1px solid var(--line); }

.tl-entry table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  font-size: 12px;
}
.tl-entry th,
.tl-entry td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.tl-entry th {
  color: var(--squid-ink);
  background: var(--bg);
  font-weight: 700;
}
.tl-entry tr:last-child td { border-bottom: 0; }
.tl-entry td details { margin: 2px 0; }
.tl-entry td details summary { color: var(--link-blue); cursor: pointer; }

/* Catalog reminder doubles as the action that applies the due-only filter. */
.reminder-banner {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #f5d199;
  border-left: 4px solid var(--amazon-orange);
  border-radius: var(--radius);
  background: #fff8ee;
  color: var(--squid-ink);
  font-family: var(--font-stack);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background 0.12s ease, border-color 0.12s ease;
}
.reminder-banner:hover {
  background: var(--chip-active-bg);
  border-color: var(--amazon-orange);
}
.reminder-banner:active { background: #ffe9ca; }

/* Form feedback and overdue messaging remain visible without relying on color alone. */
.field-error {
  display: block;
  color: var(--error-red);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 4px;
}
.text-warn {
  color: var(--warn-amber);
  font-weight: 600;
}

/* Work Card controls share one wrapping action row; locked-course guidance is explicit. */
.work-card-actions,
.work-button-group,
.work-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.work-card-actions .btn:disabled,
.work-button-group .btn:disabled,
.work-actions .btn:disabled {
  opacity: 0.48;
  box-shadow: none;
  filter: grayscale(0.2);
}

.work-disabled-hint,
.work-card-disabled-note,
.work-lock-note {
  margin: 10px 0 0;
  padding: 8px 10px;
  border: 1px solid var(--chip-pending-border);
  border-left: 3px solid var(--muted);
  border-radius: var(--radius);
  background: var(--chip-pending-bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 560px) {
  .prov-tip {
    left: 0;
    max-width: min(260px, calc(100vw - 40px));
    transform: translateX(0) translateY(3px);
  }
  .prov-tip::after { left: 9px; }
  .prov-hint:hover .prov-tip,
  .prov-hint:focus-within .prov-tip {
    transform: translateX(0) translateY(0);
  }
  .prov-hint.prov-tip-hidden .prov-tip {
    transform: translateX(0) translateY(3px);
  }
  .work-card-actions,
  .work-button-group,
  .work-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Grouped key-value metadata card (task 13.5). */
.detail-group {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.detail-group:first-child { border-top: 0; }
.detail-group h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
.detail-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  row-gap: 6px;
  column-gap: 16px;
}
/* Scoped because the History page also uses .detail-row on table rows. */
.detail-list > .detail-row { display: contents; }
.detail-list dt { color: var(--muted); }
.detail-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.detail-lessons {
  margin: 0;
  padding-left: 20px;
}
.mono {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.btn-copy {
  margin-left: 6px;
  font-size: 11px;
}
.active-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.active-action { white-space: nowrap; }

@media (max-width: 640px) {
  .detail-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .prov-tip,
  .tl-entry > summary::before,
  .reminder-banner {
    transition: none;
  }
}

/* ============================================================
   20. Odyssey launchpad visual system
       Editorial Route Index, scoped to the Odyssey shell
   ============================================================ */

/* Odyssey tokens are intentionally scoped. Existing cards, tables, pipeline,
   Module details, and Settings retain the established console tokens. */
.universal-header,
.shell-mode-launchpad {
  --ody-canvas: #f4f0e8;
  --ody-paper: #fbf8f2;
  --ody-ink: #171816;
  --ody-muted: #5f5b53;
  --ody-rule: #c8c1b5;
  --ody-rule-strong: #817b71;
  --ody-orange: #8f3b00;
  --ody-orange-bright: #e87924;
  --ody-focus: #145ea8;
  --ody-error: #941f1f;
  --ody-success: #176b4d;
  --ody-inverse-text: #fffdf8;
  --ody-header-h: 52px;
  --ody-content-max: 1440px;
  --ody-route-min-h: 82px;
  --ody-space-1: 4px;
  --ody-space-2: 8px;
  --ody-space-3: 12px;
  --ody-space-4: 16px;
  --ody-space-6: 24px;
  --ody-space-8: 32px;
  --ody-space-12: 48px;
  --ody-space-16: 64px;
  --ody-focus-ring: 0 0 0 3px var(--ody-canvas), 0 0 0 6px var(--ody-focus);
  --ody-ease: cubic-bezier(.2, .8, .2, 1);
}

/* Universal header and secondary navigation */
.universal-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 150;
  display: flex;
  align-items: center;
  min-width: 0;
  height: var(--ody-header-h);
  gap: var(--ody-space-4);
  padding: 0 clamp(16px, 3vw, 48px);
  border: 0;
  border-bottom: 1px solid var(--ody-rule);
  background: var(--ody-paper);
  color: var(--ody-ink);
  box-shadow: none;
}

.universal-header .topbar-brand,
.universal-header .universal-header-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--ody-space-3);
}

.universal-header .topbar-product-name,
.universal-header .universal-header-home {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ody-ink);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.universal-header .topbar-product-name:hover,
.universal-header .universal-header-home:hover {
  text-decoration: underline;
  text-decoration-color: var(--ody-orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.universal-header .env-badge {
  padding: 2px 7px;
  border: 1px solid var(--ody-rule);
  border-radius: 2px;
  background: transparent;
  color: var(--ody-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.universal-header .topbar-user,
.universal-header .universal-header-actions {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--ody-space-2);
  margin-left: auto;
}

.universal-header .ody-secondary-nav,
.universal-header .universal-header-secondary {
  display: flex;
  align-items: center;
  gap: var(--ody-space-2);
}

.universal-header .ody-secondary-link,
.universal-header .universal-header-secondary a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 10px;
  border-bottom: 2px solid transparent;
  color: var(--ody-ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.universal-header .ody-secondary-link:hover,
.universal-header .universal-header-secondary a:hover {
  border-bottom-color: var(--ody-ink);
  text-decoration: none;
}

.universal-header .user-chip,
.universal-header .ody-menu-trigger,
.universal-header .universal-header-menu-trigger {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: var(--ody-space-2);
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--ody-ink);
  font-family: var(--font-stack);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}

.universal-header .user-chip:hover,
.universal-header .ody-menu-trigger:hover,
.universal-header .universal-header-menu-trigger:hover,
.universal-header .ody-menu-trigger[aria-expanded="true"],
.universal-header .universal-header-menu-trigger[aria-expanded="true"] {
  border-color: var(--ody-rule-strong);
  background: var(--ody-canvas);
}

.universal-header .user-chip-avatar {
  background: var(--ody-orange-bright);
  color: var(--ody-ink);
}

.universal-header .ody-menu,
.universal-header .universal-header-menu {
  position: relative;
}

.universal-header .ody-menu-panel,
.universal-header .universal-header-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 170;
  width: max-content;
  min-width: 210px;
  max-width: min(320px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid var(--ody-rule-strong);
  border-radius: 2px;
  background: var(--ody-paper);
  color: var(--ody-ink);
  box-shadow: none;
}

.universal-header .ody-menu-panel[hidden],
.universal-header .universal-header-menu-panel[hidden] {
  display: none;
}

.universal-header .ody-menu-item,
.universal-header .universal-header-menu-item {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 10px;
  border-left: 3px solid transparent;
  color: var(--ody-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.universal-header .ody-menu-item:hover,
.universal-header .universal-header-menu-item:hover {
  border-left-color: var(--ody-orange);
  background: var(--ody-canvas);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.universal-header a:focus-visible,
.universal-header button:focus-visible,
.shell-mode-launchpad .ody-route-row:focus-visible,
.shell-mode-launchpad .ody-home-retry:focus-visible,
.shell-mode-launchpad .ody-state-primary-action:focus-visible,
.shell-mode-launchpad .ody-state-alternative-link:focus-visible {
  outline: 3px solid var(--ody-focus);
  outline-offset: 3px;
  border-radius: 1px;
  box-shadow: none;
}

/* Transitional shell modes. Launchpad becomes a full-width canvas while the
   internal mode keeps the existing sidebar width and body offset. */
.shell-mode-launchpad {
  min-width: 320px;
  background: var(--ody-canvas);
  color: var(--ody-ink);
}

.shell-mode-launchpad .sidebar {
  display: none !important;
}

.shell-mode-launchpad .content {
  min-height: calc(100vh - var(--ody-header-h));
  min-height: calc(100dvh - var(--ody-header-h));
  margin: var(--ody-header-h) 0 0;
  padding: 0;
  background: var(--ody-canvas);
}

.shell-mode-launchpad .content > .page {
  max-width: none;
}

.shell-mode-internal .sidebar {
  top: 52px;
}

.shell-mode-internal .content {
  min-height: calc(100vh - 52px);
  margin-top: 52px;
}

/* Editorial launchpad */
.shell-mode-launchpad .ody-home {
  display: grid;
  grid-template-columns: minmax(300px, 2fr) minmax(560px, 3fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  column-gap: clamp(40px, 5vw, 88px);
  width: 100%;
  max-width: var(--ody-content-max);
  min-height: calc(100vh - var(--ody-header-h));
  min-height: calc(100dvh - var(--ody-header-h));
  margin: 0 auto;
  padding: clamp(24px, 4vh, 48px) clamp(32px, 4vw, 64px);
  overflow: clip;
  color: var(--ody-ink);
}

.shell-mode-launchpad .ody-home-hero {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  align-self: stretch;
  padding-top: clamp(4px, 2vh, 24px);
}

.shell-mode-launchpad .ody-home-eyebrow,
.shell-mode-launchpad .ody-state-eyebrow {
  margin: 0 0 var(--ody-space-6);
  color: var(--ody-orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.shell-mode-launchpad .ody-home-title {
  max-width: 100%;
  margin: 0;
  color: var(--ody-ink);
  font-size: clamp(56px, 7.4vw, 106px);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.92;
  overflow-wrap: normal;
}

.shell-mode-launchpad .ody-home-purpose {
  max-width: 29ch;
  margin: clamp(24px, 4vh, 44px) 0 0;
  color: var(--ody-ink);
  font-size: clamp(18px, 1.65vw, 24px);
  font-weight: 450;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

/* The orbit is inert and carries no unique information. */
.shell-mode-launchpad .ody-home-orbit {
  position: relative;
  width: min(100%, 360px);
  height: clamp(92px, 17vh, 164px);
  margin-top: auto;
  pointer-events: none;
  user-select: none;
}

.shell-mode-launchpad .ody-home-orbit-path {
  position: absolute;
  left: 4%;
  right: 2%;
  top: 28%;
  height: 54%;
  border: 1px solid var(--ody-rule-strong);
  border-radius: 50%;
  transform: rotate(-7deg);
  transform-origin: center;
}

.shell-mode-launchpad .ody-home-orbit-origin,
.shell-mode-launchpad .ody-home-orbit-destination {
  position: absolute;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 2px solid var(--ody-ink);
  border-radius: 50%;
  background: var(--ody-canvas);
}

.shell-mode-launchpad .ody-home-orbit-origin {
  left: 5%;
  top: 59%;
}

.shell-mode-launchpad .ody-home-orbit-destination {
  right: 3%;
  top: 32%;
  border-color: var(--ody-orange);
  background: var(--ody-orange-bright);
}

.shell-mode-launchpad .ody-home-orbit[hidden],
.shell-mode-launchpad [data-decoration="hidden"] .ody-home-orbit,
.shell-mode-launchpad .ody-hide-decoration .ody-home-orbit {
  display: none;
}

.shell-mode-launchpad .ody-home-lifecycles,
.shell-mode-launchpad .ody-home-access-guidance,
.shell-mode-launchpad .ody-route-index {
  grid-column: 2;
  min-width: 0;
}

.shell-mode-launchpad .ody-home-lifecycles {
  grid-row: 1;
}

.shell-mode-launchpad .ody-home-access-guidance {
  grid-row: 2;
}

.shell-mode-launchpad .ody-route-index {
  grid-row: 3;
  align-self: center;
}

.shell-mode-launchpad .ody-home-lifecycle,
.shell-mode-launchpad .ody-home-access-guidance {
  margin: 0 0 var(--ody-space-3);
  padding: 10px 12px;
  border: 1px solid var(--ody-rule-strong);
  border-left: 4px solid var(--ody-ink);
  background: var(--ody-paper);
  color: var(--ody-ink);
}

.shell-mode-launchpad .ody-home-lifecycle + .ody-home-lifecycle {
  margin-top: var(--ody-space-2);
}

.shell-mode-launchpad .ody-home-lifecycle-title,
.shell-mode-launchpad .ody-home-access-guidance-title {
  margin: 0 0 2px;
  color: var(--ody-ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.shell-mode-launchpad .ody-home-lifecycle-message,
.shell-mode-launchpad .ody-home-lifecycle-detail,
.shell-mode-launchpad .ody-home-access-guidance-message,
.shell-mode-launchpad .ody-home-access-guidance-next {
  margin: 0;
  color: var(--ody-ink);
  font-size: 13px;
  line-height: 1.45;
}

.shell-mode-launchpad .ody-home-lifecycle-detail,
.shell-mode-launchpad .ody-home-access-guidance-next {
  margin-top: 2px;
  color: var(--ody-muted);
}

.shell-mode-launchpad .ody-home-retry {
  min-width: 44px;
  min-height: 44px;
  margin-top: var(--ody-space-2);
  padding: 8px 12px;
  border: 1px solid var(--ody-ink);
  border-radius: 1px;
  background: transparent;
  color: var(--ody-ink);
  font-family: var(--font-stack);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.shell-mode-launchpad .ody-home-retry:hover {
  background: var(--ody-ink);
  color: var(--ody-inverse-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shell-mode-launchpad .ody-route-index-title {
  margin: 0 0 var(--ody-space-3);
  color: var(--ody-muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.shell-mode-launchpad .ody-route-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ody-rule-strong);
  list-style: none;
}

.shell-mode-launchpad .ody-route-item {
  min-width: 0;
  border-bottom: 1px solid var(--ody-rule-strong);
}

.shell-mode-launchpad .ody-route-row {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 30px;
  min-width: 0;
  min-height: var(--ody-route-min-h);
  align-items: center;
  gap: clamp(12px, 1.7vw, 24px);
  padding: 12px 6px;
  border: 0;
  border-left: 4px solid transparent;
  background: transparent;
  color: var(--ody-ink);
  text-decoration: none;
}

.shell-mode-launchpad a.ody-route-row {
  cursor: pointer;
  transition: background-color 160ms var(--ody-ease), color 160ms var(--ody-ease), border-color 160ms var(--ody-ease);
}

.shell-mode-launchpad a.ody-route-row:hover,
.shell-mode-launchpad a.ody-route-row:focus-visible {
  border-left-color: var(--ody-orange-bright);
  background: var(--ody-ink);
  color: var(--ody-inverse-text);
  text-decoration: none;
}

.shell-mode-launchpad a.ody-route-row:hover .ody-route-name,
.shell-mode-launchpad a.ody-route-row:focus-visible .ody-route-name {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.shell-mode-launchpad .ody-route-number {
  align-self: start;
  padding-top: 7px;
  color: currentColor;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.shell-mode-launchpad .ody-route-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.shell-mode-launchpad .ody-route-name {
  display: block;
  color: currentColor;
  font-size: clamp(25px, 2.35vw, 36px);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.05;
  overflow-wrap: normal;
}

.shell-mode-launchpad .ody-route-purpose,
.shell-mode-launchpad .ody-route-reason {
  display: block;
  max-width: 64ch;
  margin-top: 4px;
  color: var(--ody-muted);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 450;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.shell-mode-launchpad a.ody-route-row:hover .ody-route-purpose,
.shell-mode-launchpad a.ody-route-row:focus-visible .ody-route-purpose {
  color: var(--ody-inverse-text);
}

.shell-mode-launchpad .ody-route-reason {
  padding-left: 10px;
  border-left: 2px solid currentColor;
  color: var(--ody-ink);
}

.shell-mode-launchpad .ody-route-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: currentColor;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.shell-mode-launchpad .ody-route-mark {
  color: currentColor;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  transition: transform 160ms var(--ody-ease);
}

.shell-mode-launchpad a.ody-route-row:hover .ody-route-mark,
.shell-mode-launchpad a.ody-route-row:focus-visible .ody-route-mark {
  transform: translateX(6px);
}

/* Non-color state signals: text, border style, left rule, and mark all vary. */
.shell-mode-launchpad .ody-route-item--coming-soon .ody-route-status {
  border-style: dashed;
}

.shell-mode-launchpad .ody-route-item--no-access .ody-route-row {
  border-left-color: var(--ody-rule-strong);
  background: rgba(251, 248, 242, 0.58);
}

.shell-mode-launchpad .ody-route-item--no-access .ody-route-status {
  border-style: double;
  border-width: 3px;
}

.shell-mode-launchpad .ody-route-item--pending .ody-route-row {
  border-left-style: dashed;
  border-left-color: var(--ody-rule-strong);
}

.shell-mode-launchpad .ody-route-item--pending .ody-route-status {
  border-style: dashed;
}

.shell-mode-launchpad .ody-route-item--destination-error .ody-route-row {
  border-left-color: var(--ody-error);
}

.shell-mode-launchpad .ody-route-item--destination-error .ody-route-status {
  border-color: currentColor;
  border-style: double;
  border-width: 3px;
}

.shell-mode-launchpad .ody-route-row[aria-disabled="true"] {
  color: var(--ody-ink);
  cursor: default;
}

.shell-mode-launchpad .ody-route-row[aria-disabled="true"] .ody-route-name {
  color: var(--ody-ink);
}

.shell-mode-launchpad .ody-route-row[aria-disabled="true"] .ody-route-purpose {
  color: var(--ody-muted);
}

.shell-mode-launchpad .ody-home-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Shared Not Found, No Access, Coming Soon, and landing states */
.shell-mode-launchpad .ody-state-page {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(480px, 3fr);
  width: 100%;
  max-width: var(--ody-content-max);
  min-height: calc(100vh - var(--ody-header-h));
  min-height: calc(100dvh - var(--ody-header-h));
  margin: 0 auto;
  padding: clamp(40px, 9vh, 96px) clamp(32px, 4vw, 64px);
  color: var(--ody-ink);
}

.shell-mode-launchpad .ody-state-content {
  grid-column: 2;
  align-self: center;
  min-width: 0;
  padding: clamp(24px, 4vw, 48px) 0;
  border-top: 4px solid var(--ody-ink);
  border-bottom: 1px solid var(--ody-rule-strong);
}

.shell-mode-launchpad .ody-state-page--no-access .ody-state-content {
  border-top-style: double;
  border-top-width: 7px;
}

.shell-mode-launchpad .ody-state-page--coming-soon .ody-state-content {
  border-top-style: dashed;
}

.shell-mode-launchpad .ody-state-page--not-found .ody-state-content {
  border-top-color: var(--ody-error);
}

.shell-mode-launchpad .ody-state-title {
  max-width: 18ch;
  margin: 0;
  color: var(--ody-ink);
  font-size: clamp(42px, 6vw, 82px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.shell-mode-launchpad .ody-state-message {
  max-width: 48ch;
  margin: var(--ody-space-8) 0 0;
  color: var(--ody-ink);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.35;
}

.shell-mode-launchpad .ody-state-detail {
  max-width: 62ch;
  margin: var(--ody-space-4) 0 0;
  color: var(--ody-muted);
  font-size: 15px;
  line-height: 1.5;
}

.shell-mode-launchpad .ody-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ody-space-3);
  margin-top: var(--ody-space-8);
}

.shell-mode-launchpad .ody-state-primary-action,
.shell-mode-launchpad .ody-state-alternative-link {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid var(--ody-ink);
  border-radius: 1px;
  background: var(--ody-ink);
  color: var(--ody-inverse-text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.shell-mode-launchpad .ody-state-primary-action:hover,
.shell-mode-launchpad .ody-state-alternative-link:hover {
  background: transparent;
  color: var(--ody-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shell-mode-launchpad .ody-state-alternatives {
  margin-top: var(--ody-space-8);
  padding-top: var(--ody-space-6);
  border-top: 1px solid var(--ody-rule-strong);
}

.shell-mode-launchpad .ody-state-alternatives-title {
  margin: 0 0 var(--ody-space-3);
  color: var(--ody-ink);
  font-size: 15px;
}

.shell-mode-launchpad .ody-state-alternatives-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ody-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.shell-mode-launchpad .ody-state-alternative-link {
  background: transparent;
  color: var(--ody-ink);
}

.shell-mode-launchpad .ody-state-alternative-link:hover {
  background: var(--ody-ink);
  color: var(--ody-inverse-text);
}

/* Tablet: one editorial flow, not a card grid. */
@media (max-width: 1023px) {
  .shell-mode-launchpad .ody-home {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 0;
    padding: 28px clamp(24px, 5vw, 48px) 44px;
    overflow: visible;
  }

  .shell-mode-launchpad .ody-home-hero,
  .shell-mode-launchpad .ody-home-lifecycles,
  .shell-mode-launchpad .ody-home-access-guidance,
  .shell-mode-launchpad .ody-route-index {
    grid-column: 1;
    grid-row: auto;
  }

  .shell-mode-launchpad .ody-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 30%);
    align-items: end;
    padding: 0 0 28px;
  }

  .shell-mode-launchpad .ody-home-eyebrow,
  .shell-mode-launchpad .ody-home-title,
  .shell-mode-launchpad .ody-home-purpose {
    grid-column: 1;
  }

  .shell-mode-launchpad .ody-home-title {
    font-size: clamp(58px, 10vw, 78px);
  }

  .shell-mode-launchpad .ody-home-purpose {
    margin-top: 18px;
  }

  .shell-mode-launchpad .ody-home-orbit {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 100%;
    height: 120px;
    margin: 0;
  }

  .shell-mode-launchpad .ody-route-index {
    align-self: auto;
    margin-top: 8px;
  }

  .shell-mode-launchpad .ody-route-name {
    font-size: clamp(27px, 4vw, 34px);
  }

  .shell-mode-launchpad .ody-state-page {
    grid-template-columns: minmax(0, 1fr);
    padding: clamp(36px, 8vh, 72px) clamp(24px, 5vw, 48px);
  }

  .shell-mode-launchpad .ody-state-content {
    grid-column: 1;
    width: min(100%, 760px);
    justify-self: end;
  }
}

/* Mobile: number column plus a flexible content column. */
@media (max-width: 767px) {
  .universal-header {
    padding-inline: 16px;
  }

  .universal-header .env-badge,
  .universal-header .ody-secondary-nav,
  .universal-header .universal-header-secondary {
    display: none;
  }

  .universal-header .ody-menu-panel,
  .universal-header .universal-header-menu-panel {
    position: fixed;
    top: calc(var(--ody-header-h) - 1px);
    right: 16px;
  }

  .shell-mode-launchpad .ody-home {
    padding: 24px 20px 40px;
  }

  .shell-mode-launchpad .ody-home-hero {
    display: block;
    padding-bottom: 24px;
  }

  .shell-mode-launchpad .ody-home-eyebrow {
    margin-bottom: 14px;
  }

  .shell-mode-launchpad .ody-home-title {
    font-size: clamp(46px, 15vw, 60px);
    letter-spacing: -0.055em;
    line-height: 0.96;
  }

  .shell-mode-launchpad .ody-home-purpose {
    max-width: 31ch;
    margin-top: 16px;
    font-size: 18px;
  }

  .shell-mode-launchpad .ody-home-orbit {
    width: min(100%, 280px);
    height: 68px;
    margin-top: 18px;
  }

  .shell-mode-launchpad .ody-route-index-title {
    margin-top: 4px;
  }

  .shell-mode-launchpad .ody-route-row {
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 84px;
    align-items: start;
    gap: 4px 10px;
    padding: 15px 34px 15px 2px;
  }

  .shell-mode-launchpad .ody-route-number {
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-top: 6px;
  }

  .shell-mode-launchpad .ody-route-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .shell-mode-launchpad .ody-route-name {
    padding-right: 4px;
    font-size: clamp(24px, 7.5vw, 29px);
    line-height: 1.08;
  }

  .shell-mode-launchpad .ody-route-purpose,
  .shell-mode-launchpad .ody-route-reason {
    font-size: 13px;
    line-height: 1.35;
  }

  .shell-mode-launchpad .ody-route-status {
    grid-column: 2;
    grid-row: 2;
    width: max-content;
    max-width: 100%;
    min-height: 28px;
    margin-top: 5px;
    white-space: normal;
  }

  .shell-mode-launchpad .ody-route-mark {
    position: absolute;
    top: 20px;
    right: 3px;
  }

  .shell-mode-launchpad .ody-home-lifecycle,
  .shell-mode-launchpad .ody-home-access-guidance {
    padding: 10px;
  }

  .shell-mode-launchpad .ody-home-retry {
    width: 100%;
  }

  .shell-mode-launchpad .ody-state-page {
    padding: 36px 20px;
  }

  .shell-mode-launchpad .ody-state-content {
    justify-self: stretch;
    padding: 24px 0;
  }

  .shell-mode-launchpad .ody-state-title {
    font-size: clamp(40px, 12vw, 58px);
  }

  .shell-mode-launchpad .ody-state-message {
    margin-top: 24px;
    font-size: 18px;
  }

  .shell-mode-launchpad .ody-state-actions,
  .shell-mode-launchpad .ody-state-primary-action,
  .shell-mode-launchpad .ody-state-alternative-link {
    width: 100%;
  }

  .shell-mode-launchpad .ody-state-alternatives-list {
    flex-direction: column;
  }
}

@media (max-width: 374px) {
  .universal-header {
    gap: 8px;
    padding-inline: 12px;
  }

  .universal-header .topbar-product-name,
  .universal-header .universal-header-home {
    font-size: 17px;
  }

  .shell-mode-launchpad .ody-home,
  .shell-mode-launchpad .ody-state-page {
    padding-inline: 16px;
  }

  .shell-mode-launchpad .ody-route-name {
    font-size: 24px;
  }
}

/* Compact desktop fit. Required names remain in the initial 1280 by 720 view. */
@media (min-width: 1024px) and (max-height: 760px) {
  .shell-mode-launchpad {
    --ody-route-min-h: 74px;
  }

  .shell-mode-launchpad .ody-home {
    column-gap: clamp(36px, 4vw, 64px);
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .shell-mode-launchpad .ody-home-hero {
    padding-top: 2px;
  }

  .shell-mode-launchpad .ody-home-eyebrow {
    margin-bottom: 16px;
  }

  .shell-mode-launchpad .ody-home-title {
    font-size: clamp(64px, 7vw, 88px);
  }

  .shell-mode-launchpad .ody-home-purpose {
    margin-top: 20px;
    font-size: clamp(18px, 1.5vw, 21px);
  }

  .shell-mode-launchpad .ody-home-orbit {
    height: 88px;
  }

  .shell-mode-launchpad .ody-route-index-title {
    margin-bottom: 7px;
  }

  .shell-mode-launchpad .ody-route-row {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .shell-mode-launchpad .ody-route-name {
    font-size: clamp(25px, 2.1vw, 31px);
  }

  .shell-mode-launchpad .ody-route-purpose {
    font-size: 13px;
  }
}

/* Motion is limited to useful route feedback and is fully removable. */
@media (prefers-reduced-motion: reduce) {
  .universal-header *,
  .universal-header *::before,
  .universal-header *::after,
  .shell-mode-launchpad .ody-route-row,
  .shell-mode-launchpad .ody-route-mark,
  .shell-mode-launchpad .ody-home-orbit-path,
  .shell-mode-launchpad .ody-home-orbit-origin,
  .shell-mode-launchpad .ody-home-orbit-destination {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .shell-mode-launchpad a.ody-route-row:hover .ody-route-mark,
  .shell-mode-launchpad a.ody-route-row:focus-visible .ody-route-mark {
    transform: none;
  }
}

/* Monochrome and high-contrast modes keep state words, border patterns,
   numbering, and marks as redundant non-color signals. */
@media (monochrome), (prefers-contrast: more) {
  .shell-mode-launchpad .ody-route-list,
  .shell-mode-launchpad .ody-route-item,
  .shell-mode-launchpad .ody-route-status,
  .shell-mode-launchpad .ody-home-lifecycle,
  .shell-mode-launchpad .ody-home-access-guidance,
  .shell-mode-launchpad .ody-state-content {
    border-color: currentColor;
  }

  .shell-mode-launchpad .ody-route-item--coming-soon .ody-route-status,
  .shell-mode-launchpad .ody-route-item--pending .ody-route-status {
    border-style: dashed;
  }

  .shell-mode-launchpad .ody-route-item--no-access .ody-route-status,
  .shell-mode-launchpad .ody-route-item--destination-error .ody-route-status {
    border-style: double;
  }
}

@media (forced-colors: active) {
  .universal-header,
  .shell-mode-launchpad,
  .shell-mode-launchpad .content,
  .shell-mode-launchpad .ody-route-row,
  .shell-mode-launchpad .ody-state-page {
    background: Canvas;
    color: CanvasText;
    forced-color-adjust: auto;
  }

  .universal-header,
  .universal-header a,
  .universal-header button,
  .shell-mode-launchpad .ody-route-list,
  .shell-mode-launchpad .ody-route-item,
  .shell-mode-launchpad .ody-route-status,
  .shell-mode-launchpad .ody-home-lifecycle,
  .shell-mode-launchpad .ody-home-access-guidance,
  .shell-mode-launchpad .ody-state-content,
  .shell-mode-launchpad .ody-state-primary-action,
  .shell-mode-launchpad .ody-state-alternative-link {
    border-color: CanvasText;
  }

  .universal-header a:focus-visible,
  .universal-header button:focus-visible,
  .shell-mode-launchpad .ody-route-row:focus-visible,
  .shell-mode-launchpad .ody-home-retry:focus-visible,
  .shell-mode-launchpad .ody-state-primary-action:focus-visible,
  .shell-mode-launchpad .ody-state-alternative-link:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 3px;
  }

  .shell-mode-launchpad a.ody-route-row:hover,
  .shell-mode-launchpad a.ody-route-row:focus-visible,
  .shell-mode-launchpad .ody-state-primary-action,
  .shell-mode-launchpad .ody-state-alternative-link:hover {
    background: Highlight;
    color: HighlightText;
  }

  .shell-mode-launchpad .ody-home-orbit {
    display: none;
  }
}

/* ============================================================
   21. Odyssey Content Roadmap
       Editorial Registry Spine — strictly Roadmap scoped
   ============================================================ */

/* Roadmap reuses the approved Odyssey palette and spacing language. Tokens
   are repeated on this mutually exclusive shell because the approved token
   scope lives on shell-mode-launchpad rather than :root. */
.shell-mode-roadmap {
  --ody-canvas: #f4f0e8;
  --ody-paper: #fbf8f2;
  --ody-ink: #171816;
  --ody-muted: #5f5b53;
  --ody-rule: #c8c1b5;
  --ody-rule-strong: #817b71;
  --ody-orange: #8f3b00;
  --ody-orange-bright: #e87924;
  --ody-focus: #145ea8;
  --ody-error: #941f1f;
  --ody-success: #176b4d;
  --ody-inverse-text: #fffdf8;
  --ody-header-h: 52px;
  --ody-content-max: 1600px;
  --ody-focus-ring: 0 0 0 3px var(--ody-canvas), 0 0 0 6px var(--ody-focus);
  --roadmap-module-w: 320px;
  --roadmap-path-w: 210px;
  min-width: 320px;
  overflow-x: clip;
  background: var(--ody-canvas);
  color: var(--ody-ink);
}

html:has(> body.shell-mode-roadmap) {
  min-width: 320px;
  overflow-x: clip;
  background: var(--ody-canvas);
}

.shell-mode-roadmap .sidebar {
  display: none !important;
}

.shell-mode-roadmap .content {
  min-width: 0;
  min-height: calc(100vh - var(--ody-header-h));
  min-height: calc(100dvh - var(--ody-header-h));
  margin: var(--ody-header-h) 0 0;
  padding: 0;
  overflow-x: clip;
  background: var(--ody-canvas);
}

.shell-mode-roadmap .content > .page {
  max-width: none;
}

.shell-mode-roadmap .ody-roadmap-page {
  width: min(100%, var(--ody-content-max));
  min-width: 0;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 60px) clamp(24px, 4vw, 64px) 64px;
  overflow-x: clip;
  color: var(--ody-ink);
}

/* Masthead: typography and a single meaningful route spine replace cards. */
.shell-mode-roadmap .ody-roadmap-masthead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: end;
  min-width: 0;
  padding: 8px 0 30px 28px;
  border-bottom: 1px solid var(--ody-rule-strong);
}

.shell-mode-roadmap .ody-roadmap-masthead-copy {
  min-width: 0;
  max-width: 920px;
}

.shell-mode-roadmap .ody-roadmap-spine {
  position: absolute;
  inset: 8px auto 30px 0;
  width: 2px;
  background: var(--ody-orange);
  pointer-events: none;
}

.shell-mode-roadmap .ody-roadmap-spine::before,
.shell-mode-roadmap .ody-roadmap-spine::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid var(--ody-orange);
  border-radius: 50%;
  background: var(--ody-canvas);
  transform: translateX(-50%);
}

.shell-mode-roadmap .ody-roadmap-spine::before { top: 0; }
.shell-mode-roadmap .ody-roadmap-spine::after { bottom: 0; }

.shell-mode-roadmap .ody-roadmap-eyebrow {
  margin: 0 0 12px;
  color: var(--ody-orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.shell-mode-roadmap .ody-roadmap-masthead h1 {
  margin: 0;
  color: var(--ody-ink);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 740;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.shell-mode-roadmap .ody-roadmap-purpose {
  max-width: 66ch;
  margin: 18px 0 0;
  color: var(--ody-ink);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.45;
}

.shell-mode-roadmap .ody-roadmap-source-line {
  margin: 12px 0 0;
  color: var(--ody-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

.shell-mode-roadmap .ody-roadmap-new-module {
  min-width: 132px;
  min-height: 44px;
  justify-content: center;
  border: 1px solid var(--ody-ink);
  border-radius: 1px;
  background: var(--ody-ink);
  color: var(--ody-inverse-text);
  box-shadow: none;
}

.shell-mode-roadmap .ody-roadmap-new-module:hover:not(:disabled),
.shell-mode-roadmap .ody-roadmap-new-module:active:not(:disabled) {
  border-color: var(--ody-ink);
  background: transparent;
  color: var(--ody-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The existing creation behavior remains, but its container reads as an
   editorial form section rather than a nested dashboard card. */
.shell-mode-roadmap .ody-roadmap-create.card {
  margin: 24px 0 0;
  padding: 24px clamp(16px, 3vw, 32px);
  border: 1px solid var(--ody-rule-strong);
  border-radius: 0;
  background: var(--ody-paper);
  box-shadow: none;
}

.shell-mode-roadmap .ody-roadmap-create h2 {
  color: var(--ody-ink);
  font-size: 24px;
}

.shell-mode-roadmap .ody-roadmap-create input,
.shell-mode-roadmap .ody-roadmap-create select,
.shell-mode-roadmap .ody-roadmap-create textarea {
  max-width: 100%;
}

.shell-mode-roadmap .ody-roadmap-notices {
  min-width: 0;
  margin-top: 18px;
}

.shell-mode-roadmap .ody-roadmap-notice {
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid var(--ody-rule);
  border-left: 4px solid var(--ody-rule-strong);
  background: var(--ody-paper);
  color: var(--ody-ink);
  font-size: 13px;
}

.shell-mode-roadmap .ody-roadmap-notice-warning { border-left-color: var(--ody-orange); }
.shell-mode-roadmap .ody-roadmap-notice-error { border-left-color: var(--ody-error); }
.shell-mode-roadmap .ody-roadmap-notice-success { border-left-color: var(--ody-success); }

.shell-mode-roadmap .ody-roadmap-workspace {
  min-width: 0;
  margin-top: 24px;
}

/* Reminder stays textual and uses orange only as an edge signal. */
.shell-mode-roadmap .ody-roadmap-reminder-region {
  min-width: 0;
}

.shell-mode-roadmap .ody-roadmap-reminder {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 9px 12px;
  border: 1px solid var(--ody-rule-strong);
  border-left: 4px solid var(--ody-orange);
  border-radius: 0;
  background: transparent;
  color: var(--ody-ink);
  font-family: var(--font-stack);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.shell-mode-roadmap .ody-roadmap-reminder:hover,
.shell-mode-roadmap .ody-roadmap-reminder[aria-pressed="true"] {
  background: var(--ody-paper);
  box-shadow: inset 0 -2px 0 var(--ody-orange);
}

.shell-mode-roadmap .ody-roadmap-reminder-mark {
  flex: none;
  color: var(--ody-orange);
  font-weight: 900;
}

/* Search, Filters, Fields, and in-flow disclosures. */
.shell-mode-roadmap .ody-roadmap-controls {
  min-width: 0;
  padding: 18px 0;
  border-top: 1px solid var(--ody-rule);
  border-bottom: 1px solid var(--ody-rule-strong);
}

.shell-mode-roadmap .ody-roadmap-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

.shell-mode-roadmap .ody-roadmap-search {
  min-width: 0;
}

.shell-mode-roadmap .ody-roadmap-search input,
.shell-mode-roadmap .ody-roadmap-disclosure input[type="text"],
.shell-mode-roadmap .ody-roadmap-disclosure input[type="search"],
.shell-mode-roadmap .ody-roadmap-disclosure select,
.shell-mode-roadmap .ody-roadmap-pagination select {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--ody-rule-strong);
  border-radius: 1px;
  background: var(--ody-paper);
  color: var(--ody-ink);
}

.shell-mode-roadmap .ody-roadmap-toolbar .btn,
.shell-mode-roadmap .ody-roadmap-pagination .btn,
.shell-mode-roadmap .ody-roadmap-disclosure .btn,
.shell-mode-roadmap .ody-roadmap-state .btn,
.shell-mode-roadmap .ody-roadmap-open-module {
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  border-color: var(--ody-rule-strong);
  border-radius: 1px;
  background: transparent;
  color: var(--ody-ink);
  box-shadow: none;
}

.shell-mode-roadmap .ody-roadmap-toolbar .btn:hover:not(:disabled),
.shell-mode-roadmap .ody-roadmap-pagination .btn:hover:not(:disabled),
.shell-mode-roadmap .ody-roadmap-disclosure .btn:hover:not(:disabled),
.shell-mode-roadmap .ody-roadmap-state .btn:hover:not(:disabled),
.shell-mode-roadmap .ody-roadmap-open-module:hover {
  border-color: var(--ody-ink);
  background: var(--ody-ink);
  color: var(--ody-inverse-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shell-mode-roadmap .ody-roadmap-disclosure:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 24px;
  min-width: 0;
  margin-top: 16px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--ody-rule);
}

.shell-mode-roadmap .ody-roadmap-fields:not([hidden]) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.shell-mode-roadmap .ody-roadmap-filter-group,
.shell-mode-roadmap .ody-roadmap-field-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.shell-mode-roadmap .ody-roadmap-filter-group legend,
.shell-mode-roadmap .ody-roadmap-field-group legend {
  width: 100%;
  margin: 0 0 10px;
  padding: 0 0 6px;
  border-bottom: 1px solid var(--ody-rule);
  color: var(--ody-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.shell-mode-roadmap .ody-roadmap-disclosure .form-field {
  min-width: 0;
  margin-bottom: 10px;
}

.shell-mode-roadmap .ody-roadmap-disclosure .form-field label {
  color: var(--ody-ink);
}

.shell-mode-roadmap .ody-roadmap-disclosure .form-field-check {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
}

.shell-mode-roadmap .ody-roadmap-disclosure .form-field-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ody-orange);
}

.shell-mode-roadmap .ody-roadmap-disclosure .form-field-check label {
  display: flex;
  min-height: 44px;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.shell-mode-roadmap .ody-roadmap-disclosure .form-help,
.shell-mode-roadmap .ody-roadmap-lessons-note {
  color: var(--ody-muted);
  font-size: 12px;
  line-height: 1.4;
}

.shell-mode-roadmap .ody-roadmap-filter-chips {
  min-width: 0;
  margin-top: 12px;
}

.shell-mode-roadmap .ody-roadmap-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shell-mode-roadmap .ody-roadmap-filter-chip {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--ody-rule-strong);
  border-left: 3px solid var(--ody-orange);
  border-radius: 1px;
  background: var(--ody-paper);
  color: var(--ody-ink);
  font: 700 12px/1.25 var(--font-stack);
  cursor: pointer;
}

.shell-mode-roadmap .ody-roadmap-filter-chip:hover {
  border-color: var(--ody-ink);
  text-decoration: line-through;
}

.shell-mode-roadmap .ody-roadmap-result-heading {
  margin: 20px 0 10px;
  color: var(--ody-muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.shell-mode-roadmap .ody-roadmap-state,
.shell-mode-roadmap .ody-roadmap-loading {
  min-width: 0;
  padding: 32px 0;
  border-bottom: 1px solid var(--ody-rule-strong);
  background: transparent;
  color: var(--ody-ink);
}

.shell-mode-roadmap .ody-roadmap-state .empty-title {
  color: var(--ody-ink);
  font-size: 20px;
}

/* Desktop semantic registry table. Horizontal overflow belongs here only. */
.shell-mode-roadmap .ody-roadmap-table-viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  border-top: 1px solid var(--ody-rule-strong);
  border-bottom: 1px solid var(--ody-rule-strong);
  background: var(--ody-paper);
  scrollbar-gutter: stable;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.shell-mode-roadmap .ody-roadmap-table {
  width: max-content;
  min-width: 100%;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: var(--ody-paper);
  color: var(--ody-ink);
  font-size: 13px;
}

.shell-mode-roadmap .ody-roadmap-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell-mode-roadmap .ody-roadmap-table th,
.shell-mode-roadmap .ody-roadmap-table td {
  min-width: 150px;
  padding: 12px 14px;
  border: 0;
  border-right: 1px solid var(--ody-rule);
  border-bottom: 1px solid var(--ody-rule);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: normal;
}

.shell-mode-roadmap .ody-roadmap-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom-color: var(--ody-rule-strong);
  background: var(--ody-paper);
  color: var(--ody-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.shell-mode-roadmap .ody-roadmap-table .ody-roadmap-col-module {
  left: 0;
  width: var(--roadmap-module-w);
  min-width: var(--roadmap-module-w);
  max-width: var(--roadmap-module-w);
}

.shell-mode-roadmap .ody-roadmap-table .ody-roadmap-col-path {
  left: var(--roadmap-module-w);
  width: var(--roadmap-path-w);
  min-width: var(--roadmap-path-w);
  max-width: var(--roadmap-path-w);
}

.shell-mode-roadmap .ody-roadmap-table .ody-roadmap-col-status { min-width: 150px; }
.shell-mode-roadmap .ody-roadmap-table .ody-roadmap-col-owner { min-width: 170px; }
.shell-mode-roadmap .ody-roadmap-table .ody-roadmap-col-launchSites { min-width: 200px; }
.shell-mode-roadmap .ody-roadmap-table .ody-roadmap-col-localization { min-width: 170px; }
.shell-mode-roadmap .ody-roadmap-table .ody-roadmap-col-work { min-width: 180px; }

.shell-mode-roadmap .ody-roadmap-table .ody-roadmap-frozen {
  position: sticky;
  z-index: 2;
  background: var(--ody-paper);
  background-clip: padding-box;
}

.shell-mode-roadmap .ody-roadmap-table thead .ody-roadmap-frozen {
  z-index: 6;
}

.shell-mode-roadmap .ody-roadmap-table .ody-roadmap-col-path.ody-roadmap-frozen {
  box-shadow: 1px 0 0 var(--ody-rule-strong);
}

.shell-mode-roadmap .ody-roadmap-topic-heading th {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 13px 14px 13px 30px;
  border-top: 1px solid var(--ody-rule-strong);
  border-right: 0;
  border-bottom: 1px solid var(--ody-rule-strong);
  background: var(--ody-canvas);
  color: var(--ody-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.015em;
}

.shell-mode-roadmap .ody-roadmap-topic-node {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid var(--ody-orange);
  border-radius: 50%;
  background: var(--ody-canvas);
  transform: translateY(-50%);
  pointer-events: none;
}

.shell-mode-roadmap .ody-roadmap-module-row {
  background: var(--ody-paper);
  cursor: pointer;
}

.shell-mode-roadmap .ody-roadmap-module-row:hover td,
.shell-mode-roadmap .ody-roadmap-module-row:hover .ody-roadmap-frozen {
  background: #f1ece3;
}

.shell-mode-roadmap .ody-roadmap-module-row:focus {
  outline: none;
}

.shell-mode-roadmap .ody-roadmap-module-row:focus-visible td:first-child {
  box-shadow: inset 4px 0 0 var(--ody-orange);
}

.shell-mode-roadmap .ody-roadmap-module-row:focus-visible td {
  border-top: 2px solid var(--ody-focus);
  border-bottom: 2px solid var(--ody-focus);
}

.shell-mode-roadmap .ody-roadmap-module-row:focus-visible td:last-child {
  border-right: 2px solid var(--ody-focus);
}

.shell-mode-roadmap .ody-roadmap-module {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.shell-mode-roadmap .ody-roadmap-module-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ody-ink);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.shell-mode-roadmap .ody-roadmap-module-link:hover {
  color: var(--ody-ink);
  text-decoration-color: var(--ody-ink);
}

.shell-mode-roadmap .ody-roadmap-module-en {
  color: var(--ody-muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.shell-mode-roadmap .ody-roadmap-module-id,
.shell-mode-roadmap .ody-roadmap-code-value,
.shell-mode-roadmap .code-copy-row,
.shell-mode-roadmap .multi-code-row {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.shell-mode-roadmap .ody-roadmap-module-id code,
.shell-mode-roadmap .ody-roadmap-code-value code,
.shell-mode-roadmap .ody-roadmap-expansion code {
  min-width: 0;
  max-width: 100%;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--ody-ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.shell-mode-roadmap .ody-roadmap-copy,
.shell-mode-roadmap .ody-roadmap-expansion .btn-copy,
.shell-mode-roadmap .ody-roadmap-code-value .btn-copy {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid var(--ody-rule-strong);
  border-radius: 1px;
  background: transparent;
  color: var(--ody-ink);
  font: 700 11px/1 var(--font-stack);
  cursor: pointer;
}

.shell-mode-roadmap .ody-roadmap-row-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.shell-mode-roadmap .ody-roadmap-details {
  min-width: 44px;
  min-height: 44px;
  border-color: var(--ody-rule-strong);
  border-radius: 1px;
  background: transparent;
  color: var(--ody-ink);
}

.shell-mode-roadmap .ody-roadmap-details[aria-expanded="true"] {
  border-left: 3px solid var(--ody-orange);
  box-shadow: inset 0 -2px 0 var(--ody-orange);
}

.shell-mode-roadmap .ody-roadmap-status,
.shell-mode-roadmap .ody-roadmap-sites,
.shell-mode-roadmap .ody-roadmap-localization {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.shell-mode-roadmap .ody-roadmap-active-label {
  color: var(--ody-muted);
  font-size: 12px;
  font-weight: 650;
}

.shell-mode-roadmap .ody-roadmap-due-label {
  border-radius: 1px;
}

.shell-mode-roadmap .ody-roadmap-value-link,
.shell-mode-roadmap .ody-roadmap-expansion a:not(.btn) {
  color: var(--ody-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.shell-mode-roadmap .ody-roadmap-expansion-row > td {
  min-width: 0;
  padding: 0;
  border-right: 0;
  background: var(--ody-canvas);
}

.shell-mode-roadmap .ody-roadmap-expansion {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 24px;
  min-width: 0;
  padding: 22px clamp(16px, 2.5vw, 30px) 24px;
  border-left: 4px solid var(--ody-orange);
  background: var(--ody-paper);
  color: var(--ody-ink);
}

.shell-mode-roadmap .ody-roadmap-metadata-group {
  min-width: 0;
  padding: 0;
  border: 0;
}

.shell-mode-roadmap .ody-roadmap-metadata-group h3 {
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ody-rule);
  color: var(--ody-ink);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.shell-mode-roadmap .ody-roadmap-expansion .detail-list {
  grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1.2fr);
  gap: 7px 10px;
  font-size: 12px;
}

.shell-mode-roadmap .ody-roadmap-expansion dt,
.shell-mode-roadmap .ody-roadmap-expansion dd,
.shell-mode-roadmap .ody-roadmap-expansion li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.shell-mode-roadmap .ody-roadmap-open-module {
  grid-column: 1 / -1;
  width: max-content;
  max-width: 100%;
  margin-top: 18px;
}

.shell-mode-roadmap .ody-roadmap-list {
  display: none;
}

.shell-mode-roadmap .ody-roadmap-pagination {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 0 0;
}

.shell-mode-roadmap .ody-roadmap-page-position {
  min-width: 92px;
  color: var(--ody-ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.shell-mode-roadmap .ody-roadmap-pagination select {
  width: auto;
  min-width: 130px;
}

/* All Roadmap controls have an explicit, high-contrast keyboard state. */
.shell-mode-roadmap a:focus-visible,
.shell-mode-roadmap button:focus-visible,
.shell-mode-roadmap input:focus-visible,
.shell-mode-roadmap select:focus-visible,
.shell-mode-roadmap textarea:focus-visible,
.shell-mode-roadmap .ody-roadmap-table-viewport:focus-visible {
  outline: 3px solid var(--ody-focus);
  outline-offset: 3px;
  border-radius: 1px;
  box-shadow: none;
}

.shell-mode-roadmap .ody-roadmap-filter-chip:focus-visible,
.shell-mode-roadmap .ody-roadmap-details:focus-visible,
.shell-mode-roadmap .ody-roadmap-reminder:focus-visible {
  outline-color: var(--ody-focus);
  box-shadow: inset 4px 0 0 var(--ody-orange);
}

/* Tablet: semantic labelled list with a two-column scalar summary. */
@media (max-width: 1023px) {
  .shell-mode-roadmap .ody-roadmap-page {
    padding: 32px clamp(24px, 5vw, 48px) 56px;
  }

  .shell-mode-roadmap .ody-roadmap-table-viewport {
    display: none;
  }

  .shell-mode-roadmap .ody-roadmap-list {
    display: block;
    min-width: 0;
    border-top: 1px solid var(--ody-rule-strong);
  }

  .shell-mode-roadmap .ody-roadmap-list-group {
    min-width: 0;
  }

  .shell-mode-roadmap .ody-roadmap-list-heading {
    position: relative;
    margin: 0;
    padding: 13px 12px 13px 28px;
    border-bottom: 1px solid var(--ody-rule-strong);
    background: transparent;
    color: var(--ody-ink);
    font-size: 13px;
    letter-spacing: 0.015em;
  }

  .shell-mode-roadmap .ody-roadmap-list-heading::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border: 2px solid var(--ody-orange);
    border-radius: 50%;
    background: var(--ody-canvas);
    transform: translateY(-50%);
  }

  .shell-mode-roadmap .ody-roadmap-module-list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .shell-mode-roadmap .ody-roadmap-list-item {
    min-width: 0;
    border-bottom: 1px solid var(--ody-rule);
  }

  .shell-mode-roadmap .ody-roadmap-list-row {
    min-width: 0;
    padding: 18px 12px;
    background: var(--ody-paper);
    cursor: pointer;
  }

  .shell-mode-roadmap .ody-roadmap-list-row:hover {
    background: #f1ece3;
  }

  .shell-mode-roadmap .ody-roadmap-list-row:focus {
    outline: none;
  }

  .shell-mode-roadmap .ody-roadmap-list-row:focus-visible {
    outline: 3px solid var(--ody-focus);
    outline-offset: -3px;
    box-shadow: inset 4px 0 0 var(--ody-orange);
  }

  .shell-mode-roadmap .ody-roadmap-list-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    min-width: 0;
  }

  .shell-mode-roadmap .ody-roadmap-list-summary > .ody-roadmap-module {
    grid-column: 1 / -1;
  }

  .shell-mode-roadmap .ody-roadmap-list-value {
    display: grid;
    grid-template-columns: minmax(96px, 0.8fr) minmax(0, 1.2fr);
    gap: 8px;
    min-width: 0;
    padding-top: 9px;
    border-top: 1px solid var(--ody-rule);
  }

  .shell-mode-roadmap .ody-roadmap-list-label {
    color: var(--ody-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.035em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .shell-mode-roadmap .ody-roadmap-list-data {
    min-width: 0;
    color: var(--ody-ink);
    overflow-wrap: anywhere;
  }

  .shell-mode-roadmap .ody-roadmap-expansion {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
    padding-inline: 18px;
  }

  .shell-mode-roadmap .ody-roadmap-disclosure:not([hidden]),
  .shell-mode-roadmap .ody-roadmap-fields:not([hidden]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: one editorial flow, one-column summaries, and in-flow controls. */
@media (max-width: 767px) {
  .shell-mode-roadmap .ody-roadmap-page {
    padding: 24px 20px 44px;
  }

  .shell-mode-roadmap .ody-roadmap-masthead {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 6px 0 24px 20px;
  }

  .shell-mode-roadmap .ody-roadmap-spine {
    inset: 6px auto 24px 0;
  }

  .shell-mode-roadmap .ody-roadmap-masthead h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .shell-mode-roadmap .ody-roadmap-purpose {
    margin-top: 14px;
    font-size: 16px;
  }

  .shell-mode-roadmap .ody-roadmap-new-module {
    width: 100%;
  }

  .shell-mode-roadmap .ody-roadmap-create.card {
    padding: 20px 14px;
  }

  .shell-mode-roadmap .ody-roadmap-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shell-mode-roadmap .ody-roadmap-search {
    grid-column: 1 / -1;
  }

  .shell-mode-roadmap .ody-roadmap-toolbar .btn {
    width: 100%;
  }

  .shell-mode-roadmap .ody-roadmap-disclosure:not([hidden]),
  .shell-mode-roadmap .ody-roadmap-fields:not([hidden]) {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-top: 14px;
  }

  .shell-mode-roadmap .ody-roadmap-filter-group,
  .shell-mode-roadmap .ody-roadmap-field-group {
    padding-bottom: 8px;
  }

  .shell-mode-roadmap .ody-roadmap-chip-list,
  .shell-mode-roadmap .ody-roadmap-chip-list > li,
  .shell-mode-roadmap .ody-roadmap-filter-chip,
  .shell-mode-roadmap .ody-roadmap-clear {
    width: 100%;
  }

  .shell-mode-roadmap .ody-roadmap-filter-chip,
  .shell-mode-roadmap .ody-roadmap-clear {
    justify-content: flex-start;
  }

  .shell-mode-roadmap .ody-roadmap-list-row {
    padding: 16px 10px;
  }

  .shell-mode-roadmap .ody-roadmap-list-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .shell-mode-roadmap .ody-roadmap-list-summary > .ody-roadmap-module {
    grid-column: 1;
  }

  .shell-mode-roadmap .ody-roadmap-list-value {
    grid-template-columns: minmax(92px, 0.72fr) minmax(0, 1.28fr);
    gap: 7px;
  }

  .shell-mode-roadmap .ody-roadmap-row-actions,
  .shell-mode-roadmap .ody-roadmap-details {
    width: 100%;
  }

  .shell-mode-roadmap .ody-roadmap-details {
    justify-content: center;
  }

  .shell-mode-roadmap .ody-roadmap-expansion {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 18px 12px 20px;
  }

  .shell-mode-roadmap .ody-roadmap-expansion .detail-list {
    grid-template-columns: minmax(86px, 0.72fr) minmax(0, 1.28fr);
  }

  .shell-mode-roadmap .ody-roadmap-open-module {
    width: 100%;
  }

  .shell-mode-roadmap .ody-roadmap-pagination {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
  }

  .shell-mode-roadmap .ody-roadmap-pagination .btn {
    width: 100%;
    padding-inline: 8px;
  }

  .shell-mode-roadmap .ody-roadmap-pagination select {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 374px) {
  .shell-mode-roadmap .ody-roadmap-page {
    padding-inline: 16px;
  }

  .shell-mode-roadmap .ody-roadmap-list-value,
  .shell-mode-roadmap .ody-roadmap-expansion .detail-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .shell-mode-roadmap .ody-roadmap-list-label {
    margin-bottom: -4px;
  }
}

/* Hiding inert decoration never hides labels, counts, state, or actions. */
.shell-mode-roadmap.ody-hide-decoration .ody-roadmap-spine,
.shell-mode-roadmap.ody-hide-decoration .ody-roadmap-topic-node,
.shell-mode-roadmap.ody-hide-decoration .ody-roadmap-list-heading::before,
.shell-mode-roadmap[data-decoration="hidden"] .ody-roadmap-spine,
.shell-mode-roadmap[data-decoration="hidden"] .ody-roadmap-topic-node,
.shell-mode-roadmap[data-decoration="hidden"] .ody-roadmap-list-heading::before {
  display: none;
}

/* Reduced motion removes every Roadmap transition without changing layout. */
@media (prefers-reduced-motion: reduce) {
  .shell-mode-roadmap *,
  .shell-mode-roadmap *::before,
  .shell-mode-roadmap *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Grayscale/high-contrast retains words, rules, nodes, and disclosure edges. */
@media (monochrome), (prefers-contrast: more) {
  .shell-mode-roadmap .ody-roadmap-masthead,
  .shell-mode-roadmap .ody-roadmap-controls,
  .shell-mode-roadmap .ody-roadmap-table-viewport,
  .shell-mode-roadmap .ody-roadmap-table th,
  .shell-mode-roadmap .ody-roadmap-table td,
  .shell-mode-roadmap .ody-roadmap-list,
  .shell-mode-roadmap .ody-roadmap-list-heading,
  .shell-mode-roadmap .ody-roadmap-list-item,
  .shell-mode-roadmap .ody-roadmap-list-value,
  .shell-mode-roadmap .ody-roadmap-expansion,
  .shell-mode-roadmap .ody-roadmap-filter-chip,
  .shell-mode-roadmap .ody-roadmap-reminder {
    border-color: currentColor;
  }

  .shell-mode-roadmap .ody-roadmap-spine,
  .shell-mode-roadmap .ody-roadmap-topic-node,
  .shell-mode-roadmap .ody-roadmap-list-heading::before {
    border-color: currentColor;
    background-color: currentColor;
  }

  .shell-mode-roadmap .ody-roadmap-filter-chip,
  .shell-mode-roadmap .ody-roadmap-details[aria-expanded="true"],
  .shell-mode-roadmap .ody-roadmap-reminder {
    border-left-style: double;
    border-left-width: 4px;
  }
}

@media (forced-colors: active) {
  .shell-mode-roadmap,
  .shell-mode-roadmap .content,
  .shell-mode-roadmap .ody-roadmap-page,
  .shell-mode-roadmap .ody-roadmap-table-viewport,
  .shell-mode-roadmap .ody-roadmap-table,
  .shell-mode-roadmap .ody-roadmap-table thead th,
  .shell-mode-roadmap .ody-roadmap-table .ody-roadmap-frozen,
  .shell-mode-roadmap .ody-roadmap-list-row,
  .shell-mode-roadmap .ody-roadmap-expansion,
  .shell-mode-roadmap .ody-roadmap-create.card {
    background: Canvas;
    color: CanvasText;
    forced-color-adjust: auto;
  }

  .shell-mode-roadmap .ody-roadmap-masthead,
  .shell-mode-roadmap .ody-roadmap-controls,
  .shell-mode-roadmap .ody-roadmap-table-viewport,
  .shell-mode-roadmap .ody-roadmap-table th,
  .shell-mode-roadmap .ody-roadmap-table td,
  .shell-mode-roadmap .ody-roadmap-list,
  .shell-mode-roadmap .ody-roadmap-list-heading,
  .shell-mode-roadmap .ody-roadmap-list-item,
  .shell-mode-roadmap .ody-roadmap-list-value,
  .shell-mode-roadmap .ody-roadmap-filter-chip,
  .shell-mode-roadmap .ody-roadmap-reminder,
  .shell-mode-roadmap .ody-roadmap-details,
  .shell-mode-roadmap .ody-roadmap-expansion {
    border-color: CanvasText;
  }

  .shell-mode-roadmap .ody-roadmap-module-link,
  .shell-mode-roadmap .ody-roadmap-value-link,
  .shell-mode-roadmap .ody-roadmap-expansion a {
    color: LinkText;
    text-decoration: underline;
  }

  .shell-mode-roadmap a:focus-visible,
  .shell-mode-roadmap button:focus-visible,
  .shell-mode-roadmap input:focus-visible,
  .shell-mode-roadmap select:focus-visible,
  .shell-mode-roadmap textarea:focus-visible,
  .shell-mode-roadmap .ody-roadmap-table-viewport:focus-visible,
  .shell-mode-roadmap .ody-roadmap-list-row:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 3px;
  }

  .shell-mode-roadmap .ody-roadmap-spine,
  .shell-mode-roadmap .ody-roadmap-topic-node,
  .shell-mode-roadmap .ody-roadmap-list-heading::before {
    border-color: CanvasText;
    background: Canvas;
  }
}

/* Roadmap's compact blue status text remains body-text compliant. */
.shell-mode-roadmap .badge-review,
.shell-mode-roadmap .badge-new {
  color: var(--ody-focus);
}
