/* ===== Frame Editor ===== */
.frame-editor-page {
    max-width: 1680px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.frame-editor-page .content-header {
    flex: 0 0 auto;
    margin-bottom: 0.5rem;
}

.main-content:has(.frame-editor-page) {
    overflow: hidden;
}

.frame-editor-header-bar {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 14px 14px 0 0;
    background-color: var(--bg-card);
}

.frame-editor-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 46px;
    height: 40px;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.frame-editor-sidebar-toggle:hover {
    border-color: rgba(102, 192, 244, 0.45);
    background-color: var(--bg-card-hover);
}

.frame-editor-sidebar-toggle.active {
    border-color: var(--accent-primary);
    background-color: rgba(102, 192, 244, 0.14);
    color: var(--accent-primary);
}

.frame-editor-button-label {
    display: inline-block;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.frame-editor-header-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.frame-editor-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.frame-editor-header-zoom {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    position: relative;
}

.frame-editor-canvas-controls {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background-color: var(--bg-secondary);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 10px 22px rgba(15, 23, 42, 0.12);
    flex: 0 0 auto;
    overflow: hidden;
}

.frame-editor-header-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-primary);
}

.frame-editor-header-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.frame-editor-layout-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.frame-editor-layout {
    --left-sidebar-width: 340px;
    --right-sidebar-width: 320px;
    display: grid;
    grid-template-columns: var(--left-sidebar-width) minmax(0, 1fr) var(--right-sidebar-width);
    gap: 0;
    align-items: stretch;
    transition: grid-template-columns 0.15s ease, --left-sidebar-width 0.12s ease, --right-sidebar-width 0.12s ease;
    min-height: 0;
    height: 100%;
}

.frame-editor-layout.frame-editor-layout-sidebar-collapsed {
    --left-sidebar-width: 0px;
}

.frame-editor-layout.frame-editor-layout-right-sidebar-collapsed {
    --right-sidebar-width: 0px;
}

.frame-editor-layout.frame-editor-layout-sidebar-collapsed.frame-editor-layout-right-sidebar-collapsed {
    --left-sidebar-width: 0px;
    --right-sidebar-width: 0px;
}

.frame-editor-sidebar-panel,
.frame-editor-workspace-panel,
.frame-editor-right-sidebar-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    min-height: 0;
    height: 100%;
}

.frame-editor-sidebar-panel {
    grid-column: 1;
}

.frame-editor-workspace-panel {
    grid-column: 2;
}

.frame-editor-right-sidebar-panel {
    grid-column: 3;
}

.frame-editor-sidebar-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    overflow: hidden;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        padding 0.2s ease,
        border-color 0.2s ease;
}

.frame-editor-layout.frame-editor-layout-sidebar-collapsed .frame-editor-sidebar-panel {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-12px);
    padding-inline: 0;
    border-color: transparent;
}

.frame-editor-right-sidebar-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--bg-card) 92%, rgba(255, 255, 255, 0.04)) 0%, color-mix(in srgb, var(--bg-card) 98%, transparent) 140px),
        var(--bg-card);
    overflow: hidden;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        padding 0.2s ease,
        border-color 0.2s ease;
}

.frame-editor-layout.frame-editor-layout-right-sidebar-collapsed .frame-editor-right-sidebar-panel {
    opacity: 0;
    pointer-events: none;
    transform: translateX(12px);
    padding-inline: 0;
    border-color: transparent;
}

.frame-editor-sidebar-panel.is-resize-hover,
.frame-editor-sidebar-panel.is-resizing,
.frame-editor-right-sidebar-panel.is-resize-hover,
.frame-editor-right-sidebar-panel.is-resizing {
    cursor: col-resize;
}

.frame-editor-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.frame-editor-workspace-tabs {
    padding: 1rem 1rem 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-card);
}

.frame-editor-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.frame-editor-tab:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.frame-editor-tab.active {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 122, 204, 0.2);
}

.frame-editor-sidebar-search {
    margin-bottom: 0;
}

