/* Cabina — deep dark, green accent, large readable type. No external assets. */
@font-face { font-family: 'Space Grotesk'; src: url('/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #04070a; --bg2: #070d11; --s1: rgba(16, 26, 30, .78); --s2: rgba(24, 38, 42, .82); --s3: #13201f;
  --line: rgba(140, 255, 210, .09); --line2: rgba(140, 255, 210, .18);
  --tx: #e9f5ef; --mut: #8ea79d; --dim: #5d7369;
  --acc: #3cf29b; --acc2: #19c47a; --accbg: rgba(60, 242, 155, .12); --accglow: rgba(60, 242, 155, .35);
  --warn: #ffb547; --bad: #ff5d6c; --info: #7cc7ff;
  --r: 18px; --r2: 12px; --pad: 16px;
  --head: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --nav-h: 64px; --cmd-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); color: var(--tx); font: 17px/1.45 var(--body); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; overflow-x: hidden; }
#sky { position: fixed; inset: 0; z-index: -1; background:
  radial-gradient(1200px 600px at 85% -10%, rgba(60, 242, 155, .07), transparent 60%),
  radial-gradient(900px 700px at -10% 110%, rgba(80, 140, 255, .06), transparent 60%),
  linear-gradient(180deg, #04070a, #05090c 60%, #03060a); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--acc); text-decoration: none; }
h1, h2, h3, .num { font-family: var(--head); letter-spacing: -.01em; }
h1 { font-size: 1.75rem; line-height: 1.15; margin: 0 0 .25rem; font-weight: 650; }
h2 { font-size: 1.15rem; margin: 0 0 .6rem; font-weight: 600; color: var(--tx); }
h3 { font-size: 1rem; margin: 0 0 .4rem; font-weight: 600; }
small, .mut { color: var(--mut); }
.dim { color: var(--dim); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accglow); }

/* ---------- boot / login */
.boot { min-height: 100dvh; display: grid; place-items: center; }
.boot-orb { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #b6ffe0, var(--acc) 35%, #0a3b29 75%); box-shadow: 0 0 40px var(--accglow); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.88); opacity: .7; } }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login form { width: min(380px, 100%); text-align: center; }
.login .boot-orb { margin: 0 auto 28px; width: 84px; height: 84px; animation: none; }
.login h1 { font-size: 2.1rem; }
.login p { margin: 0 0 24px; }

/* ---------- shell */
#app { min-height: 100dvh; }
.shell { padding-bottom: calc(var(--nav-h) + var(--cmd-h) + var(--safe-b) + 18px); }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) var(--pad) 10px; background: linear-gradient(180deg, rgba(4, 7, 10, .92), rgba(4, 7, 10, .65) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top .ttl { flex: 1; min-width: 0; font-family: var(--head); font-weight: 600; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .ttl .crumb { color: var(--mut); font-weight: 500; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand i { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c9ffe9, var(--acc) 45%, #0b4a33); box-shadow: 0 0 14px var(--accglow); }
.iconbtn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--s1); cursor: pointer; }
.iconbtn:active { transform: scale(.96); }
.iconbtn svg { width: 22px; height: 22px; }
.badge { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--acc); color: #02130b; font: 700 11px/18px var(--head); text-align: center; }
main { padding: 4px var(--pad) 0; max-width: 1180px; margin: 0 auto; }
.demo-flag { display: flex; align-items: center; gap: 10px; margin: 0 var(--pad) 8px; padding: 8px 12px; border-radius: 12px; background: repeating-linear-gradient(135deg, rgba(255, 181, 71, .1) 0 10px, rgba(255, 181, 71, .04) 10px 20px); border: 1px solid rgba(255, 181, 71, .35); color: #ffd79a; font-size: .9rem; }
.demo-flag b { font-family: var(--head); letter-spacing: .08em; }
.demo-flag button { margin-left: auto; }

/* bottom: command bar + nav */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0 10px calc(6px + var(--safe-b)); background: linear-gradient(0deg, rgba(4, 7, 10, .97) 55%, rgba(4, 7, 10, .0)); }
.dock-in { max-width: 720px; margin: 0 auto; }
.cmd { display: flex; align-items: center; gap: 8px; height: var(--cmd-h); padding: 0 6px 0 16px; border-radius: 20px; background: var(--s2); border: 1px solid var(--line2); box-shadow: 0 10px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .03); }
.cmd:focus-within { border-color: rgba(60, 242, 155, .55); box-shadow: 0 0 0 4px rgba(60, 242, 155, .1), 0 10px 40px rgba(0, 0, 0, .55); }
.cmd input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 1.02rem; }
.cmd input::placeholder { color: var(--dim); }
.cmd .kbd { color: var(--dim); font: 600 .72rem var(--head); border: 1px solid var(--line2); border-radius: 6px; padding: 2px 6px; }
.cmd .go { width: 46px; height: 46px; border-radius: 15px; border: 0; background: var(--acc); color: #03140c; display: grid; place-items: center; cursor: pointer; }
.cmd .go svg { width: 22px; height: 22px; }
nav.tabs { display: grid; grid-template-columns: repeat(5, 1fr); height: var(--nav-h); margin-top: 6px; }
nav.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--dim); font: 600 .72rem var(--head); letter-spacing: .02em; border-radius: 14px; }
nav.tabs a svg { width: 24px; height: 24px; }
nav.tabs a.on { color: var(--acc); }
nav.tabs a.on svg { filter: drop-shadow(0 0 8px var(--accglow)); }

