:root {
  color-scheme: light;
  --ink: #20233a;
  --muted: #8b8ea3;
  --line: #ececf2;
  --purple: #675de6;
  --sidebar: #fff;
  --page: #f7f8fb;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: "DM Sans", sans-serif; font-size: 13px; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; }
.auth-screen { align-items: center; display: flex; justify-content: center; min-height: 100vh; padding: 24px; }
.auth-card { background: white; border: 1px solid #ededef; border-radius: 12px; box-shadow: 0 12px 40px #20233a0d; max-width: 420px; padding: 30px; width: 100%; }
.auth-brand { margin: 0 0 28px; }
.auth-card h1 { font-size: 21px; margin-bottom: 7px; }
.auth-description, .auth-footnote { color: #898b9d; font-size: 11px; line-height: 1.6; }
.auth-message { color: #66697e; font-size: 11px; line-height: 1.5; min-height: 17px; }
.auth-message.is-error { color: #b6434e; }
.auth-form { display: grid; gap: 14px; }
.auth-submit { height: 38px; margin-top: 3px; width: 100%; }
.auth-submit:disabled { cursor: wait; opacity: .65; }
.auth-divider { align-items: center; color: #a0a2b0; display: flex; font-size: 10px; gap: 12px; }
.auth-divider::before, .auth-divider::after { background: #ececf2; content: ""; flex: 1; height: 1px; }
.button-google { background: white; border: 1px solid #e4e5eb; color: #45475e; height: 38px; width: 100%; }
.button-google:hover { background: #fafaff; border-color: #d7d5f6; }
.button-google:disabled { cursor: wait; opacity: .65; }
.button-google svg { height: 17px; width: 17px; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; margin-top: 15px; }
.text-button { background: none; border: 0; color: #6259d4; cursor: pointer; font-size: 10px; padding: 3px 0; }
.danger-button { color: #b6434e; margin-left: 9px; }
.record-module-grid { align-items: start; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
.record-module-grid .module-panel { min-width: 0; }
.record-form .finance-form-actions { gap: 8px; }
.record-module-grid .module-table { min-width: 560px; }
.search-dialog { border: 1px solid #e8e8ef; border-radius: 11px; box-shadow: 0 18px 60px #20233a25; color: var(--ink); max-height: min(80vh, 620px); max-width: min(620px, calc(100vw - 28px)); padding: 20px; width: 100%; }
.search-dialog::backdrop { background: #20233a66; }
.search-dialog-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 15px; }
.search-dialog-heading h2 { font-family: Manrope, sans-serif; font-size: 15px; margin: 0; }
.search-results { display: grid; gap: 5px; margin-top: 12px; max-height: 45vh; overflow-y: auto; }
.search-results > p { color: #9294a6; font-size: 11px; margin: 8px 0; }
.search-result { background: #fff; border: 1px solid #eeeef3; border-radius: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 10px; text-align: left; }
.search-result:hover { background: #f7f7ff; border-color: #dbd9f7; }
.search-result strong { color: #42445b; font-size: 11px; }
.search-result small { color: #9294a6; font-size: 9px; }
.auth-signout { margin-top: 12px; }
.auth-footnote { border-top: 1px solid #f0f0f4; font-size: 10px; margin: 24px 0 0; padding-top: 14px; }

.sidebar { background: var(--sidebar); border-right: 1px solid #eeeff4; bottom: 0; display: flex; flex-direction: column; left: 0; padding: 24px 16px 14px; position: fixed; top: 0; width: 248px; z-index: 20; }
.brand { align-items: center; display: flex; gap: 10px; height: 36px; margin: 0 8px 26px; }
.brand-mark { align-items: center; background: #675de6; border-radius: 11px; color: white; display: flex; height: 34px; justify-content: center; width: 34px; }
.brand-mark svg { height: 24px; width: 24px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-family: Manrope, sans-serif; font-size: 17px; font-weight: 800; letter-spacing: -.8px; }
.brand-copy small { color: #9698aa; font-size: 8px; font-weight: 700; letter-spacing: 1.25px; margin-top: 4px; }
.workspace-switcher { align-items: center; background: #f8f8fb; border: 1px solid #f0f0f4; border-radius: 9px; display: flex; gap: 10px; margin: 0 0 28px; padding: 10px 9px; }
.workspace-avatar { align-items: center; background: #e9e7ff; border-radius: 8px; color: #655bd4; display: flex; font-family: Manrope, sans-serif; font-size: 14px; font-weight: 800; height: 32px; justify-content: center; width: 32px; }
.workspace-copy, .profile-copy { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.workspace-copy strong, .workspace-copy > span { font-size: 11px; font-weight: 700; }
.workspace-copy select { appearance: none; background: transparent; border: 0; color: #77798d; font: 9px "DM Sans", sans-serif; min-width: 0; outline: none; width: 100%; }
.workspace-copy select:disabled { opacity: 1; }
.workspace-copy small, .profile-copy small { color: var(--muted); font-size: 10px; }
.chevron, .small-chevron { fill: none; height: 15px; stroke: #8c8fa1; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; width: 15px; }
.nav-label { color: #a3a5b4; font-size: 9px; font-weight: 700; letter-spacing: 1.05px; margin: 0 10px 9px; }
.nav-label-spaced { margin-top: 24px; }
.primary-nav { overflow-y: auto; }
.nav-link { align-items: center; border-radius: 7px; color: #777a90; display: flex; font-size: 12px; font-weight: 500; gap: 11px; height: 38px; margin: 2px 0; padding: 0 10px; transition: background .16s, color .16s; }
.nav-link svg { fill: none; flex: none; height: 17px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.55; width: 17px; }
.nav-link:hover { background: #f7f7fb; color: var(--purple); }
.nav-link.active { background: #efefff; color: #5e55d3; font-weight: 700; }
.finance-subnav { border-left: 1px solid #e8e7f6; display: flex; flex-direction: column; margin: 0 0 7px 18px; padding: 1px 0 1px 12px; }
.finance-nav-link { border-radius: 5px; color: #85879a; font-size: 10px; line-height: 1.25; margin: 1px 0; padding: 7px 8px; }
.finance-nav-link:hover, .finance-nav-link.active { background: #f5f4ff; color: #5e55d3; }
.finance-nav-link.active { font-weight: 700; }
.nav-count { background: #f0f0f5; border-radius: 10px; color: #818397; font-size: 10px; margin-left: auto; padding: 3px 7px; }
.lock-icon { color: #a8a8b7; font-size: 15px; margin-left: auto; transform: rotate(180deg); }
.sidebar-bottom { margin-top: auto; }
.help-card { background: #f8f8fc; border: 1px solid #f0f0f4; border-radius: 9px; margin: 16px 0 15px; padding: 13px 12px 12px; }
.help-icon { align-items: center; border: 1px solid #dedcf8; border-radius: 50%; color: #6a61dd; display: flex; font-size: 10px; font-weight: 700; height: 18px; justify-content: center; margin-bottom: 9px; width: 18px; }
.help-card strong { font-size: 11px; }
.help-card p { color: #9294a6; font-size: 10px; line-height: 1.55; margin: 5px 0 8px; }
.help-card a { color: #6259d4; font-size: 10px; font-weight: 700; }
.help-card a span { font-size: 13px; margin-left: 2px; }
.profile-button { align-items: center; background: transparent; border: 0; border-top: 1px solid #f0f0f4; cursor: pointer; display: flex; gap: 9px; padding: 14px 2px 0; text-align: left; width: 100%; }
.avatar { align-items: center; border-radius: 50%; display: inline-flex; flex: none; font-size: 9px; font-style: normal; font-weight: 700; height: 29px; justify-content: center; width: 29px; }
.avatar-purple { background: #eae8ff; color: #655bd3; }
.avatar-green { background: #dff3ea; color: #328665; }
.avatar-yellow { background: #fff0cf; color: #a47923; }
.avatar-pink { background: #fde7eb; color: #ba6078; }
.avatar-blue { background: #e0efff; color: #4880b6; }
.profile-copy strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu { color: #9c9eac; font-size: 18px; letter-spacing: 1px; }

.main-area { margin-left: 248px; min-height: 100vh; }
.topbar { align-items: center; background: rgba(255,255,255,.92); border-bottom: 1px solid #eeeff4; display: flex; height: 62px; justify-content: space-between; padding: 0 36px; position: sticky; top: 0; z-index: 10; }
.breadcrumbs { align-items: center; color: #9a9cad; display: flex; font-size: 11px; gap: 10px; }
.breadcrumbs strong { color: #45475e; font-weight: 600; }
.crumb-divider { color: #ccced7; }
.topbar-actions { align-items: center; display: flex; gap: 16px; }
.demo-badge { align-items: center; background: #fff8e9; border: 1px solid #f5ebd4; border-radius: 20px; color: #9c772c; display: inline-flex; font-size: 10px; gap: 6px; padding: 6px 9px; }
.demo-badge > span { background: #e0ad45; border-radius: 50%; height: 6px; width: 6px; }
.icon-button { align-items: center; background: transparent; border: 0; color: #777a8d; cursor: pointer; display: inline-flex; height: 30px; justify-content: center; padding: 0; position: relative; width: 30px; }
.icon-button svg { fill: none; height: 18px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; width: 18px; }
.notification-dot { background: #e87878; border: 1.5px solid white; border-radius: 50%; height: 7px; position: absolute; right: 3px; top: 4px; width: 7px; }
.top-avatar { height: 30px; width: 30px; }
.mobile-menu { display: none; }
.content-wrap { margin: 0 auto; max-width: 1490px; padding: 25px 36px 22px; }
.notice-banner { align-items: center; background: #f0f1ff; border: 1px solid #e6e6ff; border-radius: 8px; color: #626583; display: flex; gap: 10px; margin-bottom: 27px; min-height: 40px; padding: 8px 12px; }
.notice-symbol { align-items: center; border: 1px solid #9896df; border-radius: 50%; color: #635cc4; display: inline-flex; flex: none; font-family: Georgia, serif; font-size: 11px; font-style: italic; height: 16px; justify-content: center; width: 16px; }
.notice-banner p { font-size: 10px; line-height: 1.5; margin: 0; }
.notice-banner p strong { color: #494b70; }
.notice-dismiss { background: none; border: 0; color: #a3a4b5; cursor: pointer; font-size: 18px; line-height: 1; margin-left: auto; padding: 2px 3px; }
.page-heading { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 23px; }
.eyebrow { align-items: center; color: #9698a9; display: flex; font-size: 9px; font-weight: 700; gap: 7px; letter-spacing: .9px; margin-bottom: 8px; }
.live-dot { background: #69c598; border-radius: 50%; height: 6px; width: 6px; }
h1, h2, p { margin-top: 0; }
h1 { color: #21233b; font-family: Manrope, sans-serif; font-size: 24px; font-weight: 750; letter-spacing: -.8px; line-height: 1.3; margin-bottom: 4px; }
.wave { color: #dfab46; font-size: 19px; }
.page-heading p { color: #9294a5; font-size: 11px; margin: 0; }
.heading-actions { align-items: center; display: flex; gap: 9px; }
.button { align-items: center; border-radius: 6px; cursor: pointer; display: inline-flex; font-size: 10px; font-weight: 600; gap: 8px; height: 34px; justify-content: center; padding: 0 11px; transition: .15s ease; }
.button svg { fill: none; height: 14px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; width: 14px; }
.button-secondary { background: white; border: 1px solid #e9eaf0; color: #55576e; }
.button-secondary:hover { background: #fafaff; border-color: #d7d5f6; }
.button-primary { background: #675de6; border: 1px solid #675de6; color: white; box-shadow: 0 2px 4px #675de61a; }
.button-primary:hover { background: #564dce; }
.small-chevron { height: 12px; width: 12px; }

.stats-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.stat-card, .panel { background: white; border: 1px solid #ededef; border-radius: 9px; box-shadow: 0 2px 7px rgba(38,39,69,.018); }
.stat-card { min-height: 121px; padding: 14px 15px 11px; }
.stat-top { align-items: center; color: #85879a; display: flex; font-size: 10px; justify-content: space-between; }
.stat-icon { align-items: center; border-radius: 7px; display: inline-flex; font-size: 13px; font-weight: 700; height: 26px; justify-content: center; width: 26px; }
.icon-mint { background: #e7f7f0; color: #49a67a; }
.icon-blue { background: #eaf3ff; color: #6094d5; }
.icon-lilac { background: #f0edff; color: #8174dc; font-size: 19px; }
.icon-peach { background: #fff1e8; color: #df9a64; font-size: 18px; }
.stat-value { align-items: center; color: #272940; display: flex; font-family: Manrope, sans-serif; font-size: 21px; font-weight: 750; gap: 8px; letter-spacing: -.65px; margin: 7px 0 10px; white-space: nowrap; }
.trend { align-items: center; border-radius: 4px; display: inline-flex; font-family: "DM Sans", sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 0; padding: 3px 5px; white-space: nowrap; }
.positive { background: #edfaf3; color: #3a9a69; }
.neutral { background: #f4f4f7; color: #858699; }
.stat-foot { align-items: center; color: #a0a1af; display: flex; font-size: 9px; justify-content: space-between; }
.sparkline { align-items: flex-end; display: flex; gap: 2px; height: 17px; width: 48px; }
.sparkline i { background: #a8dec2; border-radius: 2px 2px 0 0; flex: 1; height: 40%; }
.sparkline i:nth-child(2n) { height: 64%; }.sparkline i:nth-child(3n) { height: 78%; }.sparkline i:nth-child(4n) { height: 54%; }.sparkline i:nth-child(5n) { height: 92%; }
.spark-blue i { background: #b6d2f3; }
.profit-progress { background: #f0eefb; border-radius: 3px; height: 4px; overflow: hidden; width: 49px; }
.profit-progress i { background: #8b80e5; border-radius: inherit; display: block; height: 100%; width: 66%; }
.mini-avatars { display: flex; padding-right: 3px; }
.mini-avatars i { align-items: center; background: #fbe4e9; border: 1px solid white; border-radius: 50%; color: #a85e72; display: flex; font-size: 7px; font-style: normal; height: 17px; justify-content: center; margin-left: -4px; width: 17px; }
.mini-avatars i:nth-child(2) { background: #e9e7ff; color: #6459c1; }.mini-avatars i:nth-child(3) { background: #f0f0f4; color: #88899a; }

.main-grid { display: grid; gap: 15px; grid-template-columns: minmax(0, 1.72fr) minmax(280px, 1fr); margin-bottom: 15px; }
.panel { min-width: 0; padding: 17px 17px 14px; }
.panel-heading { align-items: flex-start; display: flex; justify-content: space-between; }
.panel-heading h2 { color: #282a42; font-family: Manrope, sans-serif; font-size: 12px; font-weight: 750; letter-spacing: -.15px; margin: 0 0 4px; }
.panel-heading p { color: #999bab; font-size: 9px; margin: 0; }
.select-button { background: #fff; border: 1px solid #ededf1; border-radius: 5px; color: #75778b; cursor: pointer; font-size: 9px; padding: 6px 8px; }
.select-button span { color: #9698a7; margin-left: 5px; }
.chart-summary { align-items: center; display: flex; gap: 8px; margin-top: 17px; }
.chart-summary strong { font-family: Manrope, sans-serif; font-size: 19px; letter-spacing: -.45px; }
.chart-summary small { color: #a0a2b0; font-size: 9px; }
.chart-legend { color: #999bab; display: flex; font-size: 9px; gap: 15px; margin: 11px 0 9px; }
.chart-legend span { align-items: center; display: inline-flex; gap: 6px; }
.chart-legend i { border-radius: 50%; height: 7px; width: 7px; }
.legend-current { background: #6b62e5; }.legend-previous { background: #c8cbd5; }
.chart-area { display: flex; height: 177px; }
.y-axis { color: #a2a4b2; display: flex; flex: none; flex-direction: column; font-size: 8px; justify-content: space-between; padding: 2px 9px 24px 0; text-align: right; width: 34px; }
.plot { flex: 1; min-width: 0; position: relative; }
.grid-lines { bottom: 24px; display: flex; flex-direction: column; justify-content: space-between; position: absolute; top: 0; width: 100%; }
.grid-lines i { border-top: 1px dashed #eff0f4; }
.revenue-chart { height: calc(100% - 24px); overflow: visible; position: absolute; top: 0; width: 100%; }
.x-axis { bottom: 0; color: #a2a4b2; display: flex; font-size: 8px; justify-content: space-between; left: 0; position: absolute; right: 0; }
.tasks-panel { padding-left: 18px; padding-right: 18px; }
.more-button { background: none; border: 0; color: #9b9dad; cursor: pointer; font-size: 19px; letter-spacing: 1px; line-height: 1; padding: 0; }
.task-total { align-items: center; display: flex; gap: 7px; margin-top: 21px; }
.task-total strong { color: #292b42; font-family: Manrope, sans-serif; font-size: 25px; letter-spacing: -.7px; }
.task-total > span:nth-child(2) { color: #999bab; font-size: 9px; margin-right: auto; }
.donut-wrap { align-items: center; display: flex; gap: clamp(14px, 2.2vw, 29px); justify-content: center; margin: 17px 0 15px; }
.donut { align-items: center; background: conic-gradient(#6c62e6 0 57.5%, #79a8ed 57.5% 83.5%, #f0ae65 83.5% 95.8%, #e87579 95.8% 100%); border-radius: 50%; display: flex; flex: none; height: 118px; justify-content: center; position: relative; width: 118px; }
.donut:before { background: #fff; border-radius: 50%; content: ""; height: 83px; position: absolute; width: 83px; }
.donut div { align-items: center; display: flex; flex-direction: column; position: relative; }
.donut strong { color: #2e3046; font-family: Manrope, sans-serif; font-size: 20px; letter-spacing: -.6px; }
.donut span { color: #999bab; font-size: 8px; margin-top: 2px; }
.donut-legend { display: flex; flex-direction: column; gap: 11px; min-width: 106px; }
.donut-legend div { align-items: center; display: flex; gap: 7px; }
.donut-legend span { color: #87899b; flex: 1; font-size: 9px; }
.donut-legend strong { color: #42445a; font-size: 9px; }
.dot { border-radius: 50%; height: 7px; width: 7px; }
.dot-purple { background: #6c62e6; }.dot-blue { background: #79a8ed; }.dot-orange { background: #f0ae65; }.dot-red { background: #e87579; }
.task-note { align-items: center; background: #f7faf9; border-radius: 5px; color: #8c9694; display: flex; font-size: 9px; gap: 7px; padding: 8px 9px; }
.task-note strong { color: #508e72; font-weight: 700; }
.note-check { align-items: center; background: #e6f5ed; border-radius: 50%; color: #4a9b70; display: inline-flex; height: 15px; justify-content: center; width: 15px; }

.bottom-grid { display: grid; gap: 15px; grid-template-columns: minmax(0, 1.72fr) minmax(280px, 1fr); }
.projects-panel { overflow: hidden; padding-bottom: 0; padding-left: 0; padding-right: 0; }
.projects-panel > .panel-heading { padding: 0 17px 14px; }
.text-link, .panel-footer-link { color: #635bd5; font-size: 9px; font-weight: 600; }
.text-link span, .panel-footer-link span { font-size: 13px; margin-left: 2px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; min-width: 690px; text-align: left; width: 100%; }
thead { background: #fafafd; }
th { color: #a0a2b0; font-size: 8px; font-weight: 700; letter-spacing: .55px; padding: 9px 11px; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 17px; }
td { border-top: 1px solid #f1f1f5; color: #85879a; font-size: 9px; padding: 9px 11px; white-space: nowrap; }
.project-name { align-items: center; display: flex; gap: 9px; }
.project-name > span { display: flex; flex-direction: column; gap: 3px; }
.project-name strong { color: #42445b; font-size: 9px; font-weight: 600; }
.project-name small { color: #a0a2b0; font-size: 8px; }
.project-mark { align-items: center; border-radius: 6px; display: inline-flex; font-size: 10px; font-style: normal; font-weight: 700; height: 28px; justify-content: center; width: 28px; }
.mark-violet { background: #eeebff; color: #6f62d5; }.mark-blue { background: #e8f2ff; color: #568ccc; }.mark-orange { background: #fff0e4; color: #d38952; }.mark-mint { background: #e6f5ee; color: #54a17c; }
.owner { align-items: center; display: flex; gap: 6px; }
.owner .avatar { height: 21px; width: 21px; font-size: 7px; }
.status { border-radius: 10px; display: inline-flex; font-size: 8px; font-weight: 600; padding: 4px 7px; }
.status-green { background: #eaf7f0; color: #4b9b70; }.status-blue { background: #ebf3ff; color: #5d8bc5; }.status-orange { background: #fff4e8; color: #c48848; }
.progress-cell { align-items: center; display: flex; gap: 7px; }
.progress-track { background: #eeeef4; border-radius: 4px; display: block; height: 4px; overflow: hidden; width: 52px; }
.progress-track b { background: #8d83e4; border-radius: 4px; display: block; height: 100%; }
.progress-track .progress-orange { background: #e5a159; }
.progress-cell small { color: #888a9b; font-size: 8px; }
.right-column { display: flex; flex-direction: column; gap: 12px; }
.performance-panel { padding: 16px 15px 0; }
.icon-link { align-items: center; border: 1px solid #eeeeF2; border-radius: 5px; color: #9395a5; display: flex; font-size: 12px; height: 25px; justify-content: center; width: 25px; }
.performer { align-items: center; border-bottom: 1px solid #f1f1f4; display: flex; gap: 8px; padding: 11px 0; }
.performer .avatar { height: 27px; width: 27px; }
.performer-copy { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.performer-copy strong { color: #484a60; font-size: 9px; font-weight: 600; }
.performer-copy small, .performer-score small { color: #a0a2af; font-size: 8px; }
.performer-score { align-items: baseline; display: flex; gap: 2px; }
.performer-score strong { color: #5652a4; font-family: Manrope, sans-serif; font-size: 13px; }
.panel-footer-link { align-items: center; display: flex; justify-content: space-between; padding: 11px 0; }
.notification-card { align-items: flex-start; background: #fff9f0; border: 1px solid #f5eddf; border-radius: 8px; color: #625b50; display: flex; gap: 9px; padding: 12px 10px; }
.notification-card-icon { align-items: center; background: #fff0d9; border-radius: 6px; color: #c38a3b; display: flex; flex: none; font-size: 11px; font-weight: 700; height: 23px; justify-content: center; width: 23px; }
.notification-card strong { color: #5d5345; font-size: 9px; }
.notification-card p { color: #9a8d7b; font-size: 8px; line-height: 1.5; margin: 4px 0 5px; }
.notification-card a { color: #b17c34; font-size: 8px; font-weight: 700; }
.notification-card a span { font-size: 11px; }
.notification-card .notice-dismiss { color: #b4a893; font-size: 15px; padding: 0; }
.footer-note { align-items: center; color: #a2a4b0; display: flex; font-size: 8px; gap: 17px; padding: 17px 2px 0; }
.footer-note span:nth-child(2) { align-items: center; display: inline-flex; gap: 5px; }
.footer-note span:nth-child(2) i { background: #6ec69a; border-radius: 50%; height: 5px; width: 5px; }
.mobile-overlay { display: none; }
.module-view[hidden] { display: none; }
.module-intro { color: #8d8fa1; font-size: 11px; line-height: 1.65; margin: -13px 0 20px; max-width: 720px; }
.module-stats { display: grid; gap: 13px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.module-stat { background: white; border: 1px solid #ededef; border-radius: 9px; min-height: 91px; padding: 14px 15px; }
.module-stat span { color: #9294a6; display: block; font-size: 10px; margin-bottom: 10px; }
.module-stat strong { color: #292b42; font-family: Manrope, sans-serif; font-size: 21px; letter-spacing: -.5px; }
.module-stat small { color: #999bab; display: block; font-size: 9px; margin-top: 6px; }
.overview-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.overview-grid { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); margin-bottom: 15px; }
.overview-grid .panel-heading { align-items: flex-start; display: flex; justify-content: space-between; }
.overview-grid .panel-footer-link { flex: none; }
.module-grid { display: grid; gap: 15px; grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr); }
.module-panel { background: white; border: 1px solid #ededef; border-radius: 9px; min-width: 0; padding: 18px; }
.module-panel h2 { color: #282a42; font-family: Manrope, sans-serif; font-size: 12px; margin: 0 0 5px; }
.module-panel > p { color: #999bab; font-size: 9px; margin: 0 0 16px; }
.module-table { border-collapse: collapse; min-width: 440px; width: 100%; }
.module-table th { background: #fafafd; color: #a0a2b0; font-size: 8px; padding: 10px; }
.module-table td { border-top: 1px solid #f1f1f5; color: #73758a; font-size: 9px; padding: 11px 10px; }
.module-table td:first-child, .module-table th:first-child { padding-left: 10px; }
.module-table strong { color: #46485e; font-weight: 600; }
.module-list { list-style: none; margin: 0; padding: 0; }
.module-list li { align-items: flex-start; border-bottom: 1px solid #f1f1f4; display: flex; gap: 10px; padding: 12px 0; }
.module-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.list-marker { align-items: center; background: #efefff; border-radius: 6px; color: #655bd3; display: inline-flex; flex: none; font-size: 9px; font-weight: 700; height: 25px; justify-content: center; width: 25px; }
.list-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.list-copy strong { color: #484a60; font-size: 10px; font-weight: 600; }
.list-copy small { color: #999bab; font-size: 9px; line-height: 1.5; }
.access-callout { background: #fff8e9; border: 1px solid #f5ebd4; border-radius: 7px; color: #88734c; font-size: 10px; line-height: 1.6; margin-bottom: 16px; padding: 11px 12px; }
.access-callout strong { color: #705626; }
.module-view .footer-note { margin-top: 3px; }
.finance-period-control { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin: -4px 0 15px; }
.finance-period-control > .finance-field { max-width: 190px; }
.finance-custom-range { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 8px; }
.finance-custom-range .finance-field { max-width: 150px; }
.finance-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.finance-stat-note { font-family: "DM Sans", sans-serif !important; font-size: 12px !important; letter-spacing: 0 !important; }
.finance-unavailable { color: #9294a6; font-family: "DM Sans", sans-serif; font-size: 15px; letter-spacing: 0; }
.financial-preview-empty { align-items: center; color: #999bab; display: flex; font-size: 10px; height: 190px; justify-content: center; text-align: center; }
.finance-overview-grid { grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr); margin-bottom: 15px; }
.finance-lower-grid { display: grid; gap: 15px; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
.finance-account-grid { align-items: start; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
.finance-chart-legend { color: #9294a6; display: flex; font-size: 9px; gap: 14px; margin: 2px 0 12px; }
.finance-chart-legend span { align-items: center; display: inline-flex; gap: 5px; }
.finance-chart-legend i { border-radius: 2px; height: 7px; width: 7px; }
.revenue-key, .revenue-bar { background: #766ce2; }
.expense-key, .expense-bar { background: #e7aa68; }
.finance-chart { align-items: stretch; border-bottom: 1px solid #eeeef3; display: flex; gap: 8px; height: 155px; justify-content: space-around; padding: 8px 4px 0; }
.month-bars { align-items: center; color: #999bab; display: flex; flex: 1; flex-direction: column; font-size: 8px; gap: 6px; justify-content: flex-end; min-width: 0; }
.bar-pair { align-items: flex-end; display: flex; gap: 3px; height: 125px; justify-content: center; width: 100%; }
.bar-pair i { border-radius: 3px 3px 0 0; display: block; max-width: 15px; min-height: 2px; width: 34%; }
.finance-form-stack { display: flex; flex-direction: column; gap: 14px; }
.finance-audit-panel { margin-top: 15px; }
.finance-form { background: #fff; border: 1px solid #ededef; border-radius: 9px; min-width: 0; padding: 17px; }
.finance-form-heading { margin-bottom: 13px; }
.finance-form h2 { color: #282a42; font-family: Manrope, sans-serif; font-size: 12px; margin: 0 0 4px; }
.finance-form-heading p { color: #999bab; font-size: 9px; line-height: 1.5; margin: 0; }
.finance-form-grid { display: grid; gap: 11px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.finance-field { color: #77798d; display: flex; flex-direction: column; font-size: 9px; gap: 5px; min-width: 0; }
.finance-field input, .finance-field select { background: white; border: 1px solid #e8e8ef; border-radius: 5px; color: #46485e; font: 10px "DM Sans", sans-serif; height: 33px; min-width: 0; padding: 0 8px; width: 100%; }
.finance-field input:focus, .finance-field select:focus { border-color: #9c95ef; outline: 2px solid #675de61a; }
.finance-form-actions { display: flex; justify-content: flex-end; margin-top: 13px; }
.finance-form-actions .button { min-height: 33px; }
.empty-cell { color: #999bab !important; padding: 22px 10px !important; text-align: center; }
.finance-account-grid .module-table { min-width: 900px; }
.finance-lower-grid .module-table { min-width: 560px; }
.toast-region { bottom: 20px; left: 50%; pointer-events: none; position: fixed; transform: translateX(-50%); z-index: 40; }
.toast-message { animation: toast-in .18s ease-out; background: #282a42; border-radius: 7px; box-shadow: 0 7px 24px #20233a25; color: white; font-size: 11px; line-height: 1.5; max-width: min(440px, calc(100vw - 32px)); padding: 11px 15px; text-align: center; }
@keyframes toast-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1500px) {
  .content-wrap { padding-top: 30px; }
  .stat-card { min-height: 130px; padding: 16px 18px 13px; }
  .chart-area { height: 192px; }
}
@media (max-width: 1150px) {
  .sidebar { width: 220px; }
  .main-area { margin-left: 220px; }
  .topbar { padding: 0 25px; }
  .content-wrap { padding-left: 25px; padding-right: 25px; }
  .stats-grid { gap: 10px; }
  .stat-card { padding-left: 12px; padding-right: 12px; }
  .stat-value { font-size: 18px; gap: 5px; }
  .trend { font-size: 8px; }
  .main-grid, .bottom-grid { grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr); gap: 11px; }
  .donut-wrap { gap: 12px; }
  .donut { height: 103px; width: 103px; }
  .donut:before { height: 73px; width: 73px; }
}
@media (max-width: 900px) {
  .sidebar { box-shadow: 10px 0 30px #20233a12; transform: translateX(-105%); transition: transform .2s ease; width: 248px; }
  .sidebar.is-open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .mobile-menu { align-items: center; background: transparent; border: 0; color: #707287; cursor: pointer; display: inline-flex; height: 30px; justify-content: center; margin-right: 12px; padding: 0; width: 30px; }
  .mobile-menu svg { fill: none; height: 20px; stroke: currentColor; stroke-linecap: round; stroke-width: 1.7; width: 20px; }
  .breadcrumbs { margin-right: auto; }
  .mobile-overlay.is-visible { background: #20233a50; bottom: 0; display: block; left: 0; position: fixed; right: 0; top: 0; z-index: 15; }
  .module-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-overview-grid, .finance-account-grid, .finance-lower-grid, .overview-grid { grid-template-columns: 1fr; }
  .overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .topbar { height: 56px; padding: 0 15px; }
  .topbar-actions { gap: 9px; }
  .demo-badge { font-size: 0; height: 22px; padding: 0; width: 22px; }
  .demo-badge > span { height: 7px; width: 7px; }
  .top-avatar { height: 27px; width: 27px; }
  .content-wrap { padding: 17px 14px 18px; }
  .notice-banner { align-items: flex-start; margin-bottom: 20px; padding: 9px; }
  .notice-banner p { font-size: 9px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 17px; }
  h1 { font-size: 22px; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stat-card { min-height: 112px; padding: 12px 11px 10px; }
  .stat-value { font-size: 17px; }
  .stat-foot { font-size: 8px; }
  .main-grid, .bottom-grid { grid-template-columns: 1fr; gap: 11px; }
  .module-grid { grid-template-columns: 1fr; gap: 11px; }
  .finance-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .module-panel { padding: 14px; }
  .finance-form { padding: 14px; }
  .finance-form-grid { grid-template-columns: 1fr; }
  .finance-period-control { justify-content: stretch; }
  .finance-period-control > .finance-field { max-width: none; width: 100%; }
  .finance-custom-range { width: 100%; }
  .finance-custom-range .finance-field { flex: 1; max-width: none; }
  .panel { padding: 14px; }
  .projects-panel { padding-left: 0; padding-right: 0; }
  .projects-panel > .panel-heading { padding: 0 13px 12px; }
  .tasks-panel { min-height: 290px; }
  .donut-wrap { gap: 25px; }
  .donut { height: 120px; width: 120px; }
  .donut:before { height: 84px; width: 84px; }
  .right-column { gap: 10px; }
  .footer-note { flex-wrap: wrap; gap: 8px 14px; }
}
@media (max-width: 380px) {
  .content-wrap { padding-left: 10px; padding-right: 10px; }
  .stat-value { font-size: 15px; }
  .trend { font-size: 7px; padding: 3px; }
  .donut-wrap { gap: 13px; }
  .donut { height: 105px; width: 105px; }
  .donut:before { height: 73px; width: 73px; }
}
