/* 折扣牛 · 经营驾驶舱 / Andon — Apple-inspired quiet dashboard */
:root {
  --zk-yellow: #c77b0a;
  --zk-yellow-deep: #a15c00;
  --zk-yellow-soft: #f5f5f7;
  --zk-blue: #0071e3;
  --zk-blue-deep: #1d1d1f;
  --zk-blue-soft: #eaf3fb;
  --zk-white: #ffffff;
  --zk-canvas: #f5f5f7;
  --zk-ink: #1d1d1f;
  --zk-ink-2: #3a3a3c;
  --zk-muted: #6e6e73;
  --zk-line: rgba(0, 0, 0, 0.08);
  --zk-line-soft: rgba(0, 0, 0, 0.06);
  --zk-ok: #248a3d;
  --zk-ok-soft: #e8f5ea;
  --zk-warn: #a15c00;
  --zk-danger: #c43e3e;
  --zk-danger-soft: #f8e8e8;
  --zk-danger-muted: #d16b63;
  --zk-ok-muted: #5a9a78;
  --zk-panel: #ffffff;
  --zk-shadow: none;
  --zk-radius: 22px;
  --zk-radius-sm: 16px;
  --zk-stripe: #f5f5f7;
  --zk-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  --zk-mono: "SF Pro Text", "SF Mono", "Roboto Condensed", ui-monospace, monospace;
}

/* Quiet canvas; cards and map sit on #f5f5f7 */
html:has(body.theme-ops),
body.theme-ops {
  background: #f5f5f7 !important;
}
body.theme-ops {
  min-width: 0;
  color: var(--zk-ink);
  overflow-x: auto;
  font-family: var(--zk-font);
}

body.theme-ops #app {
  width: 100%;
  margin: 0;
  min-height: 100vh;
  padding: 0;
  position: relative;
  background: transparent;
}

body.theme-ops .ops-screen {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100vh;
  background: transparent;
}

/* 只给顶栏固定区域加蓝框：贴齐最外沿，框外不再露出黄白条纹，上下左右线宽一致。
   顶栏条纹不加 attachment:fixed，避免在高层叠上下文里盖住下方卡片。 */
body.theme-ops .ops-topband {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background-attachment: scroll;
  border: 0;
  border-bottom: 1px solid var(--zk-line);
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}

body.theme-ops .ops-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 14px 20px 16px;
  box-shadow: none;
}

body.theme-ops .logo-slot {
  position: relative;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  justify-self: start;
}

body.theme-ops .logo-slot a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

body.theme-ops .logo-slot-inner {
  display: flex;
  align-items: center;
}

body.theme-ops .brand-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  object-position: left center;
}

body.theme-ops .logo-slot .logo-caption {
  display: none;
}

body.theme-ops .ops-title-wrap {
  text-align: center;
  justify-self: center;
}

body.theme-ops .ops-title-wrap .main-title,
body.theme-ops .ops-title-wrap .sub-title {
  white-space: nowrap;
  font-family: var(--zk-font);
  font-style: normal;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body.theme-ops .ops-title-wrap .main-title {
  margin: 0;
  font-family: var(--zk-font);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--zk-ink);
  text-shadow: none;
}

body.theme-ops .ops-title-wrap .sub-title {
  margin: 3px 0 0;
  font-family: var(--zk-font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--zk-muted);
}

body.theme-ops .ops-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  justify-self: end;
  min-width: 0;
}

body.theme-ops .badge-empty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: var(--zk-muted);
  border-radius: 0;
  font-size: 13px;
  font-weight: 400;
  background: transparent;
}

body.theme-ops .clock {
  font-variant-numeric: tabular-nums;
  font-family: var(--zk-font);
  color: var(--zk-muted);
  font-size: 13px;
  font-weight: 400;
}

body.theme-ops .site-nav-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: flex-end;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

body.theme-ops .site-nav-ops a {
  color: var(--zk-ink-2);
  text-decoration: none;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}

