/* Central de Afiliados: a unified workspace, rebuilt October 2026. */
:root{--paper:#f5f7f9;--surface:#fff;--ink:#1b2938;--muted:#657588;--line:#e4e9ee;--accent:#12756a;--accent-soft:#e9f5f1;--sidebar:#fff;--topbar:#fff;--panel:#f8fafb;--nav-text:#586878;--nav-muted:#82919f;--input-bg:#fff;--input-text:#1b2938;--input-line:#dbe3e9;--btn-accent-text:#fff;--accent-dark:#0c5b52;--radius:16px;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:14px;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);line-height:1.5}a{color:var(--accent);text-decoration:none}button,input,select,textarea{font:inherit}button,a,summary{touch-action:manipulation}button,summary{cursor:pointer}button:disabled{opacity:.55;cursor:wait}img{max-width:100%;display:block}button{color:inherit}svg{vertical-align:middle;flex-shrink:0}.nav-icon{width:19px;height:19px;flex:0 0 19px}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1{font-size:30px;line-height:1.18;letter-spacing:-1.1px;font-weight:680;margin-bottom:12px}h2{font-size:17px;letter-spacing:-.35px;line-height:1.35;font-weight:650;margin-bottom:12px}h3{font-size:15px;font-weight:650}p{color:var(--muted);line-height:1.65;margin-bottom:18px}small{font-size:12px;color:var(--muted)}:focus-visible{outline:3px solid var(--accent);outline-offset:4px}::selection{background:var(--accent-soft);color:var(--ink)}.skip-link{position:fixed;top:-100px;left:20px;padding:12px 20px;background:var(--accent);color:var(--btn-accent-text);z-index:100}.skip-link:focus{top:12px}
/* Frame and navigation */
.sidebar-brand{min-height:62px;display:flex;justify-content:center;flex-direction:column;gap:6px;background:transparent;color:var(--ink)}.sidebar-brand strong{font-size:18px;letter-spacing:-.6px;line-height:1.25;max-width:190px}.sidebar-brand small{font-size:10px;letter-spacing:.2px}.sidebar-brand.has-logo{padding:8px 12px;border-radius:12px;background:#fff;align-items:center;min-height:80px}.sidebar-logo{max-height:70px;max-width:100%;object-fit:contain}.topbar-avatar{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;background:var(--accent-soft);color:var(--accent);font-weight:700;font-size:12px;border:1px solid var(--line);border-radius:50%}.app-main{grid-column:2;min-width:0;display:flex;flex-direction:column}.app-topbar{height:78px;padding:0 40px;display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--line);background:var(--topbar);position:sticky;top:0;z-index:20}.topbar-context{display:flex;align-items:center;gap:12px;font-size:12px;min-width:0}.topbar-context strong{font-size:12px;font-weight:600;white-space:nowrap}.workspace-dot{width:7px;height:7px;background:var(--accent);border-radius:50%}.topbar-separator{color:var(--nav-muted)}.topbar-date{margin-left:auto;white-space:nowrap;font-size:11px;color:var(--muted)}.topbar-catalog{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:550;border-left:1px solid var(--line);padding-left:20px;white-space:nowrap;color:var(--ink)}.topbar-avatar{width:30px;height:30px}.menu-label{display:none;align-items:center;justify-content:center;padding:9px;background:var(--surface);border:1px solid var(--line);border-radius:8px;color:var(--ink)}.app-content{width:100%;max-width:1660px;margin:0 auto;padding:40px;flex:1;min-width:0}.app-content>h1{margin:0 0 10px}.app-content>h1+p{margin-bottom:28px;max-width:880px}.app-footer{padding:18px 40px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:var(--muted);font-size:10px}.app-footer small{font-size:10px}.logout-form{display:none}
/* Shared controls and surfaces */
.page-head{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 30px}.page-head>div:first-child{min-width:0}.page-head p{margin:0;font-size:13px;max-width:760px}.page-overline{display:block;color:var(--accent);font-size:10px;font-weight:700;letter-spacing:1.65px;margin-bottom:12px}.page-head h1{margin-bottom:9px}.actions-bar,.toolbar,.settings-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:16px 0 24px}.page-head .actions-bar{margin:0;flex-shrink:0}.actions-bar form,.toolbar form{margin:0;padding:0;border:0;background:none;box-shadow:none}.ui-btn,button:not(.menu-label):not(.rail-control):not(.rail-search):not(.admin-image-preview):not(.offer-image-button):not(.view-switch button):not(#preview-close){display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;border-radius:8px;padding:10px 14px;font-size:11px;font-weight:600;border:1px solid var(--line);background:var(--surface);color:var(--ink);line-height:1.35;transition:background .15s,border-color .15s}.ui-btn svg,button .nav-icon{width:16px;height:16px;flex-basis:16px}.ui-btn:hover,button:hover{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.ui-btn.btn-green,button.btn-green{background:var(--accent)!important;color:var(--btn-accent-text)!important;border-color:var(--accent)!important}.ui-btn.btn-green:hover,button.btn-green:hover{background:var(--accent-dark)!important}.ui-btn.btn-red,button.btn-red,.delete{color:#d05d72!important}.ui-btn.btn-red:hover,button.btn-red:hover{background:#c9475f12!important;border-color:#c9475f!important}input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{background:var(--input-bg);border:1px solid var(--input-line);border-radius:8px;padding:11px 13px;min-height:43px;color:var(--input-text);width:100%;max-width:100%;font-size:12px;line-height:1.45}input::placeholder,textarea::placeholder{color:var(--muted);opacity:.8}input:focus,select:focus,textarea:focus{outline:2px solid color-mix(in srgb,var(--accent) 24%,transparent);outline-offset:1px;border-color:var(--accent)}input[type=checkbox],input[type=radio]{accent-color:var(--accent);width:16px;height:16px;flex-shrink:0}input[type=file]{padding:10px!important;font-size:11px!important}input[type=file]::file-selector-button{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:5px;padding:6px 9px;margin-right:10px;cursor:pointer}label{display:block;margin:0 0 18px;color:var(--ink);font-size:12px;font-weight:550}label input,label select,label textarea{margin-top:8px}label:has(>input[type=checkbox]){display:flex;align-items:flex-start;gap:9px;font-weight:400}label>input[type=checkbox]{margin:2px 0 0}fieldset{min-width:0;border:1px solid var(--line);border-radius:10px;padding:18px}legend{padding:0 6px;font-weight:650;font-size:14px}em{font-style:normal;font-size:10px;color:var(--muted);font-weight:400}:where(.app-content>form:not(.product-form):not(.brand-config-form),.app-content>article,.app-content>section:not(.products-section):not(.history-day),.pf-card,.setting-card,.dashboard-card,.connection-card,.history-cleanup-review,.connection-delete-review){background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin-bottom:22px}.app-content>form:not(.product-form):not(.brand-config-form){max-width:880px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.section-heading h2{margin:0 0 5px}.section-heading p{font-size:12px;margin:0}.section-heading>a{font-size:11px;font-weight:600;white-space:nowrap}.section-heading .page-overline{margin-bottom:10px}.empty-state{padding:44px 24px;text-align:center;color:var(--muted);background:var(--panel);border:1px dashed var(--line);border-radius:12px;grid-column:1/-1;font-size:12px}.empty-state h2{color:var(--ink)}.breadcrumb{display:flex;gap:8px;align-items:center;font-size:11px;color:var(--muted);margin-bottom:22px}.breadcrumb a{color:var(--muted)}.count-badge{display:inline-block;margin-left:8px;font-size:11px;font-weight:550;background:var(--accent-soft);color:var(--accent);border-radius:6px;padding:3px 7px;vertical-align:middle}
/* Metrics and overview */
.metrics,.admin-stats{display:grid;gap:16px;margin-bottom:28px;grid-template-columns:repeat(3,minmax(0,1fr))}.overview-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.metric,.admin-stat{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:21px 22px;min-width:0}.metric-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;font-weight:550;color:var(--muted);margin-bottom:16px}.metric-icon{width:29px;height:29px;display:grid;place-items:center;background:var(--panel);border-radius:8px;color:var(--accent)}.metric-icon .nav-icon{width:16px;height:16px}.metric>strong,.admin-stat>strong{display:block;font-size:30px;letter-spacing:-1px;font-weight:620;line-height:1;margin-bottom:11px}.metric>small{font-size:10px}.admin-stat small{display:block;font-size:11px}.overview-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:22px}.dashboard-card{margin:0;min-width:0;padding:26px}.dashboard-card .section-heading{align-items:flex-start}.automation-overview .section-heading{gap:8px}.automation-overview .section-heading h2{font-size:18px}.schedule-glance{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 12px 24px}.schedule-glance>div:first-child{display:flex;flex-direction:column;gap:8px}.schedule-glance strong{font-size:42px;font-weight:550;letter-spacing:-1.5px;line-height:1}.schedule-glance small{font-size:11px}.schedule-glance>div>span{font-size:10px;color:var(--muted)}.progress-ring{width:118px;height:118px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--accent) var(--progress),var(--line) 0);position:relative}.progress-ring:before{content:"";position:absolute;inset:7px;background:var(--surface);border-radius:50%}.progress-ring>span{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px}.progress-ring strong{font-size:28px;line-height:1.1;color:var(--ink)}.progress-ring small{font-size:10px}.automation-overview>p{font-size:12px;margin-bottom:22px}.dashboard-card-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid var(--line);padding-top:20px}.dashboard-card-footer>span{font-size:10px;color:var(--muted)}.quick-start{background:var(--accent-soft)}.quick-start>h2{font-size:24px;letter-spacing:-.7px;margin-bottom:9px}.quick-start>p{font-size:12px;max-width:320px}.quick-link{display:flex;align-items:center;gap:13px;padding:14px 0;color:var(--ink);border-bottom:1px solid color-mix(in srgb,var(--accent) 15%,transparent)}.quick-link:last-child{border-bottom:0;padding-bottom:0}.quick-link>svg:first-child{color:var(--accent)}.quick-link>svg:last-child{margin-left:auto;width:16px}.quick-link span{display:flex;flex-direction:column;gap:3px}.quick-link strong{font-size:12px;font-weight:600}.quick-link small{font-size:10px}.click-chart{height:210px;display:flex;align-items:stretch;justify-content:space-around;gap:10px;padding-top:12px}.chart-column{display:flex;flex:1;max-width:50px;flex-direction:column;align-items:center;gap:8px;font-size:10px;color:var(--muted)}.chart-track{height:140px;width:100%;max-width:24px;border-radius:5px;background:var(--panel);margin-top:auto;display:flex;align-items:flex-end}.chart-bar{width:100%;border-radius:5px;background:var(--accent);opacity:.82;min-height:3px}.chart-column small{font-size:9px}.activity-row{display:flex;gap:11px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line);min-width:0}.activity-row:last-child{border-bottom:0;padding-bottom:0}.activity-icon{width:32px;height:32px;border:1px solid var(--line);background:var(--panel);border-radius:9px;display:grid;place-items:center;flex-shrink:0;color:var(--muted)}.activity-icon.is-sent{background:var(--accent-soft);color:var(--accent);border:0}.activity-icon svg{width:16px}.activity-row>div{min-width:0;flex:1}.activity-row strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;font-weight:550;max-width:290px}.activity-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;margin-top:3px}
/* Product library */
.products-section{min-width:0}.products-section .section-heading{margin:36px 0 20px}.view-switch{display:flex;gap:3px;padding:3px;background:var(--surface);border:1px solid var(--line);border-radius:8px}.view-switch button{width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:5px;background:transparent;color:var(--muted);padding:4px}.view-switch button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}.view-switch svg{width:17px;height:17px}.product-filter{display:flex;align-items:center;gap:12px;margin-bottom:22px}.search-field{position:relative;flex:1;display:flex;align-items:center;min-width:0}.search-field svg{position:absolute;left:13px;width:17px;height:17px;color:var(--muted);pointer-events:none}.search-field:has(svg) input{padding-left:39px!important}.product-filter select{width:170px;flex-shrink:0}.product-filter>small{margin-left:auto;text-align:right;white-space:nowrap;font-size:10px;min-width:120px}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:start}.product-card{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:13px;transition:border-color .15s,box-shadow .15s;position:relative}.product-card:hover{border-color:color-mix(in srgb,var(--accent) 45%,var(--line));box-shadow:0 6px 20px #00000009}.product-photo{height:185px;position:relative;display:flex;align-items:center;justify-content:center;border-radius:12px 12px 0 0;overflow:hidden;background:#fff;border-bottom:1px solid var(--line);padding:22px}.admin-image-preview{border:0;background:transparent;padding:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;cursor:zoom-in}.admin-image-preview img{width:100%;height:100%;object-fit:contain;transition:transform .2s}.admin-image-preview:hover{background:transparent}.admin-image-preview:hover img{transform:scale(1.04)}.product-badge{position:absolute;top:11px;left:11px;padding:4px 8px;border-radius:5px;font-size:9px;font-weight:600;display:flex;align-items:center;gap:5px;border:1px solid #e0e9e5}.product-badge:before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}.badge-active{background:#edf8f1;color:#256e4e}.badge-paused{background:#f5f1e8;color:#816531}.product-detail{padding:17px 16px 16px;display:flex;flex-direction:column;gap:9px}.product-id{font-size:8px;letter-spacing:1.1px;color:var(--muted);font-weight:600}.product-detail>strong{font-size:12px;line-height:1.6;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px}.product-price{font-size:16px;font-weight:650;letter-spacing:-.4px;margin-top:1px}.product-actions{padding:0 13px 14px;display:flex;gap:5px;align-items:center}.product-actions .ui-btn{font-size:10px;min-height:33px;padding:8px 10px;flex:1}.product-actions .ui-btn:nth-child(2){color:var(--accent);border-color:color-mix(in srgb,var(--accent) 20%,var(--line))}.product-actions svg{width:13px;height:13px;flex-basis:13px}.product-more{position:relative;margin-left:1px}.product-more summary{list-style:none;display:grid;place-items:center;height:32px;width:27px;color:var(--muted);font-weight:700;font-size:18px;letter-spacing:1px;border-radius:5px;user-select:none}.product-more summary::-webkit-details-marker{display:none}.product-more summary:hover{background:var(--panel);color:var(--ink)}.more-menu{position:absolute;right:0;top:38px;z-index:12;min-width:175px;padding:5px;background:var(--surface);box-shadow:0 10px 30px #00000025;border:1px solid var(--line);border-radius:9px}.more-menu form{margin:0}.more-menu button{border:0!important;background:transparent!important;justify-content:flex-start!important;width:100%;font-size:11px!important}.more-menu button:hover{background:var(--panel)!important}.product-grid.is-list{grid-template-columns:1fr;gap:9px}.is-list .product-card{display:grid;grid-template-columns:80px minmax(0,1fr) 220px;align-items:center;gap:15px;padding:10px 14px 10px 10px}.is-list .product-photo{height:72px;border-radius:7px;padding:8px;border:1px solid var(--line)}.is-list .product-badge{display:none}.is-list .product-detail{padding:0;gap:4px}.is-list .product-detail>strong{min-height:0;-webkit-line-clamp:1;font-size:12px}.is-list .product-price{font-size:13px}.is-list .product-actions{padding:0}.no-image{display:flex;flex-direction:column;align-items:center;gap:9px;color:#84918d}.no-image svg{width:32px;height:32px}.no-image small{color:#84918d}
/* Editor and branding */
.pf-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:24px}.pf-main,.pf-side{min-width:0}.pf-card{padding:25px;margin-bottom:20px}.pf-card>h2{padding-bottom:17px;border-bottom:1px solid var(--line);margin-bottom:22px}.pf-card label:last-child{margin-bottom:0}.pf-card textarea{min-height:110px;resize:vertical}.pf-hint{display:block;font-size:10px;line-height:1.65;margin-top:8px;font-weight:400}.pf-hint.is-over{color:var(--accent)}.pf-id{font-size:15px;color:var(--muted);font-weight:450;letter-spacing:0}.pf-preview{height:220px;padding:18px;display:grid;place-items:center;background:#fff;color:#84918d;border:1px solid var(--line);border-radius:10px;margin-bottom:14px}.pf-preview img{max-height:185px;width:100%;object-fit:contain}.dropzone{padding:24px 15px;text-align:center;border:1px dashed var(--input-line);border-radius:9px;font-size:11px;color:var(--muted);background:var(--panel);margin-bottom:20px;cursor:pointer}.dropzone:before{content:"↑";display:block;font-size:28px;color:var(--accent);margin-bottom:8px}.dropzone input{position:absolute;opacity:0;width:1px!important;height:1px!important;pointer-events:none}.dropzone.dragging{border-color:var(--accent);background:var(--accent-soft)}.connection-select{border:0;padding:0;margin:0 0 20px}.connection-select legend{padding:0;font-size:12px}.connection-select p{font-size:11px;margin:10px 0 18px}.connection-choices{display:grid;gap:10px}.connection-choice{display:flex!important;align-items:center!important;gap:12px!important;margin:0!important;padding:13px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.connection-choice:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.connection-choice input{margin:0!important}.connection-choice span{display:flex;flex-direction:column;gap:4px}.connection-choice strong{font-size:12px}.connection-choice small{font-size:10px}.disclosure-option{font-size:11px!important;font-weight:400!important;line-height:1.7;display:flex;gap:9px;margin-bottom:0}.pf-savebar{position:sticky;bottom:14px;padding:14px 18px;display:flex;justify-content:flex-end;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 5px 20px #00000012;z-index:15}.brand-config-form{max-width:1100px}.brand-field{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:12px;margin-bottom:16px}.brand-field label{margin-bottom:8px}.brand-field small{display:block;font-size:11px;margin-top:9px;max-width:770px}.brand-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:26px}.brand-upload-box{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:12px;min-width:0}.brand-upload-box p{font-size:11px}.brand-upload-box small{display:block;font-size:10px;line-height:1.6;margin-top:10px}.brand-empty{padding:20px;background:var(--panel);border-radius:8px;text-align:center}.brand-asset-preview{background:#fff;padding:15px;border-radius:9px;border:1px solid var(--line);margin:16px 0}.brand-asset-preview img{max-height:100px;margin:auto;object-fit:contain}.brand-favicon-preview img{width:48px;height:48px}.brand-removal{font-size:11px!important;font-weight:400!important}.brand-settings-footer{margin-top:24px;display:flex;justify-content:flex-end}.brand-save-success,.program-notice{padding:15px 20px;border:1px solid var(--accent);background:var(--accent-soft);color:var(--ink);border-radius:9px;font-size:12px}.theme-settings{border:0;padding:0;margin:28px 0}.theme-settings legend{padding:0;font-size:17px}.theme-settings>p{font-size:12px;margin-top:10px;max-width:850px}.theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.theme-option{position:relative;cursor:pointer;margin:0}.theme-option input{position:absolute;left:15px;top:14px;width:16px;height:16px;margin:0}.theme-option-body{display:block;padding:12px;background:var(--surface);border:2px solid var(--line);border-radius:12px;min-height:192px}.theme-option:has(input:checked) .theme-option-body{border-color:var(--accent)}.theme-option:has(input:focus-visible) .theme-option-body{outline:3px solid var(--accent);outline-offset:3px}.theme-sample{display:flex;height:90px;border-radius:7px;overflow:hidden;background:var(--sample-bg);border:1px solid var(--sample-line)}.theme-sample-nav{width:27%;display:flex;flex-direction:column;gap:9px;padding:18px 8px;background:var(--sample-nav)}.theme-sample-nav i{height:5px;background:var(--sample-nav-text);border-radius:3px;opacity:.65}.theme-sample-nav i:first-child{background:var(--sample-accent);height:8px}.theme-sample-main{flex:1;display:flex;flex-direction:column;gap:8px;padding:12px}.theme-sample-main i{height:7px;width:60%;border-radius:3px;background:var(--sample-ink);opacity:.8}.theme-sample-main i:nth-child(2){height:21px;width:100%;opacity:.15}.theme-sample-main b{height:13px;width:60%;background:var(--sample-accent);border-radius:3px}.theme-option-label{display:flex;align-items:center;justify-content:space-between;gap:7px;margin:12px 0 7px}.theme-option-label strong{font-size:11px}.theme-tag{font-size:9px;padding:3px 6px;background:var(--panel);border-radius:4px;color:var(--muted)}.theme-option-body>small{font-size:10px;line-height:1.6;display:block;font-weight:400}.theme-hint{display:block;margin-top:14px;font-size:10px}
/* Operations */
.program-control-header,.connection-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}.program-control-header p{font-size:12px;margin:8px 0 0}.program-control-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.program-action{margin:0;padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:11px;display:flex;flex-direction:column;align-items:flex-start;min-width:0}.program-action h3{margin-bottom:9px}.program-action p{font-size:11px;margin-bottom:15px}.program-action button{margin-top:auto}.program-action .program-confirm{font-size:10px}.program-status,.connection-primary-tag{display:inline-flex;align-items:center;gap:6px;border-radius:6px;padding:6px 9px;background:var(--panel);border:1px solid var(--line);font-size:9px;white-space:nowrap;color:var(--muted);font-weight:600;line-height:1.4}.program-status:before{content:"";width:5px;height:5px;background:currentColor;border-radius:50%}.program-status.is-running,.connection-primary-tag{background:var(--accent-soft);color:var(--accent);border-color:transparent}.program-diagnostics-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:18px}.program-diagnostics-stats>span{padding:12px;background:var(--panel);border-radius:8px;font-size:10px;color:var(--muted)}.program-diagnostics-stats strong{color:var(--ink);font-size:17px;display:block;margin-top:4px}.program-diagnostics>p{font-size:12px;margin:8px 0}.program-diagnostics [data-status-error]{color:#d05d72}.fields-inline{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px}.setting-card form{padding:0;background:transparent;border:0}.setting-card .settings-actions{margin:0}.history-day{margin-top:34px}.history-day>h2{font-size:15px;margin-bottom:18px}.history-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.history-card{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:16px}.history-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.history-head strong{font-size:12px}.history-product{font-size:11px;line-height:1.6;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-group,.history-detail{display:block;font-size:10px;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-status{font-size:9px;background:var(--panel);padding:4px 7px;border-radius:5px;color:var(--muted);white-space:nowrap}.status-sent{background:var(--accent-soft);color:var(--accent)}.status-failed{color:#d05d72;background:#c9475f12}.status-reserved{color:var(--accent)}.connection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.connection-card{margin:0;min-width:0}.connection-card.is-primary{border-color:var(--accent)}.connection-card-header{align-items:center}.connection-card-header h2,.connection-card-header form{margin:0}.connection-card p{font-size:12px;overflow-wrap:anywhere}.connection-impact{padding:12px;background:var(--panel);border-radius:7px;font-size:11px!important}.connection-card .actions-bar{margin-bottom:0;gap:6px}.connection-card .ui-btn{font-size:10px;padding:8px 11px}.group-controls{display:flex;flex-direction:column;gap:18px;margin-bottom:20px}.group-connection-grid,.connection-tabs{display:flex;gap:8px;flex-wrap:wrap}.group-connection-card,.connection-tab{padding:13px 18px;background:var(--surface);border:1px solid var(--line);border-radius:8px;color:var(--ink);font-size:12px;font-weight:550}.group-connection-card.selected,.connection-tab.active{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}.group-control-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.group-control-actions form{margin:0}.connection-group-summary h2{font-size:15px}.connection-group-summary p{font-size:12px;margin-bottom:0}.groups-list{display:grid;gap:9px}.group-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 20px;border:1px solid var(--line);background:var(--surface);border-radius:10px}.group-row.is-authorized{border-left:3px solid var(--accent)}.group-info{min-width:0}.group-name{font-size:12px;font-weight:600;overflow-wrap:anywhere}.group-status{font-size:10px;color:var(--muted);margin-top:6px}.group-row form{display:flex;align-items:center;gap:10px;flex-shrink:0}.group-toggle-feedback{font-size:10px;max-width:180px}.group-row button{font-size:10px!important}.group-row.is-authorized [data-authorization-label]{color:var(--accent)}.mini-row{display:flex;align-items:center;gap:18px;justify-content:space-between;padding:16px 20px;background:var(--surface);border:1px solid var(--line);border-radius:8px;margin:9px 0;font-size:12px}.mini-row small{font-size:10px}.mini-row>span:first-child{flex:1}.mini-row .ui-btn{flex-shrink:0}.history-cleanup-review form,.connection-delete-review form{padding-top:16px;margin-top:20px;border-top:1px solid var(--line)}.history-cleanup-confirm,.delete-confirm{line-height:1.7;font-size:12px!important}.app-content table{border-collapse:separate;border-spacing:0;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden;font-size:12px}.app-content table th{padding:13px 16px;text-align:left;font-size:10px;font-weight:600;color:var(--muted);background:var(--panel);border-bottom:1px solid var(--line)}.app-content table td{padding:13px 16px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.app-content table tr:last-child td{border-bottom:0}.app-content table tr:hover td{background:var(--panel)}.clicks-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:22px}.clicks-layout>article{background:var(--surface);padding:24px;border:1px solid var(--line);border-radius:12px;min-width:0}.clicks-layout table{border:0}.clicks-layout td:last-child{text-align:right}.clicks-layout article:first-child{grid-row:span 2}
/* Public catalog */
.public-header{max-width:1440px;padding:24px 50px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:25px;border-bottom:1px solid var(--line)}.public-brand{max-width:230px}.public-brand .sidebar-brand{min-height:45px}.public-brand .sidebar-brand.has-logo{background:#fff;max-height:65px;padding:6px 12px}.public-brand .sidebar-logo{max-height:50px;max-width:180px}.public-brand .sidebar-brand small{display:none}.public-header nav{display:flex;align-items:center;gap:30px;font-size:12px}.public-header nav>a:first-child{color:var(--muted)}.public-content{max-width:1440px;padding:34px 50px 60px;margin:auto}.catalog-hero{background:var(--accent-soft);padding:52px;border-radius:22px;margin-bottom:45px;position:relative;overflow:hidden}.catalog-hero h1{font-size:48px;line-height:1.12;font-weight:600;letter-spacing:-2px;position:relative;z-index:1}.catalog-hero p{font-size:13px;margin-top:18px;position:relative;z-index:1}.catalog-hero .ui-btn{margin-top:8px;position:relative;z-index:1}.catalog-decoration{position:absolute;right:70px;top:40px;transform:rotate(-9deg);width:230px;height:230px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--accent) 25%,transparent);border-radius:45px;background:color-mix(in srgb,var(--surface) 28%,transparent);color:var(--accent)}.catalog-decoration:before,.catalog-decoration:after{content:"";position:absolute;width:35px;height:35px;border:1px solid var(--accent);border-radius:10px;opacity:.3;right:-30px;top:20px;transform:rotate(22deg)}.catalog-decoration:after{left:-30px;top:auto;bottom:20px;width:50px;height:50px}.catalog-decoration svg{width:110px;height:110px;stroke-width:1}.public-content>.section-heading{margin-bottom:26px}.public-content>.section-heading h2{font-size:23px;margin-bottom:0}.public-content>.section-heading .search-field{max-width:340px}.offer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}.offer-card{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:15px;overflow:hidden;display:flex;flex-direction:column;transition:border-color .2s,transform .2s}.offer-card:hover{border-color:var(--accent);transform:translateY(-3px)}.offer-image-button{width:100%;height:230px;background:#fff;padding:25px;border:0;border-bottom:1px solid var(--line);border-radius:0;cursor:zoom-in;display:flex;align-items:center;justify-content:center}.offer-image-button:hover{background:#fff}.offer-image-button img{width:100%;height:100%;object-fit:contain}.offer-card>.no-image{height:230px;justify-content:center;background:#fff}.offer-detail{display:flex;flex-direction:column;flex:1;padding:24px}.offer-detail .page-overline{font-size:8px;letter-spacing:1.3px;margin-bottom:10px}.offer-card h2{font-size:15px;line-height:1.55;letter-spacing:-.25px;margin-bottom:12px}.offer-card p{font-size:11px;line-height:1.8;margin-bottom:24px}.offer-bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:18px;border-top:1px solid var(--line)}.offer-bottom small{display:block;font-size:9px;margin-bottom:4px}.offer-bottom strong{font-size:19px;letter-spacing:-.5px;font-weight:650}.offer-link{font-size:10px;padding:10px 12px;min-height:37px}.catalog-disclosure{font-size:11px;color:var(--muted);line-height:1.8;text-align:center;margin-top:35px;max-width:780px;margin-inline:auto}.public-footer{max-width:1340px;margin:auto;padding:25px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.public-footer small{font-size:10px}
.image-preview{max-width:min(780px,92vw);width:780px;max-height:90vh;border:1px solid var(--line);border-radius:16px;padding:0;background:var(--surface);color:var(--ink);box-shadow:0 25px 100px #00000045}.image-preview::backdrop{background:#090f1acf;backdrop-filter:blur(4px)}.preview-head{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:16px 20px;border-bottom:1px solid var(--line)}.preview-head strong{font-size:13px;font-weight:550}.preview-head button{border:1px solid var(--line);background:var(--panel);color:var(--ink);width:32px;height:32px;border-radius:7px;font-size:22px;flex-shrink:0}.image-preview>img{max-height:70vh;width:100%;object-fit:contain;background:#fff;padding:25px}
/* Responsive layouts */
@media(min-width:1600px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.product-photo{height:210px}}
@media(max-width:1250px){.app-content{padding:30px}.app-topbar{padding-inline:30px}.overview-layout{grid-template-columns:1fr 1fr}.overview-metrics{gap:10px}.metric{padding:18px}.metric-top{font-size:10px}.automation-overview .section-heading{flex-direction:column}.offer-grid{gap:18px}.offer-detail{padding:18px}.offer-bottom{align-items:flex-start;flex-direction:column}.offer-link{width:100%}.program-control-grid{gap:10px}.program-action{padding:16px}.page-head{align-items:flex-start}.page-head .actions-bar{flex-shrink:1;justify-content:flex-end;max-width:310px}}
@media(max-width:1000px){.topbar-date{display:none}.topbar-catalog{margin-left:auto}.app-topbar{gap:15px}.app-content{padding:28px}.page-head{flex-wrap:wrap}.page-head .actions-bar{justify-content:flex-start;max-width:none}.overview-layout{grid-template-columns:1fr}.overview-metrics{grid-template-columns:repeat(2,1fr)}.automation-overview .section-heading{flex-direction:row}.program-control-grid{grid-template-columns:1fr}.program-action{display:grid;grid-template-columns:1fr auto;gap:8px 16px}.program-action h3{margin:0}.program-action p{margin:0;grid-column:1}.program-action button{grid-column:2;grid-row:1/4;align-self:center;max-width:180px}.program-diagnostics-stats{grid-template-columns:repeat(3,1fr)}.connection-grid{grid-template-columns:1fr}.pf-layout{grid-template-columns:1fr}.pf-side{display:grid;grid-template-columns:1.5fr 1fr;gap:18px}.theme-grid{grid-template-columns:repeat(2,1fr)}.history-grid{grid-template-columns:repeat(2,1fr)}.product-filter{flex-wrap:wrap}.product-filter>small{min-width:0}.search-field{min-width:180px}.product-filter .search-field{flex-basis:calc(100% - 190px)}.brand-upload-grid,.clicks-layout{grid-template-columns:1fr}.catalog-decoration{right:45px;width:180px;height:180px;top:55px}.catalog-hero{padding:40px}.catalog-hero h1{font-size:40px}.catalog-hero p{max-width:65%}.offer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.public-content{padding:30px}.public-header{padding:20px 30px}.public-footer{margin-inline:30px}.offer-bottom{flex-direction:row;align-items:center}.offer-link{width:auto}.is-list .product-card{grid-template-columns:65px minmax(0,1fr)}.is-list .product-photo{height:65px;grid-row:1/3}.is-list .product-actions{grid-column:2;max-width:260px}.is-list .product-detail{grid-column:2;grid-row:1}}
@media(max-width:760px){.app-main{width:100%}.menu-label{display:flex}.app-topbar{height:65px;padding:0 20px;gap:12px}.topbar-context small,.workspace-dot,.topbar-separator{display:none}.topbar-context strong{font-size:12px}.topbar-catalog{padding-left:12px;border-left:0;font-size:10px}.topbar-avatar{display:none}.app-content{padding:27px 20px}.app-footer{padding:18px 20px}.page-head{gap:20px;margin-bottom:24px}.page-head h1{font-size:27px}.page-head p{font-size:12px}.page-overline{font-size:9px;margin-bottom:10px}.metrics{gap:10px;margin-bottom:25px}.metric,.admin-stat{padding:16px}.metric-top{font-size:10px;margin-bottom:13px;gap:6px}.metric-icon{width:24px;height:24px;border-radius:6px}.metric-icon .nav-icon{width:14px;height:14px}.metric>strong,.admin-stat>strong{font-size:26px;margin-bottom:8px}.metric>small{font-size:9px}.products-metrics .metric{padding:14px 12px}.products-metrics .metric-top{font-size:9px}.products-metrics .metric-icon{display:none}.products-metrics .metric>strong{font-size:25px}.products-metrics .metric>small{font-size:8px}.section-heading{gap:12px;margin-bottom:18px}.section-heading h2{font-size:15px}.section-heading p{font-size:11px}.section-heading>a{font-size:10px}.products-section .section-heading{margin-top:30px}.product-grid{gap:12px}.product-photo{height:165px;padding:22px 18px}.product-detail{padding:14px 12px;gap:8px}.product-detail>strong{font-size:11px;min-height:36px}.product-price{font-size:15px}.product-actions{padding:0 9px 12px;gap:4px}.product-actions .ui-btn{padding:8px;font-size:9px;gap:5px;min-height:32px}.product-actions .ui-btn svg{width:12px;height:12px;flex-basis:12px}.product-more summary{width:22px;font-size:17px}.product-filter{gap:9px;margin-bottom:18px}.product-filter select{width:145px;min-height:42px;font-size:11px}.product-filter .search-field{min-width:130px;flex-basis:calc(100% - 155px)}.product-filter>small{width:100%;text-align:left;margin:0 0 0 2px}.dashboard-card{padding:22px}.automation-overview .section-heading{flex-direction:column}.dashboard-card-footer{flex-wrap:wrap;gap:12px}.quick-start>h2{font-size:23px}.activity-row strong{max-width:230px}.fields-inline{grid-template-columns:1fr 1fr}.fields-inline label:first-child{grid-column:1/-1}.program-control-header{flex-direction:column}.program-action{display:flex;align-items:flex-start;gap:0;padding:18px}.program-action h3{margin-bottom:10px}.program-action p{margin-bottom:15px}.program-action button{margin-top:5px;max-width:none}.program-diagnostics-stats{grid-template-columns:repeat(2,1fr)}.history-grid{grid-template-columns:1fr}.connection-card-header{flex-wrap:wrap}.connection-card-header button{font-size:9px!important}.group-row{padding:15px;align-items:flex-start;gap:13px}.group-row form{flex-direction:column;align-items:flex-end;flex-shrink:1;max-width:140px}.group-name{font-size:11px}.group-status{font-size:9px}.group-row button{font-size:9px!important;padding:8px 10px!important}.group-toggle-feedback{font-size:9px;text-align:right}.group-controls .ui-btn{font-size:10px}.mini-row{flex-wrap:wrap;gap:8px;padding:15px;font-size:11px}.mini-row>span:first-child{min-width:100%}.pf-side{display:block}.pf-card{padding:20px}.pf-layout{gap:0}.theme-option-label{align-items:flex-start;flex-wrap:wrap}.theme-option-label strong{font-size:10px}.theme-option-body{min-height:205px}.brand-field,.brand-upload-box{padding:20px}.theme-grid{gap:10px}.theme-hint{line-height:1.7}:where(.app-content>article,.app-content>section:not(.products-section):not(.history-day),.app-content>form:not(.product-form):not(.brand-config-form)){padding:20px}.public-header{padding:18px 20px}.public-header nav>a:first-child{display:none}.public-header nav .ui-btn{font-size:10px;min-height:34px;padding:8px 10px}.public-brand{max-width:155px}.public-brand .sidebar-logo{max-width:135px;max-height:42px}.public-content{padding:22px 20px 40px}.catalog-hero{padding:30px 25px;border-radius:16px;margin-bottom:32px}.catalog-hero h1{font-size:35px;letter-spacing:-1.3px}.catalog-hero p{max-width:100%;font-size:12px}.catalog-decoration{right:-50px;top:15px;width:160px;height:160px;opacity:.12}.catalog-hero .ui-btn{font-size:10px}.public-content>.section-heading{flex-wrap:wrap}.public-content>.section-heading .search-field{max-width:none;flex-basis:100%}.public-content>.section-heading h2{font-size:21px}.offer-grid{gap:14px}.offer-image-button{height:180px;padding:18px}.offer-detail{padding:15px}.offer-detail .page-overline{font-size:7px;letter-spacing:.8px}.offer-card h2{font-size:12px;line-height:1.55}.offer-card p{font-size:10px;line-height:1.7;margin-bottom:16px}.offer-bottom{flex-direction:column;align-items:flex-start;padding-top:13px;gap:12px}.offer-bottom strong{font-size:17px}.offer-link{width:100%;font-size:10px}.public-footer{margin-inline:20px;gap:12px}.public-footer small{font-size:9px}.catalog-disclosure{font-size:10px}.app-content table td,.app-content table th{padding:11px;font-size:10px}}
@media(max-width:390px){.app-content{padding:24px 14px}.app-topbar{padding-inline:14px}.topbar-catalog span{display:none}.product-actions .ui-btn{gap:3px;padding:8px 6px}.product-photo{height:140px}.product-price{font-size:13px}.product-id{font-size:7px}.product-grid{gap:9px}.product-actions .ui-btn svg{display:none}.activity-row strong{max-width:160px}.theme-grid{grid-template-columns:1fr}.theme-option-body{min-height:0}.public-content{padding-inline:14px}.offer-grid{grid-template-columns:1fr}.offer-bottom{flex-direction:row;align-items:center}.offer-link{width:auto}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}

.plan-stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:22px}.plan-stat{padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:12px}.plan-stat strong{display:block;font-size:23px;margin:7px 0}.plan-stat small{font-size:10px}

.product-actions{display:grid}.product-actions{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(44px,1fr)}
.product-actions> :is(a,form){min-width:0;width:100%;min-height:44px;margin:0}
.app-content .product-actions :is(a,button){height:100%;min-height:44px;width:100%;font-size:10px;justify-content:center;align-items:center;padding:8px}
.app-content .product-actions form>button{margin:0}
.group-connection-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.group-control-actions{justify-content:center;align-items:center}
.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1150px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.is-list .product-card{grid-template-columns:80px minmax(0,1fr) 240px}.is-list .product-actions{gap:5px}.is-list .product-photo{height:96px}
@media(max-width:760px){.is-list .product-card{grid-template-columns:65px minmax(0,1fr)}.is-list .product-actions{grid-column:2}.is-list .product-photo{grid-row:1/3}.product-actions .ui-btn,.app-content .product-actions button{font-size:10px;min-height:40px}.product-actions .ui-btn svg{display:none}}

/* Refined selection controls: native form semantics, theme-aware CSS artwork. */
.app-content input:is([type="checkbox"],[type="radio"]){
 -webkit-appearance:none;appearance:none;display:inline-grid!important;place-content:center;
 width:20px!important;height:20px;min-width:20px;min-height:20px;flex:0 0 20px;
 margin:0;vertical-align:middle;padding:0;border:1.5px solid color-mix(in srgb,var(--muted) 60%,var(--line));
 border-radius:6px;background:var(--input-bg);color:var(--btn-accent-text);
 box-shadow:0 1px 2px #00000008;cursor:pointer;
 transition:background-color .16s,border-color .16s,box-shadow .16s;
}
.app-content input[type="radio"]{border-radius:50%}
.app-content input:is([type="checkbox"],[type="radio"])::before{
 content:"";display:block;width:12px;height:12px;background:currentColor;
 opacity:0;transform:scale(.55);transition:transform .16s,opacity .16s;
}
.app-content input[type="checkbox"]::before{
 clip-path:polygon(8% 47%,21% 34%,43% 56%,79% 18%,93% 31%,43% 83%);
}
.app-content input[type="radio"]::before{width:8px;height:8px;border-radius:50%}
.app-content input:is([type="checkbox"],[type="radio"]):hover:not(:disabled){
 border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 10%,transparent);
}
.app-content input:is([type="checkbox"],[type="radio"]):checked,
.app-content input[type="checkbox"]:indeterminate{
 background:var(--accent);border-color:var(--accent);box-shadow:0 2px 5px #00000012;
}
.app-content input:is([type="checkbox"],[type="radio"]):checked::before,
.app-content input[type="checkbox"]:indeterminate::before{opacity:1;transform:scale(1)}
.app-content input[type="checkbox"]:indeterminate::before{
 height:2px;width:10px;border-radius:2px;clip-path:none;
}
.app-content input:is([type="checkbox"],[type="radio"]):focus:not(:focus-visible){outline:none}
.app-content input:is([type="checkbox"],[type="radio"]):focus-visible{
 outline:2px solid var(--accent);outline-offset:3px;
 box-shadow:0 0 0 5px color-mix(in srgb,var(--accent) 12%,transparent);
}
.app-content input:is([type="checkbox"],[type="radio"]):disabled{
 opacity:.45;cursor:not-allowed;box-shadow:none;
}
.app-content :is(.connection-choice,.disclosure-option,.brand-removal,.history-cleanup-confirm,.delete-confirm){
 cursor:pointer;gap:12px;
}
.app-content :is(.disclosure-option,.brand-removal,.history-cleanup-confirm,.delete-confirm){
 align-items:center;min-height:36px;
}
.app-content .connection-choice{
 border-radius:12px;padding:15px 16px;
 transition:background-color .16s,border-color .16s,box-shadow .16s;
}
.app-content .connection-choice:hover{
 border-color:color-mix(in srgb,var(--accent) 55%,var(--line));
}
.app-content .connection-choice:has(input:focus-visible){
 box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent);
}
@media(forced-colors:active){
 .app-content input:is([type="checkbox"],[type="radio"]){
  forced-color-adjust:none;border-color:ButtonText;background:Canvas;color:HighlightText;
 }
 .app-content input:is([type="checkbox"],[type="radio"]):checked,
 .app-content input[type="checkbox"]:indeterminate{background:Highlight;border-color:Highlight}
 .app-content input:is([type="checkbox"],[type="radio"]):focus-visible{outline-color:Highlight}
}
@media(prefers-reduced-motion:reduce){
 .app-content input:is([type="checkbox"],[type="radio"])::before{transition:none}
}

