:root{
  --bg:#050608;
  --bg-2:#090b0f;
  --panel:rgba(16,18,23,.78);
  --panel-2:rgba(22,25,32,.82);
  --glass:rgba(255,255,255,.055);
  --stroke:rgba(255,255,255,.10);
  --stroke-strong:rgba(255,255,255,.16);
  --text:#f8f6f1;
  --soft:#c8c3b9;
  --muted:#8f96a3;
  --gold:#f7c66a;
  --gold-2:#fff0b7;
  --orange:#ff8a1f;
  --green:#80e39f;
  --red:#ff807c;
  --shadow:0 24px 70px rgba(0,0,0,.55);
  --radius:28px;
  --radius-sm:18px;
  --ease:cubic-bezier(.2,.8,.2,1);
}

/* Connected health profile and evidence report. */
.guide-personalization{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:13px;padding:13px 15px;border:1px solid rgba(132,226,166,.14);border-radius:16px;background:rgba(108,211,144,.045)}.guide-personalization span{display:block;color:#75bf8d;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.13em}.guide-personalization strong{display:block;margin-top:5px;color:#bdc8c0;font-size:11px;line-height:1.45}.guide-personalization .text-button{flex:0 0 auto;color:#9ed9af;font-size:10px}.health-passport-card{position:relative;overflow:hidden;padding:24px!important;background:radial-gradient(circle at 90% 0,rgba(78,166,127,.12),transparent 33%),linear-gradient(145deg,rgba(22,27,28,.98),rgba(10,12,13,.99))!important;border-color:rgba(109,210,145,.14)!important}.health-passport-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:start}.health-passport-head h2,.weekly-health-head h2{margin:7px 0 8px;font-size:29px;line-height:1.08;letter-spacing:-.04em}.health-passport-head p{max-width:700px;margin:0;color:#aaa59d;font-size:12px;line-height:1.58}.health-profile-progress{min-width:82px;padding:11px 14px;display:grid;align-content:center;justify-items:center;gap:2px;border:1px solid rgba(108,211,144,.22);border-radius:18px;background:rgba(108,211,144,.07);text-align:center}.weekly-health-score{width:82px;height:82px;display:grid;align-content:center;justify-items:center;border:1px solid rgba(108,211,144,.22);border-radius:27px;background:rgba(108,211,144,.07)}.health-profile-progress strong{color:#afe4be;font-size:12px;line-height:1.25}.weekly-health-score strong{color:#afe4be;font-size:20px}.health-profile-progress span{color:#7d9a85;font-size:8px;text-transform:uppercase;letter-spacing:.06em;line-height:1.3}.weekly-health-score span{margin-top:3px;color:#7d9a85;font-size:8px;text-transform:uppercase;letter-spacing:.08em}.health-profile-next{margin-top:16px;padding:13px 15px;border:1px solid rgba(247,198,106,.15);border-radius:16px;background:rgba(247,198,106,.045)}.health-profile-next span,.weekly-health-next span{display:block;color:#a68b51;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.13em}.health-profile-next strong,.weekly-health-next strong{display:block;margin-top:6px;color:#e2d9c8;font-size:12px;line-height:1.45}.health-profile-insights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}.health-profile-insights article{display:grid;grid-template-columns:28px minmax(0,1fr);gap:9px;padding:13px;border:1px solid rgba(255,255,255,.075);border-radius:16px;background:rgba(255,255,255,.025)}.health-profile-insights article>b{width:25px;height:25px;display:grid;place-items:center;border-radius:9px;background:rgba(108,211,144,.09);color:#8ed6a3;font-size:10px}.health-profile-insights strong{display:block;color:#d8ddd8;font-size:11px;line-height:1.35}.health-profile-insights p{margin:5px 0 0;color:#888f89;font-size:10px;line-height:1.46}.health-profile-details{margin-top:13px;border:1px solid rgba(255,255,255,.085);border-radius:18px;background:rgba(0,0,0,.14);overflow:hidden}.health-profile-details>summary{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:15px 17px;list-style:none;color:#dce3dd;font-size:12px;font-weight:850;cursor:pointer}.health-profile-details>summary::-webkit-details-marker{display:none}.health-profile-details>summary small{margin-left:auto;color:#757c76;font-size:9px;font-weight:550}.health-profile-details>summary:after{content:'↓';width:28px;height:28px;display:grid;place-items:center;border-radius:10px;background:rgba(255,255,255,.05);color:#8ed6a3}.health-profile-details[open]>summary:after{content:'↑'}.health-profile-form{display:grid;gap:12px;padding:0 15px 16px}.health-profile-form fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:14px;border:1px solid rgba(255,255,255,.07);border-radius:17px;background:rgba(255,255,255,.018)}.health-profile-form legend{padding:0 7px;color:#d5b86c;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.12em}.health-profile-form label>span{display:block;margin-bottom:6px;color:#a9aaa5;font-size:10px;font-weight:750;line-height:1.35}.health-profile-form label small{color:#70746f;font-size:8px;font-weight:550}.health-profile-form select,.health-profile-form input[type="text"]{width:100%;height:43px;padding:0 11px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:#141719;color:#dedfdc;font:inherit;font-size:11px}.health-profile-form select:focus,.health-profile-form input[type="text"]:focus{outline:none;border-color:rgba(108,211,144,.32);box-shadow:0 0 0 3px rgba(108,211,144,.055)}.health-wide-field{grid-column:1/-1}.health-consent{display:flex!important;align-items:flex-start;gap:9px;padding:12px 13px;border:1px solid rgba(255,255,255,.07);border-radius:14px;background:rgba(255,255,255,.02)}.health-consent input{flex:0 0 auto;margin-top:2px}.health-consent span{margin:0!important;color:#8e938e!important;font-size:9px!important;font-weight:550!important;line-height:1.5!important}.health-profile-form>.btn{justify-self:start}.health-profile-status{margin:0;color:#7f9486;font-size:9px;line-height:1.45}.weekly-health-report{padding:24px!important;background:linear-gradient(145deg,rgba(22,24,27,.98),rgba(10,11,13,.99))!important}.weekly-health-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:start}.weekly-health-head p{margin:0;color:#9d9992;font-size:12px}.weekly-health-insights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:16px}.weekly-health-insights article{padding:14px;border:1px solid rgba(255,255,255,.075);border-radius:16px;background:rgba(255,255,255,.025)}.weekly-health-insights strong{display:block;color:#e1ddd6;font-size:11px}.weekly-health-insights p{margin:6px 0 0;color:#8e8b85;font-size:10px;line-height:1.5}.weekly-health-next{margin-top:11px;padding:13px 14px;border:1px solid rgba(247,198,106,.14);border-radius:15px;background:rgba(247,198,106,.04)}.weekly-health-disclaimer{margin:10px 0 0;color:#706e69;font-size:9px;line-height:1.45}
@media(max-width:680px){.guide-personalization{display:grid}.guide-personalization .text-button{justify-self:start}.health-passport-card,.weekly-health-report{padding:18px!important}.health-passport-head,.weekly-health-head{grid-template-columns:1fr auto;gap:11px}.health-passport-head h2,.weekly-health-head h2{font-size:24px}.health-profile-progress{min-width:66px;padding:9px 11px;border-radius:15px}.weekly-health-score{width:66px;height:66px;border-radius:21px}.weekly-health-score strong{font-size:16px}.health-profile-insights,.weekly-health-insights{grid-template-columns:1fr}.health-profile-details>summary{display:grid;grid-template-columns:1fr auto}.health-profile-details>summary small{grid-column:1;margin:0}.health-profile-details>summary:after{grid-column:2;grid-row:1/3}.health-profile-form fieldset{grid-template-columns:1fr}.health-wide-field{grid-column:1}.health-profile-form>.btn{width:100%;justify-content:center}}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Arial,sans-serif;overflow-x:hidden;background:
  radial-gradient(circle at 10% -10%,rgba(247,198,106,.22),transparent 34%),
  radial-gradient(circle at 100% 6%,rgba(255,138,31,.14),transparent 30%),
  linear-gradient(180deg,#07080b 0%,#050608 56%,#030405 100%)}
body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.58),transparent 72%)}
.bg-glow{position:fixed;border-radius:999px;filter:blur(80px);pointer-events:none;z-index:0;opacity:.8}.bg-glow-1{width:280px;height:280px;right:-90px;top:-40px;background:rgba(247,198,106,.18)}.bg-glow-2{width:260px;height:260px;left:-90px;bottom:60px;background:rgba(90,140,255,.12)}
.app-shell{position:relative;z-index:1;width:min(980px,calc(100vw - 28px));margin:0 auto;padding:18px 0 110px}.hidden{display:none!important}.muted{color:var(--muted)}
h1,h2,h3,p{margin:0}h1{font-size:clamp(30px,6vw,56px);letter-spacing:-.055em;line-height:.96;font-weight:850}h2{font-size:clamp(27px,5vw,42px);letter-spacing:-.045em;line-height:1.02;font-weight:830}h3{font-size:22px;letter-spacing:-.03em;line-height:1.08;font-weight:790}p{line-height:1.58}.eyebrow{display:inline-flex;align-items:center;gap:8px;margin-bottom:12px;color:var(--gold-2);font-weight:760;font-size:11px;letter-spacing:.24em;text-transform:uppercase}.eyebrow:before{content:"";width:7px;height:7px;border-radius:999px;background:linear-gradient(135deg,var(--gold),var(--orange));box-shadow:0 0 18px rgba(247,198,106,.55)}
.card{position:relative;background:linear-gradient(145deg,rgba(255,255,255,.074),rgba(255,255,255,.028));border:1px solid var(--stroke);border-radius:var(--radius);box-shadow:var(--shadow);backdrop-filter:blur(22px);overflow:hidden}.card:after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(135deg,rgba(255,255,255,.16),transparent 30%,rgba(247,198,106,.055));opacity:.7}
.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px;margin-bottom:16px;min-height:154px}.topbar p{margin-top:12px;color:var(--soft)}.badge{position:relative;z-index:1;flex:0 0 auto;padding:11px 14px;border-radius:999px;border:1px solid rgba(247,198,106,.25);background:rgba(247,198,106,.11);color:var(--gold-2);font-weight:800;font-size:13px}.badge.ok{background:rgba(128,227,159,.12);border-color:rgba(128,227,159,.22);color:var(--green)}.badge.error{background:rgba(255,128,124,.12);border-color:rgba(255,128,124,.22);color:var(--red)}
.state-card{padding:36px 22px;text-align:center}.centered{display:grid;place-items:center;min-height:340px}.loader{width:56px;height:56px;border-radius:999px;border:4px solid rgba(247,198,106,.13);border-top-color:var(--gold);animation:spin .9s linear infinite;margin-bottom:18px}.icon-lock{font-size:44px;margin-bottom:14px}@keyframes spin{to{transform:rotate(360deg)}}.actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:20px}.btn{appearance:none;border:0;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border-radius:16px;font-weight:820;cursor:pointer;transition:transform .18s var(--ease),filter .18s var(--ease),border-color .18s var(--ease)}.btn:active{transform:scale(.98)}.btn-primary{background:linear-gradient(135deg,var(--gold-2),var(--gold) 48%,var(--orange));color:#171008;box-shadow:0 14px 30px rgba(247,198,106,.18)}.btn-secondary{background:rgba(255,255,255,.055);border:1px solid var(--stroke);color:var(--text)}

.access-state{text-align:left;padding:0;overflow:hidden;min-height:430px;display:block}
.access-state:before{content:"";position:absolute;inset:-30% -20% auto auto;width:420px;height:420px;border-radius:999px;background:radial-gradient(circle,rgba(247,198,106,.22),rgba(255,138,31,.08) 38%,transparent 68%);filter:blur(10px);opacity:.9}
.access-state:after{background:linear-gradient(135deg,rgba(255,255,255,.18),transparent 32%,rgba(247,198,106,.06));opacity:.78}
.access-state>*{position:relative;z-index:1}.access-visual{height:154px;display:flex;align-items:flex-end;padding:26px 26px 0;background:linear-gradient(180deg,rgba(255,255,255,.045),transparent)}
.access-orb{width:86px;height:86px;border-radius:30px;display:grid;place-items:center;background:linear-gradient(145deg,rgba(247,198,106,.22),rgba(255,255,255,.055));border:1px solid rgba(247,198,106,.24);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 24px 70px rgba(0,0,0,.38)}
.access-orb svg{width:42px;height:42px;color:var(--gold-2)}.access-orb path{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.access-eyebrow{margin:24px 26px 12px}.access-state h2{padding:0 26px;font-size:clamp(28px,4.2vw,46px);line-height:1.05;letter-spacing:-.038em;max-width:640px;font-weight:760}.access-state p{padding:18px 26px 0;color:#d8d3c8;font-size:clamp(15px,1.55vw,18px);line-height:1.58;max-width:680px}.access-note{margin:18px 26px 0;padding:14px 16px;border-radius:18px;border:1px solid rgba(247,198,106,.16);background:rgba(247,198,106,.075);color:var(--soft);line-height:1.45}.access-state .actions{justify-content:flex-start;padding:0 26px 30px;margin-top:22px}
@media(max-width:760px){.access-state{min-height:0}.access-visual{height:124px;padding:22px 22px 0}.access-orb{width:74px;height:74px;border-radius:26px}.access-state h2,.access-state p{padding-left:22px;padding-right:22px}.access-eyebrow{margin-left:22px;margin-right:22px}.access-note{margin-left:22px;margin-right:22px}.access-state .actions{padding-left:22px;padding-right:22px}.access-state .btn{width:100%}}
.menu-tabs{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:50;width:min(560px,calc(100vw - 28px));display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:8px;border-radius:26px;background:rgba(12,14,18,.72);border:1px solid rgba(255,255,255,.13);box-shadow:0 24px 70px rgba(0,0,0,.62);backdrop-filter:blur(26px)}.menu-tabs:has(.admin-tab:not(.hidden)){grid-template-columns:repeat(4,1fr)}.menu-tab{position:relative;min-height:58px;border:0;border-radius:20px;background:transparent;color:var(--muted);font-weight:850;font-size:12px;letter-spacing:.01em;cursor:pointer;transition:background .22s var(--ease),color .22s var(--ease),transform .18s var(--ease),box-shadow .22s var(--ease);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.menu-tab:active{transform:scale(.98)}.nav-icon{width:25px;height:25px;display:grid;place-items:center;border-radius:12px;color:rgba(255,255,255,.62);transition:color .22s var(--ease),background .22s var(--ease),transform .22s var(--ease)}.nav-icon svg{width:22px;height:22px;display:block}.nav-icon path{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.nav-label{line-height:1}.menu-tab.active{background:linear-gradient(135deg,rgba(247,198,106,.22),rgba(255,138,31,.13));color:var(--gold-2);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 10px 30px rgba(0,0,0,.22)}.menu-tab.active .nav-icon{color:var(--gold-2);background:rgba(247,198,106,.1);transform:translateY(-1px)}.menu-tab:not(.active):hover{background:rgba(255,255,255,.045);color:rgba(255,255,255,.82)}
.screen{display:none;animation:rise .32s var(--ease)}.screen.active{display:block}@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.hero-panel{display:grid;grid-template-columns:1.14fr .86fr;gap:16px;padding:24px;margin-bottom:16px}.hero-text{margin-top:14px;color:#d9d5ca;font-size:16px}.hint-text{margin-top:16px;color:var(--muted);font-style:italic}.hero-left,.hero-right,.section-hero>*,.filter-panel>*{position:relative;z-index:1}.hero-right{display:grid;gap:14px}.profile-mini,.sub-box{background:rgba(255,255,255,.045);border:1px solid var(--stroke);border-radius:22px;padding:17px}.profile-mini{display:flex;align-items:center;gap:14px}.avatar{width:60px;height:60px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(145deg,rgba(247,198,106,.32),rgba(255,255,255,.05));border:1px solid rgba(247,198,106,.22);font-weight:900;color:var(--gold-2);font-size:20px}.profile-name{font-weight:850;font-size:18px}.sub-label{font-size:13px;color:var(--muted);margin-bottom:8px}.sub-value{font-size:22px;font-weight:860;letter-spacing:-.03em}.sub-days{margin-top:8px;color:var(--gold);font-weight:820}.section-hero{padding:24px;margin-bottom:14px}
.cards-grid{display:grid;grid-template-columns:1fr;gap:16px}.feature-card{display:grid;grid-template-columns:150px 1fr;min-height:172px;padding:0;transition:transform .22s var(--ease),border-color .22s var(--ease),background .22s var(--ease);cursor:pointer}.feature-card:hover{transform:translateY(-3px);border-color:rgba(247,198,106,.28)}.feature-card.tap-pulse{transform:scale(.985)}.feature-visual{position:relative;z-index:1;min-height:170px;border-right:1px solid var(--stroke);display:grid;place-items:center;background:radial-gradient(circle at center,rgba(247,198,106,.14),transparent 58%)}.feature-card-detector .feature-visual{background:radial-gradient(circle at center,rgba(255,100,92,.18),transparent 58%)}.feature-card-assistant .feature-visual{background:radial-gradient(circle at center,rgba(87,174,255,.17),transparent 58%)}.feature-orb{width:72px;height:72px;border-radius:25px;display:grid;place-items:center;font-size:30px;background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 22px 40px rgba(0,0,0,.32)}.feature-lines{position:absolute;left:26px;bottom:28px;display:grid;gap:7px}.feature-lines span{display:block;height:7px;border-radius:999px;background:rgba(255,255,255,.08)}.feature-lines span:nth-child(1){width:78px}.feature-lines span:nth-child(2){width:112px}.feature-lines span:nth-child(3){width:62px}.feature-content{position:relative;z-index:1;padding:25px 28px;display:grid;align-content:center}.feature-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.feature-kind{font-size:12px;letter-spacing:.26em;text-transform:uppercase;color:#a9b0bd;font-weight:860}.feature-tag{padding:10px 14px;border-radius:999px;background:linear-gradient(135deg,var(--orange),#ffad3f);color:#1c1004;font-weight:900}.feature-card h3{font-size:clamp(28px,5vw,39px);margin-bottom:13px}.feature-card p{font-size:clamp(18px,4vw,27px);line-height:1.34;color:#ece8df;letter-spacing:-.025em}
.filter-panel{padding:20px;margin-bottom:14px}.chip-row{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}.chip-row::-webkit-scrollbar{display:none}.chip,.segment{appearance:none;border:1px solid var(--stroke);background:rgba(255,255,255,.055);color:var(--soft);border-radius:999px;min-height:44px;padding:0 16px;font-weight:820;white-space:nowrap;cursor:pointer}.chip.active,.segment.active{background:linear-gradient(135deg,var(--gold-2),var(--gold) 52%,var(--orange));color:#161007;border-color:transparent;box-shadow:0 12px 26px rgba(247,198,106,.16)}.segmented-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.materials-list{display:grid;gap:14px}.material-card{padding:20px;cursor:pointer;transition:transform .22s var(--ease),border-color .22s var(--ease)}.material-card:hover{transform:translateY(-2px);border-color:rgba(247,198,106,.24)}.material-head{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.material-status{font-size:12px;text-transform:uppercase;letter-spacing:.22em;color:var(--muted);font-weight:850}.progress-value{color:var(--gold-2);font-weight:900}.material-card h3{position:relative;z-index:1;font-size:26px;margin-bottom:10px}.material-card p{position:relative;z-index:1;color:#d8d3c8}.material-meta{position:relative;z-index:1;display:flex;gap:8px;align-items:center;color:var(--muted);font-weight:700;margin:14px 0}.progress-track{height:8px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.065);position:relative;z-index:1}.progress-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--gold-2),var(--gold),var(--orange));box-shadow:0 0 18px rgba(247,198,106,.34);transition:width .18s var(--ease)}.open-material-btn{position:relative;z-index:1;margin-top:16px;width:100%;min-height:48px;border:0;border-radius:16px;background:rgba(255,255,255,.065);border:1px solid var(--stroke);color:var(--text);font-weight:850;cursor:pointer}.empty-card{padding:22px;color:var(--muted)}
.material-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:end center;padding:16px;background:rgba(0,0,0,.72);backdrop-filter:blur(18px)}.modal-open{overflow:hidden}.material-modal-card{width:min(760px,100%);max-height:92vh;overflow:auto;padding:28px;border-radius:32px;scroll-behavior:smooth}.modal-close{position:sticky;top:0;margin-left:auto;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--stroke);border-radius:16px;background:rgba(255,255,255,.08);color:var(--text);font-size:26px;cursor:pointer;z-index:4}.material-modal-description{position:relative;z-index:1;margin-top:12px;color:#d8d3c8;font-size:17px}.reader-progress-box{position:relative;z-index:1;margin:22px 0;padding:16px;border:1px solid var(--stroke);border-radius:20px;background:rgba(255,255,255,.04)}.reader-progress-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;color:var(--soft);font-weight:800}.reader-progress-top strong{color:var(--gold-2)}.material-modal-body{position:relative;z-index:1;margin-top:20px;font-size:18px;color:#efebe3}.material-modal-body p{margin:0 0 18px;line-height:1.75}.reaction-box{position:relative;z-index:1;margin-top:28px;padding:18px;border:1px solid var(--stroke);border-radius:22px;background:rgba(255,255,255,.04)}.reaction-row{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.reaction-btn{display:flex;align-items:center;gap:7px;border:1px solid var(--stroke);border-radius:999px;min-height:44px;padding:0 13px;background:rgba(255,255,255,.06);color:var(--text);font-weight:860;cursor:pointer}.reaction-btn span{font-size:22px}.reaction-btn.active{border-color:rgba(247,198,106,.44);background:rgba(247,198,106,.15)}.reaction-voters{margin-top:14px;color:var(--muted);font-size:14px}
.admin-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:14px;margin-bottom:14px}.admin-form,.admin-list-card{padding:20px}.admin-form{display:grid;gap:12px}.admin-form input,.admin-form select,.admin-form textarea{width:100%;border:1px solid var(--stroke);background:rgba(255,255,255,.055);border-radius:16px;color:var(--text);min-height:48px;padding:0 14px;font:inherit;outline:none}.admin-form textarea{padding:14px;resize:vertical;line-height:1.5}.admin-form input:focus,.admin-form select:focus,.admin-form textarea:focus{border-color:rgba(247,198,106,.34);box-shadow:0 0 0 4px rgba(247,198,106,.08)}.admin-list{position:relative;z-index:1;display:grid;gap:10px}.admin-item{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;border:1px solid var(--stroke);border-radius:18px;padding:14px;background:rgba(255,255,255,.04)}.admin-item strong{display:block;margin-bottom:5px}.admin-item span,.admin-item p{color:var(--muted);font-size:13px}.admin-read-hint{margin-top:6px;color:var(--muted);font-size:12px;line-height:1.35;opacity:.85}.admin-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.mini-danger,.mini-secondary{border:1px solid var(--stroke);border-radius:12px;min-height:36px;padding:0 11px;color:var(--text);font-weight:800;background:rgba(255,255,255,.06);cursor:pointer}.mini-danger{color:#ffb1ad;border-color:rgba(255,128,124,.24);background:rgba(255,128,124,.08)}
@media(max-width:760px){.app-shell{width:min(100% - 22px,560px);padding-top:12px}.topbar{padding:21px;min-height:138px}.topbar{display:block}.badge{display:inline-flex;margin-top:18px}.hero-panel,.admin-grid{grid-template-columns:1fr}.feature-card{grid-template-columns:118px 1fr;min-height:158px}.feature-visual{min-height:158px}.feature-content{padding:20px 18px}.feature-orb{width:64px;height:64px;border-radius:23px}.feature-card h3{font-size:28px}.feature-card p{font-size:20px}.section-hero{padding:22px}.material-card h3{font-size:24px}.material-modal{padding:10px}.material-modal-card{max-height:94vh;padding:22px;border-radius:28px}.menu-tab{font-size:11px;min-height:54px}.nav-icon{width:23px;height:23px}.nav-icon svg{width:20px;height:20px}}
@media(max-width:430px){.feature-card{grid-template-columns:92px 1fr}.feature-visual{min-height:150px}.feature-orb{width:56px;height:56px;border-radius:20px;font-size:25px}.feature-lines{left:16px;bottom:22px}.feature-lines span:nth-child(1){width:50px}.feature-lines span:nth-child(2){width:68px}.feature-lines span:nth-child(3){width:42px}.feature-content{padding:18px 15px}.feature-tag{padding:8px 10px;font-size:12px}.feature-kind{font-size:10px}.feature-card h3{font-size:25px}.feature-card p{font-size:18px}.menu-tabs{bottom:10px;width:calc(100vw - 18px);border-radius:24px}.menu-tab{border-radius:18px}.card{border-radius:24px}}

.material-actions{position:relative;z-index:1;display:flex;align-items:center;gap:10px}
.favorite-btn{width:44px;height:44px;border-radius:16px;border:1px solid var(--stroke);background:rgba(255,255,255,.07);color:rgba(255,255,255,.52);font-size:20px;font-weight:900;line-height:1;cursor:pointer;transition:transform .18s var(--ease),background .18s var(--ease),color .18s var(--ease),border-color .18s var(--ease)}
.favorite-btn.active{color:#1b1203;background:linear-gradient(135deg,var(--gold-2),var(--gold) 52%,var(--orange));border-color:transparent;box-shadow:0 12px 26px rgba(247,198,106,.18)}
.favorite-btn:active{transform:scale(.94)}
@media(max-width:760px){.segmented-row{grid-template-columns:1fr 1fr 1fr}.favorite-btn{width:40px;height:40px;border-radius:14px}}

/* Desktop premium button polish */
@media (min-width: 761px){
  body{
    letter-spacing: -0.015em;
  }

  .app-shell{
    max-width: 760px;
  }

  .btn,
  .chip,
  .segment,
  .open-material-btn,
  .reaction-btn,
  .admin-btn,
  .form-button,
  button[type="submit"]{
    font-weight: 560 !important;
    letter-spacing: -0.01em;
    min-height: 42px;
    border-radius: 999px;
    padding: 0 17px;
    font-size: 14px;
    box-shadow: none;
  }

  .btn-primary,
  .chip.active,
  .segment.active{
    background: linear-gradient(135deg, #ffe58b 0%, #f4c950 52%, #e99425 100%);
    color: rgba(20, 15, 8, .92);
    box-shadow: 0 10px 28px rgba(244, 201, 80, .16), inset 0 1px 0 rgba(255,255,255,.42);
  }

  .btn-secondary,
  .chip,
  .segment,
  .open-material-btn,
  .reaction-btn{
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.105);
    color: rgba(245,242,235,.78);
    backdrop-filter: blur(18px);
  }

  .btn:hover,
  .chip:hover,
  .segment:hover,
  .open-material-btn:hover,
  .reaction-btn:hover{
    transform: translateY(-1px);
    border-color: rgba(247,198,106,.24);
    background-color: rgba(255,255,255,.07);
  }

  .menu-tabs{
    width: min(460px, calc(100vw - 42px));
    bottom: 22px;
    padding: 7px;
    gap: 6px;
    border-radius: 24px;
    background: rgba(13,15,19,.64);
    box-shadow: 0 18px 58px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.08);
  }

  .menu-tab{
    min-height: 52px;
    border-radius: 18px;
    font-weight: 540;
    font-size: 12px;
    color: rgba(245,242,235,.56);
  }

  .menu-tab.active{
    color: rgba(255,225,142,.95);
    background: rgba(247,198,106,.105);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  }

  .nav-icon svg{
    width: 20px;
    height: 20px;
  }

  .nav-icon path{
    stroke-width: 1.65;
  }

  .filter-panel{
    padding: 18px;
  }

  .chip-row{
    gap: 8px;
  }

  .segmented-row{
    gap: 8px;
  }
}

/* Final 2026 access-page polish */
.denied-card h1,
#deniedTitle{
  letter-spacing:-0.045em;
  line-height:.96;
}
@media (min-width: 761px){
  .topbar h1{
    font-size:clamp(34px,4.2vw,54px) !important;
    line-height:.98;
    letter-spacing:-0.052em;
    max-width:680px;
  }
  #deniedTitle,
  .denied-card h1{
    font-size:clamp(34px,4.5vw,58px) !important;
    max-width:720px;
  }
  .denied-card .hero-text,
  #deniedText{
    font-size:18px !important;
    line-height:1.55;
    max-width:640px;
  }
  .denied-card{
    width:min(780px,calc(100vw - 72px));
    padding:42px;
  }
}
@media (max-width: 760px){
  .topbar h1,
  #deniedTitle,
  .denied-card h1{
    font-size:42px !important;
    letter-spacing:-0.052em;
    line-height:1;
  }
}
.reaction-voters{
  font-size:13px;
  letter-spacing:.02em;
  color:rgba(200,195,185,.68);
}

.rich-editor-wrap{display:grid;gap:10px}
.rich-toolbar{display:flex;gap:8px;align-items:center;border:1px solid var(--stroke);background:rgba(255,255,255,.045);border-radius:16px;padding:8px}
.rich-tool{width:42px;height:38px;border-radius:12px;border:1px solid var(--stroke);background:rgba(255,255,255,.06);color:var(--text);font:inherit;font-weight:650;cursor:pointer;transition:background .18s var(--ease),border-color .18s var(--ease),transform .18s var(--ease)}
.rich-tool:hover{background:rgba(247,198,106,.12);border-color:rgba(247,198,106,.3)}
.rich-tool:active{transform:scale(.97)}
.rich-editor{width:100%;min-height:220px;border:1px solid var(--stroke);background:rgba(255,255,255,.055);border-radius:16px;color:var(--text);padding:14px;font:inherit;line-height:1.6;outline:none;overflow:auto}
.rich-editor:focus{border-color:rgba(247,198,106,.34);box-shadow:0 0 0 4px rgba(247,198,106,.08)}
.rich-editor:empty:before{content:attr(data-placeholder);color:var(--muted)}
.rich-editor p{margin:0 0 12px}.rich-editor p:last-child{margin-bottom:0}
.material-modal-body strong,.material-modal-body b{font-weight:780}.material-modal-body em,.material-modal-body i{font-style:italic}.material-modal-body u{text-underline-offset:3px;text-decoration-thickness:1px}

/* Sticky reading progress inside material reader */
.material-modal-topbar{
  position:sticky;
  top:0;
  z-index:10;
  display:grid;
  grid-template-columns:minmax(0,1fr) 48px;
  gap:12px;
  align-items:center;
  margin:-6px 0 18px;
  padding:6px 0 10px;
  background:linear-gradient(180deg,rgba(17,17,18,.96),rgba(17,17,18,.78) 72%,rgba(17,17,18,0));
  backdrop-filter:blur(16px);
}
.material-modal-topbar .modal-close{
  position:relative;
  top:auto;
  margin:0;
  width:48px;
  height:48px;
  border-radius:18px;
}
.reader-progress-sticky{
  margin:0;
  padding:12px 14px;
  border-radius:18px;
  background:rgba(255,255,255,.055);
  box-shadow:0 12px 34px rgba(0,0,0,.18);
}
.reader-progress-sticky .reader-progress-top{
  margin-bottom:8px;
  font-size:13px;
  letter-spacing:.01em;
}
.reader-progress-sticky .progress-track{
  height:7px;
}
@media (max-width:520px){
  .material-modal-card{padding:20px 20px 26px;border-radius:28px 28px 0 0;}
  .material-modal-topbar{grid-template-columns:minmax(0,1fr) 46px;gap:10px;margin:-2px 0 16px;}
  .reader-progress-sticky{padding:11px 12px;border-radius:16px;}
  .reader-progress-sticky .reader-progress-top span{font-size:12px;}
}

/* FINAL FIX: solid reader header, no transparency/blur overlay */
.material-modal-card{
  position:relative;
  background:#121213 !important;
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:0 28px 90px rgba(0,0,0,.55) !important;
}
.material-modal-topbar{
  position:sticky !important;
  top:0 !important;
  z-index:50 !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 56px !important;
  gap:14px !important;
  align-items:center !important;
  margin:-28px -28px 24px !important;
  padding:20px 28px 18px !important;
  background:#121213 !important;
  background-image:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  border-bottom:1px solid rgba(255,255,255,.09) !important;
  box-shadow:0 18px 34px rgba(0,0,0,.46) !important;
}
.reader-progress-sticky{
  margin:0 !important;
  padding:16px 18px !important;
  border-radius:22px !important;
  background:#1d1d1f !important;
  border:1px solid rgba(255,255,255,.13) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 12px 28px rgba(0,0,0,.24) !important;
}
.reader-progress-sticky .reader-progress-top{
  margin-bottom:11px !important;
  color:rgba(245,239,226,.88) !important;
  font-weight:720 !important;
}
.reader-progress-sticky .reader-progress-top strong{
  color:#fff2b8 !important;
  font-weight:820 !important;
}
.reader-progress-sticky .progress-track{
  height:8px !important;
  background:#303033 !important;
}
.reader-progress-sticky .progress-fill{
  background:linear-gradient(90deg,#fff3b0,#ffd56c,#ff8a1f) !important;
  box-shadow:none !important;
}
.material-modal-topbar .modal-close{
  position:relative !important;
  top:auto !important;
  margin:0 !important;
  width:56px !important;
  height:56px !important;
  border-radius:20px !important;
  background:#242427 !important;
  border:1px solid rgba(255,255,255,.13) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 10px 24px rgba(0,0,0,.28) !important;
  color:#f5f1e8 !important;
  font-weight:450 !important;
  line-height:1 !important;
}
.material-modal-topbar .modal-close:hover{
  background:#2d2d30 !important;
  border-color:rgba(255,255,255,.18) !important;
}
@media (max-width:520px){
  .material-modal-card{padding:20px 20px 26px !important;}
  .material-modal-topbar{
    grid-template-columns:minmax(0,1fr) 52px !important;
    gap:12px !important;
    margin:-20px -20px 22px !important;
    padding:16px 20px 15px !important;
    background:#121213 !important;
  }
  .reader-progress-sticky{padding:14px 14px !important;border-radius:20px !important;}
  .reader-progress-sticky .reader-progress-top{font-size:13px !important;}
  .material-modal-topbar .modal-close{width:52px !important;height:52px !important;border-radius:19px !important;}
}

/* READER OVERLAP FINAL: opaque top layer so text never appears behind progress */
.material-modal-card{
  position:relative !important;
  overflow:auto !important;
  padding-top:0 !important;
  background:#101011 !important;
  isolation:isolate !important;
  overscroll-behavior:contain !important;
}
.material-modal-topbar{
  position:sticky !important;
  top:0 !important;
  z-index:999 !important;
  margin:0 -28px 28px !important;
  padding:20px 28px 18px !important;
  background:#101011 !important;
  background-image:linear-gradient(180deg,#101011 0%,#101011 72%,#111112 100%) !important;
  border-bottom:1px solid rgba(255,255,255,.10) !important;
  box-shadow:0 20px 42px rgba(0,0,0,.72) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
.material-modal-topbar::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-80px;
  height:90px;
  background:#101011;
  pointer-events:none;
}
.material-modal-topbar::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-18px;
  height:18px;
  background:linear-gradient(180deg,#101011,rgba(16,16,17,0));
  pointer-events:none;
}
.reader-progress-sticky,
.material-modal-topbar .modal-close{
  position:relative !important;
  z-index:2 !important;
}
#materialModalCategory,
#materialModalTitle,
.material-modal-description,
.material-modal-body,
.reaction-box{
  position:relative !important;
  z-index:1 !important;
}
@media (max-width:520px){
  .material-modal-card{padding-top:0 !important;}
  .material-modal-topbar{
    margin:0 -20px 26px !important;
    padding:16px 20px 15px !important;
    background:#101011 !important;
  }
  .material-modal-topbar::before{top:-70px;height:80px;background:#101011;}
}

/* 2026 CLEAN SCALE FIX: меньше тяжелых заголовков, больше воздуха, современная типографика */
:root{
  --radius:24px;
  --radius-sm:16px;
}
.app-shell{
  width:min(760px,calc(100vw - 28px)) !important;
  padding-top:18px !important;
}
.card{
  border-radius:24px !important;
  background:linear-gradient(145deg,rgba(255,255,255,.058),rgba(255,255,255,.024)) !important;
  box-shadow:0 18px 54px rgba(0,0,0,.42) !important;
}
.topbar{
  min-height:auto !important;
  padding:22px 24px !important;
  margin-bottom:14px !important;
  align-items:center !important;
}
.topbar h1{
  font-size:clamp(29px,4.2vw,42px) !important;
  line-height:1.04 !important;
  letter-spacing:-.045em !important;
  font-weight:760 !important;
  max-width:520px !important;
}
.topbar p{
  margin-top:8px !important;
  font-size:15px !important;
  line-height:1.45 !important;
  color:rgba(245,242,235,.62) !important;
}
.eyebrow{
  margin-bottom:10px !important;
  font-size:10px !important;
  letter-spacing:.28em !important;
  font-weight:690 !important;
  color:rgba(255,232,171,.9) !important;
}
.badge{
  padding:9px 12px !important;
  font-size:12px !important;
  font-weight:640 !important;
  white-space:nowrap !important;
}
.hero-panel{
  grid-template-columns:1fr !important;
  gap:14px !important;
  padding:22px !important;
  margin-bottom:14px !important;
}
.hero-panel h2,
.section-hero h2,
#welcomeTitle{
  font-size:clamp(26px,4.2vw,36px) !important;
  line-height:1.08 !important;
  letter-spacing:-.04em !important;
  font-weight:760 !important;
  max-width:600px !important;
}
.hero-text,
.section-hero .hero-text{
  margin-top:11px !important;
  font-size:15px !important;
  line-height:1.65 !important;
  color:rgba(245,242,235,.68) !important;
  max-width:620px !important;
}
.section-hero{
  padding:22px !important;
  margin-bottom:14px !important;
}
.profile-mini,.sub-box{
  padding:15px !important;
  border-radius:18px !important;
  background:rgba(255,255,255,.038) !important;
}
.avatar{
  width:52px !important;
  height:52px !important;
  border-radius:18px !important;
  font-size:17px !important;
}
.profile-name{font-size:16px !important;font-weight:720 !important;}
.sub-label{font-size:12px !important;}
.sub-value{font-size:18px !important;font-weight:720 !important;}
.sub-days{font-size:13px !important;font-weight:680 !important;}
.feature-card{
  grid-template-columns:118px 1fr !important;
  min-height:142px !important;
  border-radius:24px !important;
}
.feature-visual{min-height:142px !important;}
.feature-content{padding:18px !important;}
.feature-card h3{
  font-size:23px !important;
  line-height:1.12 !important;
  letter-spacing:-.035em !important;
  font-weight:730 !important;
}
.feature-card p{
  font-size:15px !important;
  line-height:1.52 !important;
  color:rgba(245,242,235,.66) !important;
}
.feature-orb{width:60px !important;height:60px !important;border-radius:20px !important;font-size:26px !important;}
.feature-tag{font-size:11px !important;font-weight:620 !important;}
.material-card h3{font-size:21px !important;font-weight:730 !important;line-height:1.18 !important;}
.material-card p{font-size:14px !important;line-height:1.55 !important;}
.filter-panel{padding:18px !important;border-radius:22px !important;}
.chip,.segment,.btn{font-weight:560 !important;letter-spacing:-.005em !important;}

@media (min-width: 900px){
  .app-shell{width:min(720px,calc(100vw - 56px)) !important;}
  .topbar h1{font-size:38px !important;}
  .hero-panel h2,.section-hero h2,#welcomeTitle{font-size:34px !important;}
}

@media (max-width:760px){
  .app-shell{width:min(100% - 22px,560px) !important;padding-top:12px !important;}
  .topbar{
    padding:20px !important;
    display:flex !important;
    align-items:flex-start !important;
    gap:12px !important;
  }
  .topbar h1{
    font-size:clamp(34px,10vw,44px) !important;
    line-height:1.01 !important;
    font-weight:780 !important;
    letter-spacing:-.052em !important;
  }
  .topbar p{font-size:15px !important;}
  .badge{margin-top:0 !important;font-size:11px !important;padding:8px 10px !important;}
  .hero-panel,.section-hero{padding:20px !important;}
  .hero-panel h2,.section-hero h2,#welcomeTitle{
    font-size:clamp(26px,7.5vw,34px) !important;
    font-weight:760 !important;
    line-height:1.06 !important;
  }
  .feature-card{grid-template-columns:92px 1fr !important;min-height:128px !important;}
  .feature-visual{min-height:128px !important;}
  .feature-content{padding:16px 15px !important;}
  .feature-card h3{font-size:21px !important;}
  .feature-card p{font-size:14px !important;line-height:1.45 !important;}
  .feature-orb{width:54px !important;height:54px !important;border-radius:18px !important;font-size:24px !important;}
  .material-card h3{font-size:20px !important;}
}

/* Materials logic polish: 2026 spacing, statuses, empty states, locked reactions */
.segmented-row{
  display:flex !important;
  flex-wrap:wrap;
  gap:8px !important;
}
.segmented-row .segment{
  flex:1 1 auto;
  min-width:max-content;
  min-height:40px !important;
  padding:0 14px !important;
}
.materials-list{
  gap:12px !important;
}
.material-card{
  padding:18px !important;
  border-radius:24px !important;
  background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.032)) !important;
}
.material-head{
  margin-bottom:12px !important;
}
.material-status{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:0 10px;
  border-radius:999px;
  font-size:11px !important;
  letter-spacing:.09em !important;
  text-transform:none !important;
  font-weight:650 !important;
  color:rgba(245,242,235,.72) !important;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.045);
}
.material-status.status-new{
  color:rgba(255,229,166,.95) !important;
  border-color:rgba(247,198,106,.22);
  background:rgba(247,198,106,.09);
}
.material-status.status-progress{
  color:rgba(176,220,255,.95) !important;
  border-color:rgba(87,174,255,.20);
  background:rgba(87,174,255,.08);
}
.material-status.status-done{
  color:rgba(141,255,184,.92) !important;
  border-color:rgba(96,255,163,.18);
  background:rgba(96,255,163,.075);
}
.material-card.material-status-done{
  opacity:.74;
}
.open-material-btn.continue{
  background:linear-gradient(135deg,rgba(255,229,139,.95),rgba(247,198,106,.88),rgba(255,143,45,.88)) !important;
  color:rgba(20,14,5,.92) !important;
  border-color:transparent !important;
}
.empty-materials{
  display:grid;
  gap:8px;
  justify-items:start;
  padding:24px !important;
  min-height:132px;
  align-content:center;
  color:rgba(245,242,235,.72) !important;
}
.empty-materials .empty-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:rgba(247,198,106,.10);
  border:1px solid rgba(247,198,106,.18);
  color:var(--gold-2);
}
.empty-materials strong{
  color:rgba(245,242,235,.9);
  font-size:16px;
  font-weight:660;
}
.empty-materials span{
  color:rgba(200,195,185,.68);
  font-size:14px;
  line-height:1.5;
}
.reaction-lock-note{
  margin:6px 0 0;
  color:rgba(200,195,185,.68);
  font-size:14px;
  line-height:1.45;
}
.reaction-lock-note.unlocked{
  color:rgba(255,229,166,.82);
}
.reaction-btn.locked{
  opacity:.45;
  cursor:not-allowed;
  filter:saturate(.55);
}
.reaction-btn:disabled:hover{
  transform:none !important;
  border-color:var(--stroke) !important;
}
.feature-tag{
  background:rgba(255,255,255,.07) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  color:rgba(245,242,235,.72) !important;
  box-shadow:none !important;
}
@media(max-width:520px){
  .segmented-row .segment{font-size:12px !important;min-height:38px !important;padding:0 12px !important;}
  .material-card{padding:16px !important;}
}

/* Modern compact reactions */
.reaction-btn{
  gap:8px;
  padding:0 12px !important;
}
.reaction-btn .reaction-emoji{
  font-size:20px;
  line-height:1;
}
.reaction-btn .reaction-label{
  font-size:12px;
  font-weight:560;
  color:rgba(245,242,235,.76);
  letter-spacing:-.01em;
}
.reaction-btn strong{
  min-width:18px;
  height:18px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(255,255,255,.07);
  color:rgba(255,229,166,.9);
  font-size:11px;
  font-weight:650;
  padding:0 5px;
}
.reaction-btn.active .reaction-label{
  color:rgba(255,229,166,.96);
}
@media(max-width:760px){
  .segmented-row{grid-template-columns:1fr 1fr !important;}
  .reaction-row{gap:8px;}
  .reaction-btn{min-height:40px !important;padding:0 10px !important;}
  .reaction-btn .reaction-label{font-size:11px;}
  .reaction-btn .reaction-emoji{font-size:18px;}
}


/* Filter layout refinement */
.segmented-row{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:9px !important;
}
.segmented-row .segment{
  min-width:0 !important;
  width:100% !important;
  min-height:40px !important;
  font-weight:560 !important;
}
.segmented-row .segment[data-status="all"]{
  grid-column:1 / -1 !important;
  min-height:44px !important;
}
.reaction-lock-note[hidden]{
  display:none !important;
}
@media(max-width:520px){
  .segmented-row{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
  .segmented-row .segment{
    font-size:11.5px !important;
    padding:0 8px !important;
  }
  .segmented-row .segment[data-status="all"]{
    font-size:12.5px !important;
  }
}


/* Clean category panel + reactions textless update */
.filter-panel:after{
  display:none !important;
}
.filter-panel{
  background:linear-gradient(145deg,rgba(255,255,255,.052),rgba(255,255,255,.024)) !important;
}
.chip.active{
  box-shadow:none !important;
}
.chip-row{
  position:relative;
  z-index:2;
}
.reaction-btn .reaction-label{
  display:none !important;
}
.reaction-btn{
  min-width:56px !important;
  justify-content:center !important;
  gap:7px !important;
}
.reaction-btn .reaction-emoji{
  font-size:21px !important;
}

/* Habit tracker — modern 2026 logic */
.habit-panel{padding:22px;margin-bottom:16px;overflow:hidden;position:relative}
.habit-panel:before{content:"";position:absolute;right:-90px;top:-120px;width:280px;height:280px;border-radius:999px;background:radial-gradient(circle,rgba(132,226,166,.18),rgba(255,172,64,.08) 46%,transparent 72%);filter:blur(14px);pointer-events:none}
.habit-panel>*{position:relative;z-index:1}.habit-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.habit-panel-head h3{font-size:clamp(24px,4vw,34px);letter-spacing:-.055em;margin:8px 0}.habit-panel-head p{margin:0;color:var(--muted);line-height:1.5;max-width:560px}.habit-score{min-width:92px;height:92px;border-radius:28px;display:grid;place-items:center;background:linear-gradient(145deg,rgba(132,226,166,.16),rgba(255,255,255,.045));border:1px solid rgba(132,226,166,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}.habit-score strong{font-size:27px;letter-spacing:-.055em;color:#dbffe7}.habit-score span{margin-top:-20px;color:var(--muted);font-size:12px;font-weight:650}.habit-insight{margin:18px 0;padding:15px 16px;border-radius:20px;background:rgba(132,226,166,.075);border:1px solid rgba(132,226,166,.15);color:#e1efe5;line-height:1.48}.habit-form{display:grid;grid-template-columns:64px 1fr 1fr 150px auto;gap:10px;margin-bottom:16px}.habit-form input,.habit-form select{min-height:46px;border:1px solid var(--stroke);border-radius:16px;background:rgba(255,255,255,.052);color:var(--text);padding:0 13px;font:inherit;outline:none}.habit-form input:focus,.habit-form select:focus{border-color:rgba(132,226,166,.34);box-shadow:0 0 0 4px rgba(132,226,166,.08)}.habit-summary-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.habit-summary-row>div{border:1px solid var(--stroke);border-radius:20px;background:rgba(255,255,255,.04);padding:14px}.habit-summary-row strong{display:block;font-size:22px;letter-spacing:-.04em}.habit-summary-row span{display:block;margin-top:4px;color:var(--muted);font-size:13px}.habit-list{display:grid;gap:12px}.habit-empty{display:grid;gap:6px;border:1px dashed rgba(255,255,255,.16);border-radius:22px;padding:18px;color:var(--soft);background:rgba(255,255,255,.035)}.habit-empty span{color:var(--muted);line-height:1.45}.habit-item{border:1px solid var(--stroke);border-radius:24px;background:linear-gradient(145deg,rgba(255,255,255,.058),rgba(255,255,255,.026));padding:14px;transition:border-color .2s var(--ease),transform .2s var(--ease),background .2s var(--ease)}.habit-item.done{border-color:rgba(132,226,166,.22);background:linear-gradient(145deg,rgba(132,226,166,.075),rgba(255,255,255,.028))}.habit-status-risk{border-color:rgba(255,172,64,.26)}.habit-main-row{display:grid;grid-template-columns:44px 50px 1fr 62px;gap:12px;align-items:center}.habit-check{width:44px;height:44px;border-radius:16px;border:1px solid rgba(132,226,166,.28);background:rgba(132,226,166,.08);color:#d8ffe1;font-size:20px;font-weight:800;cursor:pointer}.habit-item.done .habit-check{background:linear-gradient(135deg,#d8ffe1,#80e39f);color:#071009;border-color:transparent}.habit-icon{width:50px;height:50px;border-radius:18px;display:grid;place-items:center;background:rgba(255,255,255,.06);border:1px solid var(--stroke);font-size:23px}.habit-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.habit-copy strong{display:block;font-size:16px;letter-spacing:-.025em}.habit-copy span:not(.habit-status-pill){display:block;margin-top:5px;color:var(--muted);font-size:13px;line-height:1.35}.habit-status-pill{font-size:11px;line-height:1;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid var(--stroke);color:var(--soft);font-weight:650}.habit-status-stable .habit-status-pill,.habit-status-fixed .habit-status-pill{color:#d8ffe1;border-color:rgba(132,226,166,.18);background:rgba(132,226,166,.08)}.habit-status-risk .habit-status-pill{color:#ffd9a1;border-color:rgba(255,172,64,.22);background:rgba(255,172,64,.08)}.habit-metrics{text-align:right}.habit-metrics b{display:block;color:#d8ffe1;font-size:22px;letter-spacing:-.04em}.habit-metrics span{display:block;color:var(--muted);font-size:12px}.habit-calendar{display:grid;grid-template-columns:repeat(14,1fr);gap:6px;margin:14px 0 10px}.habit-day{min-width:0;border:0;border-radius:12px;background:rgba(255,255,255,.045);padding:7px 3px;display:grid;gap:5px;place-items:center;color:var(--muted);cursor:pointer}.habit-day span{font-size:9px;text-transform:uppercase}.habit-day i{width:8px;height:8px;border-radius:999px;background:rgba(255,255,255,.16)}.habit-day.done{background:rgba(132,226,166,.12);color:#d8ffe1}.habit-day.done i{background:#80e39f;box-shadow:0 0 12px rgba(132,226,166,.42)}.habit-day.today{outline:1px solid rgba(247,198,106,.38)}.habit-bottom-row{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:13px;gap:10px}.habit-delete{border:0;background:transparent;color:rgba(255,128,124,.78);font:inherit;font-weight:650;cursor:pointer;white-space:nowrap}@media(max-width:860px){.habit-form{grid-template-columns:58px 1fr}.habit-form select,.habit-form button,.habit-form input:nth-child(3){grid-column:1 / -1}.habit-panel-head{display:grid}.habit-score{width:100%;height:auto;min-height:74px;display:flex;align-items:center;justify-content:center;gap:8px}.habit-score span{margin-top:0}.habit-main-row{grid-template-columns:42px 46px 1fr}.habit-metrics{grid-column:1 / -1;text-align:left;display:flex;gap:6px;align-items:baseline;padding-left:100px}.habit-calendar{grid-template-columns:repeat(7,1fr)}}@media(max-width:430px){.habit-panel{padding:18px}.habit-summary-row{grid-template-columns:1fr}.habit-copy strong{font-size:15px}.habit-metrics{padding-left:0}.habit-calendar{gap:5px}.habit-day span{font-size:8px}.habit-bottom-row{display:grid}}

/* Functions logic fix: habit tracker opens only after tapping its feature card */
.habit-detail-toolbar{display:flex;align-items:center;justify-content:flex-start;margin-bottom:14px;position:relative;z-index:2}
.habit-back{min-height:38px;padding:0 14px;font-size:13px;font-weight:560;background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.10);color:var(--soft)}
#contentGrid.hidden,#habitPanel.hidden{display:none!important}


/* Feature status polish */
.feature-topline{
  justify-content:flex-start !important;
  margin-bottom:14px !important;
}
.feature-kind{
  display:none !important;
}
.feature-tag{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:28px !important;
  padding:7px 11px !important;
  border-radius:999px !important;
  font-size:11px !important;
  line-height:1 !important;
  font-weight:680 !important;
  letter-spacing:.01em !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10) !important;
}
.feature-tag-live{
  color:#b8ffd8 !important;
  background:linear-gradient(135deg,rgba(33,201,122,.20),rgba(33,201,122,.075)) !important;
  border:1px solid rgba(69,235,151,.28) !important;
}
.feature-tag-live::before{
  content:'';
  width:6px;
  height:6px;
  margin-right:7px;
  border-radius:50%;
  background:#3ee68f;
  box-shadow:0 0 14px rgba(62,230,143,.52);
}
.feature-tag-soon{
  color:rgba(245,242,235,.68) !important;
  background:rgba(255,255,255,.055) !important;
  border:1px solid rgba(255,255,255,.10) !important;
}
.feature-tag-soon::before{
  content:'';
  width:6px;
  height:6px;
  margin-right:7px;
  border-radius:50%;
  background:rgba(245,242,235,.38);
}

/* Final polish: feature status to the right + compact title + member levels */
.topbar h1{
  font-size:clamp(24px,3.1vw,31px) !important;
  line-height:1.05 !important;
  letter-spacing:-.035em !important;
  font-weight:690 !important;
}
@media (min-width:900px){
  .topbar h1{font-size:30px !important;}
}
@media (max-width:760px){
  .topbar h1{font-size:clamp(25px,7vw,32px) !important;}
}
.feature-content{position:relative !important;padding-top:42px !important;}
.feature-topline{
  position:absolute !important;
  top:16px !important;
  right:16px !important;
  z-index:3 !important;
  justify-content:flex-end !important;
  margin:0 !important;
  width:auto !important;
}
.feature-tag{white-space:nowrap !important;}
.level-box{
  background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.022));
  border:1px solid var(--stroke);
  border-radius:18px;
  padding:15px;
  position:relative;
  overflow:hidden;
}
.level-box:before{
  content:"";
  position:absolute;
  right:-46px;
  top:-62px;
  width:160px;
  height:160px;
  border-radius:999px;
  background:radial-gradient(circle,rgba(247,198,106,.16),transparent 68%);
  pointer-events:none;
}
.level-box>*{position:relative;z-index:1;}
.level-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px;}
.level-title{font-size:22px;font-weight:760;letter-spacing:-.04em;color:#fff4d7;}
.level-score{padding:7px 10px;border-radius:999px;background:rgba(247,198,106,.10);border:1px solid rgba(247,198,106,.18);color:var(--gold-2);font-size:12px;font-weight:620;white-space:nowrap;}
.level-progress-track{height:8px;border-radius:999px;background:rgba(255,255,255,.07);overflow:hidden;margin-bottom:10px;}
