@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/jetbrains-mono-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/onest-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/onest-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/onest-500-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/onest-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/onest-600-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/onest-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/onest-700-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/onest-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/unbounded-600-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/unbounded-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 15px/1.5 var(--font-sans); }
a { color: var(--brand); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ps-btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--control-md); padding: 0 var(--space-5); border: 1px solid transparent; border-radius: var(--radius-md); font: 600 15px/1 var(--font-sans); cursor: pointer; text-decoration: none; }
.ps-btn--sm { min-height: var(--control-sm); padding: 0 var(--space-4); font-size: 14px; }
.ps-btn--block { display: flex; width: 100%; }
.ps-btn--primary { background: var(--brand); color: var(--on-brand); }
.ps-btn--primary:hover:not(:disabled) { background: var(--brand-hover); }
.ps-btn--secondary { background: var(--surface-raised); border-color: var(--line-strong); color: var(--ink); }
.ps-btn--secondary:hover:not(:disabled) { background: var(--surface-sunken); }
.ps-btn--ghost { background: transparent; color: var(--brand); }
.ps-btn--ghost:hover:not(:disabled) { background: var(--brand-soft); }
.ps-btn:disabled { opacity: .5; cursor: not-allowed; }
.ps-field { display: grid; gap: 6px; min-width: 0; }
.ps-field__label { font-size: 13px; font-weight: 500; }
.muted { color: var(--ink-muted); }
.login-page { min-height: 100vh; padding: 48px 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.login-brand { font: 600 22px/1.3 var(--font-display); }
.login-card { width: min(100%, 420px); padding: 32px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.login-card h1 { margin: 0 0 4px; font: 600 28px/1.25 var(--font-display); }
.login-card > p { margin: 0 0 24px; }
.login-card form { display: grid; gap: 16px; }
.ps-input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); font: inherit; }
.password-control { display: flex; position: relative; }
.password-control .ps-input { padding-right: 88px; }
.password-control button { position: absolute; right: 4px; top: 4px; height: 36px; padding: 0 8px; border: 0; background: transparent; color: var(--ink-muted); cursor: pointer; }
.login-help { justify-self: end; font-size: 13px; }
.remember { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.remember input { width: 18px; height: 18px; accent-color: var(--brand); }
.form-error { margin: 0 0 16px; padding: 12px; border-radius: var(--radius-md); background: var(--critical-soft); color: var(--critical); }
.login-success { margin: 0 0 16px; padding: 12px; border-radius: var(--radius-md); background: var(--good-soft); color: var(--ink); }
.login-card .login-invite { border-top: 1px solid var(--line); padding-top: 16px; margin: 24px 0 0; font-size: 14px; color: var(--ink-muted); }
.login-footer { margin-top: auto; font-size: 13px; color: var(--ink-muted); }
.theme-toggle { position: fixed; right: 16px; bottom: 16px; background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 8px 12px; cursor: pointer; }
@media (max-width: 480px) { .login-page { padding-top: 32px; } .login-card { padding: 24px; } }
.cabinet-page { display: flex; min-height: 100vh; }
.side-nav { position: sticky; top: 0; align-self: flex-start; width: 240px; min-width: 240px; height: 100vh; padding: 26px 16px; background: var(--surface-raised); border-right: 1px solid var(--line); }
.side-brand { display: block; margin: 0 12px 34px; color: var(--ink); text-decoration: none; font: 600 20px/1.4 var(--font-display); }
.nav-group { margin: 20px 12px 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-md); color: var(--ink-muted); text-decoration: none; font-weight: 500; }
.nav-link img, .card-title img { width: 20px; height: 20px; }
.nav-link:hover { background: var(--surface-sunken); }
.nav-link.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-quiet { display: block; margin: 0 12px; font-size: 13px; color: var(--ink-muted); }
.cabinet-main { width: min(100%, calc(100% - 240px)); min-width: 0; }
.cabinet-top { min-height: 76px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 32px; background: var(--surface-raised); border-bottom: 1px solid var(--line); }
.cabinet-top strong { font-size: 16px; }
.top-caption { margin-left: 16px; color: var(--ink-muted); font-size: 14px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.owner-email { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink-muted); }
.dashboard-content { width: min(100%, 1200px); margin: auto; padding: 32px; display: grid; gap: 24px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-title h1 { margin: 0; font-size: 24px; line-height: 32px; }
.page-title p { margin: 0; }
.page-title .eyebrow { color: var(--brand); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.dash-card { padding: 24px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; line-height: 26px; }
.card-title a { font-size: 13px; font-weight: 600; }
.status-badge { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--info-soft); color: var(--info); }
.status-badge.good { background: var(--good-soft); color: var(--good); }
.status-badge.warning { background: var(--warning-soft); color: var(--warning); }
.status-badge.critical { background: var(--critical-soft); color: var(--critical); }
.status-card > p { margin: 0 0 16px; }
.status-switch { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.status-switch input { width: 42px; height: 24px; accent-color: var(--brand); cursor: pointer; }
.risk-copy, .minor-copy { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.status-card .risk-copy { margin-top: 12px; margin-bottom: 0; }
.alerts { display: grid; gap: 8px; }
.alerts:empty { display: none; }
.alert { padding: 12px 16px; border-radius: var(--radius-md); background: var(--warning-soft); color: var(--warning); }
.alert.critical { background: var(--critical-soft); color: var(--critical); }
.param-grid, .metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.param-grid > div, .metric { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.param-grid span, .metric span { font-size: 13px; color: var(--ink-muted); }
.param-grid strong { font-size: 18px; }
.param-grid small { color: var(--ink-muted); }
.metric-grid { margin: 20px 0; }
.metric strong { font-size: 32px; line-height: 36px; font-variant-numeric: tabular-nums; }
.period-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 3px; }
.period-switch button { min-height: 32px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-muted); font: inherit; font-size: 13px; cursor: pointer; }
.period-switch button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.daily-chart { min-height: 90px; display: flex; align-items: flex-end; gap: 3px; border-bottom: 1px solid var(--line); }
.daily-chart span { flex: 1; min-width: 2px; background: var(--brand); border-radius: 3px 3px 0 0; }
.daily-chart span.missing { height: 2px !important; background: var(--line-strong); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.budget-big { font-size: 30px; font-variant-numeric: tabular-nums; }
.budget-track { height: 12px; position: relative; border-radius: 999px; background: var(--surface-sunken); overflow: hidden; }
.budget-track > div { height: 100%; width: 0; background: var(--brand); border-radius: 999px; }
.budget-track > span { position: absolute; left: 0; top: 0; width: 2px; height: 100%; background: var(--ink); }
.budget-facts, .item-facts { margin: 20px 0 0; display: grid; gap: 10px; }
.budget-facts div, .item-facts div { display: flex; justify-content: space-between; gap: 12px; }
dt { color: var(--ink-muted); } dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.decisions { padding: 0; margin: 0; list-style: none; }
.decisions li { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.decision-time, .decision-status { font-size: 13px; color: var(--ink-muted); }
.decision-copy { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) { .cabinet-page { display: block; } .side-nav { position: static; width: 100%; min-width: 0; height: auto; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .side-brand { margin: 0 20px 0 0; } .nav-group, .nav-quiet { display: none; } .cabinet-main { width: 100%; } .param-grid, .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .cabinet-top { padding: 12px 16px; } .owner-email { display: none; } .dashboard-content { padding: 20px 16px; gap: 16px; } .dash-card { padding: 20px; } .two-col { grid-template-columns: 1fr; gap: 16px; } .card-title { align-items: flex-start; flex-wrap: wrap; } .decisions li { grid-template-columns: 70px 1fr; } .decision-status { grid-column: 2; } }
@media (max-width: 380px) { .param-grid, .metric-grid { grid-template-columns: 1fr; } .top-actions { width: 100%; } }
