/* app.css - the component layer of the rebuilt interface (UI overhaul R2,
   docs/spec-ui-overhaul-r2-build.md C1): buttons, icon buttons, switch,
   segmented control, rows, chips, dots, fields, notes, the overlay family,
   menu list, toasts, focus rings, reduced motion, the stacking values.

   Ported from the prototype's base.css (docs/ui-overhaul/prototype/src/css)
   with the aw- prefix on every class, so nothing here collides with the
   page's legacy sheet; nothing here styles a bare element. Colours are
   tokens only (static/ui/tokens.css; scripts/test_ui_tokens.py checks).
   Referenced as /static/ui/app.css?v=<CACHE_VERSION number>. */

/* not colours: radii, motion, stacking (tokens.css holds colours only) */
:root {
  --r-chip: 6px;
  --r-ctl: 12px;
  --r-block: 14px;
  --r-box: 20px;
  --r-round: 22px;
  /* cards and row groups (Settings cards, the danger zone, plan cards, the
     admin cards) and rows inside a block (segments, small tiles, list rows):
     the two radii the app used as literals until 2026-11-19 (design
     reference D7, the founder's approval) */
  --r-card: 16px;
  --r-row: 10px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 160ms;
  --t-slow: 220ms;

  /* stacking, lowest first: top bar; the source pane docked or beside the
     answer (R3); the top fill of the installed iPad app (above the bar, the
     band and the pane beside the answer, under every dimming layer); menu
     and scrim; the source pane covering the window (R3); Settings; overlays
     (sheets, dialogs and menus, AW.ui); the status strip (body::before of
     the app page and the confirm page); toasts */
  --z-topbar: 100;
  --z-source: 900;
  --z-topfill: 1000;
  --z-menu: 1100;
  --z-source-full: 1200;
  --z-settings: 2300;
  --z-overlays: 2500;
  --z-statusbar: 2600;
  --z-toasts: 9999;

  /* the side margin of a screen's content (the prototype's tokens.css):
     16 px, 24 px from 700 px (below) */
  --gutter: 16px;

  /* the bottom allowance for the home indicator of the installed iPhone app,
     which reports every safe-area inset as 0 (it runs without
     viewport-fit=cover, design §7.1): 34 px under html.aw-iphone-standalone,
     set at start-up by the page beside html.aw-ipad-standalone. Used as
     max(var(--safe-b), var(--home-ind)) on the bottom edge of the sheets and
     of Settings on phones. */
  --home-ind: 0px;
}
html.aw-iphone-standalone { --home-ind: 34px; }
@media (min-width: 700px) {
  :root { --gutter: 24px; }
}

/* the page behind an open layer does not scroll; the gutter stays, so the
   lock never shifts the text (lifted for print in the page's print block) */
html { scrollbar-gutter: stable; }
html.aw-lock { overflow: hidden; }

/* [hidden] wins over the display of any aw- class */
:where([class^="aw-"], [class*=" aw-"])[hidden] { display: none !important; }

.aw-sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.aw-ic { display: block; flex: none; }
.aw-danger { color: var(--red); }
/* the dart of AW.dart (R3-0): the logo's colours unless the caller's class
   gives its own */
.aw-dart { display: block; flex: none; }
.aw-dart-f1 { fill: var(--amber); }
.aw-dart-f2 { fill: var(--logo-shade); }

/* ---------- buttons ---------- */

.aw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; margin: 0; padding: 0 18px;
  border: 1px solid var(--border-hi); border-radius: var(--r-ctl);
  background: transparent; color: var(--text-hi);
  font-family: var(--sans); font-size: 15px; line-height: 20px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
/* the main action: soft amber (the founder's pick, 2026-11-17: a faint amber
   wash, amber text, a thin amber edge; solid amber is left to the Ask arrow) */
.aw-btn-primary { border-color: var(--amber-line); background: var(--amber-tint); color: var(--amber-text); font-weight: 600; }
.aw-btn-raised { background: var(--raised); }
.aw-btn-danger { border-color: var(--red-line); color: var(--red); }
.aw-btn-lg { min-height: 48px; border-radius: var(--r-block); }
.aw-btn-block { width: 100%; }
.aw-btn:disabled, .aw-btn[aria-disabled="true"] {
  border-color: var(--border); background: var(--raised); color: var(--disabled); cursor: default;
}

.aw-icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none; margin: 0; padding: 0;
  border: 0; border-radius: var(--r-ctl);
  background: transparent; color: var(--text-dim);
  font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.aw-icon-btn:disabled { color: var(--disabled); cursor: default; }

.aw-link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

@media (hover: hover) {
  .aw-btn:hover:not(:disabled):not(.aw-btn-primary) { background: var(--hover); }
  .aw-btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
  .aw-icon-btn:hover:not(:disabled) { background: var(--hover); color: var(--text-hi); }
  .aw-link:hover { color: var(--text-hi); }
}

/* ---------- fields ---------- */

.aw-field { display: flex; flex-direction: column; gap: 6px; }
.aw-field-label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-hi); }
.aw-field-help { font-size: 13px; line-height: 18px; color: var(--muted); }

.aw-input, .aw-textarea, .aw-select {
  display: block; width: 100%; min-height: 44px; margin: 0; padding: 10px 14px;
  border: 1px solid var(--border-hi); border-radius: var(--r-ctl);
  background: var(--field); color: var(--text-hi);
  font-family: var(--sans); font-size: 16px; line-height: 24px; font-weight: 400;
  outline: none;
}
.aw-input::placeholder, .aw-textarea::placeholder { color: var(--muted); opacity: 1; }
.aw-input:focus, .aw-textarea:focus, .aw-select:focus { border-color: var(--focus); }
/* the focus border fades in (R3 core, from track A: the page's element rule
   for every textarea, which gave the Settings editor this, went with the
   question panel in R3 A2) */
.aw-textarea { resize: none; transition: border-color var(--t-fast); }
/* a dropdown: the system control's own look off (WebKit, so Safari on the
   iPhone and iPad, otherwise draws its unstyled control: R2 C13, the
   Safari-engine walk) and the icon set's chevron over its right end, as the
   Documents page's type select has it; the field's height, border, colours
   and focus border stay, and so does its 44 px height (without the system
   look it is sized like the text fields, 46 px, hence 9 px padding instead
   of 10). Markup: span.aw-select-wrap holding the select.aw-select and
   span.aw-select-arrow (the chevron) */
.aw-select { padding: 9px 42px 9px 14px; cursor: pointer; appearance: none; -webkit-appearance: none; }
.aw-select option, .aw-hist-scope select option { background: var(--surface); color: var(--text-hi); }
.aw-select-wrap { position: relative; display: block; min-width: 0; }
.aw-select-arrow { position: absolute; top: 50%; right: 14px; margin-top: -8px; color: var(--text-dim); pointer-events: none; }

/* a real checkbox drawn as a switch; the 44px-high label is the target */
.aw-switch { position: relative; display: inline-flex; align-items: center; flex: none; width: 52px; height: 44px; }
.aw-switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.aw-switch input:disabled { cursor: default; }
.aw-switch-track {
  position: relative; width: 52px; height: 32px;
  border: 1px solid var(--border-hi); border-radius: 16px; background: var(--raised); /* half its height: fully round, not a card */
  transition: background var(--t-fast), border-color var(--t-fast);
}
.aw-switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--muted);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast);
}
.aw-switch input:checked + .aw-switch-track { border-color: var(--amber-edge); background: var(--amber); }
.aw-switch input:checked + .aw-switch-track::after { transform: translateX(20px); background: var(--on-amber); }
.aw-switch input:disabled + .aw-switch-track { opacity: 0.5; }
.aw-switch input:focus-visible + .aw-switch-track { outline: 2px solid var(--focus); outline-offset: 2px; }

