
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
.bt-loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.bt-loading.hidden { display: none; }
.bt-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 8px max(24px, calc((100% - 1400px) / 2 + 24px));
  background: var(--bg2); border-bottom: 1px solid var(--border); }
.bt-brand { display: flex; align-items: center; gap: 9px; font: 700 14px var(--font-display); letter-spacing: .01em; color: var(--text); flex: none; }
.bt-brand svg { height: 18px; width: auto; }
.bt-top .live-tabs { min-width: 0; overflow-x: auto; }
.bt-top-end { margin-left: auto; display: flex; align-items: center; gap: 4px; flex: none; }
.bt-icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 7px; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--text2); cursor: pointer; font: 600 11px var(--font-mono); transition: background var(--dur, .18s) var(--ease, ease), color var(--dur, .18s) var(--ease, ease); }
.bt-icon-btn:hover { background: var(--bg3); color: var(--text); }
.bt-icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bt-icon-btn:disabled { opacity: .35; cursor: default; }
.bt-icon-btn:disabled:hover { background: none; color: var(--text2); }
.bt-wrap { max-width: 1400px; margin: 0 auto; padding: 14px 24px 36px; }
.bt-head { margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.bt-head .page-header-actions { flex-wrap: wrap; row-gap: 8px; }
.bt-datenav { display: flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: var(--r-md, 8px); background: var(--bg2); }
.bt-datenav .btn { margin-left: 4px; }
.bt-date { position: relative; border: 0; background: none; color: var(--text); font: 500 12.5px var(--font-mono); padding: 5px 8px; border-radius: var(--r-sm); min-width: 124px; }
.bt-date::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer; }
.bt-date:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bt-note { margin-bottom: 10px; padding: 9px 12px; border-radius: var(--r-md, 8px); border: 1px solid rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .09);
  font-size: 12.5px; color: var(--text); }
