/* Filled surfaces use colour, rather than decorative outlines. */
body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),textarea,select) {
  border: 0 !important;
  box-shadow: none !important;
  background: #0c1929 !important;
  color: #dce8fa;
}
body :is(input,textarea,select):focus { border: 0 !important; box-shadow: none !important; outline: none; }
body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select):focus-visible { background: #152b42 !important; }
body :is(dialog.modal,dialog.photo-viewer,.segmented,.subject-icon,.toggle-switch,.calendar-trigger,.calendar-popup,.calendar-day,.calendar-selected,.day-center,.selected-day,.date-current,.schedule-select-trigger,.schedule-select-popup,.textbook-card,.textbook-cover,.account-profile-card) {
  border: 0 !important;
  box-shadow: none !important;
}
body dialog.modal :is(button,fieldset,[role=tablist],.date-main,.day-active,.day-picker-current,.homework-date-current,.schedule-checkbox) { border: 0 !important; box-shadow: none !important; }
body dialog.modal .segmented { background: #1b2e44; }
body .subject-icon { outline: none !important; }
body .toggle-switch:not(.on) { background: #3a4e66 !important; }
body .schedule-select-trigger { background: #0c1929; }
body .schedule-select-popup { background: #20344d; }
body .schedule-select-option[aria-selected=true] { background: #385578; }
body .schedule-flow-form { display: grid; gap: 18px; }
body .schedule-flow-form > label:not(.schedule-checkbox) { display: grid; gap: 9px; font-size: 16px; }
body .schedule-flow-form :is(input:not([type=checkbox]),.schedule-select-trigger) { width: 100%; min-height: 52px; border-radius: 18px; padding: 14px 16px; }
body .schedule-flow-form > button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 999px; }
.schedule-flow-summary { display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: 22px; background: #1d3149; color: #c9dbf2; font-size: 16px; line-height: 1.5; }
.schedule-category-list { display: grid; gap: 8px; }
body dialog.modal .schedule-category-list > button { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 80px; padding: 20px; border-radius: 26px; background: #23374f; text-align: left; font-size: 18px; font-weight: 400; }
.schedule-category-list > button > span { flex: 1; }
body dialog.modal .schedule-category-list > button:hover { background: #2e4765; }
.schedule-change-cards { display: grid; gap: 3px; }
.schedule-change-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px; border-radius: 6px; background: #23374f; overflow: hidden; }
.schedule-change-card:first-child { border-start-start-radius: 28px; border-start-end-radius: 28px; }
.schedule-change-card:last-child { border-end-start-radius: 28px; border-end-end-radius: 28px; }
.schedule-change-card.is-event { background: #393629; }
body dialog.modal .schedule-change-card-main { display: flex; align-items: center; gap: 14px; min-width: 0; width: 100%; min-height: 76px; padding: 12px; border-radius: 20px; background: transparent; text-align: left; }
body dialog.modal button.schedule-change-card-main:hover { background: #ffffff08; }
.schedule-change-card-main > .subject-icon, .schedule-change-card-main > svg { flex: none; }
.schedule-change-card-main > span:last-child { display: grid; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.schedule-change-card-main strong { font-size: 18px; font-weight: 500; }
.schedule-change-card-main small { color: #bbcee7; font-size: 15px; line-height: 1.5; }
.schedule-change-card > .icon-button { margin-right: 8px; }
body dialog.schedule-picker-modal { width: min(1840px,96vw) !important; max-width: none !important; }
.schedule-selection { display: grid; gap: 16px; }
.schedule-picker-modal .dated-schedule { margin-top: 0; }
.schedule-picker-modal .dated-week-toolbar { z-index: 4; }
.schedule-picker-footer { position: sticky; bottom: 0; z-index: 5; display: grid; gap: 12px; padding: 18px; margin-top: 12px; border-radius: 28px; background: #15263a; }
.schedule-picker-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
body dialog.modal .schedule-picker-actions > button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 16px; border-radius: 999px; }
.schedule-selection .schedule-picked { background: #3b5d84 !important; }
.schedule-selection.is-moving .schedule-picked { cursor: grab; touch-action: none; }
.schedule-selection.is-moving .schedule-lesson-history-trigger { cursor: grab; }
.schedule-selection .schedule-drop-wait { background: #3b526c !important; animation: schedule-drop-hold 2s linear; }
.schedule-selection .schedule-drop-ready { background: #3d705f !important; }
body dialog.modal .schedule-drop-edge { padding: 14px 8px; border-radius: 20px; background: #203c56; color: #c2dcfa; min-height: 48px; }
.schedule-drop-edge:disabled { opacity: .35; }
.schedule-pick-day { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; color: inherit; padding: 6px; }
.schedule-selection .dated-schedule-lesson { position: relative; }
body .schedule-drag-preview { position: fixed; inset: auto; margin: 0; pointer-events: none; border: 0; padding: 18px 22px; border-radius: 22px; max-width: 280px; background: #42638a; color: #e4efff; box-shadow: 0 12px 30px #0005; font-size: 18px; }
.schedule-placement-modes { display: grid; gap: 6px; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 5px; background: #1b2e44; border-radius: 24px; }
body dialog.modal .schedule-placement-modes button { border-radius: 19px; padding: 12px 8px; min-height: 50px; background: transparent; }
body dialog.modal .schedule-placement-modes button[aria-pressed=true] { background: #b7d1f6; color: #142b46; }
.schedule-picker-modal .dated-schedule-controls { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
@keyframes schedule-drop-hold { from { opacity: .55; } to { opacity: 1; } }
@media (max-width:1120px) {
  body dialog.schedule-picker-modal { width: min(760px,100vw) !important; }
  .schedule-picker-modal .dated-schedule-controls { grid-template-columns: minmax(0,1fr) auto; }
  .schedule-picker-footer { padding: 16px; }
}
@media (max-width:720px) {
  .schedule-picker-actions { grid-template-columns: 1fr; }
  .schedule-placement-modes { grid-template-columns: 1fr; border-radius: 24px; }
  body dialog.modal .schedule-category-list > button { min-height: 84px; padding: 18px; font-size: 17px; }
  .schedule-change-card-main strong { font-size: 17px; }
  .schedule-change-card-main small { font-size: 14px; }
  .schedule-picker-footer { padding-bottom: max(16px,env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion:reduce) { .schedule-selection .schedule-drop-wait { animation: none; } }
body dialog.modal :is(.date-orb,.date-orb-inner,.date-picker,.tabs,.subject-icon,.settings-menu-row,.settings-menu-group,.settings-theme-group,.holiday-view-row,.calendar-grid button,.calendar-trigger,.calendar-popup,.calendar-surface,.schedule-event-editor,.textbook-form,.textbook-card,.notification-item) {
  border: 0 !important;
  box-shadow: none !important;
}
body dialog.material-modal .subject-icon { border: 0 !important; box-shadow: none !important; }
body dialog.modal :is(button,input,textarea,select):focus-visible { outline: none; filter: brightness(1.13); }
body dialog.modal .schedule-checkbox {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  width: 100%; padding: 14px 16px; border-radius: 20px; background: #203247;
  text-align: left; font-size: 16px; line-height: 1.4;
}
body dialog.modal .schedule-checkbox input[type=checkbox] {
  appearance: none; -webkit-appearance: none; display: inline-grid; place-items: center;
  flex: 0 0 22px; width: 22px !important; height: 22px !important; min-height: 22px;
  margin: 0; padding: 0; border: 0 !important; border-radius: 8px;
  background: #3a526e; box-shadow: none !important;
}
body dialog.modal .schedule-checkbox input[type=checkbox]:checked { background: #bad5fa; }
body dialog.modal .schedule-checkbox input[type=checkbox]:checked::after {
  content: ''; width: 10px; height: 6px; border-left: 2px solid #163453; border-bottom: 2px solid #163453;
  transform: translateY(-1px) rotate(-45deg);
}
.schedule-category-list { gap: 3px; }
body dialog.modal .schedule-category-list > button { border-radius: 6px; }
body dialog.modal .schedule-category-list > button:first-child { border-start-start-radius: 28px; border-start-end-radius: 28px; }
body dialog.modal .schedule-category-list > button:last-child { border-end-start-radius: 28px; border-end-end-radius: 28px; }
@media (max-width:720px) {
  .schedule-picker-footer { position: static; }
}
html:root body dialog.modal.material-modal[open],
html body #root dialog.modal,
html body #root :is(.date-orb,.date-orb-inner,.date-picker,.segmented,.toggle-switch,.subject-icon,.calendar-popup,.calendar-trigger,.calendar-grid button,.settings-menu-row,.settings-menu-group,.settings-theme-group,.holiday-view-row) {
  border: 0 !important;
  box-shadow: none !important;
}
/* Compact, colour-coded actions for a dated lesson change. */
body dialog.modal .schedule-change-details { gap: 12px; }
.schedule-change-details .schedule-flow-summary { padding: 14px 16px; }
.schedule-change-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
body dialog.modal .schedule-change-actions .change-action {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px;
  border: 0; border-radius: 24px; font-size: 16px; line-height: 1.35;
}
body dialog.modal .change-action-delete { grid-column: 1/-1; background: #482d3a; color: #ffb8c5; }
body dialog.modal :is(.change-action-move,.change-action-pick) { background: #253e5a; color: #c1ddff; }
body dialog.modal .change-action-replace { grid-column: 1/-1; background: #453e2c; color: #f0da9a; }
.schedule-change-actions:not(:has(.change-action-pick)) .change-action-move,
.schedule-change-actions:not(:has(.change-action-move)) .change-action-pick { grid-column: 1/-1; }
body dialog.modal .change-action:hover { filter: brightness(1.12); }
.schedule-notify-past { font-size: 15px; line-height: 1.5; }
@media (max-width:720px) {
  body dialog.modal .schedule-change-actions .change-action { padding: 11px 9px; font-size: 15px; gap: 7px; }
}
/* Keep the final blur after the opening animation has finished. */
html:root body dialog.modal.material-modal[open]::backdrop {
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
  animation: persistent-scrim-in 220ms ease both !important;
}
html:root body dialog.modal.material-modal[open].is-closing::backdrop {
  animation: persistent-scrim-out 220ms ease both !important;
}
html:root body dialog.modal.material-modal.cabinet-modal[open].is-closing::backdrop {
  animation-duration: 450ms !important;
}
@keyframes persistent-scrim-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes persistent-scrim-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion:reduce) {
  html:root body dialog.modal.material-modal[open]::backdrop { animation-duration: 1ms !important; }
}

.sessions-panel{display:grid;gap:14px;min-width:0}.sessions-list{display:grid;gap:4px}.session-row{display:flex;align-items:center;gap:12px;padding:18px;background:#22364d;border-radius:6px;min-width:0}.session-row:first-child{border-top-left-radius:28px;border-top-right-radius:28px}.session-row:last-child{border-bottom-left-radius:28px;border-bottom-right-radius:28px}.session-row>span{flex:1;min-width:0;overflow-wrap:anywhere}.session-row strong,.session-row small{display:block}.session-row small{margin-top:5px;color:#b1c3da}.session-remove{border:0!important;border-radius:24px;padding:12px 16px;background:#4b303c;color:#ffc3ce;flex-shrink:0}.sessions-settings-link{min-width:0}.sessions-settings-link>span{min-width:0;overflow-wrap:anywhere}@media(max-width:600px){.session-row{padding:16px 12px;gap:10px;flex-wrap:wrap}.session-remove{margin-left:auto;font-size:14px}.session-row>span{flex-basis:60%}}

.sessions-section{min-width:0}.sessions-section+ .sessions-section{margin-top:24px}.sessions-section h3{font-size:17px;margin:0 0 12px}.session-device-icon{flex:0 0 44px!important;width:44px;height:44px;border-radius:50%;display:grid!important;place-items:center;background:#304b66}.session-star{width:44px;height:44px;display:grid;place-items:center;border:0!important;border-radius:50%;background:#30465d;color:#b8cce4;flex-shrink:0}.session-star.selected{background:#4b442e;color:#ffe29c}@media(max-width:600px){.session-row>span:not(.session-device-icon){flex-basis:calc(100% - 68px)}.session-star{margin-left:54px}.session-remove{margin-left:0}}

/* One connected, spacious settings list on narrow screens. */
@media(max-width:720px){
html body dialog.material-modal .settings-menu{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-auto-flow:row!important;gap:4px!important;align-items:stretch}
html body dialog.material-modal .settings-menu>:is(.settings-menu-row,.settings-menu-group,.settings-theme-group){order:0!important;grid-column:1/-1!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;border-radius:6px!important;box-sizing:border-box}
html body dialog.material-modal .settings-menu>.settings-menu-row:not(.danger-button){min-height:64px!important;padding:14px 16px!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:12px!important}
html body dialog.material-modal .settings-menu>.settings-menu-row>span{flex:1 1 auto!important;text-align:left!important;min-width:0}
html body dialog.material-modal .settings-menu>.settings-menu-row strong{font-size:16px!important;line-height:1.35!important;overflow-wrap:normal}
html body dialog.material-modal .settings-menu>.settings-menu-row>svg{width:22px;height:22px;flex-shrink:0}
html body dialog.material-modal .settings-menu>.settings-menu-row>svg:last-child:not(:first-child){display:block!important;width:18px;height:18px}
html body dialog.material-modal .settings-menu>:first-child{border-top-left-radius:28px!important;border-top-right-radius:28px!important}
html body dialog.material-modal .settings-menu>:nth-last-child(2){border-bottom-left-radius:28px!important;border-bottom-right-radius:28px!important}
html body dialog.material-modal .settings-menu>.settings-menu-row.danger-button{border-radius:999px!important;margin:16px auto 0!important;width:auto!important;justify-self:center!important;min-height:56px!important;padding:14px 24px!important}
html body dialog.material-modal .settings-menu>.settings-menu-row.danger-button>span{text-align:center!important}
}

html body dialog.modal.material-modal:has(>.categorized-settings),html body dialog.modal.material-modal:has(.categorized-settings){width:min(640px,calc(100vw - 48px))!important;max-width:640px!important}
.categorized-settings{display:grid;gap:26px;min-width:0}.settings-category{min-width:0}.settings-category h3{margin:0 12px 12px;font-size:17px;font-weight:500;color:#b9cce2}.settings-category-list{display:flex;flex-direction:column;gap:4px;min-width:0}
html body dialog.material-modal .settings-category-list>.settings-menu-row{display:flex;align-items:center;width:100%;min-width:0;min-height:78px;padding:17px 20px;gap:14px;border:0!important;border-radius:6px!important;background:#1e3045;color:#dce7f7;text-align:left;box-sizing:border-box;flex-wrap:nowrap}
html body dialog.material-modal .settings-category-list>.settings-menu-row:first-child{border-top-left-radius:28px!important;border-top-right-radius:28px!important}
html body dialog.material-modal .settings-category-list>.settings-menu-row:last-child{border-bottom-left-radius:28px!important;border-bottom-right-radius:28px!important}
.settings-category-list>.settings-menu-row>span{flex:1;min-width:0}.settings-category-list>.settings-menu-row>svg{flex-shrink:0}.settings-category-list strong{display:block;font-size:17px;font-weight:500;line-height:1.35}.settings-category-list small{display:block;font-size:14px;color:#a6bad2;margin-top:4px;line-height:1.4}.settings-category-list .toggle-switch{flex:none;margin-left:auto}.settings-choice-options{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 0 24px}.settings-choice-options button{min-width:140px;min-height:52px;padding:14px 22px;border:0!important;border-radius:999px!important}.settings-logout{display:flex;align-items:center;justify-content:center;gap:12px;min-height:58px;border:0!important;border-radius:999px!important;width:100%;margin-top:0;background:#492f3b;color:#ffc1cd}
@media(max-width:720px){html body dialog.modal.material-modal:has(.categorized-settings){width:100%!important;max-width:100%!important}.categorized-settings{gap:24px}html body dialog.material-modal .settings-category-list>.settings-menu-row{min-height:64px;padding:14px 16px;gap:12px}.settings-category-list strong{font-size:16px}.settings-category-list small{font-size:13px}.settings-category h3{font-size:16px}.settings-choice-options button{min-width:120px}.settings-category-list>.settings-menu-row>svg:last-child:not(:first-child){display:block!important}}

.auth-field-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.auth-field-heading label{margin:0!important}html body dialog.modal .auth-inline-reset{border:0!important;box-shadow:none!important;background:transparent!important;color:#b9d6ff;padding:6px 0!important;min-height:32px!important;border-radius:8px;font-size:14px;line-height:1.35;white-space:nowrap;flex-shrink:0}.auth-inline-reset:hover{color:#e2eeff!important}.auth-inline-reset:disabled{opacity:.5}

/* One continuous surface for homework text and its attachment control. */
html body dialog.material-modal .quick-entry-field{background:#0d1929!important;border:0!important;outline:0!important;box-shadow:none!important;border-radius:22px;isolation:isolate}
html body dialog.material-modal .quick-entry-field::before,html body dialog.material-modal .quick-entry-field:focus-within::before{content:none!important;display:none!important;border:0!important;box-shadow:none!important}
html body dialog.material-modal .quick-entry-field textarea,html body dialog.material-modal .quick-entry-field textarea:focus,html body dialog.material-modal .quick-entry-field textarea:focus-visible,html body dialog.material-modal .quick-entry-field .photo-controls{background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;filter:none!important}

/* Progress and completion stay separate from the homework cards. */
.homework-progress-area{margin:8px 8px 24px}.homework-progress-heading{display:flex;justify-content:space-between;gap:12px;margin:0 4px 12px;color:#bfd0e5;font-size:15px}.homework-progress{height:8px;background:#223950;border-radius:20px;overflow:hidden}.homework-progress>div{height:100%;border-radius:inherit;background:#92dbbb;transition:width .4s ease}.homework-achievement{text-align:center;padding:36px 12px 12px;display:grid;justify-items:center;gap:14px;color:#e8c976}.homework-achievement h3{margin:0;color:#e0eaf8;font-weight:500;line-height:1.45;font-size:23px}.homework-achievement p{margin:0;color:#a8bed6}.homework-achievement .summary-expand{border:0;border-radius:999px;margin-top:8px;padding:12px 20px}.summary-task-list.summary-all-complete:not(.summary-expanded){gap:4px;padding-block:4px}.summary-task-list.summary-all-complete:not(.summary-expanded)>.task-card{min-height:0!important;height:10px!important;padding:0!important;overflow:hidden;pointer-events:none;transition:height .3s ease,padding .3s ease}.summary-task-list.summary-all-complete:not(.summary-expanded)>.task-card>*{visibility:hidden}.summary-task-list.summary-all-complete:not(.summary-expanded)>.task-card:first-child{border-radius:20px 20px 4px 4px}.summary-task-list.summary-all-complete:not(.summary-expanded)>.task-card:last-child{border-radius:4px 4px 20px 20px}
/* Appearance preferences. */
dialog.modal [data-text-scaled],.undo-toast [data-text-scaled]{font-size:calc(var(--text-base) * var(--text-scale,1))!important;transition:font-size .2s ease}
.view-settings{display:grid;gap:16px;min-width:0}.view-settings h3{margin:4px 0;font-size:17px;font-weight:500}.view-density{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.view-density button{border:0!important;border-radius:999px;min-height:52px;padding:12px 24px}.text-scale-options{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:5px;border-radius:999px;background:#22364d;isolation:isolate}.text-scale-options button{position:relative;z-index:1;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:999px;padding:12px 0;min-width:0;min-height:46px;color:#d4e4f8;font-size:14px}.text-scale-options button[aria-pressed=true]{color:#10263c}.text-scale-thumb{position:absolute;left:5px;top:5px;bottom:5px;width:calc((100% - 10px)/6);background:#b6d2fa;border-radius:999px;z-index:0;transition:transform .28s cubic-bezier(.22,1,.36,1)}
html[data-density=compact] body .task-card{padding:14px 18px;min-height:0}html[data-density=compact] body .task-card p{margin-block:8px}html[data-density=compact] body .quick-card{padding:14px 18px}html[data-density=compact] body .dated-schedule-lesson{padding:10px 12px!important;min-height:0!important}html[data-density=compact] body .settings-category-list>.settings-menu-row{min-height:58px!important;padding-block:10px!important}html[data-density=compact] body .member-row{padding-block:12px;min-height:0}html[data-density=compact] body .notification-item{padding-block:12px;min-height:0}
/* A timed undo action, above open dialogs. */
.undo-toast{position:fixed;inset:auto 16px max(20px,env(safe-area-inset-bottom)) 16px;margin:0 auto;width:max-content;max-width:calc(100vw - 32px);box-sizing:border-box;display:flex;align-items:center;gap:18px;padding:12px 14px 12px 20px;border:0;border-radius:28px;background:#2c425c;color:#e6effc;box-shadow:0 8px 28px #0004;z-index:99999}.undo-toast:not(:popover-open){display:none}.undo-button{position:relative;flex-shrink:0;border:0;background:#405b79;border-radius:999px;min-height:44px;padding:10px 18px;color:#e6efff}.undo-button svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.undo-button rect{fill:none;stroke:#b7d5f8;stroke-width:1.5;stroke-dasharray:100;stroke-dashoffset:0;animation:undo-countdown 8s linear forwards}@keyframes undo-countdown{to{stroke-dashoffset:100}}
/* Search remains fixed in width, next to the history close button. */
.subject-history-toolbar{position:sticky;z-index:5}.subject-history-search{position:absolute;right:60px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:flex-end;gap:0;border-radius:999px;background:#223950}.subject-history-search input{width:0!important;min-width:0!important;max-width:160px;padding:0!important;opacity:0;border:0!important;transition:width .25s ease,padding .25s ease,opacity .2s ease;background:transparent!important}.subject-history-search:hover input,.subject-history-search:focus-within input{width:150px!important;padding:10px 12px!important;opacity:1}.subject-history-search button{flex:none}.subject-search-sheet{display:flex;align-items:center;gap:10px}.subject-search-sheet input{flex:1;min-width:0;border-radius:999px}.subject-search-sheet button{flex:none;border-radius:50%}
html:root body dialog.material-modal .dated-schedule-lesson.is-cancelled-lesson{opacity:.42;border:1px dashed #9db9d2!important;box-shadow:none!important}
.notification-announce,.notification-clear-all{width:48px!important;height:48px!important;min-width:48px!important;padding:0!important;border-radius:50%!important;display:grid;place-items:center}
@media(min-width:721px){body .notification-row-inner{position:relative}body .notification-delete{position:absolute!important;right:14px!important;top:14px!important;bottom:auto!important;left:auto!important;width:32px!important;height:32px!important;padding:6px!important;z-index:2;border:0!important;border-radius:50%!important;background:transparent!important;color:#bfd2e8!important;transform:none!important}body .notification-item{padding-right:60px!important}}
.session-remove{width:44px!important;height:44px!important;min-width:44px!important;padding:0!important;border-radius:50%!important;display:grid;place-items:center}.session-row{position:relative}.session-history-remove{position:absolute;top:10px;right:12px;border:0;background:transparent;border-radius:50%;width:32px;height:32px;color:#bfd1e7;font-size:24px}.session-inactive{padding-right:50px;touch-action:pan-y}.session-inactive .session-device-icon{opacity:.65}.session-inactive small{font-size:12px}
@media(max-width:720px){.subject-history-search{background:transparent;right:50px}.subject-history-search input{display:none}.subject-history-filters{padding-right:94px}.subject-history-filters .icon-button{width:40px;height:40px;min-width:40px}.homework-progress-area{margin:4px 4px 20px}.homework-achievement{padding-top:28px}.homework-achievement h3{font-size:21px}.undo-toast{gap:12px;font-size:14px}.session-row>span:not(.session-device-icon){flex-basis:calc(100% - 68px)}.session-remove{margin-left:0!important}.session-star{margin-left:54px}}
@media(prefers-reduced-motion:reduce){.homework-progress>div,.text-scale-thumb,[data-text-scaled]{transition:none}}

html body dialog.modal .notification-announce,html body dialog.modal .notification-clear-all{background:#263d56!important;border:0!important}

html body dialog.modal .summary-fold-strip{position:relative;display:grid;place-items:center;justify-self:stretch;width:100%;height:24px;min-height:24px!important;padding:0!important;margin-top:22px;border:0!important;border-radius:999px!important;background:#193e35!important;color:#a8e6cb;box-shadow:none!important;cursor:pointer}.summary-fold-strip::before{content:"";position:absolute;inset:-10px 0;border-radius:inherit}.summary-fold-strip svg{transition:transform .25s ease;pointer-events:none}.summary-fold-strip.is-expanded svg{transform:rotate(180deg)}.summary-fold-strip:hover{filter:brightness(1.15)}.summary-task-list.summary-all-complete:not(.summary-expanded){display:none!important}.summary-fold-strip:focus-visible{outline:2px solid #a8e6cb!important;outline-offset:3px}@media(prefers-reduced-motion:reduce){.summary-fold-strip svg{transition:none}}

/* Search and close occupy separate layout cells; no overlapping hit areas. */
html body dialog.material-modal .subject-history-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:14px}
html body dialog.material-modal .subject-history-filters{grid-column:1;justify-self:center;padding-right:0!important;min-width:0}
.subject-history-actions{grid-column:2;display:flex;align-items:center;gap:12px;min-width:0}
html body dialog.material-modal .subject-history-search{position:relative;right:auto;top:auto;transform:none;display:flex;align-items:center;border-radius:999px!important;overflow:hidden;background:#223950;flex-shrink:0}
html body dialog.material-modal .subject-history-search input{border-radius:999px!important;box-shadow:none!important;outline:0!important;max-width:140px;background:transparent!important}
html body dialog.material-modal .subject-history-search:hover input,html body dialog.material-modal .subject-history-search:focus-within input{width:140px!important}
html body dialog.material-modal .subject-history-actions .subject-history-close{position:static;transform:none;flex:none;margin:0}
html body dialog.material-modal .subject-search-sheet input{border-radius:999px!important}
.interface-presence{display:grid;grid-template-rows:1fr;opacity:1;transition:grid-template-rows .18s ease,opacity .18s ease}.interface-presence>.homework-achievement{overflow:hidden;min-height:0}.interface-presence.is-entering{animation:interface-surface-in .2s ease both}.interface-presence.is-leaving{grid-template-rows:0fr;opacity:0;pointer-events:none}.interface-presence.is-leaving>.homework-achievement{padding-block:0;transition:padding .18s ease}
.subject-history-results{transition:opacity .11s ease,transform .11s ease}.subject-history-results.results-leaving{opacity:0;transform:translateY(4px);pointer-events:none}.subject-history-results.results-entering{opacity:1;transform:none;animation:interface-surface-in .16s ease both}
.view-settings,.sessions-panel,.schedule-category-list,.schedule-flow-form,.settings-choice-options,.quick-editor{animation:interface-surface-in .2s ease both}
.notification-row,.session-row{animation:interface-surface-in .18s ease both}
.undo-toast{animation:interface-toast-in .2s ease both;transition:opacity .18s ease,transform .18s ease}.undo-toast.is-leaving{opacity:0;transform:translateY(8px);animation:none;pointer-events:none}
@keyframes interface-surface-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes interface-toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:720px){html body dialog.material-modal .subject-history-toolbar{gap:10px}.subject-history-actions{gap:10px}html body dialog.material-modal .subject-history-filters{gap:6px;justify-self:center}html body dialog.material-modal .subject-history-search input{display:none!important}.subject-history-search{background:transparent}}
html[data-optimized] .subject-history-results,html[data-optimized] .interface-presence{transition-duration:60ms!important}
@media(prefers-reduced-motion:reduce){.interface-presence,.subject-history-results,.undo-toast{transition:none!important;animation:none!important}.view-settings,.sessions-panel,.schedule-category-list,.schedule-flow-form,.settings-choice-options,.quick-editor,.notification-row,.session-row{animation:none!important}}

.view-density{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.view-density button{min-width:0!important;padding:12px 10px;overflow-wrap:anywhere;line-height:1.35}
html[data-density=supercompact] body .task-card{padding:10px 12px!important;min-height:0!important;gap:8px}
html[data-density=supercompact] body .task-card p{margin-block:5px;line-height:1.4}
html[data-density=supercompact] body .task-card-heading{gap:6px;min-width:0}
html[data-density=supercompact] body .task-card-heading h3{min-width:0;overflow-wrap:anywhere}
html[data-density=supercompact] body .task-card-content{min-width:0}
html[data-density=supercompact] body .task-list{gap:3px}
html[data-density=supercompact] body .quick-card{padding:10px 12px!important;min-height:0!important}
html[data-density=supercompact] body .quick-due{margin-block:5px}
html[data-density=supercompact] body .quick-editor{gap:8px}
html[data-density=supercompact] body .quick-entry-field textarea{min-height:78px!important}
html[data-density=supercompact] body .quick-save-row{gap:6px}
html[data-density=supercompact] body .dated-schedule-lesson{padding:8px 10px!important;min-height:0!important;gap:4px}
html[data-density=supercompact] body .dated-schedule-lesson h4{margin-block:4px;line-height:1.3;min-width:0;overflow-wrap:anywhere}
html[data-density=supercompact] body .dated-schedule-day{gap:3px}
html[data-density=supercompact] body .settings-category-list>.settings-menu-row{min-height:50px!important;padding:9px 12px!important;gap:10px}
html[data-density=supercompact] body .settings-category-list small{display:none!important}
html[data-density=supercompact] body .categorized-settings{gap:18px}
html[data-density=supercompact] body .settings-category h3{margin-bottom:8px}
html[data-density=supercompact] body .member-row{min-height:0!important;padding-block:9px}
html[data-density=supercompact] body .notification-item{min-height:0!important;padding-block:10px}
html[data-density=supercompact] body .session-row{padding:10px 12px;gap:9px;min-width:0}
html[data-density=supercompact] body .homework-achievement{padding-top:20px;gap:10px}
@media(max-width:720px){.view-density{grid-template-columns:1fr}.view-density button{min-height:44px;width:100%;padding:10px 12px;overflow-wrap:normal}html[data-density=supercompact] body .task-number-column{min-width:36px}html[data-density=supercompact] body .task-card-heading{flex-wrap:wrap}html[data-density=supercompact] body .task-card-heading>span{white-space:nowrap}html[data-density=supercompact] body .settings-category-list>.settings-menu-row{min-height:52px!important}}

.session-row{transition:opacity .16s ease,transform .16s ease}.session-row.is-session-leaving{animation:none!important;opacity:0;transform:translateX(-14px);pointer-events:none}.session-star{transition:background-color .2s ease,color .2s ease,transform .15s ease}.session-star:active{transform:scale(.94)}

/* Supercompact keeps homework text on the same scale as schedule subjects. */
html[data-density=supercompact] body :is(.task-card-heading h3,.task-card p,.homework-unit .homework-card label>span,.homework-unit .homework-card p,.quick-subject strong,.dated-schedule-lesson h4){font-size:calc(16px * var(--text-scale,1))!important;line-height:1.35!important}
html[data-density=supercompact] body :is(.cabinet-section-heading h3,.dated-schedule-heading h3,.bell-overview h3){font-size:calc(18px * var(--text-scale,1))!important;line-height:1.3!important}
html[data-density=supercompact] body .modal-heading h2{font-size:calc(22px * var(--text-scale,1))!important;line-height:1.3!important}
html[data-density=supercompact] body :is(.task-number,.homework-order){font-size:calc(22px * var(--text-scale,1))!important;line-height:1.2!important}
html[data-density=supercompact] body :is(.task-card,.homework-unit,.quick-card) .subject-icon{width:30px!important;height:30px!important;flex-basis:30px!important;min-width:30px!important}
html[data-density=supercompact] body :is(.task-card,.homework-unit,.quick-card) .subject-icon svg{width:22px!important;height:22px!important}
html[data-density=supercompact] body .homework-unit{padding:10px 12px!important;gap:8px!important;min-height:0!important}
html[data-density=supercompact] body .homework-card>p{margin-block:5px!important}
html[data-density=supercompact] body .homework-card:not(:has(.attachment-thumb)){min-height:0!important}
html[data-density=supercompact] body .no-assignment-hint,html[data-density=supercompact] body .no-homework-note{display:none!important}
html[data-density=supercompact] body .cabinet-section{margin-top:16px!important}
html[data-density=supercompact] body .cabinet-section-heading{margin-bottom:10px!important;gap:10px}
html[data-density=supercompact] body .homework-date-navigation{min-height:82px!important;margin-block:8px 12px!important;padding-block:0!important}
html[data-density=supercompact] body .date-month-label{font-size:calc(13px * var(--text-scale,1))!important;margin-bottom:6px!important;line-height:1.3!important}
html[data-density=supercompact] body .date-orb{width:58px!important;height:62px!important;min-height:0!important;border-radius:22px!important}
html[data-density=supercompact] body .date-orb-inner{gap:2px!important;padding:5px!important}
html[data-density=supercompact] body .date-orb-inner>span{font-size:calc(25px * var(--text-scale,1))!important;line-height:1.1!important}
html[data-density=supercompact] body :is(.date-orb-inner small,.date-neighbor small){font-size:calc(12px * var(--text-scale,1))!important;line-height:1.2!important}
html[data-density=supercompact] body .date-neighbor>span{font-size:calc(18px * var(--text-scale,1))!important}
html[data-density=supercompact] body .homework-date-panel{min-height:0!important}
html[data-density=supercompact] body .homework-list{gap:3px!important}
html[data-density=supercompact] body :is(.task-card-content,.homework-unit-content){min-width:0;overflow-wrap:anywhere}
html[data-density=supercompact] body .homework-unit:not(:has(.attachment-thumb)) .homework-card label{margin-bottom:0!important}
html[data-density=supercompact] body .homework-achievement h3{font-size:calc(18px * var(--text-scale,1))!important}
html[data-density=supercompact] body .subject-history-title p{margin-block:3px 0}

/* The landing screen always retains its original typography and spacing. */
body .site-shell .hero,body .site-shell .cabinet-entry,body .site-shell .topbar{--text-scale:1}

html body dialog.material-modal .notification-settings{display:flex;flex-direction:column;gap:4px;min-width:0}html body dialog.material-modal .notification-settings>.notification-setting{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 18px;background:#22364d;border-radius:6px;min-width:0;margin:0}html body dialog.material-modal .notification-settings>.notification-setting:first-child{border-top-left-radius:28px;border-top-right-radius:28px}html body dialog.material-modal .notification-settings>.notification-setting:nth-last-child(1 of .notification-setting){border-bottom-left-radius:28px;border-bottom-right-radius:28px}.notification-setting>span,.notification-setting>label{min-width:0;flex:1}.notification-setting strong{display:block;font-weight:500;line-height:1.35}.notification-setting small{display:block;line-height:1.4;margin-top:5px}.notification-setting .toggle-switch{flex:none}.notification-reminder-time label{display:grid;gap:8px}.notification-settings>small{padding:10px 18px;margin:0;background:#22364d;color:#b8cce4}.notification-reminder-time input{max-width:160px}.notification-reminder-time button{border-radius:999px}@media(max-width:600px){html body dialog.material-modal .notification-settings>.notification-setting{padding:15px 14px;gap:12px}.notification-reminder-time{flex-wrap:wrap}.notification-reminder-time input{max-width:100%}}
