:root {
  color-scheme: dark;
  --bg: #0b111c;
  --bg-soft: #101827;
  --panel: rgba(20, 30, 46, .94);
  --panel-strong: #172236;
  --text: #e8eef8;
  --text-strong: #ffffff;
  --muted: #93a4ba;
  --muted-2: #64748b;
  --border: rgba(148, 163, 184, .16);
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -8%, rgba(37, 99, 235, .24), transparent 34%),
    radial-gradient(circle at 85% 8%, rgba(34, 211, 238, .13), transparent 30%),
    linear-gradient(180deg, #0d1422 0%, var(--bg) 44%, #080d16 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
body.battle-tv-lock {
  overflow: hidden;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: linear-gradient(180deg, #080f1b 0%, #0b1320 58%, #080d15 100%);
  color: #fff;
  padding: 20px 14px;
  border-right: 1px solid var(--border);
  box-shadow: 8px 0 32px rgba(0, 0, 0, .22);
}
.brand {
  font-weight: 700;
  font-size: 18px;
  margin: 4px 8px 22px;
  color: var(--text-strong);
  letter-spacing: 0;
}
nav a {
  display: block;
  color: #aebbd0;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 14px;
  border: 1px solid transparent;
}
nav a.active,
nav a:hover {
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  color: #fff;
  border-color: rgba(147, 197, 253, .38);
  box-shadow: 0 8px 22px rgba(37, 99, 235, .26);
}
.nav-group {
  margin-bottom: 4px;
}
.nav-parent {
  position: relative;
}
.nav-parent::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: .7;
  transform: translateY(-65%) rotate(45deg);
}
.nav-group.open .nav-parent::after {
  transform: translateY(-35%) rotate(225deg);
}
.nav-submenu {
  display: none;
  margin: 2px 0 8px 14px;
  padding: 4px 0 4px 12px;
  border-left: 1px solid rgba(148, 163, 184, .18);
}
.nav-group.open .nav-submenu {
  display: block;
}
.nav-submenu a {
  margin-bottom: 3px;
  padding: 8px 10px;
  border-radius: 7px;
  color: #94a3b8;
  font-size: 13px;
  background: transparent;
  box-shadow: none;
}
.nav-submenu a:hover,
.nav-submenu a.active {
  color: #e0f2fe;
  background: rgba(59, 130, 246, .16);
  border-color: rgba(96, 165, 250, .24);
  box-shadow: none;
}
.main {
  position: relative;
  margin-left: 232px;
  padding: 18px 28px 28px;
}
.topbar {
  position: absolute;
  top: 18px;
  right: 28px;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.topbar-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}
.topbar strong {
  color: var(--text-strong);
  font-size: 15px;
}
.account-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 4px 10px 4px 5px;
  border: 1px solid rgba(147, 197, 253, .22);
  border-radius: 999px;
  color: #e8f1ff;
  text-decoration: none;
  background: rgba(15, 23, 42, .76);
}
.account-chip span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  font-weight: 800;
}
.account-chip em {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  font-size: 13px;
}
.logout-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: rgba(30, 41, 59, .78);
  box-shadow: none;
}
.page-head {
  margin-bottom: 18px;
  padding-right: 260px;
}
h1 { margin: 0 0 6px; font-size: 24px; letter-spacing: 0; color: var(--text-strong); }
p { margin: 0; color: var(--muted); }
.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.metric, .panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.metric { padding: 16px; background: linear-gradient(180deg, rgba(25, 38, 59, .96), rgba(16, 24, 39, .96)); }
.metric span { display: block; color: var(--muted); font-size: 13px; }
.metric strong { display: block; font-size: 28px; margin-top: 6px; color: var(--text-strong); }
.panel { padding: 16px; margin-bottom: 16px; }
.panel-title { font-weight: 700; margin-bottom: 12px; color: var(--text-strong); }
.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 430px) 1fr;
  gap: 16px;
  align-items: start;
}
textarea, input, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(7, 13, 24, .74);
  color: var(--text);
  font: inherit;
  padding: 10px;
  outline: none;
}
textarea:focus, input:focus, select:focus {
  border-color: rgba(59, 130, 246, .72);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .16);
}
textarea::placeholder, input::placeholder {
  color: #6f8198;
}
textarea { min-height: 96px; resize: vertical; }
.raw-input { min-height: 360px; }
.actions { display: flex; gap: 10px; margin-top: 12px; }
.publish-entry-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}
.publish-entry-option {
  position: relative;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}
.publish-entry-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.publish-entry-option span {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px 13px;
  border: 1px solid rgba(147, 197, 253, .16);
  border-radius: 8px;
  background: rgba(5, 12, 24, .46);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.publish-entry-option strong {
  color: #f8fbff;
  font-size: 16px;
  line-height: 1.2;
}
.publish-entry-option small {
  color: #8fa3bb;
  font-size: 12px;
  line-height: 1.45;
}
.publish-entry-option input:checked + span {
  border-color: rgba(34, 211, 238, .72);
  background: linear-gradient(135deg, rgba(37, 99, 235, .22), rgba(8, 145, 178, .16));
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .18), 0 12px 26px rgba(8, 145, 178, .12);
}
.publish-entry-option input:checked + span::after {
  content: "已选择";
  position: absolute;
  top: 9px;
  right: 10px;
  color: #67e8f9;
  font-size: 11px;
  font-weight: 800;
}
button {
  border: 0;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  color: white;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .28);
}
button:hover { filter: brightness(1.08); }
button.secondary { background: linear-gradient(90deg, #334155, #475569); box-shadow: none; }
button.danger-button,
.danger-button {
  background: linear-gradient(90deg, #e11d48, #fb7185);
  box-shadow: 0 10px 22px rgba(225, 29, 72, .18);
}
button.small { padding: 7px 10px; font-size: 12px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.notice { margin-top: 10px; color: var(--muted); white-space: pre-wrap; }
.battlefield-screen {
  min-height: calc(100vh - 36px);
}
.battlefield-screen:fullscreen,
.battlefield-screen.is-fallback-fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  padding: 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 78% 10%, rgba(20, 184, 166, .20), transparent 32%),
    radial-gradient(circle at 12% 4%, rgba(37, 99, 235, .22), transparent 28%),
    linear-gradient(135deg, #06111f, #0b1730 48%, #062431);
}
.battlefield-screen.is-fallback-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.battle-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-right: 260px;
}
.battle-hero h1 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 32px;
}
.battle-fullscreen-button {
  min-width: 112px;
  border: 1px solid rgba(34, 211, 238, .28);
  background: linear-gradient(90deg, #2563eb, #0891b2);
}
.battle-revenue-board {
  display: grid;
  grid-template-columns: minmax(560px, 1.55fr) repeat(2, minmax(210px, .62fr));
  gap: 14px;
  margin-bottom: 16px;
}
.battle-revenue-main {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(23, 37, 58, .96), rgba(8, 14, 25, .96));
  box-shadow: var(--shadow);
}
.battle-revenue-main {
  min-height: 190px;
  padding: 22px 24px;
  overflow: hidden;
  position: relative;
}
.battle-revenue-main.primary {
  min-height: 210px;
}
.battle-revenue-main.secondary {
  min-height: 210px;
  padding: 20px 18px;
}
.battle-revenue-main::after {
  content: "";
  position: absolute;
  inset: auto -8% -45% 42%;
  height: 160px;
  background: radial-gradient(circle, rgba(52, 211, 153, .24), transparent 66%);
  pointer-events: none;
}
.battle-board-label {
  display: block;
  margin-bottom: 12px;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
}
.flip-amount {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.flip-card,
.flip-symbol {
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  line-height: 1;
}
.flip-card {
  position: relative;
  min-width: 64px;
  height: 92px;
  border: 1px solid rgba(103, 232, 249, .25);
  border-radius: 8px;
  color: #eaffff;
  background:
    linear-gradient(180deg, rgba(30, 54, 86, .98) 0 49%, rgba(9, 17, 31, .98) 50% 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    inset 0 -1px 0 rgba(0, 0, 0, .30),
    0 14px 30px rgba(0, 0, 0, .24);
  font-size: 58px;
}
.flip-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, .48);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .06);
}
.flip-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.10), transparent 42%, rgba(0,0,0,.16));
  pointer-events: none;
}
.flip-symbol {
  min-width: 30px;
  color: #34d399;
  font-size: 54px;
  text-shadow: 0 0 20px rgba(52, 211, 153, .42);
}
.battle-revenue-main.secondary .flip-amount {
  gap: 4px;
}
.battle-revenue-main.secondary .flip-card {
  min-width: 25px;
  height: 48px;
  border-radius: 6px;
  font-size: 28px;
}
.battle-revenue-main.secondary .flip-symbol {
  min-width: 18px;
  font-size: 28px;
}
.battle-revenue-main.secondary p {
  font-size: 12px;
}
.battle-revenue-main p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}
.battle-map-layout {
  display: grid;
  grid-template-columns: minmax(760px, 1fr) 280px;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}
.battle-map-panel,
.battle-side-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(19, 31, 50, .95), rgba(8, 14, 24, .95));
  box-shadow: var(--shadow);
}
.battle-map-panel {
  padding: 16px;
  min-height: 620px;
}
.battle-side-panel {
  padding: 16px;
}
.battle-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.battle-section-head h2 {
  margin: 2px 0 0;
  color: var(--text-strong);
  font-size: 20px;
}
.battle-section-head p {
  max-width: 460px;
  font-size: 13px;
  text-align: right;
}
.battle-section-head.compact {
  margin-bottom: 10px;
}
.battle-section-head.compact h2 {
  font-size: 18px;
}
.china-map-canvas {
  position: relative;
  min-height: 552px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, .14);
  border-radius: 8px;
  background:
    linear-gradient(rgba(148, 163, 184, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .055) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgba(34, 211, 238, .14), transparent 36%),
    linear-gradient(145deg, rgba(8, 47, 73, .56), rgba(8, 13, 24, .92));
  background-size: 48px 48px, 48px 48px, auto, auto;
}
.china-map-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .96;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, .22));
}
.china-map-province {
  fill: url(#chinaProvinceFill);
  stroke: rgba(147, 197, 253, .34);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill .18s ease, opacity .18s ease, stroke .18s ease, stroke-width .18s ease, transform .18s ease, filter .18s ease;
  cursor: default;
}
.china-map-province:hover,
.china-map-province.is-hover {
  fill: rgba(37, 99, 235, .72);
  stroke: rgba(219, 234, 254, .88);
  stroke-width: 2.2;
  opacity: 1;
}
.china-map-province.has-revenue {
  fill: color-mix(in srgb, #16a34a calc(var(--heat, .45) * 52%), #2563eb);
  stroke: rgba(52, 211, 153, .76);
  stroke-width: 1.8;
  transform: scale(1.006);
  filter: drop-shadow(0 0 12px rgba(52, 211, 153, .42));
}
.china-map-province.has-revenue:hover,
.china-map-province.has-revenue.is-hover {
  fill: url(#chinaProvinceRevenueFill);
  stroke: rgba(167, 243, 208, .98);
  stroke-width: 2.6;
  transform: scale(1.022);
  filter: drop-shadow(0 0 24px rgba(52, 211, 153, .78));
}
.china-map-label {
  fill: rgba(226, 232, 240, .74);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(8, 13, 24, .72);
  stroke-width: 3px;
  pointer-events: none;
}
.china-map-label.has-revenue {
  fill: #f8fafc;
  font-size: 12px;
}
.china-map-marker {
  cursor: pointer;
}
.china-map-marker-halo {
  fill: rgba(52, 211, 153, .16);
  stroke: rgba(52, 211, 153, .64);
  stroke-width: 1.4;
  animation: battlePulse 1.8s ease-out infinite;
  pointer-events: none;
}
.china-map-marker-dot {
  fill: #34d399;
  stroke: rgba(236, 253, 245, .95);
  stroke-width: 2;
  filter: drop-shadow(0 0 14px rgba(52, 211, 153, .95));
}
.china-map-marker.level-2 .china-map-marker-dot {
  fill: #22d3ee;
  filter: drop-shadow(0 0 16px rgba(34, 211, 238, .95));
}
.china-map-marker.level-3 .china-map-marker-dot,
.china-map-marker.featured .china-map-marker-dot {
  fill: #fbbf24;
  filter: drop-shadow(0 0 20px rgba(251, 191, 36, .98));
}
.map-region-badge {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 1px;
  min-width: 86px;
  padding: 7px 10px;
  border: 1px solid rgba(147, 197, 253, .32);
  border-radius: 8px;
  color: #eff6ff;
  background: rgba(8, 13, 24, .82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  transform: translate(calc(-50% + var(--dx, 0px)), calc(-118% + var(--dy, 0px)));
  cursor: pointer;
}
.map-region-badge::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 16px rgba(52, 211, 153, .9);
  transform: translateX(-50%);
}
.map-region-badge strong {
  color: #fff;
  font-size: 14px;
}
.map-region-badge em {
  color: #34d399;
  font-style: normal;
  font-weight: 900;
}
.map-region-badge.featured {
  z-index: 7;
  border-color: rgba(52, 211, 153, .54);
  background: linear-gradient(180deg, rgba(11, 36, 42, .94), rgba(8, 13, 24, .94));
  transform: translate(calc(-50% + var(--dx, 0px)), calc(-118% + var(--dy, 0px))) scale(1.12);
}
.map-region-badge:hover,
.map-region-badge.is-hover {
  border-color: rgba(125, 211, 252, .84);
  background: rgba(15, 23, 42, .96);
}
.china-map-tooltip {
  position: absolute;
  z-index: 20;
  display: none;
  min-width: 176px;
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid rgba(52, 211, 153, .42);
  border-radius: 8px;
  color: #e5f6ff;
  background: rgba(8, 13, 24, .94);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .32);
  pointer-events: none;
}
.china-map-tooltip.is-visible {
  display: grid;
  gap: 4px;
}
.china-map-tooltip strong {
  color: #fff;
  font-size: 14px;
}
.china-map-tooltip b {
  color: #34d399;
  font-size: 20px;
}
.china-map-tooltip ul {
  display: grid;
  gap: 3px;
  margin: 4px 0 0;
  padding: 6px 0 0;
  border-top: 1px solid rgba(148, 163, 184, .16);
  list-style: none;
}
.china-map-tooltip li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}
.china-map-tooltip li em {
  color: #bfdbfe;
  font-style: normal;
}
.china-map-legend {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(8, 13, 24, .64);
  font-size: 12px;
}
.china-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dbeafe;
}
.china-map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 14px rgba(52, 211, 153, .9);
}
.china-map-legend em {
  font-style: normal;
}
.china-mainland {
  fill: url(#chinaMapFill);
  stroke: rgba(103, 232, 249, .34);
  stroke-width: 5;
}
.china-island {
  fill: rgba(13, 59, 94, .86);
  stroke: rgba(103, 232, 249, .28);
  stroke-width: 4;
}
.china-island.small {
  opacity: .72;
}
.china-line {
  fill: none;
  stroke: rgba(103, 232, 249, .12);
  stroke-width: 3;
}
.map-pulse {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.map-pulse span {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 20px rgba(52, 211, 153, .88);
}
.map-pulse span::after {
  content: "";
  position: absolute;
  inset: -11px;
  border: 1px solid rgba(52, 211, 153, .58);
  border-radius: 50%;
  animation: battlePulse 1.7s ease-out infinite;
}
.map-pulse.level-2 span {
  width: 18px;
  height: 18px;
  background: #22d3ee;
  box-shadow: 0 0 24px rgba(34, 211, 238, .9);
}
.map-pulse.level-3 span {
  width: 20px;
  height: 20px;
  background: #fbbf24;
  box-shadow: 0 0 28px rgba(251, 191, 36, .92);
}
.map-pulse strong {
  display: grid;
  gap: 1px;
  min-width: 86px;
  padding: 7px 10px;
  border: 1px solid rgba(147, 197, 253, .24);
  border-radius: 8px;
  color: #eff6ff;
  background: rgba(8, 13, 24, .82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
  font-size: 13px;
  white-space: nowrap;
}
.map-pulse strong b {
  color: #fff;
  font-size: 14px;
}
.map-pulse strong em {
  color: #34d399;
  font-style: normal;
  font-weight: 900;
}
.map-pulse.featured {
  z-index: 3;
  transform: translate(-50%, -50%) scale(1.18);
}
.map-pulse.featured strong {
  border-color: rgba(52, 211, 153, .44);
  background: linear-gradient(180deg, rgba(11, 36, 42, .92), rgba(8, 13, 24, .92));
}
.map-pulse.featured strong b {
  font-size: 16px;
}
.map-pulse.featured strong em {
  font-size: 17px;
}
@keyframes battlePulse {
  0% { transform: scale(.42); opacity: .95; }
  100% { transform: scale(1.85); opacity: 0; }
}
.battle-empty-map {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}
.battle-empty-map strong {
  color: var(--text-strong);
  font-size: 20px;
}
.battle-rank-list,
.battle-category-list,
.battle-record-list {
  display: grid;
  gap: 9px;
}
.battle-rank-row,
.battle-category-list div,
.battle-record-list article {
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 8px;
  background: rgba(6, 12, 22, .46);
}
.battle-rank-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  padding: 11px 12px;
}
.battle-rank-row strong,
.battle-record-list strong {
  color: #fff;
}
.battle-rank-row span,
.battle-rank-row em,
.battle-category-list span,
.battle-category-list em,
.battle-record-list span {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}
.battle-rank-row em {
  grid-column: 1 / -1;
  color: #34d399;
  font-size: 18px;
  font-weight: 800;
}
.battle-category-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 10px 12px;
}
.battle-category-list strong {
  color: #67e8f9;
}
.category-head {
  margin-top: 20px;
}
.battle-records {
  padding: 16px;
}
.battle-record-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
}
.battle-record-list article div {
  display: grid;
  gap: 5px;
}
.battle-record-list em {
  color: #34d399;
  font-size: 18px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}
