:root {
  --navy: #1d2850;
  --navy-2: #2a3768;
  --cream: #fbf5e9;
  --paper: #ffffff;
  --ink: #3a2a1e;
  --ink-soft: #7a6553;
  --line: #ead9bd;
  --gold: #f1b938;
  --gold-deep: #c98a17;
  --brown: #6b4423;
  --green: #2f8f5b;
  --pink: #e8769a;
  --blue: #4a64b8;
  --cyan: #46e6e0;
  --danger: #d9534f;
  --radius: 20px;
  --shadow: 0 4px 0 #e3cfa9, 0 10px 24px rgba(107, 68, 35, .08);
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(#efe1c6 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  box-shadow: 0 2px 0 var(--gold-deep), 0 6px 18px rgba(0, 0, 0, .18);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { height: 48px; width: auto; filter: drop-shadow(0 0 6px rgba(70, 230, 224, .45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 18px; letter-spacing: 2px; }
.brand-text small { font-size: 11px; color: var(--cyan); letter-spacing: 1px; opacity: .9; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: #dfe5ff; text-decoration: none; font-size: 14px; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px; transition: background .15s, color .15s;
}
.nav a:hover, .nav a.on { background: var(--gold); color: var(--navy); font-weight: 700; }

/* ---------- 头图 ---------- */
.hero { max-width: 1200px; margin: 20px auto 0; padding: 0 16px; }
.hero-frame {
  position: relative; border-radius: 28px; overflow: hidden;
  border: 4px solid var(--brown); box-shadow: 0 6px 0 var(--brown), 0 18px 40px rgba(29, 40, 80, .25);
  background: var(--navy);
}
.hero-frame img { width: 100%; aspect-ratio: 1672 / 941; object-fit: cover; }
.hero-strip {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin: 18px auto 0; max-width: 900px;
}
.hero-chip {
  display: flex; align-items: center; gap: 8px; background: var(--paper); border: 2px solid var(--line);
  border-radius: 999px; padding: 4px 14px 4px 4px; font-size: 14px; box-shadow: 0 3px 0 var(--line);
}
.hero-chip img { width: 30px; height: 30px; border-radius: 50%; }
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- 版块 ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 8px 16px 40px; }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.section-head .badge { width: 104px; height: 104px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 4px 6px rgba(107, 68, 35, .18)); }
.section-head h2 {
  margin: 0; font-size: 28px; font-weight: 900; color: var(--brown); letter-spacing: 2px;
  text-shadow: 0 2px 0 #fff;
}
.section-head p { margin: 2px 0 0; color: var(--ink-soft); font-size: 14px; }
.section-head .num {
  display: inline-grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0;
  background: var(--gold); color: var(--navy); font-weight: 900; font-size: 22px;
  border-radius: 16px; border: 3px solid var(--brown); box-shadow: 0 3px 0 var(--brown); transform: rotate(-6deg);
}

