/* SpeedWash HQ — brand layer + module styles */
.side { background: linear-gradient(180deg, #003a70 0%, #002650 100%); color: #cfe0f2; }
.side::before { background: linear-gradient(90deg, var(--red) 0 33%, var(--yel) 33% 66%, var(--sky) 66%); }
.brand { border-bottom-color: rgba(255,255,255,.1); padding: 18px 16px 14px; }
.brand img { width: 118px; height: auto; border-radius: 0; background: none; box-shadow: none; padding: 0; filter: drop-shadow(0 3px 8px rgba(0,0,0,.35)); }
.brand b { font-size: 26px; color: var(--yel); font-weight: 900; letter-spacing: .02em; }
.brand small { color: #9fbcd9; white-space: nowrap; }
.nav-sec { color: #7fa0c4; }
#nav a { color: #dbe8f5; }
#nav a .ic { color: #8fb3d6; }
#nav a:hover { background: rgba(255,255,255,.08); }
#nav a.on { background: var(--red); box-shadow: 0 4px 14px rgba(210,38,48,.45); }
.nb { background: rgba(255,255,255,.18); }
.nb.red { background: var(--yel); color: #3a3400; }
.side-foot { display: flex; align-items: center; gap: 10px; border-top-color: rgba(255,255,255,.1); background: rgba(0,0,0,.12); padding: 12px 16px; }
.sf-speedy { width: 44px; height: auto; }
.sf-tag { color: var(--yel); }
.side-foot small { color: #9fbcd9; }
.me .av { background: var(--navy); }
.sy-pill { background: #fffbd1; color: #6b5f00; }
.btn.hornet { box-shadow: 0 4px 14px rgba(210,38,48,.3); }
.btn.yel { background: var(--yel); border-color: var(--yel); color: #1d1a00; font-weight: 800; box-shadow: 0 6px 20px rgba(243,229,0,.35); }
.btn.yel:hover { background: #fff04d; }
.grid.g2 { grid-template-columns: 1fr 1fr; } .grid.g3 { grid-template-columns: 1fr 1fr 1.4fr; }
.kpi-row.k5 { grid-template-columns: repeat(5, 1fr); }
.kpi b i { font-size: 13px; }
.card-h.pad { padding: 14px 16px 0; } .legend.pad { padding: 10px 16px 14px; }
.h4 { font-size: 13px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.warnc { color: var(--warn); font-weight: 700; }
.src { display: inline-flex !important; align-items: center; gap: 4px; font-size: 11px; color: var(--navy); font-weight: 700; margin-top: 2px; }
.src .ic { width: 12px; height: 12px; }
.pk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px 3px 7px; border-radius: 20px; background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 75%, black); white-space: nowrap; }
.pk::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pkd { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 3px; }
.risk { display: flex; align-items: center; gap: 8px; min-width: 110px; } .risk .bar { height: 6px; } .risk.wide { min-width: 240px; } .risk b { font-size: 12px; white-space: nowrap; }
.eqr { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid #f2f2f2; }
.eqr > span:first-child { width: 190px; flex: none; } .eqr .bar { height: 6px; }
.sp-logo { height: 64px; }

/* command center */
.cc-hero { border-radius: 16px; padding: 28px 30px; color: #fff; background-size: cover; background-position: center 60%; display: flex; align-items: center; gap: 24px; min-height: 170px; box-shadow: var(--sh); }
.cc-hero h1 { font-size: 34px; font-weight: 900; margin: 6px 0; letter-spacing: -.02em; }
.cc-hero p { margin: 0; color: #d7e6f5; max-width: 560px; }
.cc-hero .eyebrow.light { color: var(--yel); }
.cc-fc { margin-left: auto; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.96); color: var(--ink); border-radius: 14px; padding: 10px 18px 10px 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); border: 3px solid var(--yel); transition: transform .15s; }
.cc-fc:hover { transform: translateY(-2px); }
.cc-fc img { height: 74px; }
.cc-fc small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-weight: 800; }
.cc-fc b { display: block; font-size: 18px; } .cc-fc span { font-size: 12.5px; color: var(--mut); }
.cc-grid { display: grid; grid-template-columns: 1fr 360px; gap: 18px; }
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; padding: 14px 16px 16px; }
.st { border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; cursor: pointer; transition: box-shadow .15s, border-color .15s, transform .15s; background: #fff; }
.st:hover { border-color: var(--sky); box-shadow: 0 6px 18px rgba(0,58,112,.12); transform: translateY(-1px); }
.st-h { display: flex; align-items: center; justify-content: space-between; } .st-h b { font-size: 14.5px; }
.st > small { color: var(--mut); font-size: 11.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; } .dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-l); } .dot.warn { background: #e29a00; box-shadow: 0 0 0 3px var(--warn-l); } .dot.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-l); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(201,48,44,.15); } }
.st-n { margin: 8px 0 5px; } .st-n b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; } .st-n span { color: var(--mut); font-size: 12.5px; }
.st .bar { height: 6px; } .st .bar i { background: linear-gradient(90deg, var(--sky), var(--navy)); }
.st-f { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--mut); } .st-f span { display: inline-flex; align-items: center; gap: 4px; } .st-f .ic { width: 13px; height: 13px; }
.alerts { display: grid; gap: 8px; }
.al { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; transition: background .15s; }
.al:hover { background: #f1f5fa; } .al .ic { margin-top: 2px; color: var(--navy); } .al small { display: block; color: var(--mut); font-size: 12px; }
.al.bad { background: var(--bad-l); border-color: #f2c1c0; } .al.bad .ic { color: var(--bad); }
.al.warn { background: var(--warn-l); border-color: #f1d49a; } .al.warn .ic { color: var(--warn); }
.mix { display: flex; align-items: center; gap: 24px; } .mix .donut { width: 170px; height: 170px; }
.mix-l { flex: 1; display: grid; gap: 10px; } .mix-l div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; } .mix-l i { width: 12px; height: 12px; border-radius: 3px; } .mix-l span { flex: 1; } .mix-l em { font-style: normal; color: var(--mut); width: 40px; text-align: right; }

/* forecast */
.fc-hero { position: relative; display: flex; align-items: center; border-radius: 18px; padding: 26px 30px; background: radial-gradient(circle at 85% 20%, rgba(46,201,255,.45), transparent 45%), linear-gradient(120deg, #003a70, #00508f 60%, #0a6fb7); color: #fff; overflow: hidden; min-height: 190px; box-shadow: var(--sh); }
.fc-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(243,229,0,.55), rgba(243,229,0,0) 65%); }
.fc-hero-l { position: relative; z-index: 2; max-width: 760px; }
.fc-hero .eyebrow.light { color: var(--yel); }
.fc-hero h1 { font-size: 34px; font-weight: 900; margin: 6px 0; letter-spacing: -.02em; } .fc-hero h1 span { color: var(--yel); font-variant-numeric: tabular-nums; }
.fc-hero p { margin: 0 0 16px; color: #d5e7f8; }
.fc-acts { display: flex; align-items: center; gap: 14px; } .fc-note { font-size: 13px; color: #cfe3f6; display: inline-flex; align-items: center; gap: 6px; } .fc-note .ic { color: #6ff0a6; }
.fc-speedy { position: absolute; right: 36px; bottom: -40px; height: 250px; z-index: 2; filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); }
.wx-strip { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.wx { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px 12px; text-align: center; box-shadow: var(--sh); display: flex; flex-direction: column; align-items: center; gap: 1px; }
.wx small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); } .wx b { font-size: 12.5px; }
.wx .wxi { width: 30px; height: 30px; margin: 6px 0 2px; color: #7d8fa3; stroke-width: 1.6; }
.wx .t { font-weight: 800; font-size: 16px; } .wx .rp { font-size: 11px; color: var(--info); display: inline-flex; align-items: center; gap: 2px; } .wx .rp .ic { width: 11px; height: 11px; }
.wx .wc { margin-top: 6px; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wx em { font-style: normal; font-size: 11.5px; font-weight: 800; } .wx em.up { color: var(--ok); } .wx em.dn { color: var(--bad); }
.wx.surge { background: linear-gradient(180deg, #fffbcc, #fff); border-color: #eadb00; box-shadow: 0 6px 18px rgba(243,229,0,.35); } .wx.surge .wxi { color: #e3a600; }
.wx.dead { background: linear-gradient(180deg, #eaf1f8, #fff); } .wx.dead .wxi { color: #4a78a8; }
.wtag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 10px; font-weight: 800; background: var(--red); color: #fff; padding: 2px 7px; border-radius: 10px; max-width: 150%; overflow: hidden; text-overflow: ellipsis; }
.fc-grid { display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: start; }
.hm-wrap { overflow-x: auto; padding: 10px 12px 14px; }
.hm { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 12.5px; }
.hm thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); font-weight: 800; padding: 2px 4px 6px; }
.hm thead th small { display: block; font-weight: 600; text-transform: none; letter-spacing: 0; color: #9a9a9a; }
.hm tbody th { text-align: left; padding-right: 8px; white-space: nowrap; } .hm tbody th b { display: block; font-size: 13px; } .hm tbody th small { color: var(--mut); font-weight: 500; font-size: 11px; }
.hm td.r { text-align: right; padding-left: 8px; }
.hc { position: relative; text-align: center; border-radius: 8px; padding: 10px 2px; cursor: pointer; transition: transform .12s, box-shadow .12s; font-variant-numeric: tabular-nums; }
.hc:hover { transform: scale(1.06); box-shadow: 0 4px 12px rgba(0,0,0,.15); z-index: 2; }
.hc.sel { box-shadow: 0 0 0 3px var(--ink); z-index: 3; }
.hc.h0, .legend i.h0 { background: #c9d7e6; color: #2d4a69; } .hc.h1, .legend i.h1 { background: #e3edf6; color: #2d4a69; } .hc.h2, .legend i.h2 { background: #c9efff; color: #004466; }
.hc.h3, .legend i.h3 { background: #fff59c; color: #4d4500; } .hc.h4, .legend i.h4 { background: #ffb3a8; color: #6e0b11; }
.hc.h4 b { font-weight: 900; }
.rf { position: absolute; top: -6px; right: -5px; display: inline-flex; align-items: center; gap: 1px; background: #e29a00; color: #fff; border-radius: 10px; padding: 1px 4px; font-size: 10px; font-weight: 800; box-shadow: 0 0 0 2px #fff; }
.rf .ic { width: 10px; height: 10px; stroke-width: 2.6; } .rf.bad { background: var(--bad); } .rf.okf { background: var(--ok); }
.fc-side { position: sticky; top: 0; }
.surge-list, .dead-list { display: grid; gap: 6px; }
.sg { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; background: #fffbe0; border: 1px solid #f1e68a; cursor: pointer; font-size: 13px; }
.sg:hover { background: #fff6b0; } .sg > div { flex: 1; } .sg small { display: block; color: #7a6d00; font-size: 11.5px; } .sg em { font-style: normal; font-weight: 900; color: var(--red); } .sg span { font-weight: 800; width: 44px; text-align: right; }
.dd { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-radius: 10px; background: #eef4fa; font-size: 13px; } .dd > div { flex: 1; } .dd small { display: block; color: var(--mut); font-size: 11.5px; } .dd .ic { color: #4a78a8; }
.sd-big { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; } .sd-big b { font-size: 40px; font-weight: 900; letter-spacing: -.02em; color: var(--navy); } .sd-big span { font-weight: 700; } .sd-big small { display: block; font-weight: 500; color: var(--mut); }
.sd-split { display: flex; border-radius: 8px; overflow: hidden; font-size: 11.5px; font-weight: 700; margin-bottom: 12px; } .sd-split span { padding: 5px 8px; white-space: nowrap; } .sd-split .m { background: var(--navy); color: #fff; } .sd-split .rt { background: var(--yel); color: #3a3400; }
.hours { display: flex; align-items: flex-end; gap: 4px; height: 80px; margin-bottom: 12px; }
.hb { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.hb i { width: 100%; background: var(--sky); border-radius: 3px 3px 0 0; } .hb.hot i { background: var(--red); } .hb small { font-size: 9.5px; color: var(--mut); }
.sd-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; } .sd-rows div { background: var(--bg); border-radius: 9px; padding: 8px 10px; } .sd-rows span { display: block; font-size: 11.5px; color: var(--mut); } .sd-rows b { font-size: 17px; }
.fc-side .banner { margin-top: 8px; }
.risk-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rcol h4 { display: flex; align-items: center; gap: 7px; font-size: 13px; margin: 0 0 8px; } .rcol h4 em { font-style: normal; background: #efefef; border-radius: 10px; padding: 0 7px; font-size: 11.5px; }
.ri { padding: 8px 10px; border-radius: 9px; margin-bottom: 6px; cursor: pointer; font-size: 12.5px; border-left: 3px solid #e29a00; background: var(--warn-l); } .ri.bad { border-left-color: var(--bad); background: var(--bad-l); }
.ri b { display: block; } .ri:hover { filter: brightness(.97); }
.allclear { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .allclear > .ic { width: 34px; height: 34px; color: #fff; background: var(--ok); border-radius: 50%; padding: 7px; } .allclear > div { flex: 1; min-width: 300px; } .allclear b { display: block; font-size: 17px; } .allclear span { color: var(--mut); }

/* build modal */
.build-modal { width: 1080px !important; } .build-modal .modal-body { max-height: 76vh; }
@media (max-width: 1100px) { .lanes { grid-template-columns: repeat(2, 1fr); } .kpi-row.k5 { grid-template-columns: repeat(3, 1fr); } }
.lanes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lane { border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 250px; background: #fcfcfc; transition: border-color .2s, background .2s; }
.lane.run { border-color: var(--sky); background: #f2fbff; } .lane.done { border-color: #b8e2cb; background: #fff; }
.lh { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .lh .ic { color: var(--navy); } .lh b { flex: 1; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #d8e6f2; border-top-color: var(--navy); opacity: 0; }
.lane.run .spin { opacity: 1; animation: spin .7s linear infinite; } .lane.done .spin { opacity: 1; border: 0; background: var(--ok); animation: none; position: relative; }
.lane.done .spin::after { content: ""; position: absolute; left: 4.5px; top: 2px; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.it { display: flex; gap: 6px; font-size: 12px; padding: 4px 0; opacity: 0; transform: translateY(4px); transition: all .25s; line-height: 1.35; } .it.in { opacity: 1; transform: none; } .it .ic { width: 13px; height: 13px; color: var(--ok); margin-top: 1px; } .it.more { color: var(--mut); padding-left: 19px; }
.ls { margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--navy); }
.impact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; opacity: .35; transition: opacity .4s; }
.impact.in { opacity: 1; }
.impact div { border-radius: 12px; padding: 12px 14px; background: linear-gradient(135deg, #003a70, #0a6fb7); color: #fff; } .impact label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: #bcd7f0; font-weight: 700; } .impact b { display: block; font-size: 26px; font-weight: 900; color: var(--yel); font-variant-numeric: tabular-nums; }

/* promise guard */
.pg-wrap { overflow-x: auto; }
.pgm { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 12.5px; }
.pgm thead th { text-align: center; padding-bottom: 6px; } .pgm thead th small { display: block; color: var(--mut); font-weight: 500; margin-top: 3px; }
.pgm tbody th { text-align: left; white-space: nowrap; padding-right: 10px; }
.pgm td { text-align: center; }
.pgc { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 100%; padding: 6px 8px; border-radius: 8px; font-weight: 700; font-size: 12px; }
.pgc.ok { background: var(--ok-l); color: var(--ok); } .pgc.bad { background: var(--bad-l); color: var(--bad); cursor: pointer; animation: pulse 1.6s infinite; } .pgc.warn { background: var(--warn-l); color: #8a5300; cursor: pointer; }
.pgc .ic { width: 14px; height: 14px; }
.steps { display: grid; gap: 10px; } .stp { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; background: var(--bg); } .stp .ic { width: 20px; height: 20px; color: var(--red); } .stp b { display: block; } .stp span { font-size: 13px; color: var(--mut); }

/* claims thread */
.thread { display: flex; flex-direction: column; gap: 8px; }
.sms.out { align-self: flex-end; background: var(--navy); color: #fff; border-radius: 16px 16px 4px 16px; } .sms.out b { color: #bcd7f0; }

/* ops checklists */
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 14px; }
.cl { border: 1px solid var(--line); border-radius: 12px; padding: 12px; } .cl-h { display: flex; justify-content: space-between; margin-bottom: 6px; } .cl-i { display: flex !important; padding: 3px 0; font-size: 12.5px !important; }

/* chemicals */
.tanks { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tkr { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 4px 0; } .tkr > span { width: 130px; flex: none; } .tkr b { width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.tkb { flex: 1; height: 12px; border-radius: 6px; background: #edf2f7; overflow: hidden; } .tkb i { display: block; height: 100%; background: linear-gradient(90deg, #2ec9ff, #0a6fb7); border-radius: 6px; } .tkb.warn i { background: #e9a400; } .tkb.bad i { background: var(--bad); }

/* team schedule */
.hm.sch td.sc { text-align: center; border-radius: 8px; padding: 8px 4px; } .hm.sch td.sc b { display: block; font-size: 14px; } .hm.sch td.sc small { font-size: 10.5px; color: var(--mut); }
.sc.under { background: #fde2e2; } .sc.fit { background: #e3f5ec; } .sc.over { background: #fff3dc; }
.lb { display: grid; gap: 8px; } .lbr { display: grid; grid-template-columns: 34px 260px 1fr 40px 70px; align-items: center; gap: 12px; }
.rk { width: 28px; height: 28px; border-radius: 50%; background: #efefef; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; } .rk.top { background: var(--yel); color: #3a3400; }
.lbr .bar i { background: linear-gradient(90deg, var(--red), #ff6b5e); }

@media (max-width: 1440px) {
  .fc-grid { grid-template-columns: 1fr 330px; } .cc-grid { grid-template-columns: 1fr 310px; }
  .fc-speedy { height: 210px; right: 20px; } .fc-hero-l { max-width: 640px; }
  .kpi b { font-size: 24px; } .wtag { font-size: 9px; }
  .hc { padding: 9px 1px; font-size: 12px; }
}
@media (max-width: 1320px) {
  :root { --side: 224px; } .view { padding: 20px 20px 50px; }
  .fc-grid { grid-template-columns: 1fr; } .fc-side { position: static; }
  .risk-cols { grid-template-columns: repeat(2, 1fr); }
  .top-s { width: 220px; }
  .kpi-row.k5 .kpi b { font-size: 21px; } .kpi-row.k5 .kpi { padding: 14px; } .brand img { width: 100px; } .brand b { font-size: 22px; } .brand small { font-size: 9.5px; letter-spacing: .04em; }
  .lane { min-height: 0; padding: 10px; } .it { font-size: 11.5px; padding: 3px 0; } .impact b { font-size: 22px; }
  .cc-grid { grid-template-columns: 1fr; } .grid.g3 { grid-template-columns: 1fr 1fr; }
}
