:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-strong: #f9fafb;
  --text: #111827;
  --muted: #667085;
  --quiet: #98a2b3;
  --line: #d9e0ea;
  --blue: #2563eb;
  --blue-soft: #eaf2ff;
  --green: #168a4a;
  --green-soft: #eaf8ef;
  --orange: #b95c00;
  --orange-soft: #fff3e4;
  --red: #b42318;
  --red-soft: #fff0ee;
  --ink: #0f172a;
  --shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
  --radius: 8px;
}

.session-editor-grid { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 10px; }
.session-editor-card { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-strong); }
.session-editor-head, .session-editor-actions { display: flex; align-items: center; gap: 6px; }
.session-editor-head { justify-content: space-between; }
.session-editor-actions .icon-mini { min-height: 28px; padding: 0 8px; }
.session-editor-actions .icon-mini:disabled { cursor: not-allowed; opacity: .35; }
.customer-service-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.session-editor-card > strong { font-size: 13px; }
.session-editor-card label { display: grid; gap: 5px; }
.session-editor-card label span { color: var(--muted); font-size: 11px; }
.session-editor-card input { width: 100%; min-width: 0; }
@media (max-width: 1100px) { .session-editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .session-editor-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .customer-service-editor { grid-template-columns: 1fr; }
  .customer-wechat-card { flex-direction: column; }
  .customer-copy-button { min-height: 44px; }
}

/* Clay 首页：依据本地「北京RPG Clay 产品设计稿.fig」 */
body[data-mode="public-display"] {
  --clay-cream: #fffaf0;
  --clay-surface: #fffdf7;
  --clay-ink: #141817;
  --clay-green: #153c3a;
  --clay-mint: #b9d9cc;
  --clay-peach: #e9a078;
  --clay-lavender: #b8a4e6;
  --clay-pink: #ee4f8a;
  --clay-ochre: #d8aa37;
  background: #e4e1da;
  color: var(--clay-ink);
}

body[data-mode="public-display"] .poster-shell {
  width: min(1420px, calc(100vw - 32px));
  margin: 20px auto;
  padding: 18px;
  border-radius: 30px;
  background: var(--clay-cream);
  box-shadow: 0 28px 70px rgba(20, 24, 23, .14);
}