.frame-editor-sidebar-body {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.frame-editor-sidebar-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.frame-editor-sidebar-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.frame-editor-sidebar-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.frame-editor-frame-list,
.frame-editor-library-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.frame-editor-overview-list {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding-bottom: 0.35rem;
}

.frame-editor-frame-item,
.frame-editor-library-item {
    display: grid;
    gap: 0.9rem;
    align-items: center;
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.frame-editor-overview-item-shell {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 0.15rem;
    align-items: center;
    width: 100%;
    padding-left: calc(var(--frame-editor-overview-depth, 0) * 1rem);
}

.frame-editor-overview-item-shell.is-active {
    background-color: var(--accent-primary);
    border-radius: 6px;
}

.frame-editor-overview-item-shell.is-active .frame-editor-overview-item,
.frame-editor-overview-item-shell.is-active .frame-editor-overview-item-toggle,
.frame-editor-overview-item-shell.is-active .frame-editor-overview-item-toggle-spacer {
    color: #ffffff;
}

.frame-editor-overview-item-shell.is-active .frame-editor-overview-item:hover {
    background-color: transparent;
}

/* Hide the textual "Selected" status inside the active row */
.frame-editor-overview-item-shell.is-active .frame-editor-overview-item-status {
    display: none;
}

/* Ensure selecting a row does not change its vertical size.
   Keep the shell aligned and the inner button at the same min-height/padding
   as non-selected rows so the selection highlight does not alter height. */
.frame-editor-overview-item-shell.is-active {
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.frame-editor-overview-item-shell.is-active .frame-editor-overview-item {
    /* match the default button sizing to avoid the selected row growing */
    min-height: 32px;
    padding: 0.35rem 0.45rem;
}

.frame-editor-overview-item-shell.is-active .frame-editor-overview-item-toggle {
    margin-top: 0;
}

.frame-editor-overview-item-toggle,
.frame-editor-overview-item-toggle-spacer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.frame-editor-overview-item-toggle {
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.frame-editor-overview-item-toggle:hover {
    background-color: rgba(148, 163, 184, 0.12);
    color: var(--text-primary);
}

.frame-editor-overview-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 32px;
    padding: 0.35rem 0.45rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.frame-editor-frame-item {
    grid-template-columns: 78px minmax(0, 1fr);
}

.frame-editor-library-item {
    grid-template-columns: 52px minmax(0, 1fr);
}

.frame-editor-frame-item:hover,
.frame-editor-library-item:hover {
    border-color: rgba(102, 192, 244, 0.45);
    background-color: var(--bg-card-hover);
    transform: translateY(-1px);
}

.frame-editor-overview-item:hover {
    background-color: rgba(148, 163, 184, 0.12);
}

.frame-editor-frame-item.active {
    border-color: var(--accent-primary);
    background-color: rgba(102, 192, 244, 0.12);
    box-shadow: 0 10px 24px rgba(0, 122, 204, 0.14);
}

.frame-editor-overview-item.is-dragging {
    opacity: 0.55;
}

.frame-editor-overview-item.is-drop-before {
    box-shadow: inset 0 2px 0 var(--accent-primary);
}

.frame-editor-overview-item.is-drop-after {
    box-shadow: inset 0 -2px 0 var(--accent-primary);
}

.frame-editor-overview-item.is-drop-inside {
    background-color: rgba(102, 192, 244, 0.16);
    box-shadow: inset 0 0 0 1px rgba(102, 192, 244, 0.32);
}

.frame-editor-frame-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 0.5rem;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(102, 192, 244, 0.08), rgba(102, 192, 244, 0.02)),
        var(--bg-primary);
    overflow: hidden;
}

.frame-editor-frame-thumb img,
.frame-editor-frame-thumb svg {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.frame-editor-frame-meta,
.frame-editor-library-item-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.frame-editor-frame-name,
.frame-editor-library-item-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.frame-editor-frame-source,
.frame-editor-library-item-description {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.frame-editor-library-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(102, 192, 244, 0.14), rgba(102, 192, 244, 0.04)),
        var(--bg-primary);
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.frame-editor-overview-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: currentColor;
    font-size: 0.92rem;
}

.frame-editor-overview-item-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.86rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.frame-editor-overview-item-layer,
.frame-editor-overview-item-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 0;
    border-radius: 0;
    font-size: 0.72rem;
    font-weight: 600;
    background: transparent;
}

.frame-editor-overview-item-layer {
    color: var(--text-muted);
}

/* Hide all numeric layer badges on Structure rows (visual-only).
   If you prefer removing them from HTML, I can update renderStructureItem instead. */
.frame-editor-overview-item-layer {
    display: none;
}

.frame-editor-overview-item-shell.is-active .frame-editor-overview-item-layer,
.frame-editor-overview-item-shell.is-active .frame-editor-overview-item-status {
    align-items: center;
    justify-content: center;
    /* Keep the same baseline height/padding as the default state so selection
       does not change the row's overall height. */
    min-height: 18px;
    margin-top: 0;
    padding: 0;
    border: none;
    border-radius: 4px;
    background-color: transparent;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-align: center;
    transition: color 0.16s ease, background-color 0.16s ease;
    opacity: 0.9;
}

.frame-editor-overview-list.is-dragging .frame-editor-overview-root-dropzone {
    opacity: 1;
}

.frame-editor-overview-root-dropzone.is-active {
    border-color: var(--accent-primary);
    background-color: rgba(102, 192, 244, 0.16);
    color: var(--accent-primary);
}

.frame-editor-library-item-action {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.frame-editor-empty-state,
.frame-editor-workspace-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 260px;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

.frame-editor-empty-state[hidden],
.frame-editor-workspace-empty[hidden] {
    display: none !important;
}

.frame-editor-empty-state i,
.frame-editor-workspace-empty i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.frame-editor-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.frame-editor-empty-state p,
.frame-editor-workspace-empty p,
.frame-editor-inspector-empty p {
    max-width: 46ch;
    line-height: 1.5;
}

.frame-editor-empty-state-error i,
.frame-editor-workspace-error i {
    color: #ff8a65;
}

.frame-editor-workspace-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    padding: 0;
    border-left: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.frame-editor-layout.frame-editor-layout-sidebar-collapsed .frame-editor-workspace-panel {
    border-left: 1px solid var(--border-color);
    border-top-left-radius: 0;
    border-bottom-left-radius: 14px;
}

.frame-editor-layout.frame-editor-layout-right-sidebar-collapsed .frame-editor-workspace-panel {
    border-right: 1px solid var(--border-color);
    border-bottom-right-radius: 14px;
}

.frame-editor-layout.frame-editor-layout-sidebar-collapsed.frame-editor-layout-right-sidebar-collapsed .frame-editor-workspace-panel {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.frame-editor-inspector-shell {
    position: sticky;
    top: 0;
    z-index: 6;
}

.frame-editor-inspector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(102, 192, 244, 0.24);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(102, 192, 244, 0.08), rgba(102, 192, 244, 0.02)),
        var(--bg-secondary);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.frame-editor-inspector-empty {
    align-items: flex-start;
}

.frame-editor-inspector-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.frame-editor-inspector-kicker {
    margin-bottom: 0.35rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-primary);
}

.frame-editor-inspector-actions,
.frame-editor-toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.frame-editor-inspector-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.frame-editor-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.frame-editor-field-wide {
    grid-column: span 3;
}

.frame-editor-field>span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.frame-editor-field input:not([type="color"]),
.frame-editor-field textarea,
.frame-editor-field select {
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    font: inherit;
}

.frame-editor-field textarea {
    min-height: 88px;
    resize: vertical;
}

.frame-editor-field select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, currentColor 50%),
        linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.frame-editor-line-style-picker {
    position: relative;
}

.frame-editor-line-style-picker summary {
    list-style: none;
}

.frame-editor-line-style-picker summary::-webkit-details-marker {
    display: none;
}

.frame-editor-line-style-picker-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.frame-editor-line-style-picker[open] .frame-editor-line-style-picker-summary {
    border-color: var(--accent-primary);
    background-color: var(--bg-card-hover);
}

.frame-editor-line-style-picker-preview,
.frame-editor-line-style-picker-option-preview {
    display: block;
    flex: 0 0 112px;
    width: 112px;
    min-width: 112px;
    height: 24px;
    border-radius: 999px;
    overflow: hidden;
    background-color: rgba(148, 163, 184, 0.12);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.frame-editor-line-style-picker-label,
.frame-editor-line-style-picker-option-label {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.frame-editor-line-style-picker-summary .bi {
    margin-left: auto;
    flex: 0 0 auto;
}

.frame-editor-line-style-picker-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 30;
    width: 100%;
    padding: 0.35rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-card);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.frame-editor-line-style-picker-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.frame-editor-line-style-picker-option-status {
    margin-left: auto;
}

.frame-editor-line-style-picker-option.active {
    background: rgba(102, 192, 244, 0.12);
    color: var(--accent-primary);
}

.frame-editor-line-style-picker-option:hover,
.frame-editor-line-style-picker-option:focus-visible {
    background: var(--bg-hover);
    outline: none;
}

.frame-editor-dropdown {
    position: relative;
    width: 100%;
}

.frame-editor-dropdown summary {
    list-style: none;
}

.frame-editor-dropdown summary::-webkit-details-marker {
    display: none;
}

.frame-editor-dropdown-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

.frame-editor-dropdown[open] .frame-editor-dropdown-summary {
    border-color: var(--accent-primary);
    background-color: var(--bg-card-hover);
}

.frame-editor-dropdown-value {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.frame-editor-dropdown-summary .bi {
    margin-left: auto;
    flex: 0 0 auto;
}

.frame-editor-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 30;
    width: 100%;
    padding: 0.35rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-card);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.frame-editor-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 40px;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
}

