/* Figma desktop overview, adapted to Falcon's shared controls and theme tokens. */
.falcon-dashboard{--fd-accent:#7655cf;--fd-border:#ebe8f0;--fd-muted:#716b7e;--fd-surface:var(--surface,#fff);--fd-success:#147d64;--fd-warning:#965b13;--fd-danger:#b14d32;display:grid;gap:20px;min-width:0;color:var(--ink);font-family:'Segoe UI',Arial,sans-serif}
.fd-header{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}.fd-header h2{font-size:28px;line-height:1.3;letter-spacing:-.5px;margin:0 0 6px;font-weight:650}.fd-header p{font-size:13px;margin:0}.fd-header button{border-radius:24px;min-height:42px;background:var(--fd-accent);margin:0}
.fd-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:0;padding:0;background:none;box-shadow:none}.fd-filters label{display:grid;gap:5px;font-size:11px;color:var(--fd-muted);margin:0}.fd-filters input,.fd-filters select{min-height:38px;font-size:12px;width:auto;max-width:175px;margin:0}.fd-filters button{min-height:38px;margin:0;font-size:12px}.fd-scope{font-size:11px;align-self:center;max-width:220px;overflow-wrap:anywhere;color:var(--fd-muted)}.fd-updated{margin-inline-start:auto;font-size:11px;align-self:center;color:var(--fd-muted)}.falcon-dashboard>.error:empty{display:none}
.fd-output{display:grid;gap:20px;min-width:0}.fd-output[aria-busy=true]{opacity:.65}.fd-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.fd-metric{background:var(--fd-surface);border:1px solid var(--fd-border);border-radius:14px;padding:18px 22px;min-width:0;min-height:122px;display:flex;flex-direction:column;justify-content:center;gap:6px}.fd-metric p{margin:0;color:var(--fd-muted);font-size:12px}.fd-metric>strong{font-size:clamp(20px,1.75vw,27px);font-weight:650;line-height:1.3;letter-spacing:-.5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.fd-metric-context{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.fd-metric small,.fd-change{font-size:11px;color:var(--fd-muted)}.fd-change.positive{color:var(--fd-success)}.fd-change.negative{color:var(--fd-danger)}
.fd-grid{display:grid;grid-template-columns:minmax(0,1.88fr) minmax(280px,1fr);gap:20px;align-items:stretch}.fd-card{background:var(--fd-surface);border:1px solid var(--fd-border);border-radius:14px;padding:22px;min-width:0}.fd-card-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.fd-card h3{font-size:16px;font-weight:650;line-height:1.4;margin:0}.falcon-dashboard .fd-link{background:transparent;border:0;padding:4px 0;margin:0;color:var(--fd-accent);font-size:11px;min-height:28px;text-align:start;box-shadow:none}.fd-link:hover{text-decoration:underline}.fd-legend{display:flex;flex-wrap:wrap;gap:20px;font-size:11px;color:var(--fd-muted);margin-bottom:8px}.fd-legend span:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;margin-inline-end:7px;background:var(--fd-accent)}.fd-legend .fd-purchase-key:before{background:#a59bbb}.fd-chart{width:100%;height:auto;display:block;max-height:265px;overflow:visible;color:var(--fd-muted)}.fd-chart text{font:11px 'Segoe UI',Arial,sans-serif;fill:currentColor}.fd-gridline{stroke:var(--fd-border);stroke-width:1}.fd-area{fill:var(--fd-accent);opacity:.08}.fd-series{fill:none;stroke-width:3;stroke-linejoin:round}.fd-series.fd-sales{stroke:var(--fd-accent)}.fd-series.fd-purchases{stroke:#a59bbb;stroke-width:2;stroke-dasharray:5 5}.fd-dot.fd-sales{fill:var(--fd-accent)}.fd-dot.fd-purchases{fill:#a59bbb}.fd-card details{margin-top:8px;font-size:11px;color:var(--fd-muted)}.fd-card summary{cursor:pointer}
.falcon-dashboard .fd-task{display:flex;align-items:center;gap:14px;width:100%;background:transparent;border:0;color:var(--ink);padding:16px 0;margin:0;box-shadow:none;text-align:start}.fd-task:hover{background:var(--lavender);border-radius:8px}.fd-count{padding:5px 8px;border-radius:6px;min-width:28px;font-size:11px;text-align:center}.fd-count.negative{background:#fff0e9;color:var(--fd-danger)}.fd-count.warning{background:#fff6e6;color:var(--fd-warning)}.fd-count.neutral{background:#eeeaf8;color:var(--fd-accent)}.fd-task-description{display:grid;gap:4px;min-width:0}.fd-task-description strong{font-size:13px;font-weight:600}.fd-task-description small{font-size:11px;color:var(--fd-muted)}
.fd-table-scroll{overflow-x:auto;max-width:100%}.fd-card table{width:100%;border-collapse:collapse;font-size:12px}.fd-card th{background:var(--bg);font-size:10px;color:var(--fd-muted);font-weight:500}.fd-card td,.fd-card th{padding:12px 8px;text-align:start;border-bottom:1px solid var(--fd-border)}.fd-card td{font-size:11px;vertical-align:middle;color:var(--ink);max-width:220px;overflow-wrap:anywhere}.fd-card td:nth-last-child(2){white-space:nowrap;font-variant-numeric:tabular-nums}.fd-card tr:last-child td{border-bottom:0}.fd-badge{display:inline-block;padding:5px 8px;border-radius:6px;font-size:10px}.fd-badge.paid{background:#e8f5ef;color:var(--fd-success)}.fd-badge.pending{background:#fff6e6;color:var(--fd-warning)}.fd-badge.overdue{background:#fff0e9;color:var(--fd-danger)}.fd-stock-row{display:flex;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--fd-border);padding:12px 0}.fd-stock-row>div{display:grid;gap:3px;min-width:0}.fd-stock-row strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}.fd-stock-row small{color:var(--fd-muted);font-size:10px}.fd-stock-quantity{font-size:11px;white-space:nowrap;color:var(--fd-warning)}.fd-note{color:var(--fd-muted);font-size:11px;line-height:1.6;margin:0}.fd-card>.fd-note{margin-top:16px}.fd-output>.fd-note{margin-top:-10px}.fd-empty{color:var(--fd-muted);font-size:13px;line-height:1.6;padding:30px 0;min-height:100px;margin:0}.fd-shortcuts{display:flex;gap:18px;flex-wrap:wrap}.falcon-dashboard :is(button,input,select,summary):focus-visible{outline:3px solid var(--fd-accent);outline-offset:3px}
/* The dashboard uses the existing app shell: no replacement navigation or fake search. */
#app:has(.falcon-dashboard){background:#f6f5f9}#app:has(.falcon-dashboard) #sidebar{background:#251c43}#app:has(.falcon-dashboard) main{padding-inline:28px}#app:has(.falcon-dashboard) .workspace-header{background:var(--surface,#fff);margin-inline:-28px;padding-inline:28px}#app:has(.falcon-dashboard) #pageTitle{font-size:18px}#app:has(.falcon-dashboard) #subtitle{display:none}
html[data-theme=dark] .falcon-dashboard,body.dark .falcon-dashboard{--fd-border:var(--line);--fd-muted:var(--muted);--fd-surface:var(--surface);--fd-accent:#b19aef}html[data-theme=dark] #app:has(.falcon-dashboard),body.dark #app:has(.falcon-dashboard){background:var(--bg)}
@media(max-width:1150px){.fd-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.fd-grid{grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr)}.fd-metric>strong{font-size:24px}}
@media(max-width:900px){.fd-grid{grid-template-columns:minmax(0,1fr)}.fd-card{padding:18px}.fd-updated{margin-inline-start:0}.fd-chart{max-height:none}}
@media(max-width:600px){#app:has(.falcon-dashboard) main{padding-inline:16px}#app:has(.falcon-dashboard) .workspace-header{margin-inline:-16px;padding-inline:16px}.fd-header h2{font-size:24px}.fd-header button{width:100%}.fd-metrics{gap:10px}.fd-metric{padding:14px;min-height:116px}.fd-metric>strong{font-size:20px}.fd-filters label{flex:1 1 120px}.fd-filters input,.fd-filters select{width:100%;max-width:none}.fd-filters button{flex:1}.fd-scope,.fd-updated{width:100%}.fd-card table{min-width:550px}.fd-metric-context{gap:4px}.fd-task{min-height:64px}}
@media(prefers-reduced-motion:reduce){.falcon-dashboard *{transition:none!important;animation:none!important}}