body.theme-ops .site-nav-ops a:hover {
  background: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

body.theme-ops .site-nav-ops a.active {
  background: transparent;
  border-color: transparent;
  color: var(--zk-ink);
  font-weight: 600;
  box-shadow: none;
}

body.theme-ops .ops-body {
  position: relative;
  z-index: 2;
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

/* Panels */
body.theme-ops .panel {
  background-color: var(--zk-panel);
  background-image: none;
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius);
  position: relative;
  z-index: 2;
  box-shadow: var(--zk-shadow);
}

body.theme-ops .panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--zk-line-soft);
  background: transparent;
}

body.theme-ops .panel-hd h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--zk-ink);
  letter-spacing: 0.02em;
}

body.theme-ops .panel-tip {
  font-size: 11px;
  color: var(--zk-muted);
  font-weight: 500;
}

body.theme-ops .panel-bd { padding: 12px 16px 16px; }

body.theme-ops .kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

body.theme-ops .kpi-card,
body.theme-ops .hero-box,
body.theme-ops .mini-tile,
body.theme-ops .promo-tile,
body.theme-ops .region-card,
body.theme-ops .status-tile,
body.theme-ops .triple .cell,
body.theme-ops .panel {
  background-image: none;
  isolation: isolate;
}
body.theme-ops .kpi-card::before,
body.theme-ops .kpi-card::after,
body.theme-ops .hero-box::before,
body.theme-ops .hero-box::after,
body.theme-ops .mini-tile::before,
body.theme-ops .mini-tile::after,
body.theme-ops .promo-tile::before,
body.theme-ops .promo-tile::after,
body.theme-ops .panel::before,
body.theme-ops .panel::after,
body.theme-ops .ops-topband::before,
body.theme-ops .ops-topband::after {
  content: none !important;
  background: none !important;
  background-image: none !important;
}

body.theme-ops .kpi-card {
  background-color: #fff;
  background-image: none;
  border: 1px solid var(--zk-line);
  border-radius: var(--zk-radius);
  padding: 18px 20px 16px;
  min-height: 118px;
  box-shadow: var(--zk-shadow);
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

body.theme-ops .kpi-label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--zk-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
}

body.theme-ops .kpi-value {
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 600;
  font-family: var(--zk-mono);
  font-variant-numeric: tabular-nums;
  color: var(--zk-ink);
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: center;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.theme-ops .kpi-foot {
  margin-top: 10px;
  font-size: 11px;
  color: var(--zk-muted);
  font-weight: 500;
  text-align: center;
  width: 100%;
  min-height: 16px;
  line-height: 16px;
}

body.theme-ops .cockpit-main {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 260px;
  gap: 16px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

body.theme-ops .map-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  min-width: 0;
  align-self: stretch;
  width: 100%;
}

body.theme-ops .map-panel > .panel-bd {
  flex: 1;
  min-height: 0;
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
}

body.theme-ops .map-stage {
  position: relative;
  flex: 1;
  display: block;
  width: 100%;
  min-height: 360px;
  height: auto;
  background: #fff;
  border-radius: var(--zk-radius-sm);
  overflow: hidden;
  border: 1px solid var(--zk-line);
}

body.theme-ops .amap-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body.theme-ops .ldmap-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
  display: block;
}

body.theme-ops .map-stage svg {
  width: 92%;
  height: 92%;
  max-height: 520px;
}

body.theme-ops .pin-label {
  font-size: 10px;
  fill: var(--zk-ink);
  font-family: var(--zk-font);
  font-weight: 600;
}

body.theme-ops .map-note {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 2;
  pointer-events: none;
  font-size: 11px;
  color: var(--zk-ink-2);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 10px;
  border: 1px solid var(--zk-line);
  border-radius: 999px;
}

body.theme-ops .amap-marker-label {
  background: #fff;
  border: 1px solid var(--zk-line);
  color: var(--zk-ink);
  font-weight: 600;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

body.theme-ops .side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  height: 100%;
  align-self: stretch;
}

