/* ============================================================
   会议与加班登记 · 素白
   浅灰底 / 白卡片 / 靛蓝强调 / 细线分隔
   ============================================================ */

:root {
  color-scheme: light;

  --bg: #f4f6f9;
  --bg-glow: #e9eff9;

  --surface: #ffffff;
  --surface-2: #fafbfd;
  --surface-3: #f1f4f9;

  --ink: #16203a;
  --ink-2: #3f4b63;
  --muted: #6d7889;
  --faint: #97a1b2;

  --line: #e4e9f1;
  --line-soft: #eef1f6;

  --brand: #2b5ce6;
  --brand-2: #4472f0;
  --brand-dim: rgba(43, 92, 230, .09);

  --gold: #a8741a;
  --gold-dim: rgba(168, 116, 26, .10);

  --red: #d1453a;
  --red-dim: rgba(209, 69, 58, .09);

  --radius: 14px;
  --radius-sm: 10px;

  --shadow-soft: 0 1px 2px rgba(22, 32, 58, .04);
  --shadow-lift: 0 16px 36px -22px rgba(22, 32, 58, .30);
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 460px at 50% -140px, var(--bg-glow) 0%, rgba(244, 246, 249, 0) 72%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 26px 20px 60px;
}

.wrap.wide { max-width: 1140px; }

/* ---------- 顶部栏 ---------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 17px;
  line-height: 1;
  flex: 0 0 34px;
  transition: border-color .16s ease, background .16s ease;
}

.back:hover { background: var(--surface); border-color: #ccd5e3; }

.topbar h1 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--ink);
}

.topbar .sub {
  font-size: 12px;
  color: var(--faint);
  margin-left: auto;
  letter-spacing: .005em;
}

.wrap.wide .topbar h1 {
  font-size: 25px;
  letter-spacing: -.035em;
  font-weight: 600;
}

.wrap.wide .topbar .sub {
  font-size: 12.5px;
  color: var(--muted);
}

/* 顶栏右侧用户区 */
.whoami {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.whoami .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22a06b;
  box-shadow: 0 0 0 3px rgba(34, 160, 107, .14);
}

.whoami form { display: inline; margin: 0; }

.whoami button {
  background: none;
  border: none;
  color: var(--faint);
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  padding: 2px 0;
}

.whoami button:hover { color: var(--ink-2); }

/* ---------- 首屏抬头 ---------- */

.masthead {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.masthead .eyebrow {
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--brand-2);
  margin-bottom: 14px;
}

.masthead h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -.04em;
  font-weight: 600;
  color: var(--ink);
}

.masthead p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.62;
}

/* ---------- 入口列表 ---------- */

.tile-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 21px 20px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line-soft);
  transition: background .16s ease;
  min-width: 0;
}

.tile:last-child { border-bottom: none; }

.tile:hover { background: var(--surface-3); }

.tile .ti {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-dim);
  color: var(--brand-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile .body { flex: 1; min-width: 0; display: block; }

.tile .title {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin-bottom: 3px;
  color: var(--ink);
}

.tile .desc {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.tile .chev {
  color: var(--faint);
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
  transition: transform .16s ease, color .16s ease;
}

.tile:hover .chev { color: var(--brand-2); transform: translateX(2px); }

.entries { display: block; margin-top: 0; }

/* ---------- 提示条 ---------- */

.flash {
  position: relative;
  background: rgba(34, 160, 107, .07);
  border: 1px solid rgba(34, 160, 107, .24);
  color: #14805a;
  border-radius: var(--radius-sm);
  padding: 12px 15px 12px 38px;
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.55;
}

.flash::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 12px;
  height: 7px;
  border-left: 1.6px solid #22a06b;
  border-bottom: 1.6px solid #22a06b;
  transform: translateY(-70%) rotate(-45deg);
}

.alert {
  background: var(--red-dim);
  border: 1px solid rgba(209, 69, 58, .26);
  color: var(--red);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.55;
}

/* ---------- 卡片与表单 ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
}

.field { margin-bottom: 22px; }

.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-2);
  margin-bottom: 9px;
}

.field label .req {
  color: var(--gold);
  margin-left: 4px;
  font-size: 12px;
}

.field .help {
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 8px;
  line-height: 1.6;
}

/* 会议起止时间：两个 time 框并排，中间一个「至」 */
.field .time-pair {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field .time-pair input[type="time"] {
  flex: 1 1 0;
  min-width: 0;
}

.field .time-pair .dash {
  flex: none;
  font-size: 13px;
  color: var(--faint);
  letter-spacing: .04em;
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="number"],
input[type="month"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 12px 13px;
  font-size: 15.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
  appearance: none;
}

input::placeholder, textarea::placeholder { color: var(--faint); }

input:hover, textarea:hover, select:hover { border-color: #ccd5e3; }

input:focus, textarea:focus, select:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(61, 112, 247, .16);
}

textarea { resize: vertical; min-height: 82px; line-height: 1.6; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .005em;
  font-family: inherit;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .1s ease;
}

.btn:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }

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

.btn.ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--line);
  box-shadow: none;
}

