/* W17 · L70–L79 (founders 13-10): the site-wide look layer, on every page (utils/web_look.py puts it in the <head>).
   Additive only: new lk- classes, one token, and rules that only switch on with a class look.js sets. Prefix lk-. */

/* ── L76 readable small text: the muted grey reaches 4.5:1 on every card colour we use (was 4.25:1 on the darkest cards) ── */
:root:root{--muted:#939CB0}   /* :root:root wins over site.css :root whatever the order */

/* ── L73 page transitions: a soft cross-fade between pages in Chrome and Edge (View Transitions API); other browsers simply
   load the next page. The site bar stays put. Off for people who want less motion. ── */
@view-transition{navigation:auto}
#nav{view-transition-name:lk-nav}
::view-transition-old(root){animation:lk-vt-out .2s cubic-bezier(.4,0,1,1) both}
::view-transition-new(root){animation:lk-vt-in .32s cubic-bezier(.16,1,.3,1) both}
@keyframes lk-vt-out{to{opacity:0}}
@keyframes lk-vt-in{from{opacity:0;transform:translateY(8px)}}

/* ── L78 moving with respect: with "reduce motion" on, nothing slides, floats, pulses or fades in ── */
@media (prefers-reduced-motion:reduce){
  @view-transition{navigation:none}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;animation-delay:0s!important;
    transition-duration:.001ms!important;transition-delay:0s!important;scroll-behavior:auto!important}
  .rv{opacity:1!important;transform:none!important;filter:none!important}
}

/* ── L72 real depth without WebGL: a card tilts a few degrees towards the pointer and its picture / icon floats above it
   (CSS 3D: perspective on the parent, the separate rotate and translate properties, so a card's own transform stays its own).
   Only with a mouse or trackpad, never on touch, never with reduced motion. look.js sets --rx/--ry/--px/--py. ── */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .lk-depth{perspective:1400px}
  .lk-tilt{rotate:var(--ry,0) var(--rx,0) 0 var(--ra,0deg);transition:rotate .5s cubic-bezier(.16,1,.3,1),box-shadow .4s;will-change:rotate}
  .lk-tilt.lk-on{transition:rotate .12s linear,box-shadow .4s;box-shadow:0 40px 90px -40px rgba(0,0,0,.85),0 0 0 1px rgba(214,176,74,.10)}
  .lk-tilt .lk-pop{translate:calc(var(--px,0) * 6px) calc(var(--py,0) * 6px);transition:translate .5s cubic-bezier(.16,1,.3,1)}
  .lk-tilt.lk-on .lk-pop{transition:translate .12s linear}

  /* ── L74 light-following gold: the edge of the card catches the light where the pointer is ── */
  .lk-lit{--lx:50%;--ly:50%}
  .lk-lit.lk-pos{position:relative}
  .lk-lit::after{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;z-index:3;opacity:0;transition:opacity .35s;
    background:radial-gradient(260px circle at var(--lx) var(--ly),rgba(255,236,170,.95),rgba(214,176,74,.45) 35%,rgba(214,176,74,0) 70%);
    -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
  .lk-lit.lk-on::after{opacity:1}
}

