*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ui-glass: rgba(255, 255, 255, 0.55);
  --ui-glass-strong: rgba(255, 255, 255, 0.78);
  --ui-glass-border: rgba(255, 255, 255, 0.72);
  --ui-blur: blur(18px);
  --ui-radius: 18px;
  --ui-radius-lg: 22px;
  --ui-shadow: 0 10px 36px rgba(88, 110, 180, 0.16);
  --ui-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  --ui-gradient-bg: linear-gradient(
    135deg,
    #93c9ff 0%,
    #b8c8ff 36%,
    #c9d4ff 52%,
    #9fd4ff 100%
  );
  --ui-gradient-btn: linear-gradient(180deg, #8ec5ff 0%, #6b7cff 55%, #7b5fd4 100%);
  --ui-text: #2a3342;
  --ui-text-muted: #5a6578;
  --ui-accent: #5b7cfa;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: radial-gradient(ellipse at 50% 0%, #1a3a5c 0%, #0d1b2a 55%, #060d14 100%);
  color: #2d3436;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.page-hint {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 20px;
}

.page-hint__link {
  color: #b8f52a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-hint__link:hover {
  color: #d4ff4d;
}

.device {
  margin: 0 auto;
  width: min(100%, 860px);
}

.device-bezel {
  background: #111;
  border-radius: 18px 18px 0 0;
  padding: 14px 14px 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.device-chin {
  position: relative;
  height: 36px;
  background: linear-gradient(180deg, #d4c4a8 0%, #b8a078 100%);
  border-radius: 0 0 14px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-chin__cam {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
  box-shadow: inset 0 0 0 2px #555;
}

.device-chin__nfc {
  position: absolute;
  right: 28px;
  font-size: 11px;
  letter-spacing: -1px;
  color: #5c4a32;
  font-weight: 600;
}

.screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--ui-gradient-bg);
  border-radius: 8px;
  overflow: hidden;
}

.view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.view--active {
  opacity: 1;
  pointer-events: auto;
}

/* ========== 首页仪表盘 ========== */
.view--dashboard {
  padding: 0;
  background: transparent;
}

.top-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 12px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: var(--ui-blur);
  -webkit-backdrop-filter: var(--ui-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 24px rgba(120, 140, 200, 0.12);
  color: #1a3a5c;
  flex-shrink: 0;
}

.top-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  justify-self: start;
}

.top-header__logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 60, 120, 0.25);
}

.top-header__countdown-icon {
  flex-shrink: 0;
}

.top-header__school {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 80, 140, 0.2);
}

.top-header__class {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.96;
  margin-top: 2px;
}

.top-header__countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: var(--ui-blur);
  -webkit-backdrop-filter: var(--ui-blur);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 16px rgba(100, 120, 200, 0.12);
  font-size: 13px;
  white-space: nowrap;
  justify-self: center;
  color: #2a4060;
}

.top-header__countdown-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #e8f4fc 100%);
  color: #2e86de;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.top-header__countdown-badge small {
  font-size: 13px;
  font-weight: 800;
}

.top-header__countdown-text {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.top-header__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  justify-self: end;
}

.top-header__time {
  text-align: right;
  line-height: 1.25;
}

.top-header__time-main {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
}

.top-header__time-main strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.top-header__time-main span {
  font-size: 14px;
  font-weight: 500;
}

.top-header__date-long {
  display: block;
  font-size: 11px;
  opacity: 0.95;
  margin-top: 2px;
}

.top-header__weather {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.top-header__weather-sun {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.top-header__weather-meta {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.35;
}

.top-header__air {
  font-size: 11px;
  opacity: 0.95;
}

.top-header__temp {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dashboard {
  flex: 1;
  display: grid;
  grid-template-columns: 26% 1fr 28%;
  gap: 8px;
  min-height: 0;
  padding: 8px 12px 6px;
}

.dashboard__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.dashboard__col--right .card {
  flex: 1;
}

.card {
  background: var(--ui-glass);
  backdrop-filter: var(--ui-blur);
  -webkit-backdrop-filter: var(--ui-blur);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow), var(--ui-shadow-inset);
  border: 1px solid var(--ui-glass-border);
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, #7eb6ff, #a78bfa, #ffb07c);
  opacity: 0.75;
}

.card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.card__head h2 {
  margin: 0;
  font-size: 16px;
  color: #2d3436;
}

.card__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.card__icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.card__title-row h3 {
  margin: 0;
  font-size: 14px;
  color: #3488ff;
  font-weight: 700;
}

.card__subtitle {
  font-size: 11px;
  color: #636e72;
}

.info-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: #636e72;
}

.info-rows li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px dashed #ecf0f1;
}

.info-rows li:last-child {
  border-bottom: none;
}

