:root {
  color-scheme: light;
  --navy: #0B1F3B;
  --navy-soft: #42526B;
  --teal: #008C86;
  --teal-dark: #006F6A;
  --teal-pale: #E7F7F6;
  --sidebar: #F5F7FA;
  --ink: #24364B;
  --muted: #7D8797;
  --line: #E3E8EF;
  --surface: #ffffff;
  --canvas: #F5F7FA;
  --green: #23885d;
  --green-pale: #e9f6ef;
  --red: #c45050;
  --red-pale: #fff0ef;
  --amber: #ad7415;
  --amber-pale: #fff6e5;
  --shadow: 0 2px 8px rgba(11, 31, 59, .045);
  font-family: "Inter", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); }
* { box-sizing: border-box; }
h1, h2, h3, .brand-name, .panel-title, .kpi-value { font-family: "Manrope", "Inter", Arial, sans-serif; }
html, body { width: 100%; min-width: 320px; min-height: 100%; margin: 0; }
body { background: var(--canvas); color: var(--ink); font-size: 13px; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(0, 140, 134, .28); outline-offset: 2px; }
.demo-app { min-height: 100vh; display: flex; }
.sidebar { width: 224px; flex: 0 0 224px; min-height: 100vh; display: flex; flex-direction: column; padding: 18px 12px 14px; background: var(--sidebar); border-right: 1px solid #d9edf1; }
.brand { height: 54px; margin: 0 7px 25px; display: flex; align-items: center; text-decoration: none; color: var(--navy); }
.brand-logo { display:block; width:100%; max-width:184px; max-height:48px; height:auto; object-fit:contain; object-position:left center; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 34px; position: relative; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 9px; background: var(--teal); box-shadow: 0 4px 9px rgba(0, 140, 134, .18); }
.brand-mark i { display: block; width: 6px; border-radius: 4px; background: #fff; }
.brand-mark i:nth-child(1) { height: 12px; opacity: .7; }
.brand-mark i:nth-child(2) { height: 20px; }
.brand-mark i:nth-child(3) { height: 15px; opacity: .84; }
.brand-name { font-size: 19px; font-weight: 750; line-height: 1; letter-spacing: .1px; }
.brand-name > span { color: var(--teal); }
.brand-name small { display: block; margin-top: 5px; color: #7690a1; font-size: 9px; font-weight: 650; letter-spacing: .25px; }
.sidebar-caption { padding: 0 12px; margin-bottom: 8px; color: #8aa0af; font-size: 9px; font-weight: 750; letter-spacing: 1px; }
.primary-nav { display: grid; gap: 3px; }
.nav-item { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #546c80; text-align: left; cursor: pointer; transition: background .16s ease, color .16s ease, transform .16s ease; }
.nav-item:hover { background: rgba(255,255,255,.75); color: var(--navy); }
.nav-item:active { transform: translateY(1px); }
.nav-item.is-active { background: #fff; color: var(--teal-dark); font-weight: 700; box-shadow: 0 2px 7px rgba(16,43,80,.055); }
.nav-item .icon { width: 17px; height: 17px; }
.nav-item-label { flex: 1; }
.nav-item .nav-count { padding: 2px 6px; border-radius: 9px; background: #d6eff0; color: var(--teal-dark); font-size: 10px; font-weight: 700; }
.sidebar-bottom { margin-top: auto; min-height: 54px; display: flex; align-items: center; gap: 9px; padding: 8px 7px 2px; border-top: 1px solid #d9edf1; }
.workspace-avatar, .user-avatar { display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-weight: 750; }
.workspace-avatar { width: 32px; height: 32px; background: #d5f1f2; color: var(--teal-dark); }
.workspace-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }
.workspace-copy strong { overflow: hidden; color: var(--navy); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-copy small { color: var(--muted); font-size: 10px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #39a777; box-shadow: 0 0 0 3px #d8f0e2; }
.app-surface { flex: 1; min-width: 0; }
.topbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 26px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumbs { min-width: 0; display: flex; align-items: center; gap: 10px; color: #8193a5; font-size: 12px; }
.breadcrumbs b { color: #c0cbd4; font-weight: 400; }
.breadcrumbs strong { overflow: hidden; color: var(--navy); font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.demo-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid #d7edeb; border-radius: 20px; background: #f7fcfb; color: #397c70; font-size: 10px; font-weight: 650; white-space: nowrap; }
.demo-pill span { width: 6px; height: 6px; border-radius: 50%; background: #43a579; }
.icon-button { position: relative; width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #607b8f; cursor: pointer; }
.icon-button:hover { border-color: var(--line); background: #f8fbfc; color: var(--teal-dark); }
.icon { display: inline-grid; width: 18px; height: 18px; place-items: center; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notification-button i { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: #e07164; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 3px 1px 3px 5px; border: 0; background: transparent; cursor: pointer; }
.user-avatar { width: 31px; height: 31px; background: #e7f3ed; color: #477a5e; font-size: 10px; }
.user-name { color: #465e73; font-size: 11px; font-weight: 650; }
.chevron { margin-left: 1px; color: #91a1af; font-size: 15px; }
.menu-toggle { display: none; }
.workspace { max-width: 1600px; margin: 0 auto; padding: 24px 26px 36px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.page-title-wrap { min-width: 0; }
.page-eyebrow { margin-bottom: 7px; color: var(--teal-dark); font-size: 9px; font-weight: 750; letter-spacing: 1px; text-transform: uppercase; }
h1, h2, h3, p { margin: 0; }
h1 { color: var(--navy); font-size: 22px; font-weight: 700; line-height: 1.25; }
.page-subtitle { margin-top: 6px; color: #7c8e9f; font-size: 12px; line-height: 1.55; }
.page-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid #d5e0e6; border-radius: 7px; background: #fff; color: var(--navy); font-size: 11px; font-weight: 650; cursor: pointer; transition: .16s ease; }
.button:hover { border-color: #9bcfd2; background: #f4fbfb; color: var(--teal-dark); }
.button-primary { border-color: var(--teal); background: var(--teal); color: #fff; }
.button-primary:hover { border-color: var(--teal-dark); background: var(--teal-dark); color: #fff; box-shadow: 0 3px 10px rgba(7,154,155,.15); }
.button .icon { width: 14px; height: 14px; }
.date-control { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #d5e0e6; border-radius: 7px; background: #fff; color: #50697e; }
.date-control select { max-width: 110px; border: 0; background: transparent; color: var(--navy); font-size: 11px; font-weight: 650; cursor: pointer; }
.date-control .icon { width: 14px; height: 14px; color: var(--teal-dark); }
.demo-notice { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; padding: 9px 12px; border: 1px solid #d9ecec; border-radius: 7px; background: #f5fbfb; color: #58777e; font-size: 10px; line-height: 1.45; }
.demo-notice .icon { flex: 0 0 15px; width: 15px; height: 15px; color: var(--teal-dark); }
.demo-notice strong { color: #356c70; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.panel, .kpi-card { min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); }
.kpi-card { position: relative; overflow: hidden; min-height: 117px; padding: 15px 16px 13px; }
.kpi-card::before { position: absolute; top: 0; left: 0; width: 3px; height: 100%; content: ""; background: var(--kpi-color, var(--teal)); opacity: .8; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-label { color: #718598; font-size: 10px; font-weight: 600; }
.kpi-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: var(--kpi-pale, var(--teal-pale)); color: var(--kpi-color, var(--teal-dark)); }
.kpi-icon .icon { width: 15px; height: 15px; }
.kpi-value { margin-top: 12px; color: var(--navy); font-size: 21px; font-weight: 700; letter-spacing: .1px; line-height: 1; }
.kpi-foot { display: flex; align-items: center; gap: 6px; margin-top: 9px; color: #93a2af; font-size: 10px; }
.kpi-change { color: var(--green); font-weight: 700; }
.kpi-change.down { color: var(--red); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, .9fr); gap: 14px; margin-bottom: 14px; }
.panel-head { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 15px; border-bottom: 1px solid #edf1f3; }
.panel-title { color: var(--navy); font-size: 12px; font-weight: 700; }
.panel-caption { margin-top: 3px; color: #97a5b1; font-size: 10px; }
.panel-body { padding: 14px 15px; }
.segment-control { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #e6edf1; border-radius: 6px; background: #f8fafb; }
.segment-control button { min-width: 31px; height: 23px; padding: 0 7px; border: 0; border-radius: 4px; background: transparent; color: #7f91a1; font-size: 9px; cursor: pointer; }
.segment-control button.is-selected { background: #fff; color: var(--teal-dark); font-weight: 700; box-shadow: 0 1px 3px rgba(16,43,80,.09); }
.chart-legend { display: flex; align-items: center; gap: 14px; color: #728698; font-size: 10px; }
.legend-key { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--legend-color); }
.bar-chart { height: 204px; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 8px 0 23px; }
.chart-guides { position: absolute; inset: 12px 0 28px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.chart-guides span { width: 100%; border-top: 1px dashed #e9eef1; }
.bar-plot { position: absolute; inset: 9px 5px 25px 0; display: flex; align-items: flex-end; justify-content: space-around; }
.bar-group { position: relative; z-index: 1; width: 9%; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.bar { width: clamp(7px, 1.1vw, 13px); max-height: 100%; min-height: 3px; border-radius: 3px 3px 1px 1px; transform-origin: bottom; animation: bar-rise .65s cubic-bezier(.2,.7,.25,1) both; transition: filter .16s ease, opacity .16s ease; cursor: help; }
.bar:hover { filter: brightness(.9); }
.bar.revenue { background: linear-gradient(180deg, #23b6b0, #079a9b); }
.bar.expense { background: #b6dadd; }
.chart-months { position: absolute; inset: auto 0 1px; display: flex; justify-content: space-around; color: #91a0ad; font-size: 9px; }
@keyframes bar-rise { from { transform: scaleY(.05); opacity: .35; } to { transform: scaleY(1); opacity: 1; } }
.liquidity-wrap { min-height: 205px; display: grid; grid-template-columns: minmax(125px, 1fr) minmax(110px, .9fr); align-items: center; gap: 7px; }
.donut-chart { position: relative; width: min(100%, 172px); aspect-ratio: 1; margin: auto; border-radius: 50%; background: conic-gradient(#079a9b 0 43%, #78c5bf 43% 69%, #bedde0 69% 86%, #e8eff1 86% 100%); }
.donut-chart::after { position: absolute; inset: 26%; border-radius: 50%; background: #fff; content: ""; }
.donut-center { position: absolute; z-index: 1; inset: 0; display: grid; align-content: center; justify-items: center; color: var(--navy); font-size: 16px; font-weight: 700; }
.donut-center small { margin-top: 4px; color: #93a1ac; font-size: 9px; font-weight: 550; }
.liquidity-legend { display: grid; gap: 12px; }
.liquidity-line { display: grid; grid-template-columns: 8px minmax(0,1fr); align-items: start; column-gap: 7px; row-gap: 3px; }
.liquidity-line i { width: 7px; height: 7px; margin-top: 3px; border-radius: 2px; background: var(--legend-color); }
.liquidity-line span { overflow: hidden; color: #75899a; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.liquidity-line strong { grid-column: 2; color: var(--navy); font-size: 10px; font-weight: 650; }
.table-panel { overflow: hidden; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { padding: 10px 13px; background: #f9fbfc; color: #8394a3; font-size: 9px; font-weight: 700; }
td { padding: 11px 13px; border-top: 1px solid #eff2f4; color: #526a7e; font-size: 10px; }
tbody tr { transition: background .14s ease; }
tbody tr:hover { background: #f8fcfc; }
.clickable-row { cursor: pointer; }
.cell-strong { color: var(--navy); font-weight: 650; }
.cell-sub { display: block; margin-top: 3px; color: #99a6b0; font-size: 9px; }
.amount { color: var(--navy); font-weight: 650; text-align: right; }
.align-right { text-align: right; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 10px; background: var(--status-pale, var(--green-pale)); color: var(--status-color, var(--green)); font-size: 9px; font-weight: 650; }
.status::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.status.pending { --status-pale: var(--amber-pale); --status-color: var(--amber); }
.status.overdue { --status-pale: var(--red-pale); --status-color: var(--red); }
.table-link { border: 0; background: none; color: var(--teal-dark); font-size: 10px; font-weight: 650; cursor: pointer; }
.table-link:hover { text-decoration: underline; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid #edf1f3; color: #8797a4; font-size: 9px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 10px; }
.section-heading:first-child { margin-top: 0; }
.section-heading h2 { color: var(--navy); font-size: 13px; font-weight: 700; }
.section-heading p { margin-top: 4px; color: #8a9aa7; font-size: 10px; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.module-card { display: flex; flex-direction: column; min-height: 150px; padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); cursor: pointer; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.module-card:hover { transform: translateY(-2px); border-color: #acd9d9; box-shadow: 0 6px 18px rgba(16,43,80,.08); }
.module-card-head { display: flex; align-items: center; justify-content: space-between; }
.module-card-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--icon-bg, var(--teal-pale)); color: var(--icon-color, var(--teal-dark)); }
.module-card-icon .icon { width: 17px; height: 17px; }
.module-card-arrow { color: #9aabb7; font-size: 17px; }
.module-card h3 { margin-top: 13px; color: var(--navy); font-size: 12px; }
.module-card p { margin-top: 5px; color: #8495a3; font-size: 10px; line-height: 1.45; }
.module-card-meta { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 13px; color: #718798; font-size: 9px; }
.module-card-meta strong { color: var(--navy); font-size: 10px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.search-field { min-height: 34px; width: min(250px, 100%); display: inline-flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #dce5ea; border-radius: 7px; background: #fff; color: #8da0af; }
.search-field .icon { width: 14px; height: 14px; flex: 0 0 auto; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.search-field input::placeholder { color: #a0adb8; }
.filter-select { min-height: 34px; padding: 0 9px; border: 1px solid #dce5ea; border-radius: 7px; background: #fff; color: #50697e; font-size: 10px; }
.stat-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.mini-stat { padding: 13px 15px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.mini-stat span { display: block; color: #8293a1; font-size: 10px; }
.mini-stat strong { display: block; margin-top: 8px; color: var(--navy); font-size: 18px; }
.mini-stat small { display: block; margin-top: 4px; color: #96a4ae; font-size: 9px; }
.empty-state { padding: 34px 15px; color: #8394a2; text-align: center; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--navy); }
.report-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.report-row { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid #e5ecef; border-radius: 6px; background: #fff; cursor: pointer; text-align: left; }
.report-row:hover, .report-row.is-selected { border-color: #a8d7d6; background: #f7fcfb; }
.report-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 7px; background: #f0f7f7; color: var(--teal-dark); }
.report-icon .icon { width: 15px; height: 15px; }
.report-copy { min-width: 0; flex: 1; }
.report-copy strong { display: block; color: var(--navy); font-size: 10px; }
.report-copy small { display: block; margin-top: 4px; color: #8b9aa6; font-size: 9px; }
.report-row > span:last-child { color: #91a2ae; font-size: 15px; }
.ai-layout { max-width: 870px; display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 13px; }
.chat-panel { min-height: 470px; display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid #edf1f3; }
.ai-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #e5f7f5; color: var(--teal-dark); font-weight: 800; }
.ai-title { flex: 1; }
.ai-title strong { display: block; color: var(--navy); font-size: 11px; }
.ai-title small { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: #8697a4; font-size: 9px; }
.ai-title small i { width: 5px; height: 5px; border-radius: 50%; background: #46a77e; }
.chat-stream { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px; overflow-y: auto; background: linear-gradient(180deg,#fcfefe,#f8fbfc); }
.chat-message { max-width: min(84%, 460px); padding: 10px 12px; border: 1px solid #e8eef0; border-radius: 2px 9px 9px 9px; background: #fff; color: #556d80; font-size: 10px; line-height: 1.55; box-shadow: 0 1px 3px rgba(16,43,80,.03); }
.chat-message.user { align-self: flex-end; border-color: #cfe9e8; border-radius: 9px 2px 9px 9px; background: #eaf8f7; color: #356c6b; }
.chat-message small { display: block; margin-top: 6px; color: #9aa8b2; font-size: 8px; }
.chat-compose { display: flex; align-items: center; gap: 8px; padding: 10px; border-top: 1px solid #edf1f3; background: #fff; }
.chat-compose input { min-width: 0; flex: 1; height: 36px; padding: 0 10px; border: 1px solid #e1e9ed; border-radius: 6px; outline: 0; color: var(--ink); font-size: 10px; }
.chat-compose input:focus { border-color: #80c4c3; }
.chat-compose .button { min-width: 36px; padding: 0; }
.chat-compose .button .icon { width: 15px; height: 15px; }
.ai-side { display: flex; flex-direction: column; gap: 12px; }
.ai-side-panel { padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.ai-side-panel h2 { color: var(--navy); font-size: 11px; }
.ai-side-panel p { margin-top: 7px; color: #8293a1; font-size: 9px; line-height: 1.5; }
.prompt-list { display: grid; gap: 6px; margin-top: 11px; }
.prompt-chip { padding: 8px 9px; border: 1px solid #e6edef; border-radius: 6px; background: #fbfdfd; color: #526b7e; font-size: 9px; line-height: 1.4; text-align: left; cursor: pointer; }
.prompt-chip:hover { border-color: #a8d7d6; color: var(--teal-dark); }
.simulation-note { padding: 9px 10px; border: 1px solid #f0e5c7; border-radius: 6px; background: #fffbf1; color: #8a733e; font-size: 9px; line-height: 1.5; }
.mobile-scrim { display: none; }
.toast { position: fixed; z-index: 20; right: 20px; bottom: 20px; max-width: min(360px, calc(100vw - 32px)); padding: 11px 14px; border: 1px solid #d8e9e9; border-radius: 7px; background: #fff; color: var(--navy); box-shadow: 0 8px 30px rgba(16,43,80,.15); font-size: 11px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.detail-dialog { width: min(470px, calc(100vw - 28px)); max-height: min(80vh, 680px); padding: 0; border: 1px solid #dce7eb; border-radius: 9px; background: #fff; color: var(--ink); box-shadow: 0 20px 70px rgba(16,43,80,.22); }
.detail-dialog::backdrop { background: rgba(16,43,80,.28); backdrop-filter: blur(2px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 18px 13px; border-bottom: 1px solid #edf1f3; }
.dialog-head h2 { color: var(--navy); font-size: 15px; }
.dialog-head p { margin-top: 5px; color: #8a9aa7; font-size: 10px; }
.dialog-body { padding: 15px 18px 18px; }
.dialog-close { width: 28px; height: 28px; border: 1px solid #e2e9ed; border-radius: 6px; background: #fff; color: #6d8191; cursor: pointer; }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.dialog-field { padding: 10px; border: 1px solid #edf1f3; border-radius: 6px; }
.dialog-field span { display: block; color: #8797a4; font-size: 9px; }
.dialog-field strong { display: block; margin-top: 5px; color: var(--navy); font-size: 11px; }
.dialog-note { margin-top: 12px; padding: 10px; border-radius: 6px; background: #f6fafb; color: #718696; font-size: 9px; line-height: 1.55; }

@media (min-width: 1440px) { .workspace { padding-right: 34px; padding-left: 34px; } }
@media (max-width: 1100px) {
  .sidebar { width: 204px; flex-basis: 204px; }
  .workspace { padding: 20px 18px 30px; }
  .topbar { padding: 0 18px; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; z-index: 15; inset: 0 auto 0 0; width: min(280px, 84vw); min-height: 100dvh; transform: translateX(-101%); transition: transform .22s ease; box-shadow: 10px 0 30px rgba(16,43,80,.12); }
  .sidebar.is-open { transform: translateX(0); }
  .mobile-scrim:not([hidden]) { position: fixed; z-index: 14; inset: 0; display: block; background: rgba(16,43,80,.28); }
  .menu-toggle { display: inline-grid; flex: 0 0 34px; }
  .topbar { min-height: 56px; justify-content: flex-start; gap: 9px; padding: 0 12px; }
  .breadcrumbs { flex: 1; gap: 7px; font-size: 10px; }
  .topbar-actions { gap: 6px; }
  .demo-pill { padding: 6px 7px; font-size: 9px; }
  .user-name, .user-chip .chevron { display: none; }
  .user-chip { padding: 2px; }
  .notification-button { width: 30px; }
  .workspace { padding: 18px 12px 26px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 15px; }
  h1 { font-size: 20px; }
  .page-actions { width: 100%; flex-wrap: wrap; }
  .date-control { flex: 1; }
  .date-control select { flex: 1; max-width: none; }
  .kpi-grid { gap: 8px; }
  .kpi-card { min-height: 108px; padding: 12px 12px 11px; }
  .kpi-value { font-size: 18px; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .panel-head { padding: 0 12px; }
  .panel-body { padding: 12px; }
  .bar-chart { height: 185px; }
  .liquidity-wrap { min-height: 190px; grid-template-columns: minmax(120px, .9fr) minmax(105px, 1fr); }
  .module-grid { gap: 8px; }
  .module-card { min-height: 146px; padding: 12px; }
  .stat-row { gap: 8px; }
  .mini-stat { padding: 11px; }
  .mini-stat strong { font-size: 15px; }
  .report-list { grid-template-columns: 1fr; }
  .ai-layout { grid-template-columns: 1fr; }
  .chat-panel { min-height: 430px; }
  .ai-side { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .demo-pill { display: none; }
  .workspace { padding-right: 10px; padding-left: 10px; }
  .kpi-grid { gap: 7px; }
  .kpi-card { padding-right: 9px; padding-left: 10px; }
  .kpi-value { font-size: 16px; }
  .kpi-icon { width: 24px; height: 24px; }
  .module-grid { grid-template-columns: 1fr 1fr; }
  .module-card { min-height: 154px; }
  .ai-side { grid-template-columns: 1fr; }
  .chart-legend { gap: 8px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* WhatsApp-inspired Penni chat, using the bundled Pennivox app icon */
.whatsapp-panel { border-radius: 9px; }
.whatsapp-head { min-height: 64px; padding: 10px 15px; gap: 11px; background: #087d70; border-bottom: 0; color: #fff; }
.whatsapp-head .wa-back { color: #fff; font-size: 27px; line-height: 1; margin-right: 1px; }
.whatsapp-head .ai-avatar { width: 38px; height: 38px; object-fit: contain; padding: 3px; border-radius: 50%; background: #fff; }
.whatsapp-head .ai-title strong { color: #fff; font-size: 13px; font-weight: 700; }
.whatsapp-head .ai-title small { color: rgba(255,255,255,.86); font-size: 10px; }
.whatsapp-head .ai-title small i { display: none; }
.wa-head-actions { display: flex; gap: 19px; align-items: center; color: #fff; font-size: 19px; }
.whatsapp-stream { min-height: 360px; gap: 10px; padding: 18px 15px; background-color: #efe9e1; background-image: radial-gradient(rgba(130,115,95,.075) .7px, transparent .7px); background-size: 14px 14px; }
.chat-message { max-width: min(86%, 470px); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: inherit; font-size: 11px; }
.assistant-message, .user-message { display: flex; align-items: flex-end; gap: 6px; }
.user-message { align-self: flex-end; }
.message-avatar { width: 27px; height: 27px; flex: 0 0 27px; object-fit: contain; padding: 2px; border-radius: 50%; background: #fff; }
.message-bubble { max-width: 100%; padding: 9px 11px 7px; border: 1px solid rgba(0,0,0,.035); border-radius: 10px; background: #fff; color: #182b39; font-size: 11px; line-height: 1.5; box-shadow: 0 1px 2px rgba(0,0,0,.07); }
.user-message .message-bubble { border-radius: 10px 10px 3px 10px; background: #d9f7c8; }
.message-bubble small { display: flex; justify-content: flex-end; align-items: center; gap: 5px; margin-top: 4px; color: #78878b; font-size: 8px; }
.message-bubble small span { color: #78878b; }
.wa-ticks { color: #159b91; font-size: 9px; letter-spacing: -2px; }
.whatsapp-compose { gap: 8px; padding: 9px 11px; border-top: 0; background: #f7f7f7; }
.whatsapp-compose input { height: 39px; padding: 0 12px; border: 0; border-radius: 22px; background: #fff; font-size: 11px; }
.whatsapp-compose .wa-compose-icon, .whatsapp-compose .wa-compose-attach { color: #829197; font-size: 19px; line-height: 1; }
.whatsapp-compose .button { width: 39px; height: 39px; min-width: 39px; border-radius: 50%; background: #078f80; }
.whatsapp-compose .button .icon { width: 17px; height: 17px; }
@media (max-width: 720px) {
  .whatsapp-stream { min-height: 330px; padding: 14px 10px; }
  .chat-message { max-width: 91%; }
  .message-bubble { font-size: 11px; }
  .whatsapp-head { padding: 9px 11px; }
  .wa-head-actions { gap: 14px; }
  .whatsapp-compose { padding: 8px; }
}

/* Guided product tour */
.guided-tour{position:fixed;z-index:1000;left:50%;bottom:22px;transform:translateX(-50%);width:min(560px,calc(100% - 28px));}
.guided-tour[hidden]{display:none}
.guided-tour-card{padding:19px 21px 17px;border:1px solid #cfe5e5;border-radius:15px;background:rgba(255,255,255,.98);box-shadow:0 18px 55px rgba(11,31,59,.22);}
.guided-tour-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.guided-tour-kicker{color:var(--teal-dark);font-size:9px;font-weight:800;letter-spacing:1.1px}
.guided-tour-exit{border:0;background:transparent;color:#718295;font-size:11px;font-weight:650;cursor:pointer}
.guided-tour-progress{height:4px;margin:13px 0 12px;border-radius:5px;background:#e9eff2;overflow:hidden}
.guided-tour-progress span{display:block;width:14.28%;height:100%;border-radius:5px;background:var(--teal);transition:width .22s ease}
.guided-tour-count{margin-bottom:5px;color:#8090a0;font-size:10px;font-weight:650}
.guided-tour-card h2{margin:0 0 6px;color:var(--navy);font-size:19px;line-height:1.25}
.guided-tour-card p:not(.guided-tour-count){color:#5e7184;font-size:12px;line-height:1.55}
.guided-tour-actions{display:flex;align-items:center;gap:10px;margin-top:16px}
.guided-tour-actions span{flex:1}
.guided-tour-actions button{min-height:35px;padding:0 13px;border-radius:7px;font-size:11px;font-weight:700;cursor:pointer}
.tour-secondary{border:1px solid #d9e3e9;background:#fff;color:#50677c}
.tour-secondary:disabled{opacity:.4;cursor:not-allowed}
.tour-primary{border:1px solid var(--teal);background:var(--teal);color:#fff}
@media(max-width:600px){.guided-tour{bottom:10px;width:calc(100% - 18px)}.guided-tour-card{padding:15px}.guided-tour-card h2{font-size:17px}}


/* v1.3.57 — Notion-style contextual product tour */
.tour-backdrop[hidden],.guided-tour[hidden]{display:none!important}
.tour-backdrop{position:fixed;inset:0;background:rgba(8,18,32,.42);z-index:900;pointer-events:none}
.tour-spotlight{position:relative!important;z-index:901!important;isolation:isolate;border-radius:12px!important;outline:2px solid #12a7a0!important;outline-offset:3px!important;box-shadow:0 0 0 5px rgba(18,167,160,.16),0 12px 38px rgba(8,18,32,.2)!important;background-clip:padding-box}
.guided-tour{position:fixed;z-index:1002;left:18px;top:18px;right:auto;bottom:auto;width:min(360px,calc(100vw - 24px));transform:none;margin:0}
.guided-tour[hidden]{display:none!important}
.guided-tour-card{padding:16px 17px 14px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:#17191d;color:#f7f8fa;box-shadow:0 14px 38px rgba(0,0,0,.34)}
.guided-tour-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.guided-tour-kicker{color:#8fe0d9;font-size:9px;font-weight:800;letter-spacing:1.15px}
.guided-tour-exit{border:0;background:transparent;color:#c2c8d0;font-size:11px;font-weight:650;cursor:pointer}
.guided-tour-progress{height:4px;margin:12px 0 10px;border-radius:5px;background:#3a414b;overflow:hidden}
.guided-tour-progress span{display:block;width:0;height:100%;border-radius:5px;background:#13a39c;transition:width .22s ease}
.guided-tour-count{margin:0 0 5px;color:#aab4c0;font-size:10px;font-weight:650}
.guided-tour-card h2{margin:0 0 6px;color:#fff;font-size:17px;line-height:1.25;font-weight:750}
.guided-tour-card p:not(.guided-tour-count){margin:0;color:#d1d6dd;font-size:12px;line-height:1.55}
.guided-tour-actions{display:flex;align-items:center;gap:7px;margin-top:14px}
.guided-tour-actions span{flex:1}
.guided-tour-actions button{min-height:31px;padding:0 10px;border-radius:6px;font-size:10px;font-weight:700;cursor:pointer}
.tour-secondary{border:1px solid #515a66;background:#252a31;color:#f0f2f5}
.tour-secondary:disabled{opacity:.4;cursor:not-allowed}
.tour-primary{border:1px solid #0b9992;background:#0b9992;color:#fff}
@media(max-width:620px){
  .guided-tour{width:min(340px,calc(100vw - 20px))}
  .guided-tour-card{padding:14px 14px 12px}
  .guided-tour-card h2{font-size:16px}
  .guided-tour-card p:not(.guided-tour-count){font-size:11px}
  .guided-tour-actions{gap:6px}
  .guided-tour-actions button{min-height:34px;padding:0 9px}
}


/* v1.3.58 — guided examples and persistent tour restart */
.tour-restart-button{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 11px;border:1px solid #b9dedb;border-radius:999px;background:#f2fbfa;color:#007d77;font-size:10px;font-weight:750;white-space:nowrap;cursor:pointer;transition:background .18s ease,border-color .18s ease}
.tour-restart-button:hover{background:#e3f6f4;border-color:#0b9992}
.tour-try{border-color:#64717f;background:#303740;color:#fff}
.tour-try:hover{background:#3b4652}
@media(max-width:620px){
 .tour-restart-button{min-height:28px;padding:0 8px;font-size:9px}
 .topbar-actions{gap:6px}
 .guided-tour-actions{flex-wrap:wrap}
 .guided-tour-actions .tour-try{order:1}
 .guided-tour-actions #tour-back{order:2}
 .guided-tour-actions span{display:none}
 .guided-tour-actions #tour-free{order:3;margin-left:auto}
 .guided-tour-actions #tour-next{order:4}
}
\n\n

/* v1.3.61 — contextual tour card is positioned beside its highlighted feature.
   Keep these rules free of !important on top/left so JS can set real document coordinates. */
.guided-tour{position:absolute;z-index:1002;left:0;top:0;right:auto;bottom:auto;width:min(360px,calc(100vw - 24px));max-width:calc(100vw - 24px);margin:0;transform:none;transition:left .18s ease,top .18s ease}
.guided-tour[hidden]{display:none!important}
.guided-tour-card{max-height:none;overflow:visible;overscroll-behavior:auto}
@media(max-width:620px){.guided-tour{width:min(360px,calc(100vw - 24px))}.guided-tour-card{padding:13px 14px 12px}.guided-tour-actions{position:static;background:transparent;padding-top:8px}}
