/* TangMeo — the notch panel as a living DOM prototype.
   Values are ported from the app, not designed for the web. Sources:
   NotchStyle.swift (hub page ladders), the shoulder strip's OWN local tokens
   (TangMeoHubStyle — icon 72/96%, rings 8/12% and 4/11%, NOT the page ladder),
   TangMeoHubPanelMetrics.swift (geometry), NotchAnimations.swift (balanced),
   TangMeoPalette.swift (family + info colors), and pixel measurements of the
   reference renders (Display-P3 corrected; hex from source, never eyedropped).
   Module-color toggle is ON here (matches the reference captures).
   THE CONTAINMENT RULE: vivid info color only on a direction of change;
   the muted family tints are a separate identity layer (selected tabs,
   icon chips). Everything else stays on the gray ladders. */

.hub {
  /* text opacity ladder — NotchStyle.Text (hub pages) */
  --tx-identity: rgba(255, 255, 255, .85);
  --tx-value: rgba(255, 255, 255, .75);
  --tx-secondary: rgba(255, 255, 255, .5);
  --tx-tertiary: rgba(255, 255, 255, .46); /* .40 in-app; raised for 4.5:1 web text */
  --tx-placeholder: rgba(255, 255, 255, .35);
  --tx-status: rgba(255, 255, 255, .3);
  --tx-disabled: rgba(255, 255, 255, .25);
  /* surface fill ladder — NotchStyle.Fill (fill-only) */
  --fill-group: rgba(255, 255, 255, .04);
  --fill-readonly: rgba(255, 255, 255, .05);
  --fill-interactive: rgba(255, 255, 255, .06);
  --fill-lifted: rgba(255, 255, 255, .10);
  --fill-selected: rgba(255, 255, 255, .14);
  /* info colors — TangMeoPalette.info (always on) */
  --up: #4CC76B;
  --down: #EB5757;
  --active: #4C9EEB;
  /* family identity colors — TangMeoPalette.familyHex (module color ON) */
  --fam-celadon: #93BAB2;
  --fam-sand: #C7B594;
  --fam-mist: #8FACD0;
  --fam-slateteal: #8DB5C2;
  --fam-grayviolet: #ACAACB;
  /* radii */
  --r-tile: 12px;
  --r-card: 10px;
  --r-control: 8px;
  --r-chip: 7px;
  /* hubReorder spring (.28s, damping .85) — dashboard reorder ONLY */
  --ease-reorder: cubic-bezier(.3, 1.18, .48, 1);

  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 11px;
  line-height: 1.3;
  color: var(--tx-value);
  -webkit-user-select: none;
  user-select: none;
  /* the app's neutral tint cascade (module color aside, fields stay gray) */
  caret-color: rgba(255, 255, 255, .62);
}
.hub ::selection { background: rgba(255, 255, 255, .25); }
.hub b, .hub strong { font-weight: 600; }
/* the app gives buttons no press feedback inside the panel — cursor only */
.hub button { cursor: pointer; }

/* ============ shoulder strip — its own token set, not the page ladder ============
   height 37, pad-top 2, hpad 40, tab slot 36 + gap 8 (pitch 44), controls
   pitch 40 in a 168 right-aligned slot. Tabs are near-black fills with a 1px
   ring; only ring + icon read. Hover = cursor only (like the app). */
.hub-strip {
  position: absolute; top: 0; left: 0; right: 0; height: 37px;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 2px 40px 0;
  z-index: 6;
}
.notch-fixed[data-current="shelf"] .hub-strip,
.notch-fixed[data-current="convert"] .hub-strip { display: none; }

.strip-tabs { display: flex; gap: 8px; }
.stab, .sctl {
  width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  border: none; padding: 0; margin: 0;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .72);
}
.stab svg, .sctl svg { width: 13px; height: 13px; display: block; }
.stab[aria-selected="true"] {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
  color: var(--tab-family, rgba(255, 255, 255, .96));
}
.stab:focus-visible, .sctl:focus-visible { outline: 2px solid var(--active); outline-offset: 2px; }

.strip-controls { display: flex; gap: 8px; width: 168px; justify-content: flex-end; }
.sctl { box-shadow: 0 0 0 1px rgba(255, 255, 255, .04); }
/* charging: the battery control goes green — the strip's one info-color site */
.sctl-batt { color: rgba(255, 255, 255, .88); }
.sctl-batt.charging { color: var(--up); }

/* module-cycler chevrons: appear over the content edges while the surface is
   hovered (hub routes only) — 24px circles, idle .78, highlighted 1, 0.16s */
.cycler { position: absolute; inset: 37px 0 0; z-index: 7; pointer-events: none; }
.cyc {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px;
  border: none; border-radius: 50%; padding: 0;
  background: rgba(0, 0, 0, .8);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 2px 4px rgba(0, 0, 0, .3);
  color: rgba(255, 255, 255, .9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--hub-highlight-dur) ease-in-out;
}
.cyc svg { width: 9px; height: 9px; }
.cyc-l { left: 14px; }
.cyc-l svg { transform: rotate(90deg); }
.cyc-r { right: 14px; }
.cyc-r svg { transform: rotate(-90deg); }
.notch-fixed.open:hover .hub-pages ~ .cycler .cyc,
.notch-fixed.open:hover .cycler .cyc { opacity: .78; pointer-events: auto; }
.notch-fixed.open .cycler .cyc:hover { opacity: 1; }
.notch-fixed[data-current="shelf"] .cycler,
.notch-fixed[data-current="convert"] .cycler { display: none; }

/* ============ page content box ============ */
.hpage .page-body { position: absolute; left: 8px; right: 8px; top: 37px; bottom: 4px; }
.hpage[data-page="home"] .page-body { left: 0; right: 0; bottom: 0; }
.hpage[data-page="shelf"] .page-body,
.hpage[data-page="convert"] .page-body { inset: 0; }

.page-scroll {
  position: absolute; inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.page-scroll::-webkit-scrollbar { display: none; }

/* shared primitives */
.icon-b {
  width: 28px; height: 28px; flex: none;
  border: none; padding: 0;
  border-radius: var(--r-control);
  background: var(--fill-interactive);
  color: var(--tx-secondary);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-b svg { width: 12px; height: 12px; }
.p-search {
  display: flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 9px;
  border-radius: var(--r-control);
  background: var(--fill-interactive);
  color: var(--tx-tertiary);
  cursor: text;
}
.p-search svg { width: 11px; height: 11px; flex: none; }
.p-search input {
  flex: 1; min-width: 0;
  border: none; background: none; outline: none;
  font: inherit; font-size: 12px;
  color: var(--tx-identity);
  padding: 0;
}
/* AppKit's placeholder gray bleeds through at ~58% — not a ladder rung */
.p-search input::placeholder { color: rgba(255, 255, 255, .58); }

/* ============ home dashboard ============
   margins 37, top 45, 6 columns, gap 8, rows 72; tile fill .05 literal */
.dash {
  position: absolute; left: 37px; right: 37px; top: 8px; height: 152px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 72px;
  gap: 8px;
}
.tile {
  position: relative;
  border-radius: var(--r-tile);
  background: var(--fill-readonly);
  padding: 10px;
  overflow: hidden;
  border: none; text-align: left; font: inherit; color: inherit;
  appearance: none; -webkit-appearance: none;
}
.tile.chip1 { border-radius: var(--r-card); padding: 7px 10px; display: flex; flex-direction: column; justify-content: center; }
.tile.span2 { grid-column: span 2; }
/* hover: cursor only, like the app (no fill change) */
.tile.t-link { cursor: pointer; }
.tile:focus-visible { outline: 2px solid var(--active); outline-offset: 2px; }
.tile-head {
  display: flex; align-items: center; gap: 4px;
  color: var(--tx-secondary);
  font-size: 10px; font-weight: 500;
  white-space: nowrap;
}
/* family-tinted icon in a 17px circle at 16% of the family color */
.tile-ico {
  width: 17px; height: 17px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fam, rgba(255, 255, 255, .5));
  background: color-mix(in srgb, var(--fam, transparent) 16%, transparent);
}
.tile-ico svg { width: 10px; height: 10px; }
.tile-big {
  position: absolute; top: 10px; right: 12px;
  font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .88);
  font-variant-numeric: tabular-nums;
}
.tile-title {
  margin-top: 7px;
  font-size: 12px; color: var(--tx-identity);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tile-foot { position: absolute; left: 12px; bottom: 8px; font-size: 10px; color: var(--tx-tertiary); }
.tile-spark { position: absolute; left: 12px; right: 12px; bottom: 8px; height: 16px; color: rgba(255, 255, 255, .55); }
.tile-spark svg { width: 100%; height: 100%; display: block; }
.tile-strow {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 5px; font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.tile-strow b { font-weight: 500; color: var(--tx-identity); flex: 1; font-variant-numeric: normal; }
.tile-strow span { color: rgba(255, 255, 255, .7); }
.tile-strow i { font-style: normal; font-weight: 500; }
/* battery chip — one infoTint switches label/icon/value/bar together */
.tile-batt .tile-ico { color: var(--up); background: none; width: auto; }
.tile-batt .tile-ico svg { width: 14px; height: 14px; }
.tile-batt .tile-big { position: static; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--up); }
.tile-bar {
  position: absolute; left: 10px; right: 10px; bottom: 7px; height: 4px;
  border-radius: 2px; background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.tile-bar i { display: block; height: 100%; width: 86%; border-radius: 2px; background: var(--up); }
.tile-dash { margin-top: 4px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .9); }
.tile-word { margin-top: 4px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .9); }
.dir-up { color: var(--up); }
.dir-down { color: var(--down); }
.dir-flat { color: rgba(255, 255, 255, .55); }

/* edit mode: static 1px 18%-white outline (radius 12 on every cell), a '−'
   badge per tile, and a Done capsule — NO jiggle (the app has none) */
.dash.editing .tile { cursor: grab; }
.dash.editing .tile::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  pointer-events: none;
}
.tile-minus {
  position: absolute; top: 2px; left: 2px; z-index: 3;
  width: 18px; height: 18px;
  border: none; border-radius: 50%; padding: 0;
  background: rgba(0, 0, 0, .4);
  color: rgba(255, 255, 255, .85);
  display: none; align-items: center; justify-content: center;
}
.tile-minus svg { width: 13px; height: 13px; }
.dash.editing .tile-minus { display: flex; }
.dash-done {
  position: absolute; top: 45px; right: 37px; z-index: 4;
  height: 22px; padding: 0 12px;
  border: none; border-radius: 11px;
  background: var(--fill-selected);
  color: #fff; font: inherit; font-size: 10px; font-weight: 600;
  display: none;
}
.dash-done.shown { display: block; }
.tile.dragging {
  opacity: 0;
}
.drag-proxy {
  position: fixed; z-index: 80; pointer-events: none;
  transform: scale(1.06); transform-origin: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 4px 10px rgba(0, 0, 0, .45);
  border-radius: 12px;
}
.drag-proxy.st-proxy { transform: none; box-shadow: none; background: var(--fill-lifted); border-radius: var(--r-card); }

