.app-shell{display:grid;grid-template-columns:200px minmax(420px,1fr) clamp(560px,44vw,760px);min-height:100vh;transition:grid-template-columns .28s ease}.app-shell.details-panel-collapsed{grid-template-columns:200px minmax(420px,1fr) 58px}.app-shell.locks-active,.app-shell.settings-active{grid-template-columns:200px 1fr}.sidebar{align-self:start;background:linear-gradient(180deg,#161a20,#101216);border-right:1px solid var(--line);box-shadow:18px 0 44px rgba(0,0,0,.24);color:var(--text);gap:24px;height:100vh;max-height:100vh;overflow:hidden;padding:20px;position:-webkit-sticky;position:sticky;top:0}.brand,.sidebar{display:flex;flex-direction:column}.brand{align-items:flex-start;gap:10px}.brand-logo{display:block;height:auto;max-width:160px;width:100%}.sidebar-title{color:rgba(244,247,248,.82);font-size:15px;font-weight:600;letter-spacing:.01em;line-height:1.25}.brand-mark{align-items:center;background:linear-gradient(135deg,var(--blue),var(--blue-dark));border-radius:8px;box-shadow:0 10px 24px rgba(34,211,238,.2);color:#061214;display:flex;height:40px;justify-content:center;width:40px}.brand span,.brand strong{display:block}.brand span{color:var(--muted);font-size:12px;margin-top:2px}.sidebar-nav{display:grid;grid-gap:8px;gap:8px}.sidebar-nav-bottom{margin-top:auto}.sidebar-version{color:rgba(244,247,248,.4);font-size:11px;font-weight:300;line-height:1;margin-top:auto}.nav-item{align-items:center;background:rgba(255,255,255,.045);border:1px solid var(--line);border-radius:6px;color:var(--text);display:flex;gap:10px;min-height:40px;padding:9px 10px;text-align:left}.nav-item:hover{background:rgba(34,211,238,.08);border-color:rgba(34,211,238,.24)}.nav-item.selected{background:rgba(34,211,238,.13);border-color:rgba(34,211,238,.46);box-shadow:inset 3px 0 0 var(--blue)}.content{background:linear-gradient(180deg,rgba(255,255,255,.02),transparent 240px);display:grid;grid-gap:16px;gap:16px;grid-template-rows:auto auto 1fr;min-width:0;padding:22px}.conditions-toolbar,.form-actions,.panel-heading,.preview-strip,.topbar,.topbar-actions{align-items:center;display:flex;gap:12px;justify-content:space-between}.topbar{min-height:64px}.topbar-heading{display:grid;grid-gap:3px;gap:3px;min-width:0}.topbar-title-row{align-items:center;display:flex;gap:10px;min-width:0}.topbar-actions{flex-wrap:wrap}.topbar-refresh-button{color:var(--muted);height:32px;min-height:32px;padding:6px;width:32px}.topbar-refresh-button:focus-visible,.topbar-refresh-button:hover{color:var(--text)}.topbar-primary-action{min-height:42px;padding:10px 16px}.new-rule-button{border-color:rgba(45,212,191,.48);box-shadow:0 14px 32px rgba(20,184,166,.18);font-size:14px}h1,h2,h3,p{margin:0}h1{font-size:26px;line-height:1.2}h2{font-size:16px}.panel-heading span,.topbar p{color:var(--muted);font-size:13px}label{color:var(--muted);display:grid;font-size:12px;font-weight:700;grid-gap:6px;gap:6px}input,select,textarea{background:#12151a;border:1px solid var(--line);border-radius:6px;color:var(--text);min-height:36px;padding:8px 10px;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease;width:100%}input::placeholder,textarea::placeholder{color:#748190}select option{background:#14171c;color:var(--text)}.search-box:focus-within,input:focus,select:focus,textarea:focus{border-color:rgba(34,211,238,.72);box-shadow:0 0 0 3px rgba(34,211,238,.16);outline:0}input:hover,select:hover,textarea:hover{border-color:var(--line-strong)}textarea{resize:vertical}.search-box{align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:8px;color:var(--muted);display:flex;gap:8px;min-height:40px;min-width:min(280px,100%);padding:0 12px}.search-box input{background:transparent;border:0;box-shadow:none;min-height:38px;padding:0}.danger-button,.ghost-button,.icon-button,.primary-button,.secondary-button{align-items:center;border:1px solid transparent;border-radius:6px;display:inline-flex;gap:8px;justify-content:center;min-height:36px;padding:8px 12px}.danger-button:hover,.ghost-button:hover,.icon-button:hover,.nav-item:hover,.primary-button:hover,.secondary-button:hover{transform:translateY(-1px)}.danger-button:active,.ghost-button:active,.icon-button:active,.nav-item:active,.primary-button:active,.secondary-button:active{transform:translateY(0)}.primary-button{background:linear-gradient(135deg,var(--blue),var(--blue-dark));border-color:rgba(34,211,238,.34);color:#061214;font-weight:800}.primary-button:hover{background:linear-gradient(135deg,#67e8f9,#2dd4bf);box-shadow:0 12px 28px rgba(20,184,166,.24)}.secondary-button{background:var(--surface-elevated);border-color:var(--line);color:var(--text)}.ghost-button:hover,.icon-button:hover,.secondary-button:hover{background:#2a303a;border-color:var(--line-strong);box-shadow:0 10px 24px rgba(0,0,0,.24)}.ghost-button,.icon-button{background:transparent;border-color:var(--line);color:var(--text)}.condition-remove-button,.danger-button{background:rgba(251,113,133,.1);border-color:rgba(251,113,133,.28);color:#fda4af}.condition-remove-button:focus-visible,.condition-remove-button:hover,.danger-button:hover,.filter-remove-button:focus-visible,.filter-remove-button:hover{background:rgba(251,113,133,.16);border-color:rgba(251,113,133,.42)}.icon-button{min-height:32px;padding:6px;width:32px}.compact-button{min-height:30px;padding:6px 9px}.full-width{width:100%}button:disabled{cursor:not-allowed;opacity:.62}.segmented{background:var(--surface-muted);border:1px solid var(--line);border-radius:6px;display:inline-flex;padding:3px}.segmented button{background:transparent;border:0;border-radius:4px;color:var(--muted);min-height:30px;padding:6px 12px}.segmented button.selected,.segmented button:hover{background:rgba(255,255,255,.08);color:var(--text)}.portal-editor-panel{align-self:start;background:rgba(20,23,28,.96);border-left:1px solid var(--line);box-shadow:-22px 0 55px rgba(0,0,0,.32);display:grid;grid-template-rows:auto 1fr;height:100vh;height:100dvh;max-height:none;min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;position:-webkit-sticky;position:sticky;top:0;transition:box-shadow .28s ease,opacity .2s ease}.portal-editor-panel.collapsed{height:100vh;height:100dvh;overflow:hidden}.details-panel-toggle-bar{align-items:center;background:rgba(25,28,34,.94);border-bottom:1px solid var(--line);display:flex;gap:10px;min-height:52px;padding:10px 12px}.details-panel-toggle-bar span{color:var(--muted);font-size:12px;font-weight:800;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.details-panel-toggle{flex:0 0 auto}.app-shell.portal-editor-fullscreen,.app-shell.rule-editor-fullscreen{background:#0d0d0e;display:block;min-height:100vh}.portal-editor-fullscreen .content,.portal-editor-fullscreen .details-panel-toggle-bar,.portal-editor-fullscreen .sidebar,.rule-editor-fullscreen .content,.rule-editor-fullscreen .details-panel-toggle-bar,.rule-editor-fullscreen .sidebar{display:none}.portal-editor-fullscreen .portal-editor-panel,.rule-editor-fullscreen .portal-editor-panel{background:#0d0d0e;border-left:0;box-shadow:none;display:block;height:auto;max-height:none;overflow:visible;position:static}.automation-directory,.portal-directory,.portal-form,.portal-rules-section,.rule-directory,.status-directory{background:rgba(25,28,34,.92);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);min-width:0}.status-directory{overflow:hidden}.automation-directory,.portal-directory,.portal-form,.portal-rules-section,.rule-directory,.status-directory{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.portal-directory-heading{align-items:center;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;padding:14px 16px}.portal-directory-heading span{color:var(--muted);font-size:13px}.portal-directory-actions{gap:10px;min-width:0}.portal-directory-actions,.portal-directory-summary{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end}.portal-directory-summary{gap:8px}.portal-directory-summary span{align-items:center;background:rgba(255,255,255,.035);border:1px solid var(--line);border-radius:6px;color:#b8c2ce;display:inline-flex;font-size:12px;font-weight:600;gap:5px;min-height:30px;padding:6px 9px;white-space:nowrap}.portal-directory-summary .material-symbols-outlined,.portal-directory-summary svg{color:#67e8f9}.portal-view-toggle{flex:0 0 auto}.portal-view-toggle button{align-items:center;display:inline-flex;font-weight:600;gap:7px}.portal-card-grid{display:grid;grid-gap:14px;gap:14px;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));padding:16px}.portal-card-grid .empty-state{grid-column:1/-1}.portal-card{--portal-accent:#22d3ee;--portal-accent-soft:rgba(34,211,238,0.13);background:linear-gradient(180deg,rgba(32,36,44,.96),rgba(18,21,26,.98)),var(--surface);border:1px solid var(--line);border-radius:8px;color:var(--text);display:grid;grid-gap:14px;gap:14px;min-height:276px;overflow:hidden;padding:16px;position:relative;text-align:left;transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease;width:100%}.portal-card.active{--portal-accent:#34d399;--portal-accent-soft:rgba(52,211,153,0.14)}.portal-card.inactive{--portal-accent:#94a3b8;--portal-accent-soft:rgba(148,163,184,0.12)}.portal-card:before{background:linear-gradient(90deg,transparent,var(--portal-accent),transparent);content:"";height:1px;inset:0 16px auto;opacity:.62;position:absolute}.portal-card-glow{background:linear-gradient(135deg,var(--portal-accent-soft),transparent 38%),linear-gradient(225deg,rgba(255,255,255,.045),transparent 34%);inset:0;opacity:.7;pointer-events:none;position:absolute;transition:opacity .22s ease,transform .22s ease}.portal-card>span:not(.portal-card-glow){position:relative;z-index:1}.portal-card:hover{border-color:color-mix(in srgb,var(--portal-accent) 54%,transparent);box-shadow:0 18px 42px rgba(0,0,0,.32),0 0 0 1px color-mix(in srgb,var(--portal-accent) 22%,transparent);transform:translateY(-4px)}.portal-card:hover .portal-card-glow{opacity:1;transform:translateY(-3px)}.portal-card.selected{border-color:rgba(34,211,238,.68);box-shadow:0 16px 38px rgba(0,0,0,.28),0 0 0 1px rgba(34,211,238,.32)}.portal-card-footer,.portal-card-top{align-items:center;display:flex;gap:10px;justify-content:space-between;min-width:0}.portal-card-footer{justify-content:flex-end}.portal-card-logo{border-color:color-mix(in srgb,var(--portal-accent) 38%,transparent);color:var(--portal-accent);height:48px;transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease;width:48px}.portal-card:hover .portal-card-logo{box-shadow:0 0 18px color-mix(in srgb,var(--portal-accent) 24%,transparent);transform:translateY(-1px) scale(1.04)}.portal-card-title{display:grid;grid-gap:5px;gap:5px;min-width:0}.portal-card-title strong{color:var(--text);font-size:16px;font-weight:650;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-card-title small{color:#aab5c2;display:-webkit-box;font-size:12px;font-weight:500;line-height:1.4;min-height:34px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.portal-card-metrics{display:grid;grid-gap:12px;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}.portal-card-metrics>span{display:grid;grid-gap:2px;gap:2px;min-width:0}.portal-card-metrics strong{color:var(--text);font-size:18px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;font-weight:700;line-height:1}.portal-card-metrics small{color:#aab5c2;font-size:11px;font-weight:500}.portal-card-divider{background:linear-gradient(90deg,color-mix(in srgb,var(--portal-accent) 34%,transparent),rgba(255,255,255,.08),transparent);display:block;height:1px;margin-top:-2px;opacity:.82;width:100%}.portal-card-insights{color:#aab5c2;display:grid;font-size:12px;font-weight:500;grid-gap:8px;gap:8px}.portal-card-insights>span{align-items:center;display:flex;gap:7px;line-height:1.4;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-card-insights .material-symbols-outlined,.portal-card-insights svg{color:var(--portal-accent);flex:0 0 auto}.row-action.portal-card-edit{flex:0 0 auto;font-weight:650}.portal-card .status-pill{font-weight:650}@media (max-width:760px){.portal-directory-heading-with-actions{align-items:stretch;flex-direction:column}.portal-directory-actions,.portal-directory-summary{justify-content:flex-start}.portal-view-toggle{width:100%}.portal-view-toggle button{flex:1 1}}.automation-table,.portal-table,.rule-table{display:grid;overflow-x:auto}.automation-row,.portal-row,.rule-row{align-items:center;background:var(--surface);border:0;border-bottom:1px solid var(--line);color:var(--text);display:grid;grid-gap:14px;gap:14px;min-height:66px;padding:10px 16px;text-align:left;transition:background-color .18s ease,box-shadow .18s ease,transform .18s ease;width:100%}.portal-row{grid-template-columns:minmax(220px,1fr) 88px 78px 86px 88px;min-width:560px}.rule-row{grid-template-columns:minmax(300px,1fr) 150px 132px 86px 88px;min-width:866px}.automation-row{grid-template-columns:minmax(0,1.35fr) minmax(0,.9fr) minmax(76px,.35fr) minmax(118px,.55fr) max-content;min-width:0}.automation-row.selected,.automation-row:hover:not(.header),.portal-row.selected,.portal-row:hover:not(.header),.rule-row.selected,.rule-row:hover:not(.header){background:#202631}.automation-row:hover:not(.header),.portal-row:hover:not(.header),.rule-row:hover:not(.header){box-shadow:inset 3px 0 0 rgba(34,211,238,.42),0 12px 28px rgba(0,0,0,.22);transform:translateX(2px)}.automation-row.selected,.portal-row.selected,.rule-row.selected{box-shadow:inset 3px 0 0 var(--blue)}.automation-row.header,.portal-row.header,.rule-row.header{background:var(--surface-muted);color:var(--muted);font-size:12px;font-weight:800;min-height:42px;text-transform:uppercase}.rule-row.child-rule-row{background:linear-gradient(90deg,rgba(167,139,250,.08),rgba(25,28,34,.92) 34%);box-shadow:inset 3px 0 0 rgba(167,139,250,.5);min-height:60px}.portal-cell{align-items:center;display:flex;gap:12px;min-width:0}.portal-cell small,.portal-cell strong{display:block}.portal-cell small{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.automation-row>span>.code-token,.portal-cell .code-token{max-width:100%}.column-picker-trigger-icon,.group-preview-icon,.list-filter-chip,.logo-preview,.portal-logo,.priority-rank{align-items:center;background:rgba(34,211,238,.1);border:1px solid rgba(34,211,238,.24);color:#67e8f9;display:flex;flex:0 0 auto;justify-content:center;overflow:hidden}.portal-logo{border-radius:8px;height:42px;width:42px}.logo-preview img,.portal-logo img{height:100%;object-fit:contain;width:100%}.row-action{align-items:center;color:#67e8f9;cursor:pointer;display:inline-flex;font-weight:700;gap:6px;justify-content:flex-end}.row-action:hover{color:#a7f3d0}.status-pill{align-items:center;border-radius:999px;display:inline-flex;font-size:12px;font-weight:800;justify-content:center;min-height:28px;padding:6px 10px;width:max-content}.status-pill.active{background:rgba(52,211,153,.13);color:#86efac}.status-pill.inactive{background:rgba(255,255,255,.06);color:var(--muted)}.rule-name-cell{padding-left:var(--rule-indent,0);position:relative}.rule-tree-rail{display:none}.child-rule-row .rule-tree-rail{background:linear-gradient(90deg,transparent,rgba(167,139,250,.72));border-radius:999px;display:block;height:2px;left:calc(var(--rule-indent, 24px) - 14px);position:absolute;top:50%;width:12px}.rule-node-icon.child{background:rgba(255,255,255,.055);border-color:var(--line);color:var(--muted)}.automation-node-icon{background:rgba(251,191,36,.12);border-color:rgba(251,191,36,.28);color:#fcd34d}.automation-row .portal-cell,.automation-row .portal-cell strong,.automation-row .portal-cell>span:last-child,.automation-row>span:not(.portal-cell):not(.status-pill){min-width:0}.automation-row .portal-cell strong,.automation-row>span:not(.portal-cell):not(.status-pill){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.automation-row .status-pill{justify-self:start;white-space:nowrap}.rule-title-copy{display:grid;grid-gap:4px;gap:4px;min-width:0}.rule-title-copy small{color:var(--muted);display:block;font-size:12px;font-weight:400;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rule-adtype-missing{align-items:center;color:#fbbf24;display:flex;font-size:12px;font-weight:500;gap:4px;margin-top:4px}.rule-title-copy small.rule-adtype-missing{color:#fbbf24;font-weight:500;overflow:visible;white-space:normal}.rule-adtype-missing .material-symbols-outlined{font-size:15px}.rule-count-cell{align-items:center;color:var(--text);display:inline-flex;flex-wrap:wrap;gap:4px 5px;min-width:0}.rule-count-cell.plain{font-weight:700}.rule-count-main{align-items:center;display:inline-flex;gap:3px;min-width:0}.rule-count-main strong{font-size:13px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;line-height:1}.rule-count-lock{color:#94a3b8;opacity:.72}.rule-count-total{color:var(--muted);font-size:11px;font-weight:700;line-height:1}.rule-count-delta{border-radius:999px;font-size:11px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;font-weight:800;line-height:1;padding:3px 5px}.rule-count-delta.negative{background:rgba(251,113,133,.15);color:#fda4af}.rule-count-delta.positive{background:rgba(52,211,153,.13);color:#86efac}.rule-count-delta.neutral{background:rgba(148,163,184,.14);color:#cbd5e1}.rule-group-list{display:flex;flex-direction:column;gap:14px;padding:16px}.rule-group-list .empty-state{padding:24px}.rule-portal-group{background:rgba(18,21,26,.6);border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease}.rule-portal-group:hover{border-color:rgba(34,211,238,.32);box-shadow:0 14px 34px rgba(0,0,0,.26)}.rule-portal-group-header{align-items:center;background:linear-gradient(90deg,rgba(34,211,238,.09),transparent 62%);border-bottom:1px solid var(--line);display:flex;gap:12px;padding:12px 16px}.rule-portal-group-logo{border-color:var(--line-strong);flex-shrink:0;height:40px;width:40px}.rule-portal-group-logo.empty{background:rgba(255,255,255,.04);border-color:var(--line);color:var(--muted)}.rule-portal-group-copy{display:grid;grid-gap:2px;gap:2px;min-width:0}.rule-portal-group-copy strong{color:var(--text);font-size:15px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rule-portal-group-copy small{color:var(--muted);font-size:12px;font-weight:400;opacity:.82}.rule-group-rows{display:flex;flex-direction:column}.rule-group-row{align-items:center;background:transparent;border:0;border-bottom:1px solid var(--line);color:var(--text);cursor:pointer;display:grid;grid-gap:14px;gap:14px;grid-template-columns:minmax(0,1fr) 132px 92px 88px;min-height:58px;padding:10px 16px;text-align:left;transition:background-color .18s ease,box-shadow .18s ease,transform .18s ease;width:100%}.rule-group-row:last-child{border-bottom:0}.rule-group-row:hover{background:#202631;box-shadow:inset 3px 0 0 rgba(34,211,238,.42);transform:translateX(2px)}.rule-group-row.selected{background:#202631;box-shadow:inset 3px 0 0 var(--blue)}.rule-group-row.child-rule-row{background:linear-gradient(90deg,rgba(167,139,250,.08),transparent 34%)}.rule-group-name{align-items:center;display:flex;gap:10px;min-width:0;padding-left:var(--rule-indent,0);position:relative}.rule-node-dot{align-items:center;background:rgba(34,211,238,.1);border:1px solid rgba(34,211,238,.24);border-radius:8px;color:#67e8f9;display:flex;flex:0 0 auto;height:30px;justify-content:center;width:30px}.rule-node-dot.child{background:rgba(167,139,250,.12);border-color:rgba(167,139,250,.3);color:#c4b5fd}.rule-node-dot.tier-colored{background:color-mix(in srgb,var(--tier-color) 18%,transparent);border-color:color-mix(in srgb,var(--tier-color) 52%,transparent);color:var(--tier-color)}.rule-tier-chip{margin-left:8px;vertical-align:middle}.portal-card-tiers{align-items:center;display:flex;flex-wrap:wrap;gap:6px}.portal-adtype-name{align-items:center;display:flex;gap:8px;min-width:0}.portal-adtype-tier{align-items:center;display:flex;justify-content:flex-end}.child-rule-row .rule-group-name .rule-tree-rail{background:linear-gradient(90deg,transparent,rgba(167,139,250,.72));border-radius:999px;display:block;height:2px;left:calc(var(--rule-indent, 22px) - 12px);position:absolute;top:50%;width:10px}.portal-rules-list{display:grid;grid-gap:10px;gap:10px;margin-top:18px}.portal-rules-table{border:1px solid var(--line);border-radius:12px;overflow:hidden}.portal-rules-row{align-items:center;display:grid;grid-gap:10px;gap:10px;grid-template-columns:minmax(0,1fr) 86px 84px;padding:9px 12px;border-bottom:1px solid var(--line)}.portal-rules-row:last-child{border-bottom:0}.portal-rules-row.header{background:var(--surface-muted);color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}.portal-rules-row.selected{background:rgba(34,211,238,.07)}.portal-rules-name{align-items:center;display:flex;gap:10px;min-width:0}.portal-rules-name .rule-node-dot{height:28px;width:28px}.portal-rules-row .row-action{background:none;border:0;cursor:pointer;font:inherit;padding:0}.status-refresh-progress{border-bottom:1px solid var(--line);display:grid;grid-gap:10px;gap:10px;padding:14px 16px}.status-refresh-progress-header{align-items:baseline;color:var(--muted);display:flex;font-size:13px;justify-content:space-between}.status-refresh-progress-percent{color:var(--blue);font-size:12px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;font-weight:600}.status-refresh-track{background:rgba(255,255,255,.08);border-radius:999px;height:5px;overflow:hidden}.status-refresh-fill{background:linear-gradient(90deg,var(--blue-dark),var(--blue));border-radius:inherit;height:100%;transition:width .45s ease}.status-refresh-fill.running{background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent) 0 0 /45% 100% no-repeat,linear-gradient(90deg,var(--blue-dark),var(--blue));animation:status-refresh-shimmer 1.4s ease-in-out infinite}@keyframes status-refresh-shimmer{0%{background-position:-45% 0,0 0}to{background-position:145% 0,0 0}}.status-refresh-portals{display:flex;flex-wrap:wrap;gap:8px}.status-refresh-portal{background:rgba(255,255,255,.05);border:1px solid var(--line);color:var(--muted);font-size:12px;gap:7px;padding:4px 10px 4px 5px;transition:border-color .25s ease,color .25s ease}.status-refresh-portal,.status-refresh-portal-logo{align-items:center;border-radius:999px;display:inline-flex}.status-refresh-portal-logo{background:rgba(255,255,255,.08);height:20px;justify-content:center;overflow:hidden;width:20px}.status-refresh-portal-logo img{height:100%;object-fit:cover;width:100%}.status-refresh-portal.running svg:last-child{color:var(--blue)}.status-refresh-portal.done{border-color:rgba(52,211,153,.4)}.status-refresh-portal.done svg:last-child{color:var(--green)}.status-refresh-portal.error{border-color:rgba(251,113,133,.45)}.status-refresh-portal.error svg:last-child{color:var(--red)}.listing-card-grid{display:grid;grid-gap:16px;gap:16px;grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));padding:16px}.listing-card{--tone:#94a3b8;--tone-soft:rgba(148,163,184,0.16);align-items:stretch;background:radial-gradient(140% 120% at 0 0,var(--tone-soft),transparent 55%),rgba(18,21,26,.78);border:1px solid var(--line);border-radius:16px;display:grid;grid-gap:18px;gap:18px;grid-template-columns:minmax(190px,.85fr) minmax(0,1.15fr);overflow:hidden;padding:18px;position:relative;transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease}.listing-card:before{background:linear-gradient(180deg,var(--tone),transparent);content:"";inset:0 auto 0 0;position:absolute;width:4px}.listing-card:hover{border-color:color-mix(in srgb,var(--tone) 55%,transparent);box-shadow:0 18px 44px rgba(0,0,0,.34),0 0 0 1px color-mix(in srgb,var(--tone) 28%,transparent);transform:translateY(-2px)}.listing-card.ok{--tone:#34d399;--tone-soft:rgba(52,211,153,0.16)}.listing-card.good{--tone:#22d3ee;--tone-soft:rgba(34,211,238,0.16)}.listing-card.warning{--tone:#fbbf24;--tone-soft:rgba(251,191,36,0.16)}.listing-card.low{--tone:#fb7185;--tone-soft:rgba(251,113,133,0.16)}.listing-card.stale .listing-card-bars,.listing-card.stale .listing-card-side>:not(.listing-card-checked){opacity:.55;transition:opacity .3s ease}.listing-card-checked{color:var(--muted);font-size:11px;opacity:.85;text-align:center}.listing-card-side{flex-direction:column;gap:14px;justify-content:flex-start}.listing-card-portal,.listing-card-side{align-items:center;display:flex;min-width:0}.listing-card-portal{align-self:stretch;gap:12px}.listing-card-logo{border-color:var(--line-strong);flex-shrink:0;height:46px;width:46px}.listing-card-portal-copy{display:grid;grid-gap:3px;gap:3px;min-width:0}.listing-card-portal-copy strong{color:var(--text);font-size:16px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.listing-card-portal-copy small{color:var(--muted);font-size:12px;font-weight:700;opacity:.78}.listing-gauge{--tone:#94a3b8;position:relative;width:100%;max-width:200px}.listing-gauge.ok{--tone:#34d399}.listing-gauge.good{--tone:#22d3ee}.listing-gauge.warning{--tone:#fbbf24}.listing-gauge.low{--tone:#fb7185}.listing-gauge-svg{display:block;width:100%;overflow:visible}.listing-gauge-track{fill:none;stroke:rgba(255,255,255,.08);stroke-linecap:round;stroke-width:14}.listing-gauge-fill{fill:none;stroke:var(--tone);stroke-linecap:round;stroke-width:14;filter:drop-shadow(0 0 6px color-mix(in srgb,var(--tone) 60%,transparent));transition:stroke-dashoffset .2s linear}.listing-gauge-readout{align-items:center;bottom:2px;display:flex;flex-direction:column;gap:2px;left:0;position:absolute;right:0}.listing-gauge-readout strong{color:var(--text);font-size:30px;font-weight:800;letter-spacing:-.02em;line-height:1}.listing-gauge-readout span{color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.02em;opacity:.78;text-transform:uppercase}.listing-card-bars{display:flex;flex-direction:column;gap:10px;min-width:0}.listing-bar{--tone:#94a3b8;background:rgba(255,255,255,.03);border:1px solid var(--line);border-radius:11px;color:var(--text);cursor:pointer;display:grid;grid-gap:7px;gap:7px;min-width:0;padding:11px 13px;text-align:left;transition:background-color .18s ease,border-color .18s ease,transform .18s ease;width:100%}.listing-bar.ok{--tone:#34d399}.listing-bar.good{--tone:#22d3ee}.listing-bar.warning{--tone:#fbbf24}.listing-bar.low{--tone:#fb7185}.listing-bar:hover{background:rgba(255,255,255,.06);border-color:color-mix(in srgb,var(--tone) 50%,transparent);transform:translateX(2px)}.listing-bar.selected{background:color-mix(in srgb,var(--tone) 12%,transparent);border-color:color-mix(in srgb,var(--tone) 60%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--tone) 22%,transparent)}.listing-bar-head{align-items:baseline;display:flex;gap:10px;justify-content:space-between;min-width:0}.listing-bar-name{font-size:13px;font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.listing-bar-pct{color:var(--tone);flex-shrink:0;font-size:15px;font-weight:800;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.listing-bar-track{background:rgba(255,255,255,.08);border-radius:999px;display:block;height:8px;overflow:hidden;width:100%}.listing-bar-fill{background:linear-gradient(90deg,color-mix(in srgb,var(--tone) 55%,transparent),var(--tone));border-radius:999px;box-shadow:0 0 8px color-mix(in srgb,var(--tone) 55%,transparent);display:block;height:100%;transition:width .2s linear}.listing-bar-detail{color:var(--muted);font-size:11px;font-weight:600;opacity:.72;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.listing-bar.has-tier-accent{position:relative}.listing-bar.has-tier-accent:before{background:var(--tier-color);border-radius:999px;bottom:9px;content:"";left:0;position:absolute;top:9px;width:3px}.listing-bar-dot{background:var(--tier-color);border-radius:50%;box-shadow:0 0 0 2px color-mix(in srgb,var(--tier-color) 24%,transparent);display:inline-block;height:8px;margin-right:7px;vertical-align:middle;width:8px}@media (prefers-reduced-motion:reduce){.listing-bar,.listing-bar-fill,.listing-card,.listing-gauge-fill{transition:none}}.healthcheck-badge{align-items:center;border-radius:999px;display:inline-flex;font-size:12px;font-weight:800;grid-column:2;justify-content:center;min-height:28px;padding:6px 10px;white-space:nowrap}.healthcheck-badge.ok{background:rgba(34,197,94,.12);color:#86efac}.healthcheck-badge.warning{background:rgba(245,158,11,.14);color:#fcd34d}.healthcheck-badge.error{background:rgba(248,113,113,.14);color:#fecaca}.healthcheck-badge.unknown{background:rgba(148,163,184,.14);color:#cbd5e1}.portal-form,.rule-form{display:grid;grid-gap:16px;gap:16px}.portal-form{border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;padding:22px}.rule-form{padding:20px 22px 24px}.panel-mode-actions{display:flex;justify-content:flex-end;margin-bottom:-4px}.panel-heading{border-bottom:1px solid var(--line);min-height:58px}.panel-heading.inset{margin:-20px -22px 0;padding:20px 22px 18px}.panel-heading-actions{align-items:center;display:flex;gap:8px}.portal-editor-header{align-items:start;display:grid;grid-gap:18px;gap:18px;grid-template-columns:116px minmax(0,1fr)}.logo-uploader{display:grid;grid-gap:8px;gap:8px}.logo-preview{aspect-ratio:1;border-radius:8px;width:100%}.view-mode .logo-preview{background:transparent;border-color:transparent}.logo-uploader input[type=file]{display:none}.logo-upload-button{min-height:32px;padding:6px 8px;width:100%}.portal-title-fields{display:grid;grid-gap:12px;gap:12px}.field-label-with-help{align-items:center;display:inline-flex;gap:6px}.field-help-icon{align-items:center;color:var(--muted);display:inline-flex}.field-help-icon:hover{color:var(--text)}.portal-slug-view{max-width:100%}.view-field{color:var(--text);display:block;font-size:14px;font-weight:700;line-height:1.35;min-height:36px;padding:8px 0;width:100%}.view-field.multiline{min-height:44px;white-space:pre-wrap}.view-field.number{text-align:right}.source-view-readonly{align-items:center;display:flex;gap:7px;min-width:0}.source-view-readonly>span:not(.code-token){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-title-fields label{font-weight:600}.portal-title-fields .view-field{font-weight:500}.portal-title-fields label:first-child .view-field{font-size:18px;font-weight:700;line-height:1.25}.portal-title-fields .view-field.multiline{color:var(--muted);font-weight:400}.portal-summary-grid{display:grid;grid-gap:12px 8px;gap:12px 8px;grid-template-columns:repeat(auto-fit,minmax(108px,1fr))}.portal-metric{align-content:start;display:grid;grid-gap:3px;gap:3px;min-width:0;padding:2px}.portal-metric strong{color:var(--text);display:block;font-size:18px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;font-weight:700;line-height:1}.portal-metric span{color:#aab5c2;display:block;font-size:11px;font-weight:500}.portal-metric.positive strong{color:#86efac}.portal-metric.muted strong{color:var(--muted)}.summary-status{align-content:start;background:var(--surface-muted);border:1px solid var(--line);border-radius:6px;min-height:54px;padding:9px 10px}.summary-status span,.summary-status strong{display:block}.summary-status span{color:var(--muted);font-size:12px;font-weight:700}.summary-status strong{color:var(--text);font-size:18px}.view-mode .summary-status{background:rgba(255,255,255,.035)}.portal-detail-divider{background:linear-gradient(90deg,transparent,var(--line) 12%,var(--line) 88%,transparent);border:0;height:1px;margin:2px 0}.portal-section-heading{align-items:baseline;color:var(--muted);display:flex;font-size:12px;font-weight:800;justify-content:space-between;letter-spacing:.05em;text-transform:uppercase}.portal-section-heading strong{color:var(--text);font-size:15px;font-weight:800;letter-spacing:0}.portal-final-listing-button{align-items:center;background:linear-gradient(135deg,rgba(34,211,238,.2),rgba(52,211,153,.12)),rgba(15,23,42,.86);border:1px solid rgba(34,211,238,.34);border-radius:8px;color:var(--text);display:grid;grid-gap:12px;gap:12px;grid-template-columns:42px minmax(0,1fr) 22px;min-height:68px;padding:12px;text-align:left;width:100%}.portal-final-listing-button:focus-visible,.portal-final-listing-button:hover:not(:disabled){border-color:rgba(52,211,153,.5);box-shadow:0 16px 34px rgba(2,132,199,.16);transform:translateY(-1px)}.portal-final-listing-button small,.portal-final-listing-button strong{display:block}.portal-final-listing-button strong{font-size:14px;font-weight:800}.portal-final-listing-button small{color:rgba(226,232,240,.72);font-size:12px;font-weight:600;margin-top:2px}.portal-final-listing-icon{align-items:center;background:rgba(34,211,238,.14);border:1px solid rgba(34,211,238,.28);border-radius:8px;color:#67e8f9;display:inline-flex;height:42px;justify-content:center;width:42px}.toggle-field{align-items:center;background:rgba(25,28,34,.92);border:1px solid var(--line);border-radius:8px;color:var(--text);cursor:pointer;display:grid;grid-gap:10px;gap:10px;grid-template-columns:46px minmax(0,1fr);min-height:54px;padding:8px 10px}.toggle-field input{height:1px;opacity:0;position:absolute;width:1px}.toggle-switch{background:var(--line-strong);border-radius:999px;display:inline-flex;height:26px;padding:3px;position:relative;transition:background .18s ease;width:46px}.toggle-switch:after{background:#fff;border-radius:999px;box-shadow:0 1px 4px rgba(0,0,0,.35);content:"";height:20px;transition:transform .18s ease;width:20px}.toggle-field input:checked+.toggle-switch{background:var(--green)}.toggle-field input:checked+.toggle-switch:after{transform:translateX(20px)}.toggle-field input:focus-visible+.toggle-switch{outline:3px solid rgba(34,211,238,.22);outline-offset:2px}.toggle-field small,.toggle-field strong{display:block}.toggle-field strong{font-size:12px}.toggle-field small{color:var(--muted);font-size:12px;font-weight:600}.quota-editor{display:grid;grid-gap:8px;gap:8px}.quota-list,.quota-row{display:grid;grid-gap:6px;gap:6px}.quota-row{align-items:center;grid-template-columns:minmax(0,1fr) 76px 74px 32px}.quota-row.view-row{grid-template-columns:minmax(0,1fr) 88px 64px}.quota-row input{min-height:34px;padding:7px 8px}.quota-tier-field{align-items:center;display:grid;grid-gap:4px;gap:4px;grid-template-columns:minmax(0,1fr) 16px}.quota-tier-help{justify-content:center}.quota-empty{background:var(--surface-muted);border:1px dashed var(--line);border-radius:6px;color:var(--muted);font-size:12px;padding:10px;text-align:center}.form-actions{flex-wrap:wrap}.form-actions.end{justify-content:flex-end}.rule-details-grid{align-items:start;display:grid;grid-gap:14px;gap:14px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.rule-details-grid label{min-width:0}.view-code-row{align-items:center;display:inline-flex;gap:8px;max-width:100%;min-width:0;min-height:36px;padding:6px 0;width:100%}.view-code-row .code-token{max-width:100%}.toggle-grid{align-items:start;display:grid;grid-gap:12px;gap:12px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.ad-limit-panel{background:rgba(148,163,184,.1);padding:12px}.ad-limit-panel,.rule-healthcheck-card{border:1px solid var(--line);border-radius:8px}.rule-healthcheck-card{background:rgba(255,255,255,.035);display:grid;grid-gap:12px;gap:12px;padding:14px}.rule-healthcheck-heading{align-items:center;display:flex;gap:12px;justify-content:space-between}.rule-healthcheck-heading h3{color:var(--text);font-size:14px;margin:0}.rule-healthcheck-heading span{color:var(--muted);display:block;font-size:12px;font-weight:700;margin-top:2px}.healthcheck-grid{display:grid;grid-gap:8px;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.healthcheck-grid>div{background:var(--surface-muted);border:1px solid var(--line);border-radius:6px;min-width:0;padding:9px 10px}.healthcheck-grid>div.error,.healthcheck-grid>div.ok,.healthcheck-grid>div.unknown,.healthcheck-grid>div.warning{border-left-width:3px}.healthcheck-grid>div.ok{border-left-color:#22c55e}.healthcheck-grid>div.warning{border-left-color:#f59e0b}.healthcheck-grid>div.error{border-left-color:#f87171}.healthcheck-grid>div.unknown{border-left-color:#94a3b8}.healthcheck-grid span,.healthcheck-grid strong{display:block}.healthcheck-grid span{color:var(--muted);font-size:11px;font-weight:800}.healthcheck-grid strong{color:var(--text);font-size:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.healthcheck-message{border-radius:6px;color:var(--muted);font-size:12px;font-weight:700;padding:9px 10px}.healthcheck-message.ok{background:rgba(34,197,94,.1);color:#86efac}.healthcheck-message.error{background:rgba(248,113,113,.12);color:#fecaca}.status-side-panel{align-content:start;display:grid;grid-gap:14px;gap:14px;grid-auto-rows:max-content;padding:20px 22px 24px}.status-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.status-summary-grid>div{border-left:3px solid rgba(148,163,184,.45);min-height:84px}.status-summary-grid>div.ok{border-left-color:#22c55e}.status-summary-grid>div.warning{border-left-color:#f59e0b}.status-summary-grid>div.error{border-left-color:#f87171}.status-summary-grid>div.unknown{border-left-color:#94a3b8}.status-detail-card,.status-query-card{background:rgba(255,255,255,.035);border:1px solid var(--line);border-radius:8px;display:grid;grid-gap:12px;gap:12px;min-width:0;padding:14px}.status-detail-title{align-items:center;display:flex;gap:10px;justify-content:space-between;min-width:0}.status-detail-title .healthcheck-badge{grid-column:auto}.status-detail-title>span:last-child{color:var(--muted);font-size:12px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-detail-title>.code-token:last-child{color:#e2e8f0;flex:1 1 auto;justify-content:flex-start;max-width:min(100%,260px)}.status-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.status-detail-grid strong{font-size:16px}.status-query-heading{display:grid;grid-gap:4px;gap:4px;min-width:0}.status-query-heading span,.status-query-heading strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-query-heading .code-token{justify-self:start;max-width:100%}.status-query-heading span{color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase}.status-query-heading strong{color:var(--text);font-size:13px}.status-query-title-row{align-items:center;display:flex;gap:12px;justify-content:space-between;min-width:0}.status-query-card pre{background:#0d1117;border:1px solid var(--line);border-radius:6px;color:#cbd5e1;font-size:11px;line-height:1.55;margin:0;max-height:280px;min-width:0;overflow:auto;padding:12px;white-space:pre}.automation-detail-card{align-content:start}.automation-status-toggle{background:var(--surface-muted)}.portal-rules-section{border:0;border-radius:0;box-shadow:none;margin-top:auto;min-height:120px;padding:20px 22px}.rule-editor-heading-copy{align-items:center;display:flex;gap:12px;min-width:0}.rule-editor-heading-copy>span:last-child{display:grid;grid-gap:3px;gap:3px;min-width:0}.rule-editor-logo{background:rgba(255,255,255,.055);border-color:var(--line-strong);height:46px;width:46px}.rule-editor-stage{display:grid;grid-gap:16px;gap:16px;min-width:0}.rule-editor-panel{display:grid;grid-gap:14px;gap:14px;min-width:0}.rule-editor-panel-title{align-items:center;display:flex;gap:12px}.rule-editor-panel-title span{color:var(--text);font-size:18px;font-weight:700}.rule-edit-fullscreen{--rule-accent:#3d444d;--rule-card-bg:#15171c;--rule-card-bg-raised:#191c22;--rule-card-border:rgba(255,255,255,0.12);--rule-field-bg:rgba(255,255,255,0.045);--rule-field-border:rgba(255,255,255,0.1);background:linear-gradient(180deg,#121317,#0d0e10);border:1px solid rgba(255,255,255,.12);border-radius:18px;box-shadow:0 24px 80px rgba(0,0,0,.34);display:grid;grid-gap:22px 28px;gap:22px 28px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(390px,.96fr);grid-template-rows:auto auto auto minmax(0,1fr);margin:18px;min-height:calc(100vh - 36px);overflow:visible;padding:18px 22px 22px}.rule-edit-fullscreen .rule-editor-heading{border-bottom:0;grid-column:1/-1;grid-row:1;margin:0;min-height:48px;padding:0 6px}.rule-edit-fullscreen .rule-editor-heading h2{color:#d8d8dc;font-size:22px;font-weight:700}.rule-edit-fullscreen .rule-editor-heading-copy>span:last-child>span{color:#9da3aa;font-size:13px}.rule-edit-fullscreen .rule-editor-logo{border:1px solid rgba(255,255,255,.14);box-shadow:0 10px 28px rgba(0,0,0,.24);height:44px;width:44px}.rule-config-band,.rule-config-card{display:grid;grid-gap:14px;gap:14px}.rule-config-card{min-width:0}.rule-config-card-heading{display:none}.rule-edit-fullscreen .rule-config-band{align-items:stretch;display:grid;grid-column:1/3;grid-row:2;grid-gap:18px;gap:18px;grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);padding:0}.rule-edit-fullscreen .rule-config-card{align-content:start;background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018)),var(--rule-card-bg);border:1px solid var(--rule-card-border);border-radius:14px;box-shadow:0 16px 42px rgba(0,0,0,.18);min-height:0;padding:14px 16px}.rule-edit-fullscreen .rule-config-toggle-card{border-left:3px solid rgba(53,189,147,.55)}.rule-edit-fullscreen .rule-config-card-heading{align-items:baseline;display:flex;gap:12px;justify-content:space-between;min-width:0}.rule-edit-fullscreen .rule-config-card-heading span{color:#d8d8dc;font-size:14px;font-weight:700}.rule-edit-fullscreen .rule-config-card-heading small{color:rgba(244,247,248,.5);font-size:12px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rule-edit-fullscreen .rule-config-main-card .rule-details-grid{gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}.rule-edit-fullscreen .rule-config-main-card .rule-details-grid label:nth-child(3){grid-column:1/span 2;grid-row:2}.rule-edit-fullscreen .rule-config-main-card .rule-details-grid label:nth-child(4){grid-column:3;grid-row:1}.rule-edit-fullscreen .rule-config-main-card .rule-details-grid label:nth-child(5){grid-column:3;grid-row:2}.rule-edit-fullscreen .rule-config-card label{gap:5px}.rule-edit-fullscreen .rule-config-card input,.rule-edit-fullscreen .rule-config-card select,.rule-edit-fullscreen .rule-config-card textarea{background:var(--rule-field-bg);border-color:var(--rule-field-border);border-radius:8px;color:#f4f7f8;min-height:36px;padding:7px 10px}.rule-edit-fullscreen .rule-config-card textarea{min-height:36px}.rule-edit-fullscreen .rule-config-card input:hover,.rule-edit-fullscreen .rule-config-card select:hover,.rule-edit-fullscreen .rule-config-card textarea:hover{background:rgba(255,255,255,.065);border-color:rgba(255,255,255,.18)}.rule-edit-fullscreen .rule-config-card input:focus,.rule-edit-fullscreen .rule-config-card select:focus,.rule-edit-fullscreen .rule-config-card textarea:focus{background:rgba(255,255,255,.07);border-color:rgba(53,189,147,.42);box-shadow:0 0 0 3px rgba(53,189,147,.12)}.rule-edit-fullscreen .rule-config-toggle-card .toggle-grid{gap:8px}.rule-edit-fullscreen .rule-config-toggle-card .ad-limit-panel,.rule-edit-fullscreen .rule-config-toggle-card .summary-status,.rule-edit-fullscreen .rule-config-toggle-card .toggle-field{background:rgba(255,255,255,.032);border-color:rgba(255,255,255,.08);border-radius:10px;min-height:42px;padding:8px 10px}.rule-edit-fullscreen .rule-config-toggle-card .toggle-field{grid-template-columns:54px minmax(0,1fr)}.rule-edit-fullscreen .rule-config-toggle-card .toggle-field:hover{background:rgba(255,255,255,.06);border-color:rgba(53,189,147,.32)}.rule-edit-fullscreen .rule-config-toggle-card .toggle-switch{background:#5b636c;border:1px solid #9ca3af;height:24px;padding:2px;width:46px}.rule-edit-fullscreen .rule-config-toggle-card .toggle-switch:after{height:18px;width:18px}.rule-edit-fullscreen .rule-config-toggle-card .toggle-field input:checked+.toggle-switch{background:#35bd93;border-color:#6ee7b7}.rule-edit-fullscreen .rule-config-toggle-card .toggle-field input:checked+.toggle-switch:after{transform:translateX(22px)}.rule-editor-section-divider{align-self:center;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);height:1px;min-width:0}.rule-edit-fullscreen .rule-editor-left-divider{grid-column:1/3;grid-row:3}.rule-edit-fullscreen .rule-editor-summary-divider{background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--rule-accent) 32%,rgba(255,255,255,.16)),transparent);margin:2px 0}.rule-edit-fullscreen .rule-editor-stage{display:contents}.rule-edit-fullscreen .rule-editor-panel{--rule-accent:#58aefe;align-content:start;background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018)),var(--rule-card-bg);border:1px solid var(--rule-card-border);border-top:3px solid var(--rule-accent);border-radius:16px;box-shadow:0 18px 48px rgba(0,0,0,.2);gap:16px;min-height:0;overflow:visible;padding:18px;scrollbar-color:var(--rule-accent) #101011}.rule-edit-fullscreen .rule-editor-filters-panel{grid-column:1;grid-row:4}.rule-edit-fullscreen .rule-editor-priorities-panel{grid-column:2;grid-row:4}.rule-edit-fullscreen .rule-editor-summary-panel{align-self:stretch;grid-column:3;grid-row:2/5}.rule-edit-fullscreen .rule-editor-filters-panel{--rule-accent:#58aefe;--rule-accent-soft:rgba(88,174,254,0.14)}.rule-edit-fullscreen .rule-editor-priorities-panel{--rule-accent:#ff7b86;--rule-accent-soft:rgba(255,123,134,0.14)}.rule-edit-fullscreen .rule-editor-summary-panel{--rule-accent:#8d6af6;--rule-accent-soft:rgba(141,106,246,0.14)}.rule-edit-fullscreen .rule-editor-panel-title{background:color-mix(in srgb,var(--rule-accent) 9%,transparent);border:1px solid color-mix(in srgb,var(--rule-accent) 18%,transparent);border-radius:12px;min-height:34px;padding:8px 10px}.rule-edit-fullscreen .rule-editor-panel-title .material-symbols-outlined,.rule-edit-fullscreen .rule-editor-panel-title svg{color:var(--rule-accent)}.rule-edit-fullscreen .rule-editor-panel-title span{color:var(--rule-accent);font-size:18px;font-weight:700}.rule-edit-fullscreen .rule-editor-filters-panel .rule-editor-panel-title svg{color:#f4f7f8}.rule-edit-fullscreen .toggle-grid{gap:12px;grid-template-columns:1fr}.rule-edit-fullscreen .ad-limit-panel label,.rule-edit-fullscreen .rule-details-grid label{color:rgba(244,247,248,.74)}.rule-edit-fullscreen .ad-limit-panel,.rule-edit-fullscreen .summary-status,.rule-edit-fullscreen .toggle-field,.rule-edit-fullscreen input,.rule-edit-fullscreen select,.rule-edit-fullscreen textarea{background:var(--rule-field-bg);border-color:var(--rule-field-border);border-radius:10px}.rule-edit-fullscreen input,.rule-edit-fullscreen select,.rule-edit-fullscreen textarea{min-height:42px}.rule-edit-fullscreen textarea{min-height:58px}.rule-edit-fullscreen .filter-editor-card,.rule-edit-fullscreen .preview-rows-card,.rule-edit-fullscreen .rule-summary-card{background:transparent;border:0;box-shadow:none;padding:0}.rule-edit-fullscreen .filter-builder-toolbar{justify-content:flex-end}.rule-edit-fullscreen .filter-editor-heading h3{color:#f4f7f8;font-size:16px;font-weight:750}.rule-edit-fullscreen .filter-editor-heading span{color:rgba(244,247,248,.68)}.rule-edit-fullscreen .condition-row,.rule-edit-fullscreen .group-preview,.rule-edit-fullscreen .nested-filter-shell,.rule-edit-fullscreen .priority-row{background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018)),var(--rule-card-bg-raised);border-color:var(--rule-card-border);border-radius:12px;box-shadow:0 10px 26px rgba(0,0,0,.14);min-height:58px}.rule-edit-fullscreen .condition-row{grid-template-columns:1fr}.rule-edit-fullscreen .priority-row{grid-template-columns:36px minmax(0,1fr)}.rule-edit-fullscreen .priority-group-row{grid-template-columns:36px 38px minmax(0,1fr)}.rule-edit-fullscreen .priority-row:not(.priority-view-row):not(.priority-group-row){grid-template-columns:36px minmax(0,1fr)}.rule-edit-fullscreen .priority-direction,.rule-edit-fullscreen .priority-row>select{grid-column:2}.rule-edit-fullscreen .column-picker-trigger,.rule-edit-fullscreen .readonly-cell{background:var(--rule-field-bg);border-color:var(--rule-field-border);border-radius:10px}.rule-edit-fullscreen .condition-row input,.rule-edit-fullscreen .condition-row select,.rule-edit-fullscreen .condition-row textarea,.rule-edit-fullscreen .nested-filter-shell input,.rule-edit-fullscreen .priority-row select{background:var(--rule-field-bg);border-color:var(--rule-field-border);border-radius:10px;min-height:42px}.rule-edit-fullscreen .column-picker-trigger:hover,.rule-edit-fullscreen .condition-row input:hover,.rule-edit-fullscreen .condition-row select:hover,.rule-edit-fullscreen .condition-row textarea:hover,.rule-edit-fullscreen .nested-filter-shell input:hover,.rule-edit-fullscreen .priority-row select:hover{background:rgba(255,255,255,.065);border-color:rgba(255,255,255,.18)}.rule-edit-fullscreen .column-picker-trigger:focus-visible,.rule-edit-fullscreen .column-picker.open .column-picker-trigger,.rule-edit-fullscreen .condition-row input:focus,.rule-edit-fullscreen .condition-row select:focus,.rule-edit-fullscreen .condition-row textarea:focus,.rule-edit-fullscreen .nested-filter-shell input:focus,.rule-edit-fullscreen .priority-row select:focus{background:rgba(255,255,255,.07);border-color:color-mix(in srgb,var(--rule-accent) 62%,transparent);box-shadow:0 0 0 3px color-mix(in srgb,var(--rule-accent) 18%,transparent)}.rule-edit-fullscreen .relation-separator:after,.rule-edit-fullscreen .relation-separator:before{background:var(--rule-accent);opacity:.32}.rule-edit-fullscreen .relation-separator span,.rule-edit-fullscreen .segmented{background:#101011;border-color:rgba(255,255,255,.08)}.rule-edit-fullscreen .segmented button.selected{background:var(--rule-accent-soft);color:var(--rule-accent)}.rule-edit-fullscreen .preview-strip{background:linear-gradient(180deg,rgba(251,191,36,.13),rgba(251,191,36,.055)),var(--rule-card-bg-raised);border:1px solid rgba(251,191,36,.24);border-left:3px solid #d57a00;border-radius:12px;display:grid;grid-gap:12px;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 12px}.rule-edit-fullscreen .preview-strip>button{grid-column:1/-1;justify-self:start}.rule-edit-fullscreen .preview-strip div{min-width:0}.rule-edit-fullscreen .preview-strip span{color:#d57a00;font-size:14px;font-weight:700}.rule-edit-fullscreen .preview-strip strong{color:#f4f7f8;font-size:18px}.rule-edit-fullscreen .preview-rows-card,.rule-edit-fullscreen .preview-rows-table-wrap,.rule-edit-fullscreen .rule-summary-total,.rule-edit-fullscreen .summary-metric-card{background:var(--rule-card-bg-raised);border:1px solid var(--rule-card-border);border-radius:12px;box-shadow:0 10px 26px rgba(0,0,0,.14)}.rule-edit-fullscreen .query-preview pre{max-height:none}.rule-edit-fullscreen .preview-rows-table-wrap{max-height:min(440px,48vh);overflow-x:auto;overflow-y:auto}.rule-edit-fullscreen .rule-summary-grid{column-width:190px}.rule-edit-fullscreen>.form-actions.end{display:none}.portal-edit-fullscreen{--rule-accent:#35bd93;--rule-card-bg:#15171c;--rule-card-bg-raised:#191c22;--rule-card-border:rgba(255,255,255,0.12);--rule-field-bg:rgba(255,255,255,0.045);--rule-field-border:rgba(255,255,255,0.1);background:linear-gradient(180deg,#121317,#0d0e10);border:1px solid rgba(255,255,255,.12);border-radius:18px;box-shadow:0 24px 80px rgba(0,0,0,.34);display:grid;grid-gap:22px;gap:22px;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr);margin:18px auto;max-width:1120px;min-height:calc(100vh - 36px);overflow:visible;padding:18px 22px 22px;width:min(1120px,calc(100% - 36px))}.portal-edit-fullscreen .portal-editor-heading{border-bottom:0;margin:0;min-height:48px;padding:0 6px}.portal-edit-fullscreen .portal-editor-heading h2{color:#d8d8dc;font-size:22px;font-weight:700}.portal-edit-fullscreen .rule-editor-heading-copy>span:last-child>span{color:#9da3aa;font-size:13px}.portal-edit-fullscreen .rule-editor-logo{background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.14);box-shadow:0 10px 28px rgba(0,0,0,.24);height:44px;width:44px}.portal-config-band{display:grid;grid-gap:14px;gap:14px}.portal-edit-fullscreen .portal-config-band{align-items:stretch;gap:18px;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr)}.portal-edit-fullscreen .portal-config-main-card,.portal-edit-fullscreen .portal-config-toggle-card,.portal-edit-fullscreen .portal-editor-quota-panel{background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018)),var(--rule-card-bg);border:1px solid var(--rule-card-border);border-radius:14px;box-shadow:0 16px 42px rgba(0,0,0,.18);min-height:0}.portal-edit-fullscreen .portal-config-main-card,.portal-edit-fullscreen .portal-config-toggle-card{align-content:start;padding:14px 16px}.portal-edit-fullscreen .portal-config-toggle-card{border-left:3px solid rgba(53,189,147,.55)}.portal-identity-grid{align-items:start;display:grid;grid-gap:12px;gap:12px;grid-template-columns:116px minmax(0,1fr) minmax(0,1fr)}.portal-identity-grid .portal-logo-uploader{grid-row:1/span 2}.portal-description-field{grid-column:2/-1}.portal-edit-fullscreen .portal-logo-preview{background:rgba(53,189,147,.1);border-color:rgba(53,189,147,.24);box-shadow:0 14px 34px rgba(0,0,0,.2)}.portal-edit-fullscreen .portal-ad-type-row label,.portal-edit-fullscreen .rule-config-card label{color:rgba(244,247,248,.74);gap:5px}.portal-edit-fullscreen .portal-ad-type-row input,.portal-edit-fullscreen .portal-ad-type-row select,.portal-edit-fullscreen .portal-ad-type-row textarea,.portal-edit-fullscreen .rule-config-card input,.portal-edit-fullscreen .rule-config-card select,.portal-edit-fullscreen .rule-config-card textarea{background:var(--rule-field-bg);border-color:var(--rule-field-border);border-radius:8px;color:#f4f7f8;min-height:36px;padding:7px 10px}.portal-edit-fullscreen .rule-config-card textarea{min-height:58px}.portal-edit-fullscreen .portal-ad-type-row input:hover,.portal-edit-fullscreen .portal-ad-type-row select:hover,.portal-edit-fullscreen .portal-ad-type-row textarea:hover,.portal-edit-fullscreen .rule-config-card input:hover,.portal-edit-fullscreen .rule-config-card select:hover,.portal-edit-fullscreen .rule-config-card textarea:hover{background:rgba(255,255,255,.065);border-color:rgba(255,255,255,.18)}.portal-edit-fullscreen .portal-ad-type-row input:focus,.portal-edit-fullscreen .portal-ad-type-row select:focus,.portal-edit-fullscreen .portal-ad-type-row textarea:focus,.portal-edit-fullscreen .rule-config-card input:focus,.portal-edit-fullscreen .rule-config-card select:focus,.portal-edit-fullscreen .rule-config-card textarea:focus{background:rgba(255,255,255,.07);border-color:rgba(53,189,147,.42);box-shadow:0 0 0 3px rgba(53,189,147,.12)}.portal-metrics-grid{align-items:stretch;display:grid;grid-gap:10px;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.portal-edit-fullscreen .portal-metrics-grid .summary-status,.portal-edit-fullscreen .portal-refresh-time-field,.portal-edit-fullscreen .portal-status-toggle{background:rgba(255,255,255,.032);border-color:rgba(255,255,255,.08);border-radius:10px;min-height:58px;padding:9px 10px}.portal-edit-fullscreen .portal-metrics-grid .summary-status strong{color:#f4f7f8;font-size:22px}.portal-edit-fullscreen .portal-status-toggle{grid-column:1/-1;grid-template-columns:54px minmax(0,1fr)}.portal-edit-fullscreen .portal-status-toggle:hover{background:rgba(255,255,255,.06);border-color:rgba(53,189,147,.32)}.portal-edit-fullscreen .portal-status-toggle .toggle-switch{background:#5b636c;border:1px solid #9ca3af;height:24px;padding:2px;width:46px}.portal-edit-fullscreen .portal-status-toggle .toggle-switch:after{height:18px;width:18px}.portal-edit-fullscreen .portal-status-toggle input:checked+.toggle-switch{background:#35bd93;border-color:#6ee7b7}.portal-edit-fullscreen .portal-status-toggle input:checked+.toggle-switch:after{transform:translateX(22px)}.portal-edit-fullscreen .portal-refresh-time-field{display:grid;grid-gap:7px;gap:7px;grid-column:1/-1}.portal-edit-fullscreen .portal-refresh-time-field span{color:#9ca3af;font-size:11px;font-weight:800;text-transform:uppercase}.portal-edit-fullscreen .portal-refresh-time-field input{background:rgba(7,10,12,.56);border:1px solid rgba(255,255,255,.12);border-radius:8px;color:#f4f7f8;font-size:18px;font-weight:800;min-height:40px;padding:8px 10px}.portal-edit-fullscreen .portal-refresh-time-field input:focus,.portal-edit-fullscreen .portal-refresh-time-field input:hover{border-color:rgba(53,189,147,.55);outline:none}.portal-edit-fullscreen .portal-editor-divider{background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent)}.portal-edit-fullscreen .portal-editor-quota-panel{--rule-accent:#58aefe;--rule-accent-soft:rgba(88,174,254,0.14);align-content:start;border-radius:16px;border-top:3px solid var(--rule-accent);display:grid;grid-gap:16px;gap:16px;overflow:visible;padding:18px}.portal-edit-fullscreen .rule-editor-panel-title{background:color-mix(in srgb,var(--rule-accent) 9%,transparent);border:1px solid color-mix(in srgb,var(--rule-accent) 18%,transparent);border-radius:12px;min-height:34px;padding:8px 10px}.portal-edit-fullscreen .rule-editor-panel-title .material-symbols-outlined{color:var(--rule-accent)}.portal-edit-fullscreen .rule-editor-panel-title span{color:var(--rule-accent);font-size:18px;font-weight:700}.portal-edit-fullscreen .portal-ad-types-card{background:transparent;border:0;box-shadow:none;padding:0}.portal-edit-fullscreen .portal-ad-types-heading h3{color:#f4f7f8;font-size:16px;font-weight:750}.portal-edit-fullscreen .portal-ad-types-heading span{color:rgba(244,247,248,.68)}.portal-ad-type-list,.portal-ad-type-row{display:grid;grid-gap:10px;gap:10px;min-width:0}.portal-ad-type-row{align-items:end;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018)),var(--rule-card-bg-raised);border:1px solid var(--rule-card-border);border-radius:12px;box-shadow:0 10px 26px rgba(0,0,0,.14);grid-template-columns:minmax(240px,1fr) minmax(130px,.34fr) minmax(104px,.22fr) 42px;min-height:72px;padding:10px}.portal-ad-type-row .portal-ad-type-remove{height:36px;padding:7px;width:36px}.portal-empty-state{background:rgba(255,255,255,.032);border-color:rgba(255,255,255,.1);border-radius:12px;padding:18px}.filter-editor-card,.preview-rows-card{background:rgba(25,28,34,.92);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);display:grid;grid-gap:14px;gap:14px;padding:16px}.filter-editor-card:hover{border-color:rgba(34,211,238,.24)}.filter-editor-heading{align-items:center;display:flex;gap:10px;justify-content:space-between}.filter-editor-heading h3{font-size:14px}.filter-editor-heading span{color:var(--muted);font-size:12px;font-weight:400}.filter-card-divider{background:var(--line);height:1px;margin:0 -2px}.priority-heading{margin-top:2px}.priority-heading-meta{align-items:center;display:flex;flex-wrap:wrap;gap:7px}.inherited-priority-badge{background:rgba(148,163,184,.1);border:1px solid rgba(148,163,184,.2);border-radius:999px;color:#cbd5e1;max-width:min(320px,100%);overflow:hidden;padding:3px 7px;text-overflow:ellipsis;white-space:nowrap}.priority-heading-icon{color:var(--muted)}.query-toggle.selected{background:rgba(34,211,238,.11);border-color:rgba(34,211,238,.3);color:#67e8f9}.query-preview{background:#11151b;border:1px solid var(--line);border-radius:8px;display:grid;grid-gap:8px;gap:8px;overflow:hidden;padding:10px}.query-preview-heading{align-items:center;color:var(--muted);display:flex;font-size:12px;font-weight:800;justify-content:space-between}.query-preview-heading>span{align-items:center;display:inline-flex;gap:6px;min-width:0}.list-filter-preview .code-token,.query-preview-heading .code-token{max-width:100%}.query-preview pre{margin:0;max-height:320px;overflow:auto}.query-preview code,code{background:#11151b;color:#dbeafe;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:12px;line-height:1.5}.filter-builder,.nested-filter-group,.publication-priority-editor{display:grid;grid-gap:10px;gap:10px;min-width:0}.condition-remove-dock,.empty-filter-actions,.filter-builder-toolbar,.group-preview-actions,.nested-filter-actions,.priority-actions,.priority-add-actions{align-items:center;display:flex;flex-wrap:wrap;gap:8px}.condition-remove-dock,.group-preview-actions,.nested-filter-actions,.priority-actions{justify-content:center}.conditions-list{display:grid;grid-gap:8px;gap:8px}.conditions-list.modern{gap:10px}.relation-separator{align-items:center;color:var(--muted);display:flex;font-size:11px;font-weight:900;gap:8px;justify-content:center;text-transform:uppercase}.relation-separator:after,.relation-separator:before{background:var(--line);content:"";flex:1 1;height:1px}.relation-separator span{background:var(--surface-muted);border:1px solid var(--line);border-radius:999px;padding:3px 8px}.condition-item{display:grid;grid-gap:0;gap:0;min-width:0}.condition-row{align-items:start;background:var(--surface);border:1px solid var(--line);border-radius:8px;display:grid;grid-gap:8px;gap:8px;grid-template-columns:minmax(180px,1.35fr) minmax(132px,.75fr) minmax(140px,1fr) minmax(120px,.8fr);padding:8px}.condition-view-row{grid-template-columns:repeat(3,minmax(0,1fr))}.condition-view-row span{display:grid;grid-gap:2px;gap:2px;min-width:0}.condition-view-row small,.condition-view-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.condition-view-row small{color:var(--muted);font-size:11px}.filter-modal .condition-row,.portal-editor-panel .condition-row{grid-template-columns:minmax(160px,1.2fr) minmax(132px,.8fr) minmax(130px,1fr) minmax(120px,.9fr)}.portal-editor-panel .condition-view-row{grid-template-columns:repeat(3,minmax(0,1fr))}.readonly-cell{align-items:center;background:var(--surface-muted);border:1px solid var(--line);border-radius:6px;color:var(--muted);display:flex;min-height:36px;padding:8px 10px}.condition-option-check{align-items:center;display:flex;gap:7px;grid-column:1/-1}.condition-option-check input{height:16px;min-height:0;width:16px}.list-filter-input{display:grid;grid-gap:4px;gap:4px}.list-filter-input small{color:var(--muted);font-size:11px}.list-filter-preview{display:flex;flex-wrap:wrap;gap:6px;grid-column:1/-1}.list-filter-chip{border-radius:999px;font-size:11px;font-weight:800;min-height:24px;padding:4px 8px}.row-action-button{margin-block:3px;min-height:32px;padding:7px 10px}.add-filter-button{background:rgba(52,211,153,.12);border-color:rgba(52,211,153,.32);color:#86efac}.add-filter-button:hover{background:rgba(52,211,153,.18);border-color:rgba(52,211,153,.46)}.add-priority-button{background:rgba(34,211,238,.11);border-color:rgba(34,211,238,.3);color:#67e8f9}.add-priority-button:hover{background:rgba(34,211,238,.16);border-color:rgba(34,211,238,.46)}.add-group-button{background:rgba(167,139,250,.1);border-color:rgba(167,139,250,.28);color:#c4b5fd}.add-group-button:hover{background:rgba(167,139,250,.16);border-color:rgba(167,139,250,.44)}.duplicate-filter-button{background:rgba(148,163,184,.1);border-color:rgba(148,163,184,.28);color:#cbd5e1}.duplicate-filter-button:hover{background:rgba(148,163,184,.16);border-color:rgba(148,163,184,.44)}.filter-remove-button{align-items:center;border:1px solid rgba(251,113,133,.28);border-radius:6px;display:inline-flex;gap:6px;justify-content:center;margin-block:3px;min-height:32px;padding:7px 10px}.group-remove-button,.inline-remove-button{width:30px}.group-preview,.nested-filter-shell,.priority-row{background:var(--surface);border:1px solid var(--line);border-radius:8px;color:var(--text)}.group-preview,.nested-filter-shell,.priority-group-row{--group-tone:#a78bfa;--group-tone-soft:rgba(167,139,250,0.08);background:linear-gradient(135deg,var(--group-tone-soft),rgba(255,255,255,.02) 58%),var(--surface);border-color:rgba(167,139,250,.2);box-shadow:inset 3px 0 0 rgba(167,139,250,.46)}.group-preview:hover,.nested-filter-shell:hover,.priority-group-row:hover{border-color:rgba(167,139,250,.34);box-shadow:inset 3px 0 0 rgba(167,139,250,.62),0 10px 24px rgba(0,0,0,.16)}.group-preview{align-items:center;display:grid;grid-column-gap:10px;column-gap:10px;grid-template-columns:38px minmax(0,1fr);min-height:58px;padding:8px;grid-row-gap:0;row-gap:0}.group-preview.with-inline-action{grid-template-columns:38px minmax(0,1fr) max-content}.group-preview-copy,.nested-filter-heading-copy,.priority-group-copy{min-width:0}.group-preview-copy small,.group-preview-copy strong,.nested-filter-heading-copy small,.nested-filter-heading-copy strong,.priority-group-copy small,.priority-group-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.group-preview-copy small,.nested-filter-heading-copy small,.priority-group-copy small{color:rgba(226,232,240,.6);font-size:12px;font-weight:400}.group-preview-icon{border-radius:8px;height:38px;width:38px}.group-preview .group-preview-icon,.priority-group-row .group-preview-icon{background:rgba(167,139,250,.12);border-color:rgba(167,139,250,.3);color:#c4b5fd}.nested-filter-heading-copy>.material-symbols-outlined{background:rgba(167,139,250,.12);border:1px solid rgba(167,139,250,.3);border-radius:7px;color:#c4b5fd;flex:0 0 auto;padding:5px}.group-preview-item,.nested-filter-item,.priority-item{display:grid;grid-gap:0;gap:0}.nested-filter-shell{display:grid;grid-gap:10px;gap:10px;padding:10px}.nested-filter-heading{align-items:center;display:flex;justify-content:space-between}.nested-filter-heading-copy{align-items:center;display:flex;gap:8px}.nested-filter-actions{padding-left:8px}.condition-remove-dock,.group-preview-actions,.nested-filter-actions,.priority-actions{max-height:0;opacity:0;overflow:hidden;pointer-events:none;transform:translateY(-4px);transition:margin .18s ease,max-height .18s ease,opacity .18s ease,transform .18s ease,visibility .18s ease;visibility:hidden}.condition-item:focus-within .condition-remove-dock,.condition-item:hover .condition-remove-dock,.group-preview-item:focus-within .group-preview-actions,.group-preview-item:hover .group-preview-actions,.nested-filter-item:focus-within .nested-filter-actions,.nested-filter-item:hover .nested-filter-actions,.priority-item:focus-within .priority-actions,.priority-item:hover .priority-actions{margin-block:12px 10px;max-height:144px;padding:8px;opacity:1;pointer-events:auto;transform:translateY(0);visibility:visible}.group-preview-actions,.priority-actions{justify-self:center;width:100%}.nested-group-name-field{margin-top:2px}.column-picker{min-width:0;position:relative}.column-picker-trigger{align-items:center;background:#12151a;border:1px solid var(--line);border-radius:6px;color:var(--text);display:grid;grid-gap:8px;gap:8px;grid-template-columns:32px minmax(0,1fr) 20px;min-height:40px;padding:4px 8px 4px 4px;text-align:left;width:100%}.column-picker-trigger:focus-visible,.column-picker-trigger:hover,.column-picker.open .column-picker-trigger{border-color:rgba(34,211,238,.72);box-shadow:0 0 0 3px rgba(34,211,238,.16)}.column-picker-trigger-icon{border-radius:6px;height:30px;width:30px}.column-picker-trigger-text{display:grid;min-width:0}.column-picker-option>span:first-child{display:grid;grid-gap:2px;gap:2px;min-width:0}.column-picker-option small,.column-picker-option strong,.column-picker-trigger-text small,.column-picker-trigger-text strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.column-picker-option small,.column-picker-trigger-text small{color:#7f8ea3;font-size:11px;font-weight:500}.source-view-option small,.source-view-picker .column-picker-trigger-text small{align-items:center;display:flex;gap:4px}.source-view-picker .code-token{max-width:100%}.column-picker-chevron{color:var(--muted)}.column-picker-menu{animation:dropdown-in .16s ease-out;background:#151922;border:1px solid var(--line-strong);border-radius:8px;box-shadow:0 22px 60px rgba(0,0,0,.36);display:grid;grid-gap:10px;gap:10px;left:0;max-height:440px;min-width:min(520px,88vw);overflow:hidden;padding:10px;position:absolute;top:calc(100% + 6px);width:max(100%,420px);z-index:30}.filter-modal .column-picker-menu,.portal-editor-panel .column-picker-menu{min-width:min(480px,calc(100vw - 48px));width:min(480px,calc(100vw - 48px))}.column-picker-search{align-items:center;background:var(--surface-muted);border:1px solid var(--line);border-radius:6px;color:var(--muted);display:flex;gap:8px;padding:0 8px}.column-picker-search input,.column-picker-search input:focus,.column-picker-search input:hover{background:transparent;border:0;box-shadow:none}.column-picker-groups{display:grid;grid-gap:10px;gap:10px;max-height:350px;overflow:auto;padding-right:2px}.column-picker-group{display:grid;grid-gap:6px;gap:6px}.column-picker-group-heading{align-items:center;color:var(--text);display:flex;font-size:12px;font-weight:800;justify-content:space-between}.column-picker-group-title{align-items:center;display:inline-flex;gap:6px}.column-picker-group>small{color:var(--muted);font-size:11px}.column-picker-options{display:grid;grid-gap:5px;gap:5px}.column-picker-option{align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:6px;color:var(--text);display:grid;grid-gap:10px;gap:10px;grid-template-columns:minmax(0,1fr) auto;min-height:42px;padding:7px 8px;text-align:left}.column-picker-option.selected,.column-picker-option:focus-visible,.column-picker-option:hover{background:#202631;border-color:rgba(34,211,238,.34)}.column-type-badge{background:rgba(148,163,184,.13);border-radius:999px;color:#cbd5e1;font-size:10px;font-weight:900;padding:3px 6px;text-transform:uppercase}.column-picker-empty{background:var(--surface-muted);border:1px solid var(--line);border-radius:6px;color:var(--muted);padding:14px;text-align:center}.filter-builder.read-only .conditions-list.modern .condition-row,.filter-builder.read-only .group-preview,.publication-priority-editor.read-only .priority-row{background:rgba(255,255,255,.035)}.priority-list,.priority-row{align-items:start;display:grid;grid-gap:8px;gap:8px}.priority-row{grid-template-columns:32px minmax(170px,1fr) auto minmax(134px,.42fr);min-height:58px;padding:8px}.priority-view-row{grid-template-columns:32px minmax(0,1fr)}.priority-group-row{grid-template-columns:32px 38px minmax(0,1fr)}.priority-group-row.with-inline-action{grid-template-columns:32px 38px minmax(0,1fr) max-content}.rule-edit-fullscreen .priority-group-row.with-inline-action{grid-template-columns:36px 38px minmax(0,1fr) max-content}.group-inline-edit-button{justify-self:end;opacity:0;pointer-events:none;transform:translateX(4px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease;visibility:hidden;white-space:nowrap}.group-preview-item:focus-within .group-inline-edit-button,.group-preview-item:hover .group-inline-edit-button,.priority-item:focus-within .group-inline-edit-button,.priority-item:hover .group-inline-edit-button{opacity:1;pointer-events:auto;transform:translateX(0);visibility:visible}.priority-rank{border-radius:6px;font-size:12px;font-weight:900;height:32px;width:32px}.priority-view-row span:last-child{display:grid;grid-gap:2px;gap:2px;min-width:0}.priority-view-row small,.priority-view-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.priority-view-row small{color:var(--muted);font-size:12px;font-weight:400}.priority-direction button{min-width:66px}.danger-icon-button{color:#fda4af}.rule-summary-card{background:linear-gradient(135deg,rgba(34,211,238,.09),transparent 42%),rgba(25,28,34,.94);border:1px solid rgba(255,255,255,.13);border-radius:8px;box-shadow:var(--shadow);display:grid;grid-gap:14px;gap:14px;padding:16px}.rule-summary-actions,.rule-summary-heading,.summary-metric-heading,.summary-settings-actions{align-items:center;display:flex}.rule-summary-heading{gap:12px;justify-content:space-between}.rule-summary-heading h3{font-size:15px}.rule-summary-heading span,.summary-muted-line{color:rgba(226,232,240,.72);font-size:12px;font-weight:500}.rule-summary-actions,.summary-settings-actions{gap:8px}.summary-refresh-button,.summary-settings-button{background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.08);color:#cbd5e1}.summary-refresh-button:focus-visible,.summary-refresh-button:hover,.summary-settings-button:focus-visible,.summary-settings-button:hover{background:rgba(34,211,238,.12);border-color:rgba(34,211,238,.28);color:#67e8f9}.rule-summary-total{align-items:center;background:rgba(255,255,255,.045);border:1px solid var(--line);border-radius:8px;display:grid;grid-gap:10px;gap:10px;grid-template-columns:44px minmax(0,1fr);min-height:70px;padding:12px}.rule-summary-total-icon,.summary-config-rank,.summary-type-icon{align-items:center;display:inline-flex;justify-content:center}.rule-summary-total-icon{background:rgba(52,211,153,.14);border:1px solid rgba(52,211,153,.28);border-radius:8px;color:#86efac;height:44px;width:44px}.rule-summary-total small,.summary-count-main small,.summary-group-count-field,.summary-group-count-field input,.summary-metric-heading small,.summary-range-grid small{color:rgba(226,232,240,.66);font-size:11px;font-weight:600;line-height:1.25}.rule-summary-total strong{color:var(--text);display:block;font-size:28px;font-weight:650;line-height:1.05;overflow-wrap:anywhere}.rule-summary-grid{column-gap:12px;column-width:300px;display:block}.summary-metric-card{align-content:start;background:rgba(17,21,27,.78);border:1px solid var(--line);border-radius:8px;page-break-inside:avoid;break-inside:avoid;display:inline-grid;gap:10px;margin:0 0 12px;min-width:0;padding:11px;width:100%}.summary-metric-card.range{border-color:rgba(34,211,238,.22)}.summary-metric-card.count{border-color:rgba(52,211,153,.22)}.summary-metric-card.group{border-color:rgba(251,191,36,.24)}.summary-metric-heading{gap:8px;min-width:0}.summary-metric-heading>span:last-child{display:grid;grid-gap:2px;gap:2px;min-width:0}.summary-metric-heading strong{color:#e7edf3;font-size:13px;font-weight:600;line-height:1.25;overflow-wrap:anywhere}.summary-type-icon{border-radius:7px;flex:0 0 auto;height:34px;width:34px}.summary-calculation-chip.range.selected,.summary-type-icon.range{background:rgba(34,211,238,.14);border-color:rgba(34,211,238,.34);color:#67e8f9}.summary-calculation-chip.count.selected,.summary-type-icon.count{background:rgba(52,211,153,.14);border-color:rgba(52,211,153,.34);color:#86efac}.summary-calculation-chip.group.selected,.summary-type-icon.group{background:rgba(251,191,36,.15);border-color:rgba(251,191,36,.36);color:#fde68a}.summary-count-main,.summary-range-grid{gap:10px}.summary-range-grid{display:grid;align-items:start;grid-template-columns:repeat(auto-fit,minmax(min(100%,112px),1fr))}.summary-count-main{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.summary-count-main span,.summary-range-grid span{align-content:start;background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:7px;display:grid;grid-gap:5px;gap:5px;min-height:58px;min-width:0;padding:9px 10px}.summary-count-main strong,.summary-range-grid strong{color:var(--text);display:block;font-size:17px;font-weight:650;line-height:1.18;overflow-wrap:anywhere;white-space:normal}.summary-count-block{display:grid;grid-gap:9px;gap:9px}.summary-count-bar,.summary-group-track,.summary-value-track{background:rgba(148,163,184,.16);border-radius:999px;overflow:hidden}.summary-count-bar{height:7px}.summary-count-bar span,.summary-group-track span,.summary-value-track span{background:linear-gradient(90deg,#34d399,#22d3ee);border-radius:inherit;display:block;height:100%}.summary-value-list{display:grid;grid-gap:10px;gap:10px}.summary-value-row{align-items:center;display:grid;grid-gap:6px 10px;gap:6px 10px;grid-template-areas:"label count" "track track";grid-template-columns:minmax(0,1fr) auto;padding:2px 0}.summary-value-label{color:#edf2f7;font-size:12px;font-weight:600;grid-area:label;line-height:1.25;min-width:0;overflow-wrap:anywhere}.summary-group-label .code-token,.summary-value-label .code-token{max-width:100%}.summary-value-track{grid-area:track;height:8px}.summary-value-count{color:var(--text);font-size:12px;font-weight:600;grid-area:count;min-width:42px;text-align:right;white-space:nowrap}.summary-more-line{background:rgba(34,211,238,.08);border:1px solid rgba(34,211,238,.16);border-radius:7px;color:rgba(226,232,240,.78);font-size:12px;font-weight:500;padding:7px 9px;text-align:center}.summary-group-list{display:grid;grid-gap:10px;gap:10px}.summary-group-row{align-items:center;display:grid;grid-gap:6px 10px;gap:6px 10px;grid-template-areas:"label count" "track track";grid-template-columns:minmax(0,1fr) auto;padding:2px 0}.summary-group-label{color:#edf2f7;font-size:12px;font-weight:600;grid-area:label;line-height:1.25;min-width:0;overflow-wrap:anywhere}.summary-group-track{grid-area:track;height:8px}.summary-group-track span{background:linear-gradient(90deg,#fbbf24,#34d399)}.summary-group-count{color:var(--text);font-size:12px;font-weight:600;grid-area:count;min-width:42px;text-align:right;white-space:nowrap}.summary-skeleton{background:linear-gradient(90deg,rgba(255,255,255,.05),rgba(255,255,255,.11),rgba(255,255,255,.05));border-radius:7px;min-height:58px}.summary-skeleton.muted{align-items:center;background:rgba(255,255,255,.04);color:var(--muted);display:flex;font-size:12px;font-weight:500;justify-content:center}.summary-empty{min-height:58px}.summary-settings-modal{max-width:980px;width:min(980px,100%)}.summary-config-stack{display:grid;grid-gap:10px;gap:10px}.summary-config-row{align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:8px;display:grid;grid-gap:8px;gap:8px;grid-template-columns:32px minmax(180px,1fr) minmax(250px,1.1fr) 78px 32px;padding:8px}.summary-config-rank{background:rgba(148,163,184,.13);border-radius:6px;color:#cbd5e1;font-size:12px;font-weight:700;height:32px;width:32px}.summary-calculation-options{display:grid;grid-gap:6px;gap:6px;grid-template-columns:repeat(3,minmax(0,1fr))}.summary-calculation-chip{align-items:center;background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:6px;color:#cbd5e1;display:inline-flex;font-size:11px;font-weight:700;gap:5px;justify-content:center;min-height:34px;padding:6px 7px}.summary-group-count-field{display:grid;grid-gap:4px;gap:4px}.summary-group-count-field input{min-height:34px;padding:6px 7px;text-align:center}.summary-group-count-placeholder{display:block}