*{box-sizing:border-box}#root,body,html{margin:0;padding:0;height:100%}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:14px;color:#1a1a1a;background:#f7f7f8;line-height:1.4}a{color:#2563eb;text-decoration:none}a:hover{text-decoration:underline}.app{display:grid;grid-template-columns:220px 1fr;min-height:100vh}.sidebar{background:#ffffff;border-right:1px solid #e5e7eb;padding:20px 16px}.sidebar-brand{margin:0 0 20px}.sidebar nav a{display:block;padding:7px 10px;border-radius:6px;color:#4b5563;font-size:13px;font-weight:500;text-decoration:none}.sidebar nav a:hover{background:#f3f4f6;color:#111827}.sidebar nav a.active{background:#eef2ff;color:#1e40af}.sidebar-group{margin-bottom:8px}.sidebar-group-label{display:flex;align-items:center;gap:8px;width:100%;background:none;border:none;cursor:pointer;font-family:inherit;font-size:13px;font-weight:600;letter-spacing:.01em;color:#111827;text-align:left;padding:8px 10px;margin:0 0 2px;border-radius:6px}.sidebar-group-label:hover{background:#f3f4f6}.sidebar-group-caret{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;color:#6b7280;transition:transform .15s ease;font-size:11px;line-height:1}.sidebar-group-caret.open{transform:rotate(90deg)}.sidebar-group-items{display:flex;flex-direction:column;gap:1px;margin-left:8px;padding-left:8px;border-left:1px solid #e5e7eb}.sidebar-group-items a{padding-left:14px;font-size:13px}.main{padding:24px 32px;overflow-x:auto}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.page-header h2{margin:0 0 4px;font-size:22px;font-weight:600}.page-header .subtitle{color:#6b7280;font-size:13px}.filters{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:16px;padding:14px 16px;background:#ffffff;border:1px solid #e5e7eb;border-radius:8px}.filters .field{display:flex;flex-direction:column;gap:4px}.filters label{font-size:11px;text-transform:uppercase;color:#6b7280;font-weight:600;letter-spacing:.04em}.filters input,.filters select{font:inherit;padding:6px 10px;border:1px solid #d1d5db;border-radius:6px;background:#ffffff;min-width:130px}.filters .field-checkbox{align-self:flex-end;padding-bottom:4px}.filters .field-checkbox label{display:inline-flex;align-items:center;gap:6px;font-size:12px;text-transform:none;letter-spacing:0;font-weight:500;color:#374151;cursor:pointer}.filters .field-checkbox input{min-width:0;width:auto;margin:0;cursor:pointer}.filters-disclosure{flex-basis:100%;margin:0;font-size:11px;color:#6b7280;line-height:1.4}.filters-presets{flex-basis:100%;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.filters-presets-label{font-size:11px;text-transform:uppercase;color:#6b7280;font-weight:600;letter-spacing:.04em;margin-right:4px}.preset-chip{font:inherit;font-size:12px;padding:4px 10px;border:1px solid #d1d5db;border-radius:999px;background:#ffffff;color:#374151;cursor:pointer}.preset-chip:hover{background:#f3f4f6}.preset-chip.active{background:#111827;border-color:#111827;color:#ffffff}.drawer-backdrop{position:fixed;inset:0;background:rgba(17,24,39,.35);z-index:40}.drawer{position:fixed;top:0;right:0;bottom:0;width:min(900px,95vw);background:#ffffff;border-left:1px solid #e5e7eb;box-shadow:-8px 0 24px rgba(17,24,39,.12);z-index:50;display:flex;flex-direction:column}.drawer-header{display:flex;align-items:flex-start;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e5e7eb}.drawer-title{font-size:16px;font-weight:600;color:#111827}.drawer-sub{font-size:12px;color:#6b7280;margin-top:2px}.drawer-close{border:none;background:transparent;font-size:24px;line-height:1;color:#6b7280;cursor:pointer;padding:4px 8px}.drawer-close:hover{color:#111827}.drawer-controls{display:flex;align-items:center;gap:12px;padding:12px 20px;border-bottom:1px solid #f3f4f6}.drawer-search{flex:1 1;min-width:0;font:inherit;padding:6px 10px;border:1px solid #d1d5db;border-radius:6px}.drawer-body{flex:1 1;overflow:auto;padding:0 20px 20px}.drawer-body .pmc-compare-table{width:100%}.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));grid-gap:12px;gap:12px;margin-bottom:16px}.kpi-card{background:#ffffff;border:1px solid #e5e7eb;border-radius:8px;padding:16px}.kpi-card .kpi-label{font-size:12px;color:#6b7280;text-transform:uppercase;letter-spacing:.04em;font-weight:600}.kpi-card .kpi-value{font-size:26px;font-weight:600;margin-top:6px}.kpi-card .kpi-delta{font-size:13px;margin-top:4px;font-weight:500}.kpi-card .kpi-delta.up{color:#16a34a}.kpi-card .kpi-delta.down{color:#dc2626}.kpi-card .kpi-compare{font-size:11px;color:#9ca3af;margin-top:2px}.csv-download{font:inherit;font-size:12px;font-weight:500;padding:6px 12px;border:1px solid #d1d5db;border-radius:6px;background:#ffffff;color:#374151;cursor:pointer}.csv-download:hover{background:#f3f4f6}.pmc-compare-table{width:100%;border-collapse:collapse}.pmc-compare-table th{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#6b7280;padding:8px 10px;border-bottom:1px solid #e5e7eb;text-align:left;white-space:nowrap}.pmc-compare-table th:hover{color:#111827}.pmc-compare-table td{padding:8px 10px;border-bottom:1px solid #f3f4f6;font-size:13px}.pmc-compare-table tr:hover td{background:#f9fafb}.panel{background:#ffffff;border:1px solid #e5e7eb;border-radius:8px;padding:16px}.panel h3{margin:0 0 12px;font-size:14px;font-weight:600}table{width:100%;border-collapse:collapse;font-size:13px}td,th{padding:8px 12px;text-align:right;border-bottom:1px solid #f1f3f5}td:first-child,th:first-child{text-align:left}th{font-size:11px;text-transform:uppercase;color:#6b7280;font-weight:600;letter-spacing:.04em;background:#fafafa;position:-webkit-sticky;position:sticky;top:0}tr:hover td{background:#f9fafb}.delta.up{color:#16a34a}.delta.down{color:#dc2626}.muted{color:#9ca3af}.multi-select{position:relative;display:flex;flex-direction:column;gap:4px}.multi-select label{font-size:11px;text-transform:uppercase;color:#6b7280;font-weight:600;letter-spacing:.04em}.multi-select-trigger{font:inherit;padding:6px 10px;border:1px solid #d1d5db;border-radius:6px;background:#ffffff;color:#1a1a1a;min-width:180px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;text-align:left}.multi-select-trigger .caret{margin-left:8px;color:#6b7280;font-size:11px}.multi-select-trigger .muted{color:#9ca3af}.multi-select-popover{position:absolute;top:calc(100% + 4px);left:0;z-index:10;background:#ffffff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,.08);width:260px;max-height:280px;display:flex;flex-direction:column}.multi-select-actions{display:flex;gap:8px;padding:8px 10px;border-bottom:1px solid #f1f3f5}.multi-select-actions button{font:inherit;font-size:12px;font-weight:500;padding:4px 10px;border:1px solid #d1d5db;border-radius:6px;background:#ffffff;color:#374151;cursor:pointer}.multi-select-actions button:hover{background:#f3f4f6}.multi-select-list{overflow-y:auto;padding:6px 0}.filters .multi-select-item,.multi-select .multi-select-item{display:flex;align-items:center;gap:8px;padding:6px 12px;cursor:pointer;font-weight:400;text-transform:none;letter-spacing:0;font-size:13px;color:#1a1a1a}.multi-select-item:hover{background:#f9fafb}.multi-select-item input{margin:0;min-width:0;width:auto;flex:0 0 auto}.error{padding:12px 16px;background:#fef2f2;color:#991b1b;border:1px solid #fecaca;border-radius:8px;margin-bottom:16px}.loading{color:#6b7280;padding:16px}@keyframes svr-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.signin-shell{display:flex;min-height:100vh;align-items:center;justify-content:center;background:#f7f7f8}.signin-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:36px 40px;width:100%;max-width:380px;box-shadow:0 1px 3px rgba(0,0,0,.04);text-align:center}.signin-card h1{font-size:16px;font-weight:600;margin:0 0 4px;color:#111827}.signin-card .subtitle{font-size:13px;margin-bottom:24px}.signin-google{display:inline-flex;align-items:center;gap:10px;padding:10px 18px;background:#fff;color:#1f2937;border:1px solid #d1d5db;border-radius:8px;font-weight:500;cursor:pointer}.signin-google:hover{background:#f9fafb}.signin-error{margin-top:16px;padding:10px 12px;background:#fef2f2;color:#991b1b;border:1px solid #fecaca;border-radius:6px;font-size:12px}.sidebar-account{margin-top:24px;padding-top:16px;border-top:1px solid #f3f4f6;font-size:11px;color:#6b7280}.sidebar-account .email{display:block;color:#374151;font-weight:500;margin-bottom:6px;word-break:break-all}.sidebar-account a,.sidebar-account button{display:block;padding:6px 8px;border-radius:6px;color:#374151;font-weight:500;background:none;border:none;text-align:left;cursor:pointer;font-size:11px}.sidebar-account a:hover,.sidebar-account button:hover{background:#f3f4f6}.perm-form{display:grid;grid-template-columns:240px 100px 1fr 90px 70px;grid-gap:10px;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #f3f4f6}.perm-form .reports-cell{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px}.perm-form .reports-cell label{display:inline-flex;align-items:center;gap:4px;font-weight:400;text-transform:none;letter-spacing:0;color:#374151;font-size:12px}.perm-form .reports-cell input{margin:0}.perm-form .admin-toggle{display:inline-flex;align-items:center;gap:6px;font-weight:400;font-size:12px;text-transform:none;letter-spacing:0}.perm-form .danger{color:#b91c1c;background:none;border:1px solid #fecaca;border-radius:6px;padding:6px 10px;font-size:12px;cursor:pointer}.perm-form .danger:hover{background:#fef2f2}