: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) 24px; 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:72px 320px minmax(430px,1fr) 370px; gap:1px; background:#263b50; }
.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:#07121e; }
.rail-items { display:grid; gap:1px; padding:5px 6px; }
.rail-button { min-height:66px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; padding:5px 2px; border:0; border-radius:5px; background:transparent; color:#e8ecf2; font-size:8px; line-height:1.2; }
.rail-button svg { width:23px; height:23px; }
.rail-button:hover { background:#15253a; }
.rail-button.active { background:#242154; color:#fff; }
.rail-button.active svg { color:#8f5cff; }
.rail-account { position:relative; display:grid; justify-items:center; gap:5px; padding:9px 0 10px; }
.rail-avatar { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(135deg,#4ed6ff,#7e45df); color:#06111c; font-size:11px; font-weight:900; border:2px solid #19334b; }
.rail-online { position:absolute; width:10px; height:10px; right:12px; top:36px; border:2px solid #07121e; border-radius:50%; background:#39d67e; }
.rail-account button { width:28px; height:28px; display:grid; place-items:center; border:0; background:transparent; color:#dce4ec; }
.studio-left { display:flex; flex-direction:column; }
.studio-panel-heading { flex:0 0 43px; 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; }
.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 2px; }
.explorer-chips button { min-height:31px; 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:29px; 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; }
