/* ====================================================================
   AURA AI — Conversational Vibe-Coding Studio Stylesheet
   Inspired by v0.dev, Lovable.dev, Bolt.new & Google Antigravity
   ==================================================================== */

:root {
    --ws-bg-base: #030604;
    --ws-bg-surface: #060b08;
    --ws-bg-card: rgba(10, 20, 15, 0.7);
    --ws-bg-card-hover: rgba(16, 32, 24, 0.85);
    --ws-bg-glass: rgba(8, 16, 12, 0.85);
    --ws-border-subtle: rgba(57, 255, 20, 0.12);
    --ws-border-medium: rgba(57, 255, 20, 0.25);
    --ws-border-glow: rgba(57, 255, 20, 0.5);
    --ws-neon-green: #39ff14;
    --ws-neon-cyan: #00ffcc;
    --ws-text-main: #e6f7ec;
    --ws-text-muted: #85a994;
    --ws-text-dim: #456350;
    --ws-font-ui: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --ws-font-code: 'JetBrains Mono', monospace;
}

body.studio-standalone {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--ws-bg-base);
    color: var(--ws-text-main);
    font-family: var(--ws-font-ui);
}

/* Ambient Glow Overlay */
.ws-ambient-glow {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.08) 0%, rgba(0, 255, 204, 0.03) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.workspace-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.workspace-container {
    width: 100%;
    height: 100%;
    background: var(--ws-bg-surface);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ====================================================================
   Top Frosted Glass Header
   ==================================================================== */
.ws-header {
    height: 50px;
    background: rgba(6, 12, 9, 0.95);
    border-bottom: 1px solid var(--ws-border-subtle);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    flex-shrink: 0;
    gap: 16px;
    z-index: 100;
}

.ws-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ws-logo-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid rgba(57, 255, 20, 0.25);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--ws-neon-green);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ws-logo-pill:hover {
    background: rgba(57, 255, 20, 0.15);
    border-color: var(--ws-neon-green);
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.3);
}

.ws-logo-sparkle {
    color: var(--ws-neon-cyan);
    font-size: 12px;
}

.ws-project-title-input {
    background: transparent;
    border: 1px solid transparent;
    color: var(--ws-text-main);
    font-family: var(--ws-font-ui);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    width: 140px;
    outline: none;
    transition: all 0.2s;
}

.ws-project-title-input:hover,
.ws-project-title-input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--ws-border-subtle);
    width: 180px;
}

/* Status Pill */
.ws-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--ws-border-subtle);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ws-text-muted);
}

.ws-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ws-neon-green);
    box-shadow: 0 0 6px var(--ws-neon-green);
}

.ws-status-pill.generating .ws-status-dot {
    background: #ffb800;
    box-shadow: 0 0 8px #ffb800;
    animation: pulseDot 1s infinite alternate;
}

.ws-status-pill.attention .ws-status-dot {
    background: #ff4757;
    box-shadow: 0 0 8px #ff4757;
}

@keyframes pulseDot {
    from { opacity: 0.4; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1.25); }
}

/* View Mode Toggles */
.ws-view-toggles {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--ws-border-subtle);
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}

.ws-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--ws-text-muted);
    font-family: var(--ws-font-ui);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ws-toggle-btn:hover {
    color: var(--ws-text-main);
    background: rgba(255, 255, 255, 0.04);
}

.ws-toggle-btn.active {
    background: rgba(57, 255, 20, 0.12);
    color: var(--ws-neon-green);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.15);
}

.ws-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-ws-model-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid rgba(57, 255, 20, 0.25);
    color: var(--ws-neon-green);
    padding: 5px 10px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ws-model-pill:hover {
    background: rgba(57, 255, 20, 0.15);
    border-color: var(--ws-neon-green);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.25);
}

.btn-ws {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ws-border-subtle);
    color: var(--ws-text-main);
    font-family: var(--ws-font-ui);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ws:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-ws-export {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.2) 0%, rgba(0, 255, 204, 0.15) 100%);
    border-color: rgba(57, 255, 20, 0.35);
    color: #fff;
}

