:root {
  --bg: #0e141b;
  --bg-image: none;
  --sidebar: #121b24;
  --panel: #18232e;
  --line: #2a3948;
  --text: #e8eef4;
  --muted: #8b9aab;
  --accent: #2bb673;
  --danger: #e85d5d;
  --topbar-bg: rgba(18, 27, 36, .92);
  --input-bg: #0f171f;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg);
  background-image: var(--bg-image);
  background-attachment: fixed;
  background-size: cover;
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; }
.admin-body { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; flex-shrink: 0; background: var(--sidebar);
  border-right: 1px solid var(--line); padding: 18px 12px;
  position: sticky; top: 0; height: 100vh; overflow: auto;
  backdrop-filter: blur(8px);
}
.brand strong { display: block; font-size: 1.05rem; }
.brand span { display: block; font-size: .72rem; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.sidebar nav { margin-top: 12px; display: grid; gap: 4px; }
.nav-search-wrap { padding: 0 10px; margin-top: 12px; }
.nav-search-input {
  width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 8px;
  border: 1px solid rgba(148,163,184,.35); background: rgba(255,255,255,.06);
  color: var(--text); font: inherit; font-size: 12px; outline: none;
}
.nav-search-input::placeholder { color: rgba(148,163,184,.85); }
.nav-search-input:focus { border-color: rgba(43,182,115,.55); box-shadow: 0 0 0 2px rgba(43,182,115,.12); }
.nav-item {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--muted); font-size: .9rem;
}
.nav-item:hover, .nav-item.active { background: rgba(43,182,115,.12); color: var(--text); }
.nav-item.disabled { opacity: .45; cursor: not-allowed; }
.nav-item em { font-style: normal; font-size: .7rem; color: #c9a227; margin-left: 4px; }
.nav-item-sub { padding-left: 22px; font-size: .86rem; }
.nav-group { display: grid; gap: 2px; }
.nav-group-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent;
  color: var(--muted); font-size: .9rem; text-align: left; cursor: pointer;
}
.nav-group-toggle:hover { background: rgba(43,182,115,.08); color: var(--text); }
.nav-group.is-open > .nav-group-toggle { color: var(--text); }
.nav-caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: .7; transition: transform .15s ease;
}
.nav-group.is-open > .nav-group-toggle .nav-caret { transform: rotate(180deg); }
.nav-group-body {
  display: none;
  gap: 2px; padding: 2px 0 6px 6px;
  border-left: 1px solid rgba(159,176,195,.18); margin-left: 12px;
}
.nav-group.is-open > .nav-group-body {
  display: grid;
}
.nav-group-body[hidden] { display: none !important; }
.nav-group-body .nav-group-toggle { font-size: .86rem; padding: 7px 10px; }
.nav-group-body .nav-item-sub { padding-left: 12px; }
#adminSideNav.is-searching .nav-item.nav-search-hit,
#adminSideNav.is-searching .nav-group.nav-search-hit > .nav-group-toggle {
  color: var(--accent, #2bb673); font-weight: 600;
}
#adminSideNav.is-searching a.nav-item.nav-search-hit {
  background: rgba(43,182,115,.12);
}
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: transparent; }
.topbar {
  position: relative;
  z-index: 1200;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--topbar-bg);
  backdrop-filter: blur(10px);
}
.topbar-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-user {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: .9rem; flex-shrink: 0;
}
.topbar-user a { margin-left: 2px; }
.content { padding: 20px; background: transparent; }
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 18px; margin-bottom: 16px;
}
.panel h2 { margin: 0 0 14px; font-size: 1.1rem; }
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.stat-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px;
}
.stat-card span { color: var(--muted); font-size: .85rem; }
.stat-card strong { display: block; font-size: 1.6rem; margin-top: 6px; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.quick-links a, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: 8px; border: 0;
  background: var(--accent); color: #04140c; font-weight: 600; cursor: pointer; font: inherit;
}
.btn.ghost, .quick-links a:nth-child(n+2) {
  background: transparent; color: var(--text); border: 1px solid var(--line);
}
.btn.sm { padding: 4px 10px; font-size: .82rem; }
.btn.danger, a.danger { color: var(--danger); }
.muted { color: var(--muted); font-size: .9rem; }
.ok-msg { color: #0a7a45; background: #eefbf4; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.error-msg { color: #b42318; background: #fff1f0; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.toolbar { margin-bottom: 12px; }
.filter-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-form input, .filter-form select,
.form-grid input, .form-grid select, .form-grid textarea,
.login-card input {
  padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--input-bg); color: var(--text); font: inherit;
}
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td {
  border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top;
}
.data-table th { color: var(--muted); font-weight: 500; }
.data-table .empty { text-align: center; color: var(--muted); padding: 28px; }
.map-mark-status {
  display: inline-block;
  margin: 0 4px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  vertical-align: middle;
  white-space: nowrap;
}
.map-mark-status.is-marked {
  background: rgba(43, 182, 115, .18);
  color: #2bb673;
}
.map-mark-status.is-unmarked {
  background: rgba(160, 170, 180, .18);
  color: var(--muted);
}
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row.full, .form-actions.full, .muted.full { grid-column: 1 / -1; }
.form-row label { font-size: .85rem; color: var(--muted); }
.tag-checks { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.detail-dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 12px; }
.detail-dl dt { color: var(--muted); }
.detail-dl .pre { white-space: pre-wrap; }
.reply-body { display: grid; gap: 10px; }
.reply-body .reply-text { margin: 0; }
.attach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 2px;
}
.attach-card {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.attach-grid a.attach-thumb {
  display: block; background: #0f141a; border-radius: 8px; border: 1px solid var(--line); overflow: hidden;
}
.attach-grid img, .attach-grid video {
  width: 100%; height: 200px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line);
  background: #0f141a; image-rendering: auto; cursor: zoom-in;
}
.attach-grid video { cursor: default; }
.attach-lightbox {
  position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box;
}
.attach-lightbox[hidden] { display: none !important; }
.attach-lightbox-stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  max-width: 96vw; max-height: 90vh; min-width: 120px; min-height: 80px;
}
.attach-lightbox-loading {
  position: absolute; z-index: 2; color: #e2e8f0; font-size: 14px; padding: 16px 20px;
  background: rgba(15,20,26,.75); border-radius: 8px; pointer-events: none;
}
.attach-lightbox-loading[hidden] { display: none !important; }
.attach-lightbox img {
  display: block;
  max-width: min(96vw, 1600px); max-height: 90vh; width: auto; height: auto;
  object-fit: contain; border-radius: 6px; box-shadow: 0 8px 40px rgba(0,0,0,.5);
  image-rendering: auto; background: transparent;
}
.attach-lightbox img.is-loading { opacity: 0; }
.attach-lightbox-bar {
  position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 3;
}
.attach-lightbox-bar a, .attach-lightbox-bar button {
  appearance: none; border: 0; border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer;
  background: #1a9f63; color: #fff; text-decoration: none;
}
.attach-lightbox-bar button.ghost { background: #333; }
.attach-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-size: 28px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.attach-lightbox-nav:hover { background: rgba(255,255,255,.28); }
.attach-lightbox-nav.prev { left: 16px; }
.attach-lightbox-nav.next { right: 16px; }
.attach-lightbox-nav[hidden] { display: none !important; }
.attach-lightbox-pager {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3;
  padding: 6px 14px; border-radius: 999px; background: rgba(15,20,26,.72);
  color: #e2e8f0; font-size: 13px; letter-spacing: .04em; pointer-events: none;
}
.attach-lightbox-pager[hidden] { display: none !important; }
.attach-meta {
  display: block; margin: 0; font-size: .78rem; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.reply-upload-zone {
  position: relative;
  margin-top: 8px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px;
  background: #f7f9fb; transition: border-color .15s, background .15s;
}
.reply-upload-zone.is-dragover {
  border-color: #1a9f63; background: #eefbf4;
}
.reply-upload-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 8px;
}
.reply-upload-zone #replyFiles {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.reply-file-preview {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px;
  margin: 0; padding: 0; border: 0; background: transparent;
}
.reply-file-preview[hidden] { display: none !important; }
.reply-file-chip {
  position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: #fff; min-height: 110px;
}
.reply-file-chip img, .reply-file-chip video {
  display: block; width: 100%; height: 100px; object-fit: cover; background: #0f141a;
}
.reply-file-chip .chip-meta {
  display: block; padding: 4px 6px 6px; font-size: .72rem; line-height: 1.3; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.reply-file-chip .chip-meta.warn { color: #b45309; font-weight: 600; white-space: normal; }
.reply-file-chip .chip-remove {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: 14px; line-height: 1;
}
.reply-file-chip .chip-remove:hover { background: #b91c1c; }
.reply-kb-media { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #f3fbf7; }
.reply-kb-media img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; margin: 4px 4px 0 0; border: 1px solid var(--line); }
.tk-modal {
  position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.55);
  display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; overflow: auto;
  box-sizing: border-box;
}
.tk-modal[hidden] { display: none !important; }
.tk-modal-card {
  width: min(720px, 96vw); background: #fff; border-radius: 12px; padding: 18px 18px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25); margin-bottom: 40px;
}
.tk-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.tk-modal-head h3 { margin: 0; }
.tk-modal-card label { display: block; font-size: .88rem; color: var(--muted); margin-bottom: 4px; }
.tk-modal-card input[type="text"] {
  width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 8px; font: inherit;
}
.tk-kb-pick-list { margin-top: 14px; max-height: 48vh; overflow: auto; display: grid; gap: 12px; }
.tk-kb-block { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fafbfc; }
.tk-kb-block-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 8px; flex-wrap: wrap; }
.tk-kb-check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; cursor: pointer; }
.tk-kb-check input { margin-top: 4px; flex: 0 0 auto; }
.tk-kb-text { white-space: pre-wrap; line-height: 1.5; flex: 1; }
.tk-kb-att { flex-wrap: wrap; }
.tk-kb-att img, .tk-kb-att video {
  width: 100%; max-width: 220px; max-height: 140px; object-fit: contain;
  border-radius: 6px; border: 1px solid var(--line); background: #0f141a; display: block; margin-top: 6px;
}
.tk-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; justify-content: flex-end; }
.ticket-reply-section {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
}
.ticket-reply-section h3 { margin: 0 0 14px; }
.ticket-reply-list { display: grid; gap: 12px; margin-bottom: 18px; }
.ticket-reply-item {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc;
}
.ticket-reply-item.is-auto { border-color: rgba(26, 159, 99, .35); background: #f3fbf7; }
.ticket-reply-item.is-visitor { border-color: rgba(3, 105, 161, .35); background: #f0f9ff; }
.ticket-reply-item header {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px;
}
.ticket-reply-item header time { color: var(--muted); font-size: .85rem; }
.ticket-reply-item header .reply-del-btn { margin-left: auto; color: #b42318; border-color: rgba(180,35,24,.35); }
.ticket-reply-item header .reply-del-btn:hover { background: #fef3f2; }
.badge-auto {
  font-size: 12px; padding: 2px 8px; border-radius: 999px;
  background: rgba(26, 159, 99, .15); color: #0a7a45;
}
.ticket-reply-form { display: grid; gap: 8px; }
.ticket-reply-form textarea {
  width: 100%; min-height: 140px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; box-sizing: border-box; resize: vertical;
}
.ticket-reply-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.reply-suggest-meta { font-size: .85rem; line-height: 1.5; }
.reply-hint { margin: 4px 0 0; font-size: .85rem; }
.reply-refs { margin: 8px 0 0; font-size: .82rem; }
.login-page {
  min-height: 100vh; display: grid; place-items: center;
  background-color: var(--bg);
  background-image: var(--bg-image, radial-gradient(ellipse at 30% 20%, #1a3344, #0e141b 60%));
  background-attachment: fixed;
  background-size: cover;
}
.login-card {
  width: min(380px, 92vw); padding: 28px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  display: grid; gap: 8px;
}
.login-card h1 { margin: 0; font-size: 1.3rem; }
.login-sub { margin: 0 0 8px; color: var(--muted); font-size: .85rem; }
.login-card button {
  margin-top: 12px; padding: 11px; border: 0; border-radius: 8px;
  background: var(--accent); color: #04140c; font-weight: 700; cursor: pointer;
}
.alert { background: rgba(232,93,93,.15); color: #ffb4b4; padding: 8px 10px; border-radius: 8px; font-size: .9rem; }
.back-link { text-align: center; margin-top: 8px; color: var(--muted); font-size: .85rem; }
.print-only { display: none; }

.progress-bar {
  height: 8px; background: #0f171f; border-radius: 99px; overflow: hidden; min-width: 100px; margin-bottom: 4px;
}
.progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, #1a8f6a, #2bb673); }

.train-timeline {
  display: flex; gap: 0; overflow-x: auto; padding: 28px 8px 12px;
  align-items: flex-start;
}
.train-station {
  position: relative; flex: 0 0 180px; min-width: 160px; padding-top: 28px;
}
.station-dot {
  position: absolute; top: 0; left: 24px; width: 18px; height: 18px;
  border-radius: 50%; border: 3px solid #4a6075; background: #0f171f; z-index: 2;
}
.station-rail {
  position: absolute; top: 7px; left: 42px; right: -8px; height: 4px;
  background: repeating-linear-gradient(90deg, #3a4f63 0 10px, transparent 10px 16px);
  z-index: 1;
}
.station-card {
  margin: 12px 8px 0 0; padding: 14px;
  background: linear-gradient(180deg, #18232e 0%, #121b24 100%);
  border: 1px solid #2c3a48; border-radius: 12px;
  min-height: 140px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.station-index { font-size: .75rem; color: var(--muted); margin-bottom: 4px; letter-spacing: .02em; }
.station-card h3 { margin: 0 0 8px; font-size: .98rem; line-height: 1.35; color: #e8eef4; }
.station-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: .75rem; background: #243748; color: #9eb0c0; font-weight: 600;
}
.station-remark {
  margin: 10px 0 0; padding: 8px; font-size: .8rem; white-space: pre-wrap;
  background: rgba(8, 14, 20, .55); border-radius: 6px; color: #b7c6d4; max-height: 120px; overflow: auto;
  border: 1px solid rgba(60, 78, 96, .45);
}
.station-actions { margin-top: 10px; }
.station-actions select { width: 100%; }

.train-station.st-pending .station-dot { border-color: #5a6b7c; }
.train-station.st-pending .station-card { opacity: .88; }
.train-station.st-following .station-dot {
  border-color: #c9a227; background: #c9a227;
  box-shadow: 0 0 0 4px rgba(201,162,39,.25);
}
.train-station.st-following .station-badge { background: rgba(201,162,39,.22); color: #f0d78a; }
.train-station.st-following .station-card {
  border-color: rgba(201,162,39,.5);
  background: linear-gradient(180deg, #2a2416 0%, #1a1810 100%);
  box-shadow: 0 4px 16px rgba(201, 162, 39, .12);
}
.train-station.st-implementing .station-dot {
  border-color: #3b9eff; background: #3b9eff;
  box-shadow: 0 0 0 4px rgba(59,158,255,.25);
}
.train-station.st-implementing .station-badge { background: rgba(59,158,255,.22); color: #9ecfff; }
.train-station.st-implementing .station-card {
  border-color: rgba(59,158,255,.5);
  background: linear-gradient(180deg, #152433 0%, #101820 100%);
}
.train-station.st-done .station-dot { border-color: #2bb673; background: #2bb673; }
.train-station.st-done .station-rail { background: linear-gradient(90deg, #2bb673, #5ed49a); }
.train-station.st-done .station-badge { background: rgba(43,182,115,.22); color: #8ae4b4; }
.train-station.st-done .station-card {
  border-color: rgba(43,182,115,.4);
  background: linear-gradient(180deg, #142820 0%, #101820 100%);
}

.row-warn { background: rgba(232,93,93,.08) !important; }
.cell-warn { color: #ff8a8a; font-weight: 600; }
.stat-warn strong { color: #ff8a8a; }
.expiry-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4,10,16,.72);
  display: grid; place-items: center; padding: 16px;
}
.expiry-modal[hidden] { display: none !important; }
.expiry-modal-card {
  width: min(520px, 96vw); background: #18232e; border: 1px solid #3a4a5a;
  border-radius: 12px; padding: 22px; box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.expiry-modal-card h3 { margin: 0 0 10px; color: #ff8a8a; }
.expiry-modal-list { margin: 12px 0 18px; padding-left: 1.1em; color: #c5d0db; font-size: .92rem; }
.expiry-modal-list li { margin-bottom: 8px; }
.expiry-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.map-admin {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 12px;
  min-height: calc(100vh - 120px);
}
.map-side {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  display: flex; flex-direction: column; min-height: 560px; overflow: hidden;
}
.map-side-head { padding: 14px; border-bottom: 1px solid var(--line); }
.map-side-head h2 { margin: 0 0 6px; font-size: 1.05rem; }
.map-side-head input[type=search] {
  width: 100%; margin-top: 10px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: #0f171f; color: var(--text); font: inherit;
}
.map-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.map-tab {
  flex: 1; border: 0; border-radius: 6px; padding: 6px 4px; cursor: pointer;
  background: transparent; color: var(--muted); font-size: .78rem;
}
.map-tab.active { background: rgba(43,182,115,.15); color: var(--text); }
.map-merchant-list {
  list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1;
}
.map-merchant-item {
  display: grid; gap: 2px; padding: 10px 12px; border-bottom: 1px solid var(--line);
  cursor: pointer; font-size: .86rem;
}
.map-merchant-item:hover, .map-merchant-item.active {
  background: rgba(43,182,115,.1);
}
.map-merchant-item strong { font-size: .92rem; }
.map-main {
  position: relative; display: grid;
  grid-template-columns: 1fr 300px; gap: 12px; min-height: 560px;
}
.admin-map-board {
  min-height: 560px; border-radius: 10px; border: 1px solid var(--line);
  background: #0b1822; overflow: hidden;
}
.admin-map-fallback {
  position: absolute; left: 16px; top: 16px; z-index: 5;
  background: rgba(24,35,46,.92); border: 1px solid var(--line);
  padding: 10px 12px; border-radius: 8px; max-width: 280px; color: var(--muted); font-size: .85rem;
}
.map-edit-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; overflow: auto; display: grid; gap: 6px; align-content: start;
}
.map-edit-panel h3 { margin: 0 0 6px; font-size: 1rem; }
.map-edit-panel label { font-size: .82rem; color: var(--muted); }
.map-edit-panel input, .map-edit-panel select, .map-edit-panel textarea {
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: #0f171f; color: var(--text); font: inherit; margin-bottom: 4px;
}
.map-coord-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.map-edit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.amap-lab { padding: 2px 6px; background: #fff; border-radius: 4px; font-size: 12px; color: #222; }

.cal-today-banner {
  background: linear-gradient(120deg, #143528, #18232e);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 14px; overflow: hidden;
}
.cal-today-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-today-head h2 { margin: 0; font-size: 1.05rem; }
.cal-today-empty { margin: 0; }
.cal-marquee { overflow: hidden; }
.cal-marquee-track {
  display: flex; gap: 12px; width: max-content;
  animation: calScroll 28s linear infinite;
}
.cal-marquee:hover .cal-marquee-track { animation-play-state: paused; }
@keyframes calScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.cal-marquee-card {
  flex: 0 0 auto; min-width: 220px; padding: 12px 14px;
  background: rgba(15,23,31,.7); border: 1px solid var(--line); border-radius: 8px;
  display: grid; gap: 4px;
}
.cal-marquee-card strong { font-size: .95rem; }
.cal-marquee-card span, .cal-marquee-card em { color: var(--muted); font-style: normal; font-size: .82rem; }

/* 主日历通栏：覆盖旧版左右分栏，避免右侧空白 */
.cal-layout,
.cal-layout-full {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: none !important;
}
.cal-layout > .cal-board,
.cal-layout-full .cal-board {
  display: block;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}
.cal-nav {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px;
}
.cal-nav h2 { margin: 0 auto 0 0; font-size: 1.2rem; }
.cal-grid {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 8px;
  width: 100%;
}
.cal-weekday {
  text-align: center; color: var(--muted); font-size: .85rem; padding: 6px 0; font-weight: 600;
}
.cal-cell {
  min-height: 128px; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px; background: #101820; color: inherit;
  display: flex; flex-direction: column; width: 100%;
  min-width: 0; box-sizing: border-box;
  text-align: left; font: inherit; cursor: pointer;
  text-decoration: none; transition: border-color .2s, background .2s, transform .15s;
}
.cal-cell.empty { background: transparent; border-color: transparent; cursor: default; }
.cal-cell:not(.empty):hover { border-color: rgba(43,182,115,.55); transform: translateY(-1px); }
.cal-cell.is-today { box-shadow: inset 0 0 0 1px #2bb673; }
.cal-cell.is-selected { background: rgba(43,182,115,.12); border-color: rgba(43,182,115,.55); }
.cal-daynum { font-size: .95rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.cal-dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.cal-dots li {
  font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 3px 6px; border-radius: 4px; background: rgba(59,158,255,.15); color: #9ec9ff;
}
.cal-dots li.st-done { background: rgba(43,182,115,.15); color: #7ddea8; }
.cal-dots li.st-cancelled { background: rgba(139,154,171,.15); color: #8b9aab; }
.cal-dots li.more { background: transparent; color: var(--muted); }

.cal-day-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cal-day-item {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #101820;
}
.cal-day-item.st-pending { border-left: 3px solid #c9a227; }
.cal-day-item.st-done { border-left: 3px solid #2bb673; opacity: .85; }
.cal-day-item.st-cancelled { border-left: 3px solid #8b9aab; opacity: .7; }
.cal-item-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.cal-form { grid-template-columns: 1fr 1fr; }

.cal-modal[hidden] { display: none !important; }
.cal-modal {
  position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center;
  padding: 16px; background: rgba(4,10,16,.72);
}
.cal-modal-card {
  width: min(920px, 96vw); max-height: 92vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
}
.cal-modal-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0;
  background: var(--panel); z-index: 1;
}
.cal-modal-head h2 { margin: 0; font-size: 1.1rem; }
.cal-modal-body {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 0;
}
.cal-modal-list-wrap, .cal-modal-form-wrap { padding: 16px 18px; }
.cal-modal-list-wrap { border-right: 1px solid var(--line); }
.cal-modal-list-wrap h3, .cal-modal-form-wrap h3 {
  margin: 0 0 12px; font-size: 1rem;
}
.cal-marquee-card { cursor: pointer; }
.cal-merchant-picker { position: relative; }
.cal-merchant-picker .merchant-picker-input { width: 100%; box-sizing: border-box; }
.cal-merchant-picker .merchant-picker-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
  max-height: 220px; overflow: auto; margin: 0; padding: 0; list-style: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.cal-merchant-picker .merchant-picker-list li {
  padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--line); font-size: .9rem;
}
.cal-merchant-picker .merchant-picker-list li:last-child { border-bottom: 0; }
.cal-merchant-picker .merchant-picker-list li:hover,
.cal-merchant-picker .merchant-picker-list li.active { background: rgba(59,158,255,.12); }
.cal-merchant-picker .merchant-picker-list li small { color: var(--muted); }
.cal-merchant-picker .merchant-picker-list li.empty-hint { cursor: default; color: var(--muted); }
.cal-merchant-picker .merchant-picker-picked { margin: 6px 0 0; font-size: .88rem; }
.cal-merchant-picker .merchant-picker-picked strong { color: var(--accent, #3b9eff); }
.cal-merchant-picker .merchant-picker-clear { margin-left: 8px; color: var(--muted); cursor: pointer; font-size: .85rem; }

.notes-toolbar { margin-bottom: 12px; }
.notes-create { grid-template-columns: 1fr 1fr 140px; }
.notes-section { margin-bottom: 22px; }
.notes-section > h2 { margin: 0 0 12px; font-size: 1.05rem; }
.notes-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.sticky-card {
  position: relative;
  padding: 16px 14px 12px;
  border-radius: 4px 4px 6px 6px;
  box-shadow: 2px 3px 0 rgba(0,0,0,.18);
  min-height: 140px;
  transition: transform .2s ease, opacity .2s ease;
  color: #2a2418;
}
.sticky-card.is-folding { transform: scale(.92) translateY(8px); opacity: 0; }
.sticky-card.is-older { opacity: .88; }
.sticky-card.is-done { opacity: .72; filter: grayscale(.15); }
.sticky-card.color-yellow { background: linear-gradient(180deg, #ffe9a8, #f5d76e); }
.sticky-card.color-green { background: linear-gradient(180deg, #d8f5c8, #b5e48c); }
.sticky-card.color-blue { background: linear-gradient(180deg, #d6e9ff, #a8d0ff); }
.sticky-card.color-pink { background: linear-gradient(180deg, #ffd6e7, #ffb3d0); }
.sticky-card.color-purple { background: linear-gradient(180deg, #e6d6ff, #c9b0ff); }
.sticky-card h3 { margin: 8px 0 6px; font-size: 1rem; }
.sticky-body { font-size: .92rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.sticky-meta {
  margin-top: 12px; display: flex; justify-content: space-between; gap: 8px;
  font-size: .72rem; opacity: .75;
}
.sticky-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin: 0 18px 4px 0;
}
.sticky-check {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; cursor: pointer; user-select: none;
}
.sticky-home.is-on span,
.sticky-card.is-home .sticky-home span { font-weight: 600; }
.sticky-card.is-home {
  box-shadow: 2px 3px 0 rgba(0,0,0,.18), 0 0 0 2px rgba(37, 99, 235, .35);
}
.sticky-edit {
  margin-left: auto;
  border: 0;
  background: rgba(0,0,0,.08);
  color: #2a2418;
  font-size: .78rem;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.4;
}
.sticky-edit:hover { background: rgba(0,0,0,.14); }
.sticky-del {
  position: absolute; top: 6px; right: 8px;
  border: 0; background: transparent; color: rgba(0,0,0,.45);
  font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.sticky-del:hover { color: #b00020; }

.notes-edit-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(8, 12, 18, .55);
  backdrop-filter: blur(2px);
  box-sizing: border-box;
}
.notes-edit-mask[hidden] { display: none !important; }
.notes-edit-dialog {
  width: min(560px, 100%);
  margin: 0 auto 24px;
  max-height: none;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  color: var(--text);
  overflow: hidden;
  box-sizing: border-box;
}
.notes-edit-head {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.notes-edit-head h2 { margin: 0; font-size: 1.05rem; }
.notes-edit-close {
  border: 0; background: transparent; color: var(--muted);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.notes-edit-close:hover { color: var(--text); }
.notes-edit-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  padding: 14px 16px 8px;
  overflow: visible;
  min-width: 0;
  box-sizing: border-box;
}
.notes-edit-form .form-row,
.notes-edit-form .form-actions {
  min-width: 0;
}
.notes-edit-form input,
.notes-edit-form select,
.notes-edit-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.notes-edit-form .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 -16px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  position: sticky;
  bottom: 0;
}
html[data-admin-theme="ice"] .notes-edit-mask {
  background: rgba(30, 55, 75, .35);
}
html[data-admin-theme="ice"] .notes-edit-dialog {
  border-color: #c5d8e6;
  box-shadow: 0 16px 40px rgba(40, 70, 100, .18);
}
.done-toggle {
  width: 100%; text-align: left; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--text); cursor: pointer; font: inherit;
}
.done-toggle em { float: right; font-style: normal; color: var(--muted); font-size: .82rem; }
.done-panel { margin-top: 12px; }
.done-panel[hidden] { display: none !important; }

.pay-tag {
  display: inline-block; margin-top: 2px; padding: 1px 6px; border-radius: 999px;
  font-size: .72rem;
}
.pay-tag.pay-paid { background: rgba(43,182,115,.18); color: #7ddea8; }
.pay-tag.pay-following { background: rgba(201,162,39,.18); color: #e6c65c; }
.pay-tag.pay-unpaid { background: rgba(232,93,93,.15); color: #ff8a8a; }

@media (max-width: 1100px) {
  .cal-cell { min-height: 96px; }
  .cal-modal-body { grid-template-columns: 1fr; }
  .cal-modal-list-wrap { border-right: 0; border-bottom: 1px solid var(--line); }
  .map-admin, .map-main { grid-template-columns: 1fr; }
  .admin-map-board { min-height: 360px; }
}

@media (max-width: 900px) {
  /* 手机端竖屏可用：抽屉侧栏 + 单列表单（支持随时派单） */
  .admin-body {
    flex-direction: column;
    min-width: 0;
    width: 100%;
  }
  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    margin-right: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
  }
  .sidebar-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1400;
  }
  .sidebar-mask[hidden] { display: none !important; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(280px, 86vw);
    height: 100vh;
    z-index: 1500;
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, .25);
  }
  body.admin-nav-open .sidebar {
    transform: translateX(0);
  }
  .main { min-width: 0; width: 100%; flex: 1; }
  .topbar {
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 8px;
  }
  .topbar-title { flex: 1; font-size: .95rem; }
  .topbar-user {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    font-size: .82rem;
  }
  .content { padding: 12px; }
  .form-grid { grid-template-columns: 1fr !important; }
  .detail-dl { grid-template-columns: 96px 1fr; }
  .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .toolbar .filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .toolbar .filter-form input,
  .toolbar .filter-form select,
  .toolbar .filter-form button {
    min-height: 40px;
  }
  .panel { padding: 14px; }
  .btn, .quick-links a { min-height: 40px; padding: 10px 14px; }
}

@media (min-width: 901px) {
  .sidebar-toggle { display: none !important; }
  .sidebar-mask { display: none !important; }
}

/* ========== 手机端护眼浅色（仅「自适应」模式） ========== */
@media (max-device-width: 1024px) {
  html:not([data-admin-theme]),
  html[data-admin-theme="auto"] {
    --bg: #eef5ef;
    --bg-image: none;
    --sidebar: #e3efe6;
    --panel: #fafcfb;
    --line: #c5d5ca;
    --text: #2a3b32;
    --muted: #5a6f63;
    --accent: #1b8f56;
    --danger: #c94a4a;
    --topbar-bg: rgba(250, 252, 251, .96);
    --input-bg: #fff;
  }

  html:not([data-admin-theme]) body,
  html:not([data-admin-theme]) .admin-body,
  html[data-admin-theme="auto"] body,
  html[data-admin-theme="auto"] .admin-body {
    background-color: var(--bg);
    background-image: var(--bg-image);
    color: var(--text);
  }

  html:not([data-admin-theme]) .sidebar,
  html[data-admin-theme="auto"] .sidebar {
    background: var(--sidebar);
    border-right-color: var(--line);
  }
  html:not([data-admin-theme]) .brand strong,
  html[data-admin-theme="auto"] .brand strong { color: #1f3a2c; }
  html:not([data-admin-theme]) .brand span,
  html[data-admin-theme="auto"] .brand span { color: var(--muted); }
  html:not([data-admin-theme]) .nav-item,
  html[data-admin-theme="auto"] .nav-item { color: #3d5548; }
  html:not([data-admin-theme]) .nav-item:hover,
  html:not([data-admin-theme]) .nav-item.active,
  html[data-admin-theme="auto"] .nav-item:hover,
  html[data-admin-theme="auto"] .nav-item.active {
    background: rgba(27, 143, 86, .14);
    color: #134d2e;
    font-weight: 600;
  }

  html:not([data-admin-theme]) .topbar,
  html[data-admin-theme="auto"] .topbar {
    background: var(--topbar-bg);
    border-bottom-color: var(--line);
  }
  html:not([data-admin-theme]) .topbar-title,
  html[data-admin-theme="auto"] .topbar-title { color: #1f3a2c; font-weight: 600; }
  html:not([data-admin-theme]) .topbar-user,
  html[data-admin-theme="auto"] .topbar-user { color: var(--muted); }
  html:not([data-admin-theme]) .topbar-user a,
  html[data-admin-theme="auto"] .topbar-user a { color: var(--accent); }

  html:not([data-admin-theme]) .panel,
  html:not([data-admin-theme]) .stat-card,
  html[data-admin-theme="auto"] .panel,
  html[data-admin-theme="auto"] .stat-card {
    background: var(--panel);
    border-color: var(--line);
    box-shadow: 0 1px 2px rgba(30, 60, 40, .04);
  }
  html:not([data-admin-theme]) .panel h2,
  html[data-admin-theme="auto"] .panel h2 { color: #1f3a2c; }

  html:not([data-admin-theme]) .filter-form input,
  html:not([data-admin-theme]) .filter-form select,
  html:not([data-admin-theme]) .form-grid input,
  html:not([data-admin-theme]) .form-grid select,
  html:not([data-admin-theme]) .form-grid textarea,
  html:not([data-admin-theme]) .login-card input,
  html:not([data-admin-theme]) .map-side input,
  html:not([data-admin-theme]) .map-edit-panel input,
  html:not([data-admin-theme]) .map-edit-panel select,
  html:not([data-admin-theme]) .map-edit-panel textarea,
  html[data-admin-theme="auto"] .filter-form input,
  html[data-admin-theme="auto"] .filter-form select,
  html[data-admin-theme="auto"] .form-grid input,
  html[data-admin-theme="auto"] .form-grid select,
  html[data-admin-theme="auto"] .form-grid textarea,
  html[data-admin-theme="auto"] .login-card input,
  html[data-admin-theme="auto"] .map-side input,
  html[data-admin-theme="auto"] .map-edit-panel input,
  html[data-admin-theme="auto"] .map-edit-panel select,
  html[data-admin-theme="auto"] .map-edit-panel textarea {
    background: #fff;
    color: var(--text);
    border-color: #b7c9bc;
  }

  html:not([data-admin-theme]) .data-table th,
  html[data-admin-theme="auto"] .data-table th { color: var(--muted); }
  html:not([data-admin-theme]) .data-table td,
  html[data-admin-theme="auto"] .data-table td { color: var(--text); border-bottom-color: #d5e2d8; }
  html:not([data-admin-theme]) .data-table .empty,
  html[data-admin-theme="auto"] .data-table .empty { color: var(--muted); }

  html:not([data-admin-theme]) .btn,
  html:not([data-admin-theme]) .quick-links a,
  html[data-admin-theme="auto"] .btn,
  html[data-admin-theme="auto"] .quick-links a {
    background: var(--accent);
    color: #fff;
  }
  html:not([data-admin-theme]) .btn.ghost,
  html:not([data-admin-theme]) .quick-links a:nth-child(n+2),
  html[data-admin-theme="auto"] .btn.ghost,
  html[data-admin-theme="auto"] .quick-links a:nth-child(n+2) {
    background: #fff;
    color: #2a3b32;
    border-color: #b7c9bc;
  }
  html:not([data-admin-theme]) .btn.danger,
  html:not([data-admin-theme]) a.danger,
  html[data-admin-theme="auto"] .btn.danger,
  html[data-admin-theme="auto"] a.danger { color: var(--danger); }
  html:not([data-admin-theme]) a,
  html[data-admin-theme="auto"] a { color: #187a4a; }

  html:not([data-admin-theme]) .login-page,
  html[data-admin-theme="auto"] .login-page {
    background:
      radial-gradient(ellipse at 30% 18%, #d8eadc, transparent 55%),
      linear-gradient(165deg, #eef5ef, #e2ede4 70%);
  }
  html:not([data-admin-theme]) .login-card,
  html[data-admin-theme="auto"] .login-card {
    background: #fafcfb;
    border-color: #c5d5ca;
    box-shadow: 0 10px 28px rgba(40, 70, 50, .08);
  }
  html:not([data-admin-theme]) .login-card h1,
  html[data-admin-theme="auto"] .login-card h1 { color: #1f3a2c; }
  html:not([data-admin-theme]) .login-card button,
  html[data-admin-theme="auto"] .login-card button {
    background: var(--accent);
    color: #fff;
  }
  html:not([data-admin-theme]) .alert,
  html[data-admin-theme="auto"] .alert {
    background: rgba(201, 74, 74, .1);
    color: #a33a3a;
  }

  html:not([data-admin-theme]) .cal-today-bar,
  html:not([data-admin-theme]) .cal-marquee,
  html[data-admin-theme="auto"] .cal-today-bar,
  html[data-admin-theme="auto"] .cal-marquee {
    background: linear-gradient(120deg, #d9efe0, #eef5ef) !important;
    border-color: var(--line) !important;
    color: var(--text) !important;
  }
  html:not([data-admin-theme]) .cal-marquee-card,
  html[data-admin-theme="auto"] .cal-marquee-card {
    background: #fff !important;
    border-color: var(--line) !important;
  }
  html:not([data-admin-theme]) .cal-cell,
  html[data-admin-theme="auto"] .cal-cell {
    background: #fff !important;
    border-color: #d0dfd4 !important;
    color: var(--text) !important;
  }
  html:not([data-admin-theme]) .cal-cell.empty,
  html[data-admin-theme="auto"] .cal-cell.empty { background: transparent !important; border-color: transparent !important; }
  html:not([data-admin-theme]) .cal-cell.is-today,
  html[data-admin-theme="auto"] .cal-cell.is-today { box-shadow: inset 0 0 0 2px #1b8f56 !important; }
  html:not([data-admin-theme]) .cal-cell.is-selected,
  html[data-admin-theme="auto"] .cal-cell.is-selected {
    background: rgba(27, 143, 86, .1) !important;
    border-color: rgba(27, 143, 86, .45) !important;
  }
  html:not([data-admin-theme]) .cal-daynum,
  html[data-admin-theme="auto"] .cal-daynum { color: #3d5548 !important; }
  html:not([data-admin-theme]) .cal-head,
  html[data-admin-theme="auto"] .cal-head { color: var(--muted) !important; }
  html:not([data-admin-theme]) .cal-modal,
  html:not([data-admin-theme]) .expiry-modal,
  html[data-admin-theme="auto"] .cal-modal,
  html[data-admin-theme="auto"] .expiry-modal {
    background: rgba(40, 60, 50, .35) !important;
  }
  html:not([data-admin-theme]) .cal-modal-card,
  html:not([data-admin-theme]) .expiry-modal-card,
  html[data-admin-theme="auto"] .cal-modal-card,
  html[data-admin-theme="auto"] .expiry-modal-card {
    background: #fafcfb !important;
    border-color: #c5d5ca !important;
    color: var(--text) !important;
  }
  html:not([data-admin-theme]) .expiry-modal-card h3,
  html[data-admin-theme="auto"] .expiry-modal-card h3 { color: #c94a4a !important; }
  html:not([data-admin-theme]) .expiry-modal-list,
  html[data-admin-theme="auto"] .expiry-modal-list { color: #3d5548 !important; }

  html:not([data-admin-theme]) .station-card,
  html:not([data-admin-theme]) .station-remark,
  html[data-admin-theme="auto"] .station-card,
  html[data-admin-theme="auto"] .station-remark {
    background: #fff !important;
    color: var(--text) !important;
    border-color: var(--line) !important;
  }
  html:not([data-admin-theme]) .station-remark,
  html[data-admin-theme="auto"] .station-remark { background: #f3f8f4 !important; color: #3d5548 !important; }

  html:not([data-admin-theme]) .map-side,
  html:not([data-admin-theme]) .map-edit-panel,
  html:not([data-admin-theme]) .map-tip,
  html[data-admin-theme="auto"] .map-side,
  html[data-admin-theme="auto"] .map-edit-panel,
  html[data-admin-theme="auto"] .map-tip {
    background: var(--panel) !important;
    color: var(--text) !important;
    border-color: var(--line) !important;
  }
  html:not([data-admin-theme]) .admin-map-board,
  html[data-admin-theme="auto"] .admin-map-board { background: #dce8e0 !important; }

  html:not([data-admin-theme]) .progress-bar,
  html[data-admin-theme="auto"] .progress-bar { background: #d7e5db; }
  html:not([data-admin-theme]) .pay-tag.pay-paid,
  html[data-admin-theme="auto"] .pay-tag.pay-paid { background: rgba(27, 143, 86, .12); color: #1b8f56; }
  html:not([data-admin-theme]) .pay-tag.pay-following,
  html[data-admin-theme="auto"] .pay-tag.pay-following { background: rgba(180, 140, 40, .14); color: #8a6a12; }
  html:not([data-admin-theme]) .pay-tag.pay-unpaid,
  html[data-admin-theme="auto"] .pay-tag.pay-unpaid { background: rgba(201, 74, 74, .12); color: #c94a4a; }
  html:not([data-admin-theme]) .row-warn,
  html[data-admin-theme="auto"] .row-warn { background: rgba(201, 74, 74, .08) !important; }
  html:not([data-admin-theme]) .cell-warn,
  html:not([data-admin-theme]) .stat-warn strong,
  html[data-admin-theme="auto"] .cell-warn,
  html[data-admin-theme="auto"] .stat-warn strong { color: #c94a4a; }
}

@media print {
  @page { size: A4 landscape; margin: 8mm; }
  body { background: #fff; color: #000; }
  .sidebar, .topbar, .no-print, .toolbar { display: none !important; }
  .main, .content { width: 100% !important; max-width: none !important; padding: 0 !important; }
  .panel { border: none; padding: 0; background: transparent; }
  .print-only { display: block; }
  .data-table th, .data-table td { border-color: #ccc; color: #000; }

  /* 强制横向时间轴（覆盖窄屏竖排样式） */
  .train-timeline {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    overflow: visible !important;
    padding: 22px 0 8px !important;
    gap: 0 !important;
  }
  .train-station {
    position: relative !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-top: 26px !important;
  }
  .station-dot {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    margin-left: -9px !important;
    width: 18px !important;
    height: 18px !important;
  }
  .station-rail {
    position: absolute !important;
    top: 7px !important;
    left: calc(50% + 12px) !important;
    right: calc(-50% + 12px) !important;
    width: auto !important;
    bottom: auto !important;
    height: 4px !important;
    background: repeating-linear-gradient(90deg, #999 0 8px, transparent 8px 14px) !important;
  }
  .train-station.st-done .station-rail { background: #2bb673 !important; }
  .station-card {
    margin: 6px 2px 0 !important;
    min-height: 0 !important;
    border-color: #ccc !important;
    background: #fff !important;
    color: #000 !important;
    page-break-inside: avoid;
  }
  .station-remark { background: #f5f5f5; color: #333; max-height: none; }
  .station-index, .station-card h3, .station-badge { color: #000; }
}

/* ========== 后台多背景风格（html[data-admin-theme]） ========== */
html[data-admin-theme="midnight"] {
  --bg: #0e141b;
  --bg-image: radial-gradient(ellipse at 18% 0%, rgba(43,182,115,.14), transparent 42%),
    radial-gradient(ellipse at 88% 12%, rgba(56,140,200,.12), transparent 40%),
    linear-gradient(165deg, #121a22 0%, #0e141b 55%, #0b1016 100%);
  --sidebar: rgba(14, 22, 30, .92);
  --panel: #18232e;
  --line: #2a3948;
  --text: #e8eef4;
  --muted: #8b9aab;
  --accent: #2bb673;
  --danger: #e85d5d;
  --topbar-bg: rgba(14, 22, 30, .9);
  --input-bg: #0f171f;
}
html[data-admin-theme="ocean"] {
  --bg: #071521;
  --bg-image: radial-gradient(ellipse at 20% 10%, rgba(34,168,214,.22), transparent 45%),
    radial-gradient(ellipse at 90% 80%, rgba(20,90,140,.28), transparent 50%),
    linear-gradient(160deg, #0a1c2c 0%, #071521 50%, #050f18 100%);
  --sidebar: rgba(8, 24, 38, .94);
  --panel: #102536;
  --line: #1f3d52;
  --text: #e4f1f8;
  --muted: #7fa3b8;
  --accent: #2eb8d9;
  --danger: #e85d5d;
  --topbar-bg: rgba(8, 24, 38, .9);
  --input-bg: #0a1a28;
}
html[data-admin-theme="forest"] {
  --bg: #0c1612;
  --bg-image: radial-gradient(ellipse at 15% 8%, rgba(46,180,110,.2), transparent 44%),
    radial-gradient(ellipse at 85% 70%, rgba(30,90,60,.25), transparent 48%),
    linear-gradient(165deg, #101c16 0%, #0c1612 55%, #09110e 100%);
  --sidebar: rgba(12, 26, 18, .94);
  --panel: #15261c;
  --line: #2a4536;
  --text: #e6f3ea;
  --muted: #85a692;
  --accent: #34c27a;
  --danger: #e85d5d;
  --topbar-bg: rgba(12, 26, 18, .9);
  --input-bg: #0e1a14;
}
html[data-admin-theme="dusk"] {
  --bg: #16120f;
  --bg-image: radial-gradient(ellipse at 25% 0%, rgba(220,140,70,.18), transparent 42%),
    radial-gradient(ellipse at 80% 90%, rgba(120,60,40,.22), transparent 50%),
    linear-gradient(165deg, #1c1612 0%, #16120f 55%, #100d0b 100%);
  --sidebar: rgba(28, 20, 16, .94);
  --panel: #241c16;
  --line: #3d3128;
  --text: #f3ebe3;
  --muted: #a89888;
  --accent: #d4a056;
  --danger: #e85d5d;
  --topbar-bg: rgba(28, 20, 16, .9);
  --input-bg: #1a1410;
}
html[data-admin-theme="mist"] {
  --bg: #12161c;
  --bg-image: radial-gradient(ellipse at 50% -10%, rgba(140,160,190,.16), transparent 48%),
    linear-gradient(180deg, #171c24 0%, #12161c 45%, #0e1218 100%);
  --sidebar: rgba(18, 22, 30, .95);
  --panel: #1a212c;
  --line: #2f3848;
  --text: #e8edf4;
  --muted: #8e99ab;
  --accent: #6bb3a0;
  --danger: #e85d5d;
  --topbar-bg: rgba(18, 22, 30, .92);
  --input-bg: #121820;
}
html[data-admin-theme="paper"] {
  --bg: #eef5ef;
  --bg-image: radial-gradient(ellipse at 20% 0%, rgba(180,210,190,.45), transparent 50%),
    linear-gradient(165deg, #f4faf5 0%, #eef5ef 55%, #e6efe8 100%);
  --sidebar: rgba(227, 239, 230, .96);
  --panel: #fafcfb;
  --line: #c5d5ca;
  --text: #2a3b32;
  --muted: #5a6f63;
  --accent: #1b8f56;
  --danger: #c94a4a;
  --topbar-bg: rgba(250, 252, 251, .96);
  --input-bg: #fff;
}
html[data-admin-theme="graphite"] {
  --bg: #111111;
  --bg-image: radial-gradient(ellipse at 30% 0%, rgba(90,90,90,.22), transparent 46%),
    linear-gradient(180deg, #1a1a1a 0%, #111111 50%, #0a0a0a 100%);
  --sidebar: rgba(22, 22, 22, .96);
  --panel: #1c1c1c;
  --line: #333;
  --text: #ececec;
  --muted: #9a9a9a;
  --accent: #3dd68c;
  --danger: #e85d5d;
  --topbar-bg: rgba(20, 20, 20, .94);
  --input-bg: #141414;
}
html[data-admin-theme="cyber"] {
  --bg: #050d12;
  --bg-image:
    radial-gradient(ellipse at 12% 8%, rgba(0,230,180,.16), transparent 40%),
    radial-gradient(ellipse at 90% 20%, rgba(0,160,255,.14), transparent 42%),
    repeating-linear-gradient(0deg, transparent, transparent 22px, rgba(0,200,180,.03) 23px),
    linear-gradient(165deg, #07141c 0%, #050d12 55%, #03080c 100%);
  --sidebar: rgba(6, 18, 26, .94);
  --panel: #0c1c26;
  --line: #1a3a48;
  --text: #dff7f2;
  --muted: #6fa8a0;
  --accent: #00d4a8;
  --danger: #ff5c7a;
  --topbar-bg: rgba(6, 18, 26, .92);
  --input-bg: #08141c;
}
html[data-admin-theme="wine"] {
  --bg: #140c10;
  --bg-image: radial-gradient(ellipse at 20% 0%, rgba(160,50,70,.22), transparent 44%),
    radial-gradient(ellipse at 85% 85%, rgba(80,30,40,.28), transparent 50%),
    linear-gradient(165deg, #1a1014 0%, #140c10 55%, #0e080a 100%);
  --sidebar: rgba(28, 14, 20, .94);
  --panel: #221418;
  --line: #3d2530;
  --text: #f4e8ec;
  --muted: #b08a96;
  --accent: #d4788a;
  --danger: #ff6b6b;
  --topbar-bg: rgba(28, 14, 20, .92);
  --input-bg: #180e12;
}
html[data-admin-theme="sunrise"] {
  --bg: #f6f0e8;
  --bg-image: radial-gradient(ellipse at 15% 0%, rgba(255,190,140,.4), transparent 48%),
    radial-gradient(ellipse at 90% 30%, rgba(255,220,180,.28), transparent 45%),
    linear-gradient(165deg, #faf5ef 0%, #f6f0e8 55%, #efe6da 100%);
  --sidebar: rgba(244, 232, 218, .96);
  --panel: #fffaf4;
  --line: #e0d0bc;
  --text: #3a2e24;
  --muted: #7a6a58;
  --accent: #c47a3a;
  --danger: #c94a4a;
  --topbar-bg: rgba(255, 250, 244, .96);
  --input-bg: #fff;
}
html[data-admin-theme="ice"] {
  --bg: #f0f4f8;
  --bg-image: radial-gradient(ellipse at 18% 0%, rgba(170,210,240,.35), transparent 50%),
    linear-gradient(180deg, #f5f8fb 0%, #f0f4f8 55%, #e8eef5 100%);
  --sidebar: #e6edf3;
  --panel: #ffffff;
  --line: #d0dde8;
  --text: #243544;
  --muted: #5d7388;
  --accent: #2a8fbc;
  --danger: #c94a4a;
  --topbar-bg: #ffffff;
  --input-bg: #fff;
}
html[data-admin-theme="paper"] .brand strong,
html[data-admin-theme="paper"] .topbar-title,
html[data-admin-theme="paper"] .panel h2,
html[data-admin-theme="sunrise"] .brand strong,
html[data-admin-theme="sunrise"] .topbar-title,
html[data-admin-theme="sunrise"] .panel h2,
html[data-admin-theme="ice"] .brand strong,
html[data-admin-theme="ice"] .topbar-title,
html[data-admin-theme="ice"] .panel h2 { color: inherit; font-weight: 700; }
html[data-admin-theme="paper"] .nav-item { color: #3d5548; }
html[data-admin-theme="paper"] .nav-item:hover,
html[data-admin-theme="paper"] .nav-item.active {
  background: rgba(27, 143, 86, .14);
  color: #134d2e;
}
html[data-admin-theme="sunrise"] .nav-item { color: #6a5644; }
html[data-admin-theme="sunrise"] .nav-item:hover,
html[data-admin-theme="sunrise"] .nav-item.active {
  background: rgba(196, 122, 58, .14);
  color: #6a3d12;
}
html[data-admin-theme="ice"] .nav-item { color: #3d5568; }
html[data-admin-theme="ice"] .nav-item:hover,
html[data-admin-theme="ice"] .nav-item.active {
  background: rgba(42, 143, 188, .14);
  color: #154a66;
}
html[data-admin-theme="paper"] .btn,
html[data-admin-theme="paper"] .quick-links a,
html[data-admin-theme="sunrise"] .btn,
html[data-admin-theme="sunrise"] .quick-links a,
html[data-admin-theme="ice"] .btn,
html[data-admin-theme="ice"] .quick-links a { color: #fff; }
html[data-admin-theme="paper"] .btn.ghost,
html[data-admin-theme="paper"] .quick-links a:nth-child(n+2),
html[data-admin-theme="sunrise"] .btn.ghost,
html[data-admin-theme="sunrise"] .quick-links a:nth-child(n+2),
html[data-admin-theme="ice"] .btn.ghost,
html[data-admin-theme="ice"] .quick-links a:nth-child(n+2) {
  background: #fff;
  color: var(--text);
}

/* 顶栏风格选择器（菜单挂到 body，避免被看板盖住） */
.theme-picker {
  position: relative;
  z-index: 1210;
}
.theme-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(43, 182, 115, .45);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(43, 182, 115, .12);
}
.theme-picker-btn:hover,
.theme-picker-btn[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(43, 182, 115, .22);
}
.theme-picker-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.28);
  background: #0e141b;
  flex-shrink: 0;
}
.theme-picker-menu {
  position: fixed;
  z-index: 99999;
  width: 232px;
  max-height: min(70vh, 420px);
  overflow: auto;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  display: grid;
  gap: 4px;
}
.theme-picker-menu[hidden] { display: none !important; }
.theme-opt {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 1px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.theme-opt:hover,
.theme-opt.is-active {
  background: rgba(43, 182, 115, .14);
}
.theme-opt .theme-picker-swatch {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.theme-opt strong {
  font-size: .84rem;
  font-weight: 650;
}
.theme-opt span {
  font-size: .72rem;
  color: var(--muted);
}
.theme-opt[data-theme="auto"] .theme-picker-swatch {
  background: linear-gradient(135deg, #0e141b 50%, #eef5ef 50%);
}
.theme-opt[data-theme="midnight"] .theme-picker-swatch {
  background: linear-gradient(145deg, #1a3344, #0e141b);
}
.theme-opt[data-theme="ocean"] .theme-picker-swatch {
  background: linear-gradient(145deg, #1a6a8a, #071521);
}
.theme-opt[data-theme="forest"] .theme-picker-swatch {
  background: linear-gradient(145deg, #1f6b45, #0c1612);
}
.theme-opt[data-theme="dusk"] .theme-picker-swatch {
  background: linear-gradient(145deg, #a86b35, #16120f);
}
.theme-opt[data-theme="mist"] .theme-picker-swatch {
  background: linear-gradient(145deg, #4a5a70, #12161c);
}
.theme-opt[data-theme="paper"] .theme-picker-swatch {
  background: linear-gradient(145deg, #d8eadc, #eef5ef);
  border-color: #b7c9bc;
}
.theme-opt[data-theme="graphite"] .theme-picker-swatch {
  background: linear-gradient(145deg, #444, #111);
}
.theme-opt[data-theme="cyber"] .theme-picker-swatch {
  background: linear-gradient(145deg, #00d4a8, #050d12);
}
.theme-opt[data-theme="wine"] .theme-picker-swatch {
  background: linear-gradient(145deg, #8a3048, #140c10);
}
.theme-opt[data-theme="sunrise"] .theme-picker-swatch {
  background: linear-gradient(145deg, #ffbe8c, #f6f0e8);
  border-color: #e0d0bc;
}
.theme-opt[data-theme="ice"] .theme-picker-swatch {
  background: linear-gradient(145deg, #8ec4e0, #eef3f8);
  border-color: #c5d4e4;
}

/* ========== 冰河：日程 / 表单 / 顶栏按钮 ========== */
html[data-admin-theme="ice"] .theme-picker-btn {
  border-color: #9ec4df;
  background: #d9ebf7;
  color: #1a4d6e;
  box-shadow: none;
}
html[data-admin-theme="ice"] .theme-picker-btn:hover,
html[data-admin-theme="ice"] .theme-picker-btn[aria-expanded="true"] {
  border-color: #2a8fbc;
  box-shadow: 0 0 0 2px rgba(42, 143, 188, .15);
}
html[data-admin-theme="ice"] .theme-picker-menu {
  background: #fff;
  border-color: #d0dde8;
  box-shadow: 0 12px 32px rgba(40, 70, 100, .14);
}
html[data-admin-theme="ice"] .theme-opt:hover,
html[data-admin-theme="ice"] .theme-opt.is-active {
  background: rgba(42, 143, 188, .12);
}
html[data-admin-theme="ice"] .data-table th {
  background: #eef4f9;
  color: var(--muted);
}
html[data-admin-theme="ice"] .data-table td {
  border-bottom-color: #e2ebf2;
}
html[data-admin-theme="ice"] .panel,
html[data-admin-theme="ice"] .stat-card {
  background: #fff;
  border-color: #d0dde8;
  box-shadow: 0 1px 3px rgba(40, 70, 100, .05);
}

html[data-admin-theme="ice"] .cal-today-banner {
  background: linear-gradient(120deg, #e3f0f8, #f0f6fa);
  border-color: #c5d8e6;
  color: var(--text);
}
html[data-admin-theme="ice"] .cal-marquee-card {
  background: #fff;
  border-color: #d0dde8;
  box-shadow: 0 1px 3px rgba(40, 70, 100, .05);
}
html[data-admin-theme="ice"] .cal-cell {
  background: #fff;
  border-color: #d0dde8;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(40, 70, 100, .04);
}
html[data-admin-theme="ice"] .cal-cell.empty {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
html[data-admin-theme="ice"] .cal-cell:not(.empty):hover {
  border-color: rgba(42, 143, 188, .55);
  background: #f5fafd;
}
html[data-admin-theme="ice"] .cal-cell.is-today {
  box-shadow: inset 0 0 0 2px #2a8fbc;
  background: #edf6fb;
}
html[data-admin-theme="ice"] .cal-cell.is-selected {
  background: rgba(42, 143, 188, .1);
  border-color: rgba(42, 143, 188, .45);
}
html[data-admin-theme="ice"] .cal-daynum { color: #3d5568; }
html[data-admin-theme="ice"] .cal-dots li {
  background: rgba(42, 143, 188, .12);
  color: #1a5f86;
}
html[data-admin-theme="ice"] .cal-dots li.st-done {
  background: rgba(43, 182, 115, .14);
  color: #1b7a4a;
}
html[data-admin-theme="ice"] .cal-dots li.st-cancelled {
  background: rgba(93, 115, 136, .12);
  color: #5d7388;
}
html[data-admin-theme="ice"] .cal-day-item {
  background: #fff;
  border-color: #d0dde8;
}
html[data-admin-theme="ice"] .cal-modal {
  background: rgba(50, 80, 110, .28);
}
html[data-admin-theme="ice"] .cal-modal-card {
  background: #fff;
  border-color: #d0dde8;
  color: var(--text);
}

/* 冰河：按钮 / 标签 / 进度条可读性 */
html[data-admin-theme="ice"] .btn,
html[data-admin-theme="ice"] .quick-links a {
  background: #2a8fbc;
  color: #fff;
  border: 1px solid #2a8fbc;
  font-weight: 600;
}
html[data-admin-theme="ice"] .btn:hover,
html[data-admin-theme="ice"] .quick-links a:hover {
  background: #227aa3;
  border-color: #227aa3;
}
html[data-admin-theme="ice"] .btn.ghost,
html[data-admin-theme="ice"] .quick-links a:nth-child(n+2) {
  background: #fff;
  color: #1a5f86;
  border: 1px solid #c5d8e6;
}
html[data-admin-theme="ice"] .btn.ghost:hover,
html[data-admin-theme="ice"] .quick-links a:nth-child(n+2):hover {
  background: #e8f1f8;
  border-color: #9ec4df;
  color: #154a66;
}
html[data-admin-theme="ice"] .btn.danger,
html[data-admin-theme="ice"] a.danger,
html[data-admin-theme="ice"] .link-btn.danger {
  color: #c94a4a;
  background: transparent;
  border-color: transparent;
}
/* 冰河：项目时间轴卡片 — 与浅色面板统一，避免近黑底突兀 */
html[data-admin-theme="ice"] .train-timeline {
  padding-top: 30px;
}
html[data-admin-theme="ice"] .station-dot {
  background: #fff;
  border-color: #9bb4c8;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9);
}
html[data-admin-theme="ice"] .station-rail {
  background: repeating-linear-gradient(90deg, #b7cddd 0 10px, transparent 10px 16px);
}
html[data-admin-theme="ice"] .station-card {
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fc 100%);
  border: 1px solid #c5d8e6;
  color: #1a3348;
  box-shadow: 0 2px 8px rgba(40, 70, 100, .07);
  min-height: 148px;
}
html[data-admin-theme="ice"] .station-index {
  color: #6a8499;
  font-weight: 600;
}
html[data-admin-theme="ice"] .station-card h3 {
  color: #163248;
  font-weight: 700;
}
html[data-admin-theme="ice"] .station-badge {
  background: #e2eef7;
  color: #3d5568;
  font-weight: 600;
  border: 1px solid #c5d8e6;
}
html[data-admin-theme="ice"] .station-remark {
  background: #eef5fa;
  color: #3d5568;
  border: 1px solid #d5e4ef;
}
html[data-admin-theme="ice"] .station-actions select {
  background: #fff;
  color: #243544;
  border-color: #c5d8e6;
}

html[data-admin-theme="ice"] .train-station.st-pending .station-dot {
  border-color: #9bb4c8;
  background: #fff;
}
html[data-admin-theme="ice"] .train-station.st-pending .station-card {
  background: linear-gradient(180deg, #fafcfe 0%, #f0f5f9 100%);
  border-color: #d0dde8;
  opacity: .92;
}

html[data-admin-theme="ice"] .train-station.st-following .station-dot {
  border-color: #d4a017;
  background: #f0c14a;
  box-shadow: 0 0 0 4px rgba(212, 160, 23, .22);
}
html[data-admin-theme="ice"] .train-station.st-following .station-card {
  background: linear-gradient(180deg, #fffdf6 0%, #fff6df 100%);
  border-color: rgba(212, 160, 23, .55);
  box-shadow: 0 3px 12px rgba(180, 130, 20, .12);
}
html[data-admin-theme="ice"] .train-station.st-following .station-badge {
  background: #fff0c2;
  color: #8a6a12;
  border-color: rgba(212, 160, 23, .35);
}

html[data-admin-theme="ice"] .train-station.st-implementing .station-dot {
  border-color: #2a8fbc;
  background: #3aa4d4;
  box-shadow: 0 0 0 4px rgba(42, 143, 188, .22);
}
html[data-admin-theme="ice"] .train-station.st-implementing .station-card {
  background: linear-gradient(180deg, #f5fbff 0%, #e3f2fb 100%);
  border-color: rgba(42, 143, 188, .5);
  box-shadow: 0 3px 12px rgba(42, 143, 188, .12);
}
html[data-admin-theme="ice"] .train-station.st-implementing .station-badge {
  background: #d4ecf8;
  color: #155a7a;
  border-color: rgba(42, 143, 188, .3);
}

html[data-admin-theme="ice"] .train-station.st-done .station-dot {
  border-color: #1b8f56;
  background: #2bb673;
  box-shadow: 0 0 0 4px rgba(43, 182, 115, .2);
}
html[data-admin-theme="ice"] .train-station.st-done .station-rail {
  background: linear-gradient(90deg, #2bb673, #5ed49a);
}
html[data-admin-theme="ice"] .train-station.st-done .station-card {
  background: linear-gradient(180deg, #f5fcf8 0%, #e6f7ee 100%);
  border-color: rgba(43, 182, 115, .45);
}
html[data-admin-theme="ice"] .train-station.st-done .station-badge {
  background: #d5f3e4;
  color: #1b7a4a;
  border-color: rgba(43, 182, 115, .3);
}

html[data-admin-theme="ice"] .progress-bar {
  background: #d5e4ef;
}
html[data-admin-theme="ice"] .progress-bar span {
  background: linear-gradient(90deg, #1f7aa8, #3aa4d4);
}
html[data-admin-theme="ice"] .pay-tag.pay-paid { background: rgba(43,182,115,.14); color: #1b7a4a; }
html[data-admin-theme="ice"] .pay-tag.pay-following { background: rgba(201,162,39,.16); color: #8a6a12; }
html[data-admin-theme="ice"] .pay-tag.pay-unpaid { background: rgba(201,74,74,.12); color: #c94a4a; }
html[data-admin-theme="ice"] select,
html[data-admin-theme="ice"] .filter-form select,
html[data-admin-theme="ice"] .form-grid select {
  background: #fff;
  color: #243544;
  border-color: #c5d8e6;
}
html[data-admin-theme="ice"] .filter-form .btn.ghost {
  background: #fff;
  color: #1a5f86;
}

/* 手机号一键拨打 */
.tel-link {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.tel-link:hover { text-decoration: underline; }
html[data-admin-theme="ice"] .tel-link { color: #1a5f86; }
