/* ==========================================================================
 * 天罡平台 · 大屏通用样式（1920×1080 设计基准，深色科技风）
 * 仅作用于 .screen-root / .screen-viewport，避免影响业务框架其它页面
 * ========================================================================== */

.screen-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #060d1f;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  color: #dff3ff;
  -webkit-font-smoothing: antialiased;
}

.screen-viewport *,
.screen-viewport *::before,
.screen-viewport *::after {
  box-sizing: border-box;
}

.screen-root {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  transform-origin: center center;
  background: #060d1f;
  overflow: hidden;
  --primary: #29b6f6;
  --green: #00e5a0;
  --red: #ff6b6b;
  --amber: #ffb020;
  --text: #dff3ff;
  --muted: #7fa6c8;
  --line: rgba(41, 182, 246, .22);
}

/* 背景：光晕 + 网格 + 暗角 */
.screen-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 16% 0%, rgba(41, 182, 246, .18), transparent 42%),
    radial-gradient(ellipse at 86% 8%, rgba(0, 229, 160, .10), transparent 40%),
    radial-gradient(ellipse at 50% 112%, rgba(71, 106, 255, .15), transparent 52%),
    linear-gradient(180deg, #071128 0%, #060d1f 48%, #050b1a 100%);
}

.screen-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(41, 182, 246, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 182, 246, .045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 78%);
}

.screen-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .018) 0, rgba(255, 255, 255, .018) 1px, transparent 1px, transparent 4px);
  opacity: .55;
  pointer-events: none;
}

/* 边角装饰 */
.screen-frame {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(41, 182, 246, .10);
  pointer-events: none;
  z-index: 1;
}

.screen-frame::before,
.screen-frame::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 3px;
  background: linear-gradient(90deg, #00e5a0, #29b6f6, transparent);
  box-shadow: 0 0 12px rgba(41, 182, 246, .7);
}

.screen-frame::before {
  left: 0;
  top: 0;
}

.screen-frame::after {
  right: 0;
  bottom: 0;
  transform: rotate(180deg);
}

/* 顶栏 */
.screen-header {
  position: relative;
  z-index: 4;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  background: linear-gradient(180deg, rgba(10, 31, 66, .92) 0%, rgba(6, 17, 38, .55) 72%, rgba(6, 17, 38, 0) 100%);
  border-bottom: 1px solid rgba(41, 182, 246, .16);
}

.screen-header::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41, 182, 246, .75), rgba(0, 229, 160, .55), transparent);
  box-shadow: 0 0 18px rgba(41, 182, 246, .45);
}

.screen-header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 220px;
  height: 14px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(41, 182, 246, .35), transparent 70%);
  pointer-events: none;
}

.screen-title-wrap {
  position: relative;
  padding-left: 20px;
  min-width: 420px;
}

.screen-title-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 11px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #00e5a0, #29b6f6);
  box-shadow: 0 0 14px rgba(41, 182, 246, .9);
}

.screen-kicker {
  display: block;
  font-size: calc(10px + var(--fs-bump));
  letter-spacing: 3px;
  color: rgba(41, 182, 246, .68);
  line-height: 1;
  margin-bottom: 4px;
  font-family: Consolas, Monaco, monospace;
}

.screen-title-wrap h1 {
  margin: 0;
  font-size: calc(29px + var(--fs-bump));
  line-height: 1.12;
  letter-spacing: 5px;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 0%, #c6edff 52%, #6fc8f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(41, 182, 246, .28);
  white-space: nowrap;
}

.screen-title-wrap p {
  margin: 3px 0 0;
  font-size: calc(10px + var(--fs-bump));
  letter-spacing: 2.2px;
  color: rgba(127, 166, 200, .9);
  font-family: Consolas, Monaco, monospace;
  text-transform: uppercase;
  white-space: nowrap;
}

.screen-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: calc(12px + var(--fs-bump));
  color: var(--muted);
}

.data-source {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  border-radius: 3px;
  border: 1px solid rgba(41, 182, 246, .22);
  background: rgba(10, 32, 64, .55);
  font-size: calc(11px + var(--fs-bump));
  color: #a8cce8;
}

