:root {
  --bg: #f6f3ec;
  --surface: #fffdf8;
  --surface-2: #fbf8f1;
  --ink: #203b3a;
  --ink-soft: #637774;
  --line: #e6e0d3;
  --line-strong: #d8d1c2;
  --teal: #2f9e8f;
  --teal-strong: #1f8377;
  --teal-soft: #e1f1ed;
  --blue: #4f7db8;
  --blue-soft: #e7eef8;
  --coral: #df795d;
  --coral-soft: #f9e8e2;
  --yellow: #d99f3f;
  --yellow-soft: #f8edda;
  --lilac: #8e7cb8;
  --lilac-soft: #ece7f5;
  --green: #6a9b57;
  --green-soft: #e9f1e4;
  --danger: #c94f45;
  --shadow: 0 1px 2px rgba(36, 58, 56, 0.05),
    0 10px 28px rgba(36, 58, 56, 0.06);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    "Segoe UI",
    system-ui,
    sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  flex: none;
}

.app {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px 96px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 158, 143, 0.28);
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-size: 18px;
  line-height: 1.3;
}

.brand-text span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-soft);
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-date {
  font-size: 14px;
  color: var(--ink-soft);
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-soft);
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.icon-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.icon-btn:active {
  transform: translateY(1px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.tab:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.tab.is-active {
  background: var(--teal);
  color: #fff;
}

.tab svg {
  width: 17px;
  height: 17px;
}

.view {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Apple liquid-glass web approximation: layered borders, blur, and highlights. */
.panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-head,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.week-type-badge {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.week-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
}

.stepper-btn {
  width: 30px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.stepper-btn:hover {
  color: var(--teal);
  background: var(--surface-2);
}

.week-input {
  width: 46px;
  height: 34px;
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.week-input::-webkit-outer-spin-button,
.week-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.week-input[type='number'] {
  -moz-appearance: textfield;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.panel-title svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}

.muted {
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}

.btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  border-color: var(--teal-strong);
  background: var(--teal-strong);
  color: #fff;
}

.btn-danger {
  border-color: #e6b7b2;
  color: var(--danger);
}

.btn-danger:hover {
  background: #fdf3f1;
  border-color: var(--danger);
}

.btn-sm {
  padding: 5px 9px;
  font-size: 12px;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.icon-btn-sm {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
}

.icon-btn-sm:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
}

.icon-btn-sm svg {
  width: 15px;
  height: 15px;
}

.empty {
  padding: 28px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

.empty svg {
  width: 26px;
  height: 26px;
  margin: 0 auto 8px;
  color: var(--teal);
}

.day-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 2px 14px;
}

.day-hero .eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.day-hero h1 {
  margin: 5px 0 0;
  font-size: 26px;
  line-height: 1.3;
}

.day-hero .greeting {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.date-switch {
  display: flex;
  align-items: center;
  gap: 7px;
}

.date-switch .icon-btn {
  width: 34px;
  height: 34px;
}

.date-input {
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.dashboard-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-manage-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.course-manage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.course-manage-list .btn {
  flex: none;
}

.course-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.course-row.is-current {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.course-row.is-next {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.course-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
}

.course-dot.teal {
  background: var(--teal);
}

.course-dot.blue {
  background: var(--blue);
}

.course-dot.coral {
  background: var(--coral);
}

.course-dot.yellow {
  background: var(--yellow);
}

.course-dot.lilac {
  background: var(--lilac);
}

.course-dot.green {
  background: var(--green);
}

.course-main {
  min-width: 0;
  flex: 1;
}

.course-main strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.course-meta {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.badge-current {
  background: var(--teal);
  color: #fff;
}

.badge-next {
  background: var(--blue);
  color: #fff;
}

.badge-overdue {
  background: var(--coral);
  color: #fff;
}

.badge-soon {
  background: var(--yellow);
  color: #fff;
}

.badge-soft {
  background: var(--surface-2);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.quick-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.quick-form input,
.quick-form select,
.field input,
.field select,
.field textarea {
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.quick-form input {
  flex: 1;
  min-width: 0;
}

.quick-form select {
  flex: none;
}

.quick-form input:focus,
.quick-form select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--teal-soft);
  border-color: var(--teal);
}

.todo-list,
.task-list {
  display: flex;
  flex-direction: column;
}

.todo-item,
.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.todo-item:last-child,
.task-row:last-child {
  border-bottom: 0;
}

.check-btn {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: transparent;
}

.check-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.check-btn svg {
  width: 14px;
  height: 14px;
}

.todo-item.is-done .check-btn {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.todo-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.todo-item.is-done .todo-text {
  color: var(--ink-soft);
  text-decoration: line-through;
}

.task-main {
  min-width: 0;
  flex: 1;
}

.task-main strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
}

.task-row.is-overdue {
  background: var(--coral-soft);
  border-radius: 6px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: transparent;
}

.task-row.is-soon {
  background: var(--yellow-soft);
  border-radius: 6px;
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: transparent;
}

.task-actions {
  display: flex;
  gap: 2px;
  flex: none;
}

.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 12px;
}

.chip strong {
  color: var(--ink);
  font-size: 14px;
}

.progress-block {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.progress-block.progress-compact {
  margin-bottom: 12px;
  padding: 10px 12px;
}

.progress-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}

.progress-meta strong {
  color: var(--ink);
  font-size: 15px;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--teal);
  transition: width 0.35s ease;
}

.btn-complete {
  flex: none;
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
}

.btn-complete:hover {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.btn-complete.is-done {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink-soft);
}

.btn-complete.is-done:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink-soft);
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.exam-card {
  position: relative;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.exam-card.is-past {
  opacity: 0.72;
}

.exam-count {
  color: var(--teal);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.exam-card.is-past .exam-count {
  color: var(--ink-soft);
}

.exam-card h3 {
  margin: 8px 0 4px;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.exam-meta {
  color: var(--ink-soft);
  font-size: 12px;
}

.exam-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 2px;
}

.timetable-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.timetable {
  display: grid;
  grid-template-columns: 52px repeat(7, minmax(128px, 1fr));
  grid-template-rows: 46px 960px;
  min-width: 960px;
}

.timetable-head {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 52px repeat(7, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.day-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

.day-head.is-today {
  color: var(--teal);
  font-weight: 700;
}

.day-head .add-day {
  display: none;
  width: 20px;
  height: 20px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: var(--teal-soft);
  color: var(--teal);
}

.day-head:hover .add-day {
  display: grid;
}

.day-head .add-day svg {
  width: 13px;
  height: 13px;
}

.time-axis {
  position: relative;
  border-right: 1px solid var(--line);
}

.time-label {
  position: absolute;
  right: 8px;
  transform: translateY(-50%);
  color: var(--ink-soft);
  font-size: 11px;
  white-space: nowrap;
}

.time-label:first-child {
  transform: translateY(0);
}

.day-column {
  position: relative;
  border-right: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 59px,
    var(--line) 59px,
    var(--line) 60px
  );
}

.day-column:last-child {
  border-right: 0;
}

.course-card {
  position: absolute;
  left: 5px;
  right: 5px;
  min-height: 38px;
  padding: 7px 9px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  text-align: left;
}

.course-card:hover {
  z-index: 4;
}

.course-card .course-title {
  display: block;
  overflow-wrap: anywhere;
  font-weight: 700;
  line-height: 1.35;
}

.course-card .course-time {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.82;
}

.course-card.is-current {
  z-index: 2;
  box-shadow: 0 0 0 2px var(--teal);
}

.course-card.is-next {
  z-index: 2;
  box-shadow: 0 0 0 2px var(--blue);
}

.course-teal {
  border-color: #b9dfd7;
  background: #dff1ed;
  color: #1f6e63;
}

.course-blue {
  border-color: #c2d5ee;
  background: #e7eef8;
  color: #3d6193;
}

.course-coral {
  border-color: #efc7bc;
  background: #f9e8e2;
  color: #b5543e;
}

.course-yellow {
  border-color: #ecd09a;
  background: #f8edda;
  color: #9a6f24;
}

.course-lilac {
  border-color: #d3c9e8;
  background: #ece7f5;
  color: #695696;
}

.course-green {
  border-color: #c4d9b9;
  background: #e9f1e4;
  color: #4f7a3f;
}

.current-line {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 3;
  height: 2px;
  background: var(--coral);
}

.current-line::after {
  position: absolute;
  top: -17px;
  right: 6px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 700;
  content: "现在";
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agenda-day {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.agenda-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.agenda-day-head strong {
  font-size: 14px;
}

.agenda-day-head span {
  color: var(--ink-soft);
  font-size: 12px;
}

.event-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}

.event-time {
  min-width: 46px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.event-main {
  min-width: 0;
  flex: 1;
}

.event-main strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.event-meta {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.settings-grid .panel-wide {
  grid-column: 1 / -1;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px dashed var(--line);
}

.setting-row:first-of-type {
  border-top: 0;
}

.setting-label strong {
  display: block;
  font-size: 14px;
}

.setting-label span {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
}

.setting-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.setting-control input[type="text"],
.setting-control input[type="number"] {
  width: 180px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex: none;
}

.switch input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.switch .slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 0.2s ease;
}

.switch .slider::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 0.2s ease;
}

.switch input:checked + .slider {
  background: var(--teal);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 48px));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(24, 45, 43, 0.24);
}

.dialog::backdrop {
  background: rgba(26, 45, 43, 0.36);
  backdrop-filter: blur(2px);
}

.dialog-body {
  padding: 20px;
}

.dialog-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.dialog-title h2 {
  margin: 0;
  font-size: 18px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
}

.field textarea {
  min-height: 76px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.toast-wrap {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  max-width: min(420px, calc(100vw - 40px));
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(24, 45, 43, 0.2);
  animation: toast-in 0.2s ease-out;
}

.toast.error {
  background: var(--danger);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .dashboard-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .day-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .app {
    padding: 14px 12px 112px;
  }

  .top-date {
    display: none;
  }

  .brand-text span {
    display: none;
  }

  .tabs {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 30;
    justify-content: space-around;
    margin: 0;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(24, 45, 43, 0.16);
  }

  .tab {
    flex: 1;
    flex-direction: column;
    gap: 3px;
    padding: 6px 4px;
    font-size: 11px;
  }

  .tab svg {
    width: 18px;
    height: 18px;
  }

  .day-hero h1 {
    font-size: 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .quick-form {
    flex-wrap: wrap;
  }

  .quick-form select {
    width: 104px;
  }

  .setting-control input[type="text"] {
    width: 130px;
  }

  .setting-control input[type="number"] {
    width: 90px;
  }

  .panel {
    padding: 14px;
  }
}

/* ---- Design refresh: richer palette + motion ---- */

:root {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(250, 250, 252, 0.82);
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);
  --teal: #0071e3;
  --teal-strong: #0060c2;
  --teal-soft: #e8f2ff;
  --blue: #5e5ce6;
  --blue-soft: #ecebfb;
  --coral: #ff6b5e;
  --coral-soft: #ffe9e7;
  --yellow: #f2a900;
  --yellow-soft: #fff3d6;
  --lilac: #bf5af2;
  --lilac-soft: #f4e8fc;
  --green: #34c759;
  --green-soft: #e6f8ea;
  --danger: #ff3b30;
}

body {
  background: linear-gradient(180deg, #fbfbfd, var(--bg));
}

.brand-mark {
  background: #1d1d1f;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease;
}

.brand-mark:hover {
  transform: rotate(-5deg) scale(1.06);
}

.top-time {
  padding: 5px 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  color: #1d1d1f;
  font-family:
    "Cascadia Mono",
    Consolas,
    "SFMono-Regular",
    Menlo,
    monospace;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tab {
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.tab svg {
  transition: transform 0.2s ease;
}

.tab.is-active {
  background: #fff;
  color: #0071e3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab.is-active svg {
  transform: scale(1.08);
}

.tab:active {
  transform: translateY(1px);
}

.panel {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 18px 42px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 113, 227, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 24px 52px rgba(0, 0, 0, 0.11);
}

.view-enter .day-hero {
  animation: rise-in 0.5s cubic-bezier(0.22, 0.68, 0.34, 1) both;
}

.view-enter .panel {
  animation: rise-in 0.5s cubic-bezier(0.22, 0.68, 0.34, 1) both;
}

.view-enter .dashboard-stack > .panel:nth-child(1) {
  animation-delay: 0.04s;
}

.view-enter .dashboard-stack > .panel:nth-child(2) {
  animation-delay: 0.1s;
}

.view-enter .dashboard-stack > .panel:nth-child(3) {
  animation-delay: 0.16s;
}

.view-enter .settings-grid > .panel:nth-child(1) {
  animation-delay: 0.04s;
}

.view-enter .settings-grid > .panel:nth-child(2) {
  animation-delay: 0.1s;
}

.view-enter .settings-grid > .panel:nth-child(3) {
  animation-delay: 0.16s;
}

.view-enter .settings-grid > .panel:nth-child(4) {
  animation-delay: 0.22s;
}

.view-enter .course-row,
.view-enter .todo-item,
.view-enter .task-row,
.view-enter .exam-card,
.view-enter .agenda-day {
  animation: row-in 0.42s ease both;
}

.view-enter .course-row:nth-child(2),
.view-enter .todo-item:nth-child(2),
.view-enter .task-row:nth-child(2) {
  animation-delay: 0.04s;
}

.view-enter .course-row:nth-child(3),
.view-enter .todo-item:nth-child(3),
.view-enter .task-row:nth-child(3) {
  animation-delay: 0.08s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.course-row {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.course-row:hover {
  transform: translateX(3px);
}

.course-row.is-current {
  animation: current-glow 2.6s ease-in-out infinite;
}

@keyframes current-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.22);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(0, 113, 227, 0);
  }
}

.course-teal {
  border-color: rgba(10, 132, 255, 0.28);
  background: rgba(10, 132, 255, 0.1);
  color: #0a66d0;
}

.course-blue {
  border-color: rgba(94, 92, 230, 0.28);
  background: rgba(94, 92, 230, 0.1);
  color: #4c4ac7;
}

.course-coral {
  border-color: rgba(255, 107, 94, 0.3);
  background: rgba(255, 107, 94, 0.1);
  color: #d84b3d;
}

.course-yellow {
  border-color: rgba(242, 169, 0, 0.32);
  background: rgba(242, 169, 0, 0.12);
  color: #a86f00;
}

.course-lilac {
  border-color: rgba(191, 90, 242, 0.28);
  background: rgba(191, 90, 242, 0.1);
  color: #8f31c7;
}

.course-green {
  border-color: rgba(52, 199, 89, 0.3);
  background: rgba(52, 199, 89, 0.1);
  color: #248a3d;
}

.course-card {
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.course-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.todo-item,
.task-row {
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.todo-item:hover,
.task-row:hover {
  transform: translateX(3px);
}

.exam-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.exam-card:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 127, 196, 0.3);
  box-shadow: 0 16px 34px rgba(29, 52, 55, 0.12);
}

.exam-card:not(.is-past) .exam-count {
  color: #0071e3;
}

.btn {
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.btn svg {
  transition: transform 0.18s ease;
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  border-color: transparent;
  background: #0071e3;
  box-shadow: 0 8px 18px rgba(0, 113, 227, 0.2);
}

.btn-primary:hover {
  border-color: transparent;
  background: #0060c2;
  box-shadow: 0 10px 22px rgba(0, 113, 227, 0.26);
}

.btn-complete {
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.1);
}

.progress-block {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.progress-track {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.progress-fill {
  background: #0071e3;
  animation: grow-progress 0.9s cubic-bezier(0.22, 0.68, 0.34, 1) both;
}

@keyframes grow-progress {
  from {
    width: 0;
  }
  to {
    width: var(--target, 100%);
  }
}

.empty {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.empty:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}

.dialog {
  animation: dialog-in 0.22s ease-out both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .panel:hover,
  .course-row:hover,
  .todo-item:hover,
  .task-row:hover,
  .exam-card:hover {
    transform: none;
  }
}

/* Task milestones : keep row quiet, let the chip carry the status */
.task-row.is-overdue {
  background: rgba(214, 59, 47, 0.05);
}

.task-row.is-soon {
  background: rgba(217, 154, 31, 0.05);
}

.task-row.is-overdue:hover,
.task-row.is-soon:hover {
  background: rgba(10, 132, 255, 0.05);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 720px) {
  .section-controls {
    flex-wrap: wrap;
  }
}

/* ---- 云端同步面板：手机端自动换行，避免溢出 ---- */
.sync-status {
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  #syncCodeInput {
    width: 100%;
    min-width: 0;
  }

  .panel:has(#syncCodeInput) .setting-control {
    flex-wrap: wrap;
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .panel:has(#syncCodeInput) .setting-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

/* ============================================================
   Design v2 : cold Apple gradient refresh (final)
   明快一点：晴蓝渐变主色、冷调银白背景、轻抬入场动效
   ============================================================ */

:root {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(250, 250, 252, 0.82);
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-mute: #9a9aa1;
  --line: rgba(32, 42, 62, 0.08);
  --line-strong: rgba(32, 42, 62, 0.16);

  --accent: #0a84ff;
  --accent-2: #5e9bff;
  --accent-btn: #3f8cff;
  --accent-soft: #eaf2ff;
  --accent-ink: #0a5fd0;

  --teal: #0a84ff;
  --teal-strong: #0060c2;
  --teal-soft: #e8f2ff;
  --blue: #5e5ce6;
  --blue-soft: #ecebfb;
  --coral: #e0533f;
  --coral-soft: #fdeeec;
  --yellow: #d99a1f;
  --yellow-soft: #fdf3dc;
  --lilac: #8b7bd0;
  --lilac-soft: #f0ecfb;
  --green: #43a06b;
  --green-soft: #e6f3ec;
  --danger: #d63b2f;
  --danger-soft: #fdeeec;

  --shadow: 0 1px 2px rgba(20, 32, 56, 0.04),
    0 16px 40px rgba(20, 32, 56, 0.06);
  --shadow-lift: 0 2px 4px rgba(20, 32, 56, 0.06),
    0 18px 46px rgba(20, 32, 56, 0.1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background: linear-gradient(180deg, #fbfbfd 0%, var(--bg) 100%);
  color: var(--ink);
}

/* Top bar & brand mark */
.brand-mark {
  background: linear-gradient(135deg, #0a84ff 0%, #5e9bff 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 132, 255, 0.32);
}

.brand-text strong {
  font-weight: 750;
  letter-spacing: -0.02em;
}

.top-time {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 32, 56, 0.04);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 2px rgba(20, 32, 56, 0.04);
}

.icon-btn:hover {
  border-color: rgba(10, 132, 255, 0.28);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Tabs : sticky translucent pill on desktop */
@media (min-width: 721px) {
  .tabs {
    position: sticky;
    top: 14px;
    z-index: 20;
    margin-bottom: 26px;
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
  }
}

.tab {
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.tab:hover {
  background: rgba(10, 132, 255, 0.05);
  color: var(--ink);
}

.tab.is-active {
  color: var(--accent-ink);
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.14),
    rgba(94, 155, 255, 0.07));
  box-shadow: inset 0 0 0 1px rgba(10, 132, 255, 0.18);
}

.tab.is-active svg {
  color: var(--accent);
  transform: scale(1.08);
}

/* Hero : bigger, tighter headline */
.day-hero {
  padding: 8px 2px 18px;
}

.day-hero .eyebrow {
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.day-hero h1 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 750;
}

.day-hero .greeting {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-soft);
}

.date-input {
  border-color: rgba(0, 0, 0, 0.14);
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 32, 56, 0.04);
}

/* Panels : frosted surface + top accent hairline */
.panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 18px 42px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease),
    border-color 0.26s var(--ease);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  opacity: 0.8;
  background: linear-gradient(90deg, rgba(10, 132, 255, 0.3),
    rgba(94, 155, 255, 0.04));
  pointer-events: none;
}

.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 132, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 24px 52px rgba(20, 32, 56, 0.11);
}

.panel-title svg {
  color: var(--accent);
}

.panel-title:has(svg) {
  gap: 9px;
}

/* Buttons */
.btn {
  transition: transform 0.16s var(--ease), border-color 0.16s var(--ease),
    color 0.16s var(--ease), background 0.16s var(--ease),
    box-shadow 0.16s var(--ease);
}

.btn:hover {
  border-color: rgba(10, 132, 255, 0.32);
  color: var(--accent-ink);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #0a84ff 0%, #3f8cff 100%);
  box-shadow: 0 6px 16px rgba(10, 132, 255, 0.32);
}

.btn-primary:hover {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #0a84ff 0%, #3f8cff 100%);
  box-shadow: 0 10px 22px rgba(10, 132, 255, 0.4);
  transform: translateY(-1px);
}

.btn-danger {
  border-color: rgba(214, 59, 47, 0.32);
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
}

.icon-btn-sm {
  transition: background 0.16s var(--ease), color 0.16s var(--ease),
    transform 0.16s var(--ease);
}

.icon-btn-sm:hover {
  background: rgba(10, 132, 255, 0.08);
  color: var(--accent);
  border-color: rgba(10, 132, 255, 0.16);
}

/* Course rows, todos, tasks : soft hover lift */
.course-row,
.todo-item,
.task-row {
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.course-row:hover,
.todo-item:hover,
.task-row:hover {
  background: rgba(10, 132, 255, 0.05);
  border-color: rgba(10, 132, 255, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 32, 56, 0.06);
}

.course-row.is-current {
  border-color: rgba(10, 132, 255, 0.34);
  background: rgba(10, 132, 255, 0.08);
}

.course-row.is-next {
  border-color: rgba(94, 92, 230, 0.3);
  background: rgba(94, 92, 230, 0.08);
}

.course-dot {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.08);
}

/* Progress bar : gradient fill with a settle delay */
.progress-track {
  background: rgba(32, 42, 62, 0.08);
}

.progress-fill {
  background: linear-gradient(90deg, #0a84ff, #5e9bff);
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.4);
}

.progress-meta strong {
  color: var(--accent-ink);
}

/* Task / todo completion button */
.btn-complete {
  border-color: rgba(10, 132, 255, 0.36);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.btn-complete:hover {
  background: linear-gradient(135deg, #0a84ff, #3f8cff);
  border-color: transparent;
  color: #fff;
}

.btn-complete.is-done {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink-mute);
}

.btn-complete.is-done:hover {
  background: var(--surface-2);
  color: var(--ink-soft);
}

/* Badges : quiet pastel chips, no colour stacking */
.badge-current,
.badge-next,
.badge-overdue,
.badge-soon,
.badge-soft {
  border: 1px solid transparent;
}

.badge-current {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: rgba(10, 132, 255, 0.18);
}

.badge-next {
  background: var(--blue-soft);
  color: #4c4ac7;
  border-color: rgba(94, 92, 230, 0.2);
}

.badge-overdue {
  background: var(--danger-soft);
  color: #c53d2f;
  border-color: rgba(214, 59, 47, 0.18);
}

.badge-soon {
  background: var(--yellow-soft);
  color: #a56d00;
  border-color: rgba(217, 154, 31, 0.22);
}

/* Exams : gradient countdown numerals + glow */
.exam-card {
  border-color: rgba(0, 0, 0, 0.08);
  background: linear-gradient(160deg, #fff, #f6faff);
  box-shadow: 0 1px 2px rgba(20, 32, 56, 0.04);
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease),
    border-color 0.26s var(--ease);
}

.exam-card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 132, 255, 0.24);
  box-shadow: var(--shadow-lift);
}

.exam-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -26px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.14),
    transparent 70%);
  pointer-events: none;
}

.exam-count {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #0a84ff, #5e9bff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.exam-card.is-past .exam-count {
  background: none;
  -webkit-text-fill-color: var(--ink-mute);
}

.exam-card h3 {
  font-size: 15px;
  font-weight: 700;
}

/* Week controls : aligned to accent */
.week-type-badge {
  border: 1px solid rgba(10, 132, 255, 0.2);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.week-stepper {
  border-color: rgba(0, 0, 0, 0.14);
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 32, 56, 0.04);
}

.stepper-btn:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.week-input {
  border-color: rgba(0, 0, 0, 0.12);
  background: #fff;
}

/* Entry choreography : panels rise in sequence */
.view-enter .day-hero {
  animation-delay: 0.02s;
}

.view-enter .panel {
  animation: rise-in 0.6s var(--ease) both;
}

.view-enter .dashboard-stack > .panel:nth-child(1) {
  animation-delay: 0.06s;
}
.view-enter .dashboard-stack > .panel:nth-child(2) {
  animation-delay: 0.13s;
}
.view-enter .dashboard-stack > .panel:nth-child(3) {
  animation-delay: 0.2s;
}

.view-enter .settings-grid > .panel:nth-child(1) {
  animation-delay: 0.06s;
}
.view-enter .settings-grid > .panel:nth-child(2) {
  animation-delay: 0.13s;
}
.view-enter .settings-grid > .panel:nth-child(3) {
  animation-delay: 0.2s;
}
.view-enter .settings-grid > .panel:nth-child(4) {
  animation-delay: 0.27s;
}

.view-enter .course-row,
.view-enter .todo-item,
.view-enter .task-row,
.view-enter .exam-card,
.view-enter .agenda-day {
  animation: row-in 0.46s var(--ease) both;
}

.view-enter .course-row:nth-child(2),
.view-enter .todo-item:nth-child(2),
.view-enter .task-row:nth-child(2) {
  animation-delay: 0.05s;
}
.view-enter .course-row:nth-child(3),
.view-enter .todo-item:nth-child(3),
.view-enter .task-row:nth-child(3) {
  animation-delay: 0.1s;
}

/* Empty / dialog / toast polish */
.empty {
  border-color: rgba(10, 132, 255, 0.22);
  background: rgba(10, 132, 255, 0.03);
}

.empty svg {
  color: var(--accent);
}

.dialog::backdrop {
  background: rgba(20, 32, 56, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.toast {
  box-shadow: 0 12px 28px rgba(20, 32, 56, 0.18);
}

/* Mobile : floating translucent tab bar */
@media (max-width: 720px) {
  .tabs {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 10px 30px rgba(20, 32, 56, 0.16);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
  }

  .tab.is-active {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.18),
      rgba(94, 155, 255, 0.09));
  }

  .day-hero h1 {
    font-size: clamp(24px, 7vw, 30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* Mobile : keep hover-driven lifts off so touch stays steady */
@media (max-width: 720px) {
  .panel:hover,
  .course-row:hover,
  .todo-item:hover,
  .task-row:hover,
  .exam-card:hover,
  .btn-primary:hover,
  .icon-btn:hover {
    transform: none;
  }
}
