/* Shared styles for /demo, /demo/tts, /demo/asr — matches Tynrai's paper/ink theme */

:root {
    --c-ink: #1a1208;
    --c-paper: #f5f0e8;
    --c-green: #2E4A35;
    --c-green-dark: #1e3324;
    --c-brown: #8b4513;
    --c-border: rgba(46, 74, 53, 0.2);
    --c-surface: rgba(232, 223, 200, 0.4);

    --f-sans: 'Inter', sans-serif;
    --f-serif: 'Playfair Display', serif;
    --f-mono: 'DM Mono', monospace;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--f-sans);
    background-color: var(--c-paper);
    color: var(--c-ink);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(46, 74, 53, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 74, 53, 0.07) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center center;
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
}

h1, h2, h3, h4 { font-family: var(--f-serif); color: var(--c-green); font-weight: 800; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.eyebrow {
    font-family: var(--f-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-brown);
    display: block;
    margin-bottom: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: var(--f-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--c-green);
    background: transparent;
    color: var(--c-green);
    border-radius: 100px;
    transition: all 0.4s var(--ease);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.btn:hover { background: var(--c-green); color: var(--c-paper); }
.btn-solid { background: var(--c-green); color: var(--c-paper); }
.btn-solid:hover { background: var(--c-brown); border-color: var(--c-brown); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:hover { background: transparent; color: var(--c-green); }

/* --- Floating Navigation --- */
.nav-wrapper {
    position: fixed;
    top: 2rem;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    pointer-events: none;
}

nav {
    pointer-events: auto;
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--c-border);
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 3rem;
    box-shadow: 0 10px 40px rgba(26, 18, 8, 0.08);
    transition: all 0.4s var(--ease);
}

.brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--f-serif); font-weight: 800; font-size: 1.4rem; }
.brand img { height: 30px; width: auto; }
.brand .ai { color: var(--c-brown); font-style: italic; font-weight: 400; }

.nav-links { display: flex; gap: 2rem; font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.nav-links a { position: relative; padding: 0.5rem 0; color: var(--c-ink); }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--c-brown); transition: width 0.3s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.highlight { color: var(--c-brown); font-weight: 500; }
.nav-links a.active { color: var(--c-brown); }

.mobile-toggle { display: none; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--c-green); }

@media (max-width: 768px) {
    nav { width: 100%; border-radius: 0; justify-content: space-between; padding: 1rem 1.5rem; }
    .nav-wrapper { top: 0; padding: 0; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--c-paper);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--c-border);
        align-items: flex-start;
    }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: block; }
}

/* --- Page header (used across demo pages) --- */
.demo-page-header {
    padding-top: 10rem;
    padding-bottom: 3rem;
    text-align: center;
}

.demo-page-header h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; margin-bottom: 1rem; }
.demo-page-header h1 .italic { font-style: italic; font-weight: 400; color: var(--c-brown); }
.demo-page-header p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; opacity: 0.75; }

.demo-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 100px;
    border: 1px solid var(--c-border);
    background: rgba(250, 247, 241, 0.7);
    font-family: var(--f-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-green);
    margin-top: 8rem;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.demo-back:hover {
    color: var(--c-brown);
    border-color: var(--c-brown);
    background: rgba(250, 247, 241, 0.95);
}
/* When a back-link precedes the header, it already clears the fixed nav —
   the header doesn't need its own top clearance on top of that. */
.demo-back + .demo-page-header { padding-top: 0; }

@media (max-width: 768px) {
    .demo-back { margin-top: 6rem; }
}

/* --- Demo hub cards --- */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 6rem;
}

.demo-card {
    padding: 3rem 2.5rem;
    border: 1px solid var(--c-border);
    border-radius: 1.25rem;
    background: rgb(250 247 241);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.demo-card:hover {
    border-color: var(--c-brown);
    box-shadow: 0 16px 40px -20px rgba(26, 18, 8, 0.25);
    transform: translateY(-4px);
}

.demo-card i.demo-icon { font-size: 1.5rem; color: var(--c-brown); margin-bottom: 2rem; display: block; }
.demo-card h3 { font-size: 1.8rem; margin-bottom: 0.75rem; }
.demo-card p { font-size: 1rem; color: #4a4036; margin-bottom: 1.5rem; }

.demo-card ul { margin: 0 0 1.5rem; flex: 1; }
.demo-card ul li {
    font-family: var(--f-mono);
    font-size: 0.85rem;
    color: #4a4036;
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--c-border);
}
.demo-card ul li:last-child { border-bottom: none; }

.demo-card .demo-card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--f-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-green);
    font-weight: 500;
}

.demo-card:hover .demo-card-cta { color: var(--c-brown); }
.demo-card .demo-card-cta i { transition: transform 0.3s var(--ease); }
.demo-card:hover .demo-card-cta i { transform: translateX(4px); }

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

/* --- Demo widget (TTS / ASR panels) --- */
.demo-widget-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 6rem;
}

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

