:root {
  --bg: #f5f3ef;
  --bg-2: #efebe4;
  --surface: #ffffff;
  --ink: #17171a;
  --ink-2: #46464d;
  --ink-3: #86868c;
  --line: #e2dcd3;
  --line-strong: #d3cbc0;
  --accent: #d4502e;
  --ok: #2f6f6b;
  --warn: #b7862b;
  --danger: #b3261e;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(23, 23, 26, 0.06), 0 8px 24px -18px rgba(23, 23, 26, 0.4);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: 0.01em; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- 公开页 ---------- */

.pw-top {
  border-bottom: 1px solid var(--line);
  background: rgba(245, 243, 239, 0.86);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.pw-top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark {
  width: 26px; height: 26px; border: 1.5px solid var(--ink);
  border-radius: 4px; display: grid; place-items: center;
  font-weight: 700; font-size: 13px; letter-spacing: -0.02em;
}
.brand-name { font-size: 17px; font-weight: 650; }
.brand-sub { color: var(--ink-3); font-size: 12.5px; }

.clock { display: flex; align-items: baseline; gap: 12px; }
.clock-time {
  font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.clock-date { color: var(--ink-3); font-size: 12.5px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 99px;
  font-size: 11.5px; letter-spacing: 0.02em;
  border: 1px solid var(--line-strong); color: var(--ink-2);
  background: var(--surface);
}
.pill-live { border-color: rgba(212, 80, 46, 0.35); color: var(--accent); background: rgba(212, 80, 46, 0.06); }
.dot-live { width: 6px; height: 6px; border-radius: 99px; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-grid {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px;
  margin: 26px 0 30px;
}
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px;
}
.card-label { font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; }
.hero-name { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.hero-avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 600; font-size: 17px; color: #fff; flex: none;
}
.hero-title { font-size: 26px; font-weight: 650; line-height: 1.2; }
.hero-meta { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.hero-split { margin-top: 18px; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-split .k { font-size: 11.5px; color: var(--ink-3); }
.hero-split .v { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-empty { color: var(--ink-3); font-size: 14px; margin-top: 12px; }
.hero-live-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.hero-live-row { display: flex; align-items: center; gap: 12px; }
.hero-avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.hl-main { min-width: 0; }
.hl-name { font-size: 17px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.hl-room {
  font-size: 10.5px; font-weight: 500; color: var(--ink-2);
  border: 1px solid var(--line-strong); border-radius: 3px; padding: 0 5px;
  background: var(--bg-2); letter-spacing: 0.02em;
}
.hl-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }

.timeline-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 22px 14px; margin-bottom: 22px;
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 14px; flex-wrap: wrap;
}
.section-head h2 { font-size: 15.5px; }
.section-note { color: var(--ink-3); font-size: 12px; }

.tl-scroll { overflow-x: auto; padding-bottom: 6px; }
.tl { min-width: 720px; position: relative; padding-top: 8px; }
.tl-hours { position: relative; height: 22px; border-bottom: 1px solid var(--line); }
.tl-tick {
  position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--line);
  width: 0;
}
.tl-tick span { position: absolute; left: 4px; top: 2px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl-track { position: relative; height: 58px; margin: 10px 0 4px; }
.tl-slot {
  position: absolute; top: 0; height: 44px; border-radius: 4px; color: #fff;
  display: flex; align-items: center; padding: 0 10px; overflow: hidden;
  font-size: 12.5px; white-space: nowrap; cursor: default;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tl-slot:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(0,0,0,0.55); }
.tl-slot.is-past { opacity: 0.55; }
.tl-slot.is-live { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink); }
.tl-slot .s-name { font-weight: 600; margin-right: 6px; }
.tl-slot .s-time { opacity: 0.86; font-variant-numeric: tabular-nums; }
.tl-slot.is-narrow { padding: 0 5px; font-size: 11.5px; }
.tl-slot.is-narrow .s-name { margin-right: 3px; }
.tl-slot.is-narrow .s-time { font-size: 10.5px; }
.tl-slot .s-sub { opacity: 0.72; margin-left: 6px; font-size: 11px; }
.tl-now { position: absolute; top: -2px; bottom: 0; width: 2px; background: var(--ink); z-index: 3; }
.tl-now::after {
  content: attr(data-label); position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 10.5px; padding: 1px 5px; border-radius: 3px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tl-room { margin-bottom: 10px; }
.tl-room-head { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; }
.tl-room-head .rdot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.tl-room-head b { font-size: 12.5px; font-weight: 600; }
.tl-room-head .rn { font-size: 11px; color: var(--ink-3); }

.week-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; margin-bottom: 30px;
}
.week-row {
  display: grid; grid-template-columns: 92px 1fr; gap: 14px;
  padding: 11px 0; border-top: 1px solid var(--line); align-items: center;
}
.week-row:first-of-type { border-top: 0; }
.week-date { font-size: 13px; }
.week-date .d { font-weight: 600; font-variant-numeric: tabular-nums; }
.week-date .w { color: var(--ink-3); margin-left: 6px; font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 3px; font-size: 12px;
  border: 1px solid var(--line); background: var(--bg-2);
  font-variant-numeric: tabular-nums;
}
.chip i { width: 5px; height: 5px; border-radius: 99px; }
.chip.is-today { border-color: var(--line-strong); background: #fff; }
.chip.is-empty { color: var(--ink-3); background: transparent; border-style: dashed; }

.pw-foot {
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px;
  padding: 18px 0 34px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- 内部工作台 ---------- */

.admin-shell { display: grid; grid-template-columns: 208px 1fr; min-height: 100vh; }
.rail {
  background: var(--ink); color: #f1efe9; padding: 22px 16px; display: flex; flex-direction: column; gap: 22px;
  position: sticky; top: 0; height: 100vh;
}
.rail-brand { display: flex; align-items: center; gap: 9px; padding: 0 6px; }
.rail-brand .m { width: 24px; height: 24px; border: 1.5px solid #f1efe9; border-radius: 4px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.rail-brand .t { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.rail-nav { display: flex; flex-direction: column; gap: 2px; }
.rail-nav button {
  text-align: left; background: none; border: 0; color: #b9b6ae; padding: 9px 10px; border-radius: 4px;
  cursor: pointer; font-size: 13px; transition: background 0.15s, color 0.15s;
}
.rail-nav button:hover { background: rgba(255,255,255,0.06); color: #f1efe9; }
.rail-nav button.is-on { background: rgba(255,255,255,0.1); color: #fff; }
.rail-foot { margin-top: auto; font-size: 11.5px; color: #77746d; padding: 0 6px; display: flex; flex-direction: column; gap: 8px; }
.rail-foot a { color: #cfccc4; }
.link-btn { background: none; border: 0; color: #cfccc4; padding: 0; cursor: pointer; text-align: left; font-size: 11.5px; }
.link-btn:hover { text-decoration: underline; }

.main { padding: 26px 32px 60px; max-width: 1200px; min-width: 0; }
.main-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.main-head h1 { font-size: 21px; }
.main-head .sub { color: var(--ink-3); font-size: 12.5px; margin-top: 3px; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h3 { font-size: 14px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .k { font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.06em; }
.kpi .v { font-size: 25px; font-weight: 650; margin-top: 4px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi .u { font-size: 12px; color: var(--ink-3); margin-left: 3px; font-weight: 400; }
.kpi .s { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

.chart-box { position: relative; }
.chart-svg { width: 100%; height: 190px; display: block; }
.chart-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--ink-2); }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 1px; }

table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tb th {
  text-align: left; font-weight: 500; color: var(--ink-3); font-size: 11.5px;
  letter-spacing: 0.06em; padding: 0 10px 8px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.tb td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tb td.r, table.tb th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.tb tr:last-child td { border-bottom: 0; }
table.tb .name { display: flex; align-items: center; gap: 8px; }
table.tb .sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.bar-cell { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.bar-track { width: 72px; height: 4px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; }

.btn {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  padding: 6px 12px; border-radius: 4px; cursor: pointer; font-size: 12.5px;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn:hover { background: var(--bg-2); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #2c2c31; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #c0451f; }
.btn-ghost { border-color: transparent; background: none; color: var(--ink-3); padding: 4px 6px; }
.btn-ghost:hover { color: var(--ink); background: var(--bg-2); }
.btn-sm { padding: 3px 8px; font-size: 12px; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line-strong); background: #fff; border-radius: 4px;
  padding: 7px 10px; font-size: 13px; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.form-row { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }

.badge { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 11px; letter-spacing: 0.03em; border: 1px solid var(--line-strong); color: var(--ink-2); }
.badge-auto { color: var(--ok); border-color: rgba(47,111,107,0.3); background: rgba(47,111,107,0.06); }
.badge-manual { color: var(--ink-2); }
.badge-demo { color: var(--warn); border-color: rgba(183,134,43,0.32); background: rgba(183,134,43,0.08); }

.shift-grid { overflow-x: auto; }
.sg { border-collapse: collapse; min-width: 640px; width: 100%; font-size: 12.5px; }
.sg th, .sg td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.sg th { background: var(--bg-2); font-weight: 500; color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.sg td { min-width: 120px; }
.sg .day { background: var(--bg-2); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sg .cell-shift {
  display: block; margin-bottom: 4px; padding: 4px 7px; border-radius: 3px; font-size: 11.5px;
  border-left: 3px solid currentColor; background: var(--bg-2); cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.sg .cell-shift:hover { filter: brightness(0.96); }
.sg .add-cell { color: var(--ink-3); font-size: 11.5px; cursor: pointer; opacity: 0.7; }
.sg .add-cell:hover { opacity: 1; color: var(--ink); }

.log-list { display: flex; flex-direction: column; gap: 1px; font-size: 12px; max-height: 320px; overflow: auto; }
.log-item { display: grid; grid-template-columns: 78px 42px 1fr; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.log-item .t { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.log-item .lv { font-weight: 500; }
.lv-info { color: var(--ok); }
.lv-warn { color: var(--warn); }
.lv-error { color: var(--danger); }
.log-item .m { color: var(--ink-2); }

.empty { color: var(--ink-3); font-size: 13px; padding: 18px 0; text-align: center; }

.modal-mask {
  position: fixed; inset: 0; background: rgba(23,23,26,0.42); display: none;
  align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.modal-mask.is-open { display: flex; }
.modal {
  background: var(--surface); border-radius: 8px; box-shadow: 0 24px 60px -24px rgba(0,0,0,0.5);
  width: 100%; max-width: 460px; padding: 20px 22px;
  max-height: calc(100vh - 40px); display: flex; flex-direction: column;
}
.modal > h3 { flex: none; }
#modalBody { overflow: auto; min-height: 0; }
.modal > .actions { flex: none; }
.modal h3 { font-size: 15px; margin-bottom: 14px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.modal .hint { color: var(--ink-3); font-size: 12px; margin-top: 8px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px);
  background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 4px;
  font-size: 12.5px; opacity: 0; pointer-events: none; transition: all 0.22s ease; z-index: 70;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.login-gate { position: fixed; inset: 0; background: var(--bg); display: grid; place-items: center; z-index: 60; }
.login-card { width: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 26px; box-shadow: var(--shadow); }
.login-card h2 { font-size: 17px; margin-bottom: 4px; }
.login-card p { color: var(--ink-3); font-size: 12.5px; margin: 0 0 18px; }
.login-card .field { margin-bottom: 12px; }
.login-card .btn { width: 100%; }
.login-card .err { color: var(--danger); font-size: 12px; margin-top: 10px; min-height: 16px; }

.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 5px 12px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.seg button.is-on { background: var(--ink); color: #fff; }

/* ---------- 排班三视图 ---------- */

.seg-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.nav-label { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding: 0 4px; }
.date-in { border: 1px solid var(--line-strong); border-radius: 4px; padding: 5px 9px; background: #fff; font-size: 12.5px; }

.mg-head-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.mg-head-row span { font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.06em; padding-left: 8px; }
.mg-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; grid-auto-rows: minmax(92px, auto); }
.mg-cell { min-width: 0; overflow: hidden; }
.mg-cell {
  min-height: 92px; border: 1px solid var(--line); border-radius: 4px;
  background: #fdfcfa; padding: 6px 7px; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mg-cell:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.mg-cell.is-out { background: transparent; border-color: transparent; cursor: default; }
.mg-cell.is-out .mg-date { color: var(--line-strong); }
.mg-cell.is-today { border-color: var(--ink); background: #fff; }
.mg-date {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 650; color: var(--ink-2);
  font-variant-numeric: tabular-nums; margin-bottom: 5px;
}
.mg-cell.is-today .mg-date::after {
  content: "今天"; font-weight: 500; font-size: 10px; color: #fff;
  background: var(--ink); border-radius: 2px; padding: 0 4px; letter-spacing: 0.04em;
}
.mg-body { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.mg-live { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.mg-live i { display: inline-block; width: 5px; height: 5px; border-radius: 99px; background: var(--accent); margin-right: 4px; vertical-align: 1px; }

.att-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 1px 6px; border-radius: 3px; font-size: 11px; line-height: 1.65;
  border-left: 2px solid var(--c, var(--ink-3));
  background: var(--bg-2);
  background: color-mix(in srgb, var(--c, #86868c) 14%, #fff);
}
.att-chip em { font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.att-chip.is-rest { border-left-color: var(--danger); background: rgba(179, 38, 30, 0.1); color: var(--danger); }
.att-chip.is-rest em { color: var(--danger); }
.att-chip.is-blank { border-left-color: var(--line-strong); background: transparent; color: var(--ink-3); }
.att-more { font-size: 10.5px; color: var(--ink-3); }

.week-wrap { overflow-x: auto; }
.week-matrix, .week-att {
  border-collapse: collapse; width: 100%; min-width: 780px; font-size: 12.5px;
  table-layout: fixed;
}
.week-matrix th, .week-matrix td, .week-att th, .week-att td { border: 1px solid var(--line); }
.week-matrix th.h-col, .week-att th.h-col {
  width: 80px; background: var(--bg-2); font-weight: 500; font-size: 11.5px;
  color: var(--ink-3); text-align: center; padding: 6px 4px; white-space: nowrap;
}
.d-col { background: var(--bg-2); padding: 5px 4px; text-align: center; }
.d-num { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.d-wk { font-size: 10.5px; color: var(--ink-3); }
.d-col.is-today .d-num { color: var(--accent); }
.matrix-cell { height: 34px; padding: 3px; cursor: pointer; }
.matrix-cell:hover { background: #fbfaf7; }
.matrix-cell.is-now { background: rgba(196, 92, 45, 0.07); }
.week-matrix { user-select: none; }
.matrix-cell.is-sel { background: rgba(47, 111, 107, 0.12); box-shadow: inset 0 0 0 2px var(--accent); }
.matrix-cell.is-sel:hover { background: rgba(47, 111, 107, 0.16); }
.cell-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 7px 10px; margin-bottom: 10px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px;
  position: sticky; top: 0; z-index: 6;
}
.cell-bar[hidden] { display: none; }
.cb-info { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cb-hint { font-size: 11px; color: var(--ink-3); margin-left: auto; }

.gen-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 6px; }
.gen-table th {
  text-align: left; font-weight: 500; font-size: 11px; color: var(--ink-3);
  padding: 5px 6px; border-bottom: 1px solid var(--line-strong); background: var(--bg-2); white-space: nowrap;
}
.gen-table td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.gen-table td.num, .gen-table .num { font-variant-numeric: tabular-nums; }
.gen-table td .sw { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; vertical-align: 1px; }
.gen-table em { font-style: normal; }
.gen-table .wk { color: var(--ink-3); margin-left: 3px; font-size: 10.5px; }
.gen-table .dur { color: var(--ink-3); margin-left: 6px; font-size: 10.5px; }
.gen-table .warn { color: var(--danger); margin-left: 4px; font-size: 10px; }
.gen-table .st { white-space: nowrap; font-size: 11.5px; }
.gen-table .st-new { color: var(--accent); }
.gen-table .st-over { color: var(--danger); }
.gen-table .st-same, .gen-table .st-skip { color: var(--ink-3); }
.gen-sum { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hb-wrap { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.hb { color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 3px; white-space: nowrap; line-height: 1.6; }

.wk-block { margin-bottom: 20px; }
.wk-block:last-child { margin-bottom: 8px; }
.wk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 16px; align-items: start; }
.wk-grid .wk-block { margin-bottom: 0; }
.week-matrix.is-dense { min-width: 0; }
.week-matrix.is-dense th.h-col { width: 54px; font-size: 10.5px; padding: 1px 3px; height: 24px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.week-matrix.is-dense .matrix-cell { height: 24px; padding: 1px 2px; }
.week-matrix.is-dense .d-col { padding: 4px 2px; }
.week-matrix.is-dense .d-num { font-size: 11px; }
.week-matrix.is-dense .d-wk { font-size: 9.5px; }
.week-matrix.is-dense .hb-wrap { flex-wrap: nowrap; overflow: hidden; gap: 2px; }
.week-matrix.is-dense .hb { font-size: 10.5px; padding: 0 5px; line-height: 1.55; border-radius: 2px; }

.att-name { padding: 6px 8px; white-space: nowrap; font-weight: 500; }
.att-name .sw { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 6px; vertical-align: 1px; }
.att-cell {
  padding: 5px 6px; text-align: center; font-variant-numeric: tabular-nums; cursor: pointer;
  background: #fff;
  background: color-mix(in srgb, var(--c, #ffffff) 16%, #fff);
}
.att-cell:hover { background: #fff; }
.att-cell.is-empty { color: var(--ink-3); background: transparent; }
.att-cell.is-rest { color: var(--danger); background: rgba(179, 38, 30, 0.1); font-weight: 500; }

.board-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.board-title b { font-size: 13px; font-variant-numeric: tabular-nums; }
.board-title span { font-size: 12px; color: var(--ink-3); }
.room-row { margin-bottom: 16px; }
.rr-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rr-head .sw { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.rr-head b { font-size: 13px; }
.rr-meta { font-size: 11.5px; color: var(--ink-3); }
.rr-head [data-addroom] { margin-left: auto; }
.rb-hours { position: relative; height: 14px; }
.rb-h { position: absolute; top: 0; font-size: 10px; color: var(--ink-3); transform: translateX(2px); font-variant-numeric: tabular-nums; }
.rb-track {
  position: relative; border: 1px solid var(--line); border-radius: 4px;
  background: #fcfbf9; overflow: hidden; cursor: crosshair;
}
.rb-ruler { position: absolute; inset: 0; pointer-events: none; }
.rb-tick { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--line); }
.rb-tick em { display: none; }
.rb-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); opacity: .55; pointer-events: none; }

.slot-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); margin-bottom: 10px; }
.slot-meta .sw { width: 9px; height: 9px; border-radius: 2px; }
.slot-now {
  display: flex; align-items: baseline; gap: 8px; padding: 9px 12px; border-radius: 6px;
  background: var(--bg-2); margin-bottom: 10px; font-size: 13px;
}
.slot-now .sw { width: 9px; height: 9px; border-radius: 2px; align-self: center; }
.slot-now b { font-size: 14px; }
.slot-mode { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.slot-mode .chk { font-size: 12.5px; color: var(--ink-2); }
.slot-mode .chk:has(input:disabled) { color: var(--ink-3); opacity: .7; }
.slot-tip { font-size: 12px; color: var(--ink-3); margin: 10px 0 6px; }
.slot-anchors { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-anchor {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #fff;
  font-size: 13px; font-family: inherit; color: var(--ink); transition: box-shadow .15s ease, border-color .15s ease;
}
.slot-anchor:hover { border-color: var(--ink-3); box-shadow: 0 2px 8px -4px rgba(0,0,0,.35); }
.slot-anchor.is-on { border-color: var(--ink); background: var(--bg-2); font-weight: 600; cursor: default; }
.slot-anchor .sw { width: 9px; height: 9px; border-radius: 2px; }
.slot-foot { display: flex; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

.preset-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.preset-group { margin-top: 12px; }
.preset-group:first-of-type { margin-top: 2px; }
.preset-group .preset-bar { margin-top: 6px; }
.preset-g-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em;
}
.preset-edit {
  border: 0; background: transparent; padding: 0 2px; cursor: pointer;
  font-family: inherit; font-size: 11px; color: var(--accent); text-decoration: underline;
  text-underline-offset: 2px;
}
.preset-edit:hover { color: var(--ink); }
.preset-tip { display: flex; align-items: center; gap: 8px; }
.preset-tip .preset-edit { margin-left: auto; }
.preset.is-add { border-style: dashed; color: var(--ink-3); }
.preset.is-add:hover { color: var(--ink); border-color: var(--ink-3); }
.preset-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.preset-row { display: flex; align-items: center; gap: 6px; }
.preset-row input, .preset-row select {
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 6px 8px;
  font-size: 12.5px; font-family: inherit; background: #fff; color: var(--ink);
}
.preset-row .pr-name { width: 84px; }
.preset-row .pr-start, .preset-row .pr-end { width: 106px; }
.preset-row .pr-type { width: 88px; }
.preset-row .pr-dash { color: var(--ink-3); }
.preset-row .pr-del {
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-3);
  width: 26px; height: 26px; border-radius: 4px; cursor: pointer; font-size: 14px; line-height: 1;
  font-family: inherit; padding: 0;
}
.preset-row .pr-del:hover { color: var(--danger); border-color: rgba(179, 38, 30, 0.4); }
.preset-add-wrap { margin-top: 12px; }
@media (max-width: 560px) {
  .preset-row { flex-wrap: wrap; }
  .preset-row .pr-name { width: 72px; }
}
.preset {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 13px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 6px; background: #fff;
  font-family: inherit; font-size: 13px; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.preset em { font-style: normal; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.preset:hover { border-color: var(--ink-3); box-shadow: 0 2px 8px -5px rgba(0,0,0,.4); }
.preset.is-on { border-color: var(--ink); background: var(--bg-2); font-weight: 600; }
.preset.is-on em { color: var(--ink-2); }
.preset.is-rest { color: var(--danger); border-color: var(--line-strong); }
.preset.is-rest em { color: var(--danger); opacity: .8; }
.preset.is-rest:hover { border-color: var(--danger); }
.preset.is-rest.is-on { border-color: var(--danger); background: rgba(179, 38, 30, 0.08); }

.att-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
.att-head .matrix-title { margin: 0; }
.quota-note { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.week-att th.sum-col { width: 74px; background: var(--bg-2); font-size: 11px; color: var(--ink-3); font-weight: 500; padding: 5px 4px; text-align: center; }
.week-att td.sum-cell {
  text-align: center; font-variant-numeric: tabular-nums; color: var(--ink-2);
  background: #fcfbf9; white-space: nowrap;
}
.week-att td.sum-cell em { font-style: normal; color: var(--danger); font-size: 10.5px; margin-left: 4px; font-weight: 600; }
.week-att td.sum-cell.is-over { background: rgba(179, 38, 30, 0.1); color: var(--danger); font-weight: 600; }
.slot-del { margin-left: auto; color: var(--danger); border-color: rgba(179, 38, 30, 0.35); }
.slot-del:hover { background: rgba(179, 38, 30, 0.08); }
.rb-block {
  position: absolute; height: 26px; border-radius: 3px; color: #fff;
  display: flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 12px;
  overflow: hidden; white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 2px rgba(23, 23, 26, 0.18);
}
.rb-block em { font-style: normal; opacity: 0.82; font-size: 11px; font-variant-numeric: tabular-nums; }
.rb-block:hover { filter: brightness(1.06); }
.rb-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 12px; pointer-events: none; }
.matrix-title { font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; margin: 18px 0 8px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-3); margin-top: 12px; }
.legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

.modal.is-wide { max-width: 640px; }
.tb-compact td, .tb-compact th { padding: 6px 8px; font-size: 12.5px; }
.dp-block { margin-bottom: 18px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.dp-head b { font-size: 13px; }
.muted { color: var(--ink-3); }
.att-rest-txt { color: var(--danger); font-weight: 500; }
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }

@media (max-width: 760px) {
  .mg-grid, .mg-head-row { grid-template-columns: repeat(7, minmax(86px, 1fr)); }
  #panelMonth { overflow-x: auto; }
}

.status-strip { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; font-size: 12.5px; }
.status-strip .it { display: flex; align-items: center; gap: 7px; color: var(--ink-2); }
.status-strip .it b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.led { width: 7px; height: 7px; border-radius: 99px; background: var(--ink-3); }
.led-on { background: var(--ok); }
.led-off { background: var(--danger); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; align-items: center; gap: 12px; overflow-x: auto; padding: 12px 14px; }
  .rail-nav { flex-direction: row; }
  .rail-foot { display: none; }
  .main { padding: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
}
@media (max-width: 560px) {
  .clock-time { font-size: 21px; }
  .hero-title { font-size: 21px; }
  .kpis { grid-template-columns: 1fr; }
  .pw-top-in { padding: 12px 0; }
}

/* ---------- 公开页 · 三张表 ---------- */

.pb-main { padding-top: 22px; padding-bottom: 6px; }
.pb-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 16px 18px 18px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.pb-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pb-head h2 { font-size: 15px; }
.pb-note { font-size: 12px; color: var(--ink-3); }
.pb-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.pb-table { border-collapse: collapse; width: 100%; font-size: 12.5px; table-layout: fixed; min-width: 760px; }
.pb-table th, .pb-table td { border: 1px solid var(--line); }
.pb-table th { background: var(--bg-2); font-weight: 500; color: var(--ink-3); font-size: 11.5px; padding: 5px 4px; }

.pb-att th.nm, .pb-att td.nm { width: 100px; text-align: left; padding: 7px 10px; font-weight: 500; white-space: nowrap; }
.pb-att th.d { padding: 5px 2px; text-align: center; }
.pb-att .d-num { font-size: 11.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pb-att .d-wk { font-size: 10.5px; color: var(--ink-3); }
.pb-att td.c {
  text-align: center; padding: 7px 4px; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--c, #ffffff) 14%, #fff);
}
.pb-att td.c.is-empty { color: var(--ink-3); background: transparent; }
.pb-att td.c.is-rest { color: var(--danger); background: rgba(179, 38, 30, 0.08); font-weight: 500; }

.pb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); gap: 20px; align-items: start; }
.pb-room { min-width: 0; }
.pb-room + .pb-room { margin-top: 16px; }
.pb-grid .pb-room + .pb-room { margin-top: 0; }
.pb-room-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; }
.pb-room-head b { font-size: 13px; }
.pb-room-head .rn { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rdot { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex: none; }
.pb-att .rdot, .pb-today .rdot { margin-right: 6px; vertical-align: 1px; }

.pb-week { min-width: 0; }
.pb-week th.h { width: 56px; font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pb-week th.d { padding: 4px 2px; text-align: center; }
.pb-week th.d .d-num { font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pb-week th.d .d-wk { font-size: 9.5px; color: var(--ink-3); }
.pb-week th.d.is-today .d-num { color: var(--accent); }
.pb-week td.c { height: 23px; padding: 1px 2px; }
.pb-week td.c.is-now { background: rgba(196, 92, 45, 0.07); }
.pb-week .hb-wrap { display: flex; gap: 2px; justify-content: center; overflow: hidden; }
.pb-week .hb { color: #fff; font-size: 10.5px; line-height: 1.6; padding: 0 5px; border-radius: 2px; white-space: nowrap; }

.pb-today { min-width: 420px; }
.pb-today th, .pb-today td { padding: 7px 10px; text-align: left; }
.pb-today th:nth-child(1) { width: 116px; }
.pb-today th:nth-child(3) { width: 108px; }
.pb-today th:nth-child(4) { width: 80px; }
.pb-today td { font-variant-numeric: tabular-nums; }
.pb-today tr.is-live { background: rgba(212, 80, 46, 0.06); }
.pb-today tr.is-done td { color: var(--ink-3); }
.pb-today .st { font-size: 11.5px; white-space: nowrap; }
.pb-today .st-live { color: var(--accent); font-weight: 500; }
.pb-today .st-wait, .pb-today .st-done { color: var(--ink-3); }
.pb-empty { padding: 10px 0; font-size: 12px; text-align: left; }

@media (max-width: 900px) {
  .pb-grid { grid-template-columns: 1fr; }
  .pb-card { padding: 14px 14px 16px; }
  .pb-att { min-width: 640px; }
}

/* ---------- 公开页 · 周次切换条 ---------- */

.pb-nav {
  position: sticky; top: var(--pw-top-h, 64px); z-index: 15;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 9px 14px; margin-bottom: 14px;
  background: rgba(245, 243, 239, 0.94); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 8px;
}
.pb-range { display: flex; align-items: baseline; gap: 8px; }
.pb-range b { font-size: 14px; font-weight: 600; letter-spacing: 0.01em; }
.pb-tag {
  font-size: 11px; padding: 1px 7px; border-radius: 99px;
  border: 1px solid var(--line-strong); color: var(--ink-3); background: var(--surface);
}
.pb-tag.is-cur { border-color: rgba(47, 111, 107, 0.35); color: var(--ok); background: rgba(47, 111, 107, 0.07); }
.pb-nav-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pb-btn {
  appearance: none; cursor: pointer;
  padding: 5px 11px; border-radius: 6px; font-size: 12.5px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.pb-btn:hover:not(:disabled) { border-color: var(--ink-3); color: var(--ink); }
.pb-btn.ghost { background: transparent; border-style: dashed; }
.pb-btn:disabled { opacity: 0.42; cursor: default; }
.pb-jump { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.pb-date {
  appearance: none; padding: 4px 7px; border-radius: 6px; font-size: 12px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.pb-date:focus { outline: 2px solid rgba(47, 111, 107, 0.25); outline-offset: 1px; }

.pb-att th.d.is-today .d-num { color: var(--accent); }

@media (max-width: 900px) {
  .pb-nav { position: static; padding: 9px 10px; }
  .pb-nav-act { width: 100%; justify-content: space-between; }
  .pb-btn { padding: 6px 9px; }
  .pb-jump span { display: none; }
}

@media (max-width: 560px) {
  .pb-today { min-width: 340px; }
  .pb-today th, .pb-today td { padding: 6px 6px; }
  .pb-today th:nth-child(1) { width: 92px; }
  .pb-today th:nth-child(3) { width: 62px; }
  .pb-today th:nth-child(4) { width: 64px; }
  .pb-att { min-width: 520px; }
  .pb-att th.nm, .pb-att td.nm { width: 76px; padding: 6px 6px; }
  .pb-range b { font-size: 13px; }
  .pb-date { padding: 3px 5px; }
}

/* ---------- 主播身份 / 个人页 ---------- */

.me-entry {
  appearance: none; cursor: pointer;
  padding: 5px 12px; border-radius: 99px; font-size: 12.5px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
  white-space: nowrap;
}
.me-entry:hover { border-color: var(--ink-3); color: var(--ink); }
.me-entry.is-on { border-color: rgba(47, 111, 107, 0.4); color: var(--ok); background: rgba(47, 111, 107, 0.07); font-weight: 500; }
a.me-entry { display: inline-flex; align-items: center; }

.me-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(23, 23, 26, 0.34);
  display: grid; place-items: center; padding: 18px;
  backdrop-filter: blur(2px);
}
.me-panel {
  width: 100%; max-width: 400px; background: var(--surface);
  border-radius: 10px; box-shadow: 0 18px 50px -20px rgba(23, 23, 26, 0.55);
  padding: 16px 18px 18px;
}
.me-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.me-head b { font-size: 14.5px; }
.me-x { appearance: none; border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 0 2px; }
.me-x:hover { color: var(--ink); }
.me-body { font-size: 13px; color: var(--ink-2); }
.me-hint { margin: 0 0 12px; font-size: 12.5px; line-height: 1.65; color: var(--ink-3); }
.me-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.me-field span { font-size: 12px; color: var(--ink-3); }
.me-field select, .me-field input {
  appearance: none; width: 100%; padding: 8px 10px; border-radius: 6px;
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 13.5px; color: var(--ink);
}
.me-field select:focus, .me-field input:focus { outline: 2px solid rgba(47, 111, 107, 0.22); outline-offset: 1px; border-color: var(--ok); }
.me-err { min-height: 18px; font-size: 12px; color: var(--danger); }
.me-ok { font-size: 14px; font-weight: 600; color: var(--ok); margin-bottom: 8px; }
.me-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.btn-solid, .btn-line {
  appearance: none; cursor: pointer; padding: 8px 14px; border-radius: 6px; font-size: 13px;
  border: 1px solid var(--ok); text-align: center;
}
.btn-solid { background: var(--ok); color: #fff; }
.btn-solid:hover { filter: brightness(1.06); }
.btn-line { background: transparent; color: var(--ok); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--ok); }
.me-cur { display: flex; align-items: center; gap: 7px; font-size: 14px; padding: 6px 0 2px; }
.me-cur .rdot { width: 9px; height: 9px; border-radius: 2px; }
.me-tag { font-size: 11px; color: var(--ok); border: 1px solid rgba(47, 111, 107, 0.35); border-radius: 99px; padding: 0 6px; }
.me-note { margin-top: 8px; font-size: 12.5px; color: var(--accent); }

.my-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.my-tile { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--bg-2); }
.my-tile .k { font-size: 11.5px; color: var(--ink-3); }
.my-tile .v { font-size: 19px; font-weight: 600; margin-top: 2px; }
.my-tile .s { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

.my-week { min-width: 520px; }
.my-week th { padding: 7px 8px; text-align: left; }
.my-week td { padding: 7px 8px; vertical-align: top; }
.my-week tr.is-today td { background: rgba(47, 111, 107, 0.05); }
.my-week .wk { color: var(--ink-3); font-size: 11px; }
.my-week .muted { color: var(--ink-3); }
.my-week .is-rest { color: var(--danger); }
.my-live { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; font-variant-numeric: tabular-nums; }
.my-live i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }

.my-notices { list-style: none; margin: 0; padding: 0; }
.my-notice { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.my-notice:last-child { border-bottom: 0; }
.my-notice .n-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.my-notice .n-top b { font-size: 13px; font-weight: 500; }
.my-notice .n-time { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.my-notice .n-body { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.my-notice.is-unread .n-top b::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 99px;
  background: var(--accent); margin-right: 6px; vertical-align: 1.5px;
}

@media (max-width: 560px) {
  .my-week { min-width: 0; }
  .my-week th, .my-week td { padding: 6px 6px; }
  .my-week th:nth-child(1), .my-week td:nth-child(1) { width: 78px; }
  .my-week th:nth-child(2), .my-week td:nth-child(2) { width: 82px; }
  .my-live { display: block; margin: 0 0 4px; font-size: 12px; }
  .my-live:last-child { margin-bottom: 0; }
  .pb-today th, .pb-today td { padding: 6px 6px; }
}


/* ---------- 双主播 / 跨天 ---------- */
.slot-anchor.is-on { cursor: pointer; }
.slot-anchor.is-on::after { content: '已选'; margin-left: 6px; font-size: 10px; color: var(--accent); font-weight: 400; }
.slot-pick-tip { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); min-height: 18px; }
.slot-tag { margin-left: 8px; padding: 1px 6px; border-radius: 3px; font-size: 11px; background: var(--accent-soft, rgba(47,111,107,.1)); color: var(--accent); }
.mini-tag {
  display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 3px; font-size: 11px;
  line-height: 1.55; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line);
  vertical-align: 1px; white-space: nowrap; font-weight: 400;
}
.matrix-cell.is-dual { background-image: linear-gradient(180deg, transparent 88%, rgba(47, 111, 107, 0.16) 88%); }
.week-matrix.is-dense .matrix-cell.is-dual .hb { font-size: 9.5px; padding: 0 4px; }
.pb-week td.is-dual { box-shadow: inset 0 -2px 0 rgba(47, 111, 107, 0.18); }
tr.is-carry td { background: rgba(0, 0, 0, 0.018); color: var(--ink-2); }
.pb-today tr.is-carry td:first-child { font-size: 12px; }
@media (max-width: 560px) {
  .mini-tag { margin-left: 4px; font-size: 10px; }
  .slot-anchor.is-on::after { content: ''; }
}

/* ---------- 出勤表选区 / 月汇总 / 周标签 ---------- */
.week-att { user-select: none; }
.att-cell.is-sel { background: rgba(47, 111, 107, 0.12); box-shadow: inset 0 0 0 2px var(--accent); }
.att-cell.is-sel.is-rest { background: rgba(179, 38, 30, 0.16); }
.att-bar { margin: 0 0 8px; }
.att-bar .cb-hint { max-width: 46%; text-align: right; }

.nav-rel {
  font-size: 11px; color: var(--accent); background: rgba(47, 111, 107, 0.1);
  border-radius: 2px; padding: 1px 6px; margin: 0 2px;
}
.nav-rel.is-on { color: #fff; background: var(--accent); }

.month-sum {
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  padding: 10px 12px; margin-bottom: 12px;
}
.month-sum .ms-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.month-sum .ms-item { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.month-sum .ms-item b { font-size: 15px; color: var(--ink); font-weight: 650; margin-right: 3px; }
.month-sum .ms-note { margin-left: auto; font-size: 11px; }
.month-sum .ms-people {
  display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--ink-2);
}
.month-sum .ms-p { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.month-sum .ms-p .sw { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
@media (max-width: 560px) {
  .month-sum .ms-row { gap: 4px 12px; }
  .month-sum .ms-note { margin-left: 0; width: 100%; }
}
@media (max-width: 720px) {
  #monthGrid { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mg-head-row, .mg-grid { min-width: 700px; }
  .month-sum { min-width: 0; }
  .month-sum .ms-row { gap: 4px 14px; }
  .month-sum .ms-note { margin-left: 0; }
  .att-bar .cb-hint { display: none; }
  .att-bar { gap: 4px; padding: 6px 8px; }
  .att-bar .btn-sm { padding: 4px 8px; }
  .att-bar .cb-info { width: 100%; }
}

/* ---------- 小时数据：累计 / 单小时 ---------- */
.rec-note { font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; }
.rec-hint { font-size: 12px; color: var(--ink-3); line-height: 1.7; margin: -2px 0 12px; }
.rec-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rec-tb { min-width: 860px; }
.rec-tb th, .rec-tb td { white-space: nowrap; }
.rec-tb tfoot td { border-top: 1px solid var(--line-strong); border-bottom: 0; font-weight: 600; background: var(--bg-2); }
.rec-tb tr.is-cut td { background: rgba(183, 134, 43, 0.05); }
.rec-tb .rec-diff { color: var(--ok); }
.rec-tb .rec-neg { color: var(--danger); font-size: 11.5px; }
.rec-tag {
  display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 11px;
  color: var(--warn); border: 1px solid rgba(183, 134, 43, 0.32); background: rgba(183, 134, 43, 0.08);
}
.rec-note-cell { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }
.rec-ops { white-space: nowrap; }
.rec-ops .btn-sm + .btn-sm { margin-left: 4px; }

@media (max-width: 720px) {
  .rec-tb { min-width: 860px; }
  .rec-note { width: 100%; }
  #recSeg { flex: 1; }
  #recSeg button { flex: 1; padding: 7px 10px; }
}
.rec-neg-soft { color: var(--ink-3); font-size: 11.5px; }

/* ---------- 直播数据页：筛选、汇总、告警 ---------- */
.sel-in { border: 1px solid var(--line-strong); border-radius: 4px; padding: 5px 9px; background: #fff; font-size: 12.5px; }
.rec-custom { display: inline-flex; align-items: center; gap: 6px; }
.rec-muted { color: var(--ink-3); }
.rec-sum {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px;
  padding: 4px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.rec-sum .rs-k { font-size: 12.5px; color: var(--ink-2); font-weight: 600; letter-spacing: 0.02em; }
.rec-sum .rs-i { font-size: 12px; color: var(--ink-3); }
.rec-sum .rs-i b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; margin-left: 2px; }
.rec-anchor-tb { min-width: 0; margin-bottom: 2px; }
.rec-modal-tip { font-size: 12px; color: var(--ink-3); margin: 4px 0 10px; }
.alert-body p { font-size: 13px; line-height: 1.75; color: var(--ink-2); margin: 8px 0 12px; }
.alert-body .alert-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.alert-body .alert-meta { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  #recRangeSeg { flex: 1; }
  #recRangeSeg button { flex: 1; padding: 7px 6px; font-size: 12px; }
  .rec-custom { flex-wrap: wrap; }
}
#recAnchorSum { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rec-anchor-tb { width: auto; min-width: 560px; margin-bottom: 2px; }
.rec-tb td:nth-child(2), .rec-tb th:nth-child(2) { }
.seg button { white-space: nowrap; }
/* 维度一/维度二：区分说明行、截图主按钮、主播段内小字 */
.rec-dim-head { font-size: 12.5px; color: var(--ink-2); padding: 2px 2px 10px; line-height: 1.7; }
.rec-dim-head b { color: var(--ink); font-weight: 600; }
.rec-sub { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.btn-shot { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-shot:hover { opacity: .9; }
.rec-anchor-head { font-size: 12.5px; color: var(--ink-2); padding: 4px 2px 8px; }
.panel-sum { padding: 13px 20px; }
.panel-sum .rec-sum { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }

/* 直播数据：场次列（时长 + 开播时间两行） */
.rec-sess{min-width:96px;line-height:1.35;}
.rec-sess .rec-sub{font-size:11px;color:var(--ink-3);font-weight:400;}


.rec-time{min-width:78px;line-height:1.35;}
.rec-time .rec-sub{font-size:11px;color:var(--ink-3);font-weight:400;}


/* ---------- 采集设置：浏览器隔离 / 取数页面 ---------- */
.browser-list { display: flex; flex-direction: column; gap: 8px; }
.browser-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2);
}
.browser-row .b-name { font-weight: 600; font-size: 13px; min-width: 140px; }
.browser-row .b-port { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.browser-row .b-port input { width: 84px; padding: 4px 6px; font-size: 12px; }
.browser-row .b-prof { font-size: 11.5px; color: var(--ink-3); font-family: ui-monospace, Menlo, Consolas, monospace; }

.target-list { display: flex; flex-direction: column; gap: 6px; }
.target-row { display: grid; grid-template-columns: 26px 150px 1fr 110px; gap: 8px; align-items: center; }
.target-row input[type="text"], .target-row input:not([type]) {
  width: 100%; padding: 6px 8px; font-size: 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff;
}
.target-row .t-anchor { font-family: ui-monospace, Menlo, Consolas, monospace; }
.target-row.off { opacity: .5; }
.shot-list { display: flex; gap: 8px; flex-wrap: wrap; }
.shot-item { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; text-decoration: none; color: var(--ink); background: #fff; }
.shot-item:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) {
  .target-row { grid-template-columns: 24px 1fr; grid-auto-rows: min-content; }
  .target-row .t-url, .target-row .t-anchor { grid-column: 2; }
  .browser-row .b-name { min-width: 0; }
}
