:root {
  --ink: #0F1923; --ink-2: #1a2534;
  --muted: #525252; --muted-2: #7A7A78;
  --line: #E5E2DC; --line-2: #ECE9E2; --line-3: #F2EFE8;
  --paper: #FFFFFF; --paper-2: #FAFAF7; --paper-3: #F5F2ED;
  --accent: #B08D57; --accent-hover: #8F6F3E;
  --accent-soft: #F7F1E6; --accent-soft-2: #FBF7F0;
  --finance: #2D5A66;
  --amber: #B45309; --amber-soft: #FFFBEB;
  --green: #2F7A4D; --green-soft: #E8F5EE;
  --red: #C94A3E; --red-soft: #FBE9E7;
  --ff-body: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --max-w: 1280px; --inner-pad: 24px;
  --dur-fast: 0.15s; --dur-base: 0.3s;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--ff-body); color: var(--ink); background: var(--paper); line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: 'tnum'; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.1; font-weight: 600; }
p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); font-weight: 400; }
.h-section-sm { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; }
.h-display { font-size: clamp(40px, 5.2vw, 60px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; }
.h2-band { font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.12; }
.tnum { font-feature-settings: 'tnum'; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--inner-pad); padding-right: var(--inner-pad); }
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--line); }
.bg-2 { background: var(--paper-2); }

/* Buttons */
.btn { font-family: inherit; font-size: 16px; font-weight: 500; padding: 12px 20px; border: 1px solid transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none; border-radius: 0; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-base); }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 22px; font-size: 17px; font-weight: 600; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); box-shadow: 0 10px 28px -10px rgba(15,25,35,0.45); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-accent-dark-on { background: var(--accent); color: var(--ink); }
.btn-accent-dark-on:hover { background: #c39e6a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-inv { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost-inv:hover { border-color: #fff; background: rgba(255,255,255,0.04); }
.txt-link { color: var(--accent); font-weight: 500; font-size: 17px; display: inline-flex; align-items: center; gap: 6px; transition: gap var(--dur-fast); }
.txt-link:hover { gap: 10px; }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; animation: pulse 2s ease-in-out infinite; }
.site-nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 14px var(--inner-pad); display: flex; align-items: center; justify-content: space-between; }
.site-nav-left { display: flex; align-items: center; gap: 44px; }
.site-nav-right { display: flex; align-items: center; gap: 10px; }
.nav-list { display: flex; align-items: center; gap: 22px; }
.nav-link { font-size: 16.5px; font-weight: 500; color: var(--ink); padding: 8px 4px; }
.nav-link:hover { color: var(--accent); }
.nav-link.is-active { color: var(--accent); }
.nav-signin { font-size: 16px; padding: 8px 12px; color: var(--ink); }
.nav-signin:hover { color: var(--accent); }
.edma-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.edma-logo .phoenix { height: 34px; width: auto; }