.data-source i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(255, 176, 32, .9);
}

.data-source.live i {
  background: var(--green);
  box-shadow: 0 0 9px rgba(0, 229, 160, .9);
  animation: tgPulse 1.8s infinite;
}

.data-source.stale i {
  background: var(--red);
  box-shadow: 0 0 9px rgba(255, 107, 107, .9);
}

.refresh-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px;
  border-radius: 3px;
  border: 1px solid rgba(41, 182, 246, .22);
  background: rgba(10, 32, 64, .55);
}

.refresh-select {
  appearance: none;
  -webkit-appearance: none;
  height: 22px;
  padding: 0 16px 0 6px;
  border: none;
  outline: none;
  background: transparent url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%2329b6f6'/%3E%3C/svg%3E") no-repeat right 3px center;
  color: #bfe4fa;
  font-size: calc(11px + var(--fs-bump));
  cursor: pointer;
}

.refresh-select option {
  background: #0a1e3c;
  color: #dff3ff;
}

.screen-btn {
  height: 28px;
  padding: 0 11px;
  border-radius: 3px;
  border: 1px solid rgba(41, 182, 246, .35);
  background: linear-gradient(180deg, rgba(41, 182, 246, .20), rgba(41, 182, 246, .06));
  color: #cdeeff;
  font-size: calc(11px + var(--fs-bump));
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, box-shadow .2s, border-color .2s;
}

.screen-btn:hover {
  border-color: rgba(0, 229, 160, .7);
  box-shadow: 0 0 12px rgba(0, 229, 160, .25);
  background: linear-gradient(180deg, rgba(0, 229, 160, .20), rgba(41, 182, 246, .08));
}

.screen-clock {
  font-family: Consolas, Monaco, monospace;
  font-size: calc(12px + var(--fs-bump));
  letter-spacing: .6px;
  color: #a8cce8;
  min-width: 132px;
  text-align: right;
}

/* 内容栅格：12 列 × 6 行 */
.screen-body {
  position: absolute;
  left: 0;
  right: 0;
  top: 78px;
  bottom: 0;
  padding: 14px 22px 18px;
  z-index: 2;
}

.screen-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

/* 卡片 */
.screen-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 5px;
  border: 1px solid rgba(41, 182, 246, .21);
  background:
    linear-gradient(180deg, rgba(17, 43, 82, .82) 0%, rgba(9, 22, 46, .92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(143, 216, 255, .06),
    inset 0 0 30px rgba(41, 182, 246, .035),
    0 10px 30px rgba(0, 0, 0, .30);
  overflow: hidden;
  animation: tgCardIn .55s cubic-bezier(.2, .8, .2, 1) both;
}

.screen-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-left: 2px solid rgba(0, 229, 160, .75);
  border-top: 2px solid rgba(0, 229, 160, .75);
  border-radius: 4px 0 0 0;
  pointer-events: none;
  z-index: 2;
}

.screen-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  border-right: 2px solid rgba(41, 182, 246, .55);
  border-bottom: 2px solid rgba(41, 182, 246, .55);
  border-radius: 0 0 4px 0;
  pointer-events: none;
  z-index: 2;
}

.screen-card:hover {
  border-color: rgba(41, 182, 246, .40);
}

.card-head {
  position: relative;
  flex: 0 0 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 14px;
  border-bottom: 1px solid rgba(41, 182, 246, .10);
  background: linear-gradient(90deg, rgba(41, 182, 246, .12) 0%, rgba(41, 182, 246, .02) 52%, transparent 100%);
  z-index: 3;
}

.card-title {
  position: relative;
  padding-left: 10px;
  font-size: calc(14px + var(--fs-bump));
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #e9f8ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 13px;
  border-radius: 2px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #00e5a0, #29b6f6);
  box-shadow: 0 0 8px rgba(41, 182, 246, .85);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: calc(9.5px + var(--fs-bump));
  color: #6f96b8;
  white-space: nowrap;
  margin-left: 8px;
}

.card-unit {
  color: rgba(0, 229, 160, .78);
}

.card-updated {
  font-family: Consolas, Monaco, monospace;
  color: #5e86a8;
}

