/* ═══════════════════════════════════════════════════════
   IDEAFLOW STUDIO — studio.css
   Extends the existing styles.css design tokens
═══════════════════════════════════════════════════════ */

/* ─── Studio Hero ─────────────────────────────────── */
.studio-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 6rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.studio-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.studio-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.studio-badge {
    display: inline-block;
    background: rgba(37,99,235,0.15);
    border: 1px solid rgba(37,99,235,0.4);
    color: #93c5fd;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.studio-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.studio-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.studio-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.studio-stat { text-align: center; }
.studio-stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
}
.studio-stat-lbl {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.studio-stat-div {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

/* ─── AdSense Banners ──────────────────────────────── */
.studio-ad-top, .studio-ad-mid, .studio-ad-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

/* ─── Tab Navigation ───────────────────────────────── */
.studio-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.tab-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 0;
    overflow-x: auto;
    padding-bottom: 0;
    scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    white-space: nowrap;
    margin-bottom: -2px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab-btn:hover { color: var(--text-primary); background: var(--bg-surface); }
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--bg-surface);
}

.tab-icon { font-size: 1.1rem; }
.tab-label { font-weight: 600; }

.tab-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
}
.tab-badge-ai {
    background: rgba(37,99,235,0.08);
    border-color: rgba(37,99,235,0.25);
    color: var(--primary);
}

/* ─── Tab Panels ───────────────────────────────────── */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Tool Grid ────────────────────────────────────── */
.tool-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    align-items: start;
}

/* ─── Controls Panel ───────────────────────────────── */
.tool-controls {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: sticky;
    top: 80px;
}

.controls-header { margin-bottom: 2rem; }
.controls-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.controls-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.control-group { margin-bottom: 1.5rem; }
.control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}
.control-value {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

/* Slider */
.studio-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    cursor: pointer;
}
.studio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary);
    transition: transform 0.15s;
}
.studio-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

.slider-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* Select */
.studio-select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.studio-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* Input */
.studio-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.studio-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.studio-input::placeholder { color: var(--text-muted); }

/* Toggle */
.toggle-label { cursor: pointer; }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; inset: 0;
    background: var(--border-color);
    border-radius: 12px;
    transition: 0.3s;
    cursor: pointer;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Studio Button */
.studio-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 0.5rem;
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.studio-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.4); }
.studio-btn:active { transform: translateY(0); }
.studio-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.ai-disclaimer {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* Share URL */
.share-url-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
    margin-top: 1rem;
}
.share-label { font-size: 0.82rem; color: var(--text-muted); }
.share-copy-btn {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: none;
    border: 1px solid var(--primary);
    border-radius: 4px;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.share-copy-btn:hover { background: var(--primary); color: #fff; }

/* ─── Tool Output ───────────────────────────────────── */
.tool-output {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 400px;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.kpi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition-smooth);
}
.kpi-card:hover { border-color: var(--border-hover); }
.kpi-highlight { border-color: rgba(37,99,235,0.3); background: rgba(37,99,235,0.04); }
.kpi-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; margin-bottom: 0.5rem; }
.kpi-value { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--text-primary); }
.kpi-green { color: var(--accent); }
.kpi-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Chart */
.chart-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.chart-title { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--text-primary); }
.chart-legend { display: flex; align-items: center; gap: 1rem; font-size: 0.82rem; color: var(--text-secondary); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.legend-blue { background: var(--primary); }
.legend-green { background: var(--accent); }

/* Milestones */
.milestone-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.milestone-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-glow);
    border: 1px solid rgba(21,128,61,0.25);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Breakdown */
.breakdown-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.breakdown-title { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--text-primary); margin-bottom: 1.25rem; }
.breakdown-row { margin-bottom: 1rem; }
.breakdown-row-header { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.4rem; }
.breakdown-bar-track { height: 8px; background: var(--border-color); border-radius: 4px; overflow: hidden; }
.breakdown-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Idle / Loading States ────────────────────────── */
.output-idle {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-surface);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
}
.idle-icon { font-size: 3rem; margin-bottom: 1rem; }
.idle-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.idle-desc { font-size: 0.95rem; color: var(--text-muted); max-width: 380px; line-height: 1.7; margin-bottom: 1.5rem; }
.idle-examples { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.example-chip {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}
.example-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }

.output-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
}
.loading-spinner {
    width: 48px; height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.loading-sub { font-size: 0.85rem; color: var(--text-muted); }

/* ─── Niche Scorer Results ─────────────────────────── */
.scorer-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.score-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
}
.score-niche-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: capitalize;
}

/* Score Ring */
.overall-score-ring { position: relative; width: 110px; height: 110px; flex-shrink: 0; }
.score-ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--border-color); stroke-width: 10; }
.ring-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 264;
    stroke-dashoffset: 264;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.score-ring-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}