.btn.ghost:hover { background: var(--surface-3); border-color: #ccd5e3; color: var(--ink); }

.btn.danger {
  background: transparent;
  color: var(--red);
  border-color: rgba(255, 122, 107, .3);
  box-shadow: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 18px;
}

.btn.danger:hover { background: var(--red-dim); border-color: rgba(255, 122, 107, .5); }

.btn-row { display: grid; gap: 9px; margin-top: 24px; }

/* ---------- 行内说明 ---------- */

.note-inline {
  margin-top: 20px;
  padding: 13px 15px;
  background: var(--gold-dim);
  border: 1px solid rgba(168, 116, 26, .24);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--gold);
  line-height: 1.68;
}

.note-inline b { color: var(--gold); font-weight: 600; }

.same-item {
  font-size: 12.5px;
  color: var(--muted);
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}

.same-item:last-of-type { border-bottom: none; }

/* ---------- 会议名相近提示 ---------- */

.similar {
  margin-top: 12px;
  padding: 13px 15px;
  background: var(--gold-dim);
  border: 1px solid rgba(168, 116, 26, .24);
  border-radius: var(--radius-sm);
}

/* 一字不差的同名：是「这个会以前登记过」，不是写错了，用信息色，不拦保存 */
.similar.is-info {
  background: rgba(43, 92, 230, .05);
  border-color: rgba(43, 92, 230, .22);
}

.similar-exact {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.similar-exact b {
  color: var(--brand);
  font-weight: 600;
}

.similar-exact a {
  display: inline-block;
  margin-top: 6px;
  color: var(--brand);
  text-decoration: none;
  font-size: 12px;
}

.similar-exact a:hover { text-decoration: underline; }

/* 提示里直接给一个「去给它加加班」的出口，省得人另建一条会议 */
.similar-exact .similar-act {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
}

.similar-exact .similar-act:hover {
  background: #1f4bcc;
  text-decoration: none;
}

/* 勾选框只在「相近但不同名」时出现，hidden 不能被 display:flex 盖掉 */
.similar-ok[hidden] { display: none; }

.similar-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
  line-height: 1.5;
}

.similar-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.chip {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 9px 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.chip:hover {
  border-color: var(--brand);
  background: rgba(43, 92, 230, .04);
}

.chip-name {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
}

.chip-meta {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--faint);
  white-space: nowrap;
}

.similar-ok {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(168, 116, 26, .18);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  cursor: pointer;
}

.similar-ok input[type="checkbox"] {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.similar-ok.warn {
  color: var(--red);
  animation: nudge .32s ease 2;
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ---------- 只读身份显示 ---------- */

.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
}

.identity .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-dim);
  color: var(--brand-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex: 0 0 26px;
}

.identity .hint {
  margin-left: auto;
  font-size: 11px;
  color: var(--faint);
}

/* ---------- 会议选择器 ---------- */

.picker { position: relative; }

.picker .results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  max-height: 288px;
  overflow-y: auto;
  display: none;
  padding: 5px;
}

.picker .results.open { display: block; }

.picker .opt {
  padding: 10px 11px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13.5px;
  transition: background .12s ease;
}

.picker .opt:hover, .picker .opt.active { background: var(--brand-dim); }

.picker .opt .n {
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
}

.picker .opt .d {
  font-size: 11px;
  color: var(--faint);
  margin-top: 3px;
}