.frame-editor-checkbox-row:hover,
.frame-editor-checkbox-row:focus-within {
    background: var(--bg-hover);
}

.frame-editor-checkbox-row input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    accent-color: var(--accent-primary);
    flex: 0 0 auto;
}

.frame-editor-object-inspector-form {
    gap: 0.9rem;
}

.frame-editor-object-inspector {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-card);
}

.frame-editor-object-inspector-row {
    display: grid;
    grid-template-columns: minmax(104px, 42%) minmax(0, 1fr);
    min-height: 34px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.frame-editor-object-inspector-row:last-child {
    border-bottom: 0;
}

.frame-editor-object-inspector-row:focus-within,
.frame-editor-object-inspector-row:hover {
    background-color: color-mix(in srgb, var(--accent-primary) 8%, var(--bg-card));
}

.frame-editor-object-inspector-row.is-tall {
    min-height: 78px;
}

.frame-editor-object-inspector-name,
.frame-editor-object-inspector-value {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0.35rem 0.55rem;
}

.frame-editor-object-inspector-name {
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--text-primary);
    font-size: 0.78rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.frame-editor-object-inspector-value {
    color: var(--text-primary);
}

.frame-editor-object-inspector-input {
    width: 100%;
    min-width: 0;
    min-height: 28px;
    padding: 0.25rem 0.4rem;
    border: 1px solid transparent;
    border-radius: 4px;
    background-color: color-mix(in srgb, var(--bg-card) 82%, var(--bg-primary));
    color: var(--text-primary);
    font: inherit;
    font-size: 0.8rem;
}

.frame-editor-object-inspector-input:focus {
    border-color: var(--accent-primary);
    outline: 0;
}

.frame-editor-object-inspector-value textarea.frame-editor-object-inspector-input {
    min-height: 64px;
    resize: vertical;
}

.frame-editor-object-inspector-value input[type="color"].frame-editor-object-inspector-input {
    min-height: 28px;
    padding: 0.1rem;
    border-color: transparent;
    border-radius: 4px;
}

.frame-editor-object-inspector-checkbox {
    width: 16px;
    min-width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent-primary);
}

.frame-editor-object-inspector-number {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
}

.frame-editor-object-inspector-number>span {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.frame-editor-object-inspector-upload {
    width: 100%;
    min-height: 30px;
    padding: 0.3rem 0.45rem;
    border-radius: 4px;
    font-size: 0.78rem;
}

.frame-editor-field input[type="range"] {
    padding: 0;
    min-height: 30px;
}

.frame-editor-field input[type="color"] {
    width: 100%;
    min-height: 44px;
    padding: 0.2rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--bg-card);
    cursor: pointer;
}

.frame-editor-field small {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.frame-editor-action-button,
.frame-editor-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 600;
}

.frame-editor-action-button:hover,
.frame-editor-toggle-button:hover {
    border-color: rgba(102, 192, 244, 0.45);
    background-color: var(--bg-card-hover);
}

.frame-editor-toggle-button.active {
    border-color: var(--accent-primary);
    background-color: rgba(102, 192, 244, 0.14);
    color: var(--accent-primary);
}

.frame-editor-action-button.danger {
    color: #ff8a65;
}

.frame-editor-action-button.primary {
    border-color: color-mix(in srgb, var(--accent-primary) 60%, var(--border-color));
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent-primary) 22%, var(--bg-card)) 0%, color-mix(in srgb, var(--accent-primary) 10%, var(--bg-card)) 100%);
    color: var(--accent-primary);
}

.frame-editor-action-button.primary:hover {
    border-color: var(--accent-primary);
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent-primary) 28%, var(--bg-card)) 0%, color-mix(in srgb, var(--accent-primary) 16%, var(--bg-card)) 100%);
}

.frame-editor-upload-button {
    width: fit-content;
}

.frame-editor-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.frame-editor-text-property-group {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.frame-editor-text-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.frame-editor-text-group-heading i {
    color: var(--text-muted);
}

.frame-editor-text-color-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.frame-editor-text-color-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.85rem 0.95rem;
    background-color: var(--bg-card);
}

.frame-editor-text-color-row+.frame-editor-text-color-row {
    border-top: 1px solid var(--border-color);
}

.frame-editor-text-color-label,
.frame-editor-text-color-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.frame-editor-text-color-label {
    color: var(--text-primary);
}

.frame-editor-color-chip {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background-color: currentColor;
    flex: 0 0 auto;
}

.frame-editor-color-chip.is-transparent {
    position: relative;
    background:
        linear-gradient(135deg, transparent 44%, rgba(148, 163, 184, 0.75) 46%, rgba(148, 163, 184, 0.75) 54%, transparent 56%),
        var(--bg-card);
}

.frame-editor-text-color-actions input[type="color"] {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
}

.frame-editor-icon-button,
.frame-editor-option-button,
.frame-editor-stepper-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font: inherit;
}

.frame-editor-icon-button:hover,
.frame-editor-option-button:hover,
.frame-editor-stepper-button:hover {
    border-color: rgba(102, 192, 244, 0.45);
    background-color: var(--bg-card-hover);
}

.frame-editor-icon-button.active,
.frame-editor-option-button.active {
    border-color: var(--accent-primary);
    background-color: rgba(102, 192, 244, 0.14);
    color: var(--accent-primary);
}

.frame-editor-icon-button {
    width: 34px;
    height: 34px;
    border-radius: 999px;
}

.frame-editor-segmented-control,
.frame-editor-inline-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--bg-card);
}