.score-ring-label {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Score Bars */
.score-bars-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.score-bar-row { display: flex; flex-direction: column; gap: 0.4rem; }
.score-bar-header { display: flex; justify-content: space-between; align-items: center; }
.score-bar-label { font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); }
.score-bar-num { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.score-bar-track { height: 10px; background: var(--border-color); border-radius: 5px; overflow: hidden; }
.score-bar-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    width: 0%;
    transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.score-bar-detail { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* Score Summary */
.score-summary-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.summary-row { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.summary-item { flex: 1; min-width: 120px; }
.summary-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; display: block; margin-bottom: 0.3rem; }
.summary-value { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.verdict-box {
    background: var(--primary-glow);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─── Content Calendar ─────────────────────────────── */
.cal-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cal-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.cal-info { font-size: 0.88rem; color: var(--text-muted); font-weight: 500; }
.cal-actions { display: flex; gap: 0.5rem; }
.cal-action-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
}
.cal-action-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.cal-action-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.cal-action-primary:hover { background: #1d4ed8; color: #fff; }

.cal-legend {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.cal-type-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}
.type-review { background: #2563eb; }
.type-traffic { background: #15803d; }
.type-pillar { background: #7c3aed; }
.type-comparison { background: #d97706; }

.cal-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}
.cal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}
.cal-table thead th {
    background: var(--bg-surface);
    padding: 0.9rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}
.cal-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
    animation: fadeInUp 0.3s ease;
}
.cal-table tbody tr:hover { background: var(--bg-surface); }
.cal-table tbody tr:last-child { border-bottom: none; }
.cal-table td {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    vertical-align: middle;
}
.cal-table td:first-child { font-weight: 700; color: var(--text-primary); }
.cal-table td:nth-child(2) { color: var(--text-primary); font-weight: 500; max-width: 260px; }

.cal-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}
.cal-type-tag.type-review { background: rgba(37,99,235,0.1); color: #2563eb; }
.cal-type-tag.type-traffic { background: rgba(21,128,61,0.1); color: #15803d; }
.cal-type-tag.type-pillar { background: rgba(124,58,237,0.1); color: #7c3aed; }
.cal-type-tag.type-comparison { background: rgba(217,119,6,0.1); color: #d97706; }

.diff-tag {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}
.diff-easy { background: rgba(21,128,61,0.1); color: #15803d; }
.diff-medium { background: rgba(217,119,6,0.1); color: #d97706; }
.diff-hard { background: rgba(220,38,38,0.1); color: #dc2626; }

/* ─── Studio About Section ─────────────────────────── */
.studio-about-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem;
}
.studio-about-inner { max-width: 1100px; margin: 0 auto; }
.studio-about-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1rem;
}
.studio-about-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}
.studio-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.studio-about-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition-smooth);
}
.studio-about-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(37,99,235,0.1); }
.about-card-icon { font-size: 2rem; margin-bottom: 1rem; }
.studio-about-card h3 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.6rem; }
.studio-about-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ─── Nav Active State ─────────────────────────────── */
.nav-active { color: #ffffff !important; }

/* ─── Dark Theme Overrides ─────────────────────────── */
.dark-theme .studio-hero { background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #020617 100%); }
.dark-theme .tab-btn.active { background: #0f172a; }
.dark-theme .tab-btn:hover { background: #0f172a; }
.dark-theme .tool-controls { background: #0f172a; border-color: #1e293b; }
.dark-theme .studio-select,
.dark-theme .studio-input { background: #1e293b; border-color: #334155; color: #e2e8f0; }
.dark-theme .kpi-card { background: #0f172a; border-color: #1e293b; }
.dark-theme .chart-container,
.dark-theme .breakdown-card,
.dark-theme .score-bars-section,
.dark-theme .score-summary-card,
.dark-theme .score-header { background: #0f172a; border-color: #1e293b; }
.dark-theme .output-idle { background: #0f172a; border-color: #1e293b; }
.dark-theme .output-loading { background: #0f172a; border-color: #1e293b; }
.dark-theme .studio-slider { background: #334155; }
.dark-theme .toggle-slider { background: #334155; }
.dark-theme .share-url-box { background: #1e293b; border-color: #334155; }
.dark-theme .example-chip { background: #1e293b; border-color: #334155; }
.dark-theme .cal-table-wrap { border-color: #1e293b; }
.dark-theme .cal-table thead th { background: #0f172a; }
.dark-theme .cal-table tbody tr:hover { background: #0f172a; }
.dark-theme .studio-about-section { background: #0f172a; border-color: #1e293b; }
.dark-theme .studio-about-card { background: #1e293b; border-color: #334155; }
.dark-theme .verdict-box { background: rgba(37,99,235,0.08); }
.dark-theme .score-ring-fill { stroke: #60a5fa; }
.dark-theme .cal-action-btn { background: #1e293b; border-color: #334155; }

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
    .tool-grid { grid-template-columns: 1fr; }
    .tool-controls { position: static; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .studio-about-grid { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 768px) {
    .studio-title { font-size: 2.5rem; }
    .studio-stats-row { gap: 1rem; }
    .tab-btn { padding: 0.75rem 1rem; }
    .tab-label { display: none; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .score-header { flex-direction: column; gap: 1.5rem; text-align: center; }
    .summary-row { flex-direction: column; gap: 1rem; }
}
