.workspace-page { color: var(--ink); background: var(--canvas); font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif; font-size: 16px; line-height: 1.6; }
.workspace-page, .auth-page { display: flex; flex-direction: column; }
.workspace-shell { flex: 1; }
.auth-page > .auth-layout { width: 100%; }
.site-footer { flex-shrink: 0; margin-top: auto; padding: 8px 20px 12px; text-align: center; font-size: 14px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-underline-offset: 3px; }
.workspace-page > .site-footer { margin-left: 244px; }
.assignment-authoring > .site-footer { margin-bottom: var(--draft-save-height, 150px); }
@media (max-width: 1180px) { .teaching-workspace > .site-footer { margin-left: 226px; } }
@media (max-width: 1100px) { .workspace-page > .site-footer { margin-left: 226px; } }
@media (max-width: 760px) { .workspace-page > .site-footer { margin-left: 0; } }
@media print { .site-footer { display: none; } }
.role-sidebar { width: 244px; position: fixed; inset: 0 auto 0 0; background: #f0f3ed; border-right: 1px solid var(--line); padding: 31px 20px 0; display: flex; flex-direction: column; z-index: 30; overflow-y: auto; }
.nav-label { margin: 30px 12px 12px; font-size: 14px; color: var(--muted); letter-spacing: 1px; }
.sidebar-class-form { display: grid; gap: 7px; margin-top: 25px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf8; }
.sidebar-class-form label { color: var(--muted); font-size: 14px; }
.sidebar-class-form select { width: 100%; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 16px; font-weight: 700; }
.sidebar-class-form button { justify-self: start; min-height: 44px; padding: 6px 0; font-size: 14px; }
.primary-nav { display: grid; gap: 7px; }
.navigation-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.primary-nav a { border-radius: 9px; padding: 13px; display: flex; align-items: center; gap: 13px; text-align: left; color: #56665b; min-height: 46px; text-decoration: none; }
.primary-nav a:hover { background: #e7ece2; }
.primary-nav a[aria-current='page'] { background: #dfe9da; color: var(--green-dark); font-weight: 700; }
.sidebar-account { margin-top: auto; border-top: 1px solid var(--line); display: flex; gap: 10px; padding: 20px 0 10px; align-items: center; }
.sidebar-account > div { min-width: 0; overflow-wrap: anywhere; }
.account-name { font-size: 14px; }
.sidebar-account small { display: block; color: var(--muted); font-size: 14px; }
.account-avatar { width: 37px; height: 37px; border-radius: 50%; background: #e5d9c4; color: #6d5c3b; display: inline-grid; place-items: center; flex-shrink: 0; }
.sidebar-logout { margin: 0 0 12px 47px; }
.sidebar-logout button { min-height: 44px; font-size: 14px; }
.workspace-main { margin-left: 244px; min-width: 0; }
.workspace-header { min-height: 72px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 12px 36px; background: #fafbf8; font-size: 14px; color: var(--muted); }
.workspace-main > .page { max-width: 1430px; margin: auto; padding: 32px 36px 42px; }
.mobile-menu, .navigation-close { display: none; }
.navigation-scrim { position: fixed; z-index: 29; inset: 0; border: 0; background: #19312466; }
.workspace-page .panel { border: 1px solid var(--line); background: white; border-radius: 15px; box-shadow: none; }
.workspace-page .button.primary { background: var(--green); }
.workspace-page .page > .notice { margin-bottom: 20px; }
.workspace-page .table-wrap, .workspace-page .table-scroll { max-width: 100%; }
.navigation-open { overflow: hidden; }
.session-verifying > :not(.session-check), .session-verifying > :not(.session-check) * { visibility: hidden !important; }
.session-check { width: min(550px, calc(100% - 36px)); max-height: calc(100dvh - 36px); overflow: auto; visibility: visible; }
.session-check .button { margin-top: 20px; }
@media (max-width: 1100px) { .role-sidebar { width: 226px; padding-inline: 15px; } .workspace-main { margin-left: 226px; } .workspace-main > .page { padding: 26px 24px 36px; } }
@media (max-width: 760px) {
  .role-sidebar { width: 244px; max-width: calc(100% - 48px); visibility: hidden; transform: translateX(-100%); }
  .role-sidebar[data-open] { visibility: visible; transform: none; }
  .workspace-main { margin-left: 0; }
  .workspace-header { min-height: 64px; padding: 8px 18px; }
  .workspace-main > .page { padding: 24px 18px 36px; }
  .mobile-menu, .navigation-close { display: inline-flex; min-height: 44px; align-items: center; }
  .navigation-close { align-self: flex-end; }
}
@media print { .role-sidebar, .workspace-header, .navigation-scrim, .skip-link { display: none !important; } .workspace-main { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .workspace-page * { transition: none !important; } }
.nav-group { display: grid; gap: 7px; }
.workspace-breadcrumb { display: flex; align-items: center; gap: 16px; min-width: 0; }
.teaching-workspace .primary-nav { display: block; }
.teaching-workspace .role-sidebar, .teaching-workspace .workspace-header, .shell-account-dialog { font-synthesis: none; }
.teaching-workspace :is(button, a, input, select):focus-visible { outline: 3px solid #72a487; outline-offset: 3px; }
.teaching-workspace .nav-count { margin-left: auto; display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 6px; background: #e3e8de; font-size: 14px; }
.teaching-workspace .workspace-class-picker { display: block; margin-top: 37px; padding: 13px 12px; border: 1px solid #d7e0d3; border-radius: 11px; background: #f9faf7; }
.shell-select-wrap { display: flex; align-items: center; gap: 6px; }
.shell-select-wrap .navigation-icon { width: 16px; }
.teaching-workspace .shell-select-wrap select { min-height: 0; height: 39px; font-size: 16px; font-weight: 600; cursor: pointer; }
.class-caption { font-size: 14px; color: var(--muted); white-space: normal; }
.sidebar-bottom { margin-top: auto; }
.sidebar-note { display: flex; align-items: flex-start; gap: 9px; color: #62735e; font-size: 14px; padding: 30px 7px; }
.sidebar-note p { margin: 0; line-height: 1.7; }
.sidebar-note .navigation-icon { color: #6e9072; margin-top: 3px; }
.teaching-workspace .sidebar-account { margin-top: 0; padding: 20px 0; }
.teaching-workspace .sidebar-account small { margin-top: 3px; }
.teaching-workspace .sidebar-logout { margin: -10px 0 12px 47px; }
.teaching-workspace .sidebar-logout button { padding: 8px 0; font-weight: 600; }
.shell-icon-button { width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; background: transparent; border: 0; border-radius: 9px; color: inherit; flex-shrink: 0; }
.shell-icon-button:hover { background: var(--sage); }
.account-toggle { margin-left: auto; width: 30px; }
.teaching-workspace .workspace-header { height: 72px; min-height: 72px; justify-content: space-between; padding: 0 36px; }
.teaching-workspace .workspace-breadcrumb { gap: 13px; }
.workspace-breadcrumb > span { flex-shrink: 0; }
.workspace-breadcrumb strong { font-weight: 500; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb-divider { color: #a3aea1; }
.workspace-date { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); flex-shrink: 0; }
.workspace-date .navigation-icon { width: 15px; }
.shell-account-dialog { width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 42px); padding: 0; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: white; box-shadow: 0 25px 90px #11251f33; }
.shell-account-dialog::backdrop { background: #152d285f; backdrop-filter: blur(4px); }
.shell-dialog-heading { padding: 24px 26px 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.shell-dialog-heading h2 { margin: 0; font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; font-size: 21px; line-height: 1.55; color: var(--ink); }
.shell-dialog-body { padding: 0 26px 26px; }
.shell-dialog-body p { margin: 0; font-size: 16px; line-height: 1.7; color: #66736c; overflow-wrap: anywhere; }
.shell-account-name { display: flex; align-items: center; gap: 14px; margin: 6px 0 20px; }
.shell-account-name > .navigation-icon { width: 40px; height: 40px; padding: 7px; background: var(--sage); border-radius: 50%; }
.shell-account-name > div { min-width: 0; overflow-wrap: anywhere; }
.shell-account-name p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.shell-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.shell-account-dialog .button { min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; line-height: 1.5; color: var(--ink); }
.shell-account-dialog .button.primary { background: var(--green); border-color: var(--green); color: white; }
.shell-account-dialog .button:hover { background: #f0f5ed; border-color: #aabda4; }
.shell-account-dialog .button.primary:hover { background: var(--green-dark); }
.teaching-workspace .role-sidebar a, .workspace-home a, .shell-icon-button, .workspace-filters button { transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s; }
@media (min-width: 1600px) { .teaching-workspace .workspace-main > .page { padding-top: 42px; } }
@media (max-width: 1180px) {
  .teaching-workspace .role-sidebar { width: 226px; padding-inline: 16px; }
  .teaching-workspace .workspace-main { margin-left: 226px; }
  .teaching-workspace .workspace-main > .page { padding: 25px; }
  .teaching-workspace .workspace-header { padding: 0 25px; }
}
@media (min-width: 761px) and (max-width: 1180px) { .teaching-workspace .draft-savebar { left: 226px; } }
@media (max-width: 760px) {
  .teaching-workspace .role-sidebar { width: 235px; }
  .teaching-workspace .role-sidebar[data-open] { box-shadow: 15px 0 40px #17312220; }
  .teaching-workspace .workspace-main { margin-left: 0; }
  .teaching-workspace .workspace-header { height: 61px; min-height: 61px; padding: 0 20px; }
  .teaching-workspace .workspace-breadcrumb { gap: 8px; }
  .teaching-workspace .workspace-main > .page { padding: 24px 20px; }
  .teaching-workspace .workspace-date { display: none; }
  .teaching-workspace .mobile-menu { display: inline-grid; place-items: center; margin-left: -10px; padding: 0; width: 40px; height: 40px; min-height: 40px; flex-shrink: 0; }
  .teaching-workspace .navigation-close { position: absolute; top: 0; right: 4px; width: 28px; height: 28px; min-height: 28px; padding: 0; justify-content: center; }
  .teaching-workspace .navigation-close .navigation-icon { width: 16px; height: 16px; }
}
@media (max-width: 460px) {
  .teaching-workspace .workspace-main > .page { padding: 23px 16px; }
  .teaching-workspace .workspace-header { padding: 0 16px; }
  .shell-dialog-heading { padding: 20px 20px 12px; }
  .shell-dialog-body { padding: 0 20px 22px; }
}
