/* BreakMed 3.15 — a reading room for the everyday study workflow. */
.workspace-body {
  --workspace-link: var(--accent);
  --sidebar-width: 244px;
  --top: 76px;
  --max: 1260px;
  background: var(--bg) !important;
  font-size: 15px;
}
.workspace-body .ui-icon { flex-shrink: 0; stroke-width: 1.7; }
html[data-theme="light"] .workspace-body { --workspace-link: #18715f; background: var(--bg) !important; }
html[data-theme="light"] .workspace-body .topbar { background: var(--bg) !important; box-shadow: none !important; }
@media(prefers-color-scheme:light) {
  html[data-theme="auto"] .workspace-body { --workspace-link: #18715f; background: var(--bg) !important; }
  html[data-theme="auto"] .workspace-body .topbar { background: var(--bg) !important; box-shadow: none !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 120; padding: 12px 18px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.workspace-sidebar { display: none; }
.workspace-body .topbar { display: flex; gap: 20px; padding: 0 36px; background: var(--bg) !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
.workspace-body .topbar .brand-logo { height: 38px; width: 38px; border-radius: 10px; }
.workspace-location { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 13px; }
.workspace-location > span { color: var(--muted); }
.workspace-location > .ui-icon { width: 14px; color: var(--muted-2); }
.workspace-location > strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-body .topbar-actions { margin-left: auto; }
.workspace-body .topbar .icon-button { border: 0; background: transparent !important; }
.workspace-body .page-shell { width: min(var(--max),calc(100% - 72px)); padding: 40px 0 64px; overflow-x: visible; }
.workspace-body .footer { width: min(var(--max),calc(100% - 72px)); font-size: 12px; }
.workspace-body .footer-link { border: 0; background: transparent; padding: 8px; font-weight: 600; }
.workspace-body .footer .ui-icon { width: 16px; height: 16px; }
.workspace-body .section-head h1 { font-size: clamp(30px,3.4vw,44px); }
.workspace-body .section-head h2 { font-size: clamp(24px,2.2vw,30px); }
.workspace-body .section-head p { font-size: 14px; line-height: 1.6; }
.workspace-body .stage-kicker { display: none; }
.workspace-body .menu-button { padding: 0; }
.workspace-body .feedback-fab { display: none; }
.workspace-body .side-menu { border-radius: 18px 0 0 18px; }
.workspace-body .menu-nav a { font-weight: 600; font-size: 14px; }
.workspace-body .menu-nav a.active { background: var(--accent-soft); color: var(--accent); }
.workspace-body .menu-nav .ui-icon { width: 21px; height: 21px; }
.workspace-body .feedback-modal h2 { font-family: Onest, sans-serif; font-size: 24px; }
.workspace-body .feedback-modal .eyebrow { display: none; }
.workspace-body .feedback-modal { max-height: calc(100dvh - 40px); overflow-y: auto; }
.workspace-body .primary-button { box-shadow: none !important; }
.workspace-body .profile-chip { padding-right: 10px; border: 0; background: transparent !important; }
.workspace-body .profile-chip b { font-weight: 600; }
.workspace-body .profile-chip > span { background: var(--accent-soft) !important; color: var(--accent) !important; }

/* The library is the first action; announcements sit after the study content. */
.library-intro { display: grid; grid-template-columns: minmax(0,1fr) 310px; align-items: center; gap: 40px; padding: 10px 0 45px; }
.library-intro h1 { margin: 0; font-family: Onest, sans-serif; font-weight: 700; font-size: clamp(42px,4.5vw,68px); line-height: 1.08; letter-spacing: -.035em; }
.library-intro h1 span { color: var(--workspace-link); }
.library-intro-copy > p { margin: 23px 0 0; font-size: 15px; line-height: 1.65; color: var(--muted); }
.library-profile-context { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; min-height: 32px; font-size: 12px; color: var(--muted); }
.library-profile-context .ui-icon { width: 16px; height: 16px; }
.study-shortcuts { display: flex; flex-direction: column; gap: 0; }
.study-shortcut { display: grid; grid-template-columns: 24px minmax(0,1fr) 18px; align-items: center; gap: 15px; padding: 21px 14px; border-bottom: 1px solid var(--line-soft); transition: background-color 160ms var(--ease-out); }
.study-shortcut > .ui-icon:first-child { width: 23px; height: 23px; color: var(--muted); }
.study-shortcut strong { display: block; font-family: Onest, sans-serif; font-weight: 600; font-size: 13px; }
.study-shortcut small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.study-shortcut > .ui-icon:last-child { color: var(--muted); width: 16px; transition: transform 180ms var(--ease-out); }
.study-shortcut-primary { padding: 23px 18px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 12px; margin-bottom: 5px; }
.study-shortcut-primary > .ui-icon:first-child, .study-shortcut-primary > .ui-icon:last-child { color: var(--accent-ink); }
.study-shortcut-primary small { color: var(--accent-ink); }
.course-section-head { padding-top: 27px; border-top: 1px solid var(--line); margin-bottom: 22px; align-items: center !important; }
.workspace-body .course-section-head h2 { font-size: 22px; letter-spacing: -.025em; max-width: none; }
.workspace-body .course-section-head p { font-size: 13px; }
.library-path { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 11px; color: var(--muted); }
.library-path .ui-icon { width: 12px; height: 12px; }
.workspace-body .course-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0 0 36px; background: var(--panel); }
.workspace-body .course-card { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 17px; position: relative; min-width: 0; min-height: 162px; padding: 19px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; box-shadow: none !important; transform: none !important; transition: background-color 180ms var(--ease-out),color 180ms var(--ease-out); }
.workspace-body .course-card:last-child { border-right: 0; }
.course-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.course-card-top > .ui-icon { color: var(--muted); width: 19px; height: 19px; }
.workspace-body .course-number { display: block; width: auto; height: auto; background: transparent; color: var(--muted); font-family: Onest,sans-serif; font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -.035em; }
.workspace-body .course-card strong { display: block; font-size: 14px; font-weight: 650; }
.workspace-body .course-card small { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.workspace-body .course-card > b { position: absolute; bottom: 22px; right: 14px; width: 16px; height: 16px; color: var(--muted); opacity: 0; transform: translateX(-4px); transition: opacity 160ms var(--ease-out),transform 180ms var(--ease-out); }
.workspace-body .course-card.active { background: var(--accent); color: var(--accent-ink); }
.workspace-body .course-card.active :is(.course-number,small,.ui-icon,b) { color: var(--accent-ink); }
.workspace-body .course-card.active > b { opacity: 1; transform: none; }
.workspace-body .course-card:focus-visible { outline-offset: -4px; }
.workspace-body .flow-stage { margin-top: 30px; padding-top: 26px; }
.workspace-body .stage-head h2 { font-family: Onest,sans-serif; font-size: 25px; font-weight: 600; letter-spacing: -.025em; }
.workspace-body .subject-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line); }
.workspace-body .subject-button { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; column-gap: 13px; min-width: 0; min-height: 108px; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 17px 14px; box-shadow: none !important; transform: none !important; }
.workspace-body .subject-button > b { display: none; }
.workspace-body .subject-button > strong { font-weight: 600; font-size: 14px; }
.workspace-body .subject-button > small { font-size: 12px; }
.workspace-body .subject-button.active { background: var(--accent-soft); }
.subject-button { --subject-color: var(--workspace-link); }
.subject-button[data-subject-tone="teal"] { --subject-color: #83d5ca; }
.subject-button[data-subject-tone="blue"] { --subject-color: #9fbffc; }
.subject-button[data-subject-tone="violet"] { --subject-color: #c4acec; }
.subject-button[data-subject-tone="coral"] { --subject-color: #f0af9d; }
.subject-button[data-subject-tone="amber"] { --subject-color: #e7c380; }
.subject-button[data-subject-tone="green"] { --subject-color: #b5d98b; }
html[data-theme="light"] .subject-button[data-subject-tone="teal"] { --subject-color: #187a70; }
html[data-theme="light"] .subject-button[data-subject-tone="blue"] { --subject-color: #3d67a7; }
html[data-theme="light"] .subject-button[data-subject-tone="violet"] { --subject-color: #7955aa; }
html[data-theme="light"] .subject-button[data-subject-tone="coral"] { --subject-color: #a55744; }
html[data-theme="light"] .subject-button[data-subject-tone="amber"] { --subject-color: #8d661d; }
html[data-theme="light"] .subject-button[data-subject-tone="green"] { --subject-color: #55782a; }
@media(prefers-color-scheme:light) {
  html[data-theme="auto"] .subject-button[data-subject-tone="teal"] { --subject-color: #187a70; }
  html[data-theme="auto"] .subject-button[data-subject-tone="blue"] { --subject-color: #3d67a7; }
  html[data-theme="auto"] .subject-button[data-subject-tone="violet"] { --subject-color: #7955aa; }
  html[data-theme="auto"] .subject-button[data-subject-tone="coral"] { --subject-color: #a55744; }
  html[data-theme="auto"] .subject-button[data-subject-tone="amber"] { --subject-color: #8d661d; }
  html[data-theme="auto"] .subject-button[data-subject-tone="green"] { --subject-color: #55782a; }
}
.workspace-body .subject-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--subject-color); background: color-mix(in srgb,var(--subject-color) 11%,transparent); }
.workspace-body .subject-icon > .ui-icon { width: 22px; height: 22px; }
.workspace-body .subject-copy { display: grid; gap: 8px; min-width: 0; align-content: center; }
.workspace-body .subject-copy > strong { display: block; font-weight: 600; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.workspace-body .subject-copy > small { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }
.workspace-body .category-grid { gap: 10px; }
.workspace-body .category-grid button { min-height: 124px; padding: 15px; box-shadow: none !important; }
.workspace-body .category-grid button > span { display: grid; place-items: center; width: 26px; height: 26px; background: transparent; padding: 0; border-radius: 0; color: var(--accent); }
.workspace-body .category-grid button > span > .ui-icon { width: 23px; height: 23px; }
.workspace-body .category-grid strong { font-size: 13px; font-weight: 600; }
.workspace-body .category-grid button:disabled { opacity: .65 !important; }
.workspace-body .category-grid small::after { content: none; }
.workspace-body .library-breadcrumbs { border: 0; padding: 12px 0; background: transparent; }
.workspace-body .library-breadcrumbs button { font-weight: 600; font-size: 13px; }
.workspace-body .materials-title h2 { max-width: 35ch; text-wrap: balance; }
.workspace-body .library-tools { position: static; border: 1px solid var(--line); background: var(--panel); box-shadow: none; }
.workspace-body .material-card { min-height: 0; border-radius: 12px; box-shadow: none !important; }
.workspace-body .material-cover { min-height: 125px; }
.workspace-body .material-body h3 { font-family: Onest,sans-serif; font-weight: 600; letter-spacing: -.02em; }
.workspace-body .material-body p { font-size: 13px; }

/* News is a compact reading strip, with real images retained when supplied. */
.workspace-body .news-section { margin: 48px 0 0; }
.workspace-body .news-head { margin-bottom: 22px; }
.workspace-body .news-head h2 { font-size: 24px; }
.workspace-body .news-head p { font-size: 13px; }
.workspace-body .news-head .carousel-controls { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.workspace-body .carousel-controls button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); background: transparent; border-radius: 50%; }
.workspace-body .news-carousel { grid-auto-columns: calc((100% - 32px)/3); gap: 16px; padding: 0 0 12px; }
html .workspace-body .news-card { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent !important; box-shadow: none !important; }
.workspace-body .news-visual { display: none; }
.workspace-body .news-image { aspect-ratio: 2/1; border-radius: 10px; margin-top: 16px; }
.workspace-body .news-content { padding: 20px 0 8px; justify-content: flex-start; flex: 1; }
.workspace-body .news-label { display: none; }
.workspace-body .news-topline { justify-content: flex-start; }
.workspace-body .news-content time { font-size: 11px; color: var(--muted); font-weight: 400; }
.workspace-body .news-content h2 { margin: 13px 0 9px; font-family: Onest,sans-serif; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; font-weight: 600; }
.workspace-body .news-content p { font-size: 13px; line-height: 1.6; margin: 0 0 17px; color: var(--muted); }
html .workspace-body .news-link { margin-top: auto; min-width: 0; min-height: 36px; padding: 4px 0; gap: 12px; border-radius: 0; background: transparent; color: var(--workspace-link); font-size: 12px; font-weight: 600; }
.workspace-body .news-link .ui-icon { width: 14px; height: 14px; }

/* Shared study pages: intentional time column and generous day headers. */
.workspace-body .schedule-title-head { padding: 10px 0 24px; border-bottom: 1px solid var(--line); }
.workspace-body .schedule-filter-panel { padding: 0 0 24px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.workspace-body .schedule-filter-form { grid-template-columns: minmax(0,2.4fr) minmax(80px,.65fr) minmax(100px,1fr) auto; gap: 14px; align-items: end; }
.workspace-body .schedule-filter-form label { min-width: 0; font-weight: 600; font-size: 12px; }
.workspace-body .schedule-filter-form :is(input,select) { width: 100%; min-width: 0; }
.workspace-body .schedule-filter-form .primary-button { min-height: 46px; font-size: 12px; }
.workspace-body .schedule-filter-form .actions { align-items: stretch; flex-direction: column; }
.workspace-body .schedule-filter-form .actions .secondary-button { font-size: 11px; }
.workspace-body .schedule-week-panel { padding: 13px 0; margin: 0 0 18px; }
.workspace-body .current-cycle-panel { border: 0 !important; border-radius: 0; background: transparent !important; padding: 0 0 24px; }
.workspace-body .current-cycle-panel .schedule-day-head { margin-top: 12px; }
.workspace-body .cycle-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.workspace-body .cycle-day-panel { display: grid; grid-template-columns: 146px minmax(0,1fr); align-items: start; gap: 22px; border: 0 !important; border-top: 1px solid var(--line) !important; background: transparent !important; border-radius: 0; padding: 28px 0; }
.workspace-body .cycle-day-panel .schedule-day-head { flex-direction: column; text-align: left; align-items: flex-start; gap: 10px; margin: 2px 0 0; }
.workspace-body .cycle-day-panel .schedule-day-head h2 { font-size: 20px; }
.workspace-body .cycle-day-panel .schedule-day-head p { font-size: 12px; }
.workspace-body .schedule-day-head { margin-top: 32px; align-items: center; }
.workspace-body .schedule-day-head h2 { font-size: 25px; }
.workspace-body .lesson-card { padding: 22px 24px; border-radius: 12px; grid-template-columns: 88px minmax(0,1fr) auto; gap: 24px; transform: none; }
.workspace-body .lesson-time { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-right: 18px; border-right: 1px solid var(--line); }
.workspace-body .lesson-time strong { font-family: Onest,sans-serif; font-size: 22px; font-weight: 600; line-height: 1.15; }
.workspace-body .lesson-time span { margin-top: 5px; font-size: 11px; }
.workspace-body .lesson-title-row h3 { font-family: Onest,sans-serif; font-size: 17px; font-weight: 600; }
.workspace-body .day-tab { min-width: 78px; padding: 14px 18px; border-radius: 10px; }
.workspace-body .day-tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.workspace-body .day-tab.active :is(strong,span,b,small) { color: var(--accent-ink); }
.workspace-body .panel h2 { font-family: Onest,sans-serif; font-weight: 600; }

/* A single entrance sequence; frequent interactions stay short and interruptible. */
@keyframes reading-room-enter { from { opacity: .35; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media(prefers-reduced-motion:no-preference) {
  html:not([data-input-method="keyboard"]) .library-intro-copy { animation: reading-room-enter 280ms var(--ease-out) both; }
  html:not([data-input-method="keyboard"]) .study-shortcuts { animation: reading-room-enter 280ms 45ms var(--ease-out) both; }
  html:not([data-input-method="keyboard"]) .course-grid { animation: reading-room-enter 280ms 85ms var(--ease-out) both; }
}
@media(hover:hover) and (pointer:fine) {
  .workspace-nav a:hover { background: var(--panel); color: var(--text); }
  .workspace-body .course-card:hover:not(.active) { background: var(--panel-3); }
  .workspace-body .course-card:hover > b { opacity: 1; transform: none; }
  .study-shortcut:hover { background: var(--panel); }
  .study-shortcut-primary:hover { background: var(--accent-2); }
  .study-shortcut:hover > .ui-icon:last-child { transform: translateX(3px); }
  .workspace-body .subject-button:hover { background: var(--panel); }
  .sidebar-feedback:hover, .sidebar-profile:hover { background: var(--panel); }
  .library-profile-context:hover { color: var(--text); }
  .workspace-body .menu-nav a:hover, .workspace-body .lesson-card:hover { transform: none; box-shadow: none !important; }
}
.workspace-nav a:active, .study-shortcut:active, .mobile-dock button:active, .mobile-dock a:active { transform: scale(.98); }
html[data-input-method="keyboard"] :is(.side-menu,.menu-backdrop,.feedback-modal,.feedback-modal-backdrop,.library-intro-copy,.study-shortcuts,.course-grid) { animation: none !important; transition: none !important; }
@media(prefers-reduced-motion:reduce) {
  .workspace-body *, .workspace-body *::before, .workspace-body *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .workspace-body :is(a,button):hover, .workspace-body :is(a,button):active { transform: none !important; }
}

@media(min-width:1180px) {
  .workspace-body { padding-left: var(--sidebar-width); }
  .workspace-sidebar { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); padding: 28px 18px 16px; background: var(--bg-2); border-right: 1px solid var(--line-soft); z-index: 60; overflow-y: auto; }
  .workspace-brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 42px; }
  .workspace-brand img { border-radius: 12px; }
  .workspace-brand strong { display: block; font-family: Onest,sans-serif; font-size: 22px; letter-spacing: -.03em; line-height: 1.2; }
  .workspace-brand strong span { color: var(--accent); }
  .workspace-brand small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
  .workspace-nav { display: grid; gap: 5px; }
  .workspace-nav a { display: flex; align-items: center; gap: 11px; padding: 13px 12px; min-height: 47px; font-size: 13px; font-weight: 550; color: var(--muted); border-radius: 9px; transition: background-color 160ms var(--ease-out),color 160ms var(--ease-out),transform 120ms var(--ease-out); }
  .workspace-nav a > .ui-icon { width: 20px; height: 20px; }
  .workspace-nav a.active { background: var(--accent); color: var(--accent-ink); font-weight: 650; }
  .nav-active-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-left: auto; }
  .nav-group-label { font-size: 11px; font-weight: 500; color: var(--muted-2); padding: 22px 12px 5px; }
  .workspace-sidebar-bottom { margin-top: auto; padding-top: 32px; }
  .sidebar-feedback { border: 0; background: transparent; color: var(--muted); display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 10px; margin-bottom: 16px; text-align: left; border-radius: 9px; cursor: pointer; font-size: 12px; }
  .sidebar-feedback > .ui-icon:last-child { margin-left: auto; width: 14px; }
  .sidebar-profile { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding: 19px 4px 4px; }
  .sidebar-avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
  .sidebar-profile > span:nth-child(2) { min-width: 0; }
  .sidebar-profile strong { display: block; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar-profile small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
  .sidebar-profile > .ui-icon { margin-left: auto; width: 14px; color: var(--muted); }
  .workspace-body .topbar > .brand { display: none; }
  .workspace-body .topbar { padding: 0 44px; }
  .workspace-body .page-shell, .workspace-body .footer { width: min(var(--max),calc(100% - 88px)); }
  .mobile-dock { display: none; }
}
@media(max-width:1179px) {
  .workspace-body .footer { padding-bottom: 110px; }
  .mobile-dock { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); position: fixed; inset: auto 0 0; z-index: 65; padding: 8px max(10px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left)); border-top: 1px solid var(--line); background: var(--bg-2); }
  .mobile-dock a, .mobile-dock button { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; min-height: 48px; background: transparent; border: 0; border-radius: 9px; color: var(--muted); font-size: 10px; font-weight: 500; cursor: pointer; transition: transform 120ms var(--ease-out),background-color 160ms var(--ease-out); }
  .mobile-dock .ui-icon { width: 21px; height: 21px; }
  .mobile-dock .active { color: var(--workspace-link); background: var(--accent-soft); }
}
@media(max-width:900px) {
  .workspace-body .schedule-filter-form { grid-template-columns: minmax(0,2fr) minmax(80px,1fr) minmax(80px,1fr); }
  .workspace-body .schedule-filter-form .actions { grid-column: 1/-1; flex-direction: row; }
  .library-intro { grid-template-columns: minmax(0,1fr) 280px; gap: 24px; }
  .library-intro h1 { font-size: 48px; }
  .library-path { display: none; }
  .workspace-body .course-card { padding: 14px; }
  .workspace-body .category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .workspace-body .news-carousel { grid-auto-columns: calc((100% - 16px)/2); }
}
@media(max-width:700px) {
  .workspace-body .schedule-filter-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-body .schedule-filter-form > label:first-child { grid-column: 1/-1; }
  .workspace-body .schedule-filter-form .actions > * { flex: 1; }
  .workspace-body .cycle-day-panel { grid-template-columns: 1fr; gap: 16px; padding: 24px 0 8px; }
  .workspace-body .cycle-day-panel .schedule-day-head { flex-direction: row; justify-content: space-between; align-items: center; }
  .workspace-body .cycle-summary-grid { grid-template-columns: 1fr; }
  .workspace-body { --top: 64px; }
  .workspace-body .topbar { padding: 0 18px; gap: 12px; }
  .workspace-location > span, .workspace-location > .ui-icon { display: none; }
  .workspace-location { font-size: 13px; }
  .workspace-body .topbar .profile-chip { display: none; }
  .workspace-body .topbar-actions { gap: 3px; }
  .workspace-body .topbar .icon-button { width: 35px; }
  .workspace-body .page-shell { width: calc(100% - 36px); padding-top: 27px; }
  .workspace-body .footer { width: calc(100% - 36px); }
  .library-intro { grid-template-columns: 1fr; gap: 26px; padding: 6px 0 29px; }
  .library-intro h1 { font-size: clamp(35px,9.4vw,58px); }
  .library-intro-copy > p { font-size: 13px; margin-top: 16px; }
  .library-profile-context { margin-top: 12px; font-size: 11px; }
  .study-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .study-shortcut { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 88px; gap: 12px; padding: 13px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
  .study-shortcut-primary { margin: 0; background: var(--accent); border-color: transparent; }
  .study-shortcut strong { font-family: inherit; font-size: 11px; line-height: 1.35; font-weight: 600; }
  .study-shortcut small, .study-shortcut > .ui-icon:last-child { display: none; }
  .study-shortcut > .ui-icon:first-child { width: 21px; height: 21px; }
  .course-section-head { padding-top: 24px; margin-bottom: 18px; }
  .workspace-body .course-section-head { text-align: left; align-items: flex-start !important; }
  .workspace-body .news-head { flex-direction: row; align-items: center; text-align: left; }
  .workspace-body .course-section-head h2 { font-size: 21px; }
  .workspace-body .course-section-head p { font-size: 12px; }
  .workspace-body .course-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .workspace-body .course-card { min-height: 127px; padding: 15px; gap: 12px; }
  .workspace-body .course-card:nth-child(3) { border-right: 0; }
  .workspace-body .course-card:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .workspace-body .course-number { font-size: 32px; }
  .workspace-body .course-card strong { font-size: 13px; }
  .workspace-body .course-card small { font-size: 10px; }
  .workspace-body .course-card > b { right: 8px; bottom: 18px; }
  .workspace-body .subject-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-body .subject-button { min-height: 110px; padding: 14px 10px; }
  .workspace-body .subject-button > strong { font-size: 13px; }
  .workspace-body .subject-copy > strong { font-size: 13px; }
  .workspace-body .news-section { margin-top: 38px; }
  .workspace-body .news-carousel { grid-auto-columns: 86%; }
  .workspace-body .news-content h2 { font-size: 20px; }
  .workspace-body .news-head h2 { font-size: 23px; }
  .workspace-body .section-head h1 { font-size: 32px; }
  .workspace-body .lesson-card { padding: 17px 14px; grid-template-columns: 63px minmax(0,1fr); gap: 13px; }
  .workspace-body .lesson-time { padding-right: 10px; }
  .workspace-body .lesson-time strong { font-size: 18px; }
  .workspace-body .lesson-title-row h3 { font-size: 15px; overflow-wrap: anywhere; }
  .workspace-body .lesson-card > .status-pill { grid-column: 2; }
  .workspace-body .schedule-title-head { flex-direction: column; gap: 16px; }
  .workspace-body .day-tab { min-width: 61px; padding: 12px; }
}
@media(max-width:370px) {
  .workspace-body .topbar { padding: 0 12px; gap: 9px; }
  .workspace-body .search-trigger { display: none; }
  .workspace-body .page-shell, .workspace-body .footer { width: calc(100% - 28px); }
  .workspace-body .course-card { padding: 12px; }
  .workspace-body .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:560px) {
  .workspace-body .subject-grid { grid-template-columns: 1fr; }
  .workspace-body .subject-button { min-height: 86px; padding: 16px 10px; column-gap: 14px; }
  .workspace-body .subject-copy > strong { font-size: 14px; }
}
