/* =====================================================================
   REDESIGN · PART 4 (18 Oct 2026): command rail + instrument cluster
   ===================================================================== */

/* ---------- COMMAND RAIL ---------- */
#flowTabRow { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 28px 10px; }
.rail1 { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.rail1 #homeTab { height: 100%; padding: 0 16px; }
.rail-ws { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 8px 14px; min-width: 0;
  background: var(--c1); border: 1px solid var(--ln2); border-left: 3px solid var(--wc); border-radius: 0; color: var(--text); cursor: pointer;
  text-align: left; transition: background .2s, border-color .2s; }
.rail-ws b { font-family: var(--disp); font-size: 13px; font-weight: 500; letter-spacing: .14em; }
.rail-st { font-family: var(--mono); font-size: 11px; color: var(--kk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; text-transform: none; }
.rail-ws:hover { background: color-mix(in srgb, var(--wc) 8%, var(--c1)); }
.rail-ws.on { background: color-mix(in srgb, var(--wc) 16%, var(--c1)); border-color: var(--wc); }
.rail-ws.on .rail-st { color: color-mix(in srgb, var(--wc) 55%, var(--text)); }
.rail-ws.cur b::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--wc); margin-left: 8px; vertical-align: 2px; }
.rail2 { display: flex; min-height: 34px; }
.rail2 .ws { display: none !important; padding: 0 !important; border: none !important; }
.rail2 .ws.on { display: flex !important; }
.rail2 .ws-label { display: none; }
.rail2 .ws-tabs { flex-wrap: wrap !important; gap: 6px; }
@media (max-width: 1100px) { .rail1 { grid-template-columns: auto repeat(2, minmax(0, 1fr)); } .rail1 #homeTab { grid-row: span 2; } }

/* ---------- INSTRUMENT CLUSTER (home) ---------- */
.ic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ic-card { background: var(--c1); border: 1px solid var(--ln); border-radius: 12px; padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 6px;
  min-width: 0; text-align: left; color: var(--text); cursor: pointer; font-family: var(--sans); transition: border-color .2s, transform .15s; }
.ic-card:hover { border-color: #3a4a58; transform: translateY(-1px); }
.ic-card .k { font-family: var(--disp); font-size: 10.5px; letter-spacing: .16em; color: var(--kk); }
.ic-card .v { font-family: var(--mono); font-size: 26px; font-weight: 500; margin-top: 6px; }
.ic-card .v i { font-style: normal; font-size: 13px; color: #8b98a5; }
.ic-card .s { font-size: 11.5px; color: #9aa6b2; line-height: 1.45; text-transform: none; margin-top: auto; }
.ic-card .s b { color: var(--text); font-weight: 600; font-family: var(--mono); }
.ic-card .s b.a { color: var(--rose); } .ic-card .s b.t { color: var(--mint); }
.ic-svg { display: block; width: 100%; max-width: 230px; height: auto; margin: 0 auto; }
.ic-trk { fill: none; stroke: var(--ln2); stroke-width: 10; stroke-linecap: round; }
.ic-trk.thin { stroke-width: 3; }
.ic-arc { fill: none; stroke: #e07a3f; stroke-width: 10; stroke-linecap: round; }
.ic-big { font-family: var(--mono); font-size: 20px; font-weight: 600; fill: var(--text); }
.ic-sm { font-family: var(--mono); font-size: 9.5px; fill: var(--kk); letter-spacing: .06em; }
.ic-tk { stroke-width: 2.5; }
.ic-tk.a { stroke: var(--rose); } .ic-tk.n { stroke: var(--amber); } .ic-tk.t { stroke: var(--mint); }
.ic-needle { stroke: var(--text); stroke-width: 2.5; stroke-linecap: round; }
.ic-hub { fill: var(--text); }
.ic-bar { position: relative; display: block; height: 10px; border-radius: 5px; background: var(--ln); margin: 14px 0 10px; }
.ic-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--mint); }
.ic-bar u { position: absolute; right: 0; top: -5px; bottom: -5px; border-left: 2px solid var(--text); }
.ic-split { display: flex; height: 10px; gap: 2px; border-radius: 5px; overflow: hidden; margin: 14px 0 10px; }
.ic-split i { display: block; height: 100%; }
.ic-split i.rest { background: var(--ln2); }
@media (max-width: 1100px) { .ic { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- DEMAND FACTOR card on the P.F. page ---------- */
.dfc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; background: var(--c1); border: 1px solid var(--ln); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; }
.dfc.sim { border-color: #5a4210; }
.dfc .k { display: block; font-family: var(--disp); font-size: 10.5px; letter-spacing: .14em; color: var(--kk); }
.dfc b { font-family: var(--mono); font-size: 22px; font-weight: 500; margin-right: 10px; }
.dfc em { font-style: normal; font-size: 11.5px; color: #9aa6b2; text-transform: none; }
.dfc-in { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dfc-in label, .dfc-in span { font-family: var(--mono); font-size: 11px; color: var(--kk); text-transform: none; }
.dfc-in input { width: 80px; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--ln2); background: var(--c2); color: var(--text); font-family: var(--mono); font-size: 12.5px; }
.dfc-in button { padding: 5px 12px; border-radius: 6px; border: 1px solid var(--ln2); background: none; color: #c9d3dc; cursor: pointer; font-family: var(--disp); font-size: 11px; letter-spacing: .08em; }
.dfc-in button:hover { border-color: var(--copper); }
.dfc p { flex-basis: 100%; font-size: 11px; color: var(--kk); text-transform: none; }