/* a radio group drawn as a segmented control */
.aw-segmented {
  display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 100%; padding: 4px;
  border: 1px solid var(--border); border-radius: var(--r-block); background: var(--field);
}
.aw-segmented button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; margin: 0; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--r-row);
  background: transparent; color: var(--text-dim);
  font-family: var(--sans); font-size: 15px; cursor: pointer;
}
.aw-segmented button[aria-checked="true"] {
  border-color: var(--border-hi); background: var(--seg-on); box-shadow: var(--shadow-seg);
  color: var(--text-hi); font-weight: 600;
}

/* ---------- rows ---------- */

.aw-label { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--muted); }

.aw-row-group { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.aw-row {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 56px; margin: 0; padding: 8px 12px 8px 14px;
  border: 0; background: transparent; color: inherit; text-align: left; text-decoration: none;
  font-family: var(--sans); font-size: 15px;
}
button.aw-row, a.aw-row { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.aw-row + .aw-row { border-top: 1px solid var(--border); }
.aw-row-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex: none; border-radius: var(--r-row);
  background: var(--raised); color: var(--text-dim);
}
.aw-row-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.aw-row-title { font-size: 15px; line-height: 21px; font-weight: 500; color: var(--text-hi); }
.aw-row-sub { font-size: 13px; line-height: 18px; color: var(--muted); }
.aw-row-trail { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 13px; color: var(--muted); }

@media (hover: hover) {
  button.aw-row:hover, a.aw-row:hover { background: var(--hover); }
}

/* ---------- chips, badges, dots ---------- */

.aw-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border: 1px solid var(--border-hi); border-radius: 15px;
  background: var(--raised); color: var(--text);
  font-size: 13px; line-height: 18px; font-weight: 500; white-space: nowrap;
}
.aw-chip-amber { border-color: var(--amber-line); background: var(--amber-tint); color: var(--amber-text); }

.aw-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px;
  border: 1px solid var(--border-hi); border-radius: var(--r-row);
  font-size: 13px; line-height: 20px; font-weight: 600; color: var(--text-dim); white-space: nowrap;
}
.aw-badge-amber { border-color: var(--amber-line); background: var(--amber-tint); color: var(--amber-text); }
.aw-badge-green { border-color: var(--green-line); background: var(--green-bg); color: var(--green); }
.aw-badge-red { border-color: var(--red-line); background: var(--red-bg); color: var(--red); }

.aw-dot { position: relative; display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--dot); }
.aw-dot-red { background: var(--red); }
.aw-dot-pulse::after {
  content: ""; position: absolute; inset: -4px; border: 2px solid var(--dot); border-radius: 50%;
  opacity: 0; animation: aw-pulse 1.6s ease-out infinite;
}
@keyframes aw-pulse {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

.aw-spin {
  display: inline-block; width: 14px; height: 14px; flex: none;
  border: 2px solid var(--border-hi); border-top-color: var(--amber-text); border-radius: 50%;
  animation: aw-spin 0.8s linear infinite;
}
@keyframes aw-spin { to { transform: rotate(360deg); } }

/* ---------- notes: a boxed notice, and a one-line note ---------- */

.aw-note {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-hi); border-radius: var(--r-block); background: var(--raised);
}
.aw-note > .aw-ic { margin-top: 1px; color: var(--muted); }
.aw-note-warn { border-color: var(--warn-line); background: var(--warn-bg); }
.aw-note-warn > .aw-ic { color: var(--amber-text); }
.aw-note-error { border-color: var(--red-line); background: var(--red-bg); }
.aw-note-error > .aw-ic { color: var(--red); }
.aw-note-main { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: 1; min-width: 0; }
.aw-note-title { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--text-hi); }
.aw-note-text { font-size: 14px; line-height: 20px; color: var(--text-dim); overflow-wrap: anywhere; }

.aw-line {
  display: flex; align-items: flex-start; gap: 8px; max-width: 64ch;
  font-size: 13px; line-height: 18px; color: var(--muted);
}
.aw-line > .aw-ic { margin-top: 1px; }
.aw-line-error { font-size: 14px; line-height: 20px; color: var(--red); }

/* ---------- overlays (AW.ui, mounted in #aw-overlays) ---------- */

.aw-ov { position: fixed; inset: 0; z-index: var(--z-overlays); display: flex; font-family: var(--sans); }
.aw-ov-scrim { position: absolute; inset: 0; background: var(--scrim); animation: aw-fade var(--t-slow) ease-out; }
.aw-ov-panel { position: relative; outline: none; color: var(--text); }

/* sheet: from the bottom on compact windows, a centred dialog from 700px */
.aw-ov-sheet { align-items: flex-end; justify-content: center; }
.aw-ov-sheet .aw-ov-panel {
  display: flex; flex-direction: column;
  width: 100%; max-height: calc(100vh - 24px - var(--top-t)); max-height: calc(100dvh - 24px - var(--top-t));
  padding-bottom: max(var(--safe-b), var(--home-ind));
  border-top: 1px solid var(--border-hi); border-radius: var(--r-round) var(--r-round) 0 0;
  background: var(--surface); box-shadow: var(--shadow-pop);
  animation: aw-up var(--t-slow) var(--ease);
}
.aw-ov-grab { align-self: center; width: 40px; height: 4px; flex: none; margin-top: 8px; border-radius: 2px; background: var(--border-hi); }
.aw-ov-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; min-height: 52px; padding: 4px 8px 0 20px; }
.aw-ov-title { margin: 0; font-size: 19px; line-height: 26px; font-weight: 600; color: var(--text-hi); }
.aw-ov-title.aw-danger { color: var(--red); }
.aw-ov-body { flex: 1; min-height: 0; padding: 4px max(20px, var(--safe-r)) 20px max(20px, var(--safe-l)); overflow-y: auto; overscroll-behavior: contain; }
.aw-ov-foot { display: flex; gap: 10px; flex: none; padding: 0 max(20px, var(--safe-r)) 20px max(20px, var(--safe-l)); }
.aw-ov-foot .aw-btn { flex: 1; }
.aw-ov-foot .aw-btn-primary { flex: 2; }
.aw-ov-text { margin: 0; font-size: 15px; line-height: 22px; color: var(--text-dim); white-space: pre-wrap; overflow-wrap: anywhere; }

.aw-ov-s { --ov-w: 420px; }
.aw-ov-m { --ov-w: 560px; }
.aw-ov-l { --ov-w: 720px; }

@media (min-width: 700px) {
  .aw-ov-sheet { align-items: center; padding: calc(24px + var(--win-top)) 24px 24px; }
  .aw-ov-sheet .aw-ov-panel {
    width: min(100%, var(--ov-w, 560px)); max-height: min(720px, 100vh - 48px - var(--win-top)); max-height: min(720px, 100dvh - 48px - var(--win-top));
    padding-bottom: 0;
    border: 1px solid var(--border-hi); border-radius: var(--r-box);
  }
  .aw-ov-grab { display: none; }
  .aw-ov-head { padding-top: 10px; }
}

/* menu: a popover from 700px (placed by script), a sheet on compact windows */
.aw-ov-menu .aw-ov-scrim { background: transparent; }
.aw-ov-menu .aw-ov-panel {
  position: absolute; min-width: 240px; max-width: min(360px, 100vw - 32px); padding: 6px;
  border: 1px solid var(--border-hi); border-radius: var(--r-block);
  background: var(--surface); box-shadow: var(--shadow-pop);
  animation: aw-fade var(--t-fast) ease-out;
}
.aw-menu-list { display: flex; flex-direction: column; gap: 2px; }
.aw-ov-sheet .aw-menu-list { margin: 0 -8px; padding: 0 0 4px; }
.aw-menu-item {
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%; min-height: 44px; margin: 0; padding: 10px 12px;
  border: 0; border-radius: var(--r-row); background: transparent; text-align: left;
  font-family: var(--sans); color: var(--text-hi); cursor: pointer;
}
.aw-menu-item > .aw-ic { margin-top: 1px; color: var(--text-dim); }
.aw-menu-item-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.aw-menu-item-label { font-size: 15px; line-height: 22px; font-weight: 500; color: var(--text-hi); }
.aw-menu-item-sub { font-size: 13px; line-height: 19px; color: var(--muted); }
.aw-menu-item-check { width: 20px; flex: none; margin-top: 1px; color: var(--amber-text); }
.aw-menu-item.aw-danger .aw-menu-item-label, .aw-menu-item.aw-danger > .aw-ic { color: var(--red); }
.aw-menu-item:disabled { cursor: default; }
.aw-menu-item:disabled .aw-menu-item-label { color: var(--disabled); }

