/* Lumi on the web: one set of components for every page (user 2026-11-02 via ⓪: what each button does is the app's;
   how it looks is ours, made with care). Loaded after app.css; /app/design shows all of it on one page.
   States everywhere: hover only where there is a mouse, a press that gives, a focus ring for the keyboard, disabled at 40%.
   The .is-hover / .is-active / .is-focus classes force a state, for the design page. */
:root {
  --hover: rgba(0, 0, 0, .04);
  --press: rgba(0, 0, 0, .08);
  --fill3: rgba(0, 0, 0, .09);
  --card: rgba(0, 0, 0, .028);
  --card-solid: #ffffff;
  --edge: rgba(0, 0, 0, .07);
  --edge-strong: rgba(0, 0, 0, .14);
  --focus: rgba(0, 122, 255, .45);
  --thumb: #ffffff;
  --ink-hover: #2c2c2e;
  --danger-solid: #e5372f;
  --glass-strong: rgba(255, 255, 255, .78);
  --glass-hi: inset 0 .5px 0 rgba(255, 255, 255, .8);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 .5px rgba(0, 0, 0, .06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, .08), 0 0 0 .5px rgba(0, 0, 0, .06);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.4, .5, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --hover: rgba(255, 255, 255, .06); --press: rgba(255, 255, 255, .11); --fill3: rgba(255, 255, 255, .15); --card: rgba(255, 255, 255, .055); --card-solid: #1c1c1e;
    --edge: rgba(255, 255, 255, .09); --edge-strong: rgba(255, 255, 255, .18); --focus: rgba(10, 132, 255, .6); --thumb: #636366; --ink-hover: #e5e5ea; --danger-solid: #ff453a;
    --glass-strong: rgba(44, 44, 46, .78); --glass-hi: inset 0 .5px 0 rgba(255, 255, 255, .12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 0 0 .5px rgba(255, 255, 255, .08); --shadow-md: 0 8px 24px rgba(0, 0, 0, .5), 0 0 0 .5px rgba(255, 255, 255, .09);
  }
}
:root[data-theme="dark"] {
  --hover: rgba(255, 255, 255, .06); --press: rgba(255, 255, 255, .11); --fill3: rgba(255, 255, 255, .15); --card: rgba(255, 255, 255, .055); --card-solid: #1c1c1e;
  --edge: rgba(255, 255, 255, .09); --edge-strong: rgba(255, 255, 255, .18); --focus: rgba(10, 132, 255, .6); --thumb: #636366; --ink-hover: #e5e5ea; --danger-solid: #ff453a;
  --glass-strong: rgba(44, 44, 46, .78); --glass-hi: inset 0 .5px 0 rgba(255, 255, 255, .12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 0 0 .5px rgba(255, 255, 255, .08); --shadow-md: 0 8px 24px rgba(0, 0, 0, .5), 0 0 0 .5px rgba(255, 255, 255, .09);
}

:focus { outline: none; }
:focus-visible, .is-focus { outline: 1.5px solid var(--focus); outline-offset: 2px; }

/* ----- buttons: primary (ink), secondary (grey), plain (text), danger (soft red; solid to delete for good) -----
   Sizes: sm 30, md 36 (the default on a computer), lg 48 (a sheet's or a page's main action, and on a phone). */
.btn, .capsule, .pill {
  --h: 32px; --px: 14px; --fs: 14px; --is: 17px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: var(--h); padding: 0 var(--px); border-radius: 999px;
  font-size: var(--fs); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; user-select: none; position: relative;
  background: var(--fill2); color: var(--fg);
  transition: background-color .15s var(--ease), color .15s, transform .18s var(--spring), opacity .15s, box-shadow .15s;
}
.btn .icon, .capsule .icon, .pill .icon { width: var(--is); height: var(--is); margin-left: -2px; }
.btn.sm, .capsule.small, .pill.small { --h: 28px; --px: 12px; --fs: 13px; --is: 15px; }
.btn.lg, .capsule, .pill.wide { --h: 44px; --px: 20px; --fs: 15px; --is: 18px; }
.capsule.mid { --h: 38px; --fs: 15px; }
.btn.wide, .capsule.wide, .pill.wide { width: 100%; }
@media (hover: hover) {
  .btn:hover, .capsule:hover, .pill:hover { background-color: var(--fill3); }
  .btn.primary:hover, .capsule.ink:hover, .pill.primary:hover { background-color: var(--ink-hover); }
  .btn.plain:hover { background-color: var(--hover); }
  .btn.danger:hover, .capsule.soft-red:hover { background-color: rgba(230, 56, 51, .16); }
  .btn.danger.solid:hover { background-color: #d42f27; }
}
.btn.is-hover, .capsule.is-hover { background-color: var(--fill3); }
.btn.primary.is-hover { background-color: var(--ink-hover); }
.btn.plain.is-hover { background-color: var(--hover); }
.btn.danger.is-hover { background-color: rgba(230, 56, 51, .16); }
.btn:active, .capsule:active, .pill:active, .btn.is-active { transform: scale(.96); transition-duration: .08s; }
.btn:not(.primary):not(.danger):active, .btn.is-active:not(.primary):not(.danger), .capsule.soft:active { background-color: var(--fill3); }
.btn.primary, .capsule.ink, .pill.primary { background: var(--fg); color: var(--bg); }
.btn.primary:active, .btn.primary.is-active { opacity: .82; }
.btn.plain { background: transparent; color: var(--fg); padding: 0 calc(var(--px) - 4px); }
.btn.plain.muted { color: var(--fg2); font-weight: 500; }
.btn.plain.blue { color: var(--blue); }
.btn.danger, .capsule.soft-red, .pill.danger { background: var(--soft-red); color: var(--soft-red-text); }
.btn.danger.solid { background: var(--danger-solid); color: #fff; }
.btn:disabled, .capsule:disabled, .pill:disabled, .btn.is-disabled { opacity: .4; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-row.end { justify-content: flex-end; }
.btn-row.fill > * { flex: 1; }

/* ----- icon buttons: plain (a circle that shows on hover), filled (grey), glass (floats over content: the app's
   RoundControl). Sizes 28, 36 (default), 44 (glass, and every tap target on a phone). ----- */
.ibtn, .round {
  --s: 36px; --is: 20px;
  width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center; flex: none; position: relative; color: var(--fg);
  transition: background-color .15s var(--ease), transform .2s var(--spring), color .15s, box-shadow .15s;
}
.ibtn .icon, .round .icon { width: var(--is); height: var(--is); }
.ibtn.sm { --s: 28px; --is: 17px; }
.ibtn.lg, .round { --s: 44px; --is: 21px; }
.ibtn.muted { color: var(--fg2); }
.ibtn.filled { background: var(--fill2); }
.ibtn.glass, .round {
  background: var(--glass-strong); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: var(--glass-hi), 0 0 0 .5px var(--edge), 0 2px 8px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .05);
}
@media (hover: hover) {
  .ibtn:hover { background-color: var(--hover); color: var(--fg); }
  .ibtn.filled:hover { background-color: var(--fill3); }
  .ibtn.glass:hover, .round:hover { background-color: var(--card-solid); }
}
.ibtn.is-hover { background-color: var(--hover); color: var(--fg); }
.ibtn.filled.is-hover { background-color: var(--fill3); }
.ibtn:active, .round:active, .ibtn.is-active { transform: scale(.9); transition-duration: .08s; }
.ibtn.plain:active, .ibtn.is-active:not(.glass):not(.filled) { background-color: var(--press); }
.ibtn:disabled, .ibtn.is-disabled { opacity: .35; pointer-events: none; }
.ibtn .dot, .round .dot { position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--bg); }
.ibtn.on { color: var(--fg); background: var(--fill2); }

/* ----- rows (Settings, Me, a friend's details) -----
   On a phone as the app has them (SettingsRow, AccountSettings.swift:98): the tile, 16pt, at least 46 high, flush with
   the page, no card and no lines; groups 28 apart under a 13pt title. On a computer the same rows, a little denser,
   with a soft wash on hover. */
.sgroup { display: flex; flex-direction: column; }
.sgroup + .sgroup { margin-top: 28px; }
.sgroup-title { font-size: 13px; font-weight: 500; color: var(--fg2); margin: 0 0 8px; display: flex; align-items: center; }
.scard { display: flex; flex-direction: column; }
.srow { position: relative; display: flex; align-items: center; gap: 14px; min-height: 46px; width: 100%; text-align: left; font-size: 16px; color: var(--fg); transition: background-color .12s; }
.srow .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .t small { display: block; font-size: 13px; color: var(--fg2); margin-top: 1px; white-space: normal; }
.srow .v { font-size: 14px; color: var(--fg2); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .chev { width: 16px; display: grid; place-items: center; color: var(--fg3); }
.srow .chev .icon { width: 13px; height: 13px; }
.srow.danger { color: var(--red); }
.srow.muted-row { color: var(--fg2); }
@media (hover: hover) { a.srow:hover .t, button.srow:hover .t { opacity: .7; } }
.srow:focus-visible { outline-offset: 2px; border-radius: 10px; }
.rowicon { width: 30px; height: 30px; border-radius: 8px; background: var(--fill2); color: var(--fg); display: grid; place-items: center; flex: none; }
.rowicon .icon { width: 18px; height: 18px; opacity: .8; }
.rowicon.danger { background: rgba(255, 59, 48, .08); color: var(--red); }
.rowicon.danger .icon { opacity: 1; }
.rowicon.emoji { font-size: 17px; }
@media (min-width: 861px) {
  .sgroup + .sgroup { margin-top: 24px; }
  .sgroup-title { font-size: 12.5px; margin-bottom: 4px; }
  .scard { margin: 0 -10px; }
  .srow { min-height: 42px; font-size: 14.5px; padding: 0 10px; gap: 12px; border-radius: 10px; }
  @media (hover: hover) { a.srow:hover .t, button.srow:hover .t { opacity: 1; } a.srow:hover, button.srow:hover, label.srow:hover { background-color: var(--hover); } }
  a.srow:active, button.srow:active { background-color: var(--press); }
  .rowicon { width: 28px; height: 28px; border-radius: 7px; }
  .rowicon .icon { width: 16px; height: 16px; }
}
a.srow.is-hover, button.srow.is-hover { background-color: var(--hover); }
a.srow.is-active { background-color: var(--press); }

/* ----- switch ----- */
.toggle { appearance: none; width: 51px; height: 31px; border-radius: 16px; background: var(--fill3); position: relative; cursor: pointer; flex: none; margin: 0; transition: background-color .22s var(--ease); }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .28s var(--spring), width .15s; }
.toggle:active::after { width: 32px; }
.toggle:checked { background: var(--green); }
.toggle:checked::after { transform: translateX(20px); }
.toggle:checked:active::after { transform: translateX(15px); }
.toggle:disabled { opacity: .4; }
@media (min-width: 861px) {
  .toggle { width: 38px; height: 23px; border-radius: 12px; }
  .toggle::after { width: 19px; height: 19px; }
  .toggle:active::after { width: 23px; }
  .toggle:checked::after { transform: translateX(15px); }
  .toggle:checked:active::after { transform: translateX(11px); }
}

/* ----- the segmented control: a grey track, a raised thumb that slides ----- */
.segmented { position: relative; display: flex; padding: 2px; border-radius: 9px; background: var(--fill2); isolation: isolate; }
.segmented button { flex: 1; height: 28px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--fg); display: flex; align-items: center; justify-content: center; gap: 6px; position: relative; z-index: 1; transition: color .15s; }
@media (hover: hover) { .segmented button:not(.on):hover { color: var(--fg); } }
.segmented button.on { color: var(--fg); font-weight: 600; background: var(--thumb); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
@media (min-width: 861px) { .segmented button { height: 28px; color: var(--fg2); } .segmented button.on { box-shadow: 0 1px 3px rgba(0, 0, 0, .1); } }
.segmented button:active:not(.on) { color: var(--fg); background: var(--hover); }
.segmented .icon { width: 18px; height: 18px; }
.segmented.lg button { height: 36px; font-size: 14px; }

/* ----- text fields ----- */
.field { width: 100%; border: 0; outline: none; background: var(--field); border-radius: 10px; padding: 0 18px; min-height: 56px; font-size: 17px; color: var(--fg);
  transition: background-color .15s, box-shadow .15s; box-shadow: inset 0 0 0 1px transparent; }
.field::placeholder { color: var(--fg3); }
@media (hover: hover) { .field:hover:not(:focus) { background: var(--fill2); } }
.field:focus, .field.is-focus { background: var(--field); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 55%, transparent); outline: none; }
.field.invalid { box-shadow: inset 0 0 0 1px var(--red); }
@media (min-width: 861px) { .field { border-radius: 10px; padding: 0 12px; min-height: 40px; font-size: 15px; } textarea.field { padding: 10px 12px; } }
.field:disabled { opacity: .5; }
textarea.field { min-height: 110px; padding: 16px 18px; resize: vertical; line-height: 1.45; }
.field-help { font-size: 13px; color: var(--fg2); margin: 6px 4px 0; }
.field-help.err { color: var(--red); }
label.lab { display: block; font-size: 13px; font-weight: 500; color: var(--fg2); margin: 18px 0 8px; }
/* UISearchBar: 36 high, corners 10, the system's tertiary fill, a grey glass and placeholder. */
.searchfield { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px; border-radius: 10px; background: rgba(118, 118, 128, .12); color: var(--fg2); transition: background-color .15s, box-shadow .15s; }
.searchfield input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; color: var(--fg); }
@media (min-width: 861px) { .searchfield { height: 32px; padding: 0 8px; border-radius: 8px; } .searchfield input { font-size: 14px; } }
.searchfield input::placeholder { color: var(--fg2); }
.searchfield .icon { width: 17px; height: 17px; color: var(--fg2); flex: none; }
.searchfield input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .searchfield { background: rgba(118, 118, 128, .24); } }
:root[data-theme=dark] .searchfield { background: rgba(118, 118, 128, .24); }