body.theme-ops .side-stack > .panel:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.theme-ops .side-stack > .panel:last-child > .panel-bd {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.theme-ops .side-stack > .panel:last-child .mini-tiles {
  flex: 1;
  align-content: stretch;
}

body.theme-ops .side-stack > .panel:last-child .mini-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.theme-ops .metric-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.theme-ops .metric-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.theme-ops .metric-group-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--zk-muted);
  margin-bottom: 2px;
}

body.theme-ops .metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 3px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--zk-line-soft);
  border-radius: 0;
}

body.theme-ops .metric-group .metric-row:last-of-type,
body.theme-ops .metric-rate-wrap .metric-row {
  border-bottom: 0;
}

body.theme-ops .metric-row .name { font-size: 13px; color: var(--zk-ink-2); font-weight: 500; }
body.theme-ops .metric-row .val {
  font-family: var(--zk-mono);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  color: var(--zk-ink);
  font-weight: 700;
  letter-spacing: 0;
}

body.theme-ops .metric-rate-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.theme-ops .rate-bar-wrap {
  position: relative;
  width: 100%;
  margin: 6px 0 4px;
}
body.theme-ops .rate-bar {
  height: 6px;
  background: rgba(16, 24, 40, 0.06);
  border-radius: 99px;
  margin: 0;
  overflow: hidden;
  width: 100%;
  border: 0;
  box-shadow: none;
}
body.theme-ops .time-mark {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: var(--zk-ink);
  opacity: 0.4;
  transform: translateX(-1px);
  pointer-events: none;
  border-radius: 1px;
}

body.theme-ops .rate-bar-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--zk-blue);
  min-width: 0;
}

body.theme-ops .rate-bar.is-high .rate-bar-fill {
  background: var(--zk-ok);
}

body.theme-ops .rate-bar.is-mid .rate-bar-fill {
  background: #c77b0a;
}

body.theme-ops .rate-bar.is-low .rate-bar-fill {
  background: var(--zk-danger);
}

/* 达成率数字与进度条共用绿 / 黄 / 红 */
body.theme-ops .rate-num.is-high {
  color: var(--zk-ok) !important;
}
body.theme-ops .rate-num.is-mid {
  color: #a15c00 !important;
}
body.theme-ops .rate-num.is-low {
  color: var(--zk-danger) !important;
}

body.theme-ops .region-brief .panel-hd {
  padding: 10px 12px 6px;
}
body.theme-ops .region-brief .panel-hd h3 {
  white-space: nowrap;
  font-size: 13px;
}
body.theme-ops .region-brief .panel-bd {
  padding: 4px 12px 8px;
}

body.theme-ops .region-brief .metric-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
body.theme-ops .metric-row.region-summary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 6px 0;
  border-bottom: 1px solid var(--zk-line-soft);
}
body.theme-ops .metric-list > .metric-row.region-summary:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
body.theme-ops .region-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
body.theme-ops .metric-row.region-summary .name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  color: var(--zk-ink);
  line-height: 1.3;
}
body.theme-ops .region-deposit {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: var(--zk-muted);
  white-space: nowrap;
  letter-spacing: 0;
  line-height: 1.3;
}
body.theme-ops .metric-row.region-summary .val {
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
  line-height: 1.3;
  text-align: right;
  width: auto;
}
body.theme-ops .region-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
}
body.theme-ops .region-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  column-gap: 8px;
  width: 100%;
  min-width: 0;
}
body.theme-ops .region-row .col-target,
body.theme-ops .region-row .col-done {
  white-space: nowrap;
  overflow: visible;
  font-size: 11px;
  font-weight: 500;
  color: var(--zk-muted);
  line-height: 1.3;
}
body.theme-ops .region-row .col-target b,
body.theme-ops .region-row .col-done b {
  font-weight: 700;
  color: var(--zk-ink);
  font-family: var(--zk-mono);
  font-variant-numeric: tabular-nums;
}
body.theme-ops .region-row .rate-box {
  justify-self: end;
  width: auto;
  min-width: 7.6em;
  box-sizing: border-box;
  justify-content: space-between;
}
body.theme-ops .rate-box {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  margin: 0;
  border: 1px solid var(--zk-line);
  border-radius: 4px;
  background: #f7f7f5;
  white-space: nowrap;
  line-height: 1.45;
  font-size: 11px;
}
body.theme-ops .rate-box em {
  font-style: normal;
  font-weight: 500;
  color: var(--zk-muted);
}
body.theme-ops .rate-box span {
  font-weight: 700;
  font-family: var(--zk-mono);
  font-variant-numeric: tabular-nums;
}
body.theme-ops .rate-box.is-high {
  background: #eaf7ee;
  border-color: #b7dfc2;
}
body.theme-ops .rate-box.is-high span {
  color: var(--zk-success, #1a7f3c);
}
body.theme-ops .rate-box.is-mid {
  background: #fff6dc;
  border-color: #e6d18a;
}
body.theme-ops .rate-box.is-mid span {
  color: #B8860B;
}
body.theme-ops .rate-box.is-low {
  background: #fdecee;
  border-color: #f0b8be;
}
body.theme-ops .rate-box.is-low span {
  color: var(--zk-danger);
}

body.theme-ops .region-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  white-space: nowrap;
}