.picker .empty {
  padding: 16px 13px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.picker .empty a { color: var(--brand-2); }

.picked {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  background: var(--brand-dim);
  border: 1px solid rgba(43, 92, 230, .28);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.picked.show { display: flex; }

.picked .t {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: -.01em;
}

.picked .t small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}

.picked .x {
  border: none;
  background: rgba(22, 32, 58, .06);
  color: var(--faint);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  padding: 0;
}

.picked .x:hover { background: rgba(22, 32, 58, .12); }

/* ---------- 工时提示 ---------- */

.duration-hint {
  margin-top: 10px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.duration-hint.ok {
  background: rgba(43, 92, 230, .08);
  border: 1px solid rgba(43, 92, 230, .28);
  color: var(--brand);
  font-weight: 500;
}

.duration-hint.bad {
  background: var(--red-dim);
  border: 1px solid rgba(209, 69, 58, .26);
  color: var(--red);
}

/* ---------- 指标区 ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px -26px rgba(22, 32, 58, .30);
}

@media (min-width: 760px) {
  .metrics { grid-template-columns: repeat(4, 1fr); }
}

.metric {
  position: relative;
  padding: 24px 22px 22px;
  border-left: 1px solid var(--line-soft);
}

.metric:first-child { border-left: none; }

@media (max-width: 759px) {
  .metric:nth-child(odd) { border-left: none; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}

.metric .mk {
  display: block;
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 13px;
}

.metric .mv {
  display: inline-block;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.metric .mu {
  font-size: 12px;
  color: var(--faint);
  margin-left: 5px;
}

/* 会议指标的第二行：个数之外再标场次 */
.metric .msub {
  display: block;
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: .01em;
}

.metric.accent .mv { color: var(--gold); }

/* ---------- 趋势图 ---------- */

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 124px;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(to top, var(--line-soft) 1px, transparent 1px);
  background-size: 100% 41px;
  background-position: bottom left;
}

.cb {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  min-width: 0;
}

.cb .val {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 7px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cb .bar-fill {
  width: 100%;
  max-width: 44px;
  background: #dfe6f2;
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  transition: background .16s ease;
}

.cb.current .bar-fill { background: linear-gradient(180deg, var(--brand-2), var(--brand)); }
.cb.current .val { color: var(--ink); font-weight: 500; }

.chart-labels {
  display: flex;
  gap: 12px;
  margin-top: 9px;
}

.chart-labels span {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--faint);
}

.chart-labels span.current { color: var(--ink-2); font-weight: 500; }

/* ---------- 小节标题 ---------- */

h2.section {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  margin: 44px 0 16px;
  color: var(--muted);
}

h2.section::before {
  content: "";
  width: 12px;
  height: 2px;
  background: var(--brand);
  align-self: center;
  flex: 0 0 12px;
  transform: translateY(-1px);
}

h2.section .count {
  font-size: 11px;
  font-weight: 400;
  color: var(--faint);
  letter-spacing: .01em;
  margin-left: auto;
}

/* ---------- 名单式汇总 ---------- */

.roster { border-top: 1px solid var(--line); }

.roster-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line-soft);
}

.roster-row .who {
  flex: 0 1 auto;
  min-width: 90px;
  max-width: 340px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}

.roster-row .who > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 按人统计里姓名可点，点开看这个人的明细 */
.roster-row .who > a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}

.roster-row .who > a:hover { color: var(--brand); }

.roster-row.on {
  background: rgba(61, 112, 247, .07);
  box-shadow: inset 2px 0 0 var(--brand);
}

.roster-row.on .who { color: var(--brand); }

.roster-row .who small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--faint);
  margin-top: 2px;
}

.roster-row .track {
  flex: 1;
  height: 3px;
  background: #e3e9f3;
  border-radius: 2px;
  overflow: hidden;
  min-width: 40px;
}

.roster-row .track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 2px;
}

.roster-row .track i.clay {
  background: linear-gradient(90deg, var(--gold), #c9963f);
}

.roster-row .num-strong {
  flex: 0 0 auto;
  min-width: 76px;
  text-align: right;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.roster-row .num-strong small {
  font-size: 11px;
  font-weight: 400;
  color: var(--faint);
  margin-left: 3px;
}

.roster-row .extra {
  flex: 0 0 auto;
  min-width: 52px;
  text-align: right;
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* ---------- 表格 ---------- */

.table-wrap {
  border-top: 1px solid var(--line);
  overflow-x: auto;
}

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

th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--faint);
  padding: 12px 14px 11px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: transparent;
}

th:first-child, td:first-child { padding-left: 2px; }

td {
  padding: 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  color: var(--ink-2);
}

tr:last-child td { border-bottom: none; }

tbody tr { transition: background .12s ease; }
tbody tr:hover { background: rgba(22, 32, 58, .022); }

td.num, th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

td .nm, td.nm {
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink);
  font-size: 13.5px;
}

td .sm {
  font-size: 11px;
  color: var(--faint);
  margin-top: 3px;
}

