/* Study Session prototype. Every value below comes from the team's Figma (Notability – Students › Final Hi-fi › Combined).
   Canvas = iPad Pro 12.9" landscape, 1366 x 1024. Fonts: Proxima Soft (UI), Moranga (display), both installed locally. */
:root{
  --accent:#4278ff; --accent-container:#ecf2ff; --accent-press:#b3c9ff;
  --fg1:#171a20; --fg2:#444f60; --fg4:#aab5c6;
  --bg1:#ffffff; --bg2:#f6f6f8; --bg3:#e8ebf0; --bg4:#c8cfdb;
  --secondary-container:#fff6ea; --card-line:#898989; --placeholder:#898989;
  --berry:#ff7998; --mango:#ffa629;
  --shadow2:0 3px 10px rgba(23,26,32,.14);
  --ui:"Proxima Soft","Proxima Nova",-apple-system,"Helvetica Neue",sans-serif;
  --display:"Moranga","Recoleta",Georgia,serif;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#dfe4ec;font-family:var(--ui);color:var(--fg1);-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;padding:0}
input,textarea{font:inherit;color:inherit;border:0;outline:0;background:none;resize:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
p{margin:0}

.room{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px}
.ipad{width:1390px;height:1048px;padding:12px;border-radius:46px;background:#22262e;box-shadow:inset 0 0 0 1.5px #3d434f,0 40px 80px -30px rgba(20,30,60,.45);flex:none}
.screen{position:relative;width:1366px;height:1024px;border-radius:34px;overflow:hidden;background:var(--bg1)}
.hint{font:12px -apple-system,sans-serif;color:#737a88;margin:0}
kbd{font:600 11px -apple-system,sans-serif;padding:1px 6px;border-radius:5px;background:#fff;box-shadow:0 1px 0 #c9cfdb}

/* status bar + toolbar (exported from Figma at 2x; each export carries 10px of shadow padding) */
.sb-left{position:absolute;left:16px;top:7.5px;width:88.872px;height:8.865px;z-index:20}
.sb-right{position:absolute;right:14.5px;top:0;width:102px;height:24px;z-index:20}
.sb-mid{position:absolute;left:322px;top:9px;width:21px;height:5px;z-index:20}
.tb{position:absolute;z-index:10;filter:drop-shadow(0 3px 5px rgba(23,26,32,.14))}
.tb img{display:block;width:100%;height:100%;clip-path:inset(10px round 8px)}
.tb-back{left:6px;top:20px;width:64px;height:64px}
.tb-tools{left:459px;top:22px;width:448px;height:64px}
.tb-timer{left:1025px;top:22px;width:107px;height:64px}
.tb-page{left:1124px;top:24px;width:236px;height:64px}
.hit{position:absolute;z-index:11;border-radius:8px}
.hit:hover{background:rgba(66,120,255,.06)}
.hit-timer{left:1035px;top:32px;width:87px;height:44px}
.hit-learn{left:1252px;top:34px;width:44px;height:44px}
.tip{position:absolute;z-index:12;background:var(--fg1);color:#fff;font:700 12px/1 var(--ui);padding:8px 10px;border-radius:8px;white-space:nowrap}
.tip::before{content:"";position:absolute;top:-5px;right:16px;width:10px;height:10px;background:var(--fg1);transform:rotate(45deg)}

/* note (Subhead 15/15, foreground2) */
.note{position:absolute;left:92px;top:157px;width:662px;font:400 15px/15px var(--ui);color:var(--fg2)}
.note b{font-weight:700}
.note ul{margin:0;padding-left:22px;list-style:disc}
.note a{color:inherit;text-decoration:underline}

/* ===== 384px Study Session panel ===== */
.ss{position:absolute;top:0;right:0;width:384px;height:1022px;background:var(--bg1);border-left:1px solid var(--bg4);overflow:hidden;z-index:5}
.ss.tint{background:var(--accent-container)}
.handle{position:absolute;left:9px;top:calc(50% - 2.5px);transform:translateY(-50%);width:4px;height:73px;border-radius:60px;background:var(--bg4);z-index:3}
.band{position:absolute;width:2150px;height:2150px;border-radius:50%;background:var(--accent-container);left:calc(50% - 1075px - 32.5px)}
.band.hi{bottom:375.56px;left:calc(50% - 1075px - 53.71px)}
.band.lo{bottom:191.53px}
.ss-head{position:absolute;left:-1px;right:0;top:0;height:152px;background:var(--bg1);padding:108px 16px 16px;display:flex;gap:70px;align-items:flex-start;z-index:2}
.ss-back{width:44px;height:44px;padding:10px;border-radius:8px;display:grid;place-items:center;margin-top:-10px}
.ss-back img{width:14.848px;height:11.25px}
.ss-title{font:700 22px/normal var(--ui);color:#000;white-space:nowrap}
.ss-foot{position:absolute;left:-1px;bottom:0;width:385px;height:76px;background:#fff;border-top:1px solid var(--bg4);display:flex;align-items:center;justify-content:flex-end;z-index:2}
.ss-next{display:flex;align-items:center;gap:8px;padding:10px 20px;border-radius:8px;font:700 17px/17px var(--ui);color:var(--accent)}
.ss-next img{width:24px;height:24px}
.ss-next[disabled]{opacity:.35;cursor:default}
.dots{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);display:flex;justify-content:center;gap:8px}
.dots i{width:8px;height:8px;border-radius:50px;background:var(--bg3)}
.dots i.on{background:var(--accent)}

/* buttons (Button.swift) */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;font:700 17px/17px var(--ui);white-space:nowrap}
.btn-lg{padding:16px 24px;background:var(--accent);color:#fff}
.btn-md{padding:10px 20px;background:var(--accent);color:#fff;height:44px}
.btn-line{padding:16px 24px;border:1px solid var(--accent);color:var(--accent);width:100%}
.btn-lg:active,.btn-md:active{background:#2f63e6}
.btn-line:active{background:var(--accent-container)}

/* centered stacks */
.stack{position:absolute;display:flex;flex-direction:column;align-items:center}
.disp{font:700 34px/41px var(--display);color:var(--fg1);text-align:center;width:100%}
.h32{font:700 32px/41px var(--ui);color:var(--fg1);text-align:center;width:100%}
.h26{font:700 26px/30px var(--ui);color:var(--fg1);text-align:center;width:100%}
.h22{font:700 22px/26px var(--ui);color:var(--fg1);text-align:center}

/* AI suggestion row + toggle */
.ai-label{display:flex;align-items:center;gap:8px;font:700 15px/20px var(--ui);color:var(--fg2)}
.ai-label img{width:22px;height:20px}
.toggle{position:relative;width:72px;height:35.2px;border-radius:6.4px;background:var(--bg3);display:flex;gap:9.6px;justify-content:center;padding-top:3.6px;flex:none}
.toggle button{width:28px;height:28px;border-radius:4px;display:grid;place-items:center}
.toggle button.on{background:#fff}
.toggle img{width:19.2px;height:19.2px}

/* cards (0.5px #898989, 8px radius) */
.gcard{position:relative;display:flex;align-items:flex-start;gap:18px;padding:12px 11px;border:.5px solid var(--card-line);border-radius:8px;background:#fff;width:100%;max-width:345px}
.gcard .cb{width:20px;height:20px;flex:none;margin-top:1.73px;border-radius:5px;display:grid;place-items:center}
.gcard .cb img{width:20px;height:20px}
.gcard .cb.on{background:var(--accent)}
.gcard .cb.on img{display:none}
.gcard .cb.on::after{content:"";width:10px;height:5px;border:2.4px solid #fff;border-top:0;border-right:0;transform:rotate(-45deg) translate(1px,-1px)}
.gcard .tx{flex:1;font:400 20px/25px var(--ui);color:#000;outline:none}
.gcard .tx[contenteditable="true"]{background:var(--bg2);border-radius:4px}
.gcard.done .tx{color:var(--fg4);text-decoration:line-through}
.gcard .more{align-self:center;width:20px;font:700 22px/1 var(--ui);color:#000;letter-spacing:-1px}
.menu{position:absolute;right:6px;top:calc(100% - 10px);z-index:6;width:190px;padding:6px;border-radius:8px;background:#fff;box-shadow:0 0 0 .5px var(--card-line),var(--shadow2)}
.menu button{display:block;width:100%;text-align:left;padding:10px;border-radius:6px;font:700 15px/15px var(--ui);color:var(--fg1)}
.menu button:hover{background:var(--bg2)}
.menu .del{color:#e5484d}
.skel{display:flex;flex-direction:column;gap:12px;width:100%}
.skel i{display:block;height:8px;border-radius:8px;background:linear-gradient(90deg,var(--bg3),#f3f5f8,var(--bg3));background-size:200% 100%;animation:sk 1.1s linear infinite}
@keyframes sk{to{background-position:-200% 0}}
.chipbtn{display:flex;align-items:center;width:100%;padding:16px 24px;border-radius:8px;background:var(--accent);color:#fff;font:700 17px/24px var(--ui);text-align:left}
.chipbtn.off{background:var(--fg2)}
.plusrow{display:flex;align-items:center;justify-content:center;gap:15px;width:324px}
.plusrow .pl{width:43.48px;height:43.48px;border-radius:29.6px;background:#fff;display:grid;place-items:center;font:700 21.3px/1 var(--ui);color:var(--fg2)}
.plusrow span{font:700 16px/24px var(--ui);color:var(--fg1)}

/* outline */
.otag{display:inline-flex;align-items:center;padding:4px 10px;border-radius:4px;border:1px solid var(--accent);background:var(--accent-container);font:700 12px/12px var(--ui);color:var(--accent);letter-spacing:.02em}
.ch{display:flex;align-items:center;gap:20px;padding:12px 13px;border:.5px solid var(--card-line);border-radius:8px;background:#fff;width:340px;flex:none}
.ch .t{font:600 20px/22px var(--ui);color:#000}
.ch .d{font:400 15px/15px var(--ui);color:var(--fg2);margin-top:4px}
.ch .tw{width:250px;display:flex;flex-direction:column;gap:4px}
.ch .add{width:43.48px;height:43.48px;border-radius:29.6px;background:var(--bg3);display:grid;place-items:center;font:700 21.3px/1 var(--ui);color:var(--accent);flex:none}
.ch .add img{width:24px;height:24px}
.ch.on .add{background:var(--accent)}
.ch .add:hover{background:var(--accent-press)}

/* goal setting (manual) */
.goalin{width:100%;background:#fff;border-radius:7px;padding:7px 20px;font:700 20px/41px var(--ui);color:#000}
.goalin::placeholder{color:var(--placeholder)}
.pills{display:flex;gap:12px}
.pill{padding:15px 20px;border-radius:8px;background:#fff;font:700 15px/20px var(--ui);color:#000}
.pill.on{background:var(--accent);color:#fff}
.opt{height:66px;width:100%;border-radius:8px;background:#fff;font:400 17px/17px var(--ui);color:#1a1a1a;text-align:center}
.opt.on{background:var(--accent);color:#fff;font-weight:700}

/* circles (You've set / will last) */
.circ{width:250px;height:250px;border-radius:50%;background:var(--accent-container);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}
.circ b{font:700 80px/1 var(--ui);color:var(--fg1)}

/* ruler */
.big-time{font:700 100px/1 var(--ui);color:var(--fg1);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.ruler{position:relative;width:385px;height:59px;overflow:hidden;cursor:ew-resize;touch-action:none;user-select:none}
.ruler .track{position:absolute;top:0;left:0;display:flex;align-items:center;gap:5px;height:59px;will-change:transform}
.ruler i{display:block;width:7px;height:41.5px;border-radius:30px;background:var(--card-line);flex:none}
.ruler i.M{width:10px;height:58.7px}
.ruler .mid{position:absolute;left:calc(50% - 5px);top:0;width:10px;height:58.7px;border-radius:30px;background:#000;pointer-events:none}

/* ===== 520px Learn panel ===== */
.lp{position:absolute;top:0;left:846px;width:520px;height:1024px;background:var(--bg2);border-left:2px solid var(--fg4);z-index:5;overflow:hidden}
.lp .handle{left:8px;top:calc(50% + .5px)}
.lp-col{position:absolute;left:31px;top:101px;width:456px;display:flex;flex-direction:column;gap:24px}
.card{background:#fff;border-radius:8px;padding:24px;display:flex;flex-direction:column;gap:16px;width:456px}
.card.tight{gap:8px}
.welcome{display:flex;justify-content:space-between;align-items:center;font:700 22px/24px var(--ui);color:#000}
.welcome img{width:24px;height:24px}
.row-cta{display:flex;align-items:center;gap:12px;padding:12px;border-radius:8px;background:var(--secondary-container);font:400 15px/15px var(--ui);color:#000;width:100%;text-align:left}
.row-cta img{width:24px;height:24px}
.row-cta b{font-weight:700}
.row-cta:hover{filter:brightness(.98)}
.qcard{background:#fff;border-radius:8px;width:456px}
.qhead{padding:16px;border-bottom:1px solid var(--bg3)}
.qbody{padding:16px 24px;display:flex;flex-direction:column;gap:16px}
.seeall{align-self:flex-end;padding:0 8px;font:700 15px/24px var(--ui);color:var(--accent);text-decoration:underline}
.sum h4{margin:0;font:700 22px/17px var(--ui);color:var(--fg1)}
.sum ul{margin:17px 0 15px;padding-left:22px;font:400 15px/15px var(--ui);color:var(--fg1)}
.grid{display:grid;grid-template-columns:211px 211px;gap:10px;justify-content:center}
.so{height:79px;border-radius:14px;background:var(--accent-container);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;font:700 17px/17px var(--ui);color:var(--fg2)}
.so img{width:27px;height:27px}
.so:hover{background:#e0e9ff}
.chatbtn{position:absolute;left:20px;top:946px;width:49px;height:48px;border-radius:23px;border:1px solid var(--fg2);background:#fff;box-shadow:1px 2px 2px rgba(179,201,255,.55);display:grid;place-items:center}
.chatbtn img{width:24px;height:24px}
.sess{align-items:center;position:relative}
.sess .top{display:flex;justify-content:space-between;align-items:flex-start;width:100%}
.sess .lbl{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.sess .ttl{font:700 22px/normal var(--ui);color:#000;padding:10px 0}
.ring{position:relative;width:235.457px;height:235.457px;border-radius:50%;display:grid;place-items:center}
.ring::after{content:"";position:absolute;inset:9px;border-radius:50%;background:#fff}
.ring b{position:relative;z-index:1;font:700 60px/1 var(--ui);color:var(--fg1);font-variant-numeric:tabular-nums}
.sess .body{height:338px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;width:100%}
.pager{display:flex;gap:8px;padding:8px 12px;border-radius:50px}
.pager button{width:8px;height:8px;border-radius:50px;background:var(--bg3)}
.pager button.on{background:var(--accent)}
.goal-row{display:flex;flex-direction:column;gap:14px;padding:12px;border-radius:8px;background:var(--accent-container);width:408px;text-align:left}
.goal-row .r{display:flex;align-items:center;gap:12px;font:400 15px/15px var(--ui);color:#000}
.goal-row .cbx{width:20px;height:20px;border-radius:5px;flex:none;display:grid;place-items:center}
.goal-row .cbx img{width:20px;height:20px}
.goal-row .cbx.on{background:var(--accent)}
.goal-row .cbx.on img{display:none}
.goal-row .cbx.on::after{content:"";width:9px;height:4.5px;border:2.2px solid #fff;border-top:0;border-right:0;transform:rotate(-45deg) translate(1px,-1px)}
.goal-row.done .r span{color:var(--fg4);text-decoration:line-through}
.goal-row .gnote{display:flex;align-items:center;gap:8px;font:400 12px/17px var(--ui);color:var(--fg2)}
.goal-row .gnote img{width:22px;height:20px}
.plain{font:400 17px/24px var(--ui);color:var(--fg1);width:100%;padding:0 4px}
.congrats{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.congrats .disp{font-size:22px;line-height:26px}
.congrats img{width:140px}
.congrats p{font:400 15px/19px var(--ui);color:var(--fg1)}

/* overlays */
.scrim{position:absolute;inset:0;background:rgba(23,26,32,.18);z-index:30}
.confirm{position:absolute;z-index:31;width:274px;padding:20px;border-radius:10px;background:#fff;box-shadow:var(--shadow2);display:flex;flex-direction:column;align-items:center;gap:16px}
.confirm h5{margin:0;font:700 20px/24px var(--ui);color:var(--fg1)}
.confirm .row{display:flex;gap:24px}
.confirm .btn{height:40px;padding:0 20px;font-size:15px}
.btn-dark{background:var(--fg2);color:#fff}
.modal{position:absolute;left:325.44px;top:191.53px;width:716px;height:640px;border-radius:8px;background:#fff;overflow:hidden;z-index:31;box-shadow:var(--shadow2)}
.modal .mband{position:absolute;width:2509.54px;height:2057px;border-radius:50%;background:var(--accent-container);left:calc(50% - 1px - 1254.77px);bottom:359px}
.modal .conf{position:absolute;top:0;width:500.08px;height:207.46px}
.modal .conf.r{right:8.92px}
.modal .conf.l{right:447.92px;transform:scaleX(-1)}
.modal .hero{position:absolute;left:calc(50% - .5px - 150px);top:133px;width:300px;display:flex;flex-direction:column;align-items:center;gap:25.8px}
.modal .hero img{width:300px;height:187.3px}
.modal .hero .t{font:700 29.2px/35.2px var(--display);color:var(--fg1);text-align:center}
.modal .hero .s{font:400 17.2px/25.8px var(--ui);color:var(--fg1);text-align:center}
.badges{position:absolute;left:50%;transform:translateX(-50%);top:457px;display:flex;gap:30px}
.badge{width:155px;border-radius:8px;padding:7px 6px;display:flex;flex-direction:column;gap:4px}
.badge .k{height:24px;display:grid;place-items:center;font:700 14px/normal var(--ui);color:#fff}
.badge .v{background:#fff;border-radius:8px;padding:24px 0;display:flex;align-items:center;justify-content:center;gap:8px;font:700 17px/17px var(--ui);color:var(--fg1)}
.badge .v img{width:24px;height:24px}
.modal .close{position:absolute;right:14px;top:14px;width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.8);font:700 18px/1 var(--ui);color:var(--fg2);z-index:2}

/* notification banner (improvement) */
.banner{position:absolute;left:50%;top:-90px;transform:translateX(-50%);width:380px;padding:12px 14px;border-radius:18px;background:rgba(250,250,252,.94);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:0 12px 30px -10px rgba(0,0,0,.3);display:flex;gap:10px;align-items:center;z-index:40;transition:top .3s ease-out;font:13px -apple-system,sans-serif}
.banner.on{top:30px}
.banner .app{width:34px;height:34px;border-radius:9px;background:#34c759;display:grid;place-items:center;color:#fff;font-size:17px;flex:none}
.banner b{display:block}

/* jumper */
.jumper{position:fixed;inset:0;background:rgba(15,20,35,.35);display:grid;place-items:center;z-index:100}
.jumper[hidden]{display:none}
.jumper .box{background:#fff;border-radius:16px;padding:16px;width:380px;max-height:90vh;overflow:auto;box-shadow:0 30px 60px -20px rgba(0,0,0,.4);font-family:-apple-system,sans-serif}
.jumper h3{margin:6px 8px 8px;font-size:11px;color:#8a8f9c;letter-spacing:.06em;text-transform:uppercase}
.jumper button{display:flex;gap:10px;width:100%;text-align:left;padding:8px 10px;border-radius:8px;font-size:14px;font-weight:600}
.jumper button:hover{background:#f2f5fb}
.jumper button span{color:#9aa0ad;width:20px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.wh{filter:brightness(0) invert(1);width:22px;height:20px}

/* =====================================================================
   Motion (matches Cheyenne's flow videos: Figma smart-animate style dissolves, lift, pop)
   Only plays on screen/overlay change, never on every re-render.
   ===================================================================== */
@keyframes fadeUp{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}
@keyframes fadeIn{from{opacity:0}}
@keyframes pop{0%{opacity:0;scale:.6}100%{opacity:1;scale:1}}
@keyframes bandUp{from{translate:0 140px}to{translate:0 0}}
@keyframes modalIn{from{opacity:0;translate:0 18px;scale:.97}to{opacity:1;translate:0 0;scale:1}}
@keyframes slideIn{from{opacity:0;translate:36px 0}to{opacity:1;translate:0 0}}
@keyframes fillIn{from{scale:0 1}to{scale:1 1}}
@keyframes shake{20%,60%{translate:-5px 0}40%,80%{translate:5px 0}}
@keyframes confetti{from{opacity:0;translate:0 -46px}to{opacity:1;translate:0 0}}
@keyframes spin{to{rotate:360deg}}
@keyframes tickIn{from{opacity:0;scale:.4}to{opacity:1;scale:1}}
.ease{animation-timing-function:cubic-bezier(.2,.8,.2,1)}
.enter .band,.enter .done-band{animation:bandUp .7s cubic-bezier(.2,.8,.2,1) both}
.enter .stack>*{animation:fadeUp .45s cubic-bezier(.2,.8,.2,1) both}
.enter .stack>*:nth-child(2){animation-delay:.06s}.enter .stack>*:nth-child(3){animation-delay:.12s}.enter .stack>*:nth-child(4){animation-delay:.18s}.enter .stack>*:nth-child(5){animation-delay:.24s}
.enter img[src$="mascot-think.svg"],.enter img[src$="mascot-cheer.svg"],.enter .circ{animation:pop .65s cubic-bezier(.34,1.56,.64,1) .12s both}
.enter .chapters>.ch,.enter .cards>*{animation:fadeUp .4s cubic-bezier(.2,.8,.2,1) both}
.enter .chapters>.ch:nth-child(2),.enter .cards>*:nth-child(2){animation-delay:.04s}.enter .chapters>.ch:nth-child(3),.enter .cards>*:nth-child(3){animation-delay:.08s}.enter .chapters>.ch:nth-child(4),.enter .cards>*:nth-child(4){animation-delay:.12s}.enter .chapters>.ch:nth-child(5){animation-delay:.16s}.enter .chapters>.ch:nth-child(6){animation-delay:.2s}.enter .chapters>.ch:nth-child(7){animation-delay:.24s}
.ss.side,.lp.side{animation:slideIn .42s cubic-bezier(.2,.8,.2,1) both}
.lp.enter .lp-col>*{animation:fadeUp .45s cubic-bezier(.2,.8,.2,1) both}
.lp.enter .lp-col>*:nth-child(2){animation-delay:.07s}.lp.enter .lp-col>*:nth-child(3){animation-delay:.14s}
.scrim.in{animation:fadeIn .25s ease-out both}
.in.obm,.in.prof,.in.modal,.in.confirm{animation:modalIn .38s cubic-bezier(.2,.8,.2,1) both}
.modal.in .conf{animation:confetti 1.1s cubic-bezier(.2,.8,.2,1) .15s both}
.modal.in .hero{animation:fadeUp .5s cubic-bezier(.2,.8,.2,1) .1s both}
.modal.in .badge{animation:fadeUp .45s cubic-bezier(.2,.8,.2,1) both}
.modal.in .badge:nth-child(1){animation-delay:.3s}.modal.in .badge:nth-child(2){animation-delay:.38s}.modal.in .badge:nth-child(3){animation-delay:.46s}
.pop{animation:tickIn .32s cubic-bezier(.34,1.56,.64,1) both}
.flash .gnote{animation:fadeUp .35s ease-out both}

/* =====================================================================
   Onboarding survey (Figma: Profile Personalization › Onboarding survey) — improved
   ===================================================================== */
.tp{position:absolute;top:0;left:1026px;width:340px;height:1024px;background:#fff;border-left:1px solid var(--fg4);z-index:5}
.tp .h{position:absolute;left:16px;top:104px;display:flex;align-items:center;gap:14px;font:700 22px var(--ui);color:#000}
.tp .h svg{width:20px;height:20px;color:var(--fg2)}
.tp .sk{position:absolute;left:25px;top:172px;width:265px;display:flex;flex-direction:column;gap:14px}
.tp .sk i{display:block;height:10px;border-radius:8px;background:var(--bg3)}
.obm{position:absolute;left:331px;top:195px;width:745px;height:673px;background:#fff;border-radius:24px;z-index:31;overflow:hidden;box-shadow:0 24px 60px -24px rgba(23,26,32,.35)}
.obm .pad{position:absolute;inset:0;padding:44px 28px 36px;display:flex;flex-direction:column}
.obm .pad.step-in>*{animation:fadeUp .4s cubic-bezier(.2,.8,.2,1) both}
.obm .pad.step-in>*:nth-child(3){animation-delay:.04s}.obm .pad.step-in>*:nth-child(4){animation-delay:.08s}.obm .pad.step-in>*:nth-child(5){animation-delay:.12s}
.prog{display:flex;gap:8px}
.prog i{flex:1;height:12px;border-radius:8px;background:var(--accent-container);position:relative;overflow:hidden}
.prog i b{position:absolute;inset:0;border-radius:8px;background:var(--accent);transform-origin:left}
.prog i.new b{animation:fillIn .55s cubic-bezier(.2,.8,.2,1) both}
.stepn{margin-top:12px;font:700 17px var(--ui);color:var(--fg2)}
.qt{margin:22px 70px 16px;text-align:center;font:700 30px/44px var(--display);color:#000}
.hintrow{display:flex;justify-content:space-between;align-items:center;margin:0 23px}
.hintpill{padding:6px 22px;border-radius:20px;background:var(--accent-container);font:700 17px/22px var(--ui);color:var(--accent)}
.hintpill.shake{animation:shake .38s}
.hintrow .cnt{font:600 15px var(--ui);color:var(--fg2)}
.grp{margin:16px 23px 0;border-radius:16px;background:var(--accent-container);padding:30px 40px;display:flex;flex-wrap:wrap;gap:13px;justify-content:center;align-content:center}
.ochip{position:relative;padding:12px 21px;border-radius:6px;background:#fff;font:600 17px var(--ui);color:#5b6576;transition:background .18s,color .18s}
.ochip:hover{box-shadow:0 0 0 1.5px var(--accent-press)}
.ochip.on{background:var(--accent);color:#fff}
.ochip.other{background:#dfe3ea}
.ochip.other.on{background:var(--accent)}
.ck{position:absolute;top:-8px;right:-8px;width:20px;height:20px;border-radius:50%;background:var(--mango);box-shadow:0 0 0 2px #fff;display:grid;place-items:center}
.ck::after{content:"";width:8px;height:4px;border:2.2px solid #fff;border-top:0;border-right:0;rotate:-45deg;translate:0 -1px}
.othin{width:100%;margin:12px 0 0;display:flex;gap:8px;justify-content:center}
.othin input{width:320px;height:44px;border-radius:6px;background:#fff;padding:0 14px;font:600 16px var(--ui);color:var(--fg1);box-shadow:0 0 0 1.5px var(--accent)}
.tiles{margin:16px 23px 0;border-radius:16px;background:var(--accent-container);padding:22px;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.tile{position:relative;height:78px;border-radius:8px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font:600 13.5px/15px var(--ui);color:#3a4250;text-align:center;padding:0 6px;transition:background .18s,color .18s}
.tile svg{width:21px;height:21px}
.tile:hover{box-shadow:0 0 0 1.5px var(--accent-press)}
.tile.on{background:var(--accent);color:#fff}
.priv{display:flex;align-items:center;gap:8px;margin:12px 25px 0;font:500 13.5px var(--ui);color:var(--fg2)}
.priv svg{width:15px;height:15px}
.ucards{margin:16px 0 0;align-self:center;border-radius:16px;background:var(--accent-container);padding:18px 30px;display:flex;gap:18px}
.ucard{position:relative;width:182px;height:282px;border-radius:12px;background:#fbfcff;box-shadow:0 3px 6px rgba(23,26,32,.16);display:flex;flex-direction:column;align-items:center;padding:74px 14px 0;gap:22px;text-align:center;transition:background .18s,color .18s}
.ucard svg{width:60px;height:60px;color:var(--accent)}
.ucard b{font:700 19px/21px var(--ui);color:#000}
.ucard small{font:500 13.5px/17px var(--ui);color:var(--fg2)}
.ucard.on{background:var(--accent)}
.ucard.on svg,.ucard.on b,.ucard.on small{color:#fff}
.ucard:hover{translate:0 -2px}
.obf{position:absolute;right:28px;bottom:34px;left:28px;display:flex;justify-content:flex-end;align-items:center;gap:14px}
.obf .lk{margin-right:auto;font:700 15px var(--ui);color:var(--fg2)}
.btn-out{height:44px;padding:0 19px;border:1px solid var(--fg1);border-radius:6px;font:700 17px var(--ui);color:var(--fg2);background:#fff}
.obf .btn-md{height:44px;border-radius:6px}
.obf .btn-md[disabled]{opacity:.35;cursor:default}
/* intro + done */
.ob-band{position:absolute;width:1700px;height:1700px;border-radius:50%;background:var(--accent-container);left:calc(50% - 850px);bottom:270px}
.enter .ob-band,.obm.in .ob-band{animation:bandUp .7s cubic-bezier(.2,.8,.2,1) both}
.ob-center{position:absolute;left:0;right:0;top:78px;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.ob-center .disp{font-size:34px}
.ob-center p{font:400 20px/26px var(--ui);color:var(--fg1);max-width:430px}
.ob-center img{width:220px;margin-top:6px}
.ob-center>*{animation:fadeUp .45s cubic-bezier(.2,.8,.2,1) both}
.ob-center>*:nth-child(2){animation-delay:.06s}.ob-center>*:nth-child(3){animation-delay:.14s}.ob-center>*:nth-child(4){animation-delay:.2s}
.ob-center img{animation:pop .65s cubic-bezier(.34,1.56,.64,1) .15s both}
.ob-meta{font:500 14px var(--ui)!important;color:var(--fg2)!important}
.ob-conf{position:absolute;top:0;width:430px;height:178px;animation:confetti 1.1s cubic-bezier(.2,.8,.2,1) .1s both}
.ob-conf.r{right:0}.ob-conf.l{left:0;scale:-1 1}
.adapts{display:flex;flex-direction:column;gap:8px;width:470px;text-align:left;margin-top:4px}
.adapts div{display:flex;gap:10px;align-items:center;padding:10px 14px;border-radius:8px;background:#fff;box-shadow:0 0 0 1px var(--bg3);font:600 15px/19px var(--ui);color:var(--fg1)}
.adapts div svg{width:18px;height:18px;color:var(--accent);flex:none}
.adapts div{animation:fadeUp .4s cubic-bezier(.2,.8,.2,1) both}
.adapts div:nth-child(2){animation-delay:.08s}.adapts div:nth-child(3){animation-delay:.16s}.adapts div:nth-child(4){animation-delay:.24s}
/* loading */
.load{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px}
.spin{width:66px;height:66px;border-radius:50%;border:6px solid var(--accent-container);border-top-color:var(--accent);animation:spin .9s linear infinite}
.load h4{margin:0;font:700 22px/26px var(--ui);color:var(--fg1)}
.lsteps{display:flex;flex-direction:column;gap:10px;width:280px}
.lsteps div{display:flex;align-items:center;gap:10px;font:600 15px var(--ui);color:var(--fg4);transition:color .3s}
.lsteps div.ok{color:var(--fg1)}
.lsteps i{width:18px;height:18px;border-radius:50%;border:2px solid var(--bg4);flex:none;display:grid;place-items:center}
.lsteps .ok i{background:var(--accent);border-color:var(--accent);animation:tickIn .3s cubic-bezier(.34,1.56,.64,1)}
.lsteps .ok i::after{content:"";width:7px;height:3.5px;border:2px solid #fff;border-top:0;border-right:0;rotate:-45deg;translate:0 -1px}

/* =====================================================================
   Learn Profile (Figma: Profile Personalization › Learn profile) — improved
   ===================================================================== */
.prof{position:absolute;left:282px;top:105px;width:822px;height:812px;background:#fff;border-radius:16px;z-index:31;overflow:hidden;box-shadow:0 24px 60px -24px rgba(23,26,32,.35)}
.prof .body{position:absolute;inset:0;overflow:auto;padding:40px 48px 44px}
.prof .x{position:absolute;right:18px;top:18px;width:36px;height:36px;border-radius:50%;background:var(--bg2);display:grid;place-items:center;z-index:2;color:var(--fg2)}
.prof .x svg{width:16px;height:16px}
.ph{display:flex;gap:34px;align-items:center}
.avatar{position:relative;width:120px;height:120px;border-radius:50%;background:#b3c9ff;display:grid;place-items:center;flex:none}
.avatar>svg{width:62px;height:62px;color:#fff}
.avatar .ed{position:absolute;right:-4px;bottom:0;width:40px;height:40px;border-radius:50%;background:var(--accent);border:3px solid #fff;display:grid;place-items:center;color:#fff}
.avatar .ed svg{width:16px;height:16px}
.ph h2{margin:0;font:700 36px/1.1 var(--ui);color:#000}
.ph .since{margin-top:10px;font:italic 400 22px var(--ui);color:#737b86}
.pchips{display:flex;gap:8px;margin-top:24px;flex-wrap:wrap;align-items:center}
.pchip{display:flex;align-items:center;gap:6px;padding:6px 14px;border-radius:20px;font:700 19px var(--ui);border:1.5px solid}
.pchip svg{width:18px;height:18px}
.pchip.v{background:#dfe0ff;border-color:#8e90f5;color:#3c3fa8}
.pchip.l{background:#f8ddfc;border-color:#e3a3f0;color:#8a2d9b}
.pchip.g{background:#d6effd;border-color:#4aa7ec;color:#155f9c}
.pchip.s{background:#fff3e2;border-color:#ffc670;color:#a15c00}
.hist{width:40px;height:40px;border-radius:50%;border:1.5px solid #b8c4d8;background:#f0f4fb;display:grid;place-items:center;color:var(--fg2)}
.hist svg{width:18px;height:18px}
.prof h3{margin:28px 0 12px;font:700 24px var(--ui);color:#000;display:flex;align-items:center;justify-content:space-between}
.prof h3 small{font:600 14px var(--ui);color:var(--fg2)}
.aio{border:1.5px solid var(--accent);background:var(--accent-container);border-radius:8px;padding:16px 18px 10px;font:400 18px/23px var(--ui);color:var(--fg1)}
.aio .meta{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font:italic 400 11.5px var(--ui);color:var(--fg2)}
.fb{display:flex;gap:6px;font-style:normal}
.fb button{padding:5px 10px;border-radius:6px;background:#fff;font:700 13px var(--ui);color:var(--fg2);box-shadow:0 0 0 1px var(--bg4)}
.fb button.on{background:var(--accent);color:#fff;box-shadow:none}
.adapt{display:flex;flex-wrap:wrap;gap:8px}
.adapt span{display:flex;align-items:center;gap:6px;padding:7px 11px;border-radius:6px;background:#fff;box-shadow:0 0 0 1px var(--bg4);font:600 14.5px var(--ui);color:var(--fg2)}
.adapt span svg{width:14px;height:14px;color:var(--accent)}
.privrow{display:flex;justify-content:space-between;align-items:center;margin-top:14px;padding:12px 14px;border-radius:8px;background:var(--bg2);font:600 15px var(--ui);color:var(--fg1)}
.privrow small{display:block;font:400 13px var(--ui);color:var(--fg2);margin-top:2px}
.sw{width:44px;height:26px;border-radius:99px;background:var(--bg4);position:relative;flex:none;transition:background .2s}
.sw::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:translate .2s}
.sw.on{background:var(--accent)}.sw.on::after{translate:18px 0}
.pstats{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.pstat{display:flex;gap:16px;align-items:center;padding:14px 18px;border:1px solid var(--bg4);border-radius:8px}
.pstat svg{width:42px;height:42px;flex:none}
.pstat b{display:block;font:700 30px/1 var(--ui);color:var(--fg1)}
.pstat span{font:400 18px/22px var(--ui);color:#7a8494}
.evi{display:flex;flex-direction:column;gap:12px}
.ev{display:grid;grid-template-columns:230px 1fr 90px;align-items:center;gap:14px;font:600 15px var(--ui);color:var(--fg1)}
.ev .bar{position:relative;height:10px;border-radius:8px;background:var(--bg3);overflow:hidden}
.ev .bar i{position:absolute;inset:0 auto 0 0;border-radius:8px}
.ev .bar .a{background:var(--accent-press)}.ev .bar .b{background:var(--accent);transform-origin:left;animation:fillIn .9s cubic-bezier(.2,.8,.2,1) .35s both}
.ev em{font:700 14px var(--ui);color:var(--accent);font-style:normal;text-align:right}
.prof.in .body>*{animation:fadeUp .45s cubic-bezier(.2,.8,.2,1) both}
.prof.in .body>*:nth-child(2){animation-delay:.05s}.prof.in .body>*:nth-child(3){animation-delay:.1s}.prof.in .body>*:nth-child(4){animation-delay:.14s}.prof.in .body>*:nth-child(5){animation-delay:.18s}.prof.in .body>*:nth-child(6){animation-delay:.22s}.prof.in .body>*:nth-child(7){animation-delay:.26s}.prof.in .body>*:nth-child(8){animation-delay:.3s}
.welcome button{display:grid;place-items:center;width:32px;height:32px;border-radius:50%}
.welcome button:hover{background:var(--bg2)}
.ob-center p.disp{font:700 34px/41px var(--display);max-width:none}
/* embed mode (case study) */
html.embed,html.embed body{background:transparent;overflow:hidden}
html.embed .room{padding:0;min-height:100vh;gap:0}
html.embed .hint{display:none}
html.embed .ipad{box-shadow:none}
