.vibn-design-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: var(--theia-editor-background);
    color: var(--theia-foreground);
    font-family: var(--theia-ui-font-family);
    font-size: var(--theia-ui-font-size1);
}

/* ── Toolbar ─────────────────────────────────────────── */
.vibn-design-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--theia-titleBar-activeBackground);
    border-bottom: 1px solid var(--theia-widget-border);
    flex-shrink: 0;
}

.vibn-design-toolbar__title {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--theia-foreground);
    opacity: 0.7;
    white-space: nowrap;
}

.vibn-design-url-bar {
    flex: 1;
    padding: 3px 8px;
    background: var(--theia-input-background);
    color: var(--theia-input-foreground);
    border: 1px solid var(--theia-input-border);
    border-radius: 3px;
    font-size: 12px;
    font-family: var(--theia-ui-font-family);
    outline: none;
    min-width: 0;
}

.vibn-design-url-bar:focus {
    border-color: var(--theia-focusBorder);
}

.vibn-design-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: transparent;
    border: none;
    border-radius: 3px;
    color: var(--theia-foreground);
    cursor: pointer;
    flex-shrink: 0;
}

.vibn-design-btn:hover {
    background: var(--theia-toolbar-hoverBackground);
}

/* ── Body ─────────────────────────────────────────────── */
.vibn-design-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ── Screen list ─────────────────────────────────────── */
.vibn-design-screens {
    width: 180px;
    min-width: 140px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--theia-widget-border);
    overflow-y: auto;
    background: var(--theia-sideBar-background);
}

.vibn-design-screens__header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--theia-sideBarTitle-foreground);
    border-bottom: 1px solid var(--theia-widget-border);
    flex-shrink: 0;
}

.vibn-design-screens__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 20px 12px;
    color: var(--theia-descriptionForeground);
    font-size: 12px;
}

.vibn-design-screens__empty .codicon {
    font-size: 24px;
    opacity: 0.5;
    margin-bottom: 4px;
}

.vibn-design-screens__empty p {
    margin: 0;
    line-height: 1.4;
}

.vibn-design-screens__empty code {
    background: var(--theia-textCodeBlock-background);
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 11px;
}

.vibn-design-route {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    cursor: pointer;
    user-select: none;
    border-radius: 0;
    overflow: hidden;
    white-space: nowrap;
}

.vibn-design-route:hover {
    background: var(--theia-list-hoverBackground);
}

.vibn-design-route--active {
    background: var(--theia-list-activeSelectionBackground);
    color: var(--theia-list-activeSelectionForeground);
}

.vibn-design-route__label {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Spinner ─────────────────────────────────────────── */
.vibn-design-spinner {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 2px solid var(--theia-foreground);
    border-top-color: transparent;
    border-radius: 50%;
    animation: vibn-spin 0.6s linear infinite;
    margin-left: auto;
}

@keyframes vibn-spin {
    to { transform: rotate(360deg); }
}

/* ── Preview pane ────────────────────────────────────── */
.vibn-design-preview {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.vibn-design-iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

.vibn-design-preview__placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--theia-descriptionForeground);
    font-size: 13px;
    text-align: center;
    padding: 20px;
}

.vibn-design-preview__placeholder .codicon {
    font-size: 40px;
    opacity: 0.3;
}

.vibn-design-preview__placeholder p {
    margin: 0;
}
