/* ================================================================
   Cinema Studio — scroll-wheel picker edition
   ================================================================
   Monochrome liquid-glass stylesheet matching the .pjx-* language in
   main-projects.js. Uses the same translucent gradient + backdrop
   blur + inset highlight pattern so cinema feels native to the site.
   ================================================================ */

#cinema-view {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--bg-dark, #050506);
    color: var(--text-main, #fafafa);
    font-family: var(--font-stack, -apple-system, 'Pretendard Variable', Pretendard, sans-serif);
}

.cstu-root {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px 28px 20px;
    gap: 16px;
    overflow: hidden;
    position: relative;
}

/* ── Scene textarea (top) ──────────────────────────────────────── */

.cstu-scene {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cstu-scene-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted, #a1a1aa);
}

.cstu-scene-input {
    width: 100%;
    min-height: 52px;
    max-height: 120px;
    resize: vertical;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.035) 0%,
            rgba(255, 255, 255, 0.012) 50%,
            rgba(255, 255, 255, 0.004) 100%);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: var(--text-main, #fafafa);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    transition: border-color 180ms, background 180ms;
}

.cstu-scene-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.cstu-scene-input:focus {
    border-color: rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.06) 0%,
            rgba(255, 255, 255, 0.02) 50%,
            rgba(255, 255, 255, 0.005) 100%);
}

/* ── Body: pickers column + preview ────────────────────────────── */

.cstu-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    overflow: hidden;
}

@media (max-width: 900px) {
    .cstu-body { grid-template-columns: 1fr; }
}

/* ── Pickers panel ─────────────────────────────────────────────── */

.cstu-pickers {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.035) 0%,
            rgba(255, 255, 255, 0.012) 50%,
            rgba(255, 255, 255, 0.004) 100%);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.3);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.cstu-pickers::-webkit-scrollbar {
    width: 4px;
}

.cstu-pickers::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
}

.cstu-picker {
    display: grid;
    grid-template-columns: 76px 1fr;
    align-items: center;
    gap: 10px;
    padding: 2px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cstu-picker:last-child { border-bottom: 0; }

.cstu-picker-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted, #a1a1aa);
    text-align: right;
    padding-right: 6px;
    line-height: 1.2;
}

/* ── Wheel (scrollable viewport) ───────────────────────────────── */

.cstu-wheel {
    position: relative;
    width: 100%;
    height: 144px;   /* must match ScrollPicker.VIEWPORT_H */
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 10px;
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.025) 0%,
            rgba(255, 255, 255, 0.008) 60%,
            rgba(255, 255, 255, 0.003) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    outline: none;
    cursor: grab;
    transition: border-color 180ms;
}

.cstu-wheel:focus-visible {
    border-color: rgba(255, 255, 255, 0.22);
}

.cstu-wheel:active { cursor: grabbing; }

.cstu-wheel::-webkit-scrollbar { display: none; }

/* Fade mask at top/bottom — gives the wheel its iOS dimming. */
.cstu-wheel-mask {
    position: absolute;
    left: 0;
    right: 0;
    height: 36px;
    pointer-events: none;
    z-index: 3;
}

.cstu-wheel-mask--top {
    top: 0;
    background: linear-gradient(to bottom,
        rgba(8, 8, 10, 0.78) 0%,
        rgba(8, 8, 10, 0.45) 60%,
        rgba(8, 8, 10, 0) 100%);
}

.cstu-wheel-mask--bottom {
    bottom: 0;
    background: linear-gradient(to top,
        rgba(8, 8, 10, 0.78) 0%,
        rgba(8, 8, 10, 0.45) 60%,
        rgba(8, 8, 10, 0) 100%);
}

/* Center highlight ring (absolute, purely visual). */
.cstu-wheel-selected {
    position: absolute;
    left: 8px;
    right: 8px;
    top: calc(50% - 18px);
    height: 36px;
    border-radius: 8px;
    pointer-events: none;
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.06) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    z-index: 1;
}

.cstu-wheel-track {
    position: relative;
    z-index: 2;
}

