/* ============ TUBA PORTFOLIO — SHARED STYLES ============ */
:root {
  --page:        #f9f9f7;
  --surface:     #fcfcfb;
  --ink:         #0b0b0b;
  --ink-2:       #52514e;
  --muted:       #898781;
  --hairline:    #e1e0d9;
  --baseline:    #c3c2b7;
  --ring:        rgba(11,11,11,0.10);
  --q-science:     #2a78d6;
  --q-engineering: #1baf7a;
  --q-design:      #eda100;
  --q-art:         #008300;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page:      #0d0d0d;
    --surface:   #1a1a19;
    --ink:       #ffffff;
    --ink-2:     #c3c2b7;
    --muted:     #898781;
    --hairline:  #2c2c2a;
    --baseline:  #383835;
    --ring:      rgba(255,255,255,0.10);
    --q-science:     #3987e5;
    --q-engineering: #199e70;
    --q-design:      #c98500;
    --q-art:         #008300;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }

/* ---- header / nav ---- */
header {
  max-width: 1080px; margin: 0 auto; padding: 40px 24px 8px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.brand h1 { font-size: 26px; letter-spacing: 0.5px; font-weight: 700; }
.brand p  { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
nav { display: flex; gap: 4px; }
nav a {
  text-decoration: none; font-size: 14px; color: var(--ink-2);
  padding: 6px 14px; border-radius: 999px; border: 1px solid transparent;
}
nav a:hover { border-color: var(--hairline); }
nav a.active { color: var(--ink); border-color: var(--baseline); font-weight: 600; }

main { max-width: 1080px; margin: 0 auto; padding: 12px 24px 80px; }
.section-note { color: var(--ink-2); font-size: 14px; max-width: 640px; margin: 6px 0 24px; }
.section-note a { color: var(--ink-2); }

/* ---- compass ---- */
.compass-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
@media (max-width: 880px) { .compass-wrap { grid-template-columns: 1fr; } }

.compass-card, .panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
}
.compass-card { padding: 8px; }
.compass-card svg { display: block; width: 100%; height: auto; }

.panel { padding: 20px; position: sticky; top: 20px; min-height: 220px; }
.panel .eyebrow { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.panel h3 { font-size: 17px; margin: 6px 0 2px; }
.panel .meta { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.panel .blurb { font-size: 14px; color: var(--ink-2); }
.panel .blurb a { color: var(--ink); }
.panel.empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; text-align: center; }

/* svg text + marks */
.q-label { font-size: 19px; font-weight: 700; letter-spacing: 2.5px; fill: var(--ink); }
.q-output { font-size: 12px; fill: var(--muted); letter-spacing: 0.4px; }
.flow-label { font-size: 10.5px; fill: var(--muted); letter-spacing: 1px; }
.center-name { font-size: 14px; font-weight: 700; fill: var(--ink); }
.center-sub { font-size: 10.5px; fill: var(--muted); }
.dot { stroke: var(--surface); stroke-width: 2; cursor: pointer; transition: r 0.12s ease; }
.dot.dim { opacity: 0.25; }
.dot-hit { fill: transparent; cursor: pointer; }

/* quadrant lists under compass */
.quad-lists { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 880px) { .quad-lists { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .quad-lists { grid-template-columns: 1fr; } }
.quad-col h4 {
  font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 2px solid var(--qc, var(--baseline));
  display: flex; align-items: center; gap: 8px;
}
.quad-col h4 .swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--qc); box-shadow: 0 0 0 1px var(--ring); }
.quad-col ul { list-style: none; margin-top: 8px; }
.quad-col li {
  font-size: 13.5px; color: var(--ink-2); padding: 6px 8px; border-radius: 8px; cursor: pointer;
}
.quad-col li:hover, .quad-col li.hot { background: var(--page); color: var(--ink); }

/* ---- network ---- */
.controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.toggle { display: inline-flex; border: 1px solid var(--baseline); border-radius: 999px; overflow: hidden; }
.toggle button {
  appearance: none; border: 0; background: transparent; color: var(--ink-2);
  font: inherit; font-size: 14px; padding: 8px 18px; cursor: pointer;
}
.toggle button.active { background: var(--ink); color: var(--page); font-weight: 600; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1px var(--ring); }

.graph-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; }
.graph-card svg { display: block; width: 100%; height: 640px; touch-action: none; }
.edge { stroke: var(--hairline); stroke-width: 1.2; }
.node circle { stroke: var(--surface); stroke-width: 2; cursor: grab; }
.node.center circle { fill: var(--ink); }
.node text { font-size: 12px; fill: var(--ink); pointer-events: none; }
.node .sub { font-size: 10px; fill: var(--muted); }
.node.center text { font-weight: 700; font-size: 13px; }

/* shared tooltip */
#tip {
  position: fixed; z-index: 10; max-width: 280px; pointer-events: none;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--baseline); border-radius: 10px;
  padding: 10px 12px; font-size: 12.5px; box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  opacity: 0; transition: opacity 0.1s ease;
}
#tip strong { display: block; font-size: 13px; }
#tip .t-meta { color: var(--ink-2); }

