.rw-studio-host {
  --studio-sidebar-width: 244px;
  display: grid;
  grid-template-columns: var(--studio-sidebar-width) minmax(0,1fr);
  height: 100%;
  min-height: 0;
  min-width: 0;
  background: #0b0d10;
  color: #f3f4f6;
}
.rw-studio-host[data-collapsed="true"] { --studio-sidebar-width: 62px; }
.rw-studio-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border-inline-end: 1px solid #ffffff12;
  background: #101113;
}
.rw-studio-side-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  min-height: 49px;
  border-bottom: 1px solid #ffffff0c;
}
.rw-studio-side-brand > a { min-width: 0; }
.rw-studio-side-brand img { max-width: 104px; max-height: 28px; object-fit: contain; object-position: inline-start; }
.rw-studio-side-brand button,
.rw-studio-appbar button,
.rw-studio-shell-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  min-height: 34px;
  border-radius: 8px;
  color: #ebecf0;
}
.rw-studio-side-scroll { display: grid; align-content: start; gap: 12px; overflow: auto; padding: 8px; scrollbar-width: thin; }
.rw-studio-side-scroll :is(a,button,summary) {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  min-height: 35px;
  max-width: 100%;
  border-radius: 7px;
  font-size: 13px;
  text-align: start;
  color: #c8cad1;
  cursor: pointer;
}
.rw-studio-side-scroll :is(a,button,summary):hover,
.rw-studio-side-scroll [aria-current="page"],
.rw-studio-shell-tabs a[aria-current="page"],.rw-studio-tool-tabs a[aria-current="page"] { background: #292b2e; color: #fff; }
.rw-studio-side-scroll summary::-webkit-details-marker { display: none; }
.rw-studio-side-scroll strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rw-studio-side-scroll svg,.rw-studio-side-scroll img { flex: 0 0 17px; }
.rw-studio-side-scroll section > p,.rw-studio-side-models > p { margin: 4px 8px; color: #9b9ca5; font-size: 11px; }
.rw-studio-side-categories { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
@media (min-width: 1024px) {
  .rw-studio-host[data-collapsed="true"] .rw-studio-side-brand > a,
  .rw-studio-host[data-collapsed="true"] .rw-studio-side-scroll :is(strong,p,summary > span) { display: none; }
  .rw-studio-host[data-collapsed="true"] .rw-studio-side-brand { justify-content: center; }
  .rw-studio-host[data-collapsed="true"] .rw-studio-side-categories { grid-template-columns: 1fr; }
  .rw-studio-host[data-collapsed="true"] .rw-studio-side-scroll :is(a,button,summary) { width: 100%; justify-content: center; }
}
.rw-studio-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.rw-studio-appbar {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid #ffffff0c;
}
.rw-studio-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rw-studio-breadcrumb span::before { content: '›'; color: #a8a9af; margin-inline-end: 8px; }
.rw-studio-appbar > button[data-studio-mobile] { display: none; }
@media (max-width: 1023px) {
 .rw-studio-host { display: block; }
 .rw-studio-pane { height: 100%; }
 .rw-studio-sidebar {
   display: none;
   position: fixed;
   z-index: 120;
   inset: 0 auto 0 0;
   width: min(320px,85vw);
 }
 .rw-studio-host[dir=rtl] .rw-studio-sidebar { inset: 0 0 0 auto; }
 .rw-studio-host[data-mobile-open] .rw-studio-sidebar { display: flex; }
 .rw-studio-sidebar-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 119; background: #000a; }
 .rw-studio-appbar > button[data-studio-mobile] { display: inline-flex; margin-inline-end: 4px; }
 .rw-studio-sidebar [data-studio-collapse] { display: none; }
}
/* The studio bar owns navigation. Original account controls keep their actions. */
body:has(.rw-studio-content-host) {
 --recon-studio-bar-height: 48px;
}
body:has(.rw-studio-content-host) > div > header.fixed,
body:has(.rw-studio-content-host) header.fixed:has(> .bg-background > .h-16) {
 height: 0;
 overflow: visible;
 pointer-events: none;
}
body:has(.rw-studio-content-host) header.fixed:has(> .bg-background > .h-16) > :not(.bg-background),
body:has(.rw-studio-content-host) header.fixed > .bg-background > :not(.h-16),
body:has(.rw-studio-content-host) header.fixed > .bg-background > .h-16 > :not(:last-child) {
 display: none !important;
}
body:has(.rw-studio-content-host) header.fixed > .bg-background > .h-16 {
 height: 0;
 padding: 0;
 border: 0;
 background: transparent;
}
body:has(.rw-studio-content-host) header.fixed > .bg-background > .h-16 > :last-child {
 position: fixed;
 inset-block-start: 0;
 inset-inline-end: 10px;
 height: var(--recon-studio-bar-height);
 pointer-events: auto;
}
body:has(.rw-studio-content-host) header.fixed [data-reconstruction-action="menu"] { display: none; }
body:has(.rw-studio-content-host) div.flex.bg-background:has(main) { padding-top: 0 !important; }
.rw-studio-appbar { min-height: var(--recon-studio-bar-height,48px); padding-inline-end: clamp(155px,22vw,256px); }
.rw-studio-breadcrumb { overflow: hidden; white-space: nowrap; }
.rw-studio-breadcrumb [data-studio-crumb] { overflow: hidden; text-overflow: ellipsis; }
.rw-studio-initials { width: 17px; flex: 0 0 17px; text-align: center; font-size: 8px; }
.rw-studio-content-host { height: 100dvh; }
.rw-studio-content-host .rw-studio-appbar { flex-shrink: 0; background: #131416; }
.rw-studio-content-host main { min-width: 0; min-height: 0; overflow: auto; }
@media (max-width: 1023px) {
 .rw-studio-content-host .rw-studio-pane { height: 100%; }
}
@media (max-width: 540px) {
 .rw-studio-appbar { padding-inline-end: 144px; }
 .rw-studio-breadcrumb > strong,.rw-studio-breadcrumb span:not([data-studio-crumb]) { display: none; }
}