.btn-ws-export:hover {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.3) 0%, rgba(0, 255, 204, 0.25) 100%);
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.3);
}

.btn-ws-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--ws-text-muted);
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ws-icon:hover {
    color: var(--ws-text-main);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--ws-border-subtle);
}

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

.ws-return-link {
    text-decoration: none;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
}

/* Model Dropdown */
.ws-model-selector-wrap {
    position: relative;
}

.ws-model-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 320px;
    max-height: 380px;
    background: rgba(6, 14, 10, 0.98);
    border: 1px solid var(--ws-border-glow);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(57, 255, 20, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.ws-model-dropdown.active {
    display: flex;
    animation: fadeIn 0.15s ease;
}

.ws-model-dropdown-header {
    padding: 10px 12px;
    background: rgba(10, 20, 15, 0.9);
    border-bottom: 1px solid var(--ws-border-subtle);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    color: var(--ws-text-dim);
}

.ws-model-search-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--ws-border-subtle);
    color: var(--ws-text-main);
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    outline: none;
}

.ws-model-list-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
}

.ws-model-group-title {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--ws-text-dim);
    padding: 6px 8px 2px 8px;
}

.ws-model-option {
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.ws-model-option:hover {
    background: rgba(57, 255, 20, 0.1);
}

.ws-model-option.selected {
    background: rgba(57, 255, 20, 0.15);
    border: 1px solid rgba(57, 255, 20, 0.3);
}

.ws-model-name {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: var(--ws-text-main);
}

.ws-model-desc {
    font-size: 10px;
    color: var(--ws-text-muted);
}

/* ====================================================================
   Main Canvas Area
   ==================================================================== */
.ws-main-canvas {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* ====================================================================
   1. Initial Launch Hero View
   ==================================================================== */
.ws-hero-view {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    overflow-y: auto;
}

.ws-hero-content {
    max-width: 680px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.35s ease;
}

.ws-hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(57, 255, 20, 0.08);
    border: 1px solid rgba(57, 255, 20, 0.3);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--ws-neon-green);
    margin-bottom: 16px;
}

.ws-sparkle-dot {
    color: var(--ws-neon-cyan);
    font-size: 12px;
}

.ws-hero-headline {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, #ffffff 0%, #a8c4b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ws-hero-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ws-text-muted);
    margin: 0 0 28px 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Large Floating Hero Prompt Box */
.ws-hero-prompt-container {
    margin-bottom: 28px;
}

.ws-hero-prompt-box {
    display: flex;
    align-items: center;
    background: rgba(10, 22, 16, 0.85);
    border: 1px solid var(--ws-border-medium);
    border-radius: 28px;
    padding: 6px 10px 6px 14px;
    gap: 10px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(57, 255, 20, 0.12);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ws-hero-prompt-box:focus-within {
    border-color: var(--ws-neon-green);
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(57, 255, 20, 0.25);
    transform: translateY(-2px);
}

.btn-hero-attach {
    background: transparent;
    border: none;
    color: var(--ws-text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
}

.btn-hero-attach:hover {
    color: var(--ws-neon-green);
    transform: scale(1.1);
}

.ws-hero-prompt-textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--ws-text-main);
    font-family: var(--ws-font-ui);
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    outline: none;
    padding: 6px 0;
    max-height: 120px;
}

.btn-hero-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #39ff14 0%, #178a2a 100%);
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-hero-send:hover {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.5);
}

/* Curated Starters Grid */
.ws-hero-starters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    text-align: left;
}

.ws-starter-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--ws-bg-card);
    border: 1px solid var(--ws-border-subtle);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--ws-text-main);
    font-family: var(--ws-font-ui);
}

.ws-starter-card:hover {
    background: var(--ws-bg-card-hover);
    border-color: var(--ws-border-glow);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 14px rgba(57, 255, 20, 0.15);
}

.starter-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.starter-info strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ws-neon-green);
    margin-bottom: 2px;
}

.starter-info span {
    display: block;
    font-size: 11px;
    color: var(--ws-text-muted);
    line-height: 1.3;
}

/* ====================================================================
   2. Active Split Studio Layout (v0 / Lovable Style)
   ==================================================================== */