.battle-muted {
  padding: 14px;
  color: var(--muted);
  border: 1px dashed rgba(148, 163, 184, .22);
  border-radius: 8px;
  background: rgba(7, 13, 24, .45);
}
.battlefield-screen:fullscreen .battle-hero,
.battlefield-screen.is-fallback-fullscreen .battle-hero {
  flex: 0 0 auto;
  margin-bottom: 14px;
  padding-right: 0;
}
.battlefield-screen:fullscreen .battle-hero h1,
.battlefield-screen.is-fallback-fullscreen .battle-hero h1 {
  font-size: clamp(34px, 3vw, 46px);
}
.battlefield-screen:fullscreen .battle-revenue-board,
.battlefield-screen.is-fallback-fullscreen .battle-revenue-board {
  flex: 0 0 auto;
  grid-template-columns: minmax(680px, 1.55fr) repeat(2, minmax(260px, .58fr));
  margin-bottom: 14px;
}
.battlefield-screen:fullscreen .battle-revenue-main,
.battlefield-screen.is-fallback-fullscreen .battle-revenue-main {
  min-height: 178px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.battlefield-screen:fullscreen .battle-revenue-main.primary .flip-card,
.battlefield-screen.is-fallback-fullscreen .battle-revenue-main.primary .flip-card {
  min-width: clamp(62px, 4.4vw, 84px);
  height: clamp(78px, 5.6vw, 108px);
  font-size: clamp(50px, 4.4vw, 72px);
}
.battlefield-screen:fullscreen .battle-revenue-main.primary .flip-symbol,
.battlefield-screen.is-fallback-fullscreen .battle-revenue-main.primary .flip-symbol {
  font-size: clamp(48px, 4vw, 66px);
}
.battlefield-screen:fullscreen .battle-map-panel,
.battlefield-screen.is-fallback-fullscreen .battle-map-panel {
  min-height: 0;
}
.battlefield-screen:fullscreen .china-map-canvas,
.battlefield-screen.is-fallback-fullscreen .china-map-canvas {
  min-height: 0;
  height: 100%;
}
.battlefield-screen:fullscreen .battle-map-layout,
.battlefield-screen.is-fallback-fullscreen .battle-map-layout {
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 0;
}
.battlefield-screen:fullscreen .battle-map-panel,
.battlefield-screen.is-fallback-fullscreen .battle-map-panel,
.battlefield-screen:fullscreen .battle-side-panel,
.battlefield-screen.is-fallback-fullscreen .battle-side-panel {
  overflow: hidden;
}
.battlefield-screen:fullscreen .battle-map-panel,
.battlefield-screen.is-fallback-fullscreen .battle-map-panel {
  display: flex;
  flex-direction: column;
}
.battlefield-screen:fullscreen .china-map-canvas,
.battlefield-screen.is-fallback-fullscreen .china-map-canvas {
  flex: 1 1 auto;
}
.battlefield-screen:fullscreen .battle-rank-list,
.battlefield-screen.is-fallback-fullscreen .battle-rank-list {
  max-height: 45%;
  overflow: hidden;
}
.battlefield-screen:fullscreen .battle-category-list,
.battlefield-screen.is-fallback-fullscreen .battle-category-list {
  max-height: 36%;
  overflow: hidden;
}
.form-alert {
  margin-bottom: 14px;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, .72);
}
.form-alert.error {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, .28);
  background: rgba(225, 29, 72, .10);
}
.form-alert.success {
  color: #bbf7d0;
  border-color: rgba(52, 211, 153, .26);
  background: rgba(16, 185, 129, .10);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
label input, label textarea { margin-top: 6px; color: var(--text); }
.fields-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.moments-plan-preview {
  margin: 10px 0 12px;
}
.new-publish-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.new-publish-plan-grid div {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid rgba(147, 197, 253, .12);
  border-radius: 8px;
  background: rgba(5, 12, 24, .38);
}
.new-publish-plan-grid span {
  color: #8fa3bb;
  font-size: 12px;
}
.new-publish-plan-grid strong {
  color: #f8fbff;
  line-height: 1.38;
}
.block { margin-top: 10px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--text);
}
th, td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 10px 8px;
  vertical-align: top;
}
th { color: var(--muted); font-weight: 600; }
td { color: #d7e0ee; }
pre { white-space: pre-wrap; margin: 0; font-family: inherit; }
.status, .badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .14);
  color: var(--muted);
}
.status.success { background: rgba(52, 211, 153, .13); color: var(--good); }
.status.failed { background: rgba(251, 113, 133, .14); color: var(--bad); }
.status.running, .status.approved, .status.scheduled { background: rgba(59, 130, 246, .16); color: #93c5fd; }
.status.pending_review { background: rgba(251, 191, 36, .13); color: var(--warn); }
.status.cancelled { background: rgba(148, 163, 184, .13); color: #94a3b8; }
.status-help {
  display: block;
  margin-top: 5px;
  color: #8fa3bb;
  font-size: 11px;
  line-height: 1.35;
}
.error-cell { color: var(--bad); max-width: 280px; }
.row-actions { white-space: nowrap; }
.link,
.small-link {
  color: #93c5fd;
  text-decoration: none;
}
.small-link {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
}
.link:hover,
.small-link:hover,
.detail-entry:hover {
  color: #bfdbfe;
  text-decoration: underline;
}
.table-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 10px;
}
.approve-all {
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
}
.detail-entry {
  display: inline-block;
  margin-top: 12px;
  color: #93c5fd;
  text-decoration: none;
}
.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.detail-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.detail-head h1 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.detail-head p {
  max-width: 760px;
  color: #aebdd0;
  font-size: 15px;
  line-height: 1.6;
}
.ghost-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #dbeafe;
  text-decoration: none;
  background: rgba(15, 23, 42, .62);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.edit-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}