.card-badge {
  padding: 1px 5px;
  border-radius: 2px;
  font-size: calc(9px + var(--fs-bump));
  line-height: 14px;
  letter-spacing: .4px;
}

.card-badge.demo {
  color: var(--amber);
  border: 1px solid rgba(255, 176, 32, .35);
  background: rgba(255, 176, 32, .09);
}

.card-badge.stale {
  color: var(--red);
  border: 1px solid rgba(255, 107, 107, .35);
  background: rgba(255, 107, 107, .09);
}

.card-badge.live {
  color: var(--green);
  border: 1px solid rgba(0, 229, 160, .35);
  background: rgba(0, 229, 160, .09);
}

.card-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 6px 8px 8px;
  overflow: hidden;
}

/* KPI */
.kpi-grid {
  height: 100%;
  display: grid;
  gap: 10px;
}

.kpi-grid.kpi-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-grid.kpi-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.kpi-tile {
  position: relative;
  min-width: 0;
  padding: 10px 14px 8px;
  border-radius: 4px;
  border: 1px solid rgba(41, 182, 246, .16);
  background:
    linear-gradient(135deg, rgba(41, 182, 246, .10), rgba(41, 182, 246, .015) 62%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  transition: transform .2s, border-color .2s, background .2s;
}

.kpi-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: var(--kpi-color, #29b6f6);
  box-shadow: 0 0 10px var(--kpi-color, #29b6f6);
}

.kpi-tile::after {
  content: "";
  position: absolute;
  right: -26px;
  top: -26px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--kpi-color, #29b6f6) 0%, transparent 68%);
  opacity: .10;
  pointer-events: none;
}

.kpi-tile.clickable {
  cursor: pointer;
}

.kpi-tile.clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(41, 182, 246, .45);
  background: linear-gradient(135deg, rgba(41, 182, 246, .18), rgba(41, 182, 246, .03) 62%, transparent);
}

.kpi-label {
  font-size: calc(11.5px + var(--fs-bump));
  letter-spacing: 1.2px;
  color: #8fb4d2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
  line-height: 1;
}

.kpi-value {
  font-family: Consolas, Monaco, "Microsoft YaHei", monospace;
  font-size: calc(28px + var(--fs-bump));
  font-weight: 700;
  letter-spacing: .5px;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(41, 182, 246, .55);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.kpi-unit {
  font-size: calc(10px + var(--fs-bump));
  color: #7fa6c8;
  white-space: nowrap;
}

.kpi-sub {
  margin-top: 4px;
  font-size: calc(9.5px + var(--fs-bump));
  color: #6f96b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-sub.up {
  color: var(--green);
}

.kpi-sub.down {
  color: var(--red);
}

/* SVG 图表 */
.tg-chart {
  display: block;
  overflow: visible;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.tg-chart text {
  user-select: none;
}

.tg-chart .tg-tip {
  transition: opacity .12s;
}

/* HTML 列表 */
.tg-list {
  height: 100%;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(41, 182, 246, .35) transparent;
}

.tg-list::-webkit-scrollbar {
  width: 5px;
}

.tg-list::-webkit-scrollbar-thumb {
  background: rgba(41, 182, 246, .30);
  border-radius: 3px;
}

.tg-list-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 5px 6px;
  border-bottom: 1px dashed rgba(41, 182, 246, .10);
  font-size: calc(11px + var(--fs-bump));
  transition: background .15s;
}

.tg-list-row:last-child {
  border-bottom: none;
}

.tg-list-row.clickable {
  cursor: pointer;
}

.tg-list-row.clickable:hover {
  background: linear-gradient(90deg, rgba(41, 182, 246, .12), transparent);
}

.tg-list-tag {
  flex: 0 0 auto;
  padding: 1px 5px;
  border-radius: 2px;
  font-size: calc(9px + var(--fs-bump));
  color: var(--red);
  border: 1px solid rgba(255, 107, 107, .35);
  background: rgba(255, 107, 107, .09);
}

.tg-list-tag.medium {
  color: var(--amber);
  border-color: rgba(255, 176, 32, .35);
  background: rgba(255, 176, 32, .09);
}

.tg-list-tag.low {
  color: var(--green);
  border-color: rgba(0, 229, 160, .35);
  background: rgba(0, 229, 160, .09);
}

.tg-list-tag.info {
  color: var(--primary);
  border-color: rgba(41, 182, 246, .35);
  background: rgba(41, 182, 246, .09);
}

.tg-list-main {
  flex: 1 1 auto;
  min-width: 0;
}

.tg-list-title {
  color: #cfe8f8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-list-meta {
  margin-top: 2px;
  font-size: calc(9px + var(--fs-bump));
  color: #6f96b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-list-value {
  flex: 0 0 auto;
  font-family: Consolas, Monaco, monospace;
  font-size: calc(11px + var(--fs-bump));
  color: #ffd38a;
}

.tg-list-empty {
  padding: 24px 0;
  text-align: center;
  color: #5e86a8;
  font-size: calc(11px + var(--fs-bump));
}

/* 两栏小指标（合规达标率等） */
.mini-metrics {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 6px;
}

.mini-metric {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  border-right: 1px dashed rgba(41, 182, 246, .12);
}

.mini-metric:last-child {
  border-right: none;
}

.mini-metric .mm-value {
  font-family: Consolas, Monaco, monospace;
  font-size: calc(26px + var(--fs-bump));
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(41, 182, 246, .45);
}

.mini-metric .mm-unit {
  font-size: calc(10px + var(--fs-bump));
  color: #7fa6c8;
  margin-left: 2px;
}

.mini-metric .mm-label {
  margin-top: 3px;
  font-size: calc(10px + var(--fs-bump));
  color: #8fb4d2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
  .screen-card,
  .kpi-tile,
  .data-source i {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes tgCardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tgPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: .45;
    transform: scale(.82);
  }
}

/* ==========================================================================
   大屏管理 · 可视化编辑器 / 保存列表 / 已发布运行页
   ========================================================================== */
.ed-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 660px;
}

.ed-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border: 1px solid #dbe6f2;
  border-radius: 10px;
  background: #fff;
}

