/* Info Modal Styles */
.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.info-modal.show {
    display: flex;
}

.info-modal-content {
    background: #000;
    border: 1px solid #fff;
    border-radius: 0;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.info-modal-header h2 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: "Analo Grotesk", "Inconsolata", sans-serif;
}

.info-modal-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.info-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.info-modal-close ion-icon {
    font-size: 20px;
}

.info-modal-body {
    padding: 20px;
    overflow-y: auto;
    color: #fff;
    font-family: "Inconsolata", monospace;
    line-height: 1.6;
}

.info-modal-body h1,
.info-modal-body h2,
.info-modal-body h3 {
    color: #fff;
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: "Analo Grotesk", "Inconsolata", sans-serif;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.info-modal-body h1 {
    font-size: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.info-modal-body h2 {
    font-size: 18px;
}

.info-modal-body h3 {
    font-size: 16px;
}

.info-modal-body p {
    margin-bottom: 15px;
}

.info-modal-body ul,
.info-modal-body ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.info-modal-body li {
    margin-bottom: 5px;
}

.info-modal-body strong {
    color: #51cf66;
    font-weight: 600;
}

.info-modal-body em {
    color: #51cf66;
    font-style: italic;
}

.info-modal-body a {
    color: #51cf66;
    text-decoration: none;
}

.info-modal-body a:hover {
    text-decoration: underline;
}

.info-modal-body hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

/* Save Dialog Styles */
.save-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.save-dialog.show {
    display: flex;
}

.save-dialog-content {
    background: #000;
    border: 1px solid #fff;
    border-radius: 0;
    width: 280px;
    height: 224px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.save-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.save-dialog-header h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: "Analo Grotesk", "Inconsolata", sans-serif;
}

.save-dialog-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.save-dialog-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.save-dialog-close ion-icon {
    font-size: 20px;
}

.save-dialog-body {
    padding: 20px;
    color: #fff;
    font-family: "Inconsolata", monospace;
    flex: 1;
    overflow-y: auto;
}

.scene-name-input {
    display: flex;
    align-items: center;
    background: #111;
    border: 1px solid #333;
    padding: 0;
    margin-bottom: 20px;
}

.scene-name-input input {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-family: "Inconsolata", monospace;
    font-size: 14px;
    outline: none;
}

.scene-name-input input:focus {
    background: #1a1a1a;
}

.scene-name-input .file-extension {
    padding: 10px 15px;
    color: #51cf66;
    font-size: 14px;
    font-weight: 600;
    font-family: "Inconsolata", monospace;
    background: #222;
    border-left: 1px solid #333;
}

.save-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border: 1px solid #fff;
    background: #000;
    color: #fff;
    font-family: "Inconsolata", monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}

.btn-primary {
    background: #51cf66;
    border-color: #51cf66;
}

.btn-primary:hover:not(:disabled) {
    background: #45b85a;
    border-color: #45b85a;
}

.btn-primary:disabled {
    background: #333;
    border-color: #555;
    color: #888;
    cursor: not-allowed;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin: 10px 20px;
    padding: 8px 12px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    border-radius: 3px;
    font-family: "Inconsolata", monospace;
    text-align: center;
}

/* File Picker Dialog Styles */
.file-picker-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.file-picker-dialog.show {
    display: flex;
}

.file-picker-dialog-content {
    background: #000;
    border: 1px solid #fff;
    border-radius: 0;
    width: 320px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Auto-grow when error message is present */
.file-picker-dialog-content:has(.error-message) {
    height: auto;
}

.file-picker-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.file-picker-dialog-header h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: "Analo Grotesk", "Inconsolata", sans-serif;
}

.file-picker-dialog-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.file-picker-dialog-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.file-picker-dialog-close ion-icon {
    font-size: 20px;
}

.file-picker-dialog-body {
    padding: 20px;
    color: #fff;
    font-family: "Inconsolata", monospace;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.file-picker-dialog-body p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #ccc;
}

.file-selection-area {
    display: flex;
    justify-content: center;
    align-items: center;
}

.file-selection-area .btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
}

.file-selection-area .btn-primary ion-icon {
    font-size: 16px;
}

.file-picker-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.recent-projects-list {
    width: 100%;
    margin-bottom: 20px;
}

.recent-projects-empty {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin: 10px 0;
    text-align: center;
}