body.theme-ops .region-line .k {
  font-size: 12px;
  color: var(--zk-muted);
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}

body.theme-ops .region-line .val {
  width: auto;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

body.theme-ops .region-card .r-note {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--zk-muted);
  line-height: 1.45;
}

body.theme-ops .mini-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.theme-ops .mini-tile {
  padding: 10px;
  background: var(--zk-canvas);
  border: 0;
  border-radius: var(--zk-radius-sm);
  text-align: center;
}

body.theme-ops .mini-tile .n { font-size: 11px; color: var(--zk-muted); margin-bottom: 6px; font-weight: 600; letter-spacing: 0.04em; }
body.theme-ops .mini-tile .v {
  font-family: var(--zk-mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  color: var(--zk-ink);
  font-weight: 700;
}

body.theme-ops .andon-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  flex: 1;
}

body.theme-ops .span-3 { grid-column: span 3; }
body.theme-ops .span-4 { grid-column: span 4; }
body.theme-ops .span-6 { grid-column: span 6; }
body.theme-ops .span-8 { grid-column: span 8; }
body.theme-ops .span-12 { grid-column: span 12; }

body.theme-ops .hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

body.theme-ops .hero-box {
  text-align: center;
  padding: 18px 12px;
  background: var(--zk-canvas);
  border: 0;
  border-radius: var(--zk-radius-sm);
  box-shadow: none;
}

body.theme-ops .hero-box .label { font-size: 12px; color: var(--zk-muted); margin-bottom: 8px; font-weight: 600; letter-spacing: 0.04em; }
body.theme-ops .hero-box .value {
  font-size: 40px;
  font-family: var(--zk-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--zk-ink);
  letter-spacing: -0.02em;
}
body.theme-ops .hero-box .hint { margin-top: 6px; font-size: 11px; color: var(--zk-muted); font-weight: 500; }

body.theme-ops .triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

body.theme-ops .triple .cell {
  text-align: center;
  padding: 12px 8px;
  background: var(--zk-canvas);
  border-radius: var(--zk-radius-sm);
  border: 0;
}
body.theme-ops .triple .cell .lbl { font-size: 12px; color: var(--zk-muted); margin-bottom: 6px; font-weight: 600; }
body.theme-ops .triple .cell .num {
  font-size: 26px;
  font-family: var(--zk-mono);
  font-variant-numeric: tabular-nums;
  color: var(--zk-ink);
  font-weight: 700;
}

body.theme-ops .status-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

body.theme-ops .status-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  min-height: 0;
  box-sizing: border-box;
  background: var(--zk-canvas);
  border: 0;
  border-radius: var(--zk-radius-sm);
  color: var(--zk-ink);
}

body.theme-ops .andon-grid .status-tiles {
  grid-template-columns: repeat(6, minmax(0, 104px));
  justify-content: start;
}

