/* ═══════════════════════════════════════════════════════════════
   S.K STUDIO — Organic Liquid Glass Design System
   Floating bars · Neumorphic depth · Reactive glass refraction
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* ── Palette ── */
    --bg-void: #050509;
    --bg-primary: #08080f;
    --bg-secondary: #0d0d18;
    --bg-tertiary: #121220;
    --bg-elevated: #16162a;
    --text-primary: #e8ecf1;
    --text-secondary: #7c8097;
    --text-muted: #4a4d5e;

    --accent: #6c63ff;
    --accent-light: #8b83ff;
    --accent-hot: #a78bfa;
    --accent-glow: rgba(108, 99, 255, 0.35);
    --accent-subtle: rgba(108, 99, 255, 0.08);
    --cyan: #00e5ff;
    --cyan-glow: rgba(0, 229, 255, 0.25);
    --emerald: #34d399;
    --emerald-glow: rgba(52, 211, 153, 0.25);
    --amber: #fbbf24;
    --error: #f87171;
    --error-glow: rgba(248, 113, 113, 0.35);
    --success-glow: rgba(52, 211, 153, 0.35);

    /* ── Borders ── */
    --border-primary: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 255, 255, 0.1);
    --border-active: rgba(108, 99, 255, 0.3);
    --border-color: rgba(255, 255, 255, 0.05);

    /* ── Glass ── */
    --glass-bg: rgba(10, 10, 20, 0.5);
    --glass-bg-dense: rgba(12, 12, 24, 0.72);
    --glass-bg-light: rgba(255, 255, 255, 0.03);
    --glass-blur: 40px;
    --glass-saturate: 1.6;

    /* ── Layout ── */
    --activity-bar-width: 64px;
    --header-height: 52px;
    --gap: 14px;
    --mobile-nav-height: 66px;

    /* ── Typography ── */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-main: var(--font-body);

    /* ── Radius ── */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    /* ── Shadows (Neumorphic) ── */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.28);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.35);
    --shadow-float: 0 12px 56px rgba(0,0,0,0.6), 0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
    --shadow-inset: inset 0 2px 6px rgba(0,0,0,0.4), inset 0 -1px 0 rgba(255,255,255,0.03);
    --shadow-glow-accent: 0 0 24px rgba(108,99,255,0.15), 0 0 56px rgba(108,99,255,0.06);

    /* ── Transitions ── */
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-fast: all 0.2s var(--ease-expo);
    --transition-smooth: all 0.35s var(--ease-expo);
    --transition-slow: all 0.5s var(--ease-expo);

    /* ── Legacy compat (referenced in JS inline styles) ── */
    --accent-blue: var(--accent);
    --accent-purple: var(--accent-hot);
    --accent-purple-glow: rgba(167, 139, 250, 0.3);
}


/* ══════════════════════════════════════════
   1. GLOBAL & BASE
   ══════════════════════════════════════════ */

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-void);
    height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ── Ambient Background ── */

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    will-change: transform;
    animation: ambientDrift 22s ease-in-out infinite;
}

.ambient-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108,99,255,0.22), transparent 70%);
    top: -8%;
    left: -5%;
    animation-delay: 0s;
}

.ambient-orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,229,255,0.12), transparent 70%);
    bottom: -10%;
    right: -5%;
    animation-delay: -8s;
}

.ambient-orb--3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167,139,250,0.10), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -15s;
    animation-name: ambientDrift3;
}

@keyframes ambientDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

@keyframes ambientDrift3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    25% { transform: translate(calc(-50% + 30px), calc(-50% - 20px)) scale(1.05); }
    50% { transform: translate(calc(-50% - 20px), calc(-50% + 30px)) scale(0.95); }
    75% { transform: translate(calc(-50% + 20px), calc(-50% + 20px)) scale(1.02); }
}


/* ── App Container ── */

.app-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}


/* ══════════════════════════════════════════
   2. ACTIVITY BAR (Floating Liquid Glass)
   ══════════════════════════════════════════ */

#activity-bar {
    display: none; /* Shown on desktop via media query */
}

.activity-bar-logo {
    margin-bottom: 10px;
}