.edit-actions {
  padding-bottom: 8px;
}
.json-editor {
  min-height: 220px;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  line-height: 1.55;
}
.detail-list {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px 14px;
  margin: 0;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  color: var(--text);
}
.content-box {
  min-height: 120px;
  max-height: 420px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  background: rgba(3, 8, 20, .72);
  color: #dbeafe;
  line-height: 1.6;
}
.hidden-json {
  display: none;
}
.review-next {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(460px, .9fr);
  gap: 18px;
  align-items: center;
  border-color: rgba(34, 211, 238, .18);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .15), rgba(14, 165, 233, .07)),
    var(--panel);
}
.review-next.failed {
  border-color: rgba(251, 113, 133, .25);
  background:
    linear-gradient(135deg, rgba(225, 29, 72, .14), rgba(14, 165, 233, .05)),
    var(--panel);
}
.review-next.success {
  border-color: rgba(52, 211, 153, .25);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, .13), rgba(14, 165, 233, .05)),
    var(--panel);
}
.review-next strong {
  display: block;
  color: #f8fbff;
  font-size: 22px;
  line-height: 1.35;
}
.review-next p {
  margin-top: 8px;
  color: #a9bad0;
  line-height: 1.65;
}
.review-next-compact {
  grid-template-columns: minmax(360px, .9fr) minmax(460px, 1.1fr);
  padding: 18px;
}
.review-next-compact strong {
  font-size: 20px;
}
.review-next-compact p {
  margin: 6px 0 0;
}
.review-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 10px;
}
.review-summary-cards div,
.readable-kv-grid div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(147, 197, 253, .14);
  border-radius: 8px;
  background: rgba(5, 12, 24, .45);
}
.review-summary-cards span,
.readable-kv-grid span,
.field-review-grid.compact span {
  display: block;
  color: #8fa3bb;
  font-size: 12px;
}
.review-summary-cards strong,
.readable-kv-grid strong {
  display: block;
  margin-top: 7px;
  color: #f1f7ff;
  line-height: 1.45;
}
.review-edit-panel {
  border-color: rgba(59, 130, 246, .20);
}
.review-edit-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 12px;
  align-items: start;
}
.review-edit-grid textarea {
  min-height: 150px;
  line-height: 1.65;
}
.review-readonly-note {
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(147, 197, 253, .14);
  border-radius: 8px;
  color: #a8b7ca;
  background: rgba(5, 12, 24, .46);
  line-height: 1.65;
}
.task-audit-layout {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 320px;
  gap: 16px;
  align-items: start;
}
.task-main-card {
  padding: 18px;
}
.task-side-stack {
  display: grid;
  gap: 16px;
}
.task-side-stack .panel {
  margin-bottom: 0;
}
.task-section-head-slim {
  align-items: flex-start;
  margin-bottom: 14px;
}
.task-section-head-slim .panel-title {
  margin: 4px 0 6px;
  font-size: 20px;
}
.task-section-head-slim p {
  color: #9fb0c5;
  line-height: 1.6;
}
.review-title-field,
.review-content-field {
  display: block;
  margin-top: 14px;
  color: #aebdd0;
}
.review-title-field input {
  margin-top: 8px;
}
.review-content-field textarea {
  min-height: 300px;
  margin-top: 8px;
  color: #f5f9ff;
  font-size: 16px;
  line-height: 1.75;
}
.task-main-card .primary-copy-box {
  min-height: 300px;
  font-size: 16px;
}
.readable-kv-grid-single {
  grid-template-columns: 1fr;
}
.readable-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
}
.field-review-grid.compact {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}
.field-review-grid.compact article {
  border-radius: 8px;
  background: rgba(5, 12, 24, .42);
}
.raw-text-box {
  min-height: 172px;
  max-height: 280px;
  overflow: auto;
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 8px;
  background: rgba(3, 8, 20, .50);
  color: #dbeafe;
  line-height: 1.7;
}
.business-detail-grid {
  grid-template-columns: minmax(520px, .95fr) minmax(420px, 1.05fr);
}
.business-field-grid.compact {
  grid-template-columns: repeat(2, minmax(210px, 1fr));
}
.business-field-grid article {
  min-height: 78px;
}
.business-field-grid strong {
  font-size: 15px;
  line-height: 1.65;
  word-break: break-word;
}
.business-detail-grid .panel-title,
.task-side-stack .panel-title {
  font-size: 18px;
}
.primary-copy-box {
  min-height: 140px;
  padding: 16px;
  border: 1px solid rgba(34, 211, 238, .22);
  border-radius: 8px;
  background: rgba(3, 8, 20, .58);
  color: #eff6ff;
  line-height: 1.8;
  white-space: pre-wrap;
}
.review-copy-grid article.active {
  border-color: rgba(34, 211, 238, .34);
  box-shadow: 0 14px 36px rgba(14, 165, 233, .10);
}
.review-copy-grid h3 {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.review-copy-grid h3 span {
  padding: 3px 7px;
  border-radius: 999px;
  color: #06111f;
  background: #22d3ee;
  font-size: 11px;
}
.result-box {
  padding: 14px;
  border: 1px solid rgba(147, 197, 253, .14);
  border-radius: 8px;
  color: #bfdbfe;
  background: rgba(59, 130, 246, .09);
}
.result-box.success {
  color: #bbf7d0;
  border-color: rgba(52, 211, 153, .24);
  background: rgba(16, 185, 129, .09);
}
.compact-table th,
.compact-table td {
  padding: 9px 8px;
}
.raw-debug-panel details summary {
  cursor: pointer;
  color: #bfdbfe;
  font-weight: 700;
}
.raw-debug-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.raw-debug-grid h3 {
  margin: 0 0 8px;
  color: #dbeafe;
  font-size: 13px;
}
.error-box {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(251, 113, 133, .26);
  border-radius: 8px;
  color: var(--bad);
  background: rgba(251, 113, 133, .08);
}
.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.flow-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.flow-list strong {
  color: var(--good);
}
.flow-list span {
  color: #dbeafe;
}
.flow-list li.failed strong {
  color: var(--bad);
}
.flow-list li.skipped strong {
  color: var(--warn);
}
.copy-preview h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #bfdbfe;
}
.copy-preview pre {
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(3, 8, 20, .58);
  color: #e5eefb;
  line-height: 1.55;
}
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  max-width: 520px;
}
.task-guide {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, .9fr);
  gap: 18px;
  align-items: center;
  border-color: rgba(34, 211, 238, .18);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .15), rgba(14, 165, 233, .07)),
    var(--panel);
}
.guide-kicker {
  display: block;
  margin-bottom: 7px;
  color: #22d3ee;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.guide-main strong {
  display: block;
  color: #f8fbff;
  font-size: 19px;
  line-height: 1.45;
}
.guide-main p,
.task-section-head p {
  margin-top: 6px;
  color: #9fb0c6;
  line-height: 1.6;
  font-size: 13px;
}
.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.guide-steps div {
  min-height: 82px;
  padding: 13px;
  border: 1px solid rgba(147, 197, 253, .16);
  border-radius: 8px;
  background: rgba(5, 12, 24, .42);
}
.guide-steps b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  border-radius: 999px;
  color: #06111f;
  background: #22d3ee;
}
.guide-steps span,
.guide-steps small {
  display: block;
}
.guide-steps span {
  color: #f1f5f9;
  font-weight: 800;
}
.guide-steps small {
  margin-top: 4px;
  color: #93a4b8;
}
.task-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.task-stats div {
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 42, .72);
}
.task-stats span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
}
.task-stats strong {
  display: block;
  margin-top: 7px;
  color: #f8fbff;
  font-size: 24px;
}
.task-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.task-group-list {
  display: grid;
  gap: 10px;
}
.task-group-card {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(220px, 260px);
  gap: 16px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(147, 197, 253, .14);
  border-radius: 8px;
  background: rgba(8, 16, 30, .66);
}
.task-group-title {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.task-group-title strong {
  color: #f2f7ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-group-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #a8b7ca;
  font-size: 12px;
}
.channel-status-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.channel-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(147, 197, 253, .14);
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: #cbd8ea;
  font-size: 12px;
  text-decoration: none;
}
.channel-chip.pending_review { color: #facc15; background: rgba(251, 191, 36, .11); }
.channel-chip.approved,
.channel-chip.scheduled,
.channel-chip.running { color: #93c5fd; background: rgba(59, 130, 246, .13); }
.channel-chip.success { color: #34d399; background: rgba(52, 211, 153, .11); }
.channel-chip.failed { color: #fb7185; background: rgba(251, 113, 133, .12); }
.task-group-next {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding-left: 16px;
  border-left: 1px solid rgba(147, 197, 253, .14);
}
.task-group-next strong {
  color: #e6edf8;
  line-height: 1.45;
}
.task-group-next .status {
  align-self: flex-start;
}
.task-detail-table {
  margin-top: 14px;
}
.submission-head h1 {
  font-size: 30px;
}
.submission-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.submission-overview .panel {
  margin-bottom: 0;
}
.submission-plan-card {
  grid-column: 1 / -1;
}
.submission-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.submission-plan-head .panel-title {
  margin: 0 0 6px;
  font-size: 20px;
}
.submission-plan-head p {
  max-width: 780px;
  color: #a7b7ca;
  line-height: 1.55;
  font-size: 13px;
}
.submission-plan-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}
.submission-plan-grid,
.submission-compact-grid {
  display: grid;
  gap: 10px;
}
.submission-plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.submission-compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.submission-plan-grid > div,
.submission-compact-grid > div,
.submission-plan-select {
  min-width: 0;
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid rgba(147, 197, 253, .14);
  border-radius: 8px;
  background: rgba(5, 12, 24, .42);
}
.submission-plan-grid span,
.submission-compact-grid span {
  color: #8fa3bb;
  font-size: 12px;
}
.submission-plan-grid strong,
.submission-compact-grid strong {
  min-width: 0;
  color: #f8fbff;
  line-height: 1.38;
  overflow-wrap: anywhere;
}
.submission-context-card {
  min-height: auto;
}
.submission-fields-card {
  grid-column: 1 / -1;
}
.submission-fields-card .business-field-grid.compact {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}
.submission-raw-panel {
  margin-top: 14px;
}
.submission-raw-text {
  min-height: 160px;
  max-height: 320px;
  font-size: 15px;
}
.submission-channel-section {
  margin-top: 16px;
}
.submission-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
  align-items: start;
}
.submission-channel-card {
  margin-bottom: 0;
  padding: 16px;
  scroll-margin-top: 20px;
}
.submission-channel-card.failed {
  border-color: rgba(251, 113, 133, .26);
}
.submission-channel-card.success {
  border-color: rgba(52, 211, 153, .22);
}
.submission-channel-card.pending_review {
  border-color: rgba(251, 191, 36, .20);
}
.submission-channel-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.submission-channel-card-head h2 {
  margin: 0 0 6px;
  color: #f8fbff;
  font-size: 21px;
  line-height: 1.3;
}
.submission-channel-card-head p {
  max-width: 620px;
  color: #9fb0c5;
  line-height: 1.55;
  font-size: 13px;
}
.submission-channel-card-head .status {
  flex: 0 0 auto;
  margin-top: 2px;
}
.submission-channel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.submission-channel-meta span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(147, 197, 253, .12);
  border-radius: 999px;
  color: #9fb0c5;
  background: rgba(5, 12, 24, .44);
  font-size: 12px;
}
.moments-plan-panel {
  border-color: rgba(45, 212, 191, .24);
  background: linear-gradient(180deg, rgba(20, 184, 166, .08), rgba(15, 23, 42, .78));
}
.moments-plan-panel.needs-check {
  border-color: rgba(251, 191, 36, .28);
  background: linear-gradient(180deg, rgba(251, 191, 36, .08), rgba(15, 23, 42, .78));
}
.moments-plan-inline {
  margin: 2px 0 16px;
  padding: 12px;
  border: 1px solid rgba(45, 212, 191, .22);
  border-radius: 8px;
  background: rgba(20, 184, 166, .06);
}
.moments-plan-inline.needs-check {
  border-color: rgba(251, 191, 36, .24);
  background: rgba(251, 191, 36, .06);
}
.moments-plan-inline-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.moments-plan-inline-head div {
  display: grid;
  gap: 2px;
}
.moments-plan-inline-head strong {
  color: #f8fbff;
  font-size: 17px;
}
.moments-plan-inline-head > span {
  color: #93c5fd;
  font-size: 12px;
  white-space: nowrap;
}
.moments-plan-inline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.moments-plan-inline-grid > div,
.moments-plan-select-card {
  min-width: 0;
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(147, 197, 253, .14);
  border-radius: 8px;
  background: rgba(5, 12, 24, .38);
}
.moments-plan-inline-grid span,
.moments-plan-select-card span {
  color: #8ea4bd;
  font-size: 12px;
}
.moments-plan-inline-grid strong {
  min-width: 0;
  color: #f8fbff;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.moments-plan-select-card select {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(59, 130, 246, .36);
  border-radius: 7px;
  color: #f8fbff;
  background: rgba(15, 23, 42, .94);
  font: inherit;
}
.moments-plan-grid strong {
  color: #f8fbff;
  line-height: 1.42;
}
.moments-plan-warning {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(251, 191, 36, .24);
  border-radius: 8px;
  color: #fde68a;
  background: rgba(251, 191, 36, .08);
  font-size: 12px;
  line-height: 1.45;
}
.moments-plan-warning.compact {
  margin: -2px 0 10px;
}
.submission-channel-plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
  padding: 10px;
  border: 1px solid rgba(45, 212, 191, .18);
  border-radius: 8px;
  background: rgba(20, 184, 166, .06);
}
.submission-channel-plan.needs-check {
  border-color: rgba(251, 191, 36, .24);
  background: rgba(251, 191, 36, .06);
}
.submission-channel-plan span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border-radius: 7px;
  color: #dbeafe;
  background: rgba(5, 12, 24, .38);
  line-height: 1.35;
  font-size: 13px;
}
.submission-channel-plan b {
  color: #8fa3bb;
  font-size: 11px;
  font-weight: 600;
}
.group-protocol-check {
  display: grid;
  gap: 10px;
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid rgba(45, 212, 191, .2);
  border-radius: 8px;
  background: rgba(20, 184, 166, .06);
}
.group-protocol-check.failed {
  border-color: rgba(248, 113, 113, .28);
  background: rgba(127, 29, 29, .14);
}
.group-protocol-check.warning {
  border-color: rgba(251, 191, 36, .28);
  background: rgba(251, 191, 36, .08);
}
.group-protocol-check-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.group-protocol-check-head b {
  display: block;
  color: #f8fbff;
  font-size: 15px;
  margin-bottom: 4px;
}
.group-protocol-check-head p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.5;
  font-size: 13px;
}
.group-protocol-check-head > span {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(16, 185, 129, .16);
  font-size: 12px;
  font-weight: 700;
}
.group-protocol-check.failed .group-protocol-check-head > span {
  color: #fecaca;
  background: rgba(248, 113, 113, .16);
}
.group-protocol-check.warning .group-protocol-check-head > span {
  color: #fde68a;
  background: rgba(251, 191, 36, .14);
}
.group-protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.group-protocol-grid div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(147, 197, 253, .12);
  border-radius: 8px;
  background: rgba(5, 12, 24, .34);
}
.group-protocol-grid span {
  color: #8ea4bd;
  font-size: 11px;
}
.group-protocol-grid strong {
  color: #f8fbff;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.group-protocol-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.group-protocol-channels span {
  padding: 6px 9px;
  border: 1px solid rgba(59, 130, 246, .22);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(37, 99, 235, .12);
  font-size: 12px;
}
.group-protocol-channels.workstation-probes span {
  border-color: rgba(45, 212, 191, .2);
  color: #ccfbf1;
  background: rgba(20, 184, 166, .1);
}
.group-protocol-next {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid rgba(250, 204, 21, .24);
  border-radius: 8px;
  background: rgba(250, 204, 21, .08);
}
.group-protocol-next b {
  color: #fef3c7;
  font-size: 12px;
}
.group-protocol-next span {
  color: #fde68a;
  font-size: 13px;
  line-height: 1.45;
}
.group-protocol-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.submission-channel-copy {
  min-height: 210px;
  max-height: 400px;
  overflow: auto;
  font-size: 15px;
}
.submission-channel-editor {
  display: grid;
  gap: 8px;
  margin: 0;
}
.submission-channel-editor span {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
}
.submission-channel-editor textarea {
  width: 100%;
  min-height: 250px;
  max-height: 430px;
  resize: vertical;
  padding: 14px 15px;
  border: 1px solid rgba(59, 130, 246, .28);
  border-radius: 8px;
  color: #f8fbff;
  background: rgba(5, 12, 24, .72);
  font: inherit;
  font-size: 15px;
  line-height: 1.72;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .45);
}
.submission-channel-editor textarea:focus {
  outline: none;
  border-color: rgba(34, 211, 238, .72);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .10);
}
.upload-zone {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 12px;
}
.upload-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(147, 197, 253, .16);
  border-radius: 8px;
  background: rgba(5, 12, 24, .46);
}
.upload-card strong {
  display: block;
  color: #f8fbff;
  font-size: 15px;
}
.upload-card span {
  display: block;
  margin-top: 4px;
  color: #91a4bc;
  font-size: 12px;
  line-height: 1.45;
}
.upload-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  font-size: 13px;
  font-weight: 800;
}
.upload-button input {
  display: none;
}
.upload-preview-list {
  display: grid;
  gap: 8px;
}
.upload-preview-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 7px;
  border: 1px solid rgba(147, 197, 253, .12);
  border-radius: 8px;
  background: rgba(15, 23, 42, .62);
}
.upload-preview-item img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid rgba(147, 197, 253, .18);
}
.upload-preview-item strong {
  overflow: hidden;
  color: #f8fbff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.upload-preview-item small {
  display: block;
  margin-top: 2px;
  color: #8fa3bb;
}
.upload-preview-item button {
  min-height: 30px;
  padding: 0 9px;
  background: rgba(148, 163, 184, .18);
}
.quick-create-tip {
  margin: 10px 0 0;
  color: #93c5fd;
  font-size: 12px;
  line-height: 1.5;
}
.media-review-panel {
  margin-top: 14px;
}
.media-group-title {
  margin: 12px 0 8px;
  color: #f8fbff;
  font-size: 15px;
  font-weight: 800;
}
.media-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.media-preview-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(147, 197, 253, .14);
  border-radius: 8px;
  color: #dbeafe;
  text-decoration: none;
  background: rgba(5, 12, 24, .52);
}
.media-preview-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid rgba(147, 197, 253, .16);
  background: rgba(15, 23, 42, .72);
}
.media-preview-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.media-preview-card span {
  color: #8fa3bb;
  font-size: 12px;
}
.submission-channel-result {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(147, 197, 253, .14);
  border-radius: 8px;
  color: #bfdbfe;
  background: rgba(59, 130, 246, .08);
  line-height: 1.55;
  font-size: 13px;
}
.submission-channel-result.success {
  color: #bbf7d0;
  border-color: rgba(52, 211, 153, .22);
  background: rgba(16, 185, 129, .08);
}
.submission-channel-result.failed {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, .26);
  background: rgba(225, 29, 72, .10);
}
.submission-channel-result.pending_review {
  color: #fde68a;
  border-color: rgba(251, 191, 36, .22);
  background: rgba(251, 191, 36, .08);
}
.submission-channel-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(147, 197, 253, .12);
}
.submission-channel-time {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: #8fa3bb;
  font-size: 12px;
  line-height: 1.55;
}
.management-hero {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-end;
  margin-bottom: 18px;
  padding-right: 260px;
}
.management-hero h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 32px;
  line-height: 1.2;
}
.management-hero p {
  max-width: 840px;
  color: #aebdd0;
  font-size: 15px;
  line-height: 1.65;
}
.management-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.management-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.management-stats article {
  min-height: 92px;
  padding: 15px;
  border: 1px solid rgba(147, 197, 253, .16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 31, 49, .90), rgba(9, 17, 31, .90));
  box-shadow: var(--shadow);
}
.management-stats span {
  display: block;
  color: #94a3b8;
  font-size: 13px;
}
.management-stats strong {
  display: block;
  margin-top: 10px;
  color: #f8fbff;
  font-size: 28px;
  line-height: 1.1;
}
.management-stats article:nth-child(2) strong { color: var(--warn); }
.management-stats article:nth-child(3) strong { color: #93c5fd; }
.management-stats article:nth-child(4) strong { color: var(--good); }
.management-stats article:nth-child(5) strong { color: var(--bad); }
.management-filter-panel {
  border-color: rgba(34, 211, 238, .14);
}
.management-filters {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(300px, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.promotion-management-filters {
  grid-template-columns: minmax(150px, 190px) minmax(150px, 190px) minmax(320px, 1fr) auto;
}
.management-filters label {
  margin-bottom: 0;
}
.management-filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.management-filter-actions button,
.management-filter-actions .ghost-button {
  min-height: 42px;
  white-space: nowrap;
}
.management-list {
  display: grid;
  gap: 12px;
}
.management-card {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(220px, 260px);
  gap: 16px;
  padding: 15px;
  border: 1px solid rgba(147, 197, 253, .14);
  border-radius: 8px;
  background: rgba(8, 16, 30, .66);
}
.management-card-title {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  margin-bottom: 12px;
}
.management-card-title strong {
  color: #f8fbff;
  font-size: 18px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.management-field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}
.management-field-grid div {
  min-height: 68px;
  padding: 10px;
  border: 1px solid rgba(147, 197, 253, .12);
  border-radius: 8px;
  background: rgba(5, 12, 24, .42);
}
.management-field-grid span {
  display: block;
  color: #8fa3bb;
  font-size: 12px;
}
.management-field-grid strong {
  display: block;
  margin-top: 7px;
  color: #eaf2ff;
  line-height: 1.45;
  word-break: break-word;
}
.management-summary {
  margin: -4px 0 12px;
  color: #b6c6da;
  font-size: 13px;
  line-height: 1.6;
}
.promotion-management-card .management-card-title {
  margin-bottom: 8px;
}
.promotion-management-card .management-field-grid div {
  min-height: 74px;
}
.management-card-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding-left: 16px;
  border-left: 1px solid rgba(147, 197, 253, .14);
}
.management-card-side .status {
  align-self: flex-start;
}
.management-card-side strong {
  color: #e6edf8;
  line-height: 1.45;
}
.hero-head {
  text-align: center;
  margin: 0 0 8px;
  padding-top: 2px;
  transform: translateY(-6px);
}
.hero-head h1 {
  font-size: 36px;
  line-height: 1.25;
  color: #f8fbff;
  text-shadow: 0 10px 28px rgba(37, 99, 235, .22);
}
.hero-head p {
  font-size: 17px;
  line-height: 1.55;
  color: #b7c5d8;
}
.command-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) 1.3fr minmax(300px, .9fr);
  gap: 14px;
  margin-bottom: 14px;
}
.console-input {
  min-height: 118px;
  background: rgba(6, 12, 22, .92);
  color: #e5eefb;
  border-color: rgba(148, 163, 184, .22);
}
.char-count {
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  margin: -22px 10px 12px 0;
}
button.wide {
  width: 100%;
}
.overview-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.overview-cards div {
  min-height: 108px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 31, 49, .98), rgba(15, 23, 42, .98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.overview-cards strong {
  display: block;
  font-size: 26px;
  color: #60a5fa;
}
.overview-cards span,
.overview-cards em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  color: var(--muted);
}
.overview-cards em {
  font-size: 12px;
  color: var(--good);
}
.overview-cards div:nth-child(2) strong { color: var(--good); }
.overview-cards div:nth-child(3) strong { color: var(--bad); }
.overview-cards div:nth-child(4) strong { color: var(--warn); }
.agent-line {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.agent-line strong {
  color: var(--good);
  font-size: 12px;
}
.bot-icon {
  color: var(--accent-2);
}
.lower-grid {
  display: grid;
  grid-template-columns: 1.2fr .95fr .55fr;
  gap: 14px;
  align-items: stretch;
}
.business-scope {
  margin-bottom: 14px;
}
.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.scope-card {
  display: flex;
  min-height: 128px;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 31, 49, .84), rgba(10, 18, 32, .84));
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.scope-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, .64);
  background: linear-gradient(180deg, rgba(25, 43, 70, .92), rgba(10, 18, 32, .9));
}
.scope-card strong {
  display: block;
  color: #f8fbff;
  font-size: 15px;
}
.scope-card span {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(59, 130, 246, .14);
  font-size: 12px;
}
.scope-card.green span { color: #a7f3d0; background: rgba(16, 185, 129, .16); }
.scope-card.cyan span { color: #a5f3fc; background: rgba(6, 182, 212, .16); }
.scope-card.violet span { color: #ddd6fe; background: rgba(139, 92, 246, .16); }
.scope-card.amber span { color: #fde68a; background: rgba(245, 158, 11, .16); }
.scope-card.pink span { color: #fbcfe8; background: rgba(236, 72, 153, .16); }
.scope-card p {
  margin-top: 9px;
  line-height: 1.55;
  font-size: 12px;
}
.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-title-row a {
  color: #93c5fd;
  font-size: 12px;
  text-decoration: none;
}
.task-tabs {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.task-tabs span:first-child {
  color: #93c5fd;
  font-weight: 700;
}
.flow-steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.flow-steps a {
  flex: 1;
  text-align: center;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #a8b7ca;
  font-size: 12px;
  background: rgba(15, 23, 42, .72);
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.flow-steps a:hover {
  border-color: rgba(56, 189, 248, .55);
  color: #e0f2fe;
}
.flow-steps .done {
  border-color: rgba(52, 211, 153, .72);
  color: var(--good);
}
.flow-log {
  min-height: 150px;
  background: #030814;
  color: #86efac;
  border: 1px solid rgba(52, 211, 153, .24);
  border-radius: 8px;
  padding: 12px;
  overflow: auto;
  box-shadow: inset 0 0 28px rgba(34, 197, 94, .06);
}
.notice-list {
  display: grid;
  gap: 10px;
}
.notice-item {
  display: block;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #dbe6f5;
  background: rgba(15, 23, 42, .56);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}
.notice-item:hover {
  border-color: rgba(59, 130, 246, .58);
  background: rgba(30, 41, 59, .68);
}
.notice-item strong {
  display: block;
  font-size: 14px;
}
.notice-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.notice-item.warning strong { color: #fde68a; }
.notice-item.danger strong { color: #fb7185; }
.notice-item.success strong { color: #34d399; }
.notice-item.info strong { color: #93c5fd; }

.public-info-hero h1 {
  font-size: 30px;
}
.public-info-stats {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}
.public-info-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, .9fr);
  gap: 14px;
  margin-bottom: 16px;
}
.panel-hint {
  margin-bottom: 14px;
  line-height: 1.7;
  font-size: 13px;
}
.public-info-form {
  display: grid;
  gap: 14px;
}
.public-info-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}
.public-info-form select,
.public-info-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: #07101d;
}
.public-info-upload {
  margin: 0;
}
.public-info-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.public-info-actions span {
  color: var(--muted);
  font-size: 13px;
}
.public-plan-list {
  display: grid;
  gap: 10px;
}
.automation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(34, 211, 238, .22);
  border-radius: 8px;
  background: rgba(8, 47, 73, .22);
}
.automation-toolbar strong,
.automation-toolbar span {
  display: block;
}
.automation-toolbar strong {
  color: #e0f2fe;
  font-size: 14px;
}
.automation-toolbar span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.automation-toolbar button {
  white-space: nowrap;
}
.public-plan-card {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(10, 18, 32, .72);
}
.public-plan-card > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.public-plan-card strong {
  color: #f8fbff;
}
.public-plan-card span {
  color: #a5f3fc;
  font-size: 12px;
}
.public-plan-card p {
  margin-top: 9px;
  line-height: 1.55;
  font-size: 12px;
}
.public-plan-runtime {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, .14);
  background: rgba(2, 6, 23, .32);
}
.public-plan-runtime strong {
  color: #bfdbfe;
  font-size: 13px;
}
.public-plan-runtime small {
  color: #8ea3bd;
  line-height: 1.45;
}
.public-plan-runtime.done {
  border-color: rgba(52, 211, 153, .28);
  background: rgba(16, 185, 129, .08);
}
.public-plan-runtime.done strong {
  color: #86efac;
}
.public-plan-runtime.waiting {
  border-color: rgba(96, 165, 250, .2);
}
.public-plan-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.public-plan-card small {
  color: var(--muted);
}
.automation-note {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(34, 211, 238, .22);
  border-radius: 8px;
  background: rgba(8, 47, 73, .22);
}
.automation-note strong {
  color: #67e8f9;
}
.automation-note p {
  margin-top: 6px;
  line-height: 1.65;
  font-size: 13px;
}
.public-info-history {
  margin-bottom: 24px;
}
.public-info-list {
  display: grid;
  gap: 12px;
}
.public-info-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(10, 18, 32, .78);
}
.public-info-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.public-info-card header strong {
  flex: 1;
  color: #fff;
  font-size: 17px;
}
.public-info-card header em {
  padding: 4px 9px;
  border-radius: 999px;
  color: #facc15;
  background: rgba(250, 204, 21, .14);
  font-style: normal;
  font-size: 12px;
}
.public-info-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.public-info-copy div,
.poster-prompt {
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 8px;
  background: rgba(3, 8, 20, .56);
}
.public-info-copy span,
.poster-prompt span {
  display: block;
  margin-bottom: 7px;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 700;
}
.public-info-copy p,
.poster-prompt p {
  white-space: pre-wrap;
  line-height: 1.65;
  color: #e8eef8;
}
.poster-prompt {
  margin-top: 10px;
}
.public-info-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.public-info-media img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.public-info-media figure {
  width: 128px;
  margin: 0;
}
.public-info-media figure img {
  width: 128px;
  height: 158px;
  object-fit: cover;
  background: #07101d;
}
.video-skill-figure {
  min-height: 158px;
  display: grid;
  align-content: space-between;
  padding: 10px;
  border: 1px solid rgba(34, 211, 238, .22);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(8, 47, 73, .55), rgba(15, 23, 42, .92));
}
.video-skill-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 72px;
  border: 1px solid rgba(125, 211, 252, .34);
  border-radius: 8px;
  color: #67e8f9;
  background: rgba(2, 6, 23, .5);
  font-size: 12px;
  font-weight: 900;
}
.public-info-media figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.public-info-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.public-info-format {
  margin-bottom: 16px;
}
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.format-grid article {
  min-height: 132px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(5, 12, 24, .62);
}
.format-grid strong,
.format-grid span,
.format-grid small {
  display: block;
}
.format-grid strong {
  color: #f8fbff;
  font-size: 16px;
}
.format-grid span {
  margin-top: 9px;
  color: #dbeafe;
  line-height: 1.55;
}
.format-grid small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}
.public-review-list {
  display: grid;
  gap: 14px;
  padding-bottom: 28px;
}
.public-review-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(8, 47, 73, .46));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.public-review-card header,
.public-review-card footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.public-review-card h2 {
  margin: 9px 0 6px;
  color: #f8fbff;
  font-size: 22px;
  letter-spacing: 0;
}
.public-review-card header p,
.public-review-card footer span {
  color: var(--muted);
  font-size: 13px;
}
.public-review-state {
  min-width: 150px;
  display: grid;
  justify-items: end;
  gap: 8px;
}
.public-review-state small {
  color: var(--muted);
}
.public-review-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.public-review-preview,
.public-review-copy {
  display: grid;
  gap: 12px;
}
.public-review-preview > strong {
  color: #67e8f9;
  font-size: 13px;
}
.public-poster-strip,
.public-upload-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.public-poster-strip a,
.public-upload-strip a,
.video-skill-card {
  display: block;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(3, 8, 20, .54);
  text-decoration: none;
}
.video-skill-card {
  display: grid;
  gap: 7px;
  min-height: 178px;
}
.video-skill-card strong {
  color: #f8fbff;
}
.video-skill-card span {
  color: #67e8f9;
  font-size: 12px;
  line-height: 1.45;
}
.video-skill-card small {
  color: #cbd5e1;
  line-height: 1.55;
}
.video-skill-card em {
  align-self: end;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(250, 204, 21, .13);
  font-style: normal;
  font-size: 11px;
}
.public-poster-strip img,
.public-upload-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  background: #07101d;
}
.public-poster-strip span,
.public-upload-strip span {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.35;
}
.empty-material {
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, .24);
  border-radius: 8px;
  color: var(--muted);
}
.public-review-copy div {
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  background: rgba(3, 8, 20, .54);
}
.public-review-copy span {
  display: block;
  margin-bottom: 8px;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
}
.public-review-copy p {
  white-space: pre-wrap;
  color: #eef6ff;
  line-height: 1.7;
}
.public-channel-review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.public-channel-review div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 8px;
  background: rgba(2, 6, 23, .5);
}
.public-channel-review strong {
  color: #f8fbff;
}
.public-channel-review small {
  flex: 1 1 100%;
  color: #fb7185;
}
.public-review-card footer {
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, .14);
}
.public-review-card footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.small.danger {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  color: #fff;
}
.login-body {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(135deg, #080d14 0%, #0b1421 48%, #111116 100%);
  background-size: 56px 56px, 56px 56px, auto;
}
.login-shell {
  width: min(920px, calc(100vw - 48px));
  min-height: 560px;
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(210, 219, 232, .14);
  border-radius: 20px;
  background: rgba(9, 14, 22, .78);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .46);
  backdrop-filter: blur(16px);
}
.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 36px;
  background: linear-gradient(180deg, rgba(16, 24, 38, .98), rgba(8, 13, 21, .98));
  border-right: 1px solid rgba(148, 163, 184, .12);
}
.login-product {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 42px;
}
.login-brand-mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8 0%, #0891b2 56%, #16a34a 100%);
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 14px 34px rgba(8, 145, 178, .30);
}
.login-product span {
  display: block;
  color: #8ca0b8;
  font-size: 12px;
  margin-bottom: 4px;
}
.login-product strong {
  display: block;
  color: #f8fbff;
  font-size: 15px;
  line-height: 1.35;
}
.login-card-head {
  width: 100%;
  max-width: 338px;
  margin: 0 auto 24px;
}
.login-card-head span {
  display: block;
  color: #22d3ee;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.login-card-head h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.2;
  color: #fff;
}
.login-card-head p {
  margin: 0;
  color: #a9b7c9;
  line-height: 1.7;
}
.login-panel .form-alert {
  width: 100%;
  max-width: 338px;
  margin: 0 auto 14px;
}
.login-form {
  width: 100%;
  max-width: 338px;
  margin: 0 auto;
}
.login-form label {
  margin-bottom: 14px;
  color: #c6d2e3;
  font-size: 13px;
  font-weight: 600;
}
.login-form input {
  height: 44px;
  margin-top: 8px;
  border-radius: 10px;
  border-color: rgba(148, 163, 184, .20);
  background: rgba(4, 9, 16, .72);
  color: #f8fbff;
  padding: 0 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.login-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border-radius: 10px;
  font-size: 15px;
  background: linear-gradient(90deg, #2563eb 0%, #0891b2 100%);
  box-shadow: 0 16px 30px rgba(37, 99, 235, .25);
}
.login-footnote {
  width: 100%;
  max-width: 338px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px auto 0;
  color: #8495aa;
  font-size: 12px;
}
.login-footnote span {
  white-space: nowrap;
}
.login-showcase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 38px;
  background:
    linear-gradient(145deg, rgba(13, 22, 34, .86), rgba(10, 15, 24, .72)),
    linear-gradient(180deg, rgba(37, 99, 235, .13), transparent 44%);
}
.showcase-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.showcase-head span {
  color: #8ca0b8;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.showcase-head strong {
  color: #dcfce7;
  font-size: 13px;
  font-weight: 700;
}
.showcase-card {
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(17, 27, 43, .92), rgba(8, 13, 22, .94));
  box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
}
.showcase-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.showcase-title span {
  color: #f8fbff;
  font-size: 18px;
  font-weight: 800;
}
.showcase-title em {
  font-style: normal;
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, .22);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(22, 163, 74, .10);
  font-size: 12px;
}
.showcase-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.showcase-metrics div {
  min-height: 84px;
  padding: 13px 12px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 12px;
  background: rgba(3, 8, 16, .42);
}
.showcase-metrics strong {
  display: block;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 10px;
}
.showcase-metrics span,
.showcase-flow span,
.showcase-list div {
  color: #aab8ca;
  font-size: 12px;
}
.showcase-flow {
  display: grid;
  gap: 10px;
}
.showcase-flow div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, .11);
  border-radius: 10px;
  background: rgba(12, 20, 34, .58);
}
.showcase-flow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .10);
}
.showcase-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.showcase-list div {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, .10);
  border-radius: 10px;
  background: rgba(9, 14, 22, .52);
}
.showcase-list div > span:last-child {
  color: #c6d2e3;
}
.channel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #60a5fa;
}
.channel-dot.mini { background: #22c55e; }
.channel-dot.moments { background: #f59e0b; }
.channel-dot.group { background: #22d3ee; }
}
.account-hero {
  margin-bottom: 18px;
}
.section-kicker {
  display: block;
  color: #22d3ee;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.account-hero h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 30px;
  line-height: 1.2;
}
.account-hero p {
  max-width: 680px;
  margin: 0;
  color: #9fb0c5;
  line-height: 1.7;
}
.account-grid {
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(460px, 1.08fr);
  gap: 16px;
  align-items: stretch;
}
.account-profile-card,
.account-password-card,
.account-create-card,
.account-table-card {
  border-radius: 10px;
}
.account-card-note {
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.profile-main {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 62%, #22c55e 100%);
  box-shadow: 0 16px 34px rgba(6, 182, 212, .20);
}
.profile-name {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 5px;
}
.profile-subtitle {
  color: var(--muted);
  font-size: 13px;
}
.profile-list {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 11px 14px;
  margin: 0;
}
.profile-list dt {
  color: var(--muted);
}
.profile-list dd {
  margin: 0;
  color: #e5eefb;
}
.account-password-form,
.account-create-form {
  display: grid;
  gap: 14px;
}
.account-password-form {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  align-items: end;
}
.account-password-form button,
.account-create-form button {
  min-height: 42px;
}
.account-password-note {
  padding: 14px;
  border: 1px solid rgba(34, 211, 238, .18);
  border-radius: 9px;
  background: rgba(8, 18, 33, .5);
}
.account-password-note strong {
  display: block;
  margin-bottom: 8px;
  color: #eaf2ff;
}
.account-password-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.account-admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 16px;
  align-items: start;
}
.account-table-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.account-table-head .panel-title {
  margin-bottom: 5px;
}
.account-table-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.account-table-wrap {
  overflow-x: auto;
}
.account-user-list {
  display: grid;
  gap: 10px;
}
.account-user-row {
  display: grid;
  grid-template-columns: minmax(130px, .9fr) 82px minmax(180px, 1.1fr) 118px;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 9px;
  background: rgba(8, 18, 33, .46);
}
.account-user-main {
  min-width: 0;
}
.account-user-id {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}
.account-user-main strong {
  display: block;
  overflow-wrap: anywhere;
  color: #eaf2ff;
}
.account-user-main em {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}
.account-user-role {
  display: grid;
  gap: 8px;
  justify-items: start;
  color: #dbeafe;
  font-weight: 800;
  font-size: 13px;
}
.account-table th,
.account-table td {
  padding: 12px 9px;
  vertical-align: middle;
}
.account-table td strong {
  color: #eaf2ff;
}
.responsibility-field {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 10px;
  padding: 12px;
  margin: 0;
}
.responsibility-field legend {
  padding: 0 6px;
  color: #e5eefb;
  font-size: 13px;
  font-weight: 800;
}
.responsibility-field p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.responsibility-groups {
  display: grid;
  gap: 10px;
}
.responsibility-groups.compact {
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}
.responsibility-groups.inline {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  align-items: start;
  min-width: 700px;
}
.responsibility-group {
  padding: 10px;
  border: 1px solid rgba(59, 130, 246, .16);
  border-radius: 8px;
  background: rgba(8, 18, 33, .55);
}
.responsibility-group-title {
  margin-bottom: 8px;
  color: #bfe4ff;
  font-size: 12px;
  font-weight: 900;
}
.responsibility-option {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: flex-start;
  padding: 7px 6px;
  border-radius: 7px;
  color: #dbeafe;
  cursor: pointer;
}
.responsibility-option:hover {
  background: rgba(37, 99, 235, .12);
}
.responsibility-option input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  accent-color: #2563eb;
}
.responsibility-option strong {
  display: block;
  color: #eef6ff;
  font-size: 13px;
}
.responsibility-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.account-responsibility-cell {
  min-width: 0;
}
.responsibility-summary {
  color: #f8fafc;
  font-weight: 800;
  margin-bottom: 7px;
}
.responsibility-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.responsibility-chip-list span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .16);
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 800;
}
.responsibility-editor {
  position: relative;
}
.responsibility-editor summary,
.password-reset-editor summary {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 7px;
  color: #dbeafe;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
  background: rgba(15, 23, 42, .78);
}
.responsibility-editor summary::-webkit-details-marker,
.password-reset-editor summary::-webkit-details-marker {
  display: none;
}
.responsibility-editor[open] summary,
.password-reset-editor[open] summary {
  border-color: rgba(37, 99, 235, .55);
}
.password-reset-editor {
  position: relative;
}
.password-reset-editor form {
  position: absolute;
  z-index: 21;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  gap: 10px;
  width: 280px;
  padding: 12px;
  border: 1px solid rgba(96, 165, 250, .28);
  border-radius: 10px;
  background: #0b1424;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .36);
}
.responsibility-editor form {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 8px);
  width: min(760px, calc(100vw - 340px));
  padding: 12px;
  border: 1px solid rgba(96, 165, 250, .28);
  border-radius: 10px;
  background: #0b1424;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .36);
}
.responsibility-editor form button {
  margin-top: 10px;
}
.account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 118px;
}
.account-actions button,
.account-actions summary {
  white-space: nowrap;
}
.inline-form {
  display: inline;
}
.muted-text {
  color: var(--muted);
  font-size: 12px;
}
.outline-danger {
  color: #fecdd3;
  border: 1px solid rgba(251, 113, 133, .32);
  background: rgba(225, 29, 72, .10);
  box-shadow: none;
}
.outline-danger:hover {
  background: rgba(225, 29, 72, .18);
}
.dispatch-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.dispatch-hero h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 30px;
  line-height: 1.2;
}
.dispatch-hero p {
  max-width: 760px;
  margin: 0;
  color: #9fb0c5;
  line-height: 1.7;
}
.dispatch-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.dispatch-search-panel {
  border-radius: 10px;
}
.dispatch-search-form {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.dispatch-search-form label {
  margin-bottom: 0;
}
.dispatch-search-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dispatch-search-actions button,
.dispatch-search-actions .ghost-button {
  min-height: 42px;
  white-space: nowrap;
}
.dispatch-filter-note {
  margin: 12px 0 0;
  color: #93c5fd;
  font-size: 13px;
}
.dispatch-stat {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(147, 197, 253, .16);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(20, 30, 46, .94), rgba(11, 18, 30, .94));
  box-shadow: var(--shadow);
}
.dispatch-stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.dispatch-stat strong {
  display: block;
  color: #fff;
  font-size: 26px;
  line-height: 1.15;
}
.dispatch-panel {
  border-radius: 10px;
}
.dispatch-table-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.dispatch-table-head .panel-title {
  margin-bottom: 5px;
}
.dispatch-table-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.dispatch-table-wrap {
  overflow-x: auto;
}
.dispatch-table th,
.dispatch-table td {
  padding: 13px 10px;
  vertical-align: middle;
}
.dispatch-title {
  display: block;
  color: #eef5ff;
  margin-bottom: 5px;
}
.dispatch-summary {
  display: block;
  max-width: 520px;
  color: #8fa3bb;
  font-size: 12px;
  line-height: 1.55;
}
.dispatch-group-name {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.empty-cell {
  padding: 34px 12px !important;
  color: var(--muted);
  text-align: center;
}
.ops-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.ops-stats div {
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(15, 23, 42, .76);
}
.ops-stats span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
}
.ops-stats strong {
  display: block;
  margin-top: 8px;
  color: #f8fbff;
  font-size: 26px;
}
.channel-config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 14px;
}
.channel-config-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
}
.channel-config-card.disabled {
  border-color: rgba(251, 113, 133, .26);
}
.channel-config-card.warning {
  border-color: rgba(251, 191, 36, .24);
}
.channel-config-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(147, 197, 253, .12);
}
.channel-config-head h2 {
  margin: 0 0 7px;
  color: #f8fbff;
  font-size: 20px;
}
.channel-config-head p {
  max-width: 520px;
  line-height: 1.55;
  font-size: 13px;
}
.channel-state {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.channel-state.enabled { color: #34d399; background: rgba(52, 211, 153, .12); }
.channel-state.disabled { color: #fb7185; background: rgba(251, 113, 133, .13); }
.channel-state.warning { color: #fbbf24; background: rgba(251, 191, 36, .12); }
.channel-config-body {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}
.channel-config-body div {
  padding: 12px;
  border: 1px solid rgba(147, 197, 253, .12);
  border-radius: 8px;
  background: rgba(7, 13, 24, .46);
}
.channel-config-body span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
}
.channel-config-body strong {
  display: block;
  margin-top: 6px;
  color: #f8fbff;
  line-height: 1.45;
  word-break: break-word;
}
.channel-config-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.channel-config-actions button:disabled {
  cursor: not-allowed;
  opacity: .48;
}
.audit-filter-panel {
  margin-bottom: 14px;
}
.audit-filters {
  grid-template-columns: minmax(150px, .8fr) minmax(160px, .8fr) minmax(180px, 1fr) minmax(280px, 1.6fr) auto;
}
.audit-log-list {
  display: grid;
  gap: 12px;
}
.audit-flow-card {
  display: grid;
  gap: 14px;
  margin-bottom: 0;
  border-left: 4px solid rgba(56, 189, 248, .38);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(18, 31, 49, .93)),
    var(--panel);
}
.audit-flow-card.success { border-left-color: var(--good); }
.audit-flow-card.failed { border-left-color: var(--bad); }
.audit-flow-card.running { border-left-color: #60a5fa; }
.audit-flow-card.approved { border-left-color: #38bdf8; }
.audit-flow-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 132px;
  gap: 18px;
  align-items: center;
}
.audit-flow-time strong,
.audit-flow-time span {
  display: block;
}
.audit-flow-time strong {
  color: #f8fbff;
  font-size: 13px;
}
.audit-flow-time span {
  margin-top: 6px;
  color: #8ba0b9;
  font-size: 12px;
}
.audit-flow-main {
  min-width: 0;
}
.audit-flow-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}
.audit-flow-title strong {
  min-width: 180px;
  flex: 1;
  overflow: hidden;
  color: #f8fbff;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audit-flow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  color: #a8b7ca;
  font-size: 12px;
}
.audit-flow-result {
  display: grid;
  justify-items: end;
  gap: 8px;
}
.audit-flow-result .small-link {
  margin-left: 0;
}
.audit-error {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(251, 113, 133, .24);
  border-radius: 8px;
  color: #fecdd3;
  background: rgba(251, 113, 133, .08);
}
.audit-channel-chip,
.audit-event-pill,
.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(147, 197, 253, .22);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(59, 130, 246, .11);
  white-space: nowrap;
}
.audit-channel-chip {
  min-width: 104px;
  justify-content: center;
  border-width: 1px;
  font-weight: 800;
  letter-spacing: 0;
}
.audit-channel-chip.miniapp {
  border-color: rgba(52, 211, 153, .38);
  color: #bbf7d0;
  background: rgba(16, 185, 129, .17);
}
.audit-channel-chip.moments {
  border-color: rgba(96, 165, 250, .44);
  color: #bfdbfe;
  background: rgba(37, 99, 235, .2);
}
.audit-channel-chip.group {
  border-color: rgba(196, 181, 253, .4);
  color: #ddd6fe;
  background: rgba(124, 58, 237, .18);
}
.audit-channel-chip.system {
  border-color: rgba(148, 163, 184, .28);
  color: #cbd5e1;
  background: rgba(100, 116, 139, .16);
}
.audit-event-pill {
  min-width: 78px;
  justify-content: center;
  color: #c7d2fe;
  background: rgba(99, 102, 241, .14);
}
.audit-event-pill.success {
  color: #bbf7d0;
  background: rgba(22, 163, 74, .18);
}
.audit-event-pill.failed {
  color: #fecdd3;
  background: rgba(225, 29, 72, .18);
}
.audit-event-pill.running {
  color: #bfdbfe;
  background: rgba(37, 99, 235, .2);
}
.audit-event-pill.approved {
  color: #bae6fd;
  background: rgba(2, 132, 199, .18);
}
.audit-step-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.audit-step {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(120px, max-content);
  gap: 8px;
  align-items: start;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  color: #d7e3f4;
  background: rgba(15, 23, 42, .48);
}
.audit-step-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: #64748b;
  box-shadow: 0 0 0 4px rgba(100, 116, 139, .14);
}
.audit-step strong,
.audit-step span {
  display: block;
}
.audit-step strong {
  color: #eef6ff;
  font-size: 13px;
}
.audit-step span {
  margin-top: 4px;
  color: #8fa4bd;
  font-size: 11px;
}
.audit-step.created .audit-step-dot { background: #94a3b8; }
.audit-step.approved .audit-step-dot { background: #38bdf8; box-shadow: 0 0 0 4px rgba(56, 189, 248, .14); }
.audit-step.running .audit-step-dot { background: #60a5fa; box-shadow: 0 0 0 4px rgba(96, 165, 250, .14); }
.audit-step.success .audit-step-dot { background: var(--good); box-shadow: 0 0 0 4px rgba(52, 211, 153, .15); }
.audit-step.failed .audit-step-dot { background: var(--bad); box-shadow: 0 0 0 4px rgba(251, 113, 133, .15); }
.audit-step.channel .audit-step-dot { background: #a78bfa; box-shadow: 0 0 0 4px rgba(167, 139, 250, .14); }
.dispatch-detail-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 14px;
  align-items: start;
}
.readable-box {
  white-space: pre-wrap;
}
.dispatch-meta-list {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px 14px;
  margin: 0;
}
.dispatch-meta-list dt {
  color: var(--muted);
}
.dispatch-meta-list dd {
  margin: 0;
  color: #e5eefb;
}
.dispatch-note {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(251, 191, 36, .22);
  border-radius: 8px;
  color: #fde68a;
  background: rgba(251, 191, 36, .08);
  font-size: 13px;
}
.dispatch-flow {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dispatch-flow li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.dispatch-flow li:last-child {
  border-bottom: 0;
}
.dispatch-flow li > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  font-weight: 800;
  font-size: 12px;
}
.dispatch-flow li.failed > span {
  background: linear-gradient(135deg, #e11d48, #fb7185);
}
.dispatch-flow li.running > span {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}
.dispatch-flow strong {
  display: block;
  color: #eff6ff;
  margin-bottom: 5px;
}
.dispatch-flow p {
  margin: 0;
  color: #aebed2;
  line-height: 1.65;
}
.field-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}
.field-review-grid div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 8px;
  background: rgba(3, 8, 20, .34);
}
.field-review-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.field-review-grid strong {
  display: block;
  color: #eaf2ff;
  line-height: 1.5;
  font-weight: 700;
}
.generated-copy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}
.generated-copy-grid article {
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 10px;
  background: rgba(3, 8, 20, .34);
  overflow: hidden;
}
.generated-copy-grid h3 {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  color: #bfdbfe;
  font-size: 14px;
}
.generated-copy-grid pre {
  min-height: 220px;
  max-height: 360px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  white-space: pre-wrap;
  color: #e5eefb;
  line-height: 1.65;
}
.architecture {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr auto 1.2fr auto 1.3fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.arch-node {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(20, 31, 49, .95), rgba(12, 20, 34, .95));
  color: #eff6ff;
}
.arch-node span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.arch-arrow {
  color: #7dd3fc;
}
.guide-hero-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid rgba(147, 197, 253, .16);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .18), rgba(20, 184, 166, .10)),
    rgba(15, 23, 42, .76);
  box-shadow: var(--shadow);
}
.guide-hero-panel h1 {
  margin: 0 0 8px;
  font-size: 32px;
}
.guide-hero-panel p {
  max-width: 820px;
  line-height: 1.7;
}
.guide-version {
  min-width: 180px;
  padding: 14px 16px;
  border: 1px solid rgba(45, 212, 191, .22);
  border-radius: 10px;
  background: rgba(2, 8, 18, .42);
}
.guide-version span,
.guide-version em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.guide-version strong {
  display: block;
  margin: 7px 0;
  color: #f8fbff;
  font-size: 22px;
}
.guide-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.guide-nav-panel {
  position: sticky;
  top: 18px;
  max-height: calc(100svh - 36px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(11, 18, 30, .92);
  box-shadow: var(--shadow);
}
.guide-search-label {
  margin-bottom: 10px;
}
.guide-search-label input {
  height: 42px;
  margin-top: 8px;
}
.guide-search-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: #8fa3bb;
  font-size: 12px;
}
.guide-toc {
  display: grid;
  gap: 14px;
}
.guide-toc-group strong {
  display: block;
  margin: 0 0 8px;
  color: #f8fbff;
  font-size: 13px;
}
.guide-toc-group a {
  display: block;
  margin-bottom: 4px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #aebbd0;
  text-decoration: none;
  font-size: 13px;
}
.guide-toc-group a:hover {
  color: #fff;
  border-color: rgba(147, 197, 253, .18);
  background: rgba(59, 130, 246, .12);
}
.guide-content {
  display: grid;
  gap: 16px;
}
.guide-empty {
  color: #fef3c7;
  border-color: rgba(251, 191, 36, .24);
  background: rgba(251, 191, 36, .08);
}
.guide-article {
  scroll-margin-top: 18px;
  border-radius: 10px;
}
.guide-article-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.guide-article-head span {
  display: block;
  margin-bottom: 7px;
  color: #22d3ee;
  font-size: 12px;
  font-weight: 800;
}
.guide-article h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 24px;
}
.guide-article h3 {
  margin: 0 0 10px;
  color: #dbeafe;
  font-size: 15px;
}
.guide-article p {
  line-height: 1.7;
}
.guide-copy-link {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(147, 197, 253, .18);
  border-radius: 8px;
  color: #bfdbfe;
  text-decoration: none;
  background: rgba(15, 23, 42, .58);
  font-size: 12px;
}
.guide-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.guide-keywords span {
  padding: 4px 8px;
  border: 1px solid rgba(45, 212, 191, .20);
  border-radius: 999px;
  color: #bff7ef;
  background: rgba(20, 184, 166, .10);
  font-size: 12px;
}
.guide-block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.guide-block-grid section,
.guide-notes,
.guide-example {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 10px;
  background: rgba(3, 8, 20, .36);
}
.guide-block-grid ul,
.guide-block-grid ol,
.guide-notes ul {
  margin: 0;
  padding-left: 20px;
}
.guide-block-grid li,
.guide-notes li {
  margin-bottom: 8px;
  color: #d7e0ee;
  line-height: 1.7;
}
.guide-example,
.guide-notes {
  margin-top: 14px;
}
.guide-example pre {
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(45, 212, 191, .16);
  border-radius: 8px;
  background: rgba(2, 8, 18, .74);
  color: #eaf2ff;
  line-height: 1.7;
}
.guide-doc-body {
  color-scheme: light;
  background: #fff;
  color: #1f2937;
}
.guide-doc-body .sidebar,
.guide-doc-body .topbar {
  display: none;
}
.guide-doc-body .main {
  margin-left: 0;
  min-height: 100vh;
  padding: 0;
  background: #fff;
}
.doc-site {
  min-height: 100vh;
  color: #1f2937;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}
.doc-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 24px;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.doc-brand,
.doc-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #4b5563;
  font-size: 14px;
}
.doc-brand a,
.doc-actions a {
  color: #374151;
  text-decoration: none;
}
.doc-brand strong {
  color: #111827;
  font-weight: 700;
}
.doc-brand span {
  width: 1px;
  height: 14px;
  background: #d1d5db;
}
.doc-layout {
  display: grid;
  grid-template-columns: 248px minmax(720px, 1000px) 240px;
  gap: 0;
}
.doc-sidebar {
  position: sticky;
  top: 36px;
  height: calc(100vh - 36px);
  overflow: auto;
  padding: 24px 24px 32px;
  border-right: 1px solid #e5e7eb;
  background: #fbfbfc;
}
.doc-search span {
  display: block;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 12px;
}
.doc-search input {
  height: 36px;
  border: 1px solid #d7dce3;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  padding: 0 12px;
}
.doc-search input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}
.doc-search-state {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 24px;
  color: #6b7280;
  font-size: 12px;
}
.doc-clear-button {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #d7dce3;
  border-radius: 6px;
  color: #374151;
  background: #f3f4f6;
  box-shadow: none;
  font-size: 12px;
}
.doc-menu section {
  margin-bottom: 22px;
}
.doc-menu h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 14px;
  line-height: 1.4;
}
.doc-menu a {
  display: block;
  margin: 0 0 2px;
  padding: 8px 10px;
  border-radius: 5px;
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}
.doc-menu a:hover {
  color: #111827;
  background: #edf0f3;
}
.doc-main {
  min-width: 0;
  padding: 44px 56px 80px;
}
.doc-breadcrumb {
  margin-bottom: 22px;
  color: #6b7280;
  font-size: 13px;
}
.doc-title-block {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 32px;
  margin-bottom: 42px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}
