:root{font-family:"Segoe UI",Arial,sans-serif;color:#25251f;background:#f5f6f4;font-size:16px;--ink:#25251f;--muted:#60635b;--line:#dfe2db;--accent:#f5c518;--dark:#191815;--success:#22613e;--warn:#805321;--radius:8px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:44px;border:1px solid var(--line);border-radius:6px;background:white;color:var(--ink);padding:10px 15px;font-weight:600;transition:background .15s}button:hover{background:#f1f2ee}button:disabled{cursor:not-allowed;opacity:.52}button.primary{background:var(--accent);border-color:var(--accent);color:#27220b}button.primary:hover{background:#e6b80d}button.dark{background:var(--dark);border-color:var(--dark);color:white}button.quiet{background:transparent;border-color:transparent}.small{font-size:.875rem}button.small{padding:7px 12px}a{color:#345b99}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #976900;outline-offset:3px}input,select,textarea{width:100%;padding:12px;border:1px solid #b9bdb2;border-radius:6px;background:white;min-height:46px;color:var(--ink)}textarea{resize:vertical;line-height:1.6;min-height:160px}label{display:block;font-weight:600;font-size:.9rem;margin-bottom:7px}h1,h2,h3,p{margin-top:0}h1{font-size:2rem;letter-spacing:-.9px;margin-bottom:9px}h2{font-size:1.45rem;letter-spacing:-.4px}h3{font-size:1rem}p{line-height:1.55}.muted{color:var(--muted)}.initial{padding:40px}.login{min-height:100dvh;display:grid;grid-template-columns:1.05fr 1fr}.login-brand{background:var(--dark);color:white;padding:clamp(32px,7vw,110px);display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.brand img{width:142px;height:70px;object-fit:contain}.login-brand .brand{align-self:flex-start}.login-brand h1{font-size:clamp(2.3rem,4.2vw,4rem);line-height:1.07;letter-spacing:-1.8px;max-width:580px}.login-brand p{color:#c9c9bb;max-width:420px;font-size:1.05rem}.login-brand .rule{width:56px;height:4px;background:var(--accent);margin-bottom:28px}.login-brand .bottom{font-size:.85rem;color:#a4a69c;margin-top:50px}.channel-marks{display:flex;gap:12px;margin-top:30px}.channel-mark{display:inline-flex;align-items:center;gap:8px;background:#ffffff0b;border:1px solid #ffffff24;padding:10px 13px;border-radius:6px;font-size:.875rem;color:#f3f3ee}.mini-symbol{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:5px;background:#ffe600;color:#423c04;font-weight:750;font-size:.75rem}.mini-symbol.shopee{background:#ee4d2d;color:white}.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:36px}.login-form{width:100%;max-width:375px}.login-form h2{font-size:1.75rem;margin-bottom:10px}.login-form .field{margin-top:23px}.login-form button[type=submit]{width:100%;margin-top:24px}.login-form .foot{font-size:.85rem;line-height:1.6;color:var(--muted);margin-top:22px}.error{padding:12px 15px;background:#fdf0ed;color:#9b3425;border-radius:6px;margin:14px 0;font-size:.9rem}.shell{display:grid;grid-template-columns:222px minmax(0,1fr);min-height:100dvh}.sidebar{background:var(--dark);color:#e4e4dc;padding:28px 18px;position:fixed;inset:0 auto 0 0;width:222px;display:flex;flex-direction:column}.sidebar .brand{padding:0 13px 28px;border-bottom:1px solid #ffffff1a}.sidebar .brand img{width:134px;height:62px}.sidebar .brand small{display:block;color:#aaa99c;letter-spacing:1.7px;font-size:.67rem;margin-top:7px}.sidebar nav{margin-top:24px;display:grid;gap:7px}.nav-button{display:flex;align-items:center;gap:12px;text-align:left;color:#c4c6bc;border:0;background:transparent;min-height:48px;font-weight:500}.nav-button.active{background:#f5c518;color:#27220b}.nav-button:hover{background:#ffffff12}.nav-button.active:hover{background:#e8bb19}.icon{width:19px;height:19px;display:inline-block;flex-shrink:0}.sidebar-foot{margin-top:auto;padding:20px 10px 0;font-size:.78rem;color:#b7b9af;line-height:1.6}.sidebar-foot b{color:#f2f2e8;font-weight:500}.content{grid-column:2;padding:0 38px 40px;max-width:1700px;width:100%;margin:auto}.topbar{height:85px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:34px}.breadcrumb{font-size:.875rem;color:var(--muted)}.account{display:flex;align-items:center;gap:12px;font-size:.8rem}.avatar{background:#e6e8df;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;font-weight:700}.account button{font-size:.85rem;padding:6px 9px}.page-heading{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:25px}.page-heading p{margin:0;color:var(--muted);font-size:.95rem}.actions{display:flex;gap:9px}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:0 0 24px}.kpi{padding:20px 22px;border:1px solid var(--line);border-radius:var(--radius);background:white}.kpi strong{display:block;font-size:1.9rem;font-weight:650;letter-spacing:-.9px;margin:10px 0 5px;font-variant-numeric:tabular-nums}.kpi .label{font-size:.85rem;color:var(--muted)}.kpi small{color:var(--muted);font-size:.78rem}.notice{border:1px solid #e5d9af;background:#fffbea;border-radius:7px;padding:15px 18px;display:flex;align-items:flex-start;gap:12px;font-size:.875rem;line-height:1.55;margin:0 0 22px}.notice strong{font-weight:650}.notice p{margin:0}.notice .icon{color:#94701e;margin-top:2px}.notice.soft{background:#edf3ee;border-color:#cbdccd}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.toolbar{padding:19px 22px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line)}.search-wrap{position:relative;flex:1;max-width:430px}.search-wrap svg{position:absolute;left:13px;top:14px;width:18px;color:var(--muted)}.search-wrap input{padding-left:41px;border-color:var(--line);font-size:.875rem;background:#fafbf9}.filters{display:flex;gap:10px}.filters select{width:auto;max-width:220px;min-height:44px;font-size:.875rem;border-color:var(--line)}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left}thead{background:#fafbf9}th{padding:14px 20px;border-bottom:1px solid var(--line);font-size:.75rem;font-weight:600;color:#61645a;white-space:nowrap}td{border-bottom:1px solid #edf0e9;padding:19px 20px;vertical-align:middle;font-size:.875rem}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfcf9}.product-cell{display:flex;align-items:center;gap:15px;max-width:420px;min-width:270px}.product-cell img{width:64px;height:64px;object-fit:contain;border-radius:6px;border:1px solid #eaede5;background:white;flex-shrink:0}.product-name{font-size:.875rem;line-height:1.4;font-weight:600;display:block;text-align:left;background:none;border:none;padding:0;min-height:0;max-width:300px}.product-name:hover{background:none;text-decoration:underline}.product-cell small{display:block;font-size:.75rem;color:var(--muted);margin-top:6px}.channel-cell{min-width:155px}.channel-cell strong{font-size:.95rem;display:block;margin:7px 0 5px;white-space:nowrap}.channel-cell small{display:block;color:var(--muted);font-size:.75rem;line-height:1.45}.status{display:inline-flex;align-items:center;gap:6px;padding:4px 7px;font-size:.69rem;border-radius:4px;font-weight:600;white-space:nowrap;background:#f0f1ed;color:#606455}.status.good{background:#edf6ef;color:#246141}.status.warn{background:#fff3df;color:#825219}.status.bad{background:#fcece8;color:#983e31}.net{font-variant-numeric:tabular-nums}.net b{color:var(--success);font-size:.95rem;font-weight:650}.caption{padding:16px 22px;border-top:1px solid var(--line);font-size:.78rem;color:var(--muted);line-height:1.6;display:flex;justify-content:space-between;gap:15px}.empty{padding:60px 24px;text-align:center}.empty h3{font-size:1.2rem}.empty p{color:var(--muted);max-width:460px;margin:0 auto 20px}.connections{display:grid;grid-template-columns:1fr 1fr;gap:20px}.connection{padding:26px}.connection .channel-title{display:flex;gap:13px;align-items:center;margin-bottom:20px}.connection h3{margin:0;font-size:1.1rem}.connection p{font-size:.9rem;color:var(--muted)}.connection .status{margin-bottom:15px}.connection .last{font-size:.78rem}.footer-note{margin-top:23px;font-size:.78rem;line-height:1.6;color:var(--muted)}dialog{color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:0;box-shadow:0 30px 100px #0003;background:#fff;max-height:92dvh;width:min(1080px,calc(100vw - 36px));max-width:1080px}dialog::backdrop{background:#171b1766;backdrop-filter:blur(2px)}.dialog-head{display:flex;align-items:center;gap:20px;padding:24px 28px;border-bottom:1px solid var(--line)}.dialog-head img{width:67px;height:67px;object-fit:contain;flex-shrink:0}.dialog-head h2{margin:0 0 8px;font-size:1.2rem;line-height:1.35;max-width:780px}.dialog-head p{margin:0;font-size:.8rem;color:var(--muted)}.close{margin-left:auto;align-self:flex-start;min-width:40px;padding:9px}.dialog-body{padding:25px 28px;overflow-y:auto;max-height:calc(92dvh - 130px)}.tabs{display:flex;gap:7px;margin-bottom:22px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:12px}.tabs button{border:0;color:var(--muted);font-size:.9rem;display:flex;align-items:center;gap:8px}.tabs button.active{background:#f5f1d9;color:#4c4015}.variant-list{display:grid;gap:12px}.variant{border:1px solid var(--line);border-radius:8px;padding:18px}.variant-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:15px}.variant-top strong{font-size:.95rem}.variant-top small{display:block;color:var(--muted);margin-top:5px;font-size:.75rem}.variant-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:12px 0}.variant-metrics .label{font-size:.75rem;color:var(--muted);display:block;margin-bottom:8px}.variant-metrics b{font-size:1.13rem;font-variant-numeric:tabular-nums}.variant-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:16px;padding-top:14px;border-top:1px solid #e8ebe3}.variant-footer small{font-size:.75rem;line-height:1.5;color:var(--muted);max-width:65%}.variant-footer a{font-size:.8rem}.variant-buttons{display:flex;gap:7px}.editor{margin-top:18px;border-top:1px solid var(--line);padding-top:19px}.editor button{margin-top:12px}.editor-label{display:flex;justify-content:space-between;gap:20px}.editor-label small{color:var(--muted);font-size:.75rem}.edit-field{margin:20px 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.cost-card{max-width:700px}.cost-card p{color:var(--muted);font-size:.9rem}.cost-card button{margin-top:22px}.breakdown{background:#f6f7f3;border:1px solid var(--line);border-radius:8px;padding:18px;margin:18px 0}.breakdown-row{display:flex;justify-content:space-between;gap:20px;padding:7px 0;font-size:.9rem}.breakdown-row.total{border-top:1px solid var(--line);margin-top:8px;padding-top:15px;font-weight:700}.breakdown-row.total b{color:var(--success);font-size:1.2rem}.history-entry{padding:20px;border-bottom:1px solid var(--line)}.history-entry:last-child{border-bottom:0}.history-entry h3{margin-bottom:7px}.history-entry p{margin:5px 0;font-size:.85rem;color:var(--muted);overflow-wrap:anywhere}.history-change{font-size:.85rem;line-height:1.6;margin-top:10px}.confirm-body{padding:26px}.confirm-body h2{font-size:1.3rem}.confirm-body .comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.comparison>div{padding:16px;border:1px solid var(--line);border-radius:6px;overflow-wrap:anywhere}.comparison small{display:block;color:var(--muted);margin-bottom:10px}.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}#confirm-dialog{max-width:660px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#272a23;color:white;padding:14px 20px;border-radius:8px;box-shadow:0 5px 22px #0002;z-index:20;font-size:.9rem;max-width:calc(100vw - 32px);display:none}#toast.show{display:block}.loading-line{height:3px;background:var(--accent);animation:pulse 1.4s ease-in-out infinite}.row-actions button{white-space:nowrap}.help-box{padding:22px;font-size:.9rem;line-height:1.6}.help-box h3{margin-top:20px}.help-box h3:first-child{margin-top:0}.help-box p{color:var(--muted)}.busy{opacity:.6;pointer-events:none}.profit{color:var(--success);font-weight:600}.missing{color:#77796e;font-size:.8rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes pulse{50%{opacity:.35}}@media(min-width:1500px){.content{padding-left:50px;padding-right:50px}td{padding-top:23px;padding-bottom:23px}}@media(max-width:1200px){.content{padding-left:24px;padding-right:24px}.shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{width:190px}.account .email{display:none}.kpi{padding:17px}.product-cell{min-width:230px}.product-cell img{width:51px;height:51px}th,td{padding-left:15px;padding-right:15px}}@media(max-width:800px){.login{display:block}.login-brand{min-height:260px;padding:26px 28px}.login-brand h1{font-size:2rem;margin:25px 0 10px;max-width:350px}.login-brand p,.login-brand .bottom,.channel-marks,.login-brand .rule{display:none}.login-brand .brand img{width:110px;height:55px}.login-form-wrap{padding:36px 24px}.shell{display:block}.sidebar{position:static;width:auto;padding:12px 18px;display:block}.sidebar .brand{border:0;padding:0}.sidebar .brand img{width:98px;height:45px}.sidebar .brand small,.sidebar-foot{display:none}.sidebar nav{margin:12px 0 0;display:flex;overflow:auto;gap:3px}.nav-button{min-height:40px;padding:8px 12px;font-size:.8rem;gap:7px;white-space:nowrap}.nav-button .icon{width:16px;height:16px}.content{padding:0 18px 32px}.topbar{height:59px;margin-bottom:24px}.account{gap:5px}.account .avatar{display:none}.page-heading{align-items:flex-start;flex-direction:column;gap:15px}.page-heading .actions{align-self:stretch}.page-heading .actions button{flex:1}h1{font-size:1.7rem}.kpis{grid-template-columns:1fr 1fr;gap:10px}.kpi{padding:15px}.kpi strong{font-size:1.55rem}.kpi small{font-size:.7rem}.toolbar{padding:15px;align-items:stretch;flex-direction:column;gap:12px}.search-wrap{max-width:none}.filters select{flex:1;max-width:none;width:100%}.filters{gap:8px}.connections{grid-template-columns:1fr}.caption{flex-direction:column;gap:3px;padding:15px}.notice{font-size:.8rem;padding:13px}.dialog-head{padding:18px;gap:12px}.dialog-head img{width:46px;height:46px}.dialog-head h2{font-size:1rem}.dialog-body{padding:18px;max-height:calc(92dvh - 130px)}.variant{padding:14px}.variant-metrics{grid-template-columns:1fr 1fr;gap:17px}.variant-top{align-items:flex-start;gap:10px}.variant-footer{align-items:flex-start;flex-direction:column}.variant-footer small{max-width:none}.variant-buttons{flex-wrap:wrap}.form-grid{grid-template-columns:1fr;gap:15px}.confirm-body{padding:20px}.confirm-body .comparison{grid-template-columns:1fr}.tabs button{padding:9px}.caption{font-size:.73rem}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
:root{color-scheme:light}.sr-only{left:0;top:0}.net-label{margin-top:9px}
dialog[open]{display:flex;flex-direction:column;overflow:hidden}.dialog-head{flex-shrink:0}.dialog-body{min-height:0;max-height:none;overflow-y:auto}.confirm-body{overflow-y:auto;max-height:88dvh}
@media(max-width:800px){
 .sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;gap:4px}
 .nav-button{padding:10px 4px;justify-content:center;flex-direction:column;font-size:.68rem;gap:6px;white-space:normal;line-height:1.2;text-align:center}
 .table-wrap{overflow:visible}table,tbody{display:block;width:100%}thead{position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:18px;gap:16px;border-bottom:1px solid var(--line)}
 td{padding:0;border:0;min-width:0}td:first-child{grid-column:1/-1}.product-cell{min-width:0;max-width:none;gap:12px}.product-name{max-width:none;font-size:.9rem}.product-cell img{width:58px;height:58px}
 .channel-cell{min-width:0}.channel-cell strong{font-size:.9rem;white-space:normal}.channel-cell:nth-child(2)::before{content:'Mercado Livre';display:block;font-size:.75rem;font-weight:600;color:var(--muted);margin-bottom:8px}
 .channel-cell:nth-child(3)::before{content:'Shopee';display:block;font-size:.75rem;font-weight:600;color:var(--muted);margin-bottom:8px}
 td.net{grid-column:1/-1;background:#f7f8f4;border-radius:6px;padding:14px;display:grid;grid-template-columns:1fr auto;gap:8px}.net b{font-size:.85rem;text-align:right}.net-label{margin:0}
 .row-actions{grid-column:1/-1}.row-actions button{width:100%}.filters select{min-width:0;font-size:.8rem;padding:10px 6px}.caption{padding:15px 18px}.variant-metrics b{font-size:1rem}.variant-top small{overflow-wrap:anywhere}
}
