/* ============================================================
   Corporate Portfolio — "Executive Suite" design system
   Deep Navy / Slate / Platinum, engraved with brass.
   Display: Fraunces · Body/UI: Archivo · Utility: Spline Sans Mono
   ============================================================ */

:root {
  /* Ink & surfaces */
  --navy-900: #0A1730;
  --navy: #0B1B3D;            /* brand navy (brief) */
  --navy-700: #1C3059;
  --navy-08: rgba(11, 27, 61, 0.08);
  --navy-14: rgba(11, 27, 61, 0.14);
  --slate-surface: #F2F4F8;   /* page (brief: Slate) */
  --paper: #FFFFFF;           /* platinum white (brief) */
  --platinum: #E9EDF3;
  --ink: #10203F;
  --muted: #59647B;

  /* Brass — the engraving accent */
  --brass: #A8842C;
  --brass-bright: #C9A227;
  --brass-soft: rgba(168, 132, 44, 0.35);
  --brass-line: linear-gradient(90deg, rgba(201,162,39,0) 0%, #C9A227 18%, #8C6D1F 50%, #C9A227 82%, rgba(201,162,39,0) 100%);

  /* The slate board */
  --board-hi: #2A333C;
  --board: #1D242C;
  --board-lo: #141A20;
  --chalk: #F4F1E8;
  --chalk-dim: #A7ADA3;

  /* Semantics */
  --status-office: #1F8A5B;
  --status-remote: #2F6BD6;
  --status-deep: #6B4FE0;
  --status-meeting: #C23A4E;
  --accent: #2F6BD6;
  --danger: #C23A4E;
  --danger-ink: #8F2434;

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Shape & motion */
  --radius: 10px;
  --radius-sm: 7px;
  --shadow-1: 0 1px 2px rgba(10, 23, 48, 0.05), 0 8px 24px -18px rgba(10, 23, 48, 0.25);
  --shadow-2: 0 2px 4px rgba(10, 23, 48, 0.06), 0 18px 44px -22px rgba(10, 23, 48, 0.35);
  --ease: cubic-bezier(0.32, 0.72, 0.24, 1);
  --t-fast: 150ms;
  --t-med: 240ms;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--slate-surface); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  touch-action: manipulation;
}
h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 560;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 40, "WONK" 0;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: var(--body); cursor: pointer; touch-action: manipulation; }
input, textarea, select { font-family: var(--body); }
img { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.app { max-width: 1160px; margin: 0 auto; padding: 28px 24px 40px; }
.narrow { max-width: 720px; }

/* ---------- top nav ---------- */
.topnav {
  background: var(--navy);
  position: relative;
}
.topnav::after {
  /* brass pinline under the bar — the engraved rule */
  content: ""; display: block; height: 2px;
  background: var(--brass-line);
}
.topnav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 20px; height: 60px;
}
.brand {
  font-family: var(--display); font-weight: 600; font-size: 18px;
  color: #F5F7FB; letter-spacing: 0.005em;
}
.brand::after {
  content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brass-bright); margin-left: 9px; vertical-align: 3px;
}
.brand:hover { color: #FFFFFF; text-decoration: none; }
.navlinks { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.navlink {
  color: rgba(245, 247, 251, 0.78); font-size: 13.5px; font-weight: 500;
  padding: 9px 13px; border-radius: var(--radius-sm); min-height: 40px;
  display: inline-flex; align-items: center;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.navlink:hover { background: rgba(255,255,255,0.09); color: #FFFFFF; text-decoration: none; }
.navlink.primary { background: #F5F7FB; color: var(--navy); font-weight: 600; }
.navlink.primary:hover { background: #FFFFFF; color: var(--navy); }
.topnav :focus-visible { outline-color: var(--brass-bright); }

/* ---------- panels, labels, fields ---------- */
.panel {
  background: var(--paper); border: 1px solid var(--navy-08);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-1);
}
.kicker, .eyebrow {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass);
}
.sub { font-size: 13.5px; color: var(--muted); }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; font-size: 14px;
  border: 1px solid var(--navy-14); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 76px; line-height: 1.55; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(11,27,61,0.3); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 214, 0.18);
}
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- buttons ---------- */
.btn {
  border: 1px solid var(--navy); background: var(--navy); color: #F5F7FB;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 13.5px; min-height: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.btn:hover { background: var(--navy-700); border-color: var(--navy-700); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy-14); }
.btn-ghost:hover { background: var(--platinum); border-color: var(--navy-14); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; min-height: 34px; }
.btn-block { width: 100%; }
.btn-danger { border-color: rgba(194, 58, 78, 0.4); color: var(--danger); background: transparent; }
.btn-danger:hover { background: rgba(194, 58, 78, 0.07); border-color: var(--danger); }
.btn-publish { border-color: var(--status-office); background: var(--status-office); }
.btn-publish:hover { background: #187449; border-color: #187449; }

.error-msg {
  background: #FBEDEF; border: 1px solid #F2C6CD; color: var(--danger-ink);
  font-size: 13px; padding: 11px 13px; border-radius: var(--radius-sm); margin-bottom: 12px;
}
.ok-msg {
  background: #E4F4EC; border: 1px solid #B9E2CC; color: #1B6A44;
  font-size: 13px; padding: 11px 13px; border-radius: var(--radius-sm); margin-bottom: 12px;
}

.section-divider { border: none; border-top: 1px solid var(--navy-08); margin: 20px 0 18px; }

/* ---------- the plaque (identity header) ---------- */
.identity {
  position: relative;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  background: var(--paper);
  border: 1px solid var(--navy-14);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow-1);
}
.identity::before {
  /* engraved inner rule — brass pinline, like a nameplate */
  content: ""; position: absolute; inset: 7px;
  border: 1px solid var(--brass-soft);
  border-radius: calc(var(--radius) - 5px);
  pointer-events: none;
}
.portrait {
  width: 88px; height: 88px; border-radius: 10px; object-fit: cover;
  border: 1px solid var(--navy-14); flex-shrink: 0; background: var(--platinum);
  box-shadow: inset 0 0 0 3px var(--paper);
}
.portrait-fallback {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 28px; color: var(--navy);
}
.plaque { flex: 1; min-width: 220px; }
.plaque .name {
  font-family: var(--display); font-size: clamp(26px, 4vw, 34px); font-weight: 580;
  line-height: 1.08; color: var(--navy-900); letter-spacing: -0.015em;
}
.plaque .role { font-size: 14.5px; color: var(--muted); margin-top: 5px; }
.plaque .dept {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass); margin-top: 9px; font-weight: 500;
}
.presence {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--navy-08); background: var(--slate-surface); color: var(--ink);
}
.presence .dot { width: 8px; height: 8px; border-radius: 50%; }
.presence.office .dot { background: var(--status-office); }
.presence.remote .dot { background: var(--status-remote); }
.presence.deep .dot { background: var(--status-deep); }
.presence.meeting .dot { background: var(--status-meeting); }

/* ---------- the slate board ---------- */
.slate-wrap { margin-top: 22px; }
.slate {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  padding: 30px 34px 24px; min-height: 150px;
  color: var(--chalk);
  background:
    radial-gradient(130% 160% at 12% 0%, var(--board-hi) 0%, var(--board) 48%, var(--board-lo) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    inset 0 2px 26px rgba(0, 0, 0, 0.45),
    var(--shadow-2);
}
.slate::before {
  /* brass frame edge along the top */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--brass-line);
  opacity: 0.9;
}
.slate::after {
  /* stone grain */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(112deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(24deg, rgba(0,0,0,0.10) 0 2px, transparent 2px 11px);
  opacity: 0.65;
}
.slate > * { position: relative; z-index: 1; }
.slate-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--chalk-dim);
}
.slate-text {
  font-family: var(--display); font-style: italic; font-weight: 480;
  font-size: clamp(21px, 3.4vw, 32px); line-height: 1.3;
  margin: 12px 0 0; color: var(--chalk);
  text-shadow: 0 1px 0 rgba(0,0,0,0.4), 0 0 18px rgba(244, 241, 232, 0.12);
  font-variation-settings: "SOFT" 70, "WONK" 1;
}
.slate-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px; gap: 12px; flex-wrap: wrap;
}
.slate-week { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--chalk-dim); }
.slate-history-btn {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); color: #D7DCD3;
  font-size: 12px; padding: 7px 13px; border-radius: 999px; min-height: 32px;
  transition: background var(--t-fast) var(--ease);
}
.slate-history-btn:hover { background: rgba(255,255,255,0.14); }
.slate :focus-visible { outline-color: var(--brass-bright); }
.slate-history { margin-top: 10px; }
.slate-history .panel { padding: 14px 18px; }
.slate-history-item { padding: 9px 0; border-bottom: 1px solid var(--navy-08); font-size: 13.5px; }
.slate-history-item:last-child { border-bottom: none; }
.slate-history-item .wk {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 3px;
}
.slate-wipe {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, rgba(244,241,232,0), rgba(244,241,232,0.8), rgba(244,241,232,0));
  transform: translateX(-120%); pointer-events: none;
}
.slate.wiping .slate-wipe { animation: wipe 1.1s var(--ease) forwards; }
@keyframes wipe { to { transform: translateX(120%); } }