.doc-title-block h1 {
  margin: 0 0 16px;
  color: #030712;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.25;
}
.doc-title-block p {
  max-width: 760px;
  color: #374151;
  font-size: 15px;
  line-height: 1.85;
}
.doc-title-block dl {
  margin: 4px 0 0;
  padding-left: 18px;
  border-left: 3px solid #2563eb;
}
.doc-title-block dt {
  color: #6b7280;
  font-size: 12px;
}
.doc-title-block dd {
  margin: 4px 0 14px;
  color: #111827;
  font-size: 14px;
}
.doc-empty {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid #fde68a;
  border-radius: 6px;
  color: #92400e;
  background: #fffbeb;
}
.doc-article {
  margin-bottom: 54px;
  scroll-margin-top: 58px;
}
.doc-section-label {
  display: block;
  margin-bottom: 10px;
  color: #2563eb;
  font-size: 13px;
}
.doc-article h2 {
  margin: 0 0 12px;
  color: #030712;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.28;
}
.doc-summary {
  margin: 0 0 22px;
  color: #374151;
  font-size: 15px;
  line-height: 1.85;
}
.doc-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.doc-keywords span {
  padding: 3px 8px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 12px;
}
.doc-content-block {
  margin-top: 24px;
}
.doc-content-block h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
}
.doc-content-block ul,
.doc-content-block ol {
  margin: 0;
  padding-left: 24px;
}
.doc-content-block li {
  margin-bottom: 9px;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.85;
}
.doc-note-block {
  padding: 16px 18px;
  border-left: 4px solid #93c5fd;
  background: #f8fbff;
}
.doc-example {
  max-height: none;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #111827;
  background: #f9fafb;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 14px;
  line-height: 1.8;
}
.doc-outline {
  position: sticky;
  top: 36px;
  height: calc(100vh - 36px);
  overflow: auto;
  padding: 32px 24px;
  border-left: 1px solid #e5e7eb;
  background: #fff;
}
.doc-outline h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 14px;
}
.doc-outline strong {
  display: block;
  margin: 18px 0 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
}
.doc-outline a {
  display: block;
  margin-bottom: 9px;
  color: #374151;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}
.doc-outline a:hover {
  color: #1d4ed8;
}
@media (max-width: 900px) {
  .sidebar { position: static; width: auto; }
  .main { margin-left: 0; padding: 16px; }
  .topbar {
    position: static;
    justify-content: flex-end;
    margin-bottom: 12px;
  }
  .account-menu { align-items: flex-start; }
  .page-head { padding-right: 0; }
  .hero-head { transform: none; text-align: left; }
  .hero-head h1 { font-size: 30px; }
  .hero-head p { font-size: 15px; }
  .login-body { padding: 18px; }
  .login-shell { width: 100%; min-height: auto; grid-template-columns: 1fr; border-radius: 16px; }
  .login-panel { min-height: calc(100svh - 36px); padding: 32px 22px; border-right: 0; }
  .login-product { margin-bottom: 34px; }
  .login-card-head h1 { font-size: 30px; }
  .login-showcase { display: none; }
  .guide-hero-panel { display: block; }
  .guide-version { margin-top: 14px; }
  .guide-nav-panel { position: static; max-height: none; }
  .workspace, .metrics, .command-grid, .lower-grid, .architecture, .detail-grid, .edit-grid, .account-grid, .account-admin-grid, .account-password-form, .account-create-form, .dispatch-stats, .dispatch-search-form, .dispatch-detail-grid, .field-review-grid, .generated-copy-grid, .task-guide, .guide-steps, .guide-shell, .guide-block-grid, .task-stats, .task-group-card, .review-next, .review-summary-cards, .review-edit-grid, .readable-kv-grid, .raw-debug-grid, .task-audit-layout, .submission-overview, .submission-plan-grid, .submission-compact-grid, .submission-channel-grid, .submission-channel-plan, .moments-plan-inline-grid, .new-publish-plan-grid, .group-protocol-grid, .management-stats, .management-filters, .management-card, .management-field-grid, .ops-stats, .channel-config-grid, .audit-filters, .audit-log-card, .audit-flow-head, .battle-revenue-board, .battle-map-layout { grid-template-columns: 1fr; }
  .battle-hero { flex-direction: column; padding-right: 0; }
  .battle-fullscreen-button { width: 100%; }
  .battle-revenue-main,
  .battle-revenue-main.primary,
  .battle-revenue-main.secondary { min-height: auto; }
  .flip-amount { gap: 4px; }
  .flip-card { min-width: 34px; height: 54px; font-size: 32px; }
  .flip-symbol { min-width: 20px; font-size: 30px; }
  .battle-revenue-main.secondary .flip-card { min-width: 28px; height: 46px; font-size: 26px; }
  .battle-revenue-main.secondary .flip-symbol { font-size: 26px; }
  .battle-map-panel { min-height: auto; }
  .china-map-canvas { min-height: 360px; }
  .map-pulse strong { min-width: 70px; padding: 6px 8px; font-size: 12px; }
  .map-pulse.featured { transform: translate(-50%, -50%) scale(1.06); }
  .battle-section-head { flex-direction: column; }
  .battle-section-head p { text-align: left; }
  .battle-record-list article { grid-template-columns: 1fr; }
  .battle-record-list em { text-align: left; }
  .submission-plan-head, .submission-plan-actions { align-items: flex-start; flex-direction: column; }
  .moments-plan-inline-head { align-items: flex-start; flex-direction: column; }
  .group-protocol-check-head { flex-direction: column; }
  .task-section-head { flex-direction: column; }
  .task-group-next { padding-left: 0; border-left: 0; border-top: 1px solid rgba(147, 197, 253, .14); padding-top: 12px; }
  .submission-channel-foot { align-items: flex-start; flex-direction: column; }
  .management-hero { align-items: flex-start; flex-direction: column; padding-right: 0; }
  .management-actions { justify-content: flex-start; }
  .management-card-side { padding-left: 0; border-left: 0; border-top: 1px solid rgba(147, 197, 253, .14); padding-top: 12px; }
  .management-filter-actions { align-items: stretch; flex-direction: column; }
  .dispatch-search-actions { align-items: stretch; flex-direction: column; }
  .audit-flow-result { justify-items: start; }
  .audit-flow-title strong { min-width: 0; white-space: normal; }
  .audit-step-timeline { display: grid; grid-template-columns: 1fr; }
  .audit-step { grid-template-columns: 16px 1fr; }
  .dispatch-hero { align-items: flex-start; flex-direction: column; }
  .responsibility-groups.inline { grid-template-columns: 1fr; min-width: 0; }
  .account-user-row { grid-template-columns: 1fr; align-items: start; }
  .account-user-role { grid-template-columns: auto auto; justify-content: flex-start; }
  .responsibility-editor form,
  .password-reset-editor form {
    position: static;
    width: 100%;
    margin-top: 8px;
  }
  .account-actions { justify-content: flex-start; }
  .detail-head { display: block; }
  .detail-actions { justify-content: flex-start; margin-top: 12px; }
  .fields-editor, .form-grid { grid-template-columns: 1fr; }
  .overview-cards, .scope-grid { grid-template-columns: 1fr 1fr; }
  .arch-arrow { display: none; }
}

/* Documentation page: intentionally isolated from the dark operation console. */
.guide-doc-body {
  color-scheme: light;
  background: #fff;
  color: #111827;
}
.guide-doc-body .sidebar,
.guide-doc-body .topbar {
  display: none;
}
.guide-doc-body .main {
  margin-left: 0;
  padding: 0;
  min-height: 100svh;
  background: #fff;
}
.guide-doc-body .main::before {
  display: none;
}
.doc-site {
  min-height: 100svh;
  color: #111827;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}
.doc-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 24px;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.doc-brand,
.doc-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  color: #475569;
  font-size: 14px;
}
.doc-brand a,
.doc-actions a {
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
}
.doc-brand a:hover,
.doc-actions a:hover {
  color: #111827;
}
.doc-brand strong {
  color: #111827;
  font-weight: 700;
  white-space: nowrap;
}
.doc-brand span {
  width: 1px;
  height: 16px;
  background: #d1d5db;
}
.doc-layout {
  display: grid;
  grid-template-columns: 248px minmax(680px, 980px) 228px;
  justify-content: start;
  min-height: calc(100svh - 48px);
}
.doc-sidebar {
  position: sticky;
  top: 48px;
  height: calc(100svh - 48px);
  overflow: auto;
  padding: 24px 24px 32px;
  border-right: 1px solid #e5e7eb;
  background: #fbfbfc;
}
.doc-search {
  margin: 0;
}
.doc-search span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
}
.doc-search input {
  height: 36px;
  border: 1px solid #d7dce3;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  padding: 0 12px;
}
.doc-search input::placeholder {
  color: #94a3b8;
}
.doc-search input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}
.doc-search-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 24px;
  color: #64748b;
  font-size: 12px;
}
.doc-clear-button {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #d7dce3;
  border-radius: 6px;
  color: #334155;
  background: #f8fafc;
  box-shadow: none;
  font-size: 12px;
}
.doc-clear-button:hover {
  background: #eef2f7;
  filter: none;
}
.doc-menu section {
  margin-bottom: 22px;
}
.doc-menu h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 14px;
  line-height: 1.4;
}
.doc-menu a {
  display: block;
  margin: 0 0 2px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.36;
}
.doc-menu a:hover {
  color: #0f172a;
  background: #eef2f7;
}
.doc-main {
  min-width: 0;
  padding: 42px 56px 82px;
  background: #fff;
}
.doc-breadcrumb {
  margin-bottom: 22px;
  color: #64748b;
  font-size: 13px;
}
.doc-title-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 182px;
  gap: 32px;
  margin-bottom: 42px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}
