/* ORO Agents: steel and glass on ORO Black. Brand cuts only. Brand monochrome: white moving = working,
   graphite = live, white flag = waiting for you, red = failed (the one colour kept), dim = not built. */
@font-face { font-family: "Melange"; src: url("/fonts/kmrmelangegrotesk-regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "GG Mono"; src: url("/fonts/GeneralGrotesqueMono-Regular.woff2") format("woff2"); font-display: swap; }

:root {
  /* Brand tokens (EXT XX + ORO Brand Guidelines, Colour): strict monochrome. */
  --oro-black: #1D1D1F;          /* ORO Black / ORO Screen Black */
  --oro-graphite: #BBBBBB;       /* ORO Graphite */
  --oro-screen-white: #F9F9F9;   /* ORO Screen White */
  --oro-white: #FFFFFF;
  --ink: var(--oro-black);
  --glass: rgba(249, 249, 249, 0.06);
  --glass-hi: rgba(249, 249, 249, 0.10);
  --glass-deep: rgba(29, 29, 31, 0.72);
  --line: rgba(249, 249, 249, 0.16);
  --line-hi: rgba(249, 249, 249, 0.36);
  --text: var(--oro-screen-white);
  --soft: var(--oro-graphite);
  --muted: #9A9A9C;              /* Graphite toned down for small labels, 5:1 on ORO Black */
  --glow: var(--oro-white);      /* working: white, with motion */
  --amber: var(--oro-screen-white); /* waiting for you: white, inverted flag */
  --red: #ff6a5f;                /* failed: the one status colour kept */
  --grey: #6E6E70;
  --blur: blur(26px) saturate(1);
  --edge: 2px;                   /* sharp, precise edges */
  --display: "Melange", "Helvetica Neue", Arial, sans-serif;
  --mono: "GG Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --node: 86px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; background: var(--ink); color: var(--text); font-family: var(--display); }
body { overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: var(--edge); }
.mono-label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; }

/* Status colours, one meaning each. */
.t-working { --tone: var(--glow); }
.t-find { --tone: var(--glow); }
.t-live, .t-idle { --tone: var(--soft); }
.t-attention { --tone: var(--amber); }
.t-failed { --tone: var(--red); }
.t-planned { --tone: var(--grey); }

/* The room: soft window light and a horizon, never busy. */
#room { position: fixed; inset: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, #2c2c2e 0%, #1D1D1F 48%, #141415 100%); }
#room i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
#room .l1 { width: 46vw; height: 46vw; left: -10vw; top: -14vw; background: #38383a; }
#room .l2 { width: 40vw; height: 40vw; right: -8vw; top: 6vh; background: #2e2e30; }
#room .l3 { width: 60vw; height: 24vw; left: 20vw; bottom: -12vw; background: #262628; }
#room .horizon { left: 0; right: 0; top: 64%; height: 1px; border-radius: 0; filter: none; opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08) 30%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.08) 70%, transparent); }

/* The floor */
#floor { position: fixed; inset: 0; transition: opacity .3s ease, transform .3s ease, filter .3s; }
#floor.leaving { opacity: 0; transform: scale(1.06); filter: blur(4px); }
body.inside-open #floor { filter: blur(10px); opacity: .5; }
#lanes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
#lanes .track { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 1; stroke-dasharray: 1 6; }
#lanes .lane { fill: none; stroke: color-mix(in srgb, var(--tone) 32%, transparent); stroke-width: 1; }
#lanes .lane.t-planned { stroke: rgba(255,255,255,.06); }
#lanes .spark { fill: none; stroke: var(--tone); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1.2 98.8;
  opacity: .55; animation: flow 4.8s linear infinite; filter: drop-shadow(0 0 3px var(--tone)); }
#lanes .spark.t-working { animation-duration: 1.1s; opacity: 1; stroke-dasharray: 2.5 22.5; }
#lanes .spark.t-planned { display: none; }
#lanes .arc { fill: none; stroke: var(--glow); stroke-width: 1.6; stroke-dasharray: 8 92; filter: drop-shadow(0 0 4px var(--glow));
  animation: flow 1.6s ease-out 2 forwards; }
@keyframes flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
#orb { position: absolute; cursor: pointer; }
#ring { position: absolute; inset: 0; pointer-events: none; }

.node { position: absolute; left: 0; top: 0; pointer-events: auto; background: none; border: 0; padding: 0;
  width: var(--node); height: var(--node); margin: calc(var(--node) / -2) 0 0 calc(var(--node) / -2);
  transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .5s, scale .55s cubic-bezier(.2,.8,.2,1); }
.node.enter { opacity: 0; scale: .8; }
.node:not(.enter) { transition-delay: 0s, calc(var(--i, 0) * 45ms), calc(var(--i, 0) * 45ms); }
.node .disc { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.2), rgba(255,255,255,.05) 46%, rgba(255,255,255,.02) 70%), var(--glass-deep);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
  animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--bob, 0s) * -1); }