/* ============ clipboard ============ */
.clip-head {
  position: absolute; left: 8px; right: 8px; top: 4px; height: 28px;
  display: flex; align-items: center; gap: 8px;
}
.seg {
  display: flex; height: 26px; padding: 2px;
  border-radius: var(--r-control);
  background: var(--fill-group);
}
.seg-b {
  border: none; padding: 0 10px;
  border-radius: 6px;
  background: none; color: var(--tx-secondary);
  font: inherit; font-size: 11px; font-weight: 500;
}
.seg-b[aria-selected="true"] { background: rgba(255, 255, 255, .15); color: #fff; }
.clip-search { flex: 1; }
.clip-search svg { color: var(--tx-tertiary); }
.icon-b.clip-toggle { width: 28px; height: 28px; }
.clip-count { font-size: 10px; color: var(--tx-placeholder); white-space: nowrap; font-variant-numeric: tabular-nums; }

.chip-row {
  position: absolute; left: 8px; right: 8px; top: 40px; height: 21px;
  display: flex; align-items: center; gap: 8px;
  overflow: hidden;
}
.chip-lead {
  display: inline-flex; align-items: center; gap: 4px;
  border: none; background: none; padding: 0 2px;
  color: rgba(255, 255, 255, .62); font: inherit; font-size: 11px;
}
.chip-lead svg { width: 10px; height: 10px; }
.chip-appbadge {
  border: none; background: none; padding: 0 2px;
  color: rgba(255, 255, 255, .62);
  display: inline-flex;
}
.chip-appbadge svg { width: 11px; height: 11px; }
.chip {
  border: none;
  height: 21px; width: 36px; flex: none;
  border-radius: 11px;
  background: var(--fill-interactive);
  color: rgba(255, 255, 255, .53);
  font: inherit; font-size: 10px; font-weight: 500;
  white-space: nowrap;
  padding: 0;
}
.chip[aria-pressed="true"] { background: rgba(255, 255, 255, .15); color: #fff; }
.chip-row .chip { margin-right: -2px; } /* HStack spacing 6, row gap is 8 */

.clip-scroll { top: 69px; }
.clip-list { padding: 0 0 6px; }
.clip-row {
  appearance: none; -webkit-appearance: none;
  border: none; background: none;
  font: inherit; color: inherit; text-align: left;
  width: 100%;
  position: relative;
  display: flex; align-items: center; gap: 10px;
  height: 44px; margin-bottom: 2px;
  padding: 0 10px;
  border-radius: var(--r-control);
  transition: background .12s ease-in-out;
}
.clip-row:hover { background: var(--fill-interactive); }
.clip-row:focus-visible { outline: 2px solid var(--active); outline-offset: 1px; }
.clip-row.selected, .clip-row.copied { background: var(--fill-lifted); transition: none; }
/* module color ON: selected rows carry the 2px family accent bar */
.clip-row.selected::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px;
  border-radius: 1px; background: var(--fam-grayviolet);
}
.clip-ico {
  width: 30px; height: 30px; flex: none;
  border-radius: 6px;
  background: var(--fill-interactive);
  display: flex; align-items: center; justify-content: center;
  color: var(--tx-secondary);
}
.clip-ico svg { width: 14px; height: 14px; }
.clip-title {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--tx-identity);
}
.clip-title > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.clip-pin { width: 9px; height: 9px; flex: none; color: var(--tx-secondary); }
.clip-eye {
  display: none;
  width: 24px; height: 24px; flex: none;
  border: none; border-radius: 50%; padding: 0;
  background: rgba(255, 255, 255, .08);
  color: var(--tx-secondary);
  align-items: center; justify-content: center;
}
.clip-eye svg { width: 11px; height: 11px; }
.clip-row:hover .clip-eye { display: inline-flex; }
.clip-meta { flex: none; font-size: 10px; color: var(--tx-placeholder); }
.clip-row .copy-pill {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-weight: 500; color: #fff;
  background: var(--fill-selected);
  border-radius: 999px; padding: 3px 10px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--hub-highlight-dur) ease-in-out;
}
.clip-row.copied .copy-pill { opacity: 1; }
.clip-row.copied .clip-meta { visibility: hidden; }
.clip-empty { padding: 26px 0; text-align: center; font-size: 12px; color: var(--tx-status); }

/* ============ stocks ============ */
.hpage[data-page="stocks"] .page-scroll { padding: 10px 8px; }
.st-indices { display: flex; gap: 8px; }
.st-idx {
  flex: 1; min-width: 0;
  border-radius: var(--r-card);
  background: var(--fill-readonly);
  padding: 8px;
}
.st-idx-name {
  display: flex; align-items: baseline; gap: 4px;
  font-size: 11px; font-weight: 500; color: var(--tx-identity);
  white-space: nowrap; overflow: hidden;
}
.st-idx-name i { font-style: normal; font-size: 9px; font-weight: 400; color: var(--tx-status); }
.st-idx-val {
  margin-top: 4px;
  display: flex; align-items: baseline; gap: 6px;
  font-size: 11px; color: var(--tx-value);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.st-idx-val i { font-style: normal; font-weight: 500; }

.st-search { margin-top: 12px; }
.st-search svg { color: var(--tx-tertiary); }
.st-add { margin-top: 8px; display: flex; gap: 8px; }
.st-code { flex: 1; }
.st-code input { font-variant-numeric: tabular-nums; }
.st-hash { font-size: 10px; color: var(--tx-placeholder); }
.st-mkt {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  border: none;
  width: 44px; height: 28px; flex: none;
  border-radius: var(--r-control);
  background: var(--fill-lifted);
  color: var(--tx-identity);
  font: inherit; font-size: 11px; font-weight: 600;
}
.st-mkt svg { width: 9px; height: 9px; }
.st-plus { color: rgba(255, 255, 255, .8); }

.st-list { margin-top: 12px; }
.st-row {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 0;
  margin-bottom: 8px;
  border-radius: var(--r-control);
}
.st-row.dragging { opacity: 0; }
.st-id { flex: 1; min-width: 0; }
.st-name { font-size: 12px; font-weight: 500; color: var(--tx-identity); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-sub {
  margin-top: 2px;
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--tx-secondary);
}
.st-sub .mkt { color: var(--tx-tertiary); }
.st-sub .closed { color: var(--tx-status); }
.st-sub .arrow { font-size: 8px; font-weight: 700; }
.st-spark { width: 68px; height: 28px; flex: none; }
.st-spark svg { width: 100%; height: 100%; display: block; }
.st-quote { flex: none; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.st-price { font-size: 12px; color: var(--tx-value); }
.st-pct { margin-top: 2px; font-size: 11px; font-weight: 500; }
.st-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.st-tools .icon-b { background: none; width: 24px; height: 24px; }
.st-chev { color: var(--tx-status); }
.st-chev svg { width: 9px; height: 9px; }
.st-rm { color: var(--tx-tertiary); }
.st-rm svg { width: 13px; height: 13px; }
.st-grab { cursor: grab; color: var(--tx-placeholder); }
.st-grab svg { width: 12px; height: 12px; }
.st-section { margin: 12px 0 6px; font-size: 11px; font-weight: 600; color: var(--tx-secondary); }
/* alert builder rows — every control 26 tall, radius 7 */
.st-alert-build { display: flex; gap: 6px; align-items: center; }
.st-alert-build + .st-alert-build { margin-top: 6px; }
.sa-menu, .sa-chip, .sa-field, .sa-add, .sa-cool {
  height: 26px;
  border: none; border-radius: var(--r-chip);
  background: var(--fill-readonly);
  color: var(--tx-tertiary);
  font: inherit; font-size: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 9px;
}
.sa-menu { background: var(--fill-interactive); font-size: 11px; }
.sa-menu svg { width: 9px; height: 9px; }
.sa-chip[aria-pressed="true"] { background: var(--fill-selected); color: rgba(255, 255, 255, .9); font-weight: 600; }
.sa-chip.sa-up[aria-pressed="true"] { color: var(--up); }
.sa-chip.sa-down[aria-pressed="true"] { color: var(--down); }
.sa-field { background: var(--fill-interactive); width: 64px; cursor: text; }
.sa-field input {
  width: 100%; border: none; background: none; outline: none;
  font: inherit; font-size: 12px; color: var(--tx-identity);
  font-variant-numeric: tabular-nums;
}
.sa-field input::placeholder { color: var(--tx-placeholder); }
.sa-add { width: 26px; justify-content: center; background: var(--fill-interactive); color: rgba(255, 255, 255, .8); }
.sa-add svg { width: 11px; height: 11px; }
.sa-cool { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .6); }

/* ============ voice ============ */
.vo-body { text-align: center; }
.vo-wave {
  position: absolute; left: 0; right: 0; top: 38px;
  display: flex; justify-content: center; align-items: center; gap: 3.5px;
  height: 44px;
}
.vo-wave i {
  width: 3px; height: 4px; border-radius: 2px;
  background: #fff; opacity: .25;
  transition: height .1s linear, opacity .1s linear;
}
.vo-hint {
  position: absolute; left: 0; right: 0; top: 96px;
  display: flex; justify-content: center; align-items: center; gap: 6px;
  font-size: 12px; color: var(--tx-placeholder);
}
.vo-key {
  font-family: inherit; font-size: 10px; font-weight: 600;
  color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
  border-radius: 5px; padding: 2px 6px;
}
.vo-bar {
  position: absolute; left: 4px; right: 33px; bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.vo-mic {
  position: relative;
  width: 40px; height: 40px; flex: none;
  border: none; background: none; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.vo-mic::before {
  content: ""; position: absolute; inset: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fam-celadon) 20%, transparent);
  transition: background var(--hub-highlight-dur) ease-in-out;
}
.vo-mic svg { position: relative; width: 11px; height: 11px; color: rgba(255, 255, 255, .9); }
.vo-mic .vo-i-stop { display: none; }
.vo-mic[aria-pressed="true"] .vo-i-mic { display: none; }
.vo-mic[aria-pressed="true"] .vo-i-stop { display: block; }
.vo-mic[aria-pressed="true"]::before { background: color-mix(in srgb, var(--down) 22%, transparent); }
.vo-mic .vo-pulse {
  position: absolute; inset: 4px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  opacity: 0; pointer-events: none;
}
.vo-mic[aria-pressed="true"] .vo-pulse { animation: vo-ping 1.1s ease-out infinite; }
@keyframes vo-ping {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}
.vo-mic:focus-visible { outline: 2px solid var(--active); outline-offset: 2px; }
.vo-chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 21px; padding: 0 8px;
  border-radius: 11px;
  background: var(--fill-interactive);
  font-size: 10px; font-weight: 500;
  white-space: nowrap;
}
.vo-chip b { font-weight: 500; color: var(--tx-secondary); }
.vo-chip span { color: rgba(255, 255, 255, .9); }
.vo-state { margin-left: auto; text-align: right; line-height: 1.35; white-space: nowrap; }
.vo-state b { display: block; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.vo-state i { display: block; font-style: normal; font-size: 9px; font-weight: 500; color: rgba(255, 255, 255, .42); }

/* ============ translation (offline empty state, as the app shows) ============ */
.tr-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.tr-icon { width: 21px; height: 21px; color: rgba(255, 255, 255, .36); margin-bottom: 3px; }
.tr-title { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .79); }
.tr-sub { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .58); }

/* ============ shelf / tray (drag-drop overlay surface, no strip) ============
   these two surfaces DO have press feedback (PressedButtonStyle) */
