/* A2 CHROME (slice S2a, 2026-11): the look of everything that rides over every page of the learner
   shell. Linked by templates/base.html after alyfa.css, publishing.css and a2.css, before a page's
   own {% block a2_css %}, so a renewed page can still win a tie.

   1. THE SHEET HOST: #af-sheet (components/sheet_host.html, sheet_head.html) and #pub-detail, the
      one overlay every module opens, in the kit's white sheet: Baloo, the sheet's radius and shadow,
      word filters. Ids, the open/close API (window.AfUI.sheet) and the focus handling are af_ui.js's
      and unchanged. Two new panel sizes hang the sheet from what opened it instead of centring it:
      `fth` under the feather pill (the Feathers board, FTH-2) and `made` beside the strand (the
      Queue board, QUE-2). A body asks for one with [data-af-size].
   2. THE TOASTS: #af-toasts > .af-toast (components/toasts.html, toast.html, AfUI.toast.push) in
      the shell's .a2-toast look: a dark bubble, one line, a gold word for its one action.
   3. THE FEATHER PILL (.a2-fpl, templates/a2/chrome.html): partials/energy_meter.html drawn as the
      gauge the board draws (FTH-1): what is spent goes grey from the tip down, the number is what
      is left; a press opens the pill's own sheet.
   4. MADE FOR YOU (.a2-made > #af-tray.a2-strand, components/job_tray.html): the strand under the
      pill (QUE-1..5) and its sheet (job_tray_rows.html, job_line.html).
   5. SPENDING SEEN: the overlay static/js/a2/spend.js flies the feathers in.
   6. GOOGLE'S reCAPTCHA BADGE, hidden on a page that says "This site is protected by reCAPTCHA." (last rule).

   Flat (tests/test_stylesheets_are_flat.py); every element this file can see toggled with `hidden`
   has its own [hidden] rule. */

/* -- 1. the sheet host ------------------------------------------------------------------------ */

