/* ============ FMike Tools — design system condiviso ============ */
:root {
    --bg: #050806;
    --surface: rgba(255,255,255,.035);
    --surface-2: rgba(255,255,255,.06);
    --surface-3: rgba(255,255,255,.1);
    --line: rgba(255,255,255,.08);
    --line-2: rgba(255,255,255,.16);
    --text: #f4f4f7;
    --text-2: #d5ddd8;
    --muted: #93a39a;
    --dim: #56665c;
    --green: #22e584;
    --lime: #c6ff4a;
    --teal: #14d6b4;
    --danger: #ff5c6c;
    --warn: #ffc24a;
    --ink: #04140a;
    --radius: 22px;
    --display: 'Bricolage Grotesque', system-ui, sans-serif;
    --sans: 'Inter', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.ic { width: 1.2em; height: 1.2em; flex: none; }
.hide { display: none !important; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.ok { color: var(--green) !important; }
.bad { color: var(--danger) !important; }
.warn { color: var(--warn) !important; }
kbd { font-family: var(--mono); font-size: .72rem; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(110px); animation: drift 24s ease-in-out infinite alternate; }
.b1 { width: 600px; height: 600px; background: #0e9f5a; top: -280px; left: 50%; margin-left: -300px; opacity: .32; }
.b2 { width: 460px; height: 460px; background: #0f766e; top: 50%; right: -240px; opacity: .2; animation-delay: -9s; }
@keyframes drift { 50% { transform: translate(60px,40px) scale(1.1); } 100% { transform: translate(-50px,80px) scale(.95); } }
.grid-lines {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 25%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 25%, transparent 70%);
    opacity: .5;
}

/* ---------- Top bar ---------- */
.topbar {
    position: sticky; top: 16px; z-index: 50;
    max-width: 1360px; width: calc(100% - 32px); margin: 16px auto 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 10px 9px 22px;
    background: rgba(8,14,10,.62); border: 1px solid var(--line); border-radius: 999px;
    backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.brand { font-family: var(--display); font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--lime)); box-shadow: 0 0 16px var(--green); }
.brand-sub { color: var(--dim); font-weight: 600; }
.topbar nav { display: flex; gap: 2px; align-items: center; }
.topbar nav a, .topbar nav button { padding: 8px 15px; border-radius: 999px; font-size: .92rem; color: var(--muted); background: none; border: 0; cursor: pointer; transition: color .2s, background .2s; }
.topbar nav a:hover { color: var(--text); background: var(--surface-2); }
.topbar .nav-cta { background: var(--text) !important; color: var(--bg) !important; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.topbar .nav-cta kbd { background: rgba(0,0,0,.08); border-color: rgba(0,0,0,.15); color: #333; }

/* ---------- Page ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.crumbs { margin-top: 44px; font-family: var(--mono); font-size: .75rem; color: var(--dim); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green); }
.crumbs b { color: var(--text-2); font-weight: 400; }
.tool-hero { text-align: center; padding: 40px 0 34px; }
.tool-badge { --accent: var(--green); display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: 0 0 50px -10px var(--accent); }
.tool-badge .ic { width: 30px; height: 30px; }
.tool-hero h1 { font-family: var(--display); font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; margin: 22px auto 16px; max-width: 820px; }
.grad { background: linear-gradient(100deg, var(--green), var(--lime) 45%, var(--teal) 75%, var(--green)); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite; }
@keyframes shine { to { background-position: 220% center; } }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin: 0 auto; }

/* ---------- App card ---------- */
.app {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid var(--line-2); border-radius: 28px; padding: 32px;
    box-shadow: 0 40px 120px -40px rgba(34,229,132,.35), inset 0 1px 0 rgba(255,255,255,.06);
}
.app + .app { margin-top: 18px; }
.app-title { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 16px; }
.app-foot { margin-top: 18px; display: flex; gap: 10px; align-items: center; justify-content: center; font-size: .82rem; color: var(--dim); font-family: var(--mono); }
.app-foot .ic { color: var(--green); }

/* grid helpers */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.span2 { grid-column: span 2; }
.stack > * + * { margin-top: 16px; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.label { font-size: .8rem; font-weight: 500; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.label small { color: var(--dim); font-weight: 400; }
.input, .select, .textarea {
    width: 100%; padding: 13px 16px; border-radius: 14px;
    background: rgba(0,0,0,.3); border: 1px solid var(--line-2); color: var(--text);
    font-size: 1rem; outline: 0; transition: border-color .2s, box-shadow .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(34,229,132,.12); }
.input.is-ok { border-color: rgba(34,229,132,.6); }
.input.is-bad { border-color: rgba(255,92,108,.6); }
.input-big { font-family: var(--display); font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; padding: 14px 18px; }
.input-mono { font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2393a39a' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.select option { background: #0b120d; }
.textarea { resize: vertical; min-height: 220px; line-height: 1.6; }
.input-wrap { position: relative; }
.input-wrap .suffix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--dim); font-family: var(--mono); pointer-events: none; }
input[type=range] { width: 100%; accent-color: var(--green); }
input[type=checkbox], input[type=radio] { accent-color: var(--green); width: 17px; height: 17px; }
input[type=color] { width: 100%; height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0,0,0,.3); padding: 4px; cursor: pointer; }
input[type=date] { color-scheme: dark; }
.check { display: flex; gap: 10px; align-items: center; font-size: .93rem; color: var(--text-2); cursor: pointer; user-select: none; }

/* segmented control */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.3); border: 1px solid var(--line-2); }
.seg button, .seg label { padding: 9px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .2s; white-space: nowrap; }
.seg button:hover, .seg label:hover { color: var(--text); }
.seg button.on, .seg input:checked + span { background: var(--green); color: var(--ink); }
.seg label { padding: 0; }
.seg label input { display: none; }
.seg label span { display: block; padding: 9px 16px; border-radius: 999px; transition: all .2s; }
.seg.full { display: flex; }
.seg.full > * { flex: 1; text-align: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; font-size: .96rem; transition: transform .15s, box-shadow .3s, background .2s, border-color .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--lime), var(--green)); color: var(--ink); box-shadow: 0 10px 40px -12px var(--green); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 16px 50px -10px var(--green); transform: translateY(-1px); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-danger { background: rgba(255,92,108,.12); border: 1px solid rgba(255,92,108,.4); color: #ffb3bb; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; transition: all .2s; }
.icon-btn:hover { color: var(--text); background: var(--surface-3); }

/* ---------- Results ---------- */
.result { border-radius: 20px; padding: 22px 24px; background: rgba(34,229,132,.06); border: 1px solid rgba(34,229,132,.25); }
.result.neutral { background: rgba(0,0,0,.25); border-color: var(--line-2); }
.result.is-bad { background: rgba(255,92,108,.07); border-color: rgba(255,92,108,.35); }
.result-label { font-family: var(--mono); font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.big { font-family: var(--display); font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin-top: 4px; word-break: break-all; }
.big.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; font-size: clamp(1.4rem, 4.4vw, 2.2rem); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { padding: 16px 18px; border-radius: 16px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.kpi b { display: block; font-family: var(--display); font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; }
.kpi span { font-size: .78rem; color: var(--muted); }
.kpi.hl { border-color: rgba(34,229,132,.4); background: rgba(34,229,132,.07); }
.kpi.hl b { color: var(--green); }

.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th, .tbl td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 500; font-size: .8rem; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.total td { font-weight: 700; color: var(--text); border-bottom: 0; border-top: 1px solid var(--line-2); }
.tbl tr.minus td.num { color: #ffb3bb; }
.tbl tr.plus td.num { color: var(--green); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.tbl-wrap .tbl th, .tbl-wrap .tbl td { padding-left: 16px; padding-right: 16px; }

.note { font-size: .86rem; color: var(--muted); padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.note.warn-box { border-color: rgba(255,194,74,.35); background: rgba(255,194,74,.06); color: #ffe2a3; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-family: var(--mono); font-size: .74rem; border: 1px solid var(--line-2); color: var(--muted); }
.pill.ok { border-color: rgba(34,229,132,.4); background: rgba(34,229,132,.08); }
.pill.bad { border-color: rgba(255,92,108,.4); background: rgba(255,92,108,.08); }

/* dropzone */
.drop { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 46px 24px; border-radius: 22px; border: 1.5px dashed var(--line-2); background: rgba(0,0,0,.22); cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--green); background: rgba(34,229,132,.06); }
.drop-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); color: var(--green); }
.drop-ic .ic { width: 30px; height: 30px; }
.drop b { font-family: var(--display); font-size: 1.3rem; letter-spacing: -.02em; }
.drop small { color: var(--muted); }

/* meter */
.meter { height: 14px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid var(--line); overflow: hidden; }
.meter > i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--green), var(--lime)); transition: width .08s linear; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 200; padding: 11px 20px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: .9rem; pointer-events: none; transition: all .25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Content ---------- */
.prose { max-width: 760px; margin: 90px auto 0; color: var(--text-2); font-size: 1.04rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--display); font-size: clamp(1.7rem, 3.5vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--text); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); margin-top: 1.7em; }
.prose a { color: var(--green); text-decoration: underline; text-decoration-color: rgba(34,229,132,.4); text-underline-offset: 3px; }
.prose a:hover { color: var(--lime); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--green); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--lime); }
.prose .tbl-wrap { margin-top: 1.3em; }
.eyebrow { font-family: var(--mono); font-size: .9rem; color: var(--green); font-weight: 400; vertical-align: middle; }