@keyframes bob { 50% { translate: 0 -4px; } }
.node .emblem { width: 70%; height: 70%; color: var(--text); opacity: .92; }
.node .halo { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); overflow: visible; }
.node .halo circle { fill: none; stroke: var(--tone, var(--text)); stroke-width: 1.4; opacity: .45; stroke-dasharray: 3 0; transition: opacity .3s; }
.node.t-working .halo circle { opacity: 1; stroke-dasharray: 70 225; animation: spin 2.2s linear infinite; transform-origin: 50% 50%; filter: drop-shadow(0 0 4px var(--glow)); }
.node.t-attention .halo circle, .node.t-failed .halo circle { opacity: .95; }
.node.t-planned .disc { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); box-shadow: none; }
.node.t-planned .emblem { opacity: .32; }
.node.t-planned .halo circle { opacity: .12; }
@keyframes spin { to { transform: rotate(360deg); } }
.node:hover .disc, .node.sel .disc { transform: translateY(-5px) scale(1.06); border-color: var(--line-hi);
  box-shadow: 0 26px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08), 0 0 36px color-mix(in srgb, var(--tone, #fff) 22%, transparent), inset 0 1px 0 rgba(255,255,255,.25); }
.node.ping .disc { animation: ping .9s ease-out, bob 6s ease-in-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tone, #fff) 60%, transparent); } 100% { box-shadow: 0 0 0 18px transparent; } }
.node .chip { position: absolute; left: 50%; top: calc(100% + 9px); transform: translateX(-50%); text-align: center; white-space: nowrap;
  padding: 6px 11px 7px; border-radius: var(--edge); background: rgba(29,29,31,.55); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: background .3s, border-color .3s; max-width: 240px; }
.node .chip .n { display: block; font-size: 14px; letter-spacing: .005em; }
.node .chip .s { display: block; font-size: 12px; color: var(--soft); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.node.t-working .chip .s { color: var(--glow); }
.node.t-attention .chip .s { color: var(--amber); }
.node.t-failed .chip .s { color: var(--red); }
.node.t-planned .chip { background: transparent; border-color: transparent; backdrop-filter: none; }
.node.t-planned .chip .n { color: var(--muted); }
.node.t-planned .chip .s { display: none; }
.node .chip .x { display: block; max-height: 0; overflow: hidden; font-size: 12px; color: var(--muted); opacity: 0;
  transition: max-height .3s, opacity .3s, margin .3s; white-space: normal; max-width: 220px; }
.node:hover .chip, .node.sel .chip { background: rgba(40,40,42,.78); border-color: var(--line-hi); }
.node:hover .chip .x:not(:empty) { max-height: 48px; opacity: 1; margin-top: 3px; }
.node:hover .chip .s, .node.sel .chip .s { display: block; }
.node .flag { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; border-radius: var(--edge); padding: 0 6px;
  background: var(--amber); color: var(--oro-black); font-family: var(--mono); font-size: 12px; display: grid; place-items: center;
  box-shadow: 0 0 16px rgba(249,249,249,.5); }
.node.k-team .disc { border-width: 1.5px; }
.node.k-team .disc::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.14); }
.node.center { width: auto; height: auto; margin: 0; }
.node.center .chip { position: static; transform: none; display: block; }
.node.center .chip .n { font-size: 15px; }

/* Top bar */
#bar { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) max(18px, env(safe-area-inset-right, 0px)) 12px max(18px, env(safe-area-inset-left, 0px));
  pointer-events: none; z-index: 10; }
#crumbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; pointer-events: auto; font-size: 15px; padding: 3px 10px; border-radius: var(--edge);
  background: rgba(29,29,31,.45); border: 1px solid rgba(255,255,255,.09); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
#crumbs button { background: none; border: 0; padding: 7px 6px; color: var(--muted); min-height: 38px; display: inline-flex; align-items: center; border-radius: var(--edge); transition: color .2s; }
#crumbs button:hover { color: var(--text); }
#crumbs button:last-child { color: var(--text); }
#crumbs .sep { color: var(--muted); opacity: .5; }
.wordmark { display: inline-block; height: 14px; width: auto; color: inherit; }
.wordmark svg { height: 100%; width: auto; display: block; }
#pulse { position: relative; pointer-events: auto; display: flex; gap: 9px; align-items: center; padding: 9px 14px; border-radius: var(--edge);
  border: 1px solid rgba(255,255,255,.1); background: rgba(29,29,31,.45); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
#pulse .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
#pulse.live .dot { background: var(--glow); animation: beat 2.4s ease-out infinite; }
#pulse.down .dot { background: var(--red); }
#pulse-tip { position: absolute; right: 0; top: calc(100% + 8px); white-space: nowrap; padding: 6px 10px; border-radius: var(--edge);
  background: rgba(40,40,42,.9); border: 1px solid var(--line); color: var(--soft); font-family: var(--display); letter-spacing: 0;
  text-transform: none; font-size: 12.5px; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; pointer-events: none; }
#pulse:hover #pulse-tip, #pulse:focus #pulse-tip { opacity: 1; transform: none; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 70% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* Agent panel: a floating glass pane on the right; a sheet you drag on a phone. */
#panel { position: fixed; z-index: 20; top: 76px; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 16px; width: min(420px, 92vw);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03) 160px), rgba(29,29,31,.62);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line); border-radius: var(--edge); padding: 22px 22px 18px; overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.14);
  transform: translateX(calc(100% + 24px)); opacity: 0; visibility: hidden;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s, visibility 0s .45s; }
#panel.open { transform: none; opacity: 1; visibility: visible; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s; }
#panel .grab { display: none; }
@media (max-width: 720px) {
  #panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 58vh; max-height: calc(100vh - 70px); border-radius: var(--edge) 26px 0 0;
    padding: 0 18px calc(env(safe-area-inset-bottom, 0px) + 18px); transform: translateY(105%); }
  #panel.open { transform: translateY(var(--drag, 0px)); }
  #panel.dragging { transition: none; }
  #panel .grab { display: flex; justify-content: center; align-items: center; height: 34px; margin: 0 -18px 4px; cursor: grab; touch-action: none; position: sticky; top: 0; z-index: 2; }
  #panel .grab span { width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); }
}
.close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; background: none; border: 0; font-size: 24px; color: var(--muted); border-radius: var(--edge); z-index: 3; transition: background .2s, color .2s; }
.close:hover { color: var(--text); background: rgba(255,255,255,.07); }
.p-head { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: center; margin-right: 40px; }
.p-head .emblem { width: 58px; height: 58px; color: var(--text); padding: 6px; border-radius: 50%; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.p-name { font-size: 23px; margin: 4px 0 8px; text-wrap: balance; }
.pill { display: inline-flex; gap: 7px; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--edge); border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent); color: var(--tone); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.about { color: var(--soft); font-size: 13.5px; line-height: 1.55; margin: 14px 0 0; }
.now { margin: 16px 0; padding: 13px 14px; border-radius: var(--edge); background: rgba(255,255,255,.04); border: 1px solid color-mix(in srgb, var(--tone) 28%, transparent); }
.now .t { font-size: 15px; }
.now .st { font-size: 12.5px; color: var(--soft); margin-top: 5px; line-height: 1.45; }
.bar-p { height: 4px; background: rgba(255,255,255,.08); border-radius: 2px; margin-top: 11px; overflow: hidden; }
.bar-p i { display: block; height: 100%; background: var(--glow); box-shadow: 0 0 10px var(--glow); transition: width .6s; }
.open-dash { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--edge); border: 1px solid var(--line-hi); display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,.08); color: var(--text); font-size: 14.5px; margin: 4px 0 18px; transition: background .25s, transform .25s; }
.open-dash:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.open-dash span { font-size: 20px; color: var(--soft); }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 8px 0 10px; }
.block { margin: 0 0 18px; }
.block ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.block li { font-size: 13.5px; line-height: 1.45; padding: 10px 12px 10px 14px; border-radius: var(--edge); background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06); position: relative; }
.block li::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--glow); }
.block li.attention::before, .block.omar li::before { background: var(--amber); }
.block li time { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.block li a:hover { text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); }
.legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; gap: 5px; align-items: center; }
.legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--tone); }

/* The latest run: a lane from the Chief of Staff through each step to the result. */
.trace { margin: 0 0 18px; }
.trace ol { list-style: none; margin: 0; padding: 0; position: relative; }
.trace ol::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--line), rgba(255,255,255,.04)); }
.trace li { display: grid; grid-template-columns: 13px 1fr; gap: 12px; padding: 5px 0; position: relative; --tone: var(--soft); }
.trace li i { width: 13px; height: 13px; border-radius: 50%; margin-top: 3px; border: 1.5px solid var(--tone); background: var(--ink); z-index: 1; }
.trace li.lead { --tone: var(--muted); }
.trace li.find, .trace li.done { --tone: var(--glow); }
.trace li.done i, .trace li.find i { background: var(--tone); }
.trace li.attention { --tone: var(--amber); }
.trace li.fail { --tone: var(--red); }
.trace li.review { --tone: var(--text); }
.trace li.now i { background: var(--glow); box-shadow: 0 0 0 4px rgba(255,255,255,.18); animation: beat 1.6s infinite; }
.trace .who { font-size: 13.5px; display: flex; justify-content: space-between; gap: 8px; }
.trace .who time { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.trace .what { font-size: 12.5px; color: var(--soft); line-height: 1.4; margin-top: 2px; }

.records { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: center; margin: 4px 0 6px; padding: 12px 14px;
  border-radius: var(--edge); border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03); }