.frame-editor-inline-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.frame-editor-inline-options-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.frame-editor-option-button {
    min-height: 40px;
    padding: 0.7rem 0.5rem;
    border-width: 0 1px 0 0;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.frame-editor-option-button:last-child {
    border-right-width: 0;
}

.frame-editor-text-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.frame-editor-text-grid .frame-editor-field-wide {
    grid-column: 1 / -1;
}

.frame-editor-measurement-field {
    display: grid;
    grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.frame-editor-padding-controls {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.frame-editor-padding-field {
    gap: 0.6rem;
}

.frame-editor-padding-field-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.frame-editor-padding-field-label i {
    color: var(--accent-primary);
}

.frame-editor-stepper,
.frame-editor-unit-input {
    display: flex;
    align-items: stretch;
    min-height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--bg-card);
}

.frame-editor-stepper-value {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
}

.frame-editor-stepper-button {
    width: 42px;
    border-width: 0 0 0 1px;
    font-size: 1.15rem;
}

.frame-editor-unit-input input {
    border: 0;
    border-radius: 0;
    min-height: 42px;
    padding: 0 0.85rem;
    background: transparent;
}

.frame-editor-unit-input span {
    display: inline-flex;
    align-items: center;
    padding: 0 0.85rem 0 0;
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.frame-editor-switch-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.frame-editor-switch-control {
    position: relative;
    width: 38px;
    height: 22px;
    flex: 0 0 auto;
}

.frame-editor-switch-control input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.frame-editor-switch-slider {
    position: absolute;
    inset: 0;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background-color: var(--bg-card);
    transition: all 0.2s ease;
}

.frame-editor-switch-slider::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background-color: var(--text-primary);
    transition: transform 0.2s ease;
}

.frame-editor-switch-control input:checked+.frame-editor-switch-slider {
    border-color: var(--accent-primary);
    background-color: rgba(102, 192, 244, 0.18);
}

.frame-editor-switch-control input:checked+.frame-editor-switch-slider::after {
    transform: translateX(16px);
    background-color: var(--accent-primary);
}

.frame-editor-switch-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.frame-editor-switch-copy strong {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
}

.frame-editor-switch-copy small {
    color: var(--text-muted);
}

.frame-editor-canvas-shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    height: 100%;
    flex: 1;
}

.frame-editor-json-view {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-card);
}

.frame-editor-json-shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    background-color: var(--bg-card);
}

.frame-editor-json-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-card);
}

.frame-editor-json-header-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.frame-editor-json-header-copy strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.frame-editor-json-header-copy small {
    color: var(--text-muted);
}

.frame-editor-json-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.frame-editor-json-stat {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background-color: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.frame-editor-json-scroll {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow: auto;
    padding: 1rem;
    background-color: var(--bg-card);
}

.frame-editor-json-content {
    margin: 0;
    min-height: 100%;
    height: auto;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background-color: rgba(15, 23, 42, 0.44);
    color: var(--text-primary);
    font: 0.82rem/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    white-space: normal;
    word-break: normal;
}

.frame-editor-json-content code.hljs,
.frame-editor-json-content code.language-json {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    white-space: normal;
}

.frame-editor-json-line {
    display: grid;
    grid-template-columns: minmax(2.5rem, auto) minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.frame-editor-json-line-number {
    color: var(--text-muted);
    text-align: right;
    user-select: none;
    font-variant-numeric: tabular-nums;
}

.frame-editor-json-line-code {
    min-width: 0;
    white-space: pre;
    word-break: normal;
    overflow-wrap: normal;
}

.frame-editor-canvas-scroll {
    width: 100%;
    min-height: 0;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.frame-editor-canvas-stage {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    overflow: hidden;
    isolation: isolate;
    cursor: grab;
}

.frame-editor-canvas-stage.is-drop-target {
    box-shadow:
        inset 0 0 0 1px var(--accent-primary),
        inset 0 0 0 2px rgba(102, 192, 244, 0.28);
}

.frame-editor-canvas-stage.is-selected {
    box-shadow:
        inset 0 0 0 1px var(--accent-primary),
        inset 0 0 0 2px rgba(102, 192, 244, 0.2);
}

.frame-editor-canvas-stage.is-panning {
    cursor: grabbing;
}

.frame-editor-canvas-control,
.frame-editor-canvas-zoom-field {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.frame-editor-canvas-control {
    padding: 0 0.85rem;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.frame-editor-canvas-control:hover {
    background-color: var(--bg-card-hover);
}

.frame-editor-canvas-control:focus-visible {
    outline: 2px solid rgba(102, 192, 244, 0.55);
    outline-offset: -2px;
}

.frame-editor-canvas-control-icon {
    width: 34px;
    padding: 0;
}

.frame-editor-canvas-zoom-field {
    min-width: 92px;
    padding: 0 0.75rem;
    gap: 0.2rem;
    background-color: var(--bg-card);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition:
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.frame-editor-canvas-zoom-field:focus-within {
    background-color: var(--bg-card-hover);
    box-shadow:
        0 0 0 2px rgba(102, 192, 244, 0.14),
        inset 0 0 0 1px rgba(102, 192, 244, 0.12);
}

.frame-editor-canvas-zoom-input {
    width: 3.4em;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    text-align: center;
    font: inherit;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    appearance: textfield;
}

.frame-editor-canvas-zoom-input::-webkit-outer-spin-button,
.frame-editor-canvas-zoom-input::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}

.frame-editor-canvas-zoom-unit {
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.frame-editor-zoom-context-menu,
.frame-editor-context-menu {
    position: fixed;
    z-index: 2000;
    min-width: 180px;
    padding: 0.35rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-card);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.frame-editor-context-menu {
    min-width: 220px;
}

.frame-editor-zoom-context-menu[hidden],
.frame-editor-context-menu[hidden] {
    display: none;
}

.frame-editor-zoom-context-menu-item,
.frame-editor-context-menu-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 36px;
    padding: 0.55rem 0.75rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
}

.frame-editor-context-menu-item {
    justify-content: flex-start;
}

.frame-editor-context-menu-item-status {
    margin-left: auto;
}

.frame-editor-context-menu-item.is-danger {
    color: #ff8a65;
}

.frame-editor-context-menu-item.active {
    background: rgba(102, 192, 244, 0.12);
    color: var(--accent-primary);
}

.frame-editor-context-menu-item:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.frame-editor-context-menu-separator {
    height: 1px;
    margin: 0.35rem 0.4rem;
    background: var(--border-color);
}

.frame-editor-zoom-context-menu-item:hover,
.frame-editor-zoom-context-menu-item:focus-visible,
.frame-editor-context-menu-item:hover,
.frame-editor-context-menu-item:focus-visible {
    background: var(--bg-hover);
    outline: none;
}

.frame-editor-canvas-viewport,
.frame-editor-canvas-camera,
.frame-editor-canvas-scene,
.frame-editor-canvas-grid,
.frame-editor-canvas-block-layer {
    position: absolute;
    inset: 0;
}

.frame-editor-canvas-viewport {
    overflow: visible;
    background: transparent;
}

.frame-editor-right-sidebar-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
}

.frame-editor-right-sidebar-shell {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 0;
    height: 100%;
}

.frame-editor-right-sidebar-topbar {
    padding-top: 0.15rem;
}

.frame-editor-right-sidebar-search {
    max-width: none;
}

.frame-editor-right-sidebar-search .search-input {
    min-height: 38px;
    padding-block: 0.6rem;
    border-radius: 8px;
    background-color: color-mix(in srgb, var(--bg-card) 94%, rgba(255, 255, 255, 0.03));
}

.frame-editor-right-sidebar-selection {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    padding: 0.78rem 0.9rem 0.7rem;
    border: 1px solid color-mix(in srgb, var(--border-color) 86%, rgba(255, 255, 255, 0.08));
    border-radius: 10px 10px 4px 4px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--bg-secondary) 82%, rgba(255, 255, 255, 0.05)) 0%, color-mix(in srgb, var(--bg-card) 94%, transparent) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.frame-editor-right-sidebar-selection-name {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-primary);
}

.frame-editor-right-sidebar-selection-kind {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.frame-editor-right-sidebar-tab {
    min-height: 34px;
    padding: 0.5rem 0.7rem;
    border: 1px solid color-mix(in srgb, var(--border-color) 88%, rgba(255, 255, 255, 0.06));
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-secondary) 88%, transparent) 0%, color-mix(in srgb, var(--bg-card) 96%, transparent) 100%);
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.frame-editor-right-sidebar-tab.active {
    border-color: color-mix(in srgb, var(--accent-primary) 40%, var(--border-color));
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent-primary) 8%, var(--bg-card)) 0%, color-mix(in srgb, var(--bg-card) 98%, transparent) 100%);
    color: var(--text-primary);
}

