:root {
  --bg: #09111d;
  --bg-soft: #10192a;
  --panel: rgba(10, 18, 31, 0.8);
  --panel-strong: rgba(9, 16, 27, 0.94);
  --panel-soft: rgba(245, 237, 224, 0.05);
  --line: rgba(226, 205, 176, 0.12);
  --line-strong: rgba(226, 205, 176, 0.22);
  --text: #f6edde;
  --muted: #a8afbe;
  --gold: #d8a96d;
  --gold-strong: #f0c186;
  --teal: #79c6b5;
  --green: #7fd6aa;
  --amber: #efc06f;
  --red: #ef8b7d;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  --display-font: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --body-font: "Manrope", "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
}

body[data-theme="day"] {
  --bg: #f6efe3;
  --bg-soft: #fcf6ed;
  --panel: rgba(255, 251, 245, 0.82);
  --panel-strong: rgba(252, 246, 237, 0.96);
  --panel-soft: rgba(109, 74, 38, 0.05);
  --line: rgba(123, 92, 56, 0.12);
  --line-strong: rgba(168, 122, 67, 0.2);
  --text: #22170e;
  --muted: #7b7065;
  --gold: #b98344;
  --gold-strong: #d79e5e;
  --teal: #3a8d7b;
  --green: #2f8b67;
  --amber: #b98228;
  --red: #b4554f;
  --shadow: 0 22px 50px rgba(104, 79, 44, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at top left, rgba(216, 169, 109, 0.18), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(121, 198, 181, 0.14), transparent 20%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 52%, var(--bg) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(20px);
  pointer-events: none;
  opacity: 0.9;
}

body::before {
  top: 3rem;
  left: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(216, 169, 109, 0.12);
}

body::after {
  right: -4rem;
  bottom: 6rem;
  width: 16rem;
  height: 16rem;
  background: rgba(121, 198, 181, 0.12);
}

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

button,
label,
input {
  font: inherit;
}

#report-upload {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.app-shell {
  width: min(1480px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 0.8rem 0 2.8rem;
}

.topbar,
.hero-copy,
.brief-panel,
.sidebar-panel,
.sidebar-link,
.section-shell,
.spotlight-card,
.metric-card,
.status-card,
.surface-card,
.project-card,
.material-card,
.timeline-card,
.action-card,
.app-footer,
.workspace-pill,
.theme-toggle {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topbar,
.hero-copy,
.brief-panel,
.sidebar-panel,
.sidebar-link,
.section-shell,
.spotlight-card,
.metric-card,
.status-card,
.surface-card,
.project-card,
.material-card,
.timeline-card,
.action-card,
.app-footer,
.workspace-pill,
.theme-toggle {
  background: var(--panel);
  backdrop-filter: blur(20px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0.8rem;
  z-index: 20;
  width: min(1180px, calc(100% - 1rem));
  margin: 0 auto;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 88%, transparent);
  backdrop-filter: blur(26px);
  transition:
    padding 180ms ease,
    width 180ms ease,
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.topbar-left,
.topbar-right,
.brand-lockup,
.topnav,
.workspace-meta,
.workspace-actions,
.workspace-pill,
.hero-badges,
.hero-trends,
.metric-topline,
.project-top,
.project-footer,
.surface-header,
.status-row,
.timeline-row,
.material-header,
.material-tags,
.sidebar-stat,
.footer-grid,
.milestone-item,
.pipeline-meta {
  display: flex;
}

.topbar-left {
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.topbar-right {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
}

.brand-lockup {
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f6dcb9 0%, var(--gold) 62%, #9b6630 100%);
  color: #21160e;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: width 180ms ease, height 180ms ease, border-radius 180ms ease, font-size 180ms ease;
}

.brand-name,
.brand-tag,
.workspace-label,
.workspace-pill strong,
.eyebrow,
.lead,
.panel-label,
.panel-meta,
.section-kicker,
.section-heading,
.section-subtitle,
.section-title,
.metric-label,
.metric-delta,
.metric-footnote,
.project-kicker,
.project-label,
.project-name,
.project-value,
.tag,
.status-pill,
.timeline-time,
.timeline-copy,
.risk-title,
.vendor-name,
.vendor-meta,
.model-name,
.model-meta,
.action-priority,
.action-owner,
.action-impact,
.footer-kicker,
.footer-title,
.footer-label,
.sidebar-kicker,
.sidebar-title,
.sidebar-copy,
.sidebar-link-title,
.sidebar-link-copy,
.sidebar-stat-label,
.material-name,
.material-meta,
.material-reason,
.empty-copy,
.milestone-date,
.pipeline-title {
  margin: 0;
}

.brand-name,
.workspace-pill strong,
.section-heading,
.section-title,
.project-value,
.spotlight-title,
.footer-title,
.sidebar-title,
.brief-value {
  font-family: var(--display-font);
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
}

.brand-tag,
.workspace-label,
.panel-meta,
.lead,
.section-subtitle,
.metric-footnote,
.project-label,
.timeline-copy,
.vendor-meta,
.model-meta,
.action-owner,
.action-impact,
.sidebar-copy,
.sidebar-link-copy,
.sidebar-stat-label,
.material-meta,
.material-reason,
.empty-copy,
.footer-label,
.milestone-date {
  color: var(--muted);
}

.workspace-label,
.eyebrow,
.panel-label,
.section-kicker,
.metric-label,
.project-kicker,
.timeline-time,
.action-priority,
.sidebar-kicker,
.footer-kicker,
.footer-label {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.topnav {
  flex-wrap: nowrap;
  gap: 0.32rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.topnav::-webkit-scrollbar {
  display: none;
}

.topnav-link {
  flex: 0 0 auto;
  padding: 0.54rem 0.76rem;
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.topnav-link:hover,
.topnav-link.active {
  color: var(--text);
  background: var(--panel-soft);
  transform: translateY(-1px);
}

.workspace-meta {
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.workspace-actions {
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  transition: gap 180ms ease;
}

.workspace-pill {
  flex-direction: column;
  gap: 0.18rem;
  min-width: 8.5rem;
  padding: 0.58rem 0.78rem;
  border-radius: 999px;
  transition: padding 180ms ease, min-width 180ms ease, opacity 180ms ease;
}

.theme-toggle,
.ghost-button,
.accent-button {
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.theme-toggle,
.ghost-button {
  color: var(--text);
  background: var(--panel-soft);
}

.theme-toggle:hover,
.ghost-button:hover,
.accent-button:hover {
  transform: translateY(-1px);
}

.accent-button {
  color: #24170d;
  background: linear-gradient(135deg, #f6dab2 0%, var(--gold) 100%);
  border: 1px solid rgba(216, 169, 109, 0.28);
}

.avatar-chip {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6e1c2, var(--gold));
  color: #22150c;
  font-weight: 800;
  transition: width 180ms ease, height 180ms ease, font-size 180ms ease;
}

body.nav-compact .topbar {
  width: min(1020px, calc(100% - 4rem));
  padding: 0.5rem 0.72rem;
  transform: translateY(-0.1rem);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

body.nav-compact .topbar-left {
  gap: 0.72rem;
}

body.nav-compact .brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.72rem;
  font-size: 0.82rem;
}

body.nav-compact .brand-tag,
body.nav-compact .workspace-label {
  display: none;
}

body.nav-compact .brand-name {
  font-size: 0.92rem;
}

body.nav-compact .topnav {
  gap: 0.18rem;
}

body.nav-compact .topnav-link {
  padding: 0.38rem 0.58rem;
  font-size: 0.84rem;
}

body.nav-compact .workspace-actions {
  gap: 0.35rem;
}

body.nav-compact .workspace-meta {
  gap: 0.35rem;
}

body.nav-compact .workspace-pill {
  min-width: auto;
  padding: 0.38rem 0.6rem;
}

body.nav-compact .workspace-pill strong {
  font-size: 0.8rem;
}

body.nav-compact .theme-toggle,
body.nav-compact .ghost-button,
body.nav-compact .accent-button {
  padding: 0.48rem 0.72rem;
  font-size: 0.84rem;
}

body.nav-compact .avatar-chip {
  width: 2.05rem;
  height: 2.05rem;
  font-size: 0.75rem;
}

.workspace-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
  display: grid;
  gap: 0.95rem;
}

.sidebar-panel {
  padding: 1rem 1.05rem;
  border-radius: 1.5rem;
}

.sidebar-title {
  margin-top: 0.3rem;
  font-size: 1.4rem;
  line-height: 0.98;
}

.sidebar-nav {
  display: grid;
  gap: 0.72rem;
}

.sidebar-link {
  display: block;
  padding: 0.82rem 0.95rem;
  border-radius: 1.25rem;
  color: var(--muted);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--text);
  transform: translateX(2px);
  border-color: var(--line-strong);
}

.sidebar-stats {
  display: grid;
  gap: 0.7rem;
}

.sidebar-stat {
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.sidebar-stat:first-child {
  padding-top: 0;
  border-top: 0;
}

.sidebar-stat strong {
  font-size: 1.45rem;
  font-family: var(--display-font);
}

.content-column {
  display: grid;
  gap: 1rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.82fr);
  gap: 1rem;
}

.hero-copy,
.brief-panel,
.app-footer {
  padding: 1.25rem;
  border-radius: 1.8rem;
}

.hero-copy {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(216, 169, 109, 0.18), transparent 26%),
    linear-gradient(135deg, var(--panel-strong), var(--panel));
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 198, 181, 0.18), transparent 66%);
}

.hero h1 {
  margin: 0.55rem 0 0;
  max-width: 12ch;
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  line-height: 0.92;
  font-family: var(--display-font);
}

.hero-badges,
.hero-trends,
.material-tags {
  flex-wrap: wrap;
  gap: 0.68rem;
}

.hero-badges {
  margin-top: 1rem;
}

.hero-trends {
  margin-top: 0.85rem;
}

.tag,
.trend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 0.86rem;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.trend-chip strong {
  font-size: 0.95rem;
}

.brief-panel {
  background:
    radial-gradient(circle at top right, rgba(216, 169, 109, 0.18), transparent 28%),
    linear-gradient(180deg, var(--panel-strong), var(--panel));
}

.brief-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.brief-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.7rem;
}

.brief-item {
  padding: 0.95rem 1rem;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.brief-item p:first-child {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.brief-value {
  font-size: 1.45rem;
  line-height: 1.05;
}

.brief-callout,
.brief-callout:empty,
.sidebar-link-copy,
#footer-note {
  display: none;
}

.dashboard {
  display: grid;
  gap: 1.4rem;
}

.section-group {
  display: grid;
  gap: 0.85rem;
}

.section-shell {
  padding: 0.95rem 1.05rem;
  border-radius: 1.2rem;
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--panel-strong) 70%, transparent);
}

.section-header {
  display: block;
}

.section-heading {
  margin-top: 0.18rem;
  font-size: 1.65rem;
  line-height: 0.98;
}

.section-body,
.overview-stack,
.double-grid,
.triple-grid,
.project-strip,
.metrics-grid,
.materials-layout,
.actions-grid {
  display: grid;
  gap: 1rem;
}

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

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

.spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.88fr);
  gap: 1rem;
  padding: 1.15rem;
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at top right, rgba(216, 169, 109, 0.16), transparent 26%),
    linear-gradient(135deg, var(--panel-strong), var(--panel));
}