/* ---------- layout blocks ---------- */
.split { display: grid; grid-template-columns: 65fr 35fr; gap: 22px; margin-top: 26px; align-items: start; }
.about-strip { margin-top: 22px; }
.about-strip .sub { line-height: 1.65; max-width: 78ch; }
/* With About lifted out of the sidebar there is usually no aside left, so the
   work column takes the full page width. */
.split.no-aside { grid-template-columns: minmax(0, 1fr); }
.split.no-aside[data-timeline="rail-left"] { grid-template-columns: 228px minmax(0, 1fr); }

.block-title {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 14px; gap: 10px;
}
.block-title h3 { font-size: 19px; margin: 2px 0 0; color: var(--navy-900); }

/* ---------- projects carousel ---------- */
.carousel {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--navy-14) transparent;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--navy-14); border-radius: 8px; }
.proj-card {
  flex: 0 0 226px; scroll-snap-align: start;
  background: var(--paper); border: 1px solid var(--navy-08);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}
.proj-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--navy-14); }
.proj-cover {
  height: 96px; width: 100%; object-fit: cover; display: block; border: none;
  background:
    radial-gradient(100% 140% at 85% -20%, var(--navy-700) 0%, var(--navy) 55%, var(--navy-900) 100%);
  position: relative;
}
div.proj-cover::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 12px; height: 1px;
  background: var(--brass-line); opacity: 0.55;
}
.proj-body { padding: 10px 12px 12px; }
.proj-body h4 { font-size: 14.5px; margin: 0 0 6px; color: var(--navy-900); line-height: 1.3; }
.proj-body .descr { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 6px 0 0; }

.tag {
  display: inline-block; font-family: var(--mono);
  font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px; margin: 0 5px 5px 0;
  border: 1px solid transparent;
}
.tag.status-ongoing   { background: #E7F0FE; color: #1A50AC; border-color: #CFE0F9; }
.tag.status-pipeline  { background: #FBF3DE; color: #8A6206; border-color: #F0E1B4; }
.tag.status-completed { background: #E4F4EC; color: #1B6A44; border-color: #C4E6D4; }
.tag.status-draft     { background: var(--platinum); color: var(--muted); border-color: var(--navy-08); }
.tag.status-published { background: #E4F4EC; color: #1B6A44; border-color: #C4E6D4; }
.tag.skill            { background: var(--slate-surface); color: var(--muted); border-color: var(--navy-08); }

.carousel-nav { display: flex; gap: 6px; }
.carousel-nav button {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid var(--navy-14); background: var(--paper); color: var(--navy);
  font-size: 16px; line-height: 1;
  transition: background var(--t-fast) var(--ease);
}
.carousel-nav button:hover { background: var(--platinum); }

/* ---------- articles ---------- */
.articles { display: flex; flex-direction: column; gap: 12px; }
.article {
  background: var(--paper); border: 1px solid var(--navy-08);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-1);
}
.article h4 { font-size: 18px; margin: 0 0 5px; }
.article h4 a { color: var(--navy-900); }
.article h4 a:hover { color: var(--accent); }
.art-meta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 9px;
}
.article p { font-size: 14px; line-height: 1.62; margin: 0 0 8px; color: #2B354B; }
.article p:last-child { margin-bottom: 0; }
.article-full h1 { color: var(--navy-900); line-height: 1.15; }
.article-full p { font-size: 16px; line-height: 1.78; }

/* ---------- reactions & comments ---------- */
.node-reactions {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--navy-08);
}
.react-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--navy-14); background: var(--paper); color: var(--navy);
  border-radius: 999px; padding: 5px 11px; min-height: 30px;
  font-size: 12px; font-weight: 600;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.react-chip svg { width: 14px; height: 14px; stroke-width: 2; flex-shrink: 0; }
.react-chip:hover { background: var(--platinum); }
.react-chip.active { background: var(--navy); color: #F5F7FB; border-color: var(--navy); }

.comments { margin-top: 10px; }
.comment { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--navy-08); }
.comment:last-child { border-bottom: none; }
.comment .body { font-size: 13.5px; line-height: 1.55; }
.comment .who { font-weight: 600; color: var(--navy); font-size: 13px; }
.comment .when { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-left: 7px; }
.comment-form { display: flex; gap: 8px; margin-top: 10px; }
.comment-form input {
  flex: 1; padding: 9px 14px; border: 1px solid var(--navy-14);
  border-radius: 999px; font-size: 13.5px; min-height: 38px;
}
.comment-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,107,214,0.18); }

.av {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--platinum); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 12px; font-family: var(--display);
}

