/* PTL Command — styles. Brand: PTL red #be1e2d, charcoal #231f20, blue #0082c4, light #f2f2f2 */
:root {
  --red: #be1e2d; --red-d: #ab1b28; --red-dd: #873636; --ink: #231f20; --ink2: #4a4546; --muted: #7a7475;
  --blue: #0082c4; --bg: #f4f3f1; --card: #fff; --line: #e6e3e0; --line2: #efedeb;
  --ok: #0e8a4f; --ok-bg: #e5f5ec; --warn: #b06f00; --warn-bg: #fff3dc; --bad: #c0222f; --bad-bg: #fde8ea;
  --r: 12px; --sh: 0 1px 2px rgba(35,31,32,.06), 0 4px 16px rgba(35,31,32,.05);
  --font: "Montserrat", "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font2: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 13.5px/1.45 var(--font2); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font); margin: 0; letter-spacing: -.01em; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); } .small { font-size: 12px; } .grow { flex: 1; }
.app { display: flex; height: 100vh; overflow: hidden; }

/* ---------- sidebar ---------- */
.sidebar { width: 232px; flex: none; background: var(--ink); color: #d9d4d2; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.sidebar::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 260px; height: 260px; background: url(../assets/PTL-logo-white-1-1.png) no-repeat center/contain; opacity: .035; pointer-events: none; }
.brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand img { width: 44px; height: 50px; border-radius: 4px; }
.brand-text b { display: block; font-family: var(--font); color: #fff; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.brand-text span { font-size: 11px; color: #a29b99; letter-spacing: .08em; text-transform: uppercase; }
#nav { padding: 10px 10px; flex: 1; }
.nav-sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #807876; padding: 14px 10px 6px; }
#nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; color: #d9d4d2; text-decoration: none; border-radius: 8px; font-weight: 600; font-size: 13.5px; margin-bottom: 2px; position: relative; }
#nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
#nav a.on { background: linear-gradient(90deg, rgba(190,30,45,.95), rgba(171,27,40,.85)); color: #fff; box-shadow: 0 6px 18px rgba(190,30,45,.35); }
#nav a .ic { width: 18px; height: 18px; }
.nb { margin-left: auto; font-style: normal; font-size: 11px; background: rgba(255,255,255,.12); padding: 1px 7px; border-radius: 10px; font-weight: 700; }
.nb.red { background: #fff; color: var(--red); } .nb.amber { background: #f0a500; color: #231f20; }
#nav a.on .nb { background: rgba(255,255,255,.22); color: #fff; }
.side-foot { padding: 14px 18px 18px; border-top: 1px solid rgba(255,255,255,.07); font-size: 11.5px; color: #a29b99; position: relative; z-index: 1; }
.side-loc b { display: block; color: #e8e3e1; font-size: 12px; }
.linkbtn { background: none; border: 0; color: #a29b99; padding: 0; margin-top: 10px; cursor: pointer; text-decoration: underline; font-size: 11.5px; }
.linkbtn:hover { color: #fff; }

/* ---------- topbar ---------- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 60px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 22px; background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); min-width: 200px; }
.crumbs b { color: var(--ink); font-family: var(--font); }
.crumbs span::after { content: "/"; margin-left: 8px; color: #c9c4c2; }
.search-wrap { flex: 1; max-width: 520px; position: relative; display: flex; align-items: center; }
.search-wrap svg { position: absolute; left: 12px; width: 16px; height: 16px; fill: #9a9392; }
.search-wrap input { width: 100%; height: 38px; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 0 12px 0 36px; outline: none; }
.search-wrap input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(0,130,196,.12); }
.search-results { position: absolute; top: 44px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.14); padding: 6px; display: none; }
.search-results.open { display: block; }
.search-results button { display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto; width: 100%; text-align: left; border: 0; background: none; padding: 7px 9px; border-radius: 8px; cursor: pointer; column-gap: 8px; }
.search-results button:hover { background: var(--bg); }
.search-results em { grid-row: span 2; font-style: normal; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); font-weight: 700; padding-top: 2px; }
.search-results small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clock { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 12.5px; margin-left: auto; }
.me { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid var(--line); }
.me b { display: block; font-size: 12.5px; } .me small { color: var(--muted); font-size: 11px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid transparent; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; font-family: var(--font); transition: transform .08s, box-shadow .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--ink); color: #fff; } .btn.primary:hover { background: #3a3435; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); } .btn.ghost:hover { border-color: #cfc9c6; background: #faf9f8; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.white { background: #fff; color: var(--red); } .btn.white:hover { box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.danger-text { color: var(--bad) !important; }
.btn-bail { background: linear-gradient(180deg, #d0283a, var(--red-d)); color: #fff; box-shadow: 0 4px 14px rgba(190,30,45,.35), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-bail:hover { box-shadow: 0 8px 22px rgba(190,30,45,.45), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-bail svg { fill: currentColor; stroke: none; width: 15px; height: 15px; }
.topbar .btn-bail svg { width: 15px; height: 15px; }
.btn.big { height: 42px; padding: 0 18px; font-size: 14px; }
.btn.sm { height: 32px; font-size: 12.5px; padding: 0 12px; }
.btn.xs { height: 28px; font-size: 12px; padding: 0 10px; border-radius: 7px; }
.btn.wide { width: 100%; justify-content: center; }
.iconbtn { border: 0; background: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.iconbtn:hover { background: var(--bg); color: var(--ink); }

/* ---------- page ---------- */
#view { flex: 1; overflow: auto; }
.page { padding: 22px 26px 40px; max-width: 1680px; margin: 0 auto; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-h h1 { font-size: 26px; font-weight: 800; }
.page-h p { margin: 4px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.card-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.card-h h2 { font-size: 15px; font-weight: 800; }
.card-h .muted { font-size: 12px; }
.two { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-top: 18px; }
.two.tight { margin: 0 0 18px; grid-template-columns: 1.2fr 1fr; }
.badge { font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 10px; margin-left: auto; }
.badge.bad { background: var(--bad-bg); color: var(--bad); } .badge.ok { background: var(--ok-bg); color: var(--ok); }
.empty { padding: 26px; text-align: center; color: var(--muted); }
.empty.sm { padding: 14px; display: flex; gap: 8px; align-items: center; justify-content: center; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-bottom: 18px; }
.kpis.k4 { grid-template-columns: repeat(4, 1fr); } .kpis.k3 { grid-template-columns: repeat(3, 1fr); }
.kpis.flat { padding: 14px; margin: 0; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px; box-shadow: var(--sh); position: relative; overflow: hidden; }
.kpis.flat .kpi { box-shadow: none; background: #faf9f8; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #d8d3d0; }
.kpi.good::before { background: var(--ok); } .kpi.warn::before { background: #e39b00; } .kpi.bad::before { background: var(--bad); }
.kpi span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.kpi b { display: block; font-family: var(--font); font-size: 26px; font-weight: 800; margin: 3px 0 1px; letter-spacing: -.02em; }
.kpi small { color: var(--muted); font-size: 11.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.bad b { color: var(--bad); } .kpi.warn b { color: #9a6200; }

/* ---------- crew command ---------- */
.crew-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; }
.map-card { overflow: hidden; display: flex; flex-direction: column; }
.map { position: relative; flex: 1; min-height: 470px; background: #1b1819; display: flex; flex-direction: column; }
.map svg { flex: 1; width: 100%; min-height: 420px; display: block; }
.geo-river { fill: none; stroke: #2f6f99; stroke-width: 4; opacity: .55; stroke-linecap: round; }
.geo-river.thin { stroke-width: 2.4; opacity: .45; }
.geo-int { fill: none; stroke: #6c6264; stroke-width: 3.2; stroke-linecap: round; }
.geo-us { fill: none; stroke: #4a4244; stroke-width: 1.8; stroke-dasharray: 1 0; }
.geo-border { fill: none; stroke: #8a7f80; stroke-width: 1.4; stroke-dasharray: 7 6; opacity: .7; }
.geo-ftc { fill: rgba(120, 140, 90, .12); stroke: rgba(150, 170, 110, .25); stroke-dasharray: 3 4; }
.state { fill: rgba(255,255,255,.17); font: 800 15px var(--font); letter-spacing: .5em; }
.shield path { fill: #2b5ea8; stroke: #fff; stroke-width: 1.4; } .shield text { fill: #fff; font: 800 9.5px var(--font); text-anchor: middle; }
.city circle { fill: #8c8384; } .city text { fill: #a49b9c; font: 600 11px var(--font2); }
.city.big circle { fill: #cfc7c5; } .city.big text { fill: #e3dcda; font: 700 13px var(--font); }
.city.sm text { font-size: 10px; fill: #7f7677; }
.pin { cursor: pointer; transition: opacity .2s; }
.pin:hover > circle:nth-last-of-type(1), .pin:hover rect { filter: brightness(1.12); }
.pin.dim { opacity: .25; }
.pin-n { fill: #fff; font: 800 12.5px var(--font); text-anchor: middle; pointer-events: none; }
.pin-lbl { fill: #fff; font: 700 11.5px var(--font); paint-order: stroke; stroke: rgba(27,24,25,.9); stroke-width: 4px; pointer-events: none; }
.pin.over > circle:not(.pulse) { stroke: #ffd400; stroke-width: 4; }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 1.8s ease-out infinite; }
.pulse.p2 { animation-delay: .9s; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.route { fill: none; stroke: url(#route); stroke-width: 3.2; stroke-linecap: round; animation: draw 1.4s ease-out forwards; filter: drop-shadow(0 0 6px rgba(255, 70, 85, .7)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.route-dot { fill: #fff; filter: drop-shadow(0 0 5px #ff3b4c); }
.route-origin { fill: #ff5a66; stroke: #fff; stroke-width: 1.5; }
.map-ctl { position: absolute; top: 12px; right: 12px; display: flex; background: rgba(35,31,32,.85); border: 1px solid rgba(255,255,255,.12); border-radius: 9px; padding: 3px; backdrop-filter: blur(6px); }
.map-ctl button { border: 0; background: none; color: #cfc8c6; font: 700 12px var(--font); padding: 6px 11px; border-radius: 7px; cursor: pointer; }
.map-ctl button.on { background: #fff; color: var(--ink); }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; background: #231f20; padding: 9px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.area { fill: rgba(255,255,255,.22); font: 800 12px var(--font); letter-spacing: .35em; }
.nowrap { white-space: nowrap; }
.map-legend span { display: flex; align-items: center; gap: 6px; color: #ddd6d4; font-size: 11px; font-weight: 600; }
.map-legend i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.chip-x { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--bg); border-radius: 20px; padding: 3px 6px 3px 11px; font-size: 12px; font-weight: 700; cursor: pointer; }
.chip-x .ic { width: 13px; height: 13px; }

.side-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.bail-card { background: linear-gradient(135deg, #c42232 0%, #9e1a26 60%, #6f1520 100%); color: #fff; border: 0; padding: 20px; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(190,30,45,.35); }
.bail-card::after { content: ""; position: absolute; right: -30px; top: -20px; width: 170px; height: 190px; background: url(../assets/PTL-logo-white-1-1.png) no-repeat center/contain; opacity: .09; }
.bail-card small { text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; font-weight: 800; opacity: .85; }
.bail-card h3 { font-size: 19px; line-height: 1.22; margin: 6px 0 8px; font-weight: 800; position: relative; z-index: 1; }
.bail-card p { margin: 0 0 14px; opacity: .88; font-size: 12.5px; position: relative; z-index: 1; }
.bail-card .btn { position: relative; z-index: 1; }
.bail-card .btn svg { fill: currentColor; stroke: none; }
.alerts { padding: 6px 10px 10px; max-height: 262px; overflow: auto; }
.alert { display: flex; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 9px; border-bottom: 1px solid var(--line2); }
.alert:last-child { border-bottom: 0; }
.alert > .ic { width: 18px; height: 18px; }
.alert.red > .ic { color: var(--bad); } .alert.amber > .ic { color: #d18a00; }
.alert > div { flex: 1; min-width: 0; font-size: 12.5px; }
.alert small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert.red small { color: var(--bad); }
div.alert.red:not(.alerts .alert) { background: var(--bad-bg); margin-bottom: 14px; border: 0; }

/* board */
.board-card { margin-top: 18px; }
.filters { display: flex; gap: 8px; }
.filters select, .filters input, .list-bar select, .search-in input { height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; outline: none; }
.filters input { width: 210px; }
.board-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 270px; }
.board { overflow-x: auto; max-height: 620px; overflow-y: auto; border-right: 1px solid var(--line2); }
.brow { display: grid; grid-template-columns: 236px repeat(14, minmax(52px, 1fr)); position: relative; min-width: 960px; border-bottom: 1px solid var(--line2); align-items: center; }
.brow > * { grid-row: 1; }
.bhead { position: sticky; top: 0; background: #fff; z-index: 3; border-bottom: 1px solid var(--line); }
.bhead .bperson { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.bday { text-align: center; padding: 6px 0; line-height: 1.1; }
.bday small { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.bday b { font-family: var(--font); font-size: 14px; }
.bday.we { background: #f7f6f4; } .bday.today b { background: var(--red); color: #fff; border-radius: 6px; padding: 0 6px; }
.bperson { padding: 6px 10px 6px 6px; display: flex; align-items: center; gap: 8px; position: sticky; left: 0; background: #fff; z-index: 2; height: 100%; border-right: 1px solid var(--line2); cursor: grab; }
.bperson:active { cursor: grabbing; }
.drag-h { color: #c6c0be; display: flex; } .drag-h .ic { width: 14px; height: 14px; stroke-width: 3; }
.bp-txt { flex: 1; min-width: 0; line-height: 1.2; }
.bp-txt b { display: block; font-size: 12.5px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-txt b:hover { color: var(--blue); text-decoration: underline; }
.bp-txt small { font-size: 11px; color: var(--muted); }
.ot { color: #b06f00; font-weight: 700; }
.cdot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.cdot.green { background: #1aa863; } .cdot.amber { background: #f0a500; } .cdot.red { background: var(--bad); box-shadow: 0 0 0 3px rgba(192,34,47,.18); }
.bcell { height: 42px; border-left: 1px solid var(--line2); cursor: pointer; }
.bcell.we { background: repeating-linear-gradient(135deg, #f7f6f4 0 6px, #f1efed 6px 7px); }
.bcell.today { background: rgba(190,30,45,.05); }
.bcell:hover { background: rgba(0,130,196,.08); }
.bar { height: 28px; margin: 0 2px; border-radius: 6px; background: var(--c); color: #fff; font: 700 11.5px var(--font); display: flex; align-items: center; gap: 5px; padding: 0 8px; white-space: nowrap; overflow: hidden; cursor: pointer; z-index: 1; box-shadow: 0 1px 2px rgba(0,0,0,.12), inset 0 0 0 1px rgba(0,0,0,.06); text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.bar span { overflow: hidden; text-overflow: ellipsis; }
.bar:hover { filter: brightness(1.06); box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.bar.g-red { background: repeating-linear-gradient(135deg, var(--c) 0 8px, color-mix(in srgb, var(--c) 70%, #000) 8px 11px); outline: 2px solid var(--bad); outline-offset: 1px; }
.bar.g-amber { box-shadow: inset 0 -3px 0 #ffcf4a; }
.bar.tm { animation: tmglow 1.6s ease-in-out infinite; }
@keyframes tmglow { 50% { box-shadow: 0 0 0 3px rgba(190,30,45,.25), 0 0 14px rgba(190,30,45,.45); } }
.bar-ic { width: 13px; height: 13px; stroke-width: 2.6; }
.bgroup-h { position: sticky; left: 0; padding: 7px 12px; background: #f6f5f3; font: 800 11.5px var(--font); text-transform: uppercase; letter-spacing: .07em; color: var(--ink2); border-bottom: 1px solid var(--line2); cursor: pointer; display: flex; align-items: center; gap: 8px; min-width: 960px; }
.bgroup-h em { font-style: normal; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); }
.bgroup.collapsed .caret { transform: rotate(-90deg); }
.caret { display: inline-block; transition: transform .15s; }
.av { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font: 800 11px var(--font); color: #fff; background: #6b6364; flex: none; }
.av.sm { width: 24px; height: 24px; font-size: 9.5px; } .av.lg { width: 40px; height: 40px; font-size: 13.5px; } .av.xl { width: 58px; height: 58px; font-size: 19px; }
.t-Foreman { background: #231f20; } .t-PipeWelder { background: #be1e2d; } .t-StructuralWelder { background: #c4511f; } .t-PipeFitter { background: #a07400; }
.t-Millwright { background: #0f8a5f; } .t-Ironworker { background: #4a43b5; } .t-CraneOperator { background: #0082c4; } .t-Fabricator { background: #7a6a5f; } .t-CNCMachinist { background: #b3477a; }
.targets { background: #faf9f8; display: flex; flex-direction: column; max-height: 620px; }
.targets-h { padding: 10px 14px; font: 800 12px var(--font); text-transform: uppercase; letter-spacing: .07em; color: var(--ink2); border-bottom: 1px solid var(--line2); }
.targets-h small { display: block; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); font-family: var(--font2); }
#targets { overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.jt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 9px; transition: all .15s; }
.jt > i { width: 4px; align-self: stretch; border-radius: 3px; background: var(--c); }
.jt-txt { flex: 1; min-width: 0; line-height: 1.2; }
.jt-txt b { font-size: 12px; display: block; } .jt-txt small { font-size: 11px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jt-n { font: 800 12px var(--font); background: var(--bg); padding: 2px 8px; border-radius: 10px; }
.jt-iss { display: inline-flex; align-items: center; gap: 3px; color: var(--bad); font-weight: 800; font-size: 11.5px; } .jt-iss .ic { width: 13px; height: 13px; }
.p1 { font: 800 10px var(--font); color: #fff; background: var(--red); padding: 1px 6px; border-radius: 4px; }
body.dragging .jt.g-green { border-color: #1aa863; background: #effaf4; }
body.dragging .jt.g-amber { border-color: #f0a500; background: #fff8e8; }
body.dragging .jt.g-red { border-color: var(--bad); background: #fdf0f1; opacity: .75; }
.jt.over { transform: scale(1.03); box-shadow: 0 6px 18px rgba(0,0,0,.12); }

/* chips */
.gchip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 2px 8px 2px 6px; border-radius: 12px; white-space: nowrap; }
.gchip .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.gchip.ok { background: var(--ok-bg); color: var(--ok); } .gchip.warn { background: var(--warn-bg); color: var(--warn); } .gchip.bad { background: var(--bad-bg); color: var(--bad); }
.gchip.neutral { background: #f0eeec; color: var(--ink2); }
.lchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.lchip i { width: 9px; height: 9px; border-radius: 3px; display: block; }
.schip { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 12px; background: #efedeb; color: var(--ink2); white-space: nowrap; }
.st-active { background: #e3f1fa; color: #00669a; } .st-bid { background: #f3ecfb; color: #5a3fa8; } .st-award { background: #e5f5ec; color: var(--ok); }
.st-punch { background: var(--warn-bg); color: var(--warn); } .st-closed { background: #efedeb; color: #6c6566; } .st-disp { background: var(--bad-bg); color: var(--bad); } .st-inv { background: #e9e7ff; color: #4b40b0; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #f0eeec; color: var(--ink2); }
.tag.good { background: var(--ok-bg); color: var(--ok); } .tag.warn { background: var(--warn-bg); color: var(--warn); }
.rchip { display: inline-block; font-size: 11.5px; padding: 3px 9px; border-radius: 6px; background: #eef6fb; color: #00669a; font-weight: 600; margin: 0 4px 4px 0; }

/* burn */
.burn { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.burn-track { flex: 1; height: 8px; background: #efedeb; border-radius: 5px; position: relative; }
.burn-used { height: 100%; border-radius: 5px; background: #1aa863; }
.burn-used.amber { background: #e9a100; } .burn-used.red { background: var(--bad); }
.burn-pct { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--ink); border-radius: 1px; }
.burn-lbl { font-size: 11.5px; font-weight: 700; width: 78px; text-align: right; white-space: nowrap; }
.burn-lbl.green { color: var(--ok); } .burn-lbl.amber { color: var(--warn); } .burn-lbl.red { color: var(--bad); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fbfaf9; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.tbl th.sortable { cursor: pointer; } .tbl th.sortable:hover { color: var(--ink); }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl tbody tr { cursor: pointer; } .tbl tbody tr:hover td { background: #fbfaf8; }
.tbl.compact td { padding: 8px 14px; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .sub { display: block; color: var(--muted); font-size: 12px; max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl-wrap { overflow: auto; }
.list-bar { display: flex; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line2); align-items: center; flex-wrap: wrap; }
.search-in { position: relative; display: flex; align-items: center; }
.search-in .ic { position: absolute; left: 10px; color: #a39c9a; width: 14px; height: 14px; }
.search-in input { padding-left: 30px; width: 280px; }
.pcell { display: flex; align-items: center; gap: 10px; }
.avs { display: flex; } .avs .av { margin-left: -3px; border: 2px solid #fff; } .avs .av:first-child { margin-left: 0; }
.live { color: var(--bad); font-weight: 800; } .live::before { content: "● "; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; line-height: 1; }
.qty b { min-width: 26px; text-align: center; } .qty b.low { color: var(--warn); } .qty small { color: var(--muted); width: 22px; text-align: left; }

/* feed */
.feed { padding: 8px 18px 14px; }
.fi { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line2); font-size: 12.5px; }
.fi:last-child { border: 0; }
.fi i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-top: 5px; flex: none; box-shadow: 0 0 0 3px rgba(190,30,45,.15); }
.fi small { display: block; color: var(--muted); font-size: 11px; }

/* hbars */
.hbars { padding: 12px 18px 16px; display: grid; gap: 7px; }
.hb { display: grid; grid-template-columns: 130px 1fr 28px; gap: 10px; align-items: center; font-size: 12.5px; }
.hb div { height: 10px; background: #f2f0ee; border-radius: 5px; overflow: hidden; }
.hb i { display: block; height: 100%; background: var(--ink); border-radius: 0 5px 5px 0; }
.hb b { text-align: right; font-variant-numeric: tabular-nums; }

/* shop */
.shop-top { display: grid; grid-template-columns: 300px 1fr; gap: 18px; margin-bottom: 18px; }
.shop-top img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); box-shadow: var(--sh); min-height: 220px; }
.mload { padding: 12px 18px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 28px; }
.ml { display: grid; grid-template-columns: 170px 1fr 44px; gap: 10px; align-items: center; font-size: 12px; }
.ml span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-t { height: 9px; background: #f0eeec; border-radius: 5px; overflow: hidden; }
.ml-t i { display: block; height: 100%; border-radius: 0 5px 5px 0; }
.ml-t i.green { background: #1aa863; } .ml-t i.amber { background: #e9a100; } .ml-t i.red { background: var(--bad); }
.ml b { text-align: right; } .ml b.red { color: var(--bad); } .ml b.amber { color: var(--warn); }
.kanban { display: grid; grid-template-columns: repeat(6, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; }
.kcol { background: #ebe9e6; border-radius: var(--r); padding: 8px; min-height: 360px; transition: background .15s; }
.kcol.over { background: #dfeef7; }
.kcol-h { font: 800 12px var(--font); text-transform: uppercase; letter-spacing: .06em; padding: 4px 6px 10px; display: flex; justify-content: space-between; color: var(--ink2); }
.kcol-h em { font-style: normal; background: #fff; border-radius: 10px; padding: 0 8px; }
.kcard { background: #fff; border-radius: 9px; padding: 10px 11px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.08); border-left: 4px solid var(--c); cursor: grab; transition: transform .1s, box-shadow .15s; }
.kcard:hover { box-shadow: 0 6px 16px rgba(0,0,0,.1); transform: translateY(-1px); }
.kcard.drag { opacity: .4; }
.kc-top { display: flex; justify-content: space-between; font-size: 12px; } .kc-top span { font-size: 11px; font-weight: 700; }
.kc-top .late { color: var(--bad); } .kc-top .soon { color: var(--warn); }
.kcard p { margin: 4px 0 8px; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.kc-meta, .kc-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); gap: 6px; }
.kc-foot { border-top: 1px solid var(--line2); margin-top: 6px; padding-top: 6px; font-weight: 700; color: var(--ink2); }

/* ---------- modal / drawer / pop / toast / tip ---------- */
.scrim { position: fixed; inset: 0; background: rgba(28,24,25,.45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; backdrop-filter: blur(2px); }
.scrim.open { opacity: 1; pointer-events: auto; }
.modal { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 50; padding: 20px; }
.modal-card { background: #fff; border-radius: 16px; width: 640px; max-width: 100%; max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.35); opacity: 0; transform: translateY(14px) scale(.98); transition: all .2s; overflow: hidden; }
.modal.open { pointer-events: auto; } .modal.open .modal-card { opacity: 1; transform: none; }
.modal-card.sm { width: 500px; } .modal-card.bail { width: 680px; } .modal-card.results { width: 1060px; } .modal-card.scanbox { width: 460px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line2); }
.modal-head h3 { font-size: 17px; font-weight: 800; } .modal-head p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.modal-body { padding: 18px 20px; overflow: auto; }
.modal-body p { margin: 0 0 10px; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line2); background: #fbfaf9; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.fld { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: var(--ink2); }
.fld em { color: var(--red); font-style: normal; }
.fld input, .fld select, .fld textarea { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-weight: 400; font-size: 13.5px; outline: none; background: #fff; color: var(--ink); }
.fld input, .fld select { height: 38px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,130,196,.12); }
.fld .err { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(192,34,47,.12); }
.multi { display: flex; flex-wrap: wrap; gap: 6px; max-height: 150px; overflow: auto; }
.mchk { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); padding: 5px 9px; border-radius: 7px; font-weight: 600; font-size: 12px; cursor: pointer; }
.mchk:has(input:checked) { background: #eef6fb; border-color: #9ccde8; }
.gate-head { justify-content: flex-start; background: var(--bad-bg); }
.gate-badge { width: 44px; height: 44px; border-radius: 12px; background: var(--bad); color: #fff; display: grid; place-items: center; }
.gate-badge .ic { width: 24px; height: 24px; }
.gate-list { display: grid; gap: 6px; margin-bottom: 12px; }
.gate-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; background: #f8f7f5; font-size: 12.5px; }
.gate-row span { color: var(--muted); font-size: 12px; }
.gate-row.ok .ic { color: var(--ok); } .gate-row.expiring { background: var(--warn-bg); } .gate-row.expiring .ic { color: var(--warn); }
.gate-row.expired, .gate-row.missing { background: var(--bad-bg); } .gate-row.expired .ic, .gate-row.missing .ic { color: var(--bad); } .gate-row.expired span, .gate-row.missing span { color: var(--bad); font-weight: 700; }
.gate-list.sm .gate-row { padding: 6px 8px; font-size: 12px; }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 100%; background: #fff; z-index: 45; transform: translateX(105%); transition: transform .25s cubic-bezier(.2,.8,.2,1); box-shadow: -20px 0 60px rgba(0,0,0,.18); }
.drawer.open { transform: none; }
.drawer-inner { height: 100%; display: flex; flex-direction: column; }
.dr-h { padding: 22px 22px 18px; background: var(--ink); color: #fff; display: flex; gap: 14px; align-items: flex-start; position: relative; border-top: 5px solid var(--c, var(--red)); }
.dr-h > div { flex: 1; }
.dr-h small { text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; color: #c8c0be; font-weight: 700; }
.dr-h h2 { font-size: 20px; font-weight: 800; margin: 4px 0; line-height: 1.2; }
.dr-h p { margin: 0; color: #d4cdcb; font-size: 12.5px; display: flex; gap: 6px; align-items: center; }
.dr-h .iconbtn { color: #cfc8c6; } .dr-h .iconbtn:hover { background: rgba(255,255,255,.1); color: #fff; }
.dr-h.person { border-top-color: var(--red); align-items: center; }
.dr-body { padding: 18px 22px 30px; overflow: auto; flex: 1; }
.dr-body h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); margin: 22px 0 10px; font-weight: 800; }
.h4row { display: flex; align-items: center; justify-content: space-between; } .h4row h4 { margin-bottom: 10px; }
.dr-actions { display: flex; gap: 8px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line2); border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; margin-top: 16px; }
.facts > div { background: #fff; padding: 10px 12px; }
.facts span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.facts b { font-size: 13px; }
.facts span.schip { display: inline-block; margin: 0; font-size: 11.5px; letter-spacing: 0; text-transform: none; }

.renew { padding: 0 14px 14px; display: grid; gap: 6px; }
.renew .mi { cursor: pointer; }
.burn-big { background: #faf9f8; border: 1px solid var(--line2); border-radius: 10px; padding: 14px; }
.bb-nums { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 12px; }
.bb-nums b { display: block; font: 800 19px var(--font); } .bb-nums span { font-size: 11px; color: var(--muted); }
.bb-nums .red b { color: var(--bad); } .bb-nums .amber b { color: var(--warn); } .bb-nums .green b { color: var(--ok); }
.mini-list { display: grid; gap: 6px; }
.mi { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 9px; cursor: pointer; }
.mi:hover { background: #faf9f8; }
.mi > div { flex: 1; min-width: 0; line-height: 1.25; } .mi b { font-size: 12.5px; } .mi small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi .dot { width: 9px; height: 9px; border-radius: 3px; display: block; }
.wallet { display: grid; gap: 7px; }
.wc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); background: #fff; cursor: pointer; position: relative; }
.wc:hover { border-color: #cfc9c6; }
.wc-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.wc.expiring .wc-ic { background: var(--warn-bg); color: var(--warn); } .wc.expired .wc-ic { background: var(--bad-bg); color: var(--bad); }
.wc.expired { border-color: #f3c3c8; background: #fffafa; } .wc.expiring { border-color: #f6dfa8; }
.wc-t { flex: 1; min-width: 0; } .wc-t b { font-size: 12.5px; display: block; } .wc-t small { color: var(--muted); font-size: 11.5px; }
.wc-e { text-align: right; } .wc-e b { display: block; font-size: 12.5px; } .wc-e small { color: var(--muted); font-size: 11px; }
.wc.expired .wc-e b { color: var(--bad); } .wc.expiring .wc-e b { color: var(--warn); }

.pop { position: fixed; z-index: 60; background: #fff; border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.22); border: 1px solid var(--line); width: 360px; padding: 10px; display: none; max-height: 70vh; overflow: auto; }
.pop.open { display: block; animation: popin .14s ease-out; }
@keyframes popin { from { opacity: 0; transform: translateY(-4px); } }
.pop-h { padding: 4px 6px 8px; } .pop-h b { display: block; font-size: 13.5px; } .pop-h small { color: var(--muted); font-size: 11.5px; }
.pop-range { display: flex; gap: 14px; padding: 4px 6px 8px; font-size: 12px; font-weight: 600; }
.pop-meta { padding: 0 6px 8px; display: flex; gap: 10px; align-items: center; font-size: 12px; }
.pop-list { display: grid; gap: 4px; margin-bottom: 6px; }
.pop-job { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: 1px solid var(--line2); background: #fff; border-radius: 9px; padding: 7px 9px; cursor: pointer; }
.pop-job:hover { border-color: #b9dcef; background: #f5fafd; }
.pop-job > i { width: 4px; height: 28px; border-radius: 2px; background: var(--c); flex: none; }
.pop-job > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.25; }
.pop-job b { font-size: 12.5px; display: block; } .pop-job small { font-size: 11px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-job.g-red small { color: var(--bad); }
.pop-job.g-red { background: #fffafa; }
.pop-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 2px 2px; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { display: flex; gap: 10px; align-items: flex-start; background: var(--ink); color: #fff; padding: 11px 14px; border-radius: 11px; box-shadow: 0 12px 34px rgba(0,0,0,.3); max-width: 420px; font-size: 12.5px; transform: translateX(30px); opacity: 0; transition: all .3s cubic-bezier(.2,.8,.2,1); }
.toast.in { transform: none; opacity: 1; }
.toast .ic { width: 18px; height: 18px; margin-top: 1px; }
.toast.ok .ic { color: #5fe0a0; } .toast.warn .ic { color: #ffc547; } .toast.bail { background: linear-gradient(135deg, #c42232, #8e1722); } .toast.sms { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.toast.sms .ic { color: var(--blue); } .sms { color: var(--ink2); font-style: italic; }
.tip { position: fixed; z-index: 80; background: #1d1a1b; color: #f1ecea; padding: 8px 10px; border-radius: 8px; font-size: 12px; max-width: 320px; pointer-events: none; opacity: 0; transition: opacity .12s; line-height: 1.4; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.tip.open { opacity: 1; } .tip-k { color: #ff8a94; font-weight: 700; }

/* ---------- bail-out ---------- */
.bail-head { justify-content: flex-start; background: linear-gradient(135deg, #c42232, #8e1722); color: #fff; border: 0; }
.bail-head p { color: rgba(255,255,255,.85) !important; } .bail-head > div:nth-child(2) { flex: 1; }
.bail-head .iconbtn { color: rgba(255,255,255,.8); } .bail-head .iconbtn:hover { background: rgba(255,255,255,.12); color: #fff; }
.bolt { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.bolt .ic { width: 24px; height: 24px; fill: #fff; stroke: none; }
.need-h { font: 800 12px var(--font); text-transform: uppercase; letter-spacing: .07em; color: var(--ink2); margin: 16px 0 8px; }
.needs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.need { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; display: flex; flex-direction: column; gap: 7px; font-weight: 700; font-size: 12px; transition: all .15s; }
.need.on { border-color: var(--red); background: #fff6f7; box-shadow: 0 0 0 3px rgba(190,30,45,.08); }
.stepper { display: flex; align-items: center; justify-content: space-between; }
.stepper button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 800; }
.stepper button:hover { border-color: var(--red); color: var(--red); }
.stepper b { font: 800 17px var(--font); }
.site-reqs span { font-size: 12px; } .req-chips { margin-top: 3px; }
.scan { padding: 30px 30px 26px; text-align: center; }
.scan-ring { width: 120px; height: 120px; margin: 0 auto 14px; position: relative; display: grid; place-items: center; }
.scan-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.scan-ring circle { fill: none; stroke: #f0eeec; stroke-width: 8; }
.scan-ring .arc { stroke: var(--red); stroke-dasharray: 326; stroke-dashoffset: 326; animation: arc 2.4s linear forwards; stroke-linecap: round; }
@keyframes arc { to { stroke-dashoffset: 0; } }
.scan-ring b { font: 800 32px var(--font); line-height: 1; margin-top: 10px; } .scan-ring small { position: absolute; bottom: 30px; color: var(--muted); font-size: 11px; }
.scan h3 { font-size: 17px; }
.scan-name { color: var(--muted); font-size: 12.5px; height: 20px; margin: 4px 0 14px; font-variant-numeric: tabular-nums; }
.scan-steps { display: grid; gap: 6px; text-align: left; }
.ss { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 9px; background: #f8f7f5; color: #a39c9a; font-weight: 600; font-size: 12.5px; transition: all .25s; }
.ss .ic { opacity: .3; } .ss.done { background: var(--ok-bg); color: var(--ok); } .ss.done .ic { opacity: 1; }
.res-hero { background: radial-gradient(circle at 85% 0%, #4a2a2e 0%, #231f20 55%); color: #fff; padding: 22px 26px; display: flex; gap: 24px; align-items: center; justify-content: space-between; border-bottom: 4px solid var(--red); }
.res-hero small { text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; color: #ff8f99; font-weight: 800; }
.res-hero h2 { font-size: 26px; font-weight: 800; margin: 4px 0; } .res-hero h2 span { color: #ff5a66; }
.res-hero p { margin: 0; color: #cfc7c5; font-size: 13px; }
.res-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; flex: none; }
.res-stats > div { padding: 10px 16px; border-right: 1px solid rgba(255,255,255,.08); } .res-stats > div:last-child { border: 0; }
.res-stats b { display: block; font: 800 18px var(--font); } .res-stats span { font-size: 11px; color: #bdb5b3; white-space: nowrap; }
.res-body { background: #f6f5f3; }
.crew-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ccard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 9px; box-shadow: var(--sh); animation: rise .45s cubic-bezier(.2,.8,.2,1) both; border-top: 3px solid var(--red); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.cc-top { display: flex; gap: 10px; align-items: center; } .cc-top > div:nth-child(2) { flex: 1; } .cc-top b { display: block; font-size: 14px; } .cc-top small { color: var(--muted); font-size: 12px; }
.eta { text-align: center; background: var(--ink); color: #fff; border-radius: 10px; padding: 4px 10px; line-height: 1.05; }
.eta b { font: 800 20px var(--font); } .eta small { color: #cfc7c5; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.cc-from { display: flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; color: var(--ink2); } .cc-from .ic { width: 14px; height: 14px; color: var(--red); }
.cc-checks { display: flex; flex-wrap: wrap; gap: 4px; }
.ck { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 2px 7px 2px 5px; border-radius: 6px; background: var(--ok-bg); color: var(--ok); }
.ck .ic { width: 11px; height: 11px; stroke-width: 3; } .ck.expiring { background: var(--warn-bg); color: var(--warn); }
.cc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.cc-impact { font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }
.cc-impact.warn { color: var(--warn); font-weight: 600; }
.why { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.why-h { padding: 10px 14px; font: 800 13px var(--font); border-bottom: 1px solid var(--line2); display: flex; justify-content: space-between; align-items: center; }
.why-h small { font: 600 11.5px var(--font2); color: var(--muted); }
.why .tbl tbody tr { cursor: default; }
.why td:first-child { white-space: nowrap; } .why td:first-child .av { vertical-align: middle; margin-right: 4px; }

@media (max-width: 1350px) { .kpis { grid-template-columns: repeat(4, 1fr); } .crew-grid { grid-template-columns: 1fr; } .two { grid-template-columns: 1fr; } }