.frame-editor-right-sidebar-tab:focus-visible {
    outline: none;
    border-color: var(--accent-primary);
}

.frame-editor-right-sidebar-tab[disabled] {
    opacity: 0.58;
    cursor: not-allowed;
}

.frame-editor-right-sidebar-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.2rem;
    padding-bottom: 0.2rem;
}

.frame-editor-right-sidebar-content[hidden] {
    display: none;
}

.frame-editor-right-sidebar-panel [hidden] {
    display: none !important;
}

.frame-editor-right-sidebar-search-empty {
    min-height: 220px;
}

.frame-editor-sidebar-panel-section,
.frame-editor-sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.frame-editor-empty-state-compact {
    min-height: 220px;
    padding-inline: 0.5rem;
}

.frame-editor-right-sidebar-panel .frame-editor-empty-state-compact {
    min-height: 260px;
    border: 1px dashed color-mix(in srgb, var(--border-color) 85%, rgba(255, 255, 255, 0.08));
    border-radius: 10px;
    background: color-mix(in srgb, var(--bg-secondary) 86%, transparent);
}

.frame-editor-right-sidebar-panel .frame-editor-sidebar-summary {
    padding-inline: 0.2rem;
}

.frame-editor-right-sidebar-panel .frame-editor-sidebar-title {
    font-size: 0.88rem;
    font-weight: 700;
}

.frame-editor-right-sidebar-panel .frame-editor-sidebar-form {
    gap: 0.8rem;
}

.frame-editor-right-sidebar-panel .frame-editor-text-property-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.7rem;
    border: 1px solid color-mix(in srgb, var(--border-color) 90%, rgba(255, 255, 255, 0.04));
    border-radius: 9px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--bg-secondary) 86%, rgba(255, 255, 255, 0.04)) 0%, color-mix(in srgb, var(--bg-card) 96%, transparent) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.frame-editor-right-sidebar-panel .frame-editor-text-group-heading {
    padding-bottom: 0.45rem;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 92%, rgba(255, 255, 255, 0.04));
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.frame-editor-right-sidebar-panel .frame-editor-text-group-heading i {
    color: color-mix(in srgb, var(--text-muted) 88%, transparent);
}

.frame-editor-right-sidebar-panel .frame-editor-inspector-grid,
.frame-editor-right-sidebar-panel .frame-editor-text-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
}

.frame-editor-right-sidebar-panel .frame-editor-field,
.frame-editor-right-sidebar-panel .frame-editor-padding-field {
    display: grid;
    grid-template-columns: minmax(88px, 0.92fr) minmax(0, 1.4fr);
    gap: 0.4rem 0.7rem;
    align-items: center;
}

.frame-editor-right-sidebar-panel .frame-editor-field-wide {
    grid-column: auto;
}

.frame-editor-right-sidebar-panel .frame-editor-field>span,
.frame-editor-right-sidebar-panel .frame-editor-padding-field-label {
    font-size: 0.76rem;
    line-height: 1.3;
    color: var(--text-muted);
}

.frame-editor-right-sidebar-panel .frame-editor-field> :not(span),
.frame-editor-right-sidebar-panel .frame-editor-padding-field> :not(.frame-editor-padding-field-label) {
    min-width: 0;
}

.frame-editor-right-sidebar-panel .frame-editor-field textarea {
    min-height: 74px;
}

.frame-editor-right-sidebar-panel .frame-editor-field input:not([type="color"]),
.frame-editor-right-sidebar-panel .frame-editor-field textarea,
.frame-editor-right-sidebar-panel .frame-editor-field select,
.frame-editor-right-sidebar-panel .frame-editor-dropdown-summary,
.frame-editor-right-sidebar-panel .frame-editor-line-style-picker-summary {
    min-height: 38px;
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
    background-color: color-mix(in srgb, var(--bg-card) 94%, rgba(255, 255, 255, 0.03));
}

.frame-editor-right-sidebar-panel .frame-editor-text-color-list {
    border-radius: 8px;
}

.frame-editor-right-sidebar-panel .frame-editor-text-color-row {
    padding: 0.65rem 0.75rem;
}

.frame-editor-right-sidebar-panel .frame-editor-measurement-field {
    grid-template-columns: minmax(0, 92px) minmax(0, 1fr);
    gap: 0.6rem;
}

.frame-editor-right-sidebar-panel .frame-editor-stepper,
.frame-editor-right-sidebar-panel .frame-editor-unit-input,
.frame-editor-right-sidebar-panel .frame-editor-segmented-control,
.frame-editor-right-sidebar-panel .frame-editor-inline-options {
    min-height: 38px;
    border-radius: 8px;
    background-color: color-mix(in srgb, var(--bg-card) 95%, rgba(255, 255, 255, 0.03));
}