.spotlight-title {
  margin: 0.2rem 0 0.4rem;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 0.94;
}

.mini-chart {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.mini-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
}

.mini-row label {
  color: var(--muted);
  font-size: 0.88rem;
}

.mini-row strong {
  font-size: 0.92rem;
}

.mini-bar {
  height: 0.72rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--panel-soft);
}

.mini-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold) 0%, var(--teal) 100%);
}

.empty-inline {
  color: var(--muted);
  font-size: 0.9rem;
}

.spotlight-metrics {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.spotlight-ring {
  --ring-value: 0deg;
  display: grid;
  place-items: center;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--panel-strong) 0 58%, transparent 59%),
    conic-gradient(from -90deg, var(--gold) 0deg, var(--gold-strong) var(--ring-value), color-mix(in srgb, var(--text) 12%, transparent) var(--ring-value));
}

.spotlight-ring span {
  display: grid;
  place-items: center;
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  font-size: 1.35rem;
  font-weight: 800;
}

.spotlight-list {
  display: grid;
  gap: 0.8rem;
}

.spotlight-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.spotlight-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.spotlight-item span {
  color: var(--muted);
}

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

.metric-card,
.project-card,
.surface-card,
.timeline-card,
.action-card,
.material-card,
.status-card {
  padding: 1rem;
  border-radius: 1.2rem;
}

