:root{--bg:#f7f8fb;--surface:#fff;--text:#20212a;--muted:#7b7f8c;--border:#e4e6ec;--accent:#7657f6;--accent-2:#9b83ff;--accent-soft:#f0edff;--green:#18a76b;--red:#ef5d68;--shadow:0 2px 8px rgba(28,31,42,.05);--sidebar:246px}
.value-tags{display:flex;align-items:center;gap:4px;overflow:hidden}.value-tag{display:inline-flex;align-items:center;gap:3px;flex:none;padding:3px 5px;border:1px solid #e4e5eb;border-radius:5px;background:#fafafe;color:#595d68;font-size:10px}.value-tag i{font-style:normal;color:#737783}.drawer .form-row{display:grid;grid-template-columns:95px 1fr;align-items:start;gap:10px;color:#666a75;font-size:12px;margin:9px 0}.drawer .multi-options{display:flex;flex-wrap:wrap;gap:7px}.drawer label.multi-option{display:inline-flex;align-items:center;gap:6px;margin:0;padding:7px 9px;border:1px solid #dfe1e7;border-radius:6px;background:#fff;color:#5f626d;cursor:pointer}.drawer label.multi-option:has(input:checked){border-color:#9b83ff;background:#f2efff;color:#6545ef}.drawer .multi-option input{width:14px;min-height:14px;margin:0;padding:0;accent-color:#7657f6;box-shadow:none}
.pagination select.per-page{min-width:100px;height:34px;padding:0 28px 0 10px;margin-left:8px;border:1px solid #e0e2e8;border-radius:6px;background:#fff}.pagination .ellipsis{border-color:transparent;background:transparent}
*{box-sizing:border-box}html,body{margin:0;min-width:1024px;min-height:100%;font-family:Inter,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;color:var(--text);background:var(--bg);font-size:14px}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#fff;border-right:1px solid var(--border);padding:0 18px 62px;overflow-y:auto;z-index:20}.brand{height:72px;display:flex;align-items:center;gap:12px;color:#1f2028;text-decoration:none;font-size:18px;font-weight:720;padding:0 9px}.brand-mark{display:grid;place-items:center;width:24px;height:26px;color:#fff;background:#4b74ff;border-radius:7px 7px 10px 10px;transform:rotate(180deg);font-size:18px}.nav-group{margin:10px 0 13px}.nav-title{padding:0 10px;margin-bottom:5px;color:#9295a0;font-size:12px;font-weight:600}.nav-item{width:100%;height:38px;border:0;background:transparent;border-radius:7px;display:flex;align-items:center;gap:11px;padding:0 11px;color:#4f525d;text-align:left}.nav-item:hover{background:#f7f7fa}.nav-item.active{background:var(--accent-soft);color:#6545ef;font-weight:650}.nav-icon{width:18px;color:#646773;text-align:center}.collapse{position:fixed;bottom:0;left:0;width:var(--sidebar);height:52px;border:0;border-top:1px solid var(--border);background:#fff;color:#90939e;text-align:left;padding-left:28px}.main{margin-left:var(--sidebar);width:calc(100% - var(--sidebar));min-height:100vh}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:15}.page-heading h1{font-size:20px;line-height:1.2;margin:0;font-weight:720}.page-heading p{margin:6px 0 0;color:var(--muted);font-size:13px}.top-actions{display:flex;align-items:center;gap:18px}.freshness{color:#8b8e99;font-size:12px}.freshness i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#3ac78a;margin-right:7px}.control,.primary{height:38px;border-radius:7px;padding:0 14px;border:1px solid #dcdfe6;background:#fff;display:inline-flex;align-items:center;gap:9px;justify-content:center;font-size:13px;font-weight:550;box-shadow:0 1px 2px rgba(20,22,30,.02)}.control:hover{border-color:#c8c1fb;background:#fbfaff}.control span{color:#8d9099}.primary{border-color:var(--accent);background:var(--accent);color:#fff;box-shadow:0 4px 10px rgba(118,87,246,.19)}.primary:hover{background:#6847f0}.project-control{min-width:135px;justify-content:space-between}.page{min-height:calc(100vh - 72px)}.toolbar,.list-toolbar{height:70px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 28px}.toolbar-left,.toolbar-right,.list-filters{display:flex;align-items:center;gap:9px}.filter-notice{background:#f4f1ff;border-bottom:1px solid #ded7ff;color:#6545ef;padding:8px 28px;font-size:12px}.filter-notice button{border:0;background:transparent;color:#6545ef;text-decoration:underline}.dashboard-content{padding:18px 28px 38px}.metric-section{margin-bottom:24px}.metric-section h2{font-size:14px;margin:0 0 12px;font-weight:700}.metric-section h2 span{margin-right:8px;color:#656873}.metric-grid{display:grid;gap:14px}.metric-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.metric-grid.five{grid-template-columns:repeat(5,minmax(0,1fr))}.metric-card{background:#fff;border:1px solid var(--border);border-radius:9px;min-height:235px;padding:15px 16px 12px;box-shadow:var(--shadow);overflow:hidden}.card-head{display:flex;align-items:center;justify-content:space-between;color:#676a75;font-size:12px;font-weight:620}.card-head b{color:#aaaeba;font-weight:400}.card-head button{border:0;background:transparent;font-size:19px;line-height:1;color:#555965}.card-value-row{display:flex;align-items:baseline;gap:11px;margin-top:8px}.card-value-row strong{font-size:21px;letter-spacing:.1px}.card-value-row em{font-style:normal;font-size:12px;font-weight:650}.card-value-row small{color:#a0a3ad;font-size:10px}.up{color:var(--green)}.down{color:var(--red)}.bars{height:118px;margin-top:21px;padding:12px 2px 0;border-top:1px solid #e9eaf0;border-bottom:1px solid #e9eaf0;display:flex;align-items:flex-end;gap:4px}.bar{flex:1;min-width:3px;background:linear-gradient(180deg,#a78cff,#8264f5);border-radius:1px 1px 0 0;opacity:.93}.axis{display:flex;justify-content:space-between;color:#9699a3;font-size:9px;padding-top:7px}.conversion-grid{grid-template-columns:minmax(520px,620px)}.wide-card{min-height:220px}.line-chart{width:100%;height:116px;margin-top:4px}.line-chart polyline{fill:none;stroke:#7151f4;stroke-width:2}.line-chart .grid-lines line{stroke:#ececf1;stroke-width:1}.list-toolbar{height:86px}.search{height:38px;width:280px;border:1px solid #dcdfe6;background:#fff;border-radius:7px;display:flex;align-items:center;gap:8px;padding:0 12px;color:#9da0aa}.search:focus-within{border-color:#9b83ff;box-shadow:0 0 0 3px #eeeaff}.search input{width:100%;border:0;outline:0;background:transparent;font-size:13px}.list-content{padding:18px 28px 30px}.list-count{font-size:13px;color:#696c76;margin:0 0 13px 5px}.table-shell{background:#fff;border:1px solid var(--border);border-radius:8px;overflow:hidden;box-shadow:var(--shadow)}table{border-collapse:collapse;width:100%;table-layout:fixed}thead{background:#fafafe}th{height:48px;text-align:left;padding:0 14px;color:#666a75;font-size:12px;font-weight:650}td{height:58px;border-top:1px solid #ececf0;padding:0 14px;color:#555965;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}th:first-child{width:20%}th:nth-child(2){width:25%}th:nth-child(3),th:nth-child(4){width:12%}th:nth-child(5){width:10%}th:nth-child(6){width:15%}th:last-child{width:6%}tbody tr{transition:.15s}tbody tr:hover,tbody tr.selected{background:#f5f2ff}.product-cell{display:flex;align-items:center;gap:10px;color:#3d3f49;font-weight:600}.app-icon{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;color:#fff;font-size:15px;flex:none}.blue{background:linear-gradient(145deg,#45a7ff,#2876ee)}.black{background:#1d1f24}.purple{background:linear-gradient(145deg,#b28cff,#7657f6)}.green{background:linear-gradient(145deg,#3edaa0,#12ae73)}.red{background:linear-gradient(145deg,#ff7d85,#f44c63)}.platform{font-size:16px;color:#5d626e}.pay-icon{font-size:16px}.status{display:inline-flex;padding:3px 8px;border-radius:4px;font-size:11px}.status.live{background:#eaf9f1;color:#15945d;border:1px solid #c9efda}.status.review{background:#eaf4ff;color:#3881ce;border:1px solid #d3e8ff}.status.off{background:#f0f1f4;color:#777b85;border:1px solid #e4e5e9}.row-menu{border:0;background:transparent;font-size:19px;color:#555965}.pagination{display:flex;align-items:center;justify-content:space-between;color:#767984;font-size:12px;padding:20px 4px}.pagination>div{display:flex;gap:6px}.pagination button{min-width:34px;height:34px;border:1px solid #e0e2e8;background:#fff;border-radius:6px}.pagination button.active{background:var(--accent);color:#fff;border-color:var(--accent)}.pagination button:disabled{opacity:.45}.pagination .per-page{padding:0 12px;margin-left:8px}.drawer{position:fixed;right:0;top:72px;bottom:0;width:445px;background:#fff;border-left:1px solid var(--border);z-index:40;box-shadow:-10px 0 30px rgba(28,31,42,.08);transform:translateX(100%);transition:.24s ease;overflow-y:auto;padding-bottom:74px}.drawer.open{transform:translateX(0)}.drawer-backdrop{display:none;position:fixed;inset:72px 445px 0 var(--sidebar);z-index:30;background:rgba(34,35,45,.05)}.drawer-backdrop.open{display:block}.drawer-head{height:88px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px;padding:0 20px}.drawer-head>div{min-width:0;flex:1}.drawer-head strong{display:block;font-size:16px}.drawer-head small{display:block;color:#8c8f99;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.drawer-head>button{border:0;background:transparent;font-size:24px}.drawer form{padding:0 20px}.drawer fieldset{border:0;border-bottom:1px solid var(--border);padding:18px 0;margin:0}.drawer legend{display:flex;justify-content:space-between;width:100%;font-size:13px;font-weight:700;margin-bottom:14px}.drawer label{display:grid;grid-template-columns:95px 1fr;align-items:center;gap:10px;color:#666a75;font-size:12px;margin:9px 0}.drawer input,.drawer select,.drawer textarea{width:100%;min-height:34px;border:1px solid #dfe1e7;border-radius:6px;padding:7px 10px;background:#fff;font-size:12px;outline:0}.drawer textarea{height:55px;resize:none}.drawer input:focus,.drawer select:focus,.drawer textarea:focus{border-color:#9b83ff;box-shadow:0 0 0 3px #eeeaff}.drawer-actions{position:fixed;right:0;bottom:0;width:445px;height:70px;background:#fff;border-top:1px solid var(--border);display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:0 20px}.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,30px);background:#252630;color:#fff;padding:11px 18px;border-radius:7px;opacity:0;pointer-events:none;z-index:80;transition:.25s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1450px){:root{--sidebar:220px}.metric-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-grid.five{grid-template-columns:repeat(3,minmax(0,1fr))}.freshness{display:none}.metric-card{min-height:220px}}

/* Shared simulated pages */
.generic-page{background:#f7f7fa;min-height:calc(100vh - 72px)}
.generic-toolbar{display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid var(--border);background:#fff}
.generic-toolbar .toolbar-left,.generic-toolbar .toolbar-right{display:flex;align-items:center;gap:10px}
.generic-toolbar select,.generic-toolbar input{height:38px;border:1px solid #dcdfe6;background:#fff;border-radius:7px;padding:0 12px;color:#555965;outline:0;font-size:12px}
.generic-toolbar input{width:240px}
.generic-toolbar select:focus,.generic-toolbar input:focus{border-color:#9b83ff;box-shadow:0 0 0 3px #eeeaff}
.generic-content{padding:24px 28px 40px}
.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.summary-card{background:#fff;border:1px solid var(--border);border-radius:9px;padding:17px 18px;box-shadow:var(--shadow);min-height:108px}
.summary-card span{display:block;color:#797c86;font-size:12px;margin-bottom:12px}
.summary-card strong{font-size:24px;letter-spacing:-.3px}
.summary-card small{display:block;color:#989ba5;font-size:10px;margin-top:8px}
.summary-card small.up{color:var(--green)}.summary-card small.down{color:var(--red)}
.analytics-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:16px}
.trend-panel,.breakdown-panel,.data-panel,.funnel-panel,.cohort-panel,.settings-form{background:#fff;border:1px solid var(--border);border-radius:9px;box-shadow:var(--shadow)}
.trend-panel,.breakdown-panel,.funnel-panel,.cohort-panel{padding:18px}
.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.panel-head strong{font-size:14px}.panel-head span{font-size:11px;color:#999ca5}
.trend-svg{width:100%;height:250px}.trend-svg .chart-axis line{stroke:#ececf1;stroke-width:1}.trend-svg polyline{fill:none;stroke:#7657f6;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.trend-svg .area{fill:url(#trendFill);stroke:none}
.breakdown-list{display:grid;gap:17px}.breakdown-row{display:grid;grid-template-columns:90px 1fr 50px;align-items:center;gap:12px;font-size:12px;color:#666a75}.breakdown-row b{text-align:right;color:#454852}.breakdown-track{height:7px;background:#eeedf4;border-radius:5px;overflow:hidden}.breakdown-track i{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#9a83ff,#7151f4)}
.data-panel{overflow:hidden}.data-panel+.data-panel{margin-top:16px}.data-panel .panel-head{padding:17px 18px 0}
.generic-table{table-layout:auto;min-width:780px}.generic-table th,.generic-table th:first-child,.generic-table th:nth-child(2),.generic-table th:nth-child(3),.generic-table th:nth-child(4),.generic-table th:nth-child(5),.generic-table th:nth-child(6),.generic-table th:last-child{width:auto!important;padding:0 18px}.generic-table td{padding:0 18px}.generic-table tbody tr{cursor:pointer}
.text-button{border:0;background:transparent;color:#7151f4;font-size:12px;font-weight:600;padding:6px;cursor:pointer}
.funnel-panel{padding-bottom:26px}.funnel-steps{display:flex;align-items:flex-end;gap:12px;min-height:270px;padding:20px 3% 0}.funnel-step{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-width:120px}.funnel-step strong{font-size:20px;margin-bottom:7px}.funnel-step span{font-size:11px;color:#7a7d87;margin-bottom:12px}.funnel-bar{width:100%;min-height:58px;border-radius:7px 7px 2px 2px;background:linear-gradient(180deg,#a98fff,#7657f6);display:grid;place-items:center;color:#fff;font-size:12px;font-weight:650;box-shadow:0 8px 20px rgba(118,87,246,.12)}
.cohort-panel{overflow:auto}.cohort-grid{min-width:830px}.cohort-row{display:grid;grid-template-columns:150px repeat(7,minmax(76px,1fr));gap:5px;margin:5px 0}.cohort-row>span{min-height:38px;display:grid;place-items:center;border-radius:5px;background:#f6f5fa;color:#696c76;font-size:11px}.cohort-row.head>span{background:transparent;font-weight:650}.cohort-row>span.heat{color:#fff;background:rgba(118,87,246,var(--heat,.5))}
.entity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.entity-card{background:#fff;border:1px solid var(--border);border-radius:9px;padding:18px;box-shadow:var(--shadow);cursor:pointer;transition:.18s}.entity-card:hover,.entity-card.selected{border-color:#aa96ff;transform:translateY(-1px);box-shadow:0 8px 24px rgba(51,43,89,.08)}.entity-head{display:flex;align-items:center;gap:12px}.entity-head>div{min-width:0}.entity-head strong{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.entity-head small{display:block;color:#9699a3;margin-top:4px}.entity-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;color:#fff;font-size:16px;background:linear-gradient(145deg,#8d72ff,#6748e8);flex:none}.entity-icon.orange{background:linear-gradient(145deg,#ffb86a,#f18a33)}.entity-icon.red{background:linear-gradient(145deg,#ff858d,#ed5062)}.entity-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;border-top:1px solid #eeeeF2;margin-top:16px;padding-top:15px}.entity-meta span{font-size:10px;color:#9699a3}.entity-meta b{display:block;color:#4b4e58;font-size:12px;margin-top:5px}
.settings-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:16px}.settings-nav{background:#fff;border:1px solid var(--border);border-radius:9px;padding:9px;height:max-content}.settings-nav button{width:100%;height:40px;text-align:left;border:0;background:transparent;border-radius:6px;padding:0 12px;color:#666a75;font-size:12px}.settings-nav button.active{background:#f1edff;color:#6748e8;font-weight:650}.settings-form{padding:22px}.settings-form h3{font-size:15px;margin:0 0 20px}.field-row{display:grid;grid-template-columns:180px minmax(260px,520px);gap:20px;align-items:center;padding:13px 0;border-bottom:1px solid #f0f0f3}.field-row>label{font-size:12px;color:#555965}.field-row input,.field-row select{height:38px;border:1px solid #dcdfe6;border-radius:7px;padding:0 11px;outline:0}.switch-row{display:flex;align-items:center;gap:10px;font-size:12px;color:#777b85}.switch{width:38px;height:22px;border-radius:12px;background:#d9dbe1;padding:3px}.switch.on{background:#7657f6}.switch i{display:block;width:16px;height:16px;border-radius:50%;background:#fff;transition:.2s}.switch.on i{transform:translateX(16px)}.settings-actions{display:flex;justify-content:flex-end;padding-top:20px}
.empty-state{background:#fff;border:1px dashed #dfe0e7;border-radius:9px;padding:70px 20px;text-align:center;color:#8e919a}.empty-state strong{display:block;color:#555965;margin-bottom:7px}
@media(max-width:1450px){.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.entity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-layout{grid-template-columns:1fr}.generic-content{padding:20px}.generic-toolbar{padding:0 20px}}

/* Renderer-specific alignment */
.summary-card{position:relative;display:grid;grid-template-columns:1fr auto;align-items:start;gap:8px;overflow:hidden}
.summary-card>div{position:relative;z-index:1}.summary-card em{font-style:normal;font-size:11px;font-weight:650;margin-top:4px;position:relative;z-index:1}.summary-card em.neutral{color:#777b85}
.summary-card svg{position:absolute;right:14px;bottom:13px;width:92px;height:36px}.summary-card svg polyline{fill:none;stroke:#8a6ff7;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.trend-svg g line{stroke:#ececf1;stroke-width:1}.trend-panel .chart-axis{display:flex;justify-content:space-between;color:#9699a3;font-size:10px;padding:0 20px}
.breakdown-row{grid-template-columns:1fr;gap:7px}.breakdown-row>div{display:flex;justify-content:space-between}.breakdown-row>div strong{color:#555965}.breakdown-row>i{display:block;height:7px;background:#eeedf4;border-radius:5px;overflow:hidden}.breakdown-row>i>b{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#9a83ff,#7151f4)}
.funnel-panel{display:flex;align-items:stretch;gap:12px;min-height:245px;padding:24px}.funnel-step{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-width:110px}.funnel-step>div{width:100%;height:calc(68px + (4 - var(--step))*34px);display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(180deg,#a98fff,#7657f6);color:#fff;border-radius:8px 8px 3px 3px}.funnel-step span{font-size:11px;opacity:.9}.funnel-step strong{font-size:21px;margin-top:7px}.funnel-step em{font-style:normal;color:#777b85;font-size:11px;margin-top:10px}
.cohort-table{padding:0 18px 20px;min-width:860px}.cohort-row{grid-template-columns:150px 90px repeat(6,minmax(70px,1fr));align-items:center}.cohort-row>strong,.cohort-row>i{min-height:38px;display:grid;place-items:center;border-radius:5px;font-size:11px;font-style:normal}.cohort-row>strong{color:#555965;background:#f6f5fa}.cohort-row>i{color:#fff;background:rgba(118,87,246,calc(.2 + var(--alpha)*.8))}.cohort-row.cohort-head span{background:transparent;font-weight:650}
.entity-top{display:flex;align-items:center;justify-content:space-between}.entity-top button{border:0;background:transparent;color:#777b85;font-size:18px}.entity-card h2{font-size:14px;margin:14px 0 7px}.entity-card>strong{display:block;font-size:25px}.entity-card>p{color:#8a8d97;font-size:11px;line-height:1.6;min-height:36px}.entity-card footer{border-top:1px solid #eeeeF2;margin-top:15px;padding-top:13px;display:flex;align-items:center;justify-content:space-between;color:#8c8f99;font-size:10px}
.settings-form>section{padding-bottom:22px;margin-bottom:20px;border-bottom:1px solid #eeeeF2}.settings-form h2{font-size:15px;margin:0 0 5px}.settings-form section>p{color:#8e919a;font-size:11px;margin:0 0 18px}.settings-form section>label:not(.switch-row){display:grid;grid-template-columns:180px minmax(260px,520px);align-items:center;gap:18px;min-height:54px;color:#555965;font-size:12px}.settings-form input,.settings-form select{height:38px;border:1px solid #dcdfe6;border-radius:7px;padding:0 11px;outline:0;background:#fff}.settings-form .switch-row{justify-content:space-between;max-width:700px;min-height:44px}.settings-form .switch-row input{width:36px;height:20px;accent-color:#7657f6}
.list-count #productDataSource{color:#989ba5;font-size:11px;margin-left:4px}
