:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #16181d;
  --muted: #767d89;
  --line: #e6e8ec;
  --line-strong: #d6dae1;
  --accent: #2f6bff;
  --accent-soft: #e9f0ff;
  --present: #0f9d58;
  --present-bg: #e7f7ee;
  --late: #b45309;
  --late-bg: #fdf2d9;
  --leave: #2563eb;
  --leave-bg: #e4ecff;
  --absent: #dc2626;
  --absent-bg: #fde8e8;
  --free: #7c5cff;
  --free-bg: #f1ecff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 18px rgba(16, 24, 40, 0.05);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button { cursor: pointer; border: none; background: none; }

.hidden { display: none !important; }

/* ---------- layout ---------- */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 14px calc(92px + var(--safe-b));
}

.topbar {
  position: relative;
  z-index: 30;
  background: rgba(244, 245, 247, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--present);
  box-shadow: 0 0 0 4px rgba(15, 157, 88, 0.12);
}
.topbar .spacer { flex: 1; }
.user-chip {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
}
.user-chip b { color: var(--text); font-weight: 600; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- login ---------- */
.login-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 380px; min-width: 0;
  background: var(--card);
  border-radius: 20px;
  padding: 30px 24px 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.login-logo {
  width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(135deg, #2f6bff, #6f9bff);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: 700;
  margin-bottom: 16px;
}
.login-card h1 { margin: 0 0 6px; font-size: 22px; }
.login-card p.sub { margin: 0 0 22px; color: var(--muted); font-size: 13.5px; }
.login-corner { text-align: right; margin-top: 18px; }
.corner-link { font-size: 12px; color: var(--muted); text-decoration: none; opacity: 0.7; }
.corner-link:hover { opacity: 1; text-decoration: underline; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px; border-radius: 12px;
  font-weight: 600; font-size: 15px;
  transition: transform 0.06s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--accent); color: #fff; width: 100%; }
.btn-primary:disabled { opacity: 0.55; }
.btn-ghost { background: #fff; border: 1px solid var(--line-strong); color: var(--text); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
/* 名单最下方的「全部出勤」 */
.markall-btn {
  width: 100%; height: 44px; margin-top: 12px;
  font-size: 14.5px; font-weight: 600;
  background: #fff; border: 1px dashed var(--line-strong); color: var(--accent);
}
.markall-btn:disabled { background: #f7f8fa; border-style: solid; color: var(--muted); }
.divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 12px;
  margin: 20px 0 16px;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.input {
  width: 100%; height: 44px; padding: 0 12px;
  border-radius: 11px; border: 1px solid var(--line-strong);
  background: #fff; outline: none;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12); }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.55; }
.otp-row { display: flex; gap: 8px; }
.otp-row .input { flex: 1; min-width: 0; }
.otp-row .btn { flex: 0 0 auto; height: 44px; border-radius: 11px; padding: 0 12px; font-size: 13.5px; white-space: nowrap; }
.form-err { color: var(--absent); font-size: 12.5px; min-height: 18px; margin: 2px 0 8px; }
.hint { font-size: 12px; color: var(--muted); }

/* ---------- date & slot ---------- */
.datebar {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px; margin-top: 14px;
  box-shadow: var(--shadow);
}
.datebar input[type="date"] {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 15px; font-weight: 600; text-align: center;
  appearance: none; -webkit-appearance: none;
  height: 34px;
}
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 17px; background: #f6f7f9;
}
.icon-btn:active { background: #eceef2; }

.slotbar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  background: #eceef2; padding: 5px; border-radius: 13px; margin-top: 12px;
}
.slotbar button {
  height: 38px; border-radius: 10px; font-size: 14px; font-weight: 600;
  color: var(--muted); transition: all 0.15s ease;
}
.slotbar button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16,24,40,0.1); }
.slotbar button .badge {
  display: inline-block; margin-left: 4px; font-size: 11px; font-weight: 700;
  color: var(--accent);
}

/* ---------- 顶部统计（一行小字，把空间让给名单） ---------- */
.statsbar {
  display: flex; gap: 12px; align-items: center;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 4px 2px 6px;
  scrollbar-width: none;
}
.statsbar::-webkit-scrollbar { display: none; }
.statsbar .sb {
  flex: 0 0 auto; font-size: 11.5px; color: var(--muted);
  white-space: nowrap;
}
.statsbar .sb b {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-right: 2px; font-variant-numeric: tabular-nums;
}
.statsbar .sb-present b { color: var(--present); }
.statsbar .sb-late b { color: var(--late); }
.statsbar .sb-leave b { color: var(--leave); }
.statsbar .sb-absent b { color: var(--absent); }
.statsbar .sb-free b { color: var(--free); }
.statsbar .sb-none b { color: var(--muted); }
.statsbar .sb-idle { margin-left: auto; padding-left: 12px; }

/* ---------- summary ---------- */
.summary {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  margin-top: 10px;
}
.stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 4px; text-align: center;
}
.stat .n { font-size: 18px; font-weight: 700; line-height: 1.2; }
.stat .l { font-size: 11px; color: var(--muted); margin-top: 1px; }
.stat.s-leave .n { color: var(--leave); }
.stat.s-absent .n { color: var(--absent); }
.stat.s-late .n { color: var(--late); }
.stat.s-none .n { color: var(--muted); }
.stat.s-free .n { color: var(--free); }
.summary.six { grid-template-columns: repeat(6, 1fr); }
.summary.six .stat { padding: 8px 2px; }
.summary.six .stat .n { font-size: 17px; }
.summary.six .stat .l { font-size: 10.5px; }

/* ---------- toolbar ---------- */
.toolbar {
  display: flex; gap: 8px; align-items: center;
  margin: 12px 0 10px;
}
.search {
  flex: 1; position: relative;
}
.search input {
  width: 100%; height: 38px; border-radius: 11px;
  border: 1px solid var(--line); background: #fff;
  padding: 0 12px 0 32px; outline: none; font-size: 14px;
}
.search input:focus { border-color: var(--accent); }
.search::before {
  content: ""; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; opacity: 0.45;
  background-repeat: no-repeat; background-size: 14px 14px; background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.8' cy='10.8' r='6.3'/%3E%3Cpath d='m15.6 15.6 4.4 4.4'/%3E%3C/svg%3E");
}

/* ---------- 图标 ---------- */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.16em; flex: none; }
.ds-name .ic { width: 15px; height: 15px; vertical-align: -0.22em; }
.ch-ico .ic { width: 18px; height: 18px; }
.cell-ico .ic { width: 17px; height: 17px; }
.mine-sub .ic, .det-sub .ic { width: 12px; height: 12px; vertical-align: -0.18em; }
.slotpick .ic, .kindchips .ic { width: 14px; height: 14px; }
.flag .ic { width: 12px; height: 12px; vertical-align: -0.15em; }
.thumb-cloud .ic, .exp-file .ic { width: 13px; height: 13px; }
.mt-ico .ic { width: 20px; height: 20px; }
.hint-ok .ic, .hint-warn .ic, .reuse-tip .ic, .long-note .ic { width: 13px; height: 13px; vertical-align: -0.15em; }
.pend-tip .ic, .share-card .title .ic { width: 15px; height: 15px; vertical-align: -0.2em; }