/* WhatsApp group directory: three readable cards per desktop row. */
.groups-list{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:16px;
 align-items:stretch;
}
.groups-list .group-row{
 box-sizing:border-box;
 display:flex;
 flex-direction:column;
 align-items:stretch;
 justify-content:space-between;
 min-width:0;
 gap:14px;
 padding:18px;
}
.groups-list .group-info{flex:1;min-width:0}
.groups-list .group-row form[data-group-toggle]{
 box-sizing:border-box;
 display:flex;
 flex-direction:column;
 align-items:stretch;
 gap:6px;
 flex:0 0 auto;
 width:100%;
 max-width:none;
 margin:0;
 padding:12px 0 0;
 border:0;
 border-top:1px solid var(--line);
 background:transparent;
 box-shadow:none;
}
.groups-list .group-row form[data-group-toggle] button{
 box-sizing:border-box;
 width:100%;
 min-height:40px;
 margin:0;
}
.groups-list .group-toggle-feedback{
 max-width:none;
 text-align:center;
}
@media(max-width:1000px){
 .groups-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 .groups-list{grid-template-columns:minmax(0,1fr)}
}

/* Groups workspace: account selection, one compact list, clear authorization. */
.groups-workspace{max-width:1200px;margin:auto}
.groups-workspace .page-head{margin-bottom:30px}
.groups-accounts{margin-bottom:26px}
.accounts-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.accounts-heading h2{font-size:13px;margin:0;font-weight:600}
.accounts-heading small{font-size:10px}
.account-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.account-tab{display:flex;align-items:center;gap:12px;position:relative;min-width:0;padding:19px 16px;background:var(--surface);border:1px solid var(--line);border-radius:12px;color:var(--ink);transition:background .16s,border-color .16s}
.account-tab:hover{background:var(--panel);border-color:var(--accent)}
.account-tab.is-selected{background:var(--accent-soft);border-color:var(--accent)}
.account-icon{display:grid;place-items:center;width:36px;height:40px;border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:9px;flex-shrink:0}
.is-selected .account-icon{color:var(--accent);background:var(--surface);border-color:color-mix(in srgb,var(--accent) 25%,var(--line))}
.account-copy{min-width:0;display:flex;flex-direction:column;gap:6px}
.account-copy strong{font-size:12px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-copy small{font-size:10px;line-height:1.5}
.account-selected{margin-left:auto;align-self:center;color:var(--accent)}
.account-selected svg{width:17px;height:17px}
.account-primary{font-size:8px;position:absolute;right:12px;top:9px;color:var(--muted);letter-spacing:.25px}
.groups-panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.groups-panel-head{padding:25px 25px 21px;display:flex;justify-content:space-between;align-items:center;gap:20px}
.groups-panel-head .page-overline{font-size:8px;letter-spacing:1.4px;margin-bottom:7px}
.groups-panel-head h2{font-size:21px;margin:0 0 7px;letter-spacing:-.5px}
.groups-panel-head p{font-size:11px;margin:0;max-width:520px}
.groups-panel-head form{margin:0;flex-shrink:0}
.groups-panel-head button .nav-icon{width:15px;height:15px}
.groups-totals{display:flex;gap:24px;align-items:center;padding:16px 25px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--panel)}
.groups-totals>span{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}
.groups-totals strong{color:var(--ink);font-size:12px;font-weight:650}
.groups-totals i{width:6px;height:6px;background:var(--muted);border-radius:50%;margin-right:2px;opacity:.55}
.groups-totals .total-authorized i{background:var(--accent);opacity:1}
.groups-toolbar{display:flex;align-items:center;gap:12px;padding:21px 25px}
.groups-toolbar .search-field{max-width:none}
.groups-toolbar .search-field input{padding-left:39px!important}
.groups-toolbar select{width:185px;flex-shrink:0}
.groups-column-head{display:grid;grid-template-columns:minmax(0,1fr) 140px 60px;gap:20px;padding:12px 25px;background:var(--panel);border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:8px;letter-spacing:1.3px;color:var(--muted);font-weight:650}
.groups-column-head>span:last-child{text-align:right}
.groups-workspace .groups-list{display:block}
.groups-workspace .group-row{display:grid;grid-template-columns:minmax(0,1fr) 140px 60px;gap:20px;align-items:center;padding:16px 25px;margin:0;background:var(--surface);border:0;border-bottom:1px solid var(--line);border-radius:0;min-width:0}
.groups-workspace .group-row:last-child{border-bottom:0}
.groups-workspace .group-row:hover{background:color-mix(in srgb,var(--panel) 50%,var(--surface))}
.groups-workspace .group-info{display:flex;gap:12px;align-items:center;min-width:0}
.groups-workspace .group-avatar{width:35px;height:35px;display:grid;place-items:center;flex-shrink:0;background:var(--panel);color:var(--muted);border:1px solid var(--line);border-radius:10px}
.groups-workspace .group-avatar svg{width:16px;height:16px}
.groups-workspace .group-copy{min-width:0}
.groups-workspace .group-name{display:block;font-size:12px;font-weight:550;line-height:1.55;overflow-wrap:anywhere}
.groups-workspace .group-copy>small{display:block;font-size:9px;margin-top:4px}
.groups-workspace .group-status{margin:0;display:flex;align-items:center;font-size:10px}
.groups-workspace .group-status>span{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:5px;background:var(--panel);color:var(--muted);font-size:9px;line-height:1.5;white-space:nowrap}
.groups-workspace .group-status>span:before{content:"";width:4px;height:4px;background:currentColor;border-radius:50%;opacity:.7}
.groups-workspace .is-authorized .group-status>span{color:var(--accent);background:var(--accent-soft)}
.groups-workspace .group-row form{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:5px;max-width:none;margin:0;position:relative}
.groups-workspace button.group-switch{width:42px!important;height:25px!important;min-height:25px!important;padding:3px!important;border:1px solid var(--input-line)!important;border-radius:20px!important;background:var(--panel)!important;display:flex!important;justify-content:flex-start!important;align-items:center!important;box-shadow:none!important;transition:background .16s,border-color .16s!important}
.groups-workspace button.group-switch>span{display:block;width:17px;height:17px;border-radius:50%;background:var(--muted);box-shadow:0 1px 3px #00000015;transition:transform .16s,background .16s;pointer-events:none}
.groups-workspace button.group-switch[aria-checked=true]{background:var(--accent)!important;border-color:var(--accent)!important}
.groups-workspace button.group-switch[aria-checked=true]>span{transform:translateX(16px);background:var(--btn-accent-text)}
.groups-workspace button.group-switch:hover{border-color:var(--accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent)!important}
.groups-workspace button.group-switch:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.groups-workspace button.group-switch:disabled{opacity:.5}
.groups-workspace .group-toggle-feedback:empty{display:none}
.groups-workspace .group-toggle-feedback:not(:empty){position:absolute;top:31px;right:0;z-index:2;min-width:190px;padding:8px 10px;background:var(--surface);border:1px solid #d05d72;color:#d05d72;border-radius:7px;font-size:10px;box-shadow:0 5px 15px #00000020}
.groups-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 25px;border-top:1px solid var(--line);background:var(--panel)}
.groups-pagination>small{font-size:10px}
.groups-pagination>div{display:flex;align-items:center;gap:13px}
.groups-pagination [data-groups-page]{font-size:10px;color:var(--muted);white-space:nowrap}
.groups-pagination button{min-height:31px!important;height:31px;padding:6px 9px!important}
.groups-pagination button .nav-icon{width:14px;height:14px}
.groups-pagination button:disabled{cursor:default}
.groups-empty{text-align:center;padding:50px 25px;color:var(--muted)}
.groups-empty>svg{width:30px;height:30px;opacity:.7;margin-bottom:15px}
.groups-empty h3{color:var(--ink);margin-bottom:8px}
.groups-empty p{font-size:12px;margin:0}
@media(max-width:1100px){.account-tab{padding:18px 13px;gap:9px}.account-copy small{font-size:9px}.account-icon{width:30px;height:36px}.groups-totals{gap:17px}.groups-totals>span{font-size:10px}.groups-panel-head{align-items:flex-start}}
@media(max-width:760px){
 .groups-workspace .page-head{margin-bottom:25px;gap:15px}
 .groups-workspace .page-head .actions-bar{width:100%}
 .accounts-heading{display:block}.accounts-heading h2{font-size:13px;margin-bottom:5px}.accounts-heading small{font-size:10px}
 .account-tabs{display:flex;overflow-x:auto;gap:10px;padding:2px 1px 8px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
 .account-tab{flex:0 0 215px;min-height:83px;padding:19px 14px;scroll-snap-align:start}
 .account-copy strong{font-size:12px}.account-copy small{font-size:10px}.account-icon{width:34px;height:38px}
 .groups-accounts{margin-bottom:20px}.groups-panel{border-radius:12px}
 .groups-panel-head{padding:20px;flex-direction:column;gap:16px}
 .groups-panel-head h2{font-size:21px}.groups-panel-head p{font-size:11px;line-height:1.75}
 .groups-panel-head form{width:100%}.groups-panel-head button{width:100%;min-height:41px}
 .groups-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:16px 18px}
 .groups-totals>span{display:block;font-size:9px;line-height:1.7}
 .groups-totals strong{display:block;font-size:21px;letter-spacing:-.5px;font-weight:600;margin-bottom:3px}
 .groups-totals i{display:none}
 .groups-totals .total-authorized strong{color:var(--accent)}
 .groups-toolbar{padding:18px;gap:10px;flex-wrap:wrap}
 .groups-toolbar .search-field{flex:1 1 100%;min-width:0}
 .groups-toolbar input,.groups-toolbar select{font-size:12px}
 .groups-toolbar select{width:100%}
 .groups-column-head{grid-template-columns:minmax(0,1fr) 55px;padding:11px 18px;gap:12px}
 .groups-column-head>span:nth-child(2){display:none}
 .groups-workspace .group-row{grid-template-columns:minmax(0,1fr) 45px;gap:5px 12px;padding:16px 18px;min-height:100px;align-items:center}
 .groups-workspace .group-info{grid-column:1;grid-row:1;gap:10px;align-items:flex-start}
 .groups-workspace .group-avatar{width:30px;height:30px;border-radius:8px;margin-top:2px}
 .groups-workspace .group-avatar svg{width:14px;height:14px}
 .groups-workspace .group-name{font-size:12px;line-height:1.65}
 .groups-workspace .group-copy>small{display:none}
 .groups-workspace .group-status{grid-column:1;grid-row:2;margin-left:40px;align-self:start}
 .groups-workspace .group-status>span{font-size:8px;padding:3px 6px}
 .groups-workspace .group-row form{grid-column:2;grid-row:1/3;align-self:center;align-items:center;max-width:none}
 .groups-workspace button.group-switch{width:42px!important;min-height:25px!important}
 .groups-pagination{padding:16px 18px;flex-wrap:wrap;gap:12px}
 .groups-pagination>div{margin-left:auto;gap:10px}
 .groups-pagination>small{font-size:9px}
 .groups-pagination [data-groups-page]{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.groups-workspace button.group-switch>span{transition:none}}
@media(forced-colors:active){.groups-workspace button.group-switch{forced-color-adjust:none;border-color:ButtonText!important;background:Canvas!important}.groups-workspace button.group-switch>span{background:ButtonText}.groups-workspace button.group-switch[aria-checked=true]{background:Highlight!important;border-color:Highlight!important}.groups-workspace button.group-switch[aria-checked=true]>span{background:HighlightText}}
.groups-workspace .group-row form{border:0!important;padding:0!important;background:transparent!important;box-shadow:none!important}
.groups-workspace button.group-switch{position:relative}
.groups-workspace button.group-switch:before{content:"";position:absolute;inset:-10px -2px;border-radius:12px}
.groups-toolbar{scroll-margin-top:94px}
.mobile-account-select{display:none}
@media(max-width:760px){
 .groups-workspace .page-head{gap:13px;margin-bottom:19px}
 .groups-workspace .page-head h1{font-size:25px}
 .groups-accounts .accounts-heading,.groups-accounts .account-tabs{display:none}
 .mobile-account-select{display:block;margin:0;font-size:11px;font-weight:550}
 .mobile-account-select select{margin-top:9px;font-size:12px;min-height:45px}
 .groups-accounts{margin-bottom:20px}
 .groups-panel-head{flex-direction:row;align-items:center;padding:19px 18px;gap:13px}
 .groups-panel-head>div{min-width:0;flex:1}
 .groups-panel-head .page-overline{display:none}
 .groups-panel-head h2{font-size:18px;margin-bottom:7px}
 .groups-panel-head p{font-size:10px;line-height:1.7}
 .groups-panel-head form{width:auto}
 .groups-panel-head button{width:41px;height:41px;min-height:41px;padding:10px!important}
 .groups-panel-head button span{display:none}
 .groups-panel-head button svg{width:18px;height:18px}
 .groups-toolbar{flex-wrap:nowrap;padding:16px 18px;gap:9px}
 .groups-toolbar .search-field{flex:1 1 auto;min-width:0}
 .groups-toolbar input{font-size:11px}
 .groups-toolbar select{width:125px;font-size:10px;padding-inline:9px}
}

/* Authorization filter: a themed, keyboard-accessible popover. */
.group-filter{position:relative;flex:0 0 190px;width:190px;min-width:0}
.group-filter>select{width:100%}
.groups-workspace button.group-filter-trigger{display:flex!important;align-items:center;gap:9px;width:100%;min-height:43px;padding:11px 13px!important;border:1px solid var(--input-line)!important;border-radius:9px!important;background:var(--input-bg)!important;color:var(--input-text)!important;font-size:12px!important;font-weight:450!important;box-shadow:0 1px 2px #00000005;cursor:pointer;text-align:left}
.group-filter-trigger [data-filter-label]{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.group-filter-trigger .filter-icon{color:var(--muted);flex-shrink:0}
.group-filter-trigger .filter-chevron{color:var(--muted);transition:transform .16s;flex-shrink:0}
.groups-workspace button.group-filter-trigger:hover{border-color:var(--accent)!important}
.groups-workspace button.group-filter-trigger[aria-expanded=true]{border-color:var(--accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent)}
.group-filter-trigger[aria-expanded=true] .filter-chevron{transform:rotate(180deg);color:var(--accent)}
.group-filter-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.group-filter-panel{position:absolute;z-index:18;right:0;top:calc(100% + 9px);width:246px;padding:7px;border:1px solid var(--line);border-radius:13px;background:var(--surface);box-shadow:0 14px 35px #00000030,0 3px 8px #00000012}
.group-filter-caption{display:block;padding:9px 10px 10px;color:var(--muted);font-size:8px;font-weight:650;letter-spacing:1.25px}
.groups-workspace button.group-filter-option{display:flex!important;align-items:center;gap:10px;width:100%;min-height:43px;border:0!important;border-radius:8px!important;padding:11px 10px!important;background:transparent!important;color:var(--ink)!important;font-size:12px!important;font-weight:450!important;justify-content:flex-start!important;text-align:left;box-shadow:none!important;margin:2px 0}
.groups-workspace button.group-filter-option:hover,.groups-workspace button.group-filter-option:focus-visible{background:var(--panel)!important;outline:0}
.groups-workspace button.group-filter-option[aria-selected=true]{background:var(--accent-soft)!important;color:var(--accent)!important;font-weight:600!important}
.groups-workspace button.group-filter-option:focus-visible{box-shadow:inset 0 0 0 1px var(--accent)!important}
.filter-option-icon{display:grid;place-items:center;width:22px;height:22px;flex-shrink:0;border-radius:6px;background:var(--panel);color:var(--muted)}
.filter-option-icon svg{width:14px;height:14px}
.filter-option-icon i{display:block;width:7px;height:7px;border-radius:50%;background:var(--muted);opacity:.75}
.filter-option-icon.is-allowed{background:var(--accent-soft);color:var(--accent)}
.filter-option-icon.is-allowed i{background:var(--accent);opacity:1}
.filter-option-check{margin-left:auto;color:var(--accent);opacity:0;display:grid;place-items:center}
.filter-option-check svg{width:16px;height:16px}
[aria-selected=true] .filter-option-check{opacity:1}
@media(max-width:760px){.group-filter{flex-basis:136px;width:136px}.groups-workspace button.group-filter-trigger{font-size:10px!important;padding:11px 9px!important;gap:5px}.group-filter-trigger .filter-icon{display:none}.group-filter-panel{width:234px}.groups-workspace button.group-filter-option{min-height:46px;font-size:12px!important}}
@media(forced-colors:active){.group-filter-panel{border-color:ButtonText}.groups-workspace button.group-filter-option[aria-selected=true]{outline:1px solid Highlight}}

/* Compact two-column group directory; retain statuses, switches and pagination. */
.groups-workspace .groups-column-head{display:none}
.groups-workspace .groups-list{
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:12px;
 box-sizing:border-box;
 width:100%;
 max-width:1080px;
 margin:0 auto;
 padding:14px 16px 18px;
 align-items:stretch;
}
.groups-workspace .groups-list .group-row{
 display:grid;
 grid-template-columns:minmax(0,1fr) 112px 44px;
 align-items:center;
 gap:12px;
 min-width:0;
 min-height:82px;
 padding:14px 16px;
 border:1px solid var(--line);
 border-radius:10px;
}
.groups-workspace .groups-list .group-row:last-child{border-bottom:1px solid var(--line)}
.groups-workspace .groups-list .group-row[hidden]{display:none}
@media(max-width:1120px){
 .groups-workspace .groups-list{grid-template-columns:minmax(0,1fr);max-width:720px}
}
@media(max-width:760px){
 .groups-workspace .groups-list{gap:10px;padding:12px}
 .groups-workspace .groups-list .group-row{
  grid-template-columns:minmax(0,1fr) 45px;
  gap:5px 12px;
  padding:16px 18px;
 }
 .groups-workspace .groups-list .group-info{grid-column:1;grid-row:1}
 .groups-workspace .groups-list .group-status{grid-column:1;grid-row:2}
 .groups-workspace .groups-list .group-row form{grid-column:2;grid-row:1/3}
}

/* Each group uses its own private cached WhatsApp thumbnail. */
.groups-workspace .group-avatar{position:relative;width:44px;height:44px;border-radius:50%;overflow:hidden;background:var(--accent-soft);color:var(--accent);border:1px solid var(--line)}
.group-avatar-initials{display:grid;place-items:center;width:100%;height:100%;font-size:12px;font-weight:650;letter-spacing:.3px;user-select:none}
.groups-workspace .group-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit;opacity:0;transition:opacity .18s}
.groups-workspace .group-avatar.has-photo img{opacity:1}
.groups-workspace .group-avatar.has-photo .group-avatar-initials{opacity:0}
@media(max-width:760px){.groups-workspace .group-avatar{width:36px;height:36px;border-radius:50%;margin-top:0}.groups-workspace .group-avatar-initials{font-size:10px}.groups-workspace .group-status{margin-left:46px}}
/* Quiet workspace: one hierarchy, compact controls and progressive disclosure. */
.refined-admin{font-size:14px}

.refined-admin .app-topbar{height:62px;padding:0 38px;background:var(--paper);border-bottom:1px solid color-mix(in srgb,var(--line) 60%,transparent)}
.refined-admin .topbar-context strong{font-size:12px;color:var(--muted);font-weight:500}
.refined-admin .topbar-catalog{margin-left:auto;border:0;padding-left:0;font-size:12px;color:var(--muted)}
.refined-admin .app-content{max-width:1400px;padding:36px 38px 56px}
.refined-admin .app-footer{display:none}
.refined-admin .page-head{margin-bottom:24px;align-items:center}
.refined-admin h1{font-size:30px;letter-spacing:-.9px;font-weight:650}
.refined-admin .page-head h1{margin-bottom:6px}
.refined-admin .page-head p{font-size:13px;line-height:1.6}
.refined-admin .page-overline{display:none}
.refined-admin .app-content>h1{margin-bottom:8px}
.refined-admin .app-content>h1+p{font-size:13px;margin-bottom:26px}
.refined-admin .ui-btn{font-size:12px;min-height:40px;border-radius:8px;box-shadow:none}
.refined-admin .app-content .ui-btn.btn-blue{background:var(--surface);color:var(--ink);border:1px solid var(--line)}
.refined-admin .app-content .ui-btn.btn-green{background:var(--accent);color:var(--btn-accent-text);border:1px solid var(--accent)}
.refined-admin .app-content :is(input,select,textarea){border-radius:8px;font-size:13px}
.refined-admin .search-field{min-width:0}
.refined-admin .search-field input{font-size:13px;min-height:44px}
.refined-admin .search-field svg{color:var(--muted);width:17px;height:17px}
.refined-admin .catalog-summary{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;padding:0 0 22px;margin:0 0 22px;border-bottom:1px solid var(--line);color:var(--muted);font-size:12px}
.catalog-summary>span{display:inline-flex;align-items:center;gap:6px}
.catalog-summary strong{color:var(--ink);font-weight:600}
.catalog-summary>a{margin-left:auto;font-size:12px;display:flex;align-items:center;gap:8px}
.catalog-summary svg{width:14px;height:14px}
.status-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);display:inline-block}
.refined-admin .products-section{padding:0;background:none;border:0;border-radius:0}
.refined-admin .product-filter{gap:12px;margin:0 0 12px;flex-wrap:nowrap}
.refined-admin .product-filter .search-field{flex:1;min-width:0}
.refined-admin .product-filter select{width:176px;flex:none;min-height:44px}
.refined-admin .view-switch{margin-left:auto;flex:none;border-radius:8px;padding:3px;background:var(--surface)}
.refined-admin .view-switch button{width:35px;height:35px}
.refined-admin .result-count{display:block;font-size:11px;margin:0 0 18px;color:var(--muted)}
.refined-admin .product-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px}
.refined-admin .product-card{border-radius:12px;overflow:visible;box-shadow:none;position:relative;transition:border-color .15s}
.refined-admin .product-card:hover{transform:none}
.refined-admin .product-card:has(details[open]){z-index:5}
.refined-admin .product-photo{height:205px;padding:24px;border-radius:12px 12px 0 0;overflow:hidden}
.refined-admin .product-detail{padding:18px 18px 12px;gap:10px}
.refined-admin .product-detail>strong{font-size:13px;line-height:1.5;font-weight:550;min-height:39px}
.refined-admin .product-price{font-size:19px;font-weight:650}
.refined-admin .product-badge{font-size:9px;padding:4px 7px}
.refined-admin .product-actions{display:flex;align-items:center;justify-content:space-between;padding:0 14px 14px;gap:8px;grid-auto-rows:unset}
.refined-admin .app-content .product-actions>a{min-height:36px;width:auto;padding:8px 10px;border:0;background:none;color:var(--muted);font-size:12px;justify-content:flex-start}
.refined-admin .product-actions>details{width:auto;min-height:0}
.refined-admin .action-menu{position:relative}
.refined-admin .action-menu>summary{list-style:none;width:36px;height:36px;display:grid;place-items:center;border:1px solid transparent;border-radius:7px;color:var(--muted);font-size:14px;letter-spacing:2px;cursor:pointer}
.refined-admin .action-menu>summary::-webkit-details-marker{display:none}
.refined-admin .action-menu[open]>summary,.refined-admin .action-menu>summary:hover{background:var(--panel);border-color:var(--line);color:var(--ink)}
.refined-admin .action-menu-panel{position:absolute;bottom:calc(100% + 7px);right:0;width:205px;max-width:calc(100vw - 32px);border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:6px;box-shadow:0 10px 35px #00000030;z-index:12;display:grid;gap:2px}
.refined-admin .app-content .action-menu-panel :is(a,button){display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:42px;height:auto;padding:10px 12px;border:0;background:transparent;border-radius:6px;color:var(--ink);font-size:12px;box-shadow:none}
.refined-admin .app-content .action-menu-panel :is(a,button):hover{background:var(--panel)}
.refined-admin .action-menu-panel form{border:0;padding:0;background:none;margin:0;box-shadow:none;min-width:0}
.refined-admin .app-content .action-menu-panel button.delete{color:#de7181}
.refined-admin .action-menu-panel svg{display:block;width:16px;height:16px}
.refined-admin .product-grid.is-list{grid-template-columns:1fr}
.refined-admin .is-list .product-card{display:grid;grid-template-columns:80px minmax(0,1fr) 110px;align-items:center;padding:12px;gap:16px}
.refined-admin .is-list .product-photo{height:72px;grid-row:auto;padding:8px;border-radius:8px}
.refined-admin .is-list .product-detail{padding:0;grid-column:auto;grid-row:auto}
.refined-admin .is-list .product-detail>strong{min-height:0}
.refined-admin .is-list .product-actions{padding:0;grid-column:auto;margin:0}
.refined-admin .is-list .product-badge{display:none}
/* Flat summaries and two useful dashboard sections. */
.refined-admin .metrics{gap:0;background:transparent;border:0;border-bottom:1px solid var(--line);padding-bottom:26px;margin-bottom:28px;border-radius:0}
.refined-admin .metric{padding:0 24px;border:0;border-right:1px solid var(--line);border-radius:0;background:none;box-shadow:none}
.refined-admin .metric:first-child{padding-left:0}
.refined-admin .metric:last-child{border-right:0}
.refined-admin .metric-icon{display:none}
.refined-admin .metric-top{font-size:12px;margin-bottom:12px}
.refined-admin .metric>strong{font-size:30px;margin-bottom:6px;font-weight:600}
.refined-admin .metric>small{font-size:11px}
.refined-admin .schedule-overview{display:flex;align-items:center;gap:28px;padding:24px 0 28px;margin:0 0 28px;background:none;border:0;border-radius:0;border-bottom:1px solid var(--line)}
.schedule-overview>div:first-child{flex:1;min-width:0}
.schedule-overview h2{margin:10px 0 5px}
.schedule-overview p{margin:0;font-size:12px;max-width:600px}
.schedule-next{display:flex;flex-direction:column;gap:5px;min-width:120px}
.schedule-next strong{font-size:26px;letter-spacing:-.7px;font-weight:600}
.refined-admin .overview-layout{grid-template-columns:1fr 1fr;gap:30px}
.refined-admin .dashboard-card{border:0;border-radius:0;background:none;padding:0;box-shadow:none}
.refined-admin .section-heading h2{font-size:16px;margin-bottom:5px}
.refined-admin .section-heading>a{display:flex;align-items:center;gap:7px;font-size:11px;white-space:nowrap}
.section-heading>a svg{width:14px;height:14px}
.refined-admin .activity-row{padding:15px 0}
.refined-admin .activity-row strong{font-size:12px;max-width:none;white-space:normal;line-height:1.5}
.refined-admin .activity-row small{font-size:11px}
.refined-admin .click-chart{height:235px}
/* Group account tabs sit directly above the searchable directory. */
.refined-admin .groups-workspace .groups-accounts{display:flex;align-items:center;gap:20px;padding:0;border:0;background:none;border-radius:0;margin:0 0 24px;border-bottom:1px solid var(--line)}
.refined-admin .account-tabs{display:flex;flex:1;gap:22px;min-width:0}
.refined-admin .account-tab{display:flex;align-items:center;gap:8px;flex:0 1 auto;min-width:0;padding:12px 0 15px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;margin-bottom:-1px;box-shadow:none}
.refined-admin .account-tab.is-selected{border-bottom-color:var(--accent);background:none}
.refined-admin .account-tab .account-icon,.refined-admin .account-selected{display:none}
.refined-admin .account-copy{gap:3px}
.refined-admin .account-copy strong{font-size:13px}
.refined-admin .account-copy small{font-size:10px}
.refined-admin .account-primary{font-size:8px;position:static;margin-left:2px;padding:3px 5px}
.refined-admin .manage-connections{display:flex;align-items:center;gap:7px;font-size:11px;white-space:nowrap;color:var(--muted)}
.manage-connections svg{width:14px;height:14px}
.refined-admin .groups-panel{border:0;border-radius:0;background:none;overflow:visible}
.refined-admin .groups-totals{padding:0;border:0;background:none;gap:20px;margin-bottom:18px;font-size:12px;flex-wrap:wrap}
.refined-admin .groups-toolbar{padding:0 0 20px;background:none;border:0;gap:12px}
.refined-admin .groups-workspace .groups-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;margin:0;padding:0;max-width:none;border-top:1px solid var(--line)}
.refined-admin .groups-workspace .groups-list .group-row{min-height:80px;grid-template-columns:minmax(0,1fr) auto 42px;gap:12px;padding:16px 0;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none}
.refined-admin .groups-workspace .group-info{gap:12px;align-items:center}
.refined-admin .groups-workspace .group-name{font-size:12px;font-weight:550;line-height:1.5;white-space:normal;display:block}
.refined-admin .groups-workspace .group-status{margin:0;font-size:10px}
.refined-admin .groups-workspace [data-authorization-label]{padding:0;border:0;background:none;border-radius:0;white-space:nowrap}
.refined-admin .groups-workspace [data-authorization-label]:before{display:none}
.refined-admin .groups-workspace .group-row.is-authorized{border-left:0}
.refined-admin .groups-pagination{padding:16px 0;border:0;background:none}
.refined-admin .groups-workspace .group-avatar{flex:0 0 40px;width:40px;height:40px}
.refined-admin .groups-workspace .group-switch{min-height:24px!important;width:40px!important;height:24px!important;padding:2px!important}
/* Forms use section separators, without a second layer of boxes. */
.refined-admin .product-form{background:none;padding:0;border:0;box-shadow:none}
.refined-admin .pf-layout{grid-template-columns:minmax(0,1fr) 290px;gap:42px}
.refined-admin .pf-card{border:0;border-radius:0;background:none;padding:0 0 26px;margin-bottom:26px;border-bottom:1px solid var(--line);box-shadow:none}
.refined-admin .pf-card h2{font-size:16px;margin-bottom:20px}
.refined-admin .pf-side{border-left:1px solid var(--line);padding-left:28px}
.refined-admin .pf-side .pf-card{margin-bottom:22px;padding-bottom:22px}
.refined-admin .pf-preview{height:200px;border-radius:10px;background:var(--surface)}
.refined-admin .connection-select{margin:0;border:0;padding:0;background:none}
.refined-admin .connection-select p{font-size:12px;margin:0 0 14px}
.refined-admin .connection-choices{display:flex;flex-wrap:wrap;gap:10px}
.refined-admin .connection-choice{flex:1 1 150px;padding:12px;min-height:64px;border-radius:8px;background:none}
.refined-admin .connection-choice span small{display:none}
.refined-admin .connection-choice span strong{font-size:12px}
.refined-admin .disclosure-option{font-size:12px!important;line-height:1.5;margin-top:18px}
.refined-admin .pf-savebar{padding:16px 0;background:var(--paper);border-radius:0;border-top:1px solid var(--line);box-shadow:none;gap:12px}
.refined-admin .pf-savebar .pf-cancel{background:none;border:0;color:var(--muted)}
.refined-admin .brand-config-form{max-width:960px;padding:0;background:none;border:0;box-shadow:none}
.refined-admin .brand-field{padding:0 0 24px;margin-bottom:24px;border:0;border-bottom:1px solid var(--line);background:none;border-radius:0}
.refined-admin .brand-field input{max-width:650px}
.refined-admin .theme-settings{padding:0 0 28px;margin-bottom:28px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
.refined-admin .theme-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.refined-admin .theme-option-body{padding:12px;min-height:0;border-radius:10px}
.refined-admin .theme-sample{height:72px;margin-bottom:12px}
.refined-admin .theme-option-body>small,.refined-admin .theme-hint{display:none}
.refined-admin .brand-upload-grid{gap:30px}
.refined-admin .brand-upload-box{padding:0;background:none;border:0;border-radius:0}
.refined-admin .brand-upload-box>p{font-size:12px}
.refined-admin .brand-asset-preview{max-width:240px;height:95px}
.refined-admin .brand-settings-footer{padding-top:22px;margin-top:24px;border-top:1px solid var(--line)}
.settings-utilities{display:flex;flex-wrap:wrap;gap:16px 24px;margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}
.settings-utilities a{font-size:12px;display:flex;align-items:center;gap:8px}
.settings-utilities svg{width:14px;height:14px}
/* Automation presents status, then configuration. Advanced controls are explicit. */
.refined-admin .program-control-panel{padding:24px;margin-bottom:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:none}
.refined-admin .program-control-header{margin:0;display:flex;flex-direction:row;gap:24px;align-items:center}
.refined-admin .program-control-header h2{margin:10px 0 5px;font-size:18px}
.refined-admin .program-control-header p{margin:0;font-size:12px}
.refined-admin .program-inline-action{display:flex;align-items:center;justify-content:flex-end;gap:14px;border:0;padding:0;margin:0;background:none;box-shadow:none}
.program-inline-action small{font-size:11px;max-width:240px}
.refined-admin .program-diagnostics{border:0;border-radius:0;background:none;padding:0 0 24px;margin:0 0 26px;border-bottom:1px solid var(--line);box-shadow:none}
.refined-admin .program-diagnostics h2{font-size:16px;margin-bottom:20px}
.refined-admin .program-diagnostics-stats{gap:20px;grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:22px}
.refined-admin .program-diagnostics-stats>span{background:none;padding:0;border-radius:0;font-size:11px}
.refined-admin .program-diagnostics-stats strong{font-size:26px;font-weight:600}
.refined-admin [data-status-error]:empty{display:none}
.refined-admin .setting-card{padding:0;margin:0 0 24px;border:0;border-radius:0;background:none;box-shadow:none}
.refined-admin .setting-card h2{font-size:16px;margin-bottom:18px}
.refined-admin .setting-card form{display:flex;align-items:flex-end;gap:20px}
.refined-admin .setting-card .fields-inline{flex:1;gap:16px}
.refined-admin .setting-card label{margin-bottom:0;font-size:12px}
.refined-admin .setting-card .settings-actions{margin:0 0 0;padding:0;flex-shrink:0}
.refined-admin .utility-disclosure{border:0;border-top:1px solid var(--line);background:none;padding:0;margin-top:24px;border-radius:0;color:var(--ink)}
.utility-disclosure>summary{padding:17px 0;font-size:12px;color:var(--muted);cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;min-height:44px}
.utility-disclosure>summary::-webkit-details-marker{display:none}
.utility-disclosure>summary:after{content:'+';margin-left:auto;font-size:18px;color:var(--muted)}
.utility-disclosure[open]>summary:after{content:'−'}
.disclosure-content{padding:4px 0 22px}
.disclosure-content p{font-size:12px}
.refined-admin .disclosure-content article{border:0;background:none;padding:0;border-radius:0;box-shadow:none}
.refined-admin .disclosure-content form:not(.program-inline-action):not(.restart-action){padding:0;background:none;border:0;box-shadow:none}
.refined-admin .restart-action{display:flex;align-items:center;gap:24px;padding:18px 0;margin:18px 0 0;border:0;border-top:1px solid var(--line);background:none;border-radius:0;box-shadow:none}
.restart-action>div{flex:1}
.restart-action strong{font-size:13px}
.restart-action p{margin:6px 0 0;max-width:650px}
.refined-admin .history-grid{grid-template-columns:1fr;gap:0;border-top:1px solid var(--line)}
.refined-admin .history-card{display:grid;grid-template-columns:150px minmax(0,1.4fr) minmax(0,1fr);gap:16px;align-items:center;padding:17px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none}
.refined-admin .history-head{margin:0;justify-content:flex-start;gap:12px}
.refined-admin .history-product{font-size:12px}
.refined-admin .history-group{margin:0;font-size:11px}
.refined-admin .history-detail{grid-column:2/-1;margin-top:0;white-space:normal}
.refined-admin .history-day{margin-top:28px}
.refined-admin .connection-grid{grid-template-columns:repeat(auto-fit,minmax(265px,1fr));gap:22px}
.refined-admin .connection-card{padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:none}
.refined-admin .connection-card.is-primary{border-color:var(--line)}
.refined-admin .connection-card-header{display:flex;gap:10px;align-items:center;margin-bottom:14px}
.connection-avatar{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;color:var(--accent)}
.refined-admin .connection-card-header h2{font-size:16px;flex:1}
.refined-admin .connection-impact{padding:0;background:none;font-size:12px!important;margin-bottom:18px}
.connection-groups-link{display:inline-flex;align-items:center;gap:10px;font-size:12px}
.connection-groups-link svg{width:15px;height:15px}
.refined-admin .connection-card .utility-disclosure{margin-top:20px}
.refined-admin .clicks-layout{gap:28px}
.refined-admin .clicks-layout>article{padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.refined-admin .clicks-layout table{border:0;border-top:1px solid var(--line);border-radius:0;background:none}
.refined-admin .clicks-layout th{background:none}
.refined-admin .clicks-layout td,.refined-admin .clicks-layout th{padding:14px 8px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(max-width:1120px){
 .refined-admin .app-content{padding:30px 28px 48px}.refined-admin .app-topbar{padding-inline:28px}
 .refined-admin .groups-workspace .groups-list{grid-template-columns:1fr}
 .refined-admin .pf-layout{grid-template-columns:minmax(0,1fr) 250px;gap:24px}
 .refined-admin .pf-side{padding-left:20px;display:block}
 .refined-admin .account-tabs{gap:15px}.refined-admin .account-primary{display:none}
 .refined-admin .setting-card form{flex-wrap:wrap}.refined-admin .setting-card .fields-inline{flex-basis:100%}
 .refined-admin .overview-layout{gap:24px}.refined-admin .schedule-overview{gap:20px;flex-wrap:wrap}
}
@media(max-width:760px){

 .refined-admin .app-topbar{height:58px;padding-inline:20px}
 .refined-admin .app-content{padding:26px 20px 40px}
 .refined-admin .page-head{gap:16px;align-items:flex-start;margin-bottom:22px}
 .refined-admin .page-head h1{font-size:27px}.refined-admin .page-head p{font-size:12px}
 .refined-admin .page-head .actions-bar{justify-content:flex-start}
 .refined-admin .catalog-summary{gap:10px 16px;padding-bottom:18px;margin-bottom:18px;font-size:11px}
 .catalog-summary>a{margin-left:0;font-size:11px;flex-basis:100%}
 .refined-admin .product-filter{flex-wrap:wrap;gap:10px}
 .refined-admin .product-filter .search-field{flex-basis:100%}
 .refined-admin .product-filter select{flex:1;width:auto;font-size:12px;min-width:0}
 .refined-admin .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .refined-admin .product-photo{height:155px;padding:18px;border-radius:10px 10px 0 0}
 .refined-admin .product-detail{padding:13px 12px 8px;gap:9px}
 .refined-admin .product-detail>strong{font-size:12px;min-height:54px;-webkit-line-clamp:3;line-clamp:3}
 .refined-admin .product-price{font-size:17px}
 .refined-admin .product-actions{padding:0 8px 10px}
 .refined-admin .app-content .product-actions>a{font-size:11px;padding:8px 5px;min-height:40px}
 .refined-admin .action-menu>summary{width:40px;height:40px}
 .refined-admin .is-list .product-card{grid-template-columns:56px minmax(0,1fr) 40px;gap:12px;padding:10px}
 .refined-admin .is-list .product-photo{height:60px}
 .refined-admin .is-list .product-detail>strong{font-size:12px;min-height:0}
 .refined-admin .is-list .product-actions>a{position:absolute;inset:0;opacity:0;width:auto;z-index:1}
 .refined-admin .is-list .product-actions details{z-index:2}
 .refined-admin .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 0;padding-bottom:24px}
 .refined-admin .metric{padding:0 16px;border:0}.refined-admin .metric:nth-child(odd){padding-left:0;border-right:1px solid var(--line)}
 .refined-admin .metric-top{font-size:11px;margin-bottom:8px}.refined-admin .metric>strong{font-size:27px}.refined-admin .metric>small{font-size:10px}
 .refined-admin .schedule-overview{padding-top:0;gap:20px;align-items:flex-start}
 .schedule-overview>div:first-child{flex-basis:100%}.schedule-next{flex:1}
 .refined-admin .schedule-overview>.ui-btn{align-self:center}
 .refined-admin .overview-layout{grid-template-columns:1fr;gap:30px}
 .refined-admin .groups-workspace .groups-accounts{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;padding-bottom:18px;margin-bottom:20px}
 .refined-admin .groups-accounts .account-tabs{display:none}
 .refined-admin .mobile-account-select{display:flex;flex:1;min-width:150px;margin:0;gap:7px;font-size:11px}
 .refined-admin .mobile-account-select select{width:100%;min-height:44px;font-size:12px}
 .refined-admin .manage-connections{font-size:10px;padding-bottom:13px}.manage-connections svg{display:none}
 .refined-admin .groups-totals{gap:10px 16px;font-size:11px;line-height:1.6}
 .refined-admin .groups-toolbar{flex-wrap:wrap;gap:10px;padding-bottom:18px}
 .refined-admin .groups-toolbar .search-field{flex-basis:100%;min-width:0}
 .refined-admin .groups-toolbar .group-filter{flex-basis:100%;width:100%}
 .refined-admin .groups-workspace button.group-filter-trigger{font-size:12px!important;min-height:44px}
 .refined-admin .groups-workspace .groups-list .group-row{grid-template-columns:minmax(0,1fr) 42px;gap:4px 14px;min-height:84px;padding:16px 0}
 .refined-admin .groups-workspace .group-info{grid-column:1;grid-row:1;gap:12px}
 .refined-admin .groups-workspace .group-name{font-size:12px}
 .refined-admin .groups-workspace .group-status{grid-column:1;grid-row:2;margin-left:52px;font-size:10px}
 .refined-admin .groups-workspace .group-row form{grid-column:2;grid-row:1/3;max-width:none}
 .refined-admin .pf-layout{display:block}.refined-admin .pf-side{border:0;padding:0;display:block}
 .refined-admin .pf-preview{max-width:330px}.refined-admin .pf-savebar{position:sticky;bottom:0;z-index:8}
 .refined-admin .connection-choices{display:grid;grid-template-columns:1fr}
 .refined-admin .theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .refined-admin .brand-upload-grid{grid-template-columns:1fr;gap:28px}
 .refined-admin .program-control-panel{padding:20px}
 .refined-admin .program-control-header{flex-direction:column;align-items:flex-start;gap:18px}
 .refined-admin .program-inline-action{flex-wrap:wrap;justify-content:flex-start;gap:12px}
 .refined-admin .program-inline-action small{max-width:none}
 .refined-admin .program-diagnostics-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 14px}
 .refined-admin .program-diagnostics-stats strong{font-size:24px}
 .refined-admin .setting-card .fields-inline{grid-template-columns:1fr 1fr;gap:15px}
 .refined-admin .setting-card .fields-inline label:first-child{grid-column:1/-1}
 .refined-admin .restart-action{align-items:flex-start;flex-direction:column;gap:15px}
 .refined-admin .history-card{grid-template-columns:minmax(0,1fr);gap:6px;padding:18px 0}
 .refined-admin .history-head{justify-content:space-between;margin-bottom:4px}
 .refined-admin .history-detail{grid-column:1}
 .refined-admin .history-product,.refined-admin .history-group{white-space:normal;overflow:visible}
 .refined-admin .connection-grid{grid-template-columns:1fr}.refined-admin .connection-card{padding:22px}
 .refined-admin .clicks-layout{grid-template-columns:1fr;gap:28px}
 .refined-admin .clicks-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){.refined-admin *{transition:none!important}}


.refined-admin .groups-workspace .group-row .group-status [data-authorization-label]{background:none;padding:0;border:0}
@media(max-width:760px){
 .refined-admin .product-grid:not(.is-list) .product-actions{position:relative}
 .refined-admin .product-grid:not(.is-list) .action-menu{position:static}
 .refined-admin .product-grid:not(.is-list) .product-card:nth-child(odd) .action-menu-panel{left:0;right:auto}
 .refined-admin .mobile-account-select{flex-direction:column;align-items:stretch}
}
.refined-admin .groups-totals{display:flex}
.refined-admin .groups-totals>span{display:inline-flex;align-items:center;gap:5px;font-size:12px}
.refined-admin .groups-totals strong{display:inline;font-size:inherit;margin:0}
/* The public storefront follows the same quieter hierarchy. */
.public-body .catalog-hero{background:none;border-radius:0;padding:28px 0 32px;margin-bottom:30px;border-bottom:1px solid var(--line)}
.public-body .catalog-hero h1{font-size:38px;letter-spacing:-1.2px;max-width:700px;margin-bottom:12px}
.public-body .catalog-hero p{margin:0 0 18px;max-width:none;font-size:14px}
.public-body .public-content>.section-heading h2{font-size:22px}
.public-body .offer-card{box-shadow:none;border-radius:12px}
.public-body .offer-card:hover{transform:none}
.public-body .offer-detail{padding:20px}
.public-body .offer-card h2{font-size:15px;line-height:1.5}
.public-body .offer-card p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;font-size:12px;line-height:1.6}
.public-body .offer-bottom{border:0;padding-top:8px}
@media(max-width:760px){.public-body .catalog-hero{padding:15px 0 26px;margin-bottom:26px}.public-body .catalog-hero h1{font-size:30px}.public-body .catalog-hero p{font-size:13px}.public-body .offer-detail{padding:15px}.public-body .offer-card h2{font-size:13px}}

/* Mobile product catalog: preserve complete cards and all four action buttons. */
@media (max-width:760px){
 .refined-admin .product-grid:not(.is-list){grid-template-columns:minmax(0,1fr);gap:14px}
 .refined-admin .product-grid:not(.is-list) .product-card{display:block;min-width:0}
 .refined-admin .product-grid:not(.is-list) .product-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;gap:8px;padding:0 12px 14px;position:relative}
 .refined-admin .product-grid:not(.is-list) .product-actions>a,
 .refined-admin .product-grid:not(.is-list) .product-actions button{position:static;opacity:1;visibility:visible;display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;pointer-events:auto}
 .refined-admin .product-grid:not(.is-list) .product-actions form{margin:0;min-width:0}
 .refined-admin .product-grid:not(.is-list) .product-actions .action-menu{position:static;display:contents}
}

/* Mobile: expose all product actions beneath each full-width card. */
@media(max-width:760px){
 .refined-admin .product-grid,.refined-admin .product-grid.is-list{grid-template-columns:minmax(0,1fr)}
 .refined-admin .product-grid .product-card,.refined-admin .product-grid.is-list .product-card{display:block;padding:0}
 .refined-admin .product-grid .product-photo,.refined-admin .product-grid.is-list .product-photo{height:190px;grid-row:auto;border-radius:10px 10px 0 0}
 .refined-admin .product-grid .product-detail,.refined-admin .product-grid.is-list .product-detail{padding:15px 14px;grid-column:auto;grid-row:auto}
 .refined-admin .product-grid .product-actions,.refined-admin .product-grid.is-list .product-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 12px 14px;max-width:none;grid-column:auto;position:static}
 .refined-admin .product-grid .product-actions>.ui-btn,.refined-admin .product-grid.is-list .product-actions>.ui-btn{position:static;inset:auto;opacity:1;z-index:auto;width:100%;min-height:44px}
 .refined-admin .product-grid .product-actions>.action-menu{display:contents}
 .refined-admin .product-grid .product-actions>.action-menu>summary{display:none}
 .refined-admin .product-grid .product-actions>.action-menu>.action-menu-panel{display:contents;position:static;box-shadow:none;border:0;padding:0;background:none}
 .refined-admin .product-grid .product-actions>.action-menu>.action-menu-panel>form{margin:0;min-width:0}
 .refined-admin .product-grid .product-actions>.action-menu>.action-menu-panel>a,
 .refined-admin .product-grid .product-actions>.action-menu>.action-menu-panel>form>button{display:flex!important;align-items:center;justify-content:center;position:static!important;opacity:1!important;visibility:visible!important;width:100%;height:100%;min-height:44px;padding:9px 7px;pointer-events:auto}
}

