:root { --bg: #f6f4f1; --card: #fff; --ink: #1c1917; --muted: #78716c; --line: #e7e2dc; --acc: #a8643c; --ok: #5f7f4f; --bad: #b5654a; --bar: #a8a29e; }
    @media (prefers-color-scheme: dark) { :root { --bg: #1c1917; --card: #262220; --ink: #f5f5f4; --muted: #a8a29e; --line: #3a3532; --acc: #d08a5e; --ok: #8fb07c; --bad: #d98a6c; --bar: #78716c; } }
    * { box-sizing: border-box; }
    body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 Inter, -apple-system, "Segoe UI", Roboto, sans-serif; }
    .wrap { max-width: 1180px; margin: 0 auto; padding: 20px 16px 48px; }
    header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
    h1 { font-size: 20px; margin: 0; } h2 { font-size: 15px; margin: 0 0 10px; } .muted { color: var(--muted); } .small { font-size: 12px; }
    .btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 7px 12px; text-decoration: none; font: inherit; cursor: pointer; }
    .btn.on { background: var(--ink); color: var(--bg); }
    input, select { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 7px 10px; font: inherit; }
    .filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
    .tw { overflow-x: auto; } table { border-collapse: collapse; width: 100%; } th, td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
    th:first-child, td:first-child { text-align: left; } th { color: var(--muted); font-weight: 500; font-size: 12px; }
    .funnel .row { display: grid; grid-template-columns: 230px 1fr 190px; gap: 10px; align-items: center; margin: 8px 0; }
    .funnel .fill { height: 20px; background: var(--acc); border-radius: 4px; min-width: 2px; }
    .funnel .nm b { font-weight: 600; } .funnel .def { color: var(--muted); font-size: 12px; }
    .funnel .nums { font-size: 12px; color: var(--muted); } .funnel .nums .v { color: var(--ink); font-weight: 600; font-size: 14px; }
    .bad { color: var(--bad); } .ok { color: var(--ok); }
    .warn { border-left: 3px solid var(--bad); padding: 6px 10px; margin-bottom: 10px; background: var(--card); border-radius: 0 8px 8px 0; }
    .empty { text-align: center; padding: 56px 16px; } .empty h2 { font-size: 18px; }
    .bars { display: flex; align-items: flex-end; gap: 6px; height: 130px; margin: 8px 0 4px; } .bars .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; min-width: 22px; }
    .bars .col { width: 100%; background: var(--acc); border-radius: 4px 4px 0 0; } .bars .lbl { font-size: 11px; color: var(--muted); } .bars .val { font-size: 11px; }
    .tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
    .kpis { display: flex; flex-wrap: wrap; gap: 8px 24px; }
    @media print { :root { --bg: #fff; --card: #fff; --ink: #1c1917; --muted: #57534e; --line: #d6d3d1; --acc: #a8643c; } .wrap { padding: 0; max-width: none; } .card { break-inside: avoid; border-radius: 0; } .funnel .fill, .bars .col { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
    @media (max-width: 760px) { .funnel .row { grid-template-columns: 1fr; gap: 2px; } }