/* alert, confirm, prompt: a small centred dialog at every width */
.aw-ov-center {
  align-items: center; justify-content: center;
  padding: calc(24px + var(--top-t)) max(16px, var(--safe-r)) calc(24px + var(--safe-b)) max(16px, var(--safe-l));
}
.aw-ov-center .aw-ov-panel {
  display: flex; flex-direction: column; gap: 8px;
  width: min(100%, 440px); max-height: 100%; padding: 22px 22px 18px;
  overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--border-hi); border-radius: var(--r-box);
  background: var(--surface); box-shadow: var(--shadow-pop);
  animation: aw-up var(--t-slow) var(--ease);
}
.aw-ov-center .aw-ov-input { margin-top: 6px; }
.aw-ov-center .aw-ov-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 14px; }

@media (hover: hover) {
  .aw-menu-item:hover:not(:disabled) { background: var(--hover); }
}

@keyframes aw-fade { from { opacity: 0; } }
@keyframes aw-up { from { transform: translateY(18px); opacity: 0; } }

/* ---------- toasts (AW.ui.toast, in #aw-toasts) ---------- */

.aw-toasts {
  position: fixed; left: 0; right: 0; bottom: calc(24px + var(--safe-b)); z-index: var(--z-toasts);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0 16px; pointer-events: none;
}
.aw-toast {
  display: flex; align-items: center; gap: 4px;
  max-width: 480px; padding: 10px 16px;
  border: 1px solid var(--border-hi); border-radius: var(--r-ctl);
  background: var(--raised); box-shadow: var(--shadow-pop);
  color: var(--text-hi); font-family: var(--sans); font-size: 14px; line-height: 20px;
  animation: aw-up var(--t-slow) var(--ease);
}
.aw-toast-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.aw-toast-error { border-color: var(--red-line); color: var(--red); }
.aw-toast-error > .aw-ic { flex: none; margin-right: 6px; }  /* the error icon (D14, 2026-11-19) */
/* a tap on the toast's text reaches what is under it; only its dismiss
   button and its action (R3-0: "View" on the answer-ready toast) take taps */
.aw-toast-x { margin: -12px -12px -12px 0; color: inherit; pointer-events: auto; }
.aw-toast-action {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-height: 44px; margin: -12px 0 -12px 8px; padding: 0 12px;
  border: 0; border-radius: var(--r-ctl); background: transparent;
  color: var(--amber-text); font-family: var(--sans); font-size: 14px; line-height: 20px; font-weight: 600;
  cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.aw-toast-action:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (hover: hover) {
  .aw-toast-action:hover { background: var(--hover); }
}
/* under 700 px the toasts sit under the top bar, clear of the drawer's foot
   (at 390 px the sign-in toast's close mark covered the menu's theme switch
   for five seconds; R2 review) and of a bottom sheet's buttons */
@media (max-width: 699px) {
  .aw-toasts { top: calc(var(--topbar-h) + var(--top-t) + 8px); bottom: auto; }
}

/* ---------- the frame (C2): menu, scrim, column, top bar ----------
   Ported from the prototype's shell.css. The document scrolls; the menu is
   fixed at the left: a drawer under 1024 px, and from 1024 px a permanent
   menu while localStorage['aw.sidebar'] is not 'closed' (class
   .aw-menu-hidden on #app, set by shell.js). #app, #aw-col and #aw-main
   carry no transform, filter, contain or non-visible overflow in any state:
   the reading-position code measures the document's scroll, and on paper
   the answer card prints in the normal flow with each of its ancestors a
   plain block (the page's print block; the sitting's print fix). Only #aw-menu
   animates; the scroll lock of an open layer sits on <html>. */

/* --topbar-h: the top bar and the menu's logo row, under the status strip,
   their content centred: 60 px, as the admin console's header (admin.css
   .aw-adm-head), so the logo and the controls sit as many pixels from the top
   of the window on both pages (R2 C15, the founder's device check: iPadOS can
   draw a blurred band over about the top 56 px of the installed app's window;
   56 px until then) */
:root {
  --sidebar-w: 280px;
  --topbar-h: 60px;
  --content-max: 1000px;
  /* the empty strip at the top of the installed iPad app (html.aw-ipad-
     standalone): 12 px, full screen and in a window (the founder's
     decision of 2026-11-17, docs/ui-overhaul/r3-notes/recheck-fx-final.md:
     the logo higher). It is one flat colour, the top fill's (below), so the
     system's zone behind the clock and its window buttons sit over nothing
     but that colour; in a window the buttons reach into the top row. The
     admin console keeps its own values (admin.css: 40 px in a window, none
     full screen). Everywhere else 0. --top-t is the top edge everything
     starts under: the safe area plus the strip. The status strip
     (body::before) keeps --safe-t alone. */
  --win-top: 0px;
  --top-t: calc(var(--safe-t) + var(--win-top));
}
html.aw-ipad-standalone { --win-top: 12px; }
/* in the installed iPad app the page is not pulled down past its top (his
   request, 2026-11-17; WebKit turns the main scroll view's vertical bounce
   off for it) */
html.aw-ipad-standalone { overscroll-behavior-y: none; }

/* the top fill (run fx-fable, 2026-11-17;
   docs/ui-overhaul/r3-notes/recheck-fx-fable.md): why the system's zone
   behind the clock was solid on the admin console and translucent in the
   app. Read from WebKit's source (LocalFrameView::fixedContainerEdges,
   Page::updateFixedContainerEdges, WKWebView _updateFixedColorExtensionViews):
   on iPadOS 26 and later the zone above the page is filled with a solid
   colour only when a hit test at the middle of the page's top edge (4 px
   down) finds a fixed or sticky element at least 90 % of the window wide
   with a background; without one the system's scroll edge effect shows
   there, a blur over the scrolled page. On an iPad (not an iPhone) that
   element is looked for only until the first tap or scroll after the page
   loads; from then on the result stands, and it is dropped for the rest of
   the page's life once that element has no box (display: none) or is
   hidden. The console's header is always there. The app's top bar and band
   came and went with the menu, also when it stepped aside for a source, so
   the zone was lost at the first such change.
   So in the installed iPad app one element (#aw-topfill, the first child of
   <body>) is always there, from the page's first paint: fixed across the
   window's top edge, as high as the empty strip (--top-t: 12 px), above the bar, the band and the source pane
   beside the answer and under the menu, its scrim and every dialog. Its
   colour is the colour that was there already, so nothing on screen
   changes: the page's own (--bg) before the app shows and on the sign-in
   screen, the top bar's (--surface) once the app shows (#app without its
   "hidden" class; the same style pass, so iPadOS reads the app's colour
   when it looks again as the app's fixed parts arrive). It must keep its
   box: no display: none, no hidden, no visibility. iPadOS keeps the colour
   it read at the first tap: after a sign-in on the page itself the zone
   stays in the page's colour over the bar's until the app is opened again
   (solid, a shade apart). The one exception to "always there" is the
   theme: the zone would keep the other theme's colour, so when the theme
   changes the element is taken out on purpose (static/ui/shell.js,
   data-aw-topfill="dropped") and the zone is the translucent one of before
   until the app is opened again.
   Never printed (the print block hides every child of <body> but
   #app). */
.aw-topfill { display: none; }
@media screen {
  html.aw-ipad-standalone .aw-topfill {
    display: block;
    position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-topfill);
    height: var(--top-t);
    background: var(--bg);
  }
  html.aw-ipad-standalone:has(#app:not(.hidden)) .aw-topfill { background: var(--surface); }
  html.aw-ipad-standalone[data-aw-topfill="dropped"] .aw-topfill { display: none; }
}

.aw-menu {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: calc(var(--z-menu) + 1);
  display: flex; flex-direction: column;
  width: min(322px, 86vw);
  padding: var(--top-t) 0 var(--safe-b) var(--safe-l);
  border-right: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  font-family: var(--sans);
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform var(--t-slow) var(--ease), visibility 0s linear var(--t-slow);
}
.aw-menu:focus { outline: none; }
#app.aw-drawer-open .aw-menu {
  transform: none; visibility: visible; box-shadow: var(--shadow-pop);
  transition: transform var(--t-slow) var(--ease), visibility 0s;
}
/* the drawer's scrim is drawn only while the drawer is open (it fades in
   and out; visibility follows the fade, as the menu's does): otherwise no
   layer lies over the whole window, the top bar included, as on the admin
   console, whose top iPadOS leaves sharp (the founder's sitting, 2026-11-15;
   until then the closed scrim stayed over the bar, transparent) */