.records svg { width: 58px; height: 58px; }
.records .big { font-size: 16.5px; }
.records .sub { font-size: 12.5px; color: var(--soft); margin-top: 3px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 14px 0 18px; }
.facts div { min-width: 0; }
.facts .k { margin-bottom: 3px; }
.facts .v { font-size: 14.5px; overflow-wrap: anywhere; }
.log ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.log li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--text); }
.log time { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; letter-spacing: .02em; }
.log li.find span { color: var(--glow); }
.log li.attention span { color: var(--amber); }
.log li.fail span { color: var(--red); }
.log li.handoff span { color: var(--soft); }
.log li.fresh span { animation: fresh 2.2s ease-out; }
@keyframes fresh { from { text-shadow: 0 0 10px rgba(255,255,255,.7); } }
.members ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.members li button { width: 100%; min-height: 50px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); border-radius: var(--edge); padding: 8px 12px; text-align: left; font-size: 13.5px; transition: border-color .2s, background .2s; }
.members li button:hover { border-color: var(--line-hi); background: rgba(255,255,255,.06); }
.members .emblem { width: 30px; height: 30px; color: var(--text); }
.members li.t-planned .emblem { opacity: .35; }
.members li button span:last-child { font-size: 12px; color: var(--muted); text-align: right; }
.members li.t-working button span:last-child { color: var(--glow); }
.members li.t-attention button span:last-child { color: var(--amber); }
.muted { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Emblems */
.emblem { overflow: visible; }
.emblem .ring { fill: none; stroke: currentColor; stroke-width: .9; opacity: .45; }
.emblem .ticks { stroke: currentColor; stroke-width: .7; opacity: .35; }
.emblem .glyph * { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.emblem .glyph .d { opacity: .45; stroke-width: 1.1; }
.emblem .glyph .f { fill: currentColor; stroke: none; }
.t-working .emblem .glyph .f { fill: var(--glow); }

/* Inside dashboards: a calm column of floating glass, two across on wide screens. */
#inside { position: fixed; inset: 0; z-index: 25; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 56px) max(16px, env(safe-area-inset-left, 0px));
  background: radial-gradient(1200px 600px at 50% -10%, rgba(255,255,255,.06), transparent 60%), rgba(20,20,21,.94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); animation: rise .35s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.inside-head { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: end; max-width: 1240px; margin: 0 auto 26px; }
@media (max-width: 720px) { .inside-head { grid-template-columns: 1fr; gap: 12px; } }
.inside-head h1 { margin: 8px 0 0; font-size: clamp(28px, 4vw, 44px); font-weight: 400; display: flex; align-items: center; gap: 14px; text-wrap: balance; }
.inside-head h1 .emblem { width: clamp(40px, 4.4vw, 54px); height: clamp(40px, 4.4vw, 54px); color: var(--text); }
.inside-head .lede { margin: 10px 0 0; color: var(--soft); font-size: 15.5px; line-height: 1.5; max-width: 76ch; }
.inside-head .lede:empty { display: none; }
.back { background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: var(--edge); padding: 10px 16px; min-height: 44px; font-size: 13.5px; color: var(--soft);
  justify-self: start; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: border-color .2s, color .2s, background .2s; }
.back:hover { border-color: var(--line-hi); color: var(--text); background: rgba(255,255,255,.11); }
.stamp { font-size: 12.5px; color: var(--muted); }
#inside-body, #workings-body { max-width: 1240px; margin: 0 auto; columns: 2 440px; column-gap: 18px; }
.card { break-inside: avoid; margin: 0 0 18px; min-width: 0; position: relative; display: block;
  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035) 120px), rgba(29,29,31,.55);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line); border-radius: var(--edge); padding: 20px 20px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12); transition: border-color .5s, box-shadow .5s; }
.card:hover { border-color: rgba(255,255,255,.22); box-shadow: 0 24px 60px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.16); }
.card.full { column-span: all; }
.card h2 { margin: 0 0 6px; font-size: 18px; font-weight: 400; letter-spacing: .005em; }
.card h2 .d { color: var(--muted); font-size: 14px; }
.card .lede { margin: 0 0 14px; color: var(--soft); font-size: 14px; line-height: 1.55; max-width: 90ch; }
.card h2 + :not(.lede) { margin-top: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.stat .v { font-size: 34px; line-height: 1.05; }
.stat .k { margin-top: 6px; }
.stat .note { font-size: 12px; color: var(--soft); margin-top: 4px; }
.rows { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.rows > li { border-top: 1px solid rgba(255,255,255,.06); }
.rows > li:first-child { border-top: 0; }
.row { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 10px 8px; margin: 0 -8px; border-radius: var(--edge); align-items: start; min-width: 0; transition: background .2s; }
a.row:hover { background: rgba(255,255,255,.06); }
.row.no-img { grid-template-columns: 1fr; }
.thumb { width: 56px; height: 56px; border-radius: var(--edge); object-fit: cover; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.row .body { min-width: 0; display: grid; gap: 3px; }
.row .tt { font-size: 15px; display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.row .mm { font-size: 12px; color: var(--muted); }
.row .xx { font-size: 13.5px; color: var(--soft); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .xx.quote { font-style: italic; -webkit-line-clamp: 4; }
.more { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--soft); }
.more:hover { color: var(--text); }
.count { font-size: 12px; color: var(--soft); border: 1px solid rgba(255,255,255,.12); border-radius: var(--edge); padding: 1px 8px; }
.tag { font-size: 12px; padding: 1px 8px; border-radius: var(--edge); border: 1px solid var(--line); color: var(--soft); }
.tag.find { color: var(--glow); border-color: rgba(255,255,255,.4); }
.tag.inspo { color: var(--text); border-color: var(--line-hi); }
.tag.utmb { color: var(--text); border-color: var(--line-hi); background: rgba(255,255,255,.06); }
details.grp > summary { list-style: none; cursor: pointer; }
details.grp > summary::-webkit-details-marker { display: none; }
details.grp > summary .row { padding-right: 30px; position: relative; }
details.grp > summary .row::after { content: "›"; position: absolute; right: 10px; top: 24px; color: var(--muted); transition: transform .2s; }
details.grp[open] > summary .row::after { transform: rotate(90deg); }
details.grp .sub { padding: 0 0 8px 68px; display: flex; flex-direction: column; }
details.grp .sub .row { grid-template-columns: 44px 1fr; }
details.grp .sub .thumb { width: 44px; height: 44px; }
.pending { color: var(--soft); font-size: 13.5px; line-height: 1.55; border: 1px dashed rgba(255,255,255,.14); border-radius: var(--edge); padding: 14px; }
.md { font-size: 14.5px; line-height: 1.6; max-width: 80ch; color: var(--soft); }
.md a { color: var(--text); border-bottom: 1px solid rgba(255,255,255,.3); }
.md a:hover { border-color: var(--text); }
.md h3 { margin: 20px 0 6px; }
.md ul { padding-left: 18px; margin: 6px 0; }
.md li { margin: 5px 0; }
.md strong { color: var(--text); font-weight: 400; }
.tbl { overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--soft); vertical-align: top; }
.tbl td:first-child { color: var(--text); }
.tbl td a { border-bottom: 1px solid rgba(255,255,255,.3); }
.tbl td.num, .tbl th.num { text-align: right; }
.barline { height: 6px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; min-width: 60px; }
.barline i { display: block; height: 100%; background: var(--text); opacity: .55; }

/* Cards that open: ideas, brands, groups. */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.gcard { display: flex; flex-direction: column; border-radius: var(--edge); overflow: hidden; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, background .3s, box-shadow .3s; }
.gcard:hover { transform: translateY(-3px); border-color: var(--line-hi); background: rgba(255,255,255,.08); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.gcard.t-attention { border-color: rgba(249,249,249,.45); }
.gcard.t-find { border-color: rgba(255,255,255,.32); }
.cimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: rgba(255,255,255,.04); }
.cimg.blank { aspect-ratio: auto; height: 6px; background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.02)); }
.cbody { padding: 14px 15px 15px; display: grid; gap: 6px; }
.ct { font-size: 16px; }
.cx { font-size: 13.5px; color: var(--soft); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.badge { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; padding: 2px 9px; border-radius: var(--edge); border: 1px solid rgba(255,255,255,.14); color: var(--soft); }
.badge.t-attention { color: var(--amber); border-color: rgba(249,249,249,.5); }
.badge.t-find { color: var(--glow); border-color: rgba(255,255,255,.4); }
.badge i { width: 9px; height: 9px; border-radius: 50%; }

/* The Curator's board */
.board { columns: 4 200px; column-gap: 12px; }
.pin { display: block; break-inside: avoid; margin: 0 0 12px; border-radius: var(--edge); overflow: hidden; background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1); transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s; }
.pin:hover { transform: translateY(-3px); border-color: var(--line-hi); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.pin img { width: 100%; display: block; background: rgba(255,255,255,.04); }
.pin .pb { padding: 11px 12px 12px; display: grid; gap: 5px; }
.pin .ct { font-size: 14px; }
.pin .cx { font-size: 12.5px; -webkit-line-clamp: 3; }
.sw { display: flex; gap: 5px; margin-top: 3px; }
.sw i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.swc { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; }
.swc i { width: 44px; height: 44px; border-radius: var(--edge); border: 1px solid rgba(255,255,255,.2); }
.swc .mm { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* Calendars */
.cal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cal .month { margin: 14px 0 4px; }
.cal .month:first-child { margin-top: 0; }
.ev { display: grid; grid-template-columns: 52px 1fr 18px; gap: 14px; align-items: center; padding: 10px 12px; border-radius: var(--edge);
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); transition: background .25s, border-color .25s, transform .25s; }
.ev:hover { background: rgba(255,255,255,.07); border-color: var(--line-hi); transform: translateX(2px); }
.ev.t-attention { border-color: rgba(249,249,249,.4); }
.ev .dd { display: grid; place-items: center; height: 52px; border-radius: var(--edge); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); line-height: 1; }
.ev .dd b { font-weight: 400; font-size: 21px; }
.ev .dd span { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: -8px; }
.ev .eb { display: grid; gap: 3px; min-width: 0; }
.ev .mm { font-size: 12.5px; color: var(--soft); }
.ev .who { font-size: 12px; color: var(--muted); }
.ev .go { color: var(--muted); font-size: 20px; }

/* Agent workings: closed at the bottom. */
.workings { max-width: 1240px; margin: 10px auto 0; }
.workings > summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: baseline; padding: 14px 18px; border-radius: var(--edge);
  border: 1px dashed rgba(255,255,255,.16); transition: border-color .2s, background .2s; margin-bottom: 18px; }