.sh-top {
  position: absolute; left: 40px; right: 40px; top: 2px;
  display: flex; align-items: center; justify-content: space-between;
}
.sh-count-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  width: 60px; height: 30px; padding: 0;
  border: none; border-radius: 15px;
  background: var(--fill-interactive);
  color: #fff; font: inherit; font-size: 14px; font-weight: 400;
  transition: background var(--hub-highlight-dur) ease-in-out, transform .12s ease-in-out;
}
.sh-count-chip svg { width: 18px; height: 18px; color: #fff; }
.sh-count-chip:hover { background: var(--fill-lifted); }
.sh-count-chip:active { transform: scale(.9); }
.sh-actions { display: flex; gap: 8px; }
.sh-round {
  width: 30px; height: 30px; border-radius: 50%; background: var(--fill-interactive);
  transition: background var(--hub-highlight-dur) ease-in-out, transform .12s ease-in-out;
}
.sh-round svg { width: 14px; height: 14px; }
.sh-round:hover { background: var(--fill-lifted); }
.sh-round:active { transform: scale(.9); }
.sh-clear {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: none;
  width: 60px; height: 30px; padding: 0;
  border-radius: 15px;
  background: var(--fill-interactive);
  color: #fff; font: inherit; font-size: 14px; font-weight: 400;
  transition: background var(--hub-highlight-dur) ease-in-out, transform .12s ease-in-out;
}
.sh-clear svg { width: 16px; height: 16px; }
.sh-clear:hover { background: var(--fill-lifted); }
.sh-clear:active { transform: scale(.9); }
.sh-grid {
  position: absolute; left: 30px; right: 30px; top: 47px; bottom: 14px;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 3px 8px 0;
  scrollbar-width: none;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 2%, #000 98%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%),
    linear-gradient(to right, transparent 0, #000 2%, #000 98%, transparent 100%);
  mask-composite: intersect;
}
.sh-grid::-webkit-scrollbar { display: none; }
/* TrayCategoryHeaderView: icon 10 semibold + title 11 semibold + count 10 medium */
.sh-head {
  display: flex; align-items: center; gap: 5px;
  padding-top: 6px; padding-bottom: 2px;
  color: rgba(255, 255, 255, .6);
  font-size: 11px; font-weight: 600;
}
.sh-head svg { width: 11px; height: 11px; flex: none; }
.sh-head-n { font-size: 10px; font-weight: 500; color: rgba(255, 255, 255, .4); }
.sh-row { display: flex; gap: 10px; flex-wrap: wrap; }
.fr-act-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-act i { flex: none; }
.sh-card {
  position: relative;
  width: 80px; height: 94px;
  border-radius: 16px;
  background: var(--fill-lifted);
  display: flex; flex-direction: column; align-items: center;
  padding-top: 8px; gap: 7px;
  transition: transform .25s var(--ease-reorder), opacity .22s ease-out, box-shadow var(--hub-highlight-dur) ease-in-out;
}
.sh-select {
  position: absolute; inset: 0; z-index: 1;
  border: 0; border-radius: inherit; padding: 0;
  background: transparent;
}
.sh-x { position: relative; z-index: 2; }
.sh-card.selected { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.sh-card.entering { transform: scale(.6); opacity: 0; }
.sh-card.leaving { transform: scale(.6); opacity: 0; }
.sh-doc {
  width: 42px; height: 42px; margin-top: 4px;
  display: flex; align-items: center; justify-content: center;
}
.sh-doc::before {
  content: ""; width: 28px; height: 37px;
  background: #f2f2f2; border-radius: 3px;
  clip-path: polygon(0 0, 72% 0, 100% 24%, 100% 100%, 0 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .4);
}
.sh-name {
  width: 72px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 500; color: rgba(255, 255, 255, .86);
  text-align: center; line-height: 1.25;
  overflow: hidden;
  word-break: break-all;
}
.sh-name > span {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.sh-x {
  position: absolute; top: 5px; right: 5px;
  width: 18px; height: 18px;
  border: none; border-radius: 50%; padding: 0;
  background: none;
  display: flex; align-items: center; justify-content: center;
}
.sh-x::before {
  content: ""; position: absolute; inset: 2px;
  border-radius: 50%; background: rgba(0, 0, 0, .28);
}
.sh-x svg { position: relative; width: 14px; height: 14px; color: rgba(255, 255, 255, .58); }

/* ============ converter (drag-drop overlay surface, no strip) ============ */
.cv-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border: none;
  border-radius: 15px;
  background: var(--fill-interactive);
  color: #fff; font: inherit; font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.cv-chip svg { width: 12px; height: 12px; }
button.cv-chip { transition: background var(--hub-highlight-dur) ease-in-out, transform .12s ease-in-out; }
button.cv-chip:hover { background: var(--fill-lifted); }
button.cv-chip:active { transform: scale(.9); }
.cv-close { position: absolute; left: 40px; top: 2px; }
.cv-go { position: absolute; right: 40px; top: 2px; }
.cv-zone {
  position: absolute; top: 46px; height: 134px; width: 269px;
  border-radius: 16px;
  border: 2px dashed rgba(128, 128, 128, .5);
  background: rgba(128, 128, 128, .06);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
/* the app uses literal system colors here (not the palette) — kept faithful */
.cv-src { left: 39px; }
.cv-dst { right: 39px; border-color: rgba(10, 132, 255, .6); background: rgba(10, 132, 255, .1); }
.cv-dst.done { border-color: rgba(48, 209, 88, .6); background: rgba(48, 209, 88, .1); }
.cv-arrow {
  position: absolute; left: 50%; top: 105px; transform: translateX(-50%);
  width: 16px; height: 16px; color: rgba(255, 255, 255, .35);
}
.cv-doc {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: flex-end; justify-content: center;
}
.cv-doc::before {
  content: ""; position: absolute; inset: 0 4px;
  background: #f5f5f7; border-radius: 4px;
  clip-path: polygon(0 0, 72% 0, 100% 24%, 100% 100%, 0 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .4);
}
.cv-doc i {
  position: relative; font-style: normal; font-size: 8px; font-weight: 700; color: #333;
  margin-bottom: 5px; letter-spacing: .02em;
}
.cv-src b { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.cv-dst b { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .9); }
.cv-note { font-style: normal; font-size: 9px; font-weight: 500; color: rgba(255, 255, 255, .45); }
.cv-progress {
  position: absolute; left: 24px; right: 24px; bottom: 12px; height: 3px;
  border-radius: 2px; background: rgba(255, 255, 255, .12);
  overflow: hidden; opacity: 0;
  transition: opacity var(--hub-highlight-dur) ease-in-out;
}
.cv-progress::before {
  content: ""; display: block; height: 100%; width: 0;
  border-radius: 2px; background: rgba(10, 132, 255, .9);
}
.cv-dst.working .cv-progress { opacity: 1; }
.cv-dst.working .cv-progress::before { width: 100%; transition: width 1.2s ease-in-out; }
.cv-quality {
  position: absolute; left: 40px; bottom: 9px;
  height: 23px; padding: 0 9px; border-radius: 5px;
  font-size: 10px; font-weight: 500; color: rgba(255, 255, 255, .7);
  font-variant-numeric: tabular-nums;
}
.cv-toggle {
  position: absolute; left: 97px; bottom: 10px;
  width: 36px; height: 21px; border-radius: 11px;
  background: rgba(255, 255, 255, .14);
}
.cv-toggle::before {
  content: ""; position: absolute; left: 2px; top: 2px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #f5f5f7;
}
.cv-exif {
  position: absolute; left: 141px; bottom: 9px;
  height: 23px; padding: 0 9px; border-radius: 5px;
  background: var(--fill-lifted);
  font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, .7);
}
.cv-fmt {
  position: absolute; right: 40px; bottom: 9px;
  height: 23px; padding: 0 9px; border-radius: var(--r-chip);
  font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .7);
  background: var(--fill-interactive);
}
.cv-fmt svg { width: 8px; height: 8px; }

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .vo-wave i { transition: none; }
  .vo-mic[aria-pressed="true"] .vo-pulse { animation: none; opacity: .4; }
  .sh-card { transition: none; }
  .cv-dst.working .cv-progress::before { transition: none; width: 100%; }
  .clip-row, .cyc { transition: none; }
}

/* ============ file rules / notifications (shared empty-state pattern) ============ */
.nt-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.nt-body .tr-icon { width: 22px; height: 22px; }

/* ============ timer (pomodoro surface, as the app renders by default) ============ */
.ti-hero { position: absolute; left: 4px; top: 2px; right: 4px; display: flex; align-items: center; gap: 10px; }
.ti-hero > svg { width: 26px; height: 26px; color: var(--tx-tertiary); }
.ti-digits { font-size: 32px; font-weight: 600; color: rgba(255, 255, 255, .92); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.ti-seg { margin-left: auto; display: flex; gap: 4px; }
.ti-seg button {
  border: none; height: 24px; padding: 0 11px; border-radius: 12px;
  background: none; color: var(--tx-tertiary);
  font: inherit; font-size: 11px; font-weight: 600;
}
.ti-seg button[aria-selected="true"] { background: #f5f5f7; color: #111; }
.ti-cards { position: absolute; left: 0; right: 0; top: 44px; display: flex; gap: 8px; }
.ti-card {
  flex: 1; border-radius: var(--r-card);
  background: var(--fill-readonly);
  padding: 9px 10px 10px;
  text-align: center;
}
.ti-card b { display: block; font-size: 10px; font-weight: 500; color: var(--tx-secondary); }
.ti-step { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 5px; }
.ti-step button {
  width: 22px; height: 22px; border: none; border-radius: 50%;
  background: var(--fill-interactive); color: var(--tx-secondary);
  font: inherit; font-size: 13px; line-height: 1;
}
.ti-step output { font-size: 17px; font-weight: 600; color: rgba(255, 255, 255, .9); font-variant-numeric: tabular-nums; }
.ti-card i { display: block; font-style: normal; margin-top: 3px; font-size: 9px; color: var(--tx-tertiary); }
.ti-bar { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; align-items: center; gap: 8px; }
.ti-play {
  width: 42px; height: 42px; border: none; border-radius: 50%;
  background: var(--fill-lifted); color: rgba(255, 255, 255, .9);
  display: flex; align-items: center; justify-content: center;
}
.ti-play svg { width: 14px; height: 14px; }
.ti-rounds { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--tx-secondary); }
.ti-rounds output { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.ti-rounds button { width: 20px; height: 20px; border: none; border-radius: 50%; background: var(--fill-interactive); color: var(--tx-secondary); font-size: 12px; line-height: 1; }
.ti-amb { display: flex; gap: 6px; }
.ti-amb .icon-b { width: 30px; height: 30px; }
.ti-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.ti-chip { border: none; height: 26px; padding: 0 11px; border-radius: 13px; background: none; color: var(--tx-tertiary); font: inherit; font-size: 11px; font-weight: 500; }
.ti-chip.on { background: var(--fill-lifted); color: rgba(255, 255, 255, .85); }

/* ============ system stats ============ */
.ss-head { position: absolute; left: 0; top: 0; right: 0; display: flex; align-items: center; }
.ss-head b { font-size: 12px; font-weight: 600; color: var(--tx-identity); }
.ss-ok { margin-left: auto; height: 20px; padding: 0 9px; border-radius: 10px; background: var(--fill-lifted); color: rgba(255, 255, 255, .7); font-size: 10px; font-weight: 500; display: inline-flex; align-items: center; }
.ss-scroll { position: absolute; left: 0; right: 0; top: 26px; bottom: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.ss-scroll::-webkit-scrollbar { display: none; }
.ss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: 8px; }
.ss-card { border-radius: var(--r-card); background: var(--fill-readonly); padding: 10px 12px; min-height: 64px; position: relative; }
.ss-card .tile-head { font-size: 12px; }
.ss-val { position: absolute; top: 9px; right: 12px; font-size: 17px; font-weight: 700; color: rgba(255, 255, 255, .88); font-variant-numeric: tabular-nums; }
.ss-sub { margin-top: 3px; font-size: 10px; color: var(--tx-tertiary); }
.ss-spark { margin-top: 8px; height: 14px; color: rgba(255, 255, 255, .55); }
.ss-spark svg { width: 100%; height: 100%; display: block; }
.ss-net { margin-top: 4px; font-size: 11px; color: var(--tx-value); font-variant-numeric: tabular-nums; }
.ss-net span { color: var(--tx-tertiary); margin-right: 4px; }

/* ============ color picker ============ */
.co-pair { position: absolute; left: 0; right: 0; top: 4px; display: flex; align-items: stretch; gap: 8px; }
.co-card { flex: 1; border-radius: var(--r-card); padding: 8px 10px; min-height: 58px; position: relative; }
.co-card b { font-size: 12px; font-weight: 500; display: block; }
.co-card code { position: absolute; left: 10px; bottom: 8px; font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 11px; }
.co-card .co-acts { position: absolute; right: 8px; top: 8px; display: flex; gap: 6px; opacity: .75; }
.co-card .co-acts svg { width: 12px; height: 12px; }
.co-swap {
  align-self: center; width: 16px; height: 16px; color: var(--tx-secondary); flex: none;
  border: 0; padding: 0; background: none;
}
.co-swap svg { width: 16px; height: 16px; }
.co-contrast { position: absolute; left: 0; right: 0; top: 74px; display: flex; align-items: center; gap: 10px; }
.co-aa { width: 40px; height: 40px; border-radius: var(--r-card); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; }
.co-lc b { display: block; font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .88); }
.co-pass { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; height: 17px; padding: 0 7px; border-radius: 9px; background: var(--fill-interactive); font-size: 9px; font-weight: 600; color: var(--tx-secondary); }
.co-pass i { font-style: normal; color: var(--up); }
.co-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--tx-tertiary); }
.co-tools svg { width: 13px; height: 13px; }
.co-fmt { border: none; background: none; color: rgba(255, 255, 255, .7); font: inherit; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.co-fmt svg { width: 9px; height: 9px; }
.co-recent { position: absolute; left: 0; right: 0; top: 122px; display: flex; align-items: baseline; }
.co-recent b { font-size: 11px; font-weight: 600; color: var(--tx-secondary); }
.co-clear { margin-left: auto; border: none; background: none; font: inherit; font-size: 11px; color: var(--tx-placeholder); }
.co-swatches { position: absolute; left: 0; right: 0; top: 140px; display: flex; gap: 8px; }
.co-sw { width: 42px; height: 36px; border-radius: var(--r-control); border: none; padding: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }

/* ============ media downloader ============ */
.dl-top { position: absolute; left: 0; right: 0; top: 2px; display: flex; gap: 8px; }
.dl-url { flex: 1; height: 38px; border-radius: var(--r-card); }
.dl-top .icon-b { width: 38px; height: 38px; border-radius: var(--r-card); }
.dl-go { background: var(--fill-selected); color: rgba(255, 255, 255, .92); }
.dl-card { position: absolute; left: 0; right: 0; top: 50px; border-radius: var(--r-card); background: var(--fill-readonly); padding: 9px 12px 10px; }
.dl-title { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--tx-identity); }
.dl-title svg { width: 13px; height: 13px; color: var(--tx-secondary); flex: none; }
.dl-title .dl-acts { margin-left: auto; display: flex; gap: 6px; }
.dl-title .icon-b { width: 26px; height: 26px; border-radius: var(--r-chip); }
.dl-track { margin-top: 8px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.dl-track i { display: block; height: 100%; border-radius: 3px; background: rgba(255, 255, 255, .75); transition: width .4s linear; }
.dl-meta { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--tx-secondary); font-variant-numeric: tabular-nums; }
.dl-state { height: 18px; padding: 0 8px; border-radius: 9px; background: var(--fill-lifted); color: rgba(255, 255, 255, .7); font-size: 9px; font-weight: 600; display: inline-flex; align-items: center; }
.dl-pct { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .88); }
.dl-meta .dl-speed { margin-left: auto; color: var(--tx-value); }
.dl-hist { position: absolute; left: 0; right: 0; top: 138px; display: flex; align-items: baseline; }
.dl-hist b { font-size: 11px; font-weight: 600; color: var(--tx-secondary); }
.dl-hist button { margin-left: auto; border: none; background: none; font: inherit; font-size: 11px; color: var(--tx-placeholder); }
.dl-hrow { position: absolute; left: 0; right: 0; top: 156px; font-size: 11px; color: rgba(255, 255, 255, .7); padding: 4px 2px; }

