:root {
    color-scheme: dark;
    --studio-bg: #181b1a;
    --studio-surface: #222625;
    --studio-surface-2: #292e2c;
    --studio-surface-3: #303634;
    --studio-line: #3d4441;
    --studio-line-soft: #343a38;
    --studio-text: #e8edeb;
    --studio-muted: #949e9a;
    --studio-faint: #69736f;
    --studio-accent: #2aa17f;
    --studio-accent-soft: rgba(42, 161, 127, 0.17);
    --studio-warning: #e1a25e;
    --project-browser-width: 238px;
    --properties-width: 294px;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    background: var(--studio-bg);
    color: var(--studio-text);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13px;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #52c9a7;
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

.studio-shell {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 50px 68px minmax(0, 1fr) 27px;
    background: var(--studio-bg);
}

.studio-topbar {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(250px, 1fr) auto minmax(460px, 1fr);
    align-items: center;
    gap: 18px;
    padding: 0 12px;
    border-bottom: 1px solid var(--studio-line);
    background: #171a19;
}

.topbar-leading,
.topbar-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.topbar-actions {
    justify-content: flex-end;
}

.studio-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--studio-text);
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.studio-brand-mark {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px 8px 3px 8px;
    background: var(--studio-text);
    color: #1a1e1c;
    font-size: 12px;
    letter-spacing: 0;
}

.topbar-divider {
    width: 1px;
    height: 24px;
    margin: 0 3px;
    background: var(--studio-line);
}

.topbar-icon-button,
.topbar-button,
.tool-button,
.icon-button,
.constraint-button {
    border: 1px solid transparent;
    color: var(--studio-text);
    cursor: pointer;
}

.topbar-icon-button {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--studio-muted);
}

.topbar-icon-button:hover,
.topbar-icon-button[aria-pressed="true"] {
    border-color: var(--studio-line);
    background: var(--studio-surface-2);
    color: var(--studio-text);
}

.topbar-icon-button svg,
.topbar-button svg,
.tool-button svg,
.icon-button svg,
.view-tab svg,
.properties-empty svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar-icon-button svg {
    width: 17px;
    height: 17px;
}

