:root {
  --bg: #F4F4F4;
  --surface: #F4F4F4;
  --ink: #101111;
  --ink-2: #101111;
  --muted: #505d5d;
  --line: #9aabab;
  --accent: #EDEBA9;
  --accent-soft: #f5f3ce;
  --on-accent: #101111;
  --thumb: #F4F4F4;
  --radius: 4px;
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #101111;
  --surface: #1e2625;
  --ink: #edf2ef;
  --ink-2: #edf2ef;
  --muted: #c0ccc8;
  --line: #657571;
  --accent-soft: #34362a;
  --thumb: #1e2625;
  color-scheme: dark;
}

:root[data-theme="dark"] .brand-logo--auto-dark { filter: brightness(0) invert(1); }
:root[data-theme="light"] .brand-logo--auto-dark { filter: none; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.brand--alinea { display: flex; align-items: center; gap: 10px; font-size: clamp(14px, 2vw, 20px); white-space: nowrap; }
.brand--alinea svg { width: 24px; height: 25px; flex: 0 0 auto; }
.theme-toggle { font: inherit; font-size: 12px; color: var(--ink); background: rgb(255 255 255 / 12%); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; cursor: pointer; white-space: nowrap; }
.theme-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.theme-toggle[hidden] { display: none; }
@media (max-width: 600px) { .header-actions .site-header__meta { display: none; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.site-header { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); background: rgb(255 255 255 / 8%); }

a { color: inherit; }

.project-updates {
  margin-bottom: 32px; padding: 22px 24px; border-radius: 16px;
  border: 1px solid rgb(255 255 255 / 58%);
  background: linear-gradient(145deg, rgb(255 255 255 / 20%), rgb(255 255 255 / 7%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), 0 8px 24px rgb(16 17 17 / 7%);
  -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
}
.project-updates h2 { margin: 0 0 16px; font-size: 16px; font-weight: 500; }
.notifications { position: relative; }
.notifications > summary {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 1px solid var(--line); border-radius: 50%; cursor: pointer; list-style: none;
  background: rgb(255 255 255 / 12%); color: var(--ink);
}
.notifications > summary::-webkit-details-marker { display: none; }
.notifications > summary svg { width: 20px; height: 20px; }
.notifications > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.notifications .project-updates {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 30;
  width: 420px; max-width: calc(100vw - 32px); margin: 0;
  max-height: min(560px, 75vh); overflow-y: auto; background: var(--surface);
}
@media (max-width: 480px) {
  .notifications .project-updates { position: fixed; top: 80px; left: 16px; right: 16px; width: auto; }
  .header-actions { gap: 10px; }
  .brand--alinea { font-size: 11px; gap: 6px; }
  .brand--alinea svg { width: 18px; height: 19px; }
  .site-header .brand--alinea { font-size: 11px; letter-spacing: 0; }
  .theme-toggle { padding: 8px 10px; font-size: 11px; }
}
.project-updates ul { list-style: none; padding: 0; margin: 0; }
.project-updates li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; }
.project-updates li + li { border-top: 1px solid var(--line); }
.project-updates li > div { min-width: 0; }
.project-updates p { margin: 0; overflow-wrap: anywhere; }
.project-updates__context, .project-updates__date { font-size: 12px; color: var(--muted); }
.project-updates__context a { text-decoration: none; }
.project-updates__context a:hover { text-decoration: underline; }
.project-updates__name { font-size: 14px; margin: 4px 0 !important; }
.project-updates__link { flex-shrink: 0; font-size: 13px; text-decoration: none; }
.project-updates__link:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .project-updates { padding: 18px; }
  .project-updates li { align-items: flex-start; flex-direction: column; gap: 8px; }
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header / footer ------------------------------------------------------ */

.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
@media (prefers-color-scheme: dark) {
  /* No logo-dark variant: invert the light logo so it stays legible (keeps hues). */
  .brand-logo--auto-dark { filter: invert(1) hue-rotate(180deg); }
}
.brand-logo { display: block; height: 28px; width: auto; max-width: 60vw; object-fit: contain; }
.brand {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.site-header__meta, .eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero ------------------------------------------------------------------ */

.hero {
  display: grid;
  gap: 40px;
  padding: 56px 0 48px;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; padding: 88px 0 64px; }
}

.hero__main { min-width: 0; }
.hero__title {
  margin: 0 0 24px;
  font-weight: 300;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  white-space: nowrap;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.hero__description { max-width: 62ch; color: var(--ink-2); font-size: 16px; }
.hero__description p { margin: 0 0 12px; }
.hero__description ul { margin: 0 0 12px; padding-left: 20px; }

.facts { margin: 0; align-self: end; border-top: 1px solid var(--ink); color: var(--ink); }
.facts__row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 2px;
}
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts__row--muted dd { color: var(--ink); }

/* Timeline -------------------------------------------------------------- */

.meeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 24px;
  margin-bottom: 32px;
}
.meeting__info { min-width: 0; overflow-wrap: anywhere; }
.meeting h2 { margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.meeting__title { margin: 0 0 8px; font-size: 20px; }
.meeting__meta { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.meeting__zone { color: var(--muted); font-size: 12px; }
.meeting__none { margin: 0; color: var(--muted); }
.meeting__actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.meeting__actions .btn { text-decoration: none; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.meeting__calendar summary { list-style: none; }
.meeting__calendar summary::-webkit-details-marker { display: none; }
.meeting__calendar summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.meeting__calendar-options { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; background: var(--surface); }
.meeting__calendar-options a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 13px; text-decoration: none; color: var(--ink); }
.meeting__calendar-options a:hover, .meeting__calendar-options a:focus-visible { background: rgb(128 128 128 / 18%); }
.meeting--empty { border-left-color: var(--line); }
@media (max-width: 899px) {
  .meeting { flex-direction: column; align-items: stretch; padding: 20px; }
  .meeting__actions .btn { white-space: normal; text-align: center; }
}

.timeline {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  margin-bottom: 24px;
}
.timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.step a {
  display: grid;
  grid-template-columns: 14px 32px minmax(0, 1fr);
  grid-template-areas: "dot num label" ". . status";
  column-gap: 12px;
  align-items: center;
  padding: 10px 0;
  text-decoration: none;
  position: relative;
}
.step__dot {
  grid-area: dot;
  width: 11px;
  height: 11px;
  min-width: 11px;
  min-height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.step__num { grid-area: num; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.step__label { grid-area: label; font-weight: 500; }
.step__status { grid-area: status; font-size: 12px; color: var(--muted); }

/* vertical connector on narrow screens */
.step:not(:last-child) a::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  height: 100%;
  width: 1px;
  background: var(--line);
}

.step--done .step__dot { background: var(--ink); border-color: var(--ink); }
.step--upcoming .step__dot { background: var(--line); border-color: var(--line); }
.step--done:not(:last-child) a::after { background: var(--ink); width: 2px; left: 4.5px; }
.step--current .step__dot {
  width: 15px;
  height: 15px;
  margin-left: -2px;
  background: var(--accent);
  border: 1px solid var(--ink);
  box-shadow: none;
}
.step--current .step__status { color: var(--ink); font-weight: 500; }
.step--upcoming .step__label { color: var(--muted); font-weight: 400; }
.step a:hover .step__label { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 900px) {
  .timeline__list { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
  .step a {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "dot" "num" "label" "status";
    grid-template-rows: 21px auto auto auto;
    row-gap: 6px;
    padding: 0 16px 0 0;
  }
  .step__dot { margin-bottom: 10px; }
  .step:not(:last-child) a::after {
    left: 11px;
    right: 0;
    top: 5px;
    width: auto;
    height: 1px;
  }
  .step--done:not(:last-child) a::after { width: auto; height: 2px; left: 11px; top: 4.5px; }
}

/* Stages ---------------------------------------------------------------- */

.stage {
  padding: 48px 0 16px;
  scroll-margin-top: 16px;
}
.stage + .stage { border-top: 1px solid var(--line); }

.stage__header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (min-width: 720px) { .stage__header { grid-template-columns: 72px minmax(0, 1fr); } }
.stage__num {
  font-weight: 300;
  font-size: 32px;
  line-height: 1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.stage--current .stage__num { color: var(--ink); }
.stage--current {
  position: relative; isolation: isolate;
  --ink: #101111; --ink-2: #101111; --muted: #505d5d; --line: #9aabab; --surface: #F4F4F4;
  --stage-highlight: #E8ECEA;
  --stage-border: #D4DCD7;
  color: var(--ink);
}
.stage--current::before {
  content: ''; position: absolute; inset: 16px -12px 12px; z-index: -1; pointer-events: none;
  border: 1px solid var(--stage-border); border-radius: 16px;
  background: var(--stage-highlight);
}
:root[data-theme="dark"] .stage--current {
  --stage-highlight: #252B29; --stage-border: #414B46;
  --ink: #edf2ef; --ink-2: #edf2ef; --muted: #c0ccc8;
  --line: #657571; --surface: #1e2625;
}
.stage__heading h2 {
  margin: 0 0 8px;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.stage__title-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 12px; position: relative; }
.stage-info { flex: 0 0 auto; padding-top: 2px; }
.stage-info summary {
  display: flex; align-items: center; justify-content: center; padding: 5px 10px;
  border: 1px solid var(--line); border-radius: 8px; color: var(--ink);
  font-size: 12px; line-height: 1.2; cursor: pointer; list-style: none; white-space: nowrap;
}
.stage-info { margin-bottom: 8px; }
.stage-info summary::-webkit-details-marker { display: none; }
.stage-info summary:hover { background: var(--accent); color: var(--on-accent); }
.stage-info summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.stage-info__content {
  position: absolute; left: 0; top: calc(100% + 4px); z-index: 10;
  width: 340px; max-width: calc(100vw - 104px); padding: 20px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 12px 32px rgb(16 17 17 / 20%);
  backdrop-filter: blur(16px); font-size: 14px; line-height: 1.55;
}
.stage-info__content p { margin: 0 0 12px; }
.stage-info__content strong { display: block; margin-bottom: 4px; font-weight: 500; color: var(--accent); }
:root[data-theme="light"] .stage-info__content strong { color: var(--ink); background: var(--accent); width: fit-content; padding: 2px 6px; border-radius: 4px; }
.stage-info__content p:last-child { margin-bottom: 0; }
.stage-info__content ul { margin: 0 0 16px; padding-left: 20px; }
.stage-info__time { padding-top: 12px; border-top: 1px solid var(--line); }
.stage__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--muted);
}
.stage__empty {
  margin: 0 0 24px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}
@media (min-width: 720px) { .stage__empty, .group-title, .files, .stage__notes { margin-left: 84px; } }

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill--done { border-color: var(--ink); color: var(--ink); }
.pill--current { background: var(--accent-soft); border-color: transparent; color: var(--ink); }

.group-title {
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Files ----------------------------------------------------------------- */

.files {
  list-style: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
@media (max-width: 480px) { .files { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.file {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.file:hover { border-color: var(--muted); transform: translateY(-1px); }
.file:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.file__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.file__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.file__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.file__icon svg { width: 36px; height: 36px; }
.file__type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.badge-new {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.file__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.file__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.file__meta { font-size: 12px; color: var(--muted); }

/* Messages / landing ------------------------------------------------------ */

.message { padding: 96px 0 48px; max-width: 560px; }
.message h1 { margin: 0 0 16px; font-weight: 300; font-size: clamp(2rem, 5vw, 2.75rem); letter-spacing: -0.02em; line-height: 1.1; }
.message p { color: var(--ink-2); margin: 0 0 32px; }
.project-index { list-style: none; padding: 0; margin: 12px 0 0; border-top: 1px solid var(--line); }
.project-index li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.project-index a { text-decoration: none; font-weight: 500; }
.project-index a:hover { text-decoration: underline; }
.project-index span { color: var(--muted); font-size: 13px; }

/* Stage notes / new counts / versions ------------------------------------ */

.stage__new { color: var(--ink); font-weight: 500; }

.stage__notes {
  margin-bottom: 24px;
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  background: transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 720px;
}
.stage__notes-text { color: var(--ink-2); font-size: 14px; }
.stage__notes-text p { margin: 0 0 8px; }
.stage__notes-text p:last-child { margin-bottom: 0; }
.stage__notes-text ul { margin: 0 0 8px; padding-left: 20px; }
.stage__notes-facts { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; }
.stage__notes-facts dt { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.stage__notes-facts dd { margin: 0; }

/* Glass surfaces keep the logo visible beneath readable, unblurred content. */
.meeting, .file, .stage__notes, .stage__empty {
  background: linear-gradient(145deg, rgb(255 255 255 / 30%), rgb(255 255 255 / 10%));
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 65%), inset 0 -1px 0 rgb(255 255 255 / 14%), 0 8px 24px rgb(42 65 65 / 7%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
}
.file:hover { border-color: rgb(255 255 255 / 85%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 80%), 0 10px 28px rgb(42 65 65 / 12%); }

.files { align-items: start; }
.files > li { display: flex; flex-direction: column; gap: 6px; }
.file-search { display: flex; justify-content: flex-end; margin-top: 24px; }
.project-files { position: relative; }
@media (min-width: 720px) {
  .file-search { position: absolute; top: 48px; right: 0; margin-top: 0; }
  .stage--first .stage__header { padding-right: 284px; }
  .file-search__empty { padding-top: 104px; }
}
.file-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.file-search input {
  width: 260px; max-width: 100%; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: .875rem;
}
.file-search input::placeholder { color: var(--muted); }
.file-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.file-search__empty { color: var(--muted); padding: 24px 0; }
[hidden] { display: none !important; }
.versions { font-size: 12px; color: var(--muted); padding: 0 2px; }
.versions summary { cursor: pointer; list-style: none; }
.versions summary::-webkit-details-marker { display: none; }
.versions summary::before { content: "+ "; }
.versions[open] summary::before { content: "− "; }
.versions ul { list-style: none; margin: 6px 0 0; padding: 0; border-top: 1px solid var(--line); }
.versions li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.versions a { color: var(--ink-2); text-decoration: none; }
.versions a:hover { text-decoration: underline; }

/* Buttons / forms / flash -------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.btn:hover { opacity: 0.88; }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--small { padding: 4px 10px; font-size: 12px; background: transparent; color: var(--ink); border-color: var(--line); }
.btn--small:hover { border-color: var(--muted); opacity: 1; }
.btn svg { width: 14px; height: 14px; }

.flash { padding: 10px 14px; border-radius: var(--radius); background: var(--accent-soft); color: var(--ink); font-size: 14px; }
.flash--error { color: var(--ink); }

.login { display: grid; gap: 10px; max-width: 320px; }
.login label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.login input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.login input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.login button { justify-self: start; margin-top: 6px; }

/* Dashboard ---------------------------------------------------------------- */

.dash { padding: 48px 0 0; }
.dash__header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.dash__header h1 { margin: 0; font-weight: 300; font-size: clamp(2rem, 5vw, 2.75rem); letter-spacing: -0.02em; }
.dash__actions { display: flex; gap: 8px; }
.dash__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.dash-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (min-width: 900px) {
  .dash-card { grid-template-columns: minmax(0, 1fr) 460px 230px; align-items: center; }
  .dash-card__warnings { grid-column: 1 / -1; }
}
.dash-card--warn { border-left: 3px solid var(--accent); }
.dash-card h2 { margin: 0; font-size: 17px; font-weight: 500; }
.dash-card h2 a { text-decoration: none; }
.dash-card h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dash-card__folder { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.dash-card__facts { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 80px 110px; gap: 16px 24px; }
@media (max-width: 600px) { .dash-card__facts { grid-template-columns: 1fr 1fr; } .dash-card__facts > div:first-child { grid-column: 1 / -1; } }
.dash-card__facts dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.dash-card__facts dd { margin: 2px 0 0; font-size: 14px; }
.dash-card__link { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
@media (max-width: 899px) { .dash-card__link { justify-content: flex-start; } }
.dash-card__link code { font-size: 12px; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-card__warnings { font-size: 13px; color: var(--ink-2); padding-top: 12px; border-top: 1px solid var(--line); }
.dash-card__warnings strong { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.dash-card__warnings ul { margin: 6px 0 0; padding-left: 18px; }
.muted { color: var(--muted); }

.progress { display: flex; gap: 3px; margin-top: 6px; }
.progress__seg { display: block; width: 18px; height: 4px; border-radius: 2px; background: var(--line); }
.progress__seg--done { background: var(--ink); }
.progress__seg--current { background: var(--accent); }

.dash__summary { margin: 0 0 16px; font-size: 14px; color: var(--ink); font-weight: 500; }
.dash-card--hidden { background: var(--accent-soft); }
.pill--hidden { margin-left: 8px; vertical-align: middle; border-color: var(--ink); color: var(--ink); }
