@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');
:root{--orange:#ee4d2d;--bg:#f6f7f9;--card:#fff;--text:#20242c;--muted:#828791;--line:#e9ebef;--green:#169974;--red:#db4b4b;--soft:#fff0eb;--shadow:0 3px 16px #20242c03}*{box-sizing:border-box}body{margin:0;font:14px 'Be Vietnam Pro',sans-serif;background:var(--bg);color:var(--text)}body.dark{--bg:#14171c;--card:#1d2128;--text:#f2f3f5;--muted:#989faa;--line:#30353e;--soft:#3a251f}button,input,select{font:inherit}button,a,select,input{outline-color:var(--orange)}button{cursor:pointer;border:1px solid var(--line);background:var(--card);color:var(--text);padding:11px 15px;border-radius:9px;transition:.2s}button:hover{border-color:var(--orange);color:var(--orange)}button.primary{background:var(--orange);border-color:var(--orange);color:#fff}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}small{font-size:12px;color:var(--muted);display:block;line-height:1.7}b{font-weight:600}aside{width:228px;background:var(--card);height:100vh;position:fixed;top:0;left:0;border-right:1px solid var(--line);padding:30px 18px;z-index:20}.brand{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:25px;font-weight:800;padding-left:12px}.brandmark{background:var(--orange);border-radius:12px;width:39px;height:39px;color:white;text-align:center;line-height:39px}.mini{font-size:9px;letter-spacing:2px;width:100%;padding-left:50px;margin-top:-10px;color:var(--muted)}.workspace{margin:35px 0 31px;border:1px solid var(--line);border-radius:10px;padding:12px;display:flex;gap:10px;align-items:center}.avatar{display:inline-grid;place-items:center;border-radius:50%;width:34px;height:34px;background:#efeee9;color:#645645;font-size:11px;font-weight:700;flex-shrink:0}.navcaption{font-size:10px;letter-spacing:1.2px;color:var(--muted);padding:0 12px;margin-bottom:12px}nav button{width:100%;display:flex;gap:14px;align-items:center;text-align:left;margin-bottom:6px;border:0;background:transparent;font-weight:500;min-height:46px}nav button.active{background:var(--soft);color:var(--orange)}.icon{width:22px;font-size:21px;font-weight:400;text-align:center}.sidebottom{position:absolute;bottom:20px;left:18px;right:18px}.sidebottom>button{border:0;width:100%;text-align:left;margin-bottom:7px}.sidebottom>button span{margin-left:12px}.owner{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:20px;margin-top:16px;font-size:12px}.owner button{margin-left:auto;padding:6px;border:0}.shell{margin-left:228px}header{height:76px;border-bottom:1px solid var(--line);background:var(--card);display:flex;align-items:center;justify-content:space-between;padding:0 36px}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb span{padding:0 14px;color:#bcc0c7}.breadcrumb b{color:var(--text)}.headright{display:flex;gap:14px;align-items:center}.headright button{border:0;padding:8px;font-size:18px}.demo{font-size:11px;border:1px solid var(--line);border-radius:20px;padding:6px 10px;color:var(--muted)}main{padding:32px 36px;max-width:1600px;margin:auto}.heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:27px;gap:20px}.eyebrow{font-size:10px;letter-spacing:1.5px;color:var(--muted);font-weight:600}h1{font-size:28px;letter-spacing:-1px;margin:8px 0}p{color:var(--muted);line-height:1.7;margin:4px 0}h2{font-size:17px;margin:0;font-weight:600;letter-spacing:-.4px}h3{font-size:14px;margin:0}select,input{background:var(--card);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:11px 13px;min-height:42px}.filters{display:flex;gap:10px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);background:var(--card);border:1px solid var(--line);border-radius:14px;padding:23px 0;margin-bottom:22px;box-shadow:var(--shadow)}.metric{padding:0 24px;border-right:1px solid var(--line)}.metric:last-child{border:0}.metric label{font-size:12px;color:var(--muted);display:flex;justify-content:space-between}.metric strong{display:block;font-size:29px;letter-spacing:-1.3px;margin:13px 0 9px;font-weight:600}.metric small{font-size:10px}.metric small em{font-style:normal;color:var(--green);font-weight:600;margin-right:5px}.metric.profit strong{color:var(--green)}.summary{display:flex;justify-content:space-between;align-items:center;padding:14px 17px;background:var(--card);border:1px solid var(--line);border-radius:10px;margin-bottom:26px;font-size:12px}.summary .sync{color:var(--muted);font-size:10px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:6px}.dot.red{background:var(--red)}.dot.grey{background:#9ca3af}.sectionhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:10px}.sectionhead span,.sectionhead small{color:var(--muted);font-size:11px}.sectionhead button{border:0;background:transparent;color:var(--orange);font-size:12px;padding:0}.shopgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.shopcard{border:1px solid var(--line);border-radius:12px;background:var(--card);padding:18px;box-shadow:var(--shadow)}.shopcard.attention{border-color:#f1cfc5}.shophead{display:flex;align-items:center;gap:9px;margin-bottom:18px}.shoplogo{height:30px;width:30px;border-radius:8px;background:var(--soft);color:var(--orange);display:grid;place-items:center;font-size:15px;font-weight:600}.shophead .status{margin-left:auto}.status{font-size:10px;border-radius:5px;padding:4px 7px;white-space:nowrap;color:var(--green);background:#16997410}.status.loss{color:var(--red);background:#db4b4b0d}.status.idle{color:var(--muted);background:#82879110}.shopstats{display:grid;grid-template-columns:1.2fr .6fr 1fr;gap:6px}.shopstats small{font-size:10px;margin-bottom:5px}.shopstats b{font-size:16px;letter-spacing:-.5px}.roas{display:flex;justify-content:space-between;margin-top:18px;font-size:11px;color:var(--muted)}.roas b{color:var(--text)}.track{height:4px;border-radius:5px;background:var(--line);margin:9px 0 14px;overflow:hidden}.track i{display:block;height:100%;background:var(--green)}.attention .track i{background:var(--red)}.wallet{font-size:11px;display:flex;justify-content:space-between;color:var(--muted)}.redtext{color:var(--red)!important}.advice{font-size:11px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line);color:var(--green)}.attention .advice{color:var(--red)}.lower{display:grid;grid-template-columns:1.55fr 1fr;gap:20px;margin-top:25px}.panel{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:22px;overflow:hidden}.chart{height:175px;display:flex;align-items:flex-end;gap:7px;padding-top:15px;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to top,transparent 0,transparent 42px,var(--line) 43px,transparent 44px)}.bar{flex:1;background:#f8b4a3;min-width:2px;border-radius:3px 3px 0 0;position:relative}.bar:hover{background:var(--orange)}.bar:nth-child(n+15):nth-child(-n+19){background:var(--orange)}.chartlabels{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin-top:10px}.toprow{display:flex;gap:11px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.toprow:last-child{border:0}.toprow img,.productimg{width:44px;height:48px;border-radius:7px;object-fit:cover;background:#edeef0}.toprow b{font-size:11px}.toprow small{font-size:10px}.toprow>strong{margin-left:auto;font-size:13px}.rank{color:var(--muted);font-size:11px}.bottomnav{display:none}footer{display:flex;gap:20px;color:var(--muted);font-size:10px;margin-top:30px;align-items:center}footer>span:last-child{margin-left:auto}.toolbar{display:flex;gap:10px;margin-bottom:18px;flex-wrap:wrap}.toolbar input{flex:1}.tabs{display:flex;gap:22px;overflow:auto;border-bottom:1px solid var(--line);margin-bottom:20px;white-space:nowrap}.tabs button{border:0;border-radius:0;background:transparent;padding:14px 0;color:var(--muted);font-size:12px}.tabs button.selected{border-bottom:2px solid var(--orange);color:var(--orange)}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-weight:500;font-size:10px;color:var(--muted);background:var(--bg)}td,th{padding:14px 12px;border-bottom:1px solid var(--line)}td .product{display:flex;align-items:center;gap:10px}.tablewrap{overflow:auto;background:var(--card);border:1px solid var(--line);border-radius:12px}input[type=checkbox]{min-height:auto;accent-color:var(--orange);width:16px;height:16px}.actionbar{position:sticky;bottom:15px;margin:15px 0;display:flex;gap:10px;padding:14px;background:var(--card);box-shadow:0 0 20px #0001;border:1px solid var(--line);border-radius:12px;z-index:15}.moneygrid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.moneygrid .metric{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:20px}.wide{margin-top:22px}.linechart{width:100%;height:200px}.productgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.productcard{background:var(--card);border:1px solid var(--line);border-radius:12px;overflow:hidden}.productcard>img{width:100%;height:205px;object-fit:cover;background:#eaecef}.productcard>div{padding:15px}.productcard h3{margin-bottom:8px}.productcard p{font-size:11px}.productcard label{display:flex;justify-content:space-between;margin-bottom:10px}.productcard input[type=number]{width:100%;margin-top:8px}.connection{display:flex;align-items:center;gap:15px;border-bottom:1px solid var(--line);padding:20px 0}.connection button{margin-left:auto;font-size:12px}.connection .status{margin-left:auto}.adsinput{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin-top:15px}.adsinput input{width:70px}.adscard button{width:100%;margin-top:14px}dialog{border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--text);padding:28px;width:min(540px,calc(100% - 30px));max-height:90vh}dialog::backdrop{background:#10152188;backdrop-filter:blur(3px)}.dialoghead{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.dialoghead button{border:0;font-size:20px;padding:5px}.detailrow{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.timeline{padding:0 0 0 20px;line-height:2.3;color:var(--green)}.formfield{display:block;margin:15px 0;font-size:13px}.formfield input{display:block;width:100%;margin-top:7px}.login{max-width:390px;margin:70px auto;padding:35px;text-align:center}.login .brand{justify-content:center;padding:0;margin-bottom:35px}.login button{width:100%}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#20242c;color:white;border-radius:10px;padding:14px 22px;z-index:100;font-size:13px;display:none;max-width:90%;box-shadow:0 5px 30px #0002}.empty{padding:45px;text-align:center;color:var(--muted)}#dateRange{margin-bottom:20px}.badge{font-size:11px;color:var(--orange);background:var(--soft);padding:5px 9px;border-radius:5px}.loginmode aside,.loginmode header,.loginmode .heading,.loginmode .bottomnav,.loginmode footer{display:none}.loginmode .shell{margin:0}.linkbutton{border:0;padding:0;color:var(--orange);background:transparent}.dark .status{background:#16997422}.dark .status.loss{background:#db4b4b22}@media(min-width:1500px){.shopgrid{grid-template-columns:repeat(4,1fr)}}@media(max-width:1100px){aside{width:195px;padding:25px 12px}.shell{margin-left:195px}main{padding:25px}.shopgrid{grid-template-columns:repeat(2,1fr)}.metric{padding:0 17px}.metric strong{font-size:23px}.productgrid{grid-template-columns:repeat(3,1fr)}.lower{grid-template-columns:1fr}.heading{align-items:flex-start}.filters{flex-wrap:wrap;justify-content:flex-end}header{padding:0 25px}}@media(max-width:700px){aside{display:none}.shell{margin:0}header{height:62px;padding:0 18px}.breadcrumb{font-size:11px}.breadcrumb span{padding:0 8px}.headright{gap:5px}.headright .avatar{display:none}.demo{font-size:9px;padding:5px 7px}.headright button{padding:6px}main{padding:23px 17px 95px}.heading{display:block;margin-bottom:20px}h1{font-size:27px;margin:8px 0}p{font-size:12px}.eyebrow{font-size:9px}.filters{justify-content:flex-start;margin-top:18px;display:grid;grid-template-columns:1fr 1fr}.filters select{width:100%;font-size:12px}.metrics{grid-template-columns:1fr 1fr;padding:0;overflow:hidden;gap:0;margin-bottom:15px}.metric{padding:17px!important;border-bottom:1px solid var(--line)}.metric:nth-child(2){border-right:0}.metric:nth-child(3){border-bottom:0}.metric strong{font-size:25px;margin:10px 0 7px}.metric label{font-size:11px}.metric small{font-size:9px}.summary{font-size:10px;padding:12px;margin-bottom:23px;line-height:1.8}.summary .sync{display:none}.summary .dot{width:5px;height:5px;margin-right:3px}.shopgrid{grid-template-columns:1fr;gap:12px}.shopcard{padding:17px}.shophead{margin-bottom:16px}.shopstats b{font-size:18px}.shopstats small,.wallet,.roas,.advice{font-size:11px}.shophead h3{font-size:14px}.status{font-size:10px}.sectionhead h2{font-size:16px}.sectionhead span{font-size:9px}.bottomnav{display:flex;position:fixed;bottom:0;left:0;right:0;background:var(--card);border-top:1px solid var(--line);padding:8px 5px max(8px,env(safe-area-inset-bottom));z-index:25}.bottomnav button{display:flex;flex-direction:column;gap:4px;font-size:9px;align-items:center;justify-content:center;margin:0;border-radius:9px;min-height:48px;padding:4px 0}.bottomnav .icon{font-size:20px}.bottomnav button.active{background:transparent}.lower{margin-top:20px;gap:15px}.panel{padding:17px}.chart{gap:4px;height:150px}footer{line-height:1.8;display:block}footer span{display:block}.moneygrid{grid-template-columns:1fr 1fr;gap:10px}.moneygrid .metric strong{font-size:21px}.productgrid{grid-template-columns:1fr 1fr;gap:12px}.productcard>img{height:160px}.productcard>div{padding:12px}.productcard h3{font-size:12px}.productcard b{font-size:13px}.toolbar button{font-size:11px}.toolbar input{min-width:100%;font-size:12px}.tabs{gap:20px}.actionbar{bottom:67px;flex-wrap:wrap;padding:10px;gap:7px}.actionbar button{font-size:10px;padding:10px}.connection{flex-wrap:wrap;gap:10px}.connection .status{font-size:9px}.connection button{font-size:10px}.mobileorders thead{display:none}.mobileorders tr{display:grid;grid-template-columns:30px 1fr 1fr;padding:10px;border-bottom:1px solid var(--line)}.mobileorders td{border:0;padding:7px}.mobileorders td:nth-child(3){grid-column:2/4}.mobileorders td:nth-child(4){grid-column:2}.mobileorders td:nth-child(6){grid-column:2/4}.mobileorders td:nth-child(2){grid-column:2/4}.mobileorders td:first-child{grid-row:1/5}#toast{bottom:90px}.login{margin:45px auto;padding:25px}}