.ws-split-layout {
    flex: 1;
    display: flex;
    overflow: hidden;
    width: 100%;
}

/* Left: AI Conversational Agent Panel (42% Width) */
.ws-chat-panel {
    width: 42%;
    min-width: 340px;
    max-width: 580px;
    background: var(--ws-bg-surface);
    border-right: 1px solid var(--ws-border-subtle);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.ws-chat-panel-header {
    height: 40px;
    background: rgba(8, 16, 12, 0.8);
    border-bottom: 1px solid var(--ws-border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
    flex-shrink: 0;
}

.ws-panel-agent-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ws-pulse-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ws-neon-green);
    box-shadow: 0 0 8px var(--ws-neon-green);
    animation: pulseDot 1.2s infinite alternate;
}

.ws-panel-agent-name {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--ws-neon-green);
}

.ws-persona-pill {
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.25);
    color: var(--ws-neon-green);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}

.ws-panel-chat-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ws-chat-feed {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Chat Messages */
.ws-chat-msg {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.2s ease;
}

.ws-chat-msg.user { align-items: flex-end; }
.ws-chat-msg.agent { align-items: flex-start; }

.ws-chat-bubble-user {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.18) 0%, rgba(0, 255, 204, 0.12) 100%);
    border: 1px solid rgba(57, 255, 20, 0.35);
    border-radius: 14px 14px 2px 14px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #fff;
    max-width: 90%;
    word-break: break-word;
    position: relative;
}

.ws-user-prompt-text {
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    white-space: pre-wrap;
}

.ws-user-prompt-text.expanded {
    max-height: none;
}

.ws-prompt-expand-btn {
    display: inline-block;
    margin-top: 6px;
    background: transparent;
    border: none;
    color: var(--ws-neon-cyan);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.ws-prompt-expand-btn:hover {
    text-decoration: underline;
}

.ws-chat-card-agent {
    background: var(--ws-bg-card);
    border: 1px solid var(--ws-border-subtle);
    border-radius: 14px 14px 14px 2px;
    padding: 14px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Antigravity Step Tray */
.ws-step-tray {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ws-step-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--ws-border-subtle);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    font-family: var(--ws-font-code);
    color: var(--ws-text-muted);
}

.ws-step-pill.active {
    border-color: rgba(57, 255, 20, 0.4);
    color: var(--ws-neon-green);
    background: rgba(57, 255, 20, 0.06);
}

.ws-step-pill.done { color: #a8d5b8; }
.ws-step-pill.error { border-color: rgba(255, 71, 87, 0.4); color: #ff6b81; }

/* Diff Summary Cards */
.ws-diff-summary-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--ws-border-subtle);
    border-radius: 8px;
    padding: 8px 12px;
}

.ws-diff-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--ws-text-dim);
    margin-bottom: 6px;
}

.ws-diff-files-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ws-diff-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(20, 40, 30, 0.8);
    border: 1px solid var(--ws-border-subtle);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-family: var(--ws-font-code);
    color: var(--ws-text-main);
    cursor: pointer;
    transition: all 0.15s ease;
}

.ws-diff-badge:hover {
    border-color: var(--ws-neon-green);
    background: rgba(57, 255, 20, 0.15);
}

.ws-diff-add { color: #39ff14; font-weight: 700; }
.ws-diff-del { color: #ff6b81; font-weight: 700; }

/* Floating Universal Prompt Dock */
.ws-prompt-dock {
    padding: 12px 14px;
    background: rgba(6, 14, 10, 0.96);
    border-top: 1px solid var(--ws-border-subtle);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ws-smart-actions-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.ws-smart-actions-scroll::-webkit-scrollbar { display: none; }

.ws-smart-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ws-border-subtle);
    color: var(--ws-text-muted);
    font-family: var(--ws-font-ui);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ws-smart-pill:hover {
    background: rgba(57, 255, 20, 0.1);
    border-color: var(--ws-neon-green);
    color: var(--ws-text-main);
    transform: translateY(-1px);
}

.ws-attached-media-tray {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ws-media-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.3);
    color: var(--ws-neon-cyan);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
}

.media-remove-btn {
    background: transparent;
    border: none;
    color: #ff6b81;
    cursor: pointer;
    font-size: 11px;
}

.ws-dock-input-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid var(--ws-border-subtle);
    border-radius: 24px;
    padding: 4px 8px 4px 12px;
    gap: 8px;
    transition: all 0.2s ease;
}

