:root {
  --navy-900: #0b1b2d;
  --navy-800: #0d2137;
  --navy-700: #13304d;
  --navy-600: #1b4166;
  --blue: #1f66b5;
  --blue-soft: #e8f1fb;
  --gold: #c9a05a;
  --gold-soft: #f7efdf;
  --green: #1f8a5b;
  --green-soft: #e6f5ee;
  --red: #c0392b;
  --red-soft: #fbeceb;
  --amber: #b2761a;
  --amber-soft: #fdf3e2;
  --ink: #17212c;
  --ink-2: #46556a;
  --ink-3: #7b8a9c;
  --line: #e3e9f0;
  --bg: #f3f6fa;
  --card: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 33, 53, .05), 0 1px 3px rgba(16, 33, 53, .04);
  --shadow-md: 0 10px 28px rgba(16, 33, 53, .09);
  --shadow-lg: 0 24px 60px rgba(10, 27, 45, .22);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }
img { max-width: 100%; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--ink); }

/* ------------------------------------------------------------ elements */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { border-color: #c8d4e2; box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); border-color: var(--navy-700); }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-blue:hover { background: #1a579c; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #3a2a10; }
.btn-gold:hover { background: #bd9349; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: #fff; border-color: var(--line); }
.btn-danger { color: var(--red); border-color: #eccac6; background: #fff; }
.btn-sm { height: 31px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; padding: 0; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field > label .req { color: var(--red); }
.input, .select, .textarea {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d7e0ea;
  border-radius: 9px;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 78px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 102, 181, .12);
}
.input::placeholder { color: #a7b3c2; }
.hint { font-size: 12px; color: var(--ink-3); }
.search-input { max-width: 280px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  background: #eef2f7;
  color: var(--ink-2);
  white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.gold { background: var(--gold-soft); color: var(--amber); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.gray { background: #eef2f7; color: var(--ink-3); }
.chip.plain::before { display: none; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.card-head h3 { font-size: 15px; font-weight: 600; }
.card-head .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.kpi .label { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi .value small { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.kpi .foot { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.kpi.accent { background: linear-gradient(135deg, #14304f, #1d4a78); border-color: transparent; color: #fff; }
.kpi.accent .label, .kpi.accent .foot { color: rgba(255, 255, 255, .68); }
.kpi.accent .value { color: #fff; }
.kpi.accent .value small { color: rgba(255,255,255,.7); }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-3);
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid #eef2f6; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcff; }
.table .num { font-variant-numeric: tabular-nums; }
.table .muted { color: var(--ink-3); }
.table .strong { font-weight: 600; }
.table.compact td, .table.compact th { padding: 9px 12px; }

.empty { padding: 44px 20px; text-align: center; color: var(--ink-3); }
.empty .icon { font-size: 30px; opacity: .5; }
.empty p { margin-top: 8px; font-size: 13px; }

/* ------------------------------------------------------------ shell */

.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 236px;
  flex: 0 0 236px;
  background: radial-gradient(1200px 500px at -20% -10%, #1a3c5e 0%, transparent 55%), var(--navy-900);
  color: #cfdae7;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 22px 20px 18px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, #1d4a78, #14304f);
  border: 1px solid rgba(217, 179, 108, .45);
  display: grid; place-items: center;
  color: var(--gold); font-weight: 700; font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.brand-name { font-size: 14.5px; font-weight: 600; color: #fff; letter-spacing: .02em; }
.brand-sub { font-size: 11px; color: #7e95ad; margin-top: 1px; }
.nav { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-label { font-size: 11px; color: #6d829a; padding: 14px 10px 6px; letter-spacing: .08em; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px;
  color: #b9c9da; font-size: 13.5px; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav a.active { background: linear-gradient(90deg, rgba(201,160,90,.18), rgba(201,160,90,.05)); color: #f3e4c8; box-shadow: inset 2px 0 0 var(--gold); }
.nav a .ic { width: 17px; text-align: center; opacity: .9; font-size: 14px; }
.sidebar-foot { padding: 14px 16px 18px; border-top: 1px solid rgba(255,255,255,.07); }
.who { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(145deg, #d9b36c, #a9823f);
  color: #2c1f08; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; flex: 0 0 34px;
}
.who .name { font-size: 13px; color: #eaf1f8; font-weight: 600; }
.who .role { font-size: 11px; color: #7e95ad; }
.sidebar-foot .logout { display: block; margin-top: 10px; color: #8fa4b9; font-size: 12px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.sidebar-foot .logout:hover { color: #fff; }

.main { flex: 1; min-width: 0; }
.page { padding: 26px 30px 50px; max-width: 1320px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.page-head .sub { color: var(--ink-3); font-size: 13px; margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: 1.35fr .95fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------ login */

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: #fff;
}
.login-side {
  position: relative;
  padding: 54px 60px;
  color: #eaf2fa;
  background:
    radial-gradient(900px 460px at 85% 15%, rgba(31,102,181,.35), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(201,160,90,.16), transparent 60%),
    linear-gradient(150deg, #0b1b2d 0%, #102a45 55%, #0d2137 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.login-side::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}
.login-brand { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.login-brand .brand-mark { width: 40px; height: 40px; }
.login-hero { position: relative; z-index: 1; max-width: 460px; }
.login-hero .eyebrow { color: var(--gold); font-size: 12px; letter-spacing: .16em; font-weight: 600; }
.login-hero h1 { font-size: 34px; line-height: 1.32; font-weight: 700; margin: 16px 0 16px; letter-spacing: -.01em; }
.login-hero h1 em { font-style: normal; color: #e8c98c; }
.login-hero p { color: #a9bdd2; font-size: 14px; line-height: 1.8; }
.login-points { margin-top: 28px; display: grid; gap: 12px; }
.login-point { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: #c3d3e4; }
.login-point b { color: #fff; font-weight: 600; }
.login-point .dot {
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px;
  background: rgba(201,160,90,.14); border: 1px solid rgba(201,160,90,.3);
  color: var(--gold); display: grid; place-items: center; font-size: 11px; margin-top: 1px;
}
.login-foot { position: relative; z-index: 1; font-size: 11.5px; color: #6d829a; }

.login-main { display: flex; align-items: center; justify-content: center; padding: 40px 28px; }
.login-box { width: 100%; max-width: 380px; }
.login-box h2 { font-size: 24px; font-weight: 700; }
.login-box .sub { color: var(--ink-3); margin: 7px 0 26px; font-size: 13.5px; }
.login-form { display: flex; flex-direction: column; gap: 15px; }
.login-form .btn { margin-top: 4px; }
.login-error { color: var(--red); font-size: 13px; min-height: 18px; }
.demo-accounts { margin-top: 26px; border-top: 1px dashed var(--line); padding-top: 18px; }
.demo-accounts .title { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-account {
  text-align: left; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px;
  background: #fbfcfe; cursor: pointer; transition: .15s;
}
.demo-account:hover { border-color: #bcd0e6; background: #f4f9ff; }
.demo-account b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.demo-account span { font-size: 11px; color: var(--ink-3); }
.demo-account.wide { grid-column: span 2; }

/* ------------------------------------------------------------ admin */

.hero-event {
  position: relative;
  border-radius: 16px;
  padding: 22px 24px;
  color: #fff;
  background:
    radial-gradient(700px 300px at 100% -20%, rgba(201,160,90,.25), transparent 60%),
    linear-gradient(125deg, #102a45 0%, #163c60 60%, #1b4a76 100%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-event::before {
  content: ""; position: absolute; right: -40px; top: -60px; width: 240px; height: 240px;
  border-radius: 50%; border: 1px solid rgba(217,179,108,.25);
}
.hero-event::after {
  content: ""; position: absolute; right: 40px; top: 10px; width: 300px; height: 300px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.06);
}
.hero-event h2 { font-size: 19px; font-weight: 650; margin: 8px 0 8px; max-width: 640px; position: relative; z-index: 1; }
.hero-event .meta { color: #b8cbe0; font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-event .meta span { display: inline-flex; gap: 6px; align-items: center; }
.hero-event .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #57d69b; box-shadow: 0 0 0 4px rgba(87,214,155,.16); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(87,214,155,.04); } }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 22px; position: relative; z-index: 1; flex-wrap: wrap; }
.hero-progress { flex: 1; min-width: 240px; max-width: 430px; }
.hero-progress .nums { display: flex; align-items: baseline; gap: 8px; }
.hero-progress .big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-progress .of { color: #a9bfd6; font-size: 13px; }
.hero-progress .track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.14); margin-top: 9px; overflow: hidden; }
.hero-progress .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #d9b36c, #f0d6a4); }
.hero-progress .cap { font-size: 12px; color: #a9bfd6; margin-top: 7px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-actions .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff; }
.hero-actions .btn:hover { background: rgba(255,255,255,.18); }
.hero-actions .btn.gold { background: var(--gold); border-color: var(--gold); color: #33240d; font-weight: 600; }
.hero-actions .btn.gold:hover { background: #d5ae68; }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.section-title h2 { font-size: 16px; font-weight: 650; }
.section-title .more { font-size: 12.5px; color: var(--ink-3); }
.link-more { font-size: 12.5px; color: var(--blue); }

.funnel { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.funnel-row .top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.funnel-row .top b { color: var(--ink); font-variant-numeric: tabular-nums; }
.funnel-track { height: 10px; background: #f0f4f9; border-radius: 99px; overflow: hidden; }
.funnel-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1f4f7d, #3f86c9); }
.funnel-row:nth-child(2) .funnel-fill { background: linear-gradient(90deg, #1e7f63, #4cb98f); }
.funnel-row:nth-child(3) .funnel-fill { background: linear-gradient(90deg, #a9823f, #d9b36c); }
.funnel-row:nth-child(4) .funnel-fill { background: linear-gradient(90deg, #7a5a2a, #b89355); }

.rank-list { padding: 8px 6px; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; }
.rank-item:hover { background: #f8fafd; }
.rank-no {
  width: 24px; height: 24px; border-radius: 7px; background: #eef2f7; color: var(--ink-3);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: 0 0 24px;
}
.rank-item:nth-child(1) .rank-no { background: linear-gradient(145deg, #d9b36c, #b0873f); color: #33240d; }
.rank-item:nth-child(2) .rank-no { background: #dfe7ef; color: #42536a; }
.rank-item:nth-child(3) .rank-no { background: #f0e0cd; color: #8a5b2a; }
.rank-name { font-weight: 550; font-size: 13.5px; }
.rank-sub { font-size: 11.5px; color: var(--ink-3); }
.rank-bar { flex: 1; height: 6px; background: #eef2f7; border-radius: 99px; overflow: hidden; min-width: 40px; }
.rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2c6aa1, #62a5dc); border-radius: 99px; }
.rank-val { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

.timeline { padding: 6px 0; }
.timeline-item { display: flex; gap: 12px; padding: 10px 20px; position: relative; }
.timeline-item + .timeline-item { border-top: 1px dashed #eef2f6; }
.timeline-avatar {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; font-size: 12.5px; font-weight: 600;
}
.timeline-main { flex: 1; min-width: 0; }
.timeline-main .t1 { font-size: 13.5px; font-weight: 550; }
.timeline-main .t2 { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.timeline-time { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* event list */

.event-card {
  display: flex; gap: 18px; align-items: center;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm); transition: .15s;
}
.event-card + .event-card { margin-top: 12px; }
.event-card:hover { border-color: #cfdceb; box-shadow: var(--shadow-md); }
.date-badge {
  width: 60px; flex: 0 0 60px; text-align: center; border-radius: 11px;
  background: #f4f7fb; border: 1px solid #e7edf4; padding: 8px 0;
}
.date-badge .d { font-size: 24px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.date-badge .m { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.event-body { flex: 1; min-width: 0; }
.event-body h3 { font-size: 15px; font-weight: 600; }
.event-body .meta { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; display: flex; gap: 14px; flex-wrap: wrap; }
.event-side { text-align: right; }
.event-side .rate { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.event-side .rate small { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.event-side .cap { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.tabs { display: inline-flex; background: #f1f4f8; border-radius: 9px; padding: 3px; gap: 2px; }
.tabs button {
  border: 0; background: transparent; height: 30px; padding: 0 13px; border-radius: 7px;
  font-size: 13px; color: var(--ink-2); cursor: pointer; font-weight: 500;
}
.tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }
.tabs .count { font-size: 11px; color: var(--ink-3); margin-left: 4px; }

.seat-input { width: 62px; text-align: center; height: 30px; padding: 0 6px; border: 1px solid #dbe3ec; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--navy-700); background: #fbfcfe; text-transform: uppercase; }
.seat-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,102,181,.1); }
.seat-input.conflict { border-color: var(--red); background: #fff6f5; }

/* analytics */

.scope-select { height: 36px; min-width: 230px; }
.bar-list { padding: 16px 20px; display: flex; flex-direction: column; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 88px 1fr 74px; align-items: center; gap: 12px; }
.bar-row .lab { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 9px; background: #f0f4f9; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #235b8d, #4c94d1); }
.bar-fill.gold { background: linear-gradient(90deg, #a9823f, #d9b36c); }
.bar-fill.green { background: linear-gradient(90deg, #1e7f63, #52b98f); }
.bar-val { font-size: 12.5px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }

.col-chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding: 16px 20px 0; }
.col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.col .v { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.col .bar { width: 68%; max-width: 34px; background: linear-gradient(180deg, #4c94d1, #235b8d); border-radius: 5px 5px 2px 2px; min-height: 4px; }
.col .x { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; transform: scale(.92); }
.chart-foot { font-size: 11.5px; color: var(--ink-3); padding: 10px 20px 16px; border-top: 1px dashed var(--line); margin-top: 12px; }

.repeat-card { padding: 20px; }
.repeat-formula {
  background: #f8fafc; border: 1px dashed #dbe4ee; border-radius: 10px;
  padding: 14px; margin-top: 14px; font-size: 12.5px; color: var(--ink-2); line-height: 1.9;
}
.repeat-formula b { color: var(--ink); }
.repeat-formula .frac { display: inline-flex; flex-direction: column; text-align: center; vertical-align: middle; font-size: 11.5px; line-height: 1.35; padding: 0 6px; }
.repeat-formula .frac span:first-child { border-bottom: 1px solid #b9c6d5; padding-bottom: 1px; }

/* customer archive */
.archive-group { border-bottom: 1px solid #eef2f6; }
.archive-group summary {
  list-style: none; cursor: pointer; padding: 14px 20px; display: flex; align-items: center; gap: 14px;
}
.archive-group summary::-webkit-details-marker { display: none; }
.archive-group summary:hover { background: #fafcff; }
.archive-group .arrow { margin-left: auto; color: var(--ink-3); transition: transform .15s; font-size: 12px; }
.archive-group[open] .arrow { transform: rotate(90deg); }
.archive-history { padding: 4px 20px 16px 66px; display: flex; flex-direction: column; gap: 8px; }
.history-line { display: flex; gap: 12px; font-size: 12.5px; align-items: center; }
.history-line .dot { width: 7px; height: 7px; border-radius: 50%; background: #b8c8da; }
.history-line .dot.done { background: var(--green); }

/* ------------------------------------------------------------ station */

.station { min-height: 100vh; background: #0e1d2e; color: #dfe8f2; display: flex; flex-direction: column; }
.station-top {
  display: flex; align-items: center; gap: 16px; padding: 13px 22px;
  background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.08);
}
.station-top .brand-name { font-size: 14px; }
.station-top .ev-name { font-size: 13px; color: #9fb4c9; }
.station-top .stats { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.station-stat { text-align: right; }
.station-stat b { display: block; font-size: 19px; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
.station-stat span { font-size: 10.5px; color: #7e95ad; }
.station-body { flex: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; padding: 18px 22px 28px; max-width: 1280px; width: 100%; margin: 0 auto; }
.station-panel { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09); border-radius: 16px; padding: 18px; }
.station-panel h3 { font-size: 13px; color: #a9bdd2; font-weight: 500; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.mode-tabs { display: inline-flex; background: rgba(255,255,255,.06); border-radius: 10px; padding: 3px; margin-bottom: 14px; }
.mode-tabs button {
  border: 0; background: transparent; color: #9fb4c9; height: 32px; padding: 0 15px;
  border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500;
}
.mode-tabs button.active { background: #fff; color: #0d2137; font-weight: 600; }
.camera-box {
  position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: #081420; border: 1px solid rgba(255,255,255,.09);
  display: grid; place-items: center;
}
.camera-box video { width: 100%; height: 100%; object-fit: cover; }
.camera-box .placeholder { text-align: center; color: #6d829a; padding: 20px; }
.camera-box .placeholder .big { font-size: 34px; margin-bottom: 8px; opacity: .55; }
.camera-box .scan-frame {
  position: absolute; inset: 16%; border: 2px solid rgba(217,179,108,.75); border-radius: 14px;
  box-shadow: 0 0 0 999px rgba(3, 10, 18, .28); pointer-events: none;
}
.camera-box .scan-line {
  position: absolute; left: 16%; right: 16%; top: 16%; height: 2px;
  background: linear-gradient(90deg, transparent, #e8c98c, transparent);
  animation: scanline 2.2s ease-in-out infinite; pointer-events: none;
}
@keyframes scanline { 0%, 100% { top: 16%; opacity: .2; } 50% { top: 83%; opacity: 1; } }
.station-tools { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.station-tools .btn { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #e6eef7; }
.station-tools .btn:hover { background: rgba(255,255,255,.13); }
.station-tools .btn.primary { background: var(--gold); border-color: var(--gold); color: #33240d; font-weight: 600; }
.manual-form { display: flex; gap: 8px; margin-top: 12px; }
.manual-form .input {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; height: 40px;
}
.manual-form .input::placeholder { color: #6d829a; }
.station-note { font-size: 11.5px; color: #7e95ad; margin-top: 12px; line-height: 1.7; }
.station-note b { color: #b9cde0; }

.result-panel { min-height: 420px; display: flex; flex-direction: column; }
.result-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #6d829a; gap: 10px; padding: 30px; }
.result-empty .ring {
  width: 74px; height: 74px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.2);
  display: grid; place-items: center; font-size: 30px; color: #8fa8bf;
}
.result-card { flex: 1; display: flex; flex-direction: column; }
.result-person { display: flex; gap: 16px; align-items: center; padding: 6px 2px 16px; border-bottom: 1px solid rgba(255,255,255,.09); }
.result-person .avatar-lg {
  width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, #d9b36c, #a9823f); color: #2c1f08; font-size: 20px; font-weight: 700;
}
.result-person .nm { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: .01em; }
.result-person .sub { font-size: 12px; color: #8fa8bf; margin-top: 3px; }
.seat-big {
  margin-left: auto; text-align: center; background: rgba(217,179,108,.12);
  border: 1px solid rgba(217,179,108,.35); border-radius: 12px; padding: 8px 16px; min-width: 86px;
}
.seat-big .lab { font-size: 10.5px; color: #c9a05a; letter-spacing: .1em; }
.seat-big .no { font-size: 26px; font-weight: 700; color: #f0d6a4; line-height: 1.25; font-variant-numeric: tabular-nums; }
.result-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; padding: 16px 2px; }
.result-row .k { font-size: 11px; color: #7e95ad; }
.result-row .v { font-size: 14px; color: #eaf2fa; margin-top: 3px; }
.result-row .v.warn { color: #f2c35f; }
.result-row .v.done { color: #67d3a2; }
.warn-box {
  border-radius: 10px; padding: 11px 13px; font-size: 12.5px; line-height: 1.65;
  display: flex; gap: 9px; margin-bottom: 10px;
}
.warn-box.warn { background: rgba(214, 158, 46, .13); border: 1px solid rgba(214,158,46,.3); color: #f2c35f; }
.warn-box.info { background: rgba(76, 148, 209, .12); border: 1px solid rgba(76,148,209,.28); color: #9ec8ec; }
.warn-box.error { background: rgba(192, 57, 43, .14); border: 1px solid rgba(192,57,43,.35); color: #f0a79e; }
.result-actions { margin-top: 4px; display: flex; gap: 10px; padding-top: 14px; flex-wrap: wrap; }
.result-actions .btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #eaf2fa; }
.result-actions .btn:hover { background: rgba(255,255,255,.14); }
.result-actions .btn.confirm { background: #d9b36c; border-color: #d9b36c; color: #33240d; font-weight: 700; flex: 1; height: 46px; font-size: 15px; }
.result-actions .btn.confirm:hover { background: #e4c17f; }
.result-actions .btn.claim { background: #1f8a5b; border-color: #1f8a5b; color: #fff; font-weight: 600; flex: 1; height: 46px; font-size: 15px; }
.success-flash { animation: flash .5s ease; }
@keyframes flash { 0% { background: rgba(103, 211, 162, .28); } 100% { background: rgba(255,255,255,.045); } }
.recent-list { margin-top: 16px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }
.recent-item { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #9fb4c9; padding: 5px 0; }
.recent-item .nm { color: #dfe8f2; }
.recent-item .tm { margin-left: auto; font-variant-numeric: tabular-nums; }
.gift-choice { display: grid; gap: 8px; margin: 12px 0; }
.gift-choice label {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); cursor: pointer; font-size: 13px;
}
.gift-choice label:has(input:checked) { border-color: #d9b36c; background: rgba(217,179,108,.1); }
.gift-choice input { accent-color: #d9b36c; }
.gift-choice .stock { margin-left: auto; font-size: 11px; color: #7e95ad; }

/* ------------------------------------------------------------ customer h5 */

.customer-page { min-height: 100vh; background: #edf1f6; padding-bottom: 34px; }
.customer-wrap { max-width: 520px; margin: 0 auto; background: #edf1f6; min-height: 100vh; }
.cust-hero {
  position: relative;
  padding: 26px 22px 62px;
  color: #fff;
  background:
    radial-gradient(500px 260px at 90% -30%, rgba(201,160,90,.28), transparent 65%),
    linear-gradient(150deg, #0b1b2d, #12314f 70%, #143a5d);
  overflow: hidden;
}
.cust-hero::after {
  content: ""; position: absolute; right: -50px; bottom: -90px; width: 230px; height: 230px;
  border-radius: 50%; border: 1px solid rgba(217,179,108,.2);
}
.cust-brand { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #b9cde0; letter-spacing: .04em; }
.cust-brand .brand-mark { width: 26px; height: 26px; border-radius: 8px; font-size: 12px; }
.cust-hero h1 { font-size: 21px; line-height: 1.4; margin: 16px 0 12px; font-weight: 650; position: relative; z-index: 1; }
.cust-meta { font-size: 12.5px; color: #b9cde0; display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.cust-meta span { display: flex; gap: 7px; align-items: center; }
.cust-body { padding: 0 16px; margin-top: -44px; position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; }
.hello { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.hello .av {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 44px;
  background: linear-gradient(145deg, #d9b36c, #a9823f); color: #2c1f08;
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
}
.hello .t1 { font-size: 16px; font-weight: 600; }
.hello .t2 { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.qr-card { padding: 22px 20px 18px; text-align: center; position: relative; overflow: hidden; }
.qr-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #c9a05a, #e8c98c, #c9a05a);
}
.qr-card .cap { font-size: 12.5px; color: var(--ink-3); }
.qr-box { width: 232px; height: 232px; margin: 14px auto 10px; padding: 8px; background: #fff; border: 1px solid #e6ecf3; border-radius: 14px; box-shadow: 0 6px 18px rgba(16,33,53,.06); }
.qr-box img { width: 100%; height: 100%; display: block; border-radius: 8px; }
.qr-name { font-size: 17px; font-weight: 650; }
.qr-sub { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.qr-seat { display: inline-flex; align-items: baseline; gap: 5px; margin-top: 10px; background: var(--gold-soft); color: var(--amber); border-radius: 8px; padding: 5px 12px; font-size: 12px; }
.qr-seat b { font-size: 18px; color: #8a5b1e; font-variant-numeric: tabular-nums; }
.status-strip { display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-size: 12.5px; }
.status-strip .big { font-size: 13px; font-weight: 600; white-space: nowrap; }
.status-strip.done { background: var(--green-soft); color: #176c48; border-color: #cbe9db; }
.status-strip.wait { background: #fff; color: var(--ink-2); }
.section-card { padding: 18px; }
.section-card h3 { font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.section-card h3 .tag { font-size: 10.5px; font-weight: 500; color: var(--ink-3); background: #f1f4f8; border-radius: 5px; padding: 2px 6px; }
.section-card .desc { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.gift-opt {
  position: relative; border: 1.5px solid #e4eaf1; border-radius: 11px; padding: 12px;
  cursor: pointer; background: #fff; transition: .15s; display: block;
}
.gift-opt input { position: absolute; opacity: 0; pointer-events: none; }
.gift-opt .gname { font-size: 13.5px; font-weight: 600; }
.gift-opt .gspec { font-size: 11px; color: var(--ink-3); margin-top: 3px; line-height: 1.4; }
.gift-opt .gstock { font-size: 10.5px; color: var(--green); margin-top: 7px; }
.gift-opt .gstock.low { color: var(--amber); }
.gift-opt:has(input:checked) { border-color: var(--gold); background: linear-gradient(180deg, #fffdf8, #fdf8ee); box-shadow: 0 0 0 3px rgba(201,160,90,.12); }
.gift-opt:has(input:checked)::after {
  content: "✓"; position: absolute; top: 8px; right: 9px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--gold); color: #fff; font-size: 11px;
  display: grid; place-items: center;
}
.gift-opt.soldout { opacity: .5; cursor: not-allowed; }
.gift-claimed { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 11px; background: var(--gold-soft); margin-top: 12px; }
.gift-claimed .ic { width: 40px; height: 40px; border-radius: 10px; background: #fff; display: grid; place-items: center; font-size: 19px; }
.gift-claimed .t1 { font-size: 14px; font-weight: 650; color: #6d4a13; }
.gift-claimed .t2 { font-size: 11.5px; color: #96733a; margin-top: 2px; }
.agent-card { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.agent-card .av { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 650; flex: 0 0 40px; }
.agent-card .t1 { font-size: 13.5px; font-weight: 600; }
.agent-card .t2 { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.cust-foot { text-align: center; font-size: 11px; color: var(--ink-3); line-height: 1.8; padding: 20px 26px 0; }
.toast-wrap { }

/* ------------------------------------------------------------ modal */

.modal-mask {
  position: fixed; inset: 0; background: rgba(8, 19, 33, .5); z-index: 80;
  display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px 24px;
  overflow-y: auto; animation: fade .16s ease; backdrop-filter: blur(2px);
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 500px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  animation: rise .2s cubic-bezier(.2,.8,.3,1); overflow: hidden; margin: auto 0;
  max-height: 92vh; display: flex; flex-direction: column;
}
@keyframes rise { from { transform: translateY(14px); opacity: .6; } }
.modal.wide { max-width: 680px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px 0; }
.modal-head h3 { font-size: 17px; font-weight: 650; }
.modal-head .sub { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.modal-close { border: 0; background: #f2f5f9; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; color: var(--ink-2); font-size: 16px; line-height: 1; flex: 0 0 30px; }
.modal-body { padding: 18px 22px 22px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.modal-head, .modal-foot { flex: 0 0 auto; }
.modal-foot { display: flex; gap: 9px; justify-content: flex-end; padding: 0 22px 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid .full { grid-column: span 2; }

.invite-success { text-align: center; }
.invite-success .ok-ring {
  width: 52px; height: 52px; border-radius: 50%; background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; font-size: 24px; margin: 2px auto 10px;
}
.invite-success h4 { font-size: 16px; font-weight: 650; }
.invite-success .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.invite-qr { width: 206px; height: 206px; margin: 14px auto 8px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; }
.invite-link {
  background: #f6f9fc; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px;
  font-size: 11.5px; color: var(--ink-2); word-break: break-all; text-align: left; margin-top: 8px;
}
.invite-success .actions { display: flex; gap: 8px; margin-top: 12px; }
.invite-success .actions .btn { flex: 1; }

.qr-modal { text-align: center; }
.qr-modal .qr-lg { width: 250px; height: 250px; margin: 8px auto 12px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.qr-modal .url { font-size: 11px; color: var(--ink-3); word-break: break-all; margin-top: 6px; }
.qr-modal .tip { font-size: 12.5px; color: var(--ink-2); background: #f6f9fc; border-radius: 9px; padding: 10px 12px; margin-top: 12px; text-align: left; line-height: 1.65; }

/* ------------------------------------------------------------ toast */

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px);
  background: rgba(11, 27, 45, .94); color: #fff; padding: 11px 18px; border-radius: 10px;
  font-size: 13px; z-index: 120; opacity: 0; pointer-events: none; transition: .22s ease;
  max-width: calc(100vw - 40px); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.24);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: rgba(160, 38, 30, .96); }
.toast.success { background: rgba(22, 105, 72, .96); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .station-body { grid-template-columns: 1fr; }
  .result-panel { min-height: auto; }
}
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .shell { display: block; }
  .sidebar {
    width: 100%; height: auto; position: static; flex-direction: row; align-items: center;
    padding: 8px 12px; gap: 4px; overflow-x: auto;
  }
  .sidebar .brand { padding: 4px 8px 4px 2px; flex: 0 0 auto; }
  .brand-sub, .nav-label, .sidebar-foot .who .role { display: none; }
  .brand-name { font-size: 13px; }
  .nav { flex-direction: row; padding: 0; gap: 2px; }
  .nav a { padding: 7px 10px; font-size: 12.5px; white-space: nowrap; }
  .nav a .ic { display: none; }
  .sidebar-foot { border: 0; padding: 0 0 0 6px; margin-left: auto; }
  .sidebar-foot .logout { margin: 0; white-space: nowrap; }
  .sidebar-foot .who { display: none; }
  .page { padding: 18px 14px 40px; }
  .page-head h1 { font-size: 19px; }
  .grid-3 { grid-template-columns: 1fr; }
  .station-body { padding: 12px; gap: 12px; }
  .station-top { padding: 10px 14px; gap: 8px; }
  .station-top .ev-name { display: none; }
  .station-top .stats { gap: 12px; }
  .station-stat b { font-size: 16px; }
  .event-card { align-items: flex-start; padding: 14px; }
  .event-side { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .toast { bottom: 20px; }
}
@media (max-width: 520px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 13px 14px; }
  .kpi .value { font-size: 22px; }
  .hero-event { padding: 18px; }
  .hero-event h2 { font-size: 16.5px; }
  .hero-progress .big { font-size: 28px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .qr-box { width: 208px; height: 208px; }
  .result-rows { grid-template-columns: 1fr 1fr; }
  .table th, .table td { padding: 9px 10px; }
}

/* ------------------------------------------------------------ topbar (agent) */

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 28px;
  background: linear-gradient(120deg, #0b1b2d, #12314f);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 8px 24px rgba(10,27,45,.12);
}
.topbar-user { display: flex; align-items: center; gap: 9px; }
.topbar-user .name { font-size: 13px; font-weight: 600; color: #fff; }
.topbar-user .role { font-size: 11px; color: #8fa4b9; }
.topbar-logout { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #dfe8f2; }
.topbar-logout:hover { background: rgba(255,255,255,.14); }

.nav a .ic svg { width: 17px; height: 17px; display: block; }

.station-select {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: #e6eef7;
  height: 40px;
}
.station-select option { color: #17212c; background: #fff; }

@media (max-width: 900px) {
  .topbar { padding: 10px 14px; }
  .topbar-user { display: none; }
}

.scope-select { width: auto; min-width: 240px; max-width: 360px; }
.seat-input { width: 104px; }
.grid-3 > .card { display: flex; flex-direction: column; }
.station .camera-box .placeholder svg { opacity: .55; margin-bottom: 10px; }
.ring svg { width: 30px; height: 30px; }

.login-alt { margin-top: 18px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.link-btn { border: 0; background: none; padding: 0; color: var(--blue); font-size: 12.5px; cursor: pointer; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }
.gift-row { display: grid; grid-template-columns: 1.3fr 1.2fr 74px 68px 68px 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.gift-row .btn-icon { padding: 0; height: 38px; }
@media (max-width: 520px) { .gift-row { grid-template-columns: 1fr 1fr 58px 58px 58px 30px; } }

/* ------------------------------------------------------------ tickets */

.subnav {
  display: flex;
  gap: 2px;
  padding: 0 30px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.subnav a {
  padding: 11px 14px 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.subnav a:hover { color: var(--ink); }
.subnav a.active { color: var(--navy-800); border-bottom-color: var(--gold); font-weight: 600; }

.ticket-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid #e6dfd2;
  background: linear-gradient(100deg, #fffaf1, #ffffff 65%);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.ticket-banner::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #d9b36c, #a9823f);
}
.ticket-banner.empty { background: linear-gradient(100deg, #fff6f4, #fff); border-color: #f0d4d0; }
.ticket-banner.empty::before { background: #c0392b; }
.tb-icon {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px;
  background: var(--gold-soft); color: #8a5b1e; display: grid; place-items: center;
}
.tb-icon svg { width: 22px; height: 22px; }
.tb-body { flex: 1; min-width: 0; }
.tb-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tb-meta { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.tb-track { height: 6px; background: #f1ead9; border-radius: 99px; margin-top: 8px; max-width: 360px; overflow: hidden; }
.tb-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #c9a05a, #e2c184); }
.ticket-banner.empty .tb-track i { background: #d97b6e; }
.tb-action { text-align: right; font-size: 12.5px; white-space: nowrap; }
.tb-action a { color: var(--blue); }
.tb-warn { color: var(--red); font-weight: 600; margin-bottom: 2px; }

.ticket-hero {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 24px 28px;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(600px 240px at 100% -30%, rgba(201,160,90,.3), transparent 60%),
    linear-gradient(120deg, #102a45, #1b4a76);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.ticket-hero.empty {
  background:
    radial-gradient(600px 240px at 100% -30%, rgba(192,57,43,.28), transparent 60%),
    linear-gradient(120deg, #3a2420, #6b322a);
}
.th-main { flex: 1; min-width: 0; }
.th-label { font-size: 12px; color: #c9d8e8; letter-spacing: .04em; }
.th-num { display: flex; align-items: baseline; gap: 9px; margin-top: 4px; }
.th-num b { font-size: 44px; line-height: 1.05; font-weight: 700; color: #f0d6a4; font-variant-numeric: tabular-nums; }
.th-num span { font-size: 13px; color: #b8cbe0; }
.th-sub { font-size: 12.5px; color: #a9bfd6; margin-top: 4px; }
.th-bar { height: 8px; background: rgba(255,255,255,.14); border-radius: 99px; margin-top: 12px; max-width: 420px; overflow: hidden; }
.th-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #d9b36c, #f0d6a4); }
.ticket-hero.empty .th-num b { color: #f0a79e; }
.th-side { text-align: right; display: flex; flex-direction: column; gap: 7px; align-items: flex-end; font-size: 12px; color: #b8cbe0; }

.quota-tip {
  background: #f7f9fc;
  border: 1px solid #e3eaf2;
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 12px;
  color: var(--ink-2);
}
.quota-tip .qt-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.quota-tip b { color: var(--ink); }
.qt-track { height: 5px; background: #e9eff7; border-radius: 99px; margin-top: 7px; overflow: hidden; }
.qt-track i { display: block; height: 100%; background: linear-gradient(90deg, #c9a05a, #e0bd80); }
.quota-tip.danger { background: #fdf1ef; border-color: #f0cfc9; }
.quota-tip.danger b { color: var(--red); }
.quota-tip.danger .qt-track i { background: #d97b6e; }
.qt-warn { color: var(--red); margin-top: 6px; font-weight: 500; }

.quota-input { width: 90px; height: 36px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.note-input { height: 36px; min-width: 150px; font-size: 12.5px; }
.bar-fill.red { background: linear-gradient(90deg, #b03a2e, #e07b6e); }

@media (max-width: 900px) {
  .subnav { padding: 0 14px; }
  .ticket-banner { align-items: flex-start; flex-wrap: wrap; }
  .tb-action { width: 100%; text-align: left; padding-left: 54px; }
  .ticket-hero { padding: 18px; gap: 14px; flex-wrap: wrap; }
  .th-num b { font-size: 38px; }
  .th-side { text-align: left; align-items: flex-start; }
  .quota-input { width: 76px; }
  .note-input { min-width: 120px; }
}

.gift-opt .gticket { font-size: 10.5px; color: #8a5b1e; background: var(--gold-soft); border-radius: 5px; padding: 2px 6px; display: inline-block; margin-top: 7px; }
.quota-tip .qt-cost { margin-top: 8px; color: var(--ink-2); }
.quota-tip .qt-cost b { color: #8a5b1e; }

.seat-picker { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fbfcfe; }
.seat-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink-3); }
.seat-picker-head b { color: var(--ink); }
.seat-grid { margin-top: 9px; max-height: 200px; overflow: auto; display: flex; flex-direction: column; gap: 5px; padding-bottom: 2px; }
.seat-row { display: flex; gap: 5px; align-items: center; min-width: max-content; }
.seat-row-label { position: sticky; left: 0; z-index: 1; width: 18px; flex: 0 0 18px; font-size: 10.5px; color: var(--ink-3); background: #fbfcfe; }
.seat-btn { width: 34px; height: 28px; flex: 0 0 34px; padding: 0; border: 1px solid #dbe3ec; border-radius: 6px; background: #fff; font-size: 11.5px; color: var(--ink-2); cursor: pointer; transition: .12s; }
.seat-btn:hover:not(.occupied) { border-color: var(--gold); background: var(--gold-soft); }
.seat-btn.selected { background: var(--navy-800); border-color: var(--navy-800); color: #fff; font-weight: 600; }
.seat-btn.occupied { background: #eef1f5; border-color: #e6eaf0; color: #b2bcc9; text-decoration: line-through; cursor: not-allowed; }

.island-map { display: grid; gap: 9px; margin-top: 2px; }
.island-card { border: 1px solid #e3eaf2; border-radius: 10px; padding: 8px 7px 7px; background: #fff; }
.island-head { text-align: center; font-size: 10.5px; color: var(--ink-3); margin-bottom: 6px; }
.island-body { display: flex; align-items: stretch; justify-content: center; gap: 6px; }
.island-side { display: flex; flex-direction: column; gap: 5px; }
.island-side .seat-btn { width: 36px; flex: 0 0 36px; height: 27px; font-size: 11px; }
.island-table {
  width: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #f0e5cd, #ddc79f); color: #7a6238;
  font-size: 9.5px; letter-spacing: 2px; writing-mode: vertical-rl;
}

.seat-grid.island-mode { max-height: 322px; }
.island-full { color: #c0392b; font-size: 9.5px; margin-left: 3px; }

/* 签到后的座位指引 */
.seat-guide-card {
  padding: 18px;
  border: 1px solid #eadfc9;
  background: linear-gradient(180deg, #fffdf8, #ffffff 70%);
  box-shadow: 0 6px 20px rgba(138, 91, 30, .07);
}
.sg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sg-eyebrow { font-size: 11.5px; color: var(--green); font-weight: 600; letter-spacing: .02em; }
.sg-title { font-size: 14px; font-weight: 600; margin-top: 3px; }
.sg-seat-no {
  font-size: 24px; font-weight: 700; color: #8a5b1e; background: var(--gold-soft);
  border-radius: 10px; padding: 4px 12px; white-space: nowrap; max-width: 62%;
  overflow-wrap: anywhere; text-align: center; line-height: 1.4;
}
.sg-text { font-size: 12.5px; color: var(--ink-2); margin-top: 9px; line-height: 1.6; }
.sg-map { margin-top: 12px; background: #f6f9fc; border: 1px solid #e7eef6; border-radius: 10px; padding: 12px; overflow-x: auto; }
.sg-stage {
  background: #e8eef5; color: #7b8a9c; font-size: 9.5px; text-align: center;
  border-radius: 4px; padding: 4px 0; margin-bottom: 8px; letter-spacing: .12em;
}
.sg-classroom { display: flex; flex-direction: column; gap: 4px; min-width: max-content; }
.sg-row { display: flex; align-items: center; justify-content: center; gap: 4px; }
.sg-row-label { width: 12px; font-size: 9px; color: #9aa8b8; }
.sg-seat {
  width: 22px; height: 18px; flex: 0 0 22px; border-radius: 4px; background: #e3eaf2;
  color: #8a97a8; font-size: 8px; display: flex; align-items: center; justify-content: center;
}
.sg-seat.mine { background: var(--gold); color: #fff; font-weight: 700; transform: scale(1.18); box-shadow: 0 0 0 3px rgba(201, 160, 90, .22); }
.sg-islands { display: grid; gap: 8px; min-width: max-content; }
.sg-island { border: 1px solid #e3eaf2; border-radius: 8px; padding: 6px; background: #fff; text-align: center; }
.sg-island.mine { border-color: var(--gold); background: #fffdf7; box-shadow: 0 0 0 2px rgba(201, 160, 90, .12); }
.sg-island-title { font-size: 9px; color: #8a97a8; margin-bottom: 5px; }
.sg-island-body { display: flex; align-items: center; justify-content: center; gap: 4px; }
.sg-mini-col { display: flex; flex-direction: column; gap: 3px; }
.sg-mini { width: 12px; height: 12px; border-radius: 3px; background: #e3eaf2; display: block; }
.sg-mini.mine { background: var(--gold); box-shadow: 0 0 0 2px rgba(201, 160, 90, .22); }
.sg-table { width: 12px; height: 44px; border-radius: 4px; background: linear-gradient(180deg, #efe3ca, #ddc79f); display: block; }
.sg-legend { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink-3); margin-top: 10px; }
.sg-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--gold); display: inline-block; flex: 0 0 10px; }

/* 圆桌式 */
.round-map { display: grid; gap: 8px; min-width: max-content; }
.round-card { border: 1px solid #e3eaf2; border-radius: 10px; padding: 6px; background: #fff; }
.round-circle { position: relative; width: 100%; aspect-ratio: 1 / 1; min-height: 118px; }
.round-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 54%; height: 54%; border-radius: 50%;
  background: linear-gradient(145deg, #f3e8d2, #e3cda6);
  display: flex; align-items: center; justify-content: center;
  color: #7a6238; font-size: 10px; font-weight: 600;
}
.seat-btn.round-seat {
  position: absolute; width: 24px; height: 24px; flex: 0 0 24px;
  transform: translate(-50%, -50%); border-radius: 50%; font-size: 9.5px; padding: 0; line-height: 1;
}
.seat-btn.round-seat.selected { transform: translate(-50%, -50%) scale(1.12); }
.seat-grid.round-mode { max-height: 360px; }

.sg-rounds { display: grid; gap: 8px; min-width: max-content; }
.sg-round-card { border: 1px solid #e3eaf2; border-radius: 8px; padding: 5px; background: #fff; }
.sg-round-card.mine { border-color: var(--gold); background: #fffdf7; box-shadow: 0 0 0 2px rgba(201,160,90,.12); }
.sg-round-table { position: relative; width: 88px; height: 88px; margin: 0 auto; }
.sg-round-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46%; height: 46%; border-radius: 50%; background: #efe3ca;
  display: flex; align-items: center; justify-content: center; color: #7a6238; font-size: 8px;
}
.sg-round-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #e3eaf2; transform: translate(-50%, -50%); }
.sg-round-dot.mine { width: 11px; height: 11px; background: var(--gold); box-shadow: 0 0 0 2px rgba(201,160,90,.22); }

.hint.err { color: var(--red); }
.hint.ok { color: var(--green); }

.referral-box { background: #f7fbff; border: 1px dashed #c9dcef; border-radius: 9px; padding: 10px 12px; }
.referral-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); cursor: pointer; }
.referral-check input { accent-color: var(--gold); width: 15px; height: 15px; }
.referral-box .hint { margin-top: 5px; }
.quota-tip.ok-tip { background: #f1faf5; border-color: #cfeadd; }
.quota-tip.ok-tip .qt-top span:first-child { color: var(--green); font-weight: 600; }

.weekly-banner { display:flex; gap:16px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 18px; margin-top:14px; box-shadow:var(--shadow-sm); }
.wb-left { flex:0 0 72px; text-align:center; border-right:1px solid var(--line); padding-right:14px; }
.wb-big { font-size:24px; font-weight:700; color:var(--navy); line-height:1.1; }
.wb-small { font-size:11px; color:var(--muted); margin-top:3px; }
.wb-main { flex:1; min-width:0; }
.wb-side { flex:0 0 92px; text-align:right; border-left:1px solid var(--line); padding-left:14px; }
.wb-target { font-size:20px; font-weight:700; color:var(--gold); }
.warn-text { color:var(--red) !important; }
.bar-fill.gold { background:linear-gradient(90deg,#c8943a,#dcb36a); }

@media (max-width: 820px) {
  #checkin-qr-card { scroll-margin-top: 8px; }
}

/* ---- 礼品编辑与客户礼品照片 ---- */
.gift-editor { display:flex; flex-direction:column; gap:12px; }
.gift-edit-row { display:grid; grid-template-columns:132px 1fr 32px; gap:12px; align-items:start; border:1px solid var(--line); border-radius:10px; padding:12px; background:#fbfdff; }
.gift-edit-photo { display:flex; flex-direction:column; gap:7px; align-items:center; }
.gift-edit-photo img { width:120px; height:120px; object-fit:cover; border-radius:8px; border:1px solid var(--line); background:#fff; }
.gift-photo-empty { width:120px; height:120px; display:grid; place-items:center; border:1px dashed #c7d5e3; border-radius:8px; color:var(--muted); font-size:11px; background:#fff; }
.gift-edit-photo .btn { font-size:11px; padding:5px 8px; }
.gift-edit-fields { min-width:0; }
.gift-edit-fields .form-grid { gap:8px 10px; }
.gift-edit-fields .field label { font-size:11px; margin-bottom:3px; }
.gift-remove { align-self:start; }
@media (max-width: 720px) {
  .gift-edit-row { grid-template-columns:96px 1fr 28px; padding:9px; gap:8px; }
  .gift-edit-photo img, .gift-photo-empty { width:86px; height:86px; }
  .gift-edit-fields .form-grid { grid-template-columns:1fr 1fr; }
}
.gift-opt { display:flex; flex-direction:column; gap:0; }
.gift-photo { width:100%; height:104px; border-radius:8px; overflow:hidden; background:#f2f6fa; display:grid; place-items:center; margin-bottom:9px; font-size:26px; }
.gift-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.gift-opt .gticket { display:none; }
.gift-claimed .gift-thumb { width:46px; height:46px; border-radius:8px; overflow:hidden; flex:0 0 46px; background:#f1f5f9; display:grid; place-items:center; font-size:20px; }
.gift-claimed .gift-thumb img { width:100%; height:100%; object-fit:cover; }

.hero-stack { display:flex; flex-direction:column; gap:12px; }
.hero-stack .section-title { margin-bottom:0; }

.gift-library-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; border:1px solid #dbe4ee; background:#f7fbfe; border-radius:9px; padding:11px 13px; margin-bottom:12px; }
.gift-library-thumb { width:100%; aspect-ratio:1/1; height:auto; border-radius:9px; overflow:hidden; background:#f2f6fa; display:grid; place-items:center; font-size:34px; }
.gift-library-thumb img { width:100%; height:100%; object-fit:cover; }

/* ------------------------------------------------- 签到台：黑金主题 */
.station {
  color: #f3ead9;
  background:
    radial-gradient(980px 620px at 14% -10%, rgba(212, 175, 90, .14), transparent 62%),
    radial-gradient(720px 520px at 96% 2%, rgba(130, 100, 52, .12), transparent 66%),
    repeating-linear-gradient(135deg, rgba(255, 246, 224, .018) 0 1px, transparent 1px 18px),
    linear-gradient(145deg, #050506 0%, #121317 46%, #0a0b0e 76%, #040405 100%);
  background-attachment: fixed;
}
.station-top {
  background: linear-gradient(100deg, rgba(7, 8, 10, .98), rgba(24, 24, 27, .98) 58%, rgba(9, 9, 11, .98));
  border-bottom: 1px solid rgba(212, 175, 90, .58);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .5), inset 0 -1px 0 rgba(255, 241, 207, .16);
}
.station-top .brand-mark {
  background: linear-gradient(145deg, #fbf0cd, #d9b56a 56%, #a67e35);
  color: #18130a;
  box-shadow: 0 0 0 1px rgba(255, 241, 207, .38), 0 6px 16px rgba(0, 0, 0, .38);
}
.station-top .brand-name { color: #f7eedb; font-weight: 650; }
.station-top .brand-sub { color: #b99f6b; }
.station-top .ev-name { color: #e8d4a7; }
.station-top .small { color: #d8c49b !important; }
.station-top .btn {
  background: rgba(212, 175, 90, .07) !important;
  border-color: rgba(212, 175, 90, .34) !important;
  color: #ead9b4 !important;
}
.station-top .btn:hover { background: rgba(212, 175, 90, .15) !important; }
.station-top .stats { gap: 22px; }
.station-stat b { color: #e7c879; text-shadow: 0 0 18px rgba(212, 175, 90, .22); }
.station-stat span { color: #b8a47e; }
.station-body { padding-top: 22px; }
.station-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(27, 28, 32, .96), rgba(12, 13, 16, .97));
  border: 1px solid rgba(212, 175, 90, .26);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 241, 207, .05);
}
.station-panel::before {
  content: "";
  position: absolute; top: 0; left: 22px; right: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 90, .85) 35%, #f3dfb1 50%, rgba(212, 175, 90, .85) 65%, transparent);
  opacity: .8;
}
.station-panel h3 { color: #e7d3a8; font-weight: 600; }
.mode-tabs {
  background: rgba(4, 5, 6, .7);
  border: 1px solid rgba(212, 175, 90, .22);
}
.mode-tabs button { color: #bca77f; }
.mode-tabs button.active {
  background: linear-gradient(135deg, #fbf0cd, #e2c176 52%, #bd9144);
  color: #1b1509;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}
.camera-box {
  background: radial-gradient(circle at 50% 44%, #15161a, #060607 72%);
  border-color: rgba(212, 175, 90, .28);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .6);
}
.camera-box .placeholder { color: #c2aa7c; }
.camera-box .placeholder .small { color: #a88d5f !important; }
.camera-box .scan-frame {
  border-color: rgba(232, 203, 136, .9);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .44), 0 0 26px rgba(212, 175, 90, .18);
}
.camera-box .scan-line { background: linear-gradient(90deg, transparent, #f7e7bd, #d4af5a, transparent); }
.station-tools .btn {
  background: rgba(212, 175, 90, .08);
  border-color: rgba(212, 175, 90, .34);
  color: #ead9b4;
}
.station-tools .btn:hover { background: rgba(212, 175, 90, .16); }
.station-tools .btn.primary,
.station .result-actions .btn.confirm {
  background: linear-gradient(135deg, #fbf0cd, #e5c67e 52%, #c29a4f);
  border-color: #e2c176;
  color: #1d1609;
  text-shadow: 0 1px 0 rgba(255, 248, 227, .35);
}
.manual-form .input,
.station-select {
  background: rgba(7, 8, 10, .86);
  border-color: rgba(212, 175, 90, .28);
  color: #f4ecdd;
}
.manual-form .input::placeholder { color: #8e7d60; }
.manual-form .input:focus, .station-select:focus {
  border-color: #d4af5a;
  box-shadow: 0 0 0 3px rgba(212, 175, 90, .12);
}
.station-select option { color: #211a0c; background: #f7efdd; }
.station-note { color: #9f8d6d; }
.station-note b { color: #e2c47f; }
.result-panel { background: linear-gradient(155deg, rgba(30, 31, 35, .97), rgba(13, 14, 17, .98)); }
.result-empty { color: #a99570; }
.result-empty .ring {
  border-color: rgba(212, 175, 90, .38);
  color: #e2c47f;
  background: radial-gradient(circle, rgba(212, 175, 90, .08), transparent 70%);
}
.result-person { border-bottom-color: rgba(212, 175, 90, .18); }
.result-person .avatar-lg {
  background: linear-gradient(145deg, #fbf0cd, #dfbd72 55%, #a67e35);
  color: #1a1408;
  box-shadow: 0 0 0 2px rgba(255, 241, 207, .12), 0 8px 22px rgba(0, 0, 0, .4);
}
.result-person .nm { color: #faf3e4; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.result-person .sub { color: #b8a47e; }
.seat-big {
  background: rgba(212, 175, 90, .07);
  border-color: rgba(212, 175, 90, .42);
  box-shadow: inset 0 0 24px rgba(212, 175, 90, .04);
}
.seat-big .lab { color: #d4af5a; }
.seat-big .no { color: #f2ddae; }
.result-row .k { color: #a99570; }
.result-row .v { color: #f4ecdd; }
.result-row .v.warn { color: #e8c879; }
.result-row .v.done { color: #efd9a3; }
.result-actions .btn {
  background: rgba(212, 175, 90, .07);
  border-color: rgba(212, 175, 90, .30);
  color: #ead9b4;
}
.result-actions .btn:hover { background: rgba(212, 175, 90, .14); }
.result-actions .btn.claim {
  background: linear-gradient(135deg, #fbf0cd, #e5c67e 52%, #c29a4f);
  border-color: #e2c176;
  color: #1d1609;
}
.recent-list { border-top-color: rgba(212, 175, 90, .16); }
.recent-item { color: #a89776; }
.recent-item .nm { color: #f2e8d4; }
.warn-box.warn { background: rgba(212, 175, 90, .10); border-color: rgba(212, 175, 90, .30); color: #e8c879; }
.warn-box.error { background: rgba(170, 66, 58, .16); border-color: rgba(196, 91, 82, .34); color: #f0a49b; }
.warn-box.info { background: rgba(212, 175, 90, .07); border-color: rgba(212, 175, 90, .22); color: #e6d1a4; }
.gift-choice label {
  background: rgba(7, 8, 10, .55);
  border-color: rgba(212, 175, 90, .20);
  color: #f2e8d4;
}
.gift-choice label:has(input:checked) {
  border-color: #d4af5a;
  background: rgba(212, 175, 90, .09);
}
.gift-choice input { accent-color: #d4af5a; }
.gift-choice .stock { color: #a89776; }
.station .small { color: #b8a47e !important; }
.station .muted { color: #a89776 !important; }
.station .chip {
  background: rgba(212, 175, 90, .09);
  color: #e6d1a4;
  border: 1px solid rgba(212, 175, 90, .18);
}
.station .chip.green { background: rgba(55, 178, 108, .13); color: #8fe8b1; border-color: rgba(87, 214, 155, .22); }
.station .chip.gold { background: rgba(212, 175, 90, .13); color: #f2ddae; border-color: rgba(212, 175, 90, .28); }
.station .chip.red { background: rgba(196, 91, 82, .16); color: #f0a49b; border-color: rgba(196, 91, 82, .30); }
.station .chip.blue { background: rgba(212, 175, 90, .08); color: #e2c47f; border-color: rgba(212, 175, 90, .20); }
.station .card {
  background: linear-gradient(150deg, rgba(27, 28, 32, .97), rgba(12, 13, 16, .97));
  border: 1px solid rgba(212, 175, 90, .22);
  color: #f2e8d4;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
}
.station .card:hover { border-color: rgba(212, 175, 90, .46); }
.station .date-badge {
  background: rgba(212, 175, 90, .08);
  border: 1px solid rgba(212, 175, 90, .22);
  color: #efd9a3;
}
.station .date-badge .m { color: #b8a47e; }
.station .card .strong { color: #f7eedb; }
.station .card .chip.green.plain { background: rgba(55, 178, 108, .11); }
.station .card .chip.plain { border-color: transparent; }
.station .btn {
  background: rgba(212, 175, 90, .07);
  border-color: rgba(212, 175, 90, .30);
  color: #ead9b4;
}
.station .btn:hover { background: rgba(212, 175, 90, .14); }
.station .manual-form .btn {
  background: linear-gradient(135deg, rgba(212, 175, 90, .18), rgba(86, 66, 29, .28));
  border-color: rgba(212, 175, 90, .40);
  color: #f2ddae;
  font-weight: 600;
}
.station .manual-form .btn:hover { background: linear-gradient(135deg, rgba(212, 175, 90, .26), rgba(105, 81, 36, .36)); }
.station ::selection { background: rgba(212, 175, 90, .3); color: #100c05; }

/* 签到台可选主题（管理员配置） */
body[data-station-theme="red-gold"] .station {
  background:
    radial-gradient(980px 620px at 14% -10%, rgba(212, 175, 90, .14), transparent 62%),
    radial-gradient(720px 520px at 96% 2%, rgba(150, 45, 48, .20), transparent 66%),
    repeating-linear-gradient(135deg, rgba(255, 246, 224, .018) 0 1px, transparent 1px 18px),
    linear-gradient(145deg, #160205 0%, #4a0913 46%, #28050a 76%, #100104 100%);
}
body[data-station-theme="red-gold"] .station-top {
  background: linear-gradient(100deg, rgba(30, 3, 8, .98), rgba(86, 11, 22, .98) 58%, rgba(24, 2, 6, .98));
  border-bottom-color: rgba(212, 175, 90, .62);
}
body[data-station-theme="red-gold"] .station-panel {
  background: linear-gradient(155deg, rgba(59, 8, 17, .96), rgba(23, 3, 8, .97));
}
body[data-station-theme="red-gold"] .result-panel {
  background: linear-gradient(155deg, rgba(69, 9, 20, .97), rgba(25, 3, 9, .98));
}
body[data-station-theme="red-gold"] .camera-box {
  background: radial-gradient(circle at 50% 44%, #26060c, #090103 72%);
}
body[data-station-theme="red-gold"] .station .card {
  background: linear-gradient(150deg, rgba(61, 8, 18, .97), rgba(24, 3, 8, .97));
}

body[data-station-theme="jade-gold"] .station {
  background:
    radial-gradient(980px 620px at 14% -10%, rgba(212, 175, 90, .12), transparent 62%),
    radial-gradient(720px 520px at 96% 2%, rgba(45, 110, 90, .16), transparent 66%),
    repeating-linear-gradient(135deg, rgba(255, 246, 224, .016) 0 1px, transparent 1px 18px),
    linear-gradient(145deg, #030b09 0%, #0c241d 46%, #071712 76%, #020605 100%);
}
body[data-station-theme="jade-gold"] .station-top {
  background: linear-gradient(100deg, rgba(3, 12, 10, .98), rgba(13, 40, 32, .98) 58%, rgba(3, 10, 8, .98));
  border-bottom-color: rgba(212, 175, 90, .55);
}
body[data-station-theme="jade-gold"] .station-panel {
  background: linear-gradient(155deg, rgba(15, 42, 34, .96), rgba(4, 15, 12, .97));
}
body[data-station-theme="jade-gold"] .result-panel {
  background: linear-gradient(155deg, rgba(17, 48, 39, .97), rgba(4, 16, 13, .98));
}
body[data-station-theme="jade-gold"] .camera-box {
  background: radial-gradient(circle at 50% 44%, #102a22, #030806 72%);
}
body[data-station-theme="jade-gold"] .station .card {
  background: linear-gradient(150deg, rgba(15, 43, 35, .97), rgba(4, 15, 12, .97));
}

body[data-station-theme="navy-gold"] .station {
  background:
    radial-gradient(980px 620px at 14% -10%, rgba(212, 175, 90, .12), transparent 62%),
    radial-gradient(720px 520px at 96% 2%, rgba(38, 88, 148, .15), transparent 66%),
    repeating-linear-gradient(135deg, rgba(255, 246, 224, .016) 0 1px, transparent 1px 18px),
    linear-gradient(145deg, #02060d 0%, #091c32 46%, #051221 76%, #01040a 100%);
}
body[data-station-theme="navy-gold"] .station-top {
  background: linear-gradient(100deg, rgba(2, 7, 14, .98), rgba(10, 36, 62, .98) 58%, rgba(2, 6, 12, .98));
  border-bottom-color: rgba(212, 175, 90, .55);
}
body[data-station-theme="navy-gold"] .station-panel {
  background: linear-gradient(155deg, rgba(10, 36, 62, .96), rgba(2, 8, 16, .97));
}
body[data-station-theme="navy-gold"] .result-panel {
  background: linear-gradient(155deg, rgba(12, 42, 71, .97), rgba(2, 9, 18, .98));
}
body[data-station-theme="navy-gold"] .camera-box {
  background: radial-gradient(circle at 50% 44%, #0a223b, #01050b 72%);
}
body[data-station-theme="navy-gold"] .station .card {
  background: linear-gradient(150deg, rgba(10, 37, 64, .97), rgba(2, 8, 16, .97));
}

/* 中汇红蓝：Logo 红 + 官网品牌蓝，左右分区 */
body[data-station-theme="brand-red-blue"] .station {
  color: #f7fbff;
  background:
    radial-gradient(820px 620px at -6% -6%, rgba(230, 0, 18, .30), transparent 62%),
    radial-gradient(900px 680px at 106% 106%, rgba(0, 84, 153, .40), transparent 66%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .016) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, #190206 0%, #2d0409 30%, #001224 72%, #001a33 100%);
}
body[data-station-theme="brand-red-blue"] .station-top {
  background: linear-gradient(90deg, #8f0b16 0%, #d0121d 22%, #003b6f 52%, #005499 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .30);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .45), inset 0 -1px 0 rgba(255, 255, 255, .12);
}
body[data-station-theme="brand-red-blue"] .station-top .brand-mark {
  background: linear-gradient(145deg, #ff4545, #e60012 58%, #a50010);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .32), 0 6px 18px rgba(150, 0, 10, .35);
}
body[data-station-theme="brand-red-blue"] .station-top .brand-name { color: #fff; }
body[data-station-theme="brand-red-blue"] .station-top .brand-sub { color: rgba(255, 255, 255, .72); }
body[data-station-theme="brand-red-blue"] .station-top .ev-name { color: rgba(255, 255, 255, .84); }
body[data-station-theme="brand-red-blue"] .station-top .small { color: rgba(255, 255, 255, .78) !important; }
body[data-station-theme="brand-red-blue"] .station-top .btn {
  background: rgba(255, 255, 255, .12) !important;
  border-color: rgba(255, 255, 255, .34) !important;
  color: #fff !important;
}
body[data-station-theme="brand-red-blue"] .station-top .btn:hover { background: rgba(255, 255, 255, .22) !important; }
body[data-station-theme="brand-red-blue"] .station-stat b { color: #fff; text-shadow: 0 0 16px rgba(255, 255, 255, .18); }
body[data-station-theme="brand-red-blue"] .station-stat span { color: rgba(255, 255, 255, .68); }
body[data-station-theme="brand-red-blue"] .station-panel {
  background: linear-gradient(155deg, rgba(78, 5, 13, .96), rgba(32, 2, 8, .98));
  border: 1px solid rgba(230, 0, 18, .34);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
}
body[data-station-theme="brand-red-blue"] .station-panel::before {
  background: linear-gradient(90deg, transparent, #ff5a5a 32%, #fff 50%, #ff5a5a 68%, transparent);
  height: 2px;
}
body[data-station-theme="brand-red-blue"] .station-panel h3 { color: #ffe2e2; }
body[data-station-theme="brand-red-blue"] .result-panel {
  background: linear-gradient(155deg, rgba(0, 59, 106, .97), rgba(0, 22, 42, .99));
  border-color: rgba(88, 156, 216, .38);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
}
body[data-station-theme="brand-red-blue"] .result-panel::before {
  background: linear-gradient(90deg, transparent, #5aa8e8 32%, #fff 50%, #5aa8e8 68%, transparent);
}
body[data-station-theme="brand-red-blue"] .result-panel h3 { color: #d6eaff; }
body[data-station-theme="brand-red-blue"] .mode-tabs {
  background: rgba(0, 10, 20, .58);
  border-color: rgba(255, 255, 255, .16);
}
body[data-station-theme="brand-red-blue"] .mode-tabs button { color: rgba(255, 255, 255, .62); }
body[data-station-theme="brand-red-blue"] .mode-tabs button.active {
  background: linear-gradient(135deg, #ff4545, #e60012 58%, #b30010);
  color: #fff;
  box-shadow: 0 4px 16px rgba(140, 0, 10, .35);
}
body[data-station-theme="brand-red-blue"] .camera-box {
  background: radial-gradient(circle at 50% 44%, #061f38, #00050b 72%);
  border-color: rgba(255, 255, 255, .24);
}
body[data-station-theme="brand-red-blue"] .camera-box .placeholder { color: #9fc5e8; }
body[data-station-theme="brand-red-blue"] .camera-box .placeholder .small { color: #7fa8ce !important; }
body[data-station-theme="brand-red-blue"] .camera-box .scan-frame {
  border-color: rgba(255, 255, 255, .94);
  box-shadow: 0 0 0 999px rgba(0, 5, 12, .48), 0 0 26px rgba(230, 0, 18, .22);
}
body[data-station-theme="brand-red-blue"] .camera-box .scan-line {
  background: linear-gradient(90deg, transparent, #fff, #e60012, transparent);
}
body[data-station-theme="brand-red-blue"] .station-tools .btn {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .30);
  color: #fff;
}
body[data-station-theme="brand-red-blue"] .station-tools .btn:hover { background: rgba(255, 255, 255, .18); }
body[data-station-theme="brand-red-blue"] .station-tools .btn.primary,
body[data-station-theme="brand-red-blue"] .station .result-actions .btn.confirm,
body[data-station-theme="brand-red-blue"] .station .result-actions .btn.claim {
  background: linear-gradient(135deg, #ff4545, #e60012 58%, #b30010);
  border-color: #ff5a5a;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
}
body[data-station-theme="brand-red-blue"] .manual-form .input,
body[data-station-theme="brand-red-blue"] .station-select {
  background: rgba(0, 12, 24, .78);
  border-color: rgba(255, 255, 255, .24);
  color: #f7fbff;
}
body[data-station-theme="brand-red-blue"] .manual-form .input::placeholder { color: #7399bb; }
body[data-station-theme="brand-red-blue"] .manual-form .input:focus,
body[data-station-theme="brand-red-blue"] .station-select:focus {
  border-color: #7fb9e8;
  box-shadow: 0 0 0 3px rgba(0, 84, 153, .28);
}
body[data-station-theme="brand-red-blue"] .station-select option { color: #0b2138; background: #f4f9ff; }
body[data-station-theme="brand-red-blue"] .station-note { color: #8ab7df; }
body[data-station-theme="brand-red-blue"] .station-note b { color: #d6eaff; }
body[data-station-theme="brand-red-blue"] .result-empty { color: #8ab7df; }
body[data-station-theme="brand-red-blue"] .result-empty .ring {
  border-color: rgba(255, 255, 255, .42);
  color: #d6eaff;
  background: radial-gradient(circle, rgba(0, 84, 153, .24), transparent 70%);
}
body[data-station-theme="brand-red-blue"] .result-person { border-bottom-color: rgba(126, 180, 230, .28); }
body[data-station-theme="brand-red-blue"] .result-person .avatar-lg {
  background: linear-gradient(145deg, #ff4545, #e60012 58%, #a50010);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .16), 0 8px 22px rgba(0, 0, 0, .35);
}
body[data-station-theme="brand-red-blue"] .result-person .nm { color: #fff; }
body[data-station-theme="brand-red-blue"] .result-person .sub { color: #9cc8f0; }
body[data-station-theme="brand-red-blue"] .seat-big {
  background: rgba(0, 84, 153, .28);
  border-color: rgba(156, 200, 240, .58);
  box-shadow: inset 0 0 24px rgba(0, 84, 153, .18);
}
body[data-station-theme="brand-red-blue"] .seat-big .lab { color: #9cc8f0; }
body[data-station-theme="brand-red-blue"] .seat-big .no { color: #fff; }
body[data-station-theme="brand-red-blue"] .result-row .k { color: #8ab7df; }
body[data-station-theme="brand-red-blue"] .result-row .v { color: #f7fbff; }
body[data-station-theme="brand-red-blue"] .result-row .v.warn { color: #ffd166; }
body[data-station-theme="brand-red-blue"] .result-row .v.done { color: #9be7c4; }
body[data-station-theme="brand-red-blue"] .result-actions .btn {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .26);
  color: #fff;
}
body[data-station-theme="brand-red-blue"] .result-actions .btn:hover { background: rgba(255, 255, 255, .17); }
body[data-station-theme="brand-red-blue"] .recent-list { border-top-color: rgba(126, 180, 230, .22); }
body[data-station-theme="brand-red-blue"] .recent-item { color: #8ab7df; }
body[data-station-theme="brand-red-blue"] .recent-item .nm { color: #f7fbff; }
body[data-station-theme="brand-red-blue"] .gift-choice label {
  background: rgba(0, 12, 24, .50);
  border-color: rgba(255, 255, 255, .20);
  color: #f7fbff;
}
body[data-station-theme="brand-red-blue"] .gift-choice label:has(input:checked) {
  border-color: #e60012;
  background: rgba(230, 0, 18, .15);
}
body[data-station-theme="brand-red-blue"] .gift-choice input { accent-color: #e60012; }
body[data-station-theme="brand-red-blue"] .gift-choice .stock { color: #8ab7df; }
body[data-station-theme="brand-red-blue"] .station .small { color: #9cc8f0 !important; }
body[data-station-theme="brand-red-blue"] .station .muted { color: #8ab7df !important; }
body[data-station-theme="brand-red-blue"] .station .chip {
  background: rgba(255, 255, 255, .10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
}
body[data-station-theme="brand-red-blue"] .station .chip.green { background: rgba(55, 178, 108, .15); color: #8fe8b1; border-color: rgba(87, 214, 155, .24); }
body[data-station-theme="brand-red-blue"] .station .chip.gold { background: rgba(255, 255, 255, .10); color: #fff; border-color: rgba(255, 255, 255, .24); }
body[data-station-theme="brand-red-blue"] .station .chip.red { background: rgba(230, 0, 18, .22); color: #ffb4b0; border-color: rgba(230, 0, 18, .42); }
body[data-station-theme="brand-red-blue"] .station .chip.blue { background: rgba(0, 84, 153, .26); color: #d6eaff; border-color: rgba(126, 180, 230, .32); }
body[data-station-theme="brand-red-blue"] .station .card {
  background: linear-gradient(150deg, rgba(0, 59, 106, .97), rgba(0, 22, 42, .98));
  border-color: rgba(126, 180, 230, .30);
  color: #f7fbff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .42);
}
body[data-station-theme="brand-red-blue"] .station .card:hover { border-color: rgba(255, 255, 255, .45); }
body[data-station-theme="brand-red-blue"] .station .date-badge {
  background: rgba(230, 0, 18, .18);
  border-color: rgba(255, 120, 120, .34);
  color: #fff;
}
body[data-station-theme="brand-red-blue"] .station .date-badge .m { color: #e4b6b6; }
body[data-station-theme="brand-red-blue"] .station .card .strong { color: #fff; }
body[data-station-theme="brand-red-blue"] .station .btn {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .26);
  color: #fff;
}
body[data-station-theme="brand-red-blue"] .station .btn:hover { background: rgba(255, 255, 255, .17); }
body[data-station-theme="brand-red-blue"] .station .manual-form .btn {
  background: linear-gradient(135deg, #ff4545, #e60012 58%, #b30010);
  border-color: #ff5a5a;
  color: #fff;
}
body[data-station-theme="brand-red-blue"] .station ::selection { background: rgba(230, 0, 18, .40); color: #fff; }

/* 暮紫鎏金 */
body[data-station-theme="purple-gold"] .station {
  background:
    radial-gradient(980px 620px at 14% -10%, rgba(212, 175, 90, .12), transparent 62%),
    radial-gradient(720px 520px at 96% 2%, rgba(112, 62, 145, .17), transparent 66%),
    repeating-linear-gradient(135deg, rgba(255, 246, 224, .016) 0 1px, transparent 1px 18px),
    linear-gradient(145deg, #090410 0%, #25123a 46%, #130a20 76%, #05020a 100%);
}
body[data-station-theme="purple-gold"] .station-top {
  background: linear-gradient(100deg, rgba(8, 3, 14, .98), rgba(43, 20, 62, .98) 58%, rgba(11, 4, 18, .98));
  border-bottom-color: rgba(212, 175, 90, .55);
}
body[data-station-theme="purple-gold"] .station-panel {
  background: linear-gradient(155deg, rgba(42, 21, 61, .96), rgba(13, 6, 21, .97));
}
body[data-station-theme="purple-gold"] .result-panel {
  background: linear-gradient(155deg, rgba(48, 24, 70, .97), rgba(14, 6, 23, .98));
}
body[data-station-theme="purple-gold"] .camera-box {
  background: radial-gradient(circle at 50% 44%, #241132, #06020b 72%);
}
body[data-station-theme="purple-gold"] .station .card {
  background: linear-gradient(150deg, rgba(43, 21, 63, .97), rgba(13, 6, 21, .97));
}

/* ------------------------------------------------------- 浅色签到台主题 */
body[data-station-theme="light-brand"] {
  --lt-bg: #f3f7fb; --lt-glow1: rgba(215, 25, 32, .09); --lt-glow2: rgba(0, 84, 153, .10);
  --lt-panel: #ffffff; --lt-panel2: #f7fafd; --lt-ink: #162536; --lt-muted: #64798f;
  --lt-line: #d7e2ed; --lt-primary: #d71920; --lt-primary2: #ae0e17;
  --lt-accent2: #005499; --lt-soft: #fdecec; --lt-soft2: #e9f2fb;
  --lt-shadow: rgba(22, 37, 54, .10);
}
body[data-station-theme="light-sand"] {
  --lt-bg: #f6f0e5; --lt-glow1: rgba(166, 106, 34, .10); --lt-glow2: rgba(138, 106, 47, .08);
  --lt-panel: #fffdf8; --lt-panel2: #fbf6ec; --lt-ink: #3a2d20; --lt-muted: #7d6a53;
  --lt-line: #e5d6c0; --lt-primary: #a66a22; --lt-primary2: #7d4c14;
  --lt-accent2: #8a6a2f; --lt-soft: #f8ecda; --lt-soft2: #f4ead8;
  --lt-shadow: rgba(74, 54, 32, .10);
}
body[data-station-theme="light-jade"] {
  --lt-bg: #edf5f1; --lt-glow1: rgba(31, 111, 92, .09); --lt-glow2: rgba(138, 106, 47, .07);
  --lt-panel: #fbfffd; --lt-panel2: #f2f9f5; --lt-ink: #17332b; --lt-muted: #607b72;
  --lt-line: #cfe0d8; --lt-primary: #1f6f5c; --lt-primary2: #145042;
  --lt-accent2: #8a6a2f; --lt-soft: #e5f3ee; --lt-soft2: #eef7f2;
  --lt-shadow: rgba(23, 51, 43, .10);
}
body[data-station-theme^="light-"] .station {
  color: var(--lt-ink);
  background:
    radial-gradient(900px 620px at -4% -8%, var(--lt-glow1), transparent 62%),
    radial-gradient(820px 620px at 104% 104%, var(--lt-glow2), transparent 65%),
    repeating-linear-gradient(135deg, rgba(20, 40, 60, .018) 0 1px, transparent 1px 18px),
    var(--lt-bg);
  background-attachment: fixed;
}
body[data-station-theme^="light-"] .station-top {
  background: var(--lt-panel);
  border-bottom: 1px solid var(--lt-line);
  box-shadow: inset 0 3px 0 var(--lt-primary), 0 8px 24px var(--lt-shadow);
}
body[data-station-theme^="light-"] .station-top .brand-mark {
  background: linear-gradient(145deg, var(--lt-primary), var(--lt-primary2));
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--lt-primary) 28%, transparent);
}
body[data-station-theme^="light-"] .station-top .brand-name { color: var(--lt-ink); }
body[data-station-theme^="light-"] .station-top .brand-sub { color: var(--lt-muted); }
body[data-station-theme^="light-"] .station-top .ev-name { color: var(--lt-muted); }
body[data-station-theme^="light-"] .station-top .small { color: var(--lt-muted) !important; }
body[data-station-theme^="light-"] .station-top .btn {
  background: var(--lt-panel2) !important;
  border-color: var(--lt-line) !important;
  color: var(--lt-ink) !important;
}
body[data-station-theme^="light-"] .station-top .btn:hover { background: var(--lt-soft2) !important; }
body[data-station-theme^="light-"] .station-stat b { color: var(--lt-ink); text-shadow: none; }
body[data-station-theme^="light-"] .station-stat span { color: var(--lt-muted); }
body[data-station-theme^="light-"] .station-panel {
  background: var(--lt-panel);
  border: 1px solid var(--lt-line);
  box-shadow: 0 16px 38px var(--lt-shadow), inset 0 1px 0 #fff;
}
body[data-station-theme^="light-"] .station-panel::before {
  background: linear-gradient(90deg, transparent, var(--lt-primary) 35%, var(--lt-accent2) 65%, transparent);
  height: 2px;
  opacity: .7;
}
body[data-station-theme^="light-"] .station-panel h3 { color: var(--lt-ink); }
body[data-station-theme^="light-"] .mode-tabs {
  background: var(--lt-panel2);
  border: 1px solid var(--lt-line);
}
body[data-station-theme^="light-"] .mode-tabs button { color: var(--lt-muted); }
body[data-station-theme^="light-"] .mode-tabs button.active {
  background: linear-gradient(135deg, var(--lt-primary), var(--lt-primary2));
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--lt-primary) 22%, transparent);
}
body[data-station-theme^="light-"] .camera-box {
  background: linear-gradient(150deg, #eef3f7, #dfe8f0);
  border-color: var(--lt-line);
  box-shadow: inset 0 0 40px rgba(70, 100, 130, .07);
}
body[data-station-theme^="light-"] .camera-box .placeholder { color: var(--lt-muted); }
body[data-station-theme^="light-"] .camera-box .placeholder .small { color: var(--lt-muted) !important; }
body[data-station-theme^="light-"] .camera-box .scan-frame {
  border-color: var(--lt-accent2);
  box-shadow: 0 0 0 999px rgba(240, 246, 251, .30), 0 0 18px color-mix(in srgb, var(--lt-accent2) 20%, transparent);
}
body[data-station-theme^="light-"] .camera-box .scan-line {
  background: linear-gradient(90deg, transparent, var(--lt-primary), var(--lt-accent2), transparent);
}
body[data-station-theme^="light-"] .station-tools .btn {
  background: var(--lt-panel2);
  border-color: var(--lt-line);
  color: var(--lt-ink);
}
body[data-station-theme^="light-"] .station-tools .btn:hover { background: var(--lt-soft2); }
body[data-station-theme^="light-"] .station-tools .btn.primary,
body[data-station-theme^="light-"] .station .result-actions .btn.confirm,
body[data-station-theme^="light-"] .station .result-actions .btn.claim,
body[data-station-theme^="light-"] .station .manual-form .btn {
  background: linear-gradient(135deg, var(--lt-primary), var(--lt-primary2));
  border-color: var(--lt-primary);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}
body[data-station-theme^="light-"] .manual-form .input,
body[data-station-theme^="light-"] .station-select {
  background: #fff;
  border-color: var(--lt-line);
  color: var(--lt-ink);
}
body[data-station-theme^="light-"] .manual-form .input::placeholder { color: #91a2b4; }
body[data-station-theme^="light-"] .manual-form .input:focus,
body[data-station-theme^="light-"] .station-select:focus {
  border-color: var(--lt-accent2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lt-accent2) 13%, transparent);
}
body[data-station-theme^="light-"] .station-select option { color: var(--lt-ink); background: #fff; }
body[data-station-theme^="light-"] .station-note { color: var(--lt-muted); }
body[data-station-theme^="light-"] .station-note b { color: var(--lt-ink); }
body[data-station-theme^="light-"] .result-empty { color: var(--lt-muted); }
body[data-station-theme^="light-"] .result-empty .ring {
  border-color: var(--lt-line);
  color: var(--lt-accent2);
  background: radial-gradient(circle, var(--lt-soft2), transparent 70%);
}
body[data-station-theme^="light-"] .result-person { border-bottom-color: var(--lt-line); }
body[data-station-theme^="light-"] .result-person .avatar-lg {
  background: linear-gradient(145deg, var(--lt-primary), var(--lt-primary2));
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--lt-primary) 20%, transparent);
}
body[data-station-theme^="light-"] .result-person .nm { color: var(--lt-ink); text-shadow: none; }
body[data-station-theme^="light-"] .result-person .sub { color: var(--lt-muted); }
body[data-station-theme^="light-"] .seat-big {
  background: var(--lt-soft2);
  border-color: color-mix(in srgb, var(--lt-accent2) 45%, #fff);
  box-shadow: none;
}
body[data-station-theme^="light-"] .seat-big .lab { color: var(--lt-accent2); }
body[data-station-theme^="light-"] .seat-big .no { color: var(--lt-ink); }
body[data-station-theme^="light-"] .result-row .k { color: var(--lt-muted); }
body[data-station-theme^="light-"] .result-row .v { color: var(--lt-ink); }
body[data-station-theme^="light-"] .result-row .v.warn { color: #9a6500; }
body[data-station-theme^="light-"] .result-row .v.done { color: #1f7a56; }
body[data-station-theme^="light-"] .result-actions .btn {
  background: var(--lt-panel2);
  border-color: var(--lt-line);
  color: var(--lt-ink);
}
body[data-station-theme^="light-"] .result-actions .btn:hover { background: var(--lt-soft2); }
body[data-station-theme^="light-"] .recent-list { border-top-color: var(--lt-line); }
body[data-station-theme^="light-"] .recent-item { color: var(--lt-muted); }
body[data-station-theme^="light-"] .recent-item .nm { color: var(--lt-ink); }
body[data-station-theme^="light-"] .warn-box.warn { background: #fff7e6; border-color: #e8cf9b; color: #8a5c00; }
body[data-station-theme^="light-"] .warn-box.error { background: #fff0ef; border-color: #edc3bf; color: #a2221a; }
body[data-station-theme^="light-"] .warn-box.info { background: var(--lt-soft2); border-color: var(--lt-line); color: var(--lt-accent2); }
body[data-station-theme^="light-"] .gift-choice label {
  background: var(--lt-panel2);
  border-color: var(--lt-line);
  color: var(--lt-ink);
}
body[data-station-theme^="light-"] .gift-choice label:has(input:checked) {
  border-color: var(--lt-primary);
  background: var(--lt-soft);
}
body[data-station-theme^="light-"] .gift-choice input { accent-color: var(--lt-primary); }
body[data-station-theme^="light-"] .gift-choice .stock { color: var(--lt-muted); }
body[data-station-theme^="light-"] .station .small { color: var(--lt-muted) !important; }
body[data-station-theme^="light-"] .station .muted { color: var(--lt-muted) !important; }
body[data-station-theme^="light-"] .station h2 { color: var(--lt-ink) !important; }
body[data-station-theme^="light-"] .station .chip {
  background: var(--lt-panel2);
  color: var(--lt-ink);
  border: 1px solid var(--lt-line);
}
body[data-station-theme^="light-"] .station .chip.green { background: #eaf7f0; color: #1f7a56; border-color: #cbe8da; }
body[data-station-theme^="light-"] .station .chip.gold { background: var(--lt-soft); color: var(--lt-primary); border-color: color-mix(in srgb, var(--lt-primary) 30%, #fff); }
body[data-station-theme^="light-"] .station .chip.red { background: #fff0ef; color: #b42318; border-color: #f0c7c2; }
body[data-station-theme^="light-"] .station .chip.blue { background: var(--lt-soft2); color: var(--lt-accent2); border-color: var(--lt-line); }
body[data-station-theme^="light-"] .station .card {
  background: var(--lt-panel);
  border-color: var(--lt-line);
  color: var(--lt-ink);
  box-shadow: 0 12px 28px var(--lt-shadow);
}
body[data-station-theme^="light-"] .station .card:hover { border-color: var(--lt-primary); }
body[data-station-theme^="light-"] .station .date-badge {
  background: var(--lt-soft2);
  border: 1px solid var(--lt-line);
  color: var(--lt-accent2);
}
body[data-station-theme^="light-"] .station .date-badge .m { color: var(--lt-muted); }
body[data-station-theme^="light-"] .station .card .strong { color: var(--lt-ink); }
body[data-station-theme^="light-"] .station .btn {
  background: var(--lt-panel2);
  border-color: var(--lt-line);
  color: var(--lt-ink);
}
body[data-station-theme^="light-"] .station .btn:hover { background: var(--lt-soft2); }
body[data-station-theme^="light-"] .station .result-empty > div[style*="color:#fff"] { color: var(--lt-ink) !important; }
body[data-station-theme^="light-"] .station .result-empty > div[style*="color:#b9cde0"] { color: var(--lt-muted) !important; }
body[data-station-theme^="light-"] .station ::selection { background: var(--lt-soft); color: var(--lt-ink); }

/* 入场签到结果精简后居中，避免右侧大片留白 */
.station .result-card.entry-result { justify-content:center; }

/* 活动参与排行 */
.pt-branches { display:flex; flex-direction:column; gap:4px; padding:6px 4px; }
.pt-branch-row { display:grid; grid-template-columns:38px minmax(150px, 1fr) 110px 104px; gap:10px; align-items:center; padding:12px 10px; border-bottom:1px solid var(--line); }
.pt-branch-row:last-child { border-bottom:0; }
.pt-branch-rank { font-size:16px; font-weight:700; color:var(--ink-2); text-align:center; }
.pt-branch-main { min-width:0; }
.pt-branch-main .strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pt-branch-bar { height:9px; border-radius:99px; background:#eef2f7; overflow:hidden; }
.pt-branch-bar i { display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,#c9a45c,#e8d39e); }
.pt-branch-nums { text-align:right; }
.pt-branch-nums b { display:block; font-size:18px; font-variant-numeric:tabular-nums; }
.pt-branch-nums span { display:block; font-size:10.5px; color:var(--ink-3); margin-top:2px; white-space:nowrap; }
.pt-table td { vertical-align:middle; }
.pt-table .pt-rank { font-size:15px; font-weight:700; color:var(--ink-2); }
.pt-table .pt-top-row { background:#fffdf7; }
@media (max-width: 900px) {
  .pt-branch-row { grid-template-columns:30px minmax(120px,1fr) 70px 78px; gap:7px; }
  .pt-branch-nums span { font-size:9.5px; }
}

/* 签到结果欢迎词与桌位 */
.station .seat-big .seat-sub { font-size:10px; color:#c9a05a; margin-top:1px; white-space:nowrap; }
.station .welcome-banner {
  margin-top:14px; padding:12px 14px; border-radius:10px;
  border:1px solid rgba(201,160,90,.35);
  background: rgba(255,255,255,.06);
}
.station .welcome-title { font-size:17px; font-weight:650; color:inherit; }
.station .welcome-line { font-size:12.5px; color:#b9a47e; margin-top:6px; line-height:1.6; }
.station .welcome-line b { color:#f2c14e; font-weight:650; }
body[data-station-theme="brand-red-blue"] .station .welcome-banner { border-color:rgba(255,255,255,.22); background:rgba(255,255,255,.07); }
body[data-station-theme="brand-red-blue"] .station .welcome-line { color:#9cc8f0; }
body[data-station-theme="brand-red-blue"] .station .welcome-line b { color:#fff; }
body[data-station-theme^="light-"] .station .welcome-banner { border-color:var(--lt-line); background:var(--lt-soft2); }
body[data-station-theme^="light-"] .station .welcome-title { color:var(--lt-ink); }
body[data-station-theme^="light-"] .station .welcome-line { color:var(--lt-muted); }
body[data-station-theme^="light-"] .station .welcome-line b { color:var(--lt-accent2); }
body[data-station-theme^="light-"] .station .seat-big .seat-sub { color:var(--lt-accent2); }

/* 活动管理按月折叠 */
.event-month { margin-bottom: 16px; }
.event-month-head {
  width: 100%; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(100deg, #ffffff, #f8fbfe); cursor: pointer;
  color: var(--ink); text-align: left; transition: .15s;
}
.event-month-head:hover { border-color: #b9cde0; box-shadow: var(--shadow-sm); }
.event-month-head strong { font-size: 16px; letter-spacing: .02em; }
.event-month-head .small { margin-left: 2px; }
.event-month-chev { display: inline-block; font-size: 20px; line-height: 1; color: var(--ink-3); transition: transform .18s; }
.event-month.collapsed .event-month-chev { transform: rotate(-90deg); }
.event-month-hint { margin-left: auto; font-size: 12px; color: var(--blue); font-weight: 600; }
.event-month-body { margin-top: 10px; }
.event-month.collapsed .event-month-body { display: none; }
.event-card.extra-event { display: none; }
.event-month.show-all .event-card.extra-event { display: flex; }
.event-more { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 0 2px; }
.event-more .btn { min-width: 150px; }
@media (max-width: 700px) {
  .event-month-head { padding: 11px 12px; gap: 7px; }
  .event-month-hint { margin-left: 0; width: 100%; text-align: right; }
  .event-more { flex-direction: column; gap: 5px; }
}

/* 活动管理：进行中与已完成分区 */
.event-section-title { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:2px 0 12px; }
.event-section-title h2 { font-size:17px; margin:0; color:var(--ink); }
.event-section-title .small { margin-left:auto; }

/* 签到台手动开启签到 */
.checkin-window-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 13px; margin-bottom:12px; border:1px solid #e4d4aa; border-radius:9px; background:#fffaf0; color:#6b4d16; }
.checkin-window-bar.manual { border-color:#b9dfca; background:#f2fbf6; color:#1d6a45; }
.checkin-window-bar.closed { border-color:#e8d8b1; background:#fffaf0; }
.cw-main { display:flex; flex-direction:column; gap:2px; min-width:0; }
.cw-main b { font-size:13px; }
.cw-main span { font-size:12px; color:inherit; opacity:.78; }
.checkin-window-bar .btn { flex:0 0 auto; }

/* ------------------------------------------------- 签到台布局方案 */
body[data-station-layout="gala"] .station-body {
  grid-template-columns: minmax(340px, .78fr) minmax(0, 1.22fr);
  gap: 22px; max-width: 1380px; padding: 22px 30px 34px;
}
body[data-station-layout="gala"] .station-panel {
  position: relative; border-radius: 5px; padding: 22px;
  box-shadow: 0 26px 64px rgba(4, 10, 18, .32), inset 0 1px 0 rgba(255, 255, 255, .08);
}
body[data-station-layout="gala"] .station-panel::after {
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(201, 164, 92, .32);
  border-radius: 2px; pointer-events: none; z-index: 0;
}
body[data-station-layout="gala"] .station-panel > * { position: relative; z-index: 1; }
body[data-station-layout="gala"] .station::before {
  content: ""; position: fixed; inset: 12px; border: 1px solid rgba(201, 164, 92, .34);
  pointer-events: none; z-index: 20;
}
body[data-station-layout="gala"] .station::after {
  content: ""; position: fixed; inset: 8px; z-index: 21; pointer-events: none;
  background:
    linear-gradient(#d9b978, #d9b978) left top / 28px 1px no-repeat,
    linear-gradient(#d9b978, #d9b978) left top / 1px 28px no-repeat,
    linear-gradient(#d9b978, #d9b978) right top / 28px 1px no-repeat,
    linear-gradient(#d9b978, #d9b978) right top / 1px 28px no-repeat,
    linear-gradient(#d9b978, #d9b978) left bottom / 28px 1px no-repeat,
    linear-gradient(#d9b978, #d9b978) left bottom / 1px 28px no-repeat,
    linear-gradient(#d9b978, #d9b978) right bottom / 28px 1px no-repeat,
    linear-gradient(#d9b978, #d9b978) right bottom / 1px 28px no-repeat;
}
body[data-station-layout="gala"] .station-top {
  border-bottom-color: rgba(201, 164, 92, .46); padding: 15px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
}
body[data-station-layout="gala"] .station-top .ev-name { letter-spacing: .04em; }
body[data-station-layout="gala"] .mode-tabs { border-radius: 3px; }
body[data-station-layout="gala"] .mode-tabs button { border-radius: 1px; }
body[data-station-layout="gala"] .camera-box { border-radius: 2px; }
body[data-station-layout="gala"] .seat-big { border-radius: 2px; }
body[data-station-layout="gala"] .result-person .nm { font-size: 31px; letter-spacing: .02em; }
body[data-station-layout="gala"] .result-panel { min-height: 560px; }

body[data-station-layout="minimal"] .station-body {
  grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1120px; padding: 28px 20px 34px;
}
body[data-station-layout="minimal"] .station-top { padding: 14px 24px; }
body[data-station-layout="minimal"] .station-top .brand-sub { display: none; }
body[data-station-layout="minimal"] .station-panel {
  border-radius: 10px; padding: 18px; box-shadow: none;
}
body[data-station-layout="minimal"] .station-panel::before { display: none; }
body[data-station-layout="minimal"] .camera-box { aspect-ratio: 16 / 10; border-radius: 7px; }
body[data-station-layout="minimal"] .mode-tabs { border-radius: 7px; }
body[data-station-layout="minimal"] .mode-tabs button { border-radius: 5px; }
body[data-station-layout="minimal"] .seat-big { border-radius: 7px; }
body[data-station-layout="minimal"] .result-person .nm { font-weight: 600; }
body[data-station-layout="minimal"] .result-panel { min-height: 440px; }

@media (max-width: 760px) {
  body[data-station-layout="gala"] .station-body,
  body[data-station-layout="minimal"] .station-body { grid-template-columns: 1fr; padding: 12px; gap: 12px; }
  body[data-station-layout="gala"] .station::before { inset: 6px; }
  body[data-station-layout="gala"] .station::after { inset: 2px; }
}

/* 管理端布局选择缩略图 */
.layout-choice { transition: .15s; }
.layout-choice.active { border-color: #c9a45c; box-shadow: 0 0 0 2px rgba(201, 164, 92, .16); }
.layout-thumb { height: 92px; border-radius: 8px; border: 1px solid #e2e9f1; background: #f7fafd; display: flex; gap: 6px; padding: 19px 10px 10px; position: relative; overflow: hidden; }
.layout-thumb .lt-head { position: absolute; left: 10px; right: 10px; top: 8px; height: 5px; border-radius: 3px; background: #c6d4e2; }
.layout-thumb .lt-left, .layout-thumb .lt-right { height: 52px; border-radius: 5px; border: 1px solid #cbd8e5; background: #e6eef7; }
.layout-thumb .lt-left { flex: .92; }
.layout-thumb .lt-right { flex: 1.08; background: #f4f8fc; }
.layout-thumb .lt-seat { position: absolute; right: 20px; bottom: 20px; width: 18px; height: 18px; border-radius: 3px; background: #c9a45c; opacity: .8; }
.layout-gala .lt-head { background: #c9a45c; }
.layout-gala .lt-left, .layout-gala .lt-right { border: 2px double #c9a45c; background: #fbf6e9; }
.layout-gala .lt-left { flex: .7; }
.layout-gala .lt-right { flex: 1.3; }
.layout-minimal .lt-left, .layout-minimal .lt-right { border-color: #dbe4ee; border-radius: 2px; background: #fff; }
.layout-minimal .lt-head { height: 4px; background: #dbe4ee; }

/* 欢迎主位抬头 */
.result-masthead { display: none; position: relative; z-index: 1; }
body[data-station-layout="gala"] .result-masthead {
  display: block; padding: 4px 4px 20px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(201, 164, 92, .28);
}
body[data-station-layout="gala"] .result-masthead::after {
  content: ""; position: absolute; left: 4px; bottom: -1px; width: 72px; height: 2px;
  background: linear-gradient(90deg, #d9b978, transparent);
}
body[data-station-layout="gala"] .result-masthead .rm-kicker {
  font-size: 10px; letter-spacing: .24em; color: #b7924e; font-weight: 700; margin-bottom: 8px;
}
body[data-station-layout="gala"] .result-masthead .rm-title {
  font-size: 23px; line-height: 1.35; font-weight: 700; color: inherit; letter-spacing: .03em;
}
body[data-station-layout="gala"] .result-masthead .rm-meta { font-size: 12px; color: #9a8b73; margin-top: 7px; }
body[data-station-layout="gala"] .result-card.entry-result { justify-content: flex-start; padding-top: 18px; }
body[data-station-layout="gala"] .result-panel .result-empty { padding-top: 18px; }

body[data-station-layout="minimal"] .result-masthead {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 2px 2px 14px; border-bottom: 1px solid rgba(120, 140, 160, .16); margin-bottom: 10px;
}
body[data-station-layout="minimal"] .result-masthead .rm-kicker { font-size: 9px; letter-spacing: .18em; color: #9aa9b8; font-weight: 700; }
body[data-station-layout="minimal"] .result-masthead .rm-title { font-size: 15px; font-weight: 650; color: inherit; }
body[data-station-layout="minimal"] .result-masthead .rm-meta { font-size: 11px; color: #8b9bac; margin-left: auto; }

.result-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }

body[data-station-layout="minimal"] .result-card.entry-result { justify-content: flex-start; padding-top: 8px; }
body[data-station-layout="gala"] .camera-box::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(201, 164, 92, .34);
  pointer-events: none; z-index: 2;
}
body[data-station-layout="gala"] .camera-box::after {
  content: "SCAN  ·  GUEST QR"; position: absolute; left: 18px; top: 14px;
  color: rgba(201, 164, 92, .8); font-size: 9px; letter-spacing: .16em; font-weight: 600;
  pointer-events: none; z-index: 2;
}

/* 活动封面与欢迎区 */
.result-cover { position:relative; height:132px; border-radius:10px; overflow:hidden; margin-bottom:14px; background:#e9eff6; flex:0 0 auto; }
.result-cover img { width:100%; height:100%; object-fit:cover; display:block; }
.result-cover::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(8,22,40,.16), transparent 55%, rgba(201,164,92,.10)); pointer-events:none; }
body[data-station-layout="gala"] .result-cover { height:154px; border-radius:2px; margin-bottom:18px; border:1px solid rgba(201,164,92,.36); }
body[data-station-layout="minimal"] .result-cover { height:104px; border-radius:7px; margin-bottom:10px; }
body[data-station-layout="classic"] .result-masthead {
  display:block; padding:0 2px 14px; margin-bottom:10px; border-bottom:1px solid rgba(120,140,160,.18);
}
body[data-station-layout="classic"] .result-masthead .rm-kicker { display:none; }
body[data-station-layout="classic"] .result-masthead .rm-title { font-size:17px; font-weight:650; color:inherit; }
body[data-station-layout="classic"] .result-masthead .rm-meta { font-size:11px; color:#8b9bac; margin-top:4px; }

/* 活动封面编辑 */
.event-cover-editor { display:flex; gap:12px; align-items:stretch; }
.event-cover-preview { flex:1; min-width:0; aspect-ratio:16/5; max-height:130px; border-radius:8px; overflow:hidden; border:1px solid #dbe4ee; background:#f3f7fb; }
.event-cover-preview img { width:100%; height:100%; object-fit:cover; display:block; }
.event-cover-actions { display:flex; flex-direction:column; gap:7px; justify-content:center; flex:0 0 118px; }
@media (max-width: 600px) { .event-cover-editor { flex-direction:column; } .event-cover-actions { flex:auto; flex-direction:row; } }

/* 入场签到成功大屏 */
.result-body { overflow: auto; }
.entry-success { display:flex; flex-direction:column; gap:14px; width:100%; padding:2px 2px 10px; color:inherit; }
.es-head { display:flex; align-items:center; gap:12px; }
.es-check { width:38px; height:38px; flex:0 0 38px; border-radius:50%; display:grid; place-items:center; border:1px solid rgba(76,175,125,.45); color:#2c9b68; background:rgba(79,190,139,.13); font-size:22px; font-weight:800; }
.es-kicker { font-size:22px; line-height:1.25; font-weight:750; letter-spacing:.01em; }
.es-caption { font-size:12px; opacity:.7; margin-top:3px; }
.es-late { margin-left:auto; flex:0 0 auto; padding:5px 10px; border-radius:99px; border:1px solid rgba(201,120,45,.35); background:rgba(201,140,45,.12); color:#a66a22; font-size:12px; font-weight:650; }
.es-main { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 0 16px; border-top:1px solid rgba(120,140,160,.2); border-bottom:1px solid rgba(120,140,160,.2); }
.es-person { display:flex; align-items:center; gap:14px; min-width:0; }
.es-avatar { width:64px; height:64px; flex:0 0 64px; border-radius:50%; display:grid; place-items:center; background:linear-gradient(145deg,#c5222e,#8f0b16); color:#fff; font-size:25px; font-weight:750; box-shadow:0 8px 20px rgba(140,20,35,.2); }
.es-name { font-size:clamp(40px,4.3vw,62px); line-height:1.08; font-weight:800; letter-spacing:.02em; color:inherit; }
.es-sub { font-size:12px; opacity:.66; margin-top:6px; }
.es-seat { flex:0 0 auto; text-align:right; padding:10px 16px; border:1px solid rgba(201,164,92,.45); border-radius:4px; background:rgba(201,164,92,.08); }
.es-seat-lab { font-size:10px; letter-spacing:.16em; color:#a6803b; font-weight:700; }
.es-seat-val { font-size:clamp(28px,3vw,42px); line-height:1.15; font-weight:800; color:#b07d2d; margin-top:4px; }
.es-map-card { border:1px solid rgba(120,140,160,.2); border-radius:7px; padding:13px 14px 11px; background:rgba(127,140,155,.06); }
.es-map-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:10px; }
.es-map-title { font-size:13px; font-weight:700; letter-spacing:.02em; }
.es-map-sub { font-size:11px; opacity:.6; margin-top:3px; }
.es-foot { font-size:13px; text-align:center; opacity:.75; }
.seatmap { width:100%; }
.sm-stage { text-align:center; font-size:10px; letter-spacing:.22em; color:#a6803b; border-bottom:1px solid rgba(201,164,92,.35); padding:0 0 8px; margin-bottom:10px; font-weight:700; }
.sm-rows { display:flex; flex-direction:column; gap:4px; }
.sm-row { display:grid; grid-template-columns:18px repeat(var(--cols), minmax(0, 1fr)); gap:4px; align-items:center; }
.sm-row-label { font-size:9px; opacity:.55; text-align:center; }
.sm-seat { height:24px; min-width:0; display:grid; place-items:center; border-radius:3px; border:1px solid rgba(120,140,160,.2); background:rgba(127,140,155,.08); font-size:9px; color:inherit; opacity:.8; }
.sm-seat.on { background:#d2a84f; border-color:#d2a84f; color:#211707; font-size:12px; font-weight:800; opacity:1; box-shadow:0 0 0 3px rgba(210,168,79,.18); }
.sm-legend { font-size:10px; opacity:.55; margin-top:8px; display:flex; align-items:center; gap:5px; }
.sm-key.on { display:inline-grid; place-items:center; width:16px; height:16px; border-radius:3px; background:#d2a84f; color:#211707; font-size:10px; }
.sm-tables { display:grid; grid-template-columns:repeat(var(--tables), minmax(0, 1fr)); gap:8px; }
.sm-table { border:1px solid rgba(120,140,160,.18); border-radius:5px; padding:6px; }
.sm-table-label { font-size:9px; text-align:center; opacity:.6; margin-bottom:6px; }
.sm-table-seats { display:flex; flex-wrap:wrap; gap:3px; justify-content:center; }
.sm-dot { width:17px; height:17px; border-radius:50%; display:grid; place-items:center; background:rgba(127,140,155,.13); font-size:8px; color:inherit; opacity:.8; }
.sm-dot.on { background:#d2a84f; color:#211707; font-weight:800; opacity:1; box-shadow:0 0 0 2px rgba(210,168,79,.2); }
.sm-islands { display:grid; grid-template-columns:repeat(var(--islands), minmax(0, 1fr)); gap:8px; }
.sm-island { border:1px solid rgba(120,140,160,.18); border-radius:5px; padding:6px; }
.sm-island-label { font-size:9px; text-align:center; opacity:.6; margin-bottom:5px; }
.sm-island-seats { display:flex; justify-content:center; align-items:center; gap:5px; }
.sm-island-seats > div { display:flex; flex-wrap:wrap; gap:3px; justify-content:center; max-width:44px; }
.sm-island-core { font-size:8px; opacity:.45; flex:0 0 auto; }
@media (max-width: 620px) {
  .es-main { align-items:flex-start; flex-direction:column; }
  .es-seat { text-align:left; width:100%; }
  .es-name { font-size:38px; }
  .es-avatar { width:52px; height:52px; flex-basis:52px; }
  .sm-seat { height:20px; }
  .sm-tables { gap:5px; }
  .sm-table { padding:4px; }
  .sm-dot { width:14px; height:14px; font-size:7px; }
}

.result-panel.success-mode .result-cover { height:58px; margin-bottom:9px; border-radius:3px; }
.result-panel.success-mode .result-cover img { object-position:center 45%; }
.result-panel.success-mode .result-masthead { display:none; }

/* 岛屿式座位：1号位、2号位为前后排列，不是左右并排 */
.sm-island-seats > div:not(.sm-island-core) {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 3px;
  max-width: none;
  justify-content: center;
}
.sm-island-seats > div:not(.sm-island-core) .sm-dot { flex: 0 0 auto; }
.sm-island::before { content: "前"; position: absolute; top: 0; left: 5px; font-size: 8px; opacity: .4; }
.sm-island { position: relative; padding-top: 12px; }
.sm-island::after { content: "后"; position: absolute; bottom: 0; right: 5px; font-size: 8px; opacity: .4; }

/* 活动封面预置选择 */
.cover-presets-label { font-size: 11px; color: #5b6b7f; margin: 10px 0 6px; font-weight: 600; }
.cover-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.cover-preset { border: 1px solid #dbe4ee; border-radius: 6px; padding: 0; background: #fff; overflow: hidden; cursor: pointer; text-align: left; transition: .15s; }
.cover-preset img { display: block; width: 100%; height: 48px; object-fit: cover; }
.cover-preset span { display: block; padding: 4px 6px; font-size: 10px; color: #5b6b7f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover-preset:hover { border-color: #b9cde0; }
.cover-preset.active { border-color: #c9a45c; box-shadow: 0 0 0 2px rgba(201,164,92,.18); }
.cover-preset.active span { color: #8a6426; font-weight: 600; }
@media (max-width: 620px) { .cover-presets { grid-template-columns: 1fr 1fr; } }

/* 手机端：活动卡片重排，避免横向挤压成竖排 */
.hero-cards { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 760px) {
  .event-section-title { margin-bottom: 9px; }
  .event-section-title .small { display: none; }
  .event-card {
    display: grid !important;
    grid-template-columns: 50px minmax(0, 1fr);
    column-gap: 11px;
    row-gap: 9px;
    align-items: start !important;
    padding: 14px !important;
  }
  .event-card .date-badge { grid-column: 1; grid-row: 1; width: 50px; flex: none; padding: 7px 0; }
  .event-card .event-body { grid-column: 2; grid-row: 1; min-width: 0; width: auto; }
  .event-card .event-side { display: none !important; }
  .event-card .event-body .row { flex-wrap: wrap; gap: 5px; }
  .event-card .event-body h3 { font-size: 15px; line-height: 1.4; white-space: normal; word-break: break-word; }
  .event-card .event-body .meta { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 11.5px; line-height: 1.55; }
  .event-card .event-body .meta span { white-space: normal; word-break: break-word; }
  .event-card > .row:last-child {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid #e7edf4;
    align-items: center !important;
  }
  .event-card > .row:last-child .btn {
    width: 100%;
    min-width: 0;
    height: 33px;
    padding: 0 5px;
    font-size: 11.5px;
    white-space: nowrap;
  }
  .event-month-head .small { display: none; }
  .event-month-hint { margin-left: 0 !important; width: 100%; text-align: right; }
  .page-head { flex-direction: column; align-items: stretch !important; gap: 10px; }
  .page-head .actions { width: 100%; display: flex; flex-wrap: wrap; }
  .page-head .actions .btn { flex: 1; min-width: 0; white-space: nowrap; }
  .hero-cards {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -14px;
    padding: 0 14px 7px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hero-cards::-webkit-scrollbar { display: none; }
  .hero-cards .hero-event { flex: 0 0 88%; scroll-snap-align: start; }
  .sidebar { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .sidebar::-webkit-scrollbar { display: none; }
}

@media (max-width: 760px) {
  .page-head .actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; width: 100%; }
  .page-head .actions .btn { width: 100%; min-width: 0; flex: none; white-space: nowrap; height: 38px; padding-left: 8px; padding-right: 8px; }
  .page-head .actions .btn.btn-sm { height: 34px; }
  .toolbar { gap: 8px; }
  .toolbar .search-input { width: 100%; }
  .toolbar .tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .toolbar .tabs::-webkit-scrollbar { display: none; }
  .toolbar .tabs button { white-space: nowrap; }
}
@media (max-width: 760px) {
  .page-head .actions .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* 手机端签到台顶部信息栏 */
@media (max-width: 600px) {
  .station .station-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions" "ev ev" "stats stats";
    align-items: center;
    gap: 7px 10px;
    padding: 10px 12px 12px;
  }
  .station-top .brand { grid-area: brand; min-width: 0; gap: 9px; }
  .station-top .brand-mark { width: 34px; height: 34px; font-size: 17px; flex: 0 0 34px; }
  .station-top .brand-name { font-size: 13px; white-space: nowrap; }
  .station-top .brand-sub { display: none; }
  .station-top .ev-name {
    grid-area: ev; display: block; min-width: 0; width: 100%;
    font-size: 11.5px; color: #9fb4c9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .station-top .stats {
    grid-area: stats; display: grid; grid-template-columns: repeat(3, 1fr);
    width: 100%; margin: 0; gap: 0; padding: 8px 0 7px;
    border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .station-top .station-stat { text-align: center; display: flex; flex-direction: column; gap: 2px; padding: 0 5px; }
  .station-top .station-stat + .station-stat { border-left: 1px solid rgba(255,255,255,.12); }
  .station-top .station-stat b { font-size: 22px; line-height: 1.1; }
  .station-top .station-stat span { font-size: 10px; letter-spacing: .03em; white-space: nowrap; }
  .station-top > div:last-child {
    grid-area: actions; justify-self: end; margin: 0 !important;
    display: flex; align-items: center; gap: 5px !important; flex-wrap: nowrap;
  }
  .station-top > div:last-child > .small { display: none; }
  .station-top > div:last-child .btn { height: 30px; padding: 0 9px; font-size: 11px; }
}
.station-top .stats:empty { display: none; }

/* 客户档案：桌面筛选与手机卡片 */
.archive-person { min-width: 140px; }
.archive-chips { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.archive-group .archive-chips + .arrow { margin-left: 0; }
.archive-group { content-visibility: auto; contain-intrinsic-size: 62px; }
@media (max-width: 760px) {
  .archive-group summary {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    grid-template-areas: "avatar person arrow" "chips chips chips";
    align-items: start;
    gap: 7px 10px;
    padding: 12px 14px;
  }
  .archive-group summary > .avatar { grid-area: avatar; }
  .archive-group .archive-person { grid-area: person; min-width: 0; width: auto; }
  .archive-group .archive-person .strong { font-size: 14px; }
  .archive-group .archive-person .small { font-size: 11.5px; word-break: break-all; }
  .archive-group .archive-chips {
    grid-area: chips;
    justify-content: flex-start;
    margin-left: 0;
    gap: 5px;
  }
  .archive-group .archive-chips .chip { height: 21px; font-size: 10px; padding: 0 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .archive-group .arrow { grid-area: arrow; margin: 0; align-self: center; }
  .archive-history { padding: 4px 14px 14px 44px; gap: 7px; }
  .history-line { flex-wrap: wrap; gap: 5px 8px; font-size: 11.5px; }
  .history-line a { min-width: 0; overflow-wrap: anywhere; }
  #cust-list { overflow: hidden; }
}

/* 组织与权限：手机端账号卡片 */
@media (max-width: 760px) {
  .org-users-table { display: block; width: 100%; }
  .org-users-table thead { display: none; }
  .org-users-table, .org-users-table tbody { display: block; width: 100%; }
  .org-users-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name name" "role branch" "phone status" "actions actions";
    gap: 5px 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #e8eef5;
  }
  .org-users-table tbody tr:last-child { border-bottom: 0; }
  .org-users-table tbody td {
    display: block;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    min-width: 0;
  }
  #org-user-body td:nth-child(1) { grid-area: name; padding-bottom: 5px !important; border-bottom: 1px dashed #e5ecf4 !important; }
  #org-user-body td:nth-child(2) { grid-area: role; }
  #org-user-body td:nth-child(3) { grid-area: branch; text-align: right; font-size: 12px; color: #5b6b7f; }
  #org-user-body td:nth-child(4) { grid-area: phone; font-size: 12px; color: #5b6b7f; }
  #org-user-body td:nth-child(5) { grid-area: status; text-align: right; }
  #org-user-body td:nth-child(6) { grid-area: actions; margin-top: 3px; }
  #org-user-body td:nth-child(6) .row { justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* 客户保护：手机端卡片 */
@media (max-width: 760px) {
  .protect-table { display:block; width:100%; }
  .protect-table thead { display:none; }
  .protect-table, .protect-table tbody { display:block; width:100%; }
  .protect-table tbody tr {
    display:grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "customer customer" "agent event" "start expire" "days action";
    gap: 5px 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #e8eef5;
  }
  .protect-table tbody tr:last-child { border-bottom:0; }
  .protect-table tbody td { display:block; border:0 !important; padding:0 !important; background:transparent !important; min-width:0; }
  .protect-table tbody td:nth-child(1) { grid-area:customer; padding-bottom:5px !important; border-bottom:1px dashed #e5ecf4 !important; }
  .protect-table tbody td:nth-child(2) { grid-area:agent; font-size:12px; }
  .protect-table tbody td:nth-child(3) { grid-area:event; font-size:12px; text-align:right; }
  .protect-table tbody td:nth-child(4) { grid-area:start; font-size:11px; }
  .protect-table tbody td:nth-child(5) { grid-area:expire; font-size:11px; text-align:right; }
  .protect-table tbody td:nth-child(6) { grid-area:days; }
  .protect-table tbody td:nth-child(7) { grid-area:action; text-align:right; }
  .protect-table tbody td:nth-child(7) .btn { margin-left:auto; }
  .protect-table { overflow:visible; }
}

/* 参与排行：手机端营业区与营销员卡片 */
@media (max-width: 600px) {
  .pt-branch-row {
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-areas: "rank main" "bar bar" "nums nums";
    gap: 6px 8px;
    padding: 11px 8px;
  }
  .pt-branch-rank { grid-area: rank; align-self: start; }
  .pt-branch-main { grid-area: main; min-width: 0; }
  .pt-branch-main .strong { white-space: normal; }
  .pt-branch-main .small { line-height: 1.55; }
  .pt-branch-bar { grid-area: bar; width: 100%; }
  .pt-branch-nums { grid-area: nums; display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; text-align: left; }
  .pt-branch-nums b { font-size: 20px; }
  .pt-branch-nums span { font-size: 10px; white-space: normal; }
}
@media (max-width: 760px) {
  .pt-table { display:block; width:100%; }
  .pt-table thead { display:none; }
  .pt-table, .pt-table tbody { display:block; width:100%; }
  .pt-table tbody tr {
    display:grid;
    grid-template-columns:32px minmax(0,1fr) auto;
    grid-template-areas: "rank person rate" "rank events events" "rank invited attended" "rank gift gift";
    gap: 4px 8px;
    padding: 11px 10px;
    border-bottom:1px solid #e8eef5;
  }
  .pt-table tbody td { display:block; border:0 !important; padding:0 !important; background:transparent !important; min-width:0; }
  .pt-table tbody td:nth-child(1) { grid-area:rank; }
  .pt-table tbody td:nth-child(2) { grid-area:person; min-width:0; }
  .pt-table tbody td:nth-child(3) { grid-area:events; font-size:11px; color:#5b6b7f; }
  .pt-table tbody td:nth-child(4) { grid-area:invited; font-size:12px; }
  .pt-table tbody td:nth-child(5) { grid-area:attended; font-size:12px; }
  .pt-table tbody td:nth-child(6) { grid-area:rate; text-align:right; }
  .pt-table tbody td:nth-child(7) { grid-area:gift; font-size:11px; color:#7b8a9a; }
  .pt-table tbody td:nth-child(3)::before { content:"参与 "; }
  .pt-table tbody td:nth-child(4)::before { content:"邀约 "; }
  .pt-table tbody td:nth-child(5)::before { content:"到场 "; }
  .pt-table tbody td:nth-child(7)::before { content:"礼品 "; }
  .pt-table tbody td:nth-child(4), .pt-table tbody td:nth-child(5) { display:inline-block; }
  .pt-table .pt-top-row { background:#fffdf7; }
}

/* 活动总览：当前/今日/本月/本季度 */
.dash-live-list { display:flex; flex-direction:column; gap:8px; padding:0 2px; }
.dash-live-row { display:flex; align-items:center; gap:12px; padding:10px 11px; border:1px solid #e5edf5; border-radius:8px; background:#f9fbfd; }
.dash-live-row .dl-main { flex:1; min-width:0; }
.dash-live-row .dl-main .strong { font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dash-live-row .dl-nums { flex:0 0 auto; text-align:right; white-space:nowrap; }
.dash-live-row .dl-nums b { font-size:20px; color:var(--ink); }
.dash-live-row .dl-nums span { font-size:11px; color:var(--ink-3); }
.dash-live-total { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; padding:11px 3px 0; border-top:1px dashed #e4ebf3; margin-top:10px; color:#607287; font-size:12px; }
.dash-empty { padding:28px 10px; text-align:center; color:var(--ink-3); font-size:12.5px; }
.dash-stat-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; }
.dash-stat { padding:10px 11px; border-radius:8px; background:#f7fafd; border:1px solid #e7eef6; min-width:0; }
.dash-stat .ds-label { font-size:10.5px; color:#7b8a9a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dash-stat .ds-value { font-size:23px; font-weight:700; color:var(--ink); line-height:1.25; margin-top:3px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.dash-stat .ds-value small { font-size:11px; font-weight:500; color:#7b8a9a; margin-left:2px; }
.dash-stat .ds-sub { font-size:10px; color:#8b9bab; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dash-caption { color:#8a99a9; font-size:10.5px; line-height:1.6; margin-top:10px; }
.period-card .period-stat-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; }
.period-card .dash-stat { background:#f8fafc; }
.period-progress { margin-top:12px; }
.period-track { height:7px; border-radius:99px; background:#eaf0f6; overflow:hidden; margin-top:6px; }
.period-track i { display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,#2f6f9f,#82b7d4); }
@media (max-width: 900px) {
  .dash-stat-grid, .period-card .period-stat-grid { grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .dash-live-row { gap:8px; padding:9px 9px; }
  .dash-live-row .dl-main .strong { font-size:12px; }
  .dash-live-row .dl-nums b { font-size:18px; }
  .dash-stat { padding:9px 10px; }
  .dash-stat .ds-value { font-size:21px; }
  .dash-live-total { align-items:flex-start; flex-direction:column; gap:5px; }
  .period-card .card-head { align-items:flex-start; }
}

/* 业务员周达成率 */
.wb-headline { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.wb-range { font-size:10.5px; color:var(--muted); margin-top:3px; white-space:nowrap; }
.wb-summary { display:flex; flex-direction:column; align-items:flex-end; gap:2px; font-size:11px; color:var(--muted); white-space:nowrap; }
.wb-summary b { font-size:12px; color:var(--ink); }
.wb-foot { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:7px; flex-wrap:wrap; }
.wb-tip { font-size:11.5px; line-height:1.55; }
.wb-penalty .chip { white-space:nowrap; }
.wb-side-label { font-size:11px; color:var(--muted); }
.wb-mode { font-size:10px; color:var(--muted); line-height:1.5; margin-top:2px; }
@media (max-width: 700px) {
  .weekly-banner {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"left side" "main main";
    gap:7px 10px;
    align-items:start;
    padding:14px;
  }
  .wb-left {
    grid-area:left; display:flex; align-items:baseline; gap:8px;
    border:0; padding:0; text-align:left; flex:none;
  }
  .wb-big { font-size:34px; line-height:1; }
  .wb-small { margin:0; font-size:11px; }
  .wb-side { grid-area:side; border:0; padding:0; text-align:right; min-width:76px; flex:none; }
  .wb-target { font-size:22px; line-height:1.15; }
  .wb-side-label { font-size:10.5px; }
  .wb-mode { font-size:9.5px; }
  .wb-main { grid-area:main; min-width:0; border-top:1px solid #e8eef5; padding-top:9px; }
  .wb-headline { gap:8px; }
  .wb-headline b { font-size:12.5px; }
  .wb-range { font-size:10px; }
  .wb-summary { font-size:10px; gap:1px; }
  .wb-summary b { font-size:11.5px; }
  .wb-main .bar-track { margin:8px 0 6px; }
  .wb-foot { margin-top:5px; gap:6px; align-items:flex-start; }
  .wb-tip { font-size:10.5px; line-height:1.5; max-width:100%; }
  .wb-penalty .chip { font-size:9.5px; height:21px; padding:0 6px; }
}

/* 活动总览：营业区对比图 */
.branch-compare-card .card-head { align-items:flex-start; gap:10px; flex-wrap:wrap; }
.bc-tabs { margin-left:auto; }
.bc-tabs button { padding:5px 10px; font-size:11px; }
.bc-panel { padding-top:2px; }
.bc-summary { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; padding:9px 11px; margin-bottom:10px; background:#f7fafc; border:1px solid #e8eff6; border-radius:8px; font-size:11.5px; color:#697b8d; }
.bc-summary b { color:var(--ink); }
.bc-summary-label { color:var(--ink); font-weight:600; }
.bc-legend { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:0 2px 7px; font-size:10.5px; color:#8191a1; }
.bc-legend span { display:inline-flex; align-items:center; gap:4px; }
.bc-legend i { width:9px; height:9px; border-radius:2px; display:inline-block; }
.bc-legend i.invited { background:linear-gradient(90deg,#b88b3f,#e0c07c); }
.bc-legend i.attended { background:linear-gradient(90deg,#2c6f9f,#76b4d5); }
.bc-legend-rate { margin-left:auto; }
.bc-rows { border-top:1px solid #edf2f7; }
.bc-row { display:grid; grid-template-columns:145px minmax(0,1fr) 62px; gap:10px; align-items:center; padding:9px 2px; border-bottom:1px solid #eef3f8; }
.bc-row:last-child { border-bottom:0; }
.bc-name { min-width:0; }
.bc-name b { display:block; font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bc-name span { display:block; font-size:10px; color:#8b9bab; margin-top:2px; }
.bc-bars { display:flex; flex-direction:column; gap:4px; min-width:0; }
.bc-line { display:grid; grid-template-columns:30px minmax(0,1fr) 28px; gap:6px; align-items:center; font-size:10px; color:#728395; }
.bc-line b { text-align:right; font-size:11px; color:var(--ink); font-variant-numeric:tabular-nums; }
.bc-track { height:8px; border-radius:99px; background:#eef3f8; overflow:hidden; }
.bc-track i { display:block; height:100%; border-radius:99px; }
.bc-track i.invited { background:linear-gradient(90deg,#b88b3f,#e0c07c); }
.bc-track i.attended { background:linear-gradient(90deg,#2c6f9f,#76b4d5); }
.bc-rate { text-align:right; white-space:nowrap; }
.bc-rate b { display:block; font-size:15px; color:var(--ink); font-variant-numeric:tabular-nums; }
.bc-rate span { display:block; font-size:9.5px; color:#8b9bab; margin-top:1px; }
@media (max-width: 760px) {
  .branch-compare-card .card-head { align-items:stretch; }
  .bc-tabs { width:100%; margin:0; display:grid; grid-template-columns:repeat(3,1fr); }
  .bc-tabs button { text-align:center; }
  .bc-summary { gap:5px 10px; font-size:10.5px; line-height:1.5; }
  .bc-legend { padding-bottom:6px; }
  .bc-legend-rate { display:none !important; }
  .bc-row { grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"name rate" "bars bars"; gap:5px 8px; padding:9px 1px; }
  .bc-name { grid-area:name; }
  .bc-bars { grid-area:bars; }
  .bc-rate { grid-area:rate; }
  .bc-line { grid-template-columns:28px minmax(0,1fr) 24px; }
  .bc-rate b { font-size:14px; }
}

/* 业务员新增邀约：手机端自适应 */
@media (max-width: 700px) {
  .modal-mask { padding: 8px; }
  .modal { max-height: calc(100vh - 16px); border-radius: 14px; }
  .invite-modal .modal-head { padding: 16px 16px 0; }
  .invite-modal .modal-head h3 { font-size: 20px; }
  .invite-modal .modal-head .sub { font-size: 12px; line-height: 1.5; margin-top: 5px; }
  .invite-modal .modal-body { padding: 14px 16px 16px; overflow-x: hidden; }
  .invite-modal .modal-foot { padding: 0 16px 14px; gap: 8px; }
  .invite-modal .modal-foot .btn { flex: 1; height: 44px; font-size: 14px; }
  .invite-modal .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .invite-modal .form-grid .full { grid-column: auto; }
  .invite-modal .field { min-width: 0; gap: 6px; }
  .invite-modal .field > label { font-size: 14px; }
  .invite-modal .input, .invite-modal .select, .invite-modal .textarea { min-width: 0; max-width: 100%; height: 46px; font-size: 15px; padding: 0 11px; }
  .invite-modal .hint { font-size: 10.5px; line-height: 1.55; overflow-wrap: anywhere; }
  .invite-modal .seat-picker { min-width: 0; padding: 10px; }
  .invite-modal .seat-picker-head { align-items: flex-start; font-size: 12.5px; }
  .invite-modal .seat-grid { max-height: 220px; overflow-x: hidden; }
  .invite-modal .seat-row { width: 100%; min-width: 0; gap: 3px; }
  .invite-modal .seat-row-label { width: 14px; flex: 0 0 14px; font-size: 9.5px; }
  .invite-modal .seat-row .seat-btn { flex: 1 1 0; width: auto; min-width: 0; max-width: 34px; height: 30px; font-size: 10.5px; }
  .invite-modal .island-map, .invite-modal .round-map { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .invite-modal .island-card, .invite-modal .round-card { min-width: 0; }
  .invite-modal .island-side .seat-btn { width: 30px; flex: 0 0 30px; }
}

/* 今日数据分析：各营业区明细 */
.today-branch-block { margin-top:12px; border-top:1px solid #e8eef5; padding-top:10px; }
.today-branch-title { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:7px; }
.today-branch-title b { font-size:12.5px; color:var(--ink); }
.today-branch-title span { font-size:10px; color:#8b9bab; }
.today-branch-head, .today-branch-row { display:grid; grid-template-columns:minmax(0,1fr) 38px 38px 38px 50px; gap:4px; align-items:center; }
.today-branch-head { padding:0 4px 5px; font-size:9.5px; color:#95a4b3; border-bottom:1px solid #eef3f8; }
.today-branch-head span:not(:first-child), .today-branch-row > b, .today-branch-row .tb-rate { text-align:right; }
.today-branch-row { padding:6px 4px; border-bottom:1px solid #f1f5f9; font-size:12px; }
.today-branch-row:last-child { border-bottom:0; }
.today-branch-row .tb-name { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#43566a; }
.today-branch-row > b { font-size:13px; color:var(--ink); font-variant-numeric:tabular-nums; }
.today-branch-row .tb-rate { font-size:11px; font-weight:600; font-variant-numeric:tabular-nums; }
.today-branch-row .tb-rate.good { color:var(--green); }
.today-branch-row .tb-rate.warn { color:#a9823f; }
.today-branch-row .tb-rate.zero { color:#9aa8b6; }
.today-branch-empty { padding:10px 4px; font-size:11px; color:#8b9bab; }
@media (max-width: 600px) {
  .today-branch-head, .today-branch-row { grid-template-columns:minmax(0,1fr) 34px 36px 36px 48px; gap:3px; }
  .today-branch-row { font-size:12.5px; padding:7px 3px; }
}

/* 客户自助邀约页 */
.self-join-page {
  min-height:100vh; padding:28px 16px 40px; display:flex; justify-content:center; align-items:flex-start;
  background:
    radial-gradient(circle at 82% 8%, rgba(201,164,92,.18), transparent 34%),
    linear-gradient(145deg,#071522 0%,#0c243b 55%,#0a1d31 100%);
  color:#f7f1e4;
}
.self-join-card {
  width:min(100%, 520px); margin:auto; background:#fbf8f1; color:#17212c;
  border:1px solid rgba(201,164,92,.55); border-radius:18px; overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.3);
}
.self-join-head { padding:18px 20px 0; }
.self-join-brand { display:flex; align-items:center; gap:10px; }
.self-join-logo {
  width:42px; height:42px; border-radius:11px; display:grid; place-items:center;
  background:#0c2137; color:#e4c77e; border:1px solid rgba(228,199,126,.55);
  font-size:21px; font-weight:700; flex:0 0 42px;
}
.self-join-brand b { display:block; font-size:14px; letter-spacing:.04em; }
.self-join-brand span { display:block; margin-top:2px; font-size:11px; color:#7a8797; }
.self-join-eyebrow { margin-top:16px; font-size:9.5px; letter-spacing:.24em; color:#a9823f; font-weight:700; }
.self-join-event { padding:7px 20px 0; }
.self-join-event h1 { font-size:23px; line-height:1.38; color:#0c2137; font-weight:750; letter-spacing:-.01em; }
.self-join-meta { display:flex; flex-direction:column; gap:4px; margin-top:9px; font-size:12px; color:#5d6c7c; line-height:1.55; }
.self-join-host { margin-top:10px; padding-top:10px; border-top:1px solid #e7ddcb; font-size:12px; color:#788492; }
.self-join-host b { color:#9a7437; }
.self-join-form { padding:16px 20px 0; }
.self-join-field { margin-bottom:12px; }
.self-join-field label { display:block; font-size:13px; font-weight:650; color:#344457; margin-bottom:6px; }
.self-join-field label em { color:#b4513e; font-style:normal; }
.self-join-field input, .self-join-field select {
  width:100%; height:48px; border:1px solid #d8cebd; border-radius:9px; background:#fff;
  padding:0 12px; font-size:15px; color:#17212c; outline:none; transition:.15s;
}
.self-join-field input:focus, .self-join-field select:focus { border-color:#b18a4d; box-shadow:0 0 0 3px rgba(177,138,77,.13); }
.self-join-field input::placeholder { color:#a9a294; }
.self-join-privacy { margin:4px 0 12px; padding:9px 10px; border-radius:7px; background:#f4eee2; color:#817766; font-size:10.5px; line-height:1.6; }
.self-join-error { min-height:18px; color:#b44232; font-size:11.5px; line-height:1.5; }
.self-join-submit {
  width:100%; height:47px; border:0; border-radius:9px; background:#0c2137; color:#f3dfb3;
  font-size:15px; font-weight:650; letter-spacing:.04em; cursor:pointer; margin-top:2px;
}
.self-join-submit:hover { background:#143552; }
.self-join-submit:disabled { opacity:.65; cursor:wait; }
.self-join-foot { padding:18px 20px 20px; text-align:center; font-size:9.5px; color:#a19a8d; letter-spacing:.04em; }
.self-join-success { padding:14px 26px 20px; text-align:center; }
.self-join-ok {
  width:52px; height:52px; margin:6px auto 12px; display:grid; place-items:center;
  border-radius:50%; background:#e4f3e9; color:#227552; font-size:26px; font-weight:700;
}
.self-join-success h2 { font-size:21px; color:#0c2137; }
.self-join-success p { margin-top:8px; font-size:13px; color:#5d6c7c; line-height:1.7; }
.self-join-success p b { color:#9a7437; }
.self-join-hint { font-size:11.5px !important; color:#8c8578 !important; }
.self-join-loading, .self-join-invalid { padding:40px 26px; text-align:center; }
.self-join-loading .boot-mark { margin:0 auto 14px; }
.self-join-invalid h1 { margin-top:16px; font-size:20px; color:#0c2137; }
.self-join-invalid p { margin-top:8px; font-size:13px; color:#6e7884; line-height:1.7; }
.self-join-invalid .self-join-logo { margin:0 auto; }
@media (max-width: 600px) {
  .self-join-page { padding:12px 10px 24px; }
  .self-join-card { border-radius:15px; }
  .self-join-head { padding:15px 16px 0; }
  .self-join-event { padding:6px 16px 0; }
  .self-join-event h1 { font-size:21px; }
  .self-join-form { padding:14px 16px 0; }
  .self-join-field input { height:46px; font-size:16px; }
  .self-join-foot { padding:16px 16px 18px; }
}

/* 客户自助邀约：营销员待确认与分享链接 */
.self-pending-list { display:flex; flex-direction:column; }
.self-pending-row { display:flex; align-items:center; gap:14px; padding:12px 2px; border-top:1px solid #eef3f8; }
.self-pending-row:first-child { border-top:0; }
.self-pending-main { flex:1; min-width:0; }
.self-pending-name { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.self-pending-name b { font-size:14px; color:var(--ink); }
.self-pending-name span { font-size:11px; color:#6e7f90; }
.self-pending-meta { margin-top:4px; font-size:10.5px; color:#7b8a9a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.self-pending-time { margin-top:2px; font-size:9.5px; color:#a1adba; }
.self-pending-actions { display:flex; gap:6px; flex-shrink:0; }
.link-share-tip { margin:2px 0 12px; padding:9px 10px; background:#f6f9fc; border-radius:8px; color:#718293; font-size:10.5px; line-height:1.6; }
.link-share-result { margin-top:14px; padding-top:12px; border-top:1px solid #e8eef5; }
.link-share-label { font-size:11px; font-weight:600; color:#43566a; margin-bottom:6px; }
.link-share-copy { display:flex; gap:6px; margin-top:7px; flex-wrap:wrap; }
.link-share-qr { display:flex; align-items:center; gap:10px; margin-top:13px; color:#8b9bab; font-size:10px; }
.link-share-qr img { width:118px; height:118px; border:1px solid #e5ebf2; border-radius:8px; background:#fff; }
@media (max-width: 600px) {
  .self-pending-row { align-items:flex-start; gap:8px; }
  .self-pending-actions { flex-direction:column; }
  .self-pending-actions .btn { width:72px; }
  .self-pending-meta { white-space:normal; line-height:1.5; }
  .link-share-qr img { width:104px; height:104px; }
}
.link-share-wechat { margin-top:9px; padding:8px 9px; border-radius:7px; background:#fbf7ee; color:#8b7a5c; font-size:10px; line-height:1.55; }
.link-share-poster { margin-top:12px; }
.link-share-poster img { display:block; width:236px; max-width:100%; border-radius:10px; border:1px solid #d8c8a9; box-shadow:0 8px 22px rgba(12,33,55,.16); background:#fff; }
@media (max-width: 600px) {
  .link-share-poster img { width:220px; }
}
.self-join-field-tip { margin-top:5px; color:#9a8f7d; font-size:10px; line-height:1.5; }

/* 申购意向书 */
.self-join-field textarea {
  width:100%; min-height:76px; border:1px solid #d8cebd; border-radius:9px; background:#fff;
  padding:10px 12px; font-size:15px; color:#17212c; outline:none; resize:vertical;
}
.self-join-field textarea:focus { border-color:#b18a4d; box-shadow:0 0 0 3px rgba(177,138,77,.13); }
.intent-consent { display:flex; align-items:flex-start; gap:7px; margin:3px 0 12px; color:#817766; font-size:11px; line-height:1.55; }
.intent-consent input { margin-top:2px; accent-color:#0c2137; flex:0 0 auto; }
.intent-signature-block { margin-bottom:12px; }
.intent-signature-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.intent-signature-head label { font-size:13px; font-weight:650; color:#344457; }
.intent-signature-head label em { color:#b4513e; font-style:normal; }
.intent-signature-head button { border:0; background:none; color:#9a7437; font-size:11px; cursor:pointer; padding:2px 0; }
#intent-signature { display:block; width:100%; height:160px; border:1px dashed #cbbd9f; border-radius:9px; background:#fffdf8; touch-action:none; cursor:crosshair; }
.intent-signature-hint { margin-top:5px; color:#9a8f7d; font-size:10px; }
#view-intent { display:inline-flex; }
.intent-sheet-page { min-height:100vh; background:#eef2f6; padding:24px 16px 40px; font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }
.intent-sheet-toolbar { max-width:760px; margin:0 auto 12px; display:flex; justify-content:space-between; gap:8px; }
.intent-sheet { max-width:760px; margin:0 auto; background:#fff; color:#17212c; padding:38px 42px; box-shadow:0 12px 36px rgba(15,35,55,.12); border-top:5px solid #0c2137; }
.intent-sheet-top { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.intent-sheet-no { font-size:11px; letter-spacing:.18em; color:#a9823f; padding-top:5px; }
.intent-sheet h1 { margin:34px 0 8px; text-align:center; font-size:28px; letter-spacing:.18em; color:#0c2137; }
.intent-sheet-meta { text-align:center; font-size:11px; line-height:1.9; color:#7a8797; margin-bottom:24px; }
.intent-sheet-table { width:100%; border-collapse:collapse; font-size:13px; }
.intent-sheet-table th, .intent-sheet-table td { border:1px solid #dfe5ec; padding:10px 12px; text-align:left; vertical-align:top; }
.intent-sheet-table th { width:110px; background:#f7f9fb; color:#516273; font-weight:600; }
.intent-sheet-consent { margin-top:22px; font-size:11px; line-height:1.8; color:#687786; }
.intent-sheet-sign { margin-top:24px; display:flex; align-items:flex-end; gap:18px; }
.intent-sheet-sign-label { width:80px; font-size:13px; color:#43566a; flex:0 0 80px; }
.intent-sheet-sign img { max-width:320px; max-height:130px; border-bottom:1px solid #8a97a5; padding:0 8px 4px; }
.intent-sheet-foot { margin-top:34px; padding-top:12px; border-top:1px solid #e5eaf0; font-size:10px; color:#8b97a4; line-height:1.7; }
@media (max-width:600px) {
  .intent-sheet-page { padding:12px 8px 24px; }
  .intent-sheet { padding:24px 18px; }
  .intent-sheet h1 { font-size:24px; margin-top:26px; }
  .intent-sheet-table { font-size:12px; }
  .intent-sheet-table th { width:80px; padding:8px; }
  .intent-sheet-table td { padding:8px; }
  .intent-sheet-sign img { max-width:220px; max-height:110px; }
}
@media print {
  .intent-sheet-page { background:#fff; padding:0; }
  .intent-sheet-toolbar { display:none !important; }
  .intent-sheet { max-width:none; box-shadow:none; padding:20px 26px; border-top:4px solid #0c2137; }
}
.intent-agent-list { display:flex; flex-direction:column; }
.intent-agent-row { display:flex; align-items:center; gap:12px; padding:11px 1px; border-top:1px solid #eef3f8; }
.intent-agent-row:first-child { border-top:0; }
.intent-agent-main { flex:1; min-width:0; font-size:12.5px; }
.intent-agent-main .small { margin-top:3px; line-height:1.5; }
.intent-agent-main b { font-size:13.5px; }
@media (max-width:600px) {
  .intent-agent-row { align-items:flex-start; }
  .intent-agent-row .btn { flex:0 0 auto; }
}
.intent-admin-list { display:flex; flex-direction:column; }
.intent-admin-row { display:flex; align-items:center; gap:12px; padding:12px 1px; border-top:1px solid #eef3f8; }
.intent-admin-row:first-child { border-top:0; }
.intent-admin-main { flex:1; min-width:0; }
.intent-admin-name { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.intent-admin-name b { font-size:13.5px; color:var(--ink); }
.intent-admin-name span { font-size:11px; color:#6e7f90; }
.intent-admin-product { margin-top:4px; font-size:12px; color:#43566a; }
.intent-admin-meta { margin-top:3px; font-size:10px; color:#96a3b0; line-height:1.5; }
@media (max-width:600px) {
  .intent-admin-row { align-items:flex-start; }
  .intent-admin-row > .btn { flex:0 0 auto; }
}
.intent-toggle-row { display:flex; align-items:center; gap:7px; cursor:pointer; font-size:13px; font-weight:600; color:var(--ink-2); }
.intent-toggle-row input { width:16px; height:16px; accent-color:var(--navy); }
.intent-products-field > label { display:block; font-size:13px; font-weight:600; color:var(--ink-2); margin-bottom:6px; }
.intent-products-field > label .req { color:var(--red); }
.intent-products-field .textarea { width:100%; min-height:88px; }
.intent-poster-tabs { display:inline-flex; gap:3px; padding:3px; border-radius:8px; background:#f0f4f8; margin-bottom:10px; }
.intent-poster-tabs button { border:0; background:transparent; color:#7b8a9a; border-radius:6px; padding:6px 12px; font-size:11.5px; cursor:pointer; }
.intent-poster-tabs button.active { background:#fff; color:#0c2137; font-weight:600; box-shadow:0 1px 4px rgba(15,35,55,.1); }
.intent-poster-preview { display:flex; justify-content:center; min-height:200px; padding:4px 0 2px; }
.intent-poster-preview img { display:block; border-radius:10px; border:1px solid #d8c8a9; box-shadow:0 8px 24px rgba(12,33,55,.16); background:#fff; }
.intent-poster-preview img.portrait { width:236px; max-width:100%; }
.intent-poster-preview img.landscape { width:100%; max-width:430px; }
@media (max-width:600px) {
  .intent-poster-preview img.portrait { width:218px; }
  .intent-poster-preview img.landscape { max-width:100%; }
}

/* 数据分析：申购意向统计 */
.intent-analysis-card .grid-2 { align-items:start; }
.intent-stat-block { min-width:0; }
.intent-stat-title { font-size:13px; font-weight:650; color:var(--ink); margin:4px 0 8px; }
.intent-stat-head, .intent-stat-row { display:grid; grid-template-columns:minmax(0,1fr) 42px 92px; gap:7px; align-items:center; }
.intent-stat-head { padding:0 5px 6px; font-size:10px; color:#95a4b3; border-bottom:1px solid #eef3f8; }
.intent-stat-head span:not(:first-child), .intent-stat-row b, .intent-stat-row strong { text-align:right; }
.intent-stat-row { padding:8px 5px; border-bottom:1px solid #f1f5f9; font-size:12px; }
.intent-stat-row:last-child { border-bottom:0; }
.intent-stat-row .is-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#43566a; }
.intent-stat-row b { color:#6f8090; font-weight:500; }
.intent-stat-row strong { color:var(--ink); font-size:12px; font-variant-numeric:tabular-nums; }
.intent-stat-empty { padding:16px 5px; font-size:11px; color:#95a4b3; }
@media (max-width:600px) {
  .intent-analysis-card .grid-2 { gap:14px; }
  .intent-stat-head, .intent-stat-row { grid-template-columns:minmax(0,1fr) 34px 82px; gap:5px; }
  .intent-stat-row { font-size:11.5px; }
  .intent-stat-row strong { font-size:11.5px; }
}
.intent-no-interest { display:flex; align-items:flex-start; gap:7px; margin:2px 0 10px; padding:9px 10px; border-radius:8px; background:#f4eee2; color:#7b6b50; font-size:11px; line-height:1.5; }
.intent-no-interest input { margin-top:2px; accent-color:#0c2137; flex:0 0 auto; }
.gift-intent-lock { padding:22px 18px 16px; text-align:center; border:1px solid #e5d9c2; border-radius:12px; background:#fffdf8; }
.gift-intent-ic { font-size:30px; line-height:1; margin-bottom:9px; }
.gift-intent-title { color:#0c2137; font-size:15px; font-weight:650; }
.gift-intent-text { margin:7px auto 14px; max-width:340px; color:#7d8a97; font-size:11px; line-height:1.65; }
.gift-intent-lock .btn-block { width:100%; }
.intent-product-picker { display:flex; flex-direction:column; gap:6px; padding:9px 10px; border:1px solid var(--line); border-radius:8px; background:#fbfdff; max-height:210px; overflow:auto; }
.intent-product-option { display:flex; align-items:center; gap:7px; padding:5px 2px; cursor:pointer; font-size:12.5px; color:#43566a; }
.intent-product-option input { width:15px; height:15px; accent-color:var(--navy); flex:0 0 auto; }
.intent-product-option em { font-style:normal; font-size:10px; color:#98a5b2; margin-left:auto; }
.intent-product-card { min-height:120px; }

/* 意向书打印：去掉浏览器页边距，避免打印页脚出现网址 */
@page { size: A4; margin: 0; }
@media print {
  html, body { margin: 0 !important; background: #fff !important; }
  .intent-print-hint { display: none !important; }
  .intent-sheet-page { padding: 10mm 8mm !important; background: #fff !important; }
  .intent-sheet { max-width: none !important; width: 100% !important; padding: 8mm 10mm 10mm !important; box-shadow: none !important; margin: 0 !important; border-top: 4px solid #0c2137; }
  .intent-sheet-toolbar { display: none !important; }
}
.intent-print-hint { max-width:760px; margin:0 auto 10px; color:#8b7a5c; font-size:10px; line-height:1.55; text-align:center; }
.self-join-submit.signature-pending { opacity:.55; cursor:not-allowed; }

/* 管理后台主题 */
body[data-admin-theme^="light"] .sidebar {
  background: linear-gradient(180deg, #fffaf1 0%, #f4eadb 100%);
  border-right: 1px solid #e5d7c2;
  color: #43566a;
}
body[data-admin-theme^="light"] .brand-name { color: #0d2137; }
body[data-admin-theme^="light"] .brand-sub { color: #88785f; }
body[data-admin-theme^="light"] .nav-label { color: #a18d70; }
body[data-admin-theme^="light"] .nav a { color: #53677b; }
body[data-admin-theme^="light"] .nav a:hover { background: rgba(169,130,63,.09); color: #0d2137; }
body[data-admin-theme^="light"] .nav a.active {
  background: linear-gradient(90deg, rgba(201,160,90,.22), rgba(201,160,90,.06));
  color: #7c5b24;
  box-shadow: inset 2px 0 0 #b08a45;
}
body[data-admin-theme^="light"] .sidebar-foot { border-top-color: #e6d9c6; }
body[data-admin-theme^="light"] .who .name { color: #21354a; }
body[data-admin-theme^="light"] .who .role { color: #88785f; }
body[data-admin-theme^="light"] .sidebar-foot .logout { color: #7f8f9f; }
body[data-admin-theme^="light"] .sidebar-foot .logout:hover { color: #0d2137; }

body[data-admin-theme="light-image"] .main {
  background: linear-gradient(135deg, rgba(251,247,238,.80), rgba(240,231,217,.86)), url('/assets/themes/admin-light.svg') center / cover fixed;
}
body[data-admin-theme="light-image"] .card,
body[data-admin-theme="light-image"] .kpi {
  background: rgba(255,253,248,.91);
  backdrop-filter: blur(10px);
}
body[data-admin-theme="light-image"] .page-head h1,
body[data-admin-theme="light-image"] .page-head .sub { text-shadow: 0 1px 0 rgba(255,255,255,.55); }

body[data-admin-theme^="dark"] .shell {
  --ink: #e9f1f9;
  --ink-2: #b8cadb;
  --ink-3: #8da5b9;
  --line: #254157;
  --card: #0f2438;
  --bg: #081725;
  background: #081725;
}
body[data-admin-theme^="dark"] .sidebar {
  background: radial-gradient(1000px 420px at -20% -10%, #173a59 0%, transparent 55%), #061421;
  border-right: 1px solid #1d354a;
}
body[data-admin-theme^="dark"] .main { background: #081725; color: var(--ink); }
body[data-admin-theme="dark-image"] .main {
  background: linear-gradient(135deg, rgba(5,18,30,.82), rgba(6,26,43,.88)), url('/assets/themes/admin-dark.svg') center / cover fixed;
}
body[data-admin-theme^="dark"] .card,
body[data-admin-theme^="dark"] .kpi {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
}
body[data-admin-theme="dark-image"] .card,
body[data-admin-theme="dark-image"] .kpi { background: rgba(13,34,52,.90); backdrop-filter: blur(10px); }
body[data-admin-theme^="dark"] .card-head { border-color: var(--line); }
body[data-admin-theme^="dark"] .card-head h3,
body[data-admin-theme^="dark"] .page-head h1,
body[data-admin-theme^="dark"] .section-title h2,
body[data-admin-theme^="dark"] h1,
body[data-admin-theme^="dark"] h2,
body[data-admin-theme^="dark"] h3,
body[data-admin-theme^="dark"] h4,
body[data-admin-theme^="dark"] .strong,
body[data-admin-theme^="dark"] b { color: var(--ink); }
body[data-admin-theme^="dark"] .muted,
body[data-admin-theme^="dark"] .small.muted,
body[data-admin-theme^="dark"] .sub,
body[data-admin-theme^="dark"] .card-head .sub,
body[data-admin-theme^="dark"] .page-head .sub,
body[data-admin-theme^="dark"] .kpi .label,
body[data-admin-theme^="dark"] .kpi .foot { color: var(--ink-3); }
body[data-admin-theme^="dark"] .btn:not(.btn-primary):not(.btn-gold):not(.btn-blue):not(.btn-danger) {
  background: #132b40;
  border-color: #2b4962;
  color: #dce8f4;
}
body[data-admin-theme^="dark"] .btn:not(.btn-primary):not(.btn-gold):not(.btn-blue):not(.btn-danger):hover { background: #1a3852; border-color: #3c607c; }
body[data-admin-theme^="dark"] .input,
body[data-admin-theme^="dark"] .select,
body[data-admin-theme^="dark"] .textarea {
  background: #0b2032;
  border-color: #2a465c;
  color: #e9f1f9;
}
body[data-admin-theme^="dark"] .input::placeholder,
body[data-admin-theme^="dark"] .textarea::placeholder { color: #70889e; }
body[data-admin-theme^="dark"] .table th { background: #0a1d2c; color: #dce8f4; border-color: #29465b; }
body[data-admin-theme^="dark"] .table td { border-color: #20394e; color: #c6d5e3; }
body[data-admin-theme^="dark"] .table tr:nth-child(even) td { background: #0c2031; }
body[data-admin-theme^="dark"] .tabs { background: #0b2032; }
body[data-admin-theme^="dark"] .tabs button { color: #8ea4b7; }
body[data-admin-theme^="dark"] .tabs button.active { background: #17364f; color: #fff; }
body[data-admin-theme^="dark"] .funnel-track,
body[data-admin-theme^="dark"] .bar-track { background: #1b3449; }
body[data-admin-theme^="dark"] .rank-item:hover { background: #132c42; }
body[data-admin-theme^="dark"] .chip.gray { background: #173044; color: #a4b8ca; }
body[data-admin-theme^="dark"] .empty { color: #8da5b9; }
body[data-admin-theme^="dark"] .warn-box,
body[data-admin-theme^="dark"] .callout { border-color: #3c5b73; background: #10283b; color: #c1d1df; }
body[data-admin-theme^="dark"] .toolbar { border-bottom-color: #20394e; }
body[data-admin-theme^="dark"] .repeat-formula,
body[data-admin-theme^="dark"] .quota-tip,
body[data-admin-theme^="dark"] .today-branch-block,
body[data-admin-theme^="dark"] .intent-stat-head,
body[data-admin-theme^="dark"] .intent-stat-row { border-color: #20394e; }
body[data-admin-theme^="dark"] .today-branch-block,
body[data-admin-theme^="dark"] .intent-product-picker,
body[data-admin-theme^="dark"] .intent-stat-row:nth-child(odd) { background: transparent; }
body[data-admin-theme^="dark"] .today-branch-head { color: #8097ab; border-color: #20394e; }
body[data-admin-theme^="dark"] .today-branch-row { border-color: #1b3449; }
body[data-admin-theme^="dark"] .intent-product-option { color: #c6d5e3; }
body[data-admin-theme^="dark"] .hero-event { border-color: transparent; }

/* 后台主题选择 */
.admin-theme-grid { grid-template-columns:repeat(2, minmax(0,1fr)); }
.admin-theme-card { overflow:hidden; padding:0; }
.admin-theme-card.active { border-color:var(--gold); box-shadow:0 0 0 2px rgba(201,160,90,.18); }
.admin-theme-preview { position:relative; height:180px; overflow:hidden; display:flex; }
.atp-side { width:22%; height:100%; }
.atp-main { flex:1; padding:16px 14px; display:flex; flex-direction:column; gap:9px; }
.atp-head { height:24px; border-radius:6px; display:flex; align-items:center; justify-content:space-between; padding:0 8px; font-size:9px; font-weight:600; }
.atp-head i { width:34px; height:5px; border-radius:99px; background:rgba(201,160,90,.65); }
.atp-line { height:5px; width:52%; border-radius:99px; }
.atp-cards { display:flex; gap:6px; }
.atp-cards i { flex:1; height:38px; border:1px solid rgba(150,170,190,.22); border-radius:6px; }
.atp-chart { flex:1; min-height:40px; border:1px solid rgba(150,170,190,.22); border-radius:6px; padding:12px; display:flex; align-items:flex-end; }
.atp-chart b { display:block; width:58%; height:8px; border-radius:99px; }
.admin-theme-tag { position:absolute; left:10px; bottom:10px; background:rgba(8,22,36,.74); color:#f0dfbd; border:1px solid rgba(201,164,92,.4); border-radius:99px; padding:3px 8px; font-size:9px; }
.admin-theme-info { padding:14px 16px 16px; display:flex; flex-direction:column; gap:7px; }
.admin-theme-info .btn { align-self:flex-start; margin-top:3px; }
@media (max-width:760px) { .admin-theme-grid { grid-template-columns:1fr; } }

/* 深色后台：活动折叠与卡片 */
body[data-admin-theme^="dark"] .event-month-head {
  background: linear-gradient(100deg, #10263a, #0c2032);
  border-color: var(--line);
  color: var(--ink);
}
body[data-admin-theme^="dark"] .event-month-head:hover { border-color: #3b5a72; }
body[data-admin-theme^="dark"] .event-month-head .event-month-hint { color: #8fb9dd; }
body[data-admin-theme^="dark"] .event-card {
  background: var(--card);
  border-color: var(--line);
}
body[data-admin-theme^="dark"] .event-card:hover { border-color: #3b5a72; }
body[data-admin-theme^="dark"] .date-badge {
  background: #132d42;
  border-color: #2a465c;
}
body[data-admin-theme^="dark"] .date-badge .d { color: var(--ink); }
body[data-admin-theme^="dark"] .tabs button.active { background: #17364f; color: #fff; }
body[data-admin-theme^="dark"] .toolbar .search-input,
body[data-admin-theme^="dark"] .roster-search { color: var(--ink); }
body[data-admin-theme^="light-image"] .main {
  background: linear-gradient(135deg, rgba(251,247,238,.64), rgba(240,231,217,.70)), url('/assets/themes/admin-light.svg') center / cover fixed;
}
body[data-admin-theme="dark-image"] .main {
  background: linear-gradient(135deg, rgba(5,18,30,.66), rgba(6,26,43,.74)), url('/assets/themes/admin-dark.svg') center / cover fixed;
}
.voice-settings-grid { display:grid; grid-template-columns:1.05fr 1fr 1fr auto; gap:12px; align-items:end; margin-top:14px; padding-top:13px; border-top:1px dashed #e0e8f1; }
.voice-settings-grid .field { gap:5px; }
.voice-settings-grid .field > label { font-size:11.5px; }
.voice-settings-grid input[type="range"] { width:100%; accent-color:var(--gold); height:34px; }
@media (max-width:760px) { .voice-settings-grid { grid-template-columns:1fr 1fr; } .voice-settings-grid .field:nth-child(4) { grid-column:1/-1; } .voice-settings-grid .field:nth-child(4) .btn { width:100%; } }

/* 申购意向书主题 */
.intent-theme-ivory-gold {
  --ip-page-bg:#edf1f5; --ip-paper:#fffdf8; --ip-ink:#17212c; --ip-muted:#6c7d8f;
  --ip-soft:#f7f9fb; --ip-line:#dfe5ec; --ip-accent:#0c2137; --ip-border:#a9823f; --ip-pattern:none;
}
.intent-theme-jade-brocade {
  --ip-page-bg:#e9f2ee; --ip-paper:#fbfffc; --ip-ink:#183b35; --ip-muted:#68857c;
  --ip-soft:#f1f9f5; --ip-line:#d5e7df; --ip-accent:#155e50; --ip-border:#b08a45;
  --ip-pattern:url('/assets/themes/intent-jade.svg');
}
.intent-theme-navy-gold {
  --ip-page-bg:#071827; --ip-paper:#0b2237; --ip-ink:#f2eadb; --ip-muted:#b9c8d6;
  --ip-soft:#123047; --ip-line:#3a566d; --ip-accent:#e4c77e; --ip-border:#c9a45c;
  --ip-pattern:url('/assets/themes/intent-navy.svg');
}
.intent-theme-rose-brocade {
  --ip-page-bg:#f4e9e7; --ip-paper:#fffaf8; --ip-ink:#44272a; --ip-muted:#8e6b6d;
  --ip-soft:#fbf1ee; --ip-line:#ead7d3; --ip-accent:#8f1d2c; --ip-border:#b08a45;
  --ip-pattern:url('/assets/themes/intent-rose.svg');
}
.intent-theme-custom {
  --ip-page-bg:#f2eee6; --ip-paper:#fffdf8; --ip-ink:#17212c; --ip-muted:#6c7d8f;
  --ip-soft:#f7f9fb; --ip-line:#dfe5ec; --ip-accent:#0d2137; --ip-border:#a9823f; --ip-pattern:none;
}

.intent-join-page[class*="intent-theme-"] { background: var(--ip-page-bg) !important; }
.intent-join-page[class*="intent-theme-"] .self-join-card { background: var(--ip-paper); color: var(--ip-ink); border-color: var(--ip-border); }
.intent-join-page[class*="intent-theme-"] .self-join-event h1,
.intent-join-page[class*="intent-theme-"] .self-join-brand b,
.intent-join-page[class*="intent-theme-"] .self-join-field label,
.intent-join-page[class*="intent-theme-"] .intent-signature-head label { color: var(--ip-ink); }
.intent-join-page[class*="intent-theme-"] .self-join-meta,
.intent-join-page[class*="intent-theme-"] .self-join-host,
.intent-join-page[class*="intent-theme-"] .self-join-field-tip,
.intent-join-page[class*="intent-theme-"] .intent-signature-hint { color: var(--ip-muted); }
.intent-join-page[class*="intent-theme-"] .self-join-submit { background: var(--ip-accent); color: #f3dfb3; }

.intent-sheet-page[class*="intent-theme-"] { background: var(--ip-page-bg); }
.intent-sheet-page[class*="intent-theme-"] .intent-sheet {
  position: relative;
  background: var(--ip-paper) !important;
  color: var(--ip-ink) !important;
  border: 2px solid var(--ip-border) !important;
  box-shadow: inset 0 0 0 4px var(--ip-paper), inset 0 0 0 5px var(--ip-border), 0 12px 36px rgba(15,35,55,.14) !important;
}
.intent-sheet-page[class*="intent-theme-"] .intent-sheet::before {
  content: "";
  position: absolute;
  inset: 14px;
  background-image: var(--ip-pattern);
  background-size: 360px 360px;
  opacity: .14;
  pointer-events: none;
  z-index: 0;
}
.intent-sheet-page[class*="intent-theme-"] .intent-sheet > * { position: relative; z-index: 1; }
.intent-sheet-page[class*="intent-theme-"] .intent-sheet h1,
.intent-sheet-page[class*="intent-theme-"] .intent-sheet .self-join-brand b { color: var(--ip-ink); }
.intent-sheet-page[class*="intent-theme-"] .intent-sheet-no { color: var(--ip-accent); }
.intent-sheet-page[class*="intent-theme-"] .intent-sheet-meta,
.intent-sheet-page[class*="intent-theme-"] .intent-sheet-consent,
.intent-sheet-page[class*="intent-theme-"] .intent-sheet-foot,
.intent-sheet-page[class*="intent-theme-"] .intent-sheet-sign-label { color: var(--ip-muted); }
.intent-sheet-page[class*="intent-theme-"] .intent-sheet-table th {
  background: var(--ip-soft) !important;
  color: var(--ip-ink) !important;
  border-color: var(--ip-line) !important;
}
.intent-sheet-page[class*="intent-theme-"] .intent-sheet-table td { color: var(--ip-ink); border-color: var(--ip-line) !important; }
.intent-sheet-page[class*="intent-theme-"] .intent-sheet-sign img { border-color: var(--ip-border); background: var(--ip-paper); }
.intent-sheet-page[class*="intent-theme-"] .intent-sheet-foot { border-top-color: var(--ip-line); }
@media print {
  .intent-sheet-page[class*="intent-theme-"] { background: var(--ip-page-bg) !important; }
  .intent-sheet-page[class*="intent-theme-"] .intent-sheet { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 意向书主题编辑 */
.intent-theme-editor { margin-top:12px; padding-top:12px; border-top:1px dashed #dfe7ef; }
.intent-theme-custom { margin-top:10px; padding:10px; border:1px solid #e4ebf2; border-radius:8px; background:#f8fbfd; }
.intent-theme-custom .form-grid { gap:9px; }
.intent-theme-custom .field > label { font-size:11px; }
.intent-theme-custom input[type="color"] { padding:4px; height:42px; cursor:pointer; }
.intent-theme-preview { margin-top:10px; padding:10px; border-radius:8px; background:var(--ip-page-bg); }
.itp-paper { width:160px; min-height:96px; margin:0 auto; padding:10px 12px; background:var(--ip-paper); color:var(--ip-ink); border:2px solid var(--ip-border); box-shadow:inset 0 0 0 3px var(--ip-paper),inset 0 0 0 4px var(--ip-border); position:relative; overflow:hidden; }
.itp-paper::before { content:""; position:absolute; inset:5px; background-image:var(--ip-pattern); background-size:120px 120px; opacity:.12; }
.itp-paper > * { position:relative; z-index:1; }
.itp-title { font-size:11px; font-weight:700; text-align:center; letter-spacing:.14em; }
.itp-line { height:4px; background:var(--ip-line); border-radius:99px; margin-top:10px; }
.itp-line.short { width:62%; }
.itp-sign { margin-top:14px; padding-top:8px; border-top:1px solid var(--ip-line); font-size:8px; color:var(--ip-muted); }
