:root {
  color-scheme: light;
  --paper: #f1f3f5;
  --surface: #ffffff;
  --ink: #0b2233;
  --muted: #7e8489;
  --line: #e3e6e9;
  --brand: #0f5a82;
  --brand-dark: #0e4a6b;
  --brand-pale: #e6eff5;
  --accent: #3fa9ae;
  --accent-pale: #e3f4f5;
  --sidebar: #0a2a3f;
  --sidebar-muted: #9aa9b3;
  --font-ui: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-size: 16px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 2; display: flex; width: 238px; flex-direction: column; padding: 26px 18px 19px; background: var(--sidebar); color: #f2f5f7; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 0 51px 8px; color: #f4f6f8; font-size: 23px; font-weight: 600; letter-spacing: -.5px; text-decoration: none; }
.brand-period { color: #9ed7da; }
.brand-mark { display: flex; height: 21px; align-items: end; gap: 3px; }
.brand-mark span { display: block; width: 5px; border-radius: 3px; background: #1a7fb8; transform: skew(-19deg); }
.brand-mark span:nth-child(1) { height: 11px; }.brand-mark span:nth-child(2) { height: 17px; background: #45afb3; }.brand-mark span:nth-child(3) { height: 21px; background: #9ed7da; }
.workspace-label, .nav-label { padding-left: 9px; color: var(--sidebar-muted); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; }
.workspace-name { display: flex; height: 42px; align-items: center; gap: 9px; margin: 11px 0 32px; padding: 0 9px; border: 1px solid rgba(214,233,242,.15); border-radius: 5px; color: #f2f5f7; font-size: 14px; }
.workspace-avatar { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 4px; background: #45afb3; color: #0a2a3f; font-family: var(--font-display); font-size: 18px; }
.workspace-caret { margin-left: auto; color: #a4b2bc; font-size: 18px; }
.nav-label { margin-bottom: 10px; }
.nav-links { display: grid; gap: 4px; }
.nav-link { display: flex; height: 39px; align-items: center; gap: 12px; padding: 0 10px; border-radius: 4px; color: #b7c2c9; font-size: 15px; text-decoration: none; transition: background .16s ease, color .16s ease; }
.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-link.active { background: rgba(230,242,248,.13); color: #fff; }
.nav-icon { position: relative; display: inline-block; width: 16px; height: 16px; opacity: .84; }
.icon-overview::before { position: absolute; inset: 2px; border: 1.5px solid currentColor; border-radius: 2px; content: ''; }
.icon-overview::after { position: absolute; left: 5px; top: 2px; height: 11px; border-left: 1px solid currentColor; content: ''; }
.icon-reports::before { position: absolute; right: 1px; bottom: 2px; left: 1px; height: 9px; border-bottom: 1.5px solid currentColor; content: ''; }
.icon-reports::after { position: absolute; bottom: 4px; left: 2px; width: 12px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: skewY(-28deg); content: ''; }
.icon-transactions::before { position: absolute; inset: 2px 1px; border: 1.5px solid currentColor; border-radius: 2px; content: ''; }
.icon-transactions::after { position: absolute; top: 5px; right: 4px; left: 4px; border-top: 1px solid currentColor; box-shadow: 0 3px currentColor, 0 6px currentColor; content: ''; }
.icon-statements::before { position: absolute; top: 1px; left: 3px; width: 9px; height: 13px; border: 1.5px solid currentColor; border-radius: 2px; content: ''; }
.icon-statements::after { position: absolute; top: 6px; left: 6px; width: 5px; border-top: 1px solid currentColor; box-shadow: 0 3px currentColor; content: ''; }
.sidebar-bottom { margin-top: auto; }
.secure-note { display: flex; align-items: flex-start; gap: 9px; padding: 14px 9px; border-top: 1px solid rgba(214,233,242,.14); color: #e3e8ec; font-size: 13px; line-height: 1.55; }
.secure-note small { color: #9aa9b3; font-size: 13px; }
.secure-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: #45afb3; }
.sidebar-version { padding: 11px 9px 0; color: #91a0aa; font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.sidebar-version span { padding: 0 3px; color: #9ed7da; }
.main-content { width: min(1450px, calc(100% - 238px)); min-height: 100vh; margin-left: 238px; padding: 0 45px 26px; background-image: radial-gradient(#dce1e4 0.6px, transparent 0.6px); background-position: 11px 10px; background-size: 18px 18px; }
.topbar { display: flex; height: 72px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(219,225,230,.85); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #8b9195; font-size: 14px; }
.breadcrumb-slash { color: #bcc0c3; }.breadcrumb strong { color: #343c42; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 21px; }
.today-label { color: #848b90; font-size: 13px; }
.button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 4px; font-size: 14px; font-weight: 600; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--brand-dark); color: #fff; }
.button-primary:hover:not(:disabled) { background: #0f5a82; }
.button-primary:disabled { cursor: not-allowed; opacity: .52; }
.button-plus { font-size: 19px; font-weight: 400; line-height: 1; }
.button-secondary { border-color: #dbdfe2; background: rgba(255,255,255,.76); color: #404b53; }
.button-secondary:hover:not(:disabled) { border-color: #aab5bd; background: white; }
.button-secondary:disabled { cursor: default; opacity: .6; }
.export-icon { font-size: 20px; font-weight: 400; line-height: 1; }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 37px 0 23px; }
.eyebrow, .panel-kicker, .dialog-kicker { display: flex; align-items: center; gap: 8px; color: #808a91; font-size: 12px; font-weight: 700; letter-spacing: 1.15px; }
.eyebrow-line { width: 17px; border-top: 1px solid var(--accent); }
h1 { margin: 9px 0 5px; color: #1c2830; font-family: var(--font-display); font-size: clamp(34px, 3.4vw, 48px); font-weight: 700; letter-spacing: -.5px; line-height: 1.16; }
h1 em { color: #1a7fb8; font-style: normal; font-weight: 700; }
.intro-copy { margin: 0; color: #788086; font-size: 14px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric { position: relative; min-width: 0; min-height: 125px; padding: 16px 17px 14px; border: 1px solid #dfe3e6; border-radius: 5px; background: rgba(255,255,255,.91); box-shadow: 0 2px 5px rgba(14,42,62,.025); }
.metric-net { border-color: #c3d8e6; background: #e6eff5; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: #697177; font-size: 13px; font-weight: 500; }
.metric-symbol { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: #edeff1; color: #626d75; font-size: 16px; }
.metric-net .metric-symbol { background: #d3e3ee; color: var(--brand-dark); }
.income-symbol { background: #e6eff5; color: #1a6f9e; }.expense-symbol { background: #e3f4f5; color: #2a8c91; }.count-symbol { color: #707a81; }
.metric-value { overflow: hidden; margin-top: 12px; color: #1c2830; font-size: 30px; font-weight: 600; letter-spacing: -.7px; text-overflow: ellipsis; white-space: nowrap; }
.metric-net .metric-value { color: #0e4a6b; }
.metric-foot { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: #878d92; font-size: 12px; }
.metric-indicator { color: #949ca1; font-size: 13px; }.metric-indicator.positive { color: #1a7fb8; font-size: 10px; }.expense-indicator { color: #2e9da2; font-size: 10px; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .95fr); gap: 13px; margin-top: 15px; scroll-margin-top: 18px; }
.panel { min-width: 0; border: 1px solid #dfe3e6; border-radius: 5px; background: rgba(255,255,255,.94); box-shadow: 0 2px 5px rgba(14,42,62,.025); }
.cashflow-panel, .category-panel { min-height: 264px; padding: 18px 19px 13px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-kicker { font-size: 11px; letter-spacing: 1px; }
h2 { margin: 5px 0 0; color: #232e36; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.2px; }
.chart-legend { display: flex; gap: 13px; color: #848b90; font-size: 12px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; }.legend-income { background: #1a7fb8; }.legend-expense { background: #45afb3; }
.chart-wrap { position: relative; display: flex; height: 182px; align-items: end; justify-content: space-around; gap: 13px; margin-top: 13px; padding: 0 4px 19px; border-bottom: 1px solid #e9ebed; background: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, #eceef0 44px, transparent 45px); }
.chart-group { display: flex; height: 100%; min-width: 24px; flex: 1; flex-direction: column; justify-content: end; align-items: center; gap: 8px; }
.bar-pair { display: flex; width: min(62px, 82%); height: 143px; align-items: end; justify-content: center; gap: 5px; }
.chart-bar { display: block; width: 15px; min-height: 2px; border-radius: 3px 3px 0 0; transition: height .35s ease; }
.chart-bar.income-bar { background: #1a7fb8; }.chart-bar.expense-bar { background: #45afb3; }
.chart-month { color: #909599; font-size: 12px; }
.chart-empty, .category-empty { align-self: center; margin: auto; color: #9aa0a4; font-size: 13px; line-height: 1.6; text-align: center; }
.chart-wrap:has(.chart-empty) { align-items: center; justify-content: center; }
.panel-aside { color: #9a9fa3; font-size: 12px; }
.category-list { display: grid; gap: 13px; margin-top: 20px; }
.category-row { display: grid; grid-template-columns: minmax(84px, 1fr) 1.3fr auto; align-items: center; gap: 10px; }
.category-name { overflow: hidden; color: #646c72; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.category-track { height: 5px; overflow: hidden; border-radius: 4px; background: #eceef0; }
.category-fill { display: block; height: 100%; border-radius: inherit; background: #0f5a82; }
.category-row:nth-child(3n + 2) .category-fill { background: #45afb3; }.category-row:nth-child(3n) .category-fill { background: #1a7fb8; }
.category-value { color: #38434b; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.category-empty { padding: 35px 10px; }
.transactions-panel { margin-top: 14px; scroll-margin-top: 18px; }
.transactions-heading { min-height: 76px; padding: 15px 19px 12px; }
.count-pill { display: inline-grid; min-width: 19px; height: 19px; place-items: center; margin-left: 4px; border-radius: 9px; background: #edeff1; color: #767e84; font-family: var(--font-ui); font-size: 12px; vertical-align: 2px; }
.search-box { display: flex; width: 190px; height: 31px; align-items: center; gap: 8px; padding: 0 9px; border: 1px solid #e5e8ea; border-radius: 4px; background: #fff; }
.search-icon { position: relative; display: block; width: 12px; height: 12px; flex: 0 0 auto; border: 1.3px solid #878e93; border-radius: 50%; }
.search-icon::after { position: absolute; right: -4px; bottom: -2px; width: 5px; border-top: 1.3px solid #878e93; transform: rotate(45deg); content: ''; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: #384147; font-size: 13px; }
.search-box input::placeholder { color: #a4a9ad; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #f6f8f9; }
th { height: 32px; padding: 0 19px; color: #9a9fa3; font-size: 11px; font-weight: 700; letter-spacing: .75px; white-space: nowrap; }
td { height: 45px; padding: 0 19px; border-top: 1px solid #eef0f1; color: #676f75; font-size: 13px; white-space: nowrap; }
td:first-child { color: #898f94; font-size: 12px; font-variant-numeric: tabular-nums; }
td.description-cell { color: #343f46; font-weight: 500; }
.amount-column { text-align: right; }.amount-cell { color: #343f46; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }.amount-cell.negative { color: #b0473a; }
.category-tag { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 3px; background: #edf3f8; color: #2a6185; font-size: 12px; }
.category-tag.expense-tag { background: #e3f4f5; color: #227c80; }.category-tag.transfer-tag { background: #ebeef0; color: #6d7b85; }
.review-flag { display: inline-flex; align-items: center; margin-left: 5px; padding: 3px 5px; border: 1px solid #efd89c; border-radius: 3px; background: #fff6df; color: #855d12; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.table-empty { height: 89px; color: #a0a6aa; text-align: center; }
.table-footer { display: flex; min-height: 37px; align-items: center; justify-content: space-between; padding: 0 19px; border-top: 1px solid #ebeef0; color: #9ba0a4; font-size: 12px; }
.statements-panel { margin-top: 14px; scroll-margin-top: 18px; }
.statements-panel .panel-heading { min-height: 68px; padding: 13px 19px; }
.text-button { border: 0; background: none; color: #0f5a82; font-size: 13px; font-weight: 600; }
.text-button span { padding-left: 4px; font-size: 16px; }
.statement-list { border-top: 1px solid #edeff1; }
.statement-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 92px 94px; min-height: 48px; align-items: center; gap: 12px; padding: 0 19px; border-bottom: 1px solid #eef0f1; }
.statement-row:last-child { border-bottom: 0; }
.statement-file { display: flex; min-width: 0; align-items: center; gap: 10px; color: #404a51; font-size: 13px; font-weight: 500; }
.file-icon { display: grid; width: 24px; height: 27px; flex: 0 0 auto; place-items: center; border: 1px solid #dde3e7; border-radius: 3px; color: #1f6a92; font-size: 11px; font-weight: 700; }
.statement-file span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.statement-meta { color: #92989c; font-size: 12px; }
.statement-empty { padding: 18px 19px; color: #a0a6aa; font-size: 13px; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; padding: 19px 1px 0; color: #9a9fa3; font-size: 12px; }
.footer-dot { padding: 0 3px; color: var(--accent); }

.upload-dialog { width: min(450px, calc(100% - 28px)); padding: 29px; border: 1px solid #e1e5e8; border-radius: 7px; background: #f9fbfc; color: var(--ink); box-shadow: 0 24px 85px rgba(10,32,48,.2); }
.upload-dialog::backdrop { background: rgba(10,32,48,.48); backdrop-filter: blur(2px); }
.upload-dialog form[method="dialog"] { position: absolute; top: 14px; right: 14px; }
.dialog-close { width: 29px; height: 29px; border: 0; border-radius: 50%; background: #eceff1; color: #525b61; font-size: 23px; line-height: 1; }
.dialog-kicker { color: #828c94; font-size: 11px; }
.upload-dialog h2 { margin-top: 9px; font-size: 34px; }
.dialog-copy { max-width: 340px; margin: 8px 0 20px; color: #7d8489; font-size: 14px; line-height: 1.6; }
.dropzone { display: flex; min-height: 174px; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #b9c2c9; border-radius: 5px; background: #f2f6f9; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.dropzone.dragging, .dropzone:hover { border-color: #1a7fb8; background: #eaf2f8; }
.dropzone input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.upload-mark { display: grid; width: 31px; height: 31px; place-items: center; margin-bottom: 10px; border-radius: 50%; background: #dce9f2; color: #1a6f9e; font-size: 19px; }
.dropzone-title { color: #34414b; font-size: 14px; font-weight: 600; }
.dropzone-subtitle { margin-top: 4px; color: #8b9196; font-size: 13px; }.dropzone-subtitle span { color: #0f5a82; text-decoration: underline; text-underline-offset: 2px; }
.dropzone-limit { margin-top: 14px; color: #a0a6aa; font-size: 12px; }
.selected-file { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; padding: 9px 10px; border: 1px solid #e1e6e9; border-radius: 4px; background: white; color: #525b61; font-size: 13px; }
.selected-file[hidden] { display: none; }
.upload-error { margin: 11px 0 0; color: #ab5348; font-size: 13px; }
.upload-error[hidden] { display: none; }
.dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; }
.privacy-caption { display: flex; align-items: center; gap: 6px; color: #848c91; font-size: 12px; white-space: nowrap; }.privacy-caption .secure-dot { margin: 0; }

.analysis-panel { margin-top: 14px; scroll-margin-top: 18px; }
.analysis-heading { align-items: flex-end; min-height: 76px; padding: 15px 19px 12px; border-bottom: 1px solid #edeff1; }
.analysis-heading .panel-aside { display: block; margin-top: 4px; }
.analysis-actions { display: flex; gap: 8px; }
.analysis-button { min-height: 31px; font-size: 13px; }
.analysis-body { display: grid; gap: 16px; padding: 16px 19px 18px; }
.analysis-empty { padding: 35px 10px; color: #9aa0a4; font-size: 13px; text-align: center; }
.analysis-body h3 { margin: 0 0 9px; color: #232e36; font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.analysis-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 16px; }
.analysis-table { min-width: 0; padding: 14px 15px 8px; border: 1px solid #ebeef0; border-radius: 4px; }
.analysis-table td, .analysis-table th { height: 32px; padding: 0 8px; }
.analysis-table td:first-child { color: #4b555c; font-size: 13px; }
.statement-subtotal td, .statement-total td { border-top: 1px solid #d7dcdf; color: #232e36; font-weight: 700; }
.statement-total td { border-top: 2px solid #232e36; background: #f6f8f9; }
.statement-subtotal td:first-child, .statement-total td:first-child { color: #232e36; font-weight: 700; }
.statement-note { margin-left: 7px; color: #9a9fa3; font-size: 11px; font-weight: 500; }
.analysis-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.analysis-card { min-width: 0; padding: 14px 15px; border: 1px solid #ebeef0; border-left: 3px solid var(--brand); border-radius: 4px; }
.analysis-cost_of_sales, .analysis-operating_costs { border-left-color: var(--accent); }.analysis-cash { border-left-color: #1a7fb8; }
.analysis-figure { margin-top: 7px; color: #1c2830; font-size: 25px; font-weight: 600; font-variant-numeric: tabular-nums; }
.analysis-figure-label { color: #8b9195; font-size: 12px; }
.analysis-card ul { margin: 11px 0 0; padding-left: 15px; color: #4b555c; font-size: 14px; line-height: 1.55; }
.analysis-card li + li { margin-top: 5px; }
.recommendations ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.recommendation { display: flex; align-items: flex-start; gap: 11px; padding: 11px 13px; border: 1px solid #ebeef0; border-radius: 4px; background: #fafbfc; }
.recommendation strong { color: #232e36; font-size: 14px; }
.recommendation p { margin: 3px 0 0; color: #5d666c; font-size: 14px; line-height: 1.5; }
.priority-tag { flex: 0 0 54px; padding: 3px 0; border-radius: 3px; font-size: 11px; font-weight: 700; text-align: center; text-transform: uppercase; }
.priority-high { background: #faebe5; color: #a5523a; }.priority-medium { background: #fff6df; color: #855d12; }.priority-low { background: #e6eff5; color: #0f5a82; }
.analysis-note { margin: 0; color: #8b9195; font-size: 12px; line-height: 1.55; }
.icon-funding::before { position: absolute; inset: 3px 1px; border: 1.5px solid currentColor; border-radius: 2px; content: ''; }
.icon-funding::after { position: absolute; top: 6px; left: 6px; width: 4px; height: 4px; border: 1.2px solid currentColor; border-radius: 50%; content: ''; }
.funding-summary { display: grid; gap: 7px; padding: 14px 16px; border-left: 3px solid var(--brand); border-radius: 4px; background: var(--brand-pale); }
.funding-summary p { margin: 0; color: #2f3c45; font-size: 15px; line-height: 1.55; }
.funding-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.funding-figure { display: grid; gap: 4px; min-width: 0; padding: 13px 15px; border: 1px solid #ebeef0; border-radius: 4px; }
.funding-figure span { color: #808a91; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.funding-figure strong { color: #1c2830; font-size: 23px; font-weight: 600; font-variant-numeric: tabular-nums; }
.funding-figure small { color: #8b9195; font-size: 12px; }
.analysis-table .funding-table td { height: auto; padding: 10px 8px; vertical-align: top; white-space: normal; }
.funding-table td:first-child { width: 52%; }
.funding-table td strong { color: #232e36; font-size: 14px; }
.funding-table td p { margin: 4px 0 0; color: #5d666c; font-size: 13px; line-height: 1.5; }
.funding-table td:nth-child(2) { color: #343f46; font-size: 13px; }
.funding-type { display: block; margin-top: 4px; color: #9a9fa3; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.funding-optional td { background: #fafbfc; }.funding-optional .amount-cell { color: #8b9195; }
.funding-table .statement-total td { height: 36px; vertical-align: middle; }
.funding-affordability { margin: 10px 8px 6px; color: #4b555c; font-size: 14px; line-height: 1.55; }
.readiness-overall { margin-left: 6px; padding: 3px 7px; border-radius: 3px; font-family: var(--font-ui); font-size: 12px; font-weight: 700; vertical-align: 2px; }
.readiness-list, .pack-list { display: grid; gap: 9px; margin: 0 0 8px; padding: 0; list-style: none; }
.readiness-list li { display: flex; align-items: flex-start; gap: 10px; }
.readiness-list strong { color: #232e36; font-size: 14px; }
.readiness-list p { margin: 2px 0 0; color: #5d666c; font-size: 13px; line-height: 1.5; }
.readiness-tag { flex: 0 0 50px; padding: 3px 0; border-radius: 3px; font-size: 11px; font-weight: 700; text-align: center; text-transform: uppercase; }
.readiness-weak { background: #faebe5; color: #a5523a; }.readiness-fair { background: #fff6df; color: #855d12; }.readiness-strong { background: #e6eff5; color: #0f5a82; }
.pack-list { gap: 5px; }
.pack-list li { position: relative; padding-left: 17px; color: #4b555c; font-size: 13px; line-height: 1.5; }
.pack-list li::before { position: absolute; top: 2px; left: 0; width: 9px; height: 9px; border: 1.2px solid #1a7fb8; border-radius: 2px; content: ''; }
.lender-intro { margin: -3px 0 11px; color: #7e8489; font-size: 13px; line-height: 1.5; }
.lender-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lender-card { display: flex; min-width: 0; flex-direction: column; gap: 8px; padding: 14px 15px; border: 1px solid #ebeef0; border-radius: 4px; }
.lender-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lender-top .funding-type { margin-top: 0; }
.lender-top h4 { margin: 3px 0 0; color: #232e36; font-size: 16px; }
.lender-top h4 a { color: inherit; text-decoration-color: #c7ced3; text-underline-offset: 3px; }
.lender-top .readiness-tag { flex: 0 0 auto; padding: 3px 7px; }
.lender-products { margin: 0; color: #4b555c; font-size: 14px; line-height: 1.5; }
.lender-range { color: #232e36; font-size: 14px; font-weight: 600; }
.lender-notes { display: grid; gap: 5px; margin: 2px 0 0; padding: 9px 0 0; border-top: 1px solid #eef0f1; list-style: none; }
.lender-notes li { position: relative; padding-left: 15px; color: #5d666c; font-size: 13px; line-height: 1.5; }
.lender-notes li::before { position: absolute; top: 0; left: 0; font-weight: 700; }
.note-fit::before { color: #0f5a82; content: '✓'; }.note-blocker::before { color: #a5523a; content: '✕'; }.note-caution::before { color: #b0841f; content: '!'; padding-left: 2px; }
.performance-figures { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 12px; }
.funding-figure strong.negative { color: #b0473a; }
.performance-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); gap: 16px; padding: 0 2px 6px; }
.performance-highlights { display: grid; gap: 7px; margin: 0; padding-left: 15px; color: #4b555c; font-size: 14px; line-height: 1.55; }
.performance-highlights strong { color: #232e36; }
.performance-priorities { padding: 12px 14px; border-radius: 4px; background: #e9f5f6; }
.performance-priorities ol { margin: 8px 0 0; padding-left: 17px; color: #4b555c; font-size: 14px; line-height: 1.6; }
.indicator-count { margin-left: 6px; color: #8b9195; font-family: var(--font-ui); font-size: 13px; }
.analysis-table .indicator-table td { height: auto; padding: 9px 8px; vertical-align: top; }
.indicator-table td strong { color: #232e36; font-size: 14px; }
.indicator-table .readiness-tag { display: inline-block; width: 50px; }
.indicator-table td.indicator-comment { min-width: 260px; color: #5d666c; font-size: 13px; line-height: 1.5; white-space: normal; }
.analysis-table .indicator-group td { padding: 12px 8px 5px; border-top: 0; color: #808a91; font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan-phase { min-width: 0; padding: 14px 15px; border: 1px solid #ebeef0; border-top: 3px solid var(--brand); border-radius: 4px; }
.plan-phase:nth-child(2) { border-top-color: #1a7fb8; }.plan-phase:nth-child(3) { border-top-color: var(--accent); }
.plan-phase h4 { margin: 6px 0 0; color: #232e36; font-size: 16px; }
.plan-phase ul { margin: 9px 0 0; padding-left: 15px; color: #4b555c; font-size: 14px; line-height: 1.55; }
.plan-phase li + li { margin-top: 5px; }
@media print {
  body.printing { background: #fff; }
  body.printing .sidebar, body.printing .main-content > :not(.print-target), body.printing .analysis-actions { display: none; }
  body.printing .main-content { width: 100%; margin: 0; padding: 0; background: none; }
  body.printing .analysis-panel { margin: 0; border: 0; box-shadow: none; }
  body.printing .analysis-card, body.printing .recommendation, body.printing .analysis-table, body.printing .plan-phase, body.printing .lender-card { break-inside: avoid; }
}
.workspace-user { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sign-out { color: #6d767d; }
.sign-out:hover { color: var(--brand-dark); }
.login-page { background: var(--paper); }
.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr); }
.login-brand { display: flex; flex-direction: column; justify-content: space-between; padding: 34px 40px 28px; background: var(--sidebar); color: #f2f5f7; }
.login-brand .brand { margin: 0; }
.login-pitch { max-width: 360px; }
.login-pitch .eyebrow { color: var(--sidebar-muted); }
.login-headline { margin: 14px 0 12px; color: #f4f6f8; font-family: var(--font-display); font-size: 48px; font-weight: 700; letter-spacing: -.8px; line-height: 1.1; }
.login-headline em { color: #9ed7da; font-style: normal; }
.login-pitch p:last-child { color: #b7c2c9; font-size: 16px; line-height: 1.6; }
.login-brand .secure-note { padding-right: 0; padding-left: 0; }
.login-panel { display: grid; place-items: center; padding: 40px 24px; background-image: radial-gradient(#dce1e4 0.6px, transparent 0.6px); background-size: 18px 18px; }
.login-form { display: grid; width: min(380px, 100%); gap: 14px; padding: 30px 28px; border: 1px solid #dfe3e6; border-radius: 6px; background: var(--surface); box-shadow: 0 8px 30px rgba(14,42,62,.06); }
.login-form h1 { margin: 0; font-size: 38px; }
.login-form .dialog-copy { margin: -4px 0 4px; }
.field { display: grid; gap: 6px; color: #4b555c; font-size: 14px; font-weight: 600; }
.field input { height: 40px; padding: 0 11px; border: 1px solid #dbdfe2; border-radius: 4px; background: #fff; color: var(--ink); font-size: 16px; }
.field input:focus { border-color: var(--brand); outline: 2px solid var(--brand-pale); }
.login-submit { min-height: 40px; margin-top: 4px; font-size: 15px; }
.login-help { margin: 0; color: #8b9195; font-size: 13px; line-height: 1.5; }
@media (max-width: 780px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { gap: 22px; padding: 22px 16px; }.login-headline { font-size: 36px; }.login-brand .secure-note { display: none; }
  .login-panel { align-items: start; padding: 22px 16px 32px; }
}
.icon-users::before { position: absolute; top: 1px; left: 4px; width: 7px; height: 7px; border: 1.5px solid currentColor; border-radius: 50%; content: ''; }
.icon-users::after { position: absolute; bottom: 1px; left: 1px; width: 13px; height: 6px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 7px 7px 0 0; content: ''; }
[hidden] { display: none !important; }
.invite-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.invite-form { display: grid; align-content: start; gap: 12px; padding-bottom: 15px; }
.invite-form h3, .invite-result h3 { margin-bottom: 0; }
.invite-form .button { justify-self: start; }
.checkbox-field { display: flex; align-items: center; gap: 8px; color: #4b555c; font-size: 14px; }
.checkbox-field input { width: 15px; height: 15px; accent-color: var(--brand-dark); }
.invite-result { display: grid; align-content: start; gap: 12px; padding-bottom: 15px; }
.invite-placeholder { margin: 0; color: #9aa0a4; font-size: 14px; line-height: 1.6; }
.invite-credentials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.invite-credentials div { display: grid; gap: 4px; padding: 10px 12px; border-radius: 4px; background: var(--brand-pale); }
.invite-credentials span { color: #6c7880; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.invite-credentials strong { overflow-wrap: anywhere; color: #1c2830; font-size: 16px; }
.invite-password { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .5px; }
.field textarea { padding: 9px 11px; border: 1px solid #dbdfe2; border-radius: 4px; background: #fafbfc; color: #343f46; font: inherit; font-size: 14px; font-weight: 400; line-height: 1.5; resize: vertical; }
.invite-actions { display: flex; align-items: center; gap: 12px; }
.invite-note { color: #8b9195; font-size: 13px; line-height: 1.5; }
.user-actions { text-align: right; }
.user-actions .text-button + .text-button { margin-left: 10px; }
.danger-button { color: #a5523a; }
.user-inactive td { color: #a0a6aa; }
@media (min-width: 1500px) { .main-content { padding-right: 58px; padding-left: 58px; } }
@media (max-width: 1100px) {
  .main-content { padding-right: 27px; padding-left: 27px; }
  .sidebar { width: 210px; }.main-content { width: calc(100% - 210px); margin-left: 210px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-grid { grid-template-columns: minmax(0, 1.4fr) minmax(260px, .9fr); }
  .analysis-grid { grid-template-columns: 1fr; }
  .funding-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }.plan-grid { grid-template-columns: 1fr; }.lender-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.performance-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }.performance-detail { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .sidebar { position: sticky; top: 0; width: 100%; height: 57px; flex-direction: row; align-items: center; justify-content: space-between; padding: 0 18px; }
  .brand { margin: 0; font-size: 20px; }.brand-mark { transform: scale(.9); transform-origin: left center; }
  .workspace-label, .workspace-name, .nav-label, .sidebar-bottom { display: none; }
  .nav-links { display: flex; gap: 2px; }.nav-link { width: 36px; height: 36px; justify-content: center; padding: 0; font-size: 0; }.nav-icon { width: 17px; height: 17px; }
  .main-content { width: 100%; margin: 0; padding: 0 18px 24px; }
  .topbar { height: 52px; }.breadcrumb { font-size: 13px; }.topbar-actions { gap: 8px; }.today-label { display: none; }.topbar .button { min-height: 32px; padding: 0 10px; font-size: 13px; }
  .page-intro { align-items: center; padding: 29px 0 19px; }.intro-copy { max-width: 270px; line-height: 1.5; }
  #export-report { padding: 0 9px; font-size: 0; }.export-icon { font-size: 20px; }
  .report-grid { grid-template-columns: 1fr; }.cashflow-panel, .category-panel { min-height: 235px; }.category-panel { min-height: 205px; }
  .metric-grid { gap: 8px; }.metric { min-height: 113px; padding: 13px 12px; }.metric-value { font-size: 25px; }.metric-top { font-size: 12px; }
  .transactions-heading { align-items: flex-start; }.search-box { width: 145px; }
  th, td { padding-right: 12px; padding-left: 12px; } th { font-size: 10px; }
  .statement-row { grid-template-columns: minmax(0, 1fr) 85px 75px; gap: 7px; padding: 0 12px; }.statement-row .statement-meta:nth-last-child(1) { display: none; }
  .page-footer { flex-wrap: wrap; }
  .analysis-sections, .lender-grid, .invite-credentials { grid-template-columns: 1fr; }.invite-actions { align-items: flex-start; flex-direction: column; }.performance-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }.analysis-heading { align-items: flex-start; flex-direction: column; }.analysis-body { padding: 14px 12px; }
}
@media (max-width: 420px) {
  .main-content { padding-right: 13px; padding-left: 13px; }.sidebar { padding: 0 13px; }
  h1 { font-size: 35px; }.intro-copy { max-width: 210px; font-size: 13px; }.page-intro { gap: 8px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.metric-value { font-size: 23px; }
  .chart-legend { gap: 7px; font-size: 11px; }.cashflow-panel, .category-panel { padding-right: 13px; padding-left: 13px; }
  .search-box { width: 116px; }.search-box input { font-size: 12px; }.transactions-heading { padding-right: 12px; padding-left: 12px; }
  td, th { padding-right: 9px; padding-left: 9px; }.table-footer { padding-right: 12px; padding-left: 12px; font-size: 11px; }
  .statement-row { grid-template-columns: minmax(0, 1fr) 70px; }.statement-row .statement-meta:nth-child(2) { display: none; }
  .dialog-actions { align-items: flex-start; flex-direction: column; }.dialog-actions .button { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
/* KI Solutions flyer palette: navy -> blue -> teal gradients */
:root {
  --grad-navy: linear-gradient(160deg, #0a2a3f 0%, #0c3450 62%, #0f4566 100%);
  --grad-bars: linear-gradient(90deg, #0e4a6b 0%, #0f5a82 30%, #1a7fb8 65%, #45afb3 100%);
}
.sidebar { background: var(--grad-navy); box-shadow: inset -3px 0 0 var(--accent); }
.login-brand { position: relative; background: var(--grad-navy); box-shadow: inset -4px 0 0 var(--accent); }
.button-primary { background: linear-gradient(180deg, #0f5a82 0%, #0e4a6b 100%); }
.button-primary:hover:not(:disabled) { background: linear-gradient(180deg, #1a6f9e 0%, #0f5a82 100%); }
.chart-bar.income-bar { background: linear-gradient(180deg, #1a7fb8 0%, #0f5a82 100%); }
.chart-bar.expense-bar { background: linear-gradient(180deg, #6cc4c7 0%, #45afb3 100%); }
.category-fill { background: linear-gradient(90deg, #0f5a82, #1a7fb8); }
.category-row:nth-child(3n + 2) .category-fill { background: linear-gradient(90deg, #1a7fb8, #45afb3); }
.category-row:nth-child(3n) .category-fill { background: linear-gradient(90deg, #0e4a6b, #0f5a82); }
.metric-net::after { position: absolute; top: -1px; right: -1px; left: -1px; height: 3px; border-radius: 5px 5px 0 0; background: var(--grad-bars); content: ''; }
@media (max-width: 780px) { .sidebar { box-shadow: inset 0 -3px 0 var(--accent); } }

/* KI Solutions logo */
.brand-logo { display: block; width: 190px; height: auto; }
.login-brand .brand-logo-full { width: 300px; max-width: 100%; }
.brand { margin-left: 2px; }
@media (max-width: 780px) { .brand-logo { width: 120px; } .login-brand .brand-logo-full { width: 220px; } }