.aw-scrim {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--scrim); opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity var(--t-slow), visibility 0s linear var(--t-slow);
}
#app.aw-drawer-open .aw-scrim {
  opacity: 1; pointer-events: auto; visibility: visible;
  transition: opacity var(--t-slow), visibility 0s;
}

.aw-menu-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: var(--topbar-h); flex: none;
  padding: 0 6px 0 18px;
}
.aw-menu-head .logo-name { font-size: 17px; }

.aw-menu-primary { display: flex; flex-direction: column; gap: 4px; flex: none; padding: 6px 12px 0; }
.aw-menu-history { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.aw-menu-foot { display: flex; flex-direction: column; gap: 2px; flex: none; padding: 8px 12px 12px; border-top: 1px solid var(--border); }
.aw-menu-foot-rows { display: flex; flex-direction: column; gap: 2px; }

.aw-menu-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 44px; margin: 0; padding: 0 14px;
  border: 1px solid transparent; border-radius: var(--r-ctl);
  background: transparent; color: var(--text);
  font-family: var(--sans); font-size: 15px; line-height: 20px; text-align: left; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.aw-menu-row > .aw-ic { color: var(--text-dim); }
.aw-menu-row-new { border-color: var(--border-hi); background: var(--raised); color: var(--text-hi); font-weight: 500; }
.aw-menu-row:disabled { color: var(--disabled); cursor: default; }
.aw-menu-row:disabled > .aw-ic { color: var(--disabled); }
/* the current row: a fill, an edge and semi-bold, never the fill alone
   (founder 2026-11-19, D14) */
.aw-menu-row[aria-current="page"] { border-color: var(--border-hi); background: var(--selected); color: var(--text-hi); font-weight: 600; }
.aw-menu-row-label { flex: 1; min-width: 0; }

.aw-account { display: flex; align-items: center; gap: 2px; }
.aw-account-btn {
  display: flex; align-items: center; gap: 12px;
  flex: 1; min-width: 0; min-height: 56px; margin: 0; padding: 0 10px;
  border: 0; border-radius: var(--r-ctl); background: transparent; color: inherit;
  font-family: var(--sans); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.aw-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  background: var(--avatar); color: var(--text-hi); font-size: 15px; font-weight: 600;
}
.aw-account-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.aw-account-name { overflow: hidden; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--text-hi); text-overflow: ellipsis; white-space: nowrap; }
.aw-account-plan { font-size: 13px; line-height: 18px; color: var(--muted); }

@media (hover: hover) {
  .aw-menu-row:hover:not(:disabled), .aw-account-btn:hover { background: var(--hover); }
  .aw-menu-row-new:hover:not(:disabled), .aw-menu-row[aria-current="page"]:hover { background: var(--selected); }
}

.aw-col { min-width: 0; }

/* the top bar, shown while the menu is not permanent: the theme's surface
   with a hairline under it, the admin console's header in the same tokens
   (admin.css .aw-adm-head), so the top of the app is light in the light
   theme and dark in the dark theme (the founder's decision of 2026-11-15;
   dark in both themes until then); the status strip above it is
   --statusbar (tokens.css) */
.aw-topbar {
  position: sticky; top: 0; z-index: var(--z-topbar);
  display: flex; align-items: center; justify-content: space-between;
  height: calc(var(--topbar-h) + var(--top-t));
  padding: var(--top-t) max(6px, var(--safe-r)) 0 max(6px, var(--safe-l));
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.aw-topbar .logo-name { font-size: 17px; }
.aw-icon-slot { display: contents; }
.aw-menu-dot { position: absolute; top: 9px; right: 8px; box-shadow: 0 0 0 2px var(--surface); }
/* indexing is a hollow ring, failed a solid red dot: the two differ in shape,
   not only in colour, with or without the pulse (founder 2026-11-19, D14) */
.aw-menu-dot.aw-dot-pulse { background: transparent; box-shadow: inset 0 0 0 2px var(--dot), 0 0 0 2px var(--surface); }

/* the main column keeps today's 1000 px column and padding */
#aw-main {
  display: flex; flex-direction: column; gap: 1.5rem;
  width: 100%; max-width: var(--content-max); margin: 0 auto;
  padding: 2rem max(2rem, var(--safe-r)) calc(2rem + var(--safe-b)) max(2rem, var(--safe-l));
}
#aw-main:focus { outline: none; }
@media (max-width: 600px) {
  #aw-main { gap: 1rem; padding: 1rem max(1rem, var(--safe-r)) calc(1rem + var(--safe-b)) max(1rem, var(--safe-l)); }
}

/* the permanent menu */
@media (min-width: 1024px) {
  #app:not(.aw-menu-hidden) .aw-menu {
    width: var(--sidebar-w);
    transform: none; visibility: visible; box-shadow: none; transition: none;
  }
  #app:not(.aw-menu-hidden) .aw-scrim { display: none; }
  #app:not(.aw-menu-hidden) .aw-col { margin-left: var(--sidebar-w); }
  #app:not(.aw-menu-hidden) .aw-topbar { display: none; }
}
/* beside the permanent menu the column keeps the top bar's row free (the
   founder's sitting, 2026-11-15: the question box must not move when the
   menu opens or closes): the bar's height under the strip, the space the
   sticky bar takes when it shows. So the question box, an answer, the
   Documents view and the banners start at the same height whether the menu
   shows, is hidden or steps aside for a source (sources.js; under 1360 px),
   and the pane's header beside the answer sits in the same row as the bar.
   Screen only: the printout is as before. */
@media screen and (min-width: 1024px) {
  #app:not(.aw-menu-hidden) .aw-col { padding-top: calc(var(--topbar-h) + var(--top-t)); }
}

/* the band (the founder's re-check, 2026-11-16, run fx-band): beside the
   permanent menu the column's free row above is a solid, fixed band across
   the window, the theme's surface with the top bar's hairline, under the
   menu (whose head is the same surface) and above the scrolling content. So
   an answer scrolled up goes under a solid edge with a hairline, as under
   the top bar. Where the menu is not permanent the top bar is that element,
   so the band is drawn only here, and only in the installed iPad app (the
   head class html.aw-ipad-standalone): Safari, the desktop and the iPhone
   keep the page as it was (the founder: "Browser is fine"). Its height is
   the column's free row (the line above), so nothing moves; it takes no
   room (fixed) and is never printed.
   It was built to give iPadOS an opaque element at the window's top edge
   for the zone behind the clock; that zone needs an element that never
   leaves the page, which this band is not (it goes with the menu): the top
   fill above (.aw-topfill, run fx-fable) is that element now, and the band
   only draws the row. */
.aw-band { display: none; }
@media screen and (min-width: 1024px) {
  html.aw-ipad-standalone #app:not(.aw-menu-hidden) > .aw-band {
    display: block;
    position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-topbar);
    height: calc(var(--topbar-h) + var(--top-t));
    border-bottom: 1px solid var(--border);
    background: var(--surface);
  }
}

