@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700&family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
  --bg: #080808;
  --bg-strong: #111111;
  --panel: rgba(15, 15, 16, 0.9);
  --panel-strong: rgba(12, 12, 13, 0.94);
  --panel-accent: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  --text: #f4f3ee;
  --text-strong: #ffffff;
  --muted: white;
  --line: rgba(255, 255, 255, 0.24);
  --line-strong: rgba(255, 255, 255, 0.48);
  --primary: #c15f3c;
  --primary-deep: #9f492a;
  --secondary: #b1ada1;
  --accent: #c15f3c;
  --accent-soft: rgba(193, 95, 60, 0.12);
  --success: #f4f3ee;
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.34);
  --shadow-box: 0 24px 64px rgba(0, 0, 0, 0.42);
  --shadow-box-hover: 0 30px 78px rgba(0, 0, 0, 0.5);
  --stage-padding-left: 2rem;
  --stage-dot-size: 1rem;
  --stage-chain-x: 0.88rem;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.035), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.02), transparent 24%),
    linear-gradient(180deg, #0d0d0e 0%, #090909 48%, #050505 100%);
  min-height: 100vh;
  padding-top: 6rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 243, 238, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 243, 238, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 88%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 30%, rgba(255, 255, 255, 0.01));
  pointer-events: none;
  z-index: -1;
}

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

button,
a {
  cursor: pointer;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.75rem 1rem;
  background: rgba(12, 10, 9, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.topbar {
  position: fixed;
  inset: 1rem 0 auto;
  z-index: 50;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  animation: slide-down 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.95rem;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(18, 18, 19, 0.98), rgba(32, 28, 26, 0.98));
  display: grid;
  place-items: center;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.brand-mark::before {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 0.4rem;
  background: linear-gradient(145deg, rgba(193, 95, 60, 0.96), rgba(232, 176, 150, 0.9));
  transform: rotate(16deg);
}

.brand-mark.has-logo {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.brand-mark.has-logo::before {
  display: none;
}

.brand-mark-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.brand-label {
  margin: 0;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-strong);
}

.brand-note {
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: flex-end;
}

.topnav a {
  padding: 0.5rem 0.6rem;
  font-size: 0.85rem;
  white-space: nowrap;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: background-color 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text-strong);
  background: rgba(193, 95, 60, 0.08);
  transform: translateY(-1px);
}

.topnav-strong a {
  border: 1px solid rgba(193, 95, 60, 0.22);
  background: rgba(193, 95, 60, 0.08);
  color: var(--text-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.topnav-strong a:hover,
.topnav-strong a:focus-visible {
  background: linear-gradient(135deg, rgba(193, 95, 60, 0.92), rgba(159, 73, 42, 0.94));
  border-color: rgba(255, 235, 227, 0.16);
  color: #ffffff;
}

.assignment-layout {
  position: relative;
}

.assignment-flow {
  min-width: 0;
}

.assignment-overview-page .topbar {
  transition: opacity 0.36s ease, transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

.assignment-overview-page.nav-docked .topbar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1.4rem);
}

.side-rail-nav {
  position: fixed;
  left: 1.15rem;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 4.45rem;
  padding: 0.78rem 0.55rem;
  border: 1px solid rgba(193, 95, 60, 0.16);
  border-radius: 2.15rem;
  background: rgba(12, 10, 9, 0.88);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translate(-0.9rem, -50%);
  pointer-events: none;
  z-index: 48;
  overflow: hidden;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.36s ease, transform 0.52s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.34s ease, box-shadow 0.38s ease;
}

.assignment-overview-page.nav-docked .side-rail-nav {
  opacity: 1;
  transform: translate(0, -50%);
  pointer-events: auto;
}

.side-rail-nav:hover,
.side-rail-nav:focus-within {
  width: 13.8rem;
  border-color: rgba(193, 95, 60, 0.22);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.38);
}

.side-rail-kicker,
.side-rail-divider {
  display: none;
}

.side-rail-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 3.35rem;
  padding: 0.72rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(244, 243, 238, 0.74);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-rail-nav:hover .side-rail-link,
.side-rail-nav:focus-within .side-rail-link {
  justify-content: flex-start;
  gap: 0.95rem;
}

.side-rail-link:hover,
.side-rail-link:focus-visible,
.side-rail-link.is-active {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(193, 95, 60, 0.22);
  color: var(--text-strong);
  transform: translateX(0.12rem);
}

.side-rail-link.is-active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.side-rail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.32rem;
  height: 2.32rem;
  border: 1px solid rgba(244, 243, 238, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: rgba(244, 243, 238, 0.88);
  transition: color 0.3s ease, transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.34s ease;
}

.side-rail-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.side-rail-label {
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transform: translateX(-0.4rem);
  color: rgba(244, 243, 238, 0.84);
  transition: max-width 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-rail-nav:hover .side-rail-label,
.side-rail-nav:focus-within .side-rail-label {
  max-width: 8rem;
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.04s;
}

.side-rail-link:hover .side-rail-icon,
.side-rail-link:focus-visible .side-rail-icon,
.side-rail-link.is-active .side-rail-icon {
  color: #ffffff;
  border-color: rgba(193, 95, 60, 0.22);
  background: rgba(193, 95, 60, 0.12);
  box-shadow: 0 0 0 0.22rem rgba(193, 95, 60, 0.08);
  transform: scale(1.05);
}

.side-rail-link-home,
.side-rail-link-track {
  color: rgba(244, 243, 238, 0.9);
}

.section {
  margin-top: 1.8rem;
}

#deliverables {
  scroll-margin-top: -0.75rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-single {
  grid-template-columns: 1fr;
}

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-box), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.32s ease, border-color 0.28s ease;
}

.panel::after {
  content: "";
  position: absolute;
  inset: auto 1.5rem -1.25rem 1.5rem;
  height: 1.25rem;
  background: rgba(0, 0, 0, 0.26);
  filter: blur(20px);
  opacity: 0.9;
  pointer-events: none;
}

.panel:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-box-hover), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  border-color: var(--line-strong);
}

.hero-card,
.info-card,
.member-card,
.assignment-card,
.page-card,
.placeholder-card,
.publish-card,
.page-callout {
  padding: 1.5rem;
}

