.padded { box-shadow: none; }

/* ============ 左：虚拟数据大屏 ============ */
.overview-grid { grid-template-columns: minmax(0, 1.98fr) minmax(322px, 1fr); align-items: stretch; min-height: calc(100dvh - 218px); }

.screen {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  padding: clamp(15px, 1.7vw, 22px);
  border: 1px solid #2b4b3f; border-radius: 12px;
  background:
    radial-gradient(ellipse at 8% -6%, #2f6350c4 0%, transparent 56%),
    linear-gradient(158deg, #16332b 0%, #0e201b 58%, #0a1714 100%);
  color: #d5e3d7;
  box-shadow: inset 0 0 0 1px #ffffff0a, 0 10px 26px #0d211b30;
}
.screen::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(#9fd6c017 1px, transparent 1px),
    linear-gradient(90deg, #9fd6c017 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 32%, transparent 76%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 32%, transparent 76%);
}
.screen-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.screen-head h2 { color: #fff2d2; font-size: clamp(17px, 1.5vw, 21px); letter-spacing: .05em; }
.screen-head p { margin-top: 5px; color: #8fa79b; font-size: 12.5px; line-height: 1.5; }
.screen-live {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; white-space: nowrap;
  padding: 4px 11px; border: 1px solid #4d7c68; border-radius: 999px;
  color: #a9dcbe; font-size: 11.5px; letter-spacing: .1em;
}
.screen-live i { width: 6px; height: 6px; border-radius: 50%; background: #5fd39a; box-shadow: 0 0 9px #5fd39a; animation: live-blink 1.7s ease-in-out infinite; }
@keyframes live-blink { 0%, 100% { opacity: 1; } 50% { opacity: .22; } }

.screen-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.screen-kpi {
  padding: 9px 11px 10px; border: 1px solid #2e5245; border-radius: 9px;
  background: linear-gradient(160deg, #1a3d33, #102922);
}
.screen-kpi > span { display: block; color: #93ab9d; font-size: 12px; letter-spacing: .05em; }
.screen-kpi strong {
  display: block; margin-top: 2px; color: #ffeec7;
  font: 700 clamp(19px, 2vw, 28px)/1.15 Georgia, "Songti SC", serif; font-variant-numeric: tabular-nums;
}
.screen-kpi small { margin-left: 3px; color: #b9cbbd; font-size: 12px; }
.screen-kpi em { display: block; margin-top: 2px; color: #f0a17c; font-size: 11.5px; font-style: normal; }

/* 趋势图基础样式（大屏内会覆盖配色） */
.trend-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin-top: 9px; border-bottom: 1px solid var(--border); }
.trend-metrics > button { border: 0; border-bottom: 3px solid transparent; padding: 9px 10px 7px; text-align: left; background: none; color: var(--subtle); }
.trend-metrics > button:hover { background: #f5f5ed; }
.trend-metrics > button[aria-pressed="true"] { border-bottom-color: var(--forest); background: #eef2e8; }
.trend-metrics span, .trend-metrics strong { display: block; }
.trend-metrics span { font-size: 14px; }
.trend-metrics strong { color: var(--heading); font-size: clamp(18px, 2vw, 30px); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trend-chart { --plot-height: 152px; }
.trend-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; padding-top: 9px; color: var(--subtle); font-size: 13px; }
.trend-caption output { color: var(--forest); font-weight: 700; white-space: nowrap; }
.trend-plot { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 9px; margin-top: 10px; }
.trend-scale { height: var(--plot-height); position: relative; display: flex; flex-direction: column; justify-content: space-between; text-align: right; color: var(--subtle); font-size: 12px; line-height: 1; }
.trend-scale > span:first-child { transform: translateY(-50%); }
.trend-scale > span:last-child { transform: translateY(50%); }
.trend-columns { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.trend-columns::before {
  content: ""; position: absolute; inset: 0 0 auto; z-index: -1; height: var(--plot-height);
  background: repeating-linear-gradient(to bottom, #e8e9df 0 1px, transparent 1px 25%);
  border-bottom: 1px solid #cccec1;
}
.trend-column { min-width: 0; text-align: center; }
.trend-target { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; height: var(--plot-height); padding: 0; border: 0; border-radius: 0; background: transparent; }
.trend-target:hover { background: #e0e8dc60; }
.trend-target i { width: 55%; max-width: 48px; height: var(--value); border-radius: 3px 3px 0 0; background: #97b4a1; }
.trend-target[aria-pressed="true"] i, .trend-target:focus-visible i { background: var(--forest); }
.trend-date { display: block; margin-top: 5px; color: var(--subtle); white-space: nowrap; font-size: 12px; }

.screen-chart { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; margin-top: 6px; }
.screen .trend-chart { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.screen .trend-metrics { flex: 0 0 auto; }
.screen .trend-caption { flex: 0 0 auto; }
.screen .trend-plot { flex: 1 1 auto; min-height: 104px; }
.screen .trend-scale { height: calc(100% - 21px); }
.screen .trend-columns { height: 100%; }
.screen .trend-column { display: flex; flex-direction: column; height: 100%; }
.screen .trend-target { flex: 1 1 auto; height: auto; min-height: 0; }
.screen .trend-columns::before { height: calc(100% - 21px); }
.screen .trend-metrics { border-bottom-color: #ffffff1f; margin-top: 8px; }
.screen .trend-metrics > button { color: #8fa79b; padding: 8px 10px 7px; }
.screen .trend-metrics > button:hover { background: #ffffff0d; }
.screen .trend-metrics > button[aria-pressed="true"] {
  background: linear-gradient(180deg, #ffffff14, #ffffff00); border-bottom-color: #e0b96f;
}
.screen .trend-metrics strong { color: #fff2d2; }
.screen .trend-caption { color: #8fa79b; padding-top: 8px; }
.screen .trend-caption output { color: #f0d6a2; }
.screen .trend-chart { --plot-height: clamp(128px, 16vh, 168px); }
.screen .trend-scale { color: #7c9488; }
.screen .trend-columns::before {
  background: repeating-linear-gradient(to bottom, #ffffff0f 0 1px, transparent 1px 25%);
  border-bottom-color: #ffffff24;
}
.screen .trend-target:hover { background: #ffffff0a; }
.screen .trend-target i {
  background: linear-gradient(180deg, #e8c68c, #b98d4d);
  box-shadow: 0 0 10px #e8c68c4d;
}
.screen .trend-target[aria-pressed="true"] i {
  background: linear-gradient(180deg, #93e3c2, #3f9e83);
  box-shadow: 0 0 16px #6fd9b06b;
}
.screen .trend-date { color: #7c9488; }

.screen-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(208px, 1fr)); gap: 11px; margin-top: 12px; flex: 0 0 auto; }
.screen-mini > section { padding: 10px 12px 11px; border: 1px solid #2a4a3e; border-radius: 9px; background: #0f2721b3; }
.screen-mini h3 { margin-bottom: 8px; color: #cfe1d4; font-size: 13.5px; font-weight: 700; letter-spacing: .08em; }
.bar-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.bar-list li { display: grid; grid-template-columns: 58px minmax(0, 1fr) 44px; align-items: center; gap: 8px; font-size: 12.5px; }
.bar-label { color: #a5bdae; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 7px; border-radius: 4px; background: #ffffff12; overflow: hidden; }
.bar-track i {
  display: block; width: var(--w); height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #3f9e83, #8fe0c0);
  transform-origin: left; animation: bar-grow .7s cubic-bezier(.2,.7,.3,1) both;
}
.bar-list li:first-child .bar-track i { background: linear-gradient(90deg, #c79a5c, #f2d8a4); }
@keyframes bar-grow { from { transform: scaleX(.1); opacity: .4; } to { transform: scaleX(1); opacity: 1; } }
.bar-value { color: #d9e7dc; text-align: right; font-variant-numeric: tabular-nums; }

.screen-hours h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.screen-hours h3 span { color: #8fa79b; font-size: 10.5px; font-weight: 400; letter-spacing: 0; }
.hour-strip { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); align-items: end; gap: 2px; height: clamp(48px, 7vh, 64px); }
.hour-strip i { display: block; height: var(--h); min-height: 2px; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #8fe0c0, #2f7f68); opacity: .8; }
.hour-strip i:nth-child(19), .hour-strip i:nth-child(20), .hour-strip i:nth-child(21) {
  background: linear-gradient(180deg, #f4d9a6, #c08f4c); opacity: 1;
}
.hour-axis { display: flex; justify-content: space-between; margin-top: 5px; color: #7c9488; font-size: 10.5px; }

/* ============ 右：物料优化清单 ============ */
.overview-grid .panel { box-shadow: none; }
.overview-grid .overview-list { padding: 17px clamp(14px, 1.7vw, 22px); display: flex; flex-direction: column; }
.overview-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.overview-panel-head h2 { font-size: 20px; }
.overview-panel-head span { color: var(--subtle); font-size: 13px; white-space: nowrap; }

.check-list { flex: 1; display: grid; grid-auto-rows: minmax(62px, 88px); align-content: space-between; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.check-row {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 100%;
  padding: 11px 12px; border: 1px solid #e7e4d7; border-radius: 9px;
  background: #faf9f4; color: inherit; text-align: left;
  transition: background .16s, border-color .16s;
}
.check-row:hover { background: #eef2e8; border-color: #b9cbbc; }
.check-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.check-line { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.check-line b { color: var(--heading); font-size: 15px; white-space: nowrap; }
.check-topic { color: var(--body); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-before { color: var(--subtle); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-go { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; color: var(--forest); font-size: 12.5px; font-weight: 650; }
.check-go i { font-style: normal; font-size: 16px; line-height: 1; }

.list-foot {
  margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e6e2d2;
  color: var(--subtle); font-size: 12px; line-height: 1.6;
}
.group-status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--subtle); font-size: 12.5px; }
.group-status i { inline-size: 7px; aspect-ratio: 1; border-radius: 50%; flex-shrink: 0; }
.group-status.waiting i { background: #a6aa9c; }
.group-status.editing i { background: #ac7538; }
.group-status.measured i { background: #3f715c; }

@media (max-width: 1180px) {
  .overview-grid { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
  .screen-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-hours { grid-column: 1 / -1; }
  .check-go { font-size: 0; gap: 0; }
  .check-go i { font-size: 19px; }
}
@media (max-width: 900px) {
  .overview-grid { grid-template-columns: 1fr; }
  .screen-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .check-list { align-content: start; }
}
@media (max-width: 560px) {
  .screen { padding: 14px 13px; }
  .screen-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .screen-kpis { gap: 7px; }
  .screen-kpi strong { font-size: 19px; }
  .screen-mini { grid-template-columns: 1fr; }
  .screen-hours { grid-column: auto; }
  .screen .trend-metrics span { font-size: 12px; }
  .screen .trend-metrics strong { font-size: 16px; }
  .screen .trend-date { font-size: 11px; }
  .check-row { padding: 9px 10px; }
}
