/* ============================================================
   Anson Stage Assistant · Aurora Stage
   重新美化 2026 — 深空剧场主题
   ============================================================ */
:root {
  --ink: #132229; --muted: #5f7079; --faint: #8fa0a8;
  --line: #dce5e7; --line-strong: #c6d4d7; --paper: #eef3f4; --panel: #fff;
  --navy: #0b2230; --navy-2: #0e2c3c; --navy-3: #143a4d;
  --teal: #14a085; --teal-deep: #0c7a65;
  --orange: #f4703d; --orange-deep: #e05f2c; --amber: #e8a23b;
  --blue: #3c84b2; --red: #d9503c;
  --shadow-xs: 0 1px 2px rgba(12,34,44,.04);
  --shadow-sm: 0 1px 2px rgba(12,34,44,.05), 0 8px 22px rgba(12,34,44,.06);
  --shadow-md: 0 6px 16px rgba(12,34,44,.08), 0 22px 48px rgba(12,34,44,.10);
  --shadow-lg: 0 16px 34px rgba(7,26,36,.13), 0 40px 90px rgba(7,26,36,.20);
  --radius-xs: 8px; --radius-sm: 11px; --radius-md: 15px; --radius-lg: 22px; --radius-pill: 999px;
  --font-sans: "Segoe UI Variable","SF Pro Display",system-ui,-apple-system,"PingFang SC","HarmonyOS Sans SC","Microsoft YaHei",sans-serif;
  --font-mono: "Cascadia Code",ui-monospace,"SF Mono",Consolas,"JetBrains Mono","Microsoft YaHei",monospace;
  --sidebar-w: 272px;
  --ease: cubic-bezier(.22,.8,.3,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1100px 460px at 90% -8%, rgba(60,132,178,.09), transparent 62%),
    radial-gradient(900px 400px at -8% 110%, rgba(20,160,133,.07), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
::selection { color: #fff; background: rgba(20,160,133,.88); }
:focus-visible { outline: 3px solid rgba(244,112,61,.38); outline-offset: 2px; border-radius: 5px; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: rgba(66,94,104,.26); border: 3px solid transparent; border-radius: 999px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(66,94,104,.44); border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
button, a, input, select, textarea, summary {
  transition: background-color .18s var(--ease), color .18s var(--ease),
    border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease), opacity .18s var(--ease);
}
.print-checkin-meta { display: none; }
.print-checkin-table { display: none; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- 侧栏 ---------- */
.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  width: var(--sidebar-w); min-width: var(--sidebar-w);
  height: 100vh; position: sticky; top: 0; z-index: 30;
  display: flex; flex-direction: column;
  color: #dfe9ee;
  background:
    radial-gradient(460px 320px at 14% -4%, rgba(66,158,180,.22), transparent 62%),
    radial-gradient(560px 440px at 112% 112%, rgba(244,112,61,.08), transparent 60%),
    linear-gradient(178deg, #0d2a39 0%, #0a1f2c 46%, #071925 100%);
  border-right: 1px solid rgba(140,180,195,.14);
  box-shadow: 16px 0 50px rgba(6,22,30,.12);
}
.brand {
  min-height: 96px; padding: 0 22px;
  display: flex; align-items: center; gap: 14px;
  color: #fff; border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.brand::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(255,138,92,.5), transparent 70%);
}
.brand-mark {
  flex: 0 0 auto; width: 42px; height: 42px;
  display: grid; place-items: center;
  color: #8fd6ff;
  background: linear-gradient(145deg, rgba(62,140,190,.34), rgba(20,60,82,.40));
  border: 1px solid rgba(143,214,255,.34); border-radius: 13px;
  box-shadow: 0 8px 20px rgba(0,0,0,.30), inset 0 1px rgba(255,255,255,.12), 0 0 22px rgba(66,158,180,.16);
}
.brand-mark img { width: 38px; height: 38px; display: block; object-fit: contain; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.brand strong { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: .15em; line-height: 1.1; }
.brand strong span { color: #ff8a5c; }
.brand small { display: block; margin-top: 6px; color: #7e96a3; font-size: 9.5px; letter-spacing: .12em; }

.show-switcher {
  margin: 18px 16px 8px; padding: 14px 13px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.show-switcher:hover { background: rgba(255,255,255,.095); border-color: rgba(255,255,255,.19); }
.live-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #ff8a5c; box-shadow: 0 0 0 5px rgba(244,112,61,.14); animation: live-dot-pulse 2.4s var(--ease) infinite; }
@keyframes live-dot-pulse { 50% { box-shadow: 0 0 0 9px rgba(244,112,61,.05); } }
.show-switcher label { flex: 1; min-width: 0; display: block; position: relative; }
/* 自带下拉箭头（已移除确认按钮）：纯装饰，不拦截点击 */
.show-switcher label::after {
  content: "⌄";
  position: absolute;
  right: 1px;
  bottom: 0;
  color: #75909d;
  font-size: 13px;
  line-height: 1.2;
  pointer-events: none;
  transition: color .18s var(--ease);
}
.show-switcher:hover label::after { color: #a8c0ca; }
.show-switcher.locked label::after { display: none; }
.show-switcher small { display: block; margin-bottom: 4px; color: #6f8a97; font-size: 9.5px; letter-spacing: .05em; }
.show-switcher select {
  width: 100%; padding: 0 18px 0 0; color: #f4f8fa;
  background: transparent; border: 0; outline: 0;
  appearance: none; -webkit-appearance: none;
  font-size: 12.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.show-switcher select option { color: #132229; background: #fff; }
.show-switcher .chevron { padding: 6px 9px; color: #75909d; background: transparent; border: 1px solid transparent; border-radius: 9px; font-size: 13px; line-height: 1; transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease); }
.show-switcher .chevron:disabled { opacity: .4; cursor: default; }
.show-switcher .chevron.ready {
  color: #fff;
  background: linear-gradient(135deg, #ff8a5c, #e8602e);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(232, 96, 46, .35);
  animation: switch-ready-pulse 1.8s var(--ease) infinite;
}
@keyframes switch-ready-pulse { 50% { box-shadow: 0 4px 16px rgba(232, 96, 46, .5); } }
.show-switcher.locked { opacity: .75; }
.show-switcher.locked select, .show-switcher.locked .chevron { cursor: not-allowed; }

nav { flex: 1; overflow-y: auto; padding: 4px 12px 20px; scrollbar-width: thin; scrollbar-color: rgba(120,150,160,.4) transparent; }
.nav-group { margin-top: 20px; }
.nav-group p { margin: 0 12px 8px; color: #5f7b88; font-size: 9.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.nav-group a {
  position: relative; width: 100%; min-height: 43px; margin: 2px 0; padding: 0 13px;
  display: flex; align-items: center; gap: 12px;
  color: #a9bac2; border-radius: 12px; font-size: 13px; font-weight: 550; text-align: left;
}
.nav-group a::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 3px; height: 0;
  background: linear-gradient(180deg, #ff9a6e, var(--orange));
  border-radius: 0 3px 3px 0; transform: translateY(-50%);
  transition: height .22s var(--ease);
}
.nav-group a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-group a:hover::before { height: 18px; }
.nav-group a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(33,80,99,.97), rgba(22,58,74,.86));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 8px 22px rgba(0,0,0,.16);
}
.nav-group a.active::before { height: 26px; }
.nav-icon { flex: 0 0 auto; width: 19px; height: 19px; display: grid; place-items: center; color: #7d98a5; }
.nav-icon svg { width: 17px; height: 17px; display: block; }
.nav-group a:hover .nav-icon, .nav-group a.active .nav-icon { color: #ff9a6e; filter: drop-shadow(0 1px 3px rgba(244,112,61,.35)); }
.nav-group a b {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #ff7a45, #e8602e); color: #fff;
  font-size: 10px; font-weight: 800; box-shadow: 0 4px 10px rgba(232,96,46,.38);
}
.sidebar-foot {
  margin-top: auto; min-height: 80px; padding: 15px 18px;
  display: flex; align-items: center; gap: 11px;
  background: rgba(0,0,0,.18); border-top: 1px solid rgba(255,255,255,.07);
}
.avatar {
  flex: 0 0 auto; width: 39px; height: 39px; display: grid; place-items: center;
  background: linear-gradient(145deg, #f2ddc2, #c6ab88); color: #1d2f3a;
  border-radius: 50%; font-weight: 800;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.38), 0 4px 10px rgba(0,0,0,.25);
}
.sidebar-foot > div:nth-child(2) { flex: 1; min-width: 0; }
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot strong { font-size: 12.5px; }
.sidebar-foot small { margin-top: 3px; color: #6e8794; font-size: 10px; }
.sidebar-foot button { color: #6d8794; background: transparent; border: 0; }

/* ---------- 顶栏 ---------- */
.workspace { min-width: 0; flex: 1; }
.topbar {
  height: 76px; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(203,216,219,.82);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  box-shadow: 0 6px 24px rgba(16,40,50,.05);
}
.venue { min-width: 0; display: flex; align-items: baseline; gap: 13px; }
.venue strong { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.venue span { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search {
  width: 292px; height: 42px; display: flex; align-items: center; gap: 9px;
  padding: 0 6px 0 14px;
  background: rgba(240,245,245,.95);
  border: 1px solid #dce5e6; border-radius: 13px;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.search:focus-within { background: #fff; border-color: rgba(58,118,138,.55); box-shadow: 0 0 0 4px rgba(58,118,138,.10); }
.search > span { flex: 0 0 auto; display: grid; place-items: center; color: #7b8b93; }
.search > span svg { width: 15px; height: 15px; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 12px; }
.search input::placeholder { color: #9aa8ae; }
.search button {
  height: 30px; padding: 0 12px; color: #fff;
  background: linear-gradient(135deg, #16404f, #0d2c3b);
  border: 0; border-radius: 9px; font-size: 10.5px; font-weight: 700;
  box-shadow: 0 4px 10px rgba(13,44,59,.22);
}
.search button:hover { background: linear-gradient(135deg, #1b4d5f, #103445); }
.admin-button, .module-action, .announce-button, .module-title > button {
  height: 42px; padding: 0 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 12px; font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.admin-button, .module-action { color: #28556a; background: #edf5f6; border: 1px solid #d3e4e7; box-shadow: inset 0 1px rgba(255,255,255,.6); }
.admin-button:hover, .module-action:hover { color: #123e52; background: #e1eef0; border-color: #c3dadd; transform: translateY(-1px); }
.admin-button svg { width: 15px; height: 15px; }
.lang-toggle { height: 42px; min-width: 46px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; color: #28556a; background: #edf5f6; border: 1px solid #d3e4e7; border-radius: 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }
.lang-toggle:hover { color: #123e52; background: #e1eef0; border-color: #c3dadd; }
.announce-button, .module-title > button {
  color: #fff; background: linear-gradient(135deg, #143a49, #0a2432);
  border: 0; box-shadow: 0 8px 18px rgba(9,37,50,.20), inset 0 1px rgba(255,255,255,.08);
}
.announce-button:hover, .module-title > button:hover {
  background: linear-gradient(135deg, #184555, #0e2e3d);
  box-shadow: 0 10px 22px rgba(9,37,50,.26), inset 0 1px rgba(255,255,255,.08);
  transform: translateY(-1px);
}
.announce-button span, .module-title > button span { color: #ff9264; font-size: 14px; font-weight: 800; line-height: 1; }
.guest-badge { padding: 7px 12px; color: #67787f; background: rgba(232,238,238,.92); border: 1px solid #dde6e6; border-radius: var(--radius-pill); font-size: 10.5px; font-weight: 650; }
.logout-form button { height: 42px; padding: 0 10px; color: #7a878d; background: transparent; border: 0; font-size: 11px; font-weight: 600; }
.logout-form button:hover { color: var(--red); }

/* ---------- Hero · 节目单总控台 ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 42px 42px 34px; color: #fff;
  background:
    radial-gradient(680px 380px at 84% -12%, rgba(64,168,188,.30), transparent 62%),
    radial-gradient(460px 320px at -8% 122%, rgba(244,112,61,.14), transparent 55%),
    linear-gradient(120deg, rgba(255,255,255,.03) 25%, transparent 25%) 0 0 / 90px 90px,
    linear-gradient(152deg, #0b2230 0%, #103541 62%, #175060 100%);
  box-shadow: inset 0 -1px rgba(255,255,255,.05);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.16)); pointer-events: none; }
.hero::after {
  content: ""; position: absolute; width: 320px; height: 320px;
  right: -140px; bottom: -240px;
  border: 1px solid rgba(255,255,255,.10); border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255,255,255,.022), 0 0 0 96px rgba(255,255,255,.014);
  pointer-events: none;
}
.hero-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.eyebrow, .module-title p, .modal-head p {
  margin: 0 0 7px; color: #ff8a5c;
  font-size: 10px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(244,112,61,.30);
}
.hero h1 { margin: 0; font-size: clamp(31px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; text-shadow: 0 4px 22px rgba(0,0,0,.30); }
.hero-head > div > p:last-child { margin: 10px 0 0; color: #93aab4; font-size: 12px; }
.show-clock { display: grid; grid-template-columns: auto auto; align-items: end; column-gap: 15px; text-align: right; }
.show-clock small { grid-column: 1; color: #76909c; font-size: 10px; letter-spacing: .06em; }
.show-clock strong { grid-column: 1; font: 700 31px/1.1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .01em; text-shadow: 0 0 24px rgba(120,200,220,.25); }
.show-clock span {
  grid-column: 2; grid-row: 1 / 3; align-self: center;
  padding: 8px 14px; color: #7fe0c0;
  background: rgba(20,160,133,.16);
  border: 1px solid rgba(60,200,160,.36); border-radius: var(--radius-pill);
  font-size: 10.5px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 0 18px rgba(20,160,133,.14);
}
.show-clock i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: #41cba1; border-radius: 50%; box-shadow: 0 0 0 4px rgba(65,203,161,.20); animation: live-dot-pulse 2.4s var(--ease) infinite; }
.show-clock span.paused { color: #ffc3a6; background: rgba(244,112,61,.16); border-color: rgba(244,112,61,.42); box-shadow: 0 0 18px rgba(244,112,61,.16); }
.show-clock span.paused i { background: #ff8a5c; box-shadow: 0 0 0 4px rgba(244,112,61,.20); }

.live-strip {
  position: relative; z-index: 1; min-height: 118px; margin-top: 32px;
  display: grid;
  grid-template-columns: 112px minmax(200px, 1.6fr) minmax(180px, 1fr) minmax(190px, 1.2fr) 112px;
  align-items: stretch;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 48px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.on-air { display: flex; align-items: center; justify-content: center; color: #ff9a6e; background: rgba(244,112,61,.09); border-right: 1px solid rgba(255,255,255,.09); font: 800 11px var(--font-mono); letter-spacing: .1em; }
.on-air i { width: 8px; height: 8px; margin-right: 8px; background: #ff7a45; border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,122,69,.16); animation: on-air-pulse 1.6s var(--ease) infinite; }
@keyframes on-air-pulse { 50% { opacity: .42; box-shadow: 0 0 0 10px rgba(255,122,69,.05); } }
.now-info, .next-info, .countdown { padding: 23px 25px; border-right: 1px solid rgba(255,255,255,.09); min-width: 0; }
.live-strip small { display: block; margin-bottom: 9px; color: #7f98a4; font: 800 9.5px var(--font-mono); letter-spacing: .13em; }
.now-info strong, .next-info strong { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.now-info span, .next-info span { color: #8ba3ad; font-size: 11px; }
.live-performers { margin-top: 7px; display: flex !important; align-items: center; gap: 6px; color: #a9c3cc; font-size: 10.5px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-performers svg { flex: 0 0 auto; width: 12px; height: 12px; opacity: .85; }
.countdown strong { display: block; color: #ffa37c; font: 700 28px/1.05 var(--font-mono); font-variant-numeric: tabular-nums; text-shadow: 0 0 26px rgba(255,138,92,.35); }
.countdown > div { height: 4px; margin-top: 13px; background: rgba(255,255,255,.14); border-radius: 99px; overflow: hidden; }
.countdown > div span { display: block; height: 100%; background: linear-gradient(90deg, #ff8a5c, #ffb37f); border-radius: 99px; }
.cue-link { display: flex; align-items: center; justify-content: center; gap: 7px; color: #c3d2d8; font-size: 10.5px; font-weight: 700; }
.cue-link span { color: #ff9a6e; font-size: 14px; transition: transform .18s var(--ease); }
.cue-link:hover { color: #fff; }
.cue-link:hover span { transform: translateX(3px); }

.live-control-actions { position: relative; z-index: 2; margin-top: 16px; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.live-control-actions form { margin: 0; }
.pause-control, .insert-control > summary {
  min-height: 38px; padding: 0 15px;
  display: inline-flex; align-items: center;
  color: #ffd9c8; background: rgba(244,112,61,.14);
  border: 1px solid rgba(244,112,61,.42); border-radius: 12px;
  font-size: 10.5px; font-weight: 800; cursor: pointer; list-style: none;
  box-shadow: inset 0 1px rgba(255,255,255,.06);
}
.pause-control:hover, .insert-control > summary:hover { background: rgba(244,112,61,.24); }
.pause-control.resume { color: #a5f0d6; background: rgba(20,160,133,.17); border-color: rgba(60,200,160,.44); }
.pause-control.resume:hover { background: rgba(20,160,133,.27); }
/* 下一页快捷操作：下一节目（主操作，青绿实心）/ 重算时间（次操作，描边） */
.next-run-button, .reschedule-button {
  min-height: 38px; padding: 0 15px;
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 12px; font-size: 10.5px; font-weight: 800;
  cursor: pointer; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), transform .16s var(--ease);
}
.next-run-button {
  color: #04231c;
  background: linear-gradient(140deg, #35d0ab, #14a085);
  border: 1px solid transparent;
  box-shadow: 0 6px 16px rgba(20,160,133,.30), inset 0 1px rgba(255,255,255,.35);
}
.next-run-button:hover { background: linear-gradient(140deg, #45dcb6, #17b092); transform: translateY(-1px); }
.next-run-button:active { transform: translateY(1px); }
.next-run-button:focus-visible, .reschedule-button:focus-visible { outline: 3px solid rgba(244,112,61,.4); outline-offset: 2px; }
.reschedule-button {
  color: #cfe6ea;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(160,200,210,.34);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}
.reschedule-button:hover { color: #fff; background: rgba(255,255,255,.13); border-color: rgba(180,220,230,.5); }
.insert-control { position: relative; }
.insert-control > summary::-webkit-details-marker { display: none; }
.insert-control[open] > summary { color: #fff; background: var(--orange); border-color: var(--orange); }
.insert-control > form {
  width: min(680px, 100%); margin-top: 10px; padding: 20px;
  display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 12px;
  color: #52646c; background: rgba(255,255,255,.99);
  border: 1px solid #d7e1e2; border-radius: 17px; box-shadow: var(--shadow-lg);
}
.insert-control label { display: grid; gap: 6px; font-size: 9.5px; font-weight: 750; color: #64757f; }
.insert-control label.wide { grid-column: 1 / -1; }
.insert-control input { min-width: 0; height: 38px; padding: 0 11px; background: #fafcfc; border: 1px solid #d9e2e2; border-radius: 10px; font-size: 11.5px; outline: 0; }
.insert-control input:focus { border-color: #5c8492; box-shadow: 0 0 0 3px rgba(92,132,146,.12); }
.insert-control form > button { grid-column: 1 / -1; min-height: 40px; color: #fff; background: linear-gradient(135deg, #143a49, #0a2432); border: 0; border-radius: 11px; font-size: 11px; font-weight: 800; box-shadow: 0 7px 16px rgba(9,37,50,.18); }
.insert-control form > button:hover { background: linear-gradient(135deg, #184555, #0e2e3d); }
.insert-control > small { display: block; width: min(680px, 100%); margin-top: 9px; padding: 10px 14px; color: #0d7a65; background: #e6f5ef; border: 1px solid #cdeade; border-radius: 11px; font-size: 10.5px; }
.insert-control[open] > form { animation: insert-panel-in .22s var(--ease); }
@keyframes insert-panel-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* 演出总进度条 */
.show-progress { position: relative; z-index: 1; margin-top: 17px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.show-progress-track { height: 8px; overflow: hidden; background: rgba(255,255,255,.14); border-radius: 99px; box-shadow: inset 0 1px 2px rgba(0,0,0,.20); }
.show-progress-track i { display: block; height: 100%; background: linear-gradient(90deg, #ff8a5c, #ffb37f 55%, #8fe6c9); border-radius: 99px; transition: width .5s linear; }
.show-progress-meta { display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.show-progress-meta small { color: #7f98a4; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; }
.show-progress-meta strong { color: #ffb37f; font: 800 13px var(--font-mono); font-variant-numeric: tabular-nums; }
.show-progress-meta span { color: #93aab4; font-size: 9.5px; }

/* ---------- 公告条 ---------- */
.notice-bar {
  min-height: 56px; padding: 0 42px;
  display: flex; align-items: center; gap: 15px;
  background: #fff6ef; border-bottom: 1px solid #f5ddcc;
  color: #8a4524; font-size: 12px; box-shadow: inset 0 -1px rgba(161,91,56,.05);
}
.notice-tag { flex: 0 0 auto; padding: 5px 10px; color: #fff; background: linear-gradient(135deg, #ff7a45, #e8602e); border-radius: 8px; font-size: 10px; font-weight: 800; box-shadow: 0 5px 12px rgba(232,96,46,.24); }
.notice-bar.notice-normal { color: #4e5f68; background: #f6f8f8; border-color: #e3e9ea; }
.notice-bar.notice-normal .notice-tag { background: linear-gradient(135deg, #5b7888, #466273); box-shadow: 0 5px 12px rgba(70,98,115,.18); }
.notice-bar.notice-info { color: #2f5e74; background: #eef7fa; border-color: #d5e7ee; }
.notice-bar.notice-info .notice-tag { background: linear-gradient(135deg, #4b93b8, #35789c); box-shadow: 0 5px 12px rgba(60,132,178,.20); }
.notice-bar strong { font-weight: 700; min-width: 0; }
.notice-bar small { color: #a37f6c; font-size: 10.5px; white-space: nowrap; }
.notice-bar a, .notice-bar button { margin-left: auto; color: #d05f2c; background: transparent; border: 0; font-size: 10.5px; font-weight: 800; flex: 0 0 auto; }
.notice-bar a:hover, .notice-bar button:hover { color: #a8481d; }

/* ---------- 演出流程（节目单） ---------- */
.run-section { padding: 32px 42px 60px; }
.section-head { margin-bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head h2 { display: inline; margin: 0 10px 0 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.section-head > div > span { color: var(--muted); font-size: 11px; }
.legend { display: flex; gap: 18px; color: var(--muted); font-size: 10.5px; }
.legend i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; }
.legend i.done { background: #aeb9bd; }
.legend i.live { background: var(--teal); box-shadow: 0 0 0 3px rgba(20,160,133,.16); }
.legend i.next { background: var(--orange); box-shadow: 0 0 0 3px rgba(244,112,61,.16); }

/* 统计条 */
.run-stats-bar { margin: -2px 0 20px; padding: 12px 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.rs-item { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
.rs-item i { width: 8px; height: 8px; border-radius: 50%; }
.rs-item b { color: #1c3340; font: 800 13px var(--font-mono); font-variant-numeric: tabular-nums; }
.rs-done i { background: #aeb9bd; }
.rs-live i { background: var(--teal); box-shadow: 0 0 0 4px rgba(20,160,133,.16); }
.rs-pending i { background: var(--orange); box-shadow: 0 0 0 4px rgba(244,112,61,.16); }
.rs-progress { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 190px; }
.rs-progress-track { flex: 1; height: 6px; overflow: hidden; background: #e6ecec; border-radius: 99px; }
.rs-progress-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #4cc3a3); border-radius: 99px; transition: width .6s var(--ease); }
.rs-progress small { color: var(--muted); font: 800 11px var(--font-mono); font-variant-numeric: tabular-nums; }
.locate-current { min-height: 34px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; color: #2d5a6d; background: #edf3f4; border: 1px solid #d3e3e5; border-radius: 10px; font-size: 10.5px; font-weight: 750; white-space: nowrap; }
.locate-current:hover { color: #173f52; background: #e0edef; }
.locate-current span { color: var(--orange); font-size: 13px; }

/* 表格（数据表保持整框样式，节目单改为卡片式） */
.data-table { overflow: hidden; background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.run-table { display: grid; gap: 10px; overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.run-row {
  min-height: 84px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 44px 78px minmax(280px, 1fr) 78px 96px 26px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  font-size: 12px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.run-header {
  min-height: 38px;
  padding: 0 18px;
  color: #85939a;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.run-row:not(.run-header):hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #cddcdf; }
.run-row.current { background: linear-gradient(90deg, #e6f5f0, #fafdfb 82%); border-color: #bfddd2; box-shadow: inset 4px 0 var(--teal), var(--shadow-sm); }
.run-row.current:hover { box-shadow: inset 4px 0 var(--teal), var(--shadow-md); }
.index { color: #9aa6ab; font: 600 11px var(--font-mono); font-variant-numeric: tabular-nums; }
.time, .duration { font: 700 12px var(--font-mono); font-variant-numeric: tabular-nums; }
.time { color: #1c3a48; }
.program { min-width: 0; }
.program strong, .program small, .program em { display: block; }
.program strong { font-size: 13.5px; font-weight: 750; color: #1a2b34; }
.program small { margin-top: 3px; color: #93a0a6; font-size: 10px; }
.program em { margin-top: 6px; color: #75848b; font-size: 10px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-performers { margin-top: 9px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.performer-chip { display: inline-flex; align-items: center; padding: 4px 11px; background: linear-gradient(135deg, #edf6f3, #e4f0ed); border: 1px solid #cfe4dd; border-radius: var(--radius-pill); font-size: 10px; font-weight: 650; color: #2e5b62; line-height: 1.35; }
.performer-more {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  color: #2d5a6d;
  background: #edf3f4;
  border: 1px solid #d3e3e5;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.performer-more:hover { color: #173f52; background: #e0edef; border-color: #bcd3d6; }
.performer-more:active { transform: translateY(1px); }
.duration small { display: block; margin-top: 3px; color: var(--faint); font: 600 9.5px var(--font-sans); letter-spacing: .01em; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--radius-pill); font-size: 10.5px; font-weight: 750; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.status-done { color: #6e7a80; background: #f0f3f3; }
.status-live { color: #0c7a63; background: #e3f4ee; box-shadow: inset 0 0 0 1px rgba(20,160,133,.18); }
.status-next { color: #c25426; background: #ffefe6; box-shadow: inset 0 0 0 1px rgba(244,112,61,.22); }
.status-hold { color: #5f6f76; background: #f3f5f5; border: 1px solid #e3e7e7; }
.row-more { padding: 6px; color: #9aa6ab; background: transparent; border: 0; font-size: 13px; letter-spacing: 1px; }
.row-more:hover { color: var(--orange); }
.run-row.late { background: linear-gradient(90deg, #fdf6e9, #fffdf7); border-color: #eedcba; box-shadow: inset 4px 0 var(--amber), var(--shadow-sm); }
.run-row.late:hover { box-shadow: inset 4px 0 var(--amber), var(--shadow-md); }
.run-row.late .status { color: #8a5d0c; background: #fdf3dc; border: 1px solid #f0dcb0; }
.run-row.late .time::after {
  content: "已过点";
  display: block;
  width: fit-content;
  margin-top: 5px;
  padding: 2px 7px;
  color: #92610e;
  background: #fdf3dc;
  border: 1px solid #f0dcb0;
  border-radius: 6px;
  font: 700 9px var(--font-sans);
}
@keyframes locate-flash { 0%, 100% { box-shadow: inset 4px 0 var(--teal), var(--shadow-sm); } 50% { box-shadow: inset 4px 0 var(--teal), 0 0 0 6px rgba(20,160,133,.24), var(--shadow-sm); } }
.run-row.locate-flash { animation: locate-flash .8s var(--ease) 2; }

/* 状态单元格：勾选框 + 状态徽标（行内改状态下拉已移除，状态由时钟与批量操作控制） */
.run-state-cell { display: inline-flex; align-items: center; gap: 8px; }
.row-select {
  flex: 0 0 auto;
  width: 16px; height: 16px;
  margin: 0;
  accent-color: var(--teal);
  cursor: pointer;
}
/* ---------- 节目单批量操作条 ---------- */
.run-batch-form { display: none; }
.run-batch-bar {
  margin: 0 0 12px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  color: #dff3ee;
  background: linear-gradient(135deg, #16404f, #0a2432);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(9, 37, 50, .22);
  animation: batch-bar-in .2s var(--ease);
}
.run-batch-bar[hidden] { display: none; }
@keyframes batch-bar-in { from { opacity: 0; transform: translateY(-5px); } }
.batch-select-all { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 750; cursor: pointer; }
.batch-select-all input { width: 16px; height: 16px; margin: 0; accent-color: #35d0ab; cursor: pointer; }
.batch-count {
  min-width: 24px; height: 24px;
  padding: 0 7px;
  display: inline-grid; place-items: center;
  color: #04231c; background: linear-gradient(140deg, #35d0ab, #14a085);
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.batch-actions { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.batch-action {
  min-height: 34px;
  padding: 0 13px;
  color: #cfe6ea;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(160, 200, 210, .32);
  border-radius: 10px;
  font-size: 10.5px; font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.batch-action:hover { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(180, 220, 230, .5); }
.batch-action.danger { color: #ffd2c2; background: rgba(244, 112, 61, .16); border-color: rgba(244, 112, 61, .42); }
.batch-action.danger:hover { color: #fff; background: rgba(244, 112, 61, .28); }
.batch-action:focus-visible { outline: 3px solid rgba(244, 112, 61, .4); outline-offset: 2px; }
@media (max-width: 640px) {
  .run-batch-bar { padding: 12px; gap: 9px; }
  .batch-actions { margin-left: 0; width: 100%; }
  .batch-action { flex: 1 1 calc(50% - 4px); min-height: 40px; }
}

/* 编辑模式 */
.editable-module { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.run-edit-table { display: grid; gap: 14px; margin-bottom: 18px; }
.run-edit-table fieldset { margin: 0; padding: 16px 18px 18px; background: #fcfdfd; border: 1px solid #d9e3e4; border-radius: 14px; transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.run-edit-table fieldset:focus-within { border-color: #9dbdc6; box-shadow: 0 0 0 4px rgba(92,132,146,.08); }
.run-edit-head { margin-bottom: 14px; padding-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px dashed #e0e7e8; }
.run-edit-head-left { display: flex; align-items: center; gap: 9px; min-width: 0; flex-wrap: wrap; }
.run-edit-title { padding: 0 10px; color: #2d5a6d; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; }
.run-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.drag-handle { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; color: #93a2a8; background: #f2f5f5; border: 1px solid #e0e6e7; border-radius: 8px; font-size: 14px; cursor: grab; user-select: none; touch-action: none; transition: color .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease); }
.drag-handle:hover { color: #2d5a6d; background: #e6eff0; border-color: #c3d7da; }
.drag-handle:active { cursor: grabbing; }
.run-edit-table fieldset.dragging { opacity: .42; border-style: dashed; border-color: var(--orange); }
.run-edit-table fieldset.drag-over-before { box-shadow: 0 -3px 0 0 var(--orange); }
.run-edit-table fieldset.drag-over-after { box-shadow: 0 3px 0 0 var(--orange); }
.row-end-hint { min-height: 27px; padding: 0 9px; display: inline-flex; align-items: center; color: #0c7a63; background: #e6f5ef; border: 1px solid #cdeade; border-radius: 8px; font: 750 9.5px var(--font-mono); font-variant-numeric: tabular-nums; opacity: 0; transform: translateX(6px); transition: opacity .18s var(--ease), transform .18s var(--ease); }
.row-end-hint.has { opacity: 1; transform: translateX(0); }
.run-edit-grid { display: grid; grid-template-columns: 100px 100px 1fr 1fr 130px; gap: 11px; }
.run-edit-grid label { display: grid; gap: 6px; color: #6c7b82; font-size: 9.5px; font-weight: 750; }
.run-edit-grid label.wide { grid-column: 1 / -1; }
.run-edit-grid input, .run-edit-grid select { min-width: 0; height: 40px; padding: 0 10px; background: #fafcfc; border: 1px solid #d9e2e2; border-radius: 9px; outline: 0; font-size: 11px; }
.run-edit-grid input:focus, .run-edit-grid select:focus { border-color: #5c8492; box-shadow: 0 0 0 3px rgba(92,132,146,.12); }
.run-edit-grid input[placeholder]::placeholder { color: #aab5ba; font-weight: 500; }
.run-edit-grid input.invalid { border-color: var(--red) !important; background: #fff5f2 !important; box-shadow: 0 0 0 3px rgba(217,80,60,.12) !important; }
.move-row-button, .remove-row-button { min-height: 29px; padding: 5px 10px; border: 0; border-radius: 9px; font-size: 9.5px; font-weight: 750; }
.move-row-button { color: #2d5a6d; background: #edf3f4; }
.move-row-button:hover { color: #173f52; background: #dfecee; }
.move-row-button:disabled { color: #b0bbbf; background: #f2f5f5; cursor: not-allowed; }
.remove-row-button { color: #c14d35; background: #ffefe8; }
.remove-row-button:hover { color: #a63d27; background: #ffe2d6; }
.editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.editor-actions .save-button { min-width: 120px; }
.add-record-button { min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; color: #2d5a6d; background: #edf3f4; border: 1px solid #d3e3e5; border-radius: 11px; font-size: 11px; font-weight: 750; }
.add-record-button:hover { color: #173f52; background: #e0edef; transform: translateY(-1px); }
.schedule-button { color: #0c7a63; background: #e6f5ef; border-color: #c9e8dd; }
.schedule-button:hover { color: #0a6654; background: #d7efe5; border-color: #aedccb; }
@keyframes run-row-moved { 0% { border-color: var(--teal); box-shadow: 0 0 0 5px rgba(20,160,133,.16); } 100% { border-color: #d9e3e4; box-shadow: none; } }
.run-edit-table fieldset.run-row-moved { animation: run-row-moved .9s var(--ease); }
@keyframes newly-added-run-row { 0% { border-color: var(--orange); box-shadow: 0 0 0 6px rgba(244,112,61,.18); } 100% { border-color: #d9e3e4; box-shadow: none; } }
.run-edit-table fieldset.newly-added-run-row { animation: newly-added-run-row 1.8s var(--ease); }

/* ---------- 模块视图 · 数据表 ---------- */
.module-view { padding: 38px 42px 64px; max-width: 1660px; }
.module-title { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.module-title h1 { margin: 0; font-size: clamp(28px, 2.8vw, 35px); font-weight: 800; letter-spacing: -.02em; color: #13252f; line-height: 1.15; }
.module-title-actions { display: flex; align-items: center; gap: 9px; }
.module-title > button { min-width: 108px; }
.data-table { background: #fff; }
.data-row { min-height: 70px; padding: 0 24px; display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); align-items: center; border-top: 1px solid #e9eeee; color: #52636b; font-size: 12.5px; }
.columns-3 .data-row { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
.data-row:first-child { border-top: 0; }
.data-row:hover:not(.data-head) { background: #f7faf9; }
.data-head { min-height: 46px; color: #7f8f96; background: linear-gradient(180deg, #f8faf9, #f2f6f5); font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.primary-cell { color: #182b34; font-weight: 700; }
.download-link { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; color: #2d5a6d; background: #edf3f4; border: 1px solid #d5e4e7; border-radius: 10px; font-size: 10.5px; font-weight: 750; }
.download-link:hover { color: #163f51; background: #deecee; transform: translateY(-1px); }
.file-access-badge { padding: 8px 13px; color: #2d5a6d; background: #edf3f4; border: 1px solid #d5e4e7; border-radius: var(--radius-pill); font-size: 10px; font-weight: 800; white-space: nowrap; }
.file-actions { display: flex; align-items: center; gap: 8px; }
.file-actions form { margin: 0; }

/* 模块编辑 */
.eyebrow-editor { max-width: 430px; margin-bottom: 18px; display: grid; gap: 6px; color: #64757f; font-size: 10px; font-weight: 750; }
.eyebrow-editor input { width: 100%; height: 42px; padding: 0 12px; color: #25353e; background: #fafcfc; border: 1px solid #d9e2e2; border-radius: 10px; outline: 0; font-size: 12px; }
.eyebrow-editor input:focus { border-color: #5c8492; box-shadow: 0 0 0 3px rgba(92,132,146,.12); }
.edit-table { overflow-x: auto; margin-bottom: 18px; border: 1px solid #dce5e6; border-radius: 13px; }
.edit-row { min-width: 720px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); border-top: 1px solid #e8edee; }
.edit-row:first-child { border-top: 0; }
.edit-row input { min-width: 0; height: 48px; padding: 0 12px; background: #fff; border: 0; border-right: 1px solid #e8edee; outline: 0; font-size: 11px; }
.edit-row input:focus { background: #f1f7f6; box-shadow: inset 0 -3px var(--teal); }
.edit-head { min-height: 44px; align-items: center; color: #7f8f96; background: linear-gradient(180deg, #f8faf9, #f2f6f5); font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.edit-head span { padding: 0 12px; }
.gear-status-control { min-width: 160px; display: grid; grid-template-columns: minmax(84px, .9fr) minmax(76px, 1fr); border-right: 1px solid #e8edee; }
.gear-status-control select, .gear-status-control input { min-width: 0; height: 48px; padding: 0 9px; background: #fff; border: 0; outline: 0; font-size: 10px; }
.gear-status-control select { color: #2d5a6d; border-right: 1px solid #e8edee; cursor: pointer; }
.gear-status-control select:focus, .gear-status-control input:focus { background: #f1f7f6; box-shadow: inset 0 -3px var(--teal); }
.edit-action-head { position: sticky; right: 0; z-index: 2; min-width: 66px; height: 100%; display: flex; align-items: center; justify-content: center; color: #9a7a70; background: #f8efe9; border-left: 1px solid #ecdcd3; box-shadow: -10px 0 16px rgba(31,47,55,.05); font-size: 9.5px; font-weight: 800; text-transform: uppercase; }
.remove-table-row { position: sticky; right: 0; z-index: 1; min-width: 66px; color: #c14d35; background: #ffefe8; border: 0; border-left: 1px solid #f2d8cd; box-shadow: -10px 0 16px rgba(31,47,55,.06); font-size: 10px; font-weight: 800; }
.remove-table-row:hover { color: #a63d27; background: #ffe2d6; }
.status-option-manager { margin-bottom: 15px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #f5faf8; border: 1px solid #dce9e5; border-radius: 13px; }
.status-option-manager > div:first-child { display: grid; gap: 3px; flex: 0 0 auto; }
.status-option-manager strong { color: var(--navy); font-size: 11px; }
.status-option-manager small { color: #7d8d93; font-size: 9.5px; }
.status-option-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.status-option-list form { min-height: 30px; display: inline-flex; align-items: center; overflow: hidden; background: #fff; border: 1px solid #d4e2dd; border-radius: var(--radius-pill); }
.status-option-list span { padding: 0 4px 0 12px; color: #3a5c66; font-size: 10px; white-space: nowrap; }
.status-option-list button { width: 30px; align-self: stretch; color: #c06a52; background: transparent; border: 0; cursor: pointer; font-size: 16px; line-height: 1; }
.status-option-list button:hover { color: #fff; background: #d1653f; }

/* ---------- 统计 · 签到 · 领用 ---------- */
.stat-grid { margin-bottom: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card { padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card strong, .stat-card span { display: block; }
.stat-card strong { font: 700 30px var(--font-mono); font-variant-numeric: tabular-nums; color: #14252f; }
.stat-card span { margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 600; }
.stat-card.green { border-top-color: var(--teal); }
.stat-card.orange { border-top-color: var(--orange); }
.stat-card.blue { border-top-color: var(--blue); }
.check-button { min-width: 78px; padding: 8px 12px; color: #64747b; background: #fff; border: 1px solid #d5dcdd; border-radius: var(--radius-pill); font-size: 10.5px; font-weight: 700; }
.check-button:hover { border-color: #b5ccd6; background: #f2f9f7; }
.check-button.checked { color: #0c7a63; background: #e3f4ee; border-color: #bfe3d6; }
.readonly-status { display: inline-flex; padding: 7px 12px; color: #7c878c; background: #eef1f1; border-radius: var(--radius-pill); font-size: 10px; font-weight: 650; }
.readonly-status.yes { color: #0c7a63; background: #e3f4ee; }
.checkin-rate { margin: -10px 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.checkin-rate-track { height: 8px; overflow: hidden; background: #e6ecec; border-radius: 99px; box-shadow: inset 0 1px 2px rgba(12,34,44,.07); }
.checkin-rate-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #4cc3a3); border-radius: 99px; transition: width .6s var(--ease); }
.checkin-rate small { color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.checkin-toolbar { margin-bottom: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.checkin-tabs { display: inline-flex; align-items: center; gap: 5px; padding: 4px; background: #e9efef; border: 1px solid #dde5e5; border-radius: 13px; }
.checkin-tabs button { min-height: 33px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; color: #64747b; background: transparent; border: 0; border-radius: 10px; font-size: 11px; font-weight: 750; }
.checkin-tabs button:hover { color: #22353e; }
.checkin-tabs button.active { color: #fff; background: linear-gradient(135deg, #143a49, #0a2432); box-shadow: 0 5px 12px rgba(9,37,50,.18); }
.checkin-tabs button b { min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: var(--radius-pill); background: rgba(0,0,0,.10); font-size: 9.5px; }
.checkin-tabs button.active b { background: rgba(255,255,255,.22); }
.checkin-search { min-width: 200px; flex: 1; max-width: 340px; height: 42px; padding: 0 14px; background: #fff; border: 1px solid #d9e2e2; border-radius: 12px; outline: 0; font-size: 12px; }
.checkin-search:focus { border-color: #5c8492; box-shadow: 0 0 0 3px rgba(92,132,146,.12); }
.checkin-bulk-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.checkin-bulk-actions form { margin: 0; }
.checkin-bulk-actions .module-action { white-space: nowrap; }
.module-action.danger { color: #b0482f; background: #ffefe9; border-color: #f2d2c6; }
.module-action.danger:hover { color: #963c26; background: #ffe2d6; border-color: #e9c1b2; }
.checkin-empty-row { min-height: 64px !important; color: var(--faint) !important; text-align: center; justify-content: center; }
.self-checkin-card { max-width: 760px; margin: 0 auto; padding: 36px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 36px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.self-checkin-card > div > span { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #1ba98b, #0c7a65); border-radius: 50%; font-size: 22px; font-weight: 800; box-shadow: 0 10px 22px rgba(20,160,133,.30); }
.self-checkin-card h2 { margin: 15px 0 7px; font-size: 22px; font-weight: 800; }
.self-checkin-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.qr-checkin-card { margin-bottom: 20px; padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 26px; color: #fff; background: radial-gradient(440px 250px at 82% 0, rgba(64,180,158,.24), transparent 60%), linear-gradient(135deg, #0e2c3a, #175368); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.qr-checkin-card p { margin: 0 0 7px; color: #7fdcbf; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.qr-checkin-card h2 { margin: 0 0 12px; font-size: 23px; font-weight: 800; }
.qr-checkin-card a { display: block; max-width: 560px; color: #a8bdc5; font: 500 9.5px var(--font-mono); overflow-wrap: anywhere; }
.qr-checkin-card img { width: 208px; height: 208px; padding: 10px; background: #fff; border-radius: 17px; box-shadow: 0 16px 38px rgba(0,0,0,.28); }
.copy-link-button { margin-top: 10px; min-height: 32px; padding: 0 13px; display: inline-flex; align-items: center; color: #a8f0da; background: rgba(20,160,133,.17); border: 1px solid rgba(60,200,160,.38); border-radius: 10px; font-size: 10px; font-weight: 800; }
.copy-link-button:hover { color: #fff; background: rgba(20,160,133,.30); }
.checkout-add-form { margin-bottom: 20px; padding: 20px; display: grid; grid-template-columns: 130px 1fr 190px auto; gap: 11px; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.checkout-add-form label { display: grid; gap: 6px; color: #64757f; font-size: 9.5px; font-weight: 750; }
.checkout-add-form input, .checkout-add-form select { min-width: 0; height: 42px; padding: 0 11px; background: #fafcfc; border: 1px solid #d9e2e2; border-radius: 10px; font-size: 11px; outline: 0; }
.checkout-add-form input:focus, .checkout-add-form select:focus { border-color: #5c8492; box-shadow: 0 0 0 3px rgba(92,132,146,.12); }
.checkout-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.checkout-card { padding: 21px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.checkout-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.checkout-card.out { border-top-color: var(--orange); }
.checkout-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.checkout-card-head span { color: #5d7480; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.checkout-card-head b { padding: 5px 10px; color: #0c7a63; background: #e3f4ee; border-radius: var(--radius-pill); font-size: 9.5px; font-weight: 800; }
.checkout-card.out .checkout-card-head b { color: #c25426; background: #ffefe6; }
.checkout-card h2 { margin: 14px 0 4px; font-size: 16px; font-weight: 750; }
.checkout-card > p { margin: 0; color: #93a0a6; font: 500 9.5px var(--font-mono); }
.checkout-card dl { margin: 16px 0; padding: 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid #edf0f0; border-bottom: 1px solid #edf0f0; }
.checkout-card dl div { min-width: 0; }
.checkout-card dt { color: var(--faint); font-size: 9px; font-weight: 700; }
.checkout-card dd { margin: 4px 0 0; color: #47585f; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkout-elapsed { margin-left: 2px; color: #c25426; font-size: 9px; font-weight: 750; white-space: nowrap; }
.checkout-actions { display: flex; align-items: center; gap: 7px; }
.checkout-actions > form:first-child { flex: 1; }
.checkout-form { display: flex; }
.checkout-form input { min-width: 0; width: 100%; height: 36px; padding: 0 10px; background: #fafcfc; border: 1px solid #d5dee0; border-radius: 10px 0 0 10px; font-size: 10.5px; outline: 0; }
.checkout-form button, .return-button { min-height: 36px; padding: 0 12px; color: #fff; background: linear-gradient(135deg, #143a49, #0a2432); border: 0; border-radius: 0 10px 10px 0; font-size: 9.5px; font-weight: 800; }
.return-button { width: 100%; color: #0c7a63; background: #e3f4ee; border-radius: 10px; }
.return-button:hover { background: #d2ede3; }
.delete-button { padding: 8px 12px; color: #c14d35; background: #ffefe8; border: 0; border-radius: 10px; font-size: 10px; font-weight: 750; }
.delete-button:hover { color: #a63d27; background: #ffe2d6; }
.delete-button.compact { padding: 7px 11px; font-size: 9.5px; }

/* ---------- 公告 ---------- */
.bulletin-list { display: grid; gap: 14px; }
.bulletin { padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-left: 4px solid #5d8494; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.bulletin:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bulletin.urgent { background: #fffaf5; border-left-color: var(--orange); }
.bulletin.normal { border-left-color: #5d8494; }
.bulletin.info { background: #f6fbfd; border-left-color: var(--blue); }
.bulletin > div:first-child { display: flex; gap: 11px; align-items: center; }
.bulletin > div:first-child span { padding: 4px 9px; color: #3d6374; background: #edf3f4; border-radius: 8px; font-size: 10px; font-weight: 800; }
.bulletin.urgent > div:first-child span { color: #fff; background: linear-gradient(135deg, #ff7a45, #e8602e); box-shadow: 0 4px 10px rgba(232,96,46,.22); }
.bulletin.info > div:first-child span { color: #fff; background: linear-gradient(135deg, #4b93b8, #35789c); }
.bulletin small { color: #8d9aa0; font-size: 10px; }
.bulletin-admin { margin-top: 15px; padding-top: 14px; display: flex !important; align-items: flex-start !important; gap: 9px !important; border-top: 1px solid #e9edee; }
.bulletin-admin details { min-width: 280px; flex: 1; }
.bulletin-admin summary { width: fit-content; padding: 7px 12px; color: #2d5a6d; background: #edf3f4; border: 1px solid #d5e4e7; border-radius: 10px; font-size: 10px; font-weight: 750; cursor: pointer; list-style: none; }
.bulletin-admin summary:hover { background: #e0edef; }
.bulletin-edit-form { margin-top: 12px; display: grid; gap: 9px; align-items: start; }
.bulletin-edit-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bulletin-edit-top select { padding: 9px 12px; background: #fafcfc; border: 1px solid #d9e2e2; border-radius: 10px; font-size: 11px; outline: 0; }
.bulletin-edit-top select:focus { border-color: #5c8492; box-shadow: 0 0 0 3px rgba(92,132,146,.12); }
.bulletin-edit-top > button { padding: 10px 18px; color: #fff; background: linear-gradient(135deg, #143a49, #0a2432); border: 0; border-radius: 10px; font-size: 10.5px; font-weight: 800; box-shadow: 0 6px 14px rgba(9,37,50,.16); }
.bulletin-edit-top > button:hover { background: linear-gradient(135deg, #184555, #0e2e3d); }

/* ---------- Markdown 编辑器（公告） ---------- */
.md-editor { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.md-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 7px 8px; background: #f1f5f5; border: 1px solid #dfe7e7; border-radius: 12px; }
.md-toolbar-label { margin: 0 6px 0 4px; color: #7b8c93; font: 800 9.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.md-toolbar > button { min-width: 30px; height: 28px; padding: 0 9px; color: #4a5f68; background: #fff; border: 1px solid #d8e2e3; border-radius: 8px; font-size: 11px; font-weight: 800; line-height: 1; }
.md-toolbar > button:hover { color: #17404f; background: #e8f1f1; border-color: #bcd3d6; }
.md-toolbar > small { margin-left: auto; color: #9aa8ad; font-size: 9.5px; }
.md-body { display: grid; grid-template-columns: 1fr; gap: 10px; min-width: 0; }
.md-pane { display: grid; gap: 6px; min-width: 0; }
.md-pane-head { color: #7b8c93; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.md-editor textarea[data-md-textarea] { width: 100%; min-height: 260px; padding: 14px; resize: vertical; background: #fff; border: 1px solid #d9e2e2; border-radius: 12px; outline: 0; font-size: 13px; line-height: 1.7; }
.md-editor textarea[data-md-textarea]:focus { border-color: #5c8492; box-shadow: 0 0 0 3px rgba(92,132,146,.10); }
.md-preview { min-height: 220px; padding: 14px; background: #fbfdfd; border: 1px solid #d9e2e2; border-radius: 12px; font-size: 15px; line-height: 1.7; color: var(--ink); overflow-wrap: anywhere; }
.md-preview:empty::before { content: "预览将实时显示在这里…"; color: #a9b4b8; }

/* ---------- 公告正文（Markdown 渲染） ---------- */
.bulletin-body { margin: 14px 0 4px; color: var(--ink); font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.bulletin-body > :first-child { margin-top: 0; }
.bulletin-body > :last-child { margin-bottom: 0; }
.bulletin-body p { margin: 8px 0; color: var(--ink); font-size: 15px; }
.bulletin-body h1, .bulletin-body h2, .bulletin-body h3 { margin: 14px 0 6px; font-weight: 800; line-height: 1.4; color: var(--ink); }
.bulletin-body h1 { font-size: 18px; }
.bulletin-body h2 { font-size: 16px; }
.bulletin-body h3 { font-size: 14.5px; }
.bulletin-body strong { font-weight: 800; }
.bulletin-body em { font-style: italic; }
.bulletin-body a { color: #2f7da6; text-decoration: underline; text-underline-offset: 2px; }
.bulletin-body a:hover { color: #1e5a7c; }
.bulletin-body ul { margin: 8px 0; padding-left: 20px; }
.bulletin-body li { margin: 3px 0; }
.md-inline { padding: 2px 6px; color: #b34a2c; background: #fdf0e9; border: 1px solid #f3d8ca; border-radius: 5px; font-family: var(--font-mono); font-size: .92em; }
.md-block { margin: 10px 0; padding: 11px 13px; overflow-x: auto; color: #e8f0f2; background: #0d2735; border-radius: 10px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6; }
.md-block code { font-family: inherit; }

/* ---------- 管理中心 ---------- */
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.settings-card { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.settings-card h2 { margin: 0; font-size: 16.5px; font-weight: 800; }
.settings-card > p { margin: 7px 0 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.settings-card hr { margin: 22px 0; border: 0; border-top: 1px solid #e7ebec; }
.settings-form { display: grid; gap: 15px; }
.settings-form label, .password-change-form label, .new-admin-form > label { display: grid; gap: 6px; color: #64757f; font-size: 10px; font-weight: 750; }
.settings-form input, .settings-form select, .password-change-form input, .account-summary label input, .password-reset input, .new-admin-form input { width: 100%; height: 43px; padding: 0 12px; color: #24343d; background: #fafcfc; border: 1px solid #d9e2e2; border-radius: 11px; outline: 0; font-size: 12px; }
.settings-form input:hover, .settings-form select:hover, .password-change-form input:hover { border-color: #c3d2d4; background: #fff; }
.settings-form input:focus, .settings-form select:focus, .password-change-form input:focus { border-color: #5c8492; box-shadow: 0 0 0 3px rgba(92,132,146,.12); }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.settings-form .toggle-setting { display: flex; align-items: flex-start; gap: 11px; padding: 14px; background: #f4f8f7; border: 1px solid #e0e9e7; border-radius: 12px; cursor: pointer; }
.settings-form .toggle-setting input { width: 16px; height: 16px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--teal); }
.settings-form .toggle-setting span { display: block; }
.settings-form .toggle-setting strong, .settings-form .toggle-setting small { display: block; }
.settings-form .toggle-setting strong { color: #2e414b; font-size: 11px; }
.settings-form .toggle-setting small { margin-top: 3px; color: #7c8a90; font-size: 10px; font-weight: 500; line-height: 1.55; }
.save-button { min-height: 43px; padding: 0 18px; color: #fff; background: linear-gradient(135deg, #143a49, #0a2432); border: 0; border-radius: 12px; font-size: 11px; font-weight: 800; box-shadow: 0 8px 18px rgba(9,37,50,.20), inset 0 1px rgba(255,255,255,.08); transition: background-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease); }
.save-button:hover { background: linear-gradient(135deg, #184555, #0e2e3d); box-shadow: 0 10px 22px rgba(9,37,50,.26), inset 0 1px rgba(255,255,255,.08); transform: translateY(-1px); }
.save-button:active { transform: translateY(0); }
.save-button:disabled { opacity: .5; cursor: not-allowed; }
.save-button.secondary { color: #2d5a6d; background: #edf3f4; border: 1px solid #d3e3e5; box-shadow: none; }
.save-button.secondary:hover { color: #173f52; background: #e0edef; }
.archive-button { margin-top: 12px; min-height: 42px; padding: 0 16px; display: flex; align-items: center; justify-content: center; color: #2d5a6d; background: #edf3f4; border: 1px solid #d3e3e5; border-radius: 11px; font-size: 10.5px; font-weight: 750; }
.archive-button:hover { color: #173f52; background: #e0edef; transform: translateY(-1px); }
.module-guide { margin-top: 18px; }
.module-links { display: flex; flex-wrap: wrap; gap: 8px; }
.module-links a { padding: 8px 13px; color: #2d5a6d; background: #edf3f4; border: 1px solid #d5e4e7; border-radius: 10px; font-size: 10.5px; font-weight: 700; }
.module-links a:hover { color: #173f52; background: #e0edef; transform: translateY(-1px); }
.admin-state { padding: 8px 13px; color: #0c7a63; background: #e3f4ee; border-radius: var(--radius-pill); font-size: 10px; font-weight: 800; white-space: nowrap; }
.success-note { margin-bottom: 16px; padding: 13px 16px; color: #0d6f5b; background: #e6f5ef; border: 1px solid #c9e8dd; border-radius: 12px; font-size: 12px; font-weight: 600; box-shadow: var(--shadow-xs); }
.error-note { margin-bottom: 16px; padding: 13px 16px; color: #b0482f; background: #ffefe9; border: 1px solid #f3d3c7; border-radius: 12px; font-size: 12px; font-weight: 600; }
.settings-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.settings-card-head p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.settings-card-head > span { padding: 7px 12px; color: #2d5a6d; background: #edf3f4; border-radius: var(--radius-pill); font-size: 10px; font-weight: 800; white-space: nowrap; }
.password-card { margin-bottom: 18px; display: grid; grid-template-columns: minmax(180px, .7fr) minmax(520px, 1.3fr); gap: 30px; align-items: end; }
.password-card > div > p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.password-change-form { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; align-items: end; }
.admin-manager { margin-top: 20px; }
.admin-account-list { margin-top: 18px; display: grid; gap: 11px; }
.admin-account { position: relative; padding: 18px; background: #fafcfb; border: 1px solid #e1e7e7; border-radius: 13px; transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.admin-account:hover { border-color: #cddcde; box-shadow: var(--shadow-sm); }
.admin-account.super { background: linear-gradient(90deg, #ecf7f3, #fbfdfc); border-color: #cfe6dd; }
.account-summary { display: flex; align-items: center; gap: 11px; }
.account-summary > div:nth-child(2) { flex: 1; min-width: 0; }
.account-summary strong, .account-summary small { display: block; }
.account-summary strong { color: #22333c; font-size: 13px; }
.account-summary small { margin-top: 3px; color: #8b989e; font-size: 10px; }
.account-summary > span { padding: 6px 10px; color: #0c7a63; background: #ddf1ea; border-radius: var(--radius-pill); font-size: 9.5px; font-weight: 800; white-space: nowrap; }
.account-summary label { flex: 1; display: grid; gap: 5px; color: #64757f; font-size: 9.5px; font-weight: 750; }
.admin-permission-form { display: grid; gap: 14px; }
.permission-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.permission-grid label { position: relative; }
.permission-grid input { position: absolute; opacity: 0; pointer-events: none; }
.permission-grid span { display: inline-flex; padding: 8px 12px; color: #64757f; background: #fff; border: 1px solid #d9e2e2; border-radius: 10px; font-size: 10.5px; font-weight: 650; cursor: pointer; transition: all .18s var(--ease); }
.permission-grid span:hover { border-color: #b9cdd1; }
.permission-grid input:checked + span { color: #0c7a63; background: #e4f4ee; border-color: #bfe3d6; box-shadow: inset 0 0 0 1px rgba(20,160,133,.15); }
.permission-grid input:focus-visible + span { outline: 3px solid rgba(244,112,61,.22); outline-offset: 1px; }
.password-reset { display: grid; gap: 6px; color: #64757f; font-size: 9.5px; font-weight: 750; }
.admin-permission-form .save-button { width: fit-content; }
/* 删除按钮改为正常流操作行（原先绝对定位在右下角，窄屏容易相互挤压） */
.delete-admin-form { margin: 0; padding: 0; border: 0; }
.admin-manager > h3 { margin: 0 0 14px; font-size: 14px; font-weight: 800; color: #22333c; }
.new-admin-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px 11px; }
.new-admin-form > label { display: grid; gap: 6px; color: #64757f; font-size: 9.5px; font-weight: 750; }
.new-admin-form .permission-grid, .new-admin-form .save-button { grid-column: 1 / -1; }

/* ---------- 新建管理员面板 ---------- */
.new-admin-panel {
  margin-top: 16px;
  padding: 18px;
  background: linear-gradient(180deg, #f7fbfa, #fbfdfd);
  border: 1px dashed #cfe1dd;
  border-radius: 15px;
}
.new-admin-head { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 12px; }
.new-admin-icon {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(140deg, #1ba98b, #0c7a63);
  border-radius: 11px;
  box-shadow: 0 6px 15px rgba(12, 122, 99, .26);
}
.new-admin-icon svg { width: 17px; height: 17px; display: block; }
.new-admin-head h3 { margin: 0; color: var(--ink); font-size: 14px; font-weight: 750; letter-spacing: -.01em; }
.new-admin-head p { margin: 4px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.55; }
.new-admin-perms { grid-column: 1 / -1; display: grid; gap: 8px; }
.new-admin-form input { background: #fff; }
.new-admin-form input:focus { background: #fff; border-color: rgba(58, 118, 138, .5); box-shadow: 0 0 0 3px rgba(58, 118, 138, .1); }
.new-admin-foot {
  grid-column: 1 / -1;
  margin-top: 3px;
  padding-top: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed #dbe8e5;
}
.new-admin-scope { display: grid; gap: 6px; min-width: 0; }
.new-admin-form .save-button { width: auto; min-height: 44px; padding: 0 22px; grid-column: auto; }

/* ---------- 授权 · 日志 ---------- */
.license-manager-card { margin-top: 20px; }
.license-details { margin: 20px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.license-details div { min-width: 0; padding: 14px 15px; background: #f6faf9; border: 1px solid #e0e9e7; border-radius: 12px; }
.license-details dt { color: #7d8d93; font-size: 9.5px; font-weight: 750; }
.license-details dd { margin: 5px 0 0; overflow: hidden; color: #2e4a55; font: 600 10.5px var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.license-manager-actions { display: flex; align-items: center; gap: 10px; }
.license-manager-actions form { margin: 0; }
.license-manager-actions .delete-button { min-height: 42px; }
.audit-log-card { margin-top: 18px; }
.audit-export-button { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #143a49, #0a2432); border-radius: 12px; font-size: 10.5px; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 18px rgba(9,37,50,.20); }
.audit-export-button:hover { background: linear-gradient(135deg, #184555, #0e2e3d); transform: translateY(-1px); }
.audit-summary { margin: 18px 0 12px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.audit-summary strong { margin-right: 3px; color: var(--navy); font-size: 16px; }
.audit-table-wrap { overflow-x: auto; border: 1px solid #dce5e4; border-radius: 14px; }
.audit-table { width: 100%; min-width: 780px; border-collapse: collapse; background: #fff; }
.audit-table th { padding: 12px 14px; color: #73848b; background: linear-gradient(180deg, #f8faf9, #f2f6f5); border-bottom: 1px solid #dce5e4; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-align: left; white-space: nowrap; }
.audit-table td { padding: 12px 14px; color: #4e5f67; border-top: 1px solid #edf0ef; font-size: 10.5px; line-height: 1.5; vertical-align: middle; }
.audit-table tbody tr:first-child td { border-top: 0; }
.audit-table tbody tr:hover td { background: #f7faf9; }
.audit-table time { color: #6f8188; font-family: var(--font-mono); font-size: 9.5px; white-space: nowrap; }
.audit-table td strong, .audit-table td small { display: block; }
.audit-table td strong { color: #2b4651; font-size: 10.5px; }
.audit-table td small { margin-top: 2px; color: #96a2a7; font-size: 9px; }
.audit-action-badge { display: inline-flex; padding: 5px 9px; color: #11684f; background: #e4f4ee; border-radius: var(--radius-pill); font-size: 9.5px; font-weight: 800; white-space: nowrap; }
.audit-empty td { padding: 26px; color: #8c989d; text-align: center; }

/* ---------- 弹窗 · 设置页 · 激活页 ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(4,16,24,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: backdrop-in .2s var(--ease); }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 30px; background: #fbfcfc; border: 1px solid rgba(255,255,255,.65); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: modal-in .24s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-head h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; color: #13252f; }
.modal-head > button { flex: 0 0 auto; width: 35px; height: 35px; color: #6f7d84; background: #fff; border: 1px solid #dde4e5; border-radius: 50%; font-size: 19px; line-height: 1; }
.modal-head > button:hover { color: var(--red); border-color: #eccfc7; background: #fff4f0; }
.modal label:not(.check-line) { display: block; margin-top: 22px; color: #5c6c74; font-size: 10.5px; font-weight: 750; }
.modal textarea { width: 100%; height: 112px; margin-top: 8px; padding: 12px; resize: vertical; background: #fff; border: 1px solid #d9e2e2; border-radius: 11px; outline: 0; font-size: 12.5px; line-height: 1.6; }
.modal textarea:focus { border-color: #5c8492; box-shadow: 0 0 0 3px rgba(92,132,146,.12); }
.priority-row { margin: 18px 0 0; padding: 0; display: flex; align-items: center; gap: 8px; border: 0; }
.priority-row legend { float: left; margin: 7px 8px 0 0; color: #5c6c74; font-size: 10.5px; font-weight: 750; }
.priority-row label { display: block; margin: 0 !important; }
.priority-row input { position: absolute; opacity: 0; pointer-events: none; }
.priority-row label span { display: inline-flex; padding: 7px 13px; color: #64747b; background: #fff; border: 1px solid #dde4e5; border-radius: 10px; font-size: 10.5px; font-weight: 650; cursor: pointer; }
.priority-row input:checked + span { color: #fff; background: linear-gradient(135deg, #ff7a45, #e8602e); border-color: transparent; box-shadow: 0 0 0 3px rgba(244,112,61,.16); }
.modal-actions { margin-top: 26px; padding-top: 18px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid #e6eaea; }
.modal-actions button { padding: 10px 16px; color: #64747b; background: #fff; border: 1px solid #dde4e5; border-radius: 10px; font-size: 10.5px; font-weight: 700; }
.modal-actions button:hover { background: #f4f7f7; }
.modal-actions button.publish { color: #fff; background: linear-gradient(135deg, #143a49, #0a2432); border-color: transparent; }
.modal-actions button.publish:hover { background: linear-gradient(135deg, #184555, #0e2e3d); }
.login-copy { margin: 18px 0; color: #6f7d84; font-size: 11.5px; line-height: 1.7; }
.login-error { margin-bottom: 13px; padding: 11px 13px; color: #b0482f; background: #ffefe9; border-radius: 10px; font-size: 11px; line-height: 1.6; }
.login-error code { padding: 2px 6px; background: #fdeee9; border-radius: 5px; font-family: var(--font-mono); font-size: 10.5px; }
.setup-page { min-height: 100vh; margin: 0; background: radial-gradient(820px 470px at 82% -8%, rgba(64,168,188,.26), transparent 62%), radial-gradient(660px 430px at -8% 110%, rgba(244,112,61,.11), transparent 55%), radial-gradient(circle at top, #143a4a 0, #0a2030 46%, #06141e 100%); }
.setup-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.setup-card { position: relative; width: min(100%, 470px); }
.setup-card h1 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -.01em; }
.setup-step { align-self: flex-start; padding: 6px 11px; color: #2d6b5c; background: #e4f4ee; border-radius: var(--radius-pill); font-size: 10px; font-weight: 800; white-space: nowrap; }
.setup-card .settings-form label small { margin-top: 3px; color: #8a979d; font-weight: 500; line-height: 1.6; }
.license-card code { padding: 2px 6px; border-radius: 6px; background: #edf2f2; font-family: var(--font-mono); font-size: 11px; }
.license-status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: var(--radius-pill); font-size: 10px; font-weight: 800; white-space: nowrap; }
.license-status.valid { color: #0c7a63; background: #e3f4ee; }
.license-status.warning { color: #92610e; background: #fdf3dc; }
.license-status.invalid { color: #b0482f; background: #ffefe9; }
.license-secondary-action { margin-top: 11px; }
.license-secondary-action button { width: 100%; min-height: 40px; color: #46606b; background: transparent; border: 1px solid #d9e2e2; border-radius: 11px; font-size: 10.5px; font-weight: 750; }
.license-secondary-action button:hover { background: #f4f7f7; }
.license-card .save-button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 演出人员选择器 ---------- */
.performer-picker { position: relative; min-width: 0; }
.run-edit-grid .performer-picker.wide { grid-column: 1 / -1; }
.insert-control .performer-picker { grid-column: 1 / -1; }
.performer-picker > summary { height: 40px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #3c545f; background: #fafcfc; border: 1px solid #d9e2e2; border-radius: 9px; font-size: 11px; font-weight: 650; cursor: pointer; list-style: none; }
.performer-picker > summary:hover { border-color: #bccfd3; }
.performer-picker > summary::-webkit-details-marker { display: none; }
.performer-picker > summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.performer-picker > summary b { color: #7c949c; font-size: 13px; transition: transform .2s var(--ease); }
.performer-picker[open] { z-index: 40; }
.performer-picker[open] > summary { background: #fff; border-color: #5c8492; box-shadow: 0 0 0 3px rgba(92,132,146,.12); }
.performer-picker[open] > summary b { transform: rotate(180deg); }
.performer-options { position: absolute; z-index: 42; top: calc(100% + 7px); left: 0; right: 0; max-height: 270px; padding: 11px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; overflow-y: auto; background: #fff; border: 1px solid #d5e1e1; border-radius: 14px; box-shadow: var(--shadow-lg); animation: picker-in .18s var(--ease); }
@keyframes picker-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.performer-options label { min-width: 0; padding: 9px 10px; display: flex; align-items: flex-start; gap: 8px; color: #3a4e58; background: #f7f9f9; border: 1px solid #e4eaea; border-radius: 10px; cursor: pointer; transition: all .15s var(--ease); }
.performer-options label:hover { background: #edf6f3; border-color: #cfe3dc; }
.performer-options input { flex: 0 0 auto; width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--teal); }
.performer-options label > span { min-width: 0; }
.performer-options strong, .performer-options small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.performer-options strong { color: #253a44; font-size: 10.5px; }
.performer-options small { margin-top: 2px; color: #829096; font-size: 9px; font-weight: 500; }
.performer-options p { grid-column: 1 / -1; margin: 4px; color: #819096; font-size: 10.5px; }
/* 临时演员输入：选择器必须压过 .performer-options label (0,1,1)，
   否则会被当成普通人员选项排成 flex，提示文字被它的 min-width:0 挤成 0 宽逐字竖排 */
.performer-options label.performer-temp {
  grid-column: 1 / -1;
  padding: 10px 11px;
  display: grid;
  align-items: stretch;
  gap: 6px;
  color: #2f5a52;
  background: #f7fbfa;
  border: 1px dashed #c9ded8;
  border-radius: 10px;
  cursor: text;
}
.performer-options label.performer-temp:hover { background: #f7fbfa; border-color: #bcd8d0; }
.performer-options label.performer-temp > span {
  min-width: 0;
  color: #4a7a70;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.4;
}
.performer-options label.performer-temp input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  color: #24343d;
  background: #fff;
  border: 1px solid #d3e2de;
  border-radius: 8px;
  outline: 0;
  font-size: 11.5px;
}
.performer-options label.performer-temp input:focus { border-color: #5c8492; box-shadow: 0 0 0 3px rgba(92,132,146,.10); }
.performer-options label:has(input:checked) { color: #0c7a63; background: #e7f5f0; border-color: #c2e4d8; box-shadow: inset 3px 0 var(--teal); }
.insert-control .performer-picker > summary { height: 38px; font-size: 10.5px; }
.insert-control .performer-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- 全局浮层 · 返回顶部 · Toast · 快捷键 ---------- */
.live-refresh-status { position: fixed; right: 24px; bottom: 22px; z-index: 70; display: inline-flex; align-items: center; gap: 9px; min-height: 38px; padding: 0 15px; color: #3f6d66; background: rgba(243,250,248,.95); border: 1px solid rgba(20,160,133,.26); border-radius: var(--radius-pill); box-shadow: var(--shadow-md); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); cursor: default; }
.live-refresh-status span { width: 8px; height: 8px; border-radius: 50%; background: #2bb99b; box-shadow: 0 0 0 4px rgba(43,185,155,.15); animation: live-dot-pulse 2.6s var(--ease) infinite; }
.live-refresh-status strong { font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.live-refresh-status.has-update { color: #a14a22; background: #fff4ec; border-color: rgba(232,96,46,.42); cursor: pointer; animation: live-update-pulse 1.8s var(--ease) infinite; }
.live-refresh-status.has-update span { background: #ef6938; box-shadow: 0 0 0 4px rgba(239,105,56,.16); }
@keyframes live-update-pulse { 50% { box-shadow: 0 10px 34px rgba(232,96,46,.32); } }
.back-to-top { position: fixed; right: 24px; bottom: 70px; z-index: 65; width: 43px; height: 43px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #143a49, #0a2432); border: 0; border-radius: 14px; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease); }
.back-to-top svg { width: 17px; height: 17px; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.toast-stack { position: fixed; top: 88px; right: 22px; z-index: 90; display: grid; gap: 9px; pointer-events: none; }
.toast { min-width: 230px; max-width: 340px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; color: #1d3a30; background: rgba(255,255,255,.97); border: 1px solid rgba(20,160,133,.32); border-radius: 14px; box-shadow: var(--shadow-md); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transform: translateX(18px); transition: opacity .28s var(--ease), transform .28s var(--ease); }
.toast.show { opacity: 1; transform: translateX(0); }
.toast > span { flex: 0 0 auto; width: 21px; height: 21px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 50%; font-size: 11px; font-weight: 800; }
.toast b { font-size: 11.5px; font-weight: 700; line-height: 1.45; }
.toast-error { border-color: rgba(217,80,60,.34); color: #7c3122; }
.toast-error > span { background: var(--red); }
.kbd-help { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(4,16,24,.68); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: backdrop-in .2s var(--ease); }
.kbd-help-card { width: min(460px, calc(100vw - 32px)); padding: 28px; background: #fbfcfc; border: 1px solid rgba(255,255,255,.65); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: modal-in .22s var(--ease); }
.kbd-help-card .modal-head h2 { font-size: 22px; }
.kbd-help-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.kbd-help-list li { padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #f4f7f7; border: 1px solid #e4e9e9; border-radius: 12px; }
.kbd-help-list li + li { margin-top: 4px; }
.kbd-help-list b { color: #2f424c; font-size: 11.5px; font-weight: 700; }
.kbd-keys { display: inline-flex; align-items: center; gap: 5px; }
.kbd-keys kbd { min-width: 26px; padding: 4px 8px; color: #33464f; background: #fff; border: 1px solid #cfdadd; border-bottom-width: 2.5px; border-radius: 7px; font: 700 10.5px var(--font-mono); text-align: center; }
.kbd-keys i { color: #9aa6ab; font-style: normal; font-size: 10px; }
.kbd-help-hint { margin: 18px 0 0; padding-top: 14px; color: var(--muted); border-top: 1px solid #e6eaea; font-size: 10.5px; line-height: 1.6; }
mark { padding: 1px 3px; margin: 0 1px; color: inherit; background: #ffe1c2; border-radius: 5px; box-shadow: 0 0 0 1px rgba(244,112,61,.18); }

/* ---------- 页脚 ---------- */
.site-footer { margin: 0 42px; padding: 20px 0 26px; display: flex; justify-content: space-between; align-items: center; color: #85939a; border-top: 1px solid #dfe7e8; font-size: 10px; }
.site-footer small { color: #a2adb2; font: 600 9px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- 文件上传卡片 ---------- */
.file-upload-card { margin-bottom: 20px; padding: 26px 28px; display: grid; grid-template-columns: minmax(220px, .75fr) minmax(440px, 1.7fr); gap: 28px; align-items: end; color: #fff; background: radial-gradient(440px 250px at 100% 0, rgba(64,168,188,.24), transparent 55%), linear-gradient(135deg, #0e2c3a, #175068); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.file-upload-card p { margin: 0 0 7px; color: #ff8a5c; font: 800 9.5px var(--font-mono); letter-spacing: .16em; }
.file-upload-card h2 { margin: 0 0 7px; font-size: 19px; font-weight: 800; }
.file-upload-card small { color: #9db2ba; font-size: 10px; line-height: 1.7; }
.file-upload-form { display: grid; grid-template-columns: 1fr .55fr 1.3fr auto; gap: 11px; align-items: end; }
.file-upload-form label { display: grid; gap: 6px; color: #b9c9cf; font-size: 10px; font-weight: 750; }
.file-upload-form input { min-width: 0; height: 43px; padding: 0 12px; color: #1e2d34; background: #fff; border: 1px solid rgba(255,255,255,.32); border-radius: 11px; font-size: 11.5px; outline: 0; }
.file-upload-form input:focus { border-color: #7fd0e0; box-shadow: 0 0 0 3px rgba(127,208,224,.24); }
.file-upload-form input[type="file"] { padding: 8px 9px; color: #526168; font-size: 10px; }
.file-upload-form .save-button { height: 43px; white-space: nowrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .sidebar { width: 234px; min-width: 234px; }
  .topbar, .hero, .run-section, .module-view { padding-left: 28px; padding-right: 28px; }
  .notice-bar { padding-left: 28px; padding-right: 28px; }
  .site-footer { margin-left: 28px; margin-right: 28px; }
  .search { width: 230px; }
  .live-strip { grid-template-columns: 96px minmax(190px, 1.5fr) minmax(170px, 1fr) minmax(180px, 1.15fr); }
  .live-strip > .cue-link { display: none; }
  .run-row { grid-template-columns: 40px 66px minmax(240px, 1fr) 70px 90px 24px; }
  .checkout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .file-upload-card { grid-template-columns: 1fr; gap: 16px; }
  .file-upload-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .performer-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .password-card { grid-template-columns: 1fr; gap: 6px; }
  .new-admin-form { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .new-admin-form { grid-template-columns: 1fr; }
  .new-admin-panel { padding: 15px; }
  .new-admin-head { gap: 10px; }
  .new-admin-foot { flex-direction: column; align-items: stretch; }
  .new-admin-foot .save-button { width: 100%; }
  .new-admin-scope .project-scope-select { min-width: 0; max-width: none; width: 100%; }
}
@media (max-width: 780px) {
  .audit-log-card .settings-card-head { align-items: stretch; flex-direction: column; }
  .audit-export-button { width: 100%; min-height: 44px; }
  .audit-summary { align-items: flex-start; flex-direction: column; gap: 4px; }
  .audit-table-wrap { overflow: visible; border: 0; }
  .audit-table { min-width: 0; display: block; background: transparent; }
  .audit-table thead { display: none; }
  .audit-table tbody { display: grid; gap: 10px; }
  .audit-table tr { padding: 13px 15px; display: grid; gap: 8px; background: #fff; border: 1px solid #dce5e4; border-radius: 13px; box-shadow: var(--shadow-xs); }
  .audit-table td { padding: 0; display: grid; grid-template-columns: 66px minmax(0, 1fr); border: 0; font-size: 11px; }
  .audit-table td::before { content: attr(data-label); color: #96a2a7; font-size: 9px; font-weight: 700; }
  .audit-empty td { display: block; text-align: left; }
  .audit-empty td::before { display: none; }
  .sidebar { box-shadow: 0 8px 28px rgba(7,24,33,.15); }
  .brand { min-height: 74px; padding: 0 18px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 9px; }
  nav { padding: 10px 12px 12px; gap: 6px; background: rgba(0,0,0,.10); scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  .nav-group { display: contents; }
  .nav-group p { display: none; }
  .nav-group a { flex: 0 0 auto; width: auto; height: 38px; margin: 0; padding: 0 14px; border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius-pill); font-size: 11px; }
  .nav-group a::before { display: none; }
  .nav-group a.active { box-shadow: inset 0 0 0 1px rgba(244,112,61,.5), 0 5px 14px rgba(0,0,0,.14); }
  .topbar { height: 62px; padding: 0 16px; }
  .venue { min-width: 0; }
  .venue strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-actions { gap: 6px; }
  .hero { padding: 28px 16px 22px; }
  .hero h1 { font-size: 30px; }
  .live-strip { margin-top: 26px; border-radius: 16px; }
  .on-air, .now-info, .countdown, .next-info { min-height: 88px; padding: 16px; }
  .now-info strong, .next-info strong { font-size: 15px; }
  .notice-bar { padding: 12px 16px; }
  .run-section, .module-view { padding: 26px 16px 52px; }
  .module-title { margin-bottom: 22px; gap: 16px; }
  .module-title h1 { font-size: 27px; }
  .run-stats-bar { gap: 8px 14px; }
  .rs-progress { margin-left: 0; min-width: 0; flex: 1 1 100%; }
  .row-end-hint { display: none; }
  .file-upload-card, .qr-checkin-card, .settings-card, .editable-module { padding: 21px; border-radius: 15px; }
  .qr-checkin-card img { width: 180px; height: 180px; }
  .site-footer { margin: 0 16px; }
  .live-refresh-status { right: 12px; bottom: 12px; }
  .license-details { grid-template-columns: 1fr; }
  .file-upload-form { grid-template-columns: 1fr; }
  .app-shell { display: block; }
  .sidebar { width: 100%; min-width: 0; height: auto; position: static; display: block; }
  .show-switcher, .sidebar-foot { display: none; }
  nav { display: flex; overflow-x: auto; }
  .icon-button { display: none; }
  .show-progress { grid-template-columns: 1fr; }
  .show-progress-meta { justify-content: space-between; }
  .checkin-bulk-actions { margin-left: 0; width: 100%; }
  .checkin-bulk-actions form { flex: 1; }
  .checkin-bulk-actions .module-action { width: 100%; }
  .toast-stack { top: 70px; right: 12px; left: 12px; }
  .toast { min-width: 0; max-width: none; }
  .back-to-top { right: 12px; bottom: 62px; }
}
@media (max-width: 480px) {
  /* 仅折叠带 ＋ 图标的按钮；游客的「管理员登录」无 span，必须保留文字 */
  .top-actions .announce-button:has(span) { font-size: 0; width: 40px; padding: 0; }
  .top-actions .announce-button:has(span) span { margin: 0; font-size: 17px; }
  .hero-head { gap: 12px; }
  .show-clock strong { font-size: 21px; }
  .module-title { align-items: flex-start; }
  .module-title-actions { flex-wrap: wrap; justify-content: flex-end; }
  .form-pair { grid-template-columns: 1fr; }
  .file-upload-card, .settings-card, .editable-module, .modal { padding: 19px; }
  .editor-actions { align-items: stretch; flex-direction: column; }
  .editor-actions button, .editor-actions .add-record-button { width: 100%; }
  .stat-card { padding: 18px 20px; }
  .live-refresh-status strong { font-size: 10px; }
  .qr-checkin-card { display: grid; justify-items: center; text-align: center; }
}

/* ---------- Phone-first 数据视图 ---------- */
@media (max-width: 640px) {
  body { overflow-x: hidden; }
  .app-shell, .workspace { width: 100%; max-width: 100%; }
  .status-option-manager { align-items: stretch; flex-direction: column; }
  .status-option-list { justify-content: flex-start; }
  .sidebar { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(145px, .9fr) minmax(170px, 1.1fr); align-items: center; }
  .brand { min-height: 66px; padding: 0 15px; border-bottom: 0; }
  .brand strong { font-size: 14px; letter-spacing: .12em; white-space: nowrap; }
  .brand small { display: none; }
  .brand-mark { width: 35px; height: 35px; border-radius: 11px; }
  .brand-mark img { width: 30px; height: 30px; }
  .sidebar .show-switcher { min-width: 0; margin: 8px 10px 8px 0; padding: 10px 11px; display: flex; border-radius: 12px; }
  .show-switcher small { margin-bottom: 2px; font-size: 8.5px; }
  .show-switcher select { font-size: 11px; }
  .show-switcher .chevron { padding: 2px; }
  nav { grid-column: 1 / -1; width: 100%; }
  .topbar { height: 58px; }
  .venue { max-width: 55%; }
  .venue strong { font-size: 13px; }
  .guest-session .top-actions .announce-button { width: auto; padding: 0 12px; font-size: 11px; }
  .admin-session .top-actions .announce-button { width: 40px; padding: 0; font-size: 0; }
  .admin-session .top-actions .announce-button span { margin: 0; font-size: 17px; }
  .logout-form button { padding: 0 5px; }
  .hero { padding-top: 24px; }
  .hero-head { align-items: flex-end; }
  .hero-head > div:first-child { min-width: 0; }
  .hero h1 { font-size: 28px; }
  .hero-head > div > p:last-child { max-width: 220px; font-size: 10px; line-height: 1.55; }
  .show-clock { flex: 0 0 auto; }
  .show-clock strong { font-size: 20px; }
  .live-strip { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-areas: "air countdown" "now now" "next next"; }
  .on-air { grid-area: air; min-width: 0; min-height: 72px; border-right: 1px solid rgba(255,255,255,.09); }
  .countdown { grid-area: countdown; min-width: 0; min-height: 72px; padding: 14px 16px; border-right: 0; }
  .now-info { grid-area: now; min-width: 0; min-height: 84px; padding: 17px 19px; border-top: 1px solid rgba(255,255,255,.09); border-right: 0; }
  .next-info { grid-area: next; min-width: 0; min-height: 84px; padding: 17px 19px; border-top: 1px solid rgba(255,255,255,.09); border-right: 0; }
  .now-info strong, .next-info strong { overflow-wrap: anywhere; font-size: 16px; }
  .countdown strong { font-size: 23px; }
  .countdown small { margin-bottom: 7px; }
  .cue-link { display: none; }
  .notice-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; }
  .notice-bar strong { min-width: 0; overflow-wrap: anywhere; line-height: 1.55; }
  .notice-bar a, .notice-bar button { margin-left: 0; white-space: nowrap; }
  .notice-bar small { display: none; }
  .section-head { align-items: flex-start; gap: 12px; }
  .section-head > div { min-width: 0; }
  .section-head h2 { display: block; margin: 0 0 4px; font-size: 19px; }
  .section-head > div > span { display: block; line-height: 1.5; }
  .run-table { display: grid; gap: 13px; overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  .run-header { display: none; }
  .run-row { width: 100%; min-height: 0; padding: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "index time state" "program program program" "duration duration duration"; gap: 12px 13px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-sm); }
  .run-row.current { background: linear-gradient(135deg, #e9f6f1, #fff 78%); box-shadow: inset 4px 0 var(--teal), var(--shadow-sm); }
  .run-row > .index { grid-area: index; width: 34px; height: 34px; display: grid; place-items: center; color: #557078; background: #edf3f3; border-radius: 10px; font-size: 10.5px; }
  .run-row > .time { grid-area: time; font-size: 14px; }
  .run-row > .program { grid-area: program; min-width: 0; padding: 12px 0; border-top: 1px solid #edf0ef; border-bottom: 1px solid #edf0ef; }
  .program strong { font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
  .program small { margin-top: 4px; font-size: 10px; }
  .program em { margin-top: 8px; white-space: normal; overflow: visible; line-height: 1.6; }
  .run-row > .duration { grid-area: duration; text-align: left; }
  .run-row > .duration::before { content: "时长 "; color: #8b969b; font-size: 9.5px; font-family: var(--font-sans); }
  .run-row > span:nth-child(5) { grid-area: state; justify-self: end; }
  .run-row > .row-more { display: none; }
  .run-table > .run-header { display: none; }
  .data-table, .file-table { display: grid; gap: 13px; overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  .data-table .data-head { display: none; }
  .data-table .data-row, .file-table .data-row { min-width: 0; min-height: 0; padding: 17px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-sm); }
  .data-table > .data-head, .file-table > .data-head { display: none; }
  .data-table .data-row:first-of-type { border-top: 1px solid var(--line); }
  .data-row > span { min-width: 0; overflow-wrap: anywhere; line-height: 1.55; }
  .data-row > span::before { content: attr(data-label); margin-bottom: 5px; display: block; color: #8a969b; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
  .data-row > .primary-cell { grid-column: 1 / -1; padding-bottom: 12px; border-bottom: 1px solid #edf0ef; font-size: 15px; }
  .data-row > .file-actions { display: flex; align-items: flex-start; flex-wrap: wrap; }
  .data-row > .file-actions::before { width: 100%; }
  .check-button { min-height: 36px; }
  .module-title { align-items: flex-start; flex-wrap: wrap; }
  .module-title > div { min-width: 0; }
  .module-title h1 { overflow-wrap: anywhere; line-height: 1.2; }
  .module-title-actions { margin-left: auto; }
  .file-access-badge { max-width: 100%; white-space: normal; text-align: center; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .stat-card { padding: 15px 12px; }
  .stat-card strong { font-size: 22px; }
  .stat-card span { font-size: 9.5px; }
  .qr-checkin-card { grid-template-columns: 1fr; text-align: center; }
  .qr-checkin-card a { font-size: 8px; }
  .self-checkin-card { gap: 22px; }
  .self-checkin-card > div { text-align: center; }
  .self-checkin-card > div > span { margin: 0 auto; }
  .checkout-add-form, .checkout-grid { grid-template-columns: 1fr; }
  .checkout-card dl { gap: 9px; }
  .checkout-actions { align-items: stretch; flex-direction: column; }
  .checkout-actions form, .checkout-actions button { width: 100%; }
  .checkout-form input { min-height: 40px; }
  .checkout-form button { min-height: 40px; }
  .file-upload-form input, .settings-form input, .settings-form select, .password-change-form input, .run-edit-grid input, .run-edit-grid select { min-height: 44px; }
  .editable-module { padding: 15px; }
  .edit-table { margin-left: -4px; margin-right: -4px; }
  .edit-row { min-width: 640px; }
  .edit-row input, .gear-status-control select, .gear-status-control input { height: 48px; }
  .run-edit-table fieldset { padding: 15px; }
  .run-edit-grid { grid-template-columns: 1fr; }
  .run-edit-grid label.wide { grid-column: auto; }
  .run-edit-grid .performer-picker { grid-column: auto; }
  .run-edit-head { align-items: stretch; flex-direction: column; gap: 10px; }
  .run-edit-head-left { width: 100%; }
  .run-row-actions { justify-content: flex-end; }
  .move-row-button, .remove-row-button { min-height: 36px; padding: 7px 11px; font-size: 9.5px; }
  .account-summary { align-items: flex-start; flex-wrap: wrap; }
  .account-summary label { min-width: 190px; }
  .bulletin { padding: 20px; }
  .bulletin > div:first-child { align-items: flex-start; flex-wrap: wrap; }
  .bulletin-admin { flex-direction: column; }
  .bulletin-admin details { min-width: 0; width: 100%; }
  .bulletin-edit-top > button { min-height: 40px; }
  .md-editor textarea[data-md-textarea], .md-preview { min-height: 200px; }
  .priority-row { align-items: flex-start; flex-wrap: wrap; }
  .priority-row legend { width: 100%; margin-bottom: 5px; }
  .modal { max-height: calc(100vh - 24px); overflow-y: auto; }
  .performer-picker > summary { min-height: 44px; height: auto; padding-top: 10px; padding-bottom: 10px; }
  .performer-options, .insert-control .performer-options { position: static; margin-top: 8px; grid-template-columns: 1fr; }
  .performer-options label { min-height: 44px; align-items: center; }
  .performer-options input { width: 18px; height: 18px; }
  .performer-options strong { font-size: 11px; }
  .performer-options small { font-size: 9px; }
  .live-performers { white-space: normal; }
  .insert-control > form { max-height: 70vh; overflow-y: auto; }
  .insert-control > small { display: none; }
  .run-table { gap: 15px; }
  .checkin-search { max-width: none; }
  .checkin-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .checkin-tabs button { justify-content: center; }
  /* 行内快捷状态菜单已移除 */
  .site-footer { align-items: flex-start; flex-direction: column; gap: 5px; }
  .live-refresh-status { max-width: calc(100vw - 24px); }
}

/* ---------- 空状态 · 减少动效 · 超宽屏 ---------- */
.run-table:not(:has(.run-row:not(.run-header))) { min-height: 190px; display: grid; place-items: center; align-content: center; gap: 6px; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); }
.run-table:not(:has(.run-row:not(.run-header)))::after { content: "🎭 暂无节目 · 点击右上角「编辑节目单」添加第一项"; color: var(--faint); font-size: 12.5px; letter-spacing: .02em; }
.run-table:not(:has(.run-row:not(.run-header))) .run-header { display: none; }
.data-table:not(:has(.data-row:not(.data-head))) { min-height: 150px; display: grid; place-items: center; align-content: center; }
.data-table:not(:has(.data-row:not(.data-head)))::after { content: "暂无记录 · 点击右上角「编辑数据」添加"; color: var(--faint); font-size: 12px; }
.data-table:not(:has(.data-row:not(.data-head))) .data-head { display: none; }
.bulletin-list:empty::after { content: "暂无公告"; display: block; padding: 26px; color: var(--faint); background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); text-align: center; font-size: 12px; }

/* 英文模式下的空状态与提示文案 */
body.lang-en .run-table:not(:has(.run-row:not(.run-header)))::after { content: "🎭 No items yet · click \"Edit run sheet\" to add the first one"; }
body.lang-en .data-table:not(:has(.data-row:not(.data-head)))::after { content: "No records · click \"Edit data\" to add"; }
body.lang-en .bulletin-list:empty::after { content: "No bulletins"; }
body.lang-en .run-row.late .time::after { content: "Late"; }
body.lang-en .run-row > .duration::before { content: "Duration "; }
body.lang-en .run-row > .dept::before { content: "Dept "; }
.btn-icon, .admin-button svg { width: 15px; height: 15px; flex: 0 0 auto; }
@media (min-width: 1780px) {
  .module-view, .run-section { padding-left: max(42px, calc((100vw - 1720px) / 2)); padding-right: max(42px, calc((100vw - 1720px) / 2)); }
  .topbar, .hero { padding-left: max(42px, calc((100vw - 1720px) / 2)); padding-right: max(42px, calc((100vw - 1720px) / 2)); }
  .notice-bar { padding-left: max(42px, calc((100vw - 1720px) / 2)); padding-right: max(42px, calc((100vw - 1720px) / 2)); }
  .site-footer { margin-left: max(42px, calc((100vw - 1720px) / 2)); margin-right: max(42px, calc((100vw - 1720px) / 2)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Print · A4 签到表导出 ---------- */
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  html, body { width: auto; min-height: 0; background: #fff !important; color: #17232a; }
  body { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 10pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .sidebar, .topbar, .hero, .notice-bar, .site-footer, .live-refresh-status, .module-title-actions, .qr-checkin-card, .success-note, .error-note, .live-control-actions, .self-checkin-card { display: none !important; }
  .app-shell, .workspace { display: block !important; width: auto !important; min-height: 0 !important; }
  .module-view, .run-section { width: auto !important; max-width: none !important; padding: 0 !important; }
  .page-checkin .module-title { margin: 0 0 8mm; padding-bottom: 4mm; display: block; border-bottom: 2px solid #173745; }
  .page-checkin .module-title p { margin: 0 0 2mm; color: #66777e; font-size: 8pt; letter-spacing: .08em; }
  .page-checkin .module-title h1 { margin: 0; color: #122832; font-size: 22pt; line-height: 1.15; }
  .page-checkin .print-checkin-meta { margin: -5mm 0 6mm; display: grid !important; grid-template-columns: 1fr auto; gap: 1mm 8mm; color: #53656d; }
  .page-checkin .print-checkin-meta strong { color: #19333e; font-size: 12pt; }
  .page-checkin .print-checkin-meta span { grid-column: 1; font-size: 8pt; }
  .page-checkin .print-checkin-meta small { grid-column: 2; grid-row: 1 / 3; align-self: end; font-size: 7.5pt; }
  .page-checkin .stat-grid { margin: 0 0 6mm; display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 4mm; }
  .page-checkin .stat-card { min-height: 22mm; padding: 4mm 5mm; background: #f5f8f7 !important; border: 1px solid #d6e1e0 !important; border-top: 3px solid var(--teal) !important; border-radius: 2mm; box-shadow: none !important; }
  .page-checkin .stat-card.orange { border-top-color: var(--orange) !important; }
  .page-checkin .stat-card.blue { border-top-color: var(--blue) !important; }
  .page-checkin .stat-card strong { color: #17313b; font-size: 20pt; line-height: 1; }
  .page-checkin .stat-card span { margin-top: 2mm; color: #68787e; font-size: 8pt; }
  .page-checkin .data-table { display: block !important; overflow: visible !important; background: #fff !important; border: 1px solid #bdcbce !important; border-radius: 0 !important; box-shadow: none !important; }
  .page-checkin .data-table .data-row, .page-checkin .data-table .data-head { width: 100% !important; min-width: 0 !important; min-height: 11mm !important; padding: 0 4mm !important; display: grid !important; grid-template-columns: 1.45fr 1.2fr .8fr .8fr !important; gap: 4mm !important; align-items: center !important; background: #fff !important; border: 0 !important; border-top: 1px solid #d9e1e2 !important; border-radius: 0 !important; box-shadow: none !important; break-inside: avoid; }
  .page-checkin .data-table .data-head { min-height: 10mm !important; color: #4f626a; background: #eaf0f0 !important; border-top: 0 !important; font-size: 8pt; font-weight: 700; }
  .page-checkin .data-row > span { min-width: 0; color: #30434b; font-size: 9pt; line-height: 1.35; overflow: visible; }
  .page-checkin .data-row > span::before { display: none !important; content: none !important; }
  .page-checkin .data-row > .primary-cell { grid-column: auto !important; padding: 0 !important; color: #142b35; border: 0 !important; font-size: 10pt; font-weight: 700; }
  .page-checkin .data-row form { margin: 0; }
  .page-checkin .check-button, .page-checkin .readonly-status { min-width: 0; min-height: 0; padding: 2mm 3mm; display: inline-flex !important; color: #4e5d62 !important; background: #f1f3f2 !important; border: 1px solid #d4dbda !important; border-radius: 99px; box-shadow: none !important; font-size: 8pt; }
  .page-checkin .check-button.checked, .page-checkin .readonly-status.yes { color: #0c7a63 !important; background: #e4f2ec !important; border-color: #c5dfd5 !important; }
  .page-checkin .data-table { display: none !important; }
  .page-checkin .print-checkin-table { width: 100%; display: table !important; table-layout: fixed; border-collapse: collapse; border: 1px solid #bdcbce; font-size: 9pt; }
  .page-checkin .print-checkin-table thead { display: table-header-group; }
  .page-checkin .print-checkin-table tr { break-inside: avoid; }
  .page-checkin .print-checkin-table th { padding: 3mm 4mm; color: #3c535d; background: #eaf0f0 !important; border: 1px solid #c9d4d5; text-align: left; font-size: 8pt; font-weight: 700; }
  .page-checkin .print-checkin-table td { height: 11mm; padding: 2.5mm 4mm; color: #30434b; border: 1px solid #d9e1e2; vertical-align: middle; }
  .page-checkin .print-checkin-table th:nth-child(1), .page-checkin .print-checkin-table td:nth-child(1) { width: 27%; color: #142b35; font-weight: 700; }
  .page-checkin .print-checkin-table th:nth-child(2), .page-checkin .print-checkin-table td:nth-child(2) { width: 31%; }
  .page-checkin .print-checkin-table th:nth-child(3), .page-checkin .print-checkin-table td:nth-child(3) { width: 18%; font-family: ui-monospace, monospace; }
  .page-checkin .print-checkin-table th:nth-child(4), .page-checkin .print-checkin-table td:nth-child(4) { width: 24%; }
  .page-checkin .print-checkin-table tbody tr:nth-child(even) td { background: #f8faf9 !important; }
  .page-checkin .print-checkin-status { padding: 1.5mm 2.5mm; display: inline-block; color: #6a7478; background: #f0f2f1 !important; border-radius: 99px; font-size: 8pt; }
  .page-checkin .print-checkin-status.yes { color: #0c7a63; background: #e4f2ec !important; }
}

/* ============================================================
   全局视觉精修 · 2026
   统一标题区 / 卡片 / 表格 / 表单 / 按钮 / 动效
   ============================================================ */

/* ---------- 1. 页面标题区 ---------- */
.module-title { position: relative; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.module-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 78px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(244, 112, 61, 0));
}
.module-title h1 { letter-spacing: -.025em; }
.module-title p { letter-spacing: .2em; }

/* ---------- 2. 入场动效（错落淡入） ---------- */
@keyframes view-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.module-view > *, .run-section > * { animation: view-rise .34s var(--ease) both; }
.module-view > *:nth-child(2), .run-section > *:nth-child(2) { animation-delay: .04s; }
.module-view > *:nth-child(3), .run-section > *:nth-child(3) { animation-delay: .08s; }
.module-view > *:nth-child(4), .run-section > *:nth-child(4) { animation-delay: .12s; }
.module-view > *:nth-child(5) { animation-delay: .16s; }
.module-view > *:nth-child(n+6) { animation-delay: .2s; }

/* ---------- 3. 卡片体系统一 ---------- */
.settings-card, .bulletin, .checkout-card, .stat-card, .data-table, .editable-module, .audit-log-card {
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease), background-color .22s var(--ease);
}
.settings-card:hover, .data-table:hover, .editable-module:hover { border-color: #cfdde0; box-shadow: var(--shadow-md); }
.settings-card { position: relative; overflow: hidden; }
.settings-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(20, 160, 133, 0), rgba(20, 160, 133, .28), rgba(20, 160, 133, 0));
  pointer-events: none;
}

/* ---------- 4. 数据表精细处理 ---------- */
.data-row { position: relative; }
.data-row:not(.data-head)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal), #4cc3a3);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.data-row:not(.data-head):hover::before { opacity: .95; }
.data-row:not(.data-head):hover { background: linear-gradient(90deg, #f3fbf8, #fbfdfc 55%); }
.data-row > .primary-cell { font-weight: 750; }
.data-head span { letter-spacing: .12em; }

/* ---------- 5. 统计卡增强 ---------- */
.stat-card { position: relative; overflow: hidden; }
.stat-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 160, 133, .10), transparent 70%);
  pointer-events: none;
}
.stat-card.green::after { background: radial-gradient(circle, rgba(20, 160, 133, .14), transparent 70%); }
.stat-card.orange::after { background: radial-gradient(circle, rgba(244, 112, 61, .13), transparent 70%); }
.stat-card.blue::after { background: radial-gradient(circle, rgba(60, 132, 178, .13), transparent 70%); }
.stat-card strong {
  background: linear-gradient(135deg, #14303c, #3c6d80);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 6. 按钮体系统一 ---------- */
.save-button, .module-action, .admin-button, .announce-button, .add-record-button, .archive-button,
.download-link, .audit-export-button, .delete-button, .return-button, .checkout-form button, .locate-current, .lang-toggle {
  transition: transform .16s var(--ease), box-shadow .2s var(--ease), background-color .18s var(--ease),
    border-color .18s var(--ease), color .18s var(--ease), opacity .18s var(--ease);
}
.save-button:active, .add-record-button:active, .module-action:active, .archive-button:active,
.download-link:active, .admin-button:active, .locate-current:active, .lang-toggle:active {
  transform: translateY(1px) scale(.995);
}
.save-button:disabled, .add-record-button:disabled, button:disabled { cursor: not-allowed; }
.announce-button::after, .module-title > button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, .16), transparent 45%);
  opacity: 0;
  transition: opacity .22s var(--ease);
  pointer-events: none;
}
.announce-button, .module-title > button { position: relative; overflow: hidden; }
.announce-button:hover::after, .module-title > button:hover::after { opacity: 1; }

/* ---------- 7. 表单控件统一 ---------- */
input, select, textarea { caret-color: var(--teal); }
input::placeholder, textarea::placeholder { color: #a9b4b8; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--teal); }
select { cursor: pointer; }
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) { border-color: #c6d6d9; }
input:disabled, select:disabled { background: #f2f5f5; color: #9aa6ab; cursor: not-allowed; }

/* ---------- 8. 侧栏与顶栏细节 ---------- */
.nav-group + .nav-group { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .055); }
.topbar { position: sticky; }
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 160, 133, .38), rgba(244, 112, 61, .22), transparent);
  pointer-events: none;
}
.brand-mark { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.brand:hover .brand-mark { transform: translateY(-1px) rotate(-2deg); box-shadow: 0 10px 26px rgba(0, 0, 0, .34), 0 0 26px rgba(66, 158, 180, .26); }

/* ---------- 9. 徽章与胶囊统一 ---------- */
.status, .readonly-status, .file-access-badge, .audit-action-badge, .admin-state, .guest-badge,
.license-status, .performer-chip, .performer-more, .row-end-hint {
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.performer-chip:hover { transform: translateY(-1px); border-color: #b6d9cf; }
.status-live::before { animation: live-dot-pulse 2s var(--ease) infinite; }

/* ---------- 10. 公告正文链接与代码 ---------- */
.bulletin-body a {
  background-image: linear-gradient(90deg, rgba(47, 125, 166, .35), rgba(47, 125, 166, .35));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  text-decoration: none;
  transition: background-size .2s var(--ease), color .18s var(--ease);
}
.bulletin-body a:hover { background-size: 100% 2px; }

/* ---------- 11. 空状态统一 ---------- */
.data-table:not(:has(.data-row:not(.data-head)))::after,
.run-table:not(:has(.run-row:not(.run-header)))::after,
.bulletin-list:empty::after {
  font-weight: 600;
}

/* ---------- 12. 打印兼容（渐变文字回退） ---------- */
@media print {
  .stat-card strong {
    background: none !important;
    -webkit-text-fill-color: #14252f !important;
    color: #14252f !important;
  }
  .module-view > *, .run-section > * { animation: none !important; }
}

/* ---------- 13. 小屏细节 ---------- */
@media (max-width: 640px) {
  .module-title { padding-bottom: 14px; }
  .module-title::after { width: 58px; }
  /* 卡片式布局下隐藏左侧指示条，避免与圆角卡片冲突 */
  .data-row:not(.data-head)::before { display: none; }
  .settings-card:hover, .data-table:hover, .editable-module:hover { transform: none; box-shadow: var(--shadow-sm); }
  .stat-card::after { width: 76px; height: 76px; right: -26px; top: -26px; }
  .nav-group + .nav-group { border-top: 0; padding-top: 0; }
  .topbar::after { background: linear-gradient(90deg, transparent, rgba(20, 160, 133, .3), transparent); }
}

/* ---------- 14. 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .module-view > *, .run-section > * { animation: none !important; }
  .brand:hover .brand-mark { transform: none; }
}

/* ============================================================
   移动端抽屉导航 · 二级菜单（分组可折叠）
   ============================================================ */
.sidebar-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #2d5a6d;
  background: #edf3f4;
  border: 1px solid #d3e3e5;
  border-radius: 11px;
}
.sidebar-toggle:hover { color: #123e52; background: #e1eef0; border-color: #c3dadd; }
.sidebar-toggle svg { width: 18px; height: 18px; }
.sidebar-close { display: none; }
.sidebar-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(4, 16, 24, .52);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: backdrop-in .2s var(--ease);
}

@media (min-width: 781px) {
  .sidebar-scrim { display: none !important; }
  .sidebar-close { display: none !important; }
}

@media (max-width: 780px) {
  .sidebar-toggle { display: inline-flex; }
  .topbar { gap: 10px; }
  .venue { flex: 1; min-width: 0; max-width: none; }

  /* 侧栏 → 左侧抽屉（含品牌 / 项目选择 / 分组导航 / 用户信息） */
  .app-shell { display: block; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 330px);
    min-width: 0;
    height: 100vh;
    z-index: 60;
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    transform: translateX(-104%);
    transition: transform .28s var(--ease);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 20px 0 54px rgba(4, 18, 26, .38);
  }
  .sidebar.open { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .sidebar-close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 14px;
    right: 12px;
    z-index: 3;
    width: 34px;
    height: 34px;
    color: #b9cbd3;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    font-size: 19px;
    line-height: 1;
  }
  .sidebar-close:hover { color: #fff; background: rgba(255, 255, 255, .18); }

  /* 抽屉内恢复完整结构 */
  .brand { min-height: 74px; padding: 0 56px 0 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .brand small { display: block; font-size: 9px; }
  .show-switcher { display: flex; margin: 15px 14px 4px; padding: 13px 12px; }
  .sidebar-foot { display: flex; margin-top: auto; }
  nav { display: block; flex: 1; overflow: visible; padding: 0 10px 16px; background: transparent; }
  .nav-group { display: block; margin-top: 14px; }
  .nav-group + .nav-group { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .055); }

  /* 一级：分组标题（可点击折叠） */
  .nav-group > p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 4px 6px;
    padding: 9px 11px;
    color: #8ba4b0;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 10px;
    font-size: 10px;
    letter-spacing: .16em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-group > p::after { content: "⌄"; font-size: 12px; letter-spacing: 0; transition: transform .22s var(--ease); }
  .nav-group.collapsed > p::after { transform: rotate(-90deg); }

  /* 二级：组内模块 */
  .nav-group.collapsed > a { display: none; }
  .nav-group a {
    width: 100%;
    height: auto;
    min-height: 46px;
    margin: 3px 0;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 13.5px;
  }
  .nav-group a::before { display: none; }
  .nav-icon { display: grid; }
}

@media (max-width: 640px) {
  .sidebar { width: min(88vw, 320px); display: flex; grid-template-columns: none; }
  .sidebar .show-switcher { display: flex; margin: 14px 12px 4px; }
  .brand { min-height: 70px; }
  nav { grid-column: auto; width: auto; }
}

/* ============================================================
   移动端精修 · 顶栏 与 二级菜单
   ============================================================ */

/* 分组计数徽标（桌面端也显示，风格更轻） */
.nav-group-count {
  flex: 0 0 auto;
  min-width: 20px;
  padding: 1px 6px;
  display: inline-grid;
  place-items: center;
  color: #7d97a3;
  background: rgba(255, 255, 255, .07);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0;
}
.nav-group > p { display: flex; align-items: center; gap: 8px; }
.nav-group > p > span:first-child { flex: 1; min-width: 0; }

@media (max-width: 780px) {
  /* ---------- 手机顶栏：可换行，避免固定宽度搜索框把内容顶出屏幕 ---------- */
  .topbar {
    height: auto;
    min-height: 64px;
    padding: 9px 12px;
    flex-wrap: wrap;
    align-content: center;
    column-gap: 10px;
    row-gap: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(252, 254, 254, .92));
    border-bottom-color: rgba(196, 213, 216, .92);
    box-shadow: 0 8px 26px rgba(16, 40, 50, .08);
  }
  /* 让按钮 / 搜索框直接成为顶栏的 flex 项，从而可以整体换行布局 */
  .top-actions { display: contents; }
  .sidebar-toggle {
    order: 1;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    color: #fff;
    background: linear-gradient(140deg, #16404f, #0a2432);
    border: 0;
    border-radius: 13px;
    box-shadow: 0 7px 18px rgba(9, 37, 50, .24), inset 0 1px rgba(255, 255, 255, .12);
  }
  .sidebar-toggle:active { transform: translateY(1px) scale(.97); }
  .sidebar-toggle svg { width: 19px; height: 19px; }

  /* 场次信息：改为上下两行，长名称省略号截断 */
  .topbar .venue {
    order: 2;
    flex: 1 1 0%;
    min-width: 0;
    display: grid;
    gap: 4px;
    align-content: center;
  }
  .topbar .venue strong {
    font-size: 14px;
    letter-spacing: -.01em;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar .venue span {
    justify-self: start;
    max-width: 100%;
    padding: 2px 8px;
    color: #53727f;
    background: #eef5f6;
    border: 1px solid #deeaea;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1.5;
  }

  .topbar .lang-toggle,
  .topbar .admin-button,
  .topbar .announce-button,
  .topbar .guest-badge,
  .topbar .logout-form { flex: 0 0 auto; }
  .topbar .lang-toggle { order: 3; }
  .topbar .guest-badge { order: 5; }
  .topbar .announce-button { order: 6; }
  .topbar .logout-form { order: 7; }
  /* 抽屉里已有「项目与设置」入口，手机上省略顶栏的管理中心按钮 */
  .topbar .admin-button { display: none; }
  .topbar .logout-form { display: flex; align-items: center; }
  .topbar .lang-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    color: #2d5a6d;
    background: #f1f7f7;
    border: 1px solid #dbe7e8;
    border-radius: 12px;
    font-size: 11px;
  }
  .topbar .announce-button {
    height: 42px;
    padding: 0 14px;
    border-radius: 13px;
  }
  .topbar .logout-form button {
    height: 42px;
    padding: 0 10px;
    border: 1px solid #e3eaea;
    border-radius: 12px;
    background: #f7fafa;
  }
  /* 搜索框：可收缩，且不再固定 230px；排在语言键之后 */
  .topbar .search {
    order: 4;
    flex: 0 1 auto;
    width: 200px;
    min-width: 116px;
    height: 38px;
    margin: 0;
  }

  /* ---------- 抽屉容器 ---------- */
  .sidebar {
    width: min(88vw, 338px);
    /* 关键：抵消遗留的 align-items:center，否则子项会按内容收缩成不同宽度 */
    align-items: stretch;
    justify-content: flex-start;
    background:
      radial-gradient(420px 300px at 10% -2%, rgba(66, 158, 180, .28), transparent 62%),
      radial-gradient(520px 420px at 112% 106%, rgba(244, 112, 61, .10), transparent 60%),
      linear-gradient(178deg, #0c2634 0%, #081d29 54%, #06161f 100%);
    border-right: 1px solid rgba(151, 189, 201, .16);
    scrollbar-width: none;
  }
  .sidebar::-webkit-scrollbar { width: 0; }

  /* 抽屉头部 */
  .brand { min-height: 80px; padding: 0 58px 0 18px; align-self: stretch; }
  .brand-mark { width: 42px; height: 42px; border-radius: 14px; }
  .brand-mark img { width: 32px; height: 32px; }
  .brand strong { font-size: 15.5px; }
  .sidebar-close {
    top: 20px;
    right: 14px;
    width: 37px;
    height: 37px;
    color: #d3e2e8;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    box-shadow: inset 0 1px rgba(255, 255, 255, .08);
  }
  .sidebar-close:active { transform: scale(.94); background: rgba(255, 255, 255, .16); }

  /* 项目选择卡片 */
  .sidebar .show-switcher {
    flex: 0 0 auto;
    width: auto;
    align-self: stretch;
    margin: 15px 14px 6px;
    padding: 15px 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .045));
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .20), inset 0 1px rgba(255, 255, 255, .07);
  }
  .sidebar .show-switcher small { font-size: 10px; letter-spacing: .06em; }
  .sidebar .show-switcher select { font-size: 13.5px; }

  /* ---------- 一级菜单：分组卡片 ---------- */
  nav { align-self: stretch; width: auto; padding: 2px 12px 18px; }
  .nav-group { align-self: stretch; margin-top: 12px; }
  .nav-group + .nav-group { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .06); }
  .nav-group > p {
    position: relative;
    /* 左右外边距必须与二级项一致，宽度才会完全对齐 */
    margin: 0 0 10px;
    padding: 12px 12px 12px 15px;
    color: #93acb8;
    background: linear-gradient(135deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .028));
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 13px;
    font-size: 10.5px;
    letter-spacing: .16em;
  }
  .nav-group > p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 16px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #ff9a6e, var(--orange));
    opacity: .5;
    transform: translateY(-50%);
    transition: height .22s var(--ease), opacity .22s var(--ease);
  }
  .nav-group > p::after { font-size: 12px; color: #7f98a4; }
  .nav-group > p:active { background: rgba(255, 255, 255, .1); }
  /* 当前所在分组高亮 */
  .nav-group.current-group > p {
    color: #fff;
    background: linear-gradient(135deg, rgba(244, 112, 61, .18), rgba(22, 62, 82, .34));
    border-color: rgba(244, 112, 61, .36);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
  }
  .nav-group.current-group > p::before { height: 24px; opacity: 1; }
  .nav-group.current-group .nav-group-count { color: #ffd0bb; background: rgba(244, 112, 61, .22); }
  .nav-group.collapsed > p { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .07); }
  /* 折叠后仍保留「当前所在分组」提示 */
  .nav-group.current-group.collapsed > p {
    color: #eaf3f7;
    background: linear-gradient(135deg, rgba(244, 112, 61, .13), rgba(22, 62, 82, .30));
    border-color: rgba(244, 112, 61, .26);
  }
  .nav-group.current-group.collapsed > p::before { height: 22px; opacity: .9; }

  /* ---------- 二级菜单：模块项 ---------- */
  .nav-group a {
    /* width:100% 叠加左右 margin 会比分组标题宽 4px，这里改回 auto 由容器撑满 */
    width: auto;
    align-self: stretch;
    min-height: 50px;
    margin: 4px 0;
    padding: 0 13px;
    gap: 11px;
    color: #b6c6cd;
    background: rgba(255, 255, 255, .022);
    border: 1px solid rgba(255, 255, 255, .045);
    border-radius: 13px;
    font-size: 13.5px;
  }
  .nav-group a .nav-icon {
    width: 31px;
    height: 31px;
    border-radius: 10px;
    color: #8fb0bd;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .075);
  }
  .nav-group a .nav-icon svg { width: 15px; height: 15px; }
  .nav-group a b {
    min-width: 21px;
    height: 21px;
    box-shadow: 0 4px 12px rgba(232, 96, 46, .4);
  }
  .nav-group a:active {
    transform: scale(.985);
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .12);
  }
  .nav-group a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(35, 88, 108, .98), rgba(24, 66, 84, .9));
    border-color: rgba(255, 255, 255, .07);
    box-shadow: inset 3px 0 var(--orange), 0 10px 24px rgba(0, 0, 0, .20);
  }
  .nav-group a.active .nav-icon {
    color: #ff9a6e;
    background: rgba(244, 112, 61, .18);
    border-color: rgba(244, 112, 61, .3);
    box-shadow: 0 0 14px rgba(244, 112, 61, .22);
  }

  /* ---------- 抽屉底部用户区 ---------- */
  .sidebar-foot {
    flex: 0 0 auto;
    align-self: stretch;
    padding: 15px 17px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .24));
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .sidebar-foot .avatar { width: 40px; height: 40px; }
  .sidebar-foot strong { font-size: 13px; }
}

@media (max-width: 640px) {
  /* 手机：第一行 菜单键 + 场次 + 语言键；第二行 搜索框 + 操作按钮 */
  .topbar { row-gap: 0; }
  /* 0 高度断行占位元素：确保第二行整行留给搜索框与按钮，且不被拆成两行 */
  .topbar::before { content: ""; order: 4; flex: 0 0 100%; height: 0; }
  .topbar .search {
    order: 5;
    flex: 1 1 120px;
    width: auto;
    min-width: 0;
    height: 42px;
    margin: 8px 0 0;
  }
  .topbar .guest-badge,
  .topbar .announce-button,
  .topbar .logout-form { margin-top: 8px; }
  .topbar .guest-badge { order: 6; }
  .topbar .announce-button { order: 7; }
  .topbar .logout-form { order: 8; }
  /* 只有带 ＋ 图标的「发布公告」才折叠成图标，避免游客的「管理员登录」变成空白方块 */
  .topbar .announce-button:has(span) { width: 42px; padding: 0; gap: 0; font-size: 0; }
  .topbar .announce-button:has(span) span { margin: 0; font-size: 17px; }
  .topbar .announce-button:not(:has(span)) { padding: 0 11px; font-size: 10.5px; }
  .topbar .guest-badge { padding: 5px 9px; font-size: 9.5px; }
  .topbar .logout-form button { padding: 0 9px; font-size: 10.5px; }
}

@media (max-width: 480px) {
  .topbar { min-height: 62px; padding: 8px 10px; column-gap: 9px; }
  .sidebar-toggle { width: 40px; height: 40px; border-radius: 12px; }
  .topbar .venue strong { font-size: 13px; }
  .topbar .venue span { font-size: 9.5px; padding: 1px 7px; }
  .topbar .lang-toggle { width: 38px; height: 38px; min-width: 38px; }
  .topbar .search { height: 40px; margin-top: 7px; }
  .topbar .guest-badge,
  .topbar .announce-button,
  .topbar .logout-form { margin-top: 7px; }
  .topbar .announce-button:has(span) { height: 40px; }
  .topbar .logout-form button { height: 40px; padding: 0 8px; font-size: 10px; }
}

/* ============================================================
   项目管理 · 项目列表与删除
   ============================================================ */
.settings-card.project-admin-card { grid-column: 1 / -1; }
.project-admin-list { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.project-admin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  background: #f8fbfa;
  border: 1px solid #e2ebe9;
  border-radius: 13px;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.project-admin-item:hover { background: #fff; border-color: #d0e2de; box-shadow: var(--shadow-xs); }
.project-admin-item.is-current {
  background: linear-gradient(135deg, #f2faf7, #eef6f9);
  border-color: #c9e6dc;
  box-shadow: inset 3px 0 var(--teal);
}
.project-admin-info { flex: 1; min-width: 0; }
.project-admin-info strong {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-admin-info small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-admin-flag {
  flex: 0 0 auto;
  padding: 4px 10px;
  color: #0c7a63;
  background: #ddf1ea;
  border-radius: var(--radius-pill);
  font-size: 9.5px;
  font-weight: 800;
}
.project-admin-lock {
  flex: 0 0 auto;
  padding: 4px 10px;
  color: #93a2a8;
  background: #eef2f2;
  border-radius: var(--radius-pill);
  font-size: 9.5px;
  font-weight: 750;
}
.project-admin-delete { flex: 0 0 auto; margin: 0; }
.project-admin-delete .delete-button { min-height: 34px; }

@media (max-width: 640px) {
  .project-admin-item { flex-wrap: wrap; align-items: center; gap: 9px; padding: 13px 14px; }
  .project-admin-info { flex: 1 1 100%; }
  .project-admin-flag, .project-admin-lock { order: 1; }
  .project-admin-delete { order: 2; flex: 1 1 auto; }
  .project-admin-delete .delete-button { width: 100%; min-height: 40px; font-size: 10.5px; }
}

/* ============================================================
   管理员与权限 · 账号统计条与账号卡片精修
   ============================================================ */
.account-stats {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.account-stat {
  padding: 15px 17px;
  display: grid;
  gap: 3px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-xs);
}
.account-stat strong { color: var(--ink); font-size: 22px; font-weight: 780; line-height: 1.1; letter-spacing: -.02em; }
.account-stat span { color: var(--muted); font-size: 10.5px; font-weight: 700; }

/* 账号身份区：名称可编辑但读起来像标题 */
.account-identity { flex: 1; min-width: 0; display: grid; gap: 3px; }
.account-name { color: var(--ink); font-size: 14px; font-weight: 750; letter-spacing: -.01em; }
.account-username { color: var(--faint); font-size: 10.5px; font-weight: 650; font-family: var(--font-mono); }
.account-name-field { display: grid; gap: 2px; }
.account-name-field > span { color: var(--faint); font-size: 9px; font-weight: 750; letter-spacing: .04em; }
.account-name-field input {
  width: 100%;
  padding: 2px 6px;
  margin-left: -6px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.01em;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.account-name-field input:hover { background: #fff; border-color: #e0e8e7; }
.account-name-field input:focus { outline: 0; background: #fff; border-color: rgba(58,118,138,.5); box-shadow: 0 0 0 3px rgba(58,118,138,.1); }

/* 右侧徽标组 */
.account-badges { flex: 0 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.account-badge {
  padding: 5px 10px;
  color: #4c626c;
  background: #eef4f4;
  border: 1px solid #e0e9e9;
  border-radius: var(--radius-pill);
  font-size: 9.5px;
  font-weight: 750;
  white-space: nowrap;
}
.account-badge.role { color: #0c7a63; background: #ddf1ea; border-color: #c8e7dc; }
.account-badge.scope { color: #2b6285; background: #e2eef7; border-color: #cfe0ea; }
.account-badge.muted { color: #8e9ba1; background: #f2f5f5; border-color: #e6ebeb; }

/* 权限区标题 + 底部操作行 */
.permission-field { display: grid; gap: 8px; }
.field-caption { color: var(--faint); font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.account-actions {
  padding-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px dashed #e2eaea;
}
.account-actions .save-button { min-height: 40px; }
.account-actions .delete-button { min-height: 40px; }

@media (max-width: 900px) {
  .account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .account-stat { padding: 12px 14px; }
  .account-stat strong { font-size: 19px; }
  .admin-account { padding: 15px; }
  .account-summary { flex-wrap: wrap; gap: 9px 11px; }
  .account-identity { flex: 1 1 auto; }
  .account-badges { order: 3; flex: 1 1 100%; justify-content: flex-start; }
  .account-actions { flex-direction: column; align-items: stretch; }
  .account-actions .save-button,
  .account-actions .delete-button { width: 100%; min-height: 44px; }
  .password-reset input { min-height: 44px; }
}

/* ============================================================
   按钮唤起的折叠面板（改密码 / 重设密码）
   ============================================================ */
.disclosure { margin: 0; }
.disclosure-trigger {
  position: relative;
  min-height: 42px;
  padding: 0 13px 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #2d5b70;
  background: linear-gradient(180deg, #f4fafa, #e9f2f3);
  border: 1px solid #cfe0e3;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  user-select: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, .85), 0 1px 2px rgba(16, 40, 50, .04);
  transition: color .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease), transform .16s var(--ease);
}
.disclosure-trigger::-webkit-details-marker { display: none; }
/* 左侧互动提示条：收起时低调，展开时点亮 */
.disclosure-trigger::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 0;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #ff9a6e, var(--orange));
  transform: translateY(-50%);
  transition: height .24s var(--ease);
}
.disclosure-trigger:hover::before { height: 16px; }
.disclosure-body-icon {
  flex: 0 0 auto;
  width: 16px; height: 16px;
  background: no-repeat center / 16px 16px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d5b70' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='10.5' rx='2.5'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3C/svg%3E");
}
/* 图标改用 SVG，避免 ⌄ 在不同字体下渲染不一致 */
.disclosure-trigger::after {
  content: "";
  flex: 0 0 auto;
  width: 14px; height: 14px;
  background: no-repeat center / 14px 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d5b70' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  transition: transform .24s var(--ease);
}
.disclosure-trigger:hover {
  color: #123e52;
  background: linear-gradient(180deg, #ffffff, #e4eff1);
  border-color: #b6d3d9;
  box-shadow: inset 0 1px rgba(255, 255, 255, .9), 0 5px 14px rgba(16, 40, 50, .10);
  transform: translateY(-1px);
}
.disclosure-trigger:active { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(16, 40, 50, .10); }
.disclosure-trigger:focus-visible { outline: 3px solid rgba(244, 112, 61, .24); outline-offset: 2px; }
/* 展开态：深色实心 + 左侧状态条点亮 + 箭头翻转 */
.disclosure[open] > .disclosure-trigger {
  color: #fff;
  background: linear-gradient(135deg, #16404f, #0a2432);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(9, 37, 50, .22), inset 0 1px rgba(255, 255, 255, .10);
  transform: none;
}
.disclosure[open] > .disclosure-trigger::before { height: 22px; opacity: 1; }
.disclosure[open] > .disclosure-trigger .disclosure-body-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fd8bf' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='10.5' rx='2.5'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3C/svg%3E");
}
.disclosure[open] > .disclosure-trigger::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fd8bf' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}
/* 展开后的表单面板 */
.password-change-form { margin-top: 0; }
.disclosure > form, .reset-panel {
  margin-top: 14px;
  padding: 16px;
  background: #f7fbfa;
  border: 1px solid #dcebe7;
  border-radius: 13px;
  animation: disclosure-in .2s var(--ease);
}
@keyframes disclosure-in { from { opacity: 0; transform: translateY(-4px); } }
.reset-password-fields { margin-bottom: 13px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.reset-password-fields label { display: grid; gap: 6px; color: #64757f; font-size: 9.5px; font-weight: 750; }
.reset-password-fields input { width: 100%; height: 43px; padding: 0 12px; color: #24343d; background: #fff; border: 1px solid #d9e2e2; border-radius: 11px; outline: 0; font-size: 12px; }
.reset-password-fields input:focus { border-color: rgba(58, 118, 138, .5); box-shadow: 0 0 0 3px rgba(58, 118, 138, .1); }
.reset-password-form .save-button { width: auto; }
@media (prefers-reduced-motion: reduce) {
  .disclosure > form { animation: none; }
}

/* 账号卡片操作行：grid 布局；展开的面板位于操作行之外，因此展开时第一行完全不重排 */
.account-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.account-reset-trigger { grid-area: 1 / 1; }
.account-buttons { grid-area: 1 / 3; display: flex; align-items: center; gap: 10px; }
/* 隐藏的开关：保持可聚焦（键盘可用），但不占位 */
.reset-toggle {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  opacity: 0;
  pointer-events: none;
}
.reset-panel { display: none; }
.reset-toggle:checked ~ .reset-panel { display: block; }
/* 开关打开时的触发按钮样式（替代 details[open]） */
.reset-toggle:checked ~ .account-actions .account-reset-trigger {
  color: #fff;
  background: linear-gradient(135deg, #16404f, #0a2432);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(9, 37, 50, .22), inset 0 1px rgba(255, 255, 255, .10);
  transform: none;
}
.reset-toggle:checked ~ .account-actions .account-reset-trigger::before { height: 22px; opacity: 1; }
.reset-toggle:checked ~ .account-actions .account-reset-trigger .disclosure-body-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fd8bf' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='10.5' rx='2.5'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3C/svg%3E");
}
.reset-toggle:checked ~ .account-actions .account-reset-trigger::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fd8bf' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}
.reset-toggle:focus-visible ~ .account-actions .account-reset-trigger { outline: 3px solid rgba(244, 112, 61, .24); outline-offset: 2px; }

@media (max-width: 640px) {
  .reset-password-fields { grid-template-columns: 1fr; }
  .account-actions { grid-template-columns: 1fr; }
  .account-reset-trigger { grid-area: 1 / 1; }
  .account-buttons { grid-area: 2 / 1; width: 100%; }
  .account-buttons .save-button, .account-buttons .delete-button { flex: 1; }
  .disclosure-trigger, .account-reset-trigger { width: 100%; justify-content: center; }
  .reset-password-form .save-button { width: 100%; }
}

/* ============================================================
   项目级授权 · 项目管理员
   ============================================================ */
.project-scope-card { grid-column: 1 / -1; }
.project-scope-list { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.project-scope-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  background: #f8fbfa;
  border: 1px solid #e2ebe9;
  border-radius: 13px;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.project-scope-item:hover { background: #fff; border-color: #d0e2de; box-shadow: var(--shadow-xs); }
.project-scope-item.is-bound {
  background: linear-gradient(135deg, #f4f8fc, #eef4f9);
  border-color: #cfe0ea;
  box-shadow: inset 3px 0 #4a86a8;
}
.project-scope-info { flex: 1; min-width: 0; }
.project-scope-info strong {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-scope-info small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-scope-warn {
  display: block;
  margin-top: 5px;
  color: #b26a2c;
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
}
.project-scope-flag {
  flex: 0 0 auto;
  padding: 4px 10px;
  color: #2b6285;
  background: #e2eef7;
  border-radius: var(--radius-pill);
  font-size: 9.5px;
  font-weight: 800;
}
.project-scope-flag.unbound { color: #93a2a8; background: #eef2f2; }
/* 已绑定时直接显示项目名（原生下拉会截断长名称，这里始终完整可读） */
.project-scope-flag.bound {
  max-width: min(260px, 34vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.project-scope-single { flex: 0 0 auto; color: var(--faint); font-size: 10px; font-weight: 650; }
.project-scope-form { flex: 0 0 auto; margin: 0; display: flex; align-items: center; gap: 8px; }
.project-scope-form .save-button { min-height: 38px; padding: 0 14px; }

/* ---------- 绑定项目选择器（项目选择芯片） ---------- */
.project-scope-select {
  position: relative;
  flex: 0 0 auto;
  display: block;
  margin: 0;
  min-width: 236px;
  max-width: 320px;
}
.project-scope-select select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 42px;
  padding: 0 38px 0 40px;
  color: #22333c;
  background: linear-gradient(180deg, #ffffff, #f5faf9);
  border: 1px solid #d7e4e2;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -.005em;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px rgba(255, 255, 255, .9), 0 1px 2px rgba(16, 40, 50, .05);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), transform .16s var(--ease);
}
/* 前导状态图标：未绑定=全部项目，已绑定=锁 */
.project-scope-select::before,
.project-scope-select::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
}
.project-scope-select::before {
  left: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23879aa2' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'/%3E%3Cpolyline points='2 17 12 22 22 17'/%3E%3Cpolyline points='2 12 12 17 22 12'/%3E%3C/svg%3E");
}
.project-scope-select::after {
  right: 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23788f99' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  transition: transform .2s var(--ease), opacity .18s var(--ease);
}
/* 已绑定：锁图标 + 青绿着色 + 左侧状态条 */
.project-scope-item.is-bound .project-scope-select::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c7a63' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='10.5' rx='2.5'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3C/svg%3E");
}
.project-scope-item.is-bound .project-scope-select select {
  border-color: #c3e0d8;
  border-left: 3px solid var(--teal);
  background: linear-gradient(180deg, #ffffff, #eff9f6);
}
/* 悬停：轻微抬起 + 箭头右移 */
.project-scope-select:hover select {
  border-color: #a9d0c7;
  box-shadow: inset 0 1px rgba(255, 255, 255, .95), 0 5px 14px rgba(16, 40, 50, .09);
}
.project-scope-select:hover::after { transform: translateY(-50%) translateX(2px); }
/* 聚焦：青绿光圈 */
.project-scope-select select:focus { outline: 0; }
.project-scope-select select:focus-visible {
  border-color: rgba(20, 160, 133, .62);
  box-shadow: 0 0 0 3px rgba(20, 160, 133, .16), inset 0 1px rgba(255, 255, 255, .9);
}
.project-scope-select select:active { transform: translateY(1px); }
/* 下拉项着色 */
.project-scope-select option { color: #1f333c; background: #fff; font-weight: 600; }
.project-scope-select option:checked { color: #0c7a63; background: #e6f5ef; }
@media (prefers-reduced-motion: reduce) {
  .project-scope-select select, .project-scope-select::after { transition: none; }
}
/* 仅供屏幕阅读器 */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.project-scope-hint { margin: 14px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.6; }

/* 被绑定账号在「项目管理」卡片里看到的说明 */
.scope-bound-note {
  margin-top: 4px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
  background: linear-gradient(135deg, #f4f8fc, #eef4f9);
  border: 1px solid #cfe0ea;
  border-radius: 13px;
}
.scope-bound-badge {
  justify-self: start;
  padding: 4px 10px;
  color: #2b6285;
  background: #e2eef7;
  border-radius: var(--radius-pill);
  font-size: 9.5px;
  font-weight: 800;
}
.scope-bound-note strong { color: var(--ink); font-size: 13px; font-weight: 750; }
.scope-bound-note small { color: var(--muted); font-size: 10.5px; line-height: 1.6; }

@media (max-width: 640px) {
  .project-scope-item { flex-wrap: wrap; align-items: center; gap: 9px; padding: 13px 14px; }
  .project-scope-info { flex: 1 1 auto; }
  .project-scope-flag { order: 1; }
  .project-scope-flag.bound { max-width: 100%; }
  .project-scope-form { order: 3; flex: 1 1 100%; flex-direction: column; align-items: stretch; }
  .project-scope-select { min-width: 0; max-width: none; width: 100%; }
  .project-scope-select select { min-height: 46px; padding: 0 40px 0 42px; font-size: 12.5px; }
  .project-scope-form .save-button { width: 100%; min-height: 42px; }
}