/* ---------- activity ---------- */
.activity { display: flex; flex-direction: column; }
.activity-item { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--navy-08); }
.activity-item:last-child { border-bottom: none; }
.activity-body { font-size: 13.5px; line-height: 1.5; }
.activity-body .who { font-weight: 600; color: var(--navy); }
.activity-body .when { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.prio { width: 7px; height: 7px; border-radius: 50%; margin-left: auto; align-self: center; flex-shrink: 0; }
.prio.medium { background: var(--navy); }
.prio.low { background: var(--navy-14); }

/* ---------- directory ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 14px; }
.person-card {
  background: var(--paper); border: 1px solid var(--navy-08); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 11px;
  box-shadow: var(--shadow-1);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}
.person-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--navy-14); text-decoration: none; }
.person-top { display: flex; gap: 12px; align-items: center; }
.person-card .portrait { width: 52px; height: 52px; border-radius: 9px; box-shadow: none; }
.person-card .portrait-fallback { font-size: 18px; }
.person-card .p-name { font-family: var(--display); font-weight: 580; font-size: 16.5px; color: var(--navy-900); }
.person-card .p-role { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.person-card .p-slate {
  font-family: var(--display); font-style: italic; font-size: 13.5px; color: #2B354B;
  line-height: 1.5; border-left: 2px solid var(--brass-soft); padding-left: 11px;
}
.person-card .p-stats {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase; margin-top: auto;
}

/* ---------- studio ---------- */
.studio-grid { display: grid; grid-template-columns: 208px 1fr; gap: 22px; align-items: start; }
.studio-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 20px; }
.studio-nav button {
  text-align: left; background: transparent; border: none;
  border-left: 2px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 13px; min-height: 40px;
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.studio-nav button:hover { background: var(--platinum); color: var(--navy); }
.studio-nav button.active {
  background: var(--paper); color: var(--navy-900); font-weight: 600;
  border-left-color: var(--brass); box-shadow: var(--shadow-1);
}

.repeat-item {
  border: 1px solid var(--navy-08); border-radius: var(--radius-sm);
  padding: 16px; margin-bottom: 12px; background: var(--slate-surface);
}
.repeat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; flex-wrap: wrap; }
.repeat-head strong { font-size: 13.5px; color: var(--navy-900); }
.repeat-head > div > strong:only-child,
.repeat-head > strong {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.repeat-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.embed-block textarea {
  width: 100%; font-family: var(--mono); font-size: 12px;
  border: 1px solid var(--navy-14); border-radius: var(--radius-sm); padding: 11px;
  background: var(--slate-surface); color: var(--ink); resize: vertical; line-height: 1.5;
}

/* ---------- toasts ---------- */
.toast-layer {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 50; display: flex; flex-direction: column; gap: 8px; width: min(420px, 92vw);
}
.toast {
  background: var(--navy); color: #F5F7FB;
  border-left: 3px solid var(--brass-bright);
  border-radius: var(--radius-sm); padding: 12px 15px; font-size: 13px;
  box-shadow: var(--shadow-2); animation: dropIn 0.35s var(--ease);
}
.toast .t-title { font-weight: 700; font-size: 12.5px; }
.toast .t-body { opacity: 0.88; margin-top: 1px; }
.toast.err { background: var(--danger); border-left-color: #F2C6CD; }
@keyframes dropIn { from { transform: translateY(-16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- misc ---------- */
.footer-note {
  text-align: center; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 34px 0 10px;
}
.empty { color: var(--muted); font-size: 13.5px; }

.auth-card { max-width: 440px; margin: 52px auto; padding: 28px; }
.auth-card h1 { font-size: 27px; margin: 6px 0 4px; color: var(--navy-900); }

body.embedded .topnav { display: none; }
body.embedded .app { padding: 14px; }
body.embedded { background: transparent; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split, .studio-grid { grid-template-columns: 1fr; }
  .studio-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .studio-nav button { border-left: none; border-bottom: 2px solid transparent; border-radius: var(--radius-sm) var(--radius-sm) 0 0; white-space: nowrap; }
  .studio-nav button.active { border-bottom-color: var(--brass); box-shadow: none; }
  .row2 { grid-template-columns: 1fr; }
  .identity { padding: 20px; }
  .slate { padding: 24px 22px 20px; }
}
@media (max-width: 560px) {
  .app { padding: 18px 14px 32px; }
  .topnav-inner { padding: 0 14px; }
  .navlink { padding: 9px 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   Themes — set by the admin console on <html data-theme>.
   Each block re-points the same tokens the rest of the sheet
   already consumes, so no component needs theme-aware rules.
   ============================================================ */
html[data-theme="copper"] {
  --navy-900: #212127; --navy: #2B2B31; --navy-700: #3F3F47;
  --navy-08: rgba(43,43,49,0.08); --navy-14: rgba(43,43,49,0.14);
  --slate-surface: #F2F1EE; --platinum: #E8E6E1; --ink: #26262B;
  --brass: #B87333; --brass-bright: #D08A45; --brass-soft: rgba(184,115,51,0.35);
  --brass-line: linear-gradient(90deg, rgba(208,138,69,0) 0%, #D08A45 18%, #8F5622 50%, #D08A45 82%, rgba(208,138,69,0) 100%);
  --board-hi: #3A342E; --board: #282320; --board-lo: #1A1715;
}
html[data-theme="forest"] {
  --navy-900: #0C2620; --navy: #12352A; --navy-700: #1E4E3D;
  --navy-08: rgba(18,53,42,0.08); --navy-14: rgba(18,53,42,0.14);
  --slate-surface: #EFF3F0; --platinum: #E2EAE5; --ink: #103026;
  --brass: #B08D1E; --brass-bright: #C9A227; --brass-soft: rgba(176,141,30,0.35);
  --brass-line: linear-gradient(90deg, rgba(201,162,39,0) 0%, #C9A227 18%, #8A6C13 50%, #C9A227 82%, rgba(201,162,39,0) 100%);
  --board-hi: #263630; --board: #1A2621; --board-lo: #121A16;
}
html[data-theme="ice"] {
  --navy-900: #161D25; --navy: #1F2933; --navy-700: #35434F;
  --navy-08: rgba(31,41,51,0.08); --navy-14: rgba(31,41,51,0.14);
  --slate-surface: #EEF1F3; --platinum: #DFE5EA; --ink: #1B242D;
  --brass: #3E7F8E; --brass-bright: #5B9AA9; --brass-soft: rgba(62,127,142,0.35);
  --brass-line: linear-gradient(90deg, rgba(91,154,169,0) 0%, #5B9AA9 18%, #2F626E 50%, #5B9AA9 82%, rgba(91,154,169,0) 100%);
  --board-hi: #2C3841; --board: #1E272E; --board-lo: #151C21;
}
html[data-theme="plum"] {
  --navy-900: #2C1730; --navy: #3B1F3D; --navy-700: #553055;
  --navy-08: rgba(59,31,61,0.08); --navy-14: rgba(59,31,61,0.14);
  --slate-surface: #F4F0F4; --platinum: #E9E0EA; --ink: #331B36;
  --brass: #A8556E; --brass-bright: #C2748C; --brass-soft: rgba(168,85,110,0.35);
  --brass-line: linear-gradient(90deg, rgba(194,116,140,0) 0%, #C2748C 18%, #8A4258 50%, #C2748C 82%, rgba(194,116,140,0) 100%);
  --board-hi: #382C3A; --board: #271E29; --board-lo: #1B141C;
}
html[data-theme="ink"] {
  --navy-900: #0D1016; --navy: #141821; --navy-700: #262D3A;
  --navy-08: rgba(20,24,33,0.08); --navy-14: rgba(20,24,33,0.14);
  --slate-surface: #EFEFF1; --platinum: #E1E1E5; --ink: #12151C;
  --brass: #B37F17; --brass-bright: #D99A2B; --brass-soft: rgba(179,127,23,0.35);
  --brass-line: linear-gradient(90deg, rgba(217,154,43,0) 0%, #D99A2B 18%, #8F6511 50%, #D99A2B 82%, rgba(217,154,43,0) 100%);
  --board-hi: #262B34; --board: #191D24; --board-lo: #111419;
}

/* Page textures, also driven from the admin console. */
html[data-texture="grid"] body {
  background-image:
    linear-gradient(var(--navy-08) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-08) 1px, transparent 1px);
  background-size: 24px 24px;
}
html[data-texture="dots"] body {
  background-image: radial-gradient(var(--navy-14) 1px, transparent 1px);
  background-size: 18px 18px;
}
html[data-texture="diagonal"] body {
  background-image: repeating-linear-gradient(45deg, var(--navy-08) 0 1px, transparent 1px 12px);
}
html[data-texture="linen"] body {
  background-image:
    repeating-linear-gradient(0deg, var(--navy-08) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, var(--navy-08) 0 1px, transparent 1px 5px);
}

/* ---------- brand mark in the top nav ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-logo {
  width: 26px; height: 26px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brass-bright); color: var(--navy);
  font-family: var(--display); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.02em; object-fit: cover;
}
.brand-logo.rounded { border-radius: 6px; }
.brand-logo.circle  { border-radius: 50%; }
.brand-logo.square  { border-radius: 2px; }
.nav-count {
  display: inline-block; min-width: 17px; padding: 0 5px; margin-left: 6px;
  background: var(--brass-bright); color: var(--navy);
  border-radius: 9px; font-size: 11px; font-weight: 700;
  font-family: var(--mono); text-align: center; vertical-align: 1px;
}

/* ---------- shared bits ---------- */
.crumb { margin: 0 0 14px; font-size: 13px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag.admin { background: var(--brass-soft); color: var(--navy); border-color: transparent; }
.tag.status-off { background: var(--navy-08); color: var(--muted); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mini-person { display: flex; align-items: center; gap: 10px; }
.portrait.sm { width: 40px; height: 40px; font-size: 14px; }
.portrait.xs { width: 30px; height: 30px; font-size: 11px; }
.portrait.xl { width: 132px; height: 132px; font-size: 42px; }
.p-loc { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.quote-slate { font-family: var(--display); font-style: italic; font-size: 15px; line-height: 1.6; color: var(--navy); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 20px; }
.info-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); }
.info-v { font-size: 13.5px; margin-top: 3px; word-break: break-word; }
.info-v.big { font-family: var(--display); font-size: 22px; font-weight: 700; }

/* ---------- project card footer ---------- */
.proj-body h4 a { color: inherit; text-decoration: none; }
.proj-body h4 a:hover { color: var(--brass); }
.proj-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--navy-08);
}
.doc-count { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.doc-count::before { content: "\25A4"; margin-right: 5px; }
.open-link { font-family: var(--mono); font-size: 11px; color: var(--brass); text-decoration: none; }
.open-link:hover { text-decoration: underline; }

/* ---------- project detail ---------- */
.proj-hero {
  background: var(--navy); border-radius: var(--radius);
  padding: 26px 28px 24px; position: relative; overflow: hidden; margin-bottom: 20px;
}
.proj-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brass-line);
}
.proj-hero .eyebrow { color: var(--brass-bright); }
.proj-hero h1 {
  font-family: var(--display); font-size: 30px; font-weight: 700;
  color: #FFFFFF; letter-spacing: -0.015em; margin: 6px 0 8px;
}
.proj-hero-sub { color: rgba(255,255,255,0.72); font-size: 14.5px; line-height: 1.6; max-width: 66ch; }
.proj-hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 20px; }
.proj-hero-meta .k {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.09em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.proj-hero-meta .v { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--brass-bright); margin-top: 3px; }

.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-row {
  display: flex; align-items: center; gap: 13px; padding: 11px 13px;
  background: var(--paper); border: 1px solid var(--navy-08);
  border-radius: var(--radius-sm); transition: border-color var(--t-fast) var(--ease);
}
.doc-row:hover { border-color: var(--navy-14); }
.doc-row.active { border-color: var(--brass); box-shadow: inset 3px 0 0 var(--brass); }
.doc-icon {
  width: 34px; height: 42px; flex-shrink: 0; border-radius: 3px;
  background: rgba(194,58,78,0.08); border: 1px solid rgba(194,58,78,0.28); color: var(--danger-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.06em;
}
.doc-icon.sm { width: 28px; height: 34px; font-size: 8.5px; }
.doc-meta { flex: 1; min-width: 0; }
.doc-name { font-size: 13.5px; font-weight: 600; word-break: break-word; }
.doc-sub { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px; }
.doc-actions { display: flex; gap: 6px; flex-shrink: 0; }

.pdf-shell {
  border: 1px solid var(--navy-14); border-radius: var(--radius);
  overflow: hidden; background: #525659;
}
.pdf-frame { display: block; width: 100%; height: 640px; border: 0; }

/* ---------- full profile page ---------- */
.profile-hero {
  background: var(--paper); border: 1px solid var(--navy-08);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); margin-bottom: 20px;
}
.profile-banner { height: 104px; background: var(--navy); position: relative; }
.profile-banner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brass-line);
}
.profile-main {
  display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding: 0 28px 24px; margin-top: -62px;
}
.profile-main .portrait.xl { border: 3px solid var(--brass); background: var(--paper); }
.profile-ident { flex: 1; min-width: 220px; padding-bottom: 4px; }
.profile-ident h1 {
  font-family: var(--display); font-size: 30px; font-weight: 700;
  letter-spacing: -0.015em; margin: 0; line-height: 1.15;
}
.profile-role { font-size: 15px; color: var(--muted); margin-top: 5px; }
.profile-dept { font-family: var(--mono); font-size: 12px; color: var(--brass); margin-top: 5px; }
.profile-loc { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.profile-cta { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 6px; }

/* ---------- modal ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,23,48,0.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--paper); border-radius: 12px; border-top: 3px solid var(--brass);
  width: 100%; max-width: 520px; padding: 24px; box-shadow: var(--shadow-2);
  max-height: 88vh; overflow-y: auto;
}
.modal h3 { font-family: var(--display); font-size: 19px; font-weight: 700; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }

/* ---------- inbox ---------- */
.fwd-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fwd-bar > div:first-child { flex: 1; min-width: 240px; }
.fwd-bar input { max-width: 260px; padding: 9px 12px; border: 1px solid var(--navy-14);
  border-radius: var(--radius-sm); font-family: var(--body); font-size: 13.5px; }

.msg-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.thread-col, .msg-col { padding: 0; overflow: hidden; }
.col-head {
  padding: 12px 15px; border-bottom: 1px solid var(--navy-08);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted);
}
.msg-head { display: flex; align-items: center; gap: 10px; text-transform: none;
  letter-spacing: 0; font-family: var(--body); font-size: 13px; }
.thread {
  display: flex; gap: 10px; width: 100%; padding: 12px 15px; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--navy-08);
  cursor: pointer; transition: background var(--t-fast) var(--ease);
}
.thread:hover { background: var(--slate-surface); }
.thread.active { background: var(--brass-soft); box-shadow: inset 2px 0 0 var(--brass); }
.thread-meta { min-width: 0; flex: 1; }
.t-name { font-size: 13.5px; font-weight: 600; }
.t-name .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass); margin-left: 6px; vertical-align: 2px; }
.t-prev { font-size: 12px; color: var(--muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-when { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 3px; }

.msg-scroll { display: flex; flex-direction: column; gap: 12px;
  padding: 16px; min-height: 280px; max-height: 440px; overflow-y: auto; }
.bubble-row { display: flex; flex-direction: column; align-items: flex-start; }
.bubble-row.out { align-items: flex-end; }
.bubble {
  max-width: 76%; padding: 10px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.55;
  background: var(--slate-surface); border: 1px solid var(--navy-08); border-bottom-left-radius: 4px;
  white-space: pre-wrap; word-break: break-word;
}
.bubble-row.out .bubble {
  background: var(--navy); border-color: var(--navy); color: #FFFFFF;
  border-bottom-left-radius: 12px; border-bottom-right-radius: 4px;
}
.b-subject { font-weight: 700; margin-bottom: 4px; }
.b-when { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 4px; }
.reply-bar { display: flex; gap: 8px; padding: 12px 15px; border-top: 1px solid var(--navy-08); }
.reply-bar input { flex: 1; padding: 9px 12px; border: 1px solid var(--navy-14);
  border-radius: var(--radius-sm); font-family: var(--body); font-size: 13.5px; }

/* ---------- admin console ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--paper); border: 1px solid var(--navy-08); border-radius: var(--radius-sm); padding: 13px 15px; }
.stat-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); }
.stat-v { font-family: var(--display); font-size: 26px; font-weight: 700; margin-top: 2px; }

.filter-bar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.filter-bar .field { flex: 1; min-width: 150px; margin-bottom: 0; }
.filter-bar .field:first-child { flex: 2; min-width: 200px; }

.table-wrap { padding: 0; overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead th {
  background: var(--slate-surface); text-align: left; padding: 10px 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--navy-08); white-space: nowrap;
}
.tbl tbody td { padding: 10px 14px; border-bottom: 1px solid var(--navy-08); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--slate-surface); }
.tbl tbody tr.off { opacity: 0.55; }
.cell-user { display: flex; align-items: center; gap: 9px; }
.c-name { font-weight: 600; }
.c-mail { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 2px; }

.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.swatch {
  border: 2px solid var(--navy-08); border-radius: var(--radius-sm); background: var(--paper);
  padding: 10px; cursor: pointer; text-align: left; transition: border-color var(--t-fast) var(--ease);
}
.swatch:hover { border-color: var(--navy-14); }
.swatch.on { border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft); }
.swatch .bars { display: flex; gap: 4px; margin-bottom: 8px; }
.swatch .bars span { height: 26px; flex: 1; border-radius: 3px; }
.sw-name { font-size: 12.5px; font-weight: 600; }
.tex-preview {
  display: block; height: 34px; margin-bottom: 8px;
  border: 1px solid var(--navy-08); border-radius: 4px; background-color: var(--slate-surface);
}
.tex-preview[data-tex="grid"] {
  background-image: linear-gradient(var(--navy-08) 1px, transparent 1px),
                    linear-gradient(90deg, var(--navy-08) 1px, transparent 1px);
  background-size: 12px 12px;
}
.tex-preview[data-tex="dots"] {
  background-image: radial-gradient(var(--navy-14) 1px, transparent 1px); background-size: 10px 10px;
}
.tex-preview[data-tex="diagonal"] {
  background-image: repeating-linear-gradient(45deg, var(--navy-08) 0 1px, transparent 1px 8px);
}
.tex-preview[data-tex="linen"] {
  background-image: repeating-linear-gradient(0deg, var(--navy-08) 0 1px, transparent 1px 4px),
                    repeating-linear-gradient(90deg, var(--navy-08) 0 1px, transparent 1px 4px);
}

.warn-bar {
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(201,162,39,0.09); border-color: var(--brass-soft);
}

/* ---------- studio attachments ---------- */
.attach-zone { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--navy-14); }
.attach-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.attach-list { display: flex; flex-direction: column; gap: 7px; }
.attach-row {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px;
  background: var(--paper); border: 1px solid var(--navy-08); border-radius: var(--radius-sm);
}
.file-btn { position: relative; cursor: pointer; }
.file-btn.busy { opacity: 0.55; pointer-events: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .msg-layout { grid-template-columns: 1fr; }
  .msg-scroll { max-height: 340px; }
  .pdf-frame { height: 460px; }
  .profile-main { margin-top: -48px; padding: 0 18px 20px; }
  .portrait.xl { width: 100px; height: 100px; font-size: 32px; }
  .profile-ident h1, .proj-hero h1 { font-size: 24px; }
  .proj-hero-meta { gap: 16px; }
}

/* ============================================================
   v4 — brand mark, landing page, guest preview, uploaders
   ============================================================ */

/* ---------- larger brand mark in the nav ---------- */
.topnav-inner { gap: 14px; }
.brand { gap: 12px; }
.brand-logo {
  width: 46px; height: 46px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  object-fit: contain; background: transparent;
}
.brand-logo.mono {
  background: var(--brass-bright); color: var(--navy);
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.01em;
}
.brand-logo.rounded { border-radius: 10px; }
.brand-logo.circle  { border-radius: 50%; }
.brand-logo.square  { border-radius: 3px; }
.brand-logo.lg { width: 76px; height: 76px; font-size: 28px; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 10px; }

/* ---------- split landing page ---------- */
.landing {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 46px; align-items: center; padding: 26px 0 10px;
}
.landing-lockup { width: 190px; height: auto; margin-bottom: 20px; display: block; }
.landing-copy h1 {
  font-family: var(--display); font-size: 46px; line-height: 1.06;
  font-weight: 700; letter-spacing: -0.028em; margin-bottom: 16px;
}
.landing-lede { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 52ch; }
.landing-points { list-style: none; margin: 26px 0 28px; display: flex; flex-direction: column; gap: 15px; }
.landing-points li { display: flex; gap: 13px; align-items: flex-start; }
.landing-points li > span {
  width: 25px; height: 25px; flex-shrink: 0; border-radius: 50%;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 500; margin-top: 1px;
}
.landing-points strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.landing-points div { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.landing-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.landing-fine { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 14px; }

.landing-visual { display: flex; justify-content: center; }
.landing-stage { position: relative; width: 100%; max-width: 430px; }
.landing-video {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 20px; display: block;
  background: var(--slate-surface); box-shadow: var(--shadow-2);
}
.landing-slate-peek {
  position: absolute; left: -14px; right: 34px; bottom: -26px;
  background: var(--board); border-radius: 12px; padding: 15px 17px;
  box-shadow: var(--shadow-2); border-top: 2px solid var(--brass);
}
.peek-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: rgba(255,255,255,0.42);
}
.landing-slate-peek p {
  font-family: var(--display); font-style: italic; font-size: 14.5px; line-height: 1.5;
  color: #EDEAE2; margin-top: 7px;
}
.peek-foot {
  display: flex; align-items: center; gap: 6px; margin-top: 10px;
  font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.4);
}
.peek-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; }

@media (max-width: 940px) {
  .landing { grid-template-columns: 1fr; gap: 34px; }
  .landing-copy h1 { font-size: 34px; }
  .landing-visual { order: -1; }
  .landing-slate-peek { right: 10px; left: 10px; bottom: -20px; }
  .landing-lockup { width: 150px; }
}

/* ---------- guest preview ---------- */
.preview-bar { background: var(--navy); border-bottom: 2px solid var(--brass); }
.preview-bar.admin { background: #7A3E12; border-bottom-color: #E8A33D; }
.preview-bar-inner {
  max-width: 1080px; margin: 0 auto; padding: 11px 24px;
  display: flex; align-items: center; gap: 13px; flex-wrap: wrap;
}
.preview-pill {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--brass-bright); color: var(--navy); padding: 3px 9px; border-radius: 20px; font-weight: 500;
}
.preview-text { color: rgba(255,255,255,0.86); font-size: 13px; flex: 1; min-width: 200px; }
.preview-bar .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.preview-bar .btn-ghost:hover { background: rgba(255,255,255,0.12); }
.demo-cover {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 60%, var(--brass) 220%);
}
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.feature-list li { position: relative; padding-left: 22px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brass); font-weight: 700; font-size: 13px;
}
.preview-foot {
  margin-top: 34px; padding: 30px 24px; text-align: center;
  background: var(--paper); border: 1px solid var(--navy-08); border-radius: var(--radius);
}
.preview-foot h3 { font-family: var(--display); font-size: 22px; font-weight: 700; margin-bottom: 6px; }

