/* scene.css */
:root {
  --ink: #18181A; --ink-2: #6B6B70; --ink-3: #9A9A9F; --line: #EBEBEA;
  --bg: #F6F5F2; --paper: #fff; --coral: #FF5F3D; --coral-soft: #FFE9E3;
  --green: #1E7A52; --green-soft: #E3F5EC;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --out: cubic-bezier(.32, .72, 0, 1);   /* enters */
  --move: cubic-bezier(.65, 0, .35, 1);  /* things already on screen */
  /* names the mini previews use */
  --k-ink: var(--ink); --k-ink-2: var(--ink-2); --k-ink-3: var(--ink-3); --k-line: var(--line); --k-sans: var(--sans); --k-mono: var(--mono);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); }

/* Top bar */
.sc-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 20px; background: rgb(246 245 242 / .88); backdrop-filter: blur(8px); font-size: 14px; }
.sc-brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; letter-spacing: -0.01em; color: inherit; text-decoration: none; }
.sc-title { color: var(--ink-2); }
.sc-x { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--ink-2); text-decoration: none; transition: background-color 150ms ease; }
@media (hover: hover) { .sc-x:hover { background: rgb(24 24 26 / .06); } }
@media (max-width: 560px) { .sc-title { display: none; } }

/* ---------- The desk: three app windows ---------- */
.desk { position: relative; max-width: 1240px; height: max(560px, min(720px, calc(100vh - 190px))); margin: 8px auto 0; }
.w { position: absolute; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px rgb(24 24 26 / .08), 0 24px 48px -24px rgb(24 24 26 / .35); }
.w-bar { flex: none; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #FAFAF9; color: var(--ink-2); font: 12px/1 var(--mono); }
.w-name { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font: 500 13px/1 var(--sans); }
.w-name em { font: 12px/1 var(--mono); font-style: normal; color: var(--ink-3); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #E2E1DE; }
[data-claude] { display: inline-flex; }
[data-claude] svg { width: 14px; height: 14px; }

.w-term { left: 20px; top: 0; width: calc(46% - 20px); height: 100%; z-index: 1; background: #161618; }
.w-term .w-bar { background: #1E1E21; border-color: rgb(255 255 255 / .06); }
.w-term .dots i { background: rgb(255 255 255 / .14); }
.w-term .w-name { color: #E8E8EA; }
.w-slack { right: 20px; top: 0; width: calc(54% - 32px); height: 100%; z-index: 2; }
.w-browser { left: calc(36% + 4px); right: 20px; top: 0; height: 100%; z-index: 3; opacity: 0; transform: scale(.96); visibility: hidden; transition: opacity 250ms var(--out), transform 350ms var(--out), visibility 0s 350ms; }
.desk[data-phase="b"] .w-browser { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.desk[data-phase="b"] .w-term { width: 36%; }
.desk[data-phase="b"] .w-slack { opacity: 0; visibility: hidden; }

/* One window at a time on small screens */
.tabs { display: none; }
@media (max-width: 900px) {
  .tabs { display: flex; gap: 4px; justify-content: center; margin: 4px 16px 8px; padding: 3px; border-radius: 999px; background: #ECEBE7; }
  .tabs button { flex: 1; height: 30px; border: 0; border-radius: 999px; background: none; font-size: 13px; color: var(--ink-2); cursor: pointer; }
  .tabs button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgb(24 24 26 / .12); }
  .tabs button:disabled { opacity: .4; cursor: default; }
  .desk { height: calc(100svh - 230px); min-height: 480px; margin: 0 16px; }
  .w, .desk[data-phase="b"] .w-term { left: 0; right: 0; top: 0; width: auto; height: 100%; opacity: 0; visibility: hidden; transform: none; transition: opacity 200ms var(--out), visibility 0s 200ms; }
  .w[data-on] { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 4; }
  .desk[data-phase="b"] .w-browser:not([data-on]) { opacity: 0; visibility: hidden; }
}

/* Claude Code */
.log { flex: 1; overflow: auto; padding: 14px 16px 8px; color: #C9C9CE; font: 12.5px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-color: #3A3A3E transparent; }
.log-hi { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; padding: 10px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgb(217 119 87 / .5); white-space: normal; }
.log-hi svg { width: 20px; height: 20px; }
.log-hi b { display: block; color: #fff; font-weight: 500; }
.log-hi span { color: #8A8A90; }
.log .h { color: #fff; font-weight: 500; } .log .k { color: #6E6E74; } .log .b { color: #F2F2F4; font-weight: 500; }
.log .c { color: #F5A88E; } .log .ok { color: #8FD9B6; } .log .you { color: #fff; } .log .dim { color: #8A8A90; }
.log .md { display: block; margin: 6px 0; padding-left: 12px; border-left: 2px solid #2C2C30; color: #A8A8AE; }
.prompt { flex: none; display: flex; gap: 10px; align-items: center; margin: 0 12px 12px; padding: 10px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px #34343A; color: #E8E8EA; font: 12.5px/1.5 var(--mono); }
.prompt > span:first-child { color: var(--coral); }
.caret { width: 7px; height: 15px; background: #E8E8EA; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Slack */
.sl { flex: 1; display: flex; min-height: 0; }
.sl-side { flex: none; display: flex; flex-direction: column; gap: 2px; width: 148px; padding: 12px 8px; background: #3F0E40; color: rgb(255 255 255 / .7); font-size: 14px; }
.sl-side b { padding: 0 8px 10px; color: #fff; }
.sl-side span { padding: 3px 8px; border-radius: 6px; }
.sl-side .on { background: #1164A3; color: #fff; }
.sl-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sl-head { display: flex; align-items: baseline; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.sl-head span { font-size: 12px; color: var(--ink-3); }
.sl-feed { flex: 1; overflow: auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 16px; }
.sl-msg { display: flex; gap: 10px; font-size: 14px; animation: rise 300ms var(--out); }
.sl-msg .av { width: 34px; height: 34px; flex: none; border-radius: 8px; object-fit: cover; }
.sl-who { font-weight: 500; font-size: 14px; } .sl-who time { margin-left: 6px; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.sl-msg p { margin: 1px 0 0; }
.sl-msg a { color: #1264A3; }
.unfurl { position: relative; display: flex; gap: 12px; margin-top: 6px; padding: 8px 10px 8px 12px; border: 0; border-left: 4px solid #DDDDDA; border-radius: 4px; background: none; text-align: left; cursor: default; transition: background-color 150ms ease, scale 150ms ease-out; }
.unfurl:enabled { cursor: pointer; }
.unfurl:enabled:active { scale: .98; }
@media (hover: hover) { .unfurl:enabled:hover { background: #F6F5F2; } }
.unfurl small { display: block; font-size: 12px; color: var(--ink-3); }
.unfurl b { display: block; color: #1264A3; font-weight: 500; }
.unfurl span { display: block; font-size: 13px; color: var(--ink-2); }
.uf-thumb { flex: none; width: 92px; height: 60px; padding: 7px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.uf-thumb i { display: block; height: 4px; margin-bottom: 4px; border-radius: 2px; background: #E2E1DE; }
.uf-thumb i:first-child { width: 60%; height: 6px; background: var(--ink); }
.uf-thumb i:nth-child(3) { width: 80%; } .uf-thumb i:nth-child(4) { display: flex; height: 14px; background: linear-gradient(90deg, #FDE8E5 30%, #fff 0 34%, #F0EFEC 0 64%, #fff 0 68%, #E3F5EC 0); }
.sl-typing { font-size: 12px; color: var(--ink-3); padding: 0 16px 4px; min-height: 18px; }
.sl-compose { margin: 0 16px 14px; padding: 10px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px #D6D5D1; color: var(--ink-3); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-compose[data-filled] { color: #1264A3; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 1100px) { .sl-side { display: none; } }

/* Browser */
.w-browser .w-bar { gap: 8px; }
.url { padding: 5px 10px; border-radius: 999px; background: #F0EFEC; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vtabs { display: inline-flex; padding: 2px; border-radius: 999px; background: #F0EFEC; }
.vtabs button, .seg button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font: 12px/1 var(--mono); color: var(--ink-2); cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.vtabs button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgb(24 24 26 / .12); }
.guest { margin-left: auto; white-space: nowrap; color: var(--ink-3); }
@media (max-width: 1100px) { .guest { display: none; } }
.banner { display: flex; align-items: center; gap: 8px; height: 0; overflow: hidden; padding: 0 16px; background: var(--coral-soft); color: #8E2D16; font-size: 13px; transition: height 250ms var(--out); }
.banner[data-in] { height: 36px; }
.banner b { font-weight: 500; }
.bw { flex: 1; overflow: auto; position: relative; }

/* The spec */
.spec { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 28px; padding: 28px 28px 40px; }
.spec-main { min-width: 0; }
.gutter { position: relative; }
.crumb { font: 12px/16px var(--mono); color: var(--ink-3); }
.spec h1 { margin: 6px 0 0; font-size: 30px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 500; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.chip { padding: 1px 9px; border-radius: 999px; background: #FFF4D6; color: #8A5A00; font-size: 12px; line-height: 20px; transition: background-color 300ms ease, color 300ms ease; }
.spec[data-ver="2"] .chip { background: var(--green-soft); color: var(--green); }
.lede { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.kpis > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 10px; background: #F7F6F3; }
.kpis b { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.kpis > div > span { font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.sec { margin-top: 26px; }
.sec-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sec-h h2 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.sec-k { font: 12px/16px var(--mono); color: var(--ink-3); }
.seg { display: inline-flex; padding: 2px; border-radius: 999px; background: #F0EFEC; }
.seg button { font-family: var(--sans); }

/* Sequence diagram */
.seq { padding: 12px 12px 6px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: linear-gradient(90deg, transparent calc(16.66% - .5px), #EDEDEA 0 calc(16.66% + .5px), transparent 0 calc(50% - .5px), #EDEDEA 0 calc(50% + .5px), transparent 0 calc(83.33% - .5px), #EDEDEA 0 calc(83.33% + .5px), transparent 0) 0 40px / 100% calc(100% - 40px) no-repeat; }
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-bottom: 6px; }
.lanes span { justify-self: center; padding: 3px 10px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px #E2E1DE; font-size: 12px; font-weight: 500; }
.steps-seq { list-style: none; margin: 0; padding: 0; }
.steps-seq li { position: relative; height: 34px; transition: opacity 200ms ease; }
.steps-seq li .ln { position: absolute; top: 22px; height: 1.5px; background: var(--ink); left: var(--l); width: var(--w); }
.steps-seq li .ln::after { content: ""; position: absolute; top: -3.5px; border: 4px solid transparent; }
.steps-seq li[data-dir="r"] .ln::after { right: -2px; border-left-color: var(--ink); border-right: 0; }
.steps-seq li[data-dir="l"] .ln::after { left: -2px; border-right-color: var(--ink); border-left: 0; }
.steps-seq li .lb { position: absolute; top: 3px; left: var(--l); width: var(--w); text-align: center; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.steps-seq li.done .ln { background: var(--green); } .steps-seq li.done[data-dir="r"] .ln::after { border-left-color: var(--green); } .steps-seq li.done[data-dir="l"] .ln::after { border-right-color: var(--green); }
.steps-seq li.done .lb { color: var(--green); font-weight: 500; }
.steps-seq[data-playing] li { opacity: .25; }
.steps-seq[data-playing] li[data-lit] { opacity: 1; }
.steps-seq li[data-lit] .lb { color: var(--ink); font-weight: 500; }
.steps-seq li.todo { height: 44px; }
.steps-seq li.todo .lb { top: 6px; left: 10%; width: 80%; padding: 4px 8px; white-space: normal; line-height: 1.35; border-radius: 8px; outline: 1.5px dashed #C9C7C2; color: var(--ink-3); }
.play { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; position: relative; transition: scale 150ms ease-out; }
.play:active { scale: .96; }

/* Device share */
.share { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; }
.share i { width: var(--w); background: var(--c); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; background: var(--c); }

/* Rollout gantt */
@property --s { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --e { syntax: "<number>"; inherits: true; initial-value: 2; }
.gantt { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); padding: 6px 12px 10px; }
.g-head, .g-row { display: grid; grid-template-columns: 150px repeat(5, minmax(0, 1fr)); align-items: center; }
.g-head span { font: 11px/24px var(--mono); color: var(--ink-3); text-align: center; }
.g-row { position: relative; height: 32px; font-size: 13px; }
.g-row > span { grid-column: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.g-bar { position: absolute; top: 8px; height: 16px; border-radius: 5px; background: var(--ink); left: calc(150px + (100% - 150px) * (var(--s) - 1) / 5 + 2px); width: calc((100% - 150px) * (var(--e) - var(--s)) / 5 - 4px); transition: --s 600ms var(--move), --e 600ms var(--move); }
.g-sec { background: #7C5CE0; } .g-soft { background: #C9BFF2; }
.g-launch { background: var(--coral); }
.spec[data-ver="1"] .g-launch { --s: 2; --e: 3; }
.spec[data-ver="2"] .g-launch { --s: 5; --e: 6; }
.g-chg { animation: rise 400ms var(--out); }
@media (max-width: 640px) { .g-head, .g-row { grid-template-columns: 112px repeat(5, minmax(0, 1fr)); } .g-bar { left: calc(112px + (100% - 112px) * (var(--s) - 1) / 5 + 2px); width: calc((100% - 112px) * (var(--e) - var(--s)) / 5 - 4px); } }

.risks { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.risks > div { display: grid; grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 12px; font-size: 13px; }
.risks > div + div { border-top: 1px solid var(--line); }
.risks b { font-weight: 500; }
.risks > div > span:last-child { color: var(--ink-2); }
.sev { justify-self: start; padding: 1px 8px; border-radius: 999px; font-size: 11px; line-height: 18px; }
.sev-hi { background: #FDE8E5; color: #B42318; } .sev-md { background: #FFF4D6; color: #8A5A00; } .sev-lo { background: #F0EFEC; color: var(--ink-2); }
@media (max-width: 560px) { .risks > div { grid-template-columns: 60px minmax(0, 1fr); } .risks > div > span:last-child { grid-column: 2; } }

.spec[data-ver="1"] .v2, .spec[data-ver="2"] .v1 { display: none; }
.new2 { display: none; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--green-soft); color: var(--green); font: 11px/17px var(--mono); vertical-align: 2px; }
.spec[data-ver="2"] .new2 { display: inline-block; }

@media (max-width: 1100px) {
  .spec { grid-template-columns: minmax(0, 1fr); padding: 22px 18px 32px; }
  .gutter { display: contents; }
  .th { position: relative !important; margin-top: 10px; top: auto !important; }
  .kpis { grid-template-columns: minmax(0, 1fr); }
}

/* Comment threads and pins */
.th { position: absolute; left: 0; right: 0; padding: 10px 12px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px rgb(24 24 26 / .07), 0 8px 24px -10px rgb(24 24 26 / .25); font-size: 13px; line-height: 1.45; opacity: 0; transform: translateY(4px) scale(.97); transform-origin: top left; transition: opacity 200ms var(--out), transform 250ms var(--out), top 300ms var(--move); }
.th[data-in] { opacity: 1; transform: none; }
.th[data-done] .msg { opacity: .7; }
.msg { display: flex; gap: 8px; }
.msg + .msg { margin-top: 9px; padding-top: 9px; border-top: 1px solid #F1F0ED; }
.msg .av { width: 20px; height: 20px; flex: none; border-radius: 50%; object-fit: cover; }
.who { font-size: 12px; font-weight: 500; }
.who em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.msg p { margin: 1px 0 0; min-height: 19px; }
.dots3 { display: inline-flex; gap: 3px; padding-top: 7px; } .dots3 i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); animation: bob 900ms ease-in-out infinite; } .dots3 i:nth-child(2) { animation-delay: 150ms; } .dots3 i:nth-child(3) { animation-delay: 300ms; }
@keyframes bob { 50% { opacity: .3; transform: translateY(-2px); } }
.reply { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #F1F0ED; font-size: 12px; color: var(--ink-3); }
.reply span { width: 100%; }
.reply button { position: relative; height: 28px; padding: 0 11px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; cursor: pointer; transition: scale 150ms ease-out; }
.reply button:active { scale: .96; }
.res { display: inline-block; margin-top: 8px; padding: 1px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); font: 11px/16px var(--mono); }
.pin { position: absolute; z-index: 2; width: 20px; height: 20px; border-radius: 50% 50% 50% 4px; display: grid; place-items: center; color: #fff; font: 500 10px/1 var(--sans); box-shadow: 0 0 0 2px #fff, 0 2px 6px rgb(24 24 26 / .25); transform: scale(.6); opacity: 0; transition: transform 250ms var(--out), opacity 150ms ease; }
.pin[data-in] { transform: none; opacity: 1; }
.marked { outline: 2px solid var(--c); outline-offset: 2px; border-radius: 6px; }

/* Human cursors: only when someone pins a comment */
.cur { position: absolute; z-index: 40; left: 0; top: 0; display: flex; align-items: flex-start; gap: 2px; color: var(--c); pointer-events: none; opacity: 0; transition: transform 600ms var(--move), opacity 200ms ease; will-change: transform; }
.cur[data-in] { opacity: 1; }
.cur svg { filter: drop-shadow(0 1px 1px rgb(0 0 0 / .2)); transition: scale 120ms ease-out; }
.cur[data-press] svg { scale: .82; }
.cur span { margin-top: 14px; padding: 2px 7px; border-radius: 6px; background: var(--c); color: #fff; font: 500 12px/18px var(--sans); white-space: nowrap; }

/* Bottom director bar: one caption, one next action */
.dir { position: fixed; z-index: 30; left: 50%; bottom: 20px; translate: -50% 0; display: flex; align-items: center; gap: 16px; width: min(calc(100% - 32px), 720px); min-height: 64px; padding: 12px 12px 12px 20px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: 0 16px 40px -12px rgb(24 24 26 / .45); }
.steps { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; flex: none; }
.steps li { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / .2); transition: background-color 200ms ease, width 250ms var(--out); }
.steps li[data-on] { background: #fff; }
.steps li[data-now] { width: 16px; border-radius: 3px; }
.cap { flex: 1; margin: 0; font-size: 15px; line-height: 1.4; transition: opacity 150ms ease; }
.cap[data-out] { opacity: 0; }
.go { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--coral); color: #fff; font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; transition: scale 150ms ease-out, background-color 150ms ease; }
.go:active { scale: .96; }
@media (hover: hover) { .go:hover { background: #F04E2C; } }
[data-cue] { position: relative; }
[data-cue]::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; box-shadow: 0 0 0 2px var(--coral); opacity: 0; pointer-events: none; animation: cue 1.6s var(--out) infinite; }
.unfurl[data-cue]::after { border-radius: 8px; }
@keyframes cue { 0% { opacity: .9; transform: scale(.97); } 70%, 100% { opacity: 0; transform: scale(1.06); } }
.ghost { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .1); color: #fff; font-weight: 500; cursor: pointer; transition: background-color 150ms ease, scale 150ms ease-out; }
.ghost:active { scale: .96; }
.end { flex: 1; }
.end b { font-size: 16px; font-weight: 500; }
.end ul { margin: 6px 0 12px; padding-left: 18px; color: rgb(255 255 255 / .75); font-size: 14px; }
.end-act { display: flex; gap: 8px; }
.dir:has(.end:not([hidden])) .cap, .dir:has(.end:not([hidden])) .steps { display: none; }
@media (max-width: 560px) { .dir { flex-wrap: wrap; bottom: 12px; padding: 14px 14px 14px 18px; } .cap { flex-basis: calc(100% - 60px); } .go { width: 100%; justify-content: center; } }

.toast { position: fixed; z-index: 50; left: 50%; top: 64px; translate: -50% 0; padding: 10px 16px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px rgb(24 24 26 / .07), 0 12px 32px -10px rgb(24 24 26 / .3); font-size: 14px; opacity: 0; transform: translateY(-6px); transition: opacity 200ms var(--out), transform 250ms var(--out); pointer-events: none; }
.toast[data-in] { opacity: 1; transform: none; }
.toast b { font-weight: 500; }

/* ---------- Hub ---------- */
.hub-main { max-width: 1080px; margin: 0 auto; padding: 48px 24px 96px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hub-eyebrow { font: 12px/16px var(--mono); color: var(--ink-3); }
.hub h1 { margin: 10px 0 0; font-size: 46px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; text-wrap: balance; }
.hub-lede { margin: 16px 0 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.hub-lede b { color: var(--ink); font-weight: 500; }
.hub-lede + .hub-lede { margin-top: 12px; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; } .hub h1 { font-size: 36px; } }

/* Reply vs artifact */
.vs { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; align-items: stretch; }
.vs > div { display: flex; flex-direction: column; gap: 10px; }
.vs-k { font: 12px/16px var(--mono); color: var(--ink-3); }
.vs-k b { color: var(--ink); font-weight: 500; }
.reply-card { padding: 14px; border-radius: 14px 14px 14px 4px; background: #ECEBE7; font-size: 12px; line-height: 1.55; color: var(--ink-2); }
.reply-card p { margin: 0 0 12px; font-size: 13px; color: var(--ink); }
.reply-card i { display: block; height: 7px; margin-top: 7px; border-radius: 4px; background: #DDDCD7; }
.art-card { flex: 1; padding: 14px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px rgb(24 24 26 / .06), 0 16px 32px -18px rgb(24 24 26 / .35); }
.art-url { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font: 11px/1 var(--mono); color: var(--ink-3); }
.art-url span { padding: 4px 8px; border-radius: 999px; background: #F0EFEC; color: var(--ink); }
.art-t { font-size: 15px; font-weight: 500; }
.art-t em { margin-left: 6px; font-style: normal; font-weight: 500; color: var(--green); }
.art-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.art-kpis div { padding: 8px; border-radius: 8px; background: #F7F6F3; font-size: 10px; color: var(--ink-2); }
.art-kpis b { display: block; font-size: 15px; color: var(--ink); letter-spacing: -0.02em; }
.art-bars { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 110px; margin-top: 18px; }
.art-bars u { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: #D6D6E8; transform-origin: bottom; animation: grow 5s var(--out) infinite; }
.art-bars u:last-of-type { background: var(--coral); }
.art-bars u:nth-child(2) { animation-delay: .08s } .art-bars u:nth-child(3) { animation-delay: .16s } .art-bars u:nth-child(4) { animation-delay: .24s } .art-bars u:nth-child(5) { animation-delay: .32s } .art-bars u:nth-child(6) { animation-delay: .4s }
@keyframes grow { 0% { transform: scaleY(0); } 18%, 100% { transform: none; } }
.art-pin { position: absolute; right: 6%; top: -10px; display: flex; align-items: center; gap: 6px; animation: pinin 5s var(--out) infinite; }
.art-pin i { width: 18px; height: 18px; border-radius: 50% 50% 50% 3px; background: #7C5CE0; box-shadow: 0 0 0 2px #fff; }
.art-pin span { padding: 3px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 10px; white-space: nowrap; }
@keyframes pinin { 0%, 35% { opacity: 0; transform: translateY(4px) scale(.95); } 45%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.art-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.art-foot span { padding: 2px 8px; border-radius: 999px; background: #F0EFEC; font: 10px/16px var(--mono); color: var(--ink-2); }

.blk { margin-top: 72px; }
.blk-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.blk h2 { margin: 0; font-size: 24px; letter-spacing: -0.02em; font-weight: 500; }
.blk-h p { margin: 0; color: var(--ink-2); }

/* What people make */
.made { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.made-c { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px rgb(24 24 26 / .06); }
.made-c .rs-mini { margin-bottom: 6px; }
.made-c > b { padding: 0 4px; font-size: 14px; font-weight: 500; }
.made-c > span { padding: 0 4px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 860px) { .made { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* What artifact.cafe adds */
.adds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.add { padding: 18px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px rgb(24 24 26 / .06); }
.add b { display: block; margin-top: 14px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.add p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.add-v { position: relative; height: 92px; border-radius: 10px; background: #F7F6F3; overflow: hidden; }
.av-link { position: absolute; left: 14px; right: 14px; top: 18px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font: 11px/1 var(--mono); }
.av-link i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.av-open { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 4px; }
.av-open span { padding: 2px 8px; border-radius: 999px; background: var(--paper); font-size: 11px; color: var(--ink-2); animation: rise2 4s var(--out) infinite; animation-delay: calc(var(--i) * .25s); }
@keyframes rise2 { 0%, 10% { opacity: 0; transform: translateY(4px); } 20%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.av-doc { position: absolute; inset: 14px 14px 0; border-radius: 8px 8px 0 0; background: var(--paper); box-shadow: 0 0 0 1px var(--line); padding: 10px; }
.av-doc i { display: block; height: 5px; margin-bottom: 6px; border-radius: 3px; background: #ECEBE7; }
.av-doc i:first-child { width: 50%; height: 7px; background: var(--ink); }
.av-doc .pin { opacity: 1; transform: none; animation: pinpop 4s var(--out) infinite; }
.av-doc .pin + .pin { animation-delay: .6s; }
@keyframes pinpop { 0%, 15% { opacity: 0; transform: scale(.7); } 25%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.av-ver { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; }
.av-ver span { padding: 6px 12px; border-radius: 8px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font: 12px/1 var(--mono); }
.av-ver span:last-child { animation: v2 4s var(--out) infinite; }
.av-ver em { font-style: normal; color: var(--ink-3); }
@keyframes v2 { 0%, 30% { background: var(--paper); color: var(--ink); } 40%, 100% { background: var(--ink); color: #fff; } }
@media (max-width: 860px) { .adds { grid-template-columns: minmax(0, 1fr); } }

/* Scenes */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px rgb(24 24 26 / .06); color: inherit; text-decoration: none; transition: box-shadow 150ms ease, translate 200ms var(--out); }
a.card:active { scale: .99; }
@media (hover: hover) { a.card:hover { translate: 0 -2px; box-shadow: 0 0 0 1px rgb(24 24 26 / .1), 0 12px 28px -14px rgb(24 24 26 / .3); } }
.card-av { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 12px; }
.card b { padding-right: 60px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.card p { margin: 0; padding-right: 60px; color: var(--ink-2); font-size: 14px; }
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; color: var(--ink-3); }
.route span { padding: 3px 9px; border-radius: 999px; background: #F0EFEC; color: var(--ink-2); font-family: var(--mono); }
.card-meta { margin-top: 10px; display: flex; justify-content: space-between; font: 12px/16px var(--mono); color: var(--ink-3); }
.card[aria-disabled="true"] { opacity: .6; }
.card-go { color: var(--coral); }
@media (max-width: 760px) { .cards { grid-template-columns: minmax(0, 1fr); } }

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

/* ---------- Animated mini previews of real artifacts ---------- */
/* Template previews: tiny working screens, each on a slow loop */
.rs-mini { position: relative; height: 128px; padding: 10px 11px; overflow: hidden; border-radius: 8px; background: #FBFBFA; box-shadow: inset 0 0 0 1px var(--k-line); font: 10px/14px var(--k-sans); color: var(--k-ink); letter-spacing: 0; }
.rs-mini .m-t { font-weight: 500; font-size: 11px; }
.rs-mini .m-sub { color: var(--k-ink-3); font-size: 9px; }
.m-av { display: inline-grid; place-items: center; width: 14px; height: 14px; flex: none; border-radius: 50%; font: 500 7px/1 var(--k-sans); font-style: normal; color: rgb(24 24 26 / .7); box-shadow: 0 0 0 1.5px #fff; }
.m-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.m-box { width: 9px; height: 9px; flex: none; border-radius: 2px; box-shadow: inset 0 0 0 1px #BDBDBA; }

/* Hiring: Amir moves from Interview to Offer */
.m-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; height: 100%; }
.m-cols > div { display: flex; flex-direction: column; gap: 4px; padding: 5px; border-radius: 5px; background: #F1F1EF; }
.m-cols em { font: 8px/10px var(--k-mono); font-style: normal; color: var(--k-ink-3); }
.m-chip { display: flex; align-items: center; gap: 4px; padding: 3px 4px; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgb(24 24 26 / .12); font-size: 9px; }
.m-move { animation: m-move 5s ease-in-out infinite; }
.m-land { opacity: 0; animation: m-land 5s ease-in-out infinite; }
@keyframes m-move { 0%, 35% { opacity: 1; transform: none; } 55% { opacity: 0; transform: translateX(60%) rotate(4deg); } 100% { opacity: 0; } }
@keyframes m-land { 0%, 45% { opacity: 0; transform: translateX(-30%); } 60%, 90% { opacity: 1; transform: none; box-shadow: 0 0 0 1.5px #3FAF85; } 100% { opacity: 0; } }

/* RSVP: the count ticks up, a new yes slides in */
.m-rsvp { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 10px; color: var(--k-ink-2); }
.m-stack { display: flex; } .m-stack .m-av + .m-av { margin-left: -4px; }
.m-count { position: relative; display: inline-block; height: 14px; overflow: hidden; color: var(--k-ink); }
.m-count span { display: block; animation: m-tick 4s ease-in-out infinite; }
@keyframes m-tick { 0%, 40% { transform: none; } 55%, 100% { transform: translateY(-14px); } }
.m-in { padding: 4px 6px; border-radius: 5px; background: #E3F5EC; color: #1E7A52; animation: m-in 4s ease-in-out infinite; }
@keyframes m-in { 0%, 40% { opacity: 0; transform: translateY(6px); } 55%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Client portal: step three fills, the logo gets approved */
.m-steps { display: flex; gap: 4px; margin: 8px 0 4px; }
.m-steps i { flex: 1; height: 4px; border-radius: 2px; background: #E6E6E3; }
.m-steps i[data-d] { background: #3FAF85; }
.m-steps i.m-step { background: linear-gradient(90deg, #3FAF85 50%, #E6E6E3 50%) 100% 0 / 200% 100%; animation: m-fill 4.5s ease-in-out infinite; }
@keyframes m-fill { 0%, 30% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
.m-tick .m-box { animation: m-check 4.5s ease-in-out infinite; }
@keyframes m-check { 0%, 55% { background: none; } 65%, 100% { background: #3FAF85; box-shadow: none; } }

/* Weekly report: bars grow in, the last one is this week */
.m-kpi { display: flex; align-items: baseline; gap: 6px; }
.m-kpi span { color: var(--k-ink-3); font-size: 9px; } .m-kpi b { font-size: 16px; letter-spacing: -0.02em; } .m-kpi em { font-style: normal; color: #1E7A52; font-size: 9px; }
.m-bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; margin-top: 8px; }
.m-bars u { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: #D6D6E8; animation: m-bar 5s ease-out infinite; transform-origin: bottom; }
.m-bars u.m-grow { background: #7C6CF0; }
.m-bars u:nth-child(2) { animation-delay: .1s } .m-bars u:nth-child(3) { animation-delay: .2s } .m-bars u:nth-child(4) { animation-delay: .3s } .m-bars u:nth-child(5) { animation-delay: .4s } .m-bars u:nth-child(6) { animation-delay: .5s }
@keyframes m-bar { 0% { transform: scaleY(0); } 25%, 100% { transform: none; } }

/* Pitch deck: a comment pin lands on the slide */
.m-slide { position: relative; height: 82px; padding: 10px; border-radius: 5px; background: #18181A; color: #fff; }
.m-slide .m-t { font-size: 13px; } .m-slide .m-sub { color: rgb(255 255 255 / .6); }
.m-pin { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50% 50% 50% 3px; background: #fff; opacity: 0; animation: m-pop 5s ease-out infinite; }
.m-note { position: absolute; right: 34px; bottom: 12px; padding: 2px 6px; border-radius: 4px; background: #fff; color: var(--k-ink); font-size: 9px; opacity: 0; animation: m-pop 5s ease-out .3s infinite; }
@keyframes m-pop { 0%, 30% { opacity: 0; transform: scale(.6); } 40%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.m-dots { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.m-dots i { width: 5px; height: 5px; border-radius: 50%; background: #D6D6D3; } .m-dots i[data-on] { background: var(--k-ink); }

/* Poll: votes come in */
.m-opt { position: relative; margin-top: 6px; height: 20px; border-radius: 4px; background: #F1F1EF; overflow: hidden; }
.m-opt i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: #E2D9CF; animation: m-vote 4.5s ease-out infinite; transform-origin: left; }
.m-opt i.m-win { background: #FFB59E; }
.m-opt span { position: relative; z-index: 1; padding-left: 7px; line-height: 20px; font-size: 9px; }
@keyframes m-vote { 0% { transform: scaleX(0); } 35%, 100% { transform: none; } }

/* Onboarding: steps check off one by one */
.m-c1 .m-box { animation: m-c1 6s ease-in-out infinite; } .m-c2 .m-box { animation: m-c2 6s ease-in-out infinite; } .m-c3 .m-box { animation: m-c3 6s ease-in-out infinite; }
@keyframes m-c1 { 0%, 15% { background: none; } 22%, 100% { background: #3FAF85; box-shadow: none; } }
@keyframes m-c2 { 0%, 40% { background: none; } 47%, 100% { background: #3FAF85; box-shadow: none; } }
@keyframes m-c3 { 0%, 65% { background: none; } 72%, 100% { background: #3FAF85; box-shadow: none; } }

/* Release notes: lines appear as they ship */
.m-r1, .m-r2, .m-r3 { opacity: 0; animation: m-ship 6s ease-out infinite; }
.m-r2 { animation-delay: .6s; } .m-r3 { animation-delay: 1.2s; }
@keyframes m-ship { 0% { opacity: 0; transform: translateX(-6px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.m-tag { padding: 0 4px; border-radius: 3px; font: 500 8px/13px var(--k-mono); }
.m-tag[data-k="new"] { background: #E8F0FF; color: #1F4FB8; } .m-tag[data-k="fix"] { background: #FFF4D6; color: #8A5A00; }

@media (prefers-reduced-motion: reduce) { .rs-mini * { animation: none !important; opacity: 1 !important; } .m-land, .m-in { display: none; } }

/* Moving between the hub and a demo: the card grows into the demo and back */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 340ms; animation-timing-function: cubic-bezier(.32, .72, 0, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* desk.css */
/* Cafe OS tokens for this page */
body.hub {
  --ink: #2B2622; --ink-2: #6F6A62; --ink-3: #A29D93; --line: #EAE8E3;
  --bg: #F7F7F4; --paper: #fff; --amber: #B25F28; --amber-2: #9C5221; --amber-soft: #F5E7D3; --amber-text: #8A4A1B;
  --trim: #F6EFE2; --trim-line: #E8DCC4; --coral: var(--amber);
  --green: #55663F; --green-soft: #E9EEE1; --blue: #4E6478; --blue-soft: #E5EBF0;
  --term-bg: #26221E; --term-fg: #E8E3D9; --term-dim: #8F887D;
  --track: #EEECE7;
}
/* The desk: two lines of context, then artifacts to open */
.top-cta { margin-left: auto; height: 32px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; text-decoration: none; transition: scale 150ms ease-out; }
.top-cta:active { scale: .96; }
.dk { max-width: 1120px; margin: 0 auto; padding: 40px 24px 96px; }
.dk-hero { max-width: 720px; }
.dk-hero h1 { margin: 0; font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; text-wrap: balance; }
.dk-hero p { margin: 14px 0 0; font-size: 19px; line-height: 1.45; color: var(--ink-2); }
.dk-hero p b { color: var(--ink); font-weight: 500; }
.dk-hero .dk-hint { margin-top: 20px; font-size: 14px; line-height: 20px; color: var(--ink-3); }
@media (max-width: 640px) { .dk-hero h1 { font-size: 30px; } .dk-hero p { font-size: 17px; } }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 10px 10px 14px; border: 0; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px rgb(24 24 26 / .06); color: inherit; text-align: left; text-decoration: none; font: inherit; transition: translate 200ms var(--out), box-shadow 150ms ease; }
button.tile, a.tile { cursor: pointer; }
button.tile:active, a.tile:active { scale: .985; }
@media (hover: hover) { button.tile:hover, a.tile:hover { translate: 0 -2px; box-shadow: 0 0 0 1px rgb(24 24 26 / .1), 0 14px 28px -14px rgb(24 24 26 / .3); } }
.tile .rs-mini { margin-bottom: 8px; }
.tile-who { padding: 0 4px; font: 11px/16px var(--mono); color: var(--ink-3); }
.tile b { padding: 0 4px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.tile-before { padding: 0 4px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.tile-go { margin-top: auto; padding: 10px 4px 0; font-size: 13px; font-weight: 500; line-height: 16px; color: var(--amber); }
.tile[aria-disabled="true"] .tile-go { color: var(--ink-3); font-weight: 400; }
.tile[aria-disabled="true"] .rs-mini { opacity: .75; }

/* New mini previews */
.m-sl { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 6px; margin-top: 7px; font-size: 9px; color: var(--ink-2); }
.m-sl i { position: relative; height: 4px; border-radius: 2px; background: #E6E6E3; }
.m-sl u { position: absolute; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.m-k1 { left: 55%; animation: m-k1 5s var(--move) infinite; } .m-k2 { left: 30%; animation: m-k2 5s var(--move) infinite; } .m-k3 { left: 40%; }
@keyframes m-k1 { 0%, 20% { left: 55%; } 40%, 100% { left: 45%; } }
@keyframes m-k2 { 0%, 20% { left: 30%; } 40%, 100% { left: 40%; } }
.m-appr { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 9px; animation: m-appr 5s ease infinite; }
@keyframes m-appr { 0%, 55% { background: var(--ink); } 65%, 100% { background: #3FAF85; } }
.m-flow { display: flex; align-items: center; gap: 4px; margin: 8px 0 6px; }
.m-flow b { padding: 1px 5px; border-radius: 999px; box-shadow: inset 0 0 0 1px #E2E1DE; font-size: 8px; font-weight: 500; }
.m-flow i { flex: 1; height: 1px; background: var(--ink); }
.m-line { height: 4px; margin-top: 5px; border-radius: 2px; background: #ECEBE7; }
.m-pin2 { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 4px; padding: 2px 6px 2px 2px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 8px; animation: m-pop 5s ease-out infinite; }
.m-vars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; height: 100%; }
.m-vars > div { position: relative; padding: 6px; border-radius: 6px; background: #F1F1EF; }
.m-vars b { font-size: 9px; } .m-vars i { display: block; height: 4px; margin-top: 5px; border-radius: 2px; background: #DDDCD7; }
.m-vars .m-pick { animation: m-pick 5s ease infinite; }
@keyframes m-pick { 0%, 40% { box-shadow: none; } 50%, 100% { box-shadow: 0 0 0 1.5px var(--ink); } }
.m-votes { position: absolute; left: 6px; bottom: 6px; display: flex; animation: m-pop 5s ease-out infinite; }
.m-lock { font-size: 9px; }
.m-q { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 4px; padding: 2px 7px 2px 2px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 9px; animation: m-pop 5s ease-out infinite; }

/* The sheet */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgb(43 38 34 / .28); opacity: 0; transition: opacity 250ms var(--out); }
.sheet-bg[data-in] { opacity: 1; }
.sheet { position: fixed; z-index: 61; inset: 16px; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--bg); box-shadow: 0 0 0 1px rgb(43 38 34 / .08), 0 30px 80px -20px rgb(43 38 34 / .45); opacity: 0; transform: scale(.96); transition: opacity 200ms var(--out), transform 260ms var(--out); }
.sheet[data-in] { opacity: 1; transform: none; }
.sheet:not([data-in]) { transition-duration: 150ms, 180ms; }
.sh-top { flex: none; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.sh-av { width: 32px; height: 32px; border-radius: 8px; }
.sh-t { min-width: 0; }
.sh-t b { display: block; font-size: 15px; line-height: 20px; font-weight: 500; }
.sh-t span { display: block; font-size: 13px; line-height: 18px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-x { flex: none; margin-left: auto; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; transition: scale 150ms ease-out, background-color 150ms ease; }
@media (hover: hover) { .sh-x:hover { background: #F0EEEA; color: var(--ink); } }
.sh-x:active { scale: .94; }

/* Body: the story on the left, the artifact on the right */
.sh-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "before art" "now art"; overflow: hidden; }
.sh-body::before { content: ""; grid-column: 1; grid-row: 1 / -1; border-right: 1px solid var(--line); pointer-events: none; }
.st { position: relative; min-width: 0; padding: 20px 20px 0 20px; }
.st-before { grid-area: before; }
.st-now { grid-area: now; overflow: auto; padding-bottom: 20px; }
.st-k { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-2); }
.st-k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.st-now .st-k::before { background: var(--amber); }
.st-note { margin: 10px 0 0; font-size: 13px; line-height: 19px; color: var(--ink-2); text-wrap: pretty; }

.mail { max-height: 118px; overflow: hidden; padding: 12px; border-radius: 10px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-size: 12.5px; line-height: 1.55; color: var(--ink-2); -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.mail-h { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; line-height: 16px; color: var(--ink-3); white-space: nowrap; }
.mail-h b { color: var(--ink); font-weight: 500; }
.mail-h b + span { overflow: hidden; text-overflow: ellipsis; }
.mail p { margin: 0; }

/* Claude Code, one terminal for the whole story */
.term { overflow: hidden; border-radius: 10px; background: var(--term-bg); color: var(--term-fg); font: 12px/1.6 var(--mono); }
.term-h { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-bottom: 1px solid rgb(255 255 255 / .07); font: 500 12px/1 var(--sans); color: var(--term-fg); }
.term-h em { margin-left: auto; font: 11px/1 var(--mono); font-style: normal; color: var(--term-dim); transition: color 200ms ease; }
.term[data-state="work"] .term-h em { color: #E3B98D; }
.term[data-state="done"] .term-h em { color: #B7C79F; }
.term-b { padding: 10px 12px 12px; }
.tl { position: relative; padding-left: 16px; animation: rise 250ms var(--out); text-wrap: pretty; }
.tl + .tl { margin-top: 4px; }
.tl::before { content: "⏺"; position: absolute; left: 0; color: var(--term-dim); font-size: 9px; line-height: 19px; }
.tl u { text-decoration: none; color: #E3B98D; }
.tl-you { margin-bottom: 8px; padding: 6px 8px 6px 22px; border-radius: 6px; background: rgb(255 255 255 / .06); }
.tl-you::before { content: ">"; left: 8px; color: #E3B98D; font-size: 12px; line-height: 19px; }
.tl-wait { color: var(--term-dim); }
.tl-wait::before { content: none; }
.tl-ok::before { color: #B7C79F; }
.tl-ok { color: #CFDABE; }
.tl-dim { color: var(--term-dim); }
.tr { position: relative; padding-left: 20px; color: var(--term-dim); }
.tr::before { content: "⎿"; position: absolute; left: 4px; }
.spin { position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .18); border-top-color: #E3B98D; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* The artifact window */
.frame { grid-area: art; display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: 16px; overflow: hidden; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px rgb(43 38 34 / .09), 0 18px 40px -24px rgb(43 38 34 / .35); }
.frame .w-bar { height: 40px; gap: 10px; background: var(--trim); border-bottom-color: var(--trim-line); color: var(--ink-2); }
.frame .dots i { background: #E2D5BD; }
.frame .url { background: rgb(255 255 255 / .7); box-shadow: inset 0 0 0 1px var(--trim-line); color: var(--ink); padding: 5px 12px; }
.frame .vtabs { background: rgb(255 255 255 / .55); box-shadow: inset 0 0 0 1px var(--trim-line); }
.frame .vtabs button[aria-pressed="true"] { box-shadow: 0 1px 2px rgb(43 38 34 / .14); }
.frame .guest { color: var(--ink-2); font: 12px/1 var(--sans); }
.frame .bw { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: minmax(0, 600px) 248px; justify-content: center; gap: 36px; align-content: start; padding: 32px 32px 40px; }
.b-gutter { position: relative; }
.b-th { position: absolute; }

.bud { position: relative; min-width: 0; }
.bud[data-ver="1"] .v2-only, .bud[data-ver="2"] .v1-only { display: none; }
.bud .crumb { display: flex; align-items: center; gap: 8px; font: 12px/20px var(--sans); color: var(--ink-3); }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font: 500 11px/1 var(--sans); }
.chip-amber { background: var(--amber-soft); color: var(--amber-text); box-shadow: inset 0 0 0 1px #E8CFAE; }
.chip-green { background: var(--green-soft); color: var(--green); box-shadow: inset 0 0 0 1px #CFDABE; }
.bud-h { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; text-wrap: balance; }
.bud-sub { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.bud-sub b { color: var(--ink); font-weight: 500; }

.bud-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.fc { position: relative; flex: none; text-align: right; }
.fc b { display: block; font-size: 32px; line-height: 1; letter-spacing: -0.03em; font-weight: 500; font-variant-numeric: tabular-nums; }
.fc span { display: block; margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--ink-2); }
.fc em { position: absolute; right: 0; top: 100%; margin-top: 2px; white-space: nowrap; font-style: normal; font-size: 12px; line-height: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.fc em[data-up] { color: var(--green); } .fc em[data-down] { color: #A4401E; }
.left { font-size: 13px; line-height: 18px; color: var(--green); font-weight: 500; font-variant-numeric: tabular-nums; }
.left[data-bad] { color: #A4401E; }
.chs { margin-top: 4px; }
.ch { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 4px; padding: 16px 0 10px; }
.ch-h { display: flex; align-items: center; gap: 8px; min-width: 0; grid-column: 1 / -1; line-height: 20px; }
.ch-sw { width: 8px; height: 8px; flex: none; border-radius: 2px; background: var(--c); }
.ch-h b { font-size: 15px; font-weight: 500; white-space: nowrap; }
.ch-h > span { min-width: 0; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-h output { margin-left: auto; font: 500 15px/20px var(--sans); font-variant-numeric: tabular-nums; }
.ch-r { position: relative; }
.ch-s { font-size: 12px; line-height: 16px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ch-s[data-moved] { color: var(--ink); }
/* Claude's suggestion: a tick under the track, never under the thumb */
.rec { position: absolute; bottom: 1px; width: 2px; height: 6px; margin-left: -1px; border-radius: 1px; background: var(--ink-3); pointer-events: none; }
.ch .th { position: relative; grid-column: 1 / -1; margin-top: 10px; }

/* Range: track fills with the channel color */
.ch input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer; }
.ch input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--c) var(--p, 50%), var(--track) 0); }
.ch input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--c) var(--p, 50%), var(--track) 0); }
.ch input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgb(43 38 34 / .14), 0 1px 3px rgb(43 38 34 / .22); transition: scale 150ms ease-out; }
.ch input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgb(43 38 34 / .14), 0 1px 3px rgb(43 38 34 / .22); }
.ch input[type="range"]:active::-webkit-slider-thumb { scale: 1.1; }
.ch input[type="range"]:focus-visible { outline: none; }
.ch input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--amber); }
.ch input[type="range"]:disabled { cursor: default; }
.ch input[type="range"]:disabled::-webkit-slider-thumb { display: none; }

.bud-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.foot-n { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.foot-n img { width: 18px; height: 18px; border-radius: 50%; }
.approve { position: relative; flex: none; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--amber); color: #FDF7EF; font-size: 14px; font-weight: 500; cursor: pointer; transition: scale 150ms ease-out, background-color 200ms ease, opacity 150ms ease; }
@media (hover: hover) { .approve:enabled:hover { background: var(--amber-2); } }
.approve:active { scale: .97; }
.approve:disabled { opacity: .4; cursor: default; }
.approve[data-ok] { opacity: 1; background: var(--green); }
.ap-t { display: inline-flex; align-items: center; gap: 6px; }

/* Comment pin: Dana's avatar, inline with the row it is about */
.c-pin { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50% 50% 50% 3px; background: var(--paper); box-shadow: 0 0 0 1px rgb(43 38 34 / .12), 0 2px 6px rgb(43 38 34 / .18); opacity: 0; transform: scale(.6); transform-origin: 0 100%; transition: transform 250ms var(--out), opacity 150ms ease; }
.c-pin img { width: 16px; height: 16px; border-radius: 50%; }
.c-pin[data-in] { opacity: 1; transform: none; }
.th { box-shadow: 0 0 0 1px rgb(43 38 34 / .08), 0 8px 24px -12px rgb(43 38 34 / .3); }
.b-th { left: 0; right: 0; }
.th .msg .av { width: 22px; height: 22px; }
.th-cl { display: grid; place-items: center; background: #F6E4DA; }

.plan { list-style: none; margin: 20px 0 0; padding: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.plan li { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; font-size: 14px; line-height: 20px; animation: rise 300ms var(--out) both; }
.plan li:nth-child(2) { animation-delay: 60ms; } .plan li:nth-child(3) { animation-delay: 120ms; } .plan li:nth-child(4) { animation-delay: 180ms; }
.plan li + li { border-top: 1px solid var(--line); }
.plan b { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.plan b i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.plan li > span { color: var(--ink-2); }
.plan em { font-style: normal; font-variant-numeric: tabular-nums; font-weight: 500; }
/* After approve: one call to action */
.sh-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px 10px 20px; border-top: 1px solid var(--line); background: var(--paper); font-size: 14px; animation: rise 300ms var(--out); }
.mk-l { font-weight: 500; }
.sh-foot .mk-l { margin-right: auto; }
.ghost-d { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #F0EEEA; font-weight: 500; cursor: pointer; transition: scale 150ms ease-out, background-color 150ms ease; }
@media (hover: hover) { .ghost-d:hover { background: #E8E5DF; } }
.ghost-d:active { scale: .96; }
.sh-foot .go { background: var(--amber); color: #FDF7EF; }
@media (hover: hover) { .sh-foot .go:hover { background: var(--amber-2); } }

/* Narrower: the artifact first, the story around it */
@media (max-width: 1180px) {
  .frame .bw { grid-template-columns: minmax(0, 600px); }
  .b-gutter { display: none; }
}
@media (max-width: 1100px) {
  .sh-body { display: flex; flex-direction: column; overflow: auto; }
  .sh-body::before { content: none; }
  .st { padding: 16px 16px 0; }
  .st-before { order: 1; }
  .frame { order: 2; flex: none; margin: 16px; overflow: visible; }
  .frame .bw { overflow: visible; padding: 24px 20px 28px; }
  .st-now { order: 3; overflow: visible; padding-top: 0; }
  .mail { max-height: 92px; }
}
@media (max-width: 640px) {
  .sheet { inset: 0; border-radius: 0; }
  .sh-top { height: 56px; }
  .frame { margin: 12px; }
  .frame .bw { padding: 20px 16px 24px; }
  .frame .w-bar .dots { display: none; }
  .bud-h { font-size: 22px; }
  .bud-hd { flex-direction: column; align-items: flex-start; gap: 16px; }
  .fc { text-align: left; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .fc b { font-size: 26px; } .fc span, .fc em { margin: 0; } .fc em { position: static; }
  .bud-foot { flex-wrap: wrap; }
  .bud-foot .approve { width: 100%; }
  .plan li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; padding: 12px 14px; }
  .plan li > span { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
  .sh-foot { padding: 12px; }
  .sh-foot .mk-l { width: 100%; }
  .sh-foot .ghost-d, .sh-foot .go { flex: 1; justify-content: center; }
}

/* Mini previews: the page's own palette */
.m-bars u { background: #EADFCB; }
.m-bars u.m-grow { background: var(--amber); }
@keyframes m-appr { 0%, 55% { background: var(--ink); } 65%, 100% { background: var(--green); } }
.m-poll-win, .m-opt i.m-win { background: #F2D3B5; }


/* Mini previews, v5 details: real avatars, no voids, nothing under 9px */
.rs-mini { background: #FCFBF9; }
.rs-mini .m-t { font-size: 11px; line-height: 14px; }
.rs-mini .m-sub { font-size: 9px; line-height: 12px; margin-top: 1px; }
img.m-av { object-fit: cover; padding: 0; }
.m-cm { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 5px; padding: 3px 8px 3px 3px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px rgb(43 38 34 / .1), 0 3px 8px -3px rgb(43 38 34 / .25); color: var(--ink); font-size: 9.5px; line-height: 14px; animation: m-pop 5s ease-out infinite; }
.m-cm-l { right: auto; left: 10px; }

/* Budget: the same sliders as the real page */
.m-sl { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 8px; margin-top: 8px; font-size: 9.5px; color: var(--ink-2); }
.m-sl i { position: relative; height: 4px; border-radius: 2px; background: #EEECE7; }
.m-sl b { position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); border-radius: 2px; background: var(--c); }
.m-sl u { position: absolute; top: -4px; left: var(--v); width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgb(43 38 34 / .14), 0 1px 2px rgb(43 38 34 / .25); }
.m-move-k b { animation: m-kw 5s var(--move) infinite; } .m-move-k u { animation: m-kl 5s var(--move) infinite; }
@keyframes m-kw { 0%, 20% { width: 33%; } 40%, 100% { width: 45%; } }
@keyframes m-kl { 0%, 20% { left: 33%; } 40%, 100% { left: 45%; } }
.m-foot { position: absolute; left: 11px; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: space-between; font-size: 9.5px; color: var(--ink-2); }
.m-foot b { color: var(--ink); font-size: 12px; font-weight: 500; }
.rs-mini .m-appr { position: static; padding: 3px 9px; font-size: 9.5px; line-height: 12px; background: var(--amber); color: #FDF7EF; animation: m-appr 5s ease infinite; }
@keyframes m-appr { 0%, 55% { background: var(--amber); } 65%, 100% { background: var(--green); } }

/* Spec: a small sequence, like the page */
.m-seq { position: relative; margin-top: 7px; }
.m-lanes { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; }
.m-lanes b { padding: 1px 6px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #E2E1DE; font-size: 9px; line-height: 13px; font-weight: 500; }
.m-ar { position: relative; height: 15px; margin-left: calc(var(--a) * 33.33% + 16.66%); width: calc((var(--b) - var(--a)) * 33.33%); border-bottom: 1px solid var(--ink); }
.m-ar span { position: absolute; left: 0; right: 0; bottom: 1px; text-align: center; font-size: 9px; line-height: 11px; color: var(--ink-2); white-space: nowrap; }
.m-ar::after { content: ""; position: absolute; bottom: -3px; border: 3px solid transparent; }
.m-ar[data-dir="r"]::after { right: -1px; border-left-color: var(--ink); border-right: 0; }
.m-ar[data-dir="l"]::after { left: -1px; border-right-color: var(--ink); border-left: 0; }
.m-ar.m-ok { border-color: var(--green); } .m-ar.m-ok span { color: var(--green); } .m-ar.m-ok::after { border-left-color: var(--green); }

/* Three designs: three real directions, one picked */
.m-vars > div { display: flex; flex-direction: column; gap: 4px; padding: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.m-vars b { font-size: 9px; line-height: 11px; color: var(--ink-2); }
.m-hero { position: relative; height: 34px; border-radius: 4px; }
.m-hero em { position: absolute; left: 5px; bottom: 5px; width: 18px; height: 6px; border-radius: 3px; background: var(--amber); }
.m-vars i { display: block; height: 4px; margin: 0; border-radius: 2px; background: #E6E3DD; }
.m-vars .m-pick { animation: m-pick 5s ease infinite; }
@keyframes m-pick { 0%, 40% { box-shadow: inset 0 0 0 1px var(--line); } 50%, 100% { box-shadow: inset 0 0 0 1.5px var(--amber); } }
.m-votes { position: absolute; left: 6px; bottom: 6px; display: flex; animation: m-pop 5s ease-out infinite; }
.m-votes .m-av + .m-av { margin-left: -4px; }

/* Client report: the trend the question is about */
.m-kpi em.m-bad { color: #A4401E; }
.m-spark { display: block; width: 100%; height: 40px; margin-top: 6px; }

/* Hiring */
.m-cols em { font: 500 9px/12px var(--k-sans); font-style: normal; color: var(--ink-3); }
.m-cols > div { background: #F3F1EC; }
.m-chip { font-size: 9.5px; }
@keyframes m-land { 0%, 45% { opacity: 0; transform: translateX(-30%); } 60%, 90% { opacity: 1; transform: none; box-shadow: 0 0 0 1.5px var(--green); } 100% { opacity: 0; } }

/* Poll: the counts, not just bars */
.m-opt { display: flex; align-items: center; background: #F3F1EC; }
.m-opt span { font-size: 9.5px; }
.m-opt em { position: relative; z-index: 1; margin-left: auto; padding-right: 7px; font-style: normal; font-size: 9px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.m-opt i { background: #E6E1D8; }

/* RSVP */
.m-rsvp { margin-top: 8px; }
.m-stack .m-av + .m-av { margin-left: -4px; }
.m-in { background: var(--green-soft); color: var(--green); font-size: 9.5px; }
.m-btns { position: absolute; left: 11px; right: 10px; bottom: 10px; display: flex; gap: 5px; }
.m-btns span { flex: 1; padding: 3px 0; border-radius: 999px; box-shadow: inset 0 0 0 1px #DCD8D0; text-align: center; font-size: 9.5px; line-height: 12px; color: var(--ink-2); }
.m-btns .m-on { background: var(--ink); box-shadow: none; color: #fff; }

/* Report */
.m-kpi span { font-size: 9.5px; }

/* Narrow tiles (two columns on phones): fewer words, no overlaps */
.rs-mini { container-type: inline-size; }
.m-kpi { white-space: nowrap; }
.m-cols > div { min-width: 0; }
.m-chip { min-width: 0; overflow: hidden; white-space: nowrap; }
@container (max-width: 200px) {
  .m-sl { grid-template-columns: 34px 1fr; margin-top: 6px; }
  .m-foot > span:first-child { display: none; }
  .m-foot { justify-content: flex-end; }
  .m-ar span { display: none; }
  .m-ar { height: 11px; }
  .m-kpi em { display: none; }
  .m-cols em { font-size: 8.5px; }
  .m-cols > div { padding: 4px; }
  .m-chip { padding: 3px 5px; }
  .m-chip .m-av { display: none; }
}

/* ---------- Before first, full size; the next step sits right under it ---------- */
.sh-body[data-stage="before"] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; grid-template-areas: "before"; place-items: center; overflow: auto; }
.sh-body[data-stage="before"]::before { content: none; }
.sh-body[data-stage="before"] :is(.st-now, .frame, .st-note) { display: none; }
.sh-body[data-stage="before"] .st-before { width: min(100%, 680px); padding: 24px 24px 56px; }
.sh-body[data-stage="before"] .st-before > .bf-head + * { zoom: 1.2; }
.sh-body[data-stage="before"] :is(.mail, .sk-long) { max-height: none; -webkit-mask-image: none; mask-image: none; }
.mail p + p { margin-top: 8px; }
/* Before, opened: the label on top and obvious, the pain in one short line, then the evidence */
.sh-body[data-stage="before"] .st-before > .st-k { width: fit-content; margin-bottom: 14px; padding: 4px 10px 4px 9px; border-radius: 6px; background: color-mix(in oklch, var(--ink) 8%, transparent); color: var(--ink); font-size: 13px; line-height: 20px; }
.bf-head { display: none; }
.sh-body[data-stage="before"] .bf-head { display: block; margin-bottom: 22px; }
.bf-head h2 { margin: 0; font: 400 30px/38px var(--serif); letter-spacing: 0; text-wrap: balance; }
.bf-head p { margin: 8px 0 0; font-size: 15px; line-height: 22px; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 640px) { .bf-head h2 { font-size: 24px; line-height: 32px; } }
.sk-re { margin-left: 30px; }
.bf-cta { display: none; }
.sh-body[data-stage="before"] .bf-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; }
.bf-cta p { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink-2); text-wrap: pretty; }
.bf-go { flex: none; gap: 8px; height: 44px; padding: 0 16px 0 20px; background: var(--amber); color: #FDF7EF; font-size: 15px; box-shadow: 0 8px 20px -10px rgb(178 95 40 / .7); }
@media (hover: hover) { .bf-go:hover { background: var(--amber-2); } }
/* The Before card, emptied, growing into the page's window (stage.js) */
.morph { position: fixed; z-index: 70; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgb(43 38 34 / .09), 0 18px 40px -24px rgb(43 38 34 / .35); pointer-events: none; }
/* After the switch: one quiet line about what to do next. It steps aside for the closing call to action. */
/* What to do next: a dark bar floating over the page, arriving once the page has opened */
.guide { position: absolute; z-index: 5; left: calc(340px + (100% - 340px) / 2); bottom: 36px; translate: -50% 0; width: max-content; max-width: calc(100% - 340px - 64px); min-height: 0; flex-wrap: nowrap; gap: 12px; padding: 12px 18px 12px 12px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 0 16px 40px -12px rgb(43 38 34 / .45); animation: rise 300ms var(--out) 600ms both; }
.guide b { flex: none; padding: 3px 9px; border-radius: 6px; background: rgb(255 255 255 / .12); color: #E3B98D; font-size: 12px; line-height: 18px; font-weight: 500; }
.guide .mk-l { margin: 0; font-weight: 400; font-size: 14px; line-height: 20px; text-wrap: pretty; }
/* The ring on a wide target only breathes; a 6% scale would throw it across the page */
:is(.ch-r, .pl-opts)[data-cue]::after { inset: -6px -10px; border-radius: 10px; animation-name: cue-wide; }
.ask[data-cue]::after { inset: -3px -6px; border-radius: 6px; }
@keyframes cue-wide { 0% { opacity: .9; } 70%, 100% { opacity: 0; transform: scale(1.012, 1.2); } }
@media (max-width: 1100px) { .guide { position: fixed; left: 50%; bottom: 12px; max-width: calc(100% - 24px); } }
/* Where to look: the instruction moves to the thing it is about. Older browsers keep the bar at the bottom. */
@supports (position-area: bottom) {
  [data-cue] { anchor-name: --cue; }
  .guide[data-at] { position: absolute; position-anchor: --cue; position-area: bottom; inset: auto; translate: none; margin: 12px 8px; max-width: 360px; position-try-fallbacks: flip-block; position-visibility: anchors-visible; }
}
@media (prefers-reduced-motion: reduce) { .guide { animation: none; } }
.sh-body[data-stage="before"] ~ .guide, #make:not([hidden]) ~ .guide { display: none; }
@media (max-width: 640px) {
  .sh-body[data-stage="before"] .st-before > .bf-head + * { zoom: 1; }
  .sh-body[data-stage="before"] .st-before { padding: 20px 16px 32px; }
  .sh-body[data-stage="before"] .bf-cta { flex-direction: column; align-items: stretch; gap: 14px; }
  .bf-go { justify-content: center; }
}

/* Tiles: a preview, a name, one line. The rest is inside. */
.tile { padding-bottom: 16px; }
.tile b { margin-top: 2px; }
.tile-line { padding: 0 4px; font-size: 13px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
/* Previews rest until pointed at; eight things moving at once reads as noise. */
.tile:not(:hover):not(:focus-visible) .rs-mini * { animation: none !important; }
.tile:not(:hover):not(:focus-visible) .rs-mini :is(.m-land, .m-in) { display: none; }
.dk-label { margin: 72px 0 0; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-3); }
.dk-label + .tiles { margin-top: 12px; }
@media (max-width: 640px) { .dk-label { margin-top: 48px; } }

/* Budget rows carry the reasoning the message used to bury */
.ch-f { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.ch-w { min-width: 0; text-wrap: pretty; }
.ch-f .ch-s { flex: none; }
.rec { width: 2px; height: 8px; background: var(--ink-2); }
.ask { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--amber-text); font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #E8CFAE; cursor: pointer; transition: color 150ms ease, text-decoration-color 150ms ease; }
@media (hover: hover) { .ask:hover { color: var(--amber-2); text-decoration-color: currentColor; } }
/* A pin and its thread point at each other */
.c-pin { cursor: default; transition: transform 250ms var(--out), opacity 150ms ease, box-shadow 150ms ease; }
.c-pin .c-you { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); color: #fff; font: 500 8px/1 var(--sans); }
.c-pin[data-hot] { box-shadow: 0 0 0 2px var(--ink), 0 2px 6px rgb(43 38 34 / .18); }
.b-th { transition: opacity 200ms var(--out), transform 250ms var(--out), top 300ms var(--move), box-shadow 150ms ease; }
.b-th[data-hot] { box-shadow: 0 0 0 1.5px var(--ink), 0 8px 24px -12px rgb(43 38 34 / .3); }
.th-you { display: grid; place-items: center; background: var(--ink); color: #fff; font: 500 9px/1 var(--sans); }
@media (max-width: 640px) { .ch-f { flex-direction: column; gap: 2px; } }

/* hero.css */
/* Hero: the loop in three windows. The captions carry the message; the motion
   plays once and only adds the order things happen in. */
.dk-hero { max-width: 760px; }
.dk-hero h1 { font-size: 44px; }
.dk > .dk-hint { margin: 40px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.dk > .dk-hint + .tiles { margin-top: 12px; }
@media (max-width: 640px) { .dk-hero h1 { font-size: 32px; } }

.loop { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.lp-step { min-width: 0; }
.lp-win { display: flex; flex-direction: column; height: 300px; overflow: hidden; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px rgb(43 38 34 / .08), 0 14px 28px -18px rgb(43 38 34 / .3); user-select: none; pointer-events: none; }
.lp-win .w-bar { height: 34px; gap: 8px; padding: 0 10px; }
.lp-win .dots i { width: 8px; height: 8px; }
.lp-win .w-name { font-size: 12px; }
.lp-cap { display: flex; gap: 10px; margin: 12px 2px 0; font-size: 14px; line-height: 20px; color: var(--ink-2); text-wrap: pretty; }
.lp-cap i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font: 500 11px/1 var(--sans); font-style: normal; font-variant-numeric: tabular-nums; }
.lp-cap b { color: var(--ink); font-weight: 500; }

/* 1. Claude Code */
.lp-term { background: var(--term-bg); }
.lp-term .w-bar { background: #2E2924; border-color: rgb(255 255 255 / .06); }
.lp-term .dots i { background: rgb(255 255 255 / .14); }
.lp-term .w-name { color: var(--term-fg); }
.lp-log { flex: 1; overflow: hidden; padding: 10px 12px; color: #B5AEA2; font: 10.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.lp-log b { color: var(--term-fg); font-weight: 500; }
.lp-you-l { color: #fff; }
.lp-ok { color: #B7C79F; }

/* 2. Slack */
.lp-slack .w-bar { background: #FAFAF9; }
.lp-feed { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 12px; overflow: hidden; }
.lp-feed .sl-msg { gap: 8px; font-size: 12.5px; line-height: 1.4; }
.lp-feed .sl-msg .av { width: 26px; height: 26px; border-radius: 6px; }
.lp-feed .sl-who { font-size: 12.5px; } .lp-feed .sl-who time { font-size: 11px; }
.lp-you { display: grid; place-items: center; background: var(--ink); color: #fff; font: 500 9px/1 var(--sans); }
.lp-feed .unfurl { gap: 10px; margin-top: 5px; padding: 6px 8px 6px 10px; border-left-width: 3px; }
.lp-feed .unfurl small { font-size: 11px; } .lp-feed .unfurl b { font-size: 12.5px; } .lp-feed .unfurl span span { font-size: 11.5px; }
.lp-feed .uf-thumb { width: 64px; height: 44px; padding: 5px; }
.lp-feed .uf-thumb i { height: 3px; margin-bottom: 3px; } .lp-feed .uf-thumb i:first-child { height: 4px; } .lp-feed .uf-thumb i:nth-child(4) { height: 10px; }
.uf-thumb i:nth-child(4) { background: linear-gradient(90deg, #F5E7D3 30%, #fff 0 34%, #EEECE7 0 64%, #fff 0 68%, #E9EEE1 0); }

/* 3. The page */
.lp-page .w-bar { background: var(--trim); border-bottom-color: var(--trim-line); }
.lp-page .dots i { background: #E2D5BD; }
.lp-page .url { padding: 4px 9px; background: rgb(255 255 255 / .7); box-shadow: inset 0 0 0 1px var(--trim-line); font-size: 10.5px; }
.lp-ver { position: relative; margin-left: auto; display: grid; height: 20px; padding: 0 8px; border-radius: 999px; background: rgb(255 255 255 / .7); box-shadow: inset 0 0 0 1px var(--trim-line); font: 500 10.5px/20px var(--mono); color: var(--ink); overflow: hidden; }
.lp-ver b { grid-area: 1 / 1; font-weight: 500; transition: transform 250ms var(--out), opacity 200ms ease; }
.lp-ver b:last-child { transform: translateY(100%); opacity: 0; }
.lp-doc { position: relative; flex: 1; padding: 14px 14px 0; }
.lp-h { display: flex; align-items: center; gap: 8px; }
.lp-h b { font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: -0.02em; }
.lp-chip { padding: 0 7px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-text); font: 500 10px/17px var(--sans); transition: background-color 300ms ease, color 300ms ease; }
.lp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.lp-kpis div { padding: 7px 8px; border-radius: 8px; background: #F7F6F3; }
.lp-kpis b { display: block; font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lp-kpis span { display: block; margin-top: 1px; font-size: 9.5px; line-height: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-gantt { margin-top: 10px; padding: 4px 8px 6px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.lp-gh, .lp-gr { position: relative; display: grid; grid-template-columns: 54px repeat(5, minmax(0, 1fr)); align-items: center; height: 20px; font-size: 9.5px; color: var(--ink-3); }
.lp-gh span { text-align: center; } .lp-gr > span { color: var(--ink); font-size: 10.5px; }
.lp-gr i { grid-row: 1; height: 8px; border-radius: 4px; }
.lp-b1 { grid-column: 2; background: #D9D2C6; }
.lp-b2 { grid-column: 3 / 6; background: var(--blue); transform-origin: 0 50%; }
.lp-b3 { position: relative; grid-column: 3; background: var(--amber); transition: transform 500ms var(--move); }
.lp-v2 { opacity: 0; transition: opacity 300ms var(--out); }
.lp-v2 .lp-b2 { transform: scaleX(.2); transition: transform 450ms var(--out); }
.lp-pin { position: absolute; right: -7px; top: -13px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50% 50% 50% 3px; background: var(--paper); box-shadow: 0 0 0 1px rgb(43 38 34 / .12), 0 2px 6px rgb(43 38 34 / .2); transform-origin: 0 100%; transition: transform 250ms var(--out), opacity 150ms ease; }
.lp-pin img { width: 14px; height: 14px; border-radius: 50%; }
.lp-th { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--paper); box-shadow: 0 0 0 1px rgb(43 38 34 / .08), 0 8px 20px -12px rgb(43 38 34 / .35); font-size: 11px; line-height: 15px; transform-origin: 30% 0; transition: opacity 200ms var(--out), transform 250ms var(--out); }
.lp-m { display: flex; gap: 6px; } .lp-m p { margin: 0; } .lp-m b { font-weight: 500; }
.lp-m img, .lp-cl { flex: none; width: 15px; height: 15px; border-radius: 50%; }
.lp-cl { display: grid; place-items: center; background: #F6E4DA; }
.lp-re { margin-top: 6px; padding-top: 6px; border-top: 1px solid #F1F0ED; transition: opacity 250ms var(--out); }

/* The sequence: data-at counts up; each part appears at its number and stays. */
.dk[data-at="0"] .lp-doc > *, .dk[data-at="1"] .lp-doc > *, .dk[data-at="2"] .lp-doc > * { opacity: 0; }
.lp-doc > .lp-h, .lp-doc > .lp-kpis, .lp-doc > .lp-gantt { transition: opacity 300ms var(--out); }
.loop:is([data-at="0"], [data-at="1"], [data-at="2"], [data-at="3"]) :is(.lp-pin, .lp-th) { opacity: 0; transform: scale(.95); }
.loop:is([data-at="0"], [data-at="1"], [data-at="2"], [data-at="3"], [data-at="4"]) .lp-re { opacity: 0; }
.dk[data-at="6"] .lp-v2 { opacity: 1; } .dk[data-at="6"] .lp-v2 .lp-b2 { transform: none; }
.dk[data-at="6"] .lp-b3 { transform: translateX(300%); }
.dk[data-at="6"] .lp-chip { background: var(--green-soft); color: var(--green); }
.dk[data-at="6"] .lp-ver b:first-child { transform: translateY(-100%); opacity: 0; }
.dk[data-at="6"] .lp-ver b:last-child { transform: none; opacity: 1; }
/* Resting state on a repeat visit: no entrance at all */
.loop:not([data-live]) *, .loop:not([data-live]) .sl-msg { transition: none !important; animation: none !important; }

.lp-replay { position: absolute; right: 0; top: -34px; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: #EDEBE6; color: var(--ink-2); font-size: 12px; font-weight: 500; cursor: pointer; transition: scale 150ms ease-out, background-color 150ms ease, color 150ms ease; }
@media (hover: hover) { .lp-replay:hover { background: #E4E1DA; color: var(--ink); } }
.lp-replay:active { scale: .96; }

@media (max-width: 960px) {
  .loop { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lp-win { height: 280px; }
  .lp-replay { position: static; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .loop * { transition: none !important; animation: none !important; } }

/* hero-things.css */
/* The headline is a sentence made of things: each noun is a small object,
   so the idea reads from the pictures before the words. */
.dk-hero--things { max-width: 1000px; }
.dk-hero--things h1 { font-size: 50px; line-height: 1.32; letter-spacing: -0.035em; font-weight: 500; text-wrap: pretty; }
.hc { position: relative; top: -4px; display: inline-flex; align-items: center; gap: 10px; height: 58px; margin: 0 4px; padding: 0 16px 0 8px; vertical-align: middle; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px rgb(43 38 34 / .1), 0 10px 22px -14px rgb(43 38 34 / .35); font-size: 30px; letter-spacing: -0.02em; white-space: nowrap; animation: hc-in .5s var(--out) both; }
.hc-page { animation-delay: .45s; } .hc-use { animation-delay: .9s; }
@keyframes hc-in { from { opacity: 0; transform: translateY(6px) scale(.96); } }
.hc-wall { color: var(--ink-3); }
.hc-wall .hc-ic { display: grid; gap: 4px; align-content: start; width: 44px; height: 42px; padding: 7px 6px; border-radius: 9px; background: #F3F1EC; }
.hc-wall .hc-ic i { height: 3px; border-radius: 2px; background: #CFC8BC; }
.hc-wall .hc-ic i:nth-child(2n) { width: 80%; } .hc-wall .hc-ic i:nth-child(3n) { width: 90%; }
.hc-page .hc-ic { position: relative; width: 52px; height: 42px; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.hc-page .hc-ic::before { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: var(--trim, #F6EFE2); border-bottom: 1px solid var(--trim-line, #E8DCC4); }
.hc-page .hc-ic i { position: absolute; left: 7px; width: 38px; height: 3px; border-radius: 2px; }
.hc-page .hc-ic i:nth-child(1) { top: 16px; background: linear-gradient(90deg, #2B2622 60%, #EEECE7 0); }
.hc-page .hc-ic i:nth-child(2) { top: 23px; background: linear-gradient(90deg, #B25F28 35%, #EEECE7 0); }
.hc-page .hc-ic b { position: absolute; right: 6px; bottom: 6px; width: 16px; height: 6px; border-radius: 3px; background: var(--amber, #B25F28); }
.hc-page { color: var(--amber-text, #8A4A1B); }
.hc-use { color: var(--amber-text, #8A4A1B); }
.hc-use .hc-ic { display: flex; }
.hc-use .hc-ic img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.hc-use .hc-ic img + img { margin-left: -10px; }
@media (max-width: 640px) {
  .dk-hero--things h1 { font-size: 32px; line-height: 1.5; }
  .hc { top: -3px; height: 44px; gap: 8px; padding: 0 12px 0 6px; border-radius: 12px; font-size: 22px; }
  .hc-wall .hc-ic, .hc-page .hc-ic { transform: scale(.75); margin: 0 -5px; }
  .hc-use .hc-ic img { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) { .hc { animation: none; } }

/* hero-words.css */
/* The artifact.cafe review-loop note, used by B and C */
.rl-win { overflow: hidden; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px rgb(43 38 34 / .09), 0 32px 64px -32px rgb(43 38 34 / .5); }
.rl-bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; background: var(--trim); border-bottom: 1px solid var(--trim-line); }
.rl-bar i { width: 9px; height: 9px; border-radius: 50%; background: #E2D5BD; }
.rl-bar .u { margin-left: 4px; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / .7); box-shadow: inset 0 0 0 1px var(--trim-line); font: 12px/1 var(--mono); }
.rl-bar .v { margin-left: auto; display: inline-flex; padding: 2px; border-radius: 999px; background: rgb(255 255 255 / .55); box-shadow: inset 0 0 0 1px var(--trim-line); font: 11px/1 var(--mono); }
.rl-bar .v b { padding: 4px 9px; border-radius: 999px; font-weight: 400; color: var(--ink-2); }
.rl-bar .v b.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(43 38 34 / .14); }
.rl-body { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; padding: 26px 28px 28px; }
.rl-k { font-size: 12px; color: var(--ink-3); }
.rl-h { margin: 4px 0 0; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.rl-p { position: relative; margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: #FCFBF9; box-shadow: inset 0 0 0 1px var(--line); }
.rl-p small { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 6px; }
.rl-old { font-size: 16px; line-height: 1.4; color: var(--ink-3); text-decoration: line-through; text-decoration-color: #CFC8BC; }
.rl-new { margin-top: 6px; font-size: 18px; line-height: 1.35; font-weight: 500; color: var(--ink); }
.rl-new mark { background: var(--amber-soft); color: inherit; border-radius: 4px; padding: 0 3px; }
.rl-ver { display: flex; gap: 10px; margin-top: 16px; }
.rl-ver span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: #F3F1EC; font-size: 12px; color: var(--ink-2); }
.rl-ver span b { font: 500 11px/1 var(--mono); color: var(--ink); }
.rl-pin { position: absolute; right: -11px; top: 14px; width: 22px; height: 22px; padding: 2px; border-radius: 50% 50% 50% 4px; background: #fff; box-shadow: 0 0 0 1px rgb(43 38 34 / .12), 0 2px 6px rgb(43 38 34 / .2); }
.rl-pin img { width: 18px; height: 18px; border-radius: 50%; display: block; }
.rl-th { align-self: start; padding: 12px 14px; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px rgb(43 38 34 / .08), 0 12px 26px -14px rgb(43 38 34 / .35); font-size: 13px; line-height: 1.45; }
.rl-m { display: flex; gap: 9px; }
.rl-m + .rl-m { margin-top: 10px; padding-top: 10px; border-top: 1px solid #F1F0ED; }
.rl-m img, .rl-m .cl { width: 22px; height: 22px; flex: none; border-radius: 50%; }
.rl-m .cl { display: grid; place-items: center; background: #F6E4DA; }
.rl-m b { display: block; font-size: 12px; font-weight: 500; } .rl-m b em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.rl-m p { margin: 1px 0 0; }
.rl-res { display: inline-block; margin-top: 10px; padding: 1px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 500; }

/* The terminal it came from */
.rl-term { overflow: hidden; border-radius: 12px; background: #26221E; color: #B5AEA2; font: 12px/1.65 var(--mono); box-shadow: 0 0 0 1px rgb(43 38 34 / .2); }
.rl-term .h { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-bottom: 1px solid rgb(255 255 255 / .07); color: #E8E3D9; font: 500 12px/1 var(--sans); }
.rl-term pre { margin: 0; padding: 12px 14px; white-space: pre-wrap; font: inherit; }
.rl-term pre b { color: #E8E3D9; font-weight: 500; }
.rl-term pre .ok { color: #B7C79F; } .rl-term pre .y { color: #E3B98D; }

/* E · the three windows live inside the headline's words */
.dk-hero--things { position: relative; }
button.hc { border: 0; font: inherit; font-size: 30px; color: inherit; cursor: pointer; text-decoration: underline dotted 2px; text-decoration-color: #D9D1C3; text-underline-offset: 6px; transition: box-shadow 200ms ease, transform 200ms var(--out), background-color 200ms ease; }
button.hc.hc-wall { color: var(--ink-3); } button.hc.hc-page, button.hc.hc-use { color: var(--amber-text, #8A4A1B); }
@media (hover: hover) { button.hc:hover { transform: translateY(-2px); } }
button.hc[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--amber, #B25F28), 0 16px 30px -14px rgb(43 38 34 / .45); text-decoration-color: transparent; }
button.hc:focus-visible { outline: 2px solid var(--amber, #B25F28); outline-offset: 3px; }
.pv-hint { margin: 14px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-3); }

/* The window opens under its word, as part of the headline, not over the words */
.pv { position: absolute; z-index: 30; width: 460px; opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: var(--ox, 50%) 0; transition: opacity 160ms ease, transform 220ms var(--out); pointer-events: none; }
.pv[data-in] { opacity: 1; transform: none; pointer-events: auto; }
.pv::before { content: ""; position: absolute; left: var(--ox, 50%); top: -6px; width: 12px; height: 12px; margin-left: -6px; background: var(--paper); transform: rotate(45deg); box-shadow: -1px -1px 0 rgb(43 38 34 / .09); border-radius: 2px 0 0 0; }
#pv-wall::before { background: #26221E; }
.pv .rl-term { border-radius: 12px; box-shadow: 0 0 0 1px rgb(43 38 34 / .2), 0 30px 60px -28px rgb(43 38 34 / .55); }
.pv .rl-term .h em { margin-left: auto; font: 11px/1 var(--mono); font-style: normal; color: #8F887D; }
.pv .rl-term pre { max-height: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.pv .rl-win { box-shadow: 0 0 0 1px rgb(43 38 34 / .09), 0 30px 60px -28px rgb(43 38 34 / .5); }
.pv-b { padding: 18px 20px 20px; }
.pv-b .rl-h { font-size: 20px; }
.pv-b .rl-p { margin-top: 14px; }
.pv-row { display: flex; gap: 8px; margin-top: 14px; }
.pv-row span { padding: 3px 9px; border-radius: 999px; background: #F3F1EC; font-size: 12px; color: var(--ink-2); }
.pv-th { margin-top: 14px; box-shadow: 0 0 0 1px rgb(43 38 34 / .08); }
.pv-cap { margin: 10px 4px 0; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.pv-cap b { color: var(--ink); font-weight: 500; }

@media (max-width: 640px) {
  button.hc { font-size: 22px; text-underline-offset: 4px; }
  .pv { left: 0 !important; right: 0; width: auto; }
  .pv .rl-term pre { max-height: 200px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .pv { transition: none; } }

/* The popup is one card: the window and its caption on paper, over the page */
.pv { padding: 8px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1px rgb(43 38 34 / .08), 0 34px 70px -26px rgb(43 38 34 / .55); }
#pv-wall::before { background: var(--paper); }
.pv .rl-win, .pv .rl-term { box-shadow: 0 0 0 1px rgb(43 38 34 / .1); border-radius: 12px; }
.dk-hero .pv p { margin: 0; font-size: 13px; line-height: 1.45; color: inherit; max-width: none; }
.dk-hero .pv .pv-cap { margin: 10px 6px 4px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.dk-hero .pv .rl-m p { margin-top: 1px; color: var(--ink); }

.dk-hero .pv-hint { margin: 16px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.dk-hero--things + .dk-hint { margin-top: 36px; }

/* The three existing windows, now inside the headline's popups */
.pv-lp .lp-win { height: 300px; box-shadow: 0 0 0 1px rgb(43 38 34 / .1); }
.pv-lp .pv-cap span { display: inline; }
.pv-lp .pv-cap b { color: var(--ink); }
#pv-wall .lp-win { background: #26221E; }

/* theme.css */
/* The working app's theme, from the dev branch (globals.css tokens, DESIGN.md §5 and §7).
   Loaded last in every bundle so one file carries it. */
@font-face { font-family: "Geist Serif"; src: url("fonts/GeistSerif-Variable.woff2") format("woff2"); font-weight: 400; font-display: swap; }
body.hub, body.sc {
  --bg: oklch(0.972 0.003 70); --paper: #fff;
  --ink: oklch(0.235 0.008 70); --ink-2: oklch(0.53 0.012 70); --ink-3: oklch(0.68 0.01 70);
  --line: oklch(0.925 0.005 70); --line-soft: oklch(0.952 0.004 70);
  --amber: oklch(0.574 0.127 50.748); --amber-ink: oklch(0.979 0.012 75.369);
  --trim: oklch(0.954 0.019 83.064); --trim-line: oklch(0.898 0.035 84.586);
  --term-bg: oklch(0.255 0.01 67.378); --term-fg: oklch(0.917 0.014 84.585);
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --serif: "Geist Serif", "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  /* an alias resolves where it is declared, so the previews' names are restated here */
  --k-ink: var(--ink); --k-ink-2: var(--ink-2); --k-ink-3: var(--ink-3); --k-line: var(--line); --k-sans: var(--sans); --k-mono: var(--mono);
  letter-spacing: -0.15px;
}
b, strong { font-weight: 500; }

/* Titles are Geist Serif at its one weight, untracked, never below 18px */
.dk-hero--things h1 { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.dk-head { margin-top: 64px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.dk-head .dk-label { margin: 0; font: 400 20px/24px var(--serif); letter-spacing: 0; color: var(--ink); }
.dk-head p { margin: 4px 0 0; font-size: 13px; line-height: 20px; color: var(--ink-2); }
.sh-t b { font: 400 18px/24px var(--serif); letter-spacing: 0; }

/* Gallery cards, as on the dashboard: thin line, 8px corners, preview flush on top */
.dk-head + .tiles { gap: 16px; margin-top: 16px; }
.tile { gap: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; box-shadow: none; transition: border-color 150ms ease, box-shadow 150ms ease; }
@media (hover: hover) { button.tile:hover, a.tile:hover { translate: none; border-color: var(--trim-line); box-shadow: 0 10px 30px rgb(42 33 24 / .08); } }
.tile .rs-mini { height: auto; aspect-ratio: 1200 / 630; margin: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line-soft); background: var(--bg); }
.tile > b { margin: 0; padding: 14px 16px 0; font-size: 13px; line-height: 20px; letter-spacing: inherit; transition: color 150ms ease; }
@media (hover: hover) { .tile:hover > b { color: var(--amber); } }
.tile-line { padding: 4px 16px 0; font-size: 12px; line-height: 18px; }
.tile-was { margin-top: auto; padding: 12px 16px; font-size: 11px; line-height: 16px; color: var(--ink-3); }
@media (max-width: 960px) { .tile .rs-mini { height: 128px; aspect-ratio: auto; } }

/* Raised buttons: depth from a ring, a top highlight and two drops; control radius */
.go, .bf-go, .top-cta, .clock {
  border-radius: 10px; background: var(--amber) linear-gradient(rgb(255 255 255 / .1), rgb(255 255 255 / 0) 60%); color: var(--amber-ink); font-weight: 500;
  text-shadow: 0 1px .5px rgb(0 0 0 / .12);
  box-shadow: inset 0 1px .5px 0 rgb(255 255 255 / .2), 0 2px 2px -1px rgb(42 33 24 / .14), 0 4px 4px -2px rgb(42 33 24 / .16), 0 0 0 1px color-mix(in oklch, var(--amber) 88%, black);
  transition: scale 150ms cubic-bezier(.23, 1, .32, 1), background-color 150ms cubic-bezier(.23, 1, .32, 1);
}
@media (hover: hover) { .go:hover, .bf-go:hover, .top-cta:hover, .clock:hover { background: color-mix(in oklch, var(--amber) 90%, white) linear-gradient(rgb(255 255 255 / .1), rgb(255 255 255 / 0) 60%); } }
.ghost-d {
  border-radius: 10px; background: var(--paper); color: var(--ink-2);
  box-shadow: inset 0 1px .5px 0 rgb(255 255 255 / .6), 0 2px 2px -1px rgb(42 33 24 / .06), 0 4px 4px -2px rgb(42 33 24 / .04), 0 1px 0 0 rgb(42 33 24 / .17), 0 0 0 1px rgb(42 33 24 / .11);
}
@media (hover: hover) { .ghost-d:hover { background: var(--bg); color: var(--ink); } }
.ghost { border-radius: 10px; }
:focus-visible { outline: 2px solid color-mix(in oklch, var(--ink) 50%, transparent); outline-offset: 2px; }