/* ============ battery ============ */
.ba-hero { position: absolute; left: 0; top: 4px; right: 0; display: flex; align-items: center; gap: 12px; }
.ba-hero > svg { width: 30px; height: 30px; color: var(--up); }
.ba-pct { font-size: 32px; font-weight: 700; color: rgba(255, 255, 255, .95); font-variant-numeric: tabular-nums; }
.ba-status { margin-left: auto; text-align: right; line-height: 1.45; }
.ba-status b { display: block; font-size: 11px; font-weight: 500; color: var(--tx-secondary); }
.ba-status i { display: block; font-style: normal; font-size: 10px; color: var(--tx-status); }
.ba-bar { position: absolute; left: 0; right: 0; top: 52px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ba-bar i { display: block; height: 100%; width: 86%; border-radius: 3px; background: var(--up); }
.ba-meta { position: absolute; left: 0; right: 0; top: 66px; font-size: 11px; color: var(--tx-secondary); }
.ba-meta i { font-style: normal; color: var(--tx-status); margin: 0 4px; }
.ba-dev-label { position: absolute; left: 0; top: 96px; display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 500; color: var(--tx-secondary); }
.ba-dev-label svg { width: 11px; height: 11px; }
.ba-rings { position: absolute; left: 4px; right: 4px; top: 114px; display: flex; gap: 26px; }
.ba-ring { text-align: center; }
.ba-ring svg { width: 44px; height: 44px; display: block; }
.ba-ring b { display: block; margin-top: 2px; font-size: 10px; font-weight: 500; color: var(--tx-placeholder); font-variant-numeric: tabular-nums; }

/* countdown mode — the real TangMeoHubTimerDetailView layout */
.ti-draft { font-size: 26px; font-weight: 700; color: rgba(255, 255, 255, .88); font-variant-numeric: tabular-nums; }
.ti-fields { position: absolute; left: 0; right: 0; top: 40px; display: flex; align-items: center; gap: 8px; }
.ti-cell {
  flex: 1; height: 60px;
  border-radius: var(--r-card);
  background: var(--fill-group);
  display: flex; align-items: center; justify-content: center;
}
.ti-cell input {
  width: 100%; border: none; background: none; outline: none; text-align: center;
  font-family: ui-rounded, -apple-system, inherit;
  font-size: 38px; font-weight: 600; color: rgba(255, 255, 255, .9);
  font-variant-numeric: tabular-nums;
  padding: 0;
}
.ti-colon { font-size: 30px; font-weight: 600; color: rgba(255, 255, 255, .36); }
.ti-ctl { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; align-items: flex-end; gap: 6px; }
.ti-circle {
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .82);
  display: flex; align-items: center; justify-content: center;
}
.ti-circle svg { width: 11px; height: 11px; }
.ti-circle.emph { background: color-mix(in srgb, var(--fam-sand) 20%, transparent); color: rgba(255, 255, 255, .92); }
.ti-name {
  width: 132px; height: 24px;
  border-radius: 12px;
  background: var(--fill-interactive);
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 9px;
  color: var(--tx-tertiary);
}
.ti-name svg { width: 9px; height: 9px; }
.ti-name input {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  font: inherit; font-size: 12px; font-weight: 500; color: var(--tx-identity);
}
.ti-name input::placeholder { color: rgba(255, 255, 255, .58); }
.ti-run { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.ti-run-label { font-size: 13px; font-weight: 500; color: var(--tx-secondary); }
.ti-hero-big {
  font-family: ui-rounded, -apple-system, inherit;
  font-size: 56px; font-weight: 700; color: rgba(255, 255, 255, .92);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.ti-hero-big.warn { color: #EBA04C; }
.ti-hero-big.crit { color: #EB5757; }
.ti-run-ctl { display: flex; gap: 10px; }
.ti-play.emph { background: color-mix(in srgb, var(--fam-sand) 20%, transparent); }

/* ============ teleprompter ============ */
.te-script {
  position: absolute; left: 0; right: 0; top: 0; bottom: 56px;
  overflow: hidden;
  display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.te-script p {
  width: 100%;
  font-size: 26px; font-weight: 600; line-height: 1.55;
  color: #fff;
  will-change: transform;
}
/* The voice-follow ladder, ported value-for-value from TeleprompterHighlightStyle:
   already-read 0.35, upcoming 0.88, the token being spoken 1.0. Carried on opacity
   and never on hue — the current word must stay the top of the ladder, and a
   colour here would be regraded by any tint and could land DIMMER than the text
   around it, inverting the highlight it exists to provide. */
.te-w { opacity: .88; transition: opacity .18s linear; }
.te-w.te-read { opacity: .35; }
/* the highlight SNAPS — the app gives it no smoothing constant on purpose, so it
   lands on the spoken token immediately; only the trail behind it settles */
.te-w.te-cur { opacity: 1; transition: none; }
.te-bar { position: absolute; left: 4px; right: 4px; bottom: 4px; display: flex; align-items: center; gap: 7px; }
.te-circle {
  border: none; border-radius: 50%;
  width: 30px; height: 30px;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .82);
  display: flex; align-items: center; justify-content: center;
  font: inherit; font-size: 12px; font-weight: 600;
}
.te-circle svg { width: 11px; height: 11px; }
.te-circle.big { width: 42px; height: 42px; }
.te-circle.big svg { width: 14px; height: 14px; }
.te-circle.mic-on { position: relative; color: #fff; }
.te-circle.mic-on::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid currentColor;
  animation: te-breathe .9s ease-in-out infinite alternate;
}
@keyframes te-breathe { from { transform: scale(1); opacity: .5; } to { transform: scale(1.35); opacity: .05; } }
.te-right { margin-left: auto; text-align: right; line-height: 1.35; margin-right: 4px; }
.te-right b { display: block; font-size: 13px; font-weight: 600; color: var(--tx-identity); font-variant-numeric: tabular-nums; }
.te-right i { display: block; font-style: normal; font-size: 11px; color: var(--tx-tertiary); font-variant-numeric: tabular-nums; }

/* ============ camera ============ */
.cm-card {
  position: absolute; inset: 6px 8px 8px;
  border-radius: 16px;
  background: var(--fill-readonly);
  border: none; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: rgba(255, 255, 255, .92);
  font: inherit; font-size: 14px; font-weight: 600;
  overflow: hidden;
}
.cm-card svg { width: 34px; height: 34px; }
.cm-card video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scaleX(-1);
}

/* ============ app cleaner ============ */
.ac-zone {
  position: absolute; inset: 6px 0 10px;
  border-radius: 16px;
  border: 1.5px dashed rgba(255, 255, 255, .22);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  text-align: center;
}
button.ac-zone {
  width: auto; color: inherit; font: inherit; background: transparent;
}
.ac-zone svg { width: 26px; height: 26px; color: rgba(255, 255, 255, .4); margin-bottom: 3px; }
.ac-zone b { font-size: 15px; font-weight: 600; color: var(--tx-identity); }
.ac-zone span { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .62); }
.ac-zone i { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .4); }

/* ============ drive sync ============ */
.ds-head { position: absolute; left: 0; right: 0; top: 2px; display: flex; align-items: center; }
.ds-head b { font-size: 15px; font-weight: 700; color: var(--tx-identity); }
.ds-head .ds-acts { margin-left: auto; display: flex; gap: 8px; }
.ds-round { width: 32px; height: 32px; border: none; border-radius: 50%; background: var(--fill-lifted); color: rgba(255, 255, 255, .85); display: flex; align-items: center; justify-content: center; }
.ds-round svg { width: 13px; height: 13px; }
.ds-rows { position: absolute; left: 0; right: 0; top: 42px; display: flex; flex-direction: column; gap: 8px; }
.ds-row {
  border-radius: var(--r-card);
  background: var(--fill-interactive);
  padding: 9px 10px;
  display: flex; align-items: center; gap: 10px;
}
.ds-check { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--fill-selected); color: rgba(255, 255, 255, .9); display: flex; align-items: center; justify-content: center; font-size: 11px; }
.ds-id { flex: 1; min-width: 0; line-height: 1.4; }
.ds-id b { display: block; font-size: 13px; font-weight: 700; color: var(--tx-identity); }
.ds-id span { display: block; font-size: 11px; color: var(--tx-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-id i { display: block; font-style: normal; font-size: 10px; color: var(--tx-status); }
.ds-mode { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--tx-value); white-space: nowrap; }
.ds-mode svg { width: 10px; height: 10px; }
.ds-row .icon-b { width: 30px; height: 30px; border-radius: 50%; background: var(--fill-lifted); }
.ds-row .icon-b.syncing svg { animation: ds-spin 1s linear infinite; }
@keyframes ds-spin { to { transform: rotate(360deg); } }

/* ============ system cleaner ============ */
.sc-banner {
  position: absolute; left: 0; right: 0; top: 2px; height: 32px;
  border-radius: var(--r-card);
  background: var(--fill-interactive);
  display: flex; align-items: center; gap: 8px;
  padding: 0 11px;
  font-size: 12px; font-weight: 600; color: var(--tx-identity);
}
.sc-banner svg { width: 12px; height: 12px; color: var(--tx-secondary); }
.sc-banner .sc-go { margin-left: auto; color: var(--tx-secondary); }
.sc-disk { position: absolute; left: 0; right: 0; top: 42px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.sc-disk i { display: block; height: 100%; width: 91%; background: rgba(255, 255, 255, .62); border-radius: 3px; }
.sc-disk-meta { position: absolute; left: 0; right: 0; top: 50px; display: flex; font-size: 10px; color: var(--tx-tertiary); }
.sc-disk-meta span:last-child { margin-left: auto; }
.sc-cats { position: absolute; left: 0; right: 0; top: 70px; display: flex; gap: 4px; }
.sc-cat { flex: 1; text-align: center; color: rgba(255, 255, 255, .85); }
.sc-cat svg { width: 20px; height: 20px; }
.sc-cat b { display: block; margin-top: 3px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.sc-cat i { display: block; font-style: normal; font-size: 9px; color: var(--tx-tertiary); font-variant-numeric: tabular-nums; min-height: 11px; }
.sc-scan {
  position: absolute; left: 0; right: 0; bottom: 6px; height: 34px;
  border: none; border-radius: var(--r-card);
  background: var(--fill-lifted);
  color: rgba(255, 255, 255, .9);
  font: inherit; font-size: 13px; font-weight: 600;
}
.sc-path { position: absolute; left: 0; right: 0; bottom: 44px; font-size: 10px; color: var(--tx-placeholder); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ auto clicker ============ */
.akl-card {
  position: absolute; left: 0; right: 0; top: 2px; height: 62px;
  border-radius: var(--r-card);
  background: var(--fill-readonly);
  display: flex; align-items: center;
  padding: 0 12px;
}
.akl-col { flex: 1; text-align: center; }
.akl-col b { display: block; font-size: 10px; font-weight: 500; color: var(--tx-tertiary); margin-bottom: 4px; }
.akl-pick {
  border: none; border-radius: var(--r-chip);
  background: var(--fill-lifted);
  color: rgba(255, 255, 255, .9);
  font: inherit; font-size: 13px; font-weight: 600;
  height: 26px; padding: 0 10px;
  display: inline-flex; align-items: center; gap: 5px;
}
.akl-pick svg { width: 9px; height: 9px; }
.akl-val { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .92); font-variant-numeric: tabular-nums; }
.akl-val i { font-style: normal; font-size: 12px; font-weight: 500; color: var(--tx-secondary); margin-left: 4px; }
.akl-sep { width: 1px; height: 30px; background: rgba(255, 255, 255, .08); }
.akl-play { width: 44px; height: 44px; flex: none; border: none; border-radius: 50%; background: color-mix(in srgb, var(--fam-sand) 20%, transparent); color: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center; margin-left: 8px; }
.akl-play svg { width: 14px; height: 14px; }
.akl-hist { position: absolute; left: 0; right: 0; top: 76px; display: flex; align-items: baseline; }
.akl-hist b { font-size: 12px; font-weight: 600; color: var(--tx-secondary); }
.akl-hist span { margin-left: auto; font-size: 11px; color: var(--tx-placeholder); }
.akl-rows { position: absolute; left: 0; right: 0; top: 96px; display: flex; flex-direction: column; gap: 6px; }
.akl-row {
  height: 28px; border-radius: var(--r-chip);
  background: var(--fill-readonly);
  display: flex; align-items: center; gap: 10px;
  padding: 0 10px;
  font-size: 11px; color: var(--tx-secondary);
  font-variant-numeric: tabular-nums;
}
.akl-row b { font-weight: 700; color: rgba(255, 255, 255, .9); font-size: 12px; }
.akl-row .mono { font-family: "SF Mono", ui-monospace, Menlo, monospace; color: var(--tx-tertiary); }
.akl-row i { margin-left: auto; font-style: normal; color: var(--tx-status); }

/* ============ mini menu (native-style dark popover) ============ */
.p-menu {
  position: fixed; z-index: 100; /* topmost: never under the shell (z50) */
  min-width: 132px;
  background: #1d1d20;
  border-radius: var(--r-control);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 28px rgba(0, 0, 0, .55);
  padding: 4px;
}
.p-menu button {
  display: flex; align-items: center; gap: 6px;
  width: 100%; height: 24px;
  border: none; border-radius: 5px;
  background: none; padding: 0 8px;
  font: inherit; font-size: 11px; color: rgba(255, 255, 255, .85);
  text-align: left;
}
.p-menu button:hover,
.p-menu button:focus { background: var(--fill-lifted); outline: none; }
.p-menu .chk { width: 12px; flex: none; font-size: 10px; color: rgba(255, 255, 255, .9); }

/* toggle states for previously-decorative controls */
.icon-b[aria-pressed="true"] { background: var(--fill-lifted); color: var(--tx-value); }
.ti-amb .icon-b[aria-pressed="true"] { background: var(--fill-selected); color: rgba(255, 255, 255, .9); }
.cv-exif.off { background: var(--fill-group); color: var(--tx-status); }
.cv-toggle { cursor: pointer; }
.cv-toggle::before { transition: left var(--hub-highlight-dur) ease-in-out; }
.cv-toggle.on { background: rgba(255, 255, 255, .3); }
.cv-toggle.on::before { left: 17px; }
.sh-round.spinning svg { animation: ds-spin 1s linear infinite; }
.co-acts button, .co-acts svg { pointer-events: auto; }
.co-act { border: none; background: none; padding: 0; color: inherit; display: inline-flex; }
.co-act svg { width: 12px; height: 12px; }

/* the convert bottom-row controls are real buttons now — reset UA chrome */
.cv-quality, .cv-exif, .cv-fmt, .cv-toggle, .vo-chip {
  border: none; font: inherit;
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.cv-quality { background: none; }
.cv-toggle { padding: 0; }
.vo-chip { cursor: pointer; }

/* stocks expanded detail card (chevron accordion — one open at a time) */
.st-detail {
  margin: 2px 4px 8px;
  border-radius: var(--r-card);
  background: var(--fill-group);
  padding: 10px;
}
.st-detail .st-bigchart { height: 56px; margin-bottom: 8px; }
.st-detail .st-bigchart svg { width: 100%; height: 100%; display: block; }
.st-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.st-stats span { font-size: 10px; color: var(--tx-tertiary); }
.st-stats b { font-weight: 400; font-size: 11px; color: var(--tx-value); font-variant-numeric: tabular-nums; margin-left: 5px; }
.st-chev.open svg { transform: rotate(180deg); }

/* menus open like macOS popovers */
@media (prefers-reduced-motion: no-preference) {
  .p-menu { animation: menu-in .12s ease-out; transform-origin: top left; }
}
@keyframes menu-in { from { opacity: 0; transform: scale(.96); } }

/* voice: transcript replaces the idle stack (structural swap, no crossfade) */
.vo-transcript {
  position: absolute; left: 24px; right: 24px; top: 10px; bottom: 58px;
  font-size: 14px; font-weight: 500; line-height: 1.5;
  color: rgba(255, 255, 255, .88);
  text-align: left;
  overflow: hidden;
  display: none;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent);
  mask-image: linear-gradient(180deg, #000 82%, transparent);
}
.vo-body.has-text .vo-transcript { display: block; }
.vo-body.has-text .vo-wave, .vo-body.has-text .vo-hint { display: none; }

/* clipboard: the app's one toast — Deleted / Undo capsule at the list's foot */
.clip-toast {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  z-index: 8;
  display: flex; align-items: center; gap: 10px;
  height: 26px; padding: 0 12px;
  border-radius: 13px;
  background: rgba(0, 0, 0, .85);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
  font-size: 11px; color: rgba(255, 255, 255, .7);
  white-space: nowrap;
  transition: opacity .18s ease-in-out, translate .18s ease-in-out;
}
.clip-toast.leaving { opacity: 0; translate: 0 8px; }
.clip-toast button {
  border: none; background: none; padding: 0;
  font: inherit; font-size: 11px; font-weight: 600; color: #fff;
}

/* clipboard: pinned full-content preview (Space/eye), back chevron header */
.clip-preview { position: absolute; inset: 0; padding: 2px 4px; }
.clip-preview-head { display: flex; align-items: center; gap: 8px; height: 26px; }
.clip-preview-head .icon-b { background: none; width: 24px; height: 24px; }
.clip-preview-head .icon-b svg { transform: rotate(90deg); }
.clip-preview-head b { font-size: 10px; font-weight: 500; color: var(--tx-secondary); font-variant-numeric: tabular-nums; }
.clip-preview-body {
  margin-top: 4px; padding: 0 6px;
  font-size: 14px; font-weight: 500; line-height: 1.5;
  color: rgba(255, 255, 255, .88);
}
.clip-preview-meta { margin-top: 8px; padding: 0 6px; font-size: 10px; color: var(--tx-placeholder); }

/* stocks: cold-start skeleton (1.4s shimmer sweep, then data) */
.st-skel { display: inline-block; border-radius: 3px; background: rgba(255, 255, 255, .12); position: relative; overflow: hidden; }
.st-skel.a { width: 34px; height: 12px; }
.st-skel.b { width: 26px; height: 9px; margin-top: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .st-skel::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent);
    animation: skel-sweep 1.4s linear infinite;
  }
}
@keyframes skel-sweep { from { transform: translateX(-100%); } to { transform: translateX(160%); } }

/* pomodoro phase colors — red while working, green on any break (TimerTint) */
.ti-digits.phase-work { color: #EB5757; }
.ti-digits.phase-break { color: #4CC76B; }

/* ============ translation — the live editor/results surface ============ */
.tl-editor {
  position: absolute; left: 0; right: 0; top: 2px; bottom: 40px;
  border-radius: var(--r-card);
  background: var(--fill-readonly);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.tl-editor textarea {
  width: 100%; height: 100%;
  border: none; background: none; outline: none; resize: none;
  padding: 8px 10px;
  font: inherit; font-size: 12.5px; line-height: 1.5;
  color: rgba(255, 255, 255, .86);
}
.tl-editor textarea::placeholder { color: var(--tx-placeholder); }
.tl-collapsed {
  position: absolute; left: 0; right: 0; top: 2px;
  display: flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 8px;
  border: none; border-radius: var(--r-chip);
  background: var(--fill-interactive);
  font: inherit; font-size: 11px; color: rgba(255, 255, 255, .55);
  text-align: left;
}
.tl-collapsed svg { width: 10px; height: 10px; flex: none; color: rgba(255, 255, 255, .45); }
.tl-collapsed span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tl-results {
  position: absolute; left: 0; right: 0; top: 34px; bottom: 40px;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  display: flex; flex-direction: column; gap: 6px;
}
.tl-results::-webkit-scrollbar { display: none; }
.tl-card {
  border-radius: var(--r-card);
  background: var(--fill-readonly);
  padding: 8px 10px;
}
.tl-card-head { display: flex; align-items: center; gap: 6px; }
.tl-card-head b { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.tl-card-head .tl-copy {
  margin-left: auto;
  width: 22px; height: 22px; border: none; border-radius: 50%;
  background: var(--fill-interactive); color: var(--tx-secondary);
  display: inline-flex; align-items: center; justify-content: center;
}
.tl-card-head .tl-copy svg { width: 10px; height: 10px; }
.tl-card-body { margin-top: 5px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .88); min-height: 18px; }
.tl-card-body.waiting { color: var(--tx-placeholder); }
.tl-strip {
  position: absolute; left: 0; right: 0; bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.tl-strip .tl-detected { font-size: 11px; font-weight: 500; color: var(--tx-secondary); }
.tl-strip .tl-arrow { font-size: 9px; color: var(--tx-tertiary); }
.tl-target {
  display: inline-flex; align-items: center; gap: 4px;
  border: none;
  height: 22px; padding: 0 9px; border-radius: 11px;
  background: var(--fill-interactive);
  font: inherit; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .9);
}
.tl-target svg { width: 9px; height: 9px; }
.tl-tools { margin-left: auto; display: flex; gap: 5px; }
.tl-chip {
  display: inline-flex; align-items: center; gap: 4px;
  border: none;
  height: 22px; padding: 0 9px; border-radius: 11px;
  background: var(--fill-interactive);
  font: inherit; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .7);
}
.tl-chip svg { width: 10px; height: 10px; }
.tl-chip.emph { background: color-mix(in srgb, var(--fam-grayviolet) 20%, transparent); color: rgba(255, 255, 255, .95); }

/* ============ file rules — rules + recent activity ============ */
.fr-rows { position: absolute; left: 0; right: 0; top: 4px; display: flex; flex-direction: column; gap: 6px; }
.fr-row {
  border-radius: var(--r-card);
  background: var(--fill-interactive);
  padding: 7px 10px;
  display: flex; align-items: center; gap: 10px;
}
.fr-row > svg { width: 15px; height: 15px; flex: none; color: var(--fam-mist); }
.fr-id { flex: 1; min-width: 0; line-height: 1.35; }
.fr-id b { display: block; font-size: 12px; font-weight: 600; color: var(--tx-identity); }
.fr-id span { display: block; font-size: 10px; color: var(--tx-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-rule {
  height: 20px; padding: 0 8px; border-radius: 10px;
  background: var(--fill-readonly);
  font-size: 10px; font-weight: 500; color: var(--tx-secondary);
  display: inline-flex; align-items: center; white-space: nowrap;
}
/* the app's grayscale switch: 26×15 track, 11 knob, .18/.60/.10, 0.18s */
.fr-switch {
  width: 26px; height: 15px; flex: none;
  border: none; border-radius: 8px; padding: 0;
  background: rgba(255, 255, 255, .10);
  position: relative;
  transition: background .18s ease-in-out;
}
.fr-switch::before {
  content: ""; position: absolute; left: 2px; top: 2px;
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255, 255, 255, .60);
  transition: left .18s ease-in-out;
}
.fr-switch[aria-pressed="true"] { background: rgba(255, 255, 255, .18); }
.fr-switch[aria-pressed="true"]::before { left: 13px; background: #f5f5f7; }
.fr-recent { position: absolute; left: 2px; top: 104px; font-size: 10px; font-weight: 600; color: var(--tx-secondary); }
.fr-acts { position: absolute; left: 0; right: 0; top: 122px; display: flex; flex-direction: column; gap: 3px; }
.fr-act {
  display: flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 10px;
  font-size: 11px; color: rgba(255, 255, 255, .72);
}
.fr-act i { font-style: normal; color: var(--tx-tertiary); }
.fr-act span { margin-left: auto; font-size: 10px; color: var(--tx-placeholder); }

/* ============ vpn — configurations + connect flow ============ */
.vp-head { position: absolute; left: 2px; top: 4px; display: flex; align-items: center; gap: 7px; }
.vp-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.vp-dot.on { background: var(--up); }
.vp-head b { font-size: 13px; font-weight: 600; color: var(--tx-identity); }
.vp-rows { position: absolute; left: 0; right: 0; top: 34px; display: flex; flex-direction: column; gap: 8px; }
.vp-row {
  border-radius: var(--r-card);
  background: var(--fill-interactive);
  padding: 9px 12px;
  display: flex; align-items: center; gap: 10px;
}
.vp-row > svg { width: 15px; height: 15px; flex: none; color: var(--fam-slateteal); }
.vp-id { flex: 1; min-width: 0; line-height: 1.35; }
.vp-id b { display: block; font-size: 12px; font-weight: 600; color: var(--tx-identity); }
.vp-id span { display: block; font-size: 10px; color: var(--tx-tertiary); }
.vp-row .vp-dot { flex: none; width: 6px; height: 6px; }
.vp-btn {
  border: none;
  height: 26px; padding: 0 12px; border-radius: var(--r-chip);
  background: var(--fill-lifted);
  font: inherit; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .9);
  min-width: 58px;
}
.vp-btn:disabled { color: var(--tx-tertiary); cursor: default; }

/* downloads: proper history rows */
.dl-hrow { display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 2px; }
.dl-hrow .dl-hicon { width: 12px; height: 12px; color: var(--tx-secondary); flex: none; }
.dl-hrow span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dl-hrow .dl-hopen { width: 22px; height: 22px; background: none; }
.dl-hrow .dl-hopen svg { width: 11px; height: 11px; }

/* app cleaner demo states */
.ac-list { display: flex; gap: 14px; margin-top: 2px; }
.ac-item { font-size: 11px; color: var(--tx-secondary); }
.ac-item b { margin-left: 5px; color: var(--tx-value); font-variant-numeric: tabular-nums; }
.ac-clean {
  margin-top: 6px;
  border: none; height: 28px; padding: 0 16px;
  border-radius: var(--r-control);
  background: color-mix(in srgb, var(--fam-mist) 20%, transparent);
  font: inherit; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .92);
}
.ac-bar { width: 200px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ac-bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: rgba(255, 255, 255, .6); }
.ac-zone.working .ac-bar i { width: 100%; transition: width 1.1s ease-in-out; }
.ac-done { color: var(--up); font-size: 14px; }

/* resize-ON chips sit inline after the switch */
.cv-resize-extra {
  position: absolute; left: 141px; bottom: 9px;
  display: flex; gap: 6px; align-items: center;
}
.cv-resize-extra ~ .cv-exif, .cv-toggle.on ~ .cv-exif { left: 232px; }

/* stocks search results (add-to-watchlist rows) */
#st-results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.st-result {
  appearance: none; -webkit-appearance: none;
  border: none; font: inherit; text-align: left;
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 10px;
  border-radius: var(--r-control);
  background: var(--fill-interactive);
  color: inherit;
}
.st-result b { font-size: 12px; font-weight: 500; color: var(--tx-identity); flex: 1; }
.mkt-pill {
  height: 16px; padding: 0 5px; border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  font-size: 9px; font-weight: 500; color: var(--tx-secondary);
  display: inline-flex; align-items: center;
}
.st-result i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--tx-secondary); }

/* existing alert rows */
.sa-bell, .sa-rm {
  border: none; background: none; padding: 0;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .6);
}
.sa-bell svg { width: 11px; height: 11px; }
.sa-rm { color: var(--tx-tertiary); margin-left: auto; }
.sa-rm svg { width: 12px; height: 12px; }
.sa-cond { font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-alert-row.paused b, .st-alert-row.paused .sa-cond { opacity: .4; }
.st-alert-row.paused .sa-bell { color: rgba(255, 255, 255, .28); }

/* dashboard: dashed add box (edit mode, bottom-trailing) */
.dash-add {
  position: absolute; right: 37px; bottom: 14px; z-index: 4;
  width: 34px; height: 26px;
  border-radius: var(--r-control);
  border: 1.5px dashed rgba(255, 255, 255, .3);
  background: none;
  font: inherit; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .6);
  display: none;
}
.dash.editing ~ .dash-add { display: block; }