.ab-monogram {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), var(--accent-hot));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: -0.03em;
    box-shadow: 0 4px 16px rgba(108,99,255,0.3);
    transition: var(--transition-smooth);
}

.ab-monogram:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(108,99,255,0.4);
}

.activity-bar-top,
.activity-bar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.activity-bar-top {
    flex: 1;
    padding-top: 6px;
}

/* ── Tool Buttons (Activity Bar) ── */

#activity-bar .tool-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.15rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
    text-decoration: none;
    overflow: visible;
}

#activity-bar .tool-link span.tool-tooltip {
    font-size: 0.75rem; /* overridden below */
}

#activity-bar .tool-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

#activity-bar .tool-link.active {
    color: var(--accent-light);
    background: var(--accent-subtle);
    box-shadow: 0 0 20px rgba(108,99,255,0.10), inset 0 0 0 1px rgba(108,99,255,0.18);
}

#activity-bar .tool-link.active::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    border-radius: 0 3px 3px 0;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ── Organic hover glow halo ── */
#activity-bar .tool-link::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

#activity-bar .tool-link:hover::after {
    opacity: 0.25;
}

#activity-bar .tool-link.active::after {
    opacity: 0.35;
    animation: activeHalo 3s ease-in-out infinite;
}

@keyframes activeHalo {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.06); }
}


/* ── Tooltip ── */

.tool-tooltip {
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-hover);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.72rem;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s var(--ease-spring);
    box-shadow: var(--shadow-md);
    z-index: 1100;
}

.tool-tooltip::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border-hover);
    border-bottom: 1px solid var(--border-hover);
}

#activity-bar .tool-link:hover .tool-tooltip,
#activity-bar .ab-action-btn:hover .tool-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}


/* ── Activity Bar Glow Layer ── */

.activity-bar-glow {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(
        ellipse at var(--mouse-x, 50%) var(--mouse-y, 80%),
        rgba(108,99,255,0.05) 0%,
        transparent 60%
    );
    transition: background 0.3s ease;
    z-index: 0;
}

#activity-bar .ab-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

#activity-bar .ab-action-btn:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}


/* ══════════════════════════════════════════
   3. HEADER BAR (Floating Liquid Glass)
   ══════════════════════════════════════════ */

.app-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1002;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border-bottom: 1px solid var(--border-primary);
    padding: 0;
    overflow: hidden;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

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

#current-project-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.credits-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.credits-pill i {
    color: var(--amber);
    font-size: 0.75rem;
}

.credits-pill:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.06);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.action-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-primary);
}

.action-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.action-btn:disabled:hover {
    color: var(--text-secondary);
    background: transparent;
    border-color: transparent;
}

/* Glass edge light */
.header-glass-edge {
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108,99,255,0.2), rgba(0,229,255,0.12), transparent);
    pointer-events: none;
}


/* ══════════════════════════════════════════
   4. CONTENT AREA
   ══════════════════════════════════════════ */