.info-rows__ico {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.card--class {
  flex: 1.1;
}

.card--attendance {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.link-btn {
  border: none;
  background: none;
  color: #2e86de;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}

.attendance-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.donut {
  --pct: 94;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(#3488ff calc(var(--pct) * 1%), #e8eef5 0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.donut__inner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #636e72;
  line-height: 1.2;
}

.donut__inner strong {
  font-size: 15px;
  color: #3488ff;
}

.attendance-stats {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: space-around;
  text-align: center;
  font-size: 11px;
  color: #636e72;
}

.attendance-stats em {
  display: block;
  font-style: normal;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.n--blue { color: #3488ff; }
.n--red { color: #ff5b5b; }
.n--yellow { color: #ffb800; }

.card--attendance__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.btn-detail {
  border: none;
  background: var(--ui-gradient-btn);
  color: #fff;
  font-size: 12px;
  padding: 5px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(91, 124, 250, 0.35);
}

.btn-detail--ghost {
  background: rgba(255, 255, 255, 0.75);
  color: #4a5fc1;
  box-shadow: var(--ui-shadow-inset), 0 2px 8px rgba(100, 120, 200, 0.12);
}

.card--schedule {
  flex: 1.25;
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(255, 255, 255, 0.75);
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.card--schedule::before {
  display: none;
}

.schedule-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.schedule-head__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #2d3436;
}

.schedule-head__bar {
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2ecc71, #27ae60);
}

.schedule-head__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.schedule-view-btn {
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #37474f;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

.schedule-view-btn:hover {
  background: #fff;
  color: #3488ff;
}

.schedule-view-btn.is-active {
  background: #3488ff;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(52, 136, 255, 0.25);
}

.schedule-head--page .schedule-view-btn {
  font-size: 13px;
  padding: 6px 14px;
}

.day-picker-wrap {
  position: relative;
}

.day-picker-wrap[hidden] {
  display: none;
}

.day-picker {
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #37474f;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.day-picker[aria-expanded="true"] {
  background: #fff;
  color: #3488ff;
  box-shadow: 0 0 0 2px rgba(52, 136, 255, 0.25);
}

.day-picker-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  min-width: 140px;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(52, 136, 255, 0.12);
}

.day-picker-menu__label {
  margin: 4px 8px 2px;
  font-size: 10px;
  color: #90a4ae;
}

.day-picker-menu__day,
.day-picker-menu__mode {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #2d3436;
  cursor: pointer;
  font-family: inherit;
}

.day-picker-menu__day:hover,
.day-picker-menu__mode:hover {
  background: #e8f2ff;
}

.day-picker-menu__day.is-active,
.day-picker-menu__mode.is-active {
  background: #3488ff;
  color: #fff;
}

.schedule-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.schedule-body:has(> .schedule-grid) {
  overflow: hidden;
}

.schedule-body:has(> .schedule-calendar) {
  overflow: auto;
}

.schedule-grid {
  flex: 1;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  min-height: 0;
}

.schedule-grid--compact {
  gap: 5px;
}

.schedule-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  min-height: 0;
  width: 100%;
}

.schedule-cell strong,
.schedule-cell__teacher,
.schedule-cell__time {
  width: 100%;
  text-align: center;
}

.schedule-grid--compact .schedule-cell {
  border-radius: 8px;
  padding: 4px 2px;
}

.schedule-cell__bar {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: #cfd8dc;
  margin-bottom: 2px;
}

.schedule-grid--compact .schedule-cell__bar {
  width: 22px;
  height: 3px;
}

.schedule-cell strong {
  font-size: 14px;
  color: #2d3436;
  font-weight: 700;
  line-height: 1.2;
}

.schedule-grid--compact .schedule-cell strong {
  font-size: 11px;
}

.schedule-cell__teacher {
  font-size: 10px;
  color: #78909c;
  line-height: 1.2;
}

.schedule-grid--compact .schedule-cell__teacher {
  font-size: 8px;
}

.schedule-cell__time {
  font-size: 11px;
  color: #90a4ae;
}

.schedule-grid--compact .schedule-cell__time {
  font-size: 9px;
}

.schedule-cell--empty {
  opacity: 0.35;
  font-size: 12px;
  color: #90a4ae;
}

.schedule-cell--live {
  background: var(
    --ui-green-btn,
    linear-gradient(90deg, #d4ff4d 0%, #b8f52a 22%, #7aed9a 52%, #5eead4 88%, #4dd4e8 100%)
  );
  box-shadow: var(--ui-green-btn-shadow, 0 4px 16px rgba(94, 234, 212, 0.35));
}

.schedule-cell--live strong,
.schedule-cell--live .schedule-cell__teacher,
.schedule-cell--live .schedule-cell__time {
  color: var(--ui-green-btn-text, #000);
}

.schedule-cell--live .schedule-cell__teacher {
  opacity: 0.92;
}

.schedule-cell--live .schedule-cell__bar {
  display: none;
}

.schedule-cell__tag {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #1e8449;
  color: #fff;
  white-space: nowrap;
  line-height: 1.4;
}

.schedule-grid--compact .schedule-cell__tag {
  font-size: 8px;
  padding: 0 4px;
  top: 2px;
}

.schedule-grid--compact .schedule-cell--live {
  padding-top: 16px;
  gap: 1px;
}

.view--schedule {
  padding: 8px 12px 12px;
  background: transparent;
}

.sub-header--schedule {
  padding-bottom: 4px;
}

.schedule-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--ui-glass);
  backdrop-filter: var(--ui-blur);
  -webkit-backdrop-filter: var(--ui-blur);
  border: 1px solid var(--ui-glass-border);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow);
  padding: 14px 16px 16px;
}

.schedule-head--page .schedule-head__title {
  font-size: 18px;
}

.schedule-head--page .schedule-head__bar {
  height: 20px;
}

.view--schedule .schedule-cell strong {
  font-size: 18px;
}

.view--schedule .schedule-cell__teacher {
  font-size: 12px;
}

.view--schedule .schedule-cell__time {
  font-size: 13px;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 0;
}

.schedule-list--compact {
  gap: 6px;
}

.schedule-list__day-title {
  margin: 0 0 4px;
  font-size: 13px;
  color: #3488ff;
  font-weight: 700;
}

.schedule-list--compact .schedule-list__day-title {
  font-size: 11px;
}

.schedule-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.schedule-list__row {
  display: grid;
  grid-template-columns: 88px 1fr auto auto;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  margin-bottom: 4px;
}

.schedule-list--compact .schedule-list__row {
  grid-template-columns: 72px 1fr auto;
  padding: 5px 8px;
  font-size: 10px;
}

.schedule-list--compact .schedule-list__badge {
  display: none;
}

.schedule-list__row--live {
  background: var(
    --ui-green-btn,
    linear-gradient(90deg, #d4ff4d 0%, #b8f52a 22%, #7aed9a 52%, #5eead4 88%, #4dd4e8 100%)
  );
  box-shadow: var(--ui-green-btn-shadow, 0 4px 16px rgba(94, 234, 212, 0.35));
  border: none;
}

.schedule-list__row--live .schedule-list__subject,
.schedule-list__row--live .schedule-list__time,
.schedule-list__row--live .schedule-list__teacher {
  color: var(--ui-green-btn-text, #000);
}

.schedule-list__time {
  color: #636e72;
  font-variant-numeric: tabular-nums;
}

.schedule-list__subject {
  font-weight: 700;
  color: #2d3436;
}

.schedule-list__teacher {
  color: #78909c;
}

.schedule-list__badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #2ecc71;
  color: #fff;
}

.schedule-list__empty {
  padding: 6px 10px;
  font-size: 12px;
  color: #90a4ae;
}

.schedule-calendar {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-calendar--compact {
  gap: 3px;
}

.schedule-calendar__row {
  display: grid;
  grid-template-columns: 64px repeat(7, minmax(0, 1fr));
  gap: 4px;
  align-items: stretch;
}

.schedule-calendar--compact .schedule-calendar__row {
  grid-template-columns: 48px repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.schedule-calendar__row--head {
  flex-shrink: 0;
}

.schedule-calendar__slots {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-calendar--compact .schedule-calendar__slots {
  gap: 3px;
}

.schedule-calendar__slots .schedule-calendar__row {
  flex: 1;
  min-height: 28px;
}

.schedule-calendar__time-col {
  min-height: 0;
}

.schedule-calendar__day-head {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #636e72;
  padding: 4px 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
}

.schedule-calendar__day-head.is-today {
  background: #3488ff;
  color: #fff;
}

.schedule-calendar--compact .schedule-calendar__day-head {
  font-size: 9px;
  padding: 2px 0;
}

.schedule-calendar__time {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 10px;
  line-height: 1.25;
  color: #78909c;
  font-variant-numeric: tabular-nums;
  padding: 2px;
}

.schedule-calendar--compact .schedule-calendar__time {
  font-size: 8px;
}

.schedule-calendar__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 4px 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  min-height: 0;
  min-width: 0;
}

.schedule-calendar__cell strong {
  font-size: 12px;
  font-weight: 700;
  color: #2d3436;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.schedule-calendar__cell span {
  font-size: 9px;
  color: #78909c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.schedule-calendar--compact .schedule-calendar__cell strong {
  font-size: 9px;
}

.schedule-calendar--compact .schedule-calendar__cell span {
  font-size: 7px;
}

.schedule-calendar__cell--empty {
  opacity: 0.25;
  font-size: 11px;
  color: #90a4ae;
}

.schedule-calendar__cell--live {
  background: var(
    --ui-green-btn,
    linear-gradient(90deg, #d4ff4d 0%, #b8f52a 22%, #7aed9a 52%, #5eead4 88%, #4dd4e8 100%)
  );
  box-shadow: var(--ui-green-btn-shadow, 0 4px 16px rgba(94, 234, 212, 0.35));
}

.schedule-calendar__cell--live strong,
.schedule-calendar__cell--live span {
  color: var(--ui-green-btn-text, #000);
}

.view--schedule .schedule-calendar__row {
  grid-template-columns: 80px repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.view--schedule .schedule-calendar__day-head {
  font-size: 14px;
  padding: 6px 4px;
}

.view--schedule .schedule-calendar__time {
  font-size: 12px;
}

.view--schedule .schedule-calendar__cell strong {
  font-size: 14px;
}

.view--schedule .schedule-calendar__cell span {
  font-size: 11px;
}

.view--schedule .schedule-cell__bar {
  width: 36px;
  height: 5px;
}

.view--schedule .schedule-cell__tag {
  font-size: 11px;
  padding: 2px 10px;
  top: 8px;
}

.view--schedule .schedule-cell--live {
  padding-top: 22px;
}

.card--notice {
  flex: 1;
}

.notice-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.notice-item__text h4 {
  margin: 0 0 4px;
  font-size: 13px;
  color: #2d3436;
}

.notice-item__text p {
  margin: 0 0 6px;
  font-size: 11px;
  color: #636e72;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notice-item__text time {
  font-size: 10px;
  color: #78909c;
}

.notice-item__thumb {
  width: 72px;
  height: 52px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: cover;
}

.pill-btn {
  border: none;
  background: #3488ff;
  color: #fff;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.roster-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  flex: 1;
  overflow: auto;
}

.roster-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f3f5;
}

.roster-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e8f2ff;
  color: #3488ff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.roster-name {
  color: #2d3436;
}

.roster-role {
  color: #3488ff;
  font-size: 11px;
}

.card__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(180deg, transparent, rgba(52, 136, 255, 0.08));
  pointer-events: none;
}

/* 底部导航 */
.bottom-nav {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: flex-end;
  margin: 0 10px 8px;
  padding: 8px 12px 10px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: var(--ui-blur);
  -webkit-backdrop-filter: var(--ui-blur);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow);
  flex-shrink: 0;
}

.bottom-nav__item--checkin {
  grid-column: 1;
  justify-self: start;
}

.bottom-nav__group {
  grid-column: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

.bottom-nav__item {
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  min-width: 52px;
  font-size: 10px;
  color: #455a64;
  font-weight: 500;
}

.bottom-nav__item--active {
  color: var(--ui-accent);
  font-weight: 600;
}

.bottom-nav__icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(100, 120, 200, 0.15), var(--ui-shadow-inset);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.bottom-nav__item--active .bottom-nav__icon {
  background: var(--ui-gradient-btn);
  box-shadow: 0 6px 16px rgba(91, 124, 250, 0.45);
}

.bottom-nav__settings {
  grid-column: 3;
  justify-self: end;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
}

.bottom-nav__settings img {
  display: block;
  border-radius: 50%;
}

/* ========== 更多应用（宫格） ========== */
.view--apps {
  padding: 10px 12px;
  background: transparent;
}

.app-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  min-height: 0;
}

.tile {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--ui-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(60, 80, 140, 0.2), var(--ui-shadow-inset);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(60, 80, 140, 0.28), var(--ui-shadow-inset);
}

.tile__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}
.tile__label {
  text-align: center;
  padding: 0 4px;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.tile--orange { background: linear-gradient(145deg, rgba(255, 159, 67, 0.95), rgba(238, 90, 36, 0.9)); }
.tile--cyan { background: linear-gradient(145deg, rgba(120, 220, 255, 0.95), rgba(10, 189, 227, 0.88)); color: #0a2e3d; }
.tile--green { background: linear-gradient(145deg, rgba(80, 230, 180, 0.95), rgba(16, 172, 132, 0.9)); color: #053d30; }
.tile--blue { background: linear-gradient(145deg, rgba(120, 175, 255, 0.95), rgba(91, 124, 250, 0.92)); }
.tile--yellow { background: linear-gradient(145deg, rgba(255, 220, 120, 0.96), rgba(255, 159, 67, 0.9)); color: #3d2506; }
.tile--red { background: linear-gradient(145deg, rgba(255, 130, 130, 0.95), rgba(238, 82, 83, 0.92)); }
.tile--purple { background: linear-gradient(145deg, rgba(180, 130, 255, 0.95), rgba(136, 84, 208, 0.92)); }
.tile--teal { background: linear-gradient(145deg, rgba(70, 230, 150, 0.95), rgba(32, 191, 107, 0.9)); color: #064228; }
.tile--pink { background: linear-gradient(145deg, rgba(255, 140, 190, 0.95), rgba(232, 67, 147, 0.92)); }
.tile--indigo { background: linear-gradient(145deg, rgba(130, 110, 255, 0.95), rgba(72, 52, 212, 0.92)); }

.tile--cyan .tile__label,
.tile--green .tile__label,
.tile--yellow .tile__label,
.tile--teal .tile__label {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  font-weight: 700;
}

/* ========== 子页面 ========== */
.view--sub {
  padding: 0 0 8px;
  background: transparent;
}

.sub-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  font-weight: 600;
  color: #1565c0;
  font-size: 14px;
}

.view--apps .sub-header {
  color: var(--ui-text);
  text-shadow: none;
  margin: 0 4px 6px;
  padding: 8px 10px;
  background: var(--ui-glass);
  backdrop-filter: var(--ui-blur);
  -webkit-backdrop-filter: var(--ui-blur);
  border-radius: var(--ui-radius);
  border: 1px solid var(--ui-glass-border);
  box-shadow: var(--ui-shadow);
}

.back-btn {
  border: none;
  background: rgba(52, 136, 255, 0.12);
  color: #1565c0;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.back-btn--dark {
  background: rgba(255, 255, 255, 0.88);
  color: #4a5fc1;
  box-shadow: 0 4px 14px rgba(100, 120, 200, 0.15), var(--ui-shadow-inset);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
}

.view--apps .back-btn--dark {
  background: rgba(255, 255, 255, 0.96);
  color: #0d47a1;
}

.split-profile {
  flex: 1;
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 12px;
  min-height: 0;
}

.teacher-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.teacher-card__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 120px;
  border-radius: 10px;
  background: linear-gradient(135deg, #dfe6e9, #b2bec3);
  margin-bottom: 10px;
}

.teacher-card h2 { margin: 0; font-size: 18px; }

.muted-dark { color: #636e72; font-size: 12px; }

.quote { font-size: 12px; color: #636e72; margin: 8px 0 0; }

.student-panel--light {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
}

.student-panel--light h3 { margin: 0 0 12px; font-size: 15px; }

.highlight-blue { color: #3488ff; }

.avatar-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }

.av--light {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8f2ff;
  color: #3488ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.feed-card {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  overflow: auto;
}

.feed-card__hero {
  height: 100px;
  border-radius: 8px;
  background: linear-gradient(120deg, #74b9ff, #a29bfe);
  margin-bottom: 10px;
}

.feed-card h2 { margin: 0 0 6px; font-size: 17px; }

.feed-card__meta { font-size: 12px; color: #636e72; margin: 0 0 10px; }

.feed-card__body { font-size: 14px; line-height: 1.6; margin: 0; color: #636e72; }

.placeholder--light {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #455a64;
}

.placeholder__icon { font-size: 48px; margin-bottom: 8px; }

.attendance--light {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}

.attendance__prompt--light {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nfc { font-size: 28px; letter-spacing: 2px; margin-bottom: 8px; color: #3488ff; }

.attendance__list {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  overflow: auto;
}

.attendance__list h3 { margin: 0 0 10px; font-size: 14px; }

.attendance table { width: 100%; border-collapse: collapse; font-size: 13px; }

.attendance th, .attendance td { padding: 8px; text-align: left; border-bottom: 1px solid #eee; }

.settings-list--light {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.settings-list--light li {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f3f5;
  font-size: 14px;
}

/* ========== 功能子页（成熟班牌常见布局） ========== */
.module-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 14px;
  margin: 0 10px 6px;
  flex-shrink: 0;
  background: var(--ui-glass);
  backdrop-filter: var(--ui-blur);
  -webkit-backdrop-filter: var(--ui-blur);
  border-radius: var(--ui-radius);
  border: 1px solid var(--ui-glass-border);
  box-shadow: var(--ui-shadow);
}

.module-header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #3d4f8c;
  text-align: center;
}

.module-header .back-btn {
  justify-self: start;
}

.module-header__ghost {
  justify-self: end;
  width: 72px;
}

.module-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 12px 8px;
}

.module-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 12px 10px;
  flex-shrink: 0;
}

.module-tabs button {
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #455a64;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}

.module-tabs button.is-active {
  background: #3488ff;
  color: #fff;
}

.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notice-list li {
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(52, 136, 255, 0.06);
}

.notice-list__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.notice-list__badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #ff7675;
  color: #fff;
}

.notice-list__badge--school {
  background: #3488ff;
}

.notice-list__title {
  margin: 0 0 6px;
  font-size: 14px;
  color: #2d3436;
}

.notice-list__meta {
  font-size: 11px;
  color: #78909c;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.album-card {
  margin: 0;
  padding: 0;
  border: none;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.album-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(52, 136, 255, 0.15);
}

.album-card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.album-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35));
  color: #fff;
  pointer-events: none;
}

.album-card__overlay strong {
  font-size: 13px;
  line-height: 1.3;
}

.album-card__overlay span {
  font-size: 10px;
  opacity: 0.95;
  margin-top: 4px;
}

.album-card__footer {
  padding: 6px 8px;
  font-size: 11px;
  color: #636e72;
  text-align: center;
  background: #fff;
}

.notice-list__row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.notice-list__cover {
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.album-viewer {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: linear-gradient(180deg, #f8fbff 0%, #dceefb 100%);
  display: flex;
  flex-direction: column;
  padding: 8px 10px 12px;
}

.album-viewer[hidden] {
  display: none !important;
}

.album-viewer__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.album-viewer__header h2 {
  margin: 0;
  font-size: 14px;
  color: #3488ff;
  text-align: center;
  font-weight: 700;
}

.album-viewer__counter {
  font-size: 12px;
  color: #636e72;
  min-width: 48px;
  text-align: right;
}

.album-viewer__hint {
  margin: 0 0 8px;
  font-size: 11px;
  color: #90a4ae;
  text-align: center;
  flex-shrink: 0;
}

.album-stagger__viewport {
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 28px 4px 16px;
}

.album-stagger__viewport::-webkit-scrollbar {
  height: 4px;
}

.album-stagger__viewport::-webkit-scrollbar-thumb {
  background: rgba(52, 136, 255, 0.35);
  border-radius: 4px;
}

.album-stagger__track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  min-height: 220px;
  padding: 0 8px;
}

.album-stagger__item {
  position: relative;
  flex: 0 0 42%;
  max-width: 200px;
  aspect-ratio: 3 / 4;
  border: none;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: center;
  cursor: zoom-in;
  background: #dfe6e9;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.album-stagger__item--up {
  transform: translateY(-22px);
}

.album-stagger__item--down {
  transform: translateY(22px);
}

.album-stagger__item:hover {
  box-shadow: 0 14px 32px rgba(52, 136, 255, 0.25);
}

.album-stagger__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-stagger__shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 10px;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.58) 100%);
  color: #fff;
  pointer-events: none;
}

.album-stagger__text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.album-stagger__text span {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  opacity: 0.9;
}

.album-stagger__zoom {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.album-lightbox {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 24px;
}

.album-lightbox[hidden] {
  display: none !important;
}

.album-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.album-lightbox__img {
  max-width: 100%;
  max-height: calc(100% - 48px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.album-lightbox__caption {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 14px;
  text-align: center;
}

.duty-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  font-size: 12px;
}

.duty-table th,
.duty-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #f1f3f5;
  text-align: center;
}

.duty-table th {
  background: #e8f2ff;
  color: #3488ff;
  font-weight: 600;
}

.duty-table td:first-child {
  font-weight: 600;
  color: #3488ff;
  background: #f8fbff;
}

.duty-table tr.is-today td {
  background: #fff9e6;
}

.duty-table__row {
  cursor: pointer;
}

.duty-table__row:hover td {
  background: #f0f7ff;
}

.duty-table__row.is-today:hover td {
  background: #fff3cc;
}

.duty-table__empty {
  padding: 24px 12px;
  color: #90a4ae;
  font-size: 13px;
}

.module-body--duty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px 12px;
}

.duty-hint {
  margin: 0;
  font-size: 11px;
  color: #78909c;
  line-height: 1.45;
}

.duty-table-mount {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.duty-footer-actions {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
  padding-top: 4px;
}

.duty-add-btn {
  border: none;
  background: var(
    --ui-green-btn,
    linear-gradient(90deg, #d4ff4d 0%, #b8f52a 22%, #7aed9a 52%, #5eead4 88%, #4dd4e8 100%)
  );
  color: var(--ui-green-btn-text, #000);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 18px;
  min-width: 0;
  width: auto;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--ui-green-btn-shadow, 0 2px 10px rgba(94, 234, 212, 0.3));
}

.duty-combobox {
  position: relative;
  width: 100%;
}

.duty-combobox__input {
  width: 100%;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.95);
}

.duty-combobox__input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.duty-combobox__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  max-height: 160px;
  overflow: auto;
  background: #fff;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.duty-combobox__list[hidden] {
  display: none !important;
}

.duty-combobox__option {
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  color: #2d3436;
}

.duty-combobox__option:hover,
.duty-combobox__option.is-active {
  background: #e8f2ff;
  color: #1d4ed8;
}

.duty-combobox__empty {
  padding: 10px 12px;
  font-size: 12px;
  color: #90a4ae;
}

.duty-dialog {
  position: absolute;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.duty-dialog[hidden] {
  display: none !important;
}

.duty-dialog__panel {
  width: min(100%, 400px);
  max-height: calc(100% - 24px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.duty-dialog__panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #2d3436;
}

.duty-form__row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
}

.duty-form__row span {
  color: #546e7a;
  font-weight: 600;
}

.duty-form__row input,
.duty-form__row select {
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.95);
}

.duty-form__grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.duty-form__msg {
  margin: 0 0 10px;
  font-size: 12px;
  color: #c0392b;
}

.duty-dialog__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.duty-dialog__btn {
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  background: var(
    --ui-green-btn,
    linear-gradient(90deg, #d4ff4d 0%, #b8f52a 22%, #7aed9a 52%, #5eead4 88%, #4dd4e8 100%)
  );
  color: var(--ui-green-btn-text, #000);
  box-shadow: var(--ui-green-btn-shadow, 0 2px 10px rgba(94, 234, 212, 0.3));
}

.duty-dialog__btn--ghost {
  background: #f1f5f9;
  color: #546e7a;
  box-shadow: none;
}

.duty-dialog__btn--danger {
  background: #fdecea;
  color: #c0392b;
  box-shadow: none;
  margin-right: auto;
}

.duty-toast {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  z-index: 60;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

.duty-toast[hidden] {
  display: none !important;
}

.info-panel {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(52, 136, 255, 0.06);
}

.info-panel h2 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #3488ff;
  text-align: center;
}

.info-panel p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #636e72;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-list li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}

.rank-list__no {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8f2ff;
  color: #3488ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.rank-list li:nth-child(1) .rank-list__no {
  background: #fdcb6e;
  color: #fff;
}

/* ========== 考勤打卡 ========== */
.view--checkin {
  padding-bottom: 4px;
}

.checkin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 8px;
  flex-shrink: 0;
}

.checkin-subnav__btn {
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #455a64;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(52, 136, 255, 0.08);
}

.checkin-subnav__btn.is-active {
  background: #3488ff;
  color: #fff;
}

.module-body--checkin {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.checkin-panel {
  flex: 1;
  min-height: 0;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.checkin-panel.is-active {
  display: flex;
}

.checkin-hero {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(52, 136, 255, 0.08);
}

.checkin-hero__clock {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #1565c0;
  font-variant-numeric: tabular-nums;
}

.checkin-hero__date {
  margin: 0;
  font-size: 12px;
  color: #546e7a;
}

.checkin-hero__prompt {
  max-width: 320px;
  font-size: 13px;
  color: #455a64;
  line-height: 1.5;
}

.checkin-hero__nfc {
  display: block;
  font-size: 22px;
  letter-spacing: 2px;
  color: #3488ff;
  margin-bottom: 6px;
  font-weight: 700;
}

.checkin-hero__btn {
  border: none;
  background: linear-gradient(180deg, #5ba3ff, #3488ff);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(52, 136, 255, 0.35);
}

.checkin-mini-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex-shrink: 0;
}

.checkin-mini-stats li {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(52, 136, 255, 0.06);
}

.checkin-mini-stats strong {
  display: block;
  font-size: 20px;
  color: #3488ff;
}

.checkin-mini-stats span {
  font-size: 11px;
  color: #546e7a;
}

.checkin-face,
.checkin-card {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: #455a64;
  font-size: 13px;
}

.checkin-face__frame {
  width: min(100%, 220px);
  aspect-ratio: 3 / 4;
  border: 3px dashed #3488ff;
  border-radius: 16px;
  background: linear-gradient(180deg, #f0f7ff, #e3f0ff);
}

.checkin-card__pulse {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #e8f2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #1565c0;
  animation: checkin-pulse 1.6s ease-in-out infinite;
}

@keyframes checkin-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(52, 136, 255, 0.35);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(52, 136, 255, 0);
  }
}

.checkin-form {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkin-form__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #455a64;
}

.checkin-form__row select,
.checkin-form__row input,
.checkin-form__row textarea {
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #dfe6e9;
  color: #2d3436;
}

.checkin-records {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}

.checkin-records__tip {
  margin: 0;
  font-size: 12px;
  color: #546e7a;
}

.checkin-records__link {
  align-self: center;
  border: none;
  background: none;
  color: #1565c0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.data-table--compact {
  font-size: 12px;
}

.data-table--compact th,
.data-table--compact td {
  padding: 6px 8px;
}

.checkin-toast {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(45, 52, 54, 0.92);
  color: #fff;
  font-size: 12px;
  z-index: 5;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== 座位表 ========== */
.view--seats {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.module-body--seat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.seat-workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.seat-workspace .seat-map {
  flex: 1;
  min-width: 0;
}

.seat-roster-panel {
  width: 120px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 10px 8px;
  box-shadow: 0 2px 10px rgba(52, 136, 255, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.seat-roster-panel__title {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  color: #37474f;
}

.seat-roster-panel__count {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  margin-left: 2px;
  border-radius: 999px;
  background: #fff3e0;
  color: #e65100;
  font-size: 10px;
}

.seat-roster-panel__meta {
  margin: 0 0 6px;
  font-size: 9px;
  line-height: 1.4;
  color: #90a4ae;
}

.seat-roster-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.seat-roster-panel__list li {
  list-style: none;
  margin: 0 0 3px;
  padding: 0;
}

.seat-roster-panel__item {
  display: block;
  width: 100%;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  color: #455a64;
  padding: 5px 6px;
  border-radius: 6px;
  background: #f5f7fa;
}

.seat-roster-panel__item.is-selected {
  background: #1565c0;
  color: #fff;
}

.seat-cell--selected .seat-cell__desk {
  box-shadow: 0 0 0 2px #1565c0;
}

.seat-map__toolbar--pick {
  background: rgba(21, 101, 192, 0.08);
}

.view--seats button.seat-cell {
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  background: transparent;
  width: 100%;
  height: 100%;
}

.seat-roster-panel__empty {
  font-size: 9px;
  color: #90a4ae;
  padding: 6px 2px;
}

.seat-layout-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 8px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: #f0f4f8;
  flex-shrink: 0;
}

.seat-layout-bar__label {
  font-size: 10px;
  font-weight: 700;
  color: #546e7a;
}

.seat-layout-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.seat-map__btn--sm {
  padding: 3px 8px;
  font-size: 9px;
}

.seat-map {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(52, 136, 255, 0.08);
}

.seat-map__grid-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.seat-map__grid {
  flex: 1;
  height: 100%;
  display: grid;
  grid-template-columns: 32px repeat(var(--seat-cols, 8), minmax(0, 1fr));
  grid-template-rows: auto repeat(var(--seat-rows, 7), minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
  min-height: 0;
}

.seat-map__col-head,
.seat-map__row-head {
  font-size: 10px;
  font-weight: 700;
  color: #78909c;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seat-cell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.seat-cell__bar {
  height: 4px;
  border-radius: 2px;
  background: transparent;
}

.seat-cell__bar--present { background: #2ecc71; }
.seat-cell__bar--absent { background: #e74c3c; }
.seat-cell__bar--late { background: #3498db; }
.seat-cell__bar--leave { background: #95a5a6; }

.seat-cell__desk {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecf0f1;
  color: #2d3436;
  font-size: clamp(9px, 1.6vh, 13px);
  font-weight: 700;
  text-align: center;
  padding: 4px 2px;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 0;
}

.seat-cell:not(.seat-cell--empty) .seat-cell__bar {
  display: none;
}

.seat-cell--present .seat-cell__desk {
  background: linear-gradient(180deg, #6ee7a0 0%, #2ecc71 100%);
  color: #0d3d26;
  box-shadow: inset 0 0 0 1px rgba(39, 174, 96, 0.35);
}

.seat-cell--late .seat-cell__desk {
  background: linear-gradient(180deg, #74b9ff 0%, #3498db 100%);
  color: #0a2e4d;
  box-shadow: inset 0 0 0 1px rgba(52, 152, 219, 0.35);
}

.seat-cell--absent .seat-cell__desk {
  background: linear-gradient(180deg, #ff7675 0%, #e74c3c 100%);
  color: #4a0f0f;
  box-shadow: inset 0 0 0 1px rgba(231, 76, 60, 0.35);
}

.seat-cell--leave .seat-cell__desk {
  background: linear-gradient(180deg, #bdc3c7 0%, #95a5a6 100%);
  color: #2d3436;
  box-shadow: inset 0 0 0 1px rgba(149, 165, 166, 0.45);
}

.seat-cell--empty .seat-cell__desk {
  background: rgba(236, 240, 241, 0.8);
  color: #b2bec3;
}

.seat-map__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  flex-shrink: 0;
}

.seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 10px;
  color: #455a64;
}

.seat-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.seat-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.seat-legend__dot--absent { background: #e74c3c; }
.seat-legend__dot--late { background: #3498db; }
.seat-legend__dot--present { background: #2ecc71; }
.seat-legend__dot--leave { background: #95a5a6; }

.seat-map__actions {
  display: flex;
  gap: 8px;
}

.seat-map__btn {
  border: none;
  background: #e8f2ff;
  color: #1565c0;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.seat-map__btn--primary {
  background: var(
    --ui-green-btn,
    linear-gradient(90deg, #d4ff4d 0%, #b8f52a 22%, #7aed9a 52%, #5eead4 88%, #4dd4e8 100%)
  );
  color: var(--ui-green-btn-text, #000);
  box-shadow: var(--ui-green-btn-shadow, 0 4px 12px rgba(94, 234, 212, 0.35));
}

.seat-map__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  margin: -2px -2px 6px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(29, 78, 216, 0.12), rgba(94, 234, 212, 0.18));
  flex-shrink: 0;
}

.seat-map__toolbar-text {
  font-size: 11px;
  font-weight: 600;
  color: #1d4ed8;
}

.seat-map__toolbar-tag {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: #546e7a;
}

.seat-map--edit .seat-legend--hidden {
  visibility: hidden;
  pointer-events: none;
}

button.seat-cell {
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  background: transparent;
  width: 100%;
  height: 100%;
}

.seat-cell--edit .seat-cell__desk {
  background: rgba(232, 242, 255, 0.95);
  color: #2d3436;
  box-shadow: inset 0 0 0 1px rgba(52, 136, 255, 0.12);
}

.seat-cell--edit.seat-cell--empty .seat-cell__desk {
  background: rgba(241, 245, 249, 0.9);
  color: #b2bec3;
}

.seat-cell--selected .seat-cell__desk {
  box-shadow:
    inset 0 0 0 2px #1d4ed8,
    0 0 0 2px rgba(29, 78, 216, 0.25);
  background: rgba(191, 219, 254, 0.55);
}

.seat-dialog {
  position: absolute;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.seat-dialog[hidden] {
  display: none !important;
}

.seat-dialog__panel {
  width: min(100%, 380px);
  max-height: calc(100% - 20px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.seat-dialog__panel--wide {
  width: min(100%, 420px);
}

.seat-dialog__panel h2 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #2d3436;
}

.seat-dialog__hint {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #78909c;
}

.seat-arrange__field {
  border: none;
  margin: 0 0 10px;
  padding: 0;
}

.seat-arrange__field legend {
  font-size: 12px;
  font-weight: 700;
  color: #455a64;
  margin-bottom: 8px;
}

.seat-arrange__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.seat-arrange__option {
  border: 1px solid #dfe6e9;
  background: #f8fafc;
  color: #2d3436;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 8px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}

.seat-arrange__option.is-active {
  border-color: #2563eb;
  background: #e8f2ff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.seat-arrange__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #546e7a;
  margin-bottom: 8px;
  cursor: pointer;
}

.seat-arrange__check input {
  margin-top: 2px;
  accent-color: #2563eb;
}

.seat-arrange__meta {
  margin: 0 0 12px;
  font-size: 11px;
  color: #90a4ae;
}

.seat-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.seat-dialog__btn {
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  background: var(
    --ui-green-btn,
    linear-gradient(90deg, #d4ff4d 0%, #b8f52a 22%, #7aed9a 52%, #5eead4 88%, #4dd4e8 100%)
  );
  color: var(--ui-green-btn-text, #000);
  box-shadow: var(--ui-green-btn-shadow, 0 2px 10px rgba(94, 234, 212, 0.3));
}

.seat-dialog__btn--ghost {
  background: #f1f5f9;
  color: #546e7a;
  box-shadow: none;
}

.seat-nonatt-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  max-height: 220px;
  overflow: auto;
}

.seat-nonatt-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f3f5;
  font-size: 13px;
}

.seat-nonatt-list__status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.seat-nonatt-list__status--absent {
  background: #fdecea;
  color: #c0392b;
}

.seat-nonatt-list__status--late {
  background: #e3f2fd;
  color: #1565c0;
}

.seat-nonatt-list__status--leave {
  background: #eceff1;
  color: #546e7a;
}

.seat-nonatt-list__empty {
  padding: 12px 0;
  font-size: 12px;
  color: #90a4ae;
  text-align: center;
}

.seat-toast {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.35);
  pointer-events: none;
}

.seat-toast[hidden] {
  display: none !important;
}

/* ========== 学生请假 ========== */
.view--leave {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 4px;
}

.leave-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 10px;
  padding: 0 12px 8px;
}

.leave-profile {
  background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(52, 136, 255, 0.08);
  align-self: stretch;
}

.leave-profile__greet {
  margin: 0 0 12px;
  font-size: 14px;
  color: #455a64;
  font-weight: 600;
}

.leave-profile__av {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, #74b9ff, #3488ff);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leave-profile__name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #2d3436;
}

.leave-profile__class {
  margin: 4px 0 0;
  font-size: 12px;
  color: #78909c;
}

.leave-main {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(52, 136, 255, 0.08);
}

.leave-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.leave-tabs__btn {
  border: none;
  background: #ecf0f1;
  color: #455a64;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.leave-tabs__btn.is-active {
  background: #3488ff;
  color: #fff;
}

.leave-panel {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: none;
}

.leave-panel.is-active {
  display: block;
}

.leave-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leave-empty {
  text-align: center;
  padding: 24px 12px;
  color: #78909c;
  font-size: 12px;
}

.leave-card {
  border: 1px solid #eef2f6;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fafcff;
}

.leave-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.leave-type-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f2ff;
  color: #1565c0;
}

.leave-status {
  font-size: 10px;
  font-weight: 700;
}

.leave-status--pending { color: #e67e22; }
.leave-status--approved { color: #27ae60; }
.leave-status--rejected { color: #e74c3c; }

.leave-card__who,
.leave-card__time,
.leave-card__reason {
  margin: 0 0 4px;
  font-size: 11px;
  color: #546e7a;
  line-height: 1.4;
}

.leave-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.leave-card__link,
.leave-card__btn {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  color: #1565c0;
}

.leave-card__btn {
  background: #3488ff;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
}

.leave-card__btn--ghost {
  background: #fff;
  color: #e74c3c;
  box-shadow: inset 0 0 0 1px rgba(231, 76, 60, 0.35);
}

.leave-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}

.leave-form__student {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
  color: #2d3436;
}

.leave-form__av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8f2ff;
  color: #3488ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.leave-form__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #455a64;
}

.leave-form__row em {
  color: #e74c3c;
  font-style: normal;
}

.leave-form__row input,
.leave-form__row textarea {
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #dfe6e9;
}

.leave-type-toggle {
  display: flex;
  gap: 8px;
}

.leave-type-toggle__btn {
  flex: 1;
  border: none;
  background: #ecf0f1;
  color: #455a64;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.leave-type-toggle__btn.is-active {
  background: #3488ff;
  color: #fff;
}

.leave-form__submit {
  border: none;
  background: linear-gradient(180deg, #5ba3ff, #3488ff);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
}

.leave-approve-tip {
  margin: 0 0 8px;
  font-size: 11px;
  color: #546e7a;
  line-height: 1.45;
}

.leave-dialog {
  position: absolute;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.leave-dialog[hidden] {
  display: none !important;
}

.leave-dialog__panel {
  width: min(100%, 360px);
  max-height: calc(100% - 20px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.leave-dialog__panel--wide {
  width: min(100%, 440px);
}

.leave-dialog__panel h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.leave-detail__title {
  margin: 0 0 8px;
  font-size: 14px;
}

.leave-detail__dl {
  margin: 0;
}

.leave-detail__dl > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f3f5;
  font-size: 12px;
}

.leave-detail__dl dt {
  margin: 0;
  color: #78909c;
}

.leave-detail__dl dd {
  margin: 0;
  color: #2d3436;
}

.leave-detail__flow-title {
  margin: 12px 0 6px;
  font-size: 13px;
  color: #455a64;
}

.leave-flow {
  list-style: none;
  margin: 0;
  padding: 0;
}

.leave-flow__item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 8px;
  padding: 8px 0;
  position: relative;
}

.leave-flow__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 22px;
  bottom: -8px;
  width: 2px;
  background: #ecf0f1;
}

.leave-flow__item--done .leave-flow__dot {
  background: #3488ff;
}

.leave-flow__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dfe6e9;
  margin-top: 4px;
}

.leave-flow__body strong {
  display: block;
  font-size: 12px;
  color: #2d3436;
}

.leave-flow__body span,
.leave-flow__body time {
  display: block;
  font-size: 11px;
  color: #78909c;
  margin-top: 2px;
}

.leave-flow__badge {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 4px;
  background: #fff3cd;
  color: #856404;
  font-size: 10px;
}

.leave-flow__badge--ok {
  background: #d5f5e3;
  color: #186a3b;
}

.leave-flow__badge--no {
  background: #fadbd8;
  color: #922b21;
}

.leave-verify__hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #546e7a;
  line-height: 1.45;
}

.leave-verify__methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.leave-verify__method {
  border: none;
  background: #e8f2ff;
  color: #1565c0;
  font-size: 11px;
  font-weight: 600;
  padding: 10px 4px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.leave-verify__pin {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #455a64;
  margin-bottom: 8px;
}

.leave-verify__pin input {
  font-family: inherit;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #dfe6e9;
  font-size: 16px;
  letter-spacing: 0.2em;
}

.leave-verify__msg {
  min-height: 18px;
  margin: 0 0 8px;
  font-size: 12px;
  color: #27ae60;
  font-weight: 600;
}

.leave-dialog__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.leave-dialog__btn {
  border: none;
  background: #3488ff;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.leave-dialog__btn--ghost {
  background: #ecf0f1;
  color: #455a64;
}

.leave-dialog__btn--danger {
  background: #e74c3c;
}

/* ========== 故障报修 ========== */
.view--repair {
  padding-bottom: 4px;
}

.repair-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px 8px;
  flex-shrink: 0;
}

.repair-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.repair-tabs__btn {
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #455a64;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}

.repair-tabs__btn.is-active {
  background: #3488ff;
  color: #fff;
}

.repair-submit-btn {
  border: none;
  background: linear-gradient(180deg, #5ba3ff, #3488ff);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(52, 136, 255, 0.3);
  flex-shrink: 0;
}

.module-body--repair {
  min-height: 0;
  overflow: auto;
}

.repair-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.repair-empty {
  text-align: center;
  padding: 32px 16px;
  color: #78909c;
  font-size: 13px;
  background: #fff;
  border-radius: 12px;
}

.repair-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 10px rgba(52, 136, 255, 0.08);
}

.repair-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.repair-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #2d3436;
}

.repair-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.repair-badge--pending {
  background: #fff3cd;
  color: #856404;
}

.repair-badge--processing {
  background: #d6eaf8;
  color: #1a5276;
}

.repair-badge--completed {
  background: #d5f5e3;
  color: #186a3b;
}

.repair-badge--closed {
  background: #ecf0f1;
  color: #636e72;
}

.repair-card__desc {
  margin: 0 0 10px;
  font-size: 12px;
  color: #546e7a;
  line-height: 1.45;
}

.repair-timeline {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.repair-step {
  text-align: center;
  min-width: 0;
}

.repair-step__dot {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto 4px;
  border-radius: 50%;
  background: #dfe6e9;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #cfd8dc;
}

.repair-step--done .repair-step__dot {
  background: #3488ff;
  box-shadow: 0 0 0 1px #3488ff;
}

.repair-step--active .repair-step__dot {
  background: #fff;
  box-shadow: 0 0 0 2px #f39c12;
}

.repair-step__label {
  display: block;
  font-size: 9px;
  color: #78909c;
  line-height: 1.2;
}

.repair-step--done .repair-step__label {
  color: #455a64;
  font-weight: 600;
}

.repair-step__time {
  display: block;
  font-size: 8px;
  color: #b2bec3;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  word-break: break-all;
}

.repair-step--done .repair-step__time {
  color: #90a4ae;
}

.repair-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #f1f3f5;
}

.repair-card__meta {
  font-size: 10px;
  color: #90a4ae;
}

.repair-card__actions {
  display: flex;
  gap: 8px;
}

.repair-card__link {
  border: none;
  background: none;
  color: #1565c0;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.repair-card__link--primary {
  color: #3488ff;
}

.repair-dialog {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.repair-dialog[hidden] {
  display: none !important;
}

.repair-dialog__panel {
  width: min(100%, 360px);
  max-height: calc(100% - 24px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.repair-dialog__panel--wide {
  width: min(100%, 420px);
}

.repair-dialog__panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #2d3436;
}

.repair-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.repair-form__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #455a64;
}

.repair-form__row select,
.repair-form__row input,
.repair-form__row textarea {
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #dfe6e9;
  color: #2d3436;
}

.repair-detail {
  margin: 0;
}

.repair-detail__row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f3f5;
  font-size: 12px;
}

.repair-detail__row dt {
  margin: 0;
  color: #78909c;
}

.repair-detail__row dd {
  margin: 0;
  color: #2d3436;
  line-height: 1.45;
}

.repair-remark-input {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #dfe6e9;
  resize: vertical;
  min-height: 88px;
  box-sizing: border-box;
}

.repair-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.repair-dialog__btn {
  border: none;
  background: #3488ff;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.repair-dialog__btn--ghost {
  background: #ecf0f1;
  color: #455a64;
}

.weather-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.weather-now {
  background: linear-gradient(135deg, #74b9ff, #0984e3);
  color: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.weather-now strong {
  font-size: 36px;
  display: block;
}

.weather-week {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.device-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  font-size: 12px;
}

.device-card__status {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
}

.device-card__status--ok {
  background: #e8f8ef;
  color: #00b894;
}

.device-card__status--warn {
  background: #ffeaa7;
  color: #d63031;
}

.honor-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.honor-list li {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}

.honor-list__date {
  color: #3488ff;
  font-weight: 600;
  min-width: 72px;
}

.tv-feature {
  background: #2d3436;
  color: #fff;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  margin-bottom: 10px;
  overflow: hidden;
}

.tv-feature__cover {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin-bottom: 8px;
}

.tv-feature p {
  margin: 0;
  font-size: 13px;
}

.tv-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tv-list li {
  background: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}

.manage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.manage-grid button {
  border: none;
  background: #fff;
  border-radius: 10px;
  padding: 14px 8px;
  font-size: 11px;
  color: #2d3436;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(52, 136, 255, 0.08);
  font-family: inherit;
}

.manage-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.manage-grid button img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.attendance-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.attendance-board div {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 11px;
}

.attendance-board strong {
  display: block;
  font-size: 18px;
  color: #3488ff;
}

.status-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
}

.status-chip--ok { background: #e8f8ef; color: #00b894; }
.status-chip--late { background: #ffeaa7; color: #e17055; }
.status-chip--absent { background: #ffeef0; color: #d63031; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  font-size: 12px;
}

.data-table th,
.data-table td {
  padding: 10px;
  border-bottom: 1px solid #f1f3f5;
  text-align: center;
}

.data-table th {
  background: #e8f2ff;
  color: #3488ff;
}

.settings-group {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.settings-group h3 {
  margin: 0;
  padding: 10px 14px;
  font-size: 12px;
  color: #546e7a;
  font-weight: 600;
  background: #f8fbff;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid #f1f3f5;
  font-size: 13px;
}

.settings-row input[type="range"] {
  width: 120px;
}

/* Glass theme — 业务模块面板统一 */
.checkin-hero,
.checkin-face,
.checkin-card,
.checkin-form,
.checkin-records,
.leave-main,
.leave-card,
.repair-card,
.seat-map,
.leave-profile,
.repair-dialog__panel,
.leave-dialog__panel,
.repair-empty,
.leave-empty {
  background: var(--ui-glass-strong);
  backdrop-filter: var(--ui-blur);
  -webkit-backdrop-filter: var(--ui-blur);
  border: 1px solid var(--ui-glass-border);
  box-shadow: var(--ui-shadow), var(--ui-shadow-inset);
}

.leave-profile {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(230, 240, 255, 0.65) 100%);
}

.checkin-mini-stats li,
.checkin-subnav__btn,
.leave-tabs__btn,
.repair-tabs__btn,
.repair-submit-btn,
.leave-form__submit,
.checkin-hero__btn,
.schedule-view-btn,
.day-picker,
.repair-dialog__btn,
.leave-dialog__btn {
  border-radius: 999px;
}

.checkin-subnav__btn.is-active,
.leave-tabs__btn.is-active,
.repair-tabs__btn.is-active,
.module-tabs button.is-active,
.schedule-view-btn.is-active {
  background: var(--ui-gradient-btn);
  color: #fff;
  box-shadow: 0 4px 14px rgba(91, 124, 250, 0.35);
}

.checkin-hero__btn,
.leave-form__submit,
.repair-submit-btn,
.repair-dialog__btn:not(.repair-dialog__btn--ghost):not(.repair-dialog__btn--danger),
.leave-dialog__btn:not(.leave-dialog__btn--ghost):not(.leave-dialog__btn--danger) {
  background: var(--ui-gradient-btn);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.schedule-cell {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(100, 120, 200, 0.1);
}

.seat-cell__desk {
  border-radius: 10px;
  box-shadow: var(--ui-shadow-inset);
}

@media (max-width: 640px) {
  .dashboard {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .dashboard__col--right {
    grid-column: 1 / -1;
  }

  .app-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }

  .bottom-nav__item span:last-child {
    display: none;
  }
}