.hero-card {
  animation: fade-up 0.82s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero-stage {
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.hero-card::before,
.info-card::before,
.assignment-card::before,
.page-card::before,
.placeholder-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    linear-gradient(315deg, rgba(244, 243, 238, 0.025), transparent 34%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(193, 95, 60, 0.34);
  background: rgba(193, 95, 60, 0.08);
  color: #f2c1ad;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: "Archivo", Arial, sans-serif;
  font-size: clamp(2.3rem, 6vw, 4.7rem);
  line-height: 0.94;
  color: var(--text-strong);
  letter-spacing: -0.05em;
}

.hero h1 span,
.page-hero h1 span {
  color: var(--primary);
}

.hero-subtitle,
.page-subtitle,
.section-copy,
.card-copy,
.member-note,
.publish-copy {
  line-height: 1.68;
  color: white;
}

.note-line {
  margin-top: 1rem;
  color: #d9c4bb;
  font-size: 0.95rem;
  font-weight: 600;
}

.button-row,
.assignment-links,
.footer-links,
.stack-list,
.member-pill-list,
.assignment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.assignment-meta {
  margin-top: 1rem;
}

.assignment-links {
  margin-top: 1.15rem;
}

.stage-card .stack-list {
  margin-top: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.95rem 1.2rem;
  border-radius: 1rem;
  font-weight: 700;
  transition: box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), #d67a55);
  border: 1px solid rgba(255, 235, 227, 0.14);
  color: #fff6f2;
  box-shadow: 0 14px 30px rgba(193, 95, 60, 0.22);
}

.button-secondary {
  background: linear-gradient(135deg, rgba(193, 95, 60, 0.92), rgba(159, 73, 42, 0.94));
  border: 1px solid rgba(255, 235, 227, 0.12);
  color: var(--text-strong);
  box-shadow: 0 12px 28px rgba(193, 95, 60, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible,
.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 240, 233, 0.2);
  background: linear-gradient(135deg, #d06c46, #e0855f);
}

.hero-meta {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.meta-item {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(193, 95, 60, 0.2), rgba(193, 95, 60, 0.09));
  border: 1px solid rgba(193, 95, 60, 0.28);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.meta-label,
.card-kicker,
.publish-step {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.meta-value,
.card-title,
.member-name,
.publish-title,
.stage-card h2,
.stage-card h3 {
  color: var(--text-strong);
}

.meta-value {
  margin: 0.45rem 0 0;
  font-size: 1rem;
  font-weight: 700;
}

.hero-stage {
  position: relative;
  padding: 1rem 0 0;
}

.stage-grid {
  position: relative;
  display: grid;
  gap: 1rem;
  height: 100%;
  padding-left: var(--stage-padding-left);
}

.stage-grid::before {
  content: "";
  position: absolute;
  left: var(--stage-chain-x);
  top: 1rem;
  bottom: 1rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(193, 95, 60, 0.88), rgba(193, 95, 60, 0.24));
  border-radius: 999px;
  transform-origin: top center;
  transform: translateX(-50%);
  animation: reveal-line 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.stage-card {
  position: relative;
  padding: 1.35rem;
  border-radius: 1.4rem;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow-box);
  animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 0.28s ease, box-shadow 0.32s ease, border-color 0.28s ease, background-color 0.28s ease;
}

.stage-card::before {
  content: "";
  position: absolute;
  left: calc(var(--stage-chain-x) - var(--stage-padding-left));
  top: 1.45rem;
  width: var(--stage-dot-size);
  height: var(--stage-dot-size);
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #ffffff 0, #f4f3ee 18%, #c15f3c 22%, #c15f3c 62%, #7c3e27 100%);
  border: 3px solid rgba(10, 10, 10, 0.98);
  box-shadow: 0 0 0 3px rgba(193, 95, 60, 0.16);
  transform: translateX(-50%);
  animation: pop-in 0.56s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.stage-card-main,
.stage-card-secondary,
.stage-card-tertiary {
  transform: none;
}

.stage-card-main {
  animation-delay: 0.22s;
}

.stage-card-main::before {
  animation-delay: 0.3s;
}

.stage-card-secondary {
  animation-delay: 0.34s;
}

.stage-card-secondary::before {
  animation-delay: 0.42s;
}

.stage-card-tertiary {
  animation-delay: 0.46s;
}

.stage-card-tertiary::before {
  animation-delay: 0.54s;
}

.status-pill,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-pill {
  border: 1px solid rgba(193, 95, 60, 0.3);
  background: rgba(193, 95, 60, 0.08);
  color: var(--success);
}

.status-pill.planned {
  border: 1px solid rgba(177, 173, 161, 0.18);
  background: rgba(177, 173, 161, 0.08);
  color: #ded8ca;
}

.chip {
  border: 1px solid rgba(193, 95, 60, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.mini-list,
.repo-list,
.placeholder-list,
.mono-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}


.mini-list li,
.repo-list li,
.placeholder-list li {
  position: relative;
  margin-top: 0.7rem;
  padding-left: 1.1rem;
  color: white;
  line-height: 1.6;
}

.mini-list li::before,
.repo-list li::before,
.placeholder-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text-strong);
  padding: 0.7rem 1.15rem;
  font: 700 0.76rem/1 "Archivo", Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.section-toggle:hover,
.section-toggle:focus-visible {
  border-color: var(--accent);
  background: var(--panel-hover);
  transform: translateY(-1px);
}

.section-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.section-collapse {
  display: block;
}

.is-section-collapsed .section-collapse {
  display: none;
}

.text-report-page .bert-pipeline-card {
  margin-bottom: 2rem;
}

.text-report-page .bert-pipeline-flow {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) auto minmax(280px, 1.4fr) auto minmax(220px, 1fr) auto minmax(180px, 0.9fr);
  gap: 0.9rem;
  align-items: center;
  margin-top: 1.5rem;
}

.text-report-page .bert-pipeline-flow[hidden],
.text-report-page .bert-stage-detail[hidden] {
  display: none;
}

.text-report-page .bert-pipeline-arrow {
  position: relative;
  width: 72px;
  height: 24px;
  font-size: 0;
  background:
    radial-gradient(circle, #ffffff 0 6px, #2f7dff 6px 8px, transparent 8px) left center / 16px 16px no-repeat,
    radial-gradient(circle, #ffffff 0 6px, #2f7dff 6px 8px, transparent 8px) right center / 16px 16px no-repeat,
    linear-gradient(#2f7dff, #2f7dff) center / calc(100% - 12px) 2px no-repeat;
}

.text-report-page .bert-pipeline-arrow::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #2f7dff;
  transform: translateY(-50%);
}

.text-report-page .bert-pipeline-stage,
.text-report-page .bert-pipeline-subblock {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-soft);
}

.text-report-page .bert-pipeline-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.2rem;
  color: inherit;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.text-report-page .bert-stage-input,
.text-report-page .bert-stage-output {
  border-color: rgba(110, 168, 254, 0.75);
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
}

.text-report-page .bert-stage-backbone,
.text-report-page .bert-stage-head {
  border-color: rgba(148, 167, 191, 0.7);
  background: linear-gradient(180deg, #d5e0ec 0%, #c8d4e1 100%);
}

.text-report-page .bert-stage-input .bert-pipeline-title,
.text-report-page .bert-stage-output .bert-pipeline-title,
.text-report-page .bert-stage-backbone .bert-pipeline-title,
.text-report-page .bert-stage-head .bert-pipeline-title {
  color: #111827;
}

.text-report-page .bert-stage-input .bert-subtitle,
.text-report-page .bert-stage-output .bert-subtitle,
.text-report-page .bert-stage-backbone .bert-subtitle,
.text-report-page .bert-stage-head .bert-subtitle,
.text-report-page .bert-stage-input .bert-mini-list li,
.text-report-page .bert-stage-output .bert-mini-list li,
.text-report-page .bert-stage-backbone .bert-mini-list li,
.text-report-page .bert-stage-head .bert-mini-list li,
.text-report-page .bert-stage-input code,
.text-report-page .bert-stage-output code,
.text-report-page .bert-stage-backbone code,
.text-report-page .bert-stage-head code {
  color: #111827;
}

.text-report-page .bert-pipeline-stage:hover,
.text-report-page .bert-pipeline-stage:focus-visible {
  border-color: var(--accent);
  background: var(--panel-hover);
  transform: translateY(-2px);
}

.text-report-page .bert-pipeline-stage:focus-visible,
.text-report-page .bert-back-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.text-report-page .bert-pipeline-title {
  margin: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.1rem;
  color: var(--text-strong);
  letter-spacing: -0.03em;
}

.text-report-page .bert-pipeline-stack {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.text-report-page .bert-stage-detail {
  margin-top: 1.5rem;
}

.text-report-page .bert-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.text-report-page .bert-back-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--primary);
  padding: 0.65rem 1rem;
  font: 700 0.72rem/1 "Archivo", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.text-report-page .bert-shape-card {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--panel-soft);
}

.text-report-page .bert-shape-title {
  margin: 0;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

.text-report-page .bert-shape-table {
  width: 100%;
  border-collapse: collapse;
}

.text-report-page .bert-shape-table th,
.text-report-page .bert-shape-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px dashed var(--line);
  color: var(--text);
  font-size: 0.9rem;
  text-align: left;
}

.text-report-page .bert-shape-table th {
  color: var(--text-strong);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-text-theme="dark"] .text-report-page .bert-pipeline-title,
html[data-text-theme="dark"] .text-report-page .bert-subtitle,
html[data-text-theme="dark"] .text-report-page .bert-mini-list li,
html[data-text-theme="dark"] .text-report-page .bert-mini-list code,
html[data-text-theme="dark"] .text-report-page .bert-shape-title,
html[data-text-theme="dark"] .text-report-page .bert-shape-table th,
html[data-text-theme="dark"] .text-report-page .bert-shape-table td,
html[data-text-theme="dark"] .text-report-page .bert-shape-table code {
  color: #ffffff;
}

.text-report-page .bert-backbone-flow {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.text-report-page .bert-backbone-arrow {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 24px;
  font-size: 0;
  background:
    radial-gradient(circle, #ffffff 0 6px, #2f7dff 6px 8px, transparent 8px) left center / 16px 16px no-repeat,
    radial-gradient(circle, #ffffff 0 6px, #2f7dff 6px 8px, transparent 8px) right center / 16px 16px no-repeat,
    linear-gradient(#2f7dff, #2f7dff) center / calc(100% - 12px) 2px no-repeat;
}

.text-report-page .bert-backbone-arrow::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #2f7dff;
  transform: translateY(-50%);
}

.text-report-page .bert-pipeline-subblock {
  flex: 1 1 170px;
  min-width: 170px;
  padding: 0.9rem 1rem;
}

.text-report-page .bert-subtitle {
  margin: 0 0 0.45rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-report-page .bert-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.text-report-page .bert-mini-list li {
  position: relative;
  padding-left: 0.9rem;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.text-report-page .bert-mini-list code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.text-report-page .bert-mini-list li + li {
  margin-top: 0.45rem;
}

.text-report-page .bert-mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 1100px) {
  .text-report-page .bert-pipeline-flow {
    grid-template-columns: 1fr;
  }

  .text-report-page .bert-pipeline-arrow {
    transform: rotate(90deg);
  }

  .text-report-page .bert-backbone-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .text-report-page .bert-backbone-arrow {
    transform: rotate(90deg);
  }
}

.section-title {
  margin: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text-strong);
  letter-spacing: -0.04em;
}

.info-grid,
.member-grid,
.assignment-grid,
.page-grid,
.placeholder-grid,
.publish-grid {
  display: grid;
  gap: 1rem;
}

.info-card,
.member-card,
.assignment-card,
.page-card,
.placeholder-card,
.publish-card,
.page-callout,
.footer-card {
  animation: fade-up 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.info-card:nth-child(1),
.member-card:nth-child(1),
.assignment-card:nth-child(1),
.placeholder-card:nth-child(1),
.publish-card:nth-child(1) {
  animation-delay: 0.12s;
}

.info-card:nth-child(2),
.member-card:nth-child(2),
.assignment-card:nth-child(2),
.placeholder-card:nth-child(2),
.publish-card:nth-child(2) {
  animation-delay: 0.2s;
}

.info-card:nth-child(3),
.member-card:nth-child(3),
.assignment-card:nth-child(3) {
  animation-delay: 0.28s;
}

.info-card:nth-child(4) {
  animation-delay: 0.36s;
}

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

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

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

.page-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

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

.card-title,
.member-name,
.publish-title {
  margin: 0.45rem 0 0;
  font-family: "Archivo", Arial, sans-serif;
}

.card-title {
  font-size: 1.35rem;
  line-height: 1.1;
}

.member-name {
  font-size: 1.25rem;
}

.member-card {
  display: block;
  min-height: 14.5rem;
  isolation: isolate;
  overflow: visible;
  background: var(--panel-strong);
}

.member-id {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.member-role {
  margin: 0.55rem 0 0;
  color: #efb59e;
  font-weight: 700;
}

.member-hover-card {
  position: absolute;
  top: 50%;
  left: calc(100% - 0.35rem);
  width: min(18rem, calc(100vw - 4rem));
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid rgba(193, 95, 60, 0.42);
  background:
    linear-gradient(180deg, rgba(22, 22, 24, 0.98), rgba(10, 10, 10, 0.98));
  box-shadow: 0 28px 62px rgba(0, 0, 0, 0.44);
  opacity: 0;
  visibility: hidden;
  transform: translate(16px, -50%);
  transition: opacity 0.26s ease, transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
  pointer-events: none;
  z-index: 8;
}

.member-hover-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.52rem;
  width: 1rem;
  height: 1rem;
  border-radius: 0.18rem;
  background: rgba(18, 18, 18, 0.98);
  transform: translateY(-50%) rotate(45deg);
  border-left: 1px solid rgba(193, 95, 60, 0.32);
  border-bottom: 1px solid rgba(193, 95, 60, 0.32);
}

.member-card:hover .member-hover-card,
.member-hover-card:hover,
.member-hover-card:focus-within {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
  pointer-events: auto;
}

.member-card:hover {
  z-index: 10;
}

.member-card:nth-child(3) .member-hover-card {
  left: auto;
  right: calc(100% - 0.35rem);
  transform: translate(-16px, -50%);
}

.member-card:nth-child(3) .member-hover-card::before {
  left: auto;
  right: -0.52rem;
  border-left: none;
  border-bottom: none;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.member-card:nth-child(3):hover .member-hover-card,
.member-card:nth-child(3) .member-hover-card:hover,
.member-card:nth-child(3) .member-hover-card:focus-within {
  transform: translate(0, -50%);
}

.member-hover-label,
.member-hover-handle,
.member-hover-link {
  margin: 0;
}

.member-hover-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 240, 235, 0.84);
}

.member-hover-handle {
  margin-top: 0.45rem;
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.5;
}

.member-hover-link {
  margin-top: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.7rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 235, 227, 0.14);
  background: linear-gradient(135deg, rgba(193, 95, 60, 0.96), rgba(159, 73, 42, 0.96));
  color: #fff1e9;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.member-hover-link:hover,
.member-hover-link:focus-visible {
  background: linear-gradient(135deg, #d06c46, #e0855f);
  border-color: rgba(255, 240, 233, 0.2);
  transform: translateY(-1px);
}

.assignment-card.active {
  background: var(--panel-strong);
}

.assignment-card.planned {
  background: var(--panel-strong);
}

.repo-card {
  background: var(--panel-strong);
}

.mono-list li {
  margin-top: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(193, 95, 60, 0.18), rgba(193, 95, 60, 0.08));
  border: 1px solid rgba(193, 95, 60, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  color: var(--text-strong);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.2rem;
}

.image-report-page .section {
  margin-top: 2.35rem;
}

.image-report-page .page-hero {
  gap: 1.45rem;
  align-items: stretch;
}

.image-report-page .page-callout {
  padding: 1.55rem;
}

.image-report-page .kpi-grid,
.image-report-page .report-grid,
.image-report-page .figure-grid,
.image-report-page .deliverable-grid {
  gap: 1.35rem;
}

.image-report-page .kpi-card {
  padding: 1.45rem;
}

.content-card {
  padding: 1.65rem;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.story-block > :first-child {
  margin-top: 0;
}

.story-block .mini-list,
.story-block .mono-list {
  margin-bottom: 0;
}

.soft-divider {
  height: 1px;
  margin: 1.45rem 0;
  background: linear-gradient(90deg, rgba(193, 95, 60, 0), rgba(193, 95, 60, 0.36), rgba(193, 95, 60, 0));
}

.figure-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.figure-stack-item {
  min-width: 0;
}

.extension-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.extension-item {
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.025);
}

.extension-item > :first-child {
  margin-top: 0;
}

.deliverable-grid,
.track-grid,
.kpi-grid,
.report-grid,
.figure-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

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

.report-grid-wide {
  grid-template-columns: 1.1fr 0.9fr;
}

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

.deliverable-card,
.track-card,
.kpi-card,
.report-card,
.figure-card {
  padding: 1.35rem;
}

.deliverable-note,
.track-copy,
.figure-caption,
.kpi-note {
  color: white;
  line-height: 1.65;
}

.report-nav,
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.report-nav {
  margin-bottom: 1rem;
}

.report-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 235, 227, 0.12);
  background: linear-gradient(135deg, rgba(193, 95, 60, 0.92), rgba(159, 73, 42, 0.94));
  color: var(--text-strong);
  font-weight: 700;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.report-nav a:hover,
.report-nav a:focus-visible {
  background: linear-gradient(135deg, #d06c46, #e0855f);
  border-color: rgba(255, 240, 233, 0.2);
  transform: translateY(-1px);
}

.kpi-label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi-value {
  margin: 0.55rem 0 0;
  font-family: "Archivo", Arial, sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  line-height: 1;
  color: var(--text-strong);
}

.kpi-note {
  margin: 0.65rem 0 0;
}

.track-card-pending {
  border-style: dashed;
}

.compare-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  color: var(--text-strong);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 0.92rem;
}

.compare-table td {
  color: var(--muted);
  line-height: 1.55;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.figure-frame {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.82);
}

.figure-frame img {
  width: 100%;
  height: auto;
}

.figure-caption {
  margin: 0.9rem 0 0;
}

.footer {
  margin: 2rem auto 3rem;
}

.footer-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  color: white;
}

.footer-card p {
  margin: 0;
  line-height: 1.6;
}

.footer-links {
  gap: 0.8rem;
}

.footer-links a {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-strong);
}

.footer-links a:hover,
.footer-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
}

.text-link {
  font-weight: 700;
  color: #98cbfc;
}

:focus-visible {
  outline: 3px solid rgba(193, 95, 60, 0.35);
  outline-offset: 3px;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-line {
  from {
    opacity: 0;
    transform: translateX(-50%) scaleY(0);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.7);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@media (max-width: 1100px) {
  .side-rail-nav {
    display: none;
  }

  .assignment-overview-page .topbar,
  .assignment-overview-page.nav-docked .topbar {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .hero,
  .page-hero,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .story-grid,
  .story-grid-triple,
  .figure-stack,
  .extension-stack {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .member-grid,
  .assignment-grid,
  .deliverable-grid,
  .track-grid,
  .kpi-grid,
  .report-grid,
  .figure-grid,
  .placeholder-grid,
  .publish-grid,
  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-grid-wide {
    grid-template-columns: 1fr;
  }

  .member-hover-card,
  .member-card:nth-child(3) .member-hover-card {
    top: calc(100% - 0.25rem);
    left: 1rem;
    right: 1rem;
    width: auto;
    transform: translateY(12px);
  }

  .member-hover-card::before,
  .member-card:nth-child(3) .member-hover-card::before {
    top: -0.52rem;
    left: 1.25rem;
    right: auto;
    transform: rotate(45deg);
    border-right: none;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .member-card:hover .member-hover-card,
  .member-hover-card:hover,
  .member-hover-card:focus-within,
  .member-card:nth-child(3):hover .member-hover-card,
  .member-card:nth-child(3) .member-hover-card:hover,
  .member-card:nth-child(3) .member-hover-card:focus-within {
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  :root {
    --stage-padding-left: 1.6rem;
    --stage-chain-x: 0.72rem;
  }

  body {
    padding-top: 7rem;
  }

  .topbar {
    inset: 0.75rem 0 auto;
  }

  .topbar-inner {
    border-radius: 1.45rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-card,
  .info-card,
  .member-card,
  .assignment-card,
  .page-card,
  .placeholder-card,
  .publish-card,
  .page-callout {
    padding: 1.3rem;
  }

  .hero-meta,
  .info-grid,
  .member-grid,
  .assignment-grid,
  .deliverable-grid,
  .track-grid,
  .kpi-grid,
  .report-grid,
  .figure-grid,
  .placeholder-grid,
  .publish-grid {
    grid-template-columns: 1fr;
  }

  .content-card,
  .extension-item {
    padding: 1.3rem;
  }

  .report-nav a {
    width: 100%;
  }

  .stage-card-main,
  .stage-card-secondary,
  .stage-card-tertiary {
    transform: none;
  }

  .button,
  .button-row .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
  }
}

/* --- HOME REPORT PAGE --- */
.home-report-page {
  --primary: #111111;
  --primary-deep: #000000;
  --accent: #111111;
  --radius-xl: 0.4rem;
  --radius-lg: 0.35rem;
  --radius-md: 0.3rem;
  --radius-sm: 0.22rem;
  --shadow-soft: none;
  --shadow-box: none;
  --shadow-box-hover: none;
  font-family: "Inter", "Space Grotesk", Arial, sans-serif;
  letter-spacing: -0.01em;
  padding-top: 4.8rem;
  transition: background-color 220ms ease, color 220ms ease;
}

.home-report-page .shell {
  width: min(calc(100% - 3.75rem), 1500px);
}

html[data-home-theme="light"] .home-report-page {
  --bg: #ffffff;
  --bg-strong: #f5f5f5;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --text: #121212;
  --text-strong: #000000;
  --muted: #6b6b6b;
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.22);
  --primary: #101010;
  --primary-deep: #000000;
  --accent: #101010;
  --accent-soft: rgba(17, 17, 17, 0.05);
  --nav-surface: rgba(255, 255, 255, 0.9);
  background: #ffffff;
}

html[data-home-theme="dark"] .home-report-page {
  --bg: #000000;
  --bg-strong: #080808;
  --panel: rgba(16, 17, 18, 0.94);
  --panel-strong: rgba(13, 14, 15, 0.98);
  --text: #efefef;
  --text-strong: #ffffff;
  --muted: #a7a7a7;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --primary: #ffffff;
  --primary-deep: #f4f4f4;
  --accent: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --nav-surface: rgba(0, 0, 0, 0.84);
  background: #000000;
}

.home-report-page::before {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 132px 132px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 92%);
  opacity: 0.16;
}

.home-report-page::after {
  background: none;
}

.home-report-page .topbar {
  inset: 0 0 auto;
}

.home-report-page .topbar-inner {
  padding: 0.82rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--nav-surface);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.home-report-page .brand-label,
.home-report-page .brand-note,
.home-report-page .brand-mark,
.home-report-page .topnav a,
.home-report-page .section-title,
.home-report-page .ledger-row-title,
.home-report-page .footer-title,
.home-report-page h1,
.home-report-page h2,
.home-report-page h3 {
  font-family: "Inter", Arial, sans-serif;
}

.home-report-page .brand-mark {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-report-page .brand-mark::before {
  width: 1rem;
  height: 1rem;
  border-radius: 0.05rem;
  transform: none;
  background: var(--primary);
}

.home-report-page .brand-mark.has-logo {
  border-radius: 999px;
  background: #ffffff;
  box-shadow: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text-strong);
  font: inherit;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--accent-soft);
  border-color: var(--line-strong);
  outline: none;
}

.theme-toggle-indicator {
  width: 1rem;
  height: 1rem;
  border: 1px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

.home-report-page .topnav {
  gap: 0.55rem;
}

.home-report-page .topnav a {
  padding: 0.4rem 0;
  border: 0;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-report-page .topnav a:hover,
.home-report-page .topnav a:focus-visible {
  background: transparent;
  border-color: transparent;
  color: var(--primary);
  transform: none;
}

.home-report-page .panel {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-report-page .panel:hover {
  transform: none;
  box-shadow: none;
}

.home-report-page .section {
  margin-top: 3.4rem;
}

.home-report-hero {
  margin-top: 0;
  padding-top: 0.35rem;
}

.home-masthead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(22rem, 0.72fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
  min-height: min(51vh, 32rem);
}

.home-masthead-copy {
  min-width: 0;
  padding-block: 0.35rem 0.5rem;
}

.home-masthead-copy h1 {
  max-width: 8.7ch;
  margin-bottom: 0.8rem;
  font-size: clamp(2.85rem, 6.7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.home-masthead-copy h1 span {
  display: block;
}

.home-report-page .hero-subtitle {
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.5;
}

.home-report-page .note-line {
  max-width: 30rem;
  margin-top: 0.65rem;
  color: var(--muted);
  line-height: 1.54;
}

.home-masthead-aside {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1.4rem;
  align-self: stretch;
  justify-self: stretch;
}

.masthead-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.2rem;
}

.masthead-kpi-item {
  min-height: 5rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line-strong);
}

.masthead-kpi-item .meta-label {
  margin-bottom: 0.5rem;
}

.masthead-kpi-item .meta-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-strong);
}

.masthead-note {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 10rem;
  padding-block: 0.8rem 0.45rem;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.report-strip-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.masthead-note strong {
  display: block;
  max-width: 15ch;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.1;
  color: var(--text-strong);
}

.masthead-note p {
  max-width: 18rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.48;
}

.home-report-page .button {
  border-radius: 0;
  box-shadow: none;
  font-family: "Inter", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-report-page .button-primary {
  background: var(--text-strong);
  border-color: var(--text-strong);
  color: var(--bg);
}

.home-report-page .button-primary:hover,
.home-report-page .button-primary:focus-visible {
  background: var(--muted);
  border-color: var(--muted);
  color: var(--bg);
}

.home-report-page .button-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-strong);
}

.home-report-page .button-secondary:hover,
.home-report-page .button-secondary:focus-visible {
  background: var(--accent-soft);
  border-color: var(--line-strong);
}

.report-section-ledger .section-head {
  margin-bottom: 1.3rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.report-ledger {
  border-top: 1px solid var(--line-strong);
}

.ledger-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1.4fr) minmax(16rem, 1fr) auto;
  gap: 1.35rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.ledger-row-index {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ledger-row-main {
  min-width: 0;
}

.ledger-row-kicker {
  margin: 0 0 0.28rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ledger-row-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-strong);
}

.ledger-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.ledger-row-meta span {
  position: relative;
  padding-left: 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.ledger-row-meta span::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(-50%);
}

.ledger-row-action {
  display: flex;
  justify-content: flex-end;
}

.ledger-row-action .button {
  min-width: 10.5rem;
}

.assignment-ledger-row.is-active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 58%);
}

html[data-home-theme="light"] .home-report-page .assignment-ledger-row.is-active {
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.045), transparent 58%);
}

html[data-home-theme="dark"] .home-report-page .assignment-ledger-row.is-active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 58%);
}

.home-report-page .footer {
  margin-top: 4.5rem;
  padding-bottom: 2rem;
}

.report-footer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-strong);
}