.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -1.4rem;
  bottom: -1.4rem;
  width: 6.75rem;
  height: 6.75rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 169, 109, 0.14), transparent 68%);
}

.metric-topline {
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.metric-delta {
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.metric-delta.up {
  color: var(--green);
}

.metric-delta.down {
  color: var(--amber);
}

.metric-value {
  margin-top: 0.65rem;
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
}

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

.project-card {
  background:
    linear-gradient(180deg, var(--panel-strong), var(--panel)),
    radial-gradient(circle at top right, rgba(216, 169, 109, 0.08), transparent 28%);
}

.project-top {
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.project-name {
  margin-top: 0.3rem;
  font-size: 1.08rem;
  font-weight: 700;
}

.project-status,
.risk-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-status.active,
.project-status.stable,
.project-status.on-track,
.project-status.synced,
.risk-pill.low,
.risk-pill.preferred,
.status-pill.available {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, transparent);
}

.project-status.watchlist,
.project-status.watch,
.project-status.processing,
.risk-pill.medium,
.risk-pill.conditional,
.status-pill.partial {
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 12%, transparent);
}

.project-status.attention,
.project-status.escalated,
.risk-pill.high,
.risk-pill.critical,
.risk-pill.blocked,
.status-pill.unavailable {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 12%, transparent);
}