/* ---------- Settings (C3): #aw-settings, static markup adopted by AW.ui ----------
   Ported from the prototype's settings.css and screens/settings-*.css with the
   aw- prefix. Under 700 px full screen (the list, then a section); from
   700 px a centred dialog with the rail. Stacking: above the menu, under the
   legacy upload and filter dialogs and the overlays (--z-settings). */

.aw-settings {
  position: fixed; inset: 0; z-index: var(--z-settings);
  display: flex; align-items: stretch; justify-content: stretch;
  font-family: var(--sans); color: var(--text);
}
.aw-set-scrim { position: absolute; inset: 0; display: none; background: var(--scrim); animation: aw-fade var(--t-slow) ease-out; }
.aw-set-panel {
  position: relative; display: flex; width: 100%; height: 100%; min-width: 0;
  padding: var(--top-t) var(--safe-r) max(var(--safe-b), var(--home-ind)) var(--safe-l);
  background: var(--bg);
}
.aw-settings:focus { outline: none; }

/* the rail (from 700 px) */
.aw-set-rail {
  display: none; flex-direction: column; gap: 2px;
  width: 248px; flex: none; padding: 18px 12px 14px;
  border-right: 1px solid var(--border); background: var(--bg);
  overflow-y: auto; overscroll-behavior: contain;
}
.aw-set-rail-title { padding: 4px 12px 12px; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--text-hi); }
.aw-set-nav {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 44px; flex: none; margin: 0; padding: 0 12px;
  border: 1px solid transparent; border-radius: var(--r-ctl);
  background: transparent; color: var(--text);
  font-family: var(--sans); font-size: 15px; line-height: 20px; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.aw-set-nav > .aw-ic { color: var(--text-dim); }
.aw-set-nav[aria-current="true"] { border-color: var(--border); background: var(--surface); color: var(--text-hi); font-weight: 600; }
.aw-set-nav-quiet { color: var(--text-dim); }
.aw-set-spacer { flex: 1; min-height: 12px; }

/* the pane: head and scrolling body */
.aw-set-pane { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; background: var(--bg); }
.aw-set-head {
  display: flex; align-items: center; gap: 4px;
  min-height: 56px; flex: none; padding: 0 6px 0 20px;
  border-bottom: 1px solid var(--border);
}
.aw-set-head.aw-set-has-back { padding-left: 6px; }
.aw-set-title { flex: 1; min-width: 0; margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; color: var(--text-hi); outline: none; }
.aw-set-body { flex: 1; min-height: 0; padding: 16px max(16px, var(--safe-r)) 28px max(16px, var(--safe-l)); overflow-y: auto; overscroll-behavior: contain; }

/* the phone list */
.aw-set-list { display: flex; flex-direction: column; gap: 16px; }
.aw-set-me {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface);
}
.aw-set-me:empty { display: none; }
.aw-set-me-avatar { width: 44px; height: 44px; font-size: 18px; }
.aw-set-me-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.aw-set-me-name { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--text-hi); overflow-wrap: anywhere; }
.aw-set-me-mail { overflow: hidden; font-size: 13px; line-height: 18px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.aw-set-legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 10px; font-size: 13px; color: var(--muted); }
.aw-set-legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--text-dim); text-decoration: none; }

/* section building blocks */
.aw-set-sec { display: flex; flex-direction: column; }
.aw-set-item { display: flex; align-items: center; gap: 24px; }
.aw-set-item-main { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.aw-set-item-title { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--text-hi); }
.aw-set-item-text { margin: 0; max-width: 64ch; font-size: 14px; line-height: 20px; color: var(--muted); }
.aw-set-stack { display: flex; flex-direction: column; gap: 12px; }
.aw-set-rule { height: 1px; margin: 24px 0; border: 0; background: var(--border); }
.aw-set-text { margin: 0; max-width: 64ch; font-size: 15px; line-height: 22px; color: var(--text-dim); }
.aw-set-under { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.aw-set-empty {
  margin: 0; padding: 16px;
  border: 1px dashed var(--border-hi); border-radius: var(--r-card);
  font-size: 15px; line-height: 22px; color: var(--text-dim);
}
/* Edit / Delete / Remove in a row: the 44 px floor of every new control
   (R2 post-implementation audit F7), with a narrower pad than .aw-btn */
.aw-set-rowbtn { min-height: 44px; padding: 0 14px; }
.aw-set-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; font-size: 15px; color: var(--muted); }
.aw-set-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Account: who is signed in, biometric logins, the danger zone */
.aw-set-kv { min-height: 48px; gap: 16px; padding-right: 14px; }
.aw-set-k { width: 104px; flex: none; font-size: 14px; line-height: 20px; color: var(--muted); }
.aw-set-v { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; flex: 1; min-width: 0; font-size: 15px; line-height: 21px; font-weight: 500; color: var(--text-hi); overflow-wrap: anywhere; }
/* a biometric login's row (renderAccountInfo writes it as .aw-row.aw-set-key):
   the name and the dates take the room beside Remove and wrap; Remove keeps
   its size. R2 C17 (the founder's iPhone): the storage legend's .aw-set-key
   rule below, written for a legend item, reached these rows too (one class
   name, two uses), and its white-space: nowrap ran the dates, on a phone the
   name as well, under the button. */
.aw-row.aw-set-key { gap: 8px; padding-right: 10px; }
.aw-row.aw-set-key .aw-row-title, .aw-row.aw-set-key .aw-row-sub { overflow-wrap: anywhere; }
.aw-set-danger {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px;
  border: 1px solid var(--red-line); border-radius: var(--r-card);
}
.aw-set-danger-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--red); }
.aw-set-danger .aw-btn { align-self: flex-start; }
.aw-set-seg { align-self: flex-start; }
.aw-set-form { display: flex; flex-direction: column; gap: 14px; }
.aw-set-field-label { font-weight: 400; color: var(--text-dim); overflow-wrap: anywhere; }
.aw-set-field-label strong { font-weight: 600; color: var(--text-hi); }

@media (max-width: 479px) {
  .aw-set-item { flex-wrap: wrap; gap: 12px; }
  .aw-set-k { width: 92px; }
}

@media (min-width: 700px) {
  .aw-settings { align-items: center; justify-content: center; padding: 24px; }
  .aw-settings { padding-top: calc(24px + var(--win-top)); }
  .aw-set-scrim { display: block; }
  .aw-set-panel {
    width: min(920px, 100%); height: min(640px, 100%); padding: 0;
    border: 1px solid var(--border-hi); border-radius: var(--r-box);
    background: var(--surface); box-shadow: var(--shadow-pop); overflow: hidden;
    animation: aw-up var(--t-slow) var(--ease);
  }
  .aw-set-rail { display: flex; }
  .aw-set-pane { background: var(--surface); }
  .aw-set-head { min-height: 64px; padding: 0 10px 0 32px; border-bottom: 0; }
  .aw-set-body { padding: 4px 32px 28px; }
}

@media (hover: hover) {
  .aw-set-nav:hover:not([aria-current="true"]) { background: var(--hover); }
  .aw-set-legal a:hover, .aw-set-links a:hover { color: var(--text-hi); }
}

/* Settings (C4): a switch with its title on one line and the explanation
   under it at full width; both meanings of a switch; notes; status lines;
   the custom-instructions editor. From the prototype's settings-a.css. */
.aw-set-opt { display: flex; flex-direction: column; gap: 4px; }
.aw-set-opt + .aw-set-opt { margin-top: 22px; }
.aw-set-opt-head { display: flex; align-items: center; gap: 24px; min-height: 32px; }
.aw-set-opt-head .aw-switch { margin: -6px 0; }
.aw-set-opt-title { display: flex; align-items: center; flex: 1; min-width: 0; min-height: 32px; cursor: pointer; }
.aw-set-opt-text { display: flex; flex-direction: column; gap: 6px; }
.aw-set-opt-text p { margin: 0; }
.aw-set-opt-off .aw-set-opt-title { color: var(--muted); cursor: default; }
/* the meaning that applies sits in a shaded box (his request, 2026-11-17:
   weight alone was hard to tell apart); weight and text colour stay too */
