/* Shared application shell, derived from the catalog reference. */
:root{--ui-orange:#e86917;--ui-ink:#222;--ui-muted:#777;--ui-line:#e4dfdb;--ui-soft:#f6cdbf;--ui-rail:max(9.6vw,150px)}
html body.app-ready{background:#fff!important;color:var(--ui-ink);line-height:1.5}
html body.app-ready>.sidebar,html body.app-ready:has(#russiaCatalog.active)>.sidebar{display:flex!important;position:fixed!important;inset:0 auto 0 0!important;width:var(--ui-rail)!important;height:100dvh!important;padding:22px 12px!important;background:#fff!important;border:0!important;box-shadow:none!important;transform:none!important;flex-direction:column;overflow:visible;z-index:50}
html body.app-ready .sidebar>.brand{display:flex!important;align-items:center;justify-content:center;width:100%;height:112px!important;padding:0!important;margin:0!important;border:0!important}
html body.app-ready .sidebar>.brand img{display:block!important;width:140px!important;height:112px!important;max-width:100%!important;object-fit:contain!important}
html body.app-ready .sidebar-collapse,html body.app-ready .sidebar-note{display:none!important}
html body.app-ready .unified-primary-nav{display:flex!important;flex-direction:column;gap:20px;margin:70px 0 0!important;border-right:1px solid var(--ui-line);padding:0 6px 0 0!important;height:min(62vh,600px);min-height:330px}
html body.app-ready .unified-primary-nav button{display:flex!important;align-items:center;gap:8px;width:100%;padding:0 7px!important;min-height:32px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--ui-muted)!important;text-align:left;font-weight:400!important;position:relative}
html body.app-ready .unified-primary-nav button:nth-child(3){margin-top:auto}
html body.app-ready .unified-primary-nav button img{display:block!important;width:30px!important;height:30px!important;object-fit:contain}
html body.app-ready .unified-primary-nav button.active{color:var(--ui-orange)!important}
html body.app-ready .unified-primary-nav button.active:before{content:'';position:absolute;left:0;top:6px;bottom:6px;width:2px;background:var(--ui-orange)}
html body.app-ready .unified-primary-nav button:hover{background:#fff7f2!important}
html body.app-ready .unified-tools{margin-top:14px;border:0;padding:0 10px;position:relative}
html body.app-ready .unified-tools>summary{color:#777;cursor:pointer;font-size:10px}
html body.app-ready .unified-tools[open] .legacy-navigation{position:absolute;left:calc(100% + 10px);bottom:0;display:block!important;width:230px;max-height:80vh;overflow:auto;background:#fff;border:1px solid var(--ui-line);border-radius:12px;padding:16px;box-shadow:0 8px 24px #0002}
html body.app-ready .legacy-navigation .nav-item{display:flex!important;padding:8px!important;min-height:32px!important;margin:2px 0!important;color:#555;background:#fff;box-shadow:none;border:0}
html body.app-ready .legacy-navigation .nav-item span{display:none}
html body.app-ready .legacy-navigation .nav-group{display:block!important;padding:6px 0!important;border-bottom:1px solid #eee}
html body.app-ready #mainContent,html body.app-ready:has(#russiaCatalog.active) #mainContent{margin:0 0 0 var(--ui-rail)!important;padding:22px 24px 28px 10px!important;width:calc(100% - var(--ui-rail))!important;max-width:none!important;min-width:0;box-sizing:border-box}
html body.app-ready #mainContent>header,html body.app-ready:has(#russiaCatalog.active) #mainContent>header{display:flex!important;position:static!important;inset:auto!important;height:40px!important;min-height:40px!important;padding:0!important;margin:0 0 12px!important;background:#fff!important;border:0!important;box-shadow:none!important;width:100%!important;gap:20px;align-items:center}
html body.app-ready .header-brand{display:none!important}
html body.app-ready .header-page-title{display:block!important;order:0;flex:1;min-width:0}
html body.app-ready #pageTitle{display:block!important;margin:0!important;color:#161616;white-space:nowrap}
html body.app-ready .header-search{order:1;position:static!important;transform:none!important;max-width:360px!important;width:30%!important;min-width:150px;height:34px;border:1px solid #ddd;border-radius:7px;background:white;padding:0 10px}
html body.app-ready .header-search input{min-height:30px!important;padding:4px!important;background:white!important;border:0!important;width:100%;box-shadow:none!important}
html body.app-ready .header-actions{order:2;position:static!important;margin:0!important;gap:8px}
html body.app-ready .account-button{height:32px!important;width:32px!important;min-width:32px!important;border:1px solid #ddd!important;border-radius:50%!important;box-shadow:none!important;background:#fff!important;padding:0!important}
html body.app-ready .workspace-context-bar{position:static!important;display:flex!important;align-items:center;justify-content:space-between;gap:12px;min-height:38px!important;padding:0!important;margin:0 0 14px!important;border:0!important;background:#fff!important;width:100%!important;box-shadow:none!important}
html body.app-ready:has(#russiaCatalog.active) .workspace-context-bar{display:none!important}
html body.app-ready .workspace-tabs{display:flex;flex-wrap:wrap;gap:12px!important;border:0!important;background:transparent!important;padding:0!important;border-radius:0!important}
html body.app-ready .workspace-tab{border:0!important;border-radius:7px!important;background:transparent!important;color:#7b8ca7!important;padding:10px 13px!important;min-height:34px!important;box-shadow:none!important;font-weight:500!important}
html body.app-ready .workspace-tab.active{background:var(--ui-soft)!important;color:#db651c!important;border:0!important}
html body.app-ready .workspace-tab:after{display:none!important}
html body.app-ready .workspace-tab img{height:12px!important;width:22px!important;object-fit:contain}
html body.app-ready .workspace-context-meta{margin:0}.workspace-parallel-note{display:none!important}
html body.app-ready #mainContent>.page.active{border:1px solid var(--ui-line);border-radius:16px;padding:20px;min-height:calc(100dvh - 145px);background:#fff;margin:0;box-sizing:border-box;max-width:100%}
html body.app-ready #mainContent>#russiaCatalog.active{border:0!important;padding:0!important;min-height:0!important;background:#fff!important}
html body.app-ready #russiaCatalog .catalog-rail{display:none!important}
html body.app-ready #russiaCatalog .catalog-main{margin:0!important;padding:0!important}
html body.app-ready #russiaCatalog .catalog-main>h2{display:none!important}
html body.app-ready #russiaCatalog .catalog-tabs{min-height:38px;margin:0 0 14px!important;gap:12px;flex-wrap:wrap}
html body.app-ready #russiaCatalog .catalog-tabs button{padding:10px 13px!important;font-weight:500!important}
html body.app-ready #russiaCatalog .catalog-panel{min-height:calc(100dvh - 145px);padding:18px 20px 30px}
html body.app-ready :is(button.btn,.btn,.action-link){border-radius:7px!important;min-height:34px;box-shadow:none!important;font-weight:500!important}
html body.app-ready :is(.btn.primary,.auth-primary,.ozon-primary-action,.catalog-submit){background:var(--ui-orange)!important;border-color:var(--ui-orange)!important;color:white!important;background-image:none!important}
html body.app-ready :is(.btn.secondary,.action-link){background:#fff!important;color:#444!important;border:1px solid #ddd!important}
html body.app-ready :is(input,textarea,select){font-family:inherit;color:#222;border-radius:7px!important;border-color:#ddd!important;background-color:#fff;box-sizing:border-box;min-width:0;max-width:100%}
html body.app-ready :is(input,select):not([type=checkbox]):not([type=radio]):not([type=file]){min-height:34px;padding:7px 10px}
html body.app-ready textarea{line-height:1.6;padding:9px 10px}
html body.app-ready :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--ui-orange)!important;outline-offset:3px}
html body.app-ready :is(.panel,.card,.output-block,.store-card,.ozon-secondary){border-color:var(--ui-line)!important;border-radius:12px!important;background:#fff;box-shadow:none!important}
html body.app-ready :is(th,td){font-size:12px;padding:10px 12px;border-color:#eee}
html body.app-ready th{background:#fafafa;color:#666;font-weight:500}
html body.app-ready :is(small,.muted,.field-note,.helper-text){color:#777}
html body.app-ready #platformHub{display:grid!important;grid-template-columns:minmax(0,1fr) 210px;gap:20px;align-content:start}
html body.app-ready #platformHub:not(.active){display:none!important}
html body.app-ready #platformHub .workspace-hero{grid-column:1/-1;margin:0!important;padding:0 0 16px!important;border:0;border-bottom:1px solid #e6e9ef;background:#fff!important;min-height:0!important}
html body.app-ready #platformHub .workspace-hero h2{margin:0 0 4px;color:#222}
html body.app-ready #platformHub .workspace-hero p{margin:0;color:#777}
html body.app-ready #platformHub .platform-workspace-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin:14px 0 0!important}
html body.app-ready #platformHub .platform-workspace-card{display:flex;flex-direction:column;align-items:stretch;background:#f0f0f0!important;border:1px solid #eee!important;border-radius:16px!important;box-shadow:4px 7px 12px #0002!important;padding:0 15px 16px!important;min-height:260px!important;overflow:hidden;gap:12px}
html body.app-ready #platformHub .platform-card-brand{display:flex;justify-content:center;align-items:center;background:#fafafa;margin:0 -15px 4px;padding:28px 18px;height:105px;border-radius:16px;box-shadow:0 5px 9px #0001}
html body.app-ready #platformHub .platform-card-brand img{width:125px!important;height:42px!important;object-fit:contain}
html body.app-ready #platformHub .platform-card-brand span{display:none}
html body.app-ready #platformHub .platform-workspace-card h2{margin:0;color:#222;font-weight:500}
html body.app-ready #platformHub .platform-workspace-card p{margin:0;color:#777;line-height:1.6;min-height:36px}
html body.app-ready #platformHub .platform-card-actions{margin-top:auto;display:grid;gap:8px}
html body.app-ready #platformHub .platform-card-actions .btn.primary{width:100%;background:var(--ui-orange)!important;color:white!important;box-shadow:2px 4px 6px #0002!important}
html body.app-ready #platformHub .platform-card-actions .text-btn{display:block!important;text-align:center;color:#666;background:transparent;border:0;padding:4px}
html body.app-ready #platformHub .today-todos{margin:14px 0 0!important;padding:16px!important;border:1px solid var(--ui-line)!important;border-radius:12px;align-self:start;background:#fff!important}
html body.app-ready #platformHub .today-todos h3{margin:0 0 14px}
html body.app-ready #platformHub .today-todos>div{padding:14px 0;border-bottom:1px solid #eee}
@media(max-width:1100px){:root{--ui-rail:140px}html body.app-ready #platformHub{grid-template-columns:1fr}html body.app-ready #platformHub .today-todos{display:flex;flex-wrap:wrap;gap:18px}html body.app-ready #platformHub .today-todos>div{flex:1;min-width:110px}html body.app-ready #platformHub .today-todos h3{width:100%;margin:0}}
@media(max-width:700px){:root{--ui-rail:76px}html body.app-ready>.sidebar,html body.app-ready:has(#russiaCatalog.active)>.sidebar{padding:12px 5px!important}html body.app-ready .sidebar>.brand,html body.app-ready .sidebar>.brand img{height:65px!important}html body.app-ready .unified-primary-nav{margin-top:20px!important;gap:12px;height:auto;min-height:0}html body.app-ready .unified-primary-nav button{flex-direction:column;gap:2px;align-items:center;padding:6px 0!important}html body.app-ready .unified-primary-nav button:nth-child(3){margin-top:0}html body.app-ready .unified-tools{padding:0 3px}html body.app-ready #mainContent,html body.app-ready:has(#russiaCatalog.active) #mainContent{padding:14px 12px!important}html body.app-ready #mainContent>header,html body.app-ready:has(#russiaCatalog.active) #mainContent>header{gap:8px}html body.app-ready .header-search{display:none!important}html body.app-ready #platformHub .platform-workspace-grid{grid-template-columns:1fr;gap:18px}html body.app-ready #platformHub{padding:14px!important}html body.app-ready #mainContent>.page.active{padding:14px}html body.app-ready>.mobile-nav-trigger{display:none!important}html body.app-ready #russiaCatalog .catalog-grid{grid-template-columns:1fr;gap:24px;padding:18px 0}html body.app-ready #russiaCatalog .catalog-toolbar{flex-direction:column;align-items:stretch}html body.app-ready #russiaCatalog .catalog-filters{width:100%;grid-template-columns:minmax(0,1fr) 70px}html body.app-ready #russiaCatalog .catalog-filters select{grid-column:1}html body.app-ready #russiaCatalog .catalog-filters input{grid-column:1}html body.app-ready #russiaCatalog .catalog-panel{padding:14px}html body.app-ready .workspace-context-bar{flex-wrap:wrap}html body.app-ready .workspace-tab{padding:8px!important}html body.app-ready #pageTitle{white-space:normal}}
/* Override legacy positioned header and workspace grids at their shared boundary. */
html body.app-ready .header-page-title{position:static!important;inset:auto!important;transform:none!important;width:auto!important;margin:0!important;padding:0!important}
html body.app-ready .unified-primary-nav button:nth-child(3){margin-top:auto!important}
html body.app-ready #platformHub{grid-template-columns:minmax(0,1fr) 210px!important;grid-template-areas:none!important;grid-template-rows:auto 1fr!important}
html body.app-ready #platformHub .workspace-hero{grid-area:auto!important;grid-column:1/-1!important;grid-row:1!important}
html body.app-ready #platformHub .platform-workspace-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-area:auto!important;grid-column:1!important;grid-row:2!important;width:100%!important;gap:28px!important;align-items:start!important}
html body.app-ready #platformHub .platform-workspace-card{width:auto!important;max-width:none!important;min-width:0!important}
html body.app-ready #platformHub .platform-card-actions{position:static!important;inset:auto!important;display:grid!important;width:100%!important;margin-top:auto!important}
html body.app-ready #platformHub .today-todos{grid-area:auto!important;grid-column:2!important;grid-row:2!important;width:auto!important}
@media(max-width:1100px){html body.app-ready #platformHub{grid-template-columns:1fr!important;grid-template-rows:auto auto auto!important}html body.app-ready #platformHub .today-todos{grid-column:1!important;grid-row:3!important}}
@media(max-width:700px){html body.app-ready #platformHub .platform-workspace-grid{grid-template-columns:1fr!important}html body.app-ready .unified-primary-nav button:nth-child(3){margin-top:0!important}}

html body.app-ready #platformHub .platform-workspace-grid{padding:0!important}
html body.app-ready #platformHub .today-todos{position:static!important;inset:auto!important;min-width:0!important}
html body.app-ready #platformHub .platform-card-actions .btn.primary{width:100%!important;max-width:none!important}

html body.app-ready>.sidebar,html body.app-ready:has(#russiaCatalog.active)>.sidebar{overflow:visible!important}
html body.app-ready #platformHub .platform-card-actions{grid-template-columns:minmax(0,1fr)!important;justify-content:stretch!important;justify-items:stretch!important}