/* lock control: closed shackle + brighter icon while locked */
.sctl[data-ctl="lock"] .ic-closed { display: none; }
.sctl[data-ctl="lock"].locked .ic-open { display: none; }
.sctl[data-ctl="lock"].locked .ic-closed { display: block; }
.sctl[data-ctl="lock"].locked { color: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px rgba(255, 255, 255, .11); }

/* ===== 90% wave: styles for the audit fixes ===== */
/* bell count badge (green, count-only — never an "unread" concept) */
.sctl { position: relative; }
.sctl-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 13px; height: 13px; padding: 0 3px;
  border-radius: 7px;
  background: rgba(76, 199, 107, .82);
  box-shadow: 0 0 0 1px rgba(76, 199, 107, .28);
  font-style: normal; font-size: 8px; font-weight: 700; color: #06130a;
  display: flex; align-items: center; justify-content: center;
}
/* notifications feed */
.nt-list { position: absolute; left: 0; right: 0; top: 6px; display: flex; flex-direction: column; gap: 6px; }
.nt-row {
  display: flex; align-items: center; gap: 10px;
  border-radius: var(--r-card); background: var(--fill-readonly);
  padding: 8px 10px;
}
.nt-ico { width: 24px; height: 24px; border-radius: 50%; background: var(--fill-interactive); display: flex; align-items: center; justify-content: center; color: var(--tx-secondary); flex: none; }
.nt-ico svg { width: 12px; height: 12px; }
.nt-id { flex: 1; min-width: 0; line-height: 1.35; }
.nt-id b { display: block; font-size: 12px; font-weight: 500; color: var(--tx-identity); }
.nt-id span { display: block; font-size: 10px; color: var(--tx-status); }
.nt-x { width: 24px; height: 24px; background: none; }
.nt-clear {
  position: absolute; right: 0; bottom: 6px;
  border: none; height: 24px; padding: 0 12px; border-radius: 12px;
  background: var(--fill-interactive);
  font: inherit; font-size: 11px; font-weight: 500; color: var(--tx-value);
}
#nt-body .nt-clear { position: absolute; }
/* relay queue overlay */
.clip-relay { padding: 2px 4px; }
.clip-relay-head { display: flex; align-items: center; height: 26px; }
.clip-relay-head b { font-size: 11px; color: var(--tx-secondary); font-variant-numeric: tabular-nums; }
.clip-relay-head .nt-clear { position: static; margin-left: auto; }
.clip-relay-row {
  display: flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 8px; margin-top: 4px;
  border-radius: 6px;
  font-size: 11px; color: rgba(255, 255, 255, .72);
}
.clip-relay-row.current { background: var(--fill-lifted); }
.clip-relay-row i { font-style: normal; font-size: 10px; color: var(--tx-tertiary); width: 12px; }
.clip-relay-row span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* manual code error */
.st-code-error { margin-top: 6px; font-size: 11px; color: var(--tx-secondary); }
.st-plus.spinning svg { animation: ds-spin 1s linear infinite; }
/* expanded card browser link */
.st-browser { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 10px; color: var(--tx-secondary); }
.st-browser svg { width: 10px; height: 10px; }
/* timer running meta: round dots + phase progress + skip */
.ti-runmeta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ti-dots { display: flex; gap: 4px; }
.ti-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.ti-dots i.on { background: rgba(255, 255, 255, .7); }
.ti-prog { width: 72px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ti-prog i { display: block; height: 100%; border-radius: 2px; }
.ti-prog i.w { background: #EB5757; }
.ti-prog i.b { background: #4CC76B; }
/* teleprompter editor + library */
.te-editor { position: absolute; left: 0; right: 0; top: 4px; bottom: 56px; border-radius: var(--r-tile); background: var(--fill-readonly); }
.te-editor textarea {
  width: 100%; height: 100%; border: none; background: none; outline: none; resize: none;
  padding: 10px; font: inherit; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .86);
}
.te-lib { position: absolute; left: 0; right: 0; top: 6px; display: flex; flex-direction: column; gap: 6px; }
.te-lib-row {
  appearance: none; -webkit-appearance: none; border: none; text-align: left;
  display: flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 0 10px;
  border-radius: var(--r-tile); background: var(--fill-readonly);
  font: inherit; color: inherit;
}
.te-lib-row b { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .86); }
.te-lib-mark { width: 14px; font-size: 11px; color: var(--fam-celadon); }
/* camera live overlay */
.cm-ov { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; opacity: 0; transition: opacity var(--hub-highlight-dur) ease-in-out; }
.cm-live:hover .cm-ov { opacity: 1; }
.cm-card video.unmirrored { transform: none; }
/* favorites two-tone chips */
.co-heart { margin-left: 4px; font-size: 14px; color: var(--tx-tertiary); }
/* clicker value buttons */
.akl-cycle { border: none; background: none; padding: 0; font: inherit; color: inherit; }
.akl-combo { display: inline-flex; align-items: center; gap: 5px; }
.akl-number { min-width: 18px; height: 26px; }
/* press-scale fidelity: the app's PressedButtonStyle is 0.80, hover snaps */
.sh-count-chip:active, .sh-round:active, .sh-clear:active, button.cv-chip:active { transform: scale(.8); }
.sh-count-chip, .sh-round, .sh-clear, button.cv-chip { transition: transform .12s ease-in-out; }
.sh-card:active { transform: scale(.9); }
.vp-row, .vp-row .vp-btn:disabled { cursor: default; }
/* eye fades with the row hover instead of popping */
.clip-eye { display: inline-flex; opacity: 0; pointer-events: none; transition: opacity .12s ease-in-out; }
.clip-row:hover .clip-eye { opacity: 1; pointer-events: auto; }
/* snippets tab: filter row hides, the list rises */
.hpage[data-page="clip"] .page-body.no-filters .chip-row { display: none; }
.hpage[data-page="clip"] .page-body.no-filters .clip-scroll { top: 41px; }
/* scan path crossfades 0.1s */
.sc-path { transition: opacity .1s ease-in-out; }
.sc-cat.skipped { opacity: .3; }
.sa-cool { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .te-circle.mic-on::after { animation: none; opacity: .3; }
  .icon-b.syncing svg, .sh-round.spinning svg, .st-plus.spinning svg { animation: none; }
  .dl-track i, .ac-zone.working .ac-bar i { transition: none; }
  .st-skel::after { animation: none; }
}

/* ===== OVERFLOW FIX: fixed-top stacks → scrollable flow layouts =====
   Dynamic content (added sync folders, download history, clicker sessions,
   alert rows) was silently clipped by the 217px shell. These pages now flow
   and scroll like the app's ScrollView routes. Later rules override the
   absolute-position blocks above. */
.fr-body, .ds-body, .dl-body, .akl-body, .vp-body, .co-body,
#nt-body:not(.tr-body) {
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
}
.fr-body::-webkit-scrollbar, .ds-body::-webkit-scrollbar, .dl-body::-webkit-scrollbar,
.akl-body::-webkit-scrollbar, .vp-body::-webkit-scrollbar, .co-body::-webkit-scrollbar,
#nt-body::-webkit-scrollbar { display: none; }