.ed-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.ed-brand-title {
  font-size: 15px;
  font-weight: 600;
  color: #10263d;
}

.ed-code {
  font-size: 11px;
  color: #7c93aa;
  font-family: ui-monospace, Consolas, monospace;
}

.ed-name {
  width: 220px;
}

.ed-status {
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 12px;
  color: #5b7390;
  background: #eef4fa;
}

.ed-status.dirty { color: #a55a00; background: #fff3e0; }
.ed-status.saved { color: #16794b; background: #e6f7ee; }
.ed-status.published { color: #0b62b5; background: #e3f0ff; }
.ed-status.error { color: #b3261e; background: #fdecea; }

.ed-open-select { max-width: 190px; }

.ed-main {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 330px;
  gap: 12px;
  align-items: start;
}

.ed-lib,
.ed-props {
  border: 1px solid #dbe6f2;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  max-height: 720px;
  overflow: auto;
}

.ed-lib-title,
.ed-prop-title {
  font-size: 13px;
  font-weight: 600;
  color: #10263d;
  margin: 4px 0 10px;
}

.ed-prop-title { margin-top: 0; }
.ed-prop-sub { margin: 16px 0 8px; font-size: 13px; font-weight: 600; color: #10263d; }

.ed-lib-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.ed-lib-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  background: #f8fbff;
  color: #21405e;
  font-size: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.ed-lib-item:hover { border-color: #2f7de1; background: #eef6ff; }
.ed-lib-icon { font-size: 14px; color: #2f7de1; width: 16px; text-align: center; }
.ed-lib-swatch { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0,0,0,.15); }

.ed-canvas-wrap {
  position: relative;
  border: 1px solid #dbe6f2;
  border-radius: 10px;
  background: #eef2f7;
  padding: 12px;
  overflow: hidden;
}

.ed-canvas {
  transform-origin: top left;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 24px rgba(8, 26, 48, .22);
}

.ed-canvas.grid-on::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 190, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 190, 255, .07) 1px, transparent 1px);
  background-size: 40px 40px;
}

.ed-canvas-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 18px;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #eaf6ff;
  pointer-events: none;
  z-index: 2;
}

.ed-canvas-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7fa6c8;
  font-size: 18px;
  text-align: center;
  padding: 40px;
}

.ed-widget {
  position: absolute;
  border-radius: 8px;
  border: 1px solid rgba(74, 158, 236, .28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: move;
  transition: box-shadow .12s, border-color .12s;
}

.ed-widget.active {
  border-color: #2f7de1;
  box-shadow: 0 0 0 2px rgba(47, 125, 225, .55);
}

.ed-widget.readonly { cursor: default; }

.ed-widget-head {
  height: 32px;
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: rgba(20, 62, 108, .55);
  border-bottom: 1px solid rgba(74, 158, 236, .22);
}

.ed-widget-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #cfe8ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ed-widget-del {
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  border-radius: 4px;
  color: #9dc4e6;
  cursor: pointer;
}

.ed-widget-del:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.ed-widget-body {
  flex: 1;
  min-height: 0;
  padding: 6px 10px 10px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.ed-widget-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 48%, rgba(47, 125, 225, .85) 50%);
}