/* Explicit mobile actions: avoid relying on closed details contents. */
.product-mobile-actions{display:none}
@media(max-width:760px){
 .refined-admin .product-grid .product-actions>.action-menu{display:none!important}
 .refined-admin .product-grid .product-actions>.product-mobile-actions{display:contents!important}
 .refined-admin .product-grid .product-actions>.product-mobile-actions>form{margin:0;min-width:0}
 .refined-admin .product-grid .product-actions>.product-mobile-actions>a,
 .refined-admin .product-grid .product-actions>.product-mobile-actions>form>button{display:flex!important;align-items:center;justify-content:center;gap:6px;width:100%;min-height:44px;height:100%;padding:9px 8px;position:static!important;opacity:1!important;visibility:visible!important;pointer-events:auto;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--ink);font-size:12px}
 .refined-admin .product-grid .product-actions>.product-mobile-actions>form>button.delete{color:#de7181}
}

/* Mobile action layout: uniform two-by-two buttons, no stretched edit card. */
@media(max-width:760px){
 .refined-admin .product-grid .product-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,48px)!important;grid-auto-rows:48px!important;align-items:stretch!important;gap:8px!important}
 .refined-admin .product-grid .product-actions>.ui-btn{grid-column:1!important;grid-row:1!important;min-height:0!important;height:48px!important;align-self:stretch!important}
 .refined-admin .product-grid .product-actions>.product-mobile-actions{display:contents!important}
 .refined-admin .product-grid .product-actions>.product-mobile-actions>a{grid-column:2!important;grid-row:1!important}
 .refined-admin .product-grid .product-actions>.product-mobile-actions>form:nth-of-type(1){grid-column:1!important;grid-row:2!important}
 .refined-admin .product-grid .product-actions>.product-mobile-actions>form:nth-of-type(2){grid-column:2!important;grid-row:2!important}
 .refined-admin .product-grid .product-actions>.product-mobile-actions>a,
 .refined-admin .product-grid .product-actions>.product-mobile-actions>form>button{height:48px!important;min-height:48px!important;box-sizing:border-box!important;font-size:12px!important;line-height:1.2!important;text-align:center!important}
 .refined-admin .product-grid .product-detail>strong{min-height:0!important}
}

