:root {
  --bg: #000;
  --bg-2: #0a0a0f;
  --card: rgba(28, 28, 32, 0.72);
  --card-solid: #1c1c20;
  --card-2: #2a2a30;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-2: rgba(235, 235, 245, 0.62);
  --text-3: rgba(235, 235, 245, 0.36);
  --accent: #0a84ff;
  --accent-2: #5e5ce6;
  --green: #30d158;
  --orange: #ff9f0a;
  --red: #ff453a;
  --pink: #ff375f;
  --yellow: #ffd60a;
  --radius: 22px;
  --radius-sm: 14px;
  --tab-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
/* nothing may push the page sideways (that made it look shifted to the left) */
html, body { overflow-x: hidden; overflow-x: clip; }
html { scrollbar-gutter: stable both-edges; } /* a desktop scrollbar must not pull the centred column left */
#app { width: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(94, 92, 230, 0.22), transparent 60%),
    radial-gradient(80% 50% at 100% 0%, rgba(255, 55, 95, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--accent); }
.noscript { padding: 24px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── splash / logo pill ───────── */
.splash { min-height: 100vh; display: grid; place-items: center; }
.splash-pill, .logo-pill {
  width: 126px; height: 37px; border-radius: 999px; background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 10px 40px rgba(94, 92, 230, 0.35);
  display: flex; align-items: center; justify-content: space-between; padding: 0 12px;
  animation: breathe 2.4s ease-in-out infinite;
}
.splash-pill .dot, .logo-pill .dot { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #ff8c42, #7a5cff); }
.eq { display: inline-flex; gap: 3px; align-items: center; height: 16px; }
.eq i { width: 3px; border-radius: 2px; background: linear-gradient(#ff7a5a, #8c6eff); height: 6px; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; }
.eq i:nth-child(3) { animation-delay: -0.6s; }
.eq i:nth-child(4) { animation-delay: -0.15s; }
.eq.paused i { animation: none; height: 4px; opacity: 0.6; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* ───────── auth screens ───────── */
.auth {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--safe-top) + 32px) 20px calc(var(--safe-bottom) + 32px);
}
.auth .logo-pill { margin-bottom: 28px; }
.auth h1 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 6px; text-align: center; }
.auth p.lead { color: var(--text-2); margin: 0 0 28px; text-align: center; max-width: 340px; }
.auth form { width: 100%; max-width: 380px; }
.field-group { background: var(--card); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.field-group label { display: block; position: relative; }
.field-group label + label { border-top: 1px solid var(--line); }
.field-group input {
  width: 100%; border: 0; outline: 0; background: transparent; padding: 16px 16px; font-size: 17px;
}
.field-group input::placeholder { color: var(--text-3); }
.form-error { color: var(--red); font-size: 14px; min-height: 20px; margin: 12px 4px 0; }
.hint { color: var(--text-3); font-size: 13px; margin: 10px 4px 0; }
.strength { height: 4px; border-radius: 2px; background: var(--card-2); margin: 12px 4px 0; overflow: hidden; }
.strength > i { display: block; height: 100%; width: 0; background: var(--red); transition: width .25s, background .25s; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 20px; border-radius: 14px; font-weight: 600; font-size: 17px;
  background: var(--accent); color: #fff; transition: transform .12s, opacity .2s, background .2s;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn.block { width: 100%; margin-top: 18px; }
.btn.secondary { background: var(--card-2); color: var(--text); }
.btn.danger { background: rgba(255, 69, 58, 0.16); color: var(--red); }
.btn.small { min-height: 36px; font-size: 15px; padding: 0 14px; border-radius: 10px; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────── shell ───────── */
.shell {
  min-height: 100vh; width: 100%; max-width: 720px; margin: 0 auto;
  padding: calc(var(--safe-top) + 8px) max(16px, env(safe-area-inset-right, 0px)) calc(var(--tab-h) + var(--safe-bottom) + 24px) max(16px, env(safe-area-inset-left, 0px));
}
.shell.wide { max-width: 1180px; }
.topbar { display: flex; align-items: flex-end; min-width: 0; justify-content: space-between; gap: 12px; padding: 14px 4px 14px; }
.topbar h1 { font-size: 34px; letter-spacing: -0.025em; margin: 0; line-height: 1.1; }
.topbar .sub { color: var(--text-2); font-size: 14px; margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--card-2); color: var(--text-2); }
.chip .led { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.chip.on { color: var(--green); background: rgba(48, 209, 88, 0.14); }
.chip.on .led { background: var(--green); box-shadow: 0 0 10px var(--green); }
.chip.off { color: var(--text-2); }
.chip.warn { color: var(--orange); background: rgba(255, 159, 10, 0.14); }
.chip.warn .led { background: var(--orange); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 6px 8px calc(var(--safe-bottom) + 6px);
  display: flex; justify-content: center;
  background: rgba(14, 14, 18, 0.72); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: 1px solid var(--line);
}
.tabbar .inner { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 520px; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 2px; color: var(--text-3); font-size: 11px; font-weight: 600; }
.tab svg { width: 26px; height: 26px; }
.tab.active { color: var(--accent); }
.tab .badge { position: absolute; transform: translate(12px, -4px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
.tab { position: relative; }

/* ───────── cards ───────── */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px;
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); margin: 0 0 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card h2 .right { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text-3); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.grid2 > * { min-width: 0; }
.grid2 > .card { margin-bottom: 0; }
.grid2 + .card, .grid2 + .grid2 { margin-top: 14px; }
.empty { color: var(--text-3); font-size: 15px; }
.big { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); font-size: 13px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* now playing – the island */
.island {
  position: relative; overflow: hidden; border-radius: 30px; background: #000; padding: 16px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 20px 60px -20px var(--glow, rgba(94, 92, 230, 0.6));
  margin-bottom: 14px; transition: box-shadow .6s;
}
.island .bgart { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) saturate(160%); opacity: 0.38; transform: scale(1.2); }
.island .irow { position: relative; display: flex; align-items: center; gap: 14px; }
.island .art { width: 64px; height: 64px; border-radius: 14px; flex: none; background: linear-gradient(135deg, #ff8c42, #7a5cff); background-size: cover; background-position: center; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.island .meta { min-width: 0; flex: 1; }
.island .title { font-size: 18px; font-weight: 700; }
.island .artist { color: var(--text-2); font-size: 15px; }
.island .app { color: var(--text-3); font-size: 12px; margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }
.island .controls { position: relative; display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 14px; }
.island .controls button { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform .12s, background .2s; }
.island .controls button:active { transform: scale(0.88); background: rgba(255,255,255,0.1); }
.island .controls button.main { width: 60px; height: 60px; background: rgba(255,255,255,0.12); }
.island .controls svg { width: 26px; height: 26px; }
.island .controls .main svg { width: 30px; height: 30px; }
.island.idle .title { color: var(--text-2); }
.progress { position: relative; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.15); margin-top: 14px; overflow: hidden; }
.progress > i { position: absolute; left: 0; top: 0; bottom: 0; background: #fff; border-radius: 2px; }

/* quick actions */
.actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.action {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 10px;
  border-radius: 18px; background: var(--card-2); font-size: 12px; font-weight: 600; color: var(--text-2);
  transition: transform .12s, background .2s;
}
.action:active { transform: scale(0.94); background: #3a3a42; }
.action .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.08); color: #fff; }
.action .ic svg { width: 22px; height: 22px; }
.action.sent .ic { background: var(--green); }

/* lists */
.list { margin: 0; padding: 0; list-style: none; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.list li + li { border-top: 1px solid var(--line); }
.list .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; font-size: 15px; font-weight: 700; color: #fff; }
.list .txt { min-width: 0; flex: 1; }
.list .t1 { font-weight: 600; font-size: 15px; }
.list .t2 { color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list .when { color: var(--text-3); font-size: 12px; flex: none; align-self: flex-start; padding-top: 2px; }

.battery { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.battery .name { flex: 1; min-width: 0; font-size: 15px; }
.battery .bar { width: 64px; height: 26px; border-radius: 7px; border: 2px solid rgba(255,255,255,0.35); padding: 2px; position: relative; }
.battery .bar::after { content: ""; position: absolute; right: -6px; top: 7px; width: 3px; height: 8px; border-radius: 0 2px 2px 0; background: rgba(255,255,255,0.35); }
.battery .bar i { display: block; height: 100%; border-radius: 4px; background: var(--green); }
.battery .pct { width: 52px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.score { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; }
.score + .score { border-top: 1px solid var(--line); }
.score .team { flex: 1; min-width: 0; font-weight: 600; }
.score .team.r { text-align: right; }
.score .num { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 0 10px; }
.live { color: var(--red); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 15px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }

/* ───────── settings (iOS grouped list) ───────── */
.group-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 22px 16px 8px; font-weight: 600; }
.group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 52px; }
.group > .row + .row, .group > .row + .rowx, .group > .rowx + .row, .group > .rowx + .rowx { border-top: 1px solid var(--line); }
.rowx { padding: 12px 14px; }
.row .ri { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #fff; }
.row .ri svg { width: 18px; height: 18px; }
.row .rl { flex: 1; min-width: 0; }
.row .rl .l1 { font-size: 16px; }
.row .rl .l2 { font-size: 13px; color: var(--text-3); margin-top: 1px; }
.row .pending { color: var(--orange); font-size: 12px; margin-left: 6px; }
.group-foot { color: var(--text-3); font-size: 13px; margin: 8px 16px 0; }

.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(120, 120, 128, 0.32); transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.25); transition: transform .22s cubic-bezier(.3,.7,.4,1.2); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.select { position: relative; flex: none; max-width: 52%; }
.select select {
  appearance: none; -webkit-appearance: none; background: var(--card-2); border: 0; border-radius: 10px;
  padding: 8px 30px 8px 12px; font-size: 15px; color: var(--text); max-width: 100%;
}
.select::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(118, 118, 128, 0.24); border-radius: 10px; padding: 2px; margin-top: 10px; }
.seg button { padding: 7px 4px; font-size: 14px; font-weight: 600; border-radius: 8px; color: var(--text); transition: background .2s; }
.seg button.on { background: #636366; box-shadow: 0 3px 8px rgba(0,0,0,.2); }

.slider { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.slider input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 30px; background: transparent; }
.slider input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), rgba(120,120,128,.32) var(--p, 50%)); }
.slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; margin-top: -11px; box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.slider input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(120,120,128,.32); }
.slider input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
.slider input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; }
.slider .val { width: 44px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }

/* ───────── send ───────── */
textarea.compose {
  width: 100%; min-height: 120px; resize: vertical; border: 0; outline: 0; background: transparent; font-size: 17px; padding: 0;
}
textarea.compose::placeholder { color: var(--text-3); }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  border: 1.5px dashed rgba(255,255,255,0.18); border-radius: 18px; padding: 26px 16px; color: var(--text-2); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.drop.over { border-color: var(--accent); background: rgba(10, 132, 255, 0.08); }
.drop svg { width: 34px; height: 34px; color: var(--accent); }
.drop input { display: none; }
.sent-list li .state { font-size: 12px; font-weight: 600; flex: none; }
.state.wait { color: var(--orange); }
.state.ok { color: var(--green); }
.state.err { color: var(--red); }
.upbar { height: 4px; border-radius: 2px; background: var(--card-2); margin-top: 6px; overflow: hidden; }
.upbar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .15s; }

/* ───────── banners & toasts ───────── */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px; margin-bottom: 14px; background: linear-gradient(135deg, rgba(10,132,255,.22), rgba(94,92,230,.18)); border: 1px solid rgba(10,132,255,.3); }
.banner .bi { flex: none; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.banner .bi svg { width: 20px; height: 20px; }
.banner .bt { flex: 1; font-size: 14px; color: var(--text-2); }
.banner .bt b { color: var(--text); display: block; font-size: 15px; margin-bottom: 2px; }
.banner .x { color: var(--text-3); font-size: 20px; line-height: 1; padding: 2px 4px; }
.share-ic { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }

#toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-bottom) + 14px); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 50; pointer-events: none; padding: 0 16px; }
.toast {
  pointer-events: auto; max-width: 420px; padding: 12px 18px; border-radius: 999px; font-size: 15px; font-weight: 600;
  background: rgba(44, 44, 50, 0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,.45); border: 1px solid var(--line);
  animation: toastIn .35s cubic-bezier(.2,.9,.3,1.2);
}
.toast.ok { color: var(--green); }
.toast.err { color: var(--red); }
.toast.out { opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }

.view { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }

.account-head { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 700; background: linear-gradient(135deg, var(--accent-2), var(--pink)); }

@media (min-width: 760px) {
  .shell { padding-top: calc(var(--safe-top) + 24px); }
  .actions { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .grid2 { grid-template-columns: 1fr; }
  .island .controls { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* send target: PC / Mac */
.seg{display:flex;gap:4px;padding:3px;border-radius:12px;background:rgba(255,255,255,.06)}
.seg button{flex:1;border:0;border-radius:9px;padding:9px 8px;background:transparent;color:rgba(255,255,255,.7);font:inherit;font-weight:600;font-size:14px}
.seg button.on{background:#0a84ff;color:#fff;box-shadow:0 2px 8px rgba(10,132,255,.35)}

/* ───────── overview dashboard grid ─────────
   2 columns on the phone (tiles = half, cards = full), 4 on a tablet, 6 on a desktop (cards = a third). */
.dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.dash > * { margin: 0; min-width: 0; grid-column: span 2; }
.dash > .tile { grid-column: span 1; align-self: stretch; }
.dash > .span-all { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .dash { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .dash { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dash > .island.span-all { grid-column: span 4; }
  .dash > .card.span-all { grid-column: span 2; }
  .dash > .island + .card .actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dash > .tile { grid-column: span 1; }
}
@media (max-width: 340px) {
  .dash > .tile { grid-column: span 2; }
}
.updated { text-align: center; margin: 16px 0 0; }

.topbar .tl { min-width: 0; }
.tclock { text-align: right; flex: none; }
.tclock .tc { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tclock .td { color: var(--text-2); font-size: 13px; margin-top: 4px; }
@media (max-width: 420px) { .tclock .tc { font-size: 26px; } .tclock .td { display: none; } }
.chip svg { flex: none; }

.card h2 .hi { display: inline-grid; place-items: center; }
.card h2 .hi svg { display: block; }
.center { text-align: center; }
.pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--card-2); color: var(--text-2); }
.pill.on { background: rgba(48, 209, 88, 0.16); color: var(--green); }
.pill.warn { background: rgba(255, 159, 10, 0.16); color: var(--orange); }
.pill.win { background: rgba(48, 209, 88, 0.16); color: var(--green); }
.pill.loss { background: rgba(255, 69, 58, 0.16); color: var(--red); }
.pill.draw { background: rgba(255, 214, 10, 0.14); color: var(--yellow); }

/* rings */
.ring { position: relative; flex: none; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; }
.ring .track { stroke: rgba(255, 255, 255, 0.1); }
.ring .val { stroke-linecap: round; transition: stroke-dashoffset .6s cubic-bezier(.3,.7,.3,1); }
.ring .rin { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.ring small { font-size: .6em; font-weight: 600; color: var(--text-2); margin-left: 1px; }

/* music */
.island .controls button.side { width: 40px; height: 40px; color: var(--text-2); }
.island .controls button.side svg { width: 22px; height: 22px; }
.prog { position: relative; }
.ptimes { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-top: 5px; font-variant-numeric: tabular-nums; }
@media (max-width: 370px) { .island .controls { gap: 10px; } }

/* quick actions */
.action .ic { background: color-mix(in srgb, var(--c, #fff) 22%, transparent); color: var(--c, #fff); }
.action .al { text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
.action.sent .ic { background: var(--green); color: #fff; }

/* tiles */
.tile { display: flex; flex-direction: column; }
.tile h2 { margin-bottom: 8px; }
.weather .wnow { display: flex; align-items: center; gap: 6px; }
.weather .wico { font-size: 34px; line-height: 1; }
.weather .wtemp { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.weather .muted { margin-top: 6px; font-size: 15px; }
.hours { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; margin-top: auto; padding-top: 12px; text-align: center; font-size: 13px; }
.hours > div { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.hours .rain { color: #64d2ff; font-size: 10px; min-height: 12px; }
.phone .pring { display: grid; place-items: center; margin: 2px 0 8px; flex: 1; }
.phone .pp { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.phone .rin { grid-auto-flow: row; align-content: center; gap: 0; }
.phone .bolt { color: var(--green); display: grid; place-items: center; margin-top: -4px; }
.phone .bolt svg { width: 16px; height: 16px; }
.phone.charging .ring .val { filter: drop-shadow(0 0 6px rgba(48, 209, 88, 0.6)); }
.phone .pstate { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 14px; font-weight: 600; text-align: center; }

/* matches */
.match { padding: 6px 0 10px; }
.match + .match { border-top: 1px solid var(--line); padding-top: 10px; }
.match .score { padding: 2px 0; }
.score .num span { opacity: .5; padding: 0 2px; }
.score .num.time { font-size: 17px; font-weight: 700; color: var(--text-2); }
.match.on .num, .match.live .num { color: var(--green); }
.mstatus { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; min-width: 0; }
.mstatus .faint.ellipsis { max-width: 100%; }

/* calendar */
.events .etime { width: 64px; flex: none; font-variant-numeric: tabular-nums; font-size: 15px; align-self: flex-start; padding-top: 1px; }
.events .t2 { display: block; }

/* PC */
.gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 10px; justify-items: center; }
.gauge { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.gauge .rin { font-size: 16px; }
.gauge .gl { font-size: 12px; font-weight: 600; color: var(--text-2); text-align: center; }
.gauge .gs { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.net { display: flex; justify-content: center; gap: 18px; margin-top: 12px; color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; }

/* KPIs (e-shop, Claude) */
.kpis { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; }
.kpis > div { min-width: 0; }
.kpis .kv1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.kpis .kl { font-size: 12px; color: var(--text-3); }
.kpis.small .kv1 { font-size: 18px; }
.kpis + .list { margin-top: 8px; }
.orders .ot { display: flex; flex-direction: column; align-items: flex-end; flex: none; font-size: 15px; font-variant-numeric: tabular-nums; }
.orders .t2 { -webkit-line-clamp: 1; }
.list .ico.claude { background: rgba(217, 119, 87, 0.2); color: #d97757; }

/* timer */
.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.timer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.timer .tval { font-size: 40px; font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tbtns { display: flex; gap: 10px; }
.round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); color: var(--text); transition: transform .12s, background .2s; }
.round:active { transform: scale(.9); }
.round.main { background: rgba(255, 159, 10, 0.2); color: var(--orange); }
.round svg { width: 20px; height: 20px; }
.round.sent { background: var(--green); color: #fff; }
.tprog { margin-top: 12px; }
.tprog > i { background: var(--orange); transition: width 1s linear; }

/* F1 */
.f1lap { font-size: 15px; font-weight: 600; }
.f1next { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 15px; }
.f1next b { font-weight: 700; }

/* mouse / keyboard */
.bolt-s { color: var(--green); display: inline-grid; }
