:root{font:16px/1.5 system-ui,sans-serif;color:#182230;background:#f5f6f9;--accent:#ab331f;--line:#dfe3e9}
*{box-sizing:border-box}body{margin:0}header{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem max(4vw,1rem);background:#161f2c;color:white}header strong{font-size:1.25rem;white-space:nowrap}header b{display:inline-grid;place-items:center;border-radius:.55rem;background:#ad3521;width:2rem;height:2rem;margin-right:.3rem}a{color:#943120}nav{display:flex;gap:1rem;flex-wrap:wrap}nav a{color:#fff;text-decoration:none}main{max-width:1320px;margin:auto;padding:2rem max(3vw,1rem)}h1,h2{margin:0 0 .35rem;letter-spacing:-.035em}h1{font-size:clamp(1.8rem,4vw,2.7rem)}h2{font-size:1.35rem}.muted{color:#526072;margin:.3rem 0 1rem}.filters{display:flex;flex-wrap:wrap;gap:.75rem;align-items:end;margin:1rem 0}.filters label{flex:1 1 120px}label{display:grid;gap:.28rem;font-size:.88rem;font-weight:650}input,select,textarea,button{font:inherit;border:1px solid #b8c0cd;border-radius:.45rem;min-height:2.75rem;padding:.45rem .65rem;background:white;color:inherit;width:100%}input[type=checkbox]{width:auto;min-height:auto}button{background:var(--accent);color:#fff;border:0;width:auto;cursor:pointer;font-weight:650}button:hover{background:#792514}:focus-visible{outline:3px solid #2967bd;outline-offset:2px}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1rem;margin:1.25rem 0}article,section{background:white;border:1px solid var(--line);border-radius:.9rem;padding:1.15rem;min-width:0}article strong{display:block;font-size:clamp(1.35rem,3vw,2.05rem);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}article small{font-size:.8rem;color:#526072}section{margin:1rem 0}.chart{display:grid;grid-template-columns:repeat(12,minmax(64px,1fr));overflow-x:auto;gap:.5rem}.column{display:grid;text-align:center;font-size:.82rem;gap:.4rem;align-content:start}.column small{overflow-wrap:anywhere}.track{height:9rem;display:flex;align-items:end;justify-content:center;background:repeating-linear-gradient(to top,#edf0f5 0 1px,transparent 1px 25%);border-bottom:1px solid var(--line)}.track i{background:#b44129;width:46%;border-radius:5px 5px 0 0}.track i.down{background:#285282}.scroll{overflow:auto;max-height:29rem}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{text-align:left;padding:.55rem .7rem;border-bottom:1px solid var(--line);white-space:nowrap}th{position:sticky;top:0;background:#f0f3f8}details{margin-top:.8rem;border-top:1px solid var(--line);padding-top:.75rem}summary{cursor:pointer;font-weight:650}.issue{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin:.5rem 0}.alert{border-left:4px solid var(--accent);background:#fbe9e5;padding:.75rem}textarea{margin-bottom:.5rem}
nav a{padding:.55rem .7rem;border-radius:.45rem}nav a[aria-current=page]{background:#fff;color:#162131;font-weight:700}
.heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.4rem}.month{display:flex;align-items:end;gap:.5rem}.month input{width:auto}.actions{display:flex;flex-wrap:wrap;gap:.6rem}.button{display:inline-flex;align-items:center;min-height:3rem;padding:.55rem .9rem;border-radius:.45rem;background:#ab331f;color:white;text-decoration:none;font-weight:650}.button:hover{background:#792514}.entry{border-top:3px solid #ab331f}.entry h2{margin-bottom:1rem}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));gap:1rem}.fields fieldset,.fields details{grid-column:1/-1}.fields details{margin:0}.fields fieldset{border:1px solid #dfe3e9;border-radius:.5rem;padding:1rem;min-width:0}.fields legend{font-weight:650}footer{margin-top:1rem}input,select,button{min-height:3rem;font-size:1rem}th,td{white-space:normal}th{min-width:95px}.scroll{margin-top:.7rem}.empty{color:#526072}.success{background:#e5f5ec;padding:.65rem 1rem;border-radius:.5rem;color:#145638}

/* RedFox dashboard */
:root{--accent:#a33221;--paper:#f5f6f8;--line:#e1e5ec;--ink:#151f30;--muted:#526174;--revenue:#a33221;--cost:#416186;background:var(--paper);color:var(--ink)}
header{padding:0;background:#151e2c}.bar-inner{width:min(100%,1320px);margin:auto;padding:.85rem max(3vw,1rem);display:flex;align-items:center;justify-content:space-between;gap:.7rem 2rem;flex-wrap:wrap}.bar-inner nav{gap:.3rem}nav a[aria-current=page]{background:#313d50;color:white}.bar-inner strong{display:flex;align-items:center;gap:.35rem}.bar-inner b{background:#bc4834}.heading{margin-bottom:1.45rem}.month label{color:var(--muted)}.month button{background:white;color:var(--ink);border:1px solid #c7ced7}.month button:hover{background:#edf0f5}h1{line-height:1.14;margin:0 0 .85rem}section,article{border-radius:1rem;box-shadow:0 2px 4px #192a4510}section{padding:clamp(1rem,3vw,1.55rem)}section>h2{margin-block-end:.75rem}.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:.85rem;margin:1rem 0}.metric-grid article{border-top:3px solid #bd4a38}.metric-grid article>span{font-weight:650;color:var(--muted)}.metric-grid strong{font-size:clamp(1.3rem,3.5vw,2rem);line-height:1.22;margin:.3rem 0;overflow-wrap:anywhere}.metric-grid small{font-size:.86rem}.section-head{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:.4rem 1rem}.currency-tabs{display:flex;gap:.35rem;flex-wrap:wrap;margin:.25rem 0 .8rem}.currency-tabs a{background:#eef1f5;color:#344258;padding:.33rem .65rem;font-size:.85rem;text-decoration:none;font-weight:650}.currency-tabs a[aria-current=true]{background:#f7e4df;color:#8d2a1b;outline:1px solid #ebc0b5}.legend{display:flex;flex-wrap:wrap;gap:1rem;margin:.65rem 0;color:var(--muted);font-size:.875rem}.legend span{display:inline-flex;align-items:center;gap:.35rem}.legend i{inline-size:.8rem;block-size:.8rem;border-radius:.15rem}.revenue-bar{background:var(--revenue)}.cost-bar{background:var(--cost)}.trend{display:grid;grid-template-columns:repeat(6,minmax(40px,1fr));gap:clamp(.2rem,2vw,1rem)}.trend-column{text-align:center;color:var(--muted);font-size:.85rem}.trend-bars{height:clamp(8rem,24vw,15rem);background:repeating-linear-gradient(to top,#e5e9f0 0 1px,transparent 1px 25%);border-bottom:1px solid #aeb8c7;display:flex;align-items:end;justify-content:center;gap:.25rem;margin-block-end:.45rem}.trend-bars i{width:min(35%,2.25rem);border-radius:.28rem .28rem 0 0}.ranked{margin:.5rem 0;padding:0;list-style:none;display:grid;gap:.7rem}.ranked li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.2rem .7rem;align-items:baseline}.ranked strong{font-variant-numeric:tabular-nums;font-size:.9rem}.rank-track{grid-column:1/-1;display:block;height:.5rem;border-radius:2rem;background:#edf0f5}.rank-track span{display:block;height:100%;background:var(--revenue);border-radius:inherit}.scroll{overscroll-behavior-x:contain}tbody tr:nth-child(even){background:#f8f9fb}td,th{overflow-wrap:anywhere}td:last-child a{font-weight:650}th{color:#36445a}summary{color:#344258}@media(max-width:600px){.bar-inner nav{font-size:.83rem;gap:.15rem}.bar-inner nav a{padding:.5rem}.metric-grid{gap:.55rem}.month input{max-width:10rem}.ranked strong{font-size:.8rem}th,td{padding:.5rem}}

.composition-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,410px),1fr));gap:1rem;margin-block:1rem}
.composition-grid section{margin:0}
.share-chart{margin:.8rem 0 .1rem;max-inline-size:50rem}
.share-chart figcaption{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem;background:#f3f5f8;border-radius:.65rem;padding:.65rem .85rem;font-size:.88rem;color:var(--muted)}
.share-chart figcaption strong{color:var(--ink);font-size:1.04rem}
.share-chart ol{list-style:none;padding:0;margin:.95rem 0 0;display:grid;gap:.85rem}
.share-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:baseline;gap:.25rem .65rem;font-size:.9rem;margin-bottom:.32rem}
.share-name,.share-row strong{overflow-wrap:anywhere}
.share-name{font-weight:620}
.share-chart small{font-size:.76rem;color:var(--muted);font-weight:650}
.share-percent{font-variant-numeric:tabular-nums;color:#853023;background:#f9ebe6;border-radius:.35rem;padding:.06rem .32rem;text-align:center;min-inline-size:3rem;font-size:.77rem}
.share-track{block-size:.45rem;border-radius:9rem;background:#e9edf3}
.share-track span{display:block;block-size:100%;border-radius:inherit;background:#b24532}
.share-chart li:nth-child(2n) .share-track span{background:#496787}
.currency-tabs a[aria-busy=true]{opacity:.72}
.filter-status{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%)}
html.updating-chart{overflow-anchor:none}
#charts h3{margin:1.3rem 0 .35rem;font-size:1rem}
.data-note{padding:.7rem .9rem;border-radius:.55rem;background:#edf1f7;border-inline-start:3px solid #547598;color:#34475f;font-size:.9rem;margin:0 0 1rem}
.data-note strong{color:#25364c}.data-note a{font-weight:650;white-space:nowrap}
.inline-action{display:inline-block;margin-inline-start:.5rem}.inline-action button{min-height:2rem;padding:.2rem .55rem;font-size:.82rem;background:#fff;color:#34475f;border:1px solid #afbbcb}
.catalog-nav{margin-block:1rem}.catalog-form{display:flex;align-items:end;flex-wrap:wrap;gap:.75rem;padding-bottom:1rem;border-bottom:1px solid var(--line)}.catalog-form label{flex:1 1 14rem;max-inline-size:24rem}.catalog-form>a{align-self:center}.catalog-list{list-style:none;padding:0;margin:.2rem 0}.catalog-list li{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.45rem .8rem;padding:.6rem 0;border-bottom:1px solid var(--line)}.catalog-list li small{margin-inline-start:.55rem;color:var(--muted)}.catalog-actions{display:flex;align-items:center;gap:.75rem}.catalog-actions .secondary{font-size:.85rem;min-height:2.1rem;background:#eef1f5;color:#35465d}.catalog-actions .secondary:hover{background:#dfe5ed}

/* Report status and KPI colors */
:root{--revenue:#177563;--cost:#a55e24}
.badge{display:inline-flex;align-items:center;max-inline-size:100%;padding:.2rem .5rem;border-radius:999px;background:#edf0f4;color:#445267;font-size:.76rem;font-weight:700;line-height:1.35;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.badge-positive{background:#e2f3eb;color:#176045}.badge-negative{background:#fbe8e7;color:#952923}.badge-warning{background:#fff0d6;color:#754309}.badge-info{background:#e5edf9;color:#284d79}
.metric-grid article{--metric-tone:#56667a;border-top-color:var(--metric-tone);background:linear-gradient(160deg,var(--metric-tint,#f8fafc),white 66%)}
.metric-grid article.metric-positive{--metric-tone:#177563;--metric-tint:#edf9f3}.metric-grid article.metric-negative{--metric-tone:#97403a;--metric-tint:#fff3f1}.metric-grid article.metric-info{--metric-tone:#3e6291;--metric-tint:#eef4fc}.metric-grid article.metric-warning,.metric-grid article.metric-expense{--metric-tone:#926022;--metric-tint:#fff8ec}
.metric-grid article>strong{color:var(--metric-tone)}
.metric-note{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .5rem;font-size:.82rem;color:var(--muted)}
.catalog-list li .badge{margin-inline-start:.55rem}
.audit-event summary{display:flex;align-items:center;justify-content:space-between;gap:.35rem 1rem;flex-wrap:wrap}.audit-event summary strong{margin-inline-start:.35rem}.audit-meta{display:flex;flex-wrap:wrap;gap:.25rem .8rem;font-size:.82rem;color:var(--muted);font-weight:500}.audit-meta time{font-variant-numeric:tabular-nums}.audit-pages{display:flex;gap:.75rem;margin-top:1rem}.audit-event code{font-size:.82rem;overflow-wrap:anywhere}.audit-event .scroll table td{max-width:34rem;white-space:pre-wrap}
.auth-main{max-inline-size:38rem;margin-inline:auto}.auth-form{display:grid;gap:.9rem}.auth-form button{justify-self:start}.account-bar{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem .65rem;font-size:.85rem}.account-bar a{color:white;text-underline-offset:.2rem}.account-bar button{min-height:2rem;padding:.22rem .55rem;background:#344258;font-size:.8rem}.account-bar button:hover{background:#415471}

.currency-tabs .mode-link{background:white;border:1px solid #c9d3e1;color:#284d79}
.currency-tabs [data-selected=true]{background:#e1eefb;color:#234a78;outline:1px solid #a9c4e4}
.currency-tabs .coin-option{border-radius:.45rem;font-size:.85rem;padding:.33rem .65rem;font-weight:650;color:#556176;background:#eef1f5}
.currency-tabs .coin-option[data-selected=true]{background:#e1eefb;color:#234a78}
.chart-selection{align-self:center;font-size:.78rem;color:var(--muted)}
.chart-scale{margin:.3rem 0 .75rem;font-size:.86rem}
.grouped-chart{overflow-x:auto;padding:.2rem .12rem}
.trend-multi{min-inline-size:33rem;grid-template-columns:repeat(6,minmax(5.1rem,1fr))}
.trend-multi .trend-bars{gap:.35rem;padding-inline:.22rem}
.coin-bars{display:flex;justify-content:center;align-items:flex-end;gap:2px;flex:1 1 0;max-inline-size:2.7rem;height:100%;min-inline-size:0}
.coin-bars i{background:var(--coin-color);width:100%;max-inline-size:1.5rem}
.coin-bars .bar-cost{background:color-mix(in srgb,var(--coin-color) 23%,white);outline:1px solid var(--coin-color);outline-offset:-1px}
.coin-bars .is-missing{height:0;outline:0}
.coin-labels{display:flex;justify-content:center;gap:.15rem;margin-bottom:.3rem;font-size:.69rem;font-weight:750}
.coin-labels span{flex:1 1 0;max-inline-size:2.7rem}
.legend .solid-key,.legend .outline-key{background:#526174}
.legend .outline-key{background:#e7ebf0;border:1px solid #526174}
.trend-multi{grid-template-columns:repeat(6,minmax(var(--month-width,5.1rem),1fr));min-inline-size:0;width:max-content;min-width:100%}
.trend-multi .trend-bars,.trend-multi .coin-labels{display:grid;grid-template-columns:var(--coin-widths);gap:.35rem;padding-inline:.22rem}
.trend-multi .coin-bars{width:100%;max-inline-size:none}
.trend-multi .coin-labels span{max-inline-size:none;white-space:nowrap}
.currency-tabs .mode-link[data-selected=true]{background:#e1eefb;color:#234a78}

.month-trigger{cursor:help;border-radius:.4rem}
.month-trigger:hover,.month-trigger:focus-visible{background:#eef4f8}
.chart-month-tooltip{position:fixed;z-index:100;max-width:calc(100vw - 16px);min-width:min(17rem,calc(100vw - 16px));width:max-content;max-height:calc(100vh - 16px);overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid #c8d2df;border-radius:.8rem;padding:.72rem;box-shadow:0 8px 28px #17233733;font-size:.82rem}
.tooltip-heading{font-size:1rem;font-weight:750}.tooltip-caption{margin:.08rem 0 .55rem;color:var(--muted)}
.chart-month-tooltip th,.chart-month-tooltip td{min-width:0;padding:.3rem .45rem;vertical-align:top}
.chart-month-tooltip tbody th{position:static;background:none;color:#203149}
.tooltip-value{display:grid;justify-items:start;gap:.14rem;font-variant-numeric:tabular-nums}
.tooltip-value small{color:var(--muted);font-size:.72rem}.tooltip-value .badge{font-size:.7rem;padding:.08rem .35rem}

.chart-controls{display:flex;flex-direction:column;align-items:flex-start;gap:.25rem}
.chart-controls .currency-tabs{margin-block:0 .55rem}
.currency-tabs.range-tabs a[aria-current=true]{background:#e1eefb;color:#234a78;outline:1px solid #a9c4e4}
.trend-single{grid-template-columns:repeat(var(--month-count,6),minmax(3.35rem,1fr))}
.trend-multi{grid-template-columns:repeat(var(--month-count,6),minmax(var(--month-width,5.1rem),1fr))}
.fields .period-help{grid-column:1/-1;margin:0;font-size:.82rem}

.currency-overview{display:block;margin-block:1rem}
.currency-overview .section-head>span,.overview-scope{font-size:.86rem;color:var(--muted)}
.currency-overview .section-head h2{margin:0}
.overview-scope{margin:.35rem 0}
.currency-overview .scroll{max-height:26rem}
.currency-overview table th:first-child{min-width:5.2rem}
.currency-overview tbody th{position:static;background:transparent}
.currency-overview td{min-width:10.5rem;vertical-align:middle}
.sales-overview td{min-width:0}
.sales-overview th,.sales-overview td{white-space:nowrap}
.sales-overview td:nth-child(8){white-space:normal;min-width:8rem;max-width:16rem}
.sales-overview td:first-child,.sales-overview th:first-child{position:sticky;inset-inline-start:0;background:#fff;z-index:1}
.sales-overview th:first-child{background:#f0f3f8;z-index:2}
.overview-value{display:block;font-size:1rem;font-variant-numeric:tabular-nums}
.overview-value.overview-positive{color:#176045}.overview-value.overview-negative{color:#952923}
.overview-value.overview-expense,.overview-value.overview-warning{color:#754309}
.overview-note{margin-top:.25rem;font-size:.78rem;color:var(--muted)}

.member-share .section-head{align-items:center}
.member-share .section-head .muted{margin:0}
.member-share .actions a{display:inline-flex;align-items:center;min-height:2.75rem}
.member-share th,.member-share td{vertical-align:middle}
.member-share td:nth-child(2) .badge{font-weight:700}
.member-share{scroll-margin-block-start:1rem}
.share-status{margin-block-start:.35rem}
.share-status button{font-size:.8rem;min-height:2.75rem}
.share-detail{margin:0;padding:0;border:0}
.share-detail summary{white-space:nowrap;width:max-content;min-height:2.75rem;align-content:center;list-style:none}
.share-detail summary span{color:var(--muted);display:inline-block}
.share-detail[open] summary span{transform:rotate(180deg)}
.share-detail ul{margin:.2rem 0;padding-inline-start:1rem;min-width:10rem}
.share-payment-form{margin-block-start:.35rem;padding:0;border:0}
.share-payment-form summary{font-size:.84rem;min-height:2.75rem;align-content:center}
.share-payment-form form{display:grid;gap:.5rem;min-width:12rem}
.payment-legacy{display:block;color:var(--muted);max-width:15rem;margin-block-start:.25rem}

.month-report .section-head span{color:var(--muted);font-size:.88rem}
.month-report #charts{border:0;border-block-start:1px solid var(--line);border-radius:0;box-shadow:none;padding:1rem 0 0;margin-block:1rem}
.month-summary-table{max-height:none}
.month-summary-table :is(th,td){min-width:0;padding:.55rem .65rem;vertical-align:top}
.month-summary-table tbody th{position:sticky;inset-inline-start:0;color:#324a6c}
.month-summary-table :is(td,thead th:not(:first-child)){text-align:right}
.month-summary-table td strong{display:block;font-variant-numeric:tabular-nums}
.month-summary-table td small{color:var(--muted)}
.month-summary-table .badge{margin-top:.18rem;white-space:normal}
.month-total-detail{margin:.3rem 0 0;padding:0;border:0;color:var(--muted);font-size:.8rem}
.month-total-detail summary{display:list-item;min-height:2.75rem;align-content:center}
.month-total-detail dl{margin:0;padding:.4rem 0;border-top:1px solid var(--line)}
.month-total-detail dl div{display:flex;justify-content:space-between;gap:.5rem;text-align:left}
.month-total-detail dd{margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.month-report-detail summary{min-height:2.75rem;align-content:center}
.month-report-detail summary:hover{color:var(--accent)}
.month-detail-body{padding-block-start:.65rem}
.month-source-totals .scroll{border:1px solid var(--line);border-radius:.65rem}
.month-source-totals :is(td,th):not(:first-child){text-align:right}
.month-source-totals .badge,.month-detail-body .badge{font-variant-numeric:tabular-nums;font-weight:650}
.month-source-totals td:not(:first-child){color:var(--muted)}
.chart-scope{margin-block-end:.55rem}
.month-report #charts :is(.coin-bars .bar-cost,.trend-bars .cost-bar,.legend .outline-key,.legend .cost-bar){
  background:repeating-linear-gradient(135deg,#a25a17 0 2px,#ffdfa7 2px 5px);
  outline:1px solid #82450e;
  outline-offset:-1px;
}
.month-report #charts .coin-bars .is-missing{outline:0}
@media(max-width:520px){
  .month-summary-table :is(th,td){font-size:.78rem;padding:.45rem .28rem}
  .month-summary-table .badge{font-size:.69rem;padding:.12rem .28rem}
}

.month-product-table{max-height:none;border:1px solid var(--line);border-radius:.75rem}
.month-product-table table{border-collapse:separate;border-spacing:0}
.month-product-table :is(th,td){padding:.8rem clamp(.55rem,1.6vw,1.1rem)}
.month-product-table thead th{font-weight:650;background:#f2f5f9}
.month-product-table th:first-child{width:30%;min-width:0}
.month-product-table tbody th{position:static;background:transparent;vertical-align:middle;color:var(--ink)}
.month-product-table tbody tr:last-child :is(th,td){border-bottom:0}
.month-product-amounts{margin:0;list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:.4rem .55rem}
.month-product-amounts li{display:inline-flex;align-items:baseline;gap:.4rem;max-width:100%;padding:.28rem .5rem;border:1px solid #dce4ee;border-radius:.45rem;background:#fff;font-variant-numeric:tabular-nums}
.month-product-amounts .badge{background:#eaf0f8;color:#314c70;font-size:.7rem}
.month-product-amounts strong{overflow-wrap:anywhere;color:#162c43}
.month-product-amounts.product-metric-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,10.5rem),1fr));gap:.55rem}
.month-product-amounts .product-month-compare{display:grid;align-content:start;gap:.35rem;min-width:0;padding:.6rem .7rem;border-radius:.65rem;background:#fff}
.product-metric-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.2rem .35rem}
.product-metric-header .badge{white-space:normal}
.product-metric-header .badge-positive{background:#ddf2e8;color:#17563c}
.product-metric-header .badge-negative{background:#fae6e4;color:#8c2925}
.product-current-amount{font-size:clamp(1rem,1.7vw,1.22rem);font-weight:750;line-height:1.22;letter-spacing:-.02em}
.product-current-missing{color:var(--muted);font-weight:600;font-size:.85rem}
.product-previous,.product-source-lines div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.05rem .45rem;font-size:.75rem}
.product-previous>span:first-child,.product-source-lines dt{color:var(--muted)}
.product-previous>span:last-child,.product-source-lines dd{margin:0;margin-inline-start:auto;text-align:right;overflow-wrap:anywhere;color:#283e56}
.product-source-lines{margin:.05rem 0 0;border-top:1px solid var(--line);padding-top:.3rem}
.product-source-lines div+div{margin-block-start:.14rem}
.product-reconciliation{color:var(--muted)}
.month-net-summary{border-block-start:1px solid var(--line);padding-block-start:1rem;margin-block-start:1rem}
@media(max-width:520px){
  .month-product-table th:first-child{width:42%}
  .month-product-amounts{gap:.25rem .65rem}
}

.month-report{--report-gap:clamp(1rem,2.5vw,1.55rem)}
.month-report .section-head{align-items:center;gap:.35rem .85rem}
.month-report .section-head h2,
.month-report-detail>summary{display:flex;align-items:center;gap:.55rem;margin:0;line-height:1.25}
.month-report .report-icon{display:block;flex:none;color:#34577f}
.month-report .report-icon:not(.report-icon-chevron){width:1.95rem;height:1.95rem;padding:.36rem;border-radius:.5rem;background:#eaf1f9}
.month-report :is(.month-net-summary,#charts,.month-report-detail){margin-block-start:var(--report-gap);padding-block-start:var(--report-gap)}
.month-report #charts{margin-block-end:0}
.month-report .scroll{margin-block-start:.65rem;max-height:none}
.month-report .month-product-table :is(th,td){padding-block:.65rem}
.month-report .month-product-amounts{align-items:stretch}
.month-report :is(.month-report-detail,.month-source)>summary{list-style:none}
.month-report :is(.month-report-detail,.month-source)>summary::-webkit-details-marker{display:none}
.month-report .report-icon-chevron{margin-inline-start:auto;width:1rem;height:1rem;transform:rotate(-90deg)}
.month-report details[open]>summary .report-icon-chevron{transform:none}
.month-report .month-report-detail>summary{font-size:1.2rem}
.month-report-detail>.muted{margin:.45rem 0 .6rem}
.month-report .month-source{margin-block-start:.65rem;padding-block-start:.3rem}
.month-source>summary{display:flex;align-items:center;min-height:2.75rem;padding-inline:.35rem;border-radius:.4rem}
.month-source>summary:hover{background:#f1f5fa}
.month-report .month-detail-body{padding-block-start:.35rem}
.month-report :is(.month-source-totals,.month-detail-body) :is(th,td){padding-block:.55rem;vertical-align:middle}
@media(max-width:520px){
  .month-report .section-head h2,.month-report .month-report-detail>summary{font-size:1.08rem}
  .month-report .report-icon:not(.report-icon-chevron){width:1.65rem;height:1.65rem;padding:.28rem}
  .month-report .month-product-table th:first-child{width:33%}
  .month-report .month-product-table :is(th,td){padding:.48rem}
}

.month-report .currency-label{display:inline-flex;align-items:center;gap:.28rem;white-space:nowrap;vertical-align:middle}
.month-report .currency-icon{display:block;flex:none;width:1rem;height:1rem;border-radius:50%;background:#455976;color:white}
.month-report .currency-icon[data-coin="BTC"]{background:#a65508}
.month-report .currency-icon[data-coin="ETH"]{background:#535895}
.month-report .currency-icon[data-coin="SOL"]{background:#34304f}
.month-report .currency-icon[data-coin="TON"]{background:#08668c}
.month-report .currency-icon[data-coin="TRX"]{background:#a52938}
.month-report .currency-icon[data-coin="USDT"]{background:#167960}
.month-report .currency-icon[data-coin="VND"],.month-report .currency-icon[data-coin="USD"]{background:#24597a}

.cost-report{--cost-section-gap:clamp(1rem,2.4vw,1.55rem)}
.cost-report .section-head{align-items:center}
.cost-report .section-head h2,.cost-report>h2,.cost-report :is(#charts,.cost-summary-card) h2{display:flex;align-items:center;gap:.55rem;margin:0}
.cost-report .section-head>span,.cost-report .section-head>a{font-size:.84rem}
.cost-report .report-icon{flex:none;width:1.85rem;height:1.85rem;padding:.32rem;border-radius:.45rem;background:#eef3f9;color:#34577f}
.cost-report :is(.cost-list,#charts){border:0;border-block-start:1px solid var(--line);border-radius:0;box-shadow:none;padding:var(--cost-section-gap) 0 0;margin:var(--cost-section-gap) 0 0}
.cost-report .scroll{max-height:none;border:1px solid var(--line);border-radius:.6rem}
.cost-report :is(th,td){padding:.55rem .65rem;vertical-align:middle}
.cost-report .currency-label{display:inline-flex;align-items:center;gap:.25rem;white-space:nowrap}
.cost-report .currency-icon{color:#34577f;vertical-align:middle}
.cost-list table{border-collapse:separate;border-spacing:0}
.cost-list :is(th,td){vertical-align:top;padding:.75rem .8rem}
.cost-list th:first-child:not([class]){width:24%;min-width:7rem}
.cost-list .cost-payment{width:32%;min-width:10rem}
.cost-list .cost-payment-share{min-width:5rem;text-align:right;white-space:nowrap}
.cost-list .cost-date{width:9.5rem;white-space:nowrap;font-variant-numeric:tabular-nums}
.cost-list .cost-notes{min-width:6rem}
.cost-list .cost-actions{min-width:5rem;text-align:right}
.cost-list tbody{--cost-row-bg:#fff;background:var(--cost-row-bg)}
.cost-list tbody:nth-of-type(even){--cost-row-bg:#f8f9fb}
.cost-list tbody tr{background:transparent}
.cost-list tbody th{position:sticky;inset-inline-start:0;z-index:1;color:var(--ink);background:var(--cost-row-bg)}
.cost-list thead th:first-child{position:sticky;inset-inline-start:0;z-index:2}
.cost-list tbody .cost-notes{color:var(--muted)}
.cost-list tbody:last-child :is(th,td)[rowspan],.cost-list tbody:last-child tr:last-child td{border-bottom:0}
.cost-payment-amount,.cost-payment-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:.25rem .5rem}
.cost-payment-amount strong{font-variant-numeric:tabular-nums}
.cost-payment-meta{color:var(--muted);font-size:.78rem;margin-top:.2rem}
@media(max-width:520px){
  .cost-list :is(th,td){padding:.55rem .5rem}
  .cost-list th:first-child:not([class]){min-width:6.5rem}
  .cost-list .cost-payment{min-width:9rem}
}

.cost-category-trend{margin-block-start:1rem}
.cost-category-trend h3{margin:0;font-size:1rem}
.cost-trend-scroll{overscroll-behavior-x:contain}
.cost-trend-scroll table{border-collapse:separate;border-spacing:0}
.cost-trend-scroll :is(th,td){border-bottom:1px solid var(--line)}
.cost-trend-scroll th:first-child{position:sticky;inset-inline-start:0;z-index:1;min-width:8rem;background:#f0f3f8}
.cost-trend-scroll :is(th,td):not(:first-child){min-width:6.5rem;text-align:right;font-variant-numeric:tabular-nums}
.cost-trend-scroll .cost-trend-share{white-space:nowrap;border-inline-end:1px solid var(--line)}
.cost-trend-cell{padding:.2rem .25rem;cursor:help}
.cost-trend-value{display:grid;justify-items:end;gap:.25rem}
.cost-trend-value .badge{white-space:nowrap}
.cost-trend-track{display:block;height:.3rem;margin-top:.25rem;background:#e7edf3;border-radius:.25rem;overflow:hidden}
.cost-trend-track i{display:block;height:100%;background:#416186;border-radius:inherit}

.cost-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,24rem),1fr));gap:.85rem}
.cost-report .cost-summary-card{margin:0;padding:clamp(.8rem,2.2vw,1.15rem);background:#f8fafc;border:1px solid #dce5ed;border-radius:.8rem;box-shadow:none}
.cost-summary-card h2{font-size:1.05rem}
.cost-summary-card .section-head>a,.cost-person a{color:#34577f;font-size:.79rem;font-weight:650;text-underline-offset:.2em}
.cost-spend-list,.cost-advance-list,.cost-person-currencies{list-style:none;margin:.65rem 0 0;padding:0}
.cost-spend-list>li,.cost-advance-list>li{padding:.55rem 0}
.cost-spend-list>li+li,.cost-advance-list>li+li{border-top:1px solid var(--line)}
.cost-spend-amount,.cost-spend-context,.cost-person,.cost-person-currencies li{display:flex;align-items:baseline;justify-content:space-between;gap:.3rem .7rem;flex-wrap:wrap}
.cost-spend-amount strong{font-size:clamp(1.35rem,3vw,2rem);line-height:1.2;color:#172e48}
.cost-spend-context{margin:.42rem 0;color:var(--muted);font-size:.79rem}
.cost-spend-context strong{color:var(--ink)}
.cost-spend-amount strong,.cost-person-currencies strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cost-person-currencies{display:grid;gap:.28rem;margin:.3rem 0 0}
.cost-person-currencies strong{color:#234461}
.cost-report .cost-list thead th{background:#f2f5f8;color:#41536a}
.cost-report .cost-list tbody:hover{--cost-row-bg:#eff5fa}
.cost-report .cost-list .cost-actions>a{display:inline-flex;align-items:center;min-height:2rem;padding:0 .65rem;border-radius:.4rem;background:#eaf0f8;color:#284d79;text-decoration:none}
.cost-report .cost-list .cost-actions>a:hover{background:#dae6f6}

.cost-report,.month-summary-table{--expense-ink:#8b312c}
.month-summary-table :is(.expense-amount,.negative-amount){color:var(--expense-ink)}
.month-summary-table .positive-amount{color:#176045}
.cost-report{--expense-accent:#aa4942;--expense-tint:#f9ecea;--expense-surface:#fff8f6;--expense-line:#ebd8d5}
.cost-report .cost-summary-card{border-color:var(--expense-line);background:var(--expense-surface)}
.cost-report .report-icon{background:var(--expense-tint);color:var(--expense-ink)}
.cost-report :is(.cost-spend-amount,.cost-payment-amount,.cost-trend-value)>strong{color:var(--expense-ink)}
.cost-report .cost-trend-track{background:var(--expense-tint)}
.cost-report .cost-trend-track i{background:var(--expense-accent)}
.cost-report .scroll{border-color:var(--expense-line)}
.cost-report :is(.cost-list thead th,.cost-trend-scroll th){background:var(--expense-tint);color:#633b38}
.cost-report .cost-list tbody:nth-of-type(even){--cost-row-bg:#fdf7f6}
.cost-report .cost-list tbody:hover{--cost-row-bg:var(--expense-tint)}
.cost-report :is(.range-tabs,.currency-tabs) a[aria-current=true],
.cost-report .currency-tabs a[data-selected=true]{background:var(--expense-tint);color:var(--expense-ink);border-color:#dbada9;outline-color:#dbada9}