.project-identity {
    min-width: 220px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.project-identity strong {
    font-size: 12px;
    font-weight: 600;
}

.project-identity span {
    color: var(--studio-faint);
    font-size: 10px;
}

.project-status {
    max-width: 112px;
    overflow: hidden;
    color: #7ed0ad;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-status.is-dirty {
    color: var(--studio-warning);
}

.topbar-button {
    height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border-color: var(--studio-line);
    border-radius: 6px;
    background: var(--studio-surface);
    color: #cbd2cf;
    font-size: 11px;
    text-decoration: none;
}

.topbar-button:hover {
    border-color: #5a6561;
    background: var(--studio-surface-2);
    color: white;
}

.topbar-button svg {
    width: 15px;
    height: 15px;
}

.beta-badge {
    color: var(--studio-warning);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.guest-pill {
    height: 28px;
    display: inline-flex;
    align-items: center;
    margin-left: 3px;
    padding: 0 9px;
    border: 1px solid #40504a;
    border-radius: 999px;
    background: rgba(42, 161, 127, 0.08);
    color: #99cdbb;
    font-size: 9px;
    letter-spacing: 0.05em;
}

.studio-ribbon {
    min-width: 0;
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid var(--studio-line);
    background: var(--studio-surface);
    scrollbar-width: thin;
}

.toolbar-group {
    flex: 0 0 auto;
    min-width: max-content;
    display: grid;
    grid-template-rows: 14px 43px;
    align-content: center;
    gap: 2px;
    padding: 4px 12px 5px;
    border-right: 1px solid var(--studio-line);
}

.toolbar-group-title {
    color: var(--studio-faint);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 14px;
}

.toolbar-group-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tool-button {
    height: 40px;
    min-width: 54px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 2px 8px;
    border-radius: 5px;
    background: transparent;
    color: #b8c0bd;
    font-size: 9px;
}

.tool-button svg {
    width: 18px;
    height: 18px;
}

.tool-button:hover:not(:disabled),
.icon-button:hover:not(:disabled),
.constraint-button:hover:not(:disabled) {
    border-color: #4b5551;
    background: var(--studio-surface-3);
    color: white;
}

.tool-button.is-active,
.constraint-button.is-active {
    border-color: var(--studio-accent);
    background: var(--studio-accent-soft);
    color: #dff8ef;
}

.icon-button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 5px;
    background: transparent;
    color: #b5bfbb;
}

.icon-button svg {
    width: 17px;
    height: 17px;
}

.tool-button:disabled,
.icon-button:disabled,
.constraint-button:disabled {
    cursor: default;
    opacity: 0.32;
}

.toolbar-options-group {
    min-width: 285px;
}

.contextual-options {
    min-width: 260px;
}

.contextual-options label {
    margin-left: 5px;
    color: var(--studio-muted);
    font-size: 10px;
}

.contextual-options select,
.contextual-options input {
    height: 31px;
    border: 1px solid #4d5653;
    border-radius: 5px;
    background: #1b1f1e;
    color: var(--studio-text);
    padding: 0 8px;
}

.contextual-options select {
    min-width: 80px;
}

.contextual-options input {
    width: 74px;
}

.option-hint,
.empty-options {
    color: var(--studio-faint);
    font-size: 9px;
}

.constraint-group {
    margin-left: auto;
    border-left: 1px solid var(--studio-line);
}

.constraint-button {
    height: 34px;
    padding: 0 11px;
    border-color: var(--studio-line);
    border-radius: 5px;
    background: #1c201f;
    font-size: 10px;
}

.constraint-button kbd {
    margin-left: 5px;
    color: var(--studio-faint);
    font: 8px "Segoe UI", Arial, sans-serif;
}

.studio-main {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns:
        var(--project-browser-width)
        minmax(0, 1fr)
        var(--properties-width);
    background: var(--studio-bg);
    transition: grid-template-columns 160ms ease;
}

.studio-shell.is-project-browser-collapsed .studio-main {
    grid-template-columns: 0 minmax(0, 1fr) var(--properties-width);
}

.studio-shell.is-properties-collapsed .studio-main {
    grid-template-columns: var(--project-browser-width) minmax(0, 1fr) 0;
}

.studio-shell.is-project-browser-collapsed.is-properties-collapsed .studio-main {
    grid-template-columns: 0 minmax(0, 1fr) 0;
}

.project-browser,
.properties-dock {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--studio-surface);
}

.project-browser {
    display: grid;
    grid-template-rows: 49px minmax(0, 1fr) auto;
    border-right: 1px solid var(--studio-line);
}

.properties-dock {
    display: grid;
    grid-template-rows: 49px minmax(0, 1fr);
    border-left: 1px solid var(--studio-line);
}

.studio-shell.is-project-browser-collapsed .project-browser,
.studio-shell.is-properties-collapsed .properties-dock {
    visibility: hidden;
}

.dock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    border-bottom: 1px solid var(--studio-line-soft);
    background: #202422;
}