/* ---------- student list ---------- */
.stu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.stu {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  border-left: 3px solid var(--line-strong);
  transition: border-color 0.15s ease;
}
.stu.st-present { border-left-color: var(--present); }
.stu.st-late { border-left-color: var(--late); }
.stu.st-leave { border-left-color: var(--leave); }
.stu.st-absent { border-left-color: var(--absent); }
.stu.st-free { border-left-color: var(--free); background: #fbfaff; }
.stu.st-free .stu-name { color: var(--muted); }
.stu-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 7px; }
.stu-name { font-weight: 600; font-size: 15.5px; white-space: nowrap; flex: 1 0 auto; }
.stu-no { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-tap .cat-badge { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; }
.stu-flags { display: flex; gap: 3px; align-items: center; flex: 0 1 auto; min-width: 0; overflow: hidden; }
.flag {
  font-size: 11px; padding: 1px 5px; border-radius: 6px;
  background: #f1f2f5; color: var(--muted); white-space: nowrap;
}
.flag.f-media { background: var(--accent-soft); color: var(--accent); }
.seg { display: flex; gap: 3px; background: #f1f2f5; padding: 3px; border-radius: 10px; }
.seg button {
  min-width: 36px; height: 30px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  transition: all 0.12s ease; padding: 0 6px;
}
.seg button:active { transform: scale(0.96); }
.seg button.on[data-st="present"] { background: var(--present); color: #fff; }
.seg button.on[data-st="late"] { background: var(--late); color: #fff; }
.seg button.on[data-st="leave"] { background: var(--leave); color: #fff; }
.seg button.on[data-st="absent"] { background: var(--absent); color: #fff; }
.row-tap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; text-align: left; overflow: hidden; }

.empty {
  text-align: center; color: var(--muted); font-size: 13.5px;
  padding: 34px 16px; background: var(--card);
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; }

/* ---------- session card ---------- */
.session-card {
  margin-top: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
}
.session-card .t { flex: 1; font-size: 13.5px; color: var(--muted); }
.session-card .t b { color: var(--text); font-weight: 600; }

/* ---------- roster ---------- */
.section-head {
  display: flex; align-items: center; gap: 10px; margin: 16px 0 10px;
}
.section-head h2 { font-size: 16px; margin: 0; flex: 1; }
.section-head .count { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.roster-row {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 12px;
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.roster-row .idx { width: 24px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.roster-row .nm { flex: 1; font-weight: 600; }
.roster-row .no { font-size: 12px; color: var(--muted); }
.mini-btn {
  width: 32px; height: 32px; border-radius: 9px; background: #f4f5f7;
  display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted);
}
.mini-btn:active { background: #e9ebef; }

/* ---------- stats ---------- */
.range-bar { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #fff; border: 1px solid var(--line-strong); color: var(--muted);
}
.chip.on { background: var(--text); border-color: var(--text); color: #fff; }
.chip .n {
  display: inline-block; min-width: 17px; height: 17px; line-height: 17px; margin-left: 5px;
  padding: 0 5px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: #eef0f4; color: var(--muted); text-align: center; vertical-align: 1px;
}
.chip.on .n { background: rgba(255, 255, 255, .26); color: #fff; }
.chip .n.zero { opacity: .5; }
.range-dates { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.range-dates input {
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  height: 34px; padding: 0 8px; font-size: 13px; outline: none;
}
.tbl-wrap {
  margin-top: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
table.stats { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.stats th, table.stats td { padding: 9px 8px; text-align: center; }
table.stats th { background: #fafbfc; color: var(--muted); font-weight: 600; font-size: 12px; border-bottom: 1px solid var(--line); }
table.stats td { border-bottom: 1px solid #f2f3f5; font-variant-numeric: tabular-nums; }
table.stats td.nm { text-align: left; font-weight: 600; white-space: nowrap; }
table.stats tr:last-child td { border-bottom: none; }
table.stats td.v-leave { color: var(--leave); font-weight: 600; }
table.stats td.v-absent { color: var(--absent); font-weight: 600; }
table.stats td.v-late { color: var(--late); font-weight: 600; }
table.stats td.v-free { color: var(--free); font-weight: 600; }
table.stats tr.tap:active { background: #fafbfc; }

/* ---------- bottom nav ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.bottom-nav-inner {
  max-width: 760px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.bottom-nav button { position: relative; }
.nav-badge {
  position: absolute; top: 5px; left: 50%; margin-left: 2px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: #e5484d; color: #fff; font-size: 10px; font-weight: 700;
  line-height: 16px; text-align: center;
}
.bottom-nav button {
  height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 11px; color: var(--muted); padding: 0 2px;
}
.bottom-nav button .ico { font-size: 20px; line-height: 1; display: flex; }
.bottom-nav button .ic { width: 21px; height: 21px; }
.bottom-nav button.on { color: var(--accent); font-weight: 600; }

/* ---------- sheet ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(16, 24, 40, 0.38);
  z-index: 60; animation: fade 0.16s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  background: #fff; border-radius: 20px 20px 0 0;
  max-height: 88vh; overflow-y: auto;
  padding: 16px 16px calc(20px + var(--safe-b));
  animation: slideup 0.2s cubic-bezier(0.2, 0.8, 0.3, 1);
  max-width: 760px; margin: 0 auto;
}
@keyframes slideup { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sheet-head h3 { margin: 0; font-size: 17px; flex: 1; }
.sheet-head .sub { font-size: 12px; color: var(--muted); }
.sheet-grab {
  width: 38px; height: 4px; border-radius: 2px; background: var(--line-strong);
  margin: -6px auto 12px;
}
.seg-lg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 16px; }
.seg-lg button {
  height: 46px; border-radius: 12px; font-size: 14px; font-weight: 600;
  background: #f4f5f7; color: var(--muted); border: 1.5px solid transparent;
}
.seg-lg button.on[data-st="present"] { background: var(--present-bg); color: var(--present); border-color: var(--present); }
.seg-lg button.on[data-st="late"] { background: var(--late-bg); color: var(--late); border-color: var(--late); }
.seg-lg button.on[data-st="leave"] { background: var(--leave-bg); color: var(--leave); border-color: var(--leave); }
.seg-lg button.on[data-st="absent"] { background: var(--absent-bg); color: var(--absent); border-color: var(--absent); }

.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.media-item {
  position: relative; aspect-ratio: 1 / 1; border-radius: 11px; overflow: hidden;
  background: #f1f2f5; border: 1px solid var(--line);
}
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item .del {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.media-item .tag {
  position: absolute; left: 4px; bottom: 4px; font-size: 10px;
  background: rgba(0,0,0,0.55); color: #fff; padding: 1px 5px; border-radius: 5px;
}
.upload-tile {
  aspect-ratio: 1 / 1; border-radius: 11px; border: 1.5px dashed var(--line-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--muted); font-size: 11.5px; background: #fafbfc;
}
.upload-tile .plus { font-size: 20px; line-height: 1; }

/* 复用的已有附件：不重复上传 */
.media-item.mi-reuse {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; background: #eef7f1; border-color: #bfe3cd; padding: 6px;
}
.media-item.mi-reuse .mt-ico { font-size: 18px; line-height: 1; }
.media-item.mi-reuse .mt-name {
  font-size: 10.5px; color: #2f6b46; text-align: center; line-height: 1.25;
  max-height: 26px; overflow: hidden;
}
.media-item .mi-tag {
  position: absolute; left: 4px; bottom: 4px; font-size: 9.5px; font-weight: 600;
  background: #2f6b46; color: #fff; padding: 1px 5px; border-radius: 5px;
}
.hint-ok { color: #2f6b46; font-weight: 600; }
.reuse-tip { color: #2f6b46; margin-top: 4px; }
.fixed-date {
  flex: 1; padding: 8px 10px; border-radius: 9px; background: #f1f2f5;
  font-size: 13.5px; color: var(--muted); font-weight: 600; text-align: center;
}
.mine-btns { display: flex; gap: 12px; margin-top: 4px; }
.det-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sheet-actions { display: flex; gap: 8px; margin-top: 18px; }
.sheet-actions .btn { flex: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.lightbox img, .lightbox video { max-width: 100%; max-height: 88vh; border-radius: 8px; }

/* ---------- 今日看板（日期 + 三个时段） ---------- */
.dayhead {
  position: sticky; top: 0; z-index: 26;
  margin: 0 -14px; padding: 8px 14px 7px;
  background: rgba(244, 245, 247, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.dayhead .datebar { margin-top: 0; }
.date-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.date-main input[type="date"] { width: 100%; }
.date-sub { font-size: 11px; color: var(--muted); margin-top: -2px; }

.daystrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.ds {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 7px 9px 8px 11px; border-radius: 11px;
  background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  text-align: left; transition: all 0.14s ease;
}
.ds:active { transform: scale(0.985); }
.ds.ds-doing { border-left-color: var(--late); }
.ds.ds-done { border-left-color: var(--present); background: #f7fdf9; }
.ds.ds-empty { border-left-color: var(--line-strong); }
.ds.on { border-color: var(--accent); border-left-color: var(--accent); box-shadow: 0 0 0 2px rgba(47,107,255,0.14); }
.ds-name { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); line-height: 1.3; }
.ds-name b { color: var(--text); font-weight: 600; }
.ds.on .ds-name b { color: var(--accent); }
.ds-tick { color: var(--present); font-weight: 700; font-size: 11px; }
.ds-num { font-size: 17px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ds-num i { font-size: 11px; font-weight: 500; color: var(--muted); font-style: normal; }
.ds-tag { font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.ds-done .ds-tag { color: var(--present); }
.ds-doing .ds-tag { color: var(--late); }
.ds-pend {
  font-style: normal; font-weight: 700; color: #e5484d;
  margin-left: 5px; white-space: nowrap;
}
.ds-pend::before { content: "·"; margin-right: 3px; color: #c2c7d0; }
.dayline { font-size: 11.5px; color: var(--muted); margin-top: 7px; }
.dayline b { color: var(--text); }
.dayline .dl-ok { color: var(--present); font-weight: 600; }

/* 当前时段标题 */
.cur-head {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 2px 2px 0;
}
.cur-head .ch-ico { font-size: 15px; }
.cur-head .ch-t { display: flex; align-items: baseline; gap: 7px; flex: 1; min-width: 0; }
.cur-head .ch-t b { font-size: 15.5px; }
.cur-head .ch-t span { font-size: 11.5px; color: var(--muted); }
.cur-head .ch-state { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 待处理提示 */
.pend-tip {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  background: var(--accent-soft); border: 1px solid #cfe0ff;
  color: #1e40af; border-radius: 11px; padding: 9px 12px; font-size: 12.5px;
}
.pend-tip span { flex: 1; }
.pend-tip b { color: #1d4ed8; }

/* ---------- 班级构成 ---------- */
.classbar {
  display: flex; align-items: center;
  margin-top: 10px; padding: 8px 4px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px;
}
.cb {
  flex: 1; text-align: center; font-size: 11px; color: var(--muted);
  border-right: 1px solid var(--line); line-height: 1.35;
}
.cb:last-child { border-right: none; }
.cb b { font-size: 15px; font-weight: 700; color: var(--text); margin-right: 2px; }
.cb.cb-leave b { color: var(--leave); }
.cb.cb-study b { color: #7c3aed; }
.cb.cb-day b { color: #0891b2; }

/* ---------- 申请 ---------- */
.share-card {
  background: linear-gradient(180deg, #f7f9ff, #ffffff);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px;
  margin-bottom: 14px;
}
.share-card .title { font-size: 14px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.share-card .desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.code-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px dashed var(--accent);
  color: var(--accent); font-weight: 700; letter-spacing: 2px;
  padding: 7px 14px; border-radius: 10px; font-size: 17px; margin: 10px 0;
}
.link-box {
  font-size: 11.5px; color: var(--muted); word-break: break-all;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 10px; margin-top: 8px; line-height: 1.5;
}
/* 内嵌浏览器/预览窗口里的提示 */
.env-tip {
  margin-top: 14px; padding: 10px 12px; border-radius: 11px;
  background: #fff8e8; border: 1px solid #f2d9a8; color: #7a5300;
  font-size: 12.5px; line-height: 1.65;
}
.env-tip b { font-weight: 700; }
.env-tip .link-box { background: #fff; border-color: #f2d9a8; }
.env-tip .btn { margin-top: 8px; height: 34px; font-size: 13px; padding: 0 12px; }
.inbox-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 13px; margin-bottom: 9px;
}
.inbox-item .top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.inbox-item .nm { font-weight: 700; font-size: 15px; }
.inbox-item .when { font-size: 12px; color: var(--muted); flex: 1; }
.inbox-item .reason { font-size: 13.5px; color: #3d424c; line-height: 1.55; margin-bottom: 8px; white-space: pre-wrap; word-break: break-word; }
.inbox-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.inbox-thumbs img {
  width: 66px; height: 66px; object-fit: cover; border-radius: 9px;
  border: 1px solid var(--line);
}
.inbox-thumbs .thumb-cloud {
  width: 66px; height: 66px; border-radius: 9px; border: 1px dashed var(--line-strong);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 10.5px; color: var(--muted); background: #fafbfc; padding: 4px;
}
.inbox-actions { display: flex; gap: 8px; }
.inbox-actions .btn { flex: 1; height: 38px; font-size: 13.5px; border-radius: 10px; }
.btn-ok { background: var(--present-bg); color: var(--present); font-weight: 700; }
.btn-no { background: #f4f5f7; color: var(--muted); }
.cat-badge {
  font-size: 10.5px; padding: 1px 6px; border-radius: 5px; font-weight: 600;
  background: #f1f2f5; color: var(--muted);
}
.cat-badge.cat-day { background: #e0f5fa; color: #0891b2; }
.cat-badge.cat-study { background: #f1e9fe; color: #7c3aed; }
.cat-badge.cat-leave { background: var(--leave-bg); color: var(--leave); }
.mini-select {
  height: 34px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: #fff; padding: 0 8px; font-size: 13px; outline: none;
}

.inbox-group { margin-bottom: 16px; }
.ig-head {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 2px 8px; border-bottom: 1px dashed var(--line-strong);
  margin-bottom: 8px;
}
.ig-head .ig-ico { font-size: 15px; }
.ig-head .ig-t { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 7px; }
.ig-head .ig-t b { font-size: 14.5px; }
.ig-head .ig-t span { font-size: 11.5px; color: var(--muted); }
.ig-head .ig-n {
  font-size: 11.5px; color: var(--accent); font-weight: 600;
  background: var(--accent-soft); border-radius: 999px; padding: 2px 8px;
}
.ig-head .btn-ok { height: 30px; font-size: 12px; border-radius: 8px; padding: 0 10px; }

/* ---------- 同学提交页 ---------- */
.pub-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 16px; margin-top: 14px;
}
.pub-title { margin: 0 0 6px; font-size: 21px; }
.pub-desc { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.pub-label { font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: baseline; gap: 6px; }
.pub-sub { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.stu-bar {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  padding: 10px 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px;
}
.sbb-name { flex: 1; font-weight: 700; font-size: 15px; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sbb-no { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.daychips { display: flex; gap: 6px; margin-top: 8px; }
.daychips .chip { flex: 1; }

.ps-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ps {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 12px;
  background: #fff; border: 1.5px solid var(--line);
  text-align: left; transition: all 0.14s ease; width: 100%;
}
.ps:active { transform: scale(0.99); }
.ps .ps-ico { font-size: 18px; line-height: 1; }
.ps .ps-info { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ps .ps-info b { font-size: 15px; }
.ps .ps-sub { font-size: 11.5px; color: var(--muted); }
.ps .ps-box {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: #fff; color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.ps.on { border-color: var(--accent); background: #f6f9ff; }
.ps.on .ps-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.ps.on .ps-sub { color: var(--accent); }
.ps.done { background: #f7fdf9; border-color: #cfe9db; }
.ps.done .ps-box { background: var(--present-bg); border-color: var(--present); color: var(--present); }
.ps.done .ps-sub { color: var(--present); }
.ps.done.pending { background: #fffdf6; border-color: #f2e2bd; }
.ps.done.pending .ps-box { background: var(--late-bg); border-color: var(--late); color: var(--late); }
.ps.done.pending .ps-sub { color: var(--late); }
.ps[disabled] { cursor: default; }
.ps[disabled]:active { transform: none; }
.name-grid {
  display: flex; flex-wrap: wrap; gap: 7px;
  max-height: 220px; overflow-y: auto;
}
.name-chip {
  height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff;
  font-size: 14px; color: var(--text);
}
.name-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.picked {
  margin-top: 12px; padding: 9px 12px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent); font-size: 13.5px;
}
.linkbtn { color: var(--accent); text-decoration: underline; font-size: 12.5px; }

/* ---------- 学生端：Hi + 三天格子 ---------- */
.hi-card {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px; padding: 16px 16px 15px;
  border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, #2f6bff, #6f9bff 60%, #7fb0ff);
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.22);
}
.hi-main { flex: 1; min-width: 0; }
.hi-hello { font-size: 12px; opacity: 0.82; letter-spacing: 0.5px; }
.hi-name { font-size: 24px; font-weight: 800; line-height: 1.25; word-break: break-all; }
.hi-no { font-size: 11.5px; opacity: 0.82; margin-top: 2px; font-variant-numeric: tabular-nums; }
.hi-card .linkbtn { color: #fff; opacity: 0.9; font-size: 12px; white-space: nowrap; }

.day-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 10px 11px; margin-top: 10px;
}
.day-card.day-today { border-color: #cddcff; box-shadow: 0 4px 14px rgba(47, 107, 255, 0.08); }
.day-card.day-prev { background: #fbfbfc; }
.day-head { display: flex; align-items: baseline; gap: 8px; padding: 0 2px 8px; }
.dh-label { font-size: 13.5px; font-weight: 700; }
.day-prev .dh-label { color: var(--muted); }
.day-today .dh-label { color: var(--accent); }
.dh-date { font-size: 11.5px; color: var(--muted); }

.cell-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cell {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 9px 4px 8px; border-radius: 11px;
  background: #fdfdfe; border: 1px solid var(--line);
  border-top: 2px solid var(--line-strong);
  transition: all 0.14s ease;
}
.cell:active { transform: scale(0.98); }
.cell-ico { font-size: 14px; line-height: 1.2; opacity: 0.9; }
.cell-slot { font-size: 11px; color: var(--muted); line-height: 1.2; }
.cell-main { font-size: 13px; font-weight: 700; line-height: 1.35; }
.cell-sub { font-size: 10px; color: var(--muted); line-height: 1.2; }
.cell.c-wait { background: #fffdf6; border-color: #f2e2bd; border-top-color: var(--late); }
.cell.c-wait .cell-main { color: var(--late); }
.cell.c-wait .cell-sub { color: var(--late); }
.cell.c-ok { background: #f7fdf9; border-color: #cfe9db; border-top-color: var(--present); }
.cell.c-ok .cell-main { color: var(--present); }
.cell.c-ok .cell-sub { color: var(--present); }
.cell.c-none { background: #fafbfc; border-top-color: var(--line-strong); }
.cell.c-none .cell-main { color: var(--muted); font-weight: 600; }

.mine {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.mine-top { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.mine-kind {
  font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
}
.mine-kind.k-1 { background: #f1e9fe; color: #7c3aed; }
.mine-kind.k-2 { background: var(--late-bg); color: var(--late); }
.mine-kind.k-3 { background: #e0f5fa; color: #0891b2; }
.mine-kind.k-4 { background: #fff3e0; color: #b45309; }
.mine-kind.k-5 { background: #f1f2f5; color: var(--muted); }
.mine-span { flex: 1; font-size: 12.5px; font-weight: 600; }
.mine-sub { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.tag { font-size: 10.5px; padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.tag-ok { background: var(--present-bg); color: var(--present); }
.tag-wait { background: var(--late-bg); color: var(--late); }
.tag-live {
  background: #e6f6ff; color: #0284c7; border: 1px solid #bfe6fb;
}
.long-note {
  margin-top: 10px; padding: 9px 12px; border-radius: 11px;
  background: #f0f7ff; border: 1px solid #d3e5ff;
  font-size: 11.5px; color: #1e40af; line-height: 1.6;
}
.long-note b { color: #1d4ed8; }
.date-hint { margin-top: 6px; line-height: 1.6; }
.hint-warn { color: var(--late); font-weight: 600; }

.kindchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.kindchips button {
  height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff;
  font-size: 13px; color: var(--text);
}
.kindchips button.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.slotpick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.slotpick button {
  height: 40px; border-radius: 10px; border: 1.5px solid var(--line-strong);
  background: #fff; font-size: 12.5px; color: var(--muted);
}
.slotpick button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }

.date-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.date-row .input { flex: 1; min-width: 0; padding: 0 8px; font-size: 13.5px; }
.date-sep { font-size: 12px; color: var(--muted); flex: 0 0 auto; }

.det { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; }
.det-top { display: flex; align-items: baseline; gap: 8px; }
.det-top b { font-size: 14.5px; }
.det-top span { font-size: 12px; color: var(--muted); }
.det-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.det-reason { font-size: 13px; margin-top: 6px; white-space: pre-wrap; }
.det-state { font-size: 11.5px; color: var(--muted); margin-top: 8px; }

/* ---------- 类型标签 / 提取 ---------- */
.kind-tag {
  font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent); white-space: nowrap;
}
.kind-tag.k-1 { background: #f1e9fe; color: #7c3aed; }
.kind-tag.k-2 { background: var(--late-bg); color: var(--late); }
.kind-tag.k-3 { background: #e0f5fa; color: #0891b2; }
.kind-tag.k-4 { background: #fff3e0; color: #b45309; }
.kind-tag.k-5 { background: #f1f2f5; color: var(--muted); }

.inbox-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 5px; }
.inbox-meta .meta-t { font-size: 11.5px; color: var(--muted); }

.exp-bar {
  display: flex; align-items: center; gap: 10px; margin: 12px 0 10px;
}
.exp-stat { flex: 1; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.exp-stat b { color: var(--text); }

.exp-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 12px; margin-bottom: 8px;
}
.exp-top { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; flex-wrap: wrap; }
.exp-name { font-weight: 700; font-size: 14.5px; }
.exp-gap { flex: 1; }
.exp-span { font-size: 11.5px; color: var(--muted); }
.exp-sub { font-size: 11.5px; color: var(--muted); margin-bottom: 7px; }
.exp-media { display: flex; gap: 6px; flex-wrap: wrap; }
.exp-media img, .exp-media video {
  width: 66px; height: 66px; object-fit: cover; border-radius: 9px;
  border: 1px solid var(--line); background: #f1f2f5;
}
.exp-none, .exp-file { font-size: 11.5px; color: var(--muted); }
.exp-file {
  display: inline-flex; align-items: center; height: 66px; padding: 0 12px;
  border: 1px dashed var(--line-strong); border-radius: 9px;
}

/* ---------- 负责人 ---------- */
.tag-off { background: #f1f2f5; color: var(--muted); }
.mgr-row {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow);
}
.mgr-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.mgr-no { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mgr-name { font-size: 14.5px; }
.mgr-sub { font-size: 11.5px; color: var(--muted); margin: 4px 0 7px; }
.mgr-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.mgr-btns .btn { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 9px; width: auto; flex: none; }
.s-back .n { color: #7c3aed; }
.v-back { color: #7c3aed; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(84px + var(--safe-b));
  transform: translateX(-50%) translateY(8px);
  background: rgba(22, 24, 29, 0.92); color: #fff;
  padding: 9px 16px; border-radius: 999px; font-size: 13px;
  z-index: 100; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 80vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.sync-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong);
  transition: background 0.2s ease;
}
.sync-dot.busy { background: var(--late); animation: pulse 0.9s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

@media (max-width: 420px) {
  .seg button { min-width: 32px; font-size: 12px; padding: 0 4px; }
  .stu-name { font-size: 15px; }
  .stu-no { display: none; }
}

/* ===== 主页问候条（管理员/导员登录后显示「XX，辛苦了」） ===== */
.hi-bar {
  max-width: 732px;
  margin: 10px auto 0;
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--present-bg);
  color: var(--present);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.2px;
}
@media (max-width: 760px) {
  .hi-bar { margin-left: 14px; margin-right: 14px; }
}

/* ===== 通知公告 ===== */
.ann-host { max-width: 732px; margin: 10px auto 0; }
@media (max-width: 760px) { .ann-host { margin-left: 14px; margin-right: 14px; } }

.ann {
  background: #eef4ff; border: 1px solid #d5e2ff; border-radius: 12px; overflow: hidden;
}
.ann-head {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 10px 12px; border: 0; background: transparent; cursor: pointer; text-align: left;
}
.ann-tag {
  flex: 0 0 auto; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; letter-spacing: 0.5px;
}
.ann-brief {
  flex: 1 1 auto; min-width: 0; font-size: 13px; color: #1c3f86;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ann-more { flex: 0 0 auto; font-size: 11px; color: #5b7cc7; }
.ann-caret { flex: 0 0 auto; font-size: 11px; color: #5b7cc7; transition: transform 0.18s ease; }
.ann.open .ann-caret { transform: rotate(180deg); }
.ann-list { padding: 0 14px 12px; }
.ann-item { padding: 10px 0; border-top: 1px solid #d9e5ff; }
.ann-item:first-child { border-top: 0; }
.ann-item-m { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #5b7cc7; margin-bottom: 4px; }
.ann-item-t { font-size: 14px; font-weight: 700; color: #14264a; margin-bottom: 3px; }
.ann-item-b { font-size: 13.5px; color: #25395f; line-height: 1.7; word-break: break-word; }
.ann-pin {
  background: rgba(47, 107, 255, 0.14); color: #1c3f86;
  border-radius: 5px; padding: 1px 5px; font-size: 10.5px; font-weight: 700;
}

/* 管理端的公告列表 */
.ann-row {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.ann-row-m { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.ann-row-t { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.ann-row-b { font-size: 13.5px; color: #2b3340; line-height: 1.7; word-break: break-word; }
.ann-row-a { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.ann-row-a .btn { width: auto; height: 30px; padding: 0 10px; font-size: 12.5px; }

.empty-tip {
  text-align: center; color: var(--muted); font-size: 13px; line-height: 1.7;
  padding: 26px 16px; background: #fff; border: 1px dashed var(--line-strong); border-radius: 12px;
}
.chk-line { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.chk-line input { width: 16px; height: 16px; accent-color: var(--accent); }

/* ===== 二维码 / 分享页 ===== */
.qr-wrap { display: flex; justify-content: center; padding: 14px 0 10px; }
.qr-wrap svg {
  width: min(250px, 66vw); height: auto; border-radius: 10px; background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 22px rgba(16, 24, 40, 0.08);
}
.qr-wrap.qr-sm svg { width: min(168px, 44vw); }
.qr-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.qr-actions .btn { width: auto; flex: 1 1 auto; min-width: 96px; }

.install-tip { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 2px 0 10px; }
.steps { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.steps-h { font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.3px; margin-bottom: 6px; }
.step { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step b { font-size: 13.5px; font-weight: 600; }
.step span { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
