/* RADOGAST 3.17 — calm workspace, shared by the shell and embedded screens. */
:root{--rg-accent:#087f75;--rg-focus:#087f75;--rg-bg:#f5f6f8;--rg-text:#202c38;--rg-muted:#5e6d7c;--rg-surface:#fff;--border:#e1e6eb;--rg-radius:11px;--studio-soft:#edf4f2;--studio-good:#17674f;--studio-good-bg:#e9f6ef;--studio-warn:#805a22;--studio-warn-bg:#fff3db;--studio-bad:#973d42;--studio-bad-bg:#fdeced;--studio-neutral:#596b7d;--studio-neutral-bg:#f0f3f6;--studio-accent-text:#fff}
body,.workspace,.page-content{background:var(--rg-bg);color:var(--rg-text)}.topbar{background:var(--rg-surface);gap:20px;position:sticky;top:0;z-index:20}.topbar>.organization{flex:0 0 auto}.topbar-actions{margin-left:auto}.page-header .global-search{display:none}.sidebar{background:#1b2530;border-right-color:#2c3743;width:220px;min-width:220px;flex-basis:220px}.sidebar .brand{border-color:#2c3743}.sidebar .nav-button.active{background:#087f75}.sidebar .nav-button:hover{background:#2b3946}.sidebar .nav-button.active:hover{background:#086d64}.sidebar .rg-menu-search input{background:#24313e;border-color:#425363}.sidebar.collapsed{width:72px;min-width:72px;flex-basis:72px}.sidebar.collapsed .brand-logo{width:48px;padding:3px}.page-content{padding:0 28px 32px}.page-header{padding:25px 28px 20px}.page-header h1{font-size:27px}.rg-section-tabs{margin-bottom:22px}.studio-command-launcher{display:flex;align-items:center;gap:12px;color:var(--rg-muted);background:var(--rg-bg);border:1px solid var(--border);min-width:260px;min-height:40px;padding:8px 12px;margin-left:10px;font-size:14px;font-weight:400}.studio-command-launcher kbd{margin-left:auto;font-family:inherit;font-size:11px;color:var(--rg-muted);border:1px solid var(--border);border-radius:4px;padding:2px 5px}.studio-command-launcher svg{flex:none}.studio-welcome{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:0 0 22px}.studio-eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em;color:var(--rg-muted)}.studio-welcome h2{font-size:26px;margin:8px 0 7px;line-height:1.2}.studio-welcome p{font-size:14px;color:var(--rg-muted);margin:0}.studio-period{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.studio-period label{display:grid;gap:5px;font-size:12px;font-weight:500}.studio-period select{min-height:38px;font-size:13px;padding:7px 10px;min-width:150px}.studio-refresh{display:grid;place-items:center;min-width:40px;min-height:40px;padding:8px}.studio-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0 0 22px}.studio-kpi{display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:var(--rg-surface);border:1px solid var(--border);padding:17px 16px 15px;border-radius:10px;min-width:0;box-shadow:0 1px 2px #15253404}.studio-kpi:disabled{background:var(--rg-surface);color:var(--rg-text);opacity:1}.studio-kpi-label{font-size:13px;color:var(--rg-muted);font-weight:500}.studio-kpi strong{font-size:26px;font-weight:650;letter-spacing:-.035em;line-height:1.25;margin:9px 0 12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.studio-kpi small{font-size:11px;line-height:1.4;font-weight:400;color:var(--rg-muted)}.studio-main-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(290px,1fr);gap:20px;margin-bottom:20px}.studio-surface{background:var(--rg-surface);border:1px solid var(--border);border-radius:var(--rg-radius);padding:22px;box-shadow:0 1px 2px #14232e03}.studio-panel-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:20px}.studio-panel-title h3{font-size:17px;margin:0;letter-spacing:-.018em}.studio-panel-title p{font-size:12px;color:var(--rg-muted);margin:5px 0 0}.studio-panel-title button{font-size:13px;min-height:34px;padding:7px 10px}.studio-segment{display:flex;padding:3px;border:1px solid var(--border);border-radius:7px;background:var(--rg-bg)}.studio-segment button{border:0;background:transparent;min-height:30px;font-size:12px;padding:5px 9px;font-weight:500}.studio-segment button.active{background:var(--rg-surface);box-shadow:0 1px 3px #13283515;color:var(--rg-accent)}.studio-chart-top{display:flex;align-items:baseline;gap:12px;margin-bottom:22px}.studio-chart-top strong{font-size:28px;font-variant-numeric:tabular-nums}.studio-chart-top span{font-size:12px;color:var(--rg-muted)}.studio-bars{display:flex;align-items:flex-end;height:170px;gap:5px;padding-bottom:24px;border-bottom:1px solid var(--border);background:linear-gradient(to bottom,transparent 49%,var(--border) 50%,transparent 50.5%);position:relative;margin-bottom:15px}.studio-bar{flex:1;min-width:2px;height:100%;display:flex;align-items:flex-end;position:relative}.studio-bar>span{display:block;width:100%;background:var(--rg-accent);border-radius:3px 3px 0 0;min-height:0;opacity:.86}.studio-bar>small{position:absolute;bottom:-25px;font-size:10px;color:var(--rg-muted);white-space:nowrap}.studio-bar:last-child>small{right:0}.studio-chart-empty{font-size:13px;color:var(--rg-muted);margin:8px 0}.studio-chart-data{border:0;margin:10px 0 0;padding:0}.studio-chart-data summary{font-size:12px;min-height:28px;padding:4px 0}.studio-caption{font-size:12px;color:var(--rg-muted);line-height:1.6}.studio-count{font-size:12px;background:var(--studio-neutral-bg);color:var(--studio-neutral);border-radius:5px;padding:3px 7px}.studio-task{display:flex;align-items:center;gap:12px;padding:15px 0;width:100%;text-align:left;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent}.studio-task:hover{background:var(--rg-bg)}.studio-task>span:nth-child(2){flex:1;min-width:0}.studio-task strong{font-size:13px;display:block}.studio-task small{display:block;color:var(--rg-muted);font-size:11px;line-height:1.5;font-weight:400;margin-top:4px}.studio-task-count{background:var(--studio-warn-bg);color:var(--studio-warn);font-size:13px;border-radius:8px;padding:7px;min-width:34px;text-align:center;align-self:flex-start}.studio-text-button{color:var(--rg-accent);background:transparent;border-color:transparent;min-height:36px;font-size:13px;padding:8px 0}.studio-calm{padding:25px 0;color:var(--rg-muted);font-size:13px}.studio-calm strong{color:var(--rg-text);font-size:15px}.studio-connections{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.studio-connection{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid var(--border);border-radius:9px;background:var(--rg-surface);padding:15px;font-size:13px}.studio-connection small{font-size:10px;color:var(--rg-muted);font-weight:400;margin-top:7px}.studio-connection-state{font-size:11px;font-weight:500;color:var(--rg-muted);margin-top:7px}.studio-connection-state.good{color:var(--studio-good)}.studio-connection-state.bad{color:var(--studio-bad)}.studio-orders .tablewrap{margin:0;border:0}.studio-orders th{font-size:12px;font-weight:500;background:var(--rg-bg)}.studio-orders td{font-size:13px}.studio-numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.studio-cell-sub{display:block;color:var(--rg-muted);font-size:11px;line-height:1.5;font-weight:400;margin-top:3px;overflow-wrap:anywhere}.studio-status{display:inline-flex;padding:4px 7px;border-radius:5px;font-size:10px;font-weight:500;background:var(--studio-neutral-bg);color:var(--studio-neutral);white-space:nowrap}.studio-status.good{background:var(--studio-good-bg);color:var(--studio-good)}.studio-status.warn{background:var(--studio-warn-bg);color:var(--studio-warn)}.studio-status.bad{background:var(--studio-bad-bg);color:var(--studio-bad)}.studio-source-note{margin:16px 0;max-width:980px}.studio-loading{padding:28px;border:1px solid var(--border);background:var(--rg-surface);border-radius:11px}.studio-command-backdrop{position:fixed;inset:0;z-index:1000;background:#14233070;display:flex;align-items:flex-start;justify-content:center;padding:12vh 20px 20px}.studio-command-dialog{width:650px;max-width:100%;max-height:75vh;background:var(--rg-surface);border:1px solid var(--border);border-radius:13px;box-shadow:0 25px 90px #07141d55;overflow:hidden;display:flex;flex-direction:column}.studio-command-input{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid var(--border)}.studio-command-input input{flex:1;min-width:0;border:0;background:transparent;box-shadow:none;min-height:42px;font-size:15px}.studio-command-input button{font-size:12px;min-height:34px;padding:5px 8px}.studio-command-results{padding:12px;overflow:auto;flex:1}.studio-command-results h3{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--rg-muted);margin:12px 10px 7px}.studio-command-results>button{display:flex;flex-direction:column;align-items:flex-start;width:100%;text-align:left;border:0;background:transparent;min-height:44px;padding:11px 12px;font-size:14px}.studio-command-results>button:hover{background:var(--studio-soft)}.studio-command-results small{font-size:12px;margin-top:5px;color:var(--rg-muted);font-weight:400}.studio-command-dialog footer{padding:12px 20px;border-top:1px solid var(--border);font-size:11px;color:var(--rg-muted)}
/* Product list and quick view. Export/editor controls remain in the same workflow. */
.embedded main{padding:0 0 20px}.pim-intro h2{font-size:19px}.pim-intro p{font-size:13px;margin-top:5px}.pim-filters{grid-template-columns:minmax(180px,1.65fr) repeat(5,minmax(105px,1fr));gap:10px}.pim-filters label{font-size:11px;font-weight:500}.pim-filters input,.pim-filters select{min-height:38px;font-size:12px;padding:7px 9px;border-radius:6px}.pim-filters .field{gap:5px}.pim-main-actions{gap:8px;margin-top:10px}.pim-main-actions button{font-size:12px;min-height:35px;padding:7px 10px}#pim-catalog{padding:17px;border-color:var(--border);background:var(--rg-surface);position:relative}#pim-catalog>.caption{font-size:11px;margin:8px 0}.pim-file-tools{padding-top:0;margin-top:12px}.pim-file-tools summary{font-size:12px;padding:8px 0}#catalog>.caption{font-size:11px;margin-top:14px}#catalog .tablewrap{border-radius:8px;border:1px solid var(--border);margin-top:10px}#catalog th{font-size:11px;font-weight:500;white-space:nowrap;background:var(--rg-bg);padding:10px 9px}#catalog td{font-size:12px;padding:12px 9px}#catalog th:first-child,#catalog td:first-child{width:30px}#catalog input[type=checkbox]{width:15px;height:15px;min-height:0}#catalog tbody tr:nth-child(even){background:transparent}.studio-product-cell{display:flex;gap:10px;align-items:center;min-width:220px}.studio-photo{width:42px;min-width:42px;height:50px;display:flex;align-items:center;justify-content:center;font-size:9px;color:var(--rg-muted);overflow:hidden}.studio-photo img{width:100%;height:100%;object-fit:contain}.studio-product-name{font-size:12px;font-weight:650;min-height:0;line-height:1.5;padding:0;background:transparent;border:0;text-align:left;color:var(--rg-text);border-radius:2px}.studio-product-name:hover{color:var(--rg-accent);background:transparent;text-decoration:underline}.studio-product-panel{position:fixed;right:0;top:0;bottom:0;z-index:40;width:390px;max-width:100%;background:var(--rg-surface);box-shadow:-12px 0 40px #10263522;border-left:1px solid var(--border);display:flex;flex-direction:column}.studio-product-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid var(--border)}.studio-product-panel header button{font-size:11px;min-height:30px;padding:5px 8px}.studio-preview-content{overflow:auto;flex:1;padding:20px}.studio-preview-content h2{font-size:22px;line-height:1.3;margin:12px 0}.studio-preview-content h3{font-size:15px;margin:22px 0 10px}.studio-preview-photo{width:100%;height:160px;object-fit:contain;background:var(--rg-surface)}.studio-product-facts{margin:22px 0 16px}.studio-product-facts>div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--border);font-size:12px}.studio-product-facts dt{color:var(--rg-muted)}.studio-product-facts dd{margin:0;text-align:right;font-weight:600;overflow-wrap:anywhere;max-width:60%}.studio-product-platforms{list-style:none;margin:0;padding:0}.studio-product-platforms li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);font-size:12px}.studio-product-platforms small{display:block;font-size:10px;color:var(--rg-muted);margin-top:4px}.studio-product-panel>footer{display:flex;gap:8px;flex-wrap:wrap;padding:16px 20px;border-top:1px solid var(--border)}.studio-product-panel>footer button{font-size:12px;min-height:38px}.studio-product-panel details{font-size:12px}.studio-product-panel:focus{outline:none}
:root[data-rg-theme=dark]{color-scheme:dark;--rg-bg:#111923;--rg-surface:#1a2531;--rg-text:#e1e9f0;--rg-muted:#a3b2c1;--border:#344353;--line:#344353;--rg-accent:#64d2be;--rg-focus:#64d2be;--studio-soft:#223a3a;--studio-good:#91dfb6;--studio-good-bg:#203e33;--studio-warn:#f1ca83;--studio-warn-bg:#403623;--studio-bad:#f3b0b5;--studio-bad-bg:#442d35;--studio-neutral:#b4c4d2;--studio-neutral-bg:#293847;--studio-accent-text:#103a34}
:root[data-rg-theme=dark] .topbar,:root[data-rg-theme=dark] .panel,:root[data-rg-theme=dark] .card,:root[data-rg-theme=dark] .rg-interface-panel,:root[data-rg-theme=dark] .tablewrap,:root[data-rg-theme=dark] .editor-panel,:root[data-rg-theme=dark] .metric,:root[data-rg-theme=dark] .kpi-card{background:var(--rg-surface);border-color:var(--border);color:var(--rg-text)}:root[data-rg-theme=dark] input,:root[data-rg-theme=dark] select,:root[data-rg-theme=dark] textarea,:root[data-rg-theme=dark] button{background:var(--rg-surface);color:var(--rg-text);border-color:var(--border)}:root[data-rg-theme=dark] button:hover:not(:disabled){background:#273d44}:root[data-rg-theme=dark] input::placeholder,:root[data-rg-theme=dark] textarea::placeholder{color:#a3b2c1}:root[data-rg-theme=dark] .primary,:root[data-rg-theme=dark] .primary-button,:root[data-rg-theme=dark] .primary-btn{background:var(--rg-accent);color:var(--studio-accent-text);border-color:var(--rg-accent)}:root[data-rg-theme=dark] a,:root[data-rg-theme=dark] .studio-text-button{color:var(--rg-accent)}:root[data-rg-theme=dark] table th,:root[data-rg-theme=dark] .data-table th{background:#23313f;color:#c3d0dc}:root[data-rg-theme=dark] table td,:root[data-rg-theme=dark] .data-table td{border-color:var(--border);color:var(--rg-text)}:root[data-rg-theme=dark] tbody tr:nth-child(even){background:#1d2b37}:root[data-rg-theme=dark] tbody tr:hover{background:#243c40}:root[data-rg-theme=dark] .notice{background:#203d34;color:#afdfc7;border-color:#3b6051}:root[data-rg-theme=dark] .notice.error{background:#412d30;color:#f2babe;border-color:#805158}:root[data-rg-theme=dark] .notice.info{background:#243b4d;color:#bad8ea;border-color:#3c5c71}:root[data-rg-theme=dark] pre{background:#14202c;color:#d0dfeb}:root[data-rg-theme=dark] .caption,:root[data-rg-theme=dark] .muted,:root[data-rg-theme=dark] .hint,:root[data-rg-theme=dark] label,:root[data-rg-theme=dark] summary{color:var(--rg-muted)}:root[data-rg-theme=dark] .sidebar .nav-button{background:transparent;color:#d3e0e8}:root[data-rg-theme=dark] .sidebar .nav-button.active{background:#087f75;color:#fff}:root[data-rg-theme=dark] .studio-kpi{background:var(--rg-surface)}:root[data-rg-theme=dark] .studio-task,:root[data-rg-theme=dark] .studio-command-results>button,:root[data-rg-theme=dark] .studio-product-name{background:transparent}:root[data-rg-theme=dark] .studio-segment button.active{color:var(--rg-accent)}:root[data-rg-theme=dark] .rg-section-tabs button{background:transparent;color:var(--rg-muted)}:root[data-rg-theme=dark] .rg-section-tabs button.active{color:var(--rg-accent);border-color:var(--rg-accent);background:#223a3a}:root[data-rg-theme=dark] .studio-command-launcher{background:var(--rg-bg)}
@media(max-width:1300px){.studio-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.studio-welcome{align-items:flex-start;flex-direction:column;gap:16px}.studio-command-launcher{min-width:200px}.topbar{gap:12px}}
@media(max-width:1050px){.studio-main-grid{grid-template-columns:1fr}.studio-connections{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-command-launcher{min-width:0}.studio-command-launcher kbd{display:none}.topbar .organization small{display:none}.topbar .sync-chip{font-size:11px;padding:7px}.topbar-actions{gap:7px}.topbar .profile-button>span:not(.avatar){display:none}}
@media(max-width:760px){.sidebar,.sidebar:not(.collapsed){width:64px;min-width:64px;flex-basis:64px}.sidebar .brand{padding:12px 6px}.sidebar .brand-logo{width:50px;height:35px;padding:2px}.sidebar nav{padding:8px 6px}.sidebar .nav-button{justify-content:center;padding:10px 6px}.sidebar .nav-button>span,.sidebar .nav-button .badge,.sidebar .rg-menu-search,.sidebar .rg-version,.sidebar .collapse-button{display:none}.topbar{padding:10px 14px;gap:8px;min-height:58px}.topbar .organization{min-width:0}.topbar .organization>span:not(.org-avatar){max-width:100px;font-size:10px}.topbar .org-avatar{width:25px;height:25px}.topbar .sync-chip{display:none}.topbar-actions .profile-button{min-width:30px;padding:0}.studio-command-launcher{min-width:38px;width:38px;padding:8px;margin-left:auto}.studio-command-launcher>span,.studio-command-launcher kbd{display:none}.page-header{padding:18px 18px 14px}.page-content{padding:0 18px 24px}.page-header h1{font-size:24px}.page-header p{font-size:12px}.studio-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-kpi strong{font-size:24px}.studio-welcome h2{font-size:22px}.studio-period{width:100%}.studio-period label{flex:1;min-width:0}.studio-period select{min-width:0;width:100%}.studio-surface{padding:17px}.studio-connections{grid-template-columns:1fr 1fr}.pim-filters{grid-template-columns:repeat(2,minmax(0,1fr))}#pim-catalog{padding:12px}.studio-command-backdrop{padding:7vh 12px 12px}.studio-command-input{padding:10px;gap:6px}.studio-command-input input{font-size:13px}.studio-product-panel{width:100%}.studio-orders table{min-width:600px}.studio-source-note{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.global-search{display:none!important}
#catalog td{font-size:14px}.studio-product-name{font-size:14px}.studio-status{font-size:12px}.studio-product-facts>div,.studio-product-platforms li{font-size:14px}.studio-task strong{font-size:14px}.studio-product-panel footer button{font-size:14px}.pim-filters input,.pim-filters select{font-size:14px}.pim-filters label,#catalog th{font-size:12px}.pim-main-actions button{font-size:13px}
:root[data-rg-text=large] #catalog td,:root[data-rg-text=large] .studio-product-name,:root[data-rg-text=large] .pim-filters input,:root[data-rg-text=large] .pim-filters select,:root[data-rg-text=large] .studio-product-facts>div,:root[data-rg-text=large] .studio-product-platforms li{font-size:16px}
:root[data-rg-text=large] .studio-cell-sub,:root[data-rg-text=large] .studio-status,:root[data-rg-text=large] .pim-filters label,:root[data-rg-text=large] #catalog th,:root[data-rg-text=large] .studio-caption{font-size:14px}
:root[data-rg-density=compact] #catalog td{padding-top:8px;padding-bottom:8px}

@media(max-width:1000px){.pim-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.pim-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
.studio-kpi small,.studio-task small,.studio-connection small,.studio-connection-state,.studio-product-platforms small,.studio-bar>small{font-size:12px}.studio-cell-sub{font-size:12px}.studio-orders td{font-size:14px}.studio-task small{line-height:1.55}
:root[data-rg-theme=dark] .sync-chip.connected{background:var(--studio-good-bg);color:var(--studio-good);border-color:#3b6051}
:root[data-rg-theme=dark] #pim-selection-count{background:var(--studio-neutral-bg);color:var(--studio-neutral)}
:root[data-rg-text=large] .studio-kpi small,:root[data-rg-text=large] .studio-task small,:root[data-rg-text=large] .studio-connection small{font-size:14px}
html{background:var(--rg-bg)}.rg-workspace-frame{background:var(--rg-bg)}
:root{--muted:var(--rg-muted);--line:var(--border);background:var(--rg-bg)}
:root[data-rg-theme=dark] :is(.integration-card,.order-drawer,.modal,.filter-card,.status-tabs,.toolbar,.settings-nav,.settings-storage,.product-editor,.product-editor-header,.editor-readiness,.card-section-nav,.card-editor-section,.photo-dropzone,.photo-card,.marketplace-stock-panel,.card-publish-panel,.publish-preview,.comparison-card,.help-box,.attention-row,.finance-row.strong,.frame-tool-panel){background:var(--rg-surface);color:var(--rg-text);border-color:var(--border)}
:root[data-rg-theme=dark] :is(.modal-footer,.drawer-order-items h3,.data-table code,.type-badge,.pill,.counter,.product-stock-breakdown>span,.settlement-note){background:var(--studio-neutral-bg);color:var(--studio-neutral);border-color:var(--border)}
:root[data-rg-theme=dark] :is(.status.success,.pill.good,.rg-status.good){color:var(--studio-good)}
:root[data-rg-theme=dark] :is(.status.warning,.pill.warn,.rg-status.warn){color:var(--studio-warn)}
:root[data-rg-theme=dark] :is(.status.danger,.pill.bad,.rg-status.bad,.negative){color:var(--studio-bad)}
:root[data-rg-theme=dark] .status-tabs button.active{background:var(--studio-soft);color:var(--rg-accent)}
:root[data-rg-theme=dark] .status-tabs button.active b{color:var(--rg-accent)}
