/* 由 tools/build_storage.py 生成，请勿手改；改样式请改 tools/storage_src/template.html 后重跑 */
#board-storage * { box-sizing: border-box; }
#board-storage .btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 11px;
  font: inherit; font-size: 11.5px; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
#board-storage .btn:hover { background: #FCFCFA; border-color: #C6CEC5; }
#board-storage .btn:active { transform: translateY(.5px); }
#board-storage .btn svg { color: var(--ink-3); }
#board-storage .btn-xs { height: 24px; padding: 0 9px; gap: 5px; font-size: 11px; }
#board-storage .btn-xs svg { width: 12px; height: 12px; }
#board-storage .btn-xs span { white-space: nowrap; }
#board-storage .sday {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 58px; padding: 5px 8px 4px;
  font: inherit; text-align: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r);
  color: var(--ink-2);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
#board-storage .sday:hover { background: #E6EAE3; }
#board-storage .sday .dw { font-size: 9.5px; color: var(--ink-3); letter-spacing: .02em; }
#board-storage .sday .dd { font-size: 12px; font-weight: 500; }
#board-storage .sday .st { width: 4px; height: 4px; margin-top: 2px; border-radius: 50%; background: transparent; }
#board-storage .sday .st.ok { background: var(--sprout); }
#board-storage .sday .st.partial { background: var(--rt); }
#board-storage .sday .st.empty, #board-storage .sday .st.none { background: #C9D1C8; }
#board-storage .sday.is-on { background: var(--ink); color: #F4F6F2; }
#board-storage .sday.is-on .dw { color: #A9B8AC; }
#board-storage .sday.is-on .st.ok { background: #8FBF9D; }
#board-storage .sday.is-on .st.none { background: #5E6B62; }
#board-storage .sday[disabled] { cursor: default; opacity: .72; }
#board-storage .sday[disabled]:hover { background: transparent; }
#board-storage .sday .dg { font-size: 8px; letter-spacing: .04em; color: var(--ink-3); }
#board-storage .sday.is-on .dg { color: #8FA096; }
#board-storage .block { padding-top: 30px; }
#board-storage .block + .block { margin-top: 26px; border-top: 1px solid var(--rule); }
#board-storage .block-hd {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 11px;
}
#board-storage .hd-title h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
#board-storage .hint { margin: 3px 0 0; font-size: 11.5px; color: var(--ink-3); }
#board-storage .hd-ctl { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
#board-storage .panel {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 12px 14px 10px;
}
#board-storage .panel-tight { padding: 0; overflow: hidden; }
#board-storage .cell { display: flex; flex-direction: column; min-width: 0; }
#board-storage .cell > .panel { flex: 1 1 auto; }
#board-storage .grid { display: grid; gap: 26px; }
#board-storage .g-7-5 { grid-template-columns: 7fr 5fr; }
#board-storage .g-6-6 { grid-template-columns: 1fr 1fr; }
#board-storage .block-hero {
  margin-top: 18px;
  padding: 22px 24px 14px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r);
}
#board-storage .hero-grid {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) 268px;
  gap: 30px; align-items: start;
  padding-bottom: 16px;
}
#board-storage .hero-date {
  font-size: 46px; font-weight: 600; line-height: 1;
  letter-spacing: -.025em; font-variant-numeric: tabular-nums;
}
#board-storage .hero-day { margin-top: 9px; font-size: 11.5px; color: var(--ink-3); }
#board-storage .hero-note {
  margin: 14px 0 0; padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 11px; color: var(--ink-3); line-height: 1.7;
}
#board-storage .hero-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; }
#board-storage .kpi { padding: 2px 0 0; }
#board-storage .kpi + .kpi { border-left: 1px solid var(--rule-2); padding-left: 22px; }
#board-storage .kpi .k-label { font-size: 11px; color: var(--ink-3); }
#board-storage .kpi .k-main {
  margin-top: 3px; font-size: 27px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em;
}
#board-storage .kpi .k-main .u { font-size: 11px; font-weight: 500; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
#board-storage .kpi .k-sub { margin-top: 5px; font-size: 11.5px; color: var(--ink-2); }
#board-storage .kpi .k-sub em { font-style: normal; color: var(--ink-3); }
#board-storage .kpi .k-sub b { font-weight: 600; }
#board-storage .hero-spark { padding-top: 2px; position: relative; }
#board-storage .spark-head {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 11px; color: var(--ink-3); padding-bottom: 2px;
}
#board-storage .spark-range { font-size: 10.5px; }
#board-storage .spark { height: 58px; }
#board-storage .spark-legend {
  display: flex; align-items: center; gap: 14px;
  padding-top: 5px; font-size: 10.5px; color: var(--ink-3);
}
#board-storage .spark-legend span { display: inline-flex; align-items: center; gap: 5px; }
#board-storage .spark-legend i { width: 13px; height: 2px; background: var(--da); border-radius: 1px; }
#board-storage .spark-legend i.dash {
  background: none;
  background-image: repeating-linear-gradient(90deg, var(--ink-3) 0 4px, transparent 4px 7px);
}
#board-storage .spark-legend b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
#board-storage .hero-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 12px 0 2px;
  border-top: 1px solid var(--rule-2);
}
#board-storage .fig { display: flex; align-items: baseline; gap: 8px; }
#board-storage .fig .f-label { font-size: 11px; color: var(--ink-3); }
#board-storage .fig .f-val { font-size: 13.5px; font-weight: 600; }
#board-storage .fig .f-val .u { font-size: 10.5px; font-weight: 400; color: var(--ink-3); margin-left: 2px; }
#board-storage .legend { display: flex; flex-wrap: wrap; gap: 3px 20px; margin-bottom: 8px; }
#board-storage .lg-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 2px 0; border: 0; background: none;
  font: inherit; font-size: 11.5px; color: var(--ink-2);
  cursor: pointer; transition: opacity 150ms ease;
}
#board-storage .lg-item .sw { width: 16px; height: 2px; border-radius: 1px; }
#board-storage .lg-item .sw.dash {
  background: none !important;
  background-image: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px) !important;
}
#board-storage .lg-item .sw.sq { width: 8px; height: 8px; border-radius: 1px; }
#board-storage .lg-item .sw.half { opacity: .38; }
#board-storage .lg-item .v { font-size: 11px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
#board-storage .lg-item.is-off { opacity: .32; }
#board-storage .lg-item.is-static { cursor: default; }
#board-storage .lg-item.is-static:hover { color: var(--ink-2); }
#board-storage .seg {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
}
#board-storage .seg button {
  font: inherit; font-size: 11px; padding: 5px 9px;
  color: var(--ink-2); background: none; border: 0;
  border-right: 1px solid var(--rule-2);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