.dock-header > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dock-header span {
    color: var(--studio-faint);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.dock-header strong {
    font-size: 11px;
    font-weight: 600;
}

.dock-action-button,
.level-edit-button {
    border: 0;
    background: transparent;
    color: var(--studio-muted);
    cursor: pointer;
}

.dock-action-button {
    width: 26px;
    height: 26px;
    border: 1px solid var(--studio-line);
    border-radius: 5px;
    color: var(--studio-accent);
    font-size: 18px;
}

.level-tree-host {
    display: contents;
}

.level-tree-host > ul {
    display: contents;
}

.level-browser-row {
    grid-template-columns: 14px 17px minmax(0, 1fr) 24px;
}

.plan-type-group-row {
    grid-template-columns: 14px 17px minmax(0, 1fr) 24px;
    margin-top: 4px;
    color: #b9f3df;
}

.level-edit-button {
    height: 24px;
    border-radius: 4px;
    font-size: 16px;
}

.level-edit-button:hover,
.dock-action-button:hover {
    background: var(--studio-accent-soft);
    color: var(--studio-text);
}

.level-plan-row,
.plan-type-row {
    cursor: pointer;
    grid-template-columns: 14px 17px minmax(0, 1fr) auto;
}

.plan-type-row .plan-icon {
    border-color: #c78932;
}

.level-elevation {
    color: var(--studio-faint);
    font-size: 8px;
}

.project-tree {
    overflow: auto;
    padding: 10px 7px;
}

.project-tree ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tree-item {
    min-height: 28px;
    display: grid;
    grid-template-columns: 14px 17px minmax(0, 1fr);
    align-items: center;
    gap: 4px;
    padding: 0 7px;
    border-radius: 4px;
    color: #adb6b2;
    white-space: nowrap;
}

.tree-item:hover {
    background: #2a302e;
    color: var(--studio-text);
}

.tree-item.is-selected {
    background: rgba(42, 161, 127, 0.16);
    color: #def4eb;
}

.tree-item strong {
    font-size: 10px;
    font-weight: 600;
}

.tree-level-1 {
    padding-left: 18px;
}

.tree-level-2 {
    padding-left: 34px;
}

.tree-level-3 {
    padding-left: 50px;
}

.tree-level-4 {
    padding-left: 66px;
}

.tree-level-5 {
    padding-left: 82px;
}

.tree-caret,
.tree-spacer {
    width: 14px;
    color: var(--studio-faint);
    font-size: 11px;
    text-align: center;
}

.tree-icon {
    position: relative;
    width: 13px;
    height: 13px;
    display: inline-block;
    border: 1px solid #68736f;
    border-radius: 2px;
}

.project-icon {
    border-color: #49a88d;
    background: rgba(42, 161, 127, 0.13);
}

.site-icon {
    border-radius: 50%;
}

.site-icon::before {
    position: absolute;
    content: "";
    inset: 3px;
    border: 1px solid #78837f;
    transform: rotate(45deg);
}

.building-icon::before,
.plan-icon::before {
    position: absolute;
    content: "";
}

.building-icon::before {
    right: 2px;
    bottom: 2px;
    left: 2px;
    height: 5px;
    border-top: 1px solid #78837f;
    border-bottom: 1px solid #78837f;
}

.discipline-icon {
    border-radius: 50%;
}

.level-icon {
    height: 9px;
    border-width: 0 0 1px;
    border-radius: 0;
}

.plan-icon::before {
    inset: 3px;
    border-top: 1px solid #78837f;
    border-left: 1px solid #78837f;
}

.browser-footnote {
    display: grid;
    gap: 5px;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--studio-line-soft);
    color: var(--studio-faint);
    font-size: 9px;
    line-height: 1.55;
}

.browser-footnote span {
    color: #71bda3;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.drawing-pane {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: 36px minmax(0, 1fr);
    background: #202020;
}

.view-tabs {
    min-width: 0;
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--studio-line);
    background: #1d211f;
}