.frame-editor-right-sidebar-panel .frame-editor-stepper-value,
.frame-editor-right-sidebar-panel .frame-editor-unit-input input {
    padding-inline: 0.7rem;
}

.frame-editor-right-sidebar-panel .frame-editor-stepper-button {
    width: 36px;
}

.frame-editor-right-sidebar-panel .frame-editor-unit-input span {
    padding-right: 0.7rem;
    font-size: 0.77rem;
}

.frame-editor-right-sidebar-panel .frame-editor-switch-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
}

.frame-editor-right-sidebar-panel .frame-editor-switch-copy strong {
    display: block;
    font-size: 0.78rem;
}

.frame-editor-right-sidebar-panel .frame-editor-switch-copy small {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.72rem;
}

.frame-editor-right-sidebar-panel .frame-editor-inspector-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.frame-editor-right-sidebar-panel .frame-editor-action-button {
    width: 100%;
    min-height: 38px;
}

.frame-editor-json-load-dialog[hidden] {
    display: none !important;
}

.frame-editor-json-load-dialog {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.frame-editor-json-load-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 20, 0.72);
    backdrop-filter: blur(6px);
}

.frame-editor-json-load-dialog-panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(92vh, 920px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--border-color) 76%, rgba(255, 255, 255, 0.08));
    border-radius: 18px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--bg-card) 95%, rgba(255, 255, 255, 0.03)) 0%, color-mix(in srgb, var(--bg-card) 100%, transparent) 100%),
        var(--bg-card);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.frame-editor-json-load-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.frame-editor-json-load-dialog-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.frame-editor-json-load-dialog-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-primary);
}

.frame-editor-json-load-dialog-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.frame-editor-json-load-dialog-description {
    margin: 0;
    line-height: 1.5;
    color: var(--text-secondary);
}

.frame-editor-json-load-dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.frame-editor-json-load-dialog-close:hover {
    border-color: rgba(102, 192, 244, 0.45);
    background-color: var(--bg-card-hover);
    color: var(--text-primary);
}

.frame-editor-json-load-dialog-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 0;
    overflow: hidden;
}

.frame-editor-json-load-textarea-field {
    min-height: 0;
}

.frame-editor-json-load-textarea {
    min-height: 300px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Monaco, Consolas, monospace;
    line-height: 1.5;
    tab-size: 2;
}

.frame-editor-json-load-file-field input[type="file"] {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--bg-card);
    color: var(--text-secondary);
}

.frame-editor-json-load-error {
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(255, 138, 101, 0.35);
    border-radius: 10px;
    background: rgba(255, 138, 101, 0.12);
    color: #ffb7a3;
    line-height: 1.45;
}

.frame-editor-json-load-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.frame-editor-canvas-camera {
    will-change: transform;
}

.frame-editor-canvas-scene {
    transform-origin: top left;
    will-change: transform;
    --frame-editor-handle-scale: 1;
    --frame-editor-handle-corner-size: calc(18px * var(--frame-editor-handle-scale));
    --frame-editor-handle-side-thickness: calc(14px * var(--frame-editor-handle-scale));
    --frame-editor-handle-side-length: calc(42px * var(--frame-editor-handle-scale));
    --frame-editor-handle-offset: calc(-9px * var(--frame-editor-handle-scale));
    --frame-editor-handle-side-offset: calc(-7px * var(--frame-editor-handle-scale));
    --frame-editor-rotate-handle-offset: calc(-40px * var(--frame-editor-handle-scale));
    --frame-editor-rotate-stem-height: calc(14px * var(--frame-editor-handle-scale));
    --frame-editor-rotate-stem-width: calc(2px * var(--frame-editor-handle-scale));
    --frame-editor-handle-inset-top-bottom-y: calc(5px * var(--frame-editor-handle-scale));
    --frame-editor-handle-inset-top-bottom-x: calc(6px * var(--frame-editor-handle-scale));
    --frame-editor-handle-inset-left-right-y: calc(6px * var(--frame-editor-handle-scale));
    --frame-editor-handle-inset-left-right-x: calc(5px * var(--frame-editor-handle-scale));
    --frame-editor-handle-corner-inset: calc(4px * var(--frame-editor-handle-scale));
    --frame-editor-handle-outline-width: calc(1px * var(--frame-editor-handle-scale));
}

.frame-editor-canvas-block-layer {
    z-index: 2;
}

.frame-editor-canvas-block {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    user-select: none;
    touch-action: none;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.frame-editor-canvas-block-nested {
    cursor: pointer;
}

.frame-editor-canvas-block:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
}

.frame-editor-canvas-block.active {
    z-index: 3;
}

.frame-editor-canvas-block.dragging {
    cursor: grabbing;
}

.frame-editor-canvas-block.is-resizing {
    cursor: default;
}

.frame-editor-canvas-block.is-rotating {
    cursor: default;
}

.frame-editor-canvas-block.is-repositioning {
    cursor: default;
}

.frame-editor-canvas-block.is-rotating .frame-editor-block-rotate-handle {
    cursor: grabbing;
}

.frame-editor-canvas-block.dragging .frame-editor-qr-block-surface,
.frame-editor-canvas-block.dragging .frame-editor-shape-block-surface,
.frame-editor-canvas-block.dragging .frame-editor-line-block-surface,
.frame-editor-canvas-block.dragging .frame-editor-container-block-surface,
.frame-editor-canvas-block.dragging .frame-editor-image-block-surface,
.frame-editor-canvas-block.is-resizing .frame-editor-qr-block-surface,
.frame-editor-canvas-block.is-resizing .frame-editor-shape-block-surface,
.frame-editor-canvas-block.is-resizing .frame-editor-line-block-surface,
.frame-editor-canvas-block.is-resizing .frame-editor-container-block-surface,
.frame-editor-canvas-block.is-resizing .frame-editor-image-block-surface,
.frame-editor-canvas-block.is-rotating .frame-editor-qr-block-surface,
.frame-editor-canvas-block.is-rotating .frame-editor-shape-block-surface,
.frame-editor-canvas-block.is-rotating .frame-editor-line-block-surface,
.frame-editor-canvas-block.is-rotating .frame-editor-container-block-surface,
.frame-editor-canvas-block.is-rotating .frame-editor-image-block-surface {
    box-shadow: 0 0 0 2px rgba(102, 192, 244, 0.65);
}

.frame-editor-canvas-block.active .frame-editor-qr-block-surface {
    box-shadow:
        0 0 0 2px rgba(102, 192, 244, 0.65),
        0 16px 32px rgba(15, 23, 42, 0.12);
}