.af-sheet-backdrop{background:rgba(21,23,30,.18);-webkit-backdrop-filter:none;backdrop-filter:none}
.af-sheet-panel{border-radius:26px;background:#fff;color:#15171E;font:500 16px/1.45 "Baloo 2",system-ui,sans-serif;box-shadow:0 30px 60px -28px rgba(10,14,40,.5),0 2px 0 rgba(21,23,30,.04);animation:a2-pop .28s cubic-bezier(.3,1.4,.5,1) both}
.af-sheet-body{padding:0 28px;font-size:16px;line-height:1.45;color:rgba(21,23,30,.84)}
.af-sheet-body > :last-child:not(.af-sheet-foot){margin-bottom:24px}
.af-sheet-head{gap:6px;padding:26px 56px 12px 0}
.af-sheet-title{font-family:"Baloo 2",system-ui,sans-serif;font-size:28px;font-weight:800;line-height:1.08;letter-spacing:-.015em;color:#15171E;text-wrap:balance}
.af-sheet-sm .af-sheet-title{font-size:24px}
.af-sheet-title-fit{font-size:clamp(19px,1.1rem + 1vw,24px)}
.af-sheet-eyebrow{font:700 12px/1 "Baloo 2",system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:#1C39BB}
.af-sheet-sub{font:600 15px/1.35 "Baloo 2",system-ui,sans-serif;color:#5B6172}
.af-sheet-x{top:16px;right:16px;width:38px;height:38px;border:0;background:rgba(21,23,30,.05);color:#5B6172;box-shadow:none}
.af-sheet-x:hover{background:rgba(21,23,30,.1);color:#15171E}
.af-sheet-x:focus-visible,.af-sheet-back:focus-visible{outline:2px solid #1C39BB;outline-offset:2px}
.af-sheet-back{border-radius:50%;color:#5B6172}
.af-sheet-foot{border-top:2px solid rgba(21,23,30,.08);margin-inline:-28px;padding-inline:28px;background:#fff}
.af-sheet-label{font:700 12px/1.2 "Baloo 2",system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#5B6172}
.af-sheet-prose,.af-sheet-reassure{font-family:"Baloo 2",system-ui,sans-serif}
.af-sheet-bleed{margin-inline:-28px}

/* Word filters: a segmented control inside a sheet reads as the kit's .qa words, the chosen one
   underlined (radio labels and tab links alike). */
.af-sheet .af-seg{gap:22px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.af-sheet .af-seg-item{min-height:40px;padding:0 2px;border:0;border-radius:0;background:linear-gradient(currentColor,currentColor) 0 calc(100% - 7px)/0 2px no-repeat;box-shadow:none;color:#5B6172;font:700 16px/1 "Baloo 2",system-ui,sans-serif;transition:background-size .25s,color .2s}
.af-sheet .af-seg-item:hover{color:#15171E;background-size:100% 2px}
.af-sheet .af-seg-item:has(input:checked),.af-sheet .af-seg-item[aria-current="page"],.af-sheet .af-seg-item[aria-pressed="true"]{color:#15171E;background-color:transparent;background-size:100% 2px;box-shadow:none}
.af-sheet .af-seg-item:has(input:focus-visible){outline:2px solid #1C39BB;outline-offset:2px}

/* The sheet's buttons in the kit's voice: the primary is the blue of the primary action, the rest
   are words. */
.af-sheet .af-btn{font-family:"Baloo 2",system-ui,sans-serif;font-weight:700}
.af-sheet .af-btn-primary,.af-sheet-foot .af-btn.af-btn-primary{border:0;border-radius:999px;background:#1C39BB;color:#fff;font-weight:800;box-shadow:0 14px 24px -14px rgba(20,42,140,.85)}
.af-sheet .af-btn-primary:hover,.af-sheet-foot .af-btn.af-btn-primary:hover{background:#142A8C}
.af-sheet .af-btn-secondary,.af-sheet .af-btn-ghost{border-color:transparent;background:linear-gradient(currentColor,currentColor) 0 calc(100% - 6px)/0 2px no-repeat;box-shadow:none;color:#1C39BB}
.af-sheet .af-btn-secondary:hover,.af-sheet .af-btn-ghost:hover{border-color:transparent;background-color:transparent;background-size:100% 2px;color:#142A8C}

/* The inline confirm a control inside a sheet asks with (af_ui.js askFirst). */
.af-sheet .af-confirm-inline{border:0;border-radius:18px;background:rgba(196,48,74,.07)}
.af-sheet .af-confirm-inline p{font:700 15px/1.3 "Baloo 2",system-ui,sans-serif}

/* A phone: the bottom sheet alyfa.css makes of every size, in this radius. */
@media (max-width:639px){
  .af-sheet-panel{border-radius:24px 24px 0 0;animation:af-sheet-up .28s cubic-bezier(.2,.8,.3,1) both}
  .af-sheet-body{padding:0 20px}
  .af-sheet-foot,.af-sheet-bleed{margin-inline:-20px;padding-inline:20px}
  .af-sheet-bleed{padding-inline:0}
  .af-sheet-head{padding-top:28px}
  .af-sheet-title{font-size:24px}
}

/* Hung from its opener (>= 700px; below, the bottom sheet every size is): no veil over the page,
   the sheet unfurls from the pill (fth) or opens beside the strand (made). */
@media (min-width:700px) and (orientation:landscape),(min-width:1200px){
  .af-sheet:not([hidden]):has(> .af-sheet-fth),.af-sheet:not([hidden]):has(> .af-sheet-made){display:block;padding:0}
  .af-sheet:has(> .af-sheet-fth) > .af-sheet-backdrop,.af-sheet:has(> .af-sheet-made) > .af-sheet-backdrop{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;animation:none}
  .af-sheet-panel.af-sheet-fth,.af-sheet-panel.af-sheet-made{position:absolute;top:calc(var(--af-wm-edge) + (var(--af-wm-size) + 42px) / 2 + 12px);width:452px;max-width:calc(100vw - 48px);max-height:calc(100vh - 96px);max-height:calc(100dvh - 96px)}
  .af-sheet-panel.af-sheet-fth{right:28px;transform-origin:calc(100% - 46px) -10px;animation:a2-unfurl .42s cubic-bezier(.3,1.4,.5,1) both}
  .af-sheet-panel.af-sheet-made{right:92px;border-radius:24px;transform-origin:100% 40px;animation:a2-unfurl .4s cubic-bezier(.3,1.4,.5,1) both}
}

/* ANCHORED (A2, 2026-11; the host's one option for it, static/js/af_ui.js "anchored"): a body that
   carries [data-af-anchor] — the mission's moment, About and runs sheets; the trip's place, city About,
   other trips and Ready-made sheets — hangs beside what opened it from 700px up: placed at --af-ax /
   --af-ay from the opener's rectangle, no veil over the page (a press outside still closes it), a white
   nub on its edge pointing at the opener (`data-af-side`: right | left | below | above of the opener;
   `over` when it is too tall to clear it, drawn without a nub).
   Below 700px it stays the bottom sheet every size is. */
@media (min-width:700px) and (orientation:landscape),(min-width:1200px){
  .af-sheet.af-sheet-anchored:not([hidden]){display:block;padding:0}
  .af-sheet.af-sheet-anchored > .af-sheet-backdrop{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;animation:none}
  .af-sheet.af-sheet-anchored > .af-sheet-panel{position:fixed;left:var(--af-ax,16px);top:var(--af-ay,16px);width:calc(100vw - 32px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:0;box-shadow:0 40px 80px -30px rgba(21,23,30,.6),0 0 0 1px rgba(21,23,30,.05);animation:a2-pop .26s cubic-bezier(.3,1.3,.5,1) both}
  .af-sheet.af-sheet-anchored::after{content:"";position:fixed;z-index:2;left:var(--af-nx,-99px);top:var(--af-ny,-99px);width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:3px;background:#fff;transform:rotate(45deg);pointer-events:none}
  .af-sheet.af-sheet-anchored[data-af-side="right"]::after{margin-left:-6px}
  .af-sheet.af-sheet-anchored[data-af-side="left"]::after{margin-left:-10px}
  .af-sheet.af-sheet-anchored[data-af-side="below"]::after{margin-top:-6px}
  .af-sheet.af-sheet-anchored[data-af-side="above"]::after{margin-top:-10px}
}
@media (prefers-reduced-motion:reduce){
  .af-sheet.af-sheet-anchored > .af-sheet-panel{animation:none}
}

/* -- 2. the toasts -------------------------------------------------------------------------------- */

.af-toasts{left:50%;right:auto;bottom:calc(36px + var(--af-cc-lift, 0px));align-items:center;width:max-content;max-width:min(560px,calc(100vw - 32px));transform:translateX(-50%)}
.af-toasts .af-toast{gap:12px;min-height:46px;padding:7px 8px 8px 18px;border:0;border-radius:16px;background:rgba(16,18,26,.94);color:#fff;font:700 16px/1.25 "Baloo 2",system-ui,sans-serif;box-shadow:0 22px 40px -18px rgba(0,0,0,.6)}
.af-toasts .af-toast-text{color:#fff;font:700 16px/1.25 "Baloo 2",system-ui,sans-serif}
.af-toasts .af-toast > .af-g{color:rgba(255,255,255,.7)}
.af-toasts .af-btn{min-height:36px;padding:0 8px;border:0;border-radius:10px;background:none;box-shadow:none;color:#F5C469;font:800 16px/1 "Baloo 2",system-ui,sans-serif}
.af-toasts .af-btn:hover{background:rgba(255,255,255,.08);color:#FFD98F}
.af-toasts .af-btn .af-btn-sub{color:rgba(255,255,255,.7)}
.af-toasts .af-toast-x{width:34px;height:34px;border-radius:50%;color:rgba(255,255,255,.55)}
.af-toasts .af-toast-x:hover{background:rgba(255,255,255,.1);color:#fff}
.af-toasts .af-toast-x:focus-visible,.af-toasts .af-btn:focus-visible{outline:2px solid #F5C469;outline-offset:2px}
/* The state at the start of a toast: gold for done or ready, pomegranate only for a real fault. */
.af-toasts .af-dot{width:12px;height:12px;border:0;background:rgba(255,255,255,.45);box-shadow:none;animation:none}
.af-toasts .af-dot svg{display:none}
.af-toasts .af-dot-ready,.af-toasts .af-dot-done{background:#E8A21A}
.af-toasts .af-dot-failed{background:#C4304A}
@media (max-width:1099px){
  .af-toasts{bottom:calc(98px + var(--af-cc-lift, 0px))}
}
@media (max-width:699px),(orientation:portrait) and (max-width:1199px){
  .af-toasts{left:16px;right:16px;width:auto;max-width:none;transform:none;bottom:calc(84px + var(--af-cc-lift, 0px))}
  .af-toasts .af-toast{font-size:15px}
}

/* -- 3. the feather pill ---------------------------------------------------------------------- */

/* The box rides where a2.css put the pill (top right, on the brand mark's centre line); the pill
   inside it is the meter partial, refreshed in place by window_menu.js, and the button over it is
   the press that opens the pill's sheet. No meter (Energy dark, a guest): nothing at all. */
/* .a2-top (templates/a2/chrome.html) carries the pill and the strand together: the strand in the
   corner (a column from 700px up, a row running left on a phone), its last pearl on the brand
   mark's centre line, and the pill tucked under that pearl. */
.a2-top{position:fixed;top:calc(var(--af-wm-edge) + (var(--af-wm-size) - 46px) / 2);right:28px;z-index:59;display:flex;flex-direction:column;align-items:flex-end;gap:10px;pointer-events:none}
/* The column's own box (as wide as the strand, down to its last pearl) is empty air: only the
   pill and the strand take a press, so a page control drawn beside them stays pressable. */
.a2-top > *{pointer-events:auto}
.a2-top .a2-made{position:static;top:auto;right:auto;z-index:auto}
/* THE PILL RESTS UNDER THE MADE-FOR-YOU PEARL (owner, 2026-11-17, phone review round 2, item 20, at
   every width: "put the feather count under the queue button … and only show it when a transaction
   happens (it pops up temporarily and goes away). In other circumstances the user can just click on
   the queue pearl and it shows on the side"). Out of the column's flow, so the strand takes the
   corner; at rest folded up behind the pearl (painted before it), unseen and taking no press. It
   comes out under the pearl when feathers move (.is-pop, static/js/window_menu.js) or a keyboard
   reaches it (its button stays in the tab order), and beside the pearl, pressable (its own sheet),
   while the pearl's sheet is open (below). Never display:none
   or visibility:hidden at rest: spend.js still flies a priced press's feathers out of it. */
.a2-fpl{position:absolute;top:calc(100% + 10px);right:0;transition:opacity .2s}
.a2-top > .a2-fpl{pointer-events:none}
.a2-fpl:not(:has(#af-energy-meter)),.a2-fpl[hidden]{display:none}
/* F5 P24 (owner, 2026-11-14): the pill is drawn only for the free trial or a paid plan (budget.meter's
   `pill`). Its seat is gone with it now (item 20 above): whoever has a pill or not, the strand sits
   in the corner, so no empty seat is kept. */
.a2-top:has(> .a2-fpl):not(:has(#af-energy-meter))::before{content:none}
.a2-chrome .a2-fpl .fpl{position:relative;top:auto;right:auto;z-index:auto;gap:6px;padding:0 16px 0 8px;opacity:0;transform:translateY(-36px) scale(.55);transform-origin:calc(100% - 23px) 0;transition:opacity .22s,transform .4s cubic-bezier(.3,1.4,.5,1),box-shadow .2s}
/* A pop is a passing notice over the page (a tool, a title under it): it still takes no press. */
.a2-chrome .a2-fpl.is-pop .fpl,.a2-chrome .a2-fpl:focus-within .fpl{opacity:1;transform:none}
/* Beside the pearl, on its centre line, while the pearl's sheet is open (Made for you) or its own:
   the strand rides over that sheet's clear backdrop so the pill takes the press that opens its own
   sheet (from 700px the Made-for-you sheet hangs left of the strand and below this row). */
html.af-cc-hidden:has(.af-sheet-made) .a2-top{z-index:61}
html.af-cc-hidden:has(.af-sheet-made, .af-sheet-fth) .a2-top > .a2-fpl{top:2px;right:calc(100% + 12px);pointer-events:auto}
html.af-cc-hidden:has(.af-sheet-made, .af-sheet-fth) .a2-chrome .a2-fpl .fpl{transform:none}
.a2-fpl .fpl img{position:relative;width:30px;height:30px;clip-path:inset(calc(100% - var(--fill, 100%)) 0 0 0)}
.a2-fpl .fpl::before{content:"";position:absolute;left:8px;top:50%;width:30px;height:30px;margin-top:-15px;background:url("../../img/energy/feather.aaaa79d359c8.webp") center/contain no-repeat;filter:grayscale(1) brightness(1.25);opacity:.42}
.a2-fpl .fpl > span[aria-hidden]{min-width:26px;text-align:right}
/* R4-F1 the pill grows with its number: an absolute box takes the width of the little corner it hangs from, so it wrapped nothing and the digits ran out of the pill. */
.a2-fpl,.a2-chrome .a2-fpl .fpl{width:max-content;max-width:calc(100vw - 24px)}
.a2-fpl .af-wm-energy-out > span[aria-hidden]{color:#686E81}
.a2-fpl-hit{position:absolute;inset:-2px;z-index:1;display:block;width:auto;height:auto;margin:0;padding:0;border:0;border-radius:23px;background:none;cursor:pointer}
.a2-fpl-hit:focus-visible{outline:2px solid #1C39BB;outline-offset:2px}
.a2-fpl:hover .fpl,.a2-fpl.is-open .fpl{box-shadow:0 6px 16px -8px rgba(0,0,0,.45),inset 0 0 0 2px #15171E}
.a2-fpl:active .fpl{transform:scale(.97)}
/* It stays up, ringed, while its own sheet hangs from it (the cluster steps aside for every other). */
html.af-cc-hidden:has(.af-sheet-fth) .a2-fpl{opacity:1;visibility:visible;pointer-events:auto}
html.af-cc-hidden:has(.af-sheet-fth) .a2-chrome .a2-fpl .fpl{opacity:1;visibility:visible;box-shadow:0 6px 16px -8px rgba(0,0,0,.45),inset 0 0 0 2px #15171E}
html.af-cc-hidden:has(.af-sheet-made) .a2-chrome .a2-fpl .fpl{opacity:1;visibility:visible}
html.af-cc-hidden:not(:has(.af-sheet-fth, .af-sheet-made)) .a2-fpl,body[data-af-menu="open"] .a2-fpl{opacity:0;visibility:hidden;pointer-events:none}

/* The pill's sheet (templates/a2/feathers_sheet.html), FTH-2. */
/* An .a2 root paints the paper; inside a white sheet it stays white. */
.a2.a2-fth,.a2.a2-mfy{background:transparent}
.a2-fth{padding-top:24px}
.a2-fth-top{display:flex;align-items:center;gap:18px}
/* R15-E1 (owner, 2026-11-19: "the number is huge and all the rest of the text on this pop up are small. the discrepancy is
   hideous"): the count steps down (68 → 52) and every line around it up (15 → 17, 17 → 20, 19 → 21), one scale for the sheet */
.a2-fth-f{position:relative;display:block;flex:none;width:64px;height:64px}
.a2-fth-f img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:contain}
.a2-fth-f img.g{filter:grayscale(1) brightness(1.25);opacity:.42}
.a2-fth-f img.c{clip-path:inset(calc(100% - var(--fill, 100%)) 0 0 0)}
.a2-fth-n{display:flex;flex-direction:column;margin:0}
.a2-fth-n b{font:800 52px/.92 "Baloo 2",system-ui,sans-serif;letter-spacing:-.025em;color:#15171E;font-variant-numeric:tabular-nums}
.a2-fth-n span{margin-top:8px;font:700 21px/1.15 "Baloo 2",system-ui,sans-serif;color:#15171E}
.a2-fth-n small{margin-top:5px;font:600 17px/1.3 "Baloo 2",system-ui,sans-serif;color:#5B6172}
/* R2-O10 (owner, 2026-11-21: "center all the top section down to (but not icnluding "next weekly refill..."): the feather
   and its count stand centred; the refill pearl below keeps its own line */
.a2-fth-top{justify-content:center}
.a2-fth-n{align-items:center;text-align:center}
.a2-fth-out .a2-fth-n b{color:#686E81}
.a2-fth-wk{position:relative;height:74px;margin:22px 0 0;padding:0;list-style:none}
.a2-fth-wk::before{content:"";position:absolute;left:0;right:0;top:27px;height:2px;border-radius:1px;background:rgba(21,23,30,.2)}
.a2-fth-dy{position:absolute;top:27px;width:0;height:0}
.a2-fth-dy canvas{position:absolute;left:0;bottom:0;transform:translate(-50%,50%);border-radius:50%;filter:drop-shadow(0 4px 4px rgba(21,23,30,.22))}
.a2-fth-dy.td canvas{box-shadow:0 0 0 2.5px #fff,0 0 0 5px #E8A21A}
.a2-fth-dy small{position:absolute;left:0;top:20px;transform:translateX(-50%);font:600 15px/1.2 "Baloo 2",system-ui,sans-serif;color:#5B6172;white-space:nowrap}
.a2-fth-dy.td small,.a2-fth-dy.pay small{color:#15171E;font-weight:800}
/* R4-F3 the one refill pearl: the pearl, what it is, the date under it */
.a2-fth-rf{display:flex;align-items:center;gap:14px;margin:22px 0 0}
.a2-fth-rf canvas{flex:none;border-radius:50%;filter:drop-shadow(0 4px 4px rgba(21,23,30,.22))}
.a2-fth-rf span{display:flex;flex-direction:column}
.a2-fth-rf b{font:800 20px/1.15 "Baloo 2",system-ui,sans-serif;color:#15171E}
.a2-fth-rf small{margin-top:2px;font:600 17px/1.3 "Baloo 2",system-ui,sans-serif;color:#5B6172}
.a2-fth-rf[hidden]{display:none}
.a2-fth-pool{margin:14px 0 0;font:600 17px/1.4 "Baloo 2",system-ui,sans-serif;color:#5B6172}
.a2-fth-pool b{color:#15171E}
.a2-fth-say{margin:14px 0 0;font:600 17px/1.4 "Baloo 2",system-ui,sans-serif;color:#8A5A00}
.a2-fth-plan{display:flex;align-items:center;gap:14px;margin:18px 0 22px;padding-top:14px;border-top:2px solid rgba(21,23,30,.08);font:600 17px/1.4 "Baloo 2",system-ui,sans-serif;color:#5B6172}
.a2-fth-plan b{color:#15171E}
.a2-fth-plan .qa{flex:none;margin-left:auto;height:44px;font-size:18px;color:#1C39BB}
.a2-fth-wk[hidden],.a2-fth-pool[hidden],.a2-fth-say[hidden],.a2-fth-plan[hidden]{display:none}

/* -- 4. made for you ---------------------------------------------------------------------------- */

/* The strand: #af-tray, inside the #a2-made slot under the pill (a2.css places the slot). It keeps
   the tray's id, polling and the anchor's .af-tray-btn, so af_ui.js and every test of the tray's
   contract still find it; these rules take it out of the bottom corner row (alyfa.css). */
.a2-made .af-tray{position:relative;right:auto;bottom:auto;z-index:auto;display:flex;flex-direction:column;align-items:center;gap:10px;padding-top:2px;pointer-events:none}
.a2-made .af-tray[hidden]{display:none}
/* Its thread runs from the first pearl's centre to the last's (it used to rise 12px more, into the
   pill; the pill rests under the last pearl now, item 20 above). */
.a2-made .af-tray::before{content:"";position:absolute;left:50%;top:19px;bottom:23px;width:2px;margin-left:-1px;border-radius:1px;background:rgba(21,23,30,.32)}
.a2-bead,.a2-made .af-tray-btn{position:relative;display:block;flex:none;margin:0;padding:0;border:0;border-radius:50%;background:none;color:inherit;cursor:pointer;pointer-events:auto;text-decoration:none;-webkit-tap-highlight-color:transparent}
.a2-bead{width:34px;height:34px}
.a2-bead canvas{display:block;width:34px;height:34px;border-radius:50%;filter:drop-shadow(0 4px 5px rgba(10,14,40,.3));transition:transform .3s cubic-bezier(.3,1.6,.5,1)}
.a2-bead:hover canvas,.a2-bead:focus-visible canvas{transform:scale(1.14)}
.a2-bead.is-ready{animation:a2-now 2.6s ease-in-out infinite}
.a2-bead.is-ready canvas{box-shadow:0 0 0 2.5px #F4EFE6,0 0 0 5px #E8A21A}
.a2-bead.is-failed canvas{box-shadow:0 0 0 2.5px #F4EFE6,0 0 0 5px #C4304A}
.a2-bead:focus-visible,.a2-made .af-tray-btn:focus-visible{outline:2px solid #1C39BB;outline-offset:4px}
.a2-bead[hidden]{display:none}
/* Its name, on hover or focus: a dark tag to the left of the pearl. */
.a2-bead-lb{position:absolute;right:46px;top:50%;display:block;padding:8px 14px 9px;border-radius:14px;background:rgba(16,18,26,.94);color:#fff;text-align:right;white-space:nowrap;opacity:0;transform:translate(8px,-50%);transition:opacity .25s,transform .3s cubic-bezier(.3,1.4,.5,1);pointer-events:none}
.a2-bead-lb b{display:block;max-width:320px;overflow:hidden;text-overflow:ellipsis;font:800 16px/1.1 "Baloo 2",system-ui,sans-serif}
.a2-bead-lb small{display:block;margin-top:4px;font:700 12.5px/1 "Baloo 2",system-ui,sans-serif;color:#F5C469}
.a2-bead:hover .a2-bead-lb,.a2-bead:focus-visible .a2-bead-lb{opacity:1;transform:translate(0,-50%)}
/* The last pearl never leaves: darker, a little larger, it opens everything made for you. */
.a2-made .af-tray-btn{width:46px;height:46px;min-width:0;min-height:0;box-shadow:none;animation:none;transform:none}
.a2-made .af-tray-btn canvas{display:block;width:46px;height:46px;border-radius:50%;filter:drop-shadow(0 5px 6px rgba(10,14,40,.34));transition:transform .3s cubic-bezier(.3,1.6,.5,1),box-shadow .2s}
.a2-made .af-tray-btn:hover canvas{transform:scale(1.1)}
.a2-made .af-tray-btn:hover{transform:none;border:0}
html.af-sheet-open:has(.af-sheet-made) .a2-made .af-tray-btn canvas{box-shadow:0 0 0 2.5px #F4EFE6,0 0 0 5px #15171E}
/* It stays up while its own sheet is open beside it. */
html.af-cc-hidden:has(.af-sheet-made) .a2-made,html.af-cc-hidden:has(.af-sheet-made) .a2-made .af-tray{opacity:1;visibility:visible}
@media (max-width:699px),(orientation:portrait) and (max-width:1199px),(max-height:620px){
  .a2-made .af-tray{gap:8px}
  .a2-made .af-tray::before{bottom:20px}
  .a2-bead,.a2-bead canvas{width:30px;height:30px}
  .a2-made .af-tray-btn,.a2-made .af-tray-btn canvas{width:40px;height:40px}
  .a2-top{top:calc(var(--af-wm-edge) + (var(--af-wm-size) - 40px) / 2);right:20px}
  .a2-chrome .a2-fpl .fpl{transform-origin:calc(100% - 20px) 0}
  html.af-cc-hidden:has(.af-sheet-made, .af-sheet-fth) .a2-top > .a2-fpl{top:1px}
  .a2-fpl .fpl img,.a2-fpl .fpl::before{width:24px;height:24px}
  .a2-fpl .fpl::before{margin-top:-12px}
  .a2-fpl-hit{inset:-4px}
}
/* A phone: the strand runs LEFT of the pill along the top band (clear of the page under it), the
   last pearl nearest the pill, and shows the newest two; the rest are in the sheet. */
@media (max-width:699px),(orientation:portrait) and (max-width:1199px){
  .a2-top{flex-direction:row-reverse;align-items:center}
  .a2-top .a2-made{flex-direction:row-reverse;width:auto;height:40px}
  .a2-made .af-tray{flex-direction:row-reverse;align-items:center;padding:0}
  .a2-made .af-tray::before{top:50%;bottom:auto;left:15px;right:20px;width:auto;height:2px;margin:-1px 0 0}
  .a2-made .a2-bead:nth-of-type(n+3){display:none}
  .a2-bead-lb{display:none}
}

/* The sheet: components/job_tray_rows.html (Made for you) and job_line.html (Your queue). */
.a2-mfy{display:flex;flex-direction:column;flex:0 1 auto;min-height:0}
.a2-mfy .af-sheet-head{padding-top:22px}
.a2-mfy .af-tray-filter{display:flex;flex-wrap:wrap;gap:4px 22px;margin:0 0 4px;padding:0;border:0;background:none}
.a2-mfy .af-tray-filter .qa{height:40px;font-size:16px;cursor:pointer}
.a2-mfy .af-tray-filter .qa:has(input:checked){color:#15171E;background-size:100% 2px}
.a2-mfy .af-tray-filter .qa:has(input:focus-visible){outline:2px solid #1C39BB;outline-offset:2px}
.a2-mfy .af-tray-sheet{gap:0}
.a2-mfy .af-tray-scroll{flex:0 0 auto;min-height:0;max-height:none;overflow:visible;margin:0;padding:0;border:0;background:none}
.a2-mfy .af-tray-group{margin:0}
.a2-mfy .af-tray-group + .af-tray-group{margin-top:0}
.a2-mfy .af-tray-grouph{position:static;display:flex;align-items:center;gap:10px;margin:10px 0 2px;padding:0;background:none;font:700 12px/1 "Baloo 2",system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#5B6172}
.a2-mfy .af-tray-grouph .qa{margin-left:auto;height:34px;font-size:15px;letter-spacing:0;text-transform:none;color:#1C39BB}
.a2-mfy .af-tray-rows{margin:0;padding:0;overflow:visible;border:0;border-radius:0;background:none;list-style:none}
.a2-mfy .af-tray-row{display:flex;align-items:center;gap:14px;min-height:60px;margin:0 -10px;padding:6px 10px;border:0;border-radius:16px}
.a2-mfy .af-tray-row + .af-tray-row{border-top:0}
.a2-mfy .af-tray-row:hover{background:rgba(21,23,30,.05)}
.a2-mfy .af-tray-row > canvas{flex:none;display:block;width:40px;height:40px;border-radius:50%}
.a2-mfy .af-tray-row-body{flex:1;min-width:0;gap:3px}
.a2-mfy .af-tray-row-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 17px/1.15 "Baloo 2",system-ui,sans-serif;color:#15171E;text-decoration:none}
.a2-mfy a.af-tray-row-title:hover{color:#1C39BB}
.a2-mfy .af-tray-row-meta{font:600 13.5px/1.2 "Baloo 2",system-ui,sans-serif;color:#5B6172}
.a2-mfy .af-tray-row[data-state="ready"] .af-tray-row-meta{color:#8A5A00;font-weight:800}
.a2-mfy .af-tray-row[data-state="failed"] .af-tray-row-meta{color:#C4304A;font-weight:800}
.a2-mfy [data-sec="done"] .af-tray-row-meta{color:#5B6172;font-weight:600}
.a2-mfy .af-tray-act{flex:none;min-width:0;padding-inline:2px;height:36px;margin:0;padding:0 2px;border:0;background:linear-gradient(currentColor,currentColor) 0 calc(100% - 7px)/0 2px no-repeat;box-shadow:none;color:#1C39BB;font:700 15.5px/1 "Baloo 2",system-ui,sans-serif;cursor:pointer}
.a2-mfy .af-tray-act:hover,.a2-mfy .af-tray-row[data-state="failed"] .af-tray-act:hover{border:0;background-color:transparent;background-size:100% 2px;color:#142A8C}
.a2-mfy .af-tray-row[data-state="failed"] .af-tray-act{border:0;background-color:transparent;color:#1C39BB}
.a2-mfy .af-tray-act .af-energy{gap:2px}
.a2-mfy .af-tray-act-form{flex:none;margin:0}
.a2-mfy .af-line-x{flex:none;display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:none;color:#686E81}
.a2-mfy .af-line-x:hover{background:rgba(21,23,30,.08);color:#15171E}
.a2-mfy .af-line-gap{flex:none;width:34px}
.a2-mfy .af-line-energy{flex:none;font:800 15px/1 "Baloo 2",system-ui,sans-serif;color:#15171E}
.a2-mfy .af-tray-empty{margin:14px 0 8px;padding:0;border:0;border-radius:0;text-align:left;font:600 15.5px/1.35 "Baloo 2",system-ui,sans-serif;color:#5B6172}
.a2-mfy .a2-mfy-nt{margin:10px 0 18px;padding-top:12px;border-top:2px solid rgba(21,23,30,.08);font:600 14px/1.35 "Baloo 2",system-ui,sans-serif;color:#5B6172}
.a2-mfy .a2-mfy-nt a{color:#1C39BB;font-weight:700;text-decoration:none}
.a2-mfy .a2-mfy-nt a:hover{text-decoration:underline}
.a2-mfy .af-line-notice{margin:6px 0 4px}
/* What a ✕ did, said where the row was (job_line.html): the sentence in ink, its second line muted,
   its one action a word. Not components/notice.html, which old and staff pages keep as it is. */
.a2-mfy .a2-mfy-said{margin:10px 0 6px;font:600 15.5px/1.35 "Baloo 2",system-ui,sans-serif;color:#5B6172}
.a2-mfy .a2-mfy-said b{font-weight:800;color:#15171E}
.a2-mfy .a2-mfy-said .qa{height:32px;margin-left:6px;font-size:15.5px;color:#1C39BB;vertical-align:middle}
.a2-mfy .a2-mfy-said[hidden]{display:none}
/* One filter at a time; "Finished" keeps what was made before. CSS, not script: nothing to
   restore after a swap, and the sheet is re-read every time it opens. */
.a2-mfy:has(input[value="works"]:checked) .af-tray-group:not([data-sec="works"]),
.a2-mfy:has(input[value="ready"]:checked) .af-tray-group:not([data-sec="ready"]),
.a2-mfy:has(input[value="done"]:checked) .af-tray-group:not([data-sec="done"]),
.a2-mfy:has(input[value="failed"]:checked) .af-tray-group:not([data-sec="failed"]){display:none}
.a2-mfy .af-tray-group[hidden],.a2-mfy .af-tray-empty[hidden]{display:none}

/* -- 5. spending seen ------------------------------------------------------------------------- */

/* The fixed layer static/js/a2/spend.js lays over the page for one flight, then removes; each
   feather in it is the pill's own feather, small, moved by the Web Animations API from its
   top-left corner (so the transform's translate is its centre). The pressed pearl gives one
   small pulse on the last arrival. */
.a2-spend{position:fixed;inset:0;z-index:95;pointer-events:none;overflow:hidden}
.a2-spend-f{position:absolute;left:-14px;top:-14px;width:28px;height:28px;object-fit:contain;filter:drop-shadow(0 3px 3px rgba(120,60,0,.28));will-change:transform}
.a2-spend-hit{animation:a2-spend-hit .42s cubic-bezier(.3,1.6,.5,1)}
@keyframes a2-spend-hit{0%{transform:scale(1)}35%{transform:scale(1.14)}100%{transform:scale(1)}}

@media (prefers-reduced-motion:reduce){
  .af-sheet-panel,.af-sheet-panel.af-sheet-fth,.af-sheet-panel.af-sheet-made{animation:none}
  .a2-bead.is-ready,.a2-spend-hit{animation:none}
  .a2-bead canvas,.a2-made .af-tray-btn canvas,.a2-bead-lb,.a2-fpl,.a2-chrome .a2-fpl .fpl{transition:none}
}

/* -- 3b. the road's khān dots keep clear of the corner (owner F5 P24: "the feather bar covers the grid") --- */

/* The road's bar (templates/dashboard/road.html .hk-bar, shown once the road has scrolled, from 900px up)
   holds the seven khān dots alone, pushed to its right end. They end 32px before whatever the top-right
   corner shows: a learner's feather pill (and the strand under it), a guest's two words, or the empty
   seat of a pill not drawn; measured by static/js/a2/dock.js (--a2-top-w), never less than the bar's own
   190px. Below 900px the bar has no dots (road.css), so the two never share a row there. */
.hk > .hk-bar{padding-right:max(190px,calc(var(--a2-top-w, 0px) + 32px))}

/* -- 6. the home button ------------------------------------------------------------------------- */

/* THE ONE WAY HOME (owner F5 L1, 2026-11-14, "I like dark copper"; board Home.dc.html HM-9g):
   templates/a2/home.html, a dark copper press pearl (afx.js `copper`, live) with the one-line rider in
   pale gold, no words. It sits on the brand tile's seat, centred where the tile was (the corner's
   --af-wm-edge and --af-wm-size, so the lesson's bar, a back word and the feather pill keep their
   measures to it), the same place on every page of the shell; 44px. Hover: it rolls a little to the
   left, home, and the legs take one step (the board's 160 and 470 ms); press: it rolls away left
   (static/js/a2/dock.js adds .is-go, then the page goes); on the road, where the learner is home, it
   rolls a little while the road rolls back to their place (.is-roll). The shell's brand tile
   (partials/window_menu.html .af-wm-home) steps aside wherever this is drawn: one way home. */
.a2-home{position:fixed;z-index:80;top:calc(var(--af-wm-edge) + (var(--af-wm-size) - 44px) / 2);left:calc(var(--af-wm-edge) + (var(--af-wm-size) - 44px) / 2);display:block;width:44px;height:44px;margin:0;padding:0;border-radius:50%;text-decoration:none;-webkit-tap-highlight-color:transparent}
.a2-home canvas{display:block;width:44px;height:44px;border-radius:50%;filter:drop-shadow(0 5px 5px rgba(21,23,30,.32));transition:transform .45s cubic-bezier(.3,1.6,.5,1),opacity .3s}
.a2-home-r{position:absolute;left:8px;top:8px;width:28px;height:28px;overflow:visible;pointer-events:none;transition:transform .45s cubic-bezier(.3,1.6,.5,1),opacity .3s}
.a2-home-l{fill:none;stroke:rgb(238,204,128);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.a2-home-l.s{opacity:0}
.a2-home:hover canvas,.a2-home:focus-visible canvas{transform:translateX(-5px) rotate(-50deg) scale(1.05)}
.a2-home:hover .a2-home-r,.a2-home:focus-visible .a2-home-r{transform:translateX(-5px)}
.a2-home:hover .a2-home-l.r,.a2-home:focus-visible .a2-home-l.r{animation:a2-home-r .5s steps(1,end) both}
.a2-home:hover .a2-home-l.s,.a2-home:focus-visible .a2-home-l.s{animation:a2-home-s .5s steps(1,end) both}
@keyframes a2-home-r{0%{opacity:1}32%{opacity:0}94%{opacity:1}}
@keyframes a2-home-s{0%{opacity:0}32%{opacity:1}94%{opacity:0}}
.a2-home:active canvas{transform:translateX(-5px) scale(.9)}
.a2-home:focus-visible{outline:2.5px solid #1C39BB;outline-offset:3px}
/* the press: it rolls away to the left, like every press the other way */
.a2-home.is-go canvas,.a2-home.is-go .a2-home-r{transform:translateX(-90px) rotate(-420deg);opacity:0;transition:transform .55s cubic-bezier(.5,0,.9,.5),opacity .3s .25s}
.a2-home.is-go .a2-home-l{animation:none}
/* on the road it only leans home while the road rolls back */
.a2-home.is-roll canvas{transform:translateX(-5px) rotate(-50deg) scale(1.05)}
.a2-home.is-roll .a2-home-r{transform:translateX(-5px)}
/* One way home: where the button is drawn, the shell's brand tile is not. */
body:has(.a2-home) .af-wm-corner .af-wm-home{display:none}
/* A phone's sheet rises to the top of the screen, under this button (z 80 over the sheet's 60): while a sheet is
   open the button steps aside, as the corner cluster does (round 2, owner 2026-11-17, item 10: "no need to show the
   haft khaan button here on this pop up page it's covering content"); the sheet's ✕ is the way out. */
@media (max-width:699.98px),(orientation:portrait) and (max-width:1199px){html.af-sheet-open .a2-home{opacity:0;visibility:hidden;pointer-events:none}}
/* R4-S2 (owner 2026-11-17, pictures 30, 31: "remove chat icon (and menu icon where applicable) from all pop ups/drawers"):
   while ANY transient popup is open the chat and window (menu) buttons step aside, at every width, and come back when
   it closes. One rule for every kind: the shared sheet host (.af-sheet-open), the pages' own sheets that stamp
   .af-cc-hidden (lesson About / start over / words, af_ui.js), the mission and trip side page (.mb-sp-open, which hid
   only the window button) and a native <dialog> or popover. Not the dialogue/reading page's drawer: it is the page
   itself (round 3) and stamps none of these. */
html:is(.af-sheet-open,.af-cc-hidden,.mb-sp-open) .a2-chrome :is(.a2-win,.a2-tutor){opacity:0;visibility:hidden;pointer-events:none}
html:has(dialog[open]) .a2-chrome :is(.a2-win,.a2-tutor){opacity:0;visibility:hidden;pointer-events:none}
html:has(:popover-open) .a2-chrome :is(.a2-win,.a2-tutor){opacity:0;visibility:hidden;pointer-events:none}
/* R6-C1: the chat's own sheets (earlier conversations, tuning: <details class="tu-pop">) are popups too — at /chat/
   on a phone the tuning sheet sits at the bottom, where the window button covered its Voice row. */
html:has(.tu-pop[open]) .a2-chrome :is(.a2-win,.a2-tutor){opacity:0;visibility:hidden;pointer-events:none}
/* A sitting's result (partials/exercise/session_head.html) has no chrome: the button takes the seat the
   sitting's ✕ had, in the bar, on the bar's centre line beside the lesson's name (LC-C). */
.px .px-head .a2-home{position:relative;top:auto;left:auto;z-index:auto;flex:none;margin-right:18px}
.px .px-head:has(> .a2-home){min-width:0}
/* The lesson's own back step (courses/lesson_detail.html .ls-ex): the riders' exit is gone; a lesson whose
   parent is not home (a mission's, a trip's, My lessons, a guest's Try it free; the band page for staff)
   keeps that crumb as the kit's back word (a2.css .gb), right of the home button, clear of it. */
.ls .ls-ex .af-crumb{display:inline-block;width:auto;max-width:min(280px,24vw);height:48px;padding:0 4px 0 0;overflow:hidden;color:var(--mut);font:700 18px/48px var(--fb);text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;transition:color .2s}
.ls .ls-ex .af-crumb::before{display:inline-block;width:10px;height:10px;margin:0 11px 0 6px;background:none;border-left:3px solid currentColor;border-bottom:3px solid currentColor;border-radius:2px;opacity:1;vertical-align:middle;position:relative;top:-2px;transform:rotate(45deg);animation:none;transition:transform .3s cubic-bezier(.3,1.6,.5,1)}
.ls .ls-ex .af-crumb:hover,.ls .ls-ex .af-crumb:focus-visible{color:var(--ink)}
.ls .ls-ex .af-crumb:hover::before,.ls .ls-ex .af-crumb:focus-visible::before{opacity:1;transform:translateX(-5px) rotate(45deg);animation:none}
@media (max-width:699px),(orientation:portrait) and (max-width:1199px){
  /* on a phone the word rides the top band (lesson.css): it ends 12px short of whatever the corner shows */
  .ls .ls-ex{max-width:calc(100vw - var(--af-wm-edge) - var(--af-wm-size) - 38px - var(--a2-top-w, 150px))}
  .ls .ls-ex .af-crumb{max-width:100%;font-size:16px}
}
@media (prefers-reduced-motion:reduce){
  .a2-home canvas,.a2-home-r,.a2-home.is-go canvas,.a2-home.is-go .a2-home-r{transition:none}
  .a2-home:hover .a2-home-l.r,.a2-home:hover .a2-home-l.s,.a2-home:focus-visible .a2-home-l.r,.a2-home:focus-visible .a2-home-l.s{animation:none}
}

/* R13-C1 (owner, 2026-11-19, the trip chat on the iPad mini: "chat header is cut off"): the co-pilot's docked sheet
   was 100vh tall (alyfa.css), and iOS Safari's 100vh is the viewport WITHOUT its bars, so the sheet's head sat under
   the address bar. Its height is the visible viewport. */
@media (min-width:640px){.af-sheet-side{height:calc(100dvh - 24px)}}

/* -- 6. Google's reCAPTCHA badge ------------------------------------------------------------------- */
/* The badge Google's script pins to the bottom right covered the phone's GO (owner, 2026-11-24: "if it's allowed to
   be hidden then hide it everywhere"). Google's FAQ allows hiding it when the page says "This site is protected by
   reCAPTCHA."; every page that loads the script prints that line marked [data-rc-note] (sign-up, the level question,
   its phrases, the showcase lesson), and a page without it keeps the badge. Google's own rule: visibility, never
   display:none. */
body:has([data-rc-note]) .grecaptcha-badge{visibility:hidden}
