:root{--learn-night:#151738;--learn-violet:#208d81;--learn-lilac:#e2f4f2}
body:has(.az-primary){background:radial-gradient(ellipse at 95% 0%,#eff9f8 0,transparent 36%),#f9fdfc}
header .top:has(.az-primary){min-height:79px;max-width:1000px}
#personal-metrics{grid-column:3;grid-row:1;justify-self:end;display:flex;align-items:center;gap:4px}
.metrics-holder{display:flex;align-items:center;gap:4px}
.top .brand{display:grid;justify-items:center;align-content:center;gap:2px}.top .brand small{font-size:.65rem;line-height:1;letter-spacing:0;font-weight:550;color:#605d75}
.today-date{display:block;color:var(--learn-violet);font-size:clamp(.68rem,2.1vw,.87rem);font-weight:600;letter-spacing:-.018em;line-height:1.35}
.today-welcome h1{margin:0 0 .75rem;font-size:clamp(1.55rem,3vw,2.2rem);letter-spacing:-.045em;color:var(--learn-night)}
.today-focus{isolation:isolate;position:relative;overflow:hidden;display:flex;align-items:center;min-height:clamp(190px,30vw,290px);padding:clamp(22px,4vw,40px);border-radius:24px;color:white;background:linear-gradient(90deg,#14142f 5%,#1e2153e8 37%,#33336666 70%,#39347f16),url('/hero.jpg') right center/cover;box-shadow:0 12px 28px #26244d18}
.focus-copy{max-width:63%}.focus-copy small{display:inline-flex;align-items:center;gap:.45rem;color:#e9f6f5;font-weight:650}.focus-copy h2{font-size:clamp(1.55rem,4vw,2.7rem);letter-spacing:-.047em;color:white;margin:.6rem 0 .3rem;line-height:1.07}.focus-copy p{color:#e8f6f5;line-height:1.35;margin:.4rem 0 .9rem}.focus-open{color:#233b53;background:white;border:0;border-radius:23px;padding:.55rem 1.15rem}
.today-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}
.today-cards .az-tile{padding:clamp(12px,2.4vw,22px);background:#eef8f7;border:1px solid #e3efee}.today-cards .az-tile:nth-child(2){background:#fff3e9}.today-cards .az-tile:nth-child(3){background:#edf4ff}.today-cards .az-tile:nth-child(4){background:#f1faf9}.today-cards .glyph{background:#ffffffae;color:var(--learn-violet);flex-shrink:0}.today-cards small{line-height:1.25}
.today-quiz .studio-ticket{width:100%}
#session-fab{background:radial-gradient(ellipse at 14% 0%,#35c6f8,transparent 47%),linear-gradient(140deg,#333888,#2c69a7 65%,#2d6aa8);border:1px solid #ada7ffab;box-shadow:inset 0 1px 2px #e4f5f387,0 7px 17px #22466b45;color:white}
#dialog:has(.quick-sheet){position:fixed;inset:auto max(17px,env(safe-area-inset-right)) calc(85px + env(safe-area-inset-bottom)) auto;margin:0;padding:0 0 70px;overflow:auto;border:0;background:none;color:white;box-shadow:none;width:min(345px,calc(100vw - 32px));max-height:calc(100dvh - 125px)}
#dialog:has(.quick-sheet)::backdrop{background:#14132ab8;backdrop-filter:blur(4px)}
#dialog:has(.quick-sheet)>.close{position:absolute;inset:auto 0 0 auto;border-radius:50%;width:58px;height:58px;background:linear-gradient(140deg,#239a8c,#214f7d);color:white;font-size:2rem;border:1px solid #d4efec}
.quick-sheet,.quick-sheet #quick-time{display:grid;gap:10px}
.quick-choice{width:100%;display:flex;align-items:center;justify-content:flex-end;gap:14px;border:0;background:transparent;text-align:right;padding:2px;color:white;font-weight:680;text-shadow:0 2px 8px #15142f;font-size:1rem}.quick-choice i{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:#f9fdfc;color:#396795;box-shadow:0 2px 8px #18243125}.quick-choice svg{width:22px;height:22px}
.calendar-switch{width:min(100%,360px);margin:0 auto 18px;padding:4px;border-radius:16px;background:#e7f2f1;display:flex;gap:3px}.calendar-switch button{flex:1;min-height:39px;border:0;border-radius:13px;background:transparent;font-weight:650}.calendar-switch [aria-pressed=true]{background:white;color:#2c6299;box-shadow:0 2px 6px #162d451c}
.profile-heading{margin:3px 0 18px}.profile-heading small{color:var(--learn-violet);font-weight:700}.profile-heading h1{font-size:clamp(1.75rem,4vw,2.65rem);letter-spacing:-.05em;margin:.15em 0}.profile-heading p{margin:0;color:#56506a}
@media(max-width:550px){.top .az-primary button{font-size:clamp(.65rem,2.45vw,.77rem)}.focus-copy{max-width:82%}.today-cards small{font-size:.77rem}.today-cards .az-tile{gap:.45rem}.today-cards .glyph{width:29px;height:29px}.top .brand img{height:32px;width:38px}.top .brand small{font-size:.54rem}.top .campus-temperature{padding:.15rem .28rem;font-size:.8rem}.top .campus-units{font-size:.7rem}.top .person{width:35px}.top .person strong,.top .person img{width:31px;height:31px}.top:has(.az-primary){padding-inline:12px}}
@media(max-width:370px){.top .metrics-holder{flex-direction:column;gap:0}.top .campus-temperature{min-height:28px}.today-cards .az-tile{display:grid}.top .brand small{max-width:95px;text-align:center}}
@media(prefers-reduced-motion:no-preference){dialog[open] .quick-choice{animation:quick-in .2s ease-out both}@keyframes quick-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}}

/* The raised controls share one glass material. Text-heavy content keeps its own surface. */
body:has(.az-primary){
 --glass-film:linear-gradient(155deg,#ffffffec 0%,#f7f8ffc9 34%,#ecf8f6ab 78%,#ffffffcf);
 --glass-edge:inset 0 1px 1px #fff,inset 1px 0 1px #ffffffd9,inset 0 -1px 1px #8882ad40,0 6px 22px #21374e19;
 background:radial-gradient(ellipse at 98% 7%,#dceafa80 0,transparent 40%),radial-gradient(ellipse at 2% 56%,#e5f5f363 0,transparent 42%),#f9fdfc;
}
body .top .az-primary,body .calendar-switch,body .campus-nav.az-tools{
 background:var(--glass-film);border:1px solid #ffffffd9;
 box-shadow:var(--glass-edge);
 -webkit-backdrop-filter:blur(20px) saturate(160%);backdrop-filter:blur(20px) saturate(160%);
}
body .top .az-primary button.active,.calendar-switch button[aria-pressed=true],body .campus-nav.az-tools .btn[aria-pressed=true]{
 background:radial-gradient(ellipse at 12% -10%,#d4fdff,transparent 67%),linear-gradient(145deg,#f8fcfc,#d9f1ee 78%,#eef9f7);
 color:#21476d;box-shadow:inset 0 1px 1px white,inset 0 -1px 2px #2dc8b661,0 2px 8px #37516c17;
}
body #session-fab,#dialog:has(.quick-sheet)>.close{
 background:radial-gradient(ellipse at 18% 0%,#85e6ffbd 0,transparent 47%),radial-gradient(ellipse at 92% 105%,#27ac9ca3,transparent 53%),linear-gradient(141deg,#344da2ed,#285e95e8 75%);
 border:1px solid #bbb8ffcc;box-shadow:inset 0 2px 2px #ffffff9c,inset 0 -2px 3px #1a3f648f,0 6px 18px #233f5b45;
 -webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);
}
.quick-choice i{background:var(--glass-film);box-shadow:var(--glass-edge);border:1px solid #ffffffd9}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){
 body .top .az-primary,body .calendar-switch,body .campus-nav.az-tools,.quick-choice i{background:#f9fdfc;backdrop-filter:none;-webkit-backdrop-filter:none;border-color:#aaa4bd}
 body #session-fab{background:#30659a}
}

#personal-metrics .campus-temperature{background:transparent;border:0;box-shadow:none;color:#ad341b;padding-inline:3px}
#personal-metrics .campus-temperature b{font-size:1.24rem;font-weight:800}
#personal-metrics .campus-temperature svg{color:#db4e21;width:21px;height:24px}
@media(max-width:700px){
#dialog:has(.message-thread){position:fixed;inset:var(--chat-top,0px) 0 auto;margin:0;width:100%;max-width:none;height:var(--chat-height,100dvh);max-height:none;box-sizing:border-box;border:0;border-radius:0;padding:16px;overflow:hidden}
#dialog:has(.message-thread) #dialogbody,#dialog .message-thread{height:100%;min-height:0;box-sizing:border-box}
#dialog .message-thread{display:flex;flex-direction:column;padding-top:8px}
#dialog .message-thread h2,#dialog .message-thread>p{margin:.25rem 0}
#dialog .message-history{flex:1;min-height:0;max-height:none;overscroll-behavior:contain}
#dialog .message-thread form{flex:none;padding:8px 0 max(10px,env(safe-area-inset-bottom));background:white}
#dialog .message-thread textarea{font-size:16px;min-height:44px;height:3em;max-height:18dvh;resize:none;box-sizing:border-box}
}

.top .brand img{width:58px;height:48px;object-fit:contain;mix-blend-mode:normal;border-radius:0;background:none}
.campus-day{display:flex;justify-content:flex-end;margin-bottom:12px}
.campus-day>div{display:grid;gap:3px;padding:12px 20px;border-radius:18px;background:linear-gradient(120deg,#182450,#2c66a0);color:white}
.campus-day b{font-size:1.6rem;line-height:1.1}
.campus-day small{color:white}
.topic-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.topic-options .btn{min-height:66px;border-radius:16px}
.earned-thermos{display:inline-flex;max-width:55px;overflow-x:auto;color:#293c60}
#personal-metrics .earned-thermos svg{width:9px;height:20px;flex:none;color:inherit}
@media(prefers-color-scheme:dark){.earned-thermos{color:#aec5ee}}
#machine .lever i{transform:translate(calc(-50% + var(--grip-x)),calc(50% + var(--grip-y))) scale(var(--grip-scale,1))}
