html:not([data-theme=dark]):has(body.beta){--ui-bg:#f5f6fa;--ui-surface:#fff;--ui-soft:#f0f3f9;--ui-text:#19233a;--ui-muted:#58647d;--ui-border:#e3e7f0;--ui-accent:#315df4;--ui-accent-soft:#e9eeff;--ui-on-accent:#fff}
/* Approved Astra design tokens and shared geometry, exported from Pen. */
html:not([data-theme=dark]) body.beta{--blue:#315df4;--ink:#19233a;--muted:var(--ui-muted);--line:#e3e7f0;--surface:#fff;--bg:#f5f6fa;font-family:Inter,system-ui,sans-serif;color:var(--ink);background:var(--bg)}
body.beta .astra-icon,body.beta .astra-icon path{stroke:none;fill:currentColor}
html:not([data-theme=dark]) body.beta .study-layout{max-width:760px;padding:8px 20px calc(100px + var(--app-safe-bottom, env(safe-area-inset-bottom)));margin:auto}
html:not([data-theme=dark]) body.beta .study-top{height:40px;min-height:40px;margin:0 0 18px;padding:0;display:flex;align-items:center;justify-content:space-between;gap:12px;background:transparent}
html:not([data-theme=dark]) body.beta .study-brand{display:flex;align-items:center;gap:10px;padding:0;min-height:40px}
html:not([data-theme=dark]) body.beta .study-wordmark{font-family:Inter,system-ui,sans-serif;font-size:23px;font-weight:700;letter-spacing:-1px;color:#315df4}
html:not([data-theme=dark]) body.beta .study-institution{font-size:13px;font-weight:500;color:var(--ui-muted);line-height:19px;border-left:1px solid #ccd3df;padding-left:10px;margin:0}
html:not([data-theme=dark]) body.beta .study-top-actions{align-items:center;gap:8px}
html:not([data-theme=dark]) body.beta .study-nav{height:66px;min-height:66px;box-sizing:border-box;padding:5px;gap:2px;bottom:calc(12px + var(--app-safe-bottom, env(safe-area-inset-bottom)));left:50%;right:auto;transform:translateX(-50%);width:calc(100% - 32px);max-width:728px;border:1px solid #e3e7f0;border-radius:24px;background:#fff;box-shadow:none;overflow:hidden}
html:not([data-theme=dark]) body.beta .study-nav button{height:54px;min-height:54px;min-width:0;flex:1;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;padding:0 2px;border-radius:18px;color:var(--ui-muted);background:transparent;font:500 11px/14px Inter,system-ui,sans-serif}
html:not([data-theme=dark]) body.beta .study-nav button .ui-icon{width:21px;height:21px;color:#758098}
html:not([data-theme=dark]) body.beta .study-nav button.active{background:#e9eeff;color:#315df4;font-weight:600}
html:not([data-theme=dark]) body.beta .study-nav button.active .ui-icon{color:#315df4}
html:not([data-theme=dark]) body.beta .study-nav button::before,html:not([data-theme=dark]) body.beta .study-nav button::after{display:none}
html:not([data-theme=dark]) body.beta .study-nav button:hover{background:#edf1fa}
html:not([data-theme=dark]) body.beta .study-main{padding:0;min-width:0}
html:not([data-theme=dark]) body.beta .study-main h1{font-size:26px;line-height:1.2;letter-spacing:-.7px;color:#19233a}
html:not([data-theme=dark]) body.beta .study-main h2{font-size:18px;line-height:1.3;letter-spacing:-.3px}
html:not([data-theme=dark]) body.beta .mpei-home-art{margin:0 0 18px;border-radius:18px;overflow:hidden}
html:not([data-theme=dark]) body.beta .mpei-home-art img{display:block;width:100%;height:auto;object-fit:contain}
html:not([data-theme=dark]) body.beta .campus-feed-controls{gap:18px;margin:0 0 18px}
html:not([data-theme=dark]) body.beta .campus-discovery-open{height:48px;padding:0 14px;border:0;border-radius:14px;background:#fff;color:var(--ui-muted);font-size:13px;gap:10px}
html:not([data-theme=dark]) body.beta .campus-feed-bar{gap:8px}
html:not([data-theme=dark]) body.beta .campus-feed-bar>.campus-chip-strip{background:transparent;border:0;border-radius:0;padding:0;gap:8px;overflow-y:hidden;min-height:36px}
html:not([data-theme=dark]) body.beta .campus-feed-bar .campus-chip{height:36px;min-height:36px;border-radius:12px;padding:0 16px;background:#fff;font-size:13px;font-weight:600;color:var(--ui-muted);box-shadow:none}
html:not([data-theme=dark]) body.beta .campus-feed-bar .campus-chip[aria-pressed=true]{background:#19233a;color:#fff}
html:not([data-theme=dark]) body.beta .campus-feed-options>summary{width:36px;height:36px;min-height:36px;padding:8px;border-radius:12px;border:0;background:#fff}
html:not([data-theme=dark]) body.beta .campus-post{padding:16px;margin:0 0 18px;background:#fff;border:0;border-radius:22px}
html:not([data-theme=dark]) body.beta .campus-post-text{font-size:14px;line-height:1.55;margin:12px 0}
html:not([data-theme=dark]) body.beta .campus-post h3{font-size:17px;line-height:1.35;margin:12px 0 8px}
html:not([data-theme=dark]) body.beta .campus-post-actions{gap:18px;margin-top:12px;padding:0;border:0}
html:not([data-theme=dark]) body.beta .campus-action{font-size:12px;gap:6px;min-height:32px;padding:4px 0;color:var(--ui-muted)}
html:not([data-theme=dark]) body.beta .campus-action .campus-icon,html:not([data-theme=dark]) body.beta .campus-study-heart{width:20px;height:20px}
html:not([data-theme=dark]) body.beta .campus-profile-header{border:0;border-radius:24px;background:#fff;overflow:hidden;padding:0}
html:not([data-theme=dark]) body.beta .campus-profile-cover{height:auto;aspect-ratio:3/1;margin:0;border-radius:0}
html:not([data-theme=dark]) body.beta .campus-profile-cover img{width:100%;height:100%;object-fit:cover}
html:not([data-theme=dark]) body.beta .campus-profile-content{padding:0 18px 20px}
html:not([data-theme=dark]) body.beta .campus-profile-title{display:flex;align-items:center;justify-content:center;gap:6px}
html:not([data-theme=dark]) body.beta .campus-profile-title h1{font-size:23px;margin:0}
html:not([data-theme=dark]) body.beta .campus-profile-name{gap:6px}
html:not([data-theme=dark]) body.beta .campus-profile-meta{font-size:12px;line-height:18px;color:var(--ui-muted)}
html:not([data-theme=dark]) body.beta .campus-profile-bio{font-size:13px;line-height:20px;margin:12px 0}
html:not([data-theme=dark]) body.beta .campus-social-counts{font-size:12px;gap:20px}
html:not([data-theme=dark]) body.beta .campus-registration{font-size:11px;line-height:16px;color:var(--ui-muted);margin:10px 0}
html:not([data-theme=dark]) body.beta .campus-profile-edit{border-radius:14px;background:#19233a;min-height:42px;height:42px;font-size:13px;padding:0 22px}
html:not([data-theme=dark]) body.beta .campus-profile-tabs{height:48px;padding:4px;gap:4px;margin:20px 0;background:#e9edf5;border:0;border-radius:16px}
html:not([data-theme=dark]) body.beta .campus-profile-tabs .campus-chip{height:40px;min-height:40px;border-radius:12px;font-size:13px;padding:0 10px}
html:not([data-theme=dark]) body.beta .campus-role-tag{padding:0;border:0;background:none;min-width:0;gap:0;color:var(--ui-muted)}
html:not([data-theme=dark]) body.beta .campus-role-tag>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html:not([data-theme=dark]) body.beta .campus-role-tag .campus-icon{width:15px;height:15px}
html:not([data-theme=dark]) body.beta .grade-search{height:44px;border:1px solid #e1e6ef;border-radius:14px;padding:0 14px;background:#fff;margin:14px 0}
html:not([data-theme=dark]) body.beta .grade-search input{background:transparent;font-size:13px;min-height:40px}
html:not([data-theme=dark]) body.beta .grade-controls{padding:0;margin:12px 0}
html:not([data-theme=dark]) body.beta .semester-control{background:#fff;border-radius:14px;padding:10px 14px;border:1px solid #e3e7f0}
html:not([data-theme=dark]) body.beta .course-item>summary{padding:16px;gap:12px}
html:not([data-theme=dark]) body.beta .course-label>strong{font-size:15px;line-height:1.4}
html:not([data-theme=dark]) body.beta .course-teacher,html:not([data-theme=dark]) body.beta .course-label small{font-size:11px}
html:not([data-theme=dark]) body.beta .course-detail{padding:0 16px 16px}
html:not([data-theme=dark]) body.beta .task-row{padding:12px 0}
html:not([data-theme=dark]) body.beta .task-work>strong{font-size:13px;font-weight:500}
html:not([data-theme=dark]) body.beta .task-work small{font-size:11px}
html:not([data-theme=dark]) body.beta .data-timestamp{font-size:11px;color:var(--ui-muted)}
html:not([data-theme=dark]) body.beta .day-strip{padding:6px;background:#fff;border:1px solid #e3e7f0;border-radius:18px;gap:4px}
html:not([data-theme=dark]) body.beta .day-strip button{border-radius:12px;min-width:42px}
html:not([data-theme=dark]) body.beta .day-strip button[aria-pressed=true]{background:#315df4;color:white}
html:not([data-theme=dark]) body.beta .lesson-row{margin:14px 0;gap:12px}
html:not([data-theme=dark]) body.beta .lesson-body{border-radius:18px;padding:16px;background:#fff;border:1px solid #e3e7f0}
html:not([data-theme=dark]) body.beta .lesson-body h3{font-size:15px;line-height:1.4}
html:not([data-theme=dark]) body.beta .lesson-meta{font-size:11px}
html:not([data-theme=dark]) body.beta .campus-discovery section{padding:16px;border-radius:18px;background:#fff;margin-top:14px}
html:not([data-theme=dark]) body.beta .campus-institute{border:1px solid #e3e7f0;border-radius:12px;padding:8px 10px;font-size:12px}
html:not([data-theme=dark]) body.beta .campus-institute-icon{font-size:19px}
@media(min-width:1000px){html:not([data-theme=dark]) body.beta .study-layout{max-width:1100px;padding:24px 32px 110px}html:not([data-theme=dark]) body.beta .study-top{margin-bottom:28px}html:not([data-theme=dark]) body.beta .campus-wall{max-width:720px;margin:0 auto}html:not([data-theme=dark]) body.beta .campus-social-profile{max-width:720px;margin:0 auto}html:not([data-theme=dark]) body.beta .study-nav{max-width:680px}}
@media(max-width:359px){html:not([data-theme=dark]) body.beta .study-layout{padding-left:14px;padding-right:14px}html:not([data-theme=dark]) body.beta .study-nav button{font-size:10px}html:not([data-theme=dark]) body.beta .study-wordmark{font-size:21px}}
html:not([data-theme=dark]) body.beta .study-nav{top:auto;flex-direction:row}
html:not([data-theme=dark]) body.beta .campus-profile-title .campus-profile-roles{display:inline-flex;align-items:center;gap:5px;margin:0}
body.beta .study-top-actions>[data-online-count],body.beta .study-top-actions>#study-avatar{display:none}
body.beta .astra-notifications{display:grid;place-items:center;width:40px;height:40px;min-height:40px;border-radius:20px;padding:0;background:var(--ui-surface);color:var(--ui-text)}
body.beta .astra-notifications .ui-icon{width:21px;height:21px}
html:not([data-theme=dark]) body.beta .study-layout{background:transparent;border:0;width:100%;box-sizing:border-box}
body.beta #beta-app .study-top,body.beta .study-top{position:static;width:100%;display:flex}
html:not([data-theme=dark]) body.beta .study-nav{display:flex}
@media(min-width:1174px){html:not([data-theme=dark]) body.beta .study-layout{width:100%;margin-inline:auto}body.beta #beta-app .study-top{position:static;width:100%}}
html:not([data-theme=dark]) body.beta #beta-app,html:not([data-theme=dark]) body.beta #beta-app:has(.campus-profile-header){max-width:none;padding:var(--app-safe-top,env(safe-area-inset-top)) 0 0;background:transparent}
html:not([data-theme=dark]) body.beta .study-footer{display:none}
html:not([data-theme=dark]) body.beta .campus-home-heading{display:none}
html:not([data-theme=dark]) body.beta .astra-compose{display:flex;align-items:center;justify-content:center;gap:8px;height:46px;min-height:46px;width:100%;background:#315df4;color:white;border-radius:14px;font:600 13px/18px Inter,system-ui,sans-serif}
body.beta .astra-compose .campus-icon{width:18px;height:18px}
html[data-theme=dark] body.beta .astra-compose{width:100%;min-height:46px;border-radius:14px;background:var(--ui-accent);color:var(--ui-on-accent)}
html:not([data-theme=dark]) body.beta #beta-app:has(#study-main[data-study-view=profile] .campus-profile-header) .study-top{display:flex}
html:not([data-theme=dark]) body.beta .campus-banner-actions{top:12px;right:12px;bottom:auto}
html:not([data-theme=dark]) body.beta .campus-banner-action{width:32px;height:32px;min-height:32px;background:#ffffffdd;border-radius:10px;color:#19233a;padding:7px}
html:not([data-theme=dark]) body.beta .campus-profile-menu{order:2}
html:not([data-theme=dark]) body.beta .campus-profile-menu>summary{width:42px;height:42px;min-height:42px;border-radius:14px;background:#e9eeff;color:#315df4;padding:11px}
html:not([data-theme=dark]) body.beta .campus-profile-menu>summary svg{width:20px;height:20px}
html:not([data-theme=dark]) body.beta .semester-control{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;height:48px;box-sizing:border-box;width:100%}
html:not([data-theme=dark]) body.beta .semester-control>span{font-size:12px;margin:0}
html:not([data-theme=dark]) body.beta .semester-control select{width:auto;flex:1;min-height:36px;height:36px;font-size:13px;border:0;background:transparent;padding:0 6px}
html:not([data-theme=dark]) body.beta .study-heading{margin:0 0 14px}
html:not([data-theme=dark]) body.beta .grade-toolbar{margin:14px 0;font-size:11px}
/* Remaining Astra screens: page dialogs share the same mobile content gutter. */
body.beta #study-main .astra-screen-header{display:flex;align-items:center;justify-content:space-between;height:40px;min-height:40px;margin-bottom:20px;gap:12px;width:100%}
body.beta #study-main .astra-screen-bell{display:grid;place-items:center;width:40px;height:40px;background:var(--ui-surface);border-radius:20px;color:var(--ui-text)}
body.beta #study-main .astra-screen-bell svg{width:21px;height:21px}
body.beta #study-main .astra-back{display:flex;align-items:center;justify-content:flex-start;gap:7px;background:transparent;border:0;padding:0;min-height:32px;height:32px;font:500 13px/18px Inter,system-ui,sans-serif;color:var(--ui-accent);text-align:left}
body.beta #study-main .astra-back svg{width:18px;height:18px;flex-shrink:0}
body.beta #study-main .campus-modal-backdrop,body.beta #study-main .banner-editor-overlay,body.beta #study-main .campus-compose-overlay{position:fixed;inset:0;z-index:80;display:block;overflow:auto;background:var(--ui-bg);padding:0;overscroll-behavior:contain}
body.beta #study-main .campus-settings-window,body.beta #study-main .campus-avatar-window,body.beta #study-main .banner-editor,body.beta #study-main .campus-compose-window{width:100%;max-width:760px;max-height:none;min-height:100%;margin:0 auto;border:0;border-radius:0;box-shadow:none;background:transparent;padding:calc(8px + var(--app-safe-top,env(safe-area-inset-top))) 20px calc(24px + var(--app-safe-bottom,env(safe-area-inset-bottom)));box-sizing:border-box;overflow:visible;font-family:Inter,system-ui,sans-serif}
html:not([data-theme=dark]) body.beta #study-main .campus-modal-backdrop,html:not([data-theme=dark]) body.beta #study-main .banner-editor-overlay,html:not([data-theme=dark]) body.beta #study-main .campus-compose-overlay{background:#f5f6fa}
body.beta #study-main .campus-settings-window::before,body.beta #study-main .campus-settings-tabs::before,body.beta #study-main .campus-settings-content::before{display:none}
body.beta #study-main .campus-profile-underlay{display:none}
body.beta #study-main .campus-settings-layout{display:flex;flex-direction:column;gap:20px;min-width:0}
body.beta #study-main .astra-settings-heading{display:flex;flex-direction:column;gap:20px}
body.beta #study-main .astra-settings-heading h2,body.beta #study-main .banner-editor h2,body.beta #study-main .campus-avatar-window h2{font:700 28px/31px Inter,system-ui,sans-serif;letter-spacing:-.8px;margin:0;color:var(--ui-text)}
body.beta #study-main .astra-settings-person{display:none;align-items:center;gap:12px}
body.beta #study-main .is-index .astra-settings-person{display:flex}
body.beta #study-main .astra-settings-person .campus-avatar{width:48px;height:48px;min-width:48px}
body.beta #study-main .astra-settings-person>span{display:flex;flex-direction:column;gap:4px}
body.beta #study-main .astra-settings-person strong{font-size:15px;font-weight:600}
body.beta #study-main .astra-settings-person small{font-size:12px;color:var(--ui-muted)}
body.beta #study-main .campus-settings-tabs{display:none;width:100%;padding:0;margin:0;border:0;gap:8px}
body.beta #study-main .is-index .campus-settings-tabs{display:flex;flex-direction:column}
body.beta #study-main .campus-settings-tabs .campus-setting-link{display:flex;align-items:center;gap:12px;padding:14px;background:var(--ui-surface);border:0;border-radius:14px;width:100%;min-height:62px;text-align:left}
body.beta #study-main .campus-setting-symbol{width:20px;height:20px;flex:0 0 20px;color:var(--ui-accent);background:transparent;padding:0}
body.beta #study-main .campus-setting-symbol svg{width:20px;height:20px}
body.beta #study-main .astra-setting-copy{display:flex;flex:1;flex-direction:column;gap:4px}
body.beta #study-main .astra-setting-copy strong{font-size:14px;font-weight:600;color:var(--ui-text)}
body.beta #study-main .astra-setting-copy small{font-size:12px;color:var(--ui-muted);line-height:16px}
body.beta #study-main .campus-setting-link>.campus-icon:last-child{width:16px;height:16px;color:var(--ui-muted)}
body.beta #study-main .campus-setting-link.astra-study-link{margin-top:10px;background:var(--ui-accent-soft)}
body.beta #study-main .astra-study-link .study-sticker{width:52px;height:48px}
body.beta #study-main .campus-settings-content{display:flex;flex-direction:column;gap:22px;padding:0;width:100%;min-width:0;background:transparent;border:0}
body.beta #study-main .is-index .campus-settings-content:empty{display:none}
body.beta #study-main .campus-settings-content .campus-form{padding:0;background:transparent;border:0;display:flex;flex-direction:column;gap:20px}
body.beta #study-main .campus-settings-content .campus-form label{font-size:12px;font-weight:500;gap:8px}
body.beta #study-main .campus-settings-content .campus-form label small{font-size:11px;font-weight:400;color:var(--ui-muted)}
body.beta #study-main .campus-settings-content input:not([type=checkbox]),body.beta #study-main .campus-settings-content textarea,body.beta #study-main .campus-avatar-window input:not([type=file]){border:1px solid var(--ui-border);background:var(--ui-surface);color:var(--ui-text);border-radius:14px;min-height:48px;padding:12px 14px;font:400 13px/20px Inter,system-ui,sans-serif;box-sizing:border-box;width:100%}
body.beta #study-main .campus-settings-content textarea{height:84px;resize:vertical}
body.beta #study-main .campus-settings-content .campus-button,body.beta #study-main .campus-avatar-window .campus-button{height:48px;min-height:48px;border-radius:14px;background:var(--ui-accent);color:var(--ui-on-accent);font-size:14px;font-weight:600;margin:0;padding:0 16px;width:100%}
body.beta #study-main .astra-cancel{min-height:36px;font-size:13px;color:var(--ui-muted);background:transparent;border:0;text-align:center}
body.beta #study-main .astra-account-media{background:var(--ui-surface);border-radius:20px;overflow:hidden;padding-bottom:16px}
body.beta #study-main .astra-account-media .campus-profile-cover{aspect-ratio:3/1;height:auto;border-radius:0;border:0}
body.beta #study-main .astra-account-photo{display:flex;align-items:center;gap:12px;margin:16px 16px 0}
body.beta #study-main .astra-account-photo .campus-avatar{width:48px;height:48px}
body.beta #study-main .astra-account-photo>div{display:flex;flex-direction:column;gap:4px;font-size:13px}
body.beta #study-main .astra-account-photo .text-button{display:flex;gap:6px;align-items:center;font-size:12px;min-height:28px;padding:0}
body.beta #study-main .astra-account-photo .campus-icon{width:15px;height:15px}
body.beta #study-main .astra-account-media>.text-button{margin:8px 16px 0;font-size:11px;min-height:24px;padding:0}
body.beta #study-main .campus-setting-row,body.beta #study-main .appearance-setting{border:0;background:var(--ui-surface);border-radius:14px;padding:16px;gap:12px}
body.beta #study-main .campus-settings-content .campus-muted,body.beta #study-main .campus-settings-content p,body.beta #study-main .campus-avatar-window p{font-size:13px;line-height:20px;color:var(--ui-muted)}
body.beta #study-main .campus-settings-content .beta-card{border:0;background:var(--ui-surface);border-radius:18px;padding:16px;margin:0}
body.beta #study-main .campus-settings-content .beta-card button{font-size:13px;min-height:44px;border-radius:14px}
body.beta #study-main .campus-settings-content .beta-check{font-size:12px;line-height:18px}
body.beta #study-main .campus-avatar-window{display:flex;flex-direction:column;gap:20px}
body.beta #study-main .campus-avatar-window .astra-screen-header{margin:0}
body.beta #study-main .campus-avatar-window .campus-form{padding:24px 16px;background:var(--ui-surface);border-radius:20px;gap:16px;margin:0}
body.beta #study-main .campus-avatar-window .campus-public-person{display:flex;justify-content:center;margin:0}
body.beta #study-main .campus-avatar-window .campus-avatar-large{width:112px;height:112px;min-width:112px}
body.beta #study-main .campus-file-label{border-radius:14px;min-height:44px;font-size:13px;background:var(--ui-accent-soft);color:var(--ui-accent)}
/* Cover editor uses the actual 3:1 canvas, not a scaled image of the tools. */
body.beta #study-main .banner-editor{display:flex;flex-direction:column;gap:16px}
body.beta #study-main .banner-editor .astra-screen-header{margin:0}
body.beta #study-main .banner-editor-header{margin:0;padding:0;display:block}
body.beta #study-main .banner-editor .astra-back{background:transparent;padding:0;color:var(--ui-accent);border:0;height:32px;min-height:32px}
body.beta #study-main .astra-banner-source{display:flex;gap:8px}
body.beta #study-main .astra-banner-source>*{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;min-width:0;height:44px;min-height:44px;padding:0 8px;background:var(--ui-surface);color:var(--ui-accent);border:0;border-radius:12px;font-size:12px;font-weight:500}
body.beta #study-main .astra-banner-source svg{width:17px;height:17px}
body.beta #study-main .banner-editor-workspace{order:initial;padding:0;background:transparent;border:0;border-radius:12px;margin:0;overflow:auto}
body.beta #study-main .banner-editor-canvas-wrap{border:1px solid var(--ui-border);border-radius:12px;box-shadow:none;margin:0;background:var(--ui-surface);box-sizing:border-box}
body.beta #study-main .banner-editor-canvas-wrap::after,body.beta #study-main .banner-editor-canvas-wrap::before{display:none}
body.beta #study-main #banner-editor-help{font-size:11px;line-height:15px;color:var(--ui-muted);margin:0}
body.beta #study-main .banner-editor-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;flex-wrap:nowrap}
body.beta #study-main .banner-editor-size{font-size:11px;white-space:nowrap;order:0}
body.beta #study-main .banner-editor-zoom{display:flex;gap:2px;align-items:center;color:var(--ui-accent);font-size:12px}
body.beta #study-main .banner-editor-zoom button{width:auto;min-width:24px;height:32px;min-height:32px;padding:0 4px;border:0;border-radius:8px;background:transparent;color:inherit;font-size:12px}
body.beta #study-main .banner-editor-toolbar{display:flex;flex-direction:column;gap:8px;margin:0}
body.beta #study-main .banner-editor-tools{display:flex;flex-wrap:nowrap;gap:5px;width:100%}
body.beta #study-main .banner-editor .banner-tool{flex:1;min-width:0;min-height:58px;height:58px;padding:6px 2px;border:0;border-radius:12px;gap:5px;background:var(--ui-surface);font-size:10px;color:var(--ui-muted)}
body.beta #study-main .banner-editor .banner-tool svg{width:18px;height:18px}
body.beta #study-main .banner-editor .banner-tool[aria-pressed=true]{color:var(--ui-accent);background:var(--ui-accent-soft)}
body.beta #study-main .banner-editor-history{display:flex;gap:8px;width:100%}
body.beta #study-main .banner-editor-history button{display:flex;flex:1;align-items:center;justify-content:center;gap:6px;width:auto;height:40px;min-height:40px;background:transparent;border:0;font-size:11px;padding:0;color:var(--ui-muted)}
body.beta #study-main .banner-editor-history svg{width:15px;height:15px}
body.beta #study-main .banner-editor-options{display:block;background:var(--ui-surface);border-radius:12px;margin:0;padding:0;width:100%}
body.beta #study-main .banner-editor-options>summary{min-height:44px;padding:12px;font-size:13px;font-weight:500;box-sizing:border-box}
body.beta #study-main .banner-drawing-settings{padding:12px;gap:14px;display:flex;flex-direction:column}
body.beta #study-main .banner-editor-widths{display:flex;gap:6px;flex-wrap:wrap}
body.beta #study-main .banner-editor-widths button{flex:1;min-width:34px;height:44px;min-height:44px;padding:4px;font-size:11px}
body.beta #study-main .banner-editor-colors{display:flex;gap:8px;flex-wrap:wrap}
body.beta #study-main .banner-editor-colors button{width:28px;height:28px;min-height:28px;padding:0}
body.beta #study-main .banner-personalize{order:initial;margin:0;padding:0;background:transparent;border:0}
body.beta #study-main .banner-personalize h3{margin:0 0 12px;font-size:16px;font-weight:600}
body.beta #study-main .banner-study-options{display:flex;gap:8px;flex-wrap:nowrap;margin:0;overflow-x:auto}
body.beta #study-main .banner-study-options button{width:48px;height:45px;min-width:40px;min-height:45px;padding:0;background:transparent;border:0;border-radius:8px;flex:1}
body.beta #study-main .banner-study-options .study-sticker{width:100%;height:100%;max-width:48px}
body.beta #study-main .banner-study-options button[aria-pressed=true]{outline:2px solid var(--ui-accent);outline-offset:-2px}
body.beta #study-main .banner-personalize p{font-size:13px;line-height:20px;margin:12px 0 0;color:var(--ui-muted)}
body.beta #study-main .banner-editor-footer{position:static;margin:0;padding:0;border:0;background:transparent}
body.beta #study-main .banner-editor-footer>p{font-size:13px;line-height:20px;color:var(--ui-muted);margin:0 0 16px}
body.beta #study-main .banner-editor-footer>div{display:flex;flex-direction:column;gap:8px}
body.beta #study-main .banner-editor-footer .banner-editor-save{height:48px;min-height:48px;background:var(--ui-accent);border:0;border-radius:14px;font-size:14px;font-weight:600;color:var(--ui-on-accent);width:100%}
body.beta #study-main .banner-editor-footer .banner-editor-cancel{height:36px;min-height:36px;background:transparent;color:var(--ui-muted);border:0;font-size:13px}
body.beta #study-main .banner-editor-status:empty{display:none}
@media(min-width:1000px){body.beta #study-main .campus-settings-window{max-width:1040px;padding:24px 32px 40px}body.beta #study-main .campus-settings-layout:not(.is-index){display:grid;grid-template-columns:250px minmax(0,1fr);gap:24px 36px}body.beta #study-main .campus-settings-layout:not(.is-index) .astra-settings-heading{grid-column:1/-1}body.beta #study-main .campus-settings-layout:not(.is-index) .campus-settings-tabs{display:flex;flex-direction:column}body.beta #study-main .campus-settings-layout.is-index{max-width:600px;margin:auto}body.beta #study-main .banner-editor{max-width:920px;padding:24px 32px 40px}}
body.beta #study-main .astra-appearance{display:flex;flex-direction:column;gap:20px}
body.beta #study-main .astra-appearance p{margin:0;font-size:12px;color:var(--ui-muted)}
body.beta #study-main .astra-theme-list{display:flex;flex-direction:column;gap:16px}
body.beta #study-main .astra-theme-choice{display:flex;align-items:center;gap:14px;border:1px solid var(--ui-border);border-radius:18px;background:var(--ui-surface);padding:14px;text-align:left;min-height:104px}
body.beta #study-main .astra-theme-choice[aria-pressed=true]{border:2px solid var(--ui-accent);padding:13px;background:var(--ui-surface)}
body.beta #study-main .astra-theme-choice>span:nth-child(2){display:flex;flex-direction:column;gap:6px;flex:1}
body.beta #study-main .astra-theme-choice strong{font-size:15px;color:var(--ui-text);font-weight:600}
body.beta #study-main .astra-theme-choice small{font-size:12px;color:var(--ui-muted)}
body.beta #study-main .astra-theme-preview{display:flex;flex-direction:column;gap:6px;width:66px;height:74px;box-sizing:border-box;padding:10px 8px;border-radius:10px;background:#edf1fa;flex-shrink:0}
body.beta #study-main .astra-theme-preview i{height:5px;background:#b8c4de;border-radius:2px;width:100%}
body.beta #study-main .astra-theme-preview i:first-child{background:#315df4;width:50%}
body.beta #study-main .astra-theme-preview i:last-child{flex:1;background:white;border-radius:4px}
body.beta #study-main .astra-theme-dark{background:#19233a}
body.beta #study-main .astra-theme-dark i:last-child{background:#34405b}
body.beta #study-main .astra-theme-radio{width:16px;height:16px;border:1px solid var(--ui-muted);border-radius:50%;flex-shrink:0}
body.beta #study-main .astra-theme-choice[aria-pressed=true] .astra-theme-radio{border:5px solid var(--ui-accent);box-sizing:border-box}
body.beta #study-main .campus-privacy-check input{appearance:none;-webkit-appearance:none;width:44px;height:26px;min-width:44px;background:var(--ui-border);border-radius:13px;border:0;position:relative;padding:0;cursor:pointer}
body.beta #study-main .campus-privacy-check input::after{content:"";position:absolute;width:22px;height:22px;left:2px;top:2px;border-radius:50%;background:white;transition:transform .15s}
body.beta #study-main .campus-privacy-check input:checked{background:var(--ui-accent)}
body.beta #study-main .campus-privacy-check input:checked::after{transform:translateX(18px)}
body.beta #study-main .campus-settings-content[data-section=privacy] .campus-muted{background:var(--ui-accent-soft);padding:16px;border-radius:14px}
body.beta #study-main .campus-settings-content #beta-notifications-description,body.beta #study-main .campus-settings-content #beta-notifications-status{margin:0 0 16px}
body.beta #study-main .campus-compose-window>.campus-back{height:32px;min-height:32px;margin:0 0 20px;font-size:13px;padding:0;color:var(--ui-accent)}
body.beta #study-main .campus-compose-window .campus-heading{margin:0 0 20px}
body.beta #study-main .campus-compose-window h1{font-size:28px;line-height:31px;letter-spacing:-.8px}
body.beta #study-main .campus-compose-window .campus-composer{background:var(--ui-surface);border:0;border-radius:20px;padding:16px;margin:0}
body.beta #study-main .campus-compose-window [data-composer-text]{font-size:14px;line-height:21px;min-height:110px;padding:0;background:transparent;color:var(--ui-text)}
body.beta #study-main .campus-compose-window .campus-form-actions{gap:8px}
body.beta #study-main .campus-compose-window .campus-button{border-radius:14px;min-height:44px;font-size:14px}
body.beta #study-main .campus-compose-window .campus-emoji-picker{font-size:13px}
body.beta #study-main .campus-comment{background:var(--ui-surface);padding:14px;border-radius:16px;margin:10px 0;border:0}
body.beta #study-main .campus-comment p{font-size:13px;line-height:18px}
body.beta #study-main .campus-comment .campus-avatar{width:28px;height:28px;min-width:28px}
body.beta #study-main .campus-comments h2{font-size:18px;font-weight:600;margin:18px 0 12px}
body.beta #study-main .campus-comments .campus-form{border:0;border-radius:14px;background:var(--ui-surface);padding:10px 12px;gap:8px}
body.beta #study-main .campus-comments textarea{font-size:13px;line-height:20px;min-height:28px;padding:4px 0;border:0;resize:none}
body.beta #study-main .campus-post-heading h1{font-size:28px;line-height:31px}
body.beta #study-main .campus-post-heading .campus-post-refresh{width:32px;height:32px;min-height:32px;border-radius:10px}
body.beta #study-main .campus-post-heading{margin:14px 0 18px}
body.beta #study-main .campus-post .campus-post-media img{border-radius:14px}
body.beta #study-main .campus-useful-search,body.beta #study-main .campus-discovery-search{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:14px;height:44px;min-height:44px;padding:0 14px;font-size:13px}
body.beta #study-main .campus-article-list{gap:10px}
body.beta #study-main .campus-article-list>button,body.beta #study-main .directory-entry{background:var(--ui-surface);border:0;border-radius:14px;padding:14px;font-size:13px}
body.beta #study-main .campus-empty,body.beta #study-main .study-empty{background:var(--ui-surface);border-radius:18px;padding:20px;font-size:13px}
body.beta #study-main .campus-article{background:var(--ui-surface);border-radius:20px;padding:18px;line-height:1.6}
body.beta #study-main .campus-discovery-tag{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:14px;padding:12px 14px;min-height:56px}

body.beta #study-main .campus-settings-panel{padding:0;background:transparent;border:0;border-radius:0;overflow:visible}
body.beta #study-main .campus-settings-layout.is-index .campus-settings-tabs{padding:0;gap:8px;background:transparent;border-radius:0}
body.beta #study-main .campus-settings-window{display:block}
body.beta #study-main .astra-settings-heading h2{font-size:28px;line-height:31px}
body.beta #study-main .banner-editor>*{order:0;flex-shrink:0}
body.beta #study-main .banner-editor .banner-editor-size,body.beta #study-main .banner-editor .banner-editor-footer>p{display:block}
body.beta #study-main .banner-editor .banner-editor-options{order:0}
body.beta #study-main .banner-editor .banner-editor-bottom{order:0}
body.beta #study-main .banner-editor .banner-editor-toolbar{order:0}
body.beta #study-main .banner-editor .banner-tool{box-shadow:none}
body.beta #study-main .banner-editor .banner-study-options button{box-shadow:none}
body.beta #study-main .banner-editor:focus{outline:none}
body.beta #study-main .astra-back{border-radius:8px}
body.beta #study-main .campus-settings-window .astra-settings-heading h2{font-size:28px;line-height:31px}
body.beta .astra-profile-settings{order:2;display:grid;place-items:center;width:42px;height:42px;min-height:42px;border:0;border-radius:14px;background:var(--ui-accent-soft);color:var(--ui-accent);padding:11px}
body.beta .astra-profile-settings svg{width:20px;height:20px}
body.beta #study-main .campus-compose-window .campus-composer{display:flex;flex-direction:column;background:transparent;border:0;padding:0;gap:14px}
body.beta #study-main .campus-compose-window .campus-composer-body{display:flex;flex-direction:column;gap:12px;padding:16px;background:var(--ui-surface);border-radius:18px}
body.beta #study-main .astra-composer-person{display:flex;align-items:center;gap:8px;font-size:13px}
body.beta #study-main .astra-composer-person .campus-avatar{width:28px;height:28px;min-width:28px;font-size:11px}
body.beta #study-main .campus-compose-window .campus-composer-body>label{width:100%;padding:0;margin:0}
body.beta #study-main .campus-compose-window .campus-composer-text{min-height:100px;height:auto;padding:0;margin:0;background:transparent;border:0;font-size:14px;line-height:21px;overflow:visible}
body.beta #study-main .campus-compose-window .campus-composer-photo{margin:0;padding:12px 16px;background:var(--ui-surface);border-radius:18px}
body.beta #study-main .campus-compose-window .campus-upload-preview{width:100%;max-width:100%;max-height:320px;object-fit:contain;border-radius:12px}
body.beta #study-main .campus-compose-window .campus-composer-toolbar{display:flex;flex-direction:column;gap:12px;padding:0;background:transparent;align-items:stretch}
body.beta #study-main .campus-compose-window .campus-composer-tools{display:flex;justify-content:space-between;width:100%;gap:10px;height:44px}
body.beta #study-main .campus-compose-window .campus-composer-tool,body.beta #study-main .campus-compose-window .campus-composer-tools summary{width:40px;height:40px;min-height:40px;padding:10px;color:var(--ui-accent);background:transparent;border-radius:12px}
body.beta #study-main .campus-compose-window .campus-composer-toolbar>.campus-button{width:100%;height:46px;min-height:46px;border-radius:14px;font-size:14px}
body.beta #study-main .astra-preview-link{align-self:flex-start;background:transparent;color:var(--ui-accent);border:0;padding:0;min-height:32px;font-size:13px;font-weight:600}
body.beta #study-main .campus-compose-window .campus-attachment{background:var(--ui-surface);padding:16px;border:0;border-radius:18px;gap:10px;margin:0}
body.beta #study-main .campus-compose-window .campus-attachment label{font-size:12px;font-weight:500}
body.beta #study-main .campus-compose-window .campus-attachment input{border:0;background:var(--ui-soft);border-radius:10px;padding:10px 12px;min-height:40px;font-size:13px;width:100%;box-sizing:border-box}
body.beta #study-main .campus-compose-window .campus-attachment legend{float:left;width:100%;font-size:16px;font-weight:600;padding:0 0 12px}
body.beta #study-main .campus-compose-window .campus-attachment small{font-size:11px;color:var(--ui-muted)}
body.beta #study-main .campus-emoji-picker>div{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:20px;padding:16px;box-shadow:0 12px 40px #19233a1a;max-width:calc(100vw - 40px);box-sizing:border-box}
body.beta #study-main .campus-sticker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.beta #study-main .campus-sticker-option{background:var(--ui-soft);padding:12px;border-radius:14px}
body.beta #study-main .campus-avatar-window .campus-form{background:transparent;padding:0;gap:16px}
body.beta #study-main .campus-avatar-window .campus-public-person{order:0;padding:24px;background:var(--ui-surface);border-radius:24px;flex-direction:column;gap:18px}
body.beta #study-main .campus-avatar-window .campus-public-person::after{content:"Предпросмотр";font-size:11px;color:var(--ui-muted)}
body.beta #study-main .campus-avatar-window .campus-form>p{order:1}
body.beta #study-main .campus-avatar-window .campus-file-label{order:2;min-height:48px;margin:0}
body.beta #study-main .campus-avatar-window [data-campus=remove-avatar]{order:3;min-height:44px;color:var(--ui-muted);font-size:13px}
body.beta #study-main .campus-avatar-window .campus-form>button[type=submit]{order:4}

/* Astra detail screens: scoped to the live settings host, preserving form state. */
body.beta #study-main [data-account-slot]>.beta-card{padding:0;border:0;background:transparent;box-shadow:none;margin:0}
body.beta #study-main .beta-card.astra-security-card {
  padding: 0 12px;
  border: 0;
  border-radius: 16px;
  background: var(--ui-surface);
}
body.beta #study-main .astra-security-card > button.astra-security-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 8px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ui-text);
  text-align: start;
  font-size: 14px;
}
body.beta #study-main .astra-security-row + .astra-security-row { border-top: 1px solid var(--ui-border); }
body.beta #study-main .astra-security-row[hidden] { display: none; }
body.beta #study-main .astra-security-row svg { width: 18px; height: 18px; color: var(--ui-muted); }
body.beta #study-main .astra-security-row:hover { background: var(--ui-soft); }
body.beta #study-main .astra-security-row:focus-visible { outline-offset: -2px; }
body.beta #study-main [data-account-slot=notifications]>.beta-card{background:var(--ui-surface);padding:20px;border-radius:20px}
body.beta #study-main #beta-notifications-description,body.beta #study-main #beta-notifications-status{font-size:13px;line-height:20px;margin:0 0 12px;color:var(--ui-muted)}
body.beta #study-main #beta-notifications-form{display:grid;gap:16px}
body.beta #study-main #beta-consent-label{font-size:12px;line-height:18px;align-items:flex-start;gap:10px}
body.beta #study-main #beta-notifications-toggle{min-height:46px;border-radius:14px;font-size:14px}
body.beta #study-main .lesson-detail{background:var(--ui-surface);border:0;border-radius:20px;padding:20px;box-shadow:none}
body.beta #study-main .lesson-detail-header{display:flex;flex-direction:column;gap:12px;padding:0;margin:0}
body.beta #study-main .lesson-detail-header>p{font-size:10px;line-height:15px;letter-spacing:.6px;text-transform:uppercase;color:var(--ui-muted);margin:0}
body.beta #study-main .lesson-detail-header h1{font-size:23px;line-height:28px;letter-spacing:-.4px;margin:0;order:1}
body.beta #study-main .lesson-detail-header .lesson-kind{order:2;align-self:flex-start;font-size:11px;line-height:16px;padding:5px 9px;border-radius:8px;margin:0}
body.beta #study-main .lesson-detail-time{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0;padding:0;border:0;background:transparent}
body.beta #study-main .lesson-detail-time>span:not(.lesson-time-divider):not(.lesson-duration){padding:14px;background:var(--ui-soft);border-radius:14px;display:grid;gap:6px}
body.beta #study-main .lesson-detail-time small{font-size:11px;color:var(--ui-muted)}
body.beta #study-main .lesson-detail-time strong{font-size:28px;line-height:32px;color:var(--ui-text)}
body.beta #study-main .lesson-time-divider{display:none}
body.beta #study-main .lesson-detail-time .lesson-duration{grid-column:1/-1;font-size:11px;color:var(--ui-muted)}
body.beta #study-main .lesson-detail-facts{display:grid;gap:16px;padding:0}
body.beta #study-main .lesson-detail-facts>div{padding:0;background:transparent;border:0;display:grid;gap:5px}
body.beta #study-main .lesson-detail-label{font-size:11px;color:var(--ui-muted)}
body.beta #study-main .lesson-detail-facts strong,body.beta #study-main .lesson-detail-facts p{font-size:14px;line-height:20px;margin:0;font-weight:500}
body.beta #study-main .astra-back{width:fit-content;max-width:100%;align-self:flex-start;justify-content:flex-start;padding:0;gap:6px;background:transparent;box-shadow:none}
body.beta #study-main .campus-avatar-window>h2{font-size:28px;line-height:31px;margin:16px 0 20px;letter-spacing:-.5px}
body.beta #study-main .campus-avatar-window .campus-form>.campus-muted{font-size:13px;line-height:20px;margin:0;padding:0;border-radius:0;background:transparent;color:var(--ui-muted)}
body.beta #study-main .campus-avatar-window .campus-file-label{display:flex;align-items:center;justify-content:center;padding:12px;font-size:14px;border:0;border-radius:14px;background:var(--ui-accent-soft);color:var(--ui-accent)}
body.beta #study-main .campus-avatar-window .campus-form>button[type=submit]{border-radius:14px;min-height:48px;font-size:14px}
body.beta #study-main .astra-notification-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
body.beta #study-main .astra-notification-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--ui-accent-soft);color:var(--ui-accent)}
body.beta #study-main .astra-notification-icon svg{width:22px;height:22px}
body.beta #study-main .astra-notification-badge{font-size:12px;font-weight:600;color:var(--ui-muted);background:var(--ui-soft);padding:6px 10px;border-radius:20px}
body.beta #study-main .astra-notification-badge[data-enabled=true]{background:#e6f5ef;color:#218367}
body.beta #study-main .astra-notifications-card h3{font-size:18px;line-height:24px;font-weight:600;margin:0 0 10px}
/* Study emerges at the role badges; explanation belongs to the identity line. */
body.beta .study-role-trigger{position:relative;display:inline-flex;align-items:center;gap:6px;border:0;padding:4px;background:transparent;color:var(--ui-muted);border-radius:8px;cursor:pointer;min-height:28px}
body.beta .campus-profile-name{position:relative}
body.beta .study-role-guide{position:relative;width:100%;margin:6px 0 10px;padding:0;box-sizing:border-box}
body.beta .study-role-mascot{position:absolute;right:calc(50% - 19px);bottom:calc(100% - 8px);width:38px;height:38px;pointer-events:none;transform-origin:50% 100%;animation:study-role-emerge 1.6s cubic-bezier(.2,.7,.2,1) both,study-role-hover 2.4s 1.6s ease-in-out 2}
body.beta .study-role-mascot svg{display:block;width:38px;height:38px}
body.beta .study-role-speech{position:relative;padding:0 20px 0 0;text-align:left;animation:study-role-explain .65s .85s both}
body.beta .study-role-speech p{margin:0;color:var(--ui-muted);font-size:11px;line-height:17px;font-weight:400}
body.beta .study-role-speech p strong{font-weight:600;color:var(--ui-text)}
body.beta .study-role-dismiss{position:absolute;top:-4px;right:-4px;border:0;background:transparent;color:var(--ui-muted);font-size:18px;line-height:24px;min-height:28px;width:28px;padding:0;cursor:pointer}
body.beta .campus-profile-content:has(.study-role-guide) .campus-profile-roles{flex-wrap:wrap}
body.beta .campus-profile-content:has(.study-role-guide) .campus-profile-roles .campus-role-tag>span{position:static;width:auto;height:auto;clip-path:none;font-size:10px;margin-left:4px;animation:study-role-label 1.2s .45s both}
body.beta .campus-profile-underlay .study-role-guide{display:none}
@keyframes study-role-emerge{0%{opacity:0;transform:translateY(30px) scale(.05) rotate(-25deg)}25%{opacity:1}65%{transform:translateY(-6px) scale(1.12) rotate(10deg)}100%{opacity:1;transform:translateY(0) scale(1) rotate(0)}}
@keyframes study-role-hover{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-4px) rotate(-6deg)}}
@keyframes study-role-label{from{opacity:0;max-width:0;margin-left:0}to{opacity:1;max-width:140px;margin-left:4px}}
@keyframes study-role-explain{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){body.beta .study-role-mascot,body.beta .study-role-speech,body.beta .campus-profile-content:has(.study-role-guide) .campus-role-tag>span{animation:none}}

body.beta .study-role-trigger .study-role-mascot{display:none}
body.beta .campus-profile-content:has(.study-role-guide) .study-role-trigger .study-role-mascot{display:block}

body.beta .study-role-guide{margin:12px 0}
body.beta .study-role-speech{padding:12px 28px 12px 14px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:16px;box-shadow:0 4px 16px #19233a08}
body.beta .study-role-speech::before{content:"";position:absolute;top:-6px;left:62%;width:10px;height:10px;background:var(--ui-surface);border-top:1px solid var(--ui-border);border-left:1px solid var(--ui-border);transform:rotate(45deg)}
body.beta .study-role-speech p{font-size:12px;line-height:18px}
body.beta .study-role-dismiss{top:3px;right:2px}

body.beta .study-role-guide{position:relative;align-self:stretch;margin:6px 0;padding-left:44px;min-height:48px;box-sizing:border-box}
body.beta .study-role-guide .study-role-mascot{display:block;position:absolute;left:0;right:auto;bottom:auto;top:12px;width:40px;height:40px;animation:study-role-flight 1.2s cubic-bezier(.22,.7,.25,1) both}
body.beta .study-role-guide .study-role-mascot svg{width:40px;height:40px}
body.beta .study-role-speech{pointer-events:auto;position:relative;padding:14px 26px 14px 14px;border:1px solid #dce3f3;border-radius:18px;background:var(--ui-surface);box-shadow:0 12px 32px #19233a12;animation:study-role-explain .45s .95s both}
body.beta .study-role-speech::before{left:-6px;top:24px;border-top:0;border-bottom:1px solid #dce3f3;border-left:1px solid #dce3f3;transform:rotate(45deg)}
body.beta .study-role-speech p{font-size:12px;line-height:18px}
@keyframes study-role-flight{0%{left:65%;top:-48px;opacity:0;transform:scale(.1) rotate(-18deg)}20%{opacity:1}55%{top:-38px;transform:scale(1.1) rotate(8deg)}100%{left:0;top:12px;opacity:1;transform:scale(1) rotate(0)}}
@media(prefers-reduced-motion:reduce){body.beta .study-role-guide .study-role-mascot,body.beta .study-role-speech{animation:none}}

/* Measured against Astra profile frame ZmUsg (content, not device status bar). */
html:not([data-theme=dark]) body.beta .study-wordmark{letter-spacing:0}
html:not([data-theme=dark]) body.beta .study-top{margin-bottom:20px}
html:not([data-theme=dark]) body.beta .campus-profile-header{overflow:visible}
html:not([data-theme=dark]) body.beta .campus-profile-cover{overflow:hidden;border-radius:24px 24px 0 0}
html:not([data-theme=dark]) body.beta .campus-profile-content{padding:0 20px 20px}
html:not([data-theme=dark]) body.beta .campus-profile-title{gap:5px;flex-wrap:wrap}
html:not([data-theme=dark]) body.beta .campus-profile-title h1{font-size:22px;line-height:27px;letter-spacing:-.8px}
html:not([data-theme=dark]) body.beta .campus-profile-name{gap:6px}
html:not([data-theme=dark]) body.beta .campus-social-identity{gap:16px;margin-top:10px}
html:not([data-theme=dark]) body.beta .campus-profile-bio{font-size:14px;line-height:21px;margin:0}
html:not([data-theme=dark]) body.beta .campus-social-counts{gap:30px;margin:0;line-height:22px}
html:not([data-theme=dark]) body.beta .campus-social-counts strong{font-size:18px;font-weight:700}
html:not([data-theme=dark]) body.beta .campus-registration{margin:0;font-size:11px;line-height:16px;color:var(--ui-muted);opacity:1}
html:not([data-theme=dark]) body.beta .campus-profile-edit-actions{margin-top:16px;width:100%}
html:not([data-theme=dark]) body.beta .campus-profile-edit-actions .campus-profile-edit{flex:1;min-width:0;height:46px;min-height:46px;font-size:14px;padding:0 12px}
html:not([data-theme=dark]) body.beta .astra-profile-settings{flex:0 0 46px;width:46px;height:46px;min-height:46px;padding:13px}
html:not([data-theme=dark]) body.beta .campus-role-tag{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 5px;box-sizing:border-box;border-radius:6px;background:#edf2fb}
html:not([data-theme=dark]) body.beta .campus-role-tag .campus-icon{width:14px;height:14px}
html:not([data-theme=dark]) body.beta .campus-profile-title .campus-profile-roles{gap:3px;padding:0;min-height:24px}
html:not([data-theme=dark]) body.beta .campus-profile-tabs{margin:20px 0}
html:not([data-theme=dark]) body.beta .campus-profile-tabs .campus-chip{flex:1;min-width:0;white-space:nowrap}
html:not([data-theme=dark]) body.beta .campus-post-text{font-size:13px;line-height:20px}
html:not([data-theme=dark]) body.beta .campus-post h3{font-size:17px;line-height:22px;font-weight:600}
html:not([data-theme=dark]) body.beta .campus-post .campus-author-name strong{font-size:13px;font-weight:600}
html:not([data-theme=dark]) body.beta .campus-post time{font-size:11px;line-height:16px}
body.beta .study-role-speech{overflow:visible}
body.beta .study-role-speech p{max-height:min(320px,45vh);overflow:auto;overscroll-behavior:contain}

html:not([data-theme=dark]) body.beta .semester-control{height:44px;padding:0 14px;box-sizing:border-box}
html:not([data-theme=dark]) body.beta .semester-control>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html:not([data-theme=dark]) body.beta .semester-control select{font-size:14px;font-weight:600;padding:0;border:0;min-height:42px;width:100%;background:transparent}
html:not([data-theme=dark]) body.beta .course-item[open]>summary{background:#eef3ff}
html:not([data-theme=dark]) body.beta .task-work>strong{font-size:15px;line-height:20px;font-weight:600}
html:not([data-theme=dark]) body.beta .lesson-time{flex:0 0 43px;width:43px;padding-top:15px;gap:5px}
html:not([data-theme=dark]) body.beta .lesson-time strong{font-size:13px;line-height:18px}
html:not([data-theme=dark]) body.beta .lesson-time>span{font-size:11px;line-height:16px;color:var(--ui-muted)}
html:not([data-theme=dark]) body.beta .lesson-body{border:0;gap:10px}
html:not([data-theme=dark]) body.beta .lesson-body .lesson-title{font-size:15px;line-height:21px;font-weight:600}

/* Individual day tiles from the approved 390px schedule. */
html:not([data-theme=dark]) body.beta .day-strip{padding:0;background:transparent;border:0;border-radius:0;gap:6px}
body.beta .day-strip button{height:70px;min-height:70px;justify-content:center;gap:7px;padding:8px 3px;border-radius:16px}
body.beta .day-strip button>span{font-size:11px;line-height:13px;font-weight:500;text-transform:capitalize}
body.beta .day-strip button>strong{font-size:18px;line-height:22px;font-weight:600}
html:not([data-theme=dark]) body.beta .day-strip button{border-radius:16px}
/* Account fields and media match qSUfO rather than compact feed typography. */
body.beta #study-main .campus-settings-content .campus-form{gap:18px}
body.beta #study-main .campus-settings-content .campus-form label{font-size:13px;font-weight:600}
body.beta #study-main .campus-settings-content input:not([type=checkbox]),body.beta #study-main .campus-settings-content textarea{font-size:15px;line-height:22px;padding:14px;min-height:50px}
body.beta #study-main .astra-account-media .campus-profile-cover{height:112px;aspect-ratio:auto}
body.beta #study-main .astra-account-photo{gap:14px}
body.beta #study-main .astra-account-photo .campus-avatar{width:56px;height:56px;flex-shrink:0}
body.beta #study-main .astra-account-photo>div{gap:8px;font-size:15px}
body.beta #study-main .astra-account-photo .text-button{font-size:13px}
/* L1dUN: preview is its own card; actions remain on the page surface. */
body.beta #study-main .campus-avatar-window .astra-avatar-form{padding:0;background:transparent;border:0;gap:20px}
body.beta #study-main .astra-avatar-preview{display:flex;flex-direction:column;align-items:center;gap:18px;padding:24px;border-radius:24px;background:var(--ui-surface)}
body.beta #study-main .astra-avatar-preview>span{font-size:12px;color:var(--ui-muted)}
body.beta #study-main .campus-avatar-window .campus-avatar-large{width:176px;height:176px;min-width:176px}
body.beta #study-main .astra-avatar-form .campus-file-label{min-height:48px;font-size:14px;font-weight:600}
body.beta #study-main .astra-avatar-form>.text-button{height:44px;font-size:13px;color:var(--ui-muted)}
body.beta #study-main .astra-avatar-form .astra-cancel{min-height:40px}
body.beta #study-main .banner-editor-options>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none}
body.beta #study-main .banner-editor-options>summary::-webkit-details-marker{display:none}
body.beta #study-main .banner-current-stroke{display:flex;align-items:center;gap:6px;color:var(--ui-accent);font-size:12px;white-space:nowrap}
body.beta #study-main .banner-current-stroke i{width:10px;height:10px;border-radius:50%;border:1px solid var(--ui-border)}
body.beta #study-main .banner-current-stroke svg{width:14px;height:14px}
body.beta #study-main .banner-editor-options[open] .banner-current-stroke svg{transform:rotate(90deg)}
/* Keep fit/zoom controls on one line; legacy mobile size label was 100% wide. */
body.beta #study-main .banner-editor-size{width:auto;flex:0 0 auto;text-align:left}
body.beta #study-main .banner-editor-zoom{flex:0 0 auto;margin-left:0}
body.beta #study-main .banner-editor-zoom button{flex:0 0 auto;white-space:nowrap}
body.beta #study-main .astra-avatar-preview .campus-public-person{padding:0;background:transparent;border-radius:0}
body.beta #study-main .astra-avatar-preview .campus-public-person::after{content:none}
body.beta #study-main .astra-avatar-form .astra-cancel{order:5}
/* Uqckg/JyXv7 composer typography and Study picker geometry. */
body.beta #study-main .campus-compose-window h1{font-size:26px;letter-spacing:-.7px}
body.beta #study-main .astra-composer-person{gap:10px}
body.beta #study-main .astra-composer-person .campus-avatar{width:32px;height:32px;min-width:32px}
body.beta #study-main .campus-compose-window [data-composer-text]{font-size:15px;line-height:23px}
body.beta #study-main .campus-sticker-grid{gap:10px}
body.beta #study-main .campus-sticker-option{height:94px;min-height:94px;padding:10px;border-radius:12px;gap:10px;display:flex;flex-direction:column;align-items:center;justify-content:center}
body.beta #study-main .campus-sticker-option small{font-size:12px;font-weight:400;color:var(--ui-muted)}
body.beta #study-main .campus-sticker-option .study-sticker{width:48px;height:45px}
/* JyXv7 is a full selection screen, retaining the existing draft underneath. */
body.beta #study-main .campus-compose-window .campus-emoji-picker>.astra-sticker-screen{position:fixed;inset:0;z-index:70;width:100%;max-width:none;max-height:none;overflow-y:auto;box-sizing:border-box;padding:calc(8px + var(--app-safe-top,0px)) 20px calc(24px + var(--app-safe-bottom,0px));border:0;border-radius:0;box-shadow:none;background:var(--ui-bg);display:flex;flex-direction:column;gap:16px}
body.beta #study-main .astra-sticker-screen>.astra-screen-header{margin:0}
body.beta #study-main .astra-sticker-screen>h2{font-size:26px;line-height:31px;letter-spacing:-.7px;margin:0}
body.beta #study-main .astra-sticker-panel{background:var(--ui-surface);border-radius:20px;padding:18px;display:flex;flex-direction:column;gap:16px}
body.beta #study-main .astra-sticker-screen .campus-sticker-heading{margin:0}
body.beta #study-main .astra-sticker-screen .campus-sticker-heading strong{font-size:20px;font-weight:600}
body.beta #study-main .astra-sticker-screen .astra-sticker-panel>p{font-size:12px;line-height:17px;color:var(--ui-muted);margin:0}
body.beta #study-main .astra-sticker-return{height:46px;min-height:46px;width:100%;background:var(--ui-accent-soft);color:var(--ui-accent);border:0;border-radius:14px;font-size:14px;font-weight:600}
@media(min-width:700px){body.beta #study-main .campus-compose-window .campus-emoji-picker>.astra-sticker-screen{max-width:700px;left:50%;transform:translateX(-50%);border-inline:1px solid var(--ui-border)}}
body.beta #study-main .is-inline .astra-sticker-panel{padding:0;background:transparent}

/* JN2Pv: compact comment cards and the reference's inline send control. */
body.beta #study-main .campus-comment{display:flex;flex-direction:column;gap:8px}
body.beta #study-main .campus-comment .campus-post-top{margin:0;padding-right:28px}
body.beta #study-main .campus-comment .campus-author{min-height:24px;padding:0}
body.beta #study-main .campus-comment .campus-author strong{font-size:14px;font-weight:600}
body.beta #study-main .campus-comment .campus-post-text{margin:0;overflow-wrap:anywhere}
body.beta #study-main .astra-comment-time{font-size:10px;line-height:14px;color:var(--ui-muted)}
body.beta #study-main .campus-comment-menu{right:8px;top:10px}
body.beta #study-main .campus-comments>.campus-comment-compose{min-height:48px;padding:0 14px;gap:10px;border-radius:16px}
body.beta #study-main .campus-comment-compose textarea{height:34px;min-height:34px;padding:7px 0;line-height:20px}
body.beta #study-main .campus-comment-compose>button[type=submit]{width:32px;min-width:32px;height:44px;min-height:44px;background:transparent;color:var(--ui-accent);border-radius:10px}
body.beta #study-main .campus-comment-compose>button[type=submit] svg{width:18px;height:18px}
body.beta #study-main .campus-comment-compose>button[type=submit]:hover{background:var(--ui-accent-soft)}
body.beta #study-main .campus-comments{padding:0;border:0}
body.beta #study-main .campus-comments>.section-line{margin:0 0 18px}
body.beta #study-main .campus-comments h2{margin:0;line-height:24px}
body.beta #study-main .campus-post-heading h1{font-size:27px;letter-spacing:-.8px}
/* NpWXk: notification status, storage mode and explicit consent. */
body.beta #study-main .astra-notifications-card{display:flex;flex-direction:column;gap:16px;padding:20px;border-radius:20px}
body.beta #study-main .astra-notification-heading{margin:0}
body.beta #study-main .astra-notification-icon{width:28px;height:28px;background:transparent;border-radius:0}
body.beta #study-main .astra-notification-icon svg{width:28px;height:28px}
body.beta #study-main .astra-notifications-card h3{margin:0}
body.beta #study-main .campus-settings-content #beta-notifications-description,
body.beta #study-main .campus-settings-content #beta-notifications-status{margin:0;font-size:13px;line-height:20px;color:var(--ui-muted)}
body.beta #study-main .astra-notification-mode{display:flex;align-items:center;gap:12px;padding:14px;border-radius:14px;background:var(--ui-accent-soft)}
body.beta #study-main .astra-notification-channels{display:flex;flex-direction:column;gap:8px}
body.beta #study-main .astra-notification-channels[hidden]{display:none}
body.beta #study-main .astra-notification-channels>span{font-size:13px;font-weight:600}
body.beta #study-main .astra-notification-channels>div{display:flex;gap:4px;padding:4px;border-radius:14px;background:var(--ui-accent-soft)}
body.beta #study-main .astra-notification-channels button{flex:1 1 0;min-width:0;min-height:40px;padding:0 8px;border:0;border-radius:10px;background:transparent;color:inherit;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
body.beta #study-main .astra-notification-channels button[aria-pressed="true"]{background:var(--ui-accent);color:#fff}
body.beta #study-main .astra-notification-channels button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
body.beta #study-main .astra-notification-mode>span:last-child{display:flex;flex-direction:column;gap:4px;min-width:0}
body.beta #study-main .astra-notification-mode svg{width:24px;height:24px;color:var(--ui-accent)}
body.beta #study-main .astra-notification-mode strong{font-size:14px;font-weight:600}
body.beta #study-main .astra-notification-mode small{font-size:12px;color:var(--ui-accent)}
body.beta #study-main #beta-notifications-form{display:flex;flex-direction:column;gap:16px;margin:0}
body.beta #study-main #beta-consent-label{display:flex;align-items:flex-start;gap:10px;margin:0}
body.beta #study-main #beta-consent-label>span{display:flex;flex-direction:column;gap:7px;font-size:13px;line-height:20px;color:var(--ui-muted)}
body.beta #study-main #beta-consent-label strong{font-size:14px;font-weight:600;color:var(--ui-text)}
body.beta #study-main #beta-consent{width:22px;height:22px;min-width:22px;margin:0;accent-color:var(--ui-accent)}
body.beta #study-main #beta-notifications-toggle{min-height:48px;border-radius:14px;font-size:14px;font-weight:600;background:var(--ui-accent);color:var(--ui-on-accent,#fff)}
body.beta #study-main #beta-notifications-toggle[data-enabled=true]{background:var(--ui-accent-soft);color:var(--ui-accent)}
/* FeyBp: private study screen, separate from the public profile header. */
body.beta #study-main .astra-study-heading{display:flex;flex-direction:column;gap:18px;margin-bottom:18px}
body.beta #study-main .astra-study-heading h1{font-size:27px;line-height:33px;letter-spacing:-.8px;margin:0}
body.beta #study-main .astra-study-private{display:flex;align-items:center;gap:8px;color:var(--ui-accent);font-size:13px;margin:18px 0}
body.beta #study-main .astra-study-private svg{width:17px;height:17px}
body.beta #study-main .astra-study-record{background:var(--ui-surface);padding:18px;border-radius:20px;margin-bottom:14px}
body.beta #study-main .astra-study-record h2{font-size:17px;font-weight:600;margin:0 0 16px}
body.beta #study-main .astra-study-record .person-fields{margin:0;gap:0}
body.beta #study-main .astra-study-record .person-fields>div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--ui-border)}
body.beta #study-main .astra-study-record dt{font-size:12px;color:var(--ui-muted)}
body.beta #study-main .astra-study-record dd{font-size:13px;font-weight:500;text-align:right;margin:0;overflow-wrap:anywhere;min-width:0}
body.beta #study-main .astra-study-record .passport-link{font-size:13px;margin:12px 0 0;padding:0;min-height:32px}
body.beta #study-main .astra-study-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}
body.beta #study-main .astra-study-metrics section{display:flex;flex-direction:column;gap:10px;background:var(--ui-surface);border-radius:16px;padding:16px;min-width:0}
body.beta #study-main .astra-study-metrics span{font-size:11px;color:var(--ui-muted)}
body.beta #study-main .astra-study-metrics strong{font-size:24px;font-weight:600;overflow-wrap:anywhere}
body.beta #study-main .astra-study-updates{padding:18px;background:var(--ui-surface);border-radius:20px}
body.beta #study-main .astra-study-updates h2{font-size:16px;font-weight:600;margin:0 0 14px}
body.beta #study-main .astra-study-updates .update-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0}
body.beta #study-main .astra-study-updates .update-row>div{display:flex;flex-direction:column;gap:4px}
body.beta #study-main .astra-study-updates strong{font-size:14px;font-weight:600}
body.beta #study-main .astra-study-updates small{font-size:12px;color:var(--ui-muted)}
body.beta #study-main .astra-study-mode-note{font-size:13px;line-height:20px;color:var(--ui-muted);margin:18px 0}
body.beta #study-main .astra-study-mode-link{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--ui-surface);color:var(--ui-accent);border-radius:14px;padding:14px;font-size:14px;font-weight:600;margin:16px 0}
body.beta #study-main .astra-study-mode-link svg{width:18px;height:18px}
body.beta #study-main .astra-study-heading+.campus-profile-tabs .campus-chip{font-size:12px;font-weight:600}
html:not([data-theme=dark]) body.beta #study-main .campus-profile-tabs .campus-chip[aria-pressed=true]{color:var(--ui-accent);background:var(--ui-surface)}
/* agpg2: settings mode selection; onboarding keeps its own presentation. */
body.beta #study-main .astra-storage-settings{display:flex;flex-direction:column;gap:16px}
body.beta #study-main .astra-storage-current{font-size:13px;line-height:20px;color:var(--ui-muted);margin:0}
body.beta #study-main .astra-storage-keep{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:-8px}
body.beta #study-main .astra-storage-keep p{font-size:13px;line-height:20px;color:var(--ui-muted);margin:0}
body.beta #study-main .astra-storage-keep button{min-height:44px;padding:0;background:none;color:var(--ui-accent);font-size:14px;font-weight:600}
body.beta #study-main .astra-storage-keep button:disabled{opacity:.65}
body.beta #study-main .astra-storage-settings fieldset{display:flex;flex-direction:column;gap:12px;border:0;padding:0;margin:0;min-width:0}
body.beta #study-main .astra-storage-option{position:relative;display:block;margin:0}
body.beta #study-main .astra-storage-option input{position:absolute;opacity:0;width:1px;height:1px}
body.beta #study-main .astra-storage-option-body{display:flex;flex-direction:column;gap:12px;padding:18px;background:var(--ui-surface);border:0;outline:1px solid var(--ui-border);outline-offset:-.5px;border-radius:18px}
body.beta #study-main .astra-storage-option-top{display:flex;justify-content:space-between;align-items:center;color:var(--ui-accent)}
body.beta #study-main .astra-storage-option-top svg{width:24px;height:24px}
body.beta #study-main .astra-storage-option-top i{width:20px;height:20px;border:1px solid var(--ui-border);border-radius:50%;box-sizing:border-box}
body.beta #study-main .astra-storage-option-body strong{font-size:18px;font-weight:600}
body.beta #study-main .astra-storage-option-body>span:last-child{font-size:13px;line-height:20px;color:var(--ui-muted)}
body.beta #study-main .astra-storage-option input:checked+.astra-storage-option-body{background:var(--ui-surface);outline:2px solid var(--ui-accent);outline-offset:-1px;padding:18px}
body.beta #study-main .astra-storage-option input:checked+.astra-storage-option-body i{border:6px solid var(--ui-accent);background:var(--ui-surface)}
body.beta #study-main .astra-storage-option input:focus-visible+.astra-storage-option-body{outline:2px solid var(--ui-accent);outline-offset:3px}
body.beta #study-main .astra-storage-option input:disabled+.astra-storage-option-body{opacity:.65}
body.beta #study-main .astra-storage-settings aside{padding:16px;border-radius:16px;background:var(--ui-accent-soft)}
body.beta #study-main .astra-storage-settings aside strong{font-size:14px;font-weight:600}
body.beta #study-main .astra-storage-settings aside p{font-size:13px;line-height:20px;color:var(--ui-muted);margin:8px 0 0}
body.beta #study-main .astra-storage-settings>button{min-height:48px;border-radius:14px;font-size:14px;font-weight:600;margin:0}
body.beta #study-main .astra-storage-error{font-size:13px;line-height:20px;color:var(--ui-danger);margin:0}
html:not([data-theme=dark]) body.beta #study-main .astra-storage-settings aside{background:#fff0df;border-radius:14px}
html:not([data-theme=dark]) body.beta #study-main .astra-storage-settings aside strong{color:#96531e}
body.beta #study-main .astra-storage-settings aside p{margin-top:12px}
body.beta #study-main .astra-storage-settings>.astra-cancel{background:var(--ui-accent-soft);color:var(--ui-accent)}
/* HM21c / Ibthi: explicit, scoped deletion confirmation screens. */
body.beta #study-main .astra-delete-screen{display:flex;flex-direction:column;gap:20px}
body.beta #study-main .astra-delete-heading{display:flex;flex-direction:column;gap:20px}
body.beta #study-main .astra-delete-heading h1{font-size:27px;line-height:33px;letter-spacing:-.8px;margin:0}
body.beta #study-main .astra-delete-card{display:flex;flex-direction:column;gap:16px;padding:20px;border-radius:20px;background:var(--ui-surface)}
body.beta #study-main .astra-delete-warning{color:#a44545;display:flex}
body.beta #study-main .astra-delete-warning svg{width:28px;height:28px}
body.beta #study-main .astra-delete-card h2{font-size:18px;font-weight:600;line-height:24px;margin:0}
body.beta #study-main .astra-delete-card ul{display:flex;flex-direction:column;gap:12px;list-style:none;padding:0;margin:0}
body.beta #study-main .astra-delete-card li{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:20px}
body.beta #study-main .astra-delete-card li svg{width:16px;height:16px;flex:0 0 16px;color:#a44545;margin-top:2px}
body.beta .astra-delete-retention{font-size:12px;line-height:18px;color:var(--ui-muted);margin:0}
body.beta #study-main .astra-delete-preserved{background:var(--ui-accent-soft);border-radius:14px;padding:16px}
body.beta #study-main .astra-delete-preserved strong{font-size:15px;font-weight:600}
body.beta #study-main .astra-delete-preserved p{font-size:13px;line-height:20px;color:var(--ui-muted);margin:12px 0 0}
body.beta #study-main .astra-delete-check{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:20px;margin:0}
body.beta #study-main .astra-delete-check input{width:22px;height:22px;min-width:22px;margin:0;accent-color:var(--ui-accent)}
body.beta #study-main .astra-delete-screen>.campus-button{width:100%;min-height:48px;border-radius:14px;font-size:14px;font-weight:600;margin:0}
body.beta #study-main .astra-delete-cancel{background:var(--ui-accent);color:var(--ui-on-accent,#fff)}
body.beta #study-main .astra-delete-confirm{background:#fcecec;color:#a44545}

/* XtVfI: compact desktop settings navigation and side-by-side account media. */
@media(min-width:1000px){
 body.beta #study-main .campus-settings-layout:not(.is-index){grid-template-columns:220px minmax(0,1fr);column-gap:24px}
 body.beta #study-main .campus-settings-layout:not(.is-index) .campus-settings-tabs{gap:7px}
 body.beta #study-main .campus-settings-layout:not(.is-index) .campus-setting-link{height:46px;min-height:46px;padding:0 14px;border-radius:12px;box-shadow:none}
 body.beta #study-main .campus-settings-layout:not(.is-index) .campus-setting-link[aria-current=page]{background:var(--ui-accent-soft);color:var(--ui-accent)}
 body.beta #study-main .campus-settings-layout:not(.is-index) .astra-setting-copy small,
 body.beta #study-main .campus-settings-layout:not(.is-index) .campus-setting-link>.campus-icon:last-child{display:none}
 body.beta #study-main .campus-settings-layout:not(.is-index) .astra-study-link{background:transparent;font-size:12px;margin-top:0}
 body.beta #study-main .campus-settings-layout:not(.is-index) .astra-study-link .campus-study-sticker{display:none}
}
@media(min-width:1200px){
 body.beta #study-main .campus-settings-window{max-width:1240px}
 body.beta #study-main .campus-settings-panel[data-section=account] .campus-settings-content{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px 24px;align-items:start}
 body.beta #study-main .campus-settings-panel[data-section=account] .astra-account-media{grid-column:1;grid-row:1 / span 2}
 body.beta #study-main .campus-settings-panel[data-section=account] .campus-form,
 body.beta #study-main .campus-settings-panel[data-section=account] .astra-cancel{grid-column:2}
 body.beta #study-main .campus-settings-panel[data-section=account] .campus-status{grid-column:1/-1}
}

@media(min-width:1000px){
 body.beta #study-main .campus-settings-layout:not(.is-index){height:auto;max-height:none;align-items:start}
 body.beta #study-main .campus-settings-layout:not(.is-index) .campus-settings-tabs,
 body.beta #study-main .campus-settings-layout:not(.is-index) .campus-settings-content{height:auto;max-height:none;overflow:visible;align-self:start}
 body.beta #study-main .campus-settings-layout:not(.is-index) .campus-setting-link{opacity:1;flex-shrink:0}
 body.beta #study-main .campus-settings-panel[data-section=account] .campus-form{max-width:none;width:100%}
}
/* Pen DVi6K / t8xitE: editor subpages retain the existing canvas and history. */
body.beta #study-main .banner-editor:has(.banner-editor-options[open])> :not(.astra-screen-header):not(.banner-editor-options),
body.beta #study-main .banner-editor:has([data-banner-confirm]:not([hidden]))> :not(.astra-screen-header):not([data-banner-confirm]){display:none}
body.beta #study-main .banner-editor-options[open]{background:transparent;border-radius:0}
body.beta #study-main .banner-editor-options[open]>summary{display:none}
body.beta #study-main .banner-editor-options[open] .banner-drawing-settings{padding:0;gap:20px}
body.beta #study-main .astra-stroke-preview{display:flex;align-items:center;flex-direction:column;gap:18px;padding:28px;background:var(--ui-surface);border-radius:18px;font-size:13px;color:var(--ui-muted)}
body.beta #study-main .astra-stroke-preview i{display:block;width:180px;max-width:100%;border-radius:99px}
body.beta #study-main .banner-editor-options[open] fieldset{border:0;padding:0;margin:0;min-width:0}
body.beta #study-main .banner-editor-options[open] legend{font-size:16px;font-weight:600;margin-bottom:16px;color:var(--ui-text)}
body.beta #study-main .banner-editor-options[open] .banner-editor-widths button{height:58px;min-height:58px;background:var(--ui-surface);border:0;border-radius:12px}
body.beta #study-main .banner-editor-options[open] .banner-editor-widths button[aria-pressed=true]{background:var(--ui-accent-soft);outline:2px solid var(--ui-accent);outline-offset:-2px}
body.beta #study-main .banner-editor-options[open] .banner-editor-colors{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
body.beta #study-main .banner-editor-options[open] .banner-editor-colors legend{float:none}
body.beta #study-main .banner-editor-options[open] .banner-editor-colors button{width:100%;height:auto;aspect-ratio:1;min-height:36px;border-radius:50%}
body.beta #study-main .banner-editor-options[open] .banner-editor-custom{grid-column:1/-1;width:100%;height:48px;display:flex;align-items:center;justify-content:space-between;border-radius:12px;background:var(--ui-surface);padding:14px;box-sizing:border-box}
body.beta #study-main .astra-stroke-note{font-size:13px;line-height:20px;color:var(--ui-muted);margin:0}
body.beta #study-main .astra-stroke-done,
body.beta #study-main .banner-editor-confirm>button:not(.astra-back){width:100%;height:48px;min-height:48px;border:0;border-radius:14px;background:var(--ui-accent);color:var(--ui-on-accent);font-size:14px;font-weight:600}
body.beta #study-main .banner-editor-confirm:not([hidden]){display:flex;flex-direction:column;gap:20px;padding:0;border:0;background:transparent;margin:0}
body.beta #study-main .astra-banner-unsaved{display:flex;flex-direction:column;align-items:start;gap:14px;background:var(--ui-surface);border-radius:20px;padding:20px}
body.beta #study-main .astra-banner-unsaved svg{width:28px;height:28px;color:var(--ui-accent)}
body.beta #study-main .astra-banner-unsaved strong{font-size:16px}
body.beta #study-main .astra-banner-unsaved p{font-size:13px;line-height:20px;color:var(--ui-muted);margin:0}
body.beta #study-main .banner-editor-confirm>[data-banner-action=discard]{background:var(--ui-accent-soft);color:var(--ui-accent)}
body.beta #study-main .banner-editor-options[open] legend{float:none;width:100%;line-height:20px;margin:0 0 16px}
body.beta #study-main .banner-editor-options[open] .banner-editor-custom{margin:0;border:0;gap:10px;font-size:13px}
body.beta #study-main .banner-editor-options[open] .banner-editor-custom>span{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
body.beta #study-main .banner-editor-options[open] .banner-editor-custom output{color:var(--ui-accent);font-size:13px;white-space:nowrap}
body.beta #study-main .banner-editor-options[open] .banner-editor-custom input{position:absolute;inset:0}
body.beta #study-main .banner-editor-confirm:not([hidden]){position:static;box-shadow:none;border-radius:0;order:initial}
body.beta #study-main .banner-editor-confirm>button{flex:0 0 auto;background-image:none}
body.beta #study-main .banner-editor-confirm>.astra-back{height:32px;min-height:32px;width:auto;align-self:start;background:transparent;color:var(--ui-accent)}
body.beta #study-main .banner-editor-confirm>button[data-banner-action=discard]{background:var(--ui-accent-soft);color:var(--ui-accent)}
/* ImPDM: draft preview is a separate screen with independent post/poll cards. */
body.beta #study-main .astra-preview-window{display:flex;flex-direction:column;gap:16px}
body.beta #study-main .astra-preview-window .astra-screen-header,
body.beta #study-main .astra-preview-window .campus-heading{margin:0}
body.beta #study-main .astra-preview-window h1{font-size:26px;line-height:31px;letter-spacing:-.7px}
body.beta #study-main .astra-preview-window>.campus-post{display:flex;flex-direction:column;gap:14px;margin:0;padding:18px;border:0;border-radius:20px;background:var(--ui-surface)}
body.beta #study-main .astra-preview-window>.campus-post>*{margin:0}
body.beta #study-main .astra-preview-window>.campus-post .campus-author{opacity:1}
body.beta #study-main .astra-preview-poll{padding:16px;border-radius:18px;background:var(--ui-surface)}
body.beta #study-main .astra-preview-poll .campus-poll{margin:0;padding:0;border:0;background:transparent}
body.beta #study-main .astra-preview-window>.campus-form-actions{display:flex;flex-direction:column;gap:12px;margin:0;padding:0}
body.beta #study-main .astra-preview-window>.campus-form-actions>.campus-button{width:100%;height:46px;min-height:46px;border-radius:14px}
body.beta #study-main .astra-preview-window>.campus-form-actions>.campus-secondary{background:var(--ui-accent-soft);color:var(--ui-accent)}
body.beta #study-main .astra-preview-poll .campus-poll{display:flex;flex-direction:column;gap:12px}
body.beta #study-main .astra-preview-poll .campus-poll h3{font-size:16px;line-height:21px;font-weight:600;margin:0}
body.beta #study-main .astra-preview-poll .campus-poll-option{display:flex;align-items:center;justify-content:space-between;gap:10px;height:44px;min-height:44px;padding:12px;border:0;border-radius:10px;background:var(--ui-soft);color:var(--ui-text);font-size:13px;opacity:1}
body.beta #study-main .astra-preview-poll .campus-poll-option strong{font-size:12px;font-weight:400;color:var(--ui-muted)}
body.beta #study-main .astra-preview-poll .campus-poll-option progress{display:none}
body.beta #study-main .astra-preview-poll .campus-poll-meta,
body.beta #study-main .astra-preview-poll .campus-muted{font-size:12px;line-height:17px;color:var(--ui-muted);margin:0}
/* Uqckg / V4isS: attached photo belongs to the text card; compact poll fields. */
body.beta #study-main .campus-compose-window:not(.astra-preview-window) h1{font-size:26px;line-height:31px;letter-spacing:-.7px}
body.beta #study-main .campus-compose-window .campus-composer-text{font-size:15px;line-height:23px;min-height:69px}
body.beta #study-main .campus-compose-window .campus-composer-body>.campus-composer-photo{width:100%;padding:0;margin:0;background:transparent;display:flex;flex-direction:column;gap:12px}
body.beta #study-main .campus-compose-window .campus-composer-photo .campus-upload-preview{height:112px;max-height:112px;object-fit:cover;border-radius:12px}
body.beta #study-main .campus-compose-window .campus-composer-photo .text-button{font-size:12px;font-weight:400;line-height:16px;color:var(--ui-muted);padding:0;min-height:24px;align-self:start}
body.beta #study-main .campus-compose-window .campus-attachment label{font-size:11px;font-weight:400;color:var(--ui-muted);gap:6px}
body.beta #study-main .campus-compose-window .campus-attachment input{padding:12px;min-height:40px;font-size:13px;line-height:18px;color:var(--ui-text)}
body.beta #study-main .campus-compose-window .campus-attachment .campus-inline-actions{gap:6px;flex-wrap:wrap}
body.beta #study-main .campus-compose-window .campus-attachment .text-button{font-size:12px;min-height:28px;padding:0}
body.beta #study-main .campus-compose-window .campus-attachment small{font-size:12px;line-height:18px;color:var(--ui-muted)}
body.beta #study-main .campus-compose-window .campus-attachment [hidden]{display:none}
body.beta #study-main .campus-compose-window{height:auto}
body.beta #study-main .campus-compose-window>.campus-composer{flex:0 0 auto}
body.beta #study-main .campus-compose-window>.astra-back{margin:0 0 16px}
body.beta #study-main .astra-preview-window>.astra-back{margin:0}
/* Xhx8z: one searchable catalogue, tags first and literal institute counts. */
body.beta #study-main .campus-discovery{display:flex;flex-direction:column;gap:20px}
body.beta #study-main .campus-discovery-header{display:flex;flex-direction:column;align-items:start;gap:20px;margin:0}
body.beta #study-main .campus-discovery-header h1{font-size:27px;line-height:33px;letter-spacing:-.8px;margin:0}
body.beta #study-main .campus-discovery>section{background:transparent;padding:0;margin:0;border-radius:0;display:flex;flex-direction:column;gap:12px}
body.beta #study-main .campus-discovery-search{height:46px;min-height:46px;border:0;margin:0}
body.beta #study-main .astra-discovery-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0}
body.beta #study-main .astra-discovery-heading h2{font-size:17px;line-height:22px;font-weight:600;margin:0}
body.beta #study-main .astra-discovery-heading>span{font-size:12px;color:var(--ui-muted)}
body.beta #study-main .campus-discovery-tags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.beta #study-main .campus-discovery-tag{display:flex;flex-direction:column;align-items:start;gap:4px;background:var(--ui-surface);padding:12px;border:0;border-radius:12px;min-height:60px;min-width:0;text-align:left}
body.beta #study-main .campus-discovery-tag strong{font-size:13px;font-weight:600;color:var(--ui-accent);overflow-wrap:anywhere}
body.beta #study-main .campus-discovery-tag small{font-size:11px;font-weight:400;color:var(--ui-muted)}
body.beta #study-main .campus-discovery .campus-institutes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body.beta #study-main .campus-discovery .campus-institute{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:10px 8px;background:var(--ui-surface);border:0;border-radius:12px;min-width:0;min-height:0}
body.beta #study-main .campus-discovery .campus-institute strong{font-size:13px;font-weight:600}
body.beta #study-main .campus-discovery .campus-institute-count{font-size:18px;font-weight:600;color:var(--ui-text)}
body.beta #study-main .astra-discovery-caption{font-size:11px;line-height:16px;color:var(--ui-muted);margin:0}
body.beta #study-main .campus-discovery [hidden]{display:none}
body.beta #study-main .campus-discovery-search input{height:46px;min-height:46px;border:0;border-radius:14px;background:transparent;box-shadow:none;padding:0 0 0 28px;font-size:13px;color:var(--ui-text)}
body.beta #study-main .campus-discovery-search>.campus-icon{width:18px;height:18px;left:14px;top:14px}
body.beta #study-main .campus-discovery-tags>.campus-muted{grid-column:1/-1;font-size:13px;line-height:20px;color:var(--ui-muted);margin:0;padding:0;border:0;background:transparent}
body.beta #study-main .campus-discovery-tags{border:0;border-radius:0;background:transparent;padding:0;margin:0}
/* sqfSY: measured home feed geometry; live filter meanings stay unchanged. */
@media(max-width:999px){body.beta .study-top:has(+ #study-notice) {margin-bottom:18px}}
body.beta #study-main .campus-feed-bar>.campus-chip-strip{min-height:44px}
body.beta #study-main .campus-feed-bar>.campus-chip-strip>.campus-chip{height:44px;min-height:44px;padding:6px 10px;border-radius:8px}
body.beta #study-main .campus-feed-options>summary{width:44px;height:44px;min-height:44px;padding:12px;border-radius:8px}
body.beta #study-main .campus-feed>.campus-post{display:flex;flex-direction:column;gap:14px}
body.beta #study-main .campus-feed>.campus-post>*{margin-top:0;margin-bottom:0}
body.beta #study-main .campus-feed>.campus-post>.campus-post-actions{gap:8px}
body.beta #study-main .campus-feed>.campus-post .campus-action[data-campus=like]{padding:6px 10px;border-radius:8px}
body.beta #study-main .campus-feed>.campus-post .campus-action[data-campus=like][aria-pressed=true]{background:var(--ui-accent-soft)}
body.beta #study-main .campus-feed>.campus-post .campus-action[data-campus=open-comments]{margin-left:0}

/* Pen p8txYW: compact week heading, preserving the scrollable date range. */
body.beta .week-control{background:transparent;margin:0 0 14px;padding:0;gap:12px;justify-content:flex-end;min-height:32px}
body.beta .week-control>span{order:-1;margin-right:auto;padding:0;text-align:left;font-size:15px;font-weight:600;line-height:20px}
body.beta .week-control>span>small{display:none}
body.beta .week-control button{width:32px;height:32px;border-radius:10px;font-size:24px;background:transparent}
body.beta .day-strip button>small{display:none}
body.beta .day-strip button{gap:7px}

body.beta .lesson-timeline{display:flex;flex-direction:column;gap:12px}
html:not([data-theme=dark]) body.beta .lesson-row{margin:0;gap:12px}
body.beta .lesson-body{display:flex;flex-direction:column;align-items:flex-start;min-height:0;text-align:left}
body.beta .lesson-body>.lesson-title,body.beta .lesson-body>.lesson-meta,body.beta .lesson-body>.lesson-place{margin:0}
body.beta .lesson-body .lesson-meta{display:block;font-size:11px;line-height:16px;color:var(--ui-muted)}
body.beta .lesson-body .lesson-kind,body.beta .lesson-body .lesson-teacher{display:inline;padding:0;margin:0;background:none;color:inherit;font-size:inherit;font-weight:400}
body.beta .lesson-body>.lesson-place{display:flex;align-items:center;gap:5px;font-size:11px;line-height:16px;color:var(--ui-muted)}
body.beta .lesson-body>.lesson-place .ui-icon{width:14px;height:14px}
body.beta .lesson-time:after{display:none}
html:not([data-theme=dark]) body.beta .lesson-body .lesson-meta .lesson-kind{color:var(--ui-muted);font-size:11px;font-weight:400}

/* Pen vvpta lesson detail: one plain information card. */
body.beta #study-main[data-study-route=lesson] .subroute-back{display:flex;align-items:center;gap:10px;height:36px;min-height:36px;padding:0;margin:0 0 18px;background:none;font-size:13px}
body.beta #study-main .lesson-detail{display:flex;flex-direction:column;gap:16px}
body.beta #study-main .lesson-detail-header{gap:16px;width:100%}
body.beta #study-main .lesson-detail-header>p{font-size:11px;line-height:15px;font-weight:600;letter-spacing:0}
body.beta #study-main .lesson-detail-header h1{font-size:24px;line-height:28px;font-weight:700;letter-spacing:0;overflow-wrap:anywhere}
body.beta #study-main .lesson-detail-header .lesson-kind{padding:0;border:0;border-radius:0;background:none;color:var(--ui-accent);font-size:13px;font-weight:600}
body.beta #study-main .lesson-detail-time{margin:0;width:100%;gap:16px 10px}
body.beta #study-main .lesson-detail-time>span:not(.lesson-time-divider):not(.lesson-duration){padding:0;background:none;border-radius:0;gap:5px}
body.beta #study-main .lesson-detail-time strong{font-size:26px;line-height:32px;font-weight:600}
body.beta #study-main .lesson-detail-time .lesson-duration{font-size:12px;line-height:17px}
body.beta #study-main .lesson-detail-facts{width:100%}
body.beta #study-main .lesson-detail-facts strong,body.beta #study-main .lesson-detail-facts p{font-size:15px;line-height:21px;overflow-wrap:anywhere}
body.beta #study-main .lesson-detail-facts>div{grid-template-columns:1fr;align-items:start}

/* Pen gpMTs: journal hierarchy and compact course metadata. */
body.beta .grade-search{box-sizing:border-box;min-height:44px;height:44px}
body.beta .grade-toolbar{margin:14px 0;min-height:24px}
html:not([data-theme=dark]) body.beta .grade-toolbar>span{font-size:16px;line-height:21px;font-weight:600;color:var(--ui-text)}
body.beta .course-label{gap:5px}
body.beta .course-label small .course-teacher{display:inline;margin:0}
body.beta .course-item[open] .course-label .course-count{display:none}
html:not([data-theme=dark]) body.beta .course-item[open] .course-label>strong{font-size:18px;line-height:23px;font-weight:700;letter-spacing:-.3px}
body.beta .course-item .km-columns{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;font-size:10px;color:var(--ui-muted)}
body.beta .course-item .km-columns>span:first-child{text-transform:uppercase;font-size:9px;letter-spacing:.5px;font-weight:600}
body.beta .course-totals>span>strong{font-size:20px;line-height:26px;font-weight:600}
body.beta .task-row .task-mark{min-width:48px;min-height:40px;font-size:23px;line-height:28px;font-weight:600;border-radius:10px;align-self:start}
body.beta .task-row .task-mark.mark-missing{font-size:13px;line-height:18px;max-width:96px;overflow-wrap:anywhere}
body.beta .task-row .task-period{font-size:12px;line-height:17px;margin-top:7px}

body.beta .task-source-details{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px;font-size:12px;line-height:17px;color:var(--ui-muted);margin:0}
body.beta .task-source-details>span+span:before{content:'·';margin-right:4px}
body.beta .task-row{row-gap:8px}

/* Pen Nig0o groups visibility controls into a single card. */
body.beta #study-main .astra-privacy-visibility{display:flex;flex-direction:column;gap:20px;padding:18px;border-radius:18px;background:var(--ui-surface)}
body.beta #study-main .astra-privacy-visibility .campus-setting-row{padding:0;border:0;background:none;min-height:0}
body.beta #study-main .campus-privacy-check input{flex:0 0 46px;width:46px;min-width:46px;height:28px;min-height:28px;max-height:28px;border-radius:14px;margin:0}
body.beta #study-main .campus-privacy-check input::after{top:3px;left:3px}
body.beta #study-main .campus-privacy-check input:checked::after{transform:translateX(18px)}

.astra-desktop-tagline,.astra-desktop-account,.astra-desktop-home-title{display:none}
/* Desktop Pen TMt5z/vnzdT/tgr08: shared 80px masthead and 196px sidebar. */
@media(min-width:1000px){
 body.beta #beta-app{display:block;width:100%;max-width:none;margin:0;padding:0}
 html:is(:not([data-theme=dark]),[data-theme=dark]) body.beta .study-layout{width:100%;max-width:none;margin:0;padding:112px 32px 40px 256px;border:0;border-radius:0;background:transparent}
 body.beta #beta-app .study-top,body.beta .study-top{position:fixed;top:0;left:0;right:0;width:100%;height:80px;min-height:80px;padding:0 32px;margin:0;flex-wrap:nowrap;justify-content:space-between;background:var(--ui-surface);z-index:30;box-sizing:border-box}
 body.beta .astra-desktop-tagline{display:block;margin-left:auto;color:var(--ui-muted);font-size:13px;white-space:nowrap}
 body.beta .astra-desktop-home-title{display:block;font-size:32px;line-height:38px;letter-spacing:-1px;margin:0 0 24px}
 html:is(:not([data-theme=dark]),[data-theme=dark]) body.beta .study-nav{top:112px;bottom:auto;left:32px;right:auto;transform:none;width:196px;max-width:196px;height:auto;min-height:0;max-height:calc(100dvh - 144px);overflow:auto;display:flex;flex-direction:column;gap:8px;padding:0;border:0;border-radius:0;background:transparent}
 html:is(:not([data-theme=dark]),[data-theme=dark]) body.beta .study-nav button{flex:0 0 auto;width:100%;height:48px;min-height:48px;flex-direction:row;justify-content:flex-start;gap:12px;padding:0 14px;border-radius:14px;font-size:14px}
 body.beta .astra-desktop-account{display:block;width:100%;min-width:0}
 body.beta .astra-desktop-account>div{display:flex;flex-direction:column;gap:7px;padding:24px 14px 12px;min-width:0}
 body.beta .astra-desktop-account strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.beta .astra-desktop-account small{font-size:12px;color:var(--ui-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html:is(:not([data-theme=dark]),[data-theme=dark]) body.beta .campus-wall{max-width:760px;margin-inline:auto}
}

.astra-desktop-refresh-label{display:none}
@media(min-width:1000px){
 body.beta #study-main[data-study-view=grades]:not([data-study-route=campus]){display:grid;grid-template-columns:310px minmax(0,1fr);column-gap:16px;row-gap:20px;align-items:start}
 body.beta #study-main[data-study-view=grades]> *{grid-column:1/-1;min-width:0}
 body.beta #study-main[data-study-view=grades]>.study-section-tabs{grid-row:2;margin:0}
 body.beta #study-main[data-study-view=grades]>.grade-controls{grid-column:1;grid-row:3;margin:0}
 body.beta #study-main[data-study-view=grades]>.grade-search{grid-column:2;grid-row:3;margin:0;height:46px;min-height:46px}
 body.beta #study-main[data-study-view=grades]>.grade-summary{grid-row:4;margin:0}
 body.beta #study-main[data-study-view=grades]>.grade-toolbar{margin:0}
 body.beta #study-main[data-study-view=grades] .semester-control select{height:46px;min-height:46px}
 body.beta #study-main .study-heading{margin:0 0 24px}
 body.beta #study-main[data-study-view=grades]>.study-heading{margin:0}
 body.beta #study-main .study-heading h1{font-size:32px;line-height:38px;letter-spacing:-1px}
 body.beta #study-main .study-heading [data-refresh]{display:flex;align-items:center;gap:12px;width:auto;min-width:0;padding:10px 14px;border-radius:12px}
 body.beta .astra-desktop-refresh-label{display:inline;font-size:13px;white-space:nowrap}
 body.beta #study-main[data-study-view=grades]>.course-list>.study-empty{grid-column:1/-1}
}

/* Pen vnzdT: calendar above a list and selected lesson, mobile detail stays separate. */
body.beta .schedule-detail-panel{display:none;min-width:0}
body.beta .schedule-list,body.beta .schedule-calendar{min-width:0}
@media(max-width:999px){
 body.beta #study-main[data-study-route=lesson] .schedule-calendar,
 body.beta #study-main[data-study-route=lesson] .day-label,
 body.beta #study-main[data-study-route=lesson] .schedule-list,
 body.beta #study-main[data-study-route=lesson]>.data-timestamp{display:none}
 body.beta #study-main[data-study-route=lesson] .schedule-detail-panel.is-selected{display:block}
}
@media(min-width:1000px){
 body.beta .schedule-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,430px);gap:24px;align-items:start}
 body.beta .schedule-detail-panel{display:block}
 body.beta .schedule-detail-panel .subroute-back{display:none!important}
 body.beta .schedule-columns .lesson-timeline{gap:18px}
 body.beta .schedule-calendar{margin-bottom:20px}
 body.beta .schedule-columns .lesson-detail{margin:0}
}

body.beta #study-main .campus-avatar-window>h2{margin:0;font-size:28px;line-height:34px;letter-spacing:-.8px}

body.beta #study-main .astra-bio-count{align-self:flex-end;font-size:11px;font-weight:400;color:var(--ui-muted)}

/* p8txYW live emphasis uses only a timed lesson from today's cached schedule. */
body.beta #study-main .lesson-body.is-upcoming{background:var(--ui-accent);color:#fff;border-color:transparent}
body.beta #study-main .lesson-body.is-upcoming .lesson-title{color:#fff}
body.beta #study-main .lesson-body.is-upcoming .lesson-meta,
body.beta #study-main .lesson-body.is-upcoming .lesson-kind,
body.beta #study-main .lesson-body.is-upcoming .lesson-place{color:var(--ui-on-accent,#fff)}
body.beta .lesson-status{font-size:9px;line-height:13px;font-weight:700;letter-spacing:.7px;text-transform:uppercase;color:var(--ui-on-accent,#fff)}

/* Owner's mobile usability pass: wider cards and compact, stable controls. */
@media(max-width:999px){
 html:is(:not([data-theme=dark]),[data-theme=dark]) body.beta .study-layout{width:100%;max-width:800px;padding:8px 10px calc(92px + var(--app-safe-bottom,env(safe-area-inset-bottom,0px)));margin-inline:auto}
 html:is(:not([data-theme=dark]),[data-theme=dark]) body.beta.telegram-display #beta-app{padding-left:0!important;padding-right:0!important}
 html:is(:not([data-theme=dark]),[data-theme=dark]) body.beta .study-nav{bottom:max(4px,var(--app-safe-bottom,env(safe-area-inset-bottom,0px)));width:calc(100% - 16px);max-width:780px;height:66px;min-height:66px;padding:5px;gap:2px;box-sizing:border-box;border-radius:24px;overflow:hidden}
 body.beta .study-nav::after{display:none}
 body.beta .study-nav button{height:54px;min-height:54px;box-sizing:border-box}
 body.beta #study-main[data-study-view=profile]:not([data-study-route]) .campus-social-profile{margin-top:0}
 body.beta .study-top:has(+ #study-notice){margin-bottom:12px}
 body.beta .campus-social-profile>.campus-feed{padding-inline:0}
 body.beta #study-main .campus-profile-tabs{margin:12px 0}
}
/* The masthead scrolls with content, including on desktop. */
body.beta #beta-app .study-top,body.beta .study-top{position:static;top:auto}
@media(min-width:1000px){
 html:is(:not([data-theme=dark]),[data-theme=dark]) body.beta .study-layout{padding-top:0}
 body.beta #beta-app .study-top{width:calc(100% + 224px);margin:0 0 24px -224px;padding:0 0 0 0}
 html:is(:not([data-theme=dark]),[data-theme=dark]) body.beta .campus-wall,
 html:is(:not([data-theme=dark]),[data-theme=dark]) body.beta .campus-social-profile{max-width:920px}
}
body.beta .study-nav button.active .astra-icon,body.beta .study-nav button.active .astra-icon path{stroke:none;fill:currentColor}
body.beta #study-main .campus-post-actions{justify-content:flex-start;gap:12px}
body.beta #study-main .campus-post-actions .campus-action[data-campus=open-comments]{margin-left:0}
body.beta .campus-author-name{align-items:center;min-width:0}
body.beta .campus-role-tag{vertical-align:middle;align-self:center;flex-shrink:0;line-height:1}
body.beta .campus-custom-role i{display:block;width:10px;height:10px;margin:0}
body.beta #study-main .campus-profile-title{flex-wrap:nowrap;max-width:100%;min-width:0;align-items:center}
body.beta #study-main .campus-profile-title h1,body.beta .campus-author-name>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
body.beta #study-main .campus-profile-title h1.campus-styled-name{color:var(--name-color,var(--ui-text))}
body.beta #study-main .campus-profile-title h1[data-name-effect=gradient]{color:transparent}
body.beta #study-main .campus-profile-meta{flex-wrap:nowrap;min-width:0;max-width:100%;gap:4px}
body.beta #study-main .campus-profile-meta-item{min-width:0;overflow:hidden}
body.beta #study-main .campus-profile-meta-item>.campus-styled-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.beta #study-main .campus-social-identity{gap:10px;margin-top:6px}
body.beta #study-main .campus-profile-name{gap:3px}
body.beta #study-main .campus-profile-edit-actions{margin-top:10px}
body.beta #study-main .campus-banner-action{display:flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;padding:8px;box-sizing:border-box}
body.beta #study-main .campus-banner-action svg{width:20px;height:20px;display:block}
body.beta .course-label small{display:flex;flex-wrap:wrap;gap:3px 6px;align-items:center;min-width:0}
body.beta .course-label small .course-teacher{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;min-width:0;flex:1 1 100%}
body.beta .course-label .course-count{flex:0 0 auto;white-space:nowrap;margin:0}
body.beta .course-final{flex:0 0 auto;min-width:52px}
body.beta .course-final>small{white-space:nowrap;font-size:9px}
body.beta .schedule-lunch{display:flex;align-items:center;gap:14px;padding:16px;border-radius:18px;background:var(--ui-accent-soft);color:var(--ui-text);border:1px solid var(--ui-border)}
body.beta .schedule-lunch>div{min-width:0;display:flex;flex-direction:column;gap:5px}
body.beta .schedule-lunch small{font-size:11px;color:var(--ui-muted)}
body.beta .schedule-lunch strong{font-size:16px;line-height:21px}
body.beta .schedule-lunch p{font-size:12px;line-height:18px;margin:0;color:var(--ui-muted)}
body.beta .schedule-lunch-art{font-size:32px;line-height:1;animation:lunch-float 4s ease-in-out infinite;flex:none}
@keyframes lunch-float{50%{transform:translateY(-4px) rotate(-5deg)}}
@media(prefers-reduced-motion:reduce){body.beta .schedule-lunch-art{animation:none}}

body.beta #study-main .campus-profile-title .campus-profile-roles{display:inline-flex;flex-wrap:nowrap;flex:0 0 auto;max-width:none;align-items:center}
body.beta .course-label small{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:6px}
body.beta .course-label small .course-teacher{grid-column:1/-1;width:100%;max-width:100%}
body.beta .course-assessment{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
@media(max-width:359px){body.beta .study-nav button{font-size:9.5px;line-height:13px;padding-inline:0}body.beta .study-nav button>span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

body.beta .mpei-home-art[data-stable] > img{animation:none}

body.beta #study-main .campus-comment .campus-avatar{width:32px;height:32px;min-width:32px}

/* Study navigation: five primary destinations, clear results and stable weeks. */
body.beta .study-section-tabs{display:flex;gap:4px;padding:4px;margin:0 0 18px;background:var(--ui-border,#e8edf7);border-radius:16px}
body.beta .study-section-tabs button{flex:1;min-width:0;min-height:40px;padding:8px 6px;border:0;border-radius:12px;background:transparent;color:var(--ui-muted);font-size:13px;font-weight:600}
body.beta .study-section-tabs button[aria-pressed=true]{background:var(--ui-surface,#fff);color:var(--ui-accent);box-shadow:0 2px 8px #17243b06}
html body.beta .day-strip button{min-width:0;flex:none;width:100%}
html body.beta .day-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));scroll-snap-type:none;overflow-x:hidden;gap:6px}
body.beta .course-final{display:grid;grid-template-columns:minmax(40px,max-content) max-content;width:max-content;min-width:68px;align-items:center;justify-content:center;gap:5px 6px}
body.beta .course-final>small{grid-column:1/-1;font-size:10px;line-height:14px}
body.beta .course-final>.mark-badge{grid-column:1;grid-row:2;justify-self:center}
body.beta .course-final>.mark-badge{display:grid;place-items:center;min-width:40px;min-height:40px;max-width:68px;padding:5px 8px;border-radius:12px;font-size:22px;line-height:1.2;font-weight:700;font-variant-numeric:tabular-nums}
body.beta .task-row .mark-badge{min-width:40px;min-height:36px;font-size:17px;font-weight:700;border-radius:11px}
body.beta{--study-positive:#207454;--study-positive-soft:#e6f5ed;--study-negative:#b23b4c;--study-negative-soft:#fcebef}
html[data-theme=dark] body.beta{--study-positive:#87d9b3;--study-positive-soft:#173c30;--study-negative:#ffa5b1;--study-negative-soft:#44252e}
body.beta .course-progress{display:block;grid-column:2;grid-row:2;margin:0}
body.beta .course-km-dots{display:grid;grid-auto-flow:column;grid-template-rows:repeat(4,6px);grid-auto-columns:max-content;align-items:center;justify-content:center;gap:3px;min-height:6px}
body.beta .course-km-dots:has(>:only-child){grid-template-rows:6px}
body.beta .course-km-dots:has(>:nth-child(2):last-child){grid-template-rows:repeat(2,6px)}
body.beta .course-km-dots:has(>:nth-child(3):last-child){grid-template-rows:repeat(3,6px)}
body.beta .course-km-dots>.km-dot{width:6px;height:6px;flex:none;border-radius:2px;background:var(--ui-border)}
body.beta .course-km-dots>.km-excellent{background:var(--study-positive)}
body.beta .course-km-dots>.km-good{background:var(--ui-accent)}
body.beta .course-km-dots>.km-pass{background:#ad7b22}
body.beta .course-km-dots>.km-fail{background:var(--study-negative)}
body.beta .course-km-dots>.km-neutral{background:var(--ui-muted)}
body.beta .course-km-dots>span{grid-row:span 2;font-size:10px;line-height:12px;color:var(--ui-muted)}
html:not([data-theme=dark]) body.beta .course-item[open] .course-label>strong{font-size:16px;line-height:22px}
/* Attendance uses compact disclosures; all dates stay inside their subject. */
body.beta .attendance-heading{margin:0 0 6px}
body.beta .attendance-heading h2{font-size:18px;line-height:25px;margin:0 0 3px}
body.beta .attendance-heading p{margin:0;color:var(--ui-muted);font-size:12px;line-height:18px}
body.beta .attendance-hint{margin:0 0 14px;font-size:12px;line-height:18px;color:var(--ui-muted)}
body.beta .attendance-list{display:grid;gap:10px}
body.beta .attendance-course{margin:0;padding:0;border:1px solid var(--ui-border);border-radius:18px;background:var(--ui-surface,#fff);overflow:hidden}
body.beta .attendance-course>summary{display:grid;grid-template-columns:minmax(0,1fr) auto 14px;align-items:center;gap:10px;min-height:80px;box-sizing:border-box;padding:14px;list-style:none;cursor:pointer}
body.beta .attendance-course>summary::-webkit-details-marker{display:none}
body.beta .attendance-course>summary:focus-visible{outline:2px solid var(--ui-accent);outline-offset:-3px;border-radius:17px}
body.beta .attendance-course-label{min-width:0;display:grid;gap:5px}
body.beta .attendance-course-label>strong{font-size:15px;line-height:21px;font-weight:600;overflow-wrap:break-word}
body.beta .attendance-course-label>small{font-size:11px;line-height:16px;color:var(--ui-muted)}
body.beta .attendance-count{display:inline-flex;align-items:baseline;gap:4px;padding:5px 8px;border-radius:9px;background:var(--ui-accent-soft);color:var(--ui-text);font-size:11px;line-height:18px;white-space:nowrap;font-variant-numeric:tabular-nums}
body.beta .attendance-count b{font-size:14px;font-weight:650}
body.beta .attendance-course>summary>.ui-icon{width:14px;height:14px;color:var(--ui-muted);transform:rotate(90deg);transition:transform .18s ease}
body.beta .attendance-course[open]>summary>.ui-icon{transform:rotate(-90deg)}
body.beta .attendance-detail{margin:0 14px;padding:2px 0 4px;border-top:1px solid var(--ui-border)}
body.beta .attendance-lessons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;list-style:none;margin:10px 0;padding:0}
body.beta .attendance-lesson{display:flex;flex-direction:column;gap:8px;min-width:0;padding:10px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-surface)}
body.beta .attendance-lesson>time{display:block;padding:6px 8px;border-radius:8px;background:var(--ui-accent-soft);font-size:13px;line-height:19px;font-weight:600;font-variant-numeric:tabular-nums}
body.beta .attendance-lesson>time small{display:block;font-size:10px;line-height:16px;color:var(--ui-muted);font-weight:400}
body.beta .attendance-lesson>div{display:grid;gap:5px;min-width:0}
body.beta .attendance-lesson strong{font-size:12px;line-height:18px;font-weight:600}
body.beta .attendance-lesson span{font-size:11px;line-height:17px;color:var(--ui-muted)}
body.beta .attendance-lesson .attendance-reason{display:flex;align-items:flex-start;gap:4px;font-size:11px;line-height:16px;color:var(--ui-muted)}
body.beta .attendance-reason .ui-icon{width:12px;height:12px;flex:none;margin-top:2px}
body.beta .attendance-lesson.is-excused>time{color:var(--study-positive);background:var(--study-positive-soft)}
body.beta .attendance-lesson.is-unexcused>time{color:var(--study-negative);background:var(--study-negative-soft)}
body.beta .attendance-lesson.is-excused .attendance-reason{color:var(--study-positive)}
body.beta .attendance-lesson.is-unexcused .attendance-reason{color:var(--study-negative)}
body.beta .attendance-breakdown{display:flex;flex-wrap:wrap;gap:4px 8px}
body.beta .attendance-mini{font-size:10px;line-height:15px;font-weight:500}
body.beta .attendance-mini.is-excused{color:var(--study-positive)}
body.beta .attendance-mini.is-unexcused{color:var(--study-negative)}
body.beta .attendance-overview{padding:14px;margin:14px 0;border-radius:16px;background:var(--ui-surface);border:1px solid var(--ui-border)}
body.beta .attendance-overview>p{margin:0 0 12px;font-size:12px;line-height:18px;color:var(--ui-muted)}
body.beta .attendance-overview dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
body.beta .attendance-overview dl>div{display:flex;flex-direction:column-reverse;gap:4px;padding:8px;border-radius:10px;background:var(--ui-accent-soft)}
body.beta .attendance-overview dt{font-size:10px;line-height:15px;white-space:nowrap}
body.beta .attendance-overview dd{margin:0;font-size:22px;line-height:26px;font-weight:650;font-variant-numeric:tabular-nums}
body.beta .attendance-overview .is-excused{color:var(--study-positive);background:var(--study-positive-soft)}
body.beta .attendance-overview .is-unexcused{color:var(--study-negative);background:var(--study-negative-soft)}
body.beta .attendance-overview>small{display:block;margin-top:10px;color:var(--ui-muted);font-size:11px;line-height:16px}
@media(max-width:359px){body.beta .attendance-lessons{grid-template-columns:1fr}body.beta .attendance-lesson{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:start}}
body.beta .attendance-source-note{margin:10px 0;font-size:12px;line-height:18px;color:var(--ui-muted)}
@media(min-width:1000px){body.beta .attendance-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
@media(prefers-reduced-motion:reduce){body.beta .attendance-course>summary>.ui-icon{transition:none}}
body.beta .campus-follow-author{display:inline-flex;align-items:center;justify-content:center;align-self:center;justify-self:center;width:auto;min-width:124px;min-height:38px;padding:8px 18px;margin:10px auto 0;font-size:13px;border-radius:13px}
body.beta .campus-compose-fab{display:grid;place-items:center;position:fixed;right:max(16px,calc((100vw - 920px)/2));bottom:calc(82px + var(--app-safe-bottom,env(safe-area-inset-bottom,0px)));z-index:14;width:52px;height:52px;min-height:52px;border:0;border-radius:18px;background:var(--ui-accent,#315df4);color:#fff;box-shadow:0 6px 20px #315df42b}
body.beta .campus-compose-fab .campus-icon{width:24px;height:24px}
body.beta .campus-settings-page{width:100%;max-width:760px;margin:0 auto}
body.beta .campus-settings-page .campus-settings-layout{display:block}
body.beta .campus-settings-page .campus-settings-layout:not(.is-index) .campus-settings-tabs,body.beta .campus-settings-page .campus-settings-layout:not(.is-index) .astra-settings-person{display:none}
body.beta .study-university-choice{position:relative;z-index:2;min-inline-size:0;width:100%;margin:18px 0 4px;padding:0;border:0;display:grid;gap:10px}
body.beta .study-university-choice[hidden]{display:none}
body.beta .study-university-option{position:relative;display:grid;grid-template-columns:56px minmax(0,1fr) 18px;align-items:center;gap:10px;width:100%;box-sizing:border-box;margin:0;padding:13px 12px;border:1px solid #dbe4fc;border-radius:16px;background:#f6f8ff;cursor:pointer}
body.beta .study-university-option input{position:absolute;width:1px;height:1px;opacity:0;clip-path:inset(50%);overflow:hidden}
body.beta .study-university-option:focus-within{outline:2px solid #315df4;outline-offset:3px}
body.beta .study-university-logo{display:grid;place-items:center;width:56px;height:48px;border-radius:11px;background:#fff}
body.beta .study-university-logo img{display:block;width:48px;height:28px;object-fit:contain}
body.beta .study-university-copy{display:flex;min-width:0;flex-direction:column;gap:3px}
body.beta .study-university-copy strong{color:#182033;font-size:15px;line-height:20px;font-weight:650}
body.beta .study-university-copy small{color:#657185;font-size:12px;line-height:16px;font-weight:400}
body.beta .study-university-check{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#315df4;color:#fff;opacity:0}
body.beta .study-university-option input:checked~.study-university-check{opacity:1}
body.beta .study-university-check svg{width:16px;height:16px}
body.beta .study-university-choice>p{margin:0;color:#657185;font-size:11px;line-height:16px;text-align:center;font-weight:400}
body.beta .study-intro.is-university .study-coach{width:min(320px,calc(100% - 32px));gap:12px}
body.beta .study-intro.is-university .study-intro-bubble{padding:18px;border-radius:24px}
body.beta .study-intro.is-university h2{font-size:20px;line-height:26px;margin-bottom:6px}
body.beta .study-intro.is-university .study-intro-text{font-size:13px;line-height:19px}
body.beta .study-intro.is-university .study-intro-actions button{min-height:46px;border-radius:14px;font-size:14px}
body.beta .study-intro.is-university .study-intro-skip{display:none}
@media(min-width:1000px){body.beta .campus-compose-fab{bottom:28px;right:36px}}
body.beta .device-list{display:grid;gap:12px;margin:18px 0}
body.beta .device-list>article{display:flex;align-items:flex-start;gap:12px;padding:16px;background:var(--ui-surface,#fff);border-radius:18px}
body.beta .device-symbol{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:12px;background:var(--ui-accent-soft,#e9eeff);color:var(--ui-accent)}
body.beta .device-symbol svg{width:22px;height:22px}
body.beta .device-list>article>div{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px;overflow-wrap:anywhere}
body.beta .device-list small{font-size:11px;line-height:16px;color:var(--ui-muted)}
body.beta .device-current{font-size:10px;color:var(--ui-accent)}
body.beta .device-list button{border:0;background:transparent;color:var(--ui-accent);font-size:12px;padding:0;min-height:40px}
body.beta .device-end-others{width:100%;margin-bottom:8px}

body.beta .course-risk{color:var(--ui-danger,#c23c53);font-size:11px;flex-basis:100%}
body.beta .campus-mobile-compose{display:block;padding:0;margin:0}

html:not([data-theme=dark]) body.beta .day-strip button,html[data-theme=dark] body.beta .day-strip button{min-width:0;box-sizing:border-box}
@media(max-width:359px){html:not([data-theme=dark]) body.beta .study-nav button,html[data-theme=dark] body.beta .study-nav button{padding-left:0;padding-right:0}}
@media(max-width:359px){html:not([data-theme=dark]) body.beta .study-nav button>span,html[data-theme=dark] body.beta .study-nav button>span{font-size:9.5px}}

/* Compact KM source facts; literal verbose results stay available on demand. */
body.beta .course-final{gap:6px}
body.beta .task-score{display:grid;justify-items:end;gap:5px;min-width:40px;max-width:96px}
body.beta .task-score .task-assessed-date{color:var(--ui-muted);font-size:10px;line-height:15px;text-align:right;font-variant-numeric:tabular-nums}
body.beta .task-row .task-mark.mark-missing{min-width:36px;min-height:36px;max-width:40px;font-size:18px;line-height:24px}
body.beta .task-row{row-gap:4px;padding-block:12px}
body.beta .task-row .task-period{margin-top:4px;font-size:11px;line-height:17px}
body.beta .task-work .task-weight{margin-top:3px;font-size:10px;line-height:15px}
body.beta .task-extra{grid-column:1/-1;margin:0;border:0;padding:0;color:var(--ui-muted)}
body.beta .task-extra>summary{cursor:pointer;width:fit-content;min-height:28px;padding:3px 0;font-size:11px;line-height:20px;color:var(--ui-accent)}
body.beta .task-extra>p{margin:3px 0 4px;font-size:11px;line-height:17px;overflow-wrap:anywhere}

/* Shared Telegram and MAX dashboard. The tour uses a separate, phone-sized shell. */
@media (min-width: 1000px) {
  #beta-dashboard {
    --desktop-edge: max(24px, calc((100vw - 1280px) / 2));
    --desktop-rail: clamp(168px, 15vw, 196px);
    --desktop-gap: clamp(24px, 2.5vw, 40px);
  }

  body.beta #beta-dashboard .study-layout {
    padding: 0 var(--desktop-edge) 80px calc(var(--desktop-edge) + var(--desktop-rail) + var(--desktop-gap));
  }

  body.beta #beta-dashboard .study-top {
    width: auto;
    margin: 0 calc(-1 * var(--desktop-edge)) 32px calc(-1 * (var(--desktop-edge) + var(--desktop-rail) + var(--desktop-gap)));
    padding-inline: var(--desktop-edge);
    border-bottom: 1px solid var(--ui-border);
  }

  body.beta #beta-dashboard .study-nav {
    left: var(--desktop-edge);
    width: var(--desktop-rail);
  }

  #beta-dashboard .astra-desktop-account {
    border-top: 1px solid var(--ui-border);
    margin-top: 12px;
  }

  #beta-dashboard #study-main > .astra-desktop-home-title {
    font-size: 32px;
    line-height: 1.2;
  }

  #beta-dashboard .astra-desktop-home-title + .campus-home-heading {
    display: none;
  }

  /* The full illustration shares the first screen with the first post. */
  #beta-dashboard #study-main .campus-wall:has(> .mpei-home-art) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px 24px;
    align-items: start;
  }

  #beta-dashboard #study-main :is(.campus-wall, .campus-social-profile) {
    margin-inline: 0;
    max-width: none;
  }

  #beta-dashboard #study-main .campus-wall > * {
    grid-column: 1 / -1;
    min-width: 0;
  }

  #beta-dashboard #study-main .campus-wall > .mpei-home-art {
    grid-column: 1;
    grid-row: span 2;
    margin: 0;
  }

  #beta-dashboard #study-main .campus-wall > :is(.campus-feed-controls, .campus-wall-inline) {
    grid-column: 2;
    margin: 0;
  }

  #beta-dashboard #study-main .campus-wall .campus-feed-controls {
    gap: 10px;
  }

  #beta-dashboard #study-main .campus-wall-inline .campus-composer {
    margin: 0;
    background: var(--ui-surface);
  }

  #beta-dashboard #study-main .campus-composer.is-inline .campus-composer-text {
    min-height: 58px;
  }

  #beta-dashboard #study-main .campus-composer.is-inline .campus-composer-toolbar {
    flex-wrap: wrap;
    margin-inline-start: 0;
  }

  #beta-dashboard #study-main .campus-post-text {
    max-width: 80ch;
    overflow-wrap: anywhere;
  }

  #beta-dashboard #study-main .schedule-columns {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  #beta-dashboard #study-main .schedule-list:only-child {
    grid-column: 1 / -1;
  }

  #beta-dashboard #study-main :is(.lesson-title, .lesson-teacher, .lesson-place, .lesson-detail, .course-label strong, .task-work) {
    overflow-wrap: anywhere;
  }

  #beta-dashboard #study-main[data-study-view=grades] > .study-section-tabs {
    width: min(100%, 340px);
    box-sizing: border-box;
  }

  #beta-dashboard #study-main .campus-profile-header > .campus-profile-cover:has(> .campus-banner-placeholder) {
    height: clamp(132px, 12vw, 176px);
    aspect-ratio: auto;
  }

  #beta-dashboard #study-main .campus-social-profile .campus-profile-content {
    display: block;
    padding: 0 24px 20px;
  }

  #beta-dashboard #study-main .campus-social-profile .campus-profile-actions {
    display: flex;
    position: relative;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: -44px;
  }

  #beta-dashboard #study-main .campus-profile-actions :is(.campus-profile-photo, .campus-avatar) {
    width: 88px;
    height: 88px;
    margin: 0;
  }

  #beta-dashboard #study-main .campus-profile-actions .campus-profile-edit-actions {
    width: auto;
    margin: 0;
    flex-wrap: wrap;
  }

  #beta-dashboard #study-main .campus-profile-content :is(.campus-profile-title, .campus-profile-meta, .campus-profile-roles) {
    justify-content: flex-start;
    text-align: start;
  }

  #beta-dashboard #study-main .campus-settings-layout.is-index {
    max-width: none;
    margin: 0;
  }

  #beta-dashboard #study-main .campus-settings-layout.is-index .campus-settings-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #beta-dashboard #study-main .campus-settings-layout.is-index .campus-setting-link {
    min-height: 72px;
    padding-inline: 18px;
  }
}
/* «Удалить аккаунт»: the confirmation opens in place, inside the access card. */
body.beta #study-main #beta-account-delete-panel{margin-top:12px;gap:14px}
body.beta #study-main #beta-account-delete-panel[hidden]{display:none}