.footer-title {
  margin: 0 0 0.2rem;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-strong);
}

.footer-copy {
  margin: 0;
  color: var(--muted);
}

html[data-home-theme="light"] .home-report-page .eyebrow {
  border-color: rgba(17, 17, 17, 0.15);
  background: rgba(17, 17, 17, 0.04);
  color: #111111;
}

html[data-home-theme="dark"] .home-report-page .eyebrow {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

html[data-home-theme="light"] .home-report-page .footer-links a {
  color: #2f2f2f;
}

@media (max-width: 1180px) {
  .home-masthead-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .home-masthead-aside {
    width: min(100%, 38rem);
  }

  .masthead-note {
    min-height: auto;
  }
}

@media (max-width: 1040px) {
  .topbar-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 920px) {
  .ledger-row {
    grid-template-columns: 3.6rem 1fr;
    align-items: flex-start;
  }

  .ledger-row-meta,
  .ledger-row-action {
    grid-column: 2;
  }

  .ledger-row-action {
    justify-content: flex-start;
  }

  .report-footer-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-report-page {
    padding-top: 5.6rem;
  }

  .home-report-page .shell {
    width: min(calc(100% - 1.6rem), 1500px);
  }

  .home-report-page .topbar {
    inset: 0 0 auto;
  }

  .home-masthead-copy h1 {
    max-width: 9.5ch;
    font-size: clamp(2.55rem, 15vw, 4rem);
  }

  .home-report-page .hero-subtitle {
    font-size: 0.98rem;
  }

  .masthead-kpi-grid {
    grid-template-columns: 1fr;
  }

  .masthead-note {
    min-height: auto;
  }

  .ledger-row {
    padding: 1rem 0;
  }

  .ledger-row-title {
    font-size: 1.04rem;
  }

  .ledger-row-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .ledger-row-action .button {
    width: 100%;
  }
}

/* --- BLUE THEME OVERRIDES --- */
.theme-blue {
  --line: rgba(65, 130, 235, 0.24);
  --line-strong: rgba(65, 130, 235, 0.48);
  --primary: #4182eb;
  --primary-deep: #2a61ba;
  --accent: #4182eb;
  --accent-soft: rgba(65, 130, 235, 0.12);
}

.theme-blue .eyebrow {
  border-color: rgba(65, 130, 235, 0.34);
  background: rgba(65, 130, 235, 0.08);
  color: #adcbfa;
}

.theme-blue .button-primary {
  background: linear-gradient(135deg, var(--primary), #5a96f0);
  box-shadow: 0 14px 30px rgba(65, 130, 235, 0.22);
}

.theme-blue .button-secondary {
  background: linear-gradient(135deg, rgba(65, 130, 235, 0.92), rgba(42, 97, 186, 0.94));
  box-shadow: 0 12px 28px rgba(65, 130, 235, 0.18);
}

.theme-blue .button-primary:hover,
.theme-blue .button-primary:focus-visible,
.theme-blue .button-secondary:hover,
.theme-blue .button-secondary:focus-visible {
  background: linear-gradient(135deg, #4d8df5, #67a2fa);
}

.theme-blue .meta-item {
  background: linear-gradient(135deg, rgba(65, 130, 235, 0.2), rgba(65, 130, 235, 0.09));
  border-color: rgba(65, 130, 235, 0.28);
}

.theme-blue .brand-mark::before {
  background: linear-gradient(145deg, rgba(65, 130, 235, 0.96), rgba(133, 172, 235, 0.9));
}

.theme-blue .status-pill {
  border-color: rgba(65, 130, 235, 0.3);
  background: rgba(65, 130, 235, 0.08);
}

.theme-blue .chip {
  border-color: rgba(65, 130, 235, 0.18);
}

.theme-blue a:hover,
.theme-blue a:focus-visible {
  background: rgba(65, 130, 235, 0.08);
}

.theme-blue .panel {
  box-shadow: var(--shadow-box), inset 0 0 0 1px rgba(65, 130, 235, 0.12);
}
.theme-blue .panel:hover {
  box-shadow: var(--shadow-box-hover), inset 0 0 0 1px rgba(65, 130, 235, 0.2);
  border-color: var(--line-strong);
}

.theme-blue:focus-visible {
  outline-color: rgba(65, 130, 235, 0.35);
}

.theme-blue .report-nav a {
  border-color: rgba(235, 240, 255, 0.12);
  background: linear-gradient(135deg, rgba(65, 130, 235, 0.92), rgba(42, 97, 186, 0.94));
}

.theme-blue .report-nav a:hover,
.theme-blue .report-nav a:focus-visible {
  background: linear-gradient(135deg, #4d8df5, #67a2fa);
  border-color: rgba(235, 240, 255, 0.2);
}

.theme-blue .mono-list li {
  background: linear-gradient(135deg, rgba(65, 130, 235, 0.18), rgba(65, 130, 235, 0.08));
  border-color: rgba(65, 130, 235, 0.28);
}

/* --- HOME SAAS OVERRIDES --- */
.home-report-page {
  --primary: #000000;
  --primary-deep: #000000;
  --accent: #000000;
  --radius-xl: 0;
  --radius-lg: 0;
  --radius-md: 0;
  --radius-sm: 0;
  padding-top: 4.8rem;
  font-family: "Inter", Arial, sans-serif;
}

.home-report-page .shell {
  width: min(calc(100% - 2.5rem), 1440px);
}

html[data-home-theme="light"] .home-report-page {
  --bg: #ffffff;
  --bg-strong: #fafafa;
  --panel: rgba(250, 250, 250, 0.96);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --text: #111111;
  --text-strong: #000000;
  --muted: rgba(0, 0, 0, 0.52);
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.18);
  --accent-soft: rgba(0, 0, 0, 0.04);
  --nav-surface: rgba(255, 255, 255, 0.92);
  background: #ffffff;
}

html[data-home-theme="dark"] .home-report-page {
  --bg: #000000;
  --bg-strong: #0a0a0a;
  --panel: rgba(10, 10, 10, 0.96);
  --panel-strong: rgba(14, 14, 14, 0.98);
  --text: rgba(255, 255, 255, 0.92);
  --text-strong: #ffffff;
  --muted: rgba(255, 255, 255, 0.58);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent-soft: rgba(255, 255, 255, 0.06);
  --nav-surface: rgba(0, 0, 0, 0.88);
  background: #000000;
}

.home-report-page::before {
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 128px 128px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 86%);
  opacity: 0.3;
}

.home-report-page::after {
  background: none;
}

.home-report-page .topbar {
  inset: 0 0 auto;
}

.home-report-page .topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.9rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--nav-surface);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.home-report-page .topbar-cluster {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  min-width: 0;
}

.home-report-page .brand {
  gap: 0.95rem;
}

.home-report-page .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.home-report-page .brand-mark::before {
  width: 1rem;
  height: 1rem;
  border-radius: 0;
  transform: none;
  background: var(--text-strong);
}

.home-report-page .brand-label {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.home-report-page .brand-note {
  margin: 0.18rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.home-report-page .topnav {
  gap: 2.25rem;
}

.home-report-page .topnav a {
  padding: 0.35rem 0;
  border: 0;
  border-radius: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-report-page .topnav a:hover,
.home-report-page .topnav a:focus-visible {
  color: var(--text-strong);
  background: transparent;
  transform: none;
}

.home-report-page .topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.home-report-page .topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.2rem;
  border: 1px solid var(--text-strong);
  background: var(--text-strong);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.home-report-page .topbar-cta:hover,
.home-report-page .topbar-cta:focus-visible {
  background: transparent;
  color: var(--text-strong);
  outline: none;
}

.home-report-page .theme-toggle {
  min-height: 2.9rem;
  padding: 0 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text-strong);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-report-page .theme-toggle:hover,
.home-report-page .theme-toggle:focus-visible {
  background: var(--accent-soft);
  border-color: var(--line-strong);
}

.home-report-page .theme-toggle-indicator {
  border-radius: 0;
}

.home-report-page .home-hero {
  padding-top: 0.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.home-report-page .home-hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem;
  min-height: calc(100dvh - 5.65rem);
  max-height: 56rem;
  align-items: center;
}

.home-report-page .hero-copy {
  grid-column: span 8;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.85rem;
}

.home-report-page .hero-label-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.home-report-page .hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--text-strong);
}

.home-report-page .hero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0 1.15rem;
  border: 1px solid var(--line-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.home-report-page .hero-copy h1 {
  max-width: 10.5ch;
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(4.25rem, 7.15vw, 6.7rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.88;
  color: var(--text-strong);
}

.home-report-page .hero-copy h1 span {
  display: block;
}

.home-report-page .hero-summary {
  max-width: 35rem;
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
}

.home-report-page .hero-summary p {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.54;
  color: var(--muted);
}

.home-report-page .hero-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-top: 0.2rem;
}

.home-report-page .hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-top: 0.5rem;
}

.home-report-page .hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-height: 2.65rem;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-strong);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.home-report-page .hero-link svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.home-report-page .hero-link:hover,
.home-report-page .hero-link:focus-visible {
  background: var(--accent-soft);
  border-color: var(--line-strong);
  transform: translateY(-1px);
  outline: none;
}

.home-report-page .hero-aside {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}

.home-report-page .hero-aside-block,
.home-report-page .hero-aside-note {
  width: 100%;
  border-top: 1px solid var(--line-strong);
  padding-top: 0.95rem;
}

.home-report-page .hero-aside-block {
  display: grid;
  gap: 0.78rem;
}

.home-report-page .hero-aside-row {
  padding-top: 0.78rem;
  border-top: 1px solid var(--line);
}

.home-report-page .hero-aside-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.home-report-page .hero-aside-row span,
.home-report-page .hero-aside-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-report-page .hero-aside-row strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.28;
  color: var(--text-strong);
}