/* ---------- password rules + SSO ---------- */
.label-optional {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); background: var(--navy-08); padding: 2px 6px; border-radius: 3px;
  margin-left: 6px; font-weight: 400; vertical-align: 1px;
}
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 62px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; padding: 5px 8px;
  font-family: var(--mono); font-size: 11px; color: var(--muted); border-radius: 4px;
}
.pw-toggle:hover { color: var(--navy); background: var(--slate-surface); }
.pw-rules { list-style: none; margin-top: 10px; display: grid; gap: 5px; }
.pw-rules li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted); transition: color var(--t-fast) var(--ease);
}
.pw-rules li .tick {
  width: 15px; height: 15px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; background: var(--navy-08); color: var(--muted);
}
.pw-rules li.ok { color: var(--ok-ink); }
.pw-rules li.ok .tick { background: rgba(31,122,74,0.14); color: var(--ok-ink); }

.sso-block { margin-bottom: 4px; }
.gsi-host { display: flex; justify-content: center; min-height: 44px; }
.or-rule {
  display: flex; align-items: center; gap: 12px; margin: 16px 0 14px;
  font-size: 12px; color: var(--muted);
}
.or-rule::before, .or-rule::after {
  content: ""; flex: 1; height: 1px; background: var(--navy-08);
}