.main-content {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.content-area {
    padding: 24px 20px;
    overflow-y: auto;
    position: relative;
    height: 100%;
    padding-bottom: calc(var(--mobile-nav-height) + 24px);
}


/* ══════════════════════════════════════════
   5. TOOL SECTIONS
   ══════════════════════════════════════════ */

.tool-section {
    display: none;
    animation: sectionReveal 0.5s var(--ease-expo) forwards;
}

.tool-section.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@keyframes sectionReveal {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ── Section Header ── */

.studio-header,
.studio-controls-panel,
.studio-output-panel {
    width: 100%;
}

.main-heading {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.highlight-gradient {
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sub-heading {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 4px;
}


/* ── Controls Panel ── */

.studio-controls-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.main-input-area {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.main-input-area textarea {
    width: 100%;
    min-height: 120px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.6;
    resize: vertical;
    transition: var(--transition-fast);
}

.main-input-area textarea::placeholder {
    color: var(--text-muted);
}

.main-input-area textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.08), 0 0 24px rgba(108,99,255,0.06);
}


/* ── Buttons ── */

.button-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.generate-btn,
.enhance-prompt-btn {
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.generate-btn {
    background: linear-gradient(135deg, var(--accent), #5548d9);
    color: #fff;
    box-shadow: 0 4px 16px rgba(108,99,255,0.25);
}

.primary-glow {
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* Liquid shine sweep */
.generate-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.5s ease;
}

.generate-btn:hover:not(:disabled)::after {
    left: 100%;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(108,99,255,0.35);
}

.primary-glow:hover:not(:disabled) {
    box-shadow: 0 6px 24px var(--accent-glow), 0 0 32px rgba(108,99,255,0.15);
}

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

.enhance-prompt-btn:hover:not(:disabled) {
    border-color: var(--accent-hot);
    color: var(--accent-hot);
    background: rgba(167,139,250,0.06);
    box-shadow: 0 0 16px var(--accent-purple-glow);
    transform: translateY(-2px);
}

.enhance-prompt-btn i {
    color: var(--accent-hot);
}

.generate-btn:disabled,
.enhance-prompt-btn:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    border: 1px solid var(--border-primary);
    transform: none;
}


/* ── Quick Start ── */

.quick-start {
    margin-top: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.examples-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    margin-right: 4px;
}

.quick-start-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quick-start-btn:hover {
    color: var(--accent-light);
    border-color: var(--accent);
    background: var(--accent-subtle);
    transform: translateY(-1px);
}

.examples {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.example-tag {
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.82rem;
}

.example-tag:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}


/* ── Tool Options ── */

.tool-options {
    padding: 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.tool-options label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-right: 4px;
}

.tool-options select,
.tool-options input[type="text"] {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    min-width: 140px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.tool-options select:focus,
.tool-options input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.08);
}


/* ── Output Panel ── */

.studio-output-panel {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.studio-output-panel img,
.studio-output-panel video {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.output-area {
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    padding: 0;
    min-height: 300px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: auto;
    width: 100%;
}

.output-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.output-content:not(.design-output-grid) .output-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
}

.output-content .output-wrapper .output-content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.output-content .output-wrapper.audio-wrapper {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.output-content .output-wrapper.audio-wrapper .nv-audio-visualizer {
    width: 100%;
    max-width: 100%;
}

.placeholder-text {
    margin: auto;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}


/* ══════════════════════════════════════════
   6. OUTPUT WRAPPERS
   ══════════════════════════════════════════ */

.output-wrapper {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: border-color 0.3s ease;
}

.output-wrapper:hover {
    border-color: var(--border-hover);
}

.output-wrapper .output-content-container,
.output-wrapper .custom-audio-player,
.output-wrapper .transcript-content {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.output-wrapper .output-content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 70vh;
    overflow: auto;
}

.output-wrapper .hover-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.output-wrapper:hover .hover-actions {
    opacity: 1;
    pointer-events: auto;
}

.action-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--glass-bg-dense);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.action-icon:hover {
    color: var(--accent-light);
    background: rgba(108,99,255,0.12);
    border-color: var(--border-active);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: scale(1.08);
}

.output-wrapper img,
.output-wrapper video {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    margin: 0 auto;
}

.design-output-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    justify-content: center;
    width: 100%;
}

.design-output-grid .output-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.output-content:not(.design-output-grid) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Audio Player */
.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: var(--radius-sm);
}

.player-button {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.player-button:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: 0 0 16px var(--accent-glow);
}

.player-button:disabled {
    background: var(--bg-tertiary);
    cursor: not-allowed;
}

.player-timeline { flex-grow: 1; display: flex; align-items: center; }

.progress-bar-wrapper {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.progress-bar-bg,
.progress-bar-fill,
.progress-bar-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 3px;
}

.progress-bar-fill {
    width: 0%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    transition: width 0.1s linear;
}

.player-time {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 80px;
    text-align: center;
}

.output-wrapper pre {
    width: 100%;
    background: var(--bg-void);
    padding: 16px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-size: 0.85rem;
    font-family: var(--font-mono);
}


/* ══════════════════════════════════════════
   7. PROJECT MANAGEMENT
   ══════════════════════════════════════════ */

.projects-actions {
    margin-bottom: 20px;
}

.project-gallery-container {
    flex-grow: 1;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 20px;
    overflow-y: auto;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.project-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-active);
    box-shadow: 0 12px 40px rgba(108,99,255,0.1), var(--shadow-glow-accent);
}

.project-preview-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(108,99,255,0.05), rgba(167,139,250,0.04));
    min-height: 130px;
}