/* Próximas ofertas: cartões em duas colunas, com destino abaixo do produto. */
.upcoming-offers-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 22px}
.upcoming-offer-card{min-width:0;padding:17px 20px;background:var(--surface);border:1px solid var(--line);border-radius:10px;display:flex;flex-direction:column;gap:12px}
.upcoming-offer-product{display:flex;align-items:flex-start;gap:12px;min-width:0;line-height:1.55}
.upcoming-offer-product time{flex-shrink:0;font-size:12px;font-weight:700;color:var(--accent)}
.upcoming-offer-product strong{min-width:0;overflow-wrap:anywhere;font-size:13px}
.upcoming-offer-meta{display:flex;flex-direction:column;gap:6px;font-size:11px;line-height:1.5}
.upcoming-offer-meta span{overflow-wrap:anywhere}
.upcoming-offer-meta b{font-weight:600}
@media(max-width:650px){.upcoming-offers-grid{grid-template-columns:1fr}.upcoming-offer-card{padding:15px}}

/* Desktop product management: four visible actions under every product.
   Mobile selectors at <=760px remain unchanged. */
@media(min-width:761px){
 .refined-admin .product-grid .product-card .product-actions{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(42px,auto);
  gap:8px;padding:0 12px 14px;align-items:stretch;width:100%;
 }
 .refined-admin .product-grid .product-card .product-actions>.ui-btn{
  display:flex;align-items:center;justify-content:center;position:static;min-width:0;
  min-height:42px;height:auto;width:100%;padding:8px 5px;
  border:1px solid var(--line);border-radius:9px;background:transparent;
  color:var(--ink);font-size:11px;text-align:center;
 }
 .refined-admin .product-grid .product-card .product-actions>.product-mobile-actions{display:contents}
 .refined-admin .product-grid .product-card .product-actions>.product-mobile-actions>a,
 .refined-admin .product-grid .product-card .product-actions>.product-mobile-actions>form{min-width:0;width:100%;margin:0}
 .refined-admin .product-grid .product-card .product-actions>.product-mobile-actions>a,
 .refined-admin .product-grid .product-card .product-actions>.product-mobile-actions>form>button{
  display:flex;align-items:center;justify-content:center;gap:5px;
  position:static;opacity:1;visibility:visible;pointer-events:auto;
  box-sizing:border-box;width:100%;height:100%;min-height:42px;
  padding:8px 5px;border:1px solid var(--line);border-radius:9px;
  background:transparent;color:var(--ink);font-size:11px;line-height:1.3;text-align:center;
 }
 .refined-admin .product-grid .product-card .product-actions>.product-mobile-actions>form>button.delete{color:#de7181}
 .refined-admin .product-grid .product-card .product-actions>.action-menu{display:none}
 .refined-admin .product-grid.is-list .product-card .product-actions{grid-column:1/-1;max-width:none}
}

/* Restore the original card-based multi-column dispatch history without
   touching automation, records or the responsive product layouts. */
@media(min-width:1201px){
 .refined-admin .history-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border-top:0}
}
@media(min-width:761px) and (max-width:1200px){
 .refined-admin .history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border-top:0}
}
@media(min-width:761px){
 .refined-admin .history-card{display:block;min-width:0;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
 .refined-admin .history-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
 .refined-admin .history-detail{display:block;margin-top:8px;white-space:normal}
}

/* Programação: opções sempre visíveis, organizadas em cartões e atalhos. */
.refined-admin .program-options-visible{padding:24px;margin-top:22px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.program-options-visible .program-options-heading{margin-bottom:18px}
.program-options-visible .program-options-heading h3{font-size:16px;margin:0 0 5px;color:var(--ink)}
.program-options-visible .program-options-heading p{font-size:12px;margin:0;color:var(--muted)}
.program-options-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}
.program-options-grid .program-option-card{display:flex;flex-direction:column;justify-content:space-between;gap:18px;min-width:0;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.program-option-card-heading{display:flex;flex-direction:column;gap:6px}
.program-option-card-heading strong{font-size:13px}
.program-option-card-heading span{font-size:12px;color:var(--muted)}
.refined-admin .program-options-grid .program-inline-action{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0}
.refined-admin .program-options-grid .program-inline-action small{max-width:none;line-height:1.6}
.refined-admin .program-options-grid .program-inline-action .ui-btn{align-self:flex-start}
.refined-admin .program-options-grid .restart-action{display:flex;flex-direction:column;align-items:flex-start;gap:16px;margin:0;padding:0;border:0;background:transparent}
.program-options-grid .restart-action p{max-width:none;margin:7px 0 0;line-height:1.6}
.program-options-shortcuts{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.program-options-shortcuts>strong{display:block;font-size:12px;margin-bottom:12px}
.program-options-shortcuts .actions-bar{display:flex;flex-wrap:wrap;gap:10px;margin:0}
@media(max-width:850px){.program-options-grid{grid-template-columns:1fr}.refined-admin .program-options-visible{padding:18px}.program-options-grid .program-option-card{padding:17px}}

/* Match quick-access cards to the program control and restart cards. */
.program-options-shortcuts .program-shortcut-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.program-options-shortcuts .program-shortcut-grid>.program-option-card{min-height:162px}
.program-options-shortcuts .program-shortcut-grid .ui-btn{align-self:flex-start;margin-top:auto}
@media(max-width:1100px){.program-options-shortcuts .program-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.program-options-shortcuts .program-shortcut-grid{grid-template-columns:1fr}}

/* WhatsApp groups: unified card language matching the Programação controls. */
.refined-admin .groups-workspace .groups-accounts{display:block;padding:20px;margin:0 0 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.refined-admin .groups-workspace .account-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:12px;width:100%}
.refined-admin .groups-workspace .account-tab{display:flex;align-items:center;gap:10px;min-width:0;min-height:76px;margin:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:none}
.refined-admin .groups-workspace .account-tab.is-selected{border-color:var(--accent);background:var(--accent-soft)}
.refined-admin .groups-workspace .account-tab .account-copy{min-width:0}
.refined-admin .groups-workspace .account-tab .account-copy strong{overflow-wrap:anywhere}
.refined-admin .groups-workspace .manage-connections{display:inline-flex;margin-top:14px;padding:9px 12px;border:1px solid var(--line);border-radius:9px}
.refined-admin .groups-workspace .groups-panel{padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:visible}
.refined-admin .groups-workspace .groups-totals{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 18px;padding:0}
.refined-admin .groups-workspace .groups-totals>span{display:inline-flex;align-items:center;gap:6px;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.refined-admin .groups-workspace .groups-toolbar{margin-bottom:16px;padding:0}
.refined-admin .groups-workspace .groups-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0;margin:0;border:0;max-width:none}
.refined-admin .groups-workspace .groups-list .group-row{display:grid;grid-template-columns:minmax(0,1fr) auto 42px;gap:12px;align-items:center;min-width:0;min-height:95px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:none}
.refined-admin .groups-workspace .groups-list .group-row:last-child{border:1px solid var(--line)}
@media(max-width:1100px){.refined-admin .groups-workspace .groups-list{grid-template-columns:1fr}}
@media(max-width:760px){
 .refined-admin .groups-workspace .groups-accounts{padding:15px}
 .refined-admin .groups-workspace .account-tabs{display:none}
 .refined-admin .groups-workspace .groups-panel{padding:14px}
 .refined-admin .groups-workspace .groups-list{grid-template-columns:1fr;gap:10px}
 .refined-admin .groups-workspace .groups-list .group-row{grid-template-columns:minmax(0,1fr) 42px;gap:5px 12px;padding:15px}
 .refined-admin .groups-workspace .groups-list .group-info{grid-column:1;grid-row:1}
 .refined-admin .groups-workspace .groups-list .group-status{grid-column:1;grid-row:2}
 .refined-admin .groups-workspace .groups-list .group-row form[data-group-toggle]{grid-column:2;grid-row:1/3}
}

/* WhatsApp group management actions share the same horizontal row. */
.refined-admin .groups-workspace .groups-account-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:14px}
.refined-admin .groups-workspace .groups-account-actions .manage-connections{margin-top:0;min-height:42px;display:inline-flex;align-items:center;justify-content:center}
.refined-admin .groups-workspace .groups-account-actions .group-sync-form{margin:0;padding:0}
.refined-admin .groups-workspace .groups-account-actions .group-sync-form .ui-btn{min-height:42px}

/* Permanent visibility for connection settings and dispatch tools. */
.refined-admin .always-visible-controls{margin-top:18px;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.refined-admin .always-visible-controls>h3{margin:0 0 14px;font-size:14px;color:var(--ink)}
.refined-admin .always-visible-controls>.disclosure-content{padding:0}
.refined-admin .always-visible-controls .actions-bar{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:760px){.refined-admin .always-visible-controls{padding:14px}.refined-admin .always-visible-controls .actions-bar{align-items:stretch}}

/* Manual retry is shown only on failed publication cards. */
.refined-admin .history-retry-form{margin:12px 0 0;padding:0;border:0;background:transparent}
.refined-admin .history-retry-form .ui-btn{width:100%;min-height:38px;justify-content:center}

/* Distinguish scheduled time from the actual retry activity. */
.refined-admin .history-attempt-info{display:flex;flex-wrap:wrap;gap:5px 12px;margin:9px 0;font-size:11px}
.refined-admin .history-attempt-info small{font-size:11px;color:var(--muted)}
.refined-admin .history-attempt-info small:last-child{font-weight:600;color:var(--ink)}

.posting-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;align-items:start;margin-block:20px}
.posting-layout .pf-card{min-width:0;margin:0}
.posting-layout .pf-card h2{margin-top:0}
.posting-editor{display:grid;gap:12px}
.posting-editor p,.posting-editor h2,.posting-editor label{margin:0}
.posting-editor textarea{width:100%;resize:vertical;font-family:ui-monospace,Consolas,monospace}
.posting-editor .actions-bar{margin:0}
.posting-preview{padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--accent-soft);color:var(--ink)}
.posting-preview small{display:block;margin-bottom:10px;font-weight:600}
.posting-preview img{display:block;width:100%;max-height:240px;object-fit:contain;border-radius:9px;background:#fff}
.posting-preview pre{margin:12px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}
.posting-preview-card>p,.posting-layout .pf-card>p{color:var(--muted)}
.posting-variables{display:grid;gap:10px;margin-block:12px}
.posting-variables dd{margin:4px 0 0}
.posting-variables code,.posting-layout details code{overflow-wrap:anywhere}
.posting-revisions{display:grid;gap:10px;padding-inline-start:20px;list-style:none}
.posting-revisions li,.posting-revisions small{display:block}
.posting-revisions small{color:var(--muted)}
.posting-error{padding:12px;border:1px solid var(--line);border-inline-start:4px solid #ba4a42;border-radius:8px;color:var(--ink);background:var(--surface)}
@media(max-width:760px){.posting-layout{grid-template-columns:minmax(0,1fr)}}