.cstu-wheel-item {
    height: 36px;             /* must match ScrollPicker.ITEM_HEIGHT */
    line-height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim, #c4c4cc);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    cursor: pointer;
    transition: color 140ms, transform 140ms, opacity 140ms;
    transform-origin: center;
    user-select: none;
}

.cstu-wheel-item.is-selected {
    color: var(--text-main, #fafafa);
    font-weight: 700;
    letter-spacing: 0.002em;
}

/* ── Preview area ──────────────────────────────────────────────── */

.cstu-preview {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.035) 0%,
            rgba(255, 255, 255, 0.012) 50%,
            rgba(255, 255, 255, 0.004) 100%);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cstu-preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.cstu-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted, #a1a1aa);
    text-align: center;
    padding: 24px;
}

.cstu-preview-placeholder i {
    font-size: 56px;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 4px;
}

.cstu-preview-placeholder p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dim, #c4c4cc);
}

.cstu-preview-placeholder-hint {
    font-size: 12.5px !important;
    color: var(--text-muted, #a1a1aa) !important;
}

/* Loading state */
.cstu-preview-loading {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
}

.cstu-preview-shimmer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg,
            rgba(255, 255, 255, 0.01) 0%,
            rgba(255, 255, 255, 0.04) 50%,
            rgba(255, 255, 255, 0.01) 100%);
    background-size: 200% 100%;
    animation: cstu-shimmer 1.6s linear infinite;
}

.cstu-preview-loading-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-dim, #c4c4cc);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

@keyframes cstu-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Result */
.cstu-preview-result {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cstu-preview-img {
    flex: 1;
    min-height: 0;
    width: 100%;
    object-fit: contain;
    display: block;
    background: rgba(0, 0, 0, 0.45);
    animation: cstu-fade-in 380ms cubic-bezier(.2, .7, .2, 1);
}

@keyframes cstu-fade-in {
    from { opacity: 0; transform: scale(0.985); }
    to   { opacity: 1; transform: scale(1); }
}

.cstu-preview-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.cstu-preview-summary {
    padding: 10px 16px;
    font-size: 11.5px;
    letter-spacing: 0.02em;
    color: var(--text-muted, #a1a1aa);
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.55) 100%);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Action chips (on the result) */
.cstu-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(145deg,
            rgba(12, 12, 14, 0.8) 0%,
            rgba(12, 12, 14, 0.65) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-main, #fafafa);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 180ms, background 180ms, transform 120ms;
}

.cstu-chip i { font-size: 14px; }

.cstu-chip:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background:
        linear-gradient(145deg,
            rgba(22, 22, 26, 0.9) 0%,
            rgba(14, 14, 18, 0.75) 100%);
}

.cstu-chip:active { transform: scale(0.97); }

.cstu-chip--primary {
    background: linear-gradient(145deg, #ffffff 0%, #d4d4d8 100%);
    color: #050506;
    border-color: rgba(255, 255, 255, 0.5);
}

.cstu-chip--primary:hover {
    background: linear-gradient(145deg, #ffffff 0%, #e4e4e7 100%);
    border-color: rgba(255, 255, 255, 0.8);
}

/* ── Footer (generate CTA) ─────────────────────────────────────── */

.cstu-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 2px 0;
}

.cstu-footer-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted, #a1a1aa);
    font-size: 12px;
    letter-spacing: 0.01em;
}