#board-storage .seg button:last-child { border-right: 0; }
#board-storage .seg button:hover { background: #EFF2EC; }
#board-storage .seg button.is-on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--sprout); }
#board-storage .badge {
  font-size: 10.5px; color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  padding: 2px 7px; white-space: nowrap;
}
#board-storage .badge:empty { display: none; }
#board-storage :focus-visible { outline: 2px solid var(--sprout); outline-offset: 1px; border-radius: 2px; }
#board-storage .chart { width: 100%; }
#board-storage .chart-lg { height: 336px; }
#board-storage .chart-md { height: 244px; }
#board-storage .chart-spark { height: 58px; }
#board-storage .chart-note {
  margin-top: auto; padding-top: 8px;
  border-top: 1px solid var(--rule-2);
  font-size: 10.5px; color: var(--ink-3); line-height: 1.7;
}
#board-storage .mx-head, #board-storage .mx-row {
  display: grid;
  grid-template-columns: 106px 82px repeat(5, minmax(0, 1fr)) 112px;
  align-items: center;
}
#board-storage .mx-head {
  align-items: start;
  padding: 0 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--rule-2);
  font-size: 10.5px; color: var(--ink-3);
}
#board-storage .mx-head > span { padding: 8px 10px 7px; }
#board-storage .mx-head > span + span { border-left: 1px solid var(--rule-2); }
#board-storage .mx-head b { display: block; font-size: 11px; font-weight: 600; color: var(--ink-2); }
#board-storage .mx-head em { font-style: normal; font-family: var(--num); font-size: 9px; color: var(--ink-3); }
#board-storage .mx-row { padding: 0 14px; border-bottom: 1px solid var(--rule-2); min-height: 62px; }
#board-storage .mx-row:last-child { border-bottom: 0; }
#board-storage .mx-row > span { padding: 9px 10px; min-width: 0; }
#board-storage .mx-row > span + span { border-left: 1px solid var(--rule-2); }
#board-storage .mx-st { display: flex; flex-direction: column; gap: 4px; padding-left: 0 !important; }
#board-storage .mx-st .nm { display: flex; align-items: center; gap: 7px; font-size: 12.5px; }
#board-storage .mx-st i { width: 6px; height: 6px; border-radius: 1px; flex: 0 0 auto; }
#board-storage .mx-st u { text-decoration: none; font-family: var(--num); font-size: 9.5px; color: var(--ink-3); }
#board-storage .mx-a1 { padding-left: 0 !important; font-size: 13.5px; font-weight: 600; }
#board-storage .mx-a1 em { font-style: normal; font-size: 10px; font-weight: 400; color: var(--ink-3); margin-left: 3px; }
#board-storage .mx-a1 u { display: block; text-decoration: none; font-size: 10px; font-weight: 400; color: var(--ink-3); }
#board-storage .mx-cell { display: flex; flex-direction: column; gap: 5px; }
#board-storage .mx-cell .bid { font-size: 13.5px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
#board-storage .mx-cell .bid em { font-style: normal; font-size: 10px; font-weight: 400; color: var(--ink-3); margin-left: 2px; }
#board-storage .mx-cell .bid.is-na { color: var(--ink-3); font-weight: 400; font-size: 12px; }
#board-storage .mx-bar { position: relative; height: 3px; background: #EDF0EA; border-radius: 2px; }
#board-storage .mx-bar i { position: absolute; top: 0; height: 3px; border-radius: 2px; }
#board-storage .mx-bar u { position: absolute; left: 50%; top: -2px; height: 7px; width: 1px; background: #C9D1C8; }
#board-storage .mx-rng { font-family: var(--num); font-size: 9.5px; color: var(--ink-3); line-height: 1; letter-spacing: -.01em; }
#board-storage .mx-sum { padding-right: 2px !important; text-align: right; font-size: 12.5px; font-weight: 600; }
#board-storage .mx-sum em { font-style: normal; font-size: 10px; font-weight: 400; color: var(--ink-3); margin-left: 2px; }
#board-storage .mx-sum u { display: block; text-decoration: none; font-size: 10px; font-weight: 400; color: var(--ink-3); }
#board-storage .mx-foot {
  margin-top: auto;
  padding: 9px 14px 10px;
  border-top: 1px solid var(--rule-2);
  font-size: 10.5px; color: var(--ink-3); line-height: 1.7;
}
#board-storage .tb-head, #board-storage .tb-row {
  display: grid;
  grid-template-columns: minmax(88px, 1.1fr) repeat(4, minmax(0, .82fr)) repeat(2, minmax(0, .92fr)) minmax(0, 1fr);
  align-items: center;
}
#board-storage .tb-head {
  align-items: start;
  padding: 0 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--rule-2);
  font-size: 10.5px; color: var(--ink-3);
}
#board-storage .tb-head span { padding: 8px 8px 7px; text-align: right; }
#board-storage .tb-head span:first-child { text-align: left; padding-left: 0; }
#board-storage .tb-head b { display: block; font-size: 10.5px; font-weight: 600; color: var(--ink-2); }
#board-storage .tb-head em { font-style: normal; font-size: 9px; color: var(--ink-3); }
#board-storage .tb-row { padding: 0 14px; height: 34px; border-bottom: 1px solid var(--rule-2); font-size: 12px; }
#board-storage .tb-row span { padding: 0 8px; text-align: right; white-space: nowrap; }
#board-storage .tb-row span:first-child { text-align: left; padding-left: 0; display: flex; align-items: center; gap: 7px; }
#board-storage .tb-row span:first-child i { width: 6px; height: 6px; border-radius: 1px; flex: 0 0 auto; }
#board-storage .tb-row.is-total { border-bottom: 0; border-top: 1px solid var(--rule); font-weight: 600; }
#board-storage .tb-row .pos { color: #8A5D18; }
#board-storage .tb-row .neg { color: var(--da); }
#board-storage .days-list { display: flex; flex-direction: column; }
#board-storage .dl-head, #board-storage .dl-row {
  display: grid; grid-template-columns: 62px minmax(0, 1fr) minmax(0, 1.25fr) 62px;
  align-items: center; gap: 8px;
  padding: 0 14px;
}
#board-storage .dl-head {
  background: var(--surface-2); border-bottom: 1px solid var(--rule-2);
  font-size: 10.5px; color: var(--ink-3); padding-top: 8px; padding-bottom: 7px;
}
#board-storage .dl-head span:nth-child(2), #board-storage .dl-head span:nth-child(3) { text-align: right; }
#board-storage .dl-row { height: 34px; border-bottom: 1px solid var(--rule-2); font-size: 12px; }
#board-storage .dl-row:last-child { border-bottom: 0; }
#board-storage .dl-row .d { color: var(--ink-2); }
#board-storage .dl-row .v { text-align: right; font-weight: 600; }
#board-storage .dl-row .m { text-align: right; color: var(--ink-3); font-size: 11px; }
#board-storage .dl-row .r { text-align: right; font-size: 10.5px; color: var(--ink-3); }
#board-storage .dl-row.is-on { background: var(--sprout-2); }
#board-storage .dl-row.is-on .d, #board-storage .dl-row.is-on .v { color: var(--ink); }
#board-storage .dl-row.is-on .r { color: var(--sprout); font-weight: 600; }
#board-storage .dl-foot { padding: 9px 14px 10px; border-top: 1px solid var(--rule-2); font-size: 10.5px; color: var(--ink-3); }
#board-storage .state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; min-height: 128px; height: 100%; padding: 18px 14px;
  text-align: center; font-size: 11.5px; color: var(--ink-3); line-height: 1.7;
}
#board-storage .state.is-boxed { align-self: center; max-width: 330px; margin: auto; padding: 16px 22px; border: 1px dashed var(--rule); border-radius: var(--r); background: var(--surface); }
#board-storage .state b { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
@media (max-width: 1240px) {
#board-storage .hero-grid { grid-template-columns: 150px minmax(0, 1fr) 220px; gap: 24px; }
#board-storage .hero-date { font-size: 40px; }
#board-storage .kpi .k-main { font-size: 24px; }
#board-storage .mx-head, #board-storage .mx-row { grid-template-columns: 92px 70px repeat(5, minmax(0, 1fr)) 84px; }
}
@media (max-width: 1024px) {
#board-storage .g-7-5, #board-storage .g-6-6 { grid-template-columns: 1fr; }
#board-storage .grid { gap: 22px; }
#board-storage .hero-grid { grid-template-columns: 1fr 1fr; }
#board-storage .hero-lead { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
#board-storage .hero-note { border-top: 0; margin: 0; padding: 0; }
#board-storage .hero-kpis, #board-storage .hero-spark { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
#board-storage .mx-head, #board-storage .mx-row { grid-template-columns: 84px 62px repeat(5, minmax(0, 1fr)); }
#board-storage .mx-head > span:last-child, #board-storage .mx-row > span:last-child { display: none; }
#board-storage .tb-head, #board-storage .tb-row { grid-template-columns: minmax(80px, 1fr) repeat(3, minmax(0, .8fr)) minmax(0, 1fr); }
#board-storage .tb-head span:nth-child(5), #board-storage .tb-row span:nth-child(5), #board-storage .tb-head span:nth-child(6), #board-storage .tb-row span:nth-child(6) { display: none; }
}
@media (max-width: 760px) {
#board-storage .block { padding-top: 24px; }
#board-storage .block + .block { margin-top: 20px; }
#board-storage .block-hd { flex-direction: column; align-items: flex-start; gap: 8px; }
#board-storage .hd-ctl { width: 100%; }
#board-storage .block-hero { padding: 16px 14px 10px; margin-top: 14px; }
#board-storage .hero-grid { grid-template-columns: 1fr; gap: 16px; padding-bottom: 12px; }
#board-storage .hero-date { font-size: 38px; }
#board-storage .hero-kpis { grid-template-columns: 1fr; gap: 14px 0; }
#board-storage .kpi + .kpi { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-2); padding-top: 12px; }
#board-storage .kpi .k-main { font-size: 24px; }
#board-storage .hero-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
#board-storage .chart-lg { height: 268px; }
#board-storage .chart-md { height: 216px; }
#board-storage .panel { padding: 10px 10px 8px; }
#board-storage .panel-tight { padding: 0; }
#board-storage .mx-head > span, #board-storage .mx-row > span { padding-left: 6px; padding-right: 6px; }
#board-storage .mx-head { font-size: 9.5px; }
#board-storage .mx-head b { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
#board-storage *, #board-storage *::before, #board-storage *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
/* ============================================================ 02 储能策略（第二块看板）
   样式由 tools/build_storage.py 从「储能策略看板」独立页面转换而来：
   全部规则限定在 #board-storage 下，与上面数据看板的同名类互不干扰。 */

#board-storage {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
#board-storage .board-hd {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px;
}
#board-storage .bh-main { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
#board-storage .bh-num {
  font-family: var(--num); font-size: 10px; letter-spacing: .06em;
  color: var(--ink-3); padding-top: 6px;
}
#board-storage .bh-title {
  margin: 0; font-size: 18px; font-weight: 600;
  letter-spacing: .06em; line-height: 1.3;
}
#board-storage .bh-sub { margin: 5px 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
#board-storage .bh-ctl { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; padding-top: 4px; }
#board-storage .bh-meta {
  font-size: 11px; color: var(--ink-3); white-space: nowrap;
  max-width: 260px; overflow: hidden; text-overflow: ellipsis;
}

