/* iOS 6, after the Teehan+Lax iOS 6 GUI kit (ref/teehanlax/ios6/sheet.svg). Colours, gradients and sizes are the
   kit's, read off the layer named in each comment; the kit is drawn at 2x, so its numbers are halved here.
   No Apple images: every shape is CSS or an inline SVG redrawn from the kit's vectors. Layout lives in style.css. */

:root {
  color-scheme: light;
  --pin-dark: #cbd0da;  /* 2.5px dark, 5.5px light, 8px period; colours sampled from Cydia on the 4S */
  --pin-light: #ced3dc;
  --head: #4c566c;      /* "Table Label" */
  --emboss: 0 1px 0 rgba(255,255,255,.75); /* its white emboss under the label */
  --detail: #385487;
  --field-text: #4c566c; /* F149: an editable field's text, the kit's blue-grey (its "Table Label" colour) */
  --field-hint: #b3b3b3; /* F149: a field's placeholder, the kit's "URL field" hint ("Google") */
  --select: linear-gradient(#85a7e9, #2765db); /* cell selection: the kit's "Button (Matte Blue)" gradient */
  --text: #000;
  --subtitle: #7f7f7f;
  --table: #f7f7f7;     /* "Grouped Table" */
  --table-edge: #b7b9bd;
  --table-inset: rgba(0,0,0,.2);
  --divider: #c9c9c9;   /* "divider": shadow, then highlight */
  --divider-hi: #fff;
  --count: #8c99b3;
  --plain: #fff;        /* "Scroll pane" */
  --keyline: #dfdfdf;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17.5 26.4'%3E%3Cpath fill='%237f7f7f' d='M.07 4.23 9.12 13.27 0 22.26 4.12 26.38 17.47 13.03 4.43 0Z'/%3E%3C/svg%3E");
  --category: linear-gradient(rgba(109,123,133,.9), rgba(133,145,153,.9) 2%, rgba(177,187,195,.9) 5%,
    rgba(140,154,165,.9) 8%, rgba(173,182,188,.9) 94%, rgba(137,149,158,.9) 96%);
}
/* Dark: our own theme in the iOS 6 spirit (F13). The kit's black bars ("Status Bar (Black)", the black menu and
   tool bars, "Button (Black)") over gunmetal grouped tables, with white text at full contrast. The tab bar is
   black in both. Values not from the kit are ours, picked to keep the light theme's steps (pinstripe, edge,
   divider shadow and highlight) one shade apart. */
html[data-theme="dark"] {
  color-scheme: dark;
  --pin-dark: #2b2e33;
  --pin-light: #303338;
  --head: #e4e8ef;
  --emboss: 0 -1px 0 rgba(0,0,0,.8);
  --detail: #a9c4f2;
  --field-text: #d6deeb;
  --field-hint: #868c96;
  --text: #fff;
  --subtitle: #c3c8d0;
  --table: #3b3f46;
  --table-edge: #15171a;
  --table-inset: rgba(255,255,255,.08);
  --divider: #202226;
  --divider-hi: rgba(255,255,255,.08);
  --count: #66728b;
  --plain: #25272b;
  --keyline: #3d4046;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17.5 26.4'%3E%3Cpath fill='%23c3c8d0' d='M.07 4.23 9.12 13.27 0 22.26 4.12 26.38 17.47 13.03 4.43 0Z'/%3E%3C/svg%3E");
  --category: linear-gradient(rgba(40,42,46,.94), rgba(70,74,80,.94) 5%, rgba(52,55,60,.94) 8%, rgba(36,38,42,.94) 94%,
    rgba(20,21,24,.94) 96%);
}
body { color: var(--text); background: #000; }

/* ---- Nav bar: "Menu Bar (Blue)" and, under the notch, "Status Bar (Blue)" ---- */
.navbar {
  background:
    linear-gradient(#2d3642, #2d3642) bottom / 100% 1px no-repeat,              /* bottom edge */
    linear-gradient(#eff2f7, #eff2f7) 0 env(safe-area-inset-top) / 100% 1px no-repeat, /* top highlight, 1px */
    linear-gradient(#bdcbdc, #597498) bottom / 100% 44px no-repeat,              /* background: Cydia on the 4S */
    linear-gradient(#4f698b, #3f5b7f);                                           /* status bar */
}
.navbar::after { /* Shadow: 2.5px of black at 18% fading down over the screen */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 2.5px; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,0));
}
.nav-title {
  font-size: 20px; font-weight: bold; line-height: 44px; color: #fff; text-align: center;
  text-shadow: 0 -1px 0 rgba(0,0,0,.5);
}
/* Dark: "Status Bar (Black)" under the notch and the black menu bar ("Semi-transparent black bar", opaque):
   #4c4c4c to black at 52%, a 1px white-at-20% highlight on top, a 1px black-at-70% shadow at the bottom. */
html[data-theme="dark"] .navbar { /* gunmetal (user 2026-11-17): glossy split at half, light top edge, near-black base line */
  background:
    linear-gradient(#0b0c0e, #0b0c0e) bottom / 100% 1px no-repeat,
    linear-gradient(#7a808a, #7a808a) 0 env(safe-area-inset-top) / 100% 1px no-repeat,
    linear-gradient(#5f656f, #3b4048 50%, #30343b 51%, #23262b) bottom / 100% 44px no-repeat,
    #23262b;
}
html[data-theme="dark"] .navbar::after { background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,0)); }

/* Bar buttons and the back arrow, from the 4S's UIKit art (UINavigationBarDefaultButton, ...Pressed, ...Back), the
   versions the user picked (2026-11-17). background-origin: border-box matters: without
   it the gradient tiles into the 1px border and its light top shows as a line along the bottom. */
.bar-button {
  height: 29px; min-width: 50px; max-width: 100%; padding: 0 9px; overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; cursor: pointer; touch-action: manipulation;
  font-size: 12px; font-weight: bold; line-height: 27px; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.45);
  border: 1px solid #2f4769; border-top-color: #343a42; border-radius: 5px;
  background: linear-gradient(#99aac2, #41618e); background-origin: border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 0 rgba(255,255,255,.25);
}
.bar-button:active, .bar-button.is-pressed {
  background: linear-gradient(#8b97af, #283e6b); background-origin: border-box;
  border-color: #1c2c4f; border-top-color: #30343c;
}
html[data-theme="dark"] .bar-button:not(.back):not(.done) {
  border-color: #111; background: linear-gradient(#4a4f58, #24272c); background-origin: border-box;
}
html[data-theme="dark"] .bar-button:not(.back):not(.done):active, html[data-theme="dark"] .bar-button:not(.back):not(.done).is-pressed {
  background: linear-gradient(#2a2d32, #121316); background-origin: border-box;
}
.bar-button.back {
  height: 30px; min-width: 0; max-width: 100%; padding: 0 5px 0 1px; line-height: 28px;
  border: solid transparent; border-width: 0 5px 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0gzNlEzOSAzIDM5IDYiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLW9wYWNpdHk9Ii4zIiBzdHJva2Utd2lkdGg9IjEiLz48L3N2Zz4K"); }
html[data-theme="dark"] .bar-button.back:active, html[data-theme="dark"] .bar-button.back.is-pressed { filter: brightness(.75); }

/* ---- Tab bar: "Tab bar" ---- */
.tabbar {
  background:
    linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)) top / 100% 1px no-repeat,          /* top dark highlight */
    linear-gradient(rgba(255,255,255,.1), rgba(255,255,255,.1)) 0 1px / 100% 1px no-repeat, /* top highlight */
    linear-gradient(#2f2f2f, #151515 49.5%, #000 49.5%) 0 1px / 100% 48px no-repeat,  /* background */
    #000;
}
.tabbar::before { /* Shadow above: 2.5px, black at 18% */
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 2.5px; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.18));
}
.tab {
  display: flex; flex-direction: column; align-items: center;
  height: 44px; margin: 3px 2px 0; padding-top: 3.5px; border-radius: 2.5px;
  color: #a8a8a8; font-size: 10px; font-weight: bold; line-height: 12px;
}
.tab.active { /* "selected highlight": white at 15% with a soft inner edge */
  color: #fff; background: rgba(255,255,255,.15); box-shadow: inset 0 0 1px rgba(0,0,0,.31);
}
.tab-label { margin-top: 1px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tab-icon { width: 28px; height: 28px; filter: drop-shadow(0 -1px 0 rgba(0,0,0,.75)); }
.tab-icon::before { /* "icon (off)": a grey gradient through the glyph */
  content: ""; display: block; width: 100%; height: 100%;
  background: linear-gradient(#9d9d9d, #595959);
  -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat;
}
.tab.active .tab-icon { filter: drop-shadow(0 2.5px 2.5px rgba(0,0,0,.4)); }
.tab.active .tab-icon::before { /* "2 (active)": the glossy blue, split just under half */
  background: linear-gradient(165deg, #d9e5f9, #77b5eb 47.3%, #0091e5 48.8%, #0fbff7);
}
.tab[data-tab="home"]      { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 3 1.5 14H5v11h7v-7h4v7h7V14h3.5z'/%3E%3C/svg%3E"); }
.tab[data-tab="sources"]   { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Crect x='3' y='3' width='22' height='6' rx='2'/%3E%3Crect x='3' y='11' width='22' height='6' rx='2'/%3E%3Crect x='3' y='19' width='22' height='6' rx='2'/%3E%3C/svg%3E"); }
.tab[data-tab="changes"]   { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath fill-rule='evenodd' d='M14 2a12 12 0 1 0 0 24 12 12 0 1 0 0-24zm0 3a9 9 0 1 1 0 18 9 9 0 1 1 0-18z'/%3E%3Cpath d='M12.6 7h2.8v6.3l4.4 3.1-1.6 2.3-5.6-4z'/%3E%3C/svg%3E"); }
.tab[data-tab="installed"] { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M11 2h6v8h5l-8 8-8-8h5z'/%3E%3Cpath d='M2 17h6l2 3h8l2-3h6v9H2z'/%3E%3C/svg%3E"); }
.tab[data-tab="search"]    { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath fill-rule='evenodd' d='M11.5 2a9.5 9.5 0 1 0 0 19 9.5 9.5 0 1 0 0-19zm0 3a6.5 6.5 0 1 1 0 13 6.5 6.5 0 1 1 0-13z'/%3E%3Cpath d='m17.6 19.7 2.1-2.1 6.6 6.6-2.1 2.1z'/%3E%3C/svg%3E"); }
.tab[data-tab="settings"]  { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='%23000'%3E%3Ccircle cx='14' cy='14' r='7.4' stroke-width='5.2'/%3E%3Ccircle cx='14' cy='14' r='10.9' stroke-width='3.4' stroke-dasharray='4.28 4.28'/%3E%3C/svg%3E"); } /* our gear: a ring and eight teeth */

/* "# indicator": red gloss pill, 2px white ring, shadow under it. Scaled to the tab bar (the kit's is 23px). */
.badge {
  min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid #fff; border-radius: 10px;
  font-size: 13px; font-weight: bold; line-height: 16px; letter-spacing: -.02em; color: #fff; text-align: center;
  background: linear-gradient(#f7b3b7, #e92d35 48.8%, #e70f19 50.5%, #c50103);
  box-shadow: 0 2px 2.5px rgba(0,0,0,.6);
}
.tab .badge { position: absolute; top: -2px; left: calc(50% + 5px); }

/* ---- Grouped tables: "Grouped Tables" ---- */
.page-body.grouped {
  background: repeating-linear-gradient(90deg, var(--pin-dark) 0 2.5px, var(--pin-light) 2.5px 8px) var(--pin-light);
  padding-bottom: calc(var(--tab-h) + 20px); /* clear the fixed tab bar, then the table's own 20px; the last hint must scroll into view */
}
.group { margin: 10px 10px 0; }
.group + .group { margin-top: 23px; }
.group-header { /* "Table Label": 17px bold slate, white emboss */
  margin: 0 9px 7px; font-size: 17px; font-weight: bold; line-height: 21px; letter-spacing: -.01em;
  color: var(--head); text-shadow: var(--emboss);
}
.group:first-child > .group-header { margin-top: 10px; }
.group-footer {
  overflow-wrap: anywhere; /* a long URL wraps instead of running off the screen */
  margin: 7px 9px 0; font-size: 15px; line-height: 19px; text-align: center;
  color: var(--head); text-shadow: var(--emboss);
}
.table { list-style: none; margin: 0; padding: 0; }
.table.grouped { /* "Grouped Table": #f7f7f7, 1px #b7b9bd, 9.5px corners, white drop shadow, faint inner shadow */
  overflow: hidden; background: var(--table); border: 1px solid var(--table-edge); border-radius: 9.5px;
  box-shadow: inset 0 .5px .5px var(--table-inset); /* no white drop below: on a phone it read as white past the outline */
}
.cell-inner {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 43px; padding: 0 10px;
  border: 0; background: none; text-align: left; color: var(--text); text-decoration: none; cursor: default;
}
a.cell-inner, button.cell-inner { cursor: pointer; }
.grouped .cell + .cell { border-top: 1px solid var(--divider); }                 /* "divider": shadow, */
.grouped .cell + .cell > .cell-inner { box-shadow: inset 0 1px 0 var(--divider-hi); }  /* then highlight */
.cell-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cell-label { font-size: 17px; font-weight: bold; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cell-subtitle { font-size: 14px; color: var(--subtitle); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cell-detail { flex: none; max-width: 50%; font-size: 17px; color: var(--detail); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cell-count {
  flex: none; min-width: 26px; height: 20px; padding: 0 7px; border-radius: 10px; text-align: center;
  font-size: 14px; font-weight: bold; line-height: 20px; color: #fff; background: var(--count);
}
.cell-icon {
  flex: none; width: 29px; height: 29px; border-radius: 6px; display: grid; place-items: center;
  font-size: 15px; font-weight: bold; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.3);
  background: #8c99b3; box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
/* "arrows copy": 8.75 x 13.2 chevron, #7f7f7f, its right edge 10.5px in from the cell's */
.cell-inner.chevron::after {
  content: ""; flex: none; width: 9px; height: 13px; margin-right: .5px;
  background: var(--chevron) center / contain no-repeat;
}
.cell-check::after { content: "✓"; font-size: 20px; font-weight: bold; color: var(--detail); }
/* Tap: the blue selection, white text, as UITableViewCell does on touch down. */
/* Only app.js's .is-pressed, not :active: iOS keeps :active on a held row after the touch turns into a scroll. */
.cell-inner.is-pressed { background: var(--select); color: #fff; }
.cell-inner.is-pressed * { color: #fff; }
.cell-inner.chevron.is-pressed::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17.5 26.4'%3E%3Cpath fill='%23fff' d='M.07 4.23 9.12 13.27 0 22.26 4.12 26.38 17.47 13.03 4.43 0Z'/%3E%3C/svg%3E");
}
/* F163 (nav/selection.js): the opened row's blue, a copy over the row that fades by opacity alone during the pop. */
.cell-inner.sel-ghost { position: absolute; inset: 0; width: auto; pointer-events: none; will-change: opacity; }

/* "switch (on)" / "switch (off)": 77 x 27, a pill with the kit's edge gradient (on #819fb9 to #255985, off #ccc to
   #878787), track #007fe9 or #ededed with an inner shadow, ON in white or OFF in grey, and the 27px handle
   (#fbfbfb to #cfcfcf, black edge at 49%) that slides across by transform. Same in both themes, as the kit's. */
.cell-inner.has-switch { padding-right: 9px; }
/* On/off switch. Size from the Teehan+Lax kit ("switch (off|on)"): 77x27 track, 25pt knob 1pt inside it, 50pt of
   travel (a bigger knob over the outline looked too large). Colours from the 4S's UISwitch art.
   Everything rides on --x (0 off, 50px on; settings.js sets it while dragging): the knob, the blue fill that ends at
   the knob's centre, and both labels move together, so ON and OFF behave the same when tapped or dragged. */
.switch {
  --x: 0px;
  position: relative; flex: none; width: 77px; height: 27px; padding: 0; border: 0; background: none; cursor: pointer;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.switch[aria-checked="true"] { --x: 50px; }
.sw-track {
  position: absolute; inset: 0; border: 1px solid #a7a7a7; border-radius: 13.5px; overflow: hidden; pointer-events: none;
  background: linear-gradient(#e6e6e6, #fefefe); box-shadow: inset 0 2px 3px rgba(0,0,0,.3);
  font-size: 16px; font-weight: bold; line-height: 25px; text-align: left;
}
.sw-track::before { /* blue fill + ON, ending at the knob's centre (x + 13.5px) */
  content: "ON"; position: absolute; top: 0; bottom: 0; left: 0; width: 77px; padding-left: 25.5px; box-sizing: border-box;
  color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.35);
  background: linear-gradient(#1b68d8, #3f8cf3 55%, #5da1f6); transform: translateX(calc(var(--x) - 63.5px));
}
.sw-track::after { content: "OFF"; position: absolute; top: 0; right: 12px; color: #808080; transform: translateX(var(--x)); }
.sw-knob {
  position: absolute; top: 1px; left: 1px; width: 25px; height: 25px; box-sizing: border-box; border-radius: 50%;
  background: linear-gradient(#cfcfcf, #fcfcfc); border: 1px solid rgba(0,0,0,.42); box-shadow: 0 1px 2px rgba(0,0,0,.3);
  transform: translateX(var(--x)); pointer-events: none;
}
.sw-track::before, .sw-track::after, .sw-knob { transition: transform .2s ease; }
.switch.is-held .sw-knob { background: linear-gradient(#bcbcbc, #e6e6e6); }
.switch.is-dragging .sw-track::before, .switch.is-dragging .sw-track::after, .switch.is-dragging .sw-knob { transition: none; }
html[data-theme="dark"] .sw-track { border-color: #111; background: linear-gradient(#2b2e33, #3c4047); box-shadow: inset 0 1px 3px rgba(0,0,0,.8); }
html[data-theme="dark"] .sw-track::after { color: #9aa0a8; }
html[data-theme="dark"] .sw-track::before { background: linear-gradient(#0b4fb0, #3d8cf0); }
html[data-theme="dark"] .sw-knob { background: linear-gradient(#6a6f78, #3c4047); border-color: #111; }
html[data-theme="dark"] .switch.is-held .sw-knob { background: linear-gradient(#55595f, #2e3136); }
@media (prefers-reduced-motion: reduce) { .sw-track::before, .sw-track::after, .sw-knob { transition: none; } }

/* ---- Plain tables: "Scroll pane" ---- */
.page-body.plain { background: var(--plain); }
.table.plain { background: var(--plain); }
.plain .cell { border-bottom: 1px solid var(--keyline); } /* "keyline" */
.plain .cell-inner { padding-top: 4px; padding-bottom: 4px; }
.plain .cell-label { font-size: 20px; line-height: 24px; }
.section-header { /* "category bar": 23px, the kit's gradient at 90%, 18px bold white, dark emboss; sticks */
  position: sticky; top: 0; z-index: 1; height: 23px; padding: 0 12px;
  font-size: 18px; font-weight: bold; line-height: 23px; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.42);
  background: var(--category);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* ---- "Reloading Data" HUD: our own box, in the kit's terms: black at 75% like its translucent bars, 10px
   corners, a 36px white spinner (the kit's "White Large"), bold white label with the kit's -1px text emboss. ---- */
.hud-scrim { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; }
.hud {
  width: 180px; padding: 28px 12px 22px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: rgba(0,0,0,.75); color: #fff; text-align: center; text-shadow: 0 -1px 0 rgba(0,0,0,.5);
  font-size: 24px; font-weight: bold; line-height: 28px;
}
.hud-spinner { width: 37px; height: 37px; background: var(--spinner-large) center / 37px no-repeat; animation: hud-spin .96s linear infinite; }
.hud-check { width: 36px; height: 36px; }
/* F166: the spinners turn a spoke at a time by holding each 30-degree turn for 1/12 of the cycle, with linear timing.
   Not steps(12): WebKit on iOS 15 (Safari and the app's WKWebView alike) hands the transform animation to Core
   Animation and a steps() timing function there leaves it standing still (journal/2026-11-18-f166-spinners). */
@keyframes hud-spin {
  0%, 8.332% { transform: rotate(0deg); }
  8.333%, 16.666% { transform: rotate(30deg); }
  16.667%, 24.999% { transform: rotate(60deg); }
  25.000%, 33.332% { transform: rotate(90deg); }
  33.333%, 41.666% { transform: rotate(120deg); }
  41.667%, 49.999% { transform: rotate(150deg); }
  50.000%, 58.332% { transform: rotate(180deg); }
  58.333%, 66.666% { transform: rotate(210deg); }
  66.667%, 74.999% { transform: rotate(240deg); }
  75.000%, 83.332% { transform: rotate(270deg); }
  83.333%, 91.666% { transform: rotate(300deg); }
  91.667%, 100% { transform: rotate(330deg); }
}
/* iOS 6's UIActivityIndicatorView styles (nav/spinner.js draws them; spinner.test.js keeps the two the same). */
:root {
  --spinner-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='10' y1='1' x2='10' y2='4' opacity='0.271'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(30 10 10)' opacity='0.271'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(60 10 10)' opacity='0.271'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(90 10 10)' opacity='0.271'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(120 10 10)' opacity='0.369'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(150 10 10)' opacity='0.463'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(180 10 10)' opacity='0.561'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(210 10 10)' opacity='0.659'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(240 10 10)' opacity='0.753'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(270 10 10)' opacity='0.851'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(300 10 10)' opacity='0.271'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(330 10 10)' opacity='0.271'/%3E%3C/g%3E%3C/svg%3E");
  --spinner-gray: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='10' y1='1' x2='10' y2='4' opacity='0.122'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(30 10 10)' opacity='0.122'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(60 10 10)' opacity='0.122'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(90 10 10)' opacity='0.122'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(120 10 10)' opacity='0.165'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(150 10 10)' opacity='0.208'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(180 10 10)' opacity='0.251'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(210 10 10)' opacity='0.294'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(240 10 10)' opacity='0.337'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(270 10 10)' opacity='0.384'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(300 10 10)' opacity='0.122'/%3E%3Cline x1='10' y1='1' x2='10' y2='4' transform='rotate(330 10 10)' opacity='0.122'/%3E%3C/g%3E%3C/svg%3E");
  --spinner-large: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 37 37'%3E%3Cg stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='18.5' y1='2.5' x2='18.5' y2='8.5' opacity='0.271'/%3E%3Cline x1='18.5' y1='2.5' x2='18.5' y2='8.5' transform='rotate(30 18.5 18.5)' opacity='0.271'/%3E%3Cline x1='18.5' y1='2.5' x2='18.5' y2='8.5' transform='rotate(60 18.5 18.5)' opacity='0.271'/%3E%3Cline x1='18.5' y1='2.5' x2='18.5' y2='8.5' transform='rotate(90 18.5 18.5)' opacity='0.271'/%3E%3Cline x1='18.5' y1='2.5' x2='18.5' y2='8.5' transform='rotate(120 18.5 18.5)' opacity='0.369'/%3E%3Cline x1='18.5' y1='2.5' x2='18.5' y2='8.5' transform='rotate(150 18.5 18.5)' opacity='0.463'/%3E%3Cline x1='18.5' y1='2.5' x2='18.5' y2='8.5' transform='rotate(180 18.5 18.5)' opacity='0.561'/%3E%3Cline x1='18.5' y1='2.5' x2='18.5' y2='8.5' transform='rotate(210 18.5 18.5)' opacity='0.659'/%3E%3Cline x1='18.5' y1='2.5' x2='18.5' y2='8.5' transform='rotate(240 18.5 18.5)' opacity='0.753'/%3E%3Cline x1='18.5' y1='2.5' x2='18.5' y2='8.5' transform='rotate(270 18.5 18.5)' opacity='0.851'/%3E%3Cline x1='18.5' y1='2.5' x2='18.5' y2='8.5' transform='rotate(300 18.5 18.5)' opacity='0.271'/%3E%3Cline x1='18.5' y1='2.5' x2='18.5' y2='8.5' transform='rotate(330 18.5 18.5)' opacity='0.271'/%3E%3C/g%3E%3C/svg%3E");
}
/* No dark iOS 6: on the dark theme the grey (black at 38%) spinner would vanish, so lists take the white one. */
:root[data-theme="dark"] { --spinner-gray: var(--spinner-white); }

.empty { color: var(--head); text-shadow: var(--emboss); font-size: 17px; }

@media (prefers-reduced-motion: reduce) { .hud-spinner { animation-duration: 3s; } }

/* Zoom (Settings > Appearance > Allow Zoom, off by default): iOS ignores user-scalable=no, so app.js also stops
   the pinch gesture itself. */
html.no-zoom, html.no-zoom body { touch-action: pan-x pan-y; }

/* No grey tap flash anywhere: controls have their own pressed looks. */
* { -webkit-tap-highlight-color: transparent; }

/* ---- Scroll indicator (nav/scroller.js): UIKit's UIScrollerIndicatorDefault, 5pt black at 50% with a 1pt 15% white
   ring, fully rounded; wider while held. The native indicator is hidden: it isn't iOS 6's. ---- */
.page-body { scrollbar-width: none; }
.page-body::-webkit-scrollbar { display: none; }
.scroll-indicator {
  position: fixed; top: 0; right: 2px; z-index: 6; width: 5px; border-radius: 3px;
  background: rgba(0,0,0,.5); box-shadow: 0 0 0 1px rgba(255,255,255,.15);
  opacity: 0; transition: opacity .3s, width .1s; pointer-events: none; touch-action: none; will-change: transform;
}
.scroll-indicator.on { opacity: 1; } /* never takes touches: a hold on it grabs (nav/scroller.js) */
.scroll-indicator.grab { width: 7px; right: 1px; border-radius: 4px; }

/* Short pages still rubber-band like iOS: a scroller only bounces when it can scroll, so every page is at least
   1px taller than its box. A zero-width float does it without changing any element's size (stretching the first
   child pushed Search's results off the screen). */
.page-body::before { content: ""; float: left; width: 1px; margin-right: -1px; height: calc(100% + 1px); }

/* What's behind the page (Safari samples it for its top bar, and it shows in overscroll): the nav bar's colour for each
   theme, so switching theme repaints the top too. */
html { background: #bdcbdc; }
html[data-theme="dark"] { background: #5f656f; }

/* UIMenuController (nav/menu.js): a black glossy callout with an arrow, white bold items split by hairlines. */
.menu { position: fixed; z-index: 40; filter: drop-shadow(0 2px 4px rgba(0,0,0,.45)); }
.menu-items {
  display: flex; height: 38px; border-radius: 7px; overflow: hidden; border: 1px solid #000;
  background: linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.08) 50%, transparent 51%) , linear-gradient(#3c3c3c, #0d0d0d);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.menu-item {
  padding: 0 12px; border: 0; margin: 0; background: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: bold;
  line-height: 36px; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.8); white-space: nowrap;
}
.menu-item + .menu-item { border-left: 1px solid rgba(0,0,0,.9); box-shadow: inset 1px 0 0 rgba(255,255,255,.18); }
.menu-item:active { background: linear-gradient(#4a8cf0, #1d5fd9); }
.menu-arrow {
  position: absolute; top: 100%; width: 0; height: 0; margin: -1px 0 0 -10px;
  border: 10px solid transparent; border-bottom: 0; border-top-color: #0d0d0d;
}
.menu.below .menu-arrow { top: auto; bottom: 100%; margin: 0 0 -1px -10px; border: 10px solid transparent; border-top: 0; border-bottom-color: #3c3c3c; }
.cell.is-held > .cell-inner, .cell.is-held > .cell-inner * { background-color: transparent; color: #fff; }
.cell.is-held > .cell-inner { background: var(--select); }

/* Settings > Signing (screens/settings.js certificateBlock). Choose buttons: a <label> over a hidden file input, drawn
   as iOS 6's white round button (iTunesStoreUI GradientButtonBackground), going blue while held. */
.visually-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.sign-files .cell { position: relative; }
.sign-row { gap: 10px; padding-right: 78px; }
.sign-row .cell-label { flex: none; }
.sign-value {
  flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: right;
  font-size: 17px; color: var(--detail-blue, #385487);
}
.sign-value.is-empty { color: var(--subtitle); }
input.sign-value { border: 0; padding: 0; margin: 0; background: none; font: inherit; font-size: 17px; -webkit-user-select: text; user-select: text; outline: none; }
/* F149: the Password row is a field iOS 6's way: no box, its text left after the label in the field blue-grey, a grey
   "Required" hint, a blue caret. */
input.sign-field { text-align: left; color: var(--field-text); caret-color: #426bf2; cursor: text; }
input.sign-field::placeholder { color: var(--field-hint); opacity: 1; }
.sign-browse { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); min-width: 0; display: inline-block; }

/* iOS 6's notification banner (nav/banner.js): black glossy strip over the status bar, the app's icon, a bold white
   title over a lighter line, sliding down from the top edge. */
.banner {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 9px;
  padding: calc(env(safe-area-inset-top) + 6px) 12px 7px; cursor: pointer;
  background: linear-gradient(rgba(255,255,255,.14), rgba(255,255,255,.04) 50%, transparent 51%), linear-gradient(#262626, #000);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 2px 6px rgba(0,0,0,.5); border-bottom: 1px solid #000;
}
.banner-icon { flex: none; width: 29px; height: 29px; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.6); }
.banner-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; text-shadow: 0 -1px 0 rgba(0,0,0,.9); }
.banner-text strong { font-size: 15px; color: #fff; }
.banner-text span { font-size: 14px; color: #c8c8c8; } /* wraps: it stays up to be read in full */

/* ---- F76: the iOS 6 share sheet (nav/sharesheet.js), from the Teehan+Lax kit's "Share" layer (sheet.svg x 131-771,
   y 2104-2938, halved to points): Rectangle 7 dims the screen (black .4); the panel is black at .7 that lightens to
   grey over its top 42 pt (sampled off original-2x.png), under a dark keyline and a white top highlight, with a soft
   shadow above. Icons 57 pt, three to a row 100 pt apart, rows 101 pt apart from 36 pt down; labels Helvetica Neue
   bold 12 pt #fafafa on a black shadow 1 pt down, 14.5 pt lines. "Button (Large Black Semi)": a 45 pt black edge
   (#0d0d0d .6, radius 12.5) 20.5 pt in from the sides, the button 3 pt inside it (#5d5d5d -> black at 72% -> #29292b,
   sampled), a faint white stroke, Cancel bold 19 pt. 21.5 pt under it. Only transform/opacity animate. ---- */
.share-scrim { position: fixed; inset: 0; z-index: 30; }
.share-dim { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.share-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 0 calc(21.5px + env(safe-area-inset-bottom));
  background:
    linear-gradient(rgba(29,32,35,.7), rgba(29,32,35,.7)) top / 100% 1px no-repeat,
    linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.45)) 0 1px / 100% 1px no-repeat,
    linear-gradient(rgba(150,150,150,.7), rgba(0,0,0,.7) 42px);
  box-shadow: 0 -2.5px 2.5px rgba(0,0,0,.15);
  will-change: transform;
}
.share-pages {
  display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.share-pages::-webkit-scrollbar { display: none; }
.share-grid {
  flex: 0 0 100%; box-sizing: border-box; scroll-snap-align: start; padding: 0 10px;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 101px; align-content: start;
}
.share-item {
  display: flex; flex-direction: column; align-items: center; margin: 0; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.share-icon {
  position: relative; flex: none; width: 57px; height: 57px; border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 1px rgba(0,0,0,.5);
}
/* System activities (Copy, the QR code): UIActivityBlank redrawn, a light rim around dark perforated metal, the
   glyph white on top, UIActivityShine's gloss over the upper half. */
.share-icon.system { background: linear-gradient(#f6f6f6, #e5e5e6 12%, #d6d6d7 60%, #b3b4b4); background-origin: border-box; }
.share-icon.system::before {
  content: ""; position: absolute; inset: 3px; border-radius: 7.5px;
  background: radial-gradient(circle, rgba(0,0,0,.55) .9px, transparent 1.3px) 0 0 / 4px 4px,
    radial-gradient(circle, rgba(255,255,255,.1) .9px, transparent 1.3px) 0 1px / 4px 4px,
    linear-gradient(#5e5e5e, #3a3a3a 50%, #262626);
}
.share-icon.system svg { position: relative; width: 36px; height: 36px; color: #f4f4f4; filter: drop-shadow(0 -1px 0 rgba(0,0,0,.6)); }
.share-icon.system::after {
  content: ""; position: absolute; inset: 3px 3px 50%; border-radius: 7.5px 7.5px 0 0;
  background: linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.06));
}
/* Apps: the app's initial on its colour (no copied icons), with an iOS 6 icon's gloss. */
.share-icon.app { background: linear-gradient(rgba(255,255,255,.18), rgba(0,0,0,.12)), var(--share-tint, #5a6270); }
.share-icon.app::after {
  content: ""; position: absolute; left: -6px; right: -6px; top: -26px; height: 54px; border-radius: 50%;
  background: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.14));
}
.share-icon.has-image { background: none; }
.share-icon.has-image::after { content: none; } /* the app's own icon, as iOS 6 shows it: no gloss added */
.share-image { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.share-letter {
  position: relative; font-size: 32px; font-weight: bold; line-height: 1; color: #fff;
  text-shadow: 0 -1px 0 rgba(0,0,0,.35);
}
.share-item:active .share-icon { filter: brightness(.55); }
.share-label {
  width: 96px; margin-top: 4px; font-size: 12px; font-weight: bold; line-height: 14.5px; letter-spacing: .12px;
  color: #fafafa; text-shadow: 0 1px 0 rgba(0,0,0,.75); text-align: center;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
/* UIPageControl when there are more than nine. */
.share-dots { display: flex; justify-content: center; gap: 10px; height: 16px; align-items: center; margin-top: -8px; }
.share-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); }
.share-dots span.on { background: #fff; }
.share-cancel {
  position: relative; isolation: isolate; display: block; box-sizing: border-box;
  width: calc(100% - 41px); max-width: 520px; height: 45px; margin: 9px auto 0; padding: 0;
  border: 0; border-radius: 12.5px; background: rgba(13,13,13,.6); box-shadow: 0 1px 0 rgba(255,255,255,.16);
  font: inherit; font-size: 19px; font-weight: bold; line-height: 45px; letter-spacing: .1px; color: #fff;
  text-shadow: 0 -1px 0 rgba(0,0,0,.4); cursor: pointer; touch-action: manipulation;
}
.share-cancel::before {
  content: ""; position: absolute; inset: 3px; z-index: -1; border-radius: 9.5px;
  background: linear-gradient(#5d5d5d, #464646 25%, #1d1e1e 50%, #0a0b0c 72%, #29292b);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), inset 0 1px 0 rgba(255,255,255,.1);
}
.share-cancel:focus { outline: none; } /* focused on open (Escape, VoiceOver); the phone draws no ring */
.share-cancel:active::before { background: linear-gradient(#3a3a3a, #232323 25%, #0c0c0c 60%, #000 80%, #141414); }

/* The nav bar's Share button: UIBarButtonSystemItemAction, from the kit's "Action" bordered button (43 x 29 pt; the
   tray and the arrow sweeping up out of it, white on a dark shadow 1 pt up). */
.bar-button.bar-icon { min-width: 43px; width: 43px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.bar-button.share-button::before {
  content: ""; width: 25px; height: 20px; filter: drop-shadow(0 -1px 0 rgba(0,0,0,.45));
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjExNDQgODQzIDUwIDQwIj48ZyBmaWxsPSIjZmZmIj48cGF0aCBkPSJNMTE5MiA4NTggMTE3NiA4NDVWODUzSDExNzNDMTE2Ny4xMyA4NTMgMTE1NiA4NTcuNzUgMTE1NiA4NzEgMTE1NiA4NzEuMTkgMTE2MS41OCA4NjMgMTE3MyA4NjNIMTE3NlY4NzFaIi8+PHBhdGggZD0iTTExODAgODczVjg3N0gxMTUwVjg1N0gxMTU4TDExNjAgODUzSDExNDZMMTE0NS45NyA4ODEuMDEgMTE4NCA4ODFWODcwWiIvPjwvZz48L3N2Zz4=") center / 25px 20px no-repeat;
}

/* Sources' Add while iOS's Paste bubble waits (screens/sources.js): a green "Paste", unlike any held or Done look. */

/* Cydia's Sources badge while sources refresh: the red badge holding a white spinner (4S screenshots). */
.badge.spinning { position: absolute; width: 20px; padding: 0; }
.badge.spinning::after { /* the white spokes turn a step at a time, as Cydia's do */
  content: ""; position: absolute; inset: 0; background: var(--spinner-white) center / 16px no-repeat; /* the 20 pt white spinner inside the 2 px ring */
  animation: hud-spin .96s linear infinite;
}
/* A source row while it loads: a small grey spinner in place of its count and chevron (Cydia). */
.source-row.is-loading .cell-count { display: none; }
.source-row.is-loading .cell-inner::after { /* the chevron's place holds a small grey spinner while the source loads */
  width: 20px; height: 20px; background: var(--spinner-gray) center / 20px no-repeat; animation: hud-spin .96s linear infinite;
}

/* While a banner shows (nav/banner.js), the nav bar and the screens move down by its height, so it covers nothing. */
#navbar, #screens { transition: transform .3s cubic-bezier(.25,.1,.25,1); }
html.has-banner #navbar, html.has-banner #screens { transform: translateY(var(--banner-h, 44px)); }
/* The screens also end that much higher, so moving down doesn't push the bottom of a page under the tab bar. */
html.has-banner #screens { bottom: var(--banner-h, 44px); }

/* A bar button iOS left stuck in :active (Sources' Add after the Paste bubble): drawn as normal until touched again. */

/* nav/ui.js placeholder(): grey bars that pulse where a loading page's content will be. */
.ph-box, .ph-bar { display: block; background: #dcdfe3; animation: ph-pulse 1.2s ease-in-out infinite alternate; }
.ph-icon { width: 29px; height: 29px; border-radius: 6px; flex: none; margin-right: 10px; }
.ph-lines { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.ph-bar { height: 13px; border-radius: 6px; }
.ph-bar.ph-sub { height: 10px; }
.ph-w30 { width: 30%; } .ph-w35 { width: 35%; } .ph-w40 { width: 40%; } .ph-w50 { width: 50%; } .ph-w60 { width: 60%; } .ph-w70 { width: 70%; }
.ph-list .cell-inner { min-height: 58px; }
.ph-page .ph-head { display: flex; gap: 12px; align-items: center; margin: 10px 9px; padding: 12px; border-radius: 8px; background: var(--table, #fff); border: 1px solid var(--table-edge, #a9abad); }
.ph-icon-lg { width: 59px; height: 59px; border-radius: 12px; flex: none; }
html[data-theme="dark"] .ph-box, html[data-theme="dark"] .ph-bar { background: #3a3d42; }
@keyframes ph-pulse { from { opacity: 1; } to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .ph-box, .ph-bar { animation: none; } }
.banner .banner-action { flex: none; margin-left: auto; margin-right: 4px; align-self: center; height: 30px; line-height: 28px; padding: 0 12px; font-size: 13px; }

/* The website's locked tab bar (app.js lockTabs): only Home and Settings are open; the others are dimmed, as iOS 6
   dims a disabled tab item, with a small padlock over the icon. */
.tab.tab-locked .tab-icon, .tab.tab-locked .tab-label { opacity: .35; }
.tab.tab-locked { position: relative; }
.tab.tab-locked::after {
  content: ""; position: absolute; top: 5px; left: calc(50% + 9px); width: 10px; height: 12px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 15'%3E%3Cpath fill='%23c8ccd2' d='M3 6V4.2a3 3 0 0 1 6 0V6h.6c.8 0 1.4.6 1.4 1.4v5.2c0 .8-.6 1.4-1.4 1.4H2.4C1.6 14 1 13.4 1 12.6V7.4C1 6.6 1.6 6 2.4 6H3zm1.5 0h3V4.2a1.5 1.5 0 0 0-3 0V6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* F150: the reload bar (nav/reloadbar.js), Cydia's: the kit's "Semi-transparent black bar" (#4c4c4c to black at 52%,
   a white-at-20% highlight on top, black-at-70% at the bottom) at .8, dropping down like the banner, a 20 pt white
   spinner, a bold white status line and a blue Cancel. No scrim: only the strip takes touches. */
.reload-bar {
  position: fixed; z-index: 49; top: 0; left: 0; right: 0; height: calc(44px + env(safe-area-inset-top));
  display: flex; align-items: center; gap: 10px;
  padding: env(safe-area-inset-top) max(6px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  background:
    linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)) bottom / 100% 1px no-repeat,
    linear-gradient(rgba(255,255,255,.2), rgba(255,255,255,.2)) 0 env(safe-area-inset-top) / 100% 1px no-repeat,
    linear-gradient(rgba(76,76,76,.8), rgba(0,0,0,.8) 52%);
  will-change: transform;
}
.reload-spinner { flex: none; width: 20px; height: 20px; background: var(--spinner-white) center / 20px no-repeat; animation: hud-spin .96s linear infinite; }
.reload-text {
  flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 14px; font-weight: bold; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.8);
}
.reload-bar .reload-cancel { flex: none; margin-left: auto; }
/* The nav bar and the screens move down by the bar's 44 pt while it shows (as for the banner), and the screens end
   that much higher so a page's bottom stays clear of the tab bar. Under a banner, the bar sits below it. */
html.has-reload #navbar, html.has-reload #screens { transform: translateY(44px); }
html.has-reload #screens { bottom: 44px; }
html.has-reload.has-banner #navbar, html.has-reload.has-banner #screens { transform: translateY(calc(var(--banner-h, 44px) + 44px)); }
html.has-reload.has-banner #screens { bottom: calc(var(--banner-h, 44px) + 44px); }
html.has-banner .reload-bar { top: var(--banner-h, 44px); }
@media (prefers-reduced-motion: reduce) { .reload-spinner { animation-duration: 3s; } }
