/* Weblogging Master — monocromo. Tipografia del brand (Plus Jakarta Sans) + mono per numeri e codici. */
@font-face { font-family: 'Jakarta'; src: url('/fonts/jakarta.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/jakarta-ext.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Mono'; src: url('/fonts/mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
	--bg: #ffffff;
	--ink: #0a0a0a;
	--ink-2: #4d4d4d;
	--ink-3: #8c8c8c;
	--line: #ebebeb;
	--line-2: #d4d4d4;
	--fill: #f5f5f5;
	--inv: #0a0a0a;
	--inv-ink: #ffffff;
	--shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 40px -12px rgba(0,0,0,.18);
	--sans: 'Jakarta', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--mono: 'Mono', ui-monospace, 'SF Mono', Menlo, monospace;
	--r: 14px;
	--pad: clamp(16px, 3.2vw, 40px);
	--rail: 232px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #000000; --ink: #f4f4f4; --ink-2: #ababab; --ink-3: #6e6e6e; --line: #1c1c1c; --line-2: #2e2e2e; --fill: #0d0d0d;
		--inv: #f4f4f4; --inv-ink: #000000; --shadow: 0 1px 0 rgba(255,255,255,.04), 0 18px 50px -12px rgba(0,0,0,.9); color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #000000; --ink: #f4f4f4; --ink-2: #ababab; --ink-3: #6e6e6e; --line: #1c1c1c; --line-2: #2e2e2e; --fill: #0d0d0d;
	--inv: #f4f4f4; --inv-ink: #000000; --shadow: 0 1px 0 rgba(255,255,255,.04), 0 18px 50px -12px rgba(0,0,0,.9); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 450 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: 'ss01'; min-height: 100dvh; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
.mono { font-family: var(--mono); font-feature-settings: 'zero'; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

/* Marchio */
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand .wm { font-weight: 700; font-size: 19px; letter-spacing: -0.04em; color: var(--ink-3); }
.brand .wm b { color: var(--ink); font-weight: 800; }
.brand .tag { font: 600 10.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--ink); padding: 4px 6px 3px; border-radius: 4px; }

/* Etichette */
.eyebrow { font: 600 10.5px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--mono); letter-spacing: .04em; padding: 5px 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill.solid { background: var(--inv); color: var(--inv-ink); border-color: var(--inv); }
.pill.dash { border-style: dashed; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.live .dot { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.busy-dots::after { content: '···'; display: inline-block; width: 1.4em; overflow: hidden; vertical-align: bottom; animation: typing 1.2s steps(4) infinite; }
@keyframes typing { from { width: 0; } to { width: 1.4em; } }

/* Struttura */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100dvh; }
.rail { position: sticky; top: 0; height: 100dvh; border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 26px; }
.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail nav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 550; }
.rail nav a svg { width: 18px; height: 18px; flex: none; }
.rail nav a:hover { background: var(--fill); color: var(--ink); }
.rail nav a.on { background: var(--inv); color: var(--inv-ink); }
.rail nav a .count { margin-left: auto; font: 600 11px/1 var(--mono); opacity: .7; }
.rail .foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.main { min-width: 0; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: max(14px, env(safe-area-inset-top)) max(var(--pad), env(safe-area-inset-right)) 14px max(var(--pad), env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top .title { font-weight: 750; letter-spacing: -0.02em; font-size: 17px; }
.top .sp { flex: 1; }
.iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.iconbtn:hover { border-color: var(--ink); }
.iconbtn svg { width: 17px; height: 17px; }
.kbd { font: 600 11px/1 var(--mono); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 4px 6px; color: var(--ink-2); }
.search { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink-3); min-width: 220px; }
.search:hover { border-color: var(--ink); color: var(--ink-2); }
.search svg { width: 15px; height: 15px; }
.search > span:not(.kbd) { flex: 1; text-align: left; white-space: nowrap; }
.top .brand { display: none; }
.content { padding: 28px var(--pad) 120px; display: flex; flex-direction: column; gap: 56px; max-width: 1480px; }
section > header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
section > header h2 { margin: 6px 0 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.05; }
section { scroll-margin-top: 80px; }

/* Ora: limiti del piano */
.now { display: grid; grid-template-columns: 1.15fr 1.15fr 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.now > div { padding: 24px 26px 22px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.now > div + div { border-left: 1px solid var(--line); }
.gauge .big { display: flex; align-items: baseline; gap: 10px; }
.gauge .big b { font: 700 clamp(52px, 7vw, 88px)/.86 var(--sans); letter-spacing: -0.065em; font-variant-numeric: tabular-nums; }
.gauge .big b sup { font-size: .38em; letter-spacing: -0.02em; vertical-align: top; position: relative; top: .25em; margin-left: 2px; }
.gauge .big span { color: var(--ink-2); font-weight: 600; }
.ruler { --p: 0; position: relative; height: 22px; }
.ruler::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 2%); mask: linear-gradient(transparent 0 58%, #000 58%); -webkit-mask: linear-gradient(transparent 0 58%, #000 58%); }
.ruler::after { content: ''; position: absolute; left: 0; bottom: 0; height: 9px; width: calc(var(--p) * 1%); min-width: 2px; background: var(--ink); border-radius: 1px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.gauge .meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.gauge .meta .mono { color: var(--ink); }
.tokens .big b { font: 700 clamp(40px, 5vw, 60px)/.9 var(--sans); letter-spacing: -0.055em; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: 3px; height: 54px; }
.bars i { --h: 0; display: block; height: max(2px, calc(var(--h) * 1%)); background: var(--ink); border-radius: 2px 2px 0 0; opacity: .9; transition: height .6s; }
.bars i.dim { background: var(--line-2); }
.bars i:hover { opacity: 1; outline: 1px solid var(--ink); }
.split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.split b { display: block; font: 600 14px/1.3 var(--mono); color: var(--ink); }
.stale { font-size: 12px; color: var(--ink-3); }

/* Riquadri sistema */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); margin-top: 14px; }
.strip > div { padding: 14px 18px; border-right: 1px solid var(--line); }
.strip > div:last-child { border-right: 0; }
.strip b { display: block; font: 650 20px/1.15 var(--mono); letter-spacing: -0.02em; }

/* Chat */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 16px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; text-align: left; transition: border-color .2s, transform .2s, box-shadow .2s; min-width: 0; }
@media (hover: hover) { .card:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-1px); } }
.card .stretch { position: absolute; inset: 0; border: 0; background: none; border-radius: inherit; z-index: 1; }
.card .applink { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border: 1px solid var(--ink); border-radius: 99px; text-decoration: none; font: 600 11.5px/1 var(--mono); color: var(--ink); }
.card .applink:hover { background: var(--inv); color: var(--inv-ink); }
.card .applink svg { width: 13px; height: 13px; }
.card .foot .sp { flex: 1; }
.btn.wide { width: 100%; height: 48px; text-decoration: none; }
html.lock, html.lock body { overflow: hidden; }
button.card { width: 100%; }
.card .row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.card .row .sp { flex: 1; }
.card h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.card .tmux { font: 600 12px/1 var(--mono); color: var(--ink); }
.card .row svg, .ico-s { width: 14px; height: 14px; }
.pill svg { width: 13px; height: 13px; }
.card blockquote { margin: 0; padding-left: 10px; border-left: 2px solid var(--ink); font-size: 13.5px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .reply { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { display: flex; gap: 12px; align-items: center; font: 500 11.5px/1 var(--mono); color: var(--ink-3); margin-top: auto; white-space: nowrap; }
.card.active { border-color: var(--ink); }
.card.active::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--ink); animation: breathe 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 0%, 100% { opacity: 0; transform: scale(1); } 50% { opacity: .5; transform: scale(1.012); } }
.mini { --p: 0; width: 44px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; display: inline-block; }
.mini::after { content: ''; display: block; height: 100%; width: calc(var(--p) * 1%); background: var(--ink); }

/* Progetti */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: var(--bg); padding: 6px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--inv); color: var(--inv-ink); border-color: var(--inv); }
.plist { border-top: 1px solid var(--ink); }
.prow { display: grid; grid-template-columns: minmax(0, 2.2fr) 120px minmax(0, 1.4fr) 110px 24px; gap: 18px; align-items: center; padding: 15px 4px; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.prow:hover { background: var(--fill); }
.prow .name { font-weight: 700; letter-spacing: -0.015em; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.prow .name small { font: 500 11.5px/1.3 var(--mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog { --p: 0; display: flex; flex-direction: column; gap: 6px; font: 600 11.5px/1 var(--mono); color: var(--ink-2); }
.prog i { display: block; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.prog i::after { content: ''; display: block; height: 100%; width: calc(var(--p) * 1%); background: var(--ink); }
.prow .flags { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.prow .when { font: 500 12px/1.2 var(--mono); color: var(--ink-2); text-align: right; }
.prow .go svg { width: 16px; height: 16px; color: var(--ink-3); }

/* Agenda */
.agenda { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.day { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.day > header { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--line); margin: 0; }
.day > header b { font-size: 15px; letter-spacing: -0.01em; }
.day.today { border-color: var(--ink); }
.day.today > header { background: var(--inv); color: var(--inv-ink); border-color: var(--inv); }
.day.today > header .eyebrow { color: inherit; opacity: .7; }
.ev { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; }
.ev:last-child { border-bottom: 0; }
.ev .h { font: 600 12px/1.5 var(--mono); }
.ev .p { font: 600 10.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ev .t { font-weight: 650; font-size: 13.5px; line-height: 1.35; }
.ev.done .t { text-decoration: line-through; color: var(--ink-3); }

/* Automazioni */
.tl { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.trow { display: grid; grid-template-columns: 28px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 90px; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.trow:last-child { border-bottom: 0; }
.trow:hover { background: var(--fill); }
.trow .n { font-weight: 650; letter-spacing: -0.01em; min-width: 0; }
.trow .n small { display: block; font: 500 11.5px/1.35 var(--mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .c { font: 500 12px/1.3 var(--mono); color: var(--ink-2); }
.glyph { width: 18px; height: 18px; display: inline-grid; place-items: center; }
.glyph svg { width: 18px; height: 18px; }
.glyph.running svg { animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pannello laterale */
.scrim { position: fixed; inset: 0; background: color-mix(in srgb, var(--ink) 18%, transparent); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); z-index: 40; opacity: 0; animation: fade .2s forwards; }
@keyframes fade { to { opacity: 1; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: var(--bg); border-left: 1px solid var(--ink); z-index: 41; display: flex; flex-direction: column; transform: translateX(24px); opacity: 0; animation: slide .28s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes slide { to { transform: none; opacity: 1; } }
.drawer > header { display: flex; align-items: start; gap: 12px; padding: max(22px, calc(env(safe-area-inset-top) + 10px)) 24px 18px; border-bottom: 1px solid var(--line); }
.drawer > header h2 { margin: 6px 0 0; font-size: 24px; letter-spacing: -0.035em; line-height: 1.1; }
.drawer > header .sp { flex: 1; min-width: 0; }
.drawer .body { overflow: auto; padding: 22px 24px calc(60px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 26px; overscroll-behavior: contain; }
.drawer h4 { margin: 0 0 10px; }
.drawer p { margin: 0; }
.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; gap: 10px; }
.list li:last-child { border-bottom: 0; }
.list li .k { flex: none; font: 600 11.5px/1.6 var(--mono); color: var(--ink-3); min-width: 54px; }
.timeline { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 18px; }
.timeline::before { content: ''; position: absolute; left: 3px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.timeline > div { position: relative; font-size: 13.5px; }
.timeline > div::before { content: ''; position: absolute; left: -18px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink); }
.timeline > div:first-child::before { background: var(--ink); }
.timeline .d { font: 600 11.5px/1.4 var(--mono); color: var(--ink-3); display: block; }
.msgs { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 92%; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.alfredo { align-self: flex-end; background: var(--inv); color: var(--inv-ink); border-bottom-right-radius: 4px; }
.msg.claude { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg strong { font-weight: 750; }
.msg code { font: 500 12px/1.4 var(--mono); background: color-mix(in srgb, currentColor 10%, transparent); padding: 1px 5px; border-radius: 5px; }
.msg .t { display: block; font: 500 10.5px/1 var(--mono); opacity: .6; margin-bottom: 6px; }
.copy { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ink); border-radius: 12px; padding: 10px 12px; font: 600 13px/1 var(--mono); }
.copy code { flex: 1; overflow: auto; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--ink); background: var(--bg); font-weight: 650; letter-spacing: -0.01em; }
.btn:hover { background: var(--fill); }
.btn.primary { background: var(--inv); color: var(--inv-ink); }
.btn.primary:hover { opacity: .88; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn svg { width: 17px; height: 17px; }
.btn[disabled] { opacity: .45; cursor: default; }
.logline { font: 500 12px/1.55 var(--mono); color: var(--ink-2); background: var(--fill); border-radius: 10px; padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Ricerca rapida */
.palette { position: fixed; left: 50%; top: 12vh; width: min(640px, calc(100vw - 24px)); transform: translateX(-50%); background: var(--bg); border: 1px solid var(--ink); border-radius: 18px; z-index: 50; box-shadow: var(--shadow); overflow: hidden; animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) scale(.98); } }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 18px 20px; font-size: 17px; outline: none; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow: auto; }
.palette li button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: none; border-radius: 10px; text-align: left; }
.palette li button small { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--ink-3); }
.palette li button.sel, .palette li button:hover { background: var(--inv); color: var(--inv-ink); }
.palette li button.sel small, .palette li button:hover small { color: inherit; opacity: .7; }

/* Accesso */
.gate { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.gate .art { background: var(--inv); color: var(--inv-ink); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.gate .art .brand .wm { color: color-mix(in srgb, var(--inv-ink) 55%, transparent); }
.gate .art .brand .wm b { color: var(--inv-ink); }
.gate .art .brand .tag { color: var(--inv-ink); border-color: var(--inv-ink); }
.gate .art h1 { font-size: clamp(54px, 8vw, 128px); line-height: .84; letter-spacing: -0.07em; margin: 0; font-weight: 750; }
.gate .art .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--inv-ink) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--inv-ink) 7%, transparent) 1px, transparent 1px); background-size: 48px 48px; mask: radial-gradient(circle at 70% 30%, #000, transparent 75%); -webkit-mask: radial-gradient(circle at 70% 30%, #000, transparent 75%); pointer-events: none; }
.gate .art > * { position: relative; }
.gate form { align-self: center; justify-self: center; width: min(400px, calc(100% - 40px)); display: flex; flex-direction: column; gap: 14px; padding: 40px 0; }
.gate form h2 { margin: 0 0 4px; font-size: 30px; letter-spacing: -0.04em; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input { height: 48px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; background: var(--bg); font-size: 16px; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
.gate .btn { height: 50px; font-size: 15px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.or::before, .or::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.err { font-size: 13.5px; color: var(--ink); border-left: 3px solid var(--ink); padding: 6px 10px; background: var(--fill); border-radius: 0 8px 8px 0; }
.note { font-size: 13px; color: var(--ink-2); }

/* Barra in basso (telefono) */
.tabbar { display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--inv); color: var(--inv-ink); padding: 10px 16px; border-radius: 99px; font-weight: 600; font-size: 13.5px; z-index: 60; animation: pop .2s; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 26px; color: var(--ink-2); font-size: 14px; }
.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { background: var(--fill); } 100% { background: transparent; } }

@media (max-width: 1180px) {
	.now { grid-template-columns: 1fr 1fr; }
	.now > .tokens { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line); }
	.prow { grid-template-columns: minmax(0, 2fr) 110px minmax(0, 1.2fr) 90px 20px; }
}
@media (max-width: 860px) {
	:root { --rail: 0px; }
	.shell { grid-template-columns: minmax(0, 1fr); }
	.rail { display: none; }
	.search { min-width: 0; width: 36px; padding: 0; justify-content: center; }
	.search span, .search .kbd { display: none; }
	.content { padding-top: 20px; gap: 44px; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
	.prow { grid-template-columns: minmax(0, 1fr) 84px; gap: 10px 14px; padding: 14px 2px; }
	.prow .flags { grid-column: 1 / -1; order: 3; }
	.prow .when, .prow .go { display: none; }
	.trow { grid-template-columns: 24px minmax(0, 1fr) auto; }
	.trow .c.last { display: none; }
	.trow .c.next { text-align: right; }
	.trow .c.dur { display: none; }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.iconbtn { width: 40px; height: 40px; }
	.search { width: 40px; height: 40px; }
	.chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad); scrollbar-width: none; width: calc(100% + 2 * var(--pad)); }
	.chips::-webkit-scrollbar { display: none; }
	.chip { padding: 9px 14px; flex: none; }
	section > header { flex-direction: column; align-items: flex-start; }
	.drawer > header .row { flex-wrap: wrap; }
	.agenda { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(78%, 340px); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 6px; scroll-padding: 0 var(--pad); scrollbar-width: none; align-items: start; }
	.agenda::-webkit-scrollbar { display: none; }
	.day { scroll-snap-align: start; }
	.drawer { width: 100vw; top: auto; height: 94dvh; border-radius: 22px 22px 0 0; border: 1px solid var(--ink); border-bottom: 0; transform: translateY(40px); }
	.drawer > header { padding-top: 22px; }
	.drawer > header::before { content: ''; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: var(--line-2); }
	.palette { top: max(12px, env(safe-area-inset-top)); }
	.tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line-2); border-radius: 20px; padding: 6px; box-shadow: var(--shadow); }
	.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; border-radius: 14px; text-decoration: none; font: 600 10px/1 var(--sans); color: var(--ink-3); }
	.tabbar a svg { width: 20px; height: 20px; }
	.tabbar a.on { background: var(--inv); color: var(--inv-ink); }
	.gate { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
	.gate .art { padding: 24px 20px 28px; min-height: 36vh; }
	.gate .art h1 { font-size: 64px; }
	.drawer { border-left: 0; }
	.top .title { display: none; }
	.top .brand { display: inline-flex; }
	.top .brand .tag { display: none; }
	.now { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.now > div { padding: 16px 16px 14px; gap: 10px; }
	.now > div + div { border-top: 0; border-left: 1px solid var(--line); }
	.now > .tokens { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
	.gauge .big { flex-direction: column; align-items: flex-start; gap: 4px; }
	.gauge .big b { font-size: 52px; }
	.tokens .big { flex-direction: row; align-items: baseline; }
	.tokens .big b { font-size: 44px; }
	.gauge .meta { flex-direction: column; gap: 2px; font-size: 12px; }
	.strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.strip > div { border-bottom: 1px solid var(--line); padding: 12px 14px; }
	.strip > div:nth-child(3n) { border-right: 0; }
	.strip b { font-size: 17px; }
	section > header h2 { font-size: 26px; }
}
@media (min-width: 601px) and (max-width: 860px) {
	.tabbar { left: 50%; right: auto; width: 560px; transform: translateX(-50%); }
	.strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.strip > div { border-bottom: 0; }
	.strip > div:nth-child(3n) { border-right: 1px solid var(--line); }
	.strip > div:last-child { border-right: 0; }
}
@media (max-width: 600px) {
	.grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.chatcard .foot .ctxw { display: none; }
	.chatcard { padding: 14px 14px 12px; gap: 8px; }
	.chatcard .reply { display: none; }
	.chatcard blockquote { -webkit-line-clamp: 1; }
	.chatcard h3 { font-size: 15px; }
	.content { gap: 40px; }
	.trow { padding: 13px 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
