:root{--bg: #f4f4f4;--panel: #ffffff;--line: #d7d7d7;--text: #2f343d;--muted: #7a7f88;--blue: #4f87ff;--red: #dc2626;--green: #5ac064;--navbar-height: 56px;--sidebar-width: 260px;--nav-link-font-size: .95rem;--nav-link-padding-x: .75rem;--nav-link-padding-y: .62rem}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Segoe UI,Inter,Arial,sans-serif}.app{min-height:100vh;display:flex;flex-direction:column;background:var(--bg)}.app-shell{display:flex;flex:1;min-height:0}.sidebar{width:var(--sidebar-width);padding:0;background:#f7f7f7;color:#2f343d;border-right:1px solid #dcdcdc;display:flex;flex-direction:column;gap:0;transition:width .18s ease;--bs-nav-link-color: #31363f;--bs-nav-link-hover-color: #111827;--bs-nav-link-active-color: var(--bs-nav-link-hover-color);--bs-nav-link-active-bg: var(--panel);--bs-nav-link-font-size: var(--nav-link-font-size);--bs-nav-link-font-weight: 500;--bs-nav-link-padding-x: var(--nav-link-padding-x);--bs-nav-link-padding-y: var(--nav-link-padding-y);position:fixed;top:var(--navbar-height);left:0;bottom:0;height:calc(100dvh - var(--navbar-height));overflow-x:hidden;overflow-y:auto;z-index:1039}.menu{display:flex;flex-direction:column;gap:2px;margin-top:6px;padding:6px 8px}.menu-btn{background:none;border:0;color:var(--bs-nav-link-color);border-radius:6px;font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);text-align:left;cursor:pointer;display:flex;align-items:center;gap:10px;white-space:nowrap;min-height:40px;width:100%;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}.menu-btn:hover{background:#e9e9e9;color:var(--bs-nav-link-hover-color)}.menu-btn.active{background:var(--bs-nav-link-active-bg);border-left:3px solid var(--green);color:var(--bs-nav-link-active-color)}.menu-ic{width:18px;text-align:center;color:#656b75;font-size:15px}.sidebar-footer{margin-top:auto;border-top:1px solid #d9d9d9;background:#ececec;padding:10px 12px}.app.sidebar-collapsed .sidebar{width:64px}.app.sidebar-collapsed .menu-btn span:not(.menu-ic),.app.sidebar-collapsed .sidebar-footer{display:none}.sidebar-url{margin-top:4px;color:#515862;font-size:12px;overflow-wrap:anywhere}.workspace{flex:1;display:flex;flex-direction:column;min-width:0;margin-left:var(--sidebar-width);transition:margin-left .18s ease}.app.sidebar-collapsed .workspace{margin-left:64px}.topbar{min-height:var(--navbar-height);background:#30323a;border-bottom:1px solid #262831;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;position:sticky;top:0;z-index:1040}.topbar-left{display:flex;align-items:center;gap:10px;min-width:220px}.topbar-brand{display:inline-flex;align-items:center;gap:6px;cursor:pointer;-webkit-user-select:none;user-select:none}.topbar-logo{height:20px;width:auto;display:block;color:#59c45f}.topbar-brand .brand-name{color:#59c45f;font-weight:800;letter-spacing:.2px;font-size:18px}.topbar-brand .brand-tag{color:#aeb3bb;font-size:11px;font-weight:700;text-transform:uppercase}.topbar-icon-btn{color:#bfc4cb;width:32px;height:32px;border:none;background:transparent;font-size:16px;padding:0;display:inline-flex;align-items:center;justify-content:center}.topbar-icon-btn svg{width:20px;height:20px;display:block}.cell-with-badge{display:inline-flex;align-items:center;gap:8px;min-height:18px}.mini-logo{display:inline-block;width:16px;height:16px;flex:0 0 16px;color:var(--muted)}.mini-logo.logo-os.logo-win{color:var(--blue)}.mini-logo.logo-os.logo-android{color:var(--green)}.mini-logo.logo-os.logo-ios,.mini-logo.logo-os.logo-mac{color:var(--muted)}.mini-logo.logo-os.logo-linux{color:var(--text)}.mini-logo.logo-browser.logo-chrome{color:var(--green)}.mini-logo.logo-browser.logo-edge{color:var(--blue)}.mini-logo.logo-browser.logo-firefox{color:var(--red)}.mini-logo.logo-browser.logo-safari{color:var(--muted)}.topbar-icon-btn:hover{background:transparent;color:#f3f4f6}.topbar-search{flex:1;display:flex;justify-content:center}.topbar-searchbox{width:360px;position:relative}.topbar-search-ic{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#bfc4cb;opacity:.65;display:inline-flex;align-items:center;pointer-events:none}.topbar-search input{width:100%;background:#41434b;border-color:#51545d;color:#f3f4f6;border-radius:5px;padding:7px 10px 7px 30px;font-size:14px}.topbar-right{display:flex;gap:6px;color:#c8cbd1;min-width:220px;justify-content:flex-end}.topbar-action{border-color:#50535d;color:#e5e7eb;background:#3c3f47;border-radius:4px;padding:6px 10px;font-size:13px}.topbar-action:hover{background:#4a4d56}.page-head{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;border-bottom:1px solid #dbdbdb;background:#fff}.page-head h1{margin:0;font-size:22px}.page-head p{margin:2px 0 0}.quick-badges{display:flex;gap:6px}.pill{background:#eceff4;color:#525962;border:1px solid #d5dbe3;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:600}.topbar .search-wrap input{width:280px}.content{padding:10px;display:grid;gap:8px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:4px;padding:10px}.btn-success{background:var(--green);border:1px solid var(--green);color:#fff;border-radius:4px;padding:6px 10px;font-size:12px;font-weight:700}.btn-success:hover{background:#16a34a;border-color:#16a34a}.lp-editor-shell{margin-top:12px;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--panel)}.lp-editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;background:var(--bg);border-bottom:1px solid var(--line)}.lp-editor-toolbar-left{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.lp-editor-toolbar-right{display:flex;align-items:center}.lp-editor-body{display:grid;grid-template-columns:260px 1fr;min-height:560px}.lp-editor-files{border-right:1px solid var(--line);background:var(--panel);min-width:0;display:flex;flex-direction:column;min-height:0}.lp-editor-files-head{padding:8px 10px;font-weight:700;border-bottom:1px solid var(--line);background:var(--panel)}.lp-editor-files-list{flex:1;min-height:0;overflow-y:scroll;overflow-x:hidden;scrollbar-gutter:stable}.lp-file-row{display:flex;align-items:stretch;justify-content:space-between;gap:6px;border-bottom:1px solid #f0f0f0;position:relative}.lp-file-row.active{background:var(--bg)}.lp-file-btn{flex:1;border:none;background:transparent;text-align:left;padding:8px 10px;cursor:pointer;color:var(--text);overflow-wrap:anywhere}.lp-file-btn:disabled{cursor:default;opacity:.65}.lp-file-actions{display:flex;align-items:center;padding-right:6px}.lp-file-menu{position:absolute;right:8px;top:32px;background:var(--panel);border:1px solid var(--line);border-radius:6px;box-shadow:0 6px 18px #00000014;z-index:20;min-width:140px;overflow:hidden}.lp-file-menu button{width:100%;border:none;background:transparent;text-align:left;padding:8px 10px;cursor:pointer}.lp-file-menu button:hover{background:var(--bg)}.lp-file-menu button.danger{color:var(--red);font-weight:700}.lp-editor-main{min-width:0;padding:10px;background:var(--panel)}.lp-editor-breadcrumbs{display:flex;align-items:center;gap:6px;padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:var(--panel);margin-bottom:10px;overflow:hidden}.lp-editor-bc-root{color:var(--muted);font-weight:700;flex:0 0 auto}.lp-editor-bc-sep{color:var(--muted)}.lp-editor-bc-file{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lp-editor-dirty{color:var(--red);font-weight:900;margin-left:auto}.lp-editor-cm{border:1px solid var(--line);border-radius:6px;overflow:hidden}.lp-editor-cm-wrap{display:flex;flex-direction:column;height:520px;min-height:0}.lp-editor-empty{height:520px;border:1px dashed var(--line);border-radius:6px;display:flex;align-items:center;justify-content:center;padding:12px;background:var(--bg)}.btn-success:disabled{opacity:.6}.icon-btn{width:28px;height:18px;text-align:center;padding:0;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d1d5db;background:#fff;color:#4b5563;cursor:pointer}.icon-btn .menu-ic svg{width:18px;height:18px;display:block}.icon-btn:hover{background:#f3f4f6}.icon-btn.danger{color:var(--red)}.domains-panel{padding:0}.domains-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border-bottom:1px solid var(--line)}.domains-toolbar-left,.domains-toolbar-right{display:flex;align-items:center;gap:8px;min-width:0}.domains-toolbar-left input{width:220px}.help-link{font-size:12px;color:var(--blue);text-decoration:none;white-space:nowrap}.help-link:hover{text-decoration:underline}.server-ip-badge{display:inline-flex;align-items:center;padding:3px 9px;border-radius:5px;font-size:11px;font-family:monospace;font-weight:600;background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe;cursor:pointer;-webkit-user-select:all;user-select:all;transition:background .15s}.server-ip-badge:hover{background:#e0e7ff}.server-ip-badge.copied{background:#dcfce7;border-color:#86efac;color:#15803d}.domains-toolbar select,.domains-toolbar input{border:1px solid #d1d5db;border-radius:4px;padding:7px 9px;font-size:12px;background:#fff}.domains-table{width:100%;border-collapse:collapse}.domains-table th,.domains-table td{border-bottom:1px solid #ececec;padding:9px 8px;font-size:12px;vertical-align:middle}.domains-table th{background:#fafafa;color:#6b7280;font-weight:700}.domain-cell{color:var(--blue);font-weight:600}.row-icons{display:flex;gap:6px;justify-content:flex-end}.status-badge{display:inline-flex;align-items:center;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:700;border:1px solid #d1d5db;color:#4b5563;background:#fff}.status-badge.ok{border-color:#bfe6c6;color:#1f7a2e;background:#eefbf1}.status-badge.paused{border-color:#e5e7eb;color:#6b7280;background:#f9fafb}.status-badge.warn{border-color:#fde68a;color:#92400e;background:#fffbeb}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{display:inline-flex;align-items:center;border-radius:4px;padding:2px 6px;border:1px solid #e5e7eb;background:#f3f4f6;font-size:11px;color:#374151;white-space:nowrap}.linkish{color:var(--blue);font-weight:700}.pagination.pagination-keitaro{border-top:1px solid var(--line);padding:10px;display:flex;align-items:center;justify-content:space-between}.pagination.pagination-keitaro select{border:1px solid #d1d5db;border-radius:4px;padding:6px 8px;font-size:12px;background:#fff}.pagination-left,.pagination-right{display:flex;align-items:center;gap:8px}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;display:flex;align-items:center;justify-content:center;padding:20px;z-index:2000}.modal{width:min(760px,100%);background:#fff;border:1px solid #d1d5db;border-radius:6px;overflow:hidden}.modal.modal-lg{width:min(1040px,100%)}.modal.modal-editor{height:min(90vh,920px);display:flex;flex-direction:column}.modal.modal-editor .modal-body{flex:1;padding:0;display:flex;flex-direction:column;min-height:0}.modal.modal-editor .lp-editor-shell{margin-top:0;border:none;border-radius:0;flex:1;display:flex;flex-direction:column;min-height:0}.modal.modal-editor .lp-editor-body{display:flex;flex:1;height:auto;min-height:0;overflow:hidden}.modal.modal-editor .lp-editor-files{flex:0 0 260px}.modal.modal-editor .lp-editor-main{flex:1}.modal.modal-editor .lp-editor-files{overflow:hidden}.modal.modal-editor .lp-editor-empty{height:100%}.modal.modal-editor .lp-editor-files-list{max-height:none;height:0}.modal.modal-editor .lp-editor-main{display:flex;flex-direction:column;min-height:0}.modal.modal-editor .lp-editor-cm{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.modal.modal-editor .lp-editor-cm-wrap{flex:1;min-height:0;height:auto;display:flex;flex-direction:column;overflow:hidden}.modal.modal-editor .lp-editor-cm-wrap>*{flex:1;min-height:0}.modal.modal-editor .lp-editor-cm-wrap .cm-editor{height:100%}.modal.modal-editor .lp-editor-cm-wrap .cm-scroller{overflow:auto!important}.lp-editor-cm-wrap .cm-editor{flex:1;min-height:0}.lp-editor-cm-wrap .cm-scroller{flex:1;min-height:0;overflow:auto}.modal-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;row-gap:8px;padding:12px 14px;border-bottom:1px solid #e5e7eb}.modal-head h2{margin:0;font-size:18px}.modal-head-actions{display:flex;align-items:center;gap:10px}.modal-doc{color:var(--blue);font-size:13px;text-decoration:none}.modal-doc:hover{text-decoration:underline}.modal-x{width:32px;height:32px;border-radius:4px;border:1px solid #e5e7eb;background:#fff;color:#6b7280;font-size:18px;line-height:1;cursor:pointer}.modal-x:hover{background:#f3f4f6}.modal-body{padding:14px;display:grid;gap:14px}.modal-field>label{display:block;font-weight:700;font-size:13px;margin-bottom:6px}.modal-field label.radio,.modal-field label.checkbox{display:inline-flex;margin-bottom:0;font-weight:400;font-size:14px}.modal-field input,.modal-field select,.modal-field textarea{width:100%;border:1px solid #d1d5db;border-radius:4px;padding:9px 10px;font-size:14px}.modal-field textarea{resize:vertical}.hint{margin-top:6px;font-size:12px;color:var(--muted)}.row-between{display:flex;align-items:center;justify-content:space-between;gap:10px}.link{color:var(--blue);font-size:13px;text-decoration:none}.link:hover{text-decoration:underline}.radio-row{display:grid;grid-template-columns:repeat(2,max-content);column-gap:26px;row-gap:8px;align-items:center;padding:2px 0}.radio{display:inline-flex;gap:8px;align-items:center;font-size:14px;color:#111827}.radio span{line-height:1.2;white-space:nowrap}.checkbox{display:inline-flex;gap:10px;align-items:center;font-size:14px}.checkbox input{margin:0}.modal-divider{height:1px;background:#e5e7eb}.modal-bottom{display:flex;align-items:center;justify-content:flex-start}.modal-advanced{border:1px solid #e5e7eb;background:#fafafa;border-radius:6px;padding:12px}.modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:12px 14px;border-top:1px solid #e5e7eb;background:#fff}.modal.ts-modal{width:min(860px,100%);height:min(86vh,860px);display:flex;flex-direction:column}.ts-body{overflow:auto;min-height:0}.ts-head-actions{display:flex;align-items:center;gap:10px}.ts-percent{display:inline-flex;align-items:stretch;border:1px solid #d1d5db;border-radius:4px;overflow:hidden;width:160px;max-width:100%}.ts-percent input{border:none;border-radius:0;padding:9px 10px;font-size:14px;width:100%}.ts-percent-suffix{display:inline-flex;align-items:center;justify-content:center;padding:0 10px;border-left:1px solid #e5e7eb;background:var(--bg);color:var(--muted);font-weight:700}.ts-postback{display:flex;gap:8px;align-items:center}.ts-postback input{flex:1}.ts-params{padding-top:4px}.ts-params-title{font-size:28px;font-weight:300;margin:8px 0}.ts-params-table{border-top:1px solid #e5e7eb}.ts-params-head,.ts-params-row{display:grid;grid-template-columns:1.1fr 1fr 1.6fr;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #e5e7eb}.ts-params-head{color:var(--muted);font-size:12px;font-weight:700;text-transform:none}.ts-params-row input{width:100%;border:1px solid #d1d5db;border-radius:4px;padding:9px 10px;font-size:14px}.ts-params-row input:disabled{background:#f9fafb;color:#6b7280}.check-list{display:flex;flex-wrap:wrap;gap:10px 14px;margin-top:6px}.check-item{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}.check-item input{width:14px;height:14px}.lp-type-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid #e5e7eb;border-radius:6px;overflow:hidden;background:#fafafa}.lp-type-tab{border:none;background:transparent;padding:10px;font-weight:700;cursor:pointer;border-right:1px solid #e5e7eb}.lp-type-tab:last-child{border-right:none}.lp-type-tab.active{background:#e5e7eb}.lp-type-tab:disabled{cursor:default;opacity:.6}.folder-row{display:grid;grid-template-columns:140px 1fr auto;gap:8px;align-items:center}.folder-actions{display:flex;gap:8px;align-items:center}.folder-prefix{color:var(--muted);font-weight:700;padding:9px 10px;border:1px solid #d1d5db;border-radius:4px;background:#fafafa}.offer-link-box{border:1px solid var(--blue);border-radius:6px;padding:12px;background:#fff}.offer-link-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}.offer-link-title{font-weight:800;font-size:16px}.code-line{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e5e7eb;border-radius:6px;padding:10px;background:#fafafa}.code-line code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:13px;color:#111827;overflow-wrap:anywhere}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}.panel-head h2{margin:0;font-size:16px}.controls-grid{display:grid;grid-template-columns:1.4fr auto 1fr 1fr auto auto auto;gap:6px}.section-toolbar{display:grid;grid-template-columns:auto auto 1fr 220px;gap:8px;margin-bottom:8px}.campaign-toolbar{grid-template-columns:auto auto 1fr 180px auto}.campaigns-table td:first-child,.campaigns-table th:first-child{width:30px}.campaign-panel{position:relative;min-height:calc(100vh - 180px)}.campaign-builder-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#f3f4f6;display:flex;align-items:stretch;justify-content:stretch;padding:0;z-index:30;border:1px solid #cfd5df}.campaign-builder-modal{width:100%;height:100%;overflow:auto;border:none;border-radius:0;padding:12px}.campaign-builder-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.campaign-title-input{width:min(640px,100%);font-size:22px;padding:10px}.campaign-builder-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid #d9d9d9;margin-bottom:10px;padding-bottom:8px}.tab-btn{border:none;border-bottom:2px solid transparent;background:transparent;color:#5f6671;padding:8px 6px;border-radius:0}.tab-btn:hover{background:transparent;color:#2f343d}.tab-btn.active{border-bottom-color:#2f343d;color:#2f343d;font-weight:700}.campaign-builder-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:12px;align-items:start}.radio-row{display:flex;flex-wrap:wrap;gap:10px;padding:6px 0}.radio{display:inline-flex;align-items:center;gap:8px;-webkit-user-select:none;user-select:none;color:#2f343d}.radio input{margin:0}.campaign-flows-pane{min-height:0;display:grid;grid-template-rows:auto 1fr auto;gap:10px}.flow-create-wrap{position:relative}.flow-create-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:5;background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:6px;display:grid;gap:6px;min-width:180px}.flow-create-menu button{text-align:left;width:100%}.campaign-flows-list{border:1px solid var(--line);border-radius:6px;background:var(--panel);overflow:auto;max-height:46vh}.flow-row{display:grid;grid-template-columns:1fr auto;gap:10px;padding:10px;border-bottom:1px solid #e5e7eb;cursor:pointer}.flow-row:last-child{border-bottom:none}.flow-row.active{background:#eef5ff}.flow-row-title{display:flex;align-items:center;gap:8px}.flow-status-dot{width:10px;height:10px;border-radius:999px;background:var(--green);border:1px solid var(--line)}.flow-status-dot.paused{background:var(--muted)}.flow-row-name{font-weight:700}.flow-type-pill{font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:2px 8px}.flow-row-meta{margin-top:4px;font-size:12px;color:var(--muted)}.flow-row-actions{display:flex;gap:6px;align-items:start}.campaign-flow-editor{margin:0}.flows-table-wrap{max-height:60vh}textarea{border:1px solid var(--line);border-radius:4px;padding:8px;font-size:13px;resize:vertical}input,select,button{border:1px solid var(--line);border-radius:4px;padding:7px 9px;font-size:13px}button{background:#fff;cursor:pointer}button:hover{background:#f9fafb}button:disabled{opacity:.6;cursor:default}.btn-primary{background:var(--green);border-color:#4fb45a;color:#fff}.btn-primary:hover{background:#4aad55}.btn-danger{background:var(--red);border-color:var(--red);color:#fff}.btn-danger:hover{background:#b91c1c}.status{margin-top:8px;font-size:13px}.status.success{color:var(--green)}.status.error{color:var(--red)}.status.info{color:var(--blue)}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:18px;background:var(--bg)}.auth-card{width:420px;max-width:100%}.auth-head{margin-bottom:10px}.auth-brand{-webkit-user-select:none;user-select:none}.auth-form{display:grid;gap:8px}.auth-row{display:flex;gap:8px}.auth-row input{flex:1}.auth-actions{display:flex;justify-content:flex-end;gap:8px}.account-wrap,.notif-wrap{position:relative;display:inline-flex}.notif-menu{position:absolute;top:calc(100% + 6px);right:0;width:320px;max-width:calc(100vw - 24px);background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 10px 28px #00000024;z-index:120;padding:6px}.notif-menu-title{padding:8px 10px 6px;font-size:13px;font-weight:700}.notif-empty{padding:6px 10px 10px;font-size:12px}.notif-list{max-height:min(52vh,360px);overflow:auto}.notif-item{padding:8px 10px;border-radius:6px}.notif-item:hover{background:var(--bg)}.notif-text{font-size:13px;color:var(--text)}.notif-time{margin-top:2px;font-size:11px}.account-menu{position:absolute;top:calc(100% + 6px);right:0;width:240px;max-width:calc(100vw - 24px);background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 10px 28px #00000024;z-index:120;padding:6px}.account-menu-title{padding:8px 10px 4px;font-size:13px;font-weight:700}.account-menu-meta{padding:0 10px 8px;font-size:12px}.account-menu-item{width:100%;border:none;background:transparent;text-align:left;padding:8px 10px;border-radius:6px;cursor:pointer;color:var(--text);font-size:13px}.account-menu-item:hover{background:var(--bg)}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px}.kpi-card{background:var(--panel);border:1px solid var(--line);border-radius:4px;padding:10px}.kpi-card p{margin:0;color:var(--muted);font-size:12px;text-transform:uppercase}.kpi-card strong{display:block;margin-top:6px;font-size:28px}.chips-wrap{display:flex;flex-wrap:wrap;gap:8px}.chip{border-radius:999px;padding:7px 12px;background:#eff6ff;border-color:#bfdbfe;color:#1e3a8a}.table-wrap{overflow:auto;max-height:58vh}table{width:100%;border-collapse:collapse}th,td{border-bottom:1px solid #e5e7eb;padding:10px 8px;text-align:left;vertical-align:top;font-size:13px}th{background:#f2f2f2;color:var(--muted);font-weight:700;position:sticky;top:0;z-index:2}tbody tr:hover{background:#f8fafc}.sort-btn{border:none;background:transparent;padding:0;font-size:12px;color:var(--muted);font-weight:700}.sort-btn:hover{color:#0f172a;background:transparent}.row-active{background:#eef5ff}.actions{white-space:nowrap;display:flex;gap:6px}.pagination{margin-top:10px;display:flex;justify-content:flex-end;align-items:center;gap:8px;color:var(--muted);font-size:13px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field{display:flex;flex-direction:column;gap:4px}.field span{font-size:12px;color:var(--muted)}.actions-row{margin-top:12px;display:flex;gap:8px}.reports-filters{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));gap:10px}.reports-export-grid{margin-top:8px;display:grid;grid-template-columns:repeat(3,minmax(140px,1fr));gap:10px}pre{margin:0;background:#2a2f38;color:#e5e7eb;border-radius:4px;padding:12px;max-height:420px;overflow:auto;font-size:12px;line-height:1.45}.muted{color:var(--muted)}.small{font-size:12px}.dash-kpi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}.dash-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.dash-toolbar-right{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;width:100%}.page-head .dash-toolbar-right{width:auto}.dash-toolbar select{min-width:180px}.dash-icon-btn{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center}.dash-icon-btn svg{display:block}.metric-card{border-radius:6px;padding:10px;color:#fff;min-height:62px}.metric-card.clickable{cursor:pointer;-webkit-user-select:none;user-select:none}.metric-card.inactive{opacity:.55}.metric-card.selected{outline:2px solid rgba(255,255,255,.65);outline-offset:-2px}.metric-card p{margin:0;font-size:12px;opacity:.95}.metric-card strong{display:block;margin-top:8px;font-size:28px;line-height:1}.metric-card.blue{background:#3d86e0}.metric-card.violet{background:#8f58ea}.metric-card.pink{background:#f25384}.metric-card.red{background:var(--red)}.metric-card.yellow{background:#f2c500;color:#2f343d}.metric-card.orange{background:#f4861f}.metric-card.teal{background:#25b8b7}.dash-chart-empty{min-height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px 16px 8px;color:var(--muted)}.dash-chart-empty-svg{opacity:.45;display:block;max-width:640px;width:100%}.dash-chart-empty-msg{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;font-size:14px;color:#6b737f}.chart-bars{height:220px;border:1px solid #dedede;background:linear-gradient(to top,#f7f7f7,#fff);display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;padding:10px;align-items:end}.chart-col{display:flex;flex-direction:column;gap:6px;align-items:center}.chart-col span{font-size:11px;color:#7a7f88}.chart-bar-wrap{width:100%;height:170px;display:flex;align-items:flex-end}.dash-chart{width:100%}.dash-chart svg{display:block}.prefs-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#11182752;display:flex;align-items:center;justify-content:center;padding:18px;z-index:2000}.prefs-modal{width:760px;max-width:100%;max-height:calc(100vh - 36px);display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 18px 45px #0000002e;overflow:hidden}.prefs-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line)}.prefs-title{font-size:16px;font-weight:800}.prefs-close{width:34px;height:34px;border:none;background:transparent;border-radius:6px;cursor:pointer;color:#6b7280;font-size:18px}.prefs-close:hover{background:var(--bg);color:#111827}.prefs-body{padding:14px 16px;display:grid;gap:14px;overflow:auto}.prefs-section{width:100%}.prefs-section-title{font-weight:800;margin-bottom:8px}.prefs-subtitle{color:var(--muted);font-size:12px;font-weight:700;margin:10px 0 6px}.prefs-row{display:block;width:100%}.prefs-row-label{display:none}.prefs-select{display:flex;align-items:center;gap:8px;border:1px solid #d1d5db;border-radius:6px;padding:8px;background:#fff;width:100%;position:relative}.prefs-chips{flex:1;display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-height:30px;min-width:0}.prefs-placeholder{color:#9ca3af;font-size:12px;font-weight:600}.prefs-chip{display:inline-flex;align-items:center;gap:8px;padding:4px 8px;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:999px;font-size:12px;font-weight:600;color:#374151}.prefs-chip-x{border:none;background:transparent;cursor:pointer;color:#6b7280;font-size:14px;line-height:1;padding:0}.prefs-chip-x:hover{color:#111827}.prefs-caret{width:32px;height:32px;border:none;background:transparent;border-radius:6px;cursor:pointer;color:#6b7280;font-size:14px}.prefs-caret:disabled{opacity:.45;cursor:default}.prefs-caret:hover{background:var(--bg);color:#111827}.prefs-clear{width:32px;height:32px;border:none;background:transparent;border-radius:6px;cursor:pointer;color:#6b7280;font-size:18px}.prefs-menu{position:absolute;top:calc(100% + 6px);right:8px;width:260px;max-width:calc(100% - 16px);background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 10px 28px #00000024;overflow:auto;max-height:240px;z-index:90;padding:6px}.prefs-menu-item{width:100%;border:none;background:transparent;text-align:left;padding:8px 10px;border-radius:6px;cursor:pointer;color:var(--text);font-size:13px}.prefs-menu-item:hover{background:var(--bg)}.prefs-clear:hover{background:var(--bg);color:#111827}.prefs-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid var(--line);background:#fafafa}.prefs-link{border:none;background:transparent;color:var(--blue);padding:0;cursor:pointer;font-size:13px}.prefs-link:hover{text-decoration:underline}.prefs-foot-actions{display:flex;gap:10px;align-items:center}.dash-chart-grid{stroke:#e2e2e2;stroke-width:1}.dash-chart-axis{fill:#7a7f88;font-size:11px}.dash-chart-axis-title{fill:#7a7f88;font-size:11px;font-weight:700}.dash-line{fill:none;stroke-width:2.2}.dash-line.clicks{stroke:var(--blue)}.dash-line.unique{stroke:#8f58ea}.dash-line.cost{stroke:var(--red)}.dash-line.conversions{stroke:#f25384}.dash-line.revenue{stroke:#f2c500}.dash-dot{stroke:#fff;stroke-width:1.2}.dash-dot.clicks{fill:var(--blue)}.dash-dot.unique{fill:#8f58ea}.dash-dot.conversions{fill:#f25384}.dash-dot.cost{fill:var(--red)}.dash-dot.revenue{fill:#f2c500}.dash-tooltip-line{stroke:#cfd3da;stroke-width:1}.dash-tooltip-box{fill:#2f343d;stroke:#ffffff14}.dash-tooltip-title{fill:#fff;font-size:12px;font-weight:700}.dash-tooltip-text{fill:#e5e7eb;font-size:12px}.dash-tooltip-swatch{rx:2;ry:2}.dash-tooltip-swatch.clicks{fill:var(--blue)}.dash-tooltip-swatch.unique{fill:#8f58ea}.dash-tooltip-swatch.conversions{fill:#f25384}.dash-tooltip-swatch.cost{fill:var(--red)}.dash-tooltip-swatch.revenue{fill:#f2c500}.dash-chart-legend{display:flex;gap:14px;align-items:center;justify-content:center;margin-top:8px;color:#7a7f88;font-size:12px;flex-wrap:wrap}.legend-item{display:inline-flex;gap:6px;align-items:center;border:none;background:transparent;padding:0;font:inherit;color:inherit;cursor:pointer}.legend-item.inactive{opacity:.35}.legend-item:focus{outline:2px solid #cdd6e1;outline-offset:2px}.legend-swatch{width:10px;height:10px;border-radius:2px;display:inline-block}.legend-swatch.clicks{background:var(--blue)}.legend-swatch.unique{background:#8f58ea}.legend-swatch.cost{background:var(--red)}.legend-swatch.conversions{background:#f25384}.legend-swatch.revenue{background:#f2c500}.chart-bar{width:100%;background:linear-gradient(180deg,#fe7298,#f25384);border-radius:4px 4px 0 0;min-height:4px}.dash-tables-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}@media (max-width: 1280px){.controls-grid{grid-template-columns:repeat(3,minmax(160px,1fr))}.topbar-searchbox{width:260px}.quick-badges{justify-content:flex-start;flex-wrap:wrap}.kpi-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}.dash-kpi-grid{grid-template-columns:repeat(4,minmax(140px,1fr))}.dash-tables-grid,.form-grid{grid-template-columns:1fr}.reports-filters{grid-template-columns:repeat(3,minmax(160px,1fr))}.section-toolbar{grid-template-columns:repeat(2,minmax(140px,1fr))}.campaign-toolbar{grid-template-columns:repeat(3,minmax(160px,1fr))}.campaign-builder-grid{grid-template-columns:1fr}.reports-export-grid{grid-template-columns:1fr 1fr}}@media (max-width: 900px){.sidebar{display:none}.workspace{margin-left:0}.topbar{min-height:auto;padding:10px}.topbar-right,.topbar-icon-btn{display:none}.topbar-search{justify-content:stretch}.topbar-searchbox{width:100%}.page-head{flex-direction:column;align-items:flex-start;gap:6px}.reports-filters{grid-template-columns:1fr}.dash-kpi-grid{grid-template-columns:1fr 1fr}.section-toolbar,.campaign-toolbar,.reports-export-grid{grid-template-columns:1fr}}