.aw-set-onoff { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 0; margin: 0; }
.aw-set-onoff dt { padding: 8px 12px 8px 10px; border-radius: var(--r-chip) 0 0 var(--r-chip); font-weight: 500; color: var(--muted); }
.aw-set-onoff dd { margin: 0; padding: 8px 10px 8px 0; border-radius: 0 var(--r-chip) var(--r-chip) 0; }
.aw-set-onoff dt.aw-set-now, .aw-set-onoff dd.aw-set-now { background: var(--selected); }
.aw-set-onoff .aw-set-now { color: var(--text); }
.aw-set-onoff dt.aw-set-now { font-weight: 600; color: var(--text-hi); }
.aw-set-gk-name { color: var(--gk); font-weight: 500; }
.aw-set-note { margin-bottom: 22px; }
.aw-set-note .aw-btn { margin-top: 8px; }
.aw-set-note-after { margin: 16px 0 0; }
.aw-set-act { align-items: flex-start; }
.aw-set-act .aw-btn { margin-top: 2px; }
.aw-set-error { margin-top: 16px; }
.aw-set-install-signin { margin-top: 6px; }
/* fx-notify (the founder's device sitting, 2026-11-15): an admin's
   "Notification diagnostics" in Settings → Notifications, its lines as plain
   text that wraps (no sideways scroll on a phone); cut with the block */
.aw-set-diag {
  margin: 0; padding: 12px; max-height: 420px; overflow: auto;
  border: 1px solid var(--border-hi); border-radius: 12px;
  font-family: var(--mono); font-size: 12px; line-height: 18px; color: var(--text-dim);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.aw-set-text a, .aw-set-item-text a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.aw-set-link { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; font-size: 15px; }
.aw-set-block { display: flex; flex-direction: column; gap: 4px; }
.aw-set-status { display: inline-flex; align-items: flex-start; gap: 6px; min-height: 20px; font-size: 14px; line-height: 20px; color: var(--muted); }
.aw-set-status > .aw-ic { margin-top: 1px; }
.aw-set-status-ok { color: var(--green); }
.aw-set-status-bad { color: var(--red); }
.aw-set-ci { height: 168px; margin-top: 4px; }
.aw-set-ci-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 4px; }
.aw-set-ci-actions .aw-btn { min-width: 96px; }

@media (max-width: 479px) {
  .aw-set-act { flex-wrap: wrap; }
  .aw-set-act .aw-set-item-main { flex-basis: 100%; }
}
.aw-line .aw-icon-slot > .aw-ic { margin-top: 1px; }

/* Settings (C5): the storage bar, filter groups and their editor sheet, plan
   and billing. From the prototype's settings-b.css. */
.aw-set-bar {
  display: flex; height: 14px;
  border: 1px solid var(--border-hi); border-radius: 7px;
  background: var(--field); overflow: hidden;
}
.aw-set-bar-seg { flex: none; height: 100%; min-width: 3px; }
.aw-set-bar-seg + .aw-set-bar-seg { border-left: 1px solid var(--surface); }
.aw-set-bar-docs { background: var(--amber); }
.aw-set-bar-saved { background: var(--muted); }  /* grey, not blue (founder 2026-11-19, D6) */
.aw-set-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 14px; line-height: 20px; color: var(--text-dim); }
/* a legend item of the storage bar: on one line (scoped to the legend since
   R2 C17: a biometric login's row shares the class name) */
.aw-set-legend .aw-set-key { display: inline-flex; align-items: center; gap: 8px; padding-right: 10px; white-space: nowrap; }
.aw-set-legend .aw-set-key b { font-weight: 500; color: var(--text-hi); }
.aw-set-swatch { width: 10px; height: 10px; flex: none; border-radius: 3px; }
.aw-set-total { margin-left: auto; font-weight: 500; color: var(--text-hi); white-space: nowrap; }

.aw-set-fg-row { gap: 8px; padding-right: 10px; }
.aw-set-fg-row .aw-row-main { margin-right: 6px; }
.aw-set-fg-row .aw-row-title { overflow-wrap: anywhere; }
.aw-set-why { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--text-dim); }
.aw-set-why > .aw-ic { color: var(--muted); }
.aw-set-sheet-error { flex: 0 0 100%; }

.aw-set-plan, .aw-set-plan-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px;
  border: 1px solid var(--border-hi); border-radius: var(--r-card);
  background: var(--surface); box-shadow: var(--shadow-card);
}
.aw-set-plan-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.aw-set-plan-name { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--text-hi); }
.aw-set-plan-lines { display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 22px; color: var(--text); }
.aw-set-plan-lines p { margin: 0; }
.aw-set-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.aw-set-plan-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; }
.aw-set-cur { flex: 1 1 250px; min-width: 0; }
.aw-set-plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.aw-set-price { display: flex; flex-direction: column; gap: 2px; }
.aw-set-amount { font-size: 22px; line-height: 28px; font-weight: 600; color: var(--text-hi); }
.aw-set-amount span { font-size: 15px; font-weight: 400; color: var(--text-dim); }
.aw-set-tax { font-size: 13px; line-height: 18px; color: var(--muted); }
.aw-set-feats { display: flex; flex-direction: column; gap: 8px; flex: 1; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: var(--text-dim); }
.aw-set-feats li { display: flex; align-items: flex-start; gap: 8px; }
.aw-set-feats .aw-ic { margin-top: 2px; color: var(--amber-text); }
.aw-set-notes { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 19px; color: var(--muted); }
.aw-set-notice { margin-bottom: 20px; }
.aw-set-notice-x { margin: -10px -10px -10px 0; }

@media (max-width: 479px) {
  .aw-set-plan-controls .aw-segmented { display: flex; width: 100%; }
  .aw-set-plan-controls .aw-segmented button { flex: 1; }
}
/* usage, the first block of "Plan and billing" (plan allowances part 2, D23;
   frames U1, U2; drawn by static/ui/ask.js, whose ask.css holds the rings'
   colours): a label, the week's two tiles or a Free account's day, the
   reset, two short boxes; then the plan part, under a rule */
.aw-usage-wrap[hidden] { display: none; }
.aw-usage-wrap:not([hidden]) ~ .aw-set-billing-body:not(:empty) { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.aw-usage { display: flex; flex-direction: column; gap: 12px; font-family: var(--sans); }
.aw-usage-label { margin: 0; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.aw-usage-tiles { display: flex; gap: 12px; }
.aw-usage-tile {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px;
  border: 1px solid var(--border); border-radius: var(--r-block); background: var(--field); text-align: center;
}
.aw-usage-tile-name { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text-hi); }
.aw-usage-tile-sub { font-size: 13px; line-height: 18px; color: var(--text-dim); }
.aw-usage-reset { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-dim); }
.aw-usage-box { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 6px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-block); }
.aw-usage-box-title { margin: 0; font-size: 15px; line-height: 21px; font-weight: 600; color: var(--text-hi); }
.aw-usage-box-text { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-dim); }
.aw-usage-link {
  display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; padding: 0; border: 0; background: transparent;
  color: var(--amber-text); font-family: var(--sans); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.aw-usage-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-chip); }
@media (hover: hover) { .aw-usage-link:hover { text-decoration: underline; } }
.aw-usage-day { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; }
.aw-usage-day-left { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--text-hi); }
.aw-usage-day-trial { font-size: 14px; line-height: 20px; color: var(--text-dim); }
.aw-usage-bar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.aw-usage-bar-fill { height: 8px; border-radius: 4px; background: var(--dot); }
.aw-usage-bar-fill[data-grade="standard"] { background: var(--blue); }
.aw-note-ok { border-color: var(--green-line); background: var(--green-bg); }
.aw-note-ok > .aw-ic { color: var(--green); }
.aw-ov-foot { flex-wrap: wrap; }
.aw-set-plan-change { display: flex; align-items: flex-start; gap: 8px; color: var(--text-dim); }
.aw-set-plan-change > .aw-ic { margin-top: 2px; color: var(--muted); }