.workings > summary::-webkit-details-marker { display: none; }
.workings > summary::before { content: "›"; color: var(--muted); transition: transform .2s; display: inline-block; }
.workings[open] > summary::before { transform: rotate(90deg); }
.workings > summary:hover { border-color: var(--line-hi); background: rgba(255,255,255,.03); }
.workings .hint { font-size: 13px; color: var(--muted); }
.workings .card { background: rgba(29,29,31,.4); box-shadow: none; }

/* The sheet a card opens into */
#sheet { position: fixed; inset: 0; z-index: 30; display: grid; place-items: start center; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top, 0px) + 40px) 16px 40px; background: rgba(10,10,11,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: rise .3s ease-out; }
.sheet-card { position: relative; width: min(940px, 100%); border-radius: var(--edge); padding: 26px 26px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03) 180px), rgba(33,33,35,.82);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.16); }
.sheet-card #sheet-title { font-size: clamp(24px, 3vw, 34px); font-weight: 400; margin: 6px 48px 6px 0; text-wrap: balance; }
.sheet-card .when { color: var(--soft); margin: 0 0 16px; font-size: 14.5px; }
.sheet-card .hero { width: 100%; max-height: 62vh; object-fit: contain; border-radius: var(--edge); background: rgba(0,0,0,.25); margin: 4px 0 18px; display: block; }
.sheet-card .sheet-sections { columns: 1; }
.sheet-card .card { background: rgba(255,255,255,.035); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sheet-card .path { margin: 6px 0 0; }
@media (max-width: 720px) { #sheet { padding: 0; place-items: end stretch; } .sheet-card { border-radius: var(--edge) 26px 0 0; padding: 22px 18px 30px; min-height: 70vh; } }

/* Sign in */
#login { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(600px 400px at 50% 40%, rgba(255,255,255,.06), transparent 70%), var(--ink); }
#login form { width: min(340px, 100%); display: grid; gap: 10px; text-align: center; }
.login-mark { height: 22px; margin: 14px auto 22px; color: var(--text); }
.login-mark svg { height: 100%; width: auto; }
#login label { text-align: left; }
#login input { font: inherit; font-size: 16px; padding: 13px 14px; border-radius: var(--edge); border: 1px solid var(--line); background: var(--glass); color: var(--text); min-height: 48px; }
#login button { min-height: 48px; border-radius: var(--edge); border: 1px solid var(--line-hi); background: rgba(255,255,255,.1); color: var(--text); font-size: 15px; }
#login-msg { min-height: 1.2em; color: var(--red); font-size: 13px; margin: 0; }
.orb-mini { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; border: 1px solid rgba(255,255,255,.22);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), rgba(255,255,255,.08) 45%, rgba(0,0,0,.5) 78%);
  box-shadow: 0 0 44px rgba(255,255,255,.12), inset 0 0 20px rgba(255,255,255,.15); }

@media (max-width: 720px) {
  .node .chip { padding: 5px 8px 6px; border-radius: var(--edge); max-width: 120px; white-space: normal; }
  .node .chip .n { font-size: 12px; line-height: 1.2; }
  .node .chip .s { font-size: 12px; white-space: nowrap; max-width: 110px; }
  .node .chip .x { display: none; }
  .node .flag { min-width: 18px; height: 18px; font-size: 12px; }
  #pulse { padding: 7px 11px; font-size: 12px; }
  #crumbs { font-size: 14px; }
  .card { padding: 16px; border-radius: var(--edge); }
  .board { columns: 2 140px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  /* With the sheet up, the floor above it keeps only the chosen agent's label. */
  body.panel-open .node:not(.sel):not(.center) .chip { opacity: 0; pointer-events: none; }
  body.panel-open .node.center .chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* Give Molly a task (T05): the task box, what is waiting for you, your tasks */
.bar-right { display: flex; gap: 10px; align-items: center; pointer-events: auto; }
#ask-btn { position: relative; min-height: 38px; padding: 9px 16px; border-radius: var(--edge); border: 1px solid var(--line-hi);
  background: rgba(29,29,31,.55); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); color: var(--text); font-size: 14px; }