/* command preview */
.cmdp { margin-bottom: 8px; padding: 14px; border-radius: var(--r); background: rgba(13, 22, 25, .97); border: 1px solid var(--line2); box-shadow: 0 -10px 50px rgba(0, 0, 0, .6); max-height: min(62dvh, 560px); overflow: auto; animation: up .18s ease-out; }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }
.cmdp .head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cmdp .intent { font: 600 .8rem var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--acc); }
.conf { display: inline-flex; gap: 3px; margin-left: auto; align-items: center; color: var(--mut); font-size: .78rem; }
.conf i { width: 6px; height: 14px; border-radius: 2px; background: var(--line2); }
.conf i.on { background: var(--acc); }
.act { padding: 12px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); margin-bottom: 8px; }
.act .sum { font-weight: 600; margin-bottom: 8px; }
.act .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.act .row.one { grid-template-columns: 1fr; }
.alts { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.note { font-size: .88rem; color: var(--mut); margin: 4px 0 8px; }
.answer { font: 600 1.15rem/1.35 var(--head); margin: 4px 0 6px; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- surfaces */
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); margin-bottom: 12px; position: relative; }
.card.glow { border-color: rgba(60, 242, 155, .25); box-shadow: inset 0 0 0 1px rgba(60, 242, 155, .05), 0 0 60px -30px var(--accglow); }
.card h2 { display: flex; align-items: center; gap: 8px; }
.card h2 .more { margin-left: auto; font: 500 .85rem var(--body); color: var(--mut); }
.grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: block; color: inherit; }
.kpi .l { font-size: .8rem; color: var(--mut); display: flex; align-items: center; gap: 6px; }
.kpi .v { font: 650 1.45rem/1.15 var(--head); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .s { font-size: .8rem; color: var(--mut); margin-top: 2px; }
.kpi .bar { margin-top: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--acc2), var(--acc)); box-shadow: 0 0 12px var(--accglow); }
.bar.warn > i { background: linear-gradient(90deg, #d98b1f, var(--warn)); box-shadow: none; }
.bar.bad > i { background: linear-gradient(90deg, #c23345, var(--bad)); box-shadow: none; }
.bar.big { height: 14px; }
.pos { color: var(--acc); } .neg { color: #ff8b95; } .warnc { color: var(--warn); }

/* buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line2); background: var(--s2); cursor: pointer; font-weight: 600; white-space: nowrap; }
.btn:active, .chip:active, .qa:active { transform: scale(.97); }
.btn.pri { background: var(--acc); border-color: var(--acc); color: #03140c; }
.btn.ghost { background: transparent; }
.btn.danger { color: #ffb0b7; border-color: rgba(255, 93, 108, .35); }
.btn.wide { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 12px; font-size: .9rem; border-radius: 11px; }
.btn svg { width: 20px; height: 20px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line2); font-size: .88rem; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--accbg); border-color: rgba(60, 242, 155, .5); color: var(--acc); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font: 600 .72rem/1.7 var(--head); letter-spacing: .03em; background: rgba(255, 255, 255, .06); color: var(--mut); text-transform: lowercase; }
.tag.acc { background: var(--accbg); color: var(--acc); } .tag.warn { background: rgba(255, 181, 71, .14); color: var(--warn); } .tag.bad { background: rgba(255, 93, 108, .14); color: #ff8b95; } .tag.demo { background: rgba(255, 181, 71, .12); color: #ffcf85; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; }
.qas { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 calc(-1 * var(--pad)) 12px; padding-left: var(--pad); padding-right: var(--pad); scrollbar-width: none; }
.qas::-webkit-scrollbar { display: none; }
.qa { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 15px; background: var(--s1); border: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.qa svg { width: 20px; height: 20px; color: var(--acc); }

/* items */
.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; gap: 10px; align-items: center; padding: 10px 10px 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.item .bd { flex: 1; min-width: 0; cursor: pointer; }
.item .t { font-weight: 600; overflow-wrap: anywhere; }
.item .m { font-size: .84rem; color: var(--mut); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 2px; }
.item .amt { font: 650 1rem var(--head); white-space: nowrap; }
.item .acts { display: flex; gap: 6px; flex: 0 0 auto; }
.item .acts .btn { min-height: 40px; padding: 0 12px; }
.item.done { opacity: .55; } .item.done .t { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .3); }
.item.late { border-color: rgba(255, 93, 108, .35); background: rgba(255, 93, 108, .05); }
.empty { text-align: center; padding: 28px 16px; color: var(--mut); }
.empty .orb { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; border: 1px dashed var(--line2); display: grid; place-items: center; }
.empty .orb i { width: 14px; height: 14px; border-radius: 50%; background: var(--dim); box-shadow: 0 0 18px rgba(140, 255, 210, .2); }
.empty b { display: block; color: var(--tx); font-family: var(--head); font-size: 1.05rem; margin-bottom: 4px; }
.sect { display: flex; align-items: baseline; gap: 10px; margin: 18px 2px 8px; }
.sect h2 { margin: 0; }
.sect .more { margin-left: auto; color: var(--mut); font-size: .88rem; }
.tabs2 { display: flex; gap: 6px; overflow-x: auto; margin: 6px 0 12px; scrollbar-width: none; }
.dayh { font: 600 .8rem var(--head); text-transform: uppercase; letter-spacing: .09em; color: var(--mut); margin: 16px 2px 8px; display: flex; gap: 8px; align-items: center; }
.dayh.today { color: var(--acc); } .dayh.late { color: #ff8b95; }

/* area header */
.ahead { display: flex; gap: 14px; align-items: center; margin: 4px 0 14px; }
.planet { width: 62px; height: 62px; border-radius: 50%; flex: 0 0 auto; position: relative; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .85), var(--pc) 30%, color-mix(in srgb, var(--pc) 30%, #000) 78%); box-shadow: 0 0 30px -4px var(--pc); }
.planet.sm { width: 34px; height: 34px; }
.planet.empty { filter: grayscale(.85) brightness(.6); box-shadow: none; }
.planet svg { position: absolute; inset: 0; margin: auto; width: 46%; height: 46%; color: rgba(0, 0, 0, .55); }
.ahead .k { font: 650 1.3rem var(--head); }
.health { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--mut); margin-top: 4px; }
.health .bar { width: 120px; }
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .areas { grid-template-columns: repeat(4, 1fr); } }
.atile { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line); color: inherit; min-width: 0; }
.atile .n { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atile .k { font-size: .8rem; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atile > div { min-width: 0; }

/* oracle */
.oracle-hero { padding: 18px; border-radius: 22px; margin-bottom: 14px; background: radial-gradient(500px 220px at 100% 0%, rgba(60, 242, 155, .13), transparent 70%), var(--s1); border: 1px solid rgba(60, 242, 155, .22); }
.oracle-hero .eyebrow { font: 600 .75rem var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--acc); }
.three { counter-reset: n; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.three .st { counter-increment: n; display: grid; grid-template-columns: 36px 1fr; gap: 10px; }
.three .st::before { content: counter(n); width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font: 700 1.05rem var(--head); color: #03140c; background: var(--acc); }
.st .t { font-weight: 650; font-family: var(--head); font-size: 1.05rem; line-height: 1.3; }
.st .d { color: var(--mut); font-size: .92rem; margin: 2px 0 6px; }
.fonti { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.fonte { font-size: .76rem; padding: 2px 8px; border-radius: 8px; background: rgba(124, 199, 255, .08); color: #a9d8ff; border: 1px solid rgba(124, 199, 255, .15); }
.fonte b { font-weight: 600; color: #d8eeff; }
.stmt { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); margin-bottom: 8px; }
.stmt .t { font-weight: 600; }
.stmt .d { color: var(--mut); font-size: .9rem; }

/* notifications */
.notif { display: flex; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); margin-bottom: 8px; }
.notif.unread { border-color: rgba(60, 242, 155, .3); background: rgba(60, 242, 155, .04); }
.notif .lv { width: 4px; border-radius: 4px; background: var(--info); flex: 0 0 auto; }
.notif .lv.medio { background: var(--warn); } .notif .lv.alto { background: var(--bad); }
.notif .bd { flex: 1; min-width: 0; } .notif .t { font-weight: 600; } .notif .b { font-size: .88rem; color: var(--mut); }

/* forms */
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: .82rem; color: var(--mut); margin-bottom: 5px; }
.in, select.in, textarea.in { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 13px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .3); outline: none; font-size: 1rem; }
textarea.in { min-height: 90px; resize: vertical; }
.in:focus { border-color: rgba(60, 242, 155, .6); box-shadow: 0 0 0 3px rgba(60, 242, 155, .1); }
.in.sm { min-height: 40px; padding: 6px 10px; font-size: .95rem; border-radius: 11px; }
select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input[type=date].in, input[type=time].in { color-scheme: dark; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.switch { position: relative; width: 52px; height: 30px; flex: 0 0 auto; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 30px; background: rgba(255, 255, 255, .1); transition: background .2s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #cfe3da; transition: transform .2s; }
.switch input:checked + i { background: var(--acc2); }
.switch input:checked + i::after { transform: translateX(22px); background: #fff; }
.setrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.setrow:first-of-type { border-top: 0; }
.setrow .bd { flex: 1; min-width: 0; }
.steps .stp { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.steps .stp input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--acc); }

/* sheet (bottom modal) */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow: auto; margin: 0 auto; width: min(640px, 100%); padding: 10px var(--pad) calc(18px + var(--safe-b)); background: #0b1417; border: 1px solid var(--line2); border-bottom: 0; border-radius: 24px 24px 0 0; animation: sheet .22s cubic-bezier(.2, .9, .3, 1); }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
.sheet .grab { width: 44px; height: 5px; border-radius: 5px; background: var(--line2); margin: 2px auto 12px; }
.sheet .sh { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sheet .sh h2 { margin: 0; flex: 1; }
.menu .mi { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; font-weight: 600; }
.menu .mi:hover, .menu .mi:active { background: var(--s2); }
.menu .mi svg { width: 22px; height: 22px; color: var(--mut); }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--nav-h) + var(--cmd-h) + var(--safe-b) + 24px); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 14px; background: #eafff5; color: #03140c; font-weight: 600; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); max-width: calc(100% - 24px); animation: up .2s; }
.toast.err { background: #ffe3e6; color: #3a0710; }
.toast button { border: 0; background: rgba(0, 0, 0, .08); border-radius: 9px; padding: 6px 10px; font-weight: 700; cursor: pointer; }

/* onboarding */
.ob { max-width: 560px; margin: 0 auto; padding: calc(20px + var(--safe-t)) var(--pad) 40px; min-height: 100dvh; display: flex; flex-direction: column; }
.ob .prog { display: flex; gap: 5px; margin-bottom: 22px; }
.ob .prog i { flex: 1; height: 4px; border-radius: 4px; background: var(--line2); }
.ob .prog i.on { background: var(--acc); box-shadow: 0 0 10px var(--accglow); }
.ob .hero { text-align: center; padding: 30px 0 10px; }
.ob .hero .planet { width: 110px; height: 110px; margin: 0 auto 22px; }
.ob .foot { margin-top: auto; padding-top: 20px; display: flex; gap: 10px; }
.ob .foot .btn { flex: 1; }
.lines .ln { display: grid; grid-template-columns: 1fr 110px; gap: 8px; margin-bottom: 8px; }

/* universe */
.uni { position: fixed; inset: 0; z-index: 1; background: #020406; }
.uni canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.uni .labels { position: absolute; inset: 0; pointer-events: none; }
.uni .lbl { position: absolute; left: 0; top: 0; transform: translate(-50%, 14px); text-align: center; white-space: nowrap; pointer-events: auto; cursor: pointer; padding: 4px 8px; border-radius: 10px; will-change: transform; }
.uni .lbl b { display: block; font: 600 .86rem var(--head); text-shadow: 0 1px 8px #000; }
.uni .lbl span { display: block; font-size: .72rem; color: var(--mut); text-shadow: 0 1px 6px #000; }
.uni .lbl.me b { color: var(--acc); }
.uni-top { position: fixed; z-index: 3; top: 0; left: 0; right: 0; padding: calc(10px + var(--safe-t)) var(--pad) 0; display: flex; gap: 10px; align-items: center; pointer-events: none; }
.uni-top > * { pointer-events: auto; }
.uni-top .ttl { flex: 1; }
.uni-hud { position: fixed; z-index: 3; left: var(--pad); right: var(--pad); top: calc(64px + var(--safe-t)); pointer-events: none; max-width: 460px; }
.uni-hud .pill { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(5, 10, 12, .72); border: 1px solid var(--line); font-size: .85rem; margin: 0 6px 6px 0; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.uni-hud .pill b { font-family: var(--head); }
.uni-legend { position: fixed; z-index: 3; right: var(--pad); bottom: calc(var(--nav-h) + var(--cmd-h) + var(--safe-b) + 22px); font-size: .74rem; color: var(--mut); text-align: right; pointer-events: none; line-height: 1.6; }
.uni-fallback { padding: 40px var(--pad); text-align: center; }
.fps { position: fixed; z-index: 4; left: 8px; bottom: calc(var(--nav-h) + var(--cmd-h) + var(--safe-b) + 22px); font: 600 .7rem var(--head); color: var(--dim); pointer-events: none; }

/* misc */
.spark { width: 100%; height: 46px; display: block; }
.week { display: flex; gap: 6px; }
.week i { flex: 1; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .05); display: grid; place-items: center; font: 600 .72rem var(--head); color: var(--dim); font-style: normal; }
.week i.on { background: var(--accbg); color: var(--acc); border: 1px solid rgba(60, 242, 155, .35); }
.week i.today { outline: 1px dashed var(--line2); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .h { font: 600 .68rem var(--head); color: var(--dim); text-align: center; text-transform: uppercase; }
.cal .c { min-height: 54px; border-radius: 9px; background: rgba(255, 255, 255, .025); padding: 4px; font-size: .7rem; color: var(--dim); overflow: hidden; }
.cal .c.today { outline: 1px solid rgba(60, 242, 155, .5); color: var(--acc); }
.cal .c.out { opacity: .35; }
.cal .c .p { display: block; margin-top: 2px; padding: 1px 4px; border-radius: 5px; background: rgba(255, 111, 181, .15); color: #ffc2e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .66rem; }
.cal .c .p.pubblicato { background: rgba(60, 242, 155, .14); color: var(--acc); }
.pipe { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.pipe div { text-align: center; padding: 8px 2px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.pipe b { display: block; font: 650 1.2rem var(--head); }
.pipe span { font-size: .66rem; color: var(--mut); }
.goal5 { display: flex; gap: 6px; margin: 8px 0; }
.goal5 i { flex: 1; height: 34px; border-radius: 10px; border: 1px dashed var(--line2); display: grid; place-items: center; font-style: normal; color: var(--dim); font: 600 .8rem var(--head); }
.goal5 i.on { border: 1px solid rgba(60, 242, 155, .6); background: var(--accbg); color: var(--acc); box-shadow: 0 0 18px -6px var(--accglow); }
.breakdown { font-size: .9rem; }
.breakdown div { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.breakdown div:last-child { border: 0; font-weight: 700; }
.ring { width: 120px; height: 120px; flex: 0 0 auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.t td, table.t th { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.scrollx { overflow-x: auto; }
.hide { display: none !important; }
@media (min-width: 900px) { main { padding-top: 8px; } .dock { padding-bottom: 14px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
/* icons inline in text never grow beyond the text */
p svg, .note svg, .mut svg, .tag svg, .d svg, summary svg { width: 1.05em; height: 1.05em; vertical-align: -0.18em; display: inline-block; }
