/* Crawford University: member app. Design system (Phase 1b).
   Tokens first, then components, then screens. Every value here comes from a token; screens add no new ones.
   Color: charcoal surfaces, ivory text, cream primary buttons. Gold only on the wordmark, the crest, the member
   number, and pillar completion. Red, blue, and green belong to the Watch, Write, and Do rings and nothing else.
   No gradients, glows, or fades. */
:root{
  /* color */
  --bg:#000000; --bg-2:#1C1C1E; --bg-3:#2C2C2E;
  --line:rgba(255,255,255,.09); --line-2:rgba(255,255,255,.17);
  --text:#FFFFFF; --text-2:#AEAEB2; --text-3:#8E8E93;
  --gold:#FFFFFF; --btn:#FFFFFF; --btn-h:#E5E5EA;
  --watch:#FA114F; --write:#0A84FF; --do:#30D158;
  --r0:var(--watch); --r1:var(--write); --r2:var(--do);
  --error:#FA114F;
  /* type */
  --display:"Cormorant Garamond",Garamond,"Times New Roman",serif;
  --ui:"Gotham","Gotham SSm","Gotham A","Gotham B","Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  /* space: 4 8 12 16 24 32 48 64 */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px; --s8:64px;
  --gut:20px; --maxw:640px;
  /* motion */
  --t-fast:120ms; --t-mid:200ms; --t-ring:600ms; --t-cer:900ms; --ease:cubic-bezier(.2,.7,.2,1);
  /* chrome */
  --topH:64px; --tabH:56px;
  --safeB:env(safe-area-inset-bottom,0px); --safeT:env(safe-area-inset-top,0px);
  color-scheme:dark;
}
@media (min-width:430px){:root{--gut:24px}}
@media (min-width:768px){:root{--gut:48px}}

*{box-sizing:border-box;font-variant-numeric:lining-nums}
html{-webkit-text-size-adjust:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--ui);font-size:16px;line-height:24px}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit;color:inherit}
button{background:none;border:0;padding:0;cursor:pointer}
:focus-visible{outline:1px solid var(--text);outline-offset:4px}
h1,h2,h3,p,dl,dd{margin:0}
.ico{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* ---------- type: nine styles ---------- */
.d1{font-family:var(--display);font-weight:500;font-size:34px;line-height:38px;text-wrap:balance}
@media (min-width:375px){.d1{font-size:40px;line-height:44px}}
@media (min-width:768px){.d1{font-size:56px;line-height:60px}}
.d2{font-family:var(--display);font-weight:500;font-size:28px;line-height:32px;text-wrap:balance}
@media (min-width:768px){.d2{font-size:36px;line-height:40px}}
.d3,.quote{font-family:var(--display);font-style:italic;font-weight:500;font-size:22px;line-height:28px;overflow-wrap:anywhere}
.body{font-size:16px;line-height:24px}
.body-s{font-size:14px;line-height:20px}
.label,.eyebrow{display:block;font-size:13px;line-height:16px;font-weight:500;letter-spacing:-.005em;text-transform:none;color:var(--text-2)}
.meta{font-size:12px;line-height:16px;letter-spacing:.02em;color:var(--text-3);font-variant-numeric:tabular-nums}
.mut{color:var(--text-2)} .dim{color:var(--text-3)}
.quote cite{display:block;margin-top:var(--s2);font:400 12px/16px var(--ui);font-style:normal;letter-spacing:.02em;color:var(--text-3)}

/* ---------- shell ---------- */
.top{position:sticky;top:0;z-index:30;padding-top:var(--safeT);background:var(--bg);border-bottom:1px solid var(--line)}
.top .in{padding:0 var(--gut);height:var(--topH);display:flex;align-items:center;gap:var(--s7);max-width:1180px;margin:0 auto}
.mark{display:inline-flex;flex-direction:column;align-items:center;line-height:1}
.mark b{font-family:var(--display);font-weight:600;font-size:15px;letter-spacing:.24em;color:var(--text)}
.mark i{display:block;align-self:stretch;height:1px;margin:5px 0 4px;background:var(--gold)}
.mark small{font-size:7.5px;letter-spacing:.34em;color:var(--gold);font-weight:500}
.tabs{display:flex;gap:var(--s6)}
.tabs a{position:relative;font-size:13px;font-weight:500;letter-spacing:-.005em;text-transform:none;color:var(--text-3);padding:var(--s3) 0;transition:color var(--t-mid)}
.tabs a:hover,.tabs a.on{color:var(--text)}
.tabs a.on::after{content:"";position:absolute;left:0;right:0;bottom:4px;height:1px;background:var(--text)}
.demo{font-size:13px;font-weight:500;letter-spacing:-.005em;text-transform:none;color:var(--text-2);border:1px solid var(--line-2);padding:4px 8px}
.demo[hidden]{display:none}
.avatar{margin-left:auto;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line-2);font-family:var(--display);font-size:18px;color:var(--text);overflow:hidden}
main{max-width:var(--maxw);margin:0 auto;padding:var(--s7) var(--gut) 112px}
.tabbar{display:none}