.risk-pill.gold {
  color: var(--gold-strong);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}

.risk-pill.silver {
  color: var(--muted);
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.project-value {
  margin: 1rem 0 0.7rem;
  font-size: 2rem;
}

.progress-track,
.coverage-track {
  width: 100%;
  height: 0.72rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-soft);
}

.progress-fill,
.coverage-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold) 0%, var(--teal) 100%);
}

.project-footer,
.status-row,
.pipeline-meta,
.milestone-item {
  justify-content: space-between;
  gap: 0.9rem;
}

.project-footer,
.pipeline-meta {
  margin-top: 0.95rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.surface-header {
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title {
  margin-top: 0.18rem;
  font-size: 1.4rem;
  line-height: 0.96;
}

.inline-summary {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.pipeline-list,
.vendor-list,
.risk-list,
.timeline-list,
.model-list,
.milestone-list,
.materials-grid {
  display: grid;
  gap: 0.8rem;
}

.pipeline-card,
.vendor-item,
.risk-item,
.model-item,
.milestone-item {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.pipeline-card:first-child,
.vendor-item:first-child,
.risk-item:first-child,
.model-item:first-child,
.milestone-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.pipeline-title,
.vendor-name,
.risk-title,
.model-name {
  font-size: 1rem;
  font-weight: 700;
}

.milestone-item {
  align-items: baseline;
}

.milestone-date {
  flex-shrink: 0;
}

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

.materials-column {
  display: grid;
  gap: 0.8rem;
}

.material-header {
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.material-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.coverage-track {
  margin: 0.95rem 0;
}

.material-stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}

.material-stats div {
  padding-top: 0.48rem;
  border-top: 1px solid var(--line);
}

.material-stats dt {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.material-stats dd {
  margin: 0.22rem 0 0;
  font-weight: 700;
}

.material-tags {
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.tag {
  font-size: 0.78rem;
}

.material-reason {
  margin-top: 0.8rem;
  line-height: 1.6;
}

.timeline-card {
  background:
    linear-gradient(180deg, var(--panel-strong), var(--panel)),
    radial-gradient(circle at top right, rgba(216, 169, 109, 0.1), transparent 28%);
}

.timeline-row {
  align-items: flex-start;
  gap: 0.9rem;
}

.timeline-dot {
  flex-shrink: 0;
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.34rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 12%, transparent);
}

.timeline-dot.warning {
  background: var(--amber);
}

.timeline-dot.critical {
  background: var(--red);
}

.timeline-dot.success {
  background: var(--green);
}

.timeline-time {
  color: var(--gold);
}

.timeline-copy {
  margin-top: 0.22rem;
  line-height: 1.6;
}

.model-detail {
  margin-top: 0.6rem;
}

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

.action-card {
  display: grid;
  gap: 0.75rem;
  background:
    linear-gradient(180deg, var(--panel-strong), var(--panel)),
    radial-gradient(circle at top right, rgba(121, 198, 181, 0.1), transparent 26%);
}

.action-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.loading-state {
  text-align: center;
}

.empty-card {
  border-style: dashed;
}

.app-footer {
  display: grid;
  gap: 0.8rem;
}

.footer-title {
  margin-top: 0.2rem;
  max-width: 22ch;
  font-size: 1.45rem;
  line-height: 1;
}

.footer-grid {
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-column {
  min-width: 12rem;
}

@media (max-width: 1240px) {
  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .sidebar-nav {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .hero,
  .spotlight-card,
  .double-grid,
  .triple-grid,
  .materials-layout,
  .metrics-grid,
  .project-strip,
  .actions-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .app-shell {
    width: min(100vw - 1rem, 100%);
    padding: 0.6rem 0 2rem;
  }

  .topbar,
  .topbar-left,
  .topbar-right,
  .workspace-meta,
  .workspace-actions,
  .brief-header,
  .section-header,
  .surface-header,
  .status-row,
  .project-top,
  .project-footer,
  .milestone-item,
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  body.nav-compact .topbar {
    width: min(calc(100% - 1rem), 100%);
  }

  .workspace-actions,
  .workspace-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .brief-panel,
  .app-footer,
  .section-shell,
  .spotlight-card,
  .metric-card,
  .status-card,
  .surface-card,
  .project-card,
  .material-card,
  .timeline-card,
  .action-card,
  .sidebar-panel,
  .sidebar-link {
    border-radius: 1.25rem;
  }

  .hero h1,
  .footer-title,
  .section-heading,
  .spotlight-title {
    max-width: none;
  }

  .material-stats {
    grid-template-columns: 1fr;
  }
}
