:root {
  --ink: #14212a;
  --ink-2: #31434f;
  --muted: #71818b;
  --line: #dce4e7;
  --line-soft: #eaf0f2;
  --paper: #f4f6f5;
  --panel: #ffffff;
  --nav: #101a22;
  --nav-soft: #192832;
  --blue: #176f8c;
  --blue-bright: #29a4c6;
  --blue-pale: #e7f4f7;
  --gold: #c58b35;
  --gold-pale: #fbf2e2;
  --green: #2c8a66;
  --green-pale: #e8f5ef;
  --red: #b9554d;
  --red-pale: #f9eae8;
  --violet: #6f63a5;
  --shadow: 0 12px 36px rgba(21, 37, 47, .07);
  --shadow-high: 0 20px 60px rgba(13, 26, 34, .18);
  --radius: 14px;
  --sidebar: 244px;
}

* { box-sizing: border-box; }
html { height: 100%; }
body { min-height: 100%; margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }

.login-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; background: var(--nav); color: white; }
.login-screen::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at center, black, transparent 72%); }
.login-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(2px); opacity: .24; }
.glow-one { top: -170px; left: -100px; background: radial-gradient(circle, #34b7d6, transparent 68%); }
.glow-two { right: -120px; bottom: -180px; background: radial-gradient(circle, #c58b35, transparent 68%); }
.login-card { position: relative; width: min(520px, calc(100vw - 36px)); padding: 48px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(19, 32, 41, .86); box-shadow: 0 40px 100px rgba(0,0,0,.3); backdrop-filter: blur(20px); }
.login-card h1 { margin: 16px 0 12px; letter-spacing: -.045em; font-size: 36px; line-height: 1.12; }
.login-copy { max-width: 410px; color: #aebbc2; }
.login-card .eyebrow { color: #6bc7dc; }
.field-label { display: block; margin: 30px 0 8px; color: #c5d0d5; font-size: 12px; font-weight: 700; }
.password-row { display: flex; gap: 10px; }
.password-row input { min-width: 0; flex: 1; padding: 12px 14px; color: white; outline: none; border: 1px solid #3b4e59; border-radius: 9px; background: #101b22; }
.password-row input:focus { border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(41,164,198,.13); }
.login-footer { display: flex; align-items: center; gap: 8px; margin-top: 30px; color: #8698a2; font-size: 12px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; display: flex; width: var(--sidebar); flex-direction: column; padding: 24px 16px 18px; color: #d8e1e4; background: var(--nav); box-shadow: 2px 0 20px rgba(0,0,0,.06); }
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 25px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand strong { display: block; color: white; letter-spacing: .04em; font-size: 15px; }
.brand small { display: block; margin-top: 1px; color: #82949e; letter-spacing: .02em; font-size: 11px; }
.brand-mark { position: relative; display: grid; width: 30px; height: 30px; grid-template-columns: repeat(2, 7px); grid-template-rows: repeat(2, 7px); place-content: center; gap: 3px; flex: 0 0 auto; border: 1px solid rgba(84,195,220,.35); border-radius: 8px; background: #162a34; transform: rotate(45deg); }
.brand-mark span { border-radius: 2px; background: #4bc0d8; }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(3) { background: #c58b35; }
.brand-mark.large { width: 46px; height: 46px; grid-template-columns: repeat(2, 10px); grid-template-rows: repeat(2, 10px); border-radius: 12px; }
.primary-nav { display: grid; gap: 5px; margin-top: 24px; }
.nav-item { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px 11px; color: #94a5ae; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; transition: .18s ease; }
.nav-item svg { width: 19px; height: 19px; flex: 0 0 auto; }
.nav-item:hover { color: white; background: rgba(255,255,255,.05); }
.nav-item.active { color: white; background: #1b3542; box-shadow: inset 3px 0 #45b6cf; }
.sidebar-section { margin-top: 27px; padding: 0 5px; }
.sidebar-label { margin: 0 5px 8px; color: #687b85; letter-spacing: .1em; text-transform: uppercase; font-size: 10px; font-weight: 800; }
.quick-action { display: flex; width: 100%; align-items: center; gap: 9px; padding: 7px 5px; color: #8799a3; border: 0; background: transparent; cursor: pointer; text-align: left; font-size: 12px; }
.quick-action:hover { color: #dce7ea; }
.quick-action span { display: grid; width: 18px; height: 18px; place-items: center; color: #6dc6da; border: 1px solid #335260; border-radius: 5px; }
.sidebar-foot { margin-top: auto; padding: 17px 8px 0; border-top: 1px solid rgba(255,255,255,.08); }
.live-pill { display: flex; align-items: center; gap: 8px; color: #899ca5; font-size: 11px; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #42b985; box-shadow: 0 0 0 4px rgba(66,185,133,.1); }
.icon-text-button { margin-top: 12px; padding: 0; color: #6e818b; border: 0; background: transparent; cursor: pointer; font-size: 11px; }
.icon-text-button:hover { color: white; }

.main { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; z-index: 30; top: 0; display: flex; height: 68px; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(244,246,245,.91); backdrop-filter: blur(18px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: #87959d; font-size: 12px; }
.breadcrumb i { color: #b5c0c5; font-style: normal; }
.breadcrumb strong { color: var(--ink-2); font-weight: 650; }
.topbar-actions, .heading-actions { display: flex; align-items: center; gap: 10px; }
.global-search { position: relative; display: flex; width: 250px; align-items: center; }
.global-search svg, .inline-search svg { position: absolute; left: 11px; width: 16px; height: 16px; color: #87969e; pointer-events: none; }
.global-search input, .inline-search input { width: 100%; padding: 9px 42px 9px 35px; outline: 0; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.7); transition: .18s ease; }
.global-search input:focus, .inline-search input:focus { border-color: #90c6d4; box-shadow: 0 0 0 3px rgba(23,111,140,.08); background: white; }
.global-search kbd { position: absolute; right: 9px; padding: 1px 5px; color: #98a5ab; border: 1px solid #d8e0e3; border-radius: 4px; background: #f7f9f9; font: 10px ui-monospace, monospace; }
.icon-button { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; color: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; }
.icon-button:hover { border-color: #bdcbd0; box-shadow: 0 3px 10px rgba(20,33,42,.06); }
.icon-button svg { width: 18px; height: 18px; }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 12px; transition: .18s ease; }
.button.primary { color: white; background: var(--blue); box-shadow: 0 4px 12px rgba(23,111,140,.16); }
.button.primary:hover { background: #12637e; transform: translateY(-1px); }
.button.secondary { color: white; background: var(--nav); }
.button.ghost { color: var(--ink-2); border-color: var(--line); background: white; }
.button.compact { min-height: 36px; padding: 8px 12px; }

.page { display: none; padding: 34px 32px 60px; animation: page-in .22s ease; }
.page.active { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; min-height: 92px; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-heading h1 { margin: 3px 0 7px; letter-spacing: -.035em; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.15; font-weight: 720; }
.eyebrow { margin: 0; color: var(--blue); letter-spacing: .11em; text-transform: uppercase; font-size: 10px; font-weight: 850; }
.heading-copy { max-width: 670px; margin: 0; color: var(--muted); font-size: 14px; }
.as-of { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding: 8px 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.65); font-size: 11px; white-space: nowrap; }
.action-heading > .button, .action-heading > .heading-actions { margin-top: 18px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.kpi-card { position: relative; min-height: 138px; overflow: hidden; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 6px 24px rgba(21,37,47,.035); }
.kpi-card::after { content: ""; position: absolute; right: -25px; bottom: -25px; width: 82px; height: 82px; border: 12px solid rgba(23,111,140,.035); border-radius: 50%; }
.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.kpi-label { color: var(--muted); font-size: 11px; font-weight: 650; }
.kpi-icon { display: grid; width: 29px; height: 29px; place-items: center; color: var(--blue); border-radius: 7px; background: var(--blue-pale); }
.kpi-icon svg { width: 16px; height: 16px; }
.kpi-value { margin: 15px 0 3px; letter-spacing: -.04em; font-size: 28px; line-height: 1; font-weight: 750; }
.kpi-note { color: #849198; font-size: 10px; }
.kpi-note strong { color: var(--green); }

.content-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 18px; }
.span-4 { grid-column: span 4; }.span-5 { grid-column: span 5; }.span-7 { grid-column: span 7; }.span-8 { grid-column: span 8; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 7px 25px rgba(20,33,42,.035); }
.panel-heading { display: flex; min-height: 69px; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 19px; border-bottom: 1px solid var(--line-soft); }
.panel-heading h2 { margin: 3px 0 0; letter-spacing: -.018em; font-size: 16px; }
.text-button { padding: 4px 0; color: var(--blue); border: 0; background: transparent; cursor: pointer; font-size: 11px; font-weight: 750; }
.text-button:hover { color: #0f5369; }
.chart-legend, .network-legend { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 10px; }
.chart-legend span, .network-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; }
.legend-blue { background: var(--blue); }.legend-gold { background: var(--gold); }

.activity-chart { display: flex; height: 245px; align-items: stretch; gap: 10px; padding: 24px 20px 18px; background: linear-gradient(to bottom, transparent 24%, #edf1f2 25%, transparent 25.5%, transparent 49%, #edf1f2 50%, transparent 50.5%, transparent 74%, #edf1f2 75%, transparent 75.5%); }
.week-bar { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; }
.bar-area { display: flex; width: min(46px,100%); height: 185px; align-items: flex-end; justify-content: center; gap: 4px; }
.bar { position: relative; width: 42%; min-height: 2px; border-radius: 4px 4px 1px 1px; background: var(--blue); transition: height .5s cubic-bezier(.2,.8,.2,1); }
.bar.hours { background: var(--gold); }
.bar:hover::after { content: attr(data-value); position: absolute; z-index: 3; bottom: calc(100% + 6px); left: 50%; padding: 4px 6px; color: white; border-radius: 4px; background: var(--nav); transform: translateX(-50%); font-size: 9px; white-space: nowrap; }
.week-label { margin-top: 8px; color: #8a989f; font-size: 9px; white-space: nowrap; }

.dark-panel { color: white; border-color: var(--nav); background: var(--nav); }
.dark-panel .panel-heading { border-bottom-color: rgba(255,255,255,.08); }
.dark-panel .eyebrow { color: #62bfd3; }
.meter-wrap { padding: 22px 23px; }
.meter-main { display: flex; align-items: center; gap: 22px; }
.radial-meter { --progress: 0deg; position: relative; display: grid; width: 116px; height: 116px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: conic-gradient(#4cc0d7 var(--progress), #263640 0); }
.radial-meter::after { content: ""; position: absolute; width: 86px; height: 86px; border-radius: 50%; background: var(--nav); }
.radial-meter strong, .radial-meter small { position: relative; z-index: 1; }
.radial-meter strong { margin-top: 4px; letter-spacing: -.04em; font-size: 24px; }
.radial-meter small { margin-top: -21px; color: #8497a0; font-size: 9px; }
.meter-stat strong { display: block; font-size: 18px; }.meter-stat span { color: #8597a0; font-size: 10px; }
.meter-track { height: 5px; margin: 22px 0 9px; overflow: hidden; border-radius: 5px; background: #273740; }
.meter-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#258ba8,#55c1d7); }
.meter-foot { display: flex; justify-content: space-between; color: #7f919a; font-size: 9px; }

.pipeline-funnel { display: grid; gap: 12px; padding: 19px; }
.funnel-row { display: grid; grid-template-columns: 136px 1fr 80px; align-items: center; gap: 12px; }
.funnel-label { color: var(--ink-2); font-size: 10px; font-weight: 650; }
.funnel-track { height: 17px; overflow: hidden; border-radius: 4px; background: #edf1f2; }
.funnel-track span { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: linear-gradient(90deg,var(--blue),#48acc5); }
.funnel-value { color: var(--ink-2); text-align: right; font-size: 10px; font-weight: 750; }
.portfolio-layout { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 22px; padding: 24px 20px; }
.donut { position: relative; display: grid; width: 126px; height: 126px; place-items: center; border-radius: 50%; }
.donut::after { content: ""; position: absolute; width: 78px; height: 78px; border-radius: 50%; background: white; }
.donut-center { position: relative; z-index: 1; text-align: center; }.donut-center strong { display: block; font-size: 22px; }.donut-center small { color: var(--muted); font-size: 9px; }
.mix-list { display: grid; gap: 10px; }.mix-item { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }.mix-item i { width: 7px; height: 7px; border-radius: 2px; }.mix-item strong { color: var(--ink); }

.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 15px; color: #8a979e; border-bottom: 1px solid var(--line-soft); background: #fafbfb; text-align: left; letter-spacing: .055em; text-transform: uppercase; font-size: 9px; white-space: nowrap; }
.data-table td { padding: 13px 15px; color: var(--ink-2); border-bottom: 1px solid var(--line-soft); vertical-align: middle; font-size: 11px; }
.data-table tr:last-child td { border-bottom: 0; }.data-table tbody tr { cursor: pointer; transition: background .15s; }.data-table tbody tr:hover { background: #f8fafb; }
.primary-cell strong { display: block; color: var(--ink); font-size: 11px; }.primary-cell small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.money { font-variant-numeric: tabular-nums; font-weight: 750; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 999px; white-space: nowrap; font-size: 9px; font-weight: 750; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.blue { color: #176f8c; background: #e6f3f6; }.badge.gold { color: #976521; background: #f9efdf; }.badge.green { color: #26785a; background: #e5f3ec; }.badge.red { color: #a44842; background: #f7e8e6; }.badge.gray { color: #64747c; background: #edf1f2; }.badge.violet { color: #655a96; background: #eeecf7; }
.activity-feed { padding: 6px 18px 12px; }.feed-item { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 9px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }.feed-item:last-child { border-bottom: 0; }.feed-icon { display: grid; width: 27px; height: 27px; place-items: center; color: var(--blue); border-radius: 50%; background: var(--blue-pale); font-size: 9px; font-weight: 800; }.feed-body strong { display: block; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }.feed-body span { color: var(--muted); font-size: 9px; }

.panel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.segmented { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.segmented button { padding: 6px 10px; color: var(--muted); border: 0; border-radius: 5px; background: transparent; cursor: pointer; font-size: 10px; font-weight: 650; white-space: nowrap; }
.segmented button.active { color: white; background: var(--ink-2); }
.node-dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; }.node-dot.advisor { background: var(--gold); }.node-dot.account { background: var(--blue); }.node-dot.contact { background: var(--green); }.node-dot.opportunity { background: var(--violet); }
.network-panel { position: relative; }
.network-columns { display: grid; grid-template-columns: repeat(4,1fr); padding: 12px 34px; color: #819098; border-bottom: 1px solid var(--line-soft); background: #fafbfb; letter-spacing: .07em; text-transform: uppercase; font-size: 8px; font-weight: 800; }
.network-canvas { position: relative; height: 620px; overflow: auto; background-color: #fbfcfc; background-image: radial-gradient(#dbe3e6 1px, transparent 1px); background-size: 22px 22px; }
#network-svg { display: block; min-width: 1100px; width: 100%; height: 100%; }
#network-svg .link { stroke: #cbd7dc; stroke-width: 1.2; }
#network-svg .link.highlight { stroke: var(--blue-bright); stroke-width: 2; }
#network-svg .graph-node { cursor: pointer; filter: drop-shadow(0 3px 5px rgba(15,31,40,.08)); }
#network-svg .graph-node rect { fill: white; stroke: #d5e0e4; stroke-width: 1; rx: 8; }
#network-svg .graph-node:hover rect, #network-svg .graph-node.selected rect { stroke: var(--blue-bright); stroke-width: 1.5; }
#network-svg .graph-node .accent { stroke: none; }
#network-svg .graph-node.advisor .accent { fill: var(--gold); } #network-svg .graph-node.account .accent { fill: var(--blue); } #network-svg .graph-node.contact .accent { fill: var(--green); } #network-svg .graph-node.opportunity .accent { fill: var(--violet); }
#network-svg .node-label { fill: var(--ink); stroke: none; font-size: 10px; font-weight: 750; }
#network-svg .node-subtitle { fill: var(--muted); stroke: none; font-size: 8px; }
.network-hint { padding: 9px 17px; color: var(--muted); border-top: 1px solid var(--line-soft); background: white; text-align: center; font-size: 9px; }

.directory-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 15px; }
.tier-card { padding: 14px 15px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }.tier-card:hover { border-color: #b9ccd3; }.tier-card span { display: block; color: var(--muted); font-size: 9px; }.tier-card strong { display: block; margin: 5px 0 2px; font-size: 19px; }.tier-card small { color: var(--ink-2); font-size: 9px; }
.table-panel { overflow: visible; }.accounts-toolbar { margin: 0; padding: 13px 15px; border-bottom: 1px solid var(--line-soft); }.inline-search { position: relative; display: flex; width: min(300px,30vw); align-items: center; }.inline-search input { padding-right: 12px; background: white; }.select-control { min-height: 34px; padding: 7px 30px 7px 10px; color: var(--ink-2); outline: 0; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 10px; }
.tier-badge { display: grid; width: 25px; height: 25px; place-items: center; color: var(--blue); border: 1px solid #bad9e1; border-radius: 7px; background: var(--blue-pale); font-size: 9px; font-weight: 850; }
.row-actions { display: flex; gap: 5px; }.mini-button { padding: 4px 7px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; background: white; cursor: pointer; font-size: 9px; }.mini-button:hover { color: var(--blue); border-color: #abcbd4; }

.supplier-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 15px; }
.supplier-stat { padding: 15px 16px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.supplier-stat span { display: block; color: var(--muted); font-size: 9px; }
.supplier-stat strong { display: block; margin: 5px 0 2px; letter-spacing: -.025em; font-size: 20px; }
.supplier-stat small { color: #859299; font-size: 8px; }
.supplier-panel { overflow: visible; }
.supplier-toolbar { margin: 0; padding: 13px 15px; border-bottom: 1px solid var(--line-soft); }
.enrichment-ready { display: grid; grid-template-columns: 8px auto; align-items: center; column-gap: 7px; min-width: 190px; padding: 6px 10px; border: 1px solid #cae4d9; border-radius: 8px; background: #f1f9f5; }
.enrichment-ready span:not(.status-dot) { color: #326c56; font-size: 9px; font-weight: 750; }
.enrichment-ready small { grid-column: 2; color: #729082; font-size: 7px; }
.supplier-directory { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 15px; }
.supplier-directory > .empty-state { grid-column: 1 / -1; }
.supplier-card { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfc; transition: .18s ease; }
.supplier-card:hover { border-color: #bbd0d7; box-shadow: 0 8px 20px rgba(20,33,42,.045); }
.supplier-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 15px 16px 12px; border-bottom: 1px solid var(--line-soft); background: white; }
.supplier-identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
.supplier-avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; color: var(--blue); border-radius: 9px; background: var(--blue-pale); font-size: 10px; font-weight: 850; }
.supplier-identity strong { display: block; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.supplier-identity small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.supplier-card-body { padding: 13px 16px 15px; }
.supplier-meta { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.supplier-meta-item { padding: 8px 9px; border: 1px solid var(--line-soft); border-radius: 7px; background: white; }
.supplier-meta-item span { display: block; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; font-size: 7px; font-weight: 750; }
.supplier-meta-item strong { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.supplier-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.supplier-link { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; color: var(--blue); border: 1px solid #c9dfe5; border-radius: 6px; background: white; text-decoration: none; font-size: 8px; font-weight: 750; }
.supplier-link:hover { border-color: #85bccb; }
.supplier-note { margin: 11px 0 0; color: var(--ink-2); font-size: 9px; }
.supplier-contacts-head { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line-soft); }
.supplier-contacts-head span { color: var(--muted); letter-spacing: .07em; text-transform: uppercase; font-size: 7px; font-weight: 850; }
.supplier-contacts { display: grid; gap: 6px; margin-top: 8px; }
.supplier-contact { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid var(--line-soft); border-radius: 7px; background: white; cursor: pointer; }
.supplier-contact:hover { border-color: #bfd4db; }
.supplier-contact-avatar { display: grid; width: 27px; height: 27px; place-items: center; color: #655a96; border-radius: 50%; background: #eeecf7; font-size: 8px; font-weight: 850; }
.supplier-contact strong { display: block; font-size: 9px; }
.supplier-contact small { display: block; color: var(--muted); font-size: 7px; }
.source-pill { padding: 3px 5px; color: #5f6f77; border-radius: 4px; background: #edf1f2; font-size: 7px; font-weight: 750; }
.supplier-card-actions { display: flex; gap: 6px; margin-top: 12px; }

.pipeline-summary { display: flex; gap: 1px; overflow: hidden; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }.pipeline-stat { min-width: 150px; flex: 1; padding: 13px 16px; background: white; }.pipeline-stat span { display: block; color: var(--muted); font-size: 9px; }.pipeline-stat strong { display: block; margin-top: 3px; font-size: 17px; }
.pipeline-board { display: grid; grid-template-columns: repeat(6,minmax(210px,1fr)); gap: 12px; padding-bottom: 12px; overflow-x: auto; align-items: start; }
.pipeline-column { min-height: 510px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: #eef2f2; transition: .15s; }.pipeline-column.drag-over { border-color: var(--blue-bright); background: #e5f1f4; }
.column-head { display: flex; align-items: center; justify-content: space-between; padding: 5px 4px 12px; }.column-title { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 800; }.column-title i { width: 7px; height: 7px; border-radius: 50%; }.column-count { display: grid; min-width: 20px; height: 20px; place-items: center; color: #74848c; border-radius: 10px; background: white; font-size: 9px; }
.pipeline-cards { display: grid; gap: 8px; }.opportunity-card { padding: 12px; border: 1px solid #dbe3e6; border-radius: 9px; background: white; box-shadow: 0 3px 10px rgba(20,33,42,.035); cursor: grab; }.opportunity-card:active { cursor: grabbing; }.opportunity-card.dragging { opacity: .45; }.opp-account { overflow: hidden; color: var(--blue); text-overflow: ellipsis; white-space: nowrap; letter-spacing: .05em; text-transform: uppercase; font-size: 8px; font-weight: 850; }.opportunity-card h3 { margin: 7px 0 11px; letter-spacing: -.012em; font-size: 12px; line-height: 1.35; }.opp-value { display: flex; align-items: baseline; justify-content: space-between; font-weight: 800; }.opp-value small { color: var(--muted); font-size: 8px; font-weight: 600; }.probability-track { height: 3px; margin: 7px 0 11px; overflow: hidden; border-radius: 3px; background: #e7edef; }.probability-track span { display: block; height: 100%; background: var(--blue); }.opp-next { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 9px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }.opp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line-soft); color: #7c8a91; font-size: 8px; }

.activity-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; margin-bottom: 17px; }.activity-metric { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: white; }.activity-metric span { color: var(--muted); font-size: 10px; }.activity-metric strong { display: block; margin: 8px 0 4px; letter-spacing: -.03em; font-size: 24px; }.activity-metric small { color: #839198; font-size: 9px; }.metric-progress { height: 4px; margin-top: 10px; overflow: hidden; border-radius: 4px; background: #eaf0f2; }.metric-progress i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.timeline { padding: 4px 20px 20px; }.timeline-item { position: relative; display: grid; grid-template-columns: 96px 26px 1fr auto; align-items: start; gap: 10px; padding: 17px 0; border-bottom: 1px solid var(--line-soft); }.timeline-date { color: var(--muted); font-size: 9px; }.timeline-marker { position: relative; display: grid; width: 25px; height: 25px; place-items: center; color: var(--blue); border-radius: 50%; background: var(--blue-pale); font-size: 8px; font-weight: 800; }.timeline-marker::after { content: ""; position: absolute; top: 30px; bottom: -25px; left: 12px; width: 1px; background: var(--line); }.timeline-item:last-child .timeline-marker::after { display: none; }.timeline-body strong { display: block; font-size: 11px; }.timeline-body span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }.timeline-hours { color: var(--green); font-size: 9px; font-weight: 750; }
.advisor-list { padding: 8px 18px 18px; }.advisor-item { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }.advisor-item:last-child { border-bottom: 0; }.advisor-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.advisor-info { display: flex; align-items: center; gap: 9px; min-width: 0; }.advisor-avatar { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; color: #93641f; border-radius: 50%; background: var(--gold-pale); font-size: 9px; font-weight: 850; }.advisor-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }.advisor-info small { color: var(--muted); font-size: 8px; }.advisor-score { color: var(--blue); font-size: 13px; font-weight: 850; }.advisor-track { height: 3px; margin: 9px 0 0 40px; overflow: hidden; border-radius: 3px; background: #e9edef; }.advisor-track span { display: block; height: 100%; background: linear-gradient(90deg,var(--gold),#dfbb7a); }

.search-results { position: fixed; z-index: 75; top: 59px; right: 87px; width: min(420px,calc(100vw - 24px)); max-height: 460px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow-high); }
.search-section { padding: 10px 0 4px; }.search-section > span { display: block; padding: 0 13px 5px; color: #8b989e; letter-spacing: .08em; text-transform: uppercase; font-size: 8px; font-weight: 850; }.search-result { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 13px; border: 0; background: white; cursor: pointer; text-align: left; }.search-result:hover { background: #f3f7f8; }.search-result strong { display: block; font-size: 10px; }.search-result small { color: var(--muted); font-size: 8px; }.search-result em { color: var(--blue); font-style: normal; font-size: 8px; }

.modal-backdrop { position: fixed; z-index: 79; inset: 0; background: rgba(11,22,29,.46); backdrop-filter: blur(2px); }
.modal { position: fixed; z-index: 80; top: 50%; left: 50%; width: min(680px,calc(100vw - 28px)); max-height: calc(100vh - 40px); overflow-y: auto; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow-high); transform: translate(-50%,-50%); animation: modal-in .2s ease; }
@keyframes modal-in { from { opacity: 0; transform: translate(-50%,-47%); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }.modal-head h2 { margin: 3px 0 0; font-size: 19px; }.modal-head .icon-button { border: 0; }
#record-form { padding: 20px 22px; }.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }.form-field { display: grid; gap: 6px; }.form-field.full { grid-column: 1 / -1; }.form-field label { color: var(--ink-2); font-size: 10px; font-weight: 750; }.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 10px 11px; color: var(--ink); outline: none; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfc; font-size: 11px; }.form-field textarea { min-height: 80px; resize: vertical; }.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #83bdcc; box-shadow: 0 0 0 3px rgba(23,111,140,.07); background: white; }.form-field small { color: var(--muted); font-size: 8px; }.form-error { min-height: 18px; margin: 10px 0 0; color: var(--red); font-size: 10px; }.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 10px; }

.detail-drawer { position: fixed; z-index: 81; top: 0; right: 0; width: min(430px,100vw); height: 100vh; overflow-y: auto; border-left: 1px solid var(--line); background: white; box-shadow: -20px 0 55px rgba(15,29,37,.16); animation: drawer-in .22s ease; } @keyframes drawer-in { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }.drawer-head .icon-button { border: 0; }.drawer-content { padding: 25px 22px; }.drawer-type { display: inline-block; padding: 4px 7px; color: var(--blue); border-radius: 5px; background: var(--blue-pale); letter-spacing: .07em; text-transform: uppercase; font-size: 8px; font-weight: 850; }.drawer-content h2 { margin: 12px 0 3px; letter-spacing: -.03em; font-size: 24px; line-height: 1.2; }.drawer-subtitle { margin: 0 0 22px; color: var(--muted); }.detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 18px 0; }.detail-item { padding: 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fafbfb; }.detail-item span { display: block; color: var(--muted); text-transform: uppercase; font-size: 7px; font-weight: 800; }.detail-item strong { display: block; margin-top: 3px; font-size: 10px; }.detail-section { margin-top: 24px; }.detail-section h3 { margin: 0 0 8px; letter-spacing: .06em; text-transform: uppercase; font-size: 9px; }.detail-section p { color: var(--ink-2); font-size: 11px; }.lineage { display: grid; gap: 0; margin-top: 10px; }.lineage-step { position: relative; padding: 8px 10px 8px 30px; color: var(--ink-2); border-left: 1px solid #bfd2d8; font-size: 10px; }.lineage-step::before { content: ""; position: absolute; top: 13px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }.drawer-actions { display: flex; gap: 8px; margin-top: 24px; }
.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 8px; }.toast { min-width: 240px; padding: 11px 14px; color: white; border-radius: 8px; background: var(--nav); box-shadow: var(--shadow-high); animation: toast-in .2s ease; font-size: 10px; }.toast.error { background: #973f3a; } @keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.empty-state { padding: 42px 20px; color: var(--muted); text-align: center; }.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink-2); }

.sidebar { overflow-y: auto; }
.delivery-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.delivery-stat { padding: 15px 16px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.delivery-stat span { display: block; color: var(--muted); font-size: 9px; }
.delivery-stat strong { display: block; margin: 5px 0 2px; letter-spacing: -.025em; font-size: 20px; }
.delivery-stat small { color: #859299; font-size: 8px; }
.proposal-workspace { display: grid; grid-template-columns: 280px minmax(0,1fr); align-items: start; gap: 16px; }
.proposal-library { position: sticky; top: 84px; max-height: calc(100vh - 105px); overflow-y: auto; }
.proposal-library .panel-heading { padding-bottom: 13px; }
.proposal-list { display: grid; gap: 7px; padding: 0 11px 12px; }
.proposal-list-item { display: grid; width: 100%; gap: 4px; padding: 11px; text-align: left; border: 1px solid var(--line-soft); border-radius: 9px; background: #fbfcfc; cursor: pointer; transition: .16s ease; }
.proposal-list-item:hover { border-color: #b8d0d8; background: white; }
.proposal-list-item.active { border-color: #85bbc9; background: var(--blue-pale); box-shadow: inset 3px 0 var(--blue); }
.proposal-list-item > span { display: flex; align-items: center; justify-content: space-between; }
.proposal-list-item > span small { color: var(--muted); font-size: 8px; }
.proposal-list-item > strong { margin-top: 3px; font-size: 10px; line-height: 1.35; }
.proposal-list-item > em { color: var(--muted); font-size: 8px; font-style: normal; }
.proposal-list-item > b { color: var(--blue); font-size: 12px; }
.proposal-builder-shell { min-width: 0; background: #e8edef; }
.proposal-actionbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; color: white; background: var(--nav); }
.proposal-actionbar > div { display: flex; align-items: center; gap: 8px; }
.proposal-actionbar > div:first-child { display: grid; gap: 0; }
.proposal-actionbar span { color: #91a5af; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.proposal-actionbar strong { font-size: 11px; }
.proposal-actionbar .button.ghost { color: #d7e2e6; border-color: #40525d; background: transparent; }
.proposal-document { width: min(900px,calc(100% - 32px)); margin: 16px auto 28px; color: #1b2b34; background: white; box-shadow: 0 14px 40px rgba(18,31,39,.1); }
.proposal-cover { position: relative; min-height: 375px; overflow: hidden; padding: 42px 48px; color: white; background: linear-gradient(135deg,#101a22 0%,#173443 72%,#176f8c 100%); }
.proposal-cover::after { content: ""; position: absolute; right: -90px; bottom: -125px; width: 330px; height: 330px; border: 45px solid rgba(255,255,255,.045); border-radius: 50%; }
.proposal-brand { display: flex; align-items: baseline; gap: 11px; }
.proposal-brand strong { color: white; letter-spacing: .08em; font-size: 17px; }
.proposal-brand span { color: #8fb5c3; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.proposal-status { position: absolute; top: 42px; right: 48px; display: flex; align-items: center; gap: 8px; }
.proposal-status > span:last-child { color: #aec5cf; font-size: 9px; }
.proposal-cover > p { margin: 90px 0 9px; color: #71c1d5; text-transform: uppercase; letter-spacing: .16em; font-size: 9px; font-weight: 800; }
.proposal-cover h1 { max-width: 650px; margin: 0; letter-spacing: -.035em; font-size: 37px; line-height: 1.12; }
.proposal-cover h2 { margin: 16px 0 0; color: #c6d8df; font-size: 15px; font-weight: 500; }
.proposal-cover-meta { position: absolute; right: 48px; bottom: 35px; left: 48px; display: flex; gap: 22px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.15); color: #93acb7; font-size: 8px; }
.proposal-section { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 33px 45px; border-bottom: 1px solid #e9edef; }
.proposal-section-number { display: grid; width: 31px; height: 31px; place-items: center; color: var(--blue); border: 1px solid #bfdae2; border-radius: 50%; font-size: 8px; font-weight: 850; }
.proposal-section h3 { margin: 0 0 12px; letter-spacing: -.02em; font-size: 17px; }
.proposal-section p { margin: 0; color: #4b5c66; font-size: 10px; line-height: 1.75; }
.proposal-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.proposal-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.proposal-capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.proposal-capabilities article { position: relative; padding: 13px 14px; border: 1px solid #dce6e9; border-radius: 8px; background: #f8fafb; }
.proposal-capabilities article span { display: block; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; font-size: 7px; font-weight: 800; }
.proposal-capabilities article strong { display: block; margin: 4px 20px 5px 0; font-size: 10px; }
.proposal-capabilities article p { font-size: 8px; line-height: 1.5; }
.capability-remove { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; color: #8b989e; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.capability-remove:hover { color: var(--red); background: var(--red-pale); }
.capability-picker { margin-top: 13px; padding-top: 11px; border-top: 1px dashed var(--line); }
.capability-picker > strong { display: block; margin-bottom: 7px; color: var(--muted); text-transform: uppercase; font-size: 7px; letter-spacing: .08em; }
.capability-picker > div { display: flex; flex-wrap: wrap; gap: 5px; }
.capability-picker button { padding: 5px 7px; color: var(--blue); border: 1px solid #c9dce2; border-radius: 6px; background: white; cursor: pointer; font-size: 7px; }
.proposal-pricing { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.proposal-pricing-head, .proposal-pricing-row { display: grid; grid-template-columns: minmax(190px,1.7fr) minmax(105px,.9fr) minmax(80px,.7fr) minmax(85px,.7fr) auto; align-items: center; gap: 10px; padding: 10px 12px; }
.proposal-pricing-head { color: #7b898f; background: #f2f5f6; text-transform: uppercase; letter-spacing: .07em; font-size: 7px; font-weight: 800; }
.proposal-pricing-row { border-top: 1px solid var(--line-soft); font-size: 9px; }
.proposal-pricing-row > div:first-child strong, .proposal-pricing-row > div:first-child small, .proposal-pricing-row > div:first-child em { display: block; }
.proposal-pricing-row > div:first-child small { color: var(--muted); font-size: 7px; }
.proposal-pricing-row > div:first-child em { margin-top: 3px; color: #9b671f; font-size: 7px; font-style: normal; }
.proposal-pricing-row > strong { color: var(--ink); font-size: 11px; }
.mini-button.danger { color: var(--red); }
.proposal-pricing-total { display: flex; align-items: stretch; justify-content: flex-end; border-top: 1px solid var(--line); background: #fbfcfc; }
.proposal-pricing-total > div { min-width: 110px; padding: 10px 13px; border-left: 1px solid var(--line-soft); }
.proposal-pricing-total span { display: block; color: var(--muted); font-size: 7px; text-transform: uppercase; }
.proposal-pricing-total strong { display: block; margin-top: 2px; font-size: 11px; }
.proposal-pricing-total .grand { color: white; background: var(--blue); }
.proposal-pricing-total .grand span { color: #b9dbe3; }
.proposal-rate-note { margin-top: 9px !important; color: #75858d !important; font-size: 8px !important; }
.proposal-resumes { padding: 40px 45px; background: #f5f7f7; }
.resume-section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; margin-bottom: 23px; padding-bottom: 13px; border-bottom: 2px solid var(--nav); }
.resume-section-head p { grid-column: 1 / -1; margin: 0; color: var(--blue); text-transform: uppercase; font-size: 8px; letter-spacing: .12em; font-weight: 850; }
.resume-section-head h2 { margin: 2px 0 0; font-size: 23px; }
.resume-section-head span { color: var(--muted); font-size: 8px; }
.proposal-resume { margin-top: 18px; padding: 25px 28px; border: 1px solid #dde5e8; background: white; }
.resume-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.resume-title span { color: var(--blue); text-transform: uppercase; letter-spacing: .1em; font-size: 7px; font-weight: 800; }
.resume-title h3 { margin: 4px 0 2px; font-size: 18px; }
.resume-title p { margin: 0; color: var(--muted); font-size: 9px; }
.resume-title > strong { padding: 5px 7px; color: #9d671f; border: 1px solid #efd8b5; border-radius: 5px; background: var(--gold-pale); font-size: 7px; }
.resume-content { color: #465862; font-size: 9px; line-height: 1.62; }
.proposal-notes { padding: 12px 45px; color: #896121; background: #fff9ee; font-size: 8px; }
.proposal-empty { min-height: 460px; display: grid; place-content: center; }
.roster-panel { margin-top: 17px; }
.roster-heading { gap: 15px; }
.roster-controls { display: flex; width: min(600px,60%); align-items: center; gap: 8px; }
.roster-controls .inline-search { flex: 1; }
.staff-roster { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; padding: 0 17px 17px; }
.staff-card { display: flex; min-width: 0; flex-direction: column; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfc; }
.staff-card-head { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; }
.staff-avatar { display: grid; width: 34px; height: 34px; place-items: center; color: var(--blue); border-radius: 9px; background: var(--blue-pale); font-size: 9px; font-weight: 850; }
.staff-avatar.offshore { color: #7d5c25; background: var(--gold-pale); }
.staff-card-head strong { display: block; font-size: 9px; line-height: 1.35; }
.staff-card-head small { color: var(--muted); font-size: 7px; }
.staff-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 11px; }
.staff-tags span { padding: 3px 5px; color: #5c6d76; border-radius: 4px; background: #eaf0f2; font-size: 7px; }
.staff-card > p { flex: 1; margin: 11px 0; color: #566872; font-size: 8px; line-height: 1.55; }
.staff-rate { display: grid; grid-template-columns: 1fr 1.5fr; gap: 6px; }
.staff-rate > div { padding: 7px; border: 1px solid var(--line-soft); border-radius: 6px; background: white; }
.staff-rate span { display: block; color: var(--muted); text-transform: uppercase; font-size: 6px; }
.staff-rate strong { display: block; margin-top: 2px; font-size: 8px; }
.placeholder-warning { margin-top: 8px; padding: 6px 7px; color: #93641f; border-radius: 5px; background: var(--gold-pale); font-size: 7px; }
.staff-card-actions { display: flex; gap: 5px; margin-top: 10px; }
.mobile-only { display: none; }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid .span-4, .dashboard-grid .span-5, .dashboard-grid .span-7, .dashboard-grid .span-8 { grid-column: span 6; }
  .activity-grid .span-8 { grid-column: span 7; }.activity-grid .span-4 { grid-column: span 5; }
  .accounts-toolbar { flex-wrap: wrap; }.inline-search { width: 100%; }
  .supplier-directory { grid-template-columns: 1fr; }
  .proposal-workspace { grid-template-columns: 240px minmax(0,1fr); }
  .staff-roster { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  :root { --sidebar: 224px; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; }.sidebar.open { transform: none; }
  .main { margin-left: 0; }.mobile-only { display: grid; }.breadcrumb span, .breadcrumb i { display: none; }
  .topbar { padding: 0 18px; }.global-search { width: 210px; }
  .page { padding: 27px 20px 50px; }
  .directory-summary, .activity-metrics, .supplier-summary, .delivery-summary { grid-template-columns: repeat(2,1fr); }
  .network-legend { display: none; }
  .proposal-workspace { display: block; }
  .proposal-library { position: static; max-height: none; margin-bottom: 14px; }
  .proposal-list { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
  .topbar { gap: 8px; }.topbar-actions { gap: 6px; }.global-search { width: 44px; }.global-search input { height: 36px; padding: 8px 10px; color: transparent; cursor: pointer; }.global-search input:focus { position: fixed; z-index: 80; top: 10px; right: 10px; left: 10px; width: calc(100vw - 20px); color: var(--ink); padding-left: 35px; cursor: text; }.global-search:focus-within svg { z-index: 81; position: fixed; top: 20px; left: 21px; }.global-search kbd, .topbar .button { display: none; }
  .page-heading { display: block; }.as-of { display: inline-flex; margin-top: 13px; }.action-heading > .button, .action-heading > .heading-actions { margin-top: 14px; }
  .kpi-grid { grid-template-columns: 1fr; }.kpi-card { min-height: 120px; }
  .dashboard-grid .span-4, .dashboard-grid .span-5, .dashboard-grid .span-7, .dashboard-grid .span-8, .activity-grid .span-4, .activity-grid .span-8 { grid-column: 1 / -1; }
  .content-grid { grid-template-columns: 1fr; }.activity-chart { height: 220px; padding-inline: 10px; }.bar-area { height: 160px; }
  .portfolio-layout { grid-template-columns: 110px 1fr; gap: 12px; padding-inline: 13px; }.donut { width: 106px; height: 106px; }.donut::after { width: 66px; height: 66px; }
  .network-toolbar { align-items: flex-start; overflow-x: auto; }.network-columns { min-width: 900px; }.network-canvas { height: 540px; }
  .directory-summary, .activity-metrics, .supplier-summary, .delivery-summary { grid-template-columns: 1fr 1fr; }.accounts-toolbar .segmented { width: 100%; overflow-x: auto; }.accounts-toolbar .select-control { width: 100%; }
  .supplier-toolbar { flex-wrap: wrap; }.supplier-toolbar .inline-search, .supplier-toolbar .select-control, .supplier-toolbar .enrichment-ready { width: 100%; }.supplier-directory { padding: 10px; }.supplier-meta { grid-template-columns: 1fr; }
  .pipeline-summary { overflow-x: auto; }.pipeline-stat { min-width: 135px; }
  .timeline-item { grid-template-columns: 70px 24px 1fr; }.timeline-hours { grid-column: 3; }
  .form-grid { grid-template-columns: 1fr; }.form-field.full { grid-column: auto; }
  .login-card { padding: 32px 24px; }.login-card h1 { font-size: 29px; }.password-row { display: grid; }
  .proposal-list { grid-template-columns: 1fr; }
  .proposal-actionbar { align-items: flex-start; }.proposal-actionbar, .proposal-actionbar > div:last-child { flex-wrap: wrap; }
  .proposal-document { width: calc(100% - 16px); margin-top: 8px; }
  .proposal-cover { min-height: 410px; padding: 30px 25px; }.proposal-status { position: static; margin-top: 20px; }.proposal-cover > p { margin-top: 60px; }.proposal-cover h1 { font-size: 29px; }.proposal-cover-meta { right: 25px; bottom: 25px; left: 25px; flex-wrap: wrap; gap: 8px 15px; }
  .proposal-section { grid-template-columns: 1fr; padding: 28px 23px; }.proposal-section-number { margin-bottom: -3px; }.proposal-two-column, .proposal-capabilities { grid-template-columns: 1fr; }
  .proposal-pricing { overflow-x: auto; }.proposal-pricing-head, .proposal-pricing-row { min-width: 680px; }
  .proposal-pricing-total { min-width: 480px; }
  .proposal-resumes { padding: 30px 22px; }.proposal-resume { padding: 20px; }
  .roster-heading { display: block; }.roster-controls { width: 100%; margin-top: 12px; flex-wrap: wrap; }.roster-controls .inline-search, .roster-controls .select-control { width: 100%; }
  .staff-roster { grid-template-columns: 1fr; padding: 0 12px 12px; }
}

@page { size: letter; margin: .45in; }
@media print {
  body { background: white; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .sidebar, .topbar, #page-delivery > .page-heading, #delivery-summary, .proposal-library, .roster-panel, .no-print, .modal-backdrop, .modal, .detail-drawer, .toast-region { display: none !important; }
  .main { margin: 0; }
  .page, #page-delivery { display: block !important; padding: 0; }
  .page:not(#page-delivery) { display: none !important; }
  .proposal-workspace { display: block; }
  .proposal-builder-shell { overflow: visible; border: 0; box-shadow: none; background: white; }
  .proposal-document { width: 100%; margin: 0; box-shadow: none; }
  .proposal-cover { min-height: 8.7in; break-after: page; }
  .proposal-section, .proposal-capabilities article, .proposal-pricing-row { break-inside: avoid; }
  .proposal-section { padding: 24px 32px; }
  .proposal-pricing-head, .proposal-pricing-row { grid-template-columns: minmax(180px,1.7fr) minmax(90px,.9fr) minmax(70px,.7fr) minmax(80px,.7fr); }
  .proposal-pricing-head > :last-child, .proposal-pricing-row > :last-child { display: none; }
  .proposal-resumes { padding: 30px 32px; }
  .proposal-resume { break-before: page; border: 0; padding: 0; }
  .proposal-resume + .proposal-resume { break-before: page; }
}