.bt-note-in { margin: 12px 0 0; }
.cp-hero { gap: 0; padding: 14px 22px; margin-bottom: 10px; flex-wrap: nowrap; }
.cp-hero .plan-hero-item { flex: 1 1 0; min-width: 0; padding: 0 18px; }
.cp-hero .plan-hero-item:first-child { padding-left: 0; }
.cp-hero .plan-hero-body { min-width: 0; width: 100%; }
.cp-hero .plan-hero-val { white-space: nowrap; }
.cp-hero .plan-hero-lbl { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-hero .plan-hero-sub { overflow: hidden; text-overflow: ellipsis; }
.bt-row { margin-bottom: 10px; }
.bt-empty { padding: 22px 8px; text-align: center; font-size: 12.5px; color: var(--text3); }
.bt-foot { margin-top: 8px; font-size: 10.5px; color: var(--text3); line-height: 1.45; }
.bt-mode { flex: none; }
.bt-plabel { font: 500 12.5px var(--font-mono); color: var(--text); padding: 5px 8px; white-space: nowrap; }
.bt-pd-card { margin-top: 10px; }
.pd { --h-m3: 176px; --h-dev: 56px; --h-out: 44px; --gut: 132px; display: flex; margin-top: 10px; }
.pd-gut { flex: none; width: var(--gut); display: flex; flex-direction: column; }
.pd-cols { flex: 1 1 0; min-width: 0; display: flex; }
.pd-g, .pd-c { box-sizing: border-box; border-top: 1px solid var(--border); }
.pd-m3 { height: var(--h-m3); } .pd-dev { height: var(--h-dev); } .pd-out { height: var(--h-out); }
.pd-x { height: 18px; font: 500 9.5px var(--font-mono); color: var(--text3); text-align: center; line-height: 18px; border-top: 1px solid var(--border2, var(--border)); white-space: nowrap; }
.pd-g { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding-right: 10px; min-width: 0; }
.pd-g b { font: 600 10.5px var(--font); color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-g i { font: 500 9.5px var(--font-mono); font-style: normal; color: var(--text3); }
.pd-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 0; margin: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.pd-col.is-empty { cursor: default; }
.pd-col:not(.is-empty):hover { background: var(--bg3); }
.pd-col.is-pick { background: var(--bg3); box-shadow: inset 0 0 0 1px var(--border2, var(--border)); }
.pd-col:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pd-c { position: relative; display: block; width: 100%; }
.pd-c i, .pd-c u { position: absolute; left: 18%; right: 18%; display: block; border-radius: 2px 2px 0 0; }
.pd-c.pd-m3 i { bottom: 0; background: var(--accent); }
.pd-c.pd-dev::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--border2, var(--border)); }
.pd-c.pd-dev i { background: var(--text3); z-index: 1; }
.pd-c.pd-dev i.up { bottom: 50%; }
.pd-c.pd-dev i.dn { top: 50%; border-radius: 0 0 2px 2px; }
.pd-c.pd-out i { bottom: 0; background: #d97706; }
.pd-c.pd-out u { bottom: 0; height: 2px; background: var(--border2, var(--border)); border-radius: 0; text-decoration: none; }
.pd.is-year .pd-c i, .pd.is-year .pd-c u { left: 26%; right: 26%; }
.pt td:first-child { min-width: 150px; }
.ld tr.is-total td { font-weight: 600; border-top: 1px solid var(--border2, var(--border)); border-bottom: 0; }
.mx-wc { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 11.5px; }
.mx-wc span { color: var(--text2); font-weight: 500; }
.mx-wc b { margin-left: auto; font: 600 12.5px var(--font-display, var(--font)); font-variant-numeric: tabular-nums; color: var(--text); }
.mx-wc i { font-style: normal; font-size: 10.5px; color: var(--text3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mx-wc-note { margin-top: 4px; }
.bt-other { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text2); font-variant-numeric: tabular-nums; }
#bt-ops .plant-ops-sk { height: auto; white-space: normal; overflow: visible; text-overflow: clip; }
.tl { --tl-lab: 210px; position: relative; display: flex; flex-direction: column; }
.tl-axis { position: relative; height: 16px; margin-left: var(--tl-lab); flex: none; }
.tl-axis span { position: absolute; top: 0; transform: translateX(-50%); font: 500 10px var(--font-mono); color: var(--text3); }
.tl-axis span.edge-l { transform: none; }
.tl-axis span.edge-r { transform: translateX(-100%); }
.tl-axis span.minor { opacity: .7; }
.tl-axis span.thin { visibility: hidden; }
.tl-lane { display: grid; grid-template-columns: var(--tl-lab) minmax(0, 1fr); align-items: center; min-height: 50px; border-top: 1px solid var(--border); }
.tl-lane:first-of-type { border-top: 0; }
.tl-lab { padding-right: 10px; min-width: 0; }
.tl-lab b { display: block; font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-lab i { display: block; font-style: normal; font-size: 10.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tl-track { position: relative; height: 30px; border-radius: 4px; background: var(--bg3); }
.tl-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); }
.tl-grid.minor { opacity: .5; }
.tl-load { position: absolute; top: 4px; height: 22px; border-radius: 3px; display: flex; align-items: center; justify-content: center;
  font: 500 10px var(--font-mono); color: #fff; min-width: 5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); overflow: hidden;
  border: 0; padding: 0; margin: 0; cursor: pointer; transition: transform var(--dur, .15s) var(--ease, ease), box-shadow var(--dur, .15s) var(--ease, ease); }
.tl-load:hover { transform: translateY(-1px); }
.tl-load:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.tl-load.is-pick { box-shadow: 0 0 0 2px var(--bg2, var(--bg)), 0 0 0 4px var(--text); z-index: 1; }
.tl-pick { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-height: 22px; margin-top: 10px; font-size: 11px; color: var(--text3); line-height: 1.5; }
.tl-pick.is-on { color: var(--text2); font-size: 12px; }
.tl-pick b { font: 600 13px var(--font-display, var(--font)); color: var(--text); font-variant-numeric: tabular-nums; }
.tl-pick .m { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tl-pick .w { color: var(--amber2); } .tl-pick .ok { color: var(--ok-text, var(--green2)); }
.tl-pick-go { margin-left: auto; font: 500 11px var(--font); color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }
.tl-pick-go:hover { text-decoration: underline; }
.tl-pick-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tl-load.no-lbl { font-size: 0; }
.tl-load.tol-in { background: var(--accent); }
.tl-load.tol-out { background: #d97706; }
.tl-load.tol-na { background: #64748b; }
.tl-gap { position: absolute; top: 4px; height: 22px; border-radius: 4px; pointer-events: auto;
  background: repeating-linear-gradient(135deg, rgba(245, 158, 11, .22) 0 4px, transparent 4px 8px); box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .55); }
.tl-gap::after { content: attr(data-l); position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 2px; white-space: nowrap;
  font: 600 9.5px var(--font); color: var(--amber2); }
.tl-now { position: absolute; top: 14px; bottom: 0; width: 2px; margin-left: -1px; background: var(--text); opacity: .7; pointer-events: none; }
.tl-foot { display: flex; gap: 6px 14px; margin-top: 12px; font-size: 10.5px; color: var(--text3); flex-wrap: wrap; }
.tl-foot .sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; vertical-align: -1px; margin-right: 5px; }
.tl-foot .sw.tol-in { background: var(--accent); } .tl-foot .sw.tol-out { background: #d97706; } .tl-foot .sw.tol-na { background: #64748b; }
.tl-foot .sw.gap { background: repeating-linear-gradient(135deg, rgba(245, 158, 11, .6) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .55); }
.cp-pours { gap: 8px; }
.cp-pours > .plant-card { padding: 10px 12px; }
.pour { display: flex; flex-direction: column; gap: 7px; }
.pour-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; }
.pour-h b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pour-h .rec { font: 500 10px var(--font-mono); color: var(--text2); padding: 1px 6px; border-radius: 4px; background: var(--bg3); white-space: nowrap; flex: none; max-width: 50%; overflow: hidden; text-overflow: ellipsis; }
.pour-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pour-n { min-width: 0; }
.pour-n b { display: block; font: 700 16px var(--font-display); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pour-n b small { font-size: 10px; font-weight: 600; color: var(--text3); margin-left: 2px; }
.pour-n i { display: block; font-style: normal; font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pour-sub { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--text3); font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.pour-sub .warn { color: var(--amber2); font-weight: 600; }
.pour.is-warn { box-shadow: inset 3px 0 0 var(--amber2); }
.bt-more { text-align: center; font: 600 11.5px var(--font); color: var(--accent); cursor: pointer; border: 1px dashed var(--border2); background: none; }
.mq { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.mq th { text-align: left; font: 600 9.5px var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--text3); padding: 0 0 5px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.mq th.n, .mq td.n { text-align: right; font-variant-numeric: tabular-nums; padding-left: 8px; white-space: nowrap; }
.mq td { padding: 4.5px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.mq tr:last-child td { border-bottom: 0; }
.mq td.c { font-weight: 500; max-width: 0; width: 34%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mq td.c .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; background: var(--green2); vertical-align: 1px; }
.mq td.c .dot.w { background: var(--amber2); }
.mq td.c .dot.na { background: var(--border2); }
.mq td.n.w { color: var(--amber2); font-weight: 600; }
.mq td.n.tol { color: var(--text3); font-family: var(--font-mono); font-size: 10.5px; }
.silo-grp { font: 600 9.5px var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--text3); margin: 8px 0 2px; }
.silo-grp:first-of-type { margin-top: 2px; }
.silo { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 5px 4px; margin: 0 -4px; border: 0; border-top: 1px solid var(--border);
  background: none; color: inherit; font: inherit; font-size: 11.5px; text-align: left; cursor: pointer; border-radius: 4px; transition: background var(--dur, .18s) var(--ease, ease); }
.silo-grp + .silo { border-top: 0; }
.silo:hover { background: var(--bg3); }
.silo:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.silo-n { min-width: 0; }
.silo b { font-weight: 600; display: block; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.silo i { display: block; font-style: normal; font-size: 10px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.silo .v { font: 500 12px var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.silo .v small { display: block; font-size: 9.5px; color: var(--text3); font-family: var(--font); }
.silo.is-none { grid-template-columns: auto minmax(0, 1fr); padding-top: 4px; padding-bottom: 4px; }
.silo.is-none b { font-weight: 500; color: var(--text2); }
.silo.is-none .v { font: 400 10.5px var(--font); color: var(--text3); overflow: hidden; text-overflow: ellipsis; }
.sk-none { padding: 6px 0 10px; }
.sk-none b { display: block; font-weight: 600; font-size: 12.5px; }
.sk-none span { display: block; margin-top: 2px; font-size: 11px; color: var(--text3); line-height: 1.45; }
.sk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sk-chip { font: 500 11px var(--font); color: var(--text2); background: var(--bg3); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; cursor: pointer;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color var(--dur, .15s) var(--ease, ease), color var(--dur, .15s) var(--ease, ease); }
.sk-chip:hover { border-color: var(--accent); color: var(--text); }
.sk-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mx-badge { font: 500 10.5px var(--font-mono); font-variant-numeric: tabular-nums; padding: 2px 7px; border-radius: 4px; border: 0; background: var(--bg3); color: var(--text2); cursor: pointer; white-space: nowrap; }
.mx-badge.w { color: var(--amber2); } .mx-badge.ok { color: var(--ok-text, var(--green2)); }
.mx-badge:hover { background: var(--border); }
.mx-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.silo.w .v { color: var(--amber2); }
.silo.b .v { color: var(--red2); }
.bt-scroll { overflow-x: auto; }
.ld { width: 100%; border-collapse: collapse; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ld th { text-align: left; font: 600 9.5px var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--text3); padding: 0 8px 5px 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ld td { padding: 5px 8px 5px 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ld td.m, .ld th.m { font-family: var(--font-mono); font-size: 11px; }
.ld td.r, .ld th.r { text-align: right; }
.ld .wide { white-space: normal; min-width: 140px; }
.ld .tag { font: 500 9.5px var(--font-mono); padding: 1px 5px; border-radius: 3px; background: var(--bg3); color: var(--text2); }
.ld .tag.ok { color: var(--ok-text, var(--green2)); } .ld .tag.w { color: var(--amber2); }
.ld tr.bt-click { cursor: pointer; }
.ld tr.bt-click:hover td { background: var(--bg3); }
.bt-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 15, 30, .55); backdrop-filter: blur(3px); }
.bt-modal.hidden { display: none; }
.bt-modal-box { width: 100%; max-width: 440px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; border-radius: var(--r-lg, 12px); background: var(--bg2);
  border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.bt-modal.is-wide .bt-modal-box { max-width: 760px; }
.bt-modal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 10px 18px; border-bottom: 1px solid var(--border); }
.bt-modal-title { font: 700 14.5px var(--font-display); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-modal-b { padding: 14px 18px; overflow-y: auto; }
.bt-modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 18px 14px; border-top: 1px solid var(--border); }
.bt-modal-f.hidden { display: none; }
.bt-rows > div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.bt-rows > div:last-child { border-bottom: 0; }
.bt-rows span { color: var(--text2); }
.bt-rows b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.bt-kv { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 12px; font-size: 12px; color: var(--text2); }
.bt-kv span:first-child { color: var(--text); font-weight: 600; }
.bt-form { display: flex; flex-direction: column; gap: 10px; }
.bt-form label { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--text2); min-width: 0; }
.bt-form .input { width: 100%; box-sizing: border-box; }
.bt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bt-sec { margin-top: 6px; font: 700 11px var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--text3); }
.bt-sec:first-child { margin-top: 0; }
.bt-form label.bt-check { flex-direction: row; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text); cursor: pointer; }
.bt-check input { margin-top: 2px; flex: none; }
.bt-err { min-height: 16px; font-size: 12px; font-weight: 600; color: var(--red2); }
.mq tr.is-part td.c { padding-left: 12px; color: var(--text2); font-weight: 400; }
.mq tr.is-total td { font-weight: 600; }
.bt-set-err { margin-bottom: 8px; }
.bt-set-err:empty { display: none; }
.bt-set-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px; align-items: start; }
.bt-set-cols .plant-card { padding: 14px 16px; }
.bt-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bt-mat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 124px 92px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--border); }
.bt-mat-h { border-top: 0; padding: 0 0 4px; font: 600 9.5px var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--text3); }
.bt-mat-n { min-width: 0; }
.bt-mat-n b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-mat-n i { display: block; font-style: normal; font-size: 10.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-mat-min { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bt-mat-min span { font: 500 11px var(--font-mono); color: var(--text3); flex: none; width: 16px; }
.bt-mat .input { min-width: 0; }
.bt-mat .bt-check { align-items: center; font-size: 11.5px; white-space: nowrap; }
.bt-mat .bt-check input { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .bt-icon-btn, .silo, .sk-chip, .tl-load { transition: none; }
  .tl-load:hover { transform: none; }
}
@media (max-width: 1100px) {
  .bt-row > .pc-8, .bt-row > .pc-4 { grid-column: span 12; }
  .bt-row > .plant-card.pc-4 { grid-column: span 6; }
  .bt-row > #bt-ops { grid-column: span 12; }
  .cp-pours { flex-direction: row; flex-wrap: wrap; }
  .cp-pours > .plant-card { flex: 1 1 240px; }
}
@media (max-width: 1000px) {
  .bt-set-cols { grid-template-columns: minmax(0, 1fr); }
}
.auth-customer { margin-top: 10px; text-align: center; font: 700 15px var(--font-display); letter-spacing: .02em; color: var(--text); overflow-wrap: anywhere; }
.auth-customer.hidden { display: none; }
.bt-brand.is-link { cursor: pointer; }
.pt-sec { margin-top: 18px; }
.pt-sec-h { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 8px; }
.pt-sec-h b { font: 700 13px var(--font-display); letter-spacing: .01em; }
.pt-sec-h span { font-size: 11.5px; color: var(--text3); }
.pt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pt-card { display: block; padding: 14px 16px 12px; color: inherit; text-decoration: none; min-width: 0;
  transition: transform var(--dur, .18s) var(--ease, ease), border-color var(--dur, .18s) var(--ease, ease); }
a.pt-card:hover { transform: translateY(-1px); border-color: var(--accent); }
a.pt-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pt-top { display: flex; align-items: flex-start; gap: 10px; }
.pt-id { min-width: 0; }
.pt-name { font: 700 14px var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-site { font-size: 11px; color: var(--text3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-st { margin-left: auto; flex: none; max-width: 60%; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--text2); line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-st i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.pt-st.ok i { background: #10b981; }
.pt-st.warn i { background: #f59e0b; }
.pt-val { margin-top: 12px; font: 700 26px var(--font-display); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-val small { font-size: 12px; font-weight: 600; color: var(--text3); margin-left: 3px; }
.pt-lbl { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); margin-top: 4px; }
.pt-sub { font-size: 11.5px; color: var(--text2); margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text3); min-height: 30px; }
.pt-flag { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-weight: 600; color: #b45309; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-flag i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; }
.pt-flag.bad { color: #b91c1c; }
.pt-flag.bad i { background: #ef4444; }
[data-theme="dark"] .pt-flag { color: #fbbf24; }
[data-theme="dark"] .pt-flag.bad { color: #f87171; }
.pt-go { margin-left: auto; flex: none; color: var(--accent); font-weight: 600; }
@media (max-width: 1000px) { .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .pt-card { transition: none; } a.pt-card:hover { transform: none; } }
@media (max-width: 700px) {
  .pt-grid { grid-template-columns: minmax(0, 1fr); }
  .pt-val { font-size: 22px; }
  .bt-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-mat-h { display: none; }
  .bt-mat { grid-template-columns: minmax(0, 1fr) 116px; row-gap: 6px; padding: 10px 0; }
  .bt-mat-n { grid-column: 1 / -1; }
  .bt-mat .bt-check { grid-column: 1 / -1; }
  .bt-top { padding: 8px 14px; gap: 8px; flex-wrap: wrap; }
  .bt-top .live-tabs { order: 3; flex: 1 0 100%; }
  .bt-top .live-tabs.hidden { display: none; }
  .bt-wrap { padding: 12px 14px 28px; }
  .bt-row > .plant-card.pc-4 { grid-column: span 12; }
  .cp-hero.plan-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; padding: 14px 16px; }
  .cp-hero .plan-hero-sep { display: none; }
  .cp-hero .plan-hero-item { padding: 0; }
  .cp-hero .plan-hero-sub { white-space: normal; }
  .tl { --tl-lab: 0px; }
  .tl-axis span.minor { display: none; }
  .tl-pick-go { margin-left: 0; }
  .tl-lane { grid-template-columns: minmax(0, 1fr); row-gap: 4px; padding: 7px 0 14px; }
  .tl-lab { padding-right: 0; }
  .bt-head .page-header-actions { width: 100%; }
  .bt-grid:not(.bt-grid-4) { grid-template-columns: minmax(0, 1fr); }
  .bt-modal { padding: 10px; align-items: flex-end; }
  .bt-modal-box { max-height: calc(100vh - 20px); }
}
@media (pointer: coarse) {
  .bt-icon-btn { min-width: 40px; height: 40px; }
  .silo { padding-top: 9px; padding-bottom: 9px; }
}
@media (max-width: 700px) {
  .pd { --gut: 64px; --h-m3: 104px; }
  .pd-g { padding-right: 6px; }
  .pd-g b { white-space: normal; font-size: 9.5px; line-height: 1.2; }
  .pd-g i { display: none; }
  .pd-c i, .pd-c u { left: 10%; right: 10%; }
  .bt-mode { order: 3; }
}