/* ---------- image uploaders ---------- */
.avatar-editor { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.avatar-preview .portrait.lg { width: 96px; height: 96px; font-size: 30px; }
.avatar-controls { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

.logo-editor {
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  background: var(--slate-surface); border: 1px solid var(--navy-08);
  border-radius: var(--radius); padding: 20px;
}
/* Deliberately oversized: the logo is the one asset an admin needs to judge
   at real size before committing to it. */
.logo-stage {
  width: 190px; height: 190px; flex-shrink: 0;
  background: var(--navy); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.logo-stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brass-line);
}
.logo-stage-inner {
  width: 140px; height: 140px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: transparent;
}
.logo-stage-inner.rounded { border-radius: 18px; }
.logo-stage-inner.circle  { border-radius: 50%; }
.logo-stage-inner.square  { border-radius: 3px; }
.logo-stage-inner img { width: 100%; height: 100%; object-fit: contain; }
.logo-mono {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--brass-bright); color: var(--navy);
  font-family: var(--display); font-weight: 700; font-size: 54px;
}
.logo-controls { flex: 1; min-width: 240px; }

/* ---------- toggle row ---------- */
.switch-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.switch-row input { width: auto; margin-top: 3px; flex-shrink: 0; }
.switch-row strong { display: block; font-size: 14px; margin-bottom: 3px; }
.switch-row .sub { display: block; }