body[data-mode="public-display"] .poster-hero {
  min-height: 112px;
  border: 0;
  border-radius: 22px;
  background: transparent;
}
body[data-mode="public-display"] .poster-hero::before,
body[data-mode="public-display"] .poster-hero::after { display: none; }
body[data-mode="public-display"] .hero-title h1 { color: var(--clay-ink); font-size: clamp(34px, 4vw, 56px); letter-spacing: -2px; }
body[data-mode="public-display"] .hero-title .eyebrow { color: #77736b; letter-spacing: 1.4px; }
body[data-mode="public-display"] .hero-mark { border: 0; border-radius: 18px; box-shadow: inset 0 -5px 0 rgba(0,0,0,.11); }
body[data-mode="public-display"] .hero-mark-left { background: var(--clay-ochre); color: #34270c; }
body[data-mode="public-display"] .hero-mark-right { background: var(--clay-green); color: #fff; }

body[data-mode="public-display"] .poster-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  border: 0;
  background: transparent;
}
body[data-mode="public-display"] .overview-cell {
  min-height: 84px;
  border: 0;
  border-radius: 18px;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.08);
}
body[data-mode="public-display"] .overview-overview { background: var(--clay-pink); color: #fff; }
body[data-mode="public-display"] .overview-open { background: var(--clay-mint); }
body[data-mode="public-display"] .overview-closed { background: var(--clay-peach); }
body[data-mode="public-display"] .overview-optimizing { background: var(--clay-lavender); }
body[data-mode="public-display"] .overview-pending { background: var(--clay-ochre); }
body[data-mode="public-display"] .overview-cell strong,
body[data-mode="public-display"] .overview-cell small { color: inherit; }

.home-workspace { display: grid; grid-template-columns: 230px minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
.home-filter-panel, .home-results, .home-insight { min-width: 0; }
.home-filter-panel, .home-insight {
  position: sticky;
  top: 14px;
  padding: 18px;
  border: 1px solid #e8e1d3;
  border-radius: 20px;
  background: var(--clay-surface);
  box-shadow: 0 12px 30px rgba(39,48,42,.07);
}
.home-panel-kicker { margin: 0 0 4px; color: #77736b; font-size: 11px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; }
.home-filter-panel h2, .home-insight h2, .home-results-head h2 { margin: 0; color: var(--clay-ink); font-size: 20px; }
.home-filter-panel .poster-toolbar { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.home-filter-panel .poster-toolbar label { display: grid; gap: 5px; color: #77736b; font-size: 11px; font-weight: 800; }
.home-filter-panel .poster-toolbar input,
.home-filter-panel .poster-toolbar select { width: 100%; min-height: 42px; border: 1px solid #e8e1d3; border-radius: 12px; background: #fff; color: var(--clay-ink); }
.home-filter-panel .search-box { grid-column: auto; }
.home-reset { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: center; gap: 7px; border-radius: 12px; }
.poster-link-button { display: flex; min-height: 42px; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: var(--clay-green); color: #fff; }

.home-results-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 4px 4px 12px; }
.home-results-head > strong { color: #77736b; font-size: 12px; }
.poster-grid { display: grid; gap: 12px; }
.area-board { overflow: hidden; border: 1px solid #e8e1d3; border-radius: 20px; background: var(--clay-surface); box-shadow: 0 12px 30px rgba(39,48,42,.07); }
.area-board-head { min-height: 52px; border: 0; background: transparent; color: var(--clay-ink); }
.area-board-head h2 { color: var(--clay-ink); font-size: 18px; }
.area-board-icon { color: var(--clay-green); }
.store-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding: 0 12px 12px; }
.store-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e8e1d3;
  border-radius: 16px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}
.store-card:hover, .store-card:focus { transform: translateY(-2px); border-color: #b9d9cc; box-shadow: 0 12px 24px rgba(21,60,58,.12); outline: none; }
.store-card-mark { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 15px; background: var(--clay-green); color: #fff; font-size: 16px; font-weight: 900; box-shadow: inset 0 -4px 0 rgba(0,0,0,.1); }
.store-card:nth-child(4n+2) .store-card-mark { background: #0b2947; }
.store-card:nth-child(4n+3) .store-card-mark { background: var(--clay-lavender); color: #21163c; }
.store-card:nth-child(4n+4) .store-card-mark { background: var(--clay-peach); color: #3c2116; }
.store-card-main { min-width: 0; }
.store-card-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.store-card-title h3 { margin: 0; font-size: 17px; }
.store-card-title .table-status { font-size: 10px; }
.store-card-title .table-status i { width: 7px; height: 7px; }
.store-card-main > p { display: flex; align-items: center; gap: 4px; overflow: hidden; margin: 5px 0 7px; color: #77736b; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.store-card-main > p svg { flex: 0 0 auto; width: 13px; height: 13px; }
.store-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.store-card-tags .type-badge { min-width: 0; min-height: 20px; padding: 0 6px; border-radius: 999px; font-size: 10px; }
.store-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; color: #77736b; font-size: 10px; }
.store-card-arrow { color: #9a958b; font-size: 26px; }
.store-card.is-closed { opacity: .65; background: #f3f0e9; }
.store-card.is-pending .store-card-mark { background: var(--clay-ochre); color: #34270c; }

.poster-pending { overflow: hidden; margin-top: 12px; border: 1px solid #e8e1d3; border-radius: 20px; background: var(--clay-surface); }
.pending-head { min-height: 52px; background: transparent; color: var(--clay-ink); }
.pending-head h2 { color: var(--clay-ink); font-size: 18px; }
.pending-icon { color: var(--clay-ochre); }
.pending-card-grid { padding-top: 0; }
.home-insight > p:not(.home-panel-kicker) { margin: 10px 0 18px; color: #77736b; font-size: 13px; line-height: 1.65; }
.home-insight .insight-note { display: grid; gap: 5px; padding: 14px; border-radius: 14px; background: var(--clay-mint); }
.home-insight .insight-note strong { font-size: 14px; }
.home-insight .insight-note span { color: #345a50; font-size: 11px; line-height: 1.45; }
.home-insight > a { display: block; margin-top: 16px; color: var(--clay-green); font-size: 13px; font-weight: 850; text-decoration: none; }
body[data-mode="public-display"] .poster-footer { color: #77736b; }

@media (max-width: 1100px) {
  .home-workspace { grid-template-columns: 220px minmax(0,1fr); }
  .home-insight { display: none; }
}

@media (max-width: 767px) {
  body[data-mode="public-display"] { background: var(--clay-cream); }
  body[data-mode="public-display"] .poster-shell { width: 100%; margin: 0; padding: 12px; border-radius: 0; box-shadow: none; }
  body[data-mode="public-display"] .poster-hero { grid-template-columns: 46px minmax(0,1fr) 46px; min-height: 84px; }
  body[data-mode="public-display"] .hero-title { padding: 10px 2px; }
  body[data-mode="public-display"] .hero-title h1 { font-size: 27px; line-height: 1.05; }
  body[data-mode="public-display"] .hero-title .eyebrow { font-size: 9px; }
  body[data-mode="public-display"] .hero-mark { width: 40px; height: 40px; margin: 0; border-radius: 13px; }
  body[data-mode="public-display"] .poster-overview { grid-template-columns: repeat(5, 72px); gap: 7px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
  body[data-mode="public-display"] .overview-cell { display: grid; grid-template-columns: 1fr; min-height: 67px; padding: 9px; border-radius: 14px; }
  body[data-mode="public-display"] .overview-cell .overview-dot { display: none; }
  body[data-mode="public-display"] .overview-cell strong { font-size: 16px; }
  body[data-mode="public-display"] .overview-cell small { font-size: 10px; }
  .home-workspace { display: flex; flex-direction: column; }
  .home-filter-panel { position: static; width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .home-filter-panel > .home-panel-kicker, .home-filter-panel > h2 { display: none; }
  .home-filter-panel .poster-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; padding: 0 0 10px; }
  .home-filter-panel .search-box { grid-column: 1 / -1; }
  .home-filter-panel .poster-toolbar label span { display: none; }
  .home-filter-panel .poster-toolbar input, .home-filter-panel .poster-toolbar select { min-height: 44px; }
  .home-reset, .poster-link-button { min-height: 44px; }
  .home-results { width: 100%; }
  .home-results-head { padding: 6px 2px 10px; }
  .home-results-head h2 { font-size: 19px; }
  .area-board, .poster-pending { border-radius: 18px; }
  .area-board-head, .pending-head { padding: 9px 12px; }
  .store-card-grid { grid-template-columns: 1fr; padding: 0 9px 9px; }
  .store-card { grid-template-columns: 56px minmax(0,1fr) auto; padding: 11px; }
  .store-card-mark { width: 56px; height: 56px; }
  .store-card-title h3 { font-size: 16px; }
  .store-card-arrow { font-size: 22px; }
  .home-insight { display: none; }
  body[data-mode="public-display"] .poster-footer { padding-bottom: 22px; }
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0) 280px),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.svg-sprite {
  display: none;
}

.site-watermark {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.watermark-mark {
  position: absolute;
  color: rgba(234, 88, 12, 0.018);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-22deg);
  transform-origin: center;
}

.app-shell {
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

h2 {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

h3 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.source-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
}

.icon-button:hover {
  color: var(--blue);
  border-color: #b8cdf7;
  background: var(--blue-soft);
}

.dashboard {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.project-rail {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.project-rail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.project-rail-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.project-chip {
  display: inline-flex;
  min-width: max-content;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.project-chip:hover,
.project-chip.is-selected {
  border-color: #9bbcf4;
  background: var(--blue-soft);
  color: var(--blue);
}

.project-chip-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
}

.project-chip-dot.status-open {
  background: var(--green);
}

.project-chip-dot.status-pending {
  background: var(--orange);
}

.project-chip-dot.status-closed {
  background: var(--red);
}

.query-panel,
.content-panel,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.query-panel,
.detail-panel {
  position: sticky;
  top: 16px;
}

.query-panel {
  padding: 14px;
}

.content-panel {
  min-height: calc(100vh - 126px);
  padding: 16px;
}

.detail-panel {
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.search-box {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--quiet);
}

.search-box:focus-within {
  color: var(--blue);
  border-color: #9bbcf4;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.control-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.control-grid label {
  display: grid;
  gap: 6px;
}

.control-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

select {
  width: 100%;
  min-height: 42px;
  padding: 0 36px 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  background: var(--panel);
  color: var(--text);
}

select:focus {
  border-color: #9bbcf4;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef2f7;
}

.segment {
  display: inline-flex;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.segment svg {
  width: 15px;
  height: 15px;
}

.segment.is-active {
  background: var(--panel);
  color: var(--blue);
  box-shadow: 0 1px 6px rgba(16, 24, 40, 0.12);
}

.stat-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.stat-tile {
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
}

.stat-tile strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.stat-tile span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tag-button:hover,
.tag-button.is-active {
  color: var(--blue);
  border-color: #b8cdf7;
  background: var(--blue-soft);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.summary-item {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
}

.summary-item strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.summary-item span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.area-visual {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.area-row {
  display: grid;
  grid-template-columns: minmax(86px, 150px) minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.area-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
}

.area-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
}

.content-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
}

.result-count {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.content-view {
  margin-top: 14px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.store-card,
.session-card,
.area-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.store-card {
  min-height: 222px;
  text-align: left;
}

.store-card:hover,
.store-card.is-selected {
  border-color: #9bbcf4;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
}

.store-card button {
  text-align: left;
}

.store-main-button {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.store-head,
.line-between {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.status-pill,
.meta-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  max-width: 100%;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.status-open {
  border-color: #b9e7c8;
  background: var(--green-soft);
  color: var(--green);
}

.status-pending {
  border-color: #ffd99d;
  background: var(--orange-soft);
  color: var(--orange);
}

.status-closed {
  border-color: #f6c0bd;
  background: var(--red-soft);
  color: var(--red);
}

.meta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.store-address {
  display: flex;
  gap: 8px;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.store-address svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--quiet);
}

.store-brief {
  min-height: 40px;
  padding: 10px;
  border-radius: 6px;
  background: #fbfcfe;
  color: #475467;
  font-size: 13px;
  line-height: 1.55;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-metric {
  padding: 9px;
  border-radius: 6px;
  background: #f6f8fb;
}

.mini-metric strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.mini-metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.ghost-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ghost-action:hover,
.ghost-action.is-on {
  border-color: #b8cdf7;
  background: var(--blue-soft);
  color: var(--blue);
}

.session-list,
.area-list {
  display: grid;
  gap: 10px;
}

.session-card {
  grid-template-columns: minmax(0, 1.2fr) minmax(120px, 0.5fr) minmax(100px, 0.45fr);
  align-items: center;
}

.session-time {
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.empty-state,
.error-state {
  padding: 46px 20px;
  border: 1px dashed #c9d3df;
  border-radius: var(--radius);
  background: var(--panel-strong);
  color: var(--muted);
  text-align: center;
}

.detail-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.detail-cover {
  min-height: 120px;
  padding: 16px;
  background:
    radial-gradient(circle at 18% 28%, rgba(37, 99, 235, 0.22), transparent 32%),
    linear-gradient(135deg, #101828, #1d2939);
  color: #ffffff;
}

.detail-cover .status-pill {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.detail-body {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.detail-section {
  display: grid;
  gap: 10px;
}

.detail-section h3 {
  font-size: 15px;
}

.info-line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.info-line strong {
  color: var(--text);
}

.cast-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cast-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #f2f4f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.actor-chip {
  background: var(--blue-soft);
  color: var(--blue);
}

.story-block {
  padding: 12px;
  border: 1px solid #edf1f6;
  border-radius: 6px;
  background: #fbfcfe;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-line;
}

.detail-list {
  display: grid;
  gap: 8px;
}

.detail-list-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid #edf1f6;
  border-radius: 6px;
  background: #fbfcfe;
}

.detail-list-item span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.detail-list-item p {
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.primary-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #101828;
  color: #ffffff;
  font-size: 13px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-login {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 31, 30, 0.64);
  backdrop-filter: blur(8px);
}

.admin-login[hidden] { display: none; }

.admin-login-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid #d8d3c8;
  border-radius: 24px;
  background: #fffaf1;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.admin-login-card h2 { margin: 6px 0 8px; }
.admin-login-card p { color: #66706d; line-height: 1.6; }
.admin-login-card label { display: grid; gap: 8px; margin: 20px 0 14px; }
.admin-login-card input { min-height: 46px; padding: 0 14px; border: 1px solid #cfc9bd; border-radius: 12px; font: inherit; }
.admin-login-card button { width: 100%; justify-content: center; }
.admin-login-card small { display: block; min-height: 20px; margin-top: 10px; color: #b54835; }

.poster-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 16px 0 28px;
}

.poster-hero {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 150px;
  align-items: end;
  min-height: 144px;
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.96)),
    linear-gradient(115deg, rgba(0, 104, 55, 0.2), rgba(10, 84, 162, 0.14) 56%, rgba(255, 107, 0, 0.12));
}

.poster-hero::before,
.poster-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 36%;
  height: 72px;
  opacity: 0.72;
  background:
    linear-gradient(180deg, transparent 0 30%, #dff1ea 31% 100%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(13, 91, 148, 0.28) 19px 22px, transparent 23px 42px);
}

.poster-hero::before {
  left: 0;
  clip-path: polygon(0 40%, 8% 22%, 16% 44%, 25% 18%, 34% 48%, 48% 28%, 64% 54%, 100% 35%, 100% 100%, 0 100%);
}

.poster-hero::after {
  right: 0;
  clip-path: polygon(0 48%, 14% 36%, 22% 56%, 32% 20%, 42% 48%, 55% 28%, 66% 52%, 78% 16%, 100% 42%, 100% 100%, 0 100%);
}

.hero-title {
  position: relative;
  z-index: 1;
  padding: 28px 12px 24px;
  text-align: center;
}

.hero-title h1 {
  color: #070a24;
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 950;
  line-height: 0.98;
}

.hero-mark {
  position: relative;
  z-index: 1;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  margin: 0 auto 16px;
  border: 5px solid #ffffff;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 950;
  box-shadow: 0 16px 28px rgba(16, 24, 40, 0.16);
}

.hero-mark-left {
  background: linear-gradient(180deg, #0b4aa2, #061a4f 52%, #df5a1f);
  font-size: 54px;
}

.hero-mark-right {
  background: linear-gradient(180deg, #0b72c9, #0f9a75);
  font-size: 24px;
}

.poster-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(112px, 0.7fr)) 42px minmax(92px, 0.42fr);
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-right: 1px solid #dbe4f0;
  border-left: 1px solid #dbe4f0;
  background: #ffffff;
}

.poster-link-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101828;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.poster-link-button:hover {
  background: #1d2939;
}

.poster-search {
  min-height: 42px;
}

.poster-overview {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
}

.overview-cell {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  min-height: 82px;
  padding: 14px 18px;
  border-right: 1px solid #e4eaf2;
}

.overview-cell:last-child {
  border-right: 0;
}

.overview-cell strong {
  color: #071025;
  font-size: 26px;
  line-height: 1.1;
}

.overview-cell small {
  grid-column: 2;
  color: #475467;
  font-size: 14px;
  font-weight: 800;
}

.overview-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #155eef;
}

.overview-overview {
  grid-template-columns: 52px 1fr;
  background: #006b35;
  color: #ffffff;
}

.overview-overview .overview-dot {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, #ffffff 0 22%, transparent 23% 34%, #ffffff 35% 57%, transparent 58% 68%, #ffffff 69% 100%);
}

.overview-overview strong,
.overview-overview small {
  color: #ffffff;
}

.overview-open .overview-dot {
  background: var(--green);
}

.overview-relocating .overview-dot {
  background: #ff5a00;
}

.overview-closed .overview-dot {
  background: #050719;
}

.overview-optimizing .overview-dot {
  background: #155eef;
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.16);
}

.overview-pending .overview-dot {
  background: #155eef;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.area-board,
.poster-pending {
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.area-board-head,
.pending-head {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  color: #ffffff;
}

.area-board-head h2,
.pending-head h2 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 950;
}

.area-board-icon,
.pending-icon {
  display: inline-flex;
  min-width: 34px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 26px;
  font-weight: 950;
}

.area-board-icon svg,
.pending-icon svg {
  width: 26px;
  height: 26px;
}

.area-board-green .area-board-head {
  background: linear-gradient(90deg, #006b35, #008143);
}

.area-board-blue .area-board-head,
.area-board-cyan .area-board-head {
  background: linear-gradient(90deg, #0756a5, #03417f);
}

.area-board-purple .area-board-head {
  background: linear-gradient(90deg, #5f1c93, #2e4aa8);
}

.poster-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #ffffff;
}

.poster-table th,
.poster-table td {
  padding: 10px 12px;
  border-right: 1px solid #edf1f6;
  border-bottom: 1px solid #edf1f6;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.35;
  vertical-align: middle;
}

.poster-table th:last-child,
.poster-table td:last-child {
  border-right: 0;
}

.poster-table th {
  background: #f4faf7;
  color: #064c2d;
  font-weight: 950;
}

.area-board-blue .poster-table th,
.area-board-cyan .poster-table th {
  background: #f4f8ff;
  color: #0b3d77;
}

.area-board-purple .poster-table th {
  background: #faf5ff;
  color: #4c1d95;
}

.poster-table td:first-child {
  font-weight: 850;
}

.poster-table tr {
  cursor: pointer;
}

.poster-table tbody tr:hover,
.poster-table tbody tr.is-selected {
  background: #eff6ff;
}

.poster-table tbody tr.is-closed {
  background: #f4f6f8;
}

.poster-table tbody tr.is-closed:hover,
.poster-table tbody tr.is-closed.is-selected {
  background: #e8edf3;
}

.poster-table tbody tr.is-closed td {
  color: #7a8493;
}

.poster-table tbody tr.is-closed .type-badge {
  background: #9aa3af;
  color: #ffffff;
}

.poster-table tbody tr.is-closed .table-status {
  color: #6b7280;
}

.poster-table tbody tr:focus {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: -3px;
}

.poster-table th:nth-child(1),
.poster-table td:nth-child(1) {
  width: 26%;
}

.poster-table th:nth-child(2),
.poster-table td:nth-child(2) {
  width: 16%;
  text-align: center;
}

.poster-table th:nth-child(4),
.poster-table td:nth-child(4) {
  width: 22%;
}

.type-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 0 7px;
  border-radius: 4px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
}

.type-modern {
  background: #155eef;
}

.type-republic {
  background: #9a4917;
}

.type-euro {
  background: #087443;
}

.type-ancient {
  background: #f6c800;
  color: #111827;
}

.type-apocalypse,
.type-horror {
  background: #111827;
}

.type-tomb {
  background: #006b35;
}

.type-school,
.type-hk,
.type-other {
  background: #5b21b6;
}

.table-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.table-status i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: currentColor;
}

.table-status.status-open {
  color: #087443;
}

.table-status.status-pending {
  color: #155eef;
}

.table-status.status-relocating {
  color: #ff5a00;
}

.table-status.status-optimizing {
  color: #155eef;
}

.table-status.status-closed {
  color: #050719;
}

.poster-pending {
  margin-top: 16px;
}

.pending-head {
  background: linear-gradient(90deg, #f97316, #ea580c);
}

.pending-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pending-table:first-child {
  border-right: 1px solid #f1d8c5;
}

.pending-table th {
  background: #fff7ed;
  color: #c2410c;
}

.poster-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 14px 8px 0;
  color: #667085;
  font-size: 14px;
  text-align: center;
}

.filing-line {
  display: flex;
  flex: 0 0 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  line-height: 1.6;
}

.filing-line a {
  color: inherit;
  text-decoration: none;
}

.filing-line a:hover,
.filing-line a:focus-visible {
  color: #344054;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.has-modal {
  overflow: hidden;
}

.store-detail-modal[hidden] {
  display: none;
}

.store-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: end;
}

.store-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
}

.store-detail-sheet {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 24px));
  max-height: min(82vh, 820px);
  margin: 0 auto 18px;
  overflow: auto;
  border: 1px solid rgba(219, 228, 240, 0.9);
  border-radius: 28px;
  background: #fffaf0;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.34);
}

.store-detail-close {
  position: sticky;
  top: 12px;
  left: calc(100% - 56px);
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin: 12px 12px -48px auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.96);
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.detail-store-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 30px 72px 22px 28px;
}

.detail-store-mark {
  display: grid;
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 22px;
  background: #153c3a;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12);
  color: #fffaf0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
}

.detail-store-identity { min-width: 0; }
.detail-store-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.detail-store-title h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -1.5px; }
.detail-store-identity p { display: flex; align-items: center; gap: 6px; margin: 7px 0 4px; color: #55564f; font-size: 14px; }
.detail-store-identity p svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.detail-store-identity small { color: #77736b; font-size: 12px; }

.detail-summary-card {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0 26px 14px;
  border: 1px solid #e8e1d3;
  border-radius: 20px;
  background: #e8e1d3;
  box-shadow: 0 12px 30px rgba(39, 48, 42, 0.08);
}
.detail-summary-card div { min-width: 0; padding: 16px; background: #fffdf7; }
.detail-summary-card span, .detail-summary-card strong { display: block; }
.detail-summary-card span { color: #77736b; font-size: 11px; font-weight: 750; }
.detail-summary-card strong { margin-top: 6px; color: #141817; font-size: 15px; overflow-wrap: anywhere; }
.detail-kicker { margin: 0 0 4px; color: #77736b; font-size: 11px; font-weight: 800; letter-spacing: .8px; }
.detail-section-title h3 { margin: 0; font-size: 20px; letter-spacing: -.4px; }
.detail-data-note { padding: 4px 26px 24px; color: #77736b; font-size: 11px; line-height: 1.6; }

.store-detail-sheet .detail-modal-section { margin: 0 26px 14px; padding: 18px; border: 1px solid #e8e1d3; border-radius: 20px; background: #fffdf7; }
.store-detail-sheet .store-line-card { border-color: #e8e1d3; border-radius: 15px; background: #ffffff; }
.store-detail-sheet .public-cast-card { border-color: #e8e1d3; border-radius: 15px; background: #ffffff; }
.customer-qr-card { display: grid; justify-items: center; gap: 10px; padding: 16px; border-radius: 15px; background: #f3f8f2; }
.customer-qr-card img { display: block; width: min(260px, 72vw); aspect-ratio: 1; object-fit: contain; border: 10px solid #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(24,61,54,.12); }
.customer-qr-card p { margin: 0; color: #66706d; font-size: 12px; text-align: center; }
.customer-wechat-card { display: flex; align-items: stretch; gap: 10px; }
.customer-wechat-id { display: grid; flex: 1; gap: 4px; min-width: 0; padding: 13px 15px; border: 1px solid #dfe9df; border-radius: 12px; background: #f3f8f2; color: #183d36; text-align: left; }
.customer-wechat-id span { color: #66706d; font-size: 11px; font-weight: 750; }
.customer-wechat-id strong { overflow-wrap: anywhere; font-size: 17px; }
.customer-copy-button { min-width: 112px; padding: 0 16px; border: 0; border-radius: 12px; background: #183d36; color: #fff; font-weight: 800; }

.detail-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 26px 16px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent),
    #ffffff;
}

.detail-modal-head h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.detail-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 26px 18px;
}

.detail-modal-meta > span:not(.type-badge) {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-modal-section {
  display: grid;
  gap: 12px;
  padding: 18px 26px 24px;
  border-top: 1px solid #edf1f6;
}

.detail-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.detail-section-title small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.detail-info-grid div {
  display: grid;
  gap: 7px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #fbfcfe;
}

.detail-info-grid strong {
  color: var(--quiet);
  font-size: 12px;
}

.store-line-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.store-line-card {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #fbfcfe;
}

.store-line-card strong,
.store-line-card p,
.store-line-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.store-line-card strong {
  color: var(--text);
  font-size: 14px;
}

.store-line-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.store-line-card small {
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.45;
}

.line-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.line-tag-row span {
  min-width: 0;
  padding: 3px 7px;
  border: 1px solid #d8e0ed;
  border-radius: 999px;
  background: #ffffff;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.detail-info-grid span {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.public-cast-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 172px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: thin;
}

.public-cast-card {
  overflow: hidden;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  background: #ffffff;
}

.public-cast-card.is-off {
  opacity: 0.58;
  filter: grayscale(0.65);
}

.public-cast-photo {
  display: grid;
  aspect-ratio: 3 / 4;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(22, 138, 74, 0.08)),
    #eef2f7;
}

.public-cast-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-cast-photo span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: #1d2939;
  font-size: 28px;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.public-cast-body {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.public-cast-body strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.public-cast-body p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.public-role-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.public-role-row span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.cast-page-shell {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.cast-page-hero {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(22, 138, 74, 0.12));
}

.cast-page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.cast-page-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.back-link {
  justify-self: start;
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.cast-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(140px, 0.45fr));
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
}

.cast-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.cast-stats div {
  min-height: 84px;
  padding: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #ffffff;
}

.cast-stats strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.cast-stats span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cast-atlas {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.cast-line {
  position: relative;
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

.cast-line::before {
  content: "";
  position: absolute;
  top: 74px;
  right: 18px;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.28), transparent);
}

.cast-line-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.1), rgba(22, 138, 74, 0.07)),
    #ffffff;
}

.cast-line-head h2 {
  font-size: 24px;
}

.cast-line-head p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cast-line-head span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #101828;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.cast-node-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  padding: 16px 18px 18px;
}

.cast-node {
  overflow: hidden;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.cast-node:hover,
.cast-node:focus {
  border-color: #9bbcf4;
  outline: 0;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12);
}

.cast-node.is-off {
  opacity: 0.58;
  filter: grayscale(0.65);
}

.cast-node-body {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.cast-node-body strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.cast-node-body p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cast-profile-modal[hidden] {
  display: none;
}

.cast-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  align-items: center;
  padding: 18px;
}

.cast-profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
}

.cast-profile-sheet {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 860px);
  margin: 0 auto;
  overflow: auto;
  border: 1px solid rgba(219, 228, 240, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.34);
}

.cast-profile-head {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 26px;
  background:
    linear-gradient(110deg, rgba(37, 99, 235, 0.1), rgba(22, 138, 74, 0.08)),
    #ffffff;
}

.cast-profile-photo {
  display: grid;
  aspect-ratio: 3 / 4;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #eef2f7;
}

.cast-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cast-profile-photo span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 34px;
  font-weight: 950;
}

.cast-profile-title {
  display: grid;
  align-content: center;
  gap: 12px;
}

.cast-profile-title h2 {
  font-size: clamp(34px, 5vw, 54px);
}

.cast-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cast-profile-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #101828;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.cast-profile-section {
  display: grid;
  gap: 12px;
  padding: 20px 26px 24px;
  border-top: 1px solid #edf1f6;
}

.career-timeline {
  display: grid;
  gap: 10px;
}

.career-item {
  position: relative;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #fbfcfe;
}

.career-item::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 136px;
  width: 9px;
  height: 9px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.career-item time {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.career-item strong {
  color: var(--ink);
  font-size: 15px;
}

.career-item p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.review-form {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fbfcfe;
}

.review-form label {
  display: grid;
  gap: 6px;
}

.review-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.review-form input,
.review-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  outline: 0;
}

.review-form textarea {
  min-height: 72px;
  resize: vertical;
}

.review-form button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 950;
}

.review-list {
  display: grid;
  gap: 10px;
}

.review-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 96px;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  background: #ffffff;
}

.review-item strong {
  color: #b45309;
  font-size: 18px;
}

.review-item p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.review-item time {
  color: var(--quiet);
  font-size: 12px;
  text-align: right;
}

.credit-line {
  flex-basis: 100%;
  color: rgba(102, 112, 133, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.legacy-hidden,
.is-hidden {
  display: none !important;
}

.admin-shell {
  width: min(1560px, calc(100vw - 32px));
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.admin-actions a {
  text-decoration: none;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.admin-table-panel,
.admin-editor {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.admin-table-panel {
  min-height: calc(100vh - 126px);
  padding: 14px;
}

.admin-editor {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 16px;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px auto;
  gap: 10px;
  align-items: center;
}

.admin-status-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 2px;
  color: var(--muted);
  font-size: 13px;
}

.is-dirty {
  color: var(--orange);
  font-weight: 800;
}

.admin-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: var(--panel);
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid #edf1f6;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-table tbody tr {
  cursor: pointer;
}

.admin-table tbody tr:hover,
.admin-table tbody tr.is-selected {
  background: var(--blue-soft);
}

.editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.editor-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.editor-form label {
  display: grid;
  gap: 6px;
}

.editor-form label.is-wide {
  grid-column: 1 / -1;
}

.editor-group {
  display: grid;
  gap: 8px;
}

.editor-group.is-wide {
  grid-column: 1 / -1;
}

.editor-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.editor-form span,
.editor-group-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.editor-group-head small {
  color: var(--quiet);
  font-size: 12px;
}

.tag-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-choice {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tag-choice:hover,
.tag-choice.is-selected {
  border-color: #9bbcf4;
  background: var(--blue-soft);
  color: var(--blue);
}

.mini-add {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #b8cdf7;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.list-editor {
  display: grid;
  gap: 8px;
}

.cast-editor-list {
  display: grid;
  gap: 10px;
}

.cast-editor-card,
.line-editor-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.cast-editor-head {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cast-editor-head strong {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
}

.cast-editor-card label,
.line-editor-card label {
  display: grid;
  gap: 6px;
}

.line-editor-list {
  display: grid;
  gap: 10px;
}

.list-item-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.list-item-index {
  display: inline-grid;
  width: 28px;
  min-height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.icon-mini {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.icon-mini.danger:hover {
  border-color: #f6c0bd;
  background: var(--red-soft);
  color: var(--red);
}

.editor-form input,
.editor-form textarea,
.editor-form select {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: var(--panel);
  color: var(--text);
}

.editor-form input:focus,
.editor-form textarea:focus,
.editor-form select:focus {
  border-color: #9bbcf4;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.editor-form textarea {
  min-height: 88px;
  resize: vertical;
}

@media (max-width: 1180px) {
  .poster-toolbar {
    grid-template-columns: minmax(260px, 1fr) repeat(4, minmax(108px, 0.55fr)) 42px minmax(92px, 0.42fr);
  }

  .poster-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overview-cell:nth-child(3n) {
    border-right: 0;
  }

  .poster-grid {
    gap: 12px;
  }

  .area-board-head h2,
  .pending-head h2 {
    font-size: 24px;
  }

  .poster-table th,
  .poster-table td {
    padding: 9px 10px;
    font-size: 14px;
  }

  .dashboard {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .detail-panel {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-editor {
    position: static;
    max-height: none;
  }

  .detail-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .poster-shell {
    width: min(100% - 20px, 680px);
    padding-top: 10px;
  }

  .poster-hero {
    grid-template-columns: 88px minmax(0, 1fr) 88px;
    min-height: 118px;
  }

  .hero-title {
    padding: 22px 4px 20px;
  }

  .hero-title h1 {
    font-size: clamp(30px, 9vw, 48px);
  }

  .hero-mark {
    width: 68px;
    height: 68px;
    margin-bottom: 14px;
    border-width: 4px;
  }

  .hero-mark-left {
    font-size: 34px;
  }

  .hero-mark-right {
    font-size: 18px;
  }

  .poster-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poster-search {
    grid-column: 1 / -1;
  }

  .poster-link-button {
    grid-column: 1 / -1;
  }

  .poster-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-cell,
  .overview-cell:nth-child(3n) {
    min-height: 72px;
    padding: 12px 14px;
    border-right: 1px solid #e4eaf2;
  }

  .overview-cell:nth-child(2n) {
    border-right: 0;
  }

  .overview-cell strong {
    font-size: 22px;
  }

  .overview-overview {
    grid-column: 1 / -1;
  }

  .poster-grid,
  .pending-columns {
    grid-template-columns: 1fr;
  }

  .pending-table:first-child {
    border-right: 0;
  }

  .app-shell {
    width: min(100% - 20px, 680px);
    padding-top: 12px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .source-meta {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .project-rail {
    margin-bottom: 12px;
  }

  .query-panel {
    position: static;
  }

  .content-panel {
    min-height: auto;
  }

  .summary-strip,
  .store-grid {
    grid-template-columns: 1fr;
  }

  .session-card {
    grid-template-columns: 1fr;
  }

  .area-row {
    grid-template-columns: 96px minmax(0, 1fr) 34px;
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    justify-content: flex-start;
  }

  .store-detail-sheet {
    width: calc(100vw - 16px);
    max-height: 88vh;
    margin-bottom: 8px;
  }

  .detail-modal-head,
  .detail-modal-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .detail-modal-meta {
    padding-right: 18px;
    padding-left: 18px;
  }

  .cast-toolbar,
  .cast-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cast-toolbar .search-box {
    grid-column: 1 / -1;
  }

  .cast-profile-head {
    grid-template-columns: 150px minmax(0, 1fr);
    padding: 20px;
  }

  .review-form {
    grid-template-columns: 1fr;
  }

  .review-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .review-item time {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .poster-shell {
    width: 100%;
    padding-top: 0;
  }

  .poster-hero,
  .poster-overview,
  .area-board,
  .poster-pending {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .poster-hero {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    min-height: 96px;
  }

  .poster-hero::before,
  .poster-hero::after {
    width: 46%;
    height: 52px;
  }

  .hero-title h1 {
    font-size: clamp(24px, 8.2vw, 32px);
    white-space: nowrap;
  }

  .hero-title .eyebrow {
    font-size: 11px;
  }

  .hero-mark {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-width: 3px;
  }

  .hero-mark-left {
    font-size: 23px;
  }

  .hero-mark-right {
    font-size: 12px;
  }

  .poster-toolbar {
    grid-template-columns: 1fr;
    border-right: 0;
    border-left: 0;
  }

  .poster-toolbar .ghost-action,
  .poster-toolbar .icon-button,
  .poster-link-button {
    width: 100%;
    justify-content: center;
  }

  .poster-overview {
    grid-template-columns: 1fr 1fr;
  }

  .overview-cell {
    grid-template-columns: 13px minmax(0, 1fr);
    min-height: 64px;
    padding: 10px 12px;
  }

  .overview-overview {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .overview-overview .overview-dot {
    width: 32px;
    height: 32px;
  }

  .detail-info-grid,
  .cast-toolbar,
  .cast-stats {
    grid-template-columns: 1fr;
  }

  .public-cast-strip {
    grid-auto-columns: minmax(132px, 150px);
  }

  .cast-page-shell {
    width: 100%;
    padding-top: 0;
  }

  .cast-page-hero,
  .cast-toolbar,
  .cast-line {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .cast-page-hero {
    padding: 18px 14px;
  }

  .cast-node-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }

  .cast-profile-modal {
    align-items: end;
    padding: 0;
  }

  .cast-profile-sheet {
    width: 100%;
    max-height: 92vh;
    border-radius: 8px 8px 0 0;
  }

  .cast-profile-head {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 14px;
  }

  .cast-profile-title h2 {
    font-size: 30px;
  }

  .cast-profile-section {
    padding: 16px 14px;
  }

  .career-item {
    grid-template-columns: 1fr;
  }

  .career-item::before {
    display: none;
  }

  .overview-cell strong {
    font-size: 19px;
  }

  .overview-cell small {
    font-size: 12px;
  }

  .poster-grid,
  .poster-pending {
    margin-top: 12px;
  }

  .area-board-head,
  .pending-head {
    min-height: 50px;
    padding: 9px 12px;
  }

  .area-board-head h2,
  .pending-head h2 {
    font-size: 20px;
  }

  .area-board-icon,
  .pending-icon {
    min-width: 28px;
    font-size: 22px;
  }

  .poster-table th,
  .poster-table td {
    padding: 8px 7px;
    font-size: 12px;
    word-break: break-word;
  }

  .poster-table th:nth-child(2),
  .poster-table td:nth-child(2) {
    width: 18%;
  }

  .poster-table th:nth-child(3),
  .poster-table td:nth-child(3) {
    width: 28%;
  }

  .poster-table th:nth-child(4),
  .poster-table td:nth-child(4) {
    width: 24%;
  }

  .type-badge {
    min-width: 34px;
    min-height: 23px;
    padding: 0 5px;
    font-size: 12px;
  }

  .table-status {
    gap: 5px;
    font-size: 12px;
  }

  .table-status i {
    width: 9px;
    height: 9px;
  }

  .poster-footer {
    flex-direction: column;
    gap: 4px;
    padding: 12px 10px 16px;
  }

  .control-grid {
    grid-template-columns: 1fr;
  }

  .summary-item {
    min-height: 74px;
  }

  .content-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-row,
  .detail-actions {
    grid-template-columns: 1fr;
  }

  .editor-form {
    grid-template-columns: 1fr;
  }

  .cast-editor-card {
    grid-template-columns: 1fr;
  }

  .admin-table {
    min-width: 100%;
    table-layout: fixed;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 8px;
    word-break: break-word;
  }

  .admin-table th:nth-child(1),
  .admin-table td:nth-child(1) {
    width: 36%;
  }

  .admin-table th:nth-child(2),
  .admin-table td:nth-child(2) {
    width: 34%;
  }

  .admin-table th:nth-child(4),
  .admin-table td:nth-child(4) {
    width: 30%;
  }

  .admin-table th:nth-child(3),
  .admin-table td:nth-child(3),
  .admin-table th:nth-child(5),
  .admin-table td:nth-child(5),
  .admin-table th:nth-child(6),
  .admin-table td:nth-child(6) {
    display: none;
  }
}


@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
  }

  .watermark-mark {
    color: rgba(234, 88, 12, 0.01);
    font-size: 18px;
  }

  .poster-shell {
    background: #f6f8fb;
  }

  .poster-hero {
    min-height: 112px;
  }

  .hero-title {
    padding: 18px 2px 16px;
  }

  .hero-title h1 {
    white-space: normal;
    line-height: 1.04;
  }

  .poster-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 8px;
    padding: 10px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  }

  .poster-toolbar select,
  .poster-toolbar input,
  .poster-link-button,
  .poster-toolbar .icon-button {
    min-height: 44px;
    font-size: 14px;
  }

  .poster-overview {
    margin-top: 0;
    border-top: 0;
  }

  .overview-cell {
    min-width: 0;
  }

  .overview-cell strong,
  .overview-cell small {
    overflow-wrap: anywhere;
  }

  .area-board,
  .poster-pending {
    background: transparent;
    box-shadow: none;
  }

  .poster-table {
    border-collapse: separate;
    border-spacing: 0 8px;
    padding: 0 10px 10px;
    background: transparent;
  }

  .poster-table thead {
    display: none;
  }

  .poster-table tbody,
  .poster-table tr,
  .poster-table td {
    display: block;
    width: auto;
  }

  .poster-table tr {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  }

  .poster-table tbody tr.is-closed {
    background: #f1f3f6;
  }

  .poster-table td {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 4px 0;
    border: 0;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .poster-table td::before {
    color: #667085;
    font-size: 12px;
    font-weight: 850;
  }

  .poster-table td:nth-child(1)::before {
    content: "店名";
  }

  .poster-table td:nth-child(2)::before {
    content: "类型";
  }

  .poster-table td:nth-child(3)::before {
    content: "导航";
  }

  .poster-table td:nth-child(4)::before {
    content: "状态";
  }

  .poster-table th:nth-child(1),
  .poster-table td:nth-child(1),
  .poster-table th:nth-child(2),
  .poster-table td:nth-child(2),
  .poster-table th:nth-child(3),
  .poster-table td:nth-child(3),
  .poster-table th:nth-child(4),
  .poster-table td:nth-child(4) {
    width: auto;
    text-align: left;
  }

  .poster-table td:first-child {
    font-size: 16px;
  }

  .type-badge {
    justify-self: start;
  }

  .table-status {
    justify-content: flex-start;
  }

  .pending-columns {
    gap: 0;
  }

  .pending-table:first-child {
    border-right: 0;
  }

  .poster-footer {
    background: #ffffff;
  }

  .store-detail-sheet {
    width: 100%;
    max-height: 92vh;
    margin-bottom: 0;
    max-height: 94vh;
    border-radius: 26px 26px 0 0;
  }

  .detail-store-hero { gap: 13px; padding: 22px 56px 18px 14px; }
  .detail-store-mark { flex-basis: 64px; width: 64px; height: 64px; border-radius: 18px; font-size: 18px; }
  .detail-store-title h2 { font-size: 27px; }
  .detail-store-identity p { font-size: 12px; }
  .detail-summary-card { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 12px 12px; }
  .detail-summary-card div { padding: 13px; }
  .store-detail-sheet .detail-modal-section { margin: 0 12px 12px; padding: 15px; }
  .detail-section-title { align-items: flex-start; }
  .detail-section-title h3 { font-size: 18px; }
  .detail-data-note { padding: 2px 14px 24px; }

  .detail-modal-head {
    padding-top: 18px;
  }

  .detail-modal-head h2 {
    font-size: 28px;
  }

  .cast-page-shell {
    background: #f6f8fb;
  }

  .cast-page-hero {
    padding: 16px 14px;
  }

  .cast-page-hero h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .cast-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 8px;
    padding: 10px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  }

  .cast-toolbar select,
  .cast-toolbar input {
    min-height: 44px;
    font-size: 14px;
  }

  .cast-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 10px;
  }

  .cast-stats div {
    min-height: 68px;
    padding: 12px;
  }

  .cast-stats strong {
    font-size: 24px;
  }

  .cast-line {
    margin-top: 10px;
    background: #ffffff;
    box-shadow: none;
  }

  .cast-line-head {
    gap: 10px;
    padding: 13px 12px;
  }

  .cast-line-head h2 {
    font-size: 20px;
  }

  .cast-line-head p {
    display: none;
  }

  .cast-node-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
  }

  .public-cast-photo {
    aspect-ratio: 4 / 5;
  }

  .cast-node-body strong,
  .public-cast-body strong {
    font-size: 15px;
  }

  .public-role-row span {
    min-height: 20px;
    font-size: 10px;
  }

  .store-line-grid {
    grid-template-columns: 1fr;
  }

  .store-line-card {
    padding: 12px;
  }

  .line-editor-card {
    grid-template-columns: 1fr;
  }
}

/* 首页最终层叠修正（保持在文件末尾） */
body[data-mode="public-display"] .home-results .poster-grid {
  grid-template-columns: 1fr;
}

.admin-section-tabs { display:flex; gap:8px; padding:10px 18px; border-bottom:1px solid #dfe4ec; background:#fff; }
.admin-section-tabs button { display:inline-flex; min-height:36px; align-items:center; gap:7px; padding:0 13px; border:1px solid #d9e0e9; border-radius:10px; background:#f7f9fb; color:#344054; font-size:12px; font-weight:800; cursor:pointer; }
.admin-section-tabs button span { display:grid; min-width:20px; height:20px; place-items:center; border-radius:999px; background:#e7edf4; font-size:9px; }
.admin-section-tabs button.is-active { border-color:#172b4d; background:#172b4d; color:#fff; }
.admin-section-tabs button.is-active span { background:rgba(255,255,255,.18); }
.moderation-layout { max-width:1180px; margin:0 auto; padding:24px; }
.moderation-layout[hidden] { display:none; }
.moderation-layout > header { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.moderation-layout h2 { margin:0; font-size:25px; }
.moderation-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.moderation-card { padding:18px; border:1px solid #dfe4ec; border-radius:16px; background:#fff; box-shadow:0 8px 22px rgba(15,23,42,.05); }
.moderation-card > header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.moderation-card h3 { margin:2px 0 0; font-size:19px; }
.moderation-card > header > strong { color:#e86f33; font-size:22px; }
.moderation-card dl { display:grid; gap:10px; margin:16px 0; }
.moderation-card dl div { padding:10px; border-radius:9px; background:#f6f8fa; }
.moderation-card dt, .moderation-diff span { color:#667085; font-size:9px; font-weight:800; }
.moderation-card dd { margin:5px 0 0; font-size:12px; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.moderation-card > footer { display:flex; justify-content:flex-end; gap:8px; margin-top:16px; }
.moderation-card > footer button { min-height:36px; padding:0 13px; border-radius:9px; font-size:11px; font-weight:800; cursor:pointer; }
.moderation-reject { border:1px solid #e8bbb5; background:#fff3f1; color:#973b30; }
.moderation-approve { border:0; background:#1f715f; color:#fff; }
.moderation-reason { margin:14px 0; padding:11px; border-radius:9px; background:#fff6e8; }
.moderation-reason strong { font-size:10px; }.moderation-reason p { margin:5px 0 0; font-size:12px; }
.moderation-diff-list { display:grid; gap:8px; }
.moderation-diff { display:grid; grid-template-columns:105px 1fr 1fr; gap:9px; padding:10px; border:1px solid #e4e8ee; border-radius:10px; }
.moderation-diff > strong { font-size:11px; }.moderation-diff p { margin:0; font-size:11px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }.moderation-diff span { display:block; margin-bottom:4px; }
.account-admin { max-width:760px; }
.account-guide-card { padding:26px; border:1px solid #dfe4ec; border-radius:18px; background:#fff; }
.account-guide-card h3 { margin:0; font-size:22px; }.account-guide-card p { color:#667085; font-size:13px; }.account-guide-card button { display:block; margin:18px 0; padding:12px 18px; border:0; border-radius:10px; background:#172b4d; color:#fff; font-size:18px; font-weight:900; cursor:pointer; }.account-guide-card small { display:block; color:#667085; line-height:1.6; }
body[data-mode="public-display"] .home-results .area-board,
body[data-mode="public-display"] .home-results .poster-pending {
  border: 1px solid #e8e1d3;
  border-radius: 20px;
  background: #fffdf7;
}
@media (max-width: 767px) {
  .admin-section-tabs { overflow-x:auto; padding:8px 10px; }.admin-section-tabs button { flex:0 0 auto; }
  .moderation-layout { padding:14px 10px; }.moderation-list { grid-template-columns:1fr; }.moderation-diff { grid-template-columns:1fr; }
  body[data-mode="public-display"] .home-results .store-card-grid { grid-template-columns: 1fr; }
  body[data-mode="public-display"] .home-results .area-board,
  body[data-mode="public-display"] .home-results .poster-pending { border-radius: 18px; }
}