.project-preview-asset {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-size: cover;
    background-position: center;
    min-height: 85px;
    position: relative;
    overflow: hidden;
}

.project-preview-asset::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(5, 5, 9, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-preview-asset::after { opacity: 1; }

.project-preview-asset--text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.project-preview-empty {
    grid-column: 1 / -1;
    border: 1px dashed var(--border-primary);
    border-radius: var(--radius-sm);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.project-preview-empty i {
    font-size: 1.3rem;
    color: var(--accent);
}

.project-preview-overflow {
    align-self: flex-end;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-primary);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
}

.project-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.project-card-heading h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.project-card-heading p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.project-card-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-card-meta span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.project-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-card-btn {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
    background: transparent;
    color: var(--text-primary);
    padding: 9px 14px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    flex: 1;
    transition: var(--transition-fast);
}

.project-card-btn.primary {
    background: linear-gradient(135deg, var(--accent), #5548d9);
    border-color: transparent;
    color: #fff;
}

.project-card-btn.ghost:hover {
    border-color: var(--accent);
    color: var(--accent-light);
}

.project-card-btn.primary:hover {
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* Project Asset Viewer Overlay */
.project-asset-overlay {
    position: fixed;
    inset: 0;
    padding: 40px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: rgba(5, 5, 9, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1200;
}

.project-asset-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.project-asset-panel {
    width: min(1200px, 96vw);
    max-height: 90vh;
    background: var(--glass-bg-dense);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.project-viewer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-primary);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-viewer-close:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.project-viewer-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.project-viewer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-family: var(--font-display);
}

.project-viewer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-viewer-btn {
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-primary);
    background: transparent;
    color: var(--text-primary);
    padding: 9px 18px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.project-viewer-btn.primary {
    background: linear-gradient(135deg, var(--accent), #5548d9);
    border-color: transparent;
    color: #fff;
}

.project-viewer-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(108,99,255,0.2);
}

.project-viewer-status {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.project-asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    flex: 1;
    min-height: 240px;
    overflow-y: auto;
    padding-right: 8px;
}

.project-asset-grid .placeholder-text {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
}

.asset-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.asset-card:hover {
    border-color: var(--border-active);
    transform: translateY(-3px);
}

.asset-card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.asset-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.asset-card-body img,
.asset-card-body video {
    width: 100%;
    border-radius: var(--radius-sm);
    object-fit: cover;
    max-height: 220px;
}

.asset-card-body audio { width: 100%; }

.asset-card-body .nv-audio-visualizer { width: 100%; max-width: 100%; padding: 14px; }
.asset-card-body .nv-audio-visualizer.compact { padding: 10px; }
.asset-card-body .nv-viz-waveform-container { height: 50px; }
.asset-card-body .nv-viz-info { margin-top: 10px; }
.asset-card-body .nv-viz-actions { margin-top: 10px; }

.asset-card-body pre,
.asset-card-body p {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    max-height: 200px;
    overflow: auto;
}

.asset-card-prompt {
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text-muted);
}


/* ══════════════════════════════════════════
   8. MODALS
   ══════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 9, 0.75);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal-overlay:not([style*="display: none"]) {
    opacity: 1;
    pointer-events: auto;
    display: flex;
}

.modal-content {
    background: var(--glass-bg-dense);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    padding: 28px 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-float);
    max-width: 90vw;
    width: 600px;
    position: relative;
    transform: scale(0.96);
    transition: transform 0.3s var(--ease-spring);
}

.modal-content.large {
    width: 800px;
    max-width: 90vw;
}

.modal-overlay:not([style*="display: none"]) .modal-content {
    transform: scale(1.0);
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-close-btn:hover {
    color: var(--accent-light);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 16px;
}

#edit-modal-original-content {
    margin-bottom: 20px;
    max-height: 50vh;
    overflow: auto;
    text-align: center;
}

#edit-modal-original-content img,
#edit-modal-original-content video,
#edit-modal-original-content audio,
#edit-modal-original-content pre {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.setting-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-primary);
}

/* New Project Modal */
#new-project-modal .modal-content { width: 500px; }

#new-project-form .form-group { margin-bottom: 20px; }

#new-project-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

#new-project-form input[type="text"],
#new-project-form textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: var(--transition-fast);
}

#new-project-form input[type="text"]:focus,
#new-project-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.08);
}

