:root {
    --bg-dark: #050508;
    --bg-grid: #0A0A12;
    --surface: #12121A;
    --surface-hover: #1A1A24;
    --border: rgba(255, 255, 255, 0.08);

    --primary-orange: #FF5500;
    --primary-gradient: linear-gradient(135deg, #FF5500 0%, #FF2200 100%);
    --accent-purple: #9D00FF;
    --accent-blue: #00D4FF;

    --text-main: #FFFFFF;
    --text-muted: #9494A8;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-orange), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    height: 72px;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 48px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--surface);
    border: 1px solid var(--primary-orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(255, 85, 0, 0.3);
}

.play-shape {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid var(--primary-orange);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.powered-by {
    font-size: 11px;
    color: var(--accent-blue);
    background: rgba(0, 212, 255, 0.1);
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.user-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--surface-hover);
}

/* Dashboard Container */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 48px;
}

.hero-content {
    max-width: 500px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 85, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 85, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--text-muted);
}

.hero-visual {
    flex: 1;
    perspective: 1000px;
}

.tilted-mockup {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    height: 360px;
    transform: rotateY(-10deg) rotateX(5deg);
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.mockup-header {
    height: 40px;
    background: var(--surface-hover);
    border-radius: 8px;
    margin-bottom: 20px;
    width: 100%;
}

.mockup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mockup-item {
    background: var(--bg-dark);
    height: 120px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 16px;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-orange);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--surface-hover);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 15px;
}