.doc-title-block h1 {
  margin: 0 0 16px;
  color: #030712;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.25;
}
.doc-title-block p {
  max-width: 760px;
  color: #374151;
  font-size: 15px;
  line-height: 1.85;
}
.doc-title-block dl {
  margin: 4px 0 0;
  padding-left: 18px;
  border-left: 3px solid #2563eb;
}
.doc-title-block dt {
  color: #64748b;
  font-size: 12px;
}
.doc-title-block dd {
  margin: 4px 0 14px;
  color: #111827;
  font-size: 14px;
}
.doc-empty {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid #fde68a;
  border-radius: 6px;
  color: #92400e;
  background: #fffbeb;
}
.doc-article {
  margin-bottom: 54px;
  scroll-margin-top: 64px;
}
.doc-section-label {
  display: block;
  margin-bottom: 10px;
  color: #2563eb;
  font-size: 13px;
}
.doc-article h2 {
  margin: 0 0 12px;
  color: #030712;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.28;
}
.doc-summary {
  margin: 0 0 22px;
  color: #374151;
  font-size: 15px;
  line-height: 1.85;
}
.doc-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.doc-keywords span {
  padding: 3px 8px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 12px;
}
.doc-content-block {
  margin-top: 24px;
}
.doc-content-block h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
}
.doc-content-block ul,
.doc-content-block ol {
  margin: 0;
  padding-left: 24px;
}
.doc-content-block li {
  margin-bottom: 9px;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.85;
}
.doc-note-block {
  padding: 16px 18px;
  border-left: 4px solid #93c5fd;
  background: #f8fbff;
}
.doc-example {
  max-height: none;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #111827;
  background: #f9fafb;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 14px;
  line-height: 1.8;
}
.doc-outline {
  position: sticky;
  top: 48px;
  height: calc(100svh - 48px);
  overflow: auto;
  padding: 32px 24px;
  border-left: 1px solid #e5e7eb;
  background: #fff;
}
.doc-outline h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 14px;
}
.doc-outline strong {
  display: block;
  margin: 18px 0 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
}
.doc-outline a {
  display: block;
  margin-bottom: 9px;
  color: #374151;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}
.doc-outline a:hover {
  color: #1d4ed8;
}
@media (max-width: 1180px) {
  .doc-layout {
    grid-template-columns: 248px minmax(0, 1fr);
  }
  .doc-outline {
    display: none;
  }
}
@media (max-width: 820px) {
  .doc-topbar {
    height: auto;
    min-height: 48px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 18px;
  }
  .doc-brand,
  .doc-actions {
    flex-wrap: wrap;
    gap: 10px 14px;
  }
  .doc-layout {
    display: block;
  }
  .doc-sidebar {
    position: static;
    height: auto;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }
  .doc-main {
    padding: 30px 22px 56px;
  }
  .doc-title-block {
    display: block;
  }
  .doc-title-block h1 {
    font-size: 30px;
  }
  .doc-title-block dl {
    margin-top: 20px;
  }
  .doc-article h2 {
    font-size: 25px;
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-soft: #eef4fb;
  --panel: #ffffff;
  --panel-strong: #f8fbff;
  --text: #243044;
  --text-strong: #0f172a;
  --muted: #64748b;
  --muted-2: #8a97a8;
  --border: rgba(15, 23, 42, .10);
  --accent: #2563eb;
  --accent-2: #0891b2;
  --good: #059669;
  --warn: #b7791f;
  --bad: #e11d48;
  --shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

html[data-theme="light"] body {
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(37, 99, 235, .12), transparent 30%),
    radial-gradient(circle at 86% 0%, rgba(34, 211, 238, .10), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #f1f5f9 52%, #edf3f8 100%);
  overflow-x: hidden;
}

html[data-theme="light"] h1,
html[data-theme="light"] .panel-title,
html[data-theme="light"] .management-hero h1,
html[data-theme="light"] .hero-head h1,
html[data-theme="light"] .detail-head h1,
html[data-theme="light"] .submission-head h1 {
  color: var(--text-strong);
  text-shadow: none;
}

html[data-theme="light"] p,
html[data-theme="light"] .management-hero p,
html[data-theme="light"] .hero-head p,
html[data-theme="light"] .detail-head p,
html[data-theme="light"] .guide-main p,
html[data-theme="light"] .task-section-head p,
html[data-theme="light"] .dispatch-table-head p {
  color: var(--muted);
}

html[data-theme="light"] .panel,
html[data-theme="light"] .metric,
html[data-theme="light"] .management-stats article,
html[data-theme="light"] .dispatch-stat,
html[data-theme="light"] .ops-stats div,
html[data-theme="light"] .overview-cards div,
html[data-theme="light"] .scope-card,
html[data-theme="light"] .task-stats div,
html[data-theme="light"] .task-group-card,
html[data-theme="light"] .management-card,
html[data-theme="light"] .review-summary-cards div,
html[data-theme="light"] .readable-kv-grid div,
html[data-theme="light"] .guide-steps div,
html[data-theme="light"] .new-publish-plan-grid div,
html[data-theme="light"] .channel-config-body div,
html[data-theme="light"] .audit-flow-card,
html[data-theme="light"] .audit-step,
html[data-theme="light"] .upload-card,
html[data-theme="light"] .content-box,
html[data-theme="light"] .form-alert,
html[data-theme="light"] .battle-muted {
  border-color: var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

html[data-theme="light"] .panel,
html[data-theme="light"] .management-card,
html[data-theme="light"] .task-group-card {
  box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
}

html[data-theme="light"] .management-field-grid div,
html[data-theme="light"] .review-summary-cards div,
html[data-theme="light"] .readable-kv-grid div,
html[data-theme="light"] .new-publish-plan-grid div,
html[data-theme="light"] .channel-config-body div,
html[data-theme="light"] .theme-preview-card div {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, .08);
}

html[data-theme="light"] textarea,
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] .console-input,
html[data-theme="light"] .json-editor {
  background: #ffffff;
  border-color: rgba(15, 23, 42, .14);
  color: var(--text-strong);
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, .02);
}

html[data-theme="light"] textarea::placeholder,
html[data-theme="light"] input::placeholder {
  color: #94a3b8;
}

html[data-theme="light"] label,
html[data-theme="light"] th,
html[data-theme="light"] .task-group-meta,
html[data-theme="light"] .management-summary,
html[data-theme="light"] .dispatch-summary,
html[data-theme="light"] .audit-flow-meta,
html[data-theme="light"] .audit-flow-time span,
html[data-theme="light"] .status-help,
html[data-theme="light"] .upload-card span,
html[data-theme="light"] .notice {
  color: var(--muted);
}

html[data-theme="light"] td,
html[data-theme="light"] table,
html[data-theme="light"] .detail-list dd,
html[data-theme="light"] .content-box,
html[data-theme="light"] .task-group-next strong,
html[data-theme="light"] .management-card-side strong {
  color: var(--text);
}

html[data-theme="light"] .metric strong,
html[data-theme="light"] .task-stats strong,
html[data-theme="light"] .management-stats strong,
html[data-theme="light"] .dispatch-stat strong,
html[data-theme="light"] .ops-stats strong,
html[data-theme="light"] .overview-cards strong,
html[data-theme="light"] .task-group-title strong,
html[data-theme="light"] .management-card-title strong,
html[data-theme="light"] .management-field-grid strong,
html[data-theme="light"] .dispatch-title,
html[data-theme="light"] .audit-flow-title strong,
html[data-theme="light"] .review-next strong,
html[data-theme="light"] .guide-main strong,
html[data-theme="light"] .guide-steps span,
html[data-theme="light"] .channel-config-head h2,
html[data-theme="light"] .channel-config-body strong,
html[data-theme="light"] .scope-card strong {
  color: var(--text-strong);
}

html[data-theme="light"] .ghost-button,
html[data-theme="light"] .account-chip,
html[data-theme="light"] .logout-button,
html[data-theme="light"] button.secondary {
  color: var(--text-strong);
  border-color: rgba(15, 23, 42, .12);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

html[data-theme="light"] .account-chip span {
  color: #ffffff;
}

html[data-theme="light"] .publish-entry-option span,
html[data-theme="light"] .theme-option span {
  border-color: rgba(15, 23, 42, .10);
  background: #ffffff;
}

html[data-theme="light"] .publish-entry-option strong,
html[data-theme="light"] .theme-option strong {
  color: var(--text-strong);
}

html[data-theme="light"] .publish-entry-option small,
html[data-theme="light"] .theme-option small {
  color: var(--muted);
}

html[data-theme="light"] .publish-entry-option input:checked + span,
html[data-theme="light"] .theme-option input:checked + span {
  border-color: rgba(37, 99, 235, .52);
  background: linear-gradient(135deg, rgba(37, 99, 235, .10), rgba(8, 145, 178, .06));
  box-shadow: 0 12px 26px rgba(37, 99, 235, .10);
}

html[data-theme="light"] .channel-chip,
html[data-theme="light"] .category-pill,
html[data-theme="light"] .audit-channel-chip,
html[data-theme="light"] .audit-event-pill,
html[data-theme="light"] .status,
html[data-theme="light"] .badge {
  border-color: rgba(15, 23, 42, .10);
}

html[data-theme="light"] .channel-chip {
  background: #f8fafc;
  color: #334155;
}

html[data-theme="light"] .category-pill {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #93c5fd;
  font-weight: 800;
}

html[data-theme="light"] .audit-channel-chip {
  color: #1e40af;
  background: #eff6ff;
  border-color: #bfdbfe;
}

html[data-theme="light"] .audit-event-pill {
  color: #3730a3;
  background: #eef2ff;
  border-color: #c7d2fe;
}

html[data-theme="light"] .channel-chip.pending_review,
html[data-theme="light"] .status.pending_review {
  color: #a16207;
  background: #fef3c7;
}

html[data-theme="light"] .channel-chip.success,
html[data-theme="light"] .status.success {
  color: #047857;
  background: #d1fae5;
}

html[data-theme="light"] .channel-chip.failed,
html[data-theme="light"] .status.failed {
  color: #be123c;
  background: #ffe4e6;
}

html[data-theme="light"] .channel-chip.approved,
html[data-theme="light"] .channel-chip.scheduled,
html[data-theme="light"] .channel-chip.running,
html[data-theme="light"] .status.running,
html[data-theme="light"] .status.approved,
html[data-theme="light"] .status.scheduled {
  color: #1d4ed8;
  background: #dbeafe;
}

html[data-theme="light"] .task-group-next,
html[data-theme="light"] .management-card-side {
  border-left-color: rgba(15, 23, 42, .10);
}

html[data-theme="light"] .flow-log,
html[data-theme="light"] pre,
html[data-theme="light"] .readable-copy,
html[data-theme="light"] .generated-copy-box {
  background: #f8fafc;
  color: var(--text);
  border-color: rgba(15, 23, 42, .10);
}

html[data-theme="light"] .review-next,
html[data-theme="light"] .task-guide {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(14, 165, 233, .04)),
    #ffffff;
}

html[data-theme="light"] .scope-card:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, .36);
}

