/* Reference-derived tokens are confined to the Today page. */
body[data-role=student][data-page=today]{--td-ink:#102d59;--td-muted:#7385a0;--td-blue:#0675ff;--td-line:#e9eff7;--td-radius:24px;--td-shadow:0 7px 22px #2868a008;background:radial-gradient(ellipse at 0 10%,#e4f4ff,transparent 55%),#f5f9fd;color:var(--td-ink);font-family:Vazirmatn,sans-serif}
#todayBrand{display:none}body[data-role=student][data-page=today] #todayBrand{display:block;width:112px;height:66px;object-fit:contain;mix-blend-mode:multiply;order:2}
body[data-role=student][data-page=today] .main{max-width:1220px;margin-inline:auto;padding-inline:28px;padding-bottom:100px}
body[data-role=student][data-page=today] .topbar{display:flex;justify-content:space-between;min-height:92px;gap:12px;border:0;background:transparent}
body[data-role=student][data-page=today] .topbar-right{order:1}body[data-role=student][data-page=today] .topbar-actions{order:3;gap:8px}body[data-role=student][data-page=today] .page-heading h1{font-size:19px;color:var(--td-ink)}body[data-role=student][data-page=today] .page-heading p{font-size:11px;color:var(--td-muted);display:block}
body[data-role=student][data-page=today] .top-action,body[data-role=student][data-page=today] .mobile-menu{width:42px;height:42px;min-height:42px;background:#fff;border:1px solid var(--td-line);border-radius:14px;box-shadow:none}
body[data-role=student][data-page=today] .top-avatar{display:grid}body[data-role=student][data-page=today] .avatar-link img{width:40px;height:40px;border-radius:50%}
body[data-role=student][data-page=today] #pageContent{max-width:100%;padding:0}.td-page{display:grid;gap:16px;max-width:1000px;margin:auto;line-height:1.8}.td-page button{font-family:inherit;cursor:pointer}.td-page button:focus-visible,.td-page input:focus-visible{outline:3px solid #ffbb47;outline-offset:3px}
.td-hero{min-height:160px;position:relative;display:flex;align-items:center;padding:26px 30px 26px 220px;overflow:hidden;border:1px solid #e5f0ff;border-radius:var(--td-radius);background:linear-gradient(115deg,#e1f4ff,#edf5ff 70%,#f3f8ff)}.td-hero h2{font-size:25px;margin:0 0 8px;font-weight:850;line-height:1.7;position:relative;z-index:1}.td-hero p{font-size:13px;color:#607d9f;margin:0;position:relative;z-index:1}.td-hero img{position:absolute;left:0;bottom:-5px;width:250px;height:190px;object-fit:contain;object-position:left bottom}.td-star{position:absolute;left:228px;top:32px;color:#ffae22;font-size:29px}
.td-card{background:#fff;border:1px solid var(--td-line);border-radius:var(--td-radius);padding:18px;box-shadow:var(--td-shadow);min-width:0}.td-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:13px}.td-card h2{font-size:18px;display:flex;align-items:center;gap:9px;margin:0;font-weight:800}.td-icon{width:39px;height:39px;display:inline-flex;align-items:center;justify-content:center;flex:none;border-radius:12px;color:var(--td-blue);background:#eef5ff}.td-icon svg{width:23px;height:23px}.td-green{color:#05a76b;background:#ebfbf4}.td-orange{color:#ee8a14;background:#fff5e7}.td-purple{color:#8a4be8;background:#f6f0ff}.td-button{border:1px solid #e1eaf6;background:#fff;color:#315278;border-radius:12px;min-height:44px;padding:8px 15px;font-size:12px;font-weight:650;box-shadow:0 3px 9px #1a416905;white-space:nowrap}.td-primary{background:linear-gradient(105deg,#148cff,#0763ee);color:#fff;border-color:transparent;box-shadow:0 5px 12px #0878fb22}.td-button:hover{filter:brightness(.97)}
.td-agenda-list{display:grid;gap:8px}.td-agenda{position:relative;display:flex;gap:10px;align-items:center;border:1px solid #edf2f8;background:linear-gradient(90deg,#fff,#fbfdff);border-radius:16px;min-height:72px;padding:10px 14px}.td-agenda strong{font-size:14px;flex:1;font-weight:700}.td-agenda>.td-button{margin-inline-start:auto;min-width:78px;color:var(--td-blue);background:#f1f7ff;border-color:transparent}.td-agenda small{display:block;color:var(--td-muted);font-size:10px}.td-dot{width:9px;height:9px;position:absolute;right:-5px;top:25px;border:3px solid #fff;box-sizing:content-box;background:#0878fb;border-radius:50%}.td-dot.td-green{background:#08ae75}.td-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:13px}.td-shortcuts>button{display:flex;gap:7px;align-items:center;justify-content:center;border:1px solid var(--td-line);border-radius:15px;padding:10px 7px;background:#fff;min-height:65px;color:var(--td-ink);font-size:12px;font-weight:650}.td-shortcuts>button:first-child{background:linear-gradient(110deg,#208dff,#0861ee);color:white;border-color:transparent}.td-shortcuts>button:first-child .td-icon{color:#fff;background:#ffffff22}.td-shortcuts .td-icon{width:33px;height:36px}
.td-secondary{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.td-empty{font-size:12px;color:#657b97;margin:14px 2px;padding:12px 0}.td-grade{display:flex;align-items:center;gap:10px;padding-block:10px;border-top:1px solid var(--td-line);font-size:13px}.td-grade strong{color:#0a9f72;margin-inline-start:auto;font-size:18px}.td-grade small{font-size:10px;font-weight:400;color:var(--td-muted)}.td-grade .td-button{padding-inline:10px}.td-progress{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:14px}.td-progress>strong{font-size:25px;color:var(--td-blue)}.td-progress>span{font-size:11px;color:var(--td-muted)}.td-progress>div{width:100%;height:6px;background:#edf3fb;border-radius:8px;overflow:hidden}.td-progress i{display:block;height:100%;background:linear-gradient(90deg,#07ba90,#0882ff);border-radius:8px}.td-habit{display:flex;align-items:center;gap:11px;min-height:47px;border-top:1px solid var(--td-line);font-size:13px;cursor:pointer}.td-habit input{width:21px;height:21px;accent-color:#0878fb;margin:0;flex:none}
.td-moods{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;direction:rtl}.td-moods button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:#f5f8fc;border:1px solid #edf2fa;border-radius:16px;min-height:91px;padding:11px 4px;color:#657b97}.td-moods svg{width:30px;height:30px}.td-moods span{font-size:12px;white-space:nowrap}.td-moods button.selected{background:linear-gradient(140deg,#f7fffb,#e4f9ef);color:#07995a;border-color:#0fb977;box-shadow:0 3px 9px #08a56b0c}.td-moods button.selected svg{color:#08a263}.td-timer{display:flex;gap:18px;flex-direction:column;align-items:stretch}.td-timer>strong{text-align:center;font-size:40px;color:#0a67e8}.td-review-actions{display:grid;gap:12px}.td-form-note{display:block;color:#657b97;margin-bottom:12px}.today-back{margin-bottom:12px;min-height:44px}
body[data-role=student][data-page=today] .mobile-nav{border:1px solid #e4edf8;box-shadow:0 -6px 24px #285e9809;background:#ffffffef;backdrop-filter:blur(14px);border-radius:22px 22px 0 0;padding-top:9px}body[data-role=student][data-page=today] .mobile-nav button{position:relative;min-height:52px;color:#75869f}body[data-role=student][data-page=today] .mobile-nav button svg{width:25px;height:25px}body[data-role=student][data-page=today] .mobile-nav button.active{color:#0674ff;background:none}body[data-role=student][data-page=today] .mobile-nav button.active:before{content:'';position:absolute;top:-9px;width:38px;height:4px;background:#0878fb;border-radius:0 0 5px 5px}
body[data-role=student][data-page=today][data-demo=true] .demo-banner{font-size:10px;padding:6px 16px;color:#93521b;background:#fff8ec;border-bottom:1px solid #ffe7c6}
@media(max-width:820px){body[data-role=student][data-page=today] .main{padding-inline:14px}body[data-role=student][data-page=today] .topbar{min-height:78px;gap:6px}body[data-role=student][data-page=today] .topbar-right{gap:7px}body[data-role=student][data-page=today] #todayBrand{width:86px;height:58px}body[data-role=student][data-page=today] .page-heading h1{font-size:14px}body[data-role=student][data-page=today] .page-heading p{font-size:9px;max-width:108px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body[data-role=student][data-page=today] .topbar-actions{gap:5px}body[data-role=student][data-page=today] .top-action,body[data-role=student][data-page=today] .mobile-menu{width:36px;min-width:36px;height:40px;min-height:40px}body[data-role=student][data-page=today] .top-avatar{display:none}body[data-role=student][data-page=today] .topbar-actions>.top-action:first-child{display:none}.td-page{gap:13px}.td-hero{min-height:124px;padding:19px 17px 19px 118px;border-radius:21px}.td-hero h2{font-size:18px;line-height:1.9}.td-hero p{font-size:10px;line-height:1.9}.td-hero img{left:-24px;width:165px;height:140px}.td-star{left:118px;top:14px;font-size:22px}.td-card{padding:13px;border-radius:21px}.td-card h2{font-size:15px;gap:7px}.td-card-head{margin-bottom:11px}.td-icon{width:32px;height:34px;border-radius:10px}.td-icon svg{width:21px;height:21px}.td-button{padding:8px 11px;font-size:11px}.td-agenda{min-height:64px;padding:9px 10px;gap:9px}.td-agenda strong{font-size:13px}.td-agenda>.td-button{min-width:64px}.td-shortcuts{gap:6px}.td-shortcuts>button{flex-direction:column;gap:5px;min-height:82px;font-size:11px;padding:8px 4px}.td-secondary{grid-template-columns:1fr;gap:13px}.td-moods{gap:5px}.td-moods button{min-height:82px;border-radius:13px;padding-inline:1px}.td-moods span{font-size:10px}.td-moods svg{width:27px;height:27px}}
@media(prefers-reduced-motion:reduce){.td-page *{scroll-behavior:auto!important;transition:none!important}}

body[data-role=student][data-page=today] .main{width:100%}.td-hero img{width:390px;height:195px;object-fit:fill}.td-hero{isolation:isolate}.td-hero img{z-index:-1}.td-star{z-index:-1}@media(max-width:820px){.td-hero img{width:255px;height:128px;left:-8px}.td-hero{padding-left:125px}body[data-role=student][data-page=today] .topbar-actions>.top-action:first-child{display:grid}body[data-role=student][data-page=today] #todayBrand{width:66px}.td-hero h2{font-size:17px}}

@media(min-width:821px){.td-hero img{width:320px;height:160px}}
body[data-role=student][data-page=today] .top-action,body[data-role=student][data-page=today] .mobile-menu{min-width:44px;min-height:44px;width:44px;height:44px}

.td-default-avatar{display:block;width:40px;height:40px;border-radius:50%;background-image:url(assets/brand/role-avatars-approved.jpg);background-size:413% 310%;background-position:7% 6%}
