/* Compact interface, shared by current and future accounts. */
:root{--surface:#fff;--canvas:#f4f7f5;--text:#17312b;--soft:#edf4f0;--muted:#667a70;--line:#dfe8e2;--green:#087d5a;font-size:14px;background:var(--canvas);color:var(--text)}
body{background:var(--canvas);color:var(--text)}button{padding:8px 12px;min-height:36px;font-size:13px}.card{padding:18px;border-radius:14px;background:var(--surface)}h1{font-size:25px}h2{font-size:17px}p{margin-bottom:14px}label{margin:12px 0;font-size:13px}input,select,textarea{padding:10px;font-size:14px;color:var(--text);background:var(--surface)}
aside{width:254px;background:var(--surface);padding:18px 12px 12px}main{margin-left:254px;min-width:0}header{height:68px;padding:0 26px;background:var(--surface)}header>div{gap:10px}#view{padding:26px;max-width:1560px;min-width:0}.pageHead{gap:14px;margin-bottom:18px}.grid,.automationGrid,.queueGrid,.productGrid{gap:12px}.grid>*{min-width:0}.actions{gap:7px}.automationGrid>.card{padding:15px}.queueCard{padding:15px}.queueCard .jobText{min-height:90px;padding:10px;margin:12px 0}.queueSummary{padding:18px;margin-bottom:16px}.productCard{padding:12px}.storeConnection{min-height:84px;padding:12px;gap:8px}.connectionCard{padding:16px}.hero{padding:20px}.hero h2{font-size:21px}.stat{padding:16px}.stat strong{font-size:26px;margin:10px 0 4px}.brandLogo{width:44px;height:44px}.brand>span{font-size:13px}nav button{font-size:12px;padding:8px 10px;min-height:36px}nav small{margin-top:15px}.themeToggle{white-space:nowrap;background:var(--soft);border-color:var(--line);color:var(--text);font-size:12px;box-shadow:none}.mobileMenu,.mobileClose{display:none}.navBackdrop[hidden]{display:none}.actionFeedback{padding:10px 12px;border:1px solid #b8dfce;border-radius:9px;background:#e8f7ef;color:#126448;font-size:13px;line-height:1.45;margin:10px 0 0;overflow-wrap:anywhere;flex-basis:100%;grid-column:1/-1}.actionFeedback.isError{background:#fff0ee;border-color:#efc3bd;color:#a02d25}.formMessage:empty{display:none}.functionReview{margin-top:18px}.functionReview summary{font-weight:700;cursor:pointer}.reviewRow{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.reviewRow p{font-size:12px;margin:5px 0 0}.reviewRow .tag{white-space:nowrap}.tableScroll{max-width:100%;overflow:auto}.jobText,.route,pre,.links{overflow-wrap:anywhere}.dashboardChart{max-width:100%;overflow:hidden}.dashboardChart svg{width:100%;height:auto}
@media(min-width:1250px){.automationGrid,.queueGrid,.productGrid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:1700px){.automationGrid,.queueGrid,.productGrid{grid-template-columns:repeat(4,minmax(0,1fr))}}
:root[data-theme=dark]{--surface:#182923;--canvas:#101b18;--text:#e5f2eb;--soft:#21392f;--muted:#a4bbae;--line:#31493d;--green:#16a77d;background:var(--canvas);color:var(--text)}
[data-theme=dark] .login{background:radial-gradient(ellipse at top,#1b3a2c,transparent 65%),var(--canvas)}[data-theme=dark] .brand>span,[data-theme=dark] h1,[data-theme=dark] h2,[data-theme=dark] h3,[data-theme=dark] strong,[data-theme=dark] #breadcrumb{color:var(--text)}[data-theme=dark] button,[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea,[data-theme=dark] dialog,[data-theme=dark] .storeConnection,[data-theme=dark] .connectionCredentials .card{background:var(--surface);color:var(--text);border-color:var(--line)}[data-theme=dark] .primary{background:#087d5a;color:#fff;border-color:#139c72}[data-theme=dark] button:hover{background:#284a3a}[data-theme=dark] .primary:hover{background:#0b8e65}[data-theme=dark] nav button.active{background:#244735;color:#72dfb3}[data-theme=dark] nav button.active .navIcon{color:#72dfb3}[data-theme=dark] .asideBottom button,[data-theme=dark] .tag,[data-theme=dark] .jobText,[data-theme=dark] .pill,[data-theme=dark] .queueTiming.queueWaiting{background:var(--soft);color:var(--muted)}[data-theme=dark] .pill.good,[data-theme=dark] .queueTiming,[data-theme=dark] .actionFeedback{background:#173f2f;color:#a3edc4;border-color:#2a6448}[data-theme=dark] .info,[data-theme=dark] .pill.warn{background:#3c3820;color:#f4df9d;border-color:#5e5431}[data-theme=dark] .error,[data-theme=dark] .danger{color:#ffafa5}[data-theme=dark] .actionFeedback.isError,[data-theme=dark] .tenantActionError{background:#442824;color:#ffb4aa;border-color:#714138}[data-theme=dark] .queueNext{background:#182e24}[data-theme=dark] .avatar{background:#3b3523;color:#f4dc9e;border-color:#71603d}[data-theme=dark] .hero,[data-theme=dark] .queueSummary{background:linear-gradient(120deg,#173d2c,#214b38)}[data-theme=dark] .dashboardTable td,[data-theme=dark] .dashboardTable th{color:var(--text);border-color:var(--line)}[data-theme=dark] .dashboardTable th{background:var(--soft)}[data-theme=dark] .productImage,[data-theme=dark] .queueMedia{background:#ecf3ef}[data-theme=dark] .productImage img{background:#fff}[data-theme=dark] .chartLegend,[data-theme=dark] .route,[data-theme=dark] .links{color:var(--muted)}[data-theme=dark] .dashboardChart text{fill:var(--muted)}
@media(max-width:1000px) and (min-width:761px){aside{width:226px}main{margin-left:226px}#view{padding:20px}header{padding:0 20px}}
@media(max-width:760px){
 html{scroll-padding-top:78px}body{min-height:100dvh}.mobileMenu,.mobileClose{display:grid;place-items:center;width:42px;height:42px;min-width:42px;padding:8px;font-size:20px}.mobileClose{position:absolute;right:10px;top:12px;z-index:1;background:var(--soft)}aside{position:fixed;inset:0 auto 0 0;z-index:1002;width:min(310px,88vw);height:100vh;height:100dvh;padding:calc(18px + env(safe-area-inset-top)) 12px calc(14px + env(safe-area-inset-bottom));transform:translateX(-102%);transition:transform .2s ease;overflow:hidden;display:flex}aside>.brand{padding-right:42px}aside nav{display:block;overflow-y:auto;flex:1;margin-top:12px;min-height:0;padding:0 3px 10px}nav small{margin:17px 10px 6px}nav button{display:flex;min-height:42px;font-size:13px;margin:3px 0;width:100%;padding:10px}nav button[data-page=account]{margin-top:14px}.asideBottom{flex-shrink:0;display:block;padding-top:12px;margin-top:0}.asideBottom button{width:100%;min-height:42px;margin-top:8px}.menuOpen aside{transform:translateX(0)}.menuOpen body{overflow:hidden}.navBackdrop{position:fixed;inset:0;background:#071e18a8;z-index:1001;border:0;border-radius:0;padding:0}.navBackdrop:hover{background:#071e18a8}main{margin-left:0;min-height:100dvh}header{position:sticky;top:0;z-index:40;min-height:68px;height:auto;padding:calc(10px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left));gap:8px;backdrop-filter:none;flex-wrap:wrap}header .headerTitle{display:flex;align-items:center;gap:9px;min-width:0;flex:1}#breadcrumb{font-size:13px;max-width:185px;overflow-wrap:normal;line-height:1.3}header>div{gap:6px}.themeToggle{min-height:40px;padding:8px;font-size:11px}header .avatar{display:none}header .accountName{display:none}header .pill{font-size:10px;padding:5px 7px}#view{padding:18px max(12px,env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.pageHead{flex-direction:column;gap:10px}.pageHead h1{font-size:23px}.pageHead .actions{width:100%}.card{padding:15px;border-radius:12px}.grid,.grid.equal,.automationGrid,.queueGrid,.connectionGrid,.credentialGrid{grid-template-columns:1fr;gap:12px}.automationGrid>.card{padding:15px}.stats,.dashboardMetrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat strong{font-size:23px}.hero{display:block;padding:17px}.hero .actions{margin-top:14px}.hero h2{font-size:20px}.row{align-items:flex-start;gap:8px;flex-wrap:wrap}.row .actions{gap:6px}.actions button,button:not(.passwordToggle){min-height:42px}input,select,textarea{font-size:16px;min-height:44px}input[type=checkbox],input[type=radio]{min-height:0;width:20px;height:20px;flex-shrink:0}.check{align-items:flex-start;line-height:1.5}.check input{margin-top:2px}.storeConnections{gap:7px;max-width:100%}.storeConnection{min-height:78px;padding:10px 5px}.storeConnection img{max-width:65px;height:28px}.storeConnection .pill{font-size:10px;white-space:normal}.productGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.productCard{padding:10px;min-width:0}.productDetails h3{font-size:12px;line-height:1.4}.productDetails p{font-size:11px}.productImage{height:130px}.productImage img{max-height:130px}.nicheChoices{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.nicheChoices label{font-size:12px;padding:10px 8px;align-items:flex-start}.queueSummary{padding:15px;gap:12px}.queueCard .jobText{min-height:0;max-height:190px}.queueCount{font-size:24px}.periodForm{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.periodForm label{flex:1;min-width:130px}.periodForm button{width:100%}.customPeriod{max-width:100%}dialog{width:calc(100% - 24px);max-width:560px;max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:18px;overflow-y:auto}.loginCard{padding:24px;width:calc(100% - 28px);max-width:420px}.login{padding:calc(20px + env(safe-area-inset-top)) 0 calc(20px + env(safe-area-inset-bottom))}.loginCard .brandLogo{width:58px;height:58px}footer{padding:12px 15px calc(20px + env(safe-area-inset-bottom));font-size:10px}.tableScroll{overflow-x:auto;-webkit-overflow-scrolling:touch}.dashboardTable{min-width:600px}.reviewRow{flex-wrap:wrap}.functionReview p{font-size:12px}.actionFeedback{font-size:12px}.asideBottom button{min-height:42px}
}
@media(max-width:360px){header .pill{display:none}#breadcrumb{max-width:145px}.productGrid{grid-template-columns:1fr}.nicheChoices{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){aside{transition:none}}

[data-theme=dark] .metricCard{border-color:var(--line)}[data-theme=dark] .metricCard small,[data-theme=dark] .metricCard span{color:#b2c7bc}[data-theme=dark] .periodActive,[data-theme=dark] .queueTabs button.active{background:#087d5a;color:#fff;border-color:#159e74}

/* Section controls and products follow the same compact spacing. */
.cartWorkspace,.miningWorkspace{display:grid;gap:16px}.cartWorkspace>.card,.cartWorkspace>.productGrid,.cartWorkspace>.compactForm,.miningWorkspace>.card,.miningWorkspace>.productGrid{margin:0}.cartControls,.miningControls,.accountCompactGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.cartControls>*{min-width:0}.cartControls .compactForm{display:block;margin:0}.cartControls h2{margin-bottom:10px}.cartControls label{min-width:0}.cartControls details{font-size:12px}.cartControls button{margin-top:4px}.cartControls p{font-size:12px}.accountCompactGrid>.grid{display:contents}.accountCompactGrid>.card{margin:0;min-width:0}.accountCompactGrid>.functionReview,.accountCompactGrid>.manualLinksCard{grid-column:1/-1}.accountCompactGrid>.watermarkCard{grid-column:1/-1}.wmGrid{gap:16px!important;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)!important}.wmPreview{padding:12px!important;background:var(--soft)!important;max-width:280px}.wmPreview img{max-height:190px;object-fit:contain}.wmPick{padding:8px 10px!important;font-size:12px}.wmFields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.wmFields label{min-width:0}.manualLinkControls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.manualLinkControls textarea{min-height:120px}.manualLinkOutput{background:var(--soft);padding:14px;border-radius:12px}.manualLinkOutput[hidden]{display:none}.manualLinkOutput input{font-size:13px}.productCard{background:var(--surface);padding:0;border-color:var(--line)}.productSelect{background:var(--soft);padding:9px 12px;color:var(--text)}.productDetails{background:var(--surface);padding:12px}.productDetails h3{min-height:50px;color:var(--text)}.productDetails p{color:var(--muted)}.productPrice{font-size:18px}.productImage{height:145px}.productDetails button{padding:7px 9px}.dashboardMetrics{grid-template-columns:repeat(4,minmax(0,1fr))}.metricCard:nth-child(3) strong{color:var(--green)}.metricCard:nth-child(4){border-color:var(--line)}.metricCard:nth-child(4) strong{color:var(--text)}[data-theme=dark] .productCard,[data-theme=dark] .productDetails{background:var(--surface)}[data-theme=dark] .productSelect{background:var(--soft);color:var(--text)}[data-theme=dark] .wmPreview{background:var(--soft)!important}
@media(min-width:1350px){.cartControls,.accountCompactGrid{grid-template-columns:repeat(3,minmax(0,1fr))}.accountCompactGrid>.watermarkCard{grid-column:span 2}}
@media(max-width:760px){.cartControls,.miningControls,.accountCompactGrid,.manualLinkControls{grid-template-columns:1fr}.accountCompactGrid>.watermarkCard{grid-column:auto}.wmGrid{grid-template-columns:1fr!important}.wmPreview{max-width:240px}.dashboardMetrics{grid-template-columns:repeat(2,minmax(0,1fr))}.productImage{height:120px}.productDetails h3{font-size:12px}.productDetails{padding:9px}.productPrice{font-size:16px}.productSelect{padding:8px;font-size:12px}}

.fallbackCard form{padding:0;border:0;background:transparent;margin-top:12px}.fallbackCard label{max-width:460px}.manualLinksCard>details{margin-top:12px}.metricCard:nth-child(3){border-color:var(--green)}

[data-theme=dark] .productImage{background:var(--soft)!important}.cartControls details{margin-top:12px}.cartControls details p{margin-top:10px}.watermarkCard [data-wm-saved]{display:flex;align-items:center;gap:10px}.watermarkCard [data-wm-saved][hidden]{display:none}.watermarkCard [data-wm-saved] p{margin:0;font-size:12px}

.selectionTable .selectionHeader{background:var(--soft);color:var(--text);position:sticky;top:0;z-index:2}.selectionTable .selectionHeader strong{color:var(--text)}[data-theme=dark] .selectionTable,[data-theme=dark] .selectionTable .selectionRow{border-color:var(--line)}
#messagesModule>.card:first-child{position:sticky;top:6px;z-index:15;background:var(--surface);box-shadow:0 8px 20px #13223814}
#messagesModule .messageContactDisclosure{margin-top:10px;border-top:1px solid var(--line);padding-top:10px}
#messagesModule .messageContactDisclosure>summary,.wmCollapse>summary{cursor:pointer;font-weight:700;color:var(--text);padding:8px 0}
#messagesModule .messageContactDisclosure[open]>summary{margin-bottom:10px}
.messageContactDisclosure .messageContact{display:grid;grid-template-columns:minmax(150px,1fr) minmax(120px,1fr) auto;gap:8px;padding:8px;border-bottom:1px solid var(--line)}
.extensionDeviceList .row{padding:8px 0;border-top:1px solid var(--line)}
.wmCollapse>summary{display:flex;justify-content:space-between;align-items:center}
.wmCollapse>summary span{font-size:11px;color:var(--muted)}
#artCanvas{display:block;width:auto;max-width:100%;max-height:72vh;margin:auto;object-fit:contain;border-radius:12px;background:#0b1e1a}
@media(max-width:600px){#messagesModule>.card:first-child{top:0}.messageContactDisclosure .messageContact{grid-template-columns:1fr auto}.messageContactDisclosure .messageContact small{grid-column:1}.messageContactDisclosure .messageContact button{grid-column:2;grid-row:1/3}}

.wmCollapse>summary span::after{content:'Recolher seção'}.wmCollapse:not([open])>summary span::after{content:'Expandir seção'}