.home-report-page .hero-aside-note h3 {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.home-report-page .hero-aside-note p:last-child {
  margin: 0.45rem 0 0;
  font-size: 0.98rem;
  line-height: 1.52;
  color: var(--muted);
}

.home-report-page .button {
  border-radius: 0;
  box-shadow: none;
  font-family: "Inter", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-report-page .button-primary,
.home-report-page .button-secondary {
  min-height: 3.75rem;
  padding-inline: 2.15rem;
  font-size: 0.76rem;
}

.home-report-page .button-primary {
  background: var(--text-strong);
  border-color: var(--text-strong);
  color: var(--bg);
}

.home-report-page .button-primary:hover,
.home-report-page .button-primary:focus-visible {
  background: transparent;
  border-color: var(--text-strong);
  color: var(--text-strong);
}

.home-report-page .button-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-strong);
}

.home-report-page .button-secondary:hover,
.home-report-page .button-secondary:focus-visible {
  background: var(--accent-soft);
  border-color: var(--line-strong);
}

.home-report-page .home-system {
  padding-block: 7rem;
}

.home-report-page .system-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.8rem;
}

.home-report-page .system-intro h2 {
  max-width: 11ch;
  margin: 0;
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: var(--text-strong);
}

.home-report-page .system-intro p {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.76;
  color: var(--muted);
}

.home-report-page .system-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
  margin-bottom: 2.35rem;
}

.home-report-page .system-stat {
  padding-top: 1rem;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
}

.home-report-page .system-stat span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-report-page .system-stat strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.home-report-page .system-ledger {
  border-top: 1px solid var(--line-strong);
}

.home-report-page .system-row {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1.2fr) minmax(14rem, auto);
  gap: 1.2rem;
  align-items: center;
  padding: 1.55rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
}

.home-report-page .system-row:hover,
.home-report-page .system-row:focus-visible {
  color: inherit;
  outline: none;
}

.home-report-page .system-row-index {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-report-page .system-row-main h3 {
  margin: 0 0 0.28rem;
  font-family: "Inter", Arial, sans-serif;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.home-report-page .system-row-main p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.62;
  color: var(--muted);
}

.home-report-page .system-row-kicker {
  margin: 0 0 0.38rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-report-page .system-row-meta {
  justify-self: end;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-report-page .system-row-action {
  justify-self: end;
  display: grid;
  gap: 0.55rem;
  justify-items: end;
}

.home-report-page .system-row-button {
  min-height: 3rem;
  padding-inline: 1.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.home-report-page .system-row-note {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-report-page .system-row-stack {
  grid-template-columns: 3.6rem minmax(0, 1.1fr) minmax(16rem, auto);
}

.home-report-page .system-row-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.home-report-page .system-row-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0 0.82rem;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.home-report-page .system-row-links a:hover,
.home-report-page .system-row-links a:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.home-report-page .home-proof {
  padding-bottom: 7rem;
}

.home-report-page .proof-block {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(17.25rem, 21.5rem);
  gap: 1.25rem;
  background: #000000;
  color: #ffffff;
  padding: 4rem;
}

.home-report-page .proof-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
}

.home-report-page .proof-copy,
.home-report-page .proof-console {
  position: relative;
  z-index: 1;
}

.home-report-page .proof-label {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.home-report-page .proof-copy h2 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(3rem, 5vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.92;
  color: #ffffff;
}

.home-report-page .proof-text {
  max-width: 34rem;
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
}

.home-report-page .proof-text p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
}

.home-report-page .proof-metrics {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
}

.home-report-page .proof-metric strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
}

.home-report-page .proof-metric span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.home-report-page .proof-console {
  align-self: center;
  justify-self: start;
  width: min(100%, 21.5rem);
  margin-left: -10rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 1.4rem;
  font-family: "Space Grotesk", "Courier New", monospace;
}

.home-report-page .proof-console-bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.home-report-page .proof-console-bar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.home-report-page .proof-console-bar .proof-dot-red {
  background: #ff5f57;
}

.home-report-page .proof-console-bar .proof-dot-yellow {
  background: #febc2e;
}

.home-report-page .proof-console-bar .proof-dot-green {
  background: #28c840;
}

.home-report-page .proof-console-body {
  display: grid;
  gap: 0.5rem;
}

.home-report-page .proof-console-body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.84);
}

.home-report-page .proof-muted {
  color: rgba(255, 255, 255, 0.34);
}

.home-report-page .proof-comment {
  color: rgba(255, 255, 255, 0.36);
}

.home-report-page .proof-command {
  color: #f5f5f5;
}

.home-report-page .proof-keyword {
  color: #facc15;
}

.home-report-page .proof-arg {
  color: #ffffff;
}

.home-report-page .proof-info {
  color: #60a5fa;
}

.home-report-page .proof-success {
  color: #34d399;
}

.home-report-page .proof-path {
  color: #f5f5f5;
}

.home-report-page .proof-link {
  color: #93c5fd;
}

.home-report-page .proof-highlight {
  margin-top: 0.4rem;
  color: #34d399;
}

.home-report-page .home-footer {
  padding-block: 5.5rem 2rem;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.home-report-page .home-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
}

.home-report-page .home-footer-brand {
  max-width: 20rem;
}

.home-report-page .home-footer-mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.home-report-page .home-footer-mark span {
  display: inline-block;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--text-strong);
}

