/* Shared surfaces keep the selected palette, text scale and contrast settings. */
html[data-look=v2] #app-shell {
  --surface-edge:color-mix(in srgb,var(--tx) 13%,var(--s1));
  --surface-shadow:0 3px 12px -8px rgba(15,23,42,.24);
}
html[data-look=v2] #content-area .card {
  border-radius:18px;border-color:var(--surface-edge);box-shadow:var(--surface-shadow);
}
html[data-look=v2] #content-area .hm-h,
html[data-look=v2] #content-area .fc-section-heading h3 {letter-spacing:-.025em;line-height:1.3}
html[data-look=v2] #content-area :is(.btn,.inp){border-radius:11px}
html[data-look=v2] #content-area .btn:not(.p):not(:disabled):hover{border-color:var(--mut)}
html[data-look=v2] #sidebar .sb-nav{gap:4px;padding-block:1rem}
html[data-look=v2] #sidebar .sb-nav .sb-item{border-radius:12px}
html[data-look=v2] #sidebar .sb-nav .sb-item.on{background:color-mix(in srgb,var(--a1) 14%,var(--s1));color:var(--tx)}
html[data-look=v2] #apphd{border-bottom-color:var(--surface-edge);box-shadow:none}
html[data-look=v2] #layout-members button{border-radius:999px}
html[data-look=v2] .sbs-sec{border-radius:16px}
#scAdBody .sc-adg .sc-tilb {
  display:grid;grid-template-columns:1fr auto;gap:.3rem;text-align:start;
  padding:clamp(.55rem,1.6vw,1rem);border-radius:14px;background:var(--sbtn);align-items:center
}
#scAdBody .sc-tilb>b{grid-area:1/1;font-size:clamp(1.35rem,3vw,2rem);letter-spacing:-.045em}
#scAdBody .sc-tilb>span{grid-area:1/2;font-size:.85rem}
#scAdBody .sc-tilb>small{grid-column:1/-1;text-align:start;color:var(--mut)}
#fi.practice-tour[open] {
  opacity:1;position:fixed;inset:0;margin:auto;width:min(30rem,calc(100% - 2rem));height:fit-content;
  max-height:calc(100dvh - 3rem);overflow:auto;background:var(--s1);color:var(--tx);
  border:1px solid var(--bd);border-radius:24px;cursor:auto;box-shadow:0 18px 65px #0004;
}
#fi.practice-tour::backdrop{background:rgba(6,12,20,.65)}
.practice-panel{padding:clamp(18px,4vw,32px)}
.practice-panel header{display:flex;align-items:center;justify-content:space-between;font-weight:650;color:var(--mut)}
.practice-figure{height:112px;margin:.6rem 0 1.2rem;background:linear-gradient(115deg,var(--sbtn),color-mix(in srgb,var(--a1) 13%,var(--s1)));border-radius:16px;display:grid;place-items:center}
.practice-figure svg{width:auto;height:96px}
.practice-panel h2{font-size:clamp(1.4rem,3vw,1.85rem);line-height:1.18;letter-spacing:-.035em;font-weight:750}
.practice-copy,.plan-options p,#plan-status{color:var(--mut);font-size:.94rem;line-height:1.55}
.practice-copy{margin:.65rem 0 1.2rem}
.practice-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.plan-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.75rem;margin:1rem 0}
.plan-options section{padding:1rem;border:1px solid var(--bd);border-radius:15px}
.plan-options section:last-child{background:var(--sbtn);border-color:var(--a1)}
.plan-options h4{font-size:1.2rem;font-weight:750}.plan-options p{margin:.55rem 0 0}
#scAdBody .sc-tilb>span{color:var(--mut)}
#scAdBody .sc-tilb:nth-child(2)>span{color:var(--a1)}
.practice-clock{display:block;font-size:2rem;font-variant-numeric:tabular-nums;margin-top:.75rem}