#ask-btn:hover { background: rgba(255,255,255,.14); }
#ask-count { margin-left: 8px; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--edge);
  background: var(--text); color: var(--ink); font-family: var(--mono); font-size: 12px; }
#ask { position: fixed; inset: 0; z-index: 31; display: grid; place-items: start center; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top, 0px) + 40px) 16px 40px; background: rgba(10,10,11,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: rise .3s ease-out; }
#ask[hidden] { display: none; }
.ask-card #ask-title { font-size: clamp(24px, 3vw, 32px); font-weight: 400; margin: 6px 48px 14px 0; }
.ask-card textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 84px; padding: 14px 16px; border-radius: var(--edge); border: 1px solid var(--line-hi);
  background: rgba(0,0,0,.25); color: var(--text); font: inherit; font-size: 16px; line-height: 1.45; }
.ask-card textarea:focus, .ask-card input:focus { outline: 2px solid var(--text); outline-offset: 1px; }
.ask-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0 6px; flex-wrap: wrap; }
.ask-row .hint { color: var(--muted); font-size: 13.5px; }
.ask-card button.go, #ask-go { min-height: 44px; padding: 10px 18px; border-radius: var(--edge); border: 1px solid var(--text); background: var(--text); color: var(--ink); font-size: 15px; }
#ask-go:disabled { opacity: .5; cursor: default; }
.ask-sec { margin-top: 22px; }
.ask-sec > .sec-h { margin-bottom: 8px; }
.ask-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ask-item { padding: 14px 16px; border-radius: var(--edge); border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.ask-item .t { font-size: 15.5px; }
.ask-item .m { color: var(--muted); font-size: 13px; margin-top: 4px; font-family: var(--mono); letter-spacing: .04em; }
.ask-item .why { color: var(--soft); font-size: 14px; margin-top: 6px; }
.ask-item ul.pts { margin: 10px 0 0; padding-left: 18px; color: var(--text); font-size: 14.5px; line-height: 1.5; }
.ask-item .src { margin-top: 8px; font-size: 13px; color: var(--muted); word-break: break-word; }
.ask-item .src a { color: var(--soft); }
.ask-item.waiting { border-color: var(--line-hi); }
.ask-act { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.ask-act input { flex: 1 1 220px; min-height: 42px; padding: 8px 12px; border-radius: var(--edge); border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--text); font: inherit; font-size: 14.5px; }
.ask-act button { min-height: 42px; padding: 8px 16px; border-radius: var(--edge); border: 1px solid var(--line-hi); background: none; color: var(--text); }
.ask-act button.yes { background: var(--text); color: var(--ink); border-color: var(--text); }
.ask-act .err { color: var(--red); font-size: 13px; width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 720px) {
  #ask { padding: 0; place-items: end stretch; }
  .ask-card { border-radius: var(--edge) 26px 0 0; padding: 22px 18px 30px; min-height: 80vh; }
  #ask-btn { font-size: 13px; padding: 8px 12px; }
}

.connect-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; margin: 0 0 12px; border-radius: var(--edge); border: 1px solid var(--text); background: var(--text); color: var(--ink); font-size: 15px; text-decoration: none; }
.pending .connect-btn { display: flex; width: max-content; }