.home-report-page .home-footer-mark strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.home-report-page .home-footer-brand p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-report-page .home-footer-column h3 {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.home-report-page .home-footer-column a,
.home-report-page .home-footer-column p {
  display: block;
  margin: 0 0 0.72rem;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-report-page .home-footer-column a:hover,
.home-report-page .home-footer-column a:focus-visible {
  color: var(--text-strong);
  outline: none;
}

.home-report-page .home-footer-bottom {
  margin-top: 4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.home-report-page .home-footer-bottom span,
.home-report-page .home-footer-bottom-links a {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-report-page .home-footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.home-report-page .home-footer-bottom-links a:hover,
.home-report-page .home-footer-bottom-links a:focus-visible {
  color: var(--text-strong);
  outline: none;
}

@media (max-width: 1180px) {
  .home-report-page .topbar-cluster {
    gap: 1.5rem;
  }

  .home-report-page .home-hero-grid,
  .home-report-page .proof-block,
  .home-report-page .home-footer-grid {
    grid-template-columns: 1fr;
  }

  .home-report-page .hero-copy,
  .home-report-page .hero-visual {
    grid-column: auto;
  }

  .home-report-page .hero-aside {
    max-width: 30rem;
  }

  .home-report-page .system-intro {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .home-report-page .system-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .home-report-page {
    padding-top: 6rem;
  }

  .home-report-page .shell {
    width: min(calc(100% - 1.6rem), 1440px);
  }

  .home-report-page .topbar-inner,
  .home-report-page .topbar-cluster,
  .home-report-page .topbar-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-report-page .topnav {
    gap: 1.2rem;
    flex-wrap: wrap;
  }

  .home-report-page .home-hero {
    padding-bottom: 2.35rem;
  }

  .home-report-page .home-hero-grid {
    min-height: auto;
    max-height: none;
  }

  .home-report-page .hero-copy h1 {
    font-size: clamp(3.4rem, 12vw, 5.3rem);
  }

  .home-report-page .hero-summary p {
    font-size: 1.08rem;
  }

  .home-report-page .system-summary {
    grid-template-columns: 1fr;
  }

  .home-report-page .system-row,
  .home-report-page .system-row-stack {
    grid-template-columns: 1fr;
  }

  .home-report-page .system-row-meta,
  .home-report-page .system-row-links,
  .home-report-page .system-row-action {
    justify-self: start;
  }

  .home-report-page .system-row-action {
    justify-items: start;
  }

  .home-report-page .hero-actions,
  .home-report-page .home-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-report-page .hero-links {
    gap: 0.6rem;
  }
}

@media (max-width: 620px) {
  .home-report-page .topbar-cta,
  .home-report-page .theme-toggle,
  .home-report-page .button-primary,
  .home-report-page .button-secondary {
    width: 100%;
  }

  .home-report-page .hero-copy h1 {
    font-size: clamp(2.9rem, 14vw, 4.2rem);
  }

  .home-report-page .hero-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .home-report-page .hero-link {
    justify-content: center;
  }

  .home-report-page .proof-block {
    padding: 2rem 1.4rem;
  }

  .home-report-page .home-footer {
    padding-top: 4rem;
  }
}

/* --- ASSIGNMENT OVERVIEW THEME OVERRIDES --- */
.assignment-overview-page {
  transition: background-color 220ms ease, color 220ms ease;
}

html[data-assignment-theme="light"] .assignment-overview-page {
  --bg: #f6f3ed;
  --bg-strong: #fffdf8;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --text: #403a33;
  --text-strong: #14110f;
  --muted: rgba(45, 39, 34, 0.68);
  --line: rgba(20, 17, 15, 0.1);
  --line-strong: rgba(20, 17, 15, 0.16);
  --primary: #6c7750;
  --primary-deep: #4e5837;
  --accent: #6c7750;
  --accent-soft: rgba(108, 119, 80, 0.1);
  --success: #21553f;
  --topbar-surface: rgba(248, 244, 238, 0.86);
  --surface-hover: rgba(255, 255, 255, 0.72);
  --surface-hover-strong: rgba(108, 119, 80, 0.12);
  --icon-surface: rgba(255, 255, 255, 0.78);
  --icon-border: rgba(20, 17, 15, 0.12);
  --panel-shadow: 0 22px 54px rgba(42, 29, 17, 0.1);
  --panel-shadow-hover: 0 28px 64px rgba(42, 29, 17, 0.14);
  --panel-shadow-strip: rgba(20, 17, 15, 0.09);
  --rail-shadow: 0 24px 54px rgba(42, 29, 17, 0.12);
  --rail-shadow-hover: 0 28px 64px rgba(42, 29, 17, 0.16);
}

html[data-assignment-theme="dark"] .assignment-overview-page {
  --bg: #0c0c0d;
  --bg-strong: #121214;
  --panel: rgba(16, 16, 17, 0.9);
  --panel-strong: rgba(13, 13, 14, 0.95);
  --text: #f2ede7;
  --text-strong: #ffffff;
  --muted: rgba(242, 237, 231, 0.68);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --primary: #94a575;
  --primary-deep: #6c7750;
  --accent: #94a575;
  --accent-soft: rgba(148, 165, 117, 0.12);
  --success: #d8efe2;
  --topbar-surface: rgba(10, 10, 11, 0.84);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-hover-strong: rgba(148, 165, 117, 0.16);
  --icon-surface: rgba(255, 255, 255, 0.05);
  --icon-border: rgba(255, 255, 255, 0.12);
  --panel-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  --panel-shadow-hover: 0 30px 68px rgba(0, 0, 0, 0.44);
  --panel-shadow-strip: rgba(0, 0, 0, 0.28);
  --rail-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
  --rail-shadow-hover: 0 32px 68px rgba(0, 0, 0, 0.46);
}

html[data-assignment-theme="light"] body.assignment-overview-page {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(108, 119, 80, 0.08), transparent 18%),
    linear-gradient(180deg, #fcfaf6 0%, #f5f0e7 48%, #efe8de 100%);
  color: var(--text);
}

html[data-assignment-theme="dark"] body.assignment-overview-page {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.03), transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(148, 165, 117, 0.08), transparent 20%),
    linear-gradient(180deg, #101011 0%, #090909 52%, #060606 100%);
  color: var(--text);
}

html[data-assignment-theme="light"] body.assignment-overview-page::before {
  background-image:
    linear-gradient(rgba(20, 17, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 17, 15, 0.035) 1px, transparent 1px);
  opacity: 0.75;
}

html[data-assignment-theme="light"] body.assignment-overview-page::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 34%, rgba(255, 255, 255, 0.08));
}

.assignment-overview-page .topbar-inner {
  background: var(--topbar-surface);
  border-color: var(--line);
  box-shadow: var(--panel-shadow);
}

.assignment-overview-page .brand-mark.has-logo {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--line);
}

.assignment-overview-page .assignment-theme-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.assignment-overview-page .assignment-theme-toggle {
  min-height: 2.9rem;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.assignment-overview-page .assignment-theme-toggle:hover,
.assignment-overview-page .assignment-theme-toggle:focus-visible {
  background: var(--surface-hover);
  border-color: var(--line-strong);
  outline: none;
  transform: translateY(-1px);
}

.assignment-overview-page .theme-toggle-indicator {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

html[data-assignment-theme="dark"] .assignment-overview-page .theme-toggle-indicator {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.assignment-overview-page .topnav-strong a {
  border-color: var(--line);
  background: var(--panel-strong);
  color: var(--text-strong);
  box-shadow: none;
}

.assignment-overview-page .topnav-strong a:hover,
.assignment-overview-page .topnav-strong a:focus-visible {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  border-color: transparent;
  color: #fff9f5;
}

.assignment-overview-page .side-rail-nav {
  background: var(--panel-strong);
  border-color: var(--line);
  box-shadow: var(--rail-shadow);
}

.assignment-overview-page .side-rail-nav:hover,
.assignment-overview-page .side-rail-nav:focus-within {
  border-color: var(--line-strong);
  box-shadow: var(--rail-shadow-hover);
}

.assignment-overview-page .side-rail-link:hover,
.assignment-overview-page .side-rail-link:focus-visible,
.assignment-overview-page .side-rail-link.is-active {
  background: var(--surface-hover);
  border-color: var(--line);
  color: var(--text-strong);
}

.assignment-overview-page .side-rail-link {
  color: var(--text);
}

.assignment-overview-page .side-rail-label {
  color: var(--text);
}

.assignment-overview-page .side-rail-link.is-active {
  background: linear-gradient(135deg, var(--surface-hover), var(--surface-hover-strong));
}

.assignment-overview-page .side-rail-link:hover .side-rail-label,
.assignment-overview-page .side-rail-link:focus-visible .side-rail-label,
.assignment-overview-page .side-rail-link.is-active .side-rail-label {
  color: var(--text-strong);
}

.assignment-overview-page .side-rail-icon {
  border-color: var(--icon-border);
  background: var(--icon-surface);
  color: var(--text-strong);
  box-shadow: none;
}

.assignment-overview-page .side-rail-link:hover .side-rail-icon,
.assignment-overview-page .side-rail-link:focus-visible .side-rail-icon,
.assignment-overview-page .side-rail-link.is-active .side-rail-icon {
  color: var(--text-strong);
  border-color: rgba(108, 119, 80, 0.24);
  background: rgba(108, 119, 80, 0.12);
  box-shadow: 0 0 0 0.22rem rgba(108, 119, 80, 0.08);
}

.assignment-overview-page .side-rail-link-home,
.assignment-overview-page .side-rail-link-track {
  color: var(--text);
}

.assignment-overview-page .panel {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--panel-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.assignment-overview-page .panel::after {
  background: var(--panel-shadow-strip);
  opacity: 0.5;
}

.assignment-overview-page .panel:hover {
  box-shadow: var(--panel-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.36);
  border-color: var(--line-strong);
}

.assignment-overview-page .hero-card::before,
.assignment-overview-page .assignment-card::before,
.assignment-overview-page .page-callout::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 22%),
    linear-gradient(315deg, rgba(108, 119, 80, 0.08), transparent 34%);
}

.assignment-overview-page .page-hero h1 span,
.assignment-overview-page .card-kicker,
.assignment-overview-page .footer-links a:hover,
.assignment-overview-page .footer-links a:focus-visible {
  color: var(--primary-deep);
}

.assignment-overview-page .eyebrow {
  border-color: rgba(108, 119, 80, 0.26);
  background: rgba(108, 119, 80, 0.1);
  color: var(--primary-deep);
}

html[data-assignment-theme="dark"] .assignment-overview-page .eyebrow {
  border-color: rgba(148, 165, 117, 0.28);
  background: rgba(148, 165, 117, 0.14);
  color: #dce6c6;
}

.assignment-overview-page .section-copy,
.assignment-overview-page .card-copy,
.assignment-overview-page .member-note,
.assignment-overview-page .publish-copy,
.assignment-overview-page .page-callout .mini-list,
.assignment-overview-page .footer-card p {
  color: var(--muted);
}

.assignment-overview-page .button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  border-color: rgba(255, 255, 255, 0.16);
  color: #fffaf7;
  box-shadow: 0 16px 34px rgba(108, 119, 80, 0.22);
}

.assignment-overview-page .button-secondary {
  background: var(--panel-strong);
  border-color: var(--line);
  color: var(--text-strong);
  box-shadow: none;
}

.assignment-overview-page .button-primary:hover,
.assignment-overview-page .button-primary:focus-visible {
  background: linear-gradient(135deg, #7d8960, #56613e);
  border-color: transparent;
}

.assignment-overview-page .button-secondary:hover,
.assignment-overview-page .button-secondary:focus-visible {
  background: var(--surface-hover);
  border-color: var(--line-strong);
}

.assignment-overview-page .meta-item {
  background: linear-gradient(135deg, rgba(108, 119, 80, 0.12), rgba(255, 255, 255, 0.58));
  border-color: rgba(108, 119, 80, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.assignment-overview-page .status-pill {
  border-color: rgba(108, 119, 80, 0.2);
  background: rgba(108, 119, 80, 0.1);
  color: var(--success);
}

.assignment-overview-page .status-pill.planned {
  border-color: var(--line);
  background: rgba(20, 17, 15, 0.05);
  color: var(--text);
}

.assignment-overview-page .chip {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
}

.assignment-overview-page .mini-list li,
.assignment-overview-page .repo-list li,
.assignment-overview-page .placeholder-list li {
  color: var(--text);
}

html[data-assignment-theme="dark"] .assignment-overview-page .chip {
  background: rgba(255, 255, 255, 0.04);
}

.assignment-overview-page .assignment-card.active,
.assignment-overview-page .assignment-card.planned,
.assignment-overview-page .footer-card {
  background: var(--panel-strong);
}

.assignment-overview-page .footer-card {
  color: var(--text);
}

.assignment-overview-page .footer-links a {
  color: var(--text-strong);
}

@media (max-width: 980px) {
  .assignment-overview-page .topbar-inner {
    gap: 0.9rem;
  }

  .assignment-overview-page .assignment-theme-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .assignment-overview-page .assignment-theme-toggle {
    width: 100%;
    justify-content: center;
  }
}

/* --- IMAGE REPORT THEME OVERRIDES --- */
.image-report-page {
  transition: background-color 220ms ease, color 220ms ease;
}

html[data-image-theme="light"] .image-report-page {
  --bg: #faf5ef;
  --bg-strong: #fffaf6;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --text: #352821;
  --text-strong: #19120f;
  --muted: rgba(45, 33, 27, 0.8);
  --body-copy: #241915;
  --line: rgba(25, 18, 15, 0.1);
  --line-strong: rgba(25, 18, 15, 0.16);
  --primary: #c15f3c;
  --primary-deep: #9f492a;
  --accent: #c15f3c;
  --accent-soft: rgba(193, 95, 60, 0.1);
  --success: #1d5c46;
  --topbar-surface: rgba(250, 244, 237, 0.88);
  --surface-hover: rgba(255, 255, 255, 0.72);
  --surface-hover-strong: rgba(193, 95, 60, 0.12);
  --panel-shadow: 0 22px 54px rgba(57, 33, 20, 0.12);
  --panel-shadow-hover: 0 28px 66px rgba(57, 33, 20, 0.16);
  --panel-shadow-strip: rgba(25, 18, 15, 0.08);
}

html[data-image-theme="dark"] .image-report-page {
  --bg: #0d0d0e;
  --bg-strong: #141415;
  --panel: rgba(15, 15, 16, 0.9);
  --panel-strong: rgba(12, 12, 13, 0.95);
  --text: #faf6f1;
  --text-strong: #ffffff;
  --muted: rgba(255, 249, 243, 0.82);
  --body-copy: rgba(255, 255, 255, 0.9);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --primary: #c15f3c;
  --primary-deep: #9f492a;
  --accent: #c15f3c;
  --accent-soft: rgba(193, 95, 60, 0.12);
  --success: #d6efe6;
  --topbar-surface: rgba(10, 10, 11, 0.84);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-hover-strong: rgba(193, 95, 60, 0.16);
  --panel-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  --panel-shadow-hover: 0 30px 68px rgba(0, 0, 0, 0.44);
  --panel-shadow-strip: rgba(0, 0, 0, 0.28);
}

html[data-image-theme="light"] body.image-report-page {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(193, 95, 60, 0.08), transparent 18%),
    linear-gradient(180deg, #fffaf6 0%, #f7efe7 48%, #f1e6dc 100%);
  color: var(--text);
}

html[data-image-theme="dark"] body.image-report-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.03), transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(193, 95, 60, 0.08), transparent 20%),
    linear-gradient(180deg, #101011 0%, #090909 52%, #060606 100%);
  color: var(--text);
}

html[data-image-theme="light"] body.image-report-page::before {
  background-image:
    linear-gradient(rgba(25, 18, 15, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 18, 15, 0.03) 1px, transparent 1px);
  opacity: 0.72;
}

html[data-image-theme="light"] body.image-report-page::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 34%, rgba(255, 255, 255, 0.08));
}

.image-report-page .topbar-inner {
  background: var(--topbar-surface);
  border-color: var(--line);
  box-shadow: var(--panel-shadow);
}

.image-report-page .topbar {
  transition: opacity 0.36s ease, transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

.image-report-page.nav-docked .topbar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1.4rem);
}

