/* Personal palettes, scoped to Flow. The official logo and invoice documents are unchanged. */
html[data-flow-theme] .flow-app{background:var(--flow-paper);color:var(--flow-ink)}
html[data-flow-theme] .flow-sidebar{background:linear-gradient(155deg,var(--flow-panel),var(--flow-soft))}
html[data-flow-theme] .flow-nav a{color:var(--flow-muted)}
html[data-flow-theme] .flow-nav a[aria-current=page]{background:var(--flow-primary);color:var(--flow-on-primary);box-shadow:none}
html[data-flow-theme] .flow-nav a:hover:not([aria-current=page]){background:var(--flow-soft)}
html[data-flow-theme] :is(.flow-panel,.flow-kpi,.flow-product-card,.flow-order-card,.flow-table tr,.flow-dialog,.flow-dialog-head,.flow-gate,.flow-fieldset,.flow-route-tabs button,.flow-language,.flow-subscription-terms){background:var(--flow-panel);border-color:var(--flow-line)}
html[data-flow-theme] :is(.flow-kpi-icon,.flow-product-icon,.flow-today,.flow-result,.flow-order-column,.flow-tag,.flow-avatar){background:var(--flow-soft);color:var(--flow-wine);border-color:var(--flow-line)}
html[data-flow-theme] :is(.flow-kpi-label,.flow-field,.flow-table td:before,.flow-footer){color:var(--flow-muted)}
html[data-flow-theme] :is(.flow-panel-head,.flow-table td,.flow-table th,.flow-order-column){border-color:var(--flow-line)}
html[data-flow-theme] .flow-table th{background:var(--flow-soft);color:var(--flow-muted)}
html[data-flow-theme] .flow-button{background:var(--flow-primary);border-color:var(--flow-wine);color:var(--flow-on-primary)}
html[data-flow-theme] .flow-button:hover{background:var(--flow-hover);box-shadow:0 3px 10px #00000009}
html[data-flow-theme] .flow-secondary{background:var(--flow-panel);color:var(--flow-wine);border-color:var(--flow-line)}
html[data-flow-theme] .flow-secondary:hover{background:var(--flow-soft)}
html[data-flow-theme] .flow-quiet{background:transparent;color:var(--flow-wine);border-color:transparent}
html[data-flow-theme] .flow-quiet:hover{background:var(--flow-soft)}
html[data-flow-theme] .flow-danger{background:#fff3f2;color:#92383e;border-color:#e8bfc3}
html[data-flow-theme] .flow-language button[aria-pressed=true],html[data-flow-theme] .flow-route-tabs button[aria-selected=true]{background:var(--flow-primary);color:var(--flow-on-primary)}
html[data-flow-theme] .flow-bottom-nav{background:var(--flow-panel);border-color:var(--flow-line)}
html[data-flow-theme] .flow-bottom-nav :is(a,button){color:var(--flow-muted);background:transparent;border-color:transparent}
html[data-flow-theme] .flow-bottom-nav :is(a,button):hover{color:var(--flow-wine);background:var(--flow-soft);box-shadow:none}
html[data-flow-theme] .flow-bottom-nav [aria-current=page]{background:var(--flow-soft);color:var(--flow-wine)}
html[data-flow-theme] .flow-field :is(input,select,textarea){background:var(--flow-panel);color:var(--flow-ink);border-color:var(--flow-line)}
html[data-flow-theme] .flow-unlock-card{background:var(--flow-panel)}
html[data-flow-theme] .flow-unlock-copy{background:var(--flow-soft)}
html[data-flow-theme] .flow-orders-summary>div{background:var(--flow-panel)}

.flow-theme-trigger{min-width:40px;min-height:40px;border:1px solid var(--flow-line);border-radius:11px;background:var(--flow-panel);color:var(--flow-wine)}
.flow-theme-trigger:hover{background:var(--flow-soft)}
.flow-theme-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.flow-theme-option{position:relative;display:grid;gap:13px;text-align:left;padding:17px;border:1px solid var(--flow-line);border-radius:13px;background:var(--flow-panel);color:var(--flow-ink);font-size:13px;min-height:110px}
.flow-theme-option[aria-pressed=true]{border-color:var(--flow-wine);outline:1px solid var(--flow-wine)}
.flow-theme-colours{display:flex;padding-right:20px}
.flow-theme-colours i{width:31px;height:31px;border-radius:50%;border:2px solid #fff;margin-right:-5px}
.flow-theme-check{position:absolute;right:12px;top:17px;visibility:hidden;color:var(--flow-wine)}.flow-theme-option[aria-pressed=true] .flow-theme-check{visibility:visible}
.flow-theme-check svg{width:18px;height:18px}

/* Shared appearance settings: only the catalogue determines theme names/colours. */
.flow-appearance-panel{margin-top:20px}
.flow-theme-group{border:0;padding:0;margin:0;min-width:0}
.flow-theme-group legend{padding:0 0 12px;font-size:12px;font-weight:600;color:var(--flow-wine)}
.flow-theme-colours i:nth-child(1){background:var(--theme-one)}
.flow-theme-colours i:nth-child(2){background:var(--theme-two)}
.flow-theme-name{display:grid;gap:5px;line-height:1.5;overflow-wrap:anywhere}
.flow-theme-name small{font-size:10px;color:var(--flow-muted)}
.flow-theme-option{align-content:start;min-width:0;transition:border-color .15s ease}
.flow-theme-option:hover{border-color:var(--flow-wine)}
.flow-theme-option:disabled{opacity:.7;cursor:wait}
.flow-theme-status{min-height:1.5em}
.flow-theme-status.flow-theme-error{color:#92383e}
.flow-theme-settings>.flow-help{margin:0}
html[data-flow-theme] :is(.flow-access-badge,.flow-empty-icon,.flow-section-note){background:var(--flow-soft);color:var(--flow-wine)}
html[data-flow-theme] .flow-field input[readonly]{background:var(--flow-soft)}
html[data-flow-theme] .flow-icon-button:hover{background:var(--flow-soft)}
html[data-flow-theme] :is(input,select,textarea)::placeholder{color:var(--flow-muted);opacity:1}
html[data-flow-theme] input[type=checkbox]{accent-color:var(--flow-wine)}
html[data-flow-theme] .flow-tag-success{background:#edf3e9;color:#366448;border-color:#d7e6d0}
html[data-flow-theme] .flow-tag-warning{background:#fff1db;color:#806039;border-color:#ead6b4}
html[data-flow-theme] .flow-tag-danger{background:#fbe9e9;color:#913c48;border-color:#e7c7cd}
@media(min-width:1100px){.flow-appearance-panel .flow-theme-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:430px){.flow-theme-grid{gap:10px}.flow-theme-option{padding:13px;font-size:12px;min-height:116px}.flow-theme-colours i{width:27px;height:27px}.flow-theme-check{right:9px;top:14px}.flow-theme-check svg{width:16px;height:16px}}

/* Compact, data-driven visuals; no chart library or decorative sample values. */
.flow-dashboard-visuals{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:18px;margin-bottom:20px}
.flow-viz-card{background:var(--flow-panel);border:1px solid var(--flow-line);border-radius:var(--flow-radius);padding:21px;min-width:0;box-shadow:0 3px 12px #00000003}
.flow-viz-heading,.flow-viz-toolbar{display:flex;justify-content:space-between;align-items:center;gap:13px}
.flow-viz-head{display:flex;align-items:center;gap:12px;min-width:0}.flow-viz-head h2{font:400 24px/1.2 var(--flow-serif);color:var(--flow-dark)}.flow-viz-head p{font-size:11px;color:var(--flow-muted);margin-top:4px}
.flow-viz-icon{height:39px;width:39px;border:1px solid var(--flow-line);border-radius:12px;display:grid;place-items:center;color:var(--flow-wine);background:var(--flow-soft);flex:none}
.flow-viz-report{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--flow-line);border-radius:50%;color:var(--flow-wine)}.flow-viz-report:hover{background:var(--flow-soft)}
.flow-viz-toolbar{margin:19px 0 17px;align-items:end}.flow-viz-total>span{font-size:10px;color:var(--flow-muted);display:block}.flow-viz-total strong{font-size:27px;color:var(--flow-dark);font-weight:600;line-height:1.3;font-variant-numeric:tabular-nums}
.flow-chart-toggle{display:flex;gap:2px;padding:3px;border-radius:9px;background:var(--flow-soft);flex:none}.flow-chart-toggle button{padding:7px 10px;min-height:34px;border:0;border-radius:7px;background:none;color:var(--flow-muted);font-size:10px;white-space:nowrap}.flow-chart-toggle button[aria-pressed=true]{background:var(--flow-panel);color:var(--flow-wine);box-shadow:0 1px 4px #00000009}
.flow-weekly-plot{position:relative;height:174px;margin-top:4px}.flow-weekly-grid{position:absolute;inset:0 0 24px 0;border-block:1px dashed var(--flow-line);display:flex;flex-direction:column;justify-content:space-between;font-size:9px;color:var(--flow-muted)}.flow-weekly-grid span{transform:translateY(-7px);background:var(--flow-panel);padding-right:6px;width:max-content;line-height:1.2}.flow-weekly-grid span:last-child{transform:translateY(6px)}
.flow-weekly-columns{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;height:100%;padding-left:49px}.flow-weekly-item{display:grid;grid-template-rows:minmax(0,1fr) 24px;min-width:0}.flow-weekly-column{position:relative;background:none;border:0;margin:0;padding:0;border-radius:5px;min-width:0;isolation:isolate}.flow-weekly-column:after{content:'';position:absolute;bottom:var(--chart-zero);left:0;right:0;border-bottom:1px solid var(--flow-line);z-index:-1}.flow-weekly-bar{position:absolute;left:15%;width:70%;max-width:42px;border-radius:5px 5px 0 0;background:var(--flow-accent);transition:background .15s ease}.flow-weekly-column[aria-pressed=true] .flow-weekly-bar,.flow-weekly-column:hover .flow-weekly-bar{background:var(--flow-wine)}.flow-weekly-bar.is-loss{border-radius:0 0 5px 5px;background:var(--flow-secondary-tone)}.flow-weekly-day{text-align:center;padding-top:8px;font-size:10px;color:var(--flow-muted)}
.flow-viz-selection{font-size:12px;font-weight:600;color:var(--flow-wine);margin:13px 0 4px;min-height:20px;font-variant-numeric:tabular-nums}.flow-viz-hint{font-size:10px;line-height:1.5;color:var(--flow-muted);margin-top:7px}
.flow-profit-card{display:flex;flex-direction:column}.flow-profit-content{flex:1;display:grid;align-content:center;gap:10px}.flow-ring-wrap{position:relative;width:164px;max-width:100%;margin:9px auto 0;aspect-ratio:1}.flow-app svg.flow-profit-ring{width:100%;height:100%;display:block}.flow-ring-profit{stroke:var(--flow-wine)}.flow-ring-cost{stroke:var(--flow-secondary-tone)}.flow-ring-expense{stroke:var(--flow-blush)}.flow-ring-centre{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:none}.flow-ring-centre strong{font-size:28px;font-weight:500;color:var(--flow-dark);font-variant-numeric:tabular-nums}.flow-ring-centre small{font-size:10px;color:var(--flow-muted)}
.flow-profit-legend{margin:0;display:grid;gap:8px}.flow-profit-legend>div{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px}.flow-profit-legend dt{display:flex;gap:8px;align-items:center;color:var(--flow-muted)}.flow-profit-legend dd{font-weight:600;color:var(--flow-dark);font-variant-numeric:tabular-nums;margin:0;white-space:nowrap}.flow-profit-legend i{width:8px;height:8px;border-radius:50%;background:var(--flow-wine);flex:none}.flow-profit-legend [data-part=cost] i{background:var(--flow-secondary-tone)}.flow-profit-legend [data-part=expense] i{background:var(--flow-blush)}
.flow-viz-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;padding:10px}.flow-viz-empty svg{width:40px;height:40px;color:var(--flow-accent)}.flow-viz-empty strong{font-weight:500;color:var(--flow-dark);font-size:13px}.flow-viz-empty p{font-size:11px;color:var(--flow-muted);max-width:220px}
.flow-loss-comparison{display:grid;gap:16px;padding:24px 0}.flow-loss-title{color:var(--flow-wine);display:flex;align-items:center;gap:8px;font-size:12px}.flow-loss-comparison .flow-between{font-size:11px;margin-bottom:7px}.flow-loss-track{height:12px;background:var(--flow-soft);border-radius:7px;overflow:hidden}.flow-loss-track span{display:block;height:100%;background:var(--flow-accent);border-radius:7px}.flow-loss-comparison>div:last-child .flow-loss-track span{background:var(--flow-wine)}
@media(max-width:1000px){.flow-dashboard-visuals{grid-template-columns:1fr}.flow-profit-content{grid-template-columns:164px minmax(0,1fr);align-items:center;gap:24px}.flow-ring-wrap{margin:0}.flow-profit-card>.flow-viz-head{margin-bottom:12px}}
@media(max-width:760px){.flow-dashboard-visuals{gap:14px;margin-bottom:18px}.flow-viz-card{padding:17px}.flow-viz-head h2{font-size:23px}.flow-viz-icon{width:35px;height:35px;border-radius:10px}.flow-viz-head{gap:10px}.flow-viz-toolbar{gap:8px}.flow-viz-total strong{font-size:24px}.flow-chart-toggle button{font-size:10px;padding:7px 8px}.flow-weekly-plot{height:160px}.flow-weekly-columns{padding-left:40px;gap:4px}.flow-profit-content{grid-template-columns:128px minmax(0,1fr);gap:12px}.flow-ring-wrap{width:128px}.flow-ring-centre strong{font-size:24px}.flow-ring-centre small{font-size:9px}.flow-profit-legend>div{align-items:start;flex-direction:column;gap:3px;font-size:11px}.flow-profit-legend dd{padding-left:16px}.flow-loss-comparison{grid-column:1/-1;padding-block:12px}.flow-loss-comparison+.flow-profit-legend{grid-column:1/-1}.flow-loss-comparison+.flow-profit-legend>div{flex-direction:row}.flow-theme-trigger{min-width:36px;min-height:36px;padding:7px}.flow-theme-trigger svg{width:20px;height:20px}.flow-account{gap:5px}.flow-topbar{gap:7px}.flow-topbar-copy>p:last-child{display:none}.flow-kpi{padding-top:12px;padding-bottom:12px}.flow-kpi-icon{top:10px}}
@media(max-width:360px){.flow-viz-toolbar{align-items:start;flex-direction:column}.flow-profit-content{grid-template-columns:112px minmax(0,1fr);gap:8px}.flow-ring-wrap{width:112px}.flow-greeting{font-size:12px}.flow-theme-option{padding:12px;font-size:12px}.flow-theme-colours i{width:26px;height:26px}.flow-theme-check{right:8px}.flow-theme-check svg{width:15px;height:15px}}
@media(prefers-reduced-motion:reduce){.flow-weekly-bar{transition:none}}
@media print{.flow-theme-trigger{display:none}}
