: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);
}
*{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;}
.level-progress-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,rgba(247,198,106,.82),rgba(132,226,166,.86));box-shadow:0 0 18px rgba(247,198,106,.18);transition:width .3s var(--ease);}
.level-meta{font-size:13px;line-height:1.45;color:rgba(245,242,235,.64);}
.level-factors{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px;}
.level-factors span{padding:7px 9px;border-radius:999px;background:rgba(255,255,255,.052);border:1px solid rgba(255,255,255,.08);color:rgba(245,242,235,.72);font-size:12px;font-weight:560;}
@media(max-width:760px){
  .feature-content{padding-top:39px !important;}
  .feature-topline{top:14px !important;right:14px !important;}
  .level-title{font-size:20px;}
}

/* Human-friendly member level copy */
.level-meta{max-width:520px;}
.level-factors span{letter-spacing:-.01em;}

/* Optional audio for posts */
.audio-upload-field{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  background:rgba(255,255,255,.035);
}
.audio-upload-field span{
  color:var(--text);
  font-size:14px;
  font-weight:650;
  letter-spacing:-.01em;
}
.audio-upload-field small{color:var(--muted);font-weight:500;margin-left:6px}
.audio-upload-field input{
  width:100%;
  color:var(--soft);
  font-size:13px;
}
.audio-upload-field em{
  color:var(--muted);
  font-size:12px;
  font-style:normal;
  line-height:1.45;
}
.audio-admin-mark{
  display:inline-flex;
  width:max-content;
  margin-top:8px;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(80,220,150,.12);
  color:#9ff0bd;
  font-size:12px;
  font-weight:650;
}
.post-audio-player{
  margin:0 0 22px;
  padding:16px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
}
.post-audio-label{
  margin-bottom:10px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.post-audio-player audio{
  display:block;
  width:100%;
  height:42px;
  filter:grayscale(.15);
}


.audio-remove-field{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:16px;
  background:rgba(255,255,255,.035);
  color:rgba(255,255,255,.78);
  font-size:13px;
  font-weight:500;
}
.audio-remove-field[hidden]{display:none!important}
.audio-remove-field input{
  width:16px;
  height:16px;
  accent-color:#ef4444;
}


.assistant-panel { display: flex; flex-direction: column; gap: 16px; }
.assistant-detail-toolbar { display: flex; justify-content: flex-start; }
.assistant-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.assistant-head h3 { margin: 4px 0 8px; font-size: clamp(22px, 4vw, 34px); letter-spacing: -0.04em; }
.assistant-head p { margin: 0; color: var(--muted); line-height: 1.55; max-width: 620px; }
.assistant-limit { white-space: nowrap; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: rgba(255,255,255,.78); padding: 9px 12px; border-radius: 999px; font-size: 13px; }
.assistant-messages { min-height: 420px; max-height: 58vh; overflow: auto; padding: 16px; border-radius: 24px; background: rgba(0,0,0,.26); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 12px; }
.assistant-empty { margin: auto; max-width: 440px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.assistant-empty strong { color: var(--text); font-size: 18px; }
.assistant-message { display: flex; }
.assistant-message.user { justify-content: flex-end; }
.assistant-message.professor { justify-content: flex-start; }
.assistant-bubble { max-width: min(82%, 620px); padding: 13px 15px; border-radius: 18px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.055); }
.assistant-message.user .assistant-bubble { background: rgba(255,255,255,.92); color: #080808; border-color: rgba(255,255,255,.2); }
.assistant-typing { display: inline-flex; align-items: center; gap: 5px; min-width: 62px; }
.assistant-typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); animation: assistantDot 1.1s infinite ease-in-out; }
.assistant-typing span:nth-child(2) { animation-delay: .15s; }
.assistant-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes assistantDot { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-4px); opacity: 1; } }
.assistant-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.assistant-form textarea { min-height: 52px; max-height: 140px; resize: vertical; border-radius: 18px; padding: 14px 15px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--text); outline: none; }
.assistant-form textarea:focus { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.08); }
@media (max-width: 640px) { .assistant-head { flex-direction: column; } .assistant-limit { align-self: flex-start; } .assistant-messages { min-height: 360px; max-height: 56vh; padding: 12px; } .assistant-bubble { max-width: 92%; font-size: 14px; } .assistant-form { grid-template-columns: 1fr; } }


/* ===== AI Professor 2026 layout fix ===== */
body.assistant-open{
  overflow-x:hidden;
}
body.assistant-open .menu-tabs{
  display:none !important;
}
body.assistant-open .app-shell{
  max-width:min(900px,100%);
  padding-bottom:24px !important;
}
body.assistant-open .topbar{
  display:none;
}
body.assistant-open .section-hero{
  display:none;
}
body.assistant-open .screen[data-screen-panel="functions"]{
  padding-top:0;
}

