/* Bank-app clarity, with Mauzo branding and the existing glass surfaces. */
html[data-theme="light"] { --figure-sales:#154fba; --figure-positive:#09633e; --figure-attention:#865000; --figure-negative:#b02438; --figure-stock:#633aa8; }
html[data-theme="dark"] { --figure-sales:#a7cdff; --figure-positive:#79e0b2; --figure-attention:#ffce82; --figure-negative:#ffa5b1; --figure-stock:#d1b6ff; }
html[data-theme] body#mauzo-workspace [data-tone="sales"] { --figure:var(--figure-sales); }
html[data-theme] body#mauzo-workspace [data-tone="positive"] { --figure:var(--figure-positive); }
html[data-theme] body#mauzo-workspace [data-tone="attention"] { --figure:var(--figure-attention); }
html[data-theme] body#mauzo-workspace [data-tone="negative"] { --figure:var(--figure-negative); }
html[data-theme] body#mauzo-workspace main.main .metric-card[data-tone] > strong,
html[data-theme] body#mauzo-workspace[data-authenticated] main.main .dashboard-metrics .metric-card[data-tone] > strong,
html[data-theme] body#mauzo-workspace main.main .metric-card[data-tone] .sales-amount { color:var(--workspace-text)!important; -webkit-text-fill-color:currentColor!important; }
html[data-theme] body#mauzo-workspace main.main .metric-card.stock-value-card strong { color:var(--workspace-text)!important; }
html[data-theme] body#mauzo-workspace main.main .metric-card[data-tone] .metric-icon { color:var(--figure)!important; }
html[data-theme] body#mauzo-workspace main.main .metric-card > span { color:var(--workspace-text)!important; font-weight:600; }
html[data-theme] body#mauzo-workspace main.main :is(.mauzo-goal-total strong,.analytics-kpi-value) { color:var(--workspace-text)!important; }
html[data-theme] body#mauzo-workspace main.main :is(.cost-warning,.pill-warning) { color:var(--figure-attention)!important; }
html[data-theme] body#mauzo-workspace main.main :is(.positive,.pill-success) { color:var(--figure-positive)!important; }
html[data-theme] body#mauzo-workspace main.main :is(.negative,.pill-danger) { color:var(--figure-negative)!important; }
html[data-theme] body#mauzo-workspace :is(.mobile-nav,.side-nav) .nav-icon { stroke-width:1.8; filter:none!important; text-shadow:none!important; }
html[data-theme] body#mauzo-workspace .mobile-nav a:not(.mobile-sale) { border:0!important; box-shadow:none!important; background:transparent!important; min-width:0; }
html[data-theme] body#mauzo-workspace .mobile-nav a.active:not(.mobile-sale) { background:var(--surface2)!important; border-radius:13px; }
html[data-theme] body#mauzo-workspace .mobile-nav a.active:not(.mobile-sale) .ui-icon { color:var(--workspace-link)!important; }
.mauzo-expert-launcher { position:fixed; bottom:24px; right:24px; z-index:55; display:flex; align-items:center; gap:8px; min-height:48px; padding:10px 16px; border:1px solid #91b7f7; border-radius:999px; background:#184fb0; color:#fff; box-shadow:0 6px 22px #102c5340; font-family:inherit; font-size:12px; font-weight:600; cursor:pointer; }
.mauzo-expert-launcher .ui-icon { width:21px; height:21px; color:inherit!important; }
.mauzo-expert-launcher:focus-visible { outline:3px solid var(--workspace-link); outline-offset:3px; }
html[data-theme] body#mauzo-workspace .mauzo-expert-dialog { position:fixed; inset:auto 18px 84px auto; margin:0; width:min(480px,calc(100vw - 28px)); max-height:calc(100dvh - 120px); padding:48px 16px 16px; border:1px solid var(--workspace-line); border-radius:20px; background:var(--surface); color:var(--workspace-text); overflow:auto; box-shadow:0 20px 70px #0005; }
.mauzo-expert-dialog::backdrop { background:rgba(6,17,35,.38); backdrop-filter:blur(4px); }
.mauzo-expert-dialog .expert-close { position:absolute; right:10px; top:8px; min-height:36px; min-width:40px; }
html[data-theme] body#mauzo-workspace .mauzo-expert-dialog .mauzo-ai-panel { border:0!important; padding:0!important; margin:0!important; background:transparent!important; box-shadow:none!important; }
.mauzo-expert-dialog .mauzo-ai-head { display:grid; gap:14px; }
.mauzo-expert-dialog .mauzo-ai-heading { min-width:0; }
.mauzo-expert-dialog h2 { font-size:20px; }
.mauzo-expert-dialog .mauzo-ai-heading p,.mauzo-expert-dialog small { font-size:12px; line-height:1.5; }
.signin-choice { display:flex; gap:8px; margin:16px 0; }
.signin-choice .btn { flex:1; }
.signin-choice [aria-pressed="true"] { background:var(--workspace-link); color:var(--surface); }
html[data-theme] body#mauzo-workspace form[hidden] { display:none!important; }
[data-pin-form] input[name="pin"] { text-align:center; font-size:24px; letter-spacing:.45em; }
@media(max-width:900px) {
  html[data-theme] body#mauzo-workspace .mobile-nav { padding:6px 8px calc(6px + env(safe-area-inset-bottom)); gap:3px; }
  html[data-theme] body#mauzo-workspace .mobile-nav a { min-height:48px; padding:5px 2px; gap:3px; }
  html[data-theme] body#mauzo-workspace .mobile-nav small { font-size:10px!important; line-height:1.25; white-space:nowrap; }
  html[data-theme] body#mauzo-workspace .mobile-nav .nav-icon { width:22px; height:22px; }
  html[data-theme] body#mauzo-workspace .dashboard-metrics .metric-card { min-height:116px; padding:12px; gap:5px; }
  html[data-theme] body#mauzo-workspace .dashboard-metrics .metric-featured { min-height:146px; padding:18px; }
  html[data-theme] body#mauzo-workspace .dashboard-metrics .stock-value-card { min-height:112px; }
  html[data-theme] body#mauzo-workspace .metric-card > span { font-size:12px; line-height:1.3; }
  html[data-theme] body#mauzo-workspace .metric-card small { font-size:11px; line-height:1.4; }
  html[data-theme] body#mauzo-workspace .metric-icon { width:30px; height:30px; border-radius:9px; }
  .mauzo-expert-launcher { right:12px; bottom:calc(82px + env(safe-area-inset-bottom)); padding:8px 12px; min-height:44px; font-size:11px; }
  html[data-theme] body#mauzo-workspace .mauzo-expert-dialog { right:14px; bottom:calc(78px + env(safe-area-inset-bottom)); max-height:calc(100dvh - 108px - env(safe-area-inset-bottom)); }
}
@media print { .mauzo-expert-launcher,.mauzo-expert-dialog { display:none!important; } }

html[data-theme] body#mauzo-workspace .mobile-nav .nav-icon { box-shadow:none!important; background:transparent!important; transform:none; padding:3px; border-color:transparent!important; }

html[data-theme] body#mauzo-workspace main.main .dashboard-metrics #sales-figure .sales-amount { color:var(--figure-sales)!important; }

/* Quiet amounts, clear row boundaries and progressive report detail. */
html[data-theme="light"] { --listing-line:#becbd8; }
html[data-theme="dark"] { --listing-line:#4a5a70; }
html[data-theme] body#mauzo-workspace :is(.table-wrap tbody td,.table-wrap tbody th,.product-history li,.offline-cart-row) { border-bottom:1px solid var(--listing-line)!important; }
html[data-theme] body#mauzo-workspace .queue-item + .queue-item { border-top:1px solid var(--listing-line); }
html[data-theme] body#mauzo-workspace .metric-card.metric-featured > strong { color:var(--figure-sales)!important; }
.report-actions { display:flex; flex-wrap:wrap; gap:8px; }
.report-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:18px 0; }
.report-summary p { margin:0; padding:12px; background:var(--surface2); border:1px solid var(--workspace-line); border-radius:12px; font-size:12px; }
.report-summary strong { display:block; margin-top:7px; font-size:clamp(15px,2vw,22px); overflow-wrap:anywhere; color:var(--workspace-text); }
.report-details { margin:16px 0; }
.report-details > summary,.report-closing > summary { padding:10px 0; cursor:pointer; font-weight:600; color:var(--workspace-link); }
.report-details p,.report-closing > p { font-size:13px; line-height:1.6; }
@media(max-width:480px) { .report-summary { gap:6px; } .report-summary p { padding:9px; font-size:11px; } .report-actions .btn { font-size:12px; min-height:40px; } }
