/* Coach v2, Stage A. Shapes follow Kerry's Prototype v2; colours are MMA brand tokens.
   To try the prototype palette instead, change only the :root tokens. */
:root{
  --ink:#151a33; --muted:#5d6680; --line:#e3e6f0; --bg:#f6f5fa; --page:#e9e9f3; --card:#fff;
  --navy:#12206c; --purple:#853095; --accent:#b348c3;
  --grad:linear-gradient(100deg,var(--navy),var(--accent));
  --blue:#3b5bfd; --teal:#13a3b4; --green:#11a873; --amber:#f3a50f; --red:#df454f; --orange:#f07c2a;
  --r-card:18px; --r-pill:999px;
  font-family:Montserrat,"Segoe UI",system-ui,-apple-system,Arial,sans-serif; color:var(--ink); line-height:1.45; font-size:16px;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--page)}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
.skip{position:absolute;left:12px;top:-60px;background:#fff;padding:10px;z-index:9}.skip:focus{top:8px}
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;padding:0}
:focus-visible{outline:3px solid var(--purple);outline-offset:3px}
h1{font-size:1.55rem;line-height:1.2;letter-spacing:-.02em;margin:.2rem 0 .4rem;color:var(--ink)}
h1:focus{outline:none}
h2{font-size:1.15rem;margin:0 0 .4rem}
p{margin:0 0 .75rem}
.sub{color:var(--muted);margin-bottom:1rem}
.center{text-align:center}
.label{font-size:.7rem;letter-spacing:.12em;font-weight:800;color:var(--muted);margin:1.1rem 0 .5rem;display:flex;align-items:center;gap:.4rem}
.label.light,.light{color:#ffffffd9}
.note{font-size:.85rem;color:var(--muted);display:flex;gap:.4rem;align-items:center}
.ic{width:1.25em;height:1.25em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}

/* phone frame: full screen on phones, a centred phone on desktop */
.phone{max-width:440px;min-height:100vh;margin:0 auto;background:var(--bg);display:flex;flex-direction:column}
@media(min-width:700px){.phone{min-height:calc(100vh - 48px);margin:24px auto;border-radius:36px;box-shadow:0 20px 60px #1d1d4a26;overflow:hidden;border:10px solid #12121f}}
.loading{padding:2rem}
.screen{display:flex;flex-direction:column;min-height:inherit;flex:1}
.screen-body{flex:1;padding:1rem 1.25rem 1.25rem}
.screen-foot{position:sticky;bottom:0;padding:.75rem 1.25rem calc(.9rem + env(safe-area-inset-bottom));background:linear-gradient(#f6f5fa00,var(--bg) 30%);display:grid;gap:.5rem}
.screen:has(.tabbar) .screen-foot{bottom:64px}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:52px;padding:.8rem 1.2rem;border-radius:var(--r-pill);border:0;font-weight:700;font-size:1rem;width:100%}
.btn.dark{background:var(--ink);color:#fff}
.btn.grad{background:var(--grad);color:#fff;box-shadow:0 8px 20px #85309533}
.btn.light{background:#fff;color:var(--navy);width:auto;min-height:44px;margin-top:.4rem}
.btn.ghost{background:none;color:var(--ink);min-height:44px;font-weight:600}
.btn:disabled{background:#d9dbe5;color:#8a90a6;box-shadow:none;cursor:not-allowed}
.btn.icon-only{width:44px;min-height:44px;height:44px;padding:0;background:#fff;border:1px solid var(--line);border-radius:14px}
.btn.icon-only span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.link{background:none;border:0;color:var(--navy);font-weight:700;display:inline-flex;align-items:center;gap:.35rem;padding:.6rem 0;min-height:44px}
.link.small{font-size:.85rem;color:var(--muted);font-weight:600}

/* orb */
.orb{display:inline-block;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff 0 12%,transparent 13%),conic-gradient(from 200deg,var(--navy),var(--accent),var(--blue),var(--navy));box-shadow:0 0 0 3px #fff,0 6px 16px #85309540;flex:0 0 auto}
.orb.xs{width:18px;height:18px;box-shadow:none}.orb.sm{width:34px;height:34px}.orb.lg{width:64px;height:64px}.orb.xl{width:150px;height:150px;box-shadow:0 0 0 10px #ffffff80,0 0 60px #b348c366}

/* top bars */
.topbar,.goalbar{display:flex;align-items:center;gap:.6rem;margin-bottom:1rem}
.top-label{font-size:.72rem;font-weight:700;color:var(--muted);display:inline-flex;align-items:center;gap:.25rem;white-space:nowrap}@media(max-width:380px){.top-label{display:none}}
.top-count{font-size:.8rem;font-weight:700;color:var(--muted);white-space:nowrap}
.segbar{display:flex;gap:4px;flex:1}
.segbar span{height:6px;flex:1;border-radius:4px;background:#dfe1ea}
.segbar span.done{background:var(--ink)}
.segbar span.current{background:var(--grad)}
.hero .segbar span{background:#ffffff40}.hero .segbar span.done{background:#fff}.hero .segbar span.current{background:var(--amber)}
.goalbar-mid{flex:1;min-width:0}
.goalbar-mid p{display:flex;justify-content:space-between;gap:.5rem;margin:.35rem 0 0;font-size:.78rem}
.stage-name{font-weight:800;display:flex;align-items:center;gap:.3rem}
.stage-next{color:var(--muted);white-space:nowrap}
.spacer-ic{width:44px;flex:0 0 auto}
.subdots{display:flex;gap:5px;margin:-.25rem 0 1rem}
.subdots span{width:7px;height:7px;border-radius:5px;background:#d4d7e3}
.subdots span.done{background:var(--ink)}.subdots span.current{width:22px;background:var(--ink)}

/* coach question */
.coach-q{display:flex;gap:.75rem;align-items:flex-start;margin-bottom:1rem}
.coach-q h1{font-size:1.35rem}

/* option cards */
.grid2,.grid3,.grid4,.list{display:grid;gap:.6rem;margin-bottom:1rem}
.grid2{grid-template-columns:1fr 1fr}.grid3{grid-template-columns:repeat(3,1fr)}.grid4{grid-template-columns:repeat(4,1fr)}.list{grid-template-columns:1fr}
.opt{position:relative;display:flex;align-items:center;gap:.65rem;text-align:left;background:#fff;border:1.5px solid var(--line);border-radius:16px;padding:.85rem .9rem;min-height:56px}
.grid4 .opt{flex-direction:column;text-align:center;padding:.8rem .3rem;font-size:.78rem;gap:.35rem}
.grid3 .opt{flex-direction:column;text-align:center;padding:.8rem .4rem;font-size:.85rem}
.opt-text{display:flex;flex-direction:column;min-width:0}
.opt-text strong{font-weight:700;font-size:.95rem}
.grid4 .opt-text strong{font-size:.78rem}
.opt-text small{color:var(--muted);font-size:.8rem}
.opt-ic{display:inline-flex;width:38px;height:38px;border-radius:12px;align-items:center;justify-content:center;background:#eef0f8;color:var(--navy);flex:0 0 auto}
.opt .tick{position:absolute;top:6px;right:6px;width:20px;height:20px;border-radius:50%;background:var(--navy);color:#fff;display:none;align-items:center;justify-content:center}
.opt .tick .ic{width:14px;height:14px;stroke-width:3}
.opt.selected{border-color:var(--navy);box-shadow:0 0 0 1px var(--navy)}
.opt.selected .opt-ic{background:var(--navy);color:#fff}
.opt.selected .tick{display:inline-flex}
.opt.amber.selected{background:#fff8e8;border-color:var(--amber);box-shadow:0 0 0 1px var(--amber)}
.opt.amber.selected .opt-ic{background:var(--amber)}.opt.amber .tick{background:var(--amber)}
.list .opt>.ic{margin-left:auto;color:var(--muted)}
.letter{width:38px;height:38px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;color:#fff;flex:0 0 auto}
.letter.green{background:#10a37f}.letter.orange{background:#d97757}.letter.blue{background:#4285f4}.letter.purple{background:#7b4bd6}
.signal{display:inline-flex;align-items:flex-end;gap:3px;height:20px;flex:0 0 auto}
.signal span{width:5px;border-radius:2px;background:#d4d7e3}
.signal span:nth-child(1){height:7px}.signal span:nth-child(2){height:13px}.signal span:nth-child(3){height:19px}
.signal span.on{background:var(--navy)}
.face.green .opt-ic{background:#e2f6ee;color:var(--green)}.face.amber .opt-ic{background:#fff1d6;color:#b77a00}.face.red .opt-ic{background:#fde6e7;color:var(--red)}

/* fields */
.field{display:block;margin:.25rem 0 .75rem}
.field input,.add-fact input{width:100%;min-height:54px;border:1.5px solid var(--line);border-radius:16px;padding:.8rem 1rem;background:#fff;font-size:1rem}
.field input:focus{border-color:var(--navy);outline:none;box-shadow:0 0 0 3px #12206c22}
.field-error{color:var(--red);font-weight:600;font-size:.9rem}
.suggest{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:1rem}
.suggest-chip{border:1px dashed #b9bdd0;background:#fff;border-radius:var(--r-pill);padding:.45rem .8rem;font-size:.85rem;min-height:40px}

/* chips */
.chips{display:flex;flex-wrap:wrap;gap:.4rem}
.chip{display:inline-flex;align-items:center;gap:.35rem;background:#fff;border:1px solid var(--line);border-radius:var(--r-pill);padding:.35rem .75rem;font-size:.85rem;font-weight:600}
.chip.fact{min-height:40px;cursor:pointer}
.chip.off{text-decoration:line-through;color:#9aa0b4;background:#f3f3f7}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--navy)}
.dot.noticed{background:var(--accent)}
.so-far{background:#fff;border-radius:var(--r-card);padding:.6rem 1rem 1rem;box-shadow:0 4px 14px #12206c0d}
.so-far .label{margin-top:.4rem}

/* welcome */
.welcome{text-align:center;padding-top:1.5rem}
.hero-orb{position:relative;height:250px;display:flex;align-items:center;justify-content:center}
.float{position:absolute;width:48px;height:48px;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;color:var(--navy);box-shadow:0 8px 20px #12206c1f}
.f0{top:12px;left:18%}.f1{top:30px;right:14%}.f2{bottom:24px;left:12%}.f3{bottom:10px;right:20%}
.welcome h1{font-size:1.9rem}
.lead{color:var(--muted);font-size:1.05rem}
.time{display:inline-flex;gap:.4rem;align-items:center;color:var(--muted);font-size:.9rem}

/* knows */
.done-line{display:flex;align-items:center;gap:.4rem;color:var(--green);font-weight:700}
.card{background:#fff;border-radius:var(--r-card);padding:1rem;box-shadow:0 4px 14px #12206c0d;margin-bottom:1rem}
.equation{display:flex;align-items:stretch;gap:.4rem;margin-bottom:1rem}
.eq{flex:1;border-radius:14px;padding:.7rem .5rem;font-size:.78rem;font-weight:700;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.3rem;text-align:center}
.eq.a{background:var(--grad);color:#fff}.eq.b{background:#fff;border:1px solid var(--line)}.eq.c{background:var(--ink);color:#fff}
.op{align-self:center;font-weight:800;color:var(--muted)}

/* home */
.hi{font-size:1.8rem}
.big-q{font-size:1.35rem;margin-top:.6rem}
.section-title{font-size:1rem;margin:1.2rem 0 .6rem}
.hero{background:var(--grad);color:#fff;border-radius:22px;padding:1.1rem 1.1rem 1.2rem;margin:.5rem 0 1rem;box-shadow:0 12px 28px #85309533}
.hero h2{color:#fff;font-size:1.3rem;margin-bottom:.7rem}
.hero p{display:flex;gap:.4rem;align-items:center;margin:.6rem 0 .2rem;font-size:.9rem}
.goal-tiles{margin-bottom:1rem}
.goal-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:1.2rem;min-height:96px;padding:.8rem;border-radius:18px;border:0;color:#fff;font-weight:700;text-align:left;font-size:.9rem}
.goal-tile .ic{width:28px;height:28px}
.goal-tile.blue{background:#3b5bfd}.goal-tile.purple{background:#7c4dff}.goal-tile.teal{background:#13a3b4}.goal-tile.orange{background:#f07c2a}.goal-tile.green{background:#11a873}.goal-tile.dark{background:#12121f}
.goal-tile.soon{opacity:.45}
.goal-tile small{position:absolute;top:.6rem;right:.6rem;background:#ffffff33;border-radius:var(--r-pill);padding:.05rem .5rem;font-size:.7rem}
.scroll-row{display:flex;gap:.6rem;overflow-x:auto;padding-bottom:.4rem;scroll-snap-type:x mandatory}
.scroll-row .goal-tile{min-width:120px;scroll-snap-align:start}
.row-card{display:flex;align-items:center;gap:.8rem;width:100%;background:#fff;border:0;border-radius:var(--r-card);padding:.9rem 1rem;text-align:left;box-shadow:0 4px 14px #12206c0d;margin-bottom:.7rem;min-height:64px}
.row-card>.ic{margin-left:auto;color:var(--muted)}
.row-text{display:flex;flex-direction:column;min-width:0}
.row-text small{color:var(--muted);font-size:.8rem}
.row-card.static{cursor:default}
.stack{display:flex}
.stack span{width:34px;height:34px;border-radius:50%;background:#eef0f8;border:2px solid #fff;display:flex;align-items:center;justify-content:center;color:var(--navy);margin-left:-10px}
.stack span:first-child{margin-left:0;background:var(--grad);color:#fff}
.dark-tile{width:42px;height:42px;border-radius:12px;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;flex:0 0 auto}

/* tab bar */
.tabbar{position:sticky;bottom:0;display:flex;background:#fff;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);z-index:3}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;gap:.15rem;border:0;background:none;padding:.55rem 0 .5rem;font-size:.75rem;font-weight:600;color:var(--muted);min-height:60px;position:relative}
.tab.active{color:var(--ink)}
.tab.active::before{content:'';position:absolute;top:0;width:28px;height:3px;border-radius:3px;background:var(--accent)}

/* goal screens */
.remember,.tip,.banner{display:flex;align-items:center;gap:.7rem;border-radius:16px;padding:.75rem .9rem;margin-bottom:1rem}
.remember{background:#f3e9f6}
.remember>span:not(.orb),.tip>span{display:flex;flex-direction:column;flex:1;font-size:.9rem}
.remember small,.tip small{font-size:.68rem;letter-spacing:.1em;font-weight:800;color:var(--purple)}
.switch{width:52px;height:30px;border-radius:15px;border:0;background:#c9ccd9;position:relative;flex:0 0 auto}
.switch::after{content:'';position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:left .15s}
.switch[aria-checked="true"]{background:var(--navy)}
.switch[aria-checked="true"]::after{left:25px}
.banner.risk{background:#fde6e7;color:#9b1c25;font-size:.9rem}
.tip{background:#f3e9f6;align-items:flex-start}
.tip>.ic{color:var(--purple);margin-top:.2rem}
.pic-slides,.pic-email,.pic-try{position:relative;height:170px;border-radius:20px;background:#fff;margin:.5rem 0 1rem;box-shadow:0 4px 14px #12206c0d;overflow:hidden}
.pic-slides .slide{position:absolute;left:8%;top:14%;width:48%;height:56%;border-radius:14px;background:var(--grad);padding:1rem;display:flex;flex-direction:column;gap:.5rem}
.line{display:block;height:8px;border-radius:4px;background:#ffffffb3}
.pic-email .line,.pic-try .line{background:#e3e6f0}
.w80{width:80%}.w70{width:70%}.w60{width:60%}.w50{width:50%}.w40{width:40%}
.three{position:absolute;right:12%;top:16%;font-size:2.2rem;font-weight:800;color:var(--purple)}
.dots3{position:absolute;left:10%;bottom:12%;display:flex;gap:.4rem}
.dots3 i{width:20px;height:20px;border-radius:50%;background:var(--blue)}.dots3 i:nth-child(2){background:var(--purple)}.dots3 i:nth-child(3){background:var(--teal)}
.flag-tile{position:absolute;right:10%;bottom:12%;width:54px;height:54px;border-radius:14px;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center}
.pic-email{padding:1.2rem;display:flex;flex-direction:column;gap:.7rem}
.pic-email>.ic{color:var(--purple);width:32px;height:32px}
.tag-dark{align-self:flex-start;background:var(--ink);color:#fff;border-radius:var(--r-pill);padding:.2rem .7rem;font-size:.8rem;font-weight:700}
.good-list{list-style:none;padding:0;margin:0}
.good-list li{display:flex;align-items:center;gap:.6rem;font-weight:600;margin-bottom:.6rem}
.good-list .ic{width:28px;height:28px;padding:5px;border-radius:50%;background:#e2f6ee;color:var(--green);stroke-width:3}
.segmented,.toggle2,.pb-tabs{display:flex;background:#e9eaf2;border-radius:var(--r-pill);padding:4px;gap:4px;margin-bottom:1rem}
.segmented button,.toggle2 button,.pb-tabs button{flex:1;border:0;background:none;border-radius:var(--r-pill);padding:.5rem .4rem;font-weight:700;font-size:.85rem;display:flex;align-items:center;justify-content:center;gap:.35rem;min-height:40px;color:var(--muted)}
.segmented .on,.toggle2 .on,.pb-tabs .on{background:#fff;color:var(--ink);box-shadow:0 2px 6px #12206c1a}
.toggle2{margin:0;width:auto}
.step-list{list-style:none;padding:0;margin:0 0 1rem;position:relative}
.step-list li{display:flex;align-items:center;gap:.8rem;padding:.45rem 0;position:relative}
.step-list li:not(:last-child)::after{content:'';position:absolute;left:19px;top:44px;height:calc(100% - 34px);width:2px;background:var(--line)}
.step-ic{width:40px;height:40px;border-radius:50%;border:1.5px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:center;color:var(--muted);flex:0 0 auto}
.step-list li.next .step-ic{background:var(--grad);color:#fff;border:0}
.step-list li.done .step-ic{background:var(--ink);color:#fff;border:0}
.step-list strong{display:block}.step-list small{color:var(--muted);font-size:.78rem}
.step-head{display:flex;gap:.8rem;align-items:center}
.step-head .label{margin:0}
.big-ic{width:52px;height:52px;border-radius:50%;background:var(--grad);color:#fff;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.modes{display:grid;grid-template-columns:repeat(5,1fr);gap:.35rem;margin-bottom:1rem}
.mode{display:flex;flex-direction:column;align-items:center;gap:.3rem;background:none;border:0;font-size:.72rem;font-weight:700;color:var(--muted);padding:.2rem 0;min-height:64px}
.mode-ic{width:44px;height:44px;border-radius:50%;background:#fff;border:1.5px solid var(--line);display:flex;align-items:center;justify-content:center}
.mode.blue .mode-ic{color:var(--blue)}.mode.teal .mode-ic{color:var(--teal)}.mode.red .mode-ic{color:var(--red)}.mode.green .mode-ic{color:var(--green)}.mode.purple .mode-ic{color:var(--purple)}
.mode.on{color:var(--ink)}
.mode.on .mode-ic{color:#fff;border:0}
.mode.blue.on .mode-ic{background:var(--blue)}.mode.teal.on .mode-ic{background:var(--teal)}.mode.red.on .mode-ic{background:var(--red)}.mode.green.on .mode-ic{background:var(--green)}.mode.purple.on .mode-ic{background:var(--purple)}
.prompt-card{background:#fff;border-radius:var(--r-card);overflow:hidden;box-shadow:0 4px 14px #12206c0d;padding:0 1rem 1rem}
.rainbow{height:5px;margin:0 -1rem .6rem;background:linear-gradient(90deg,var(--purple) 0 16%,var(--blue) 16% 33%,var(--purple) 33% 50%,var(--teal) 50% 66%,var(--amber) 66% 83%,var(--red) 83%)}
.prompt-head{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.6rem}
.prompt-head .label{margin:0}
.pblock{border-left:4px solid var(--line);padding:.5rem .7rem;margin-bottom:.5rem;border-radius:0 10px 10px 0;font-size:.92rem}
.pblock p{margin:0}
.plabel{font-size:.66rem;letter-spacing:.1em;font-weight:800;display:flex;align-items:center;gap:.3rem;margin-bottom:.2rem!important}
.pblock.about{border-color:var(--purple);background:#f6eef8}.pblock.about .plabel{color:var(--purple)}
.pblock.context{border-color:var(--blue)}.pblock.context .plabel{color:var(--blue)}
.pblock.task{border-color:var(--accent)}.pblock.task .plabel{color:var(--purple)}
.pblock.format{border-color:var(--teal)}.pblock.format .plabel{color:#0b7f8c}
.pblock.constraints{border-color:var(--amber)}.pblock.constraints .plabel{color:#a26a00}
.pblock.ethics{border-color:var(--red)}.pblock.ethics .plabel{color:var(--red)}
.pblock.fix{border-color:var(--green)}.pblock.fix .plabel{color:var(--green)}
.plain p{font-size:.95rem}
.draft-note{font-size:.78rem;color:#a26a00;background:#fff4dc;border-radius:10px;padding:.35rem .6rem;margin-top:.6rem}
.next-hint{color:var(--muted);font-size:.85rem;text-align:center;margin-top:.8rem}
.pic-try .doc{position:absolute;left:10%;top:18%;width:46%;height:64%;border-radius:14px;background:#f6f5fa;padding:1rem;display:flex;flex-direction:column;gap:.5rem}
.pic-try .ai-card{position:absolute;right:10%;top:30%;width:34%;height:44%;border-radius:14px;background:var(--ink);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;gap:.4rem}
.pic-try .ai-card i{width:10px;height:10px;border-radius:50%;background:var(--accent)}
.tool-list{display:grid;gap:.5rem;margin-bottom:.5rem}
.tool-row{display:flex;align-items:center;gap:.7rem;background:#fff;border-radius:16px;padding:.7rem .9rem;text-decoration:none;color:var(--ink);box-shadow:0 4px 14px #12206c0d;min-height:56px}
.tool-row>.ic{margin-left:auto;color:var(--muted)}
.yours{background:var(--ink);color:#fff;border-radius:var(--r-pill);padding:.1rem .55rem;font-size:.72rem;font-weight:700;margin-left:auto}
.yours+.ic{margin-left:.4rem}
.fix-card{padding:.7rem}
.check-head{display:flex;justify-content:space-between;gap:.8rem;align-items:flex-start}
.counter{display:flex;flex-direction:column;align-items:center;gap:.3rem;min-width:70px}
.counter .segbar{width:70px}.counter .segbar span.done{background:var(--amber)}
.counter strong{font-size:1.1rem}
.checktile{flex-direction:row}
.assists{text-align:center;font-weight:800;color:var(--navy)}
.big-tick{width:96px;height:96px;border-radius:50%;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;margin:1rem auto;box-shadow:0 10px 30px #11a87340}
.big-tick .ic{width:52px;height:52px;stroke-width:3}
.skill-net{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;margin:1rem 0}
.node{display:inline-flex;align-items:center;gap:.35rem;border-radius:var(--r-pill);padding:.45rem .8rem;font-size:.82rem;font-weight:700;background:#ececf3;color:#8b90a5}
.node .ic{width:16px;height:16px;stroke-width:3}
.node.on{color:#fff}
.node.on.blue{background:var(--blue)}.node.on.purple{background:#7c4dff}.node.on.amber{background:var(--amber)}.node.on.red{background:var(--red)}.node.on.green{background:var(--green)}.node.on.teal{background:var(--teal)}

/* My Playbook */
.profile{display:flex;align-items:center;gap:.8rem;background:#fff;border-radius:var(--r-card);padding:.9rem 1rem;margin-bottom:1rem;box-shadow:0 4px 14px #12206c0d}
.lvl{margin-left:auto;display:flex;flex-direction:column;align-items:center;gap:.15rem;font-size:.7rem;color:var(--muted)}
.legend{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 1rem;font-size:.8rem;color:var(--muted)}
.legend span{display:inline-flex;align-items:center;gap:.35rem}
.legend .link{margin-left:auto;font-size:.85rem}
.fact-sec .label{margin-top:1rem}
.add-fact{display:flex;gap:.5rem;margin-top:1.2rem}
.add-fact .btn.icon-only{width:54px;height:54px;background:var(--ink);color:#fff;border:0}
.skills{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin-bottom:1rem}
.skill{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.35rem;font-size:.78rem;font-weight:600}
.skill-ring{width:62px;height:62px;border-radius:50%;border:6px solid #e3e5ee;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.1rem;color:var(--muted)}
.skill.blue .skill-ring.on{border-color:var(--blue);color:var(--blue)}.skill.purple .skill-ring.on{border-color:#7c4dff;color:#7c4dff}.skill.amber .skill-ring.on{border-color:var(--amber);color:#a26a00}.skill.red .skill-ring.on{border-color:var(--red);color:var(--red)}.skill.green .skill-ring.on{border-color:var(--green);color:var(--green)}.skill.teal .skill-ring.on{border-color:var(--teal);color:#0b7f8c}
.lessons blockquote{margin:0 0 .7rem;background:#fff;border-radius:var(--r-card);padding:1rem 1rem 1rem 2.4rem;position:relative;font-weight:600;box-shadow:0 4px 14px #12206c0d}
.lessons blockquote::before{content:'“';position:absolute;left:.8rem;top:.3rem;font-size:2.2rem;color:var(--accent);font-weight:800}
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.5rem;padding:2rem 1rem;color:var(--muted)}
.empty strong{color:var(--ink)}
.reset{text-align:center;margin-top:1.5rem}

/* sheet + toast */
.sheet-backdrop{position:fixed;inset:0;background:#12121f66;z-index:10}
.sheet{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(440px,100%);background:#fff;border-radius:24px 24px 0 0;padding:1.4rem 1.25rem calc(1.2rem + env(safe-area-inset-bottom));z-index:11;max-height:85vh;overflow:auto}
.sheet h2:focus{outline:none}
.dark-card{background:var(--ink);color:#fff;border-radius:16px;padding:1rem;margin-bottom:.8rem;font-size:.9rem}
.dark-card small{display:block;font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:#ffffffa6;font-weight:800}
#toast{position:fixed;top:max(14px,env(safe-area-inset-top));left:50%;transform:translateX(-50%) translateY(-20px);opacity:0;background:var(--ink);color:#fff;border-radius:var(--r-pill);padding:.6rem 1.1rem;font-size:.88rem;font-weight:600;max-width:min(400px,92vw);text-align:center;transition:opacity .2s,transform .2s;pointer-events:none;z-index:20}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-width:360px){.grid4{grid-template-columns:repeat(2,1fr)}.modes{gap:.15rem}.mode-ic{width:40px;height:40px}}

/* Stage A2: sign-in, consent, save status, help and data */
.signin{padding-top:.5rem}
.hero-orb.small{height:190px}
.hero-orb.small .orb.xl{width:120px;height:120px}
.notice-list{list-style:none;padding:0;margin:0 0 1rem;display:grid;gap:.6rem}
.notice-list li{display:flex;gap:.7rem;align-items:flex-start;background:#fff;border-radius:16px;padding:.75rem .9rem;font-size:.92rem;box-shadow:0 4px 14px #12206c0d}
.notice-list li>.ic{color:var(--navy);margin-top:.1rem}
.opt.agree{width:100%}
.field textarea{width:100%;border:1.5px solid var(--line);border-radius:16px;padding:.7rem 1rem;background:#fff;font:inherit;resize:vertical;min-height:84px}
.field .label{margin:.6rem 0 .35rem}
.data-sec .label{margin-top:1.6rem}
.data-list{display:grid;gap:0}
.data-list .row-card>.ic:first-child{color:var(--navy)}
.confirm-box{background:#fde6e7;color:#7d1720;border-radius:16px;padding:.9rem 1rem;margin:.2rem 0 .8rem}
.confirm-box p{margin:0 0 .6rem;font-size:.92rem}
.confirm-actions{display:grid;gap:.4rem}
.btn.danger{background:var(--red);color:#fff}
.signed-in{font-size:.82rem;color:var(--muted);text-align:center;display:flex;justify-content:center;align-items:center;gap:.3rem;flex-wrap:wrap}
.report{display:grid;gap:.4rem;margin:0 0 1rem}
.report div{display:flex;justify-content:space-between;gap:1rem;background:#f6f5fa;border-radius:12px;padding:.6rem .8rem}
.report dt{font-size:.9rem}
.report dd{margin:0;font-weight:800;font-variant-numeric:tabular-nums}
#savebar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(76px + env(safe-area-inset-bottom));z-index:15;display:flex;align-items:center;gap:.6rem;background:var(--ink);color:#fff;border-radius:16px;padding:.55rem .6rem .55rem 1rem;font-size:.85rem;max-width:min(420px,calc(100vw - 32px));box-shadow:0 10px 30px #12121f40}
#savebar[hidden]{display:none}
#savebar button{border:0;border-radius:999px;background:#fff;color:var(--navy);font-weight:700;padding:.45rem .8rem;min-height:40px;white-space:nowrap}
