:root {
  /* Palette — warm-neutral, sourced from public website's global.css
     (C:\Users\spaci\Dropbox\website\src\styles\global.css, 2026-05-25).
     One shared palette across the website and the lab dashboard. */
  --bg:           #fbf8f4;
  --bg-2:         #f3ece0;
  --panel:        #ffffff;
  --border:       #e8e1da;
  --text:         #161719;
  --text-muted:   #62666c;
  --accent:       #8c1515;
  --accent-soft:  #f3e6e6;
  --alert:        #b91c1c;
  --warn:         #92400e;
  --ok:           #4e7c3f;
  --radius:       4px;

  /* Typography — Source Serif 4 + Source Sans 3 per
     personal/identity/visual-taste/typography.md. */
  --font-heading: "Source Serif 4", Georgia, serif;
  --font-body:    "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 { font-family: var(--font-heading); }
h1 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.app-header {
  background: var(--panel);
  color: var(--text);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.app-header h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.app-header .lab-name {
  font-size: 12px;
  color: var(--text-muted);
}

.app-nav { display: flex; gap: 12px; }
.app-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  font-size: 13px;
}
.app-nav a:hover { color: var(--text); border-bottom-color: var(--border); }
.app-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

main {
  padding: 20px 24px 48px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

h2 {
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h3 {
  font-size: 14px;
  margin: 0 0 8px;
}

section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 0;
  background: transparent;
  border: none;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.stat-value {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat.alert .stat-value { color: var(--alert); }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: var(--bg-2);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}
td .sub { font-size: 11px; color: var(--text-muted); }
tr.needs-pi td { background: var(--accent-soft); }
tr.over-warn td { background: #fbf1d9; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-2);
  color: var(--text);
  margin-right: 4px;
  text-transform: lowercase;
}
.badge.alert { background: var(--accent-soft); color: var(--alert); }
.badge.warn  { background: #fbf1d9;            color: var(--warn); }
.badge.muted { background: var(--bg-2);        color: var(--text-muted); }

.status-active,  .priority-urgent { background: var(--accent-soft); color: var(--alert); }
.status-blocked, .priority-high   { background: #fbf1d9;            color: var(--warn); }
.status-review,  .priority-medium { background: #e6ecf4;            color: #1e40af; }
.status-scoping                   { background: #ece6f3;            color: #6d28d9; }
.status-paused                    { background: var(--bg-2);        color: var(--text-muted); }
.status-idea                      { background: var(--bg-2);        color: var(--text-muted); }
.status-completed                 { background: #dfeadc;            color: var(--ok); }
.status-archived                  { background: var(--bg-2);        color: var(--text-muted); }
.priority-low                     { background: var(--bg-2);        color: var(--text-muted); }

.urgency-blocking { background: var(--accent-soft); color: var(--alert); }
.urgency-high     { background: #fbf1d9;            color: var(--warn); }
.urgency-medium   { background: #e6ecf4;            color: #1e40af; }
.urgency-low      { background: var(--bg-2);        color: var(--text-muted); }

.muted { color: var(--text-muted); font-size: 12px; }

.rlcr-form {
  display: grid;
  gap: 10px;
  background: var(--bg-2);
  border: 1px dashed var(--border);
  padding: 12px;
  border-radius: var(--radius);
}
.rlcr-form h3 { margin-bottom: 4px; }
.field { display: grid; gap: 4px; font-size: 12px; }
.field-label { font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
}
.checkbox { display: flex; gap: 6px; align-items: center; }

.btn {
  font: inherit;
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.btn:hover { background: var(--bg-2); }
.btn.primary {
  background: var(--panel);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.btn.primary:hover { background: var(--accent-soft); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.error-banner {
  background: var(--accent-soft);
  border: 1px solid #e5c4c4;
  color: var(--alert);
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.queue-panel {
  position: sticky;
  bottom: 12px;
  z-index: 10;
}
.queue-badge {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--text);
  color: var(--bg);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 20;
  pointer-events: none;
}
.queue-badge.visible { opacity: 1; }
.queue-actions { display: flex; gap: 8px; }

dialog.quick-jump {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
dialog.quick-jump h2 { font-size: 16px; }
dialog.quick-jump h3 { margin-top: 16px; }
dialog.quick-jump .quick-list { list-style: none; padding: 0; }
dialog.quick-jump .quick-list li { padding: 4px 0; }

.subnav {
  display: flex;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  margin-bottom: -12px;
}
.subnav-link {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
}
.subnav-link:hover { background: var(--bg-2); text-decoration: none; }
.subnav-link.active {
  background: var(--panel);
  color: var(--accent);
  border-color: var(--border);
  border-bottom: 2px solid var(--accent);
  font-weight: 600;
  margin-bottom: -1px;
}

.ra-header {
  padding: 12px 16px;
}
.ra-header h2 { margin-bottom: 4px; text-transform: none; letter-spacing: 0; font-size: 18px; }

.layout-two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .layout-two-col { grid-template-columns: 1fr; }
}

/* ---------- Lander (index.html) ---------- */

/* Lander uses #app as a vertical band container, not the standard <main>. */
body.lander #app {
  display: flex;
  flex-direction: column;
}

.title-band {
  padding: 56px 6vw 28px;
  max-width: 1180px;
  margin: 0 auto;
  background: var(--bg);
  border: none;
  border-radius: 0;
}
.title-band-name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.title-band-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 42em;
  margin: 0;
}

.hero {
  position: relative;
  width: 100%;
  /* Image-driven aspect ratio so head-anchor (x%, y%) coordinates from
     background/dashboard-header-image-reference.txt line up exactly. */
  aspect-ratio: 2172 / 724;
  padding: 0;
  margin: 0;
  background: var(--panel);
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

.portrait-scatter {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.portrait {
  /* Sized to be closer to the stick-figure head diameter in the
     infographic (~1.1% of image width) than to the reference's
     40px / 1.84% recommendation. */
  --portrait-size: clamp(18px, 1.2vw, 28px);
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Reset so a <button> portrait (lander hero) matches an <a> portrait. */
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  width: var(--portrait-size);
  height: var(--portrait-size);
  /* Shift up/left by half-size so anchor coords are the head centroid. */
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--panel);
  border: 1.5px solid var(--panel);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: calc(var(--portrait-size) * 0.35);
  font-weight: 600;
  text-decoration: none;
  pointer-events: auto;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 4px rgba(22, 23, 25, 0.18);
}

.portrait:hover {
  transform: translate(-50%, -50%) scale(1.15);
  border-color: var(--accent);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(22, 23, 25, 0.28);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait-initials { color: var(--text-muted); line-height: 1; }
.portrait:hover .portrait-initials { color: var(--accent); }

.lander-band {
  padding: 72px 6vw;
  background: var(--bg);
  border: none;
  border-radius: 0;
}

.band-calendar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(520px, 1.6fr);
  gap: 80px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .band-calendar {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 640px;
  }
}

.calendar-upcoming h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 1rem;
  color: var(--text);
}

.events-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.event-row:first-child { border-top: none; }

.event-date {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.event-title {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 2px;
}

.event-sub {
  font-size: 0.85rem;
}

.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 720px) {
  .cta-cards { grid-template-columns: 1fr; }
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 36px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.cta-card:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(22, 23, 25, 0.06);
}

/* ---------- Resources page ---------- */

.page-resources { max-width: 920px; }
.page-resources section {
  background: transparent;
  border: none;
  padding: 0 0 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.page-resources section:last-child { border-bottom: none; }
.page-resources h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 16px;
  color: var(--text);
}

/* Subsection headings inside a resources section sit below the page h1. */
.page-resources .resources-section h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 28px 0 12px;
}

/* ---------- Resources hub + subpages ---------- */

.resources-subnav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  margin-bottom: 8px;
  overflow-x: auto;
}

.resources-hero { margin-bottom: 8px; }
.resources-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.resources-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}
.resources-lede {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 46em;
  margin: 0;
}
.resources-intro {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 46em;
  margin: 16px 0 24px;
}

/* resource-card grid (hub) */
.resource-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) { .resource-card-grid { grid-template-columns: 1fr; } }
.resource-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.resource-card:hover {
  border-color: var(--accent);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(22, 23, 25, 0.06);
}
.resource-card-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.resource-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.resource-card:hover .resource-card-title { color: var(--accent); }
.resource-card-desc { font-size: 0.92rem; line-height: 1.5; margin: 0 0 0.8rem; }
.resource-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* principle-card */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 760px) { .principle-grid { grid-template-columns: 1fr; } }
.principle-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.principle-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.principle-explanation { font-size: 0.92rem; line-height: 1.5; margin: 0 0 0.8rem; }
.principle-implication {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.86rem;
  line-height: 1.45;
  border-top: 1px solid var(--border);
  padding-top: 0.7rem;
}
.principle-implication-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 600;
}

/* callout */
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-muted);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 12px 16px;
  margin: 16px 0;
}
.callout-title {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}
.callout-body { font-size: 0.95rem; line-height: 1.55; }
.callout-info     { border-left-color: var(--text-muted); }
.callout-principle{ border-left-color: var(--accent); }
.callout-principle .callout-body { font-family: var(--font-heading); font-size: 1.05rem; }
.callout-decision { border-left-color: var(--accent); background: var(--accent-soft); }
.callout-tip      { border-left-color: var(--ok); }

/* definition-grid */
.definition-grid {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.definition-term,
.definition-desc {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.5;
}
.definition-term {
  font-weight: 600;
  background: var(--bg-2);
}
.definition-grid > .definition-term:first-of-type,
.definition-grid > .definition-term:first-of-type + .definition-desc {
  border-top: none;
}
@media (max-width: 640px) {
  .definition-grid { grid-template-columns: 1fr; }
  .definition-desc { border-top: none; }
}

/* practice-list */
.practice-list {
  list-style: none;
  counter-reset: practice;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.practice-item {
  counter-increment: practice;
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px 14px 52px;
}
.practice-item::before {
  content: counter(practice);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
}
.practice-title { font-weight: 600; margin-bottom: 0.2rem; }
.practice-body { font-size: 0.92rem; line-height: 1.5; margin: 0; color: var(--text-muted); }

/* system-stack */
.system-stack {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stack-node {
  width: 100%;
  max-width: 520px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.92rem;
}
.stack-arrow { color: var(--accent); font-size: 1rem; line-height: 1; }

/* workflow-loop */
.workflow-loop {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.loop-step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
}
.loop-arrow { color: var(--accent); font-size: 0.95rem; }
.loop-return { font-size: 1.1rem; }

/* decision-table */
.decision-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) { .decision-table { grid-template-columns: 1fr; } }
.decision-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.decision-head {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.decision-proceed { border-left: 3px solid var(--ok); }
.decision-proceed .decision-head { color: var(--ok); }
.decision-escalate { border-left: 3px solid var(--accent); }
.decision-escalate .decision-head { color: var(--accent); }
.decision-col ul { margin: 0; padding: 10px 14px 10px 30px; }
.decision-col li { font-size: 0.9rem; line-height: 1.5; margin-bottom: 4px; }

/* reference-card */
.reference-card {
  display: block;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  margin: 12px 0;
  transition: box-shadow 0.15s;
}
.reference-card:hover { box-shadow: 0 2px 8px rgba(22, 23, 25, 0.06); text-decoration: none; }
.reference-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.reference-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; }
.reference-desc { font-size: 0.88rem; line-height: 1.45; color: var(--text-muted); margin: 0.3rem 0 0.4rem; }
.reference-link { font-size: 0.82rem; font-weight: 600; color: var(--accent); }

/* signed-off inline-SVG diagrams */
.diagram { margin: 16px 0; }
.diagram svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 560px;
  margin: 0 auto;
}
.diagram svg text { font-family: var(--font-body); fill: var(--text); }
.diagram-caption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}

/* escalation ticket template */
.ticket-template {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 0;
}

/* ---------- Projects list page ---------- */

.projects-page { max-width: 1000px; }
.projects-page > h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 16px;
  color: var(--text);
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0 20px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.project-filters .filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}
.project-filters .filter-label {
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.project-filters select {
  font: inherit;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.project-rows {
  display: flex;
  flex-direction: column;
}

.project-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background-color 0.15s;
}
.project-row:hover {
  background: var(--bg-2);
  text-decoration: none;
}
.project-row:last-child { border-bottom: none; }

.project-row-main { min-width: 0; }
.project-row-line1 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.project-short {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.project-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.project-row-desc {
  font-size: 0.9rem;
  line-height: 1.45;
}

.project-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 200px;
}

.ra-stack {
  display: flex;
  gap: 4px;
}
.ra-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
}

.project-row-badges { display: flex; gap: 4px; }
.project-row-updated { font-size: 0.8rem; }

.archived-details {
  margin-top: 24px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.archived-details > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 0;
}
.archived-details .project-row { opacity: 0.6; }

@media (max-width: 720px) {
  .project-row { grid-template-columns: 1fr; }
  .project-row-meta { align-items: flex-start; }
}

/* ---------- Password gate (projects-side views) ---------- */

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gate-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(22rem, 90vw);
  padding: 2rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.gate-card h2 { margin: 0; }
.gate-card input[type="password"] {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
}
.gate-error {
  margin: 0;
  min-height: 1.2em;
  color: var(--accent);
  font-size: 0.9rem;
}

/* ---------- People page ---------- */

.page-people { max-width: 960px; margin: 0 auto; padding: 8px 20px 48px; }
.people-section h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 20px 12px;
}
.person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  color: var(--text);
  cursor: pointer;
  text-align: center;
}
.person-card:hover { border-color: var(--border); background: var(--panel); }
.person-card:hover .person-name { color: var(--accent); }
.person-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.person-avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 600;
  color: var(--text-muted);
}
.person-avatar.lg { width: 72px; height: 72px; flex: 0 0 72px; }
.person-avatar-initials.lg { font-size: 22px; }
.person-name { font-weight: 600; line-height: 1.25; }
.person-role { font-size: 12px; line-height: 1.3; }

dialog.person-dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 440px;
  width: 90%;
}
dialog.person-dialog::backdrop { background: rgba(22, 23, 25, 0.35); }
.person-dialog-head { display: flex; gap: 14px; align-items: center; }
.person-dialog-head h2 { margin: 0 0 2px; font-size: 17px; font-family: var(--font-heading); }
.person-bio { margin: 14px 0 16px; }