/* ---------- the Documents page (C6): #page-documents, static/ui/documents.js ----------
   From the prototype's screens/documents.css with the aw- prefix. The row
   follows the width of the page column (a container query on the page). */

#page-documents { gap: 0; container: docs / inline-size; font-family: var(--sans); }
.aw-docs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding-left: 6px; }
.aw-docs-title { margin: 0; font-size: 26px; line-height: 32px; font-weight: 600; color: var(--text-hi); outline: none; }
/* the Documents page's Upload: the button's shape in a neutral colour
   (aw-btn-raised; the founder, 2026-11-17: not the main one of a choice) */
.aw-docs-upload { padding: 0 18px 0 14px; }
.aw-docs-sub {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px;
  padding-left: 6px; font-size: 13px; line-height: 18px; color: var(--muted);
}
.aw-docs-summary { padding: 4px 0; }
.aw-docs-link {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0;
  border: 0; border-radius: var(--r-chip); background: transparent;
  color: var(--text-dim); font-family: var(--sans); font-size: 13px; line-height: 18px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.aw-docs-note { margin-top: 8px; padding: 10px 12px 10px 14px; }
.aw-docs-note .aw-note-main { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.aw-docs-note .aw-note-text { flex: 1; min-width: 200px; }
.aw-docs-help { padding: 10px 6px 0; }
/* plan allowances part 3 (C17, D29): the library rule's note at the top of
   Documents, the rows' "Searchable" / "Locked" (a word and an icon; the
   chips' own colours, so no new pair), and the chooser sheet */
#docs-library[hidden] { display: none; }
.aw-docs-lib { margin-top: 10px; }
.aw-docs-lib > .aw-ic { color: var(--amber-text); }
.aw-docs-lib-now strong { font-weight: 600; color: var(--text-hi); overflow-wrap: anywhere; }
.aw-docs-lib-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.aw-docs-lib-tag[data-lib="locked"] { color: var(--muted); }
.aw-lib-intro { margin-bottom: 12px; }
.aw-lib-none { margin-bottom: 12px; }
.aw-lib-none .aw-btn { margin-top: 8px; }
.aw-lib-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.aw-lib-item { border-bottom: 1px solid var(--border); }
.aw-lib-pick {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 56px; margin: 0; padding: 8px 8px 8px 6px;
  border: 0; border-radius: var(--r-ctl); background: transparent;
  color: inherit; font-family: var(--sans); text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.aw-lib-pick:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.aw-lib-pick:disabled { cursor: default; }
.aw-lib-pick[data-current] { background: var(--amber-tint); }
.aw-lib-mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 24px; height: 24px; border: 1.5px solid var(--muted); border-radius: 50%; color: var(--muted);
}
.aw-lib-pick[data-current] .aw-lib-mark { border-color: var(--amber-edge); background: var(--amber); color: var(--on-amber); }
.aw-lib-pick:disabled .aw-lib-mark { border-style: dashed; }
.aw-lib-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.aw-lib-name { font-size: 15px; line-height: 21px; font-weight: 500; color: var(--text-hi); overflow-wrap: anywhere; }
.aw-lib-pick:disabled .aw-lib-name { color: var(--text-dim); }
.aw-lib-file { font-family: var(--mono); font-size: 12px; line-height: 17px; color: var(--muted); overflow-wrap: anywhere; }
.aw-lib-meta { font-size: 13px; line-height: 18px; color: var(--muted); }
.aw-lib-pick[data-current] .aw-lib-meta { color: var(--amber-text); font-weight: 600; }
.aw-lib-msg { margin-top: 12px; }
.aw-lib-msg[hidden] { display: none; }

.aw-docs-search {
  display: flex; align-items: center; gap: 10px;
  height: 44px; margin-top: 10px; padding: 0 0 0 14px;
  border: 1px solid var(--border-hi); border-radius: var(--r-ctl);
  background: var(--field); color: var(--muted);
}
.aw-docs-search:focus-within { border-color: var(--focus); }
.aw-docs-search input {
  flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0;
  border: 0; outline: 0; background: transparent;
  color: var(--text-hi); font-family: var(--sans); font-size: 16px;
  appearance: none; -webkit-appearance: none;
}
.aw-docs-search input::placeholder { color: var(--muted); opacity: 1; }
.aw-docs-search input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.aw-docs-found { flex: none; padding-right: 12px; font-size: 13px; line-height: 18px; color: var(--muted); white-space: nowrap; }
.aw-docs-found:empty { display: none; }
.aw-docs-clear { height: 42px; margin-left: -10px; }

.aw-docs-list { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.aw-docs-list:empty { display: none; }
.aw-docs-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  grid-template-areas: "from from" "main more" "meta meta" "type type" "state state";
  column-gap: 4px;
  padding: 0 0 4px 6px;
  border-bottom: 1px solid var(--border);
}
.aw-docs-marked { margin: 4px 0; border-radius: var(--r-ctl); outline: 2px solid var(--focus); outline-offset: -2px; padding-left: 10px; }
.aw-docs-from {
  grid-area: from; display: flex; align-items: center; gap: 6px; margin: 10px 0 0;
  font-size: 13px; line-height: 18px; font-weight: 600; color: var(--amber-text);
}
.aw-docs-open {
  grid-area: main;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 12px 0 2px;
  border: 0; border-radius: var(--r-chip); background: transparent;
  color: inherit; font-family: var(--sans); text-align: left; cursor: pointer;
}
.aw-docs-name { font-size: 16px; line-height: 22px; font-weight: 500; color: var(--text-hi); overflow-wrap: anywhere; }
.aw-docs-file { font-family: var(--mono); font-size: 12.5px; line-height: 18px; color: var(--muted); overflow-wrap: anywhere; }
.aw-docs-meta { grid-area: meta; margin: 0; padding: 0 0 2px; font-size: 13px; line-height: 18px; color: var(--muted); }

.aw-docs-type {
  grid-area: type; justify-self: start;
  position: relative; display: inline-flex; align-items: center;
  max-width: 100%; height: 44px; color: var(--text-dim);
}
.aw-docs-type::before {
  content: ""; position: absolute; inset: 4px 0;
  border: 1px solid var(--border-hi); border-radius: var(--r-row); pointer-events: none;
}
.aw-docs-type select {
  position: relative; max-width: 100%; height: 44px; margin: 0; padding: 0 34px 0 12px;
  border: 0; border-radius: var(--r-row); outline: 0; background: transparent;
  color: var(--text-dim); font-family: var(--sans); font-size: 16px; line-height: 24px;
  text-overflow: ellipsis; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.aw-docs-type select:disabled { color: var(--disabled); cursor: default; }
.aw-docs-type select option { background: var(--surface); color: var(--text-hi); }
.aw-docs-type:has(select:focus-visible)::before { outline: 2px solid var(--focus); outline-offset: 2px; }
.aw-docs-type-arrow { position: absolute; top: 50%; right: 10px; margin-top: -8px; pointer-events: none; }
.aw-docs-type-ro { grid-area: type; align-self: center; padding: 10px 0; font-size: 14px; color: var(--text-dim); }

.aw-docs-more { grid-area: more; align-self: start; margin-top: 2px; color: var(--muted); }

.aw-docs-state {
  grid-area: state;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 2px 8px 10px 0;
}
.aw-docs-chip {
  display: inline-flex; align-items: flex-start; gap: 8px;
  max-width: 100%; padding: 5px 10px 5px 9px;
  border: 1px solid var(--border-hi); border-radius: 8px;
  background: var(--raised); color: var(--text-dim);
  font-size: 13px; line-height: 18px; font-weight: 500;
}
.aw-docs-chip > .aw-ic { margin-top: 1px; }
.aw-docs-chip > .aw-spin { margin-top: 2px; }
.aw-docs-chip-red { border-color: var(--red-line); background: var(--red-bg); color: var(--red); }
.aw-docs-chip-amber { border-color: var(--amber-line); background: var(--amber-tint); color: var(--amber-text); }
.aw-docs-reason { max-width: 64ch; margin: 0; font-size: 14px; line-height: 20px; color: var(--text-dim); outline: none; }
.aw-docs-reason:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-chip); }

@container docs (min-width: 600px) {
  .aw-docs-row {
    grid-template-columns: minmax(0, 1fr) 218px 44px;
    grid-template-areas: "from from from" "main type more" "meta meta meta" "state state state";
    align-items: center; column-gap: 12px;
    padding: 6px 0 6px 6px;
  }
  .aw-docs-marked { padding-left: 10px; }
  .aw-docs-open { min-height: 48px; padding: 3px 0; }
  .aw-docs-type { justify-self: stretch; }
  .aw-docs-type select { width: 100%; }
  .aw-docs-more { align-self: center; margin-top: 0; }
  .aw-docs-meta { padding-bottom: 6px; }
  .aw-docs-state { padding: 0 8px 8px 0; }
}

.aw-docs-nomatch { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 6px; font-size: 15px; line-height: 22px; color: var(--text-dim); }
.aw-docs-nomatch p { margin: 0; }
.aw-docs-wait {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding: 20px 6px; border-top: 1px solid var(--border);
  font-size: 15px; line-height: 22px; color: var(--text-dim);
}
.aw-docs-box { margin-top: 16px; }
.aw-docs-box .aw-btn { margin-top: 8px; }
.aw-docs-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 40px 6px 0; }
.aw-docs-empty-title { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; color: var(--text-hi); }
.aw-docs-empty-text { margin: 0; font-size: 15px; line-height: 22px; color: var(--text-dim); }
.aw-docs-empty .aw-qtool-first { margin-top: 8px; }