.card {
  background: var(--paper); border-radius: var(--radius); border: 2px solid var(--line);
  box-shadow: var(--shadow); padding: 20px;
}
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.empty { color: var(--ink-soft); font-size: 14px; padding: 18px; text-align: center; border: 2px dashed var(--line); border-radius: 14px; background: #fffdf8; }

/* 运营卡 */
.op-card { position: relative; text-align: center; padding-top: 24px; overflow: hidden; }
.op-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 92px; background: var(--op);
  opacity: .14;
}
.op-card .avatar {
  position: relative; width: 140px; height: 140px; margin: 0 auto; border-radius: 50%;
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--op), 0 10px 18px rgba(0, 0, 0, .12);
}
.op-card h3 { margin: 16px 0 2px; font-size: 22px; font-weight: 900; }
.tag {
  display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--op, var(--gold)) 16%, #fff); color: var(--op, var(--brown)); font-weight: 700;
}
.op-card .intro { color: var(--ink-soft); font-size: 14px; margin: 10px 0 0; min-height: 1em; }
.duties { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.duties li {
  font-size: 13px; padding: 4px 12px; border-radius: 10px; background: #fff8e8; border: 1.5px solid var(--line);
}
.op-card .contact { margin-top: 14px; font-size: 13px; color: var(--ink-soft); word-break: break-all; }
.op-on-duty {
  position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 700; color: #fff;
  background: var(--op); padding: 2px 10px; border-radius: 999px;
}

/* 分组卡 */
.group-card { display: flex; gap: 18px; align-items: flex-start; }
.group-card .gimg { width: 150px; flex-shrink: 0; }
.group-card h3 { margin: 4px 0 4px; font-size: 22px; font-weight: 900; color: var(--brown); }
.group-card .desc { color: var(--ink-soft); font-size: 14px; margin: 0 0 12px; }
.members { display: flex; flex-wrap: wrap; gap: 8px; }
.member {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; padding: 4px 10px 4px 6px;
  border-radius: 12px; background: #fffaf0; border: 1.5px solid var(--line);
}
.member .mini { width: 22px; height: 22px; border-radius: 50%; }
.member small { color: var(--ink-soft); }

/* 值班表 */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 2px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
table.duty { width: 100%; border-collapse: collapse; min-width: 560px; }
table.duty th, table.duty td { padding: 12px 10px; text-align: center; border-bottom: 1.5px solid #f3e8d3; }
table.duty thead th { background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; }
table.duty tbody th { font-weight: 800; color: var(--brown); background: #fff8e8; width: 90px; }
table.duty tr.today th { background: var(--gold); color: var(--navy); }
table.duty tr.today td { background: #fff6dc; }
table.duty tr:last-child th, table.duty tr:last-child td { border-bottom: 0; }
.op-chip {
  display: inline-flex; align-items: center; gap: 6px; margin: 2px; padding: 3px 10px 3px 3px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--op); background: color-mix(in srgb, var(--op) 12%, #fff);
  border: 1.5px solid color-mix(in srgb, var(--op) 40%, #fff);
}
.op-chip img { width: 22px; height: 22px; border-radius: 50%; }
.muted { color: #c5b39a; }
.duty-note { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }

/* 复盘安排 */
.review-list { display: grid; gap: 12px; }
.review-item {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center;
  background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 12px 16px; box-shadow: 0 3px 0 var(--line);
}
.review-item.done { opacity: .6; }
.review-date { text-align: center; background: var(--navy); color: #fff; border-radius: 12px; padding: 6px 4px; line-height: 1.2; }
.review-date b { display: block; font-size: 20px; color: var(--gold); }
.review-date small { font-size: 12px; }
.review-main h4 { margin: 0; font-size: 16px; }
.review-main p { margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); }
.status {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  background: #eef1fb; color: var(--blue);
}
.status.s-done { background: #e6f4ec; color: var(--green); }
.status.s-wait { background: #fff2d6; color: var(--gold-deep); }
.status.s-cancel { background: #f4e6e6; color: var(--danger); }

/* 表单 */
.form-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.form-art { position: sticky; top: 90px; text-align: center; }
.form-art img { width: 100%; filter: drop-shadow(0 6px 10px rgba(107, 68, 35, .18)); }
.form-art p { font-size: 14px; color: var(--ink-soft); margin: 10px 0 0; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  border: 2px solid var(--line); background: #fffaf0; padding: 7px 18px; border-radius: 999px; cursor: pointer;
  font-weight: 700; color: var(--ink-soft);
}
.tab.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--brown); }
.field label .req { color: var(--danger); margin-left: 2px; }
.field label .hint { font-weight: 400; color: var(--ink-soft); font-size: 12px; margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fffdf8;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(241, 185, 56, .25);
}
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 3px solid var(--brown); background: var(--gold); color: var(--navy); font-weight: 900; font-size: 16px;
  padding: 9px 26px; border-radius: 14px; cursor: pointer; box-shadow: 0 4px 0 var(--brown);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--brown); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: #fff; }
.btn.navy { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 4px 0 #0e1530; }
.btn.small { font-size: 13px; padding: 4px 12px; border-width: 2px; border-radius: 10px; box-shadow: 0 2px 0 var(--brown); }
.btn.danger { background: #fff; color: var(--danger); border-color: var(--danger); box-shadow: 0 2px 0 var(--danger); }
.form-msg { font-size: 14px; }
.form-msg.err { color: var(--danger); }
.success-box {
  grid-column: 1 / -1; background: #effaf3; border: 2px solid #9fd6b5; border-radius: 14px; padding: 14px 16px;
}
.success-box b.code { font-size: 22px; letter-spacing: 3px; color: var(--green); font-family: ui-monospace, Consolas, monospace; user-select: all; }

/* 公告 */
.notice-list { display: grid; gap: 12px; }
.notice {
  background: var(--paper); border: 2px solid var(--line); border-radius: 16px; box-shadow: 0 3px 0 var(--line); overflow: hidden;
}
.notice summary {
  list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; gap: 10px;
}
.notice summary::-webkit-details-marker { display: none; }
.notice summary h4 { margin: 0; font-size: 16px; flex: 1; }
.notice summary time { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.notice .ntype { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 8px; background: #eef1fb; color: var(--blue); white-space: nowrap; }
.notice .ntype.train { background: #e6f4ec; color: var(--green); }
.notice .pin { color: var(--gold-deep); font-weight: 900; font-size: 13px; }
.notice .body { padding: 0 16px 16px; white-space: pre-wrap; word-break: break-word; font-size: 15px; border-top: 1.5px dashed var(--line); padding-top: 12px; margin: 0 16px; padding-left: 0; padding-right: 0; }

/* 查询 */
.query { display: flex; gap: 10px; flex-wrap: wrap; }
.query input { flex: 1; min-width: 180px; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; text-transform: uppercase; letter-spacing: 2px; font-family: ui-monospace, Consolas, monospace; }
.query-result { margin-top: 14px; }

footer {
  margin-top: 56px; background: var(--navy); color: #c9d1f0; text-align: center; padding: 26px 16px; font-size: 13px;
}
footer img { height: 56px; margin: 0 auto 8px; filter: drop-shadow(0 0 6px rgba(70, 230, 224, .45)); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 14px; z-index: 100;
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .form-art { position: static; max-width: 200px; margin: 0 auto; }
  .op-card { display: grid; grid-template-columns: 110px 1fr; text-align: left; gap: 0 16px; padding-top: 20px; }
  .op-card .avatar { width: 100px; height: 100px; grid-row: span 5; }
  .op-card h3 { margin-top: 0; }
  .duties { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .brand-text small { display: none; }
  .brand img { height: 40px; }
  .topbar-inner { gap: 10px; }
  .section-head .badge { width: 76px; height: 76px; }
  .section-head h2 { font-size: 22px; }
  .form { grid-template-columns: 1fr; }
  .group-card { flex-direction: column; align-items: center; text-align: center; }
  .group-card .members { justify-content: center; }
  .review-item { grid-template-columns: 72px 1fr; }
  .review-item .status { grid-column: 2; justify-self: start; }
  .op-card { grid-template-columns: 1fr; text-align: center; }
  .op-card .avatar { grid-row: auto; margin-bottom: 8px; }
  .duties { justify-content: center; }
}

/* ---------- 右上角登录 ---------- */
.auth { position: relative; flex-shrink: 0; }
.auth-btn {
  border: 2px solid var(--gold); background: transparent; color: var(--gold); font-weight: 800; font-size: 14px;
  padding: 6px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.auth-btn:hover, .auth.open .auth-btn { background: var(--gold); color: var(--navy); }
.auth-btn.on { background: var(--gold); color: var(--navy); }
.auth-btn small { font-size: 11px; background: var(--navy); color: var(--gold); padding: 0 6px; border-radius: 6px; }
.auth-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; background: #fff;
  border: 2px solid var(--line); border-radius: 14px; box-shadow: 0 10px 24px rgba(0, 0, 0, .15); padding: 6px; z-index: 60;
}
.auth.open .auth-menu { display: block; }
.auth-menu a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; }
.auth-menu a:hover { background: #fff6dc; }
.auth-menu a[href="#logout"] { color: var(--danger); }

.banner {
  max-width: 1200px; margin: 14px auto 0; padding: 10px 16px; border-radius: 14px; background: #fff2d6;
  border: 2px solid var(--gold); color: var(--brown); font-size: 14px;
}
.lock-card { text-align: center; padding: 34px 20px; }
.lock-card h3 { margin: 0 0 6px; color: var(--brown); }
.lock-card p { margin: 0 0 16px; color: var(--ink-soft); font-size: 14px; }
.me-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; font-size: 14px; color: var(--ink-soft); }
.me-line b { color: var(--ink); font-size: 16px; }

/* 企划 */
.project { display: grid; grid-template-columns: 260px 1fr 1fr; gap: 22px; align-items: start; }
.project .pimg { width: 100%; filter: drop-shadow(0 6px 10px rgba(29, 40, 80, .25)); }
.project h3 { margin: 0 0 10px; font-size: 18px; color: var(--brown); display: flex; align-items: center; gap: 8px; }
.project .pdesc { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); white-space: pre-wrap; }
.roster { display: flex; flex-wrap: wrap; gap: 8px; }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank li {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px;
  border-radius: 14px; background: #fffaf0; border: 2px solid var(--line);
}
.rank .pos { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; font-weight: 900; background: #f3ead8; color: var(--brown); }
.rank li:nth-child(1) { background: linear-gradient(90deg, #fff1c2, #fffaf0); border-color: var(--gold); }
.rank li:nth-child(1) .pos { background: var(--gold); color: var(--navy); }
.rank li:nth-child(2) .pos { background: #dfe4ee; color: #4d5670; }
.rank li:nth-child(3) .pos { background: #f1d3b5; color: #7a4a22; }
.rank .wins { font-weight: 900; color: var(--danger); }
.rank .wins small { font-weight: 400; color: var(--ink-soft); margin-left: 2px; }
.extra-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; justify-content: center; }
.extra-links a { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 2px solid var(--line); text-decoration: none; color: var(--blue); font-weight: 700; }
@media (max-width: 960px) {
  .project { grid-template-columns: 1fr; }
  .project .pimg { max-width: 220px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .auth-btn { padding: 5px 10px; font-size: 13px; }
}
#rest-list:empty { display: none; }
.field input[type=checkbox] { width: auto; padding: 0; }
.rest-box label { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- 主播名片（鼠标放到名字上弹出） ---------- */
.scard-host { position: relative; cursor: default; text-decoration: none; color: inherit; }
a.scard-host { cursor: pointer; }
a.scard-host:hover { border-color: var(--gold); }
.scard-host .mini { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.scard {
  display: none; position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  width: 230px; background: #fff; border: 2px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 14px 30px rgba(29, 40, 80, .22); z-index: 40; text-align: center; pointer-events: none;
}
/* 名片由 common.js 复制到 body 上的浮层里显示 */
.scard.scard-float { position: fixed; left: 0; top: 0; bottom: auto; transform: none; z-index: 200; }
.preview-wrap .scard-host .scard { display: block; }
.scard .scard-bg { display: block; height: 110px; background: linear-gradient(135deg, #2a3768, #6b7fd0 60%, #f1b938); background-size: cover; background-position: center; }
.scard .scard-av {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: -32px auto 0; display: block;
  border: 4px solid #fff; background: #f3ead8; box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}
.scard .scard-av.ph { display: grid; place-items: center; font-weight: 900; font-size: 24px; color: var(--brown); }
.scard b { display: block; margin: 6px 12px 0; font-size: 16px; }
.scard p { margin: 4px 14px 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; white-space: normal; }
.scard small { display: block; margin: 8px 0 12px; font-size: 12px; color: var(--blue); font-weight: 700; }
.scard small.none { color: #c5b39a; font-weight: 400; }

/* ---------- 复盘时段 ---------- */
.slot-days { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.slot-days button { border: 2px solid var(--line); background: #fffaf0; border-radius: 12px; padding: 4px 10px; cursor: pointer; font-size: 13px; line-height: 1.3; }
.slot-days button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.slot {
  border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fffdf8; cursor: pointer; text-align: left;
  transition: border-color .15s, transform .1s;
}
.slot:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-1px); }
.slot.on { border-color: var(--navy); background: #eef1fb; box-shadow: 0 0 0 3px rgba(42, 55, 104, .15); }
.slot:disabled { cursor: not-allowed; opacity: .55; }
.slot b { display: block; font-size: 16px; }
.slot .meta { font-size: 12px; color: var(--ink-soft); display: block; margin-top: 2px; }
.slot .cap { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #e6f4ec; color: var(--green); }
.slot .cap.mid { background: #fff2d6; color: var(--gold-deep); }
.slot .cap.full { background: #f4e6e6; color: var(--danger); }
.slot.urgent { border-style: dashed; border-color: #f0c770; }
.slot b .urgent-tag, .slot .urgent-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 800; color: #c0612b; background: #fff2d6; border-radius: 6px; padding: 0 6px; vertical-align: 2px; }
.urgent-box { background: #fff7e6; border: 2px dashed #f0c770; border-radius: 14px; padding: 10px 12px; }
.urgent-why { background: #fff7e6; border-radius: 10px; padding: 6px 10px; font-size: 14px; }
.cal-pending { display: block; opacity: .75; }
.cal-pending .member { border-style: dashed !important; }
.slot-group-title { grid-column: 1 / -1; font-weight: 800; color: var(--brown); font-size: 14px; margin-top: 4px; }

/* 首页预约一览 */
.book-day { background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 12px 16px; box-shadow: 0 3px 0 var(--line); }
.book-day h4 { margin: 0 0 8px; color: var(--brown); }
.book-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1.5px dashed #f3e8d3; font-size: 14px; }
.book-row:first-of-type { border-top: 0; }
.book-row .t { font-weight: 800; font-family: ui-monospace, Consolas, monospace; }
.book-row .cnt { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }

/* 站内信 */
.msg { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.msg.unread { border-color: var(--gold); background: #fffaf0; }
.msg-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); }
.msg-head b { color: var(--ink); font-size: 15px; }
.msg-head time { margin-left: auto; }
.msg-body { margin-top: 6px; white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.dot-new { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); display: inline-block; }
.auth-btn .count, .tab .count { background: var(--danger); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 6px; margin-left: 4px; }
.slot .cap.off { background: #efe9df; color: #a8977f; }
.slot .cap.mine { background: #eef1fb; color: var(--blue); }

/* ---------- 主播分组：一行两个、区域内滚动 ---------- */
.members-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  max-height: 292px; overflow-y: auto; padding: 2px 6px 4px 2px; align-content: start;
  scrollbar-width: thin; scrollbar-color: var(--gold) #f3ead8; overscroll-behavior: contain;
}
.members-grid::-webkit-scrollbar { width: 8px; }
.members-grid::-webkit-scrollbar-track { background: #f3ead8; border-radius: 8px; }
.members-grid::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 8px; }
.member.big {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  font-size: 17px; font-weight: 800; padding: 7px 12px 7px 7px; border-radius: 16px; background: #fffaf0;
}
.member.big .mini { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.member.big .mini.ph { display: grid; place-items: center; background: #f3ead8; color: var(--brown); font-size: 18px; }
.member.big .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.members-more { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 640px) {
  .members-grid { text-align: left; width: 100%; }
  .member.big { font-size: 15px; }
  .member.big .mini { width: 36px; height: 36px; }
}

/* 分组卡：分组图缩小放标题旁，名单占满整张卡 */
.group-card { display: block; }
.group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.group-head .gimg { width: 96px; flex-shrink: 0; }
.group-head .desc { margin: 2px 0 0; }
@media (max-width: 640px) {
  .group-card { text-align: left; }
  .group-head .gimg { width: 72px; }
}

/* ---------- 复盘预约周日历 ---------- */
.cal-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-bar b { font-size: 16px; color: var(--brown); min-width: 110px; text-align: center; }
.cal-bar .btn:disabled { opacity: .4; cursor: default; }
.cal-total { font-size: 13px; color: var(--ink-soft); }
.cal-legend { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); }
.cal-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-left: 6px; }
.cal-legend .lg-full { background: #fbe3e3; border: 1.5px solid #e6a5a5; }
.cal-legend .lg-off { background: repeating-linear-gradient(45deg, #f4efe6, #f4efe6 4px, #ece4d6 4px, #ece4d6 8px); border: 1.5px solid var(--line); }
.cal-wrap { overflow-x: auto; border-radius: 18px; border: 2px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
table.cal { width: 100%; min-width: 820px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cal th, .cal td { border-bottom: 1.5px solid #f3e8d3; border-right: 1.5px solid #f3e8d3; }
.cal tr > *:last-child { border-right: 0; }
.cal thead th { background: var(--navy); color: #fff; padding: 8px 4px; font-weight: 400; line-height: 1.25; position: relative; }
.cal thead th small { display: block; font-size: 12px; opacity: .8; }
.cal thead th b { font-size: 16px; }
.cal thead th em { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: 10px; font-weight: 800; background: var(--gold); color: var(--navy); border-radius: 6px; padding: 0 5px; }
.cal thead th.is-today { background: var(--gold); color: var(--navy); }
.cal thead th.is-today em { background: var(--navy); color: var(--gold); }
.cal .cal-time { width: 104px; position: sticky; left: 0; z-index: 2; background: #fff8e8; color: var(--brown); font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 800; padding: 6px; }
.cal thead .cal-time { background: var(--navy); z-index: 3; }
.cal .cal-shift .cal-time { position: static; background: #f6ecd8; font-family: var(--font); font-size: 13px; text-align: left; padding: 5px 12px; letter-spacing: 1px; }
.cal-cell { vertical-align: top; padding: 5px; height: 58px; background: #fff; position: relative; }
.cal-cell.off { background: repeating-linear-gradient(45deg, #faf6ef, #faf6ef 6px, #f3ece0 6px, #f3ece0 12px); }
.cal-cell.full { background: #fdf0f0; }
.cal-cell.past { opacity: .45; }
/* 首页：一周复盘统计 */
.wk-stats { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 12px; margin: 10px 0 12px; }
.wk-stats.empty-week { display: block; color: var(--ink-soft); font-size: 14px; }
.wk-box { background: #fffdf8; border: 2px solid var(--line); border-radius: 16px; padding: 10px 14px; min-width: 0; }
.wk-box h4 { margin: 0 0 8px; color: var(--brown); font-size: 15px; }
.wk-box h4 small { font-weight: 400; color: var(--ink-soft); font-size: 12px; margin-left: 6px; }
.wk-op { display: grid; grid-template-columns: 26px auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 5px 0; border-top: 1.5px dashed #f3e8d3; }
.wk-op:first-of-type { border-top: 0; }
.wk-op img, .wk-op .wk-dot { width: 26px; height: 26px; border-radius: 50%; grid-row: span 2; }
.wk-op .wk-dot { background: var(--op); opacity: .5; }
.wk-op b { color: var(--op); }
.wk-num { justify-self: end; font-size: 20px; font-weight: 900; color: var(--op); grid-row: span 2; }
.wk-num small { font-size: 12px; font-weight: 700; }
.wk-sub { font-size: 12px; color: var(--ink-soft); grid-column: 2; }
.wk-names { display: flex; flex-wrap: wrap; gap: 6px; max-height: 150px; overflow-y: auto; }
.wk-name { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: #eef1fb; color: var(--navy); }
.wk-name b { color: var(--blue); }
.wk-name.all-done { background: #e6f4ec; color: var(--green); }
.wk-name.all-done b { color: var(--green); }
@media (max-width: 720px) { .wk-stats { grid-template-columns: 1fr; } }
.cal-done { display: block; position: relative; opacity: .45; filter: grayscale(1); }
.cal-done::after { content: '✓'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-weight: 900; font-size: 12px; color: #6b6b6b; }
.cal-off-tag { position: absolute; left: 4px; bottom: 3px; font-size: 10px; font-weight: 800; color: #b07a3a; background: #fff2d6; border-radius: 6px; padding: 0 5px; }
.cal-off { font-size: 11px; color: #bfae95; display: block; text-align: center; margin-top: 14px; }
.cal-names { display: flex; flex-direction: column; gap: 3px; padding-right: 26px; }
.cal-names .member { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 8px; background: #eef1fb; border-color: #d6ddf5; color: var(--navy); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.cal-names .member .mini { display: none; }
.cal-cnt { position: absolute; top: 4px; right: 4px; font-size: 10px; font-weight: 800; color: var(--ink-soft); }
.cal-cell.full .cal-cnt { color: var(--danger); }
@media (max-width: 640px) {
  .cal-legend { margin-left: 0; }
  .cal .cal-time { width: 84px; font-size: 11px; }
}

/* 日历里的名字框：用所约运营的颜色 */
.cal-names .member.opc {
  background: color-mix(in srgb, var(--op) 16%, #fff); border: 1.5px solid color-mix(in srgb, var(--op) 50%, #fff);
  color: color-mix(in srgb, var(--op) 75%, #1d2850); border-left: 4px solid var(--op);
}
.cal-legend { flex-wrap: wrap; }
.cal-legend .lg-op { background: color-mix(in srgb, var(--op) 25%, #fff); border: 1.5px solid var(--op); border-left-width: 4px; }

/* 日历里的加班标记 */
.cal-ot { position: absolute; left: 4px; bottom: 3px; font-size: 10px; font-weight: 800; color: var(--green); background: #e6f4ec; border-radius: 6px; padding: 0 5px; }