.ed-text { width: 100%; line-height: 1.6; }
.ed-kpi { width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.ed-kpi-value { font-size: 34px; font-weight: 700; color: #5fd0ff; letter-spacing: 1px; }
.ed-kpi-label { margin-top: 4px; font-size: 13px; color: #9fc9e8; }

.ed-table { width: 100%; border-collapse: collapse; font-size: 12px; color: #d9ecff; }
.ed-table th {
  text-align: left;
  padding: 6px 8px;
  background: rgba(25, 70, 118, .65);
  color: #a9d4f5;
  font-weight: 600;
  white-space: nowrap;
}
.ed-table td {
  padding: 5px 8px;
  border-bottom: 1px solid rgba(74, 158, 236, .14);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ed-field { margin-bottom: 10px; }
.ed-field > label {
  display: block;
  font-size: 12px;
  color: #5b7390;
  margin-bottom: 4px;
}

.ed-grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.ed-muted { font-size: 12px; color: #8199b0; line-height: 1.6; }
.ed-hint { font-size: 11px; color: #7c93aa; line-height: 1.6; margin: 6px 0 8px; }
.ed-textarea { width: 100%; resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 12px; line-height: 1.5; }

.ed-seg { display: flex; gap: 6px; margin-bottom: 10px; }
.ed-seg-btn {
  flex: 1;
  padding: 6px 8px;
  font-size: 12px;
  border: 1px solid #dbe6f2;
  border-radius: 6px;
  background: #f8fbff;
  color: #21405e;
  cursor: pointer;
}
.ed-seg-btn.active { border-color: #2f7de1; background: #e8f2ff; color: #0b62b5; font-weight: 600; }

.ed-fields {
  max-height: 150px;
  overflow: auto;
  border: 1px solid #dbe6f2;
  border-radius: 6px;
  padding: 6px;
  background: #fbfdff;
}
.ed-check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #35506b; padding: 2px 0; }

/* 大屏保存列表 */
.ed-store-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border: 1px solid #dbe6f2;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 12px;
}
.ed-store-title { font-size: 15px; font-weight: 600; color: #10263d; }
.ed-store-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
.ed-store-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f4f8fd;
  color: #526b85;
  font-weight: 600;
  border-bottom: 1px solid #e3ecf6;
  white-space: nowrap;
}
.ed-store-table td { padding: 10px 12px; border-bottom: 1px solid #eef3f9; color: #25405a; }
.ed-store-table tr:hover td { background: #f9fcff; }
.ed-store-table .cell-main { font-weight: 600; color: #10263d; }
.ed-store-list .btn-xs { margin-right: 4px; }

/* 已发布大屏运行页 */
.ed-runtime-stage { padding: 12px; }
.ed-runtime-wrap {
  border: none;
  background: transparent;
  padding: 0;
}
.ed-runtime .ed-canvas { margin: 0 auto; }

@media (max-width: 1440px) {
  .ed-main { grid-template-columns: 190px minmax(0, 1fr) 300px; }
}

@media (max-width: 1180px) {
  .ed-main { grid-template-columns: 1fr; }
  .ed-lib, .ed-props { max-height: none; }
}