/* ── L75 dark and darker: OLED black for phones (the toggle sits in the footer; look.js remembers it on this device) ── */
html.lk-oled,html.lk-oled body{background:#000!important}
html.lk-oled{--ink:#000;--deep:#000}
html.lk-oled #gl,html.lk-oled .grain,html.lk-oled .vig,html.lk-oled .wash{display:none!important}
html.lk-oled .nav{background:rgba(0,0,0,.92)!important;border-bottom-color:rgba(237,234,226,.08)}
html.lk-oled .glass,html.lk-oled .me-box,html.lk-oled .acd-cc-card,html.lk-oled .acd2-list>li,html.lk-oled .ms-card,html.lk-oled .acd-fbar{background:#050505!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html.lk-oled body.acd-edu{background:#000!important}
.lk-oled-t{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 16px;border-radius:999px;font:700 13px var(--body);cursor:pointer;
  color:#fff;border:1px solid rgba(255,255,255,.14);background:#B42330}
.lk-oled-t[aria-pressed="true"]{background:#15803D}
.lk-oled-t b{font:700 12px var(--mono);letter-spacing:.08em}
.lk-oled-wrap{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:18px;color:var(--muted);font-size:13px}

/* ── L77 skeleton loading: what is still loading keeps its shape (look.js marks it; the text stays for screen readers) ── */
.lk-skel{position:relative;color:transparent!important;min-height:64px;border-radius:14px;overflow:hidden;list-style:none}
.lk-skel *{visibility:hidden}
.lk-skel::before{content:"";position:absolute;inset:0;border-radius:inherit;
  background:linear-gradient(rgba(237,234,226,.07) 0 0) 0 8px/62% 14px no-repeat,linear-gradient(rgba(237,234,226,.05) 0 0) 0 34px/86% 12px no-repeat,
    linear-gradient(rgba(237,234,226,.05) 0 0) 0 56px/40% 12px no-repeat}
.lk-skel::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(237,234,226,.07) 50%,transparent 70%);
  background-size:220% 100%;animation:lk-shim 1.3s linear infinite}
@keyframes lk-shim{from{background-position:120% 0}to{background-position:-120% 0}}
.acd-stage[data-prev]:empty{background:linear-gradient(100deg,rgba(237,234,226,.03) 30%,rgba(237,234,226,.08) 50%,rgba(237,234,226,.03) 70%) 0 0/220% 100%;animation:lk-shim 1.3s linear infinite}
[aria-busy="true"].hw-list{opacity:.55;transition:opacity .2s}

/* ── L82 live updates: a short card bottom right, and the "new hand-ins" bar on the homework centre ── */
.lk-toasts{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));z-index:90;display:grid;gap:10px;width:min(380px,calc(100vw - 32px))}
.lk-toast{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:10px;padding:10px 10px 10px 14px;border-radius:16px;
  background:#121620;border:1px solid rgba(214,176,74,.35);box-shadow:0 24px 60px -20px #000;color:#EDEAE2;animation:lk-toast .35s cubic-bezier(.16,1,.3,1)}
.lk-toast b{font-weight:600;font-size:14px;line-height:1.4}
.lk-toast-i{font-size:20px}
.lk-toast-go,.lk-toast-x{display:inline-grid;place-items:center;min-width:44px;min-height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);color:#EDEAE2;font:700 13px var(--body);text-decoration:none;cursor:pointer;padding:0 10px}
.lk-toast-go{background:#15803D;border-color:#15803D}
@keyframes lk-toast{from{opacity:0;transform:translateY(12px)}}
.lk-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 14px;padding:12px 16px;border-radius:14px;
  background:color-mix(in srgb,var(--tab,#D6B04A) 14%,#0b0d14);border:1px solid color-mix(in srgb,var(--tab,#D6B04A) 45%,transparent)}
.lk-bar b{font-weight:600}

/* ── L85 restore a backup (database page) ── */
.db-days li{align-items:center}
.db-days li .db-rs{margin-left:auto}
.db-rsbox{display:grid;gap:10px;padding:16px;border-radius:14px;border:1px solid rgba(224,82,90,.45);background:rgba(224,82,90,.08)}
.db-rsbox p{margin:0}
.db-rsbox label{font:600 11px var(--mono);letter-spacing:.14em;text-transform:uppercase;color:#E9ECF2}
.db-rsbox input{min-height:44px;padding:0 14px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:#07090f;color:#fff;font:700 15px var(--mono);letter-spacing:.12em;max-width:220px}
.db-rsbox .err{color:#FCA5A5}

/* ── L71 one filter-bar design everywhere: the educator portal's filter bar (wa.fbar, academy-edu.css) on the public and
   member pages too, in gold. Chips with their real count left, search / select right, all 44 px; on a phone the chips
   scroll in one row with a fade and the search takes the full width under them. ── */
body:not(.acd-edu) .acd-fbar{--tab:#D6B04A;--tab-soft:rgba(214,176,74,.16);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px}
body:not(.acd-edu) .acd-fbar-chips{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
body:not(.acd-edu) .acd-fbar-chips::-webkit-scrollbar{display:none}
body:not(.acd-edu) .acd-fchip{flex:none;display:inline-flex;align-items:center;gap:8px;height:44px;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid rgba(237,234,226,.12);
  background:rgba(255,255,255,.03);color:#C3C8D3;font:700 13px/1 var(--body);white-space:nowrap;cursor:pointer;transition:color .2s,border-color .2s,background .2s}
body:not(.acd-edu) .acd-fchip i{font-style:normal;min-width:22px;height:22px;padding:0 7px;border-radius:99px;display:grid;place-items:center;font:700 11px var(--mono);background:rgba(255,255,255,.08);color:inherit}
body:not(.acd-edu) .acd-fchip:hover{color:#fff;border-color:rgba(255,255,255,.24)}
body:not(.acd-edu) .acd-fchip:focus-visible{outline:2px solid var(--tab);outline-offset:2px}
body:not(.acd-edu) .acd-fchip[aria-pressed=true],body:not(.acd-edu) .acd-fchip[aria-selected=true]{color:#16110a;background:linear-gradient(180deg,#ffeeb4,#d9a93f);border-color:transparent}
body:not(.acd-edu) .acd-fchip[aria-pressed=true] i,body:not(.acd-edu) .acd-fchip[aria-selected=true] i{background:rgba(6,5,12,.85);color:#fff}
body:not(.acd-edu) .acd-fbar-tools{display:flex;align-items:center;gap:10px;flex:1 1 300px;justify-content:flex-end;min-width:0}
body:not(.acd-edu) .acd-fsearch{display:flex;align-items:center;gap:10px;flex:0 1 380px;min-width:0;height:44px;padding:0 14px;border-radius:999px;border:1px solid rgba(237,234,226,.12);
  background:rgba(255,255,255,.04);transition:border-color .2s,box-shadow .2s}
body:not(.acd-edu) .acd-fsearch:focus-within{border-color:var(--tab);box-shadow:0 0 0 3px var(--tab-soft)}
body:not(.acd-edu) .acd-fsearch svg{flex:none;width:18px;height:18px;fill:none;stroke:var(--tab);stroke-width:2;stroke-linecap:round}
body:not(.acd-edu) .acd-fsearch input{flex:1;min-width:0;height:42px;background:none;border:0;padding:0;color:var(--text);font:500 15px var(--body);outline:none}
body:not(.acd-edu) .acd-fsearch kbd{font:600 12px var(--mono);color:#A9B0C0;padding:3px 8px;border:1px solid rgba(237,234,226,.14);border-radius:6px}
body:not(.acd-edu) .lm-bar .lm-count{flex:1 1 auto;order:2;align-self:center}body:not(.acd-edu) .lm-bar .acd-fbar-tools{order:3}   /* the count left, the search right */
@media (max-width:720px){
  body:not(.acd-edu) .acd-fbar{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
  body:not(.acd-edu) .acd-fbar-chips{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 56px),rgba(0,0,0,.25));mask-image:linear-gradient(90deg,#000 calc(100% - 56px),rgba(0,0,0,.25))}
  body:not(.acd-edu) .acd-fbar-tools{display:grid;grid-template-columns:minmax(0,1fr);flex:none}
  body:not(.acd-edu) .acd-fsearch{flex:none;width:100%}
  body:not(.acd-edu) .acd-fsearch kbd{display:none}
}

/* (each rule starts with "html " so it wins over the same rule in a page stylesheet that loads later) */
/* ── H4 findings of the overlap check (13-10), fixed here because they sit in shared components ── */
/* My account tiles: a long value ("Deep-Dive Masterclass") ran out of its tile on a phone and over the next tile */
html .ms-tile{container-type:inline-size;min-width:0}
html .ms-tile b{font-size:clamp(18px,17cqi,30px);overflow-wrap:break-word;min-width:0}
/* readable small text (L76): numbers in a dashed "not yet" dot, a dimmed weekday outside the month, slide page numbers */
html .pv-dots li.x i{opacity:1;color:#A9B0C0}
html .acd-s-foot span{color:rgba(237,234,226,.68)}
html body.acd-edu .edc-day.out,html body.acd-edu .edc-day.past{opacity:1}html body.acd-edu .edc-day.out b,html body.acd-edu .edc-day.past b{opacity:1;color:#7C8394}html body.acd-edu .edc-day.out>:not(b),html body.acd-edu .edc-day.past>:not(b){opacity:.82}   /* SMP2 phase 9: .6 put the time of a past call at 3.2:1 */
html .acd-fchip.on i,html body.acd-edu .acd-fchip[aria-pressed=true] i,html body.acd-edu .acd-fchip[aria-selected=true] i{background:rgba(6,5,12,.85);color:#fff}   /* the count on an active chip, on every tab colour */
html .rv-nodes em{filter:brightness(1.2)}                       /* the violet module colour on the dark map */
html .ea-exam.locked .ms-tiles{opacity:1;filter:grayscale(.65)}  /* a locked exam looks locked, its text stays readable */
/* the editor's slide list: a long slide title ends in … inside its row (it ran through the row's border on a phone) */
html #acdSlides li{grid-template-columns:32px minmax(0,1fr) auto}
@media (max-width:820px),(hover:none) and (pointer:coarse){html #acdSlides li{grid-template-columns:28px minmax(0,1fr)}}
/* the library card's four buttons: two by two instead of three and a lone one */
html .acd-lib-body>.acd-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
html .acd-lib-body>.acd-actions>*{justify-content:center}
/* every tap target at least 44 px on a phone (FOUTEN #25) */
@media (max-width:700px){
  html .acd-mini,html body.acd-edu .acd-mini,html .hw-more,html .me-btn{min-height:44px}
  html .ms-tog{display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box}
  html .ms-vers summary,html .acd-vid-ch summary{display:flex;align-items:center;min-height:44px}
  html .ea-x{width:44px;height:44px}
  html .vx-llinks a{display:inline-flex;align-items:center;min-height:44px}
  html body.acd-edu .edc-chip{min-height:44px}
  html .acd-actions .acd-mini{white-space:nowrap}
  html .ms-ics{padding:10px 18px;text-align:center}
}
@media (max-width:360px){html .vx-mock code{width:100%!important;animation:none!important;white-space:nowrap;overflow:hidden;font-size:9.5px;letter-spacing:0}html .vx-mock code .km{display:none}html .vx-mock code .kz::before{content:"…"}}   /* R6 owner A3: the demo key on one line with a middle ellipsis (CYPH-CDX-7KQ2M-…5JD8V); the whole key is in its title */
@media (max-width:380px){
  html body.acd-edu .edc-chip{padding:4px 3px}
  html .ms-qb li{grid-template-columns:28px minmax(0,1fr) auto 34px;gap:8px;padding:10px 12px}
  html .vx-onekey code{font-size:clamp(8.5px,2.6vw,12px);letter-spacing:0}
}
/* the filter chips of the educator portal: the plain (not active) chip and its count also reach 4.5:1 on a tinted bar */
html body.acd-edu .acd-fchip{color:#CDD1DA}
html body.acd-edu .acd-fchip i{color:#fff;background:rgba(0,0,0,.35)}
/* My collection: the four jump links two by two on a tablet, never three and a lone one */
@media (max-width:900px){html .aw-jump{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr}html .aw-jump>*,html .aw-jump>a{justify-content:center;text-align:center;padding:8px 12px;line-height:1.25}}   /* W17 master: >a beats exam.css (padding 0), so a 2-line chip keeps its space */

/* ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   SMP2 phase 9 · the look layer of Sunday Market Prep and the dashboards (L2–L9, X112–X119). ONE effect system, prefix fx-
   (and sun-gold for the gold shine). utils/web_look.py picks a theme per page, sets it on <html data-fx="…"> from an inline
   script in the head (no JavaScript = the page exactly as it was: the approved mockup), puts the aurora layer in the page and
   loads look-mobile.css (the same effects, compressed) on phones. look.js drives what needs a pointer, a scroll or a count.
   Themes: sun (every Sunday page and the educators' Calls pages) · edu (the educator portal, the colour of its tab) ·
   me (My account, gold) · learn (Learn + Bootcamp, the colour of the chapter).
   The building blocks (phase 10 builds the member dashboard from these, never new effect code):
     .fx-aurora     the moving light behind the content (X113: a fixed layer, transform only, no canvas)
     .fx-edge       a card that must stand out: an edge from cyan to green with depth (L4); gold: .fx-edge.fx-gold-e
     .sun-gold      the shimmering gold of priority: one keyframe for the whole site (L2, X112)
     fx-wait/fx-rise  cards below the fold rise once when they come into view (L5, X114; look.js)
     KPI numbers    count up from the real number in the HTML (L6, X115; look.js)
     fx-l           the soft light under the mouse (L8, at most 8 %), a tap light on a phone (L9; look.js)
   Rules that never bend: only transform and opacity move; nothing changes the layout (no layout shift); reduced motion = all
   still; a low-power device (html.fx-lite, look.js) keeps the look and stops the drift; backdrop-filter only on the fixed site
   bar (X119). Text on cyan, mint or green is always dark ink (--sun-ink-on-cyan, X118). */
:root{--fx-ease:cubic-bezier(.16,1,.3,1)}

/* ── L3 · X113 · the aurora: soft fields of light that drift very slowly, lean a little towards the pointer and move with the
   scroll. Each field is drawn 4× smaller and scaled up (the same soft light, a 16× smaller texture). Every field ends well above
   the bottom of the screen, so a full-page screenshot never shows the edge of the fixed layer. ── */
.fx-aurora{display:none}
html[data-fx] .fx-aurora{display:block;position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;contain:strict;
  --fx-x:0;--fx-y:0;--fx-s:0;
  --fx-a1:color-mix(in srgb,var(--sun-cyan,#5EE6D8) 10%,transparent);--fx-a2:color-mix(in srgb,var(--sun-blue,#3D8BFF) 10%,transparent);
  --fx-a3:color-mix(in srgb,var(--sun-mint,#7CF5B8) 6%,transparent);--fx-g1:rgba(214,176,74,.14);--fx-g2:rgba(243,220,140,.09)}
html[data-fx] .sun-page>.fx-aurora,html[data-fx] .ct-sun>.fx-aurora{z-index:-1}   /* inside the themed section: over its field, under the content */
html[data-fx] .fx-aurora i{position:absolute;display:block;border-radius:50%;scale:4;will-change:transform;
  translate:calc(-50% + var(--fx-x) * var(--fx-d,10) * 1px) calc(-50% + var(--fx-y) * var(--fx-d,10) * .7px + var(--fx-s) * var(--fx-sd,0) * 1px);
  transition:translate 1.8s var(--fx-ease);animation:fx-drift var(--fx-t,30s) ease-in-out infinite alternate}
html[data-fx] .fx-aurora .fx-a1{left:78%;top:14%;width:250px;height:140px;--fx-d:-14;--fx-t:28s;background:radial-gradient(closest-side,var(--fx-a1),transparent)}
html[data-fx] .fx-aurora .fx-a2{left:8%;top:40%;width:225px;height:160px;--fx-d:12;--fx-t:34s;--fx-sd:-10;animation-direction:alternate-reverse;background:radial-gradient(closest-side,var(--fx-a2),transparent)}
html[data-fx] .fx-aurora .fx-a3{left:56%;top:58%;width:175px;height:75px;--fx-d:-8;--fx-t:40s;background:radial-gradient(closest-side,var(--fx-a3),transparent)}
html[data-fx] .fx-aurora .fx-g1{left:30%;top:22%;width:160px;height:95px;--fx-d:22;--fx-t:24s;--fx-sd:-14;background:radial-gradient(closest-side,var(--fx-g1),transparent)}
html[data-fx] .fx-aurora .fx-g2{left:88%;top:52%;width:130px;height:85px;--fx-d:-26;--fx-t:31s;--fx-sd:12;animation-direction:alternate-reverse;background:radial-gradient(closest-side,var(--fx-g2),transparent)}
@keyframes fx-drift{0%{transform:translate3d(0,0,0) scale(1)}100%{transform:translate3d(-10px,8px,0) scale(1.08)}}   /* ×4 on screen: 40 × 32 px */
/* the themes (L7: every dashboard its own colour) */
/* (edu, me and learn already have a warm field (the coin, the gold tiles, the chapter colour): their gold is half as strong, or the
   muted crumbs dropped under 4.5:1 on it, overlap check phase 9) */
html[data-fx=edu] .fx-aurora{--fx-a1:color-mix(in srgb,var(--tab,#e9c46a) 8%,transparent);--fx-a2:rgba(61,139,255,.06);--fx-a3:color-mix(in srgb,var(--tab,#e9c46a) 5%,transparent);--fx-g1:rgba(214,176,74,.06);--fx-g2:rgba(243,220,140,.04)}
html[data-fx=me] .fx-aurora{--fx-a1:rgba(214,176,74,.06);--fx-a2:rgba(61,139,255,.06);--fx-a3:rgba(167,123,255,.05);--fx-g1:rgba(243,220,140,.05);--fx-g2:rgba(243,220,140,.04)}
html[data-fx=learn] .fx-aurora{--fx-a1:color-mix(in srgb,var(--lk-theme,#F3DC8C) 7%,transparent);--fx-a2:color-mix(in srgb,var(--lk-theme,#F3DC8C) 5%,transparent);--fx-a3:rgba(94,230,216,.04);--fx-g1:rgba(214,176,74,.06);--fx-g2:rgba(243,220,140,.04)}
/* the Sunday field stays the approved mockup's (radials + grid). The smoke under it was never visible (the field is opaque):
   on a Sunday page it no longer runs at all (site.js reads data-fx) */
html[data-fx=sun] #gl,html[data-fx=sun] body.acd-edu:before{display:none}   /* and the violet coin of the portal: not in the Sunday theme */
/* the educators' Sunday section fades into the footer like the members' page: no hard line where the section ends */
html[data-fx=sun] body.acd-edu .ct-sun{background:transparent}
html[data-fx=sun] body.acd-edu .ct-sun:before{background:radial-gradient(1100px 620px at 88% -8%,rgba(94,230,216,.20),transparent 62%),
  radial-gradient(900px 700px at -12% 18%,rgba(61,139,255,.22),transparent 60%),radial-gradient(900px 600px at 50% 105%,rgba(46,229,157,.14),transparent 62%),
  linear-gradient(#020A13,#020A13);-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 220px),transparent);mask-image:linear-gradient(180deg,#000 calc(100% - 220px),transparent)}
html.fx-lite .fx-aurora i{animation:none;transition:none}

/* ── L2 · X112 · the gold shine of priority: light slides over the name every 4 s (demos/shimmer.html), one keyframe for the
   members' pages, the educator portal and the deck. Still and readable with reduced motion. No JavaScript. ── */
@keyframes sun-gold{0%,30%{background-position:100% 0}70%,100%{background-position:0 0}}
.sun-gold{background:linear-gradient(100deg,#BC8E32 0%,#F3DC8C 30%,#FFF8DC 45%,#F3DC8C 60%,#BC8E32 100%);background-size:220% 100%;background-position:35% 0;
  -webkit-background-clip:text;background-clip:text;color:transparent;font-weight:800;filter:drop-shadow(0 0 10px rgba(243,220,140,.35))}
.sun-gold,.sun-shim,.sun-gold-t,body.acd-edu .se-shim,.sd-shim{animation:sun-gold 4s ease-in-out infinite}

/* ── L4 · a card that must stand out: an edge from cyan to green with depth. The big call card has it from the mockup; the best
   prep, your bias vs the market and the promotion get it too. Only the edge and the shadow change, never the size or the fill:
   the card's fill is see-through, so a dark base sits between the fill and the bright edge (without it the edge tinted the whole
   card, phase 9 master). ── */
html .fx-edge,html[data-fx] .sun-card.sun-best,html[data-fx] .sun-card.sun-mk,html[data-fx] .sun-promo-wrap>.sun-card:first-child{
  --fx-edge-c:linear-gradient(140deg,#9FF5EC,rgba(61,139,255,.3) 45%,#2EE59D);
  border:1px solid transparent;background:linear-gradient(180deg,rgba(10,36,64,.62),rgba(4,18,32,.78)) padding-box,linear-gradient(#020A13,#020A13) padding-box,var(--fx-edge-c) border-box;
  box-shadow:0 0 0 1px rgba(94,230,216,.08),0 30px 70px -40px rgba(94,230,216,.26),0 26px 50px -30px #000,inset 0 1px 0 rgba(255,255,255,.07)}
html .fx-edge.fx-gold-e{--fx-edge-c:linear-gradient(140deg,#F3DC8C,rgba(214,176,74,.18) 45%,#A87A22);box-shadow:0 30px 70px -40px rgba(214,176,74,.26),0 26px 50px -30px #000,inset 0 1px 0 rgba(255,255,255,.07)}

/* ── L3 · gold accents, thin and calm: a gold hairline over the big call card, under the Sunday title, round the rings ── */
html[data-fx] .sun-nx:before{content:"";position:absolute;left:26px;right:26px;top:0;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(243,220,140,.6) 50%,transparent)}
html[data-fx] .sun-page .sun-hero:not(.sun-promo-hero),html[data-fx] body.acd-edu .ct-ehead{position:relative}
html[data-fx] .sun-page .sun-hero:not(.sun-promo-hero):after,html[data-fx] body.acd-edu .ct-ehead:after{content:"";position:absolute;left:0;bottom:14px;width:min(420px,60%);height:1px;pointer-events:none;
  background:linear-gradient(90deg,#D6B04A,rgba(214,176,74,.35) 55%,transparent)}
html[data-fx] .sun-donut,html[data-fx] body.acd-edu .se-ring{box-shadow:0 0 0 1px rgba(243,220,140,.28),0 0 40px rgba(94,230,216,.25)}

/* ── L5 · X114 · rising cards: only the cards below the fold when the page loads (look.js gives them fx-wait), once, 380 ms.
   The rest state is visible: without JavaScript, without IntersectionObserver or with reduced motion nothing waits. ── */
.fx-wait{opacity:0;translate:0 18px}
.fx-rise{animation:fx-rise .38s var(--fx-ease) both}
@keyframes fx-rise{from{opacity:0;translate:0 18px}to{opacity:1;translate:0 0}}

/* ── L6 · X115 · numbers that count up: the digits keep one width while they count (nothing moves next to them) ── */
.fx-count{font-variant-numeric:tabular-nums}

/* ── L8 · the light under the mouse: a soft circle at --mx/--my, at most 8 % of the card's light colour, mouse only.
   L9: the same light where you tap on a phone (fx-tap, one short pulse). ── */
.fx-l{--fx-lc:#9FF5EC}
html[data-fx=edu] .fx-l{--fx-lc:var(--tab,#e9c46a)}
html[data-fx=me] .fx-l{--fx-lc:#F3DC8C}
.fx-l:after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:1;opacity:0;transition:opacity .35s;
  background:radial-gradient(420px circle at var(--mx,50%) var(--my,50%),color-mix(in srgb,var(--fx-lc) 8%,transparent),transparent 62%)}
.fx-l.fx-on:after{opacity:1}
.fx-l.fx-tap:after{animation:fx-tap .65s ease-out both}
@keyframes fx-tap{0%{opacity:0}25%{opacity:1}100%{opacity:0}}
html[data-fx] .sun-kpi{position:relative}

/* ── X116 · the big card turns to green at 'join now': the front goes and the back comes with a short turn (demos/flip.html;
   FOUTEN #143: no real 3D with 3D children). The keyframe sits with the card in sunday-dash.css. ── */
/* ── X119 · 60 fps: no blur while you scroll. backdrop-filter only on the fixed site bar (site.css .nav.solid). ── */

/* ── reduced motion: the aurora stands still, the gold stays gold (no shine), nothing rises, counts or pulses ── */
@media (prefers-reduced-motion:reduce){
  html[data-fx] .fx-aurora i{animation:none!important;transition:none!important;translate:-50% -50%}
  .sun-gold,.sun-shim,.sun-gold-t,body.acd-edu .se-shim,.sd-shim{animation:none!important;background-position:35% 0}
  .fx-wait{opacity:1;translate:none}
  .fx-rise,.fx-l.fx-tap:after{animation:none!important}
}

/* R6 M-01 (M1-a): the next step next to the short answer on a Learn keyterm page (mock m1-learn, values from S/b7/b7.css) */
.nx-two{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:24px;align-items:start}
.nx-next{padding:24px;border-radius:24px;position:relative;box-shadow:inset 0 0 0 1px rgba(94,230,216,.45),0 0 60px -20px rgba(94,230,216,.5)!important}
.nx-k{display:block;font:700 11px/1.3 var(--mono);letter-spacing:.2em;text-transform:uppercase;color:#9FF5EC}
.nx-h{margin:8px 0 4px;font:900 26px/1 var(--disp);text-transform:uppercase;color:#fff}
.nx-p{margin:0;color:#B9C3D3}.nx-p b{color:#fff}.nx-p b.nx-c{color:#9FF5EC}
.nx-g{display:grid;gap:16px;grid-template-columns:repeat(3,1fr);margin:14px 0}
.nx-stat{position:relative;padding:12px;border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.015));box-shadow:inset 0 0 0 1px rgba(255,255,255,.1),inset 0 1px 0 rgba(255,255,255,.1);overflow:hidden}
.nx-stat .k{font:700 10.5px var(--mono);letter-spacing:.16em;text-transform:uppercase;color:rgb(94,230,216)}
.nx-stat .n{display:block;margin-top:8px;font:900 28px/1 var(--disp);font-stretch:110%;color:#fff}
.nx-stat .n.w{font-size:20px;margin-top:12px}
.nx-meter{height:10px;border-radius:99px;background:rgba(255,255,255,.07);overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.nx-meter i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#5EE6D8,#2EE59D);box-shadow:0 0 14px rgba(46,229,157,.7)}
.nx-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:14px}.nx-row a.b3{text-decoration:none}
.nx-note{margin-top:12px;font:600 12px var(--mono);color:#93A0B5;letter-spacing:.04em}
@media(max-width:820px){.nx-two{grid-template-columns:1fr}}
@media(max-width:480px){.nx-g{gap:10px}.nx-stat .n.w{font-size:16px}}
/* r4-kit.css ".r4 .k" (a card) also hits the stat label: keep the approved 24 px indent, drop the box that spilled out (overlap "cut") */
.r4 .nx-stat .k{padding:0 0 0 24px;border-radius:0;overflow:visible;isolation:auto}
@media(max-width:360px){.r4 .nx-stat .k{padding-left:8px}.nx-stat .n{font-size:22px}.nx-stat .n.w{font-size:14px}}

/* R6 M-02 (M1-b): "Your path" next to the locked lesson on a Learn keyterm page (mock m1-side, values from S/b7/specs-m2.mjs) */
.yp-path{display:grid;gap:6px;padding:18px;border-radius:22px}
.yp-path>a,.yp-path>.yp-r{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;color:#C9D2DF;font:600 14px var(--body);text-decoration:none}
.yp-path>* i{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-style:normal;font:800 12px var(--mono);background:rgba(255,255,255,.06);flex:none}
.yp-path .d i{background:linear-gradient(180deg,#8CFAC4,#2EE59D);color:#04140c}
.yp-path .on{background:rgba(94,230,216,.12);box-shadow:inset 0 0 0 1px rgba(94,230,216,.5);color:#fff}.yp-path .on i{background:#5EE6D8;color:#03211F}
.yp-path .lk{opacity:.58}/* mock .55 = 4.41:1 on the circle (WCAG 4.5); .58 = 4.76:1, at most 6 colour levels off the approved image */
.yp-path>a:focus-visible{outline:2px solid #5EE6D8;outline-offset:2px}
.yp-path .yp-n{margin:8px 0 0}

/* R6 M-03 (M1-c): "Test yourself" under chapter 01 of a Learn keyterm page (mock m1-quiz, values from S/b7/specs-m2.mjs + b7.css) */
.lq-quiz{position:relative}
.lq-card{padding:28px;border-radius:24px;max-width:760px;box-shadow:inset 0 0 0 1px rgba(46,229,157,.4)!important}
.lq-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.lq-row .f{flex:1 1 200px;min-width:0}.lq-tags{display:contents}
.lq-foot{margin-top:16px}
.lq-k{display:block;font:700 11px/1.3 var(--mono);letter-spacing:.2em;text-transform:uppercase;color:#8CFAC4}
.lq-seg{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;border-radius:14px;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
.lq-seg button{appearance:none;border:0;margin:0;background:none;cursor:pointer;padding:8px 13px;border-radius:10px;font:700 12px/1 var(--mono);letter-spacing:.06em;color:#B9C3D3;white-space:nowrap}
.lq-seg button.on{color:#03211F;background:linear-gradient(180deg,#9FF5EC,#5EE6D8);box-shadow:0 6px 16px -6px rgba(217,169,63,.9)}
.lq-h{margin:12px 0 14px;font:800 22px var(--body);color:#fff}
.lq-q{display:grid;gap:10px}
.lq-q button{appearance:none;border:0;margin:0;width:100%;text-align:left;font:inherit;letter-spacing:inherit;cursor:pointer;padding:14px 16px;border-radius:14px;background:rgba(255,255,255,.03);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);color:#DCE4F0}
.lq-q button:not(:disabled):hover{background:rgba(255,255,255,.06)}.lq-q button:disabled{cursor:default}
.lq-q button.ok{background:rgba(46,229,157,.1);box-shadow:inset 0 0 0 1.5px rgba(46,229,157,.7),0 0 24px -6px rgba(46,229,157,.6);color:#CFFFE8}
.lq-q button.no{background:rgba(255,92,108,.1);box-shadow:inset 0 0 0 1.5px rgba(255,92,108,.7);color:#FFD5DA}
.lq-tag{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:99px;font:700 11px var(--mono);letter-spacing:.06em;white-space:nowrap}
.lq-tag.g{color:#8CFAC4;background:rgba(46,229,157,.1);box-shadow:inset 0 0 0 1px rgba(46,229,157,.45)}
.lq-tag.r{color:#FF9AA5;background:rgba(255,92,108,.1);box-shadow:inset 0 0 0 1px rgba(255,92,108,.45);white-space:normal}
.lq-tag.b{color:#A9CBFF;background:rgba(61,139,255,.12);box-shadow:inset 0 0 0 1px rgba(61,139,255,.5)}
.lq-seg button:focus-visible,.lq-q button:focus-visible,.lq-next:focus-visible{outline:2px solid #5EE6D8;outline-offset:2px}
.lq-quiz a.lq-next,.lq-quiz a.lq-next:hover{text-decoration:none}.lq-next[hidden]{display:none}
/* R6 M-11 (F15-a): the next step in the footer of /me; a long day title wraps inside its column, the button stays on the right */
@media(min-width:821px){.fcta.fcta-me>div{flex:1 1 0;min-width:0}.fcta.fcta-me>.btn{flex:none}}

/* R6 M-23 (B9-X5-c, mock x5-save4): Vault "Your tools" as full-width rows of one size, each with its own button.
   Values copied from S/b7/specs-v3.mjs x5-save3 + S/b7/b7.css (.b7-sr, .b7-tag, .b7-note). */
.lk-tools{display:grid;gap:12px;margin-top:16px}
.lk-tools .b7-sr{display:flex;align-items:center;gap:16px;border-top:1px solid rgba(255,255,255,.07);border-radius:18px;padding:12px 14px;background:rgba(214,176,74,.06);box-shadow:inset 0 0 0 1px rgba(214,176,74,.3)}
.lk-tools .b7-sr img{width:96px;height:62px;object-fit:cover;border-radius:12px;flex:none}
.lk-tools .b7-sr .t{flex:1;min-width:0}
.lk-tools .b7-sr b{display:block;color:#fff;font:700 15px var(--body)}
.lk-tools .b7-sr small{display:block;color:#93A0B5;font-size:13px;margin-top:2px}
.lk-tools .b3{flex:none;text-decoration:none}
.lk-tools .b7-tag{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:99px;font:700 11px var(--mono);letter-spacing:.06em;white-space:nowrap;color:#A9CBFF;background:rgba(61,139,255,.12);box-shadow:inset 0 0 0 1px rgba(61,139,255,.5)}
.lk-tools .b7-note{margin:12px 0;font:600 12px var(--mono);color:#93A0B5;letter-spacing:.04em}
@media (max-width:820px){.lk-tools .b7-sr{flex-wrap:wrap;gap:10px}.lk-tools .b7-sr .t{flex:1 1 60%}}
/* 320 px: the long Discord button wraps its words instead of leaving the row (M-23 stress K1) */
@media (max-width:360px){.lk-tools .b3{flex:0 1 auto;max-width:100%;white-space:normal;line-height:1.35}}
/* R6 S-059 · Settings › Accessibility › Text size (html[data-cy-text], utils/web_display.put; M = no mark = the site as it is).
   Below 900 px: the browser's own text scale, so only the letters grow and nothing gets wider than the screen.
   From 900 px: the page content is zoomed like the browser zoom (smaller steps up to 1199 px, so no row leaves the screen). */
@media (max-width:899px){
html[data-cy-text="s"]{-webkit-text-size-adjust:90%;text-size-adjust:90%}
html[data-cy-text="l"]{-webkit-text-size-adjust:112%;text-size-adjust:112%}
html[data-cy-text="xl"]{-webkit-text-size-adjust:125%;text-size-adjust:125%}
}
@media (min-width:900px) and (max-width:1199px){
html[data-cy-text="s"] main{zoom:.92}
html[data-cy-text="l"] main{zoom:1.06}
html[data-cy-text="xl"] main{zoom:1.12}
}
@media (min-width:1200px){
html[data-cy-text="s"] main{zoom:.9}
html[data-cy-text="l"] main{zoom:1.12}
html[data-cy-text="xl"] main{zoom:1.25}
}
/* R6 S-059 bug 3: never on a stream, stage or deck page, also when one of them is opened with a mark (clean stream, L16) */
body.sd-page main,body.sd-stream main,body.acd-on-air main,body.acd-stage-page main,body.acd-deck-page main{zoom:1!important}
/* R6 S-060 · Settings › Accessibility › High contrast (html[data-cy-contrast="on"], utils/web_display.put; OFF = no mark = the
   site as it is). The site's own tokens get brighter text and stronger borders on every element (every theme sets its own
   mute/line tokens lower in the tree, so they are set on each element), plus the grey texts that do not use a token. */
html[data-cy-contrast="on"],html[data-cy-contrast="on"] body,html[data-cy-contrast="on"] body *{
--text:#FFFFFF;--muted:#D2D8E3;--mute:#D2D8E3;--dim:#D2D8E3;--nv-text:#FFFFFF;--nv-mute:#D2E2EC;--e-mute:#D2D8E3;--e3mute:#D2D8E3;
--cs-text:#FFFFFF;--cs-mute:#D2E2EC;--sun-text:#FFFFFF;--sun-mute:#D2E2EC;--s-text:#FFFFFF;--s-mute:#D2E2EC;--lk-text:#FFFFFF;--lk-mute:#D2E2EC;
--line:rgba(237,234,226,.34);--line2:rgba(214,176,74,.7);--nv-line:rgba(94,230,216,.42);--nv-line2:rgba(94,230,216,.7);
--cs-line:rgba(94,230,216,.42);--cs-line2:rgba(94,230,216,.7);--sun-line:rgba(94,230,216,.42);--sun-line2:rgba(94,230,216,.7);
--s-line:rgba(94,230,216,.42);--s-line2:rgba(94,230,216,.7);--e3line:rgba(237,234,226,.34);--e3line2:rgba(237,234,226,.6);--tab-line:rgba(233,196,106,.8)}
html[data-cy-contrast="on"] body{color:#FFFFFF}
html[data-cy-contrast="on"] :is(.b7-sr small,.b7-note,.b7-lede,.b7-seg span:not(.on),.b7-nav a:not(.on),.st-bio-lab,.st-ph-txt,.b7-sr small.st-fb:not(.ok):not(.bad)){color:#E4E9F1}
html[data-cy-contrast="on"] .b7-sr{border-top-color:rgba(237,234,226,.34)}
html[data-cy-contrast="on"] :focus-visible{outline:3px solid #F3DC8C!important;outline-offset:2px}
/* never on a stream, stage or deck page (a clean stream, L16): web_display.put writes no mark there */
/* R6 S-064 · Settings › Accessibility › Keyboard shortcuts OFF (html[data-cy-keys="off"]): ⌘K / Ctrl K does nothing on the site,
   so the key hints on the Search buttons go (the buttons stay). */
html[data-cy-keys="off"] :is(.me-kbd,.ei-sbtn kbd,.ck-in .ck-key){display:none!important}
/* R6 S-061 · Settings › Accessibility › Reduce motion (html[data-cy-motion="reduce"], utils/web_display.put; OFF = no mark).
   The same as the phone's own reduce-motion setting: no animation, transition, smooth scroll or page cross-fade. An animation
   ends at once on its last frame, so nothing that fades in stays hidden. Scripts: web_display.MOTION_JS. */
html[data-cy-motion="reduce"],html[data-cy-motion="reduce"] *,html[data-cy-motion="reduce"] *::before,html[data-cy-motion="reduce"] *::after{
animation-duration:.01ms!important;animation-delay:0s!important;animation-iteration-count:1!important;
transition-duration:.01ms!important;transition-delay:0s!important;scroll-behavior:auto!important}
html[data-cy-motion="reduce"]::view-transition-group(*),html[data-cy-motion="reduce"]::view-transition-old(*),html[data-cy-motion="reduce"]::view-transition-new(*){animation:none!important}
/* R6 S-062 · Settings › Accessibility › Colour-blind charts (html[data-cy-cb="on"], utils/web_display.put; OFF = no mark). The
   website's own charts: up blue #3D8BFF, down orange #FFB454 (the approved Colour-blind palette). academy.js draws the canvas and
   SVG charts from the same mark. Never on a stream, stage, deck or editor page: a shared picture keeps its colours. */
html[data-cy-cb="on"] .acd-su-candles i{background:#3D8BFF}
html[data-cy-cb="on"] .acd-su-candles i.dn{background:#FFB454}
/* R6 S-063 · Settings › Accessibility › Easy-read font (html[data-cy-font="easy"], utils/web_display.put; OFF = no mark).
   Wider letters and more line space in running text, the site's own fonts. Never on a stream, stage or deck page (L16). */
html[data-cy-font="easy"] body{letter-spacing:.04em;word-spacing:.12em}
html[data-cy-font="easy"] :is(p,li,dd,dt,blockquote,figcaption,td,th,label,small){line-height:1.8!important;letter-spacing:.04em;word-spacing:.12em}
@media (max-width:380px){.nx-h{font-size:21px;overflow-wrap:anywhere}}   /* re-audit A: "DÍA 6 · ESTRUCTURA DE MERCADO" ran out of the next-step card at 320 */