#new-project-form textarea { resize: vertical; }

#new-project-form .form-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}


/* ══════════════════════════════════════════
   9. LOADING OVERLAY
   ══════════════════════════════════════════ */

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 9, 0.65);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    border-radius: var(--radius-md);
    transition: opacity 0.3s ease-out;
}

.loading-overlay p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.loader-core {
    width: 56px;
    height: 56px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    animation: organicPulse 2.5s infinite ease-in-out;
}

@keyframes organicPulse {
    0%, 100% {
        transform: scale(0.95);
        box-shadow: 0 0 20px var(--accent-glow), 0 0 48px rgba(108,99,255,0.12);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 32px var(--accent-glow), 0 0 72px rgba(108,99,255,0.18);
    }
}


/* ══════════════════════════════════════════
   10. MOBILE NAVIGATION
   ══════════════════════════════════════════ */

.mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-height);
    background: var(--glass-bg-dense);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border-top: 1px solid var(--border-primary);
    z-index: 1005;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-family: var(--font-body);
    gap: 4px;
    height: 100%;
    transition: var(--transition-fast);
}

.mobile-nav-link i { font-size: 1.2rem; }
.mobile-nav-link:hover { color: var(--text-secondary); }

.mobile-nav-link.active {
    color: var(--accent-light);
}

.mobile-nav-link.active[data-tool="dashboard"] {
    transform: translateY(-6px);
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    border: 1px solid var(--accent-light);
    box-shadow: 0 4px 18px var(--accent-glow);
}


/* ══════════════════════════════════════════
   11. DESKTOP LAYOUT (≥992px)
   ══════════════════════════════════════════ */

@media (min-width: 992px) {
    body { overflow: hidden; }

    .app-container {
        display: flex;
        flex-direction: column;
        height: 100vh;
    }

    .mobile-nav { display: none; }

    /* ── Activity Bar (Floating) ── */
    #activity-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        left: var(--gap);
        top: var(--gap);
        bottom: var(--gap);
        width: var(--activity-bar-width);
        z-index: 1001;
        padding: 16px 0;
        background: var(--glass-bg-dense);
        -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
        backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
        border: 1px solid var(--border-primary);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-float);
        transition: var(--transition-smooth);
        overflow: visible;
    }

    /* ── Header (Floating) ── */
    .app-header {
        position: fixed;
        top: var(--gap);
        left: calc(var(--activity-bar-width) + var(--gap) * 2);
        right: var(--gap);
        height: var(--header-height);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border-primary);
        box-shadow: var(--shadow-float);
        background: var(--glass-bg-dense);
        -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
        backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
        z-index: 1000;
        border-bottom: none;
    }

    .header-glass-edge {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    /* ── Main Content Area ── */
    .main-content {
        position: fixed;
        top: calc(var(--header-height) + var(--gap) * 2);
        left: calc(var(--activity-bar-width) + var(--gap) * 2);
        right: var(--gap);
        bottom: var(--gap);
        overflow: hidden;
        border-radius: var(--radius-lg);
    }

    .content-area {
        padding: 28px 32px;
        padding-bottom: 28px;
        border-radius: var(--radius-lg);
        height: 100%;
    }

    /* ── Tool Section Desktop Grid ── */
    .tool-section.active {
        display: grid;
        height: 100%;
        grid-template-columns: 420px 1fr;
        grid-template-rows: auto 1fr;
        gap: 22px;
        grid-template-areas:
            "header header"
            "controls output";
    }

    .tool-section > .studio-header { grid-area: header; }

    .tool-section > .studio-controls-panel,
    .tool-section > .studio-output-panel {
        background: var(--glass-bg);
        -webkit-backdrop-filter: blur(20px) saturate(1.3);
        backdrop-filter: blur(20px) saturate(1.3);
        border: 1px solid var(--border-primary);
        border-radius: var(--radius-md);
        padding: 20px;
        box-shadow: var(--shadow-sm);
        transition: border-color 0.3s ease;
    }

    .tool-section > .studio-controls-panel:hover,
    .tool-section > .studio-output-panel:hover {
        border-color: var(--border-hover);
    }

    .tool-section > .studio-controls-panel {
        grid-area: controls;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .tool-section > .studio-output-panel {
        grid-area: output;
        overflow: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

    .tool-section > .studio-output-panel .output-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }

    .tool-section > .studio-output-panel .output-wrapper .output-content-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .tool-section > .studio-output-panel img,
    .tool-section > .studio-output-panel video {
        max-width: 100%;
        max-height: calc(100vh - 280px);
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
    }

    .tool-section > .studio-output-panel .nv-audio-visualizer,
    .tool-section > .studio-output-panel .custom-audio-player {
        width: 100%;
        max-width: 600px;
    }

    #dashboard.tool-section.active {
        display: block;
        height: auto;
    }
}


