:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: #172c2a;
  background: #f3f6f4;
  --ink: #172c2a;
  --muted: #546560;
  --line: #d9e4dd;
  --surface: #fff;
  --accent: #186753;
  --accent-dark: #124c3d;
  --tint: #e7f2eb;
  --blue: #285b75;
  --sand: #785123;
  --link: #155b73;
  --link-hover: #0b4660;
  --nav-width: 222px;
  --bar-height: 74px;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
img, svg { vertical-align: middle; }
:focus-visible { outline: 2px solid #17745d; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.33; }
p { line-height: 1.65; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: .65rem 1rem; border-radius: 5px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
#site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { height: var(--bar-height); display: flex; align-items: center; padding: 0 30px 0 24px; gap: 22px; }
.brand-group, .brand, .header-links, .header-user, .header-week, .header-live { display: flex; align-items: center; }
.brand-group, .brand { min-width: 0; }
.brand { gap: 13px; color: var(--ink); text-decoration: none; }
.brand-mark { flex: none; width: 42px; height: 42px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .02em; font-size: 1.12rem; }
.brand small { color: var(--muted); font-size: .73rem; margin-top: 2px; white-space: nowrap; }
.header-links { margin-left: auto; gap: 18px; }
.header-links a { color: #33534b; text-decoration: none; font-size: .9rem; font-weight: 650; white-space: nowrap; }
.header-links a:hover { color: #157c5c; }
.header-week, .header-live { gap: 7px; }
.live-dot { width: 7px; height: 7px; background: #2f956c; border-radius: 50%; box-shadow: 0 0 0 4px #e7f2eb; }
.menu-button { border: 0; background: transparent; color: var(--ink); width: 40px; min-height: 42px; margin-left: -10px; display: none; border-radius: 7px; }
.menu-button:hover { background: #edf3ed; }
.account { position: relative; }
.account summary { display: flex; align-items: center; cursor: pointer; list-style: none; gap: 9px; font-size: .92rem; font-weight: 650; }
.account summary::-webkit-details-marker { display: none; }
.account-identity { display: grid; line-height: 1.25; gap: 2px; }
.account-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 11rem; }
.account-identity small { font-size: .75rem; font-weight: 500; color: var(--muted); }
.account-panel { position: absolute; z-index: 2; right: 0; top: calc(100% + 12px); min-width: 170px; padding: 15px; display: grid; gap: 13px; box-shadow: 0 8px 25px #162c2420; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); font-size: .9rem; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--accent-dark); background: #e1efe5; }
#site-layout { display: grid; grid-template-columns: var(--nav-width) minmax(0, 1fr); align-items: start; }
#sidebar { display: flex; flex-direction: column; background: #fcfefc; border-right: 1px solid var(--line); position: sticky; top: calc(var(--bar-height) + 1px); min-height: calc(100dvh - var(--bar-height) - 1px); max-height: calc(100dvh - var(--bar-height) - 1px); overflow-y: auto; padding: 21px 13px 16px; z-index: 5; }
.nav-group + .nav-group { margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--line); }
.nav-label { color: #64756b; font-size: .78rem; letter-spacing: .06em; padding: 4px 13px 11px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 13px; color: #41564f; border-radius: 8px; font-size: .92rem; white-space: nowrap; }
.nav-link:hover { color: var(--accent-dark); background: #eff4ee; }
.nav-link[aria-current="page"] { color: var(--accent-dark); background: #e6f0e8; font-weight: 750; }
.side-footer { padding: 17px 12px 6px; margin-top: auto; border-top: 1px solid var(--line); color: #4f6159; font-size: .81rem; }
.side-footer span { display: inline-block; margin-top: 2px; font-size: .75rem; color: #65766d; }
#main { min-width: 0; min-height: calc(100dvh - var(--bar-height)); outline: none; }
.view { width: min(100%, 1360px); margin: auto; padding: 32px clamp(22px, 3.35vw, 58px) 60px; }
.loading { padding: 32px; color: var(--muted); }
.hero { isolation: isolate; position: relative; display: flex; align-items: center; min-height: 315px; overflow: hidden; padding: 36px 42px; border-radius: 16px; background: #112b2b; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #092525 1%, #0c2b2bf5 23%, #1331319e 53%, #10282730 80%), url('/assets/course-hero.webp') center 52% / cover no-repeat; }
.hero-content { width: min(100%, 570px); }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .88rem; letter-spacing: .02em; color: #d3e7de; }
.hero-meta [aria-hidden] { display: inline-block; width: 14px; height: 1px; background: #9dcbb4; }
.site-admin-page #site-layout { display: block; }
.admin-return { margin-left: auto; }
.admin-entrance { display: block; margin-top: 8px; }
.hero h1 { font-family: "Songti SC", "STSong", 'Noto Serif CJK SC', serif; font-size: clamp(3.2rem, 5vw, 5.05rem); letter-spacing: .06em; line-height: 1.14; margin: 13px 0 12px; font-weight: 800; }
.hero-summary { max-width: 430px; font-size: 1.04rem; color: #ebf2ed; }
.hero .actions { margin-top: 23px; }
.hero-directory { color: #e5f2ee; padding: 8px 7px; font-size: .9rem; font-weight: 670; border-radius: 7px; }
.hero-directory:hover { color: #fff; background: #e5f2ee21; }
.hero-credit { position: absolute; right: 26px; bottom: 20px; color: #f1f7f3; background: #142b2bc2; border: 1px solid #ffffff2f; border-radius: 5px; padding: 5px 10px; font-size: .77rem; }
.home-section { margin-top: 27px; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section-heading h2, .home-section h2, .profile-section > h2 { font-size: 1.22rem; letter-spacing: .015em; }
.text-link, .text-button { font-weight: 700; font-size: .87rem; white-space: nowrap; }
.text-link:hover, .breadcrumb:hover { color: var(--link-hover); }
.quick-grid, .goals-grid, .workshop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quick-card { min-width: 0; min-height: 104px; display: flex; align-items: center; gap: 15px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); transition: border .15s ease, box-shadow .15s ease; }
.quick-card:hover { color: var(--accent-dark); border-color: #a4bcab; box-shadow: 0 5px 17px #244b3615; }
.quick-body { display: grid; gap: 4px; }
.quick-body strong { font-size: 1rem; }
.quick-body > span { color: var(--muted); font-size: .875rem; line-height: 1.55; }
.tile-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; color: var(--accent-dark); background: var(--tint); }
.tile-icon.blue, .badge.blue { background: #e9f2f8; color: var(--blue); }
.tile-icon.sand, .badge.sand { background: #f5ede0; color: var(--sand); }
.tile-icon.green, .badge.green { background: #e7f2eb; color: var(--accent-dark); }
.home-lower { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 16px; }
.home-lower.student-week { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.student-week .card { min-height: 168px; }
.role-banner { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: clamp(23px, 4vw, 42px); border-radius: 16px; color: #fff; background: linear-gradient(115deg, #134f41, #216b62 70%, #29756d); }
.role-banner-teacher { background: linear-gradient(115deg, #153e3f, #235b61 70%, #2b656d); }
.role-banner h1 { margin: 5px 0; font-size: clamp(2rem, 4.2vw, 3.2rem); }
.role-banner p { color: #e0f2ed; }
.role-banner .role-class { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; font-size: .875rem; font-weight: 620; }
.role-class span { padding: 2px 8px; background: #e7f7ee21; border-radius: 5px; }
.role-banner-actions { flex-shrink: 0; }
.card { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); }
.week-card { padding: 20px; display: grid; grid-template-columns: 65px minmax(0, 1fr); gap: 17px; min-height: 163px; }
.week-square { width: 65px; min-height: 74px; align-self: start; display: grid; justify-items: center; align-content: center; padding: 6px; background: #edf3eb; color: #245444; border-radius: 10px; }
.week-square span { font-size: .68rem; }
.week-square strong { font-family: Georgia, serif; font-size: 1.65rem; font-variant-numeric: tabular-nums; }
.week-hours { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.week-card h3 { font-size: 1.12rem; margin-top: 2px; }
.week-card p, .todo-card p { color: var(--muted); font-size: .91rem; margin: 5px 0 12px; }
.todo-card { display: flex; flex-direction: column; justify-content: center; min-height: 163px; padding: 16px 19px; }
.todo-card .button { align-self: flex-start; padding-left: 0; }
.todo-rows { display: grid; width: 100%; }
.todo-rows a { text-decoration: none; color: #3d564d; display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e4eae4; font-size: .92rem; }
.todo-rows a:last-child { border: 0; }
.todo-rows a:hover { color: var(--accent); }
.todo-rows strong { color: var(--accent); }
.goal-card { padding: 16px 18px; }
.goal-card h3 { font-size: 1rem; }
.goal-card p { color: var(--muted); font-size: .91rem; margin-top: 6px; }

.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 2px 0 25px; }
.page-heading h1 { font-size: clamp(1.75rem, 3.55vw, 2.8rem); font-weight: 780; }
.page-heading p { margin-top: 7px; color: var(--muted); }
.reading-card { padding: 20px 22px; min-width: 0; }
.reading-card h2 { font-size: 1.17rem; }
.reading-card h2 + p, .reading-card > :is(.actions, .button, .criteria), .reading-card .badge + h2 { margin-top: 10px; }
.reading-card p { color: #405850; }
.reading-card p + p { margin-top: 10px; }
.breadcrumb { display: inline-block; font-size: .9rem; margin-bottom: 12px; font-weight: 650; }
.button { display: inline-flex; gap: 6px; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; border: 1px solid transparent; border-radius: 7px; font-size: .89rem; font-weight: 680; line-height: 1.4; text-align: center; text-decoration: none; white-space: nowrap; }
.button[disabled] { cursor: wait; opacity: .66; }
.primary, .button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.secondary { border-color: #c9d8cf; background: #fff; color: var(--accent-dark); }
.button.secondary:hover { background: #eef5ef; }
.button.hero-primary { background: #e9f4eb; color: #174c3e; border-color: #e9f4eb; }
.button.hero-primary:hover { background: #fff; }
.button.hero-secondary { color: #fff; border-color: #abcdc4; background: #142f2d81; }
.button.hero-secondary:hover { background: #1b4a3b; }
.button.text-button { color: var(--accent-dark); background: transparent; }
.button.text-button:hover { background: var(--tint); }
.actions, .tab-list { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.stack { display: grid; min-width: 0; gap: 15px; }
.grid { display: grid; gap: 15px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.muted { color: var(--muted); }
.badge { display: inline-flex; width: fit-content; align-items: center; padding: 4px 8px; background: #edf3ed; color: #435d51; border-radius: 5px; font-size: .78rem; font-weight: 670; line-height: 1.4; }
.badge.neutral { color: #475b51; background: #edf1eb; }
.status { min-height: 20px; margin: 0; line-height: 1.55; }
.form-message { padding: 9px 12px; color: #66431b; background: #f7efe0; border-radius: 6px; }
.field { display: grid; gap: 6px; color: #244138; line-height: 1.55; font-weight: 650; font-size: .94rem; }
.field input, .field textarea, .field select { color: var(--ink); display: block; width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid #aebfb4; background: #fff; border-radius: 7px; font-weight: 420; }
.field textarea { resize: vertical; }
.field select { appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2342554c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat; }
input[type=radio], input[type=checkbox] { accent-color: var(--accent); }
.check-label { display: flex; align-items: center; gap: 8px; font-size: .94rem; }
.check-label input { width: 18px; height: 18px; }
.empty { display: grid; justify-items: start; gap: 11px; padding: clamp(20px, 4vw, 36px); }
.empty h1 { font-size: 1.6rem; }
.empty h2 { font-size: 1.2rem; }
.empty p { color: var(--muted); }
.auth-shell { width: min(100%, 31rem); margin: clamp(6px, 3vh, 32px) auto; }
.auth-card { width: 100%; padding: clamp(18px, 4vw, 28px); box-shadow: 0 8px 28px #234b3910; }
.auth-shell .page-heading { margin-bottom: 16px; }
.auth-alternate { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.auth-form:first-child { margin-top: 0; }
.auth-form { margin-top: 22px; }
.auth-field-hint { font-size: .875rem; font-weight: 400; }
.auth-form button { justify-self: start; }
.demo-accounts { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.demo-accounts summary { cursor: pointer; }
.demo-accounts p { margin-top: 5px; }
.demo-accounts code { white-space: nowrap; }

.course-start { display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: center; padding: 20px; margin-bottom: 20px; }
.course-start h2 { font-size: 1.18rem; }
.course-start p { color: var(--muted); font-size: .93rem; margin-top: 4px; }
.directory-tabs { margin-bottom: 16px; }
.course-list { gap: 9px; }
.course-list:not(.grid) { display: grid; }
.week-entry summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 55px; padding: 12px 18px; list-style: none; cursor: pointer; }
.week-entry summary::-webkit-details-marker { display: none; }
.week-entry[open] summary { border-bottom: 1px solid var(--line); }
.workshop-week { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 55px; padding: 12px 18px; text-decoration: none; }
.workshop-week:hover { border-color: #97b3a0; }
.week-index { color: var(--accent-dark); font-weight: 720; font-size: .89rem; min-width: 62px; }
.week-detail { padding: 14px 18px; }
.week-detail > p { margin-bottom: 6px; color: var(--muted); }
.week-detail > .button { margin-top: 8px; }
.week-slides { margin-bottom: 12px; }
.week-slides section + section { margin-top: 12px; }
.week-slides h3 { font-size: 1rem; }
.workshop-grid .tile-icon { margin-bottom: 10px; }
.workshop-grid .sub-links { display: grid; justify-items: start; padding-top: 6px; }
.outline-link { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 40px; padding: 8px 0; color: var(--accent-dark); text-decoration: none; font-size: .94rem; line-height: 1.5; }
.outline-link:hover { color: var(--link-hover); background: #f0f6f3; }
.topic { margin-top: 12px; border-top: 1px solid var(--line); }
.topic summary { padding: 9px 0 0; cursor: pointer; color: var(--accent-dark); font-weight: 640; }
.topic .outline-link { padding-left: 14px; }
.eyebrow { color: var(--accent-dark) !important; font-size: .78rem; font-weight: 690; margin: 12px 0 5px; }
.expert-card { margin-top: 17px; }
.sub-links { margin-top: 13px; border-top: 1px solid var(--line); }
.sub-links > a + a { border-top: 1px solid var(--line); }
.assignment-row { display: grid; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto auto; min-height: 75px; padding: 13px 16px; gap: 12px; color: var(--ink); text-decoration: none; }
a.assignment-row:hover { border-color: #97b3a0; }
.assignment-row strong { line-height: 1.4; }
.assignment-row > span:nth-child(2) { display: grid; gap: 3px; }
.assignment-row .muted { font-size: .84rem; }
.criteria { color: #405850; margin-bottom: 0; padding-left: 1.35rem; line-height: 1.75; }
.submission-card, .profile-section + .profile-section { margin-top: 16px; }
.submission-card h2 + form { margin-top: 13px; }
.version-list { display: grid; gap: 8px; margin-top: 12px; }
.version { border: 1px solid #dce6dd; border-radius: 8px; background: #f8faf7; padding: 10px 11px; }
.version summary { cursor: pointer; }
.version time { margin-left: 7px; color: var(--muted); font-size: .78rem; }
.version p { margin-top: 9px; }
.record-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-block { margin-top: 11px; background: #edf5ed; padding: 12px; border-radius: 7px; }
.feedback-block p { margin-top: 7px; }
.grading-form { margin-top: 15px; }
.grading-form .button { justify-self: start; }
.grade-field { width: min(100%, 230px); }
.resource-toolbar { display: grid; grid-template-columns: 2fr 1fr; padding: 15px 19px; gap: 14px; margin-bottom: 15px; }
.resource-grid article p { font-size: .94rem; }
.resource-note { margin-top: 16px; font-size: .88rem; }
.profile-section > h2 { margin: 0 0 12px; }
.profile-section .assignment-row { grid-template-columns: auto minmax(0, 1fr) auto; }

#toast { position: fixed; right: 17px; bottom: 17px; background: #173d34; color: #fff; border-radius: 8px; max-width: min(450px, calc(100% - 34px)); padding: 11px 15px; box-shadow: 0 6px 16px #253d3629; z-index: 30; opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease; }
#toast:empty { visibility: hidden; }
#toast.visible { opacity: 1; transform: translateY(0); }
.projection-page #site-header, .projection-page #sidebar, .projection-page .skip-link { display: none; }
.projection-page #site-layout { display: block; }
.projection-page .view { min-height: 100dvh; width: 100%; }
.projection-page #main { min-height: 100dvh; }

@media (max-width: 1120px) {
  :root { --nav-width: 194px; }
  .quick-card { gap: 9px; padding: 13px; }
  .hero { padding-left: 34px; }
}

@media (max-width: 900px) {
  :root { --nav-width: 164px; --bar-height: 66px; }
  .topbar-inner { padding-inline: 17px; }
  .nav-link { padding-inline: 10px; gap: 8px; }
  .view { padding-inline: 19px; }
  .quick-grid { gap: 8px; }
  .quick-card { flex-direction: column; align-items: flex-start; justify-content: start; }
  .hero { min-height: 290px; }
  .home-lower { grid-template-columns: 1fr 1fr; gap: 11px; }
  .week-card { padding: 13px; grid-template-columns: auto minmax(0, 1fr); gap: 11px; }
  .week-square { width: 45px; min-height: 60px; }
}

@media (max-width: 680px) {
  :root { --bar-height: 61px; }
  #site-layout { display: block; }
  #sidebar { display: none; position: fixed; width: min(255px, 78vw); box-shadow: 0 12px 28px #192d2527; border-bottom-right-radius: 10px; }
  #sidebar.expanded { display: flex; }
  .menu-button { display: grid; place-items: center; }
  .topbar-inner { padding-inline: 15px; gap: 12px; }
  .brand { gap: 7px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand strong { font-size: 1rem; }
  .brand small { font-size: .66rem; line-height: 1.3; white-space: normal; }
  .header-links { gap: 8px; }
  .header-links a { font-size: .77rem; }
  .header-week svg { display: none; }
  .header-live { gap: 5px; }
  .live-dot { width: 5px; height: 5px; box-shadow: 0 0 0 2px #e6f2e9; }
  .header-user .button { min-height: 34px; padding: 6px 8px; font-size: .77rem; }
  .account-identity { display: none; }
  .avatar { width: 32px; height: 32px; }
  .view { padding: 16px 14px 36px; }
  .hero { min-height: 310px; padding: 23px 22px 47px; border-radius: 12px; }
  .hero::before { background: linear-gradient(90deg, #092525fa 0%, #0c2b2bc7 55%, #1b343077 100%), url('/assets/course-hero.webp') 61% 52% / cover no-repeat; }
  .hero h1 { font-size: clamp(3rem, 10vw, 4rem); }
  .hero-summary { font-size: .97rem; }
  .hero-credit { bottom: 13px; right: 13px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: auto; padding: 11px 12px; flex-direction: row; align-items: center; gap: 12px; }
  .home-lower, .home-lower.student-week, .workshop-grid, .goals-grid, .grid.two { grid-template-columns: 1fr; }
  .home-lower { gap: 0; }
  .student-week .card { min-height: auto; }
  .role-banner { align-items: start; flex-direction: column; }
  .home-section { margin-top: 21px; }
  .todo-card { min-height: 100px; }
  .page-heading { margin-bottom: 18px; align-items: flex-start; }
  .course-start { grid-template-columns: auto 1fr; padding: 15px; }
  .course-start > .button { grid-column: 2; justify-self: start; }
  .reading-card { padding: 14px 16px; }
  .resource-toolbar { padding: 13px; grid-template-columns: minmax(0, 3fr) minmax(110px, 2fr); gap: 8px; }
  .assignment-row { padding: 10px; gap: 8px; }
  .assignment-row > svg { display: none; }
  .week-entry summary, .workshop-week { padding: 11px; gap: 6px; }
  .week-index { min-width: 55px; }
}

@media (max-width: 490px) {
  .header-links { display: none; }
  .header-user { margin-left: auto; }
}

@media (max-width: 350px) {
  .hero .button { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.header-user { gap: 12px; }
.notification-icon { display: grid; place-items: center; min-width: 36px; min-height: 36px; border: 1px solid #dce7dd; border-radius: 8px; color: var(--accent-dark); background: #fbfdf9; }
.notification-icon:hover { background: var(--tint); }
.account-panel .button { width: 100%; }
.profile-actions { margin-bottom: 20px; }
.intro-materials:not(:empty) { display: block; margin-top: 20px; }
[data-seminar]:empty, [data-module-materials]:empty, .intro-materials:empty { display: none; }
.management-grid { display: grid; grid-template-columns: minmax(245px, .85fr) minmax(0,1.5fr); align-items: start; gap: 15px; }
.manage-form { margin-top: 15px; }
.manage-form > button { justify-self: start; }
.detail-list { display: grid; gap: 0; margin: 12px 0 0; }
.detail-list div { display: grid; grid-template-columns: minmax(5rem, .9fr) minmax(0,1.25fr); align-items: baseline; gap: 10px; padding: 11px 0; }
.detail-list div + div { border-top: 1px solid var(--line); }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 680; overflow-wrap: anywhere; }
.roster-card { margin-top: 15px; }
.roster-list { display: grid; }
.roster-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(80px,.4fr) minmax(0,1fr); gap: 13px; align-items: start; padding: 13px 0; }
.roster-row + .roster-row { border-top: 1px solid var(--line); }
.roster-row p { font-size: .875rem; }
.roster-row summary, .case-reading summary { cursor: pointer; color: var(--accent-dark); font-weight: 690; }
.notice-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.notice-row > div { flex: 1 1 250px; min-width: 0; }
.notice-row h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.notice-row h2 + p { margin-top: 5px; }
.notice-row p:last-child { font-size: .84rem; }
.case-reading { margin-top: 13px; padding: 11px 0 2px; border-top: 1px solid var(--line); }
.case-reading h3 { margin: 13px 0 5px; font-size: .98rem; }
.case-reading > p { margin-top: 7px; }
.index-node { margin: 11px 0 5px; padding: 11px 13px; background: #f5f8f3; border-left: 2px solid #91b3a1; }
.index-node h3 { margin-top: 0; }
.index-node .actions { margin-top: 7px; }
.course-quote { margin: 12px 0; padding: 11px 14px; border-left: 3px solid #85ac96; background: #f2f6ef; color: #264439; }
.evidence-answers { display: grid; gap: 10px; margin: 13px 0 0; }
.evidence-answers dt { color: var(--accent-dark); font-size: .86rem; font-weight: 700; }
.evidence-answers dd { margin: 5px 0 0; overflow-wrap: anywhere; line-height: 1.6; }
.evidence-question, .rating-fields { min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; }
.evidence-question legend, .rating-fields legend { padding: 0 5px; font-weight: 680; }
.evidence-question .field { margin-top: 8px; }
.rating-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.stat-card { padding: 17px 20px; display: grid; align-content: start; gap: 5px; }
.stat-card span { color: var(--muted); font-size: .88rem; }
.stat-card strong { color: var(--accent-dark); font-size: 1.95rem; font-variant-numeric: tabular-nums; }
.stat-card small { font-size: .96rem; font-weight: 600; }
.table-scroll { max-width: 100%; overflow: auto; margin-top: 10px; }
.data-table { border-collapse: collapse; width: 100%; font-size: .93rem; font-variant-numeric: tabular-nums; }
.data-table :is(th,td) { min-width: 120px; padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table thead { background: #edf3ed; color: var(--accent-dark); }
.pair-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.pair-row p { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 680px) {
  .header-user { gap: 6px; }
  .notification-icon { min-width: 32px; min-height: 32px; }
  .management-grid { grid-template-columns: minmax(0,1fr); }
  .metric-grid { grid-template-columns: 1fr; gap: 8px; }
  .stat-card { padding: 12px 15px; grid-template-columns: 1fr auto; align-items: center; }
  .stat-card span:last-child { grid-column: 1 / -1; }
  .roster-row { grid-template-columns: minmax(0,1fr) auto; }
  .roster-row details { grid-column: 1/-1; }
  .view-workshop .page-heading, .view-profile .page-heading { flex-wrap: wrap; }
}
@media (max-width: 385px) {
  .topbar-inner { column-gap: 6px; }
  .header-links { gap: 6px; }
  .brand-group { gap: 1px; }
}

#mobile-course-navigation { display: none; }
.profile-filter { width: min(45%, 175px); font-size: .85rem; }
.profile-filter select { min-height: 36px; padding-block: 6px; }
.course-team-steps { margin-top: 15px; }
.course-team-steps .grid { margin-top: 14px; }
.course-team-steps h3 { font-size: 1rem; }
.course-team-steps .text-button { padding-left: 0; }

@media (max-width: 680px) {
  html:has(.has-mobile-course-navigation) { scroll-padding-block: calc(var(--bar-height) + 10px) calc(67px + env(safe-area-inset-bottom)); }
  #mobile-course-navigation { display: grid; grid-template-columns: repeat(var(--mobile-link-count), minmax(0, 1fr)); position: fixed; inset: auto 0 0; z-index: 7; padding: 3px 4px calc(3px + env(safe-area-inset-bottom)); background: #fbfdfbf7; border-top: 1px solid var(--line); }
  #mobile-course-navigation a { display: grid; align-content: center; justify-items: center; gap: 3px; min-height: 49px; color: #34574b; font-weight: 650; font-size: .75rem; text-align: center; border-radius: 7px; }
  #mobile-course-navigation a[aria-current], #mobile-course-navigation a:hover { color: var(--accent-dark); background: var(--tint); }
  .has-mobile-course-navigation .view { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .has-mobile-course-navigation #toast { bottom: calc(66px + env(safe-area-inset-bottom)); }
}
