/* The notch, matched to the app's SwiftUI views (sizes in points = CSS px). */
#notch-root {
  --sf: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --sfr: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  position: fixed; top: 0; left: 50%; width: 0; height: 0;
  z-index: 50;
  font-family: var(--sf);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none; -webkit-user-select: none;
  cursor: default;
}
#notch-root *, #notch-root *::before, #notch-root *::after { box-sizing: border-box; }
:where(#notch-root) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: default; }
:where(#notch-root) :is(input, textarea, select) { font: inherit; color: inherit; }

.nl-svg { position: absolute; left: -600px; top: 0; width: 1200px; height: 520px; overflow: visible; pointer-events: none; }
.nl-shape { fill: #000; }
.nl-shadow { fill: #000; opacity: 0; }
#notch-root.theming .nl-shape { transition: fill 0.3s ease-in-out; }

.nl-clip { position: absolute; top: 0; left: 0; overflow: hidden; pointer-events: auto; }

/* SF Symbols: template PNGs used as masks, so they take the current colour */
.sf {
  display: inline-block; flex: none; font-style: normal;
  background-color: currentColor;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.mono { font-variant-numeric: tabular-nums; }
.grow { flex: 1 1 0; min-width: 0; min-height: 0; }

/* ================= collapsed (always dark) ================= */
.nl-c { position: absolute; top: 0; left: 0; width: 100%; height: 100%; color: #fff; --fg: 255 255 255; }
.nc-row { display: flex; align-items: stretch; }
.nc-l, .nc-r { flex: 1 1 0; min-width: 0; position: relative; }
.nc-gap { flex: none; }
.nc-extra { position: relative; }
.slot {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--sp-content-ms) var(--sp-content);
}
.nc-extra .slot { bottom: auto; align-items: flex-start; }
.slot.in { opacity: 1; }
.slot.out { opacity: 0; }
.c-trail { width: 100%; height: 100%; display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; }
.c-art { width: 20px; height: 20px; border-radius: 5px; background: center / cover no-repeat; display: grid; place-items: center; overflow: hidden; }
.c-txt { white-space: nowrap; line-height: 1; }
.r11 { font: 600 11px var(--sfr); }
.r12 { font: 600 12px var(--sfr); }
.r13 { font: 600 13px var(--sfr); }
.r13b { font: 700 13px var(--sfr); }
.r13m { font: 500 13px var(--sfr); }
.r11s { font: 600 11px var(--sfr); }
.c-ring { display: block; }

.pulse { position: relative; flex: none; }
.pulse i { position: absolute; inset: 0; border-radius: 50%; }
.pulse-ring { border: 1px solid transparent; }
.eq { display: flex; align-items: center; gap: 2px; flex: none; }
.eq i { display: block; border-radius: 99px; height: 3px; }

.c-line { width: 100%; padding: 0 16px; position: relative; overflow: hidden; text-align: center; }
.c-line-txt, .ll { font: 600 12px var(--sfr); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 15px; }
.ll { position: absolute; left: 16px; right: 16px; top: 0; color: rgba(255, 255, 255, 0.92); opacity: 0; transform: translateY(24px); transition: opacity 0.18s ease-out, transform 0.18s ease-out; }
.ll.on { opacity: 1; transform: none; }
.ll.gone { opacity: 0; transform: none; }

/* AirPods */
.pods-glyph { display: grid; opacity: 0; transform: scale(0.5); transition: opacity var(--sp-pods-ms) var(--sp-pods) 0.15s, transform var(--sp-pods-ms) var(--sp-pods) 0.15s; }
.pods-glyph.shown { opacity: 1; transform: none; animation: podBounce 0.5s 0.5s ease-out; }
@keyframes podBounce { 40% { transform: scale(1.18); } 70% { transform: scale(0.96); } }
.pods-ring .arc { transition: stroke-dashoffset var(--sp-ring-ms) var(--sp-ring); }
.pods-detail { display: flex; align-items: flex-start; justify-content: center; gap: 22px; width: 100%; }
.pods-item { display: flex; align-items: center; gap: 5px; line-height: 16px; opacity: 0; transform: translateY(4px); transition: opacity var(--sp-row-ms) var(--sp-row), transform var(--sp-row-ms) var(--sp-row); }
.slot.shown .pods-item { opacity: 1; transform: none; }

/* Teleprompter strip */
.strip { position: relative; }
.strip-count { position: absolute; inset: 0; display: grid; place-items: center; font: 700 40px var(--sfr); color: #fff; }
.strip-count span { opacity: 0; transform: scale(0.2); transition: opacity 0.35s ease, transform var(--sp-count-ms) var(--sp-count); }
.strip-count span.on { opacity: 1; transform: none; }
.strip-view {
  position: absolute; inset: 0; overflow: hidden; display: flex; justify-content: center;
  -webkit-mask-image: linear-gradient(transparent 0%, #000 22%, #000 72%, transparent 100%);
  mask-image: linear-gradient(transparent 0%, #000 22%, #000 72%, transparent 100%);
}
.strip-text { font-weight: 600; color: #fff; text-align: center; white-space: pre-wrap; line-height: calc(1.19em + 5px); will-change: transform; font-family: var(--sf); }
.strip-ctl {
  position: absolute; right: 6px; bottom: 6px; height: 20px; padding: 0 5px; border-radius: 10px;
  display: flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, 0.55); opacity: 0.12; transition: opacity 0.2s;
}
.strip-ctl:hover { opacity: 1; }
.strip-ctl button { width: 16px; height: 16px; display: grid; place-items: center; color: #fff; }
.strip-speed { width: 18px; text-align: center; font: 700 9px var(--sf); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.7); }

/* ================= expanded ================= */
.nl-x {
  position: absolute; top: 0; left: 50%;
  transform-origin: 50% 0;
  --fg: 0 0 0; --orange: rgb(255, 149, 0); --green: rgb(52, 199, 89); --red: rgb(255, 59, 48);
  --popup: rgba(0, 0, 0, 0.055);
  color: rgb(var(--fg) / 0.85);
}
.nl-x.dark { --fg: 255 255 255; --orange: rgb(255, 159, 10); --green: rgb(48, 209, 88); --red: rgb(255, 69, 58); --popup: rgba(255, 255, 255, 0.1); }
#notch-root.theming .nl-x * { transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out; }
.nx-glow { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease-in-out; pointer-events: none; }
.nx-scene {
  position: absolute; right: 0; top: 0; width: 330px; height: 244px; pointer-events: none; opacity: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
.nx-cutout { position: absolute; top: 0; left: 50%; background: #000; border-radius: 0 0 10px 10px; pointer-events: none; }
.nl-x.dark .nx-cutout { display: none; }

.nx-top { position: absolute; left: 0; right: 0; top: 0; padding: 0 20px; display: flex; align-items: center; }
.nx-tabs { flex: 1 1 0; display: flex; gap: 2px; justify-content: flex-start; }
.nx-gap { flex: none; }
.nx-status { flex: 1 1 0; display: flex; gap: 7px; justify-content: flex-end; align-items: center; }
.nx-tab { width: 27px; height: 23px; border-radius: 8px; display: grid; place-items: center; color: rgb(var(--fg) / 0.425); }
.nx-tab:hover { background: rgb(var(--fg) / 0.068); }
.nx-tab.on { background: rgb(var(--fg) / 0.153); color: rgb(var(--fg) / 0.85); }
.nx-fchip { display: flex; align-items: center; gap: 3px; color: var(--orange); white-space: nowrap; }
.nx-batt { display: flex; align-items: center; gap: 3px; font: 500 11px var(--sf); color: rgb(var(--fg) / 0.51); white-space: nowrap; }
.batt { display: flex; align-items: center; gap: 1px; }
.batt-body { position: relative; width: 20px; height: 10px; display: flex; align-items: center; }
.batt-rim { position: absolute; inset: -0.5px; border: 1px solid rgb(var(--fg) / 0.4675); border-radius: 3.5px; }
.batt-fill { position: relative; margin-left: 2px; height: 6px; border-radius: 1.5px; background: rgb(var(--fg) / 0.595); }
.batt-fill.low { background: var(--red); }
.batt-bolt { position: absolute; inset: 0; display: grid; place-items: center; color: rgb(var(--fg) / 0.85); }
.batt-cap { width: 1.5px; height: 4px; border-radius: 1px; background: rgb(var(--fg) / 0.4675); }
.nx-ib { width: 20px; height: 22px; display: grid; place-items: center; color: rgb(var(--fg) / 0.425); }
.nx-gear { color: rgb(var(--fg) / 0.3825); }
.nx-theme:hover { color: rgb(var(--fg) / 0.765); }
.nx-quit { height: 22px; display: flex; align-items: center; gap: 4px; font: 600 11px var(--sf); color: rgb(var(--fg) / 0.3825); }
.nx-quit span { display: none; }
.nx-quit.armed { color: var(--red); }
.nx-quit.armed span { display: inline; }

.nx-body { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; flex-direction: column; }
.nx-body > * { flex: 1 1 auto; min-height: 0; }

/* shared controls */
.chip {
  height: 26px; padding: 0 10px !important; border-radius: 13px; flex: none;
  font: 600 11px var(--sfr) !important; white-space: nowrap;
  background: rgb(var(--fg) / 0.068) !important;
}
.chip.on { background: rgb(var(--fg) / 0.204) !important; }
.stog { display: flex; align-items: center; gap: 6.5px; padding-left: 9px !important; font: 500 11px var(--sf) !important; color: rgb(var(--fg) / 0.3825) !important; white-space: nowrap; flex: none; }
.stog.on { color: rgb(var(--fg) / 0.68) !important; }
.icb { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: rgb(var(--fg) / 0.6375) !important; flex: none; }
.icb:hover { color: rgb(var(--fg) / 0.85) !important; background: rgb(var(--fg) / 0.102) !important; }
.row { display: flex; align-items: center; }
.row8 { display: flex; align-items: center; gap: 8px; }
.row12 { display: flex; align-items: center; gap: 12px; }
.plain { font: 500 11px var(--sf) !important; color: rgb(var(--fg) / 0.425) !important; flex: none; }
.caps { font: 700 9px var(--sf); letter-spacing: 0.6px; color: rgb(var(--fg) / 0.34); white-space: nowrap; }
.field { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: rgb(var(--fg) / 0.068); font-size: 12px; flex: 1 1 auto; min-width: 0; }
.field input, .field-in { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0; font-size: 12px; }
.field input::placeholder, .fs-task::placeholder, .pv-script::placeholder, .field-in::placeholder { color: rgb(var(--fg) / 0.5); }
.field.nudge { box-shadow: inset 0 0 0 1px rgb(from var(--orange) r g b / 0.8); }

/* Player */
.pl { display: flex; flex-direction: column; gap: 10px; }
.pl-bar { height: 26px; flex: none; display: flex; align-items: center; gap: 6px; }
.np { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; gap: 18px; }
.np-art { position: relative; width: 124px; height: 124px; flex: none; }
.artwork, .vinyl { position: absolute; inset: 0; transition: opacity var(--sp-vinyl-ms) var(--sp-vinyl), transform var(--sp-vinyl-ms) var(--sp-vinyl); }
.artwork.gone, .vinyl.gone { opacity: 0; transform: scale(0.9); pointer-events: none; }
.art-img {
  position: absolute; inset: 0; border-radius: 18px; background: center / cover no-repeat; display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 20px var(--tint2); transform: scale(0.94);
  transition: box-shadow var(--sp-art-ms) var(--sp-art), transform var(--sp-art-ms) var(--sp-art);
}
.artwork.playing .art-img { box-shadow: 0 0 44px var(--tint); transform: none; }
.vl-disc { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 16px var(--tint2); transition: box-shadow var(--sp-art-ms) var(--sp-art); }
.vinyl.playing .vl-disc { box-shadow: 0 0 36px var(--tint); }
.vl-spin { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle closest-side, rgb(36, 36, 36) 44%, rgb(8, 8, 8) 100%); }
.vl-groove { position: absolute; border: 0.6px solid; border-radius: 50%; }
.vl-label { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; background: center / cover no-repeat; }
.vl-plain i { position: absolute; inset: 18%; border-radius: 50%; border: 0.8px solid rgba(0, 0, 0, 0.25); }
.vl-pin { position: absolute; left: 50%; top: 50%; width: 4.3px; height: 4.3px; margin: -2.15px; border-radius: 50%; background: rgb(209, 209, 209); }
.vl-shine { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 60deg, transparent 0, rgba(255, 255, 255, 0.11) 12.5%, transparent 25%, transparent 37.5%, transparent 50%, rgba(255, 255, 255, 0.07) 62.5%, transparent 75%, transparent 100%); }
.vl-arm {
  position: absolute; left: calc(124px * 0.93 - 5.5px); top: calc(124px * 0.22 - 0.5 * (11px + 124px * 0.46 + 11px));
  width: 11px; display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 6%; transform: rotate(-9deg);
  transition: transform var(--sp-arm-ms) var(--sp-arm);
}
.vinyl.playing .vl-arm { transform: rotate(24deg); }
.vl-pivot { width: 11px; height: 11px; border-radius: 50%; background: linear-gradient(rgb(217, 217, 217), rgb(140, 140, 140)); }
.vl-rod { width: 2.2px; height: calc(124px * 0.46); border-radius: 2px; background: rgb(199, 199, 199); }
.vl-head { width: 6px; height: 11px; border-radius: 1.5px; background: rgb(158, 158, 158); }
.np-meta { width: 190px; flex: none; align-self: stretch; display: flex; flex-direction: column; gap: 3px; }
.np-title { font: 700 15px var(--sfr); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { font: 500 12px var(--sf); color: rgb(var(--fg) / 0.51); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr { display: flex; flex-direction: column; gap: 4px; }
.scr-hit { height: 12px; display: flex; align-items: center; touch-action: none; }
.scr-bar { position: relative; width: 100%; height: 5px; border-radius: 3px; background: rgb(var(--fg) / 0.1275); overflow: hidden; transition: height 0.15s; }
.scr-hit.drag .scr-bar { height: 8px; border-radius: 4px; }
.scr-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.scr-times { display: flex; justify-content: space-between; font: 500 10px var(--sf); color: rgb(var(--fg) / 0.3825); }
.tp { display: flex; justify-content: center; align-items: center; gap: 22px; padding-top: 4px; }
.tp-play { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgb(var(--fg) / 0.85) !important; color: rgb(246, 246, 249) !important; flex: none; }
.nl-x.dark .tp-play { color: #000 !important; }
.np-lyrics { flex: 1 1 0; min-width: 0; align-self: stretch; position: relative; }
.ly {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent 0%, #000 28%, #000 72%, transparent 100%);
  mask-image: linear-gradient(transparent 0%, #000 28%, #000 72%, transparent 100%);
}
.ly-in { position: absolute; left: 0; right: 0; top: 0; transition: transform var(--sp-lyrics-ms) var(--sp-lyrics); }
.ly-in p { margin: 0; height: 27px; line-height: 27px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 600 13px var(--sfr); color: rgb(var(--fg) / 0.17); }
.ly-in p.n1 { color: rgb(var(--fg) / 0.357); }
.ly-in p.cur { font: 700 15px var(--sfr); color: rgb(var(--fg) / 0.85); }
.ly-note { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 11px; }
.spin { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(rgb(var(--fg) / 0.6), rgb(var(--fg) / 0.05)); -webkit-mask: radial-gradient(circle, transparent 4.5px, #000 5px); mask: radial-gradient(circle, transparent 4.5px, #000 5px); animation: nlspin 0.9s steps(8) infinite; }
@keyframes nlspin { to { transform: rotate(360deg); } }
.np-empty-art { width: 124px; height: 124px; border-radius: 18px; background: rgb(var(--fg) / 0.051); display: grid; place-items: center; color: rgb(var(--fg) / 0.255); flex: none; }
.np-empty { gap: 16px; }
.np-empty-copy { display: flex; flex-direction: column; gap: 8px; }
.np-empty-copy p { margin: 0; font-size: 12px; color: rgb(var(--fg) / 0.425); max-width: 360px; }

/* Sounds */
.snd { display: flex; flex-direction: column; gap: 12px; }
.snd-cards { height: 84px; display: flex; align-items: center; gap: 10px; flex: none; }
.card {
  flex: 1 1 0; min-height: 84px; padding: 12px !important; border-radius: 16px; display: flex; flex-direction: column; gap: 4px; text-align: left;
  background: var(--c08) !important; box-shadow: inset 0 0 0 1.2px transparent;
}
.card:hover { background: var(--c14) !important; }
.card.on { background: var(--c28) !important; box-shadow: inset 0 0 0 1.2px var(--c70); }
.card-top { display: flex; justify-content: space-between; align-items: center; color: var(--c); }
.card-title { font: 700 14px var(--sfr); }
.card-sub { font-size: 10.5px; color: rgb(var(--fg) / 0.425); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snd-row { height: 44px; flex: none; display: flex; align-items: center; gap: 12px; }
.snd-ic { width: 30px; flex: none; display: grid; place-items: center; }
.snd-name { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.snd-name b { font: 600 13px var(--sfr); white-space: nowrap; }
.snd-name small { font-size: 10px; color: rgb(var(--fg) / 0.34); white-space: nowrap; }

/* mini slider (macOS 26) */
.sl { position: relative; height: 14px; flex: none; touch-action: none; }
.sl-track { position: absolute; left: 0; right: 0; top: 5px; height: 4px; border-radius: 2px; background: rgb(var(--fg) / 0.085); overflow: hidden; }
.sl-fill { position: absolute; left: 0; top: 0; bottom: 0; background: rgb(var(--fg) / 0.2); }
.sl-knob {
  position: absolute; top: 1px; width: 16px; height: 12px; margin-left: -8px; border-radius: 6px; background: #fff;
  box-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
}

/* Shelf */
.shelf-empty { position: relative; border-radius: 18px; display: grid; place-items: center; }
#notch-root.drop-hot .shelf-empty { background: rgb(var(--fg) / 0.068); }
.dash { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dash rect { fill: none; stroke: rgb(var(--fg) / 0.187); stroke-width: 1.5; stroke-dasharray: 6 5; }
#notch-root.drop-hot .dash rect { stroke: rgb(var(--fg) / 0.68); }
.shelf-empty-in { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.shelf-empty-in b { font-size: 13px; font-weight: 600; }
.shelf-empty-in small { font-size: 11px; }
.capture { display: flex; align-items: center; gap: 5px; margin-top: 4px !important; font: 500 11px var(--sf) !important; color: rgb(var(--fg) / 0.425) !important; }
.shelf { display: flex; flex-direction: column; justify-content: center; gap: 8px; border-radius: 16px; }
#notch-root.drop-hot .shelf { background: rgb(var(--fg) / 0.068); padding: 6px; }
.shelf-head { display: flex; align-items: center; gap: 10px; font: 500 11px var(--sf); color: rgb(var(--fg) / 0.425); }
.shelf-head button { font: 500 11px var(--sf) !important; }
.shelf-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.shelf-row::-webkit-scrollbar { display: none; }
.tile { position: relative; width: 104px; height: 124px; flex: none; padding: 8px; border-radius: 12px; background: rgb(var(--fg) / 0.0425); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.tile:hover { background: rgb(var(--fg) / 0.102); }
.tile-thumb { width: 84px; height: 56px; border-radius: 6px; background: center / cover no-repeat; flex: none; }
.tile-icon { width: 56px; height: 56px; flex: none; -webkit-user-drag: none; }
.tile-name { width: 88px; font-size: 11px; line-height: 13px; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.tile-x { position: absolute; top: 5px; right: 5px; display: none !important; color: rgb(var(--fg) / 0.6375) !important; }
.tile:hover .tile-x { display: grid !important; }

/* Clipboard */
.clip { display: flex; flex-direction: column; gap: 8px; }
.clip-bar, .rem-bar { display: flex; align-items: center; gap: 8px; flex: none; }
.clip-list, .rem-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.clip-row { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px !important; border-radius: 8px; flex: none; text-align: left; }
.clip-row:hover { background: rgb(var(--fg) / 0.085) !important; }
.clip-lead { width: 26px; height: 26px; display: grid; place-items: center; flex: none; }
.clip-text { flex: 1; min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-meta { font-size: 10px; color: rgb(var(--fg) / 0.34); white-space: nowrap; }
.clip-copied { display: flex; align-items: center; gap: 4px; font: 600 11px var(--sf); color: var(--green); }
.clip-empty { flex: 1; display: grid; place-items: center; font-size: 12px; color: rgb(var(--fg) / 0.3825); }

/* Reminders */
.rem { display: flex; flex-direction: column; gap: 8px; }
.rem-hint { font-size: 10.5px; color: var(--orange); }
.rem-row { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border-radius: 8px; flex: none; }
.rem-row:hover { background: rgb(var(--fg) / 0.068); }
.rem-row.due { background: rgb(from var(--orange) r g b / 0.12); }
.rem-check { display: grid; color: rgb(var(--fg) / 0.2975) !important; }
.rem-check .x { display: none; }
.rem-row:hover .rem-check { color: var(--green) !important; }
.rem-row:hover .rem-check .o { display: none; }
.rem-row:hover .rem-check .x { display: grid; }
.rem-check span { display: grid; }
.rem-title { flex: 1; min-width: 0; font: 500 12px var(--sf); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rem-snooze { font: 600 10px var(--sf) !important; color: var(--orange) !important; }
.rem-time { font: 600 11px var(--sf); color: rgb(var(--fg) / 0.4675); white-space: nowrap; }
.rem-row.due .rem-time { color: var(--orange); }
.rem-x { display: none !important; color: rgb(var(--fg) / 0.425) !important; }
.rem-row:hover .rem-x { display: grid !important; }

/* Focus: setup */
.fs { display: flex; flex-direction: column; gap: 11px; }
.fs-task { flex: 1; min-width: 0; height: 34px; padding: 0 12px; border-radius: 10px; border: 0; outline: 0; background: rgb(var(--fg) / 0.068); font-size: 13px !important; }
.fs-task.nudge { box-shadow: inset 0 0 0 1px rgb(from var(--orange) r g b / 0.8); }
.fs-start { height: 34px; padding: 0 18px !important; border-radius: 17px; background: var(--orange) !important; color: #000 !important; font: 700 13px var(--sf) !important; flex: none; }
.picker { display: flex; align-items: center; gap: 8px; flex: none; }
.popup { position: relative; display: flex; align-items: center; height: 24px; border-radius: 6px; background: var(--popup); }
.popup select { appearance: none; -webkit-appearance: none; border: 0; outline: 0; background: none; height: 24px; padding: 0 36px 0 12px; font-size: 13px !important; cursor: default; }
.popup .sf { position: absolute; right: 10px; top: 6px; pointer-events: none; }
.goal-btn { display: flex; align-items: center; gap: 6px; }
.goal { display: flex; align-items: center; gap: 8px; font: 500 11px var(--sf); color: rgb(var(--fg) / 0.4675); white-space: nowrap; }
.goal svg { flex: none; }
.upnext { align-self: flex-start; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px !important; border-radius: 15px; background: rgb(from var(--orange) r g b / 0.12) !important; font-size: 12px !important; }

/* Focus: running */
.fr { display: flex; align-items: center; gap: 26px; }
.fr-ring { position: relative; width: 126px; height: 126px; flex: none; display: grid; place-items: center; }
.fr-ring canvas { position: absolute; left: 0; top: 0; }
.fr-centre { position: relative; display: grid; place-items: center; }
.fr-time { display: flex; flex-direction: column; align-items: center; }
.fr-time .mono { font: 700 22px var(--sfr); font-variant-numeric: tabular-nums; }
.fr-time small { font: 500 10px var(--sf); color: rgb(var(--fg) / 0.3825); }
.fr-count { font: 700 46px var(--sfr); transition: transform var(--sp-count-ms) var(--sp-count), opacity 0.2s; }
.fr-count.tick { transform: translateY(-10px); opacity: 0.4; transition: none; }
.fr-breathe { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fr-breathe i { width: 30px; height: 30px; border-radius: 50%; background: rgb(from var(--orange) r g b / 0.85); }
.fr-breathe span { font: 600 11px var(--sfr); }
.fr-info { width: 270px; flex: none; align-self: stretch; display: flex; flex-direction: column; gap: 8px; position: relative; }
.fr-task { font: 700 22px var(--sfr); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.menu { position: relative; display: flex; align-items: center; gap: 4px; font-size: 13px; color: rgb(var(--fg) / 0.85); }
.menu > .sf:first-child { margin-right: 1px; }
.menu select { position: absolute; inset: 0; opacity: 0; width: 100%; appearance: none; }
.cbtn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--orange) !important; color: #000 !important; flex: none; }

/* Focus: stats */
.fst { display: flex; align-items: flex-start; gap: 24px; }
.fst-week { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.back { display: flex; align-items: center; gap: 4px; font: 600 11px var(--sf) !important; color: rgb(var(--fg) / 0.51) !important; }
.fst-bars { height: 130px; display: flex; align-items: flex-end; gap: 10px; }
.fst-day { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fst-day i { width: 22px; border-radius: 4px; }
.fst-v { font: 600 8px var(--sf); color: rgb(var(--fg) / 0.3825); white-space: nowrap; min-height: 10px; }
.fst-l { font: 500 10px var(--sf); color: rgb(var(--fg) / 0.3825); }
.fst-l.t { font-weight: 700; color: rgb(var(--fg) / 0.68); }
.fst-sum { display: flex; gap: 10px; font: 500 10.5px var(--sf); color: rgb(var(--fg) / 0.4675); white-space: nowrap; }
.fst-today { width: 250px; flex: none; display: flex; flex-direction: column; gap: 6px; }
.fst-list { display: flex; flex-direction: column; gap: 5px; max-height: 120px; overflow-y: auto; }
.fst-row { display: flex; align-items: center; gap: 8px; }
.fst-row i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.fst-row .t { font: 500 12px var(--sf); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fst-row .r { font: 600 10px var(--sf); color: var(--orange); }
.fst-row .m { font-size: 11px; color: rgb(var(--fg) / 0.425); }

/* Teleprompter tab */
.pv { display: flex; gap: 14px; padding-top: 8px; }
.pv-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pv-editor { flex: 1; min-height: 0; border-radius: 10px; background: rgb(var(--fg) / 0.0595); padding: 6px; display: flex; }
.pv-editor.hot { background: rgb(var(--fg) / 0.119); }
.pv-script { flex: 1; border: 0; outline: 0; resize: none; background: none; font-size: 12px !important; line-height: 15px !important; padding: 0 5px; user-select: text; -webkit-user-select: text; scrollbar-width: thin; }
.pv-hint { font-size: 10px; color: rgb(var(--fg) / 0.34); white-space: nowrap; overflow: hidden; }
.pv-right { width: 210px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.pv-start { height: 28px; border-radius: 14px; background: var(--orange) !important; color: #000 !important; font: 700 12px var(--sf) !important; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pv-start:disabled { opacity: 0.5; }
.lab { display: flex; flex-direction: column; gap: 2px; }
.lab-head { display: flex; align-items: center; font: 500 11px var(--sf); color: rgb(var(--fg) / 0.51); }
.lab-head .mono { font: 600 10px var(--sf); font-variant-numeric: tabular-nums; color: rgb(var(--fg) / 0.3825); }
.pv-est { font-size: 10px; color: rgb(var(--fg) / 0.3825); min-height: 12px; }
.pv-note { font-size: 10px; color: rgb(var(--fg) / 0.2975); }

/* Moments */
.mo { display: flex; align-items: flex-start; gap: 24px; }
.mo-done { gap: 26px; }
.mo-main, .mo-col { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; gap: 6px; }
.mo-col { gap: 8px; }
.mo-side { flex: none; display: flex; flex-direction: column; }
.mo-h { font: 700 28px var(--sfr); }
.mo-sub { font-size: 13px; color: rgb(var(--fg) / 0.51); }
.rate { display: flex; gap: 6px; }
.rate-b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 9px var(--sf) !important; background: rgb(var(--fg) / 0.085) !important; color: rgb(var(--fg) / 0.425) !important; transition: transform var(--sp-pop-ms) var(--sp-pop); }
.rate-b.on { background: var(--orange) !important; color: #000 !important; }
.rate-b.cur { transform: scale(1.12); }
.mo-next { height: 28px; padding: 0 10px; border-radius: 8px; background: rgb(var(--fg) / 0.068); flex: none; }
.ag { display: flex; gap: 8px; font-size: 12px; }
.ag .mono { width: 58px; flex: none; font: 600 11px var(--sf); color: var(--orange); }

/* hint bubble under the notch */
.notch-hint {
  position: fixed; top: 44px; left: 50%; transform: translateX(-50%);
  z-index: 40; padding: 6px 12px; border-radius: 999px; font: 500 12px system-ui, -apple-system, sans-serif;
  background: rgba(20, 20, 22, 0.8); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: hintIn 0.6s ease 1.2s both, hintBob 2.4s ease-in-out 2s infinite;
  pointer-events: none; transition: opacity 0.3s;
}
.notch-hint.gone { opacity: 0; }
@keyframes hintIn { from { opacity: 0; transform: translate(-50%, -8px); } }
@keyframes hintBob { 50% { transform: translate(-50%, 3px); } }
@media (max-width: 760px) { .notch-hint { display: none; } }

/* Dictation (collapsed) */
.dwave { display: flex; align-items: center; gap: 2px; height: 16px; }
.dwave i { display: block; width: 2.5px; height: 3px; border-radius: 2px; background: #fff; }
.c-dict { display: block; font: 600 12px var(--sfr); line-height: 15px; color: rgba(255, 255, 255, 0.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: center; }
.c-dict.empty { color: rgba(255, 255, 255, 0.5); }

/* Screenshot peek (collapsed) */
.c-peek { width: 100%; display: flex; justify-content: center; align-items: flex-start; }
.c-peek img {
  display: block; height: 68px; max-width: calc(100% - 32px); object-fit: contain; border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.18);
  animation: peekIn var(--sp-open-ms) var(--sp-open) both;
}
@keyframes peekIn { from { opacity: 0; transform: translateY(-84px); } }
.clip-img { width: 26px; height: 26px; border-radius: 5px; object-fit: cover; display: block; }