.ws-dock-input-box:focus-within {
    border-color: var(--ws-neon-green);
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.2);
}

.btn-dock-attach {
    background: transparent;
    border: none;
    color: var(--ws-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
}

.btn-dock-attach:hover {
    color: var(--ws-neon-green);
    transform: scale(1.1);
}

.ws-dock-textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--ws-text-main);
    font-family: var(--ws-font-ui);
    font-size: 13px;
    line-height: 1.4;
    resize: none;
    outline: none;
    max-height: 120px;
    padding: 6px 0;
}

.ws-dock-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ws-dock-inline-model {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ws-border-subtle);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    color: var(--ws-text-muted);
}

.btn-dock-send {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #39ff14 0%, #178a2a 100%);
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-dock-send:hover {
    transform: scale(1.06);
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}

.btn-dock-send.generating {
    background: linear-gradient(135deg, #ff4757 0%, #c2185b 100%) !important;
    color: #fff !important;
    box-shadow: 0 0 16px rgba(255, 71, 87, 0.6) !important;
    animation: pulseDot 1.2s infinite alternate;
}

/* ====================================================================
   Right: Simulated Browser Frame Sandbox & Code Canvas (58% Width)
   ==================================================================== */
.ws-browser-panel {
    flex: 1;
    background: #020503;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 10px 14px 14px 14px;
}

.ws-browser-chrome {
    flex: 1;
    background: #000;
    border: 1px solid var(--ws-border-subtle);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

/* Browser Top Bar */
.ws-browser-topbar {
    height: 42px;
    background: rgba(10, 20, 15, 0.95);
    border-bottom: 1px solid var(--ws-border-subtle);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
    flex-shrink: 0;
}

.ws-window-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ws-window-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ws-window-dots .dot.red { background: #ff5f56; }
.ws-window-dots .dot.yellow { background: #ffbd2e; }
.ws-window-dots .dot.green { background: #27c93f; }

/* Address Bar */
.ws-browser-address-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-family: var(--ws-font-code);
    color: var(--ws-text-muted);
}

.ws-address-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-address-reload {
    background: transparent;
    border: none;
    color: var(--ws-text-muted);
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: all 0.15s;
}

.btn-address-reload:hover {
    color: var(--ws-neon-green);
    transform: rotate(45deg);
}

/* Viewport Device Presets */
.ws-device-presets {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--ws-border-subtle);
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
}

.ws-vp-btn {
    background: transparent;
    border: none;
    color: var(--ws-text-muted);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.ws-vp-btn.active {
    background: rgba(57, 255, 20, 0.15);
    color: var(--ws-neon-green);
}

/* Preview vs Code Switcher Pill */
.ws-canvas-switch-pill {
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--ws-border-subtle);
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
}

.btn-canvas-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: var(--ws-text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-canvas-toggle:hover {
    color: var(--ws-text-main);
}

.btn-canvas-toggle.active {
    background: rgba(57, 255, 20, 0.15);
    color: var(--ws-neon-green);
}

/* Content View Wrappers */
.ws-browser-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
    background: #000;
}

.ws-preview-view-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #020503;
    overflow: auto;
}

.ws-iframe-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ws-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
    transition: width 0.25s ease;
}

.ws-preview-iframe.tablet {
    width: 768px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.8);
}

.ws-preview-iframe.mobile {
    width: 375px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.8);
}

/* Code Editor Canvas */
.ws-code-view-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #030705;
    overflow: hidden;
}

.ws-code-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 16, 12, 0.9);
    border-bottom: 1px solid var(--ws-border-subtle);
    padding-right: 8px;
}

.ws-tabs-bar {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}

.ws-tabs-bar::-webkit-scrollbar { display: none; }

.ws-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-family: var(--ws-font-code);
    color: var(--ws-text-muted);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.15s;
}