.recent-projects-items {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.recent-project-item {
    padding: 8px 12px;
    margin: 4px 0;
    cursor: pointer;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s;
}

.recent-project-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.recent-project-item-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.recent-project-item-path {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-selection-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.file-selection-area .btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
}

.file-selection-area .btn-secondary ion-icon {
    font-size: 16px;
}

.file-picker-dialog-content {
    width: 340px;
}

/* Create Set Dialog */
.create-set-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.create-set-dialog.show {
    display: flex;
}

.create-set-dialog-content {
    background: #000;
    border: 1px solid #fff;
    border-radius: 0;
    width: 90%;
    max-width: 520px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.create-set-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.create-set-dialog-header h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: "Analo Grotesk", "Inconsolata", sans-serif;
}

.create-set-dialog-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.create-set-dialog-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.create-set-dialog-close ion-icon {
    font-size: 20px;
}

.create-set-dialog-body {
    padding: 20px;
    color: #fff;
    font-family: "Inconsolata", monospace;
    flex: 1;
    overflow-y: auto;
    text-align: left;
}

.create-set-hint {
    font-size: 12px;
    color: #aaa;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.set-scene-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.set-scene-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: grab;
    transition: border-color 0.2s, background 0.2s;
}

.set-scene-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.set-scene-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.set-scene-item.drag-over {
    border-color: #51cf66;
}

.set-scene-drag-handle {
    color: #666;
    font-size: 14px;
    line-height: 1;
    padding-top: 2px;
    user-select: none;
}

.set-scene-content {
    flex: 1;
    min-width: 0;
}

.set-scene-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.set-scene-position {
    color: #51cf66;
    font-weight: 600;
    font-size: 13px;
}

.set-scene-title {
    font-weight: 500;
    font-size: 14px;
}

.set-scene-filename {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.set-scene-summary {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.set-scene-summary li {
    padding-left: 0;
}

.set-scene-summary-empty {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.create-set-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Luminode Picker Dialog */
.luminode-picker-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.luminode-picker-dialog.show {
    display: flex;
}

.luminode-picker-dialog-content {
    background: #000;
    border: 1px solid #fff;
    border-radius: 0;
    width: 90%;
    max-width: 780px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.luminode-picker-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.luminode-picker-dialog-header h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: "Analo Grotesk", "Inconsolata", sans-serif;
}

.luminode-picker-dialog-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.luminode-picker-dialog-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.luminode-picker-dialog-close ion-icon {
    font-size: 20px;
}

.luminode-picker-dialog-body {
    padding: 16px 20px 24px;
    color: #fff;
    font-family: "Inconsolata", monospace;
    flex: 1;
    overflow-y: auto;
}

.luminode-picker-category {
    margin-bottom: 20px;
}

.luminode-picker-category:last-child {
    margin-bottom: 0;
}

.luminode-picker-category-title {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 12px 0;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    color: #51cf66;
    font-family: "Analo Grotesk", "Inconsolata", sans-serif;
    cursor: pointer;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.luminode-picker-category-title:hover {
    color: #6fd97f;
}

.luminode-picker-category-chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.luminode-picker-category.collapsed .luminode-picker-category-chevron {
    transform: rotate(-90deg);
}

.luminode-picker-category.collapsed .luminode-picker-category-title {
    margin-bottom: 0;
    opacity: 0.85;
}

.luminode-picker-category.collapsed .luminode-picker-grid {
    display: none;
}

.luminode-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.luminode-picker-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0;
    margin: 0;
    background: #000;
    border: 1px solid #fff;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    font-family: "Inconsolata", monospace;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.luminode-picker-card:hover {
    border-color: #51cf66;
    background: rgba(81, 207, 102, 0.08);
}

.luminode-picker-card:hover .luminode-picker-card-label {
    color: #51cf66;
}

.luminode-picker-card.selected {
    border-color: #51cf66;
    background: rgba(81, 207, 102, 0.12);
}

.luminode-picker-card.selected .luminode-picker-card-label {
    color: #51cf66;
}

.luminode-picker-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #000;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.luminode-picker-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.luminode-picker-card-label {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.luminode-picker-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.luminode-picker-dialog-footer-left {
    margin-right: auto;
}

/* Confirm / Alert Dialog */
.glow-confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.glow-confirm-dialog.show {
    display: flex;
}

.glow-confirm-dialog-content {
    background: #000;
    border: 1px solid #fff;
    border-radius: 0;
    width: 90%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.glow-confirm-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.glow-confirm-dialog-header h3 {
    color: #fff;
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: "Analo Grotesk", "Inconsolata", sans-serif;
}

.glow-confirm-dialog-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
}

.glow-confirm-dialog-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.glow-confirm-dialog-close ion-icon {
    font-size: 20px;
}

.glow-confirm-dialog-body {
    padding: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-family: "Inconsolata", monospace;
    font-size: 14px;
    line-height: 1.5;
}

.glow-confirm-dialog-body p {
    margin: 0;
    white-space: pre-wrap;
}

.glow-confirm-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-danger {
    padding: 10px 20px;
    border: 1px solid #ff6b6b;
    background: #ff6b6b;
    color: #000;
    font-family: "Inconsolata", monospace;
    font-size: 14px;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #ff5252;
    border-color: #ff5252;
}

.luminode-picker-dialog-footer-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.luminode-picker-dialog-footer-left ion-icon {
    font-size: 16px;
}

/* Luminode Lab */
.luminode-center-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2100;
}

.luminode-center-dialog.show {
    display: flex;
}

.luminode-center-dialog-content {
    background: #000;
    border: 1px solid #fff;
    border-radius: 0;
    width: 96%;
    max-width: 1280px;
    height: 90vh;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.15s ease, height 0.15s ease, max-width 0.15s ease, max-height 0.15s ease;
}

.luminode-center-dialog-content.is-maximized {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border: none;
}

.luminode-center-dialog-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.luminode-center-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.luminode-center-dialog-header h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: "Analo Grotesk", "Inconsolata", sans-serif;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.luminode-center-dialog-header h3 ion-icon {
    font-size: 20px;
    color: #51cf66;
}

/* CodeMirror hints (Lab) */
.CodeMirror-hints {
    background: #0a0a0a !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 0 !important;
    font-family: "Inconsolata", monospace !important;
    font-size: 12px !important;
    z-index: 3200 !important;
    box-shadow: none !important;
    max-height: 220px !important;
}

.CodeMirror-hint {
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 4px 10px !important;
}

li.CodeMirror-hint-active {
    background: rgba(81, 207, 102, 0.2) !important;
    color: #51cf66 !important;
}

.luminode-center-header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.luminode-center-header-meta select,
.luminode-center-name {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-family: "Inconsolata", monospace;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 0;
    outline: none;
}

.luminode-center-header-meta select {
    max-width: 220px;
    min-width: 140px;
}

.luminode-center-name {
    flex: 1;
    min-width: 120px;
    color: hsla(131, 59%, 59%, 1);
}

.luminode-center-name:focus,
.luminode-center-header-meta select:focus {
    border-color: #fff;
}

.luminode-center-dialog-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
}

.luminode-center-dialog-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.luminode-center-dialog-close ion-icon {
    font-size: 20px;
}

.luminode-center-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.luminode-center-toolbar .btn-secondary,
.luminode-center-toolbar .btn-primary {
    padding: 7px 14px;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.luminode-center-body {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 6px minmax(280px, var(--luminode-preview-width, 420px));
    gap: 0;
    flex: 1;
    min-height: 0;
}

.luminode-center-resize-handle {
    cursor: col-resize;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
    transition: background 0.15s ease;
}

.luminode-center-resize-handle:hover,
.luminode-center-resize-handle.is-dragging {
    background: #51cf66;
}

.luminode-center-resize-handle::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -4px;
    right: -4px;
}

.luminode-center-editor-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.luminode-center-editor-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.luminode-center-editor-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.45);
    font-family: "Inconsolata", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 16px 8px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.luminode-center-editor-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.luminode-center-editor-tab.is-active {
    color: #51cf66;
    border-bottom-color: #51cf66;
}