/* ----- chips and badges ----- */
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--fill); font-size: 15px; font-weight: 500; color: var(--fg); transition: background-color .15s, transform .18s var(--spring); }
.chip-btn .icon { width: 15px; height: 15px; }
@media (hover: hover) { .chip-btn:hover { background: var(--fill3); } }
.chip-btn:active { transform: scale(.95); }
.chip-btn.on { background: var(--fg); color: var(--bg); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.badge.grey { background: var(--fill3); color: var(--fg); }

/* ----- the menu (right click, ··· ) ----- */
.popmenu { min-width: 220px; padding: 5px; border-radius: 12px; background: var(--glass-strong); -webkit-backdrop-filter: blur(30px) saturate(1.9); backdrop-filter: blur(30px) saturate(1.9); box-shadow: var(--glass-hi), var(--pop-shadow); }
.popmenu button { gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 8px; font-size: 17px; }
.popmenu button .icon { width: 18px; height: 18px; color: var(--fg2); }
.popmenu button.danger .icon { color: currentColor; }
.popmenu button:hover, .popmenu button:focus-visible, .popmenu button.is-hover { background: var(--fill2); outline: none; }
.popmenu .sep { display: block; height: 8px; margin: 5px -5px; background: var(--fill); }
@media (min-width: 861px) {
  .popmenu { min-width: 200px; border-radius: 11px; }
  .popmenu button { min-height: 30px; font-size: 13.5px; border-radius: 6px; padding: 0 9px; }
  .popmenu button .icon { width: 16px; height: 16px; }
  .popmenu .sep { height: .5px; margin: 5px 10px; background: var(--line); }
}

/* ----- the phone's tab capsule ----- */
.tabbar { padding: 4px; border-radius: 999px; background: var(--glass-strong); -webkit-backdrop-filter: blur(28px) saturate(1.9); backdrop-filter: blur(28px) saturate(1.9);
  box-shadow: var(--glass-hi), 0 0 0 .5px var(--edge), 0 8px 30px rgba(0, 0, 0, .1); }
.tabbar a { width: 88px; height: 54px; display: flex; flex-direction: column; gap: 2px; align-items: center; justify-content: center; border-radius: 999px; color: var(--fg); transition: background-color .2s var(--ease), color .2s, transform .2s var(--spring); }
.tabbar a .icon { width: 28px; height: 28px; }
.tabbar a:not(.on) { opacity: .9; }
.tabbar a .lbl { font-size: 10.5px; font-weight: 600; letter-spacing: .01em; }
.tabbar a.on { background: var(--fill2); color: var(--fg); }
.tabbar a:active { transform: scale(.94); }

/* ----- the computer's sidebar: icon and name, you at the bottom ----- */
.sidebar { width: 220px; flex: none; display: flex; flex-direction: column; gap: 2px; padding: 16px 10px 12px; border-right: .5px solid var(--sep); background: var(--card); }
.sidebar .brand { display: flex; align-items: center; height: 36px; padding: 0 10px; margin-bottom: 14px; color: var(--fg); }
.sidebar .brand svg { height: 19px; width: auto; display: block; }
.sidebar a.nav { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; border-radius: 9px; color: var(--fg); font-size: 14.5px; font-weight: 500; position: relative; transition: background-color .12s; }
.sidebar a.nav .icon { width: 22px; height: 22px; color: var(--fg2); }
.sidebar a.nav .lbl { flex: 1; }
@media (hover: hover) { .sidebar a.nav:hover { background: var(--hover); } }
.sidebar a.nav.is-hover { background: var(--hover); }
.sidebar a.nav:active { background: var(--press); }
.sidebar a.nav.on { background: var(--fill2); font-weight: 600; }
.sidebar a.nav.on .icon { color: var(--fg); }
.sidebar .spacer { flex: 1; }
.sidebar .you { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: background-color .12s; }
.sidebar .you small { display: block; font-size: 12px; font-weight: 400; color: var(--fg2); }
.sidebar .you > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) { .sidebar .you:hover { background: var(--hover); } }
.sidebar .you.on { background: var(--fill2); }
@media (max-width: 1080px) and (min-width: 861px) {
  .sidebar { width: 68px; align-items: center; padding: 16px 8px 12px; }
  .sidebar .brand { padding: 0; justify-content: center; }
  .sidebar .brand svg { height: 15px; }
  .sidebar a.nav { width: 48px; height: 44px; justify-content: center; padding: 0; }
  .sidebar a.nav .lbl, .sidebar .you > span:last-child { display: none; }
  .sidebar a.nav .badge { position: absolute; top: 3px; right: 2px; }
  .sidebar .you { padding: 6px; }
}