.cstu-footer-hint i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.cstu-generate {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(145deg, #ffffff 0%, #d4d4d8 100%);
    color: #050506;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 4px 16px rgba(255, 255, 255, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 140ms, box-shadow 180ms, background 180ms;
}

.cstu-generate:hover {
    background: linear-gradient(145deg, #ffffff 0%, #e4e4e7 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 6px 20px rgba(255, 255, 255, 0.18),
        0 12px 32px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.cstu-generate:active { transform: translateY(0); }

.cstu-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cstu-generate-sep {
    color: rgba(5, 5, 6, 0.35);
    font-weight: 400;
}

.cstu-generate-cost {
    font-weight: 600;
    color: rgba(5, 5, 6, 0.7);
}

.cstu-spin {
    display: inline-block;
    animation: cstu-spin 1s linear infinite;
}

@keyframes cstu-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Toast ─────────────────────────────────────────────────────── */

.cstu-toast-host {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    z-index: 100;
}

.cstu-toast {
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(20, 20, 24, 0.9), rgba(10, 10, 12, 0.85));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-main, #fafafa);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.005em;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 240ms, transform 240ms;
    pointer-events: auto;
}

.cstu-toast--in {
    opacity: 1;
    transform: translateY(0);
}

.cstu-toast--error {
    border-color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(145deg, rgba(30, 20, 22, 0.92), rgba(18, 10, 12, 0.88));
}

.cstu-toast--success {
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, rgba(22, 26, 22, 0.92), rgba(12, 16, 12, 0.88));
}

/* ===============================================================
   Round 13 — /cam Light Chrome (root files)
   ---------------------------------------------------------------
   Mirror of Round 12 in studio/studio.css, applied to this root
   cinema.css that owns the .cstu-* (Cinema Studio scroll-wheel
   picker) chrome rendered on /cam. In light mode the scene
   textarea, picker rail, action chips, footer hint, and toast
   flip to light surfaces with dark text and the global blue
   --accent. The .cstu-preview (which displays dark cinema/film
   imagery) STAYS DARK so the black-background camera shots don't
   sit inside a harsh white outline.

   Tokens used are the global semantic tokens defined in style.css
   (--surface-0/1/2, --text-strong/body/muted, --accent,
   --accent-soft, --border-soft/strong, --shadow-md).

   Dark-mode rules above are untouched.
   =============================================================== */

/* (A) Scrollable view container — cinema-view itself uses
       --bg-dark/--text-main fallbacks. In light mode flip to
       light surface. */
[data-theme="light"] #cinema-view {
    background: var(--surface-0);
    color: var(--text-strong);
}

/* (B) Scene textarea (top input) */
[data-theme="light"] .cstu-scene-label {
    color: var(--text-muted);
}
[data-theme="light"] .cstu-scene-input {
    background: var(--surface-1);
    border-color: var(--border-soft);
    color: var(--text-strong);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
[data-theme="light"] .cstu-scene-input::placeholder {
    color: var(--text-faint);
}
[data-theme="light"] .cstu-scene-input:focus {
    border-color: var(--accent);
    background: var(--surface-0);
}

/* (C) Pickers rail — left column with scroll wheels */
[data-theme="light"] .cstu-pickers {
    background: var(--surface-1);
    border-color: var(--border-soft);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 4px 12px rgba(15, 23, 42, 0.06);
    scrollbar-color: rgba(15, 23, 42, 0.18) transparent;
}
[data-theme="light"] .cstu-pickers::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.18);
}
[data-theme="light"] .cstu-picker {
    border-bottom-color: var(--border-soft);
}
[data-theme="light"] .cstu-picker-label {
    color: var(--text-muted);
}