.image-report-page .image-theme-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.image-report-page .image-theme-toggle {
  min-height: 2.9rem;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.image-report-page .image-theme-toggle:hover,
.image-report-page .image-theme-toggle:focus-visible {
  background: var(--surface-hover);
  border-color: var(--line-strong);
  outline: none;
  transform: translateY(-1px);
}

.image-report-page .theme-toggle-indicator {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

html[data-image-theme="dark"] .image-report-page .theme-toggle-indicator {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.image-report-page .panel {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--panel-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
}

.image-report-page.nav-docked .side-rail-nav {
  opacity: 1;
  transform: translate(0, -50%);
  pointer-events: auto;
}

.image-report-page .side-rail-nav {
  background: var(--panel-strong);
  border-color: var(--line);
  box-shadow: var(--panel-shadow);
}

.image-report-page .side-rail-nav:hover,
.image-report-page .side-rail-nav:focus-within {
  border-color: var(--line-strong);
  box-shadow: var(--panel-shadow-hover);
}

.image-report-page .side-rail-link {
  color: var(--text);
}

.image-report-page .side-rail-label {
  color: var(--text);
}

.image-report-page .side-rail-link:hover,
.image-report-page .side-rail-link:focus-visible,
.image-report-page .side-rail-link.is-active {
  background: var(--surface-hover);
  border-color: var(--line);
  color: var(--text-strong);
}

.image-report-page .side-rail-link.is-active {
  background: linear-gradient(135deg, var(--surface-hover), var(--surface-hover-strong));
}

.image-report-page .side-rail-link:hover .side-rail-label,
.image-report-page .side-rail-link:focus-visible .side-rail-label,
.image-report-page .side-rail-link.is-active .side-rail-label {
  color: var(--text-strong);
}

.image-report-page .side-rail-icon {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.38);
  color: var(--text-strong);
  box-shadow: none;
}

html[data-image-theme="dark"] .image-report-page .side-rail-icon {
  background: rgba(255, 255, 255, 0.05);
}

.image-report-page .side-rail-link:hover .side-rail-icon,
.image-report-page .side-rail-link:focus-visible .side-rail-icon,
.image-report-page .side-rail-link.is-active .side-rail-icon {
  color: var(--text-strong);
  border-color: rgba(193, 95, 60, 0.22);
  background: rgba(193, 95, 60, 0.12);
  box-shadow: 0 0 0 0.22rem rgba(193, 95, 60, 0.08);
}

.image-report-page .side-rail-link-home,
.image-report-page .side-rail-link-track {
  color: var(--text);
}

.image-report-page .panel::after {
  background: var(--panel-shadow-strip);
  opacity: 0.5;
}

.image-report-page .panel:hover {
  transform: none;
  box-shadow: var(--panel-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  border-color: var(--line-strong);
}

.image-report-page .hero-card::before,
.image-report-page .page-callout::before,
.image-report-page .content-card::before,
.image-report-page .kpi-card::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 22%),
    linear-gradient(315deg, rgba(193, 95, 60, 0.08), transparent 34%);
}

.image-report-page .eyebrow {
  border-color: rgba(193, 95, 60, 0.24);
  background: rgba(193, 95, 60, 0.1);
  color: var(--primary-deep);
}

html[data-image-theme="dark"] .image-report-page .eyebrow {
  border-color: rgba(193, 95, 60, 0.28);
  background: rgba(193, 95, 60, 0.14);
  color: #ffd7c9;
}

.image-report-page .page-hero h1 span,
.image-report-page .card-kicker,
.image-report-page .footer-links a:hover,
.image-report-page .footer-links a:focus-visible {
  color: var(--primary-deep);
}

.image-report-page .page-subtitle,
.image-report-page .section-copy,
.image-report-page .deliverable-note,
.image-report-page .track-copy,
.image-report-page .mini-list li,
.image-report-page .repo-list li,
.image-report-page .placeholder-list li,
.image-report-page .compare-table td {
  color: var(--body-copy, var(--muted));
}

.image-report-page .figure-caption,
.image-report-page .footer-card p {
  color: var(--muted);
}

.image-report-page .button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  border-color: rgba(255, 255, 255, 0.16);
  color: #fffaf7;
  box-shadow: 0 16px 34px rgba(193, 95, 60, 0.2);
}

.image-report-page .button-primary:hover,
.image-report-page .button-primary:focus-visible {
  background: linear-gradient(135deg, #d06c46, #b65534);
  border-color: transparent;
}

.image-report-page .button-secondary {
  background: var(--panel-strong);
  border-color: var(--line);
  color: var(--text-strong);
  box-shadow: none;
}

.image-report-page .button-secondary:hover,
.image-report-page .button-secondary:focus-visible {
  background: var(--surface-hover);
  border-color: var(--line-strong);
}

.image-report-page .meta-item {
  background: linear-gradient(135deg, rgba(193, 95, 60, 0.12), rgba(255, 255, 255, 0.56));
  border-color: rgba(193, 95, 60, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

html[data-image-theme="dark"] .image-report-page .meta-item {
  background: linear-gradient(135deg, rgba(193, 95, 60, 0.18), rgba(193, 95, 60, 0.08));
}

.image-report-page .status-pill {
  border-color: rgba(193, 95, 60, 0.2);
  background: rgba(193, 95, 60, 0.1);
  color: var(--success);
}

.image-report-page .chip {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.46);
  color: var(--text);
}

html[data-image-theme="dark"] .image-report-page .chip {
  background: rgba(255, 255, 255, 0.04);
}

.image-report-page .report-nav a {
  border-color: rgba(193, 95, 60, 0.2);
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff9f5;
}

.image-report-page .report-nav a:hover,
.image-report-page .report-nav a:focus-visible {
  background: linear-gradient(135deg, #d06c46, #b65534);
  border-color: transparent;
}

.image-report-page .mono-list li {
  background: linear-gradient(135deg, rgba(193, 95, 60, 0.12), rgba(193, 95, 60, 0.05));
  border-color: rgba(193, 95, 60, 0.18);
  color: var(--text);
}

.image-report-page .mono-list-disclosure {
  margin-top: 0.7rem;
}

.image-report-page .mono-list-disclosure .mono-disclosure {
  margin-top: 0.7rem;
}

.image-report-page .mono-list-disclosure .mono-disclosure:first-child {
  margin-top: 0;
}

.image-report-page .mono-list-disclosure summary {
  position: relative;
  margin: 0;
  padding: 0.95rem 3.1rem 0.95rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(193, 95, 60, 0.12), rgba(193, 95, 60, 0.05));
  border: 1px solid rgba(193, 95, 60, 0.18);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.image-report-page .mono-list-disclosure summary::-webkit-details-marker {
  display: none;
}

.image-report-page .mono-list-disclosure summary::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 1rem;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--primary-deep);
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  transition: transform 180ms ease;
}

.image-report-page .mono-list-disclosure .mono-disclosure[open] summary::after {
  transform: translateY(-50%) rotate(270deg);
}

.image-report-page .mono-list-disclosure summary:hover,
.image-report-page .mono-list-disclosure summary:focus-visible {
  outline: none;
  border-color: rgba(193, 95, 60, 0.24);
  background: linear-gradient(135deg, rgba(193, 95, 60, 0.16), rgba(193, 95, 60, 0.07));
}

.image-report-page .mono-disclosure-body {
  padding: 0.8rem 1rem 0.1rem;
  display: grid;
  gap: 0.7rem;
}

.image-report-page .mono-disclosure-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--body-copy, var(--muted));
}

.image-report-page .mini-list-disclosure {
  margin-top: 0.2rem;
}

.image-report-page .mini-list-disclosure .mini-disclosure {
  margin-top: 0.7rem;
}

.image-report-page .mini-list-disclosure .mini-disclosure:first-child {
  margin-top: 0;
}

.image-report-page .mini-list-disclosure summary {
  position: relative;
  margin: 0;
  padding: 0.95rem 3rem 0.95rem 1rem;
  cursor: pointer;
  list-style: none;
}

.image-report-page .mini-list-disclosure summary::-webkit-details-marker {
  display: none;
}

.image-report-page .mini-list-disclosure summary::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 0.3rem;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--primary-deep);
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  transition: transform 180ms ease;
}

.image-report-page .mini-list-disclosure .mini-disclosure[open] summary::after {
  transform: translateY(-50%) rotate(270deg);
}

.image-report-page .mini-disclosure-body {
  padding: 0.2rem 0 0.1rem 0;
  display: grid;
  gap: 0.7rem;
}

.image-report-page .mini-disclosure-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--body-copy, var(--muted));
}

.image-report-page code {
  font-family: "Space Grotesk", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
}

.image-report-page .mini-list code,
.image-report-page .track-copy code,
.image-report-page .deliverable-note code {
  display: inline-block;
  padding: 0.08rem 0.38rem;
  border: 1px solid rgba(193, 95, 60, 0.18);
  background: rgba(193, 95, 60, 0.08);
  color: var(--text-strong);
}

.image-report-page .code-sample {
  margin-top: 1rem;
  border: 1px solid var(--line);
  background: #111214;
  box-shadow: 0 18px 38px rgba(8, 10, 16, 0.18);
  overflow-x: auto;
}

.image-report-page .code-sample-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.82rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.image-report-page .code-sample-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.image-report-page .code-sample-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.image-report-page .code-sample-dot-red {
  background: #ff5f57;
}

.image-report-page .code-sample-dot-yellow {
  background: #febc2e;
}

.image-report-page .code-sample-dot-green {
  background: #28c840;
}