.assistant-panel.card{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:14px;
  min-height:min(780px, calc(100dvh - 28px));
  max-width:860px;
  margin:0 auto;
  padding:18px;
  border-radius:34px;
  background:
    radial-gradient(circle at 18% 0%, rgba(247,198,106,.12), transparent 34%),
    linear-gradient(180deg, rgba(18,19,22,.98), rgba(9,10,12,.99));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 24px 70px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.06);
  overflow:hidden;
}
.assistant-panel.hidden{display:none!important;}
.assistant-panel::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(120deg, rgba(255,255,255,.045), transparent 34%, rgba(247,198,106,.025));
}
.assistant-detail-toolbar,
.assistant-head,
.assistant-messages,
.assistant-form{position:relative;z-index:1;}
.assistant-detail-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:44px;
}
.assistant-back.btn{
  height:42px;
  padding:0 14px;
  border-radius:16px;
  font-size:14px;
  font-weight:560;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:rgba(247,242,232,.84);
}
.assistant-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px;
  align-items:start;
  padding:2px 4px 4px;
}
.assistant-head .eyebrow{
  font-size:11px;
  letter-spacing:.28em;
  color:rgba(255,201,99,.86);
}
.assistant-head h3{
  margin:8px 0 8px;
  font-size:clamp(24px,4vw,34px);
  line-height:1.02;
  letter-spacing:-.045em;
  font-weight:780;
}
.assistant-head p{
  margin:0;
  max-width:620px;
  color:rgba(234,229,218,.66);
  font-size:15px;
  line-height:1.52;
  letter-spacing:-.01em;
}
.assistant-limit{
  justify-self:end;
  align-self:start;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid rgba(127,224,157,.22);
  background:rgba(127,224,157,.09);
  color:rgba(178,255,199,.90);
  font-size:13px;
  font-weight:620;
  white-space:nowrap;
}
.assistant-messages{
  flex:1;
  min-height:360px;
  height:clamp(360px, calc(100dvh - 300px), 600px);
  max-height:none;
  overflow:auto;
  padding:16px;
  border-radius:26px;
  background:#0b0c0e;
  border:1px solid rgba(255,255,255,.08);
  display:flex;
  flex-direction:column;
  gap:12px;
  scroll-behavior:smooth;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.assistant-empty{
  margin:auto;
  width:min(440px,100%);
  text-align:center;
  color:rgba(234,229,218,.58);
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:26px 18px;
}
.assistant-empty strong{
  color:rgba(255,255,255,.92);
  font-size:18px;
  letter-spacing:-.02em;
}
.assistant-message{
  display:flex;
  width:100%;
}
.assistant-message.user{justify-content:flex-end;}
.assistant-message.professor{justify-content:flex-start;}
.assistant-bubble{
  max-width:min(78%, 620px);
  padding:13px 15px;
  border-radius:20px;
  font-size:15px;
  line-height:1.58;
  letter-spacing:-.01em;
  color:rgba(246,243,236,.92);
  background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.045));
  border:1px solid rgba(255,255,255,.09);
  box-shadow:0 8px 28px rgba(0,0,0,.20);
  word-break:break-word;
}
.assistant-message.professor .assistant-bubble{
  border-bottom-left-radius:8px;
}
.assistant-message.user .assistant-bubble{
  color:#12100b;
  background:linear-gradient(135deg, #fff3c2, #ffad3d);
  border-color:rgba(255,255,255,.22);
  border-bottom-right-radius:8px;
}
.assistant-typing{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-width:58px;
}
.assistant-typing span{
  width:6px;height:6px;border-radius:50%;
  background:rgba(255,255,255,.55);
  animation:assistantDot 1.1s infinite ease-in-out;
}
.assistant-typing span:nth-child(2){animation-delay:.15s;}
.assistant-typing span:nth-child(3){animation-delay:.3s;}
.assistant-form{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 116px;
  gap:10px;
  align-items:end;
  padding:2px;
}
.assistant-form textarea{
  width:100%;
  min-height:54px;
  max-height:136px;
  resize:none;
  border-radius:22px;
  padding:16px 16px;
  background:#111214;
  border:1px solid rgba(255,255,255,.10);
  color:rgba(255,255,255,.92);
  outline:none;
  font:inherit;
  font-size:15px;
  line-height:1.35;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.assistant-form textarea::placeholder{color:rgba(235,230,222,.46);}
.assistant-form textarea:focus{
  border-color:rgba(247,198,106,.34);
  background:#141518;
  box-shadow:0 0 0 4px rgba(247,198,106,.07), inset 0 1px 0 rgba(255,255,255,.05);
}
.assistant-form .btn{
  height:54px;
  min-height:54px;
  border-radius:22px;
  padding:0 18px;
  font-size:14px;
  font-weight:650;
}

@media (min-width: 900px){
  body.assistant-open .app-shell{
    width:min(900px, calc(100vw - 48px));
    margin-inline:auto;
  }
  .assistant-panel.card{
    min-height:min(760px, calc(100vh - 48px));
    padding:22px;
  }
  .assistant-messages{
    height:520px;
  }
}

@media (max-width: 640px){
  body.assistant-open .app-shell{
    width:100%;
    padding:0 10px 12px !important;
  }
  .assistant-panel.card{
    min-height:calc(100dvh - 18px);
    border-radius:30px;
    padding:14px;
    gap:12px;
  }
  .assistant-detail-toolbar{min-height:40px;}
  .assistant-back.btn{
    height:38px;
    padding:0 12px;
    border-radius:14px;
    font-size:13px;
  }
  .assistant-head{
    grid-template-columns:1fr auto;
    gap:10px;
    padding:0 2px;
  }
  .assistant-head h3{
    font-size:25px;
    margin:7px 0 7px;
  }
  .assistant-head p{
    font-size:14px;
    line-height:1.45;
  }
  .assistant-limit{
    font-size:12px;
    padding:8px 10px;
  }
  .assistant-messages{
    height:calc(100dvh - 282px);
    min-height:310px;
    padding:12px;
    border-radius:24px;
    gap:10px;
  }
  .assistant-bubble{
    max-width:86%;
    padding:12px 13px;
    border-radius:18px;
    font-size:14px;
    line-height:1.52;
  }
  .assistant-form{
    grid-template-columns:minmax(0,1fr) 54px !important;
    gap:8px;
    align-items:end;
  }
  .assistant-form textarea{
    min-height:52px;
    max-height:112px;
    border-radius:20px;
    padding:15px 14px;
    font-size:15px;
  }
  .assistant-form .btn{
    width:54px;
    height:52px;
    min-height:52px;
    padding:0;
    border-radius:20px;
    font-size:0;
    display:grid;
    place-items:center;
  }
  .assistant-form .btn::after{
    content:"↗";
    font-size:20px;
    line-height:1;
    font-weight:700;
  }
}

@media (max-width: 380px){
  .assistant-head h3{font-size:23px;}
  .assistant-head p{font-size:13px;}
  .assistant-messages{height:calc(100dvh - 272px);}
}


/* ===== Assistant: stable in-page layout like habit tracker ===== */
body.assistant-open .menu-tabs,
body.assistant-open .topbar,
body.assistant-open .section-hero{
  display:inherit !important;
}
body.assistant-open .app-shell{
  max-width:var(--shell) !important;
  padding-bottom:110px !important;
}

.assistant-panel.card{
  display:flex;
  flex-direction:column;
  gap:16px;
  width:100%;
  min-height:auto;
  max-width:none;
  margin:0;
  padding:20px;
  border-radius:30px;
  overflow:visible;
  background:
    radial-gradient(circle at 12% 0%, rgba(247,198,106,.13), transparent 34%),
    linear-gradient(180deg, rgba(24,25,28,.94), rgba(13,14,16,.96));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 18px 50px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.06);
}
.assistant-panel.hidden{display:none!important;}
.assistant-panel::before{display:none!important;}
.assistant-detail-toolbar,
.assistant-head,
.assistant-messages,
.assistant-form{position:relative;z-index:1;}
.assistant-detail-toolbar{display:flex;justify-content:flex-start;align-items:center;min-height:40px;}
.assistant-back.btn{height:40px;padding:0 14px;border-radius:16px;font-size:14px;font-weight:560;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.10);color:rgba(247,242,232,.84);}
.assistant-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:start;padding:2px 0 0;}
.assistant-head .eyebrow{font-size:11px;letter-spacing:.26em;color:rgba(255,201,99,.86);}
.assistant-head h3{margin:7px 0 7px;font-size:clamp(24px,3.2vw,32px);line-height:1.05;letter-spacing:-.04em;font-weight:760;}
.assistant-head p{margin:0;max-width:620px;color:rgba(234,229,218,.66);font-size:15px;line-height:1.5;letter-spacing:-.01em;}
.assistant-limit{justify-self:end;align-self:start;padding:8px 11px;border-radius:999px;border:1px solid rgba(127,224,157,.22);background:rgba(127,224,157,.09);color:rgba(178,255,199,.90);font-size:13px;font-weight:620;white-space:nowrap;}
.assistant-messages{height:clamp(340px, 48vh, 560px);min-height:340px;max-height:none;overflow:auto;padding:16px;border-radius:24px;background:#0b0c0e;border:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth;box-shadow:inset 0 1px 0 rgba(255,255,255,.04);}
.assistant-empty{margin:auto;width:min(430px,100%);text-align:center;color:rgba(234,229,218,.58);display:flex;flex-direction:column;gap:8px;padding:22px 16px;}
.assistant-empty strong{color:rgba(255,255,255,.92);font-size:17px;letter-spacing:-.02em;}
.assistant-message{display:flex;width:100%;}
.assistant-message.user{justify-content:flex-end;}
.assistant-message.professor{justify-content:flex-start;}
.assistant-bubble{max-width:min(78%, 620px);padding:12px 14px;border-radius:19px;font-size:15px;line-height:1.55;letter-spacing:-.01em;color:rgba(246,243,236,.92);background:linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.045));border:1px solid rgba(255,255,255,.09);box-shadow:0 8px 28px rgba(0,0,0,.18);word-break:break-word;}
.assistant-message.professor .assistant-bubble{border-bottom-left-radius:8px;}
.assistant-message.user .assistant-bubble{color:#151109;background:linear-gradient(135deg, #fff0b8, #ffab3d);border-color:rgba(255,255,255,.22);border-bottom-right-radius:8px;}
.assistant-typing{display:inline-flex;align-items:center;gap:5px;min-width:58px;}
.assistant-typing span{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.55);animation:assistantDot 1.1s infinite ease-in-out;}
.assistant-typing span:nth-child(2){animation-delay:.15s;}
.assistant-typing span:nth-child(3){animation-delay:.3s;}
.assistant-form{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:10px;align-items:end;padding:0;}
.assistant-form textarea{width:100%;min-height:54px;max-height:136px;resize:none;border-radius:20px;padding:15px 15px;background:#111214;border:1px solid rgba(255,255,255,.10);color:rgba(255,255,255,.92);outline:none;font:inherit;font-size:15px;line-height:1.35;box-shadow:inset 0 1px 0 rgba(255,255,255,.04);}
.assistant-form textarea::placeholder{color:rgba(235,230,222,.46);}
.assistant-form textarea:focus{border-color:rgba(247,198,106,.34);background:#141518;box-shadow:0 0 0 4px rgba(247,198,106,.07), inset 0 1px 0 rgba(255,255,255,.05);}
.assistant-form .btn{height:54px;min-height:54px;border-radius:20px;padding:0 18px;font-size:14px;font-weight:650;}

@media (min-width: 900px){
  .assistant-panel.card{padding:24px;}
  .assistant-messages{height:520px;}
}
@media (max-width: 640px){
  .assistant-panel.card{border-radius:28px;padding:14px;gap:12px;margin-bottom:18px;}
  .assistant-detail-toolbar{min-height:38px;}
  .assistant-back.btn{height:38px;padding:0 12px;border-radius:14px;font-size:13px;}
  .assistant-head{grid-template-columns:1fr auto;gap:10px;}
  .assistant-head h3{font-size:24px;margin:6px 0;}
  .assistant-head p{font-size:14px;line-height:1.45;}
  .assistant-limit{font-size:12px;padding:7px 9px;}
  .assistant-messages{height:calc(100dvh - 390px);min-height:300px;padding:12px;border-radius:22px;gap:10px;}
  .assistant-bubble{max-width:88%;padding:11px 13px;border-radius:18px;font-size:14px;line-height:1.52;}
  .assistant-form{grid-template-columns:minmax(0,1fr) 54px !important;gap:8px;}
  .assistant-form textarea{min-height:52px;max-height:112px;border-radius:19px;padding:14px 13px;font-size:15px;}
  .assistant-form .btn{width:54px;height:52px;min-height:52px;padding:0;border-radius:19px;font-size:0;display:grid;place-items:center;}
  .assistant-form .btn::after{content:"↗";font-size:19px;line-height:1;font-weight:700;}
}
@media (max-width: 380px){.assistant-head h3{font-size:22px}.assistant-head p{font-size:13px}.assistant-messages{height:calc(100dvh - 374px);}}


/* ===== Professor mentor: clean 2026 in-page chat fix ===== */
.feature-card-assistant .feature-orb{font-size:34px;letter-spacing:-.04em;color:#ffe5a3;}
.feature-card-assistant .feature-visual{background:radial-gradient(circle at center,rgba(255,201,99,.16),transparent 58%)}

.assistant-panel.card{
  display:grid;
  grid-template-rows:auto auto minmax(320px, 1fr) auto;
  gap:14px;
  width:100%;
  max-width:100%;
  min-height:0;
  margin:0 0 18px;
  padding:18px;
  border-radius:30px;
  background:linear-gradient(180deg,#17181b 0%,#0d0e10 100%) !important;
  border:1px solid rgba(255,255,255,.10);
  box-shadow:0 18px 54px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.05);
  overflow:hidden;
}
.assistant-panel.hidden{display:none!important;}
.assistant-panel::before{display:none!important;}
.assistant-detail-toolbar{display:flex;justify-content:flex-start;align-items:center;min-height:38px;}
.assistant-back.btn{height:38px;padding:0 13px;border-radius:14px;font-size:13px;font-weight:560;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.10);color:rgba(246,241,232,.82);}
.assistant-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;padding:0 2px;}
.assistant-head .eyebrow{font-size:10px;letter-spacing:.26em;color:rgba(255,201,99,.82);}
.assistant-head h3{margin:6px 0 6px;font-size:clamp(22px,3vw,30px);line-height:1.08;letter-spacing:-.035em;font-weight:720;}
.assistant-head p{margin:0;max-width:620px;color:rgba(234,229,218,.64);font-size:14px;line-height:1.46;letter-spacing:-.01em;}
.assistant-limit{justify-self:end;align-self:start;padding:7px 10px;border-radius:999px;border:1px solid rgba(127,224,157,.22);background:rgba(127,224,157,.08);color:rgba(178,255,199,.88);font-size:12px;font-weight:620;white-space:nowrap;}
.assistant-messages{height:clamp(330px,46vh,540px);min-height:320px;max-height:none;overflow:auto;padding:14px;border-radius:22px;background:#090a0c;border:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth;box-shadow:inset 0 1px 0 rgba(255,255,255,.035);}
.assistant-empty{margin:auto;width:min(420px,100%);text-align:center;color:rgba(234,229,218,.56);display:flex;flex-direction:column;gap:8px;padding:22px 16px;}
.assistant-empty strong{color:rgba(255,255,255,.90);font-size:17px;letter-spacing:-.02em;}
.assistant-message{display:flex;width:100%;}
.assistant-message.user{justify-content:flex-end;}
.assistant-message.professor{justify-content:flex-start;}
.assistant-bubble{max-width:min(80%,620px);padding:12px 14px;border-radius:18px;font-size:14.5px;line-height:1.55;letter-spacing:-.01em;color:rgba(246,243,236,.92);background:#18191c;border:1px solid rgba(255,255,255,.08);box-shadow:0 8px 22px rgba(0,0,0,.18);word-break:break-word;}
.assistant-message.professor .assistant-bubble{border-bottom-left-radius:7px;}
.assistant-message.user .assistant-bubble{color:#17110a;background:linear-gradient(135deg,#fff0b6,#ffb03f);border-color:rgba(255,255,255,.20);border-bottom-right-radius:7px;}
.assistant-typing{display:inline-flex;align-items:center;gap:5px;min-width:54px;}
.assistant-typing span{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.56);animation:assistantDot 1.1s infinite ease-in-out;}
.assistant-form{display:grid;grid-template-columns:minmax(0,1fr) 56px;gap:9px;align-items:end;padding:0;}
.assistant-form textarea{width:100%;min-height:54px;max-height:120px;resize:none;border-radius:20px;padding:15px 15px;background:#101113;border:1px solid rgba(255,255,255,.10);color:rgba(255,255,255,.92);outline:none;font:inherit;font-size:15px;line-height:1.34;box-shadow:inset 0 1px 0 rgba(255,255,255,.04);}
.assistant-form textarea::placeholder{color:rgba(235,230,222,.43);}
.assistant-form textarea:focus{border-color:rgba(247,198,106,.32);background:#131417;box-shadow:0 0 0 4px rgba(247,198,106,.065), inset 0 1px 0 rgba(255,255,255,.05);}
.assistant-form .btn.assistant-send{width:56px;height:54px;min-height:54px;padding:0;border-radius:20px;font-size:0;display:grid;place-items:center;background:linear-gradient(135deg,#fff0b6,#ff9c2e);box-shadow:0 12px 32px rgba(255,154,45,.18);}
.assistant-form .btn.assistant-send span{display:none;}
.assistant-form .btn.assistant-send::after{content:'↑';font-size:24px;line-height:1;font-weight:650;transform:rotate(45deg);color:#15100a;}

@media (min-width:900px){
  .assistant-panel.card{padding:22px;border-radius:32px;}
  .assistant-messages{height:500px;}
  .assistant-form{grid-template-columns:minmax(0,1fr) 58px;}
  .assistant-form .btn.assistant-send{width:58px;}
}
@media (max-width:640px){
  .assistant-panel.card{padding:14px;border-radius:26px;gap:12px;margin-bottom:18px;}
  .assistant-head{grid-template-columns:1fr;gap:8px;}
  .assistant-limit{justify-self:start;}
  .assistant-head h3{font-size:23px;margin:5px 0;}
  .assistant-head p{font-size:13.5px;line-height:1.44;}
  .assistant-messages{height:calc(100dvh - 390px);min-height:310px;padding:11px;border-radius:20px;}
  .assistant-bubble{max-width:88%;font-size:14px;padding:11px 12px;}
  .assistant-form{grid-template-columns:minmax(0,1fr) 54px !important;gap:8px;}
  .assistant-form textarea{min-height:52px;border-radius:19px;padding:14px 13px;}
  .assistant-form .btn.assistant-send{width:54px;height:52px;min-height:52px;border-radius:19px;}
}

/* Final stable functions + mentor layout fix */
.feature-lines{display:none!important;}
.feature-card{grid-template-columns:132px minmax(0,1fr)!important;min-height:154px!important;overflow:hidden;}
.feature-visual{min-height:154px!important;background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.015))!important;border-right:1px solid rgba(255,255,255,.08)!important;}
.feature-orb{width:68px!important;height:68px!important;border-radius:24px!important;font-size:28px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 18px 36px rgba(0,0,0,.28)!important;}
.feature-content{padding:22px 24px!important;min-width:0!important;}
.feature-topline{position:absolute!important;right:22px!important;top:18px!important;margin:0!important;display:flex!important;justify-content:flex-end!important;}
.feature-tag{font-size:13px!important;font-weight:650!important;padding:8px 12px!important;letter-spacing:-.01em!important;box-shadow:none!important;}
.feature-tag-live{background:rgba(66,220,132,.12)!important;border:1px solid rgba(66,220,132,.28)!important;color:#8ff0b5!important;}
.feature-tag-live::before{content:"";display:inline-block;width:7px;height:7px;border-radius:999px;background:#41de84;margin-right:8px;box-shadow:0 0 14px rgba(65,222,132,.45);}
.feature-tag-soon{background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.10)!important;color:rgba(235,230,222,.72)!important;}
.feature-card h3{font-size:clamp(22px,3.8vw,34px)!important;line-height:1.06!important;margin:16px 0 10px!important;padding-right:118px!important;font-weight:760!important;}
.feature-card p{font-size:clamp(15px,2.4vw,20px)!important;line-height:1.45!important;color:rgba(234,229,218,.66)!important;letter-spacing:-.015em!important;}

.assistant-panel.card{display:flex!important;flex-direction:column!important;gap:16px!important;padding:22px!important;margin-bottom:16px!important;background:#090a0c!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:28px!important;box-shadow:0 24px 80px rgba(0,0,0,.42)!important;overflow:hidden!important;}
.assistant-panel.hidden{display:none!important;}
.assistant-detail-toolbar{display:flex!important;align-items:center!important;justify-content:flex-start!important;min-height:38px!important;}
.assistant-back.btn{min-height:38px!important;height:38px!important;padding:0 14px!important;border-radius:14px!important;font-size:13px!important;font-weight:560!important;}
.assistant-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:14px!important;align-items:start!important;}
.assistant-head h3{font-size:clamp(23px,3vw,32px)!important;line-height:1.05!important;margin:6px 0 8px!important;font-weight:760!important;}
.assistant-head p{font-size:15px!important;line-height:1.5!important;color:rgba(234,229,218,.64)!important;max-width:640px!important;}
.assistant-limit{justify-self:end!important;align-self:start!important;background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.1)!important;color:rgba(235,230,222,.76)!important;border-radius:999px!important;padding:8px 11px!important;font-size:13px!important;font-weight:560!important;white-space:nowrap!important;}
.assistant-messages{height:clamp(300px,45vh,520px)!important;min-height:300px!important;max-height:none!important;overflow:auto!important;background:#0d0e10!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:22px!important;padding:14px!important;display:flex!important;flex-direction:column!important;gap:12px!important;}
.assistant-empty{margin:auto!important;max-width:410px!important;text-align:center!important;color:rgba(234,229,218,.56)!important;padding:20px!important;}
.assistant-bubble{max-width:min(78%,620px)!important;padding:12px 14px!important;border-radius:18px!important;font-size:15px!important;line-height:1.52!important;word-break:break-word!important;background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.09)!important;color:rgba(246,243,236,.92)!important;}
.assistant-message.user .assistant-bubble{background:linear-gradient(135deg,#fff0b8,#ffad3f)!important;color:#171008!important;border-color:rgba(255,255,255,.18)!important;}
.assistant-form{display:grid!important;grid-template-columns:minmax(0,1fr) 58px!important;gap:10px!important;align-items:end!important;padding:0!important;}
.assistant-form textarea{width:100%!important;min-height:58px!important;max-height:132px!important;border-radius:20px!important;padding:16px!important;background:#111214!important;border:1px solid rgba(255,255,255,.10)!important;color:#f7f3ea!important;font-size:15px!important;line-height:1.35!important;resize:none!important;outline:none!important;}
.assistant-form textarea:focus{border-color:rgba(247,198,106,.34)!important;box-shadow:0 0 0 4px rgba(247,198,106,.07)!important;background:#141518!important;}
.assistant-form .btn,.assistant-send{width:58px!important;min-width:58px!important;height:58px!important;min-height:58px!important;border-radius:20px!important;padding:0!important;font-size:24px!important;font-weight:650!important;display:grid!important;place-items:center!important;line-height:1!important;}
.assistant-form .btn span,.assistant-send span{display:block!important;transform:translate(1px,-1px)!important;}
body.assistant-open .menu-tabs,body.assistant-open .topbar,body.assistant-open .section-hero{display:initial!important;}
body.assistant-open .app-shell{width:min(980px,calc(100vw - 28px))!important;}

@media(max-width:760px){
  .feature-card{grid-template-columns:96px minmax(0,1fr)!important;min-height:142px!important;}
  .feature-visual{min-height:142px!important;}
  .feature-orb{width:54px!important;height:54px!important;border-radius:19px!important;font-size:24px!important;}
  .feature-content{padding:18px 16px!important;}
  .feature-topline{right:14px!important;top:14px!important;}
  .feature-tag{font-size:12px!important;padding:7px 10px!important;}
  .feature-card h3{font-size:24px!important;padding-right:92px!important;margin-top:20px!important;}
  .feature-card p{font-size:16px!important;line-height:1.38!important;}
  .assistant-panel.card{padding:16px!important;border-radius:24px!important;gap:13px!important;margin-bottom:86px!important;}
  .assistant-head{grid-template-columns:1fr!important;gap:10px!important;}
  .assistant-limit{justify-self:start!important;}
  .assistant-head h3{font-size:25px!important;}
  .assistant-head p{font-size:14px!important;}
  .assistant-messages{height:calc(100dvh - 390px)!important;min-height:270px!important;border-radius:20px!important;padding:12px!important;}
  .assistant-bubble{max-width:88%!important;font-size:14px!important;}
  .assistant-form{grid-template-columns:minmax(0,1fr) 54px!important;gap:9px!important;}
  .assistant-form textarea{min-height:54px!important;border-radius:18px!important;padding:14px!important;}
  .assistant-form .btn,.assistant-send{width:54px!important;min-width:54px!important;height:54px!important;min-height:54px!important;border-radius:18px!important;font-size:22px!important;}
}


/* ===== FINAL: mentor logic, green counter, clean button and feature polish ===== */
.feature-lines,
.feature-lines span{display:none!important;visibility:hidden!important;opacity:0!important;}
.feature-card{cursor:pointer!important;}
.feature-card .feature-orb{overflow:hidden!important;}
.feature-svg{width:30px;height:30px;display:block;fill:none;stroke:#ffe8a8;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 14px rgba(247,198,106,.22));}
.feature-card-assistant .feature-orb{font-size:0!important;background:linear-gradient(145deg,rgba(247,198,106,.16),rgba(255,255,255,.035))!important;}
.feature-card-assistant .feature-visual{background:radial-gradient(circle at center,rgba(247,198,106,.14),transparent 60%)!important;}
.feature-tag-live{background:rgba(66,220,132,.12)!important;border:1px solid rgba(66,220,132,.28)!important;color:#8ff0b5!important;}
.feature-tag-live::before{content:"";display:inline-block;width:7px;height:7px;border-radius:999px;background:#41de84;margin-right:8px;box-shadow:0 0 14px rgba(65,222,132,.45);vertical-align:middle;}
.assistant-limit{background:rgba(66,220,132,.12)!important;border:1px solid rgba(66,220,132,.28)!important;color:#8ff0b5!important;font-weight:650!important;box-shadow:0 0 0 1px rgba(66,220,132,.03),0 10px 28px rgba(65,222,132,.06)!important;}
.assistant-limit::before{content:"";display:inline-block;width:7px;height:7px;border-radius:999px;background:#41de84;margin-right:8px;box-shadow:0 0 12px rgba(65,222,132,.45);vertical-align:1px;}
.assistant-limit.is-low{background:rgba(247,198,106,.11)!important;border-color:rgba(247,198,106,.25)!important;color:#ffe6a6!important;}
.assistant-limit.is-low::before{background:#f7c66a;box-shadow:0 0 12px rgba(247,198,106,.45);}
.assistant-limit.is-empty{background:rgba(255,128,124,.10)!important;border-color:rgba(255,128,124,.22)!important;color:#ffb0ac!important;}
.assistant-limit.is-empty::before{background:#ff807c;box-shadow:0 0 12px rgba(255,128,124,.45);}
.assistant-form{grid-template-columns:minmax(0,1fr) 56px!important;align-items:stretch!important;gap:10px!important;}
.assistant-form textarea{min-height:56px!important;height:56px!important;max-height:120px!important;padding:17px 16px!important;border-radius:19px!important;}
.assistant-send,
.assistant-form .btn.assistant-send,
.assistant-form button[type="submit"]{width:56px!important;min-width:56px!important;height:56px!important;min-height:56px!important;padding:0!important;border-radius:19px!important;display:grid!important;place-items:center!important;font-size:0!important;background:linear-gradient(135deg,#fff1b8 0%,#ffd06f 42%,#ff9626 100%)!important;color:#15100a!important;box-shadow:0 14px 32px rgba(255,151,38,.18),inset 0 1px 0 rgba(255,255,255,.38)!important;}
.assistant-send::after,
.assistant-form .btn.assistant-send::after,
.assistant-form button[type="submit"]::after{content:none!important;display:none!important;}
.assistant-send span{display:none!important;}
.assistant-send svg,
.assistant-form .btn.assistant-send svg{width:22px!important;height:22px!important;display:block!important;fill:none!important;stroke:#15100a!important;stroke-width:2.3!important;stroke-linecap:round!important;stroke-linejoin:round!important;transform:none!important;}
.assistant-send:disabled{opacity:.55!important;filter:saturate(.65)!important;cursor:not-allowed!important;}
.assistant-panel.card{scroll-margin-top:18px!important;}
@media(max-width:760px){
  .assistant-form{grid-template-columns:minmax(0,1fr) 52px!important;gap:8px!important;}
  .assistant-form textarea{height:52px!important;min-height:52px!important;padding:15px 14px!important;border-radius:18px!important;}
  .assistant-send,.assistant-form .btn.assistant-send,.assistant-form button[type="submit"]{width:52px!important;min-width:52px!important;height:52px!important;min-height:52px!important;border-radius:18px!important;}
  .assistant-send svg{width:21px!important;height:21px!important;}
}


/* ===== FINAL 2026 Professor mentor desktop/mobile stable override ===== */
.feature-card[data-feature="assistant"] .feature-orb,
.feature-card-assistant .feature-orb{font-size:0!important;background:linear-gradient(145deg,rgba(247,198,106,.16),rgba(255,255,255,.035))!important;}
.feature-card[data-feature="assistant"] .feature-svg,
.feature-card-assistant .feature-svg{width:30px!important;height:30px!important;display:block!important;fill:none!important;stroke:#ffe8a8!important;stroke-width:1.85!important;stroke-linecap:round!important;stroke-linejoin:round!important;filter:drop-shadow(0 0 14px rgba(247,198,106,.20))!important;}
.feature-lines,.feature-lines span{display:none!important;visibility:hidden!important;opacity:0!important;}
.feature-card{cursor:pointer!important;touch-action:manipulation!important;}
#assistantPanel.assistant-panel.card:not(.hidden){display:flex!important;flex-direction:column!important;gap:16px!important;width:100%!important;max-width:100%!important;min-height:0!important;margin:0 0 96px!important;padding:22px!important;border-radius:28px!important;background:#090a0c!important;border:1px solid rgba(255,255,255,.10)!important;box-shadow:0 24px 80px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.04)!important;overflow:hidden!important;position:relative!important;z-index:5!important;}
#assistantPanel.hidden{display:none!important;}#assistantPanel::before{display:none!important;}
#assistantPanel .assistant-detail-toolbar{display:flex!important;align-items:center!important;justify-content:flex-start!important;min-height:38px!important;}
#assistantPanel .assistant-back.btn{min-height:38px!important;height:38px!important;padding:0 14px!important;border-radius:14px!important;font-size:13px!important;font-weight:560!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(255,255,255,.10)!important;color:rgba(246,241,232,.82)!important;}
#assistantPanel .assistant-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:14px!important;align-items:start!important;padding:0!important;}
#assistantPanel .assistant-head .eyebrow{font-size:10px!important;letter-spacing:.26em!important;color:rgba(255,201,99,.82)!important;}
#assistantPanel .assistant-head h3{font-size:clamp(23px,3vw,32px)!important;line-height:1.05!important;margin:6px 0 8px!important;font-weight:760!important;letter-spacing:-.035em!important;}
#assistantPanel .assistant-head p{font-size:15px!important;line-height:1.5!important;color:rgba(234,229,218,.64)!important;max-width:650px!important;margin:0!important;}
#assistantPanel .assistant-limit{justify-self:end!important;align-self:start!important;background:rgba(66,220,132,.12)!important;border:1px solid rgba(66,220,132,.28)!important;color:#8ff0b5!important;border-radius:999px!important;padding:8px 11px!important;font-size:13px!important;font-weight:650!important;white-space:nowrap!important;box-shadow:0 10px 28px rgba(65,222,132,.06)!important;}
#assistantPanel .assistant-limit::before{content:"";display:inline-block;width:7px;height:7px;border-radius:999px;background:#41de84;margin-right:8px;box-shadow:0 0 12px rgba(65,222,132,.45);vertical-align:1px;}
#assistantPanel .assistant-limit.is-low{background:rgba(247,198,106,.11)!important;border-color:rgba(247,198,106,.25)!important;color:#ffe6a6!important;}#assistantPanel .assistant-limit.is-low::before{background:#f7c66a;}#assistantPanel .assistant-limit.is-empty{background:rgba(255,128,124,.10)!important;border-color:rgba(255,128,124,.22)!important;color:#ffb0ac!important;}#assistantPanel .assistant-limit.is-empty::before{background:#ff807c;}
#assistantPanel .assistant-messages{height:clamp(320px,45vh,540px)!important;min-height:320px!important;max-height:none!important;overflow:auto!important;background:#0d0e10!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:22px!important;padding:14px!important;display:flex!important;flex-direction:column!important;gap:12px!important;scroll-behavior:smooth!important;}
#assistantPanel .assistant-empty{margin:auto!important;max-width:420px!important;text-align:center!important;color:rgba(234,229,218,.56)!important;padding:22px 16px!important;display:flex!important;flex-direction:column!important;gap:8px!important;}#assistantPanel .assistant-empty strong{color:rgba(255,255,255,.9)!important;font-size:17px!important;}
#assistantPanel .assistant-message{display:flex!important;width:100%!important;}#assistantPanel .assistant-message.user{justify-content:flex-end!important;}#assistantPanel .assistant-message.professor{justify-content:flex-start!important;}
#assistantPanel .assistant-bubble{max-width:min(78%,620px)!important;padding:12px 14px!important;border-radius:18px!important;font-size:15px!important;line-height:1.52!important;word-break:break-word!important;background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.09)!important;color:rgba(246,243,236,.92)!important;box-shadow:0 8px 22px rgba(0,0,0,.18)!important;}
#assistantPanel .assistant-message.user .assistant-bubble{background:linear-gradient(135deg,#fff0b8,#ffad3f)!important;color:#171008!important;border-color:rgba(255,255,255,.18)!important;border-bottom-right-radius:7px!important;}#assistantPanel .assistant-message.professor .assistant-bubble{border-bottom-left-radius:7px!important;}
#assistantPanel .assistant-form{display:grid!important;grid-template-columns:minmax(0,1fr) 56px!important;align-items:stretch!important;gap:10px!important;padding:0!important;}
#assistantPanel .assistant-form textarea{width:100%!important;min-height:56px!important;height:56px!important;max-height:120px!important;padding:17px 16px!important;border-radius:19px!important;background:#111214!important;border:1px solid rgba(255,255,255,.10)!important;color:#f7f3ea!important;font-size:15px!important;line-height:1.35!important;resize:none!important;outline:none!important;font:inherit!important;}#assistantPanel .assistant-form textarea::placeholder{color:rgba(235,230,222,.46)!important;}#assistantPanel .assistant-form textarea:focus{border-color:rgba(247,198,106,.34)!important;box-shadow:0 0 0 4px rgba(247,198,106,.07)!important;background:#141518!important;}
#assistantPanel .assistant-send,#assistantPanel .assistant-form button[type="submit"]{width:56px!important;min-width:56px!important;height:56px!important;min-height:56px!important;padding:0!important;border-radius:19px!important;display:grid!important;place-items:center!important;font-size:0!important;background:linear-gradient(135deg,#fff1b8 0%,#ffd06f 42%,#ff9626 100%)!important;color:#15100a!important;box-shadow:0 14px 32px rgba(255,151,38,.18),inset 0 1px 0 rgba(255,255,255,.38)!important;}
#assistantPanel .assistant-send::after,#assistantPanel .assistant-form button[type="submit"]::after{content:none!important;display:none!important;}#assistantPanel .assistant-send svg{width:22px!important;height:22px!important;display:block!important;fill:none!important;stroke:#15100a!important;stroke-width:2.3!important;stroke-linecap:round!important;stroke-linejoin:round!important;transform:none!important;}#assistantPanel .assistant-send:disabled{opacity:.55!important;filter:saturate(.65)!important;cursor:not-allowed!important;}
body.assistant-open .menu-tabs,body.assistant-open .topbar,body.assistant-open .section-hero{display:initial!important;}body.assistant-open .app-shell{width:min(980px,calc(100vw - 28px))!important;}
@media(max-width:760px){#assistantPanel.assistant-panel.card:not(.hidden){padding:16px!important;border-radius:24px!important;gap:13px!important;margin-bottom:96px!important;}#assistantPanel .assistant-head{grid-template-columns:1fr!important;gap:10px!important;}#assistantPanel .assistant-limit{justify-self:start!important;}#assistantPanel .assistant-head h3{font-size:25px!important;}#assistantPanel .assistant-head p{font-size:14px!important;}#assistantPanel .assistant-messages{height:calc(100dvh - 390px)!important;min-height:270px!important;border-radius:20px!important;padding:12px!important;}#assistantPanel .assistant-bubble{max-width:88%!important;font-size:14px!important;}#assistantPanel .assistant-form{grid-template-columns:minmax(0,1fr) 52px!important;gap:8px!important;}#assistantPanel .assistant-form textarea{height:52px!important;min-height:52px!important;padding:15px 14px!important;border-radius:18px!important;}#assistantPanel .assistant-send,#assistantPanel .assistant-form button[type="submit"]{width:52px!important;min-width:52px!important;height:52px!important;min-height:52px!important;border-radius:18px!important;}#assistantPanel .assistant-send svg{width:21px!important;height:21px!important;}}


/* ===== 2026 mentor polish: stable chat height, no bottom void, clean icon ===== */
body.mentor-open .app-shell{padding-bottom:82px!important;}
.feature-card[data-feature="assistant"] .feature-visual,.feature-card-assistant .feature-visual{background:radial-gradient(circle at center,rgba(247,198,106,.16),transparent 60%)!important;}
.feature-card[data-feature="assistant"] .feature-orb,.feature-card-assistant .feature-orb{background:linear-gradient(145deg,rgba(247,198,106,.20),rgba(255,255,255,.045))!important;border-color:rgba(247,198,106,.20)!important;}
.feature-svg-mentor{width:31px!important;height:31px!important;stroke:#ffe7a7!important;stroke-width:1.9!important;filter:drop-shadow(0 0 14px rgba(247,198,106,.26))!important;}
#assistantPanel.assistant-panel.card:not(.hidden){display:flex!important;flex-direction:column!important;min-height:clamp(620px, calc(100dvh - 190px), 760px)!important;margin:0 0 14px!important;padding:22px!important;gap:14px!important;}
#assistantPanel .assistant-head{flex:0 0 auto!important;}
#assistantPanel .assistant-messages{flex:1 1 auto!important;height:auto!important;min-height:300px!important;max-height:none!important;}
#assistantPanel .assistant-form{flex:0 0 auto!important;align-items:end!important;}
#assistantPanel .assistant-form textarea{overflow:auto!important;}
#assistantPanel .assistant-send,#assistantPanel .assistant-form button[type="submit"]{aspect-ratio:1/1!important;line-height:0!important;}
#assistantPanel .assistant-send svg{pointer-events:none!important;}
#assistantPanel .assistant-limit{background:rgba(66,220,132,.12)!important;border:1px solid rgba(66,220,132,.30)!important;color:#8ff0b5!important;}
@media(max-width:760px){body.mentor-open .app-shell{padding-bottom:88px!important;}#assistantPanel.assistant-panel.card:not(.hidden){min-height:calc(100dvh - 170px)!important;margin:0 0 10px!important;padding:15px!important;border-radius:24px!important;gap:12px!important;}#assistantPanel .assistant-detail-toolbar{min-height:34px!important;}#assistantPanel .assistant-back.btn{height:36px!important;min-height:36px!important;}#assistantPanel .assistant-head{gap:8px!important;}#assistantPanel .assistant-head h3{font-size:23px!important;margin:4px 0 5px!important;}#assistantPanel .assistant-head p{font-size:13.5px!important;line-height:1.42!important;}#assistantPanel .assistant-limit{font-size:12px!important;padding:7px 10px!important;}#assistantPanel .assistant-messages{min-height:0!important;height:auto!important;padding:12px!important;border-radius:20px!important;}#assistantPanel .assistant-form{grid-template-columns:minmax(0,1fr) 52px!important;}#assistantPanel .assistant-form textarea{min-height:52px!important;height:52px!important;max-height:112px!important;}#assistantPanel .assistant-send,#assistantPanel .assistant-form button[type="submit"]{height:52px!important;min-height:52px!important;width:52px!important;min-width:52px!important;}}
@media(min-width:761px){#assistantPanel.assistant-panel.card:not(.hidden){min-height:680px!important;}}


/* Start reading premium CTA */
.open-material-btn.start{
  position:relative;
  isolation:isolate;
  border-color:rgba(247,198,106,.28) !important;
  background:
    linear-gradient(135deg,rgba(255,239,183,.98),rgba(247,198,106,.94) 48%,rgba(255,138,31,.88)) !important;
  color:rgba(20,13,4,.95) !important;
  box-shadow:0 14px 34px rgba(247,198,106,.16), inset 0 1px 0 rgba(255,255,255,.32) !important;
  font-weight:680 !important;
}
.open-material-btn.start:after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  background:linear-gradient(120deg,rgba(255,255,255,.36),transparent 34%,rgba(255,255,255,.20) 66%,transparent);
  opacity:.38;
  pointer-events:none;
  z-index:-1;
}
.open-material-btn.start:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 42px rgba(247,198,106,.20), inset 0 1px 0 rgba(255,255,255,.34) !important;
}
.open-material-btn.start:active{
  transform:scale(.985);
}
@media(max-width:760px){
  .open-material-btn.start{
    min-height:48px;
    border-radius:17px;
  }
}


/* Telegram access clean 2026 */
.access-state{
  min-height:390px;
}
.access-visual{
  height:132px;
}
.access-orb{
  width:74px;
  height:74px;
  border-radius:26px;
}
.access-orb svg{
  width:34px;
  height:34px;
}
.access-state h2{
  font-size:clamp(28px,4.2vw,46px) !important;
  line-height:1.05 !important;
  letter-spacing:-.038em !important;
  max-width:640px !important;
  font-weight:760 !important;
}
.access-state p{
  font-size:clamp(15px,1.55vw,18px) !important;
  line-height:1.58 !important;
  max-width:680px !important;
  padding-top:18px !important;
}
.access-note{
  font-size:15px;
  max-width:720px;
}
.access-state .btn{
  font-weight:620;
}
@media(max-width:760px){
  .access-visual{
    height:108px !important;
  }
  .access-orb{
    width:64px !important;
    height:64px !important;
    border-radius:22px !important;
  }
  .access-state h2{
    font-size:clamp(28px,9vw,38px) !important;
    letter-spacing:-.04em !important;
  }
  .access-state p{
    font-size:15.5px !important;
  }
}


.feature-svg-detector path{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:900px){.relapse-form{grid-template-columns:58px 1fr}.relapse-form input:nth-child(3),.relapse-form input:nth-child(4),.relapse-form button{grid-column:1 / -1}.relapse-panel-head{display:grid}.relapse-score{width:100%;min-height:76px;display:flex;align-items:center;justify-content:center;gap:8px}.relapse-score span{margin-top:0}.relapse-check-form{grid-template-columns:1fr}.relapse-check-form button{width:100%}.relapse-item-head{grid-template-columns:46px 1fr}.relapse-time{grid-column:1 / -1;text-align:left;display:flex;gap:6px;align-items:baseline;padding-left:58px}}
@media(max-width:430px){.relapse-panel{padding:18px}.relapse-time{padding-left:0}.relapse-actions{display:grid}.relapse-actions button{width:100%}}

.relapse-panel:not(.hidden){
  display:block!important;
}

/* Fix topbar title wrapping: keep "Клуб Профессора" on one line */
.topbar h1{
  white-space: nowrap !important;
}

@media (max-width: 760px){
  .topbar{
    display: block !important;
    padding: 18px !important;
    min-height: auto !important;
  }
  .topbar h1{
    font-size: clamp(24px, 7.2vw, 34px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.055em !important;
    white-space: nowrap !important;
  }
  .topbar p{
    margin-top: 8px !important;
  }
  .topbar .badge,
  .badge{
    display: inline-flex !important;
    margin-top: 14px !important;
  }
}

@media (max-width: 360px){
  .topbar h1{
    font-size: 23px !important;
    letter-spacing: -0.06em !important;
  }
}


/* Relapse detector restored layout v10: full panel/card/form styles */
.relapse-panel{
  display:block;
  padding:22px;
  margin-bottom:16px;
  overflow:hidden;
  position:relative;
}
.relapse-panel.hidden{display:none!important;}
.relapse-panel:not(.hidden){display:block!important;}
.relapse-panel:before{
  content:"";
  position:absolute;
  right:-100px;
  top:-120px;
  width:300px;
  height:300px;
  border-radius:999px;
  background:radial-gradient(circle,rgba(255,100,92,.17),rgba(247,198,106,.08) 44%,transparent 72%);
  filter:blur(16px);
  pointer-events:none;
}
.relapse-panel>*{position:relative;z-index:1;}
.relapse-detail-toolbar{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-bottom:14px;
}
.relapse-back{
  min-height:40px;
  padding:0 15px;
}
.relapse-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.relapse-panel-head h3{
  font-size:clamp(24px,4vw,34px);
  letter-spacing:-.055em;
  margin:8px 0;
}
.relapse-panel-head p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
  max-width:620px;
}
.relapse-score{
  flex:0 0 auto;
  min-width:118px;
  min-height:92px;
  border-radius:28px;
  display:grid;
  place-items:center;
  text-align:center;
  background:linear-gradient(145deg,rgba(255,100,92,.15),rgba(255,255,255,.045));
  border:1px solid rgba(255,100,92,.2);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}
.relapse-score strong{
  display:block;
  font-size:24px;
  letter-spacing:-.055em;
  color:#ffe2d9;
  line-height:1.05;
}
.relapse-score span{
  display:block;
  margin-top:-12px;
  color:var(--muted);
  font-size:12px;
  font-weight:650;
}
.relapse-insight{
  margin:18px 0;
  padding:15px 16px;
  border-radius:20px;
  background:rgba(255,100,92,.075);
  border:1px solid rgba(255,100,92,.15);
  color:#f4e2dc;
  line-height:1.48;
}
.relapse-form{
  display:grid;
  grid-template-columns:64px minmax(0,1fr) minmax(0,1.2fr) 190px auto;
  gap:10px;
  margin-bottom:12px;
  align-items:center;
}
.relapse-form input,
.relapse-check-form select,
.relapse-check-form input{
  width:100%;
  min-width:0;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.052);
  color:var(--text);
  font:inherit;
  outline:none;
  color-scheme:dark;
}
.relapse-form input{
  min-height:46px;
  border-radius:16px;
  padding:0 13px;
}
.relapse-form input:focus,
.relapse-check-form select:focus,
.relapse-check-form input:focus{
  border-color:rgba(255,100,92,.34);
  box-shadow:0 0 0 4px rgba(255,100,92,.08);
}
.relapse-form button{
  white-space:nowrap;
}
.relapse-quick-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:16px;
}
.relapse-quick-row button{
  border:1px solid rgba(255,255,255,.11);
  border-radius:999px;
  background:rgba(255,255,255,.045);
  color:var(--soft);
  padding:9px 12px;
  font:inherit;
  font-size:13px;
  font-weight:650;
  cursor:pointer;
}
.relapse-quick-row button:hover{
  border-color:rgba(247,198,106,.28);
  color:#ffe8a8;
}
.relapse-list{
  display:grid;
  gap:12px;
}
.relapse-empty{
  display:grid;
  gap:7px;
  border:1px dashed rgba(255,255,255,.16);
  border-radius:22px;
  padding:18px;
  color:var(--soft);
  background:rgba(255,255,255,.035);
}
.relapse-empty span{
  color:var(--muted);
  line-height:1.45;
}
.relapse-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;
  overflow:hidden;
}
.relapse-status-danger{
  border-color:rgba(255,100,92,.34);
  background:linear-gradient(145deg,rgba(255,100,92,.09),rgba(255,255,255,.026));
}
.relapse-status-watch{border-color:rgba(255,172,64,.28);}
.relapse-status-strong{border-color:rgba(132,226,166,.22);}
.relapse-item-head{
  display:grid;
  grid-template-columns:50px minmax(0,1fr) minmax(116px,auto);
  gap:12px;
  align-items:center;
}
.relapse-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;
}
.relapse-title-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.relapse-copy strong{
  display:block;
  font-size:17px;
  letter-spacing:-.025em;
}
.relapse-copy span:not(.relapse-status-pill){
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}
.relapse-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;
}
.relapse-status-danger .relapse-status-pill{
  color:#ffd5cc;
  border-color:rgba(255,100,92,.24);
  background:rgba(255,100,92,.10);
}
.relapse-status-watch .relapse-status-pill{
  color:#ffd9a1;
  border-color:rgba(255,172,64,.22);
  background:rgba(255,172,64,.08);
}
.relapse-status-strong .relapse-status-pill{
  color:#d8ffe1;
  border-color:rgba(132,226,166,.18);
  background:rgba(132,226,166,.08);
}
.relapse-time{
  text-align:right;
  min-width:0;
}
.relapse-time b{
  display:block;
  color:#ffe2d9;
  font-size:20px;
  letter-spacing:-.04em;
  line-height:1.1;
}
.relapse-time span{
  display:block;
  color:var(--muted);
  font-size:12px;
}
.relapse-plan{
  margin:14px 0;
  padding:13px 14px;
  border-radius:18px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.08);
  color:#ece8df;
  line-height:1.45;
  font-size:14px;
}
.relapse-check-form{
  display:grid;
  grid-template-columns:150px 160px minmax(0,1fr) auto;
  gap:9px;
  margin:12px 0;
  align-items:center;
}
.relapse-check-form select,
.relapse-check-form input{
  min-height:42px;
  border-radius:15px;
  padding:0 12px;
}
.relapse-check-form button{
  min-height:42px;
  white-space:nowrap;
}
.relapse-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.relapse-actions button{
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:rgba(255,255,255,.045);
  color:var(--soft);
  padding:10px 12px;
  font:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}
.relapse-sos{
  color:#ffd9a1!important;
  border-color:rgba(255,172,64,.22)!important;
  background:rgba(255,172,64,.08)!important;
}
.relapse-reset{
  color:#ffd5cc!important;
  border-color:rgba(255,100,92,.22)!important;
  background:rgba(255,100,92,.08)!important;
}
.relapse-delete{
  color:rgba(255,128,124,.78)!important;
  background:transparent!important;
}
.relapse-history{
  display:grid;
  gap:5px;
  margin-top:12px;
  color:var(--muted);
  font-size:12px;
}
.relapse-history em{
  font-style:normal;
  color:rgba(232,229,220,.72);
}

@media(max-width:900px){
  .relapse-panel{padding:20px;}
  .relapse-panel-head{display:grid;gap:14px;}
  .relapse-score{
    width:100%;
    min-height:76px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border-radius:22px;
  }
  .relapse-score span{margin-top:0;}
  .relapse-form{grid-template-columns:58px minmax(0,1fr);}
  .relapse-form input:nth-child(3),
  .relapse-form input:nth-child(4),
  .relapse-form button{grid-column:1 / -1;}
  .relapse-check-form{grid-template-columns:1fr;}
  .relapse-check-form button{width:100%;}
  .relapse-item-head{grid-template-columns:46px minmax(0,1fr);}
  .relapse-icon{width:46px;height:46px;border-radius:16px;}
  .relapse-time{
    grid-column:1 / -1;
    text-align:left;
    display:flex;
    gap:6px;
    align-items:baseline;
    padding-left:58px;
  }
}
@media(max-width:430px){
  .relapse-panel{padding:16px;border-radius:24px;}
  .relapse-detail-toolbar{margin-bottom:12px;}
  .relapse-back{width:100%;min-height:38px;}
  .relapse-panel-head h3{font-size:25px;}
  .relapse-panel-head p{font-size:14px;line-height:1.45;}
  .relapse-insight{font-size:14px;padding:13px 14px;}
  .relapse-form{grid-template-columns:52px minmax(0,1fr);gap:8px;}
  .relapse-form input{min-height:44px;border-radius:15px;}
  .relapse-quick-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
  .relapse-quick-row button{width:100%;padding:10px 8px;font-size:12.5px;}
  .relapse-item{padding:12px;border-radius:22px;}
  .relapse-time{padding-left:0;}
  .relapse-actions{display:grid;grid-template-columns:1fr;}
  .relapse-actions button{width:100%;}
}


/* Back buttons unified v11: all function detail screens use the same compact button */
.habit-detail-toolbar,
.relapse-detail-toolbar,
#assistantPanel .assistant-detail-toolbar{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  min-height:38px!important;
  margin-bottom:14px!important;
}
.habit-back.btn,
#relapsePanel .relapse-back.btn,
#assistantPanel .assistant-back.btn{
  width:auto!important;
  min-width:0!important;
  flex:0 0 auto!important;
  min-height:38px!important;
  height:38px!important;
  padding:0 14px!important;
  border-radius:14px!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:560!important;
  background:rgba(255,255,255,.055)!important;
  border:1px solid rgba(255,255,255,.10)!important;
  color:rgba(246,241,232,.82)!important;
  box-shadow:none!important;
}
.habit-back.btn:hover,
#relapsePanel .relapse-back.btn:hover,
#assistantPanel .assistant-back.btn:hover{
  border-color:rgba(247,198,106,.22)!important;
  color:var(--text)!important;
}
@media(max-width:430px){
  .habit-detail-toolbar,
  .relapse-detail-toolbar,
  #assistantPanel .assistant-detail-toolbar{
    min-height:38px!important;
    margin-bottom:12px!important;
  }
  .habit-back.btn,
  #relapsePanel .relapse-back.btn,
  #assistantPanel .assistant-back.btn{
    width:auto!important;
    min-height:38px!important;
    height:38px!important;
    padding:0 13px!important;
    border-radius:14px!important;
    font-size:13px!important;
  }
}

/* Guest preview for users without subscription — v15, same menu/style as main app */
.guest-preview{padding:24px;margin-bottom:16px;overflow:hidden}
.guest-preview:before{content:"";position:absolute;inset:auto -12% -28% auto;width:300px;height:300px;border-radius:999px;background:radial-gradient(circle,rgba(247,198,106,.22),rgba(255,138,31,.05) 42%,transparent 70%);filter:blur(8px);opacity:.95}
.guest-preview-shell{position:relative;z-index:1;display:grid;gap:18px}
.guest-preview-eyebrow{margin-bottom:0}
.guest-preview h2{max-width:760px;font-size:clamp(30px,5vw,46px);line-height:1.02;letter-spacing:-.045em}
.guest-preview-text{max-width:700px;color:#ddd7cb;font-size:clamp(15px,1.65vw,18px);line-height:1.58}
.guest-preview-actions{justify-content:flex-start;margin-top:2px}
.guest-benefits-card{padding:20px;border-radius:24px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.02))}
.guest-benefits-title{font-size:12px;letter-spacing:.24em;text-transform:uppercase;color:var(--soft);font-weight:800;margin-bottom:14px}
.guest-benefits-list{margin:0;padding-left:20px;display:grid;gap:12px;color:#ece8de}.guest-benefits-list li{line-height:1.5}
.guest-preview-extras{display:grid;gap:14px;margin:0 0 16px}
.guest-demo-button,.guest-review-button{position:relative;z-index:1;width:100%;min-height:54px;border:0;border-radius:16px;font-weight:820;font-size:16px;letter-spacing:-.01em;cursor:pointer;transition:transform .18s var(--ease),filter .18s var(--ease);font-family:inherit}
.guest-demo-button{background:linear-gradient(135deg,var(--gold-2),var(--gold) 54%,var(--orange));color:#141008;box-shadow:0 14px 30px rgba(247,198,106,.18)}
.guest-review-button{background:rgba(255,255,255,.055);border:1px solid var(--stroke);color:var(--text)}
.guest-demo-button:active,.guest-review-button:active{transform:scale(.985)}
.guest-activity-card{padding:22px;overflow:hidden}.guest-activity-card>*{position:relative;z-index:1}.guest-activity-card:before{content:"";position:absolute;inset:auto -20% -35% auto;width:290px;height:290px;border-radius:999px;background:radial-gradient(circle,rgba(100,255,173,.11),transparent 62%);filter:blur(10px)}
.guest-activity-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}.guest-activity-head .eyebrow{margin-bottom:0;color:rgba(255,255,255,.58)}
.guest-live-pill{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:999px;border:1px solid rgba(128,227,159,.28);background:rgba(128,227,159,.1);color:#b7ffd0;font-weight:900;letter-spacing:.05em}.guest-activity-number{display:block;font-size:clamp(40px,8vw,62px);line-height:.95;letter-spacing:-.06em;font-weight:930;color:#fff}.guest-activity-label{margin-top:10px;color:var(--gold-2);font-size:clamp(18px,3.7vw,26px);font-weight:880;line-height:1.15;letter-spacing:-.035em}.guest-activity-card p{margin-top:18px;color:#c9c3b9;font-size:16px;line-height:1.6}
.guest-locked-panel{padding:24px;margin-bottom:16px;overflow:hidden}.guest-locked-panel>*{position:relative;z-index:1}.guest-locked-panel:before{content:"";position:absolute;inset:auto -16% -32% auto;width:280px;height:280px;border-radius:999px;background:radial-gradient(circle,rgba(247,198,106,.18),transparent 66%);filter:blur(8px)}
.guest-locked-icon{width:62px;height:62px;border-radius:22px;display:grid;place-items:center;margin-bottom:16px;background:linear-gradient(145deg,rgba(247,198,106,.22),rgba(255,255,255,.055));border:1px solid rgba(247,198,106,.22);color:var(--gold-2);font-size:28px;font-weight:900}
.guest-locked-panel h2{max-width:720px;font-size:clamp(27px,4.5vw,42px);line-height:1.04;letter-spacing:-.045em}.guest-locked-panel p{margin-top:14px;max-width:640px;color:#d8d3c8;font-size:16px;line-height:1.6}.guest-locked-actions{justify-content:flex-start;margin-top:20px}
.preview-toast{position:fixed;left:50%;bottom:96px;transform:translate(-50%,12px);z-index:120;max-width:min(92vw,420px);padding:14px 18px;border-radius:18px;border:1px solid rgba(247,198,106,.22);background:rgba(12,14,18,.94);color:var(--text);box-shadow:0 20px 50px rgba(0,0,0,.42);backdrop-filter:blur(20px);font-weight:700;text-align:center;opacity:0;transition:opacity .18s var(--ease),transform .18s var(--ease)}.preview-toast.show{opacity:1;transform:translate(-50%,0)}
body.preview-only .menu-tabs{grid-template-columns:repeat(3,1fr)}
body.preview-only .menu-tab{cursor:pointer}
body.preview-only .menu-tab:not(.active):active{transform:scale(.98)}
@media(max-width:760px){
  body.preview-only .app-shell{width:min(100% - 22px,560px);padding-top:12px;padding-bottom:110px}
  body.preview-only .topbar{padding:21px;min-height:138px;margin-bottom:16px}
  body.preview-only .topbar h1{font-size:34px!important;white-space:nowrap;line-height:1;letter-spacing:-.052em}
  body.preview-only .topbar p{font-size:14px;margin-top:8px}
  body.preview-only .badge{display:inline-flex;margin-top:18px}
  .guest-preview{padding:22px;margin-bottom:16px;border-radius:24px}
  .guest-preview h2{font-size:clamp(27px,9.8vw,40px);line-height:1.01;letter-spacing:-.052em}
  .guest-preview-text{font-size:17px;line-height:1.55}
  .guest-preview-actions .btn,.guest-locked-actions .btn{width:100%}
  .guest-benefits-card{padding:18px}.guest-benefits-list{font-size:16px;gap:10px;color:#ddd7ce}
  .guest-demo-button,.guest-review-button{min-height:52px;font-size:16px;border-radius:16px}
  .guest-activity-card{padding:20px}.guest-activity-number{font-size:52px}.guest-activity-label{font-size:22px}.guest-activity-card p{font-size:16px}
  .guest-locked-panel{padding:22px;border-radius:24px}.guest-locked-icon{width:58px;height:58px;border-radius:20px}.guest-locked-panel h2{font-size:clamp(27px,9.2vw,38px)}
  .preview-toast{bottom:92px;width:calc(100vw - 28px)}
}


/* Guest locked screens cleanup v16 */
.guest-hidden-while-locked{display:none!important}
.guest-locked-icon{display:none!important}
.guest-locked-panel{padding:24px!important}
.guest-locked-panel .eyebrow{margin-bottom:10px}
.guest-locked-panel h2{max-width:620px!important;font-size:clamp(24px,3.8vw,32px)!important;line-height:1.1!important;letter-spacing:-.035em!important}
.guest-locked-panel p{font-size:16px!important;line-height:1.55!important;margin-top:12px!important}
.guest-preview-extras{gap:14px!important}
.guest-demo-button,.guest-review-button{display:none!important}
@media(max-width:760px){
  .guest-locked-panel{padding:22px!important;margin-bottom:16px}
  .guest-locked-panel h2{font-size:clamp(24px,7vw,30px)!important;line-height:1.12!important}
  .guest-locked-panel p{font-size:16px!important;line-height:1.55!important}
}


/* Guest closed screen polish v17 */
.guest-preview h2{
  max-width:680px!important;
  font-size:clamp(28px,4.2vw,40px)!important;
  line-height:1.05!important;
  letter-spacing:-.04em!important;
}
.guest-preview-text{
  max-width:660px!important;
  font-size:clamp(15px,1.55vw,17px)!important;
  line-height:1.58!important;
  color:rgba(236,232,222,.78)!important;
}
.guest-benefits-title{
  font-size:11px!important;
  letter-spacing:.22em!important;
  color:rgba(255,240,183,.72)!important;
}
.guest-access-copy{
  margin:0!important;
  color:rgba(236,232,222,.76)!important;
  font-size:15px!important;
  line-height:1.58!important;
}
.guest-live-pill{
  min-height:26px!important;
  padding:0 9px!important;
  font-size:11px!important;
  line-height:1!important;
  letter-spacing:.08em!important;
  font-weight:850!important;
}
.guest-activity-card{padding:22px!important}
.guest-activity-head{align-items:center!important;margin-bottom:16px!important}
.guest-activity-number{
  font-size:clamp(34px,6vw,50px)!important;
  letter-spacing:-.055em!important;
}
.guest-activity-label{
  margin-top:8px!important;
  max-width:560px!important;
  color:var(--gold-2)!important;
  font-size:clamp(16px,2.5vw,20px)!important;
  font-weight:780!important;
  line-height:1.25!important;
  letter-spacing:-.025em!important;
}
.guest-activity-card p{
  max-width:620px!important;
  margin-top:14px!important;
  color:rgba(236,232,222,.70)!important;
  font-size:15px!important;
  line-height:1.6!important;
}
.guest-locked-panel h2{
  font-size:clamp(23px,3.4vw,30px)!important;
  line-height:1.12!important;
}
.guest-locked-panel p{
  max-width:610px!important;
  font-size:15px!important;
  color:rgba(236,232,222,.74)!important;
}
@media(max-width:760px){
  .guest-preview h2{
    font-size:clamp(25px,7.8vw,32px)!important;
    line-height:1.08!important;
  }
  .guest-preview-text{
    font-size:15.5px!important;
    line-height:1.55!important;
  }
  .guest-access-copy{font-size:14.5px!important;line-height:1.55!important}
  .guest-live-pill{min-height:24px!important;padding:0 8px!important;font-size:10px!important}
  .guest-activity-card{padding:20px!important}
  .guest-activity-number{font-size:42px!important}
  .guest-activity-label{font-size:17px!important;line-height:1.28!important}
  .guest-activity-card p{font-size:14.5px!important;line-height:1.56!important}
  .guest-locked-panel h2{font-size:clamp(23px,6.5vw,28px)!important;line-height:1.14!important}
  .guest-locked-panel p{font-size:15px!important;line-height:1.55!important}
}


/* Guest activity metric polish v18 */
.guest-live-pill{
  min-height:22px!important;
  padding:0 8px!important;
  font-size:9.5px!important;
  letter-spacing:.08em!important;
  font-weight:820!important;
}
.guest-activity-number{
  font-size:clamp(28px,4.8vw,38px)!important;
  line-height:1.02!important;
  letter-spacing:-.045em!important;
  font-weight:820!important;
  color:rgba(255,255,255,.92)!important;
}
.guest-activity-label{
  margin-top:8px!important;
  font-size:clamp(15px,2.2vw,18px)!important;
  line-height:1.3!important;
  font-weight:720!important;
  color:rgba(255,240,183,.88)!important;
}
.guest-activity-card p{
  margin-top:13px!important;
  max-width:620px!important;
  font-size:14.5px!important;
  line-height:1.58!important;
  color:rgba(236,232,222,.68)!important;
}
@media(max-width:760px){
  .guest-live-pill{min-height:21px!important;padding:0 7px!important;font-size:9px!important}
  .guest-activity-number{font-size:34px!important;line-height:1.05!important}
  .guest-activity-label{font-size:15.5px!important;line-height:1.32!important}
  .guest-activity-card p{font-size:14px!important;line-height:1.56!important}
}


/* Guest preview topic teasers v19 */
.guest-topics-card{padding:22px;overflow:hidden;margin-top:14px}
.guest-topics-card>*{position:relative;z-index:1}
.guest-topics-card:before{content:"";position:absolute;inset:auto -22% -34% auto;width:280px;height:280px;border-radius:999px;background:radial-gradient(circle,rgba(247,198,106,.14),transparent 66%);filter:blur(8px)}
.guest-topics-card h3{font-size:clamp(22px,3.8vw,30px);line-height:1.08;letter-spacing:-.035em;margin-bottom:10px}
.guest-topics-intro{color:#cfc8bd;font-size:15px;line-height:1.55;margin-bottom:16px;max-width:640px}
.guest-topics-list{display:grid;gap:10px;margin-top:14px}
.guest-topic-card{appearance:none;width:100%;border:1px solid rgba(255,255,255,.105);border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.025));color:var(--text);padding:14px;text-align:left;display:grid;grid-template-columns:auto 1fr;gap:12px;cursor:pointer;font-family:inherit;transition:transform .18s var(--ease),border-color .18s var(--ease),background .18s var(--ease)}
.guest-topic-card:active{transform:scale(.99)}
.guest-topic-card:hover{border-color:rgba(247,198,106,.25);background:rgba(247,198,106,.06)}
.guest-topic-index{width:34px;height:34px;border-radius:13px;display:grid;place-items:center;background:rgba(247,198,106,.10);border:1px solid rgba(247,198,106,.18);color:var(--gold-2);font-size:12px;font-weight:900;letter-spacing:.04em}
.guest-topic-body{display:grid;gap:5px;min-width:0}
.guest-topic-category{font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:rgba(255,224,155,.76);font-weight:820}
.guest-topic-card strong{font-size:17px;line-height:1.18;letter-spacing:-.02em;font-weight:850;color:#fff}
.guest-topic-card small{font-size:13.5px;line-height:1.42;color:#bdb6aa}
.guest-topic-empty{padding:14px;border:1px solid var(--stroke);border-radius:16px;color:var(--muted);background:rgba(255,255,255,.035)}
.guest-topics-list-locked{margin:18px 0 4px}
@media(max-width:760px){
  .guest-topics-card{padding:20px;border-radius:24px}
  .guest-topics-card h3{font-size:24px!important}
  .guest-topics-intro{font-size:14.5px!important;line-height:1.52!important}
  .guest-topic-card{padding:13px;border-radius:17px;gap:11px}
  .guest-topic-index{width:32px;height:32px;border-radius:12px;font-size:11px}
  .guest-topic-card strong{font-size:16px!important;line-height:1.2!important}
  .guest-topic-card small{font-size:13px!important;line-height:1.4!important}
}


/* Guest materials preview v20: use real Materials tab, not a separate topics block */
body.preview-only .screen[data-screen-panel="materials"] .section-hero{display:block!important}
body.preview-only .screen[data-screen-panel="materials"] .materials-list{display:grid!important}
body.preview-only .guest-material-card .favorite-btn{display:none!important}
body.preview-only .guest-material-card .material-status.status-locked,
body.preview-only .guest-material-card .material-status.status-new{
  color:#ffb1ad!important;
  background:rgba(255,128,124,.10)!important;
  border-color:rgba(255,128,124,.26)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06)!important;
}
body.preview-only .guest-material-card .open-material-btn{background:rgba(247,198,106,.10);border-color:rgba(247,198,106,.22);color:var(--gold-2)}


/* Guest functions teaser */
body.preview-only .guest-function-card{cursor:pointer}
body.preview-only .guest-function-card .feature-tag-locked{background:rgba(255,128,124,.12)!important;border:1px solid rgba(255,128,124,.28)!important;color:#ffc5c2!important}
body.preview-only .guest-function-card .feature-content p{color:#d8d3c8}
@media(max-width:760px){
  body.preview-only .guest-function-card h3{font-size:25px!important;line-height:1.08!important}
  body.preview-only .guest-function-card p{font-size:16px!important;line-height:1.45!important}
  body.preview-only .guest-function-card .feature-tag{font-size:11px!important;padding:7px 10px!important}
}


/* Guest teaser: blurred locked content */
body.preview-only .guest-blur-card{position:relative;overflow:hidden;cursor:pointer;isolation:isolate}
body.preview-only .guest-blur-card:before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(255,255,255,.035),transparent);transform:translateX(-100%);animation:guestBlurSweep 4.8s ease-in-out infinite}
@keyframes guestBlurSweep{0%,55%{transform:translateX(-100%)}100%{transform:translateX(100%)}}
body.preview-only .blur-line{display:block;border-radius:999px;background:linear-gradient(90deg,rgba(255,255,255,.12),rgba(247,198,106,.13),rgba(255,255,255,.08));filter:blur(5px);opacity:.72;user-select:none}
body.preview-only .guest-blur-card h3{min-height:30px}
body.preview-only .blur-title{height:26px;width:78%;margin:2px 0 0}.blur-title-2{width:62%!important}
body.preview-only .blur-text{height:13px;margin-top:10px}.blur-text-long{width:92%}.blur-text-mid{width:68%}
body.preview-only .blur-meta{height:12px;width:88px;display:inline-block;vertical-align:middle}
body.preview-only .guest-blur-material{border-color:rgba(247,198,106,.13);background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.024))}
body.preview-only .guest-blur-material .open-material-btn{opacity:.86}
body.preview-only .guest-function-blur{border-color:rgba(247,198,106,.13);background:linear-gradient(145deg,rgba(255,255,255,.052),rgba(255,255,255,.022))}
body.preview-only .guest-blur-visual{background:radial-gradient(circle at center,rgba(247,198,106,.10),transparent 62%)}
body.preview-only .guest-blur-orb{filter:blur(4px);opacity:.62;background:linear-gradient(145deg,rgba(247,198,106,.18),rgba(255,255,255,.04))}
body.preview-only .blur-symbol{width:30px;height:30px;border-radius:12px;background:rgba(255,255,255,.2);display:block}
body.preview-only .blur-feature-title{height:24px;width:58%;margin:4px 0 0}.blur-feature-title-2{width:72%!important}
body.preview-only .blur-feature-text{height:13px;margin-top:10px}.blur-feature-text-long{width:84%}.blur-feature-text-mid{width:56%}
body.preview-only .guest-function-blur .feature-tag-locked{opacity:.92}
@media(max-width:760px){
  body.preview-only .guest-blur-card h3{min-height:28px}
  body.preview-only .blur-title{height:22px;width:74%}
  body.preview-only .blur-text{height:12px;margin-top:9px}
  body.preview-only .blur-feature-title{height:21px;width:62%}
  body.preview-only .blur-feature-text{height:12px;margin-top:9px}
  body.preview-only .guest-blur-orb{filter:blur(3.5px)}
}

/* Guest locked overlay on blurred teasers */
body.preview-only .guest-blur-card .guest-locked-overlay{position:absolute;inset:0;z-index:4;display:grid;place-items:center;text-align:center;padding:18px;color:var(--gold-2);font-size:clamp(18px,4.8vw,24px);font-weight:850;letter-spacing:-.02em;line-height:1.12;text-shadow:0 12px 34px rgba(0,0,0,.72);background:linear-gradient(180deg,rgba(5,6,8,.05),rgba(5,6,8,.38));pointer-events:none}
body.preview-only .guest-function-blur .guest-locked-overlay{font-size:clamp(17px,4.5vw,22px)}
body.preview-only .guest-blur-material .open-material-btn{visibility:hidden}
body.preview-only .guest-blur-material .material-meta{visibility:hidden}

/* v26: in guest Functions, blurred cards do not show central access text */
body.preview-only .guest-function-blur .guest-locked-overlay{display:none!important}


/* Guest materials more topics button */
body.preview-only .guest-more-topics-wrap{position:relative;z-index:1;margin:10px 0 20px;padding:0}
body.preview-only .guest-more-topics-btn{appearance:none;width:100%;min-height:58px;border:1px solid rgba(247,198,106,.18);border-radius:22px;background:linear-gradient(145deg,rgba(255,255,255,.064),rgba(255,255,255,.026));color:var(--gold-2);display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 15px 0 20px;font:inherit;font-size:15px;font-weight:780;letter-spacing:-.01em;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 14px 34px rgba(0,0,0,.18);transition:transform .18s var(--ease),border-color .18s var(--ease),background .18s var(--ease)}
body.preview-only .guest-more-topics-btn:hover{border-color:rgba(247,198,106,.28);background:linear-gradient(145deg,rgba(247,198,106,.095),rgba(255,255,255,.028))}
body.preview-only .guest-more-topics-btn:active{transform:scale(.985)}
body.preview-only .guest-more-topics-label{display:block;line-height:1.1}
body.preview-only .guest-more-topics-arrow{width:34px;height:34px;border-radius:14px;display:grid;place-items:center;flex:0 0 auto;background:rgba(247,198,106,.11);border:1px solid rgba(247,198,106,.19);color:var(--gold-2);font-size:18px;font-weight:900;line-height:1}
@media(max-width:760px){body.preview-only .guest-more-topics-wrap{margin-top:8px;margin-bottom:18px}body.preview-only .guest-more-topics-btn{min-height:56px;border-radius:20px;font-size:14px!important;padding-left:18px}body.preview-only .guest-more-topics-arrow{width:32px;height:32px;border-radius:13px}}