/* ══════════════════════════════════════════
   12. RESPONSIVE TWEAKS
   ══════════════════════════════════════════ */

@media (max-width: 640px) {
    .project-asset-overlay { padding: 16px 8px; }
    .project-asset-panel { padding: 18px; max-height: 95vh; }
    .project-viewer-header { flex-direction: column; }
    .project-viewer-actions { width: 100%; justify-content: flex-start; }
    .project-viewer-btn { width: 100%; justify-content: center; }
    .main-heading { font-size: 1.4rem; }
}


/* ══════════════════════════════════════════
   13. SCROLLBAR
   ══════════════════════════════════════════ */

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(108,99,255,0.25);
}


/* ══════════════════════════════════════════
   14. LIQUID GLASS REACTIVE EFFECTS
   ══════════════════════════════════════════ */

/* Glass refraction layer — follows mouse on bars */
#activity-bar::before,
.app-header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle 220px at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(108,99,255,0.06) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
    transition: background 0.15s ease;
}

/* Inner light edge on activity bar */
#activity-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
    pointer-events: none;
}

/* Floating panel subtle breathe animation for active tool panels */
@media (min-width: 992px) {
    .tool-section > .studio-controls-panel,
    .tool-section > .studio-output-panel {
        animation: panelBreathe 6s ease-in-out infinite;
    }
}

@keyframes panelBreathe {
    0%, 100% { box-shadow: var(--shadow-sm); }
    50% { box-shadow: var(--shadow-sm), 0 0 30px rgba(108,99,255,0.03); }
}

/* Intent Toast (from query router) */
.intent-toast {
    background: var(--glass-bg-dense);
    border: 1px solid var(--border-active);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 16px;
    animation: toastSlide 0.4s var(--ease-spring);
}

.intent-toast__eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 4px;
    font-family: var(--font-display);
}

.intent-toast__title {
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 4px;
}

.intent-toast__body {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@keyframes toastSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════════════
   15. DASHBOARD QUERY BAR
   ══════════════════════════════════════════ */

.dashboard-query-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 24px auto 20px;
    max-width: 860px;
    padding: 16px 8px;
}

.query-card {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.03);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.query-card:focus-within {
    border-color: var(--border-active);
    box-shadow: var(--shadow-sm), 0 0 24px rgba(108,99,255,0.06);
}

.studio-query-input {
    flex: 1;
    padding: 11px 14px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
}

.studio-query-input::placeholder {
    color: var(--text-muted);
}

.studio-query-btn {
    margin-left: 8px;
    border: none;
    background: linear-gradient(135deg, var(--accent), #5548d9);
    color: white;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.studio-query-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.studio-query-btn i { font-size: 0.95rem; }

.query-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (max-width: 720px) {
    .dashboard-query-container { padding: 8px; margin: 12px; }
    .studio-query-input { font-size: 0.88rem; }
}


/* ══════════════════════════════════════════
   16. NV LOGO COMPAT
   ══════════════════════════════════════════ */

.nv-logo, img.nv-logo {
    width: 1.05em;
    height: 1.05em;
    vertical-align: middle;
    display: inline-block;
    object-fit: contain;
}

.nv-logo-inline, img.nv-logo-inline {
    width: 0.95em;
    height: 0.95em;
    vertical-align: middle;
    display: inline-block;
    object-fit: contain;
    margin-right: 6px;
}

/* ══════════════════════════════════════════
   END — S.K Studio Design System
   ══════════════════════════════════════════ */
