/* =====================================================================
   HAMZA OS v30 "ORBITAL" — HUD design system
   ===================================================================== */
:root {
  --bg: #03050a; --bg2: #070b15;
  --ink: #e9f2ff; --sub: #93a7c6; --dim: #5d6f8c;
  --line: rgba(130, 170, 230, .14); --line2: rgba(130, 170, 230, .26);
  --panel: rgba(8, 13, 25, .88); --panel2: rgba(12, 19, 36, .94); --glass: rgba(5, 9, 18, .78);
  --hud: #29e3ff; --hud-rgb: 41, 227, 255;
  --acc: #29e3ff; --acc-rgb: 41, 227, 255;
  --ok: #3dffa0; --warn: #ffd166; --hot: #ff9f43; --bad: #ff4d6d; --vio: #a98bff;
  --f-disp: "Chakra Petch", "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --cut: 12px; --dock-h: 70px; --top-h: 54px;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
[data-mod="core"], .m-core { --acc: #ffd166; --acc-rgb: 255, 209, 102; }
[data-mod="fuel"], .m-fuel { --acc: #ffb23f; --acc-rgb: 255, 178, 63; }
[data-mod="forge"], .m-forge { --acc: #ff6b3d; --acc-rgb: 255, 107, 61; }
[data-mod="void"], .m-void { --acc: #29e3ff; --acc-rgb: 41, 227, 255; }
[data-mod="scan"], .m-scan { --acc: #3dffa0; --acc-rgb: 61, 255, 160; }
[data-mod="dose"], .m-dose { --acc: #a98bff; --acc-rgb: 169, 139, 255; }
[data-mod="nova"], .m-nova { --acc: #8b7bff; --acc-rgb: 139, 123, 255; }
[data-mod="rank"], .m-rank { --acc: #ffd166; --acc-rgb: 255, 209, 102; }
[data-mod="system"], .m-system { --acc: #93a7c6; --acc-rgb: 147, 167, 198; }

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); color: var(--ink); font-family: var(--f-body); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; overflow-x: hidden; font-size: 14px; line-height: 1.45;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(var(--hud-rgb), .10), transparent 60%),
    radial-gradient(80% 50% at 100% 100%, rgba(139, 123, 255, .08), transparent 60%),
    linear-gradient(rgba(130, 170, 230, .035) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, rgba(130, 170, 230, .035) 1px, transparent 1px) 0 0 / 32px 100%,
    var(--bg);
}
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 400;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
#bg-stars, #fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; }
#bg-stars { z-index: 0; opacity: .9; }
#fx { z-index: 350; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.disp { font-family: var(--f-disp); }
.dim { color: var(--dim); } .sub { color: var(--sub); } .acc { color: var(--acc); }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }
.up { text-transform: uppercase; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid rgba(var(--acc-rgb), .9); outline-offset: 2px; }
.ico { width: 20px; height: 20px; flex: none; }
.ico.sm { width: 16px; height: 16px; } .ico.lg { width: 26px; height: 26px; } .ico.xl { width: 34px; height: 34px; }

/* ---------------------------------------------------------------- layout */
#view { position: relative; z-index: 2; max-width: 760px; margin: 0 auto;
  padding: calc(var(--top-h) + var(--st) + 10px) 12px calc(var(--dock-h) + var(--sb) + 26px); }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mt { margin-top: 10px; } .mt2 { margin-top: 16px; } .mb { margin-bottom: 10px; }
.center { text-align: center; }

/* ---------------------------------------------------------------- top bar */
#topbar { position: fixed; z-index: 60; left: 0; right: 0; top: 0; height: calc(var(--top-h) + var(--st)); padding: var(--st) 12px 0;
  display: flex; align-items: center; gap: 10px; background: linear-gradient(180deg, rgba(3, 5, 10, .96), rgba(3, 5, 10, .78));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
#topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--hud-rgb), .8), transparent); opacity: .55; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; background: none; border: 0; padding: 0; cursor: pointer; }
.brand-mark { width: 30px; height: 30px; color: var(--hud); filter: drop-shadow(0 0 6px rgba(var(--hud-rgb), .6)); }
.brand-name { font: 700 16px/1 var(--f-disp); letter-spacing: .14em; white-space: nowrap; }
.brand-name b { color: var(--hud); font-weight: 700; }
.brand-ver { font: 500 9px/1 var(--f-mono); color: var(--dim); letter-spacing: .1em; margin-top: 3px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.rank-chip { position: relative; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 10px 0 6px; cursor: pointer;
  color: var(--ink); background: rgba(255, 209, 102, .08); border: 1px solid rgba(255, 209, 102, .45);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)); }
.rank-chip svg.emb { width: 22px; height: 22px; color: #ffd166; }
.rank-chip .lv { font: 700 12px/1 var(--f-mono); letter-spacing: .04em; color: #ffe3a1; white-space: nowrap; }
.rank-chip .xpbar { width: 36px; height: 4px; background: rgba(255, 255, 255, .1); }
.rank-chip .xpbar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb23f, #ffd166); box-shadow: 0 0 8px #ffd166; transition: width .8s cubic-bezier(.2, .9, .3, 1.1); }
.rank-chip .badge { position: static; margin-left: 1px; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center;
  font: 700 9.5px/1 var(--f-mono); color: #1a0a00; background: #ffd166; box-shadow: 0 0 10px #ffd166; }
.rank-chip.loot { animation: lootPulse 1.6s ease-in-out infinite; }
@keyframes lootPulse { 50% { background: rgba(255, 209, 102, .22); box-shadow: inset 0 0 14px rgba(255, 209, 102, .45); } }
.tb-btn { width: 36px; height: 36px; display: grid; place-items: center; color: var(--sub); background: rgba(255, 255, 255, .03); border: 1px solid var(--line2); cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)); }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); box-shadow: 0 0 0 3px rgba(255, 255, 255, .04); }
.sync-dot.cloud { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.sync-dot.busy { background: var(--warn); animation: blink 1s infinite; }
.sync-dot.off { background: var(--bad); }
@keyframes blink { 50% { opacity: .3; } }
@media (max-width: 370px) { .brand-name { font-size: 14px; letter-spacing: .1em; } .brand-ver { display: none; } .rank-chip .xpbar { display: none; } }

/* ---------------------------------------------------------------- dock */
#dock { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: calc(var(--dock-h) + var(--sb)); padding: 0 6px var(--sb);
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: stretch;
  background: linear-gradient(0deg, rgba(3, 5, 10, .98), rgba(3, 5, 10, .86)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); }
#dock::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--hud-rgb), .7), transparent); }
.dk { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: none; border: 0; cursor: pointer;
  color: var(--dim); font: 600 9.5px/1 var(--f-disp); letter-spacing: .1em; transition: color .2s; }
.dk .ico { width: 22px; height: 22px; transition: transform .25s cubic-bezier(.2, 1.4, .4, 1), filter .25s; }
.dk.on { color: var(--acc); }
.dk.on .ico { transform: translateY(-2px); filter: drop-shadow(0 0 7px rgba(var(--acc-rgb), .8)); }
.dk.on::after { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 2px; background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.dk-orb { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; background: none; border: 0; cursor: pointer; padding: 0; }
.dk-orb .orb { position: relative; margin-top: -18px; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #0e3040, #04121a 70%); border: 1px solid rgba(41, 227, 255, .6);
  box-shadow: 0 0 22px rgba(41, 227, 255, .35), inset 0 0 18px rgba(41, 227, 255, .25); }
.dk-orb .orb svg.ring { position: absolute; inset: -5px; width: 72px; height: 72px; animation: spin 12s linear infinite; color: #29e3ff; }
.dk-orb .orb .t { font: 700 12px/1 var(--f-mono); color: #bff6ff; text-shadow: 0 0 8px #29e3ff; }
.dk-orb .orb .t small { display: block; font-size: 7.5px; letter-spacing: .14em; color: #6fcfe0; margin-top: 3px; text-align: center; }
.dk-orb .lbl { margin-top: 3px; font: 700 9.5px/1 var(--f-disp); letter-spacing: .16em; color: #29e3ff; }
.dk-orb.on .orb { box-shadow: 0 0 30px rgba(41, 227, 255, .7), inset 0 0 22px rgba(41, 227, 255, .45); }
.dk-orb.fasting .orb { animation: orbPulse 2.4s ease-in-out infinite; }
@keyframes orbPulse { 50% { box-shadow: 0 0 34px rgba(41, 227, 255, .75), inset 0 0 26px rgba(41, 227, 255, .5); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- module header */
.mod-head { position: relative; padding: 4px 2px 12px; }
.mh-code { font: 500 10px/1 var(--f-mono); letter-spacing: .22em; color: rgba(var(--acc-rgb), .9); display: flex; align-items: center; gap: 8px; }
.mh-code::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--acc-rgb), .5), transparent); }
.mod-head h1 { margin: 6px 0 2px; font: 700 27px/1.05 var(--f-disp); letter-spacing: .04em; text-transform: uppercase;
  background: linear-gradient(90deg, #fff, rgba(var(--acc-rgb), 1) 140%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mod-head p { margin: 0; color: var(--sub); font-size: 13px; }
.mod-head .mh-right { position: absolute; right: 2px; top: 18px; }

/* ---------------------------------------------------------------- panels */
.panel {
  position: relative; margin: 0 0 12px; padding: 14px;
  border: 1px solid transparent;
  background:
    linear-gradient(to bottom left, transparent calc(50% - .8px), rgba(var(--acc-rgb), .7) 50%, transparent calc(50% + .8px)) right top / var(--cut) var(--cut) no-repeat border-box,
    linear-gradient(to top right, transparent calc(50% - .8px), rgba(var(--acc-rgb), .4) 50%, transparent calc(50% + .8px)) left bottom / var(--cut) var(--cut) no-repeat border-box,
    linear-gradient(180deg, var(--panel2), var(--panel)) padding-box,
    linear-gradient(140deg, rgba(var(--acc-rgb), .55), var(--line) 34%, var(--line) 70%, rgba(var(--acc-rgb), .24)) border-box;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.panel::before { content: ""; position: absolute; left: 5px; top: 5px; width: 9px; height: 9px; border-left: 2px solid rgba(var(--acc-rgb), .85); border-top: 2px solid rgba(var(--acc-rgb), .85); pointer-events: none; }
.panel.hero { padding: 16px; background:
    linear-gradient(to bottom left, transparent calc(50% - .8px), rgba(var(--acc-rgb), .8) 50%, transparent calc(50% + .8px)) right top / var(--cut) var(--cut) no-repeat border-box,
    linear-gradient(to top right, transparent calc(50% - .8px), rgba(var(--acc-rgb), .5) 50%, transparent calc(50% + .8px)) left bottom / var(--cut) var(--cut) no-repeat border-box,
    radial-gradient(120% 90% at 50% 0%, rgba(var(--acc-rgb), .16), transparent 60%) padding-box,
    linear-gradient(180deg, var(--panel2), var(--panel)) padding-box,
    linear-gradient(140deg, rgba(var(--acc-rgb), .8), var(--line2) 40%, var(--line) 70%, rgba(var(--acc-rgb), .4)) border-box; }
.panel.flat { background: linear-gradient(180deg, var(--panel2), var(--panel)) padding-box, linear-gradient(140deg, var(--line2), var(--line)) border-box; }
.panel.flat::before { display: none; }
.p-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -2px 0 10px; }
.tag { font: 600 10px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(var(--acc-rgb), 1); display: inline-flex; align-items: center; gap: 6px; }
.tag::before { content: ""; width: 6px; height: 6px; background: var(--acc); box-shadow: 0 0 8px var(--acc); transform: rotate(45deg); }
.p-aux { font: 500 10.5px/1 var(--f-mono); color: var(--sub); letter-spacing: .06em; }
.p-title { margin: 0 0 4px; font: 700 19px/1.15 var(--f-disp); letter-spacing: .03em; text-transform: uppercase; }
.p-sub { margin: 0; color: var(--sub); font-size: 12.5px; }
.divider { height: 1px; margin: 12px 0; background: linear-gradient(90deg, transparent, var(--line2), transparent); }

/* ---------------------------------------------------------------- controls */
.btn { --b: rgba(var(--acc-rgb), .5); display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 14px;
  font: 600 12.5px/1 var(--f-disp); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
  background: rgba(var(--acc-rgb), .08); border: 1px solid var(--b); cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); transition: transform .08s, background .2s, filter .2s; }
.btn:hover { background: rgba(var(--acc-rgb), .14); }
.btn:active { transform: translateY(1px) scale(.98); filter: brightness(1.2); }
.btn.pri { color: #04090f; background: linear-gradient(135deg, rgba(var(--acc-rgb), 1), rgba(var(--acc-rgb), .72)); border-color: transparent; font-weight: 700; }
.btn.pri:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; --b: var(--line2); color: var(--sub); }
.btn.danger { --b: rgba(255, 77, 109, .6); background: rgba(255, 77, 109, .1); color: #ffc2cd; }
.btn.sm { min-height: 32px; padding: 0 10px; font-size: 11px; }
.btn.xs { min-height: 26px; padding: 0 8px; font-size: 10px; letter-spacing: .08em; }
.btn.block { width: 100%; }
.btn.tall { min-height: 54px; font-size: 14px; }
.btn.icon { width: 42px; padding: 0; }
.btn.sm.icon { width: 32px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; cursor: pointer; white-space: nowrap;
  font: 600 11px/1 var(--f-disp); letter-spacing: .08em; text-transform: uppercase; color: var(--sub);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line2);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.chip.on { color: var(--acc); border-color: rgba(var(--acc-rgb), .7); background: rgba(var(--acc-rgb), .12); box-shadow: inset 0 0 12px rgba(var(--acc-rgb), .15); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.seg { display: inline-flex; padding: 3px; gap: 3px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--sub); padding: 7px 10px; font: 600 10.5px/1 var(--f-disp); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.seg button.on { background: rgba(var(--acc-rgb), .18); color: var(--acc); }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span, .lbl { font: 600 10px/1 var(--f-mono); letter-spacing: .14em; color: var(--sub); text-transform: uppercase; }
.inp { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); background: rgba(0, 0, 0, .4); border: 1px solid var(--line2); outline: none; font-size: 15px;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)); }
.inp:focus { border-color: rgba(var(--acc-rgb), .8); box-shadow: inset 0 0 14px rgba(var(--acc-rgb), .12); }
.inp.mono { font-family: var(--f-mono); }
select.inp { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sub) 50%), linear-gradient(135deg, var(--sub) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
textarea.inp { min-height: 90px; resize: vertical; }
input[type="range"] { width: 100%; accent-color: var(--acc); }
.toggle { position: relative; width: 46px; height: 26px; flex: none; appearance: none; -webkit-appearance: none; background: rgba(255, 255, 255, .08); border: 1px solid var(--line2); cursor: pointer; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--sub); transition: transform .2s, background .2s; }
.toggle:checked { background: rgba(var(--acc-rgb), .2); border-color: rgba(var(--acc-rgb), .7); }
.toggle:checked::after { transform: translateX(20px); background: var(--acc); box-shadow: 0 0 10px var(--acc); }

/* ---------------------------------------------------------------- stats + bars */
.stat { position: relative; padding: 10px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); min-width: 0; }
.stat .k { display: block; font: 600 9.5px/1.1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sub); }
.stat .v { display: block; margin-top: 5px; font: 700 17px/1.05 var(--f-mono); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .v small { font-size: 10.5px; color: var(--sub); font-weight: 500; }
.stat .s { display: block; margin-top: 3px; font: 500 10px/1.2 var(--f-mono); color: var(--dim); }
.stat.hot .v { color: var(--acc); text-shadow: 0 0 12px rgba(var(--acc-rgb), .5); }
.bar { position: relative; height: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(var(--acc-rgb), .6), var(--acc)); box-shadow: 0 0 10px rgba(var(--acc-rgb), .8); transition: width .9s cubic-bezier(.2, .9, .3, 1); }
.bar.thick { height: 12px; }
.bar.seg-bg { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 6px, transparent 6px 8px); }
.bar.shimmer i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); animation: shimmer 2.4s linear infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv b { font-family: var(--f-mono); font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; font: 600 9.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--acc); background: rgba(var(--acc-rgb), .1); border: 1px solid rgba(var(--acc-rgb), .45); }
.pill.dim { color: var(--sub); background: rgba(255, 255, 255, .04); border-color: var(--line2); }
.pill.ok { color: var(--ok); background: rgba(61, 255, 160, .1); border-color: rgba(61, 255, 160, .45); }
.pill.warn { color: var(--warn); background: rgba(255, 209, 102, .1); border-color: rgba(255, 209, 102, .45); }
.pill.bad { color: var(--bad); background: rgba(255, 77, 109, .1); border-color: rgba(255, 77, 109, .45); }

