/* Hallmark · v2.0.0 · theme: VECTORA GROUP Finance · genre: modern-minimal · job: operate the financial dashboard · signature: a calm financial workbench for two partners */
/* critique: semantic chart colors keep the Vectora identity while making inflow, outflow and profit instantly distinguishable. */
:root {
  color-scheme: light;
  --bg: #f5f5fa;
  --surface: #ffffff;
  --surface-muted: #eef1ec;
  --ink: #0b0b14;
  --muted: #75818a;
  --line: #e3e8e2;
  --blue: #6d5dfc;
  --blue-soft: #efedff;
  --green: #5fdaa0;
  --green-soft: #e9fbf2;
  --red: #df5b69;
  --red-soft: #fff0f2;
  --income: #6d5dfc;
  --income-soft: #efedff;
  --expense: #df5b69;
  --expense-soft: #fff0f2;
  --paid: #df5b69;
  --paid-soft: #fff0f2;
  --pending: #d98a00;
  --pending-soft: #fff4d6;
  --profit: #5fdaa0;
  --profit-soft: #e9fbf2;
  --category-team: #4f86f7;
  --category-ads: #f59e0b;
  --category-tools: #14b8a6;
  --category-operations: #64748b;
  --violet: #8b7dff;
  --violet-soft: #f0eeff;
  --orange: #8b7dff;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 14px 42px rgba(24, 41, 32, 0.07);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
}
body.dark-mode {
  --bg: #0b0b14;
  --surface: #1a1640;
  --surface-muted: #211c4c;
  --ink: #f5f5fa;
  --muted: #b5afd7;
  --line: #393263;
  --blue: #8b7dff;
  --blue-soft: #2e285d;
  --green: #6fe0aa;
  --green-soft: #173f38;
  --red: #ff7885;
  --red-soft: #4a2530;
  --income: #8b7dff;
  --income-soft: #352e66;
  --expense: #ff7885;
  --expense-soft: #4a2530;
  --paid: #ff7885;
  --paid-soft: #4a2530;
  --pending: #fbbf24;
  --pending-soft: #4a3814;
  --profit: #6fe0aa;
  --profit-soft: #173f38;
  --category-team: #79a6ff;
  --category-ads: #fbbf24;
  --category-tools: #2dd4bf;
  --category-operations: #a8b4c7;
  --violet: #a69aff;
  --violet-soft: #352e66;
  --orange: #a69aff;
  --shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: clip; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
button, input, select { touch-action: manipulation; }
body:not(.auth-ready) .app-shell, body:not(.auth-ready) .mobile-nav { display: none; }
body.auth-ready .auth-gate { display: none; }
.auth-gate { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 16% 8%, rgba(109,93,252,.14), transparent 34%), var(--bg); }
.auth-shell { width: min(100%, 980px); display: grid; grid-template-columns: minmax(0, .92fr) minmax(360px, .78fr); min-height: 610px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 28px 80px rgba(11,11,20,.14); }
.auth-brand-panel { display: flex; flex-direction: column; justify-content: space-between; padding: 42px; color: #f5f5fa; background: radial-gradient(circle at 85% 15%, rgba(139,125,255,.25), transparent 34%), #0b0b14; }
.auth-brand-logo { display: block; width: 195px; height: auto; }
.auth-brand-copy { max-width: 360px; margin-top: auto; padding-top: 100px; }
.auth-brand-copy p { color: #a69aff; font-size: 13px; font-weight: 700; }
.auth-brand-copy h2 { margin-top: 16px; font-family: var(--font-display); font-size: clamp(31px, 4vw, 48px); line-height: 1.03; letter-spacing: -0.065em; }
.auth-partners { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 34px; }
.auth-partners span { padding: 8px 11px; border: 1px solid rgba(245,245,250,.18); border-radius: 999px; color: #d9d6ec; font-size: 11px; }
.auth-card { align-self: center; width: min(100%, 420px); padding: 48px 44px; }
.auth-logo { display: block; width: 170px; height: auto; margin: 0 0 58px; }
.auth-card h1 { margin-top: 8px; font-size: 30px; letter-spacing: -0.05em; }
.auth-copy { margin-top: 10px; color: var(--muted); line-height: 1.6; }
.auth-form { display: grid; gap: 14px; margin-top: 28px; }
.auth-form label { display: grid; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
.auth-form input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-muted); color: var(--ink); outline: 0; transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.auth-form input::placeholder { color: var(--muted); opacity: .78; }
.auth-form input:focus { border-color: var(--violet); background: var(--surface); box-shadow: 0 0 0 4px var(--violet-soft); }
.auth-form .primary-button { justify-content: center; margin-top: 6px; }
.auth-error { min-height: 18px; color: var(--red); font-size: 12px; }
.auth-footer-note { display: block; margin-top: 28px; color: var(--muted); font-size: 11px; }
.logout-button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; color: var(--muted); background: transparent; border-radius: 10px; text-align: left; font-size: 11px; }
.logout-button:hover { color: var(--red); background: var(--red-soft); }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(36, 107, 253, 0.28); outline-offset: 2px; }
select { appearance: none; -webkit-appearance: none; background-image: none !important; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 18px 18px; background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; padding: 4px 12px 26px; }
.brand-logo { display: block; width: 150px; height: auto; object-fit: contain; }
.brand-logo-dark { display: none; }
body.dark-mode .brand-logo-light { display: none; }
body.dark-mode .brand-logo-dark { display: block; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: #fff; font-weight: 800; letter-spacing: -0.12em; font-size: 12px; }
.brand-mark span { color: #79ddaa; }
.brand-name { font-family: var(--font-display); font-weight: 750; letter-spacing: -0.04em; }
.workspace-switcher { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 14px; margin-bottom: 22px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: var(--radius-md); }
.workspace-switcher strong, .profile-row strong { display: block; font-size: 12px; letter-spacing: -0.01em; }
.workspace-switcher small, .profile-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.chevron { color: var(--muted); font-size: 16px; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 750; }
.avatar-small { width: 28px; height: 28px; font-size: 9px; }
.avatar-ink { background: var(--blue-soft); color: var(--ink); }
body.dark-mode .avatar-ink { background: var(--violet-soft); color: var(--ink); }
.avatar-green { background: var(--green-soft); color: var(--green); }
.avatar-violet { background: var(--violet-soft); color: var(--violet); }
.nav-list { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; color: var(--muted); background: transparent; border-radius: 11px; text-align: left; font-size: 13px; transition: background-color 160ms ease, color 160ms ease, transform 160ms ease; }
.nav-item:hover { background: var(--surface-muted); color: var(--ink); transform: translateX(2px); }
.nav-item.is-active { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.nav-icon { width: 18px; text-align: center; font-size: 17px; line-height: 1; }
.sidebar-footer { margin-top: auto; display: grid; gap: 18px; padding: 18px 4px 0; }
.sync-status { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.profile-row { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; padding: 10px; color: var(--ink); background: transparent; text-align: left; border-radius: 12px; }
.profile-row:hover { background: var(--surface-muted); }
.main-content { width: 100%; max-width: 1600px; min-width: 0; margin: 0 auto; padding: 0 42px 56px; }
.topbar { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.topbar { position: relative; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.breadcrumb b { color: #c5cbc5; font-weight: 500; }
.breadcrumb strong { color: var(--ink); font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.period-select, .ghost-button, .filter-button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: 12px; }
.period-select:hover, .ghost-button:hover, .filter-button:hover { border-color: #bcc8bf; }
.calendar-icon { color: var(--blue); font-size: 17px; }
.icon-button { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.notification-dot { position: absolute; top: 9px; right: 9px; width: 5px; height: 5px; border: 1px solid var(--surface); border-radius: 50%; background: var(--red); }
.mobile-menu { display: none; background: transparent; color: var(--ink); font-size: 20px; }
.topbar-popover { position: absolute; z-index: 6; top: 68px; right: 0; display: none; width: min(310px, calc(100vw - 32px)); padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 18px 45px rgba(11,11,20,.16); }
.topbar-popover.is-open { display: block; animation: popover-in 160ms ease both; }
.popover-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.popover-heading strong { font-size: 13px; }
.popover-heading small { color: var(--muted); font-size: 10px; }
.popover-list { display: grid; gap: 5px; margin-top: 10px; }
.popover-list button, .popover-action { width: 100%; padding: 10px; background: transparent; border-radius: 9px; color: var(--ink); text-align: left; font-size: 12px; }
.popover-list button:hover, .popover-action:hover { background: var(--surface-muted); }
.popover-list button.is-selected { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.popover-alert { display: grid; gap: 3px; padding: 10px; border-radius: 9px; background: var(--surface-muted); }
.popover-alert strong { font-size: 11px; }
.popover-alert span { color: var(--muted); font-size: 10px; line-height: 1.4; }
.popover-profile { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.popover-profile strong, .popover-profile small { display: block; }
.popover-profile strong { font-size: 12px; }
.popover-profile small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.popover-action { margin-top: 8px; color: var(--red); }
@keyframes popover-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.page-view { display: none; max-width: 1420px; margin: 0 auto; padding-top: 42px; animation: page-in 280ms ease both; }
.page-view.is-visible { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.heading-actions { display: flex; align-items: end; gap: 10px; }
.operation-select-label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.operation-select-label select { min-width: 210px; min-height: 42px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 700; }
.custom-select { position: relative; min-width: 0; }
.custom-select-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-muted); color: var(--ink); font-size: 12px; font-weight: 700; text-align: left; transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.custom-select-button::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform 160ms ease; }
.custom-select.is-open .custom-select-button { border-color: var(--violet); background: var(--surface); box-shadow: 0 0 0 4px var(--violet-soft); }
.custom-select.is-open .custom-select-button::after { transform: rotate(225deg) translate(-1px, -1px); }
.custom-select-menu { position: absolute; z-index: 20; top: calc(100% + 7px); right: 0; left: 0; display: none; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 18px 42px rgba(11,11,20,.18); }
.custom-select.is-open .custom-select-menu { display: grid; gap: 3px; animation: popover-in 140ms ease both; }
.custom-option { width: 100%; padding: 10px 11px; border-radius: 8px; background: transparent; color: var(--ink); font-size: 12px; text-align: left; }
.custom-option:hover, .custom-option.is-selected { background: var(--blue-soft); color: var(--blue); font-weight: 750; }
.kicker, .panel-label { margin: 0 0 7px; color: var(--muted); font-size: 12px; font-weight: 650; }
h1, h2, p { margin: 0; }
h1, h2, .metric-value, .brand-name { font-family: var(--font-display); }
h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.065em; line-height: 1.03; }
h2 { font-size: 16px; letter-spacing: -0.035em; line-height: 1.2; }
.lede { margin-top: 10px; color: var(--muted); line-height: 1.5; }
.primary-button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 11px; background: var(--ink); color: white; font-size: 13px; font-weight: 700; box-shadow: 0 8px 18px rgba(20, 32, 43, 0.12); transition: transform 160ms ease, box-shadow 160ms ease; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(20, 32, 43, 0.17); }
body.dark-mode .primary-button { background: var(--violet); color: var(--bg); box-shadow: 0 10px 24px rgba(139, 125, 255, 0.24); }
.secondary-button { min-height: 42px; padding: 0 16px; background: var(--surface-muted); color: var(--ink); border-radius: 11px; font-size: 13px; font-weight: 650; }
.text-button { padding: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 700; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.metric-card { min-width: 0; padding: 18px 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 7px 24px rgba(24, 41, 32, 0.025); }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.metric-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-size: 15px; font-weight: 700; }
.metric-card:nth-child(1) .metric-icon { background: var(--income-soft); color: var(--income); }
.metric-card:nth-child(2) .metric-icon { background: var(--red-soft); color: var(--red); }
.metric-card:nth-child(3) .metric-icon { background: var(--profit-soft); color: var(--profit); }
.metric-card:nth-child(4) .metric-icon { background: var(--violet-soft); color: var(--violet); }
.metric-value { display: block; margin-top: 16px; font-size: 24px; letter-spacing: -0.05em; }
.metric-change { display: block; margin-top: 6px; font-size: 11px; color: var(--green); }
.metric-change.is-negative { color: var(--red); }
.dashboard-grid { display: grid; gap: 18px; margin-bottom: 18px; }
.dashboard-grid-main { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.95fr); }
.dashboard-grid-bottom { grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.65fr); }
.panel { min-width: 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-heading > div { min-width: 0; }
.chart-subtitle { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.chart-range-select { min-width: 148px; flex: 0 0 auto; }
.chart-range-select .custom-select-button { min-height: 38px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 20px; color: var(--muted); font-size: 11px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-income { background: var(--income); }
.legend-expense { background: var(--expense); }
.legend-line { width: 14px; height: 2px; background: var(--profit); }
.cashflow-chart { display: grid; grid-template-columns: 48px 1fr; gap: 8px; min-height: 260px; margin-top: 16px; }
.y-axis { display: flex; flex-direction: column; justify-content: space-between; padding: 3px 0 24px; color: var(--muted); font-size: 10px; text-align: right; }
.chart-canvas { position: relative; min-width: 0; min-height: 260px; }
.grid-lines { position: absolute; inset: 5px 0 25px; display: flex; flex-direction: column; justify-content: space-between; }
.grid-lines span { border-top: 1px dashed var(--line); }
.bar-series { position: absolute; left: 4%; right: 3%; bottom: 26px; height: 198px; display: flex; align-items: end; justify-content: space-between; gap: 5px; }
.bar-pair { display: flex; align-items: end; gap: 3px; width: 7%; height: 100%; }
.bar { width: 50%; border-radius: 4px 4px 0 0; }
.bar-income { background: var(--income); }
.bar-expense { background: var(--expense); }
.line-series { position: absolute; inset: 5px 0 27px; width: 100%; height: calc(100% - 32px); }
.chart-canvas.is-empty .grid-lines { opacity: .55; }
.chart-canvas.is-empty .line-series { display: none; }
.chart-empty { display: grid; gap: 5px; place-items: center; min-width: 190px; padding: 18px; color: var(--muted); text-align: center; }
.chart-empty strong { color: var(--ink); font-size: 13px; }
.chart-empty span { max-width: 230px; font-size: 11px; line-height: 1.4; }
.chart-empty-cashflow { position: absolute; inset: 44px 18px 42px; z-index: 2; border: 1px dashed var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface) 88%, transparent); }
.x-axis { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.donut-layout { display: grid; grid-template-columns: 145px 1fr; gap: 20px; align-items: center; min-height: 258px; margin-top: 16px; }
.donut { position: relative; display: grid; place-items: center; width: 145px; height: 145px; border-radius: 50%; background: conic-gradient(var(--category-team) 0 42%, var(--category-ads) 42% 66%, var(--category-tools) 66% 84%, var(--category-operations) 84% 100%); }
.donut::after { content: ""; position: absolute; width: 96px; height: 96px; border-radius: 50%; background: var(--surface); }
.donut div { position: relative; z-index: 1; display: grid; text-align: center; }
.donut strong { font-size: 16px; letter-spacing: -0.05em; }
.donut span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.category-list { display: grid; gap: 13px; padding: 0; margin: 0; list-style: none; }
.category-list li { display: grid; grid-template-columns: 9px 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.category-list li i { width: 9px; height: 9px; border-radius: 50%; }
.category-list li span { color: var(--muted); }
.category-list li b { font-weight: 700; }
.partner-split { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; min-height: 190px; margin-top: 20px; }
.split-ring { display: grid; place-items: center; width: 145px; height: 145px; border-radius: 50%; background: conic-gradient(var(--income) 0 50%, var(--violet) 50% 100%); }
.split-ring::before { content: ""; position: absolute; width: 100px; height: 100px; background: var(--surface); border-radius: 50%; }
.split-ring div { position: relative; z-index: 1; display: grid; text-align: center; }
.split-ring strong { font-size: 22px; letter-spacing: -0.06em; }
.split-ring span { color: var(--muted); font-size: 10px; }
.partner-list { display: grid; gap: 14px; }
.partner-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.partner-row strong, .partner-row small { display: block; }
.partner-row strong { font-size: 12px; }
.partner-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.partner-row b { font-size: 12px; }
.table-wrap { overflow-x: auto; margin-top: 18px; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 520px; border-collapse: collapse; }
th, td { padding: 12px 8px; border-bottom: 1px solid var(--line); font-size: 11px; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-weight: 650; }
td { color: var(--ink); }
td:last-child, th:last-child { text-align: right; }
.status { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.status-paid { background: var(--paid-soft); color: var(--paid); }
.status-received { background: var(--profit-soft); color: var(--profit); }
.status-pending { background: var(--pending-soft); color: var(--pending); }
.value-income { color: var(--income); font-weight: 750; }
.value-expense { color: var(--expense); font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: -6px 0 18px; }
.filter-select { min-width: 142px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.search-field { display: flex; align-items: center; gap: 8px; min-width: min(100%, 300px); flex: 1; padding: 0 12px; min-height: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); transition: border-color 160ms ease, box-shadow 160ms ease; }
.search-field:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.full-panel { margin-top: 22px; }
.operations-overview-panel { margin-bottom: 18px; }
.operation-summary-list, .operation-summary-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 22px 0 24px; }
.operation-summary-card { display: grid; gap: 16px; padding: 15px; color: var(--ink); background: var(--surface-muted); border: 1px solid transparent; border-radius: 13px; text-align: left; transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease; }
.operation-summary-card:hover { transform: translateY(-2px); border-color: #c8d3cb; }
.operation-summary-card.is-selected { background: var(--blue-soft); border-color: #b9d0ff; }
.operation-card-top, .operation-card-values { display: flex; justify-content: space-between; gap: 12px; }
.operation-card-top strong { font-size: 13px; }
.operation-status { color: var(--profit); font-size: 10px; font-weight: 700; }
.operation-card-values span { display: grid; gap: 4px; }
.operation-card-values small { color: var(--muted); font-size: 10px; }
.operation-card-values b { font-size: 12px; }
.ads-entry-layout { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.6fr); gap: 22px; }
.ads-entry-panel { display: flex; flex-direction: column; }
.manual-badge, .muted-caption { color: var(--muted); font-size: 11px; }
.manual-badge { padding: 6px 9px; background: var(--surface-muted); border-radius: 999px; }
.ads-form { display: grid; gap: 13px; margin-top: 24px; }
.ads-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 650; }
.ads-form input { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-muted); color: var(--ink); outline: 0; transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.ads-form input:focus { border-color: var(--violet); background: var(--surface); box-shadow: 0 0 0 4px var(--violet-soft); }
.ads-form .primary-button { justify-content: center; margin-top: 5px; }
.optional-label { font-weight: 500; color: #9ca6a0; }
.ads-bars { display: flex; align-items: end; gap: 18px; height: 190px; padding: 0 16px; }
.ads-bars span { flex: 1; min-width: 12px; border-radius: 5px 5px 0 0; background: var(--income); }
.recurring-badge { display: inline-flex; margin-left: 6px; padding: 3px 6px; border-radius: 999px; background: var(--violet-soft); color: var(--violet); font-size: 9px; font-weight: 700; vertical-align: middle; }
.check-row { display: grid !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; padding: 11px 12px; background: var(--surface-muted); border-radius: 10px; }
.check-row input { width: 16px !important; min-height: 16px !important; accent-color: var(--blue); }
.check-row small { grid-column: 2; margin-top: -4px; color: var(--muted); font-size: 10px; font-weight: 500; }
.frequency-field { display: grid !important; gap: 7px !important; padding: 12px; background: var(--surface-muted); border-radius: 10px; }
.frequency-field .custom-select-button { background: var(--surface); }
.frequency-field small { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.4; }
.campaign-list { display: grid; gap: 18px; margin-top: 24px; }
.campaign-list > div { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.campaign-icon, .report-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.campaign-list strong, .campaign-list small { display: block; }
.campaign-list strong { font-size: 12px; }
.campaign-list small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.campaign-list b { color: var(--profit); }
.ads-chart { position: relative; min-height: 230px; display: flex; flex-direction: column; justify-content: end; margin-top: 18px; padding: 12px 14px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 45px, var(--line) 46px); }
.chart-mini-legend { display: flex; gap: 16px; margin-top: 18px; color: var(--muted); font-size: 11px; }
.chart-mini-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ads-bars .chart-empty { width: 100%; height: 100%; align-content: center; }
.ads-bars { display: flex; align-items: end; gap: 18px; height: 190px; padding: 0 16px; }
.ads-bars span { flex: 1; min-width: 12px; border-radius: 5px 5px 0 0; background: var(--income); }
.ads-bars span:nth-child(even) { background: var(--expense); }
.subscription-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.subscription-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 13px; }
.subscription-item strong, .subscription-item small { display: block; }
.subscription-item strong { font-size: 13px; }
.subscription-item small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.subscription-item b { font-size: 12px; }
.subscription-item { position: relative; }
.row-delete-button { display: inline-grid; place-items: center; width: 40px; min-width: 40px; height: 40px; margin-left: 10px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease; }
.row-delete-button:hover { border-color: var(--red); background: var(--red-soft); color: var(--red); }
td .row-delete-button { vertical-align: middle; }
.empty-state { display: grid; gap: 5px; justify-items: center; padding: 28px 16px; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); font-size: 13px; }
.empty-state span { font-size: 12px; }
.empty-list { justify-content: center; padding: 18px 0; }
.partner-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.partner-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.partner-card h2 { margin-top: 22px; font-size: 20px; }
.partner-card p, .partner-card small { display: block; color: var(--muted); font-size: 12px; }
.partner-card p { margin-top: 5px; }
.partner-card strong { display: block; margin-top: 30px; font-size: 28px; letter-spacing: -0.06em; }
.partner-card small { margin-top: 5px; }
.simple-bars { display: flex; align-items: end; gap: 60px; height: 220px; padding: 30px 30px 0; }
.simple-bars.history-empty { align-items: center; justify-content: center; flex-direction: column; gap: 6px; height: 220px; padding: 24px; color: var(--muted); text-align: center; }
.history-empty-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 4px; border-radius: 12px; background: var(--violet-soft); color: var(--violet); font-size: 22px; }
.history-empty strong { color: var(--ink); font-size: 13px; }
.history-empty small { max-width: 300px; font-size: 11px; line-height: 1.45; }
.simple-bars > div { display: grid; grid-template-columns: 24px 24px; align-items: end; gap: 6px; height: 100%; }
.simple-bars span { grid-column: 1 / -1; color: var(--muted); font-size: 11px; text-align: center; }
.simple-bars i { display: block; width: 24px; border-radius: 5px 5px 0 0; background: var(--profit); }
.simple-bars i:last-child { background: var(--profit); }
.report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.report-card { min-height: 220px; display: flex; flex-direction: column; align-items: flex-start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.report-icon { margin-bottom: 22px; }
.report-icon-green { background: var(--green-soft); color: var(--green); }
.report-icon-violet { background: var(--violet-soft); color: var(--violet); }
.report-card h2 { font-size: 18px; }
.report-card p { margin-top: 10px; color: var(--muted); line-height: 1.5; font-size: 13px; }
.report-card .text-button { margin-top: auto; }
.mobile-nav { display: none; }
body.dark-mode .mobile-nav { background: rgba(26, 22, 64, 0.96); }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: none; place-items: center; padding: 20px; background: rgba(20, 32, 43, 0.32); overscroll-behavior: contain; }
.modal-backdrop.is-open { display: grid; }
.modal { width: min(100%, 480px); padding: 24px; background: var(--surface); border-radius: 22px; box-shadow: 0 30px 80px rgba(20, 32, 43, 0.25); }
.modal-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 22px; }
.modal-heading h2 { font-size: 22px; }
#entry-form { display: grid; gap: 16px; }
#entry-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 650; }
#entry-form input, #entry-form select { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-muted); color: var(--ink); outline: 0; transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
#entry-form input:focus, #entry-form select:focus { border-color: var(--violet); background: var(--surface); box-shadow: 0 0 0 4px var(--violet-soft); }
.donut.is-empty, .split-ring.is-empty { background: var(--line) !important; }
#app-toast { position: fixed; z-index: 30; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); max-width: min(360px, calc(100vw - 36px)); padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); font-size: 12px; font-weight: 650; animation: popover-in 160ms ease both; }
#app-toast.is-error { background: var(--red); color: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; justify-content: end; gap: 10px; margin-top: 8px; }
@media (max-width: 1060px) { .sidebar { width: 220px; } .app-shell { grid-template-columns: 220px minmax(0, 1fr); } .main-content { padding: 0 24px 50px; } .donut-layout { grid-template-columns: 120px 1fr; gap: 12px; } .donut, .split-ring { width: 120px; height: 120px; } .donut::after, .split-ring::before { width: 78px; height: 78px; } .partner-split { grid-template-columns: 120px 1fr; gap: 12px; } }
@media (max-width: 720px) { .auth-gate { padding: 12px; } .auth-shell { display: block; min-height: 0; border-radius: 22px; } .auth-brand-panel { min-height: 220px; padding: 26px; } .auth-brand-logo { width: 150px; } .auth-brand-copy { padding-top: 44px; } .auth-brand-copy h2 { font-size: 30px; } .auth-partners { margin-top: 18px; } .auth-card { width: 100%; padding: 30px 24px 34px; } .auth-logo { display: none; } }
@media (max-width: 820px) { .app-shell { display: block; } .sidebar { position: fixed; z-index: 8; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform 200ms ease; box-shadow: 15px 0 40px rgba(20,32,43,.1); } body.menu-open .sidebar { transform: translateX(0); } .main-content { padding: 0 16px 88px; } .topbar { height: 70px; } .mobile-menu { display: block; } .breadcrumb { margin-right: auto; margin-left: 12px; } .breadcrumb span, .breadcrumb b { display: none; } .topbar-actions .period-select { display: none; } .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard-grid-main, .dashboard-grid-bottom, .ads-entry-layout { grid-template-columns: 1fr; } .report-grid, .subscription-grid, .partner-cards { grid-template-columns: 1fr; } .mobile-nav { position: fixed; z-index: 7; right: 12px; bottom: 12px; left: 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 7px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 15px 36px rgba(20,32,43,.14); backdrop-filter: blur(12px); } .mobile-nav button { display: grid; gap: 3px; justify-items: center; padding: 8px 3px; background: transparent; color: var(--muted); border-radius: 11px; font-size: 9px; } .mobile-nav button span { font-size: 18px; line-height: 1; } .mobile-nav button.is-active { background: var(--blue-soft); color: var(--blue); font-weight: 750; } }
@media (max-width: 680px) { .metrics-grid { grid-template-columns: 1fr; } .operation-summary-list, .operation-summary-strip { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .page-view { padding-top: 28px; } .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; } .page-heading .primary-button, .heading-actions { width: 100%; } .heading-actions { align-items: stretch; flex-direction: column; } .operation-select-label select { width: 100%; } .page-heading .primary-button { justify-content: center; } .metrics-grid { gap: 14px; } .metric-card { padding: 14px; } .metric-value { font-size: 19px; } .metric-top { font-size: 11px; } .panel { padding: 16px; } .panel-heading { flex-direction: column; align-items: stretch; } .chart-range-select { width: 100%; min-width: 0; } .chart-range-select .custom-select-menu { left: 0; right: 0; } .donut-layout, .partner-split { grid-template-columns: 1fr; justify-items: center; } .category-list, .partner-list { width: 100%; } .toolbar { display: grid; grid-template-columns: 1fr 1fr; } .search-field { grid-column: 1 / -1; min-width: 0; } .filter-button { justify-content: space-between; } .form-grid { grid-template-columns: 1fr; } .simple-bars { gap: 28px; padding-left: 12px; padding-right: 12px; } .row-delete-button { width: 40px; min-width: 40px; } }
@media (max-width: 600px) { .table-wrap { margin-inline: -4px; padding-bottom: 4px; overflow-x: visible; } table, thead, tbody, tr, td { display: block; } table { min-width: 0; } thead { display: none; } tbody tr { padding: 10px 0; border-bottom: 1px solid var(--line); } tbody tr:last-child { border-bottom: 0; } td, td:last-child { display: grid; grid-template-columns: minmax(82px, 0.42fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; white-space: normal; text-align: right; overflow-wrap: anywhere; } td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 650; text-align: left; } td:not([data-label])::before { display: none; } td[colspan] { display: block; padding: 0; text-align: center; } td[colspan] .empty-state { padding: 28px 12px; } td .row-delete-button { justify-self: end; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; } }