.image-report-page .code-sample-label {
  margin-right: auto;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.image-report-page .code-sample-copy {
  min-height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.image-report-page .code-sample-copy:hover,
.image-report-page .code-sample-copy:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  outline: none;
  transform: translateY(-1px);
}

.image-report-page .code-sample pre {
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  font-family: "Space Grotesk", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #f8fafc;
  white-space: pre;
  background: transparent !important;
  text-shadow: none !important;
}

.image-report-page .code-sample pre[class*="language-"],
.image-report-page .code-sample code[class*="language-"] {
  background: transparent !important;
  color: #f8fafc;
  text-shadow: none !important;
  font-family: "Space Grotesk", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.image-report-page .code-sample :not(pre) > code[class*="language-"],
.image-report-page .code-sample pre[class*="language-"] {
  background: transparent !important;
}

.image-report-page .code-sample .token.comment,
.image-report-page .code-sample .token.prolog,
.image-report-page .code-sample .token.doctype,
.image-report-page .code-sample .token.cdata {
  color: #6b7280;
}

.image-report-page .code-sample .token.keyword,
.image-report-page .code-sample .token.selector,
.image-report-page .code-sample .token.important,
.image-report-page .code-sample .token.atrule {
  color: #ff7ab2;
}

.image-report-page .code-sample .token.function,
.image-report-page .code-sample .token.class-name {
  color: #82aaff;
}

.image-report-page .code-sample .token.string,
.image-report-page .code-sample .token.attr-value {
  color: #c3e88d;
}

.image-report-page .code-sample .token.number,
.image-report-page .code-sample .token.boolean,
.image-report-page .code-sample .token.constant {
  color: #f78c6c;
}

.image-report-page .code-sample .token.operator,
.image-report-page .code-sample .token.punctuation {
  color: #89ddff;
}

.image-report-page .code-sample .token.parameter,
.image-report-page .code-sample .token.variable {
  color: #f8fafc;
}

.image-report-page .code-sample code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

.image-report-page .transfer-map-card {
  overflow: visible;
}

.image-report-page .transfer-formula {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.2rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(193, 95, 60, 0.12);
  background: linear-gradient(135deg, rgba(193, 95, 60, 0.08), rgba(193, 95, 60, 0.03));
  font-family: "Space Grotesk", "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 0.96rem;
  color: var(--text-strong);
}

.image-report-page .transfer-formula span[aria-hidden="true"] {
  color: var(--primary-deep);
}

.image-report-page .transfer-explorer {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.35rem;
}

.image-report-page .report-pipeline-shell {
  display: grid;
  gap: 1.2rem;
}

.image-report-page .report-pipeline-rail {
  margin-top: 0.2rem;
}

.image-report-page .pipeline-stage-summary {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid rgba(193, 95, 60, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(193, 95, 60, 0.11), rgba(193, 95, 60, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.image-report-page .pipeline-stage-kicker {
  margin: 0;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.image-report-page .pipeline-stage-title {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.28;
  color: var(--text-strong);
}

.image-report-page .pipeline-stage-copy {
  margin: 0;
  max-width: 72rem;
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--body-copy, var(--muted));
}

.image-report-page .pipeline-kpi-grid {
  margin-top: 0.1rem;
}

.image-report-page .pipeline-content-panel {
  animation: imagePipelineReveal 220ms ease;
}

.image-report-page .pipeline-content-panel[hidden] {
  display: none !important;
}

.image-report-page .transfer-step-rail {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  overflow-x: visible;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}

.image-report-page .transfer-step-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 0;
  min-width: 0;
}

.image-report-page .transfer-step {
  position: relative;
  display: grid;
  gap: 0.42rem;
  width: 100%;
  min-width: 0;
  min-height: 9.2rem;
  padding: 0.82rem 0.82rem 0.88rem;
  border: 1px solid rgba(193, 95, 60, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(193, 95, 60, 0.12), rgba(193, 95, 60, 0.04));
  text-align: left;
  color: var(--text-strong);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.image-report-page .transfer-step:hover,
.image-report-page .transfer-step:focus-visible {
  outline: none;
  border-color: rgba(193, 95, 60, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 16px 30px rgba(18, 14, 12, 0.08);
}

.image-report-page .transfer-step.is-active {
  border-color: rgba(193, 95, 60, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(193, 95, 60, 0.18), rgba(193, 95, 60, 0.07));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 18px 34px rgba(18, 14, 12, 0.1);
}

.image-report-page .transfer-step-index {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.image-report-page .transfer-step-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(193, 95, 60, 0.24);
  background: rgba(193, 95, 60, 0.12);
  color: var(--primary-deep);
  font-family: "Space Grotesk", "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.image-report-page .transfer-step-title {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-strong);
}

.image-report-page .transfer-step-meta {
  margin-top: auto;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.image-report-page .transfer-step-connector {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  flex: 0 0 1rem;
}

.image-report-page .transfer-step-arrow {
  color: var(--primary-deep);
  font-size: 1.1rem;
  line-height: 1;
}

@keyframes imagePipelineReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.image-report-page .transfer-detail-shell {
  position: relative;
  border: 1px solid rgba(193, 95, 60, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(193, 95, 60, 0.08), rgba(193, 95, 60, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.image-report-page .transfer-detail-panel {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.05rem 1.1rem;
}

.image-report-page .transfer-detail-panel[hidden] {
  display: none;
}

.image-report-page .transfer-detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.image-report-page .transfer-detail-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 2rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(193, 95, 60, 0.24);
  background: rgba(193, 95, 60, 0.12);
  color: var(--primary-deep);
  font-family: "Space Grotesk", "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.image-report-page .transfer-detail-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.28;
  color: var(--text-strong);
}

.image-report-page .transfer-detail-panel p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.74;
  color: var(--body-copy, var(--muted));
}

.image-report-page .transfer-detail-panel code {
  display: inline-block;
  padding: 0.08rem 0.38rem;
  border: 1px solid rgba(193, 95, 60, 0.18);
  background: rgba(193, 95, 60, 0.08);
  color: var(--text-strong);
}

.image-report-page .footer-card {
  background: var(--panel-strong);
  color: var(--text);
}

.image-report-page .footer-links a {
  color: var(--text-strong);
}

.image-report-page .figure-frame {
  position: relative;
}

.image-report-page .figure-frame img {
  display: block;
  cursor: zoom-in;
  transition: transform 260ms ease, filter 260ms ease;
  transform-origin: center center;
}

.image-report-page .figure-frame:hover img,
.image-report-page .figure-frame:focus-within img {
  transform: scale(1.035);
  filter: saturate(1.02) contrast(1.01);
}

.image-report-page.lightbox-open {
  overflow: hidden;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 10, 12, 0.82);
  backdrop-filter: blur(10px);
}

.image-lightbox-shell {
  position: relative;
  z-index: 1;
  width: min(92vw, 1480px);
  height: min(90vh, 960px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(17, 17, 18, 0.88);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.image-lightbox-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
}

.image-lightbox-button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f7f4ef;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  min-width: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.image-lightbox-button:hover,
.image-lightbox-button:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.image-lightbox-stage {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 48%),
    rgba(11, 11, 12, 0.96);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.image-lightbox-stage.is-dragging {
  cursor: grabbing;
}

.image-lightbox-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  image-rendering: auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.image-lightbox-caption {
  margin: 0;
  color: rgba(247, 244, 239, 0.88);
  font-size: 0.96rem;
  line-height: 1.6;
  text-align: center;
}

html[data-image-theme="light"] .image-lightbox-shell {
  border-color: rgba(38, 24, 16, 0.14);
  background: rgba(255, 252, 247, 0.9);
}

html[data-image-theme="light"] .image-lightbox-backdrop {
  background: rgba(14, 12, 10, 0.54);
}

html[data-image-theme="light"] .image-lightbox-button {
  border-color: rgba(30, 22, 16, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: #261c14;
}

html[data-image-theme="light"] .image-lightbox-button:hover,
html[data-image-theme="light"] .image-lightbox-button:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(30, 22, 16, 0.24);
}

html[data-image-theme="light"] .image-lightbox-stage {
  border-color: rgba(30, 22, 16, 0.08);
  background:
    radial-gradient(circle at center, rgba(30, 22, 16, 0.03), transparent 48%),
    rgba(244, 239, 233, 0.96);
}

html[data-image-theme="light"] .image-lightbox-caption {
  color: rgba(38, 28, 20, 0.9);
}

@media (max-width: 980px) {
  .image-report-page .topbar-inner {
    gap: 0.9rem;
  }

  .image-report-page .image-theme-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .image-report-page .topbar,
  .image-report-page.nav-docked .topbar {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 620px) {
  .image-report-page .image-theme-toggle {
    width: 100%;
    justify-content: center;
  }

  .image-report-page .transfer-step {
    width: min(15rem, 74vw);
    min-height: 9.8rem;
  }

  .image-report-page .transfer-step-rail {
    gap: 0.75rem;
    overflow-x: auto;
  }

  .image-report-page .transfer-step-wrap {
    gap: 0.75rem;
    flex: 0 0 auto;
  }

  .image-report-page .code-sample-bar {
    flex-wrap: wrap;
  }

  .image-report-page .code-sample-label {
    order: 3;
    width: 100%;
  }

  .image-report-page .side-rail-nav {
    display: none;
  }

  .image-lightbox {
    padding: 0.8rem;
  }

  .image-lightbox-shell {
    width: min(96vw, 1480px);
    height: min(92vh, 960px);
    padding: 0.75rem;
  }

  .image-lightbox-toolbar {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --- TEXT REPORT THEME OVERRIDES --- */
.text-report-page {
  transition: background-color 220ms ease, color 220ms ease;
}

html[data-text-theme="light"] .text-report-page {
  --bg: #f4f7fc;
  --bg-strong: #fbfcff;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --text: #1f2c3d;
  --text-strong: #111827;
  --muted: rgba(31, 44, 61, 0.8);
  --body-copy: #172230;
  --line: rgba(17, 24, 39, 0.1);
  --line-strong: rgba(17, 24, 39, 0.18);
  --primary: #4182eb;
  --primary-deep: #2a61ba;
  --accent: #4182eb;
  --accent-soft: rgba(65, 130, 235, 0.1);
  --success: #21654f;
  --formula-border: rgba(17, 24, 39, 0.14);
  --topbar-surface: rgba(247, 249, 254, 0.88);
  --surface-hover: rgba(255, 255, 255, 0.78);
  --surface-hover-strong: rgba(65, 130, 235, 0.12);
  --panel-shadow: 0 22px 54px rgba(36, 55, 86, 0.11);
  --panel-shadow-hover: 0 28px 66px rgba(36, 55, 86, 0.16);
  --panel-shadow-strip: rgba(17, 24, 39, 0.08);
}

html[data-text-theme="dark"] .text-report-page {
  --bg: #0d1117;
  --bg-strong: #141b24;
  --panel: rgba(15, 20, 29, 0.9);
  --panel-strong: rgba(12, 16, 24, 0.95);
  --text: #f5f9ff;
  --text-strong: #ffffff;
  --muted: rgba(245, 249, 255, 0.84);
  --body-copy: rgba(255, 255, 255, 0.9);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --primary: #4182eb;
  --primary-deep: #2a61ba;
  --accent: #6aa3ff;
  --accent-soft: rgba(65, 130, 235, 0.12);
  --success: #d4efe6;
  --formula-border: rgba(255, 255, 255, 0.16);
  --topbar-surface: rgba(11, 16, 24, 0.84);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-hover-strong: rgba(65, 130, 235, 0.16);
  --panel-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  --panel-shadow-hover: 0 30px 68px rgba(0, 0, 0, 0.44);
  --panel-shadow-strip: rgba(0, 0, 0, 0.28);
}

html[data-text-theme="light"] body.text-report-page {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(65, 130, 235, 0.08), transparent 18%),
    linear-gradient(180deg, #fbfcff 0%, #f4f7fc 48%, #edf2fa 100%);
  color: var(--text);
}

html[data-text-theme="dark"] body.text-report-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.03), transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(65, 130, 235, 0.08), transparent 20%),
    linear-gradient(180deg, #111827 0%, #0b1118 52%, #070b11 100%);
  color: var(--text);
}

html[data-text-theme="light"] body.text-report-page::before {
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.03) 1px, transparent 1px);
  opacity: 0.72;
}

html[data-text-theme="light"] body.text-report-page::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 34%, rgba(255, 255, 255, 0.08));
}

.text-report-page .topbar-inner {
  background: var(--topbar-surface);
  border-color: var(--line);
  box-shadow: var(--panel-shadow);
}

.text-report-page .topbar {
  transition: opacity 0.36s ease, transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

.text-report-page.nav-docked .topbar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1.4rem);
}

.text-report-page .text-theme-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.text-report-page .text-theme-toggle {
  min-height: 2.9rem;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.text-report-page .text-theme-toggle:hover,
.text-report-page .text-theme-toggle:focus-visible {
  background: var(--surface-hover);
  border-color: var(--line-strong);
  outline: none;
  transform: translateY(-1px);
}

.text-report-page .theme-toggle-indicator {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

html[data-text-theme="dark"] .text-report-page .theme-toggle-indicator {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.text-report-page main > section:first-of-type {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  box-shadow: var(--panel-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  padding: 1.5rem;
  overflow: hidden;
}

.text-report-page main > section:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent 22%),
    linear-gradient(315deg, rgba(65, 130, 235, 0.08), transparent 34%);
}

.text-report-page main > section:first-of-type > * {
  position: relative;
  z-index: 1;
}

.text-report-page .panel {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--panel-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.text-report-page.nav-docked .side-rail-nav {
  opacity: 1;
  transform: translate(0, -50%);
  pointer-events: auto;
}

.text-report-page .side-rail-nav {
  background: var(--panel-strong);
  border-color: var(--line);
  box-shadow: var(--panel-shadow);
}

.text-report-page .side-rail-nav:hover,
.text-report-page .side-rail-nav:focus-within {
  border-color: var(--line-strong);
  box-shadow: var(--panel-shadow-hover);
}

.text-report-page .side-rail-link {
  color: var(--text);
}

.text-report-page .side-rail-label {
  color: var(--text);
}

.text-report-page .side-rail-link:hover,
.text-report-page .side-rail-link:focus-visible,
.text-report-page .side-rail-link.is-active {
  background: var(--surface-hover);
  border-color: var(--line);
  color: var(--text-strong);
}

.text-report-page .side-rail-link.is-active {
  background: linear-gradient(135deg, var(--surface-hover), var(--surface-hover-strong));
}

.text-report-page .side-rail-link:hover .side-rail-label,
.text-report-page .side-rail-link:focus-visible .side-rail-label,
.text-report-page .side-rail-link.is-active .side-rail-label {
  color: var(--text-strong);
}

.text-report-page .side-rail-icon {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.38);
  color: var(--text-strong);
  box-shadow: none;
}

html[data-text-theme="dark"] .text-report-page .side-rail-icon {
  background: rgba(255, 255, 255, 0.05);
}

.text-report-page .side-rail-link:hover .side-rail-icon,
.text-report-page .side-rail-link:focus-visible .side-rail-icon,
.text-report-page .side-rail-link.is-active .side-rail-icon {
  color: var(--text-strong);
  border-color: rgba(65, 130, 235, 0.22);
  background: rgba(65, 130, 235, 0.12);
  box-shadow: 0 0 0 0.22rem rgba(65, 130, 235, 0.08);
}

.text-report-page .side-rail-link-home,
.text-report-page .side-rail-link-track {
  color: var(--text);
}

.text-report-page .panel::after {
  background: var(--panel-shadow-strip);
  opacity: 0.5;
}

.text-report-page .panel:hover {
  box-shadow: var(--panel-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  border-color: var(--line-strong);
}

.text-report-page .report-card::before,
.text-report-page .kpi-card::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 22%),
    linear-gradient(315deg, rgba(65, 130, 235, 0.08), transparent 34%);
}

.text-report-page .eyebrow {
  border-color: rgba(65, 130, 235, 0.24);
  background: rgba(65, 130, 235, 0.1);
  color: var(--primary-deep);
}

html[data-text-theme="dark"] .text-report-page .eyebrow {
  border-color: rgba(65, 130, 235, 0.28);
  background: rgba(65, 130, 235, 0.14);
  color: #d7e7ff;
}

.text-report-page h1 span,
.text-report-page .card-kicker,
.text-report-page .footer-links a:hover,
.text-report-page .footer-links a:focus-visible,
.text-report-page .text-link:hover,
.text-report-page .text-link:focus-visible {
  color: var(--primary-deep);
}

.text-report-page .section-copy,
.text-report-page .track-copy,
.text-report-page .deliverable-note,
.text-report-page .mini-list li {
  color: var(--body-copy, var(--muted));
}

.text-report-page .figure-caption,
.text-report-page .kpi-note,
.text-report-page .footer-card p {
  color: var(--muted);
}

.text-report-page .button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  border-color: rgba(255, 255, 255, 0.16);
  color: #f7fbff;
  box-shadow: 0 16px 34px rgba(65, 130, 235, 0.2);
}

.text-report-page .button-primary:hover,
.text-report-page .button-primary:focus-visible {
  background: linear-gradient(135deg, #4f8ff7, #3b73d7);
  border-color: transparent;
}

.text-report-page .button-secondary {
  background: var(--panel-strong);
  border-color: var(--line);
  color: var(--text-strong);
  box-shadow: none;
}

.text-report-page .button-secondary:hover,
.text-report-page .button-secondary:focus-visible {
  background: var(--surface-hover);
  border-color: var(--line-strong);
}

.text-report-page .meta-item {
  background: linear-gradient(135deg, rgba(65, 130, 235, 0.12), rgba(255, 255, 255, 0.56));
  border-color: rgba(65, 130, 235, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

html[data-text-theme="dark"] .text-report-page .meta-item {
  background: linear-gradient(135deg, rgba(65, 130, 235, 0.18), rgba(65, 130, 235, 0.08));
}

.text-report-page .status-pill {
  border-color: rgba(65, 130, 235, 0.2);
  background: rgba(65, 130, 235, 0.1);
  color: var(--success);
}

.text-report-page .chip {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.46);
  color: var(--text);
}

html[data-text-theme="dark"] .text-report-page .chip {
  background: rgba(255, 255, 255, 0.04);
}

.text-report-page .report-nav a {
  border-color: rgba(65, 130, 235, 0.2);
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #f7fbff;
}

.text-report-page .report-nav a:hover,
.text-report-page .report-nav a:focus-visible {
  background: linear-gradient(135deg, #4f8ff7, #3b73d7);
  border-color: transparent;
}

.text-report-page .mono-list li {
  background: linear-gradient(135deg, rgba(65, 130, 235, 0.12), rgba(65, 130, 235, 0.05));
  border-color: rgba(65, 130, 235, 0.18);
  color: var(--text);
}

.text-report-page .text-repo-link {
  color: var(--primary-deep);
  background: transparent;
}

.text-report-page .text-repo-link:hover,
.text-report-page .text-repo-link:focus-visible {
  background: transparent;
  color: var(--primary);
}

.text-report-page .text-link {
  color: var(--primary);
}

.text-report-page .compare-table th,
.text-report-page .compare-table td,
.text-report-page .compare-table tbody tr td,
.text-report-page .compare-table tbody tr td * {
  color: inherit;
}

.text-report-page .compare-table th {
  color: var(--text-strong);
}

.text-report-page .compare-table td,
.text-report-page .compare-table td p,
.text-report-page .compare-table td span,
.text-report-page .compare-table td strong {
  color: var(--body-copy, var(--muted));
}

.text-report-page .figure-frame {
  position: relative;
  background: var(--panel-strong);
  border-color: var(--line);
  box-shadow: var(--panel-shadow);
}

.text-report-page .figure-frame img {
  display: block;
  cursor: zoom-in;
  transition: transform 260ms ease, filter 260ms ease;
  transform-origin: center center;
}

.text-report-page .figure-frame:hover img,
.text-report-page .figure-frame:focus-within img {
  transform: scale(1.035);
  filter: saturate(1.02) contrast(1.01);
}

.text-report-page.lightbox-open {
  overflow: hidden;
}

.text-report-page .footer-card {
  background: var(--panel-strong);
  color: var(--text);
}

.text-report-page .footer-links a {
  color: var(--text-strong);
}

.text-report-page .compare-table-wrap,
.text-report-page .formula-box,
.text-report-page .formula-inline {
  color: var(--text);
}

@media (max-width: 980px) {
  .text-report-page .topbar-inner {
    gap: 0.9rem;
  }

  .text-report-page .text-theme-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .text-report-page .topbar,
  .text-report-page.nav-docked .topbar {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 620px) {
  .text-report-page .text-theme-toggle {
    width: 100%;
    justify-content: center;
  }

  .text-report-page main > section:first-of-type {
    padding: 1.2rem;
  }

  .text-report-page .side-rail-nav {
    display: none;
  }
}

/* --- MULTIMODAL REPORT THEME OVERRIDES --- */
.multimodal-report-page {
  transition: background-color 220ms ease, color 220ms ease;
}

html[data-multimodal-theme="light"] .multimodal-report-page {
  --bg: #fcf5f5;
  --bg-strong: #fffafa;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --text: #342224;
  --text-strong: #181113;
  --muted: rgba(38, 24, 27, 0.82);
  --body-copy: #25181a;
  --line: rgba(24, 17, 19, 0.1);
  --line-strong: rgba(24, 17, 19, 0.18);
  --primary: #d64545;
  --primary-deep: #a92e2e;
  --accent: #d64545;
  --accent-soft: rgba(214, 69, 69, 0.1);
  --success: #21654f;
  --topbar-surface: rgba(252, 244, 244, 0.88);
  --surface-hover: rgba(255, 255, 255, 0.78);
  --surface-hover-strong: rgba(214, 69, 69, 0.12);
  --panel-shadow: 0 22px 54px rgba(82, 35, 42, 0.12);
  --panel-shadow-hover: 0 28px 66px rgba(82, 35, 42, 0.16);
  --panel-shadow-strip: rgba(24, 17, 19, 0.08);
}

html[data-multimodal-theme="dark"] .multimodal-report-page {
  --bg: #120c0d;
  --bg-strong: #1a1113;
  --panel: rgba(20, 13, 15, 0.9);
  --panel-strong: rgba(17, 11, 13, 0.95);
  --text: #faf5f5;
  --text-strong: #ffffff;
  --muted: rgba(255, 249, 249, 0.84);
  --body-copy: rgba(255, 255, 255, 0.9);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --primary: #d64545;
  --primary-deep: #a92e2e;
  --accent: #ff6b6b;
  --accent-soft: rgba(214, 69, 69, 0.12);
  --success: #d4efe6;
  --topbar-surface: rgba(16, 10, 12, 0.84);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-hover-strong: rgba(214, 69, 69, 0.16);
  --panel-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  --panel-shadow-hover: 0 30px 68px rgba(0, 0, 0, 0.44);
  --panel-shadow-strip: rgba(0, 0, 0, 0.28);
}

html[data-multimodal-theme="light"] body.multimodal-report-page {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(214, 69, 69, 0.08), transparent 18%),
    linear-gradient(180deg, #fffafa 0%, #fcf5f5 48%, #f5eaea 100%);
  color: var(--text);
}

html[data-multimodal-theme="dark"] body.multimodal-report-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.03), transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(214, 69, 69, 0.08), transparent 20%),
    linear-gradient(180deg, #130c0d 0%, #0d090a 52%, #080506 100%);
  color: var(--text);
}

html[data-multimodal-theme="light"] body.multimodal-report-page::before {
  background-image:
    linear-gradient(rgba(24, 17, 19, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 17, 19, 0.03) 1px, transparent 1px);
  opacity: 0.72;
}

html[data-multimodal-theme="light"] body.multimodal-report-page::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 34%, rgba(255, 255, 255, 0.08));
}

.multimodal-report-page .topbar-inner {
  background: var(--topbar-surface);
  border-color: var(--line);
  box-shadow: var(--panel-shadow);
}

.multimodal-report-page .topbar {
  transition: opacity 0.36s ease, transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

.multimodal-report-page.nav-docked .topbar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1.4rem);
}

.multimodal-report-page .multimodal-theme-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.multimodal-report-page .multimodal-theme-toggle {
  min-height: 2.9rem;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.multimodal-report-page .multimodal-theme-toggle:hover,
.multimodal-report-page .multimodal-theme-toggle:focus-visible {
  background: var(--surface-hover);
  border-color: var(--line-strong);
  outline: none;
  transform: translateY(-1px);
}

.multimodal-report-page .theme-toggle-indicator {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

html[data-multimodal-theme="dark"] .multimodal-report-page .theme-toggle-indicator {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.multimodal-report-page .panel {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--panel-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.multimodal-report-page.nav-docked .side-rail-nav {
  opacity: 1;
  transform: translate(0, -50%);
  pointer-events: auto;
}

.multimodal-report-page .side-rail-nav {
  background: var(--panel-strong);
  border-color: var(--line);
  box-shadow: var(--panel-shadow);
}

.multimodal-report-page .side-rail-nav:hover,
.multimodal-report-page .side-rail-nav:focus-within {
  border-color: var(--line-strong);
  box-shadow: var(--panel-shadow-hover);
}

.multimodal-report-page .side-rail-link {
  color: var(--text);
}

.multimodal-report-page .side-rail-label {
  color: var(--text);
}

.multimodal-report-page .side-rail-link:hover,
.multimodal-report-page .side-rail-link:focus-visible,
.multimodal-report-page .side-rail-link.is-active {
  background: var(--surface-hover);
  border-color: var(--line);
  color: var(--text-strong);
}

.multimodal-report-page .side-rail-link.is-active {
  background: linear-gradient(135deg, var(--surface-hover), var(--surface-hover-strong));
}

.multimodal-report-page .side-rail-link:hover .side-rail-label,
.multimodal-report-page .side-rail-link:focus-visible .side-rail-label,
.multimodal-report-page .side-rail-link.is-active .side-rail-label {
  color: var(--text-strong);
}

.multimodal-report-page .side-rail-icon {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.38);
  color: var(--text-strong);
  box-shadow: none;
}

html[data-multimodal-theme="dark"] .multimodal-report-page .side-rail-icon {
  background: rgba(255, 255, 255, 0.05);
}

.multimodal-report-page .side-rail-link:hover .side-rail-icon,
.multimodal-report-page .side-rail-link:focus-visible .side-rail-icon,
.multimodal-report-page .side-rail-link.is-active .side-rail-icon {
  color: var(--text-strong);
  border-color: rgba(214, 69, 69, 0.22);
  background: rgba(214, 69, 69, 0.12);
  box-shadow: 0 0 0 0.22rem rgba(214, 69, 69, 0.08);
}

.multimodal-report-page .side-rail-link-home,
.multimodal-report-page .side-rail-link-track {
  color: var(--text);
}

.multimodal-report-page .panel::after {
  background: var(--panel-shadow-strip);
  opacity: 0.5;
}

.multimodal-report-page .panel:hover {
  box-shadow: var(--panel-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  border-color: var(--line-strong);
}

.multimodal-report-page .hero-card::before,
.multimodal-report-page .page-callout::before,
.multimodal-report-page .content-card::before,
.multimodal-report-page .kpi-card::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 22%),
    linear-gradient(315deg, rgba(214, 69, 69, 0.08), transparent 34%);
}

.multimodal-report-page .eyebrow {
  border-color: rgba(214, 69, 69, 0.24);
  background: rgba(214, 69, 69, 0.1);
  color: var(--primary-deep);
}

html[data-multimodal-theme="dark"] .multimodal-report-page .eyebrow {
  border-color: rgba(214, 69, 69, 0.28);
  background: rgba(214, 69, 69, 0.14);
  color: #ffd8d8;
}

.multimodal-report-page .page-hero h1 span,
.multimodal-report-page .card-kicker,
.multimodal-report-page .footer-links a:hover,
.multimodal-report-page .footer-links a:focus-visible {
  color: var(--primary-deep);
}

.multimodal-report-page .page-subtitle,
.multimodal-report-page .section-copy,
.multimodal-report-page .deliverable-note,
.multimodal-report-page .track-copy,
.multimodal-report-page .figure-caption,
.multimodal-report-page .footer-card p,
.multimodal-report-page .mini-list li,
.multimodal-report-page .repo-list li,
.multimodal-report-page .placeholder-list li,
.multimodal-report-page .compare-table td {
  color: var(--body-copy, var(--muted));
}

.multimodal-report-page .compare-table th {
  color: var(--text-strong);
  background: rgba(214, 69, 69, 0.12);
}

.multimodal-report-page .button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff8f8;
  box-shadow: 0 16px 34px rgba(214, 69, 69, 0.2);
}

.multimodal-report-page .button-primary:hover,
.multimodal-report-page .button-primary:focus-visible {
  background: linear-gradient(135deg, #e05555, #bf3a3a);
  border-color: transparent;
}

.multimodal-report-page .button-secondary {
  background: var(--panel-strong);
  border-color: var(--line);
  color: var(--text-strong);
  box-shadow: none;
}

.multimodal-report-page .button-secondary:hover,
.multimodal-report-page .button-secondary:focus-visible {
  background: var(--surface-hover);
  border-color: var(--line-strong);
}

.multimodal-report-page .meta-item {
  background: linear-gradient(135deg, rgba(214, 69, 69, 0.12), rgba(255, 255, 255, 0.56));
  border-color: rgba(214, 69, 69, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

html[data-multimodal-theme="dark"] .multimodal-report-page .meta-item {
  background: linear-gradient(135deg, rgba(214, 69, 69, 0.18), rgba(214, 69, 69, 0.08));
}

.multimodal-report-page .status-pill {
  border-color: rgba(214, 69, 69, 0.2);
  background: rgba(214, 69, 69, 0.1);
  color: var(--success);
}

.multimodal-report-page .chip {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.46);
  color: var(--text);
}

html[data-multimodal-theme="dark"] .multimodal-report-page .chip {
  background: rgba(255, 255, 255, 0.04);
}

.multimodal-report-page .report-nav a {
  border-color: rgba(214, 69, 69, 0.2);
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff8f8;
}

.multimodal-report-page .report-nav a:hover,
.multimodal-report-page .report-nav a:focus-visible {
  background: linear-gradient(135deg, #e05555, #bf3a3a);
  border-color: transparent;
}

.multimodal-report-page .mono-list li {
  background: linear-gradient(135deg, rgba(214, 69, 69, 0.12), rgba(214, 69, 69, 0.05));
  border-color: rgba(214, 69, 69, 0.18);
  color: var(--text);
}

.multimodal-report-page .figure-frame {
  background: var(--panel-strong);
  border-color: var(--line);
  box-shadow: var(--panel-shadow);
}

.multimodal-report-page .footer-card {
  background: var(--panel-strong);
  color: var(--text);
}

.multimodal-report-page .footer-links a {
  color: var(--text-strong);
}

@media (max-width: 980px) {
  .multimodal-report-page .topbar-inner {
    gap: 0.9rem;
  }

  .multimodal-report-page .multimodal-theme-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .multimodal-report-page .topbar,
  .multimodal-report-page.nav-docked .topbar {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 620px) {
  .multimodal-report-page .multimodal-theme-toggle {
    width: 100%;
    justify-content: center;
  }

  .multimodal-report-page .side-rail-nav {
    display: none;
  }
}
