@font-face{font-family:Inter;src:url('/fonts/inter-latin.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root,[data-theme="dark"]{color-scheme:dark;--bg:#181e2d;--sidebar:#22293b;--surface:#22293b;--surface-2:#262e42;--surface-3:#30394e;--line:#323b50;--line-strong:#485572;--text:#e7ebf3;--muted:#b0b9cc;--muted-2:#919cb3;--yellow:#6da6ff;--yellow-soft:rgba(31,99,218,.17);--primary:#164db0;--primary-hover:#1c5ac8;--green:#41c987;--red:#fa7c87;--radius:6px;--shadow:none;font-family:Inter,Arial,sans-serif;font-size:13px;font-weight:400}
[data-theme="light"]{--bg:#f1f4f9;--sidebar:#fff;--surface:#fff;--surface-2:#f7f9fd;--surface-3:#e8eef9;--line:#dce3ef;--line-strong:#b5c3da;--text:#202d43;--muted:#52617b;--muted-2:#66758e;--yellow:#164db0;--yellow-soft:rgba(22,77,176,.09);--primary:#164db0;--primary-hover:#1c5ac8;--shadow:none}
body,button,input,select,textarea{font-family:Inter,Arial,sans-serif}
.app-shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{width:190px;padding:0 10px}.sidebar-head{height:64px;border-bottom-color:transparent}.brand{font-size:25px;font-weight:650;letter-spacing:-1.2px}.brand-icon{width:33px;height:33px}.workspace-switch{margin:10px 0;padding:9px;border-radius:5px;background:var(--surface-2)}.workspace-avatar,.profile-button>span:first-child{border-radius:5px;background:var(--yellow-soft);color:var(--yellow)}
.nav-item{height:35px;font-size:11px;font-weight:450;border-radius:4px;padding:0 9px;gap:8px}.nav-item.active{background:var(--primary);color:#fff;box-shadow:0 2px 9px #103e8f44}.nav-item:hover{background:var(--surface-3)}.nav-item.active:hover{background:var(--primary-hover)}.main-nav{gap:2px}.main-nav>p{font-size:8px;font-weight:600;letter-spacing:.08em;margin-top:18px}.nav-item em,.nav-item b{border-radius:3px;font-weight:500}.sidebar-bottom{border-top-color:var(--line)}
.topbar{height:62px;padding:0 22px;background:var(--surface);backdrop-filter:none}.breadcrumbs{font-size:12px;letter-spacing:.01em}.breadcrumbs strong{font-weight:450}.theme-button,.icon-button{height:32px;border-radius:5px;background:transparent;font-size:11px}.theme-button{padding:0 9px}.top-status{font-size:10px}main{max-width:none;padding:24px 22px}.page-title-row{margin-bottom:18px}.page-title-row h1{font-size:21px;font-weight:600;letter-spacing:-.025em}.page-title-row p{font-size:11px}.refresh-button{background:var(--primary);border-color:var(--primary);color:#fff;border-radius:4px;min-width:92px;justify-content:center;font-weight:500}.refresh-button:hover{color:#fff;background:var(--primary-hover);border-color:var(--primary-hover)}
.filter-bar{border:0;border-radius:5px;padding:12px 6px;gap:8px;background:var(--surface)}.filter-bar label{padding:0 7px;border:0}.filter-bar label>span{font-size:9px;font-weight:450;letter-spacing:0;text-transform:none;margin-bottom:7px;color:var(--muted)}.filter-bar select{font-size:10px;border:1px solid var(--line);border-radius:4px;padding:8px;background:var(--surface);height:32px}.filter-bar option{background:var(--surface)}.clear-filters{align-self:end;height:32px;font-size:10px}.panel,.utm-card{border-radius:5px;box-shadow:none}.panel-head{padding:15px 16px;min-height:58px}.panel-head h2{font-size:13px;font-weight:550}.section-label{font-size:8px;font-weight:550;letter-spacing:.08em}.utm-summary{gap:10px}.utm-card{padding:14px;min-height:96px}.utm-card-head{font-size:10px;text-transform:none;letter-spacing:0;font-weight:450}.utm-card-head i{width:5px;height:5px}.utm-card-value{font-size:21px;font-weight:600;letter-spacing:-.025em;margin-top:12px}.utm-card small{font-size:9px}.utm-card.large{min-height:202px}.utm-breakdown-row strong{font-weight:500}.secondary-grid{gap:10px}.financial-row,.sale,td{border-color:var(--line)}.sale-avatar{background:var(--yellow-soft);color:var(--yellow);border-radius:4px}
.campaigns-panel{scroll-margin-top:78px}.entity-tabs{margin:0 0 4px;background:var(--bg);border:0;gap:10px}.entity-tabs button{background:var(--surface);text-align:left;padding:15px 16px;border-radius:5px 5px 0 0;font-size:11px;font-weight:500;border-bottom:2px solid transparent}.entity-tabs button.active{background:var(--surface);color:var(--yellow);border-color:var(--yellow)}.entity-filters{padding:0 16px;gap:14px;grid-template-columns:2fr 1fr 1.5fr}.entity-filters input,.entity-filters select{border-radius:4px;background:var(--surface);font-size:10px;padding:9px 10px}.entity-table-wrap{max-height:650px}.entity-table-wrap th{background:var(--surface-3);font-size:8px;font-weight:550;letter-spacing:.035em;padding:11px 13px}.entity-table-wrap td{font-size:10px;padding:12px 13px;color:var(--text)}.entity-table-wrap th:nth-child(2),.entity-table-wrap td:nth-child(2){text-align:left}.entity-table-wrap tbody tr:nth-child(even){background:rgba(127,150,198,.035)}.entity-table-wrap tbody tr:hover{background:var(--yellow-soft)}.entity-name{font-size:11px;font-weight:450}.entity-parent{font-size:8px;max-width:230px;overflow:hidden;text-overflow:ellipsis}.entity-toggle{width:31px;height:17px;background:#596174}.entity-toggle::after{width:11px;height:11px}.entity-toggle.active{background:var(--primary)}.entity-toggle.active::after{transform:translateX(14px)}.entity-positive{color:var(--green)!important}.entity-negative{color:var(--red)!important}.table-footer{font-size:9px;padding:13px 16px}
.management-dialog,.integration-dialog{border-radius:8px;box-shadow:0 18px 70px #080e1a66}.management-shell{padding:24px}.management-shell .dialog-head h2{font-size:21px;font-weight:600}.manage-tabs button{font-size:12px;font-weight:450}.manage-form input,.manage-form select,.manage-form button,.manage-actions button,.webhook-card button,.webhook-url button{border-radius:4px;font-size:11px}.manage-form button,.manage-actions button,.webhook-card button,.webhook-url button,.config-form button{background:var(--primary);color:#fff}.manage-form button:hover,.manage-actions button:hover,.webhook-url button:hover{background:var(--primary-hover)}.manage-item,.webhook-card,.manage-empty,.integration-card,.config-panel,.dialog-shell{border-radius:5px}.provider-tag{font-weight:550;color:var(--yellow)}.webhook-url code,.code-snippet{background:var(--bg);color:var(--text)}.notification-popover{background:var(--surface);border-radius:7px;border-color:var(--line)}.dialog-note,.integration-warning{background:var(--surface-2);border-color:var(--line)}.search{background:var(--surface);border-radius:4px}.switch input:checked+span{background:var(--primary)}footer{color:var(--muted-2)}
.auth-gate,[data-theme="light"] .auth-gate{background:radial-gradient(ellipse at 70% 0%,#234b8550,transparent 58%),var(--bg)}.auth-card,[data-theme="light"] .auth-card{border-radius:9px;background:var(--surface);border-color:var(--line);box-shadow:0 18px 70px #080e1a22}.auth-card h1{font-weight:600;font-size:25px}.auth-card>p,.auth-card label{color:var(--muted)}.auth-card input,[data-theme="light"] .auth-card input{background:var(--bg);color:var(--text);border-color:var(--line-strong);border-radius:5px}.auth-card input:focus{outline:2px solid var(--yellow)}.auth-card button{background:var(--primary);color:#fff;font-weight:550;border-radius:5px}.auth-card .auth-secondary,[data-theme="light"] .auth-card .auth-secondary{background:transparent;border-color:var(--line-strong);color:var(--yellow)}.auth-brand-light strong em{color:var(--primary)}[data-theme="light"] .sale-avatar,[data-theme="light"] .profile-button>span:first-child{background:var(--yellow-soft)}
@media(max-width:1100px){.app-shell{grid-template-columns:178px minmax(0,1fr)}.sidebar{width:178px}main{padding:20px 16px}.topbar{padding:0 16px}}
@media(max-width:760px){.app-shell{display:block}.sidebar{width:240px}.topbar{height:58px;padding:0 12px}main{padding:18px 12px}.filter-bar{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:12px}.filter-bar label{padding:0}.clear-filters{grid-column:1/-1}.page-title-row{align-items:start;gap:10px}.page-title-row h1{font-size:20px}.title-actions .updated-at{display:none}.entity-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.entity-tabs button{font-size:10px;padding:13px 7px;text-align:center}.campaign-head{flex-wrap:wrap}.campaign-tools{align-items:center;flex-wrap:wrap}.entity-filters{grid-template-columns:1fr;padding:0 12px;gap:8px}.utm-card-value{font-size:21px}.management-shell{padding:16px}.theme-button span{display:none}}
