:root{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display",Inter,"Segoe UI",sans-serif;color-scheme:light;--bg:#f6f7fa;--surface:#fff;--surface-alt:#fafbfc;--surface-hover:#f4f6f9;--text:#202737;--muted:#868c98;--border:#e9ecf1;--line:#edf0f4;--shadow:0 4px 20px rgba(30,40,65,.035);--accent:#4778ed;--accent-rgb:71,120,237;--accent-soft:#edf3ff;--success:#22977f;--warn:#d48a36;--danger:#d85e65;--sidebar:#fff;--height:1;--radius:17px}
:root[data-palette=forest]{--accent:#397b69;--accent-rgb:57,123,105;--accent-soft:#e9f5f0}
:root[data-palette=copper]{--accent:#b47150;--accent-rgb:180,113,80;--accent-soft:#fbf0e9}
:root[data-palette=graphite]{--accent:#61738d;--accent-rgb:97,115,141;--accent-soft:#eef1f6}
:root[data-theme=night]{color-scheme:dark;--bg:#101722;--surface:#1a2331;--surface-alt:#212c3a;--surface-hover:#2a3646;--text:#eef2f8;--muted:#98a5b5;--border:#2c394b;--line:#2b3545;--shadow:0 8px 35px rgba(0,0,0,.09);--sidebar:#151e2b;--accent:#87adff;--accent-rgb:135,173,255;--accent-soft:#283a57;--success:#67ccb0;--warn:#efbe81;--danger:#f08b8f}
:root[data-theme=night][data-palette=forest]{--accent:#88cab0;--accent-rgb:136,202,176;--accent-soft:#244238}
:root[data-theme=night][data-palette=copper]{--accent:#e4ac86;--accent-rgb:228,172,134;--accent-soft:#4a352e}
:root[data-theme=night][data-palette=graphite]{--accent:#bdcadc;--accent-rgb:189,202,220;--accent-soft:#303d4e}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg)}body{color:var(--text);font-size:14px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(var(--accent-rgb),.35);outline-offset:2px}a{color:var(--accent);text-decoration:none}svg{display:block;width:100%;height:100%;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin-top:0}button{border:0;background:transparent;color:inherit}.hidden{display:none!important}.muted{color:var(--muted)}.mono{font-variant-numeric:tabular-nums}.small{font-size:12px}.app-shell{display:flex;min-height:100vh}.sidebar{width:250px;flex:0 0 250px;background:var(--sidebar);border-right:1px solid var(--border);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;padding:28px 17px 18px;z-index:25}.brand{display:flex;align-items:center;gap:10px;padding-left:12px;margin-bottom:35px}.brand-symbol{width:35px;height:35px;background:var(--text);color:var(--surface);border-radius:12px;display:grid;place-items:center;padding:8px}.brand-copy{font-weight:800;letter-spacing:-1.7px;font-size:26px;line-height:1}.brand-dot{color:var(--accent)}.brand-copy small{display:block;font-size:7.5px;letter-spacing:1.8px;font-weight:700;color:var(--muted);margin-top:6px}.workspace{display:flex;align-items:center;text-align:left;gap:11px;border:1px solid var(--border);background:var(--surface-alt);border-radius:12px;padding:11px;margin-bottom:32px;min-width:0;width:100%}.workspace-mark{width:33px;height:33px;background:#e7eaf1;color:#4f5c72;border-radius:9px;display:grid;place-items:center;font-size:14px;font-weight:800}.workspace-info{flex:1;min-width:0}.workspace-info strong,.workspace-info small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-info strong{font-size:12.5px}.workspace-info small{font-size:10px;color:var(--muted);margin-top:4px}.chevron{color:var(--muted)}.nav-label{font-size:9px;letter-spacing:1.5px;color:#a3aab5;font-weight:800;padding:0 17px;margin-bottom:13px}.sublabel{margin-top:35px}.main-nav{display:flex;flex-direction:column;gap:4px}.nav-item{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:13px 15px;border-radius:10px;font-size:12.5px;font-weight:590;color:var(--muted);transition:background .18s,color .18s}.nav-item:hover{background:var(--surface-hover);color:var(--text)}.nav-item.active{background:var(--accent-soft);color:var(--accent);font-weight:700}.nav-icon{width:17px;height:17px;flex:none}.nav-pill{margin-left:auto;font-size:10px;border-radius:5px;background:var(--surface-alt);padding:3px 6px;color:var(--muted)}.sidebar-bottom{margin-top:auto}.side-insight{border:1px solid var(--border);border-radius:12px;padding:16px;background:var(--surface-alt)}.side-insight-head{display:flex;align-items:center;gap:8px;font-size:11px}.mini-signal{background:var(--warn);width:7px;height:7px;border-radius:50%}.side-insight p{color:var(--muted);font-size:11px;line-height:1.6;margin:10px 0}.side-insight button{font-size:10.5px;color:var(--accent);font-weight:700;padding:0;display:flex;justify-content:space-between;width:100%}.sidebar-footer{display:flex;align-items:center;gap:10px;margin-top:22px;padding:16px 5px 0;border-top:1px solid var(--border)}.avatar,.top-avatar{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;background:#d8e2f0;color:#52657b;font-weight:700;font-size:12px}.sidebar-footer div:nth-child(2){flex:1}.sidebar-footer strong,.sidebar-footer small{display:block}.sidebar-footer strong{font-size:11px}.sidebar-footer small{font-size:10px;color:var(--muted);margin-top:3px}.sidebar-footer button{width:17px;color:var(--muted)}.main-content{min-width:0;flex:1}.topbar{height:77px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 42px}.crumb{display:flex;align-items:center;gap:14px;font-size:12px;color:var(--muted)}.crumb strong{color:var(--text);font-weight:650}.crumb-separator{color:var(--border)}.top-actions{display:flex;align-items:center;gap:15px}.mode-label{background:var(--surface-hover);color:var(--muted);border:1px solid var(--border);border-radius:6px;font-size:9px;letter-spacing:1px;font-weight:800;padding:7px 9px}.icon-btn{display:grid;place-items:center;width:34px;height:34px;border-radius:9px}.icon-btn:hover{background:var(--surface-hover)}.icon-btn svg{width:19px;height:19px;color:var(--muted)}.theme-toggle{display:flex;gap:8px;align-items:center;border:1px solid var(--border);border-radius:10px;padding:9px 12px;font-size:11px;font-weight:650;background:var(--surface-alt)}.theme-toggle svg{width:15px;height:15px}.top-avatar{width:32px;height:32px}.mobile-left{display:none}.demo-banner{max-width:1352px;margin:24px auto -12px;padding:12px 18px;background:var(--accent-soft);border:1px solid rgba(var(--accent-rgb),.13);border-radius:11px;display:flex;align-items:center;gap:11px;color:var(--text);font-size:11px}.demo-banner>span:first-child{width:16px;height:16px;color:var(--accent);flex:none}.demo-banner button{margin-left:auto;color:var(--accent);font-weight:720;font-size:11px;white-space:nowrap}.page{padding:35px 42px 70px;max-width:1436px;margin:0 auto}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:27px;gap:20px}.eyebrow{font-size:10px;font-weight:760;letter-spacing:1.4px;color:var(--accent);margin-bottom:9px}.page-header h1{font-size:28px;letter-spacing:-.95px;font-weight:760;margin:0 0 7px}.page-subtitle{font-size:12px;color:var(--muted);line-height:1.5}.header-controls{display:flex;align-items:center;gap:10px}.btn{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);padding:10px 14px;border-radius:10px;background:var(--surface);font-size:11px;font-weight:720;white-space:nowrap;min-height:36px;box-shadow:var(--shadow)}.btn:hover{background:var(--surface-hover)}.btn svg{width:14px;height:14px}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 3px 9px rgba(var(--accent-rgb),.15)}:root[data-theme=night] .btn.primary{color:#111824}.btn.ghost{box-shadow:none;background:transparent}.btn-danger{color:var(--danger)}.period-control{display:flex;align-items:center;background:var(--surface);border:1px solid var(--border);padding:3px;border-radius:10px}.period-control button{padding:8px 11px;font-size:10.5px;color:var(--muted);border-radius:7px}.period-control button.selected{background:var(--accent-soft);color:var(--accent);font-weight:750}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.surface{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0}.kpi{padding:20px 22px 19px;min-height:148px}.kpi-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.kpi-label{font-size:12px;font-weight:650;color:var(--muted)}.kpi-icon{width:32px;height:32px;border-radius:9px;background:var(--surface-alt);display:grid;place-items:center;color:var(--muted)}.kpi-icon svg{width:17px;height:17px}.kpi-value{font-size:30px;letter-spacing:-1.3px;font-weight:760;line-height:1.05;white-space:nowrap}.kpi-note{display:flex;align-items:center;gap:7px;font-size:10.5px;color:var(--muted);margin-top:15px}.delta{color:var(--success);background:rgba(40,160,120,.09);padding:4px 6px;border-radius:5px;font-weight:720}.delta.orange{color:var(--warn);background:rgba(213,136,55,.11)}.content-grid{display:grid;grid-template-columns:minmax(0,1.95fr) minmax(275px,1fr);gap:18px;margin-top:18px}.section-inner{padding:23px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:20px}.section-heading h2,.section-heading h3{font-size:14px;font-weight:740;letter-spacing:-.17px;margin:0}.section-heading small{font-size:10.5px;color:var(--muted)}.section-icon{width:30px;height:30px;background:var(--surface-alt);padding:7px;border-radius:9px;color:var(--muted)}.chart-head{display:flex;align-items:baseline;gap:8px;margin-bottom:7px}.chart-head strong{font-size:25px;font-weight:770;letter-spacing:-.9px}.chart-head small{font-size:11px;color:var(--muted)}.chart{height:232px;margin-top:14px;position:relative}.chart svg{width:100%;height:100%;overflow:visible}.chart path.trend-area{fill:rgba(var(--accent-rgb),.07);stroke:none}.chart polyline{stroke:var(--accent);stroke-width:2.8;stroke-linejoin:round;stroke-linecap:round;fill:none}.chart .gridline{stroke:var(--line);stroke-width:1;stroke-dasharray:4 4}.chart-axis{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin-top:12px}.legend{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10.5px}.legend-dot{background:var(--accent);width:7px;height:7px;border-radius:50%}.source-row{display:flex;gap:12px;align-items:center;margin-bottom:23px}.source-identity{width:30px;height:30px;flex:none;border:1px solid var(--border);border-radius:9px;display:grid;place-items:center;background:var(--surface-alt);font-weight:800;font-size:12px}.source-text{min-width:0;flex:1}.source-name{display:flex;justify-content:space-between;gap:12px;font-size:11px;font-weight:680;margin-bottom:8px}.source-name span:last-child{font-weight:700}.source-track{height:5px;background:var(--surface-hover);border-radius:9px;overflow:hidden}.source-track span{display:block;height:100%;background:var(--accent);border-radius:9px}.source-row:nth-child(3) .source-track span{background:var(--success)}.source-row:nth-child(4) .source-track span{background:#c9a7da}.source-row:nth-child(5) .source-track span{background:#d5a876}.text-link{display:inline-flex;align-items:center;gap:8px;font-size:11px;color:var(--accent);font-weight:710}.data-note{padding:13px 16px;border-radius:10px;background:var(--surface-alt);border:1px solid var(--border);font-size:11px;color:var(--muted);line-height:1.55}.data-note strong{color:var(--text)}.order-section{margin-top:18px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;text-align:left;min-width:650px}.data-table th{font-size:10px;color:var(--muted);font-weight:680;background:var(--surface-alt);padding:14px 20px;border-bottom:1px solid var(--border)}.data-table td{padding:16px 20px;border-bottom:1px solid var(--line);font-size:11px}.data-table tbody tr{cursor:pointer}.data-table tbody tr:hover{background:var(--surface-hover)}.data-table tbody tr:last-child td{border-bottom:none}.order-id{font-weight:720}.table-money{font-weight:750;white-space:nowrap}.status{display:inline-flex;align-items:center;gap:6px;font-size:10px;border-radius:6px;padding:6px 8px;font-weight:650;background:var(--surface-alt);color:var(--muted)}.status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.status.good{color:var(--success);background:rgba(40,160,120,.09)}.status.wait{color:var(--warn);background:rgba(213,136,55,.09)}.status.bad{color:var(--danger);background:rgba(220,92,95,.09)}.status.neutral{color:var(--muted)}.table-footer{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.table-footer button{color:var(--accent);font-weight:710}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:18px}.three-column{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.integration-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.integration-card{padding:23px;display:flex;flex-direction:column;gap:14px;min-height:202px}.integration-head{display:flex;justify-content:space-between;align-items:start}.platform-logo{width:44px;height:44px;border-radius:13px;border:1px solid var(--border);display:grid;place-items:center;background:var(--surface-alt);font-weight:780;font-size:17px}.platform-meta{color:#1877f2}.platform-google{color:#4285f4}.platform-tiktok{color:var(--text)}.platform-pinterest{color:#d23243}.platform-email{color:#479d83}.integration-card h3{margin:0;font-size:14px;font-weight:770}.integration-card p{font-size:11px;color:var(--muted);line-height:1.5;margin:6px 0 0;min-height:34px}.integration-card .btn{margin-top:auto;justify-content:center;box-shadow:none}.alert-note{background:var(--accent-soft);padding:16px 18px;border:1px solid rgba(var(--accent-rgb),.13);border-radius:12px;font-size:11px;line-height:1.7;display:flex;gap:12px;align-items:start}.alert-note svg{width:20px;height:20px;flex:none;color:var(--accent)}.metric-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.metric-strip>div{border-radius:11px;border:1px solid var(--border);padding:18px;background:var(--surface-alt)}.metric-strip strong{font-size:22px;display:block;margin-top:12px;letter-spacing:-.8px}.metric-strip span{color:var(--muted);font-size:11px}.attribution-bar{height:14px;width:100%;border-radius:9px;overflow:hidden;display:flex;background:var(--surface-hover);margin:22px 0}.attribution-bar>span:nth-child(1){background:var(--accent)}.attribution-bar>span:nth-child(2){background:var(--success)}.attribution-bar>span:nth-child(3){background:#c7ceda}.attr-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.attr-grid strong{display:block;font-size:18px}.attr-grid small{color:var(--muted);font-size:10px;line-height:1.4}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--accent);margin-right:6px}.dot.inferred{background:var(--success)}.dot.unknown{background:#c7ceda}.settings-section{padding:22px}.settings-section h2{font-size:14px;margin:0 0 8px}.settings-section p{font-size:11px;color:var(--muted);margin:0 0 22px;line-height:1.6}.color-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.color-choice{border:1px solid var(--border);padding:12px;background:var(--surface-alt);border-radius:12px;text-align:left;min-height:100px}.color-choice.selected{border-color:var(--accent);box-shadow:0 0 0 2px rgba(var(--accent-rgb),.12)}.color-swatch{width:38px;height:38px;border-radius:10px;margin-bottom:9px}.color-choice strong{font-size:11px;display:block}.color-choice small{color:var(--muted);font-size:9px;display:block;margin-top:4px}.theme-card{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--border);border-radius:12px;padding:14px 17px;background:var(--surface-alt);gap:15px}.theme-card strong{display:block;font-size:12px}.theme-card small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.form-row{display:flex;align-items:center;gap:12px}.input{height:38px;border:1px solid var(--border);border-radius:9px;background:var(--surface);padding:0 12px;color:var(--text);outline:0;min-width:0}.search-input{width:240px}.small-select{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:9px;padding:9px 10px;font-size:11px;min-height:36px}.empty{padding:58px 24px;text-align:center;color:var(--muted)}.empty svg{width:30px;height:30px;margin:0 auto 14px;color:var(--accent)}.empty h3{color:var(--text);font-size:14px}.empty p{font-size:12px;max-width:330px;margin:0 auto 20px;line-height:1.7}.empty .btn{margin:auto}.health-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:17px 0;gap:15px}.health-row:last-child{border:0}.health-row strong{display:block;font-size:11px}.health-row small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.health-row button{font-size:10px;color:var(--accent);font-weight:700}.health-empty{margin-top:16px}.backdrop{position:fixed;inset:0;background:rgba(10,16,28,.46);z-index:45;backdrop-filter:blur(3px)}.modal-root{position:fixed;inset:0;z-index:50;pointer-events:none;display:flex;justify-content:center;align-items:center;padding:20px}.modal{pointer-events:auto;max-width:480px;width:100%;max-height:90vh;overflow:auto;border-radius:20px;background:var(--surface);border:1px solid var(--border);box-shadow:0 24px 80px rgba(0,0,0,.18);padding:27px}.modal-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.modal-top h2{font-size:19px;letter-spacing:-.5px;margin:0}.modal .close{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:var(--surface-alt);font-size:18px;color:var(--muted)}.modal p{font-size:12px;line-height:1.75;color:var(--muted)}.modal label{font-size:11px;font-weight:680;display:block;margin:18px 0 7px}.modal .input{width:100%;height:44px}.modal .btn.primary{width:100%;justify-content:center;margin-top:15px}.modal-details{margin-top:20px;padding:15px;background:var(--surface-alt);border-radius:10px;border:1px solid var(--border);font-size:11px;line-height:1.75}.modal-details strong{display:block;margin-bottom:5px}.modal-details p{margin:0}.toast-root{position:fixed;right:24px;bottom:24px;z-index:75;pointer-events:none;display:flex;flex-direction:column;gap:8px}.toast{background:var(--text);color:var(--surface);padding:13px 17px;border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.15);font-size:12px}.pagination-note{font-size:10px;color:var(--muted)}.mobile-brand{display:none}.hamburger{display:none}.details-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:20px 0}.details-grid div{padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-alt)}.details-grid small{display:block;color:var(--muted);font-size:10px;margin-bottom:7px}.details-grid strong{font-size:14px}.badge-title{display:flex;align-items:center;gap:9px}.badge-title svg{width:20px;height:20px;color:var(--accent)}.mb18{margin-bottom:18px}.mb24{margin-bottom:24px}.mt18{margin-top:18px}.mt24{margin-top:24px}.right{text-align:right}
@media(max-width:1250px){.sidebar{width:220px;flex-basis:220px}.topbar{padding:0 27px}.page{padding:30px 28px 65px}.kpi{padding:18px}.kpi-value{font-size:26px}.content-grid{grid-template-columns:minmax(0,1.6fr) minmax(255px,1fr)}}
@media(max-width:1020px){.sidebar{width:70px;flex-basis:70px;padding:20px 10px}.brand{padding-left:7px;margin-bottom:24px}.brand-copy,.workspace,.nav-label,.nav-item span:not(.nav-icon),.nav-pill,.side-insight,.sidebar-footer div:not(.avatar),.sidebar-footer button{display:none}.main-nav{gap:8px}.nav-item{justify-content:center;padding:12px}.nav-icon{width:20px;height:20px}.sidebar-bottom{display:flex;justify-content:center}.sidebar-footer{border:0}.sidebar-footer .avatar{display:grid}.content-grid{grid-template-columns:1fr}.integration-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.sidebar{position:fixed;top:0;bottom:0;left:0;width:260px;transform:translateX(-105%);transition:transform .2s;padding:25px 17px;box-shadow:0 20px 60px rgba(0,0,0,.2)}.sidebar.open{transform:translateX(0)}.sidebar.open .brand-copy,.sidebar.open .workspace,.sidebar.open .nav-label,.sidebar.open .nav-item span:not(.nav-icon),.sidebar.open .nav-pill,.sidebar.open .side-insight,.sidebar.open .sidebar-footer div:not(.avatar),.sidebar.open .sidebar-footer button{display:block}.sidebar.open .nav-item{justify-content:start}.sidebar.open .sidebar-bottom{display:block}.main-content{width:100%}.topbar{height:64px;padding:0 18px}.mobile-left{display:flex;align-items:center;gap:10px}.mobile-brand{display:inline;font-size:23px;font-weight:800;letter-spacing:-1.3px}.mobile-brand span{color:var(--accent)}.hamburger{display:grid}.crumb{display:none}.top-actions{gap:5px}.mode-label{display:none}.top-avatar{display:none}.page{padding:26px 16px 45px}.page-header{align-items:start;flex-direction:column;gap:18px;margin-bottom:20px}.page-header h1{font-size:25px}.header-controls{width:100%;justify-content:space-between;flex-wrap:wrap}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.kpi{min-height:125px;padding:15px}.kpi-top{margin-bottom:17px}.kpi-label{font-size:10px}.kpi-icon{width:27px;height:27px}.kpi-value{font-size:23px}.kpi-note{font-size:9px;margin-top:10px}.section-inner{padding:18px}.two-column,.three-column{grid-template-columns:1fr}.integration-grid{grid-template-columns:1fr}.chart{height:176px}.demo-banner{margin:12px 14px 0;font-size:10px;align-items:flex-start;padding:12px}.demo-banner button{display:none}.modal{padding:21px}.color-grid{grid-template-columns:repeat(2,1fr)}.search-input{width:100%}.form-row{width:100%;flex-wrap:wrap}.metric-strip{grid-template-columns:1fr 1fr}.theme-toggle{padding:8px;font-size:10px}}
@media(max-width:400px){.kpi-value{font-size:20px}.kpi-note{font-size:8.5px}.period-control button{padding:8px}.btn{padding:9px}.metric-strip{grid-template-columns:1fr}.topbar{padding:0 12px}}

/* TRACE Live Commerce — same Apple shell, optional Night palette. 60 / 30 / 10 hierarchy. */
.live-pulsebar{display:flex;align-items:center;gap:12px;border:1px solid var(--border);background:var(--surface);border-radius:13px;padding:13px 18px;margin-bottom:17px;font-size:11px;color:var(--muted);box-shadow:var(--shadow)}
.live-pulsebar strong{color:var(--text);font-size:11px}.live-last-update{margin-left:auto}.live-led{height:8px;width:8px;flex:none;border-radius:50%;background:var(--success);box-shadow:0 0 0 5px rgba(40,160,120,.10)}.live-led.simulation{background:var(--warn);box-shadow:0 0 0 5px rgba(213,136,55,.10)}.live-led.stale{background:var(--danger);box-shadow:0 0 0 5px rgba(220,92,95,.10)}
.live-metric-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin-bottom:17px}.live-stat{padding:18px 18px 13px;overflow:hidden;min-height:143px}.live-stat-heading{color:var(--muted);font-weight:660;display:flex;justify-content:space-between;align-items:center;font-size:11px}.live-stat-heading span{color:var(--muted);width:13px;height:13px;opacity:.65}.live-stat-value{display:block;font-size:clamp(20px,2vw,31px);font-weight:780;letter-spacing:-1.2px;margin:16px 0 7px;line-height:1.1;white-space:nowrap}.live-stat-value.profit-accent{color:var(--success)}.live-stat small{font-size:9px;color:var(--muted);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini-bars{height:14px;display:flex;gap:3px;align-items:flex-end;margin-top:13px}.mini-bars i{display:block;flex:1;height:40%;background:var(--accent);opacity:.13;border-radius:2px}.mini-bars i:nth-child(2),.mini-bars i:nth-child(7){height:50%;opacity:.25}.mini-bars i:nth-child(3),.mini-bars i:nth-child(9){height:65%;opacity:.32}.mini-bars i:nth-child(5),.mini-bars i:nth-child(11){height:80%;opacity:.36}.mini-bars i:nth-child(6),.mini-bars i:nth-child(10){height:100%;opacity:.56}
.live-layout{display:grid;grid-template-columns:minmax(170px,.75fr) minmax(320px,2.25fr) minmax(255px,1.05fr);gap:15px;align-items:stretch}.live-city-panel,.live-map-panel,.live-orders-panel{padding:18px;min-height:462px}.live-city-panel,.live-orders-panel{display:flex;flex-direction:column}.live-panel-title,.live-map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px}.live-panel-title h2,.live-map-toolbar h2{font-size:13px;letter-spacing:-.2px;margin:0;font-weight:760}.live-panel-title small,.live-map-toolbar small{color:var(--muted);font-size:9px}.live-city{margin-top:21px}.live-city-title{display:flex;justify-content:space-between;gap:7px;font-size:10px}.live-city-title strong{font-weight:630;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-city-title span{color:var(--muted)}.live-track{height:6px;background:var(--surface-hover);border-radius:8px;overflow:hidden;margin-top:9px}.live-track span{display:block;background:var(--accent);border-radius:8px;height:100%;opacity:.77}.live-city-foot{margin-top:auto;padding-top:22px;color:var(--muted);font-size:9px;line-height:1.5}.live-geo-empty{padding:37px 4px;color:var(--muted);font-size:11px;line-height:1.65;display:grid;gap:14px}.live-geo-empty svg{height:21px;width:21px;color:var(--accent)}
.live-map-panel{display:flex;flex-direction:column;overflow:hidden}.live-map-toolbar{align-items:start}.live-map-toolbar h2{margin-bottom:6px}.live-toggle{display:flex;border:1px solid var(--border);background:var(--surface-alt);border-radius:9px;padding:3px;gap:3px}.live-toggle button{font-size:10px;border-radius:6px;padding:6px 10px;color:var(--muted)}.live-toggle button.selected{background:var(--surface);box-shadow:0 1px 4px rgba(0,0,0,.09);color:var(--text);font-weight:720}.live-geo-wrap{flex:1;display:grid;place-items:center;position:relative;min-height:348px}.live-globe{max-height:390px;max-width:100%;height:auto;width:100%;filter:drop-shadow(0 14px 22px rgba(38,74,108,.08))}.live-flat{max-width:100%;height:auto;color:var(--accent)}.live-geo-caption{position:absolute;bottom:5px;left:0;right:0;text-align:center;font-size:9px;color:var(--muted)}.globe-base{stroke:rgba(var(--accent-rgb),.22);stroke-width:1.2}.globe-rim{fill:none;stroke:rgba(var(--accent-rgb),.25);stroke-width:1}.globe-land{color:var(--accent)}.live-pin{fill:var(--success);filter:drop-shadow(0 0 5px var(--success))}.live-map-footer{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:10px}.live-key{display:flex;align-items:center;gap:7px}.live-key i{width:6px;height:6px;border-radius:50%;background:var(--success)}
.live-order-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--success);margin-right:7px;box-shadow:0 0 0 4px rgba(40,160,120,.09)}.live-order-feed{overflow-y:auto;max-height:383px;margin-top:8px;min-height:320px}.live-feed-row{display:flex;gap:9px;align-items:center;padding:12px 2px;border-bottom:1px solid var(--line);text-align:left;width:100%}.live-feed-row:hover{background:var(--surface-alt)}.live-order-symbol{display:grid;place-items:center;flex:0 0 31px;height:31px;border-radius:9px;background:var(--accent-soft);color:var(--accent)}.live-order-symbol svg{width:16px;height:16px}.live-feed-copy{flex:1;min-width:0}.live-feed-copy strong{font-size:10px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-feed-copy small{font-size:9px;color:var(--muted);display:block;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-feed-money{text-align:right;flex:none}.live-feed-money strong{font-size:10px;display:block;white-space:nowrap}.live-feed-money small{font-size:9px;display:block;color:var(--muted);margin-top:4px}.live-all-orders{display:flex;align-items:center;justify-content:center;gap:9px;color:var(--accent);font-size:10px;font-weight:700;margin-top:auto;padding:15px 0 3px}.live-all-orders svg{width:13px;height:13px}.live-feed-empty{margin:auto;display:flex;flex-direction:column;align-items:center;text-align:center;color:var(--muted);gap:12px;padding:22px}.live-feed-empty svg{width:25px;height:25px}.live-feed-empty strong{font-size:12px;color:var(--text)}.live-feed-empty small{font-size:10px;line-height:1.5}
.live-bottom-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:15px;margin-top:15px}.live-profit-table{display:grid;gap:0}.live-profit-table>div{padding:10px 0;display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);font-size:11px}.live-profit-table span{color:var(--muted)}.live-profit-table strong{font-weight:650}.live-profit-table .live-profit-total{padding:15px 0;border-bottom:0;font-size:13px}.live-profit-total span,.live-profit-total strong{color:var(--text);font-weight:800}.live-edit-costs{margin-top:5px}.live-finance-note{font-size:10px;color:var(--muted);line-height:1.6;margin:14px 0 0}.live-trust-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:14px 0;border-bottom:1px solid var(--line);font-size:11px}.live-trust-row:last-child{border-bottom:0}.live-trust-dot{width:8px;height:8px;border-radius:50%;background:var(--accent)}.live-cost-form{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:5px 12px}.live-cost-form label{font-size:10.5px}.live-cost-form input{width:100%;height:34px}
@media(max-width:1330px){.live-layout{grid-template-columns:minmax(160px,.8fr) minmax(290px,2fr) minmax(240px,1.15fr)}.live-metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.live-stat-value{font-size:26px}.live-city-panel,.live-map-panel,.live-orders-panel{padding:16px}}
@media(max-width:1120px){.live-layout{grid-template-columns:minmax(170px,1fr) minmax(360px,2.2fr)}.live-orders-panel{grid-column:1/-1;min-height:290px}.live-order-feed{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px;max-height:310px;min-height:150px}.live-map-panel{min-height:420px}}
@media(max-width:700px){.live-pulsebar{flex-wrap:wrap;padding:11px 13px;font-size:10px}.live-last-update{margin-left:20px;width:100%}.live-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.live-stat{min-height:125px;padding:14px}.live-stat-value{font-size:23px}.live-stat small{white-space:normal}.live-layout{grid-template-columns:1fr}.live-city-panel{min-height:auto}.live-map-panel{min-height:380px}.live-orders-panel{grid-column:auto;min-height:330px}.live-order-feed{grid-template-columns:1fr;max-height:360px}.live-city-panel{display:block}.live-city-foot{margin-top:17px}.live-city{margin-top:14px}.live-bottom-grid{grid-template-columns:1fr}.live-geo-wrap{min-height:300px}.live-globe{max-height:300px}.live-cost-form{grid-template-columns:1fr 1fr}.live-cost-form label{margin:9px 0 5px}}
@media(max-width:420px){.live-stat-value{font-size:21px}.live-metric-grid{gap:8px}.live-cost-form{grid-template-columns:1fr}.live-geo-wrap{min-height:250px}}

.live-nav-tag{margin-left:auto;color:var(--success);font-size:8px;font-weight:820;letter-spacing:.5px;background:rgba(40,160,120,.10);padding:4px 6px;border-radius:6px}
@media(max-width:1020px){.sidebar:not(.open) .live-nav-tag{display:none}}

/* TRACE v0.5 — Connect Center and Google Intelligence, Apple-clean 60/30/10 */
.connect-intro{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:22px;background:var(--surface);border:1px solid var(--border);padding:28px 32px;border-radius:var(--radius);overflow:hidden;position:relative}
.connect-intro>div:first-child{position:relative;z-index:1;max-width:580px}
.connect-intro-kicker,.integration-caption{font-size:9px;font-weight:780;letter-spacing:1.1px;color:var(--accent);text-transform:uppercase}
.connect-intro h2{margin:10px 0 7px;font-size:26px;letter-spacing:-1.1px;font-weight:760;line-height:1.13}
.connect-intro p{max-width:535px;font-size:12px;line-height:1.7;color:var(--muted);margin:0}
.connect-intro-graphic{display:grid;place-items:center;width:100px;height:100px;min-width:100px;border-radius:26px;background:var(--accent-soft);color:var(--accent)}
.connect-intro-graphic svg{width:45px;height:45px}
.setup-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.setup-step{display:flex;flex-direction:column;gap:9px;min-height:185px;border:1px solid var(--border);border-radius:13px;background:var(--surface-alt);padding:16px}
.setup-step.current{border-color:rgba(var(--accent-rgb),.4);box-shadow:0 0 0 3px rgba(var(--accent-rgb),.04)}
.setup-step.done .setup-step-number{background:rgba(30,148,108,.1);color:var(--success)}
.setup-step-number{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-size:13px;font-weight:780}
.setup-step strong{display:block;font-size:12px;margin-bottom:4px}
.setup-step small{display:block;font-size:10.5px;line-height:1.6;color:var(--muted)}
.setup-step .btn{margin-top:auto;align-self:flex-start;white-space:nowrap}
.integration-card{min-height:238px;gap:13px}
.integration-card.primary-integration{border-color:rgba(var(--accent-rgb),.4)}
.integration-content{flex:1}
.integration-caption{margin:0 0 8px}
.integration-actions{display:flex;flex-direction:column;gap:5px;margin-top:auto}
.integration-actions .btn{width:100%;min-height:38px}
.integration-actions .text-action{padding:8px 0;font-size:10px;font-weight:720;color:var(--accent)}
.mini-connections{display:flex;gap:4px;flex-wrap:wrap;margin-top:10px}
.mini-connections span{font-size:9px;background:var(--surface-alt);border:1px solid var(--border);padding:4px 6px;border-radius:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.focus-banner{display:flex;align-items:center;gap:15px;border-radius:13px;border:1px solid rgba(var(--accent-rgb),.16);background:var(--accent-soft);padding:17px 20px;margin-bottom:17px}
.focus-banner>span{width:26px;height:26px;flex:none;color:var(--accent)}
.focus-banner strong{display:block;font-size:12px;margin-bottom:5px}
.focus-banner small{display:block;color:var(--muted);font-size:10px;line-height:1.55}
.account-overview{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:15px 0;border-top:1px solid var(--line)}
.account-overview strong{display:block;font-size:13px}
.account-overview small{display:block;margin-top:5px;color:var(--muted);font-size:10px;line-height:1.5}
.account-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.account-actions .btn{border:1px solid var(--border);border-radius:9px;padding:8px 12px;font-size:10px}
.account-actions svg{width:13px;height:13px}
.google-empty{text-align:center;padding:55px 20px}
.google-empty>svg{width:38px;height:38px;margin:0 auto 12px;color:var(--accent)}
.google-empty h3{font-size:16px;letter-spacing:-.4px}
.google-empty p{font-size:12px;line-height:1.65;color:var(--muted);max-width:410px;margin:0 auto 18px}
.google-empty .btn{margin:auto}
.campaign-kind{display:block;color:var(--muted);margin-top:5px;font-size:9px}
@media(max-width:1250px){.setup-steps{grid-template-columns:1fr}.setup-step{flex-direction:row;align-items:center;min-height:0}.setup-step>div:nth-child(2){flex:1}.setup-step .btn{align-self:center;margin-top:0}}
@media(max-width:700px){.connect-intro{padding:22px}.connect-intro h2{font-size:23px}.connect-intro-graphic{width:55px;height:55px;min-width:55px;border-radius:16px}.connect-intro-graphic svg{width:28px;height:28px}.setup-step{gap:10px;flex-wrap:wrap}.setup-step .btn{margin-left:39px}.account-overview{flex-direction:column;align-items:flex-start}.account-actions{width:100%;justify-content:space-between}.google-empty{padding:30px 12px}}