/* the indicator: the menu's Documents row, the line under the question box */
.aw-menu-trail { flex: none; font-size: 13px; line-height: 18px; color: var(--muted); }
.aw-menu-trail-status { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); white-space: nowrap; }
.aw-index-line { margin-top: 4px; }
.aw-index-link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; margin: 0; padding: 0 2px;
  border: 0; border-radius: var(--r-chip); background: transparent;
  color: var(--text-dim); font-family: var(--sans); font-size: 14px; line-height: 20px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.aw-set-manage { margin-top: 16px; }
/* R2 C8: the admin console row's chevron (same window, design §4.19 item 8) */
.aw-menu-chev { display: inline-flex; margin-left: auto; color: var(--muted); }
/* R2 C8: "Fallback test on" under the question box while an admin's answer
   service is the fallback test; the choice is in the admin console */
.aw-llm-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; }
.aw-llm-line[hidden] { display: none; }
.aw-llm-link { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--sans); font-size: 14px; line-height: 20px; }
.aw-docs-note .aw-icon-slot > .aw-ic { margin-top: 1px; color: var(--muted); }

@media (hover: hover) {
  .aw-docs-open:hover .aw-docs-name { text-decoration: underline; text-underline-offset: 3px; }
  .aw-docs-link:hover, .aw-index-link:hover { color: var(--text-hi); }
  .aw-docs-type:hover::before { border-color: var(--muted); }
  .aw-docs-type:hover select { color: var(--text-hi); }
  .aw-docs-more:hover { color: var(--text-hi); }
  .aw-lib-pick:hover:not(:disabled):not([data-current]) { background: var(--hover); }
}

/* ---------- the menu's history (C7): search, the list by day, its states ---------- */

.aw-hist-search { display: flex; flex-direction: column; gap: 6px; flex: none; padding: 10px 12px 0; }
.aw-hist-field {
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--r-ctl);
  background: var(--field); color: var(--muted);
}
.aw-hist-field:focus-within { border-color: var(--focus); }
.aw-hist-field input {
  flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0;
  border: 0; outline: 0; background: transparent;
  color: var(--text-hi); font-family: var(--sans); font-size: 16px;
  appearance: none; -webkit-appearance: none;
}
.aw-hist-field input::placeholder { color: var(--muted); opacity: 1; }
.aw-hist-field input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.aw-hist-scope { display: flex; align-items: center; gap: 8px; padding: 0 4px; font-size: 13px; line-height: 18px; color: var(--muted); }
.aw-hist-scope .aw-select-wrap { flex: 1; }
.aw-hist-scope select {
  width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0 38px 0 10px;
  border: 1px solid var(--border); border-radius: var(--r-row); background: var(--field);
  color: var(--text); font-family: var(--sans); font-size: 16px;
  cursor: pointer; appearance: none; -webkit-appearance: none;   /* R2 C13, as .aw-select */
}
.aw-hist-scope .aw-select-arrow { right: 12px; }
.aw-hist-list { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 2px 12px 8px; overflow-y: auto; overscroll-behavior: contain; }
.aw-hist-group { display: flex; flex-direction: column; }
.aw-hist-group-title { padding: 14px 14px 4px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--muted); }
.aw-hist-item {
  display: flex; align-items: center;
  width: 100%; min-height: 44px; flex: none; margin: 0; padding: 0 14px;
  border: 0; border-radius: var(--r-ctl);
  background: transparent; color: var(--text);
  font-family: var(--sans); font-size: 15px; line-height: 20px; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.aw-hist-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Expanded (R2 C16; Settings → History and privacy → History list, per device:
   data-rows on #aw-menu-history, AW.histRows in core.js): up to two lines of
   each question, then the ellipsis; the row grows with them and never goes
   under 44 px. Compact, the default, is the one line above. The button's text
   is the whole question either way. max-height holds two lines where
   line-clamp is not supported. */
.aw-menu-history[data-rows="expanded"] .aw-hist-item { padding-top: 8px; padding-bottom: 8px; }
.aw-menu-history[data-rows="expanded"] .aw-hist-item span {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  max-height: 40px; white-space: normal; overflow-wrap: anywhere;
}
.aw-hist-item[aria-current="true"] { box-shadow: inset 0 0 0 1px var(--border-hi); background: var(--selected); color: var(--text-hi); font-weight: 600; }
.aw-hist-none { margin: 0; padding: 14px; font-size: 14px; line-height: 20px; color: var(--muted); }
.aw-hist-none p { margin: 0 0 8px; }
.aw-hist-note { margin: 10px 14px 0; font-size: 13px; line-height: 18px; color: var(--text-dim); }
.aw-hist-off {
  display: flex; flex-direction: column; gap: 6px;
  margin: 14px 0 0; padding: 14px 16px 16px;
  border: 1px solid var(--border); border-radius: var(--r-block); background: var(--bg);
}
.aw-hist-off-title { font-size: 15px; line-height: 21px; font-weight: 600; color: var(--text-hi); }
.aw-hist-off-text { font-size: 14px; line-height: 20px; color: var(--text-dim); }
.aw-hist-btn { align-self: flex-start; }
.aw-hist-off .aw-hist-btn { margin-top: 6px; }
.aw-hist-more { margin: 10px 0 0 4px; }
.aw-hist-err { margin: 8px 14px 0; }

@media (hover: hover) {
  .aw-hist-item:hover { background: var(--hover); }
  .aw-hist-item[aria-current="true"]:hover { background: var(--selected); }
}

/* ---------- focus rings ---------- */

:where(.aw-btn, .aw-icon-btn, .aw-row, .aw-menu-item, .aw-link, .aw-segmented button, .aw-menu-row, .aw-account-btn, .aw-set-nav, .aw-set-links a, .aw-set-legal a,
  .aw-docs-open, .aw-docs-link, .aw-index-link, .aw-hist-item):focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
.aw-ov-panel:focus, .aw-ov-panel:focus-visible { outline: none; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  :where([class^="aw-"], [class*=" aw-"]),
  :where([class^="aw-"], [class*=" aw-"])::before,
  :where([class^="aw-"], [class*=" aw-"])::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important;
  }
  .aw-dot-pulse::after { display: none; }
}