.faq { max-width: 760px; margin: 90px auto 0; }
.faq h2, .related h2 { font-family: var(--display); font-size: clamp(1.7rem, 3.5vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 22px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); margin-bottom: 10px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 1.3rem; color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq-a p + p { margin-top: .7em; }

.related { margin: 90px 0 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rel-card { --accent: var(--green); display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: all .25s; }
.rel-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); transform: translateY(-2px); }
.rel-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.rel-ic .ic { width: 21px; height: 21px; }
.rel-card b { display: block; font-size: .95rem; }
.rel-card small { color: var(--muted); font-size: .8rem; }

/* ---------- Footer ---------- */
.footer { max-width: 1360px; margin: 110px auto 0; padding: 44px 24px 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; font-size: .9rem; }
.footer p { color: var(--muted); margin-top: 12px; max-width: 300px; }
.footer h4 { font-family: var(--mono); font-size: .74rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; margin-bottom: 12px; }
.footer div > a:not(.brand) { display: block; color: var(--muted); padding: 3px 0; }
.footer a:hover { color: var(--green); }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); }
.footer-bottom a { color: var(--muted); }

/* ---------- Search palette ---------- */
.search { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,8,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: flex-start; padding-top: 14vh; }
.search[hidden] { display: none; }
.search-box { width: min(560px, 92vw); border-radius: 20px; overflow: hidden; background: #0b120d; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -20px rgba(34,229,132,.35); animation: pop .2s ease-out; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.search-box input { width: 100%; padding: 20px 22px; background: transparent; border: 0; outline: 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
#searchResults { list-style: none; padding: 8px; max-height: 360px; overflow: auto; }
#searchResults li { padding: 11px 14px; border-radius: 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
#searchResults li span { color: var(--dim); font-family: var(--mono); font-size: .76rem; }
#searchResults li.sel, #searchResults li:hover { background: var(--surface-2); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .hide-sm { display: none !important; }
    .topbar { padding-left: 18px; }
    .page { padding: 0 16px; }
    .app { padding: 22px 18px; border-radius: 22px; }
    .g2, .g3, .g4, .related-grid { grid-template-columns: 1fr; }
    .span2 { grid-column: auto; }
    .tool-hero { padding-top: 28px; }
    .prose, .faq, .related { margin-top: 70px; }
    .footer { grid-template-columns: 1fr; }
    .seg { display: flex; width: 100%; border-radius: 18px; }
    .seg > button { flex: 1 1 auto; white-space: normal; padding: 9px 10px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Orologi (timer, cronometro, pomodoro) ---------- */
.clock-wrap { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.clock-wrap svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: rgba(255,255,255,.07); }
.ring .prog { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset .25s linear; filter: drop-shadow(0 0 10px rgba(34,229,132,.5)); }
.clock { font-family: var(--mono); font-weight: 500; font-size: clamp(2.8rem, 11vw, 5rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; text-align: center; }
.clock small { font-size: .45em; color: var(--muted); }
.clock-sub { font-family: var(--mono); font-size: .8rem; color: var(--muted); text-align: center; margin-top: 10px; text-transform: uppercase; letter-spacing: .1em; }
.clock-flat { font-family: var(--mono); font-weight: 500; font-size: clamp(3rem, 13vw, 6.5rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-align: center; line-height: 1.05; }
.time-inputs { display: flex; gap: 8px; justify-content: center; align-items: center; }
.time-inputs input { width: 84px; text-align: center; font-family: var(--mono); font-size: 1.6rem; padding: 10px 6px; }
.time-inputs span { color: var(--dim); font-family: var(--mono); font-size: 1.5rem; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-size: .86rem; font-family: var(--mono); cursor: pointer; transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--green); }
.chip.on { background: var(--green); color: var(--ink); border-color: transparent; }
.ctrls { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.ctrls .btn { min-width: 130px; }
.app.ringing { animation: ring 1s ease-in-out infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 6px rgba(198,255,74,.35), 0 40px 120px -20px rgba(198,255,74,.6); border-color: var(--lime); } }
.app:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; background: var(--bg); }
.app:fullscreen .clock-wrap { width: min(80vh, 90vw); }
.app:fullscreen .clock { font-size: min(14vw, 12vh); }