/* HERO */
.cg-hero { padding: 96px 0 56px; text-align: center; }
.cg-hero .eyebrow { display: inline-block; margin-bottom: 22px; }
.cg-hero h1 { margin-bottom: 24px; max-width: 860px; margin-left: auto; margin-right: auto; }
.cg-hero .lede { max-width: 760px; margin: 0 auto 36px; font-size: 20px; }
.cg-hero-cta { display: flex; justify-content: center; gap: 16px; align-items: center; flex-wrap: wrap; }
.cg-hero-meta { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.cg-hero-meta .item { display: flex; flex-direction: column; gap: 4px; }
.cg-hero-meta .lab { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.cg-hero-meta .val { font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.cg-hero-meta .sub { font-size: 15px; color: var(--muted); }

/* SUB-CATEGORIES GRID */
.cg-cat-head { max-width: 820px; margin-bottom: 48px; }
.cg-cat-head .h-section-sm { margin: 16px 0 18px; }
.cg-cat-head p { font-size: 18px; line-height: 1.6; color: var(--muted); }
.cg-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: var(--paper); }
.cg-cat { padding: 28px 26px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; position: relative; }
.cg-cat:nth-child(3n) { border-right: 0; }
.cg-cat:nth-last-child(-n+3) { border-bottom: 0; }
.cg-cat .num { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted-2); font-feature-settings: 'tnum'; }
.cg-cat .ttl { font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; }
.cg-cat .desc { font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.cg-cat .distinct { font-size: 15px; line-height: 1.5; color: var(--ink); font-style: italic; font-weight: 500; padding-top: 10px; border-top: 1px dashed var(--line); }
.cg-cat .distinct .lab { font-style: normal; color: var(--muted-2); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.cg-cat .profile { margin-top: auto; padding-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.cg-cat .chip { font-size: 13.5px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 0; padding: 3px 10px; background: var(--paper-2); }
.cg-cat .chip .v { color: var(--ink); font-weight: 600; margin-left: 2px; }

/* CENTERPIECE — SKU-level shipment cockpit */
.cg-cp { padding: 0 0 96px; }
.cg-cp-frame { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0,0,0,0.04); overflow: hidden; }

.cp-topnav { background: var(--ink); display: flex; align-items: center; gap: 24px; padding: 12px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.cp-brand { color: #fff; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.cp-brand .dot { width: 14px; height: 14px; background: var(--accent); display: inline-block; }
.cp-tabs { display: flex; gap: 22px; }
.cp-tab { font-size: 15px; color: rgba(255,255,255,0.55); padding: 4px 0; border-bottom: 2px solid transparent; }
.cp-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.cp-toolbar-spacer { flex: 1; }
.cp-toolbar-right { display: flex; gap: 14px; font-size: 14px; color: rgba(255,255,255,0.6); }
.cp-toolbar-right .v { color: rgba(255,255,255,0.85); }

/* KPI strip */
.cg-kpis { display: grid; grid-template-columns: repeat(4, 1fr) minmax(160px, 220px); border-bottom: 1px solid var(--line); }
.cg-kpi { padding: 18px 22px; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.cg-kpi:last-child { border-right: 0; padding: 14px 22px; justify-content: center; }
.cg-kpi .lab { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.cg-kpi .val { font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.cg-kpi .val .sub { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.cg-kpi .v-delta { font-size: 14px; color: var(--green); font-weight: 500; }
.cg-kpi .v-delta.is-neg { color: var(--red); }
.cg-spark { padding: 10px 14px; }
.cg-spark .sl { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }

/* shipment headbar */
.cg-shiphead { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cg-shiphead .ref { font-size: 16px; font-weight: 600; color: var(--ink); }
.cg-shiphead .ref .sep { color: var(--muted-2); margin: 0 8px; font-weight: 400; }
.cg-shiphead .ref .commodity { color: var(--muted); font-weight: 400; }
.cg-pill { font-size: 13.5px; font-weight: 600; padding: 4px 10px; border-radius: 0; display: inline-flex; align-items: center; gap: 6px; }
.cg-pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.cg-pill.is-active { background: var(--green-soft); color: var(--green); }
.cg-pill.is-active .dot { background: var(--green); }
.cg-pill.is-warn { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(180,83,9,0.22); }
.cg-pill.is-warn .dot { background: var(--amber); }
.cg-shiphead .actions { margin-left: auto; display: inline-flex; gap: 10px; align-items: center; }
.cg-shiphead .lk { font-size: 15px; color: var(--accent); font-weight: 500; }

/* SHIPMENT GRID — shipment / allocation / atlas */
.cg-ship { display: grid; grid-template-columns: 1.15fr 1fr 0.95fr; }
.cg-col { padding: 22px 24px; border-right: 1px solid var(--line); position: relative; }
.cg-col:last-child { border-right: 0; }
.cg-col .col-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.cg-col.is-mid { background: var(--paper-2); }
.cg-col.is-atlas { background: var(--ink); color: rgba(255,255,255,0.9); border-right: 0; }
.cg-col.is-atlas .col-eyebrow { color: rgba(255,255,255,0.55); }

.cg-col h4 { font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 8px; letter-spacing: -0.01em; }
.cg-col.is-atlas h4 { color: #fff; }
.cg-col .sub { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.cg-col.is-atlas .sub { color: rgba(255,255,255,0.55); }

/* SKU list inside shipment col */
.sku-list { margin-top: 14px; border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.sku-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; padding: 10px 12px; align-items: center; border-bottom: 1px solid var(--line-2); background: var(--paper); }
.sku-row:last-child { border-bottom: 0; }
.sku-row .swatch { width: 28px; height: 28px; border-radius: 0; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; background: var(--paper-2); }
.sku-row .swatch.is-a { background: repeating-linear-gradient(45deg, var(--paper-3), var(--paper-3) 4px, var(--paper-2) 4px, var(--paper-2) 8px); color: var(--ink); }
.sku-row .swatch.is-b { background: repeating-linear-gradient(45deg, var(--accent-soft), var(--accent-soft) 4px, var(--accent-soft-2) 4px, var(--accent-soft-2) 8px); color: var(--accent-hover); }
.sku-row .swatch.is-c { background: repeating-linear-gradient(45deg, #ECEEF1, #ECEEF1 4px, #F4F6F8 4px, #F4F6F8 8px); color: var(--finance); }
.sku-row .meta .sk { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.sku-row .meta .nm { font-size: 14px; color: var(--muted); margin-top: 1px; }
.sku-row .qty { font-size: 15px; font-weight: 600; color: var(--ink); text-align: right; font-feature-settings: 'tnum'; }
.sku-row .qty .u { font-size: 13px; color: var(--muted); font-weight: 400; }

.cp-card { margin-top: 14px; border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; background: var(--paper); }
.cp-card .row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 5px 0; font-size: 15px; align-items: baseline; border-bottom: 1px dashed var(--line-2); }
.cp-card .row:last-child { border-bottom: 0; }
.cp-card .k { color: var(--muted); }
.cp-card .v { color: var(--ink); font-weight: 500; }
.cp-card .v.is-pos { color: var(--green); }
.cp-card .v.is-warn { color: var(--amber); }
.cp-card .v.is-neg { color: var(--red); }
.cp-card .v .sub { color: var(--muted-2); font-weight: 400; margin-left: 4px; font-size: 14px; }

/* Allocation bar */
.alloc-bar { display: flex; height: 32px; border-radius: 0; overflow: hidden; border: 1px solid var(--line); margin-top: 12px; background: var(--paper); }
.alloc-seg { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; letter-spacing: 0.04em; }
.alloc-seg.is-fba { background: var(--ink); }
.alloc-seg.is-3pl { background: var(--accent); }
.alloc-seg.is-target { background: var(--finance); }
.alloc-legend { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 12px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); }
.alloc-leg-row { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.alloc-leg-row:last-child { border-bottom: 0; }
.alloc-leg-row .dot { width: 10px; height: 10px; border-radius: 0; }
.alloc-leg-row .dot.is-fba { background: var(--ink); }
.alloc-leg-row .dot.is-3pl { background: var(--accent); }
.alloc-leg-row .dot.is-target { background: var(--finance); }
.alloc-leg-row .ch { font-weight: 600; color: var(--ink); font-size: 15px; }
.alloc-leg-row .ch .nm { color: var(--muted); font-weight: 400; font-size: 14px; display: block; margin-top: 1px; }
.alloc-leg-row .u { font-size: 15px; color: var(--ink); font-weight: 600; font-feature-settings: 'tnum'; }
.alloc-leg-row .pct { font-size: 14px; color: var(--muted); font-feature-settings: 'tnum'; min-width: 36px; text-align: right; }

/* Atlas right rail */
.atlas-msg { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 0; padding: 14px 14px; margin-top: 14px; }
.atlas-msg .lab { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); }
.atlas-msg .body { font-size: 15.5px; line-height: 1.55; color: rgba(255,255,255,0.92); margin-top: 6px; }
.atlas-msg .body em { color: #fff; font-style: normal; font-weight: 600; }
.atlas-deltas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.atlas-deltas .d { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 0; padding: 10px 12px; }
.atlas-deltas .d .k { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); }
.atlas-deltas .d .v { font-size: 17px; font-weight: 600; color: #fff; margin-top: 2px; letter-spacing: -0.01em; }
.atlas-deltas .d .delta { font-size: 13.5px; color: #6CB388; margin-top: 1px; }
.atlas-deltas .d .delta.is-neg { color: #E27A6E; }
.atlas-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.atlas-btn { font-size: 14px; font-weight: 600; color: #fff; border: 1px solid rgba(255,255,255,0.2); padding: 7px 12px; border-radius: 0; }
.atlas-btn.is-accent { background: var(--accent); border-color: var(--accent); }

/* SKU landed cost mini-table inside left col */
.lc-table { margin-top: 14px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); }
.lc-table .lc-h { display: grid; grid-template-columns: 1fr repeat(3, 60px) 70px; gap: 6px; padding: 8px 12px; background: var(--paper-2); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.lc-table .lc-h span { text-align: right; }
.lc-table .lc-h span:first-child { text-align: left; }
.lc-table .lc-row { display: grid; grid-template-columns: 1fr repeat(3, 60px) 70px; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; align-items: baseline; font-feature-settings: 'tnum'; }
.lc-table .lc-row:last-child { border-bottom: 0; }
.lc-table .lc-row .nm { color: var(--ink); font-weight: 500; }
.lc-table .lc-row .v { text-align: right; color: var(--ink); }
.lc-table .lc-row .v.is-muted { color: var(--muted); }
.lc-table .lc-row .v.total { font-weight: 600; color: var(--ink); }

/* doc chain bar at bottom of cockpit */
.cg-cp-bar { padding: 16px 24px; border-top: 1px solid var(--line); background: var(--paper-2); display: grid; grid-template-columns: 130px 1fr 200px; gap: 16px; align-items: center; }
.cg-cp-bar .lab { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.cg-doc-row { display: flex; gap: 6px; flex-wrap: wrap; }
.cg-doc { font-size: 13px; font-weight: 600; padding: 4px 8px; border-radius: 0; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font-feature-settings: 'tnum'; }
.cg-doc.is-done { background: var(--green); color: #fff; border-color: var(--green); }
.cg-doc.is-pending { background: #fff; border-color: var(--amber); color: var(--amber); }
.cg-doc.is-late { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.cg-cp-bar .progress { font-size: 15px; color: var(--ink); font-weight: 500; text-align: right; }
.cg-cp-bar .progress .sub { display: block; font-size: 13.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* Section heads */
.head { max-width: 760px; margin-bottom: 48px; }
.head .h-section-sm { margin: 16px 0 18px; }
.head p { font-size: 18px; line-height: 1.6; color: var(--muted); }

/* PROBLEM */
.cg-prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cg-prob { border: 1px solid var(--line); background: var(--paper); padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.cg-prob .pn { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.cg-prob h3 { font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.cg-prob p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* WORKSPACE — SKU lifecycle */
.cg-ws-frame { border: 1px solid var(--line); background: var(--paper); }
.cg-ws-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cg-ws-head .ttl { font-size: 16px; font-weight: 600; color: var(--ink); }
.cg-ws-head .ref { font-size: 15px; color: var(--muted); }
.cg-ws-head .ref .swatch { display: inline-block; width: 14px; height: 14px; border-radius: 0; background: repeating-linear-gradient(45deg, var(--accent-soft), var(--accent-soft) 4px, var(--accent-soft-2) 4px, var(--accent-soft-2) 8px); border: 1px solid var(--line); vertical-align: middle; margin-right: 6px; }
.cg-ws-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.cg-ws-tab { padding: 12px 22px; font-size: 15px; font-weight: 500; color: var(--muted); border-right: 1px solid var(--line-2); cursor: default; }
.cg-ws-tab.is-active { background: var(--paper); color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 10px; }

.cg-ws-body { display: grid; grid-template-columns: 1.1fr 1fr; }
.cg-ws-left { padding: 22px 24px; border-right: 1px solid var(--line); }
.cg-ws-right { padding: 22px 24px; }
.ws-block { padding: 14px 0; border-top: 1px solid var(--line-2); }
.ws-block:first-of-type { border-top: 0; padding-top: 0; }
.ws-block-h { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.ws-block-h .meta { font-size: 13.5px; color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; }
.ws-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; padding: 5px 0; font-size: 15px; }
.ws-row .k { color: var(--muted); }
.ws-row .v { color: var(--ink); font-weight: 500; }
.ws-row .v.is-finance { color: var(--finance); }

/* Inventory channel rows in workspace */
.inv-row { display: grid; grid-template-columns: 1fr 70px 110px 60px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: 15px; font-feature-settings: 'tnum'; }
.inv-row:last-child { border-bottom: 0; }
.inv-row .ch { display: flex; align-items: center; gap: 8px; }
.inv-row .ch .dot { width: 10px; height: 10px; border-radius: 0; flex: none; }
.inv-row .ch .dot.is-fba { background: var(--ink); }
.inv-row .ch .dot.is-3pl { background: var(--accent); }
.inv-row .ch .dot.is-target { background: var(--finance); }
.inv-row .ch .nm { font-size: 15px; color: var(--ink); font-weight: 500; }
.inv-row .units { font-size: 15px; color: var(--ink); font-weight: 600; text-align: right; }
.inv-row .units .u { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.inv-row .bar { height: 6px; background: var(--line); border-radius: 0; overflow: hidden; }
.inv-row .bar .fill { display: block; height: 100%; background: var(--accent); border-radius: 0; }
.inv-row .bar .fill.is-low { background: var(--amber); }
.inv-row .bar .fill.is-crit { background: var(--red); }
.inv-row .dos { font-size: 14px; color: var(--muted); text-align: right; }
.inv-row .dos .v { color: var(--ink); font-weight: 600; }
.inv-row .dos .v.is-warn { color: var(--amber); }
.inv-row .dos .v.is-crit { color: var(--red); }

/* PER-SKU PER-CHANNEL ECONOMICS */
.cg-econ-frame { border: 1px solid var(--line); background: var(--paper); }
.cg-econ-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.cg-econ-head .ttl { font-size: 16px; font-weight: 600; color: var(--ink); }
.cg-econ-head .ttl .swatch { display: inline-block; width: 14px; height: 14px; border-radius: 0; background: repeating-linear-gradient(45deg, var(--accent-soft), var(--accent-soft) 4px, var(--accent-soft-2) 4px, var(--accent-soft-2) 8px); border: 1px solid var(--line); vertical-align: middle; margin-right: 6px; }
.cg-econ-head .switch { display: inline-flex; gap: 0; }
.cg-econ-head .sw { font-size: 14px; font-weight: 500; padding: 6px 12px; border: 1px solid var(--line); color: var(--muted); border-right: 0; background: var(--paper); }
.cg-econ-head .sw:first-child { border-radius: 0; padding-left: 14px; }
.cg-econ-head .sw:last-child { border-radius: 0; padding-right: 14px; border-right: 1px solid var(--line); }
.cg-econ-head .sw.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.cg-channel-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.cg-channel { padding: 22px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.cg-channel:last-child { border-right: 0; }
.cg-channel.is-best { background: var(--accent-soft-2); }
.cg-channel .ch-head { display: flex; align-items: center; gap: 10px; }
.cg-channel .ch-dot { width: 12px; height: 12px; border-radius: 0; flex: none; }
.cg-channel.is-fba .ch-dot { background: var(--ink); }
.cg-channel.is-3pl .ch-dot { background: var(--accent); }
.cg-channel.is-target .ch-dot { background: var(--finance); }
.cg-channel .ch-name { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.cg-channel .ch-sub { font-size: 14px; color: var(--muted); margin-top: 2px; }

.econ-line { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 8px 0; font-size: 15px; border-bottom: 1px dashed var(--line-2); align-items: baseline; }
.econ-line:last-child { border-bottom: 0; }
.econ-line.is-total { border-top: 1px solid var(--line); border-bottom: 0; padding-top: 12px; margin-top: 6px; font-weight: 600; font-size: 16px; }
.econ-line .k { color: var(--muted); }
.econ-line .v { color: var(--ink); font-weight: 500; font-feature-settings: 'tnum'; }
.econ-line .v.is-neg { color: var(--red); }
.econ-line .v.is-pos { color: var(--green); }
.econ-line.is-total .v { color: var(--ink); }

.cg-channel .net-card { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); }
.cg-channel.is-best .net-card { border-color: var(--accent); background: var(--paper); }
.cg-channel .net-card .l { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted-2); }
.cg-channel .net-card .amt { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-top: 2px; }
.cg-channel .net-card .pct { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.cg-channel .pick { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); padding: 4px 10px; background: var(--paper); border-radius: 0; border: 1px solid var(--accent); align-self: flex-start; }

/* Channel mix recommendation panel */
.cg-mix { padding: 22px 24px; border-top: 1px solid var(--line); background: var(--paper-2); display: grid; grid-template-columns: 1fr 1.1fr 200px; gap: 24px; align-items: center; }
.cg-mix .lab { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); }
.cg-mix h4 { font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 6px; line-height: 1.3; }
.cg-mix .desc { font-size: 15px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.cg-mix-shift { display: flex; flex-direction: column; gap: 8px; }
.cg-mix-shift .row { display: grid; grid-template-columns: 1fr auto 18px auto; gap: 10px; align-items: center; font-size: 15px; }
.cg-mix-shift .row .ch { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.cg-mix-shift .row .ch .d { width: 10px; height: 10px; border-radius: 0; }
.cg-mix-shift .row .ch .d.is-fba { background: var(--ink); }
.cg-mix-shift .row .ch .d.is-3pl { background: var(--accent); }
.cg-mix-shift .row .ch .d.is-target { background: var(--finance); }
.cg-mix-shift .row .from { font-size: 15px; color: var(--muted); font-feature-settings: 'tnum'; }
.cg-mix-shift .row .arr { font-size: 16px; color: var(--muted-2); text-align: center; }
.cg-mix-shift .row .to { font-size: 15px; font-weight: 600; color: var(--ink); font-feature-settings: 'tnum'; }
.cg-mix-impact { background: var(--paper); border: 1px solid var(--accent); border-radius: 0; padding: 14px 16px; }
.cg-mix-impact .l { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); }
.cg-mix-impact .v { font-size: 22px; font-weight: 600; color: var(--ink); margin-top: 2px; letter-spacing: -0.01em; }
.cg-mix-impact .sub { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* DOCUMENT CHAIN */
.cg-dc-frame { border: 1px solid var(--line); background: var(--paper); }
.cg-dc-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.cg-dc-head .ttl { font-size: 16px; font-weight: 600; color: var(--ink); }
.cg-dc-head .ttl .sub { font-size: 14.5px; color: var(--muted); margin-left: 6px; font-weight: 400; }

.cg-dc-table { display: grid; grid-template-columns: 240px repeat(13, 1fr) 130px; }
.cg-dc-table > div { border-bottom: 1px solid var(--line-2); padding: 10px 6px; font-size: 14px; display: flex; align-items: center; }
.cg-dc-table > div.first { padding-left: 22px; font-weight: 500; color: var(--ink); font-size: 15px; }
.cg-dc-table > div.last { padding-right: 22px; justify-content: flex-end; }
.cg-dc-th { background: var(--paper-2); font-size: 12.5px !important; font-weight: 700 !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2) !important; border-bottom: 1px solid var(--line) !important; justify-content: center; }
.cg-dc-th.first { justify-content: flex-start; padding-left: 22px; }
.cg-dc-th.last { justify-content: flex-end; padding-right: 22px; }
.cg-dc-cell { justify-content: center; }
.dc-cell { width: 26px; height: 26px; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.dc-cell.is-done { background: var(--green); color: #fff; }
.dc-cell.is-pending { background: var(--paper); border: 1px solid var(--amber); color: var(--amber); }
.dc-cell.is-na { background: var(--paper-3); color: var(--muted-2); border: 1px dashed var(--line); }
.dc-cell.is-late { background: var(--red-soft); border: 1px solid var(--red); color: var(--red); }
.cg-dc-row .cp-row { display: flex; flex-direction: column; gap: 2px; }
.cg-dc-row .cp-row .nm { font-size: 15px; color: var(--ink); font-weight: 500; }
.cg-dc-row .cp-row .role { font-size: 13px; color: var(--muted-2); }
.cg-dc-status { font-size: 13.5px; font-weight: 600; padding: 4px 10px; border-radius: 0; }
.cg-dc-status.is-ok { background: var(--green-soft); color: var(--green); }
.cg-dc-status.is-pending { background: #fff; border: 1px solid var(--amber); color: var(--amber); }
.cg-dc-status.is-blocked { background: var(--red-soft); color: var(--red); }

.dc-codes { font-size: 14.5px; color: var(--muted); line-height: 1.7; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--paper-2); }
.dc-codes strong { color: var(--ink); font-weight: 600; }

/* WORKING CAPITAL */
.cg-wc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cg-wc { border: 1px solid var(--line); background: var(--paper); padding: 0; display: flex; flex-direction: column; }
.cg-wc-bar { height: 3px; background: var(--accent); }
.cg-wc.is-finance .cg-wc-bar { background: var(--finance); }
.cg-wc-body { padding: 22px 22px 0; flex: 1; }
.cg-wc-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 8px; }
.cg-wc.is-finance .cg-wc-eyebrow { color: var(--finance); }
.cg-wc h3 { font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 12px; }
.cg-wc p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.cg-wc p em { font-style: normal; font-weight: 500; color: var(--ink); }
.cg-wc-foot { padding: 14px 22px; border-top: 1px solid var(--line); margin-top: 22px; background: var(--paper-2); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cg-wc-foot .stat { display: flex; flex-direction: column; gap: 1px; }
.cg-wc-foot .lab { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted-2); }
.cg-wc-foot .v { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }

/* PLATFORM FIT (NEW) */
.cg-fit-frame { border: 1px solid var(--line); background: var(--paper); display: grid; grid-template-columns: repeat(3, 1fr); }
.cg-fit-col { padding: 28px 26px; border-right: 1px solid var(--line); }
.cg-fit-col:last-child { border-right: 0; }
.cg-fit-col .col-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.cg-fit-col .col-head .num { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); font-feature-settings: 'tnum'; }
.cg-fit-col .col-head .ttl { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.cg-fit-item { padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
.cg-fit-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cg-fit-item .nm { font-size: 16.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 10px; letter-spacing: -0.005em; }
.cg-fit-item .nm .tag { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); border: 1px solid var(--accent); padding: 2px 7px; border-radius: 0; }
.cg-fit-item .nm a { color: var(--ink); }
.cg-fit-item .nm a:hover { color: var(--accent); }
.cg-fit-item .desc { font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: 6px; }
.cg-fit-item .desc em { font-style: normal; font-weight: 500; color: var(--ink); }

/* NETWORK GRAPH */
.cg-net-h { display: flex; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.cg-net-h .head { margin: 0; flex: 1; min-width: 320px; }
.cg-net-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; min-width: 320px; }
.cg-net-stats .item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cg-net-stats .item:nth-last-child(-n+2) { border-bottom: 0; }
.cg-net-stats .v { font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.cg-net-stats .l { font-size: 15px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.cg-net-canvas { width: 100%; height: 460px; }
.cg-net-legend { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.cg-net-legend .it { display: inline-flex; align-items: center; gap: 8px; }
.cg-net-legend .sw { width: 10px; height: 10px; border-radius: 50%; }

/* CASCADE */
.cascade-frame { padding: 40px 32px; border: 1px solid var(--line); background: var(--paper-2); margin-bottom: 28px; }
.cascade-foot { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 820px; }
.cascade-foot em { font-style: normal; font-weight: 500; color: var(--ink); }
.cascade-grid { display: grid; grid-template-columns: 260px 56px 1fr; gap: 16px; align-items: center; }
.cascade-source { background: var(--amber-soft); border: 1px solid rgba(180,83,9,0.22); border-radius: 0; padding: 20px; }
.src-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--amber); }
.src-title { font-size: 18px; font-weight: 600; color: var(--ink); margin-top: 8px; line-height: 1.3; letter-spacing: -0.01em; }
.src-meta { font-size: 14.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.src-sub { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--amber); margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(180,83,9,0.22); }
.cascade-effects { display: flex; flex-direction: column; gap: 10px; }
.cascade-effect { background: var(--paper); border: 1px solid var(--line); border-radius: 0; padding: 14px 16px; display: flex; align-items: center; gap: 16px; }
.cascade-effect > div:first-child { flex: 1; }
.ef-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted-2); }
.ef-body { font-size: 15.5px; color: var(--ink); line-height: 1.5; margin-top: 4px; }
.ef-body em { font-style: normal; font-weight: 600; color: var(--ink); }
.ef-tag { font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--paper-3); border-radius: 0; padding: 4px 10px; flex: none; white-space: nowrap; }
.ef-tag.is-warn { background: var(--amber-soft); color: var(--amber); }
.ef-tag.is-finance { background: rgba(45,90,102,0.08); color: var(--finance); }

/* COMPARE TABLE */
.compare-head { max-width: 760px; margin-bottom: 48px; }
.compare-head .h-section-sm { margin: 16px 0 0; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); font-size: 16px; }
.compare-table th, .compare-table td { padding: 16px 16px; text-align: left; border-bottom: 1px solid var(--line-2); }
.compare-table thead th { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); background: var(--paper-2); border-bottom: 1px solid var(--line); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table th.cap, .compare-table td.cap { width: 30%; color: var(--ink); font-weight: 500; }
.compare-table td.val { color: var(--muted); text-align: center; font-feature-settings: 'tnum'; }
.compare-table td.val .em { color: var(--muted-2); font-style: italic; font-size: 15px; }
.compare-table td.val .check { color: var(--green); font-size: 17px; }
.compare-table td.val .dash { color: var(--muted-2); }
.compare-table .col-edma { background: var(--accent-soft); color: var(--ink) !important; }
.compare-table thead th.col-edma { background: var(--accent); color: #fff; border-bottom-color: var(--accent); }
.compare-table tbody td.col-edma .check { color: var(--accent-hover); }
.compare-table tbody td.col-edma.val { font-weight: 600; color: var(--ink); }
.compare-foot { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 820px; margin-top: 32px; }

/* FAQ */
.faq-list { max-width: 920px; }
.faq-item { border-top: 1px solid var(--line); padding: 24px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }

/* CTA band */
.s-cta-band { background: var(--ink); padding: 120px 0; text-align: center; border-top: 0; }
.s-cta-band .wrap { max-width: 820px; }
.s-cta-band .h2-band { color: #fff; margin-bottom: 22px; }
.s-cta-band p { color: rgba(255,255,255,0.78); font-size: 19px; line-height: 1.55; margin-bottom: 36px; }
.s-cta-band .cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Related */
.s-related { padding: 96px 0; }
.s-related .eyebrow { text-align: center; display: block; margin-bottom: 36px; }
.related-grid { max-width: 1024px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { border: 1px solid var(--line); padding: 24px; background: var(--paper); display: flex; flex-direction: column; gap: 8px; transition: border-color var(--dur-fast), transform var(--dur-fast); }
.related-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.related-card .ttl { font-size: 18px; font-weight: 600; color: var(--ink); }
.related-card .desc { font-size: 16px; color: var(--muted); line-height: 1.5; flex: 1; }
.related-card .more { font-size: 15px; color: var(--accent); font-weight: 500; margin-top: 8px; }
.related-back { text-align: center; margin-top: 32px; }
.related-back a { font-size: 16px; color: var(--muted); display: inline-flex; gap: 6px; }
.related-back a:hover { color: var(--ink); }

/* FOOTER */
.site-footer { background: var(--ink); color: #fff; }
.footer-top { border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-top-inner { max-width: var(--max-w); margin: 0 auto; padding: 48px var(--inner-pad); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.edma-logo--footer { color: #fff; }
.edma-logo--footer .edma-wordmark { color: #fff; }
.footer-brand-tag { color: rgba(255,255,255,0.6); margin-top: 14px; max-width: 360px; font-size: 16px; line-height: 1.5; }
.footer-newsletter-title { font-size: 16px; font-weight: 600; }
.footer-newsletter-sub { font-size: 15px; color: rgba(255,255,255,0.55); margin-top: 4px; }
.footer-newsletter { display: flex; gap: 8px; margin-top: 14px; max-width: 420px; }
.footer-newsletter input { flex: 1; background: transparent; border: 1px solid rgba(255,255,255,0.18); color: #fff; padding: 10px 12px; font-family: inherit; font-size: 15px; border-radius: 0; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter button { background: var(--accent); color: #fff; padding: 10px 16px; font-size: 15px; font-weight: 500; cursor: pointer; border-radius: 0; }
.footer-links { max-width: var(--max-w); margin: 0 auto; padding: 56px var(--inner-pad); display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; }
.footer-col-title { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.footer-link-list li { margin-bottom: 8px; }
.footer-link-list a { font-size: 15.5px; color: rgba(255,255,255,0.78); }
.footer-link-list a:hover { color: var(--accent); }
.footer-legal-inner { max-width: var(--max-w); margin: 0 auto; padding: 24px var(--inner-pad); border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: rgba(255,255,255,0.5); flex-wrap: wrap; }
.footer-legal-inner .links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal-inner .status-ok { color: #6CB388; }

/* Responsive */
@media (max-width: 1100px) {
  .cg-kpis { grid-template-columns: repeat(2, 1fr); }
  .cg-kpi { border-bottom: 1px solid var(--line-2); }
  .cg-kpi:nth-child(2) { border-right: 0; }
  .cg-kpi:last-child { grid-column: 1 / -1; }
  .cg-ship { grid-template-columns: 1fr; }
  .cg-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .cg-col:last-child { border-bottom: 0; }
  .cg-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cg-cat:nth-child(3n) { border-right: 1px solid var(--line); }
  .cg-cat:nth-child(2n) { border-right: 0; }
  .cg-cat:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .cg-cat:nth-last-child(-n+2) { border-bottom: 0; }
  .cg-channel-cols { grid-template-columns: 1fr; }
  .cg-channel { border-right: 0; border-bottom: 1px solid var(--line); }
  .cg-channel:last-child { border-bottom: 0; }
  .cg-mix { grid-template-columns: 1fr; }
  .cg-prob-grid { grid-template-columns: 1fr; }
  .cg-wc-grid { grid-template-columns: 1fr; }
  .cg-fit-frame { grid-template-columns: 1fr; }
  .cg-fit-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .cg-fit-col:last-child { border-bottom: 0; }
  .cg-ws-body { grid-template-columns: 1fr; }
  .cg-ws-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .cg-cp-bar { grid-template-columns: 1fr; }
  .cg-cp-bar .progress { text-align: left; }
  .cg-dc-frame .cg-dc-table-wrap { overflow-x: auto; }
  .cg-dc-table { min-width: 1180px; }
  .cg-hero-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  section { padding: 64px 0; }
  .s-cta-band { padding: 96px 0; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .footer-top-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --inner-pad: 18px; }
  .nav-list { display: none; }
  .nav-signin { display: none; }
  .cp-tabs { display: none; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .compare-table th, .compare-table td { padding: 12px 10px; font-size: 14.5px; }
  .cascade-grid { grid-template-columns: 1fr; }
  .cascade-connectors { display: none; }
  .cg-cat-grid { grid-template-columns: 1fr; }
  .cg-cat { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .cg-cat:last-child { border-bottom: 0 !important; }

  /* Section padding — wrap owns horizontal via --inner-pad */
  section { padding: 56px 0; }
  .cg-hero { padding: 56px 0; }
  .cg-hero .wrap { padding-left: var(--inner-pad); padding-right: var(--inner-pad); }

  /* Headings */
  .h-display { font-size: 36px; }
  .h-section-sm { font-size: 26px; }
  .h-section { font-size: 30px; }

  /* Hide heavy mocks */
  .cg-cp .cg-cp-frame,
  .cg-cp .hls-cp-frame,
  .hls-cp-frame,
  .hls-cockpit { display: none; }
  .cg-econ-frame, .hls-econ-frame, .hls-econ-wrap { display: none; }
  .cg-net-canvas { display: none; }
  .cg-ws-frame, .hls-ws-frame { display: none; }
  .hls-dc-frame, .hls-doc-chain { display: none; }

  /* Cascade cards — content full-width on top, ef-tag below left */
  .cascade-effect { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cascade-effect > div:first-child { width: 100%; }
  .cascade-frame { overflow-x: auto; }

  /* Compare table horizontal scroll */
  .compare-table { min-width: 700px; }
}

/* ===== INDUSTRIAL & B2B ADDITIONS ===== */
.ib-track { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 0; }
.ib-track-h { padding: 14px 22px; border: 1px solid var(--line); border-bottom: 0; background: var(--paper); display: flex; align-items: baseline; gap: 12px; }
.ib-track-h:first-child { border-right: 0; }
.ib-track-h .lab { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.ib-track-h .nm { font-size: 16.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.ib-track-h .sub { font-size: 14.5px; color: var(--muted); margin-left: auto; }
.ib-track-h.is-rec .lab { color: var(--finance); }
.ib-cat-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--paper); }
.ib-cat-row + .ib-cat-row { border-top: 0; }
.ib-cat-row .cg-cat { border-bottom: 0; }
.ib-cat-row .cg-cat:nth-child(3n) { border-right: 0; }
@media (max-width: 1100px) {
  .ib-track { grid-template-columns: 1fr; }
  .ib-track-h:first-child { border-right: 1px solid var(--line); }
  .ib-cat-row { grid-template-columns: repeat(2, 1fr); }
  .ib-cat-row .cg-cat:nth-child(3n) { border-right: 1px solid var(--line); }
  .ib-cat-row .cg-cat:nth-child(2n) { border-right: 0; }
}
@media (max-width: 720px) {
  .ib-cat-row { grid-template-columns: 1fr; }
}

/* ===== HEALTH & LIFE SCIENCES ADDITIONS ===== */
/* 5-card sub-category grid with featured dogfood */
.hls-cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); background: var(--paper); }
.hls-cat-grid .cg-cat { grid-column: span 2; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hls-cat-grid .cg-cat:nth-child(3) { border-right: 0; }
.hls-cat-grid .cg-cat:nth-child(4) { grid-column: span 3; }
.hls-cat-grid .cg-cat:nth-child(5) { grid-column: span 3; border-right: 0; border-bottom: 0; }
.hls-cat-grid .cg-cat.is-dogfood { background: linear-gradient(180deg, var(--accent-soft-2) 0%, var(--paper) 70%); position: relative; }
.hls-cat-grid .cg-cat.is-dogfood::before { content: "★ EDMA Group dogfood"; position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); padding: 4px 9px; border: 1px solid var(--accent); border-radius: 0; background: var(--paper); }
.hls-cat-grid .cg-cat .reg { font-size: 14px; line-height: 1.5; color: var(--ink); padding-top: 8px; border-top: 1px dashed var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; }
.hls-cat-grid .cg-cat .reg .lab { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.hls-cat-grid .cg-cat .reg .v { color: var(--ink); font-weight: 500; }
.hls-cat-grid .cg-cat .reg .v.is-yes { color: var(--finance); font-weight: 600; }
.hls-cat-grid .cg-cat .reg .v.is-cond { color: var(--amber); font-weight: 600; }
.hls-cat-grid .cg-cat .reg .v.is-no { color: var(--muted); }
@media (max-width: 1100px) {
  .hls-cat-grid { grid-template-columns: 1fr 1fr; }
  .hls-cat-grid .cg-cat { grid-column: span 1 !important; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .hls-cat-grid .cg-cat:nth-child(2n) { border-right: 0; }
}
@media (max-width: 720px) {
  .hls-cat-grid { grid-template-columns: 1fr; }
  .hls-cat-grid .cg-cat { border-right: 0 !important; }
}

/* Lot header */
.hls-lothead { padding: 18px 24px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.hls-lothead .ref { font-size: 16px; font-weight: 600; color: var(--ink); }
.hls-lothead .ref .sep { color: var(--muted-2); margin: 0 8px; font-weight: 400; }
.hls-lothead .ref .meta { color: var(--muted); font-weight: 400; }
.hls-lothead .right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hls-lothead .lk { font-size: 15px; color: var(--accent); font-weight: 500; }

/* Lot cockpit grid */
.hls-cp { display: grid; grid-template-columns: 1.15fr 1fr 0.95fr; }
@media (max-width: 1100px) { .hls-cp { grid-template-columns: 1fr; } }

/* Cold-chain trace */
.hls-trace { margin-top: 14px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); padding: 14px; }
.hls-trace-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.hls-trace-h .nm { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.hls-trace-h .lim { font-size: 13.5px; color: var(--muted); font-feature-settings: 'tnum'; }
.hls-trace-canvas { width: 100%; height: 96px; }
.hls-trace-foot { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 13.5px; color: var(--muted); font-feature-settings: 'tnum'; }
.hls-trace-foot .v { color: var(--ink); font-weight: 600; }
.hls-trace-foot .v.is-ok { color: var(--green); }
.hls-trace-foot .v.is-warn { color: var(--amber); }
.hls-trace-foot .v.is-crit { color: var(--red); }
.hls-trace-foot .it { display: inline-flex; align-items: baseline; gap: 4px; }
.hls-trace-foot .it .k { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }

/* Audit-log timeline */
.hls-audit { margin-top: 14px; display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 0; background: var(--paper); overflow: hidden; }
.hls-audit-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  grid-template-areas:
    "time who"
    ".    event"
    "sig  sig";
  column-gap: 12px;
  row-gap: 4px;
  padding: 10px 14px;
  border-bottom: 1px dashed var(--line-2);
  align-items: baseline;
}
.hls-audit-row:last-child { border-bottom: 0; }
.hls-audit-row .t { grid-area: time; font-size: 13px; font-weight: 600; color: var(--muted-2); font-feature-settings: 'tnum'; letter-spacing: 0.02em; }
.hls-audit-row .who { grid-area: who; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.hls-audit-row .ev { grid-area: event; font-size: 14.5px; color: var(--ink); line-height: 1.45; }
.hls-audit-row .ev .sub { color: var(--muted); font-size: 13.5px; display: block; margin-top: 1px; }
.hls-audit-row .sig { grid-area: sig; justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--green); border: 1px solid var(--green); padding: 2px 7px; border-radius: 0; white-space: nowrap; }
.hls-audit-row .sig.is-excursion { color: var(--amber); border-color: var(--amber); background: var(--amber-soft); }
.hls-audit-row .sig.is-system { color: var(--muted); border-color: var(--line); }

/* Regulatory clock cards */
.hls-clock { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.hls-clock-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 0; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: baseline; }
.hls-clock-card .nm { font-size: 15px; font-weight: 600; color: #fff; letter-spacing: -0.005em; }
.hls-clock-card .sub { font-size: 13.5px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.hls-clock-card .countdown { text-align: right; font-feature-settings: 'tnum'; }
.hls-clock-card .countdown .v { font-size: 19px; font-weight: 600; color: var(--accent); letter-spacing: -0.01em; }
.hls-clock-card .countdown .u { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); }
.hls-clock-card.is-critical .countdown .v { color: #E27A6E; }
.hls-clock-card.is-ok .countdown .v { color: #6CB388; }

/* Per-lot economics columns (4 col compliance breakdown) */
.hls-econ-cols { display: grid; grid-template-columns: 1.1fr 1.1fr 1.1fr 1.2fr; }
.hls-econ-col { padding: 22px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.hls-econ-col:last-child { border-right: 0; background: var(--accent-soft-2); }
.hls-econ-col .stage { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted-2); text-transform: uppercase; }
.hls-econ-col .stage .n { display: inline-flex; width: 18px; height: 18px; border-radius: 0; align-items: center; justify-content: center; font-size: 12px; color: #fff; background: var(--muted-2); font-feature-settings: 'tnum'; }
.hls-econ-col:nth-child(1) .stage .n { background: var(--ink); }
.hls-econ-col:nth-child(2) .stage .n { background: var(--accent); }
.hls-econ-col:nth-child(3) .stage .n { background: var(--finance); }
.hls-econ-col:nth-child(4) .stage .n { background: var(--accent); }
.hls-econ-col .nm { font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 6px; letter-spacing: -0.01em; }
.hls-econ-col .nm-sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
@media (max-width: 1100px) { .hls-econ-cols { grid-template-columns: 1fr 1fr; } .hls-econ-col { border-bottom: 1px solid var(--line); } .hls-econ-col:nth-child(2n) { border-right: 0; } }
@media (max-width: 720px) { .hls-econ-cols { grid-template-columns: 1fr; } .hls-econ-col { border-right: 0; } }

/* Wider doc chain for HLS */
.hls-dc-table { display: grid; grid-template-columns: 240px repeat(15, 1fr) 150px; }
.hls-dc-table > div { border-bottom: 1px solid var(--line-2); padding: 10px 6px; font-size: 14px; display: flex; align-items: center; }
.hls-dc-table > div.first { padding-left: 22px; font-weight: 500; color: var(--ink); font-size: 15px; }
.hls-dc-table > div.last { padding-right: 22px; justify-content: flex-end; }
.hls-dc-table-wrap { overflow-x: auto; }
.hls-dc-table { min-width: 1380px; }

/* Recall readiness panel */
.hls-recall { margin-top: 14px; border: 1px solid var(--accent); border-radius: 0; padding: 14px 16px; background: var(--paper); display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.hls-recall .lab { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.hls-recall .ttl { font-size: 16px; font-weight: 600; color: var(--ink); margin-top: 2px; letter-spacing: -0.005em; }
.hls-recall .sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.hls-recall .v { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; text-align: right; font-feature-settings: 'tnum'; }
.hls-recall .v .u { font-size: 13.5px; font-weight: 500; color: var(--muted); margin-left: 4px; }

/* Project header */
.ib-projhead { padding: 18px 24px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.ib-projhead .ref { font-size: 16px; font-weight: 600; color: var(--ink); }
.ib-projhead .ref .sep { color: var(--muted-2); margin: 0 8px; font-weight: 400; }
.ib-projhead .ref .meta { color: var(--muted); font-weight: 400; }
.ib-projhead .right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ib-projhead .lk { font-size: 15px; color: var(--accent); font-weight: 500; }

/* Cockpit grid */
.ib-cp { display: grid; grid-template-columns: 1.25fr 0.95fr 0.85fr; }
@media (max-width: 1100px) { .ib-cp { grid-template-columns: 1fr; } }

/* Line items table (grouped by supplier) */
.ib-lines { margin-top: 14px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); overflow: hidden; }
.ib-lines-h { display: grid; grid-template-columns: 38px 1fr 90px 80px; gap: 8px; padding: 8px 12px; background: var(--paper-2); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.ib-lines-h span { text-align: left; }
.ib-lines-h span:nth-child(3), .ib-lines-h span:nth-child(4) { text-align: right; }
.ib-supgroup { border-bottom: 1px solid var(--line-2); }
.ib-supgroup:last-child { border-bottom: 0; }
.ib-supgroup-h { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; padding: 10px 12px; background: var(--paper-3); align-items: center; border-bottom: 1px solid var(--line-2); }
.ib-supgroup-h .sup-dot { width: 10px; height: 10px; border-radius: 0; }
.ib-supgroup-h .sup-a { background: var(--ink); }
.ib-supgroup-h .sup-b { background: var(--accent); }
.ib-supgroup-h .sup-c { background: var(--finance); }
.ib-supgroup-h .sup-nm { font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.ib-supgroup-h .sup-meta { font-size: 13.5px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.ib-supgroup-h .sup-stage { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.ib-line { display: grid; grid-template-columns: 38px 1fr 90px 80px; gap: 8px; padding: 8px 12px; align-items: center; border-bottom: 1px dashed var(--line-2); font-feature-settings: 'tnum'; }
.ib-line:last-child { border-bottom: 0; }
.ib-line .ln { font-size: 13.5px; font-weight: 600; color: var(--muted-2); text-align: left; }
.ib-line .nm { font-size: 14.5px; color: var(--ink); }
.ib-line .nm .spec { color: var(--muted); font-size: 13.5px; display: block; margin-top: 1px; }
.ib-line .nm.is-flagged { color: var(--amber); font-weight: 500; }
.ib-line .qty { font-size: 14px; color: var(--ink); font-weight: 500; text-align: right; }
.ib-line .qty .u { color: var(--muted); font-weight: 400; font-size: 13px; }
.ib-line .st { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 0; text-align: center; justify-self: end; }
.ib-line .st.is-done { background: var(--green-soft); color: var(--green); }
.ib-line .st.is-prod { background: var(--accent-soft); color: var(--accent-hover); }
.ib-line .st.is-pend { background: var(--paper-3); color: var(--muted); border: 1px solid var(--line); }
.ib-line .st.is-flag { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(180,83,9,0.22); }

/* Line summary chips */
.ib-line-sum { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.ib-line-sum .chip { font-size: 13.5px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 0; padding: 4px 10px; background: var(--paper); }
.ib-line-sum .chip .v { color: var(--ink); font-weight: 600; margin-left: 2px; }
.ib-line-sum .chip.is-warn { color: var(--amber); border-color: rgba(180,83,9,0.22); background: var(--amber-soft); }
.ib-line-sum .chip.is-warn .v { color: var(--amber); }

/* Milestone strip (vertical inside col) */
.ib-ms-strip { margin-top: 14px; display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 0; background: var(--paper); overflow: hidden; }
.ib-ms-step { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.ib-ms-step:last-child { border-bottom: 0; }
.ib-ms-step .ms-num { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--paper-3); border: 1px solid var(--line); font-feature-settings: 'tnum'; }
.ib-ms-step.is-done .ms-num { background: var(--green); color: #fff; border-color: var(--green); }
.ib-ms-step.is-active .ms-num { background: var(--accent); color: #fff; border-color: var(--accent); }
.ib-ms-step.is-flag .ms-num { background: var(--amber-soft); color: var(--amber); border-color: var(--amber); }
.ib-ms-step .ms-body .nm { font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.ib-ms-step .ms-body .sub { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.ib-ms-step .ms-amt { text-align: right; font-feature-settings: 'tnum'; }
.ib-ms-step .ms-amt .v { font-size: 15px; font-weight: 600; color: var(--ink); }
.ib-ms-step .ms-amt .pct { font-size: 13.5px; color: var(--muted); }

/* Change orders inside cockpit */
.ib-co-card { margin-top: 14px; border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; background: var(--paper); }
.ib-co-card .co-h { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px dashed var(--line-2); margin-bottom: 8px; }
.ib-co-card .co-h .ttl { font-size: 14px; font-weight: 600; color: var(--ink); }
.ib-co-card .co-h .sub { font-size: 13.5px; color: var(--muted); }
.ib-co-row { display: grid; grid-template-columns: 60px 1fr auto; gap: 10px; padding: 6px 0; font-size: 14.5px; align-items: baseline; }
.ib-co-row .id { font-weight: 600; color: var(--muted-2); font-size: 13.5px; font-feature-settings: 'tnum'; }
.ib-co-row .nm { color: var(--ink); }
.ib-co-row .imp { font-size: 14px; font-feature-settings: 'tnum'; font-weight: 600; }
.ib-co-row .imp.is-cost { color: var(--red); }
.ib-co-row .imp.is-neutral { color: var(--muted); }
.ib-co-row .imp.is-sched { color: var(--amber); }

/* Engineering doc bar at cockpit foot */
.ib-eng-bar { padding: 16px 24px; border-top: 1px solid var(--line); background: var(--paper-2); display: grid; grid-template-columns: 170px 1fr 220px; gap: 16px; align-items: center; }
.ib-eng-bar .lab { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.ib-eng-bar .progress { font-size: 15px; color: var(--ink); font-weight: 500; text-align: right; }
.ib-eng-bar .progress .sub { display: block; font-size: 13.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }
@media (max-width: 1100px) { .ib-eng-bar { grid-template-columns: 1fr; } .ib-eng-bar .progress { text-align: left; } }

/* Workspace right col: engineering docs list */
.ib-doc-list { display: flex; flex-direction: column; gap: 0; }
.ib-doc-li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 8px 0; align-items: baseline; border-bottom: 1px dashed var(--line-2); font-size: 15px; }
.ib-doc-li:last-child { border-bottom: 0; }
.ib-doc-li .code { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted-2); width: 56px; }
.ib-doc-li .nm { color: var(--ink); font-size: 15px; }
.ib-doc-li .nm .ver { color: var(--muted); font-weight: 400; margin-left: 4px; font-size: 13.5px; }
.ib-doc-li .st { font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 0; }
.ib-doc-li .st.is-ok { background: var(--green-soft); color: var(--green); }
.ib-doc-li .st.is-pending { background: #fff; border: 1px solid var(--amber); color: var(--amber); }
.ib-doc-li .st.is-na { color: var(--muted-2); background: var(--paper-3); }

/* Per-milestone economics (replacement of channel cols) */
.ib-ms-cols { display: grid; grid-template-columns: repeat(4, 1fr); }
.ib-ms-col { padding: 22px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: relative; }
.ib-ms-col:last-child { border-right: 0; }
.ib-ms-col.is-active { background: var(--accent-soft-2); }
.ib-ms-col.is-done { background: var(--paper-2); }
.ib-ms-col .stage { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted-2); text-transform: uppercase; }
.ib-ms-col .stage .n { display: inline-flex; width: 18px; height: 18px; border-radius: 0; align-items: center; justify-content: center; font-size: 12px; color: #fff; background: var(--muted-2); font-feature-settings: 'tnum'; }
.ib-ms-col.is-done .stage .n { background: var(--green); }
.ib-ms-col.is-active .stage .n { background: var(--accent); }
.ib-ms-col.is-pending .stage .n { background: var(--ink-2); }
.ib-ms-col .nm { font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 6px; letter-spacing: -0.01em; }
.ib-ms-col .nm-sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
@media (max-width: 1100px) { .ib-ms-cols { grid-template-columns: repeat(2, 1fr); } .ib-ms-col { border-bottom: 1px solid var(--line); } .ib-ms-col:nth-child(2n) { border-right: 0; } }
@media (max-width: 720px) { .ib-ms-cols { grid-template-columns: 1fr; } .ib-ms-col { border-right: 0; } }

/* Doc chain wide table sizing (more cols for industrial) */
.ib-dc-table { display: grid; grid-template-columns: 240px repeat(14, 1fr) 140px; }
.ib-dc-table > div { border-bottom: 1px solid var(--line-2); padding: 10px 6px; font-size: 14px; display: flex; align-items: center; }
.ib-dc-table > div.first { padding-left: 22px; font-weight: 500; color: var(--ink); font-size: 15px; }
.ib-dc-table > div.last { padding-right: 22px; justify-content: flex-end; }
.ib-dc-table-wrap { overflow-x: auto; }
.ib-dc-table { min-width: 1280px; }

/* Platform fit — split project vs recurring */
.ib-fit-frame { border: 1px solid var(--line); background: var(--paper); display: grid; grid-template-columns: 1fr 1fr; }
.ib-fit-side { padding: 0; border-right: 1px solid var(--line); }
.ib-fit-side:last-child { border-right: 0; }
.ib-fit-side .side-head { padding: 22px 26px 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; background: var(--paper-2); }
.ib-fit-side.is-recurring .side-head { background: rgba(45,90,102,0.05); }
.ib-fit-side .side-head .tag { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.ib-fit-side.is-recurring .side-head .tag { color: var(--finance); }
.ib-fit-side .side-head .ttl { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.ib-fit-side .side-head .sub { font-size: 15px; color: var(--muted); line-height: 1.5; }
.ib-fit-list { padding: 18px 26px 26px; }
.ib-fit-list .cg-fit-item:last-child { border-bottom: 0; }
.ib-fit-portals { border-top: 1px solid var(--line); padding: 24px 26px; background: var(--paper-2); grid-column: 1 / -1; }
.ib-fit-portals .ph { display: flex; gap: 12px; align-items: baseline; margin-bottom: 14px; }
.ib-fit-portals .ph .tag { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted-2); text-transform: uppercase; }
.ib-fit-portals .ph .ttl { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.ib-fit-portals .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ib-fit-portals .it { border: 1px solid var(--line); background: var(--paper); padding: 16px 18px; border-radius: 0; }
.ib-fit-portals .it .nm { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.ib-fit-portals .it .desc { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin-top: 4px; }
.ib-fit-portals .it .desc em { font-style: normal; font-weight: 500; color: var(--ink); }
@media (max-width: 1100px) {
  .ib-fit-frame { grid-template-columns: 1fr; }
  .ib-fit-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .ib-fit-portals .grid { grid-template-columns: 1fr; }
}