.view-tab {
    min-width: 110px;
    max-width: 420px;
    flex: 1 1 190px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    padding: 0 13px;
    border: 0;
    border-right: 1px solid var(--studio-line);
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--studio-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.view-tab.is-active {
    border-bottom-color: var(--studio-accent);
    background: #252a28;
    color: var(--studio-text);
}

.view-tab svg {
    width: 14px;
    height: 14px;
}

.level-underlay-control {
    min-width: 160px;
    flex: 0 1 210px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 0 10px;
    border-left: 1px solid var(--studio-line);
    color: var(--studio-faint);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.level-underlay-control select {
    min-width: 84px;
    width: 135px;
    height: 24px;
    border: 1px solid #46504c;
    border-radius: 4px;
    background: #191d1c;
    color: var(--studio-muted);
    padding: 0 6px;
    font-size: 9px;
}

.level-underlay-control select:focus {
    border-color: var(--studio-accent);
    outline: none;
}

.level-underlay-control select:disabled {
    opacity: 0.45;
}

.plan-boundary-control,
.typical-local-control {
    min-width: 112px;
    flex: 0 1 152px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 10px;
    border-left: 1px solid var(--studio-line);
    border-right: 1px solid var(--studio-line);
    background: #1b1f1e;
    color: var(--studio-faint);
    cursor: pointer;
    font-size: 7px;
    letter-spacing: 0.1em;
}

.plan-boundary-label {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}

.plan-boundary-label strong {
    color: #59c7eb;
    font-size: 8px;
    letter-spacing: 0.06em;
}

.typical-local-control {
    min-width: 118px;
    flex-basis: 138px;
}

.typical-local-control[data-local-status="enabled"] strong {
    color: #54d697;
}

.reset-instance-button {
    align-self: stretch;
    min-width: 54px;
    padding: 0 8px;
    border: 0;
    border-right: 1px solid var(--studio-line);
    background: #1b1f1e;
    color: #ffb74d;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.reset-instance-button:hover:not(:disabled) {
    background: #2a2420;
}

.reset-instance-button:disabled {
    color: var(--studio-faint);
    cursor: default;
    opacity: 0.45;
}

.plan-boundary-control[data-boundary-status="base-ready"] strong {
    color: #54d697;
}

.plan-boundary-control[data-boundary-status="outside"] strong,
.plan-boundary-control[data-boundary-status="waiting"] strong {
    color: #ffb74d;
}

.plan-boundary-control.is-status-only {
    min-width: 112px;
    flex-basis: 132px;
    cursor: default;
}

.plan-boundary-control:hover,
.typical-local-control:hover {
    background: #252a28;
}

.plan-boundary-control.is-status-only:hover {
    background: #1b1f1e;
}

.plan-boundary-control input,
.typical-local-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.plan-boundary-toggle {
    position: relative;
    width: 28px;
    height: 15px;
    flex: 0 0 auto;
    border: 1px solid #52605b;
    border-radius: 999px;
    background: #151817;
}

.plan-boundary-toggle::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #7d8984;
    transition: transform 120ms ease, background 120ms ease;
}

.plan-boundary-control input:checked + .plan-boundary-toggle,
.typical-local-control input:checked + .plan-boundary-toggle {
    border-color: #c78932;
    background: rgba(255, 183, 77, 0.15);
}

.plan-boundary-control input:checked + .plan-boundary-toggle::after,
.typical-local-control input:checked + .plan-boundary-toggle::after {
    transform: translateX(13px);
    background: #ffb74d;
}

.plan-boundary-control:has(input:focus-visible),
.typical-local-control:has(input:focus-visible) {
    outline: 1px solid var(--studio-accent);
    outline-offset: -1px;
}

.plan-boundary-control:has(input:disabled),
.typical-local-control:has(input:disabled) {
    cursor: default;
}

.plan-boundary-control input:disabled + .plan-boundary-toggle,
.typical-local-control input:disabled + .plan-boundary-toggle {
    opacity: 0.32;
}

.view-type {
    min-width: 0;
    max-width: 150px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    color: var(--studio-faint);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.level-dialog {
    width: min(390px, calc(100vw - 32px));
    padding: 0;
    border: 1px solid var(--studio-line);
    border-radius: 8px;
    background: #202422;
    color: var(--studio-text);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.level-dialog::backdrop {
    background: rgba(0, 0, 0, 0.56);
}

.level-dialog form {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.level-dialog header,
.level-dialog footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.level-dialog header {
    margin: -16px -16px 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--studio-line);
}

.level-dialog header div {
    display: flex;
    flex-direction: column;
}

.level-dialog header span,
.level-dialog label {
    color: var(--studio-muted);
    font-size: 9px;
}

.level-dialog header button {
    border: 0;
    background: transparent;
    color: var(--studio-muted);
    font-size: 20px;
    cursor: pointer;
}

.level-dialog input,
.level-dialog select {
    width: 100%;
    height: 34px;
    padding: 0 9px;
    border: 1px solid #4a5350;
    border-radius: 5px;
    background: #191d1c;
    color: var(--studio-text);
}

.level-dialog .level-dialog-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #3d4743;
    border-radius: 5px;
    background: #1b1f1e;
    cursor: pointer;
}

.level-dialog .level-dialog-check:has(input:disabled) {
    cursor: default;
    opacity: 0.45;
}

.level-dialog .level-dialog-check input {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    accent-color: var(--studio-accent);
}

.level-dialog .level-dialog-check span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.level-dialog .level-dialog-check strong {
    color: var(--studio-text);
    font-size: 10px;
}

.level-dialog .level-dialog-check small {
    color: var(--studio-muted);
    font-size: 8px;
}

.level-dialog footer {
    margin-top: 8px;
}

.level-dialog footer button {
    min-width: 92px;
    height: 32px;
    border: 1px solid var(--studio-line);
    border-radius: 5px;
    cursor: pointer;
}

.typical-plan-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.typical-plan-actions button {
    min-height: 32px;
    border: 1px solid var(--studio-line);
    border-radius: 5px;
    background: #272d2b;
    color: var(--studio-text);
    cursor: pointer;
    font-size: 10px;
}

.typical-plan-actions button:hover {
    border-color: var(--studio-accent);
}

.primary-button {
    background: var(--studio-accent);
    color: white;
}

.danger-button {
    background: transparent;
    color: #ff8a8a;
}

.level-dialog-message {
    min-height: 16px;
    margin: 0;
    color: #ff9b9b;
    font-size: 10px;
}

#cadContainer {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #202020;
}

#cadCanvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

#propertiesPanel {
    min-height: 0;
    overflow: auto;
}