/* ---------- notices + hidden portfolio cards ---------- */
.panel.notice {
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(201,162,39,0.09); border-color: var(--brass-soft);
}
.person-card.is-hidden { border-style: dashed; opacity: 0.82; }
.person-card.is-hidden:hover { opacity: 1; }
.p-flags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.tag.b-warn { background: rgba(180,83,9,0.13); color: #8A4B0A; }

@media (max-width: 620px) {
  .brand-logo { width: 38px; height: 38px; }
  .brand-word { font-size: 15px; }
  .logo-stage { width: 150px; height: 150px; }
  .logo-stage-inner { width: 110px; height: 110px; }
  .landing-copy h1 { font-size: 29px; }
}

/* ---------- custom colour picker ---------- */
.colour-picker {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--navy-08);
}
.colour-picker.collapsed { display: none; }
.colour-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.colour-field label {
  display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px;
}
.colour-input { display: flex; gap: 8px; align-items: center; }
.colour-input input[type="color"] {
  width: 46px; height: 38px; padding: 2px; flex-shrink: 0;
  border: 1px solid var(--navy-14); border-radius: var(--radius-sm);
  background: var(--paper); cursor: pointer;
}
.colour-input input[type="text"] { font-family: var(--mono); text-transform: uppercase; }
.swatch .bars span { border: 1px solid var(--navy-08); }

/* ---------- landing editor repeatables ---------- */
.inline-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.inline-row input { flex: 1; }
.landing.single { grid-template-columns: 1fr; }
.landing.single .landing-copy { max-width: 720px; }
.landing-stage.no-media { min-height: 0; }
.landing-stage.no-media .landing-slate-peek { position: static; left: auto; right: auto; bottom: auto; }
img.landing-video { object-fit: cover; }