footer { max-width: 1080px; margin: 0 auto; padding: 0 24px 40px; color: var(--muted); font-size: 12.5px; }

/* ---- profile rows (experience / certs / volunteering) ---- */
.page-h2 {
  font-size: 13px; font-weight: 700; color: var(--ink);
  text-transform: uppercase; letter-spacing: 1.8px;
  margin: 40px 0 4px; padding-bottom: 8px;
  border-bottom: 2px solid var(--baseline);
}
.rows { }
.row-item {
  display: flex; gap: 20px; padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.row-item .when { flex: none; width: 130px; color: var(--muted); font-size: 12.5px; padding-top: 2px; }
.row-item .what { min-width: 0; }
.row-item .what strong { font-size: 14.5px; }
.row-item .what .org { color: var(--ink-2); font-size: 13px; margin-left: 6px; }
.row-item .note { color: var(--ink-2); font-size: 13px; margin-top: 3px; }
@media (max-width: 560px) {
  .row-item { flex-direction: column; gap: 2px; }
  .row-item .when { width: auto; }
}

/* ============ AI SPRINT PAGE ============ */
:root {
  --lantern: #e8603c;
  --lantern-glow: #ffb340;
  --sold: #d43a2f;
  --wash: rgba(11,11,11,0.04);
}
@media (prefers-color-scheme: dark) {
  :root {
    --lantern: #f0876b;
    --lantern-glow: #f2b24e;
    --sold: #e66751;
    --wash: rgba(255,255,255,0.05);
  }
}

/* ---- lantern progress ---- */
.lantern-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 22px 24px 14px; margin-bottom: 8px;
}
.lantern-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.lantern-count { font-size: 16px; font-weight: 700; }
.lantern-sub { font-size: 12.5px; color: var(--muted); }
.lanterns { display: flex; gap: 6px; flex-wrap: wrap; }
.lantern {
  appearance: none; background: none; border: none; padding: 4px; cursor: pointer;
  border-radius: 10px; width: 52px;
}
.lantern svg { width: 44px; height: 64px; display: block; }
.lantern .ln-body { fill: var(--wash); stroke: var(--baseline); stroke-width: 1.5; }
.lantern .ln-cap { fill: var(--baseline); }
.lantern .ln-ridge { stroke: var(--baseline); stroke-width: 1; opacity: 0.7; }
.lantern .ln-txt { font-size: 15px; font-weight: 700; fill: var(--muted); }
.lantern.lit .ln-body { fill: var(--lantern); stroke: var(--lantern); filter: drop-shadow(0 0 7px var(--lantern-glow)); }
.lantern.lit .ln-cap { fill: var(--ink); }
.lantern.lit .ln-ridge { stroke: rgba(255,255,255,0.55); }
.lantern.lit .ln-txt { fill: #fff; }
.lantern:hover { background: var(--page); }
.lantern.sel { background: var(--page); outline: 1px solid var(--baseline); }
.lantern-msg { font-size: 13.5px; color: var(--ink-2); margin-top: 12px; min-height: 1.5em; }
.lantern-msg a { color: var(--ink); }

/* ---- goal flip cards ---- */
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; perspective: 1200px; }
@media (max-width: 720px) { .goals { grid-template-columns: 1fr; } }
.goal-card {
  appearance: none; background: none; border: none; padding: 0; cursor: pointer;
  min-height: 190px; text-align: left; font: inherit; color: inherit;
}
.goal-inner {
  position: relative; display: block; width: 100%; height: 100%; min-height: 190px;
  transform-style: preserve-3d; transition: transform 0.55s cubic-bezier(.4,1.4,.6,1);
}
.goal-card.flipped .goal-inner { transform: rotateY(180deg); }
.goal-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
}
.goal-front { justify-content: center; align-items: flex-start; font-size: 17px; font-weight: 700; }
.goal-icon { font-size: 26px; color: var(--q-engineering); }
.goal-hint { font-size: 11px; font-weight: 400; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.goal-back {
  transform: rotateY(180deg); font-size: 13.5px; color: var(--ink-2); line-height: 1.55;
  justify-content: center; border-color: var(--baseline);
}

/* ---- process loop ---- */
.loop-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 14px 10px 4px; overflow-x: auto;
}
.loop-card svg { display: block; min-width: 620px; width: 100%; height: auto; }