html[data-theme="light"] .scope-card.green span { color: #047857; background: #d1fae5; }
html[data-theme="light"] .scope-card.cyan span { color: #0e7490; background: #cffafe; }
html[data-theme="light"] .scope-card.violet span { color: #6d28d9; background: #ede9fe; }
html[data-theme="light"] .scope-card.amber span { color: #a16207; background: #fef3c7; }
html[data-theme="light"] .scope-card.pink span { color: #be185d; background: #fce7f3; }

.settings-layout {
  display: grid;
  grid-template-columns: minmax(460px, .9fr) minmax(520px, 1.1fr);
  gap: 16px;
  align-items: start;
}

.settings-card,
.settings-preview-card {
  min-height: 360px;
}

.settings-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.settings-card-head p {
  max-width: 560px;
  line-height: 1.6;
}

.settings-state-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(34, 211, 238, .24);
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(34, 211, 238, .10);
  font-size: 12px;
  font-weight: 800;
}

.theme-options {
  display: grid;
  gap: 12px;
}

.theme-option {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.theme-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-option span {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid rgba(147, 197, 253, .16);
  border-radius: 8px;
  background: rgba(5, 12, 24, .46);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.theme-option strong {
  color: #f8fbff;
  font-size: 18px;
}

.theme-option small {
  color: #8fa3bb;
  font-size: 13px;
  line-height: 1.55;
}

.theme-option input:checked + span {
  border-color: rgba(34, 211, 238, .72);
  background: linear-gradient(135deg, rgba(37, 99, 235, .20), rgba(8, 145, 178, .14));
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .16), 0 12px 26px rgba(8, 145, 178, .12);
}

.theme-option input:checked + span::after {
  content: "当前使用";
  position: absolute;
  top: 14px;
  right: 16px;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
}

.settings-note {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(34, 211, 238, .16);
  border-radius: 8px;
  background: rgba(34, 211, 238, .06);
}

.settings-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-2);
}

.settings-note p {
  line-height: 1.65;
}

.theme-preview-shell {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f4f7fb;
}

.theme-preview-shell aside {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px 12px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #09111f, #0d1726);
}

.theme-preview-shell aside b {
  margin-bottom: 12px;
  color: #fff;
}

.theme-preview-shell aside span {
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 12px;
}

.theme-preview-shell aside .active {
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.theme-preview-shell main {
  padding: 16px;
}

.theme-preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  color: #0f172a;
}

.theme-preview-toolbar span {
  font-weight: 900;
}

.theme-preview-toolbar em {
  padding: 4px 8px;
  border-radius: 999px;
  color: #a16207;
  background: #fef3c7;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.theme-preview-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 8px;
  background: #fff;
  color: #243044;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.theme-preview-card > strong {
  color: #0f172a;
  font-size: 18px;
}

.theme-preview-card div {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
}

.theme-preview-card span {
  color: #64748b;
  font-size: 12px;
}

.theme-preview-card b {
  color: #0f172a;
}

.theme-preview-card p {
  line-height: 1.6;
}

html[data-theme="light"] .settings-state-badge {
  color: #0369a1;
  border-color: rgba(14, 165, 233, .24);
  background: #e0f2fe;
}

html[data-theme="light"] .settings-note {
  border-color: rgba(14, 165, 233, .20);
  background: #f0f9ff;
}

@media (max-width: 980px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-card-head {
    flex-direction: column;
  }
  .theme-preview-shell {
    grid-template-columns: 1fr;
  }
  .theme-preview-shell aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Light theme polish pass: keep the sidebar dark, make the work area readable. */
html[data-theme="light"] .sidebar {
  border-right-color: rgba(15, 23, 42, .18);
  background: linear-gradient(180deg, #07111f 0%, #0b1626 52%, #08101c 100%);
  box-shadow: 14px 0 34px rgba(15, 23, 42, .16);
}

html[data-theme="light"] .brand {
  color: #f8fafc;
  text-shadow: 0 1px 16px rgba(37, 99, 235, .18);
}

html[data-theme="light"] nav a {
  color: #cbd5e1;
}

html[data-theme="light"] nav a:hover {
  color: #ffffff;
  background: rgba(37, 99, 235, .18);
}

html[data-theme="light"] nav a.active {
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  box-shadow: 0 12px 26px rgba(37, 99, 235, .28);
}

html[data-theme="light"] .nav-submenu {
  border-left-color: rgba(148, 163, 184, .22);
}

html[data-theme="light"] .nav-submenu a {
  color: #94a3b8;
  background: transparent;
}

html[data-theme="light"] .nav-submenu a.active {
  color: #ffffff;
  background: rgba(37, 99, 235, .42);
}

html[data-theme="light"] .notice-item,
html[data-theme="light"] .automation-toolbar,
html[data-theme="light"] .automation-note,
html[data-theme="light"] .public-plan-card,
html[data-theme="light"] .public-info-card,
html[data-theme="light"] .public-review-card,
html[data-theme="light"] .account-user-row,
html[data-theme="light"] .responsibility-field,
html[data-theme="light"] .responsibility-group {
  border-color: #dbe5f0;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

html[data-theme="light"] .notice-item:hover,
html[data-theme="light"] .public-info-card:hover,
html[data-theme="light"] .public-review-card:hover,
html[data-theme="light"] .account-user-row:hover {
  border-color: #bfdbfe;
  background: #ffffff;
}

html[data-theme="light"] .notice-item strong,
html[data-theme="light"] .automation-toolbar strong,
html[data-theme="light"] .public-plan-card strong,
html[data-theme="light"] .public-info-card header strong,
html[data-theme="light"] .public-review-card h2,
html[data-theme="light"] .public-channel-review strong,
html[data-theme="light"] .video-skill-card strong,
html[data-theme="light"] .account-hero h1,
html[data-theme="light"] .profile-name,
html[data-theme="light"] .account-user-main strong,
html[data-theme="light"] .account-user-role,
html[data-theme="light"] .responsibility-summary,
html[data-theme="light"] .responsibility-option strong,
html[data-theme="light"] .responsibility-field legend,
html[data-theme="light"] .profile-list dd,
html[data-theme="light"] .account-table td strong {
  color: #0f172a;
}

html[data-theme="light"] .notice-item small,
html[data-theme="light"] .automation-toolbar span,
html[data-theme="light"] .automation-note p,
html[data-theme="light"] .public-plan-card p,
html[data-theme="light"] .public-plan-card small,
html[data-theme="light"] .public-info-card header small,
html[data-theme="light"] .public-review-card header p,
html[data-theme="light"] .public-review-card footer span,
html[data-theme="light"] .video-skill-card small,
html[data-theme="light"] .account-hero p,
html[data-theme="light"] .account-card-note,
html[data-theme="light"] .account-table-head p,
html[data-theme="light"] .account-user-main em,
html[data-theme="light"] .responsibility-option small,
html[data-theme="light"] .responsibility-field p,
html[data-theme="light"] .profile-subtitle,
html[data-theme="light"] .profile-list dt,
html[data-theme="light"] .account-password-note p {
  color: #64748b;
}

html[data-theme="light"] .notice-item.warning strong { color: #a16207; }
html[data-theme="light"] .notice-item.danger strong { color: #be123c; }
html[data-theme="light"] .notice-item.success strong { color: #047857; }
html[data-theme="light"] .notice-item.info strong { color: #1d4ed8; }

html[data-theme="light"] .flow-log {
  border-color: #dbe5f0;
  background: #f8fafc;
  color: #243044;
}

html[data-theme="light"] .flow-steps a {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

html[data-theme="light"] .flow-steps a.active,
html[data-theme="light"] .flow-steps a.done {
  color: #ffffff;
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

html[data-theme="light"] .audit-flow-card {
  border-color: #dbe5f0;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

html[data-theme="light"] .audit-flow-time strong,
html[data-theme="light"] .audit-flow-title strong,
html[data-theme="light"] .audit-step strong {
  color: #0f172a;
}

html[data-theme="light"] .audit-flow-meta,
html[data-theme="light"] .audit-flow-time span,
html[data-theme="light"] .audit-step span {
  color: #64748b;
}

html[data-theme="light"] .audit-step {
  color: #243044;
  border-color: #dbe5f0;
  background: #f8fafc;
  box-shadow: none;
}

html[data-theme="light"] .audit-step-dot {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .10);
}

html[data-theme="light"] .public-plan-runtime,
html[data-theme="light"] .public-info-copy div,
html[data-theme="light"] .poster-prompt,
html[data-theme="light"] .public-info-media figure,
html[data-theme="light"] .public-info-format article,
html[data-theme="light"] .public-review-copy div,
html[data-theme="light"] .public-channel-review div,
html[data-theme="light"] .public-poster-strip a,
html[data-theme="light"] .public-upload-strip a,
html[data-theme="light"] .video-skill-card,
html[data-theme="light"] .empty-material,
html[data-theme="light"] .account-password-note,
html[data-theme="light"] .responsibility-editor form,
html[data-theme="light"] .password-reset-editor form {
  color: #243044;
  border-color: #dbe5f0;
  background: #f8fafc;
  box-shadow: none;
}

html[data-theme="light"] .public-info-copy span,
html[data-theme="light"] .poster-prompt span,
html[data-theme="light"] .public-review-preview > strong,
html[data-theme="light"] .public-review-copy span,
html[data-theme="light"] .video-skill-card span,
html[data-theme="light"] .automation-note strong {
  color: #0e7490;
}

html[data-theme="light"] .public-info-copy p,
html[data-theme="light"] .poster-prompt p,
html[data-theme="light"] .public-review-copy p,
html[data-theme="light"] .empty-material {
  color: #334155;
}

html[data-theme="light"] .public-plan-card span {
  color: #0e7490;
}

html[data-theme="light"] .public-plan-runtime strong {
  color: #1d4ed8;
}

html[data-theme="light"] .public-plan-runtime small {
  color: #64748b;
}

html[data-theme="light"] .public-plan-runtime.done {
  border-color: #86efac;
  background: #ecfdf5;
}

html[data-theme="light"] .public-plan-runtime.done strong {
  color: #047857;
}

html[data-theme="light"] .public-plan-runtime.waiting {
  border-color: #bfdbfe;
  background: #eff6ff;
}

html[data-theme="light"] .public-review-card {
  background: #ffffff;
}

html[data-theme="light"] .public-poster-strip img,
html[data-theme="light"] .public-upload-strip img {
  background: #e2e8f0;
}

html[data-theme="light"] .video-skill-card em,
html[data-theme="light"] .public-info-card header em {
  color: #a16207;
  background: #fef3c7;
}

html[data-theme="light"] .public-review-card footer {
  border-top-color: #e2e8f0;
}

html[data-theme="light"] .account-user-id,
html[data-theme="light"] .muted-text {
  color: #64748b;
}

html[data-theme="light"] .responsibility-chip-list span {
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
}

html[data-theme="light"] .responsibility-option {
  color: #243044;
}

html[data-theme="light"] .responsibility-option:hover {
  background: #eff6ff;
}

html[data-theme="light"] .responsibility-editor summary,
html[data-theme="light"] .password-reset-editor summary {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

html[data-theme="light"] .outline-danger {
  color: #be123c;
  border-color: #fecdd3;
  background: #fff1f2;
}

html[data-theme="light"] .upload-card {
  border-color: #dbe5f0;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

html[data-theme="light"] .upload-card strong {
  color: #0f172a;
  font-weight: 900;
}

html[data-theme="light"] .upload-card span {
  color: #475569;
}

html[data-theme="light"] .upload-button {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0284c7);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
}

html[data-theme="light"] .upload-button:hover {
  background: linear-gradient(135deg, #1d4ed8, #0369a1);
}

html[data-theme="light"] .upload-preview-item {
  border-color: #dbe5f0;
  background: #f8fafc;
}

html[data-theme="light"] .upload-preview-item strong {
  color: #0f172a;
}

html[data-theme="light"] .upload-preview-item small {
  color: #64748b;
}

html[data-theme="light"] .upload-preview-item button {
  color: #334155;
  background: #e2e8f0;
}

/* New publish page: stronger light-mode hierarchy for data entry. */
html[data-theme="light"] .workspace {
  grid-template-columns: minmax(420px, 460px) minmax(560px, 1fr);
  gap: 18px;
}

html[data-theme="light"] .workspace > .panel {
  border-color: #d8e2ee;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}

html[data-theme="light"] .workspace .panel-title {
  margin-bottom: 14px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

html[data-theme="light"] .raw-input {
  min-height: 360px;
  padding: 14px 15px;
  border-color: #cbd5e1;
  background: #fbfdff;
  color: #111827;
  font-size: 15px;
  line-height: 1.66;
}

html[data-theme="light"] textarea::placeholder,
html[data-theme="light"] input::placeholder {
  color: #64748b;
  opacity: .88;
}

html[data-theme="light"] .publish-entry-switch {
  gap: 12px;
  margin-bottom: 14px;
}

html[data-theme="light"] .publish-entry-option span {
  min-height: 86px;
  padding: 14px 15px;
  border-color: #d6e0ec;
  background: #fbfdff;
}

html[data-theme="light"] .publish-entry-option strong {
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

html[data-theme="light"] .publish-entry-option small {
  color: #52657c;
  font-size: 12px;
  line-height: 1.5;
}

html[data-theme="light"] .publish-entry-option input:checked + span {
  border-color: #2563eb;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(8, 145, 178, .06)),
    #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .12), 0 12px 26px rgba(37, 99, 235, .12);
}

html[data-theme="light"] .publish-entry-option input:checked + span::after {
  top: 10px;
  right: 10px;
  padding: 2px 7px;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
}

html[data-theme="light"] .upload-zone {
  gap: 12px;
  margin: 16px 0 14px;
}

html[data-theme="light"] .upload-card {
  min-height: 148px;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border-color: #d7e2ef;
  background: #ffffff;
}

html[data-theme="light"] .upload-card strong {
  font-size: 15px;
  letter-spacing: 0;
}

html[data-theme="light"] .upload-card span {
  color: #475569;
  font-size: 12px;
  line-height: 1.55;
}

html[data-theme="light"] .upload-button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
}

html[data-theme="light"] .actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 2px;
}

html[data-theme="light"] .actions button {
  min-height: 40px;
  padding-inline: 16px;
  font-weight: 900;
}

html[data-theme="light"] button.secondary {
  border: 1px solid #cbd5e1;
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

html[data-theme="light"] button.secondary:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

html[data-theme="light"] button:disabled,
html[data-theme="light"] button.secondary:disabled {
  opacity: 1;
  color: #94a3b8;
  border-color: #e2e8f0;
  background: #eef2f7;
  box-shadow: none;
}

html[data-theme="light"] .notice {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid #3b82f6;
  border-radius: 8px;
  color: #52657c;
  background: #f8fafc;
  line-height: 1.55;
}

html[data-theme="light"] .workspace .form-grid label,
html[data-theme="light"] .workspace label.block {
  color: #52657c;
  font-weight: 700;
}

html[data-theme="light"] .workspace textarea,
html[data-theme="light"] .workspace input,
html[data-theme="light"] .workspace select {
  border-color: #cbd5e1;
  background: #fbfdff;
}

/* Detail pages: publish batch and single-channel review in light mode. */
html[data-theme="light"] .detail-head {
  align-items: center;
  margin-bottom: 18px;
}

html[data-theme="light"] .detail-head .guide-kicker {
  color: #0284c7;
}

html[data-theme="light"] .detail-actions {
  gap: 10px;
}

html[data-theme="light"] .review-next.review-next-compact {
  border-color: #cbdff5;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(14, 165, 233, .05)),
    #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}

html[data-theme="light"] .review-next.failed {
  border-color: #fecdd3;
  background:
    linear-gradient(135deg, rgba(244, 63, 94, .08), rgba(14, 165, 233, .03)),
    #ffffff;
}

html[data-theme="light"] .review-next.success {
  border-color: #bbf7d0;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, .08), rgba(14, 165, 233, .03)),
    #ffffff;
}

html[data-theme="light"] .review-summary-cards div,
html[data-theme="light"] .submission-plan-grid > div,
html[data-theme="light"] .submission-compact-grid > div,
html[data-theme="light"] .submission-plan-select,
html[data-theme="light"] .field-review-grid.compact article,
html[data-theme="light"] .moments-plan-inline-grid > div,
html[data-theme="light"] .moments-plan-select-card,
html[data-theme="light"] .group-protocol-grid div,
html[data-theme="light"] .readable-kv-grid div {
  border-color: #dbe5f0;
  background: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

html[data-theme="light"] .review-summary-cards span,
html[data-theme="light"] .readable-kv-grid span,
html[data-theme="light"] .field-review-grid.compact span,
html[data-theme="light"] .submission-plan-grid span,
html[data-theme="light"] .submission-compact-grid span,
html[data-theme="light"] .moments-plan-inline-grid span,
html[data-theme="light"] .moments-plan-select-card span,
html[data-theme="light"] .group-protocol-grid span {
  color: #64748b;
  font-weight: 700;
}

html[data-theme="light"] .review-summary-cards strong,
html[data-theme="light"] .readable-kv-grid strong,
html[data-theme="light"] .field-review-grid.compact strong,
html[data-theme="light"] .submission-plan-grid strong,
html[data-theme="light"] .submission-compact-grid strong,
html[data-theme="light"] .moments-plan-inline-grid strong,
html[data-theme="light"] .group-protocol-grid strong {
  color: #0f172a;
  font-weight: 900;
}

html[data-theme="light"] .submission-overview,
html[data-theme="light"] .task-audit-layout,
html[data-theme="light"] .detail-grid.business-detail-grid {
  gap: 16px;
}

html[data-theme="light"] .submission-fields-card,
html[data-theme="light"] .submission-raw-panel,
html[data-theme="light"] .media-review-panel,
html[data-theme="light"] .task-main-card,
html[data-theme="light"] .task-side-stack .panel,
html[data-theme="light"] .business-detail-grid .panel {
  border-color: #dbe5f0;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
}

html[data-theme="light"] .submission-plan-card,
html[data-theme="light"] .moments-plan-panel {
  border-color: #99f6e4;
  background:
    linear-gradient(180deg, rgba(20, 184, 166, .08), rgba(255, 255, 255, .96)),
    #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
}

html[data-theme="light"] .submission-plan-card.needs-check,
html[data-theme="light"] .moments-plan-panel.needs-check {
  border-color: #fde68a;
  background:
    linear-gradient(180deg, rgba(251, 191, 36, .12), rgba(255, 255, 255, .96)),
    #ffffff;
}

html[data-theme="light"] .submission-plan-head .panel-title,
html[data-theme="light"] .task-section-head-slim .panel-title,
html[data-theme="light"] .business-detail-grid .panel-title,
html[data-theme="light"] .task-side-stack .panel-title {
  color: #0f172a;
  font-weight: 900;
}

html[data-theme="light"] .submission-plan-head p,
html[data-theme="light"] .task-section-head-slim p,
html[data-theme="light"] .submission-channel-card-head p {
  color: #64748b;
}

html[data-theme="light"] .raw-text-box,
html[data-theme="light"] .primary-copy-box,
html[data-theme="light"] .content-box {
  border-color: #d6e2ef;
  background: #f8fbff;
  color: #1f2937;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

html[data-theme="light"] .submission-raw-text,
html[data-theme="light"] .task-main-card .primary-copy-box {
  color: #111827;
  font-size: 15px;
  line-height: 1.75;
}

html[data-theme="light"] .business-field-grid article,
html[data-theme="light"] .submission-fields-card .business-field-grid article {
  min-height: 88px;
  padding: 14px;
}

html[data-theme="light"] .business-field-grid strong {
  color: #111827;
  font-size: 16px;
  line-height: 1.55;
}

html[data-theme="light"] .submission-channel-section {
  margin-top: 18px;
}

html[data-theme="light"] .submission-channel-section > .task-section-head {
  padding: 2px 2px 0;
}

html[data-theme="light"] .submission-channel-card {
  position: relative;
  overflow: hidden;
  border-color: #dbe5f0;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .07);
}

html[data-theme="light"] .submission-channel-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
}

html[data-theme="light"] .submission-channel-card.pending_review::before {
  background: linear-gradient(90deg, #f59e0b, #fde68a);
}

html[data-theme="light"] .submission-channel-card.success::before {
  background: linear-gradient(90deg, #10b981, #86efac);
}

html[data-theme="light"] .submission-channel-card.failed::before {
  background: linear-gradient(90deg, #e11d48, #fda4af);
}

html[data-theme="light"] .submission-channel-card-head h2 {
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
}

html[data-theme="light"] .submission-channel-meta span {
  color: #475569;
  border-color: #dbe5f0;
  background: #f8fafc;
}

html[data-theme="light"] .submission-channel-plan,
html[data-theme="light"] .moments-plan-inline,
html[data-theme="light"] .group-protocol-check {
  border-color: #99f6e4;
  background: #f0fdfa;
}

html[data-theme="light"] .submission-channel-plan.needs-check,
html[data-theme="light"] .moments-plan-inline.needs-check,
html[data-theme="light"] .group-protocol-check.warning {
  border-color: #fde68a;
  background: #fffbeb;
}

html[data-theme="light"] .group-protocol-check.failed {
  border-color: #fecdd3;
  background: #fff1f2;
}

html[data-theme="light"] .submission-channel-plan span {
  color: #334155;
  background: rgba(255, 255, 255, .76);
}

html[data-theme="light"] .submission-channel-plan b,
html[data-theme="light"] .submission-channel-editor span {
  color: #0e7490;
  font-weight: 800;
}

html[data-theme="light"] .moments-plan-inline-head strong,
html[data-theme="light"] .group-protocol-check-head b {
  color: #0f172a;
}

html[data-theme="light"] .moments-plan-inline-head > span,
html[data-theme="light"] .group-protocol-check-head p {
  color: #475569;
}

html[data-theme="light"] .group-protocol-check-head > span {
  color: #047857;
  background: #d1fae5;
}

html[data-theme="light"] .group-protocol-check.failed .group-protocol-check-head > span {
  color: #be123c;
  background: #ffe4e6;
}

html[data-theme="light"] .group-protocol-check.warning .group-protocol-check-head > span {
  color: #a16207;
  background: #fef3c7;
}

html[data-theme="light"] .group-protocol-channels span {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

html[data-theme="light"] .group-protocol-channels.workstation-probes span {
  color: #0f766e;
  border-color: #99f6e4;
  background: #f0fdfa;
}

html[data-theme="light"] .group-protocol-next {
  border-color: #fde68a;
  background: #fffbeb;
}

html[data-theme="light"] .group-protocol-next b,
html[data-theme="light"] .group-protocol-next span,
html[data-theme="light"] .moments-plan-warning {
  color: #92400e;
}

html[data-theme="light"] .moments-plan-warning {
  border-color: #fde68a;
  background: #fffbeb;
}

html[data-theme="light"] .submission-channel-editor textarea,
html[data-theme="light"] .review-content-field textarea,
html[data-theme="light"] .review-title-field input,
html[data-theme="light"] .moments-plan-select-card select {
  border-color: #cbd5e1;
  background: #fbfdff;
  color: #111827;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, .02);
}

html[data-theme="light"] .submission-channel-editor textarea,
html[data-theme="light"] .review-content-field textarea {
  line-height: 1.72;
}

html[data-theme="light"] .submission-channel-editor textarea:focus,
html[data-theme="light"] .review-content-field textarea:focus,
html[data-theme="light"] .review-title-field input:focus,
html[data-theme="light"] .moments-plan-select-card select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

html[data-theme="light"] .review-title-field,
html[data-theme="light"] .review-content-field {
  color: #475569;
  font-weight: 800;
}

html[data-theme="light"] .review-readonly-note {
  color: #475569;
  border-color: #dbe5f0;
  background: #f8fbff;
}

html[data-theme="light"] .submission-channel-result,
html[data-theme="light"] .result-box {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

html[data-theme="light"] .submission-channel-result.success,
html[data-theme="light"] .result-box.success {
  color: #047857;
  border-color: #bbf7d0;
  background: #ecfdf5;
}

html[data-theme="light"] .submission-channel-result.failed,
html[data-theme="light"] .error-box {
  color: #be123c;
  border-color: #fecdd3;
  background: #fff1f2;
}

html[data-theme="light"] .submission-channel-result.pending_review {
  color: #a16207;
  border-color: #fde68a;
  background: #fffbeb;
}

html[data-theme="light"] .submission-channel-foot {
  border-top-color: #e2e8f0;
}

html[data-theme="light"] .submission-channel-time {
  color: #64748b;
}

html[data-theme="light"] .media-group-title,
html[data-theme="light"] .media-preview-card strong {
  color: #0f172a;
}

html[data-theme="light"] .media-preview-card {
  color: #243044;
  border-color: #dbe5f0;
  background: #f8fafc;
}

html[data-theme="light"] .media-preview-card img {
  border-color: #dbe5f0;
  background: #e2e8f0;
}

html[data-theme="light"] .media-preview-card span {
  color: #64748b;
}

html[data-theme="light"] .small-link,
html[data-theme="light"] .detail-entry,
html[data-theme="light"] .link {
  color: #2563eb;
  font-weight: 800;
}

html[data-theme="light"] .small-link:hover,
html[data-theme="light"] .detail-entry:hover,
html[data-theme="light"] .link:hover {
  color: #1d4ed8;
}