/* ---------- additional preset themes ---------- */
html[data-theme="harbour"] {
  --navy-900: #0C2335; --navy: #10304A; --navy-700: #365167;
  --navy-08: rgba(16,48,74,0.08); --navy-14: rgba(16,48,74,0.14);
  --slate-surface: #EDF2F5; --platinum: #DFE3E6; --ink: #0F2C44;
  --brass: #2E8C8C; --brass-bright: #54A1A1; --brass-soft: rgba(46,140,140,0.35);
  --brass-line: linear-gradient(90deg, rgba(46,140,140,0) 0%, #54A1A1 18%, #206262 50%, #54A1A1 82%, rgba(46,140,140,0) 100%);
  --board-hi: #28455C; --board: #0E2A41; --board-lo: #0B2031;
}
html[data-theme="clay"] {
  --navy-900: #2A1E1A; --navy: #3A2A24; --navy-700: #5A4C47;
  --navy-08: rgba(58,42,36,0.08); --navy-14: rgba(58,42,36,0.14);
  --slate-surface: #F5F0EA; --platinum: #E6E2DC; --ink: #352721;
  --brass: #B5652F; --brass-bright: #C28154; --brass-soft: rgba(181,101,47,0.35);
  --brass-line: linear-gradient(90deg, rgba(181,101,47,0) 0%, #C28154 18%, #7F4721 50%, #C28154 82%, rgba(181,101,47,0) 100%);
  --board-hi: #4E3F3A; --board: #332520; --board-lo: #261C18;
}
html[data-theme="moss"] {
  --navy-900: #192316; --navy: #23301F; --navy-700: #465143;
  --navy-08: rgba(35,48,31,0.08); --navy-14: rgba(35,48,31,0.14);
  --slate-surface: #F0F2EC; --platinum: #E2E3DE; --ink: #202C1D;
  --brass: #8C7A32; --brass-bright: #A19257; --brass-soft: rgba(140,122,50,0.35);
  --brass-line: linear-gradient(90deg, rgba(140,122,50,0) 0%, #A19257 18%, #625523 50%, #A19257 82%, rgba(140,122,50,0) 100%);
  --board-hi: #394535; --board: #1F2A1B; --board-lo: #172014;
}
html[data-theme="graphite"] {
  --navy-900: #1A1B1E; --navy: #242629; --navy-700: #47494B;
  --navy-08: rgba(36,38,41,0.08); --navy-14: rgba(36,38,41,0.14);
  --slate-surface: #F0F1F0; --platinum: #E2E3E2; --ink: #212326;
  --brass: #6E8B25; --brass-bright: #88A04C; --brass-soft: rgba(110,139,37,0.35);
  --brass-line: linear-gradient(90deg, rgba(110,139,37,0) 0%, #88A04C 18%, #4D611A 50%, #88A04C 82%, rgba(110,139,37,0) 100%);
  --board-hi: #3A3C3E; --board: #202124; --board-lo: #18191B;
}
html[data-theme="oxblood"] {
  --navy-900: #2A1117; --navy: #3A1720; --navy-700: #5A3C44;
  --navy-08: rgba(58,23,32,0.08); --navy-14: rgba(58,23,32,0.14);
  --slate-surface: #F5EFEF; --platinum: #E6E1E1; --ink: #35151D;
  --brass: #A8722C; --brass-bright: #B88B52; --brass-soft: rgba(168,114,44,0.35);
  --brass-line: linear-gradient(90deg, rgba(168,114,44,0) 0%, #B88B52 18%, #76501F 50%, #B88B52 82%, rgba(168,114,44,0) 100%);
  --board-hi: #4E2E36; --board: #33141C; --board-lo: #260F15;
}
html[data-theme="sand"] {
  --navy-900: #121625; --navy: #191E33; --navy-700: #3E4254;
  --navy-08: rgba(25,30,51,0.08); --navy-14: rgba(25,30,51,0.14);
  --slate-surface: #F3F1EC; --platinum: #E4E3DE; --ink: #171C2F;
  --brass: #9C8557; --brass-bright: #AE9B75; --brass-soft: rgba(156,133,87,0.35);
  --brass-line: linear-gradient(90deg, rgba(156,133,87,0) 0%, #AE9B75 18%, #6D5D3D 50%, #AE9B75 82%, rgba(156,133,87,0) 100%);
  --board-hi: #303447; --board: #161A2D; --board-lo: #101422;
}

/* ---------- career timeline rail ---------- */
/* The split grid changes shape with the layout the admin or member picked.
   .split-main always holds the projects; where the rail goes depends on which
   column it was rendered into. */
.split-main { min-width: 0; }
.split-work { min-width: 0; }

.split[data-timeline="rail-left"] { grid-template-columns: 250px minmax(0, 1fr) 288px; }
.split[data-timeline="rail-nested"] .split-main {
  display: grid; grid-template-columns: 242px minmax(0, 1fr); gap: 20px; align-items: start;
}

.career-rail { min-width: 0; }
.rail-head { margin-bottom: 12px; }
.rail-body { position: relative; }

.rail-scale { position: absolute; left: 0; top: 0; width: 46px; }
.rail-line {
  position: absolute; left: 39px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, var(--brass-soft) 0%, var(--navy-14) 18%, var(--navy-14) 82%, transparent 100%);
}
/* Year labels sit on the December mark, so a label always means "the top of
   this year" rather than an arbitrary point in it. */
.rail-year { position: absolute; left: 0; width: 46px; height: 0; }
.rail-year span {
  position: absolute; right: 13px; top: -8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted); background: var(--slate-surface); padding: 0 3px;
}
.rail-year::after {
  content: ""; position: absolute; right: 0; top: 0; width: 8px; height: 1px;
  background: var(--brass); opacity: 0.65;
}
/* The eleven intermediate month marks. Short and faint on purpose: they are a
   scale to read against, not decoration to look at. */
.rail-tick {
  position: absolute; right: 2px; top: 0; width: 4px; height: 1px;
  background: var(--navy-14);
}

.rail-items { position: relative; margin-left: 46px; }

.rail-slot { position: absolute; left: 0; width: 0; }
.rail-dot {
  position: absolute; left: -11px; top: -4px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--paper);
  border: 1.5px solid var(--navy-14); z-index: 2;
}
.rail-dot.current { background: var(--brass); border-color: var(--brass); }
/* The bar showing how long the role actually ran, drawn against the scale. */
.rail-span {
  position: absolute; left: -9px; top: 5px; bottom: 0; width: 3px;
  border-radius: 2px; background: var(--navy-14);
}
.rail-slot:first-child .rail-span { background: var(--brass-soft); }

.rail-item { position: absolute; left: 0; right: 0; }
.rail-connector {
  position: absolute; left: -11px; top: 12px; width: 11px; height: 1px;
  background: var(--navy-14);
}
.rail-card {
  background: var(--paper); border: 1px solid var(--navy-08);
  border-radius: var(--radius); padding: 8px 10px;
  box-shadow: var(--shadow-1);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.rail-card:hover { border-color: var(--navy-14); box-shadow: var(--shadow-2); }
.rail-item.current .rail-card { border-color: var(--brass-soft); }
.rail-title { font-weight: 600; font-size: 13px; color: var(--navy-900); line-height: 1.25; }
.rail-employer { font-size: 11.5px; color: var(--ink); margin-top: 1px; line-height: 1.3; }
.rail-dates {
  font-family: var(--mono); font-size: 9.5px; color: var(--muted);
  margin-top: 3px; display: flex; flex-wrap: wrap; gap: 5px; align-items: baseline;
}
.rail-len::before { content: "·"; margin-right: 6px; }
.rail-details {
  margin-top: 6px; padding: 2px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--navy-14); background: transparent;
  font-size: 11px; color: var(--navy); cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.rail-details:hover { background: var(--platinum); border-color: var(--navy-14); }
.rail-details span {
  font-family: var(--mono); font-size: 10px; color: var(--muted); margin-left: 3px;
}
.rail-react { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--navy-08); }
.rail-react .node-reactions {
  border-top: none; padding-top: 0; margin-top: 0; gap: 4px; flex-wrap: nowrap;
}
.rail-react .react-chip {
  padding: 2px 6px; font-size: 11px; gap: 3px; border-radius: 20px;
}
.rail-react .react-chip svg { width: 12px; height: 12px; }

/* Narrow sidebar: the aside shrinks to little more than the rail itself, which
   hands the difference back to the projects column. The rail styling below
   already suits a tight column, so only the track width changes here. */
.split[data-timeline="rail-aside"][data-aside="narrow"] { grid-template-columns: minmax(0, 1fr) 208px; }
.split[data-timeline="rail-aside"][data-aside="narrow"] aside { padding-left: 2px; }

/* In the sidebar the rail has less width, so the scale tightens and the cards
   drop their reaction row rather than wrapping into an unreadable column. */
.split[data-timeline="rail-aside"] .career-rail { margin-bottom: 14px; }
.split[data-timeline="rail-aside"] .rail-scale { width: 42px; }
.split[data-timeline="rail-aside"] .rail-line { left: 35px; }
.split[data-timeline="rail-aside"] .rail-year { width: 42px; }
.split[data-timeline="rail-aside"] .rail-year span { right: 11px; font-size: 10px; }
.split[data-timeline="rail-aside"] .rail-items { margin-left: 42px; }
.split[data-timeline="rail-aside"] .rail-title { font-size: 13px; }
.split[data-timeline="rail-aside"] .rail-react { display: none; }

/* On the profile page the rail is a panel of its own with no projects column
   beside it, so it gets the full width back and loses its own heading. */
.career-rail[data-layout="rail-profile"] .rail-head { display: none; }
.career-rail[data-layout="rail-profile"] .rail-card { max-width: 460px; }

/* A control that has no effect under the current selection stays visible but
   reads as inactive, so it is obvious what turns it back on. */
.aside-mode { margin-top: 16px; transition: opacity var(--t-med) var(--ease); }
.aside-mode.inactive { opacity: 0.45; }
.aside-mode.inactive .share-chip { pointer-events: none; }

/* ---------- modals ---------- */
body.modal-open { overflow: hidden; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 23, 48, 0.52);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: modal-in var(--t-med) var(--ease);
}
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 26px 28px 24px; width: 100%; max-width: 560px;
  max-height: calc(100vh - 48px); overflow-y: auto;
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: transparent;
  font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal-close:hover { background: var(--platinum); color: var(--navy); }

.duties-title { font-size: 22px; margin: 6px 0 2px; color: var(--navy-900); }
.duties-employer { font-size: 14px; color: var(--ink); }
.duties-summary { font-size: 14.5px; line-height: 1.65; color: var(--ink); margin: 14px 0 0; }
.duties-head {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  margin: 20px 0 10px; padding-top: 14px; border-top: 1px solid var(--navy-08);
}
.duties-list { margin: 0; padding-left: 18px; }
.duties-list li { font-size: 14.5px; line-height: 1.6; color: var(--ink); margin-bottom: 8px; }

/* ---------- share sheet ---------- */
.share-modal { max-width: 620px; }
.share-title { font-size: 22px; margin: 6px 0 16px; color: var(--navy-900); }
.share-stage {
  background: var(--platinum); border-radius: var(--radius);
  padding: 16px; display: flex; align-items: center; justify-content: center;
  min-height: 260px;
}
.share-preview { display: flex; align-items: center; justify-content: center; width: 100%; }
.share-preview img, .share-preview canvas {
  max-width: 100%; max-height: 340px; width: auto; height: auto;
  border-radius: 6px; box-shadow: var(--shadow-2); display: block;
}
.share-spinner { font-size: 13px; color: var(--muted); font-family: var(--mono); }

.share-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.share-group { min-width: 0; }
.share-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.share-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.share-chip {
  padding: 6px 11px; border-radius: var(--radius-sm);
  border: 1px solid var(--navy-14); background: var(--paper);
  font-size: 12.5px; color: var(--ink); cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.share-chip:hover { background: var(--platinum); }
.share-chip.on { background: var(--navy); border-color: var(--navy); color: var(--chalk); }

.share-networks {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 6px; margin-bottom: 18px;
}
.share-net {
  display: block; text-align: center; text-decoration: none;
  padding: 9px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--navy-08); background: var(--paper);
  font-size: 13px; color: var(--navy);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.share-net:hover { background: var(--platinum); border-color: var(--navy-14); }

.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; line-height: 1.55; }

.slate-share-btn {
  margin-top: 10px; padding: 7px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--navy-14); background: var(--paper);
  font-size: 13px; color: var(--navy); cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.slate-share-btn:hover { background: var(--platinum); border-color: var(--brass-soft); }
.slate-social { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- layout & card pickers ---------- */
.layout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); gap: 8px; }
.layout-opt {
  text-align: left; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--navy-08); background: var(--paper); cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.layout-opt:hover { border-color: var(--navy-14); background: var(--platinum); }
.layout-opt.on { border-color: var(--brass); background: rgba(168, 132, 44, 0.07); }
.layout-name { font-size: 14px; font-weight: 600; color: var(--navy-900); }
.layout-hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* ---------- studio: career editor ---------- */
.pos-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--navy-08);
}
.pos-row:last-child { border-bottom: none; }
.pos-row-main { min-width: 0; }
.pos-row-title { font-size: 15px; font-weight: 600; color: var(--navy-900); }
.pos-row-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.pos-now {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--brass);
  border: 1px solid var(--brass-soft); border-radius: 20px;
  padding: 1px 7px; margin-left: 8px; vertical-align: 1px;
}
.pos-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.date-pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.date-pair select:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- timeline responsive ---------- */
/* Below the two-column breakpoint the rail stops being a sidebar and becomes a
   full-width band above the projects, keeping the scale readable on a phone. */
@media (max-width: 940px) {
  .split[data-timeline="rail-left"] { grid-template-columns: 1fr; }
  .split[data-timeline="rail-nested"] .split-main { grid-template-columns: 1fr; }
  .career-rail { margin-bottom: 22px; }
  .split[data-timeline="rail-aside"] .rail-react { display: block; }
}
@media (max-width: 620px) {
  .share-controls { grid-template-columns: 1fr; }
  .modal { padding: 22px 18px 20px; }
  .pos-row { flex-direction: column; align-items: flex-start; }
  .rail-scale { width: 44px; }
  .rail-line { left: 37px; }
  .rail-year { width: 44px; }
  .rail-year span { right: 11px; font-size: 10px; }
  .rail-items { margin-left: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop { animation: none; }
}
