:root{--olive:#556B45;--olive-d:#3F5233;--sage:#E8EDD8;--leaf:#8FA98A;--cream:#FCFBF7;--navy:#1C2B3A;--muted:#6B7368;--line:#E4E6DC;
--ok:#3E8E5A;--warn:#C98A1B;--high:#C2410C;--danger:#B91C1C;--r:18px}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:var(--cream);color:var(--navy);font-family:Assistant,Arial,sans-serif;font-size:17px}
button,input,select,textarea{font-family:inherit;font-size:17px}
.wrap{max-width:520px;margin:0 auto;min-height:100vh;padding:0 18px calc(96px + env(safe-area-inset-bottom))}
header{display:flex;align-items:center;gap:12px;padding:18px 0 10px}
header img{width:46px;height:46px;border-radius:12px;background:#fff;object-fit:cover;border:1px solid var(--line)}
header .t b{display:block;font-size:19px;font-weight:800}
header .t span{font-size:14px;color:var(--muted)}
header .out{margin-inline-start:auto;background:none;border:0;color:var(--muted);font-size:14px;cursor:pointer}
h1{font-size:26px;margin:10px 0 4px;font-weight:800}
h2{font-size:20px;margin:22px 0 10px;font-weight:800}
.sub{color:var(--muted);margin:0 0 16px;line-height:1.5}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:18px;box-shadow:0 2px 10px rgba(28,43,58,.04)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.metric{cursor:pointer;position:relative;overflow:hidden}
.metric .lbl{font-size:15px;color:var(--muted);font-weight:600}
.metric .val{font-size:32px;font-weight:800;margin:6px 0 2px;letter-spacing:-.5px;direction:ltr;text-align:right}
.metric .val small{font-size:15px;color:var(--muted);font-weight:600}
.metric .when{font-size:13px;color:var(--muted)}
.metric .plus{position:absolute;top:14px;left:14px;width:34px;height:34px;border-radius:50%;background:var(--olive);color:#fff;display:grid;place-items:center;font-size:22px;font-weight:700}
.metric.wide{grid-column:1/-1;display:flex;align-items:center;gap:22px}
.metric.wide .val{margin:0}
.pill{display:inline-block;padding:3px 10px;border-radius:99px;font-size:13px;font-weight:700;margin-top:6px}
.s-ok{background:#E3F1E7;color:var(--ok)}.s-warn{background:#FBF0D9;color:var(--warn)}.s-high{background:#FCE7DC;color:var(--high)}.s-danger{background:#FDE2E2;color:var(--danger)}.s-low{background:#E0ECFA;color:#1D4ED8}.s-info{background:var(--sage);color:var(--olive-d)}
.today{display:flex;align-items:center;gap:12px;margin-top:12px}
.today .dot{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-weight:800;flex:none}
.btn{display:block;width:100%;border:0;border-radius:14px;padding:15px;font-weight:700;cursor:pointer;background:var(--olive);color:#fff;font-size:18px;text-align:center;text-decoration:none}
.btn:active{background:var(--olive-d)}
.btn.ghost{background:var(--sage);color:var(--olive-d)}
.btn.small{display:inline-block;width:auto;padding:9px 16px;font-size:15px}
.btn:disabled{opacity:.6}
.quick{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.quick button{display:flex;align-items:center;gap:10px;justify-content:center;padding:16px 10px;border-radius:16px;border:1px solid var(--line);background:#fff;font-weight:700;color:var(--navy);cursor:pointer}
.quick svg{width:24px;height:24px;color:var(--olive)}
label{display:block;font-weight:700;margin:14px 0 6px;font-size:15px}
input,textarea,select{width:100%;padding:14px;border:1.5px solid var(--line);border-radius:12px;background:#fff;color:var(--navy);outline:none}
textarea{min-height:90px;resize:vertical;line-height:1.5}
input:focus,textarea:focus{border-color:var(--leaf)}
input.big{font-size:30px;font-weight:800;text-align:center;direction:ltr;padding:12px}
.hint{font-size:13px;color:var(--muted);margin-top:5px;line-height:1.45}
.err{color:var(--danger);font-weight:600;min-height:22px;margin:10px 0 0;font-size:15px}
.tabs{display:flex;background:var(--sage);border-radius:14px;padding:4px;gap:4px;margin:14px 0}
.tabs button{flex:1;border:0;background:none;padding:10px 4px;border-radius:11px;font-weight:700;color:var(--olive-d);cursor:pointer}
.tabs button.on{background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chips button{border:1.5px solid var(--line);background:#fff;border-radius:99px;padding:9px 14px;font-weight:600;cursor:pointer;color:var(--navy)}
.chips button.on{border-color:var(--olive);background:var(--sage);color:var(--olive-d)}
nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:center;padding-bottom:env(safe-area-inset-bottom);z-index:5}
nav .in{display:flex;max-width:520px;width:100%}
nav button{flex:1;border:0;background:none;padding:9px 0 11px;color:var(--muted);font-weight:700;font-size:12.5px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px}
nav button svg{width:24px;height:24px}
nav button.on{color:var(--olive)}
.list .row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}
.list .row:last-child{border:0}
.list .ic{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;flex:none;font-weight:800;font-size:12px;text-align:center;line-height:1.1}
.list .main{flex:1;min-width:0}
.list .v{font-weight:800;font-size:19px;direction:ltr;text-align:right}
.list .d{font-size:13px;color:var(--muted)}
.del{background:none;border:0;color:#B8BCB2;font-size:20px;cursor:pointer;padding:6px}
.sheet-bg{position:fixed;inset:0;background:rgba(28,43,58,.45);z-index:10;display:none;align-items:flex-end;justify-content:center}
.sheet-bg.show{display:flex}
.sheet{background:var(--cream);width:100%;max-width:520px;border-radius:24px 24px 0 0;padding:22px 20px calc(24px + env(safe-area-inset-bottom));max-height:92vh;overflow:auto;animation:up .22s ease-out}
@keyframes up{from{transform:translateY(40px);opacity:.4}}
.sheet .x{float:left;background:none;border:0;font-size:26px;color:var(--muted);cursor:pointer;line-height:1}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.alert{border-radius:14px;padding:14px;margin-top:14px;line-height:1.5;font-size:15px}
.alert.danger{background:#FDE2E2;color:#7F1D1D}
.alert.info{background:var(--sage);color:var(--olive-d)}
.chartbox{position:relative;height:240px}
.legend{display:flex;gap:14px;font-size:13px;color:var(--muted);margin-top:8px;flex-wrap:wrap}
.legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-inline-end:5px;vertical-align:middle}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.stats div{background:var(--cream);border-radius:12px;padding:10px;text-align:center}
.stats b{display:block;font-size:20px;direction:ltr}
.stats span{font-size:12px;color:var(--muted)}
.wa{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.wa .w{width:46px;height:46px;border-radius:50%;background:#25D366;display:grid;place-items:center;flex:none}
.disc{font-size:12px;color:var(--muted);text-align:center;line-height:1.5;margin:26px 8px 0}
.hero{background:linear-gradient(160deg,var(--olive),#6E8A5A);color:#fff;border-radius:24px;padding:26px 22px;margin-top:8px;position:relative;overflow:hidden}
.hero h1{color:#fff;margin:0 0 6px}
.hero p{margin:0;opacity:.92;line-height:1.5}
.hero .leaf{position:absolute;left:-30px;bottom:-40px;width:160px;opacity:.15}
.empty{text-align:center;color:var(--muted);padding:26px 10px;line-height:1.6}
.hidden{display:none!important}
.toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);background:var(--navy);color:#fff;padding:12px 20px;border-radius:99px;font-weight:700;z-index:30;opacity:0;transition:.25s;pointer-events:none}
.toast.show{opacity:1}
.ptable{width:100%;border-collapse:collapse;font-size:14px}
.ptable td,.ptable th{padding:10px 5px;border-bottom:1px solid var(--line);text-align:right}
.ptable tr{cursor:pointer}
.day-h{font-weight:800;color:var(--muted);font-size:14px;margin:18px 0 8px}
.meal{display:flex;gap:12px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px;margin-bottom:10px;align-items:flex-start}
.meal img{width:74px;height:74px;border-radius:12px;object-fit:cover;flex:none;background:var(--sage)}
.meal .mi{width:74px;height:74px;border-radius:12px;background:var(--sage);display:grid;place-items:center;flex:none;font-size:13px;font-weight:800;color:var(--olive-d)}
.meal .b{flex:1;min-width:0}
.meal .tt{font-weight:800}
.meal .ds{font-size:15px;line-height:1.45;margin-top:2px;word-wrap:break-word}
.photo-pick{display:flex;align-items:center;justify-content:center;gap:10px;border:2px dashed var(--leaf);border-radius:14px;padding:16px;color:var(--olive-d);font-weight:700;cursor:pointer;background:#fff}
.photo-prev{width:100%;max-height:220px;object-fit:cover;border-radius:14px;margin-top:10px}
#reader{width:100%;border-radius:16px;overflow:hidden;background:#000}
.verdict{border-radius:18px;padding:18px;color:#fff;margin-top:14px}
.verdict.g{background:linear-gradient(160deg,#3E8E5A,#5DA474)}.verdict.y{background:linear-gradient(160deg,#C98A1B,#DDA53E)}.verdict.r{background:linear-gradient(160deg,#B4361C,#D0532F)}
.verdict b{font-size:24px;display:block}
.prod{display:flex;gap:14px;align-items:center}
.prod img{width:80px;height:80px;object-fit:contain;border-radius:12px;background:#fff;flex:none;border:1px solid var(--line)}
.reasons{margin:12px 0 0;padding:0;list-style:none}
.reasons li{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);line-height:1.45;font-size:15.5px}
.reasons li:last-child{border:0}
.reasons .dt{width:10px;height:10px;border-radius:50%;flex:none;margin-top:7px}
.nut{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px}
.nut div{background:var(--cream);border-radius:12px;padding:8px 4px;text-align:center}
.nut b{display:block;font-size:17px}
.nut span{font-size:11.5px;color:var(--muted)}
.books{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.book{cursor:pointer;text-align:center}
.book img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:12px;box-shadow:0 8px 20px rgba(28,43,58,.15);background:var(--sage)}
.book b{display:block;margin-top:8px;font-size:16px}
.book span{font-size:13px;color:var(--muted)}
.toc .cat{font-weight:800;font-size:18px;margin:18px 0 6px;color:var(--olive-d);cursor:pointer}
.toc .it{display:flex;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid var(--line);cursor:pointer;line-height:1.35}
.toc .it span{color:var(--muted);font-size:14px;flex:none}
.reader-bg{position:fixed;inset:0;background:#1d1f1b;z-index:20;display:none;flex-direction:column}
.reader-bg.show{display:flex}
.reader-top{display:flex;align-items:center;gap:10px;color:#fff;padding:12px 14px;padding-top:calc(12px + env(safe-area-inset-top))}
.reader-top b{flex:1;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reader-top button{background:rgba(255,255,255,.12);border:0;color:#fff;border-radius:10px;padding:8px 12px;font-weight:700;cursor:pointer}
.reader-page{flex:1;overflow:auto;display:flex;align-items:flex-start;justify-content:safe center;padding:6px;touch-action:pan-y pinch-zoom}
.reader-page img.zoom{max-width:none;width:220%}
.reader-page img{max-width:100%;cursor:zoom-in;border-radius:6px;background:#f5f0e8;min-height:300px}
.reader-nav{display:flex;align-items:center;gap:10px;padding:10px 14px calc(12px + env(safe-area-inset-bottom));color:#fff}
.reader-nav button{flex:1;background:rgba(255,255,255,.14);border:0;color:#fff;border-radius:12px;padding:13px;font-weight:700;font-size:16px;cursor:pointer}
.reader-nav span{min-width:70px;text-align:center;font-size:14px;opacity:.8}
.rotd{display:flex;gap:14px;align-items:center;cursor:pointer}
.rotd img{width:84px;height:84px;object-fit:cover;object-position:top;border-radius:14px;flex:none;background:var(--sage)}
/* v3 */
[dir=ltr] .metric .plus{left:auto;right:14px}
[dir=ltr] .metric .val{text-align:left}
[dir=ltr] .list .v{text-align:left}
[dir=ltr] .sheet .x{float:right}
.hdr-btns{margin-inline-start:auto;display:flex;gap:6px;align-items:center}
.hdr-btns button{background:var(--sage);border:0;color:var(--olive-d);font-weight:700;border-radius:99px;padding:7px 12px;font-size:13.5px;cursor:pointer}
.myday .top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ring{width:54px;height:54px;flex:none;position:relative}
.ring svg{transform:rotate(-90deg)}
.ring b{position:absolute;inset:0;display:grid;place-items:center;font-size:15px}
.dl{display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.dl .lab{font-weight:700;flex:1;min-width:120px}
.cups{display:flex;gap:4px;flex-wrap:wrap}
.cup{width:26px;height:32px;border:2px solid #9DB6C8;border-radius:4px 4px 8px 8px;background:#fff;cursor:pointer;position:relative;overflow:hidden;padding:0}
.cup.on{background:linear-gradient(#fff 25%,#7FB3D5 25%)}
.tog{width:52px;height:30px;border-radius:99px;background:#D9DCD2;border:0;position:relative;cursor:pointer;flex:none}
.tog::after{content:'';position:absolute;top:3px;inset-inline-start:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.tog.on{background:var(--olive)}
.tog.on::after{inset-inline-start:25px}
.chips.sm button{padding:6px 11px;font-size:14px}
.shop-dept{font-weight:800;color:var(--olive-d);margin:16px 0 4px}
.shop-it{display:flex;align-items:center;gap:12px;padding:11px 2px;border-bottom:1px solid var(--line);cursor:pointer}
.shop-it .bx{width:24px;height:24px;border:2px solid var(--leaf);border-radius:7px;flex:none;display:grid;place-items:center;color:#fff;font-weight:800}
.shop-it.c .bx{background:var(--olive);border-color:var(--olive)}
.shop-it.c span{text-decoration:line-through;color:var(--muted)}
.libcard{display:flex;align-items:center;gap:14px;cursor:pointer;margin-top:14px}
.libcard .ico{width:52px;height:52px;border-radius:14px;background:var(--sage);display:grid;place-items:center;flex:none;color:var(--olive)}
.reader-top .add{background:var(--olive)}
.ocr-bar{height:6px;background:var(--sage);border-radius:99px;overflow:hidden;margin-top:10px}
.ocr-bar i{display:block;height:100%;background:var(--olive);width:0;transition:width .3s}
.btn-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.prof-sec{margin-top:6px}
header .t b{font-size:17px;white-space:nowrap}
header .t span{white-space:nowrap}
.hdr-btns button{padding:7px 11px;white-space:nowrap}
@media (max-width:380px){header .t span{display:none}}
/* v4: chat + community */
nav button{font-size:11.5px}
.badge{display:inline-grid;place-items:center;min-width:18px;height:18px;border-radius:99px;background:#C2410C;color:#fff;font-size:11px;padding:0 5px;margin-inline-start:3px}
.chat-list{display:flex;flex-direction:column;gap:8px;padding:6px 0 90px}
.msg{max-width:80%;padding:10px 13px;border-radius:16px;line-height:1.45;font-size:16px;word-wrap:break-word;white-space:pre-wrap}
.msg.me{align-self:flex-start;background:var(--olive);color:#fff;border-end-start-radius:4px}
.msg.them{align-self:flex-end;background:#fff;border:1px solid var(--line);border-end-end-radius:4px}
.msg img{display:block;max-width:100%;border-radius:10px;margin-bottom:6px}
.msg .tm{font-size:11px;opacity:.7;margin-top:4px}
.chat-in{position:fixed;bottom:calc(64px + env(safe-area-inset-bottom));left:0;right:0;max-width:520px;margin:0 auto;display:flex;gap:8px;align-items:flex-end;padding:10px 14px;background:var(--cream);border-top:1px solid var(--line)}
.chat-in textarea{min-height:46px;max-height:120px;padding:11px 12px;resize:none}
.chat-ph{width:46px;height:46px;border-radius:12px;background:var(--sage);display:grid;place-items:center;color:var(--olive-d);flex:none;cursor:pointer;margin:0}
.post{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;margin-top:14px}
.post .ph{display:flex;align-items:center;gap:10px}
.post .av{width:40px;height:40px;border-radius:50%;background:var(--sage);display:grid;place-items:center;font-weight:800;color:var(--olive-d);flex:none}
.post .av.meir{background:var(--olive);color:#fff}
.post .bd{margin-top:10px;line-height:1.55;white-space:pre-wrap;word-wrap:break-word}
.post img.pi{width:100%;border-radius:12px;margin-top:10px}
.post .act{display:flex;gap:16px;margin-top:10px;padding-top:8px;border-top:1px solid var(--line)}
.post .act button{background:none;border:0;color:var(--muted);font-weight:700;cursor:pointer;padding:4px 0;font-size:15px}
.post .act button.on{color:#C2410C}
.post .cm{font-size:15px;padding:8px 10px;background:var(--cream);border-radius:12px;margin-top:6px;line-height:1.45}
.post .cm b{margin-inline-end:4px}
.post .cin{display:flex;gap:8px;margin-top:8px}
.post .cin input{padding:10px 12px;font-size:15px}
.kind{font-size:12px;font-weight:800;padding:2px 9px;border-radius:99px;margin-inline-start:auto}
html,body{overflow-x:hidden}
.hdr-btns{flex-wrap:nowrap;min-width:0}
.hdr-btns button.icon{padding:6px 9px;display:flex;align-items:center;gap:2px}
header .t{min-width:0}
.plate{margin-top:10px;background:#fff}
.plate-items{margin-top:8px;display:flex;flex-direction:column;gap:6px;font-size:15.5px}
.plate-items span[class^=dot-]{display:inline-block;width:9px;height:9px;border-radius:50%;margin-inline-end:7px;vertical-align:middle}
.dot-g{background:#3E8E5A}.dot-y{background:#C98A1B}.dot-r{background:#C2410C}
#admin-tabs button{font-size:14px;padding:9px 2px}
/* v6: plan */
.pcard{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;margin-top:12px}
.pcard h3{margin:0 0 4px;font-size:19px}
.task{display:flex;align-items:center;gap:12px;padding:11px 2px;border-bottom:1px solid var(--line);cursor:pointer}
.task:last-child{border:0}
.task .bx{width:26px;height:26px;border:2px solid var(--leaf);border-radius:8px;flex:none;display:grid;place-items:center;color:#fff;font-weight:800}
.task.c .bx{background:var(--olive);border-color:var(--olive)}
.task.c span{color:var(--muted)}
.psec b{display:block;margin:12px 0 4px;color:var(--olive-d)}
.psec li{margin:3px 0;line-height:1.5}
.psec ul{margin:0;padding-inline-start:20px}
.lb2{display:flex;align-items:center;gap:8px;padding:6px 0;font-size:15px}
.lb2 .bar{flex:1;height:8px;background:var(--sage);border-radius:99px;overflow:hidden}
.lb2 .bar i{display:block;height:100%;background:var(--olive)}
.exc{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 14px;margin-bottom:8px;cursor:pointer}
.exc .em{width:46px;height:46px;border-radius:12px;background:var(--sage);display:grid;place-items:center;font-weight:800;color:var(--olive-d);flex:none;font-size:13px;text-align:center;line-height:1.1}
.exc b{display:block}
.timer{font-size:56px;font-weight:800;text-align:center;direction:ltr;margin:10px 0;font-variant-numeric:tabular-nums}
.remrow{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.remrow:last-child{border:0}
.remrow .lab{flex:1;font-weight:700}
.remrow input[type=time]{width:120px;padding:8px}
.ach-members{display:flex;flex-wrap:wrap;gap:8px}
.ach-members label{display:flex;align-items:center;gap:6px;margin:0;font-weight:600;background:var(--cream);border:1px solid var(--line);border-radius:99px;padding:6px 12px;font-size:14px}
.ach-members input{width:auto}
.coach-mode .adm-only{display:none!important}
.msg .by{font-size:11.5px;font-weight:800;opacity:.75;margin-bottom:2px}
.bmi{margin-top:6px;font-size:13.5px;line-height:1.45}
.reco-it{display:inline-flex;align-items:center;gap:6px;border:1.5px solid var(--line);background:#fff;border-radius:99px;padding:7px 12px;margin:4px;font-size:15px;cursor:pointer}
.reco-it.in{border-color:var(--olive);background:var(--sage);color:var(--olive-d)}
/* v9 */
.alrow{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;margin-bottom:8px;cursor:pointer}
.alrow .dot{width:12px;height:12px;border-radius:50%;flex:none}
.badges{display:flex;flex-wrap:wrap;gap:10px}
.badge2{width:calc(33% - 7px);min-width:92px;text-align:center;padding:10px 6px;border-radius:14px;background:var(--cream);font-size:12.5px;line-height:1.3;opacity:.35}
.badge2.on{opacity:1;background:var(--sage)}
.badge2 .bi{font-size:26px;display:block;margin-bottom:4px}
.slotday{font-weight:800;margin:12px 0 6px;color:var(--olive-d)}
.slotbtn{display:inline-block;border:1.5px solid var(--line);background:#fff;border-radius:12px;padding:9px 13px;margin:4px;font-weight:700;cursor:pointer;font-size:15px}
.slotbtn.on{border-color:var(--olive);background:var(--olive);color:#fff}
.wk{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.wk div{background:var(--cream);border-radius:12px;padding:10px}
.wk b{font-size:20px;display:block;direction:ltr;text-align:right}
.wk .up{color:#C2410C}.wk .down{color:#3E8E5A}
#admin-tabs button{flex:1 0 30%}
.stages{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.stg{font-size:13px;font-weight:700;padding:5px 11px;border-radius:99px;background:var(--cream);color:var(--muted);border:1px solid var(--line)}
.stg.cur{background:var(--olive);color:#fff;border-color:var(--olive)}
.stg.done{background:var(--sage);color:var(--olive-d)}
.stage-cur{background:var(--cream);border-radius:14px;padding:12px 14px;margin-top:6px}
.ifbig{display:flex;align-items:center;gap:16px}
.ifring{width:96px;height:96px;flex:none;position:relative}
.ifring svg{transform:rotate(-90deg)}
.ifring b{position:absolute;inset:0;display:grid;place-items:center;font-size:20px;direction:ltr;line-height:1.1;text-align:center}
.ifbars{display:flex;gap:6px;align-items:flex-end;height:70px;margin-top:12px}
.ifbars div{flex:1;background:var(--sage);border-radius:6px 6px 0 0;position:relative}
.ifbars div.ok{background:var(--olive)}
.ifbars span{position:absolute;bottom:-18px;left:0;right:0;text-align:center;font-size:10.5px;color:var(--muted)}
.pinfo{display:grid;grid-template-columns:120px 1fr;gap:6px 12px;font-size:15px;line-height:1.5}
.pinfo dt{color:var(--muted);font-weight:700}
.pinfo dd{margin:0}
.pinfo .tagz span{display:inline-block;background:var(--sage);color:var(--olive-d);border-radius:99px;padding:2px 10px;margin:2px;font-size:13.5px;font-weight:700}
.ask{margin-top:12px;background:linear-gradient(135deg,#F4F7EC,#fff);border:2px solid #DDE6C8}
.ask-q{font-size:20px;font-weight:800;color:var(--olive-d)}
.ask-b{display:flex;gap:8px;flex-wrap:wrap}.ask-b .btn{display:inline-flex;align-items:center;gap:6px}
.photo-pick.pulse{animation:pp 1s ease-in-out 3;border-color:var(--olive)}
@keyframes pp{50%{transform:scale(1.04);background:#F4F7EC}}
/* personal protocol: classic, clean, centered */
.pp{background:#fff;border:1px solid var(--line);border-radius:22px;padding:26px 20px 20px;margin-top:12px;text-align:center;box-shadow:0 10px 30px rgba(63,82,51,.06)}
.pp-eyebrow{font-size:12px;letter-spacing:.14em;color:var(--leaf);font-weight:800}
.pp-title{font-family:'Frank Ruhl Libre',serif;font-weight:700;font-size:26px;margin:6px 0 16px;color:var(--olive-d);line-height:1.2}
.pp-steps{display:flex;align-items:flex-start;justify-content:center;gap:0;margin:0 auto 14px;max-width:420px}
.pp-step{display:flex;flex-direction:column;align-items:center;gap:6px;width:92px;flex:none}
.pp-step i{font-style:normal;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:14px;background:var(--cream);color:var(--muted);border:1.5px solid var(--line)}
.pp-step span{font-size:12px;color:var(--muted);line-height:1.25}
.pp-step.cur i{background:var(--olive);color:#fff;border-color:var(--olive);box-shadow:0 0 0 5px var(--sage)}
.pp-step.cur span{color:var(--olive-d);font-weight:800}
.pp-step.done i{background:var(--sage);color:var(--olive-d);border-color:var(--sage)}
.pp-line{flex:1;height:1.5px;background:var(--line);margin-top:15px;min-width:10px}
.pp-stage{font-size:15px;color:var(--muted)}.pp-stage b{color:var(--navy)}
.pp-chip{display:inline-block;font-size:12px;font-weight:700;background:var(--sage);color:var(--olive-d);border-radius:99px;padding:2px 10px;margin-inline-start:4px}
.pp-goal{font-family:'Frank Ruhl Libre',serif;font-size:17px;line-height:1.6;color:var(--navy);margin:12px auto 4px;max-width:440px}
.pp-sec{margin-top:24px}
.pp-sec h4{display:flex;align-items:center;gap:12px;margin:0 0 12px;font-family:'Frank Ruhl Libre',serif;font-size:19px;font-weight:700;color:var(--olive-d)}
.pp-sec h4::before,.pp-sec h4::after{content:'';flex:1;height:1px;background:var(--line)}
.pm{text-align:start}
.pm-row{display:flex;gap:14px;align-items:flex-start;padding:12px 4px;border-bottom:1px solid var(--line)}
.pm-row:last-child{border:0}
.pm-ic{width:38px;height:38px;border-radius:50%;background:var(--cream);border:1px solid var(--line);display:grid;place-items:center;flex:none;color:var(--olive)}
.pm-ic svg{width:20px;height:20px}
.pm-t{line-height:1.55;font-size:16px}.pm-t b{display:block;font-size:13px;letter-spacing:.04em;color:var(--olive);margin-bottom:1px}
.pw{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pw-it{background:var(--cream);border:1px solid var(--line);border-radius:16px;padding:14px 10px;cursor:pointer;display:flex;flex-direction:column;gap:4px;align-items:center;color:var(--navy)}
.pw-it b{font-size:16px}.pw-it span{font-size:13px;color:var(--muted)}.pw-it em{font-style:normal;font-size:13px;color:var(--olive);font-weight:700}
.pt{list-style:none;counter-reset:pt;padding:0;margin:0;text-align:start}
.pt li{counter-increment:pt;display:flex;gap:12px;align-items:flex-start;padding:10px 4px;line-height:1.55}
.pt li::before{content:counter(pt);flex:none;width:28px;height:28px;border-radius:50%;border:1.5px solid var(--olive);color:var(--olive);display:grid;place-items:center;font-weight:800;font-size:14px;font-family:'Frank Ruhl Libre',serif}
.pk{text-align:start}
.pk-head{display:flex;align-items:center;gap:10px;margin-bottom:4px}.pk-head span{font-size:13px;color:var(--muted);white-space:nowrap}
.pk-bar{flex:1;height:6px;border-radius:3px;background:var(--sage);overflow:hidden}.pk-bar i{display:block;height:100%;background:var(--olive);border-radius:3px;transition:width .3s}
.pr2{display:grid;grid-template-columns:1fr 1fr;gap:10px;text-align:start}
.pr2>div{border-radius:16px;padding:12px 14px;font-size:14.5px;line-height:1.5}.pr2 ul{margin:6px 0 0;padding-inline-start:16px}.pr2 li{margin:3px 0}
.pr-add{background:#F1F6EA}.pr-add b{color:var(--ok)}.pr-rm{background:#FBF1EC}.pr-rm b{color:var(--high)}
@media(max-width:380px){.pr2,.pw{grid-template-columns:1fr}}
.pp-ul{text-align:start;line-height:1.6;margin:0;padding-inline-start:20px}
.pp-more{margin-top:22px;text-align:start;border-top:1px solid var(--line);padding-top:6px}
.pp-more details{padding:8px 2px;border-bottom:1px solid var(--line)}.pp-more summary{cursor:pointer;font-weight:700;color:var(--muted)}
.pp-foot{margin-top:14px;font-size:13px;color:var(--muted)}
.ex-anim{background:var(--cream);border:1px solid var(--line);border-radius:18px;margin:0 0 14px;overflow:hidden}
.ex-anim svg,.pw-anim svg,.ex-th svg{display:block;width:100%;height:auto}
.pw-anim{width:100%;background:#fff;border-radius:12px;margin-bottom:6px;overflow:hidden}
.ex-th{width:74px;flex:none;background:var(--cream);border-radius:12px;overflow:hidden;border:1px solid var(--line)}
/* learn corner */
.learncard{border:1.5px solid #DDE6C8;background:linear-gradient(135deg,#F4F7EC,#fff)}
.guides{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.guide{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 8px;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer;color:var(--navy);font:inherit;text-align:center}
.guide b{font-size:13.5px;line-height:1.3}
.gi{width:40px;height:40px;border-radius:50%;background:var(--sage);display:grid;place-items:center;color:var(--olive-d)}
.gi svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.art-it{display:block;width:100%;text-align:start;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;margin-top:10px;cursor:pointer;font:inherit;color:var(--navy)}
.art-it b{display:block;font-family:'Frank Ruhl Libre',serif;font-size:18px;line-height:1.3;margin:3px 0 4px;color:var(--olive-d)}
.art-it .ac{font-size:12px;color:var(--leaf);font-weight:800}.art-it .ah{font-size:14px;color:var(--muted);line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.art-it.read{opacity:.8}
.art-sheet{max-width:620px}
.art{padding:4px 2px 10px}
.art h1{font-family:'Frank Ruhl Libre',serif;font-size:27px;line-height:1.25;color:var(--olive-d);margin:6px 0 10px}
.art-hook{font-family:'Frank Ruhl Libre',serif;font-size:18px;line-height:1.55;color:var(--navy);margin:0 0 8px}
.art-meta{font-size:13px;color:var(--muted);padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:6px}
.art h3{font-family:'Frank Ruhl Libre',serif;font-size:20px;color:var(--olive-d);margin:22px 0 6px}
.art p{line-height:1.75;margin:10px 0}.art ul{line-height:1.7;padding-inline-start:20px;margin:6px 0}.art li{margin:4px 0}
.art blockquote{margin:18px 0;padding:14px 16px;background:var(--cream);border-inline-start:4px solid var(--olive);border-radius:10px;font-family:'Frank Ruhl Libre',serif;font-size:17px;line-height:1.6}
.art-cta{margin:24px 0 8px;padding:18px;border-radius:18px;background:#F1F6EA;text-align:center}.art-cta b{display:block;margin-bottom:10px;font-size:17px}
.ladder{margin:14px 0}
.lv{display:flex;gap:12px;align-items:flex-start;padding:12px;border-radius:14px;margin-bottom:8px}
.lv i{font-style:normal;flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800}
.lv b{display:block;font-size:16px}.lv-it{display:block;font-size:15px;margin:2px 0}.lv-why{display:block;font-size:13.5px;color:var(--muted);line-height:1.5}
.lv0{background:#EAF3E3}.lv0 i{background:#3E8E5A}.lv1{background:#F1F5E6}.lv1 i{background:#7A9A4E}.lv2{background:#FBF5E6}.lv2 i{background:#C98A1B}.lv3{background:#FBEEE6}.lv3 i{background:#C2610C}.lv4{background:#FBEAEA}.lv4 i{background:#B91C1C}
.stim{display:grid;gap:8px;margin:14px 0}.st-it{border:1px solid var(--line);border-radius:14px;padding:10px 14px}.st-it b{display:block;color:var(--high)}.st-it span{font-size:14.5px;color:var(--muted);line-height:1.5}
.rules li{align-items:flex-start}.rules li div b{display:block;font-size:16px}.rules li div span{font-size:14.5px;color:var(--muted);line-height:1.55}
.nudge{display:flex;align-items:center;gap:10px;margin-top:10px;padding:10px 14px;border-radius:14px;background:#fff;border:1px solid var(--line);border-inline-start:4px solid var(--olive);font-size:14.5px;line-height:1.45}
.nudge span{flex:1}.nudge button{flex:none;background:none;border:0;color:var(--olive);font-weight:800;font-size:14.5px;cursor:pointer;padding:4px 0}
.intro-card{border:1.5px solid #DDE6C8;background:linear-gradient(135deg,#F4F7EC,#fff);margin-bottom:12px}
.pop{position:fixed;inset:0;z-index:60;display:flex;align-items:flex-end;justify-content:center;background:rgba(28,43,58,0);transition:background .25s;padding:16px}
.pop.show{background:rgba(28,43,58,.35)}
.pop-card{position:relative;width:100%;max-width:440px;background:#fff;border-radius:24px;padding:26px 22px 18px;text-align:center;box-shadow:0 20px 60px rgba(28,43,58,.25);transform:translateY(40px);opacity:0;transition:transform .3s,opacity .3s}
.pop.show .pop-card{transform:none;opacity:1}
.pop-card .x{position:absolute;top:10px;left:14px;background:none;border:0;font-size:26px;color:var(--muted);cursor:pointer;line-height:1}
.pop-ic{width:56px;height:56px;border-radius:50%;background:var(--sage);color:var(--olive-d);display:grid;place-items:center;margin:0 auto 10px}.pop-ic svg{width:28px;height:28px}
.pop-card h3{font-family:'Frank Ruhl Libre',serif;font-size:24px;color:var(--olive-d);margin:6px 0 8px}
.pop-card p{line-height:1.6;margin:0 0 16px;color:var(--navy)}
.pop-later{display:block;margin:10px auto 0;background:none;border:0;color:var(--muted);font:inherit;font-size:14px;cursor:pointer}
.pilot{background:#F4F7EC;border:1px solid #DDE6C8;border-radius:14px;padding:12px 14px;margin-bottom:6px;line-height:1.5}
.pilot b{display:block;color:var(--olive-d);font-size:15.5px;margin-bottom:2px}.pilot span{font-size:14px;color:var(--navy)}
.ubars{display:flex;align-items:flex-end;gap:4px;height:90px;margin-top:16px}
.ubars div{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:3px}
.ubars i{display:block;width:100%;min-height:2px;background:var(--olive);border-radius:4px 4px 0 0}
.ubars span{font-size:10px;color:var(--muted)}
.utab{width:100%;border-collapse:collapse;font-size:14px}.utab th{text-align:start;font-size:12px;color:var(--muted);font-weight:700;padding:6px 4px;border-bottom:1px solid var(--line)}
.utab td{padding:8px 4px;border-bottom:1px solid var(--line)}.utab tr[data-u]{cursor:pointer}
.tour{position:fixed;inset:0;z-index:70;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(28,43,58,0);transition:background .25s}
.tour.show{background:rgba(28,43,58,.45)}
.tour-card{position:relative;width:100%;max-width:400px;background:#fff;border-radius:26px;padding:34px 24px 22px;text-align:center;box-shadow:0 24px 70px rgba(28,43,58,.3);transform:scale(.94);opacity:0;transition:transform .3s,opacity .3s}
.tour.show .tour-card{transform:none;opacity:1}
.tour-skip{position:absolute;top:14px;left:16px;background:none;border:0;color:var(--muted);font:inherit;font-size:14px;cursor:pointer}
.tour-ic{width:76px;height:76px;border-radius:50%;background:var(--sage);color:var(--olive-d);display:grid;place-items:center;margin:4px auto 14px}.tour-ic svg{width:38px;height:38px}
.tour-card h3{font-family:'Frank Ruhl Libre',serif;font-size:25px;color:var(--olive-d);margin:0 0 10px}
.tour-card p{line-height:1.65;margin:0 auto 18px;max-width:320px;min-height:78px}
.tour-dots{display:flex;gap:6px;justify-content:center;margin-bottom:16px}.tour-dots i{width:7px;height:7px;border-radius:4px;background:var(--line);transition:width .2s}.tour-dots i.on{width:22px;background:var(--olive)}
.prof-links{text-align:center;margin-top:16px;font-size:14px;color:var(--muted)}.prof-links a{color:var(--olive);font-weight:700;text-decoration:none}.prof-links .danger-link{color:var(--danger)}
.btn.danger{background:var(--danger);border-color:var(--danger);color:#fff}
.pilot small{display:block;margin-top:6px;font-size:12.5px;color:var(--muted)}
.med-disc{margin-bottom:10px}
.coach-claim{margin-top:16px;border:1px solid var(--line);border-radius:14px;padding:10px 14px;background:#fff}.coach-claim summary{cursor:pointer;font-weight:700;color:var(--olive)}
.coach-bar{display:flex;align-items:center;gap:10px;margin-top:8px;padding:10px 14px;border-radius:14px;background:var(--sage);font-size:14.5px;font-weight:700;color:var(--olive-d)}.coach-bar span{flex:1}.coach-bar button{background:none;border:0;color:var(--olive-d);font:inherit;font-weight:800;cursor:pointer}
.coach-only{display:none}body.coach-mode .coach-only{display:inline-flex}
.coach-only-block{display:none;margin-top:10px}body.coach-mode .coach-only-block{display:block}
.linkrow{display:flex;gap:8px}.linkrow input{flex:1;font-size:13px}
.art-it.has-img{display:grid;grid-template-columns:96px 1fr;column-gap:14px;align-items:start}
.art-it.has-img .art-th{grid-row:span 3;width:96px;height:96px;object-fit:cover;border-radius:12px}
.art-hero{width:calc(100% + 4px);margin:-4px -2px 14px;height:210px;object-fit:cover;border-radius:16px;display:block}
.my-coach{display:flex;align-items:center;gap:12px;margin-top:10px;padding:12px 14px;border-radius:16px;background:#fff;border:1px solid var(--line)}
.my-coach b{display:block;font-size:17px;color:var(--olive-d)}.mc-ic{width:44px;height:44px;flex:none;border-radius:50%;background:var(--sage);color:var(--olive-d);display:grid;place-items:center}.mc-ic svg{width:24px;height:24px}
.coach-invite{background:#fff;border:1.5px solid var(--olive);border-radius:14px;padding:12px 14px;margin-bottom:8px;line-height:1.5}.coach-invite b{display:block;color:var(--olive-d);font-size:16px}.coach-invite span{font-size:14px}
