/* Radar v4: v1's universe (starfield, logo planets, teal stage rings, agent moons, tethers, gold/red glow) with
   two levels. Motion is spent on meaning: working moons glide, tethers flow toward Ryan, events play once. */

:root { --mint: #5CC8BA; --mint-2: #8BE3F0; --sheet-w: 460px; }
html, body { overflow-x: hidden; }
body.desk { height: 100vh; overflow: hidden; }

/* markers: v1's gold/red glow and gentle bob; no ping ring */
.bb-quest::after { content: none !important; display: none !important; }
.card .bb-quest, .qrow .bb-quest { animation: none; }

/* ---------- the universe ---------- */
#stage { position: relative; z-index: 0; isolation: isolate; height: calc(100vh - var(--hh, 62px)); overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y;
  background:
    radial-gradient(42% 46% at 22% 34%, #1a2350a6 0%, #1a235000 70%),
    radial-gradient(38% 42% at 80% 68%, #2a1d52a0 0%, #2a1d5200 70%),
    radial-gradient(50% 40% at 62% 16%, #0f2a3f8c 0%, #0f2a3f00 70%),
    radial-gradient(36% 40% at 34% 86%, #1c1a4880 0%, #1c1a4800 70%),
    #07080d; }
body.phone #stage { height: var(--stage-h, 400px); z-index: 3; }
#scene { position: absolute; inset: 0; transition: opacity .13s ease-out, transform .13s ease-out; transform-origin: var(--ox, 50%) var(--oy, 50%); }
#stage.switching #scene { opacity: 0; }
#stage.switching[data-dive="in"] #scene { transform: scale(1.05); }
#stage.switching[data-dive="out"] #scene { transform: scale(.96); }
#stage.is-dragging, #stage.is-dragging * { cursor: grabbing !important; }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#sky .tw { animation: twinkle 9s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.orbit { fill: none; stroke: #fff; stroke-width: 1; transition: stroke-opacity .2s; }
.band { fill: #fff; opacity: 0; transition: opacity .2s; }
#stage.is-dragging .band { opacity: .025; }
#stage.is-dragging .band.hot { opacity: .07; }
#stage.is-dragging .orbit { stroke-opacity: .16; }
.homedots circle { fill: none; stroke: #9aa6c0; stroke-opacity: .6; stroke-width: 1.3; }
.tether { fill: none; stroke-linecap: round; stroke-width: 2; stroke-dasharray: 2 9; animation: flow 2.6s linear infinite; }
.tether.dim { opacity: .3; }
@keyframes flow { to { stroke-dashoffset: -22; } }
#nodes { position: absolute; inset: 0; pointer-events: none; }

/* ---------- bodies: planets (inside a system) and systems (home level) ---------- */
.node { position: absolute; left: 0; top: 0; width: 0; height: 0; transition: opacity .4s; }
.node[hidden] { display: none; }
.node.dragging { z-index: 50; }
.node.absorbing { opacity: 0; transition: opacity .3s ease-in; }
.node.dim { opacity: .35; }
.node .body { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.node .disc { position: absolute; z-index: 2; width: var(--d); height: var(--d); left: calc(var(--d) / -2); top: calc(var(--d) / -2); border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1.5px #ffffff1a, 0 16px 30px -10px #000d; background: #10131a; filter: saturate(var(--sat, 1)); transition: filter .8s var(--ease), box-shadow .2s; }
.node .disc img, .node .disc .fb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.node .disc::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 24%, #ffffff2e 0%, #ffffff00 42%), radial-gradient(circle at 72% 86%, #00000070 0%, #00000000 58%); }
.fb { display: grid !important; place-items: center; color: #fff; font-weight: 700; font-size: calc(var(--d) * .42); letter-spacing: -.02em;
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--acc) 90%, #fff) 0%, var(--acc) 38%, color-mix(in srgb, var(--acc) 45%, #0b0d12) 100%); text-shadow: 0 2px 8px #0005; }
.node .ring { position: absolute; z-index: 2; overflow: visible; pointer-events: none; }
.node .ring circle { transition: stroke-dasharray .9s var(--ease), stroke-dashoffset .9s var(--ease), stroke .6s, opacity .6s, stroke-width .6s; }
.node .ring.done { filter: drop-shadow(0 0 6px #5cc8ba88); }
.node .ring.cheer { animation: cheer 1.2s var(--ease); }
@keyframes cheer { 35% { filter: drop-shadow(0 0 12px #8be3f0); } }
.node .track { position: absolute; z-index: 1; overflow: visible; pointer-events: none; transition: opacity .6s; }
.node .halo { position: absolute; z-index: 0; width: calc(var(--d) * 2.6); height: calc(var(--d) * 2.6); left: calc(var(--d) * -1.3); top: calc(var(--d) * -1.3); border-radius: 50%; opacity: 0; transition: opacity 1s var(--ease); pointer-events: none; }
.node.lv-gold .halo { opacity: 1; background: radial-gradient(circle, #ffc21a40 0%, #ffc21a14 34%, #ffc21a00 62%); }
.node.lv-red .halo { opacity: 1; background: radial-gradient(circle, #f0463c48 0%, #f0463c16 34%, #f0463c00 62%); }
.node.lv-calm { opacity: .72; }
.node.lv-calm .disc { filter: saturate(calc(var(--sat, 1) * .55)) brightness(.78); }
.node.dim.lv-calm { opacity: .3; }
.node.hover .disc { box-shadow: 0 0 0 2px #ffffff66, 0 16px 30px -10px #000d; }
.node.sel .disc { box-shadow: 0 0 0 2px #ffffffcc, 0 0 0 7px #ffffff14, 0 16px 30px -10px #000d; }
.node.rock .ring, .node.rock .moons, .node.rock .track, .node.rock .halo { display: none; }
.node.rock .disc { filter: grayscale(1) brightness(.7) !important; }
.node .name { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 13px; font-weight: 550; letter-spacing: -.005em; color: var(--text-2); pointer-events: none; transition: color .6s, opacity .3s; text-shadow: 0 1px 8px #07080d, 0 0 2px #07080d; }
.sysn .name { font-size: 14.5px; font-weight: 600; color: var(--text); }
.node.lv-calm .name, .node.parked .name { color: var(--mute); }
.node.lv-gold .name, .node.lv-red .name { color: var(--text); }
.node .name.off, .node.rock .name { opacity: 0; }
body.phone .pl .name { display: none; }
body.phone .sysn .name { font-size: 12px; }

/* quest markers on the shoulder: they pop in once and bob gently while something waits */
.qwrap { position: absolute; left: 0; top: 0; z-index: 6; }
.qs { position: absolute; left: 0; top: 0; transform: scale(0); transition: transform .26s cubic-bezier(.4, 0, .6, 1); }
.qwrap.on .qs { transform: scale(1); transition: transform .45s var(--spring); }
.node .bb-quest { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; font-size: 17px; }
.node.rock .bb-quest { left: -12px; top: -12px; width: 24px; height: 24px; font-size: 14px; }
body.phone .node .bb-quest, body.phone .sov .bb-quest { left: -11px; top: -11px; width: 22px; height: 22px; font-size: 13px; box-shadow: 0 0 0 2px #0b0d12, 0 0 16px #ffc21a99; }
body.phone .node .bb-quest.red, body.phone .sov .bb-quest.red { box-shadow: 0 0 0 2px #0b0d12, 0 0 16px #f0463c99; }
body.phone .node .bb-quest small { top: -7px; right: -9px; min-width: 15px; height: 15px; line-height: 15px; font-size: 10px; padding: 0 4px; }

/* moons (agents): glide only while working */
.moon { position: absolute; left: 0; top: 0; width: var(--m); height: var(--m); margin: calc(var(--m) / -2) 0 0 calc(var(--m) / -2); }
.moon > .face { display: block; width: 100%; height: 100%; transition: transform .5s var(--spring), opacity .5s; }
.moon svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 3px 5px #000a); }
.moon.enter > .face { animation: moonIn .9s var(--spring); }
@keyframes moonIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.moon.leaving > .face { transform: scale(.2); opacity: 0; transition: transform .9s var(--ease), opacity .9s; }
.moon.waiting svg { filter: drop-shadow(0 0 0 #0b0d12) drop-shadow(0 0 2px #ffc21a) drop-shadow(0 0 8px #ffc21a99); }
.moon.quiet svg { filter: drop-shadow(0 0 2px #f0463c) drop-shadow(0 0 7px #f0463c99); }
.moon.idle svg { opacity: .7; }
.moon.back { filter: brightness(.62); }

/* events: pulses and the stage burst */
.pulse { position: absolute; left: 0; top: 0; z-index: 1; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); border-radius: 50%; border: 2px solid var(--c); pointer-events: none; animation: pulse 1.4s var(--ease) forwards; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.3); opacity: 0; } }
.bit-fx { position: absolute; left: 0; top: 0; z-index: 7; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--c); pointer-events: none; box-shadow: 0 0 8px var(--c); animation: burst 1.7s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes burst { 0% { transform: translate(0, 0) scale(.4); opacity: 1; } 15% { transform: translate(calc(var(--dx) * .35), calc(var(--dy) * .35)) scale(1.1); } 100% { transform: translate(var(--dx), var(--dy)) scale(.35); opacity: 0; } }
body.phone .bit-fx { width: 6px; height: 6px; margin: -3px; }

/* the core: v1's orb */
#core { position: absolute; left: 0; top: 0; z-index: 4; width: var(--core); height: var(--core); margin: calc(var(--core) / -2) 0 0 calc(var(--core) / -2); border-radius: 50%; display: grid; place-items: center; transition: transform .6s var(--ease); }
#core::before { content: ''; position: absolute; inset: 13%; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #3a4256 0%, #1d2230 48%, #12151d 100%);
  box-shadow: 0 0 0 1px #ffffff14 inset, 0 1px 0 #ffffff22 inset, 0 18px 40px -10px #000, 0 0 60px color-mix(in srgb, var(--tint, #7c93ff) 14%, transparent); }
#core.flash::before { animation: coreFlash .9s var(--ease); }
@keyframes coreFlash { 30% { box-shadow: 0 0 0 1px #ffc21a88 inset, 0 0 60px #ffc21a66; transform: scale(1.08); } }
#core .cring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#core .num { position: relative; font-weight: 700; font-size: calc(var(--core) * .3); letter-spacing: -.03em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
#core .num.calm { color: var(--mint); opacity: .8; }
#core .num svg { display: block; }

/* band names, only while dragging */
.bandlabel { position: absolute; left: 0; top: 0; opacity: 0; font-size: 12.5px; font-weight: 600; color: #dfe7ff; padding: 3px 10px; border-radius: 999px; background: #0b0f1acc; box-shadow: 0 0 0 1px #ffffff1c; white-space: nowrap; transition: opacity .2s; }
#stage.is-dragging .bandlabel { opacity: .6; }
#stage.is-dragging .bandlabel.hot { opacity: 1; }

/* other systems as small stars at the rim (inside a system) */
.sov { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.sov .sdot { position: absolute; left: 0; top: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--tint) 60%, #fff), var(--tint)); box-shadow: 0 0 12px color-mix(in srgb, var(--tint) 45%, transparent); transition: box-shadow .2s, transform .2s; }
.sov.hot .sdot { box-shadow: 0 0 0 3px #07080d, 0 0 0 4.5px #ffffff99, 0 0 16px color-mix(in srgb, var(--tint) 55%, transparent); }
.sov .sname { position: absolute; left: 0; top: 14px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 560; color: var(--mute); transition: color .2s; text-shadow: 0 1px 8px #07080d; }
.sov.hot .sname { color: var(--text); }
.sov.left .sname { transform: translateX(-10px); }
.sov.right .sname { transform: translateX(calc(-100% + 10px)); }
.sov .qwrap { left: 11px; top: -11px; }
.sov .bb-quest { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; font-size: 13px; }
.sov .bb-quest small { top: -7px; right: -9px; min-width: 15px; height: 15px; line-height: 15px; font-size: 10px; padding: 0 4px; }
.newstar .plus { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #b9c6e4; opacity: .4; border: 1.5px dashed #b9c6e488; transition: opacity .25s, border-color .25s, background .25s; }
#stage.is-dragging .newstar .plus { opacity: .8; }
.newstar.hot .plus { opacity: 1; border-color: #dfe7ff; background: #ffffff10; }

/* controls */
.qbtn { position: absolute; z-index: 25; top: 12px; right: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--text-2); background: #121620cc; backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line-2); transition: color .2s, background .2s; }
.qbtn:hover { color: var(--text); background: #1b2030; }
body.sheet-open.desk .qbtn { right: calc(min(460px, 40vw) + 40px); }
.backbtn { position: absolute; z-index: 25; top: 12px; left: 16px; height: 34px; padding: 0 14px 0 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text); background: #121620cc; backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line-2); }
.backbtn[hidden], .newsys[hidden] { display: none; }
.backbtn .bname { color: var(--mute); font-weight: 500; }
.backbtn .bname::before { content: '· '; }
.backbtn:hover, .newsys:hover { background: #1b2030; }
.newsys { position: absolute; z-index: 25; left: 16px; bottom: 18px; height: 32px; padding: 0 13px 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); background: #121620cc; backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line-2); }
.newsys .plus { font-size: 16px; line-height: 1; color: var(--mute); }
body.phone .qbtn { top: 8px; right: 10px; width: 30px; height: 30px; font-size: 14px; }
body.phone .backbtn { top: 8px; left: 10px; height: 30px; font-size: 13px; }
body.phone .newsys { left: 10px; bottom: 10px; height: 28px; font-size: 12px; }
.namefield { position: absolute; z-index: 30; display: flex; gap: 6px; padding: 6px; width: 248px; border-radius: 14px; background: #171b26f2; backdrop-filter: blur(14px); box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px #000a; }
.namefield input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: #0b0d12; color: var(--text); font: 500 14px var(--font); outline: none; box-shadow: 0 0 0 1px var(--line-2) inset; }
.namefield input:focus { box-shadow: 0 0 0 1.5px #9db4ff inset; }
.namefield button { height: 34px; padding: 0 12px; border-radius: 9px; background: #f2f4f8; color: #0b0d12; font-weight: 600; font-size: 14px; }

/* legend */
.legend { position: absolute; z-index: 26; top: 54px; right: 16px; width: 372px; max-height: calc(100% - 140px); overflow-y: auto; padding: 14px 16px 16px; border-radius: 20px; background: #141823f2; backdrop-filter: blur(18px); box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -20px #000; scrollbar-width: thin; }
.legend[hidden] { display: none; }
body.sheet-open.desk .legend { right: calc(min(460px, 40vw) + 40px); }
.lhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 15px; }
.close.sm { position: static; width: 28px; height: 28px; }
.legend ul { list-style: none; margin: 0; padding: 0; }
.legend li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 7px 0; font-size: 13.5px; line-height: 1.38; color: var(--text-2); }
.legend li b { color: var(--text); font-weight: 600; }
.legend .li svg { width: 34px; height: 34px; display: block; }
.legend .reset { margin-top: 10px; width: 100%; justify-content: center; }
body.phone .legend { position: fixed; top: 64px; bottom: 76px; left: 10px; right: 10px; width: auto; max-height: none; background: #141823fb; }

/* phone needs list, grouped by system on the Systems level */
.qgroup { display: flex; align-items: center; gap: 8px; margin: 16px 4px 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.qgroup:first-child { margin-top: 6px; }
.qdot { width: 8px; height: 8px; border-radius: 50%; }
.qgroup .qn { margin-left: auto; color: var(--mute); font-weight: 500; }

/* ---------- phone queue under the radar ---------- */
#queue { display: none; }
body.phone #queue { display: block; padding: 4px 16px 96px; }
.qrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 8px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.qrow .mini { width: 40px; height: 40px; flex: none; }
.qrow .t { flex: 1; min-width: 0; }
.qrow .t b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.qrow .t span { display: block; font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow .dotq { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 14px; background: var(--gold); color: #1a1300; box-shadow: 0 0 8px #ffc21a55; }
.qrow.red .dotq { background: var(--red); color: #fff; box-shadow: 0 0 8px #f0463c66; }
.qcalm { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 22px; color: var(--mute); font-size: 15px; }

/* mini planet (sheet + lists) */
.mini { position: relative; display: inline-block; border-radius: 50%; overflow: hidden; --d: 40px; box-shadow: 0 0 0 1px #ffffff1a; }
.mini img, .mini .fb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- sheet ---------- */
#scrim { position: fixed; inset: 0; z-index: 39; background: #05060acc; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
#sheet { position: fixed; z-index: 40; top: calc(var(--hh, 62px) + 2px); right: 12px; bottom: 12px; width: var(--sheet-w); border-radius: 26px; overflow: hidden;
  background: linear-gradient(#171b26f5, #121520f5); backdrop-filter: blur(20px); box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -20px #000;
  transform: translateX(calc(100% + 24px)); transition: transform .55s cubic-bezier(.22, 1, .36, 1); }
body.sheet-open #sheet { transform: none; }
.sheet-scroll { height: 100%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #ffffff22 transparent; padding-bottom: 28px; }
body.phone .sheet-scroll { padding-bottom: 96px; }
.star { fill: #fff; animation: twinkle var(--tw, 7s) ease-in-out infinite; animation-delay: var(--td, 0s); }
@keyframes twinkle { 0%, 100% { opacity: var(--o1, .15); } 50% { opacity: var(--o2, .5); } }
body.phone #sheet { top: 48px; left: 0; right: 0; bottom: 0; width: auto; border-radius: 26px 26px 0 0; transform: translateY(105%); }
body.phone.sheet-open #sheet { transform: none; }
body.phone.sheet-open #scrim { opacity: 1; pointer-events: auto; }

.hero { position: relative; padding: 26px 24px 20px; overflow: hidden; }
.hero .bgart { position: absolute; inset: 0; z-index: 0; }
.hero .bgart img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: blur(2px) saturate(1.1); opacity: .55; transform: scale(1.06); }
.hero .bgart::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #121520 0%, #12152099 30%, #171b26 100%); }
.hero .bgart.fbart { background: radial-gradient(circle at 70% 0%, color-mix(in srgb, var(--acc) 45%, transparent), transparent 70%); }
.hero .bgart.fbart::after { display: none; }
.hero > * { position: relative; z-index: 1; }
.close { position: absolute; z-index: 3; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #0b0d1288; color: var(--text-2); box-shadow: 0 0 0 1px var(--line-2); backdrop-filter: blur(8px); transition: background .2s, color .2s; }
.close:hover { background: #ffffff18; color: var(--text); }
.hero-row { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.bigplanet { position: relative; flex: none; width: 128px; height: 128px; display: grid; place-items: center; }
.bigplanet svg.bring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bigplanet .mini { --d: 92px; width: 92px; height: 92px; box-shadow: 0 0 0 1.5px #ffffff1a, 0 14px 30px -10px #000; }
.hero h2 { margin: 0; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.hero .kind { margin-top: 4px; color: var(--text-2); font-size: 14px; }
.hero .goal { margin: 16px 0 0; font-size: 16px; line-height: 1.45; color: var(--text); letter-spacing: -.005em; }

.sec { padding: 6px 24px 10px; }
.sec h3 { margin: 18px 0 12px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.sec h3 .n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 750; background: var(--gold); color: #1a1300; }
.sec h3 .n.red { background: var(--red); color: #fff; }

/* stage stepper */
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps li { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 0 0 14px; }
.steps li::before { content: ''; position: absolute; left: 12px; top: 24px; bottom: 2px; width: 2px; border-radius: 1px; background: #ffffff12; }
.steps li:last-child::before { display: none; }
.steps li.past::before { background: linear-gradient(var(--mint), #5cc8ba66); }
.steps .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.steps .past .ic { background: var(--mint); color: #08241f; }
.steps .cur .ic { box-shadow: 0 0 0 2px var(--mint) inset; }
.steps .cur .ic i { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); }
.steps .nxt .ic { box-shadow: 0 0 0 1.5px #ffffff59 inset; }
.steps .fut .ic { box-shadow: 0 0 0 1.5px #ffffff1f inset; }
.steps .lbl { padding-top: 2px; font-size: 15px; font-weight: 550; color: var(--text-2); }
.steps .past .lbl { color: var(--text-2); }
.steps .cur .lbl { color: var(--text); font-weight: 650; }
.steps .fut .lbl { color: var(--mute); }
.steps .bar { margin: 8px 0 2px; height: 6px; border-radius: 3px; background: #ffffff12; overflow: hidden; }
.steps .bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--mint), var(--mint-2)); transition: width .9s var(--ease); }
.steps .pct { float: right; font-size: 13px; color: var(--mute); font-weight: 500; font-variant-numeric: tabular-nums; }
.steps .nextwords { margin-top: 4px; font-size: 14px; color: var(--text-2); line-height: 1.4; }
.steps .nextwords b { color: var(--text); font-weight: 600; }

/* cards for bits and alerts */
.card { position: relative; border-radius: 18px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); padding: 12px; margin-bottom: 10px; transition: opacity .3s var(--ease), transform .3s var(--ease), box-shadow .3s; }
.card.leaving { opacity: 0; transform: translateX(30px) scale(.97); }
.card.hl { animation: hl 2.2s var(--ease); }
@keyframes hl { 0%, 50% { box-shadow: 0 0 0 2px #f2f4f8; } 100% { box-shadow: 0 0 0 1px var(--line); } }
.card.gold { box-shadow: 0 0 0 1px #ffc21a3a; background: linear-gradient(135deg, #ffc21a0d, #ffc21a00 50%), var(--surface-2); }
.card.red { box-shadow: 0 0 0 1px #f0463c55; background: linear-gradient(135deg, #f0463c14, #f0463c00 60%), var(--surface-2); }
.bit { display: grid; grid-template-columns: 76px 1fr; gap: 14px; }
.bit .thumb { width: 76px; height: 100px; border-radius: 12px; overflow: hidden; position: relative; background: #0b0d12; box-shadow: 0 0 0 1px var(--line); }
.bit .thumb img, .bit .thumb .fb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bit .thumb .fb { font-size: 30px; }
.bit h4 { margin: 2px 0 4px; font-size: 16px; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
.bit .meta { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--mute); flex-wrap: wrap; }
.bit .meta .mini { --d: 18px; width: 18px; height: 18px; }
.waits { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 10px 3px 4px; border-radius: 999px; background: var(--gold-soft); color: #ffe39a; font-size: 13px; font-weight: 550; box-shadow: 0 0 0 1px #ffc21a40 inset; }
.waits svg { flex: none; }
.acts { display: flex; gap: 8px; margin-top: 12px; }
.btn { height: 36px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; transition: transform .15s var(--ease), background .2s, box-shadow .2s; }
.btn:active { transform: scale(.96); }
.btn.pri { background: #f2f4f8; color: #0b0d12; }
.btn.pri:hover { background: #fff; }
.btn.ghost { box-shadow: 0 0 0 1px var(--line-2) inset; color: var(--text); }
.btn.ghost:hover { background: #ffffff0d; }
.alert { display: flex; align-items: center; gap: 12px; }
.alert .bb-quest { flex: none; width: 30px; height: 30px; font-size: 16px; animation: none; }
.alert .bb-quest::after { animation-duration: 2.4s; }
.alert .t { flex: 1; min-width: 0; }
.alert .t b { display: block; font-size: 15px; font-weight: 600; }
.alert .t span { font-size: 13px; color: var(--mute); }

/* agents */
.agent { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.agent:first-of-type { border-top: 0; padding-top: 2px; }
.agent .av { position: relative; width: 44px; height: 44px; }
.agent .av svg { width: 44px; height: 44px; }
.agent .l1 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 7px; }
.agent .l1 .act { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.agent .l1 .act svg { color: var(--mint); }
.agent.waiting .l1 .act svg { color: var(--gold); }
.agent.quiet .l1 .act, .agent.quiet .l1 .act svg { color: #ffb9b3; }
.agent.idle .l1 .act svg { color: var(--mute); }
.agent .task { font-size: 14px; color: var(--text-2); margin-top: 1px; }
.agent .where { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--mute); }
.agent .where .mono { font-size: 12.5px; color: var(--text-2); background: #ffffff0a; padding: 1px 7px; border-radius: 6px; }
.agent .where span { display: inline-flex; align-items: center; gap: 5px; }
.agent .spark { display: block; margin-top: 8px; }
.empty { color: var(--mute); font-size: 14px; padding: 4px 0 10px; }
.focus { margin: 0; padding: 0; list-style: none; }
.focus li { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; color: var(--text-2); padding: 3px 0; }
.focus li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #ffffff33; transform: translateY(-2px); }

/* all-waiting sheet */
.allhead { padding: 28px 24px 4px; }
.allhead h2 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
.allhead p { margin: 6px 0 0; color: var(--text-2); }
.grp { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font-size: 15px; font-weight: 600; color: var(--text); width: 100%; text-align: left; }
.grp .mini { --d: 28px; width: 28px; height: 28px; }

@media (max-width: 700px) {
  .hero { padding: 22px 18px 16px; }
  .sec { padding: 4px 18px 8px; }
  .bigplanet { width: 108px; height: 108px; }
  .bigplanet .mini { --d: 76px; width: 76px; height: 76px; }
  .hero h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .tether { animation: none; } }


/* "where it lives" controls in the sheet */
.seg { display: flex; padding: 3px; border-radius: 12px; background: #0b0d12; box-shadow: 0 0 0 1px var(--line) inset; }
.seg button { flex: 1; height: 32px; border-radius: 9px; font-size: 13.5px; font-weight: 550; color: var(--text-2); transition: background .2s, color .2s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: #ffffff16; color: var(--text); box-shadow: 0 1px 0 #ffffff14 inset; }
.syschips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.syschips button { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 13px; font-weight: 550; color: var(--text-2); box-shadow: 0 0 0 1px var(--line-2) inset; }
.syschips button i { width: 8px; height: 8px; border-radius: 50%; background: var(--tint); }
.syschips button.on { color: var(--text); background: #ffffff10; }
.grp b { font-weight: 600; }
.grp .go { color: var(--mute); font-weight: 500; font-size: 13px; margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.grp:hover .go { color: var(--text-2); }
.steps li.past::before { background: linear-gradient(var(--ring), color-mix(in srgb, var(--ring) 40%, transparent)); }
.steps .past .ic { background: var(--ring); }
.steps .cur .ic { box-shadow: 0 0 0 2px var(--ring) inset; }
.steps .cur .ic i { background: var(--ring); }
.steps .bar i { background: linear-gradient(90deg, var(--ring), color-mix(in srgb, var(--ring) 50%, #fff)); }

.steps { --ring: #5CC8BA; }

/* ---- live board: telling projects and sessions apart (2026-11-13) ---- */
/* under a planet's name: its last task, a mint dot when an agent is on it right now */
.node .name .nm { display: block; text-align: center; }
.node .name .cap { display: block; margin-top: 2px; text-align: center; font-size: 11.5px; font-weight: 500; color: var(--mute); letter-spacing: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.node .name .cap:empty { display: none; }
.node .name .cap i { display: inline-block; width: 6px; height: 6px; margin: 0 6px 1px 0; border-radius: 50%; background: #5d6577; vertical-align: middle; }
.node .name .cap i.on { background: var(--mint, #5CC8BA); box-shadow: 0 0 6px #5cc8ba88; }
.node.lv-calm .name .cap { opacity: .8; }
body.phone .node .name .cap { display: none; }

/* editable text (Ryan's own names and notes) */
.ed { position: relative; display: block; border-radius: 10px; padding: 2px 26px 2px 6px; margin: 0 -6px; cursor: text; transition: background .15s; }
.ed:hover, .ed:focus-visible { background: #ffffff0a; outline: none; }
.ed .pen { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--mute); opacity: 0; transition: opacity .15s; display: inline-flex; }
.ed:hover .pen, .ed.empty .pen { opacity: .8; }
.ed .ph { color: var(--mute); font-weight: 500; }
.ed.multi { margin-top: 10px; padding: 8px 28px 8px 10px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); background: #ffffff06; box-shadow: 0 0 0 1px var(--line) inset; white-space: pre-wrap; }
.ed.multi .pen { top: 14px; }
.ed.editing { padding: 0; background: none; box-shadow: none; }
.ed input, .ed textarea { width: 100%; border: 0; border-radius: 10px; background: #0b0d12; color: var(--text); font: inherit; padding: 6px 10px; outline: none; box-shadow: 0 0 0 1.5px #9db4ff inset; resize: vertical; }
.hero h2 .ed { display: inline-block; padding-right: 30px; }
.hero h2 .ed input { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.hero .ed.multi { margin-top: 14px; }

/* live agent cards */
.agent.live { grid-template-columns: 44px 1fr; }
.agent.live .ab > .ed:first-child { font-size: 16px; font-weight: 650; letter-spacing: -.015em; color: var(--text); }
.agent .summary { margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.agent .summary.dim { color: var(--mute); font-size: 13px; }
.agent.live .l1 { margin-top: 8px; font-size: 13.5px; font-weight: 550; gap: 10px; flex-wrap: wrap; }
.agent .l1 .since { color: var(--mute); font-weight: 450; }
.agent .where .win { color: var(--text); font-weight: 550; }
.agent .path { margin-top: 8px; font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lk { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none; box-shadow: 0 0 0 1px var(--line-2) inset; background: #ffffff05; transition: background .15s; }
.lk:hover { background: #ffffff10; }
.lk.repo { height: auto; padding: 4px 10px; font-weight: 550; color: var(--text-2); }

/* bit previews: thumbnails that open the review screen */
.pvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.pvs.small { margin-top: 10px; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.pv { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); text-decoration: none; }
.pv img, .pv .noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv .noimg { background: radial-gradient(circle at 30% 20%, #ffffff10, transparent 60%); }
.pv .pt { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-size: 11.5px; font-weight: 600; color: #fff; background: linear-gradient(transparent, #000c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pvs.small .pt { font-size: 10.5px; padding: 12px 6px 4px; }
.pv .pb { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; }
.pv .pb.gold { background: var(--gold); color: #1a1300; box-shadow: 0 0 8px #ffc21a88; }
.pv .pb.ok { background: #2a3a35; color: var(--mint, #5CC8BA); }
.pv .pb.chg { background: #2a2f3d; color: var(--text-2); }
.pv:hover { box-shadow: 0 0 0 1.5px var(--line-2); }

/* code: folders per machine and the repo */
.frow { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.frow:first-child { border-top: 0; padding-top: 0; }
.frow .mono { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow .fm { font-size: 12px; color: var(--mute); }
.frow .links { grid-column: 1 / -1; margin-top: 0; }

/* toast (saved, copied, moved · undo) */
.toast { position: fixed; z-index: 70; left: 50%; bottom: 72px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border-radius: 14px; background: #1b2030f2; backdrop-filter: blur(12px); box-shadow: 0 0 0 1px var(--line-2), 0 14px 30px #000a; font-size: 14px; color: var(--text); animation: toastIn .25s var(--ease); }
.toast[hidden] { display: none; }
.toast button { height: 30px; padding: 0 12px; border-radius: 9px; background: #f2f4f8; color: #0b0d12; font-weight: 650; font-size: 13px; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }
.agent.live .ab { min-width: 0; }
.agent .path { white-space: normal; word-break: break-all; }
.agent .path .started { color: #6b7385; word-break: normal; }

/* ---- folded helpers, system logos, bits at a glance (2026-11-13) ---- */
/* a session's own helpers: a small +N on its moon */
.moon .hb { position: absolute; right: -9px; top: -7px; min-width: 17px; height: 15px; padding: 0 4px; border-radius: 8px; background: #1b2030; box-shadow: 0 0 0 1.5px #0b0d12, 0 0 0 2.5px #ffffff22; color: var(--text); font: 700 10px/15px var(--font); text-align: center; pointer-events: none; }
/* systems wear their logo */
.node.sysn .disc img.slogo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.node .name .cap .cn { font-weight: 700; }
.node .name .cap .cn.gold { color: #ffd65a; }
.node .name .cap .cn.red { color: #ff8a80; }
.sov .sdot { overflow: hidden; box-shadow: 0 0 0 2px #0b0d12, 0 0 0 3px color-mix(in srgb, var(--tint) 70%, transparent), 0 0 12px color-mix(in srgb, var(--tint) 40%, transparent); }
.sov .sdot img { width: 100%; height: 100%; display: block; object-fit: cover; }
.sov .sname { top: 20px; }
/* helpers listed inside their session's card */
.helpers { margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: #ffffff05; box-shadow: 0 0 0 1px var(--line) inset; }
.helpers .hh { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.helpers .hl { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); padding: 2px 0; min-width: 0; }
.helpers .hl i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #4a5263; }
.helpers .hl.run i { background: var(--mint); box-shadow: 0 0 6px #5cc8ba88; }
.helpers .hl .lb { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.helpers .hl.run .lb { color: var(--text); }
.helpers .hl .hs { flex: none; font-size: 12px; color: var(--mute); }
.helpers .hl.more { color: var(--mute); font-size: 12px; padding-left: 15px; }
/* sessions that share one editor window */
.wgroup { margin: 4px 0 8px; padding: 10px 12px 0; border-radius: 16px; box-shadow: 0 0 0 1px var(--line) inset; background: #ffffff03; }
.wgroup .wh { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); padding-bottom: 6px; }
.wgroup .wh span { font-weight: 450; color: var(--mute); margin-left: 4px; }
.wgroup .agent:first-of-type { border-top: 1px solid var(--line); padding-top: 12px; }
/* bits: whose and what */
.card .thumb { position: relative; }
.plogo { position: absolute; right: 4px; bottom: 4px; width: 20px !important; height: 20px !important; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #121520; }
.card .what, .btile .bm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.card .what { margin-top: 4px; font-size: 12.5px; color: var(--text-2); }
.card .what svg { color: var(--mint); }
.pv .pt i { display: block; font-style: normal; font-weight: 500; opacity: .7; font-size: 10px; }
/* the Recent bits view */
.bitsbtn { right: 58px; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.btile { display: block; text-decoration: none; color: inherit; border-radius: 16px; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.btile:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-2), 0 14px 26px -16px #000; }
.btile.gold { box-shadow: 0 0 0 1px #ffc21a55; }
.btile .bimg { position: relative; display: block; aspect-ratio: 16 / 10; background: #0e1118; }
.btile .bimg > img:first-child, .btile .bimg .noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.btile .bimg .noimg { display: grid; place-items: center; }
.btile .bimg .noimg img, .btile .bimg .noimg .fb { position: static; width: 54px; height: 54px; border-radius: 50%; }
.btile .plogo { width: 22px !important; height: 22px !important; right: 8px; bottom: 8px; }
.btile .bst { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 700; background: #0b0d12cc; color: var(--text-2); backdrop-filter: blur(6px); }
.btile .bst.gold { background: var(--gold); color: #1a1300; box-shadow: 0 0 10px #ffc21a66; }
.btile .bst.ok { color: var(--mint); }
.btile .bt { display: block; padding: 10px 12px 2px; font-size: 14px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btile .bm { padding: 0 12px 12px; font-size: 12px; color: var(--mute); }
.btile .bm svg { color: var(--mint); }
body.phone .bgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
/* the system's own sheet header */
.syshead { display: flex; align-items: center; gap: 16px; padding: 26px 24px 0; }
.syshead .sl { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2); }
.syshead h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.03em; }
/* phone list: the bit's picture */
.qthumb { position: relative; flex: none; width: 52px; height: 40px; border-radius: 10px; overflow: hidden; background: #0e1118; }
.qthumb > img:first-child { width: 100%; height: 100%; object-fit: cover; display: block; }
.qthumb .plogo { width: 16px !important; height: 16px !important; right: 3px; bottom: 3px; }
.logo-acts { align-items: center; }
.logo-acts .logo-src { font-size: 12.5px; color: var(--mute); margin-left: 4px; }
body.phone .bitsbtn { right: 48px; }

/* ---- one click to what needs Ryan: the markers are buttons ---- */
.qwrap.on .bb-quest { pointer-events: auto; cursor: pointer; transition: transform .15s var(--ease); }
.qwrap.on .bb-quest:hover { transform: scale(1.12); }

/* ---- the latest work piece beside each planet and system ---- */
.node .work { position: absolute; left: 0; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 4px 9px 4px 4px; border-radius: 12px; background: #121520d9; backdrop-filter: blur(6px); box-shadow: 0 0 0 1px var(--line-2), 0 8px 18px -10px #000; text-decoration: none; color: var(--text); pointer-events: auto; cursor: pointer; transition: box-shadow .2s, opacity .3s; }
.node .work[hidden] { display: none; }
.node .work:hover { box-shadow: 0 0 0 1.5px #ffffff40, 0 10px 22px -10px #000; }
.node .work .wimg { position: relative; width: 66px; height: 44px; border-radius: 8px; overflow: hidden; background: #0b0d12; flex: none; }
.node .work .wimg img, .node .work .wimg .fb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.node .work .wmeta { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.node .work .wst { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; background: #2a2f3d; color: var(--text-2); }
.node .work.wait .wst { background: var(--gold); color: #1a1300; box-shadow: 0 0 8px #ffc21a77; }
.node .work.wait { box-shadow: 0 0 0 1px #ffc21a55, 0 8px 18px -10px #000; }
.node .work.ok .wst { background: #22382f; color: var(--mint); }
.node .work.chg .wst { background: #2a3040; color: #b9c6e8; }
.node .work .wag { font-size: 11px; color: var(--mute); font-weight: 550; }
.node.lv-calm .work { opacity: .75; }
.node.dim .work { opacity: .35; }
body.phone .node .work { display: none; }

/* a waiting bit beside a body is an action item: gold edge, its title, one click into the review */
.node .work.wait { padding-right: 12px; box-shadow: 0 0 0 1.5px #ffc21a99, 0 0 18px -4px #ffc21a55, 0 8px 18px -10px #000; }
.node .work.wait .wag { color: #ffe39a; font-size: 12px; font-weight: 600; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node .work.wait .wmeta { flex-direction: row; align-items: center; gap: 7px; }

/* ---- agents as small cards on a flat, slow orbit: face, what it's doing, a few words; easy to click ---- */
.node .moons { z-index: 5; }
.moon { width: auto; height: auto; margin: 0; display: flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px;
  background: #141822e6; backdrop-filter: blur(6px); box-shadow: 0 0 0 1px var(--line-2), 0 6px 14px -8px #000; pointer-events: auto; cursor: pointer;
  translate: -100% -50%; white-space: nowrap; transition: box-shadow .2s; }
.moon:hover { box-shadow: 0 0 0 1.5px #ffffff55, 0 8px 16px -8px #000; }
.moon > .face { width: 22px; height: 22px; flex: none; }
.moon .mc { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 550; color: var(--text-2); letter-spacing: -.005em; }
.moon .mg { display: inline-flex; color: var(--mint); }
.moon .mg svg { width: 12px; height: 12px; filter: none; }
.moon.waiting { box-shadow: 0 0 0 1.5px #ffc21a99, 0 6px 14px -8px #000; }
.moon.waiting .mg { color: var(--gold); }
.moon.quiet { box-shadow: 0 0 0 1.5px #f0463c88, 0 6px 14px -8px #000; }
.moon.quiet .mg { color: #ffb9b3; }
.moon.idle { opacity: .72; }
.moon.idle .mg { color: var(--mute); }
.moon.idle svg { opacity: 1; }
.sysn .moon .mc { font-size: 10.5px; }
body.phone .moon .mc { display: none; }
body.phone .moon { padding: 2px; translate: -50% -50%; }

/* agents draw above every other part of a body (work card, name, ring), and above neighbouring bodies' parts */
.node .moons { z-index: 9; }
.node:has(.moon:hover) { z-index: 30; }

/* bodies (with their agents and work cards) draw above the centre circle */
#nodes { z-index: 5; }
/* agents on a body's right side are anchored by their left edge */
.moon.right { translate: 0 -50%; flex-direction: row-reverse; padding: 3px 3px 3px 9px; }
body.phone .moon.right { translate: -50% -50%; }

.lk.pri { background: #f2f4f8; color: #0b0d12; box-shadow: none; }
.lk.pri:hover { background: #fff; }
.msgbox { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.msgbox[hidden] { display: none; }
.msgbox textarea { flex: 1; resize: none; border-radius: 10px; border: 1px solid var(--line-2); background: #0b0d12; color: var(--text); font: 13.5px/1.4 var(--font); padding: 8px 10px; outline: none; }
.msgbox textarea:focus { border-color: #9db4ff; }

.movepick { gap: 6px; cursor: pointer; }
.movepick select { background: transparent; border: 0; color: var(--text); font: inherit; font-weight: 600; outline: none; cursor: pointer; max-width: 140px; }
.movepick select option { background: #151922; color: var(--text); }

.bellbtn { right: 100px; }
/* on is calm (gold means only "needs you"): brighter, ringing, a small mint dot */
.bellbtn.on { color: var(--text); }
.bellbtn .bdot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 2px #121620; }
.bellbtn.blocked, .bellbtn.unsupported { color: #6f7686; }
.bellpop { position: absolute; z-index: 26; top: 54px; right: 16px; width: 320px; padding: 14px 16px 16px; border-radius: 20px; background: #141823f2; backdrop-filter: blur(18px); box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -20px #000; font-family: var(--font); animation: bellIn .18s var(--ease); }
@keyframes bellIn { from { opacity: 0; transform: translateY(-4px); } }
.bellpop[hidden] { display: none; }
.bellpop .bphead { display: flex; align-items: center; gap: 10px; }
.bellpop .bphead b { flex: 1; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.bellpop .bpdot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #3a4050; box-shadow: 0 0 0 3px #ffffff08; }
.bellpop .bpdot.on { background: var(--mint); box-shadow: 0 0 0 3px #5cc8ba22; }
.bellpop .bpdot.blocked { background: transparent; box-shadow: 0 0 0 2px #6f7686 inset; }
.bellpop .bpdot.warn { background: #8a93a6; }
.bellpop .bpsub { margin: 8px 0 0 20px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.bellpop .bpsub .share { display: inline-block; vertical-align: -2px; color: var(--text); }
.bellpop .bpacts { display: flex; gap: 8px; margin: 14px 0 0 20px; }
.bellpop .bpacts .btn { height: 34px; padding: 0 14px; font-size: 13.5px; }
.bellpop .bpacts .btn:disabled { opacity: .55; }
.bellpop .bpdevs { margin: 16px 0 0 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.bellpop .bplbl { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--text-3, #7b8292); letter-spacing: .02em; }
.bellpop .bpdev { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; color: var(--text-2); }
.bellpop .bpdev .bpdot { width: 7px; height: 7px; box-shadow: none; }
.bellpop .bpdev b { font-weight: 550; color: var(--text); }
.bellpop .bpdev span:last-child { margin-left: auto; font-size: 12.5px; }
body.sheet-open.desk .bellpop { right: calc(min(460px, 40vw) + 40px); }
body.phone .bellpop { position: fixed; top: 48px; left: 10px; right: 10px; width: auto; background: #141823fb; }
.goall { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 32px; padding: 0 12px 0 14px; border-radius: 999px; background: var(--gold); color: #1a1300; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 0 14px -2px #ffc21a77; }
.goall b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #1a1300; color: var(--gold); font-size: 11px; display: inline-grid; place-items: center; }
.goall:hover { filter: brightness(1.06); }
body.phone .goall { height: 28px; font-size: 12px; padding: 0 10px; }

.kitbtn { right: 142px; }
.kitbtn.need { color: var(--gold); box-shadow: 0 0 0 1px #ffc21a88; }
.kitbtn .kitn { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--gold); color: #1a1300; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
body.phone .bellbtn { right: 86px; }
body.phone .kitbtn { right: 124px; }
.kitbtn .kitn[hidden] { display: none; }

.mergerow { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.mergerow select { flex: 1; min-width: 0; height: 32px; border-radius: 9px; border: 1px solid var(--line-2); background: #0d1018; color: var(--text); font: inherit; font-size: 13px; padding: 0 8px; }