.fr-rows { position: static; margin-top: 4px; }
.fr-recent { position: static; margin: 12px 2px 0; }
.fr-acts { position: static; margin-top: 6px; padding-bottom: 8px; }

.ds-head { position: static; margin-top: 2px; }
.ds-rows { position: static; margin-top: 10px; padding-bottom: 8px; }

.dl-top { position: static; margin-top: 2px; }
.dl-card { position: static; margin-top: 10px; }
.dl-hist { position: static; margin-top: 12px; }
.dl-hrow { position: static !important; top: auto !important; }
#dl-body { padding-bottom: 8px; }

.akl-card { position: static; margin-top: 2px; }
.akl-hist { position: static; margin-top: 12px; }
.akl-rows { position: static; margin-top: 6px; padding-bottom: 8px; }

.nt-list { position: static; margin-top: 6px; }
#nt-body:not(.tr-body) .nt-clear { position: static; display: block; margin: 8px 0 8px auto; }

.vp-head { position: static; margin-top: 4px; margin-left: 2px; }
.vp-rows { position: static; margin-top: 12px; padding-bottom: 8px; }

.co-pair { position: static; margin-top: 4px; }
.co-contrast { position: static; margin-top: 12px; }
.co-recent { position: static; margin-top: 12px; }
.co-swatches { position: static; margin-top: 6px; flex-wrap: wrap; padding-bottom: 8px; }

