/* Shared learner-facing shell: warm paper, ink-blue navigation, and the Bailian mountain mark. */
:root {
  --ink: #142b4d;
  --muted: #718096;
  --blue: #1c73c8;
  --paper: #f5f1e7;
  --line: #e6e0d5;
  --card: #fffdf8;
  --navy: #142b4d;
  --shadow: 0 4px 16px rgba(27, 46, 71, .045);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Noto Sans TC', sans-serif;
  overflow-x: hidden;
}
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  height: 94px;
  padding: 0 28px;
  overflow: hidden;
  background: #fffdf8;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; z-index: 2; width: 254px; flex: 0 0 254px; gap: 11px; }
.seal {
  display: grid;
  width: 30px;
  height: 55px;
  flex: 0 0 30px;
  place-items: center;
  color: #fff;
  background: #bc3028;
  border-radius: 2px;
  writing-mode: vertical-rl;
  letter-spacing: 3px;
  font: 700 13px serif;
  box-shadow: 2px 3px 0 #ead4bc;
}
.brandname { color: #171a1e; font: 900 39px/1 'Noto Serif TC', serif; letter-spacing: 2px; white-space: nowrap; }
.brandname small { display: block; font: 500 15px/1.45 'Noto Sans TC', sans-serif; letter-spacing: 0; }
.brandname em { display: block; color: #738092; font: 500 11px/1.25 'Noto Sans TC', sans-serif; font-style: normal; letter-spacing: 1px; }
.motto { position: relative; z-index: 2; color: #182f4d; font-size: 16px; line-height: 1.65; letter-spacing: .8px; white-space: nowrap; }
.motto b { font-size: 17px; }
.topbar > .mountain {
  inset: 0 17% 0 auto;
  width: 43%;
  height: 94px;
  object-fit: cover;
  opacity: .25;
}
.mountain-caption { display: none !important; }
.righthead { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; margin-left: auto; }
.iconbtn { position: relative; border: 0; background: transparent; color: #253d5b; font-size: 20px; cursor: pointer; }
.dot { position: absolute; top: 1px; right: 0; width: 8px; height: 8px; background: #d84438; border-radius: 50%; }
.profile { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: rgba(255,253,248,.92); border: 1px solid #e9e4db; border-radius: 24px; font-weight: 700; white-space: nowrap; }
.avatar { font-size: 22px; }
.shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 152px);
  padding: 0;
}
.side {
  min-height: calc(100vh - 152px);
  padding: 25px 14px 18px;
  background: #f2eee4;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
}
.nav-heading {
  margin: 0 15px 17px;
  color: #7a8998;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.3px;
}
.nav { display: grid; gap: 5px; }
.nav a {
  display: flex;
  align-items: center;
  height: 52px;
  margin: 0;
  padding: 0 13px;
  gap: 13px;
  border-radius: 5px;
  color: #304760;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.nav a span { width: 23px; font-size: 19px; }
.nav a.active {
  color: #1265b4;
  background: #e4eef5;
  box-shadow: inset 4px 0 #1a78ce;
}
.quote {
  margin-top: auto;
  padding: 18px 12px 5px;
  border-top: 1px solid #ded8ca;
  color: #687b91;
  text-align: left;
  font-size: 14px;
  line-height: 1.75;
}
.quote strong { display: block; margin-bottom: 7px; color: var(--ink); }
.quote p { margin: 0; }
.main {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 24px 32px 30px;
}
.crumb { color: var(--ink); }
.panel, .map-card, .today-card, .suggestion-card, .free-drive {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: var(--shadow);
}
.panel { padding: 20px 22px; }
.footer {
  min-height: 58px;
  height: auto;
  margin: 0;
  padding: 11px 28px;
  color: #f6f3ea;
  background: var(--navy);
  border: 0;
  border-radius: 0;
}
.footer small { color: #d2dbea; }
.footbrand { color: #fffdf8; font: 800 19px 'Noto Serif TC', serif; }
.footbrand small { display: block; margin: 2px 0 0; font: 500 11px 'Noto Sans TC', sans-serif; }
.footmotto { margin: auto; font-size: 14px; letter-spacing: .5px; }

/* Homepage visual baseline v1 */
.home-page .topbar > .mountain { display: none; }
.home-page .main { padding: 24px 32px 34px; }
.home-context {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: #718096;
  font-size: 14px;
  letter-spacing: .25px;
}
.home-context strong { color: #b63831; font-weight: 800; }
.home-page .hero {
  position: relative;
  display: flex;
  min-height: clamp(350px, 26.5vw, 410px);
  align-items: center;
  overflow: hidden;
  padding: 39px 42px;
  color: #f9f7f0;
  background: var(--navy);
  border: 1px solid #203b60;
}
.hero-copy { position: relative; z-index: 2; max-width: 60%; }
.hero-label {
  margin: 0 0 19px;
  color: #cbd5e3;
  font-size: 15px;
  letter-spacing: 1.3px;
}
.hero h1 {
  margin: 0 0 13px;
  color: #fffdf8;
  font: 800 clamp(34px, 3.25vw, 54px)/1.35 'Noto Serif TC', serif;
  letter-spacing: 1px;
}
.hero-desc { max-width: 570px; margin: 0; color: #d2d9e3; font-size: 17px; line-height: 1.8; }
.hero-mountains {
  position: absolute;
  z-index: 1;
  top: 4px;
  right: -3%;
  width: 62%;
  height: 76%;
  object-fit: contain;
  object-position: center right;
  opacity: .92;
  pointer-events: none;
}
.hero-student {
  position: absolute;
  z-index: 2;
  right: 4.5%;
  bottom: -3px;
  width: min(28%, 335px);
  height: 79%;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
}
.hero-status {
  display: inline-flex;
  align-items: baseline;
  gap: 13px;
  margin-top: 24px;
  padding: 9px 0 0;
  color: #d4deea;
  border-top: 1px solid rgba(255,255,255,.24);
  font-size: 14px;
}
.hero-status strong { color: #fffdf8; font: 700 26px 'Noto Serif TC', serif; }
.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 2.12fr) minmax(310px, .96fr);
  align-items: start;
  gap: 20px;
  margin-top: 20px;
}
.home-primary, .home-secondary { display: grid; align-content: start; gap: 18px; min-width: 0; }
.today-card { padding: 25px 27px 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eyebrow-cn { margin: 0 0 7px; color: #768497; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; }
.section-heading h2, .home-card-title {
  margin: 0;
  color: var(--ink);
  font: 700 25px/1.4 'Noto Serif TC', serif;
  letter-spacing: .4px;
}
.task-count { flex: 0 0 auto; color: #697a8c; font-size: 13px; }
.primary-cta {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 17px;
  color: #fff;
  background: #1269b7;
  border: 1px solid #1269b7;
  border-radius: 3px;
  font: 700 14px 'Noto Sans TC', sans-serif;
  cursor: pointer;
}
.primary-cta:hover { background: #0d5d9f; }
.primary-cta:disabled { color: #62758a; background: #e8ecec; border-color: #d9dfdf; cursor: default; }
.today-summary { margin: 7px 0 14px; color: #748195; font-size: 13px; }
.task-list { scroll-margin-top: 20px; outline: none; }
.task-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 12px 3px;
  border-top: 1px solid #e9e5dd;
}
.task-row:last-child { border-bottom: 1px solid #e9e5dd; }
.task-marker {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #758396;
  background: #fffdf8;
  border: 1px solid #d7d9d7;
  border-radius: 50%;
  font-size: 12px;
}
.task-row.pending .task-marker { color: #a67d20; background: #fff8e7; border-color: #e9d69a; }
.task-copy strong { display: block; color: #203a5c; font-size: 15px; }
.task-copy p { margin: 4px 0 0; color: #687a90; font-size: 13px; line-height: 1.6; }
.task-state { color: #758397; font-size: 12px; white-space: nowrap; }
.task-action {
  padding: 8px 11px;
  color: #294665;
  background: transparent;
  border: 1px solid #d9dcd9;
  border-radius: 3px;
  font: 600 12px 'Noto Sans TC', sans-serif;
  cursor: pointer;
}
.task-action:hover { background: #f2f5f5; }
.task-note { margin: 14px 0 0; color: #788597; font-size: 12px; }
.demo-state-toggle { margin-top: 10px; padding: 0; color: #748397; background: none; border: 0; font: 12px 'Noto Sans TC', sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.demo-state-toggle:hover { color: #315c80; }
.today-card.is-complete { border-color: #cbd8d6; }
.today-card.is-complete .today-summary { color: #557366; }
.attention { border-color: #85b8df; box-shadow: 0 0 0 3px rgba(28,115,200,.12); }
.suggestion-card { padding: 0 22px 20px; background: #edf3f8; border-top: 3px solid #3987c4; }
.suggestion-card.is-primary { background: #f8fbff; border-top-color: #173d60; box-shadow: 0 7px 20px rgba(28,58,83,.11); }
.suggestion-card.is-primary .suggestion-action { background: #173d60; box-shadow: 0 3px 8px rgba(23,61,96,.18); }
.suggestion-card.is-primary .suggestion-action:hover { background: #102f4d; }
.suggestion-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 17px; }
.skip-link { color: #59738e; font-size: 12px; text-decoration: none; }
.suggestion-card h2 { margin: 7px 0 12px; font: 700 23px 'Noto Serif TC', serif; }
.suggestion-subject { margin: 0; color: #5d7188; font-size: 14px; }
.suggestion-title { margin: 5px 0 12px; color: #164d7e; font: 700 23px 'Noto Serif TC', serif; }
.suggestion-reason { margin: 0; padding: 10px 12px; color: #526a82; background: rgba(255,255,255,.55); border-left: 3px solid #3987c4; font-size: 13px; line-height: 1.7; }
.suggestion-action {
  display: block;
  margin-top: 15px;
  padding: 11px 12px;
  color: #fff;
  background: #256fad;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.suggestion-card:not(.is-primary) .suggestion-action {
  color: #315875;
  background: #fffdf8;
  border: 1px solid #b9c6cf;
  box-shadow: none;
}
.suggestion-card:not(.is-primary) .suggestion-action:hover { background: #f3f6f6; }
.suggestion-foot { margin: 9px 0 0; color: #75869a; font-size: 12px; }
.free-drive, .learning-state, .growth-card { padding: 20px 22px; }
.free-drive h2, .learning-state h2, .growth-card h2 { margin: 0 0 9px; font: 700 21px 'Noto Serif TC', serif; }
.free-drive > p { margin: 0 0 11px; color: #778498; font-size: 12px; }
.drive-links { display: grid; }
.drive-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  color: #344d69;
  border-top: 1px solid #e8e4dc;
  font-size: 14px;
  text-decoration: none;
}
.drive-links a span { color: #327cb8; font-size: 18px; }
.drive-links a:hover { color: #1265b4; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #e8e4dc; font-size: 13px; }
.status-row strong { font-weight: 700; }
.status-row span { color: #758397; text-align: right; }
.home-page .map-card { min-height: auto; padding: 22px 24px; }
.home-page .maptop { margin-bottom: 10px; }
.home-page .maptitle strong { font: 700 22px 'Noto Serif TC', serif; }
.home-page .maptitle span { color: #758296; font-size: 13px; font-weight: 500; }
.home-page .maptitle .book { color: #3a8a84; font-size: 27px; }
.home-page .road { overflow-x: auto; justify-content: space-between; margin: 21px 4px 17px; padding: 0 3px 8px; }
.home-page .unit { flex: 1 0 105px; }
.home-page .unit label { display: block; color: #40566d; font-size: 12px; }
.home-page .unit.current label, .home-page .unit.current b { color: #1669b4; }
.home-page .mapnotice { margin: 4px 0 11px; color: #6e8093; font-size: 12px; }
.home-page .mapdetail { grid-template-columns: 138px minmax(0, 1fr) 148px; }
.home-page .unitlist div { cursor: pointer; }
.home-page .resources { padding-top: 30px; }
.home-page .growth-card { padding: 22px 24px; }
.home-page .growth-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.home-page .growth-heading span { color: #788598; font-size: 12px; }
.home-page .growth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.home-page .growth-item { grid-template-columns: 132px 1fr; min-height: 40px; font-size: 13px; }
.home-page .growth-item b { color: #198267; }
.home-page .growth-explain { margin: 12px 0 0; padding-top: 11px; color: #718196; border-top: 1px solid #e8e4dc; font-size: 12px; }
.home-page .growth-explain strong { color: #344d69; }

/* Daily school-task workbench v0 */
.today-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.secondary-cta {
  min-height: 42px;
  padding: 0 14px;
  color: #294665;
  background: #fffdf8;
  border: 1px solid #cfd6d6;
  border-radius: 3px;
  font: 700 13px 'Noto Sans TC', sans-serif;
  cursor: pointer;
}
.secondary-cta:hover { color: #1265b4; background: #f2f5f5; border-color: #aebfc7; }
.secondary-cta:focus-visible, .primary-cta:focus-visible, .task-action:focus-visible, .task-item-button:focus-visible, .organize-button:focus-visible, .parent-confirm:focus-visible, .plain-button:focus-visible, .drawer-close:focus-visible, .panel-close:focus-visible, .delete-confirmation-cancel:focus-visible, .delete-confirmation-delete:focus-visible { outline: 3px solid rgba(45,128,189,.35); outline-offset: 2px; }
.home-page .task-row { grid-template-columns: 42px minmax(0, 1fr) auto auto; }
.home-page .task-row-done .task-marker { color: #3d7b6b; background: #edf5ef; border-color: #c8ddd2; }
.home-page .task-row-done .task-copy strong { color: #496a65; }
.home-issue-flag { display: inline-block; margin-left: 6px; color: #ad4c3f; font-weight: 700; }
.task-empty { padding: 22px 3px; color: #748397; font-size: 14px; }
.today-parent-state { display: flex; align-items: baseline; gap: 9px; margin-top: 14px; padding-top: 12px; color: #3d7467; border-top: 1px solid #dfe7e1; }
.today-parent-state span { font-weight: 800; }
.today-parent-state small { color: #748397; font-size: 12px; }
.disabled-action { color: #718096 !important; background: #f2f4f3 !important; border-color: #d7dddb !important; box-shadow: none !important; cursor: default; pointer-events: none; }

.task-workbench[hidden] { display: none; }
.task-workbench { position: fixed; z-index: 50; inset: 0; }
.task-workbench-backdrop { position: absolute; inset: 0; background: rgba(20,43,77,.32); backdrop-filter: blur(2px); }
.task-drawer { position: absolute; top: 0; right: 0; display: flex; width: min(750px, 100%); height: 100%; flex-direction: column; overflow: hidden; color: var(--ink); background: #f7f3e9; border-left: 1px solid #d8d4cb; box-shadow: -16px 0 34px rgba(20,43,77,.16); }
.task-drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 30px 32px 22px; background: #fffdf8; border-bottom: 1px solid var(--line); }
.task-drawer-header h2 { margin: 0 0 6px; color: var(--ink); font: 700 31px/1.25 'Noto Serif TC', serif; }
.task-drawer-header p:not(.eyebrow-cn) { margin: 0; color: #718096; font-size: 14px; line-height: 1.6; }
.drawer-close, .panel-close { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: #52708b; background: #f3f0e8; border: 1px solid #d8d5ca; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; }
.workbench-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; padding: 14px 32px; color: #65778b; background: #edf2f0; border-bottom: 1px solid #dce3df; font-size: 13px; }
.workbench-summary strong { color: #234262; font-size: 14px; }
.workbench-summary span + span { position: relative; }
.workbench-summary span + span::before { position: absolute; top: 50%; left: -11px; width: 3px; height: 3px; content: ''; background: #9aabb6; border-radius: 50%; transform: translateY(-50%); }
.workbench-summary .summary-issue { color: #a04c41; font-weight: 700; }
.task-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 22px 32px 24px; }
.organize-note { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 17px; color: #4d5f70; background: #fffaf0; border: 1px solid #e6d8bb; border-left: 4px solid #b93c31; }
.organize-note strong { display: block; color: #284766; font-size: 14px; }
.organize-note p { margin: 5px 0 0; color: #778496; font-size: 12px; line-height: 1.55; }
.organize-note.is-organized { background: #f1f6f1; border-color: #cbded3; border-left-color: #548d79; }
.organize-note.is-organized strong { color: #356c5e; }
.organized-mark { flex: 0 0 auto; color: #3e7a69; font-size: 13px; font-weight: 800; white-space: nowrap; }
.organize-button, .parent-confirm { min-height: 42px; padding: 0 14px; color: #fff; background: #b63831; border: 1px solid #a42e29; border-radius: 3px; font: 700 13px 'Noto Sans TC', sans-serif; cursor: pointer; }
.organize-button:hover, .parent-confirm:hover { background: #982e29; }
.workbench-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 25px 0 10px; }
.workbench-toolbar h3, .panel-line-heading h3 { margin: 0; color: var(--ink); font: 700 21px 'Noto Serif TC', serif; }
.workbench-toolbar p, .panel-line-heading p:not(.eyebrow-cn) { margin: 4px 0 0; color: #778496; font-size: 12px; }
.workbench-toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.workbench-toolbar-actions .primary-cta, .workbench-toolbar-actions .secondary-cta { min-height: 38px; padding: 0 12px; font-size: 12px; }
.workbench-task-list { display: grid; gap: 10px; }
.workbench-task-list[hidden] { display: none; }
.daily-task-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(160px, auto); gap: 13px; padding: 17px 15px; background: #fffdf8; border: 1px solid #e4dfd5; border-radius: 4px; box-shadow: 0 2px 7px rgba(27,46,71,.025); }
.daily-task-item.completed { background: #fbfcf8; border-color: #dbe5dc; }
.daily-task-item.has-open-issue { border-left: 3px solid #b94b40; }
.daily-task-mark { display: grid; width: 31px; height: 31px; place-items: center; color: #aa7e25; background: #fff8e7; border: 1px solid #e7d39c; border-radius: 50%; font-size: 12px; font-weight: 700; }
.daily-task-item.completed .daily-task-mark { color: #3d7b6b; background: #edf5ef; border-color: #c8ddd2; }
.daily-task-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.subject-label { color: #286a9d; font-size: 12px; font-weight: 800; }
.daily-task-status { color: #7b8896; font-size: 11px; }
.daily-task-item.completed .daily-task-status { color: #4d816d; font-weight: 700; }
.daily-task-content h4 { margin: 0; color: #203a5c; font-size: 16px; line-height: 1.45; }
.daily-task-item.completed .daily-task-content h4 { color: #476965; }
.daily-task-details { margin: 4px 0 0; color: #6c7e91; font-size: 13px; }
.daily-task-note { margin: 6px 0 0; color: #7c8790; font-size: 12px; }
.daily-task-actions { display: flex; align-items: flex-start; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.task-item-button { min-height: 32px; padding: 0 9px; color: #fff; background: #2478bd; border: 1px solid #2478bd; border-radius: 3px; font: 700 12px 'Noto Sans TC', sans-serif; cursor: pointer; }
.task-item-button:hover { background: #1768a8; }
.task-item-button.quiet { color: #34536f; background: transparent; border-color: #d2d8d7; }
.task-item-button.quiet:hover { background: #f0f3f2; }
.task-item-button.danger { color: #8e4d47; background: transparent; border-color: #dfcbc7; }
.task-item-button.danger:hover { background: #fff2ef; }
.issue-summary { grid-column: 2 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 7px; margin-top: 12px; padding: 9px 11px; color: #657483; background: #fff8ef; border-left: 3px solid #c66c50; }
.issue-summary span { color: #a24d40; font-size: 11px; font-weight: 800; }
.issue-summary p { margin: 0; font-size: 12px; line-height: 1.55; }
.issue-summary em { color: #a24d40; font-size: 11px; font-style: normal; white-space: nowrap; }
.issue-resolution { grid-column: 2 / -1; display: flex; align-items: center; gap: 10px; margin-top: 2px; padding-top: 11px; border-top: 1px solid #eee7dc; }
.issue-resolution a { color: #a0443b; font-size: 12px; font-weight: 800; text-decoration: none; }
.issue-resolution a:hover { text-decoration: underline; text-underline-offset: 3px; }
.issue-resolution button { padding: 5px 8px; color: #607183; background: transparent; border: 1px solid #d5dcd8; border-radius: 3px; font: 12px 'Noto Sans TC', sans-serif; cursor: pointer; }
.issue-resolution.resolved { color: #4c826d; font-size: 12px; }
.issue-form { grid-column: 2 / -1; display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px 12px; margin-top: 12px; padding: 14px; background: #f5f1e8; border-top: 1px solid #e8e0d2; }
.issue-form label, .task-form-grid label { display: grid; gap: 5px; color: #4a6076; font-size: 12px; font-weight: 700; }
.issue-form label:nth-child(2) { grid-column: 2; grid-row: 1; }
.issue-check { grid-column: 1 / -1; display: flex !important; align-items: center; gap: 7px !important; color: #6e7c8c !important; font-weight: 500 !important; }
.issue-check input { width: 15px; height: 15px; accent-color: #2677b2; }
.issue-form input, .issue-form textarea, .task-form-grid input, .task-form-grid textarea { width: 100%; padding: 9px 10px; color: #263e5b; background: #fffdf8; border: 1px solid #d7d8d2; border-radius: 3px; font: 13px/1.5 'Noto Sans TC', sans-serif; }
.issue-form textarea, .task-form-grid textarea { resize: vertical; }
.issue-form input:focus, .issue-form textarea:focus, .task-form-grid input:focus, .task-form-grid textarea:focus { outline: 2px solid rgba(45,128,189,.23); border-color: #6ea5c8; }
.issue-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.plain-button { padding: 7px 9px; color: #65778a; background: transparent; border: 0; font: 12px 'Noto Sans TC', sans-serif; cursor: pointer; }
.plain-button:hover { color: #2b5277; }
.workbench-empty { padding: 30px 18px; text-align: center; background: #fffdf8; border: 1px dashed #cfcfc7; }
.workbench-empty[hidden], .task-form-panel[hidden], .copy-panel[hidden] { display: none; }
.workbench-empty strong { color: #31516f; font: 700 17px 'Noto Serif TC', serif; }
.workbench-empty p { margin: 7px 0 15px; color: #778496; font-size: 13px; }
.task-form-panel, .copy-panel { margin-top: 14px; padding: 18px; background: #fffdf8; border: 1px solid #ded9ce; }
.panel-line-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-close { width: 28px; height: 28px; font-size: 20px; }
.subject-quick { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.subject-quick > span { margin-right: 3px; color: #728093; font-size: 12px; }
.subject-quick button, .material-suggestions button { padding: 5px 8px; color: #476079; background: #f3f1eb; border: 1px solid #dedbd1; border-radius: 3px; font: 12px 'Noto Sans TC', sans-serif; cursor: pointer; }
.subject-quick button:hover, .material-suggestions button:hover { color: #1d6399; background: #edf3f3; border-color: #b9cdd0; }
.task-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 14px; }
.task-form-grid .full-field { grid-column: 1 / -1; }
.input-with-suggestions { min-width: 0; }
.material-suggestions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 17px; padding-top: 13px; border-top: 1px solid #ebe5da; }
.form-actions .primary-cta { min-height: 38px; font-size: 12px; }
.copy-list { display: grid; gap: 7px; }
.copy-item { display: grid; grid-template-columns: 18px minmax(0, 1fr) 115px; align-items: center; gap: 9px; padding: 10px; background: #faf8f1; border: 1px solid #e8e3d9; cursor: pointer; }
.copy-item:hover { background: #f3f5f1; }
.copy-item > input[type='checkbox'] { width: 16px; height: 16px; accent-color: #2677b2; }
.copy-item span { min-width: 0; }
.copy-item strong, .copy-item small { display: block; }
.copy-item strong { overflow: hidden; color: #294562; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.copy-item small { margin-top: 3px; color: #778496; font-size: 11px; }
.copy-range { width: 100%; min-width: 0; padding: 6px 7px; color: #415b73; background: #fffdf8; border: 1px solid #d7d8d2; border-radius: 3px; font: 12px 'Noto Sans TC', sans-serif; }
.copy-empty { color: #778496; font-size: 13px; }
.task-drawer-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 32px; background: #fffdf8; border-top: 1px solid #ded9cf; }
.closeout-copy strong { display: block; color: #294562; font-size: 15px; }
.closeout-copy p { margin: 4px 0 0; color: #6d7d8e; font-size: 12px; line-height: 1.55; }
.closeout-copy small { display: block; margin-top: 5px; color: #a04c41; font-size: 11px; }
.closeout-copy.complete strong, .closeout-copy.confirmed strong { color: #397363; }
.closeout-copy.issue strong { color: #a04c41; }
.drawer-utility { padding: 0 32px 16px; text-align: right; background: #fffdf8; }
.drawer-utility button { padding: 0; color: #9a9a94; background: none; border: 0; font: 11px 'Noto Sans TC', sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.drawer-utility button:hover { color: #a04c41; }

.delete-confirmation[hidden] { display: none; }
.delete-confirmation { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 22px; }
.delete-confirmation-backdrop { position: absolute; inset: 0; background: rgba(20,43,77,.42); backdrop-filter: blur(2px); }
.delete-confirmation-card { position: relative; width: min(410px, 100%); padding: 25px 25px 20px; color: var(--ink); background: #fffdf8; border: 1px solid #d8d4cb; box-shadow: 0 18px 42px rgba(20,43,77,.2); }
.delete-confirmation-card h2 { margin: 0 0 10px; color: var(--ink); font: 700 23px/1.35 'Noto Serif TC', serif; }
.delete-confirmation-description { margin: 0; padding: 11px 12px; color: #4f6377; background: #f7f1e6; border-left: 3px solid #b63831; font-size: 14px; line-height: 1.55; }
.delete-confirmation-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 14px; border-top: 1px solid #ebe5da; }
.delete-confirmation-cancel, .delete-confirmation-delete { min-height: 38px; padding: 0 14px; border-radius: 3px; font: 700 13px 'Noto Sans TC', sans-serif; cursor: pointer; }
.delete-confirmation-cancel { color: #4c637a; background: #fffdf8; border: 1px solid #cfd6d6; }
.delete-confirmation-cancel:hover { background: #f2f5f5; border-color: #aebfc7; }
.delete-confirmation-delete { color: #fff; background: #a5463d; border: 1px solid #923d35; }
.delete-confirmation-delete:hover { background: #8d372f; }

@media (max-width: 760px) {
  .today-actions { width: 100%; justify-content: flex-start; }
  .today-actions .primary-cta, .today-actions .secondary-cta { flex: 1 1 auto; }
  .home-page .task-row { grid-template-columns: 34px minmax(0, 1fr); }
  .home-page .task-row .task-state { grid-column: 2; justify-self: start; }
  .home-page .task-row .task-action { grid-column: 2; }
  .task-drawer-header { padding: 22px 18px 17px; }
  .task-drawer-header h2 { font-size: 26px; }
  .workbench-summary { padding: 12px 18px; gap: 5px 13px; }
  .task-drawer-body { padding: 16px 14px 20px; }
  .organize-note { align-items: flex-start; flex-direction: column; gap: 12px; padding: 14px; }
  .organize-button { width: 100%; }
  .workbench-toolbar { align-items: flex-start; flex-direction: column; gap: 11px; margin-top: 20px; }
  .workbench-toolbar-actions { width: 100%; justify-content: flex-start; }
  .workbench-toolbar-actions button { flex: 1 1 auto; }
  .daily-task-item { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 14px 12px; }
  .daily-task-actions { grid-column: 2; justify-content: flex-start; }
  .issue-summary, .issue-resolution, .issue-form { grid-column: 2; }
  .issue-summary { grid-template-columns: auto minmax(0, 1fr); }
  .issue-summary em { grid-column: 2; }
  .issue-form { grid-template-columns: 1fr; }
  .issue-form label:nth-child(2) { grid-column: auto; grid-row: auto; }
  .task-form-grid { grid-template-columns: 1fr; }
  .task-form-grid .full-field { grid-column: auto; }
  .copy-item { grid-template-columns: 18px minmax(0, 1fr); }
  .copy-range { grid-column: 2; }
  .task-drawer-footer { align-items: flex-start; flex-direction: column; padding: 15px 18px; }
  .parent-confirm { width: 100%; }
  .drawer-utility { padding: 0 18px 13px; }
  .delete-confirmation-card { padding: 22px 18px 18px; }
}

@media (max-width: 1120px) {
  .home-page .main { padding-right: 22px; padding-left: 22px; }
  .home-columns { grid-template-columns: minmax(0, 1.65fr) minmax(285px, .9fr); gap: 15px; }
  .home-primary { grid-template-columns: minmax(0, 1fr); }
  .today-card { min-width: 0; padding: 21px 20px 17px; }
  .home-page .today-card .section-heading { flex-wrap: wrap; }
  .home-page .mapdetail { grid-template-columns: 120px minmax(0,1fr); }
  .home-page .resources { grid-column: 1 / -1; padding: 10px; }
}
@media (max-width: 760px) {
  .topbar { height: 78px; padding: 0 14px; }
  .brand { width: auto; }
  .brandname { font-size: 29px; }
  .brandname small { font-size: 12px; }
  .brandname em { display: none; }
  .seal { height: 46px; }
  .motto { display: none; }
  .topbar > .mountain { right: 22%; width: 45%; height: 78px; opacity: .2; }
  .profile { padding: 6px 9px; font-size: 12px; }
  .shell { display: block; min-height: 0; }
  .side { min-height: 0; padding: 7px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-heading { display: none; }
  .nav { display: flex; gap: 3px; overflow-x: auto; }
  .nav a { flex: 0 0 auto; height: 43px; padding: 0 9px; gap: 5px; font-size: 13px; }
  .nav a span { width: auto; font-size: 16px; }
  .quote { display: none; }
  .main, .home-page .main { padding: 14px 12px 20px; }
  .home-page .hero { min-height: 282px; padding: 27px 22px; }
  .hero-copy { max-width: 81%; }
  .hero-label { margin-bottom: 13px; font-size: 12px; }
  .hero h1 { font-size: 29px; }
  .hero-desc { max-width: 90%; font-size: 13px; }
  .hero-mountains { right: -24%; width: 82%; height: 67%; }
  .hero-student { right: -3%; width: 39%; height: 58%; }
  .hero-status { margin-top: 17px; font-size: 12px; }
  .hero-status strong { font-size: 21px; }
  .home-columns { grid-template-columns: minmax(0,1fr); gap: 13px; margin-top: 13px; }
  .home-primary, .home-secondary { gap: 13px; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; }
  .section-heading h2 { font-size: 21px; }
  .primary-cta { min-height: 40px; }
  .today-card, .suggestion-card, .free-drive, .learning-state, .growth-card, .home-page .map-card { padding: 17px 15px; }
  .task-row { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; }
  .task-row .task-action { grid-column: 2; justify-self: start; }
  .task-copy p { font-size: 12px; }
  .home-page .mapdetail { grid-template-columns: minmax(0,1fr); }
  .home-page .unitlist { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e9eaeb; }
  .home-page .unitlist div { flex: 0 0 auto; }
  .home-page .skills { padding: 12px 9px; }
  .home-page .resources { grid-column: auto; }
  .home-page .growth-grid { grid-template-columns: 1fr; }
  .home-page .growth-item { grid-template-columns: 128px 1fr; }
  .footer { justify-content: center; padding: 12px 15px; text-align: center; }
  .footer .eng, .footer .foot-note { display: none; }
  .crumb { align-items: flex-start; gap: 8px; }
  .crumb b { font-size: 15px; }
  .route { text-align: right; font-size: 11px; }
}