/* ---------- buttons and links ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--s3);min-height:52px;padding:0 var(--s6);background:var(--btn);color:var(--bg);border:1px solid var(--btn);border-radius:14px;font-size:12px;font-weight:500;letter-spacing:-.005em;text-transform:none;white-space:nowrap;transition:background var(--t-fast),border-color var(--t-fast),color var(--t-fast)}
.btn:hover{background:var(--btn-h);border-color:var(--btn-h)}
.btn:disabled{background:var(--bg-3);border-color:var(--bg-3);color:var(--text-3);cursor:default}
.btn.sm{min-height:44px;padding:0 var(--s5);font-size:11px}
.btn.secondary,.btn.ghost{background:transparent;color:var(--text);border-color:var(--line-2)}
.btn.secondary:hover,.btn.ghost:hover{border-color:var(--text-2);background:transparent}
.btn.secondary:disabled,.btn.ghost:disabled{color:var(--text-3);border-color:var(--line);background:transparent}
.btn.full{width:100%}
.btn .ico{width:16px;height:16px;stroke-width:1.8}
.link{display:inline-flex;align-items:center;min-height:44px;font-size:14px;line-height:20px;color:var(--text);text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:4px;transition:text-decoration-color var(--t-fast)}
.link:hover{text-decoration-color:var(--text)}
.back{display:inline-flex;align-items:center;gap:var(--s2);min-height:44px;font-size:13px;font-weight:500;letter-spacing:-.005em;text-transform:none;color:var(--text-2);margin-bottom:var(--s4)}
.back:hover{color:var(--text)}
.row2{display:flex;align-items:center;gap:var(--s3) var(--s5);flex-wrap:wrap}
.acts{display:flex;gap:var(--s3);flex-wrap:wrap;margin-top:var(--s5)}
.acts.center{justify-content:center}
.stack{display:flex;flex-direction:column;gap:var(--s5)}

/* ---------- rings ---------- */
.ring{position:relative;display:inline-grid;place-items:center;width:var(--rs);height:var(--rs);flex:none}
.ring>svg{width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
.ring circle{fill:none;stroke-width:2px;vector-effect:non-scaling-stroke}
.ring.big circle{stroke-width:3px}
.ring .tr{stroke:var(--line-2)}
.ring .fl{stroke-linecap:round;transition:stroke-dasharray var(--t-ring) var(--ease)}
.ring.r0 .fl{stroke:var(--watch)} .ring.r1 .fl{stroke:var(--write)} .ring.r2 .fl{stroke:var(--do)}
.ring .rk{position:absolute;inset:0;display:grid;place-items:center}
.ring .rk .ico{width:20px;height:20px;stroke-width:2}
.ring.r0 .rk{color:var(--watch)} .ring.r1 .rk{color:var(--write)} .ring.r2 .rk{color:var(--do)}
.trio{display:inline-flex;gap:4px;align-items:center;flex:none}

/* ---------- rows ---------- */
.navrow,.lrow,.prow{display:flex;align-items:center;gap:var(--s4);min-height:56px;padding:var(--s3) 0;border-bottom:1px solid var(--line);width:100%;text-align:left;transition:background var(--t-fast)}
a.navrow:active,button.navrow:active,a.lrow:active,a.prow:active{background:var(--bg-3)}
.nr-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.nr-t b{font-weight:500;font-size:16px;line-height:24px;overflow-wrap:anywhere}
.nr-t small{font-size:12px;line-height:16px;color:var(--text-3)}
.nr-c{flex:none;color:var(--text-3);display:grid;place-items:center;width:16px}
.lessons,.plist{border-top:1px solid var(--line)}
.ln{font-family:var(--display);font-weight:500;font-size:22px;line-height:28px;color:var(--text-2);min-width:36px;font-variant-numeric:tabular-nums}
.lrow.locked .nr-t b,.lrow.locked .ln{color:var(--text-3)}

/* ---------- guided prompt ---------- */
.pf{display:flex;flex-direction:column;gap:var(--s2)}
.pf-frame{font-size:14px;line-height:20px;color:var(--text-2)}
.pf-q{font-family:var(--display);font-weight:500;font-size:22px;line-height:28px;color:var(--text)}
.pf-box{background:var(--bg-2);border:1px solid var(--line-2);border-radius:14px;transition:border-color var(--t-fast);margin-top:var(--s1)}
.pf-box:focus-within{border-color:var(--text-2)}
.pf-box.starter{padding:var(--s4) var(--s4) 0}
.pf-st{display:block;font-family:var(--display);font-style:italic;font-size:18px;line-height:24px;color:var(--text-2)}
.pf-in{display:block;width:100%;background:transparent;border:0;padding:var(--s4);font-size:16px;line-height:24px;color:var(--text);resize:vertical;min-height:56px;-webkit-appearance:none;appearance:none}
.pf-box.starter .pf-in{padding:var(--s1) 0 var(--s4)}
textarea.pf-in{min-height:80px}
.pf-in:focus{outline:none}
.pf-in::placeholder{color:var(--text-3)}
.pf-ex{font-size:14px;line-height:20px;color:var(--text-3)}
.pf-meta{font-size:12px;line-height:16px;color:var(--text-3)}
.pf-msg{font-size:14px;line-height:20px;color:var(--text-2);min-height:0}
.pf-msg:empty{display:none}
.chiprow{display:flex;flex-wrap:wrap;gap:var(--s2);margin-top:var(--s1)}
.pchip{min-height:44px;padding:0 var(--s4);border:1px solid var(--line-2);border-radius:14px;font-size:14px;color:var(--text-2);transition:border-color var(--t-fast),color var(--t-fast)}
.pchip:hover{color:var(--text);border-color:var(--text-2)}
.pchip.on{color:var(--bg);background:var(--text);border-color:var(--text)}

/* ---------- forms (profile, account) ---------- */
.fld{display:flex;flex-direction:column;gap:var(--s2)}
.fld>span,fieldset.fld>legend{font-size:13px;font-weight:500;letter-spacing:-.005em;text-transform:none;color:var(--text-2)}
fieldset.fld{border:0;margin:0;padding:0;min-width:0}
fieldset.fld>legend{padding:0;margin-bottom:var(--s3)}
textarea,input[type=text],input[type=email],input[type=tel],input[type=password]{width:100%;background:var(--bg-2);border:1px solid var(--line-2);border-radius:14px;padding:var(--s3) var(--s4);font-size:16px;line-height:24px;color:var(--text);transition:border-color var(--t-fast);-webkit-appearance:none;appearance:none}
input[type=text],input[type=email],input[type=tel],input[type=password]{min-height:52px}
textarea{min-height:96px;resize:vertical}
textarea::placeholder,input::placeholder{color:var(--text-3)}
textarea:focus,input:focus{outline:none;border-color:var(--text-2)}
.pf-in:focus{border:0}
.chips{display:flex;flex-wrap:wrap;gap:var(--s2)}
.chip{position:relative;cursor:pointer}
.chip input{position:absolute;opacity:0;width:1px;height:1px}
.chip span{display:inline-flex;align-items:center;min-height:44px;padding:0 var(--s4);border:1px solid var(--line-2);border-radius:14px;font-size:14px;color:var(--text-2);transition:border-color var(--t-fast),color var(--t-fast)}
.chip:hover span{border-color:var(--text-2);color:var(--text)}
.chip input:checked+span{border-color:var(--text);color:var(--bg);background:var(--text)}
.chip input:focus-visible+span{outline:1px solid var(--text);outline-offset:3px}
.fa{display:flex;align-items:center;justify-content:flex-end;gap:var(--s4);flex-wrap:wrap}
.fmsg{font-size:14px;line-height:20px;color:var(--text-2);margin-right:auto;font-style:normal}
.fmsg.err{color:var(--error)} .fmsg.ok{color:var(--text)}
.note{font-size:14px;line-height:20px;color:var(--text-2)}
.notice{display:flex;gap:var(--s3);align-items:center;flex-wrap:wrap;padding:var(--s4) 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:var(--s5);font-size:14px;line-height:20px;color:var(--text-2)}

/* ---------- page heads ---------- */
.phead{display:flex;flex-direction:column;gap:var(--s2);margin-bottom:var(--s6)}
.phead .meta{margin-top:var(--s2)}
.pbar{display:block;height:2px;background:var(--line-2);position:relative;margin-top:var(--s2)}
.pbar i{position:absolute;left:0;top:0;bottom:0;background:var(--text)}
.pbar.gold i{background:var(--gold)}

/* ---------- pillars ---------- */
.prow{align-items:flex-start;padding:var(--s5) 0}
.prow .pn{font-family:var(--display);font-weight:500;font-size:28px;line-height:32px;min-width:44px;color:var(--text)}
.prow .nr-t b{font-family:var(--display);font-size:22px;line-height:28px}
.prow .po{font-size:14px;line-height:20px;color:var(--text-2)}
.prow .ps{margin-top:var(--s2);font-size:12px;color:var(--text-3)}
.prow .pbar{margin-top:var(--s2);max-width:240px}
.prow .nr-c{align-self:center}
.prow.done .pn{color:var(--gold)}
.prow.next .pn,.prow.next .nr-t b,.prow.soon .pn,.prow.soon .nr-t b{color:var(--text-3)}
.prow.next .po,.prow.soon .po{color:var(--text-3)}

/* ---------- notebook ---------- */
.nbgroup{display:flex;flex-direction:column;gap:var(--s3);margin-top:var(--s7)}
.dayone{display:flex;flex-direction:column;gap:var(--s3);padding-top:var(--s2)}
.dayone .pf-q{font-family:var(--ui);font-size:14px;line-height:20px;color:var(--text-2)}
.kv{display:flex;flex-wrap:wrap;gap:var(--s4) var(--s6);padding-top:var(--s4);border-top:1px solid var(--line);margin-top:var(--s2)}
.kv dt{font-size:13px;font-weight:500;letter-spacing:-.005em;text-transform:none;color:var(--text-3)}
.kv dd{font-size:16px;line-height:24px;margin-top:var(--s1);display:flex;flex-direction:column;gap:var(--s1)}
.kv .wide{flex-basis:100%}
.sig{font-family:var(--display);font-style:italic;font-size:22px;line-height:28px;color:var(--text);padding-top:var(--s3);border-top:1px solid var(--line)}
.page .phead h1{display:flex;gap:var(--s3);align-items:baseline;flex-wrap:wrap}
.page .phead .ln{font-size:28px;line-height:32px}
.pg-sec{display:flex;flex-direction:column;gap:var(--s2);padding:var(--s5) 0;border-bottom:1px solid var(--line)}
.pg-sec .body{white-space:pre-wrap;overflow-wrap:anywhere}
.pg-nav{display:flex;justify-content:space-between;align-items:center;gap:var(--s3);margin-top:var(--s5);flex-wrap:wrap}
.pg-nav .pn{display:flex;gap:var(--s2)}

/* ---------- profile ---------- */
.narrow{max-width:var(--maxw);margin:0 auto}
.narrow>.d2{margin-bottom:var(--s5)}
.mcard{display:flex;flex-direction:column;gap:var(--s5);background:var(--bg-2);padding:var(--s5);width:100%}
.mc-top{display:flex;justify-content:space-between;align-items:flex-start}
.mc-crest{display:block;width:40px;height:40px;color:var(--gold)}
.mc-crest svg{width:100%;height:100%;display:block}
.mcard .av{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line-2);font-family:var(--display);font-size:24px;color:var(--text);position:relative;overflow:hidden;background:var(--bg-3);cursor:pointer}
.mc-mid{display:flex;flex-direction:column;gap:var(--s2)}
.mcard .d2{font-size:36px;line-height:40px;overflow-wrap:anywhere}
.mc-no{font-size:11px;line-height:16px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
.pfacts{display:flex;align-items:center;gap:var(--s5);flex-wrap:wrap;margin-top:var(--s2)}
.sect{display:flex;flex-direction:column;gap:var(--s3);margin-top:var(--s7)}
.sect>h2{font-size:13px;line-height:16px;font-weight:500;letter-spacing:-.005em;text-transform:none;color:var(--text-2);margin:0}
.sect .sh{display:flex;align-items:center;justify-content:space-between;gap:var(--s4)}
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s5) var(--s4)}
.stat{display:flex;flex-direction:column;gap:var(--s1);min-width:0}
.stat b{font-family:var(--display);font-weight:500;font-size:28px;line-height:32px;white-space:nowrap;font-variant-numeric:tabular-nums}
.stat b em{font-style:normal;font-size:16px;color:var(--text-3)}
@media (min-width:768px){.stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
.kvrow{display:flex;justify-content:space-between;align-items:center;gap:var(--s4);padding:var(--s4) 0;border-bottom:1px solid var(--line)}
.kvrow b{font-weight:400;font-size:16px;text-align:right}
.kvrow.col{flex-direction:column;align-items:flex-start;gap:var(--s2)}
.grp form,.grp .pad{display:flex;flex-direction:column;gap:var(--s5)}
.grp .row{display:flex;justify-content:space-between;align-items:center;gap:var(--s4);min-height:56px;padding:var(--s3) 0;border-bottom:1px solid var(--line);font-size:16px;width:100%;text-align:left}
.grp .row span{font-size:13px;letter-spacing:-.005em;text-transform:none;color:var(--text-2)}
.grp .row b{font-weight:400}
.grp button.row b{font-size:14px;color:var(--text);text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:4px}
.logout{margin-top:var(--s7)}
.delacct{margin-top:var(--s7)}
.envelope{display:flex;align-items:center;gap:var(--s4);padding:var(--s4) 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.envelope .ico{width:28px;height:28px;color:var(--text-2);stroke-width:1.3}
.envelope b{display:block;font-family:var(--display);font-weight:500;font-size:22px;line-height:28px}

/* ---------- photo cropper ---------- */
#initial{width:100%;height:100%;display:grid;place-items:center}
#initial.has-photo,.mcard .av.has-photo{position:relative;overflow:hidden}
#initial img,.mcard .av img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}
.crop{position:fixed;inset:0;z-index:100;background:var(--bg);display:flex;align-items:center;justify-content:center;padding:calc(20px + var(--safeT)) 20px calc(20px + var(--safeB))}
.crop .box{width:min(420px,100%);display:flex;flex-direction:column;gap:var(--s5)}
.crop h2{font-family:var(--display);font-weight:500;font-size:28px;line-height:32px}
.crop .cstage{position:relative;width:100%;aspect-ratio:1/1;overflow:hidden;background:#000;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.crop .cstage.drag{cursor:grabbing}
.crop .cstage img{position:absolute;left:0;top:0;transform-origin:0 0;max-width:none;pointer-events:none;-webkit-user-drag:none}
.crop .cstage::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 999px rgba(0,0,0,.7);outline:1px solid var(--line-2);pointer-events:none}
.crop .zoom{display:flex;align-items:center;gap:var(--s3);color:var(--text-2)}
.crop .zoom svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.crop input[type=range]{flex:1;accent-color:var(--text);height:28px}
.crop .tip{font-size:14px;color:var(--text-3)}
.crop .acts{display:flex;justify-content:flex-end;gap:var(--s3)}

/* ---------- the letter ---------- */
.lbanner{display:flex;align-items:center;gap:var(--s4);margin-bottom:var(--s5);padding:var(--s4) 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.lbanner .ico{width:28px;height:28px;color:var(--text-2);stroke-width:1.3}
.lbanner p{margin-top:var(--s1);font-size:14px;color:var(--text)}
.letter{display:flex;flex-direction:column;align-items:center;text-align:center;gap:var(--s5)}
.letter h1{font-family:var(--display);font-weight:500;font-size:40px;line-height:44px}
.letter .paper{width:100%;text-align:left;background:var(--bg-2);padding:var(--s5)}
.letter .paper p{font-family:var(--display);font-size:22px;line-height:32px;white-space:pre-wrap;overflow-wrap:anywhere}
.letter .paper .from{display:block;margin-top:var(--s5);font-family:var(--display);font-style:italic;font-size:22px;text-align:right;color:var(--text-2)}
.letter .acts{justify-content:center}
.then-now{display:grid;grid-template-columns:1fr;gap:var(--s4);width:100%;text-align:left}
.tn-col{background:var(--bg-2);padding:var(--s5);display:flex;flex-direction:column;gap:var(--s4)}
.tn-col small{display:block;font-size:13px;font-weight:500;letter-spacing:-.005em;text-transform:none;color:var(--text-3);margin-bottom:var(--s1)}
.tn-col p{font-family:var(--display);font-size:22px;line-height:28px}
.tn-stats{display:grid;grid-template-columns:1fr 1fr;gap:var(--s4)}
.tn-stats b{display:block;font-family:var(--display);font-weight:500;font-size:28px;line-height:32px}.tn-stats b em{font-size:16px;color:var(--text-3);font-style:normal}
.tn-stats span{font-size:13px;letter-spacing:-.005em;text-transform:none;color:var(--text-2)}
@media (min-width:768px){.then-now{grid-template-columns:1fr 1fr}}

/* ---------- desktop and phone chrome ---------- */
@media (max-width:820px){
  .tabs,.avatar{display:none}
  .top .in{justify-content:center}
  .demo{position:absolute;right:var(--gut)}
  main{padding:var(--s6) var(--gut) calc(var(--tabH) + var(--safeB) + var(--s5))}
  .tabbar{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:30;height:calc(var(--tabH) + var(--safeB));padding:0 var(--s2) var(--safeB);background:var(--bg);border-top:1px solid var(--line)}
  .tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:44px;min-width:0;font-size:13px;line-height:12px;font-weight:500;letter-spacing:-.005em;text-transform:none;color:var(--text-3)}
  .tabbar svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
  .tabbar a.on{color:var(--text)}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:0ms!important;animation-duration:0ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}

/* 2026-11 rebrand: rounded surfaces, pill-shaped primary actions, glass for floating chrome */
.btn{border-radius:16px}
.mcard,.paper,.tn-col,.gstart,.gbanner,.cred{border-radius:24px}
.hero-img{border-radius:0}
.gmenu-in{border-radius:24px 24px 0 0}
.sync{border-radius:999px;background:rgba(28,28,30,.72)!important;-webkit-backdrop-filter:blur(20px) saturate(170%);backdrop-filter:blur(20px) saturate(170%);border:1px solid rgba(255,255,255,.16)}

/* ============ 2026-11 iOS-native layer ============
   Interface text in Apple's system font, sentence case, grouped surfaces with depth,
   glass chrome. Cormorant (--display) stays for titles and key moments. */
:root{
  --ui:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue","Inter",system-ui,sans-serif;
  --bg-2:#1C1C1E; --bg-3:#2C2C2E;
  --surface:linear-gradient(180deg,#1E1E20 0%,#151517 100%);
  --edge:inset 0 1px 0 rgba(255,255,255,.07),inset 0 0 0 1px rgba(255,255,255,.04);
  --lift:0 1px 2px rgba(0,0,0,.5),0 12px 32px rgba(0,0,0,.35);
  --glass:rgba(22,22,24,.62);
}
body{letter-spacing:-.01em}
.label,.eyebrow{font-size:13px;line-height:18px;font-weight:600;letter-spacing:-.005em;text-transform:none;color:var(--text-2)}
.btn{min-height:50px;font-size:17px;font-weight:600;letter-spacing:-.02em;text-transform:none;border-radius:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 1px 2px rgba(0,0,0,.4)}
.mcard,.paper,.tn-col,.gstart,.gbanner,.cred{background:var(--surface);box-shadow:var(--edge),var(--lift);border-radius:22px}
.pf-box,textarea,input[type=text],input[type=email],input[type=tel],input[type=password],.gin,.gta{background:#1C1C1E;border-color:rgba(255,255,255,.08);border-radius:12px}
.chip span,.pchip,.gchip{border-radius:999px;background:#1C1C1E;border-color:rgba(255,255,255,.08);text-transform:none;letter-spacing:0;font-weight:500}
.gopt,.opt{border-radius:14px;background:var(--surface);box-shadow:var(--edge);border-color:rgba(255,255,255,.06)}
.top{background:var(--glass);-webkit-backdrop-filter:blur(28px) saturate(180%);backdrop-filter:blur(28px) saturate(180%);border-bottom:.5px solid rgba(255,255,255,.1)}
.tabs a{font-size:15px;font-weight:500;letter-spacing:-.01em;text-transform:none}
.tabs a.on::after{display:none}
.tabs a.on{color:var(--text)}
.tabbar{background:var(--glass)!important;-webkit-backdrop-filter:blur(28px) saturate(180%);backdrop-filter:blur(28px) saturate(180%);border-top:.5px solid rgba(255,255,255,.1)}
.tabbar a{font-size:10px;font-weight:500;letter-spacing:0;text-transform:none}

/* ============ 2026-11 depth layer (Framer reference) ============ */
body{background:radial-gradient(120% 60% at 50% -10%,#1d1d20 0%,#0a0a0b 45%,#000 75%) fixed,#000}
.mcard,.paper,.tn-col,.gstart,.gbanner,.cred,.gopt{position:relative;overflow:hidden;isolation:isolate}
.mcard::before,.paper::before,.tn-col::before,.gstart::before,.gbanner::before,.cred::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(90% 70% at 0% 0%,rgba(255,255,255,.075),rgba(255,255,255,0) 60%),radial-gradient(60% 50% at 100% 100%,rgba(255,255,255,.025),rgba(255,255,255,0) 70%)}
.mcard::after,.paper::after,.tn-col::after,.gstart::after,.gbanner::after,.cred::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.05;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.d1,.d2{background:linear-gradient(180deg,#FFFFFF 30%,#9A9AA0 115%);-webkit-background-clip:text;background-clip:text;color:transparent}
.hr,hr{border:0;height:1px;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.14),rgba(255,255,255,0))}

/* ============ 2026-11 liquid glass (select places only; layout and behavior unchanged) ============ */
:root{--lg-fill:rgba(44,44,48,.38);
  --lg-edge:inset 0 1px 0 rgba(255,255,255,.32),inset 0 -1px 0 rgba(255,255,255,.07),inset 1px 0 0 rgba(255,255,255,.10),inset -1px 0 0 rgba(255,255,255,.05),inset 0 0 0 .5px rgba(255,255,255,.10);
  --lg-drop:0 10px 30px rgba(0,0,0,.45),0 2px 6px rgba(0,0,0,.35)}
.lg,.btn.secondary,.tabbar,.sync{position:relative;background:var(--lg-fill)!important;-webkit-backdrop-filter:blur(24px) saturate(190%) brightness(1.08);backdrop-filter:blur(24px) saturate(190%) brightness(1.08);border:0!important;box-shadow:var(--lg-edge),var(--lg-drop)}
.btn.secondary::before,.tabbar::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.14) 0%,rgba(255,255,255,.03) 38%,rgba(255,255,255,0) 60%,rgba(255,255,255,.04) 100%)}
.btn.secondary{color:var(--text)!important;border-radius:999px}
/* floating glass tab bar, as on iOS */
.tabbar{width:auto!important;box-sizing:border-box;left:12px!important;right:12px!important;bottom:calc(10px + var(--safeB))!important;height:var(--tabH)!important;padding:0 6px!important;border-radius:999px;border-top:0!important}
.tabbar a{border-radius:999px;margin:6px 0;transition:background var(--t-mid),color var(--t-mid)}
.tabbar a.on{background:rgba(255,255,255,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}
/* rings: soft colored light under each ring, like the Fitness app */
.rr svg{filter:drop-shadow(0 0 10px rgba(255,255,255,.06))}
.rr:nth-child(1) svg{filter:drop-shadow(0 0 14px rgba(250,17,79,.28))}
.rr:nth-child(2) svg{filter:drop-shadow(0 0 14px rgba(10,132,255,.28))}
.rr:nth-child(3) svg{filter:drop-shadow(0 0 14px rgba(48,209,88,.28))}

/* ============ 2026-11 tab bar: floating glass capsule, current iOS style ============ */
.tabbar{position:fixed!important}
.tabbar a{gap:2px!important;margin:5px 2px!important;font-family:var(--ui);font-size:10.5px!important;line-height:13px!important;font-weight:500!important;letter-spacing:-.01em!important;color:#8E8E93!important}
.tabbar a.on{color:#FFFFFF!important;font-weight:600!important;background:rgba(255,255,255,.13);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 0 0 .5px rgba(255,255,255,.08)}
.tabbar svg{width:25px!important;height:25px!important;stroke-width:1.9!important}
.tabbar svg .f{display:none;fill:currentColor;stroke:none}
.tabbar a.on svg .o{display:none}
.tabbar a.on svg .f{display:inline}
.tabbar a:active{transform:scale(.96)}
.tabbar{background:rgba(30,30,33,.62)!important;-webkit-backdrop-filter:blur(30px) saturate(200%) brightness(1.05)!important;backdrop-filter:blur(30px) saturate(200%) brightness(1.05)!important}

/* ============ 2026-11 tab bar, Apple Music pattern ============
   Main tabs in one glass capsule, Profile split out as its own round glass button (like Music's Search).
   All icons filled; active tab gets a brighter lozenge. Same links, same behavior. */
.tabbar{grid-template-columns:repeat(4,1fr)!important;right:80px!important;height:60px!important;padding:0 5px!important;
  background:rgba(38,38,42,.5)!important;-webkit-backdrop-filter:blur(26px) saturate(210%) brightness(1.1)!important;backdrop-filter:blur(26px) saturate(210%) brightness(1.1)!important}
.tabbar a{margin:5px 1px!important;color:#E5E5EA!important;font-size:10px!important;font-weight:600!important}
.tabbar a svg .o{display:none!important}
.tabbar a svg .f{display:inline!important}
.tabbar a.on{color:#FFFFFF!important;background:rgba(255,255,255,.16)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 0 0 .5px rgba(255,255,255,.1),0 2px 8px rgba(0,0,0,.25)!important}
.tabbar a:not(.on){opacity:.82}
.tabbar svg{width:24px!important;height:24px!important}
.tabbar a[data-tab=profile]{position:fixed;right:12px;bottom:calc(10px + var(--safeB));width:60px;height:60px;margin:0!important;padding:0;border-radius:50%;
  background:rgba(38,38,42,.5);-webkit-backdrop-filter:blur(26px) saturate(210%) brightness(1.1);backdrop-filter:blur(26px) saturate(210%) brightness(1.1);
  box-shadow:var(--lg-edge),var(--lg-drop);opacity:1;font-size:0!important;gap:0!important}
.tabbar a[data-tab=profile] span{display:none}
.tabbar a[data-tab=profile].on{background:rgba(255,255,255,.2)!important}
.tabbar a[data-tab=profile]{position:absolute!important;right:-68px!important;top:0!important;bottom:auto!important}
.btn.sm{min-height:44px;font-size:15px!important;padding:0 20px}
/* 2026-11: keep the floating menu in the same spot on every tab.
   Short tabs (Goals, Notebook) were shorter than the screen, so Safari kept its toolbar expanded there and the menu sat higher.
   Every tab is now at least one full screen tall, so Safari behaves the same on all of them. */
main{min-height:100vh;min-height:100lvh}

/* ============ 2026-11 phone chrome v2 ============
   Profile photo top right in the header; four tabs across a full-width glass bar;
   the bar slims down while scrolling down and returns on scroll up (Apple Music behavior). */
@media (max-width:820px){
  .top .in{position:relative}
  .top .avatar{display:grid!important;position:absolute;right:var(--gut);top:50%;transform:translateY(-50%);margin:0;width:38px;height:38px;
    background:rgba(44,44,48,.5);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),inset 0 0 0 .5px rgba(255,255,255,.14),0 4px 12px rgba(0,0,0,.35);border:0;font-size:16px}
  .top .avatar.on{box-shadow:inset 0 0 0 1.5px #FFFFFF,0 4px 12px rgba(0,0,0,.35)}
  .top .demo{position:absolute;left:var(--gut);top:50%;transform:translateY(-50%)}
  .tabbar{right:12px!important;grid-template-columns:repeat(4,1fr)!important;
    transition:height .35s cubic-bezier(.2,.8,.2,1),left .35s cubic-bezier(.2,.8,.2,1),right .35s cubic-bezier(.2,.8,.2,1),bottom .35s cubic-bezier(.2,.8,.2,1)}
  .tabbar a[data-tab=profile]{display:none!important}
  .tabbar a span{transition:opacity .2s,max-height .3s;max-height:14px;overflow:hidden}
  .tabbar svg{transition:width .3s,height .3s}
  .tabbar.tb-min{height:46px!important;left:22%!important;right:22%!important;bottom:calc(6px + var(--safeB))!important}
  .tabbar.tb-min a{margin:4px 1px!important}
  .tabbar.tb-min a span{opacity:0;max-height:0}
  .tabbar.tb-min svg{width:21px!important;height:21px!important}
}

/* ============ 2026-11 tab bar v3: matched to Apple Music (iOS 26) ============
   Denser dark surface with a hairline edge, white filled symbols and labels on every tab,
   lighter lozenge for the current tab. Scrolling down collapses the bar into one circle
   holding the current tab's icon; scrolling up or tapping it expands it again. */
@media (max-width:820px){
  .tabbar{display:flex!important;align-items:stretch;gap:0;
    left:12px!important;right:12px!important;height:62px!important;padding:5px!important;border-radius:999px;
    background:rgba(28,28,30,.9)!important;-webkit-backdrop-filter:blur(20px) saturate(160%)!important;backdrop-filter:blur(20px) saturate(160%)!important;
    box-shadow:inset 0 0 0 .5px rgba(255,255,255,.14),0 8px 28px rgba(0,0,0,.45)!important;
    transition:right .42s cubic-bezier(.32,.72,0,1),height .42s cubic-bezier(.32,.72,0,1),padding .42s cubic-bezier(.32,.72,0,1)!important;overflow:hidden}
  .tabbar::before{display:none!important}
  .tabbar a{flex:1 1 0;min-width:0;margin:0!important;border-radius:999px;color:#FFFFFF!important;opacity:1!important;gap:3px!important;
    font-size:11px!important;font-weight:600!important;letter-spacing:-.01em!important;
    transition:flex-grow .42s cubic-bezier(.32,.72,0,1),opacity .2s,background .2s}
  .tabbar a.on{background:rgba(255,255,255,.12)!important;box-shadow:none!important}
  .tabbar svg{width:26px!important;height:26px!important}
  /* collapsed: one circle, bottom left, showing the current tab */
  .tabbar.tb-min{right:calc(100% - 68px)!important;height:56px!important;padding:4px!important;bottom:calc(10px + var(--safeB))!important;left:12px!important}
  .tabbar.tb-min a:not(.on){flex-grow:0;opacity:0;pointer-events:none}
  .tabbar.tb-min a.on{background:transparent!important}
  .tabbar.tb-min a span{opacity:0;max-height:0}
  .tabbar.tb-min svg{width:26px!important;height:26px!important}
}
@media (max-width:820px){.tabbar a{overflow:hidden;white-space:nowrap}}

/* ============ 2026-11 Today at Crawford Legacy Group (feed.js) ============ */
.cf-feed{max-width:var(--maxw);margin:var(--s8) auto 0;padding:0 var(--gut) calc(var(--tabH) + var(--s8));display:flex;flex-direction:column;gap:var(--s4)}
.cf-eyebrow{font-size:13px;font-weight:600;color:var(--text-2)}
.cf-h{font-family:var(--display);font-weight:500;font-size:30px;line-height:34px;margin:2px 0 var(--s3);background:linear-gradient(180deg,#FFFFFF 30%,#9A9AA0 115%);-webkit-background-clip:text;background-clip:text;color:transparent}
.cf-card{position:relative;overflow:hidden;border-radius:28px;background:var(--surface);box-shadow:var(--edge),var(--lift)}
.cf-card::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(90% 60% at 0% 0%,rgba(255,255,255,.07),rgba(255,255,255,0) 60%)}
.cf-media{position:relative;aspect-ratio:16/9;background:#111}
.cf-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.cf-media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 55%,rgba(21,21,23,.9) 100%)}
.cf-chip{position:absolute;left:14px;top:14px;z-index:1;padding:7px 12px;border-radius:999px;font-size:12px;font-weight:600;color:#fff;
  background:rgba(30,30,32,.55);-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),inset 0 0 0 .5px rgba(255,255,255,.14)}
.cf-in{position:relative;padding:20px 22px 22px;display:flex;flex-direction:column;gap:8px;min-width:0}
.cf-kicker{font-size:13px;font-weight:600;color:var(--text-2)}
.cf-title{font-family:var(--display);font-weight:500;font-size:26px;line-height:30px;margin:0;color:var(--text)}
.cf-title.sm{font-size:22px;line-height:26px}
.cf-body{font-size:15px;line-height:21px;color:var(--text-2);display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.cf-meta{font-size:13px;color:var(--text-3)}
.cf-acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.cf-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:999px;font-size:15px;font-weight:600;letter-spacing:-.01em;color:#fff;
  background:rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 0 0 .5px rgba(255,255,255,.1)}
.cf-btn.pri{background:#FFFFFF;color:#000;box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 1px 2px rgba(0,0,0,.4)}
.cf-row{display:flex;align-items:flex-start}
.cf-date{flex:none;width:64px;margin:20px 0 0 20px;padding:10px 0;border-radius:16px;text-align:center;background:rgba(255,255,255,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.14)}
.cf-date b{display:block;font-family:var(--display);font-weight:500;font-size:28px;line-height:30px}
.cf-date span{display:block;font-size:12px;font-weight:600;color:var(--text-2)}
.cf-row .cf-in{flex:1}

/* ===== Bridge: enroll-page style carried into the app (Nov 25) ===== */
:root{--bold:Inter,-apple-system,"Helvetica Neue",Arial,sans-serif}
/* Page headlines and the Today greeting: bold, all caps, tight, solid white */
.d1{font-family:var(--bold)!important;font-weight:700!important;text-transform:uppercase;letter-spacing:-.04em!important;font-size:38px!important;line-height:36px!important;background:none!important;-webkit-text-fill-color:#fff!important;color:#fff!important}
@media (min-width:768px){.d1{font-size:56px!important;line-height:52px!important}}
.page .phead h1:not(.d2){font-family:var(--bold);font-weight:700;text-transform:uppercase;letter-spacing:-.035em}
/* Labels read like the page's kickers */
.label,.eyebrow{font-family:var(--bold)!important;font-size:12px!important;line-height:16px!important;font-weight:700!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:#8E8E93!important}
/* Lesson and goal titles keep Cormorant, solid white for clarity */
.d2{background:none!important;-webkit-text-fill-color:#fff!important;color:#fff!important}
/* Primary buttons match the page: white, bold */
.btn:not(.secondary):not(.ghost){font-family:var(--bold);font-weight:700;letter-spacing:-.01em}
/* First-open welcome */
#cuWelcome{position:fixed;inset:0;z-index:9999;background:#000;display:flex;align-items:center;justify-content:center;padding:0 16px 6vh;transition:opacity 1.1s cubic-bezier(.4,0,.2,1)}
#cuWelcome p{margin:0;color:#fff;font-family:var(--bold);font-weight:700;text-transform:uppercase;letter-spacing:-.03em;font-size:clamp(26px,8vw,40px);line-height:.95;text-align:center;opacity:0;transition:opacity .5s ease}
#cuWelcome.on p{opacity:1}#cuWelcome.out{opacity:0;pointer-events:none}#cuWelcome.out p{opacity:0}
/* Screen headers (Goals, Pillars, Notebook): bold caps like the page; the small label above them as a kicker */
.phead .d2,.phead h1.d2{font-family:var(--bold)!important;font-weight:700!important;text-transform:uppercase;letter-spacing:-.04em!important;font-size:34px!important;line-height:33px!important}
.phead>.label,.phead>span:first-child,.phead>p:first-child{font-family:var(--bold);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8E8E93}

/* One-question lesson flow */
.cuf{margin-top:28px;scroll-margin-top:80px}
.cuf-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}
.cuf-step{font-family:var(--bold);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8E8E93}
.cuf-dots{display:flex;gap:6px}.cuf-dots i{width:22px;height:4px;border-radius:2px;background:rgba(255,255,255,.16);transition:background .3s}
.cuf-dots i.on{background:#fff}
.cuf-dots i:nth-child(1).on{background:#FA114F}.cuf-dots i:nth-child(2).on{background:#0A84FF}.cuf-dots i:nth-child(3).on{background:#30D158}
.cuf-hide{display:none!important}
.cuf-in{animation:flIn .4s cubic-bezier(.2,.8,.2,1)}
@keyframes flIn{from{opacity:0;transform:translate3d(14px,0,0)}to{opacity:1;transform:none}}
.cuf .pf-frame{font-size:14px;color:#8E8E93;margin:0 0 10px}
.cuf .pf-q{display:block;font-family:var(--display);font-size:28px;line-height:32px;color:#fff;margin-bottom:18px;text-wrap:balance}
.cuf .pf-box{background:none;border:0;padding:0}
.cuf .pf-in{width:100%;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:16px;font-size:17px;line-height:1.45;color:#fff;min-height:120px;resize:none}
.cuf .pf-in:focus{outline:none;border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.08)}
.cuf .pf-ex{font-size:13px;color:#8E8E93;margin-top:10px}
.cuf #st-do{border:0;padding:0;margin:0}
.cuf-nav{display:flex;justify-content:space-between;align-items:center;margin-top:24px}
.cuf-back{background:none;border:0;color:#8E8E93;font-size:15px;padding:12px 4px;visibility:hidden}
.cuf-next{min-width:140px}
.cuf-next:disabled{opacity:.35}
/* Lesson screen, stripped down: full-screen like a player, one thing at a time */
html.cu-lesson .tabbar,html.cu-lesson .top{display:none!important}
html.cu-lesson .sbar #strio{display:none}
html.cu-lesson #ldetail>.meta,html.cu-lesson #ldetail>.sum{display:none}
html.cu-lesson #ldetail .ltitle{margin-top:18px}
html.cu-lesson #st-watch .lsh{display:none}
html.cu-lesson #st-watch{border:0;padding:0;margin:10px 0 0}
html.cu-lesson #st-watch [data-act="complete"]{background:none!important;border:0!important;box-shadow:none!important;padding:6px 0!important;min-height:0!important;color:#8E8E93!important;font-size:14px!important;text-decoration:underline;text-underline-offset:3px}
html.cu-lesson .cuf .pf-frame,html.cu-lesson .cuf .pf-ex,html.cu-lesson .cuf .pf-meta,html.cu-lesson .cuf #st-do .lsh,html.cu-lesson .lnext{display:none!important}
html.cu-lesson .cuf .pf-in::placeholder{color:#636366}
html.cu-lesson .cuf-nav{position:sticky;bottom:0;padding:14px 0 calc(14px + env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(0,0,0,0),#000 30%)}
html.cu-lesson .cuf-next{min-width:0;flex:1;margin-left:16px}
html.cu-lesson .cuf .procl{font-size:15px;color:#8E8E93;margin-bottom:10px}
/* Lesson v3: video, title, one primary action. Questions live in a full-screen sheet. */
.cuf-cta{margin:22px 0 8px}
.cuf-cta .cuf-open{width:100%;min-height:54px;font-size:17px}
.cuf{position:fixed;inset:0;z-index:200;margin:0!important;background:#000;padding:calc(64px + env(safe-area-inset-top)) 22px 0;overflow-y:auto;-webkit-overflow-scrolling:touch;transform:translate3d(0,100%,0);transition:transform .45s cubic-bezier(.2,.85,.2,1);visibility:hidden}
.cuf.open{transform:none;visibility:visible}
html.cuf-lock,html.cuf-lock body{overflow:hidden}
.cuf-x{position:absolute;top:calc(14px + env(safe-area-inset-top));left:14px;width:40px;height:40px;border-radius:50%;border:0;background:rgba(255,255,255,.1);display:grid;place-items:center}
.cuf-x svg{width:18px;height:18px;stroke:#fff;stroke-width:2;fill:none;stroke-linecap:round}
.cuf .cuf-top{position:absolute;top:calc(26px + env(safe-area-inset-top));left:70px;right:22px;margin:0}
.cuf .cuf-stage{min-height:calc(100% - 120px)}
.cuf .pf-q{font-size:30px!important;line-height:34px!important}
.cuf .cuf-nav{position:sticky;bottom:0;margin:0 -22px;padding:14px 22px calc(16px + env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(0,0,0,0),#000 35%)}
.cuf .cuf-next{flex:1;margin-left:16px;min-height:52px}
.cuf .pf-frame,.cuf .pf-ex,.cuf .pf-meta,.cuf #st-do .lsh,.cuf .pf-msg:empty{display:none!important}
.cuf #st-do{border:0;padding:0;margin:0}
.cuf .procl{font-size:15px;color:#8E8E93;margin:0 0 12px}
.cuf [id^="do-btn"],.cuf .btn.secondary{width:100%;min-height:52px;margin-top:18px}
.cuf .cuf-nav{display:flex;align-items:center;gap:12px}
.cuf .cuf-back{visibility:visible!important;flex:none;padding:12px 8px;margin:0}
.cuf .cuf-next{margin-left:0!important}
.cuf [id^="do-btn"]{margin-bottom:8px}
.cuf .cuf-nav:has(.cuf-next[style*="none"]){justify-content:flex-start}
html.cu-lesson #st-watch [data-act="complete"]::before,html.cu-lesson #st-watch [data-act="complete"]::after{display:none!important}
.cuf .cuf-nav{justify-content:flex-start!important}.cuf .cuf-back{order:-1;margin-right:auto!important}
.cuf .cuf-nav{margin:0!important;padding-left:0!important;padding-right:0!important}.cuf [id^="do-btn"]{width:100%!important}

/* iOS lesson bar: clears the status bar / Dynamic Island on every iPhone, native-style back button. */
html.cu-lesson body.session main{padding-top:0}
html.cu-lesson body.session .sbar{position:sticky;top:0;z-index:40;margin:0 calc(-1 * var(--gut));padding:var(--safeT) calc(var(--gut) - 8px) 0 calc(var(--gut) - 10px);min-height:calc(48px + var(--safeT));box-sizing:border-box;background:rgba(0,0,0,.78);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-bottom:.5px solid rgba(255,255,255,.08)}
html.cu-lesson .sbar .sx{gap:2px;min-height:44px;min-width:44px;padding:0 12px 0 0;font-size:17px;font-weight:400;letter-spacing:-.02em;color:#fff;-webkit-tap-highlight-color:transparent}
html.cu-lesson .sbar .sx svg{width:22px;height:22px;stroke-width:2.2}
html.cu-lesson .sbar .sx:active{opacity:.5}
html.cu-lesson .sbar .label{font-size:13px;font-weight:600;letter-spacing:.04em;color:#8E8E93}
html.cu-lesson .stage{margin-top:0}

/* Native app: nothing outside a text field can be selected, long-pressed or zoomed. */
html.cu-native{-webkit-text-size-adjust:100%;text-size-adjust:100%;touch-action:pan-x pan-y}
html.cu-native *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
html.cu-native input,html.cu-native textarea,html.cu-native [contenteditable]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
html.cu-native img,html.cu-native svg{-webkit-user-drag:none;pointer-events:auto}
.player video.cu-vid{position:absolute;inset:0;width:100%;height:100%;background:#000;object-fit:contain}
.cuf #st-do .btn,.cuf #st-do .lnext .btn{width:100%;max-width:none}
