/* CampusHub · Morandi palette: warm stone, sage, dusty rose, mist blue. */
:root {
  --bg: #f2efea;
  --paper: #fbf8f4;
  --sidebar: #e5e3dd;
  --surface-inset: #ebe7e1;
  --ink: #454641;
  --muted: #68645e;
  --line: #dbd5cc;
  --line-faint: #e8e2da;
  --line-strong: #ada89b;
  --accent: #7c6267;
  --accent-hover: #6e555c;
  --on-accent: #fffaf5;
  --accent-muted: #9b8585;
  --ring: #8c747a;
  --soft: var(--sage-soft);
  --sage-soft: #dce2d7;
  --sage-ink: #53634e;
  --sage-wash: #efefe7;
  --rose-soft: #eee0da;
  --danger: #8d5b55;
  --oat-soft: #eee4d6;
  --oat-ink: #786142;
  --logo-detail: #e0d2c6;
  --overlay-paper: #fbf8f4f0;
  --shadow-soft: #443c3420;
  --card-shadow: #514a4204;
  --backdrop: #46423c55;
  --course-blue-bg: #dfe5e7;
  --course-blue-ink: #52636d;
  --course-sage-bg: #dfe4dc;
  --course-sage-ink: #53634e;
  --course-clay-bg: #ebdfd5;
  --course-clay-ink: #795b47;
  --course-mauve-bg: #e5dfe5;
  --course-mauve-ink: #6b586d;
  --course-oat-bg: #e7e1d5;
  --course-oat-ink: #706047;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;
  font-size:14px;
}
button,input,select,textarea {
  font:inherit;
}
button,a,select {
  cursor:pointer;
}
button {
  color:inherit;
}
button {
  transition:background .18s,transform .18s;
}
button:hover {
  filter:brightness(.96);
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid var(--ring);
  outline-offset:3px;
}
aside {
  position:fixed;
  inset:0 auto 0 0;
  width:244px;
  background:var(--sidebar);
  border-right:1px solid var(--line);
  padding:32px 20px;
  display:flex;
  flex-direction:column;
}
.brand {
  display:flex;
  align-items:center;
  gap:9px;
  text-decoration:none;
  color:var(--ink);
  font-size:20px;
  font-weight:750;
  letter-spacing:-.7px;
}
.brand-icon {
  background:var(--accent);
  color:var(--on-accent);
  border-radius:10px;
  padding:3px 7px;
  font-size:23px;
  letter-spacing:-4px;
  width:34px;
  height:35px;
}
.brand-icon span {
  color:var(--logo-detail);
}
.beta {
  font-size:8px;
  border:1px solid var(--line-strong);
  padding:3px;
  border-radius:4px;
  letter-spacing:.4px;
}
.nav-label {
  font-size:11px;
  color:var(--muted);
  padding:0 13px;
  margin-bottom:12px;
  letter-spacing:1px;
}
nav {
  display:grid;
  gap:5px;
}
nav button {
  display:flex;
  align-items:center;
  gap:12px;
  border:0;
  background:none;
  border-radius:8px;
  padding:12px 14px;
  text-align:left;
  min-height:44px;
}
nav button.active {
  background:var(--sage-soft);
  color:var(--sage-ink);
  font-weight:650;
}
nav button .num {
  margin-left:auto;
  color:var(--muted);
  font-size:11px;
}
.courses-label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:32px;
  margin-bottom:6px;
}
.courses-label button {
  border:0;
  background:none;
  width:30px;
  height:32px;
  font-size:20px;
}
.dot {
  width:8px;
  height:8px;
  border-radius:50%;
  flex-shrink:0;
}
.sidebar-note {
  margin:auto 8px 24px;
  padding-top:35px;
}
.little-mark {
  font-size:30px;
  color:var(--accent-muted);
}
.sidebar-note b {
  display:block;
  font-size:12px;
  margin-top:13px;
}
.sidebar-note p {
  font-size:11px;
  color:var(--muted);
  line-height:1.8;
}
.local-status {
  border-top:1px solid var(--line);
  padding:22px 9px 0;
  color:var(--muted);
  font-size:11px;
  display:flex;
  align-items:center;
  gap:8px;
}
.local-status i {
  width:6px;
  height:6px;
  background:var(--sage-ink);
  border-radius:50%;
}
main {
  margin-left:244px;
}
header {
  height:83px;
  border-bottom:1px solid var(--line);
  padding:0 48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:var(--bg);
}
.breadcrumb {
  font-size:12px;
  color:var(--muted);
}
.breadcrumb span {
  margin-left:17px;
}
.content {
  max-width:1440px;
  margin:auto;
  padding:48px;
}
.intro {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}
.eyebrow {
  font-size:10px;
  letter-spacing:2px;
  color:var(--muted);
  font-weight:600;
}
h1 {
  font-size:32px;
  font-weight:650;
  letter-spacing:-1px;
  margin:15px 0 12px;
}
h1 span {
  color:var(--accent-muted);
}
.intro p {
  color:var(--muted);
  font-size:13px;
  margin:0;
  line-height:1.8;
}
.primary {
  border:0;
  border-radius:8px;
  background:var(--accent);
  color:var(--on-accent);
  padding:12px 19px;
  min-height:44px;
  white-space:nowrap;
}
.intro .primary {
  font-size:16px;
}
.intro .primary span {
  font-size:13px;
  margin-left:6px;
}
.overview {
  display:flex;
  align-items:center;
  margin:34px 0;
  background:var(--surface-inset);
  border:1px solid var(--line);
  border-radius:12px;
  padding:22px 25px;
  gap:35px;
}
.overview>div {
  display:flex;
  gap:13px;
  align-items:center;
}
.stat-icon {
  color:var(--muted);
  background:var(--sage-soft);
  border-radius:9px;
  width:39px;
  height:39px;
  display:grid;
  place-items:center;
  font-size:23px;
}
.overview b {
  font-size:23px;
  font-weight:600;
  display:block;
  line-height:1;
}
.overview div div span {
  font-size:10px;
  color:var(--muted);
  display:block;
  margin-top:8px;
}
.overview .overview-text {
  margin-left:auto;
  display:block;
  text-align:right;
  font-size:11px;
  color:var(--muted);
}
.overview-text span {
  display:block;
  letter-spacing:1.8px;
  font-size:8px;
  margin-top:9px;
  color:var(--muted);
}
.toolbar {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
}
.search {
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid var(--line);
  background:var(--paper);
  border-radius:8px;
  padding:0 14px;
  width:400px;
  height:45px;
}
.search svg {
  width:18px;
  color:var(--muted);
}
.search input {
  width:100%;
  border:0;
  outline:none;
  background:none;
  font-size:12px;
}
.search kbd {
  font-size:12px;
  border:1px solid var(--line);
  padding:1px 6px;
  color:var(--muted);
  border-radius:3px;
}
select {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:7px;
  padding:12px;
  color:var(--muted);
  font-size:12px;
  min-height:44px;
}
.section-title {
  display:flex;
  align-items:center;
  gap:12px;
  margin:30px 0 18px;
}
.section-title h2 {
  font-size:16px;
  margin:0;
  font-weight:600;
}
.section-title>span {
  font-size:11px;
  color:var(--muted);
  background:var(--surface-inset);
  border-radius:12px;
  padding:3px 8px;
}
.grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.card {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:12px;
  padding:21px;
  display:flex;
  flex-direction:column;
  min-height:224px;
  transition:transform .18s,border-color .18s;
}
.card:hover {
  transform:translateY(-3px);
  border-color:var(--line-strong);
}
.card-top {
  display:flex;
  align-items:center;
  gap:12px;
}
.site-icon {
  width:43px;
  height:43px;
  border-radius:11px;
  display:grid;
  place-items:center;
  font-weight:750;
  font-size:18px;
  flex-shrink:0;
  background:var(--tint);
  color:var(--color);
}
.site-name {
  font-size:15px;
  font-weight:650;
  margin:0 0 5px;
}
.domain {
  font-size:10px;
  color:var(--muted);
  overflow-wrap:anywhere;
}
.card p {
  font-size:12px;
  line-height:1.8;
  color:var(--muted);
  margin:18px 0;
  flex:1;
  overflow-wrap:anywhere;
}
.card-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
}
.tag {
  font-size:10px;
  padding:5px 8px;
  border-radius:5px;
  background:var(--tint);
  color:var(--color);
}
.card-actions {
  display:flex;
  gap:6px;
  align-items:center;
}
.card-actions button {
  border:0;
  background:none;
  color:var(--muted);
  font-size:12px;
  min-height:36px;
  padding:5px;
}
.visit {
  color:var(--accent);
  text-decoration:none;
  border:1px solid var(--line);
  border-radius:6px;
  font-size:11px;
  padding:8px 10px;
  white-space:nowrap;
}
.visit:hover {
  background:var(--soft);
}
footer {
  display:flex;
  justify-content:space-between;
  border-top:1px solid var(--line);
  margin-top:38px;
  padding-top:22px;
  font-size:10px;
  color:var(--muted);
}
.empty {
  grid-column:1/-1;
  text-align:center;
  padding:65px 10px;
  color:var(--muted);
}
dialog {
  border:1px solid var(--line);
  border-radius:16px;
  padding:28px;
  width:min(490px,calc(100% - 32px));
  color:var(--ink);
  box-shadow:0 20px 100px var(--shadow-soft);
}
dialog::backdrop {
  background:var(--backdrop);
  backdrop-filter:none;
}
.dialog-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:24px;
}
.dialog-head small {
  font-size:9px;
  letter-spacing:1.8px;
  color:var(--muted);
}
.dialog-head h2 {
  font-size:23px;
  margin:8px 0 0;
}
.close {
  background:none;
  border:0;
  font-size:24px;
  min-width:40px;
  min-height:40px;
}
form>label {
  display:block;
  font-size:12px;
  margin:17px 0;
}
form input:not([type=checkbox]),form textarea,form select {
  display:block;
  width:100%;
  padding:12px;
  border:1px solid var(--line);
  border-radius:7px;
  margin-top:8px;
  background:var(--bg);
  color:var(--ink);
}
textarea {
  resize:vertical;
}
.check {
  display:flex!important;
  gap:8px;
  align-items:center;
}
.form-actions {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:25px;
}
.secondary {
  background:var(--surface-inset);
  border:0;
  border-radius:8px;
  padding:10px 18px;
  font-size:14px;
}
.detail-note {
  line-height:1.9;
  color:var(--muted);
  overflow-wrap:anywhere;
}
.detail-row {
  padding:14px 0;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.detail-row small {
  width:60px;
  color:var(--muted);
}
.detail-row code {
  flex:1;
}
.detail-foot {
  display:flex;
  justify-content:space-between;
  margin-top:25px;
}
.danger {
  color:var(--danger);
}
.hint {
  font-size:11px;
  line-height:1.8;
  background:var(--oat-soft);
  padding:12px;
  border-radius:8px;
  color:var(--oat-ink);
}
#toast {
  position:fixed;
  bottom:30px;
  left:50%;
  transform:translateX(-50%);
  padding:12px 22px;
  background:var(--ink);
  color:var(--on-accent);
  border-radius:8px;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s;
  z-index:10;
}
#toast.visible {
  opacity:1;
}
@media(min-width:1500px) {
  .content {
    padding-top:60px;
  }
  .grid {
    gap:22px;
  }
  .card {
    min-height:240px;
  }
}
@media(max-width:1150px) {
  .grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .overview {
    gap:22px;
  }
  .overview-text {
    display:none!important;
  }
  .content {
    padding:32px;
  }
  header {
    padding:0 32px;
  }
}
@media(max-width:760px) {
  aside {
    position:static;
    width:100%;
    padding:20px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }.nav-label,.sidebar-note,.local-status {
    display:none;
  }
  nav#navigation {
    display:flex;
    margin-top:20px;
    gap:5px;
  }
  nav#navigation button {
    flex:1;
    justify-content:center;
    padding:10px 6px;
    font-size:12px;
  }
  #courses {
    display:flex;
    overflow-x:auto;
    margin-top:10px;
    gap:8px;
  }
  #courses button {
    white-space:nowrap;
    padding:8px;
    min-height:38px;
    font-size:11px;
  }
  main {
    margin-left:0;
  }
  header {
    display:none;
  }
  .content {
    padding:28px 20px;
  }
  .intro {
    align-items:flex-start;
  }
  h1 {
    font-size:25px;
  }
  .eyebrow {
    font-size:8px;
    letter-spacing:1px;
  }
  .intro p {
    font-size:12px;
  }
  .intro .primary {
    padding:10px;
    font-size:18px;
  }
  .intro .primary span {
    display:none;
  }
  .overview {
    margin:25px 0;
    padding:18px 12px;
    gap:0;
    justify-content:space-between;
  }
  .stat-icon {
    display:none;
  }
  .overview>div {
    padding:0 8px;
  }
  .overview b {
    font-size:22px;
  }
  .toolbar {
    gap:10px;
  }
  .search {
    width:auto;
    flex:1;
    min-width:0;
  }
  .search kbd {
    display:none;
  }
  .grid {
    gap:14px;
  }
  .card {
    padding:17px;
  }
  .card-actions {
    gap:2px;
  }
  .site-name {
    font-size:14px;
  }
  footer {
    gap:15px;
    line-height:1.8;
  }
}
@media(max-width:480px) {
  .grid {
    grid-template-columns:1fr;
  }
  .card {
    min-height:200px;
  }
  .intro p {
    max-width:260px;
  }
  .overview div div span {
    font-size:10px;
  }
  footer {
    flex-direction:column;
  }
  .toolbar select {
    max-width:100px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important;
  }
}
.input-help {
  display:block;
  margin-top:8px;
  color:var(--muted);
  font-size:11px;
  line-height:1.7;
}
.schedule-time-axis {
  position:sticky!important;
  left:0;
  z-index:2;
}
.time-zone-label {
  position:sticky;
  left:0;
  background:var(--bg);
  z-index:5;
}
.website-presets {
  margin-top:-5px;
  margin-bottom:20px;
}
.website-suggestions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.website-suggestion {
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--surface-inset);
  color:var(--sage-ink);
  padding:8px 14px;
  min-height:40px;
  font-size:12px;
}
.website-suggestion:hover,.website-suggestion[aria-pressed=true] {
  background:var(--sage-soft);
  border-color:var(--line-strong);
}
.website-presets .input-help {
  font-size:11px;
  margin-top:8px;
}
.timetable-view .content>.intro,.timetable-view .toolbar,.timetable-view .section-title,.timetable-view #grid,.timetable-view footer,.timetable-view .sidebar-note {
  display:none;
}
.timetable-view .local-status {
  margin-top:auto;
}
.timetable-view .content {
  padding-top:35px;
}
.schedule-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:30px;
}
.schedule-heading h1 {
  margin:0 0 12px;
  font-size:29px;
}
.schedule-heading p {
  color:var(--muted);
  font-size:12px;
  margin:0;
}
.schedule-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.schedule-actions button {
  font-size:12px;
  min-height:42px;
  padding:10px 14px;
}
.schedule-actions .secondary {
  background:transparent;
  border:1px solid var(--line);
}
.schedule-controls {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:22px;
  gap:10px;
}
.week-navigation {
  display:flex;
  align-items:center;
  gap:14px;
}
.week-navigation>button {
  border:1px solid var(--line);
  background:var(--paper);
  border-radius:7px;
  width:36px;
  min-height:38px;
  font-size:22px;
}
.week-navigation>div {
  min-width:168px;
  text-align:center;
}
.week-navigation b {
  font-size:15px;
  font-weight:600;
}
.week-navigation small {
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
}
.week-navigation .today-button {
  font-size:12px;
  width:auto;
  padding:8px 12px;
  margin-left:4px;
}
#scheduleLessonCount {
  font-size:12px;
  color:var(--muted);
}
.schedule-scroll {
  position:relative;
  overflow:auto;
  max-height:calc(100dvh - 310px);
  min-height:320px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--paper);
}
.schedule-day-headings {
  display:grid;
  grid-template-columns:56px repeat(7,minmax(112px,1fr));
  min-width:840px;
  position:sticky;
  top:0;
  z-index:4;
  background:var(--bg);
  border-bottom:1px solid var(--line);
  height:66px;
}
.time-zone-label {
  font-size:10px;
  color:var(--muted);
  display:grid;
  place-items:center;
  border-right:1px solid var(--line);
}
.day-heading {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-right:1px solid var(--line);
  font-size:12px;
  color:var(--muted);
}
.day-heading b {
  font-weight:500;
}
.day-heading>span {
  font-size:11px;
  color:var(--muted);
}
.day-heading.is-today {
  background:var(--sage-soft);
}
.day-heading.is-today b {
  color:var(--accent);
  font-weight:700;
}
.schedule-body {
  position:relative;
  display:grid;
  grid-template-columns:56px repeat(7,minmax(112px,1fr));
  min-width:840px;
  height:calc(var(--schedule-height) + 18px);
}
.schedule-time-axis {
  position:relative;
  background:var(--paper);
  border-right:1px solid var(--line);
  font-size:10px;
  color:var(--muted);
}
.schedule-time-axis>span {
  position:absolute;
  right:10px;
  transform:translateY(4px);
}
.schedule-day-column {
  position:relative;
  border-right:1px solid var(--line-faint);
  background:repeating-linear-gradient(to bottom,transparent 0,transparent 59px,var(--line-faint) 59px,var(--line-faint) 60px);
}
.schedule-day-column.is-today {
  background-color:var(--sage-wash);
}
.lesson-block {
  position:absolute;
  padding:8px;
  border:0;
  border-left:3px solid var(--lesson-ink);
  border-radius:6px;
  background:var(--lesson-tint);
  color:var(--lesson-ink);
  text-align:left;
  overflow:hidden;
  min-height:26px;
  display:flex;
  flex-direction:column;
  gap:5px;
  transition:filter .15s,box-shadow .15s;
}
.lesson-block:hover {
  filter:brightness(.97);
  box-shadow:0 3px 10px var(--shadow-soft);
}
.lesson-block b {
  font-size:12px;
  font-weight:600;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.lesson-block span,.lesson-block small {
  font-size:10px;
  line-height:1.4;
  white-space:nowrap;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  flex-shrink:0;
}
.schedule-empty {
  position:absolute;
  left:56px;
  right:0;
  top:150px;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center;
  pointer-events:none;
  color:var(--muted);
}
.schedule-empty span {
  font-size:15px;
  background:var(--overlay-paper);
  padding:5px 15px;
}
.schedule-empty small {
  font-size:12px;
  background:var(--overlay-paper);
  padding:3px 10px;
}
.schedule-footnote {
  font-size:10px;
  color:var(--muted);
  line-height:1.8;
  margin:16px 0 0;
}
.form-pair {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.form-pair>label {
  display:block;
  min-width:0;
  font-size:12px;
  margin:10px 0;
}
.form-pair input,.form-pair select {
  min-width:0;
}
.delete-prompt {
  padding:14px;
  background:var(--rose-soft);
  border-radius:8px;
  font-size:12px;
  color:var(--danger);
  line-height:1.8;
  margin-top:15px;
}
.delete-prompt button {
  margin-right:6px;
}
.delete-prompt p {
  margin:0 0 12px;
}
#lessonDialog {
  max-height:calc(100dvh - 40px);
  overflow:auto;
  width:min(520px,calc(100% - 28px));
}
#scheduleImportDialog {
  width:min(620px,calc(100% - 28px));
  max-height:calc(100dvh - 40px);
  overflow:auto;
}
.import-file-row {
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:12px;
  padding:10px 0;
}
.import-file-row input {
  font-size:11px;
  max-width:100%;
  min-height:36px;
}
.import-file-row input::file-selector-button {
  border:1px solid var(--line);
  background:var(--surface-inset);
  color:var(--accent);
  border-radius:6px;
  padding:8px 12px;
  cursor:pointer;
  margin-right:12px;
}
.import-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:25px;
  font-size:12px;
}
.import-summary label {
  display:flex;
  align-items:center;
  gap:5px;
  color:var(--muted);
  font-size:11px;
}
.import-course-row {
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 8px;
  border-bottom:1px solid var(--line);
  cursor:pointer;
  font-size:12px;
}
.import-course-row input {
  width:17px;
  height:17px;
  accent-color:var(--accent);
  flex-shrink:0;
}
.import-course-row>span:nth-child(2) {
  flex:1;
  min-width:0;
}
.import-course-row b {
  display:block;
  font-size:12px;
  line-height:1.6;
  font-weight:550;
  overflow-wrap:anywhere;
}
.import-course-row small {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-top:4px;
  line-height:1.6;
}
.import-course-row.duplicate {
  opacity:.6;
  cursor:default;
}
.import-status {
  font-size:10px;
  color:var(--accent);
  white-space:nowrap;
}
#scheduleImportList {
  max-height:270px;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:8px;
  margin-top:12px;
}
.import-no-results {
  padding:25px 16px;
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
}
.form-actions #lessonDelete {
  margin-right:auto;
}
.timetable-view .content {
  max-width:1600px;
}
@media(max-width:1200px) {
  .schedule-heading {
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .schedule-heading h1 {
    font-size:27px;
  }
  .schedule-controls {
    margin-top:4px;
  }
  .schedule-scroll {
    max-height:60dvh;
  }
}
@media(max-width:760px) {
  .timetable-view .content {
    padding-top:25px;
  }
  .schedule-heading {
    gap:20px;
    margin-bottom:25px;
  }
  .schedule-actions {
    width:100%;
  }
  .schedule-actions button {
    flex:1;
    padding:10px 8px;
    font-size:11px;
  }
  .schedule-heading h1 {
    font-size:25px;
  }
  .week-navigation {
    gap:6px;
  }
  .week-navigation>div {
    min-width:145px;
  }
  .week-navigation small {
    font-size:10px;
  }
  #scheduleLessonCount {
    font-size:10px;
    white-space:nowrap;
  }
  .schedule-controls {
    flex-wrap:wrap;
    gap:12px;
  }
  .schedule-scroll {
    max-height:65dvh;
    min-height:350px;
  }
  .schedule-footnote {
    font-size:10px;
  }
  .form-pair {
    gap:10px;
  }
  .import-summary {
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .timetable-view aside {
    padding-bottom:15px;
  }
}
.credential-lines {
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 0 14px;
  border-top:1px solid var(--line-faint);
  cursor:default;
}
.credential-values {
  min-width:0;
  flex:1;
  display:grid;
  gap:7px;
  font-size:12px;
  color:var(--muted);
  line-height:1.6;
}
.credential-values>div {
  display:flex;
  align-items:baseline;
  gap:4px;
}
.credential-values>div>span:first-child {
  flex-shrink:0;
}
.credential-value {
  font-family:"Segoe UI","Microsoft YaHei",sans-serif;
  overflow-wrap:anywhere;
  user-select:none;
  color:var(--ink);
}
.credential-eye {
  background:none;
  border:0;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  flex-shrink:0;
  border-radius:8px;
  color:var(--muted);
}
.credential-eye svg {
  width:20px;
  height:20px;
}
.credential-eye:hover {
  background:var(--soft);
  color:var(--accent);
}
.credential-eye[aria-pressed=true] {
  color:var(--accent);
  background:var(--soft);
}
.pin-input {
  letter-spacing:10px;
  font-size:22px!important;
  text-align:center;
}
.pin-input::placeholder {
  color:var(--muted);
}
.card .card-bottom {
  margin-top:2px;
}
button:disabled {
  cursor:wait;
  opacity:.6;
}
@media(max-width:760px) {
}
[hidden] {
  display:none!important;
}
.home-canvas {
  min-height:calc(100dvh - 180px);
  display:grid;
  place-items:center;
  padding:60px 0 100px;
}
.home-invitation {
  text-align:center;
  max-width:400px;
}
.home-mark {
  display:grid;
  place-items:center;
  width:64px;
  height:64px;
  margin:0 auto 24px;
  color:var(--muted);
}
.home-mark svg {
  width:44px;
  height:44px;
}
.home-invitation h1 {
  font-size:25px;
  letter-spacing:0;
  font-weight:500;
  margin:0 0 14px;
}
.home-invitation p {
  color:var(--muted);
  font-size:13px;
  line-height:1.8;
  margin:0 0 28px;
}
.home-invitation .primary {
  padding:12px 24px;
  font-size:13px;
}
.home-canvas.has-subjects {
  display:block;
  place-items:normal;
  padding:36px 0 64px;
}
.home-subjects {
  width:100%;
}
.home-subjects-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px;
}
.home-subjects-heading h1 {
  margin:0 0 10px;
  font-size:28px;
  font-weight:500;
  letter-spacing:-.5px;
}
.home-subjects-heading p {
  margin:0;
  font-size:12px;
  color:var(--muted);
}
.home-course-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.subject-card {
  position:relative;
  min-width:0;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--paper);
  transition:border-color .18s ease,box-shadow .18s ease;
}
.subject-card:hover,.subject-card:focus-within {
  border-color:var(--line-strong);
  box-shadow:0 4px 16px #45464108;
}
.subject-open {
  display:block;
  width:100%;
  height:100%;
  padding:24px;
  border:0;
  border-radius:13px;
  color:var(--ink);
  background:transparent;
  text-align:left;
}
.subject-icon {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  margin-bottom:22px;
  border-radius:12px;
  background:var(--tint);
  color:var(--color);
  font-size:19px;
  font-weight:600;
}
.subject-open h2 {
  margin:0 22px 10px 0;
  font-size:18px;
  font-weight:600;
  overflow-wrap:anywhere;
}
.subject-open p {
  margin:0 0 28px;
  min-height:40px;
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
  overflow-wrap:anywhere;
}
.subject-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  color:var(--muted);
  font-size:11px;
}
.subject-enter {
  color:var(--color);
}
.subject-enter span {
  margin-left:4px;
  font-size:16px;
}
.subject-edit {
  position:absolute;
  top:20px;
  right:16px;
  width:36px;
  height:36px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--muted);
  font-size:23px;
}
.subject-edit:hover {
  background:var(--surface-inset);
  color:var(--ink);
}
@media(max-width:1200px) {
  .home-course-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:540px) {
  .home-course-grid {
    grid-template-columns:minmax(0,1fr);
    gap:16px;
  }
  .home-canvas.has-subjects {
    padding-top:24px;
  }
  .home-subjects-heading h1 {
    font-size:24px;
  }
}
.home-view main {
  background:var(--bg);
  min-height:100dvh;
}
.home-view .content>.intro,.home-view .toolbar,.home-view .section-title,.home-view #grid,.home-view footer,.home-view .sidebar-note {
  display:none;
}
.home-view .local-status {
  margin-top:auto;
}
.home-view header {
  background:var(--bg);
  border-bottom:0;
}
.home-view .content {
  padding-top:0;
  padding-bottom:0;
}
.content>.intro {
  margin-bottom:32px;
}
@media(max-width:760px) {
  .home-canvas {
    min-height:55dvh;
    padding:50px 0 70px;
  }
  .home-invitation h1 {
    font-size:23px;
  }
  .home-view .local-status {
    display:none;
  }
  .home-view main {
    min-height:65dvh;
  }
  .home-view aside {
    padding-bottom:16px;
  }
}
.card {
  position:relative;
  isolation:isolate;
  cursor:pointer;
}
.site-link {
  color:inherit;
  text-decoration:none;
}
.site-link::after {
  content:'';
  position:absolute;
  inset:0;
  z-index:1;
  border-radius:12px;
}
.site-link:focus-visible {
  outline:none;
}
.site-link:focus-visible::after {
  outline:3px solid var(--ring);
  outline-offset:3px;
}
.card-actions button {
  position:relative;
  z-index:2;
}
.card-actions button {
  padding:8px 10px;
  border-radius:6px;
  min-height:40px;
}
.card-actions button:hover {
  background:var(--soft);
  color:var(--accent);
}
.card:hover .site-link {
  color:var(--accent);
}
.card:has(.site-link:hover) {
  background:var(--paper);
}
.card-top>div:nth-child(2) {
  min-width:0;
}
.site-name {
  overflow-wrap:anywhere;
}
.intro-actions {
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}
.intro-actions .secondary {
  border:1px solid var(--line);
  background:transparent;
  min-height:44px;
  font-size:13px;
}
.course-nav-row {
  display:flex;
  align-items:center;
  gap:3px;
  min-width:0;
}
.course-nav-row>button:first-child {
  flex:1;
  min-width:0;
}
.course-name {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.course-edit {
  padding:0!important;
  width:30px;
  min-width:30px;
  justify-content:center;
  color:var(--muted);
  font-size:20px;
}
.manage-courses {
  border:1px dashed var(--line-strong);
  border-radius:7px;
  background:transparent;
  color:var(--sage-ink);
  padding:10px;
  margin:14px 7px 0;
  text-align:center;
  min-height:42px;
  font-size:12px;
}
.manage-courses:hover {
  background:var(--sage-soft);
}
.text-action {
  margin-left:auto;
  border:0;
  background:none;
  color:var(--accent);
  padding:10px;
  font-size:12px;
  min-height:40px;
}
.text-action[hidden] {
  display:none;
}
.dialog-description {
  color:var(--muted);
  font-size:12px;
  line-height:1.9;
  margin-bottom:23px;
}
.required {
  color:var(--danger);
}
.optional {
  font-size:11px;
  color:var(--muted);
  margin-left:4px;
}
.field-error {
  color:var(--danger);
  font-size:12px;
  margin:0;
  min-height:16px;
}
.colors-field {
  padding:0;
  margin:12px 0 20px;
  border:0;
}
.colors-field legend {
  font-size:12px;
  margin-bottom:12px;
}
#courseColors {
  display:flex;
  gap:9px;
}
.color-option {
  position:relative;
  flex:1;
  cursor:pointer;
}
.color-option input {
  position:absolute;
  opacity:0;
}
.color-option span {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:8px;
  border:2px solid transparent;
  background:var(--surface-inset);
  border-radius:8px;
  padding:10px 3px;
  font-size:11px;
  color:var(--muted);
  min-height:65px;
}
.color-option span:before {
  content:'';
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--swatch);
}
.color-option input:checked+span {
  border-color:var(--swatch);
  background:var(--pale);
}
.color-option input:focus-visible+span {
  outline:3px solid var(--ring);
  outline-offset:3px;
}
.managed-course {
  display:flex;
  gap:12px;
  align-items:center;
  padding:16px 0;
  border-bottom:1px solid var(--line);
}
.course-tile {
  width:40px;
  height:40px;
  border-radius:10px;
  display:grid;
  place-items:center;
  flex-shrink:0;
}
.managed-description {
  flex:1;
  min-width:0;
}
.managed-description b {
  display:block;
  font-size:13px;
  overflow-wrap:anywhere;
}
.managed-description small {
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-top:6px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.managed-course .secondary {
  font-size:12px;
  min-height:40px;
  padding:8px 12px;
}
.remove-course {
  border:0;
  background:none;
  color:var(--danger);
  min-height:40px;
  padding:8px;
  font-size:12px;
}
.full-width {
  width:100%;
  margin-top:24px;
}
.danger-fill {
  background:var(--danger);
}
.empty-symbol {
  font-size:32px;
  color:var(--sage-ink);
  margin-bottom:15px;
}
.empty h3 {
  font-weight:500;
  font-size:16px;
}
.empty p {
  font-size:12px;
  line-height:1.8;
  margin:12px 0 24px;
}
#courseManager {
  width:min(580px,calc(100% - 32px));
}
#courses {
  max-height:42vh;
  overflow-y:auto;
  flex-shrink:0;
}
aside {
  overflow-y:auto;
}
.sidebar-note {
  flex-shrink:0;
}
@media(max-width:1100px) and (min-width:761px) {
  .intro {
    align-items:flex-start;
  }
  .intro-actions {
    flex-direction:column-reverse;
    align-items:stretch;
  }
  .intro-actions button {
    padding:10px 14px;
  }
  .intro h1 {
    font-size:29px;
  }
}
@media(max-width:760px) {
  .intro {
    flex-wrap:wrap;
  }
  .intro-actions {
    width:100%;
    margin-top:4px;
  }
  .intro-actions .primary {
    font-size:14px;
    padding:10px 16px;
  }
  .intro-actions .primary span {
    display:inline;
    font-size:13px;
  }
  .intro-actions .secondary {
    padding:10px 16px;
  }
  .manage-courses {
    display:block;
    margin:10px 0 0;
    align-self:flex-start;
    min-height:40px;
    padding:8px 14px;
  }
  #courses {
    max-height:none;
    flex-shrink:0;
  }
  #courses .course-nav-row {
    flex-shrink:0;
  }
  #courses .course-edit {
    min-height:38px;
  }
  .course-nav-row>button:first-child {
    gap:7px;
  }
  #courseColors {
    gap:5px;
  }
  .managed-course {
    gap:8px;
  }
  .course-tile {
    width:32px;
    height:32px;
  }
  .managed-course .secondary {
    padding:8px;
  }
  .remove-course {
    padding:5px;
  }
  dialog {
    padding:22px;
  }
}
/* Interface text stays fixed; text editing keeps standard selection behavior. */
html {
  -webkit-user-select: none;
  user-select: none;
}
input, textarea, [contenteditable]:not([contenteditable="false"]) {
  -webkit-user-select: text;
  user-select: text;
}
input::selection, textarea::selection {
  background: var(--sage-soft);
  color: var(--ink);
}
input[type="checkbox"], input[type="radio"] {
  accent-color: var(--accent);
}
input::placeholder, textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.card {
  box-shadow: 0 2px 12px var(--card-shadow);
}
.card:hover {
  transform: translateY(-2px);
}
.primary:hover {
  background: var(--accent-hover);
  filter: none;
}
.primary {
  color: var(--on-accent);
}
#toast {
  color: var(--on-accent);
}
.dialog-head h2 {
  font-weight: 600;
}
.brand {
  font-weight: 650;
}