/* (D) Wheel viewport + items */
[data-theme="light"] .cstu-wheel {
    background: var(--surface-2);
    border-color: var(--border-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
[data-theme="light"] .cstu-wheel:focus-visible {
    border-color: var(--accent);
}
[data-theme="light"] .cstu-wheel-mask--top {
    background: linear-gradient(to bottom,
        rgba(247, 248, 250, 0.95) 0%,
        rgba(247, 248, 250, 0.55) 60%,
        rgba(247, 248, 250, 0) 100%);
}
[data-theme="light"] .cstu-wheel-mask--bottom {
    background: linear-gradient(to top,
        rgba(247, 248, 250, 0.95) 0%,
        rgba(247, 248, 250, 0.55) 60%,
        rgba(247, 248, 250, 0) 100%);
}
[data-theme="light"] .cstu-wheel-selected {
    background:
        linear-gradient(145deg,
            rgba(59, 130, 246, 0.10) 0%,
            rgba(59, 130, 246, 0.04) 100%);
    box-shadow:
        inset 0 1px 0 rgba(59, 130, 246, 0.15),
        inset 0 -1px 0 rgba(15, 23, 42, 0.04);
}
[data-theme="light"] .cstu-wheel-item {
    color: var(--text-muted);
}
[data-theme="light"] .cstu-wheel-item.is-selected {
    color: var(--text-strong);
}

/* (E) Preview area — STAYS DARK in light mode (camera/film
       imagery is itself black; light surround would clash). */
[data-theme="light"] .cstu-preview {
    background:
        linear-gradient(145deg,
            rgba(20, 20, 24, 0.96) 0%,
            rgba(10, 10, 12, 0.94) 50%,
            rgba(6, 6, 8, 0.92) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 24px rgba(15, 23, 42, 0.18);
}
[data-theme="light"] .cstu-preview-placeholder {
    color: rgba(255, 255, 255, 0.55);
}
[data-theme="light"] .cstu-preview-placeholder i {
    color: rgba(255, 255, 255, 0.30);
}
[data-theme="light"] .cstu-preview-placeholder p {
    color: rgba(255, 255, 255, 0.72);
}
[data-theme="light"] .cstu-preview-placeholder-hint {
    color: rgba(255, 255, 255, 0.55) !important;
}
[data-theme="light"] .cstu-preview-shimmer {
    background:
        linear-gradient(120deg,
            rgba(255, 255, 255, 0.01) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.01) 100%);
    background-size: 200% 100%;
}
[data-theme="light"] .cstu-preview-loading-text {
    color: rgba(255, 255, 255, 0.72);
}
[data-theme="light"] .cstu-preview-img {
    background: rgba(0, 0, 0, 0.45);
}
[data-theme="light"] .cstu-preview-summary {
    color: rgba(255, 255, 255, 0.72);
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.55) 100%);
}

/* Action chips ON the preview — these sit on the dark image, so
   they get a darker glassy treatment regardless of theme but with
   slightly higher contrast borders in light mode for readability
   when the chip falls over a brighter region. */
[data-theme="light"] .cstu-chip {
    border-color: rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(145deg,
            rgba(20, 20, 22, 0.85) 0%,
            rgba(12, 12, 14, 0.70) 100%);
    color: #fafafa;
}
[data-theme="light"] .cstu-chip:hover {
    border-color: rgba(255, 255, 255, 0.36);
    background:
        linear-gradient(145deg,
            rgba(28, 28, 32, 0.92) 0%,
            rgba(18, 18, 22, 0.78) 100%);
}
[data-theme="light"] .cstu-chip--primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}
[data-theme="light"] .cstu-chip--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* (F) Footer (hint + GENERATE) */
[data-theme="light"] .cstu-footer-hint {
    color: var(--text-muted);
}
[data-theme="light"] .cstu-footer-hint i {
    color: var(--text-faint);
}
[data-theme="light"] .cstu-generate {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.20),
        0 4px 12px rgba(59, 130, 246, 0.30),
        0 8px 18px rgba(15, 23, 42, 0.10);
}
[data-theme="light"] .cstu-generate:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 6px 16px rgba(59, 130, 246, 0.40),
        0 12px 24px rgba(15, 23, 42, 0.14);
}
[data-theme="light"] .cstu-generate-sep {
    color: rgba(255, 255, 255, 0.55);
}
[data-theme="light"] .cstu-generate-cost {
    color: rgba(255, 255, 255, 0.85);
}

/* (G) Toast — light surface in light mode */
[data-theme="light"] .cstu-toast {
    background: var(--surface-1);
    border-color: var(--border-soft);
    color: var(--text-strong);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}
[data-theme="light"] .cstu-toast--error {
    border-color: rgba(239, 68, 68, 0.4);
    background: var(--surface-1);
    color: #b91c1c;
}
[data-theme="light"] .cstu-toast--success {
    border-color: var(--accent-soft);
    background: var(--surface-1);
    color: var(--accent);
}

/* ============================================================
   Round 16 — Opacity-fade text contrast
   Generate button disabled state used opacity:0.6 — fine on the
   dark gradient, but the light-mode variant uses dark text on a
   pale silver gradient and the same opacity erases the label.
   ============================================================ */
[data-theme="light"] .cstu-generate:disabled {
    opacity: 0.85;
    color: var(--text-muted);
}