.properties-selection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px;
    border-bottom: 1px solid var(--studio-line-soft);
    color: var(--studio-muted);
    font-size: 9px;
}

.properties-selection-header strong {
    color: #6bc3a5;
    font-size: 10px;
    font-weight: 600;
}

#propertyForm {
    padding: 14px 13px;
}

.property-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    align-items: center;
    gap: 12px;
    margin-bottom: 11px;
}

.property-field label {
    color: #b1bbb7;
    font-size: 10px;
}

.property-field input,
.property-field select {
    width: 100%;
    height: 31px;
    border: 1px solid #4a5350;
    border-radius: 5px;
    background: #191d1c;
    color: var(--studio-text);
    padding: 0 8px;
}

.property-field input:focus,
.property-field select:focus {
    border-color: var(--studio-accent);
    outline: none;
}

.property-control-with-unit {
    position: relative;
}

.property-control-with-unit input {
    padding-right: 31px;
}

.property-control-with-unit span {
    position: absolute;
    top: 50%;
    right: 8px;
    pointer-events: none;
    color: var(--studio-faint);
    font-size: 8px;
    transform: translateY(-50%);
}

.property-message {
    min-height: 20px;
    margin-top: 10px;
    color: #71d2ad;
    font-size: 9px;
    line-height: 1.6;
}

.property-message.is-error {
    color: #ff8f8f;
}

#propertiesPanel.is-inherited .properties-selection-header strong,
#propertiesPanel.is-inherited .property-message {
    color: #59c7eb;
}

#propertiesPanel.is-inherited input:disabled,
#propertiesPanel.is-inherited select:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.properties-empty {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px;
    color: var(--studio-faint);
    text-align: center;
}

#propertiesPanel:not([hidden]) + .properties-empty {
    display: none;
}

.properties-empty svg {
    width: 27px;
    height: 27px;
    margin-bottom: 5px;
    color: #65706c;
}

.properties-empty strong {
    color: #a8b1ad;
    font-size: 11px;
}

.properties-empty span {
    max-width: 190px;
    font-size: 9px;
    line-height: 1.6;
}

.studio-statusbar {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 0 10px;
    border-top: 1px solid var(--studio-line);
    background: #171a19;
    color: var(--studio-muted);
    font-size: 8px;
    letter-spacing: 0.035em;
}

.studio-statusbar > div,
.statusbar-trailing {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-ready-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #57bd93;
}

.statusbar-center {
    font-variant-numeric: tabular-nums;
}

.statusbar-trailing {
    justify-content: flex-end;
}

.statusbar-trailing span + span {
    padding-left: 12px;
    border-left: 1px solid var(--studio-line-soft);
}

.statusbar-trailing .is-active {
    color: #72d2b1;
}

@media (max-width: 1180px) {
    :root {
        --project-browser-width: 210px;
        --properties-width: 270px;
    }

    .studio-topbar {
        grid-template-columns: auto minmax(160px, 1fr) auto;
    }

    .project-identity span,
    .guest-pill,
    .topbar-button .beta-badge {
        display: none;
    }

    .topbar-button {
        padding-inline: 8px;
    }

    .view-type {
        display: none;
    }
}

@media (max-width: 900px) {
    .studio-topbar {
        grid-template-columns: auto 1fr;
    }

    .project-identity {
        display: none;
    }

    .studio-main {
        grid-template-columns: 0 minmax(0, 1fr) var(--properties-width);
    }

    .project-browser {
        visibility: hidden;
    }

    .studio-shell.is-properties-collapsed .studio-main,
    .studio-shell.is-project-browser-collapsed.is-properties-collapsed .studio-main {
        grid-template-columns: 0 minmax(0, 1fr) 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .studio-main {
        transition: none;
    }
}

#dimensionToolButton svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#spaceToolMessage.is-error {
    color: #ff8585;
}
