/* The RHM Lab. Palette after Lusion's: paper-white, ink, RHM's own blue (#4063D7).
   Geist for words, Geist Mono for the small technical labels in the scene (after Igloo). */
:root { --bg: #0a0f1e; --ink: #e9edf8; --muted: #9aa3b8; --blue: #6a86f0; --signal: #22c3ee; --line: #263152; --panel: rgba(18,26,48,.94); color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font: 500 15px/1.5 "Geist", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
#lab { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; }
a { color: inherit; }
.hud-top { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 24px; padding: 18px 22px; pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; letter-spacing: -.01em; text-decoration: none; }
.tag { margin: 0; color: var(--muted); font-size: 14px; }
.skip { margin-left: auto; font-size: 14px; text-decoration: none; background: #18223d; color: var(--ink); padding: 9px 14px; border-radius: 999px; }
.skip:hover { background: var(--blue); }
.loading { position: fixed; inset: 0; display: grid; place-content: center; gap: 12px; background: var(--bg); font: 500 13px "Geist Mono", monospace; letter-spacing: .04em; color: var(--muted); transition: opacity .6s; z-index: 5; }
.loading i { display: block; width: 180px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.loading i::after { content: ""; position: absolute; inset: 0; width: var(--p, 10%); background: var(--blue); transition: width .3s; }
.loading.done { opacity: 0; pointer-events: none; }
.hint { position: fixed; left: 22px; bottom: 22px; background: var(--panel); padding: 12px 16px; border-radius: 14px; font-size: 13px; box-shadow: 0 6px 24px rgba(13,15,20,.08); transition: opacity .6s; }
.hint p { margin: 0; }
.hint-sub { color: var(--muted); margin-top: 4px !important; }
kbd { font: 500 11px "Geist Mono", monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; margin: 0 1px; background: #0a0f1e; color: var(--ink); }
.labels { position: fixed; inset: 0; pointer-events: none; }
.lbl { position: absolute; left: 0; top: 0; font: 500 11px/1.35 "Geist Mono", monospace; letter-spacing: .03em; color: var(--ink); white-space: nowrap; transform: translate(-50%, -100%); will-change: transform; }
.lbl b { display: block; font: 600 13px "Geist", sans-serif; letter-spacing: 0; }
.lbl::before { content: ""; display: block; width: 1px; height: 18px; background: var(--ink); margin: 0 auto 6px; order: 2; }
.station { position: fixed; right: 22px; bottom: 22px; width: min(380px, calc(100vw - 44px)); background: var(--panel); border-radius: 18px; padding: 20px 22px; box-shadow: 0 12px 40px rgba(13,15,20,.14); animation: rise .35s cubic-bezier(.2,.7,.1,1); }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.station-k { margin: 0; font: 500 11px "Geist Mono", monospace; letter-spacing: .06em; color: var(--blue); text-transform: uppercase; }
.station h2 { margin: 6px 0 8px; font-size: 22px; line-height: 1.15; letter-spacing: -.02em; }
.station p { margin: 0; color: #c9d0e2; }
.station-act { margin-top: 14px !important; display: flex; gap: 14px; align-items: center; }
.btn { display: inline-block; background: var(--blue); color: #0a0f1e; text-decoration: none; padding: 10px 16px; border-radius: 999px; font-weight: 500; }
.btn:hover { background: #8299f4; }
.ghost { font-size: 14px; }
.pad { position: fixed; right: 16px; bottom: 16px; display: none; grid-template-columns: repeat(4, 56px); gap: 8px; }
.pad button { width: 56px; height: 56px; border-radius: 16px; border: 0; background: var(--panel); font-size: 18px; color: var(--ink); box-shadow: 0 4px 16px rgba(13,15,20,.1); touch-action: none; }
.pad button.on { background: var(--blue); color: #fff; }
@media (hover: none) and (pointer: coarse) {
  .pad { display: grid; }
  .hint p:first-child { display: none; }
  .station { bottom: 92px; }
  .tag { display: none; }
}
.tour-go { margin-left: auto; font: inherit; font-size: 14px; background: var(--blue); color: #fff; border: 0; padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.tour-go:hover { background: #3556c8; }
.tour-go + .skip { margin-left: 0; }
.touring .tour-go { background: var(--ink); }
.tour { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: var(--panel); padding: 8px 10px; border-radius: 999px; box-shadow: 0 8px 28px rgba(13,15,20,.12); z-index: 3; }
.tour[hidden] { display: none; }
.tour button { font: inherit; font-size: 14px; border: 0; background: transparent; color: var(--ink); width: 36px; height: 36px; border-radius: 999px; cursor: pointer; }
.tour button:hover { background: #e3e6ec; }
.tour .tour-end { width: auto; padding: 0 14px; white-space: nowrap; background: var(--ink); color: #fff; }
.tour .tour-end:hover { background: var(--blue); }
.tour-n { font: 500 12px "Geist Mono", monospace; letter-spacing: .04em; min-width: 3.4em; text-align: center; }
.tour-bar { display: block; width: 64px; height: 2px; background: #d6d9e0; border-radius: 2px; overflow: hidden; }
.tour-bar i { display: block; height: 100%; width: 0; background: var(--blue); }
.touring .hint, .touring .pad { display: none !important; }
.touring .station { bottom: 84px; }
.nogl { position: fixed; inset: 0; margin: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 80px 16px 24px; text-align: center; }
.nogl img { width: min(1100px, 100%); height: auto; border-radius: 14px; }
.capture .loading, .capture .hud-top, .capture .hint, .capture .station, .capture .tour, .capture .pad { display: none !important; }
.still .hint, .still .pad, .still .tour-go, .still .loading { display: none; }
@media (prefers-reduced-motion: reduce) { .station { animation: none; } }
@media (max-width: 600px) {
  .tag { display: none; } .hint { left: 12px; right: 12px; bottom: 88px; }
  .hud-top { gap: 10px; padding: 14px 12px; } .skip { display: none; } .tour-go { font-size: 13px; }
  .tour { bottom: 14px; gap: 4px; } .tour .tour-end { padding: 0 12px; } .tour-bar { width: 36px; }
  .touring .station { bottom: 76px; right: 12px; width: calc(100vw - 24px); }
}
/* sound toggle */
.snd { margin-left: auto; font: inherit; font-size: 14px; background: var(--panel); color: var(--ink); border: 1px solid #d6d9e0; padding: 8px 13px; border-radius: 999px; cursor: pointer; }
.snd[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); }
.snd + .tour-go { margin-left: 0; }
.still .snd { display: none; }
/* the real tools inside a station */
.station-tool { margin-top: 14px; }
.station-tool[hidden] { display: none; }
.tool-check label { display: block; font: 500 11px "Geist Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tool-row { display: flex; gap: 8px; }
.tool-row input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid #c9cdd6; border-radius: 10px; background: #fff; color: var(--ink); }
.tool-row input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.tool-row button { font: inherit; border: 0; background: var(--ink); color: #fff; padding: 0 16px; border-radius: 10px; cursor: pointer; }
.tool-row button:hover { background: var(--blue); }
.tool-row button:disabled { opacity: .6; cursor: progress; }
.tool-say { margin: 8px 0 0 !important; font-size: 13px; color: var(--muted) !important; }
.tool-say:empty { display: none; }
.tool-out { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.tool-out li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 13px; padding-left: 16px; position: relative; }
.tool-out li::before { content: ""; position: absolute; left: 0; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: #9aa1ae; }
.tool-out li.s-green::before { background: #1f8a52; } .tool-out li.s-amber::before, .tool-out li.s-yellow::before { background: #c98a10; } .tool-out li.s-red::before { background: #c8402f; }
.tool-out li b { font-weight: 500; } .tool-out li span { color: var(--muted); white-space: nowrap; font-size: 12px; }
/* the assistant opens from the AI station, not from its own floating button */
.assist-launcher { display: none !important; }
.asking .station, .asking .hint { display: none !important; }
.station { max-height: calc(100dvh - 190px); overflow: auto; overscroll-behavior: contain; }
.touring .station { max-height: calc(100dvh - 170px); }
.tool-out li b { line-height: 1.35; }
@media (max-width: 600px) { .snd { padding: 7px 10px; font-size: 13px; } }

/* the RHM brand, dark (11 Nov 2026): panels with a hairline, the tour and sound controls on the navy */
.station, .hint, .tour, .pad button { box-shadow: 0 0 0 1px var(--line), 0 12px 40px rgba(0,0,0,.35); }
.station-k { color: var(--signal); }
.tour button { color: var(--ink); } .tour button:hover { background: #18223d; }
.tour .tour-end { background: var(--blue); color: #0a0f1e; } .tour .tour-end:hover { background: #8299f4; }
.tour-bar { background: var(--line); } .tour-bar i { background: var(--signal); }
.tour-go { color: #0a0f1e; } .tour-go:hover { background: #8299f4; } .touring .tour-go { background: #18223d; color: var(--ink); }
.snd { background: #18223d; color: var(--ink); border-color: var(--line); } .snd[aria-pressed="true"] { border-color: var(--signal); color: var(--signal); }
.tool-row input { background: #0a0f1e; color: var(--ink); border-color: var(--line); }
.tool-row button { background: var(--blue); color: #0a0f1e; }
.lbl::before { background: var(--muted); }
.pad button.on { background: var(--blue); color: #0a0f1e; }
/* the top bar stays one line: buttons never wrap; the tagline gives way first on narrower screens */
.hud-top .snd, .hud-top .tour-go, .hud-top .skip { white-space: nowrap; }
@media (max-width: 1080px) { .tag { display: none; } }
@media (max-height: 560px) { .hud-top { padding-top: 12px; padding-bottom: 12px; } .hint { bottom: 12px; } }
/* the brand's near-square shape: no pills */
.skip, .tour-go, .snd, .btn { border-radius: 6px; }
.tour { border-radius: 10px; } .tour button { border-radius: 6px; }
.pad button { border-radius: 10px; }
.capture.no-labels .labels { display: none; }