/* ----- the design page ----- */
.kit { height: 100%; overflow-y: auto; padding: 36px 32px 80px; }
.kit-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.kit section { min-width: 0; }
.kit h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.kit .lead { color: var(--fg2); font-size: 15px; margin-top: 6px; max-width: 640px; line-height: 1.45; }
.kit section > h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fg2); margin-bottom: 14px; }
.kit section > p { font-size: 14px; color: var(--fg2); margin: -6px 0 16px; line-height: 1.45; max-width: 720px; }
.kit-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 4px; }
.kit-icon { display: grid; justify-items: center; gap: 9px; padding: 16px 6px 12px; border-radius: 12px; color: var(--fg); }
.kit-icon:hover { background: var(--hover); }
.kit-icon small { font-size: 10.5px; color: var(--fg2); text-align: center; word-break: break-all; line-height: 1.25; }
.kit-sizes { display: flex; align-items: flex-end; gap: 22px; margin-bottom: 18px; color: var(--fg); }
.kit-sizes span { display: grid; justify-items: center; gap: 6px; font-size: 11px; color: var(--fg2); }
.kit-table { display: grid; grid-template-columns: 110px repeat(5, auto); gap: 14px 18px; align-items: center; justify-content: start; }
.kit-table > b { font-size: 12px; font-weight: 600; color: var(--fg2); }
.kit-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; align-items: start; }
.kit-card { padding: 22px; border-radius: 18px; box-shadow: 0 0 0 .5px var(--edge); display: grid; gap: 14px; align-content: start; }
.kit-card > h3 { font-size: 13px; font-weight: 600; color: var(--fg2); }
.kit-stage { position: relative; height: 120px; border-radius: 18px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 25% 30%, #ffd2a6, transparent 55%), radial-gradient(circle at 75% 70%, #a9c8ff, transparent 55%), radial-gradient(circle at 60% 20%, #f7b5d8, transparent 50%), var(--bg2); }
.kit-stage .tabbar { position: static; transform: none; display: flex !important; }
.kit-side { height: 380px; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 .5px var(--edge); display: flex; }
.kit-side .sidebar { width: 220px !important; align-items: stretch !important; }
.kit-menu { position: static !important; transform: none !important; opacity: 1 !important; }
@media (max-width: 860px) {
  .kit { padding: 24px 16px 60px; }
  .kit-table { grid-template-columns: 64px repeat(5, auto); gap: 12px 8px; overflow-x: auto; padding-bottom: 4px; }
  .kit-table .btn { --px: 12px; }
  .kit-side .sidebar { width: 200px !important; }
  .kit-icons { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
}

/* ----- scrollbars: none standing on screen; a thin one shows while the pointer is over what scrolls ----- */
* { scrollbar-width: thin; scrollbar-color: transparent transparent; }
*:hover { scrollbar-color: color-mix(in srgb, var(--fg) 22%, transparent) transparent; }
textarea, .cbox textarea, .pending { scrollbar-width: none; }
::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; border-radius: 4px; border: 2px solid transparent; background-clip: padding-box; }
:hover::-webkit-scrollbar-thumb { background-color: color-mix(in srgb, var(--fg) 22%, transparent); }
textarea::-webkit-scrollbar { display: none; }

/* The app's RoundControl on a phone (Components.swift:155): the lighter glass and its own small shadow. */
.round { background: var(--glass); box-shadow: 0 0 0 .5px var(--glass-edge), 0 2px 10px rgba(0, 0, 0, .07); }
.round .dot { top: 0; right: 0; width: 10px; height: 10px; }
@media (hover: hover) { .round:hover { background-color: var(--glass); } }

/* iPhone Safari zooms into any field under 16px when you tap it; on a touch screen every field is 16px or more.
   The page can still be pinch-zoomed (the viewport doesn't forbid it). */
@media (hover: none) and (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), textarea, select { font-size: max(16px, 1em); }
}
.srow .t small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--fg2); line-height: 1.3; }
.srow:has(.t small) { padding-top: 8px; padding-bottom: 8px; }
.info-lib .sgroup + .sgroup, .info-lib > * + .sgroup { margin-top: 0; }