/* 策略运行日：与页眉的电力运行日相互独立 */
/* 用 grid + minmax(0,1fr) 收住最小内容宽度，否则 9 个日期格的固定最小宽会把整页撑宽 */
#board-storage .stg-days-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: center; column-gap: 14px;
  margin: 14px 0 0; padding: 9px 0 10px;
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
}
#board-storage .stg-days-lbl {
  flex: 0 0 auto; font-size: 10.5px; color: var(--ink-3); letter-spacing: .04em;
}
#board-storage .stg-days {
  display: flex; gap: 4px; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
#board-storage .stg-days::-webkit-scrollbar { display: none; }

#board-storage .stg-meta {
  margin-top: 18px; padding-top: 10px;
  border-top: 1px solid var(--rule-2);
  font-size: 10.5px; color: var(--ink-3);
}

@media (max-width: 760px) {
  #board-storage { margin-top: 26px; padding-top: 18px; }
  #board-storage .board-hd { flex-direction: column; gap: 10px; }
  #board-storage .bh-title { font-size: 16px; }
  #board-storage .bh-ctl { width: 100%; justify-content: space-between; padding-top: 0; }
  #board-storage .bh-meta { max-width: none; }
  #board-storage .stg-days-row { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  #board-storage .stg-days { width: 100%; }
}