.frame-editor-canvas-block.active .frame-editor-shape-block-surface,
.frame-editor-canvas-block.active .frame-editor-line-block-surface,
.frame-editor-canvas-block.active .frame-editor-container-block-surface,
.frame-editor-canvas-block.active .frame-editor-image-block-surface {
    box-shadow:
        0 0 0 2px rgba(102, 192, 244, 0.65),
        0 16px 32px rgba(15, 23, 42, 0.12);
}

.frame-editor-canvas-block.active.frame-editor-canvas-block-text .frame-editor-text-block-surface {
    box-shadow: 0 0 0 2px rgba(102, 192, 244, 0.65);
    border-radius: 0;
}

.frame-editor-text-block-surface,
.frame-editor-qr-block-surface {
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.frame-editor-text-block-surface {
    display: inline-block;
    width: fit-content;
    max-width: none;
    background-color: transparent;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
}

.frame-editor-text-block-content {
    display: inline-block;
    width: auto;
    min-height: 0;
    line-height: 1;
    white-space: pre;
    box-sizing: border-box;
}

.frame-editor-text-block-content.is-selected {
    box-shadow: 0 0 0 2px rgba(102, 192, 244, 0.65);
    cursor: grab;
}

.frame-editor-text-block-drop-cap {
    float: left;
    margin: 0.08em 0.12em 0 0;
    font-size: 2.4em;
    line-height: 0.85;
}

.frame-editor-text-block-resize-handle {
    position: absolute;
    z-index: 4;
    padding: 0;
    border: 0;
    background: transparent;
    touch-action: none;
}

.frame-editor-text-block-resize-handle::before {
    content: "";
    position: absolute;
    border-radius: 999px;
    background-color: rgba(102, 192, 244, 0.95);
    box-shadow: 0 0 0 var(--frame-editor-handle-outline-width) rgba(15, 23, 42, 0.16);
}

.frame-editor-block-rotate-handle {
    position: absolute;
    top: var(--frame-editor-rotate-handle-offset);
    left: 50%;
    width: var(--frame-editor-handle-corner-size);
    height: var(--frame-editor-handle-corner-size);
    padding: 0;
    border: 0;
    border-radius: 999px;
    background-color: rgba(102, 192, 244, 0.98);
    box-shadow: 0 0 0 var(--frame-editor-handle-outline-width) rgba(15, 23, 42, 0.16);
    transform: translateX(-50%);
    cursor: grab;
    touch-action: none;
    z-index: 5;
}

.frame-editor-block-rotate-handle::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(-1 * var(--frame-editor-rotate-stem-height));
    width: var(--frame-editor-rotate-stem-width);
    height: var(--frame-editor-rotate-stem-height);
    background-color: rgba(102, 192, 244, 0.7);
    transform: translateX(-50%);
}

.frame-editor-text-block-resize-handle-top,
.frame-editor-text-block-resize-handle-bottom {
    left: 50%;
    width: var(--frame-editor-handle-side-length);
    height: var(--frame-editor-handle-side-thickness);
    transform: translateX(-50%);
    cursor: ns-resize;
}

.frame-editor-text-block-resize-handle-top {
    top: var(--frame-editor-handle-offset);
}

.frame-editor-text-block-resize-handle-bottom {
    bottom: var(--frame-editor-handle-offset);
}

.frame-editor-text-block-resize-handle-top::before,
.frame-editor-text-block-resize-handle-bottom::before {
    inset: var(--frame-editor-handle-inset-top-bottom-y) var(--frame-editor-handle-inset-top-bottom-x);
}

.frame-editor-text-block-resize-handle-left,
.frame-editor-text-block-resize-handle-right {
    top: 50%;
    width: var(--frame-editor-handle-side-thickness);
    height: var(--frame-editor-handle-side-length);
    transform: translateY(-50%);
    cursor: ew-resize;
}

.frame-editor-text-block-resize-handle-left {
    left: var(--frame-editor-handle-offset);
}

.frame-editor-text-block-resize-handle-right {
    right: var(--frame-editor-handle-offset);
}

.frame-editor-text-block-resize-handle-left::before,
.frame-editor-text-block-resize-handle-right::before {
    inset: var(--frame-editor-handle-inset-left-right-y) var(--frame-editor-handle-inset-left-right-x);
}

.frame-editor-text-block-resize-handle-top-left,
.frame-editor-text-block-resize-handle-top-right,
.frame-editor-text-block-resize-handle-bottom-right,
.frame-editor-text-block-resize-handle-bottom-left {
    width: var(--frame-editor-handle-corner-size);
    height: var(--frame-editor-handle-corner-size);
}

.frame-editor-text-block-resize-handle-top-left {
    top: var(--frame-editor-handle-offset);
    left: var(--frame-editor-handle-offset);
    cursor: nwse-resize;
}

.frame-editor-text-block-resize-handle-top-right {
    top: var(--frame-editor-handle-offset);
    right: var(--frame-editor-handle-offset);
    cursor: nesw-resize;
}

.frame-editor-text-block-resize-handle-bottom-right {
    right: var(--frame-editor-handle-offset);
    bottom: var(--frame-editor-handle-offset);
    cursor: nwse-resize;
}

.frame-editor-text-block-resize-handle-bottom-left {
    bottom: var(--frame-editor-handle-offset);
    left: var(--frame-editor-handle-offset);
    cursor: nesw-resize;
}

.frame-editor-text-block-resize-handle-top-left::before,
.frame-editor-text-block-resize-handle-top-right::before,
.frame-editor-text-block-resize-handle-bottom-right::before,
.frame-editor-text-block-resize-handle-bottom-left::before {
    inset: var(--frame-editor-handle-corner-inset);
}

.frame-editor-block-resize-handle {
    position: absolute;
    z-index: 4;
    padding: 0;
    border: 0;
    background: transparent;
    touch-action: none;
}

.frame-editor-block-resize-handle::before {
    content: "";
    position: absolute;
    border-radius: 999px;
    background-color: rgba(102, 192, 244, 0.95);
    box-shadow: 0 0 0 var(--frame-editor-handle-outline-width) rgba(15, 23, 42, 0.16);
}

.frame-editor-block-resize-handle-top,
.frame-editor-block-resize-handle-bottom {
    left: 50%;
    width: var(--frame-editor-handle-side-length);
    height: var(--frame-editor-handle-side-thickness);
    transform: translateX(-50%);
    cursor: ns-resize;
}

.frame-editor-block-resize-handle-top {
    top: var(--frame-editor-handle-offset);
}

.frame-editor-block-resize-handle-bottom {
    bottom: var(--frame-editor-handle-offset);
}

