:root {
  color-scheme: dark;
  --bg: #050b14;
  --bg-deep: #030812;
  --panel: #081321;
  --panel-2: #0b1828;
  --panel-3: #0e1e31;
  --line: #1b3147;
  --line-soft: rgba(111, 159, 201, 0.16);
  --text: #f5f7fb;
  --muted: #9aa9ba;
  --muted-2: #6f8092;
  --cyan: #4ce5ff;
  --blue: #399cff;
  --purple: #8b4dff;
  --purple-2: #c45cff;
  --green: #39d979;
  --amber: #ffbf3f;
  --red: #ff627d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --sidebar: 248px;
  --topbar: 64px;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { background: var(--bg-deep); }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 80% -20%, rgba(63, 64, 210, 0.14), transparent 32rem),
    linear-gradient(180deg, #06101d 0%, #050b14 45%, #050a13 100%);
  color: var(--text);
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.noscript { padding: 2rem; text-align: center; background: #241027; color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #07101b; }
::-webkit-scrollbar-thumb { background: #263b50; border: 2px solid #07101b; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #34516d; }

.app-shell { min-height: 100vh; }
.portal-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.portal-topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--topbar); z-index: 50;
  display: flex; align-items: center; border-bottom: 1px solid var(--line-soft);
  background: rgba(4, 12, 23, 0.92); backdrop-filter: blur(18px);
}
.brand {
  width: var(--sidebar); border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; height: 100%; display: flex; align-items: center; gap: 12px;
  padding: 0 22px; border-right: 1px solid var(--line-soft); font-weight: 800; letter-spacing: .02em;
}
.brand img { width: 38px; height: 38px; }
.brand span { font-size: 18px; }
.topbar-content { flex: 1; height: 100%; display: flex; align-items: center; justify-content: flex-end; padding: 0 26px; gap: 16px; }
.icon-btn, .btn, .menu-btn, .tool-btn, .chip, .tab-btn {
  border: 1px solid var(--line); background: #091522; border-radius: 9px; cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, color .16s ease, box-shadow .16s ease;
}
.icon-btn:hover, .btn:hover, .menu-btn:hover, .tool-btn:hover, .chip:hover, .tab-btn:hover { border-color: #426583; background: #0d1c2c; }
.icon-btn:active, .btn:active, .tool-btn:active { transform: translateY(1px); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; }
.profile-pill { border: 0; background: transparent; color: inherit; cursor: pointer; display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid var(--line-soft); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: radial-gradient(circle at 35% 30%, #5be7ff, #5140d5 44%, #191030 78%); border: 2px solid #5847b8;
  box-shadow: 0 0 22px rgba(98, 71, 231, .25);
}
.profile-text strong { display: block; font-size: 13px; }
.profile-text span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

.sidebar {
  position: fixed; top: var(--topbar); bottom: 0; left: 0; width: var(--sidebar); z-index: 40;
  padding: 16px 14px 18px; background: #040d19; border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; overflow-y: auto;
}
.nav-list { display: grid; gap: 5px; }
.nav-item {
  width: 100%; display: flex; align-items: center; gap: 13px; padding: 12px 14px; border: 1px solid transparent;
  border-radius: 9px; color: #d4dbe5; background: transparent; cursor: pointer; text-align: left; font-weight: 600; font-size: 14px;
}
.nav-item:hover { background: #0a1727; color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(91, 46, 176, .54), rgba(75, 34, 152, .42)); border-color: #4d2c86; color: #fff; }
.nav-item svg { color: #c8d5e2; font-size: 18px; }
.nav-item.active svg { color: #d6c4ff; }
.nav-divider { height: 1px; background: var(--line-soft); margin: 13px 6px; }
.sidebar-spacer { flex: 1; min-height: 18px; }
.upgrade-card { padding: 16px; border: 1px solid #492680; border-radius: 10px; background: linear-gradient(145deg, rgba(42, 21, 82, .84), rgba(20, 14, 49, .92)); }
.upgrade-title { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.upgrade-title svg { color: #ffd83e; }
.upgrade-card p { margin: 12px 0 16px; color: #b9bad0; font-size: 12px; line-height: 1.7; }
.status-pill { margin-top: 14px; background: transparent; color: #bac6d3; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(57, 217, 121, .45); }
.sidebar-footer { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding: 0 6px; color: #7f90a2; font-size: 11px; }
.sidebar-footer img { width: 24px; height: 24px; }

.portal-main { grid-column: 2; min-width: 0; padding: calc(var(--topbar) + 30px) 34px 36px; }
.page { max-width: 1440px; margin: 0 auto; animation: pageIn .22s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.page-heading h1 { margin: 0 0 7px; font-size: 27px; letter-spacing: -.03em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.btn { min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; font-size: 13px; }
.btn-primary { border-color: #6e31c7; background: linear-gradient(135deg, #6030c5, #4c24a8); box-shadow: 0 8px 22px rgba(78, 35, 173, .18); }
.btn-primary:hover { background: linear-gradient(135deg, #7239df, #5b2dc0); border-color: #8b4dff; }
.btn-cyan { border-color: #217ca0; background: #0a2634; color: #8cecff; }
.btn-danger { border-color: #7d3044; background: #30111a; color: #ff9aac; }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 33px; padding: 0 11px; font-size: 12px; }
.btn-block { width: 100%; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(8, 19, 33, .88); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.panel-header h2, .panel-header h3 { margin: 0; font-size: 15px; }
.panel-body { padding: 18px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.text-purple { color: #d279ff; }
.text-cyan { color: var(--cyan); }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }

.hero {
  min-height: 250px; border: 1px solid #233a55; border-radius: 13px; overflow: hidden; position: relative;
  background: radial-gradient(circle at 72% 50%, rgba(111, 57, 237, .33), transparent 24%), linear-gradient(112deg, #0b1727 0 43%, #0b1230 70%, #080c20 100%);
  display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; margin-bottom: 24px;
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(1px); background: #7c3cff; box-shadow: 0 0 22px currentColor; opacity: .65; }
.hero::before { width: 5px; height: 5px; right: 24%; top: 22%; }
.hero::after { width: 3px; height: 3px; right: 14%; top: 35%; color: #38d9ff; }
.hero-copy { padding: 38px; position: relative; z-index: 2; }
.hero-copy h2 { margin: 0 0 12px; font-size: 28px; }
.hero-copy p { max-width: 480px; color: #bec8d6; line-height: 1.65; font-size: 14px; }
.hero-actions { display: flex; gap: 10px; margin-top: 20px; }
.hero-art { height: 100%; position: relative; overflow: hidden; }
.hero-platform { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 330px; height: 70px; border-radius: 50%; background: radial-gradient(ellipse, #8b39f5, #35147a 35%, #0b1231 72%); box-shadow: 0 -15px 70px rgba(112, 37, 255, .55); }
.hero-logo { position: absolute; width: 180px; height: 180px; left: 50%; top: 43%; transform: translate(-50%, -50%); filter: drop-shadow(0 0 24px rgba(71, 224, 255, .35)) drop-shadow(0 0 42px rgba(137, 56, 255, .4)); }
.floating-cube { position: absolute; width: 34px; height: 34px; border: 2px solid #853cff; transform: rotate(30deg); background: rgba(86, 31, 184, .28); box-shadow: inset 0 0 16px rgba(142, 67, 255, .35), 0 0 18px rgba(118, 48, 255, .25); }
.cube-a { left: 18%; top: 35%; }
.cube-b { right: 13%; top: 45%; width: 26px; height: 26px; }
.cube-c { right: 24%; top: 24%; width: 18px; height: 18px; }

.section-row { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 13px; }
.section-row h2 { margin: 0; font-size: 16px; }
.link-btn { border: 0; background: transparent; padding: 0; color: #d477ff; font-weight: 700; font-size: 12px; cursor: pointer; }
.link-btn:hover { color: #ecb1ff; }
.project-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.project-card, .template-card, .market-card, .spotlight-card { border: 1px solid var(--line); background: #091521; border-radius: 10px; overflow: hidden; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.project-card:hover, .template-card:hover, .market-card:hover, .spotlight-card:hover { transform: translateY(-2px); border-color: #3e5e7d; box-shadow: 0 15px 36px rgba(0,0,0,.22); }
.project-thumb, .template-thumb, .market-thumb { height: 130px; position: relative; overflow: hidden; background: var(--thumb, linear-gradient(135deg, #1e3d52, #40277c)); }
.project-thumb::before, .template-thumb::before, .market-thumb::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 28% 25%, rgba(255,255,255,.16), transparent 18%), linear-gradient(0deg, rgba(4,9,16,.5), transparent 50%); }
.project-thumb::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 24px; right: -10px; bottom: -34px; transform: rotate(26deg); background: rgba(98, 53, 215, .36); box-shadow: -80px -8px 0 rgba(36, 210, 255, .08); }
.card-content { padding: 12px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-title { margin: 0; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { margin-top: 7px; font-size: 11px; color: var(--muted); }
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.card-actions .btn:first-child { flex: 1; }

.dashboard-lower { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; margin-top: 18px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-card { padding: 17px 12px; border: 1px solid var(--line); border-radius: 9px; text-align: center; background: #081522; cursor: pointer; }
.quick-card:hover { border-color: #7145a8; background: #0c1a2b; }
.quick-icon { width: 38px; height: 38px; margin: 0 auto 11px; display: grid; place-items: center; color: #b75cff; font-size: 28px; }
.quick-card strong { display: block; font-size: 12px; }
.quick-card span { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 6px; }
.news-list { display: grid; }
.news-item { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.news-item:last-child { border-bottom: 0; }
.news-thumb { width: 58px; height: 42px; border-radius: 7px; background: var(--thumb); }
.news-copy strong { font-size: 11px; display: block; }
.news-copy span { font-size: 10px; color: var(--muted); display: block; margin-top: 4px; }
.news-date { color: var(--muted); font-size: 10px; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.search-box { position: relative; min-width: 240px; flex: 1; max-width: 420px; }
.search-box svg { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: #d8e3ee; }
.search-box input, .field input, .field select, .field textarea, .select-control {
  width: 100%; min-height: 41px; border: 1px solid #31445a; border-radius: 8px; background: #07111e; color: var(--text); outline: none; padding: 0 41px 0 13px;
}
.search-box input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: #7c48cf; box-shadow: 0 0 0 3px rgba(124,72,207,.13); }
.field textarea { padding: 11px 13px; min-height: 92px; resize: vertical; }
.select-control { width: auto; padding-right: 34px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 12px; color: #bec8d4; font-size: 12px; }
.chip.active { background: #5f2eaa; border-color: #7b42d0; color: #fff; }

.project-table { width: 100%; border-collapse: collapse; }
.project-table th { text-align: left; color: var(--muted); font-size: 11px; font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.project-table td { padding: 10px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; font-size: 12px; }
.project-table tbody tr:hover { background: rgba(21, 45, 68, .35); }
.table-project { display: flex; align-items: center; gap: 13px; min-width: 260px; }
.table-thumb { width: 78px; height: 48px; border-radius: 7px; background: var(--thumb); flex: none; }
.table-project strong { display: block; font-size: 13px; }
.table-project span { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.privacy { display: inline-flex; align-items: center; gap: 6px; color: #c2ccd7; }
.collaborators { display: flex; align-items: center; }
.mini-avatar { width: 25px; height: 25px; border-radius: 50%; margin-left: -5px; border: 2px solid #091521; background: linear-gradient(135deg, #35d8ff, #7f46da); display: grid; place-items: center; font-size: 9px; font-weight: 800; }
.mini-avatar:first-child { margin-left: 0; }
.table-actions { display: flex; gap: 7px; justify-content: flex-end; }
.folder-row { display: grid; grid-template-columns: minmax(280px, 1fr) 130px 170px auto; align-items: center; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.folder-row:last-child { border-bottom: 0; }
.folder-name { display: flex; align-items: center; gap: 13px; }
.folder-icon { width: 36px; height: 28px; border-radius: 4px; background: var(--folder, #7845df); position: relative; }
.folder-icon::before { content: ""; position: absolute; width: 16px; height: 5px; left: 2px; top: -4px; border-radius: 3px 3px 0 0; background: inherit; }

.content-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
.filter-panel { padding: 16px; align-self: start; position: sticky; top: calc(var(--topbar) + 20px); }
.filter-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.filter-title strong { font-size: 12px; }
.filter-section { padding: 13px 0; border-top: 1px solid var(--line-soft); }
.filter-section:first-of-type { border-top: 0; }
.filter-section h3 { margin: 0 0 10px; font-size: 11px; }
.check-option, .radio-option { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: #c3ccd7; font-size: 11px; cursor: pointer; }
.check-option input, .radio-option input { accent-color: var(--purple); }
.template-grid, .market-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.template-card .card-content p, .market-card .card-content p { min-height: 34px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.tag { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 999px; background: #2b1745; color: #cf8fff; font-size: 9px; margin-top: 8px; }
.rating-row { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; margin-top: 10px; }

.docs-top-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.info-card { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #081522; }
.info-card-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #21144e; color: #a96bff; font-size: 21px; margin-bottom: 13px; }
.info-card h3 { margin: 0; font-size: 13px; }
.info-card p { margin: 8px 0 12px; min-height: 34px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.docs-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr) 210px; gap: 14px; }
.docs-nav, .docs-aside { padding: 14px; align-self: start; position: sticky; top: calc(var(--topbar) + 20px); }
.docs-nav h3, .docs-aside h3 { margin: 0 0 12px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.docs-link { display: block; width: 100%; border: 0; border-radius: 6px; padding: 7px 9px; background: transparent; color: #b9c4d0; font-size: 11px; text-align: left; cursor: pointer; }
.docs-link:hover, .docs-link.active { background: #42227b; color: #fff; }
.docs-group { margin: 12px 0 5px; padding: 0 7px; color: #fff; font-size: 11px; font-weight: 700; }
.docs-article { padding: 26px; min-height: 650px; }
.breadcrumbs { color: #69d9ff; font-size: 10px; padding-bottom: 15px; border-bottom: 1px solid var(--line-soft); }
.docs-article h2 { font-size: 24px; margin: 20px 0 12px; }
.docs-article h3 { margin: 25px 0 10px; font-size: 16px; }
.docs-article p { color: #b4bfcb; font-size: 12px; line-height: 1.7; }
.callout { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 17px; margin: 18px 0; border: 1px solid #4b2c88; border-radius: 9px; background: linear-gradient(90deg, rgba(47, 24, 90, .66), rgba(26, 18, 61, .6)); }
.code-block { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: #050d17; font-family: "JetBrains Mono", monospace; font-size: 11px; line-height: 1.75; color: #ced8e4; white-space: pre-wrap; }
.code-block .kw { color: #ff5ab7; }.code-block .fn { color: #6ee7ff; }.code-block .str { color: #a7e86d; }.code-block .num { color: #ffb557; }
.aside-list { display: grid; gap: 9px; }
.aside-list button { border: 0; background: transparent; color: #b7c2cf; padding: 0; text-align: left; font-size: 10px; cursor: pointer; }
.aside-list button:hover { color: #d686ff; }

.market-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 16px; }
.market-categories { display: flex; align-items: center; gap: 5px; overflow-x: auto; padding: 10px 12px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 9px; background: #081522; }
.market-category { white-space: nowrap; border: 0; background: transparent; color: #bbc6d1; padding: 8px 10px; border-radius: 7px; font-size: 11px; cursor: pointer; }
.market-category.active, .market-category:hover { background: #5329a0; color: #fff; }
.market-featured { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.market-sidebar { display: grid; gap: 12px; align-self: start; position: sticky; top: calc(var(--topbar) + 20px); }
.create-card { padding: 16px; border-color: #6233a4; background: linear-gradient(145deg, #241446, #11142c); }
.create-card h3 { margin: 0 0 8px; font-size: 13px; }
.create-card p { color: var(--muted); font-size: 10px; line-height: 1.6; }
.rank-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.rank-item { display: grid; grid-template-columns: 20px 45px 1fr auto; align-items: center; gap: 9px; padding: 8px 0; }
.rank-thumb { width: 45px; height: 35px; border-radius: 5px; background: var(--thumb); }
.rank-copy strong { display: block; font-size: 10px; }.rank-copy span { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }

.team-grid, .learn-grid, .community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.large-info-card { padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #091723; }
.large-info-card .info-card-icon { width: 44px; height: 44px; }
.large-info-card h3 { margin: 0; font-size: 16px; }.large-info-card p { min-height: 48px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.step-band { padding: 20px; margin: 18px 0; border: 1px solid #34337a; border-radius: 10px; background: #131834; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.step-number { width: 28px; height: 28px; border-radius: 50%; background: #6b39bd; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.step strong { font-size: 11px; color: #dc8dff; }.step p { margin: 6px 0 0; color: #c0c8d2; font-size: 10px; line-height: 1.6; }
.feature-table { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.feature-cell { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 17px; border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); }
.feature-cell:nth-child(even) { border-right: 0; }.feature-cell:nth-last-child(-n+2) { border-bottom: 0; }
.feature-cell h4 { margin: 0; font-size: 11px; }.feature-cell p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.learn-layout, .community-layout, .updates-layout, .status-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; }
.aside-stack { display: grid; gap: 13px; align-self: start; position: sticky; top: calc(var(--topbar) + 20px); }
.tutorial-list, .discussion-list, .update-list { overflow: hidden; }
.list-row { display: grid; grid-template-columns: 145px minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 10px; border-bottom: 1px solid var(--line-soft); }
.list-row:last-child { border-bottom: 0; }
.list-thumb { width: 145px; height: 72px; border-radius: 7px; background: var(--thumb); }
.list-copy strong { display: block; font-size: 12px; }.list-copy p { margin: 5px 0; color: var(--muted); font-size: 10px; }.list-copy span { color: #5ce57f; font-size: 10px; }
.play-circle { width: 32px; height: 32px; border: 2px solid #b45cff; border-radius: 50%; display: grid; place-items: center; color: #d68bff; }
.discussion-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.discussion-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #4b267e; font-weight: 700; }
.discussion-copy strong { font-size: 11px; }.discussion-copy p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.discussion-meta { text-align: right; color: var(--muted); font-size: 9px; }
.spotlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.spotlight-image { height: 105px; background: var(--thumb); }

.release-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 205px; border: 1px solid #494293; border-radius: 10px; background: linear-gradient(120deg, #1f214f, #151431 60%, #1a1644); overflow: hidden; }
.release-copy { padding: 24px; }.release-copy h2 { font-size: 24px; margin: 13px 0; }.release-copy p { color: #d3d6e0; font-size: 12px; line-height: 1.65; }
.release-art { display: grid; place-items: center; position: relative; }
.release-art img { width: 145px; filter: drop-shadow(0 0 30px rgba(139,77,255,.55)); }
.update-row { display: grid; grid-template-columns: 65px 1fr 36px; gap: 18px; align-items: center; padding: 17px; border-bottom: 1px solid var(--line-soft); }
.update-icon { width: 65px; height: 65px; border-radius: 9px; display: grid; place-items: center; background: #0e2c42; color: #45d9ff; font-size: 31px; }
.update-copy h3 { margin: 0 0 7px; font-size: 14px; }.update-copy p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }.update-copy span { display: block; margin-top: 8px; color: #98a7b8; font-size: 9px; }
.status-summary { display: flex; align-items: center; justify-content: space-between; padding: 18px; border: 1px solid #256e69; border-radius: 10px; background: #0a2029; }
.status-summary-main { display: flex; align-items: center; gap: 14px; }
.status-check { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #03130a; font-size: 25px; }
.status-summary h2 { margin: 0; font-size: 16px; }.status-summary p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.service-group { margin-top: 18px; }.service-group h3 { font-size: 13px; margin: 0 0 9px; }
.service-row { display: grid; grid-template-columns: 28px 1fr auto 18px; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.service-row:last-child { border-bottom: 0; }.service-icon { width: 21px; height: 21px; border-radius: 50%; background: var(--green); display: grid; place-items: center; color: #04160b; font-size: 13px; }.service-copy strong { font-size: 10px; }.service-copy span { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }.service-state { color: var(--green); font-size: 9px; font-weight: 700; }
.metric { display: flex; align-items: baseline; justify-content: space-between; margin: 13px 0; }.metric strong { color: var(--green); font-size: 18px; }.metric span { color: var(--muted); font-size: 9px; }

.empty-state { padding: 50px 20px; text-align: center; color: var(--muted); }
.empty-state svg { font-size: 40px; color: #56677a; }.empty-state h3 { color: #e7edf4; font-size: 15px; margin: 13px 0 7px; }.empty-state p { font-size: 11px; }
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; font-size: 9px; font-weight: 700; border: 1px solid #3d5871; color: #aab9c7; background: #0b1928; }
.badge-purple { border-color: #603995; color: #d89bff; background: #26153b; }.badge-green { border-color: #23613f; color: #6cef9b; background: #0d2a1b; }.badge-blue { border-color: #256483; color: #68d8ff; background: #0b2734; }.badge-amber { border-color: #6b5721; color: #ffd364; background: #2d250c; }

.modal-backdrop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(1,5,10,.78); backdrop-filter: blur(8px); animation: fade .16s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(620px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; border: 1px solid #354c67; border-radius: 14px; background: #081421; box-shadow: var(--shadow); animation: modalIn .2s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }
.modal-header h2 { margin: 0; font-size: 20px; }.modal-header p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.modal-body { padding: 22px; }.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.field { display: grid; gap: 7px; }.field.full { grid-column: 1 / -1; }.field label { color: #ccd5df; font-size: 11px; font-weight: 600; }.field small { color: var(--muted-2); font-size: 9px; }
.template-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }.template-option { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #07111d; cursor: pointer; }.template-option.active { border-color: #8b4dff; background: #1f1438; box-shadow: 0 0 0 2px rgba(139,77,255,.12); }.template-option-preview { height: 55px; border-radius: 6px; background: var(--thumb); margin-bottom: 9px; }.template-option strong { font-size: 10px; }
.toast-root { position: fixed; z-index: 300; right: 20px; bottom: 20px; display: grid; gap: 10px; pointer-events: none; }
.toast { min-width: 280px; max-width: 390px; display: grid; grid-template-columns: 25px 1fr; gap: 11px; padding: 14px 16px; border: 1px solid #36516d; border-radius: 10px; background: #0a1725; box-shadow: var(--shadow); animation: toastIn .22s ease; pointer-events: auto; }
@keyframes toastIn { from { opacity: 0; transform: translateX(12px); } }.toast.success { border-color: #256f48; }.toast.error { border-color: #7c3045; }.toast strong { display: block; font-size: 11px; }.toast span { display: block; color: var(--muted); font-size: 9px; margin-top: 4px; line-height: 1.4; }

/* Editor */
.editor-shell { height: 100vh; min-width: 950px; display: grid; grid-template-rows: 46px 35px 78px minmax(0, 1fr) 24px; overflow: hidden; background: #030912; }
.editor-titlebar { display: grid; grid-template-columns: 250px 1fr 330px; align-items: center; border-bottom: 1px solid #172b3d; background: #050d17; }
.editor-brand { height: 100%; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-right: 1px solid var(--line-soft); font-weight: 800; font-size: 13px; }.editor-brand img { width: 27px; height: 27px; }
.editor-project-title { display: flex; align-items: center; justify-content: center; gap: 8px; color: #cbd5df; font-size: 11px; }.unsaved-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.editor-account { height: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 12px; }.editor-account .avatar { width: 28px; height: 28px; font-size: 9px; }.editor-account strong { font-size: 10px; }.editor-account span { font-size: 8px; color: var(--muted); display: block; }
.editor-menu { display: flex; align-items: stretch; gap: 2px; padding: 0 9px; border-bottom: 1px solid #172b3d; background: #06101a; }
.menu-btn { border: 0; border-radius: 0; background: transparent; padding: 0 12px; font-size: 10px; font-weight: 700; color: #c3ced9; }
.menu-btn:hover, .menu-btn.active { background: #101d2a; color: #fff; }.menu-btn.active { box-shadow: inset 0 -2px #8b4dff; }
.editor-ribbon { display: flex; align-items: stretch; border-bottom: 1px solid #1b3147; background: #081420; overflow-x: auto; }
.ribbon-group { display: flex; align-items: center; gap: 3px; padding: 7px 10px; border-right: 1px solid var(--line-soft); }.ribbon-label { align-self: flex-end; color: #67798b; font-size: 8px; margin: 0 4px 3px 0; }
.tool-btn { min-width: 48px; height: 61px; padding: 7px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border-color: transparent; background: transparent; font-size: 9px; color: #c8d1db; }.tool-btn svg { font-size: 20px; }.tool-btn:hover { border-color: #29415a; background: #0d1c2b; }.tool-btn.active { background: #241748; border-color: #7145bd; color: #e2c9ff; }.tool-btn.compact { min-width: 37px; }.tool-btn.play { color: #62e995; }.tool-btn.stop { color: #ff7990; }.tool-btn.publish { color: #d989ff; }
.editor-workspace { min-height: 0; display: grid; grid-template-columns: 235px minmax(420px, 1fr) 300px; grid-template-rows: minmax(300px, 1fr) 230px; gap: 1px; background: #183047; }
.dock { min-width: 0; min-height: 0; background: #07111b; overflow: hidden; }
.dock-header { height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-bottom: 1px solid #1a2e41; background: #091621; font-size: 10px; font-weight: 700; }.dock-header-actions { display: flex; gap: 2px; }.dock-icon-btn { width: 25px; height: 25px; border: 0; border-radius: 5px; background: transparent; color: #8697a8; display: grid; place-items: center; cursor: pointer; }.dock-icon-btn:hover { background: #122537; color: #fff; }
.toolbox-dock { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; }.toolbox-search { padding: 8px; border-bottom: 1px solid var(--line-soft); }.toolbox-search .search-box { min-width: 0; max-width: none; }.toolbox-search input { min-height: 34px; font-size: 10px; }
.toolbox-tabs { display: flex; gap: 3px; padding: 6px 8px; border-bottom: 1px solid var(--line-soft); overflow-x: auto; }.toolbox-tab { border: 0; border-radius: 5px; padding: 6px 8px; background: transparent; color: #93a3b4; font-size: 9px; cursor: pointer; white-space: nowrap; }.toolbox-tab.active, .toolbox-tab:hover { background: #2f1b58; color: #dfbdff; }
.asset-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; align-content: start; padding: 8px; }.asset-card { padding: 7px; border: 1px solid #1d3448; border-radius: 7px; background: #0a1723; cursor: grab; }.asset-card:hover { border-color: #5d3f92; background: #0d1c2b; }.asset-preview { height: 67px; border-radius: 5px; background: var(--thumb); position: relative; overflow: hidden; }.asset-preview::after { content: ""; position: absolute; inset: 15px 23px; background: rgba(255,255,255,.16); transform: rotate(25deg); border: 1px solid rgba(255,255,255,.2); }.asset-card strong { display: block; margin-top: 6px; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.asset-card span { color: var(--muted); font-size: 8px; }
.viewport-dock { grid-column: 2; grid-row: 1; position: relative; background: #101924; }.viewport-toolbar { position: absolute; z-index: 4; top: 10px; left: 10px; display: flex; gap: 6px; }.viewport-tool { height: 30px; border: 1px solid rgba(99,131,160,.4); border-radius: 7px; background: rgba(5,13,23,.82); backdrop-filter: blur(8px); color: #cbd6e0; padding: 0 9px; display: flex; align-items: center; gap: 6px; font-size: 9px; cursor: pointer; }.viewport-tool:hover { background: #0d1b2a; border-color: #6b4e97; }.viewport-mode { position: absolute; z-index: 4; top: 10px; right: 10px; display: flex; gap: 5px; }.viewport-mode .icon-btn { width: 31px; height: 31px; background: rgba(5,13,23,.82); }.viewport-hint { position: absolute; z-index: 4; left: 12px; bottom: 12px; padding: 7px 10px; border: 1px solid rgba(84,115,144,.32); border-radius: 7px; background: rgba(4,10,18,.72); color: #8294a5; font-size: 8px; pointer-events: none; }
#viewport-canvas { width: 100%; height: 100%; display: block; cursor: default; background: #121b25; }.viewport-dock[data-tool="select"] #viewport-canvas { cursor: default; }.viewport-dock[data-tool="move"] #viewport-canvas { cursor: move; }
.play-overlay { position: absolute; inset: 0; z-index: 5; display: none; place-items: center; pointer-events: none; background: linear-gradient(180deg, rgba(5,10,16,.06), rgba(3,8,14,.2)); }.play-overlay.active { display: grid; }.play-chip { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); padding: 8px 13px; border: 1px solid #2b8452; border-radius: 999px; background: rgba(8,42,25,.88); color: #78f2a6; font-size: 9px; font-weight: 700; }
.right-docks { grid-column: 3; grid-row: 1 / 3; display: grid; grid-template-rows: minmax(210px, .9fr) minmax(260px, 1.1fr); gap: 1px; background: #183047; min-height: 0; }.explorer, .properties { display: flex; flex-direction: column; }.tree { flex: 1; overflow: auto; padding: 5px 0; }.tree-row { height: 26px; display: flex; align-items: center; gap: 5px; padding-right: 7px; color: #c0cad5; font-size: 9px; cursor: pointer; user-select: none; }.tree-row:hover { background: #0d1e2c; }.tree-row.selected { background: #38206b; color: #fff; }.tree-row .twisty { width: 14px; text-align: center; color: #708296; }.tree-row .tree-icon { color: #78cfff; }.tree-row .tree-actions { margin-left: auto; display: none; }.tree-row:hover .tree-actions { display: flex; }.tree-children { display: block; }.tree-children.collapsed { display: none; }
.properties-body { flex: 1; overflow-y: auto; }.prop-section { border-bottom: 1px solid var(--line-soft); }.prop-title { height: 29px; display: flex; align-items: center; gap: 6px; padding: 0 9px; background: #091722; color: #cbd5df; font-size: 9px; font-weight: 700; cursor: pointer; }.prop-grid { display: grid; grid-template-columns: 90px minmax(0,1fr); align-items: center; }.prop-label, .prop-value { min-height: 29px; padding: 5px 8px; border-top: 1px solid rgba(87,116,142,.11); font-size: 8px; }.prop-label { color: #8fa0b1; border-right: 1px solid rgba(87,116,142,.12); }.prop-value input, .prop-value select { width: 100%; min-height: 21px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #d9e1e8; padding: 2px 5px; font-size: 8px; outline: none; }.prop-value input:hover, .prop-value input:focus, .prop-value select:hover, .prop-value select:focus { border-color: #36516b; background: #06101a; }.vector-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }.colour-input { display: grid; grid-template-columns: 24px 1fr; gap: 5px; }.colour-input input[type="color"] { padding: 0; min-height: 22px; border: 0; }.prop-toggle { width: 28px; height: 16px; border: 0; border-radius: 999px; background: #2a3948; position: relative; cursor: pointer; }.prop-toggle::after { content: ""; position: absolute; width: 12px; height: 12px; left: 2px; top: 2px; border-radius: 50%; background: #94a4b4; transition: .16s; }.prop-toggle.active { background: #5b2cb0; }.prop-toggle.active::after { left: 14px; background: #fff; }
.bottom-dock { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; }.bottom-tabs { height: 34px; display: flex; align-items: stretch; border-bottom: 1px solid #1a2e41; background: #091621; }.bottom-tab { border: 0; border-right: 1px solid var(--line-soft); background: transparent; color: #8fa0b1; padding: 0 13px; font-size: 9px; cursor: pointer; }.bottom-tab.active { color: #fff; background: #0d1c29; box-shadow: inset 0 2px #8b4dff; }.bottom-content { flex: 1; min-height: 0; overflow: auto; }.output-console { padding: 8px 10px; font-family: "JetBrains Mono", monospace; font-size: 8px; line-height: 1.65; }.console-row { display: grid; grid-template-columns: 62px 45px 1fr; gap: 9px; padding: 3px 0; color: #aebbc8; }.console-time { color: #62768a; }.console-type.info { color: #5edcff; }.console-type.success { color: #62e78d; }.console-type.warning { color: #ffc65d; }.console-type.error { color: #ff7189; }
.script-editor { height: 100%; display: grid; grid-template-rows: 29px minmax(0,1fr); background: #07101a; }.script-tabs { display: flex; align-items: stretch; border-bottom: 1px solid #1c3042; }.script-tab { border: 0; border-right: 1px solid var(--line-soft); background: #0a1622; color: #a7b4c1; padding: 0 11px; font-size: 8px; cursor: pointer; }.script-tab.active { background: #0d1a28; color: #fff; border-top: 2px solid #b05cff; }.script-area { display: grid; grid-template-columns: 42px minmax(0,1fr); min-height: 0; font-family: "JetBrains Mono", monospace; font-size: 10px; line-height: 1.7; }.line-numbers { padding: 9px 8px; overflow: hidden; text-align: right; color: #4f6275; background: #050c15; white-space: pre; border-right: 1px solid #172b3c; }.script-textarea { width: 100%; height: 100%; resize: none; border: 0; outline: 0; padding: 9px 12px; background: #07101a; color: #d1d9e1; font-family: inherit; font-size: inherit; line-height: inherit; tab-size: 2; white-space: pre; overflow: auto; }
.editor-statusbar { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-top: 1px solid #183047; background: #06101a; color: #728496; font-size: 8px; }.editor-status-left, .editor-status-right { display: flex; align-items: center; gap: 14px; }.sync-indicator { color: #61df8e; }

.context-menu { position: fixed; z-index: 250; min-width: 180px; padding: 5px; border: 1px solid #37506a; border-radius: 8px; background: #0a1724; box-shadow: var(--shadow); }.context-item { width: 100%; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent; color: #c9d3dd; font-size: 9px; text-align: left; cursor: pointer; }.context-item:hover { background: #1b2d3f; color: #fff; }.context-item.danger { color: #ff8195; }.context-divider { height: 1px; background: var(--line-soft); margin: 4px; }

.mobile-editor-warning { display: none; }

@media (max-width: 1280px) {
  :root { --sidebar: 218px; }
  .project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .template-grid, .market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .market-featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .docs-layout { grid-template-columns: 190px minmax(0, 1fr); }.docs-aside { display: none; }
  .editor-workspace { grid-template-columns: 210px minmax(390px, 1fr) 270px; }
}
@media (max-width: 1020px) {
  :root { --sidebar: 76px; }
  .brand { padding: 0 18px; }.brand span, .nav-item span, .upgrade-card, .status-pill span, .sidebar-footer span { display: none; }.nav-item { justify-content: center; padding: 12px; }.nav-item svg { font-size: 21px; }.status-pill { justify-content: center; }.sidebar-footer { justify-content: center; }.portal-main { padding-left: 24px; padding-right: 24px; }
  .project-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }.dashboard-lower { grid-template-columns: 1fr; }.content-layout { grid-template-columns: 190px minmax(0,1fr); }.template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.market-layout, .learn-layout, .community-layout, .updates-layout, .status-layout { grid-template-columns: 1fr; }.market-sidebar, .aside-stack { position: static; grid-template-columns: repeat(2,1fr); }.docs-top-cards { grid-template-columns: repeat(2,1fr); }.docs-layout { grid-template-columns: 1fr; }.docs-nav { position: static; display: none; }.market-featured { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 720px) {
  :root { --sidebar: 0px; --topbar: 58px; }
  .portal-shell { display: block; }.brand { width: auto; border: 0; }.sidebar { display: none; }.topbar-content { padding: 0 12px; }.profile-text { display: none; }.portal-main { padding: calc(var(--topbar) + 20px) 14px 24px; }.page-header { display: grid; }.header-actions { justify-content: flex-start; }.hero { grid-template-columns: 1fr; }.hero-copy { padding: 25px; }.hero-art { display: none; }.project-grid, .template-grid, .market-grid, .market-featured, .team-grid, .learn-grid, .community-grid, .spotlight-grid, .docs-top-cards { grid-template-columns: 1fr 1fr; }.content-layout { grid-template-columns: 1fr; }.filter-panel { position: static; display: none; }.project-table th:nth-child(2), .project-table td:nth-child(2), .project-table th:nth-child(3), .project-table td:nth-child(3) { display: none; }.folder-row { grid-template-columns: 1fr auto; }.folder-row > :nth-child(2), .folder-row > :nth-child(3) { display: none; }.market-sidebar, .aside-stack { grid-template-columns: 1fr; }.rank-list { grid-template-columns: 1fr; }.feature-table { grid-template-columns: 1fr; }.feature-cell { border-right: 0; }.feature-cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-soft); }.feature-cell:last-child { border-bottom: 0; }.steps { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; }.field.full { grid-column: auto; }.template-picker { grid-template-columns: 1fr 1fr; }.list-row { grid-template-columns: 80px 1fr auto; }.list-thumb { width: 80px; height: 52px; }
}
@media (max-width: 480px) {
  .project-grid, .template-grid, .market-grid, .market-featured, .docs-top-cards, .spotlight-grid { grid-template-columns: 1fr; }.brand span { display: inline; }.topbar-content .icon-btn:first-child { display: none; }.hero-copy h2 { font-size: 23px; }.quick-grid { grid-template-columns: 1fr; }.template-picker { grid-template-columns: 1fr; }
}
@media (max-width: 949px) {
  .editor-shell { display: none; }
  .mobile-editor-warning { min-height: 100vh; padding: 28px; display: grid; place-items: center; text-align: center; background: #050c16; }
  .mobile-editor-warning img { width: 72px; }.mobile-editor-warning h1 { margin: 20px 0 10px; }.mobile-editor-warning p { max-width: 480px; color: var(--muted); line-height: 1.6; }
}

/* ESB Studio main creation workspace v0.2 */
.studio-shell { height:100vh; min-width:1120px; display:grid; grid-template-rows:50px 98px minmax(0,1fr); overflow:hidden; color:#f5f7fb; background:#07111c; --studio-line:#223548; --studio-soft:#18293a; --studio-panel:#132231; --studio-deep:#08131f; --studio-purple:#6842d9; }
.studio-shell button,.studio-shell input,.studio-shell select,.studio-shell textarea { font:inherit; }
.studio-shell button { cursor:pointer; }
.studio-topbar { display:grid; grid-template-columns:185px minmax(420px,1fr) 190px 180px; align-items:center; border-bottom:1px solid #17283a; background:#06101a; }
.studio-brand { height:100%; display:flex; align-items:center; gap:12px; padding:0 16px; border:0; background:transparent; color:#fff; font-size:16px; font-weight:800; letter-spacing:.01em; }
.studio-brand img { width:34px; height:34px; filter:hue-rotate(55deg) saturate(1.25); }
.studio-menu-bar { display:flex; align-items:stretch; height:100%; }
.studio-menu-bar button { min-width:54px; padding:0 14px; border:0; background:transparent; color:#f0f2f6; font-size:12px; font-weight:700; }
.studio-menu-bar button:hover { background:#111f2e; }
.studio-project-meta { display:flex; flex-direction:column; align-items:flex-end; padding-right:14px; min-width:0; }
.studio-project-meta strong { max-width:170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.studio-project-meta span { margin-top:2px; color:#8fa0b2; font-size:9px; }
.studio-title-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; padding-right:9px; }
.studio-icon-button { width:31px; height:31px; display:grid; place-items:center; border:0; border-radius:6px; background:transparent; color:#cbd4df; }
.studio-icon-button:hover { background:#17283a; color:#fff; }
.studio-icon-button svg { width:17px; height:17px; }
.studio-publish { height:32px; min-width:70px; border:1px solid #704be2; border-radius:6px; background:linear-gradient(180deg,#6c48d9,#5431b3); color:#fff; font-size:11px; font-weight:800; }
.studio-publish:hover { filter:brightness(1.12); }
.studio-commandbar { display:grid; grid-template-columns:138px minmax(660px,1fr) 420px; gap:8px; padding:0 8px 8px 78px; border-bottom:1px solid #1b2f43; background:#07121e; }
.command-group { position:relative; min-width:0; display:flex; align-items:center; gap:3px; padding:18px 10px 6px; border:1px solid #20364a; border-radius:7px; background:#122130; }
.command-caption { position:absolute; top:7px; left:10px; color:#8090a1; font-size:7px; letter-spacing:.05em; }
.command-tool { min-width:56px; height:68px; padding:7px 5px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; border:1px solid transparent; border-radius:6px; background:transparent; color:#f5f7fa; font-size:10px; }
.command-tool>svg { width:23px; height:23px; }
.command-tool span { display:flex; align-items:center; gap:3px; white-space:nowrap; }
.command-tool span svg { width:10px; height:10px; }
.command-tool:hover,.command-tool.active { border-color:#2d4260; background:#1b2a45; }
.command-tool.active { background:#241f58; border-color:#4b3ca0; }
.command-green svg { color:#42d887; fill:#42d88722; }
.command-play { justify-content:space-around; }
.command-play .command-tool { min-width:50px; }
.command-tools { overflow:visible; }
.command-other { justify-content:space-evenly; }
.wide-command { height:52px; display:flex; align-items:center; justify-content:center; gap:10px; padding:0 14px; border:0; border-right:1px solid #213448; background:transparent; color:#f1f3f7; font-size:10px; font-weight:700; }
.wide-command:last-child { border-right:0; }
.wide-command:hover,.wide-command.active { background:#18263c; color:#fff; }
.wide-command svg { width:20px; height:20px; color:#8c50ff; }
.part-menu-wrap { position:relative; }
.studio-part-menu { position:absolute; z-index:180; top:66px; right:-12px; width:170px; padding:7px; border:1px solid #2a4058; border-radius:7px; background:#122130; box-shadow:0 20px 45px rgba(0,0,0,.42); }
.studio-part-menu button { width:100%; display:flex; align-items:center; gap:10px; padding:8px 9px; border:0; border-radius:5px; background:transparent; color:#eef2f7; font-size:11px; text-align:left; }
.studio-part-menu button:hover { background:#1d3045; }
.studio-part-menu button svg { width:18px; height:18px; color:#d6d9ef; }
.part-menu-divider { height:1px; margin:5px 0; background:#2b3e52; }
.studio-layout { min-height:0; display:grid; grid-template-columns:74px 326px minmax(430px,1fr) 370px; gap:1px; background:#203346; }
.studio-rail,.studio-left,.studio-centre,.studio-right { min-width:0; min-height:0; background:#132231; overflow:hidden; }
.studio-rail { display:flex; flex-direction:column; justify-content:space-between; background:linear-gradient(180deg,#07121d,#081523 68%,#07121d); }
.rail-items { display:grid; gap:3px; padding:8px 7px; }
.rail-button { min-height:54px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:5px 3px; border:0; border-radius:7px; background:transparent; color:#c5d2e1; font-size:7.3px; font-weight:700; line-height:1.18; text-align:center; letter-spacing:.01em; }
.rail-button svg { width:19px; height:19px; color:#8a96b8; }
.rail-button:hover { background:#112033; color:#ecf3ff; }
.rail-button:hover svg { color:#b58cff; }
.rail-button.active { background:#2c235f; color:#ffffff; box-shadow: inset 0 0 0 1px rgba(150,112,255,.15); }
.rail-button.active svg { color:#a56cff; }
.rail-account { position:relative; display:grid; justify-items:center; gap:6px; padding:10px 0 11px; }
.rail-avatar { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(135deg,#56d9ff,#7c4cff); color:#06111c; font-size:10px; font-weight:900; border:2px solid #19334b; }
.rail-online { position:absolute; width:9px; height:9px; right:14px; top:33px; border:2px solid #07121e; border-radius:50%; background:#39d67e; }
.rail-account button { width:24px; height:24px; display:grid; place-items:center; border:0; background:transparent; color:#c2cfe0; }
.studio-left { display:flex; flex-direction:column; }
.studio-panel-heading { flex:0 0 45px; display:flex; align-items:center; justify-content:space-between; padding:0 14px; border-bottom:1px solid #24384b; background:#132231; }
.studio-panel-heading strong { font-size:14px; font-weight:800; }
.studio-panel-search { padding:8px 12px; }
.studio-panel-search label { height:32px; display:flex; align-items:center; gap:9px; padding:0 10px; border:1px solid #203347; border-radius:4px; background:#08131f; color:#aebaca; }
.studio-panel-search svg { width:16px; height:16px; }
.studio-panel-search input { min-width:0; flex:1; border:0; outline:0; background:transparent; color:#dae1e8; font-size:10px; }
.explorer-chips { display:flex; flex-wrap:wrap; gap:6px; padding:10px 12px 4px; }
.explorer-chips button { min-height:30px; padding:0 12px; border:1px solid #263c50; border-radius:4px; background:#0f1c2a; color:#eef2f7; font-size:9px; }
.explorer-chips button:hover,.explorer-chips button.active { border-color:#4a3b9e; background:#29205d; }
.explorer-chips button:last-child { width:34px; padding:0; }
.studio-tree { flex:1; min-height:0; overflow:auto; padding:3px 0 12px; }
.studio-tree-row { width:100%; min-height:30px; display:grid; grid-template-columns:15px 16px minmax(0,1fr) 19px; align-items:center; gap:6px; padding:0 10px 0 calc(11px + var(--indent,0)*19px); border:0; background:transparent; color:#eef2f6; font-size:10px; text-align:left; }
.studio-tree-row:hover { background:#1a2b3d; }
.studio-tree-row.selected { background:#302763; }
.studio-tree-row svg { width:14px; height:14px; color:#9ddcff; }
.studio-tree-row i,.studio-tree-row button { display:grid; place-items:center; border:0; background:transparent; color:#dce4ed; }
.studio-tree-row.root { grid-template-columns:15px 16px minmax(0,1fr) 19px; }
.folder-row-mini { color:#fff; }
.studio-tree-empty { padding:25px 20px; color:#718397; font-size:10px; }
.studio-centre { display:flex; flex-direction:column; background:#0c1825; }
.workspace-tabs { flex:0 0 40px; display:flex; align-items:stretch; border-bottom:1px solid #25394d; background:#132231; }
.workspace-tabs button { min-width:120px; display:flex; align-items:center; gap:9px; padding:0 14px; border:0; border-right:1px solid #263a4d; background:transparent; color:#cfd7e0; font-size:10px; }
.workspace-tabs button.active { background:#192b3d; color:#fff; }
.workspace-tabs button span { margin-left:auto; }
.workspace-tabs button svg { width:15px; height:15px; color:#a597e9; }
.world-stack { min-height:0; flex:1; display:grid; grid-template-rows:minmax(300px,1.7fr) minmax(220px,.9fr); gap:1px; background:#263b50; }
.studio-viewport { position:relative; min-height:0; overflow:hidden; background:#0f1924; }
.studio-viewport canvas { width:100%; height:100%; display:block; }
.viewport-corner-tools { position:absolute; z-index:5; left:10px; top:10px; display:flex; gap:6px; }
.viewport-corner-tools button,.advanced-toolbar button,.vfx-toolbar button { min-height:30px; padding:0 10px; border:1px solid #2a4258; border-radius:4px; background:rgba(8,19,31,.88); color:#e3e8ef; font-size:9px; }
.viewport-cube { position:absolute; z-index:5; top:22px; right:21px; width:48px; height:48px; display:grid; place-items:center; border:1px solid #5d6874; background:linear-gradient(135deg,#5d6570,#303a46); color:#101820; font-size:8px; transform:skewY(-8deg); opacity:.9; }
.viewport-cube b { position:absolute; top:-20px; color:#4ce27f; font-size:14px; }
.viewport-cube i { position:absolute; left:-18px; bottom:-7px; color:#ff504f; font-style:normal; font-size:14px; }
.viewport-cube em { position:absolute; right:-18px; bottom:-7px; color:#3c9cff; font-style:normal; font-size:14px; }
.mini-code-console { min-height:0; display:grid; grid-template-columns:minmax(0,1.45fr) minmax(260px,.75fr); gap:1px; background:#263b50; }
.mini-code,.mini-console { min-height:0; background:#132231; overflow:hidden; }
.mini-tabs { height:36px; display:flex; border-bottom:1px solid #263a4e; }
.mini-tabs button { display:flex; align-items:center; gap:8px; padding:0 13px; border:0; border-right:1px solid #263a4e; background:transparent; color:#dce3ea; font-size:10px; }
.mini-tabs button.active { background:#192a3b; }
.embedded-code { height:calc(100% - 36px); min-height:0; display:grid; grid-template-columns:42px minmax(0,1fr); background:#0e1b29; }
.embedded-lines { padding:10px 8px; color:#5f7488; font:9px/1.55 Consolas,monospace; text-align:right; background:#0a1521; }
.embedded-code textarea { width:100%; height:100%; padding:10px; border:0; resize:none; outline:0; background:#0e1b29; color:#d7dde6; font:9px/1.55 Consolas,monospace; }
.mini-console-head { height:36px; display:flex; align-items:center; justify-content:space-between; padding:0 12px; border-bottom:1px solid #263a4e; }
.mini-console-head strong { font-size:11px; }
.mini-console-head button { border:0; border-radius:4px; background:#222653; color:#fff; padding:5px 8px; font-size:8px; }
.console-filters { display:flex; gap:10px; align-items:center; padding:8px 12px 4px; }
.console-filters button { border:0; background:transparent; color:#ffb33b; font-size:10px; }
.console-filters button.active { padding:6px 12px; border-radius:4px; background:#2c2465; color:#fff; }
.compact-logs { padding:4px 12px; overflow:auto; color:#b2bfcc; font:9px/1.65 Consolas,monospace; }
.compact-logs div { display:flex; gap:9px; }
.compact-logs time { color:#74889d; }
.studio-right { display:flex; flex-direction:column; transition:box-shadow .2s; }
.studio-right.focus-flash { box-shadow:inset 0 0 0 2px #8356ff,0 0 28px rgba(112,74,224,.32); }
.studio-properties-body { flex:1; min-height:0; overflow:auto; }
.studio-prop-section { border-top:1px solid #263a4c; padding:0 13px 12px; }
.studio-prop-section h3 { margin:0 -1px 7px; padding:13px 0 8px; color:#f0f3f7; font-size:10px; }
.studio-prop-row { min-height:36px; display:grid; grid-template-columns:105px minmax(0,1fr); align-items:center; gap:9px; color:#9facba; font-size:9px; }
.studio-prop-row>label { color:#aeb9c6; }
.studio-prop-row input:not([type=checkbox]):not([type=range]),.studio-prop-row select { width:100%; height:27px; padding:0 8px; border:1px solid #172a3b; border-radius:3px; outline:0; background:#091521; color:#eef2f6; font-size:9px; }
.studio-prop-row input[type=checkbox] { width:14px; height:14px; accent-color:#378de7; }
.studio-prop-row input[type=range] { min-width:110px; accent-color:#8056ef; }
.studio-prop-row b { justify-self:end; color:#dce3ea; font-size:9px; }
.studio-vector { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.studio-vector label { height:27px; display:grid; grid-template-columns:16px minmax(0,1fr); align-items:center; padding-left:7px; border:1px solid #172a3b; border-radius:3px; background:#091521; color:#dce4ec; font-size:8px; }
.studio-vector input { height:24px!important; padding:0 3px!important; border:0!important; }
.studio-colour { display:grid; grid-template-columns:30px minmax(0,1fr); gap:7px; }
.studio-colour input[type=color] { width:30px!important; padding:2px!important; }
.prop-note { display:flex; align-items:center; justify-content:space-between; color:#8999aa; font-size:9px; }
.prop-note button { width:25px; height:25px; border:0; background:transparent; color:#eef2f7; }
.purple-text { color:#a278ff; }
.studio-empty-properties { display:grid; justify-items:center; padding:55px 28px; text-align:center; color:#788a9c; }
.studio-empty-properties svg { width:35px; height:35px; color:#8a60ef; }
.studio-empty-properties h3 { color:#eef2f7; margin:16px 0 6px; }
.studio-empty-properties p { margin:0; font-size:10px; line-height:1.5; }
.studio-status { display:flex; align-items:center; justify-content:space-between; padding:0 10px 0 82px; border-top:1px solid #1f3347; background:#08131e; color:#8091a2; font-size:8px; }
.status-ready { color:#36d47b; }
.create-groups { flex:1; overflow:auto; padding:10px 13px 16px; }
.create-groups section { margin-bottom:15px; }
.create-groups h3 { margin:0 0 9px; font-size:10px; }
.create-groups section>div { display:grid; grid-template-columns:repeat(5,1fr); gap:9px; }
.create-groups section button { min-width:0; min-height:63px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; padding:5px; border:0; border-radius:5px; background:transparent; color:#eef2f6; font-size:7px; text-align:center; }
.create-groups section button:hover { background:#1a2d40; }
.create-groups section button svg { width:27px; height:27px; color:#c7c9df; }
.browse-all-objects { width:100%; height:34px; border:1px solid #2b4258; border-radius:4px; background:#142536; color:#e6ebf0; font-size:9px; }
.sound-tree { padding:3px 12px 8px; border-bottom:1px solid #263a4d; }
.sound-folder,.rig-node { min-height:30px; display:flex; align-items:center; gap:8px; padding:0 7px; color:#eef2f6; font-size:9px; }
.sound-folder svg { width:15px; height:15px; color:#ffcf6c; }
.sound-folder b { margin-left:auto; }
.sound-folder.indent { padding-left:22px; }.sound-folder.indent2 { padding-left:39px; }
.sound-node { width:calc(100% - 45px); margin-left:45px; min-height:28px; display:flex; align-items:center; gap:8px; padding:0 8px; border:0; border-radius:3px; background:transparent; color:#dce4ec; font-size:9px; }
.sound-node.active { background:#2a245e; }
.sound-node svg { width:14px; color:#a36cff; }
.sound-assets { flex:1; overflow:auto; padding:10px 12px; }
.sound-assets h3 { margin:0 0 8px; font-size:10px; }
.sound-assets>button { width:100%; height:27px; display:grid; grid-template-columns:15px 1fr auto; align-items:center; gap:8px; padding:0 7px; border:0; border-radius:3px; background:transparent; color:#dfe5eb; font-size:8px; text-align:left; }
.sound-assets>button.active,.sound-assets>button:hover { background:#28235c; }
.sound-assets time { color:#9ba9b8; }
.sound-import { display:grid; grid-template-columns:1fr 36px; gap:8px; margin-top:12px; }
.sound-import button { height:34px; border:1px solid #2c4257; border-radius:4px; background:#142536; color:#eef2f6; font-size:9px; }
.vfx-tree { overflow:auto; padding:5px 12px 15px; }
.vfx-node { width:100%; height:31px; display:grid; grid-template-columns:16px 1fr 16px; align-items:center; gap:8px; padding:0 9px 0 39px; border:0; border-radius:3px; background:transparent; color:#e8edf2; font-size:9px; text-align:left; }
.vfx-node.active { background:#2c2664; }
.vfx-node svg { width:14px; color:#d4dce4; }
.vfx-node.material i { width:14px; height:14px; border-radius:50%; background:#f59c25; }
.animation-left-top { border-bottom:1px solid #293e52; padding-bottom:10px; }
.animation-tabs { display:grid; grid-template-columns:1fr 1fr; height:34px; border-bottom:1px solid #2a3e51; }
.animation-tabs button { border:0; background:transparent; color:#c2ccd6; font-size:9px; }
.animation-tabs button.active { background:#28235a; box-shadow:inset 0 -2px #8858f0; }
.new-animation { width:calc(100% - 24px); margin:0 12px 7px; height:34px; border:1px solid #2a4156; border-radius:4px; background:#142536; color:#fff; font-size:9px; }
.animation-item { width:calc(100% - 24px); margin:0 12px; height:31px; display:grid; grid-template-columns:16px 1fr auto; align-items:center; gap:9px; padding:0 8px; border:0; border-radius:3px; background:transparent; color:#edf1f5; font-size:9px; text-align:left; }
.animation-item.active { background:#302964; }
.animation-item time { color:#a5b1bf; }
.rig-tree { flex:1; min-height:0; overflow:auto; }
.rig-node { padding-left:calc(10px + var(--indent,0)*18px); color:#cbd5df; }
.more-tools-list { flex:1; overflow:auto; padding:5px 13px 15px; }
.more-tools-list section { padding:8px 0; border-bottom:1px solid #283c4f; }
.more-tools-list h3 { margin:0 0 5px; color:#8e9dad; font-size:8px; text-transform:uppercase; }
.more-tools-list button { width:100%; height:28px; display:grid; grid-template-columns:17px 1fr auto; align-items:center; gap:8px; padding:0 7px; border:0; border-radius:3px; background:transparent; color:#eef2f6; font-size:9px; text-align:left; }
.more-tools-list button:hover { background:#1b2d3f; }
.more-tools-list svg { width:14px; }.more-tools-list kbd { padding:3px 6px; border:1px solid #2c4358; border-radius:4px; background:#192a3b; color:#bcc7d2; font-size:7px; }
.full-script { min-height:0; flex:1; display:grid; grid-template-rows:39px 34px minmax(270px,1fr) 27px 170px; }
.full-script-tabs { display:flex; border-bottom:1px solid #263a4e; background:#132231; }
.full-script-tabs button { min-width:125px; border:0; border-right:1px solid #263a4e; background:transparent; color:#d1dae3; font-size:9px; }
.full-script-tabs button.active { background:#292461; box-shadow:inset 0 -2px #6e55f0; color:#fff; }
.script-breadcrumb { display:flex; align-items:center; padding:0 15px; border-bottom:1px solid #263a4e; color:#9cabb9; font-size:9px; }
.script-breadcrumb span { margin-left:auto; color:#dce4eb; }
.large-code { min-height:0; display:grid; grid-template-columns:44px minmax(0,1fr); background:#132231; }
.large-code>div { padding:9px 10px; overflow:hidden; white-space:pre; text-align:right; color:#587085; background:#0c1723; font:9px/1.58 Consolas,monospace; }
.large-code textarea { width:100%; height:100%; padding:9px 13px; border:0; resize:none; outline:0; color:#e2e7ec; background:#132231; font:10px/1.58 Consolas,monospace; }
.script-status { display:flex; justify-content:space-between; align-items:center; padding:0 15px; border-top:1px solid #263a4e; color:#a3b0bd; font-size:8px; }
.script-output { min-height:0; overflow:auto; border-top:1px solid #263a4e; background:#132231; }
.script-output>div:first-child { height:34px; display:flex; align-items:center; gap:14px; padding:0 12px; }
.script-output button { border:0; background:transparent; color:#d5dde5; font-size:8px; }
.script-output input { margin-left:auto; width:250px; height:24px; border:1px solid #203548; background:#091520; color:#fff; padding:0 8px; font-size:8px; }
.sound-workspace { min-height:0; flex:1; display:grid; grid-template-rows:minmax(380px,1.15fr) minmax(250px,.85fr); gap:1px; background:#263b50; padding:12px; }
.wave-editor,.sound-effects { min-height:0; border:1px solid #24394e; border-radius:6px; background:#132231; overflow:hidden; }
.sound-title-row { height:64px; display:flex; align-items:center; justify-content:space-between; padding:0 16px; }
.sound-title-row h2 { display:flex; gap:10px; align-items:center; font-size:16px; }
.sound-title-row h2 svg { color:#945cff; }
.sound-title-row>div { display:flex; align-items:center; gap:6px; }
.sound-title-row button { width:28px; height:28px; border:0; background:transparent; color:#9aacbd; }
.sound-title-row label { display:flex; align-items:center; gap:7px; margin-left:8px; color:#d6dde5; font-size:8px; }
.sound-title-row select { height:28px; border:0; background:#0b1723; color:#fff; }
#waveform-canvas { width:calc(100% - 24px); height:250px; margin:0 12px; display:block; border:1px solid #1d3448; }
.sound-transport { height:60px; display:flex; align-items:center; gap:20px; padding:0 18px; }
.sound-transport button { border:0; background:transparent; color:#c8d2dc; }
.sound-transport button.play { color:#48dc87; }
.sound-transport strong { font-size:12px; }.sound-transport span { margin-left:auto; color:#dce4ec; font-size:9px; }
.effect-tabs { height:42px; display:flex; border-bottom:1px solid #293d50; }
.effect-tabs button { min-width:110px; border:0; background:transparent; color:#c7d0da; font-size:9px; }
.effect-tabs button.active { box-shadow:inset 0 -2px #8b58f0; color:#fff; }
.effect-body { height:calc(100% - 42px); display:grid; grid-template-columns:220px minmax(0,1fr); }
.effect-body>aside { padding:12px; border-right:1px solid #2a3e52; }
.effect-body>aside button { width:100%; height:36px; display:grid; grid-template-columns:16px 1fr 24px; align-items:center; gap:8px; padding:0 9px; border:0; border-radius:4px; background:transparent; color:#dfe5eb; font-size:9px; text-align:left; }
.effect-body>aside button.active { background:#2b2663; }.effect-body>aside i { width:22px; height:12px; border-radius:999px; background:#7047d9; }
.reverb-settings { padding:16px 25px; }
.reverb-settings h3 { display:flex; justify-content:space-between; margin:0 0 16px; }
.reverb-settings h3 button { border:0; background:transparent; color:#fff; }
.reverb-settings label { min-height:39px; display:grid; grid-template-columns:120px minmax(0,1fr) 70px; align-items:center; gap:12px; color:#c9d2dc; font-size:9px; }
.reverb-settings input[type=range] { accent-color:#8053e9; }.reverb-settings select { height:27px; border:0; background:#091521; color:#fff; }
.vfx-workspace { min-height:0; flex:1; display:grid; grid-template-rows:minmax(320px,1.15fr) minmax(260px,.85fr); gap:1px; background:#263b50; }
.vfx-stage { position:relative; min-height:0; background:#0d1722; }
.vfx-toolbar { position:absolute; z-index:5; left:10px; right:10px; top:10px; display:flex; gap:7px; }
.vfx-toolbar span { flex:1; }.vfx-toolbar button.play { color:#42da83; }
#vfx-canvas { width:100%; height:100%; display:block; }
.particle-settings { min-height:0; background:#132231; overflow:hidden; }
.particle-tabs { height:38px; display:flex; border-bottom:1px solid #2b3f53; }
.particle-tabs button { min-width:110px; border:0; border-right:1px solid #2b3f53; background:transparent; color:#ccd5de; font-size:9px; }
.particle-tabs button.active { background:#192a3b; color:#fff; }
.particle-body { height:calc(100% - 38px); display:grid; grid-template-columns:125px repeat(3,minmax(130px,1fr)) 180px; overflow:auto; }
.particle-body>aside,.particle-body>div { padding:13px; border-right:1px solid #293e51; }
.particle-body>aside button { width:100%; height:29px; display:flex; align-items:center; gap:8px; border:0; background:transparent; color:#d7dfe7; font-size:8px; text-align:left; }
.particle-body>aside button.active { background:#2b2664; }
.particle-body h3 { margin:0 0 13px; font-size:10px; }.particle-body label { min-height:48px; display:grid; gap:6px; color:#b9c5d1; font-size:8px; }
.particle-body input,.particle-body select { height:28px; border:1px solid #1d3245; background:#091521; color:#fff; padding:0 8px; }
.particle-body .xyz { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; }.curve { height:55px; border:1px solid #21384e; background:linear-gradient(145deg,transparent 45%,#7951e7 46% 48%,transparent 49%),#101d2d; }
.vfx-preview .preview-fire { height:95px; display:grid; place-items:center; margin-bottom:10px; background:radial-gradient(circle at 50% 70%,#ffb126,#ad300f 25%,#141b25 55%); color:#fff0a0; font-size:38px; }
.vfx-preview>div:not(.preview-fire) { display:flex; gap:5px; }.vfx-preview button { flex:1; height:42px; display:grid; place-items:center; border:1px solid #284055; background:#142536; color:#d9e2ea; font-size:7px; }.vfx-preview button small { display:block; }.vfx-preview p { color:#9ba9b8; font-size:7px; }.vfx-preview p span { color:#3bd47b; }
.animation-workspace { min-height:0; flex:1; display:grid; grid-template-rows:minmax(390px,1.1fr) minmax(260px,.9fr); gap:1px; background:#263b50; }
.animation-stage { position:relative; min-height:0; background:#172333; }
.animation-title { position:absolute; z-index:5; left:0; right:0; top:0; height:51px; display:flex; align-items:center; justify-content:space-between; padding:0 14px; border-bottom:1px solid #2b3e52; background:#132231; }
.animation-title h2 { display:flex; align-items:center; gap:8px; font-size:16px; }.animation-title>div { display:flex; gap:8px; align-items:center; }.animation-title button { height:30px; min-width:32px; border:1px solid #2a4055; border-radius:4px; background:#142536; color:#e4e9ee; }.animation-title button.play { color:#41d67f; }
#animation-canvas { width:100%; height:calc(100% - 54px); margin-top:51px; display:block; }
.animation-transport { position:absolute; left:0; right:0; bottom:0; height:53px; display:flex; align-items:center; gap:20px; padding:0 18px; border-top:1px solid #2b3e52; background:#132231; }
.animation-transport button { border:0; background:transparent; color:#d8e0e8; }.animation-transport button.play { color:#42d982; }
.timeline { min-height:0; background:#132231; overflow:hidden; }.timeline-tabs { height:40px; display:flex; border-bottom:1px solid #2a3f52; }.timeline-tabs button { min-width:100px; border:0; background:transparent; color:#c5cfda; font-size:9px; }.timeline-tabs button.active { background:#2b2664; color:#fff; }
.timeline-grid { height:calc(100% - 40px); display:grid; grid-template-columns:185px minmax(0,1fr); overflow:auto; }.timeline-grid>aside { border-right:1px solid #2a3f52; }.timeline-grid>aside div { height:29px; padding-left:calc(12px + var(--indent)*18px); display:flex; align-items:center; color:#d7dfe7; font-size:8px; border-bottom:1px solid #1e3347; }
.keyframes { position:relative; }.timeline-ruler { height:28px; display:flex; justify-content:space-between; padding:0 12px; align-items:center; color:#91a1b1; font-size:7px; border-bottom:1px solid #263c50; }.key-row { position:relative; height:29px; border-bottom:1px solid #1e3347; background:repeating-linear-gradient(90deg,transparent 0 55px,rgba(74,102,128,.16) 56px); }.key-row i { position:absolute; top:11px; width:7px; height:7px; transform:rotate(45deg); background:var(--key); }
.advanced-workspace { min-height:0; flex:1; display:grid; grid-template-rows:42px minmax(0,1fr) 28px; }
.advanced-toolbar { display:flex; align-items:center; gap:7px; padding:0 10px; border-bottom:1px solid #2b3e52; background:#132231; }.advanced-toolbar span { flex:1; }
.advanced-stage { min-height:0; }.advanced-callout { position:absolute; z-index:6; display:grid; gap:5px; min-width:125px; padding:15px; border:1px solid #4b6080; border-radius:7px; background:rgba(8,19,31,.94); text-align:center; }.advanced-callout b { color:#a56cff; font-size:14px; }.advanced-callout span { font-size:9px; }.callout-copy { right:25%; top:29%; }.callout-paste { right:23%; bottom:20%; }
.advanced-info { display:flex; align-items:center; gap:17px; padding:0 10px; color:#91a1b1; background:#0a1622; font-size:8px; }.advanced-info span:last-child { margin-left:auto; }
.studio-top-menu { min-width:185px; }
@media(max-width:1370px){.studio-layout{grid-template-columns:68px 280px minmax(390px,1fr) 320px}.studio-commandbar{grid-template-columns:128px minmax(610px,1fr) 350px;padding-left:74px}.command-tool{min-width:48px}.wide-command{padding:0 8px}.studio-topbar{grid-template-columns:175px minmax(360px,1fr) 170px 170px}.studio-prop-row{grid-template-columns:92px minmax(0,1fr)}}
@media(max-width:1119px){.studio-shell{display:none}.mobile-editor-warning{display:grid!important}}
.studio-shell .viewport-dock { grid-column:auto; grid-row:auto; }
.studio-shell .studio-viewport { grid-column:auto; grid-row:auto; }

/* Secure universal-account sign-in */
.auth-shell {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: auto;
  padding: 32px 18px;
  color: #f5f8ff;
  background:
    radial-gradient(circle at 18% 86%, rgba(91, 18, 174, .26), transparent 34%),
    radial-gradient(circle at 88% 15%, rgba(15, 74, 166, .24), transparent 38%),
    linear-gradient(135deg, #020811 0%, #071224 48%, #080421 100%);
}
.auth-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  background-image: linear-gradient(rgba(110, 139, 183, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 139, 183, .12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 80%, transparent);
}
.auth-glow { position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(100px); opacity: .2; pointer-events: none; }
.auth-glow-one { left: -160px; bottom: -180px; background: #7b21d7; }
.auth-glow-two { top: -220px; right: -120px; background: #1647c7; }
.auth-card,
.verification-card {
  position: relative;
  width: min(570px, 100%);
  border: 1px solid #29435c;
  border-radius: 18px;
  background: rgba(5, 20, 35, .94);
  box-shadow: 0 28px 100px rgba(0, 0, 0, .46), inset 0 1px rgba(255, 255, 255, .025);
  backdrop-filter: blur(22px);
}
.auth-card { padding: 34px 54px 30px; }
.auth-brand { display: grid; place-items: center; gap: 12px; margin-bottom: 22px; text-align: center; }
.auth-brand img { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 14px 25px rgba(97, 255, 0, .16)); }
.auth-brand div { display: grid; gap: 4px; letter-spacing: .22em; }
.auth-brand strong { font-size: 25px; }
.auth-brand span { color: #aefc25; font-size: 10px; font-weight: 800; letter-spacing: .35em; }
.auth-heading { text-align: center; }
.auth-kicker { display: block; margin-bottom: 8px; color: #aefc25; font-size: 9px; font-weight: 800; letter-spacing: .19em; }
.auth-heading h1,
.verification-heading h1 { margin: 0; color: #fff; font-size: 28px; line-height: 1.15; }
.auth-heading p,
.verification-heading p { margin: 10px 0 0; color: #9fb4c9; font-size: 12px; line-height: 1.55; }
.auth-form { display: grid; gap: 17px; margin-top: 25px; }
.auth-field { display: grid; gap: 7px; color: #e9f1fb; font-size: 10px; font-weight: 700; }
.auth-input { height: 52px; display: grid; grid-template-columns: 24px minmax(0, 1fr) 36px; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid #35506c; border-radius: 10px; background: #071729; transition: border-color .16s ease, box-shadow .16s ease; }
.auth-input:focus-within { border-color: #8c53ff; box-shadow: 0 0 0 3px rgba(140, 83, 255, .15); }
.auth-input > svg { width: 20px; height: 20px; color: #9eb2c8; fill: none; stroke: currentColor; stroke-width: 1.7; }
.auth-input input { min-width: 0; height: 100%; border: 0; outline: 0; color: #fff; background: transparent; font: inherit; font-size: 13px; font-weight: 500; }
.auth-input input::placeholder { color: #687f96; }
.auth-input-action { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 7px; color: #a8bad0; background: transparent; cursor: pointer; }
.auth-input-action:hover { color: #fff; background: #10253a; }
.auth-input-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-check { display: flex; align-items: center; gap: 8px; color: #c5d3e4; font-size: 10px; cursor: pointer; }
.auth-check input { position: absolute; opacity: 0; pointer-events: none; }
.auth-check > span { width: 18px; height: 18px; display: grid; place-items: center; border: 2px solid #8d2cff; border-radius: 4px; background: #07111f; }
.auth-check > span svg { width: 12px; height: 12px; opacity: 0; fill: none; stroke: #fff; stroke-width: 2.3; }
.auth-check input:checked + span { background: linear-gradient(135deg, #7d20ee, #a024ff); }
.auth-check input:checked + span svg { opacity: 1; }
.auth-link,
.verification-back { border: 0; color: #bd6cff; background: transparent; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.auth-link:hover,
.verification-back:hover { color: #dcadff; }
.auth-link:disabled { color: #66788e; cursor: not-allowed; }
.auth-submit { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 9px; color: #fff; background: linear-gradient(110deg, #7c18ee, #982bf0 50%, #6b28d8); box-shadow: 0 12px 30px rgba(115, 32, 224, .24); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .16s ease, filter .16s ease; }
.auth-submit:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
.auth-submit:disabled { color: #7d7690; background: #4a286f; box-shadow: none; cursor: not-allowed; }
.auth-error { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; padding: 11px 13px; border: 1px solid rgba(255, 92, 115, .35); border-radius: 9px; color: #ffd8de; background: rgba(118, 24, 45, .22); font-size: 10px; line-height: 1.45; }
.auth-error svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: #ff6981; stroke-width: 1.8; }
.auth-footnote { margin: 19px 0 0; color: #7690aa; text-align: center; font-size: 9px; }
.auth-copyright { margin: 24px 0 0; color: #65809a; text-align: center; font-size: 8px; }
.auth-loading { position: relative; display: grid; place-items: center; gap: 13px; color: #a8bace; }
.auth-loading img { width: 110px; height: 110px; object-fit: contain; }
.auth-spinner,
.button-spinner { display: inline-block; border-radius: 50%; border: 2px solid rgba(255,255,255,.22); border-top-color: #fff; animation: auth-spin .8s linear infinite; }
.auth-spinner { width: 26px; height: 26px; }
.button-spinner { width: 16px; height: 16px; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-verify-shell { place-items: center; }
.verification-card { width: min(630px, 100%); padding: 28px 31px 24px; border-color: rgba(129, 71, 222, .65); background: rgba(7, 17, 34, .96); }
.verification-heading { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px; align-items: center; }
.verification-heading > div:last-child > span { color: #d25df8; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.verification-heading h1 { margin-top: 4px; font-size: 24px; }
.verification-heading p { margin-top: 6px; }
.verification-icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid #7c3eb0; border-radius: 14px; color: #e45bff; background: linear-gradient(145deg, rgba(119, 42, 184, .38), rgba(37, 35, 91, .35)); }
.verification-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.verification-form { display: grid; gap: 14px; margin-top: 26px; }
.verification-form > label { color: #eef4ff; font-size: 10px; font-weight: 800; }
.verification-code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.verification-digit { width: 100%; aspect-ratio: 1 / .83; min-height: 60px; border: 1px solid #38516d; border-radius: 10px; outline: 0; color: #fff; background: #03101e; text-align: center; font-size: 25px; font-weight: 800; caret-color: #b857ff; }
.verification-digit:focus { border-color: #b451ff; box-shadow: 0 0 0 2px rgba(180, 81, 255, .23); }
.verification-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; color: #8295ac; font-size: 11px; }
.verification-back { display: flex; align-items: center; gap: 6px; margin: 18px auto 0; color: #8da2ba; }
.verification-back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.avatar-image { background-position: center; background-size: cover; background-repeat: no-repeat; color: transparent !important; }
.account-modal { max-width: 520px; }
.account-summary { display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px solid #273d52; border-radius: 10px; background: #0b1825; }
.account-avatar { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #5b31a7, #1388a7); font-weight: 800; }
.account-summary > div { display: grid; gap: 4px; }
.account-summary strong { color: #fff; font-size: 15px; }
.account-summary span { color: #8fa3b8; font-size: 10px; }
.account-security { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; margin-top: 12px; padding: 13px; border: 1px solid rgba(73, 203, 122, .24); border-radius: 9px; color: #cbe8d5; background: rgba(27, 88, 51, .16); }
.account-security > svg { width: 24px; height: 24px; fill: none; stroke: #55d889; stroke-width: 1.6; }
.account-security div { display: grid; gap: 3px; }
.account-security strong { font-size: 11px; }
.account-security span { color: #91ad9b; font-size: 9px; line-height: 1.45; }
.brand img,
.editor-brand img,
.sidebar-footer img,
.hero-logo,
.mobile-editor-warning img { object-fit: contain; }

@media (max-width: 620px) {
  .auth-shell { padding: 18px 12px; }
  .auth-card { padding: 27px 20px 24px; }
  .auth-brand img { width: 76px; height: 76px; }
  .auth-brand strong { font-size: 21px; }
  .auth-options { align-items: flex-start; flex-direction: column; }
  .verification-card { padding: 23px 18px 20px; }
  .verification-heading { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .verification-icon { width: 48px; height: 48px; }
  .verification-heading h1 { font-size: 20px; }
  .verification-code { gap: 6px; }
  .verification-digit { min-height: 48px; font-size: 20px; }
}
.avatar-image { overflow: hidden; background: #0b1725 !important; }
.avatar-image img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Baseplate and play-test viewport update */
.studio-viewport canvas:focus { outline: none; }
.studio-shell .viewport-hint {
  left: 12px;
  bottom: 12px;
  z-index: 6;
  padding: 7px 10px;
  border: 1px solid rgba(55, 78, 104, .48);
  border-radius: 6px;
  background: rgba(4, 12, 22, .72);
  color: #d2dceb;
  font-size: 8px;
  letter-spacing: .01em;
  backdrop-filter: blur(8px);
}
.play-overlay.active {
  display: block;
  background: linear-gradient(180deg, rgba(3, 12, 23, .03), rgba(3, 10, 18, .06));
}
.play-chip {
  top: 12px;
  color: #b7ffd0;
  border-color: rgba(54, 211, 119, .72);
  background: rgba(5, 48, 28, .9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
}
.play-controls {
  position: absolute;
  left: 50%;
  bottom: 15px;
  transform: translateX(-50%);
  min-width: 360px;
  padding: 8px 13px;
  border: 1px solid rgba(117, 89, 235, .55);
  border-radius: 999px;
  background: rgba(7, 14, 28, .86);
  color: #e8e3ff;
  font-size: 9px;
  font-weight: 650;
  text-align: center;
  backdrop-filter: blur(10px);
}
.play-overlay.active + * { pointer-events: auto; }
@media (max-width: 1180px) {
  .play-controls { min-width: 280px; max-width: calc(100% - 30px); }
}


/* Infinite baseplate and Roblox-style viewport controls */
.viewport-corner-tools,
.viewport-toolbar,
.viewport-hint { display: none !important; }
#viewport-canvas { touch-action: none; }
#viewport-canvas:focus-visible { outline: 1px solid rgba(125, 92, 255, .55); outline-offset: -1px; }


.viewport-webgl-error {
  position: absolute;
  inset: 18px;
  z-index: 12;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  border: 1px solid rgba(255, 95, 122, .42);
  border-radius: 12px;
  background: rgba(8, 18, 32, .94);
  color: #f7f4ff;
  pointer-events: none;
}
.viewport-webgl-error span { color: #aebbd0; font-size: 12px; }
#viewport-canvas { display: block; width: 100%; height: 100%; }

/* The redundant Studio status strip was intentionally removed in v0.7.3. */
.studio-status { display:none !important; }

/* Experience settings and publishing */
.experience-settings-modal {
  width: min(1180px, calc(100vw - 48px));
  height: min(800px, calc(100vh - 48px));
  max-height: none;
  display: grid;
  grid-template-rows: 78px minmax(0, 1fr) 70px;
  overflow: hidden;
  border-radius: 12px;
  background: #0a1420;
}
.experience-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid #21364b;
  background: linear-gradient(180deg, #0d1b2a, #0a1622);
}
.experience-settings-header h2 { margin: 3px 0 0; font-size: 22px; }
.experience-settings-header p { margin: 4px 0 0; color: #91a1b2; font-size: 10px; }
.publish-kicker { color: #a873ff; font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.experience-header-actions { display: flex; align-items: center; gap: 12px; }
.publish-draft-state { color: #71869b; font-size: 9px; }
.experience-settings-layout { min-height: 0; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.experience-settings-sidebar {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-right: 1px solid #21364b;
  background: #0b1724;
}
.experience-sidebar-project { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; align-items: center; padding: 11px; margin-bottom: 9px; border: 1px solid #20354a; border-radius: 8px; background: #101e2e; }
.experience-sidebar-project > svg { width: 22px; height: 22px; color: #8d63ff; }
.experience-sidebar-project strong, .experience-sidebar-project small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.experience-sidebar-project strong { font-size: 10px; }
.experience-sidebar-project small { margin-top: 3px; color: #8293a5; font-size: 8px; }
.experience-settings-sidebar nav { display: grid; gap: 3px; overflow-y: auto; padding-right: 2px; }
.experience-settings-sidebar nav button { width: 100%; min-height: 42px; display: grid; grid-template-columns: 18px minmax(0,1fr) 14px; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #c5cfda; font-size: 10px; font-weight: 650; text-align: left; }
.experience-settings-sidebar nav button > svg:first-child { width: 16px; height: 16px; color: #8397aa; }
.experience-settings-sidebar nav button > svg:last-child { width: 12px; height: 12px; color: #566b7f; }
.experience-settings-sidebar nav button:hover { background: #142436; color: #fff; }
.experience-settings-sidebar nav button.active { border-color: #5a43af; background: linear-gradient(90deg, #3b287b, #211c4b); color: #fff; }
.experience-settings-sidebar nav button.active > svg { color: #bc9cff; }
.publish-settings-note { display: grid; grid-template-columns: 16px 1fr; gap: 8px; padding: 11px; margin-top: auto; border: 1px solid #33405d; border-radius: 7px; background: #141a31; color: #8f9dad; font-size: 8px; line-height: 1.45; }
.publish-settings-note svg { color: #8d63ff; }
.experience-settings-content { min-height: 0; overflow-y: auto; padding: 24px 28px 34px; background: #0c1825; }
.publish-section { display: none; animation: publishSectionIn .16s ease; }
.publish-section.active { display: block; }
@keyframes publishSectionIn { from { opacity: 0; transform: translateY(4px); } }
.publish-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid #203448; }
.publish-section-heading h3 { margin: 0; font-size: 19px; }
.publish-section-heading p { margin: 6px 0 0; color: #91a1b2; font-size: 10px; line-height: 1.5; }
.publish-section-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border: 1px solid #5f46ba; border-radius: 999px; background: #211b45; color: #c6afff; font-size: 8px; font-weight: 800; }
.publish-section-tag.optional { border-color: #315a73; background: #102b3a; color: #6fd7ff; }
.publish-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.publish-field { display: grid; gap: 7px; }
.publish-field.full { grid-column: 1 / -1; }
.publish-field > span { display: flex; align-items: center; justify-content: space-between; color: #d3dbe4; font-size: 10px; font-weight: 750; }
.publish-field > span b { color: #6f8397; font-size: 8px; font-weight: 600; }
.publish-field input, .publish-field select, .publish-field textarea { width: 100%; border: 1px solid #263d53; border-radius: 6px; outline: none; background: #08131e; color: #edf2f7; font-size: 10px; }
.publish-field input, .publish-field select { height: 38px; padding: 0 11px; }
.publish-field textarea { min-height: 92px; padding: 11px; resize: vertical; line-height: 1.55; }
.publish-field input:focus, .publish-field select:focus, .publish-field textarea:focus { border-color: #7c56e8; box-shadow: 0 0 0 3px rgba(124,86,232,.12); }
.publish-subheading { margin: 25px 0 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #aeb9c5; }
.publish-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.publish-card-grid.compact { grid-template-columns: repeat(4, 1fr); }
.publish-check-card { min-width: 0; cursor: pointer; }
.publish-check-card > input { position: absolute; opacity: 0; pointer-events: none; }
.publish-check-card > span { min-height: 76px; display: grid; grid-template-columns: 20px 1fr; align-content: center; gap: 2px 8px; padding: 12px; border: 1px solid #263c51; border-radius: 7px; background: #0e1c2a; color: #d6dee7; }
.publish-check-card > span > svg { grid-row: 1 / 3; width: 18px; height: 18px; padding: 3px; border: 1px solid #40566c; border-radius: 4px; color: transparent; }
.publish-check-card strong { font-size: 10px; }
.publish-check-card small { color: #7f90a1; font-size: 8px; line-height: 1.35; }
.publish-check-card input:checked + span { border-color: #6a4fc5; background: #211c46; box-shadow: inset 0 0 0 1px rgba(144,112,255,.18); }
.publish-check-card input:checked + span > svg { border-color: #8b68f0; background: #7351dc; color: #fff; }
.publish-settings-stack { display: grid; gap: 1px; margin-top: 20px; overflow: hidden; border: 1px solid #253a4f; border-radius: 8px; background: #253a4f; }
.publish-switch-row { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 11px 14px; background: #0e1c29; cursor: pointer; }
.publish-switch-row > span { min-width: 0; }
.publish-switch-row strong, .publish-switch-row small { display: block; }
.publish-switch-row strong { font-size: 10px; }
.publish-switch-row small { margin-top: 4px; color: #8091a3; font-size: 8px; line-height: 1.35; }
.publish-switch-row input { position: absolute; opacity: 0; }
.publish-switch-row i { position: relative; flex: 0 0 38px; width: 38px; height: 21px; border-radius: 999px; background: #344351; transition: .18s; }
.publish-switch-row i::after { content: ''; position: absolute; width: 17px; height: 17px; left: 2px; top: 2px; border-radius: 50%; background: #91a0ae; transition: .18s; }
.publish-switch-row input:checked + i { background: #6041bd; }
.publish-switch-row input:checked + i::after { transform: translateX(17px); background: #fff; }
.publish-media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.publish-media-slot { min-height: 188px; display: flex; flex-direction: column; gap: 11px; padding: 15px; border: 1px solid #263c51; border-radius: 8px; background: #0e1c2a; }
.publish-media-slot h4 { margin: 0; font-size: 11px; }
.publish-media-slot p { margin: 4px 0 0; color: #8091a2; font-size: 8px; line-height: 1.4; }
.publish-media-empty { flex: 1; min-height: 76px; display: grid; place-items: center; align-content: center; gap: 7px; border: 1px dashed #3a5065; border-radius: 6px; background: #091521; color: #708397; font-size: 8px; }
.publish-media-empty svg { width: 22px; height: 22px; }
.publish-upload-button { min-height: 32px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #4f438c; border-radius: 5px; background: #1c1b3f; color: #d8ccff; font-size: 9px; font-weight: 750; cursor: pointer; }
.publish-upload-button input { display: none; }
.publish-media-previews { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; max-height: 120px; overflow-y: auto; }
.publish-media-preview { position: relative; min-height: 72px; display: grid; place-items: center; overflow: hidden; border: 1px solid #30475e; border-radius: 6px; background: #08131e; }
.publish-media-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.publish-media-preview > svg { width: 24px; height: 24px; color: #8662ed; }
.publish-media-preview > span { position: absolute; left: 5px; right: 25px; bottom: 5px; overflow: hidden; padding: 3px 5px; border-radius: 3px; background: rgba(3,8,14,.76); color: #fff; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.publish-media-preview > button { position: absolute; z-index: 2; right: 5px; top: 5px; width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 4px; background: rgba(4,9,16,.82); color: #fff; }
.publish-info-strip, .publish-live-banner { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 13px; margin-top: 18px; border: 1px solid #304966; border-radius: 7px; background: #102034; color: #9aacbe; font-size: 8px; line-height: 1.45; }
.publish-info-strip svg, .publish-live-banner svg { width: 18px; height: 18px; color: #64c9ff; }
.publish-collaborator-card { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid #2c4358; border-radius: 8px; background: #0e1d2b; }
.publish-collaborator-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg,#36d8ff,#7b4de7); color: #07111b; font-size: 11px; font-weight: 900; }
.publish-collaborator-card strong, .publish-collaborator-card span { display: block; }
.publish-collaborator-card strong { font-size: 10px; }
.publish-collaborator-card div > span { margin-top: 3px; color: #8294a6; font-size: 8px; }
.publish-permission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 20px; overflow: hidden; border: 1px solid #263b50; border-radius: 8px; background: #263b50; }
.publish-permission-grid > div { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 13px; background: #0e1c29; }
.publish-permission-grid span { display: flex; align-items: center; gap: 7px; font-size: 9px; }
.publish-permission-grid span svg { color: #65d894; }
.publish-permission-grid strong { color: #7e90a2; font-size: 8px; font-weight: 600; }
.publish-safety-summary { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 15px; border: 1px solid #286749; border-radius: 8px; background: #0c2720; }
.publish-safety-summary > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #32c977; color: #06130c; }
.publish-safety-summary strong { font-size: 10px; }
.publish-safety-summary p { margin: 4px 0 0; color: #82a497; font-size: 8px; }
.publish-item-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.publish-item-grid .publish-check-card > span { min-height: 52px; }
.publish-schedule-fields { grid-column: 1 / -1; display: none; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px; border: 1px solid #3a3f68; border-radius: 7px; background: #141a32; }
.publish-schedule-fields.visible { display: grid; }
.publish-version-list { display: grid; gap: 8px; }
.publish-version-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid #263c51; border-radius: 7px; background: #0e1c2a; }
.publish-version-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 7px; background: #211d4b; color: #a985ff; }
.publish-version-row strong, .publish-version-row span { display: block; }
.publish-version-row > div:nth-child(2) > strong { font-size: 10px; }
.publish-version-row > div:nth-child(2) > span { margin-top: 4px; color: #8091a2; font-size: 8px; }
.publish-status-badge { display: inline-flex !important; align-items: center; justify-content: center; min-height: 23px; padding: 0 8px; border: 1px solid #3e5870; border-radius: 999px; background: #112436; color: #a4b6c7; font-size: 7px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.publish-status-badge.published { border-color: #2a7049; background: #0d2b1c; color: #6ee69d; }
.publish-status-badge.scheduled { border-color: #765d24; background: #30260c; color: #f5cc65; }
.publish-status-badge.draft { border-color: #54458a; background: #211b40; color: #bba5ff; }
.publish-empty-history { min-height: 250px; display: grid; place-items: center; align-content: center; text-align: center; color: #6f8396; }
.publish-empty-history svg { width: 35px; height: 35px; color: #7654db; }
.publish-empty-history h4 { margin: 13px 0 6px; color: #e8edf3; }
.publish-empty-history p { margin: 0; font-size: 9px; }
.publish-validation { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 13px; margin-bottom: 18px; border: 1px solid #9d4054; border-radius: 7px; background: #2a121b; color: #ffc0ca; }
.publish-validation svg { color: #ff6680; }
.publish-validation strong { font-size: 10px; }
.publish-validation p { margin: 4px 0 0; font-size: 8px; }
.experience-settings-footer { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 22px; border-top: 1px solid #21364b; background: #0a1622; }
.experience-settings-footer > div { display: flex; align-items: center; gap: 9px; color: #7d8fa1; font-size: 8px; }
.experience-settings-footer > div:last-child { gap: 8px; }
.publish-footer-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ada80; box-shadow: 0 0 9px rgba(58,218,128,.55); }
.publish-review-modal { grid-template-rows: 78px minmax(0,1fr) 70px; }
.publish-review-content { min-height: 0; overflow-y: auto; padding: 24px 28px; background: #0c1825; }
.publish-review-hero { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 17px; border: 1px solid #3b4b74; border-radius: 9px; background: linear-gradient(135deg,#171d3a,#101e2e); }
.publish-review-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 9px; background: #542da5; color: #fff; }
.publish-review-mark svg { width: 26px; height: 26px; }
.publish-review-hero span { color: #a489ff; font-size: 8px; font-weight: 800; }
.publish-review-hero h3 { margin: 4px 0; font-size: 17px; }
.publish-review-hero p { margin: 0; color: #8698aa; font-size: 9px; }
.publish-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 15px; }
.publish-review-grid article { min-height: 92px; padding: 13px; border: 1px solid #263c51; border-radius: 7px; background: #0e1c2a; }
.publish-review-grid span, .publish-review-grid strong, .publish-review-grid small { display: block; }
.publish-review-grid span { color: #718497; font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.publish-review-grid strong { margin-top: 8px; font-size: 10px; line-height: 1.4; }
.publish-review-grid small { margin-top: 5px; color: #8192a4; font-size: 8px; line-height: 1.35; }
.publish-review-items { margin-top: 15px; padding: 15px; border: 1px solid #263c51; border-radius: 7px; background: #0e1c2a; }
.publish-review-items h4 { margin: 0 0 11px; font-size: 10px; }
.publish-review-items > div { display: flex; flex-wrap: wrap; gap: 7px; }
.publish-review-items span { display: flex; align-items: center; gap: 5px; padding: 7px 9px; border-radius: 5px; background: #142637; color: #b9c6d2; font-size: 8px; }
.publish-review-items span svg { color: #53d88a; }
.publish-review-warnings, .publish-review-success { padding: 14px; margin-top: 15px; border-radius: 7px; }
.publish-review-warnings { border: 1px solid #765d24; background: #2c240d; color: #ebc967; }
.publish-review-warnings h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 10px; }
.publish-review-warnings p { margin: 4px 0; color: #c9b570; font-size: 8px; }
.publish-review-success { display: flex; align-items: center; gap: 10px; border: 1px solid #286749; background: #0c271b; color: #62e391; }
.publish-review-success strong, .publish-review-success small { display: block; }
.publish-review-success small { margin-top: 3px; color: #75a98a; font-size: 8px; }
.publish-progress-modal { grid-template-rows: 78px minmax(0,1fr); }
.publish-progress-content { display: grid; grid-template-columns: 160px minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); gap: 24px; padding: 42px; overflow-y: auto; background: #0c1825; }
.publish-progress-ring { --publish-progress:0; grid-row: 1 / 3; width: 140px; height: 140px; display: grid; place-items: center; align-self: start; position:relative; border:0; border-radius:50%; background:conic-gradient(#855aec calc(var(--publish-progress) * 1%),#1c3044 0); box-shadow:0 0 30px rgba(119,79,222,.2); }
.publish-progress-ring::after { content:""; position:absolute; inset:10px; border-radius:50%; background:#0c1825; }
.publish-progress-ring span { position:relative; z-index:1; }
.publish-progress-ring span { font-size: 24px; font-weight: 850; }
.publish-progress-copy h3 { margin: 0; font-size: 20px; }
.publish-progress-copy p { margin: 6px 0 17px; color: #8294a6; font-size: 9px; }
.publish-progress-bar { height: 7px; overflow: hidden; border-radius: 999px; background: #1d3043; }
.publish-progress-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#6d45d4,#a75df0); transition: width .3s ease; }
.publish-progress-steps { grid-column: 2; display: grid; gap: 1px; overflow: hidden; border: 1px solid #263c51; border-radius: 8px; background: #263c51; }
.publish-progress-steps > div { min-height: 50px; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 0 13px; background: #0e1c2a; }
.publish-progress-steps span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #17293a; color: #71879a; }
.publish-progress-steps strong { font-size: 9px; }
.publish-progress-steps small { color: #6f8294; font-size: 8px; }
.publish-progress-steps > div.active span { background: #4b2f98; color: #fff; animation: publishPulse 1s infinite; }
.publish-progress-steps > div.active small { color: #ba9aff; }
.publish-progress-steps > div.complete span { background: #177044; color: #fff; }
.publish-progress-steps > div.complete small { color: #65d995; }
@keyframes publishPulse { 50% { box-shadow: 0 0 0 6px rgba(116,74,219,.14); } }
.publish-complete-modal { width: min(620px, calc(100vw - 48px)); padding: 36px; text-align: center; overflow: hidden; }
.publish-complete-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 17px; border-radius: 50%; background: #24bd6e; color: #06140c; box-shadow: 0 0 35px rgba(36,189,110,.27); }
.publish-complete-icon svg { width: 34px; height: 34px; }
.publish-complete-modal h2 { margin: 7px 0 9px; font-size: 24px; }
.publish-complete-modal > p { max-width: 490px; margin: 0 auto; color: #91a2b3; font-size: 10px; line-height: 1.55; }
.publish-complete-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 22px; }
.publish-complete-summary span { padding: 12px; border: 1px solid #263c51; border-radius: 7px; background: #0e1c2a; color: #718497; font-size: 8px; }
.publish-complete-summary strong { display: block; margin-top: 5px; color: #eef2f6; font-size: 9px; }
.publish-complete-actions { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
@media (max-width: 1000px) {
  .experience-settings-modal { width: calc(100vw - 24px); height: calc(100vh - 24px); }
  .experience-settings-layout { grid-template-columns: 200px minmax(0,1fr); }
  .publish-card-grid, .publish-item-grid { grid-template-columns: 1fr 1fr; }
  .publish-card-grid.compact { grid-template-columns: 1fr 1fr; }
}

/* Simplified publishing confirmation */
.publish-field-help {
  display: block;
  margin-top: -2px;
  color: #71869b;
  font-size: 8px;
  line-height: 1.45;
}
.quick-publish-modal {
  width: min(930px, calc(100vw - 48px));
  max-height: min(850px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: 78px minmax(0, 1fr) 70px;
  overflow: hidden;
  border-radius: 12px;
  background: #0a1420;
}
.quick-publish-content {
  min-height: 0;
  overflow-y: auto;
  padding: 23px 26px 30px;
  background: #0c1825;
}
.quick-publish-block {
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid #263c51;
  border-radius: 9px;
  background: #0e1c2a;
}
.quick-publish-heading {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
.quick-publish-heading > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #5737b2;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
}
.quick-publish-heading h3 { margin: 0; font-size: 14px; }
.quick-publish-heading p { margin: 4px 0 0; color: #8092a4; font-size: 9px; line-height: 1.4; }
.quick-select-all {
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid #42566b;
  border-radius: 5px;
  background: #132437;
  color: #c8d3de;
  font-size: 8px;
  font-weight: 750;
}
.quick-select-all:hover { border-color: #7959dc; color: #fff; }
.quick-publish-destinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.quick-publish-choice { cursor: pointer; }
.quick-publish-choice > input { position: absolute; opacity: 0; pointer-events: none; }
.quick-publish-choice > span {
  min-height: 84px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-content: center;
  gap: 4px 10px;
  padding: 13px;
  border: 1px solid #2a4257;
  border-radius: 7px;
  background: #0a1723;
  transition: .16s ease;
}
.quick-publish-choice > span > svg {
  grid-row: 1 / 3;
  width: 26px;
  height: 26px;
  color: #8b66f2;
}
.quick-publish-choice strong { font-size: 10px; }
.quick-publish-choice small { color: #7d90a2; font-size: 8px; line-height: 1.35; }
.quick-publish-choice input:checked + span {
  border-color: #7353d7;
  background: linear-gradient(135deg, #241d4d, #111d2c);
  box-shadow: inset 0 0 0 1px rgba(148, 116, 255, .2);
}
.quick-publish-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.quick-publish-items .publish-check-card > span {
  min-height: 54px;
  grid-template-columns: 18px 1fr;
  padding: 10px;
}
.quick-publish-items .publish-check-card small { display: none; }
.quick-publish-timing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.quick-publish-timing .publish-schedule-fields { grid-column: 1 / -1; }
.quick-publish-advanced {
  overflow: hidden;
  margin-top: 4px;
  border: 1px solid #293f54;
  border-radius: 8px;
  background: #0d1b29;
}
.quick-publish-advanced summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  color: #cbd5df;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.quick-publish-advanced summary::-webkit-details-marker { display: none; }
.quick-publish-advanced summary svg { color: #9c78ff; }
.quick-publish-advanced[open] summary { border-bottom: 1px solid #293f54; }
.quick-publish-advanced-body { padding: 17px; }
.quick-publish-advanced-body .publish-settings-stack { margin-top: 16px; }
.quick-review-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}
.quick-review-summary article {
  min-height: 75px;
  padding: 12px;
  border: 1px solid #263c51;
  border-radius: 7px;
  background: #0e1c2a;
}
.quick-review-summary span,
.quick-review-summary strong { display: block; }
.quick-review-summary span {
  color: #718497;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.quick-review-summary strong { margin-top: 9px; font-size: 10px; line-height: 1.4; }
@media (max-width: 800px) {
  .quick-publish-modal { width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
  .quick-publish-destinations,
  .quick-publish-items,
  .quick-review-summary { grid-template-columns: 1fr 1fr; }
}

/* Guided publishing wizard */
.publish-validation[hidden] { display: none !important; }
.quick-publish-wizard {
  grid-template-rows: 78px 64px minmax(0, 1fr) 70px;
}
.quick-publish-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 24px;
  border-top: 1px solid rgba(255,255,255,.025);
  border-bottom: 1px solid #21364b;
  background: #0b1723;
}
.quick-publish-progress > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #62778b;
}
.quick-publish-progress > div > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #31465b;
  border-radius: 50%;
  background: #0c1a27;
  color: #8193a5;
  font-size: 9px;
  font-weight: 850;
}
.quick-publish-progress > div > span svg { width: 13px; height: 13px; }
.quick-publish-progress > div strong { font-size: 9px; }
.quick-publish-progress > i {
  width: 54px;
  height: 1px;
  background: #2a3e52;
}
.quick-publish-progress > div.active { color: #f4f1ff; }
.quick-publish-progress > div.active > span {
  border-color: #9b54ff;
  background: linear-gradient(135deg,#a42cff,#6b32e4);
  color: #fff;
  box-shadow: 0 0 22px rgba(157,64,255,.32);
}
.quick-publish-progress > div.complete { color: #b8a2ff; }
.quick-publish-progress > div.complete > span {
  border-color: #7654e8;
  background: #322664;
  color: #cbbdff;
}
.quick-publish-stage {
  min-height: 100%;
  padding: 20px;
  border: 1px solid #263c51;
  border-radius: 10px;
  background: #0e1c2a;
}
.quick-stage-heading {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.quick-stage-heading > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg,#8f35f1,#5830c6);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.quick-stage-heading h3 { margin: 0; font-size: 16px; }
.quick-stage-heading p { margin: 4px 0 0; color: #8295a7; font-size: 9px; }
.quick-publish-stage-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 15px;
  padding: 12px 13px;
  border: 1px solid #29475e;
  border-radius: 7px;
  background: #0b1a28;
  color: #8fa3b5;
  font-size: 9px;
  line-height: 1.5;
}
.quick-publish-stage-note svg { flex: 0 0 auto; color: #6fd2ff; }
.testing-experience-picker,
.main-publish-source {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid #33495f;
  border-radius: 9px;
  background: #0a1723;
}
.testing-picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.testing-picker-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testing-picker-heading > div > svg { width: 22px; height: 22px; color: #a56bff; }
.testing-picker-heading span,
.testing-picker-heading strong,
.testing-picker-heading small { display: block; }
.testing-picker-heading strong { font-size: 10px; }
.testing-picker-heading small { margin-top: 4px; color: #7e91a3; font-size: 8px; line-height: 1.4; }
.testing-picker-heading button {
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #6844c7;
  border-radius: 6px;
  background: #241b4b;
  color: #dccfff;
  font-size: 8px;
  font-weight: 800;
}
.testing-experience-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}
.testing-experience-list label,
.main-source-options label { cursor: pointer; }
.testing-experience-list input,
.main-source-options input { position: absolute; opacity: 0; pointer-events: none; }
.testing-experience-list label > span {
  min-height: 72px;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) auto;
  align-items: center;
  gap: 4px 9px;
  padding: 11px;
  border: 1px solid #2b4257;
  border-radius: 7px;
  background: #0d1b28;
}
.testing-experience-list i {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #20204a;
  color: #a179ff;
}
.testing-experience-list i svg { width: 16px; height: 16px; }
.testing-experience-list strong,
.testing-experience-list small { display: block; }
.testing-experience-list strong { font-size: 9px; }
.testing-experience-list small { color: #74889b; font-size: 8px; }
.testing-experience-list em { grid-row: 1 / 3; color: #8772cc; font-size: 8px; font-style: normal; font-weight: 800; }
.testing-experience-list input:checked + span {
  border-color: #9a55ff;
  background: linear-gradient(135deg,#271c50,#101d2b);
  box-shadow: inset 0 0 0 1px rgba(164,93,255,.24), 0 0 18px rgba(135,54,240,.12);
}
.testing-experience-list input:checked + span em { color: #d9baff; }
.testing-experience-note {
  display: flex;
  gap: 8px;
  margin-top: 11px;
  padding: 10px 11px;
  border-radius: 6px;
  background: #0a202b;
  color: #89a3b5;
  font-size: 8px;
  line-height: 1.5;
}
.testing-experience-note svg { flex: 0 0 auto; color: #57d4ff; }
.main-source-options {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}
.main-source-options label > span {
  min-height: 77px;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  align-content: center;
  gap: 4px 10px;
  padding: 12px;
  border: 1px solid #2b4257;
  border-radius: 7px;
  background: #0d1b28;
}
.main-source-options span > svg { grid-row: 1 / 3; width: 24px; height: 24px; color: #9a6bff; }
.main-source-options strong { font-size: 9px; }
.main-source-options small { color: #76899c; font-size: 8px; line-height: 1.4; }
.main-source-options input:checked + span {
  border-color: #9355ee;
  background: #241d49;
}
.quick-publish-primary {
  min-width: 145px;
  justify-content: center;
  border-color: #c050ff !important;
  background: linear-gradient(135deg,#b52bff 0%,#7f28ed 52%,#5930d2 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(215,112,255,.16), 0 10px 28px rgba(147,39,238,.38) !important;
  font-weight: 850 !important;
}
.quick-publish-primary:hover {
  filter: brightness(1.14);
  box-shadow: 0 0 24px rgba(190,61,255,.42), 0 12px 30px rgba(116,31,216,.42) !important;
}
.quick-publish-primary svg { width: 14px; height: 14px; }
.publish-review-modal { grid-template-rows: 78px 64px minmax(0,1fr) 70px; }
@media (max-width: 760px) {
  .quick-publish-progress > i { width: 16px; }
  .quick-publish-progress > div strong { display: none; }
  .testing-experience-list,
  .main-source-options { grid-template-columns: 1fr; }
}

/* Live Studio publishing media */
.publish-media-preview > span { display:flex; flex-direction:column; align-items:flex-start; gap:1px; white-space:normal; }
.publish-media-preview > span strong { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.publish-media-preview > span small { color:#a9bad0; font-size:6.5px; }
.publish-upload-button.disabled { opacity:.55; cursor:not-allowed; }
.publish-video-price-panel { display:grid; grid-template-columns:34px 1fr; align-items:center; gap:12px; margin-top:14px; padding:14px 16px; border:1px solid #6f45cc; border-radius:8px; background:linear-gradient(135deg,rgba(96,48,197,.18),rgba(33,24,73,.48)); }
.publish-video-price-panel > svg { width:25px; height:25px; color:#c371ff; }
.publish-video-price-panel div { display:flex; flex-direction:column; gap:3px; }
.publish-video-price-panel strong { color:#fff; font-size:10px; }
.publish-video-price-panel span { color:#aebbd0; font-size:8px; line-height:1.45; }
.publish-complete-icon.failed { color:#ff6680; background:#3c1420; border-color:#7f2940; }
.publish-failed-modal p { max-width:620px; }
.studio-game-id,.editor-game-id{max-width:250px;padding:0;border:0;background:transparent;color:#79bcff;font:inherit;font-size:8px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.studio-game-id:hover,.editor-game-id:hover{color:#c39aff;text-decoration:underline}.editor-game-id{max-width:230px;margin-left:6px}.publish-complete-summary{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.publish-complete-summary button{max-width:100%;padding:0;border:0;background:transparent;color:#8fc5ff;font:inherit;font-size:8px;line-height:1.35;overflow-wrap:anywhere;cursor:pointer}.publish-complete-summary button:hover{color:#c39aff;text-decoration:underline}

/* 2026-08-02 — editable game highlights, controlled socials and version menus */
.publish-subsection-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:26px 0 12px;padding-top:22px;border-top:1px solid #23394e}
.publish-subsection-heading h4{margin:0 0 5px;font-size:12px;color:#f4f7fb}.publish-subsection-heading p{margin:0;color:#8295a8;font-size:8px;line-height:1.45}.publish-subsection-heading>span{padding:5px 8px;border:1px solid #344b62;border-radius:999px;color:#9fb0c1;font-size:7px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.publish-feature-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.publish-feature-card-editor{padding:13px;border:1px solid #294158;border-radius:9px;background:#0c1b2a}
.publish-feature-card-editor>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}.publish-feature-card-editor>header>span{display:flex;align-items:center;gap:7px;color:#e8eef5;font-size:9px;font-weight:850}.publish-feature-card-editor>header svg{width:16px;height:16px;color:#a75bff}.publish-feature-card-editor>header label{display:flex;align-items:center;gap:5px;color:#9caebe;font-size:8px}.publish-feature-card-editor>header input{accent-color:#8e43e8}
.publish-feature-fields{display:grid;grid-template-columns:120px minmax(0,1fr);gap:9px}.publish-feature-fields .full{grid-column:1/-1}.publish-feature-fields textarea{min-height:66px}
.publish-social-notice{display:grid;grid-template-columns:30px minmax(0,1fr);gap:11px;padding:13px;margin-bottom:13px;border:1px solid #304d68;border-radius:8px;background:#102238}.publish-social-notice>svg{width:22px;height:22px;color:#70cfff}.publish-social-notice strong{display:block;margin-bottom:4px;font-size:9px}.publish-social-notice p{margin:0;color:#8fa2b5;font-size:8px;line-height:1.45}
.publish-social-list{display:grid;gap:9px}.publish-social-row{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:center;gap:18px;padding:12px 13px;border:1px solid #283f56;border-radius:8px;background:#0d1c2b}.publish-social-row>span{display:grid;gap:3px}.publish-social-row strong{font-size:9px}.publish-social-row small{color:#8194a6;font-size:7px}.publish-social-row input{width:100%;min-height:39px;padding:0 11px;border:1px solid #314a62;border-radius:7px;background:#081624;color:#f4f7fb;font:inherit;font-size:9px;outline:none}.publish-social-row input:focus{border-color:#8c45e7;box-shadow:0 0 0 2px rgba(140,69,231,.15)}
.publish-version-row{grid-template-columns:38px minmax(0,1fr) auto 38px}
.publish-version-menu{position:relative}.publish-version-menu>summary{display:grid;place-items:center;width:35px;height:35px;border:1px solid #304960;border-radius:7px;color:#bac7d3;cursor:pointer;list-style:none}.publish-version-menu>summary::-webkit-details-marker{display:none}.publish-version-menu>summary svg{width:16px;height:16px}.publish-version-menu[open]>summary{border-color:#8e48e8;background:#201845;color:#fff}.publish-version-menu>div{position:absolute;z-index:30;right:0;top:42px;display:grid;width:170px;padding:6px;border:1px solid #354f68;border-radius:8px;background:#0a1826;box-shadow:0 18px 45px rgba(0,0,0,.5)}.publish-version-menu button{display:flex;align-items:center;gap:8px;padding:9px;border:0;border-radius:6px;background:transparent;color:#d4dde6;font:inherit;font-size:8px;text-align:left}.publish-version-menu button:hover{background:#172a3d;color:#fff}.publish-version-menu button svg{width:15px;height:15px;color:#a566ff}
.publish-release-inspect{width:min(860px,calc(100vw - 38px));height:min(690px,calc(100vh - 38px));display:grid;grid-template-rows:78px minmax(0,1fr) 70px;overflow:hidden}.publish-release-inspect>main{padding:22px;overflow:auto}.publish-release-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.publish-release-summary article{display:grid;gap:6px;padding:13px;border:1px solid #294158;border-radius:8px;background:#0d1d2d}.publish-release-summary span{color:#8094a7;font-size:7px;text-transform:uppercase;letter-spacing:.06em}.publish-release-summary strong{font-size:9px}.publish-release-notes,.publish-release-items{margin-top:16px;padding:16px;border:1px solid #294158;border-radius:9px;background:#0c1b2a}.publish-release-notes h3,.publish-release-items h3{margin:0 0 10px;font-size:11px}.publish-release-notes p{margin:0;color:#a7b6c5;font-size:9px;line-height:1.65}.publish-release-items>div{display:flex;flex-wrap:wrap;gap:7px}.publish-release-items span{display:flex;align-items:center;gap:5px;padding:7px 9px;border-radius:7px;background:#10283a;color:#a9bac8;font-size:8px}.publish-release-items span svg{width:12px;height:12px;color:#42d99a}
@media(max-width:760px){.publish-feature-editor{grid-template-columns:1fr}.publish-feature-fields{grid-template-columns:1fr}.publish-feature-fields .full{grid-column:1}.publish-social-row{grid-template-columns:1fr;gap:8px}.publish-release-summary{grid-template-columns:1fr 1fr}}

/* 2026-08-02 project icon and stable publishing controls */
.project-thumb.has-game-icon{background:#07131f}
.project-thumb.has-game-icon::before,.project-thumb.has-game-icon::after{display:none}
.project-thumb.has-game-icon img{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover;object-position:center}
.quick-publish-conditional[hidden]{display:none!important}
.quick-publish-conditional{margin-top:12px}


/* Studio parts, script and Explorer interaction pass — 2026-08-02 */
.part-menu-wrap { display:flex; position:relative; align-items:stretch; }
.part-menu-wrap .part-spawn-main { border-radius:7px 0 0 7px; min-width:76px; }
.part-menu-wrap .part-menu-toggle { min-width:27px; width:27px; padding:0; border-radius:0 7px 7px 0; border-left-color:rgba(255,255,255,.08); }
.studio-part-menu button.active { background:#2b205a; color:#fff; }
.studio-part-menu button > svg:last-child { margin-left:auto; width:13px; }
.script-breadcrumb { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.script-language-tools { display:flex; align-items:center; gap:7px; }
.script-language-tools button { display:inline-flex; align-items:center; gap:6px; border:1px solid #29445e; background:#0b1d2d; color:#c8d8e8; border-radius:6px; padding:6px 10px; font:inherit; }
.script-language-tools .script-run-button { border-color:#6342cf; background:linear-gradient(135deg,#7c35e9,#5525bd); color:white; font-weight:800; }
.script-language-tools .script-run-button.disabled { opacity:.38; cursor:not-allowed; filter:saturate(.5); }
.studio-tree-row { position:relative; }
.tree-hover-add { margin-left:auto !important; opacity:0; pointer-events:none; width:22px; height:22px; display:inline-grid!important; place-items:center; border:0; border-radius:5px; background:transparent; color:#9cc5e9; }
.studio-tree-row:hover .tree-hover-add, .studio-tree-row.selected .tree-hover-add { opacity:1; pointer-events:auto; }
.tree-hover-add:hover, .tree-add-button:hover { background:#173550; color:#fff; }
.tree-add-button { margin-left:auto; border:0; border-radius:5px; background:transparent; color:#91b5d4; width:22px; height:22px; display:grid; place-items:center; }
.context-menu-title { padding:8px 11px 6px; color:#6f8fa9; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }


/* Functional transform controls and UI object insertion foundation */
.transform-mode-palette{position:absolute;left:50%;top:14px;transform:translateX(-50%);z-index:18;display:flex;gap:5px;padding:5px;border:1px solid rgba(126,157,190,.35);border-radius:10px;background:rgba(6,15,27,.88);backdrop-filter:blur(12px);box-shadow:0 12px 28px rgba(0,0,0,.28)}
.transform-mode-palette button{display:flex;align-items:center;gap:5px;border:1px solid transparent;border-radius:7px;background:transparent;color:#9db0c5;padding:7px 10px;font:700 9px/1 inherit;cursor:pointer}
.transform-mode-palette button svg{width:14px;height:14px}.transform-mode-palette button:hover{color:#fff;background:#14243a}.transform-mode-palette button.active{color:#fff;border-color:#8d4cff;background:linear-gradient(135deg,#6f2ee8,#4e28b4);box-shadow:0 0 18px rgba(132,54,255,.28)}
.ui-add-menu{width:270px;max-height:min(520px,calc(100vh - 30px));overflow:auto;padding-bottom:8px}.ui-add-menu section{padding:5px 7px;border-top:1px solid rgba(116,145,174,.16)}.ui-add-menu section>strong{display:block;padding:7px 8px 5px;color:#70869d;font-size:8px;text-transform:uppercase;letter-spacing:.12em}.ui-add-search{display:flex;align-items:center;gap:7px;margin:4px 8px 8px;padding:7px 9px;border:1px solid #29425e;border-radius:7px;background:#091625}.ui-add-search svg{width:13px;height:13px;color:#6f86a0}.ui-add-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:#eef6ff;font-size:9px}.ui-add-menu [hidden]{display:none!important}
.ui-udim-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.ui-udim-grid label{display:grid;gap:3px;color:#758aa0;font-size:7px;text-transform:uppercase;letter-spacing:.06em}.ui-udim-grid input{min-width:0;width:100%}

/* Workspace usability, UI preview and terrain editor */
.studio-panel-heading-actions { display:flex; align-items:center; gap:2px; }
.studio-shell.hide-left .studio-layout { grid-template-columns:74px 0 minmax(430px,1fr) 370px; }
.studio-shell.hide-left .studio-left { visibility:hidden; }
.studio-shell.hide-right .studio-layout { grid-template-columns:74px 326px minmax(430px,1fr) 0; }
.studio-shell.hide-right .studio-right { visibility:hidden; }
.studio-shell.hide-left.hide-right .studio-layout { grid-template-columns:74px 0 minmax(430px,1fr) 0; }
.world-stack.bottom-hidden { grid-template-rows:minmax(0,1fr); }
.viewport-corner-tools button.active { border-color:#8057ee; background:#2b2365; color:#fff; }

.studio-ui-preview { position:absolute; z-index:8; inset:58px 86px 34px 28px; overflow:hidden; border:1px dashed rgba(126,94,235,.75); border-radius:10px; background:rgba(5,12,22,.12); pointer-events:none; }
.ui-preview-object { position:absolute; box-sizing:border-box; display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius:5px; font-weight:700; pointer-events:auto; cursor:pointer; }
.ui-preview-object.selected { outline:2px solid #9b73ff; outline-offset:2px; }
.ui-preview-textlabel { justify-content:flex-start; background:transparent!important; }
.ui-preview-textbutton,.ui-preview-imagebutton { box-shadow:0 8px 20px rgba(0,0,0,.22); }
.ui-preview-textbox { justify-content:flex-start; padding:0 10px; border:1px solid rgba(255,255,255,.18); }
.ui-preview-object img { width:100%; height:100%; object-fit:contain; }
.ui-preview-image-placeholder { display:grid; place-items:center; width:100%; height:100%; border:1px dashed rgba(255,255,255,.25); color:#9ab0c6; }
.ui-preview-image-placeholder svg { width:28px; height:28px; }

.terrain-mode-row { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-bottom:10px; }
.terrain-mode-row button { height:31px; border:1px solid #294257; border-radius:5px; background:#0d1b29; color:#dce5ed; font-size:9px; }
.terrain-mode-row button.active { border-color:#8159ed; background:#30266b; color:#fff; }
.terrain-materials { display:grid; grid-template-columns:repeat(2,1fr); gap:6px; }
.terrain-materials button { min-height:31px; display:flex; align-items:center; gap:7px; padding:0 8px; border:1px solid #263e52; border-radius:5px; background:#0c1926; color:#dbe4eb; font-size:8px; }
.terrain-materials button.active { border-color:#7f5bea; background:#29235d; }
.terrain-materials i { width:13px; height:13px; border-radius:3px; background:var(--terrain-colour); box-shadow:inset 0 0 0 1px rgba(255,255,255,.18); }
.terrain-brush-size { display:flex; align-items:center; justify-content:space-between; margin-top:10px; color:#b8c5d1; font-size:9px; }
.terrain-brush-size select { height:29px; border:1px solid #2a4358; border-radius:4px; background:#091521; color:#eef2f6; font-size:9px; }

@media(max-width:1370px){
  .studio-shell.hide-left .studio-layout{grid-template-columns:68px 0 minmax(390px,1fr) 320px}
  .studio-shell.hide-right .studio-layout{grid-template-columns:68px 280px minmax(390px,1fr) 0}
  .studio-shell.hide-left.hide-right .studio-layout{grid-template-columns:68px 0 minmax(390px,1fr) 0}
}

/* Visual UI editor, script navigation and smooth terrain V11 */
.studio-ui-preview {
  position: absolute;
  inset: 54px 56px 52px 56px;
  z-index: 18;
  pointer-events: auto;
  border: 1px solid rgba(118, 91, 238, .5);
  border-radius: 12px;
  background: rgba(4, 10, 20, .18);
  box-shadow: 0 0 0 1px rgba(11, 23, 39, .8), 0 16px 50px rgba(0,0,0,.24);
  overflow: visible;
}
.studio-ui-preview-toolbar {
  position: absolute;
  left: 0;
  right: 0;
  top: -42px;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid rgba(77, 108, 139, .55);
  border-radius: 9px;
  background: rgba(6, 17, 30, .96);
  box-shadow: 0 8px 25px rgba(0,0,0,.28);
}
.studio-ui-preview-toolbar > div:first-child { min-width: 0; display: grid; margin-right: auto; }
.studio-ui-preview-toolbar strong { font-size: 10px; color: #f4f7fb; }
.studio-ui-preview-toolbar small { font-size: 7px; color: #7f94a8; }
.studio-ui-preview-toolbar > button,
.studio-ui-preview-toolbar > button { display: inline-flex; align-items: center; gap: 5px; }
.studio-ui-preview-toolbar > button svg { width: 12px; height: 12px; }
.studio-ui-canvas { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.ui-root-disabled .studio-ui-canvas { background: repeating-linear-gradient(135deg,rgba(69,84,104,.08) 0 12px,rgba(18,30,46,.08) 12px 24px); }
.ui-disabled-message { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:8px; text-align:center; color:#7f93a7; }
.ui-disabled-message svg { width: 27px; height: 27px; color:#7f55e8; }
.ui-disabled-message strong { color:#dce5ef; font-size:12px; }
.ui-disabled-message span { max-width:330px; font-size:8px; }
.ui-preview-object {
  position: absolute;
  box-sizing: border-box;
  opacity: var(--ui-opacity,1);
  cursor: move;
  user-select: none;
  touch-action: none;
  overflow: visible;
}
.ui-preview-object > .ui-preview-content { position:absolute; inset:0; display:grid; place-items:center; pointer-events:none; overflow:hidden; border-radius:inherit; }
.ui-preview-object > .ui-preview-content img { width:100%; height:100%; object-fit:contain; }
.ui-preview-object.selected { outline: 1px solid #b66dff; box-shadow: 0 0 0 2px rgba(173,77,255,.18), 0 0 22px rgba(125,55,230,.22); }
.ui-resize-handle { position:absolute; z-index:9999; width:9px; height:9px; border:1px solid #fff; border-radius:2px; background:#9348f2; box-shadow:0 1px 5px rgba(0,0,0,.55); }
.ui-resize-nw { left:-5px; top:-5px; cursor:nwse-resize; }
.ui-resize-n { left:calc(50% - 4px); top:-5px; cursor:ns-resize; }
.ui-resize-ne { right:-5px; top:-5px; cursor:nesw-resize; }
.ui-resize-e { right:-5px; top:calc(50% - 4px); cursor:ew-resize; }
.ui-resize-se { right:-5px; bottom:-5px; cursor:nwse-resize; }
.ui-resize-s { left:calc(50% - 4px); bottom:-5px; cursor:ns-resize; }
.ui-resize-sw { left:-5px; bottom:-5px; cursor:nesw-resize; }
.ui-resize-w { left:-5px; top:calc(50% - 4px); cursor:ew-resize; }
body.ui-transforming, body.ui-transforming * { cursor: grabbing !important; }

.terrain-mode-row { display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
.terrain-brush-shape { display:grid; gap:5px; padding:10px 0 2px; color:#8da1b4; font-size:8px; }
.terrain-brush-shape select { width:100%; min-height:30px; border:1px solid #2b465f; border-radius:7px; background:#071521; color:#d8e2ec; padding:0 8px; }
.terrain-mode-help { margin-top:8px; padding:8px 9px; border:1px solid #25435e; border-radius:7px; color:#8da2b6; background:#091827; font-size:7px; line-height:1.45; }

.script-workspace-v11 { display:grid !important; grid-template-columns:230px minmax(0,1fr); min-width:0; }
.all-scripts-panel { min-width:0; border-right:1px solid #20374c; background:#081522; overflow:hidden; display:grid; grid-template-rows:auto auto minmax(0,1fr); }
.all-scripts-panel header { min-height:42px; display:flex; align-items:center; justify-content:space-between; padding:0 10px; border-bottom:1px solid #20374c; }
.all-scripts-panel header button { width:26px; height:26px; display:grid; place-items:center; border:1px solid #2a435b; border-radius:6px; background:#0c1b2b; color:#a997ff; }
.all-scripts-panel label { margin:8px; display:flex; align-items:center; gap:6px; padding:0 8px; min-height:30px; border:1px solid #29435c; border-radius:7px; color:#7290a8; }
.all-scripts-panel label svg { width:13px; height:13px; }
.all-scripts-panel input { min-width:0; width:100%; border:0; outline:0; color:#dce6f0; background:transparent; font-size:8px; }
.all-scripts-list { overflow:auto; padding:2px 7px 10px; }
.all-scripts-list > button { width:100%; display:grid; grid-template-columns:22px minmax(0,1fr); align-items:center; gap:6px; padding:7px; border:1px solid transparent; border-radius:7px; color:#a8b7c6; background:transparent; text-align:left; }
.all-scripts-list > button:hover,.all-scripts-list > button.selected { border-color:#44347c; background:#1a1740; color:#fff; }
.all-scripts-list i { color:#8871e7; }
.all-scripts-list i svg { width:14px; height:14px; }
.all-scripts-list span { min-width:0; display:grid; gap:2px; }
.all-scripts-list strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:8px; }
.all-scripts-list small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#70869a; font-size:6.5px; }
.script-editor-main { min-width:0; display:grid; grid-template-rows:auto auto minmax(180px,1fr) auto minmax(110px,.34fr); }
.full-script-tabs { overflow-x:auto; }
.script-open-tab { display:inline-flex; align-items:stretch; border-right:1px solid #20374b; background:#0b1725; }
.script-open-tab.active { background:#161536; box-shadow:inset 0 -2px #8f49f2; }
.script-open-tab > button { border:0; background:transparent; color:#8fa0b1; padding:0 9px; min-height:34px; font-size:8px; }
.script-open-tab.active > button:first-child { color:#fff; }
.script-open-tab > button:last-child { padding:0 7px; color:#6f8294; }
.script-breadcrumb > button:first-child { min-width:0; max-width:65%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; border:0; background:transparent; color:#90a6bb; text-align:left; font-size:8px; }
.studio-script-tree-row > span:last-child { min-width:0; display:grid; text-align:left; }
.studio-script-tree-row strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:8px; }
.studio-script-tree-row small { color:#698096; font-size:6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

@media (max-width: 1120px) {
  .script-workspace-v11 { grid-template-columns:190px minmax(0,1fr); }
  .studio-ui-preview { inset-left:34px; inset-right:34px; }
}

/* Roblox Migration Assistant */
.roblox-import-modal {
  width: min(1120px, calc(100vw - 36px));
  max-width: 1120px;
  height: min(820px, calc(100vh - 36px));
  padding: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-color: #31506f;
  background: #071522;
}
.import-window-modal { width: min(760px, calc(100vw - 44px)); max-width: 760px; height: auto; max-height: min(640px, calc(100vh - 44px)); }
.import-compact-modal .roblox-import-body { padding: 18px 20px 20px; }
.import-compact-modal .roblox-file-drop { min-height: 118px; }
.import-compact-modal .roblox-file-drop strong { font-size: 13px; }
.import-compact-modal .roblox-file-drop small { font-size: 9px; }
.import-compact-modal .roblox-import-footer .btn-primary { min-width: 156px; }
.roblox-import-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid #263d57;
  background: linear-gradient(180deg, rgba(17, 36, 56, .94), rgba(8, 23, 37, .96));
}
.roblox-import-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.roblox-import-brand > span {
  width: 46px; height: 46px; border: 1px solid #8d4dff; border-radius: 12px;
  display: grid; place-items: center; color: #b178ff; background: #211447;
  box-shadow: 0 0 24px rgba(139, 77, 255, .16);
}
.roblox-import-brand > span svg { width: 22px; height: 22px; }
.roblox-import-brand div { min-width: 0; }
.roblox-import-brand small { display: block; color: #b46cff; font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.roblox-import-brand h2 { margin: 3px 0 4px; font-size: 22px; }
.roblox-import-brand p { margin: 0; color: #86a1ba; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roblox-import-progress {
  display: grid; grid-template-columns: auto minmax(36px, 1fr) auto minmax(36px, 1fr) auto;
  align-items: center; gap: 12px; padding: 13px 28px; border-bottom: 1px solid #20374f; background: #081827;
}
.roblox-import-progress span { display: inline-flex; align-items: center; gap: 7px; color: #637e98; font-size: 9px; font-weight: 800; white-space: nowrap; }
.roblox-import-progress span.active { color: #fff; }
.roblox-import-progress span.complete { color: #9d77ef; }
.roblox-import-progress span svg { width: 13px; height: 13px; }
.roblox-import-progress i { height: 1px; background: #29415a; }
.roblox-import-body { padding: 22px 26px 28px; overflow: auto; }
.roblox-file-intro { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; margin-bottom: 18px; }
.roblox-file-intro > div { border: 1px solid #29445f; border-radius: 12px; background: #0a1b2b; padding: 18px; }
.roblox-file-intro > div:first-child { display: flex; gap: 13px; align-items: flex-start; }
.roblox-file-intro > div:first-child > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #17284a; color: #a86dff; }
.roblox-file-intro h3 { margin: 0 0 7px; font-size: 14px; }
.roblox-file-intro p { margin: 0; color: #91a8bc; font-size: 10px; line-height: 1.6; }
.roblox-supported-files { display: flex; flex-direction: column; gap: 7px; }
.roblox-supported-files strong { font-size: 11px; }
.roblox-supported-files span { color: #c9dcf0; font-size: 10px; }
.roblox-supported-files small { color: #6f899f; font-size: 9px; line-height: 1.5; }
.roblox-file-drop {
  min-height: 170px; display: grid; place-items: center; align-content: center; gap: 7px;
  border: 1px dashed #456582; border-radius: 14px; background: linear-gradient(180deg, #0a1c2d, #081725);
  cursor: pointer; text-align: center; transition: border-color .16s, background .16s, transform .16s;
}
.roblox-file-drop:hover { border-color: #a45bff; background: #101d35; transform: translateY(-1px); }
.roblox-file-drop.selected { border-style: solid; border-color: #4bcb91; background: #0b2428; }
.roblox-file-drop input { position: absolute; opacity: 0; pointer-events: none; }
.roblox-file-drop > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #ac70ff; background: #201544; }
.roblox-file-drop.selected > span { color: #47db9a; background: #103c32; }
.roblox-file-drop svg { width: 23px; height: 23px; }
.roblox-file-drop strong { font-size: 14px; }
.roblox-file-drop small { color: #7893aa; font-size: 10px; }
.roblox-ownership { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: center; margin-top: 15px; padding: 14px 16px; border: 1px solid #2c4762; border-radius: 11px; background: #0a1a2a; cursor: pointer; }
.roblox-ownership input { width: 17px; height: 17px; accent-color: #913ff1; }
.roblox-ownership > span:first-of-type { color: #60c9ff; }
.roblox-ownership svg { width: 18px; height: 18px; }
.roblox-ownership strong, .roblox-ownership small { display: block; }
.roblox-ownership strong { font-size: 10px; }
.roblox-ownership small { color: #7992a8; margin-top: 4px; font-size: 9px; line-height: 1.4; }
.roblox-privacy-note, .roblox-import-error { display: grid; grid-template-columns: auto 1fr; gap: 11px; padding: 14px 16px; margin-top: 15px; border-radius: 10px; }
.roblox-privacy-note { border: 1px solid #294865; background: #0c2135; }
.roblox-import-error { border: 1px solid #8b314b; background: #31121e; color: #ffc3d0; }
.roblox-privacy-note svg, .roblox-import-error svg { width: 18px; height: 18px; color: #59c8ff; }
.roblox-import-error svg { color: #ff718f; }
.roblox-privacy-note strong { font-size: 10px; }
.roblox-privacy-note p { margin: 5px 0 0; color: #829cb3; font-size: 9px; line-height: 1.5; }
.roblox-import-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 22px; border-top: 1px solid #274159; background: #071522; }
.roblox-import-footer > div { display: flex; align-items: center; gap: 9px; color: #7894ab; font-size: 9px; }
.roblox-import-footer svg { width: 15px; height: 15px; }
.roblox-import-footer .btn-primary { min-width: 170px; justify-content: center; }
.roblox-privacy-note.compact { margin-top: 13px; }
.import-file-categories.compact article { min-height: auto; padding: 12px 14px; grid-template-columns: 34px 1fr; }
.import-file-categories.compact strong { font-size: 11px; }
.import-file-categories.compact p { font-size: 10px; }
.import-progress-panel { display: grid; gap: 10px; }
.import-progress-step { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 14px; border: 1px solid #28445d; border-radius: 12px; background: #091827; }
.import-progress-step > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #15253c; color: #7e95ac; }
.import-progress-step strong { display: block; margin-bottom: 5px; font-size: 11px; }
.import-progress-step p { margin: 0; color: #7f96ab; font-size: 9px; line-height: 1.55; }
.import-progress-step.active { border-color: #4c7cff; background: linear-gradient(145deg, rgba(26,44,74,.95), rgba(8,22,36,.98)); }
.import-progress-step.active > span { background: #17345b; color: #7fd3ff; }
.import-progress-step.active strong { color: #ffffff; }
.import-progress-step.complete { border-color: #2f6a57; background: linear-gradient(145deg, rgba(12,45,35,.92), rgba(8,22,36,.98)); }
.import-progress-step.complete > span { background: #143c31; color: #56db9e; }
.import-progress-step.pending { opacity: .8; }
.roblox-import-footer button:disabled { opacity: .45; cursor: not-allowed; }
.roblox-report-hero { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 17px; border: 1px solid #2c4862; border-radius: 12px; background: #0a1c2c; margin-bottom: 14px; }
.roblox-report-hero > div { display: flex; align-items: center; gap: 13px; }
.roblox-report-hero h3 { margin: 0 0 4px; font-size: 14px; }
.roblox-report-hero p { margin: 0; color: #829cb4; font-size: 9px; }
.roblox-score { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #133b32; color: #43d495; }
.roblox-score.review { background: #3a2c16; color: #ffbd4a; }
.roblox-score svg { width: 20px; height: 20px; }
.roblox-summary-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.roblox-summary-grid article { border: 1px solid #29445e; border-radius: 10px; background: #091a29; padding: 13px; }
.roblox-summary-grid span { display: block; color: #6f899f; font-size: 8px; text-transform: capitalize; }
.roblox-summary-grid strong { display: block; margin-top: 5px; font-size: 18px; }
.roblox-report-columns { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; margin-bottom: 14px; }
.roblox-report-panel { border: 1px solid #29445e; border-radius: 11px; background: #091a29; overflow: hidden; margin-bottom: 14px; }
.roblox-report-panel > header { padding: 13px 15px; border-bottom: 1px solid #21394f; }
.roblox-report-panel > header h3 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 11px; }
.roblox-report-panel > header h3 svg { width: 15px; height: 15px; }
.roblox-report-panel > header p { margin: 4px 0 0; color: #718aa0; font-size: 8px; }
.roblox-report-panel.warning { border-color: #6f5623; background: #201c12; }
.roblox-option-list { display: grid; }
.roblox-option-list label { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #1e3448; cursor: pointer; }
.roblox-option-list label:last-child { border-bottom: 0; }
.roblox-option-list input { margin-top: 2px; accent-color: #9447f1; }
.roblox-option-list strong, .roblox-option-list small { display: block; }
.roblox-option-list strong { font-size: 9px; }
.roblox-option-list small { margin-top: 3px; color: #6e899f; font-size: 8px; line-height: 1.4; }
.roblox-coverage-list { padding: 12px 15px; }
.roblox-coverage-list p { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 9px; color: #9db3c6; font-size: 9px; line-height: 1.35; }
.roblox-coverage-list svg { width: 14px; height: 14px; flex: 0 0 auto; color: #48d397; }
.roblox-coverage-list p:nth-last-child(-n+2) svg { color: #ffb84f; }
.roblox-warning-list { padding: 11px 15px; }
.roblox-warning-list p { margin: 0 0 7px; color: #c0cddd; font-size: 9px; line-height: 1.45; }
.roblox-warning-list p:last-child { margin-bottom: 0; }
.roblox-unsupported { padding: 0 15px 14px; }
.roblox-unsupported > strong { display: block; margin-bottom: 8px; font-size: 9px; }
.roblox-unsupported > div { display: flex; flex-wrap: wrap; gap: 6px; }
.roblox-unsupported span { border: 1px solid #304b65; border-radius: 999px; background: #0c2133; padding: 5px 8px; color: #8fa6ba; font-size: 8px; }
.roblox-unsupported b { color: #d7e7f6; }
.roblox-table-wrap { overflow: auto; max-height: 260px; }
.roblox-table-wrap table { width: 100%; border-collapse: collapse; font-size: 9px; }
.roblox-table-wrap th, .roblox-table-wrap td { padding: 10px 14px; border-bottom: 1px solid #1f3549; text-align: left; vertical-align: middle; }
.roblox-table-wrap th { color: #728da5; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; position: sticky; top: 0; background: #0b1c2b; z-index: 1; }
.roblox-table-wrap td strong, .roblox-table-wrap td small { display: block; }
.roblox-table-wrap td small { margin-top: 3px; color: #718aa0; font-size: 8px; }
.roblox-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 7px; font-size: 7px; font-weight: 900; white-space: nowrap; }
.roblox-status.success { color: #54dfa0; background: #10382e; }
.roblox-status.info { color: #7ecbff; background: #102c42; }
.roblox-status.warning { color: #ffc460; background: #392c15; }
.roblox-status.danger { color: #ff8aa4; background: #401724; }
.roblox-import-complete { grid-template-rows: auto minmax(0, 1fr) auto; }
.roblox-import-complete main { display: grid; place-items: center; align-content: center; padding: 30px; text-align: center; }
.roblox-complete-mark { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: #03170f; background: #32d58e; box-shadow: 0 0 42px rgba(50, 213, 142, .2); }
.roblox-complete-mark svg { width: 34px; height: 34px; }
.roblox-import-complete h3 { margin: 18px 0 7px; font-size: 24px; }
.roblox-import-complete main > p { max-width: 620px; margin: 0; color: #829cb3; line-height: 1.6; }
.roblox-complete-summary { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 10px; margin-top: 22px; }
.roblox-complete-summary span { border: 1px solid #2c4863; border-radius: 10px; background: #0a1b2b; padding: 12px; color: #7c94aa; font-size: 9px; }
.roblox-complete-summary strong { display: block; margin-bottom: 4px; color: #fff; font-size: 16px; }
.roblox-complete-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: #819ab0; font-size: 9px; }
.roblox-complete-note svg { width: 15px; height: 15px; color: #5bcaff; }
.roblox-saved-report .roblox-import-body { padding-top: 16px; }
.roblox-quick-card { border-color: #55408e; background: linear-gradient(145deg, rgba(91, 46, 154, .22), rgba(8, 22, 36, .92)); }

@media (max-width: 820px) {
  .roblox-import-modal { width: calc(100vw - 18px); height: calc(100vh - 18px); }
  .import-window-modal { width: calc(100vw - 18px); max-height: calc(100vh - 18px); }
  .roblox-file-intro, .roblox-report-columns { grid-template-columns: 1fr; }
  .roblox-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .roblox-import-progress { grid-template-columns: auto 1fr auto 1fr auto; padding-inline: 14px; }
  .roblox-import-progress span { font-size: 0; }
  .roblox-import-progress span::first-letter { font-size: 9px; }
  .roblox-import-footer { align-items: flex-start; flex-direction: column; }
  .roblox-import-footer > div:last-child { width: 100%; justify-content: flex-end; }
  .roblox-complete-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.embedded-code-empty, .full-script-empty { display:grid; place-items:center; align-content:center; text-align:center; gap:8px; min-height:160px; padding:24px; color:#7892aa; background:#07131f; }
.embedded-code-empty strong, .full-script-empty h2 { color:#f3f8ff; margin:0; }
.embedded-code-empty span { font-size:9px; }
.full-script-empty { height:100%; min-height:520px; }
.full-script-empty > span { width:52px;height:52px;display:grid;place-items:center;border-radius:14px;background:#1d1640;color:#ae72ff; }
.full-script-empty > span svg { width:25px;height:25px; }
.full-script-empty p { max-width:440px; margin:0 0 8px; line-height:1.55; }

/* Import Files V13 */
.import-file-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.import-file-categories article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 92px;
  padding: 14px;
  border: 1px solid #29425f;
  border-radius: 10px;
  background: #0b1a2a;
}
.import-file-categories article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #24164a;
  color: #a56cff;
}
.import-file-categories article svg { width: 20px; height: 20px; }
.import-file-categories strong { display: block; margin-bottom: 5px; font-size: 10px; }
.import-file-categories p { margin: 0; color: #8197ad; font-size: 8px; line-height: 1.5; }
@media (max-width: 820px) {
  .import-file-categories { grid-template-columns: 1fr; }
}

/* V18 — Explorer UI toggle and docked Terrain Editor */
.explorer-mode-action {
  flex: 0 0 auto;
  padding: 0 12px 9px;
}
.explorer-mode-action button {
  width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #31506c;
  border-radius: 7px;
  background: #0a1826;
  color: #b7c7d7;
  font: 800 9px/1 inherit;
  cursor: pointer;
}
.explorer-mode-action button:hover {
  border-color: #7655d8;
  background: #181d3d;
  color: #fff;
}
.explorer-mode-action button.active {
  border-color: #8456ef;
  background: linear-gradient(135deg, #3a2778, #241c53);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(177, 132, 255, .08);
}
.explorer-mode-action button svg {
  width: 15px;
  height: 15px;
  color: #9b72ff;
}

.studio-right-panel-heading {
  padding-left: 8px;
  gap: 8px;
}
.studio-right-tabs {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 3px;
  height: 34px;
  padding: 3px;
  border: 1px solid #2c4257;
  border-radius: 8px;
  background: #0a1724;
}
.studio-right-tabs button {
  min-width: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #7f93a6;
  font: 800 8px/1 inherit;
  cursor: pointer;
  white-space: nowrap;
}
.studio-right-tabs button:hover {
  color: #e7eef7;
  background: #142538;
}
.studio-right-tabs button.active {
  background: #302465;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(162, 119, 255, .14);
}
.terrain-panel-active {
  background: #0b1927;
}
.terrain-editor-panel-body {
  padding: 12px;
  overflow: auto;
}
.terrain-editor-panel {
  display: grid;
  gap: 11px;
}
.terrain-editor-status {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid #386456;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(17, 53, 43, .88), rgba(9, 27, 40, .96));
}
.terrain-editor-status > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #183d32;
  color: #58daa0;
}
.terrain-editor-status > span svg {
  width: 18px;
  height: 18px;
}
.terrain-editor-status strong,
.terrain-editor-status small {
  display: block;
}
.terrain-editor-status strong {
  color: #f0f6f3;
  font-size: 9px;
}
.terrain-editor-status small {
  margin-top: 4px;
  color: #84a99c;
  font-size: 7px;
  line-height: 1.45;
}
.terrain-editor-status button {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #3f6359;
  border-radius: 6px;
  background: #0d2822;
  color: #9ddbc3;
  font: 800 7px/1 inherit;
}
.terrain-panel-section {
  padding: 11px;
  border: 1px solid #29445a;
  border-radius: 9px;
  background: #091827;
}
.terrain-panel-section h3 {
  margin: 0 0 9px;
  color: #b9c9d7;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.terrain-editor-panel .terrain-mode-row {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin: 0;
}
.terrain-editor-panel .terrain-materials {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.terrain-editor-panel .terrain-brush-shape,
.terrain-editor-panel .terrain-brush-size {
  margin: 0 0 9px;
}
.terrain-editor-panel .terrain-brush-size {
  display: grid;
  gap: 5px;
}
.terrain-editor-panel .terrain-brush-size select {
  width: 100%;
}
.terrain-editor-panel .terrain-mode-help {
  margin: 0;
}
.terrain-editor-panel > p {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #243d52;
  border-radius: 7px;
  background: #071520;
  color: #72899d;
  font-size: 7px;
}
.terrain-tree-summary {
  display: grid;
  gap: 5px;
  padding: 18px 14px;
  text-align: left;
}
.terrain-tree-summary strong {
  color: #c9d6e2;
  font-size: 9px;
}
.terrain-tree-summary span {
  color: #71879b;
  font-size: 8px;
  line-height: 1.5;
}

/* Cloud projects, autosave and recovery V19 */
.project-storage-badge { display:inline-flex; align-items:center; gap:6px; width:max-content; max-width:100%; margin:7px 0 2px; padding:5px 8px; border:1px solid #34506a; border-radius:999px; background:#0b1c2a; color:#9eb2c5; font-size:8px; font-weight:800; line-height:1.2; }
.project-storage-badge svg { width:12px; height:12px; flex:0 0 auto; }
.project-storage-badge.cloud { border-color:#256b5b; background:#0b2a24; color:#69e0b1; }
.project-storage-badge.local { border-color:#6d5424; background:#2a2110; color:#f0c76d; }
.project-storage-badge.offline,.project-storage-badge.warning { border-color:#805f2b; background:#2f2512; color:#ffc66d; }
.project-storage-badge.error { border-color:#84364c; background:#32131e; color:#ff91a8; }
.project-storage-badge.muted { opacity:.7; }
.local-project-warning { margin:8px 0 0; color:#9daec0; font-size:8px; line-height:1.5; }
.project-last-cloud-save { display:block; margin-top:5px; color:#71879b; font-size:7px; line-height:1.35; }
.studio-project-meta span[data-save-state] { display:inline-flex; align-items:center; gap:5px; }
.studio-project-meta span[data-save-state="saved"] { color:#69dba9; }
.studio-project-meta span[data-save-state="saving"],.studio-project-meta span[data-save-state="retrying"] { color:#77cfff; }
.studio-project-meta span[data-save-state="offline"],.studio-project-meta span[data-save-state="saved-locally"],.studio-project-meta span[data-save-state="waiting"] { color:#ffc66d; }
.studio-project-meta span[data-save-state="failed"],.studio-project-meta span[data-save-state="conflict"] { color:#ff819b; }
.project-conflict-actions { display:grid; gap:9px; margin-top:16px; }
.recovery-summary { display:grid; grid-template-columns:34px minmax(0,1fr); gap:12px; padding:15px; border:1px solid #36526e; border-radius:10px; background:#0b1d2c; }
.recovery-summary>svg { width:25px; height:25px; color:#76ccff; }
.recovery-summary strong,.recovery-summary span { display:block; }
.recovery-summary span { margin-top:4px; color:#8aa0b5; font-size:9px; }
.recovery-summary p { margin:9px 0 0; color:#9eb0c0; font-size:9px; line-height:1.55; }
.project-conflict-modal,.recovery-modal { width:min(560px,calc(100vw - 32px)); }
@media(max-width:760px){.project-storage-badge{white-space:normal}.project-conflict-modal,.recovery-modal{width:calc(100vw - 18px)}}


/* V19.4 — UI viewport cleanup, scalable script editor, modern terrain controls */
.studio-ui-preview {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.studio-ui-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}
.ui-root-disabled .studio-ui-canvas,
.ui-disabled-message,
.studio-ui-preview-toolbar,
.ui-preview-object {
  pointer-events: auto;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0,0,0,.20);
}
.ui-preview-object.selected {
  outline: 2px solid #8c63ff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(140,99,255,.12), 0 14px 28px rgba(0,0,0,.24);
}
.ui-preview-textlabel,
.ui-preview-textbox {
  box-shadow: none;
}
.ui-preview-textbox,
.ui-preview-textbutton,
.ui-preview-imagebutton,
.ui-preview-frame,
.ui-preview-scrollingframe,
.ui-preview-canvasgroup,
.ui-preview-viewportframe {
  border: 1px solid rgba(128, 153, 178, .18);
  background-clip: padding-box;
}
.explorer-mode-action {
  padding: 0 12px 10px;
}
.explorer-mode-action button {
  min-height: 38px;
  justify-content: flex-start;
  padding: 0 12px;
  border-color: #29455f;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(15,30,45,.98), rgba(10,23,36,.98));
  color: #e6eef8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.explorer-mode-action button:hover {
  border-color: #7c59ee;
  background: linear-gradient(180deg, rgba(31,33,69,.96), rgba(16,25,45,.98));
}
.explorer-mode-action button.active {
  background: linear-gradient(135deg, #5531b6, #2a225f);
  box-shadow: inset 0 0 0 1px rgba(184, 149, 255, .15), 0 10px 22px rgba(62,47,130,.22);
}
.explorer-mode-action button svg {
  width: 16px;
  height: 16px;
  color: #a77bff;
}
.studio-right-panel-heading {
  padding: 8px 10px;
  min-height: 48px;
}
.studio-right-tabs {
  height: 38px;
  padding: 4px;
  border-radius: 10px;
}
.studio-right-tabs button {
  padding: 0 14px;
  font-size: 11px;
  font-weight: 700;
}
.studio-right-tabs button.active {
  background: linear-gradient(135deg,#5d33c8,#312667);
}
.terrain-panel-active {
  background: linear-gradient(180deg,#0b1827,#0a1522);
}
.terrain-editor-panel-body {
  padding: 14px;
}
.terrain-editor-panel {
  display: grid;
  gap: 14px;
}
.terrain-editor-status {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(72, 114, 105, .9);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 57, 48, .92), rgba(9, 24, 38, .98));
  box-shadow: inset 0 0 0 1px rgba(103, 183, 148, .06);
}
.terrain-editor-status > span {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(35, 85, 70, .86);
}
.terrain-editor-status > span svg {
  width: 22px;
  height: 22px;
}
.terrain-editor-status strong {
  font-size: 14px;
}
.terrain-editor-status small {
  margin-top: 5px;
  color: #9ec1b5;
  font-size: 11px;
  line-height: 1.5;
}
.terrain-panel-section {
  padding: 14px;
  border: 1px solid #27435a;
  border-radius: 12px;
  background: linear-gradient(180deg,#0b1827,#091421);
}
.terrain-panel-section h3 {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: .08em;
}
.terrain-editor-panel .terrain-mode-row {
  gap: 8px;
}
.terrain-mode-row button,
.terrain-materials button,
.terrain-editor-panel select,
.script-language-tools button,
.viewport-corner-tools button,
.mini-console-head button,
.console-filters button,
.script-output button {
  border-radius: 10px;
}
.terrain-mode-row button {
  min-height: 40px;
  border: 1px solid #2d4860;
  background: linear-gradient(180deg,#112031,#0b1725);
  color: #d8e3ee;
  font-size: 12px;
  font-weight: 700;
}
.terrain-mode-row button.active {
  border-color: #8055ef;
  background: linear-gradient(135deg,#5331ba,#2a225f);
}
.terrain-editor-panel .terrain-brush-shape,
.terrain-editor-panel .terrain-brush-size {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  color: #bfd0df;
  font-size: 12px;
}
.terrain-editor-panel select {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #2b4760;
  background: #0b1826;
  color: #f2f6fb;
  font-size: 12px;
}
.terrain-editor-panel .terrain-materials {
  gap: 8px;
}
.terrain-materials button {
  min-height: 42px;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #29445a;
  border-radius: 10px;
  background: linear-gradient(180deg,#0f1d2c,#0a1623);
  color: #e2ebf3;
  font-size: 12px;
  font-weight: 700;
}
.terrain-materials button.active {
  border-color: #7f5bea;
  background: linear-gradient(135deg,#402f8c,#211f4f);
}
.terrain-materials i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}
.terrain-editor-panel .terrain-mode-help,
.terrain-editor-panel > p {
  font-size: 11px;
  line-height: 1.55;
}
.terrain-editor-panel > p {
  padding: 10px 12px;
  border-radius: 10px;
}
.terrain-tree-summary {
  font-size: 12px;
}
.terrain-tree-summary strong {
  font-size: 13px;
}

.script-workspace-v11 {
  grid-template-columns: 328px minmax(0, 1fr) !important;
}
.all-scripts-panel {
  grid-template-rows: auto auto minmax(0,1fr);
}
.all-scripts-panel header {
  min-height: 52px;
  padding: 0 14px;
}
.all-scripts-panel header strong {
  font-size: 15px;
}
.all-scripts-panel header button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.all-scripts-panel label {
  margin: 12px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
}
.all-scripts-panel input {
  font-size: 12px;
}
.all-scripts-list button {
  min-height: 46px;
  padding: 0 14px;
}
.all-scripts-list button strong {
  font-size: 12px;
}
.all-scripts-list button small {
  font-size: 10px;
}
.full-script {
  grid-template-rows: 46px 46px minmax(320px,1fr) 34px 190px;
}
.full-script-tabs {
  min-height: 46px;
}
.script-open-tab > button {
  min-height: 46px;
  font-size: 12px;
  padding: 0 12px;
}
.script-breadcrumb {
  min-height: 46px;
  padding: 0 16px;
  font-size: 12px;
}
.script-breadcrumb > button:first-child {
  font-size: 12px;
}
.script-language-tools {
  gap: 8px;
}
.script-language-tools button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}
.large-code {
  grid-template-columns: 56px minmax(0,1fr);
}
.large-code > div,
.large-code textarea {
  font-size: 12px;
  line-height: 1.65;
}
.script-status {
  min-height: 34px;
  padding: 0 16px;
  font-size: 11px;
}
.script-output > div:first-child {
  min-height: 42px;
  gap: 12px;
  padding: 0 14px;
}
.script-output strong {
  font-size: 14px;
}
.script-output button {
  font-size: 11px;
  color: #dbe7f1;
}
.script-output input {
  height: 32px;
  border-radius: 9px;
  padding: 0 10px;
  font-size: 11px;
}
.mini-tabs button {
  font-size: 11px;
}
.mini-console-head {
  height: 42px;
}
.mini-console-head strong {
  font-size: 13px;
}
.mini-console-head button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #314f67;
  background: linear-gradient(180deg,#172742,#101f35);
  font-size: 11px;
}
.console-filters {
  gap: 8px;
  padding: 10px 12px 6px;
}
.console-filters button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
  color: #ffcc70;
}
.console-filters button.active {
  padding: 0 12px;
  background: linear-gradient(135deg,#5f3ac9,#312667);
}
.compact-logs {
  font-size: 10px;
  line-height: 1.7;
}
.viewport-corner-tools button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border-color: #2d4860;
  background: linear-gradient(180deg,rgba(13,28,43,.94),rgba(9,19,31,.94));
  font-size: 11px;
}

@media (max-width: 1360px) {
  .script-workspace-v11 {
    grid-template-columns: 260px minmax(0, 1fr) !important;
  }
}

/* V20 — Enterprise polish and rendering-performance presentation */
:root {
  --studio-surface-0: #050d17;
  --studio-surface-1: #081522;
  --studio-surface-2: #0c1b2b;
  --studio-surface-3: #112235;
  --studio-border: rgba(82, 117, 151, .36);
  --studio-border-strong: rgba(113, 91, 232, .72);
  --studio-accent: #8158f4;
  --studio-accent-bright: #a57cff;
  --studio-text: #f5f8fc;
  --studio-muted: #8ea3b7;
}
.studio-shell {
  background: radial-gradient(circle at 45% -20%, rgba(96,63,199,.11), transparent 36%), var(--studio-surface-0);
}
.studio-topbar {
  border-bottom: 1px solid rgba(72, 103, 134, .38);
  background: linear-gradient(180deg, rgba(10,24,38,.98), rgba(6,16,27,.98));
  box-shadow: 0 12px 34px rgba(0,0,0,.20);
}
.studio-commandbar {
  border-bottom: 1px solid rgba(69, 101, 132, .42);
  background: linear-gradient(180deg, #0d1d2d, #091725);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.studio-layout {
  background: rgba(35, 56, 76, .64);
}
.studio-left,
.studio-right,
.studio-centre,
.studio-rail {
  border-color: var(--studio-border);
}
.studio-left,
.studio-right {
  background: linear-gradient(180deg, #0d1d2c, #091622);
  box-shadow: inset 0 1px rgba(255,255,255,.018);
}
.studio-panel-heading {
  min-height: 48px;
  border-bottom: 1px solid var(--studio-border);
  background: linear-gradient(180deg, rgba(18,35,52,.98), rgba(13,28,43,.98));
}
.studio-panel-heading strong {
  color: var(--studio-text);
  font-size: 13px;
  letter-spacing: -.01em;
}
.studio-icon-button,
.icon-btn,
.dock-icon-btn {
  border: 1px solid transparent;
  border-radius: 9px;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.studio-icon-button:hover,
.icon-btn:hover,
.dock-icon-btn:hover {
  border-color: rgba(126,91,235,.50);
  background: rgba(69,45,139,.34);
  color: #fff;
  transform: translateY(-1px);
}
.command-tool,
.wide-command,
.btn,
.explorer-chips button,
.workspace-tabs button,
.studio-tree-row,
.studio-panel-search label,
.studio-prop-row input,
.studio-prop-row select {
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.command-tool,
.wide-command {
  border-radius: 9px;
}
.command-tool:hover,
.wide-command:hover {
  background: rgba(45,36,96,.60);
  color: #fff;
}
.command-tool.active,
.wide-command.active {
  background: linear-gradient(145deg, #4d2ba6, #29225e);
  box-shadow: inset 0 0 0 1px rgba(175,139,255,.14), 0 8px 22px rgba(49,31,105,.22);
}
.explorer-chips {
  gap: 6px;
  padding: 12px;
}
.explorer-chips button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #29445c;
  border-radius: 9px;
  background: linear-gradient(180deg,#102032,#0b1826);
  color: #b9c9d8;
  font-size: 10px;
  font-weight: 700;
}
.explorer-chips button:hover {
  border-color: #6d52c9;
  color: #fff;
}
.explorer-chips button.active {
  border-color: #8158f4;
  background: linear-gradient(135deg,#5230ad,#2c245f);
  color: #fff;
  box-shadow: 0 7px 18px rgba(60,38,131,.22);
}
.studio-panel-search {
  padding: 10px 12px;
}
.studio-panel-search label {
  min-height: 38px;
  border: 1px solid #29455e;
  border-radius: 10px;
  background: #071420;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.studio-panel-search label:focus-within {
  border-color: #7957df;
  box-shadow: 0 0 0 3px rgba(121,87,223,.12);
}
.studio-tree-row {
  min-height: 38px;
  border-radius: 8px;
  color: #c3d0dc;
}
.studio-tree-row:hover {
  background: rgba(34,52,72,.74);
  color: #fff;
}
.studio-tree-row.selected {
  background: linear-gradient(90deg, rgba(73,45,151,.92), rgba(48,37,105,.82));
  color: #fff;
  box-shadow: inset 3px 0 #a47bff;
}
.workspace-tabs {
  min-height: 46px;
  border-bottom: 1px solid var(--studio-border);
  background: #0a1826;
}
.workspace-tabs button {
  min-height: 46px;
  border-color: var(--studio-border);
  color: #b9c7d4;
}
.workspace-tabs button.active {
  color: #fff;
  background: linear-gradient(180deg,rgba(37,32,81,.94),rgba(18,28,45,.96));
  box-shadow: inset 0 -2px #8a61f2;
}
.studio-viewport {
  background: #08131f;
  box-shadow: inset 0 0 0 1px rgba(89,118,146,.16);
}
.studio-viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(2,7,12,.18);
}
.studio-prop-section {
  border-top-color: rgba(66,96,124,.30);
}
.studio-prop-row {
  min-height: 42px;
  font-size: 11px;
}
.studio-prop-row input:not([type=checkbox]):not([type=range]),
.studio-prop-row select {
  height: 34px;
  padding: 0 10px;
  border: 1px solid #29445b;
  border-radius: 8px;
  background: #071521;
  font-size: 11px;
}
.studio-prop-row input:focus,
.studio-prop-row select:focus {
  border-color: #7857dc;
  box-shadow: 0 0 0 3px rgba(120,87,220,.11);
}
.btn {
  border-radius: 10px;
  font-weight: 750;
}
.btn-primary {
  border-color: rgba(166,122,255,.42);
  background: linear-gradient(135deg,#7843e8,#4d2ab4);
  box-shadow: 0 10px 24px rgba(82,46,178,.24);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(82,46,178,.30);
}
.studio-project-meta span[data-save-state='saving'],
.studio-project-meta span[data-save-state='retrying'] {
  color: #7ed8ff;
}
.studio-project-meta span[data-save-state='saved'] {
  color: #65dda0;
}
.studio-project-meta span[data-save-state='failed'],
.studio-project-meta span[data-save-state='conflict'] {
  color: #ff8299;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #354e68 #081521;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: #081521; }
*::-webkit-scrollbar-thumb {
  border: 2px solid #081521;
  border-radius: 999px;
  background: linear-gradient(180deg,#3d5873,#2d4056);
}
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg,#6846c2,#443276); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* V20.3 — terrain views, water play testing and safety controls */
.terrain-view-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.terrain-view-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #2d4961;
  border-radius: 10px;
  background: linear-gradient(180deg, #112131, #0b1725);
  color: #e2ebf4;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.terrain-view-actions button:hover {
  border-color: #7654df;
  background: linear-gradient(135deg, #352972, #171d3d);
  color: #fff;
}
.terrain-view-actions svg {
  width: 15px;
  height: 15px;
  color: #a47aff;
}
.terrain-danger-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(154, 57, 79, .75);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(61, 18, 31, .86), rgba(18, 20, 34, .98));
}
.terrain-danger-zone strong,
.terrain-danger-zone span {
  display: block;
}
.terrain-danger-zone strong {
  color: #ffd8e1;
  font-size: 12px;
}
.terrain-danger-zone span {
  margin-top: 4px;
  color: #b98e9a;
  font-size: 9px;
  line-height: 1.45;
}
.terrain-danger-zone button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #9f3d57;
  border-radius: 9px;
  background: linear-gradient(180deg, #5a1d31, #3d1525);
  color: #ffe8ed;
  font-size: 10px;
  font-weight: 800;
}
.terrain-danger-zone button:hover:not(:disabled) {
  border-color: #e05a79;
  background: linear-gradient(180deg, #7b2943, #50192e);
}
.terrain-danger-zone button:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.terrain-danger-zone button svg {
  width: 14px;
  height: 14px;
}
.underwater-overlay {
  position: absolute;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(145, 228, 255, .08), transparent 38%),
    linear-gradient(180deg, rgba(22, 126, 176, .25), rgba(3, 46, 78, .54));
  backdrop-filter: blur(.7px) saturate(.82);
  transition: opacity .18s ease;
}
.underwater-overlay.active {
  opacity: 1;
}
@media (max-width: 1180px) {
  .terrain-view-actions {
    grid-template-columns: 1fr;
  }
}

/* V20.4 — authenticated interface recovery */
.authenticated-error-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: radial-gradient(circle at 50% 20%, rgba(79, 45, 166, .22), transparent 42%), #030b16;
  color: #f5f9ff;
}
.authenticated-error-card {
  width: min(620px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 36px;
  border: 1px solid #294863;
  border-radius: 20px;
  background: linear-gradient(180deg, #0b1d2e, #071522);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .52);
  text-align: center;
}
.authenticated-error-card > svg {
  width: 38px;
  height: 38px;
  color: #ff7895;
}
.authenticated-error-card > span {
  color: #a875ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}
.authenticated-error-card h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
}
.authenticated-error-card p,
.authenticated-error-card small {
  max-width: 500px;
  margin: 0;
  color: #91a8bd;
  line-height: 1.6;
}
.authenticated-error-card > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

/* V21 — Roblox Migration Workspace */
.roblox-migration-workspace {
  width: min(1180px, calc(100vw - 32px));
  max-width: 1180px;
  height: min(860px, calc(100vh - 32px));
}
.migration-header-actions { display:flex; align-items:center; gap:10px; }
.migration-decoder-badge {
  display:inline-flex; align-items:center; gap:6px; min-height:30px; padding:0 10px;
  border:1px solid #28604d; border-radius:9px; background:#0c2c24; color:#7ee0b4;
  font-size:10px; font-weight:750;
}
.migration-decoder-badge svg { width:14px; height:14px; }
.migration-workspace-body { padding:18px 20px 22px; }
.migration-overview {
  display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 16px;
  border:1px solid #29455e; border-radius:13px; background:linear-gradient(135deg,#0c1b2b,#0a1724);
}
.migration-overview > div:first-child { display:flex; align-items:center; gap:12px; min-width:0; }
.migration-overview h3 { margin:0 0 5px; color:#f7f9fc; font-size:14px; }
.migration-overview p { margin:0; max-width:650px; color:#8fa4b8; font-size:10px; line-height:1.55; }
.migration-overview-stats { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.migration-overview-stats span {
  min-width:72px; display:grid; gap:2px; padding:8px 10px; border:1px solid #263f55;
  border-radius:9px; background:#081522; color:#7f94a8; font-size:8px; text-align:center;
}
.migration-overview-stats strong { color:#f2f7fc; font-size:13px; }
.migration-workspace-grid {
  min-height:420px; display:grid; grid-template-columns:330px minmax(0,1fr); gap:12px; margin-top:12px;
}
.migration-category-list,
.migration-preview {
  min-height:0; border:1px solid #29445a; border-radius:13px; background:#081522; overflow:hidden;
}
.migration-category-list { display:flex; flex-direction:column; overflow:auto; padding:10px; }
.migration-category-list > header { display:flex; justify-content:space-between; align-items:center; padding:4px 4px 10px; }
.migration-category-list > header strong { color:#eef4fa; font-size:12px; }
.migration-category-list > header small { color:#758ba0; font-size:9px; }
.migration-category { position:relative; display:grid; grid-template-columns:22px minmax(0,1fr); align-items:center; gap:6px; margin:2px 0; padding:4px; border:1px solid transparent; border-radius:10px; }
.migration-category:hover { background:#0e1d2c; }
.migration-category.previewing { border-color:#6f50d9; background:linear-gradient(135deg,#1d1e43,#111b31); }
.migration-category.empty { opacity:.52; }
.migration-category > input { width:15px; height:15px; accent-color:#8254ef; }
.migration-category > button { min-width:0; display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:9px; width:100%; padding:8px; border:0; background:transparent; color:#dce6f0; text-align:left; cursor:pointer; }
.migration-category > button > span:first-child { width:34px; height:34px; display:grid; place-items:center; border-radius:9px; background:#13263a; color:#a375ff; }
.migration-category > button svg { width:17px; height:17px; }
.migration-category > button > span:nth-child(2) { min-width:0; display:grid; gap:3px; }
.migration-category strong { font-size:10px; }
.migration-category small { color:#7890a5; font-size:8px; line-height:1.35; }
.migration-category em { min-width:28px; padding:5px 7px; border-radius:999px; background:#15283b; color:#a8b8c7; font-size:8px; font-style:normal; text-align:center; }
.migration-preview { display:grid; grid-template-rows:auto minmax(200px,1fr) auto; }
.migration-preview > header { min-height:58px; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 14px; border-bottom:1px solid #29445a; background:#0c1a29; }
.migration-preview > header > div { display:flex; align-items:center; gap:10px; }
.migration-preview > header > div > span { width:34px; height:34px; display:grid; place-items:center; border-radius:9px; background:#1b254e; color:#a775ff; }
.migration-preview > header strong { display:block; color:#f2f7fb; font-size:12px; }
.migration-preview > header small { display:block; max-width:520px; margin-top:3px; color:#7e94a8; font-size:8px; }
.migration-preview-table { min-height:0; overflow:auto; }
.migration-preview-table table { width:100%; border-collapse:collapse; }
.migration-preview-table th { position:sticky; top:0; z-index:1; padding:9px 12px; border-bottom:1px solid #263e53; background:#0b1826; color:#758da2; font-size:8px; text-align:left; text-transform:uppercase; letter-spacing:.05em; }
.migration-preview-table td { padding:9px 12px; border-bottom:1px solid rgba(38,62,83,.65); color:#cbd7e2; font-size:9px; vertical-align:top; }
.migration-preview-table td strong,.migration-preview-table td small { display:block; }
.migration-preview-table td small { margin-top:3px; color:#71889d; font-size:8px; }
.migration-notes { max-height:130px; overflow:auto; padding:10px 13px; border-top:1px solid #604531; background:#261a14; }
.migration-notes strong { display:flex; align-items:center; gap:6px; color:#f1bd75; font-size:9px; }
.migration-notes p { margin:5px 0 0; color:#b99a77; font-size:8px; line-height:1.45; }
.migration-options { display:grid; grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) minmax(220px,1fr); gap:10px; margin-top:12px; }
.migration-options > div,.migration-options label { padding:12px; border:1px solid #28445a; border-radius:11px; background:#091726; }
.migration-options > div strong,.migration-options label strong { display:block; color:#eef4fa; font-size:10px; }
.migration-options p,.migration-options label small { display:block; margin:4px 0 0; color:#7b91a5; font-size:8px; line-height:1.45; }
.migration-options label { display:grid; grid-template-columns:18px 1fr; gap:8px; cursor:pointer; }
.migration-options input { accent-color:#8658ef; }
.migration-safety { display:flex; gap:10px; margin-top:10px; padding:11px 13px; border:1px solid #255043; border-radius:11px; background:#0a241e; }
.migration-safety > span { color:#58d69c; }
.migration-safety svg { width:17px; height:17px; }
.migration-safety strong { color:#dff7ed; font-size:9px; }
.migration-safety p { margin:4px 0 0; color:#78a797; font-size:8px; line-height:1.5; }
@media(max-width:900px){
  .roblox-migration-workspace{width:calc(100vw - 16px);height:calc(100vh - 16px)}
  .migration-workspace-grid{grid-template-columns:1fr;min-height:auto}
  .migration-category-list{max-height:280px}
  .migration-preview{min-height:360px}
  .migration-options{grid-template-columns:1fr}
  .migration-overview{align-items:flex-start;flex-direction:column}
}
.imported-service-row > span:last-child { min-width:0; display:grid; gap:2px; }
.imported-service-row strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#dce6f0; font-size:9px; }
.imported-service-row small { color:#6f879c; font-size:7px; }
.creator-compatibility-badge { display:inline-flex; align-items:center; width:max-content; margin-top:3px; padding:3px 7px; border:1px solid #4a3d83; border-radius:999px; background:#1a1738; color:#b99bff; font-size:7px; font-style:normal; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }

/* V22 — real email verification states */
.auth-success {
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin-top:18px;
  padding:11px 13px;
  border:1px solid rgba(65,214,147,.38);
  border-radius:9px;
  color:#d8ffed;
  background:rgba(18,100,72,.22);
  font-size:10px;
  line-height:1.45;
}
.auth-success svg {
  flex:0 0 auto;
  width:18px;
  height:18px;
  color:#53dca0;
}
.verification-expiry {
  margin:-2px 0 0;
  color:#71879d;
  font-size:9px;
  line-height:1.5;
  text-align:center;
}
.verification-footer .auth-link:disabled {
  cursor:not-allowed;
  opacity:.55;
}

/* V22.4 — marquee multi-selection and Roblox-style editor hotkeys */
.viewport-selection-marquee {
  position: absolute;
  z-index: 75;
  pointer-events: none;
  box-sizing: border-box;
  min-width: 2px;
  min-height: 2px;
  border: 1px solid rgba(151, 110, 255, .98);
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(112, 69, 235, .16), rgba(54, 139, 255, .08));
  box-shadow: 0 0 0 1px rgba(180, 145, 255, .10), 0 8px 28px rgba(39, 23, 87, .20);
}
.viewport-selection-marquee[hidden] { display: none !important; }
.studio-tree-row.selected {
  box-shadow: inset 3px 0 0 #9b73ff;
}

/* V24 — restore the original ESB Studio identity for the initial release.
   Roblox Studio remains a behaviour reference only; this shell is intentionally ESB. */
/* Restored ESB Studio workspace shell */
.studio-shell { height:100vh; min-width:1120px; display:grid; grid-template-rows:50px 98px minmax(0,1fr); overflow:hidden; color:#f5f7fb; background:#07111c; --studio-line:#223548; --studio-soft:#18293a; --studio-panel:#132231; --studio-deep:#08131f; --studio-purple:#6842d9; }
.studio-shell button,.studio-shell input,.studio-shell select,.studio-shell textarea { font:inherit; }
.studio-shell button { cursor:pointer; }
.studio-topbar { display:grid; grid-template-columns:185px minmax(420px,1fr) 190px 180px; align-items:center; border-bottom:1px solid #17283a; background:#06101a; }
.studio-brand { height:100%; display:flex; align-items:center; gap:12px; padding:0 16px; border:0; background:transparent; color:#fff; font-size:16px; font-weight:800; letter-spacing:.01em; }
.studio-brand img { width:34px; height:34px; filter:hue-rotate(55deg) saturate(1.25); }
.studio-menu-bar { display:flex; align-items:stretch; height:100%; }
.studio-menu-bar button { min-width:54px; padding:0 14px; border:0; background:transparent; color:#f0f2f6; font-size:12px; font-weight:700; }
.studio-menu-bar button:hover { background:#111f2e; }
.studio-project-meta { display:flex; flex-direction:column; align-items:flex-end; padding-right:14px; min-width:0; }
.studio-project-meta strong { max-width:170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.studio-project-meta span { margin-top:2px; color:#8fa0b2; font-size:9px; }
.studio-title-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; padding-right:9px; }
.studio-icon-button { width:31px; height:31px; display:grid; place-items:center; border:0; border-radius:6px; background:transparent; color:#cbd4df; }
.studio-icon-button:hover { background:#17283a; color:#fff; }
.studio-icon-button svg { width:17px; height:17px; }
.studio-publish { height:32px; min-width:70px; border:1px solid #704be2; border-radius:6px; background:linear-gradient(180deg,#6c48d9,#5431b3); color:#fff; font-size:11px; font-weight:800; }
.studio-publish:hover { filter:brightness(1.12); }
.studio-commandbar { display:grid; grid-template-columns:138px minmax(660px,1fr) 420px; gap:8px; padding:0 8px 8px 78px; border-bottom:1px solid #1b2f43; background:#07121e; }
.command-group { position:relative; min-width:0; display:flex; align-items:center; gap:3px; padding:18px 10px 6px; border:1px solid #20364a; border-radius:7px; background:#122130; }
.command-caption { position:absolute; top:7px; left:10px; color:#8090a1; font-size:7px; letter-spacing:.05em; }
.command-tool { min-width:56px; height:68px; padding:7px 5px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; border:1px solid transparent; border-radius:6px; background:transparent; color:#f5f7fa; font-size:10px; }
.command-tool>svg { width:23px; height:23px; }
.command-tool span { display:flex; align-items:center; gap:3px; white-space:nowrap; }
.command-tool span svg { width:10px; height:10px; }
.command-tool:hover,.command-tool.active { border-color:#2d4260; background:#1b2a45; }
.command-tool.active { background:#241f58; border-color:#4b3ca0; }
.command-green svg { color:#42d887; fill:#42d88722; }
.command-play { justify-content:space-around; }
.command-play .command-tool { min-width:50px; }
.command-tools { overflow:visible; }
.command-other { justify-content:space-evenly; }
.wide-command { height:52px; display:flex; align-items:center; justify-content:center; gap:10px; padding:0 14px; border:0; border-right:1px solid #213448; background:transparent; color:#f1f3f7; font-size:10px; font-weight:700; }
.wide-command:last-child { border-right:0; }
.wide-command:hover,.wide-command.active { background:#18263c; color:#fff; }
.wide-command svg { width:20px; height:20px; color:#8c50ff; }
.part-menu-wrap { position:relative; }
.studio-part-menu { position:absolute; z-index:180; top:66px; right:-12px; width:170px; padding:7px; border:1px solid #2a4058; border-radius:7px; background:#122130; box-shadow:0 20px 45px rgba(0,0,0,.42); }
.studio-part-menu button { width:100%; display:flex; align-items:center; gap:10px; padding:8px 9px; border:0; border-radius:5px; background:transparent; color:#eef2f7; font-size:11px; text-align:left; }
.studio-part-menu button:hover { background:#1d3045; }
.studio-part-menu button svg { width:18px; height:18px; color:#d6d9ef; }
.part-menu-divider { height:1px; margin:5px 0; background:#2b3e52; }
.studio-layout { min-height:0; display:grid; grid-template-columns:74px 326px minmax(430px,1fr) 370px; gap:1px; background:#203346; }
.studio-rail,.studio-left,.studio-centre,.studio-right { min-width:0; min-height:0; background:#132231; overflow:hidden; }
.studio-rail { display:flex; flex-direction:column; justify-content:space-between; background:linear-gradient(180deg,#07121d,#081523 68%,#07121d); }
.rail-items { display:grid; gap:3px; padding:8px 7px; }
.rail-button { min-height:54px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:5px 3px; border:0; border-radius:7px; background:transparent; color:#c5d2e1; font-size:7.3px; font-weight:700; line-height:1.18; text-align:center; letter-spacing:.01em; }
.rail-button svg { width:19px; height:19px; color:#8a96b8; }
.rail-button:hover { background:#112033; color:#ecf3ff; }
.rail-button:hover svg { color:#b58cff; }
.rail-button.active { background:#2c235f; color:#ffffff; box-shadow: inset 0 0 0 1px rgba(150,112,255,.15); }
.rail-button.active svg { color:#a56cff; }
.rail-account { position:relative; display:grid; justify-items:center; gap:6px; padding:10px 0 11px; }
.rail-avatar { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(135deg,#56d9ff,#7c4cff); color:#06111c; font-size:10px; font-weight:900; border:2px solid #19334b; }
.rail-online { position:absolute; width:9px; height:9px; right:14px; top:33px; border:2px solid #07121e; border-radius:50%; background:#39d67e; }
.rail-account button { width:24px; height:24px; display:grid; place-items:center; border:0; background:transparent; color:#c2cfe0; }
.studio-left { display:flex; flex-direction:column; }
.studio-panel-heading { flex:0 0 45px; display:flex; align-items:center; justify-content:space-between; padding:0 14px; border-bottom:1px solid #24384b; background:#132231; }
.studio-panel-heading strong { font-size:14px; font-weight:800; }
.studio-panel-search { padding:8px 12px; }
.studio-panel-search label { height:32px; display:flex; align-items:center; gap:9px; padding:0 10px; border:1px solid #203347; border-radius:4px; background:#08131f; color:#aebaca; }
.studio-panel-search svg { width:16px; height:16px; }
.studio-panel-search input { min-width:0; flex:1; border:0; outline:0; background:transparent; color:#dae1e8; font-size:10px; }
.explorer-chips { display:flex; flex-wrap:wrap; gap:6px; padding:10px 12px 4px; }
.explorer-chips button { min-height:30px; padding:0 12px; border:1px solid #263c50; border-radius:4px; background:#0f1c2a; color:#eef2f7; font-size:9px; }
.explorer-chips button:hover,.explorer-chips button.active { border-color:#4a3b9e; background:#29205d; }
.explorer-chips button:last-child { width:34px; padding:0; }
.studio-tree { flex:1; min-height:0; overflow:auto; padding:3px 0 12px; }
.studio-tree-row { width:100%; min-height:30px; display:grid; grid-template-columns:15px 16px minmax(0,1fr) 19px; align-items:center; gap:6px; padding:0 10px 0 calc(11px + var(--indent,0)*19px); border:0; background:transparent; color:#eef2f6; font-size:10px; text-align:left; }
.studio-tree-row:hover { background:#1a2b3d; }
.studio-tree-row.selected { background:#302763; }
.studio-tree-row svg { width:14px; height:14px; color:#9ddcff; }
.studio-tree-row i,.studio-tree-row button { display:grid; place-items:center; border:0; background:transparent; color:#dce4ed; }
.studio-tree-row.root { grid-template-columns:15px 16px minmax(0,1fr) 19px; }
.folder-row-mini { color:#fff; }
.studio-tree-empty { padding:25px 20px; color:#718397; font-size:10px; }
.studio-centre { display:flex; flex-direction:column; background:#0c1825; }
.workspace-tabs { flex:0 0 40px; display:flex; align-items:stretch; border-bottom:1px solid #25394d; background:#132231; }
.workspace-tabs button { min-width:120px; display:flex; align-items:center; gap:9px; padding:0 14px; border:0; border-right:1px solid #263a4d; background:transparent; color:#cfd7e0; font-size:10px; }
.workspace-tabs button.active { background:#192b3d; color:#fff; }
.workspace-tabs button span { margin-left:auto; }
.workspace-tabs button svg { width:15px; height:15px; color:#a597e9; }
.world-stack { min-height:0; flex:1; display:grid; grid-template-rows:minmax(300px,1.7fr) minmax(220px,.9fr); gap:1px; background:#263b50; }
.studio-viewport { position:relative; min-height:0; overflow:hidden; background:#0f1924; }
.studio-viewport canvas { width:100%; height:100%; display:block; }
.viewport-corner-tools { position:absolute; z-index:5; left:10px; top:10px; display:flex; gap:6px; }
.viewport-corner-tools button,.advanced-toolbar button,.vfx-toolbar button { min-height:30px; padding:0 10px; border:1px solid #2a4258; border-radius:4px; background:rgba(8,19,31,.88); color:#e3e8ef; font-size:9px; }
.viewport-cube { position:absolute; z-index:5; top:22px; right:21px; width:48px; height:48px; display:grid; place-items:center; border:1px solid #5d6874; background:linear-gradient(135deg,#5d6570,#303a46); color:#101820; font-size:8px; transform:skewY(-8deg); opacity:.9; }
.viewport-cube b { position:absolute; top:-20px; color:#4ce27f; font-size:14px; }
.viewport-cube i { position:absolute; left:-18px; bottom:-7px; color:#ff504f; font-style:normal; font-size:14px; }
.viewport-cube em { position:absolute; right:-18px; bottom:-7px; color:#3c9cff; font-style:normal; font-size:14px; }
.mini-code-console { min-height:0; display:grid; grid-template-columns:minmax(0,1.45fr) minmax(260px,.75fr); gap:1px; background:#263b50; }
.mini-code,.mini-console { min-height:0; background:#132231; overflow:hidden; }
.mini-tabs { height:36px; display:flex; border-bottom:1px solid #263a4e; }
.mini-tabs button { display:flex; align-items:center; gap:8px; padding:0 13px; border:0; border-right:1px solid #263a4e; background:transparent; color:#dce3ea; font-size:10px; }
.mini-tabs button.active { background:#192a3b; }
.embedded-code { height:calc(100% - 36px); min-height:0; display:grid; grid-template-columns:42px minmax(0,1fr); background:#0e1b29; }
.embedded-lines { padding:10px 8px; color:#5f7488; font:9px/1.55 Consolas,monospace; text-align:right; background:#0a1521; }
.embedded-code textarea { width:100%; height:100%; padding:10px; border:0; resize:none; outline:0; background:#0e1b29; color:#d7dde6; font:9px/1.55 Consolas,monospace; }
.mini-console-head { height:36px; display:flex; align-items:center; justify-content:space-between; padding:0 12px; border-bottom:1px solid #263a4e; }
.mini-console-head strong { font-size:11px; }
.mini-console-head button { border:0; border-radius:4px; background:#222653; color:#fff; padding:5px 8px; font-size:8px; }
.console-filters { display:flex; gap:10px; align-items:center; padding:8px 12px 4px; }
.console-filters button { border:0; background:transparent; color:#ffb33b; font-size:10px; }
.console-filters button.active { padding:6px 12px; border-radius:4px; background:#2c2465; color:#fff; }
.compact-logs { padding:4px 12px; overflow:auto; color:#b2bfcc; font:9px/1.65 Consolas,monospace; }
.compact-logs div { display:flex; gap:9px; }
.compact-logs time { color:#74889d; }
.studio-right { display:flex; flex-direction:column; transition:box-shadow .2s; }
.studio-right.focus-flash { box-shadow:inset 0 0 0 2px #8356ff,0 0 28px rgba(112,74,224,.32); }
.studio-properties-body { flex:1; min-height:0; overflow:auto; }
.studio-prop-section { border-top:1px solid #263a4c; padding:0 13px 12px; }
.studio-prop-section h3 { margin:0 -1px 7px; padding:13px 0 8px; color:#f0f3f7; font-size:10px; }
.studio-prop-row { min-height:36px; display:grid; grid-template-columns:105px minmax(0,1fr); align-items:center; gap:9px; color:#9facba; font-size:9px; }
.studio-prop-row>label { color:#aeb9c6; }
.studio-prop-row input:not([type=checkbox]):not([type=range]),.studio-prop-row select { width:100%; height:27px; padding:0 8px; border:1px solid #172a3b; border-radius:3px; outline:0; background:#091521; color:#eef2f6; font-size:9px; }
.studio-prop-row input[type=checkbox] { width:14px; height:14px; accent-color:#378de7; }
.studio-prop-row input[type=range] { min-width:110px; accent-color:#8056ef; }
.studio-prop-row b { justify-self:end; color:#dce3ea; font-size:9px; }
.studio-vector { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.studio-vector label { height:27px; display:grid; grid-template-columns:16px minmax(0,1fr); align-items:center; padding-left:7px; border:1px solid #172a3b; border-radius:3px; background:#091521; color:#dce4ec; font-size:8px; }
.studio-vector input { height:24px!important; padding:0 3px!important; border:0!important; }
.studio-colour { display:grid; grid-template-columns:30px minmax(0,1fr); gap:7px; }
.studio-colour input[type=color] { width:30px!important; padding:2px!important; }
.prop-note { display:flex; align-items:center; justify-content:space-between; color:#8999aa; font-size:9px; }
.prop-note button { width:25px; height:25px; border:0; background:transparent; color:#eef2f7; }
.purple-text { color:#a278ff; }
.studio-empty-properties { display:grid; justify-items:center; padding:55px 28px; text-align:center; color:#788a9c; }
.studio-empty-properties svg { width:35px; height:35px; color:#8a60ef; }
.studio-empty-properties h3 { color:#eef2f7; margin:16px 0 6px; }
.studio-empty-properties p { margin:0; font-size:10px; line-height:1.5; }
.studio-status { display:flex; align-items:center; justify-content:space-between; padding:0 10px 0 82px; border-top:1px solid #1f3347; background:#08131e; color:#8091a2; font-size:8px; }
.status-ready { color:#36d47b; }
.create-groups { flex:1; overflow:auto; padding:10px 13px 16px; }
.create-groups section { margin-bottom:15px; }
.create-groups h3 { margin:0 0 9px; font-size:10px; }
.create-groups section>div { display:grid; grid-template-columns:repeat(5,1fr); gap:9px; }
.create-groups section button { min-width:0; min-height:63px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; padding:5px; border:0; border-radius:5px; background:transparent; color:#eef2f6; font-size:7px; text-align:center; }
.create-groups section button:hover { background:#1a2d40; }
.create-groups section button svg { width:27px; height:27px; color:#c7c9df; }
.browse-all-objects { width:100%; height:34px; border:1px solid #2b4258; border-radius:4px; background:#142536; color:#e6ebf0; font-size:9px; }
.sound-tree { padding:3px 12px 8px; border-bottom:1px solid #263a4d; }
.sound-folder,.rig-node { min-height:30px; display:flex; align-items:center; gap:8px; padding:0 7px; color:#eef2f6; font-size:9px; }
.sound-folder svg { width:15px; height:15px; color:#ffcf6c; }
.sound-folder b { margin-left:auto; }
.sound-folder.indent { padding-left:22px; }.sound-folder.indent2 { padding-left:39px; }
.sound-node { width:calc(100% - 45px); margin-left:45px; min-height:28px; display:flex; align-items:center; gap:8px; padding:0 8px; border:0; border-radius:3px; background:transparent; color:#dce4ec; font-size:9px; }
.sound-node.active { background:#2a245e; }
.sound-node svg { width:14px; color:#a36cff; }
.sound-assets { flex:1; overflow:auto; padding:10px 12px; }
.sound-assets h3 { margin:0 0 8px; font-size:10px; }
.sound-assets>button { width:100%; height:27px; display:grid; grid-template-columns:15px 1fr auto; align-items:center; gap:8px; padding:0 7px; border:0; border-radius:3px; background:transparent; color:#dfe5eb; font-size:8px; text-align:left; }
.sound-assets>button.active,.sound-assets>button:hover { background:#28235c; }
.sound-assets time { color:#9ba9b8; }
.sound-import { display:grid; grid-template-columns:1fr 36px; gap:8px; margin-top:12px; }
.sound-import button { height:34px; border:1px solid #2c4257; border-radius:4px; background:#142536; color:#eef2f6; font-size:9px; }
.vfx-tree { overflow:auto; padding:5px 12px 15px; }
.vfx-node { width:100%; height:31px; display:grid; grid-template-columns:16px 1fr 16px; align-items:center; gap:8px; padding:0 9px 0 39px; border:0; border-radius:3px; background:transparent; color:#e8edf2; font-size:9px; text-align:left; }
.vfx-node.active { background:#2c2664; }
.vfx-node svg { width:14px; color:#d4dce4; }
.vfx-node.material i { width:14px; height:14px; border-radius:50%; background:#f59c25; }
.animation-left-top { border-bottom:1px solid #293e52; padding-bottom:10px; }
.animation-tabs { display:grid; grid-template-columns:1fr 1fr; height:34px; border-bottom:1px solid #2a3e51; }
.animation-tabs button { border:0; background:transparent; color:#c2ccd6; font-size:9px; }
.animation-tabs button.active { background:#28235a; box-shadow:inset 0 -2px #8858f0; }
.new-animation { width:calc(100% - 24px); margin:0 12px 7px; height:34px; border:1px solid #2a4156; border-radius:4px; background:#142536; color:#fff; font-size:9px; }
.animation-item { width:calc(100% - 24px); margin:0 12px; height:31px; display:grid; grid-template-columns:16px 1fr auto; align-items:center; gap:9px; padding:0 8px; border:0; border-radius:3px; background:transparent; color:#edf1f5; font-size:9px; text-align:left; }
.animation-item.active { background:#302964; }
.animation-item time { color:#a5b1bf; }
.rig-tree { flex:1; min-height:0; overflow:auto; }
.rig-node { padding-left:calc(10px + var(--indent,0)*18px); color:#cbd5df; }
.more-tools-list { flex:1; overflow:auto; padding:5px 13px 15px; }
.more-tools-list section { padding:8px 0; border-bottom:1px solid #283c4f; }
.more-tools-list h3 { margin:0 0 5px; color:#8e9dad; font-size:8px; text-transform:uppercase; }
.more-tools-list button { width:100%; height:28px; display:grid; grid-template-columns:17px 1fr auto; align-items:center; gap:8px; padding:0 7px; border:0; border-radius:3px; background:transparent; color:#eef2f6; font-size:9px; text-align:left; }
.more-tools-list button:hover { background:#1b2d3f; }
.more-tools-list svg { width:14px; }.more-tools-list kbd { padding:3px 6px; border:1px solid #2c4358; border-radius:4px; background:#192a3b; color:#bcc7d2; font-size:7px; }
.full-script { min-height:0; flex:1; display:grid; grid-template-rows:39px 34px minmax(270px,1fr) 27px 170px; }
.full-script-tabs { display:flex; border-bottom:1px solid #263a4e; background:#132231; }
.full-script-tabs button { min-width:125px; border:0; border-right:1px solid #263a4e; background:transparent; color:#d1dae3; font-size:9px; }
.full-script-tabs button.active { background:#292461; box-shadow:inset 0 -2px #6e55f0; color:#fff; }
.script-breadcrumb { display:flex; align-items:center; padding:0 15px; border-bottom:1px solid #263a4e; color:#9cabb9; font-size:9px; }
.script-breadcrumb span { margin-left:auto; color:#dce4eb; }
.large-code { min-height:0; display:grid; grid-template-columns:44px minmax(0,1fr); background:#132231; }
.large-code>div { padding:9px 10px; overflow:hidden; white-space:pre; text-align:right; color:#587085; background:#0c1723; font:9px/1.58 Consolas,monospace; }
.large-code textarea { width:100%; height:100%; padding:9px 13px; border:0; resize:none; outline:0; color:#e2e7ec; background:#132231; font:10px/1.58 Consolas,monospace; }
.script-status { display:flex; justify-content:space-between; align-items:center; padding:0 15px; border-top:1px solid #263a4e; color:#a3b0bd; font-size:8px; }
.script-output { min-height:0; overflow:auto; border-top:1px solid #263a4e; background:#132231; }
.script-output>div:first-child { height:34px; display:flex; align-items:center; gap:14px; padding:0 12px; }
.script-output button { border:0; background:transparent; color:#d5dde5; font-size:8px; }
.script-output input { margin-left:auto; width:250px; height:24px; border:1px solid #203548; background:#091520; color:#fff; padding:0 8px; font-size:8px; }
.sound-workspace { min-height:0; flex:1; display:grid; grid-template-rows:minmax(380px,1.15fr) minmax(250px,.85fr); gap:1px; background:#263b50; padding:12px; }
.wave-editor,.sound-effects { min-height:0; border:1px solid #24394e; border-radius:6px; background:#132231; overflow:hidden; }
.sound-title-row { height:64px; display:flex; align-items:center; justify-content:space-between; padding:0 16px; }
.sound-title-row h2 { display:flex; gap:10px; align-items:center; font-size:16px; }
.sound-title-row h2 svg { color:#945cff; }
.sound-title-row>div { display:flex; align-items:center; gap:6px; }
.sound-title-row button { width:28px; height:28px; border:0; background:transparent; color:#9aacbd; }
.sound-title-row label { display:flex; align-items:center; gap:7px; margin-left:8px; color:#d6dde5; font-size:8px; }
.sound-title-row select { height:28px; border:0; background:#0b1723; color:#fff; }
#waveform-canvas { width:calc(100% - 24px); height:250px; margin:0 12px; display:block; border:1px solid #1d3448; }
.sound-transport { height:60px; display:flex; align-items:center; gap:20px; padding:0 18px; }
.sound-transport button { border:0; background:transparent; color:#c8d2dc; }
.sound-transport button.play { color:#48dc87; }
.sound-transport strong { font-size:12px; }.sound-transport span { margin-left:auto; color:#dce4ec; font-size:9px; }
.effect-tabs { height:42px; display:flex; border-bottom:1px solid #293d50; }
.effect-tabs button { min-width:110px; border:0; background:transparent; color:#c7d0da; font-size:9px; }
.effect-tabs button.active { box-shadow:inset 0 -2px #8b58f0; color:#fff; }
.effect-body { height:calc(100% - 42px); display:grid; grid-template-columns:220px minmax(0,1fr); }
.effect-body>aside { padding:12px; border-right:1px solid #2a3e52; }
.effect-body>aside button { width:100%; height:36px; display:grid; grid-template-columns:16px 1fr 24px; align-items:center; gap:8px; padding:0 9px; border:0; border-radius:4px; background:transparent; color:#dfe5eb; font-size:9px; text-align:left; }
.effect-body>aside button.active { background:#2b2663; }.effect-body>aside i { width:22px; height:12px; border-radius:999px; background:#7047d9; }
.reverb-settings { padding:16px 25px; }
.reverb-settings h3 { display:flex; justify-content:space-between; margin:0 0 16px; }
.reverb-settings h3 button { border:0; background:transparent; color:#fff; }
.reverb-settings label { min-height:39px; display:grid; grid-template-columns:120px minmax(0,1fr) 70px; align-items:center; gap:12px; color:#c9d2dc; font-size:9px; }
.reverb-settings input[type=range] { accent-color:#8053e9; }.reverb-settings select { height:27px; border:0; background:#091521; color:#fff; }
.vfx-workspace { min-height:0; flex:1; display:grid; grid-template-rows:minmax(320px,1.15fr) minmax(260px,.85fr); gap:1px; background:#263b50; }
.vfx-stage { position:relative; min-height:0; background:#0d1722; }
.vfx-toolbar { position:absolute; z-index:5; left:10px; right:10px; top:10px; display:flex; gap:7px; }
.vfx-toolbar span { flex:1; }.vfx-toolbar button.play { color:#42da83; }
#vfx-canvas { width:100%; height:100%; display:block; }
.particle-settings { min-height:0; background:#132231; overflow:hidden; }
.particle-tabs { height:38px; display:flex; border-bottom:1px solid #2b3f53; }
.particle-tabs button { min-width:110px; border:0; border-right:1px solid #2b3f53; background:transparent; color:#ccd5de; font-size:9px; }
.particle-tabs button.active { background:#192a3b; color:#fff; }
.particle-body { height:calc(100% - 38px); display:grid; grid-template-columns:125px repeat(3,minmax(130px,1fr)) 180px; overflow:auto; }
.particle-body>aside,.particle-body>div { padding:13px; border-right:1px solid #293e51; }
.particle-body>aside button { width:100%; height:29px; display:flex; align-items:center; gap:8px; border:0; background:transparent; color:#d7dfe7; font-size:8px; text-align:left; }
.particle-body>aside button.active { background:#2b2664; }
.particle-body h3 { margin:0 0 13px; font-size:10px; }.particle-body label { min-height:48px; display:grid; gap:6px; color:#b9c5d1; font-size:8px; }
.particle-body input,.particle-body select { height:28px; border:1px solid #1d3245; background:#091521; color:#fff; padding:0 8px; }
.particle-body .xyz { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; }.curve { height:55px; border:1px solid #21384e; background:linear-gradient(145deg,transparent 45%,#7951e7 46% 48%,transparent 49%),#101d2d; }
.vfx-preview .preview-fire { height:95px; display:grid; place-items:center; margin-bottom:10px; background:radial-gradient(circle at 50% 70%,#ffb126,#ad300f 25%,#141b25 55%); color:#fff0a0; font-size:38px; }
.vfx-preview>div:not(.preview-fire) { display:flex; gap:5px; }.vfx-preview button { flex:1; height:42px; display:grid; place-items:center; border:1px solid #284055; background:#142536; color:#d9e2ea; font-size:7px; }.vfx-preview button small { display:block; }.vfx-preview p { color:#9ba9b8; font-size:7px; }.vfx-preview p span { color:#3bd47b; }
.animation-workspace { min-height:0; flex:1; display:grid; grid-template-rows:minmax(390px,1.1fr) minmax(260px,.9fr); gap:1px; background:#263b50; }
.animation-stage { position:relative; min-height:0; background:#172333; }
.animation-title { position:absolute; z-index:5; left:0; right:0; top:0; height:51px; display:flex; align-items:center; justify-content:space-between; padding:0 14px; border-bottom:1px solid #2b3e52; background:#132231; }
.animation-title h2 { display:flex; align-items:center; gap:8px; font-size:16px; }.animation-title>div { display:flex; gap:8px; align-items:center; }.animation-title button { height:30px; min-width:32px; border:1px solid #2a4055; border-radius:4px; background:#142536; color:#e4e9ee; }.animation-title button.play { color:#41d67f; }
#animation-canvas { width:100%; height:calc(100% - 54px); margin-top:51px; display:block; }
.animation-transport { position:absolute; left:0; right:0; bottom:0; height:53px; display:flex; align-items:center; gap:20px; padding:0 18px; border-top:1px solid #2b3e52; background:#132231; }
.animation-transport button { border:0; background:transparent; color:#d8e0e8; }.animation-transport button.play { color:#42d982; }
.timeline { min-height:0; background:#132231; overflow:hidden; }.timeline-tabs { height:40px; display:flex; border-bottom:1px solid #2a3f52; }.timeline-tabs button { min-width:100px; border:0; background:transparent; color:#c5cfda; font-size:9px; }.timeline-tabs button.active { background:#2b2664; color:#fff; }
.timeline-grid { height:calc(100% - 40px); display:grid; grid-template-columns:185px minmax(0,1fr); overflow:auto; }.timeline-grid>aside { border-right:1px solid #2a3f52; }.timeline-grid>aside div { height:29px; padding-left:calc(12px + var(--indent)*18px); display:flex; align-items:center; color:#d7dfe7; font-size:8px; border-bottom:1px solid #1e3347; }
.keyframes { position:relative; }.timeline-ruler { height:28px; display:flex; justify-content:space-between; padding:0 12px; align-items:center; color:#91a1b1; font-size:7px; border-bottom:1px solid #263c50; }.key-row { position:relative; height:29px; border-bottom:1px solid #1e3347; background:repeating-linear-gradient(90deg,transparent 0 55px,rgba(74,102,128,.16) 56px); }.key-row i { position:absolute; top:11px; width:7px; height:7px; transform:rotate(45deg); background:var(--key); }
.advanced-workspace { min-height:0; flex:1; display:grid; grid-template-rows:42px minmax(0,1fr) 28px; }
.advanced-toolbar { display:flex; align-items:center; gap:7px; padding:0 10px; border-bottom:1px solid #2b3e52; background:#132231; }.advanced-toolbar span { flex:1; }
.advanced-stage { min-height:0; }.advanced-callout { position:absolute; z-index:6; display:grid; gap:5px; min-width:125px; padding:15px; border:1px solid #4b6080; border-radius:7px; background:rgba(8,19,31,.94); text-align:center; }.advanced-callout b { color:#a56cff; font-size:14px; }.advanced-callout span { font-size:9px; }.callout-copy { right:25%; top:29%; }.callout-paste { right:23%; bottom:20%; }
.advanced-info { display:flex; align-items:center; gap:17px; padding:0 10px; color:#91a1b1; background:#0a1622; font-size:8px; }.advanced-info span:last-child { margin-left:auto; }
.studio-top-menu { min-width:185px; }
@media(max-width:1370px){.studio-layout{grid-template-columns:68px 280px minmax(390px,1fr) 320px}.studio-commandbar{grid-template-columns:128px minmax(610px,1fr) 350px;padding-left:74px}.command-tool{min-width:48px}.wide-command{padding:0 8px}.studio-topbar{grid-template-columns:175px minmax(360px,1fr) 170px 170px}.studio-prop-row{grid-template-columns:92px minmax(0,1fr)}}
@media(max-width:1119px){.studio-shell{display:none}.mobile-editor-warning{display:grid!important}}
.studio-shell .viewport-dock { grid-column:auto; grid-row:auto; }
.studio-shell .studio-viewport { grid-column:auto; grid-row:auto; }

/* Initial-release feature gating */
.feature-unavailable-modal { width:min(520px,calc(100vw - 36px)); overflow:hidden; border-color:#3b326d; background:linear-gradient(180deg,#101d2b,#09141f); box-shadow:0 30px 80px rgba(0,0,0,.48); }
.feature-unavailable-modal .modal-header { border-bottom:1px solid #283a50; background:#0c1825; }
.feature-unavailable-heading { display:flex; align-items:center; gap:12px; }
.feature-unavailable-heading>span { width:38px; height:38px; display:grid; place-items:center; border-radius:9px; background:#261c55; color:#a97aff; }
.feature-unavailable-heading>span svg { width:20px; height:20px; }
.feature-unavailable-heading small { display:block; margin-bottom:3px; color:#8479ad; font-size:8px; font-weight:800; letter-spacing:.09em; }
.feature-unavailable-heading h2 { margin:0; font-size:16px; }
.feature-unavailable-modal .modal-body { display:grid; justify-items:center; padding:30px 34px 28px; text-align:center; }
.feature-unavailable-icon { width:64px; height:64px; display:grid; place-items:center; margin-bottom:17px; border:1px solid #4d3d91; border-radius:16px; background:linear-gradient(145deg,#302461,#171c38); color:#b28aff; box-shadow:0 16px 40px rgba(46,31,99,.24); }
.feature-unavailable-icon svg { width:30px; height:30px; }
.feature-unavailable-modal .modal-body h3 { margin:0; color:#fff; font-size:18px; }
.feature-unavailable-modal .modal-body p { max-width:430px; margin:10px 0 0; color:#9eabba; font-size:11px; line-height:1.7; }
.feature-unavailable-modal .modal-footer { justify-content:flex-end; border-top:1px solid #26384c; background:#0b1723; }

/* Keep newer editor systems inside the restored shell without letting V23's grey parity skin leak through. */
.studio-shell .studio-right-tabs { background:transparent; }
.studio-shell .studio-right-tabs button { color:#aab8c7; }
.studio-shell .studio-right-tabs button.active { color:#fff; border-bottom-color:#825cff; }
.studio-shell .tree-chevron { color:#8ea0b2!important; }
.studio-shell .tree-chevron:hover { color:#fff!important; background:#1b3045!important; }
.studio-shell .studio-tree-row.selected { background:#2c235f; box-shadow:inset 3px 0 0 #9b73ff; }
.studio-shell .viewport-selection-marquee { border-color:rgba(151,110,255,.98); background:linear-gradient(135deg,rgba(112,69,235,.16),rgba(54,139,255,.08)); }
.studio-shell .command-tool:disabled { opacity:.38; cursor:default; }
.studio-shell .studio-panel-heading-actions { display:flex; align-items:center; gap:2px; }
.studio-shell .studio-right-panel-heading { padding-right:7px; }
.studio-shell .studio-service-block { display:block; }
.studio-shell .studio-tree-empty { padding:14px 16px; color:#71869a; font-size:9px; line-height:1.5; }
.studio-shell .workspace-tabs button.active { box-shadow:inset 0 -2px #7652dc; }
.studio-shell .mini-code-console { border-top-color:#20364a; }
.studio-shell .mini-code,.studio-shell .mini-console { background:#0d1b29; }
.studio-shell .mini-tabs,.studio-shell .mini-console-head { background:#122232; border-bottom-color:#20364a; }
.studio-shell .full-script,.studio-shell .script-editor-main,.studio-shell .all-scripts-panel { background:#0c1824; }
.studio-shell .script-breadcrumb,.studio-shell .full-script-tabs { background:#112130; border-color:#20364a; }
.studio-shell .studio-prop-row input:not([type=checkbox]):not([type=range]), .studio-shell .studio-prop-row select, .studio-shell .studio-prop-row textarea { background:#081521; border-color:#263d52; color:#e6edf5; }
.studio-shell .studio-prop-row input:focus,.studio-shell .studio-prop-row select:focus,.studio-shell .studio-prop-row textarea:focus { border-color:#7354dc; box-shadow:0 0 0 1px #7354dc; }


/* Restored panel-collapse geometry */
.studio-shell.hide-left .studio-layout { grid-template-columns:74px 0 minmax(430px,1fr) 370px; }
.studio-shell.hide-right .studio-layout { grid-template-columns:74px 326px minmax(430px,1fr) 0; }
.studio-shell.hide-left.hide-right .studio-layout { grid-template-columns:74px 0 minmax(430px,1fr) 0; }
.studio-shell .studio-properties-body { background:#132231; }
@media(max-width:1370px){
  .studio-shell.hide-left .studio-layout{grid-template-columns:68px 0 minmax(390px,1fr) 320px}
  .studio-shell.hide-right .studio-layout{grid-template-columns:68px 280px minmax(390px,1fr) 0}
  .studio-shell.hide-left.hide-right .studio-layout{grid-template-columns:68px 0 minmax(390px,1fr) 0}
}

.studio-brand-mark{width:31px;height:31px;display:grid;place-items:center;color:#7f55f5;flex:0 0 31px}.studio-brand-logo{width:31px;height:31px;display:block;filter:drop-shadow(0 0 7px rgba(124,82,238,.18))}

/* V24.2 — lock the concept sidebar frame, full tool list and profile dock. */
.studio-rail {
  margin: 6px 5px 6px 6px;
  border: 1px solid #263a4e;
  border-radius: 8px;
  background: #132231;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
  overflow: hidden;
}
.rail-items {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 4px 3px;
  overflow-y: auto;
  scrollbar-width: none;
}
.rail-items::-webkit-scrollbar { display: none; }
.rail-button {
  flex: 1 1 clamp(38px, calc((100vh - 220px) / 9), 60px);
  min-height: 34px;
  max-height: 60px;
  width: 100%;
  gap: 3px;
  padding: 3px 2px;
  border-radius: 7px;
  font-size: 7.3px;
  line-height: 1.12;
}
.rail-button svg {
  width: clamp(15px, 1.1vw, 19px);
  height: clamp(15px, 1.1vw, 19px);
  flex: 0 0 auto;
}
.rail-button span {
  display: block;
  max-width: 58px;
  overflow-wrap: normal;
  word-break: normal;
}
.rail-account {
  flex: 0 0 67px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 3px 4px 6px;
  border-top: 1px solid rgba(55,80,104,.48);
  background: #132231;
  z-index: 2;
}
.rail-profile-button {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}
.rail-profile-button:hover { background: rgba(123,86,237,.13); }
.rail-avatar {
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 2px solid #29445d;
  box-shadow: 0 0 0 1px rgba(7,17,28,.72);
}
.rail-avatar.avatar-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rail-profile-button .rail-online {
  position: absolute;
  right: 0;
  bottom: 1px;
  top: auto;
  width: 9px;
  height: 9px;
  border: 2px solid #132231;
  border-radius: 50%;
  background: #39d67e;
}
.rail-account-actions {
  width: 100%;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
}
.rail-account .rail-account-actions button {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #c2cfe0;
}
.rail-account .rail-account-actions button:hover { background: #1a3044; color: #fff; }
.rail-settings-button svg { width: 13px; height: 13px; }
.rail-status-button span {
  width: 9px;
  height: 9px;
  border: 2px solid #32d27b;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(50,210,123,.08);
}

/* Keep the original purple ESB Studio mark visible beside the product name. */
.studio-brand-mark { display:grid !important; visibility:visible !important; opacity:1 !important; }
.studio-brand > span:last-child { white-space:nowrap; }

/* V24.3 — match the original ESB Studio concept sidebar and product branding. */
.studio-brand-mark{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  color:inherit;
}
.studio-brand-product-logo{
  width:37px !important;
  height:37px !important;
  display:block;
  object-fit:contain;
  filter:none !important;
}
.studio-brand{
  gap:10px;
  padding-left:14px;
  padding-right:10px;
}
.studio-brand > span:last-child{
  white-space:nowrap;
  font-size:15px;
  letter-spacing:.01em;
}

/* Keep the rail narrow like the concept; the panel itself is visibly framed. */
.studio-layout{grid-template-columns:74px 326px minmax(430px,1fr) 370px;}
.studio-rail{
  margin:6px 5px 6px 6px;
  border:1px solid #263a4e;
  border-radius:8px;
  background:#0d1c2a;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}
.rail-items{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  gap:1px;
  min-height:0;
  padding:6px 4px 2px;
  overflow-y:auto;
  scrollbar-width:none;
}
.rail-items::-webkit-scrollbar{display:none;}
.rail-button{
  flex:0 0 54px;
  min-height:54px;
  max-height:54px;
  width:100%;
  padding:4px 1px 3px;
  gap:4px;
  border-radius:7px;
  font-size:7px !important;
  line-height:1.08;
  font-weight:700;
  letter-spacing:0;
}
.rail-button svg{
  width:18px !important;
  height:18px !important;
  flex:0 0 18px;
}
.rail-button span{
  display:block;
  width:100%;
  max-width:60px;
  margin:0 auto;
  overflow-wrap:normal;
  word-break:normal;
  white-space:normal;
}
.rail-account{
  flex:0 0 68px;
  min-height:68px;
  padding:4px 4px 6px;
  border-top:0;
  background:#0d1c2a;
}
.rail-profile-button{width:38px;height:38px;}
.rail-avatar{width:34px;height:34px;}
.rail-account-actions{padding:0 6px;}

/* Compact the rail automatically before allowing any tool to disappear. */
@media (max-height:900px){
  .rail-button{flex-basis:49px;min-height:49px;max-height:49px;font-size:6.7px !important;gap:3px;}
  .rail-button svg{width:17px !important;height:17px !important;flex-basis:17px;}
  .rail-account{flex-basis:64px;min-height:64px;}
}
@media (max-height:800px){
  .rail-button{flex-basis:44px;min-height:44px;max-height:44px;font-size:6.3px !important;gap:2px;padding-top:2px;padding-bottom:2px;}
  .rail-button svg{width:15px !important;height:15px !important;flex-basis:15px;}
  .rail-account{flex-basis:58px;min-height:58px;padding-bottom:3px;}
  .rail-profile-button{width:32px;height:32px;}
  .rail-avatar{width:29px;height:29px;}
}
@media (max-height:710px){
  .rail-button{flex-basis:39px;min-height:39px;max-height:39px;font-size:5.9px !important;}
  .rail-button svg{width:14px !important;height:14px !important;flex-basis:14px;}
  .rail-account{flex-basis:54px;min-height:54px;}
}

/* Keep panel-collapse geometry in sync with the concept-width rail. */
.studio-shell.hide-left .studio-layout{grid-template-columns:74px 0 minmax(430px,1fr) 370px;}
.studio-shell.hide-right .studio-layout{grid-template-columns:74px 326px minmax(430px,1fr) 0;}
.studio-shell.hide-left.hide-right .studio-layout{grid-template-columns:74px 0 minmax(430px,1fr) 0;}
@media(max-width:1370px){
  .studio-layout{grid-template-columns:68px 280px minmax(390px,1fr) 320px;}
  .studio-shell.hide-left .studio-layout{grid-template-columns:68px 0 minmax(390px,1fr) 320px;}
  .studio-shell.hide-right .studio-layout{grid-template-columns:68px 280px minmax(390px,1fr) 0;}
  .studio-shell.hide-left.hide-right .studio-layout{grid-template-columns:68px 0 minmax(390px,1fr) 0;}
  .studio-rail{margin-left:4px;margin-right:4px;}
  .rail-button{font-size:6.5px !important;}
}

/* V24.4 — scale the concept rail up, remove avatar overlap, and colour-match the frame. */
.studio-layout{grid-template-columns:78px 326px minmax(430px,1fr) 370px;}
.studio-rail{
  --rail-panel-bg: #132231;
  --rail-button-size: clamp(56px, calc((100vh - 248px) / 9), 64px);
  background: var(--rail-panel-bg);
  border-color: #294056;
  margin: 6px 5px 6px 6px;
}
.studio-rail,.studio-left,.studio-right{background:#132231;}
.rail-items{
  justify-content: space-between;
  gap: 2px;
  padding: 7px 4px 4px;
  background: var(--rail-panel-bg);
}
.rail-button{
  flex: 0 0 var(--rail-button-size);
  min-height: var(--rail-button-size);
  max-height: var(--rail-button-size);
  padding: 5px 2px 4px;
  gap: 4px;
  font-size: 7.6px !important;
  line-height: 1.08;
}
.rail-button svg{width:19px !important;height:19px !important;flex-basis:19px;}
.rail-button span{max-width:64px;}
.rail-account{
  flex: 0 0 74px;
  min-height: 74px;
  padding: 5px 5px 7px;
  border-top: 1px solid rgba(55,80,104,.48);
  background: var(--rail-panel-bg);
}
.rail-profile-button{width:40px;height:40px;}
.rail-avatar{
  width: 36px;
  height: 36px;
  border: 2px solid #2b4560;
  box-shadow: 0 0 0 1px rgba(7,17,28,.72);
  background: #0c1724;
}
.rail-online{display:none !important;}
.rail-account-actions{padding: 0 6px;height: 18px;}
.rail-account .rail-account-actions button{width:18px;height:18px;}
.rail-status-button span{
  width: 9px;
  height: 9px;
  border: 2px solid #32d27b;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(50,210,123,.08);
}
.studio-shell.hide-left .studio-layout{grid-template-columns:78px 0 minmax(430px,1fr) 370px;}
.studio-shell.hide-right .studio-layout{grid-template-columns:78px 326px minmax(430px,1fr) 0;}
.studio-shell.hide-left.hide-right .studio-layout{grid-template-columns:78px 0 minmax(430px,1fr) 0;}
@media(max-width:1370px){
  .studio-layout{grid-template-columns:72px 280px minmax(390px,1fr) 320px;}
  .studio-shell.hide-left .studio-layout{grid-template-columns:72px 0 minmax(390px,1fr) 320px;}
  .studio-shell.hide-right .studio-layout{grid-template-columns:72px 280px minmax(390px,1fr) 0;}
  .studio-shell.hide-left.hide-right .studio-layout{grid-template-columns:72px 0 minmax(390px,1fr) 0;}
}
@media (max-height:900px){
  .studio-rail{--rail-button-size: clamp(52px, calc((100vh - 240px) / 9), 58px);}
  .rail-button{font-size:7px !important;}
  .rail-button svg{width:18px !important;height:18px !important;flex-basis:18px;}
  .rail-account{flex-basis:68px;min-height:68px;}
}
@media (max-height:800px){
  .studio-rail{--rail-button-size: clamp(46px, calc((100vh - 224px) / 9), 52px);}
  .rail-button{font-size:6.5px !important;gap:3px;padding-top:3px;padding-bottom:3px;}
  .rail-button svg{width:16px !important;height:16px !important;flex-basis:16px;}
  .rail-account{flex-basis:60px;min-height:60px;padding-bottom:4px;}
  .rail-profile-button{width:34px;height:34px;}
  .rail-avatar{width:30px;height:30px;}
}
@media (max-height:710px){
  .rail-items{justify-content:flex-start;overflow-y:auto;}
  .studio-rail{--rail-button-size:39px;}
  .rail-button{font-size:5.9px !important;}
  .rail-button svg{width:14px !important;height:14px !important;flex-basis:14px;}
  .rail-account{flex-basis:54px;min-height:54px;}
}

/* V24.5 — fill the Studio rail, expand Script Editor, and polish Explorer insertion. */
.studio-layout{grid-template-columns:82px 326px minmax(430px,1fr) 370px;}
.studio-rail{
  margin:6px 5px 6px 6px;
  background:#132231;
  border-color:#294056;
  display:flex;
  flex-direction:column;
  min-height:0;
}
.rail-items{
  flex:1 1 auto;
  min-height:0;
  display:grid;
  grid-template-rows:repeat(9,minmax(0,1fr));
  gap:1px;
  padding:6px 4px 3px;
  overflow:hidden;
  background:#132231;
}
.rail-button{
  min-height:0 !important;
  max-height:none !important;
  height:100%;
  width:100%;
  flex:none !important;
  padding:4px 2px 3px;
  gap:4px;
  border-radius:7px;
  font-size:8.2px !important;
  line-height:1.08;
}
.rail-button svg{width:20px !important;height:20px !important;flex:0 0 20px !important;}
.rail-button span{max-width:68px;}
.rail-account{
  flex:0 0 68px;
  min-height:68px;
  margin:0;
  padding:4px 5px 6px;
  gap:3px;
  background:#132231;
  border-top:1px solid rgba(55,80,104,.50);
}
.rail-profile-button{width:39px;height:39px;}
.rail-avatar{width:35px;height:35px;background:#0b1724;border-color:#2d4964;}
.rail-avatar.avatar-image img{width:100%;height:100%;object-fit:cover;object-position:center 28%;display:block;}
.rail-account-actions{height:17px;padding:0 7px;}
.rail-online{display:none !important;}

/* In Script Editor the entire centre workspace belongs to code + output. */
.script-workspace-v11{
  grid-template-columns:minmax(0,1fr) !important;
  grid-template-rows:minmax(0,1fr) !important;
  min-width:0;
  min-height:0;
  overflow:hidden;
}
.script-workspace-v11>.all-scripts-panel{display:none !important;}
.script-workspace-v11>.script-editor-main{
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-rows:42px 42px minmax(260px,1fr) 27px minmax(150px,34%);
  overflow:hidden;
}
.script-workspace-v11 .large-code{min-height:0;height:100%;}
.script-workspace-v11 .large-code textarea{font-size:11px;line-height:1.58;}
.script-workspace-v11 .script-output{min-height:0;height:100%;overflow:auto;}
.script-workspace-v11 .script-output>div:first-child{position:sticky;top:0;z-index:1;background:#132231;}

/* Explorer insert menus use the same compact grouped treatment as UI insertion. */
.object-add-menu{width:285px;max-height:min(560px,calc(100vh - 30px));overflow:auto;padding-bottom:8px;}
.object-add-menu section{padding:5px 7px;border-top:1px solid rgba(116,145,174,.16);}
.object-add-menu section>strong{display:block;padding:7px 8px 5px;color:#70869d;font-size:8px;text-transform:uppercase;letter-spacing:.12em;}
.object-add-menu [hidden]{display:none!important;}
.studio-script-tree-row{cursor:default;}
.studio-script-tree-row>span:nth-of-type(2){min-width:0;}
.studio-script-tree-row>span:nth-of-type(2) strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.studio-script-tree-row>span:nth-of-type(2) small{display:block;color:#6f8499;font-size:7px;margin-top:1px;}

.studio-shell.hide-left .studio-layout{grid-template-columns:82px 0 minmax(430px,1fr) 370px;}
.studio-shell.hide-right .studio-layout{grid-template-columns:82px 326px minmax(430px,1fr) 0;}
.studio-shell.hide-left.hide-right .studio-layout{grid-template-columns:82px 0 minmax(430px,1fr) 0;}
@media(max-width:1370px){
  .studio-layout{grid-template-columns:76px 280px minmax(390px,1fr) 320px;}
  .studio-shell.hide-left .studio-layout{grid-template-columns:76px 0 minmax(390px,1fr) 320px;}
  .studio-shell.hide-right .studio-layout{grid-template-columns:76px 280px minmax(390px,1fr) 0;}
  .studio-shell.hide-left.hide-right .studio-layout{grid-template-columns:76px 0 minmax(390px,1fr) 0;}
  .rail-button{font-size:7.5px !important;}
  .rail-button svg{width:18px !important;height:18px !important;flex-basis:18px !important;}
}
@media(max-height:720px){
  .rail-account{flex-basis:58px;min-height:58px;padding-bottom:3px;}
  .rail-profile-button{width:33px;height:33px;}.rail-avatar{width:29px;height:29px;}
  .rail-button{font-size:6.6px !important;gap:2px;}
  .rail-button svg{width:15px !important;height:15px !important;flex-basis:15px !important;}
}

/* V24.8 — colour-match and centre the ESB Studio left rail. */
.studio-rail,
.studio-left,
.studio-right {
  background: #132231 !important;
}
.studio-rail {
  justify-content: space-between !important;
  background: #132231 !important;
  border-color: #263a4e !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.rail-items {
  width: 100%;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 1px !important;
  padding: 8px 5px 6px !important;
  background: #132231 !important;
}
.rail-button {
  width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
}
.rail-button span {
  width: 100%;
  text-align: center !important;
  justify-self: center;
  margin: 0 auto;
}
.rail-account {
  width: 100%;
  gap: 5px !important;
  padding: 8px 4px 9px !important;
  border-top: 1px solid rgba(57,81,105,.55) !important;
  background: #132231 !important;
  align-content: end;
}
.rail-profile-button {
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 auto !important;
  border-radius: 999px;
  background: rgba(10,22,35,.55);
}
.rail-avatar {
  width: 36px !important;
  height: 36px !important;
  margin: 0 auto !important;
  background: #0b1724 !important;
  border: 2px solid #2b4560 !important;
  box-shadow: 0 0 0 1px rgba(6,15,24,.75);
}
.rail-avatar.avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  display: block;
}
.rail-account-actions {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  height: 20px !important;
}
.rail-account .rail-account-actions button {
  width: 18px !important;
  height: 18px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
}
.rail-status-button {
  background: rgba(16,31,47,.9) !important;
  border: 1px solid rgba(46,210,123,.2) !important;
}
.rail-status-button span {
  width: 8px !important;
  height: 8px !important;
  background: #32d27b !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 0 0 2px rgba(50,210,123,.12);
}
.rail-settings-button {
  background: rgba(16,31,47,.9) !important;
  border: 1px solid rgba(88,118,146,.35) !important;
}
.rail-settings-button svg,
.rail-status-button svg {
  width: 11px;
  height: 11px;
}

/* V24.9 — unify the left rail with the Studio chrome and refine the profile dock. */
.studio-topbar,
.studio-rail {
  background: #06101A !important;
}
.studio-topbar {
  border-bottom: 1px solid #17283A !important;
}
.studio-rail {
  background: #06101A !important;
  border-color: #17283A !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015);
}
.studio-rail .rail-items,
.studio-rail .rail-account {
  background: transparent !important;
}
.studio-rail .rail-items {
  justify-content: space-between !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 9px 6px 6px !important;
}
.studio-rail .rail-button {
  width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 10px !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
}
.studio-rail .rail-button span {
  width: 100%;
  display: block;
  text-align: center !important;
  margin: 0 auto !important;
}
.studio-rail .rail-account {
  width: 100%;
  display: grid !important;
  justify-items: center !important;
  align-content: end !important;
  gap: 7px !important;
  padding: 10px 5px 10px !important;
  border-top: 1px solid rgba(23, 40, 58, .95) !important;
}
.studio-rail .rail-profile-button {
  width: 44px !important;
  height: 44px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 auto !important;
  border-radius: 999px !important;
  background: rgba(10, 22, 35, .78) !important;
  box-shadow: inset 0 0 0 1px rgba(88,118,146,.22);
}
.studio-rail .rail-avatar {
  width: 38px !important;
  height: 38px !important;
  margin: 0 auto !important;
  border-radius: 50% !important;
  background: #0B1724 !important;
  border: 2px solid #294259 !important;
  box-shadow: 0 0 0 1px rgba(7,17,28,.75);
  overflow: hidden;
}
.studio-rail .rail-avatar.avatar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
.studio-rail .rail-account-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  width: 100% !important;
  height: 18px !important;
  padding: 0 !important;
}
.studio-rail .rail-status-indicator {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  background: #2ED27B;
  box-shadow: 0 0 0 2px rgba(46,210,123,.13), inset 0 0 0 1px rgba(255,255,255,.18);
}
.studio-rail .rail-settings-button {
  width: 18px !important;
  height: 18px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  margin: 0 !important;
  background: rgba(15,29,45,.95) !important;
  border: 1px solid rgba(88,118,146,.38) !important;
  color: #c8d5e4 !important;
}
.studio-rail .rail-settings-button svg {
  width: 11px !important;
  height: 11px !important;
}

/* V25.1 — original ESB Studio layout, enterprise colour/polish pass only.
   Structural dimensions and component organisation intentionally remain unchanged. */
.studio-shell {
  --esb-chrome: #06101a;
  --esb-bg: #08121b;
  --esb-panel: #101b26;
  --esb-raised: #162430;
  --esb-input: #0a151f;
  --esb-hover: #192733;
  --esb-line: #263644;
  --esb-line-soft: #1d2b36;
  --esb-text: #e8edf2;
  --esb-muted: #93a1ae;
  --esb-muted-low: #70818f;
  --esb-accent: #7b69c2;
  --esb-accent-strong: #8a76d3;
  --esb-accent-surface: #252238;
  --esb-accent-line: #7564b8;
  --studio-line: var(--esb-line);
  --studio-soft: var(--esb-raised);
  --studio-panel: var(--esb-panel);
  --studio-deep: var(--esb-input);
  --studio-purple: var(--esb-accent);
  background: var(--esb-bg) !important;
  color: var(--esb-text) !important;
}

/* Application chrome */
.studio-shell .studio-topbar {
  background: var(--esb-chrome) !important;
  border-bottom-color: var(--esb-line-soft) !important;
}
.studio-shell .studio-menu-bar button { color: #e4e9ee !important; }
.studio-shell .studio-menu-bar button:hover { background: #111d27 !important; }
.studio-shell .studio-project-meta span { color: var(--esb-muted) !important; }
.studio-shell .studio-icon-button { color: #c7d0d8 !important; }
.studio-shell .studio-icon-button:hover { background: var(--esb-raised) !important; color: #fff !important; }
.studio-shell .studio-publish {
  background: #6554ad !important;
  border-color: #7564bd !important;
  box-shadow: none !important;
  filter: none !important;
}
.studio-shell .studio-publish:hover { background: #705fba !important; filter: none !important; }

/* Original toolbar structure retained; only surface/accent colours are unified. */
.studio-shell .studio-commandbar {
  background: var(--esb-bg) !important;
  border-bottom-color: var(--esb-line-soft) !important;
}
.studio-shell .command-group {
  background: var(--esb-panel) !important;
  border-color: var(--esb-line-soft) !important;
  box-shadow: none !important;
}
.studio-shell .command-caption { color: var(--esb-muted-low) !important; }
.studio-shell .command-tool { color: #e7ecf1 !important; }
.studio-shell .command-tool:hover {
  background: var(--esb-hover) !important;
  border-color: var(--esb-line) !important;
}
.studio-shell .command-tool.active {
  background: var(--esb-accent-surface) !important;
  border-color: var(--esb-accent-line) !important;
  box-shadow: inset 0 -2px var(--esb-accent) !important;
}
.studio-shell .wide-command {
  color: #e1e7ec !important;
  border-right-color: var(--esb-line-soft) !important;
}
.studio-shell .wide-command:hover,
.studio-shell .wide-command.active { background: var(--esb-hover) !important; }
.studio-shell .wide-command svg { color: var(--esb-accent-strong) !important; }
.studio-shell .studio-part-menu,
.studio-shell .studio-top-menu {
  background: var(--esb-panel) !important;
  border-color: var(--esb-line) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.36) !important;
}
.studio-shell .studio-part-menu button:hover { background: var(--esb-hover) !important; }
.studio-shell .part-menu-divider { background: var(--esb-line-soft) !important; }

/* Main editor surfaces */
.studio-shell .studio-layout { background: var(--esb-line-soft) !important; }
.studio-shell .studio-rail { background: var(--esb-chrome) !important; border-color: var(--esb-line-soft) !important; box-shadow: none !important; }
.studio-shell .studio-left,
.studio-shell .studio-right { background: var(--esb-panel) !important; }
.studio-shell .studio-centre { background: var(--esb-bg) !important; }
.studio-shell .studio-panel-heading,
.studio-shell .studio-right-panel-heading {
  background: var(--esb-panel) !important;
  border-bottom-color: var(--esb-line-soft) !important;
}
.studio-shell .studio-panel-heading strong,
.studio-shell .studio-right-panel-heading strong { color: var(--esb-text) !important; }

/* Original left rail retained and visually quietened. */
.studio-shell .rail-items,
.studio-shell .rail-account { background: transparent !important; }
.studio-shell .rail-account { border-top-color: var(--esb-line-soft) !important; }
.studio-shell .rail-button { color: #aebbc7 !important; }
.studio-shell .rail-button svg { color: #8291a0 !important; }
.studio-shell .rail-button:hover { background: #111d27 !important; color: #edf1f5 !important; }
.studio-shell .rail-button:hover svg { color: #a99bd6 !important; }
.studio-shell .rail-button.active {
  background: #211f31 !important;
  color: #f4f2fb !important;
  box-shadow: inset 3px 0 var(--esb-accent) !important;
}
.studio-shell .rail-button.active svg { color: var(--esb-accent-strong) !important; }
.studio-shell .rail-profile-button { background: #0a151f !important; box-shadow: inset 0 0 0 1px var(--esb-line) !important; }
.studio-shell .rail-avatar { background: #0a151f !important; border-color: #324351 !important; }
.studio-shell .rail-settings-button { background: #0d1923 !important; border-color: #334552 !important; color: #c2cdd6 !important; }

/* Explorer — original chips and hierarchy preserved. */
.studio-shell .studio-panel-search label {
  background: var(--esb-input) !important;
  border-color: var(--esb-line-soft) !important;
  color: var(--esb-muted) !important;
}
.studio-shell .studio-panel-search input { color: #dde4ea !important; }
.studio-shell .explorer-chips button {
  background: #0e1923 !important;
  border-color: var(--esb-line) !important;
  color: #dbe2e8 !important;
}
.studio-shell .explorer-chips button:hover {
  background: var(--esb-hover) !important;
  border-color: #354654 !important;
}
.studio-shell .explorer-chips button.active {
  background: var(--esb-accent-surface) !important;
  border-color: var(--esb-accent-line) !important;
  color: #f1eff8 !important;
  box-shadow: inset 0 -2px var(--esb-accent) !important;
}
.studio-shell .studio-tree-row { color: #dce4ea !important; }
.studio-shell .studio-tree-row svg { color: #8dbbd0 !important; }
.studio-shell .studio-tree-row:hover { background: var(--esb-hover) !important; }
.studio-shell .studio-tree-row.selected {
  background: #211f31 !important;
  box-shadow: inset 3px 0 var(--esb-accent) !important;
}
.studio-shell .studio-tree-row i,
.studio-shell .studio-tree-row button { color: #cbd5dd !important; }
.studio-shell .studio-tree-empty { color: var(--esb-muted-low) !important; }
.studio-shell .tree-chevron { color: #8796a4 !important; }
.studio-shell .tree-chevron:hover { color: #fff !important; background: var(--esb-hover) !important; }

/* Workspace tabs / viewport framing */
.studio-shell .workspace-tabs {
  background: var(--esb-panel) !important;
  border-bottom-color: var(--esb-line-soft) !important;
}
.studio-shell .workspace-tabs button {
  color: #bec8d1 !important;
  border-right-color: var(--esb-line-soft) !important;
}
.studio-shell .workspace-tabs button.active {
  background: #151f29 !important;
  color: #fff !important;
  box-shadow: inset 0 -2px var(--esb-accent) !important;
}
.studio-shell .workspace-tabs button svg { color: #9b91c1 !important; }
.studio-shell .world-stack,
.studio-shell .mini-code-console,
.studio-shell .animation-workspace { background: var(--esb-line-soft) !important; }
.studio-shell .studio-viewport { background: #0b141c !important; }
.studio-shell .viewport-corner-tools button,
.studio-shell .advanced-toolbar button,
.studio-shell .vfx-toolbar button {
  background: rgba(10,21,31,.94) !important;
  border-color: #31414e !important;
  color: #dce3e9 !important;
}
.studio-shell .viewport-selection-marquee {
  border-color: rgba(130,111,202,.88) !important;
  background: rgba(123,105,194,.10) !important;
}

/* Properties */
.studio-shell .studio-properties-body { background: var(--esb-panel) !important; }
.studio-shell .studio-prop-section { border-top-color: var(--esb-line-soft) !important; }
.studio-shell .studio-prop-section h3 { color: #e4e9ee !important; }
.studio-shell .studio-prop-row,
.studio-shell .studio-prop-row > label { color: var(--esb-muted) !important; }
.studio-shell .studio-prop-row input:not([type=checkbox]):not([type=range]),
.studio-shell .studio-prop-row select,
.studio-shell .studio-prop-row textarea {
  background: var(--esb-input) !important;
  border-color: #273844 !important;
  color: #e4e9ed !important;
  box-shadow: none !important;
}
.studio-shell .studio-prop-row input:hover,
.studio-shell .studio-prop-row select:hover,
.studio-shell .studio-prop-row textarea:hover { border-color: #354957 !important; }
.studio-shell .studio-prop-row input:focus,
.studio-shell .studio-prop-row select:focus,
.studio-shell .studio-prop-row textarea:focus {
  border-color: var(--esb-accent-line) !important;
  box-shadow: 0 0 0 1px rgba(123,105,194,.22) !important;
}
.studio-shell .studio-prop-row input[type=checkbox],
.studio-shell .studio-prop-row input[type=range] { accent-color: var(--esb-accent) !important; }

/* Existing script editor + Console structure retained. */
.studio-shell .mini-code,
.studio-shell .mini-console,
.studio-shell .full-script,
.studio-shell .script-editor-main,
.studio-shell .all-scripts-panel,
.studio-shell .script-editor,
.studio-shell .script-textarea {
  background: #0b151e !important;
}
.studio-shell .mini-tabs,
.studio-shell .mini-console-head,
.studio-shell .full-script-tabs,
.studio-shell .script-breadcrumb,
.studio-shell .all-scripts-panel header,
.studio-shell .script-tabs {
  background: #101b25 !important;
  border-color: var(--esb-line-soft) !important;
}
.studio-shell .mini-tabs button,
.studio-shell .full-script-tabs button,
.studio-shell .script-tab { color: #b8c3cc !important; border-color: var(--esb-line-soft) !important; }
.studio-shell .mini-tabs button.active,
.studio-shell .full-script-tabs button.active,
.studio-shell .script-tab.active {
  background: #211f31 !important;
  color: #fff !important;
  border-top-color: var(--esb-accent) !important;
  box-shadow: inset 0 -2px var(--esb-accent) !important;
}
.studio-shell .mini-console-head button {
  background: var(--esb-raised) !important;
  color: #dfe5ea !important;
}
.studio-shell .line-numbers { background: #081119 !important; border-right-color: var(--esb-line-soft) !important; color: #657685 !important; }
.studio-shell .all-scripts-panel { border-right-color: var(--esb-line-soft) !important; }
.studio-shell .all-scripts-panel header button,
.studio-shell .all-scripts-panel label {
  background: var(--esb-input) !important;
  border-color: var(--esb-line) !important;
}
.studio-shell .all-scripts-panel header button { color: #a99bd6 !important; }
.studio-shell .all-scripts-list > button:hover,
.studio-shell .all-scripts-list > button.selected {
  background: #211f31 !important;
  border-color: #554b78 !important;
  color: #fff !important;
}
.studio-shell .all-scripts-list i { color: #9687c8 !important; }
.studio-shell .embedded-code-empty,
.studio-shell .full-script-empty { background: #0b151e !important; color: var(--esb-muted) !important; }
.studio-shell .full-script-empty > span { background: #211f31 !important; color: var(--esb-accent-strong) !important; }

/* Other original workspaces use the same disciplined surface system. */
.studio-shell .animation-title,
.studio-shell .animation-transport,
.studio-shell .timeline,
.studio-shell .advanced-toolbar { background: var(--esb-panel) !important; border-color: var(--esb-line-soft) !important; }
.studio-shell .timeline-tabs,
.studio-shell .timeline-grid > aside,
.studio-shell .timeline-ruler,
.studio-shell .key-row { border-color: var(--esb-line-soft) !important; }
.studio-shell .timeline-tabs button.active { background: #211f31 !important; color: #fff !important; box-shadow: inset 0 -2px var(--esb-accent) !important; }
.studio-shell .key-row { background-color: #0c1720 !important; }
.studio-shell .advanced-info { background: var(--esb-input) !important; color: var(--esb-muted) !important; }
.studio-shell .advanced-callout { background: rgba(10,21,31,.97) !important; border-color: #3b4c58 !important; box-shadow: none !important; }
.studio-shell .advanced-callout b { color: var(--esb-accent-strong) !important; }

/* Consistent right-side tabs and states. */
.studio-shell .studio-right-tabs { background: transparent !important; }
.studio-shell .studio-right-tabs button { color: var(--esb-muted) !important; }
.studio-shell .studio-right-tabs button:hover { color: #e7ecf0 !important; background: var(--esb-hover) !important; }
.studio-shell .studio-right-tabs button.active { color: #fff !important; border-bottom-color: var(--esb-accent) !important; }

/* Menus and editor-owned dialogs: no neon gradients/glows. */
.studio-shell ~ .context-menu,
.context-menu.studio-top-menu {
  background: var(--esb-panel, #101b26) !important;
  border-color: var(--esb-line, #263644) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.38) !important;
}
.context-menu.studio-top-menu .context-item:hover { background: #192733 !important; }
.feature-unavailable-modal {
  background: #101b26 !important;
  border-color: #2c3945 !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.42) !important;
}
.feature-unavailable-modal .modal-header,
.feature-unavailable-modal .modal-footer { background: #0d1821 !important; border-color: #22313d !important; }
.feature-unavailable-heading > span,
.feature-unavailable-icon {
  background: #211f31 !important;
  border-color: #4f466f !important;
  color: #9c8bce !important;
  box-shadow: none !important;
}
.feature-unavailable-heading small { color: #9086ad !important; }
.feature-unavailable-modal .modal-body p { color: #98a5b1 !important; }

/* ESB Studio V25.2 — original-layout refinement + dockable workspace. */
.studio-shell {
  --esb-main:#08121b;
  --esb-panel-v252:#101b26;
  --esb-elevated:#16232e;
  --esb-field:#0a151f;
  --esb-divider:#1d2b36;
  --esb-divider-strong:#263744;
  --esb-violet:#7869b9;
  --esb-violet-surface:#242134;
  --esb-green:#3fd483;
  --rail-width:82px;
}

/* Keep PLAY / TOOLS / OTHER exactly where they are, but make the ribbon one surface. */
.studio-shell .studio-commandbar {
  gap:0 !important;
  padding-bottom:6px !important;
  background:var(--esb-main) !important;
}
.studio-shell .command-group {
  border:0 !important;
  border-right:1px solid var(--esb-divider) !important;
  border-radius:0 !important;
  background:var(--esb-panel-v252) !important;
  box-shadow:none !important;
}
.studio-shell .command-group:first-child { border-radius:7px 0 0 7px !important; }
.studio-shell .command-group:last-child { border-right:0 !important; border-radius:0 7px 7px 0 !important; }
.studio-shell .command-tool { border-color:transparent !important; }
.studio-shell .command-tool:hover { background:var(--esb-elevated) !important; border-color:transparent !important; }
.studio-shell .command-tool.active {
  background:var(--esb-violet-surface) !important;
  border-color:rgba(120,105,185,.5) !important;
  box-shadow:inset 0 -2px var(--esb-violet) !important;
}
.studio-shell .wide-command { border-right-color:var(--esb-divider) !important; }

/* Dynamic editor grid — default appearance remains the original ESB Studio layout. */
.studio-shell .studio-layout {
  position:relative;
  display:grid !important;
  grid-template-columns:var(--rail-width) var(--explorer-width) minmax(430px,1fr) var(--properties-width) !important;
  grid-template-rows:minmax(0,1fr) !important;
  gap:1px !important;
  background:var(--esb-divider) !important;
}
.studio-shell .studio-rail { grid-column:1; grid-row:1 / -1; }
.studio-shell .studio-left { grid-column:2; grid-row:1; position:relative; }
.studio-shell .studio-centre { grid-column:3; grid-row:1; }
.studio-shell .studio-right { grid-column:4; grid-row:1; position:relative; }

.studio-shell .studio-layout.dock-explorer-right {
  grid-template-columns:var(--rail-width) minmax(430px,1fr) var(--explorer-width) var(--properties-width) !important;
}
.studio-shell .studio-layout.dock-explorer-right .studio-centre { grid-column:2; }
.studio-shell .studio-layout.dock-explorer-right .studio-left { grid-column:3; }
.studio-shell .studio-layout.dock-explorer-right .studio-right { grid-column:4; }

.studio-shell .studio-layout.dock-explorer-above-properties,
.studio-shell .studio-layout.dock-explorer-below-properties {
  grid-template-columns:var(--rail-width) minmax(430px,1fr) max(var(--explorer-width),var(--properties-width)) !important;
  grid-template-rows:minmax(0,1fr) minmax(0,1fr) !important;
}
.studio-shell .studio-layout.dock-explorer-above-properties .studio-centre,
.studio-shell .studio-layout.dock-explorer-below-properties .studio-centre { grid-column:2; grid-row:1 / 3; }
.studio-shell .studio-layout.dock-explorer-above-properties .studio-left { grid-column:3; grid-row:1; }
.studio-shell .studio-layout.dock-explorer-above-properties .studio-right { grid-column:3; grid-row:2; }
.studio-shell .studio-layout.dock-explorer-below-properties .studio-right { grid-column:3; grid-row:1; }
.studio-shell .studio-layout.dock-explorer-below-properties .studio-left { grid-column:3; grid-row:2; }

.studio-shell .studio-layout.dock-properties-left {
  grid-template-columns:var(--rail-width) var(--properties-width) var(--explorer-width) minmax(430px,1fr) !important;
}
.studio-shell .studio-layout.dock-properties-left .studio-right { grid-column:2; }
.studio-shell .studio-layout.dock-properties-left .studio-left { grid-column:3; }
.studio-shell .studio-layout.dock-properties-left .studio-centre { grid-column:4; }

.studio-shell .studio-layout.dock-properties-above-explorer,
.studio-shell .studio-layout.dock-properties-below-explorer {
  grid-template-columns:var(--rail-width) max(var(--explorer-width),var(--properties-width)) minmax(430px,1fr) !important;
  grid-template-rows:minmax(0,1fr) minmax(0,1fr) !important;
}
.studio-shell .studio-layout.dock-properties-above-explorer .studio-centre,
.studio-shell .studio-layout.dock-properties-below-explorer .studio-centre { grid-column:3; grid-row:1 / 3; }
.studio-shell .studio-layout.dock-properties-above-explorer .studio-right { grid-column:2; grid-row:1; }
.studio-shell .studio-layout.dock-properties-above-explorer .studio-left { grid-column:2; grid-row:2; }
.studio-shell .studio-layout.dock-properties-below-explorer .studio-left { grid-column:2; grid-row:1; }
.studio-shell .studio-layout.dock-properties-below-explorer .studio-right { grid-column:2; grid-row:2; }

/* Hidden panels collapse instead of leaving dead space. */
.studio-shell.hide-left .studio-left,
.studio-shell.hide-right .studio-right { display:none !important; }
.studio-shell .studio-layout.dock-default:has(.studio-left[style*="left:"]) { }

/* Floating/undocked panel support. */
.studio-shell .studio-layout.explorer-floating .studio-left,
.studio-shell .studio-layout.properties-floating .studio-right {
  position:fixed !important;
  z-index:175;
  display:flex !important;
  flex-direction:column;
  border:1px solid var(--esb-divider-strong) !important;
  border-radius:8px;
  background:var(--esb-panel-v252) !important;
  box-shadow:0 18px 55px rgba(0,0,0,.42) !important;
  overflow:hidden;
}

/* Maximise the viewport without changing the normal layout. */
.studio-shell.viewport-maximised .studio-layout {
  grid-template-columns:var(--rail-width) minmax(0,1fr) !important;
  grid-template-rows:minmax(0,1fr) !important;
}
.studio-shell.viewport-maximised .studio-left,
.studio-shell.viewport-maximised .studio-right { display:none !important; }
.studio-shell.viewport-maximised .studio-centre { grid-column:2 !important; grid-row:1 !important; }

/* Resize handles. */
.studio-shell .panel-edge-resizer {
  position:absolute;
  top:44px;
  bottom:0;
  right:-4px;
  width:8px;
  z-index:12;
  cursor:ew-resize;
  background:transparent;
}
.studio-shell .studio-right .panel-edge-resizer { left:-4px; right:auto; }
.studio-shell .dock-explorer-right .studio-left .panel-edge-resizer,
.studio-shell .dock-explorer-above-properties .studio-left .panel-edge-resizer,
.studio-shell .dock-explorer-below-properties .studio-left .panel-edge-resizer { left:-4px; right:auto; }
.studio-shell .dock-properties-left .studio-right .panel-edge-resizer,
.studio-shell .dock-properties-above-explorer .studio-right .panel-edge-resizer,
.studio-shell .dock-properties-below-explorer .studio-right .panel-edge-resizer { left:auto; right:-4px; }
.studio-shell .panel-edge-resizer:hover { background:rgba(120,105,185,.45); }

/* The original Script Editor + Console stays intact, now resizable/collapsible. */
.studio-shell .world-stack:not(.bottom-hidden) {
  grid-template-rows:minmax(260px,1fr) var(--bottom-panel-height,250px) !important;
}
.studio-shell .mini-code-console { position:relative; }
.studio-shell .bottom-panel-resizer {
  position:absolute;
  z-index:14;
  top:-4px;
  left:0;
  right:0;
  height:8px;
  cursor:ns-resize;
  background:transparent;
}
.studio-shell .bottom-panel-resizer:hover { background:rgba(120,105,185,.42); }

/* Docking overlay + placement preview. */
.studio-dock-overlay {
  position:fixed;
  z-index:900;
  inset:148px 0 0 0;
  background:rgba(3,8,13,.18);
  pointer-events:none;
}
.studio-dock-overlay[hidden] { display:none !important; }
.studio-dock-target {
  position:absolute;
  z-index:3;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border:1px solid rgba(126,112,190,.72);
  border-radius:8px;
  background:rgba(11,21,31,.94);
  color:#cfc6ee;
  box-shadow:0 8px 24px rgba(0,0,0,.28);
  pointer-events:auto;
}
.studio-dock-target svg { width:20px; height:20px; }
.studio-dock-target:hover { background:#242134; border-color:#8e7dcc; }
.studio-dock-target.dock-left { left:96px; top:50%; transform:translateY(-50%); }
.studio-dock-target.dock-right { right:20px; top:50%; transform:translateY(-50%); }
.studio-dock-target.dock-top { right:180px; top:24px; }
.studio-dock-target.dock-bottom { right:180px; bottom:24px; }
.studio-dock-target.dock-float { left:50%; top:50%; transform:translate(-50%,-50%); }
.studio-dock-preview {
  position:absolute;
  z-index:1;
  border:1px solid rgba(132,116,202,.9);
  background:rgba(120,105,185,.12);
  border-radius:6px;
  opacity:0;
  transition:all .12s ease,opacity .08s ease;
}
.studio-dock-overlay[data-preview-target="left"] .studio-dock-preview { opacity:1; left:88px; top:10px; bottom:10px; width:28%; }
.studio-dock-overlay[data-preview-target="right"] .studio-dock-preview { opacity:1; right:10px; top:10px; bottom:10px; width:29%; }
.studio-dock-overlay[data-preview-target="top"] .studio-dock-preview { opacity:1; right:10px; top:10px; width:29%; height:46%; }
.studio-dock-overlay[data-preview-target="bottom"] .studio-dock-preview { opacity:1; right:10px; bottom:10px; width:29%; height:46%; }
.studio-dock-overlay[data-preview-target="float"] .studio-dock-preview { opacity:1; left:34%; top:22%; width:32%; height:56%; }
.dockable-panel-heading { cursor:grab; user-select:none; }
.dockable-panel-heading:active { cursor:grabbing; }

/* Explorer visual refinement — exact category structure retained. */
.studio-shell .explorer-chips { gap:5px !important; }
.studio-shell .explorer-chips button {
  border-color:transparent !important;
  background:#0d1822 !important;
  color:#aebac4 !important;
  box-shadow:inset 0 0 0 1px rgba(38,55,68,.45) !important;
}
.studio-shell .explorer-chips button:hover {
  color:#e1e7ec !important;
  background:var(--esb-elevated) !important;
  box-shadow:inset 0 0 0 1px rgba(49,68,82,.58) !important;
}
.studio-shell .explorer-chips button.active {
  color:#f0edf9 !important;
  background:#211f30 !important;
  box-shadow:inset 0 -2px var(--esb-violet) !important;
}
.studio-shell .studio-tree-row { color:#d8e0e6 !important; }
.studio-shell .studio-tree-row:hover { background:#16242f !important; }
.studio-shell .studio-tree-row.selected { background:#211f30 !important; box-shadow:inset 3px 0 var(--esb-violet) !important; }
.studio-shell .tree-hover-add { color:#aab7c1 !important; }

/* Properties and common fields — calmer, denser, consistent. */
.studio-shell .studio-panel-search label,
.studio-shell .studio-prop-row input:not([type=checkbox]):not([type=range]),
.studio-shell .studio-prop-row select,
.studio-shell .studio-prop-row textarea {
  border-color:transparent !important;
  background:var(--esb-field) !important;
  box-shadow:inset 0 0 0 1px rgba(38,55,68,.62) !important;
}
.studio-shell .studio-panel-search label:focus-within,
.studio-shell .studio-prop-row input:focus,
.studio-shell .studio-prop-row select:focus,
.studio-shell .studio-prop-row textarea:focus {
  box-shadow:inset 0 0 0 1px var(--esb-violet),0 0 0 1px rgba(120,105,185,.15) !important;
}
.studio-shell .studio-prop-row { min-height:38px; }
.studio-shell .studio-prop-section { border-top-color:var(--esb-divider) !important; }
.studio-shell .studio-prop-section h3 { font-weight:650 !important; }

/* Script/Console are one application surface, not separate cards. */
.studio-shell .mini-code,
.studio-shell .mini-console,
.studio-shell .mini-tabs,
.studio-shell .mini-console-head { border-color:var(--esb-divider) !important; }
.studio-shell .mini-code,
.studio-shell .mini-console { background:var(--esb-panel-v252) !important; }

/* Global interaction-state consistency. */
.studio-shell button:focus-visible,
.studio-shell input:focus-visible,
.studio-shell select:focus-visible,
.studio-shell textarea:focus-visible { outline:1px solid var(--esb-violet) !important; outline-offset:1px; }
.studio-shell button:disabled { opacity:.42 !important; cursor:default !important; }

@media(max-width:1370px){
  .studio-shell { --rail-width:76px; }
  .studio-shell .studio-layout { grid-template-columns:var(--rail-width) var(--explorer-width) minmax(360px,1fr) var(--properties-width) !important; }
  .studio-shell .studio-layout.dock-explorer-right { grid-template-columns:var(--rail-width) minmax(360px,1fr) var(--explorer-width) var(--properties-width) !important; }
  .studio-shell .studio-layout.dock-explorer-above-properties,
  .studio-shell .studio-layout.dock-explorer-below-properties { grid-template-columns:var(--rail-width) minmax(360px,1fr) max(var(--explorer-width),var(--properties-width)) !important; }
  .studio-shell .studio-layout.dock-properties-left { grid-template-columns:var(--rail-width) var(--properties-width) var(--explorer-width) minmax(360px,1fr) !important; }
  .studio-shell .studio-layout.dock-properties-above-explorer,
  .studio-shell .studio-layout.dock-properties-below-explorer { grid-template-columns:var(--rail-width) max(var(--explorer-width),var(--properties-width)) minmax(360px,1fr) !important; }
}

/* Responsive panel sizing: preserve the original layout while protecting viewport space. */
@media(max-width:1370px){
  .studio-shell .studio-layout {
    --explorer-width:min(var(--explorer-panel-width),280px) !important;
    --properties-width:min(var(--properties-panel-width),320px) !important;
  }
  .studio-shell.hide-left .studio-layout,
  .studio-shell .studio-layout.explorer-floating { --explorer-width:0px !important; }
  .studio-shell.hide-right .studio-layout,
  .studio-shell .studio-layout.properties-floating { --properties-width:0px !important; }
}
@media(max-width:1250px){
  .studio-shell .studio-layout {
    --explorer-width:min(var(--explorer-panel-width),250px) !important;
    --properties-width:min(var(--properties-panel-width),280px) !important;
  }
  .studio-shell.hide-left .studio-layout,
  .studio-shell .studio-layout.explorer-floating { --explorer-width:0px !important; }
  .studio-shell.hide-right .studio-layout,
  .studio-shell .studio-layout.properties-floating { --properties-width:0px !important; }
  .studio-shell .studio-layout,
  .studio-shell .studio-layout.dock-explorer-right,
  .studio-shell .studio-layout.dock-properties-left { min-width:0; }
  .studio-shell .command-tool { min-width:46px; }
  .studio-shell .wide-command { padding-left:7px; padding-right:7px; }
}

/* ESB Studio V25.3 — optional panels, deliberate docking, compact categories and larger gizmos. */
.studio-shell .studio-commandbar{
  grid-template-columns:108px minmax(640px,1fr) minmax(360px,430px) !important;
  gap:1px !important;
}
.studio-shell .command-play{
  justify-content:center !important;
  gap:2px !important;
  padding-left:4px !important;
  padding-right:4px !important;
}
.studio-shell .command-play .command-tool{min-width:42px !important;width:44px !important;padding-left:2px !important;padding-right:2px !important;}
.studio-shell .command-other{justify-content:stretch !important;gap:1px !important;}
.studio-shell .command-other .wide-command{flex:1 1 0;min-width:74px;padding:0 5px !important;font-size:8px !important;}
.studio-shell .command-other .wide-command.active{background:var(--esb-violet-surface,#242134) !important;box-shadow:inset 0 -2px var(--esb-violet,#7869b9) !important;}
.studio-shell .command-other .wide-command svg{width:15px;height:15px;}

/* Close controls use the existing editor header language and never reserve dead space. */
.studio-shell .panel-close-button{color:#91a0ac !important;border-radius:5px !important;}
.studio-shell .panel-close-button:hover{background:#281f28 !important;color:#efb9c2 !important;}
.studio-shell .studio-panel-heading-actions{gap:2px;}

/* Compact Explorer category strip with deliberate reorder indicators. */
.studio-shell .explorer-chips.compact{
  gap:3px !important;
  padding:5px 6px 6px !important;
  align-content:flex-start;
}
.studio-shell .explorer-chips.compact > button{
  position:relative;
  min-height:22px !important;
  padding:3px 6px !important;
  border-radius:5px !important;
  font-size:7px !important;
  line-height:1.05 !important;
}
.studio-shell .explorer-chips.compact > button > span{white-space:nowrap;}
.studio-shell .explorer-chips .category-manage-button{width:24px !important;min-width:24px !important;padding:0 !important;}
.studio-shell .explorer-chips .category-manage-button svg{width:12px;height:12px;}
.studio-shell .category-pin{display:inline-block;margin-right:3px;color:var(--esb-violet,#7869b9);font-style:normal;font-size:10px;line-height:0;}
.studio-shell .explorer-chips button.category-drag-source{opacity:.48 !important;}
.studio-shell .explorer-chips button.category-insert-before::before,
.studio-shell .explorer-chips button.category-insert-after::after{
  content:"";position:absolute;top:2px;bottom:2px;width:2px;border-radius:2px;background:#8b7bd0;box-shadow:0 0 0 1px rgba(139,123,208,.18);
}
.studio-shell .explorer-chips button.category-insert-before::before{left:-3px;}
.studio-shell .explorer-chips button.category-insert-after::after{right:-3px;}
body.category-reordering{cursor:grabbing !important;user-select:none !important;}

/* Clearer, calmer panel docking overlay. */
.studio-dock-overlay{background:rgba(3,8,13,.28) !important;backdrop-filter:none !important;}
.studio-dock-target{
  width:64px !important;height:52px !important;grid-template-rows:22px 12px !important;gap:2px !important;
  border-color:rgba(139,123,208,.72) !important;background:#0d1822 !important;border-radius:7px !important;
  transition:transform .12s ease,background .12s ease,border-color .12s ease !important;
}
.studio-dock-target span{font-size:7px;font-weight:700;color:#b9c3cc;}
.studio-dock-target:hover{transform:scale(1.04);background:#211f30 !important;border-color:#9585db !important;}
.studio-dock-target.dock-left{left:102px !important;}
.studio-dock-target.dock-right{right:28px !important;}
.studio-dock-target.dock-top{right:190px !important;top:28px !important;}
.studio-dock-target.dock-bottom{right:190px !important;bottom:28px !important;}
.studio-dock-preview{border:2px solid rgba(139,123,208,.9) !important;background:rgba(120,105,185,.17) !important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.035) !important;transition:all .14s ease,opacity .1s ease !important;}
body.studio-panel-dragging{cursor:grabbing !important;user-select:none !important;}
.dockable-panel-heading{cursor:grab;touch-action:none;}
body.studio-panel-dragging .dockable-panel-heading{cursor:grabbing;}

/* The original bottom Script Editor / Output workspace can now close each side independently. */
.studio-shell .mini-code-console.script-hidden{grid-template-columns:1fr !important;}
.studio-shell .mini-code-console.output-hidden{grid-template-columns:1fr !important;}
.studio-shell .mini-code-console.script-hidden .mini-console{grid-column:1 !important;}
.studio-shell .mini-code-console.output-hidden .mini-code{grid-column:1 !important;}
.studio-shell .mini-tabs,
.studio-shell .mini-console-head{min-height:30px;align-items:center;}
.studio-shell .mini-tabs{display:flex !important;justify-content:space-between !important;}
.studio-shell .mini-panel-actions{display:flex;align-items:center;gap:2px;margin-left:auto;}
.studio-shell .mini-panel-actions button{min-width:24px;height:24px;display:grid;place-items:center;border:0;background:transparent;color:#99a7b3;border-radius:4px;}
.studio-shell .mini-panel-actions button:hover{background:var(--esb-elevated,#16232e);color:#fff;}
.studio-shell .mini-panel-actions svg{width:12px;height:12px;}

/* Floating Script/Output panels remain optional and can be returned to the bottom dock. */
.studio-shell .floating-aux-panel{
  position:fixed;z-index:178;display:flex;flex-direction:column;min-width:320px;min-height:180px;
  border:1px solid var(--esb-divider-strong,#263744);border-radius:8px;background:var(--esb-panel-v252,#101b26);
  box-shadow:0 18px 55px rgba(0,0,0,.46);overflow:hidden;
}
.studio-shell .floating-aux-heading{height:34px;flex:0 0 34px;display:flex;align-items:center;justify-content:space-between;padding:0 8px;border-bottom:1px solid var(--esb-divider,#1d2b36);background:#0d1822;}
.studio-shell .floating-aux-heading strong{display:flex;align-items:center;gap:6px;font-size:9px;}
.studio-shell .floating-aux-heading strong svg{width:13px;height:13px;}
.studio-shell .floating-aux-heading > div{display:flex;align-items:center;gap:3px;}
.studio-shell .floating-aux-heading button{height:23px;border:0;background:transparent;color:#9eabb6;border-radius:4px;font-size:8px;}
.studio-shell .floating-aux-heading button:hover{background:var(--esb-elevated,#16232e);color:#fff;}
.studio-shell .floating-aux-content{min-height:0;flex:1;display:flex;overflow:hidden;}
.studio-shell .floating-aux-content .embedded-code,
.studio-shell .floating-aux-content .embedded-code-empty{width:100%;height:100%;}
.studio-shell .floating-output-panel .compact-logs{min-height:0;flex:1;overflow:auto;}
.studio-shell .floating-output-panel .console-filters{flex:0 0 auto;}

/* Explorer category manager. */
.category-manager-modal{max-width:570px !important;}
.category-manager-list{display:grid;gap:4px;max-height:55vh;overflow:auto;}
.category-manager-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 9px;border-radius:6px;background:#0d1822;}
.category-manager-row label{display:flex;align-items:center;gap:8px;color:#d8e0e6;font-size:10px;}
.category-manager-row input{accent-color:#7869b9;}
.category-manager-row .btn{min-width:62px;}
.context-menu .context-item.active{background:#211f30;color:#f1eef9;}
.context-menu .context-item > span:last-child{margin-left:auto;color:#7f909d;font-size:7px;}

/* Keep axis gizmos easy to grab without changing the familiar red/green/blue axis language. */
.studio-shell .studio-viewport[data-tool="move"]{cursor:default;}

@media(max-width:1370px){
  .studio-shell .studio-commandbar{grid-template-columns:102px minmax(560px,1fr) minmax(320px,390px) !important;}
  .studio-shell .command-other .wide-command{min-width:66px;font-size:7.3px !important;}
}
@media(max-width:1220px){
  .studio-shell .command-other .wide-command span{display:none;}
  .studio-shell .command-other .wide-command{min-width:42px !important;}
  .studio-shell .studio-commandbar{grid-template-columns:96px minmax(540px,1fr) 190px !important;}
}
.studio-dock-target.dock-top svg{transform:rotate(180deg);}
/* Script Editor and Output use the familiar bottom dock or an intentional floating window; side targets stay reserved for side panels. */
.studio-dock-overlay[data-drag-panel="script"] .dock-left,
.studio-dock-overlay[data-drag-panel="script"] .dock-right,
.studio-dock-overlay[data-drag-panel="script"] .dock-top,
.studio-dock-overlay[data-drag-panel="output"] .dock-left,
.studio-dock-overlay[data-drag-panel="output"] .dock-right,
.studio-dock-overlay[data-drag-panel="output"] .dock-top{display:none !important;}
.studio-dock-overlay[data-drag-panel="script"] .dock-bottom,
.studio-dock-overlay[data-drag-panel="output"] .dock-bottom{left:50% !important;right:auto !important;bottom:24px !important;transform:translateX(-50%) !important;}

/* ESB Studio V25.4 — deliberate floating/docking, tab-aware panels and calmer active colour. */
.studio-shell{
  --esb-accent:#685c9f;
  --esb-accent-strong:#8275b9;
  --esb-accent-surface:#1b1c28;
  --esb-accent-line:#514874;
  --esb-violet:#685c9f;
  --esb-violet-surface:#1b1c28;
}

/* Active states use small violet indicators rather than saturated fills. */
.studio-shell .rail-button.active,
.studio-shell .command-tool.active,
.studio-shell .wide-command.active,
.studio-shell .explorer-chips button.active,
.studio-shell .workspace-tabs button.active,
.studio-shell .studio-tree-row.selected,
.studio-shell .terrain-mode-row button.active,
.studio-shell .studio-right-tabs button.active,
.studio-shell .console-filters button.active,
.studio-shell .timeline-tabs button.active{
  background:#1a1c27 !important;
  border-color:#433d5d !important;
  color:#eceaf4 !important;
}
.studio-shell .rail-button.active{box-shadow:inset 2px 0 #7468aa !important;}
.studio-shell .command-tool.active,
.studio-shell .wide-command.active,
.studio-shell .explorer-chips button.active,
.studio-shell .workspace-tabs button.active{box-shadow:inset 0 -2px #7468aa !important;}
.studio-shell .studio-tree-row.selected{box-shadow:inset 2px 0 #7468aa !important;}
.studio-shell .rail-button.active svg,
.studio-shell .command-tool.active svg,
.studio-shell .wide-command.active svg{color:#9589c2 !important;}

/* Explorer/Properties always fill the dock cell, even when their content is short. */
.studio-shell .studio-left,
.studio-shell .studio-right{
  height:100%;
  min-height:0;
  align-self:stretch;
}
.studio-shell .studio-tree,
.studio-shell .studio-properties-body{flex:1 1 auto;min-height:0;}

/* Stacked dock columns use a persisted split instead of a fixed 50/50 row. */
.studio-shell .studio-layout.dock-explorer-above-properties,
.studio-shell .studio-layout.dock-explorer-below-properties,
.studio-shell .studio-layout.dock-properties-above-explorer,
.studio-shell .studio-layout.dock-properties-below-explorer{
  grid-template-rows:minmax(120px,var(--stack-first,50%)) minmax(120px,1fr) !important;
}
.studio-shell .dock-stack-splitter{
  position:absolute;
  z-index:45;
  height:8px;
  min-width:120px;
  cursor:ns-resize;
  background:transparent;
  transform:translateY(0);
}
.studio-shell .dock-stack-splitter::after{
  content:"";position:absolute;left:0;right:0;top:3px;height:1px;background:#26343f;
}
.studio-shell .dock-stack-splitter:hover::after,
body.studio-panel-resizing .studio-shell .dock-stack-splitter::after{background:#5e557d;height:2px;top:3px;}

/* Floating panels are real desktop-style windows. */
.studio-shell .studio-layout.explorer-floating .studio-left,
.studio-shell .studio-layout.properties-floating .studio-right,
.studio-shell .floating-aux-panel,
.studio-shell .panel-drag-floating{
  position:fixed !important;
  z-index:780 !important;
  border:1px solid #2a3944 !important;
  border-radius:7px !important;
  background:#101b26 !important;
  box-shadow:0 16px 42px rgba(0,0,0,.48),0 2px 9px rgba(0,0,0,.26) !important;
  overflow:hidden !important;
}
.studio-shell .panel-drag-floating{pointer-events:none;}
.studio-shell .studio-layout.explorer-floating .panel-edge-resizer,
.studio-shell .studio-layout.properties-floating .panel-edge-resizer{display:none !important;}
.dockable-panel-heading{cursor:grab;touch-action:none;}
body.studio-panel-dragging .dockable-panel-heading{cursor:grabbing !important;}
body.studio-panel-dragging{cursor:grabbing !important;user-select:none !important;}
body.studio-panel-resizing{user-select:none !important;}

/* Generous invisible resize targets around every floating edge/corner. */
.floating-resize-handle{position:absolute;z-index:90;background:transparent;}
.floating-resize-handle.resize-n{left:9px;right:9px;top:-5px;height:10px;cursor:ns-resize;}
.floating-resize-handle.resize-s{left:9px;right:9px;bottom:-5px;height:10px;cursor:ns-resize;}
.floating-resize-handle.resize-e{top:9px;bottom:9px;right:-5px;width:10px;cursor:ew-resize;}
.floating-resize-handle.resize-w{top:9px;bottom:9px;left:-5px;width:10px;cursor:ew-resize;}
.floating-resize-handle.resize-ne{right:-6px;top:-6px;width:14px;height:14px;cursor:nesw-resize;}
.floating-resize-handle.resize-nw{left:-6px;top:-6px;width:14px;height:14px;cursor:nwse-resize;}
.floating-resize-handle.resize-se{right:-6px;bottom:-6px;width:14px;height:14px;cursor:nwse-resize;}
.floating-resize-handle.resize-sw{left:-6px;bottom:-6px;width:14px;height:14px;cursor:nesw-resize;}

/* Docking only appears when the pointer deliberately enters a real target. */
.studio-dock-overlay{
  position:fixed !important;
  inset:0 !important;
  z-index:910 !important;
  pointer-events:none !important;
  background:transparent !important;
}
.studio-dock-overlay[hidden]{display:none !important;}
.studio-dock-preview{
  position:fixed !important;
  z-index:911;
  opacity:0;
  border:1px solid rgba(116,104,170,.88) !important;
  background:rgba(91,79,137,.18) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025) !important;
  border-radius:5px;
  transition:left .08s ease,top .08s ease,width .08s ease,height .08s ease,opacity .08s ease !important;
}
.studio-dock-label{
  position:fixed;z-index:912;min-width:180px;max-width:260px;padding:7px 10px;border:1px solid #4c4568;border-radius:5px;
  background:#0c151e;color:#d9d5e7;font-size:9px;font-weight:700;text-align:center;box-shadow:0 9px 25px rgba(0,0,0,.36);
}
/* Retired V25.3 always-visible target tiles. */
.studio-dock-target{display:none !important;}

/* Bottom Script/Output splitter behaves like a desktop editor divider. */
.studio-shell .mini-code-console:not(.script-hidden):not(.output-hidden){
  grid-template-columns:minmax(260px,var(--bottom-split,66%)) 8px minmax(220px,1fr) !important;
  gap:0 !important;
}
.studio-shell .mini-code-console:not(.script-hidden):not(.output-hidden) .mini-code{grid-column:1;}
.studio-shell .mini-code-console:not(.script-hidden):not(.output-hidden) .bottom-column-resizer{grid-column:2;}
.studio-shell .mini-code-console:not(.script-hidden):not(.output-hidden) .mini-console{grid-column:3;}
.studio-shell .bottom-column-resizer{
  position:relative;z-index:20;width:8px;cursor:ew-resize;background:transparent;
}
.studio-shell .bottom-column-resizer::after{content:"";position:absolute;top:0;bottom:0;left:3px;width:1px;background:#26343f;}
.studio-shell .bottom-column-resizer:hover::after{left:3px;width:2px;background:#5e557d;}

/* Profile/account controls are a separate section below More Tools. */
.studio-shell .studio-rail{display:flex !important;flex-direction:column !important;}
.studio-shell .rail-items{flex:1 1 auto !important;min-height:0 !important;padding-bottom:8px !important;}
.studio-shell .rail-account{
  flex:0 0 auto !important;
  position:relative !important;
  margin:0 6px 6px !important;
  padding:10px 0 4px !important;
  border-top:1px solid #22303a !important;
  background:transparent !important;
}
.studio-shell .rail-profile-button{margin-top:0 !important;}
.studio-shell .rail-account-actions{margin-top:4px !important;}

/* The right-panel close button closes only the active tab; tab emphasis stays subtle. */
.studio-shell .studio-right-tabs button{background:transparent !important;}
.studio-shell .studio-right-tabs button.active{border-bottom-color:#7468aa !important;box-shadow:none !important;}

/* ESB Studio V25.6 — precision polish only. Layout and panel geometry intentionally unchanged. */
.studio-shell{
  --esb-accent:#5a527f;
  --esb-accent-strong:#746b9a;
  --esb-accent-surface:#181a22;
  --esb-accent-line:#3b374d;
  --esb-violet:#5a527f;
  --esb-violet-surface:#181a22;
}

/* Play/Stop remain in the restored toolbar; only their runtime states are refined. */
.studio-shell .command-play-button{
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
}
.studio-shell .command-play-button svg{
  color:#42c77d !important;
  fill:rgba(66,199,125,.11) !important;
}
.studio-shell .command-play-button:hover{
  background:#16251f !important;
  border-color:#29483a !important;
}
.studio-shell .command-play-button.is-running{
  background:#14231d !important;
  border-color:#2c4b3c !important;
  box-shadow:inset 0 -2px #3f9c6c !important;
}
.studio-shell .command-stop-button svg{
  color:#d85c5c !important;
  fill:#d85c5c !important;
  stroke:#d85c5c !important;
}
.studio-shell .command-stop-button.is-disabled{
  opacity:1 !important;
  cursor:default !important;
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
}
.studio-shell .command-stop-button.is-disabled svg{opacity:.62 !important;}
.studio-shell .command-stop-button.is-disabled span{opacity:.38 !important;}
.studio-shell .command-stop-button.is-disabled:hover{
  background:transparent !important;
  border-color:transparent !important;
}
.studio-shell .command-stop-button.is-enabled svg{opacity:1 !important;}
.studio-shell .command-stop-button.is-enabled span{opacity:.88 !important;}
.studio-shell .command-stop-button.is-enabled:hover{
  background:#2a1b1d !important;
  border-color:#543034 !important;
}

/* Tiny Spawn Location shortcut immediately beside Part; no new toolbar section. */
.studio-shell .command-spawn-compact{
  flex:0 0 30px !important;
  width:30px !important;
  min-width:30px !important;
  max-width:30px !important;
  padding:0 !important;
  gap:0 !important;
}
.studio-shell .command-spawn-compact > svg{
  width:17px !important;
  height:17px !important;
  color:#9cb9c9 !important;
}
.studio-shell .command-spawn-compact:hover > svg{color:#d6e3ea !important;}

/* Approximately 20–30% calmer violet emphasis, preserving the existing colour system. */
.studio-shell .rail-button.active,
.studio-shell .command-tool.active,
.studio-shell .wide-command.active,
.studio-shell .explorer-chips button.active,
.studio-shell .workspace-tabs button.active,
.studio-shell .studio-tree-row.selected,
.studio-shell .terrain-mode-row button.active,
.studio-shell .studio-right-tabs button.active,
.studio-shell .console-filters button.active,
.studio-shell .timeline-tabs button.active{
  background:#181a22 !important;
  border-color:#393548 !important;
  color:#ebe9f1 !important;
}
.studio-shell .rail-button.active{box-shadow:inset 2px 0 #625a88 !important;}
.studio-shell .command-tool.active,
.studio-shell .wide-command.active,
.studio-shell .explorer-chips button.active,
.studio-shell .workspace-tabs button.active{box-shadow:inset 0 -2px #625a88 !important;}
.studio-shell .studio-tree-row.selected{box-shadow:inset 2px 0 #625a88 !important;}
.studio-shell .rail-button.active svg,
.studio-shell .command-tool.active svg,
.studio-shell .wide-command.active svg{color:#8178a5 !important;}
.studio-shell :is(input,textarea,select,button):focus-visible{
  outline-color:rgba(111,101,151,.62) !important;
  box-shadow:0 0 0 2px rgba(90,82,127,.13) !important;
}

/* Explorer row geometry only: caret → icon → label → actions. */
.studio-shell .studio-tree-row,
.studio-shell .studio-tree-row.root{
  grid-template-columns:16px 17px minmax(0,1fr) 22px !important;
  align-items:center !important;
  column-gap:5px !important;
}
.studio-shell .tree-chevron,
.studio-shell .tree-chevron-placeholder{
  width:16px !important;
  min-width:16px !important;
  height:28px !important;
  display:grid !important;
  place-items:center !important;
  align-self:center !important;
  margin:0 !important;
  padding:0 !important;
  line-height:1 !important;
}
.studio-shell .tree-chevron svg{
  width:11px !important;
  height:11px !important;
  display:block !important;
  transform:rotate(0deg);
  transition:transform .12s ease;
}
.studio-shell .tree-chevron.expanded svg{transform:rotate(90deg);}
.studio-shell .studio-tree-row > svg{
  width:14px !important;
  height:14px !important;
  display:block !important;
  justify-self:center !important;
  align-self:center !important;
  margin:0 !important;
}
.studio-shell .studio-tree-row > span:not(.tree-chevron-placeholder),
.studio-shell .studio-tree-row > strong{
  min-width:0;
  align-self:center !important;
  line-height:1.2 !important;
}
.studio-shell .tree-add-button,
.studio-shell .tree-hover-add{
  width:20px !important;
  height:24px !important;
  align-self:center !important;
  justify-self:center !important;
  margin:0 !important;
  padding:0 !important;
}

/* Existing account area: same footprint, centred controls, subtler ring, less-tight portrait crop. */
.studio-shell .rail-account{
  align-items:center !important;
  border-top-color:#22303a !important;
}
.studio-shell .rail-profile-button{
  margin-left:auto !important;
  margin-right:auto !important;
  box-shadow:0 0 0 1px rgba(90,82,127,.42) !important;
}
.studio-shell .rail-avatar{
  border:1px solid rgba(111,101,151,.48) !important;
  background:#0b1724 !important;
  box-shadow:none !important;
}
.studio-shell .rail-avatar.avatar-image img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center 31% !important;
  transform:scale(.89) !important;
  transform-origin:center 42% !important;
  border-radius:50%;
}
.studio-shell .rail-account-actions{
  justify-content:center !important;
  gap:9px !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

/* When the Play Platform account exposes an avatar model rather than an image, render that account avatar instead of initials. */
.avatar-model{position:relative;display:grid;place-items:center;overflow:hidden;background:var(--studio-avatar-bg,#10263d) !important;color:transparent !important;}
.studio-avatar-portrait{position:absolute;inset:4% -2% -27%;display:block;transform:scaleX(var(--studio-avatar-width,1)) scaleY(var(--studio-avatar-height,1));transform-origin:50% 66%;}
.studio-avatar-head{position:absolute;z-index:4;left:50%;top:10%;width:43%;aspect-ratio:1/1.03;transform:translateX(-50%) scale(var(--studio-avatar-head,1));border-radius:42% 42% 46% 46%;background:var(--studio-avatar-skin,#d59668);box-shadow:inset 0 -1px rgba(80,43,30,.16);}
.studio-avatar-face{position:absolute;inset:0;}
.studio-avatar-face i{position:absolute;top:45%;width:6%;height:7%;border-radius:50%;background:#2b211f;}
.studio-avatar-face i:first-child{left:29%;}.studio-avatar-face i:nth-child(2){right:29%;}
.studio-avatar-face b{position:absolute;left:50%;top:66%;width:18%;height:6%;border-bottom:1px solid rgba(69,41,34,.7);border-radius:0 0 50% 50%;transform:translateX(-50%);}
.studio-avatar-hair{position:absolute;z-index:5;left:-9%;right:-9%;top:-10%;height:45%;pointer-events:none;}
.studio-avatar-hair::before{content:"";position:absolute;left:8%;right:7%;top:0;height:64%;border-radius:55% 55% 35% 35%;background:#171b22;box-shadow:0 2px 4px rgba(0,0,0,.24);}
.studio-avatar-hair i{position:absolute;top:25%;width:20%;height:62%;border-radius:60% 20% 55% 30%;background:#171b22;transform:rotate(14deg);}
.studio-avatar-hair i:first-child{left:2%;}.studio-avatar-hair i:nth-child(2){right:0;transform:rotate(-14deg);}.studio-avatar-hair i:nth-child(3){left:42%;top:-3%;height:44%;transform:rotate(-8deg);}
.studio-avatar-torso{position:absolute;z-index:2;left:50%;top:48%;width:51%;height:50%;transform:translateX(-50%);border-radius:20% 20% 9% 9%;background:#162b40;box-shadow:inset 0 2px rgba(255,255,255,.035);}
.studio-avatar-shoulders{position:absolute;z-index:1;left:50%;top:50%;width:75%;height:33%;transform:translateX(-50%);}
.studio-avatar-shoulders i{position:absolute;top:0;width:31%;height:100%;border-radius:45% 45% 30% 30%;background:var(--studio-avatar-skin,#d59668);}.studio-avatar-shoulders i:first-child{left:0;transform:rotate(10deg);}.studio-avatar-shoulders i:last-child{right:0;transform:rotate(-10deg);}
.studio-avatar-back{position:absolute;z-index:0;left:50%;top:38%;width:88%;height:50%;transform:translateX(-50%);border-radius:60% 60% 30% 30%;border-left:3px solid rgba(85,105,128,.62);border-right:3px solid rgba(85,105,128,.62);}

/* V25.7 — Lua editor functionality. Existing Studio geometry and colour system remain unchanged. */
.lua-editor-shell{min-height:0;}
.lua-editor-shell #line-numbers{overflow:hidden !important;padding-top:9px !important;}
.lua-editor-shell #line-numbers span{display:block;min-height:1.65em;line-height:1.65;position:relative;}
.lua-editor-shell #line-numbers .lua-line-error{color:#e9a5ab !important;font-weight:700;}
.lua-editor-shell #line-numbers .lua-line-error::after{content:"";position:absolute;right:-10px;top:50%;width:3px;height:12px;transform:translateY(-50%);border-radius:2px;background:#bd5966;}
.lua-editor-layer{position:relative;min-width:0;min-height:0;overflow:hidden;background:#132231;font:12px/1.65 Consolas,"SFMono-Regular",monospace;}
.lua-editor-layer .lua-highlight,
.lua-editor-layer #script-textarea{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:9px 13px;border:0;box-sizing:border-box;white-space:pre;overflow:auto;tab-size:4;font:inherit;line-height:1.65;letter-spacing:normal;word-spacing:normal;}
.lua-editor-layer .lua-highlight{z-index:1;pointer-events:none;color:#d7dee7;background:#132231;text-align:left;overflow:hidden;}
.lua-editor-layer #script-textarea{z-index:3;resize:none;outline:0;background:transparent !important;color:transparent !important;-webkit-text-fill-color:transparent;caret-color:#edf4fb;}
.lua-editor-layer #script-textarea::selection{background:rgba(101,83,150,.34);}
.lua-current-line{position:absolute;z-index:2;pointer-events:none;left:0;right:0;top:var(--lua-current-y,9px);height:1.65em;background:rgba(255,255,255,.023);border-top:1px solid rgba(116,143,168,.035);border-bottom:1px solid rgba(116,143,168,.025);}
.lua-token.lua-keyword{color:#b4a2dd;}.lua-token.lua-literal{color:#c59ad2;}.lua-token.lua-string{color:#b8cf9e;}.lua-token.lua-number{color:#d8b98a;}.lua-token.lua-comment{color:#6f8797;font-style:italic;}.lua-token.lua-function{color:#8dc1cf;}.lua-token.lua-api{color:#8eb6da;}.lua-token.lua-member{color:#a7c3d8;}
.lua-autocomplete{position:absolute;z-index:8;right:14px;bottom:16px;width:min(390px,52%);max-height:240px;overflow:auto;padding:4px;background:#0b1724;border:1px solid #27394a;border-radius:6px;box-shadow:0 14px 36px rgba(0,0,0,.38);}
.lua-autocomplete[hidden],.lua-signature[hidden],.lua-find-bar[hidden]{display:none !important;}
.lua-autocomplete button{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;width:100%;padding:7px 9px;border:0;border-radius:4px;text-align:left;background:transparent;color:#dce5ee;}
.lua-autocomplete button:hover,.lua-autocomplete button.active{background:rgba(93,77,139,.22);}
.lua-autocomplete button span{display:flex;align-items:baseline;gap:7px;}.lua-autocomplete strong{font-size:11px;}.lua-autocomplete small{font-size:8px;color:#798da0;text-transform:uppercase;letter-spacing:.04em;}.lua-autocomplete code{font-size:9px;color:#9eb4c8;}.lua-autocomplete em{grid-column:1/-1;font-size:9px;font-style:normal;color:#71869a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.lua-signature{position:absolute;z-index:7;left:14px;bottom:14px;max-width:70%;padding:6px 9px;border:1px solid #263849;border-radius:5px;background:#0b1724;color:#b9c9d8;font:10px/1.4 Consolas,monospace;box-shadow:0 8px 24px rgba(0,0,0,.26);}
.lua-find-bar{position:absolute;z-index:10;top:8px;right:14px;display:flex;align-items:center;gap:4px;padding:5px;border:1px solid #27394a;border-radius:6px;background:#0a1622;box-shadow:0 10px 28px rgba(0,0,0,.32);}
.lua-find-bar input{width:150px;height:28px;padding:0 8px;border:1px solid #293d4e;border-radius:4px;background:#0e1c2a;color:#dce5ee;font-size:10px;outline:0;}.lua-find-bar input:focus{border-color:#5f5682;box-shadow:0 0 0 1px rgba(111,98,153,.22);}.lua-find-bar button{width:28px;height:28px;border:1px solid transparent;border-radius:4px;background:transparent;color:#9bafc0;}.lua-find-bar button:hover{background:#152536;color:#fff;}
.script-status [data-lua-diagnostic-status].error{color:#d7838e;}
.compact-logs{display:flex;flex-direction:column;}.compact-log-row{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:baseline;gap:7px;width:100%;min-height:24px;padding:3px 8px;border:0;background:transparent;color:inherit;text-align:left;font:inherit;}.compact-log-row:hover[data-open-log-script]{background:rgba(255,255,255,.025);}.compact-log-row time{color:#65798d;}.compact-log-row strong{color:#8fa6ba;font-weight:600;}.compact-log-row span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.compact-log-row.log-warning span{color:#d5b572;}.compact-log-row.log-error span{color:#d9858e;}
.script-open-tab[draggable="true"]{cursor:default;}.script-open-tab[draggable="true"]:active{opacity:.82;}
/* Mathematical centring only: do not change the existing profile footprint or avatar size. */
.studio-shell .rail-account{display:grid !important;grid-template-columns:1fr !important;justify-items:center !important;}
.studio-shell .rail-profile-button{justify-self:center !important;margin-inline:0 !important;}
.studio-shell .rail-account-actions{justify-self:center !important;margin-inline:0 !important;}
.lua-bracket-marker{position:absolute;z-index:2;pointer-events:none;border:1px solid rgba(139,123,184,.62);background:rgba(112,92,159,.12);border-radius:2px;box-sizing:border-box;}
.lua-diagnostic-line{position:absolute;z-index:2;pointer-events:auto;left:10px;right:10px;border-bottom:1px wavy rgba(199,91,105,.72);box-sizing:border-box;}


/* V25.8 RC portal truthfulness and QA polish. Scoped to the post-login portal only. */
.portal-shell .portal-cloud-panel{margin:14px 0;border-color:var(--line)}
.portal-shell .portal-cloud-panel.cloud{border-color:rgba(103,77,255,.35)}
.portal-shell .portal-cloud-panel.warning{border-color:rgba(245,183,30,.34)}
.portal-shell .portal-cloud-panel.error{border-color:rgba(231,94,114,.4)}
.portal-shell .portal-cloud-panel.offline{border-color:rgba(120,140,170,.35)}
.portal-shell .portal-cloud-state{display:flex;align-items:center;gap:13px}
.portal-shell .portal-cloud-state p{margin:4px 0 0}
.portal-shell .portal-empty-panel{margin-top:0}
.portal-shell .portal-coming-soon{min-height:330px;display:grid;place-items:center}
.portal-shell .portal-coming-soon .empty-state{max-width:640px;padding:48px 28px}
.portal-shell .portal-coming-soon .empty-state h2{margin:10px 0 4px}
.portal-shell .portal-coming-soon .empty-state .badge{margin-bottom:4px}
.portal-shell .docs-summary{font-size:14px;color:var(--text-secondary,#aeb5c4);margin:0 0 22px}
.portal-shell .docs-content-section{padding:0 0 18px;margin:0 0 18px;border-bottom:1px solid var(--line)}
.portal-shell .docs-content-section:last-of-type{border-bottom:0}
.portal-shell .docs-content-section h3{font-size:15px;margin:0 0 8px}
.portal-shell .docs-content-section p{margin:0;line-height:1.7}
.portal-shell .docs-prev-next{display:flex;justify-content:space-between;gap:12px;margin-top:26px}
.portal-shell .docs-search-results{margin:0 0 14px}
.portal-shell .docs-search-results .aside-list button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left}
.portal-shell .docs-search-results .aside-list button span{font-size:11px;color:var(--text-secondary,#aeb5c4)}
.portal-shell .portal-search-results{display:grid;gap:7px;margin-top:14px;max-height:55vh;overflow:auto}
.portal-shell .portal-search-result{justify-content:flex-start;text-align:left;min-height:48px}
.portal-shell .portal-search-result>span{display:flex;flex-direction:column;gap:3px;min-width:0}
.portal-shell .portal-search-result strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-shell .portal-search-result small{color:var(--text-secondary,#aeb5c4);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-shell .portal-access-list{display:grid;gap:4px}
.portal-shell .portal-access-list .list-row{grid-template-columns:minmax(0,1fr) auto auto}
.portal-shell .sidebar-footer{line-height:1.25}
.portal-shell .status-pill svg{width:14px;height:14px}
@media (max-width:900px){
  .portal-shell .docs-prev-next{flex-direction:column}
  .portal-shell .portal-access-list .list-row{grid-template-columns:1fr}
}


/* Studio portal simplification and project library — 2026-09-19 */
.portal-shell .status-pill{text-decoration:none}
.portal-shell .dashboard-getting-started{margin-top:22px}
.portal-shell .project-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.portal-shell .project-card .project-thumb{
  height:auto;
  aspect-ratio:1/1;
  background:var(--thumb,linear-gradient(135deg,#10243b,#48277e));
}
.portal-shell .project-card .project-thumb.has-game-icon img,
.portal-shell .table-thumb.has-game-icon img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.portal-shell .project-card .project-thumb.has-game-icon::before,
.portal-shell .project-card .project-thumb.has-game-icon::after,
.portal-shell .table-thumb.has-game-icon::before,
.portal-shell .table-thumb.has-game-icon::after{display:none}
.portal-shell .project-place-preview{isolation:isolate}
.portal-shell .project-place-preview::before,
.portal-shell .project-place-preview::after{display:none}
.portal-shell .place-preview-sky{
  position:absolute;
  inset:0;
  z-index:0;
  background:
    radial-gradient(circle at 50% 18%,rgba(255,255,255,.16),transparent 18%),
    linear-gradient(180deg,rgba(54,111,170,.38),rgba(10,26,47,.1) 56%,rgba(4,10,18,.42));
}
.portal-shell .place-preview-ground{
  position:absolute;
  left:8%;
  right:8%;
  bottom:7%;
  height:48%;
  z-index:1;
  border:1px solid rgba(207,225,240,.18);
  border-radius:10px 10px 18px 18px;
  background:
    linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px) 0 0/18px 18px,
    linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px) 0 0/18px 18px,
    linear-gradient(160deg,rgba(49,89,95,.82),rgba(13,31,49,.94));
  transform:perspective(280px) rotateX(56deg);
  transform-origin:bottom center;
  box-shadow:0 14px 35px rgba(0,0,0,.28);
}
.portal-shell .place-preview-spawn{
  position:absolute;
  left:50%;
  bottom:27%;
  width:32px;
  height:8px;
  z-index:2;
  transform:translateX(-50%) perspective(80px) rotateX(54deg);
  border:1px solid rgba(133,216,255,.8);
  border-radius:4px;
  background:linear-gradient(135deg,#4ce5ff,#665cff);
  box-shadow:0 0 18px rgba(76,229,255,.45);
}
.portal-shell .table-thumb{
  position:relative;
  width:48px;
  height:48px;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:9px;
  background:var(--thumb,linear-gradient(135deg,#10243b,#48277e));
  flex:none;
}
.portal-shell .table-thumb .place-preview-ground{bottom:4%;height:50%;border-radius:5px}
.portal-shell .table-thumb .place-preview-spawn{width:16px;height:5px;bottom:26%}
.portal-shell .project-scope-meta{margin-top:2px}
.portal-shell .project-scope-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 14px;
}
.portal-shell .project-folder-label{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#c8d3df;
  white-space:nowrap;
}
.portal-shell .project-folder-label svg{width:14px;height:14px}
.portal-shell .project-folders-panel,
.portal-shell .archived-projects-panel{margin-top:14px}
.portal-shell .project-folder-grid{margin-top:4px}
.portal-shell .card-actions .btn:first-child{flex:1}
.portal-shell .card-actions .btn:last-child{flex:0 0 auto}
@media (max-width:1200px){
  .portal-shell .project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:880px){
  .portal-shell .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .portal-shell .project-grid{grid-template-columns:1fr}
}


/* Team Create access management — 2026-09-19 */
.portal-shell .team-create-summary{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin:0 0 16px;
  padding:18px 20px;
  border:1px solid rgba(116,78,211,.5);
  border-radius:12px;
  background:linear-gradient(135deg,rgba(62,31,113,.42),rgba(21,18,48,.42));
}
.portal-shell .team-create-summary p,
.portal-shell .team-management-boundary p{margin:5px 0 0;color:var(--text-secondary,#aeb5c4)}
.portal-shell .team-project-section{margin-top:14px}
.portal-shell .team-project-list{display:grid}
.portal-shell .team-project-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:18px;
  align-items:center;
  padding:14px 18px;
  border-top:1px solid var(--line);
}
.portal-shell .team-project-row:first-child{border-top:0}
.portal-shell .team-project-main{display:flex;align-items:center;gap:12px;min-width:0}
.portal-shell .team-project-main strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-shell .team-project-main p{margin:3px 0 0;color:var(--text-secondary,#9fb2c5);font-size:12px}
.portal-shell .team-project-icon{
  position:relative;
  width:48px;
  height:48px;
  flex:none;
  overflow:hidden;
  border-radius:10px;
  background:var(--thumb,linear-gradient(135deg,#10243b,#48277e));
}
.portal-shell .team-project-icon img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.portal-shell .team-project-meta{display:flex;align-items:center;gap:10px}
.portal-shell .team-management-boundary{margin-top:16px}
.portal-shell .team-management-boundary-inner{display:flex;align-items:center;justify-content:space-between;gap:18px}
.team-manager-modal{width:min(760px,calc(100vw - 32px))}
.team-manager-loading{min-height:180px;display:grid;place-items:center}
.team-manager-summary{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  margin-bottom:16px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
  color:var(--text-secondary,#aeb5c4);
}
.team-add-form{
  display:grid;
  grid-template-columns:minmax(0,1fr) 150px auto;
  gap:10px;
  align-items:end;
  margin:0 0 6px;
}
.team-add-form .field{margin:0}
.team-add-note{margin:0 0 14px}
.team-member-list{border:1px solid var(--line);border-radius:10px;overflow:hidden}
.team-member-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 140px auto;
  gap:14px;
  align-items:center;
  padding:12px 14px;
  border-top:1px solid var(--line);
}
.team-member-row:first-child{border-top:0}
.team-member-identity{display:flex;align-items:center;gap:10px;min-width:0}
.team-member-identity strong,.team-member-identity span{display:block}
.team-member-identity span{margin-top:2px;font-size:11px;color:var(--text-secondary,#94a8bc)}
.team-member-avatar{
  width:38px;
  height:38px;
  flex:none;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:50%;
  background:#1b2940;
  font-weight:800;
}
.team-member-avatar img{width:100%;height:100%;object-fit:cover}
.team-member-avatar-fallback{background:linear-gradient(135deg,#5932bd,#213659)}
.team-member-role select{width:100%;min-width:110px}
.team-member-actions{display:flex;justify-content:flex-end}
.btn.danger{border-color:rgba(231,94,114,.42);color:#ff9cab}
.callout.compact{margin-top:14px;padding:12px 14px}
@media(max-width:850px){
  .portal-shell .team-project-row{grid-template-columns:minmax(0,1fr);gap:10px}
  .portal-shell .team-project-meta{justify-content:flex-start}
  .portal-shell .team-project-row .table-actions{justify-content:flex-start}
  .portal-shell .team-management-boundary-inner{align-items:flex-start;flex-direction:column}
  .team-add-form{grid-template-columns:1fr}
  .team-member-row{grid-template-columns:minmax(0,1fr)}
  .team-member-actions{justify-content:flex-start}
}

/* Team Create editor shortcut */
.studio-title-actions [data-editor-team-create]{position:relative}
.studio-team-add-badge{position:absolute;right:3px;bottom:2px;display:grid;place-items:center;width:12px;height:12px;border-radius:999px;background:#1687ff;color:#fff;font-size:10px;font-weight:800;line-height:1;box-shadow:0 0 0 2px #07111d;pointer-events:none}

/* Team Create role access */
.team-group-role-list{border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-top:14px}
.team-role-colour{width:12px;height:32px;flex:none;border-radius:999px;background:var(--team-role-colour,#8d9bad);box-shadow:0 0 0 1px rgba(255,255,255,.08)}
.team-group-role-row .team-member-role{min-width:160px}
.team-group-role-row select:disabled{opacity:.7;cursor:not-allowed}


/* V25.8.8 Explorer inline rename — compact Studio-style editing, not a browser prompt. */
#explorer-tree .studio-tree-row.renaming { cursor:text; }
#explorer-tree .studio-inline-rename {
  box-sizing:border-box;
  min-width:72px;
  max-width:220px;
  height:22px;
  margin:-2px 0;
  padding:1px 5px;
  border:1px solid rgba(151,104,255,.9);
  border-radius:5px;
  outline:2px solid rgba(116,79,214,.24);
  background:#0a1725;
  color:inherit;
  font:inherit;
  font-weight:600;
  line-height:18px;
}
#explorer-tree .studio-inline-rename:focus { outline:2px solid rgba(132,88,235,.38); }


/* V25.8.10 — Explorer rows behave like editor objects, not selectable webpage text. */
#explorer-tree .studio-tree-row,
#explorer-tree .studio-tree-row *:not(input):not(textarea) {
  -webkit-user-select: none;
  user-select: none;
}
#explorer-tree .studio-inline-rename {
  -webkit-user-select: text;
  user-select: text;
}


/* V25.8.17 — UI compatibility renderer. Editor and Play Test share these rules. */
.studio-ui-preview { pointer-events:none; }
.studio-ui-canvas,
.ui-preview-root { position:absolute; inset:0; pointer-events:none; }
.ui-preview-root { overflow:visible; }
.ui-preview-root > .ui-preview-children { position:absolute; inset:0; }
.ui-preview-object {
  opacity:1;
  display:block;
  min-width:0;
  min-height:0;
  border:0;
  box-sizing:border-box;
  pointer-events:auto;
  touch-action:none;
}
.ui-preview-textlabel { background:var(--ui-render-background,transparent)!important; }
.ui-preview-content {
  position:absolute;
  inset:0;
  display:flex;
  width:100%;
  height:100%;
  box-sizing:border-box;
  justify-content:center;
  overflow:hidden;
  pointer-events:none;
}
.ui-preview-text { display:block; width:100%; align-self:center; overflow:hidden; text-overflow:ellipsis; }
.ui-preview-children { position:absolute; inset:0; pointer-events:none; }
.ui-preview-children > .ui-preview-object { pointer-events:auto; }
.ui-preview-layout-list,
.ui-preview-layout-grid { overflow:visible; }
.ui-preview-image { display:block; width:100%; height:100%; }
.ui-preview-image-placeholder { margin:auto; opacity:.55; }
.ui-runtime-textbox {
  width:100%; height:100%; min-width:0; border:0; outline:0; padding:0 10px;
  background:transparent; color:inherit; font:inherit; pointer-events:auto;
}
.ui-preview-scrollingframe { scrollbar-width:thin; }
.ui-play-runtime .ui-preview-object { cursor:default; }
.ui-play-runtime .ui-preview-object.selected { outline:0; }
.ui-compat-test-command { margin-bottom:4px; border-bottom:1px solid rgba(112,132,158,.18); }


/* V25.8.26 — Animation Editor Stage 1 UI */
.studio-shell[data-workspace="animation"] .studio-left,
.studio-shell[data-workspace="animation"] .studio-centre,
.studio-shell[data-workspace="animation"] .studio-right { background:#0b1725; }
.studio-shell[data-workspace="animation"] .studio-left { overflow:hidden; }
.animation-editor-left { min-height:0; height:100%; display:grid; grid-template-rows:minmax(330px,56%) minmax(220px,44%); background:#0b1725; }
.animation-library-panel,.animation-rig-panel { min-height:0; display:flex; flex-direction:column; background:linear-gradient(180deg,#102033,#0b1827); }
.animation-library-panel { border-bottom:1px solid #243b51; }
.animation-panel-heading { min-height:46px; flex-basis:46px; background:#102033; }
.animation-panel-heading .studio-icon-button { width:28px; height:28px; border:0; background:transparent; color:#96a9bc; }
.animation-tabs { flex:0 0 39px; display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid #22384e; background:#0c1928; }
.animation-tabs button { border:0; background:transparent; color:#aab7c5; font-size:11px; font-weight:650; cursor:pointer; }
.animation-tabs button.active { color:#fff; background:linear-gradient(180deg,rgba(73,52,145,.34),rgba(40,32,97,.66)); box-shadow:inset 0 -2px #8055ef; }
.animation-search { padding:10px 12px 8px; }
.animation-search label { height:34px; border-color:#223a50; border-radius:5px; background:#071522; }
.animation-search input { font-size:10px; }
.new-animation { flex:0 0 36px; width:calc(100% - 24px); margin:0 12px 7px; display:flex; align-items:center; justify-content:center; gap:8px; border:1px solid #29445d; border-radius:5px; background:#102235; color:#f4f7fb; font-size:10px; font-weight:700; cursor:pointer; }
.new-animation:hover { border-color:#5d4e9e; background:#182b42; }
.new-animation svg { width:14px; height:14px; }
.animation-list { min-height:0; flex:1; overflow:auto; padding:1px 10px; }
.animation-item { width:100%; height:33px; margin:0; display:grid; grid-template-columns:18px 1fr auto; align-items:center; gap:8px; padding:0 9px; border:1px solid transparent; border-radius:4px; background:transparent; color:#e7edf4; font-size:10px; text-align:left; cursor:pointer; }
.animation-item:hover { background:#13263a; }
.animation-item.active { border-color:#40347f; background:linear-gradient(90deg,#30286c,#242456); box-shadow:inset 2px 0 #8b5cf6; }
.animation-item svg { width:13px; height:13px; color:#d9e4ef; }
.animation-item time { color:#9dafc1; font-variant-numeric:tabular-nums; }
.animation-list-footer { flex:0 0 34px; display:flex; align-items:center; justify-content:space-between; padding:0 12px; color:#91a2b4; font-size:9px; }
.animation-list-footer button { width:28px; height:24px; display:grid; place-items:center; border:0; border-radius:4px; background:#122439; color:#aebdcb; }
.animation-list-footer svg { width:13px; }
.animation-rig-panel .studio-panel-heading { border-top:0; }
.animation-rig-tree { min-height:0; flex:1; overflow:auto; padding:7px 8px 14px; }
.animation-rig-root,.animation-rig-node { height:29px; display:grid; grid-template-columns:14px 15px 1fr; align-items:center; gap:5px; border-radius:4px; color:#d8e0e8; font-size:10px; }
.animation-rig-root { padding:0 6px; font-weight:700; }
.animation-rig-node { padding-left:calc(6px + (var(--rig-indent,1) * 16px)); }
.animation-rig-node:hover { background:#13263a; }
.animation-rig-root svg,.animation-rig-node svg { width:12px; height:12px; color:#aebed0; }
.rig-tree-spacer { width:12px; }

.animation-workspace-tabs { flex:0 0 38px; }
.animation-workspace-v25826 { min-height:0; flex:1; display:grid; grid-template-rows:minmax(360px,56%) minmax(275px,44%); gap:1px; background:#294057; }
.animation-workspace-v25826 .animation-stage { position:relative; min-height:0; overflow:hidden; background:#101c2b; }
.animation-workspace-v25826 .animation-title { position:absolute; z-index:8; inset:0 0 auto; height:50px; padding:0 14px; background:rgba(15,30,45,.97); border-bottom:1px solid #263d52; }
.animation-workspace-v25826 .animation-title h2 { margin:0; display:flex; align-items:center; gap:5px; font-size:14px; letter-spacing:-.01em; }
.animation-rename-button { width:24px!important; min-width:24px!important; height:24px!important; border:0!important; background:transparent!important; color:#93a4b5!important; }
.animation-rename-button svg { width:12px; height:12px; }
.animation-viewport-tools { display:flex; align-items:center; gap:6px!important; }
.animation-workspace-v25826 .animation-title button { height:29px; min-width:30px; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:0 8px; border:1px solid #294258; border-radius:5px; background:#102235; color:#d7e0e9; font-size:9px; }
.animation-workspace-v25826 .animation-title button:hover { border-color:#486580; background:#172a3e; }
.animation-workspace-v25826 .animation-title button.play { border-color:#275846; background:#123329; color:#4be58f; }
.animation-workspace-v25826 .animation-title button svg { width:13px; height:13px; }
.animation-dropdown svg { width:10px!important; }
.animation-toolbar-separator { width:1px; height:20px; background:#294157; margin:0 2px; }
.animation-workspace-v25826 #animation-canvas { width:100%; height:calc(100% - 102px); margin-top:50px; display:block; background:#101c2b; }
.animation-axis { z-index:7; top:72px; right:24px; transform:scale(.86); transform-origin:top right; }
.animation-workspace-v25826 .animation-transport { position:absolute; z-index:8; inset:auto 0 0; height:52px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 13px; border-top:1px solid #263d52; background:#0f1e2d; }
.animation-transport-main,.animation-transport-tools { display:flex; align-items:center; gap:8px; }
.animation-transport button { width:29px; height:29px; display:grid; place-items:center; border:1px solid transparent; border-radius:5px; background:transparent; color:#cbd6e1; font-size:10px; }
.animation-transport button:hover { border-color:#2b445b; background:#15283c; }
.animation-transport button.play { color:#48df87; }
.animation-transport button svg { width:14px; height:14px; }
.animation-transport strong { margin-left:8px; font-size:11px; font-variant-numeric:tabular-nums; }
.animation-transport strong span { color:#91a5b8; font-weight:500; }
.animation-transport-tools { margin-left:auto; }

.animation-timeline-v25826 { min-height:0; display:grid; grid-template-rows:40px 38px minmax(0,1fr); overflow:hidden; background:#0d1a28; }
.animation-scrub-ruler { position:relative; height:40px; margin-left:0; border-bottom:1px solid #263d52; background:#0c1927; overflow:hidden; }
.animation-scrub-ruler::after { content:""; position:absolute; left:0; right:0; bottom:6px; height:8px; background:repeating-linear-gradient(90deg,#334b61 0 1px,transparent 1px 22px); opacity:.7; }
.animation-scrub-ruler>span { position:absolute; top:8px; transform:translateX(-50%); color:#95a6b6; font-size:8px; white-space:nowrap; }
.animation-scrub-ruler>span:first-of-type { transform:none; }
.animation-scrub-ruler small { color:#667c91; font-size:7px; }
.animation-scrub-ruler>i { position:absolute; z-index:3; left:0; top:0; bottom:0; width:1px; background:#9367ff; box-shadow:0 0 8px rgba(147,103,255,.35); }
.animation-playhead-label { position:absolute; z-index:4; left:0; top:0; min-width:64px; height:25px; padding:0 9px; display:flex; align-items:center; justify-content:center; border-radius:0 0 5px 0; background:#2c235e; color:#cabfff; font-size:8px; }
.animation-timeline-v25826 .timeline-tabs { height:38px; display:flex; align-items:stretch; border-bottom:1px solid #263d52; background:#101e2e; }
.animation-timeline-v25826 .timeline-tabs button { min-width:83px; padding:0 14px; border:0; border-right:1px solid transparent; background:transparent; color:#adb9c6; font-size:10px; cursor:pointer; }
.animation-timeline-v25826 .timeline-tabs button.active { color:#fff; background:#282158; box-shadow:inset 0 -2px #8a5df5; }
.animation-timeline-grid { min-height:0; display:grid; grid-template-columns:190px minmax(0,1fr); overflow:hidden; }
.animation-track-list { min-height:0; overflow:auto; border-right:1px solid #263d52; background:#0e1c2b; }
.animation-track-head,.animation-track-row { height:27px; display:grid; align-items:center; gap:5px; padding:0 9px; border-bottom:1px solid rgba(51,77,99,.28); font-size:9px; }
.animation-track-head { grid-template-columns:14px 1fr; color:#e5ebf2; }
.animation-track-row { grid-template-columns:12px 9px 1fr 13px; color:#aebccb; }
.animation-track-row.group { color:#d9e2ea; font-weight:650; }
.animation-track-row.position,.animation-track-row.rotation { padding-left:25px; }
.animation-track-row svg { width:11px; height:11px; }
.track-indent { width:10px; }
.track-dot { width:6px; height:6px; border-radius:50%; background:#63788d; }
.animation-track-row[data-track-colour="blue"] .track-dot { background:#4aa9ff; }.animation-track-row[data-track-colour="orange"] .track-dot { background:#ff9b36; }
.animation-track-row[data-track-colour="green"] .track-dot { background:#45d57c; }.animation-track-row[data-track-colour="lime"] .track-dot { background:#82dc4a; }
.animation-track-row[data-track-colour="pink"] .track-dot { background:#d75ee8; }.animation-track-row[data-track-colour="purple"] .track-dot { background:#945cf5; }
.animation-keyframe-grid { position:relative; min-width:0; overflow:auto; padding-top:27px; background:repeating-linear-gradient(90deg,transparent 0 calc(16.666% - 1px),rgba(55,83,108,.35) calc(16.666% - 1px) 16.666%),#0b1826; }
.animation-frame-header { position:absolute; z-index:3; left:0; right:0; top:0; height:27px; border-bottom:1px solid #263d52; background:#0e1c2a; }
.animation-frame-header span { position:absolute; top:8px; transform:translateX(-50%); color:#8fa1b3; font-size:8px; }
.animation-frame-header span:first-child { transform:none; }
.animation-keyframe-grid .key-row { position:relative; height:27px; border-bottom:1px solid rgba(51,77,99,.28); }
.animation-keyframe-grid .key-row i { position:absolute; top:50%; width:7px; height:7px; transform:translate(-50%,-50%) rotate(45deg); border-radius:1px; background:#667b90; box-shadow:0 0 0 1px rgba(255,255,255,.05); }
.animation-keyframe-grid .key-row[data-row-colour="blue"] i { background:#4aa9ff; }.animation-keyframe-grid .key-row[data-row-colour="orange"] i { background:#ff9b36; }
.animation-keyframe-grid .key-row[data-row-colour="green"] i { background:#45d57c; }.animation-keyframe-grid .key-row[data-row-colour="lime"] i { background:#82dc4a; }
.animation-keyframe-grid .key-row[data-row-colour="pink"] i { background:#d75ee8; }.animation-keyframe-grid .key-row[data-row-colour="purple"] i { background:#945cf5; }
.animation-playhead-line { position:absolute; z-index:4; left:0; top:0; bottom:0; width:1px; background:#9367ff; pointer-events:none; }
.studio-shell[data-workspace="animation"] .studio-properties-body { background:#0d1b2a; }
.studio-shell[data-workspace="animation"] .studio-prop-section { border-color:#243b50; }
.studio-shell[data-workspace="animation"] .studio-prop-row { min-height:32px; }
.studio-shell[data-workspace="animation"] .studio-prop-row input:not([type=checkbox]):not([type=range]),
.studio-shell[data-workspace="animation"] .studio-prop-row select { height:28px; background:#071522; border-color:#233b50; }

@media(max-width:1370px){
  .animation-editor-left{grid-template-rows:minmax(300px,54%) minmax(210px,46%)}
  .animation-timeline-grid{grid-template-columns:165px minmax(0,1fr)}
  .animation-workspace-v25826{grid-template-rows:minmax(330px,54%) minmax(260px,46%)}
  .animation-viewport-tools{gap:4px!important}.animation-workspace-v25826 .animation-title button{padding:0 6px}
}


/* V25.8.27 — focused Animation Editor workspace */
/* Animation mode is intentionally quieter than the world-building workspace. */
.studio-shell[data-workspace="animation"] {
  grid-template-rows:60px 82px minmax(0,1fr) !important;
}
.studio-shell[data-workspace="animation"] .studio-commandbar {
  height:82px !important;
  min-height:82px !important;
  grid-template-columns:116px minmax(0,1fr) !important;
  padding-right:12px !important;
}
.studio-shell[data-workspace="animation"] .command-other { display:none !important; }
.studio-shell[data-workspace="animation"] .command-tools {
  min-width:0;
  justify-content:flex-start;
  overflow:hidden;
}
.studio-shell[data-workspace="animation"] .command-tools [data-editor-action="scale"],
.studio-shell[data-workspace="animation"] .command-tools [data-editor-action="transform"],
.studio-shell[data-workspace="animation"] .command-tools [data-editor-action="collisions"],
.studio-shell[data-workspace="animation"] .command-tools [data-editor-action="snap"],
.studio-shell[data-workspace="animation"] .command-tools [data-editor-action="align"],
.studio-shell[data-workspace="animation"] .command-tools [data-editor-action="group"],
.studio-shell[data-workspace="animation"] .command-tools [data-editor-action="lock"],
.studio-shell[data-workspace="animation"] .command-tools [data-editor-action="anchor"],
.studio-shell[data-workspace="animation"] .command-tools [data-editor-action="add-spawn"],
.studio-shell[data-workspace="animation"] .command-tools .part-menu-wrap { display:none !important; }
.studio-shell[data-workspace="animation"] .command-tool {
  min-width:58px !important;
  height:61px !important;
  padding:5px 9px !important;
}
.studio-shell[data-workspace="animation"] .command-tool svg { width:20px !important; height:20px !important; }

/* Give the viewport the space previously consumed by the broad Studio chrome. */
.studio-shell[data-workspace="animation"] .studio-layout {
  --rail-width:58px !important;
  --explorer-width:286px !important;
  --explorer-panel-width:286px !important;
}
.studio-shell[data-workspace="animation"][data-animation-properties="closed"] .studio-layout {
  --properties-width:0px !important;
  --properties-panel-width:320px !important;
}
.studio-shell[data-workspace="animation"][data-animation-properties="open"] .studio-layout {
  --properties-width:320px !important;
  --properties-panel-width:320px !important;
}
.studio-shell[data-workspace="animation"][data-animation-properties="closed"] .studio-right,
.studio-shell[data-workspace="animation"][data-animation-properties="closed"] .dock-stack-splitter { display:none !important; }

/* Keep the permanent tool rail, but make it icon-first in Animation mode. */
.studio-shell[data-workspace="animation"] .studio-rail { margin-left:4px; margin-right:4px; }
.studio-shell[data-workspace="animation"] .rail-items { padding-left:5px; padding-right:5px; gap:2px; }
.studio-shell[data-workspace="animation"] .rail-button {
  min-height:46px !important;
  height:46px !important;
  padding:4px !important;
}
.studio-shell[data-workspace="animation"] .rail-button > span { display:none !important; }
.studio-shell[data-workspace="animation"] .rail-button svg { width:19px !important; height:19px !important; }
.studio-shell[data-workspace="animation"] .rail-account { padding-top:7px; padding-bottom:7px; }

/* Compact timeline is the default; creators can expand it when doing detailed keyframe work. */
.studio-shell[data-workspace="animation"] .animation-workspace-v25826 {
  grid-template-rows:minmax(420px,1fr) 190px !important;
}
.studio-shell[data-workspace="animation"][data-animation-timeline="expanded"] .animation-workspace-v25826 {
  grid-template-rows:minmax(350px,1fr) 330px !important;
}
.studio-shell[data-workspace="animation"] .animation-timeline-v25826 { min-height:0; }
.studio-shell[data-workspace="animation"] .timeline-tabs { min-height:38px; }
.animation-timeline-tabs-spacer { flex:1; }
.animation-timeline-size-toggle { margin-left:auto !important; min-width:34px !important; width:34px; }
.animation-properties-toggle.active { border-color:#7058d8 !important; background:#2d245f !important; color:#fff !important; }

@media(max-width:1370px) {
  .studio-shell[data-workspace="animation"] .studio-layout {
    --rail-width:54px !important;
    --explorer-width:250px !important;
    --explorer-panel-width:250px !important;
  }
  .studio-shell[data-workspace="animation"][data-animation-properties="open"] .studio-layout {
    --properties-width:288px !important;
    --properties-panel-width:288px !important;
  }
}


/* V25.8.28 — viewport-first Animation Editor */
.studio-shell[data-workspace="animation"] {
  grid-template-rows:56px 0 minmax(0,1fr) !important;
}
.studio-shell[data-workspace="animation"] .studio-commandbar { display:none !important; }
.studio-shell[data-workspace="animation"] .studio-topbar { min-height:56px !important; height:56px !important; }

.studio-shell[data-workspace="animation"] .studio-layout {
  --rail-width:50px !important;
  --explorer-width:0px !important;
  --explorer-panel-width:268px !important;
}
.studio-shell[data-workspace="animation"][data-animation-library="open"] .studio-layout {
  --explorer-width:268px !important;
  --explorer-panel-width:268px !important;
}
.studio-shell[data-workspace="animation"][data-animation-library="closed"] .studio-left { display:none !important; }
.studio-shell[data-workspace="animation"] .studio-rail { margin:3px 3px 3px 2px !important; border-radius:7px !important; }
.studio-shell[data-workspace="animation"] .rail-items { padding:4px 3px !important; gap:1px !important; }
.studio-shell[data-workspace="animation"] .rail-button { min-height:42px !important; height:42px !important; border-radius:6px !important; }
.studio-shell[data-workspace="animation"] .rail-button svg { width:17px !important; height:17px !important; }
.studio-shell[data-workspace="animation"] .rail-avatar { width:29px !important; height:29px !important; }

.studio-shell[data-workspace="animation"] .workspace-tabs,
.studio-shell[data-workspace="animation"] .animation-workspace-tabs { min-height:42px !important; height:42px !important; }
.studio-shell[data-workspace="animation"] .workspace-tabs button { height:42px !important; padding-top:0 !important; padding-bottom:0 !important; }
.studio-shell[data-workspace="animation"] .animation-title { height:46px !important; min-height:46px !important; padding:0 12px !important; }
.studio-shell[data-workspace="animation"] #animation-canvas { margin-top:46px !important; height:calc(100% - 46px) !important; }
.studio-shell[data-workspace="animation"] .animation-transport { height:48px !important; min-height:48px !important; }
.studio-shell[data-workspace="animation"] .animation-viewport-tools button { height:30px !important; min-width:32px !important; }
.animation-library-toggle.active,
.animation-properties-toggle.active { border-color:#7058d8 !important; background:#2d245f !important; color:#fff !important; }

.studio-shell[data-workspace="animation"] .animation-workspace-v25826 {
  grid-template-rows:minmax(360px,1fr) 280px !important;
}
.studio-shell[data-workspace="animation"][data-animation-timeline="expanded"] .animation-workspace-v25826 {
  grid-template-rows:minmax(300px,1fr) 410px !important;
}
.studio-shell[data-workspace="animation"] .animation-timeline-v25826 { min-height:280px !important; overflow:hidden !important; }
.studio-shell[data-workspace="animation"][data-animation-timeline="expanded"] .animation-timeline-v25826 { min-height:410px !important; }
.studio-shell[data-workspace="animation"] .animation-scrub-ruler { min-height:46px !important; height:46px !important; }
.studio-shell[data-workspace="animation"] .timeline-tabs { min-height:38px !important; height:38px !important; }
.studio-shell[data-workspace="animation"] .animation-timeline-grid { min-height:0 !important; height:calc(100% - 84px) !important; overflow:auto !important; }
.studio-shell[data-workspace="animation"] .animation-track-list,
.studio-shell[data-workspace="animation"] .animation-keyframe-grid,
.studio-shell[data-workspace="animation"] .keyframes { min-height:190px !important; }

@media(max-width:1370px) {
  .studio-shell[data-workspace="animation"] .studio-layout {
    --rail-width:46px !important;
    --explorer-panel-width:240px !important;
  }
  .studio-shell[data-workspace="animation"][data-animation-library="open"] .studio-layout {
    --explorer-width:240px !important;
    --explorer-panel-width:240px !important;
  }
  .studio-shell[data-workspace="animation"] .animation-workspace-v25826 {
    grid-template-rows:minmax(330px,1fr) 265px !important;
  }
}


/* V25.8.29 — Animation Editor grid repair + rail order */
/* The command ribbon is removed from Animation mode, so the shell needs only
   two live grid rows: the title bar and the editor workspace. */
.studio-shell[data-workspace="animation"] {
  grid-template-rows:56px minmax(0,1fr) !important;
}
.studio-shell[data-workspace="animation"] .studio-topbar {
  grid-row:1 !important;
}
.studio-shell[data-workspace="animation"] .studio-commandbar {
  display:none !important;
}
.studio-shell[data-workspace="animation"] .studio-layout {
  grid-row:2 !important;
  min-height:0 !important;
  height:auto !important;
  --rail-width:58px !important;
}

/* Keep every grid role stable whether its drawer is open or closed. */
.studio-shell[data-workspace="animation"] .studio-rail {
  grid-column:1 !important;
  display:flex !important;
  visibility:visible !important;
}
.studio-shell[data-workspace="animation"] .studio-left {
  grid-column:2 !important;
}
.studio-shell[data-workspace="animation"] .studio-centre {
  grid-column:3 !important;
  min-width:0 !important;
  visibility:visible !important;
  display:block !important;
}
.studio-shell[data-workspace="animation"] .studio-right {
  grid-column:4 !important;
}
.studio-shell[data-workspace="animation"][data-animation-library="closed"] .studio-left {
  display:block !important;
  visibility:hidden !important;
  pointer-events:none !important;
  overflow:hidden !important;
}
.studio-shell[data-workspace="animation"][data-animation-library="open"] .studio-left {
  display:block !important;
  visibility:visible !important;
  pointer-events:auto !important;
}

/* Keep the permanent navigation rail readable while preserving viewport space. */
.studio-shell[data-workspace="animation"] .studio-rail {
  margin:3px 3px 3px 2px !important;
  border-radius:7px !important;
}
.studio-shell[data-workspace="animation"] .rail-items {
  padding:5px 4px !important;
  gap:2px !important;
}
.studio-shell[data-workspace="animation"] .rail-button {
  min-height:44px !important;
  height:44px !important;
}
.studio-shell[data-workspace="animation"] .rail-button svg {
  width:18px !important;
  height:18px !important;
}

@media(max-width:1370px) {
  .studio-shell[data-workspace="animation"] .studio-layout {
    --rail-width:54px !important;
  }
}


/* V25.8.30 — concept-locked Animation Editor layout */
/* Animation Editor is a dedicated workspace inside the normal ESB Studio shell.
   The global rail is intentionally identical to the rest of Studio. */
.studio-shell[data-workspace="animation"] {
  grid-template-rows:56px minmax(0,1fr) !important;
}
.studio-shell[data-workspace="animation"] .studio-commandbar { display:none !important; }
.studio-shell[data-workspace="animation"] .studio-layout {
  grid-row:2 !important;
  min-height:0 !important;
  height:auto !important;
  display:grid !important;
  grid-template-columns:74px 286px minmax(0,1fr) 320px !important;
  grid-template-rows:minmax(0,1fr) !important;
  --rail-width:74px !important;
  --explorer-width:286px !important;
  --explorer-panel-width:286px !important;
  --properties-width:320px !important;
  --properties-panel-width:320px !important;
}

/* Never alter, collapse or icon-only the permanent Studio rail in Animation mode. */
.studio-shell[data-workspace="animation"] .studio-rail {
  grid-column:1 !important;
  display:flex !important;
  visibility:visible !important;
  margin:0 !important;
  border-radius:0 !important;
}
.studio-shell[data-workspace="animation"] .rail-items {
  padding:8px 7px !important;
  gap:3px !important;
}
.studio-shell[data-workspace="animation"] .rail-button {
  min-height:54px !important;
  height:auto !important;
  padding:5px 3px !important;
}
.studio-shell[data-workspace="animation"] .rail-button > span {
  display:inline !important;
}
.studio-shell[data-workspace="animation"] .rail-button svg {
  width:19px !important;
  height:19px !important;
}

/* Animations/Rig is permanently docked beside the unchanged Studio rail. */
.studio-shell[data-workspace="animation"] .studio-left,
.studio-shell[data-workspace="animation"][data-animation-library="closed"] .studio-left,
.studio-shell[data-workspace="animation"][data-animation-library="open"] .studio-left {
  grid-column:2 !important;
  display:block !important;
  visibility:visible !important;
  pointer-events:auto !important;
  width:auto !important;
  min-width:0 !important;
  overflow:hidden !important;
}

/* The centre fills exactly the space between the two permanent docked panels. */
.studio-shell[data-workspace="animation"] .studio-centre {
  grid-column:3 !important;
  display:grid !important;
  grid-template-rows:42px minmax(0,1fr) !important;
  min-width:0 !important;
  min-height:0 !important;
  height:100% !important;
  overflow:hidden !important;
  visibility:visible !important;
}
.studio-shell[data-workspace="animation"] .workspace-tabs,
.studio-shell[data-workspace="animation"] .animation-workspace-tabs {
  grid-row:1 !important;
  min-height:42px !important;
  height:42px !important;
}

/* Properties stays docked like the concept. No reserved grey block is possible. */
.studio-shell[data-workspace="animation"] .studio-right,
.studio-shell[data-workspace="animation"][data-animation-properties="closed"] .studio-right,
.studio-shell[data-workspace="animation"][data-animation-properties="open"] .studio-right {
  grid-column:4 !important;
  display:block !important;
  visibility:visible !important;
  pointer-events:auto !important;
  width:auto !important;
  min-width:0 !important;
}
.studio-shell[data-workspace="animation"] .animation-library-toggle,
.studio-shell[data-workspace="animation"] .animation-properties-toggle {
  display:none !important;
}

/* The animation workspace itself is height-constrained. This is what keeps the
   real keyframe tracks on screen instead of letting the centre overflow below it. */
.studio-shell[data-workspace="animation"] .animation-workspace-v25826 {
  grid-row:2 !important;
  display:grid !important;
  grid-template-rows:minmax(300px,1fr) 310px !important;
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  overflow:hidden !important;
}
.studio-shell[data-workspace="animation"][data-animation-timeline="expanded"] .animation-workspace-v25826 {
  grid-template-rows:minmax(250px,1fr) 410px !important;
}

/* Viewport: title, real canvas, transport. */
.studio-shell[data-workspace="animation"] .animation-stage {
  min-height:0 !important;
  height:auto !important;
  display:grid !important;
  grid-template-rows:46px minmax(0,1fr) 48px !important;
  position:relative !important;
  overflow:hidden !important;
}
.studio-shell[data-workspace="animation"] .animation-title {
  grid-row:1 !important;
  min-height:46px !important;
  height:46px !important;
}
.studio-shell[data-workspace="animation"] #animation-canvas {
  grid-row:2 !important;
  position:relative !important;
  inset:auto !important;
  margin:0 !important;
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
}
.studio-shell[data-workspace="animation"] .animation-transport {
  grid-row:3 !important;
  min-height:48px !important;
  height:48px !important;
}

/* Timeline: ruler and tabs remain fixed; the actual tracks own the remaining
   height and scroll internally. At least several Position/Rotation rows are
   visible immediately on a typical 768–900px-high desktop. */
.studio-shell[data-workspace="animation"] .animation-timeline-v25826 {
  min-height:310px !important;
  height:310px !important;
  display:grid !important;
  grid-template-rows:46px 38px minmax(0,1fr) !important;
  overflow:hidden !important;
}
.studio-shell[data-workspace="animation"][data-animation-timeline="expanded"] .animation-timeline-v25826 {
  min-height:410px !important;
  height:410px !important;
}
.studio-shell[data-workspace="animation"] .animation-scrub-ruler {
  grid-row:1 !important;
  min-height:46px !important;
  height:46px !important;
}
.studio-shell[data-workspace="animation"] .timeline-tabs {
  grid-row:2 !important;
  min-height:38px !important;
  height:38px !important;
}
.studio-shell[data-workspace="animation"] .animation-timeline-grid {
  grid-row:3 !important;
  height:auto !important;
  min-height:0 !important;
  overflow:auto !important;
}
.studio-shell[data-workspace="animation"] .animation-track-list,
.studio-shell[data-workspace="animation"] .animation-keyframe-grid,
.studio-shell[data-workspace="animation"] .keyframes {
  min-height:226px !important;
}

@media(max-width:1370px) {
  .studio-shell[data-workspace="animation"] .studio-layout {
    grid-template-columns:68px 250px minmax(0,1fr) 288px !important;
    --rail-width:68px !important;
    --explorer-width:250px !important;
    --explorer-panel-width:250px !important;
    --properties-width:288px !important;
    --properties-panel-width:288px !important;
  }
  .studio-shell[data-workspace="animation"] .animation-workspace-v25826 {
    grid-template-rows:minmax(270px,1fr) 290px !important;
  }
  .studio-shell[data-workspace="animation"] .animation-timeline-v25826 {
    min-height:290px !important;
    height:290px !important;
  }
  .studio-shell[data-workspace="animation"] .animation-track-list,
  .studio-shell[data-workspace="animation"] .animation-keyframe-grid,
  .studio-shell[data-workspace="animation"] .keyframes {
    min-height:206px !important;
  }
}


/* V25.8.31 — dedicated Animation Editor transform tools */
/* These are animation tools, not the global world-building ribbon. They stay
   compact and live beside the animation name so posing/keyframing has an
   obvious Select / Move / Rotate / Scale workflow. */
.studio-shell[data-workspace="animation"] .animation-viewport-tools {
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
  min-width:0 !important;
}
.studio-shell[data-workspace="animation"] .animation-transform-strip {
  display:flex !important;
  align-items:center !important;
  gap:4px !important;
  min-width:0 !important;
}
.studio-shell[data-workspace="animation"] .animation-transform-tool {
  width:auto !important;
  min-width:64px !important;
  height:32px !important;
  padding:0 9px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  border:1px solid #29445d !important;
  border-radius:5px !important;
  background:#0d2032 !important;
  color:#cbd7e4 !important;
  font-size:10px !important;
  font-weight:650 !important;
  line-height:1 !important;
}
.studio-shell[data-workspace="animation"] .animation-transform-tool svg {
  width:15px !important;
  height:15px !important;
  flex:0 0 auto !important;
}
.studio-shell[data-workspace="animation"] .animation-transform-tool:hover {
  background:#162c42 !important;
  border-color:#42627e !important;
  color:#fff !important;
}
.studio-shell[data-workspace="animation"] .animation-transform-tool.active,
.studio-shell[data-workspace="animation"] .animation-transform-tool[aria-pressed="true"] {
  background:linear-gradient(180deg,#392c76,#2a235e) !important;
  border-color:#815cf0 !important;
  box-shadow:inset 0 0 0 1px rgba(159,124,255,.18) !important;
  color:#fff !important;
}
.studio-shell[data-workspace="animation"] .animation-camera-tool {
  width:34px !important;
  min-width:34px !important;
  height:32px !important;
  padding:0 !important;
}

/* Keep the transform strip useful without crowding smaller editor widths. */
@media(max-width:1510px) {
  .studio-shell[data-workspace="animation"] .animation-transform-tool {
    width:34px !important;
    min-width:34px !important;
    padding:0 !important;
  }
  .studio-shell[data-workspace="animation"] .animation-transform-tool > span {
    display:none !important;
  }
}


/* V25.8.32 — Animation Editor Properties panel render repair */
.studio-shell[data-workspace="animation"] #studio-properties {
  display:flex !important;
  flex-direction:column !important;
  min-height:0 !important;
  height:100% !important;
  overflow:hidden !important;
  background:#0d1c2a !important;
  border-left:1px solid #20364a !important;
}
.studio-shell[data-workspace="animation"] #studio-properties > .studio-panel-heading {
  display:flex !important;
  flex:0 0 auto !important;
}


/* V25.8.33 — animation tabs + timeline-owned rig tracks */
.studio-shell[data-workspace="animation"] .studio-layout {
  grid-template-columns:74px minmax(0,1fr) 320px !important;
  --rail-width:74px !important;
  --explorer-width:0px !important;
  --explorer-panel-width:0px !important;
  --properties-width:320px !important;
  --properties-panel-width:320px !important;
}
.studio-shell[data-workspace="animation"] .studio-left { display:none !important; }
.studio-shell[data-workspace="animation"] .studio-centre { grid-column:2 !important; min-width:0 !important; }
.studio-shell[data-workspace="animation"] .studio-right,
.studio-shell[data-workspace="animation"] #studio-properties { grid-column:3 !important; }

.studio-shell[data-workspace="animation"] .animation-document-tabs {
  display:flex !important; min-width:0 !important; overflow-x:auto !important; overflow-y:hidden !important; scrollbar-width:thin;
}
.studio-shell[data-workspace="animation"] .animation-document-tabs > button {
  flex:0 0 auto !important; min-width:86px !important; height:42px !important; padding:0 12px !important;
  display:inline-flex !important; align-items:center !important; justify-content:center !important; gap:7px !important; border-right:1px solid #22384b !important;
}
.studio-shell[data-workspace="animation"] .animation-document-tabs .animation-main-world-tab { min-width:112px !important; }
.studio-shell[data-workspace="animation"] .animation-document-tab.active {
  background:linear-gradient(180deg,rgba(64,49,126,.38),rgba(34,30,73,.58)) !important;
  box-shadow:inset 0 -2px #8a61f3 !important; color:#fff !important;
}
.studio-shell[data-workspace="animation"] .animation-new-tab { min-width:44px !important; width:44px !important; color:#aebdca !important; }

.studio-shell[data-workspace="animation"] .animation-track-workflow { grid-template-columns:230px minmax(0,1fr) !important; }
.studio-shell[data-workspace="animation"] .animation-track-list { position:relative !important; overflow:auto !important; background:#0b1a29 !important; }
.studio-shell[data-workspace="animation"] .animation-track-row {
  width:100% !important; border:0 !important; border-bottom:1px solid rgba(42,65,86,.55) !important; border-radius:0 !important;
  text-align:left !important; cursor:pointer !important;
}
.studio-shell[data-workspace="animation"] .animation-track-row.group:hover,
.studio-shell[data-workspace="animation"] .animation-track-row.group.selected { background:#162b40 !important; }
.studio-shell[data-workspace="animation"] .animation-track-row.group.selected { box-shadow:inset 2px 0 #885cf4 !important; }
.studio-shell[data-workspace="animation"] .animation-add-track-wrap { position:relative !important; padding:8px !important; border-top:1px solid #22384b !important; background:#0b1826 !important; }
.studio-shell[data-workspace="animation"] .animation-add-track {
  width:100% !important; height:32px !important; display:flex !important; align-items:center !important; justify-content:flex-start !important;
  gap:7px !important; padding:0 10px !important; border:1px dashed #35516b !important; border-radius:5px !important;
  background:#0e2133 !important; color:#c8d5e2 !important; font-size:10px !important; font-weight:650 !important;
}
.studio-shell[data-workspace="animation"] .animation-add-track:hover { border-color:#7659d8 !important; background:#172a40 !important; color:#fff !important; }
.studio-shell[data-workspace="animation"] .animation-add-track-menu {
  margin-top:6px !important; padding:5px !important; display:grid !important; gap:3px !important; border:1px solid #2b4359 !important;
  border-radius:6px !important; background:#081522 !important; box-shadow:0 12px 30px rgba(0,0,0,.35) !important;
}
.studio-shell[data-workspace="animation"] .animation-add-track-menu button {
  min-height:31px !important; display:grid !important; grid-template-columns:18px minmax(0,1fr) auto !important; align-items:center !important;
  gap:7px !important; border:0 !important; border-radius:4px !important; background:transparent !important; color:#d7e1ea !important;
  text-align:left !important; font-size:10px !important;
}
.studio-shell[data-workspace="animation"] .animation-add-track-menu button:not(:disabled):hover { background:#172a40 !important; }
.studio-shell[data-workspace="animation"] .animation-add-track-menu button:disabled { opacity:.45 !important; }
.studio-shell[data-workspace="animation"] .animation-add-track-menu small { color:#768ca0 !important; font-size:9px !important; }
.studio-shell[data-workspace="animation"] .animation-add-track-key-row { min-height:40px !important; }
.studio-shell[data-workspace="animation"] #animation-canvas { min-width:0 !important; }

@media(max-width:1370px) {
  .studio-shell[data-workspace="animation"] .studio-layout {
    grid-template-columns:68px minmax(0,1fr) 288px !important;
    --rail-width:68px !important; --properties-width:288px !important; --properties-panel-width:288px !important;
  }
  .studio-shell[data-workspace="animation"] .animation-track-workflow { grid-template-columns:210px minmax(0,1fr) !important; }
}


/* V25.8.34 — Animation body selector + topbar new project */
.studio-project-name-line{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0}
.studio-project-name-line strong{min-width:0;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-project-new-button{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #2b4055;border-radius:6px;background:#0d1b29;color:#aebccc;cursor:pointer;flex:0 0 auto}
.studio-project-new-button:hover{border-color:#765ee4;background:#251f50;color:#fff}.studio-project-new-button svg{width:14px;height:14px}
.animation-body-select-wrap{height:32px;min-width:134px;padding:0 7px;display:flex;align-items:center;gap:6px;border:1px solid #29445d;border-radius:6px;background:#0c1c2c;color:#dce6f0;position:relative}
.animation-body-select-wrap:hover,.animation-body-select-wrap:focus-within{border-color:#7058d8;background:#181b3b}
.animation-body-select-wrap>svg{width:13px;height:13px;pointer-events:none;flex:0 0 auto}
.animation-body-select-wrap>svg:last-child{width:10px;color:#8fa3b5;margin-left:-15px}
.animation-body-select-wrap select{appearance:none;-webkit-appearance:none;border:0;outline:0;background:transparent;color:#e8eef6;font:600 10px/1 inherit;cursor:pointer;min-width:92px;padding:0 18px 0 1px}
.animation-body-select-wrap option{background:#0b1927;color:#e8eef6}
.studio-shell[data-workspace="animation"] #animation-canvas{cursor:grab}.studio-shell[data-workspace="animation"] #animation-canvas:active{cursor:grabbing}
@media(max-width:1450px){.animation-body-select-wrap{min-width:108px}.animation-body-select-wrap select{min-width:72px}}


/* V25.8.35 — empty adaptive animation timeline */
/* Empty animations prioritise the character viewport. The timeline grows only
   as tracks are added, reaches a fixed maximum, then scrolls internally. */
.studio-shell[data-workspace="animation"] .animation-workspace-v25835{
  grid-template-rows:minmax(330px,1fr) var(--animation-timeline-height,170px)!important;
}
.studio-shell[data-workspace="animation"][data-animation-timeline="expanded"] .animation-workspace-v25835{
  grid-template-rows:minmax(250px,1fr) var(--animation-timeline-height,410px)!important;
}
.studio-shell[data-workspace="animation"] .animation-timeline-v25826.animation-timeline-v25833{
  min-height:var(--animation-timeline-height,170px)!important;
  height:var(--animation-timeline-height,170px)!important;
}
.studio-shell[data-workspace="animation"][data-animation-timeline="expanded"] .animation-timeline-v25826.animation-timeline-v25833{
  min-height:var(--animation-timeline-height,410px)!important;
  height:var(--animation-timeline-height,410px)!important;
}
.studio-shell[data-workspace="animation"] .animation-timeline-grid.animation-track-workflow{
  min-height:0!important;
  height:var(--animation-track-height,86px)!important;
  max-height:var(--animation-track-height,226px)!important;
  overflow:auto!important;
}
.studio-shell[data-workspace="animation"] .animation-track-list,
.studio-shell[data-workspace="animation"] .animation-keyframe-grid,
.studio-shell[data-workspace="animation"] .keyframes{
  min-height:0!important;
  height:auto!important;
  max-height:var(--animation-track-height,226px)!important;
}
/* Remove the inherited grey track fills. Only selection gets a visible accent. */
.studio-shell[data-workspace="animation"] .animation-track-row,
.studio-shell[data-workspace="animation"] .animation-track-row.position,
.studio-shell[data-workspace="animation"] .animation-track-row.rotation{
  background:#0b1a29!important;
  color:#c9d6e3!important;
}
.studio-shell[data-workspace="animation"] .animation-track-row.group:hover{
  background:#12283b!important;
}
.studio-shell[data-workspace="animation"] .animation-track-row.group.selected{
  background:#201c43!important;
  box-shadow:inset 2px 0 #8a61f3!important;
}
.studio-shell[data-workspace="animation"] .animation-add-track-wrap{
  background:#091725!important;
}


/* V25.8.36 — real animation keyframe engine */
.studio-shell[data-workspace="animation"] .animation-add-keyframe{height:30px;min-width:92px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #31506b;border-radius:6px;background:#0d2031;color:#dce6f0;font-size:11px;font-weight:700;cursor:pointer}
.studio-shell[data-workspace="animation"] .animation-add-keyframe:hover:not(:disabled){border-color:#7b61e8;background:#211e49;color:#fff}
.studio-shell[data-workspace="animation"] .animation-add-keyframe:disabled{opacity:.38;cursor:not-allowed}.studio-shell[data-workspace="animation"] .animation-add-keyframe svg{width:12px;height:12px}
.studio-shell[data-workspace="animation"] .animation-keyframe-track-row{position:relative!important}
.studio-shell[data-workspace="animation"] .animation-keyframe-marker{position:absolute;top:50%;width:10px;height:10px;padding:0;border:1px solid #83c5ff;border-radius:2px;background:#4caeff;transform:translate(-50%,-50%) rotate(45deg);cursor:pointer;z-index:5;box-shadow:0 0 0 1px rgba(0,0,0,.18)}
.studio-shell[data-workspace="animation"] .animation-keyframe-marker:hover{width:12px;height:12px;background:#83c5ff}
.studio-shell[data-workspace="animation"] .animation-keyframe-marker.selected{width:13px;height:13px;border-color:#efe8ff;background:#9a73ff;box-shadow:0 0 0 2px rgba(154,115,255,.28)}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid{cursor:crosshair;position:relative!important}
.studio-shell[data-workspace="animation"] .animation-keyframe-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#70869a;font-size:11px;pointer-events:none}
.studio-shell[data-workspace="animation"] .animation-title .play.active,.studio-shell[data-workspace="animation"] .animation-transport-main .play.active{border-color:#2f9f69!important;background:#123b2a!important;color:#63e7a1!important}


/* V25.8.36d — left-click timeline keyframes */
.animation-keyframe-click-zone{cursor:crosshair}
@media(hover:hover) and (pointer:fine){.animation-keyframe-click-zone:hover{box-shadow:inset 0 0 0 1px rgba(126,99,255,.18)}}


/* V25.8.37 — official ESB Animation avatar rig */
.animation-canvas-wrap{position:relative}
.animation-official-avatar-status{position:absolute;left:50%;top:50%;z-index:18;transform:translate(-50%,-50%);padding:9px 13px;border:1px solid #2a4058;border-radius:8px;background:rgba(7,18,31,.88);color:#a9bfd8;font-size:12px;font-weight:650;pointer-events:none}
.animation-official-avatar-status.error{border-color:#6c3441;color:#ffb8c4}


/* V25.8.39 — Animation Editor completion pass */
.studio-shell[data-workspace="animation"] .animation-workspace-v25839{grid-template-rows:minmax(250px,1fr) var(--animation-timeline-height,190px)!important}
.studio-shell[data-workspace="animation"] .animation-canvas-wrap{position:relative;min-height:0;overflow:hidden}
.studio-shell[data-workspace="animation"] .animation-canvas-wrap #animation-canvas{position:absolute;inset:0;width:100%;height:100%}
.studio-shell[data-workspace="animation"] .animation-status-message{position:absolute;top:55px;left:50%;z-index:25;transform:translateX(-50%);max-width:60%;padding:6px 10px;border:1px solid #304860;border-radius:7px;background:rgba(8,20,33,.92);font-size:11px;color:#b8c9da;pointer-events:none}
.studio-shell[data-workspace="animation"] .animation-publish-button,.animation-publish-property{border-color:#6048c6!important;background:#352776!important;color:#fff!important;font-weight:700}
.studio-shell[data-workspace="animation"] .animation-track-group{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center}.studio-shell[data-workspace="animation"] .animation-track-group.selected{background:#16233b}.animation-track-remove{height:28px;border:0;background:transparent;color:#7890a5;cursor:pointer}.animation-track-remove:hover{color:#ff9dab;background:#391d27}
.studio-shell[data-workspace="animation"] .animation-track-row.scale .track-dot{background:#c778ff}.studio-shell[data-workspace="animation"] .key-row.scale{background:#0b1928!important}
.studio-shell[data-workspace="animation"] .animation-keyframe-property-actions{display:flex;gap:7px;padding:8px 12px}.studio-shell[data-workspace="animation"] .prop-danger-button{border:1px solid #633744;background:#291922;color:#ffb2bd;border-radius:5px;padding:6px 9px;cursor:pointer}.studio-shell[data-workspace="animation"] .animation-asset-id{display:flex;align-items:center;gap:6px;min-width:0}.studio-shell[data-workspace="animation"] .animation-asset-id code{font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:145px}
.studio-shell[data-workspace="animation"] .timeline-tabs button:disabled{opacity:.45;cursor:not-allowed}.studio-shell[data-workspace="animation"] .animation-space-select{min-width:74px}.studio-shell[data-workspace="animation"] .animation-keyframe-marker{touch-action:none}

/* V25.8.43 visible Animation floor fallback */
.studio-shell[data-workspace="animation"] .animation-canvas-wrap{position:relative!important;overflow:hidden!important;background:#1d293b!important}.studio-shell[data-workspace="animation"] .animation-canvas-wrap:after{content:"";position:absolute;left:-10%;right:-10%;bottom:-28%;height:65%;z-index:3;pointer-events:none;opacity:.28;background-image:linear-gradient(rgba(80,107,137,.7) 1px,transparent 1px),linear-gradient(90deg,rgba(80,107,137,.7) 1px,transparent 1px);background-size:42px 42px;transform:perspective(520px) rotateX(64deg);transform-origin:center bottom}.studio-shell[data-workspace="animation"] #animation-canvas{position:relative!important;z-index:2!important}

/* V25.8.44 — Animation canvas wrapper owns the viewport grid row */
.studio-shell[data-workspace="animation"] .animation-stage{display:grid!important;grid-template-rows:46px minmax(0,1fr) 48px!important;min-height:0!important;overflow:hidden!important}
.studio-shell[data-workspace="animation"] .animation-title{grid-row:1!important}
.studio-shell[data-workspace="animation"] .animation-canvas-wrap{grid-row:2!important;grid-column:1!important;align-self:stretch!important;justify-self:stretch!important;position:relative!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;overflow:hidden!important;background:#1d293b!important;isolation:isolate!important}
.studio-shell[data-workspace="animation"] .animation-canvas-wrap>#animation-canvas{grid-row:auto!important;position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;margin:0!important;padding:0!important;z-index:1!important}
.studio-shell[data-workspace="animation"] .animation-canvas-wrap:after{z-index:2!important}
.studio-shell[data-workspace="animation"] .animation-transport{grid-row:3!important}

/* V25.8.58 — Other is UI-only; core Animation rigs untouched */
.animation-other-ui-backdrop{align-items:center;justify-content:center}.animation-other-ui-panel{width:min(680px,calc(100vw - 32px));padding:0;overflow:hidden;background:#0b1724;border:1px solid #2a4058}.animation-other-ui-head{display:flex;justify-content:space-between;gap:20px;padding:22px 24px 18px;border-bottom:1px solid #22364b}.animation-other-ui-head span{display:block;color:#8f7cff;font-size:10px;font-weight:800;letter-spacing:.12em;margin-bottom:5px}.animation-other-ui-head h2{margin:0;color:#f4f7fb;font-size:22px}.animation-other-ui-head p{margin:7px 0 0;color:#94a8bb;font-size:12px}.animation-other-ui-head button{width:34px;height:34px;border:1px solid #2b4055;border-radius:8px;background:#0d1b29;color:#c8d3df;font-size:22px;cursor:pointer}.animation-other-ui-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:20px 24px}.animation-other-ui-choice{min-height:130px;padding:18px;text-align:left;border:1px solid #294158;border-radius:10px;background:#0e1c2b;color:#eef4fb;cursor:pointer}.animation-other-ui-choice:hover{border-color:#745fe2;background:#151d38}.animation-other-ui-choice strong{display:block;font-size:14px}.animation-other-ui-choice small{display:block;margin-top:8px;color:#91a6b9;font-size:11px;line-height:1.5}.animation-other-ui-note{margin:0 24px 20px;padding:11px 12px;border:1px solid #273f55;border-radius:8px;background:#0a1521;color:#8ea4b7;font-size:10px;line-height:1.5}@media(max-width:700px){.animation-other-ui-grid{grid-template-columns:1fr}}

/* V25.8.59 — modern Animation body menu */
.animation-body-menu-wrap{position:relative;display:inline-flex;align-items:center;z-index:25}
.animation-body-menu-trigger{height:36px;min-width:158px;padding:0 11px;display:flex;align-items:center;gap:9px;border:1px solid #31465b;border-radius:9px;background:linear-gradient(180deg,#142438,#0f1c2b);color:#edf4fb;box-shadow:inset 0 1px 0 rgba(255,255,255,.025);cursor:pointer;font:inherit;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.animation-body-menu-trigger:hover{border-color:#536985;background:linear-gradient(180deg,#182a40,#112131)}
.animation-body-menu-trigger.open{border-color:#8269ff;box-shadow:0 0 0 2px rgba(120,93,255,.17),inset 0 1px 0 rgba(255,255,255,.04)}
.animation-body-trigger-icon{display:flex;align-items:center;justify-content:center;color:#d2dbe7}.animation-body-trigger-icon svg{width:16px;height:16px}.animation-body-trigger-label{font-size:13px;font-weight:650;letter-spacing:-.01em}.animation-body-chevron{margin-left:auto;display:flex;color:#9cadbd}.animation-body-chevron svg{width:14px;height:14px;transition:transform .15s ease}.animation-body-menu-trigger.open .animation-body-chevron svg{transform:rotate(180deg)}
.animation-body-menu{display:none;position:absolute;top:43px;left:0;width:224px;padding:7px;border:1px solid #293d52;border-radius:12px;background:rgba(10,22,34,.985);box-shadow:0 18px 45px rgba(0,0,0,.42),0 0 0 1px rgba(255,255,255,.015);backdrop-filter:blur(14px);overflow:hidden;z-index:200}.animation-body-menu.open{display:block}
.animation-body-menu-item{width:100%;height:48px;padding:0 12px;display:flex;align-items:center;gap:13px;border:0;border-radius:8px;background:transparent;color:#dce6f0;text-align:left;font:inherit;font-size:13px;cursor:pointer;transition:background .12s ease,color .12s ease}
.animation-body-menu-item:hover{background:#14263a;color:#fff}.animation-body-menu-item.selected{background:linear-gradient(90deg,rgba(93,67,214,.32),rgba(81,63,176,.18));color:#fff}.animation-body-menu-item.selected:hover{background:linear-gradient(90deg,rgba(103,75,231,.4),rgba(81,63,176,.22))}
.animation-body-choice-icon{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;font-weight:700;font-size:21px;line-height:1}.animation-body-choice-icon.blocky{color:#8b74ff;font-size:25px;transform:rotate(45deg)}.animation-body-choice-icon.female{color:#ef6dce}.animation-body-choice-icon.male{color:#58adff}.animation-body-choice-icon.other{color:#9eafbf;font-size:13px;letter-spacing:1px;transform:none}.animation-body-menu-divider{height:1px;margin:5px 8px;background:#22364a}
@media(max-width:900px){.animation-body-menu-trigger{min-width:136px}.animation-body-menu{width:205px}}

/* V25.8.60 — compact Animation timeline + reset */
.studio-shell[data-workspace="animation"] .animation-timeline-v25839{min-height:0;height:var(--animation-timeline-height);max-height:230px;background:#0a1826;border-top:1px solid #203448;display:grid;grid-template-rows:32px 30px minmax(0,1fr);overflow:hidden}
.studio-shell[data-workspace="animation"] .animation-scrub-ruler{height:32px;min-height:32px;margin:0;border-bottom:1px solid #1d3042;background:#0c1b2a;font-size:9px;overflow:visible}
.studio-shell[data-workspace="animation"] .animation-scrub-ruler>span{top:8px;font-size:9px;color:#8296aa;white-space:nowrap}.studio-shell[data-workspace="animation"] .animation-scrub-ruler>span small{font-size:8px;color:#60758a}
.studio-shell[data-workspace="animation"] .animation-playhead-label{height:30px;min-width:72px;padding:0 8px;display:flex;align-items:center;font-size:9px;border-radius:0 0 5px 0}
.studio-shell[data-workspace="animation"] .timeline-tabs{height:30px;min-height:30px;padding:0 8px;display:flex;align-items:center;gap:3px;border-bottom:1px solid #1e3245;background:#0b1927;position:relative;z-index:8;overflow:hidden}
.studio-shell[data-workspace="animation"] .timeline-tabs>button{height:24px;min-height:24px;padding:0 9px;border-radius:5px;font-size:10px;line-height:1;display:inline-flex;align-items:center;justify-content:center}
.studio-shell[data-workspace="animation"] .timeline-tabs>button[disabled]{opacity:.48}.studio-shell[data-workspace="animation"] .animation-timeline-size-toggle{width:26px;padding:0!important}
.studio-shell[data-workspace="animation"] .animation-timeline-grid{min-height:0;height:100%;grid-template-columns:238px minmax(0,1fr);overflow:hidden;background:#091724}
.studio-shell[data-workspace="animation"] .animation-track-list{min-width:0;width:238px;height:100%;overflow:auto;border-right:1px solid #203548;background:#0a1927;scrollbar-width:thin}
.studio-shell[data-workspace="animation"] .animation-track-head{height:28px;min-height:28px;padding:0 10px;display:flex;align-items:center;gap:7px;font-size:10px;border-bottom:1px solid #1e3143;position:sticky;top:0;background:#0b1b2a;z-index:4}
.studio-shell[data-workspace="animation"] .animation-track-head svg{width:12px;height:12px}.studio-shell[data-workspace="animation"] .animation-track-head strong{font-size:10px}
.studio-shell[data-workspace="animation"] .animation-track-group{height:26px;min-height:26px;position:relative;border-bottom:1px solid rgba(42,61,80,.38)}
.studio-shell[data-workspace="animation"] .animation-track-row{height:22px;min-height:22px;padding:0 9px;gap:6px;font-size:10px;line-height:22px;border-radius:0;border-bottom:1px solid rgba(35,54,72,.28);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.studio-shell[data-workspace="animation"] .animation-track-row.group{height:26px;min-height:26px;line-height:26px;padding-right:28px;font-size:10.5px;font-weight:650;background:#0d1e2d}
.studio-shell[data-workspace="animation"] .animation-track-row.group svg{width:10px;height:10px}.studio-shell[data-workspace="animation"] .animation-track-row .track-dot{width:6px;height:6px;flex:0 0 6px}.studio-shell[data-workspace="animation"] .animation-track-row .track-indent{width:18px;flex:0 0 18px}
.studio-shell[data-workspace="animation"] .animation-track-remove{right:5px;top:3px;width:20px;height:20px;min-width:20px;border-radius:4px;font-size:12px;line-height:18px}
.studio-shell[data-workspace="animation"] .animation-add-track-wrap{min-height:28px}.studio-shell[data-workspace="animation"] .animation-add-track{height:27px;min-height:27px;margin:4px 7px;padding:0 9px;font-size:10px;border-radius:5px}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid{height:100%;min-height:0;overflow:auto;position:relative;background:#091724;scrollbar-width:thin}
.studio-shell[data-workspace="animation"] .animation-frame-header{height:28px;min-height:28px;position:sticky;top:0;z-index:5;background:#0b1b29;border-bottom:1px solid #203448;font-size:9px}.studio-shell[data-workspace="animation"] .animation-frame-header span{top:8px;font-size:9px}
.studio-shell[data-workspace="animation"] .key-row{height:22px;min-height:22px;border-bottom:1px solid rgba(35,54,72,.34);background-size:48px 100%}
.studio-shell[data-workspace="animation"] .key-row.group{height:26px;min-height:26px;background-color:#0c1c2b}
.studio-shell[data-workspace="animation"] .animation-add-track-key-row{height:28px;min-height:28px}
.studio-shell[data-workspace="animation"] .animation-keyframe-diamond,.studio-shell[data-workspace="animation"] .keyframe{transform:scale(.78)}
.studio-shell[data-workspace="animation"] .animation-reset-button{height:36px;min-width:74px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #35485b;border-radius:8px;background:linear-gradient(180deg,#142438,#0f1c2b);color:#c8d4df;font:inherit;font-size:11px;cursor:pointer;transition:border-color .14s ease,background .14s ease,color .14s ease}
.studio-shell[data-workspace="animation"] .animation-reset-button:hover{border-color:#7b648f;background:#211c31;color:#fff}.studio-shell[data-workspace="animation"] .animation-reset-button svg{width:14px;height:14px}
@media(max-width:1000px){.studio-shell[data-workspace="animation"] .animation-timeline-grid{grid-template-columns:205px minmax(0,1fr)}.studio-shell[data-workspace="animation"] .animation-track-list{width:205px}.studio-shell[data-workspace="animation"] .animation-reset-button span{display:none}.studio-shell[data-workspace="animation"] .animation-reset-button{min-width:36px;width:36px;padding:0}}

/* V25.8.61 — clearer Animation toolbar controls */
.studio-shell[data-workspace="animation"] .animation-labelled-control{height:36px;display:inline-flex;align-items:center;gap:0;border:1px solid #30465a;border-radius:8px;background:#0e1d2c;overflow:hidden;color:#8fa5b9;white-space:nowrap}
.studio-shell[data-workspace="animation"] .animation-labelled-control>span{height:100%;padding:0 8px;display:flex;align-items:center;border-right:1px solid #2b4053;font-size:9px;font-weight:700;letter-spacing:.035em;text-transform:uppercase;color:#8096aa;background:#102131}
.studio-shell[data-workspace="animation"] .animation-labelled-control .animation-dropdown{height:34px;border:0!important;border-radius:0!important;background:#132436;color:#e7f0f8;padding-left:8px;padding-right:25px;font-size:11px;min-width:70px}
.studio-shell[data-workspace="animation"] .animation-space-control .animation-space-select{min-width:76px}.studio-shell[data-workspace="animation"] .animation-speed-control .animation-dropdown{min-width:72px}
.studio-shell[data-workspace="animation"] .animation-labelled-control:focus-within{border-color:#7757d9;box-shadow:0 0 0 1px rgba(119,87,217,.22)}
@media(max-width:1120px){.studio-shell[data-workspace="animation"] .animation-labelled-control>span{display:none}.studio-shell[data-workspace="animation"] .animation-labelled-control .animation-dropdown{min-width:68px}}

/* V25.8.62 — resizable Animation workspace */
.studio-shell[data-workspace="animation"] .animation-workspace{--animation-timeline-height:320px;min-height:0}
.studio-shell[data-workspace="animation"] .animation-timeline-v25839{position:relative;max-height:520px!important;min-height:96px!important;height:var(--animation-timeline-height)!important;grid-template-rows:32px 30px minmax(0,1fr)!important;overflow:visible!important}
.studio-shell[data-workspace="animation"] .animation-timeline-resize-handle{position:absolute;left:0;right:0;top:-6px;height:12px;z-index:30;cursor:ns-resize;display:flex;align-items:center;justify-content:center;touch-action:none}
.studio-shell[data-workspace="animation"] .animation-timeline-resize-handle:before{content:"";position:absolute;left:0;right:0;top:5px;height:1px;background:#294157}.studio-shell[data-workspace="animation"] .animation-timeline-resize-handle span{position:relative;width:42px;height:4px;border-radius:99px;background:#4a6177;opacity:.72}.studio-shell[data-workspace="animation"] .animation-timeline-resize-handle:hover:before{background:#7960da}.studio-shell[data-workspace="animation"] .animation-timeline-resize-handle:hover span{background:#9076ef;opacity:1}
.studio-shell[data-workspace="animation"] .animation-timeline-grid{grid-template-columns:var(--animation-track-width,250px) 6px minmax(0,1fr)!important;overflow:hidden!important}.studio-shell[data-workspace="animation"] .animation-track-list{width:var(--animation-track-width,250px)!important;min-width:0!important;overflow:auto!important}
.studio-shell[data-workspace="animation"] .animation-track-resize-handle{width:6px;height:100%;cursor:ew-resize;background:#102236;border-left:1px solid #20374b;border-right:1px solid #20374b;position:relative;z-index:9;touch-action:none}.studio-shell[data-workspace="animation"] .animation-track-resize-handle:hover{background:#44367b;border-color:#755ee0}
.studio-shell[data-workspace="animation"] .animation-track-row{padding-left:10px!important}.studio-shell[data-workspace="animation"] .animation-track-row:not(.group){padding-left:24px!important;color:#adbdca}.studio-shell[data-workspace="animation"] .animation-track-row.group{font-weight:700!important;color:#e4eef7!important}
.studio-shell[data-workspace="animation"] .animation-timeline-actions{display:flex;align-items:center;gap:4px;height:100%}.studio-shell[data-workspace="animation"] .animation-timeline-actions>button{height:24px;min-width:26px;padding:0 8px;border:1px solid transparent;border-radius:5px;background:#102131;color:#9eb0c0;font-size:10px;display:inline-flex;align-items:center;justify-content:center;gap:5px;cursor:pointer}.studio-shell[data-workspace="animation"] .animation-timeline-actions>button:hover{border-color:#405970;background:#172a3e;color:#fff}.studio-shell[data-workspace="animation"] .animation-timeline-divider{width:1px;height:16px;background:#2b4053;margin:0 2px}.studio-shell[data-workspace="animation"] .animation-keyframe-grid{min-width:0!important;overflow:auto!important}
body.animation-resizing{user-select:none!important;cursor:ns-resize}body.animation-track-resizing{user-select:none!important;cursor:ew-resize}
@media(max-width:1050px){.studio-shell[data-workspace="animation"] .animation-timeline-actions button span{display:none}.studio-shell[data-workspace="animation"] .animation-timeline-grid{grid-template-columns:min(var(--animation-track-width,220px),220px) 6px minmax(0,1fr)!important}.studio-shell[data-workspace="animation"] .animation-track-list{width:min(var(--animation-track-width,220px),220px)!important}}

/* V25.8.63 — Body Parts explorer + focused selected-part timeline */
.studio-shell[data-workspace="animation"] .animation-workspace{display:grid!important;grid-template-columns:var(--animation-rig-explorer-width,230px) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) var(--animation-timeline-height,220px)!important;min-height:0!important}
.studio-shell[data-workspace="animation"] .animation-stage{grid-column:2!important;grid-row:1!important;min-width:0!important;min-height:0!important}
.studio-shell[data-workspace="animation"] .animation-timeline-v25839{grid-column:2!important;grid-row:2!important;max-height:360px!important;min-height:104px!important}
.studio-shell[data-workspace="animation"] .animation-rig-explorer-v63{grid-column:1;grid-row:1 / span 2;width:var(--animation-rig-explorer-width,230px);min-width:0;min-height:0;background:#091725;border-right:1px solid #21384b;display:grid;grid-template-rows:52px 42px minmax(0,1fr);position:relative;overflow:hidden;z-index:12}
.studio-shell[data-workspace="animation"] .animation-rig-explorer-head{display:flex;align-items:center;justify-content:space-between;padding:0 10px 0 12px;border-bottom:1px solid #1e3244;background:#0b1a29}.studio-shell[data-workspace="animation"] .animation-rig-explorer-head>div{display:flex;flex-direction:column;gap:1px;min-width:0}.studio-shell[data-workspace="animation"] .animation-rig-explorer-head strong{font-size:12px;color:#edf5fb}.studio-shell[data-workspace="animation"] .animation-rig-explorer-head small{font-size:9px;color:#6f879c}.studio-shell[data-workspace="animation"] .animation-rig-explorer-head button{width:28px;height:28px;border:0;border-radius:6px;background:#102336;color:#9eb2c4;cursor:pointer;font-size:18px}.studio-shell[data-workspace="animation"] .animation-rig-explorer-head button:hover{background:#172d43;color:#fff}
.studio-shell[data-workspace="animation"] .animation-rig-search{padding:7px 9px;border-bottom:1px solid #172a3b}.studio-shell[data-workspace="animation"] .animation-rig-search input{width:100%;height:28px;border:1px solid #263c50;border-radius:6px;background:#0c1d2c;color:#dce8f2;padding:0 9px;font-size:10px;outline:none}.studio-shell[data-workspace="animation"] .animation-rig-search input:focus{border-color:#755de0}
.studio-shell[data-workspace="animation"] .animation-rig-tree{overflow:auto;padding:5px 6px 12px;scrollbar-width:thin}.studio-shell[data-workspace="animation"] .animation-rig-tree section{margin:0 0 5px}.studio-shell[data-workspace="animation"] .animation-rig-group-title{height:22px;display:flex;align-items:center;padding:0 7px;color:#647d92;font-size:8px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.studio-shell[data-workspace="animation"] .animation-rig-tree button{width:100%;height:29px;border:0;border-radius:6px;background:transparent;color:#aebfcd;display:grid;grid-template-columns:12px minmax(0,1fr) 16px;align-items:center;gap:6px;padding:0 7px;text-align:left;font-size:10px;cursor:pointer}.studio-shell[data-workspace="animation"] .animation-rig-tree button:hover{background:#10263a;color:#eef6fc}.studio-shell[data-workspace="animation"] .animation-rig-tree button.active{background:linear-gradient(90deg,rgba(108,77,214,.32),rgba(66,52,125,.18));color:#fff;box-shadow:inset 2px 0 #8568ee}.studio-shell[data-workspace="animation"] .animation-rig-tree button small{color:#7b63e4;text-align:center}.studio-shell[data-workspace="animation"] .animation-rig-part-dot{width:6px;height:6px;border-radius:50%;background:#4c657a}.studio-shell[data-workspace="animation"] .animation-rig-part-dot.keyed{background:#6ab9ef;box-shadow:0 0 5px rgba(106,185,239,.28)}
.studio-shell[data-workspace="animation"] .animation-rig-explorer-resize{position:absolute;right:-3px;top:0;bottom:0;width:7px;cursor:ew-resize;z-index:20}.studio-shell[data-workspace="animation"] .animation-rig-explorer-resize:hover{background:rgba(123,96,225,.28)}
.studio-shell[data-workspace="animation"] .animation-rig-explorer-v63.collapsed{width:44px;grid-template-rows:52px 1fr}.studio-shell[data-workspace="animation"] .animation-rig-explorer-v63.collapsed .animation-rig-search,.studio-shell[data-workspace="animation"] .animation-rig-explorer-v63.collapsed .animation-rig-tree,.studio-shell[data-workspace="animation"] .animation-rig-explorer-v63.collapsed .animation-rig-explorer-head>div{display:none}.studio-shell[data-workspace="animation"] .animation-rig-explorer-v63.collapsed .animation-rig-explorer-head{padding:0;justify-content:center}.studio-shell[data-workspace="animation"] .animation-rig-explorer-v63.collapsed .animation-rig-explorer-head button{transform:rotate(180deg)}
.studio-shell[data-workspace="animation"] .animation-timeline-grid{grid-template-columns:150px minmax(0,1fr)!important}.studio-shell[data-workspace="animation"] .animation-track-list[hidden],.studio-shell[data-workspace="animation"] .animation-track-resize-handle[hidden]{display:none!important}.studio-shell[data-workspace="animation"] .animation-selected-channel-list-v63{min-width:0;border-right:1px solid #203548;background:#0a1927;overflow:hidden}.studio-shell[data-workspace="animation"] .animation-selected-part-head{height:34px;padding:0 9px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1e3244;background:#0c1c2b}.studio-shell[data-workspace="animation"] .animation-selected-part-head>div{display:flex;flex-direction:column;min-width:0}.studio-shell[data-workspace="animation"] .animation-selected-part-head small{font-size:7px;text-transform:uppercase;letter-spacing:.06em;color:#60798e}.studio-shell[data-workspace="animation"] .animation-selected-part-head strong{font-size:10px;color:#e9f3fa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.studio-shell[data-workspace="animation"] .animation-selected-part-head>span{font-size:8px;color:#6fbee9}.studio-shell[data-workspace="animation"] .animation-selected-part-head>span.empty{color:#647b8e}
.studio-shell[data-workspace="animation"] .animation-selected-channel-list-v63>button{height:28px;width:100%;border:0;border-bottom:1px solid rgba(36,56,74,.45);background:transparent;color:#9eb0bf;display:flex;align-items:center;gap:7px;padding:0 10px;font-size:10px;text-align:left;cursor:pointer}.studio-shell[data-workspace="animation"] .animation-selected-channel-list-v63>button:hover,.studio-shell[data-workspace="animation"] .animation-selected-channel-list-v63>button.active{background:#102438;color:#fff}.studio-shell[data-workspace="animation"] .animation-selected-channel-list-v63 .track-dot{width:6px;height:6px;border-radius:50%;background:#526b7f}.studio-shell[data-workspace="animation"] .animation-selected-channel-list-v63>button.active .track-dot{background:#6ab9ef}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid .key-row[hidden]{display:none!important}.studio-shell[data-workspace="animation"] .animation-keyframe-grid.animation-no-selected-track:after{content:'Select a body part, then add a keyframe';position:absolute;left:50%;top:72px;transform:translateX(-50%);color:#60788c;font-size:10px;white-space:nowrap}.studio-shell[data-workspace="animation"] .animation-keyframe-grid .key-row:not([hidden]){height:28px!important;min-height:28px!important}
.studio-shell[data-workspace="animation"] .animation-timeline-actions>button[data-animation-v63-toggle]{width:28px;padding:0}.studio-shell[data-workspace="animation"] .animation-timeline-actions>button[data-animation-v62-action="add-keyframe"]{color:#cfd9f7;background:#13233b;border-color:#2d4162}
body.animation-resizing-x{user-select:none!important;cursor:ew-resize!important}body.animation-resizing-x *{user-select:none!important}
@media(max-width:1100px){.studio-shell[data-workspace="animation"] .animation-workspace{--animation-rig-explorer-width:200px}.studio-shell[data-workspace="animation"] .animation-timeline-grid{grid-template-columns:132px minmax(0,1fr)!important}}

/* V25.8.64 — simple beginner-facing keyframe UI */
.studio-shell[data-workspace="animation"] .timeline-tabs{padding:0 10px!important;gap:8px!important;min-height:34px!important;height:34px!important}
.studio-shell[data-workspace="animation"] .animation-simple-keyframes-title{display:flex;align-items:center;gap:10px;min-width:0;height:100%;margin-right:auto}
.studio-shell[data-workspace="animation"] .animation-simple-keyframes-title strong{font-size:11px;color:#edf5fb;font-weight:750;white-space:nowrap}
.studio-shell[data-workspace="animation"] .animation-simple-keyframes-title span{font-size:9px;color:#70869a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.studio-shell[data-workspace="animation"] .timeline-tabs>.animation-timeline-tabs-spacer{display:none!important}
.studio-shell[data-workspace="animation"] .timeline-tabs>button{width:28px!important;min-width:28px!important;padding:0!important}
.studio-shell[data-workspace="animation"] .animation-timeline-actions{margin-left:auto}
@media(max-width:900px){.studio-shell[data-workspace="animation"] .animation-simple-keyframes-title span{display:none}}

/* V25.8.65 — one simple selected-part keyframe lane */
.studio-shell[data-workspace="animation"] .animation-title h2{min-width:110px;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-shell[data-workspace="animation"] .animation-timeline-v25839{min-height:118px!important;max-height:240px!important}
.studio-shell[data-workspace="animation"] .animation-timeline-v25839 .timeline-tabs,.studio-shell[data-workspace="animation"] .animation-timeline-v25839 .timeline-tabs[hidden]{display:none!important}
.studio-shell[data-workspace="animation"] .animation-timeline-grid{grid-template-columns:minmax(0,1fr)!important;min-height:58px!important}
.studio-shell[data-workspace="animation"] .animation-selected-channel-list-v63,.studio-shell[data-workspace="animation"] .animation-track-list,.studio-shell[data-workspace="animation"] .animation-track-resize-handle{display:none!important}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid{grid-column:1!important;width:100%!important;min-width:0!important}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid .key-row[hidden]{display:none!important}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid .key-row[data-animation-v39-channel="all"]{display:block;height:42px!important;min-height:42px!important;border-top:1px solid #1d3346;border-bottom:1px solid #1d3346;background:rgba(10,27,42,.55)}
.studio-shell[data-workspace="animation"] .animation-frame-header{height:28px!important}
.studio-shell[data-workspace="animation"] .animation-scrub-ruler{height:38px!important}
.studio-shell[data-workspace="animation"] .animation-selected-part-transport{display:flex!important;align-items:center;gap:8px;min-width:150px;justify-content:flex-end;padding-right:12px}
.studio-shell[data-workspace="animation"] .animation-selected-part-transport small{font-size:8px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#6f879c}
.studio-shell[data-workspace="animation"] .animation-selected-part-transport strong{font-size:12px;color:#edf5fb;font-weight:750;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* V25.8.66 — remove duplicate frame ruler and reclaim empty timeline space */
.studio-shell[data-workspace="animation"] .animation-workspace{grid-template-rows:minmax(0,1fr) 82px!important}
.studio-shell[data-workspace="animation"] .animation-timeline-v25839{height:82px!important;min-height:82px!important;max-height:82px!important;grid-template-rows:38px 44px!important;overflow:hidden!important}
.studio-shell[data-workspace="animation"] .animation-timeline-resize-handle,.studio-shell[data-workspace="animation"] .animation-frame-header{display:none!important}
.studio-shell[data-workspace="animation"] .animation-timeline-grid{height:44px!important;min-height:44px!important;overflow:hidden!important}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid{height:44px!important;min-height:44px!important;overflow:hidden!important;scrollbar-width:none!important;display:block!important}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid .key-row[data-animation-v39-channel="all"]{height:44px!important;min-height:44px!important;margin:0!important;border-top:0!important;border-bottom:0!important}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid .animation-playhead-line{top:0!important;bottom:0!important}
.studio-shell[data-workspace="animation"] .animation-scrub-ruler{height:38px!important;min-height:38px!important;margin:0!important}
.studio-shell[data-workspace="animation"] .animation-no-selected-track:after{height:44px!important;min-height:44px!important;display:flex!important;align-items:center!important;justify-content:center!important}

/* V25.8.67 compact animation toolbar */
.studio-shell[data-workspace="animation"] .animation-title{gap:7px!important}.studio-shell[data-workspace="animation"] .animation-title h2{flex:0 1 150px!important;min-width:80px!important;max-width:180px!important}.studio-shell[data-workspace="animation"] .animation-viewport-tools{gap:5px!important;min-width:0!important}.studio-shell[data-workspace="animation"] .animation-transform-strip{gap:3px!important}.studio-shell[data-workspace="animation"] .animation-transform-tool{width:38px!important;min-width:38px!important;height:36px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}.studio-shell[data-workspace="animation"] .animation-transform-tool span{display:none!important}.studio-shell[data-workspace="animation"] .animation-transform-tool svg{width:16px!important;height:16px!important}.studio-shell[data-workspace="animation"] [data-animation-v39-action="publish"][hidden],.studio-shell[data-workspace="animation"] [data-animation-v39-action="export"][hidden]{display:none!important}
.studio-shell[data-workspace="animation"] .animation-compact-picker-v67{position:relative!important;min-width:72px!important;height:36px!important;overflow:visible!important;border:0!important;background:transparent!important}.studio-shell[data-workspace="animation"] .animation-compact-picker-v67>span,.studio-shell[data-workspace="animation"] .animation-native-control-v67{display:none!important}.studio-shell[data-workspace="animation"] .animation-compact-trigger-v67{height:36px;min-width:72px;padding:3px 22px 3px 8px;border:1px solid #30465a;border-radius:8px;background:#0e1d2c;color:#eef5fb;display:grid;grid-template-rows:10px 14px;text-align:left;position:relative;cursor:pointer}.studio-shell[data-workspace="animation"] .animation-compact-trigger-v67 small{font-size:7px;text-transform:uppercase;color:#70869b}.studio-shell[data-workspace="animation"] .animation-compact-trigger-v67 strong{font-size:10px}.studio-shell[data-workspace="animation"] .animation-compact-trigger-v67>span{position:absolute;right:7px;top:10px;color:#8095a9}.studio-shell[data-workspace="animation"] .animation-compact-menu-v67{position:absolute;top:40px;left:0;z-index:150;width:220px;padding:6px;background:#091725;border:1px solid #2b4054;border-radius:9px;box-shadow:0 16px 40px rgba(0,0,0,.42)}.studio-shell[data-workspace="animation"] .animation-compact-menu-v67[hidden]{display:none!important}.studio-shell[data-workspace="animation"] .animation-compact-menu-v67 button{width:100%;min-height:42px;border:0;border-radius:6px;background:transparent;color:#dce8f2;padding:7px 9px;text-align:left;display:flex;flex-direction:column;cursor:pointer}.studio-shell[data-workspace="animation"] .animation-compact-menu-v67 button:hover{background:#12283b}.studio-shell[data-workspace="animation"] .animation-compact-menu-v67 button strong{font-size:10px}.studio-shell[data-workspace="animation"] .animation-compact-menu-v67 button small{font-size:8px;color:#748b9f;margin-top:2px}
.animation-publish-wrap-v67{position:relative;display:inline-flex}.animation-publish-menu-v67{position:absolute;right:0;top:46px;width:310px;padding:8px;background:#091725;border:1px solid #2b4054;border-radius:11px;box-shadow:0 20px 55px rgba(0,0,0,.5);z-index:500}.animation-publish-menu-v67[hidden]{display:none!important}.animation-publish-menu-head{padding:8px 9px 10px;border-bottom:1px solid #1d3143;margin-bottom:5px;display:flex;flex-direction:column}.animation-publish-menu-head strong{font-size:12px;color:#eef5fb}.animation-publish-menu-head small{font-size:9px;color:#71879b}.animation-publish-menu-v67>button{width:100%;min-height:48px;border:0;border-radius:7px;background:transparent;color:#e3edf5;display:grid;grid-template-columns:28px 1fr;align-items:center;gap:7px;padding:6px 8px;text-align:left;cursor:pointer}.animation-publish-menu-v67>button:hover{background:#12283b}.animation-publish-menu-v67>button>div{display:flex;flex-direction:column}.animation-publish-menu-v67>button strong{font-size:10px}.animation-publish-menu-v67>button small{font-size:8px;color:#748a9d}.animation-publish-id-v67{margin-top:6px;padding:8px 9px;border-top:1px solid #1d3143;display:grid;grid-template-columns:1fr auto;gap:4px 8px}.animation-publish-id-v67>small{grid-column:1/-1;font-size:8px;text-transform:uppercase;color:#71879b}.animation-publish-id-v67 code{font-size:9px;color:#dfe9f2;overflow:hidden;text-overflow:ellipsis}.animation-publish-id-v67.empty{display:flex;flex-direction:column}.animation-publish-id-v67.empty span{font-size:8px;color:#748a9d;margin-top:3px}
@media(max-width:1250px){.studio-shell[data-workspace="animation"] .animation-title h2{max-width:125px!important}.studio-shell[data-workspace="animation"] .animation-toolbar-separator{display:none!important}}

/* V25.8.69 — Other avatar sources */
.animation-import-source-panel-v69{width:min(760px,calc(100vw - 34px))!important}.animation-import-source-body-v69{padding:18px 22px 22px}.animation-source-current-v69{display:flex;gap:8px;align-items:baseline;padding:9px 11px;margin-bottom:12px;border:1px solid #253c51;border-radius:8px;background:#091522}.animation-source-current-v69 small{font-size:8px;color:#70869a}.animation-source-current-v69 strong{font-size:11px;color:#e9f1f8}.animation-source-current-v69 span{font-size:9px;color:#7f94a7}.animation-source-grid-v69{display:grid;grid-template-columns:1fr 1fr;gap:10px}.animation-source-grid-v69>button{min-height:104px;border:1px solid #294157;border-radius:10px;background:#0d1c2b;color:#eaf2f9;text-align:left;padding:15px;cursor:pointer;display:grid;grid-template-columns:32px 1fr;grid-template-rows:auto auto;gap:3px 9px}.animation-source-grid-v69>button:hover{border-color:#745fe2;background:#121f35}.animation-source-grid-v69>button>b{grid-row:1/3;color:#987bff;font-size:17px}.animation-source-grid-v69 strong{font-size:12px}.animation-source-grid-v69 small{font-size:9px;line-height:1.4;color:#8197aa}.animation-source-note-v69{font-size:9px;color:#72889c;margin:12px 0 0}.animation-source-back-v69{border:0;background:transparent;color:#9b8cff;font-size:10px;font-weight:700;padding:0 0 12px;cursor:pointer}.animation-source-browser-head-v69{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:10px}.animation-source-browser-head-v69 h3,.animation-file-import-v69 h3{margin:0;color:#f0f5fa;font-size:15px}.animation-source-browser-head-v69 p,.animation-file-import-v69>p{margin:4px 0 0;color:#7f95a8;font-size:9px}.animation-source-browser-head-v69 input{width:220px;height:32px;border:1px solid #2a4055;border-radius:7px;background:#07131f;color:#e7eff6;padding:0 10px}.animation-source-list-v69{max-height:330px;overflow:auto;border:1px solid #20364a;border-radius:9px;background:#081521}.animation-source-list-v69>button{width:100%;min-height:54px;border:0;border-bottom:1px solid #1b3043;background:transparent;color:#dfeaf3;padding:7px 10px;display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:8px;text-align:left;cursor:pointer}.animation-source-list-v69>button:hover{background:#112539}.animation-source-list-v69>button>b{color:#8e79ee}.animation-source-list-v69>button>div{display:flex;flex-direction:column}.animation-source-list-v69>button strong{font-size:10px}.animation-source-list-v69>button small{font-size:8px;color:#748a9e}.animation-source-list-v69>button em{font-size:9px;color:#a999ff;font-style:normal}.animation-source-empty-v69{padding:30px;text-align:center;color:#71879a;font-size:10px}.animation-file-drop-v69{margin-top:14px;min-height:140px;border:1px dashed #3a526a;border-radius:10px;background:#091725;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;color:#dce8f2}.animation-file-drop-v69 input{display:none}.animation-file-drop-v69>b{font-size:22px;color:#9b86ff}.animation-file-drop-v69 strong{font-size:11px;margin-top:5px}.animation-file-drop-v69 small{font-size:8px;color:#73899c;margin-top:4px}.animation-file-ready-v69,.animation-file-warning-v69,.animation-file-scanning-v69{margin-top:10px;padding:10px 11px;border:1px solid #294159;border-radius:8px;background:#091725;color:#dce7f0;font-size:9px}.animation-file-ready-v69{display:flex;align-items:center;justify-content:space-between}.animation-file-ready-v69>div{display:flex;flex-direction:column}.animation-file-ready-v69 small{font-size:8px;color:#7d92a5;margin-top:3px}.animation-file-ready-v69 button{height:30px;border:1px solid #7057d8;border-radius:6px;background:#392273;color:#fff;font-size:9px;font-weight:700}.animation-file-warning-v69{border-color:#5b4930;background:#1a160f;display:flex;flex-direction:column;gap:4px}.animation-file-warning-v69 span{color:#b5a58e}@media(max-width:650px){.animation-source-grid-v69{grid-template-columns:1fr}.animation-source-browser-head-v69{align-items:stretch;flex-direction:column}.animation-source-browser-head-v69 input{width:100%}}

/* V25.8.82 — keep the Animation Studio rail compact and consistent.
   V79 made each rail button stretch to fill a fractional grid row. On shorter
   windows this made Animation Editor visibly taller than Explorer and squeezed
   the account/profile area. Buttons now keep one consistent height while the
   spacing, not the button backgrounds, absorbs spare rail height. */
.studio-shell[data-workspace="animation"] .rail-items{
  flex:1 1 auto!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:space-between!important;
  gap:0!important;
  padding:6px 5px 4px!important;
  overflow:hidden!important;
}
.studio-shell[data-workspace="animation"] .rail-button{
  width:100%!important;
  height:clamp(38px,5.8vh,56px)!important;
  min-height:clamp(38px,5.8vh,56px)!important;
  max-height:clamp(38px,5.8vh,56px)!important;
  flex:0 0 clamp(38px,5.8vh,56px)!important;
  padding:3px 2px!important;
  gap:3px!important;
  overflow:hidden!important;
  border-radius:7px!important;
}
.studio-shell[data-workspace="animation"] .rail-button>span{
  line-height:1.05!important;
  max-height:2.1em!important;
  overflow:hidden!important;
}
.studio-shell[data-workspace="animation"] .rail-button svg{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  flex:0 0 18px!important;
}
.studio-shell[data-workspace="animation"] .rail-account{
  flex:0 0 72px!important;
  min-height:72px!important;
  height:72px!important;
  margin-top:0!important;
  padding-top:4px!important;
  padding-bottom:4px!important;
  overflow:hidden!important;
}
@media(max-height:620px){
  .studio-shell[data-workspace="animation"] .rail-button{
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    flex-basis:38px!important;
    font-size:7.4px!important;
  }
  .studio-shell[data-workspace="animation"] .rail-button svg{
    width:16px!important;
    height:16px!important;
    min-width:16px!important;
    flex-basis:16px!important;
  }
  .studio-shell[data-workspace="animation"] .rail-account{
    flex-basis:68px!important;
    min-height:68px!important;
    height:68px!important;
  }
}

/* V25.8.83 — precise Animation rail alignment + restored working keyframe editor. */

/* The rail keeps nine equal positioning slots, but each button itself is a fixed
   compact tile. This matches Explorer / Properties / Create / Script Editor and
   prevents the active Animation tile from stretching to fill its slot. */
.studio-shell[data-workspace="animation"] .studio-rail{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
.studio-shell[data-workspace="animation"] .rail-items{
  flex:1 1 auto!important;
  min-height:0!important;
  display:grid!important;
  grid-template-rows:repeat(9,minmax(0,1fr))!important;
  align-items:center!important;
  justify-items:stretch!important;
  gap:0!important;
  padding:5px 5px 4px!important;
  overflow:hidden!important;
}
.studio-shell[data-workspace="animation"] .rail-button{
  width:100%!important;
  height:54px!important;
  min-height:54px!important;
  max-height:54px!important;
  align-self:center!important;
  justify-self:stretch!important;
  flex:none!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  padding:4px 2px!important;
  border-radius:7px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.studio-shell[data-workspace="animation"] .rail-button>span{
  display:block!important;
  width:100%!important;
  max-width:62px!important;
  line-height:1.08!important;
  max-height:none!important;
  overflow:visible!important;
  text-align:center!important;
  white-space:normal!important;
}
.studio-shell[data-workspace="animation"] .rail-button svg{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  flex:0 0 18px!important;
}
.studio-shell[data-workspace="animation"] .rail-account{
  flex:0 0 88px!important;
  height:88px!important;
  min-height:88px!important;
  max-height:88px!important;
  margin-top:0!important;
  padding:10px 5px 8px!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
.studio-shell[data-workspace="animation"] .rail-profile-button{
  margin-top:0!important;
}

/* Restore the V62/V63 timeline presentation that exposes real keyframe rows,
   selected-part channels, frame ruler, resize control and timeline actions. */
.studio-shell[data-workspace="animation"] .animation-workspace{
  --animation-timeline-height:220px!important;
  grid-template-rows:minmax(0,1fr) var(--animation-timeline-height)!important;
}
.studio-shell[data-workspace="animation"] .animation-timeline-v25839{
  height:var(--animation-timeline-height)!important;
  min-height:160px!important;
  max-height:360px!important;
  grid-template-rows:32px 30px minmax(0,1fr)!important;
  overflow:visible!important;
}
.studio-shell[data-workspace="animation"] .animation-timeline-v25839 .timeline-tabs,
.studio-shell[data-workspace="animation"] .animation-timeline-v25839 .timeline-tabs[hidden]{
  display:flex!important;
  min-height:30px!important;
  height:30px!important;
  padding:0 8px!important;
  align-items:center!important;
}
.studio-shell[data-workspace="animation"] .animation-simple-keyframes-title{display:none!important;}
.studio-shell[data-workspace="animation"] .animation-timeline-resize-handle{
  display:flex!important;
}
.studio-shell[data-workspace="animation"] .animation-frame-header{
  display:block!important;
  height:28px!important;
  min-height:28px!important;
}
.studio-shell[data-workspace="animation"] .animation-timeline-grid{
  display:grid!important;
  grid-template-columns:150px minmax(0,1fr)!important;
  height:auto!important;
  min-height:0!important;
  overflow:hidden!important;
}
.studio-shell[data-workspace="animation"] .animation-selected-channel-list-v63{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
}
.studio-shell[data-workspace="animation"] .animation-track-list,
.studio-shell[data-workspace="animation"] .animation-track-resize-handle{
  display:none!important;
}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid{
  display:block!important;
  position:relative!important;
  grid-column:2!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  overflow:auto!important;
  scrollbar-width:thin!important;
}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid::-webkit-scrollbar{
  display:block!important;
  width:8px!important;
  height:8px!important;
}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid .key-row:not([hidden]){
  display:block!important;
  height:28px!important;
  min-height:28px!important;
  margin:0!important;
  border-top:1px solid rgba(29,51,70,.65)!important;
}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid .key-row[data-animation-v39-channel="all"]{
  height:28px!important;
  min-height:28px!important;
}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid .animation-playhead-line{
  top:28px!important;
  bottom:0!important;
}
.studio-shell[data-workspace="animation"] .animation-scrub-ruler{
  height:32px!important;
  min-height:32px!important;
  margin:0!important;
}
.studio-shell[data-workspace="animation"] .animation-no-selected-track:after{
  content:'Select a body part, then click Keyframe'!important;
  height:auto!important;
  min-height:0!important;
  display:block!important;
  top:72px!important;
}
.studio-shell[data-workspace="animation"] .animation-timeline-actions{
  display:flex!important;
}

@media(max-height:720px){
  .studio-shell[data-workspace="animation"] .rail-button{
    height:48px!important;
    min-height:48px!important;
    max-height:48px!important;
  }
  .studio-shell[data-workspace="animation"] .rail-account{
    flex-basis:82px!important;
    height:82px!important;
    min-height:82px!important;
    max-height:82px!important;
    padding-top:8px!important;
  }
  .studio-shell[data-workspace="animation"] .animation-workspace{
    --animation-timeline-height:190px!important;
  }
  .studio-shell[data-workspace="animation"] .animation-timeline-v25839{
    min-height:150px!important;
  }
}

/* V25.8.84 — final Animation layout polish. No publishing behaviour changes. */
.studio-shell[data-workspace="animation"] .rail-button{
  height:60px!important;
  min-height:60px!important;
  max-height:60px!important;
  gap:5px!important;
  padding:6px 3px!important;
  border-radius:8px!important;
}
.studio-shell[data-workspace="animation"] .rail-button svg{
  width:19px!important;
  height:19px!important;
  min-width:19px!important;
  flex-basis:19px!important;
}
.studio-shell[data-workspace="animation"] .rail-button>span{
  max-width:64px!important;
  line-height:1.12!important;
}
.studio-shell[data-workspace="animation"] .rail-account{
  flex:0 0 92px!important;
  height:92px!important;
  min-height:92px!important;
  max-height:92px!important;
  padding:10px 5px 8px!important;
}

.studio-shell[data-workspace="animation"] .animation-workspace{
  --animation-timeline-height:196px!important;
}
.studio-shell[data-workspace="animation"] .animation-timeline-v25839{
  height:var(--animation-timeline-height)!important;
  min-height:164px!important;
  max-height:320px!important;
  grid-template-rows:32px minmax(0,1fr)!important;
  background:#0a1825!important;
}
.studio-shell[data-workspace="animation"] .animation-timeline-v25839>.timeline-tabs{
  display:none!important;
}
.studio-shell[data-workspace="animation"] .animation-timeline-grid{
  grid-row:2!important;
  min-height:0!important;
  height:100%!important;
}
.studio-shell[data-workspace="animation"] .animation-selected-part-head{
  display:none!important;
}
.studio-shell[data-workspace="animation"] .animation-selected-channel-list-v63{
  padding-top:2px!important;
}
.studio-shell[data-workspace="animation"] .animation-selected-channel-list-v63>button{
  height:31px!important;
  min-height:31px!important;
}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid .key-row:not([hidden]){
  height:31px!important;
  min-height:31px!important;
}
.studio-shell[data-workspace="animation"] .animation-frame-header{
  height:28px!important;
  min-height:28px!important;
}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid .animation-playhead-line{
  top:28px!important;
}

.studio-shell[data-workspace="animation"] .animation-transport-main{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
}
.studio-shell[data-workspace="animation"] .animation-transport-edit-actions-v84{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  margin-left:8px!important;
  padding-left:8px!important;
  border-left:1px solid #263b4d!important;
}
.studio-shell[data-workspace="animation"] .animation-transport-edit-actions-v84>button{
  width:28px!important;
  min-width:28px!important;
  height:26px!important;
  min-height:26px!important;
  padding:0!important;
  border:1px solid #2b4053!important;
  border-radius:6px!important;
  background:#0f2130!important;
  color:#aebfcd!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:11px!important;
  cursor:pointer!important;
}
.studio-shell[data-workspace="animation"] .animation-transport-edit-actions-v84>button:hover{
  background:#173047!important;
  color:#fff!important;
  border-color:#48627a!important;
}
.studio-shell[data-workspace="animation"] .animation-transport-edit-actions-v84>.animation-transport-keyframe-v84{
  width:auto!important;
  min-width:82px!important;
  padding:0 9px!important;
  gap:5px!important;
  color:#e8e4ff!important;
  background:#171f39!important;
  border-color:#45507a!important;
}
.studio-shell[data-workspace="animation"] .animation-transport-edit-actions-v84>.animation-transport-keyframe-v84 span{
  display:inline!important;
}

@media(max-height:760px){
  .studio-shell[data-workspace="animation"] .rail-button{
    height:54px!important;
    min-height:54px!important;
    max-height:54px!important;
  }
  .studio-shell[data-workspace="animation"] .rail-account{
    flex-basis:84px!important;
    height:84px!important;
    min-height:84px!important;
    max-height:84px!important;
  }
  .studio-shell[data-workspace="animation"] .animation-workspace{
    --animation-timeline-height:180px!important;
  }
}

/* V25.8.85 — one direct, pose-capturing keyframe lane. */

/* The timeline now consumes only the space it actually needs: ruler + lane.
   This removes the long-lived empty dark area and the obsolete resize strip. */
.studio-shell[data-workspace="animation"] .animation-workspace{
  --animation-timeline-height:76px!important;
}
.studio-shell[data-workspace="animation"] .animation-timeline-v25839{
  height:76px!important;
  min-height:76px!important;
  max-height:76px!important;
  grid-template-rows:32px 44px!important;
  overflow:hidden!important;
}
.studio-shell[data-workspace="animation"] .animation-timeline-resize-handle{
  display:none!important;
}

/* Hide implementation-level channel controls and the 0/20/40/60... frame row. */
.studio-shell[data-workspace="animation"] .animation-selected-channel-list-v63,
.studio-shell[data-workspace="animation"] .animation-track-list,
.studio-shell[data-workspace="animation"] .animation-track-resize-handle,
.studio-shell[data-workspace="animation"] .animation-frame-header,
.studio-shell[data-workspace="animation"] .animation-no-selected-track:after{
  display:none!important;
}
.studio-shell[data-workspace="animation"] .animation-timeline-grid{
  display:block!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-row:2!important;
  height:44px!important;
  min-height:44px!important;
  overflow:hidden!important;
}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid{
  position:relative!important;
  display:block!important;
  grid-column:1!important;
  width:100%!important;
  height:44px!important;
  min-height:44px!important;
  overflow:hidden!important;
  background:#0a1825!important;
}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid>.key-row,
.studio-shell[data-workspace="animation"] .animation-keyframe-grid>.animation-add-track-key-row{
  display:none!important;
}

/* The only editing surface users need to see. A click captures the selected
   part's complete pose (position + rotation + scale) at that exact frame. */
.studio-shell[data-workspace="animation"] .animation-simple-keyframe-lane-v85{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  height:44px!important;
  cursor:crosshair!important;
  background:linear-gradient(180deg,rgba(14,34,50,.78),rgba(9,25,38,.92))!important;
  border-top:1px solid #1d3346!important;
  box-sizing:border-box!important;
  z-index:2!important;
}
.studio-shell[data-workspace="animation"] .animation-simple-keyframe-lane-v85:hover{
  background:linear-gradient(180deg,rgba(18,42,62,.84),rgba(10,29,44,.96))!important;
}
.studio-shell[data-workspace="animation"] .animation-simple-keyframe-marker-v85{
  position:absolute!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#8a72f5!important;
  font-size:13px!important;
  line-height:18px!important;
  text-align:center!important;
  cursor:pointer!important;
  z-index:5!important;
}
.studio-shell[data-workspace="animation"] .animation-simple-keyframe-marker-v85:hover{
  color:#b7a8ff!important;
  transform:translate(-50%,-50%) scale(1.14)!important;
}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid .animation-playhead-line{
  top:0!important;
  bottom:0!important;
  height:auto!important;
  z-index:4!important;
  pointer-events:none!important;
}

/* Keep the useful time ruler; it remains the place to position the purple
   playhead before using the transport Keyframe button. */
.studio-shell[data-workspace="animation"] .animation-scrub-ruler{
  height:32px!important;
  min-height:32px!important;
  margin:0!important;
}

@media(max-height:760px){
  .studio-shell[data-workspace="animation"] .animation-workspace{--animation-timeline-height:76px!important;}
  .studio-shell[data-workspace="animation"] .animation-timeline-v25839{height:76px!important;min-height:76px!important;max-height:76px!important;}
}

/* V25.8.86 — clearer, slightly larger Roblox-Studio-like keyframe lane. */
.studio-shell[data-workspace="animation"] .animation-workspace{
  --animation-timeline-height:104px!important;
}
.studio-shell[data-workspace="animation"] .animation-timeline-v25839{
  height:104px!important;
  min-height:104px!important;
  max-height:104px!important;
  grid-template-rows:34px 70px!important;
  overflow:hidden!important;
}
.studio-shell[data-workspace="animation"] .animation-timeline-grid{
  height:70px!important;
  min-height:70px!important;
}
.studio-shell[data-workspace="animation"] .animation-keyframe-grid{
  height:70px!important;
  min-height:70px!important;
  background:#0a1825!important;
}

/* Make the lane unmistakably interactive without adding UI clutter. */
.studio-shell[data-workspace="animation"] .animation-simple-keyframe-lane-v85{
  height:70px!important;
  cursor:crosshair!important;
  background:
    repeating-linear-gradient(90deg,rgba(112,142,174,.09) 0 1px,transparent 1px 5%),
    linear-gradient(180deg,rgba(20,43,63,.96),rgba(9,25,38,.98))!important;
  border-top:1px solid #2b465e!important;
  border-bottom:1px solid #20394d!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    inset 0 0 0 1px rgba(117,95,224,.05)!important;
}
.studio-shell[data-workspace="animation"] .animation-simple-keyframe-lane-v85:hover{
  background:
    repeating-linear-gradient(90deg,rgba(126,155,187,.13) 0 1px,transparent 1px 5%),
    linear-gradient(180deg,rgba(26,52,76,.98),rgba(11,30,45,.99))!important;
  box-shadow:
    inset 0 0 0 1px rgba(126,99,255,.30),
    inset 0 0 22px rgba(126,99,255,.07)!important;
}

/* Empty lane guidance disappears automatically as soon as a real keyframe exists. */
.studio-shell[data-workspace="animation"] .animation-simple-keyframe-lane-v85:not(:has(.animation-simple-keyframe-marker-v85))::after{
  content:'Click anywhere to place a keyframe';
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 18px;
  color:rgba(185,207,225,.48);
  font-size:11px;
  font-weight:600;
  letter-spacing:.01em;
  text-align:center;
  pointer-events:none;
}

/* Larger, clearer diamonds. */
.studio-shell[data-workspace="animation"] .animation-simple-keyframe-marker-v85{
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  font-size:16px!important;
  line-height:24px!important;
  color:#8f78ff!important;
  text-shadow:0 0 8px rgba(126,99,255,.32)!important;
  filter:drop-shadow(0 0 4px rgba(126,99,255,.24));
}
.studio-shell[data-workspace="animation"] .animation-simple-keyframe-marker-v85:hover{
  color:#c1b4ff!important;
  transform:translate(-50%,-50%) scale(1.16)!important;
}

/* Keep the time ruler compact so the extra height goes to actual keyframe editing. */
.studio-shell[data-workspace="animation"] .animation-scrub-ruler{
  height:34px!important;
  min-height:34px!important;
}

@media(max-height:760px){
  .studio-shell[data-workspace="animation"] .animation-workspace{--animation-timeline-height:94px!important;}
  .studio-shell[data-workspace="animation"] .animation-timeline-v25839{height:94px!important;min-height:94px!important;max-height:94px!important;grid-template-rows:32px 62px!important;}
  .studio-shell[data-workspace="animation"] .animation-timeline-grid,
  .studio-shell[data-workspace="animation"] .animation-keyframe-grid,
  .studio-shell[data-workspace="animation"] .animation-simple-keyframe-lane-v85{height:62px!important;min-height:62px!important;}
  .studio-shell[data-workspace="animation"] .animation-scrub-ruler{height:32px!important;min-height:32px!important;}
}

/* V25.8.87 — clearly separated Roblox-Studio-style keyframe track. */

/* Give the editing strip its own neutral charcoal surface so it no longer
   disappears into the blue Studio workspace. */
.studio-shell[data-workspace="animation"] .animation-keyframe-grid{
  background:#151a21!important;
  border-top:1px solid #353d49!important;
  border-bottom:1px solid #0d1117!important;
}
.studio-shell[data-workspace="animation"] .animation-simple-keyframe-lane-v85{
  background:
    repeating-linear-gradient(
      90deg,
      rgba(221,229,239,.105) 0,
      rgba(221,229,239,.105) 1px,
      transparent 1px,
      transparent 24px
    ),
    linear-gradient(180deg,#2b3039 0%,#242932 100%)!important;
  border-top:1px solid #424b58!important;
  border-bottom:1px solid #181d24!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    inset 0 0 0 1px rgba(255,255,255,.018),
    0 -1px 0 rgba(0,0,0,.28)!important;
}
.studio-shell[data-workspace="animation"] .animation-simple-keyframe-lane-v85:hover{
  background:
    repeating-linear-gradient(
      90deg,
      rgba(230,237,246,.145) 0,
      rgba(230,237,246,.145) 1px,
      transparent 1px,
      transparent 24px
    ),
    linear-gradient(180deg,#343a45 0%,#2b313a 100%)!important;
  box-shadow:
    inset 0 0 0 1px rgba(126,99,255,.34),
    inset 0 0 20px rgba(126,99,255,.055)!important;
}

/* The playhead should read immediately against the neutral keyframe strip. */
.studio-shell[data-workspace="animation"] .animation-keyframe-grid .animation-playhead-line{
  width:2px!important;
  background:#59a9ff!important;
  box-shadow:0 0 7px rgba(89,169,255,.42)!important;
}

/* Keep the diamond language, but increase edge contrast so placed frames are
   obvious even without hovering. */
.studio-shell[data-workspace="animation"] .animation-simple-keyframe-marker-v85{
  color:#8771ff!important;
  text-shadow:
    0 0 0 #8771ff,
    0 0 7px rgba(117,94,255,.40)!important;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.55)) drop-shadow(0 0 3px rgba(117,94,255,.30))!important;
}
.studio-shell[data-workspace="animation"] .animation-simple-keyframe-marker-v85:hover{
  color:#b9acff!important;
}

/* Empty guidance stays subtle but is now readable on the distinct track. */
.studio-shell[data-workspace="animation"] .animation-simple-keyframe-lane-v85:not(:has(.animation-simple-keyframe-marker-v85))::after{
  color:rgba(229,235,243,.58)!important;
  text-shadow:0 1px 1px rgba(0,0,0,.46)!important;
}

/* V25.8.89 — specialist workspace content fills its dock-owned centre only. */
.studio-shell[data-workspace="animation"] .studio-centre,
.studio-shell[data-workspace="animation"] .animation-workspace,
.studio-shell[data-workspace="animation"] .animation-stage,
.studio-shell[data-workspace="animation"] .animation-timeline-v25839,
.studio-shell[data-workspace="animation"] #animation-canvas{
  min-width:0!important;
  max-width:none!important;
  width:100%!important;
}

/* V25.8.90 — permanent Animation Studio rail; never collapse or overlap. */
.studio-shell[data-workspace="animation"] .studio-layout>.studio-rail{
  grid-column:1!important;
  grid-row:1!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  width:auto!important;
  height:auto!important;
  min-width:var(--rail-width)!important;
  max-width:var(--rail-width)!important;
  min-height:0!important;
  max-height:none!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  overflow:hidden!important;
}
.studio-shell[data-workspace="animation"] .studio-layout>.studio-rail>.rail-items{
  flex:1 1 auto!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:space-evenly!important;
  gap:2px!important;
  padding:5px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  scrollbar-width:none!important;
}
.studio-shell[data-workspace="animation"] .studio-layout>.studio-rail>.rail-items::-webkit-scrollbar{display:none!important;}
.studio-shell[data-workspace="animation"] .studio-layout>.studio-rail>.rail-items>.rail-button{
  flex:0 0 54px!important;
  width:100%!important;
  height:54px!important;
  min-height:54px!important;
  max-height:54px!important;
  margin:0!important;
  padding:4px 2px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  overflow:hidden!important;
}
.studio-shell[data-workspace="animation"] .studio-layout>.studio-rail>.rail-items>.rail-button>span{
  display:block!important;
  width:100%!important;
  max-width:64px!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  line-height:1.08!important;
  text-align:center!important;
}
.studio-shell[data-workspace="animation"] .studio-layout>.studio-rail>.rail-account{
  flex:0 0 88px!important;
  width:100%!important;
  height:88px!important;
  min-height:88px!important;
  max-height:88px!important;
  margin-top:auto!important;
  padding:8px 5px!important;
  overflow:visible!important;
}
@media(max-height:720px){
  .studio-shell[data-workspace="animation"] .studio-layout>.studio-rail>.rail-items{
    justify-content:flex-start!important;
    gap:1px!important;
  }
  .studio-shell[data-workspace="animation"] .studio-layout>.studio-rail>.rail-items>.rail-button{
    flex-basis:46px!important;
    height:46px!important;
    min-height:46px!important;
    max-height:46px!important;
  }
  .studio-shell[data-workspace="animation"] .studio-layout>.studio-rail>.rail-account{
    flex-basis:78px!important;
    height:78px!important;
    min-height:78px!important;
    max-height:78px!important;
  }
}

/* V25.8.91 — stable full-height Animation shell + multi-keyframe selection. */
.studio-shell[data-workspace="animation"] .studio-layout{
  --explorer-width:min(var(--explorer-panel-width),300px)!important;
  --properties-width:min(var(--properties-panel-width),320px)!important;
  grid-template-columns:var(--rail-width) var(--explorer-width) minmax(0,1fr) var(--properties-width)!important;
  grid-template-rows:minmax(0,1fr)!important;
}
.studio-shell[data-workspace="animation"].hide-left .studio-layout{--explorer-width:0px!important;}
.studio-shell[data-workspace="animation"].hide-right .studio-layout{--properties-width:0px!important;}
.studio-shell[data-workspace="animation"] .studio-layout>.studio-rail{
  grid-column:1!important;
  grid-row:1 / -1!important;
  align-self:stretch!important;
  height:auto!important;
  min-height:0!important;
}
.studio-shell[data-workspace="animation"] .studio-layout>.studio-left,
.studio-shell[data-workspace="animation"] .studio-layout.explorer-floating>.studio-left{
  grid-column:2!important;
  grid-row:1!important;
  position:relative!important;
  inset:auto!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  transform:none!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  z-index:auto!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.studio-shell[data-workspace="animation"] .studio-layout>.studio-centre{
  grid-column:3!important;
  grid-row:1!important;
  min-width:0!important;
  width:auto!important;
  align-self:stretch!important;
}
.studio-shell[data-workspace="animation"] .studio-layout>.studio-right,
.studio-shell[data-workspace="animation"] .studio-layout.properties-floating>.studio-right{
  grid-column:4!important;
  grid-row:1!important;
  position:relative!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  transform:none!important;
  margin:0!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  z-index:auto!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.studio-shell[data-workspace="animation"] .dock-stack-splitter{display:none!important;}
.studio-shell[data-workspace="animation"] .studio-layout>.studio-rail>.rail-items{
  justify-content:space-evenly!important;
  align-content:stretch!important;
  min-height:0!important;
}
.studio-shell[data-workspace="animation"] #studio-properties .floating-resize-handle,
.studio-shell[data-workspace="animation"] #studio-left-panel .floating-resize-handle{display:none!important;}
.studio-shell[data-workspace="animation"] .animation-simple-keyframe-lane-v85{user-select:none!important;-webkit-user-select:none!important;cursor:crosshair!important;}
.studio-shell[data-workspace="animation"] .animation-simple-keyframe-marker-v85.selected-v91{color:#d8d1ff!important;text-shadow:0 0 0 2px #725dff,0 0 12px rgba(114,93,255,.8)!important;transform:translate(-50%,-50%) scale(1.18)!important;}
.studio-shell[data-workspace="animation"] .animation-keyframe-marquee-v91{position:absolute!important;top:4px!important;bottom:4px!important;border:1px solid rgba(130,112,255,.95)!important;background:rgba(116,91,255,.16)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)!important;pointer-events:none!important;z-index:8!important;}

/* V25.8.92 — deterministic Animation outer shell. */
.studio-shell[data-workspace="animation"] .studio-layout{
  --animation-properties-width:320px;
  grid-template-columns:var(--rail-width) minmax(0,1fr) var(--animation-properties-width)!important;
  grid-template-rows:minmax(0,1fr)!important;
  min-width:0!important;
  min-height:0!important;
}
.studio-shell[data-workspace="animation"] .studio-layout>.studio-left,
.studio-shell[data-workspace="animation"] .studio-layout.explorer-floating>.studio-left{
  display:none!important;
}
.studio-shell[data-workspace="animation"] .studio-layout>.studio-rail{
  grid-column:1!important;
  grid-row:1!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  width:var(--rail-width)!important;
  min-width:var(--rail-width)!important;
  max-width:var(--rail-width)!important;
  height:auto!important;
  min-height:0!important;
}
.studio-shell[data-workspace="animation"] .studio-layout>.studio-centre{
  grid-column:2!important;
  grid-row:1!important;
  min-width:0!important;
  min-height:0!important;
  width:auto!important;
  height:auto!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  overflow:hidden!important;
}
.studio-shell[data-workspace="animation"] .studio-layout>.studio-right,
.studio-shell[data-workspace="animation"] .studio-layout.properties-floating>.studio-right,
.studio-shell[data-workspace="animation"] #studio-properties{
  display:block!important;
  grid-column:3!important;
  grid-row:1!important;
  position:relative!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  transform:none!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:hidden!important;
  z-index:auto!important;
}
.studio-shell[data-workspace="animation"] #studio-properties>.floating-resize-handle,
.studio-shell[data-workspace="animation"] #studio-properties>.panel-edge-resizer{display:none!important;}

/* Use the entire permanent rail height while keeping the button size from V90. */
.studio-shell[data-workspace="animation"] .studio-layout>.studio-rail>.rail-items{
  flex:1 1 auto!important;
  min-height:0!important;
  display:grid!important;
  grid-template-rows:repeat(9,minmax(54px,1fr))!important;
  align-items:center!important;
  justify-items:stretch!important;
  gap:0!important;
  padding:5px!important;
  overflow:hidden!important;
}
.studio-shell[data-workspace="animation"] .studio-layout>.studio-rail>.rail-items>.rail-button{
  align-self:center!important;
  justify-self:stretch!important;
  width:100%!important;
  height:54px!important;
  min-height:54px!important;
  max-height:54px!important;
}
@media(max-height:720px){
  .studio-shell[data-workspace="animation"] .studio-layout>.studio-rail>.rail-items{
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    gap:1px!important;
    overflow-y:auto!important;
  }
  .studio-shell[data-workspace="animation"] .studio-layout>.studio-rail>.rail-items>.rail-button{
    flex:0 0 46px!important;
    height:46px!important;
    min-height:46px!important;
    max-height:46px!important;
  }
}
