@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/inter-0.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/inter-1.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/inter-2.ttf) format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/inter-3.ttf) format('truetype');
}

:root{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#36394a;background:#f5f7f9;font-synthesis:none;font-size:16px;--muted:#7e818b;--blue:#5274ff;--line:#e8ebf0;--surface:#f5f7f9;--shadow:0 1px 2px rgba(164,172,185,.19),0 0 0 1px rgba(18,55,105,.07)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px 15px;font-size:14px;font-weight:500;line-height:20px;transition:background .15s,box-shadow .15s;white-space:nowrap}button:hover{background:#f6f8ff}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #bbc8ff;outline-offset:3px}.primary{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 2px 3px #5274ff1a}.primary:hover{background:#4163ec}.secondary{box-shadow:0 1px 2px #a4acb910;background:linear-gradient(#fff,#fdfdfe)}.quiet{background:transparent;border-color:transparent;box-shadow:none;color:var(--muted)}.danger{color:#df5454}.small{padding:6px 11px;min-height:34px}.full{width:100%}.button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);padding:10px 15px;border-radius:8px;font-size:14px;color:inherit;line-height:20px}.button:hover{text-decoration:none;background:#f6f8ff}.muted{color:var(--muted)}h1,h2,p{margin:0}h1{font-size:28px;letter-spacing:-.75px;font-weight:600;line-height:36px}h2{font-size:16px;line-height:24px;font-weight:500}p{line-height:1.6}hr{border:0;border-top:1px solid var(--line);margin:20px 0}[hidden]{display:none!important}.initial-loading{height:90vh;display:flex;gap:24px;align-items:center;justify-content:center;flex-direction:column;color:var(--muted);font-size:14px}.sidebar{position:fixed;inset:0 auto 0 0;width:236px;padding:34px 16px 18px;display:flex;flex-direction:column}.brand{display:flex;flex-direction:column;gap:10px;padding:0 16px;color:var(--muted);font-size:13px;letter-spacing:.1px}.brand:hover{text-decoration:none}.brand img{display:block;width:138px;height:28px}.brand span{padding-left:32px}.nav-caption{font-size:11px;letter-spacing:1.3px;font-weight:500;color:#989ca8;margin:42px 16px 14px}nav{display:flex;flex-direction:column;gap:8px}nav a{display:flex;align-items:center;gap:13px;padding:10px 14px;border-radius:8px;color:#606574;font-size:14px;min-height:42px}nav a:hover{background:#eceff5;text-decoration:none}nav a.active{background:linear-gradient(#fff,#fdfdfe);color:#36394a;font-weight:500;box-shadow:var(--shadow)}nav a img{flex:0 0 auto;opacity:.8}nav a.active img{opacity:1}.nav-icon{font-size:21px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;color:#6d7483;font-weight:400}.count-badge{background:#e8edff;color:#5971c7;border-radius:5px;font-size:12px;padding:0 6px;line-height:20px;margin-left:auto}.sidebar-bottom{margin-top:auto}.account{border-top:1px solid #e1e6ed;padding:20px 9px 10px;display:flex;gap:10px;align-items:center}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e1e8ff;color:#5e76c8;font-size:14px;font-weight:600}.account strong{display:block;font-size:13px;max-width:143px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.sidebar-bottom button{width:100%;justify-content:space-between;font-size:13px}.workspace{background:#fff;margin:16px 16px 16px 236px;min-height:calc(100vh - 32px);border-radius:20px;box-shadow:0 1px 2px #a4acb922;display:flex;flex-direction:column;overflow:hidden}.topbar{display:flex;align-items:center;justify-content:space-between;padding:24px 36px;border-bottom:1px solid #f0f2f6;gap:16px}.breadcrumb{font-size:13px;color:#969aa5;display:flex;align-items:center;gap:12px}.breadcrumb strong{font-weight:400;color:#606574}.breadcrumb span{color:#cdd2db}.sync-label{font-size:12px;display:flex;align-items:center;gap:7px;color:var(--muted)}.sync-label i{width:6px;height:6px;border-radius:50%;background:#b9beca}.sync-label.connected i{background:#1db462}.sync-label.error i{background:#ff9559}.content{padding:32px 36px 40px;max-width:1560px;width:100%;margin:auto;flex:1}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}.page-heading .muted{font-size:14px;margin-top:5px}.heading-actions{display:flex;gap:10px}.refresh-icon{font-size:20px;line-height:18px}.period-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:24px}.period-presets{display:flex;align-items:center;gap:3px;background:#f5f7fa;padding:4px;border:1px solid #edf0f5;border-radius:9px}.period-presets button{background:transparent;border:0;padding:6px 11px;font-size:13px;color:#7e818b}.period-presets button.active{background:#fff;box-shadow:var(--shadow);color:#36394a}.date-range{display:flex;align-items:center;gap:8px;color:#adb2be}.date-range input{width:134px;font-size:12px;padding:7px 8px;margin:0;min-height:34px}.notice{border:1px solid #dfe6ff;background:linear-gradient(110deg,#f7f9ff,#fbfbff);border-radius:9px;padding:13px 16px;font-size:14px;color:#5d6b99;margin-bottom:22px;line-height:1.65}.notice.error{border-color:#f3ceca;background:#fff7f5;color:#b84d47}.notice a{font-weight:500}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.metric{padding:20px;background:#fff;box-shadow:var(--shadow);border-radius:12px;min-height:153px}.metric.profit{background:linear-gradient(130deg,#f6f9ff,#fff 75%);box-shadow:0 1px 2px #a4acb928,0 0 0 1px #dce3f6}.metric-label{font-size:13px;color:#7e818b;display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.metric-icon{display:grid;place-items:center;border-radius:8px;width:30px;height:30px;font-size:18px}.blue{color:#5274ff;background:#edf1ff}.peach{color:#e89964;background:#fff3e9}.green{color:#30a775;background:#eaf8f1}.neutral{color:#8d92a3;background:#f1f3f6}.metric>strong{font-size:27px;letter-spacing:-.8px;line-height:34px;white-space:nowrap;font-weight:600;font-variant-numeric:tabular-nums}.metric-note{font-size:12px;color:#969ba6;margin-top:10px;line-height:18px}.positive{color:#1ba868!important}.negative{color:#dc6161!important}.chart-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px;margin-bottom:24px}.panel{border-radius:13px;background:#f5f7f9;padding:5px;box-shadow:var(--shadow);min-width:0}.panel-heading{padding:8px 12px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading a{font-size:12px}.panel-body{border-radius:9px;background:#fff;box-shadow:0 0 0 1px #1237690d;padding:20px;min-width:0}.chart-panel .panel-body{padding:15px 15px 8px;min-height:270px}.chart-legend{display:flex;gap:16px;font-size:12px;color:#9297a3}.chart-legend span{display:flex;align-items:center;gap:6px}.chart-legend i{height:7px;width:7px;border-radius:50%;display:block}.blue-dot{background:#657fff}.orange-dot{background:#efa677}#chart{height:250px;position:relative}.chart-svg{display:block;width:100%;height:100%;overflow:visible}.chart-empty{display:flex;height:100%;align-items:center;justify-content:center;flex-direction:column;gap:7px;text-align:center;color:#a1a7b3;background-image:radial-gradient(#e7ebf3 1px,transparent 1px);background-size:22px 22px;border-radius:6px}.chart-empty strong{font-size:14px;font-weight:500;color:#737b8d;padding:5px 10px;background:#fff}.chart-empty span{font-size:12px;background:#fff}.total-primary{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.total-primary span{font-size:12px;color:#9297a3}.total-primary strong{font-size:24px;letter-spacing:-.6px}.details{margin:0}.details div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;font-size:12px;border-top:1px solid #f0f2f6}.details dt{color:#7e818b}.details dd{margin:0;font-weight:500;white-space:nowrap}.calculation-note{font-size:11px;line-height:1.65;color:#9ca2af;margin-top:16px}.bottom-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:22px}.bottom-layout .panel-body{min-height:205px}.empty-state{padding:35px 15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;color:#9da4b0;font-size:13px;min-height:160px}.empty-state strong{font-size:14px;font-weight:500;color:#7e8798}.empty-state button,.empty-state a{margin-top:8px}.category-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #f0f2f6;font-size:13px}.category-row:last-child{border:0}.category-row small{display:block;font-size:12px;color:#969ba6;margin-top:4px}.category-row strong{font-weight:500;white-space:nowrap}.category-row .number{width:26px;height:26px;background:#f1f4ff;color:#8395d2;border-radius:7px;display:grid;place-items:center;font-size:12px;flex-shrink:0}.category-name{flex:1}.expense-category{padding:12px 0}.expense-category .row{display:flex;justify-content:space-between;gap:14px;font-size:13px;margin-bottom:10px}.bar{height:5px;background:#f0f3f8;border-radius:4px;overflow:hidden}.bar span{display:block;background:#91a3f4;height:5px;border-radius:4px}.footnote{font-size:11px;color:#a0a6b1;margin-top:20px}.workspace-footer{display:flex;justify-content:space-between;padding:20px 36px;border-top:1px solid #f0f2f6;font-size:11px;color:#a3a9b5}.workspace-footer .muted{padding:0 8px}.table-tools{padding:7px 9px 12px;min-height:50px}.search-field{display:flex;align-items:center;gap:8px;max-width:410px;width:100%;border:1px solid var(--line);border-radius:7px;background:#fff;padding-left:12px}.search-field span{color:#9ba3b2;font-size:20px}.search-field input{border:0;box-shadow:none;margin:0;padding:8px;font-size:13px;min-width:0;width:100%;background:transparent}.inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.inline select{margin:0;width:auto;font-size:13px;padding:8px 12px}.table-scroll{overflow:auto;border-radius:9px;background:#fff;box-shadow:0 0 0 1px #1237690d}table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}th{font-weight:400;color:#959ba6;padding:15px 16px;font-size:12px;border-bottom:1px solid #eef1f6;white-space:nowrap}td{padding:17px 16px;border-bottom:1px solid #f0f2f6;line-height:1.6;vertical-align:middle}tbody tr:last-child td{border:0}tbody tr:hover{background:#fafbff}td small{display:block;font-size:11px;color:#a0a6b1;margin-top:3px}.right{text-align:right}.status{display:inline-flex;align-items:center;gap:5px;border-radius:5px;background:#f2f4f8;color:#939aa8;font-size:12px;line-height:22px;padding:1px 7px;white-space:nowrap}.status.completed,.status.connected{color:#16a862;background:#edf9f2}.status.created,.status.pending{color:#617bf2;background:#f0f3ff}.status.refund,.status.error{color:#e38a4a;background:#fff3ea}.table-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 10px 7px;font-size:12px;color:#949ba8}.order-title{max-width:380px}.row-actions{white-space:nowrap;text-align:right}.row-actions button{padding:5px 8px;font-size:12px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.setting-body{padding:22px}.setting-body p.muted{font-size:14px;margin-bottom:20px}.setting-body .primary{margin-top:12px}.setting-body details{margin-bottom:20px;border-top:1px solid var(--line);padding-top:16px}summary{cursor:pointer;font-size:13px;color:#7d8699}details[open] summary{margin-bottom:14px}.setting-body .help{font-size:12px}.help{font-size:12px;color:#8e96a5;line-height:1.6;margin:10px 0 18px}label{font-size:13px;color:#657082;display:block;line-height:20px;margin-bottom:18px}input,textarea,select{display:block;width:100%;padding:10px 12px;border:1px solid #e1e6ee;border-radius:7px;background:#fff;margin-top:7px;font-size:14px;min-height:40px;outline:0}input:focus,textarea:focus,select:focus{border-color:#9aafff;box-shadow:0 0 0 3px #edf1ff}input::placeholder,textarea::placeholder{color:#b1b7c2}textarea{resize:vertical;min-height:130px;font-size:12px;line-height:1.6}.sync-run{padding:12px 0;border-bottom:1px solid #edf0f6;font-size:13px}.sync-run .row{display:flex;justify-content:space-between;gap:10px;margin-bottom:5px}.sync-run small{font-size:12px;color:#969eac}.review-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px;margin-bottom:14px;display:flex;align-items:flex-start;gap:24px}.review-card .review-info{flex:1;min-width:0}.review-card h3{font-size:15px;margin:0 0 8px;font-weight:500}.review-card .muted{font-size:13px;line-height:1.6}.review-card .source-note{font-size:12px;color:#a0a7b3;margin-top:12px}.review-card details{margin-top:10px}.review-card blockquote{margin:12px 0;padding:10px 15px;background:#f7f9fc;border-left:2px solid #dce4f5;font-size:12px;color:#7b8495;white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto}.review-amount{white-space:nowrap;font-size:17px;font-weight:500;margin-bottom:12px}.review-side{min-width:200px;text-align:right}.review-side .inline{justify-content:flex-end}.review-side .status{margin-bottom:12px}.login-brand{padding:35px 40px;display:flex;align-items:center;gap:20px}.login-brand span{font-size:13px;color:#9aa1ae;border-left:1px solid #dde3ee;padding-left:20px}.login-card{max-width:432px;margin:9vh auto 60px;background:#fff;box-shadow:var(--shadow);border-radius:18px;padding:36px}.app-symbol{display:grid;place-items:center;width:45px;height:45px;border-radius:12px;color:var(--blue);background:#edf1ff;margin-bottom:24px;font-size:23px}.login-card h1{font-size:24px}.login-card>p{font-size:13px;margin:8px 0 28px}.login-card form{margin-top:25px}.login-card .login-foot{text-align:center;font-size:11px;margin:26px 0 0;color:#a4aab5}.form-error{color:#d8635b;font-size:13px;line-height:1.5;min-height:0;margin-bottom:12px}.form-error:empty{display:none}dialog{border:1px solid #e8edf5;border-radius:15px;width:min(520px,calc(100vw - 32px));padding:28px;color:inherit;box-shadow:0 20px 100px #2b385632;max-height:92vh;overflow:auto}dialog::backdrop{background:#1b254648;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:25px}.dialog-heading h2{font-size:20px;font-weight:600}.dialog-heading p{font-size:12px;margin-top:5px}.icon-button{padding:0;width:29px;height:29px;border:0;background:transparent;color:#a5acb8;font-size:25px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.amount-row{grid-template-columns:1fr 130px}.expense-preview{display:flex;justify-content:space-between;gap:16px;padding:16px;border:1px solid #e5eafb;border-radius:8px;background:#f9faff;margin-bottom:20px;font-size:13px}.expense-preview strong{font-size:17px;font-weight:500}.expense-preview span{color:#8d96a8}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;padding-top:10px}.dialog-footer .primary{min-width:170px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:13px 20px;background:#363f55;color:#fff;box-shadow:0 6px 25px #27365026;border-radius:9px;font-size:13px;z-index:2000;max-width:min(600px,90vw);line-height:1.5}#toast button{margin-left:12px;padding:3px 8px;border-color:#697387;background:transparent;color:#fff;font-size:12px}
@media(min-width:1600px){.content{padding:38px 52px}.metric>strong{font-size:32px}.chart-panel .panel-body{min-height:315px}#chart{height:295px}.chart-layout{grid-template-columns:minmax(0,1fr) 320px}.topbar{padding-left:52px;padding-right:52px}}
@media(max-width:1250px){.sidebar{width:200px}.workspace{margin-left:200px}.content{padding:28px 24px}.topbar{padding:20px 24px}.page-heading{align-items:flex-start}.heading-actions{flex-direction:column}.metric{padding:15px}.metric>strong{font-size:23px}.chart-layout{grid-template-columns:minmax(0,1fr) 255px}.chart-legend{gap:8px}.sidebar .brand{padding:0 10px}.nav-caption{margin-left:10px}.metrics{gap:12px}}
@media(max-width:1000px){.sidebar{width:180px;padding-left:10px;padding-right:10px}.workspace{margin-left:180px}.brand img{width:138px;height:28px}.metrics{grid-template-columns:1fr 1fr}.metric>strong{font-size:28px}.chart-layout,.bottom-layout,.settings-grid{grid-template-columns:1fr}.totals-panel .details{display:grid;grid-template-columns:1fr 1fr;column-gap:24px}.date-range{flex-wrap:wrap}.page-heading h1{font-size:25px}.page-heading .muted{font-size:13px}.breadcrumb{display:none}.topbar{justify-content:flex-end}.review-card{flex-direction:column;gap:15px}.review-side{text-align:left;display:flex;align-items:center;gap:15px;width:100%;flex-wrap:wrap}.review-amount,.review-side .status{margin:0}.review-side .inline{margin-left:auto}.period-presets{flex-wrap:wrap}.period-bar{gap:12px}}
@media(max-width:800px){.sidebar{position:static;width:auto;padding:18px 16px 0}.brand{flex-direction:row;align-items:center;justify-content:space-between;padding:0 4px}.brand span{padding:0;font-size:12px}.nav-caption,.sidebar-bottom{display:none}nav{flex-direction:row;gap:6px;overflow:auto;margin-top:20px;padding:2px 2px 10px}nav a{font-size:12px;gap:7px;padding:8px 10px;flex-shrink:0;min-height:36px}nav a img,.nav-icon{display:none}.count-badge{font-size:10px;line-height:16px}.workspace{margin:0 10px 10px;border-radius:13px;min-height:calc(100vh - 110px)}.topbar{padding:14px 18px}.sync-label{font-size:11px}.content{padding:22px 16px 28px}.page-heading{flex-direction:column;gap:17px;margin-bottom:20px}.page-heading h1{font-size:25px;line-height:32px}.heading-actions{flex-direction:row;width:100%;gap:8px}.heading-actions button{font-size:12px;padding:8px 10px;flex:1}.heading-actions button span{font-size:16px}.period-presets{width:100%;gap:0;justify-content:space-between}.period-presets button{font-size:11px;padding:5px 6px}.date-range{gap:6px;width:100%;flex-wrap:nowrap}.date-range input{flex:1;width:0;min-width:0;font-size:11px}.date-range button{font-size:11px;padding:6px 8px}.metrics{gap:10px;margin-bottom:20px}.metric{padding:14px 12px;min-height:138px}.metric-label{font-size:11px;margin-bottom:12px;gap:4px}.metric-icon{width:24px;height:24px;font-size:15px}.metric>strong{font-size:21px;letter-spacing:-.6px;line-height:28px}.metric-note{font-size:10px;line-height:16px;margin-top:8px}.panel-heading{padding:8px 9px 11px;gap:8px}.panel-heading h2{font-size:14px}.panel-heading a{font-size:11px}.chart-legend{font-size:10px}.chart-panel .panel-body{padding:10px 5px 4px;min-height:232px}#chart{height:220px}.panel-body{padding:16px}.chart-layout,.bottom-layout{gap:18px}.totals-panel .details{display:block}.totals-panel .details div{font-size:13px}.calculation-note{font-size:12px}.footnote{font-size:11px}.workspace-footer{font-size:10px;padding:17px}.table-tools{flex-wrap:wrap}.search-field{max-width:none}.table-tools>.inline{width:100%;justify-content:space-between}.table-footer{font-size:11px;flex-wrap:wrap;line-height:1.5}.table-scroll table{min-width:690px}.notice{font-size:12px;padding:12px}.review-card{padding:16px}.review-side{min-width:0}.review-side .inline{margin:0}.review-card h3{font-size:14px}.review-card .muted{font-size:12px}.settings-grid{gap:18px}.setting-body{padding:16px}.login-brand{padding:25px 24px}.login-brand span{font-size:11px}.login-card{margin:8vh 20px;padding:28px 24px}.form-row{gap:10px}dialog{padding:22px}.dialog-heading h2{font-size:19px}.dialog-heading p{font-size:11px}.dialog-footer button{padding:9px 13px}.dialog-footer .primary{min-width:0}}


/* Motion keeps the final content in normal flow and never interpolates money. */
button,.button,nav a{transition:background-color 180ms ease,color 180ms ease,border-color 180ms ease,box-shadow 220ms ease,transform 180ms cubic-bezier(.22,1,.36,1)}
input,textarea,select{transition:border-color 180ms ease,box-shadow 180ms ease}
.metric{transition:box-shadow 240ms ease}
.metric>strong{display:inline-block}
.metric-icon{transition:transform 240ms cubic-bezier(.22,1,.36,1)}
nav a{position:relative}
nav a.active::after{content:"";position:absolute;left:0;top:13px;bottom:13px;width:3px;border-radius:3px;background:#718aff;animation:nav-accent 280ms ease-out both}
tbody tr,.category-row{transition:background-color 180ms ease}
.bar span{transform-origin:left center;animation:bar-reveal 650ms cubic-bezier(.22,1,.36,1) both}
.refresh-icon{display:inline-block}
.is-spinning{animation:sync-spin 1s linear infinite}
dialog[open]::backdrop{animation:backdrop-reveal 240ms ease-out both}
.initial-loading span{animation:loading-breathe 1.6s ease-in-out infinite}
@media(hover:hover) and (pointer:fine){
 button:not(:disabled):hover,.button:hover{transform:translateY(-1px)}
 .primary:not(:disabled):hover{box-shadow:0 4px 12px #5274ff2b}
 nav a:not(.active):hover{transform:translateX(2px)}
 .metric:hover{box-shadow:0 5px 18px #a4acb926,0 0 0 1px #e5eaf3}
 .metric:hover .metric-icon{transform:translateY(-2px)}
 .category-row:hover{background:#fafbff}
}
button:not(:disabled):active,.button:active{transform:translateY(1px) scale(.985);transition-duration:80ms}
@keyframes nav-accent{from{opacity:0;transform:scaleY(.35)}to{opacity:1;transform:scaleY(1)}}
@keyframes bar-reveal{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes sync-spin{to{transform:rotate(360deg)}}
@keyframes backdrop-reveal{from{opacity:0}to{opacity:1}}
@keyframes loading-breathe{0%,100%{opacity:.5}50%{opacity:1}}
@media(max-width:800px){nav a.active::after{top:auto;bottom:0;left:12px;right:12px;width:auto;height:2px;animation-name:mobile-nav-accent}}
@keyframes mobile-nav-accent{from{opacity:0;transform:scaleX(.4)}to{opacity:1;transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 button:not(:disabled):hover,.button:hover,button:not(:disabled):active,.button:active,nav a:not(.active):hover,.metric:hover .metric-icon{transform:none}
}

/* Details for the selected day stay outside the SVG coordinate space. */
#chart.financial-chart{height:auto;min-height:320px;position:relative;isolation:isolate}
.chart-stage{height:320px;position:relative}
.chart-stage .chart-svg{width:100%;height:100%;touch-action:pan-y;outline:0}
.chart-stage .chart-svg:focus-visible{outline:2px solid #91a4ff;outline-offset:3px;border-radius:6px}
.chart-tooltip{position:absolute;width:286px;max-width:calc(100vw - 32px);padding:16px;background:#fff;border:1px solid #e4e9f2;border-radius:12px;box-shadow:0 10px 36px #27365020,0 2px 6px #2736500a;z-index:10;color:#36394a;text-align:left;line-height:1.5}
.chart-tooltip-date{font-size:13px;color:#7e8594;padding-right:22px;margin-bottom:8px}
.chart-tooltip-date strong{color:#36394a;font-weight:600}
.chart-tooltip-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:13px;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #edf0f5}
.chart-tooltip-total strong{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.chart-tooltip-section+.chart-tooltip-section{margin-top:12px}
.chart-tooltip-title{font-size:13px;font-weight:600;margin:0 0 7px}
.chart-tooltip-row{display:flex;justify-content:space-between;gap:12px;font-size:12px;line-height:18px;margin:4px 0}
.chart-tooltip-row>span:first-child{color:#8c93a0}
.chart-tooltip-row strong{font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
.chart-tooltip-note{font-size:11px;color:#969daa;margin-top:12px;line-height:1.5}
.chart-tooltip-close{position:absolute;top:8px;right:8px;padding:0;width:24px;height:24px;min-height:0;line-height:20px;font-size:20px;color:#939aaa;background:transparent;border:0;border-radius:5px}
.chart-help{font-size:11px;color:#949caa;margin:6px 0 3px;text-align:center;line-height:1.5}
.chart-warning{font-size:11px;line-height:1.5;color:#b27c44;background:#fff8f0;border-radius:6px;padding:8px 10px;margin-bottom:8px}
.chart-focus-line{pointer-events:none;stroke:#899dff;stroke-width:1;stroke-dasharray:4 4;vector-effect:non-scaling-stroke}
.chart-focus-dot{pointer-events:none;stroke:#fff;stroke-width:3;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 3px #5274ff35)}
.chart-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1600px){#chart.financial-chart{min-height:340px}.chart-stage{height:340px}}
@media(max-width:800px){#chart.financial-chart{min-height:220px}.chart-stage{height:220px}}
@media(max-width:600px){
 .chart-tooltip{position:relative;width:100%;max-width:100%;margin-top:12px;padding:14px;box-shadow:0 2px 8px #2736500b}
 .chart-tooltip-date{padding-right:24px}
 .chart-tooltip-total strong{font-size:18px}
 .chart-tooltip-row{font-size:13px;line-height:20px}
 .chart-help{font-size:10px;padding:0 8px}
}