.frame-editor-block-resize-handle-top::before,
.frame-editor-block-resize-handle-bottom::before {
    inset: var(--frame-editor-handle-inset-top-bottom-y) var(--frame-editor-handle-inset-top-bottom-x);
}

.frame-editor-block-resize-handle-left,
.frame-editor-block-resize-handle-right {
    top: 50%;
    width: var(--frame-editor-handle-side-thickness);
    height: var(--frame-editor-handle-side-length);
    transform: translateY(-50%);
    cursor: ew-resize;
}

.frame-editor-block-resize-handle-left {
    left: var(--frame-editor-handle-offset);
}

.frame-editor-block-resize-handle-right {
    right: var(--frame-editor-handle-offset);
}

.frame-editor-block-resize-handle-left::before,
.frame-editor-block-resize-handle-right::before {
    inset: var(--frame-editor-handle-inset-left-right-y) var(--frame-editor-handle-inset-left-right-x);
}

.frame-editor-block-resize-handle-top-left,
.frame-editor-block-resize-handle-top-right,
.frame-editor-block-resize-handle-bottom-right,
.frame-editor-block-resize-handle-bottom-left {
    width: var(--frame-editor-handle-corner-size);
    height: var(--frame-editor-handle-corner-size);
}

.frame-editor-block-resize-handle-top-left {
    top: var(--frame-editor-handle-offset);
    left: var(--frame-editor-handle-offset);
    cursor: nwse-resize;
}

.frame-editor-block-resize-handle-top-right {
    top: var(--frame-editor-handle-offset);
    right: var(--frame-editor-handle-offset);
    cursor: nesw-resize;
}

.frame-editor-block-resize-handle-bottom-right {
    right: var(--frame-editor-handle-offset);
    bottom: var(--frame-editor-handle-offset);
    cursor: nwse-resize;
}

.frame-editor-block-resize-handle-bottom-left {
    bottom: var(--frame-editor-handle-offset);
    left: var(--frame-editor-handle-offset);
    cursor: nesw-resize;
}

.frame-editor-block-resize-handle-top-left::before,
.frame-editor-block-resize-handle-top-right::before,
.frame-editor-block-resize-handle-bottom-right::before,
.frame-editor-block-resize-handle-bottom-left::before {
    inset: var(--frame-editor-handle-corner-inset);
}

.frame-editor-qr-block-surface {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    box-sizing: border-box;
    overflow: hidden;
    isolation: isolate;
}

.frame-editor-qr-block-content {
    display: block;
    position: relative;
    border-radius: inherit;
    overflow: visible;
    transform-origin: center center;
}

.frame-editor-qr-block-content.is-selected {
    box-shadow: 0 0 0 2px rgba(102, 192, 244, 0.65);
    cursor: grab;
}

.frame-editor-qr-block-handle-layer {
    position: absolute;
    transform-origin: center center;
    pointer-events: none;
    z-index: 6;
}

.frame-editor-qr-block-handle-layer>.frame-editor-block-rotate-handle,
.frame-editor-qr-block-handle-layer>.frame-editor-block-resize-handle {
    pointer-events: auto;
}

.frame-editor-canvas-block.is-repositioning .frame-editor-qr-block-content.is-selected {
    cursor: grabbing;
}

.frame-editor-canvas-block.is-repositioning .frame-editor-text-block-content.is-selected {
    cursor: grabbing;
}

.frame-editor-qr-block-surface img,
.frame-editor-qr-block-surface svg {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
}

.frame-editor-qr-block-resize-handle {
    z-index: 1;
}

.frame-editor-qr-block-resize-handle::before {
    inset: var(--frame-editor-handle-corner-inset);
}

.frame-editor-qr-block-rotate-handle {
    z-index: 2;
}

.frame-editor-shape-block-surface,
.frame-editor-line-block-surface,
.frame-editor-container-block-surface,
.frame-editor-image-block-surface {
    display: block;
    box-sizing: border-box;
}

.frame-editor-shape-block-surface {
    position: relative;
    overflow: hidden;
}

.frame-editor-shape-block-fill {
    position: absolute;
    display: block;
    pointer-events: none;
    box-sizing: border-box;
}

.frame-editor-image-block-surface {
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    overflow: hidden;
    isolation: isolate;
}

.frame-editor-line-block-surface {
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    overflow: hidden;
    isolation: isolate;
}

.frame-editor-line-block-fill {
    position: absolute;
    display: block;
    pointer-events: none;
    box-sizing: border-box;
}

.frame-editor-container-block-surface {
    position: relative;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 18px;
    background-color: transparent;
    box-shadow: none;
    overflow: visible;
    isolation: isolate;
}

.frame-editor-container-block-surface::after {
    content: "";
    position: absolute;
    inset: calc(var(--frame-editor-container-padding-top, 0px) - 1px) calc(var(--frame-editor-container-padding-right, 0px) - 1px) calc(var(--frame-editor-container-padding-bottom, 0px) - 1px) calc(var(--frame-editor-container-padding-left, 0px) - 1px);
    border: 1px dashed rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    pointer-events: none;
}

.frame-editor-container-block-surface-columns::after {
    border-style: solid;
    opacity: 0.55;
}

.frame-editor-container-block-child-layer,
.frame-editor-container-block-column-guides {
    position: absolute;
    inset: 0;
}

.frame-editor-container-block-child-layer {
    z-index: 2;
}

.frame-editor-container-block-column-guides {
    pointer-events: none;
    z-index: 1;
}

.frame-editor-container-block-column-guide {
    position: absolute;
    width: 1px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.16), rgba(148, 163, 184, 0.32), rgba(148, 163, 184, 0.16));
}

.frame-editor-container-block-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 80%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
}

.frame-editor-image-block-content {
    display: block;
    border-radius: inherit;
    overflow: hidden;
}

.frame-editor-image-block-content img {
    display: block;
    width: 100%;
    height: 100%;
}

.frame-editor-image-block-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: inherit;
    background-color: rgba(15, 23, 42, 0.08);
    color: var(--text-muted);
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
}

.frame-editor-image-block-placeholder i {
    font-size: 1.4rem;
}

@container page-content (max-width: 1080px) {
    .frame-editor-header-bar {
        padding: 0.8rem 0.9rem;
    }
}

@container page-content (max-width: 920px) {
    .frame-editor-right-sidebar-panel {
        padding: 0.85rem;
    }
}

@container page-content (max-width: 640px) {
    .frame-editor-header-bar {
        gap: 0.75rem;
    }

    .frame-editor-right-sidebar-tabs .frame-editor-tab span {
        display: inline;
    }
}