/* horizontal squeeze guards: long-locale control bars scroll instead of
   pushing controls out of the shell */
.ti-bar, .vo-bar {
  overflow-x: auto; overscroll-behavior: contain; scrollbar-width: none;
}
.ti-bar::-webkit-scrollbar, .vo-bar::-webkit-scrollbar { display: none; }
.ti-bar > *, .vo-bar > * { flex: none; }
.vo-state { position: sticky; right: 0; }
.st-alert-build { flex-wrap: wrap; row-gap: 6px; }
.tl-strip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tl-strip::-webkit-scrollbar { display: none; }
.tl-strip > * { flex: none; }
.tl-tools { margin-left: auto; }

/* ===== EDGE-INSET FIX =====
   The app's detail-page content box is containerHorizontalPadding(32) +
   contentHorizontalPadding(8) = 40px per side, bottom 14+4 = 18px — every
   reference render puts content at x=40. The prototype was using 8/4 and
   hugging the shell edges (and colliding with the 40px bottom corners). */
.hpage .page-body { left: 40px; right: 40px; bottom: 18px; }
.hpage[data-page="home"] .page-body { left: 0; right: 0; bottom: 0; }
.hpage[data-page="shelf"] .page-body,
.hpage[data-page="convert"] .page-body { inset: 0; }