.demo-panel {
    background: rgb(250 247 241);
    border: 1px solid var(--c-border);
    border-radius: 1.25rem;
    padding: 2rem;
}

.demo-panel-title {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-brown);
    margin-bottom: 1rem;
    display: block;
}

.demo-field-label {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4a4036;
    display: block;
    margin-bottom: 0.6rem;
}

textarea.demo-input, select.demo-input, input.demo-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--c-border);
    color: var(--c-ink);
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.demo-input::placeholder, input.demo-input::placeholder { color: rgba(26, 18, 8, 0.35); }

textarea.demo-input:focus, select.demo-input:focus, input.demo-input:focus {
    outline: none;
    border-color: var(--c-brown);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.12);
}

select.demo-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a1208' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.demo-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
@media (max-width: 520px) { .demo-grid-2 { grid-template-columns: 1fr; } }

.demo-count { text-align: right; font-family: var(--f-mono); font-size: 0.75rem; opacity: 0.5; margin-top: 0.4rem; }

.demo-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #4a4036;
    cursor: pointer;
    user-select: none;
}
.demo-check input { width: 1rem; height: 1rem; accent-color: var(--c-brown); cursor: pointer; }

.demo-slider { margin-top: 1.1rem; }
.demo-slider label { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--f-mono); font-size: 0.75rem; color: #4a4036; margin-bottom: 0.5rem; }
.demo-slider output { font-weight: 600; color: var(--c-brown); }
.demo-slider input[type="range"] { width: 100%; accent-color: var(--c-brown); cursor: pointer; }
.demo-slider p { margin-top: 0.4rem; font-size: 0.75rem; opacity: 0.55; }

.demo-accordion { margin-top: 1.25rem; border-top: 1px solid var(--c-border); }
.demo-accordion > summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 0;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4a4036;
    cursor: pointer;
    list-style: none;
}
.demo-accordion > summary::-webkit-details-marker { display: none; }
.demo-accordion > summary:hover { color: var(--c-brown); }
.demo-accordion-chevron { margin-left: auto; transition: transform 0.25s ease; }
.demo-accordion[open] .demo-accordion-chevron { transform: rotate(180deg); }

.demo-run-btn {
    width: 100%;
    margin-top: 1.75rem;
    justify-content: center;
}

.demo-btn-busy { display: none; align-items: center; gap: 0.6rem; }
.demo-btn.is-busy .demo-btn-label { display: none; }
.demo-btn.is-busy .demo-btn-busy { display: inline-flex; }
.demo-btn { display: inline-flex; align-items: center; gap: 0.6rem; }

.demo-spinner {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    border: 2px solid rgba(46, 74, 53, 0.25);
    border-top-color: var(--c-green);
    animation: demo-spin 0.7s linear infinite;
}
@keyframes demo-spin { to { transform: rotate(360deg); } }

.demo-output {
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.demo-output-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(26, 18, 8, 0.35);
    padding: 2rem 0;
    gap: 0.75rem;
}
.demo-output-empty i { font-size: 2rem; color: var(--c-brown); opacity: 0.5; }
.demo-output-empty [data-lucide] { color: var(--c-brown); opacity: 0.5; }

.demo-status {
    margin-top: 1.25rem;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.45;
    font-family: var(--f-sans);
}
.demo-status:empty { display: none; }
.demo-status[data-state="working"] { color: var(--c-green-dark); background: rgba(46, 74, 53, 0.08); border: 1px solid rgba(46, 74, 53, 0.2); }
.demo-status[data-state="ok"] { color: #1e5a2d; background: rgba(46, 122, 74, 0.1); border: 1px solid rgba(46, 122, 74, 0.25); }
.demo-status[data-state="error"] { color: #8b1a1a; background: rgba(139, 26, 26, 0.08); border: 1px solid rgba(139, 26, 26, 0.22); }

.demo-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.25rem 1.25rem;
    border-radius: 1rem;
    border: 2px dashed var(--c-border);
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.demo-drop:hover { border-color: var(--c-brown); background: rgba(255, 255, 255, 0.65); }
.demo-drop.is-dragging { border-color: var(--c-brown); border-style: solid; background: rgba(139, 69, 19, 0.08); }
.demo-drop i { font-size: 1.6rem; color: var(--c-brown); margin-bottom: 0.6rem; }
.demo-drop [data-lucide] { color: var(--c-brown); }
.demo-drop .demo-drop-hint { font-size: 0.75rem; opacity: 0.5; margin-top: 0.3rem; }

.demo-segment {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--c-border);
}
.demo-segment button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #4a4036;
    font-family: var(--f-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.demo-segment button.is-active { background: var(--c-green); color: var(--c-paper); }

.demo-file-info {
    margin-top: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--c-border);
    padding: 0.85rem 1rem;
}
.demo-file-info .row { display: flex; align-items: center; gap: 0.75rem; }
.demo-file-info .name { font-size: 0.85rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-file-info button { background: none; border: none; color: rgba(26, 18, 8, 0.4); cursor: pointer; }
.demo-file-info button:hover { color: var(--c-ink); }
.demo-file-info audio { width: 100%; margin-top: 0.65rem; }

.demo-record {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 2.25rem 1.25rem;
    border-radius: 1rem;
    border: 2px dashed var(--c-border);
    background: rgba(255, 255, 255, 0.4);
}
.demo-record-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    border: none;
    border-radius: 50%;
    background: var(--c-brown);
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.25s ease, scale 0.25s var(--ease);
}
.demo-record-btn:hover { scale: 1.06; }
.demo-record.is-recording .demo-record-btn { background: #b91c1c; animation: demo-pulse 1.6s ease-in-out infinite; }
@keyframes demo-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.4); }
    50% { box-shadow: 0 0 0 14px rgba(185, 28, 28, 0); }
}
.demo-record-time { font-family: var(--f-mono); font-size: 1.4rem; font-weight: 600; color: var(--c-ink); }
.demo-record-hint { font-size: 0.78rem; opacity: 0.5; text-align: center; }