body.theme-ops .status-tile .dot {
  display: none;
}
body.theme-ops .status-tile .name {
  font-size: 11px;
  font-weight: 650;
  color: var(--zk-ink);
  text-align: center;
  line-height: 1.2;
}
body.theme-ops .status-tile .val {
  font-family: var(--zk-mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 700;
  color: var(--zk-ink);
}

/* 有异常数值才标红；0 用正常黑字 */
body.theme-ops .status-tile.tone-bad .name,
body.theme-ops .status-tile.tone-bad .val {
  color: var(--zk-danger);
}
body.theme-ops .status-tile.tone-bad {
  background: var(--zk-danger-soft);
}

/* 只有降租有实际数值时才标绿 */
body.theme-ops .status-tile.tone-good .name,
body.theme-ops .status-tile.tone-good .val {
  color: var(--zk-ok);
}
body.theme-ops .status-tile.tone-good {
  background: var(--zk-ok-soft);
}

body.theme-ops .region-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

body.theme-ops .region-card {
  padding: 12px 14px 14px;
  background: var(--zk-canvas);
  border: 0;
  border-radius: var(--zk-radius-sm);
}

body.theme-ops .region-card .r-name {
  font-size: 13px;
  color: var(--zk-ink);
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--zk-line-soft);
  letter-spacing: 0.02em;
}

body.theme-ops .region-card .r-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 5px 0;
  color: var(--zk-muted);
  font-weight: 500;
}
body.theme-ops .region-card .r-row span:last-child {
  font-family: var(--zk-mono);
  font-variant-numeric: tabular-nums;
  color: var(--zk-ink);
  font-size: 13px;
  font-weight: 700;
}

body.theme-ops .region-card .r-rate {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 2px 0 6px;
}

body.theme-ops .region-card .r-rate .rate-bar {
  margin: 2px 0 8px;
}

body.theme-ops .promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

body.theme-ops .promo-tile {
  text-align: center;
  padding: 14px 8px;
  background: var(--zk-canvas);
  border: 0;
  border-radius: var(--zk-radius-sm);
}
body.theme-ops .promo-tile .n { font-size: 12px; color: var(--zk-muted); margin-bottom: 8px; font-weight: 600; letter-spacing: 0.04em; }
body.theme-ops .promo-tile .v {
  font-size: 24px;
  font-family: var(--zk-mono);
  font-variant-numeric: tabular-nums;
  color: var(--zk-ink);
  font-weight: 700;
}
body.theme-ops .promo-tile .sub {
  margin-top: 4px;
  font-size: 11px;
  color: var(--zk-muted);
  font-weight: 500;
}

body.theme-ops .promo-tile .n .promo-when {
  color: var(--zk-ink-2);
  letter-spacing: 0;
  font-weight: 650;
}

body.theme-ops .summary-empty-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--zk-muted);
  font-weight: 500;
  line-height: 1.45;
}

body.theme-ops .summary-quiet .metric-row .val {
  font-size: 16px;
  font-weight: 700;
}

body.theme-ops .legend {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 0;
  font-size: 12px;
  color: var(--zk-muted);
  font-weight: 500;
}

body.theme-ops .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.theme-ops .legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  border: 0;
}
body.theme-ops .legend-dot.g { background: var(--zk-ok); }
body.theme-ops .legend-dot.y { background: var(--zk-yellow); }
body.theme-ops .legend-dot.r { background: var(--zk-danger); }

body.theme-ops .footer-bar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px 28px;
  margin-top: auto;
  font-size: 12px;
  color: var(--zk-muted);
  font-weight: 400;
  border-top: 1px solid var(--zk-line);
  background: transparent;
}

body.theme-ops .ops-bottom-stripe {
  display: none;
}

body.theme-ops .footer-bar span {
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
}

body.theme-ops .locked-card {
  position: relative;
  opacity: 0.9;
  background: #f5f5f7 !important;
}
body.theme-ops .locked-card::after {
  content: none;
}
body.theme-ops .locked-card .kpi-value,
body.theme-ops .locked-card .val,
body.theme-ops .locked-card .value,
body.theme-ops .locked-card .num,
body.theme-ops .locked-card .v {
  color: var(--zk-muted) !important;
  font-size: 20px !important;
}
body.theme-ops .lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 0;
  color: var(--zk-muted);
  font-size: 11px;
  font-weight: 500;
  background: #f5f5f7;
}