/* strip the old inner 8px offsets that assumed the tight body */
.clip-head { left: 0; right: 0; }
.chip-row { left: 0; right: 0; }
.hpage[data-page="stocks"] .page-scroll { padding: 10px 0; }
.vo-bar { left: 0; right: 0; bottom: 0; }
.vo-wave { top: 34px; }
.vo-hint { top: 90px; }
.ti-bar { left: 0; right: 0; bottom: 0; }
.ti-ctl { left: 0; right: 0; bottom: 0; }
.ti-hero { left: 0; right: 0; }
.ba-rings { left: 0; right: 0; }
.ba-hero, .ba-bar, .ba-meta, .ba-dev-label { left: 0; right: 0; }
.te-bar { left: 0; right: 0; bottom: 0; }
.sc-scan { bottom: 0; }
.sc-path { bottom: 40px; }
.tl-strip { bottom: 0; }
.cm-card { inset: 6px 0 0; }
/* the cleaner's dashed zone sits flush in the 40px content box (render: x=40) */
.ac-zone { inset: 6px 0 0; }
/* battery rings can exceed the narrower box — let them scroll like the rest */
.ba-body { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.ba-body::-webkit-scrollbar { display: none; }
.ba-rings { gap: 18px; }

/* top breathing: the app adds shoulderContentTopPadding(4) below the 37px
   strip — content box starts at 41, interior height lands on the spec ~158 */
.hpage .page-body { top: 41px; }
.hpage[data-page="shelf"] .page-body,
.hpage[data-page="convert"] .page-body { top: 0; }

/* web-only headroom: shoulder buttons sit 8px below the shell's top edge
   (strip grows 37→43); the content box shifts with it, interior stays 158 */
.hub-strip { height: 43px; padding-top: 8px; }
.cycler { inset: 43px 0 0; }
.hpage .page-body { top: 47px; }
.hpage[data-page="shelf"] .page-body,
.hpage[data-page="convert"] .page-body { top: 0; }
.sh-top { top: 8px; }
.cv-close, .cv-go { top: 8px; }

/* teleprompter: the script pane is a genuine scroller (wheel + drag), the
   play button just drives scrollTop; smallest app font (12) is the default */
.te-script {
  display: block;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  padding: 14px 0 40px;
}
.te-script::-webkit-scrollbar { display: none; }
.te-script p { transform: none !important; }

/* design tokens duplicated at :root so body-level popovers/proxies
   (menus, drag clones) resolve the same variables as .hub content */
:root {
  --tx-identity: rgba(255, 255, 255, .85); --tx-value: rgba(255, 255, 255, .75);
  --tx-secondary: rgba(255, 255, 255, .5); --tx-tertiary: rgba(255, 255, 255, .46);
  --tx-placeholder: rgba(255, 255, 255, .35); --tx-status: rgba(255, 255, 255, .3);
  --fill-group: rgba(255, 255, 255, .04); --fill-readonly: rgba(255, 255, 255, .05);
  --fill-interactive: rgba(255, 255, 255, .06); --fill-lifted: rgba(255, 255, 255, .10);
  --fill-selected: rgba(255, 255, 255, .14);
  --up: #4CC76B; --down: #EB5757; --active: #4C9EEB;
  --fam-celadon: #93BAB2; --fam-sand: #C7B594; --fam-mist: #8FACD0;
  --fam-slateteal: #8DB5C2; --fam-grayviolet: #ACAACB;
  --r-tile: 12px; --r-card: 10px; --r-control: 8px; --r-chip: 7px;
  --ease-reorder: cubic-bezier(.3, 1.18, .48, 1);
}
.p-menu {
  background: rgba(24, 24, 28, .97);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
}
.drag-proxy {
  background: rgba(38, 38, 42, .96);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  font-size: 11px; color: var(--tx-value);
}
.drag-proxy.chip1 { border-radius: 10px; }

/* clipboard .color rows: 22×22 swatch of the actual value, 1px 15% ring */
.clip-swatch {
  width: 22px; height: 22px; border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}
/* auto clicker: the history Clear is a text button, not a UA button */
.akl-hist button {
  appearance: none; -webkit-appearance: none;
  border: none; background: none; padding: 0; margin-left: auto;
  font: inherit; font-size: 11px; color: var(--tx-placeholder); cursor: pointer;
}

/* teleprompter paragraphs */
.te-script p { margin: 0 0 0.9em; }
.te-script p.te-attrib { color: var(--tx-secondary); }

/* system cleaner category buttons: strip UA button chrome (went white) */
.sc-cat {
  appearance: none; -webkit-appearance: none;
  border: none; background: none; padding: 0; margin: 0;
  font: inherit; color: rgba(255, 255, 255, .85); cursor: pointer;
}

/* timer bar: uniform control sizes; chips truly centered */
.ti-bar { align-items: center; gap: 8px; }
.ti-play { width: 42px; height: 42px; flex: none; }
.ti-amb .icon-b { width: 30px; height: 30px; border-radius: 50%; }
.ti-rounds button { width: 24px; height: 24px; }
.ti-rounds output { min-width: 16px; text-align: center; }
.ti-chip {
  height: 28px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}
.ti-seg button { display: inline-flex; align-items: center; line-height: 1; }

/* stocks: existing alert rows — a real row, not a squeezed chip */
.st-alert-row {
  display: flex; align-items: center; gap: 8px;
  height: 32px; margin-top: 6px; padding: 0 10px;
  border-radius: var(--r-card);
  background: var(--fill-group);
  font-size: 11px;
}
.st-alert-row b { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.sa-cond { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sa-bell { width: 24px; height: 24px; }
.sa-bell svg { width: 12px; height: 12px; }
.sa-rm svg { width: 13px; height: 13px; }

/* app cleaner: dropped-app preview — category-grouped file list with
   checkboxes feeding a running total that gates the Clean button */
.ac-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 8px; }
.ac-head .sh-doc { width: 26px; height: 32px; }
.ac-head b { font-size: 13px; font-weight: 600; color: var(--tx-identity); flex: 1; }
.ac-head span { font-size: 11px; color: var(--tx-secondary); font-variant-numeric: tabular-nums; }
.ac-files {
  position: absolute; left: 0; right: 0; top: 44px; bottom: 40px;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
}
.ac-files::-webkit-scrollbar { display: none; }
.ac-sec { margin: 6px 4px 2px; font-size: 10px; font-weight: 600; color: var(--tx-status); }
.ac-file {
  display: flex; align-items: center; gap: 8px;
  height: 26px; padding: 0 8px;
  border-radius: var(--r-chip);
  font-size: 11px; color: rgba(255, 255, 255, .72);
  cursor: pointer;
}
.ac-file:hover { background: var(--fill-readonly); }
.ac-check {
  width: 14px; height: 14px; flex: none;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: #0c0c0e;
}
.ac-file.on .ac-check { background: #f5f5f7; box-shadow: none; }
.ac-file span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ac-file i { font-style: normal; color: var(--tx-tertiary); font-variant-numeric: tabular-nums; }
.ac-file:not(.on) { opacity: .45; }
.ac-cleanbtn {
  position: absolute; left: 0; right: 0; bottom: 0; height: 32px;
  border: none; border-radius: var(--r-control);
  background: color-mix(in srgb, var(--fam-mist) 20%, transparent);
  font: inherit; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .92);
}
.ac-cleanbtn:disabled { background: var(--fill-interactive); color: var(--tx-disabled); cursor: default; }
.ac-zone.ac-found {
  border: none;
  display: block; text-align: left;
  align-items: initial; justify-content: initial;
}

/* ===== timer: calibrated to panel-timer reference (cards 64, play 32,
   ambience 27, stop-after = plain text, chime = white selected pill) ===== */
.ti-cards { top: 39px; gap: 6px; }
.ti-card { padding: 7px 10px 8px; height: 64px; box-sizing: border-box; }
.ti-step { margin-top: 3px; gap: 9px; }
.ti-step output { font-size: 16px; }
.ti-card i { margin-top: 2px; }
.ti-play { width: 32px; height: 32px; }
.ti-play svg { width: 12px; height: 12px; }
.ti-amb { gap: 5px; }
.ti-amb .icon-b { width: 27px; height: 27px; }
.ti-amb .icon-b svg { width: 12px; height: 12px; }
.ti-rounds { gap: 6px; }
.ti-rounds button { width: 20px; height: 20px; font-size: 12px; }
.ti-chip { height: 26px; padding: 0 11px; background: none; color: var(--tx-tertiary); font-weight: 500; }
.ti-chip.on { background: #f5f5f7; color: #111; font-weight: 600; }
.ti-hero > svg { width: 22px; height: 22px; }
.ti-digits { font-size: 30px; }

/* ===== notifications: spec rows — r12, fill .035 + 1px .06 ring,
   minHeight 34, icon 24 circle .08, title+time on one line ===== */
.nt-row {
  min-height: 34px; height: auto;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  align-items: flex-start;
}
.nt-ico { background: rgba(255, 255, 255, .08); margin-top: 1px; }
.nt-id b { display: inline; font-size: 12px; font-weight: 500; color: var(--tx-identity); }
.nt-id .nt-time { display: inline; margin-left: 6px; font-size: 10px; color: var(--tx-placeholder); }
.nt-id .nt-msg { display: block; margin-top: 1px; font-size: 11px; color: rgba(255, 255, 255, .6); }

/* ===== app cleaner preview: spec-faithful ===== */
.ac-head { padding: 0 2px 6px; }
.ac-head .ac-appico { width: 24px; height: 24px; border-radius: 6px; background: linear-gradient(135deg, #f6b73c, #de5f36); flex: none; }
.ac-head b { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .88); }
.ac-head .ac-selsize { font-size: 10px; font-weight: 500; color: #EBA04C; font-variant-numeric: tabular-nums; }
.ac-selbar { display: flex; align-items: center; padding: 0 2px 4px; }
.ac-selbar button {
  appearance: none; border: none; background: none; padding: 0;
  font: inherit; font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, .72); cursor: pointer;
}
.ac-files { top: 52px; bottom: 38px; }
.ac-sec {
  display: flex; align-items: center; gap: 6px;
  margin: 6px 4px 3px; font-size: 9px; font-weight: 500;
  color: var(--tx-secondary); font-variant-numeric: tabular-nums;
}
.ac-sec i { font-style: normal; margin-left: auto; color: #EBA04C; }
.ac-file {
  min-height: 34px; height: auto; padding: 6px 10px;
  border-radius: 12px; margin-bottom: 4px;
  background: var(--fill-readonly);
  cursor: default; opacity: .72;
}
.ac-file:hover { background: var(--fill-readonly); } /* no hover state in source */
.ac-file.on { opacity: 1; }
.ac-check {
  width: 20px; height: 20px; border-radius: 50%;
  box-shadow: none; background: none;
  color: rgba(255, 255, 255, .32); font-size: 13px;
  cursor: pointer;
}
.ac-file.on .ac-check { background: none; color: rgba(255, 69, 58, .9); }
.ac-catico {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  background: rgba(255, 255, 255, .075);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .7);
}
.ac-catico svg { width: 11px; height: 11px; }
.ac-fname { flex: 1; min-width: 0; line-height: 1.3; }
.ac-fname b { display: block; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-file.on .ac-fname b { color: rgba(255, 255, 255, .86); }
.ac-fname span { display: block; font-size: 10px; color: rgba(255, 255, 255, .36); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-file i { color: rgba(255, 255, 255, .58); font-size: 10px; }
.ac-actions { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; }
.ac-trash {
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: rgba(255, 69, 58, .22);
  color: rgba(255, 255, 255, .92);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.ac-trash svg { width: 12px; height: 12px; }
.ac-trash:disabled { opacity: .4; cursor: default; }
.ac-cancel {
  width: 26px; height: 26px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .82);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.ac-cancel svg { width: 10px; height: 10px; }
.ac-file .ac-catico, .ac-file .ac-cancel { flex: none; width: 24px; height: 24px; }
.ac-file .ac-check { flex: none; width: 20px; }
.nt-list { display: flex; flex-direction: column; align-items: stretch; }
.nt-row { width: 100%; box-sizing: border-box; }
/* populated feed: block layout (the centered flex is for the empty state only) */
#nt-body:not(.tr-body) { display: block; }
.nt-list { width: 100%; box-sizing: border-box; }

/* ===== system cleaner: 7-state machine per b3-3 ===== */
.orange { color: #EBA04C !important; font-style: normal; }
.sc-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center;
}
.sc-spin {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .15); border-top-color: rgba(255, 255, 255, .6);
  animation: ds-spin 1s linear infinite;
}
.sc-center > b { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.sc-curcat { font-size: 10px; color: rgba(255, 255, 255, .35); }
.sc-pathline {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 9px; color: rgba(255, 255, 255, .3);
  transition: opacity .1s ease-in-out;
  max-width: 90%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.sc-confirm-trash { width: 24px; height: 24px; color: rgba(235, 87, 87, .7); }
.sc-confirm-title { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .88); }
.sc-confirm-msg { font-size: 10px; font-weight: 500; color: rgba(255, 255, 255, .5); }
.sc-confirm-btns { display: flex; gap: 10px; width: 320px; margin-top: 4px; }
.sc-btn {
  flex: 1; border: none; padding: 8px 0; border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  font: inherit; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .7); cursor: pointer;
}
.sc-btn.sc-del { background: rgba(235, 87, 87, .35); color: rgba(255, 255, 255, .92); }
.sc-pct { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .92); }
.sc-track { width: 70%; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sc-track i { display: block; height: 100%; background: rgba(255, 255, 255, .5); }
.sc-cleaninglbl { font-size: 11px; color: rgba(255, 255, 255, .4); }
.sc-esc { position: absolute; right: 0; top: 0; }
.sc-done-check { font-size: 34px; color: #4CC76B; line-height: 1; }
.sc-done-size { font-size: 20px; font-weight: 700; color: #4CC76B; }
.sc-done-lbl { font-size: 11px; color: rgba(255, 255, 255, .6); }
.sc-selrow { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.sc-selrow b { font-size: 20px; font-weight: 700; }
.sc-selrow span { font-size: 10px; color: rgba(255, 255, 255, .35); }
.sc-selrow .ac-cancel { margin-left: auto; align-self: center; width: 22px; height: 22px; }
.sc-disk2 {
  display: flex; gap: 1px; height: 6px; border-radius: 2px; overflow: hidden;
  margin-top: 8px; background: rgba(255, 255, 255, .06);
}
.sc-disk2 .u { background: rgba(255, 255, 255, .3); border-radius: 2px; }
.sc-disk2 .j { background: rgba(255, 255, 255, .15); border-radius: 2px; }
.sc-cat i { display: block; font-size: 9px; font-weight: 700; margin-top: 2px; }
.sc-scan { background: color-mix(in srgb, var(--fam-mist) 20%, transparent); color: rgba(255, 255, 255, .88); }
.sc-scan:disabled { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .3); }
.sc-detail { position: absolute; inset: 0; }
.sc-dhead { display: flex; align-items: center; gap: 8px; }
.sc-dhead b { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.sc-dcount { margin-left: auto; font-size: 10px; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.sc-dtools { display: flex; gap: 8px; margin-top: 6px; }
.sc-dchip {
  border: none; height: 22px; padding: 0 8px; border-radius: 11px;
  background: rgba(255, 255, 255, .07);
  font: inherit; font-size: 10px; font-weight: 500; color: rgba(255, 255, 255, .5); cursor: pointer;
}
.sc-dlist { position: absolute; left: 0; right: 0; top: 62px; bottom: 36px; overflow-y: auto; scrollbar-width: none; }
.sc-dlist::-webkit-scrollbar { display: none; }
.sc-frow {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 6px; margin-bottom: 2px;
  border-radius: 6px;
}
.sc-frow.on { background: rgba(255, 255, 255, .04); }
.sc-fchk {
  width: 18px; height: 18px; flex: none; border: none; border-radius: 50%;
  background: none; padding: 0;
  font-size: 12px; color: rgba(255, 255, 255, .25); cursor: pointer;
}
.sc-frow.on .sc-fchk { color: rgba(255, 255, 255, .7); }
.sc-fname { flex: 1; min-width: 0; line-height: 1.25; }
.sc-fname b { display: block; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-fname span { display: block; font-size: 8px; color: rgba(255, 255, 255, .25); }
.sc-frow i { font-style: normal; font-size: 10px; font-weight: 700; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.sc-detail .sc-scan { position: absolute; left: 0; right: 0; bottom: 0; }

/* ===== system cleaner: flow layout (kills the stale absolute overlaps) ===== */
.sc-banner {
  position: static; margin-top: 0;
  width: 100%; box-sizing: border-box;
  appearance: none; -webkit-appearance: none; border: none; cursor: pointer;
  text-align: left; font: inherit;
}
.sc-disk-meta { position: static; margin-top: 4px; }
.sc-cats { position: static; margin-top: 10px; overflow-x: auto; scrollbar-width: none; gap: 12px; padding-bottom: 2px; }
.sc-cats::-webkit-scrollbar { display: none; }
.sc-cat { flex: none; min-width: 44px; }
.sc-scan {
  position: static; display: block;
  width: 100%; box-sizing: border-box;
  margin-top: 10px; padding: 8px 0; height: auto;
  border: none; border-radius: 8px;
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.sc-selrow { margin-top: 6px; }
#sc-body { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
#sc-body::-webkit-scrollbar { display: none; }
.sc-detail .sc-scan { position: absolute; left: 0; right: 0; bottom: 0; margin-top: 0; }

/* timer steppers: the reference circles are 18px, not 20-22 */
.ti-step button { width: 18px; height: 18px; font-size: 11px; line-height: 1; }
.ti-step { gap: 8px; }
.ti-rounds button { width: 18px; height: 18px; font-size: 11px; }

/* seg + bar chips: the reference pills are DARK fills, never white-on-black
   inversions; selected = brighter fill + brighter text. Measured: seg pill
   19px tall, bar chips 24px tall. */
.ti-seg button {
  height: 19px; padding: 0 8px; border-radius: 10px;
  font-size: 11px; font-weight: 500;
  background: none; color: var(--tx-tertiary);
}
.ti-seg button[aria-selected="true"] {
  background: var(--fill-selected);
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
}
.ti-chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 24px; padding: 0 12px; border-radius: 12px;
  background: var(--fill-interactive);
  color: var(--tx-secondary); font-size: 11px; font-weight: 500;
}
.ti-chip.on {
  background: var(--fill-lifted);
  color: rgba(255, 255, 255, .9); font-weight: 600;
}

/* ============ arrival actions ============ */
/* Pages without a control of their own still announce themselves on entry: their
   contents rise in with a short stagger. Kept to transform+opacity so it costs a
   compositor pass and nothing more. */
@keyframes hp-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hpage.hp-entering > * { animation: hp-rise .34s var(--mk-ease) both; }
.hpage.hp-entering > *:nth-child(2) { animation-delay: .05s; }
.hpage.hp-entering > *:nth-child(3) { animation-delay: .10s; }
.hpage.hp-entering > *:nth-child(4) { animation-delay: .15s; }
.hpage.hp-entering > *:nth-child(n+5) { animation-delay: .20s; }
/* a notification does not fade in, it slides down from the top edge */
@keyframes nt-slide { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.hpage.nt-arriving .nt-row:first-child { animation: nt-slide .38s var(--mk-ease) both; }
@media (prefers-reduced-motion: reduce) {
  .hpage.hp-entering > *, .hpage.nt-arriving .nt-row:first-child { animation: none; }
}

/* the homophone beat in the prompter, and the parked volume row */
.te-w.mis { color: #E0A44C; position: relative; }
.te-w.mis::after, .te-w.healed::after {
  content: attr(data-py);
  position: absolute; left: 50%; top: -1.15em; transform: translateX(-50%);
  font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #E0A44C; letter-spacing: .04em; white-space: nowrap;
}
.ds-row.ds-wait .ds-check { color: rgba(255, 255, 255, .4); }
.ds-row.ds-wait .ds-id b, .ds-row.ds-wait .ds-id > span { color: rgba(255, 255, 255, .38); }
.ds-row.ds-wait .ds-id i { color: #E0A44C; }
#cv-note.cv-guard { color: #E0A44C; }

/* Keep keyboard focus visible without reintroducing the old blue accent. */
:is(.p-search, .sa-field, .ti-cell, .ti-name, .tl-editor, .te-editor):focus-within {
  outline: 2px solid rgba(255, 255, 255, 0.76);
  outline-offset: 2px;
  background: var(--fill-lifted);
}

/* Narrow screens keep the controls at their authored size and reflow the
   658px desktop canvas into the taller mobile shell instead of scaling it. */
@media (max-width: 720px) {
  .hub-strip {
    padding: 8px 8px 0;
    gap: 8px;
  }
  .strip-tabs,
  .strip-controls { gap: 4px; }
  .strip-controls { width: auto; }

  .hpage .page-body {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }
  .hpage[data-page="home"] .page-body {
    left: 0;
    right: 0;
    bottom: 0;
  }
  .hpage[data-page="shelf"] .page-body,
  .hpage[data-page="convert"] .page-body { inset: 0; }

  .dash {
    left: 16px;
    right: 16px;
    height: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .clip-head { gap: 6px; }
  .clip-search { min-width: 0; }
  .clip-head .clip-toggle,
  .clip-head .clip-count { display: none; }
  .chip-row {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .chip-row::-webkit-scrollbar { display: none; }

  .ba-rings {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .ba-rings::-webkit-scrollbar { display: none; }
  .ba-ring { flex: none; }

  .sc-confirm-btns { width: 100%; }
}