/* Build status strip (T40): the overnight build at the top of Molly's view. Needs-you first, inverted. */
.build { position: fixed; z-index: 9; top: calc(env(safe-area-inset-top, 0px) + 74px); left: 50%; transform: translateX(-50%);
  width: min(1040px, calc(100vw - 36px)); padding: 10px 14px; border-radius: var(--edge); font-size: 13px; line-height: 1.45;
  background: rgba(29,29,31,.72); border: 1px solid var(--line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  color: var(--text); display: grid; gap: 8px; }
.build[hidden] { display: none; }
.build.inline { position: static; transform: none; width: auto; max-width: 1240px; margin: 0 auto 18px; }
.build .mono-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 8px; white-space: nowrap; }
.build b { font-weight: 400; color: var(--text); }
.build .muted { color: var(--muted); }
.b-needs { background: var(--oro-screen-white, #f9f9f9); color: var(--oro-black, #000); padding: 7px 10px; border-radius: var(--edge); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.b-needs .mono-label { color: var(--oro-black, #000); }
.b-needs .b-more { opacity: .7; }
.b-stall { border: 1px solid var(--red); color: var(--text); padding: 7px 10px; border-radius: var(--edge); }
.b-stall .mono-label { color: var(--red); }
.b-row { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 14px; }
.b-cell { display: flex; align-items: baseline; min-width: 0; }
.b-cell .b-text { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.b-st { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--line); padding: 0 5px; border-radius: var(--edge); color: var(--soft); }
.b-st.st-live { color: var(--text); border-color: var(--text); }
.b-st.st-blocked, .b-st.st-partial { color: var(--red); border-color: var(--red); }
.b-more-d summary { cursor: pointer; color: var(--soft); font-size: 12px; list-style: none; min-height: 24px; display: flex; gap: 8px; align-items: center; }
.b-more-d summary::-webkit-details-marker { display: none; }
.b-more-d summary::before { content: "+"; font-family: var(--mono); }
.b-more-d[open] summary::before { content: "−"; }
.b-more-d .mono-label { display: block; margin: 8px 0 4px; }
.b-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; max-height: 40vh; overflow-y: auto; }
.b-list li.k-fail { color: var(--red); }
@media (max-width: 720px) {
  .build { top: calc(env(safe-area-inset-top, 0px) + 64px); font-size: 12.5px; padding: 8px 10px; gap: 6px; }
  .b-row { grid-template-columns: 1fr; gap: 4px; }
  .b-cell .b-text { -webkit-line-clamp: 1; }
  .b-row .b-last { display: none; }   /* the last result is one tap away under Details */
  .b-needs { padding: 5px 8px; }
  .b-needs .b-text { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* T31: inside an opened card, list text shows whole (the card is already the "one click deeper"). */
.sheet-sections .row .xx { display: block; -webkit-line-clamp: unset; overflow: visible; }

/* Molly's home page (T32), from the approved design v5: black space, Molly in the middle, every agent around her. */
body.home-on { background: #020304; }
body.home-on #room, body.home-on #floor { display: none; }
#home { position: fixed; left: 0; right: 0; bottom: 0; top: var(--home-top, 76px); z-index: 2; overflow-y: auto; overscroll-behavior: contain;
  background: #020304; padding: 0 max(0px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(0px, env(safe-area-inset-left, 0px)); }
#home .h-wrap { max-width: 920px; margin: 0 auto; background: #020304; border-radius: 6px; overflow: hidden; font-family: var(--display); }
#home .h-stage { position: relative; height: clamp(480px, calc(100dvh - var(--home-top, 76px) - 104px), 1100px);
  background: radial-gradient(circle at 50% 50%, #0b1622 0%, #05080d 45%, #020304 75%); cursor: default; }
#home .h-canvas { position: absolute; left: 0; top: 0; z-index: 1; width: 100%; height: 100%; }
#home .h-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
#home .h-lab { position: absolute; pointer-events: auto; cursor: pointer; text-align: center; white-space: nowrap; padding: 4px 8px;
  line-height: 1.35; text-shadow: 0 0 10px #000; background: none; border: 0; font: inherit; display: flex; flex-direction: column;
  align-items: center; border-radius: 4px; }
#home .h-lab .h-n { font-size: 12px; color: #b4c6d8; }
#home .h-lab .h-s { font-size: 11px; color: #7f95ab; }
#home .h-lab.on .h-n { color: #f2f8ff; }
#home .h-lab.on .h-s { color: #8fd3ff; }
#home .h-lab.off { opacity: .75; }
#home .h-lab:focus-visible, #home .h-title:focus-visible, #home .h-act button:focus-visible { outline: 1px solid rgba(190,225,255,.7); outline-offset: 2px; }
#home .h-title { position: absolute; left: 22px; top: 18px; z-index: 3; color: #d6e2ee; font-size: 12px; letter-spacing: 5px;
  background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
#home .h-count { position: absolute; right: 22px; top: 18px; z-index: 3; color: #8fa3b8; font-size: 12px; text-align: right; }
#home .h-nums { padding: 0 18px 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#home .h-num { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 16px; color: #eef3f8; }
#home .h-num.lead { border-color: rgba(255,255,255,.16); }
#home .h-num .v { font-size: 24px; font-weight: 300; line-height: 1; }
#home .h-num .k { font-size: 12px; color: #9fb0c2; margin-top: 5px; }
#home .h-detail { padding: 0 18px 18px; }
#home .h-card { background: rgba(255,255,255,.06); border: 1px solid rgba(190,225,255,.35); border-radius: 14px; padding: 14px 18px; color: #eef3f8;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#home .h-dn { font-size: 16px; }
#home .h-ds { font-size: 12px; color: #9fb0c2; margin-top: 3px; }
#home .h-act { display: flex; gap: 14px; align-items: center; font-size: 12px; flex-shrink: 0; }
#home .h-open { border: 1px solid rgba(255,255,255,.35); border-radius: 10px; padding: 7px 12px; color: #fff; cursor: pointer; background: none; font: inherit; min-height: 34px; }
#home .h-close { cursor: pointer; color: #8fa3b8; background: none; border: 0; font: inherit; padding: 7px 4px; min-height: 34px; }
@media (max-width: 520px) {
  #home .h-lab { padding: 3px 4px; }
  #home .h-lab .h-n { font-size: 11px; }
  #home .h-lab .h-s { font-size: 10px; }
  #home .h-lab:not(.on):not(.off) .h-s { display: none; }   /* on the phone only working and not-built agents say so */
  #home .h-title { left: 14px; top: 12px; }
  #home .h-count { right: 14px; top: 12px; font-size: 11px; max-width: 60%; }
  #home .h-nums, #home .h-detail { padding: 0 12px 12px; gap: 8px; }
  #home .h-num { padding: 10px 12px; }
}
@media (min-width: 1900px) and (min-height: 1100px) { #home .h-wrap { max-width: 1240px; } }   /* large screens: a larger circle */

/* T36: what an agent put out, with the Published and feedback boxes */
.outs .out-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.outs .out-act input { flex: 1 1 220px; min-width: 0; }
.outs .src { color: var(--soft); font-size: 13.5px; margin-top: 6px; }
.outs .src a { color: var(--text); }
.outs .err.ok { color: var(--soft); }

/* ---------- T46: Molly's look back to the approved design (v5, 31 Oct 11:01 am) ---------- */
/* Home: black, a wider stage so names sit outside the ring, large white names, working in blue. */
body.home-on, body.home-on #home, #home .h-wrap { background: #000; }
#home .h-wrap { max-width: 1240px; }
#home .h-stage { background: radial-gradient(circle at 50% 50%, #0a1420 0%, #03060a 42%, #000 70%);
  height: clamp(560px, calc(100dvh - var(--home-top, 76px) - 120px), 1200px); }
#home .h-lab { padding: 4px 8px; line-height: 1.3; text-shadow: 0 0 12px #000, 0 0 4px #000; }
#home .h-lab .h-n { display: block; font-size: 18px; color: #fff; }
#home .h-lab .h-s { display: block; font-size: 14px; color: #9fb0c2; }
#home .h-lab.on .h-n { color: #fff; }
#home .h-lab.on .h-s { color: #7cc8ff; }
#home .h-lab.off { opacity: .6; }
#home .h-lab:hover .h-n { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
#home .h-title { left: 28px; top: 24px; font-size: 14px; color: #fff; }
#home .h-count { right: 28px; top: 24px; font-size: 15px; color: #c6d4e2; }
#home .h-nums { padding: 0 28px 28px; gap: 12px; }
#home .h-num { background: #0d0f12; border: 1px solid rgba(255,255,255,.22); padding: 16px 20px; }
#home .h-num.lead { border-color: rgba(255,255,255,.4); }
#home .h-num .v { font-size: 36px; color: #fff; font-variant-numeric: tabular-nums; }
#home .h-num .k { font-size: 15px; color: #c6d4e2; margin-top: 8px; }
#home .h-detail { padding: 0 28px 28px; }
#home .h-card { background: #0d0f12; border-color: rgba(255,255,255,.4); padding: 16px 20px; }
#home .h-dn { font-size: 20px; color: #fff; }
#home .h-ds { font-size: 14px; color: #c6d4e2; }
#home .h-act { font-size: 14px; }
@media (max-width: 520px) {
  #home .h-stage { height: clamp(520px, calc(100dvh - var(--home-top, 64px) - 112px), 900px); }
  #home .h-lab { padding: 2px 4px; }
  #home .h-lab .h-n { font-size: 13px; }
  #home .h-lab .h-s { font-size: 12px; }
  #home .h-title { left: 14px; top: 12px; font-size: 12px; }
  #home .h-count { right: 14px; top: 12px; font-size: 12px; }
  #home .h-nums, #home .h-detail { padding: 0 12px 12px; gap: 8px; }
  #home .h-num { padding: 12px 14px; }
  #home .h-num .v { font-size: 28px; }
  #home .h-num .k { font-size: 13px; }
}
/* The build strip on home: one slim line in the top bar, needs-you first, the rest under Details; Molly keeps the
   screen. */
body.home-on .build { top: calc(env(safe-area-inset-top, 0px) + 16px); width: min(640px, calc(100vw - 560px)); padding: 6px 12px;
  gap: 2px; font-size: 13px; background: rgba(0,0,0,.6); }
body.home-on .build .b-needs { padding: 2px 8px; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
body.home-on .build .b-needs .b-text { overflow: hidden; text-overflow: ellipsis; }
body.home-on .build .b-row { display: none; }
body.home-on .build .b-stall .b-text { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
body.home-on .build .b-more-d summary { min-height: 20px; font-size: 12px; }
body.home-on .build .b-more-d[open] { max-height: 60vh; overflow-y: auto; }
@media (max-width: 900px) {
  body.home-on .build { top: calc(env(safe-area-inset-top, 0px) + 62px); width: calc(100vw - 24px); }
}

/* Inside pages: black, clear order, larger type; points first, detail on click. */
#inside { background: #000; backdrop-filter: none; -webkit-backdrop-filter: none; }
#inside .mono-label { font-size: 13px; letter-spacing: .08em; color: #a9b4bf; }
.inside-head { margin-bottom: 32px; }
.inside-head h1 { font-size: clamp(32px, 4.4vw, 52px); color: #fff; }
.inside-head .lede { font-size: 18px; line-height: 1.5; color: #d4dbe2; }
.back { background: #0d0f12; border-color: rgba(255,255,255,.22); color: #e6ebf0; font-size: 15px; }
.stamp { font-size: 14px; color: #a9b4bf; }
#inside .card { background: #0b0c0e; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none;
  border: 1px solid rgba(255,255,255,.14); padding: 24px 24px 20px; margin-bottom: 20px; }
#inside .card:hover { border-color: rgba(255,255,255,.26); box-shadow: none; }
#inside .card h2 { font-size: 24px; color: #fff; margin-bottom: 8px; }
#inside .card h2 .d { font-size: 15px; color: #a9b4bf; }
#inside .card .lede { font-size: 16px; color: #c6d0d9; }
#inside .row .tt { font-size: 17px; color: #fff; }
#inside .row .mm { font-size: 14px; color: #a9b4bf; }
#inside .row .xx { font-size: 15.5px; color: #c6d0d9; line-height: 1.5; }
#inside .stat .v { font-size: 40px; color: #fff; }
#inside .md { font-size: 16px; color: #c6d0d9; }
#inside .tbl table { font-size: 15px; }
#inside .tbl td { color: #c6d0d9; }
#inside .pending { font-size: 15px; color: #c6d0d9; }
#inside .cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
#inside .gcard { background: #111317; border: 1px solid rgba(255,255,255,.16); }
#inside .gcard:hover { transform: none; background: #16191e; border-color: rgba(255,255,255,.4); box-shadow: none; }
#inside .cbody { padding: 18px 20px 20px; gap: 8px; }
#inside .ct { font-size: 19px; color: #fff; line-height: 1.3; }
#inside .cx { font-size: 15.5px; color: #c6d0d9; line-height: 1.5; }
#inside .cbody .mono-label { font-size: 12px; color: #8fa0b0; }
#inside .count, #inside .tag { font-size: 13px; color: #d4dbe2; border-color: rgba(255,255,255,.3); }
#inside details.workings { border-color: rgba(255,255,255,.14); }
/* The opened card: black, larger type. */
#sheet { background: rgba(0,0,0,.78); }
.sheet-card { background: #0b0c0e; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: rgba(255,255,255,.18); box-shadow: 0 40px 100px rgba(0,0,0,.8); }
.sheet-card #sheet-title { color: #fff; }
.sheet-card .card { background: #111317; border-color: rgba(255,255,255,.12); }
.sheet-card .card h2 { font-size: 21px; color: #fff; }
.sheet-card .row .tt { font-size: 17px; color: #fff; }
.sheet-card .row .mm { font-size: 14px; color: #a9b4bf; }
.sheet-card .row .xx { font-size: 16px; color: #d4dbe2; }
.sheet-card .lede { font-size: 16px; color: #c6d0d9; }
@media (max-width: 720px) {
  .inside-head .lede { font-size: 16px; }
  #inside .card { padding: 18px 16px; }
  #inside .card h2 { font-size: 21px; }
}

/* ===== T49: unslopped. Quiet chrome on black, one structure for every agent page, a real calendar. ===== */
:root { --x-bg: #000; --x-s1: #0c0d0f; --x-s2: #141518; --x-line: rgba(255,255,255,.08); --x-line2: rgba(255,255,255,.16);
  --x-t1: #f4f6f8; --x-t2: #b9c0c8; --x-t3: #7f8790; }
#inside { background: var(--x-bg); padding-top: calc(env(safe-area-inset-top, 0px) + 24px); }
#inside .mono-label { font-family: var(--display); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--x-t3); }
.inside-head { max-width: 1200px; margin: 0 auto 40px; gap: 24px; align-items: start; }
.inside-head h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; color: var(--x-t1); }
.inside-head .lede { font-size: 17px; line-height: 1.5; color: var(--x-t2); max-width: 64ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.stamp { font-size: 13px; color: var(--x-t3); padding-top: 12px; }
.back { background: transparent; border: 1px solid var(--x-line2); color: var(--x-t2); font-size: 14px; border-radius: 8px; min-height: 36px; padding: 0 12px; }
.back:hover { background: var(--x-s2); color: var(--x-t1); border-color: var(--x-line2); }
#inside-body { max-width: 1200px; margin: 0 auto; columns: auto; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; }
#workings-body { max-width: 1200px; margin: 0 auto; columns: auto; display: block; }
#inside-workings { max-width: 1200px; margin: 48px auto 0; padding-left: 248px; border: 0; }
#inside details.workings summary { padding: 16px 0; border-top: 1px solid var(--x-line); }
#inside details.workings summary .mono-label { font-size: 16px; color: var(--x-t2); }

/* Left index: the page's structure at a glance. */
.xnav-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.xnav-side a { display: block; color: var(--x-t3); font-size: 14px; line-height: 20px; padding: 6px 0; border-radius: 6px; }
.xnav-side a:hover { color: var(--x-t1); }
.xnav-side .xnav-g { color: var(--x-t1); font-size: 15px; margin-top: 12px; }
.xnav-side .xnav-g:first-child { margin-top: 0; }
.xnav-side .xnav-s { padding-left: 12px; border-left: 1px solid var(--x-line); border-radius: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Groups and sections */
.xmain { min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.xgroup { display: flex; flex-direction: column; gap: 32px; scroll-margin-top: 24px; }
.xgroup-t { font-size: 13px; color: var(--x-t3); padding-bottom: 12px; border-bottom: 1px solid var(--x-line); }
.g-needs .xgroup-t { color: var(--x-t1); border-bottom-color: var(--x-line2); }
.xsec { scroll-margin-top: 24px; min-width: 0; }
.xsec h2 { margin: 0 0 4px; font-size: 22px; font-weight: 400; line-height: 1.3; color: var(--x-t1); display: flex; align-items: baseline; gap: 12px; }
.xsec .xn { font-family: var(--mono); font-size: 13px; color: var(--x-t3); font-variant-numeric: tabular-nums; }
.xlede { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: var(--x-t2); max-width: 70ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xsec h2 + .xrows, .xsec h2 + .xcal { margin-top: 12px; }
.xempty { color: var(--x-t3); font-size: 15px; margin: 8px 0 0; }

/* Rows: one line of title, one of when or where, two of text at most. */
.xrows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--x-line); }
.xrows > li { border-bottom: 1px solid var(--x-line); }
.xrow { display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 16px; align-items: center; padding: 16px 12px; margin: 0 -12px; border-radius: 8px; transition: background-color .15s ease; }
.xrow:hover { background: var(--x-s1); }
.xrow.img { grid-template-columns: 56px minmax(0, 1fr) 16px; }
.xthumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--x-s2); }
.xbody { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.xt { font-size: 17px; line-height: 1.35; color: var(--x-t1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xrow.a .xt::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--x-t1); margin-right: 8px; vertical-align: 2px; }
.xm { font-size: 14px; color: var(--x-t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xx { font-size: 15px; line-height: 1.5; color: var(--x-t2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 76ch; }
.xtags { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
#inside .xtags .badge, #inside .xtags .tag { font-size: 12px; color: var(--x-t2); border: 1px solid var(--x-line2); border-radius: 4px; padding: 0 8px; line-height: 20px; background: none; }
.xgo { color: var(--x-t3); font-size: 18px; }
details.xall > summary { list-style: none; cursor: pointer; color: var(--x-t2); font-size: 14px; padding: 12px 0; }
details.xall > summary::-webkit-details-marker { display: none; }
details.xall > summary:hover { color: var(--x-t1); }
details.xall[open] > summary { display: none; }
details.xall > .xrows { border-top: 0; }

/* Calendar: month grid, then the month's dates as a list. */
.xcal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.xcal-head h3 { margin: 0 8px; font-size: 22px; font-weight: 400; color: var(--x-t1); min-width: 180px; text-align: center; }
.xnav { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--x-line2); background: none; color: var(--x-t2); font-size: 18px; }
.xnav:hover { background: var(--x-s2); color: var(--x-t1); }
.xsum { margin-left: auto; font-size: 14px; color: var(--x-t3); }
.xgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--x-line); border-left: 1px solid var(--x-line); }
.xw { font-size: 12px; color: var(--x-t3); padding: 8px; border-right: 1px solid var(--x-line); border-bottom: 1px solid var(--x-line); }
.xd { min-height: 96px; padding: 8px; display: flex; flex-direction: column; gap: 4px; align-items: stretch; text-align: left; background: none; border: 0;
  border-right: 1px solid var(--x-line); border-bottom: 1px solid var(--x-line); color: var(--x-t3); font: inherit; min-width: 0; transition: background-color .15s ease; }
.xd.blank { background: rgba(255,255,255,.015); }
.xd .n { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.xd.has { cursor: pointer; }
.xd.has .n { color: var(--x-t1); }
.xd.has:hover, .xd.sel { background: var(--x-s2); }
.xd.today .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--x-t1); color: #000; }
.xd:disabled { cursor: default; }
.xe { font-size: 12px; line-height: 16px; color: var(--x-t2); background: var(--x-s2); border-left: 2px solid var(--x-t3); padding: 2px 6px; border-radius: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xe.a { border-left-color: var(--x-t1); color: var(--x-t1); }
.xmore { font-size: 12px; color: var(--x-t3); padding-left: 6px; }
.xcont { font-size: 12px; color: var(--x-t3); border-top: 1px solid var(--x-line2); padding-top: 2px; margin-top: auto; }
@media (max-width: 900px) { .xd .xcont { display: none; } }
.xd .dots { display: none; }
.xlist-head { margin: 24px 0 8px; font-size: 15px; color: var(--x-t2); display: flex; gap: 12px; align-items: baseline; }
.xclear { background: none; border: 0; color: var(--x-t3); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.ev2 { grid-template-columns: 48px minmax(0, 1fr) 16px; }
.xdate { display: flex; flex-direction: column; align-items: center; line-height: 1; gap: 4px; }
.xdate b { font-weight: 400; font-size: 22px; color: var(--x-t1); font-variant-numeric: tabular-nums; }
.xdate span { font-size: 12px; color: var(--x-t3); }

/* Notes, stats and tables inside the new frame */
.xsec .md { font-size: 16px; line-height: 1.6; color: var(--x-t2); max-width: 70ch; }
.xsec .md h3.mono-label { font-size: 15px; color: var(--x-t1); margin: 24px 0 8px; }
.xclamp { max-height: 240px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.xclamp.open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.xread { margin-top: 8px; background: none; border: 1px solid var(--x-line2); color: var(--x-t2); border-radius: 8px; padding: 0 12px; min-height: 32px; font-size: 14px; }
.xsec .stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border-top: 1px solid var(--x-line); margin-top: 12px; }
.xsec .stat { padding: 16px 16px 16px 0; }
#inside .xsec .stat .v { font-family: var(--display); font-size: 32px; color: var(--x-t1); }
#inside .xsec .stat .k { font-family: var(--display); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--x-t3); }
.xsec .stat .note { font-size: 13px; color: var(--x-t3); }
.xsec .tbl { margin-top: 12px; overflow-x: auto; }
.xsec .tbl table { width: 100%; border-collapse: collapse; font-size: 15px; }
.xsec .tbl th { font-family: var(--display); font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--x-t3); text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--x-line2); font-weight: 400; }
.xsec .tbl td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--x-line); color: var(--x-t2); vertical-align: top; }
.xsec .tbl td.num, .xsec .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.xsec .cards { margin-top: 12px; }
#inside .xsec .gcard { background: var(--x-s1); border: 1px solid var(--x-line); border-radius: 12px; }
#inside .xsec .gcard:hover { background: var(--x-s2); border-color: var(--x-line2); }
#inside .xsec .cx { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }
#inside .xsec .pending { margin-top: 8px; color: var(--x-t2); font-size: 15px; line-height: 1.5; }
#inside .xsec .ask-list { margin-top: 12px; }

/* The opened item */
.sheet-card { border-radius: 16px; padding: 32px; }
.sheet-card #sheet-title { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
.sheet-card .mono-label { font-family: var(--display); text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--x-t3); }
.sheet-text { font-size: 17px; line-height: 1.6; color: var(--x-t2); max-width: 68ch; margin: 0 0 16px; }
.sheet-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--x-line2); border-radius: 8px; color: var(--x-t1); font-size: 15px; }
.sheet-link:hover { background: var(--x-s2); }

@media (max-width: 900px) {
  #inside-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #inside-workings { padding-left: 0; }
  .xnav-side { position: sticky; top: 0; z-index: 3; flex-direction: row; overflow-x: auto; gap: 8px; padding: 12px 0; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
    background: var(--x-bg); border-bottom: 1px solid var(--x-line); scrollbar-width: none; }
  .xnav-side::-webkit-scrollbar { display: none; }
  .xnav-side .xnav-s { display: none; }
  .xnav-side .xnav-g { margin: 0; padding: 6px 12px; border: 1px solid var(--x-line2); border-radius: 16px; font-size: 14px; white-space: nowrap; }
  .inside-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .xmain { gap: 40px; }
  .xsec h2 { font-size: 20px; }
  .xd { min-height: 48px; padding: 4px; align-items: center; }
  .xd .n { font-size: 13px; }
  .xd .xe, .xd .xmore { display: none; }
  .xd .dots { display: flex; gap: 2px; justify-content: center; }
  .xd .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--x-t1); }
  .xw { padding: 6px 2px; text-align: center; }
  .xcal-head h3 { font-size: 18px; min-width: 0; }
  .xsum { display: none; }
  .sheet-card { padding: 24px 16px 32px; border-radius: 16px 16px 0 0; }
}

/* Home: calm field, Molly a clear core, names readable at a glance. */
#home .h-stage { background: #000; }
#home .h-lab .h-n { font-size: 18px; color: #fff; }
#home .h-lab .h-s { font-size: 14px; color: var(--x-t3); }
#home .h-lab.on .h-s { color: #9fd3ff; }
#home .h-lab.off .h-n { color: var(--x-t3); }
#home .h-num { background: var(--x-s1); border: 1px solid var(--x-line); border-radius: 12px; }
#home .h-num .k { font-size: 14px; color: var(--x-t3); }
#home .h-title { letter-spacing: 4px; }
@media (max-width: 520px) {
  /* Names sit inside the ring on a phone, where strands pass: a black backing keeps every name readable over them. */
  #home .h-lab { background: rgba(0,0,0,.78); border-radius: 6px; padding: 2px 6px; }
  #home .h-lab .h-n { font-size: 14px; }
  #home .h-lab .h-s { font-size: 12px; }
}
