:root {
  color-scheme: light;
  --ink: #13243c;
  --muted: #566981;
  --light-muted: #70819a;
  --blue: #0654a2;
  --blue-hover: #074684;
  --navy: #101e36;
  --yellow: #ffcf32;
  --line: #e1e8f0;
  --page: #f4f7fb;
  --white: #fff;
  --radius: 15px;
  --side-width: 243px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #3198ef; outline-offset: 2px;
}
h1,h2,h3,p { margin: 0; }
svg { flex: none; vertical-align: middle; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.launch { min-height: 100vh; display: grid; justify-items: center; align-content: center; gap: 1rem; color: var(--muted); padding: 1.5rem; }
.workspace { display: grid; grid-template-columns: var(--side-width) minmax(0, 1fr); grid-template-rows: 65px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; grid-column: 1; grid-row: 1 / 3; align-self: start; min-height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; background: var(--navy); color: #ccdaeb; padding: 23px 15px 15px;
  overflow-y: auto; z-index: 5;
}
.brand-link { display: inline-flex; margin: 0 7px 30px; align-self: flex-start; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: #f5faff; }
.brand img { border-radius: 10px; display: block; box-shadow: 0 0 0 1px #ffffff16; }
.brand strong { font-size: 1.18rem; line-height: 1.15; letter-spacing: -.045em; display: block; font-weight: 780; }
.brand strong span { color: #bdcce0; font-weight: 600; font-size: .78em; }
.brand small { display: block; color: #a7bbd5; margin-top: 3px; font-size: .65rem; font-weight: 720; letter-spacing: .17em; }
.nav-group { margin-bottom: 21px; }
.nav-group h2 { color: #8ca3c1; font-weight: 720; font-size: .67rem; letter-spacing: .125em; margin: 0 10px 7px; }
.nav-link {
  display: flex; gap: 11px; align-items: center; position: relative; padding: 10px 10px;
  border-radius: 8px; font-size: .875rem; font-weight: 610; min-height: 42px; margin-bottom: 3px;
}
.nav-link svg { color: #91aacf; }
.nav-link:hover { background: #ffffff0d; color: #fff; }
.nav-link.active { color: #fff; background: #254365; }
.nav-link.active::before { content: ''; position: absolute; left: 0; height: 16px; width: 3px; background: var(--yellow); border-radius: 0 4px 4px 0; }
.nav-link.active svg { color: var(--yellow); }
.sidebar-footer { margin-top: auto; padding-top: 12px; }
.sidebar-phase, .sidebar-user { display: flex; gap: 10px; align-items: center; border-radius: 10px; }
.sidebar-phase { background: #ffffff0a; border: 1px solid #92b7e026; padding: 10px; margin-bottom: 14px; }
.sidebar-phase:hover, .sidebar-user:hover { background: #ffffff13; }
.sidebar-marker { width: 30px; height: 30px; display: grid; place-items: center; background: #ffcf3221; color: var(--yellow); border-radius: 7px; flex: none; }
.sidebar-phase strong, .sidebar-user strong { display: block; color: #f5faff; font-size: .83rem; font-weight: 680; overflow-wrap: anywhere; }
.sidebar-phase small, .sidebar-user small { display: block; color: #9fb4d0; font-size: .73rem; }
.sidebar-user { padding: 8px 6px; }
.sidebar-user > svg { margin-left: auto; color: #9fb4d0; }
.avatar { flex: none; width: 35px; height: 35px; background: #d7e6ff; color: #184b81; display: grid; place-items: center; border-radius: 50%; font-size: .78rem; font-weight: 800; }
.topbar {
  grid-column: 2; grid-row: 1; position: sticky; top: 0; z-index: 4;
  background: #fffffffa; border-bottom: 1px solid var(--line); padding: 0 31px; display: flex;
  align-items: center; justify-content: space-between; gap: 16px;
}
.breadcrumb, .topbar-actions, .heading-actions { display: flex; align-items: center; gap: 12px; }
.breadcrumb { min-width: 0; color: var(--muted); font-size: .86rem; }
.breadcrumb svg { color: #8394a9; }
.breadcrumb strong { min-width: 0; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; font-weight: 680; }
.global-search {
  min-height: 38px; display: flex; gap: 9px; align-items: center; justify-content: flex-start;
  color: var(--muted); background: #f5f8fc; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 8px 0 11px; font-size: .85rem;
}
.global-search:hover { border-color: #a9c7e6; }
kbd { border: 1px solid #dce4ee; border-radius: 4px; background: #fff; color: #596d88; font: .72rem ui-monospace, monospace; padding: 1px 5px; margin-left: 12px; }
.menu-toggle, .menu-scrim { display: none !important; }
.main { grid-column: 2; width: 100%; max-width: 1520px; margin: 0 auto; padding: 29px 31px 48px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 0 0 24px; }
.page-heading h1 { font-size: clamp(1.8rem, 3.2vw, 2.35rem); line-height: 1.17; letter-spacing: -.047em; }
.page-heading p:not(.eyebrow) { color: var(--muted); margin-top: 8px; font-size: .97rem; }
.eyebrow { color: #537396; font-size: .72rem; line-height: 1.25; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; margin: 0 0 8px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px;
  white-space: nowrap; border: 1px solid transparent; border-radius: 8px; padding: 7px 12px;
  font-size: .875rem; font-weight: 675; line-height: 1.35; color: var(--ink);
}
.button.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.button.primary:hover:not(:disabled) { background: var(--blue-hover); }
.button.soft { background: #fff; border-color: #dce5ef; color: #2e4665; }
.button.soft:hover, .button.selected { background: #edf5ff; border-color: #c9ddf4; color: #0b54a1; }
.button.ghost { background: transparent; color: var(--muted); }
.button.ghost:hover { background: #eaf1fa; color: #074984; }
.button.icon-only { width: 34px; min-height: 34px; padding: 0; flex: none; }
.text-link { color: #06549f; font-size: .84rem; font-weight: 720; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.panel { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); min-width: 0; }
.padded { padding: 21px; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); align-items: center; min-height: 211px;
  padding: 28px 27px 27px 30px; position: relative; isolation: isolate; overflow: hidden; border-radius: 17px;
  color: #fff; background: radial-gradient(ellipse at 86% 25%, #174d7d 0%, #13365d 37%, #142945 78%);
  margin-bottom: 20px;
}
.hero-copy { z-index: 1; }
.hero-label { color: #ffdc64; display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 770; letter-spacing: .075em; text-transform: uppercase; }
.hero-label > span { width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 13px #ffcf3270; }
.hero h2 { font-size: clamp(1.9rem, 3.35vw, 2.8rem); font-weight: 770; line-height: 1.12; letter-spacing: -.055em; margin: 11px 0 8px; overflow-wrap: anywhere; }
.hero-copy p { font-size: .97rem; color: #d9e7fa; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 14px; margin-top: 18px; }
.hero-actions > span { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; color: #c4d6ed; }
.button.hero-button { min-height: 34px; border-radius: 7px; color: #223355; background: var(--yellow); }
.button.hero-button:hover { background: #ffe17b; }
.hero-visual { min-width: 0; display: flex; align-items: end; justify-content: flex-end; align-self: stretch; }
.hero-orbits { position: absolute; pointer-events: none; width: 575px; height: 540px; z-index: -1; top: -178px; right: -84px; transform: rotate(-17deg); }
.hero-orbits span,.auth-graphic i { position: absolute; border-radius: 50%; border: 1px solid #a7d5ff31; inset: 52px; }
.hero-orbits span:nth-child(2), .auth-graphic i:nth-child(2) { inset: 79px; }
.hero-orbits span:nth-child(3), .auth-graphic i:nth-child(3) { inset: 113px; }
.hero-orbits i,.hero-orbits b,.hero-orbits em { display: block; width: 9px; height: 9px; position: absolute; border-radius: 50%; background: #ffda59; box-shadow: 0 0 24px #ffda5999; top: 127px; right: 103px; }
.hero-orbits b { top: 368px; right: 92px; background: #78b9f2; box-shadow: none; width: 8px; height: 8px; }
.hero-orbits em { top: 256px; left: 51px; background: #71bafa; box-shadow: none; width: 7px; height: 7px; }
.hero-tracker { width: min(100%, 332px); padding: 12px 14px 13px; background: #102c4cd9; backdrop-filter: blur(6px); border: 1px solid #b8d7fc43; border-radius: 11px; }
.hero-track-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 11px; font-size: .76rem; }
.hero-track-head > span { color: #d4e6fa; display: inline-flex; align-items: center; gap: 6px; }
.hero-track-head > strong { color: #ffdb61; font-size: .72rem; font-weight: 720; text-align: right; }
.phase-track { display: flex; gap: 6px; overflow: hidden; }
.phase-track span { flex: 1; background: #385372; color: #dcecff; border-radius: 4px; padding: 4px 6px; min-width: 26px; text-align: center; font-weight: 730; font-size: .70rem; }
.phase-track .current { background: #ffd046; color: #20354e; }
.kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 14px 15px 13px; transition: border-color .15s ease, box-shadow .15s ease; }
.kpi:hover { border-color: #adc9e9; box-shadow: 0 5px 15px #1b3a6210; }
.kpi-head { display: flex; justify-content: space-between; align-items: start; color: #8094af; }
.glyph { width: 36px; height: 36px; flex: none; display: inline-grid; place-items: center; border-radius: 9px; font-size: .9rem; font-weight: 800; vertical-align: middle; }
.tint-blue { color: #085aa6; background: #e9f2fd; }
.tint-mint { color: #16795f; background: #e5f5ed; }
.tint-gold { color: #85610a; background: #fff2cf; }
.tint-lilac { color: #6347a0; background: #f0ebfc; }
.kpi p { color: var(--muted); margin-top: 7px; font-size: .83rem; font-weight: 660; }
.kpi strong { display: block; font-variant-numeric: tabular-nums; font-size: 1.87rem; line-height: 1.18; letter-spacing: -.05em; margin: 4px 0; }
.kpi small { display: block; color: var(--muted); font-size: .74rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,1fr); gap: 16px; margin-bottom: 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 15px; }
.section-heading h2 { font-size: 1.12rem; font-weight: 760; line-height: 1.35; letter-spacing: -.022em; }
.section-heading p { color: var(--muted); font-size: .86rem; margin-top: 4px; }
.section-heading > .text-link { margin-top: 3px; }
.operations,.source-overview,.dash-roadmap { padding: 17px 19px; }
.action-list { margin-top: 11px; }
.action-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf1f6; min-width: 0; }
.action-row:last-child { border: 0; padding-bottom: 0; }
.action-row .record-name { flex: 1; }
.task-indicator { align-self: flex-start; width: 31px; height: 31px; border-radius: 8px; display: grid; place-items: center; background: #edf4fc; color: #245f9b; flex: none; }
.task-indicator.high { background: #fff0eb; color: #a34128; }
.record-name { border: 0; border-radius: 4px; text-align: left; background: none; color: inherit; padding: 0; min-width: 0; }
.record-name:hover strong { color: #07569f; text-decoration: underline; text-underline-offset: 3px; }
.record-name strong { display: block; font-size: .88rem; font-weight: 730; overflow-wrap: anywhere; }
.record-name span { display: block; font-size: .76rem; color: var(--muted); margin-top: 2px; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 6px; white-space: nowrap; font-weight: 670; font-size: .75rem; line-height: 1.28; background: #ebf0f5; color: #455c77; }
.badge.blue { color: #0a5095; background: #e7f1fe; }
.badge.green { color: #125c46; background: #e3f5ec; }
.badge.amber { color: #78540b; background: #fff3d5; }
.badge.red { color: #9e3927; background: #fcece6; }
.badge.purple { color: #684797; background: #f1eafb; }
.source-total { margin: 19px 0 7px; display: flex; align-items: baseline; gap: 7px; color: var(--muted); }
.source-total strong { font-size: 2.2rem; line-height: 1; letter-spacing: -.065em; color: var(--ink); }
.source-total span { font-size: .86rem; }
.progress { height: 9px; border-radius: 99px; overflow: hidden; background: #ebf0f6; }
.progress span { height: 100%; background: #2675c2; border-radius: inherit; display: block; }
.progress.gold span { background: #efb82b; }
.source-legend { display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--muted); font-size: .76rem; margin-top: 11px; }
.source-legend span { display: flex; gap: 6px; align-items: center; }
.source-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: #efb82b; }
.source-legend span:nth-child(2) i { background: #dce5ef; }
.source-foot { display: flex; align-items: center; gap: 8px; background: #f5f8fc; padding: 10px 9px; border-radius: 8px; margin-top: 17px; color: #3b5673; font-size: .78rem; }
.mini-roadmap { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 15px; }
.mini-roadmap > div { border: 1px solid var(--line); padding: 10px; border-radius: 9px; }
.focus-phase { border-color: #a5c9ed !important; background: #f3f8ff !important; }
.mini-roadmap span,.phase-kicker { display: block; color: #356b9d; font-weight: 780; font-size: .75rem; text-transform: uppercase; letter-spacing: .075em; }
.mini-roadmap strong { display: block; font-size: .88rem; margin: 4px 0; }
.mini-roadmap small { display: block; color: var(--muted); font-size: .75rem; }
.view-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 13px; }
.tabs { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--line); background: #eaf0f7; border-radius: 9px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; color: #405772; padding: 7px 11px; border-radius: 6px; font-size: .84rem; font-weight: 680; white-space: nowrap; }
.tabs button:hover { color: var(--blue); }
.tabs button.selected { color: var(--blue); background: #fff; box-shadow: 0 1px 4px #172f4d13; }
.view-note { color: var(--muted); font-size: .89rem; margin: 0 0 15px; }
.tools-bar { padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tools-right { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.field-search {
  display: flex; align-items: center; gap: 7px; color: var(--muted); border: 1px solid #dbe5ef;
  background: #f9fbfe; border-radius: 8px; padding: 0 10px; min-height: 40px; width: min(100%, 300px);
}
.field-search input { width: 100%; min-width: 0; background: transparent; border: 0; padding: 8px 2px; font-size: .9rem; color: var(--ink); }
.field-search:focus-within { border-color: #2b79c5; box-shadow: 0 0 0 2px #dcecff; }
.field-search input:focus-visible { outline: 0; }
select {
  appearance: none; padding-right: 32px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23476381' stroke-width='1.6'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-size: 14px; background-position: right 9px center; background-repeat: no-repeat;
}
.inline-field select { min-height: 38px; color: #3a526d; font-size: .85rem; border: 1px solid #dbe5ef; border-radius: 8px; padding: 7px 10px; background-color: #fff; max-width: 100%; }
.panel-table { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { font-size: .88rem; width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #f3f7fc; }
th { color: #48627e; font-weight: 720; font-size: .78rem; white-space: nowrap; }
th,td { padding: 11px 14px; border-bottom: 1px solid #e9eef5; }
td:first-child .record-name { min-width: 140px; }
td:last-child, th:last-child { padding-right: 12px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f9fbfe; }
.cell-action { display: flex; justify-content: flex-end; }
.table-footer { border-top: 1px solid var(--line); padding: 10px 14px; font-size: .8rem; color: var(--muted); }
.empty { text-align: center; display: grid; justify-items: center; align-content: center; padding: 36px 18px; gap: 7px; }
.empty .glyph { width: 46px; height: 46px; margin-bottom: 4px; }
.empty h3 { font-size: 1.02rem; }
.empty p { color: var(--muted); font-size: .9rem; max-width: 380px; }
.empty .button { margin-top: 5px; }
.source-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .55fr); align-items: center; gap: 20px; padding: 16px; margin-bottom: 16px; border-radius: 11px; border: 1px solid #efd992; background: #fffaea; }
.source-summary > div:first-child { display: flex; align-items: center; gap: 10px; }
.source-summary p { font-size: .81rem; margin-top: 3px; color: var(--muted); }
.kanban { display: flex; gap: 10px; padding: 15px; overflow-x: auto; align-items: stretch; }
.kanban > section { min-width: 185px; flex: 1; background: #f4f7fb; border: 1px solid #e2eaf4; border-radius: 10px; padding: 9px; }
.kanban-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; font-size: .8rem; color: var(--muted); }
.kanban-card { background: #fff; padding: 10px; border-radius: 7px; border: 1px solid var(--line); margin-bottom: 8px; }
.kanban-card > div { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.kanban-card small, .kanban-empty { color: var(--muted); font-size: .76rem; }
.kanban-empty { padding: 16px 5px; }
.roadmap-grid, .funnel-grid { display: grid; gap: 14px; }
.roadmap-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.hub-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.funnel-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
.roadmap-card,.funnel-step { padding: 17px; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.roadmap-card h2,.funnel-step h2 { font-size: 1.15rem; letter-spacing: -.022em; }
.subtitle { color: #4d6989; font-size: .81rem; margin-top: 3px; display: block; }
.roadmap-card > p,.funnel-step > p { margin-top: 10px; color: #39516e; font-size: .9rem; }
.roadmap-card .badge { margin-top: 9px; }
.roadmap-meta, .measure { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: #426587; font-size: .83rem; }
.handoff { margin-top: 12px; padding-top: 10px; border-top: 1px solid #dce7f5; font-size: .86rem; }
.handoff p { margin-top: 4px; color: var(--muted); }
.growth-note { margin-top: 15px; }
.growth-note > p { margin-top: 10px; color: var(--muted); }
.measure { border-top: 1px solid var(--line); padding-top: 9px; }
.period-bar { margin: 15px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.period-bar label { font-size: .89rem; color: var(--muted); }
.period-bar input { background: #fff; color: var(--ink); padding: 7px; border: 1px solid var(--line); border-radius: 7px; margin-left: 5px; }
.mini-stats { margin: 15px 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.mini-stats > div { background: #f4f8fd; border: 1px solid #e0ebf6; padding: 12px; border-radius: 9px; }
.mini-stats span,.calculator span { display: block; font-size: .84rem; color: var(--muted); }
.mini-stats strong,.calculator strong { display: block; font-size: 1.22rem; letter-spacing: -.02em; margin-top: 4px; overflow-wrap: anywhere; }
.notes-inline { padding-top: 10px; color: var(--muted); font-size: .88rem; white-space: normal; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin-top: 13px; }
.main > .tabs + .panel { margin-top: 12px; }
.account-summary { display: grid; gap: 3px; margin: 11px 0; }
.account-summary span { color: var(--muted); font-size: .88rem; }
.setting-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-grid .section-heading { margin-bottom: 12px; }
.calculator { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.calculator label { font-size: .84rem; font-weight: 650; color: var(--muted); display: grid; gap: 5px; align-content: start; }
.calculator input { width: min(100%, 110px); padding: 5px 7px; border: 1px solid #ccd9e9; border-radius: 6px; }
.search-result { width: 100%; min-width: 0; text-align: left; padding: 9px 7px; background: #fff; border: 0; border-bottom: 1px solid #edf2f7; display: flex; gap: 10px; align-items: center; color: var(--ink); }
.search-result:hover { background: #f2f7fe; }
.search-result > svg { margin-left: auto; color: var(--muted); }
.search-result strong { display: block; font-size: .9rem; }
.search-result small { display: block; color: var(--muted); font-size: .76rem; }
.search-dialog { border: 1px solid var(--line); border-radius: var(--radius); width: min(550px,calc(100% - 25px)); max-height: min(650px, calc(100dvh - 40px)); margin: 9vh auto auto; }
.search-dialog-body .field-search { width: 100%; }
.search-results { margin-top: 13px; }
dialog { background: #fff; color: var(--ink); padding: 0; border: 0; box-shadow: 0 20px 90px #05112844; }
dialog::backdrop { background: #0e1d38a6; }
.drawer { width: min(575px,100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; }
.drawer[open] { display: flex; flex-direction: column; }
.dialog-head { padding: 17px 19px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 1.24rem; line-height: 1.35; letter-spacing: -.024em; overflow-wrap: anywhere; }
.dialog-head p { color: var(--muted); font-size: .86rem; margin-top: 5px; }
.dialog-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dialog-body { padding: 18px 19px; overflow: auto; flex: 1; min-height: 0; }
.dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 12px 17px; }
.dialog-foot > div { display: flex; gap: 7px; margin-left: auto; }
.fields-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; align-items: start; }
.fields-grid .wide { grid-column: 1 / -1; }
.fields-grid label,.auth-form label { display: block; color: #2f4966; font-size: .88rem; font-weight: 670; }
.fields-grid input:not([type=checkbox]), .fields-grid select,.fields-grid textarea,.auth-form input {
  display: block; width: 100%; min-width: 0; margin-top: 5px; border: 1px solid #cfdcea; border-radius: 7px;
  padding: 9px 10px; min-height: 41px; color: var(--ink); background-color: #fff; font-size: .94rem; font-weight: 450;
}
.fields-grid input:disabled, .fields-grid textarea:disabled,.fields-grid select:disabled { color: #385571; background-color: #f5f8fc; opacity: 1; }
.fields-grid textarea { resize: vertical; }
.fields-grid .field-check { padding: 7px 0 0; }
.required { color: #ad3b28; }
.readonly-note,.form-error { padding: 9px; border-radius: 7px; background: #fff3da; color: #6d4a12; font-size: .88rem; margin-bottom: 11px; }
.form-error { color: #873021; background: #fff0ed; margin: 12px 0 0; }
.toast { position: fixed; bottom: max(17px,env(safe-area-inset-bottom)); right: 17px; z-index: 10; max-width: min(420px, calc(100% - 34px)); background: #13243c; color: white; padding: 11px 14px; border-radius: 9px; box-shadow: 0 5px 22px #17294335; font-size: .91rem; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); background: #f6f9fd; }
.auth-brand { color: #fff; background: radial-gradient(ellipse at 75% 40%, #12588b, #112d4d 69%, #101f39); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px,4.5vw,64px); gap: 44px; min-height: 100vh; position: relative; isolation: isolate; overflow: hidden; }
.auth-brand .brand { align-self: flex-start; }
.auth-intro { max-width: 620px; }
.auth-intro h1 { font-size: clamp(2.3rem,4.6vw,4.4rem); line-height: 1.08; letter-spacing: -.055em; margin: 13px 0; }
.auth-intro > p:not(.hero-label) { color: #d7e8fa; font-size: 1rem; max-width: 43ch; }
.auth-graphic { position: absolute; inset: auto -150px -110px auto; width: 670px; height: 670px; transform: rotate(-27deg); z-index: -1; pointer-events: none; }
.auth-graphic i { border-color: #c8e3ff30; }
.auth-graphic span { position: absolute; width: 11px; height: 11px; background: #7abefa; border-radius: 50%; top: 76px; right: 164px; }
.auth-graphic span:last-child { top: 242px; right: 61px; background: #ffcd38; box-shadow: 0 0 28px #ffcd38; }
.auth-features { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.auth-features span { color: #e0efff; border: 1px solid #b1d4fc56; border-radius: 8px; padding: 6px 9px; display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; background: #193d5e9c; }
.auth-footer { color: #b9cfe7; font-size: .82rem; }
.auth-main { display: grid; align-items: center; justify-items: center; padding: 25px; }
.auth-card { width: min(100%, 435px); background: #fff; border: 1px solid #e0e8f2; border-radius: 17px; padding: clamp(20px,4vw,34px); box-shadow: 0 15px 40px #19314c09; }
.auth-card > .glyph { width: 44px; height: 44px; margin-bottom: 12px; }
.auth-card h2 { font-size: 1.62rem; line-height: 1.2; letter-spacing: -.038em; }
.auth-card > p { color: var(--muted); font-size: .9rem; margin: 7px 0 15px; }
.auth-form { display: grid; gap: 11px; align-content: start; }
.auth-form > .button { margin-top: 4px; }
.auth-card > button { margin-top: 10px; }
.auth-mobile-brand { display: none; }
@media (min-width: 1450px) { .main { padding: 35px 37px 52px; } .topbar { padding-inline: 37px; } }
@media (max-width: 1190px) {
  :root { --side-width: 222px; }
  .main { padding-inline: 23px; }
  .topbar { padding-inline: 23px; }
  .funnel-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 970px) {
  .workspace { grid-template-columns: minmax(0,1fr); grid-template-rows: 58px 1fr; }
  .main,.topbar { grid-column: 1; }
  .sidebar { position: fixed; width: min(263px, 83vw); inset: 0 auto 0 0; transform: translateX(-101%); visibility: hidden; transition: transform .18s ease, visibility .18s; }
  .menu-open .sidebar { transform: translateX(0); visibility: visible; }
  .button.menu-toggle { display: inline-flex !important; }
  .menu-open .menu-scrim { display: block !important; position: fixed; inset: 0; background: #142c4a73; border: 0; z-index: 4; width: 100%; }
  .breadcrumb { gap: 7px; }
}
@media (max-width: 665px) {
  .main { padding: 20px 12px 32px; }
  .topbar { padding: 0 10px; }
  .breadcrumb > span,.breadcrumb > svg,.global-search span,kbd { display: none; }
  .global-search { width: 37px; padding: 0; justify-content: center; }
  .topbar-actions { gap: 6px; }
  .topbar .primary { padding-inline: 7px; font-size: .8rem; }
  .topbar .primary svg { width: 15px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
  .page-heading p:not(.eyebrow) { font-size: .88rem; }
  .hero { grid-template-columns: 1fr; gap: 15px; padding: 17px; }
  .hero-track-head { margin-bottom: 7px; }
  .hero-visual { justify-content: start; }
  .hero-orbits { top: -129px; right: -282px; }
  .kpi-grid,.mini-roadmap,.mini-stats,.calculator { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .kpi { padding: 10px; }
  .kpi strong { font-size: 1.53rem; }
  .dashboard-grid,.roadmap-grid,.hub-grid,.settings-grid,.source-summary { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .funnel-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .operations,.source-overview,.dash-roadmap,.padded { padding: 13px; }
  .section-heading { flex-wrap: wrap; gap: 5px; }
  .action-row { gap: 6px; }
  .action-row .icon-only { display: none; }
  .auth-shell { display: block; min-height: 100vh; }
  .auth-brand { display: none; }
  .auth-main { min-height: 100vh; }
  .auth-mobile-brand { display: block; margin-bottom: 18px; }
  .light-brand { color: var(--ink); }
  .light-brand strong span,.light-brand small { color: var(--muted); }
  .auth-card > .glyph { display: none; }
  .fields-grid { gap: 11px; }
}
@media (max-width: 370px) { .fields-grid { grid-template-columns: 1fr; } .funnel-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }

.main:has(.assistant-app) { padding: 0; overflow: hidden; }
.assistant-app { display: grid; grid-template-columns: 255px minmax(0,1fr); height: calc(100vh - 58px); min-height: 560px; background: #f7f9fc; }
.assistant-sidebar { display: flex; flex-direction: column; min-height: 0; padding: 21px 14px 14px; background: #f0f4f9; border-right: 1px solid var(--line); }
.assistant-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 7px 15px; color: var(--ink); }
.assistant-sidebar-head .button { width: 34px; height: 34px; padding: 0; }
.assistant-chat-list { flex: 1; overflow-y: auto; }
.assistant-chat-link { display: flex; gap: 10px; width: 100%; padding: 10px 9px; border: 0; border-radius: 9px; text-align: left; color: var(--muted); background: transparent; cursor: pointer; }
.assistant-chat-link:hover,.assistant-chat-link.active { background: white; color: var(--ink); }
.assistant-chat-link > span:first-child { padding-top: 2px; }
.assistant-chat-link strong,.assistant-chat-link small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.assistant-chat-link strong { max-width: 175px; font-size: .82rem; font-weight: 600; }
.assistant-chat-link small { margin-top: 4px; font-size: .72rem; }
.assistant-side-empty { padding: 10px; color: var(--muted); font-size: .8rem; }
.assistant-config-link { display: flex; gap: 9px; align-items: center; width: 100%; padding: 12px 9px; border: 0; border-top: 1px solid var(--line); color: var(--muted); background: none; text-align: left; cursor: pointer; }
.assistant-config-link:hover,.assistant-config-link.active { color: var(--blue); }
.assistant-main { display: flex; min-width: 0; flex-direction: column; }
.assistant-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 19px clamp(18px,4vw,48px); border-bottom: 1px solid var(--line); background: white; }
.assistant-heading .eyebrow { margin: 0 0 4px; }
.assistant-heading h1 { margin: 0; font-size: 1.25rem; }
.assistant-heading p:not(.eyebrow) { margin: 4px 0 0; color: var(--muted); font-size: .84rem; }
.assistant-model-badge { display: flex; flex: none; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); font-size: .76rem; }
.assistant-chat-pane { display: flex; flex: 1; min-height: 0; flex-direction: column; align-items: center; }
.assistant-scroll { width: 100%; flex: 1; overflow-y: auto; padding: 24px max(18px,calc((100% - 790px)/2)) 12px; }
.assistant-welcome { display: flex; min-height: 100%; max-width: 680px; margin: auto; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.assistant-logo { display: grid; width: 52px; height: 52px; place-items: center; color: var(--blue); border: 1px solid #dbe8fa; border-radius: 17px; background: #edf4ff; }
.assistant-welcome .eyebrow { margin: 19px 0 4px; }
.assistant-welcome h2 { margin: 0; font-size: 1.75rem; }
.assistant-welcome > p:not(.eyebrow) { max-width: 540px; color: var(--muted); line-height: 1.65; }
.assistant-prompts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 13px; }
.assistant-prompt { display: flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font-size: .78rem; cursor: pointer; }
.assistant-prompt:hover { border-color: #a9c5eb; color: var(--blue); }
.assistant-messages { max-width: 790px; margin: auto; }
.assistant-message { padding: 18px 0 21px; border-bottom: 1px solid var(--line); }
.assistant-message-head { display: flex; gap: 8px; align-items: center; min-height: 30px; }
.assistant-message-head strong { font-size: .83rem; }
.assistant-message-head time { color: var(--muted); font-size: .72rem; }
.assistant-message-head .button { margin-left: auto; width: 31px; height: 31px; padding: 0; opacity: .55; }
.assistant-message:hover .assistant-message-head .button { opacity: 1; }
.assistant-user-dot { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: white; background: #6384ad; font-size: .6rem; }
.assistant-message-body { padding-left: 30px; line-height: 1.7; white-space: normal; overflow-wrap: anywhere; }
.assistant-message-body p { margin: 9px 0; }
.assistant-quote-block { margin: 12px 0 12px 30px; padding: 9px 12px; border-left: 3px solid #91b8eb; color: var(--muted); background: #eff5fd; font-size: .84rem; white-space: pre-wrap; }
.assistant-composer { width: min(790px,calc(100% - 36px)); margin: 10px auto 22px; padding: 10px 12px; border: 1px solid #d5dce7; border-radius: 13px; background: white; box-shadow: 0 5px 22px #1f365010; }
.assistant-composer textarea { display: block; width: 100%; min-height: 48px; max-height: 200px; resize: vertical; border: 0; outline: 0; background: transparent; }
.assistant-composer > div { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .72rem; }
.assistant-composer .button { min-height: 34px; padding: 6px 12px; }
.assistant-quote-compose { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: min(790px,calc(100% - 36px)); padding: 8px 10px; border-radius: 9px; color: var(--muted); background: #eaf2fc; font-size: .78rem; }
.assistant-quote-compose > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assistant-config { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(230px,.75fr); gap: 17px; width: min(1040px,100%); margin: 25px auto; padding: 0 22px; align-items: start; }
.assistant-config-form { display: grid; gap: 13px; }
.assistant-config-form label { display: grid; gap: 7px; color: var(--ink); font-size: .86rem; font-weight: 600; }
.assistant-config-form input,.assistant-config-form select,.assistant-config-form textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font: inherit; font-weight: 400; }
.assistant-config-form textarea { resize: vertical; line-height: 1.55; }
.assistant-help,.assistant-key-state { margin: -6px 0 2px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.assistant-key-state { display: flex; align-items: center; gap: 7px; margin: 0; }
.assistant-config-actions { display: flex; gap: 9px; }
.assistant-config-note h2 { font-size: 1rem; }
.assistant-config-note p { color: var(--muted); font-size: .84rem; line-height: 1.6; }
@media (max-width: 970px) { .main:has(.assistant-app) { padding: 0; } .assistant-app { height: calc(100vh - 58px); } }
@media (max-width: 665px) { .assistant-app { grid-template-columns: 1fr; min-height: 500px; } .assistant-sidebar { display: none; } .assistant-heading { padding: 14px; align-items: flex-start; } .assistant-heading h1 { font-size: 1.05rem; } .assistant-heading p:not(.eyebrow) { font-size: .75rem; } .assistant-model-badge { max-width: 130px; font-size: .66rem; overflow-wrap: anywhere; } .assistant-scroll { padding-inline: 14px; } .assistant-config { grid-template-columns: 1fr; margin-top: 14px; padding-inline: 12px; } .assistant-config-note { display: none; } .assistant-composer { width: calc(100% - 24px); margin-bottom: 12px; } .assistant-prompts { flex-direction: column; align-items: stretch; } }