.luminode-center-editor-panel {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.luminode-center-editor-panel.is-active {
    display: flex;
}

.luminode-center-editor-panel[data-editor-panel="code"] {
    position: relative;
}

.luminode-center-code-toolbar {
    position: absolute;
    top: 6px;
    right: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(81, 207, 102, 0.35);
    padding: 2px;
}

.luminode-center-font-btn {
    width: 26px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: #51cf66;
    font-family: "Inconsolata", monospace;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.luminode-center-font-btn:hover {
    background: rgba(81, 207, 102, 0.15);
    color: #7dff9a;
}

.luminode-center-font-size {
    min-width: 22px;
    text-align: center;
    font-family: "Inconsolata", monospace;
    font-size: 11px;
    color: rgba(81, 207, 102, 0.7);
    user-select: none;
}

.luminode-center-editor-host {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.luminode-center-editor-host .CodeMirror,
.luminode-center-settings-json .CodeMirror {
    height: 100%;
    border: none;
}

.luminode-center-fallback-editor {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: #050505;
    color: #e8e8e8;
    border: none;
    padding: 12px;
    font-family: "Inconsolata", monospace;
    font-size: 13px;
    resize: none;
    outline: none;
}

.luminode-center-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
    flex: 1;
    min-height: 0;
}

.luminode-center-settings-json-wrap,
.luminode-center-settings-live-wrap {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}

.luminode-center-settings-live-wrap {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.luminode-center-settings-hint {
    padding: 8px 12px;
    font-family: "Inconsolata", monospace;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.luminode-center-settings-hint code {
    color: #51cf66;
}

.luminode-center-settings-json {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.luminode-center-settings-tweak {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 8px 10px 16px;
}

.luminode-center-settings-empty {
    margin: 8px;
    font-family: "Inconsolata", monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.luminode-center-utils {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 16px 20px 28px;
    font-family: "Inconsolata", monospace;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.45;
}

.luminode-center-utils-section {
    margin-bottom: 22px;
}

.luminode-center-utils-section h4 {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #51cf66;
    font-weight: 400;
}

.luminode-center-utils-section p,
.luminode-center-utils-section ul {
    margin: 0 0 8px;
}

.luminode-center-utils-section ul {
    padding-left: 18px;
}

.luminode-center-utils-section code {
    color: hsla(131, 59%, 70%, 1);
}

.luminode-center-utils-section pre {
    margin: 8px 0;
    padding: 10px 12px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.luminode-center-utils-section dl {
    margin: 0;
}

.luminode-center-utils-section dt {
    margin-top: 8px;
    color: #fff;
}

.luminode-center-utils-section dd {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.55);
}

.luminode-center-preview-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #000;
    border-left: none;
}

.luminode-center-preview-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.luminode-center-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.45);
    font-family: "Inconsolata", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 16px 10px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.luminode-center-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.luminode-center-tab.is-active {
    color: #51cf66;
    border-bottom-color: #51cf66;
}

.luminode-center-note-source {
    margin-left: auto;
    margin-right: 14px;
    font-family: "Inconsolata", monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.luminode-center-note-source.is-midi {
    color: #51cf66;
}

.luminode-center-tab-panel {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.luminode-center-tab-panel.is-active {
    display: flex;
}

.luminode-center-preview-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 0;
    background:
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.04) 0%, transparent 65%),
        #000;
}

.luminode-center-preview-stage canvas {
    width: min(100%, 420px);
    height: auto;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: #000;
    max-height: 100%;
}

.luminode-center-generator-host {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 12px 14px 20px;
}

.luminode-center-generator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    font-family: "Inconsolata", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.luminode-center-generator-add {
    padding: 5px 12px !important;
    font-size: 11px !important;
}

.luminode-center-generator-empty {
    margin: 0 0 12px;
    font-family: "Inconsolata", monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
}

.luminode-center-error {
    margin: 0;
    padding: 10px 16px;
    font-family: "Inconsolata", monospace;
    font-size: 12px;
    color: #ff6b6b;
    border-top: 1px solid rgba(255, 107, 107, 0.35);
    background: rgba(255, 107, 107, 0.08);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 96px;
    overflow: auto;
}

.luminode-center-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.luminode-center-status {
    font-family: "Inconsolata", monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    min-height: 1em;
}

.luminode-picker-card-name {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 6px 10px 8px;
    min-width: 0;
}

.luminode-picker-card-name .luminode-picker-card-label {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.luminode-picker-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.luminode-picker-card-edit,
.luminode-picker-card-delete {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.luminode-picker-card:hover .luminode-picker-card-edit,
.luminode-picker-card:hover .luminode-picker-card-delete,
.luminode-picker-card-edit:focus,
.luminode-picker-card-delete:focus {
    opacity: 1;
}

.luminode-picker-card-edit:hover {
    color: #51cf66;
}

.luminode-picker-card-delete:hover {
    color: #ff6b6b;
}

.luminode-picker-card-edit ion-icon,
.luminode-picker-card-delete ion-icon {
    font-size: 14px;
    pointer-events: none;
}

@media (max-width: 860px) {
    .luminode-center-body {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 6px minmax(220px, 40%);
    }

    .luminode-center-resize-handle {
        cursor: row-resize;
    }

    .luminode-center-settings-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 200px;
    }

    .luminode-center-settings-live-wrap {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .luminode-center-dialog-content {
        height: 96vh;
    }

    .luminode-center-header-meta {
        display: none;
    }
}
