:root {
  --ink: #10212b;
  --muted: #66757e;
  --line: #dfe5e7;
  --surface: #ffffff;
  --canvas: #f3f5f4;
  --navy: #092b41;
  --navy-2: #123f58;
  --cyan: #1cb7c4;
  --lime: #b7d532;
  --amber: #d59620;
  --red: #c94f4f;
  --shadow: 0 10px 30px rgba(22, 42, 52, .08);
  --sidebar: 248px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--canvas); letter-spacing: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.access { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr); background: var(--navy); }
.access-scene { position: relative; min-height: 100vh; overflow: hidden; padding: 48px 6vw; color: white; display: flex; flex-direction: column; justify-content: space-between; background-color: var(--navy); background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 48px 48px; }
.access-scene::after { content: ""; position: absolute; inset: 18% 4% -16% 27%; border: 1px solid rgba(183,213,50,.45); transform: skewY(-9deg); box-shadow: -34px -34px 0 rgba(28,183,196,.08), -68px -68px 0 rgba(255,255,255,.025); pointer-events: none; }
.access-brand, .logo { font-weight: 800; letter-spacing: 0; }
.access-brand { position: relative; z-index: 1; font-size: 22px; }
.access-brand span, .logo > span { display: inline-block; width: 9px; height: 9px; margin: 0 3px 0 2px; background: var(--lime); }
.access-copy { position: relative; z-index: 1; max-width: 760px; }
.access-copy h1 { margin: 0 0 22px; font-size: clamp(54px, 7.2vw, 112px); line-height: .92; font-weight: 700; }
.access-copy > p:last-child { max-width: 650px; margin: 0; color: #c9d6dc; font-size: 18px; line-height: 1.65; }
.access-caption { position: relative; z-index: 1; color: #9eb0b9; font-size: 12px; }
.access-form { background: #f7f8f7; min-height: 100vh; padding: 64px; display: flex; align-items: center; }
.access-form > div { width: 100%; }
.access-form h2 { margin: 0 0 10px; font-size: 30px; }
.pin { width: 100%; height: 70px; margin: 28px 0 10px; border: 1px solid #bfc9cd; background: white; font-size: 30px; text-align: center; letter-spacing: 14px; outline: none; }
.pin:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(28,183,196,.14); }
.access-error { height: 22px; margin: 0 0 12px; color: var(--red); font-size: 13px; }
.button, .icon-button { min-height: 42px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--ink); padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; }
.button:hover { border-color: #a8b7bd; }
.button.primary { background: var(--navy); border-color: var(--navy); color: white; }
.button.cyan { background: var(--cyan); border-color: var(--cyan); color: #062a37; }
.button.wide { width: 100%; }
.button.icon { width: 42px; padding: 0; }
.button svg, .icon-button svg { width: 17px; height: 17px; }
.app { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 24px 16px; background: var(--navy); color: white; z-index: 20; display: flex; flex-direction: column; }
.logo { padding: 5px 10px 23px; font-size: 20px; }
.logo small { display: block; margin-top: 5px; color: #8fa5b0; font-size: 9px; font-weight: 600; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav button { width: 100%; height: 43px; border: 0; border-radius: 4px; background: transparent; color: #c8d4da; padding: 0 11px; display: flex; align-items: center; gap: 11px; text-align: left; font-size: 12px; font-weight: 650; }
.nav button svg { width: 17px; height: 17px; flex: 0 0 auto; }
.nav button:hover { background: rgba(255,255,255,.07); color: white; }
.nav button.active { background: white; color: var(--navy); }
.nav-label { margin: 16px 11px 6px; color: #718d9b; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.nav button b { font-weight: 650; }
.nav button em { margin-left: auto; min-width: 20px; height: 20px; border-radius: 10px; background: var(--red); color: white; display: grid; place-items: center; font-size: 8px; font-style: normal; }
.sidebar-status { margin-top: auto; padding: 15px 10px 2px; border-top: 1px solid rgba(255,255,255,.12); display: flex; gap: 9px; align-items: center; }
.sidebar-status > span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.sidebar-status b, .sidebar-status small { display: block; }
.sidebar-status b { color: #cbd8dd; font-size: 9px; }
.sidebar-status small { margin-top: 3px; color: #718d9b; font-size: 8px; }
.sidebar-foot { margin-top: auto; padding: 16px 10px 3px; border-top: 1px solid rgba(255,255,255,.12); color: #8fa5b0; font-size: 10px; line-height: 1.6; }
.shell { margin-left: var(--sidebar); min-height: 100vh; }
.topbar { height: 68px; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); display: flex; align-items: center; gap: 18px; position: sticky; top: 0; z-index: 15; }
.menu-button { display: none; }
.search { position: relative; width: min(560px, 50vw); }
.search svg { position: absolute; left: 13px; top: 12px; width: 17px; color: #839199; }
.search input { width: 100%; height: 42px; padding: 0 15px 0 40px; border: 1px solid var(--line); border-radius: 4px; background: #f8faf9; outline: none; }
.search input:focus { background: white; border-color: var(--cyan); }
.search kbd { position: absolute; right: 10px; top: 10px; border: 1px solid var(--line); background: white; color: var(--muted); padding: 3px 6px; font-size: 8px; }
.prototype-mark { color: var(--muted); font-size: 9px; white-space: nowrap; }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.profile { display: flex; gap: 10px; align-items: center; margin-left: 8px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: white; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.profile span { font-size: 11px; line-height: 1.25; }
.profile small { display: block; color: var(--muted); }
.content { padding: 28px 30px 56px; max-width: 1560px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 24px; }
.page-head h1 { margin: 2px 0 4px; font-size: 28px; line-height: 1.15; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }
.page-actions { display: flex; gap: 8px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { min-height: 112px; padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.kpi .label { color: var(--muted); font-size: 11px; }
.kpi strong { display: block; margin: 10px 0 5px; font-size: 26px; }
.kpi small { color: var(--muted); font-size: 10px; }
.kpi .up { color: #14816e; }
.zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.zone { min-height: 210px; padding: 22px; border: 1px solid var(--line); background: white; position: relative; overflow: hidden; }
.zone::before { content: ""; position: absolute; left: 0; top: 0; width: 5px; height: 100%; background: var(--accent, var(--cyan)); }
.zone-icon { width: 40px; height: 40px; background: color-mix(in srgb, var(--accent, var(--cyan)) 14%, white); color: var(--navy); display: grid; place-items: center; }
.zone-icon svg { width: 19px; }
.zone h2 { margin: 18px 0 8px; font-size: 17px; }
.zone p { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.zone button { border: 0; padding: 0; background: transparent; color: var(--navy); font-size: 11px; font-weight: 800; display: inline-flex; gap: 7px; align-items: center; }
.zone button svg { width: 14px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 12px; }
.grid-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.panel { border: 1px solid var(--line); background: white; }
.panel-head { min-height: 54px; padding: 0 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2 { margin: 0; font-size: 14px; }
.panel-body { padding: 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { padding: 12px 14px; background: #f7f9f8; color: var(--muted); text-align: left; font-weight: 700; white-space: nowrap; }
td { padding: 13px 14px; border-top: 1px solid #edf0f1; vertical-align: middle; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #f6faf9; }
.entity { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.entity-mark { width: 30px; height: 30px; flex: 0 0 auto; background: #eaf4f5; color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 10px; }
.entity b { display: block; font-size: 11px; }
.entity small { color: var(--muted); }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 3px; background: #eef2f3; color: #50616a; font-size: 9px; font-weight: 800; white-space: nowrap; }
.badge.good { background: #e5f5ee; color: #18745f; }
.badge.warn { background: #fbf1d9; color: #8b6211; }
.badge.alert { background: #fae8e8; color: #9f3e3e; }
.badge.info { background: #e5f4f7; color: #16717a; }
.progress { height: 5px; background: #e9edef; overflow: hidden; margin-top: 7px; }
.progress span { display: block; height: 100%; background: var(--cyan); }
.timeline { display: flex; flex-direction: column; }
.event { display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 13px 0; border-bottom: 1px solid #edf0f1; }
.event:last-child { border-bottom: 0; }
.event-dot { width: 28px; height: 28px; background: #e8f4f5; color: var(--navy); display: grid; place-items: center; }
.event-dot svg { width: 14px; }
.event b { display: block; font-size: 11px; }
.event p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filter { min-height: 36px; border: 1px solid var(--line); border-radius: 3px; background: white; padding: 0 12px; color: #53646d; font-size: 10px; }
.filter.active { border-color: var(--navy); color: var(--navy); font-weight: 800; }
.builder { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: 12px; }
.case-list { padding: 8px; }
.case { width: 100%; border: 0; border-bottom: 1px solid #edf0f1; background: white; padding: 14px 12px; text-align: left; }
.case:hover, .case.active { background: #eef7f7; }
.case b { display: block; font-size: 11px; }
.case span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.workbench { padding: 0; }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.step { padding: 15px 12px; border-right: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 700; }
.step:last-child { border-right: 0; }
.step strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 11px; }
.step.done { background: #f1f8f5; }
.step.active { background: #e7f5f7; }
.workbench-body { padding: 20px; }
.fact-title { display: flex; gap: 14px; align-items: flex-start; }
.fact-title .event-dot { width: 38px; height: 38px; }
.fact-title h2 { margin: 0 0 5px; font-size: 17px; }
.fact-title p { margin: 0; color: var(--muted); font-size: 11px; }
.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.source { border: 1px solid var(--line); padding: 12px; min-height: 84px; }
.source b { display: block; margin: 7px 0 3px; font-size: 10px; }
.source small { color: var(--muted); font-size: 9px; }
.source svg { width: 15px; color: var(--cyan); }
.draft { border-left: 4px solid var(--cyan); background: #f4f9f9; padding: 17px; }
.draft h3 { margin: 0 0 8px; font-size: 12px; }
.draft p { margin: 0; font-size: 11px; line-height: 1.65; }
.decision { margin-top: 16px; display: flex; gap: 8px; justify-content: flex-end; }
.chart { min-height: 230px; display: flex; align-items: flex-end; gap: 12px; padding: 18px 8px 6px; }
.bar { flex: 1; min-width: 18px; height: var(--h); background: var(--cyan); position: relative; }
.bar:nth-child(3n+2) { background: var(--navy-2); }
.bar:nth-child(3n) { background: var(--lime); }
.bar span { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 8px; }
.donut-row { display: flex; gap: 24px; align-items: center; }
.donut { width: 150px; height: 150px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--cyan) 0 58%, var(--navy) 58% 79%, var(--lime) 79% 92%, #dfe5e7 92%); position: relative; }
.donut::after { content: "92%"; position: absolute; inset: 28px; border-radius: 50%; background: white; display: grid; place-items: center; font-size: 20px; font-weight: 800; }
.legend { display: grid; gap: 9px; font-size: 10px; }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--c); }
.tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; background: white; }
.tabs button { min-width: max-content; height: 47px; border: 0; border-right: 1px solid var(--line); background: white; padding: 0 16px; color: var(--muted); font-size: 10px; font-weight: 700; }
.tabs button.active { color: var(--navy); box-shadow: inset 0 -3px var(--cyan); }
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.setting { min-height: 155px; border: 1px solid var(--line); padding: 16px; background: white; }
.setting svg { width: 19px; color: var(--cyan); }
.setting h3 { margin: 14px 0 7px; font-size: 12px; }
.setting p { min-height: 46px; margin: 0 0 14px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.switch { width: 36px; height: 20px; border-radius: 12px; background: #cad3d7; padding: 2px; display: inline-flex; justify-content: flex-start; }
.switch.on { justify-content: flex-end; background: var(--cyan); }
.switch::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: white; }
.drawer { position: fixed; z-index: 40; top: 0; right: 0; width: min(540px, 94vw); height: 100vh; background: white; transform: translateX(105%); transition: transform .24s ease; box-shadow: -20px 0 50px rgba(13,37,49,.18); display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-head { min-height: 72px; padding: 0 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 { margin: 0; font-size: 17px; }
.drawer-body { padding: 22px; overflow: auto; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail { border-bottom: 1px solid var(--line); padding: 0 0 12px; }
.detail span { display: block; color: var(--muted); font-size: 9px; }
.detail b { display: block; margin-top: 5px; font-size: 11px; }
.scrim { position: fixed; z-index: 35; inset: 0; background: rgba(4,20,29,.44); opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.show { opacity: 1; pointer-events: auto; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; max-width: 340px; padding: 14px 17px; background: var(--navy); color: white; box-shadow: var(--shadow); transform: translateY(80px); opacity: 0; transition: .22s; font-size: 11px; }
.toast.show { transform: translateY(0); opacity: 1; }
.empty { padding: 54px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 30px; margin-bottom: 10px; }
.sidebar-tools { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-tools .nav-item { width: 100%; height: 40px; border: 0; border-radius: 4px; background: transparent; color: #aabcc5; display: flex; align-items: center; gap: 11px; padding: 0 11px; font-size: 11px; }
.sidebar-tools .nav-item:hover, .sidebar-tools .nav-item.active { background: rgba(255,255,255,.08); color: white; }
.sidebar-tools svg { width: 16px; }
.sidebar-status { margin-top: 8px; }
.task-button { position: relative; flex: 0 0 auto; }
.task-button em { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: white; display: grid; place-items: center; font-size: 8px; font-style: normal; }
.negative { color: var(--red) !important; }
.home-focus { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .45fr); gap: 12px; margin-bottom: 12px; }
.focus-panel { padding-bottom: 18px; }
.focus-panel .panel-head { min-height: 70px; }
.focus-panel .panel-head .eyebrow { margin-bottom: 5px; }
.focus-panel .panel-head h2 { font-size: 18px; }
.focus-meta { padding: 14px 18px 4px; display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 10px; }
.focus-meta span { display: inline-flex; align-items: center; gap: 6px; }
.focus-meta svg { width: 14px; color: var(--cyan); }
.focus-numbers { margin: 12px 18px 0; border: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.focus-numbers div { min-height: 76px; padding: 14px; border-right: 1px solid var(--line); }
.focus-numbers div:last-child { border-right: 0; }
.focus-numbers span, .cost-summary span { display: block; color: var(--muted); font-size: 9px; }
.focus-numbers strong { display: block; margin-top: 8px; font-size: 17px; }
.focus-action { margin: 14px 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.focus-action p { margin: 0; color: var(--muted); font-size: 10px; }
.attention-panel { min-width: 0; }
.task-list { padding: 5px 12px; }
.task-item { width: 100%; min-height: 62px; border: 0; border-bottom: 1px solid #edf0f1; background: white; display: grid; grid-template-columns: 6px 1fr auto; gap: 10px; align-items: center; padding: 9px 4px; text-align: left; }
.task-item:hover { background: #f6faf9; }
.task-priority { width: 4px; height: 30px; background: var(--amber); }
.task-priority.high { background: var(--red); }
.task-item b, .task-item small { display: block; }
.task-item b { font-size: 10px; line-height: 1.35; }
.task-item small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.task-item em { color: var(--muted); font-size: 8px; font-style: normal; white-space: nowrap; }
.compact-grid { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); }
.base-links { padding: 9px 12px; }
.base-links button { width: 100%; min-height: 64px; border: 0; border-bottom: 1px solid #edf0f1; background: white; padding: 8px; display: grid; grid-template-columns: 38px 1fr 18px; gap: 10px; align-items: center; text-align: left; color: var(--ink); }
.base-links button:hover { background: #f6faf9; }
.base-links button > span { width: 36px; height: 36px; background: #eaf4f5; color: var(--navy); display: grid; place-items: center; }
.base-links svg { width: 16px; }
.base-links b { font-size: 11px; }
.base-links small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 500; }
.pricing-shell { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 12px; align-items: start; }
.pricing-queue { position: sticky; top: 84px; max-height: calc(100vh - 112px); overflow: hidden; }
.pricing-queue .panel-head small { color: var(--muted); font-size: 8px; }
.queue-filters { padding: 10px 10px 2px; display: flex; gap: 5px; overflow-x: auto; }
.queue-filters .filter { min-height: 30px; padding: 0 9px; font-size: 8px; }
.pricing-list { max-height: calc(100vh - 220px); overflow-y: auto; padding: 8px; }
.pricing-case { width: 100%; min-height: 132px; border: 1px solid transparent; border-bottom-color: var(--line); background: white; padding: 13px 11px; text-align: left; }
.pricing-case:hover { background: #f7faf9; }
.pricing-case.active { border-color: var(--cyan); background: #eff8f8; }
.case-top, .case-value { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.case-top > b { color: var(--cyan); font-size: 9px; }
.pricing-case > strong { display: block; margin: 10px 0 5px; font-size: 11px; line-height: 1.35; }
.pricing-case > small { display: block; min-height: 27px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.case-value { margin-top: 10px; }
.case-value b { font-size: 12px; }
.case-value em { font-size: 9px; font-style: normal; }
.pricing-workbench { min-width: 0; }
.pricing-title { min-height: 94px; padding: 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.pricing-title h2 { margin: 0 0 6px; font-size: 20px; }
.pricing-title p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.workflow { display: grid; grid-template-columns: repeat(7, minmax(78px, 1fr)); border-bottom: 1px solid var(--line); overflow-x: auto; }
.workflow-step { min-height: 70px; padding: 11px 8px; border-right: 1px solid var(--line); color: var(--muted); text-align: center; }
.workflow-step:last-child { border-right: 0; }
.workflow-step span { width: 24px; height: 24px; margin: 0 auto 6px; border: 1px solid #cbd5d9; border-radius: 50%; display: grid; place-items: center; font-size: 8px; font-weight: 800; }
.workflow-step span svg { width: 12px; }
.workflow-step b { display: block; font-size: 8px; }
.workflow-step.done { background: #f1f8f5; color: #18745f; }
.workflow-step.done span { border-color: #7ebba9; }
.workflow-step.active { background: #e8f6f7; color: var(--navy); }
.workflow-step.active span { border-color: var(--cyan); background: var(--cyan); color: var(--navy); }
.workflow.compact { margin: 14px 18px 0; border: 1px solid var(--line); }
.workflow.compact .workflow-step { min-height: 58px; padding: 8px 5px; }
.workflow.compact .workflow-step span { width: 20px; height: 20px; margin-bottom: 4px; }
.cost-summary { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.cost-summary > div { min-height: 92px; padding: 18px; border-right: 1px solid var(--line); }
.cost-summary > div:last-child { border-right: 0; }
.cost-summary strong { display: block; margin-top: 9px; font-size: 18px; }
.pricing-tabs { min-height: 48px; padding: 0 18px; border-bottom: 1px solid var(--line); display: flex; gap: 20px; overflow-x: auto; }
.pricing-tabs button { min-width: max-content; border: 0; background: white; color: var(--muted); font-size: 9px; font-weight: 800; }
.pricing-tabs button.active { color: var(--navy); box-shadow: inset 0 -3px var(--cyan); }
.pricing-toolbar { min-height: 58px; padding: 9px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pricing-toolbar b, .pricing-toolbar span { display: block; }
.pricing-toolbar b { font-size: 11px; }
.pricing-toolbar span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.pricing-toolbar > div:last-child { display: flex; gap: 6px; }
.cost-table .entity { min-width: 250px; }
.cost-table th, .cost-table td { padding: 11px 10px; }
.workbench-footer { min-height: 78px; padding: 14px 18px; border-top: 1px solid var(--line); background: #f7f9f8; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.workbench-footer span, .workbench-footer b { display: block; }
.workbench-footer span { color: var(--muted); font-size: 8px; }
.workbench-footer b { margin-top: 4px; font-size: 11px; }
.pricing-sources { padding: 0 18px; }
.empty-state { min-height: 210px; padding: 46px 20px; color: var(--muted); text-align: center; }
.empty-state svg { width: 26px; color: var(--cyan); }
.empty-state h3 { margin: 12px 0 7px; color: var(--ink); font-size: 13px; }
.empty-state p { margin: 0; font-size: 10px; }
.decision-history { padding: 8px 18px 18px; }
.comparison-chart { padding: 24px 20px; }
.comparison-row { display: grid; grid-template-columns: 62px 1fr 42px; gap: 12px; align-items: center; margin-bottom: 18px; font-size: 9px; }
.comparison-row > div { height: 22px; position: relative; background: #edf1f2; }
.comparison-row i, .comparison-row b { position: absolute; left: 0; height: 7px; display: block; }
.comparison-row i { top: 3px; background: #9bb0ba; }
.comparison-row b { bottom: 3px; background: var(--cyan); }
.chart-key { display: flex; gap: 18px; margin-top: 22px; color: var(--muted); font-size: 9px; }
.chart-key span::before { content: ""; display: inline-block; width: 12px; height: 6px; margin-right: 6px; vertical-align: middle; }
.chart-key .declared::before { background: #9bb0ba; }
.chart-key .verified::before { background: var(--cyan); }
.analytics-list { padding: 8px 14px; }
.analytics-list button { width: 100%; min-height: 58px; border: 0; border-bottom: 1px solid var(--line); background: white; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; }
.analytics-list button:hover { background: #f6faf9; }
.analytics-list b, .analytics-list small { display: block; }
.analytics-list b { font-size: 10px; }
.analytics-list small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.import-open { overflow: hidden; }
.import-modal { position: fixed; z-index: 75; inset: 24px; max-width: 1180px; margin: auto; background: white; box-shadow: 0 24px 80px rgba(4,20,29,.28); opacity: 0; pointer-events: none; transform: translateY(18px); transition: .2s ease; display: flex; flex-direction: column; }
.import-modal.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.import-scrim { position: fixed; z-index: 70; inset: 0; background: rgba(4,20,29,.62); opacity: 0; pointer-events: none; transition: opacity .2s; }
.import-scrim.show { opacity: 1; pointer-events: auto; }
.import-head { min-height: 72px; padding: 0 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.import-head .eyebrow { margin-bottom: 4px; }
.import-head h2 { margin: 0; font-size: 20px; }
.import-body { min-height: 0; overflow: auto; padding: 0 24px 28px; }
.import-steps { height: 60px; margin: 0 -24px 24px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4,1fr); }
.import-steps span { border-right: 1px solid var(--line); color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 9px; font-weight: 800; }
.import-steps span:last-child { border-right: 0; }
.import-steps b { width: 22px; height: 22px; border: 1px solid #cbd5d9; border-radius: 50%; display: grid; place-items: center; font-size: 8px; }
.import-steps .active { background: #e8f6f7; color: var(--navy); }
.import-steps .active b { background: var(--cyan); border-color: var(--cyan); }
.import-steps .done { background: #f1f8f5; color: #18745f; }
.import-steps .done b { border-color: #7ebba9; }
.import-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.import-intro h3 { margin: 0 0 6px; font-size: 18px; }
.import-intro p { margin: 0; color: var(--muted); font-size: 11px; }
.dropzone { min-height: 235px; border: 1px dashed #9cb0b9; background: #f8faf9; padding: 34px 20px; display: flex; align-items: center; flex-direction: column; text-align: center; outline: none; }
.dropzone:hover, .dropzone:focus, .dropzone.dragging { border-color: var(--cyan); background: #eef8f8; }
.drop-icon { width: 52px; height: 52px; margin-bottom: 16px; background: #e2f3f4; color: var(--navy); display: grid; place-items: center; }
.drop-icon svg { width: 24px; }
.dropzone h3 { margin: 0 0 5px; font-size: 15px; }
.dropzone p { margin: 0 0 18px; color: var(--muted); font-size: 10px; }
.format-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin-top: 14px; }
.format-grid article { min-height: 124px; border: 1px solid var(--line); padding: 14px; display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.format-grid article > svg { width: 19px; color: var(--cyan); }
.format-grid b, .format-grid strong { display: block; }
.format-grid b { font-size: 10px; }
.format-grid strong { margin-top: 5px; color: var(--navy); font-size: 9px; }
.format-grid p { margin: 7px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.import-footnote { margin: 12px 0 0; color: var(--muted); font-size: 9px; }
.import-loading { min-height: 430px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.import-loading > span { width: 54px; height: 54px; background: #e8f6f7; color: var(--cyan); display: grid; place-items: center; }
.import-loading > span svg { width: 25px; animation: spin 1s linear infinite; }
.import-loading h3 { margin: 18px 0 6px; font-size: 16px; }
.import-loading p { margin: 0; color: var(--muted); font-size: 10px; }
.loading-line { width: min(360px,80%); height: 4px; margin-top: 24px; background: #e7ecee; overflow: hidden; }
.loading-line i { display: block; width: 42%; height: 100%; background: var(--cyan); animation: loading 1.2s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loading { from { transform: translateX(-110%); } to { transform: translateX(280%); } }
.import-file { min-height: 76px; border: 1px solid var(--line); padding: 12px 14px; display: grid; grid-template-columns: 48px 1fr auto; gap: 13px; align-items: center; }
.import-file .eyebrow { margin-bottom: 4px; }
.import-file h3 { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.file-format { width: 46px; height: 46px; background: var(--navy); color: white; display: grid; place-items: center; font-size: 9px; font-weight: 800; }
.import-stats { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-top: 0; margin-bottom: 12px; }
.import-stats div { min-height: 70px; border-right: 1px solid var(--line); padding: 13px; }
.import-stats div:last-child { border-right: 0; }
.import-stats span, .import-stats strong { display: block; }
.import-stats span { color: var(--muted); font-size: 8px; }
.import-stats strong { margin-top: 8px; font-size: 15px; }
.import-alert { min-height: 54px; margin: 9px 0; padding: 10px 13px; border-left: 4px solid var(--amber); background: #fbf6ea; display: flex; gap: 10px; align-items: center; }
.import-alert.error { border-color: var(--red); background: #fbeeee; }
.import-alert svg { width: 17px; flex: 0 0 auto; }
.import-alert b, .import-alert p { margin: 0; font-size: 9px; line-height: 1.45; }
.import-alert b { display: block; margin-bottom: 3px; }
.import-context { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.import-context label { color: var(--muted); font-size: 8px; font-weight: 700; }
.import-context select, .import-context input { width: 100%; height: 42px; margin-top: 6px; border: 1px solid var(--line); border-radius: 3px; background: white; padding: 0 11px; color: var(--ink); font-size: 10px; }
.import-context input:disabled { background: #f5f7f6; color: var(--muted); }
.import-preview, .text-preview { margin-top: 12px; border: 1px solid var(--line); }
.import-preview .panel-head h3 { margin: 0; font-size: 12px; }
.import-preview td:first-child { min-width: 280px; max-width: 440px; }
.text-preview { padding: 16px; }
.text-preview h3 { margin: 0 0 9px; font-size: 12px; }
.text-preview p { margin: 0; max-height: 150px; overflow: auto; white-space: pre-wrap; color: var(--muted); font-size: 9px; line-height: 1.55; }
.entity-cloud { padding: 14px; display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.entity-cloud span { min-height: 45px; border: 1px solid var(--line); padding: 9px; display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9px; }
.entity-cloud b { color: var(--ink); font-size: 9px; }
.import-actions { position: sticky; bottom: -28px; margin: 18px -24px -28px; padding: 14px 24px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); display: flex; justify-content: flex-end; gap: 8px; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.version-button { min-height: 34px; margin-left: auto; border: 1px solid var(--line); border-radius: 3px; background: white; padding: 0 10px; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 800; }
.version-button:hover { border-color: var(--cyan); }
.version-button svg { width: 14px; }
.signal-panel { margin-top: 12px; }
.panel-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 500; }
.signal-list { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); }
.signal-item { min-width: 0; min-height: 116px; border: 0; border-right: 1px solid var(--line); background: white; padding: 15px; display: grid; grid-template-columns: 28px 1fr; grid-template-rows: 1fr auto; gap: 9px; text-align: left; color: var(--ink); }
.signal-item:last-child { border-right: 0; }
.signal-item:hover { background: #f6faf9; }
.signal-item > span { width: 28px; height: 28px; background: #e7f4f5; color: var(--navy); display: grid; place-items: center; }
.signal-item > span svg { width: 14px; }
.signal-item > b { min-width: 0; font-size: 10px; line-height: 1.4; }
.signal-item small { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 500; }
.signal-item > em { grid-column: 1 / -1; font-style: normal; }
.signal-item > svg { position: absolute; opacity: 0; }
.task-shell { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 12px; align-items: start; }
.assignment-queue { position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow: hidden; }
.assignment-list { max-height: calc(100vh - 205px); overflow-y: auto; padding: 8px; }
.assignment-row { width: 100%; min-height: 116px; border: 1px solid transparent; border-bottom-color: var(--line); background: white; padding: 12px 10px; display: grid; grid-template-columns: 5px 1fr auto; gap: 10px; align-items: start; text-align: left; }
.assignment-row:hover { background: #f7faf9; }
.assignment-row.active { border-color: var(--cyan); background: #eff8f8; }
.assignment-row > span:nth-child(2) { min-width: 0; }
.assignment-row b, .assignment-row small, .assignment-row em { display: block; }
.assignment-row b { font-size: 10px; line-height: 1.4; }
.assignment-row small { margin-top: 6px; color: var(--muted); font-size: 8px; }
.assignment-row em { margin-top: 9px; color: var(--navy); font-size: 8px; font-style: normal; font-weight: 700; }
.assignment-row .badge { align-self: start; }
.task-filters { padding-bottom: 10px; }
.task-filters .filter { display: inline-flex; align-items: center; gap: 5px; }
.task-filters b { font-size: 8px; }
.assignment-workbench { min-width: 0; overflow: hidden; }
.assignment-title { min-height: 92px; padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.assignment-title h2 { margin: 4px 0 6px; font-size: 19px; line-height: 1.25; }
.assignment-title p { margin: 0; color: var(--muted); font-size: 10px; }
.assignment-links { min-height: 44px; padding: 0 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 20px; overflow-x: auto; color: var(--muted); font-size: 9px; }
.assignment-links span { min-width: max-content; display: inline-flex; align-items: center; gap: 6px; }
.assignment-links svg { width: 14px; color: var(--cyan); }
.task-progress { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--line); }
.task-progress div { min-height: 68px; border-right: 1px solid var(--line); padding: 13px; display: flex; align-items: center; gap: 9px; color: var(--muted); }
.task-progress div:last-child { border-right: 0; }
.task-progress b { width: 24px; height: 24px; border: 1px solid #cbd5d9; border-radius: 50%; display: grid; place-items: center; font-size: 8px; }
.task-progress span { font-size: 9px; font-weight: 700; }
.task-progress .done { background: #f1f8f5; color: #18745f; }
.task-progress .done b { border-color: #7ebba9; }
.task-progress .active { background: #e8f6f7; color: var(--navy); }
.task-progress .active b { background: var(--cyan); border-color: var(--cyan); }
.assignment-meta { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--line); }
.assignment-meta div { min-height: 76px; border-right: 1px solid var(--line); padding: 14px 16px; }
.assignment-meta div:last-child { border-right: 0; }
.assignment-meta span, .assignment-meta b { display: block; }
.assignment-meta span { color: var(--muted); font-size: 8px; }
.assignment-meta b { margin-top: 8px; font-size: 10px; }
.task-sources { padding: 0 18px; }
.task-sources button { border: 1px solid var(--line); background: white; padding: 12px; min-height: 84px; text-align: left; color: var(--ink); }
.task-sources button:hover { border-color: var(--cyan); }
.task-sources b, .task-sources small { display: block; }
.task-sources b { margin: 7px 0 3px; font-size: 10px; }
.task-sources small { color: var(--muted); font-size: 8px; }
.task-sources svg { width: 15px; color: var(--cyan); }
.assignment-history { margin: 4px 18px 18px; border-top: 1px solid var(--line); padding-top: 15px; }
.assignment-history h3 { margin: 0 0 8px; font-size: 11px; }
.assignment-history > div { min-height: 42px; display: grid; grid-template-columns: 10px 1fr; gap: 9px; align-items: start; }
.assignment-history > div > span { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--cyan); }
.assignment-history p { margin: 0; }
.assignment-history b, .assignment-history small { display: block; }
.assignment-history b { font-size: 9px; }
.assignment-history small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.task-actions { display: flex; gap: 7px; }
.protocol-panel { margin-top: 12px; }
.protocol-panel tbody tr { cursor: pointer; }
.protocol-panel tbody tr:hover { background: #f6faf9; }
.candidate-list { padding: 7px 14px; }
.candidate-list label { min-height: 64px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 18px 1fr; gap: 11px; align-items: center; cursor: pointer; }
.candidate-list label:last-child { border-bottom: 0; }
.candidate-list input { accent-color: var(--cyan); }
.candidate-list b, .candidate-list small { display: block; }
.candidate-list b { font-size: 10px; line-height: 1.4; }
.candidate-list small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.protocol-formats { grid-template-columns: repeat(3,minmax(0,1fr)); }
.drawer-section { margin-top: 22px; }
.drawer-section h3 { margin: 0 0 10px; font-size: 12px; }
.drawer-task { width: 100%; min-height: 74px; border: 0; border-bottom: 1px solid var(--line); background: white; padding: 10px 0; display: grid; grid-template-columns: 1fr auto; gap: 8px; text-align: left; }
.drawer-task:hover { background: #f6faf9; }
.drawer-task b, .drawer-task small { display: block; }
.drawer-task b { font-size: 10px; }
.drawer-task small { margin-top: 5px; color: var(--muted); font-size: 8px; }
.drawer-task .badge { grid-column: 2; grid-row: 1 / 3; }
.release-list { display: grid; gap: 8px; }
.release-list a { min-height: 96px; border: 1px solid var(--line); padding: 14px; color: var(--ink); text-decoration: none; display: block; }
.release-list a:hover, .release-list a.current { border-color: var(--cyan); background: #f2f9f9; }
.release-list span, .release-list b, .release-list small { display: block; }
.release-list span { color: var(--muted); font-size: 8px; text-transform: uppercase; font-weight: 800; }
.release-list b { margin-top: 8px; font-size: 11px; }
.release-list small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.nav-ai { margin-left: auto; min-width: 24px; height: 18px; padding: 0 5px; border-radius: 3px; background: var(--lime); color: #213109; display: grid; place-items: center; font-size: 7px; font-weight: 900; }
.nav button.active .nav-ai { background: var(--navy); color: white; }
.petrovich-provider { min-height: 28px; padding: 0 10px; border: 1px solid var(--line); background: white; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.petrovich-provider i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(213,150,32,.12); }
.petrovich-provider.ready { color: #18745f; border-color: #bfe1d5; background: #f1f8f5; }
.petrovich-provider.ready i { background: #2a9a7c; box-shadow: 0 0 0 3px rgba(42,154,124,.12); }
.petrovich-shell { min-height: min(720px, calc(100vh - 185px)); display: grid; grid-template-columns: 220px minmax(440px, 1fr) 280px; gap: 12px; align-items: stretch; }
.petrovich-history, .petrovich-evidence { min-height: 0; overflow: hidden; }
.petrovich-thread-list { padding: 8px; display: grid; gap: 5px; }
.petrovich-thread { width: 100%; min-height: 63px; padding: 11px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--ink); text-align: left; }
.petrovich-thread:hover { background: #f5f8f7; }
.petrovich-thread.active { border-color: #c8e7e9; background: #edf8f8; }
.petrovich-thread b, .petrovich-thread small { display: block; }
.petrovich-thread b { font-size: 10px; line-height: 1.35; }
.petrovich-thread small { margin-top: 6px; color: var(--muted); font-size: 8px; }
.petrovich-chat { min-width: 0; display: grid; grid-template-rows: auto minmax(300px, 1fr) auto auto; overflow: hidden; }
.petrovich-chat-head { min-height: 66px; padding: 10px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.petrovich-chat-head > div { display: flex; align-items: center; gap: 10px; }
.petrovich-chat-head b, .petrovich-chat-head small { display: block; }
.petrovich-chat-head b { font-size: 12px; }
.petrovich-chat-head small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.petrovich-avatar, .petrovich-message-avatar { flex: 0 0 auto; background: var(--navy); color: white; display: grid; place-items: center; font-weight: 800; }
.petrovich-avatar { width: 36px; height: 36px; font-size: 12px; }
.petrovich-chat-head label { color: var(--muted); font-size: 8px; font-weight: 700; }
.petrovich-chat-head select { display: block; min-width: 210px; height: 32px; margin-top: 4px; padding: 0 28px 0 9px; border: 1px solid var(--line); border-radius: 3px; background: white; color: var(--ink); font-size: 9px; }
.petrovich-messages { min-height: 0; padding: 20px; overflow-y: auto; background: #f8faf9; }
.petrovich-message { max-width: 88%; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.petrovich-message.user { margin-left: auto; flex-direction: row-reverse; }
.petrovich-message-avatar { width: 28px; height: 28px; font-size: 8px; }
.petrovich-message.user .petrovich-message-avatar { background: var(--cyan); color: #062a37; }
.petrovich-message > div { min-width: 0; }
.petrovich-message > div > b { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; }
.petrovich-message.user > div > b { text-align: right; }
.petrovich-message p { margin: 0; padding: 12px 14px; border: 1px solid var(--line); background: white; font-size: 11px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.petrovich-message.assistant p { border-left: 3px solid var(--cyan); }
.petrovich-message.user p { border-color: #c8e7e9; background: #edf8f8; }
.petrovich-thinking { height: 18px; display: flex; gap: 3px; align-items: center; }
.petrovich-thinking i { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); animation: petrovich-pulse 1s infinite alternate; }
.petrovich-thinking i:nth-child(2) { animation-delay: .2s; }
.petrovich-thinking i:nth-child(3) { animation-delay: .4s; }
@keyframes petrovich-pulse { to { opacity: .25; transform: translateY(-2px); } }
.petrovich-suggestions { padding: 0 16px 12px; background: #f8faf9; display: flex; gap: 6px; overflow-x: auto; }
.petrovich-suggestions button { flex: 0 0 auto; max-width: 240px; min-height: 36px; padding: 7px 10px; border: 1px solid #cfe2e4; border-radius: 3px; background: white; color: var(--navy); text-align: left; font-size: 8px; line-height: 1.35; }
.petrovich-suggestions button:hover { border-color: var(--cyan); }
.petrovich-compose { min-height: 68px; padding: 10px 12px; border-top: 1px solid var(--line); background: white; display: grid; grid-template-columns: 42px 1fr 42px; gap: 8px; align-items: end; }
.petrovich-compose textarea { width: 100%; min-height: 42px; max-height: 128px; resize: vertical; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; outline: none; font: inherit; font-size: 11px; line-height: 1.45; }
.petrovich-compose textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(28,183,196,.1); }
.petrovich-source-list { padding: 8px; display: grid; gap: 6px; }
.petrovich-source { width: 100%; min-height: 76px; padding: 11px; border: 1px solid var(--line); border-radius: 3px; background: white; color: var(--ink); text-align: left; }
.petrovich-source:hover { border-color: var(--cyan); }
.petrovich-source span, .petrovich-source b, .petrovich-source small { display: block; }
.petrovich-source span { color: var(--cyan); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.petrovich-source b { margin: 6px 0 4px; font-size: 10px; line-height: 1.35; }
.petrovich-source small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.petrovich-empty { min-height: 180px; padding: 28px 18px; color: var(--muted); display: grid; place-items: center; align-content: center; text-align: center; }
.petrovich-empty svg { width: 25px; color: #9eb0b9; }
.petrovich-empty p { margin: 12px 0 0; font-size: 9px; line-height: 1.55; }
.petrovich-actions { margin: 6px 8px 8px; border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 4px; }
.petrovich-actions button { width: 100%; min-height: 55px; padding: 9px; border: 0; border-radius: 3px; background: transparent; color: var(--ink); display: grid; grid-template-columns: 24px 1fr; gap: 7px; align-items: center; text-align: left; }
.petrovich-actions button:hover { background: #f5f8f7; }
.petrovich-actions svg { width: 16px; color: var(--cyan); }
.petrovich-actions b, .petrovich-actions small { display: block; }
.petrovich-actions b { font-size: 9px; }
.petrovich-actions small { margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.3; }
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .zones { grid-template-columns: 1fr; }
  .zone { min-height: 170px; }
  .grid-2, .builder { grid-template-columns: 1fr; }
  .home-focus, .compact-grid { grid-template-columns: 1fr; }
  .pricing-shell { grid-template-columns: 260px minmax(0, 1fr); }
  .settings-grid { grid-template-columns: repeat(2, 1fr); }
  .format-grid { grid-template-columns: repeat(2,1fr); }
  .signal-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .signal-item { border-bottom: 1px solid var(--line); }
  .task-shell { grid-template-columns: 290px minmax(0,1fr); }
  .petrovich-shell { grid-template-columns: 190px minmax(420px,1fr); }
  .petrovich-evidence { grid-column: 1 / -1; }
  .petrovich-source-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .petrovich-actions { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .access { display: block; }
  .access-scene { min-height: 52vh; padding: 28px 22px; }
  .access-copy h1 { font-size: 48px; }
  .access-copy > p:last-child { font-size: 13px; }
  .access-form { min-height: 48vh; padding: 28px 22px; }
  .sidebar { z-index: 45; transform: translateX(-105%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .shell { margin-left: 0; }
  .topbar { height: 60px; padding: 0 14px; gap: 8px; }
  .menu-button { display: inline-flex; }
  .search { width: auto; flex: 1; }
  .search kbd { display: none; }
  .top-actions .icon, .profile span { display: none; }
  .content { padding: 20px 14px 42px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions .button { flex: 1; }
  .kpis, .grid-even, .settings-grid { grid-template-columns: 1fr; }
  .kpi { min-height: 96px; }
  .source-grid { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: repeat(2, 1fr); }
  .step { border-bottom: 1px solid var(--line); }
  .decision { flex-direction: column; }
  .decision .button { width: 100%; }
  .donut-row { flex-direction: column; align-items: flex-start; }
  .detail-grid { grid-template-columns: 1fr; }
  .drawer { width: 100vw; }
  .prototype-mark { display: none; }
  .version-button span { display: none; }
  .version-button { width: 38px; padding: 0; justify-content: center; }
  .pricing-shell { grid-template-columns: 1fr; }
  .pricing-queue { position: static; max-height: none; }
  .pricing-list { max-height: none; display: grid; grid-template-columns: repeat(2, minmax(250px, 1fr)); gap: 6px; overflow-x: auto; }
  .workflow { grid-template-columns: repeat(7, 92px); }
  .workflow.compact { margin: 12px 14px 0; }
  .focus-numbers, .cost-summary { grid-template-columns: repeat(2, 1fr); }
  .focus-numbers div:nth-child(2), .cost-summary > div:nth-child(2) { border-right: 0; }
  .focus-numbers div:nth-child(-n+2), .cost-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .focus-action, .workbench-footer { align-items: stretch; flex-direction: column; }
  .focus-action .button, .workbench-footer .button { width: 100%; }
  .pricing-title { flex-direction: column; }
  .pricing-toolbar { align-items: flex-start; flex-direction: column; }
  .pricing-list { grid-template-columns: 280px 280px 280px 280px; }
  .import-modal { inset: 0; max-width: none; }
  .import-head { min-height: 64px; padding: 0 14px; }
  .import-body { padding: 0 14px 24px; }
  .import-steps { margin: 0 -14px 18px; }
  .import-steps span { font-size: 0; }
  .import-steps b { font-size: 8px; }
  .format-grid { grid-template-columns: 1fr; }
  .format-grid article { min-height: 96px; }
  .import-stats, .import-context { grid-template-columns: 1fr; }
  .import-stats div { border-right: 0; border-bottom: 1px solid var(--line); }
  .import-stats div:last-child { border-bottom: 0; }
  .import-file { grid-template-columns: 46px 1fr; }
  .import-file > .badge { grid-column: 1 / -1; justify-self: start; }
  .entity-cloud { grid-template-columns: 1fr; }
  .import-actions { bottom: -24px; margin: 18px -14px -24px; padding: 12px 14px; }
  .import-actions .button { flex: 1; }
  .signal-list { grid-template-columns: 1fr; }
  .signal-item { min-height: 88px; border-right: 0; }
  .task-shell { grid-template-columns: 1fr; }
  .assignment-queue { position: static; max-height: none; }
  .assignment-list { max-height: none; display: grid; grid-template-columns: 280px 280px 280px; gap: 6px; overflow-x: auto; }
  .assignment-title { flex-direction: column; }
  .assignment-meta { grid-template-columns: repeat(2,1fr); }
  .assignment-meta div:nth-child(2) { border-right: 0; }
  .assignment-meta div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .task-progress { grid-template-columns: repeat(4,92px); overflow-x: auto; }
  .task-actions { flex-direction: column; }
  .task-actions .button { width: 100%; }
  .protocol-formats { grid-template-columns: 1fr; }
  .petrovich-shell { min-height: auto; grid-template-columns: 1fr; }
  .petrovich-history { display: none; }
  .petrovich-chat { min-height: calc(100vh - 180px); grid-template-rows: auto minmax(320px,1fr) auto auto; }
  .petrovich-chat-head { align-items: flex-start; flex-direction: column; }
  .petrovich-chat-head label, .petrovich-chat-head select { width: 100%; }
  .petrovich-chat-head select { min-width: 0; }
  .petrovich-messages { padding: 14px 10px; }
  .petrovich-message { max-width: 96%; }
  .petrovich-message p { font-size: 10px; }
  .petrovich-suggestions { display: grid; grid-template-columns: 1fr; overflow: visible; }
  .petrovich-suggestions button { width: 100%; max-width: none; }
  .petrovich-evidence { display: none; }
  .petrovich-provider { white-space: normal; }
}

/* v5: contract execution control */
.control-loading { min-height: 280px; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; }
.control-loading > i { width: 34px; height: 34px; color: var(--accent); animation: spin 1.1s linear infinite; }
.control-command { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px; margin-bottom: 18px; border-left: 4px solid #d99624; }
.control-command h2 { margin: 3px 0 7px; font-size: 22px; }
.control-command p { margin: 0; max-width: 760px; color: var(--muted); }
.control-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; min-width: 360px; }
.contract-control-kpis { margin-bottom: 18px; }
.control-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr); gap: 18px; margin-bottom: 18px; }
.control-grid.lower { grid-template-columns: 1fr 1fr; }
.control-obligations, .control-evidence, .control-grid.lower > .panel { padding: 22px; }
.control-obligation-list, .control-evidence-list, .control-notices, .control-timeline { display: grid; gap: 10px; }
.control-obligation { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; padding: 13px 14px; border: 1px solid var(--line); background: #f7f8f7; }
.control-obligation.critical { border-left: 3px solid #d99624; }
.control-obligation > div { display: flex; align-items: center; gap: 11px; }
.control-obligation > div:first-child { min-width: 0; }
.control-obligation > div:first-child > span { color: #d99624; flex: 0 0 auto; }
.control-obligation b, .control-evidence-list b { display: grid; gap: 4px; font-size: 14px; }
.control-obligation small, .control-evidence-list small { color: var(--muted); font-weight: 400; }
.control-obligation > div:last-child { justify-content: flex-end; flex-wrap: wrap; text-align: right; font-size: 13px; color: var(--muted); }
.control-evidence-list article { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.control-evidence-list article:last-child { border-bottom: 0; }
.control-evidence-list article > span { color: var(--muted); }
.control-notices article { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); background: #f7f8f7; }
.control-notices article > span { color: #d99624; }
.control-notices p, .control-timeline p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.control-notices em { color: #3f8a68; font-style: normal; font-size: 12px; }
.control-timeline article { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; padding-bottom: 11px; }
.control-timeline article > i { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #d99624; box-shadow: 0 0 0 4px rgba(217,150,36,.12); }
.control-timeline small { display: block; margin-top: 5px; color: var(--muted); }
.control-petrovich { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 21px 24px; }
.control-petrovich > div { display: flex; align-items: center; gap: 15px; }
.control-petrovich h2 { margin: 3px 0 4px; font-size: 20px; }
.control-petrovich p { margin: 0; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) { .control-command { align-items: flex-start; flex-direction: column; } .control-actions { min-width: 0; justify-content: flex-start; } .control-grid, .control-grid.lower { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .control-command, .control-obligations, .control-evidence, .control-grid.lower > .panel { padding: 16px; } .control-obligation { align-items: flex-start; flex-direction: column; } .control-obligation > div:last-child { justify-content: flex-start; text-align: left; } .control-petrovich { align-items: flex-start; flex-direction: column; } }