.ws-tab:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--ws-text-main);
}

.ws-tab.active {
    background: #030705;
    color: var(--ws-neon-green);
    border-bottom: 2px solid var(--ws-neon-green);
}

.ws-tab-close {
    font-size: 10px;
    opacity: 0.6;
    border-radius: 50%;
    padding: 1px 4px;
}

.ws-tab-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.15); }

.ws-code-tools {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ws-editor-ai-pills {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ws-editor-ai-btn {
    background: transparent;
    border: 1px solid var(--ws-border-subtle);
    color: var(--ws-text-muted);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.ws-editor-ai-btn:hover {
    color: var(--ws-neon-green);
    border-color: var(--ws-neon-green);
    background: rgba(57, 255, 20, 0.08);
}

.ws-editor-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

.ws-line-numbers {
    width: 44px;
    padding: 12px 6px;
    font-family: var(--ws-font-code);
    font-size: 12px;
    line-height: 20px;
    color: var(--ws-text-dim);
    text-align: right;
    user-select: none;
    background: #020504;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.ws-code-textarea {
    flex: 1;
    padding: 12px;
    font-family: var(--ws-font-code);
    font-size: 12px;
    line-height: 20px;
    color: #a8ffd0;
    background: transparent;
    border: none;
    resize: none;
    outline: none;
    white-space: pre;
    overflow: auto;
    tab-size: 4;
}

.ws-editor-status {
    height: 24px;
    background: #020504;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    font-size: 11px;
    font-family: var(--ws-font-code);
    color: var(--ws-text-dim);
}

/* Developer Console Drawer */
.ws-console-dock {
    height: 180px;
    background: rgba(3, 7, 5, 0.98);
    border-top: 1px solid var(--ws-border-subtle);
    display: flex;
    flex-direction: column;
    transition: height 0.25s ease;
    flex-shrink: 0;
}

.ws-console-dock.collapsed { height: 32px; }

.ws-console-header {
    height: 32px;
    background: rgba(8, 16, 12, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--ws-text-dim);
    cursor: pointer;
    user-select: none;
}

.btn-ws-autofix-header {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.3) 0%, rgba(255, 107, 129, 0.2) 100%);
    border: 1px solid rgba(255, 71, 87, 0.5);
    color: #ff6b81;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    cursor: pointer;
    animation: pulseDot 1.2s infinite alternate;
}

.ws-console-logs {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
    font-family: var(--ws-font-code);
    font-size: 11px;
    line-height: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ws-log-item { display: flex; align-items: baseline; gap: 8px; }
.ws-log-time { color: var(--ws-text-dim); }
.ws-log-item.log { color: #a8c4b2; }
.ws-log-item.warn { color: #ffb800; }
.ws-log-item.error { color: #ff4757; }

.btn-ws-autofix {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.4);
    color: #ff6b81;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    cursor: pointer;
}

/* ====================================================================
   Animations & Responsive Breakpoints
   ==================================================================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 960px) {
    .ws-split-layout { flex-direction: column; }
    .ws-chat-panel { width: 100%; max-width: 100%; height: 50%; border-right: none; border-bottom: 1px solid var(--ws-border-subtle); }
    .ws-browser-panel { width: 100%; height: 50%; padding: 8px; }
    .ws-hero-starters-grid { grid-template-columns: 1fr; }
    .ws-project-title-input { width: 100px; }
}

@media (max-width: 640px) {
    .ws-header { padding: 0 8px; gap: 8px; }
    .ws-toggle-btn span { display: none; }
    .btn-ws span { display: none; }
    .btn-ws-model-pill #wsCurrentModelLabel { display: none; }
}

/* ================================================================
   BYOK (Bring Your Own Key) & Auto-Sync Styles
   ================================================================ */
.ws-byok-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.ws-byok-card {
    background: rgba(6, 14, 10, 0.98);
    border: 1px solid rgba(57, 255, 20, 0.35);
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(57, 255, 20, 0.2);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ws-byok-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(10, 24, 16, 0.9);
    border-bottom: 1px solid var(--ws-border-subtle);
}
