:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--page:#f9f9f7;--surface:#fcfcfb;--surface-2:#f3f2ee;--text-primary:#0b0b0b;--text-secondary:#52514e;--text-muted:#898781;--grid:#e1e0d9;--axis:#c3c2b7;--border:#0b0b0b1a;--hover:#0b0b0b0a;--series-cur:#2a78d6;--series-ly:#898781;--series-1:#2a78d6;--series-2:#eb6834;--div-pos:#2a78d6;--div-neg:#e34948;--warning-bg:#fdf3dc;--accent:#2a78d6;--good:#006300;--bad:#d03b3b;--focus:#2a78d6;--shadow:0 1px 2px #0b0b0b0a;--radius:10px;--font:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--page:#0d0d0d;--surface:#1a1a19;--surface-2:#232321;--text-primary:#fff;--text-secondary:#c3c2b7;--text-muted:#898781;--grid:#2c2c2a;--axis:#383835;--border:#ffffff1a;--hover:#ffffff0d;--series-cur:#3987e5;--series-ly:#898781;--series-1:#3987e5;--series-2:#d95926;--div-pos:#3987e5;--div-neg:#e66767;--warning-bg:#3a2f14;--accent:#3987e5;--good:#0ca30c;--bad:#e66767;--focus:#3987e5;--shadow:none}}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--page:#0d0d0d;--surface:#1a1a19;--surface-2:#232321;--text-primary:#fff;--text-secondary:#c3c2b7;--text-muted:#898781;--grid:#2c2c2a;--axis:#383835;--border:#ffffff1a;--hover:#ffffff0d;--series-cur:#3987e5;--series-ly:#898781;--series-1:#3987e5;--series-2:#d95926;--div-pos:#3987e5;--div-neg:#e66767;--warning-bg:#3a2f14;--accent:#3987e5;--good:#0ca30c;--bad:#e66767;--focus:#3987e5;--shadow:none}*{box-sizing:border-box}body{background:var(--page);color:var(--text-primary);font:14px/1.45 var(--font);-webkit-font-smoothing:antialiased;margin:0}button,input,select{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.app{max-width:1600px;padding:0 max(20px, env(safe-area-inset-right)) 48px max(20px, env(safe-area-inset-left));margin:0 auto}.topbar{padding:max(16px, env(safe-area-inset-top)) 0 12px;flex-wrap:wrap;align-items:center;gap:16px;display:flex}.topbar .tabs{flex:1}.brand{align-items:center;gap:10px;display:flex}.brand h1{letter-spacing:-.015em;white-space:nowrap;margin:0;font-size:18px;font-weight:700}.topbar-end{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.brand span,.freshness{color:var(--text-muted);font-size:13px}.filters{z-index:5;background:var(--page);border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:16px;padding:10px 0;display:flex;position:sticky;top:0}.grid{grid-template-columns:repeat(12,minmax(0,1fr));align-items:start;gap:16px;display:grid}.span-12{grid-column:span 12}.span-7{grid-column:span 7}.span-6{grid-column:span 6}.span-5{grid-column:span 5}@media (width<=700px){.filters{position:static}}@media (width<=1100px){.span-7,.span-6,.span-5{grid-column:span 12}}.control{border:1px solid var(--border);background:var(--surface);border-radius:8px;height:34px;padding:0 10px}select.control{padding-inline-end:28px}.control-label{color:var(--text-muted);margin-inline:6px 2px;font-size:12px}.segmented{border:1px solid var(--border);background:var(--surface);border-radius:8px;padding:2px;display:inline-flex}.segmented button{height:28px;color:var(--text-secondary);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:0 12px}.segmented button:hover{background:var(--hover)}.segmented button[aria-pressed=true]{background:var(--text-primary);color:var(--surface);font-weight:600}.date-range{align-items:center;gap:4px;display:inline-flex}.date-range input{width:138px}.divider{background:var(--border);width:1px;height:24px;margin:0 4px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;min-width:0;display:flex}.card-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;padding:14px 16px 8px;display:flex}.card-title{margin:0;font-size:15px;font-weight:600}.card-sub{color:var(--text-muted);margin:2px 0 0;font-size:12px}.card-actions{flex-wrap:wrap;gap:6px;min-width:0;display:flex}.card-body{min-width:0;padding:0 16px 16px;transition:opacity .12s}.card-body.is-loading{opacity:.55}.ghost-btn{border:1px solid var(--border);height:28px;color:var(--text-secondary);cursor:pointer;white-space:nowrap;background:0 0;border-radius:6px;padding:0 10px;font-size:12px}.ghost-btn:hover{background:var(--hover)}.notice{background:var(--surface-2);color:var(--text-secondary);border-radius:8px;margin:0 0 10px;padding:8px 12px;font-size:12px}.error{color:var(--bad);padding:8px 0;font-size:13px}.kpis{grid-template-columns:1.4fr repeat(4,1fr);gap:16px;margin-bottom:16px;display:grid}@media (width<=1100px){.kpis{grid-template-columns:repeat(2,1fr)}.kpis .tile:first-child{grid-column:span 2}}.tile{padding:14px 16px;transition:opacity .12s}.tile-label{color:var(--text-secondary);font-size:13px}.tile-value{letter-spacing:-.01em;margin:4px 0 6px;font-size:26px;font-weight:600}.tile.hero .tile-value{font-size:48px;line-height:1.05}.tile-deltas{color:var(--text-muted);flex-wrap:wrap;gap:4px 12px;font-size:12px;display:flex}.delta{font-variant-numeric:tabular-nums}.delta bdi,.matrix .delta{white-space:nowrap}.delta.up{color:var(--good)}.delta.down{color:var(--bad)}.delta.flat,.delta.none{color:var(--text-muted)}.table-wrap{border-top:1px solid var(--grid);max-height:520px;overflow:auto}.table-wrap.tall{max-height:640px}.table-wrap.none{max-height:none}.stack{flex-direction:column;gap:16px;min-width:0;display:flex}table.matrix{border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums;width:100%;font-size:13px}.matrix th,.matrix td{border-bottom:1px solid var(--grid);white-space:nowrap;text-align:end;padding:6px 10px}.matrix th:first-child,.matrix td:first-child{text-align:start;background:var(--surface);z-index:1;white-space:normal;min-width:220px;position:sticky;inset-inline-start:0}.matrix thead th{white-space:normal;vertical-align:bottom;z-index:2;background:var(--surface);min-width:72px;color:var(--text-secondary);border-bottom:1px solid var(--axis);font-size:12px;font-weight:600;position:sticky;top:0}.matrix thead th:first-child{z-index:3}.matrix thead th.sortable{cursor:pointer;-webkit-user-select:none;user-select:none}.matrix thead th.sortable:hover{color:var(--text-primary)}.matrix tfoot td{z-index:2;background:var(--surface-2);border-top:1px solid var(--axis);font-weight:650;position:sticky;bottom:0}.matrix tfoot td:first-child{background:var(--surface-2);z-index:3}.matrix tbody tr:hover td{background:var(--hover)}.matrix tbody tr:hover td:first-child{background:color-mix(in srgb, var(--surface) 100%, var(--text-primary) 4%)}.matrix tr.depth-0 td{font-weight:600}.tree-cell{align-items:flex-start;gap:4px;display:flex}.tree-toggle{width:20px;height:20px;color:var(--text-secondary);cursor:pointer;background:0 0;border:0;border-radius:4px;flex:none;margin-top:-1px;font-size:13px;line-height:20px}.tree-toggle:hover{background:var(--hover);color:var(--text-primary)}.tree-spacer{flex:none;width:20px}.muted{color:var(--text-muted)}.sort-mark{margin-inline-start:4px;font-size:10px}.chart{width:100%;height:300px}.legend{color:var(--text-secondary);gap:16px;margin:0 0 4px;font-size:12px;display:flex}.legend-item{align-items:center;gap:6px;display:inline-flex}.legend-swatch{border-radius:2px;width:10px;height:10px}.legend-line{border-radius:1px;width:14px;height:2px}.tooltip-title{margin-bottom:4px;font-weight:600}.tooltip-row{align-items:center;gap:8px;display:flex}.tooltip-key{border-radius:1px;width:12px;height:2px}.tooltip-value{font-variant-numeric:tabular-nums;font-weight:650}:root[dir=rtl]{--font:system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif}:root[dir=rtl] body{line-height:1.6}bdi,.tile-value,.matrix td:not(:first-child){unicode-bidi:isolate}.tabs{gap:4px;margin-inline-start:8px;display:inline-flex}.tabs a{color:var(--text-secondary);border-radius:8px;align-items:center;gap:6px;padding:6px 12px;font-size:14px;text-decoration:none;display:inline-flex}.tabs a:hover{background:var(--hover)}.tabs a[aria-current=page]{background:var(--surface);color:var(--text-primary);box-shadow:inset 0 0 0 1px var(--border);font-weight:600}.brief-head{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;display:flex}.brief-title{margin:0;font-size:22px;font-weight:650}.brief-kpis{grid-template-columns:1.4fr repeat(5,1fr)}@media (width<=1100px){.brief-kpis{grid-template-columns:repeat(2,1fr)}}.summary{gap:8px;margin:0;padding-inline-start:20px;font-size:15px;line-height:1.5;display:grid}.summary-warning{background:var(--warning-bg);border-radius:8px;margin-inline-start:-20px;padding:8px 12px;list-style:none}.subhead{color:var(--text-secondary);margin:16px 0 8px;font-size:13px;font-weight:600}.mix-bar{border-radius:4px;gap:2px;height:16px;margin:4px 0 12px;display:flex;overflow:hidden}.mix-bar span{flex-basis:0;min-width:2px}.mix-legend{gap:6px;margin:0;display:grid}.mix-legend>div{justify-content:space-between;gap:12px;display:flex}.mix-legend dt{color:var(--text-secondary);align-items:center;gap:8px;display:inline-flex}.mix-legend dd{font-variant-numeric:tabular-nums;margin:0;font-weight:600}.quality{background:var(--surface-2);border-radius:8px;align-items:flex-start;gap:12px;padding:10px 12px;font-size:13px;display:flex}.quality.is-warning{background:var(--warning-bg)}.quality-value{white-space:nowrap;font-size:20px;font-weight:650}.pnl{grid-template-columns:minmax(260px,2fr) 5fr;align-items:start;gap:16px;display:grid}@media (width<=1100px){.pnl{grid-template-columns:1fr}}.movers{grid-template-columns:1fr 1fr;gap:20px;display:grid}@media (width<=700px){.movers{grid-template-columns:1fr}}.movers .subhead{margin-top:0}.mover-list{gap:10px;margin:0;padding:0;list-style:none;display:grid}.mover-name{overflow-wrap:anywhere;font-size:13px}.mover-row{align-items:center;gap:8px;display:flex}.mover-track{flex:1;min-width:40px}.mover-bar{border-start-end-radius:4px;border-end-end-radius:4px;min-width:2px;height:10px;display:block}.mover-bar.up{background:var(--div-pos)}.mover-bar.down{background:var(--div-neg)}.mover-value{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:12px;font-weight:600}.hbars{gap:10px;margin:0;padding:0;list-style:none;display:grid}.hbars li{grid-template-columns:minmax(70px,auto) 1fr;align-items:center;gap:10px;display:grid}.hbars-name{color:var(--text-secondary);text-align:end;font-size:12px}.hbars-track{align-items:center;gap:6px;min-width:0;display:flex}.hbars-bar{background:var(--series-cur);border-start-end-radius:4px;border-end-end-radius:4px;min-width:2px;max-width:calc(100% - 60px);height:18px;display:block}.hbars-bar.negative{background:var(--div-neg)}.hbars-value{color:var(--text-secondary);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:11px}.lock-card{text-align:center;align-items:center;gap:8px;max-width:440px;margin:48px auto;padding:28px 24px}.lock-icon{font-size:32px}.lock-card .muted{margin:0 0 8px}.lock-form{gap:8px;width:100%;display:flex}.lock-form .control{flex:1;min-width:0}.fb-form{gap:12px;display:grid}.fb-form label{color:var(--text-secondary);gap:4px;font-size:13px;display:grid}.fb-form .control{width:100%;color:var(--text-primary)}.fb-form textarea.control{resize:vertical;height:auto;font:inherit;padding:8px 10px}.fb-row{grid-template-columns:1fr 1fr;gap:12px;display:grid}.fb-actions,.fb-own,.fb-admin,.fb-admin-bar,.fb-filters{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.primary-btn{background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:8px;height:34px;padding:0 14px;font-weight:600}.primary-btn:disabled{opacity:.6;cursor:default}.link-btn{color:var(--text-muted);cursor:pointer;background:0 0;border:0;padding:0;font-size:12px;text-decoration:underline}.fb-list{gap:12px;margin:0;padding:0;list-style:none;display:grid}.fb-item{border:1px solid var(--border);border-radius:8px;gap:8px;padding:12px 14px;display:grid}.fb-item-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.fb-meta strong{color:var(--text-primary)}.fb-meta{color:var(--text-muted);margin:0;font-size:12px}.fb-mine{color:var(--accent);font-weight:600}.fb-body{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.fb-reply{border-inline-start:3px solid var(--accent);background:var(--surface-2);border-radius:4px;padding:8px 12px;font-size:13px}.fb-reply p{white-space:pre-wrap;margin:4px 0 0}.fb-own{font-size:12px}.fb-history{color:var(--text-secondary);font-size:12px}.fb-history ol{margin:6px 0 0;padding-inline-start:18px}.fb-admin{border-top:1px dashed var(--border);padding-top:8px}.fb-admin input.control{flex:1;min-width:160px}.fb-admin-bar{color:var(--text-muted);margin-top:16px;font-size:12px}.fb-status{white-space:nowrap;border:1px solid;border-radius:999px;flex-shrink:0;padding:2px 10px;font-size:12px;font-weight:600}.fb-status-new{color:var(--text-secondary)}.fb-status-in_review{color:var(--accent)}.fb-status-planned{color:#7a6ad8}.fb-status-in_progress{color:#b27600}.fb-status-done{color:var(--good)}.fb-status-declined{color:var(--bad)}@media (width<=700px){.fb-row{grid-template-columns:1fr}}@media print{:root{--page:#fff;--surface:#fff;--shadow:none}.no-print,.card-actions,.bottom-nav,.skip-link,.mobile-only{display:none!important}.desktop-only{display:block!important}.app{max-width:none;padding:0}.card,.tile{break-inside:avoid}.table-wrap{max-height:none;overflow:visible}.pnl{grid-template-columns:1fr}.matrix{font-size:11px}.matrix th,.matrix td{padding:4px 6px}}.skip-link{inset-inline-start:12px;z-index:50;background:var(--text-primary);color:var(--surface);border-radius:8px;padding:8px 12px;text-decoration:none;position:absolute;top:-48px}.skip-link:focus{top:12px}.chart-caption{color:var(--text-muted);margin:-2px 0 6px;font-size:11px}.skeleton{gap:10px;padding:8px 0 4px;display:grid}.skeleton span{background:linear-gradient(90deg, var(--surface-2) 25%, var(--hover) 50%, var(--surface-2) 75%);background-size:200% 100%;border-radius:6px;height:14px;animation:1.4s ease-in-out infinite shimmer;display:block}.skeleton span:first-child{width:60%}.skeleton span:nth-child(2){width:90%;height:120px}.skeleton span:nth-child(3){width:40%}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.icon-btn{width:40px;height:40px;color:var(--text-secondary);cursor:pointer;background:0 0;border:0;border-radius:10px;place-items:center;display:inline-grid}.icon-btn:hover{background:var(--hover)}.table-hint{color:var(--text-muted);margin:6px 0 0;font-size:11px}.mobile-only,.bottom-nav{display:none}.filter-chip-row{z-index:6;background:var(--page);padding:8px 0 10px;position:sticky;top:0}.filter-chip{border:1px solid var(--border);background:var(--surface);width:100%;min-height:52px;color:var(--text-primary);text-align:start;cursor:pointer;box-shadow:var(--shadow);border-radius:12px;align-items:center;gap:10px;padding:8px 14px;display:flex}.filter-chip svg{color:var(--accent);flex-shrink:0}.filter-chip-text{min-width:0;font-size:13px;line-height:1.3;display:grid}.filter-chip-text strong,.filter-chip-text span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.filter-chip-text span{color:var(--text-muted)}dialog.sheet{background:var(--surface);width:100%;max-width:560px;max-height:88dvh;color:var(--text-primary);border:0;border-radius:18px 18px 0 0;margin:auto auto 0;padding:0;box-shadow:0 -8px 32px #0000002e}dialog.sheet[open]{animation:.22s ease-out sheet-up}dialog.sheet::backdrop{background:#0006}@keyframes sheet-up{0%{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}.sheet-inner{padding:8px 16px max(16px, env(safe-area-inset-bottom));gap:12px;display:grid}.sheet-handle{background:var(--axis);border-radius:2px;justify-self:center;width:40px;height:4px}.sheet-head{justify-content:space-between;align-items:center;display:flex}.sheet-head h2{margin:0;font-size:17px}.sheet-note{color:var(--text-muted);margin:0;font-size:12px}.sheet-done{width:100%;height:48px;font-size:16px}.filters.filters-sheet{background:0 0;border:0;gap:10px;margin:0;padding:0;display:grid;position:static}.filters-sheet .control,.filters-sheet select.control{width:100%}.filters-sheet .date-range{grid-template-columns:1fr auto 1fr;align-items:center;display:grid}.filters-sheet .date-range input{width:100%}.filters-sheet .divider{display:none}.filters-sheet .segmented{display:flex}.filters-sheet .segmented button{flex:1}.bottom-nav a{color:var(--text-muted);justify-items:center;gap:2px;padding:8px 4px 6px;font-size:11px;font-weight:600;text-decoration:none;display:grid}.bottom-nav a[aria-current=page]{color:var(--accent)}.bottom-nav a span{white-space:nowrap;text-overflow:ellipsis;max-width:100%;overflow:hidden}@media (width<=700px){.desktop-only,.topbar .tabs,.topbar .freshness{display:none}.mobile-only{display:block}.app{padding-inline:max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));padding-bottom:calc(84px + env(safe-area-inset-bottom))}.topbar{padding:max(10px, env(safe-area-inset-top)) 0 4px;flex-wrap:nowrap;justify-content:space-between}.topbar .segmented button{padding:0 9px}.bottom-nav{inset-inline:0;z-index:20;padding-bottom:env(safe-area-inset-bottom);border-top:1px solid var(--border);background:color-mix(in srgb, var(--surface) 92%, transparent);-webkit-backdrop-filter:saturate(1.6)blur(14px);grid-template-columns:repeat(3,1fr);display:grid;position:fixed;bottom:0}input,select,textarea{font-size:16px}.grid,.kpis{gap:12px}.kpis{margin-bottom:12px}.tile{padding:12px 14px}.tile-value{font-size:24px}.tile.hero .tile-value{font-size:40px}.card-head{padding:12px 14px 6px}.card-body{padding:0 14px 14px}.brief-title{font-size:20px}.chart{height:240px!important}table.matrix{font-size:12.5px}.matrix th,.matrix td{padding:8px}.matrix th:first-child,.matrix td:first-child{min-width:138px;max-width:170px}.table-wrap{overscroll-behavior-x:contain;max-height:none}.table-wrap.tall{max-height:70dvh}.lock-card{margin:24px auto}.desktop-only-inline{display:none}.brief-head{align-items:center}.brief-kpis .tile:last-child{grid-column:span 2}.lock-form{flex-direction:column}.fb-admin{flex-direction:column;align-items:stretch}}@media (pointer:coarse){.control{height:44px}.segmented button{height:38px}.ghost-btn{height:40px;padding:0 14px}.primary-btn{height:44px}.tree-toggle{width:32px;height:32px;margin:-6px 0;font-size:15px;line-height:32px}.tree-spacer{width:32px}.link-btn{padding:10px 0}details>summary{padding:8px 0}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}