.demo-audio-card {
    display: inline-flex;
    background: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(26, 18, 8, 0.06);
    width: 100%;
}
.demo-audio-card audio { display: block; width: 100%; }

.demo-transcript {
    font-family: var(--f-serif);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--c-ink);
    white-space: pre-wrap;
    flex: 1;
}

.seg-list { display: flex; flex-direction: column; gap: 1.25rem; flex: 1; }
.seg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.seg-speaker {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-family: var(--f-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--seg-fg, var(--c-green));
    background: var(--seg-bg, rgba(46, 74, 53, 0.12));
}
.seg-time { font-family: var(--f-mono); font-size: 0.72rem; opacity: 0.45; }
.seg-text { font-size: 0.98rem; line-height: 1.6; color: var(--c-ink); }

.demo-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    color: var(--c-green);
    font-family: var(--f-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}
.demo-copy-btn:hover { color: var(--c-brown); }

.demo-stub-banner {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(139, 69, 19, 0.35);
    background: rgba(139, 69, 19, 0.08);
    padding: 0.85rem 1.25rem;
    font-size: 0.85rem;
    color: #6b3410;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.demo-note {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: -3rem;
    margin-bottom: 3rem;
}

.hidden { display: none !important; }

/* --- Footer (shared) --- */
footer { padding: 4rem 0 2rem; border-top: 1px solid var(--c-border); margin-top: 4rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; margin-bottom: 3rem; }
.footer-grid h2 { font-size: 2rem; }
.footer-grid p { font-style: italic; opacity: 0.6; margin-top: 0.5rem; }
.f-links { display: flex; flex-direction: column; gap: 0.75rem; font-family: var(--f-mono); font-size: 0.85rem; margin-left: auto; }
.f-links a { opacity: 0.7; transition: opacity 0.2s ease, color 0.2s ease; }
.f-links a:hover { opacity: 1; color: var(--c-brown); }
.footer-bottom { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 0.75rem; opacity: 0.5; flex-wrap: wrap; gap: 0.5rem; }

/* --- Lucide icon size utilities (Tailwind-style, used by demo widgets) --- */
[data-lucide] { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.w-3\.5 { width: 0.875rem; }
.h-3\.5 { height: 0.875rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.ml-auto { margin-left: auto; }

/* --- Custom select dropdown (ports Ri app's ri-select, recoloured to Tynrai) --- */
.ri-select { position: relative; }

.ri-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--c-border);
    color: var(--c-ink);
    font-size: 0.95rem;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ri-select-btn:hover { border-color: var(--c-brown); }

.ri-select-btn:focus-visible,
.ri-select.is-open .ri-select-btn {
    outline: none;
    border-color: var(--c-brown);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.15);
}

.ri-select-chevron { transition: transform 0.25s ease; flex: none; color: var(--c-ink); opacity: 0.6; }
.ri-select.is-open .ri-select-chevron { transform: rotate(180deg); }

.ri-select-list {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-height: min(16rem, 60vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 1rem;
    background: rgb(250 247 241);
    border: 1px solid var(--c-border);
    box-shadow: 0 18px 40px -18px rgba(26, 18, 8, 0.35);
    opacity: 0;
    translate: 0 -6px;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, translate 0.2s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s linear 0.2s;
}

.ri-select-list.is-open {
    opacity: 1;
    translate: 0 0;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.2s ease, translate 0.2s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s;
}

.ri-select-option {
    padding: 0.6rem 0.85rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    color: var(--c-ink);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ri-select-option:hover,
.ri-select-option.is-active { background: rgba(139, 69, 19, 0.1); color: var(--c-ink); }

.ri-select-option[aria-selected="true"] {
    background: var(--c-brown);
    color: #fff;
    font-weight: 600;
}

/* --- Segmented control icon variant (Upload/Record toggle in ASR) --- */
.demo-segment button [data-lucide] { color: currentColor; }