/* v646: plans sheet and Pro badge */
.pl-wrap{width:min(720px,92vw);max-height:86vh;overflow:auto}
.pl-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:.9rem}.pl-top h3{font-weight:750;font-size:1.15rem}
.pl-stat{display:flex;gap:.75rem;align-items:center;padding:.8rem 1rem;border:1px solid var(--bd);border-radius:14px;color:var(--mut);font-size:.92rem;line-height:1.5;min-height:2.8rem}
.pl-stat.pl-on{border-color:#d4a73a;background:linear-gradient(135deg,rgba(212,167,58,.16),rgba(212,167,58,.04));color:var(--tx)}
.pl-crown{flex:none;display:inline-flex;width:26px;color:#d4a73a}.pl-crown svg{width:100%;height:auto}
.pl-ctl{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:space-between;margin:1rem 0}
.pl-seg{display:inline-flex;padding:3px;border:1px solid var(--bd);border-radius:999px;gap:2px}
.pl-seg button{padding:.38rem .85rem;border-radius:999px;font-size:.86rem;font-weight:600;color:var(--mut);background:none;border:0;cursor:pointer}
.pl-seg button i{font-style:normal;font-size:.68rem;margin-left:.35rem;color:#16a34a}
.pl-seg button.on{background:var(--tx);color:var(--bg,#000)}.pl-seg button.on i{color:inherit;opacity:.8}
.pl-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.8rem}
.pl-card{position:relative;padding:1.1rem;border:1px solid var(--bd);border-radius:18px;display:flex;flex-direction:column;gap:.55rem}
.pl-card h4{font-size:1.2rem;font-weight:750}
.pl-pro{border-color:#d4a73a;background:linear-gradient(180deg,rgba(212,167,58,.10),transparent 60%)}
.pl-pro>.pl-crown{position:absolute;top:1rem;right:1rem}
.pl-price{font-size:1.75rem;font-weight:800;line-height:1.1}.pl-price small{font-size:.8rem;font-weight:500;color:var(--mut)}
.pl-sub{min-height:1.1rem;font-size:.82rem;color:#16a34a;font-weight:600}
.pl-card ul{list-style:none;margin:.3rem 0 0;padding:0;display:grid;gap:.5rem;font-size:.92rem;line-height:1.4;color:var(--mut)}
.pl-card li{display:flex;gap:.55rem}.pl-card li svg{flex:none;width:16px;margin-top:.15rem;color:#d4a73a}
.pl-buy{margin-top:auto;width:100%;justify-content:center}.pl-buy:disabled{opacity:.55;cursor:default}
#sbprobadge{display:inline-flex;align-items:center;gap:.3rem;margin-right:.4rem;padding:.22rem .55rem;border-radius:999px;border:1px solid #d4a73a;background:rgba(212,167,58,.14);color:#d4a73a;font:800 .66rem/1 Inter,system-ui,sans-serif;letter-spacing:.08em;cursor:pointer}
#sbprobadge svg{width:14px;height:auto}
@media(max-width:480px){#sbprobadge span{display:none}#sbprobadge{padding:.3rem .4rem}}
.pl-welcome{text-align:center;padding:.8rem .4rem;width:100%;max-width:380px;margin:0 auto;box-sizing:border-box}.pl-welcome .sb-prem.big{margin-inline:auto}.pl-welcome h3{font-size:1.3rem;font-weight:800;margin:.4rem 0;text-wrap:balance}.pl-welcome p{color:var(--mut);line-height:1.55;margin:.4rem 0;text-wrap:pretty;overflow-wrap:anywhere}.pl-welcome .btn{margin-top:.9rem;min-width:11rem}.pl-mut{font-size:.85rem}@media(max-width:480px){.pl-welcome{padding:.5rem 0}.pl-welcome h3{font-size:1.2rem}.pl-welcome .btn{width:100%}}
.pl-bigcrown{width:64px;margin:0 auto;color:#d4a73a}.pl-bigcrown svg{width:100%;height:auto}

/* v647: redesigned plans sheet + Pro crown glow */
.pl-wrap{width:min(760px,94vw)}
.pl-top{align-items:flex-start;margin-bottom:1rem}.pl-top p{margin:.25rem 0 0;font-size:.88rem;color:var(--mut)}
.pl-ic{flex:none;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:13px;background:rgba(148,163,184,.14);color:var(--mut)}
.pl-ic svg{width:22px;height:auto}.pl-ic.pl-gold{background:linear-gradient(135deg,rgba(245,200,80,.32),rgba(212,167,58,.12));color:#e0a21a}.pl-ic.pl-gold svg{width:24px}
.pl-stat{padding:.9rem 1rem;border-radius:16px}
.pl-stat.pl-on{border-color:rgba(212,167,58,.7);background:linear-gradient(135deg,rgba(212,167,58,.22),rgba(212,167,58,.05))}
.pl-grid{gap:1rem;align-items:stretch}
.pl-card{padding:1.25rem;border-radius:20px;gap:.7rem;background:rgba(148,163,184,.05)}
.pl-head{display:flex;align-items:center;gap:.8rem}.pl-head h4{font-size:1.25rem;line-height:1.1}.pl-head .pl-price{margin-top:.2rem}
.pl-tag{margin-left:auto;align-self:flex-start;padding:.2rem .6rem;border-radius:999px;font-size:.68rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;border:1px solid var(--bd);color:var(--mut)}
.pl-tag[hidden]{display:none}.pl-tag-gold{border-color:#d4a73a;background:rgba(212,167,58,.16);color:#e0a21a}
.pl-lead{font-size:.74rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--mut);padding-top:.7rem;border-top:1px solid var(--bd)}
.pl-pro{border-width:1.5px;box-shadow:0 10px 30px -14px rgba(212,167,58,.55);background:linear-gradient(180deg,rgba(212,167,58,.16),rgba(212,167,58,.02) 65%)}
.pl-pro>.pl-crown{display:none}
.pl-card ul{gap:.65rem;color:var(--tx)}.pl-card li{align-items:flex-start}
.pl-card li svg{width:18px;padding:2px;border-radius:50%;background:rgba(212,167,58,.18)}
.pl-card:not(.pl-pro) li svg{background:rgba(148,163,184,.18);color:var(--mut)}
.crwn-w .crwn svg{filter:drop-shadow(0 0 4px rgba(245,200,80,.45))}

#sec-premium .pl-wrap{width:100%;max-width:60rem;max-height:none;margin:0 auto;overflow:visible;padding:clamp(.5rem,2vw,2rem)}
#sec-premium .pl-card{min-width:0} #sec-premium .pl-top h3{font-size:clamp(1.8rem,4vw,2.6rem)}

#pl-choice:empty{display:none}

.region-note{margin:.2rem auto .4rem;width:min(100%,32rem);font-size:.9rem;line-height:1.5;text-align:start;opacity:.85}
.region-fields{display:grid;gap:.85rem;width:min(100%,32rem);margin:1rem auto;text-align:start}
.region-fields label{display:grid;gap:.32rem;min-width:0;font-size:.88rem;font-weight:650}
.region-fields select{width:100%;max-width:100%;font:inherit;color:inherit}
.comp-preview{display:flex;align-items:center;gap:1.2rem;max-width:30rem;margin:1.1rem auto;padding:1rem 1.35rem;border:1px solid var(--bd);border-radius:1.25rem;background:var(--s1);text-align:start}
.comp-preview svg{width:30%;height:7rem;flex:none}
/* v683: Bony is cream, so on the light screen he looked faded. He now stands on a dark stage. */
.comp-preview .comp-stage{display:flex;align-items:center;justify-content:center;flex:none;width:30%;padding:.55rem .4rem;border-radius:1.1rem}
.comp-preview .comp-stage svg{width:100%;height:7rem}
.comp-preview .comp-stage.dk{background:radial-gradient(120% 90% at 50% 25%,#3a3f52 0%,#1b1e2a 55%,#0d0f16 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 6px 18px rgba(13,15,22,.28)}.comp-preview strong{font-size:1.35rem}.comp-preview p{color:var(--mut);line-height:1.5}
#obcc .obcs,#obcc .obcd i,#obcc .obcd::after{display:none}
#obcc{display:flex;gap:.5rem;max-width:30rem;margin:.85rem auto}#obcc .obcd{flex:1;border-radius:.8rem;padding:.65rem .3rem;animation:none;transform:none;box-shadow:none;background:var(--s1)}
#obcc .obcd.on{border-color:var(--a1);background:var(--sbtn)}
.practice-panel{max-width:35rem;margin:auto;text-align:start}.practice-figure{height:5rem;background:none;justify-content:start;margin:.45rem 0}.practice-figure svg{height:5rem}
.practice-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));gap:.55rem}.practice-actions button{min-height:44px}
html[dir=rtl] .sbs-nav{border-right:0;border-inline-end:1px solid var(--bd);padding-right:0;padding-inline-end:.9rem}
html[dir=rtl] :is(.sb-item,.sbs-row,.sbs-nav button,.layout-field,.pl-card,.cm-c,.practice-panel,.obol){text-align:start}
html[dir=rtl] #sidebar{border-right:0;border-inline-end:1px solid var(--bd)}
html[dir=rtl] :is(#sidebar-toggle svg,.obn-back svg){transform:scaleX(-1)}
#zsx,#sbsc,.comp-preview svg,.practice-figure svg,.practice-clock,canvas,input[type=email],input[type=number],input[type=time]{direction:ltr}

/* v660: Premium badge. A small gold gem badge on the top-right of the profile picture; it scales with the picture. */
.prm-w{position:relative;display:inline-block;flex:none;vertical-align:middle;line-height:0}
.sb-prem{position:absolute;z-index:3;top:-3px;right:-3px;display:block;aspect-ratio:1;border-radius:50%;line-height:0;pointer-events:none;background:linear-gradient(145deg,#ffeaa5 0%,#f3b82e 55%,#d98a0b 100%);box-shadow:inset 0 1px 1px rgba(255,255,255,.6),0 0 0 2px var(--bg,#0b1220),0 2px 6px rgba(0,0,0,.35)}
.sb-prem svg{display:block;width:100%;height:100%}
.sb-prem[hidden]{display:none}
.sc-ring>.sb-prem.on-ring,.sc-lvr>.sb-prem.on-ring{width:clamp(20px,26%,30px);top:2%;right:2%}
.sb-prem.big{position:relative;top:auto;right:auto;width:72px;margin:0 auto .5rem;box-shadow:inset 0 2px 2px rgba(255,255,255,.55),0 10px 24px -8px rgba(217,138,11,.7)}

/* v661: simpler, calmer Premium page + member view for people who already have Pro */
#sec-premium{--gold:#d4a73a;--gold-t:color-mix(in srgb,#d4a73a 78%,var(--tx));--surf:rgba(148,163,184,.07)}
#sec-premium .pl-wrap{max-width:56rem;padding:clamp(.5rem,2vw,2rem) clamp(.25rem,2vw,1rem) 3rem}
#sec-premium .pl-top{display:block;margin-bottom:1.4rem}
#sec-premium .pl-top h3{font-weight:800;letter-spacing:-.02em;line-height:1.05}
#sec-premium .pl-top p{font-size:1rem;margin-top:.5rem}
#sec-premium .pl-stat[hidden],#sec-premium .pl-hero[hidden]{display:none}
#sec-premium .pl-stat{border:0;background:var(--surf);border-radius:14px}
#sec-premium .pl-note{margin-top:1rem;background:none;padding:0;min-height:0;font-size:.88rem}

/* plan switchers */
#sec-premium .pl-ctl{margin:1.25rem 0 1.1rem}
#sec-premium .pl-seg{border:0;background:var(--surf);padding:4px}
#sec-premium .pl-seg button{padding:.5rem 1rem;transition:background .15s,color .15s}
#sec-premium .pl-seg button.on{background:var(--tx);color:var(--bg,#000)}
#sec-premium .pl-seg button:focus-visible,#sec-premium .pl-buy:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

/* plan cards */
#sec-premium .pl-grid{gap:1rem}
#sec-premium .pl-card{padding:1.5rem;border-radius:22px;gap:1rem;background:none;border:1px solid var(--bd);box-shadow:none}
#sec-premium .pl-card.pl-pro{border:1.5px solid var(--gold);background:linear-gradient(180deg,rgba(212,167,58,.09),rgba(212,167,58,0) 45%)}
#sec-premium .pl-head{align-items:flex-start}
#sec-premium .pl-head h4{font-size:1rem;font-weight:700;color:var(--mut);letter-spacing:0}
#sec-premium .pl-price{font-size:2.3rem;font-weight:800;letter-spacing:-.025em;margin-top:.3rem}
#sec-premium .pl-sub{min-height:1.2rem;margin-top:.35rem;color:#22a05a}
#sec-premium .pl-tag{text-transform:none;letter-spacing:0;font-size:.78rem;font-weight:700;padding:.25rem .7rem}
#sec-premium .pl-tag-gold{background:var(--gold);border-color:var(--gold);color:#2b1d00}
#sec-premium .pl-lead{text-transform:none;letter-spacing:0;font-size:.9rem;font-weight:700;color:var(--tx);border-top:1px solid var(--bd);padding-top:1rem}
#sec-premium .pl-card ul{gap:.7rem;font-size:.94rem;color:var(--tx)}
#sec-premium .pl-card li{gap:.65rem;line-height:1.45}
#sec-premium .pl-card li svg{width:16px;padding:0;background:none;border-radius:0;margin-top:.22rem;color:var(--mut)}
#sec-premium .pl-card.pl-pro li svg{color:var(--gold-t)}
#sec-premium .pl-buy{min-height:48px;border-radius:14px;font-weight:700;margin-top:.5rem}
#sec-premium .pl-pro .pl-buy{background:var(--gold);border-color:var(--gold);color:#2b1d00}
#sec-premium .pl-pro .pl-buy:hover:not(:disabled){filter:brightness(1.07)}

/* member view */
#sec-premium .pl-hero{position:relative;overflow:hidden;border-radius:26px;padding:clamp(1.25rem,3vw,2rem);border:1px solid rgba(212,167,58,.45);background:radial-gradient(120% 140% at 0% 0%,rgba(212,167,58,.22),rgba(212,167,58,0) 55%),var(--surf)}
#sec-premium .pl-hero-main{display:flex;gap:1.25rem;align-items:center;flex-wrap:wrap}
#sec-premium .pl-medal{flex:none;position:relative;display:grid;place-items:center;width:76px;height:76px;border-radius:50%;color:#3a2600;background:linear-gradient(145deg,#f8d56b,#d4a73a 60%,#b98716);box-shadow:0 0 0 6px rgba(212,167,58,.16),0 12px 32px -8px rgba(212,167,58,.6);overflow:hidden}
#sec-premium .pl-medal svg{width:38px;height:auto}
#sec-premium .pl-medal::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.65) 50%,transparent 65%);transform:translateX(-120%);animation:plShine 1.4s .35s ease-out 1 forwards}
@keyframes plShine{to{transform:translateX(120%)}}
#sec-premium .pl-hero-text{flex:1;min-width:13rem}
#sec-premium .pl-hero-text h4{font-size:clamp(1.3rem,3vw,1.7rem);font-weight:800;letter-spacing:-.02em;line-height:1.15}
#sec-premium .pl-days{display:flex;align-items:baseline;gap:.5rem;margin-top:.55rem}
#sec-premium .pl-days b{font-size:2.4rem;font-weight:800;line-height:1;letter-spacing:-.03em;color:var(--gold-t);font-variant-numeric:tabular-nums}
#sec-premium .pl-days span{color:var(--mut);font-weight:600}
#sec-premium .pl-until{margin-top:.35rem;color:var(--mut);font-size:.92rem;line-height:1.5;max-width:34rem}
#sec-premium .pl-chip{display:inline-block;margin-top:.7rem;padding:.3rem .75rem;border-radius:999px;background:rgba(212,167,58,.16);color:var(--gold-t);font-size:.82rem;font-weight:700}
#sec-premium .pl-perks-h{margin:1.6rem 0 .75rem;font-weight:700;font-size:.95rem}
#sec-premium .pl-perks{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15.5rem),1fr));gap:.6rem}
#sec-premium .pl-perks li{display:flex;gap:.75rem;align-items:center;padding:.8rem .9rem;border-radius:16px;background:rgba(148,163,184,.08)}
#sec-premium .pl-pi{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:rgba(212,167,58,.16);color:var(--gold-t)}
#sec-premium .pl-pi svg{width:20px;height:20px}
#sec-premium .pl-perks b{display:block;font-size:.92rem;font-weight:700}
#sec-premium .pl-perks li span:not(.pl-pi){display:block;font-size:.82rem;color:var(--mut);line-height:1.35;margin-top:.1rem}
/* members: drop the Free card, keep Premium as a quiet "add time" box */
#sec-premium .pl-member #pl-cf,#sec-premium .pl-member #pl-cp ul,#sec-premium .pl-member #pl-tp,#sec-premium .pl-member .pl-note{display:none}
#sec-premium .pl-member .pl-grid{grid-template-columns:1fr;margin-top:0}
#sec-premium .pl-member #pl-cp{border:1px solid var(--bd);background:none;display:grid;grid-template-columns:1fr auto;align-items:center;gap:.9rem 1.5rem}
#sec-premium .pl-member #pl-cp .pl-head{grid-column:1}#sec-premium .pl-member #pl-cp .pl-lead{grid-column:1;grid-row:1;border:0;padding:0;order:-1;color:var(--mut);font-weight:600}
#sec-premium .pl-member #pl-cp .pl-head h4{display:none}
#sec-premium .pl-member #pl-cp .pl-price{font-size:1.6rem;margin-top:0}
#sec-premium .pl-member #pl-cp .pl-buy{grid-column:2;grid-row:1/3;width:auto;min-width:11rem;margin:0;background:none;color:var(--tx);border:1px solid var(--bd)}
#sec-premium .pl-member .pl-ctl{margin-top:1.6rem}
@media(max-width:560px){#sec-premium .pl-member #pl-cp{grid-template-columns:1fr}#sec-premium .pl-member #pl-cp .pl-buy{grid-column:1;grid-row:auto;width:100%}}
@media(prefers-reduced-motion:reduce){#sec-premium .pl-medal::after{animation:none;opacity:0}}
#sec-premium .pl-top p{margin:.4rem 0 0}
#sec-premium .pl-hero-text h4{margin:0}
#sec-premium .pl-perks{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:620px){#sec-premium .pl-perks{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v661b: Free vs Premium comparison table */
#sec-premium .pl-cmp{margin-top:2.2rem}
#sec-premium .pl-cmp>h4{font-size:1.25rem;font-weight:800;letter-spacing:-.01em;margin:0 0 1rem}
#sec-premium .pl-cmp-h,#sec-premium .pl-cmp-r{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1.2fr);gap:1rem;align-items:center}
#sec-premium .pl-cmp-h{padding:0 .25rem .6rem;font-size:.85rem;font-weight:700;color:var(--mut);border-bottom:1px solid var(--bd)}
#sec-premium .pl-cmp-h span:last-child{color:var(--gold-t)}
#sec-premium .pl-cmp-g{margin-top:1.3rem}
#sec-premium .pl-cmp-g h5{margin:0 0 .3rem;font-size:.95rem;font-weight:800}
#sec-premium .pl-cmp-r{padding:.7rem .25rem;border-bottom:1px solid var(--bd);font-size:.92rem;line-height:1.4}
#sec-premium .pl-k{color:var(--tx)}
#sec-premium .pl-f{color:var(--mut)}
#sec-premium .pl-p{font-weight:700;color:var(--tx);border-radius:10px}
#sec-premium .pl-yes svg{width:18px;color:var(--gold-t)}
#sec-premium .pl-no{color:var(--mut);opacity:.6}
#sec-premium .pl-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
#sec-premium .pl-cmp-foot{margin:1.2rem 0 0;color:var(--mut);font-size:.88rem}
#sec-premium .pl-member .pl-cmp{display:none}
@media(max-width:560px){
 #sec-premium .pl-cmp-h{display:none}
 #sec-premium .pl-cmp-r{grid-template-columns:1fr 1fr;gap:.35rem 1rem}
 #sec-premium .pl-k{grid-column:1/-1;font-weight:700}
 #sec-premium .pl-f::before,#sec-premium .pl-p::before{content:attr(data-l);display:block;font-size:.72rem;font-weight:600;color:var(--mut);margin-bottom:.1rem}
}

/* v662: friend plan picker and panel */
#sec-premium .pl-who{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem;margin:-.3rem 0 1.1rem}
#sec-premium .pl-who>span{font-size:.9rem;font-weight:650;color:var(--mut)}
#sec-premium .pl-who .pl-seg{background:var(--surf);border:0;padding:4px}
#sec-premium .pl-fam{margin-top:1.1rem;padding:1.25rem 1.4rem;border:1px solid var(--bd);border-radius:20px;display:grid;gap:.75rem}
#sec-premium .pl-fam[hidden]{display:none}
#sec-premium .pl-fam h4{font-size:1.02rem;font-weight:750}
#sec-premium .pl-fh{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
#sec-premium .pl-fp{margin:0;font-size:.9rem;line-height:1.5;color:var(--mut)}
#sec-premium .pl-fe:empty{display:none}#sec-premium .pl-fe{color:#e5484d}
#sec-premium .pl-fj{display:flex;gap:.6rem;flex-wrap:wrap}#sec-premium .pl-fj .inp{flex:1 1 12rem;min-width:0}
#sec-premium .pl-fcode{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;padding:.9rem 1rem;border-radius:14px;background:var(--surf)}
#sec-premium .pl-fcode small{display:block;font-size:.74rem;font-weight:650;color:var(--mut);letter-spacing:.02em}
#sec-premium .pl-fcode b{font-size:1.45rem;font-weight:800;letter-spacing:.12em;font-variant-numeric:tabular-nums}
#sec-premium .pl-fb{display:flex;gap:.5rem;flex-wrap:wrap}
#sec-premium .pl-fm{list-style:none;margin:0;padding:0;display:grid;gap:.1rem}
#sec-premium .pl-fm li{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.55rem .1rem;border-bottom:1px solid var(--bd);font-size:.92rem}
#sec-premium .pl-fm li:last-child{border-bottom:0}
#sec-premium .pl-fm li i{font-style:normal;font-size:.7rem;font-weight:700;margin-left:.5rem;color:var(--gold)}
#sec-premium .pl-mini{padding:.3rem .75rem;font-size:.8rem}
#sec-premium #pl-fleave{justify-self:start}

/* v665: promo codes */
#sec-premium .pl-pcadm{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--bd,rgba(128,128,128,.25));display:grid;gap:.75rem}
#sec-premium .pl-pcform{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:.6rem;align-items:end}
#sec-premium .pl-pcform label{display:grid;gap:.25rem;font-size:.74rem;font-weight:650;color:var(--mut)}
#sec-premium .pl-pclist{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
#sec-premium .pl-pcrow{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.7rem .85rem;border-radius:14px;background:var(--surf)}
#sec-premium .pl-pcrow>div{flex:1 1 12rem;min-width:0}
#sec-premium .pl-pccode{display:block;font-size:1.05rem;letter-spacing:.12em;font-variant-numeric:tabular-nums}
#sec-premium .pl-pcrow small{display:block;font-size:.74rem;color:var(--mut)}

/* v666: control subscriptions */
#sec-premium .pl-subtabs{display:flex;gap:.4rem;flex-wrap:wrap;margin:.25rem 0 .6rem}
#sec-premium .pl-subtabs button{padding:.45rem .85rem;border-radius:999px;border:1px solid var(--bd,rgba(128,128,128,.3));background:transparent;color:inherit;font:inherit;font-size:.84rem;font-weight:650;cursor:pointer}
#sec-premium .pl-subtabs button.on{background:var(--acc,#e8812f);border-color:transparent;color:#fff}
#sec-premium .pl-subbody{display:grid;gap:.75rem}
#sec-premium .pl-sg{display:grid;grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr));gap:.6rem}
#sec-premium .pl-st{display:grid;gap:.1rem;padding:.85rem 1rem;border-radius:14px;background:var(--surf);align-content:start}
#sec-premium .pl-st b{font-size:1.55rem;font-weight:800;font-variant-numeric:tabular-nums}
#sec-premium .pl-st span{font-size:.8rem;font-weight:650}
#sec-premium .pl-st small{font-size:.72rem;color:var(--mut)}
#sec-premium .pl-stw{grid-column:span 2}
#sec-premium .pl-fh .btn{margin-left:auto}

/* v667: the Social page uses the whole screen on desktop, tablet and phone (it used to sit in a narrow centred column).
   Phone keeps its own side padding from gapfix.js / phonefix.js. */
html body #sec-social{padding-inline:clamp(.75rem,2.2vw,2rem)}
html body #sec-social .sc-tab,html body #sec-social .sc-tab.max-w-4xl{max-width:min(100%,120rem)!important;width:100%;margin-inline:auto}
html body #sec-social .sc-tab>input[type=file]{display:none}
@media(min-width:1100px){
  html body #sec-social .sc-tab{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(21rem,1fr);grid-template-rows:auto auto auto auto auto 1fr auto auto;column-gap:1.25rem;row-gap:0;align-items:start}
  html body #sec-social .sc-tab>.sc-th{grid-column:1/-1;grid-row:1}
  html body #sec-social .sc-tab>#scAdmin{grid-column:1/-1;grid-row:2}
  html body #sec-social .sc-tab>#scProf{grid-column:1;grid-row:3/7}
  html body #sec-social .sc-tab>#scReq{grid-column:2;grid-row:3}
  html body #sec-social .sc-tab>#scInv{grid-column:2;grid-row:4}
  html body #sec-social .sc-tab>.sc-fcard{grid-column:2;grid-row:5}
  html body #sec-social .sc-tab>.sc-sec{grid-column:1/-1;grid-row:7}
  html body #sec-social .sc-tab>#scCards{grid-column:1/-1;grid-row:8}
}

/* v677: Premium page redesign. One block, easy to remove. Desktop: two cards side by side. Tablet: same, tighter. Phone: one column, Premium first. */
html body #sec-premium .pl-wrap{max-width:68rem;padding:clamp(.4rem,2vw,1.4rem) clamp(.5rem,3vw,1.5rem) 4rem}
html body #sec-premium .pl-top{position:relative;overflow:hidden;text-align:center;margin:0 0 1.4rem;padding:clamp(1.5rem,4.5vw,2.8rem) clamp(1rem,4vw,2.5rem);border-radius:28px;border:1px solid color-mix(in srgb,var(--gold) 38%,transparent);background:radial-gradient(90% 140% at 50% -25%,color-mix(in srgb,var(--gold) 34%,transparent),transparent 62%),radial-gradient(60% 90% at 100% 100%,color-mix(in srgb,var(--gold) 14%,transparent),transparent 70%),var(--surf)}
html body #sec-premium .pl-crownbadge{display:inline-grid;place-items:center;width:3.4rem;height:3.4rem;border-radius:50%;color:#3a2600;background:linear-gradient(145deg,#f8d56b,#d4a73a 60%,#b98716);box-shadow:0 0 0 6px color-mix(in srgb,var(--gold) 18%,transparent),0 12px 28px -8px color-mix(in srgb,var(--gold) 70%,transparent)}
html body #sec-premium .pl-crownbadge svg{width:1.7rem;height:auto}
html body #sec-premium .pl-top h3{margin:.9rem 0 0;font-size:clamp(2rem,5.4vw,3.2rem)}
html body #sec-premium .pl-top p{max-width:34rem;margin:.5rem auto 0;color:var(--mut);font-size:clamp(.95rem,1.8vw,1.1rem)}
html body #sec-premium .pl-pills{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1.1rem}
html body #sec-premium .pl-pills span{display:inline-flex;align-items:center;gap:.4rem;padding:.38rem .8rem;border-radius:999px;font-size:.8rem;font-weight:700;color:var(--gold-t);background:color-mix(in srgb,var(--gold) 14%,transparent)}
html body #sec-premium .pl-pills span::before{content:"\2713";font-weight:900}
html body #sec-premium .pl-member .pl-pills{display:none}

html body #sec-premium .pl-ctl{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.7rem 1rem;margin:0 0 .9rem}
html body #sec-premium .pl-who{margin:0 0 1.3rem}
html body #sec-premium .pl-seg button{white-space:nowrap}
html body #sec-premium .pl-seg button.on{background:linear-gradient(135deg,#f8dc82,#d4a73a);color:#2b1d00;box-shadow:0 4px 12px -6px color-mix(in srgb,var(--gold) 80%,transparent)}
html body #sec-premium .pl-seg button.on i{color:#2b1d00;opacity:.75}

html body #sec-premium .pl-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:1.1rem;align-items:stretch}
html body #sec-premium .pl-card:not(.pl-pro){background:var(--surf);border-color:transparent;padding:1.6rem}
html body #sec-premium .pl-card:not(.pl-pro) .pl-buy{background:transparent;border:1px solid var(--bd);color:var(--mut);min-height:48px}
html body #sec-premium .pl-card:not(.pl-pro) li svg{width:20px;height:20px;padding:4px;border-radius:50%;background:rgba(148,163,184,.22);color:var(--mut);margin-top:.1rem}
html body #sec-premium .pl-card .pl-price{font-size:clamp(2.2rem,4.6vw,3.2rem);line-height:1.05}
html body #sec-premium .pl-card .pl-price small{font-size:.9rem;font-weight:600;letter-spacing:0}
html body #sec-premium .pl-sub:not(:empty){display:inline-block;padding:.22rem .65rem;border-radius:999px;background:rgba(34,160,90,.14);color:#1f8f50;font-weight:700;font-size:.8rem}

html body #sec-premium .pl-wrap:not(.pl-member) .pl-card.pl-pro{position:relative;padding:1.8rem;border:0;box-shadow:0 0 0 1.5px var(--gold),0 26px 50px -26px color-mix(in srgb,var(--gold) 75%,transparent);background:linear-gradient(180deg,color-mix(in srgb,var(--gold) 20%,transparent),color-mix(in srgb,var(--gold) 4%,transparent) 62%),var(--surf);transition:transform .2s ease,box-shadow .2s ease}
html body #sec-premium .pl-wrap:not(.pl-member) .pl-card.pl-pro::before{content:"";position:absolute;inset:0;border-radius:inherit;background:radial-gradient(70% 45% at 100% 0%,color-mix(in srgb,var(--gold) 30%,transparent),transparent 70%);pointer-events:none}
html body #sec-premium .pl-wrap:not(.pl-member) .pl-card.pl-pro>*{position:relative}
html body #sec-premium .pl-wrap:not(.pl-member) .pl-card.pl-pro li svg{width:20px;height:20px;padding:4px;border-radius:50%;background:linear-gradient(135deg,#f8dc82,#d4a73a);color:#2b1d00;margin-top:.1rem}
html body #sec-premium .pl-pro .pl-tag-gold{background:linear-gradient(135deg,#f8dc82,#d4a73a);border:0;color:#2b1d00;font-weight:800;box-shadow:0 6px 14px -8px color-mix(in srgb,var(--gold) 90%,transparent)}
html body #sec-premium .pl-wrap:not(.pl-member) .pl-pro .pl-buy{background:linear-gradient(135deg,#f8dc82,#d4a73a 55%,#b98716);border:0;color:#2b1d00;min-height:56px;font-size:1.05rem;font-weight:800;box-shadow:0 16px 30px -14px color-mix(in srgb,var(--gold) 90%,transparent);transition:transform .15s ease,filter .15s ease}
html body #sec-premium .pl-wrap:not(.pl-member) .pl-pro .pl-buy:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.05)}
@media(hover:hover){html body #sec-premium .pl-wrap:not(.pl-member) .pl-card.pl-pro:hover{transform:translateY(-3px)}}

html body #sec-premium .pl-cmp{margin-top:2.2rem;padding:clamp(1rem,3vw,1.8rem);border-radius:24px;background:var(--surf)}
html body #sec-premium .pl-cmp-g h5{color:var(--gold-t)}
html body #sec-premium .pl-cmp-r .pl-p{background:color-mix(in srgb,var(--gold) 10%,transparent);padding:.3rem .6rem}

/* tablet */
@media(max-width:1024px){
  html body #sec-premium .pl-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:.9rem}
  html body #sec-premium .pl-card:not(.pl-pro),html body #sec-premium .pl-wrap:not(.pl-member) .pl-card.pl-pro{padding:1.3rem}
}
/* phone: one column, Premium first, controls fill the width */
@media(max-width:700px){
  html body #sec-premium .pl-grid{grid-template-columns:1fr}
  html body #sec-premium .pl-wrap:not(.pl-member) #pl-cp{order:-1}
  html body #sec-premium .pl-top{border-radius:22px;margin-bottom:1rem}
  html body #sec-premium .pl-ctl{flex-direction:column;align-items:stretch}
  html body #sec-premium .pl-who{flex-direction:column;align-items:stretch;gap:.4rem}
  html body #sec-premium .pl-seg{display:flex;width:100%}
  html body #sec-premium .pl-seg button{flex:1;padding:.6rem .25rem;font-size:.84rem}
  html body #sec-premium .pl-seg button i{display:block;margin:.1rem 0 0}
}
@media(prefers-reduced-motion:reduce){html body #sec-premium .pl-card.pl-pro,html body #sec-premium .pl-pro .pl-buy{transition:none!important;transform:none!important}}


/* v678: friend plan, invite, promo and admin cards get a proper design (icon badge, steps, progress, ticket code), and the admin panel folds away */
#sec-premium .pl-x{--cx:#d4a73a;position:relative;overflow:hidden;gap:1rem;padding:1.35rem 1.5rem;border-radius:24px;border:1px solid color-mix(in srgb,var(--cx) 28%,var(--bd));background:radial-gradient(110% 130% at 0% 0%,color-mix(in srgb,var(--cx) 13%,transparent),transparent 58%),var(--surf)}
#sec-premium .pl-c-friend{--cx:#4f8cf7}
#sec-premium .pl-c-invite{--cx:#22b07d}
#sec-premium .pl-c-promo{--cx:#e8812f}
#sec-premium .pl-c-subs{--cx:#8b6cf0}
#sec-premium .pl-xh{display:flex;align-items:center;gap:.9rem}
#sec-premium .pl-xi{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:15px;color:var(--cx);background:color-mix(in srgb,var(--cx) 17%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cx) 30%,transparent)}
#sec-premium .pl-xi svg{width:23px;height:23px}
#sec-premium .pl-xt{flex:1;min-width:0}
#sec-premium .pl-xt h4{font-size:1.08rem;font-weight:780;line-height:1.2}
#sec-premium .pl-xt p{margin:.15rem 0 0;font-size:.86rem;line-height:1.4;color:var(--mut)}
#sec-premium .pl-xh .pl-chip{margin:0;flex:none;background:color-mix(in srgb,var(--cx) 17%,transparent);color:color-mix(in srgb,var(--cx) 85%,var(--tx))}
#sec-premium .pl-xh .btn{margin-inline-start:0}
#sec-premium .pl-xin{display:flex;gap:.6rem;flex-wrap:wrap}
#sec-premium .pl-xf{position:relative;flex:1 1 12rem;min-width:0}
#sec-premium .pl-xf svg{position:absolute;inset-inline-start:.9rem;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--mut);pointer-events:none}
#sec-premium .pl-xf .inp,#sec-premium .pl-xf input.inp{width:100%;padding-inline-start:2.7rem!important;padding-inline-end:.75rem!important;font-weight:650;letter-spacing:.04em;text-overflow:ellipsis}
#sec-premium .pl-xf .inp::placeholder{font-weight:500;letter-spacing:0;text-overflow:ellipsis}
#sec-premium .pl-xin .btn{min-width:6.5rem}
#sec-premium .pl-xnote{margin:0;font-size:.82rem;line-height:1.45;color:var(--mut)}
#sec-premium .pl-xnote:empty{display:none}
#sec-premium .pl-x .pl-fe{font-size:.85rem}
#sec-premium .pl-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:.6rem;counter-reset:s}
#sec-premium .pl-steps li{display:flex;gap:.65rem;align-items:center;padding:.7rem .8rem;border-radius:14px;background:color-mix(in srgb,var(--tx) 4%,transparent);font-size:.84rem;font-weight:620;line-height:1.3}
#sec-premium .pl-steps li::before{counter-increment:s;content:counter(s);flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--cx);color:#fff;font-size:.78rem;font-weight:800}
#sec-premium .pl-xstats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}
#sec-premium .pl-xstat{padding:.8rem .95rem;border-radius:16px;background:color-mix(in srgb,var(--tx) 4%,transparent)}
#sec-premium .pl-xstat small{display:block;font-size:.72rem;font-weight:650;color:var(--mut)}
#sec-premium .pl-xstat b{display:block;font-size:1.65rem;font-weight:800;line-height:1.15;font-variant-numeric:tabular-nums}
#sec-premium .pl-xstat.on b{color:var(--cx)}
#sec-premium .pl-barw{display:grid;gap:.4rem}
#sec-premium .pl-barl{display:flex;justify-content:space-between;gap:.5rem;font-size:.78rem;font-weight:650;color:var(--mut)}
#sec-premium .pl-bar{height:8px;border-radius:99px;background:color-mix(in srgb,var(--tx) 9%,transparent);overflow:hidden}
#sec-premium .pl-bar i{display:block;height:100%;min-width:0;border-radius:inherit;background:linear-gradient(90deg,var(--cx),color-mix(in srgb,var(--cx) 55%,#fff));transition:width .5s}
#sec-premium .pl-xshare{width:100%;display:inline-flex;gap:.5rem;align-items:center;justify-content:center;min-height:46px}
#sec-premium .pl-xshare svg{width:18px;height:18px}
#sec-premium .pl-ticket{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.8rem;padding:1rem 1.15rem;border-radius:18px;border:1.5px dashed color-mix(in srgb,var(--cx) 55%,transparent);background:color-mix(in srgb,var(--cx) 8%,transparent)}
#sec-premium .pl-ticket small{display:block;font-size:.74rem;font-weight:650;color:var(--mut)}
#sec-premium .pl-ticket b{display:block;font-size:1.7rem;font-weight:800;letter-spacing:.14em;font-variant-numeric:tabular-nums}
#sec-premium .pl-mem{list-style:none;margin:0;padding:0;display:grid;gap:.45rem}
#sec-premium .pl-mem li{display:flex;align-items:center;gap:.7rem;padding:.55rem .7rem;border-radius:14px;background:color-mix(in srgb,var(--tx) 4%,transparent)}
#sec-premium .pl-av{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:color-mix(in srgb,var(--cx) 20%,transparent);color:var(--cx);font-weight:800;font-size:.9rem}
#sec-premium .pl-mn{flex:1;min-width:0;font-weight:650;font-size:.92rem;overflow-wrap:anywhere}
#sec-premium .pl-own{font-style:normal;font-size:.68rem;font-weight:750;padding:.15rem .5rem;border-radius:99px;margin-inline-start:.5rem;background:rgba(212,167,58,.2);color:var(--gold-t)}
/* admin panel: header with an on/off switch, folded by default */
#sec-premium .pl-subhead{display:flex;align-items:center;gap:.9rem;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent}
#sec-premium .pl-subctl{display:flex;align-items:center;gap:.7rem;flex:none}
#sec-premium .pl-switch{flex:none;position:relative;width:50px;height:30px;border-radius:99px;border:0;padding:0;cursor:pointer;background:color-mix(in srgb,var(--tx) 24%,transparent);transition:background .2s}
#sec-premium .pl-switch i{position:absolute;top:3px;inset-inline-start:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.35);transition:transform .2s}
#sec-premium .pl-switch[aria-checked=true]{background:var(--cx)}
#sec-premium .pl-switch[aria-checked=true] i{transform:translateX(20px)}
html[dir=rtl] #sec-premium .pl-switch[aria-checked=true] i{transform:translateX(-20px)}
#sec-premium .pl-switch:focus-visible{outline:2px solid var(--cx);outline-offset:2px}
#sec-premium .pl-x.pl-collapsed{padding:.85rem 1.2rem;gap:0}
@media(max-width:480px){#sec-premium .pl-x{padding:1.1rem 1.05rem}#sec-premium .pl-xstat b{font-size:1.35rem}#sec-premium .pl-ticket b{font-size:1.4rem}}

/* v680: Social page. Desktop and iPad landscape: the profile card on the left, Friends and Privacy stacked on the right, the cards below.
   The profile card is one clean column: identity, tags, buttons, level bar with friends and XP, then three stat tiles.
   Delete this block to go back to the old look. */
@media(min-width:1100px){
  html body #sec-social .sc-tab{grid-template-columns:minmax(0,1.6fr) minmax(22rem,1fr);grid-template-rows:auto auto auto auto auto auto 1fr auto auto;column-gap:1.4rem}
  html body #sec-social .sc-tab>#scProf{display:contents}
  html body #sec-social .sc-tab>#scProf>.sc-id{grid-column:1;grid-row:3/8;margin-bottom:1rem}
  html body #sec-social .sc-tab>#scProf>.sc-pset{grid-column:2;grid-row:6;margin-bottom:1rem}
  html body #sec-social .sc-tab>.sc-sec{grid-row:8}
  html body #sec-social .sc-tab>#scCards{grid-row:9}
}
html body #sec-social .sc-th{margin:.2rem 0 1.1rem}
html body #sec-social .sc-th h2{font-size:clamp(1.7rem,3vw,2.3rem);letter-spacing:-.04em}
html body #sec-social .sc-blk{border-radius:1.25rem}
html body #sec-social #scAdmin .sc-adm{margin-bottom:1rem}
html body #sec-social #scAdmin .sc-adm-c{padding-block:.7rem}
/* profile card */
html body #scProf .sc-idb{grid-template-columns:minmax(0,1fr);grid-template-areas:"identity" "badges" "actions" "progress" "stats";row-gap:.95rem;padding:0 clamp(1.1rem,2.6vw,1.8rem) clamp(1.1rem,2.4vw,1.6rem)}
html body #scProf .sc-idh{margin-top:-2.9rem;gap:1.05rem}
html body #scProf .sc-idn{padding-top:3.4rem}
html body #scProf .sc-idn .sc-nm2{font-size:clamp(1.5rem,3vw,2.2rem)}
html body #scProf .sc-idn .sc-sub{font-weight:650;margin-top:.1rem}
html body #scProf .sc-idn .sc-em{font-size:.84rem;opacity:.7;margin-top:.15rem}
html body #scProf .sc-chs{margin:0;gap:.45rem}
html body #scProf .sc-acts{gap:.55rem}
html body #scProf .sc-acts .btn{min-height:2.6rem;padding:.55rem 1.05rem;border-radius:.75rem}
html body #scProf .sc-progress-panel{margin:0;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"head sx" "bar sx";column-gap:1.5rem;row-gap:.1rem;align-items:center;padding:1.05rem 1.25rem}
html body #scProf .sc-progress-panel .sc-progress-head{grid-area:head}
html body #scProf .sc-progress-panel progress{grid-area:bar;margin-top:.55rem;height:.5rem}
html body #scProf .sc-progress-panel .sc-sx{grid-area:sx;margin:0;display:flex;align-items:center;gap:1.5rem;padding-inline-start:1.5rem;border-inline-start:1px solid var(--profile-line)}
html body #scProf .sc-progress-panel .sc-sx>*{background:none;border:0;padding:0;color:inherit;font:inherit;font-size:.76rem;text-align:start;opacity:.9}
html body #scProf .sc-progress-panel .sc-sx b{display:block;font-size:1.45rem;line-height:1.15}
html body #scProf .sc-id .sc-ts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;border:0;padding:0;margin:0!important}
html body #scProf .sc-id .sc-ts .sc-tile,html body #scProf .sc-id .sc-ts .sc-tile+.sc-tile{padding:.8rem .9rem!important;border:1px solid var(--profile-line)!important;border-radius:.95rem!important;background:transparent!important;column-gap:.8rem;text-align:start}
html body #scProf .sc-ts .sc-tile>span{width:2.8rem;height:2.8rem}
@media(max-width:760px){
  html body #scProf .sc-idb{grid-template-areas:"identity" "badges" "actions" "progress" "stats"}
  html body #scProf .sc-progress-panel{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "bar" "sx";padding:.95rem 1rem}
  html body #scProf .sc-progress-panel .sc-sx{padding:.8rem 0 0;margin-top:.8rem;border-inline-start:0;border-top:1px solid var(--profile-line);gap:2rem}
  html body #scProf .sc-sx b{display:block;font-size:1.25rem}
  html body #scProf .sc-id .sc-ts{gap:.45rem}
  html body #scProf .sc-id .sc-ts .sc-tile{display:grid;grid-template-columns:1fr;justify-items:center;text-align:center;padding:.7rem .3rem!important;row-gap:.25rem}
  html body #scProf .sc-ts .sc-tile>span{grid-row:auto;width:2.4rem;height:2.4rem}
}
/* friends card */
html body #sec-social .sc-fcard{padding:1.15rem 1.25rem}
html body #sec-social .sc-fcard .hm-h{font-size:1.1rem;font-weight:750;margin-bottom:.75rem}
html body #sec-social .sc-frr{display:grid;grid-template-columns:repeat(auto-fill,minmax(4.3rem,1fr));gap:.9rem .4rem;overflow:visible;padding:.1rem 0 1rem}
html body #sec-social .sc-fri{width:auto;min-width:0;padding:.35rem .1rem;border-radius:.8rem}
html body #sec-social .sc-fri:hover{background:rgba(148,163,184,.14)}
html body #sec-social .sc-fri small{font-size:.74rem}
html body #sec-social .sc-fcard .sc-srch{min-height:2.8rem}
/* privacy card */
html body #sec-social .sc-pset .hm-h{font-size:1.1rem;font-weight:750}
/* v680: stat tiles are separate cards (older rules forced one joined strip) */
html body #scProf .sc-id .sc-ts,html body #scProf .sc-prof .sc-ts{gap:.7rem!important;border:0!important;border-radius:0!important;overflow:visible!important;background:none!important;margin:0!important}
@media(max-width:760px){html body #scProf .sc-id .sc-ts,html body #scProf .sc-prof .sc-ts{gap:.45rem!important}}
/* v683: percent promo codes (admin form and Premium page) */
#sec-premium .pl-pcpct{display:flex;flex-wrap:wrap;gap:.4rem;margin:.1rem 0 .6rem}
#sec-premium .pl-pctb{padding:.35rem .8rem;border-radius:999px;border:1px solid var(--bd);background:var(--s1);color:var(--tx);font-weight:700;font-size:.85rem;cursor:pointer}
#sec-premium .pl-pctb.on{background:#d9822b;border-color:#d9822b;color:#fff}
#sec-premium .pl-was{text-decoration:line-through;opacity:.55;font-weight:500;margin-inline-end:.4rem}
#sec-premium .pl-off{display:inline-block;margin-inline-start:.45rem;padding:.12rem .5rem;border-radius:999px;background:rgba(46,160,90,.16);color:#2e9f5a;font-size:.72rem;font-weight:800;vertical-align:middle}
/* v685: Customise App: every dropdown has the same width, so they line up in one straight column (they used to size themselves to their longest option) */
.layout-editor label{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.layout-editor select{flex:0 0 12.5rem;width:12.5rem;max-width:55%;box-sizing:border-box;text-overflow:ellipsis}

/* v690: copy button inside the Friend code and Promo code boxes, and the gold "Premium extended" pill after a promo redeem */
#sec-premium .pl-cp{flex:none;display:inline-grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:11px;background:transparent;color:var(--mut);cursor:pointer;transition:background .15s,color .15s,transform .15s;-webkit-tap-highlight-color:transparent}
#sec-premium .pl-cp svg{width:18px;height:18px}
#sec-premium .pl-cp:hover:not(:disabled){background:color-mix(in srgb,var(--cx,#d4a73a) 16%,transparent);color:var(--tx)}
#sec-premium .pl-cp:active:not(:disabled){transform:scale(.92)}
#sec-premium .pl-cp:disabled{opacity:.35;cursor:default}
#sec-premium .pl-cp:focus-visible{outline:2px solid var(--cx,#d4a73a);outline-offset:1px}
#sec-premium .pl-cp.ok{color:#22b07d;background:color-mix(in srgb,#22b07d 16%,transparent)}
#sec-premium .pl-xf .pl-cp{position:absolute;inset-inline-end:.35rem;top:50%;margin-top:-17px}
#sec-premium .pl-xf .pl-cp svg{position:static;transform:none;width:18px;height:18px;color:inherit;pointer-events:none}
#sec-premium .pl-xf.pl-hascp .inp,#sec-premium .pl-xf.pl-hascp input.inp{padding-inline-end:2.9rem!important}
#sec-premium .pl-cprow{display:flex;align-items:center;gap:.35rem}
#sec-premium .pl-gold{position:relative;overflow:hidden;align-self:flex-start;display:inline-flex;align-items:center;gap:.5rem;padding:.5rem .95rem .5rem .6rem;border-radius:999px;background:linear-gradient(135deg,#f9d56e,#e3a712);color:#3f2800;font-weight:760;font-size:.88rem;line-height:1.2;box-shadow:0 6px 18px -6px rgba(227,167,18,.75),inset 0 0 0 1px rgba(255,255,255,.35);animation:plGoldIn .55s cubic-bezier(.2,1.3,.4,1) both}
#sec-premium .pl-gold svg{flex:none;width:18px;height:18px;padding:2px;border-radius:50%;background:rgba(63,40,0,.14)}
#sec-premium .pl-gold svg path{stroke-dasharray:24;stroke-dashoffset:24;animation:plGoldTick .4s .25s ease-out forwards}
#sec-premium .pl-gold small{font-size:.78rem;font-weight:700;opacity:.72}
#sec-premium .pl-gold::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.65) 50%,transparent 70%);transform:translateX(-120%);animation:plGoldShine 1s .35s ease-out 1 both;pointer-events:none}
#sec-premium .pl-gold.still{animation:none}
#sec-premium .pl-gold.still::after{display:none}
#sec-premium .pl-gold.still svg path{animation:none;stroke-dashoffset:0}
#sec-premium .pl-gold.out{opacity:0;transform:translateY(-4px);transition:opacity .4s,transform .4s;animation:none}
@keyframes plGoldIn{0%{opacity:0;transform:translateY(8px) scale(.85)}60%{opacity:1;transform:translateY(0) scale(1.06)}100%{opacity:1;transform:none}}
@keyframes plGoldShine{to{transform:translateX(120%)}}
@keyframes plGoldTick{to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){#sec-premium .pl-gold,#sec-premium .pl-gold svg path{animation:none!important;stroke-dashoffset:0}#sec-premium .pl-gold::after{display:none}}

/* v691: Premium button pinned at the bottom of the Premium page for free users */
#sec-premium .pl-stick{position:sticky;bottom:0;z-index:5;display:flex;justify-content:center;padding:.75rem 0 calc(.75rem + env(safe-area-inset-bottom,0px));margin-top:1rem;background:linear-gradient(180deg,transparent,var(--bg,#000) 38%)}
#sec-premium .pl-stick[hidden]{display:none}
#sec-premium .pl-stickb{width:min(28rem,100%);min-height:52px;justify-content:center;gap:.55rem;font-size:1.05rem;font-weight:800;background:linear-gradient(135deg,#f8dc82,#d4a73a 55%,#b98716);border:0;color:#2b1d00;box-shadow:0 10px 28px -10px rgba(212,167,58,.7)}
#sec-premium .pl-stickb svg{width:1.25rem;height:1.25rem}

/* v692: phones: Friend plan, Promo code and Control subscriptions share one collapsible 'Redeem and manage' section (wide screens show the cards as before) */
#sec-premium .pl-rm{margin-top:1.1rem}
#sec-premium .pl-rm[hidden]{display:none}
#sec-premium .pl-rmh{display:none}
@media(max-width:767px){
#sec-premium .pl-rmh{display:flex;align-items:center;justify-content:space-between;gap:.75rem;width:100%;min-height:56px;padding:.9rem 1.1rem;border:1px solid var(--bd);border-radius:18px;background:var(--surf);color:var(--tx);text-align:left;font:inherit;cursor:pointer}
#sec-premium .pl-rmh b{display:block;font-weight:750;font-size:1rem}
#sec-premium .pl-rmh small{display:block;margin-top:.15rem;color:var(--mut);font-size:.82rem}
#sec-premium .pl-rmh svg{flex:none;width:1.2rem;height:1.2rem;transition:transform .2s}
#sec-premium .pl-rm.open .pl-rmh svg{transform:rotate(180deg)}
#sec-premium .pl-rmh:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
#sec-premium .pl-rm:not(.open) .pl-rmb{display:none}
}

/* v693: Premium perks as 4 expandable categories */
#sec-premium .pl-pg{display:grid;gap:.6rem}
#sec-premium .pl-pgi{border-radius:18px;background:rgba(148,163,184,.08);overflow:hidden;transition:background .2s}
#sec-premium .pl-pgi.open{background:rgba(212,167,58,.07)}
#sec-premium .pl-pgh{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:.8rem;width:100%;min-height:56px;padding:.7rem .9rem;cursor:pointer;-webkit-tap-highlight-color:transparent}
#sec-premium .pl-pgh:focus-visible{outline:2px solid var(--gold-t);outline-offset:-2px;border-radius:18px}
#sec-premium .pl-pgt{flex:1;min-width:0}
#sec-premium .pl-pgt b{display:block;font-size:1rem;font-weight:700}
#sec-premium .pl-pgt small{display:block;font-size:.8rem;color:var(--mut);margin-top:.1rem}
#sec-premium .pl-pgc{flex:none;width:20px;height:20px;color:var(--mut);transition:transform .25s ease}
#sec-premium .pl-pgi.open .pl-pgc{transform:rotate(180deg)}
#sec-premium .pl-pgb{display:grid;grid-template-rows:0fr;transition:grid-template-rows .28s ease}
#sec-premium .pl-pgi.open .pl-pgb{grid-template-rows:1fr}
#sec-premium .pl-pgin{overflow:hidden;min-height:0}
#sec-premium .pl-pgb ul{list-style:none;margin:0;padding:0 .9rem .8rem;display:grid;gap:.55rem}
#sec-premium .pl-pgb li{display:flex;gap:.75rem;align-items:center;padding:.65rem .75rem;border-radius:14px;background:rgba(148,163,184,.08)}
#sec-premium .pl-pgb li .pl-pi{width:32px;height:32px;border-radius:10px}
#sec-premium .pl-pgb li .pl-pi svg{width:17px;height:17px}
#sec-premium .pl-pgb b{display:block;font-size:.9rem;font-weight:700}
#sec-premium .pl-pgb li span:not(.pl-pi){display:block;font-size:.8rem;color:var(--mut);line-height:1.35;margin-top:.1rem}
#sec-premium .pl-pgi:not(.open) .pl-pgb ul{visibility:hidden}
@media(min-width:900px){#sec-premium .pl-pg{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
@media(prefers-reduced-motion:reduce){#sec-premium .pl-pgb,#sec-premium .pl-pgc{transition:none}}

/* v694: two stat boxes on the Premium top card */
#sec-premium .pl-sts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin-top:1.1rem}
#sec-premium .pl-st{padding:.8rem .95rem;border-radius:16px;background:rgba(212,167,58,.12);min-width:0}
#sec-premium .pl-st b{display:block;font-size:clamp(1.3rem,5vw,1.75rem);font-weight:800;line-height:1.1;letter-spacing:-.02em;color:var(--gold-t);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#sec-premium .pl-st span{display:block;margin-top:.25rem;font-size:.8rem;font-weight:600;color:var(--mut)}
#sec-premium .pl-hero-main{gap:1rem}

/* v695: AI points left today, with a thin bar */
#sec-premium .pl-st b small{font-size:.55em;font-weight:700;color:var(--mut);letter-spacing:0}
#sec-premium .pl-aibar{display:block;height:6px;margin-top:.55rem;border-radius:999px;background:rgba(148,163,184,.25);overflow:hidden}
#sec-premium .pl-aibar>i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#f8d56b,#d4a73a);transition:width .5s ease}
#sec-premium .pl-ai.low b{color:#f59e0b}
#sec-premium .pl-ai.low .pl-aibar>i{background:#f59e0b}
@media(prefers-reduced-motion:reduce){#sec-premium .pl-aibar>i{transition:none}}

/* v696: "Premium ends soon" strip on the top card (last 7 days) */
#sec-premium .pl-soon{display:flex;align-items:center;gap:.9rem;margin:0 0 1.1rem;padding:.8rem .9rem;border-radius:16px;background:rgba(212,167,58,.16);border:1px solid color-mix(in srgb,var(--gold-t) 40%,transparent)}
#sec-premium .pl-soon.urgent{background:rgba(245,158,11,.18);border-color:rgba(245,158,11,.55)}
#sec-premium .pl-soont{flex:1;min-width:0}
#sec-premium .pl-soont b{display:block;font-size:.95rem;font-weight:800;color:var(--gold-t)}
#sec-premium .pl-soon.urgent .pl-soont b{color:#f59e0b}
#sec-premium .pl-soont span{display:block;margin-top:.15rem;font-size:.82rem;line-height:1.35;color:var(--mut)}
#sec-premium .pl-soonb{flex:none;min-height:44px;padding:0 1.1rem;border:0;border-radius:12px;background:linear-gradient(145deg,#f8d56b,#d4a73a 60%,#b98716);color:#3a2600;font-weight:800;font-size:.9rem;cursor:pointer;-webkit-tap-highlight-color:transparent}
#sec-premium .pl-soonb:active{transform:scale(.97)}
#sec-premium .pl-pulse{animation:plPulse 1.5s ease-out 1}
@keyframes plPulse{0%{box-shadow:0 0 0 0 rgba(212,167,58,.7)}100%{box-shadow:0 0 0 18px rgba(212,167,58,0)}}
@media(prefers-reduced-motion:reduce){#sec-premium .pl-pulse{animation:none}}
@media(max-width:420px){#sec-premium .pl-soon{flex-wrap:wrap}#sec-premium .pl-soonb{width:100%}}

/* v697: invite progress row on the Premium page */
#sec-premium .pl-inv{display:flex;align-items:center;gap:.8rem;margin-top:1rem;padding:.8rem .9rem;border-radius:16px;background:rgba(148,163,184,.08)}
#sec-premium .pl-inv[hidden]{display:none}
#sec-premium .pl-invi{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:rgba(212,167,58,.16);color:var(--gold-t)}
#sec-premium .pl-invi svg{width:20px;height:20px}
#sec-premium .pl-invt{flex:1;min-width:0}
#sec-premium .pl-invt b{display:block;font-size:.92rem;font-weight:700}
#sec-premium .pl-invt .pl-inv-s{display:block;margin-top:.1rem;font-size:.8rem;color:var(--mut);line-height:1.35}
#sec-premium .pl-inv .pl-barw{margin-top:.45rem}
#sec-premium .pl-inv .pl-bar{height:6px}
#sec-premium .pl-invb{flex:none;min-height:44px;padding:0 1rem;border-radius:12px;border:1px solid color-mix(in srgb,var(--gold-t) 40%,transparent);background:color-mix(in srgb,var(--gold-t) 10%,transparent);color:var(--gold-t);font-weight:700;font-size:.88rem;cursor:pointer;-webkit-tap-highlight-color:transparent}
@media(max-width:420px){#sec-premium .pl-inv{flex-wrap:wrap}#sec-premium .pl-invb{width:100%}}

/* v698: Your Premium so far */
#sec-premium .pl-rc{margin-top:1.1rem;padding:.85rem .95rem;border-radius:16px;background:rgba(148,163,184,.08)}
#sec-premium .pl-rch{display:flex;align-items:baseline;justify-content:space-between;gap:.6rem;flex-wrap:wrap}
#sec-premium .pl-rch b{font-size:.95rem;font-weight:800}
#sec-premium .pl-rch span{font-size:.76rem;color:var(--mut)}
#sec-premium .pl-rct{display:grid;grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr));gap:.55rem;margin-top:.7rem}
#sec-premium .pl-rt{padding:.6rem .7rem;border-radius:12px;background:rgba(212,167,58,.1);min-width:0}
#sec-premium .pl-rt b{display:block;font-size:1.3rem;font-weight:800;line-height:1.1;color:var(--gold-t);font-variant-numeric:tabular-nums}
#sec-premium .pl-rt span{display:block;margin-top:.2rem;font-size:.76rem;line-height:1.3;color:var(--mut)}
#sec-premium .pl-rce{margin:.5rem 0 0;font-size:.85rem;line-height:1.45;color:var(--mut)}

/* v699: streak freezes row on the Premium top card */
#sec-premium .pl-frz{display:flex;align-items:center;gap:.8rem;margin-top:1rem;padding:.8rem .9rem;border-radius:16px;background:rgba(148,163,184,.08)}
#sec-premium .pl-frz .pl-invi{color:#60a5fa;background:rgba(96,165,250,.16)}
#sec-premium .pl-pips{flex:none;display:flex;gap:.3rem}
#sec-premium .pl-pips i{display:block;width:12px;height:12px;border-radius:50%;border:2px solid rgba(96,165,250,.6);box-sizing:border-box}
#sec-premium .pl-pips i.on{background:#60a5fa;border-color:#60a5fa}

/* v700: "Save N%" badges on the plan selector and the price */
#sec-premium .pl-save{display:inline-block;margin-inline-start:.5rem;padding:.14rem .55rem;border-radius:999px;background:linear-gradient(135deg,#f8dc82,#d4a73a);color:#2b1d00;font-size:.72rem;font-weight:800;letter-spacing:0;vertical-align:middle;white-space:nowrap}
#sec-premium #pl-per button i,#sec-premium #pl-seats button i{display:block;margin:.12rem 0 0;font-size:.68rem;font-weight:800;line-height:1.1;white-space:nowrap}

/* v735: smooth in-page switches. A pill slides under the labels instead of the buttons just swapping colour. */
#layout-members .lm-track{position:relative;display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:999px;background:var(--sbtn);margin-inline:auto;flex:none}
#layout-members .lm-pill{position:absolute;top:3px;bottom:3px;left:0;width:0;border-radius:999px;background:var(--a1);box-shadow:0 4px 14px -6px rgba(var(--a1r),.75);pointer-events:none;will-change:transform,width;transition:transform .42s cubic-bezier(.32,.72,0,1),width .42s cubic-bezier(.32,.72,0,1)}
#layout-members .lm-track>button{position:relative;z-index:1;margin:0!important;border-radius:999px;background:transparent;color:inherit;padding:.5rem 1rem;transition:color .3s ease,background-color .2s ease,transform .15s ease}
#layout-members .lm-track>button[aria-current]{background:transparent;color:var(--on,#fff)}
#layout-members .lm-track>button:not([aria-current]):hover{background:rgba(var(--a1r),.12)}
#layout-members .lm-track>button:active{transform:scale(.96)}
/* Open | Intervals switch inside the timer (desktop and tablet; the phone keeps its own outlined look) */
body:not(.sb-phone) .mseg{position:relative}
body:not(.sb-phone) .mseg::before{content:"";position:absolute;top:.35rem;bottom:.35rem;inset-inline-start:.35rem;width:calc((100% - 1.05rem)/2);border-radius:.85rem;background:linear-gradient(135deg,var(--a1),var(--a2));box-shadow:0 6px 16px -8px rgba(var(--a2r),.8);transform:translateX(0);transition:transform .45s cubic-bezier(.32,.72,0,1)}
body:not(.sb-phone) .mseg[data-mode=pomo]::before{transform:translateX(calc(100% + .35rem))}
html[dir=rtl] body:not(.sb-phone) .mseg[data-mode=pomo]::before{transform:translateX(calc(-100% - .35rem))}
body:not(.sb-phone) .mseg .mb{position:relative;z-index:1;transition:color .3s ease,background-color .2s ease}
body:not(.sb-phone) .mseg .mb.on{background:none;box-shadow:none}
@media (prefers-reduced-motion:reduce){#layout-members .lm-pill,body:not(.sb-phone) .mseg::before,#layout-members .lm-track>button{transition:none}}

/* v738: simpler Settings. Flat sections, no cards inside cards, no emoji icons, quiet navigation. */
#ov>.sbs{max-width:50rem!important;border-radius:22px!important;padding:1.25rem 1.5rem!important}
.sbs-body{gap:1.5rem;margin-top:1rem}
.sbs-nav{border-right:0;padding-right:0;gap:2px}
.sbs-nav button{padding:.62rem .85rem;border-radius:12px;font-weight:600;color:var(--mut)}
.sbs-nav button:hover{background:var(--sbtn);color:var(--tx)}
.sbs-nav button.on{background:var(--sbtn);color:var(--tx)}
.sbs-main{padding-right:.5rem;scrollbar-width:thin}
.sbs-main .sbs-sec{border:0;border-radius:0;background:none;padding:0;margin:0 0 1.5rem}
.sbs-main .sbs-sec+.sbs-sec{border-top:1px solid var(--bd);padding-top:1.5rem}
.sbs-main .sbs-sec>h4,.sbs-main .acc-gh{font-size:.74rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--mut);margin:0 0 .75rem;padding:0;opacity:1}
.sbs-main .acc-grp{margin-top:0}
.sbs-main .acc-gc{border:0;border-radius:0;background:none;box-shadow:none;padding:0;overflow:visible}
html[data-theme=light] .sbs-main .acc-gc{background:none;box-shadow:none;border:0}
.sbs-main .acc-gc .acc-sec>summary::before{display:none}
.sbs-main .acc-sec{border-top:1px solid var(--bd)}
.sbs-main .acc-sec>summary{padding:.9rem 0;font-weight:600}
.sbs-main .acc-act{padding:0 0 1rem;border-bottom:0}
.sbs-main .acc-act .btn{border-radius:12px;min-height:42px;padding:.55rem 1.1rem}
.sbs-main select,.sbs-main input[type=text],.sbs-main input[type=email],.sbs-main input:not([type]){width:100%;box-sizing:border-box;min-height:42px;border:1px solid var(--bd);border-radius:12px;background:var(--s1);color:var(--tx);padding:.5rem .75rem;font-weight:500}
.sbs-main .sbs-row{padding:.8rem 0}
.sbs-main .sbs-links>a,.sbs-main .sbs-links>button{background:none;border-top:1px solid var(--bd);border-radius:0;padding:.8rem 0}
@media(max-width:760px){#ov>.sbs{padding:.9rem!important;border-radius:18px!important}.sbs-nav{border-bottom:1px solid var(--bd)}.sbs-nav button.on{background:var(--tx);color:var(--s0)}}

/* v752: mobile only (<768px, where the compact bottom bar + menu sheet are used). iPad and desktop are untouched. */
/* v902: Premium is back in the mobile menu (fills the empty slot next to Settings) so it is one tap away. */
#mobile-nav-sheet .mns-item[data-layout-group="premium"]{color:var(--gold-t,#b8860b)}
#mobile-nav-sheet .mns-item[data-layout-group="premium"] svg{stroke:#d4a73a}
/* The floating Jarvis button steps aside while the menu is open, so it never covers a tile. */
body.mns-open #jv-fab,body.mns-open #jv-menu{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
html body.sb-phone #jv-fab{width:66px;height:66px;right:12px;bottom:calc(70px + env(safe-area-inset-bottom,0px));opacity:.97;transition:opacity .18s ease,visibility .18s ease,transform .08s ease}
/* v796: the glyph fills the whole button again (it was cut to 22px inside a 46px button, which looked tiny) */
html body.sb-phone #jv-fab svg,html body.sb-phone #jv-fab svg.jvf{width:100%;height:100%}
html body.sb-phone #jv-fab::before{display:none}
html body.sb-phone #jv-fab{box-shadow:0 0 0 5px rgba(56,189,248,.09),0 10px 28px rgba(0,0,0,.5),0 0 24px rgba(34,211,238,.32),inset 0 0 14px rgba(34,211,238,.2)}
/* the wide PREMIUM tag on the button becomes a small gold lock dot on phones */
html body.sb-phone #jv-fab.locked::after{content:"";right:2px;top:2px;width:13px;height:13px;padding:0;border-radius:50%;background:#fbbf24;border:2px solid #081827;box-shadow:none}
html body.sb-phone #jv-menu{right:12px;bottom:calc(70px + 66px + 10px + env(safe-area-inset-bottom,0px))}
/* Settings > Account > Premium row: phones only */
.sbs-phone-only{display:none}
@media(max-width:767px){.sbs-phone-only{display:block}}

/* ===== v846: Premium page. Readable text on the light theme, and a proper "Extend your Premium" card ===== */
html body #sec-premium{--gold-t:color-mix(in srgb,#b8860b 70%,var(--tx));--mut2:color-mix(in srgb,var(--tx) 72%,transparent)}
html body #sec-premium .pl-top p,html body #sec-premium .pl-st span,html body #sec-premium .pl-rt span,html body #sec-premium .pl-inv-s,html body #sec-premium .pl-rch span,html body #sec-premium .pl-who>span,html body #sec-premium .pl-frz .pl-inv-s{color:var(--mut2)}
html body #sec-premium .pl-st b,html body #sec-premium .pl-rt b{color:var(--gold-t)}
html body #sec-premium .pl-seg button{color:var(--mut2);font-weight:700}
html body #sec-premium .pl-seg button i{color:#1e7a3c;font-weight:800;opacity:1}
html body #sec-premium .pl-seg button.on i{color:#2b4a00}
html[data-theme="dark"] body #sec-premium .pl-seg button:not(.on) i,html body[data-theme="dark"] #sec-premium .pl-seg button:not(.on) i{color:#6fdc94}
html body #sec-premium .pl-rt-jv{background:linear-gradient(135deg,rgba(80,150,255,.16),rgba(212,167,58,.12))}
html body #sec-premium .pl-rt-jv b{color:color-mix(in srgb,#2b6fd6 75%,var(--tx))}

/* Extend card (members only) */
html body #sec-premium .pl-member #pl-cp{position:relative;overflow:hidden;border:0;padding:1.5rem 1.6rem;border-radius:22px;
  background:radial-gradient(90% 140% at 100% 0%,rgba(248,220,130,.34),transparent 60%),linear-gradient(135deg,rgba(212,167,58,.20),rgba(212,167,58,.05) 70%);
  box-shadow:0 0 0 1.5px color-mix(in srgb,var(--gold) 70%,transparent),0 22px 44px -26px color-mix(in srgb,var(--gold) 80%,transparent);
  grid-template-columns:1fr auto;gap:1rem 1.6rem}
html body #sec-premium .pl-member #pl-cp::after{content:"";position:absolute;right:-30px;bottom:-40px;width:170px;height:130px;background:no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'><path d='M6 40L2 12l16 14L32 4l14 22L62 12l-4 28z' fill='%23d4a73a' fill-opacity='.14'/></svg>");pointer-events:none}
html body #sec-premium .pl-member #pl-cp>*{position:relative;z-index:1}
html body #sec-premium .pl-member #pl-cp .pl-lead{display:inline-flex;align-items:center;gap:.45rem;justify-self:start;padding:.28rem .75rem;border-radius:999px;font-size:.74rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#2b1d00;background:linear-gradient(135deg,#f8dc82,#d4a73a)}
html body #sec-premium .pl-member #pl-cp .pl-price{font-size:2.5rem;font-weight:800;letter-spacing:-.03em;line-height:1.05;color:var(--tx);margin-top:.5rem}
html body #sec-premium .pl-member #pl-cp .pl-price small{font-size:.95rem;font-weight:700;letter-spacing:0;color:var(--mut2)}
html body #sec-premium .pl-member #pl-cp .pl-sub{color:var(--mut2);font-weight:650}
html body #sec-premium .pl-member #pl-cp .pl-save{background:rgba(30,122,60,.14);color:#1e7a3c;font-weight:800}
html body #sec-premium .pl-ex{display:flex;align-items:center;gap:.7rem;margin-top:.9rem;flex-wrap:wrap}
html body #sec-premium .pl-ex span{display:grid;gap:.05rem;padding:.5rem .8rem;border-radius:14px;background:color-mix(in srgb,var(--tx) 6%,transparent)}
html body #sec-premium .pl-ex small{font-size:.68rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--mut2)}
html body #sec-premium .pl-ex b{font-size:.95rem;font-weight:800;color:var(--tx);font-variant-numeric:tabular-nums}
html body #sec-premium .pl-ex span.new{background:linear-gradient(135deg,rgba(248,220,130,.55),rgba(212,167,58,.28));box-shadow:inset 0 0 0 1px rgba(184,134,11,.45)}
html body #sec-premium .pl-ex i{display:grid;place-items:center;width:28px;height:28px;color:var(--gold-t)}
html body #sec-premium .pl-ex i svg{width:20px;height:20px}
html body #sec-premium .pl-member #pl-cp .pl-buy{align-self:center;min-width:12.5rem;min-height:56px;border:0;border-radius:16px;font-size:1.02rem;font-weight:800;color:#2b1d00;
  background:linear-gradient(135deg,#f8dc82,#d4a73a 55%,#b98716);box-shadow:0 16px 28px -14px color-mix(in srgb,var(--gold) 90%,transparent);transition:transform .15s,filter .15s}
html body #sec-premium .pl-member #pl-cp .pl-buy:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.06)}
@media(max-width:560px){html body #sec-premium .pl-member #pl-cp{padding:1.2rem}html body #sec-premium .pl-member #pl-cp .pl-price{font-size:2.1rem}html body #sec-premium .pl-member #pl-cp .pl-buy{width:100%}}
@media(prefers-reduced-motion:reduce){html body #sec-premium .pl-member #pl-cp .pl-buy{transition:none}}

/* Invite card inside Premium page: keep its text readable */
html body #sec-premium .pl-inv .pl-invt span,html body #sec-premium .pl-fam p,html body #sec-premium .pl-fam .pl-s{color:var(--mut2)}

/* v846: admin panel, payments tab and remove-Premium controls */
#sec-premium .pl-payrow{align-items:center}
#sec-premium .pl-payrow>div:first-child{flex:2 1 14rem}
#sec-premium .pl-paysub{font-weight:600;font-size:.78rem;color:color-mix(in srgb,var(--tx) 65%,transparent)}
#sec-premium .pl-payamt,#sec-premium .pl-payend{flex:1 1 7rem;min-width:0}
#sec-premium .pl-payamt b,#sec-premium .pl-payend b{display:block;font-size:.95rem;font-variant-numeric:tabular-nums}
#sec-premium .pl-ends{display:flex;flex-wrap:wrap;gap:.4rem;margin:.4rem 0}
#sec-premium .btn.pl-danger{background:#c62828;border-color:#c62828;color:#fff;font-weight:800}
#sec-premium .btn.pl-danger:hover:not(:disabled){filter:brightness(1.1)}
#sec-premium .pl-undo{display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap;margin-top:.8rem;padding:.7rem .9rem;border-radius:14px;background:rgba(198,40,40,.1);font-weight:700}

/* v847: creator dashboard */
#sec-premium .pl-creator{margin-top:1.1rem;padding:1.1rem 1.2rem;border-radius:20px;background:linear-gradient(135deg,rgba(80,150,255,.12),rgba(212,167,58,.1));box-shadow:inset 0 0 0 1px rgba(148,163,184,.25)}
#sec-premium .pl-creator[hidden]{display:none}
#sec-premium .pl-cr-h{display:flex;flex-wrap:wrap;gap:.7rem;align-items:center;justify-content:space-between}
#sec-premium .pl-cr-h b{display:block;font-size:1.05rem;font-weight:800}
#sec-premium .pl-cr-h span{font-size:.78rem;color:color-mix(in srgb,var(--tx) 70%,transparent)}
#sec-premium .pl-cr-code{display:flex;align-items:center;gap:.5rem}
#sec-premium .pl-cr-code code{padding:.4rem .8rem;border-radius:12px;font-weight:800;letter-spacing:.06em;background:color-mix(in srgb,var(--tx) 8%,transparent)}
#sec-premium .pl-cr-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr));gap:.55rem;margin-top:.8rem}
#sec-premium .pl-cr-t{padding:.65rem .75rem;border-radius:14px;background:color-mix(in srgb,var(--tx) 6%,transparent)}
#sec-premium .pl-cr-t b{display:block;font-size:1.35rem;font-weight:800;font-variant-numeric:tabular-nums}
#sec-premium .pl-cr-t span{font-size:.76rem;color:color-mix(in srgb,var(--tx) 72%,transparent)}
#sec-premium .pl-cr-bals{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:.55rem;margin-top:.6rem}
#sec-premium .pl-cr-bal{padding:.8rem .9rem;border-radius:16px;background:linear-gradient(135deg,rgba(248,220,130,.5),rgba(212,167,58,.22));box-shadow:inset 0 0 0 1px rgba(184,134,11,.4)}
#sec-premium .pl-cr-bal span{font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
#sec-premium .pl-cr-bal b{display:block;font-size:1.6rem;font-weight:800;font-variant-numeric:tabular-nums}
#sec-premium .pl-cr-bal small{font-size:.76rem;color:color-mix(in srgb,var(--tx) 75%,transparent)}
#sec-premium .pl-cr-l{margin-top:.8rem}
#sec-premium .pl-cr-l>b{font-size:.85rem}
#sec-premium .pl-cr-l>div{display:flex;gap:.8rem;align-items:baseline;padding:.35rem 0;border-top:1px solid rgba(148,163,184,.25);font-size:.85rem}
#sec-premium .pl-cr-l>div span{flex:1;color:color-mix(in srgb,var(--tx) 70%,transparent)}
#sec-premium .pl-crx{margin:.4rem 0 .2rem}

/* ===== v860: Notes library on phones. Two covers per row instead of one giant cover, a one-line toolbar (it wrapped and left the list icon alone on a second row), smaller badges and grips. Phone only: iPad and desktop are unchanged. ===== */
body.sb-phone #lib .a4grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 14px!important;justify-items:stretch!important;padding:4px 0 26px!important}
body.sb-phone #lib .a4grid>.a4wrap{width:100%!important;max-width:none!important}
body.sb-phone #lib .cn-cap{margin-top:8px;gap:4px}
body.sb-phone #lib .cn-cap b,body.sb-phone #lib .a4-cap b{font-size:13.5px;line-height:1.25}
body.sb-phone #lib .cn-cap small,body.sb-phone #lib .a4-cap small{font-size:11px}
body.sb-phone #lib .cn-badge,body.sb-phone #lib .fo-count{transform:scale(.82);transform-origin:top right}
body.sb-phone #lib .cn-star{width:26px;height:26px;top:6px;right:6px}
body.sb-phone #lib .cn-star svg{width:16px;height:16px}
body.sb-phone #lib .cn-more{width:28px;height:28px}
body.sb-phone #lib .cv-pill{left:8px;bottom:8px;font-size:10.5px;padding:4px 9px 4px 7px;gap:4px}
body.sb-phone #lib .cv-pill svg{width:12px;height:12px}
body.sb-phone #lib .nbd-grip{width:26px;height:26px;left:5px;top:5px;border-radius:9px}
body.sb-phone #lib .nbd-grip svg{width:14px;height:14px}
body.sb-phone #lib .l4h{flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:4px;margin:2px 0 10px}
body.sb-phone #lib .l4h h1{font-size:1.75rem}
body.sb-phone #lib .l4r{flex-wrap:nowrap;justify-content:space-between;gap:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;margin:0 -4px;padding:2px 4px}
body.sb-phone #lib .l4r::-webkit-scrollbar{display:none}
body.sb-phone #lib .l4r .l4i{flex:none;min-width:40px;min-height:40px;justify-content:center;padding:8px 7px}
body.sb-phone #lib .l4r .l4i[aria-label="Import notes from other apps"] span+span{display:none}
body.sb-phone #lib .l4r .l4i.l4store{min-width:0;padding:7px 13px 7px 10px}
body.sb-phone #lib .l4sec{margin:6px 2px 12px}

.ob-app-icon{width:64px;height:64px;margin:0 auto 1rem;border-radius:15px}
.ob-install-steps{max-width:27rem;margin:1rem auto;padding-inline-start:1.7rem;list-style:decimal;text-align:start;line-height:1.5}
.ob-install-steps li{padding-inline-start:.25rem;margin:.55rem 0}
.ob-install-actions{display:grid;justify-items:center;gap:.65rem}
body.sb-phone #app-shell,body.sb-phone #content-area,body.sb-phone #content-area>main{min-width:0;max-width:100%;box-sizing:border-box}
body.sb-phone #content-area>main>section{min-width:0;max-width:100%;box-sizing:border-box}
body.sb-phone #layout-members .lm-track{flex:0 1 auto;flex-wrap:wrap;justify-content:center;max-width:100%;min-width:0}
body.sb-phone #layout-members .lm-pill{display:none}
body.sb-phone #layout-members .lm-track button[aria-current]{background:var(--a1);color:var(--on)}
body.sb-phone #apphd>div,body.sb-phone .hm-act,body.sb-phone .hm-lab,body.sb-phone .hm-tph{min-width:0;max-width:100%;flex-wrap:wrap}
body.sb-phone .hm-lab>div,body.sb-phone .hm-gr,body.sb-phone .hm-tph>div{min-width:min(100%,10rem)}
body.sb-phone .hl-seg{flex-wrap:wrap}
body.sb-phone #mobile-nav-sheet .mns-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

body.sb-phone #lib :is(.l4h,.l4t,.l4r){min-width:0;max-width:100%;flex-wrap:wrap}
body.sb-phone #lib .l4t h1{min-width:0;overflow-wrap:anywhere}
body.sb-phone #sec-notes:has(#lib:not([style*="display: none"]):not([style*="display:none"]))>#cv{visibility:hidden;max-width:100%;min-width:0;overflow:hidden}
