/* Widget visuals. 1em = 10px at the "m" size; everything scales with the dock size. */

.ic { width: 1.6em; height: 1.6em; flex: none; }
.ic.xxs { width: 1.1em; height: 1.1em; }
.ic.xs { width: 1.35em; height: 1.35em; }
.ic.sm { width: 1.75em; height: 1.75em; }
.ic.mid { width: 2em; height: 2em; }
.ic.blue { color: var(--blue); }
.brand { flex: none; width: 3.1em; height: 3.1em; border-radius: .75em; }
.brand.xs { width: 1.5em; height: 1.5em; border-radius: .38em; }
.brand.md { width: 2.9em; height: 2.9em; }
.brand.lg { width: 3.3em; height: 3.3em; }
.wx { width: 2.6em; height: 2.6em; flex: none; }
.wx.xl { width: 56px; height: 56px; }

.c { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.r { display: flex; align-items: center; gap: .4em; }
.r.base { align-items: baseline; gap: .15em; }
.r.sb, .sb { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mono { font-family: var(--mono); }
.b { font-weight: 650; }
.t1 { font-size: 1.35em; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
.t1s { font-size: 1.2em; font-weight: 650; letter-spacing: -.005em; line-height: 1.25; }
.t2 { font-size: 1.12em; color: var(--fg2); line-height: 1.25; font-weight: 500; }
.t3 { font-size: 1em; color: var(--fg2); line-height: 1.3; font-weight: 500; }
.big { font-size: 2.3em; font-weight: 700; letter-spacing: -.03em; line-height: 1.02; }
.big2 { font-size: 1.85em; font-weight: 700; letter-spacing: -.025em; line-height: 1.05; }
.ap { font-size: 1em; font-weight: 700; margin-left: .2em; }
.chg { color: var(--green-d); font-weight: 650; font-size: 1.05em; white-space: nowrap; }
[data-scheme="dark"] .chg { color: var(--green); }
.chg.neg { color: var(--red); }
.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: var(--chip); color: var(--fg2); }

.bar { height: .5em; border-radius: 1em; background: var(--track); overflow: hidden; flex: none; position: relative; }
.bar.xs { height: .32em; }
.bar.sm { height: .45em; width: 6.5em; }
.bar.lg { height: 8px; width: 100%; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .6s var(--ease); }

.ring { width: 100%; height: 100%; display: block; }
.ring circle { transition: stroke-dasharray .6s var(--ease); }

/* icon buttons inside tiles */
.ib { width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--tile); color: var(--fg); transition: transform .15s var(--spring), filter .15s; }
.ib:hover { filter: brightness(1.15); transform: scale(1.06); }
.ib:active { transform: scale(.92); }
.ib.ghost { background: transparent; }
.ib.dark { background: #2c2c2e; color: #fff; }
.ib.red { background: #ff3b30; color: #fff; width: 3.2em; height: 3.2em; }
.ib.blue { background: var(--blue); color: #fff; width: 3.2em; height: 3.2em; }
.ib.orange { background: #ff9f0a; color: #fff; width: 3.2em; height: 3.2em; }
.ib svg { width: 1.25em; height: 1.25em; }
.ib.pp svg { width: 1.1em; }

/* ---------------- start ---------------- */
.start .win { width: 2.2em; height: 2.2em; color: var(--fg); opacity: .95; }
.start { background: var(--tile); }

/* ---------------- system ---------------- */
.procs .rows { display: flex; flex-direction: column; gap: .12em; min-width: 16em; }
.prow { display: flex; align-items: center; gap: .6em; font-size: 1.04em; line-height: 1.18; }
.prow .pi { width: 1.15em; height: 1.15em; display: grid; place-items: center; flex: none; }
.prow .pi img { width: 100%; height: 100%; object-fit: contain; }
.prow .pi i { width: .95em; height: .95em; border-radius: .22em; display: block; }
.prow .pn { flex: 1; font-weight: 550; }
.prow b { font-weight: 650; }
.dotsq { width: 12px; height: 12px; border-radius: 3px; flex: none; display: inline-block; }

.lang { font-size: 1.45em; font-weight: 700; letter-spacing: .02em; }

.temp { gap: 1.2em; }
.temp .gauge { width: 3.6em; height: 3.6em; position: relative; flex: none; }
.temp .gv { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; line-height: 1; }
.temp .gv b { font-size: 1.3em; font-weight: 700; }
.temp .gv span { font-size: .8em; color: var(--fg2); font-weight: 650; }
.temp .kv { display: flex; flex-direction: column; gap: .35em; }
.temp .kv > div { display: flex; align-items: center; gap: .6em; }
.temp .kv span { width: 2.6em; font-size: 1.1em; font-weight: 650; color: var(--fg2); }
.temp .kv .bar.sm { width: 3.6em; }
.temp .kv b { width: 3em; text-align: right; font-size: 1.15em; }

.ringw { position: relative; }
.ringw .ring { position: absolute; inset: 9%; width: 82%; height: 82%; }
.ringw .in { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.ringw .in.row1 { flex-direction: row; gap: .1em; }
.ringw .in .ic.xs { width: 1.1em; height: 1.1em; margin-bottom: .1em; }
.ringw .in b { font-size: 1.2em; font-weight: 700; }

.net { flex-direction: column; align-items: stretch; justify-content: center; gap: .2em; width: 19em; }
.net .nrow { display: flex; justify-content: space-between; font-size: 1.15em; }
.net .nrow span { display: flex; align-items: center; gap: .3em; }
.net .d .ic { color: var(--teal); } .net .u .ic { color: var(--purple); }
.net .nchart { height: 1.6em; }
.net .nchart svg { width: 100%; height: 100%; }

/* batteries */
.bat-fill { position: relative; background: #0f5fd6 !important; overflow: hidden; color: #fff; box-shadow: none !important; }
.bat-fill .water { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #2f95ff, #0a6cf0); transition: height .8s var(--ease); }
.bat-fill .water svg { position: absolute; left: 0; width: 200%; top: -.55em; height: .6em; fill: #2f95ff; }
.item:hover .bat-fill .water svg { animation: wave 1.6s var(--ease) 1; } /* one wave on hover only – infinite animations cost GPU every frame */
.anim-off .bat-fill .water svg { animation: none; }
@keyframes wave { to { transform: translateX(-50%); } }
.bat-fill.low { background: #8a1c14 !important; } .bat-fill.low .water { background: linear-gradient(180deg, #ff5f57, #e0352b); } .bat-fill.low .water svg { fill: #ff5f57; }
.bat-fill .bv { position: relative; font-size: 1.35em; font-weight: 700; display: flex; align-items: center; gap: .05em; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.bat-fill .bolt .ic { width: .9em; height: .9em; }
.bat-ring .bolt .ic { width: .95em; height: .95em; color: var(--fg); }
.bat-ring .spark-run { position: absolute; inset: 9%; border-radius: 50%; display: none; background: conic-gradient(from 0deg, transparent 0 80%, rgba(255,255,255,.9) 92%, transparent 100%); -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%, #000 72%, transparent 74%); }
.bat-ring.charging .spark-run { display: block; transform: rotate(-30deg); }
.item:hover .bat-ring.charging .spark-run { animation: spin 1.2s var(--ease) 1; }
.anim-off .spark-run { animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.core { position: relative; }
.core .cells { position: absolute; inset: 0; display: grid; place-items: center; }
.core .cells i { position: absolute; width: .42em; height: .62em; border-radius: .14em; background: var(--track); transition: background .4s; }
.core .cells i.on { background: var(--green); box-shadow: 0 0 .4em rgba(48, 209, 88, .6); }
.core .nucleus { width: 2.3em; height: 2.3em; border-radius: 50%; background: #0b0b0c; display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 .18em rgba(48, 209, 88, .35), inset 0 0 .6em rgba(48,209,88,.4); position: relative; }
.core .nucleus b { font-size: 1.15em; font-weight: 700; }
.core.charging .nucleus { box-shadow: 0 0 0 .28em rgba(48, 209, 88, .3), inset 0 0 .9em rgba(48,209,88,.6); }
@keyframes pulse { 50% { box-shadow: 0 0 0 .28em rgba(48, 209, 88, .25), inset 0 0 .9em rgba(48,209,88,.6); } }

.dots-bat { flex-direction: column; gap: .3em; --c: var(--green); }
.dots-bat .digits { display: flex; gap: .2em; }
.dots-bat .dg { display: grid; grid-template-columns: repeat(3, .22em); gap: .06em; }
.dots-bat .dg i { width: .22em; height: .22em; border-radius: 50%; background: transparent; }
.dots-bat .dg i.on { background: var(--c); }
.dots-bat .dgrid { display: grid; grid-template-columns: repeat(8, .26em); gap: .1em; }
.dots-bat .dgrid i { width: .26em; height: .26em; border-radius: 50%; background: var(--track); }
.dots-bat .dgrid i.on { background: var(--c); }

.fuel { flex-direction: column; justify-content: center; }
.fuel .fg { width: 3em; height: 2.2em; color: var(--fg); }
.fuel .needle { transition: transform .8s var(--spring); }
.fuel .fb { display: flex; align-items: center; gap: .25em; margin-top: -.15em; }
.fuel .fb b { font-size: 1.1em; font-weight: 700; }
.fuel .pl { width: .4em; height: .4em; border-radius: 50%; background: var(--green); }

.qt { gap: .5em; padding: 0 .6em; }
.qpill { display: flex; align-items: center; height: 3.1em; border-radius: 1.55em; background: var(--tile); }
.qpill i { width: 1px; height: 1.4em; background: var(--sep); }
.qpill button { height: 100%; display: grid; place-items: center; padding: 0 .75em; border-radius: 1.55em; }
.qpill.on { background: color-mix(in srgb, var(--blue) 20%, transparent); color: var(--blue); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 45%, transparent); }
.qpill.na { opacity: .4; }
.qb { width: 3.1em; height: 3.1em; border-radius: 50%; background: var(--tile); display: grid; place-items: center; flex: none; }
.qb.on { background: var(--blue); color: #fff; }
.qb.red, .qpill.red { background: #ff3b30; color: #fff; box-shadow: none; }
.qb.na { opacity: .35; }
.qt .qpill, .qt .qb { flex: none; }
.qpill button:hover, .qb:hover { filter: brightness(1.2); }

.bright { flex-direction: column; align-items: stretch; justify-content: center; gap: .3em; width: 21em; }
.bright .bt { display: flex; align-items: center; gap: .5em; font-size: 1.1em; }
.bright .bv { margin-left: auto; color: var(--fg2); }
.bright .slider { height: 1.7em; border-radius: .7em; background: var(--track); }
.bright .slider::-webkit-slider-thumb { height: 1.7em; }

.seg2 { gap: .3em; padding: 0 .4em; }
.seg2 .o { width: 3.1em; height: 3.1em; border-radius: 50%; display: grid; place-items: center; color: var(--fg2); transition: all .2s; }
.seg2 .o.on { background: #fff; color: #111; box-shadow: 0 1px 4px rgba(0,0,0,.25); }

.round-btn .rb { width: 3.2em; height: 3.2em; border-radius: 50%; background: var(--tile); display: grid; place-items: center; transition: background .2s, color .2s; }
.round-btn .rb.on { background: var(--indigo); color: #fff; }
.bin { position: relative; }
.bin .bc { position: absolute; top: .3em; right: .3em; min-width: 1.5em; height: 1.5em; border-radius: .75em; padding: 0 .35em; background: var(--red); color: #fff; font-size: .95em; font-weight: 700; display: grid; place-items: center; }

.prog { flex-direction: column; align-items: stretch; justify-content: center; gap: .35em; }
.prog .pdots { display: grid; gap: .22em; }
.prog.day .pdots { grid-template-columns: repeat(15, .55em); }
.prog.month .pdots { grid-template-columns: repeat(11, .55em); }
.prog.year .pdots { grid-template-columns: repeat(16, .45em); gap: .18em; }
.prog .pdots i { aspect-ratio: 1; border-radius: 50%; background: var(--dot); }
.prog .pdots i.on { background: var(--dot-on); }
.prog .pdots i.now { background: var(--dot-on); box-shadow: 0 0 0 .15em var(--track); }
.prog .pf { display: flex; justify-content: space-between; font-size: 1.05em; }
.prog .pl { color: var(--fg2); font-weight: 500; }
.prog .pp { font-weight: 700; }

/* ---------------- media ---------------- */
.cover { width: 3.2em; height: 3.2em; border-radius: .7em; object-fit: cover; flex: none; display: block; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.cover.xl { width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; }
.cover-ph { background: linear-gradient(135deg, #b0503a, #4a1f6e); display: grid; place-items: center; }
.cover-ph svg { width: 60%; height: 60%; }
.np { gap: .8em; min-width: 16em; max-width: 25em; }
.np .np-txt { flex: 1; }
.np .np-btns { display: flex; align-items: center; gap: .1em; }
.np .ib { background: transparent; }
.np .ib.pp { background: var(--tile); }
.np.idle { opacity: .75; }
.np.compact { min-width: 18em; }
.np.compact .cover { width: 3em; height: 3em; }
.npbar .bar { width: 100%; margin-top: .35em; }
.npm .in .pp svg { width: 1.2em; height: 1.2em; }

.np-big { display: flex; flex-direction: column; gap: 12px; }
.np-art { width: 100%; }
.np-meta { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.np-meta b { font-size: 16px; }
.np-times { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--fg2); margin-top: 4px; }
.np-prog .slider { height: 6px; border-radius: 3px; }
.np-prog .slider::-webkit-slider-thumb { height: 6px; }
.np-ctl { display: flex; justify-content: center; align-items: center; gap: 14px; }
.np-ctl .btn.round.big { width: 52px; height: 52px; background: var(--fg); color: var(--panel); }
.np-ctl .btn svg { width: 18px; height: 18px; }

.aout { flex-direction: column; align-items: stretch; justify-content: center; gap: .3em; width: 21em; }
.aout .ah { display: flex; align-items: center; gap: .5em; font-size: 1.15em; }
.aout .mi { width: 1.6em; height: 1.6em; display: grid; place-items: center; border-radius: 50%; }
.aout .mi:hover { background: var(--tile-hover); }
.aout .vv { margin-left: auto; color: var(--fg2); }
.aout .slider { height: 1.7em; border-radius: .7em; background: var(--track); }
.aout .slider::-webkit-slider-thumb { height: 1.7em; }

.micw { gap: .6em; padding: 0 .6em; }
.micw .cb { width: 3.3em; height: 3.3em; border-radius: 50%; background: var(--tile); display: grid; place-items: center; transition: all .2s; }
.micw .cb:hover { filter: brightness(1.2); }
.micw .cb.off { background: #ff3b30; color: #fff; }

/* ---------------- productivity ---------------- */
.stime { gap: .8em; }
.stime .watch { width: 2.6em; height: 2.6em; flex: none; }
.stime .hb { width: 6em; height: 2.2em; display: flex; align-items: flex-end; }
.stime .hb svg { width: 100%; height: 100%; }
.panel .hours svg { width: 100%; height: 60px; }
.panel .hx { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--fg3); margin-top: 3px; }
.panel .week { display: flex; gap: 8px; height: 90px; align-items: flex-end; }
.panel .week > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.panel .week i { width: 100%; background: var(--blue); border-radius: 4px; min-height: 3px; }
.panel .week span { font-size: 11px; color: var(--fg2); }

.tline { flex-direction: column; align-items: stretch; justify-content: center; gap: .35em; width: 30em; }
.tline .tl-h { display: flex; justify-content: space-between; }
.tline .tl-h .td { color: var(--fg); }
.tline .tl-track { position: relative; height: 1.4em; border-top: 1px dashed var(--sep); border-bottom: 1px dashed var(--sep); }
.tline .segs i { position: absolute; top: 25%; height: 50%; border-radius: .15em; }
.tline .evs i { position: absolute; top: -.25em; width: .5em; height: .5em; border-radius: 50%; background: var(--fg); transform: translateX(-50%); }
.tline .now { position: absolute; top: -.3em; bottom: -.3em; width: 2px; background: var(--blue); border-radius: 2px; }
.tline .now::after { content: ""; position: absolute; bottom: -.35em; left: 50%; width: .5em; height: .5em; border-radius: 50%; background: var(--blue); transform: translateX(-50%); }
.tline .sunm { position: absolute; bottom: -.32em; width: .45em; height: .45em; border-radius: 50%; background: var(--orange); transform: translateX(-50%); }

.pomo { gap: .7em; background: #1c1c1e !important; color: #fff; box-shadow: inset 0 0 0 .2em #ff3b30 !important; padding: 0 .9em 0 1.3em; }
.pomo.brk { box-shadow: inset 0 0 0 .2em var(--green) !important; }
.pomo.brk .ib.red { background: var(--green); }
.pomo .ph { font-size: 1.1em; color: #ff453a; font-weight: 650; }
.pomo.brk .ph { color: var(--green); }
.pomo .ph .pr { color: rgba(255,255,255,.7); font-weight: 600; margin-left: .3em; }
.pomo .big { min-width: 3.1em; }
.timerw { gap: 1em; padding: 0 .9em 0 1.3em; }
.timerw.running { box-shadow: inset 0 0 0 .2em var(--blue); }
.timerw .lblc { font-size: 1.15em; font-weight: 650; }
.timerw .big { min-width: 2.6em; }
.panel .presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.panel label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--fg2); }

.todo { gap: .8em; min-width: 18em; max-width: 26em; }
.todo .tring { width: 3.4em; height: 3.4em; position: relative; flex: none; }
.todo .tring .tc { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.25em; font-weight: 700; }
.chk { width: 1.8em; height: 1.8em; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 .14em var(--fg2); transition: all .2s; position: relative; }
.chk:hover { box-shadow: inset 0 0 0 .14em var(--blue); }
.chk.done { background: var(--blue); box-shadow: none; }
.chk.done::after { content: ""; position: absolute; left: 36%; top: 20%; width: 22%; height: 42%; border: solid #fff; border-width: 0 .16em .16em 0; transform: rotate(45deg); }
.panel .chk { width: 20px; height: 20px; box-shadow: inset 0 0 0 2px var(--fg3); }
.panel .chk.done::after { border-width: 0 2px 2px 0; }
.panel .li.is-done .t { text-decoration: line-through; color: var(--fg3); }
.panel .del { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--fg3); opacity: 0; }
.panel .li:hover .del { opacity: 1; }
.panel .del:hover { background: var(--panel-hover); color: var(--red); }
.panel .add { gap: 6px; }

.notew { gap: .9em; min-width: 18em; max-width: 26em; }
.notepad { width: 3em; height: 3em; border-radius: .65em; flex: none; background: repeating-linear-gradient(180deg, #fff 0 .62em, #e7e7e7 .62em .7em); position: relative; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.notepad i { position: absolute; left: 0; right: 0; top: 0; height: .9em; background: linear-gradient(180deg, #ffd84d, #f5c400); }
.notew .ed { color: var(--fg2); margin-left: auto; }
.notes-ed { display: flex; flex-direction: column; gap: 8px; }
.notes-ed .ti { font-weight: 650; font-size: 15px; }
.notes-ed textarea { min-height: 200px; }
.notes-ed .nlist { max-height: 160px; overflow: auto; }

.calw { gap: .9em; min-width: 16em; max-width: 25em; }
.calw .dayb { width: 3.5em; height: 3.5em; flex: none; border-radius: .7em; background: var(--tile); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.calw .dayb .dw { font-size: .85em; font-weight: 700; color: var(--red); letter-spacing: .03em; }
.calw .dayb .dn { font-size: 1.75em; font-weight: 600; }
.calw .et { display: flex; align-items: center; gap: .4em; }
.calw .eb { width: .25em; height: 1.1em; border-radius: .2em; flex: none; }
/* Next meeting: exactly two dock slots wide */
.nmw { width: calc(var(--th) * 2 + var(--gap)); }
.tile.pad.nmw { padding: 0 .6em; }
.nmw .c { min-width: 0; width: 100%; gap: .1em; }
.nmw .nm-when { display: flex; align-items: baseline; gap: .26em; font-size: 1.15em; line-height: 1.1; }
.nmw .nm-when { min-width: 0; overflow: hidden; }
.nmw .nm-when .w { white-space: nowrap; }
.nmw .nm-when .ws { font-size: .66em; font-weight: 600; opacity: .62; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nmw .nm-when .ws:empty { display: none; }
.nmw .nm-when .vc { display: flex; flex: none; align-self: center; }
.nmw .nm-t { font-size: .95em; opacity: .72; }
.nmw.soon .nm-when .w { color: var(--orange, #ff9f0a); }
.nmw.live { background: rgba(255, 59, 48, .2); }
.nmw.live .nm-when .w { color: var(--red, #ff453a); }
.nm-list .li { display: flex; align-items: center; gap: 10px; }
.nm-list .li .c { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nm-list .eb { width: 4px; align-self: stretch; border-radius: 2px; flex: none; }
.nm-list .btn { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.calic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #fff; flex: none; }
.calic .ic { width: 13px; height: 13px; }

/* calendar panel */
.calp { display: grid; grid-template-columns: 1fr 300px; gap: 18px; padding: 6px; min-height: 520px; }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-h .mt { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.btn.link { background: transparent; color: var(--blue); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--fg2); margin-bottom: 14px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.wkh, .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.wkh span { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--fg2); background: var(--panel-tile); border-radius: 20px; padding: 6px 0; margin-bottom: 8px; }
.wkh span.on { color: var(--fg); }
.cd { position: relative; aspect-ratio: 1; border-radius: 14px; background: var(--panel-tile); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 8px; font-size: 15px; cursor: default; transition: background .15s; }
.cd:hover { background: var(--panel-hover); }
.cd.empty { background: transparent; }
.cd.today b { color: var(--blue); }
.cd.sel { box-shadow: inset 0 0 0 2px var(--blue); background: color-mix(in srgb, var(--blue) 8%, transparent); }
.cd b { font-weight: 550; }
.cd .ci { position: absolute; top: 18%; display: flex; align-items: center; gap: 3px; }
.cd .ci .more { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 8px; background: var(--chip); color: var(--fg2); }
.cd .cdot { position: absolute; top: 9px; right: 9px; width: 6px; height: 6px; border-radius: 50%; }
.cal-r { background: var(--panel-tile); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; }
.ag-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.ag-h b { font-size: 16px; }
.ag-h span { font-size: 12px; }
.ag { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.ev { display: flex; align-items: center; gap: 10px; position: relative; }
.ev.past { opacity: .5; }
.ev .et { width: 62px; font-size: 12.5px; color: var(--fg2); flex: none; }
.ev .vbar { width: 3px; height: 24px; border-radius: 2px; flex: none; }
.ev .c b { font-size: 13.5px; font-weight: 550; }
.ev .c span { font-size: 11.5px; }
.ev .del { position: absolute; right: 0; }
.ev:hover .del { opacity: 1; }
.ag-add { display: flex; gap: 6px; align-items: center; background: var(--panel); border-radius: 22px; padding: 4px; margin-top: 10px; box-shadow: inset 0 0 0 1px var(--panel-b); }
.ag-add input { background: transparent !important; border: 0 !important; }
.ag-add input[type=time] { width: 100px; }
.ag-add .btn.round { width: 30px; height: 30px; flex: none; }

.wa { gap: .9em; }
.wa .brand { width: 3.6em; height: 3.6em; }
.fxw { gap: 1.2em; min-width: 19em; }
.fxw .fa { font-weight: 650; }
.fxs { display: flex; align-items: center; gap: .35em; font-size: 1em; margin-left: auto; padding: .35em .75em; border-radius: 1em; background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-b); }
.fxs:hover { background: var(--tile-hover); }
.fxs .ic { width: 1.1em; height: 1.1em; transform: rotate(90deg); color: var(--fg2); }

/* ---------------- AI ---------------- */
.ur { display: flex; align-items: center; gap: .6em; font-size: 1.02em; line-height: 1.32; white-space: nowrap; }
.ur .ul { font-weight: 650; min-width: 4.4em; font-size: 1em; }
.ur .ut { color: var(--fg2); min-width: 3.9em; text-align: right; font-size: .95em; }
.ur .up { min-width: 2.8em; text-align: right; font-weight: 700; }
.ur .bar.sm { width: 5.6em; }
.aiblk { margin-bottom: 8px; }
.aiw { margin-bottom: 10px; }
.aiw .bar { margin-top: 5px; }

/* ---------------- integrations ---------------- */
.an .ach svg { width: 100%; height: 100%; display: block; }
.an { gap: .9em; }
.an .ach { width: 5.5em; height: 2.2em; }
.an .r { gap: .5em; }
.gha { flex-direction: column; align-items: stretch; justify-content: center; gap: .3em; }
.gha .gh-h { display: flex; gap: 1.1em; font-size: 1.1em; color: var(--fg2); white-space: nowrap; }
.gha .gh-h b { color: var(--fg); margin-right: .2em; font-weight: 700; }
.gha .gh-h span { display: flex; align-items: center; gap: .15em; }
.gha .flame { width: 1.1em; height: 1.1em; }
.gha .gh-grid { display: grid; grid-template-columns: repeat(12, 1em); grid-auto-rows: .62em; gap: .16em; }
.gha .gh-grid i { border-radius: .16em; background: var(--track); }
.gha .gh-grid i.l1 { background: #9be9a8; } .gha .gh-grid i.l2 { background: #40c463; } .gha .gh-grid i.l3 { background: #30a14e; } .gha .gh-grid i.l4 { background: #216e39; }
.gho { gap: 1em; }
.gho .trio { display: flex; gap: 1.2em; }
.gho .trio div { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.gho .trio b { font-size: 1.6em; font-weight: 700; }
.gho .trio span { font-size: .95em; color: var(--fg2); }
.social { gap: 1em; }
.social .brand { width: 3.6em; height: 3.6em; }
.wpg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 320px; overflow: auto; }
.wp { aspect-ratio: 16/10; border-radius: 10px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px var(--panel-b); }
.wp:hover { box-shadow: 0 0 0 2px var(--blue); }

/* ---------------- apps & files ---------------- */
.srch { gap: .7em; width: 20em; color: var(--fg2); }
.srch .pr, .sbox .pr { color: var(--green); font-weight: 800; font-size: 1.3em; }
.sbox { display: flex; align-items: center; gap: 10px; background: var(--input); border-radius: 12px; padding: 0 12px; margin-bottom: 8px; }
.sbox input { background: transparent !important; border: 0 !important; padding: 11px 0 !important; font-size: 15px; }
.sbox .ic { width: 18px; height: 18px; color: var(--fg2); }
.panel .li.act { background: var(--blue); color: #fff; }
.panel .li.act .r { color: rgba(255,255,255,.75); }
.stor { width: 19em; }
.stor .bar.sm { width: 100%; margin-top: .45em; height: .55em; }
.shots { gap: .6em; padding: 0 .7em; }
.shots button { width: 3.3em; height: 3.3em; border-radius: 50%; display: grid; place-items: center; }
.shots .sb1 { background: color-mix(in srgb, var(--blue) 20%, transparent); color: var(--blue); }
.shots .sb2 { background: rgba(48,209,88,.2); color: var(--green); }
.shots .sb3 { background: rgba(191,90,242,.2); }
.shots .sb3 i { width: 1.6em; height: 1.2em; border-radius: .25em; background: var(--purple); }
.shots button:hover { filter: brightness(1.2); transform: scale(1.05); }

/* ---------------- weather ---------------- */
.wxw { gap: .8em; }
.wxw .wx { width: 3.2em; height: 3.2em; }
.wxd { gap: .8em; }
.wxd .vsep { width: 1px; height: 70%; background: var(--sep); }
.wxd .det { gap: .1em; font-size: .98em; }
.wxd .det span { display: flex; align-items: center; gap: .35em; }
.wxd .det em { font-style: normal; color: var(--orange); font-weight: 700; font-size: .9em; }
.wxf { gap: .8em; }
.wxf .fd { display: flex; gap: 1em; margin-left: .4em; }
.wxf .fd > div { display: flex; flex-direction: column; align-items: center; font-size: .95em; line-height: 1.15; }
.wxf .fd span { color: var(--fg2); }
.wxf .fd .wx { width: 1.5em; height: 1.5em; }
.wxf .fd em { font-style: normal; color: var(--fg2); font-weight: 500; font-size: .9em; }
.wxs { gap: .8em; background: linear-gradient(180deg, #3d9bff, #1f6fe5) !important; color: #fff; min-width: 22em; box-shadow: none !important; }
.wxs.night { background: linear-gradient(180deg, #23345e, #101a38) !important; }
.wxs.rainy { background: linear-gradient(180deg, #5b6b82, #34405a) !important; }
.wxs .t3 { color: rgba(255,255,255,.75); }
.wxs .c { flex: 1; }
.wxs .wx { width: 3em; height: 3em; }
.wxh { gap: .3em; padding: 0 .5em; }
.wxh > div { display: flex; flex-direction: column; align-items: center; width: 3.6em; font-size: .95em; line-height: 1.15; padding: .2em 0; border-radius: .8em; }
.wxh > div.now { background: var(--tile); }
.wxh span { color: var(--fg2); font-weight: 600; font-size: .9em; }
.wxh .wx { width: 1.6em; height: 1.6em; }
.sun { flex-direction: column; align-items: stretch; justify-content: center; width: 20em; gap: .15em; }
.sun .arcw { position: relative; height: 2.2em; }
.sun .arcw svg { width: 100%; height: 100%; overflow: visible; }
.sun .sdot { position: absolute; width: .7em; height: .7em; border-radius: 50%; background: #ffcc00; box-shadow: 0 0 .5em #ffcc00; transform: translate(-50%, -50%); }
.sun .sr { font-size: 1em; }
.sun .sr span { display: flex; align-items: center; gap: .3em; }
.sun .sr .ic { color: var(--orange); }

.wxp .stat { font-size: 34px; }
.wxp .hrs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 14px 0; text-align: center; }
.wxp .hrs > div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; }
.wxp .hrs span { color: var(--fg2); font-size: 11px; }
.wxp .hrs em { font-style: normal; font-size: 10px; color: var(--teal); }
.wxp .hrs .wx { width: 24px; height: 24px; }
.wxp .days .li { gap: 10px; padding: 5px 8px; min-height: 30px; }
.wxp .days .wx { width: 22px; height: 22px; }

/* ---------------- clocks ---------------- */
.clk { flex-direction: column; align-items: flex-start; justify-content: center; padding: 0 1.4em; gap: .1em; }
.clk .hm { font-size: 2.1em; }
.clk .r.base { line-height: 1.05; }
.clk .ss { font-size: 1.5em; color: var(--fg2); font-weight: 650; }
.clk .ap { font-size: 1.2em; }
.flip { gap: .25em; }
.flip .fdg { width: 2.2em; height: 3.2em; border-radius: .45em; background: #fff; color: #111; display: grid; place-items: center; position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.3), inset 0 -.12em 0 rgba(0,0,0,.08); overflow: hidden; perspective: 6em; }
[data-scheme="dark"] .flip .fdg { background: #2c2c2e; color: #fff; }
.flip .fdg::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.18); }
.flip .fdg span { font-size: 2.3em; font-weight: 700; line-height: 1; }
.flip .fdg.flipping span { animation: flip .5s var(--ease); }
@keyframes flip { 0% { transform: rotateX(80deg); opacity: .2; } 100% { transform: none; opacity: 1; } }
.flip .fgap { width: .35em; }
.flip .ap { align-self: flex-end; margin-bottom: .6em; color: var(--fg2); }
.wcs { gap: 1em; }
.wc { display: flex; flex-direction: column; align-items: center; gap: .05em; }
.wc b { font-size: .95em; color: var(--fg2); font-weight: 700; }
.face { width: 2.6em; height: 2.6em; color: #1c1c1e; }
.face .fc { fill: #fff; stroke: rgba(0,0,0,.08); }
.face.dark { color: #fff; } .face.dark .fc { fill: #1c1c1e; stroke: rgba(255,255,255,.15); }
.sevend { flex-direction: column; align-items: stretch; justify-content: center; gap: .15em; width: 22em; }
.sevend .sh { display: flex; justify-content: space-between; align-items: center; font-size: 1.05em; }
.sevend .tw { display: flex; align-items: center; gap: .2em; }
.sevend .tw .wx { width: 1.3em; height: 1.3em; }
.sevend .sdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: .2em; }
.sevend .sdays div { display: flex; flex-direction: column; align-items: center; line-height: 1.1; border-radius: .5em; padding: .1em 0; }
.sevend .sdays span { font-size: .8em; color: var(--fg2); }
.sevend .sdays b { font-size: 1.15em; }
.sevend .sdays .on { background: var(--blue); color: #fff; }
.sevend .sdays .on span { color: rgba(255,255,255,.85); }
.wt { gap: 1.6em; min-width: 22em; justify-content: space-between; }
.wt .cn { display: flex; align-items: center; gap: .4em; }
.moon-dot, .sun-dot { width: .8em; height: .8em; border-radius: 50%; display: inline-block; }
.moon-dot { background: #a7b4ff; } .sun-dot { background: #ffcc00; }
.todayw { gap: 1.2em; }
.todayw .wd { font-size: .95em; color: var(--red); letter-spacing: .04em; font-weight: 700; }
.todayw .dm { font-size: 1.55em; font-weight: 700; }
.todayw .rt { align-items: flex-end; justify-content: center; padding-left: 1.2em; border-left: 1px solid var(--sep); height: 70%; }
.todayw .tv { font-size: 1.55em; font-weight: 700; }
.todayw .twx:empty { display: none; }
.todayw .twx { display: flex; align-items: center; gap: .25em; font-size: 1.05em; color: var(--fg2); font-weight: 600; }
.todayw .twx .wx { width: 1.3em; height: 1.3em; }
.datew { flex-direction: column; align-items: flex-start; justify-content: center; padding: 0 1.4em; gap: .05em; }
.datew .dm { line-height: 1.1; }
.dayn { flex-direction: column; line-height: 1; }
.dayn .wd { font-size: .95em; color: var(--red); font-weight: 700; letter-spacing: .03em; }
.dayn .dn { font-size: 2.1em; font-weight: 600; }
.analog { color: var(--fg); }
.analog svg { width: 85%; height: 85%; }
.segc { flex-direction: column; align-items: flex-start; justify-content: center; gap: .3em; padding: 0 1.2em; }
.segc .sh { display: flex; align-items: center; gap: .5em; }
.segc .wdb { font-size: .8em; font-weight: 700; color: var(--red); border: .14em solid var(--red); border-radius: 1em; padding: 0 .55em; letter-spacing: .04em; }
.segc .dd { font-size: 1.2em; font-weight: 700; }
.segc .sdigits { display: flex; align-items: center; gap: .35em; height: 2em; }
.sgd { position: relative; width: 1.2em; height: 2em; }
.sgd i { position: absolute; background: var(--track); border-radius: .1em; }
.sgd i.on { background: var(--fg); }
.sgd .sa, .sgd .sd, .sgd .sg { left: .18em; right: .18em; height: .2em; }
.sgd .sa { top: 0; } .sgd .sg { top: calc(50% - .1em); } .sgd .sd { bottom: 0; }
.sgd .sb, .sgd .sc, .sgd .se, .sgd .sf { width: .2em; height: calc(50% - .2em); }
.sgd .sb { right: 0; top: .12em; } .sgd .sc { right: 0; bottom: .12em; } .sgd .se { left: 0; bottom: .12em; } .sgd .sf { left: 0; top: .12em; }
.segc .colon { width: .25em; height: 1em; background: radial-gradient(circle, var(--track) 45%, transparent 50%) top / .25em .25em no-repeat, radial-gradient(circle, var(--track) 45%, transparent 50%) bottom / .25em .25em no-repeat; }
.segc .colon.on { background: radial-gradient(circle, var(--fg) 45%, transparent 50%) top / .25em .25em no-repeat, radial-gradient(circle, var(--fg) 45%, transparent 50%) bottom / .25em .25em no-repeat; }
.cw3 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; width: var(--th); padding: 0; gap: 0; background: transparent !important; box-shadow: none !important; }
.cw3 .cwt { grid-column: 1 / 3; background: #ff3b1f; color: #fff; display: flex; align-items: baseline; justify-content: center; gap: .05em; }
.cw3 .cwt .tv { font-size: 1.35em; font-weight: 800; align-self: center; }
.cw3 .cwt .ap { font-size: .6em; align-self: center; }
.cw3 .cwd { background: #111; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: .95; }
.cw3 .cwd span { font-size: .7em; } .cw3 .cwd b { font-size: 1em; }
.cw3 .cwx { background: #d9d9de; color: #111; display: grid; place-items: center; }
.cw3 .cwx b { font-size: .95em; }


/* tray */
.trayw { position: relative; }
.trayw .tc { position: absolute; bottom: .25em; right: .35em; font-size: .85em; font-weight: 700; color: var(--fg2); }
.traygrid { display: grid; grid-template-columns: repeat(5, 40px); gap: 4px; justify-content: center; }
.traygrid .ti { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.traygrid .ti:hover { background: var(--panel-hover); }
.traygrid .ti:active { transform: scale(.92); }
.traygrid .ti img { width: 20px; height: 20px; object-fit: contain; image-rendering: -webkit-optimize-contrast; }
.trayhint { text-align: center; font-size: 11.5px; margin-top: 8px; min-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* quick toggle panels */
.qp-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.qp-h b { font-size: 15px; }
.qsw { width: 40px; height: 24px; border-radius: 12px; background: var(--track); position: relative; transition: background .2s; flex: none; }
.qsw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .25s var(--spring); }
.qsw.on { background: var(--blue); }
.qsw.on::after { transform: translateX(16px); }
.wbars { width: 16px; height: 12px; fill: currentColor; flex: none; }
.wpw { gap: 6px; padding: 4px 8px 8px; }
.qcust .mv { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--fg2); }
.qcust .mv:hover { background: var(--panel-hover); color: var(--fg); }
.panel .wnet ~ .list, .panel .list:has(.wnet) { max-height: 340px; overflow-y: auto; }

.panel .vmore { width: 100%; margin-top: 4px; }

/* volume ring + sound panel */
.volw .in .v { font-size: 1.15em; }
.volw .in .ic.xs { width: 1.15em; height: 1.15em; margin-bottom: .05em; opacity: .85; }
.volw.muted { background: rgba(255, 59, 48, .16) !important; box-shadow: inset 0 0 0 1px rgba(255, 59, 48, .35) !important; }
.volw.muted .in { color: var(--red); }
.snd-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.snd-h b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.snd-h b .ic { width: 18px; height: 18px; }
.snd-v { color: var(--fg2); font-weight: 600; }
.snd-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.snd-mute { width: 34px; height: 34px; border-radius: 50%; background: var(--input); display: grid; place-items: center; flex: none; }
.snd-mute .ic { width: 17px; height: 17px; }
.snd-mute.on { background: #ff3b30; color: #fff; }
.snd-sl { height: 24px !important; border-radius: 12px !important; }
.snd-sl::-webkit-slider-thumb { height: 24px !important; }
.snd-lbl { font-size: 11.5px; font-weight: 600; color: var(--fg3); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 4px 4px; }
.snd .list { margin-bottom: 10px; }

/* mini player: cover inside the ring */
.npm .npm-art { position: absolute; inset: 20%; border-radius: 50%; overflow: hidden; }
.npm .npm-cover { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.npm .npm-art .cover-ph { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; }
.npm .npm-pp { position: relative; width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.42); backdrop-filter: blur(2px); transition: opacity .2s; }
.npm .npm-pp .ic { width: 1em; height: 1em; }
.npm.playing .npm-pp { opacity: 0; }
.item:hover .npm.playing .npm-pp { opacity: 1; }
.npm.idle .npm-art { background: var(--track); }
/* volume ring: speaker in the background */
.volw .volbg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--fg); opacity: .22; pointer-events: none; }
.volw .volbg .ic { width: 2.1em; height: 2.1em; }
.volw.muted .volbg { display: none; }

/* compact player card */
.panel.compact { border-radius: 16px; }
.panel.compact .panel-body { padding: 10px; }
.cpl { display: flex; gap: 10px; align-items: center; }
.cpl-art { width: 56px; height: 56px; flex: none; }
.cpl-cover { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; display: block; }
.cpl-art .cover-ph { width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; }
.cpl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cpl-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cpl-meta b { font-size: 13px; font-weight: 650; }
.cpl-meta span { font-size: 11.5px; color: var(--fg2); }
.cpl-ctl { display: flex; align-items: center; gap: 2px; }
.cpl-ctl button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.cpl-ctl button:hover { background: var(--panel-hover); }
.cpl-ctl .ic { width: 13px; height: 13px; }
.cpl-ctl .pp { background: var(--fg); color: var(--panel); }
.cpl-ctl .pp:hover { background: var(--fg); filter: brightness(.9); }
.cpl-ctl .open { margin-left: auto; }
.cpl-ctl .open img { width: 15px; height: 15px; }
.cpl-bar { width: 100%; height: 3px; }
.cpl-empty { padding: 6px 8px; color: var(--fg2); font-size: 12.5px; }

/* battery ring: keep the bolt tight against the number */
.bat-ring .in.row1 { gap: 0; }
.bat-ring .bolt { display: flex; }
.bat-ring .bolt .ic { width: 1.1em; height: 1.1em; margin: 0 -.24em 0 -.14em; }
.bat-fill .bv { gap: 0; }
.bat-fill .bolt { display: flex; }
.bat-fill .bolt .ic { width: 1.05em; height: 1.05em; margin: 0 -.2em 0 -.12em; }

/* ---------------- games ---------------- */
.gico { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 22%; }
.gph { display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.3em; }
.gph.idle { background: var(--track); color: var(--fg2); }
.glib { gap: .3em; padding: 0 .45em; }
.glib .gl { display: flex; align-items: center; gap: .3em; }
.glib .gl > .t3 { margin: 0 .6em; }
.glib .gb { position: relative; width: 3.5em; height: 3.5em; padding: .3em; border-radius: .8em; display: grid; place-items: center; transition: background .15s, transform .15s var(--spring); }
.glib .gb:hover { background: var(--tile-hover); transform: scale(1.06); }
.glib .gb:active { transform: scale(.92); }
.glib .gb.run::after { content: ""; position: absolute; bottom: .05em; left: 50%; width: .45em; height: .45em; margin-left: -.225em; border-radius: 50%; background: var(--green); box-shadow: 0 0 .4em var(--green); }
.ngw { gap: .8em; min-width: 15em; max-width: 22em; }
.ngw .ngi { width: 3.1em; height: 3.1em; flex: none; display: grid; }
.ngw .ngi .gph { font-size: 1.4em; }
.ngw .ngi .gph.idle .ic { width: 1.3em; height: 1.3em; }
.ngw.live .ngs { color: var(--green); font-weight: 650; }
.ngw.live .ngs::before { content: ""; display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--green); margin-right: .35em; vertical-align: .08em; box-shadow: 0 0 .4em var(--green); }
.gst { gap: .9em; }
.gst .gsi { color: var(--purple); }
.gst .rows { display: flex; flex-direction: column; justify-content: center; }
.gst .ur .ul { min-width: 3.4em; }
.gst .ur .up { min-width: 3.6em; }
.gst .gtmp { font-size: 1.35em; font-weight: 700; padding-left: .8em; border-left: 1px solid var(--sep); }
.pingw { gap: .7em; }
.pingw .pdot { width: .7em; height: .7em; border-radius: 50%; flex: none; box-shadow: 0 0 .5em currentColor; }
.pingw .c { min-width: 4.6em; }
.pingw .r.base { gap: .25em; }
.pingw .pch { width: 6em; height: 2.2em; }
.pingw .pch svg { width: 100%; height: 100%; display: block; }
.pstrip { gap: 1em; padding: 0 1em; }
.pstrip .ps-c { display: flex; flex-direction: column; align-items: center; width: 3.6em; line-height: 1.1; }
.pstrip .ps-c b { font-size: 1.3em; font-weight: 700; }
.pstrip .ps-c span { font-size: .78em; font-weight: 700; color: var(--fg2); letter-spacing: .06em; }
.pstrip .ps-c i { width: 100%; height: .28em; border-radius: 1em; background: var(--track); margin-top: .3em; overflow: hidden; }
.pstrip .ps-c em { display: block; height: 100%; border-radius: inherit; transition: width .6s var(--ease); }
.panel .kv2 { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 13px; }
.panel .kv2 span { color: var(--fg2); }
.panel .kv2 + .bar { margin-top: 6px; }
.ggrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-height: 420px; overflow-y: auto; padding: 2px; }
.gcard { display: flex; flex-direction: column; align-items: stretch; gap: 3px; text-align: left; border-radius: 12px; padding: 0 0 4px; transition: transform .15s var(--spring); }
.gcard:hover { transform: translateY(-2px); }
.gcard:hover .gart { box-shadow: 0 0 0 2px var(--blue); }
.gcard b { font-size: 12.5px; font-weight: 600; padding: 0 2px; }
.gcard > span { font-size: 11px; color: var(--fg2); padding: 0 2px; }
.gart { position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--panel-tile); box-shadow: inset 0 0 0 1px var(--panel-tile-b); transition: box-shadow .15s; }
.gart img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gart-ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, var(--panel-hover), transparent 70%); }
.gart-ph .gico { width: 52%; height: auto; aspect-ratio: 1; }
.gart-ph .gph { font-size: 26px; }
.glive { position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 700; color: #fff; background: var(--green-d, #1f9d55); padding: 2px 7px; border-radius: 10px; text-transform: uppercase; letter-spacing: .04em; }
.gtime { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; }
.gtr { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.gtr .gico { width: 30px; height: 30px; flex: none; }
.gtr .gph { font-size: 14px; }
.gtr .bar { margin-top: 5px; height: 6px; }

.gmode .gm-b { width: 3.2em; height: 3.2em; border-radius: 50%; background: var(--tile); display: grid; place-items: center; transition: background .2s, color .2s, box-shadow .2s; }
.gmode.on .gm-b { background: linear-gradient(135deg, #ff2d6f, #a33bff); color: #fff; box-shadow: 0 0 .9em rgba(255, 45, 111, .55); }
.fgw, .sdw { gap: .8em; min-width: 16em; max-width: 24em; }
.fgw .fg-i { width: 3em; height: 3em; flex: none; border-radius: .8em; display: grid; place-items: center; background: linear-gradient(135deg, #2a2a2e, #111); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.sdw .sd-off { flex: none; min-width: 3.4em; height: 2.4em; padding: 0 .5em; border-radius: .6em; display: grid; place-items: center; background: #4c6b22; color: #beee11; font-weight: 800; font-size: 1.05em; }
.fgl { display: flex; flex-direction: column; gap: 8px; }
.fgc { display: flex; align-items: center; gap: 10px; text-align: left; border-radius: 12px; padding: 6px; background: var(--panel-tile); box-shadow: inset 0 0 0 1px var(--panel-tile-b); }
.fgc:hover, .sdr:hover { background: var(--panel-hover); }
.fgc img, .fgc-ph { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex: none; background: var(--track); }
.fgc-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 13px; }
.fgc-t span { font-size: 11.5px; color: var(--fg2); }
.fgc-t em { font-style: normal; color: var(--green); font-weight: 700; }
.sdl { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.sdr { display: flex; align-items: center; gap: 10px; text-align: left; border-radius: 10px; padding: 5px; font-size: 13px; }
.sdr img { width: 92px; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 6px; flex: none; }
.sdr .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sdr span { font-size: 11.5px; color: var(--fg2); }
.sdr span b { color: var(--fg); }
.sdr em { font-style: normal; font-weight: 800; color: #beee11; background: #4c6b22; padding: 2px 6px; border-radius: 6px; font-size: 12px; }
.fpsw { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; min-width: 8.5em; max-width: 15em; padding: 0 1.1em; }
.fpsw .r.base { gap: .3em; line-height: 1.05; }
.fpsw .fv { font-size: 1.9em; font-weight: 800; letter-spacing: -.02em; }
.fpsw .fl { font-size: .85em; font-weight: 800; color: var(--fg2); letter-spacing: .06em; }
.fpsw.setup .fv { font-size: 1.25em; }
.fpsw .fs { max-width: 100%; }

/* AI usage gauges */
.aiw2 { gap: .9em; }
.aiw2 .aisep { width: 1px; height: 60%; background: var(--sep); flex: none; }
.aig { display: flex; align-items: center; gap: .55em; }
.aig-r { position: relative; width: 3.2em; height: 3.2em; flex: none; }
.aig-r .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.aig-in { position: absolute; inset: 0; display: grid; place-items: center; }
.aig-in .brand.xs { width: 1.45em; height: 1.45em; }
.aig-in b { font-size: 1.05em; font-weight: 750; }
.aig-t { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.aig-t b { font-size: 1.2em; font-weight: 700; }
.aig-t span { font-size: .95em; color: var(--fg2); font-weight: 550; }
.aig2 { display: flex; align-items: center; gap: 1.1em; }
.aig2 .aig-t b { font-size: 1.05em; }
.aibig .aig-r { width: 3.5em; height: 3.5em; }
.aibig .aig-in .brand.xs { width: 1.7em; height: 1.7em; }
.aibig .aig-t b { font-size: 1.6em; letter-spacing: -.02em; }