td .sm .tm {
  color: var(--ink-2);
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

td.sm-plain {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.col-reporter { width: 108px; }

/* 窄屏：先把整页宽度锁在视口内，再让表格自己横向滑动，
   否则页面整体溢出，表格滑到底也还在屏幕外 */
@media (max-width: 759px) {
  html, body { overflow-x: hidden; }
  .wrap, .wrap.wide {
    width: 100%;
    max-width: 100%;
  }
  .topbar, .toolbar, h2.section { flex-wrap: wrap; }
  .topbar h1, .whoami { min-width: 0; }

  .table-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .table-wrap table { min-width: 500px; }
  th, td {
    word-break: keep-all;
    overflow-wrap: normal;
  }
  /* 固定列宽在窄屏会二次挤压，交给内容自己决定 */
  .col-reporter, .col-time, .col-count { width: auto; }
}
.col-times { width: 104px; }
.col-hours { width: 112px; }
.col-by { width: 96px; }
.col-date { width: 78px; }
.col-span { width: 152px; }
.col-reason { width: 180px; }

.empty-state {
  padding: 40px 16px;
  text-align: center;
  color: var(--faint);
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
}

.bar {
  height: 3px;
  border-radius: 2px;
  background: #e3e9f3;
  overflow: hidden;
  margin-top: 9px;
  max-width: 320px;
}

.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 2px; }
.bar.teal > i { background: var(--gold); }

/* ---------- 工具条 ---------- */

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.toolbar input[type="month"],
.toolbar input[type="date"],
.toolbar input[type="text"],
.toolbar select {
  width: auto;
  flex: 0 0 auto;
  background: var(--surface);
  font-size: 13px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
}

.toolbar .spacer { margin-left: auto; }

.toolbar .btn {
  width: auto;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.chip-group {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.chip {
  padding: 9px 14px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  border-left: 1px solid var(--line-soft);
  transition: background .14s ease, color .14s ease;
  white-space: nowrap;
}

.chip:first-child { border-left: none; }
.chip:hover { background: var(--surface-3); color: var(--ink-2); }

.chip.on {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.chip.on:hover { background: var(--brand-2); color: #fff; }

.month-pick {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.month-pick input {
  width: auto;
  flex: 0 0 auto;
  background: var(--surface);
  font-size: 13px;
  padding: 9px 12px;
}

.month-pick .btn { width: auto; padding: 9px 16px; font-size: 12.5px; }

/* ---------- 操作按钮 ---------- */

th.act-col, td.act-col {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}

.act { display: inline-flex; align-items: center; gap: 5px; }
.act form { display: inline; margin: 0; }

.mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-family: inherit;
  line-height: 1.45;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}

.mini:hover { border-color: #ccd5e3; background: var(--surface-3); color: var(--ink); }

.mini.danger { color: var(--red); border-color: rgba(209, 69, 58, .26); }
.mini.danger:hover { background: var(--red-dim); border-color: rgba(255, 122, 107, .46); }

/* ---------- 使用说明 ---------- */

.howto {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.howto .t {
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--faint);
  margin-bottom: 16px;
}

.howto ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.howto li {
  position: relative;
  counter-increment: step;
  padding-left: 30px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 11px;
}

.howto li:last-child { margin-bottom: 0; }

.howto li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 10px;
  color: var(--brand-2);
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 页脚 ---------- */

.footnote {
  margin-top: 30px;
  font-size: 11.5px;
  color: var(--faint);
  line-height: 1.8;
}

.footnote a {
  color: var(--brand-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 135, 255, .3);
  padding-bottom: 1px;
}

.footnote a:hover { border-bottom-color: var(--brand-2); }

/* ---------- 二维码 ---------- */

.qr-box {
  text-align: center;
  padding: 30px 0 20px;
}

.qr-box img {
  width: 232px;
  height: 232px;
  display: block;
  margin: 0 auto 16px;
  border-radius: 4px;
  background: #fff;
  padding: 10px;
}

.qr-box .url {
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- 登录 / 初始化 ---------- */

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-card .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 26px;
}

.auth-card .brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-dim);
  border: 1px solid rgba(61, 112, 247, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-2);
}

.auth-card .brand .txt {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .02em;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.auth-card .lead {
  margin: 0 0 26px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.auth-card .card { padding: 26px 24px; }

.auth-foot {
  margin-top: 20px;
  text-align: center;
  font-size: 11.5px;
  color: var(--faint);
  line-height: 1.7;
}

/* ---------- 响应式 ---------- */

@media (max-width: 480px) {
  .wrap { padding: 20px 16px 48px; }
  .masthead h2 { font-size: 26px; }
  .metric { padding: 18px 14px 16px; }
  .metric .mv { font-size: 29px; }
  th, td { padding-left: 10px; padding-right: 10px; }
  .roster-row .who { min-width: 72px; }
  .roster-row .extra { display: none; }
}

@media print {
  :root { color-scheme: light; }
  body {
    background: #fff !important;
    color: #111 !important;
    background-image: none !important;
  }
  .topbar, .btn-row, .footnote, .toolbar, .month-pick, .whoami { display: none !important; }
  .card, .qr-box { border: none !important; background: #fff !important; }
  .qr-box img { border: none !important; padding: 0 !important; }
  .qr-box .url { color: #555 !important; }
}

/* ---------- 会议地点候选 ---------- */

.loc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.loc-chip {
  padding: 5px 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.loc-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(43, 92, 230, .05);
}