body.theme-ops .ops-gate {
  max-width: 480px;
  margin: 72px auto;
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--zk-line);
  border-radius: 28px;
  box-shadow: none;
  color: var(--zk-ink);
}
body.theme-ops .ops-gate h2 { margin: 0 0 12px; font-weight: 600; letter-spacing: -0.03em; font-size: 28px; }
body.theme-ops .ops-gate p { color: var(--zk-muted); margin: 0 0 20px; font-weight: 400; font-size: 17px; }
body.theme-ops .ops-gate a.btn-link {
  display: inline-block;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--zk-blue);
  text-decoration: none;
  font-weight: 500;
}

@media (max-width: 1400px) {
  body.theme-ops .cockpit-main { grid-template-columns: 240px 1fr 240px; }
}
@media (max-width: 1100px) {
  body.theme-ops { min-width: 0; }
  body.theme-ops .cockpit-main { grid-template-columns: 1fr; }
  body.theme-ops .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.theme-ops .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.theme-ops .hero-kpis,
  body.theme-ops .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.theme-ops .andon-grid { min-width: 1100px; }
}

body.theme-ops .prov-dot circle {
  cursor: default;
  transition: transform 0.15s ease;
}
body.theme-ops .prov-dot:hover circle {
  filter: drop-shadow(0 0 3px rgba(13, 84, 162, 0.55));
}

body.theme-ops .legend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 2px;
  margin-top: -6px;
}
body.theme-ops .time-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  flex: 1;
  max-width: 440px;
}
body.theme-ops .time-progress .tp-text {
  font-size: 12px;
  color: var(--zk-ink-2);
  white-space: nowrap;
  font-weight: 500;
}
body.theme-ops .time-progress .tp-text strong {
  font-family: var(--zk-mono);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 700;
  color: var(--zk-ink);
  margin: 0 6px;
}
body.theme-ops .time-progress .tp-sub {
  color: var(--zk-muted);
  font-weight: 500;
}
body.theme-ops .time-progress .tp-bar {
  flex: 1;
  margin: 0;
  height: 6px;
  background: rgba(16, 24, 40, 0.08);
}
body.theme-ops .time-progress .tp-bar .rate-bar-fill {
  background: var(--zk-blue);
}


/* Apple inner-page refinements (ops pages also get .apple-app) */
body.theme-ops .apple-app .side-stack {
  height: auto;
  align-self: start;
}
body.theme-ops .apple-app .side-stack > .panel:last-child {
  flex: 0 0 auto;
}
body.theme-ops .apple-app .side-stack > .panel:last-child .mini-tiles {
  flex: none;
  align-content: start;
}

body.theme-ops .apple-app .ops-body {
  padding: 0 28px 24px;
}
body.theme-ops .panel,
body.theme-ops .kpi-card {
  box-shadow: none;
}
body.theme-ops .legend-dot.y { background: #c77b0a; }
body.theme-ops .ops-gate a.btn-link:hover {
  background: #0077ed;
  color: #fff;
  text-decoration: none;
}
@media (max-width: 900px) {
  body.theme-ops .apple-app .ops-body { padding: 0 16px 24px; }
  body.theme-ops .kpi-row { grid-template-columns: 1fr; }
  body.theme-ops .footer-bar { padding: 16px; flex-wrap: wrap; gap: 8px; }
}

/* 投流消耗与线索：工作台顶栏下方嵌入市场部单页 */
body.theme-ops .ads-screen { gap: 0; }
body.theme-ops .apple-app.ads-screen .ads-body {
  padding: 0;
  flex: 1;
  min-height: calc(100vh - 60px);
}
body.theme-ops .ads-frame {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 60px);
  border: 0;
  display: block;
  background: #f5f5f7;
}
