@font-face {
  font-family: Inter;
  src: url("/static/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #182921;
  --muted: #54665d;
  --soft: #718078;
  --line: #d7ded8;
  --paper: #f6f7f2;
  --surface: #fff;
  --accent: #1c5949;
  --deep: #143e34;
  --tint: #e7f1e6;
  --amber: #9d551b;
  --danger: #9a3628;
  --radius: 13px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
input, select, textarea { background: var(--surface); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid #428a75; outline-offset: 3px;
}
h1,h2,h3,p { margin: 0; }
h1 { font-weight: 660; font-size: clamp(27px,3vw,43px); line-height: 1.12; letter-spacing: -.053em; }
h2 { font-size: 19px; line-height: 1.3; font-weight: 640; letter-spacing: -.035em; }
h3 { letter-spacing: -.025em; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  min-height: 40px; border: 1px solid #bfcac2; border-radius: 7px; padding: 7px 10px;
}
.skip { position: fixed; top: -90px; left: 12px; background: #fff; padding: 9px 14px; z-index: 50; }
.skip:focus { top: 10px; }
.button, button.primary, button.secondary, button.ghost, a.primary {
  min-height: 38px; display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px;
  background: var(--surface); font-weight: 600; font-size: 13px; text-decoration: none;
  text-align: center; line-height: 1.4;
}
.button:hover, button.secondary:hover, button.ghost:hover { border-color: #869e91; background: #f0f5ef; }
.button.primary, button.primary, a.primary { color: white; background: var(--accent); border-color: var(--accent); }
.button.primary:hover, button.primary:hover, a.primary:hover { background: var(--deep); border-color: var(--deep); }
.button.subtle { background: var(--paper); }
.button.small { font-size: 12px; min-height: 31px; padding: 5px 9px; }
.text-button, .panel-link { border: 0; background: none; color: var(--accent); padding: 5px 0; font-weight: 600; }
.text-button:hover, .panel-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.wide { width: 100%; }
.muted { color: var(--muted); }
.eyebrow, .side-group, .metric-caption, .auth-foot {
  font-size: 10px; text-transform: uppercase; letter-spacing: .115em; font-weight: 720;
}
.eyebrow { color: var(--accent); margin-bottom: 9px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel-head, .section-head, .view-head, .h-actions, .session-tools { display: flex; align-items: center; gap: 12px; }
.view-head, .panel-head, .section-head { justify-content: space-between; }
.view-head { align-items: flex-end; margin-bottom: 23px; flex-wrap: wrap; }
.view-head p:not(.eyebrow), .panel-head p, .section-head p { color: var(--muted); margin-top: 5px; }
.h-actions { flex-wrap: wrap; gap: 8px; }
.panel-head { padding: 20px 21px 0; align-items: flex-start; }
.panel-head p { font-size: 12px; }
.section-head { margin-bottom: 13px; }
.num, td.number, th.number { text-align: right; }
.boot-status { max-width: 650px; padding: 55px 26px; margin: auto; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: flex-end;
  justify-content: center; gap: 3px; padding-bottom: 8px; background: var(--deep); flex: none;
}
.brand-mark i { display: block; width: 4px; background: #d9eec9; border-radius: 1px; }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 13px; }
.brand-mark i:nth-child(3) { height: 18px; }
.auth-screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; max-width: 1500px; margin: auto; }
.auth-brand, .auth-foot { margin: 0 clamp(24px,6vw,96px); }
.auth-brand, .brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 680; letter-spacing: -.045em; }
.auth-brand { padding: 26px 0; border-bottom: 1px solid var(--line); }
.auth-main { width: min(100%,1060px); margin: auto; padding: 64px 28px; display: grid; gap: clamp(35px,8vw,130px); align-items: center; grid-template-columns: 1.15fr 1fr; }
.auth-copy h1 { font-size: clamp(52px,7vw,92px); line-height: .96; letter-spacing: -.075em; margin-bottom: 24px; }
.auth-copy h1 span { color: #78a776; }
.auth-copy > p:not(.eyebrow) { font-size: 16px; max-width: 380px; line-height: 1.65; color: var(--muted); }
.auth-copy .eyebrow { margin-bottom: 20px; }
.demo-link { margin-top: 24px; display: inline-flex; gap: 10px; font-weight: 630; }
.auth-card { background: #fff; padding: clamp(22px,3vw,38px); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 8px 32px #1a482d08; }
.auth-card h2 { font-size: 26px; margin: 13px 0 6px; }
.auth-card > p:not(.form-error) { font-size: 13px; color: var(--muted); }
.auth-card label { display: block; margin: 17px 0 5px; font-weight: 580; font-size: 13px; }
.auth-card input { width: 100%; }
.auth-card button { margin-top: 20px; }
.form-error { padding: 8px 0 0; font-size: 13px; color: var(--danger); }
.auth-foot { padding: 20px 0; color: var(--muted); border-top: 1px solid var(--line); font-size: 9px; }
.auth-foot span { margin: 0 8px; }
.local-label { display: inline-flex; align-items: center; gap: 6px; border-radius: 30px; background: var(--tint); padding: 4px 10px; font-size: 11px; color: #29533f; font-weight: 620; }
.status-dot { height: 6px; width: 6px; background: #397c54; border-radius: 50%; }
.local-label.example { background: #faeedc; color: #724d22; }
.local-label.example .status-dot { background: #af7537; }
.workspace { display: grid; grid-template-columns: 215px minmax(0,1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar { background: #fafbf7; border-right: 1px solid var(--line); padding: 22px 13px 15px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; height: 100dvh; }
.brand { padding: 0 8px 26px; font-size: 19px; text-decoration: none; color: var(--ink); }
.side-group { color: var(--muted); margin: 14px 12px 9px; font-size: 9px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav a { padding: 10px 12px; display: flex; align-items: center; gap: 12px; text-decoration: none; color: #45584c; font-weight: 540; border-radius: 7px; font-size: 13px; }
.side-nav a:hover { background: #edf1ea; }
.side-nav a.active { background: #dfebde; color: #1f503a; font-weight: 680; }
.nav-icon { display: block; position: relative; width: 16px; height: 16px; flex: 0 0 16px; }
.ni-grid::before { content: ''; position: absolute; width: 6px; height: 6px; top: 1px; left: 1px; background: currentColor; border-radius: 1.2px; box-shadow: 8px 0 currentColor, 0 8px currentColor, 8px 8px currentColor; }
.ni-add { border: 1.5px solid currentColor; border-radius: 4px; }
.ni-add::before, .ni-add::after { content: ''; position: absolute; inset: 6px 3px; height: 1.5px; background: currentColor; }
.ni-add::after { transform: rotate(90deg); }
.ni-register, .ni-report { border: 1.5px solid currentColor; border-radius: 3px; }
.ni-register::before { content: ''; position: absolute; height: 1.4px; top: 4px; left: 3px; right: 3px; background: currentColor; box-shadow: 0 3.5px currentColor; }
.ni-report::before { content: ''; position: absolute; bottom: 3px; left: 3px; width: 2px; height: 4px; background: currentColor; box-shadow: 3px -2px currentColor, 6px -4px currentColor; }
.side-entity { border-top: 1px solid var(--line); margin-top: auto; padding: 17px 1px 2px; display: flex; align-items: center; gap: 9px; }
.entity-avatar { background: #e5eae0; color: #4c634f; border-radius: 8px; width: 33px; height: 33px; display: grid; place-items: center; font-weight: 650; font-size: 11px; }
.side-entity strong, .side-entity div span { display: block; font-size: 11px; }
.side-entity div span { color: var(--muted); font-size: 10px; }
.desk { min-width: 0; }
.topbar { background: #fff; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 0 clamp(18px,3.3vw,50px); min-height: 61px; }
.crumb { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.crumb strong { color: var(--ink); font-weight: 580; }
.slash { color: #86948a; }
.session-tools { gap: 12px; }
.session-tools button { font-size: 12px; }
.content { width: 100%; max-width: 1590px; margin: 0 auto; padding: 30px clamp(17px,3.3vw,50px) 55px; }
.period-strip { border-top: 1px solid var(--line); padding-top: 13px; padding-bottom: 16px; margin-bottom: 5px; display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.period-strip .period-label { color: var(--muted); font-size: 12px; }
.period-pick { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.period-pick > label { font-size: 12px; color: var(--muted); }
.period-pick select { min-height: 33px; font-size: 12px; padding: 4px 9px; }
.period-pick input[type="date"] { min-height: 32px; font-size: 12px; padding: 4px 6px; width: 131px; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 15px; }
.metric { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 15px 16px 14px; }
.metric:hover { border-color: #789985; }
.metric .metric-caption { font-size: 10px; min-height: 19px; font-weight: 620; color: var(--muted); letter-spacing: .082em; }
.metric .amount { font-size: clamp(20px,1.95vw,32px); letter-spacing: -.05em; font-weight: 630; line-height: 1.24; margin: 6px 0 10px; word-break: break-word; }
.metric .metric-note { font-size: 11px; color: var(--muted); }
.metric.main-metric { color: #f4f9ee; background: var(--deep); border-color: var(--deep); }
.metric.main-metric .metric-note, .metric.main-metric .metric-caption { color: #c6dbcc; }
.dash-grid { display: grid; grid-template-columns: minmax(0,1.85fr) minmax(230px,1fr); gap: 14px; margin-bottom: 16px; align-items: stretch; }
.chart-legend { display: flex; gap: 12px; margin: 12px 21px 0; }
.legend-key { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.legend-key i { display: inline-block; width: 13px; height: 3px; border-radius: 3px; }
.legend-key .in { background: #23715c; }
.legend-key .out { background: #b36a36; }
.chart-wrap { height: 170px; margin: 6px 15px 4px; min-width: 0; }
.chart-wrap canvas { display: block; width: 100%; height: 100%; }
.chart-details { margin: 4px 21px 13px; font-size: 11px; color: var(--muted); }
.chart-details summary { cursor: pointer; width: fit-content; }
.chart-details > div { max-height: 180px; overflow: auto; }
.center-empty { display: grid; align-content: center; justify-items: center; gap: 5px; text-align: center; min-height: 165px; padding: 18px; font-size: 12px; color: var(--muted); }
.center-empty strong { font-size: 14px; color: var(--ink); }
.position-list { display: grid; margin: 8px 21px 14px; }
.position-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); background: none; text-align: left; border-top: 0; border-left: 0; border-right: 0; width: 100%; }
.position-item:last-child { border-bottom: 0; }
.position-item span { color: var(--muted); font-size: 12px; }
.position-item strong { white-space: nowrap; font-size: 13px; font-weight: 620; }
.recent { overflow: hidden; margin-bottom: 15px; }
.recent .panel-head { align-items: center; padding-bottom: 14px; }
.table-scroll { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { text-align: left; white-space: nowrap; color: var(--muted); font-weight: 580; background: #f5f7f2; }
.data-table td, .data-table th { padding: 9px 15px; border-bottom: 1px solid #e5e9e3; }
.data-table td:first-child, .data-table th:first-child { padding-left: 21px; }
.data-table td:last-child, .data-table th:last-child { padding-right: 21px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td.num, .data-table th.num { text-align: right; }
td.money { white-space: nowrap; }
.table-link { border: 0; background: none; color: var(--accent); font-weight: 620; text-decoration: underline; text-decoration-color: #a7bbae; padding: 3px 0; }
.badge { font-size: 10px; padding: 3px 8px; border-radius: 20px; white-space: nowrap; font-weight: 600; }
.badge.posted { background: #e7f1e7; color: #326044; }
.badge.draft { background: #fff0d9; color: #77501e; }
.badge.reversed { background: #f1e8e3; color: #874932; }
.checks { display: flex; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; padding: 12px 16px; }
.checks strong { font-size: 12px; }
.checks span { font-size: 11px; color: var(--muted); }
.checks .alert { color: var(--danger); }
.report-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 15px; }
.report-tabs button { color: var(--muted); padding: 7px 12px; border-radius: 7px; border: 1px solid transparent; background: transparent; font-size: 12px; font-weight: 560; }
.report-tabs .selected { color: var(--accent); background: #fff; border-color: var(--line); }
.statement { overflow: hidden; }
.statement .panel-head { padding-bottom: 18px; }
.statement .panel-head span { font-size: 11px; color: var(--muted); }
.statement td { font-size: 13px; }
.statement .heading td { color: var(--accent); background: #f1f5ef; font-weight: 640; }
.statement .total td { font-weight: 660; background: #f8faf6; }
.statement .check td { color: var(--accent); font-weight: 620; }
.report-notes { padding: 22px; }
.report-notes h3 { font-size: 15px; margin: 18px 0 4px; }
.report-notes p { color: var(--muted); max-width: 75ch; }
.error-panel { padding: 25px; }
.error-panel p { color: var(--danger); margin: 6px 0 14px; }
.toast { position: fixed; right: 19px; bottom: 19px; background: var(--deep); color: white; border-radius: 9px; padding: 12px 16px; max-width: min(92vw,460px); z-index: 40; box-shadow: 0 4px 24px #0002; }
@media (min-width: 1570px) {
  .content { padding-top: 41px; }
  .metrics { gap: 16px; }
  .metric { padding: 19px 22px; }
  .chart-wrap { height: 210px; }
}
@media (max-width: 1080px) {
  .workspace { grid-template-columns: 178px minmax(0,1fr); }
  .sidebar { padding-left: 8px; padding-right: 8px; }
  .content { padding-left: 21px; padding-right: 21px; }
  .metrics { gap: 8px; }
  .metric { padding: 12px 10px; }
  .dash-grid { grid-template-columns: minmax(0,1.45fr) minmax(218px,1fr); }
}
@media (max-width: 790px) {
  .auth-main { grid-template-columns: 1fr; gap: 25px; max-width: 510px; padding: 32px 25px; }
  .auth-copy h1 { font-size: 53px; margin-bottom: 12px; }
  .auth-copy .eyebrow { margin-bottom: 9px; }
  .demo-link { margin-top: 12px; }
  .workspace { display: block; }
  .sidebar { height: auto; position: static; padding: 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 12px 2px 9px; }
  .brand-mark { width: 28px; height: 28px; padding-bottom: 5px; }
  .side-group,.side-entity { display: none; }
  .side-nav { flex-direction: row; overflow-x: auto; gap: 2px; padding-bottom: 7px; }
  .side-nav a { white-space: nowrap; font-size: 12px; padding: 7px 8px; gap: 6px; }
  .nav-icon { transform: scale(.85); }
  .topbar { min-height: 44px; padding: 6px 16px; }
  .content { padding: 22px 15px 38px; }
  .metric .amount { font-size: 20px; }
}
@media (max-width: 615px) {
  .side-nav a { padding: 7px; font-size: 11px; }
  .side-nav a .nav-icon { display: none; }
  .view-head { align-items: flex-start; gap: 12px; margin-bottom: 15px; }
  .period-strip { gap: 6px; padding-top: 9px; padding-bottom: 9px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric { padding: 13px 12px; min-height: 95px; }
  .metric .metric-caption { font-size: 9px; }
  .metric .amount { margin: 3px 0 5px; }
  .dash-grid { grid-template-columns: 1fr; }
  .panel-head { padding: 15px 15px 0; }
  .chart-wrap { height: 150px; margin-left: 7px; margin-right: 7px; }
  .position-list { margin-left: 15px; margin-right: 15px; }
  .data-table td,.data-table th { padding: 8px 10px; }
  .recent .data-table td:nth-child(3),.recent .data-table th:nth-child(3) { display: none; }
  .recent .data-table td:last-child,.recent .data-table th:last-child { display: none; }
  .recent .table-link { white-space: nowrap; }
  .statement td { font-size: 12px; }
  .report-tabs { gap: 2px; }
  .report-tabs button { padding: 5px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  @page { size: A4; margin: 15mm; }
  body,:root,.desk,.content { background: white; color: black; }
  .workspace { display: block; }
  .sidebar,.topbar,.skip,.session-tools,.h-actions,.report-tabs,.period-strip,.toast,.no-print,.chart-details,button { display: none !important; }
  .content { max-width: none; padding: 0; }
  .panel { box-shadow: none; border-radius: 0; }
  .statement { overflow: visible; border: 0; }
  .table-scroll { overflow: visible; }
  .statement tr { break-inside: avoid; }
  .statement .table-link { display: inline !important; font: inherit; color: inherit; padding: 0; text-decoration: none; }
  .view-head { margin-bottom: 16px; }
  .statement table { font-size: 10pt; }
  h1 { font-size: 23pt; }
}
#google-button:not(:empty) { margin-top: 20px; min-height: 40px; }
#login-status { margin-top: 14px; }
#session-account { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.session-tools { justify-content: flex-end; flex-wrap: wrap; }
#mode-action { font-size: 12px; }
@media (max-width: 790px) {
  .topbar { flex-wrap: wrap; gap: 6px 14px; }
  .session-tools { justify-content: flex-start; gap: 6px 12px; }
}
.ni-users::before, .ni-users::after { content: ''; position: absolute; border: 1.5px solid currentColor; }
.ni-users::before { border-radius: 50%; width: 6px; height: 6px; top: 0; left: 4px; }
.ni-users::after { border-radius: 7px 7px 2px 2px; width: 13px; height: 6px; left: 1px; bottom: 0; }
.user-add, .user-row { display: grid; align-items: end; gap: 12px; }
.user-add { grid-template-columns: minmax(180px,2fr) minmax(140px,1fr) auto; }
.user-row { grid-template-columns: minmax(180px,2fr) minmax(125px,1fr) minmax(105px,1fr) auto; padding-top: 16px; border-top: 1px solid var(--line); }
.user-identity { display: grid; gap: 2px; align-self: center; overflow-wrap: anywhere; }
.user-identity span { color: var(--muted); font-size: 12px; }
.user-list-heading { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.user-error { color: var(--danger); grid-column: 1 / -1; }
.user-error:empty { display: none; }
@media (max-width: 880px) {
  .user-add, .user-row { grid-template-columns: 1fr 1fr; }
  .user-row .user-identity, .user-add > label:first-child { grid-column: 1 / -1; }
  .user-row > button { justify-self: start; }
}