/* ---- case 01 story ---- */
.case-story { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 24px; }
@media (max-width: 720px) { .case-story { grid-template-columns: 1fr; } }
.story-block {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 18px;
}
.story-block p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.story-k { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.story-block.insight { border-color: var(--q-design); }
.story-block.insight .story-k { color: var(--q-design); }

/* ---- izakaya game ---- */
.izakaya {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 22px; margin-top: 8px;
}
.iz-header { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.iz-header strong { font-size: 15.5px; display: block; }
.iz-sub { font-size: 13px; color: var(--ink-2); }
.noren {
  flex: none; width: 44px; height: 44px; border-radius: 10px;
  background: var(--lantern); color: #fff; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.iz-board { display: grid; grid-template-columns: 1fr 1fr 220px; gap: 16px; align-items: start; }
@media (max-width: 880px) { .iz-board { grid-template-columns: 1fr 1fr; } .tray { grid-column: 1 / -1; } }
@media (max-width: 560px) { .iz-board { grid-template-columns: 1fr; } }

.menu-col {
  border: 1px solid var(--baseline); border-radius: 12px; padding: 14px 14px 10px;
  background: var(--page); position: relative;
}
.static-col {
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,0.35) 42%, transparent 48%),
    var(--page);
}
@media (prefers-color-scheme: dark) {
  .static-col {
    background:
      linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,0.06) 42%, transparent 48%),
      var(--page);
  }
}
.menu-col h5 {
  font-size: 12px; letter-spacing: 1px; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 600;
}
.tag {
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  padding: 2px 8px; border-radius: 999px;
}
.tag-static { background: var(--wash); color: var(--muted); border: 1px solid var(--baseline); }
.tag-dyn { background: var(--lantern); color: #fff; }
.menu-col ul { list-style: none; }
.menu-item {
  display: flex; align-items: baseline; gap: 8px;
  padding: 9px 6px; border-bottom: 1px dashed var(--hairline);
  position: relative; font-size: 15px;
}
.menu-item:last-child { border-bottom: none; }
.mi-jp { font-weight: 700; letter-spacing: 0.5px; }
.mi-en { font-size: 11.5px; color: var(--muted); }
.mi-price { margin-left: auto; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dyn-item { touch-action: none; }
.menu-note { font-size: 11.5px; color: var(--muted); margin-top: 10px; }

/* stickers */
.tray h5 { font-size: 12px; letter-spacing: 1px; color: var(--ink-2); margin-bottom: 10px; font-weight: 600; }
.tray-stickers { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.sticker {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 92px; height: 52px; border-radius: 10px; cursor: grab;
  user-select: none; -webkit-user-select: none; touch-action: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  border: 2px dashed rgba(255,255,255,0.6);
}
.sticker b { font-size: 14px; line-height: 1.2; }
.sticker i { font-style: normal; font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; opacity: 0.85; }
.st-sold { background: var(--sold); color: #fff; }
.st-notoday { background: var(--ink); color: var(--page); }
.st-photo { background: var(--q-science); color: #fff; }
.st-photo b { font-size: 20px; }
.sticker.dragging {
  position: fixed; z-index: 99; pointer-events: none;
  transform: translate(-50%, -50%) rotate(-3deg) scale(1.05);
}
.sticker.applied {
  appearance: none; font: inherit; position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%) rotate(var(--rot, 0deg));
  width: 84px; height: 40px; cursor: pointer; z-index: 2;
}
.sticker.applied:hover { filter: brightness(1.1); }
.dyn-item:has(.sticker.applied) .mi-jp,
.dyn-item:has(.sticker.applied) .mi-en,
.dyn-item:has(.sticker.applied) .mi-price { opacity: 0.35; }

.day-btn {
  width: 100%; font: inherit; font-size: 13.5px; font-weight: 600;
  background: var(--ink); color: var(--page); border: none; border-radius: 10px;
  padding: 10px 12px; cursor: pointer; margin-bottom: 8px;
}
.day-btn:hover { opacity: 0.88; }
.day-btn.ghost-btn { background: transparent; color: var(--ink-2); border: 1px solid var(--baseline); }
.old-world { margin-top: 4px; }
.old-world p { font-size: 12.5px; color: var(--ink-2); background: var(--page); border: 1px dashed var(--baseline); border-radius: 10px; padding: 10px 12px; }
.iz-caption { font-size: 13.5px; color: var(--ink-2); margin-top: 14px; min-height: 1.5em; }

/* ---- other cases grid ---- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
@media (max-width: 720px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .case-grid { grid-template-columns: 1fr; } }
.case-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 2px;
  font-size: 13px; color: var(--ink-2); text-decoration: none;
}
.case-card strong { color: var(--ink); font-size: 14px; }
.case-card .cc-n { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); }
.case-card.soon { border-style: dashed; }
.case-card.open:hover { border-color: var(--q-engineering); }
.case-card.open .cc-n { color: var(--q-engineering); }

/* ============ CASE PAGES (one page per sprint) ============ */
.case-hero { display: flex; gap: 14px; align-items: center; margin: 8px 0 14px; }
.case-eyebrow {
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.case-title { font-size: 22px; line-height: 1.25; }

.case-pager {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 2px 0 20px; font-size: 12.5px;
}
.case-pager.foot { margin-top: 36px; }
.pg-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pg-chip {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--hairline); border-radius: 999px; padding: 4px 11px;
  text-decoration: none; color: var(--ink-2); font-size: 12.5px;
}
.pg-chip b { letter-spacing: 1px; font-size: 11.5px; }
.pg-chip:hover { border-color: var(--baseline); color: var(--ink); }
.pg-chip.current { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.pg-end { color: var(--muted); text-decoration: none; }
.pg-end:hover { color: var(--ink); }
.pg-arrows { margin-left: auto; display: inline-flex; gap: 16px; }

.ship-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ship-chip {
  font-size: 12.5px; color: var(--ink-2);
  border: 1px solid var(--hairline); background: var(--surface);
  border-radius: 999px; padding: 5px 12px;
}
.case-links { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.case-links a { color: var(--ink); }
.lk-private { color: var(--muted); }

/* shared demo shell (same skin as the izakaya card) */
.demo-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 22px; margin-top: 8px;
}
.demo-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.demo-head strong { font-size: 15.5px; display: block; }
.demo-sub { font-size: 13px; color: var(--ink-2); }
.demo-caption { font-size: 13.5px; color: var(--ink-2); margin-top: 14px; min-height: 1.5em; }
.mini-btn {
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--baseline); background: var(--surface); color: var(--ink);
  border-radius: 8px; padding: 6px 12px;
}
.mini-btn:hover { border-color: var(--ink); }
.mini-btn.primary { background: var(--ink); color: var(--page); border-color: var(--ink); }
.mini-btn.primary:hover { opacity: 0.88; }
.mini-btn:disabled { opacity: 0.4; cursor: default; }
.drag-ghost {
  position: fixed; z-index: 99; pointer-events: none;
  transform: translate(-50%, -50%) rotate(-2deg) scale(1.04);
}

/* ---- case 02 · PropertyPulse ---- */
.pp-board { display: grid; grid-template-columns: 265px 1fr; gap: 16px; align-items: start; }
@media (max-width: 820px) { .pp-board { grid-template-columns: 1fr; } }
.pp-tray h5, .pp-dash h5 {
  font-size: 12px; letter-spacing: 1px; color: var(--ink-2);
  margin-bottom: 10px; font-weight: 600;
}
.pp-report {
  border: 1px solid var(--baseline); background: var(--page); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 8px; cursor: grab;
  display: flex; gap: 10px; align-items: center;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.pp-report .emo { font-size: 20px; }
.pp-report .t { min-width: 0; }
.pp-report .t b { font-size: 13px; display: block; }
.pp-report .t span { font-size: 11px; color: var(--muted); }
.pp-report .fmt {
  margin-left: auto; flex: none; font-size: 9.5px; font-weight: 700; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 999px; color: #fff;
}
.fmt-csv { background: var(--q-science); }
.fmt-pdf { background: var(--sold); }
.fmt-xls { background: var(--q-engineering); }
.pp-report.done { opacity: 0.45; cursor: default; border-style: dashed; }
.pp-drop {
  border: 2px dashed var(--baseline); border-radius: 12px; padding: 20px 12px;
  text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 10px;
  transition: border-color .15s, color .15s, background .15s;
}
.pp-drop.over { border-color: var(--q-engineering); color: var(--q-engineering); background: var(--wash); }
.pp-drop.busy { border-style: solid; }
.pp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 560px) { .pp-kpis { grid-template-columns: repeat(2, 1fr); } }
.pp-kpi { background: var(--page); border: 1px solid var(--hairline); border-radius: 12px; padding: 10px 12px; }
.pp-kpi .k { display: block; font-size: 10px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pp-kpi .v { display: block; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pp-kpi .d { font-size: 11px; color: var(--q-engineering); min-height: 1.3em; display: block; }
.pp-kpi .d.down { color: var(--sold); }
.pp-chart {
  margin-top: 12px; background: var(--page); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 10px 10px 4px;
}
.pp-chart svg { display: block; width: 100%; height: auto; }
.pp-legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 4px 4px 8px; }
.pp-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); }
.pp-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.pp-foot { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.pp-csv {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px;
  background: var(--page); border: 1px dashed var(--baseline); border-radius: 10px;
  padding: 10px 12px; overflow-x: auto; white-space: pre; margin-top: 10px; color: var(--ink-2);
}

/* ---- case 03 · Olo ---- */
.olo-board { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
@media (max-width: 820px) { .olo-board { grid-template-columns: 1fr; } }
.slack { background: var(--page); border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; }
.slack-head { padding: 9px 14px; border-bottom: 1px solid var(--hairline); font-size: 12.5px; font-weight: 700; }
.slack-head span { color: var(--muted); font-weight: 400; margin-left: 8px; }
.slack-msgs { padding: 14px; display: flex; flex-direction: column; gap: 13px; min-height: 230px; }
.smsg { display: flex; gap: 10px; }
.smsg .av {
  flex: none; width: 32px; height: 32px; border-radius: 8px; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700;
}
.av-joe { background: var(--q-science); }
.av-tuba { background: var(--lantern); }
.av-olo { background: var(--q-engineering); }
.smsg .who { font-size: 12.5px; font-weight: 700; }
.smsg .when { font-size: 10.5px; color: var(--muted); margin-left: 6px; font-weight: 400; }
.smsg p { font-size: 13px; color: var(--ink-2); margin-top: 1px; }
.typing i { animation: olo-blink 1.2s infinite; font-style: normal; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes olo-blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.olo-draft {
  margin: 0 14px 14px; border: 1.5px dashed var(--q-engineering); border-radius: 12px;
  padding: 12px 14px; background: var(--wash);
}
.olo-draft .dk {
  font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--q-engineering); font-weight: 700; display: block; margin-bottom: 4px;
}
.olo-draft p[contenteditable] { font-size: 13px; color: var(--ink); outline: none; padding: 2px; border-radius: 6px; }
.olo-draft p[contenteditable]:focus { background: var(--surface); }
.olo-draft .dbtns { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.olo-draft .dnote { font-size: 11px; color: var(--muted); margin-left: auto; }
.olo-next { margin-top: 14px; }
.outline-repo { background: var(--page); border: 1px solid var(--hairline); border-radius: 12px; padding: 14px; }
.outline-repo h6 {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
  color: var(--ink); margin-bottom: 2px; font-weight: 600;
}
.outline-repo .or-sub { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.ofile {
  display: flex; align-items: center; gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
  padding: 6px 8px; border-radius: 8px; color: var(--ink-2);
  transition: background .2s, outline-color .2s;
}
.ofile .badge {
  margin-left: auto; background: var(--q-design); color: #fff; border-radius: 999px;
  font-size: 10px; padding: 1px 7px; font-weight: 700;
}
.ofile .badge.ok { background: var(--q-engineering); }
.ofile.flash { background: var(--wash); outline: 1px solid var(--q-design); }
.ofile.flash-ok { background: var(--wash); outline: 1px solid var(--q-engineering); }
.freq { margin-top: 14px; }
.freq .fq-k { font-size: 11px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.freq-bars { display: flex; gap: 3px; align-items: flex-end; height: 36px; margin-top: 6px; }
.freq-bars i {
  width: 12px; background: var(--baseline); border-radius: 3px 3px 0 0; display: inline-block;
  transition: height .3s ease, background .3s;
}
.freq-bars i.hot { background: var(--q-engineering); }
.freq .fq-note { font-size: 11px; color: var(--muted); margin-top: 5px; }

/* ---- case 04 · RentPulse ---- */
.rp-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rp-controls .rp-th { font-size: 12.5px; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; }
.rp-clock { font-size: 12.5px; color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.rp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
@media (max-width: 820px) { .rp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .rp-grid { grid-template-columns: repeat(2, 1fr); } }
.rp-unit {
  font: inherit; color: inherit; text-align: left; appearance: none;
  background: var(--page); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 10px 12px; cursor: default; transition: opacity .3s, outline-color .15s;
}
.rp-unit .nm { font-size: 12.5px; font-weight: 700; display: block; }
.rp-unit .rent { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rp-unit .fl { margin-top: 6px; display: flex; gap: 4px; flex-wrap: wrap; min-height: 18px; }
.flag { font-size: 9.5px; font-weight: 700; border-radius: 999px; padding: 2px 7px; color: #fff; }
.flag-renew { background: var(--q-science); }
.flag-gap { background: var(--sold); }
.flag-star { background: var(--q-design); }
.rp-unit.scan { outline: 2px solid var(--q-engineering); }
.rp-unit.dim { opacity: 0.35; }
.rp-unit.alert { cursor: pointer; border-color: var(--baseline); }
.rp-unit.alert:hover { outline: 1px solid var(--baseline); }
.rp-unit.sel { outline: 2px solid var(--ink); }
.rp-detail {
  margin-top: 14px; border: 1px solid var(--baseline); border-radius: 12px;
  padding: 16px; background: var(--page);
}
.rp-detail h6 { font-size: 13.5px; margin-bottom: 2px; }
.rp-detail .rd-sub { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.rp-range svg { display: block; width: 100%; height: auto; }
.rp-src { font-size: 11px; color: var(--muted); margin-top: 4px; }
.rp-src a { color: var(--ink-2); }
.rp-check { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
@media (max-width: 620px) { .rp-check { grid-template-columns: 1fr; } }
.rp-ck {
  display: flex; gap: 9px; align-items: center; font: inherit; font-size: 12.5px; text-align: left;
  border: 1px solid var(--hairline); border-radius: 10px; padding: 8px 10px;
  cursor: pointer; background: var(--surface); color: var(--ink-2);
}
.rp-ck .bx {
  flex: none; width: 16px; height: 16px; border-radius: 5px;
  border: 1.5px solid var(--baseline); display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff;
}
.rp-ck.ok { border-color: var(--q-engineering); color: var(--ink); }
.rp-ck.ok .bx { background: var(--q-engineering); border-color: var(--q-engineering); }
.rp-actions { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.rp-letter {
  margin-top: 12px; background: var(--surface); border: 1px solid var(--baseline);
  border-radius: 4px; padding: 18px 20px; font-size: 12.5px; max-width: 440px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
.rp-letter h6 { text-align: center; font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }
.rp-letter p { color: var(--ink-2); margin-top: 6px; }
.rp-letter .ok-line { color: var(--q-engineering); font-weight: 600; margin-top: 10px; font-size: 12px; }

/* ---- case 05 · LP Scout ---- */
.lp-board { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .lp-board { grid-template-columns: 1fr; } }
.disc { background: #2b2d31; color: #dbdee1; border-radius: 12px; overflow: hidden; border: 1px solid var(--hairline); }
.disc-head { background: #1e1f22; padding: 9px 14px; font-size: 12.5px; font-weight: 700; color: #fff; }
.disc-head span { color: #949ba4; font-weight: 400; margin-left: 8px; }
.disc-msgs { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; font-size: 13px; }
.dmsg .who { font-weight: 700; color: #f2c14e; font-size: 12.5px; }
.dmsg .who.bot { color: #7fb2f0; }
.dmsg .bot-tag { background: #5865f2; color: #fff; font-size: 9px; font-weight: 700; border-radius: 4px; padding: 1px 4px; margin-left: 5px; vertical-align: 1px; }
.dmsg .when { font-size: 10px; color: #80848e; margin-left: 6px; }
.dmsg p { color: #dbdee1; font-size: 12.5px; }
.dembed { border-left: 3px solid #5865f2; background: #232428; padding: 8px 10px; border-radius: 4px; font-size: 12px; margin-top: 4px; }
.dembed b { color: #fff; }
.dembed .fields { color: #b5bac1; margin-top: 3px; line-height: 1.6; }
.lp-cmd { background: #383a40; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.lp-cmd .cmd-title { font-size: 12px; color: #b5bac1; }
.lp-cmd .cmd-title b { color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.lp-cmd label { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: #949ba4; font-weight: 700; }
.lp-cmd select {
  font: inherit; font-size: 12.5px; background: #1e1f22; color: #dbdee1;
  border: 1px solid #4e5058; border-radius: 6px; padding: 7px 8px; width: 100%;
}
.lp-go {
  background: #5865f2; color: #fff; border: none; border-radius: 6px; padding: 9px 10px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; margin-top: 2px;
}
.lp-go:hover { background: #4752c4; }
.lp-open {
  width: 100%; background: #1e1f22; color: #dbdee1; border: 1px solid #4e5058; border-radius: 6px;
  padding: 9px 10px; font: inherit; font-size: 13px; cursor: pointer; text-align: left;
}
.lp-open b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.lp-clock { font-variant-numeric: tabular-nums; color: #f2c14e; font-weight: 700; }
.lp-dash h5 { font-size: 12px; letter-spacing: 1px; color: var(--ink-2); margin-bottom: 10px; font-weight: 600; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.lp-table th {
  text-align: left; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); padding: 6px 8px; border-bottom: 2px solid var(--baseline);
}
.lp-table td { padding: 7px 8px; border-bottom: 1px solid var(--hairline); color: var(--ink-2); }
.lp-table td:first-child { color: var(--ink); font-weight: 600; }
.lp-table .empty-row td { color: var(--muted); font-style: italic; }
.lp-st {
  font-size: 10px; font-weight: 700; border-radius: 999px; padding: 2px 8px;
  background: var(--wash); border: 1px solid var(--baseline); color: var(--ink-2);
  cursor: pointer; white-space: nowrap;
}
.lp-st.became { background: var(--q-design); color: #fff; border-color: transparent; cursor: default; }
.lp-graph { margin-top: 14px; background: var(--page); border: 1px solid var(--hairline); border-radius: 12px; }
.lp-graph svg { display: block; width: 100%; height: auto; }
.lpn circle { stroke: var(--surface); stroke-width: 2; }
.lpn text { font-size: 11px; fill: var(--ink); }
.lpn .sub { font-size: 9px; fill: var(--muted); }
.lp-edge { stroke: var(--baseline); stroke-width: 1.2; }

a.lantern { display: inline-block; text-decoration: none; color: inherit; }

/* ---- Sprint 03 · protocol v2: flow, rulebook flip cards, huddle ---- */
.olo-flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 16px 0 8px; }
.flow-step {
  flex: 1 1 150px; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 14px 12px; text-align: center;
}
.flow-step .fe { font-size: 26px; display: block; }
.flow-step b { display: block; font-size: 13.5px; margin: 6px 0 2px; }
.flow-step span:not(.fe) { font-size: 12px; color: var(--ink-2); }
.flow-arrow { align-self: center; color: var(--muted); font-size: 18px; flex: 0 0 auto; }
@media (max-width: 700px) { .flow-arrow { display: none; } }

.flip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 14px; }
.flip { perspective: 900px; cursor: pointer; height: 156px; }
.flip:focus-visible { outline: 2px solid var(--baseline); outline-offset: 3px; border-radius: 14px; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .5s; transform-style: preserve-3d; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 14px; border: 1px solid var(--hairline); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; padding: 14px; text-align: center;
}
.flip-face.front .fe { font-size: 30px; }
.flip-face.front b { font-size: 14px; line-height: 1.25; }
.flip-face.front i { font-size: 10.5px; color: var(--muted); font-style: normal; letter-spacing: 0.6px; text-transform: uppercase; }
.flip-face.back { transform: rotateY(180deg); background: var(--ink); color: var(--page); font-size: 12.5px; line-height: 1.45; }

.huddle { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 16px; }
.huddle-head { font-size: 13.5px; margin-bottom: 12px; }
.huddle-head .when { color: var(--muted); font-size: 12px; margin-left: 6px; }
.huddle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hud-col { background: var(--page); border: 1px solid var(--hairline); border-radius: 12px; padding: 10px; }
.hud-col h5 { font-size: 11.5px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hud-col .chip {
  display: block; font-size: 12.5px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 8px; padding: 5px 8px; margin-top: 6px;
}
.huddle-foot { font-size: 12.5px; color: var(--ink-2); margin-top: 12px; }

/* ---- Sprint 03 · philosophy, key decisions, roadmap ---- */
.olo-flow.creed { margin-top: 14px; }
.kd-list { display: grid; gap: 10px; margin-top: 14px; }
.kd {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 14px; padding: 12px 14px;
}
.kd-n {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--page);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; margin-top: 1px;
}
.kd b { font-size: 14px; }
.kd p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.huddle.roadmap .hud-col h5 { color: var(--ink); font-size: 13px; }

/* ---- Sprint 03 · two-agent system diagram ---- */
.diagram-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 12px 12px 4px; }
.diagram-card svg { display: block; width: 100%; height: auto; }
.dg-box { fill: var(--page); stroke: var(--hairline); }
.dg-box.hot { stroke: var(--baseline); }
.dg-box.repo { fill: var(--surface); stroke: var(--baseline); }
.dg-t { font-size: 14px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.dg-s { font-size: 11.5px; fill: var(--muted); text-anchor: middle; }
.dg-file { font-size: 12.5px; fill: var(--ink-2); }
.dg-line { stroke: var(--baseline); stroke-width: 1.4; fill: none; }
.dg-line.dash { stroke-dasharray: 5 5; }
.dg-head { fill: var(--baseline); }
.dg-badge circle { fill: var(--ink); }
.dg-badge text { font-size: 11px; font-weight: 700; fill: var(--page); text-anchor: middle; }
.dg-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 6px 8px; font-size: 12.5px; color: var(--ink-2); }
.dg-legend b {
  display: inline-flex; width: 17px; height: 17px; border-radius: 50%;
  background: var(--ink); color: var(--page); font-size: 11px;
  align-items: center; justify-content: center; margin-right: 5px;
}
