:root {
  --bg: #f7f9fb;
  --panel: #ffffff;
  --sidebar: #ffffff;
  --sidebar-soft: #edf7f1;
  --text: #101d25;
  --muted: #66737e;
  --line: #e5eaef;
  --primary: #117864;
  --primary-soft: #e6f4ef;
  --amber: #cb7b32;
  --amber-soft: #fff2e7;
  --red: #bd4a42;
  --red-soft: #ffebe8;
  --blue: #537fd5;
  --blue-soft: #edf3ff;
  --purple: #8263bc;
  --purple-soft: #f3effc;
  --shadow: 0 1px 3px rgba(15, 23, 42, .04), 0 8px 20px rgba(15, 23, 42, .035);
  font-family: "Inter", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
h1, h2, h3, p { margin: 0; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  width: 224px;
  padding: 23px 16px 20px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.brand { display: flex; gap: 9px; align-items: center; padding: 0 5px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
  color: #fff; background: linear-gradient(145deg, #53ab9c, #0b6957);
}
.brand strong { display: block; font-size: 24px; letter-spacing: .02em; }
.sidebar-search {
  height: 34px; margin: 23px 0 18px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 7px; display: flex; align-items: center; gap: 7px; color: #99a3ab;
}
.sidebar-search input {
  min-width: 0; width: 100%; border: 0; outline: 0; background: transparent;
  color: var(--text); font-size: 12px;
}
.navigation { display: flex; flex-direction: column; gap: 6px; }
.nav-item {
  width: 100%;
  color: #485862;
  text-align: left;
  border-radius: 7px;
  padding: 10px 10px;
  background: transparent;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 8px;
  align-items: center;
}
.nav-icon { width: 19px; font-size: 14px; color: #7a8790; text-align: center; font-style: normal; }
.nav-item span { font-size: 15px; }
.nav-item small { color: #8d979e; }
.nav-item:hover, .nav-item.active { background: #e8f4ee; color: #10735f; }
.nav-item.active .nav-icon, .nav-item.active small { color: #10735f; }
.attention {
  display: grid; place-items: center; width: 18px; height: 18px; border-radius: 9px;
  color: #fff !important; background: var(--primary);
}
.sidebar-footer {
  margin-top: auto; border-top: 1px solid var(--line); padding: 15px 7px 0;
  display: grid; gap: 6px; color: #8a959d; font-size: 12px;
}
.sidebar-footer strong { color: var(--text); font-size: 14px; }
.icp-link,
.site-icp a {
  color: #7b8b94;
  text-decoration: none;
}
.icp-link:hover,
.site-icp a:hover {
  color: var(--primary);
}
.site-icp {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 3;
  pointer-events: none;
  text-align: center;
  font-size: 12px;
  color: #7b8b94;
}
.site-icp a {
  pointer-events: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(249, 250, 251, .82);
  backdrop-filter: blur(6px);
}

.main { flex: 1; padding: 19px 22px 25px; min-width: 0; }
.topbar {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px;
}
.eyebrow {
  color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .04em;
  margin-bottom: 4px;
}
.topbar h1 { font-size: 27px; font-weight: 680; letter-spacing: -.025em; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.ghost-button, .primary-button {
  height: 44px; border-radius: 10px; padding: 0 19px; font-weight: 500;
}
.ghost-button { color: var(--primary); background: var(--panel); border: 1px solid #d7e2de; }
.primary-button { color: #fff; background: var(--primary); }
.notification {
  width: 20px; height: 22px; position: relative; display: inline-block;
}
.notification::before {
  content: ""; position: absolute; top: 4px; left: 4px; width: 11px; height: 12px;
  border: 1.6px solid #72808a; border-radius: 8px 8px 4px 4px;
}
.notification::after {
  content: ""; position: absolute; top: 3px; right: 2px; width: 6px; height: 6px;
  border-radius: 50%; background: #d15b54; border: 1px solid #fff;
}
.avatar {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  color: #245144; background: #e5efe9; font-size: 13px; font-weight: 600;
}
.user-chip {
  min-width: 106px; border-left: 1px solid var(--line); padding-left: 12px;
  display: grid; gap: 4px; font-size: 12px; color: var(--muted);
}
.user-chip strong { font-size: 15px; color: var(--text); }

.view-root { display: grid; gap: 15px; }
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: 16px;
  align-items: stretch;
}
.single-auth-layout {
  grid-template-columns: minmax(320px, 536px);
  justify-content: center;
  padding-top: clamp(24px, 8vh, 92px);
}
.auth-card {
  padding: 24px;
  display: grid;
  gap: 14px;
}
.auth-card-centered {
  align-self: start;
}
.auth-card.soft { background: linear-gradient(135deg, #f7fbf9, #fff); }
.auth-card h2 { font-size: 24px; letter-spacing: -.02em; }
.auth-card p, .auth-card small { color: var(--muted); line-height: 1.65; }
.auth-secondary-link {
  justify-self: center;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.auth-secondary-link:hover { text-decoration: underline; }
.auth-form {
  display: grid;
  gap: 12px;
}
.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}
.auth-form input, .auth-form select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  outline: 0;
}
.auth-error {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 13px;
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.admin-panel-card { padding: 18px; }
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.audit-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
}
.audit-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcfc;
}
.audit-item strong { display: block; margin-bottom: 5px; }
.audit-item span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.audit-item small { text-align: right; color: var(--muted); line-height: 1.6; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
}
.stat-card { height: 151px; padding: 16px 17px 12px; display: grid; grid-template-rows: auto auto auto 1fr; }
.stat-label { font-size: 14px; color: #566772; }
.stat-card strong { display: block; font-size: 34px; margin: 8px 0 2px; font-weight: 680; color: var(--primary); letter-spacing: -.03em; }
.stat-note { color: var(--muted); font-size: 12px; }
.stat-foot { height: 35px; display: flex; align-items: end; gap: 12px; margin-top: 7px; }
.stat-icon {
  width: 29px; height: 29px; border-radius: 7px; display: grid; place-items: center;
  color: var(--primary); background: var(--primary-soft); font-size: 11px; font-weight: 600;
}
.stat-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sparkline { flex: 1; height: 34px; overflow: visible; }
.sparkline path {
  fill: none; stroke: var(--primary); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
}
.stat-card.blue .stat-icon { color: var(--blue); background: var(--blue-soft); }
.stat-card.blue .sparkline path { stroke: var(--blue); }
.stat-card.purple .stat-icon { color: var(--purple); background: var(--purple-soft); }
.stat-card.purple .sparkline path { stroke: var(--purple); }
.stat-card.orange .stat-icon { color: var(--amber); background: var(--amber-soft); }
.stat-card.orange .sparkline path { stroke: var(--amber); }
.status-dot { width: 8px; height: 8px; border-radius: 8px; background: var(--primary); }
.status-dot.amber { background: var(--amber); }
.status-dot.red { background: var(--red); }
.status-dot.blue { background: var(--blue); }
.media-type-strip {
  display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 12px;
}
.media-type-card {
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px;
  background: #fff; box-shadow: var(--shadow);
}
.media-type-card.primary-media {
  border-color: #badbd0;
  background: linear-gradient(135deg, #f4fbf8, #ffffff);
}
.media-type-card span {
  display: inline-flex; margin-bottom: 7px; border-radius: 999px; padding: 3px 8px;
  color: var(--muted); background: #f2f5f4; font-size: 11px;
}
.media-type-card.primary-media span { color: var(--primary); background: var(--primary-soft); }
.media-type-card > strong { display: block; font-size: 17px; margin-bottom: 10px; }
.media-type-card div { display: flex; align-items: end; gap: 6px; margin-bottom: 7px; }
.media-type-card b { color: var(--primary); font-size: 24px; line-height: .95; }
.media-type-card small, .media-type-card p { color: var(--muted); font-size: 12px; }
.media-type-card p { line-height: 1.45; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.dashboard-bento {
  display: grid; grid-template-columns: minmax(295px, .9fr) minmax(560px, 1.72fr) minmax(345px, 1fr);
  gap: 15px; align-items: start;
}
.distribution-column, .insights-column { display: grid; gap: 15px; }
.distribution-column { grid-template-rows: 1fr 1fr; }
.insights-column { grid-template-rows: auto 1fr; }
.profile-card { padding: 18px 17px; }
.map-card { padding: 18px; display: flex; flex-direction: column; }
.panel-heading {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px;
}
.panel-heading h2 { font-size: 17px; font-weight: 650; }
.panel-heading span { color: var(--muted); font-size: 13px; }
.panel-heading strong { font-size: 19px; font-weight: 650; }
.map-layout { display: grid; grid-template-columns: minmax(600px, 1fr) 290px; gap: 22px; align-items: stretch; }
.china-map-wrap {
  min-height: 520px; background:
    radial-gradient(circle at 52% 55%, rgba(254, 226, 226, .46), transparent 46%),
    #fbfcfd;
  border: 1px solid #f1f4f4; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
}
.china-map { width: 100%; height: 520px; display: block; transform: scale(1.16); transform-origin: center 55%; }
.bento-map .china-map-wrap { flex: none; height: 560px; }
.bento-map .china-map { height: 560px; min-height: 560px; }
.province-layer path {
  fill: #e9f0f2; stroke: #ffffff; stroke-width: 1.15; vector-effect: non-scaling-stroke;
}
.province-layer .has-resources path { fill: var(--province-fill); stroke-width: 1.45; }
.city-pulse { fill: rgba(180, 35, 24, .08); }
.city-dot { fill: #b42318; stroke: #ffffff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.city-marker:hover .city-dot { fill: #912018; }
.city-label {
  font-size: 9.7px; font-weight: 600; fill: #254b47; paint-order: stroke;
  stroke: #f7fcfb; stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none;
}
.map-scale {
  display: flex; align-items: center; gap: 5px;
  color: var(--muted); font-size: 11px;
}
.map-scale-bottom { justify-content: start; margin: 14px 0 0 3px; }
.map-scale i { display: inline-block; width: 25px; height: 8px; }
.map-scale .scale-0 { background: #edf3f3; border-radius: 4px 0 0 4px; }
.map-scale .scale-1 { background: #fee4e2; }
.map-scale .scale-2 { background: #fecdca; }
.map-scale .scale-3 { background: #fda29b; }
.map-scale .scale-4 { background: #b42318; border-radius: 0 4px 4px 0; }
.map-scale small { font-size: 12px; margin-left: 3px; }
.map-footprint {
  display: grid; grid-template-columns: 100px 100px 100px 1fr; align-items: stretch;
  gap: 10px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line);
}
.map-footprint-metric {
  background: #f5f8f7; border-radius: 10px; padding: 10px 11px; display: grid; align-content: center;
}
.map-footprint-metric span, .map-city-leaders > span {
  color: var(--muted); font-size: 11px; margin-bottom: 5px;
}
.map-footprint-metric strong { color: var(--text); font-size: 23px; line-height: 1; }
.map-footprint-metric small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.map-city-leaders { padding: 6px 4px 3px 10px; }
.map-city-leaders > span { display: block; }
.map-city-leaders div { display: flex; flex-wrap: wrap; gap: 7px; }
.map-city-leaders em {
  border-radius: 15px; padding: 6px 9px; background: #eef5f2; color: #35554e;
  font-style: normal; font-size: 11px; white-space: nowrap;
}
.map-city-leaders b { color: var(--muted); font-weight: 500; margin-right: 5px; }
.map-city-leaders strong { color: var(--primary); font-weight: 600; margin-left: 4px; }
.risk-text { color: var(--red) !important; }
.map-loading { color: var(--muted); font-size: 14px; }
.map-summary {
  border-left: 1px solid var(--line); padding-left: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.map-summary h3 { font-size: 16px; margin-bottom: 8px; }
.map-rank {
  display: grid; grid-template-columns: 28px 1fr auto; column-gap: 9px; row-gap: 3px;
  padding: 11px 0; border-bottom: 1px solid #edf0ea; align-items: center;
}
.map-rank b { grid-row: span 2; font-size: 12px; color: var(--muted); }
.map-rank span { font-size: 14px; font-weight: 500; }
.map-rank strong { font-size: 14px; }
.map-rank small { grid-column: 3; color: var(--muted); text-align: right; }
.map-legend {
  margin-top: auto; padding: 17px 0 8px; display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 12px;
}
.map-legend .dot { display: inline-block; border-radius: 50%; background: rgba(14,107,82,.7); }
.map-legend .small { width: 5px; height: 5px; }
.map-legend .medium { width: 9px; height: 9px; }
.map-legend .large { width: 14px; height: 14px; }
.distribution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.insight-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 16px; }
.section-card { padding: 22px; }
.section-head {
  display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 21px;
}
.section-head h2 { font-size: 18px; font-weight: 600; margin-bottom: 7px; }
.section-head p { color: var(--muted); font-size: 13px; }
.pill {
  font-size: 12px; padding: 7px 11px; white-space: nowrap;
  border-radius: 20px; color: var(--primary); background: var(--primary-soft);
}
.pill.amber { color: var(--amber); background: var(--amber-soft); }
.pill.red { color: var(--red); background: var(--red-soft); }
.pill.blue { color: var(--blue); background: var(--blue-soft); }
.bar-list { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 100px 1fr 64px; gap: 12px; align-items: center; font-size: 13px; }
.bar-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 9px; border-radius: 8px; background: #eef0eb; overflow: hidden; }
.bar-value { height: 100%; border-radius: inherit; background: var(--primary); }
.bar-row strong { text-align: right; }
.task-list { display: grid; gap: 12px; }
.task {
  border: 1px solid var(--line); border-radius: 11px; padding: 14px;
  display: grid; gap: 7px;
}
.task strong { font-size: 14px; }
.task span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.task-top { display: flex; justify-content: space-between; align-items: center; }
.compact-table th, .compact-table td { padding: 10px 8px; }
.compact-table th:first-child, .compact-table td:first-child { padding-left: 0; }
.compact-table th:last-child, .compact-table td:last-child { padding-right: 0; }
.tag-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px;
}
.tag-metric {
  padding: 13px 11px 11px; border-radius: 10px; text-align: left; background: #e7f4ee;
}
.tag-metric span { display: block; color: #34454e; font-size: 12px; margin-top: 5px; }
.tag-metric strong { display: block; font-size: 25px; color: var(--text); margin-right: 2px; line-height: 1; }
.tag-metric.tone-1 { background: #dbf1e7; }
.tag-metric.tone-2 { background: #deedfb; }
.tag-metric.tone-3 { background: #efe3fb; }
.tag-metric.tone-4 { background: #fde8d7; }
.tag-metric.tone-5 { background: #eef2f5; }
.tag-metric.tone-6 { background: #e4ecf5; }
.governance-card .task { padding: 11px 12px; }
.donut-panel { padding: 18px 16px 15px; display: grid; align-content: start; }
.pie-layout { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 13px; }
.donut-chart {
  width: 114px; height: 114px; border-radius: 50%; position: relative;
  background: var(--pie);
}
.donut-chart::after {
  content: ""; position: absolute; inset: 30px; border-radius: 50%; background: var(--panel);
}
.donut-center {
  position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; text-align: center;
}
.donut-center strong { font-size: 16px; }
.donut-center small { display: none; }
.pie-legend { display: grid; grid-template-columns: 1fr; gap: 7px; }
.pie-row { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 7px; font-size: 12px; }
.pie-row i { width: 8px; height: 8px; display: inline-block; border-radius: 50%; }
.pie-row strong { font-size: 11px; color: var(--muted); }
.donut-overview {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px;
}
.donut-overview div { padding: 10px; border-radius: 9px; background: #f6f8fa; }
.donut-overview span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.donut-overview strong { color: var(--text); font-size: 18px; font-weight: 650; margin-right: 3px; }
.donut-overview small { color: var(--muted); font-size: 11px; }
.donut-ranking { margin-top: 14px; display: grid; gap: 8px; }
.donut-ranking p { color: var(--muted); font-size: 11px; margin-bottom: 1px; }
.donut-rank div {
  display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 7px; font-size: 11px;
}
.donut-rank i { width: 8px; height: 8px; border-radius: 50%; }
.donut-rank b { color: var(--muted); font-size: 11px; font-weight: 500; }
.donut-rank em {
  display: block; height: 4px; border-radius: 4px; overflow: hidden; margin-top: 3px;
  background: #edf2f4; font-style: normal;
}
.donut-rank u { display: block; height: 100%; border-radius: inherit; text-decoration: none; }
.booking-card { padding: 18px 17px 15px; display: grid; align-content: start; gap: 0; }
.booking-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 13px;
}
.booking-metrics div {
  padding: 10px 4px 10px; border-radius: 0; text-align: left; background: transparent;
  border-right: 1px solid var(--line);
}
.booking-metrics div:last-child { border-right: 0; }
.booking-metrics span {
  display: block; color: var(--muted); font-size: 11px; margin-top: 6px;
}
.booking-metrics strong { font-size: 21px; font-weight: 650; margin-right: 2px; letter-spacing: -.03em; }
.inventory-health {
  background: #f5f8f7; border-radius: 11px; padding: 13px 12px; margin: 3px 0 16px;
}
.inventory-health-head {
  display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); margin-bottom: 10px;
}
.inventory-health-head strong { color: var(--primary); font-size: 23px; letter-spacing: -.03em; }
.inventory-track { height: 9px; border-radius: 9px; background: #dfebe7; overflow: hidden; }
.inventory-track i { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.inventory-legend {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 11px; font-size: 11px; color: var(--muted);
}
.inventory-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; }
.inventory-legend .live { background: var(--primary); }
.inventory-legend .open { background: #9cccbf; }
.inventory-legend .risk { background: var(--red); }
.booking-export-box {
  display: grid; gap: 10px; margin: -4px 0 15px; padding: 12px;
  border: 1px solid #dfeae6; border-radius: 11px; background: #fbfdfc;
}
.booking-export-box strong { display: block; font-size: 13px; margin-bottom: 3px; }
.booking-export-box span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.booking-export-controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.booking-export-controls input {
  min-width: 0; height: 34px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 9px; color: var(--text); background: #fff; font-size: 12px;
}
.ranking-title {
  padding-top: 15px; margin: 0 0 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600;
}
.booking-ranking { display: grid; gap: 14px; }
.booking-row {
  display: grid; grid-template-columns: 27px 1fr; gap: 9px; align-items: center;
}
.booking-row b { color: #4c5962; font-size: 12px; font-weight: 500; }
.booking-row-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;
  font-size: 13px;
}
.booking-row-head strong { font-size: 12px; color: var(--muted); }
.booking-track { height: 7px; border-radius: 7px; overflow: hidden; background: #eff3f2; }
.booking-track i {
  display: block; height: 100%; border-radius: inherit; background: var(--primary);
}
.booking-row:nth-child(2) .booking-track i { background: #57ab98; }
.booking-row:nth-child(3) .booking-track i { background: #5c86db; }
.booking-row:nth-child(4) .booking-track i { background: #e59950; }
.booking-row:nth-child(5) .booking-track i { background: #8b68c4; }
.booking-row:nth-child(6) .booking-track i { background: #bd7b94; }
.booking-row:nth-child(7) .booking-track i { background: #78a6bb; }
.booking-row:nth-child(8) .booking-track i { background: #a4abb1; }
.booking-source {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); line-height: 1.5;
}

.planner-banner {
  padding: 21px 23px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.planner-banner h2 { font-size: 20px; margin-bottom: 7px; }
.planner-banner > div > p:last-child { font-size: 13px; color: var(--muted); }
.toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  flex-wrap: wrap;
  background: var(--panel); padding: 14px 18px; border-radius: 13px; border: 1px solid var(--line);
}
.mode-buttons {
  display: flex; gap: 8px; padding: 4px; border-radius: 12px; background: #edf2f1;
}
.mode-button {
  height: 38px; padding: 0 15px; border-radius: 9px; color: #54636c; background: transparent;
  font-weight: 600;
}
.mode-button.active {
  color: var(--primary); background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.06);
}
.tab-buttons { display: flex; gap: 6px; background: #f2f4ef; padding: 4px; border-radius: 10px; }
.tab-button { color: var(--muted); background: transparent; padding: 9px 16px; border-radius: 8px; }
.tab-button.active { color: var(--primary); background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.06); }
.filters { display: flex; gap: 10px; flex: 1; justify-content: end; flex-wrap: wrap; }
.search, .select, .filters select {
  height: 40px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  padding: 0 13px; color: var(--text);
}
.search { min-width: 245px; }
.filters select { min-width: 142px; }
.school-select { max-width: 218px; }
.point-select { max-width: 225px; }
.schedule-notice {
  display: flex; align-items: center; gap: 16px; padding: 12px 17px;
  background: #edf7f3; border: 1px solid #d9eae3; border-radius: 11px;
  color: var(--primary); font-size: 13px;
}
.schedule-notice strong { white-space: nowrap; font-size: 13px; }
.schedule-notice span { color: #47655e; line-height: 1.5; }

.vacancy-export-panel {
  display: grid; grid-template-columns: 1fr minmax(650px, 1.55fr); gap: 18px;
  padding: 18px 20px; align-items: center;
  border-color: #dcebe5; background: linear-gradient(135deg, #ffffff 0%, #f7fbf9 100%);
}
.vacancy-export-panel h2 { font-size: 18px; margin-bottom: 6px; }
.vacancy-export-panel p, .vacancy-export-panel small { color: var(--muted); font-size: 13px; line-height: 1.55; }
.vacancy-export-controls {
  display: grid; grid-template-columns: 130px minmax(160px, 1fr) 145px 145px auto; gap: 10px;
  align-items: center;
}
.vacancy-export-controls input, .vacancy-export-controls select {
  width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 11px; color: var(--text); background: #fff; font-size: 13px;
}

.feedback-panel { padding: 20px 22px; }
.feedback-head {
  display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 17px;
}
.feedback-head h2 { font-size: 18px; margin-bottom: 6px; }
.feedback-head p { color: var(--muted); font-size: 13px; }
.feedback-actions { display: flex; gap: 9px; }
.strong-action { background: var(--primary-soft); }
.confirm-action { color: #275f96; background: #edf5ff; border-color: #cfe1f7; }
.compact { height: 38px; padding: 0 15px; font-size: 13px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.feedback-stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 15px;
}
.feedback-stats div {
  background: #f5f7f3; border-radius: 10px; padding: 12px 13px;
}
.feedback-stats div.warning { background: var(--red-soft); }
.feedback-stats span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.feedback-stats strong { font-size: 22px; margin-right: 3px; }
.feedback-stats small { font-size: 12px; color: var(--muted); }
.selected-points { display: flex; flex-wrap: wrap; gap: 8px; }
.selected-points span {
  display: flex; align-items: center; gap: 7px; border-radius: 18px;
  background: var(--primary-soft); color: var(--primary); padding: 7px 10px; font-size: 12px;
}
.selected-points button { color: var(--primary); background: transparent; font-weight: 700; }
.selected-points .more { background: #f1f3f0; color: var(--muted); }
.feedback-empty {
  border-radius: 9px; background: #f7f8f5; color: var(--muted); padding: 12px 14px; font-size: 13px;
}
.basket-table-wrap {
  border: 1px solid var(--line); border-radius: 10px; overflow-x: auto;
}
.basket-table { min-width: 1160px; font-size: 13px; }
.basket-table th, .basket-table td { padding: 11px 12px; }
.basket-table thead { background: #f4f7f4; }
.basket-table tr.planned-oversold td { background: #fff7f6; }
.quantity-input {
  width: 75px; height: 34px; padding: 0 8px; border: 1px solid #d7e2de;
  border-radius: 7px; background: #fff; color: var(--text);
}
.planning-required {
  margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 12px;
  color: #76500f; background: var(--amber-soft);
}
.planning-confirm-tip {
  margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 12px;
  color: #2f5f86; background: #edf5ff;
}
.prelock-management {
  margin-top: 14px; display: grid; gap: 10px;
  border: 1px solid #f0dfcc; border-radius: 11px; padding: 12px; background: #fffaf5;
}
.prelock-head {
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
  color: #6c4a1e; font-size: 13px;
}
.prelock-head span { color: #92704c; }
.prelock-project {
  display: grid; gap: 9px; padding: 11px; border-radius: 9px; background: #fff;
  border: 1px solid #f1e5d7;
}
.prelock-project-main {
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.prelock-project-main small { display: block; margin-top: 4px; color: var(--muted); }
.prelock-school-list { display: flex; flex-wrap: wrap; gap: 7px; }
.prelock-school-chip {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 18px;
  padding: 7px 9px; color: #6b4818; background: #fff2e4; border: 1px solid #f2dbc4;
  font-size: 12px;
}
.prelock-school-chip b { font-weight: 600; color: #9a5c18; }
.prelock-school-chip span { color: var(--red); font-weight: 600; }
.danger-link { color: var(--red) !important; }

.table-card { overflow: hidden; }
.table-caption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid #f0f1ed;
}
.table-scroll-controls {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px;
  background: #fafcfb; border-top: 1px solid #f0f1ed;
}
.table-scroll-controls > span {
  color: var(--muted); font-size: 12px; white-space: nowrap;
}
.table-scroll-range {
  flex: 1; min-width: 140px; height: 28px; accent-color: var(--primary); cursor: ew-resize;
}
.table-scroll-wrap {
  width: 100%; overflow-x: auto; overflow-y: hidden;
  scrollbar-gutter: stable; -webkit-overflow-scrolling: touch;
}
.resource-table-scroll {
  scrollbar-color: #8dbdaf #eef3f1; scrollbar-width: auto;
}
.resource-table-scroll::-webkit-scrollbar, .point-detail-panel::-webkit-scrollbar { height: 12px; }
.resource-table-scroll::-webkit-scrollbar-track, .point-detail-panel::-webkit-scrollbar-track {
  background: #eef3f1; border-radius: 8px;
}
.resource-table-scroll::-webkit-scrollbar-thumb, .point-detail-panel::-webkit-scrollbar-thumb {
  background: #8dbdaf; border-radius: 8px; border: 2px solid #eef3f1;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
.point-table { min-width: 1300px; }
.point-table td { vertical-align: top; }
.school-table { min-width: 1520px; }
.school-table td { vertical-align: top; }
.school-table .schedule-column { min-width: 300px; width: 340px; }
.school-row:hover td { background: #fbfcfa; }
.filter-row th { padding: 9px 10px; background: #f1f5f1; }
.filter-row input, .filter-row select {
  width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 7px;
  padding: 0 9px; color: var(--text); background: #fff; font-size: 12px;
}
.text-button {
  color: var(--primary); background: transparent; font-size: 12px; white-space: nowrap;
}
.point-detail-row > td { padding: 0 18px 17px; background: #f7faf7; }
.point-detail-panel {
  padding: 13px; background: #f3f7f4; border: 1px solid #e5ebe5; border-radius: 11px;
  overflow-x: auto;
}
.point-subtable { min-width: 1120px; background: #fff; border-radius: 9px; overflow: hidden; }
.point-subtable th, .point-subtable td { padding: 11px 13px; }
.point-subtable thead { background: #edf4ef; }
.media-type-chip {
  display: inline-flex; margin-right: 5px; padding: 2px 6px; border-radius: 999px;
  color: #9f2d20; background: #fff0ee; font-size: 11px; font-weight: 650;
}
.media-type-chip.framework { color: var(--primary); background: var(--primary-soft); }
.media-type-chip.desk { color: #8a4b00; background: #fff1dc; }
.media-type-chip.lightbox { color: #4f348d; background: var(--purple-soft); }
.media-type-chip.sports { color: #155aa3; background: var(--blue-soft); }
.media-type-stack {
  display: flex; flex-wrap: wrap; gap: 5px 7px; align-items: center; min-width: 92px;
}
.media-type-stack small {
  color: var(--muted); font-size: 11px; margin-right: 2px;
}
.booking-period {
  display: grid; gap: 2px; margin-bottom: 8px; white-space: nowrap;
}
.booking-period:last-child { margin-bottom: 0; }
.booking-period strong { font-size: 12px; font-weight: 500; }
.booking-period small { font-size: 11px; color: var(--muted); }
.booking-period small b { font-weight: 500; color: var(--primary); }
.booking-actions {
  display: flex; gap: 10px; margin-top: 4px;
}
.booking-actions button {
  padding: 0; color: var(--primary); background: transparent; font-size: 11px; font-weight: 600;
}
.booking-actions .danger-link { color: var(--red) !important; }
.booking-period.pending small b { color: var(--blue); }
.booking-period.undated small b { color: var(--amber); }
.booking-period.expired { opacity: .65; }
.booking-period.expired small b { color: var(--red); }
.booking-period.oversold small b { color: var(--red); }
.school-schedules { display: grid; gap: 7px; }
.school-schedule {
  padding: 6px 8px; border-radius: 7px; background: #edf7f3; line-height: 1.35;
}
.school-schedule > div {
  display: flex; align-items: center; gap: 6px; min-width: 0;
}
.school-schedule strong { font-size: 12px; font-weight: 550; color: var(--text); }
.school-schedule small { display: block; margin-top: 2px; color: #526b64; font-size: 11px; }
.school-schedule.pending { background: var(--blue-soft); }
.school-schedule.undated { background: var(--amber-soft); }
.school-schedule.oversold { background: var(--red-soft); }
.school-schedule.oversold small { color: var(--red); }
.over-label {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px;
  color: var(--red); background: #fff; border: 1px solid #f4cbc6;
  border-radius: 9px; font-size: 10px; font-weight: 600;
}
.schedule-more, .no-booking { color: var(--muted); font-size: 12px; }
.select-cell { width: 54px; text-align: center; padding-left: 12px; padding-right: 12px; }
.point-checkbox { width: 17px; height: 17px; accent-color: var(--primary); }
.point-plan-picker {
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px;
  min-width: 90px;
}
.point-quantity-input {
  width: 51px; height: 30px; border: 1px solid #d7e2de; border-radius: 6px;
  text-align: center; padding: 0 4px; background: #fff; color: var(--text);
}
.point-quantity-input:disabled { background: #f3f5f3; color: #a0a8aa; }
.point-plan-picker small { width: 100%; color: var(--muted); font-size: 10px; }
.negative { color: var(--red); font-weight: 600; }
thead { background: #f7f8f5; color: var(--muted); font-size: 12px; }
th { font-weight: 500; text-align: left; padding: 13px 18px; }
td { padding: 14px 18px; border-top: 1px solid #f0f1ed; }
td.numeric, th.numeric { text-align: right; }
.table-link { color: var(--primary); background: transparent; padding: 0; font-weight: 500; }
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.pagination {
  display: flex; justify-content: flex-end; align-items: center; gap: 10px;
  padding: 15px 18px; border-top: 1px solid #f0f1ed; color: var(--muted); font-size: 13px;
}
.pagination span { margin-right: auto; }
.pagination b { min-width: 52px; text-align: center; color: var(--text); font-weight: 500; }
.empty-state {
  padding: 66px 28px; text-align: center; display: grid; justify-items: center; gap: 12px;
}
.empty-state h3 { font-size: 18px; }
.empty-state p { color: var(--muted); max-width: 460px; line-height: 1.65; font-size: 14px; }
.empty-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 22px;
}

.source-panel { display: grid; grid-template-columns: 1.12fr .88fr; gap: 16px; }
.source-file-list { display: grid; gap: 16px; }
.file-card { display: flex; gap: 16px; align-items: center; padding: 20px; }
.file-icon {
  width: 50px; height: 54px; border-radius: 9px; background: var(--primary-soft);
  color: var(--primary); display: grid; place-items: center; font-weight: 600;
}
.file-card h3 { font-size: 15px; margin-bottom: 7px; }
.file-card p { color: var(--muted); font-size: 13px; }
.lock-import-card { margin-top: 16px; }
.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 118, 103, .18);
}
.upload-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.import-job-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.import-job-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.import-job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fbfa;
}
.import-job strong { color: var(--text); font-size: 14px; }
.import-job span { color: var(--muted); font-size: 12px; }
.check-list { display: grid; gap: 13px; padding: 20px 22px; }
.check-row { display: flex; justify-content: space-between; font-size: 14px; }
.check-row span:first-child { color: var(--muted); }
.required-fields {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px;
}
.field-chip {
  padding: 7px 10px; border-radius: 7px; font-size: 12px; color: var(--muted);
  background: #f2f4f0; border: 1px solid #e6e9e2;
}

.modal {
  width: min(700px, 90vw); border: 0; padding: 0; border-radius: 16px;
  box-shadow: 0 20px 70px rgba(17, 35, 28, .22);
}
.modal::backdrop { background: rgba(14, 28, 23, .45); }
.modal form { padding: 25px 27px; }
.modal-head { display: flex; justify-content: space-between; margin-bottom: 17px; }
.modal-head h2 { font-size: 21px; }
.icon-button { color: var(--muted); background: transparent; font-size: 18px; padding: 4px 7px; }
.form-tip {
  background: var(--amber-soft); color: #76500f; border-radius: 9px; padding: 12px 14px;
  font-size: 13px; margin-bottom: 18px; line-height: 1.55;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid label { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.form-grid input, .form-grid select {
  border: 1px solid var(--line); height: 43px; padding: 0 12px; border-radius: 8px;
  color: var(--text); background: #fff;
}
.point-edit-modal { width: min(760px, 90vw); }
.form-wide { grid-column: 1 / -1; }
.form-grid textarea {
  border: 1px solid var(--line); min-height: 118px; border-radius: 8px;
  padding: 11px 12px; resize: vertical; color: var(--text); font: inherit;
}
.form-grid label small { font-size: 12px; line-height: 1.5; }
.form-grid input[readonly] { color: var(--muted); background: #f5f7f3; }
.existing-bookings {
  grid-column: 1 / -1; padding: 13px; border-radius: 9px; border: 1px solid var(--line);
  display: grid; gap: 10px; color: var(--muted); font-size: 13px;
}
.existing-bookings > strong { color: var(--text); font-size: 14px; }
.empty-bookings { color: var(--muted); font-size: 13px; }
.planning-modal { width: min(720px, 92vw); }
.planning-tip { background: var(--primary-soft); color: #355d53; }
.planning-preview {
  display: grid; gap: 7px; background: #f5f7f3; border-radius: 9px;
  margin-top: 18px; padding: 13px 14px; font-size: 13px;
}
.planning-preview strong { color: var(--text); }
.planning-preview span { color: var(--muted); line-height: 1.5; }
.modal-actions { display: flex; justify-content: end; gap: 10px; margin-top: 25px; }
.split-actions { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; }
.danger-button { color: var(--red); }
.version-note {
  border: 1px solid #dbe5ef; background: var(--blue-soft); color: #385574;
  border-radius: 10px; padding: 16px 17px; font-size: 14px; line-height: 1.65;
}
.toast {
  position: fixed; right: 28px; bottom: 24px; transform: translateY(12px);
  opacity: 0; pointer-events: none; transition: all .2s ease;
  padding: 13px 17px; border-radius: 9px; background: #172d25; color: #fff; font-size: 14px;
}
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1220px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .media-type-strip { grid-template-columns: repeat(2, 1fr); }
  .map-layout, .dashboard-grid, .dashboard-bento, .distribution-grid, .insight-grid, .overview-grid, .lower-dashboard-grid, .source-panel, .auth-layout { grid-template-columns: 1fr; }
  .distribution-column { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .profile-card { grid-column: auto; }
  .profile-card .tag-metrics { grid-template-columns: repeat(3, 1fr); }
  .map-summary { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
  .bento-map .china-map-wrap, .bento-map .china-map { min-height: 480px; height: 480px; }
  .pie-layout { grid-template-columns: 105px 1fr; }
  .map-footprint { grid-template-columns: repeat(3, 1fr); }
  .map-city-leaders { grid-column: 1 / -1; padding-top: 10px; }
  .feedback-stats { grid-template-columns: repeat(2, 1fr); }
  .vacancy-export-panel { grid-template-columns: 1fr; }
  .vacancy-export-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-actions { grid-template-columns: 1fr 1fr; }
  .split-actions span { display: none; }
}

@media (max-width: 900px) {
  .sidebar { width: 188px; padding-left: 10px; padding-right: 10px; }
  .main { padding: 12px; }
  .topbar { align-items: start; gap: 12px; }
  .top-actions .user-chip, .notification { display: none; }
  .toolbar .filters, .toolbar .search { width: 100%; min-width: 0; }
  .schedule-notice { align-items: start; flex-direction: column; gap: 5px; }
  .vacancy-export-controls { grid-template-columns: 1fr; }
  .booking-export-controls { grid-template-columns: 1fr; }
  .prelock-project-main, .prelock-head { align-items: start; flex-direction: column; }
  .audit-item { grid-template-columns: 1fr; }
  .audit-item small { text-align: left; }
}

@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar {
    width: 100%; border-right: 0; border-bottom: 1px solid var(--line);
    padding: 12px;
  }
  .brand { margin-bottom: 10px; }
  .sidebar-search, .sidebar-footer { display: none; }
  .site-icp { position: static; padding: 12px 0 16px; background: var(--bg); }
  .navigation { flex-direction: row; overflow-x: auto; gap: 8px; }
  .nav-item { min-width: 116px; width: auto; padding: 9px; }
  .topbar h1 { font-size: 20px; }
  .top-actions { gap: 7px; }
  .ghost-button, .primary-button { padding: 0 12px; }
  .mode-buttons, .tab-buttons { width: 100%; overflow-x: auto; }
  .stats-grid, .distribution-column, .feedback-stats, .form-grid { grid-template-columns: 1fr; }
  .media-type-strip { grid-template-columns: 1fr; }
  .bento-map .china-map-wrap, .bento-map .china-map { min-height: 310px; height: 310px; }
  .map-footprint { grid-template-columns: 1fr 1fr; }
  .map-city-leaders { grid-column: 1 / -1; }
  .feedback-head, .planner-banner { flex-direction: column; align-items: start; }
  .table-scroll-controls { flex-wrap: wrap; padding: 10px; }
  .table-scroll-controls > span { width: 100%; }
  .pagination { flex-wrap: wrap; }
  .modal { width: calc(100vw - 22px); }
  .modal form { padding: 18px; }
}