/* Recent Sessions */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.view-all {
    color: var(--primary-orange);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.sessions-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.sessions-table th {
    text-align: left;
    padding: 16px 24px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.sessions-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.sessions-table tr:last-child td {
    border-bottom: none;
}

.video-cell {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 500;
}

.video-thumb {
    width: 64px;
    height: 36px;
    background: var(--surface-hover);
    border-radius: 4px;
}

.status-chip {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-chip.completed {
    background: rgba(0, 255, 148, 0.1);
    color: var(--success-green, #00FF94);
    border: 1px solid rgba(0, 255, 148, 0.2);
}

.status-chip.testing {
    background: rgba(157, 0, 255, 0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(157, 0, 255, 0.2);
}


/* =========================================
   Create Flow (Wizard) Layout
   ========================================= */

body.create-mode {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-dark);
}

/* Sidebar Stepper */
.stepper-sidebar {
    width: 80px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    z-index: 20;
}

.logo-small {
    margin-bottom: 40px;
}

.logo-icon-sm {
    width: 32px;
    height: 32px;
    background: var(--surface-hover);
    border: 1px solid var(--primary-orange);
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(255, 85, 0, 0.3);
}

.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    align-items: center;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
}

.step-item:hover,
.step-item.active {
    opacity: 1;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-dark);
    transition: all 0.2s;
}

.step-item.active .step-num {
    border-color: var(--primary-orange);
    background: rgba(255, 85, 0, 0.1);
    color: var(--primary-orange);
    box-shadow: 0 0 12px rgba(255, 85, 0, 0.2);
}

.step-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stepper-footer {
    margin-top: auto;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    border: 1px solid var(--border);
}

/* Workspace Area */
.workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100vh;
}

/* Top Bar */
.top-bar {
    height: 64px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(10px);
}

.video-context {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-icon-placeholder {
    width: 32px;
    height: 20px;
    background: #ff0000;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

.video-title-display {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
}

.btn-ghost:hover {
    color: var(--text-main);
}

.powered-pill {
    font-size: 10px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* Main Canvas */
.canvas {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    padding-bottom: 100px;
    /* Space for bottom bar */
    margin-right: 300px;
    /* Space for right panel */
}

.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    margin-bottom: 40px;
    text-align: center;
}

.step-header h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.step-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Step 1: Face Upload */
.upload-area {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.upload-box {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 60px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s;
}

.upload-box:hover {
    border-color: var(--primary-orange);
    background: rgba(255, 85, 0, 0.02);
}

.upload-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.upload-box ul {
    list-style: none;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.face-gallery {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.face-card {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.face-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-badge {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    white-space: nowrap;
}

.status-badge.good {
    color: var(--success-green, #00FF94);
}

.status-badge.warning {
    color: #FFCC00;
}

.face-card.add-new {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-hover);
    cursor: pointer;
    color: var(--text-muted);
}

.face-card.add-new:hover {
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

/* Step 2: Video */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--surface);
    padding: 4px;
    border-radius: 8px;
    width: fit-content;
}

.tab {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.tab.active {
    background: var(--surface-hover);
    color: var(--text-main);
}

.input-card {
    background: var(--surface);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.input-group {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.input-group input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 8px;
    color: white;
}

.video-preview-card {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.video-thumb-large {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.video-meta {
    padding: 20px;
}

.video-meta h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.video-meta .desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tags {
    display: flex;
    gap: 8px;
}

.tag {
    font-size: 11px;
    background: var(--surface-hover);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-muted);
}

/* Step 3: Style */
.style-grid-layout {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.niche-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 1200px) {
    .niche-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .niche-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.niche-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.niche-card i {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
}

.niche-card:hover,
.niche-card.active {
    border-color: var(--primary-orange);
    color: var(--text-main);
    background: rgba(255, 85, 0, 0.05);
}

/* v2.0: Updated niche card with icon + span layout */
.niche-card span {
    display: block;
    margin-top: 4px;
}

/* v2.0: Expression Selector */
.expression-selector {
    margin-top: 32px;
}

.expression-selector h3 {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.expression-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.expression-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 20px 16px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.expression-card:hover,
.expression-card.active {
    border-color: var(--accent-purple);
    background: rgba(157, 0, 255, 0.05);
}

.expression-card.active {
    box-shadow: 0 0 20px rgba(157, 0, 255, 0.2);
}

.expression-emoji {
    font-size: 36px;
    margin-bottom: 8px;
}

.expression-card span {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

.expression-card.active span {
    color: var(--text-main);
}

/* v2.0: Thumbnail Text Input */
.thumbnail-text-card {
    margin-bottom: 24px;
}

.thumbnail-text-input {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: all 0.2s;
}

.thumbnail-text-input:focus {
    border-color: var(--primary-orange);
    outline: none;
    box-shadow: 0 0 20px rgba(255, 85, 0, 0.15);
}

.thumbnail-text-input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
    font-size: 16px;
    text-transform: none;
    font-weight: 400;
}

.input-card label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.input-card label i {
    color: var(--primary-orange);
}

.input-hint {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 8px;
}

/* v2.0: Brief Form Layout */
.brief-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}

.brief-form .input-card {
    margin-bottom: 24px;
}

.brief-form .input-card:last-of-type {
    margin-bottom: 0;
}

/* v2.0: Chip with data-append */
.chip[data-append] {
    background: var(--surface-hover);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.chip[data-append]:hover {
    border-color: var(--primary-orange);
    color: var(--text-main);
}

/* v2.0: Panel tip text */
.tip-text {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 16px;
}

.style-carousel {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.style-card {
    min-width: 240px;
    cursor: pointer;
}

.style-preview {
    height: 135px;
    background: #333;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.style-card.active .style-preview {
    border-color: var(--primary-orange);
    box-shadow: 0 0 20px rgba(255, 85, 0, 0.2);
}

/* Step 4: Brief */
.brief-container {
    max-width: 700px;
    margin: 0 auto;
}

.chat-interface {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.chat-bubble.system {
    background: var(--surface-hover);
    padding: 16px;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.brief-input {
    width: 100%;
    height: 120px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    color: white;
    font-family: inherit;
    resize: none;
    margin-bottom: 24px;
}

.brief-input:focus {
    border-color: var(--primary-orange);
    outline: none;
}

.quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.chip-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-right: 8px;
}

.chip {
    background: var(--surface-hover);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    cursor: pointer;
}

.chip:hover {
    border-color: var(--text-muted);
    color: var(--text-main);
}

/* Step 5: Thumbnails */
.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.thumb-card {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.thumb-card:hover {
    transform: translateY(-4px);
}

.thumb-card.active {
    border-color: var(--primary-orange);
    box-shadow: 0 0 20px rgba(255, 85, 0, 0.15);
}

.thumb-img-placeholder {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 24px;
    font-weight: 700;
}

.thumb-actions {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

/* Step 6: Export */
.export-options {
    display: flex;
    gap: 24px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.export-card {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.2s;
}

.export-card.highlight {
    border-color: rgba(255, 85, 0, 0.3);
    background: linear-gradient(180deg, rgba(255, 85, 0, 0.05) 0%, var(--surface) 100%);
}

.export-icon {
    font-size: 40px;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.export-card.highlight .export-icon {
    color: var(--primary-orange);
}

.export-card h3 {
    margin-bottom: 12px;
}

.export-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 14px;
}

/* Export Variant Selector */
.export-variant-selector {
    max-width: 900px;
    margin: 0 auto 32px;
}

.export-variant-selector h3 {
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-muted);
}

.export-thumbnails-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.export-thumb-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    width: 200px;
}

.export-thumb-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.export-thumb-card.selected {
    border-color: var(--primary-orange);
    box-shadow: 0 0 20px rgba(255, 85, 0, 0.2);
}

.export-thumb-card img {
    width: 100%;
    height: 112px;
    object-fit: cover;
    border-radius: 8px;
}

.export-thumb-label {
    margin-top: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

/* Right Panel */
.context-panel {
    width: 300px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    position: absolute;
    right: 0;
    top: 64px;
    bottom: 0;
    padding: 24px;
    overflow-y: auto;
}

.panel-content {
    animation: fadeIn 0.3s ease;
}

.panel-content.hidden {
    display: none;
}

.panel-content h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.tips-list {
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.example-face-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ex-face {
    height: 100px;
    background: var(--surface-hover);
    border-radius: 8px;
}

.style-summary-card,
.brief-summary {
    background: var(--bg-dark);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.summary-row,
.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
}

.summary-row:last-child,
.summary-item:last-child {
    margin-bottom: 0;
}

.summary-row span,
.summary-item label {
    color: var(--text-muted);
}

.variant-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.btn-xs {
    background: var(--surface-hover);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
}

.btn-xs:hover {
    border-color: var(--primary-orange);
    color: var(--text-main);
}

/* Bottom Bar */
.bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 300px;
    /* Stop before right panel */
    height: 80px;
    background: rgba(5, 5, 8, 0.95);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10;
}
/* Library & Presets Specifics */
.filters {
    display: flex;
    gap: 12px;
}

.search-input {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    width: 240px;
}

.filter-select {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
}

.style-info {
    margin-top: 8px;
}