/* ---------------------------------------------------------------- lists */
.list { display: flex; flex-direction: column; gap: 6px; }
.li { display: flex; align-items: center; gap: 10px; padding: 10px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
.li .li-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; color: var(--acc); background: rgba(var(--acc-rgb), .08); border: 1px solid rgba(var(--acc-rgb), .3);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.li .t { font: 600 13.5px/1.2 var(--f-disp); letter-spacing: .04em; text-transform: uppercase; }
.li .s { font: 500 11px/1.3 var(--f-mono); color: var(--sub); margin-top: 2px; }
.empty { padding: 18px 12px; text-align: center; color: var(--sub); font-size: 13px; border: 1px dashed var(--line2); }

/* ---------------------------------------------------------------- calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal-head .m { font: 700 14px/1 var(--f-disp); letter-spacing: .14em; text-transform: uppercase; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { font: 600 9px/1 var(--f-mono); color: var(--dim); text-align: center; letter-spacing: .1em; padding-bottom: 4px; }
.cal .c { position: relative; aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line); font: 600 11px/1 var(--f-mono); color: var(--sub); padding: 0; }
.cal .c small { font-size: 8px; color: inherit; opacity: .85; }
.cal .c.blank { visibility: hidden; }
.cal .c.today { outline: 1px solid var(--acc); outline-offset: 1px; color: var(--ink); }
.cal .c.future { opacity: .35; }
.cal .c[data-tone] { color: #04090f; border-color: transparent; }
.cal .c[data-tone="1"] { background: rgba(var(--acc-rgb), .25); color: var(--ink); }
.cal .c[data-tone="2"] { background: rgba(var(--acc-rgb), .5); }
.cal .c[data-tone="3"] { background: rgba(var(--acc-rgb), .85); box-shadow: 0 0 10px rgba(var(--acc-rgb), .5); }
.cal .c[data-tone="4"] { background: #ffd166; box-shadow: 0 0 12px rgba(255, 209, 102, .6); }
.cal .c[data-tone="5"] { background: #ff6b9d; box-shadow: 0 0 12px rgba(255, 107, 157, .6); }
.cal .c[data-tone="6"] { background: #a98bff; box-shadow: 0 0 14px rgba(169, 139, 255, .7); }
.cal .c[data-tone="g"] { background: rgba(61, 255, 160, .75); }
.cal .c[data-tone="y"] { background: rgba(255, 209, 102, .8); }
.cal .c[data-tone="o"] { background: rgba(255, 159, 67, .85); }
.cal .c[data-tone="r"] { background: rgba(255, 77, 109, .85); }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font: 500 10px/1 var(--f-mono); color: var(--sub); }
.legend i { display: inline-block; width: 9px; height: 9px; margin-right: 4px; vertical-align: -1px; }

/* ---------------------------------------------------------------- sheets (modals) */
.sheet-wrap { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; background: rgba(1, 3, 8, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn .2s ease; }
.sheet { position: relative; width: 100%; max-width: 620px; max-height: 92dvh; display: flex; flex-direction: column; background: linear-gradient(180deg, #0c1426, #060a14);
  border-top: 1px solid rgba(var(--acc-rgb), .6); box-shadow: 0 -20px 60px rgba(0, 0, 0, .6), 0 -1px 24px rgba(var(--acc-rgb), .2);
  clip-path: polygon(0 18px, 18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); animation: sheetUp .32s cubic-bezier(.2, 1, .3, 1); }
.sheet.full { height: 92dvh; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 10px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font: 700 18px/1.1 var(--f-disp); letter-spacing: .06em; text-transform: uppercase; flex: 1; min-width: 0; }
.sheet-head .k { font: 600 9.5px/1 var(--f-mono); letter-spacing: .2em; color: var(--acc); display: block; margin-bottom: 4px; }
.sheet-body { padding: 14px 16px calc(20px + var(--sb)); overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 640px) { .sheet-wrap { align-items: center; } .sheet { clip-path: polygon(0 18px, 18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px)); } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------------------------------------------------------------- toast + reward */
#toast { position: fixed; z-index: 420; left: 50%; top: calc(var(--top-h) + var(--st) + 8px); transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 480px); padding: 10px 14px; font: 600 12.5px/1.3 var(--f-disp); letter-spacing: .05em; color: var(--ink);
  background: rgba(6, 12, 24, .96); border: 1px solid rgba(var(--hud-rgb), .6); box-shadow: 0 0 24px rgba(var(--hud-rgb), .25); transition: opacity .25s, transform .25s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#reward { position: fixed; inset: 0; z-index: 380; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 45%, rgba(var(--rw-rgb, 255, 209, 102), .22), rgba(1, 3, 8, .94) 62%); backdrop-filter: blur(6px); }
#reward .rw-rings { position: absolute; left: 50%; top: 44%; width: 520px; height: 520px; transform: translate(-50%, -50%); pointer-events: none; }
#reward .rw-rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(var(--rw-rgb, 255, 209, 102), .35); animation: ringOut 2.4s ease-out infinite; }
#reward .rw-rings i:nth-child(2) { animation-delay: .8s; } #reward .rw-rings i:nth-child(3) { animation-delay: 1.6s; }
@keyframes ringOut { from { transform: scale(.2); opacity: 1; } to { transform: scale(1); opacity: 0; } }
#reward .rw-rays { position: absolute; left: 50%; top: 44%; width: 700px; height: 700px; transform: translate(-50%, -50%); pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(var(--rw-rgb, 255, 209, 102), .14) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 12%, transparent 62%); mask: radial-gradient(circle, #000 12%, transparent 62%); animation: spin 18s linear infinite; }
.rw-card { position: relative; width: min(380px, 100%); padding: 26px 20px 20px; text-align: center; background: linear-gradient(170deg, #0f1830, #050912);
  border: 1px solid rgba(var(--rw-rgb, 255, 209, 102), .9); box-shadow: 0 0 60px rgba(var(--rw-rgb, 255, 209, 102), .35);
  clip-path: polygon(0 16px, 16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px)); animation: popIn .55s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } }
.rw-icon { width: 92px; height: 92px; margin: 0 auto; color: rgb(var(--rw-rgb, 255, 209, 102)); filter: drop-shadow(0 0 18px rgba(var(--rw-rgb, 255, 209, 102), .9)); animation: floaty 2.2s ease-in-out infinite; }
.rw-icon svg { width: 100%; height: 100%; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.rw-kicker { margin-top: 10px; font: 600 10.5px/1 var(--f-mono); letter-spacing: .26em; color: rgb(var(--rw-rgb, 255, 209, 102)); }
.rw-title { margin-top: 8px; font: 700 28px/1.05 var(--f-disp); letter-spacing: .04em; text-transform: uppercase; }
.rw-title.glitch { animation: glitch 1.2s steps(2) 2; }
@keyframes glitch { 0% { text-shadow: 2px 0 #ff4d6d, -2px 0 #29e3ff; } 25% { text-shadow: -3px 0 #ff4d6d, 3px 0 #29e3ff; transform: translateX(1px); } 50% { text-shadow: 1px 0 #ff4d6d, -1px 0 #29e3ff; transform: translateX(-1px); } 100% { text-shadow: none; transform: none; } }
.rw-sub { margin-top: 8px; color: var(--sub); font-size: 13px; line-height: 1.5; }
.rw-xp { margin-top: 12px; font: 700 32px/1 var(--f-mono); color: #ffe3a1; text-shadow: 0 0 20px rgba(255, 209, 102, .8); min-height: 4px; }
.rw-card .btn { margin-top: 18px; }
.fx-float { position: fixed; z-index: 390; transform: translate(-50%, 0); pointer-events: none; font: 700 17px/1 var(--f-mono); color: #ffe3a1; text-shadow: 0 0 12px rgba(255, 209, 102, .9), 0 2px 0 #000; animation: floatUp 1.3s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -8px) scale(1.2); } 100% { opacity: 0; transform: translate(-50%, -70px); } }
body.shake #view { animation: shake .5s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 20%, 80% { transform: translate(2px, 1px); } 40%, 60% { transform: translate(-4px, -1px); } 50% { transform: translate(4px, 1px); } }

/* ---------------------------------------------------------------- lock / boot */
.lock { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: radial-gradient(120% 80% at 50% 0%, rgba(41, 227, 255, .14), transparent 60%), rgba(3, 5, 10, .97); }
.lock-card { width: min(400px, 100%); padding: 26px 20px 22px; }
.lock-logo { width: 74px; height: 74px; margin: 0 auto 10px; color: var(--hud); filter: drop-shadow(0 0 16px rgba(var(--hud-rgb), .7)); animation: floaty 3s ease-in-out infinite; }
.lock h1 { margin: 0; text-align: center; font: 700 26px/1 var(--f-disp); letter-spacing: .2em; }
.lock h1 b { color: var(--hud); }
.lock .ver { margin: 6px 0 18px; text-align: center; font: 500 10px/1 var(--f-mono); letter-spacing: .22em; color: var(--sub); }
.lock form { display: flex; flex-direction: column; gap: 12px; }
.lock .msg { min-height: 18px; font-size: 12.5px; color: var(--bad); text-align: center; }
.lock .msg.ok { color: var(--ok); }
.lock .diag { display: flex; justify-content: space-between; font: 500 10px/1 var(--f-mono); color: var(--dim); margin-top: 12px; letter-spacing: .08em; }
#boot { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: var(--bg); transition: opacity .45s; }
#boot.out { opacity: 0; pointer-events: none; }
.boot-in { width: min(320px, 84vw); font: 500 11px/1.6 var(--f-mono); color: var(--sub); letter-spacing: .1em; }
.boot-in .bl { color: var(--hud); font: 700 22px/1 var(--f-disp); letter-spacing: .2em; margin-bottom: 14px; }
.boot-in .bar { margin-top: 12px; height: 3px; }
.boot-in .bar i { width: 0; animation: bootBar 1.1s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes bootBar { to { width: 100%; } }

/* ---------------------------------------------------------------- screen entrance */
.screen > * { animation: rise .45s cubic-bezier(.2, .9, .3, 1) both; }
.screen > *:nth-child(2) { animation-delay: .04s; } .screen > *:nth-child(3) { animation-delay: .08s; } .screen > *:nth-child(4) { animation-delay: .12s; }
.screen > *:nth-child(5) { animation-delay: .16s; } .screen > *:nth-child(6) { animation-delay: .2s; } .screen > *:nth-child(n+7) { animation-delay: .24s; }
.screen.quiet > * { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.flash { position: fixed; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, transparent 0 46%, rgba(var(--acc-rgb), .16) 50%, transparent 54%); animation: scanSweep .55s ease-out forwards; }
@keyframes scanSweep { from { transform: translateY(-50%); opacity: 1; } to { transform: translateY(50%); opacity: 0; } }

/* ---------------------------------------------------------------- reactor (VOID) */
.reactor { position: relative; width: min(300px, 78vw); aspect-ratio: 1 / 1; margin: 2px auto 6px; }
.reactor svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.reactor .rx-ticks { animation: spin 40s linear infinite; transform-origin: 50% 50%; }
.reactor .rx-ticks2 { animation: spin 26s linear infinite reverse; transform-origin: 50% 50%; }
.reactor .rx-core { animation: corePulse 3s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes corePulse { 50% { transform: scale(1.06); opacity: .8; } }
.reactor .rx-arc { transition: stroke-dashoffset 1s linear; }
.reactor .rx-glint { filter: drop-shadow(0 0 6px currentColor); }
.rx-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.rx-center .k { font: 600 9.5px/1 var(--f-mono); letter-spacing: .24em; color: var(--sub); }
.rx-center .big { margin-top: 6px; font: 700 clamp(30px, 10vw, 40px)/1 var(--f-mono); letter-spacing: .02em; color: #fff; text-shadow: 0 0 18px rgba(var(--acc-rgb), .7); }
.rx-center .zn { margin-top: 8px; font: 700 13px/1 var(--f-disp); letter-spacing: .2em; }
.rx-center .tg { margin-top: 6px; font: 500 11px/1.2 var(--f-mono); color: var(--sub); }
.proto-badge { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 2px; }
.proto-badge .pn { font: 700 13px/1 var(--f-disp); letter-spacing: .18em; }
.timeline { position: relative; display: flex; gap: 0; margin-top: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.timeline::-webkit-scrollbar { display: none; }
.tl-node { position: relative; flex: 1 0 64px; min-width: 64px; text-align: center; padding-top: 18px; }
.tl-node::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--line2); }
.tl-node.done::before { background: linear-gradient(90deg, var(--z), var(--z)); box-shadow: 0 0 8px var(--z); }
.tl-node.cur::before { background: linear-gradient(90deg, var(--z) var(--p, 50%), var(--line2) var(--p, 50%)); }
.tl-node .dot { position: absolute; top: 1px; left: 0; width: 12px; height: 12px; transform: rotate(45deg); background: #0b1222; border: 2px solid var(--line2); }
.tl-node.done .dot, .tl-node.cur .dot { border-color: var(--z); background: var(--z); box-shadow: 0 0 10px var(--z); }
.tl-node.cur .dot { animation: blink 1.2s infinite; }
.tl-node .n { font: 600 8.5px/1.15 var(--f-mono); letter-spacing: .06em; color: var(--dim); text-align: left; padding-right: 4px; }
.tl-node.done .n, .tl-node.cur .n { color: var(--ink); }
.tl-node .h { font: 700 10px/1 var(--f-mono); color: var(--sub); text-align: left; margin-top: 3px; }
.zone-card { margin-top: 12px; padding: 12px; border-left: 3px solid var(--z, var(--acc)); background: linear-gradient(90deg, rgba(255, 255, 255, .05), transparent); }
.zone-card .zt { font: 700 13px/1 var(--f-disp); letter-spacing: .14em; color: var(--z); }
.zone-card p { margin: 6px 0 0; color: var(--sub); font-size: 12.5px; }
.protos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.proto { position: relative; text-align: left; padding: 12px; cursor: pointer; color: var(--ink); background: rgba(0, 0, 0, .35); border: 1px solid var(--line2);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); transition: border-color .2s, background .2s; }
.proto .h { font: 700 22px/1 var(--f-mono); color: var(--acc); }
.proto .h small { font-size: 11px; color: var(--sub); }
.proto .n { margin-top: 6px; font: 700 12px/1 var(--f-disp); letter-spacing: .14em; }
.proto .s { margin-top: 4px; font-size: 11px; color: var(--sub); }
.proto .x { position: absolute; right: 10px; top: 10px; font: 600 9.5px/1 var(--f-mono); color: #ffd166; }
.proto.on { border-color: var(--acc); background: rgba(var(--acc-rgb), .12); box-shadow: inset 0 0 20px rgba(var(--acc-rgb), .15); }

/* life support */
.capsule { position: relative; height: 64px; overflow: hidden; background: rgba(0, 0, 0, .45); border: 1px solid rgba(41, 227, 255, .35);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.capsule .liq { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(180deg, rgba(41, 227, 255, .55), rgba(41, 140, 255, .35)); transition: width 1s cubic-bezier(.2, .9, .3, 1); }
.capsule .liq svg { position: absolute; right: -24px; top: 0; height: 100%; width: 48px; color: rgba(120, 240, 255, .7); animation: waveShift 2.2s linear infinite; }
@keyframes waveShift { 50% { transform: translateY(-3px) scaleX(1.06); } }
.capsule .cap-txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
.capsule .cap-txt b { font: 700 22px/1 var(--f-mono); text-shadow: 0 0 10px rgba(0, 0, 0, .8); }
.capsule .cap-txt span { font: 500 11px/1.2 var(--f-mono); color: #cfefff; text-align: right; text-shadow: 0 0 6px #000; }
.ls-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ls-cell { position: relative; padding: 10px 8px; text-align: center; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.ls-cell .n { font: 700 22px/1 var(--f-mono); }
.ls-cell .k { margin-top: 4px; font: 600 9px/1.2 var(--f-mono); letter-spacing: .12em; color: var(--sub); text-transform: uppercase; }
.ls-cell .btn { margin-top: 8px; width: 100%; }
.sym-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sym { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 70px; padding: 8px 4px; cursor: pointer; color: var(--sub);
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line2); font: 600 10.5px/1.15 var(--f-disp); letter-spacing: .06em; text-transform: uppercase; text-align: center;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); transition: color .15s, border-color .15s; }
.sym .ico { color: var(--acc); }
.sym:active, .sym:hover { color: var(--ink); border-color: rgba(var(--acc-rgb), .7); }
.levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.levels button { min-height: 48px; cursor: pointer; font: 700 16px/1 var(--f-mono); color: var(--sub); background: rgba(0, 0, 0, .35); border: 1px solid var(--line2); }
.levels button.on { color: #04090f; background: var(--acc); border-color: var(--acc); box-shadow: 0 0 14px rgba(var(--acc-rgb), .6); }
.analysis .lead { font: 600 15px/1.4 var(--f-disp); letter-spacing: .02em; }
.analysis ul { margin: 10px 0 0; padding: 0; list-style: none; }
.analysis li { position: relative; padding: 6px 0 6px 16px; font: 500 12px/1.4 var(--f-mono); color: var(--sub); border-bottom: 1px dashed var(--line); }
.analysis li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 6px; height: 6px; background: var(--acc); transform: rotate(45deg); }
.principle { position: relative; margin-top: 12px; padding: 14px 14px 12px 16px; background: linear-gradient(135deg, rgba(var(--acc-rgb), .1), rgba(0, 0, 0, .2)); border-left: 3px solid var(--acc); }
.principle p { margin: 0; font: 500 14px/1.5 var(--f-body); color: var(--ink); }
.principle .by { margin-top: 8px; font: 600 10px/1 var(--f-mono); letter-spacing: .16em; color: var(--acc); text-transform: uppercase; }
.principle .by small { color: var(--dim); letter-spacing: .06em; text-transform: none; }

/* wave / nap focus overlay */
.focus { position: fixed; inset: 0; z-index: 260; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px;
  background: radial-gradient(100% 70% at 50% 40%, rgba(41, 227, 255, .16), transparent 70%), #02040a; animation: fadeIn .3s; }
.focus .f-k { font: 600 11px/1 var(--f-mono); letter-spacing: .3em; color: #29e3ff; }
.focus .f-t { font: 700 64px/1 var(--f-mono); color: #fff; text-shadow: 0 0 30px rgba(41, 227, 255, .8); }
.focus .f-breath { width: 160px; height: 160px; border-radius: 50%; border: 2px solid rgba(41, 227, 255, .6); box-shadow: 0 0 40px rgba(41, 227, 255, .35), inset 0 0 40px rgba(41, 227, 255, .25);
  display: grid; place-items: center; font: 600 12px/1 var(--f-disp); letter-spacing: .3em; color: #bff6ff; animation: breathe 10s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.72); } 40% { transform: scale(1.05); } 50% { transform: scale(1.05); } }
.focus .f-waves { width: min(520px, 92vw); height: 70px; }
.focus .f-waves path { animation: waveMove 4s linear infinite; }
.focus .f-waves path:nth-child(2) { animation-duration: 6s; opacity: .5; }
@keyframes waveMove { from { transform: translateX(0); } to { transform: translateX(-120px); } }
.focus .f-line { max-width: 420px; text-align: center; font: 500 15px/1.5 var(--f-body); color: var(--ink); min-height: 66px; transition: opacity .5s; }
.focus .f-by { font: 600 10px/1.5 var(--f-mono); letter-spacing: .18em; color: #29e3ff; text-align: center; max-width: 420px; }

/* ---------------------------------------------------------------- missions / rank / threat (CORE + RANK) */
.mission { display: flex; align-items: center; gap: 10px; padding: 10px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.mission .mi { width: 40px; height: 40px; flex: none; display: grid; place-items: center; color: var(--acc); border: 1px solid rgba(var(--acc-rgb), .35); background: rgba(var(--acc-rgb), .07);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)); }
.mission .mn { font: 700 12.5px/1.1 var(--f-disp); letter-spacing: .1em; }
.mission .ms { font: 500 10.5px/1.3 var(--f-mono); color: var(--sub); margin-top: 3px; }
.mission .bar { margin-top: 6px; height: 4px; }
.mission.ready { border-color: rgba(255, 209, 102, .8); background: linear-gradient(90deg, rgba(255, 209, 102, .12), rgba(0, 0, 0, .3)); box-shadow: inset 0 0 18px rgba(255, 209, 102, .12); }
.mission.ready .mi { color: #ffd166; border-color: rgba(255, 209, 102, .7); animation: wobble 1.4s ease-in-out infinite; }
.mission.claimed { opacity: .55; }
.mission .bonus { font: 600 8px/1 var(--f-mono); letter-spacing: .16em; color: var(--vio); border: 1px solid rgba(169, 139, 255, .5); padding: 2px 4px; margin-left: 6px; vertical-align: 2px; }
@keyframes wobble { 25% { transform: rotate(-6deg) scale(1.06); } 75% { transform: rotate(6deg) scale(1.06); } }
.claim { min-width: 66px; min-height: 42px; padding: 0 8px; cursor: pointer; font: 700 10px/1.15 var(--f-disp); letter-spacing: .1em; color: #1b1200; text-transform: uppercase;
  background: linear-gradient(135deg, #ffe39a, #ffb23f); border: 0; box-shadow: 0 0 16px rgba(255, 209, 102, .55);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)); animation: claimBob 1.2s ease-in-out infinite; }
.claim b { display: block; font: 700 13px/1 var(--f-mono); margin-top: 2px; }
@keyframes claimBob { 50% { transform: translateY(-2px); } }
.claim.big { width: 100%; min-height: 50px; font-size: 13px; }
.xp-tag { min-width: 56px; text-align: right; font: 600 11px/1.2 var(--f-mono); color: var(--dim); }
.xp-tag.got { color: var(--ok); }
.drop-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px; border: 1px dashed rgba(169, 139, 255, .5); background: rgba(169, 139, 255, .06); }
.drop-row.ready { border-style: solid; border-color: #c084fc; box-shadow: 0 0 22px rgba(192, 132, 252, .35); }
.drop-row .crate { width: 46px; height: 46px; color: #c084fc; filter: drop-shadow(0 0 8px rgba(192, 132, 252, .6)); }
.drop-row.ready .crate { animation: wobble .9s ease-in-out infinite; }
.rank-card { display: flex; align-items: center; gap: 14px; }
.emblem-big { position: relative; width: 84px; height: 84px; flex: none; color: #ffd166; }
.emblem-big svg.ring { position: absolute; inset: 0; animation: spin 16s linear infinite; }
.emblem-big svg.e { position: absolute; inset: 20px; filter: drop-shadow(0 0 10px rgba(255, 209, 102, .8)); }
.emblem-big .lvl { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); padding: 2px 7px; font: 700 11px/1 var(--f-mono); color: #1b1200; background: #ffd166; box-shadow: 0 0 10px #ffd166; }
.rank-name { font: 700 22px/1 var(--f-disp); letter-spacing: .14em; background: linear-gradient(90deg, #fff, #ffd166); -webkit-background-clip: text; background-clip: text; color: transparent; }
.threat { display: flex; gap: 12px; align-items: center; }
.threat .anom { width: 86px; height: 86px; flex: none; color: var(--tc, #ff4d6d); filter: drop-shadow(0 0 12px var(--tc, #ff4d6d)); }
.threat .anom .a1 { animation: spin 9s linear infinite; transform-origin: 50% 50%; }
.threat .anom .a2 { animation: spin 5s linear infinite reverse; transform-origin: 50% 50%; }
.threat .anom .a3 { animation: corePulse 1.8s ease-in-out infinite; transform-origin: 50% 50%; }
.threat.dead .anom { filter: grayscale(1); opacity: .5; }
.threat.dead .anom * { animation: none !important; }
.hp { position: relative; height: 18px; margin-top: 8px; background: #1a0710; border: 1px solid rgba(255, 77, 109, .6); overflow: hidden; }
.hp i { position: absolute; left: 0; top: 0; bottom: 0; background: repeating-linear-gradient(90deg, #ff4d6d 0 14px, #d61f45 14px 16px); box-shadow: 0 0 12px rgba(255, 77, 109, .8); transition: width 1s; }
.hp span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 10px/1 var(--f-mono); text-shadow: 0 1px 2px #000; }
.shield-banner { display: flex; gap: 10px; align-items: center; padding: 12px; margin-bottom: 12px; background: linear-gradient(90deg, rgba(41, 227, 255, .14), rgba(0, 0, 0, .3)); border: 1px solid rgba(41, 227, 255, .6); }
.medals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.medal { padding: 10px 6px; text-align: center; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.medal svg { width: 34px; height: 34px; color: var(--dim); }
.medal.got { border-color: rgba(255, 209, 102, .55); background: linear-gradient(170deg, rgba(255, 209, 102, .12), rgba(0, 0, 0, .3)); }
.medal.got svg { color: #ffd166; filter: drop-shadow(0 0 8px rgba(255, 209, 102, .6)); }
.medal .mn { margin-top: 5px; font: 700 10px/1.15 var(--f-disp); letter-spacing: .08em; }
.medal .md { margin-top: 3px; font-size: 9.5px; line-height: 1.25; color: var(--dim); }
.medal .bar { margin-top: 6px; height: 3px; }
.ladder { display: flex; flex-direction: column; gap: 4px; }
.ladder .rk { display: flex; justify-content: space-between; padding: 7px 10px; font: 600 11px/1 var(--f-mono); letter-spacing: .1em; color: var(--dim); border: 1px solid var(--line); }
.ladder .rk.got { color: var(--ink); } .ladder .rk.cur { color: #1b1200; background: #ffd166; border-color: #ffd166; }
.loadout { display: flex; flex-wrap: wrap; gap: 6px; }
.lo { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; padding: 8px 4px; cursor: pointer; color: var(--ink); background: rgba(0, 0, 0, .35); border: 1px solid var(--line2); font: 600 8.5px/1.1 var(--f-mono); letter-spacing: .06em; text-align: center; }
.lo svg { width: 28px; height: 28px; }
.lo i { width: 22px; height: 22px; border-radius: 50%; background: var(--sk); box-shadow: 0 0 10px var(--sk); }
.lo.on { border-color: #ffd166; box-shadow: inset 0 0 12px rgba(255, 209, 102, .3); }
.lo:disabled { opacity: .35; cursor: not-allowed; }
.greet { font: 700 20px/1.1 var(--f-disp); letter-spacing: .08em; text-transform: uppercase; }
.stardate { font: 500 10.5px/1 var(--f-mono); color: var(--sub); letter-spacing: .14em; margin-top: 6px; }
.status-hero { display: flex; gap: 14px; align-items: center; }
.mini-ring { position: relative; width: 108px; height: 108px; flex: none; }
.mini-ring svg { width: 100%; height: 100%; }
.mini-ring .c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mini-ring .c b { font: 700 19px/1 var(--f-mono); }
.mini-ring .c small { font: 600 8.5px/1 var(--f-mono); letter-spacing: .16em; color: var(--sub); margin-top: 4px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { position: relative; padding: 12px; text-align: left; cursor: pointer; color: var(--ink); background: rgba(0, 0, 0, .32); border: 1px solid rgba(var(--acc-rgb), .35);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); }
.tile .tk { display: flex; align-items: center; gap: 6px; font: 600 9.5px/1 var(--f-mono); letter-spacing: .16em; color: var(--acc); }
.tile .tv { margin-top: 8px; font: 700 19px/1 var(--f-mono); }
.tile .ts { margin-top: 4px; font: 500 10.5px/1.2 var(--f-mono); color: var(--sub); }
.credits-bars { display: flex; align-items: flex-end; gap: 5px; height: 54px; }
.credits-bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; height: 100%; }
.credits-bars i { width: 100%; min-height: 2px; background: rgba(var(--acc-rgb), .35); }
.credits-bars i.met { background: var(--acc); box-shadow: 0 0 8px rgba(var(--acc-rgb), .6); }
.credits-bars span { font: 600 8px/1 var(--f-mono); color: var(--dim); }
.brief { white-space: pre-wrap; font-size: 13.5px; line-height: 1.55; }

/* ---------------------------------------------------------------- FUEL */
.gauge { position: relative; width: min(320px, 86vw); margin: 0 auto; }
.gauge svg { width: 100%; display: block; overflow: visible; }
.gauge .needle { transition: transform 1.2s cubic-bezier(.2, 1.3, .4, 1); transform-origin: 160px 160px; }
.gauge .gc { position: static; margin-top: 4px; text-align: center; }
.gauge .gc b { display: block; font: 700 34px/1 var(--f-mono); }
.gauge .gc span { font: 700 12px/1 var(--f-disp); letter-spacing: .2em; }
.date-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.date-nav .d { font: 700 13px/1 var(--f-disp); letter-spacing: .14em; text-transform: uppercase; }
.meal-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.meal { padding: 12px 8px; text-align: center; cursor: pointer; color: var(--sub); background: rgba(0, 0, 0, .3); border: 1px solid var(--line2);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.meal b { display: block; font: 700 13px/1 var(--f-disp); letter-spacing: .14em; color: var(--ink); }
.meal small { display: block; margin-top: 5px; font-size: 10px; line-height: 1.3; }
.meal.on[data-meal="healthy"] { border-color: var(--ok); background: rgba(61, 255, 160, .1); } .meal.on[data-meal="healthy"] b { color: var(--ok); }
.meal.on[data-meal="balanced"] { border-color: var(--warn); background: rgba(255, 209, 102, .1); } .meal.on[data-meal="balanced"] b { color: var(--warn); }
.meal.on[data-meal="junk"] { border-color: var(--bad); background: rgba(255, 77, 109, .1); } .meal.on[data-meal="junk"] b { color: var(--bad); }
.presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.preset { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 10px; cursor: pointer; text-align: left; color: var(--ink); background: rgba(0, 0, 0, .3); border: 1px solid var(--line); font-size: 12px; }
.preset b { font: 700 11px/1 var(--f-mono); color: var(--acc); white-space: nowrap; }
.refeed ol { margin: 8px 0 0; padding-left: 18px; color: var(--ink); font-size: 13px; }
.refeed li { margin: 6px 0; }

/* ---------------------------------------------------------------- FORGE */
.routine { position: relative; }
.routine .rig-row { display: flex; gap: 6px; margin: 10px 0; overflow-x: auto; scrollbar-width: none; }
.routine .rig-row::-webkit-scrollbar { display: none; }
.rig-thumb { flex: 0 0 92px; height: 66px; padding: 2px; color: #ffd9c9; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 107, 61, .25); }
.rig-thumb svg, .rig-big svg { width: 100%; height: 100%; display: block; }
.rig-big { height: 190px; padding: 4px; color: #ffe8de; background: radial-gradient(80% 90% at 50% 100%, rgba(255, 107, 61, .18), transparent 70%), rgba(0, 0, 0, .35); border: 1px solid rgba(255, 107, 61, .35); }
.rig-hero { height: 210px; }
.ex-card { margin-bottom: 12px; }
.ex-card .ex-top { display: flex; gap: 10px; align-items: flex-start; }
.ex-card .ex-n { font: 700 15px/1.15 var(--f-disp); letter-spacing: .05em; text-transform: uppercase; }
.ex-card .ex-m { font: 500 10.5px/1.3 var(--f-mono); color: var(--sub); margin-top: 3px; }
.cues { margin: 10px 0 0; padding: 0; list-style: none; }
.cues li { position: relative; padding: 4px 0 4px 14px; font-size: 12.5px; color: var(--sub); }
.cues li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 2px; background: var(--acc); }
.hint { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding: 8px 10px; font: 600 11.5px/1.3 var(--f-mono); background: rgba(var(--acc-rgb), .08); border-left: 3px solid var(--acc); }
.hint.up { border-color: var(--ok); color: var(--ok); background: rgba(61, 255, 160, .08); }
.hint.down { border-color: var(--warn); color: var(--warn); background: rgba(255, 209, 102, .08); }
.sets { width: 100%; margin-top: 10px; border-collapse: separate; border-spacing: 0 5px; }
.sets th { font: 600 9px/1 var(--f-mono); letter-spacing: .14em; color: var(--dim); text-align: center; padding: 0 2px; }
.sets td { text-align: center; padding: 0 2px; }
.sets td.n { font: 700 13px/1 var(--f-mono); color: var(--sub); width: 26px; }
.sets td.prev { font: 500 11px/1 var(--f-mono); color: var(--dim); }
.sets .inp { min-height: 40px; padding: 6px; text-align: center; font: 700 16px/1 var(--f-mono); }
.sets tr.done td { background: rgba(61, 255, 160, .06); }
.sets tr.done .inp { border-color: rgba(61, 255, 160, .5); }
.set-ok { width: 42px; height: 40px; cursor: pointer; display: grid; place-items: center; color: var(--dim); background: rgba(0, 0, 0, .35); border: 1px solid var(--line2); }
.set-ok.on { color: #04140c; background: var(--ok); border-color: var(--ok); box-shadow: 0 0 12px rgba(61, 255, 160, .6); }
.pr-flag { font: 700 9px/1 var(--f-mono); color: #ffd166; letter-spacing: .1em; }
.live-bar { position: fixed; z-index: 55; left: 0; right: 0; bottom: calc(var(--dock-h) + var(--sb)); padding: 8px 12px; display: flex; align-items: center; gap: 10px;
  background: linear-gradient(0deg, rgba(20, 8, 4, .97), rgba(20, 8, 4, .88)); border-top: 1px solid rgba(255, 107, 61, .6); }
.rest-ring { position: relative; width: 46px; height: 46px; flex: none; }
.rest-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rest-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 12px/1 var(--f-mono); }
.vol-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.vol-bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.vol-bars i { width: 100%; background: linear-gradient(0deg, rgba(255, 107, 61, .4), #ff6b3d); box-shadow: 0 0 10px rgba(255, 107, 61, .4); animation: growUp .9s cubic-bezier(.2, .9, .3, 1) both; transform-origin: bottom; }
.vol-bars span { font: 600 8px/1 var(--f-mono); color: var(--dim); }
@keyframes growUp { from { transform: scaleY(0); } }
.sparks { position: absolute; inset: 0; pointer-events: none; }

/* ---------------------------------------------------------------- SCAN */
.holo { position: relative; display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; gap: 6px; min-height: 260px; }
.holo .body { position: relative; height: 250px; color: #3dffa0; }
.holo .body svg { width: 100%; height: 100%; overflow: visible; }
.holo .body .scanline { position: absolute; left: -10%; right: -10%; height: 2px; top: 0; background: linear-gradient(90deg, transparent, #3dffa0, transparent); box-shadow: 0 0 14px #3dffa0; animation: scanY 3.2s ease-in-out infinite; }
@keyframes scanY { 0%, 100% { top: 4%; } 50% { top: 94%; } }
.holo .callouts { display: flex; flex-direction: column; gap: 16px; }
.holo .callouts.r { text-align: right; }
.co .k { font: 600 9px/1 var(--f-mono); letter-spacing: .16em; color: var(--sub); }
.co .v { margin-top: 4px; font: 700 19px/1 var(--f-mono); color: #eafff4; text-shadow: 0 0 10px rgba(61, 255, 160, .55); }
.co .d { margin-top: 3px; font: 600 10px/1 var(--f-mono); }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mt-tile { padding: 9px; text-align: left; cursor: pointer; color: var(--ink); background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.mt-tile.on { border-color: var(--acc); box-shadow: inset 0 0 14px rgba(var(--acc-rgb), .18); }
.mt-tile .k { font: 600 8.5px/1.15 var(--f-mono); letter-spacing: .1em; color: var(--sub); text-transform: uppercase; }
.mt-tile .v { margin-top: 5px; font: 700 15px/1 var(--f-mono); }
.mt-tile .d { margin-top: 4px; font: 600 9.5px/1 var(--f-mono); }
.chart { width: 100%; display: block; overflow: visible; }
.chart .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart .gl { stroke: rgba(130, 170, 230, .12); stroke-width: 1; }
.chart text { font: 500 9px var(--f-mono); fill: var(--dim); }
.chart .pt { animation: fadeIn .6s .8s both; }
.tape-map { display: grid; grid-template-columns: 1fr 110px 1fr; gap: 6px; align-items: center; }
.tape-map .body { height: 220px; color: rgba(61, 255, 160, .55); }
.tape-pt { padding: 7px 8px; cursor: pointer; text-align: left; color: var(--ink); background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.tape-pt .k { font: 600 8.5px/1 var(--f-mono); letter-spacing: .12em; color: var(--sub); text-transform: uppercase; }
.tape-pt .v { margin-top: 4px; font: 700 14px/1 var(--f-mono); }
.tape-pt .d { font: 600 9px/1 var(--f-mono); margin-top: 3px; }
.tapes { display: flex; flex-direction: column; gap: 6px; }

/* ---------------------------------------------------------------- DOSE */
.dose-big { display: flex; align-items: baseline; gap: 8px; }
.dose-big b { font: 700 36px/1 var(--f-mono); color: #e7deff; text-shadow: 0 0 18px rgba(169, 139, 255, .7); }
.site-map { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; }
.site-map .body { position: relative; height: 230px; color: rgba(169, 139, 255, .5); }
.site-map .body svg { width: 100%; height: 100%; }
.site-dot { cursor: pointer; }
.site-dot circle.c { fill: rgba(169, 139, 255, .2); stroke: rgba(169, 139, 255, .7); }
.site-dot.next circle.c { fill: #a98bff; stroke: #fff; }
.site-dot.next circle.p { fill: none; stroke: #a98bff; animation: sitePulse 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.site-dot.last circle.c { fill: rgba(255, 255, 255, .5); }
.site-dot.sel circle.c { fill: #ffd166; stroke: #fff; }
@keyframes sitePulse { from { transform: scale(1); opacity: 1; } to { transform: scale(3); opacity: 0; } }
.countdown { font: 700 26px/1 var(--f-mono); }
.countdown small { font-size: 11px; color: var(--sub); margin: 0 4px 0 1px; }
.pipeline { display: flex; gap: 4px; margin-top: 8px; }
.pipeline span { flex: 1; height: 4px; background: rgba(255, 255, 255, .08); }
.pipeline span.on { background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.ladder-pens { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.ladder-pens button { padding: 10px 2px 8px; cursor: pointer; text-align: center; font: 700 13px/1 var(--f-mono); color: var(--dim); background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.ladder-pens button small { display: block; margin-top: 3px; font-size: 8px; letter-spacing: .1em; opacity: .8; }
.ladder-pens button.done { color: var(--sub); background: rgba(169, 139, 255, .08); }
.ladder-pens button.cur { color: #12081f; background: #a98bff; border-color: #a98bff; box-shadow: 0 0 12px rgba(169, 139, 255, .6); }

/* ---------------------------------------------------------------- NOVA */
.nova-orb { position: relative; width: 46px; height: 46px; flex: none; }
.nova-orb i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(139, 123, 255, .7); }
.nova-orb i:nth-child(1) { animation: spin 6s linear infinite; border-style: dashed; }
.nova-orb i:nth-child(2) { inset: 8px; border-color: rgba(41, 227, 255, .8); animation: spin 3.5s linear infinite reverse; border-style: dotted; }
.nova-orb i:nth-child(3) { inset: 15px; background: radial-gradient(circle, #fff, #8b7bff 60%); border: 0; box-shadow: 0 0 16px #8b7bff; animation: corePulse 2s ease-in-out infinite; }
.nova-orb.busy i:nth-child(3) { animation-duration: .6s; }
.feed { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 92%; padding: 11px 13px; font-size: 14px; line-height: 1.5; }
.msg.ai { align-self: flex-start; background: rgba(139, 123, 255, .08); border: 1px solid rgba(139, 123, 255, .3); border-left: 3px solid #8b7bff; }
.msg.me { align-self: flex-end; background: rgba(41, 227, 255, .08); border: 1px solid rgba(41, 227, 255, .35); }
.msg ul { margin: 6px 0; padding-left: 18px; } .msg li { margin: 3px 0; }
.msg .m-tools { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.msg .act-card { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; padding: 10px; background: rgba(61, 255, 160, .06); border: 1px solid rgba(61, 255, 160, .35); }
.msg .act-card .k { font: 600 9px/1 var(--f-mono); letter-spacing: .16em; color: var(--ok); }
.msg .applied { margin-top: 8px; font: 600 10.5px/1 var(--f-mono); color: var(--ok); }
.typing { display: inline-flex; gap: 4px; } .typing i { width: 6px; height: 6px; background: #8b7bff; animation: blink 1s infinite; } .typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.composer { display: flex; gap: 6px; align-items: flex-end; padding: 10px 12px calc(10px + var(--sb)); border-top: 1px solid var(--line); background: #060a14; }
.composer textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 11px 12px; }
.composer .btn.icon { width: 44px; min-height: 44px; }
.mic.on { color: #fff; background: rgba(255, 77, 109, .3); --b: #ff4d6d; animation: blink 1s infinite; }
.photo-chip { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-top: 1px solid var(--line); }
.photo-chip img { width: 44px; height: 44px; object-fit: cover; border: 1px solid var(--line2); }

/* ---------------------------------------------------------------- SYSTEM */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row .l b { display: block; font: 600 13px/1.2 var(--f-disp); letter-spacing: .06em; text-transform: uppercase; }
.set-row .l small { display: block; color: var(--sub); font-size: 11.5px; margin-top: 2px; }
.set-row .inp { max-width: 120px; min-height: 38px; }

/* ---------------------------------------------------------------- integration */
.sheet-foot { border-top: 1px solid var(--line); background: #060a14; }
.sheet-foot .composer { border-top: 0; }
.sheet.full .sheet-body { flex: 1; }
.screen.quiet .chart .draw { animation: none; stroke-dashoffset: 0; }
.screen.quiet .vol-bars i, .screen.quiet .chart .pt { animation: none; }
.rig-thumb, .rig-big { --rig-gap: #0a1020; --rig-acc: #ff6b3d; }
.rig-thumb svg.rig, .rig-big svg.rig { display: block; width: 100%; height: 100%; }
.status-hero[role="button"] { cursor: pointer; }

/* ---------------------------------------------------------------- motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
body.calm *, body.calm *::before, body.calm *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }

/* =====================================================================
   v40 "ZENITH" LAYER — blended skin, light theme, new systems.
   Loaded after the v30 HUD so it wins every tie. Rounded, softened,
   edges melt into the background; animations get richer.
   ===================================================================== */
:root { --r-panel: 20px; --r-ctl: 13px; --r-sm: 10px; --glow: .14; --shade: 0 12px 32px rgba(0, 0, 0, .35); }
*:not(svg):not(svg *) { clip-path: none !important; }
.panel, .panel.hero, .panel.flat {
  border-radius: var(--r-panel); border: 0 !important;
  background: radial-gradient(130% 80% at 0% 0%, rgba(var(--acc-rgb), .10), transparent 55%), linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)) !important;
  box-shadow: var(--shade), inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(var(--acc-rgb), .10);
}
.panel.hero { background: radial-gradient(110% 80% at 50% 0%, rgba(var(--acc-rgb), .20), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)) !important; }
.panel::before { display: none; }
.panel::after { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; border-radius: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(var(--acc-rgb), .55), transparent); opacity: .7; }
.rank-chip, .tb-btn, .btn, .inp, .li-ico, .proto, .capsule, .sym, .mission .mi, .tile, .meal, .ls-cell, .seg, .mission, .claim, .zone-card, .stat, .li, .empty,
.mt-tile, .tape-pt, .medal, .lo, .preset, .set-ok, .levels button, .ladder .rk, .ladder-pens button, .drop-row, .shield-banner, .principle, .hint, .msg, .act-card, .rig-thumb, .rig-big, .cal .c, .pill
{ border-radius: var(--r-ctl); border-color: rgba(255, 255, 255, .08); }
.chip, .btn.sm, .btn.xs, .pill { border-radius: 999px; }
.stat, .li, .mission, .ls-cell, .sym, .tile, .mt-tile, .tape-pt, .medal, .preset, .empty, .proto, .meal, .lo { background: rgba(255, 255, 255, .035); }
.cal .c { border-radius: 9px; }
.seg { border-radius: 999px; } .seg button { border-radius: 999px; }
.btn { background: rgba(var(--acc-rgb), .10); }
.btn.pri { box-shadow: 0 6px 22px rgba(var(--acc-rgb), .28); }
.toggle { border-radius: 999px; } .toggle::after { border-radius: 50%; }
.sheet { border-radius: 24px 24px 0 0; border-top: 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(var(--acc-rgb), .5); }
@media (min-width: 640px) { .sheet { border-radius: 24px; } }
.rw-card { border-radius: 26px; border: 0; box-shadow: 0 0 60px rgba(var(--rw-rgb, 255, 209, 102), .35), inset 0 0 0 1px rgba(var(--rw-rgb, 255, 209, 102), .8); }
#toast { border-radius: 14px; border: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(var(--hud-rgb), .55); }
.capsule { border: 0; box-shadow: inset 0 0 0 1px rgba(41, 227, 255, .3); }
.bar { border-radius: 999px; } .bar i { border-radius: 999px; }
.zone-card, .principle, .hint { border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
.hp { border-radius: 999px; }
.focus .f-breath { box-shadow: 0 0 60px rgba(41, 227, 255, .35), inset 0 0 40px rgba(41, 227, 255, .25); }

/* --- micro-detail: data ticker on module headers */
.mh-code::after { background: linear-gradient(90deg, rgba(var(--acc-rgb), .6), transparent), repeating-linear-gradient(90deg, rgba(var(--acc-rgb), .9) 0 2px, transparent 2px 9px);
  background-size: 100% 100%, 200% 1px; animation: ticker 6s linear infinite; }
@keyframes ticker { to { background-position: 0 0, -200% 0; } }
.tag::before { animation: tagPulse 2.6s ease-in-out infinite; }
@keyframes tagPulse { 50% { box-shadow: 0 0 14px var(--acc); opacity: .7; } }

/* --- the dock orb: a live mini reactor */
.dk-orb .orb { width: 64px; height: 64px; margin-top: -20px; background: radial-gradient(circle at 50% 42%, #0f3446, #03101a 72%); border: 0;
  box-shadow: 0 0 24px rgba(41, 227, 255, .35), inset 0 0 0 1px rgba(41, 227, 255, .45), inset 0 0 18px rgba(41, 227, 255, .2); }
.dk-orb .orb svg.ring { display: none; }
.dk-orb .orb svg.orb-rx { position: absolute; inset: -8px; width: 80px; height: 80px; overflow: visible; color: #29e3ff; }
.orb-rx .o-ticks { animation: spin 14s linear infinite; transform-origin: 40px 40px; }
.orb-rx .o-dash { animation: spin 8s linear infinite reverse; transform-origin: 40px 40px; }
.orb-rx .o-comet { animation: spin 3.2s linear infinite; transform-origin: 40px 40px; }
.orb-rx .o-arc { transition: stroke-dashoffset 1s linear; filter: drop-shadow(0 0 4px currentColor); }
.dk-orb .orb .t { position: relative; z-index: 1; }
.dk-orb.idle .orb { box-shadow: 0 0 18px rgba(255, 178, 63, .25), inset 0 0 0 1px rgba(255, 178, 63, .4); }
.dk-orb.idle svg.orb-rx { color: #ffb23f; }

/* --- HOME hero: the same reactor language as FAST, smaller */
.hero-rx { position: relative; width: 132px; height: 132px; flex: none; }
.hero-rx svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-rx .h-ticks { animation: spin 30s linear infinite; transform-origin: 50% 50%; }
.hero-rx .h-ticks2 { animation: spin 18s linear infinite reverse; transform-origin: 50% 50%; }
.hero-rx .h-orbit { animation: spin 6s linear infinite; transform-origin: 50% 50%; }
.hero-rx .h-core { animation: corePulse 3s ease-in-out infinite; transform-origin: 50% 50%; }
.hero-rx .h-arc { transition: stroke-dashoffset 1s linear; }
.hero-rx .c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.hero-rx .c b { font: 700 24px/1 var(--f-mono); color: #fff; text-shadow: 0 0 14px rgba(var(--acc-rgb), .8); }
.hero-rx .c small { margin-top: 4px; font: 600 8.5px/1 var(--f-mono); letter-spacing: .2em; color: var(--sub); }
.reactor .rx-orbit { animation: spin 9s linear infinite; transform-origin: 50% 50%; }
.reactor .rx-ticks3 { animation: spin 70s linear infinite reverse; transform-origin: 50% 50%; }

/* --- next move */
.next-move { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 12px; border-radius: var(--r-panel); overflow: hidden;
  background: linear-gradient(110deg, rgba(var(--acc-rgb), .22), rgba(var(--acc-rgb), .04) 70%); box-shadow: var(--shade), inset 0 0 0 1px rgba(var(--acc-rgb), .45); }
.next-move::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .10) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer 3.6s ease-in-out infinite; pointer-events: none; }
.next-move .nm-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; color: var(--acc); background: rgba(var(--acc-rgb), .14); box-shadow: 0 0 18px rgba(var(--acc-rgb), .35); }
.next-move .nm-k { font: 600 9.5px/1 var(--f-mono); letter-spacing: .22em; color: rgba(var(--acc-rgb), 1); }
.next-move .nm-t { margin-top: 4px; font: 700 18px/1.1 var(--f-disp); letter-spacing: .04em; text-transform: uppercase; }
.next-move .nm-s { margin-top: 3px; font: 500 11.5px/1.35 var(--f-mono); color: var(--sub); }
.next-move .btn { flex: none; }

/* --- quick-log row */
.quick-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.qbtn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; padding: 6px 2px; cursor: pointer;
  color: var(--ink); background: rgba(255, 255, 255, .04); border: 0; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(var(--qc, var(--acc-rgb)), .3); font: 600 9.5px/1.1 var(--f-disp); letter-spacing: .08em; text-transform: uppercase; }
.qbtn .ico { color: rgb(var(--qc, var(--acc-rgb))); filter: drop-shadow(0 0 6px rgba(var(--qc, var(--acc-rgb)), .6)); }
.qbtn .n { position: absolute; top: 5px; right: 7px; font: 700 9.5px/1 var(--f-mono); color: rgb(var(--qc, var(--acc-rgb))); }
.qbtn:active { transform: scale(.96); background: rgba(var(--qc, var(--acc-rgb)), .14); }

/* --- toast with action */
#toast.act { pointer-events: auto; display: flex; align-items: center; gap: 12px; }
#toast .tbtn { margin-left: auto; padding: 6px 12px; font: 700 11px/1 var(--f-disp); letter-spacing: .12em; text-transform: uppercase; color: #04090f; background: var(--hud); border: 0; border-radius: 999px; cursor: pointer; }

/* --- week strip + PPL cycle */
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.wd { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 2px; border-radius: 14px; background: rgba(255, 255, 255, .035); font: 600 9px/1 var(--f-mono); color: var(--dim); letter-spacing: .1em; }
.wd .sp { min-width: 26px; padding: 4px 4px; border-radius: 999px; font: 700 9px/1 var(--f-mono); color: var(--sub); background: rgba(255, 255, 255, .05); text-align: center; }
.wd .sp[data-s] { color: #05070c; background: var(--sc); box-shadow: 0 0 10px var(--sc); }
.wd .sp.plan { color: var(--sc); background: transparent; box-shadow: inset 0 0 0 1px var(--sc); }
.wd .fd { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.wd .fd.on { background: #29e3ff; box-shadow: 0 0 8px #29e3ff; }
.wd.today { background: rgba(var(--acc-rgb), .12); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .5); }
.cycle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cyc { position: relative; padding: 12px 10px; border-radius: 16px; text-align: center; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); cursor: pointer; color: var(--ink); border: 0; }
.cyc .cn { font: 700 16px/1 var(--f-disp); letter-spacing: .14em; }
.cyc .cs { margin-top: 5px; font: 600 9.5px/1.2 var(--f-mono); color: var(--sub); letter-spacing: .08em; text-transform: uppercase; }
.cyc .pips { display: flex; justify-content: center; gap: 4px; margin-top: 7px; }
.cyc .pips i { width: 14px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.cyc .pips i.on { background: var(--sc); box-shadow: 0 0 8px var(--sc); }
.cyc.locked { opacity: .6; }
.cyc.locked .cn::after { content: " ✓"; color: var(--sc); }
.cyc.next { background: linear-gradient(160deg, color-mix(in srgb, var(--sc) 26%, transparent), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px var(--sc), 0 0 22px color-mix(in srgb, var(--sc) 35%, transparent); animation: nextGlow 2.4s ease-in-out infinite; }
.cyc.next .cs { color: var(--sc); }
@keyframes nextGlow { 50% { box-shadow: inset 0 0 0 1px var(--sc), 0 0 34px color-mix(in srgb, var(--sc) 55%, transparent); } }
.pin-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pin-grid .pd { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.pin-grid .pd span { text-align: center; font: 600 9px/1 var(--f-mono); color: var(--sub); letter-spacing: .1em; }
.pin-grid select.inp { min-height: 36px; padding: 4px 2px; font-size: 11px; text-align: center; background-image: none; }

/* --- rivals */
.riv-head { display: flex; align-items: center; gap: 12px; }
.div-badge { position: relative; width: 70px; height: 70px; flex: none; display: grid; place-items: center; color: #ffd166; }
.div-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.div-badge svg .spin { animation: spin 12s linear infinite; transform-origin: 50% 50%; }
.div-badge b { position: relative; font: 700 20px/1 var(--f-mono); color: #fff; text-shadow: 0 0 10px #ffd166; }
.div-badge small { position: absolute; bottom: 6px; font: 700 7px/1 var(--f-mono); letter-spacing: .14em; color: #ffd166; }
.riv-ladder { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; margin-top: 10px; }
.riv-ladder i { position: relative; height: 12px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.riv-ladder i.on { background: linear-gradient(180deg, #ffe39a, #ffb23f); box-shadow: 0 0 10px rgba(255, 209, 102, .6); }
.riv-ladder i.tier::after { content: ""; position: absolute; left: 50%; top: -6px; width: 6px; height: 6px; margin-left: -3px; transform: rotate(45deg); background: var(--tc); box-shadow: 0 0 6px var(--tc); }
.riv-ladder i.on.last { animation: pipPop 1.6s ease-in-out infinite; }
@keyframes pipPop { 50% { transform: scaleY(1.35); } }
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.tier { position: relative; padding: 10px 4px 8px; border-radius: 14px; text-align: center; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); border: 0; color: var(--ink); cursor: default; overflow: hidden; }
.tier .pk { width: 30px; height: 38px; margin: 0 auto; border-radius: 6px; background: linear-gradient(160deg, var(--tc), color-mix(in srgb, var(--tc) 40%, #000)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset; opacity: .35; }
.tier .tw { margin-top: 6px; font: 700 10px/1 var(--f-mono); color: var(--sub); }
.tier.reached .pk { opacity: 1; box-shadow: 0 0 16px var(--tc), 0 0 0 1px rgba(255, 255, 255, .4) inset; animation: packBob 1.4s ease-in-out infinite; }
.tier.reached { cursor: pointer; box-shadow: inset 0 0 0 1px var(--tc); }
.tier.reached::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .25) 50%, transparent 65%); transform: translateX(-100%); animation: shimmer 2.2s ease-in-out infinite; }
.tier.claimed .pk { opacity: .9; animation: none; filter: saturate(.4); }
.tier.claimed .tw { color: var(--ok); }
@keyframes packBob { 50% { transform: translateY(-3px) rotate(-3deg); } }
.win-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.win-list .w { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; font: 600 9.5px/1 var(--f-mono); color: var(--sub); background: rgba(255, 255, 255, .05); }
.win-list .w .ico { width: 12px; height: 12px; color: #ffd166; }

/* --- pack / card reveal overlay */
.rw-card.reveal .rw-icon { animation: cardFlip 1.1s cubic-bezier(.2, 1, .3, 1) both; }
@keyframes cardFlip { 0% { transform: perspective(600px) rotateY(180deg) scale(.6); filter: brightness(3); } 60% { transform: perspective(600px) rotateY(-12deg) scale(1.08); } 100% { transform: none; } }

/* --- lift cards (FUT style) */
.lcards { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; scroll-snap-type: x mandatory; }
.lcards::-webkit-scrollbar { display: none; }
.lcard { position: relative; flex: 0 0 132px; height: 178px; padding: 12px 10px; scroll-snap-align: start; cursor: pointer; border: 0; text-align: left; color: #0b0d12; overflow: hidden;
  border-radius: 18px 18px 26px 26px; background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 92%, #fff), var(--tc) 45%, color-mix(in srgb, var(--tc) 45%, #000)); box-shadow: 0 10px 24px rgba(0, 0, 0, .45), 0 0 18px color-mix(in srgb, var(--tc) 40%, transparent), inset 0 0 0 1px rgba(255, 255, 255, .45); }
.lcard::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .12) 0 2px, transparent 2px 9px); opacity: .5; }
.lcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); animation: shimmer 4.5s ease-in-out infinite; }
.lcard .lc-r { position: relative; font: 800 30px/1 var(--f-mono); }
.lcard .lc-t { position: relative; font: 700 8.5px/1 var(--f-mono); letter-spacing: .16em; opacity: .8; }
.lcard .lc-fig { position: relative; height: 62px; margin: 4px -4px 2px; color: #0b0d12; opacity: .85; }
.lcard .lc-fig svg { width: 100%; height: 100%; }
.lcard .lc-n { position: relative; font: 700 11px/1.1 var(--f-disp); letter-spacing: .06em; text-transform: uppercase; }
.lcard .lc-s { position: relative; margin-top: 4px; display: flex; justify-content: space-between; font: 700 9px/1 var(--f-mono); opacity: .85; }
.lcard.dark { color: #f4f7ff; } .lcard.dark .lc-fig { color: #f4f7ff; }

/* --- muscle volume + plates */
.mbars { display: flex; flex-direction: column; gap: 6px; }
.mbar { display: grid; grid-template-columns: 82px 1fr 34px; align-items: center; gap: 8px; font: 600 10px/1 var(--f-mono); color: var(--sub); letter-spacing: .06em; text-transform: uppercase; }
.mbar .bar { height: 8px; }
.mbar b { text-align: right; color: var(--ink); }
.plate-viz { display: flex; align-items: center; justify-content: center; gap: 3px; height: 70px; margin-top: 10px; }
.plate-viz .hd { width: 64px; height: 10px; border-radius: 5px; background: linear-gradient(180deg, #c9d4e4, #6b7a90); }
.plate-viz .pl { width: 10px; border-radius: 4px; background: linear-gradient(90deg, #ff6b3d, #ffb23f); box-shadow: 0 0 10px rgba(255, 107, 61, .5); }
.warmups { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.warmups span { padding: 5px 9px; border-radius: 999px; font: 600 10.5px/1 var(--f-mono); color: var(--sub); background: rgba(255, 255, 255, .05); }

/* --- food */
.fcats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fcat { position: relative; padding: 14px 6px 12px; border: 0; border-radius: 18px; cursor: pointer; color: var(--ink); text-align: center; overflow: hidden;
  background: linear-gradient(170deg, color-mix(in srgb, var(--fc) 22%, transparent), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fc) 45%, transparent); }
.fcat .ico { width: 26px; height: 26px; color: var(--fc); filter: drop-shadow(0 0 8px var(--fc)); }
.fcat b { display: block; margin-top: 6px; font: 700 13px/1 var(--f-disp); letter-spacing: .12em; text-transform: uppercase; }
.fcat small { display: block; margin-top: 4px; font: 600 10px/1 var(--f-mono); color: var(--sub); }
.fcat.on { box-shadow: inset 0 0 0 2px var(--fc), 0 0 24px color-mix(in srgb, var(--fc) 40%, transparent); }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.slot { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 62px; padding: 10px; cursor: pointer; text-align: left; color: var(--ink); border: 0; border-radius: 14px;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fc) 30%, transparent); }
.slot b { font: 600 12.5px/1.2 var(--f-body); }
.slot span { font: 700 11px/1 var(--f-mono); color: var(--fc); }
.slot.empty { color: var(--dim); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 255, 255, .12); }
.slot.empty b { font-weight: 500; }
.slot:active { transform: scale(.97); }
.qty { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; align-items: center; }
.qty b { text-align: center; font: 700 26px/1 var(--f-mono); }
.macro-row { display: flex; gap: 8px; }
.macro-row .stat { flex: 1; }
.slot-edit { display: grid; grid-template-columns: 1fr 72px 62px; gap: 6px; align-items: center; margin-bottom: 6px; }
.slot-edit .inp { min-height: 38px; padding: 6px 8px; font-size: 13px; }

/* --- hunger / energy / mood */
.hunger-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.hb { min-height: 46px; padding: 4px 2px; border: 0; border-radius: 14px; cursor: pointer; color: var(--ink); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hc) 50%, transparent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 700 15px/1 var(--f-mono); }
.hb small { font: 600 7.5px/1 var(--f-mono); letter-spacing: .08em; color: var(--sub); }
.hb:active, .hb.on { background: color-mix(in srgb, var(--hc) 30%, transparent); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* --- health connect strip */
.hc-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.hcs { padding: 9px 8px; border-radius: 14px; background: rgba(255, 255, 255, .035); min-width: 0; }
.hcs .k { display: flex; align-items: center; gap: 4px; font: 600 8.5px/1 var(--f-mono); letter-spacing: .12em; color: var(--sub); text-transform: uppercase; }
.hcs .k .ico { width: 12px; height: 12px; color: var(--hc, var(--acc)); }
.hcs .v { margin-top: 6px; font: 700 15px/1 var(--f-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcs .v small { font-size: 9.5px; color: var(--sub); }
.hcs .s { margin-top: 3px; font: 500 9px/1.1 var(--f-mono); color: var(--dim); }
.src-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3dffa0; box-shadow: 0 0 6px #3dffa0; vertical-align: 1px; margin-right: 4px; }
.sleep-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 8px; position: relative; }
.sleep-bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; height: 100%; }
.sleep-bars i { width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(0deg, rgba(139, 123, 255, .35), #8b7bff); }
.sleep-bars i.short { background: linear-gradient(0deg, rgba(255, 159, 67, .3), #ff9f43); }
.sleep-bars span { font: 600 8px/1 var(--f-mono); color: var(--dim); }
.sleep-bars .goal { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(255, 255, 255, .35); pointer-events: none; }

/* --- body 3D */
.b3d { position: relative; height: 380px; margin: -4px -6px 0; touch-action: pan-y; cursor: grab; }
.b3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.b3d .b3d-hint { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font: 600 9px/1 var(--f-mono); letter-spacing: .18em; color: var(--dim); pointer-events: none; }
.b3d .b3d-l, .b3d .b3d-r { position: absolute; top: 10px; display: flex; flex-direction: column; gap: 14px; pointer-events: none; }
.b3d .b3d-l { left: 8px; } .b3d .b3d-r { right: 8px; text-align: right; }
.b3d .co .v { font-size: 17px; }
.b3d-scrub { margin-top: 8px; }
.b3d-scrub .row { font: 600 10px/1 var(--f-mono); color: var(--sub); letter-spacing: .08em; }
.b3d-legend { display: flex; gap: 12px; justify-content: center; margin-top: 6px; font: 600 9.5px/1 var(--f-mono); color: var(--sub); }
.b3d-legend i { display: inline-block; width: 14px; height: 2px; margin-right: 5px; vertical-align: 3px; }
.yr-list { display: flex; flex-direction: column; gap: 6px; }
.yr { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; }
.yr b { font: 700 13px/1 var(--f-mono); }
.yr .rng { position: relative; height: 18px; border-radius: 9px; background: rgba(255, 255, 255, .05); }
.yr .rng i { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; background: linear-gradient(90deg, #3dffa0, #ffd166); }
.yr .rng span { position: absolute; top: 50%; transform: translateY(-50%); font: 700 9.5px/1 var(--f-mono); color: var(--ink); }

/* --- photos */
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ph { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .04); border: 0; padding: 0; cursor: pointer; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph span { position: absolute; left: 6px; bottom: 6px; padding: 3px 6px; border-radius: 999px; font: 700 8.5px/1 var(--f-mono); color: #fff; background: rgba(0, 0, 0, .55); }
.ph.loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .12) 50%, transparent 70%); animation: shimmer 1.2s linear infinite; }
.compare { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: #000; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--cut-x, 50%)) !important; }
.compare .line { position: absolute; top: 0; bottom: 0; left: var(--cut-x, 50%); width: 2px; background: #3dffa0; box-shadow: 0 0 12px #3dffa0; }

/* --- labs, notifications, settings bits */
.lab { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.lab:last-child { border-bottom: 0; }
.lab .l { flex: 1; }
.lab .l b { display: block; font: 600 13px/1.2 var(--f-disp); letter-spacing: .06em; text-transform: uppercase; }
.lab .l small { display: block; color: var(--sub); font-size: 11.5px; margin-top: 3px; line-height: 1.35; }
.lab .l em { font-style: normal; font: 600 8.5px/1 var(--f-mono); letter-spacing: .14em; color: var(--acc); }
.code-box { display: flex; gap: 6px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .35); font: 600 11px/1.3 var(--f-mono); word-break: break-all; }
.code-box span { flex: 1; min-width: 0; }
.status-row { display: flex; align-items: center; gap: 8px; font: 600 11px/1.3 var(--f-mono); color: var(--sub); padding: 4px 0; }
.status-row i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--dim); }
.status-row i.ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); } .status-row i.bad { background: var(--bad); box-shadow: 0 0 8px var(--bad); } .status-row i.warn { background: var(--warn); }
.counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.counter { padding: 10px 6px; border-radius: 14px; text-align: center; background: rgba(255, 255, 255, .04); border: 0; color: var(--ink); cursor: pointer; }
.counter b { display: block; font: 700 22px/1 var(--f-mono); color: var(--acc); }
.counter span { display: block; margin-top: 5px; font: 600 9.5px/1.15 var(--f-mono); color: var(--sub); text-transform: uppercase; letter-spacing: .06em; }
.zclock { display: flex; flex-direction: column; gap: 4px; }
.zclock .zr { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); font: 600 11.5px/1.2 var(--f-mono); }
.zclock .zr i { width: 8px; height: 8px; transform: rotate(45deg); background: var(--z); box-shadow: 0 0 8px var(--z); }
.zclock .zr b { color: var(--ink); }
.refeed-step { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); margin-bottom: 6px; cursor: pointer; border: 0; width: 100%; text-align: left; color: var(--ink); font-size: 13px; line-height: 1.4; }
.refeed-step .ck { width: 20px; height: 20px; flex: none; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line2); display: grid; place-items: center; }
.refeed-step.done { opacity: .55; } .refeed-step.done .ck { background: var(--ok); box-shadow: none; color: #04140c; }
.hist-tag { font: 700 8px/1 var(--f-mono); letter-spacing: .14em; color: var(--dim); border: 1px solid var(--line2); border-radius: 999px; padding: 2px 5px; margin-left: 6px; vertical-align: 2px; }
.backfill-banner { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin-bottom: 12px; border-radius: 14px; background: rgba(169, 139, 255, .1); box-shadow: inset 0 0 0 1px rgba(169, 139, 255, .5); font-size: 12.5px; }
.season { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: linear-gradient(90deg, rgba(255, 209, 102, .14), transparent); box-shadow: inset 0 0 0 1px rgba(255, 209, 102, .45); margin-top: 10px; }
.cal .c .gd { position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: #ff6b3d; box-shadow: 0 0 6px #ff6b3d; }
.cal .c[data-tone] .gd { background: #fff; box-shadow: none; }
.big-num { font: 700 30px/1 var(--f-mono); }
.big-num small { font-size: 12px; color: var(--sub); }
.mini-chart { margin-top: 6px; }
.spark-bars { display: flex; align-items: flex-end; gap: 4px; height: 80px; }
.spark-bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; height: 100%; }
.spark-bars i { width: 100%; border-radius: 5px 5px 2px 2px; background: linear-gradient(0deg, rgba(var(--acc-rgb), .35), var(--acc)); box-shadow: 0 0 8px rgba(var(--acc-rgb), .35); animation: growUp .9s cubic-bezier(.2, .9, .3, 1) both; transform-origin: bottom; }
.spark-bars i.hot { background: linear-gradient(0deg, rgba(255, 77, 109, .4), #ff4d6d); }
.spark-bars span { font: 600 8.5px/1 var(--f-mono); color: var(--dim); }
.spark-bars em { font: 700 8.5px/1 var(--f-mono); color: var(--sub); font-style: normal; }
.gap-chip { display: inline-block; padding: 2px 7px; border-radius: 999px; font: 700 9.5px/1.2 var(--f-mono); background: rgba(169, 139, 255, .14); color: #d6caff; }
.gap-chip.long { background: rgba(255, 209, 102, .14); color: #ffe3a1; }
.jab-day { display: flex; align-items: baseline; gap: 8px; }
.jab-day b { font: 700 40px/1 var(--f-mono); color: #e7deff; text-shadow: 0 0 18px rgba(169, 139, 255, .7); }
.v40-note { font: 500 11px/1.45 var(--f-mono); color: var(--dim); }
.screen.quiet .spark-bars i { animation: none; }

/* =====================================================================
   LIGHT THEME
   ===================================================================== */
html[data-theme="light"] { color-scheme: light;
  --bg: #eef2f8; --bg2: #e4eaf3; --ink: #0d1a2e; --sub: #4a5b78; --dim: #7a8aa3;
  --line: rgba(20, 40, 80, .12); --line2: rgba(20, 40, 80, .22); --panel: rgba(255, 255, 255, .9); --panel2: rgba(255, 255, 255, .96); --glass: rgba(255, 255, 255, .8);
  --ok: #0f9d63; --warn: #b7791f; --hot: #d9480f; --bad: #d6204a; --vio: #6d4ad6; --shade: 0 10px 28px rgba(30, 50, 90, .12); }
html[data-theme="light"] [data-mod="core"], html[data-theme="light"] .m-core, html[data-theme="light"] [data-mod="rank"], html[data-theme="light"] .m-rank { --acc: #b7791f; --acc-rgb: 183, 121, 31; }
html[data-theme="light"] [data-mod="fuel"], html[data-theme="light"] .m-fuel { --acc: #c2620a; --acc-rgb: 194, 98, 10; }
html[data-theme="light"] [data-mod="forge"], html[data-theme="light"] .m-forge { --acc: #d9480f; --acc-rgb: 217, 72, 15; }
html[data-theme="light"] [data-mod="void"], html[data-theme="light"] .m-void { --acc: #0a8fb0; --acc-rgb: 10, 143, 176; }
html[data-theme="light"] [data-mod="scan"], html[data-theme="light"] .m-scan { --acc: #059669; --acc-rgb: 5, 150, 105; }
html[data-theme="light"] [data-mod="dose"], html[data-theme="light"] .m-dose { --acc: #7c3aed; --acc-rgb: 124, 58, 237; }
html[data-theme="light"] [data-mod="nova"], html[data-theme="light"] .m-nova { --acc: #5b4bd6; --acc-rgb: 91, 75, 214; }
html[data-theme="light"] [data-mod="system"], html[data-theme="light"] .m-system { --acc: #475569; --acc-rgb: 71, 85, 105; }
html[data-theme="light"] body { background: radial-gradient(120% 60% at 50% -10%, rgba(var(--hud-rgb), .16), transparent 60%), radial-gradient(80% 50% at 100% 100%, rgba(139, 123, 255, .10), transparent 60%), var(--bg); }
html[data-theme="light"] body::after { display: none; }
html[data-theme="light"] #bg-stars { opacity: .35; }
html[data-theme="light"] #topbar { background: linear-gradient(180deg, rgba(238, 242, 248, .97), rgba(238, 242, 248, .85)); }
html[data-theme="light"] #dock { background: linear-gradient(0deg, rgba(246, 248, 252, .98), rgba(246, 248, 252, .9)); }
html[data-theme="light"] .panel, html[data-theme="light"] .panel.hero, html[data-theme="light"] .panel.flat { background: radial-gradient(130% 80% at 0% 0%, rgba(var(--acc-rgb), .08), transparent 55%), #fff !important;
  box-shadow: var(--shade), inset 0 0 0 1px rgba(var(--acc-rgb), .14); }
html[data-theme="light"] .panel.hero { background: radial-gradient(110% 80% at 50% 0%, rgba(var(--acc-rgb), .14), transparent 60%), #fff !important; }
html[data-theme="light"] .stat, html[data-theme="light"] .li, html[data-theme="light"] .mission, html[data-theme="light"] .ls-cell, html[data-theme="light"] .sym, html[data-theme="light"] .tile,
html[data-theme="light"] .mt-tile, html[data-theme="light"] .tape-pt, html[data-theme="light"] .medal, html[data-theme="light"] .preset, html[data-theme="light"] .empty, html[data-theme="light"] .proto,
html[data-theme="light"] .meal, html[data-theme="light"] .lo, html[data-theme="light"] .qbtn, html[data-theme="light"] .wd, html[data-theme="light"] .cyc, html[data-theme="light"] .tier, html[data-theme="light"] .slot,
html[data-theme="light"] .hcs, html[data-theme="light"] .hb, html[data-theme="light"] .counter, html[data-theme="light"] .zclock .zr, html[data-theme="light"] .refeed-step, html[data-theme="light"] .cal .c,
html[data-theme="light"] .levels button, html[data-theme="light"] .set-ok, html[data-theme="light"] .ladder-pens button, html[data-theme="light"] .win-list .w, html[data-theme="light"] .warmups span { background: rgba(20, 40, 80, .045); color: var(--ink); }
html[data-theme="light"] .inp { background: #fff; color: var(--ink); }
html[data-theme="light"] .seg { background: rgba(20, 40, 80, .06); }
html[data-theme="light"] .btn { color: var(--ink); }
html[data-theme="light"] .btn.pri { color: #fff; }
html[data-theme="light"] .btn.danger { color: var(--bad); }
html[data-theme="light"] .mod-head h1 { background: linear-gradient(90deg, #0d1a2e, rgba(var(--acc-rgb), 1) 130%); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] .rank-name { background: linear-gradient(90deg, #0d1a2e, #b7791f); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] .rx-center .big, html[data-theme="light"] .hero-rx .c b, html[data-theme="light"] .div-badge b, html[data-theme="light"] .focus .f-t { color: var(--ink); text-shadow: none; }
html[data-theme="light"] .co .v { color: var(--ink); text-shadow: none; }
html[data-theme="light"] .dose-big b, html[data-theme="light"] .jab-day b { color: #5b2bd0; text-shadow: none; }
html[data-theme="light"] .rw-xp { color: #b7791f; text-shadow: none; }
html[data-theme="light"] .rank-chip .lv { color: #8a5a00; }
html[data-theme="light"] .capsule { background: rgba(20, 40, 80, .06); }
html[data-theme="light"] .capsule .cap-txt span { color: var(--sub); text-shadow: none; }
html[data-theme="light"] .capsule .cap-txt b { text-shadow: none; }
html[data-theme="light"] .sheet { background: linear-gradient(180deg, #ffffff, #f1f4f9); }
html[data-theme="light"] .sheet-foot, html[data-theme="light"] .composer { background: #f1f4f9; }
html[data-theme="light"] .sheet-wrap { background: rgba(20, 30, 50, .35); }
html[data-theme="light"] #toast { background: rgba(255, 255, 255, .98); color: var(--ink); }
html[data-theme="light"] .rw-card { background: linear-gradient(170deg, #ffffff, #eef2f8); }
html[data-theme="light"] #reward { background: radial-gradient(circle at 50% 45%, rgba(var(--rw-rgb, 255, 209, 102), .3), rgba(238, 242, 248, .95) 62%); }
html[data-theme="light"] .focus { background: radial-gradient(100% 70% at 50% 40%, rgba(10, 143, 176, .16), transparent 70%), #eef2f8; }
html[data-theme="light"] .focus .f-line { color: var(--ink); }
html[data-theme="light"] .lock { background: radial-gradient(120% 80% at 50% 0%, rgba(10, 143, 176, .16), transparent 60%), rgba(238, 242, 248, .98); }
html[data-theme="light"] .live-bar { background: linear-gradient(0deg, rgba(255, 247, 242, .98), rgba(255, 247, 242, .92)); }
html[data-theme="light"] .rig-thumb, html[data-theme="light"] .rig-big { --rig-gap: #f4f6fa; color: #3a1a0c; background: radial-gradient(80% 90% at 50% 100%, rgba(217, 72, 15, .12), transparent 70%), rgba(20, 40, 80, .04); }
html[data-theme="light"] .msg.ai { background: rgba(91, 75, 214, .06); }
html[data-theme="light"] .msg.me { background: rgba(10, 143, 176, .07); }
html[data-theme="light"] .code-box { background: rgba(20, 40, 80, .06); }
html[data-theme="light"] .chart .gl { stroke: rgba(20, 40, 80, .1); }
html[data-theme="light"] .chart text { fill: var(--sub); }
html[data-theme="light"] .dk-orb .orb { background: radial-gradient(circle at 50% 42%, #ffffff, #dff3f8 72%); }
html[data-theme="light"] .dk-orb .orb .t { color: #075e74; text-shadow: none; }
html[data-theme="light"] .dk-orb .orb .t small { color: #4a8899; }
html[data-theme="light"] .cal .c[data-tone] { color: #fff; }
html[data-theme="light"] .cal .c[data-tone="1"] { color: var(--ink); }
html[data-theme="light"] .next-move { background: linear-gradient(110deg, rgba(var(--acc-rgb), .16), #fff 70%); }
html[data-theme="light"] .holo .body, html[data-theme="light"] .site-map .body { color: rgba(5, 150, 105, .6); }
html[data-theme="light"] .site-map .body { color: rgba(124, 58, 237, .45); }
html[data-theme="light"] .wd .sp { color: var(--sub); }
html[data-theme="light"] .yr .rng { background: rgba(20, 40, 80, .06); }
html[data-theme="light"] .lcard { box-shadow: 0 10px 24px rgba(30, 50, 90, .2), inset 0 0 0 1px rgba(255, 255, 255, .5); }
html[data-theme="light"] .principle p { color: var(--ink); }
html[data-theme="light"] .shield-banner { background: linear-gradient(90deg, rgba(10, 143, 176, .12), #fff); }

/* --- v40 finishing details */
.reactor .rx-sweep { animation: spin 5.5s linear infinite; transform-origin: 50% 50%; mix-blend-mode: screen; }
.ring-wrap svg { width: 100%; height: 100%; display: block; }
.hero-rx .c b, .reactor .rx-center .big { font-variant-numeric: tabular-nums; }
.status-hero[role="button"] { cursor: pointer; }
.b3d-scrub input[type="range"] { width: 100%; margin-top: 8px; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸ "; color: var(--acc); }
details[open] > summary::before { content: "▾ "; }
.pin-grid select.inp { -webkit-appearance: none; appearance: none; }
@media (prefers-reduced-motion: reduce) {
  .reactor .rx-sweep, .reactor .rx-orbit, .reactor .rx-ticks3, .hero-rx .h-ticks, .hero-rx .h-ticks2, .hero-rx .h-orbit, .orb-rx .o-ticks, .orb-rx .o-dash, .orb-rx .o-comet, .div-badge svg .spin { animation: none !important; }
}
body.calm .reactor .rx-sweep, body.calm .reactor .rx-orbit, body.calm .reactor .rx-ticks3, body.calm .hero-rx .h-ticks, body.calm .hero-rx .h-ticks2, body.calm .hero-rx .h-orbit,
body.calm .orb-rx .o-ticks, body.calm .orb-rx .o-dash, body.calm .orb-rx .o-comet, body.calm .div-badge svg .spin, body.calm .lcard::after, body.calm .next-move::before { animation: none !important; }
html[data-theme="light"] .reactor .rx-sweep { mix-blend-mode: multiply; opacity: .6; }
.lab .l em { text-transform: uppercase; }
/* light theme: inline accent colours (zones, splits) get darkened so they stay readable on white */
html[data-theme="light"] .p-title[style*="color"], html[data-theme="light"] .rx-center .zn, html[data-theme="light"] .pill[style*="color"],
html[data-theme="light"] .zone-card .zt, html[data-theme="light"] .hunger-row .pill, html[data-theme="light"] .chip-row .pill { filter: brightness(.6) saturate(1.4); }
html[data-theme="light"] .gauge .needle path { fill: #1a2233; filter: none !important; }
html[data-theme="light"] .gauge .gc b { color: #0b1222; }
html[data-theme="light"] .gap-chip { background: rgba(108, 80, 220, .12); color: #4b2fb8; }
html[data-theme="light"] .gap-chip.long { background: rgba(214, 150, 0, .16); color: #8a5a00; }
html[data-theme="light"] .hint:not(.up):not(.down) { color: var(--ink); }
html[data-theme="light"] .cyc .cn { color: #0b1222; }
html[data-theme="light"] .cyc.next .cs { filter: brightness(.6); }
html[data-theme="light"] .lcard.dark .lc-fig, html[data-theme="light"] .lcard.dark { color: #f4f7ff; }

/* =====================================================================
   v41 "ZENITH" — new screens in the v40 style: drawer, DIARY, HISTORY, PHOTOS, MANAGER,
   BODY figure, NOVA voice + call, labs. Dark first; light overrides at the end.
   ===================================================================== */
[data-mod="diary"], .m-diary { --acc: #ffd166; --acc-rgb: 255, 209, 102; }
[data-mod="history"], .m-history { --acc: #29e3ff; --acc-rgb: 41, 227, 255; }
[data-mod="photos"], .m-photos { --acc: #ff7ad9; --acc-rgb: 255, 122, 217; }
[data-mod="manager"], .m-manager { --acc: #ff9f43; --acc-rgb: 255, 159, 67; }
.seg.full { display: flex; width: 100%; }
.seg.full button { flex: 1; min-width: 0; padding-left: 4px; padding-right: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.bodyseg.seg.full button { display: flex; flex-direction: column; gap: 3px; }
.chip.xs { min-height: 26px; padding: 0 8px; font-size: 10px; }
.chip-row.h-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-right: -4px; }
.chip-row.h-scroll::-webkit-scrollbar { display: none; }
.chip-row.h-scroll .chip { flex: none; }
.rw-sub { white-space: pre-line; }
.ph[data-photo-key] { background-size: cover; background-position: 50% 30%; background-repeat: no-repeat; }
.ph em { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #ffd166; font-style: normal; }
.ph.broken { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 6px, transparent 6px 12px); }
.ph.pinned { box-shadow: 0 0 0 2px #ffd166, 0 0 14px rgba(255, 209, 102, .5); }
.photo-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mod-head .mh-right .hist-jump, .hist-jump { border-radius: 999px; }

/* ---------------------------------------------------------------- top bar */
.brand-wrap { position: relative; display: inline-grid; place-items: center; }
.brand .brand-dot { position: absolute; right: -3px; top: -2px; width: 8px; height: 8px; border-radius: 50%; background: #ff9f43; box-shadow: 0 0 8px #ff9f43; }
.brand[aria-expanded="true"] .brand-mark { transform: rotate(30deg); }
.brand-mark { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }

/* ---------------------------------------------------------------- HOME: today + check-ins, WHY, on this day */
.ci-home { display: flex; align-items: flex-start; gap: 10px; }
.ci-home .ci-note { margin-top: 6px; font-size: 12.5px; font-style: italic; color: var(--ink); line-height: 1.4; }
.ci-spark { width: 96px; height: 34px; flex: none; margin-top: 14px; }
.why-card { overflow: hidden; }
.why-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.why-frame { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); background: linear-gradient(160deg, #16213a, #0a1020); }
.why-pair:not(.big) .why-frame { aspect-ratio: 4 / 4.4; }
.why-frame.goal { border-color: rgba(255, 209, 102, .55); box-shadow: 0 0 18px rgba(255, 209, 102, .16); }
.why-frame.now { border-color: rgba(var(--hud-rgb), .5); }
.why-frame .ph { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.why-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--dim); padding: 0 12px 40px; text-align: center; }
.why-empty small { font: 600 9px/1.4 var(--f-mono); letter-spacing: .14em; }
.why-ver { position: absolute; top: 7px; left: 7px; padding: 3px 6px; border-radius: 6px; font: 700 8.5px/1 var(--f-mono); letter-spacing: .08em; font-style: normal;
  color: var(--sub); background: rgba(0, 0, 0, .55); border: 1px solid var(--line2); }
.why-ver.ok { color: #3dffa0; border-color: rgba(61, 255, 160, .55); background: rgba(6, 30, 20, .7); }
.why-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 9px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); font: 600 9px/1.35 var(--f-mono); letter-spacing: .1em; color: #c9d6ea; }
.why-cap b { display: block; font: 700 18px/1.05 var(--f-disp); letter-spacing: .04em; color: #fff; }
.why-frame.goal .why-cap b { color: #ffe3a1; }
.why-q { margin-top: 10px; padding: 9px 10px; border-radius: 12px; text-align: center; font: 700 11px/1.45 var(--f-mono); letter-spacing: .12em; color: #ffd166;
  border: 1px dashed rgba(255, 209, 102, .45); background: rgba(255, 209, 102, .05); }
.otd-thumb { width: 40px; height: 52px; flex: none; aspect-ratio: auto; border-radius: 9px; }
.capsule-due { width: 100%; border: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.capsule-due .btn { pointer-events: none; }

/* ---------------------------------------------------------------- FAST labs: hunger forecast */
.fc-bars { display: flex; align-items: flex-end; gap: 2px; height: 70px; margin-top: 4px; }
.fc-bars i { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: rgba(var(--acc-rgb), .32); }
.fc-bars i.now { background: #fff; box-shadow: 0 0 8px #fff; }
.fc-bars i.next { background: #ffb23f; box-shadow: 0 0 10px #ffb23f; }

/* ---------------------------------------------------------------- BODY: the figure (FAT · MUSCLE · TAPE) */
.body-hero { padding-top: 12px; }
.bodyseg { margin-bottom: 10px; }
.bodyseg button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; font-size: 12px; letter-spacing: .16em; }
.bodyseg button small { font: 500 8.5px/1 var(--f-mono); letter-spacing: .08em; opacity: .8; text-transform: none; }
.bodyseg button.on { background: var(--acc); color: #04110b; box-shadow: 0 0 18px rgba(var(--acc-rgb), .45); }
.fig-stage { position: relative; min-height: 560px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); touch-action: pan-y;
  background: radial-gradient(55% 40% at 50% 44%, rgba(var(--acc-rgb), .16), transparent 70%), radial-gradient(80% 26% at 50% 100%, rgba(var(--acc-rgb), .10), transparent 70%), rgba(0, 0, 0, .38); }
.fig-stage::after { content: ""; position: absolute; left: 50%; bottom: 26px; width: 210px; height: 34px; transform: translateX(-50%); border-radius: 50%;
  border: 1px solid rgba(var(--acc-rgb), .35); box-shadow: inset 0 0 26px rgba(var(--acc-rgb), .22), 0 0 22px rgba(var(--acc-rgb), .12); pointer-events: none; }
.fig-top { position: absolute; left: 12px; top: 12px; right: 12px; z-index: 3; text-align: center; pointer-events: none; }
.fig-big { font: 700 34px/1 var(--f-mono); color: var(--ink); text-shadow: 0 0 18px rgba(var(--acc-rgb), .35); }
.fig-big small { font-size: 12px; color: var(--sub); font-weight: 500; }
.fig-sub { margin-top: 5px; font-size: 9.5px; letter-spacing: .12em; color: var(--sub); }
.fig-box { position: absolute; left: 50%; top: 92px; bottom: 34px; transform: translateX(-50%); aspect-ratio: 200 / 480; }
.view-muscle .fig-box, .view-muscle .fig-cards { top: 118px; }
.view-tape .fig-box { top: 62px; bottom: 38px; }
.fig-rot { width: 100%; height: 100%; transition: transform .45s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; cursor: grab; }
.fig-rot.drag { transition: none; cursor: grabbing; }
.fig-rot.still { cursor: default; }
.fig { display: block; width: 100%; height: 100%; overflow: hidden; }
.fig-hint { position: absolute; left: 0; right: 0; bottom: 6px; z-index: 3; text-align: center; font: 600 8.5px/1 var(--f-mono); letter-spacing: .16em; color: var(--dim); pointer-events: none; }
.fig-cards { position: absolute; left: 0; right: 0; top: 92px; bottom: 34px; z-index: 2; pointer-events: none; }
.fig-cards.r { left: auto; right: 8px; top: 132px; bottom: auto; display: flex; flex-direction: column; gap: 8px; }
.seg-card { width: 112px; padding: 7px 9px; border-radius: 13px; background: rgba(6, 11, 22, .78); border: 1px solid var(--line2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: auto; }
.fig-cards:not(.r) .seg-card { position: absolute; }
.fig-cards:not(.r) .seg-card.l { left: 8px; }
.fig-cards:not(.r) .seg-card.r { right: 8px; }
.seg-card .n { font: 700 11.5px/1.1 var(--f-disp); letter-spacing: .1em; }
.seg-card .v { margin-top: 3px; font: 700 15px/1.1 var(--f-mono); }
.seg-card .v small { font-size: 9px; font-weight: 600; }
.seg-card .l { display: block; margin-top: 3px; font: 500 9.5px/1.3 var(--f-mono); color: var(--sub); }
.seg-card .l i { display: inline-block; margin-right: 5px; vertical-align: 0; }
.seg-card .l i { width: 7px; height: 7px; flex: none; }
.seg-card .l i.sq { background: var(--acc); }
.seg-card .l i.dm { background: #ffd166; transform: rotate(45deg) scale(.85); }
.ff { position: absolute; z-index: 4; left: 50%; top: 76px; transform: translateX(-50%); display: inline-flex; gap: 3px; padding: 3px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .4); }
.ff button { border: 0; background: none; color: var(--dim); padding: 6px 10px; border-radius: 7px; font: 700 10.5px/1 var(--f-disp); letter-spacing: .12em; cursor: pointer; }
.ff button.on { background: rgba(var(--acc-rgb), .22); color: var(--ink); }
.fat-scale { position: absolute; left: -26px; top: 0; bottom: 0; width: 16px; }
.fs-dots { position: absolute; left: 6px; top: 1.2%; bottom: 0; display: flex; flex-direction: column; justify-content: space-between; }
.fs-dots i { width: 4px; height: 4px; border-radius: 50%; opacity: .75; }
.fs-mark { position: absolute; left: 0; width: 16px; height: 0; border-top: 2px solid #fff; }
.fs-mark span { position: absolute; right: 22px; top: -9px; display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; font: 700 10px/1 var(--f-mono); color: #fff; padding: 2px 5px; border-radius: 5px; background: rgba(0, 0, 0, .55); }
.fs-mark span em { font: 600 7px/1.2 var(--f-mono); letter-spacing: .12em; font-style: normal; opacity: .85; }
.fs-mark.cur { border-color: #ffd166; box-shadow: 0 0 8px #ffd166; } .fs-mark.cur span { color: #ffd166; font-size: 11.5px; }
.fs-mark.cur::before { content: ""; position: absolute; left: 1px; top: -8px; width: 12px; height: 12px; border-radius: 50%; background: #ffb23f; box-shadow: 0 0 0 3px rgba(255, 178, 63, .25), 0 0 12px #ffb23f; }
.fs-mark.jab { border-top-style: dashed; border-color: #a98bff; } .fs-mark.jab span { color: #c9b8ff; }
.fs-mark.goal { border-top-style: dotted; border-color: #3dffa0; } .fs-mark.goal span { color: #3dffa0; }
.tape-lbl { position: absolute; z-index: 3; transform: translateY(-50%); display: flex; flex-direction: column; gap: 1px; min-width: 56px; padding: 4px 6px; border-radius: 9px; cursor: pointer;
  background: rgba(4, 18, 12, .72); border: 1px solid rgba(61, 255, 160, .35); color: var(--ink); text-align: left; }
.tape-lbl.l { right: calc(100% + 4px); } .tape-lbl.r { left: calc(100% + 4px); }
.tape-lbl em { font: 700 8px/1 var(--f-mono); letter-spacing: .12em; font-style: normal; color: #7fe7b5; }
.tape-lbl b { font-size: 12.5px; white-space: nowrap; } .tape-lbl b small { font-size: 8.5px; color: var(--sub); }
.tape-lbl span { font-size: 9px; }
.fig-ring { cursor: pointer; }
.fig-scrub { margin-top: 12px; }
.fig-scrub .mono.sub { font-size: 9.5px; letter-spacing: .1em; }
.fs-track { position: relative; margin: 6px 0 2px; }
.fs-track input[type="range"] { width: 100%; margin: 0; accent-color: var(--acc); }
.fs-jab { position: absolute; top: -3px; width: 9px; height: 9px; margin-left: -4px; transform: rotate(45deg); background: #a98bff; box-shadow: 0 0 8px #a98bff; pointer-events: none; }
.mini { text-align: center; }
.mini .t { font: 700 11.5px/1 var(--f-disp); letter-spacing: .14em; margin-bottom: 6px; }
.mini .mini-fig { width: 100%; height: 132px; }
.mini .v { margin-top: 4px; font: 700 16px/1 var(--f-mono); } .mini .v small { font-size: 9.5px; color: var(--sub); }
.mini .p { margin-top: 3px; font-size: 9px; color: var(--dim); letter-spacing: .06em; }
.lq-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.lq-bar i { display: block; height: 100%; }
.wt-badge { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 16px; color: #ffd166; background: radial-gradient(circle at 50% 35%, rgba(255, 209, 102, .3), rgba(255, 209, 102, .06)); border: 1px solid rgba(255, 209, 102, .45); }
.wt-badge.new { box-shadow: 0 0 22px rgba(255, 209, 102, .45); animation: corePulse 2.2s ease-in-out infinite; }
/* the figure's own motion */
.fig .fig-wave { animation: figWave 3.2s linear infinite; }
.fig .fig-bub { animation: figBub 3.4s ease-in infinite; }
.fig .fig-sweep { animation: figSweep 7s ease-in-out infinite; }
.fig .fig-pulse { animation: figPulse 2.6s ease-in-out infinite; }
.fig .fig-beam { animation: figBeam 4.2s linear infinite; }
@keyframes figWave { from { transform: translateX(0); } to { transform: translateX(100px); } }
@keyframes figBub { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .45; } 100% { transform: translateY(-70px); opacity: 0; } }
@keyframes figSweep { 0%, 100% { transform: translateY(-30px); opacity: .7; } 50% { transform: translateY(40px); opacity: 1; } }
@keyframes figPulse { 0%, 100% { opacity: .55; } 50% { opacity: .95; } }
@keyframes figBeam { from { transform: translateY(0); } to { transform: translateY(540px); } }

@media (max-width: 370px) {
  .fig-stage { min-height: 520px; }
  .view-tape .fig-box { top: 80px; bottom: 44px; }
  .seg-card { width: 104px; }
  .fig-big { font-size: 30px; }
}

/* ---------------------------------------------------------------- DIARY */
.date-jump { position: relative; overflow: hidden; border-radius: 999px; }
.date-jump input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.dweek { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.dweek-days { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dwd { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--dim); cursor: pointer; }
.dwd span { font: 600 8.5px/1 var(--f-mono); letter-spacing: .06em; }
.dwd b { font: 700 16px/1.1 var(--f-disp); color: var(--ink); }
.dwd em { display: flex; gap: 2px; height: 4px; font-style: normal; }
.dwd em i { width: 4px; height: 4px; border-radius: 50%; }
.dwd.today b { color: var(--acc); }
.dwd.on { border-color: var(--acc); background: rgba(var(--acc-rgb), .12); box-shadow: 0 0 14px rgba(var(--acc-rgb), .25); }
.dwd:disabled { opacity: .35; cursor: default; }
.grade.g-B { background: #29e3ff; box-shadow: 0 0 16px rgba(41, 227, 255, .4); }
.grade.g-C { background: #ffd166; box-shadow: 0 0 16px rgba(255, 209, 102, .4); }
.grade.g-D { background: #ff9f43; box-shadow: 0 0 16px rgba(255, 159, 67, .4); }
.day-chart { width: 100%; height: auto; display: block; }
.day-chart text { font: 500 8px var(--f-mono); fill: var(--dim); }
.tlx { position: relative; padding-left: 58px; }
.tlx::before { content: ""; position: absolute; left: 47px; top: 6px; bottom: 6px; width: 2px; border-radius: 1px; background: linear-gradient(var(--line2), rgba(var(--acc-rgb), .5), var(--line2)); }
.ev { position: relative; margin-bottom: 9px; }
.ev:last-child { margin-bottom: 0; }
.ev-t { position: absolute; left: -58px; top: 3px; width: 42px; text-align: right; font-size: 10.5px; color: var(--sub); }
.ev-p { position: absolute; left: -16px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); border: 2px solid var(--bg); }
.ev-c { padding: 8px 11px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.ev-c[role="button"] { cursor: pointer; }
.ev.big .ev-c { border-color: rgba(255, 209, 102, .38); background: rgba(255, 209, 102, .05); }
.ev-h { font: 700 12.5px/1.25 var(--f-disp); letter-spacing: .07em; }
.ev-s { margin-top: 2px; font-size: 11.5px; line-height: 1.4; color: var(--sub); }
.ev-q { margin-top: 5px; font-size: 13px; line-height: 1.4; font-style: italic; color: var(--ink); }
.ci-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.ci-pills .pill { padding: 3px 6px; font-size: 9px; letter-spacing: .08em; }
.dthumb { display: block; width: 64px; height: 84px; margin-top: 6px; aspect-ratio: auto; border-radius: 10px; }
.nova-note { margin: 0 0 12px; padding: 13px 14px; border-radius: 18px; border: 1px solid rgba(139, 123, 255, .45); background: linear-gradient(160deg, rgba(139, 123, 255, .15), rgba(139, 123, 255, .03)); }
.nn-h { display: flex; align-items: center; gap: 7px; font: 700 11.5px/1 var(--f-disp); letter-spacing: .14em; color: #b9adff; }
.nn-b { margin-top: 7px; font-size: 13.5px; line-height: 1.55; color: #dcd6ff; }
.diary-actions { margin-bottom: 12px; }
.fill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.fill-grid .btn { justify-content: flex-start; }
/* check-in sheet */
.ci-meta { align-items: flex-end; }
.ci-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 7px 0 13px; }
.ci-scale button { --c: var(--acc); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .25);
  color: var(--sub); font: 700 16px/1 var(--f-disp); cursor: pointer; transition: background .15s, box-shadow .15s; }
.ci-scale button small { font: 500 7.5px/1.1 var(--f-mono); letter-spacing: .04em; color: var(--dim); text-transform: uppercase; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.ci-scale button.on { color: #0a0f18; background: var(--c); border-color: var(--c); box-shadow: 0 0 14px var(--c); }
.ci-scale button.on small { color: rgba(0, 0, 0, .65); }
.ci-tags { margin: 7px 0 4px; }
.ci-note-row { align-items: flex-start; }
.ci-note-row textarea { min-height: 52px; resize: vertical; }
.ci-tipbox { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 10px; border-radius: 12px; font-size: 12px; line-height: 1.35; color: var(--ink);
  border: 1px solid rgba(41, 227, 255, .4); background: rgba(41, 227, 255, .07); }
.ci-tipbox span { flex: 1; }
.ci-tipbox > .ico { color: #29e3ff; }
.mic.on { color: var(--bad); border-color: rgba(255, 77, 109, .6); animation: corePulse 1.2s ease-in-out infinite; }

/* ---------------------------------------------------------------- HISTORY */
.hist-metrics { margin-bottom: 12px; }
.hist-metrics .chip.on { color: var(--mc); border-color: var(--mc); background: color-mix(in srgb, var(--mc) 14%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--mc) 25%, transparent); }
.hist-bars { --mc: var(--acc); position: relative; display: flex; align-items: flex-end; gap: 3px; height: 168px; margin-top: 12px; padding-top: 12px; }
.hist-bars.month { gap: 1.5px; }
.hb-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--dim); cursor: pointer; }
.hb-col i { display: block; width: 100%; max-width: 30px; border-radius: 6px 6px 2px 2px; background: color-mix(in srgb, var(--mc) 45%, transparent); }
.hb-col i.hit { background: var(--mc); box-shadow: 0 0 10px color-mix(in srgb, var(--mc) 55%, transparent); }
.hb-col span { height: 10px; font: 600 8.5px/1 var(--f-mono); }
.hb-col.today span { color: var(--ink); }
.hb-col:disabled { cursor: default; }
.hist-bars.month .hb-col i { border-radius: 3px 3px 1px 1px; }
.hb-goal { position: absolute; left: 0; right: 0; height: 0; margin-bottom: 14px; border-top: 1px dashed color-mix(in srgb, var(--mc) 80%, #fff); pointer-events: none; z-index: 1; }
.hb-goal span { position: absolute; right: 0; top: -14px; font: 700 8.5px/1 var(--f-mono); color: var(--sub); background: var(--bg); padding: 1px 4px; border-radius: 4px; }

/* ---------------------------------------------------------------- PHOTOS: review, view, compare, ladder */
.pb-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.pb-item { display: flex; gap: 10px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.pb-img { width: 84px; height: 112px; flex: none; border-radius: 12px; background: #0a1020 center 30% / cover no-repeat; }
.pb-item .inp[type="date"] { min-height: 36px; padding: 6px 10px; font-size: 13px; }
.pb-src { margin-top: 4px; font-size: 9.5px; color: var(--dim); letter-spacing: .06em; }
.pb-w { margin-top: 2px; font-size: 10.5px; color: var(--sub); }
.pb-w.ok { color: var(--ok); }
.pv-box { position: relative; border-radius: 16px; overflow: hidden; background: #000; min-height: 220px; display: grid; place-items: center; }
.pv-box img { display: block; width: 100%; max-height: 62dvh; object-fit: contain; }
.pv-box.picking img { cursor: crosshair; }
.pv-w { margin-top: 8px; font-size: 11px; color: var(--sub); }
.pv-w.ok { color: var(--ok); }
.eye-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid #3dffa0; box-shadow: 0 0 10px #3dffa0; pointer-events: none; font-style: normal; }
.eye-help { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); padding: 6px 10px; border-radius: 999px; font-size: 10px; letter-spacing: .16em; color: #04110b; background: #3dffa0; pointer-events: none; }
.cmp-stage { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: #05080f; border: 1px solid var(--line2); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cmp-stage[data-mode="wipe"] { cursor: ew-resize; touch-action: none; }
.cmp-layer { position: absolute; inset: 0; overflow: hidden; }
.cmp-layer img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; pointer-events: none; }
.cmp-layer.broken { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 6px, transparent 6px 12px); }
.cmp-line { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(255, 122, 217, .9); pointer-events: none; }
.cmp-line i { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; color: #1a0414; background: #ff7ad9; box-shadow: 0 0 16px #ff7ad9; }
.cmp-cap { position: absolute; bottom: 8px; padding: 5px 8px; border-radius: 9px; font: 600 9px/1.3 var(--f-mono); letter-spacing: .08em; color: #c9d6ea; background: rgba(0, 0, 0, .62); pointer-events: none; }
.cmp-cap b { display: block; color: #fff; font-size: 10px; }
.cmp-cap span { color: #3dffa0; }
.cmp-cap.l { left: 8px; } .cmp-cap.r { right: 8px; text-align: right; }
.cmp-side { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cmp-side .cmp-stage { aspect-ratio: 3 / 4.6; }
.why-ladder { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; scroll-snap-type: x proximity; }
.why-ladder::-webkit-scrollbar { display: none; }
.rung { position: relative; flex: none; width: 80px; height: 112px; padding: 9px 4px 0; border-radius: 12px 12px 22px 22px; text-align: center; overflow: hidden; scroll-snap-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; color: #c9b27a; font: inherit;
  background: linear-gradient(170deg, #3b2f10, #14110a); border: 1px solid rgba(255, 209, 102, .55); box-shadow: 0 0 14px rgba(255, 209, 102, .16); }
.rung small { position: relative; font: 600 8px/1.3 var(--f-mono); letter-spacing: .1em; }
.rung b { position: relative; font: 700 21px/1.15 var(--f-disp); color: #ffe3a1; }
.rung > i { position: absolute; left: 0; right: 0; bottom: 9px; display: flex; align-items: center; justify-content: center; gap: 3px; font: 600 8px/1 var(--f-mono); font-style: normal; color: #c9b27a; }
.rung.passed { background: linear-gradient(170deg, #0f2d3a, #071219); border-color: rgba(41, 227, 255, .5); color: #8fd8ea; box-shadow: none; }
.rung.passed b { color: #bdf3ff; } .rung.passed > i { color: #29e3ff; }
.rung.now { cursor: default; background: linear-gradient(170deg, #0f3a2a, #07140f); border-color: rgba(61, 255, 160, .75); box-shadow: 0 0 18px rgba(61, 255, 160, .3); color: #7fd3aa; }
.rung.now b { color: #b6ffd9; } .rung.now > i { color: #3dffa0; }
.rung.locked { filter: saturate(.75); }
.rung-ph { position: absolute !important; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; opacity: .38; }
.rung.has small, .rung.has b { text-shadow: 0 1px 6px #000; }
/* temptation check: your WHY before the takeaway */
.tempt { position: fixed; inset: 0; z-index: 270; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: calc(20px + var(--st)) 18px calc(20px + var(--sb));
  background: radial-gradient(100% 60% at 50% 30%, rgba(255, 122, 217, .18), transparent 70%), rgba(2, 4, 10, .97); animation: fadeIn .25s ease both; }
.tempt .f-k { text-align: center; font: 600 11px/1 var(--f-mono); letter-spacing: .3em; color: #ff7ad9; }
.tempt .why-pair { max-width: 460px; width: 100%; margin: 0 auto; }
.tempt-q { text-align: center; font: 700 16px/1.45 var(--f-disp); letter-spacing: .1em; color: #ffd166; text-shadow: 0 0 16px rgba(255, 209, 102, .4); }
.tempt .grid2 { max-width: 460px; width: 100%; margin: 4px auto 0; }

/* ---------------------------------------------------------------- MANAGER */
.mgr-ring { position: relative; width: 84px; height: 84px; flex: none; }
.mgr-ring > b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 19px; }
.iss { margin-bottom: 10px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.iss.warn { border-color: rgba(255, 159, 67, .45); background: rgba(255, 159, 67, .05); }
.iss-h { display: flex; align-items: center; gap: 8px; font: 700 13px/1.2 var(--f-disp); letter-spacing: .08em; }
.iss.warn .iss-h { color: #ffb36b; }
.iss-s { margin-top: 4px; font-size: 12px; line-height: 1.45; color: var(--sub); }
.iss-a { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cmp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.cmp-cards > div { padding: 8px; border-radius: 11px; border: 1px solid var(--line2); font: 500 10.5px/1.6 var(--f-mono); color: var(--sub); }
.cmp-cards b { display: block; font: 700 13px/1.3 var(--f-disp); color: var(--ink); }
.mgr-soft summary { list-style: none; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--line2); background: rgba(0, 0, 0, .4); }
.search-box .ico { color: var(--dim); }
.search-box .inp { border: 0; background: transparent; padding-left: 0; padding-right: 0; min-height: 42px; }
.li-main { border: 0; background: none; padding: 0; text-align: left; color: inherit; cursor: pointer; font: inherit; }

/* ---------------------------------------------------------------- NOVA voice */
.voice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.vcard { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 0; border-radius: 13px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .25); }
.vcard.on { border-color: rgba(var(--acc-rgb), .75); background: rgba(var(--acc-rgb), .12); box-shadow: 0 0 14px rgba(var(--acc-rgb), .2); }
.vpick { flex: 1; min-width: 0; padding: 6px 0 6px 10px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.vpick b { display: block; font: 700 12.5px/1.15 var(--f-disp); letter-spacing: .08em; text-transform: uppercase; }
.vpick small { display: block; font: 500 9.5px/1.2 var(--f-mono); color: var(--sub); }
.voice-pill { position: fixed; z-index: 230; left: 50%; bottom: calc(var(--dock-h) + var(--sb) + 12px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 10px; border-radius: 999px; border: 1px solid rgba(139, 123, 255, .65); background: rgba(10, 8, 28, .94); color: #dcd6ff; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 18px rgba(139, 123, 255, .35); animation: fadeIn .2s ease both; }
.voice-pill b { font: 700 11px/1 var(--f-disp); letter-spacing: .16em; }
.voice-pill .sub { font: 500 10px/1 var(--f-mono); color: #a99eea; }
.vbars { display: inline-flex; align-items: center; gap: 2px; height: 16px; }
.vbars i { width: 3px; height: 100%; border-radius: 2px; background: #b9adff; animation: vbar 1s ease-in-out infinite; transform-origin: 50% 50%; }
.vbars i:nth-child(2) { animation-delay: .18s; } .vbars i:nth-child(3) { animation-delay: .36s; } .vbars i:nth-child(4) { animation-delay: .54s; }
@keyframes vbar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.nova-orb.talk i:nth-child(3) { animation: corePulse .5s ease-in-out infinite; }
.nova-orb.talk i:nth-child(1) { border-color: rgba(185, 173, 255, .95); }
.nova-call { color: #3dffa0; }
/* LAB · Call NOVA */
.call { position: fixed; inset: 0; z-index: 280; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: calc(24px + var(--st)) 20px calc(24px + var(--sb));
  background: radial-gradient(90% 60% at 50% 38%, rgba(139, 123, 255, .22), transparent 70%), rgba(2, 3, 10, .98); animation: fadeIn .25s ease both; }
.call .f-k { font: 600 11px/1 var(--f-mono); letter-spacing: .3em; color: #b9adff; }
.call-t { font: 700 30px/1 var(--f-mono); color: #fff; letter-spacing: .06em; }
.call-orb { position: relative; width: 168px; height: 168px; margin: 8px 0; }
.call-orb i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(139, 123, 255, .55); }
.call-orb i:nth-child(1) { animation: spin 9s linear infinite; border-style: dashed; }
.call-orb i:nth-child(2) { inset: 18px; border-color: rgba(41, 227, 255, .6); animation: spin 5s linear infinite reverse; border-style: dotted; }
.call-orb i:nth-child(3) { inset: 40px; border: 0; background: radial-gradient(circle, rgba(255, 255, 255, .95), #8b7bff 58%, rgba(139, 123, 255, .2) 72%); box-shadow: 0 0 40px #8b7bff; animation: corePulse 2.4s ease-in-out infinite; }
.call-orb b { position: absolute; inset: 0; display: grid; place-items: center; color: #140f33; }
.call-orb.speaking i:nth-child(3) { animation-duration: .55s; box-shadow: 0 0 70px #8b7bff; }
.call-orb.connecting i:nth-child(3) { opacity: .55; }
.call-st { font-size: 11px; letter-spacing: .26em; color: #b9adff; }
.call-lines { width: 100%; max-width: 460px; min-height: 120px; max-height: 32dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.call-lines p { margin: 0; padding: 7px 10px; border-radius: 12px; font-size: 13px; line-height: 1.45; max-width: 88%; }
.call-lines p.ai { align-self: flex-start; color: #dcd6ff; background: rgba(139, 123, 255, .12); }
.call-lines p.me { align-self: flex-end; color: #cfefff; background: rgba(41, 227, 255, .1); }
.call-btns { display: flex; gap: 22px; margin-top: 6px; }
.call-btns .btn.icon.tall { width: 74px; height: 74px; border-radius: 50%; flex-direction: column; gap: 4px; }
.call-btns .btn small { font: 600 9px/1 var(--f-mono); letter-spacing: .1em; }
.call-end { --b: rgba(255, 77, 109, .9); background: #ff4d6d !important; color: #fff !important; box-shadow: 0 0 26px rgba(255, 77, 109, .55); }
.call-note { margin: 0; font: 500 10px/1.4 var(--f-mono); color: var(--dim); letter-spacing: .06em; text-align: center; }
.lab41 { box-shadow: inset 0 0 0 1px rgba(255, 122, 217, .22), var(--shade) !important; }
.lab .l em { display: inline-flex; align-items: center; gap: 4px; }

/* ---------------------------------------------------------------- calm motion */
@media (prefers-reduced-motion: reduce) {
  .fig .fig-wave, .fig .fig-bub, .fig .fig-sweep, .fig .fig-pulse, .fig .fig-beam, .vbars i, .call-orb i, .wt-badge.new, .drawer, .mic.on { animation: none !important; }
}
body.calm .fig .fig-wave, body.calm .fig .fig-bub, body.calm .fig .fig-sweep, body.calm .fig .fig-pulse, body.calm .fig .fig-beam, body.calm .vbars i, body.calm .call-orb i, body.calm .wt-badge.new, body.calm .drawer { animation: none !important; }

/* ---------------------------------------------------------------- v41 light theme */
html[data-theme="light"] [data-mod="diary"], html[data-theme="light"] .m-diary { --acc: #b7791f; --acc-rgb: 183, 121, 31; }
html[data-theme="light"] [data-mod="history"], html[data-theme="light"] .m-history { --acc: #0a8fb0; --acc-rgb: 10, 143, 176; }
html[data-theme="light"] [data-mod="photos"], html[data-theme="light"] .m-photos { --acc: #c2338f; --acc-rgb: 194, 51, 143; }
html[data-theme="light"] [data-mod="manager"], html[data-theme="light"] .m-manager { --acc: #c2620a; --acc-rgb: 194, 98, 10; }
html[data-theme="light"] html[data-theme="light"] .dr-dim { background: rgba(20, 30, 50, .35); }
html[data-theme="light"] .dr-hex { color: #b7791f; }
html[data-theme="light"] .dr-xp { background: rgba(20, 40, 80, .1); }
html[data-theme="light"] .dr-i { color: var(--ink); }
html[data-theme="light"] .dwd, html[data-theme="light"] .ev-c, html[data-theme="light"] .ci-scale button, html[data-theme="light"] .pb-item, html[data-theme="light"] .iss,
html[data-theme="light"] .cmp-cards > div, html[data-theme="light"] .vcard, html[data-theme="light"] .search-box { background: rgba(20, 40, 80, .045); }
html[data-theme="light"] .dwd b, html[data-theme="light"] .ev-q { color: var(--ink); }
html[data-theme="light"] .ev-p { border-color: #fff; }
html[data-theme="light"] .ev.big .ev-c { background: rgba(183, 121, 31, .07); border-color: rgba(183, 121, 31, .35); }
html[data-theme="light"] .ci-scale button.on { color: #0a0f18; }
html[data-theme="light"] .nova-note { background: linear-gradient(160deg, rgba(91, 75, 214, .1), #fff); border-color: rgba(91, 75, 214, .35); }
html[data-theme="light"] .nn-h { color: #5b4bd6; } html[data-theme="light"] .nn-b { color: var(--ink); }
html[data-theme="light"] .why-frame { background: linear-gradient(160deg, #dfe6f2, #f4f7fb); }
html[data-theme="light"] .why-empty { color: var(--sub); }
html[data-theme="light"] .why-q { color: #8a5a00; background: rgba(183, 121, 31, .07); border-color: rgba(183, 121, 31, .4); }
html[data-theme="light"] .rung { background: linear-gradient(170deg, #fff3d6, #fbe6b4); color: #8a5a00; border-color: rgba(183, 121, 31, .5); box-shadow: none; }
html[data-theme="light"] .rung b { color: #6b4500; } html[data-theme="light"] .rung > i { color: #8a5a00; }
html[data-theme="light"] .rung.passed { background: linear-gradient(170deg, #dff5fb, #c8ecf6); color: #075e74; border-color: rgba(10, 143, 176, .45); }
html[data-theme="light"] .rung.passed b { color: #064e61; } html[data-theme="light"] .rung.passed > i { color: #0a8fb0; }
html[data-theme="light"] .rung.now { background: linear-gradient(170deg, #dcfbe9, #bff0d6); color: #05603f; border-color: rgba(5, 150, 105, .6); }
html[data-theme="light"] .rung.now b { color: #044d33; } html[data-theme="light"] .rung.now > i { color: #059669; }
html[data-theme="light"] .rung.has small, html[data-theme="light"] .rung.has b { text-shadow: 0 1px 4px #fff; }
html[data-theme="light"] .fig-stage { background: radial-gradient(55% 40% at 50% 44%, rgba(var(--acc-rgb), .14), transparent 70%), linear-gradient(180deg, #f5f8fc, #e8eef7); }
html[data-theme="light"] .fig-big { color: var(--ink); text-shadow: none; }
html[data-theme="light"] .seg-card { background: rgba(255, 255, 255, .88); }
html[data-theme="light"] .ff { background: rgba(255, 255, 255, .8); }
html[data-theme="light"] .fs-mark span { background: rgba(255, 255, 255, .92); }
html[data-theme="light"] .fs-mark.cur span { color: #8a5a00; } html[data-theme="light"] .fs-mark.goal span { color: #05603f; } html[data-theme="light"] .fs-mark.jab span { color: #5b2bd0; }
html[data-theme="light"] .tape-lbl { background: rgba(255, 255, 255, .9); border-color: rgba(5, 150, 105, .4); }
html[data-theme="light"] .tape-lbl em { color: #05603f; }
html[data-theme="light"] .bodyseg button.on { color: #fff; }
html[data-theme="light"] .hb-goal span { background: #fff; }
html[data-theme="light"] .hist-metrics .chip.on { filter: brightness(.62) saturate(1.5); }
html[data-theme="light"] .tempt { background: radial-gradient(100% 60% at 50% 30%, rgba(194, 51, 143, .14), transparent 70%), rgba(238, 242, 248, .98); }
html[data-theme="light"] .tempt-q { color: #8a5a00; text-shadow: none; }
html[data-theme="light"] .call { background: radial-gradient(90% 60% at 50% 38%, rgba(91, 75, 214, .18), transparent 70%), rgba(238, 242, 248, .99); }
html[data-theme="light"] .call-t { color: var(--ink); }
html[data-theme="light"] .call-st, html[data-theme="light"] .call .f-k { color: #5b4bd6; }
html[data-theme="light"] .call-lines p.ai { color: var(--ink); background: rgba(91, 75, 214, .1); }
html[data-theme="light"] .call-lines p.me { color: var(--ink); background: rgba(10, 143, 176, .1); }
html[data-theme="light"] .voice-pill { background: rgba(255, 255, 255, .97); color: #3b2fa8; box-shadow: 0 10px 30px rgba(30, 50, 90, .25); }
html[data-theme="light"] .voice-pill .sub { color: #6d61c9; }
html[data-theme="light"] .vbars i { background: #5b4bd6; }
html[data-theme="light"] .iss.warn { background: rgba(194, 98, 10, .06); border-color: rgba(194, 98, 10, .4); }
html[data-theme="light"] .iss.warn .iss-h { color: #9a4d06; }
html[data-theme="light"] .ci-tipbox { color: var(--ink); background: rgba(10, 143, 176, .08); }
html[data-theme="light"] .pb-img { background-color: #dfe6f2; }
html[data-theme="light"] .ph em { background: rgba(255, 255, 255, .85); color: #8a5a00; }
html[data-theme="light"] .mini .v small, html[data-theme="light"] .fig-big small { color: var(--sub); }
.ph span b { display: block; margin-top: 2px; font-weight: 700; color: #7dffc4; }
.ph span { max-width: calc(100% - 12px); line-height: 1.15; }
.grade { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 4px; border-radius: 7px; font: 700 13px/1 var(--f-disp); vertical-align: middle;
  color: #04110b; background: var(--ok); box-shadow: 0 0 12px rgba(61, 255, 160, .45); }
/* two-part labels (e.g. "ENERGY · DRAINED → BUZZING"): name left, range right */
div.lbl:has(> span + span) { display: flex; justify-content: space-between; gap: 10px; }
div.lbl > span + span { color: var(--dim); font-weight: 500; letter-spacing: .08em; }
/* v50 · year-by-year weight trophies */
.yr-trophies{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:6px}
.yt{border:1px solid var(--line);border-radius:10px;padding:8px;display:flex;flex-direction:column;gap:2px;background:rgba(255,255,255,.02)}
.yt b{font-size:15px}.yt span{font-size:9.5px;letter-spacing:.1em;color:var(--sub)}.yt em{font-style:normal;font-size:11px}.yt small{font-size:10px;color:var(--sub)}
.yt.got{border-color:rgba(255,209,102,.55);background:rgba(255,209,102,.08)}.yt.got span{color:#ffd166}
.yt.cur{border-color:rgba(61,255,160,.5)}.yt.cur span{color:var(--ok)}
.jab-window{display:inline-block;margin-top:6px;font-size:10px;letter-spacing:.12em;padding:3px 8px;border-radius:999px;border:1px solid var(--line);color:var(--sub)}
.jab-window.open{color:#c9b8ff;border-color:rgba(169,139,255,.55);background:rgba(169,139,255,.1)}
.proto.passed{opacity:.75}.proto.passed .x{color:var(--ok)}
/* v50 · day arrows, minus buttons, zone clock */
.date-nav{display:flex;align-items:center;gap:8px;margin:2px 0 10px}.date-nav .dn-label{flex:1;text-align:center;display:flex;flex-direction:column;gap:1px}
.date-nav .dn-label b{font-family:var(--disp,inherit);letter-spacing:.14em;font-size:12px}.date-nav .dn-label span{font-size:9.5px;color:var(--warn);letter-spacing:.08em}
.date-nav .btn[disabled]{opacity:.25}
.water-row{display:grid;grid-template-columns:44px repeat(3,1fr) 44px;gap:6px}
.btn.minus{font-size:18px;font-weight:700;line-height:1;padding-left:0;padding-right:0;color:var(--warn);border-color:rgba(255,159,67,.35)}
.btn.minus[disabled]{opacity:.3}
.ls-cell .pm{display:grid;grid-template-columns:1fr 1.4fr;gap:4px}.ls-cell .pm .btn{min-width:0;padding-left:4px;padding-right:4px}
.zclock .zr.hit{opacity:1}.zclock .zr.hit i{box-shadow:0 0 10px var(--z),0 0 2px var(--z);background:var(--z)}.zclock .zr.hit b{color:var(--z);text-shadow:0 0 10px color-mix(in srgb,var(--z) 60%,transparent)}
.zclock .zr.ahead{opacity:.42}.zclock .zr.ahead i{background:transparent;border:1px solid var(--z);box-shadow:none}
/* v50 · FAST map tones (20h minimum) + FOOD map type icon */
.cal .c[data-tone="fmiss"]{background:rgba(255,159,67,.22);color:var(--ink);border-color:rgba(255,159,67,.4)}
.cal .c[data-tone="f20"]{background:#29e3ff;box-shadow:0 0 10px rgba(41,227,255,.45)}
.cal .c[data-tone="f24"]{background:#3dffa0;box-shadow:0 0 10px rgba(61,255,160,.45)}
.cal .c[data-tone="f36"]{background:#ffd166;box-shadow:0 0 12px rgba(255,209,102,.55)}
.cal .c[data-tone="f48"]{background:#ff6b9d;box-shadow:0 0 12px rgba(255,107,157,.6)}
.cal .c[data-tone="f72"]{background:#a98bff;box-shadow:0 0 14px rgba(169,139,255,.7)}
.cal .c{position:relative}.cal .c .c-ico{position:absolute;top:1px;right:1px;line-height:0;opacity:.9}.cal .c .c-ico .ico{width:9px;height:9px}
html[data-theme="light"] .cal .c[data-tone="fmiss"]{color:var(--ink)}
/* =====================================================================
   v50 · HOME widgets, sub-tabs, floating NOVA, wallet, jab track
   ===================================================================== */
[data-mod="home"], .m-home { --acc: #29e3ff; --acc-rgb: 41, 227, 255; }
html[data-theme="light"] [data-mod="home"], html[data-theme="light"] .m-home { --acc: #0a8fb0; --acc-rgb: 10, 143, 176; }
.dk.m-diary.on, .dk.m-core.on { color: var(--acc); }
.subnav { display: flex; gap: 4px; padding: 3px; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.subnav button { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: none; color: var(--sub); font: 700 11px/1 var(--f-disp); letter-spacing: .14em; cursor: pointer; }
.subnav button.on { background: rgba(var(--acc-rgb), .16); color: var(--acc); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .45); }
html[data-theme="light"] .subnav { background: rgba(0,0,0,.03); }
.nova-fab { position: fixed; z-index: 58; right: 14px; bottom: calc(var(--dock-h) + var(--sb) + 14px); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(139,123,255,.7);
  background: radial-gradient(circle at 50% 35%, #2a2160, #0b0920 72%); color: #d9d2ff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 0 18px rgba(139,123,255,.45), inset 0 0 14px rgba(139,123,255,.3); transition: transform .2s, opacity .2s; }
.nova-fab .ico { width: 24px; height: 24px; filter: drop-shadow(0 0 6px #8b7bff); }
.nova-fab .nf-ring { position: absolute; inset: -4px; border-radius: 50%; border: 1px dashed rgba(139,123,255,.55); animation: spin 14s linear infinite; }
.nova-fab:active { transform: scale(.92); }
.nova-fab.hide { opacity: 0; pointer-events: none; transform: scale(.6); }
body.calm .nova-fab .nf-ring { animation: none; }
html[data-theme="light"] .nova-fab { background: radial-gradient(circle at 50% 35%, #ece8ff, #d6cffb 72%); color: #4b3fb3; }
#view .screen { padding-bottom: 66px; }
.wg + .wg { margin-top: 0; }
.wg.editing { position: relative; border: 1px dashed rgba(var(--hud-rgb), .45); border-radius: 16px; padding: 6px; margin-bottom: 12px; }
.wg.editing .wg-body { pointer-events: none; opacity: .72; max-height: 220px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.wg.editing .wg-body .panel { margin-bottom: 0; }
.wg-bar { display: flex; align-items: center; gap: 4px; padding: 2px 4px 6px; }
.wg-bar b { display: block; font: 700 12px/1.2 var(--f-disp); letter-spacing: .1em; }
.wg-bar small { font-size: 10px; color: var(--sub); letter-spacing: .1em; }
.wg-bar .btn[disabled] { opacity: .25; }
.lay-row { margin: 0 0 12px; }
.lay-row .chip { position: relative; }
.lay-row .lay-x { margin-left: 6px; font-size: 14px; line-height: 1; opacity: .7; padding: 0 2px; }
.wallet { display: flex; align-items: center; gap: 12px; }
.wallet .coin { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #ffd166; flex: none;
  background: radial-gradient(circle at 40% 35%, rgba(255,209,102,.35), rgba(255,209,102,.05) 70%); box-shadow: 0 0 18px rgba(255,209,102,.35), inset 0 0 0 2px rgba(255,209,102,.6); }
.wallet .k { font-size: 9.5px; letter-spacing: .16em; color: var(--sub); }
.jab-track { position: relative; height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: visible; }
.jab-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #6d5bd0, #a98bff); box-shadow: 0 0 10px rgba(169,139,255,.6); }
.jab-track b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #ffd166; box-shadow: 0 0 6px #ffd166; }
.tape-pair { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px 10px; }
.tape-pair .tp-h { font: 700 10px/1 var(--f-disp); letter-spacing: .16em; color: var(--acc); margin-bottom: 6px; }
.pb-wf { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11px; color: var(--sub); }
.pb-wf .inp { max-width: 96px; }
.ed-list { display: flex; flex-direction: column; gap: 8px; }
.ed-row { display: flex; gap: 6px; align-items: center; }
.ed-row .inp { min-width: 0; flex: 1; }
.ed-row .ed-time { flex: 0 0 96px; }
.ev-c[role="button"] { cursor: pointer; }
.ev-c[role="button"]:active { transform: scale(.99); }
.rest-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,107,61,.45); background: rgba(255,107,61,.08); color: #ffb199; font-size: 10.5px; letter-spacing: .1em; cursor: pointer; }
.rest-chip .ico { width: 13px; height: 13px; }
.rest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

/* ===== v60 AUTOPILOT: NOVA attachments, done card with Undo, Renpho check, photo notes ===== */
.att-row { flex-wrap: wrap; gap: 6px; }
.att { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); background: rgba(0, 0, 0, .3); }
.att img { width: 100%; height: 100%; object-fit: cover; border: 0; }
.att.file { width: auto; min-width: 74px; padding: 0 22px 0 8px; gap: 4px; color: var(--sub); }
.att.file small { font: 600 9.5px/1.1 var(--f-mono); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-x { position: absolute; top: 1px; right: 1px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; padding: 0; }
.att-x .ico { width: 11px; height: 11px; }
.msg .done-card { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; padding: 9px 10px; border-radius: 12px; background: rgba(61, 255, 160, .06); border: 1px solid rgba(61, 255, 160, .32); }
.msg .done-card .k { display: flex; align-items: center; gap: 5px; font: 600 9px/1 var(--f-mono); letter-spacing: .16em; color: var(--ok); margin-bottom: 2px; }
.msg .done-card .k .ico { width: 12px; height: 12px; }
.done-li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; line-height: 1.3; }
.done-li span { min-width: 0; overflow-wrap: anywhere; }
.done-li .btn { flex: none; }
.done-li.undone span { text-decoration: line-through; opacity: .55; }
.done-li em { font: 600 9.5px/1 var(--f-mono); color: var(--dim); font-style: normal; }
.act-card.review { background: rgba(255, 209, 102, .06); border-color: rgba(255, 209, 102, .4); }
.act-card.review .k { color: var(--warn); display: flex; align-items: center; gap: 5px; }
.rv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.rv-grid div { padding: 5px 6px; border-radius: 8px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); min-width: 0; }
.rv-grid div.bad { border-color: var(--warn); background: rgba(255, 209, 102, .12); }
.rv-grid small { display: block; font: 600 8px/1.15 var(--f-mono); color: var(--sub); text-transform: uppercase; letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-grid b { font-size: 12px; }
.inp.warn-inp { border-color: var(--warn) !important; box-shadow: 0 0 0 1px rgba(255, 209, 102, .5); }
.pv-ai { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(169, 139, 255, .08); border: 1px solid rgba(169, 139, 255, .35); }
.pv-ai .k { display: flex; align-items: center; gap: 5px; font: 600 9px/1 var(--f-mono); letter-spacing: .16em; color: var(--vio); }
.pv-ai .k .ico { width: 12px; height: 12px; }
.pv-ai p { margin: 6px 0 6px; font-size: 13px; line-height: 1.45; }
button.mt-tile { font: inherit; width: 100%; }
html[data-theme="light"] .msg .done-card { background: rgba(0, 150, 90, .06); }
html[data-theme="light"] .rv-grid div { background: rgba(0, 0, 0, .04); }
.site-lr { font: 600 5.5px/1 var(--f-mono); letter-spacing: .08em; fill: var(--sub); stroke: none; }
/* v60: the longer codename mustn't run under the level chip */
.brand-ver { letter-spacing: .04em; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* v60: on phone widths the name ran under the level chip — compact it and never let it overlap */
.top-right { flex: none; }
.brand > div { min-width: 0; overflow: hidden; }
@media (max-width: 430px) { .brand-name { font-size: 14.5px; letter-spacing: .09em; } .rank-chip { padding: 0 8px 0 5px; gap: 5px; } .rank-chip .xpbar { width: 24px; } .top-right { gap: 6px; } }

/* =====================================================================
   v70 OVERMIND — MANAGER powers, NOVA shortcuts / brief, player card, reactor spin
   ===================================================================== */
.nova-fab { transition: opacity .25s, transform .25s; }
.nova-fab.away { opacity: .14; transform: scale(.72) translateX(26px); pointer-events: none; }
/* same-day weigh-ins */
.wv-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.wv { position: relative; padding: 10px 10px 8px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line2); min-width: 0; }
.wv.on { border-color: rgba(61, 255, 160, .6); box-shadow: 0 0 0 1px rgba(61, 255, 160, .25), 0 0 18px rgba(61, 255, 160, .12); }
.wv-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--sub); }
.wv-badge { font: 700 9px/1 var(--f-mono); letter-spacing: .12em; color: #031; background: var(--ok); padding: 3px 6px; border-radius: 999px; }
.wv-w { font-size: 22px; font-weight: 700; margin: 4px 0 2px; color: var(--ink); }
.wv-w small { font-size: 11px; color: var(--sub); }
.wv-s { font-size: 10px; line-height: 1.5; color: var(--sub); }
.wv-a { display: flex; gap: 6px; margin-top: 8px; }
.wv-a .btn.pri { flex: 1; }
.mgr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-stat { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font: 700 9.5px/1 var(--f-mono); letter-spacing: .1em; color: var(--sub); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.chip-stat.hot { color: #ffb15c; border-color: rgba(255, 159, 67, .5); background: rgba(255, 159, 67, .1); }
.chip-stat.hot .ico { animation: flick 1.6s ease-in-out infinite; }
@keyframes flick { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18) rotate(-6deg); } }
.li.due-hot { border-color: rgba(255, 159, 67, .45); }
.wk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.wk-grid div { text-align: center; padding: 10px 4px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.wk-grid b { display: block; font-size: 20px; color: var(--ink); }
.wk-grid small { font: 600 8.5px/1.2 var(--f-mono); letter-spacing: .1em; color: var(--sub); }
.panel.wk-hot { box-shadow: var(--shade), inset 0 0 0 1px rgba(255, 209, 102, .35); }
.src-badge { flex: none; font: 700 8.5px/1 var(--f-mono); letter-spacing: .1em; padding: 4px 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--sub); align-self: center; min-width: 52px; text-align: center; }
.src-badge.s-you { color: #29e3ff; background: rgba(41, 227, 255, .1); }
.src-badge.s-nova { color: #a98bff; background: rgba(139, 123, 255, .14); }
.src-badge.s-manager { color: #3dffa0; background: rgba(61, 255, 160, .1); }
.src-badge.s-import { color: #ffd166; background: rgba(255, 209, 102, .1); }
.src-badge.s-undo { color: #ff9f43; background: rgba(255, 159, 67, .1); }
.hist-list .li { gap: 10px; }
.mgr-in-nova { margin-top: 10px; padding: 10px; border-radius: 14px; background: rgba(61, 255, 160, .05); border: 1px solid rgba(61, 255, 160, .3); }
.mgr-in-nova > .k { display: flex; align-items: center; gap: 6px; font: 700 10px/1 var(--f-mono); letter-spacing: .14em; color: var(--ok); margin-bottom: 8px; }
.mgr-in-nova .iss { margin: 0 0 8px; }
.mgr-in-nova .iss:last-child { margin-bottom: 0; }
.chip.sc-chip { color: #ffd166; border-color: rgba(255, 209, 102, .45); background: rgba(255, 209, 102, .08); }
.chip.sc-chip .ico { margin-right: 4px; }
.btn.sc-save { color: #ffd166; }
.rem-form { display: grid; grid-template-columns: 1fr 92px 86px 40px; gap: 6px; }
.rem-form .btn { padding: 0; }
@media (max-width: 380px) { .rem-form { grid-template-columns: 1fr 1fr; } }
.wg-pick button { font-family: var(--f-mono); letter-spacing: 0; text-transform: none; font-size: 11px; }
/* morning brief */
.brief { display: grid; gap: 8px; }
.br-li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); animation: brIn .45s both; animation-delay: calc(var(--i) * 70ms); }
.br-li b { display: block; font: 700 14px/1.25 var(--f-disp); letter-spacing: .03em; color: var(--ink); }
.br-li small { display: block; color: var(--sub); font-size: 12px; margin-top: 2px; }
@keyframes brIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* HAMZAOS tabs */
.core-tabs { margin: 4px 0 10px; }
/* player card */
.pcard { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%; --t1: #ffd166; --t2: #b8862b; --tg: 255, 209, 102;
  position: relative; width: min(268px, 78vw); aspect-ratio: 5 / 7; margin: 4px auto 6px; perspective: 900px; cursor: pointer; touch-action: pan-y; user-select: none; }
.pcard.t-bronze { --t1: #e0a47a; --t2: #8a5532; --tg: 224, 164, 122; }
.pcard.t-silver { --t1: #e6eef8; --t2: #8796ab; --tg: 210, 225, 245; }
.pcard.t-gold { --t1: #ffe08a; --t2: #b8862b; --tg: 255, 209, 102; }
.pcard.t-icon { --t1: #e7d6ff; --t2: #7b5cff; --tg: 169, 139, 255; }
.pc-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1); transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.pcard.flip .pc-in { transform: rotateX(var(--rx)) rotateY(calc(180deg + var(--ry))); }
.pc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; padding: 16px 16px 14px;
  border-radius: 22px 22px 34px 34px; color: #1a1206;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .55), transparent 60%), linear-gradient(160deg, var(--t1), var(--t2));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(var(--tg), .35), inset 0 0 0 2px rgba(255, 255, 255, .35), inset 0 0 0 6px rgba(0, 0, 0, .12); }
.t-icon .pc-face, .t-silver .pc-face { color: #10131c; }
.pc-back { transform: rotateY(180deg); display: flex; flex-direction: column; gap: 6px; }
.pc-holo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: .75;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .85), transparent 38%), linear-gradient(115deg, transparent 30%, rgba(255, 0, 170, .28) 42%, rgba(0, 255, 230, .28) 52%, rgba(255, 240, 0, .25) 62%, transparent 74%);
  background-size: 100% 100%, 220% 220%; background-position: 0 0, calc(var(--mx) * 1.2) calc(var(--my) * 1.2); }
.pc-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; }
.pc-top > div { display: flex; flex-direction: column; line-height: 1; }
.pc-ovr { font-size: 42px; font-weight: 800; letter-spacing: -.02em; }
.pc-pos { font: 800 12px/1 var(--f-disp); letter-spacing: .16em; margin-top: 4px; }
.pc-top i { font-style: normal; font: 700 10px/1 var(--f-mono); margin-top: 3px; }
.pc-tier { font: 800 10px/1 var(--f-mono); letter-spacing: .18em; padding: 5px 8px; border-radius: 999px; background: rgba(0, 0, 0, .18); }
.pc-emb { position: relative; display: grid; place-items: center; height: 26%; margin-top: -4px; }
.pc-emb svg { width: 64px; height: 64px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); }
.pc-name { position: relative; text-align: center; font: 800 22px/1 var(--f-disp); letter-spacing: .22em; margin-top: 4px; }
.pc-sub { position: relative; text-align: center; font-size: 9.5px; letter-spacing: .14em; opacity: .75; margin-top: 4px; text-transform: uppercase; }
.pc-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 4px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(0, 0, 0, .2); }
.pc-stats div { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.pc-stats b { font-size: 19px; font-weight: 800; }
.pc-stats span { font: 800 11px/1 var(--f-disp); letter-spacing: .1em; opacity: .8; }
.pc-stats i, .pc-top i { font-style: normal; font: 700 9px/1 var(--f-mono); }
.pcard i.up { color: #0b7a3e; } .pcard i.dn { color: #a3122d; }
.pc-bk-h, .pc-bk-f { position: relative; font-size: 9.5px; letter-spacing: .18em; text-align: center; opacity: .8; }
.pc-bk { position: relative; display: flex; gap: 10px; align-items: flex-start; }
.pc-bk > b { font-size: 18px; min-width: 28px; }
.pc-bk span { display: block; font: 800 11.5px/1.2 var(--f-disp); letter-spacing: .08em; text-transform: uppercase; }
.pc-bk small { display: block; font-size: 10.5px; line-height: 1.3; opacity: .85; }
.pc-bk em { display: block; font-style: normal; font-size: 10px; line-height: 1.3; opacity: .7; }
html[data-theme="light"] .pc-face { color: #1a1206; }
body.calm .pc-holo { display: none; }
/* reactor spin */
.spin-wrap { display: grid; grid-template-columns: 148px 1fr; gap: 14px; align-items: center; position: relative; }
.spin-ptr { position: absolute; left: 66px; top: -4px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 14px solid var(--warn); z-index: 2; filter: drop-shadow(0 0 6px rgba(255, 209, 102, .8)); }
.spin-wheel { width: 148px; height: 148px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 209, 102, .35), 0 0 26px rgba(255, 209, 102, .18); }
.spin-wheel .sg0 { fill: rgba(41, 227, 255, .2); stroke: rgba(41, 227, 255, .5); stroke-width: .5; }
.spin-wheel .sg1 { fill: rgba(139, 123, 255, .22); stroke: rgba(139, 123, 255, .55); stroke-width: .5; }
.spin-wheel .sg-rare { fill: rgba(255, 209, 102, .5); stroke: #ffd166; }
.spin-wheel text { fill: var(--ink); font: 800 7px var(--f-mono); text-anchor: middle; }
.spin-wheel .hub { fill: #0b1222; stroke: var(--warn); stroke-width: 1.5; }
.spin-side .disp { letter-spacing: .12em; font-size: 14px; }
.spin-side .btn { margin-top: 10px; }
@media (max-width: 360px) { .spin-wrap { grid-template-columns: 1fr; justify-items: center; } .spin-ptr { left: calc(50% - 8px); } }

/* =====================================================================
   v80 LIFELINE — dock (2 | HOME | 2) with the inner switch, COMMAND menu, day log, goals, habits, summaries…
   ===================================================================== */
#dock { grid-template-columns: 1fr auto 1fr; padding: 0 4px var(--sb); overflow: visible; }
.dk-side { position: relative; display: grid; align-items: stretch; height: var(--dock-h); overflow: hidden; }
.dk-side .dk-main { display: grid; grid-template-columns: 1fr 1fr; transition: transform .38s cubic-bezier(.3, 1.3, .5, 1), opacity .3s; }
.dk-side .dk-sub { position: absolute; inset: 0; display: grid; transform: translateY(110%); opacity: 0; transition: transform .42s cubic-bezier(.3, 1.3, .5, 1) .06s, opacity .3s .06s; }
#dock.in-group::before { background: linear-gradient(90deg, transparent, rgba(var(--acc-rgb), .9), transparent); }
#dock.in-group .dk-main { transform: translateY(110%); opacity: 0; pointer-events: none; }
#dock.in-group .dk-sub { transform: none; opacity: 1; }
.dk-sub .dk-s { font-size: 11px; letter-spacing: .14em; }
.dk-sub .dk-s .ico { width: 24px; height: 24px; }
.dk-sub .dk-s.on::after { left: 30%; right: 30%; }
.dk span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dk .dk-two { font-style: normal; font-size: 8px; opacity: .55; letter-spacing: .08em; }
.dk-orb { margin: 0 6px; }
.dk-handle { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); width: 44px; height: 16px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dk-handle i { width: 28px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); }
.dk-orb.alert .orb::after { content: ""; position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: #ff9f43; box-shadow: 0 0 10px #ff9f43; animation: flick 1.4s infinite; }
.dk-orb .orb svg.orb-rx .o-arc { transition: stroke-dashoffset .8s cubic-bezier(.2, .9, .3, 1); }
.dk-orb .orb svg.orb-rx .o-fast { filter: drop-shadow(0 0 3px currentColor); }
.screen.slide-l { animation: slideL .32s cubic-bezier(.2, .9, .3, 1); } .screen.slide-r { animation: slideR .32s cubic-bezier(.2, .9, .3, 1); }
@keyframes slideL { from { transform: translateX(40px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes slideR { from { transform: translateX(-40px); opacity: .3; } to { transform: none; opacity: 1; } }
/* COMMAND button + S-Pen style arc */
.cmd-fab { position: fixed; z-index: 62; left: 14px; bottom: calc(var(--dock-h) + var(--sb) + 14px); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; touch-action: none;
  border: 1px solid rgba(41, 227, 255, .6); color: #bff6ff; background: radial-gradient(circle at 50% 35%, #0e3242, #04101a 72%); box-shadow: 0 0 18px rgba(41, 227, 255, .35); transition: transform .25s, opacity .25s; }
.cmd-fab .cf-ring { position: absolute; inset: -4px; border-radius: 50%; border: 1px dashed rgba(41, 227, 255, .5); animation: spin 18s linear infinite reverse; }
.cmd-fab .cf-ico { display: grid; place-items: center; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.cmd-fab.open .cf-ico { transform: rotate(45deg) scale(1.1); }
.cmd-fab .cf-dot { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: #ff9f43; box-shadow: 0 0 8px #ff9f43; }
.cmd-fab.hide, .cmd-fab.away { opacity: .14; transform: scale(.72) translateX(-26px); pointer-events: none; }
#cmd-root.open { position: fixed; inset: 0; z-index: 61; }
.cmd-dim { position: absolute; inset: 0; background: radial-gradient(circle at 40px calc(100% - var(--dock-h) - 40px), rgba(3, 8, 18, .55), rgba(3, 5, 10, .78) 60%); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn .2s; }
.cmd-i { position: absolute; left: 40px; bottom: calc(var(--dock-h) + var(--sb) + 40px); display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; color: var(--ink); transform: translate(calc(var(--x) - 22px), calc(var(--y) + 22px)); animation: cmdIn .34s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: var(--d); }
@keyframes cmdIn { from { transform: translate(-22px, 22px) scale(.3); opacity: 0; } to { transform: translate(calc(var(--x) - 22px), calc(var(--y) + 22px)); opacity: 1; } }
.cmd-i .ci-ic { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #12304a, #06121f 72%); border: 1px solid rgba(41, 227, 255, .45); box-shadow: 0 0 14px rgba(41, 227, 255, .25); transition: transform .15s, box-shadow .15s; }
.cmd-i .ci-l { font: 700 10.5px/1 var(--f-disp); letter-spacing: .14em; padding: 5px 8px; border-radius: 999px; background: rgba(5, 10, 20, .85); border: 1px solid var(--line); white-space: nowrap; }
.cmd-i.hot .ci-ic, .cmd-i:active .ci-ic { transform: scale(1.18); box-shadow: 0 0 22px rgba(41, 227, 255, .7); border-color: #29e3ff; }
.cmd-i .ci-badge { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; border-radius: 8px; background: #ff9f43; color: #1a0d00; font: 700 9px/16px var(--f-mono); text-align: center; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
html[data-theme="light"] .cmd-fab, html[data-theme="light"] .cmd-i .ci-ic { background: radial-gradient(circle at 50% 35%, #e8fbff, #c9eef7 72%); color: #0b5a70; }
/* day log */
.dl-strip { position: relative; margin-top: 10px; height: 54px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); overflow: hidden; touch-action: none; user-select: none; }
.dl-bars { position: absolute; inset: 6px 0 18px; pointer-events: none; }
.dl-b { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 50%, transparent); opacity: .9; }
.dl-b.run { animation: flick 1.6s infinite; opacity: .7; }
.dl-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(24, 1fr); }
.dl-h { border: 0; border-right: 1px solid rgba(255, 255, 255, .05); background: none; position: relative; cursor: pointer; padding: 0; }
.dl-h i { position: absolute; bottom: 3px; left: 2px; font: 600 8px/1 var(--f-mono); font-style: normal; color: var(--dim); }
.dl-h.now { background: rgba(41, 227, 255, .12); box-shadow: inset 0 -2px 0 #29e3ff; }
.dl-h.sel { background: rgba(255, 209, 102, .3); }
.dl-run, .dl-now { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.dl-now .inp { flex: 1; min-width: 0; }
.dl-run { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); }
.dl-run b { display: block; font: 700 14px/1.2 var(--f-disp); } .dl-run small { color: var(--sub); font-size: 11px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); flex: none; }
.dl-li { gap: 10px; text-align: left; cursor: pointer; color: inherit; }
.chip.gap-chip { border-style: dashed; color: var(--warn); }
/* summaries / compare */
.sum-t { font-size: 14px; line-height: 1.55; color: var(--ink); }
.sum-t.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-tbl { display: grid; gap: 4px; }
.cmp-tbl > div { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; align-items: center; padding: 7px 8px; border-radius: 10px; background: rgba(0, 0, 0, .22); font-size: 12px; }
.cmp-tbl > div.h { background: none; font: 700 10px/1 var(--f-mono); letter-spacing: .1em; color: var(--sub); }
.cmp-tbl b { text-align: right; font-size: 12.5px; }
/* goals · habits · time machine */
.goal { padding: 12px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line2); margin-bottom: 8px; }
.goal b { font: 700 15px/1.2 var(--f-disp); letter-spacing: .04em; } .goal small { display: block; color: var(--sub); font-size: 11px; margin-top: 2px; }
.goal.done { border-color: rgba(61, 255, 160, .45); }
.goal-pct { font-size: 20px; color: var(--acc); }
.li.hab { display: flex; flex-direction: row; align-items: center; gap: 10px; text-align: left; } .li.hab.off { opacity: .55; }
.hab-tick { width: 30px; height: 30px; border-radius: 10px; border: 1.5px solid var(--line2); background: rgba(0, 0, 0, .25); color: #031; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .2s; }
.hb.on .hab-tick { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 12px rgba(61, 255, 160, .5); transform: scale(1.05); }
.day-pick { display: flex; gap: 6px; margin-top: 6px; }
.day-pick label { flex: 1; text-align: center; padding: 10px 0; border-radius: 10px; border: 1px solid var(--line2); cursor: pointer; font: 700 12px/1 var(--f-mono); }
.day-pick label.on { background: rgba(61, 255, 160, .16); border-color: var(--ok); color: var(--ok); }
.day-pick input { display: none; }
.seg label { border: 0; background: transparent; color: var(--sub); padding: 7px 10px; font: 600 10.5px/1 var(--f-disp); letter-spacing: .1em; cursor: pointer; flex: 1; text-align: center; border-radius: 999px; }
.seg label.on { background: rgba(var(--acc-rgb), .18); color: var(--acc); }
.tm { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tm-col { text-align: center; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.tm-h { font-size: 10px; letter-spacing: .12em; color: var(--sub); margin-bottom: 8px; }
.tm-ph { display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: 10px; background: #0b1220 center / cover no-repeat; }
.tm-ph.empty { display: grid; place-items: center; color: var(--dim); }
.tm-v { font-size: 22px; font-weight: 700; margin-top: 8px; } .tm-v small { font-size: 11px; color: var(--sub); }
.tm-s { font-size: 11px; color: var(--sub); min-height: 14px; }
/* barcode, misc */
.bc-box { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.bc-box video { width: 100%; height: 100%; object-fit: cover; }
.bc-line { position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; background: #ff4d6d; box-shadow: 0 0 12px #ff4d6d; animation: flick 1.2s infinite; }
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
#voice-bar { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 12px 6px; padding: 8px 10px; border-radius: 12px; background: rgba(139, 123, 255, .14); border: 1px solid rgba(139, 123, 255, .5); font-size: 12px; overflow: hidden; }
#voice-bar span { flex: 1; }
#voice-bar i { position: absolute; left: 0; bottom: 0; height: 2px; background: #8b7bff; animation: vbar 2.2s linear forwards; }
@keyframes vbar { from { width: 0; } to { width: 100%; } }
.chat-li { gap: 4px; } .chat-li.on { border-color: rgba(139, 123, 255, .6); }
.chat-li .ct { text-transform: none; letter-spacing: 0; font-weight: 600; white-space: normal; }
.wg-every summary { list-style: none; } .wg-every summary::-webkit-details-marker { display: none; }
@media (max-width: 360px) { .cmd-i .ci-l { font-size: 9.5px; } .dk .dk-two { display: none; } }

/* =====================================================================
   v90 HORIZON — five-tab bar + swipe, APPS arc, status line, edit any page, HOME widget sizes,
   goal staircase, combined body, GYM next up + muscle body, boss fight, wrapped, ghost camera, AMOLED
   ===================================================================== */
html.amoled { --bg: #000; --bg2: #000; --panel: rgba(0, 0, 0, .94); --panel2: #05070c; --glass: rgba(0, 0, 0, .9); }
html.amoled body { background: #000; }
html.amoled body::after { display: none; }
html.amoled #bg-stars { opacity: .45; }
html.amoled #topbar { background: rgba(0, 0, 0, .96); }
html.amoled #dock { background: #000; }
/* top bar: name + live status line */
.brand-name { font: 700 16px/1 var(--f-disp); letter-spacing: .16em; }
.brand-st { display: flex; align-items: center; gap: 5px; margin-top: 4px; font: 600 9.5px/1 var(--f-mono); letter-spacing: .08em; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.brand-st i { font-style: normal; opacity: .5; }
.brand-st .st-page { color: var(--acc); }
.brand-st .st-wait { color: #ff9f43; font-weight: 700; animation: flick 1.6s infinite; }
.brand-wrap .sync-dot { position: absolute; right: -3px; bottom: -2px; width: 8px; height: 8px; border: 1.5px solid var(--bg); }
.brand { min-width: 0; flex: 1; text-align: left; }
.brand > div { min-width: 0; }
.tb-btn.on { color: var(--ok); box-shadow: inset 0 0 0 1px rgba(61, 255, 160, .55); }
@media (max-width: 380px) { .brand-name { font-size: 14px; letter-spacing: .1em; } .brand-st { font-size: 8.5px; } .brand-mark { width: 26px; height: 26px; } }
/* page tools (what used to be the header's buttons) */
.pg-tools { display: flex; justify-content: flex-end; gap: 6px; margin: -2px 0 8px; flex-wrap: wrap; }
.home-head { padding: 2px 2px 12px; }
/* bar: FOOD · FAST · HOME · BODY · GYM */
#dock.v90 { grid-template-columns: 1fr 1fr auto 1fr 1fr; }
#dock.v90 .dk span { font-size: 10px; letter-spacing: .12em; }
#dock.v90 .dk.on .ico { transform: translateY(-3px) scale(1.08); }
/* floating buttons get their names */
.cmd-fab .cf-l, .nova-fab .cf-l { position: absolute; left: 50%; top: calc(100% + 5px); transform: translateX(-50%); font: 700 8.5px/1 var(--f-disp); letter-spacing: .16em; color: var(--sub); white-space: nowrap; pointer-events: none; text-shadow: 0 1px 4px #000; }
.nova-fab .cf-l { color: #b9adff; }
.nova-fab, .cmd-fab { bottom: calc(var(--dock-h) + var(--sb) + 22px); }
/* APPS: two rings fanning around the button */
#cmd-root.open .cmd-i { position: absolute; left: 40px; bottom: calc(var(--dock-h) + var(--sb) + 48px); width: 58px; height: 58px; margin: 0 0 -29px -29px; padding: 0; transform: none;
  translate: var(--x) var(--y); animation: cmdIn90 .38s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: var(--d); display: block; }
@keyframes cmdIn90 { from { translate: 0 0; scale: .3; opacity: 0; } to { translate: var(--x) var(--y); scale: 1; opacity: 1; } }
#cmd-root.open .cmd-i .ci-ic { width: 58px; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
#cmd-root.open .cmd-i .ci-ic .ico { width: 20px; height: 20px; }
#cmd-root.open .cmd-i .ci-l { position: static; display: none; }
#cmd-root.open .cmd-i .ci-n { font: 700 7.5px/1 var(--f-disp); letter-spacing: .06em; color: var(--ink); max-width: 52px; overflow: hidden; white-space: nowrap; }
#cmd-root.open .cmd-i.ring2 .ci-ic { border-color: rgba(169, 139, 255, .55); box-shadow: 0 0 12px rgba(169, 139, 255, .25); background: radial-gradient(circle at 50% 35%, #1d1840, #0a0718 72%); }
#cmd-root.open .cmd-i.hot .ci-n { color: #29e3ff; }
.cmd-rings { position: absolute; left: 40px; bottom: calc(var(--dock-h) + var(--sb) + 48px); width: 1px; height: 1px; overflow: visible; pointer-events: none; animation: fadeIn .3s; }
.cmd-rings circle { fill: none; stroke: rgba(41, 227, 255, .22); stroke-width: 1; stroke-dasharray: 3 6; transform: scaleY(-1); }
.cmd-rings circle.r2 { stroke: rgba(169, 139, 255, .2); }
.cmd-dim { background: radial-gradient(circle at 40px calc(100% - var(--dock-h) - 48px), rgba(3, 8, 18, .5), rgba(3, 5, 10, .82) 70%); }
/* swipe */
.screen { transition: transform .26s cubic-bezier(.2, .9, .3, 1), opacity .26s; }
.screen.dragging { transition: none; will-change: transform; }
#swipe-dots { position: fixed; z-index: 59; left: 50%; bottom: calc(var(--dock-h) + var(--sb) + 10px); transform: translateX(-50%); display: flex; gap: 7px; padding: 6px 10px; border-radius: 999px; background: rgba(4, 8, 16, .78); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .25s; }
#swipe-dots.show { opacity: 1; }
#swipe-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: background .2s, transform .2s; }
#swipe-dots i.h { width: 8px; height: 8px; margin-top: -1px; }
#swipe-dots i.on { background: var(--acc); box-shadow: 0 0 8px var(--acc); transform: scale(1.25); }
/* heroes on DIARY · SUMMARIES · LIFE · HISTORY */
.hero-row { display: flex; align-items: center; gap: 14px; }
.hero-row .hero-rx { width: 104px; height: 104px; }
.hero-row .k { font: 600 10px/1 var(--f-mono); letter-spacing: .16em; color: var(--acc); margin-bottom: 4px; }
/* EDIT any page */
.pe-top { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 12px; border-radius: 14px; border: 1px dashed rgba(var(--acc-rgb), .6); background: rgba(var(--acc-rgb), .06); }
.pe-list { display: flex; flex-direction: column; gap: 10px; }
.pe-item { border: 1px solid var(--line2); border-radius: 14px; background: rgba(5, 10, 20, .7); overflow: hidden; transition: opacity .2s, box-shadow .2s; }
.pe-item.off { opacity: .45; }
.pe-item.off .pe-body { filter: grayscale(1); }
.pe-bar { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 4px; border-bottom: 1px solid var(--line); }
.pe-name { font: 700 11.5px/1.2 var(--f-disp); letter-spacing: .1em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-name small { margin-left: 6px; font: 700 9px/1 var(--f-mono); color: var(--bad); }
.pe-body { max-height: 96px; overflow: hidden; pointer-events: none; padding: 6px 8px 0; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.pe-body .panel { margin: 0; transform: scale(.94); transform-origin: top center; }
.btn.icon.on { color: var(--ok); }
.wg-drag { display: grid; place-items: center; width: 34px; height: 34px; flex: none; color: var(--sub); cursor: grab; touch-action: none; border-radius: 9px; }
.wg-drag:active { color: var(--acc); background: rgba(var(--acc-rgb), .12); }
.lifting { opacity: .92; box-shadow: 0 10px 40px rgba(0, 0, 0, .6), 0 0 0 2px rgba(var(--acc-rgb), .7) !important; z-index: 5; position: relative; }
/* HOME widgets: S (half) · M · L, compact, hide title */
.wg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 10px; align-items: start; }
.wg-grid > .wg, .wg-grid > .panel { grid-column: 1 / -1; min-width: 0; }
.wg-grid > .wg.sz-s:not(.editing) { grid-column: auto; }
.wg.sz-s:not(.editing) > .panel { zoom: .78; overflow: hidden; }
.wg.sz-s:not(.editing) .chart, .wg.sz-s:not(.editing) .rig-big { display: none; }
.wg.sz-l > .panel { padding: 18px; box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .35), 0 0 30px rgba(var(--acc-rgb), .12); }
.wg.sz-l .p-title { font-size: 1.2em; }
.wg.nt .p-head { display: none; }
.wg-grid.compact { column-gap: 8px; }
.wg-grid.compact .panel { padding: 10px 12px; margin-bottom: 8px; }
.wg-grid.compact .p-head { margin-bottom: 6px; }
.wg.editing .wg-bar { gap: 4px; flex-wrap: nowrap; }
.wg-name { min-width: 0; overflow: hidden; }
.wg-name b, .wg-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-sz { flex: none; }
.wg-sz button { padding: 5px 7px; font-size: 10px; min-width: 0; }
.edit-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.edit-tools .chk { display: flex; align-items: center; gap: 6px; font: 600 11px/1 var(--f-disp); letter-spacing: .08em; color: var(--sub); }
@media (max-width: 380px) { .wg.editing .wg-bar .btn.icon.ghost[data-a="wg-move"] { display: none; } }
/* BODY: goal staircase */
.st-hero { overflow: hidden; }
.st-head { display: flex; align-items: center; gap: 10px; }
.st-head .k { font: 600 9.5px/1 var(--f-mono); letter-spacing: .14em; color: var(--acc); }
.st-big { margin-top: 6px; font: 700 34px/1 var(--f-mono); text-shadow: 0 0 18px rgba(var(--acc-rgb), .35); }
.st-big small { font-size: 13px; color: var(--sub); }
.st-left { display: block; margin-top: 5px; font: 600 11px/1 var(--f-mono); color: var(--ok); letter-spacing: .06em; }
.st-pct { position: relative; width: 64px; height: 64px; flex: none; }
.st-pct svg { width: 64px; height: 64px; }
.st-pct b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; }
.stairs { display: flex; align-items: flex-end; gap: 5px; height: 150px; margin-top: 12px; padding-top: 26px; }
.stp { position: relative; flex: 1; min-width: 0; height: max(34%, var(--h)); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; padding: 0 2px 6px; border: 1px solid var(--line2); border-bottom: 0; border-radius: 9px 9px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); color: var(--dim); cursor: pointer; overflow: visible; animation: stpIn .6s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: calc(var(--i) * 70ms); transform-origin: bottom; }
@keyframes stpIn { from { transform: scaleY(0); opacity: 0; } }
.stp b { position: relative; z-index: 1; font-size: 11px; color: inherit; }
.stp small { position: relative; z-index: 1; font: 600 7.5px/1.1 var(--f-mono); letter-spacing: .04em; opacity: .85; text-align: center; }
.stp.done { color: #04110b; border-color: transparent; background: linear-gradient(180deg, #3dffa0, #1a9e63); box-shadow: 0 0 14px rgba(61, 255, 160, .35); }
.stp.cur { color: var(--ink); border-color: #29e3ff; background: rgba(41, 227, 255, .08); box-shadow: 0 0 18px rgba(41, 227, 255, .35), inset 0 0 12px rgba(41, 227, 255, .2); }
.stp-fill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(41, 227, 255, .55), rgba(41, 227, 255, .15)); border-radius: 8px 8px 0 0; animation: growUp 1.1s cubic-bezier(.2, .9, .3, 1) both .5s; transform-origin: bottom; }
.stp-me { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #29e3ff; color: #021018; box-shadow: 0 0 14px #29e3ff; animation: stpBob 1.8s ease-in-out infinite; }
@keyframes stpBob { 50% { transform: translate(-50%, -5px); } }
.stp-ok { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); color: #04110b; }
.stp:active { filter: brightness(1.2); }
.st-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; justify-content: space-between; }
.st-foot > span:first-child { font-size: 9.5px; letter-spacing: .1em; color: var(--sub); }
.st-sz { display: inline-flex; align-items: center; }
.st-sz button { padding: 5px 7px; font-size: 10px; min-width: 0; }
.st-sz i { font: 600 8.5px/1 var(--f-mono); font-style: normal; color: var(--dim); margin-left: 4px; }
.st-empty { text-align: center; padding: 8px 4px; }
body.calm .stp, body.calm .stp-me, body.calm .stp-fill { animation: none; }
/* BODY: fat + tape in one figure */
.view-body .fig-box { top: 66px; bottom: 112px; }
.fat-cards { position: absolute; left: 8px; right: 8px; bottom: 24px; z-index: 3; gap: 6px; }
.fat-cards .seg-card { width: auto; }
.fig-box.both .tape-lbl { min-width: 50px; padding: 3px 5px; }
.fig-box.both .tape-lbl b { font-size: 11.5px; }
/* GYM: next up (compact) + muscle body */
.nu-row { display: flex; align-items: center; gap: 12px; }
.nu-rig { width: 84px; height: 84px; flex: none; border-radius: 14px; border: 1px solid rgba(var(--acc-rgb), .35); background: radial-gradient(circle at 50% 40%, rgba(var(--acc-rgb), .14), transparent 70%); display: grid; place-items: center; cursor: pointer; padding: 0; color: inherit; overflow: hidden; }
.nu-rig > * { width: 100%; height: 100%; }
.nu-ex { margin: 4px 0 0; font-size: 12px; line-height: 1.35; }
.view-muscle { min-height: 520px; }
.seg-card.next { border-color: #29e3ff; box-shadow: 0 0 12px rgba(41, 227, 255, .35); }
.seg-card .nx { font: 700 7.5px/1 var(--f-mono); font-style: normal; letter-spacing: .1em; margin-left: 5px; padding: 2px 4px; border-radius: 4px; background: #29e3ff; color: #021018; vertical-align: 2px; }
.fig-next { position: absolute; left: 10px; right: 10px; bottom: 22px; z-index: 3; text-align: center; font-size: 9.5px; letter-spacing: .08em; color: var(--sub); }
.view-muscle .fig-hint { bottom: 6px; }
/* gym: ghost numbers */
.ghost-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: 10px; letter-spacing: .06em; color: var(--sub); }
.ghost-line b.ok { color: var(--ok); }
.sets td.prev.beat { color: var(--ok); }
.sets td.prev.under { color: #ff9f43; }
.sets td.prev em { font-style: normal; margin-left: 3px; color: var(--ok); }
/* MEDS: pen stock */
.pen-pips { display: flex; gap: 5px; flex-wrap: wrap; }
.pen-pips i { width: 16px; height: 26px; border-radius: 5px; border: 1px solid rgba(169, 139, 255, .45); background: rgba(169, 139, 255, .06); }
.pen-pips i.on { background: linear-gradient(180deg, #c9b8ff, #7d5cff); box-shadow: 0 0 8px rgba(169, 139, 255, .5); border-color: transparent; }
/* DIARY: sleep + energy */
.sl-bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; }
.sl-bars div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.sl-bars i { width: 100%; border-radius: 6px 6px 2px 2px; animation: growUp .8s cubic-bezier(.2, .9, .3, 1) both; transform-origin: bottom; }
.sl-bars b { font-size: 9.5px; } .sl-bars span { font: 600 8.5px/1 var(--f-mono); color: var(--dim); }
.sl-bars div.on span { color: var(--acc); }
.en-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.en-b { height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--ink); font: 700 16px/1 var(--f-mono); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.en-b small { font: 600 7px/1 var(--f-mono); letter-spacing: .06em; color: var(--sub); }
.en-row.big .en-b { height: 70px; font-size: 22px; }
.en-b.on, .en-b:active { background: var(--acc); color: #03101a; border-color: transparent; }
.en-b:nth-child(1) { --acc: #ff4d6d; } .en-b:nth-child(2) { --acc: #ff9f43; } .en-b:nth-child(3) { --acc: #ffd166; } .en-b:nth-child(4) { --acc: #7dffb5; } .en-b:nth-child(5) { --acc: #3dffa0; }
/* HAMZAOS: boss fight */
.boss { display: flex; gap: 12px; align-items: center; }
.boss-av { width: 64px; height: 64px; flex: none; border-radius: 16px; display: grid; place-items: center; color: var(--bc); background: radial-gradient(circle, color-mix(in srgb, var(--bc) 30%, transparent), transparent 70%); border: 1px solid var(--bc); box-shadow: 0 0 18px color-mix(in srgb, var(--bc) 45%, transparent); animation: bossPulse 2.2s ease-in-out infinite; }
@keyframes bossPulse { 50% { transform: scale(1.06) rotate(-3deg); } }
.boss.down .boss-av { animation: none; filter: grayscale(.6); opacity: .7; }
.boss-n { font-size: 17px; letter-spacing: .12em; color: var(--bc); }
.boss-hp { position: relative; height: 16px; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); overflow: hidden; }
.boss-hp i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #ff4d6d, var(--bc)); box-shadow: 0 0 12px var(--bc); transition: width 1s cubic-bezier(.2, .9, .3, 1); }
.boss-hp b { position: relative; display: block; text-align: center; font-size: 9.5px; line-height: 16px; color: #fff; text-shadow: 0 1px 3px #000; }
.boss-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.boss-parts span { font-size: 10.5px; padding: 4px 7px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--sub); }
.boss-parts b { color: #ff6b3d; }
body.calm .boss-av { animation: none; }
/* HAMZA Wrapped story */
.wrapped { position: fixed; inset: 0; z-index: 300; background: radial-gradient(90% 60% at 50% 40%, #0b1a2a, #02040a); display: flex; flex-direction: column; padding: calc(var(--st) + 14px) 16px calc(var(--sb) + 16px); animation: fadeIn .25s; }
.wr-bars { display: flex; gap: 4px; }
.wr-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.wr-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.wr-bars i.done b { width: 100%; }
.wr-bars i.on b { animation: wrBar 5.2s linear forwards; }
@keyframes wrBar { to { width: 100%; } }
.wr-stage { flex: 1; display: grid; place-items: center; text-align: center; }
.wr-slide { animation: wrIn .5s cubic-bezier(.2, 1.2, .4, 1); max-width: 520px; }
@keyframes wrIn { from { transform: translateY(24px) scale(.96); opacity: 0; } }
.wr-k { font-size: 12px; letter-spacing: .3em; color: var(--wc); }
.wr-big { margin: 14px 0; font-size: clamp(34px, 11vw, 64px); line-height: 1; color: #fff; text-shadow: 0 0 40px var(--wc); word-break: break-word; }
.wr-sub { font-size: 15px; color: #b9c6dd; line-height: 1.5; }
.wr-ph { display: flex; gap: 10px; justify-content: center; margin: 16px 0; }
.wr-ph .ph { width: 42vw; max-width: 220px; aspect-ratio: 3 / 4; border-radius: 14px; border: 1px solid var(--wc); }
.wr-tap { position: absolute; top: 60px; bottom: 80px; width: 40%; z-index: 1; }
.wr-tap.l { left: 0; } .wr-tap.r { right: 0; width: 60%; }
.wr-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; }
/* ghost camera */
.gcam { position: fixed; inset: 0; z-index: 300; background: #000; overflow: hidden; }
.gcam video, .gcam #gc-g { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcam #gc-g { pointer-events: none; mix-blend-mode: screen; filter: grayscale(1) contrast(1.2); }
.gcam.mirror video, .gcam.mirror #gc-g { transform: scaleX(-1); }
.gc-grid { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent calc(33.3% - .5px), rgba(255, 255, 255, .18) 33.3%, transparent calc(33.3% + .5px), transparent calc(66.6% - .5px), rgba(255, 255, 255, .18) 66.6%, transparent calc(66.6% + .5px)), linear-gradient(transparent calc(33.3% - .5px), rgba(255, 255, 255, .18) 33.3%, transparent calc(33.3% + .5px), transparent calc(66.6% - .5px), rgba(255, 255, 255, .18) 66.6%, transparent calc(66.6% + .5px)); }
.gc-top, .gc-bot { position: absolute; left: 0; right: 0; z-index: 2; padding: 12px 14px; display: flex; gap: 10px; align-items: center; background: linear-gradient(rgba(0, 0, 0, .65), transparent); }
.gc-top { top: 0; padding-top: calc(var(--st) + 10px); font-size: 10.5px; letter-spacing: .12em; }
.gc-bot { bottom: 0; flex-direction: column; padding-bottom: calc(var(--sb) + 18px); background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.gc-op { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .12em; width: min(320px, 90%); }
.gc-op input { flex: 1; }
.gc-shut { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; background: rgba(255, 255, 255, .25); cursor: pointer; box-shadow: 0 0 0 4px rgba(0, 0, 0, .3); }
.gc-shut:active { background: #fff; }
.gc-cd { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; font-size: 120px; color: #fff; text-shadow: 0 0 30px #29e3ff; pointer-events: none; }
.gcam.flash::after { content: ""; position: absolute; inset: 0; background: #fff; animation: fadeOut .4s forwards; }
@keyframes fadeOut { to { opacity: 0; } }
@media (max-width: 430px) { .rank-chip .xpbar { display: none; } }
.edit-tools .btn { flex: 1; min-width: 0; }
.edit-tools .chk { flex: none; white-space: nowrap; }
.mini { overflow: hidden; }
.brand-st .st-z { display: inline-flex; gap: 5px; }
@media (max-width: 400px) { .brand-st .st-z { display: none; } }
.nu-rig svg { width: 100% !important; height: 100% !important; max-width: none; }

/* =====================================================================
   v100 CLARITY — six tabs around HOME, NOVA in the top bar, gear menu, sub pages,
   HOME glance widgets, MY PAGE, Samsung-style SETTINGS + search
   ===================================================================== */
:root { --gl-track: rgba(255, 255, 255, .08); --gl-card: linear-gradient(160deg, rgba(18, 27, 46, .92), rgba(10, 15, 28, .92)); }
html[data-theme="light"] { --gl-track: rgba(20, 40, 80, .1); --gl-card: linear-gradient(160deg, #ffffff, #f1f5fb); }
html.amoled { --gl-card: #0b0d12; --sub: #a9b8d0; --dim: #7f90ab; } /* black theme: brighter small text */
/* bar: 3 · HOME · 3 */
#dock.v100 { display: grid; grid-template-columns: 1fr 1fr 1fr auto 1fr 1fr 1fr; padding: 0 2px var(--sb); }
#dock.v100 .dk { min-width: 0; gap: 3px; }
#dock.v100 .dk .ico { width: 21px; height: 21px; }
#dock.v100 .dk span { font-size: 8.5px; letter-spacing: .08em; white-space: nowrap; }
#dock.v100 .dk.on .ico { transform: translateY(-2px) scale(1.06); }
#dock.v100 .dk-orb { margin: 0 2px; }
@media (max-width: 370px) { #dock.v100 .dk span { font-size: 7.5px; letter-spacing: .04em; } #dock.v100 .dk-orb .orb { width: 58px; height: 58px; } }
.cmd-fab, .nova-fab, #cmd-root { display: none !important; }
/* top bar: level · NOVA · gear */
.top-right { gap: 6px; }
.tb-nova { color: #c9bcff; border-color: rgba(169, 139, 255, .45); background: radial-gradient(circle at 50% 40%, rgba(169, 139, 255, .22), rgba(169, 139, 255, .04)); }
.rank-chip .xpbar { display: none; }
@media (max-width: 380px) { .rank-chip { padding: 0 8px 0 4px; gap: 4px; } .rank-chip .lv { font-size: 11px; } }
/* gear menu */
.gear-dim { position: fixed; inset: 0; z-index: 90; }
.gear-menu { position: fixed; z-index: 91; right: 10px; top: calc(var(--st) + var(--top-h) + 4px); min-width: 200px; padding: 6px; border-radius: 18px; background: var(--panel2); border: 1px solid var(--line2); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); animation: gear-in .16s ease-out; }
.gear-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; background: none; color: var(--ink); font: 600 15px/1.2 var(--f-body); border-radius: 12px; cursor: pointer; text-align: left; }
.gear-menu button:active, .gear-menu button:hover { background: rgba(255, 255, 255, .06); }
@keyframes gear-in { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
/* sub pages: back arrow + name; DIARY switch */
.sub-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.sub-head b { font-size: 17px; letter-spacing: .12em; }
.sub-seg { display: flex; width: 100%; margin: 0 0 12px; }
.sub-seg button { flex: 1; font-size: 11px; padding: 9px 2px; }
.home-head .home-diary { flex: none; }
/* ---------------------------------------------------------------- HOME glance widgets */
.wg > .gl { height: 100%; }
.gl { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; border-radius: 24px; background: var(--gl-card); border: 1px solid var(--line); min-height: 132px; cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.gl::before { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: var(--wc); opacity: .07; filter: blur(8px); pointer-events: none; }
.gl:active { transform: scale(.985); }
.wg.bg-solid .gl { background: var(--panel2); }
.wg.bg-clear .gl { background: transparent; border-color: transparent; }
.wg.bg-clear .gl::before { display: none; }
.gl-l { font: 600 13px/1.2 var(--f-body); color: var(--sub); letter-spacing: .01em; }
.wg.nt .gl-l { display: none; }
.gl-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.gl-txt { flex: 1; min-width: 0; }
.gl-n { font: 700 40px/1.02 var(--f-body); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gl-n small { font: 500 15px/1 var(--f-body); color: var(--sub); margin-left: 4px; letter-spacing: 0; }
.gl-word { font: 700 30px/1.05 var(--f-disp); letter-spacing: .04em; color: var(--wc); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-word.sm { font-size: 22px; color: var(--ink); }
.gl-s { font: 700 15px/1.2 var(--f-body); margin-top: 3px; }
.gl-x { font: 500 13px/1.3 var(--f-body); color: var(--sub); margin-top: 3px; }
.gl-q { font: 500 15px/1.4 var(--f-body); color: var(--ink); margin: 2px 0 0; }
.gl-vis { flex: none; color: var(--ink); }
.gl-ring { width: 96px; height: 96px; display: block; }
.gl-arc { width: 108px; height: 62px; display: block; }
.gl-bar { height: 10px; border-radius: 9px; background: var(--gl-track); overflow: hidden; margin-top: 6px; }
.gl-bar i { display: block; height: 100%; border-radius: 9px; transition: width .5s ease; }
.gl-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.gl-b { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--ink); font: 600 13px/1 var(--f-body); cursor: pointer; }
.gl-b:active { background: rgba(255, 255, 255, .1); }
.gl-days { display: flex; gap: 6px; margin-top: 8px; }
.gl-days > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.gl-days b { display: block; width: 100%; height: 70px; border-radius: 9px; background: var(--gl-track); position: relative; overflow: hidden; }
.gl-days b i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 9px; opacity: .85; }
.gl-days > div.on b i { opacity: 1; }
.gl-days span { font: 500 11px/1 var(--f-body); color: var(--dim); }
.gl-days > div.on span { color: var(--ink); font-weight: 700; }
.gl-dots { display: flex; gap: 6px; margin-top: 6px; }
.gl-dots i { width: 22px; height: 22px; border-radius: 50%; background: var(--gl-track); }
.gl-dots i.on { background: var(--wc); }
.gl-dots i.now { box-shadow: 0 0 0 2px var(--ink) inset; }
.gl-steps { display: flex; gap: 4px; margin-top: 6px; }
.gl-steps i { flex: 1; height: 10px; border-radius: 6px; background: var(--gl-track); }
.gl-steps i.done { background: var(--wc); }
.gl-steps i.cur { background: var(--wc); opacity: .45; animation: flick 1.8s infinite; }
.gl-photo .gl-ph { display: block; width: 100%; height: 110px; border-radius: 16px; background: var(--gl-track) center/cover; overflow: hidden; }
.gl-photo .gl-ph img { width: 100%; height: 100%; object-fit: cover; }
.gl-quick { padding: 0; min-height: 0; background: none; border: 0; cursor: default; }
.gl-quick::before { display: none; }
.gl-quick > .panel { margin: 0; }
/* small widgets (two side by side): stack the picture under the text */
.wg.sz-s .gl-main { flex-direction: column; align-items: flex-start; gap: 8px; }
.wg.sz-s .gl-n { font-size: 32px; }
.wg.sz-s .gl-word { font-size: 24px; }
.wg.sz-s .gl-ring { width: 64px; height: 64px; }
.wg.sz-s .gl-arc { width: 90px; height: 52px; }
.wg.sz-s .gl.has-vis .gl-vis { position: absolute; right: 12px; top: 12px; }
.wg.sz-s .gl.has-vis .gl-txt { padding-right: 0; }
.wg.sz-s .gl.has-vis .gl-l { padding-right: 66px; }
.wg.sz-s .gl-dots i { width: 14px; height: 14px; }
.wg.sz-s .gl-days b { height: 52px; }
.wg.sz-s .gl-b { padding: 7px 10px; font-size: 12px; }
.wg.sz-l .gl { min-height: 170px; }
.wg.sz-l .gl-n { font-size: 52px; }
.wg.sz-l .gl-ring { width: 124px; height: 124px; }
.wg.sz-l .gl-days b { height: 96px; }
.wg-grid.compact .gl { min-height: 0; padding: 12px 14px; gap: 4px; }
.wg-grid.compact .gl-n { font-size: 32px; }
.wg-grid.compact .gl-ring { width: 72px; height: 72px; }
/* widget options */
.wo-cols { display: flex; gap: 10px; flex-wrap: wrap; }
.wo-c { width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; background: var(--c); cursor: pointer; }
.wo-c.auto { background: var(--gl-track); color: var(--sub); font: 700 13px/1 var(--f-body); }
.wo-c.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
/* ---------------------------------------------------------------- MY PAGE */
.my-card { border-radius: 24px; padding: 18px; }
.my-prof { display: flex; align-items: center; gap: 14px; }
.my-emb { width: 58px; height: 58px; color: var(--hud); flex: none; }
.my-name { font-size: 24px; letter-spacing: .14em; }
.my-lv { display: flex; align-items: center; gap: 10px; margin-top: 6px; color: var(--sub); font: 600 13px/1 var(--f-body); }
.my-lv .xpbar { flex: 1; height: 6px; border-radius: 6px; background: var(--gl-track); overflow: hidden; }
.my-lv .xpbar i { display: block; height: 100%; background: var(--hud); border-radius: 6px; }
.my-h { display: flex; align-items: center; gap: 8px; width: 100%; font: 700 18px/1.2 var(--f-body); color: var(--ink); background: none; border: 0; padding: 0; text-align: left; }
.my-h.row-b { cursor: pointer; }
.my-h .sub { font-weight: 500; font-size: 14px; margin-left: auto; }
.my-h .ico:last-child { margin-left: auto; color: var(--sub); }
.my-h .sub + .ico { margin-left: 4px; }
.my-sub2 { color: var(--sub); font: 500 13px/1.2 var(--f-body); margin: 4px 0 12px; }
.my-sub { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wr-grid { display: grid; grid-template-columns: 1fr 1fr; }
.wr-c { padding: 10px 12px 12px 0; }
.wr-c:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
.wr-c:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 14px; }
.wr-l { font: 600 13px/1.25 var(--f-body); color: var(--ink); }
.wr-p { font: 500 12px/1.3 var(--f-body); color: var(--sub); margin-top: 3px; }
.wr-p b { color: var(--ink); font-weight: 600; }
.wr-v { font: 700 30px/1.1 var(--f-body); margin-top: 8px; font-variant-numeric: tabular-nums; }
.wr-v small { font: 500 14px/1 var(--f-body); color: var(--sub); margin-left: 3px; }
.wr-d { font: 600 13px/1 var(--f-body); color: var(--sub); margin-top: 4px; }
.wr-d.good { color: var(--ok); }
.wr-d.bad { color: var(--hot); }
.bdg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 10px; margin-top: 14px; }
.bdg { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.bdg-i { position: relative; width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: var(--gl-track); color: var(--dim); transform: rotate(-6deg); }
.bdg-i .ico { width: 34px; height: 34px; transform: rotate(6deg); }
.bdg-i b { position: absolute; bottom: 6px; right: 8px; font-size: 11px; transform: rotate(6deg); opacity: .8; }
.bdg.on .bdg-i { background: linear-gradient(145deg, var(--bc), rgba(0, 0, 0, .35)); color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
.bdg-n { font: 600 14px/1.25 var(--f-body); color: var(--dim); margin-top: 6px; }
.bdg.on .bdg-n { color: var(--ink); }
.bdg-d { font: 500 12px/1 var(--f-body); color: var(--sub); }
.pb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 10px; margin-top: 12px; }
.pb { text-align: center; padding: 12px 6px; border-radius: 18px; background: var(--gl-track); }
.pb-v { font: 700 30px/1.1 var(--f-body); color: var(--warn); font-variant-numeric: tabular-nums; }
.pb-v small { font: 500 13px/1 var(--f-body); color: var(--sub); margin-left: 3px; }
.pb-l { font: 500 13px/1.3 var(--f-body); color: var(--ink); margin-top: 6px; }
.pb-d { font: 500 12px/1 var(--f-body); color: var(--sub); margin-top: 4px; }
/* ---------------------------------------------------------------- SETTINGS (grouped, like a phone's settings) */
.sg-title { font-size: 30px; letter-spacing: .02em; margin: 6px 4px 14px; font-family: var(--f-body); font-weight: 700; }
.sg-me { display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px 20px; margin-bottom: 14px; border-radius: 26px; border: 0; background: var(--gl-card); color: var(--ink); text-align: left; cursor: pointer; }
.sg-me b { display: block; font: 700 20px/1.2 var(--f-body); }
.sg-me small { display: block; color: var(--sub); font: 500 13px/1.3 var(--f-body); margin-top: 3px; }
.sg-emb { width: 54px; height: 54px; color: var(--hud); }
.sg-card { border-radius: 26px; background: var(--gl-card); margin-bottom: 14px; overflow: hidden; }
.sg-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.sg-row + .sg-row { border-top: 1px solid var(--line); }
.sg-row:active { background: rgba(255, 255, 255, .05); }
.sg-row b { display: block; font: 600 16px/1.2 var(--f-body); }
.sg-row small { display: block; font: 500 12.5px/1.3 var(--f-body); color: var(--sub); margin-top: 2px; }
.sg-row > .ico:last-child { color: var(--dim); }
.sg-i { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.sg-search { position: sticky; bottom: calc(var(--dock-h) + var(--sb) + 14px); margin: 10px 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 99px; border: 1px solid var(--line2); background: var(--panel2); color: var(--ink); font: 600 15px/1 var(--f-body); box-shadow: 0 12px 28px rgba(0, 0, 0, .45); cursor: pointer; }
.sg-hit { text-align: left; color: inherit; cursor: pointer; width: 100%; }
.sg-flash { animation: sg-flash 2.2s ease-out; border-radius: 12px; }
@keyframes sg-flash { 0%, 40% { box-shadow: 0 0 0 2px var(--hud), 0 0 22px rgba(var(--hud-rgb), .45); background: rgba(var(--hud-rgb), .08); } 100% { box-shadow: none; } }
/* NOVA chat: Hub button */
.nova-hub-b { position: relative; }
.hub-n { margin-left: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--hot); color: #000; font: 700 10px/16px var(--f-body); }
/* fixes from his screenshots: fast card header no longer breaks, timeline labels fit */
.proto-badge { flex-wrap: wrap; row-gap: 6px; }
.proto-badge .pill { white-space: nowrap; }
.tl-node .n { overflow-wrap: anywhere; }
.tl-node:last-child { flex-basis: 74px; }
.tl-node:last-child .n { text-align: right; padding-right: 0; }
.sg-search { position: static; width: 100%; margin: 0 0 14px; justify-content: flex-start; box-shadow: none; background: var(--gl-card); color: var(--sub); }
.nova-tools { display: flex; align-items: center; gap: 6px; padding: 0 14px 10px; border-bottom: 1px solid var(--line); }
.nova-tools .nova-hub-b { margin-right: auto; border-color: rgba(169, 139, 255, .5); color: #d9d0ff; }

/* =====================================================================
   v101 AUTOPILOT — NOW / BODY this-week / LOG (appended; old pages untouched)
   ===================================================================== */
.now-hero{border-color:rgba(41,227,255,.35)}
.now-k{font:600 10px/1 var(--f-mono);letter-spacing:.28em;color:var(--acc)}
.now-t{margin-top:8px;font:700 24px/1.05 var(--f-disp);letter-spacing:.03em;text-transform:uppercase}
.now-s{margin-top:5px;font:500 12px/1.45 var(--f-mono);color:var(--sub)}
.now-step{margin-top:10px;padding:9px 10px;border-radius:10px;background:rgba(var(--acc-rgb),.10);font:500 12px/1.45 var(--f-body)}
.now-anchor{display:flex;align-items:center;gap:7px;margin-top:10px;font:500 11.5px/1.4 var(--f-mono);color:var(--sub)}
.now-anchor .ico{width:15px;height:15px;color:var(--acc)}
.now-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.now-actions .btn{flex:1 1 auto;min-height:44px}
.now-next{margin-top:14px;border-top:1px solid var(--line);padding-top:10px}
.now-next-k{font:600 9.5px/1 var(--f-mono);letter-spacing:.22em;color:var(--dim);margin-bottom:8px}
.now-pri{display:flex;gap:10px;align-items:flex-start;padding:7px 0}
.now-pri .now-n{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:rgba(var(--acc-rgb),.14);color:var(--acc);font:700 11px/1 var(--f-mono)}
.now-pri b{display:block;font:600 13px/1.3 var(--f-body)}
.now-pri span{font:500 11px/1.4 var(--f-mono);color:var(--sub)}
.now-together{display:flex;align-items:flex-start;gap:7px;margin-top:10px;padding:9px 10px;border-radius:10px;background:rgba(61,255,160,.08);border:1px solid rgba(61,255,160,.25);font:500 12px/1.45 var(--f-body)}
.now-together .ico{width:15px;height:15px;flex:none;color:#3dffa0;margin-top:1px}
.now-quick2{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.now-quick2 .btn{flex:1 1 auto}
.now-composer{display:flex;gap:6px;margin-top:10px}
.now-composer .inp{flex:1;min-width:0}
html[data-theme="light"] .now-step{background:rgba(10,143,176,.10)}
.bw-words{margin:2px 0 0;font:500 13px/1.55 var(--f-body)}
/* LOG screen */
.log-composer{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.log-composer .inp{width:100%;min-height:84px;resize:vertical}
.log-send-row{display:flex;gap:8px;align-items:center}
.log-send-row .btn.pri{flex:1;min-height:44px}
.renpho-big{min-height:56px;font-size:15px}
/* v101: the level badge / rank chip is never shown up front (data stays) */
.rank-chip,.lv,.xpbar{display:none!important}
