/* ---- the sound family's looks (Layout/ToolLooks.cs) ------------------------------------------------------------
   What each look is made of is in looks.css; this sheet gives each of its tools its colour and its own touches:
   Talk a voice orb in still ripples with the turn as speech bubbles, the audio studio teal layered-waveform chrome, the
   music studio an orange keyboard strip and a sequencer's lit display, the player a record on a turntable, and the three
   form tools a stage that says what lands there — a spectrogram, manuscript paper, a track branching into a new one.
   Studios keep their working canvases as they are; only the chrome around them is dressed. */

.look--talk { --look-hue: 262; --look-turn: 30; }
.look--audio { --look-hue: 182; --look-turn: -26; }
.look--music { --look-hue: 22; --look-turn: -32; }
.look--player { --look-hue: 318; --look-turn: 40; }
.look--sound-effects { --look-hue: 46; --look-turn: -42; }
.look--text-to-music { --look-hue: 132; --look-turn: -40; }
.look--from-a-track { --look-hue: 222; --look-turn: 62; }
.look--artists { --look-hue: 292; --look-turn: 36; }

/* The studios and the player take the tool's colour as their accent, so a selected tool, an "on" button and the Export button
   all speak it. Dark in the light theme (white text on it), light in the dark theme (dark text on it), as the app's own accent. */
.app__content.look--audio .ae,
.app__content.look--music .mu,
.app__content.look--player .mbpage,
.app__content.look--talk .talk {
    --rl-accent: hsl(var(--look-hue) 72% 34%);
    --rl-accent-contrast: #fff;
    --sound-text: hsl(var(--look-hue) 60% 30%);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .app__content.look--audio .ae,
    :root:not([data-theme="light"]) .app__content.look--music .mu,
    :root:not([data-theme="light"]) .app__content.look--player .mbpage,
    :root:not([data-theme="light"]) .app__content.look--talk .talk {
        --rl-accent: hsl(var(--look-hue) 76% 64%);
        --rl-accent-contrast: #0d1017;
        --sound-text: hsl(var(--look-hue) 80% 78%);
    }
}
:root[data-theme="dark"] .app__content.look--audio .ae,
:root[data-theme="dark"] .app__content.look--music .mu,
:root[data-theme="dark"] .app__content.look--player .mbpage,
:root[data-theme="dark"] .app__content.look--talk .talk {
    --rl-accent: hsl(var(--look-hue) 76% 64%);
    --rl-accent-contrast: #0d1017;
    --sound-text: hsl(var(--look-hue) 80% 78%);
}

/* =================================================================================================================
   Talk — the orb is the whole interface. It sits in still ripples of the voice's colour; the rings Talk.razor.css animates
   still only move while something is heard or said, so a still orb still means nobody is listening. */

.app__content.look--talk .talk {
    overflow-x: clip;
    background:
        radial-gradient(44rem 30rem at 50% 36%, color-mix(in srgb, var(--look-c) 17%, transparent), transparent 70%),
        radial-gradient(34rem 18rem at 50% 104%, color-mix(in srgb, var(--look-c2) 9%, transparent), transparent 72%);
}

.app__content.look--talk .talk__stage { isolation: isolate; }

.app__content.look--talk .orb {
    width: 10rem;
    height: 10rem;
    background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--look-c) 30%, var(--rl-surface-raised)), color-mix(in srgb, var(--look-c) 8%, var(--rl-surface-sunken)) 74%);
    color: var(--sound-text);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.1),
        0 0 0 1px color-mix(in srgb, var(--look-c) 40%, transparent),
        0 0 0 9px color-mix(in srgb, var(--look-c) 7%, transparent),
        0 24px 60px -20px hsl(var(--look-hue) 80% 45% / 0.6);
}

/* Still ripples around it, like the surface of a pond: decoration, never animated. */
.app__content.look--talk .orb::before {
    content: "";
    position: absolute;
    inset: -7rem;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    background:
        repeating-radial-gradient(circle, transparent 0 1.85rem, hsl(var(--look-hue) 72% 62% / 0.2) 1.85rem calc(1.85rem + 1.5px)),
        radial-gradient(circle, hsl(var(--look-hue) 80% 60% / 0.16), transparent 62%);
    -webkit-mask-image: radial-gradient(circle, transparent 30%, #000 33%, #000 48%, transparent 70%);
    mask-image: radial-gradient(circle, transparent 30%, #000 33%, #000 48%, transparent 70%);
}

.app__content.look--talk .orb:hover { color: var(--rl-accent); }
.app__content.look--talk .orb__icon { width: 2.7rem; height: 2.7rem; }
.app__content.look--talk .orb__ring { border-color: var(--look-c); }

/* Live: the orb lights up in the voice's colours. Listening is lit, hearing speech is brighter, thinking dims, speaking turns. */
.app__content.look--talk .orb--live {
    background: radial-gradient(circle at 38% 30%, hsl(var(--look-hue) 90% 82%), var(--look-c) 42%, hsl(calc(var(--look-hue) + var(--look-turn)) 62% 38%) 100%);
    color: #fff;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--look-c) 50%, transparent), 0 0 64px -8px hsl(var(--look-hue) 85% 60% / 0.65);
}
.app__content.look--talk .orb--speech {
    background: radial-gradient(circle at 38% 30%, #fff, hsl(var(--look-hue) 90% 72%) 36%, var(--look-c) 100%);
    box-shadow: 0 0 0 2px var(--look-c), 0 0 90px 0 hsl(var(--look-hue) 85% 62% / 0.7);
}
.app__content.look--talk .orb--thinking {
    background: radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--look-c) 40%, var(--rl-surface-raised)), color-mix(in srgb, var(--look-c) 14%, var(--rl-surface-sunken)) 74%);
    color: var(--rl-text-muted);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--look-c) 35%, transparent);
}
.app__content.look--talk .orb--speaking {
    background: radial-gradient(circle at 38% 30%, hsl(calc(var(--look-hue) + var(--look-turn)) 90% 82%), var(--look-c2) 44%, hsl(var(--look-hue) 60% 36%) 100%);
    color: #fff;
}

.app__content.look--talk .talk__state {
    padding: 0.28rem 0.85rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--look-c) 12%, transparent);
    color: var(--sound-text);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.app__content.look--talk .talk__studioLink {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--look-c) 40%, var(--rl-border));
    color: var(--sound-text);
}

/* The one exchange on screen, as two speech bubbles: what you said on the right, the answer on the left. */
.app__content.look--talk .talk__exchange { width: min(42rem, 100%); }

.app__content.look--talk .talk__said {
    align-self: flex-end;
    max-width: 85%;
    padding: 0.6rem 1rem;
    border-radius: 1.25rem 1.25rem 0.35rem 1.25rem;
    background: color-mix(in srgb, var(--look-c) 16%, var(--rl-surface-raised));
    border: 1px solid color-mix(in srgb, var(--look-c) 32%, transparent);
    color: var(--rl-text);
    text-align: left;
}

.app__content.look--talk .talk__answer {
    position: relative;
    align-self: flex-start;
    max-width: 94%;
    padding: 0.8rem 1.15rem;
    border-radius: 1.35rem 1.35rem 1.35rem 0.35rem;
    background: var(--rl-surface-raised);
    border: 1px solid var(--rl-border);
    box-shadow: 0 12px 32px -20px rgb(0 0 0 / 0.55);
    font-size: 1.2rem;
    text-align: left;
}

.app__content.look--talk .talk__answer::before {
    content: "";
    position: absolute;
    left: -0.45rem;
    bottom: -0.45rem;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--look-c), var(--look-c2));
    box-shadow: 0 0 0 3px var(--rl-bg);
}

/* The pickers under it: one capsule, like a radio's front panel. */
.app__content.look--talk .talk__foot {
    padding: 0.55rem 0.85rem;
    border-radius: 1.6rem;
    border: 1px solid color-mix(in srgb, var(--look-c) 26%, var(--rl-border));
    background: color-mix(in srgb, var(--look-c) 5%, var(--rl-surface));
    box-shadow: 0 14px 34px -24px hsl(var(--look-hue) 60% 30% / 0.7);
}

/* =================================================================================================================
   Audio studio — teal chrome around the editor: a waveform mark in the menu bar, a lit transport, layered lanes. The lanes
   and the waveforms drawn in them keep their own colours. */

.app__content.look--audio .ae > .pe__top {
    background: linear-gradient(90deg, color-mix(in srgb, var(--look-c) 16%, var(--rl-surface)), var(--rl-surface) 42%);
    box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--look-c) 45%, transparent);
}

.app__content.look--audio .ae .pe__brand,
.app__content.look--music .mu .pe__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.app__content.look--audio .ae .pe__brand::before,
.app__content.look--music .mu .pe__brand::before {
    content: "";
    flex: none;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.4rem;
    background: linear-gradient(135deg, var(--look-c), var(--look-c2));
    box-shadow: 0 3px 10px -3px hsl(var(--look-hue) 80% 45% / 0.7);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M4 10v4M8 6v12M12 3v18M16 7v10M20 10v4'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23000' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M4 10v4M8 6v12M12 3v18M16 7v10M20 10v4'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.app__content.look--audio .ae-bar {
    background: linear-gradient(180deg, color-mix(in srgb, var(--look-c) 7%, var(--rl-surface)), var(--rl-surface));
}

.app__content.look--audio .ae-play,
.app__content.look--music .mu-play {
    border-radius: 50%;
    background: color-mix(in srgb, var(--look-c) 18%, transparent);
    color: var(--sound-text);
}
.app__content.look--audio .ae-play.is-on,
.app__content.look--music .mu-play.is-on { background: linear-gradient(135deg, var(--look-c), var(--look-c2)); color: #fff; }

.app__content.look--audio .ae-time {
    background: #0b1416;
    border-color: color-mix(in srgb, var(--look-c) 35%, #0b1416);
    color: #9ef3f5;
    text-shadow: 0 0 8px rgb(78 223 228 / 0.55);
}

.app__content.look--audio .ae-tabs .ve-tab.is-on {
    color: var(--sound-text);
    box-shadow: inset 0 -2px 0 var(--look-c);
}

.app__content.look--audio .ae-left .ve-grouphead { color: var(--sound-text); }
.app__content.look--audio .ae-left .ve-item__ico {
    background: color-mix(in srgb, var(--look-c) 14%, transparent);
    color: var(--sound-text);
}

.app__content.look--audio .ae-corner,
.app__content.look--audio .ae-labelhead {
    background: linear-gradient(135deg, color-mix(in srgb, var(--look-c) 12%, var(--rl-surface)), var(--rl-surface));
}

.app__content.look--audio .ae-head {
    background-image: linear-gradient(90deg, color-mix(in srgb, var(--look-c) 6%, transparent), transparent 70%);
}

/* An empty project: three faint layered waveforms behind the sentence. */
.app__content.look--audio .ae-empty {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 180'%3E%3Cg stroke-width='3' stroke-linecap='round' stroke-opacity='.26'%3E%3Cpath d='M10 14.8V45.2M16 17.1V42.9M22 23V37M28 23.4V36.6M34 26V34M40 26.3V33.7M46 27.2V32.8M52 27.4V32.6M58 27.6V32.4M64 27.8V32.2M70 27.9V32.1M76 27.9V32.1M82 28V32M88 18.9V41.1M94 22.2V37.8M100 24.7V35.3M106 25.3V34.7M112 26.8V33.2M118 27.1V32.9M124 27.5V32.5M130 27.6V32.4M136 27.8V32.2M142 27.9V32.1M148 27.9V32.1M154 28V32M160 18.6V41.4M166 21.4V38.6M172 23.4V36.6M178 25.2V34.8M184 26.2V33.8M190 27V33M196 27.5V32.5M202 27.7V32.3M208 27.8V32.2M214 27.8V32.2M220 27.9V32.1M226 27.9V32.1M232 18.7V41.3M238 18.9V41.1M244 23.6V36.4M250 24.6V35.4M256 26V34M262 26.8V33.2M268 27.5V32.5M274 27.6V32.4M280 27.8V32.2M286 27.9V32.1M292 27.9V32.1M298 28V32M304 13.8V46.2M310 22V38M316 22.4V37.6M322 24.5V35.5M328 26.6V33.4M334 27V33M340 27.3V32.7M346 27.5V32.5M352 27.8V32.2M358 27.8V32.2M364 27.9V32.1M370 27.9V32.1M376 18V42M382 21.7V38.3M388 23.7V36.3M394 24.4V35.6M400 25.8V34.2M406 27.1V32.9M412 27.4V32.6M418 27.5V32.5M424 27.8V32.2M430 27.9V32.1M436 27.9V32.1M442 28V32M448 13.2V46.8M454 21.2V38.8M460 22V38M466 24.5V35.5M472 26.4V33.6M478 27.1V32.9M484 27.4V32.6M490 27.6V32.4M496 27.7V32.3M502 27.9V32.1M508 27.9V32.1M514 27.9V32.1M520 13.6V46.4M526 17.4V42.6M532 21.6V38.4M538 24V36M544 26V34M550 26.5V33.5M556 27.4V32.6M562 27.6V32.4M568 27.8V32.2M574 27.8V32.2M580 27.9V32.1M586 27.9V32.1' stroke='%234edfe4'/%3E%3Cpath d='M10 87V93M16 81.3V98.7M22 76.7V103.3M28 74.3V105.7M34 74.4V105.6M40 77.1V102.9M46 81.8V98.2M52 86.4V93.6M58 80.8V99.2M64 76.4V103.6M70 74.2V105.8M76 74.6V105.4M82 77.5V102.5M88 82.3V97.7M94 85.9V94.1M100 80.3V99.7M106 76.1V103.9M112 74.1V105.9M118 74.7V105.3M124 77.9V102.1M130 82.8V97.2M136 85.3V94.7M142 79.8V100.2M148 75.8V104.2M154 74V106M160 74.9V105.1M166 78.3V101.7M172 83.4V96.6M178 84.8V95.2M184 79.4V100.6M190 75.5V104.5M196 74V106M202 75.1V104.9M208 78.7V101.3M214 83.9V96.1M220 84.2V95.8M226 78.9V101.1M232 75.3V104.7M238 74V106M244 75.4V104.6M250 79.1V100.9M256 84.5V95.5M262 83.7V96.3M268 78.5V101.5M274 75V105M280 74V106M286 75.6V104.4M292 79.6V100.4M298 85V95M304 83.1V96.9M310 78.1V101.9M316 74.8V105.2M322 74.1V105.9M328 75.9V104.1M334 80.1V99.9M340 85.6V94.4M346 82.6V97.4M352 77.7V102.3M358 74.6V105.4M364 74.1V105.9M370 76.2V103.8M376 80.5V99.5M382 86.1V93.9M388 82.1V97.9M394 77.3V102.7M400 74.5V105.5M406 74.2V105.8M412 76.6V103.4M418 81V99M424 86.7V93.3M430 81.6V98.4M436 76.9V103.1M442 74.3V105.7M448 74.3V105.7M454 76.9V103.1M460 81.5V98.5M466 86.7V93.3M472 81V99M478 76.6V103.4M484 74.2V105.8M490 74.5V105.5M496 77.3V102.7M502 82V98M508 86.2V93.8M514 80.6V99.4M520 76.2V103.8M526 74.1V105.9M532 74.6V105.4M538 77.6V102.4M544 82.6V97.4M550 85.6V94.4M556 80.1V99.9M562 75.9V104.1M568 74.1V105.9M574 74.8V105.2M580 78V102M586 83.1V96.9' stroke='%2335de9b'/%3E%3Cpath d='M10 148.5V151.5M16 148.5V151.5M22 148.5V151.5M28 148.5V151.5M34 148.5V151.5M40 140.1V159.9M46 144.8V155.2M52 135.4V164.6M58 143.6V156.4M64 132.1V167.9M70 143.6V156.4M76 134.6V165.4M82 136.2V163.8M88 141.4V158.6M94 142.6V157.4M100 143.9V156.1M106 143.8V156.2M112 130.1V169.9M118 132.9V167.1M124 130.1V169.9M130 142.5V157.5M136 137V163M142 138V162M148 140.1V159.9M154 135.8V164.2M160 132.4V167.6M166 132.3V167.7M172 137.7V162.3M178 140.2V159.8M184 148.5V151.5M190 148.5V151.5M196 148.5V151.5M202 148.5V151.5M208 148.5V151.5M214 148.5V151.5M220 148.5V151.5M226 148.5V151.5M232 144.4V155.6M238 145.8V154.2M244 135.5V164.5M250 144.3V155.7M256 132.6V167.4M262 134V166M268 130.6V169.4M274 134.4V165.6M280 141.7V158.3M286 137.2V162.8M292 136.3V163.7M298 136.4V163.6M304 134.4V165.6M310 137.3V162.7M316 137.2V162.8M322 130V170M328 136.6V163.4M334 140.4V159.6M340 139.9V160.1M346 140.2V159.8M352 132.9V167.1M358 142.4V157.6M364 136.5V163.5M370 148.5V151.5M376 148.5V151.5M382 148.5V151.5M388 148.5V151.5M394 148.5V151.5M400 148.5V151.5M406 148.5V151.5M412 148.5V151.5M418 131.1V168.9M424 135.8V164.2M430 136.9V163.1M436 141.8V158.2M442 145.9V154.1M448 130.7V169.3M454 132.3V167.7M460 132.5V167.5M466 137.9V162.1M472 133.2V166.8M478 141.6V158.4M484 137.7V162.3M490 137.9V162.1M496 136.3V163.7M502 138.2V161.8M508 142.6V157.4M514 130.1V169.9M520 131.5V168.5M526 137.1V162.9M532 133V167M538 144.2V155.8M544 136.3V163.7M550 134.7V165.3M556 136.9V163.1M562 148.5V151.5M568 148.5V151.5M574 148.5V151.5M580 148.5V151.5M586 148.5V151.5' stroke='%2391eff3'/%3E%3C/g%3E%3C/svg%3E") center calc(50% - 6rem) / min(30rem, 72%) auto no-repeat;
}

/* The mix window: a console on a dark brushed panel, the master strip in the studio's colour. */
.app__content.look--audio .ae-console {
    background: linear-gradient(180deg, color-mix(in srgb, var(--look-c) 6%, transparent), transparent 40%);
}
.app__content.look--audio .ae-strip--master {
    background: linear-gradient(180deg, color-mix(in srgb, var(--look-c) 22%, var(--rl-surface)), var(--rl-surface) 60%);
    border-color: color-mix(in srgb, var(--look-c) 45%, var(--rl-border));
}

.app__content.look--audio .ae-status {
    background: linear-gradient(90deg, color-mix(in srgb, var(--look-c) 12%, var(--rl-surface)), var(--rl-surface) 50%);
}

/* =================================================================================================================
   Music studio — a strip of piano keys along the top, the song position on a sequencer's lit display, orange chrome to go
   with the pads. The arrangement, the step grid and the piano roll keep their own drawing. */

.app__content.look--music .mu > .pe__top {
    position: relative;
    padding-top: 9px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--look-c) 14%, var(--rl-surface)), var(--rl-surface) 45%);
}

.app__content.look--music .mu > .pe__top::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 9px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 7' preserveAspectRatio='none'%3E%3Crect x='0.6' y='0' width='8.8' height='7' rx='.8' fill='%23fff' fill-opacity='.8'/%3E%3Crect x='10.6' y='0' width='8.8' height='7' rx='.8' fill='%23fff' fill-opacity='.8'/%3E%3Crect x='20.6' y='0' width='8.8' height='7' rx='.8' fill='%23fff' fill-opacity='.8'/%3E%3Crect x='30.6' y='0' width='8.8' height='7' rx='.8' fill='%23fff' fill-opacity='.8'/%3E%3Crect x='40.6' y='0' width='8.8' height='7' rx='.8' fill='%23fff' fill-opacity='.8'/%3E%3Crect x='50.6' y='0' width='8.8' height='7' rx='.8' fill='%23fff' fill-opacity='.8'/%3E%3Crect x='60.6' y='0' width='8.8' height='7' rx='.8' fill='%23fff' fill-opacity='.8'/%3E%3Crect x='7' y='0' width='6' height='4.4' rx='.6' fill='%231a0f0a' fill-opacity='.9'/%3E%3Crect x='17' y='0' width='6' height='4.4' rx='.6' fill='%231a0f0a' fill-opacity='.9'/%3E%3Crect x='37' y='0' width='6' height='4.4' rx='.6' fill='%231a0f0a' fill-opacity='.9'/%3E%3Crect x='47' y='0' width='6' height='4.4' rx='.6' fill='%231a0f0a' fill-opacity='.9'/%3E%3Crect x='57' y='0' width='6' height='4.4' rx='.6' fill='%231a0f0a' fill-opacity='.9'/%3E%3C/svg%3E") left top / 84px 9px repeat-x, linear-gradient(90deg, var(--look-c), var(--look-c2));
    pointer-events: none;
}

.app__content.look--music .mu .pe__brand::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 18.5a3.2 3.2 0 1 1-1.6-2.8V4.5l10-2v12.2a3.2 3.2 0 1 1-1.6-2.8V6.3l-6.8 1.4z' fill='%23000'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 18.5a3.2 3.2 0 1 1-1.6-2.8V4.5l10-2v12.2a3.2 3.2 0 1 1-1.6-2.8V6.3l-6.8 1.4z' fill='%23000'/%3E%3C/svg%3E");
}

.app__content.look--music .mu-bar {
    background: linear-gradient(180deg, color-mix(in srgb, var(--look-c) 7%, var(--rl-surface)), var(--rl-surface));
}

/* The song position on an amber display, as on a hardware sequencer. Dark in both themes, like the real thing. */
.app__content.look--music .mu-pos {
    background: linear-gradient(180deg, #1d120b, #120b07);
    color: #ffb27a;
    box-shadow: inset 0 0 0 1px rgb(228 133 78 / 0.35), inset 0 2px 6px rgb(0 0 0 / 0.6);
    text-shadow: 0 0 10px rgb(255 140 70 / 0.65);
    letter-spacing: 0.06em;
}

.app__content.look--music .mu-sb-tabs .ve-tab.is-on,
.app__content.look--music .mu-dtab.is-on {
    color: var(--sound-text);
    box-shadow: inset 0 -2px 0 var(--look-c);
}

.app__content.look--music .mu-dtabs {
    background: linear-gradient(90deg, color-mix(in srgb, var(--look-c) 10%, var(--rl-surface)), var(--rl-surface) 40%);
}

.app__content.look--music .mu-left {
    background-image: linear-gradient(180deg, color-mix(in srgb, var(--look-c) 6%, transparent), transparent 12rem);
}

.app__content.look--music .mu-way {
    border-color: color-mix(in srgb, var(--look-c) 22%, var(--rl-border));
}

.app__content.look--music .mu-status {
    background: linear-gradient(90deg, color-mix(in srgb, var(--look-c) 12%, var(--rl-surface)), var(--rl-surface) 50%);
}

/* =================================================================================================================
   Music player — the now-playing picture is a record on a turntable, the tonearm resting on it; the visualiser strip is a
   row of faint equaliser bars until the music starts. */

.app__content.look--player .mbpage__card {
    background-image: linear-gradient(160deg, color-mix(in srgb, var(--look-c) 9%, transparent), transparent 14rem);
}

.app__content.look--player .mb__now {
    position: relative;
    gap: 2.4rem;
    padding: 0.3rem 0 0.3rem 0.2rem;
}

.app__content.look--player .mb__art {
    position: relative;
    width: 8rem;
    height: 8rem;
    border: 0;
    border-radius: 50%;
    font-size: 0;
    color: transparent;
    background:
        radial-gradient(circle, #0c0a10 0 4.5%, transparent 5%),
        radial-gradient(circle at 44% 40%, hsl(var(--look-hue) 90% 84%), var(--look-c) 13%, var(--look-c2) 26%, transparent 26.6%),
        conic-gradient(from 20deg, transparent 0 8%, rgb(255 255 255 / 0.13) 13%, transparent 19% 50%, rgb(255 255 255 / 0.13) 63%, transparent 69%),
        repeating-radial-gradient(circle, #121016 0 1.6px, #1d1a24 1.6px 2.8px);
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--look-c) 22%, var(--rl-surface)),
        0 0 0 5px color-mix(in srgb, var(--look-c) 35%, transparent),
        0 16px 34px -12px rgb(0 0 0 / 0.65);
    overflow: visible;
}

/* With album art, the art is the record's label. */
.app__content.look--player .mb__art img {
    width: 46%;
    height: 46%;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #0c0a10;
}

/* The tonearm, resting on the record's edge. */
.app__content.look--player .mb__art::after {
    content: "";
    position: absolute;
    top: -0.7rem;
    right: -1.85rem;
    width: 2.6rem;
    height: 6.2rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 100'%3E%3Ccircle cx='28' cy='12' r='10' fill='%232a2430' stroke='%23f391d5' stroke-width='2'/%3E%3Ccircle cx='28' cy='12' r='3.6' fill='%23f391d5'/%3E%3Cpath d='M28 12L30 52L14 84' fill='none' stroke='%23ece7f0' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Crect x='7' y='80' width='13' height='17' rx='2.5' fill='%23ece7f0' transform='rotate(28 13.5 88)'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 3px 4px rgb(0 0 0 / 0.45));
    pointer-events: none;
}

.app__content.look--player .mb__title { font-size: 1.2rem; }
.app__content.look--player .mb__status { color: var(--sound-text); }

.app__content.look--player .mb__viz {
    height: 6rem;
    border-color: color-mix(in srgb, var(--look-c) 30%, var(--rl-border));
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 144 60' preserveAspectRatio='none'%3E%3Crect x='2' y='39' width='8' height='21' rx='2' fill='%23e44eb7' fill-opacity='.2'/%3E%3Crect x='14' y='24' width='8' height='36' rx='2' fill='%23e44eb7' fill-opacity='.2'/%3E%3Crect x='26' y='9' width='8' height='51' rx='2' fill='%23e44eb7' fill-opacity='.2'/%3E%3Crect x='38' y='27' width='8' height='33' rx='2' fill='%23e44eb7' fill-opacity='.2'/%3E%3Crect x='50' y='3' width='8' height='57' rx='2' fill='%23e44eb7' fill-opacity='.2'/%3E%3Crect x='62' y='18' width='8' height='42' rx='2' fill='%23e44eb7' fill-opacity='.2'/%3E%3Crect x='74' y='33' width='8' height='27' rx='2' fill='%23e44eb7' fill-opacity='.2'/%3E%3Crect x='86' y='15' width='8' height='45' rx='2' fill='%23e44eb7' fill-opacity='.2'/%3E%3Crect x='98' y='30' width='8' height='30' rx='2' fill='%23e44eb7' fill-opacity='.2'/%3E%3Crect x='110' y='42' width='8' height='18' rx='2' fill='%23e44eb7' fill-opacity='.2'/%3E%3Crect x='122' y='22.8' width='8' height='37.2' rx='2' fill='%23e44eb7' fill-opacity='.2'/%3E%3Crect x='134' y='36' width='8' height='24' rx='2' fill='%23e44eb7' fill-opacity='.2'/%3E%3C/svg%3E") left bottom / 9rem 70% repeat-x,
        linear-gradient(to top, color-mix(in srgb, var(--look-c) 14%, var(--rl-surface-sunken)), var(--rl-surface-sunken));
}

.app__content.look--player .mb__vizCanvas { color: var(--look-c); }

.app__content.look--player .mb__btn { border-radius: 999px; }
.app__content.look--player .mb__btn--main {
    min-width: 3.1rem;
    height: 3.1rem;
    background: linear-gradient(135deg, var(--look-c), var(--look-c2));
    color: #fff;
    box-shadow: 0 8px 20px -8px hsl(var(--look-hue) 80% 45% / 0.8);
}

.app__content.look--player .mb__add input { border-radius: 999px; padding-inline: 1.1rem; }
.app__content.look--player .mb__add .btn { border-radius: 999px; }

.app__content.look--player .mbpage__about li::marker { color: var(--look-c); }

@media (max-width: 640px) {
    .app__content.look--player .mb__now { gap: 1.9rem; }
    .app__content.look--player .mb__art { width: 5.5rem; height: 5.5rem; }
    .app__content.look--player .mb__art::after { right: -1.5rem; width: 2rem; height: 4.4rem; }
    .app__content.look--talk .orb { width: 8.5rem; height: 8.5rem; }
}

/* =================================================================================================================
   Sound effects — the stage is a spectrogram: a rumble, a bang and footsteps glowing in the frequency bins along its foot. */

.tool.look--sound-effects .tool__stage {
    background-image:
        repeating-linear-gradient(to bottom, color-mix(in srgb, var(--rl-surface-sunken) 60%, transparent) 0 2px, transparent 2px 7px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200' preserveAspectRatio='none'%3E%3Cfilter id='b' x='-20%' y='-20%' width='140%' height='140%'%3E%3CfeGaussianBlur stdDeviation='9'/%3E%3C/filter%3E%3Cg filter='url(%23b)' opacity='.55'%3E%3Cellipse cx='120' cy='190' rx='130' ry='36' fill='%23de4135'/%3E%3Cellipse cx='96' cy='176' rx='78' ry='26' fill='%23e4c14e'/%3E%3Cellipse cx='196' cy='154' rx='66' ry='16' fill='%23de4135' opacity='.6'/%3E%3Crect x='318' y='16' width='24' height='200' rx='12' fill='%23e4c14e'/%3E%3Crect x='325' y='40' width='10' height='170' rx='5' fill='%23fff7d6'/%3E%3Cellipse cx='358' cy='178' rx='46' ry='34' fill='%23de4135'/%3E%3Cellipse cx='440' cy='188' rx='15' ry='22' fill='%23e4c14e'/%3E%3Cellipse cx='484' cy='188' rx='15' ry='22' fill='%23e4c14e' opacity='.8'/%3E%3Cellipse cx='528' cy='188' rx='15' ry='22' fill='%23e4c14e' opacity='.6'/%3E%3Cellipse cx='570' cy='188' rx='15' ry='22' fill='%23e4c14e' opacity='.4'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(90deg, color-mix(in srgb, var(--look-c) 9%, transparent) 0 1px, transparent 1px 3.5rem);
    background-size: 100% 46%, 100% 46%, 100% 100%;
    background-position: left bottom, left bottom, left top;
    background-repeat: no-repeat;
}

.tool.look--sound-effects .tool-sec--toned:nth-child(odd) { --tone: var(--look-c); }
.tool.look--sound-effects .tool-sec--toned:nth-child(even) { --tone: var(--look-c2); }

/* The starter ideas: each group a tab of a sound library, opening to its chips. */
.tool.look--sound-effects .sfx-starters { gap: 0.3rem; }
.tool.look--sound-effects .sfx-starters details {
    border: 1px solid var(--rl-border);
    border-left: 3px solid var(--look-c);
    border-radius: 0.55rem;
    background: var(--rl-surface-raised);
}
.tool.look--sound-effects .sfx-starters details:nth-child(even) { border-left-color: var(--look-c2); }
.tool.look--sound-effects .sfx-starters details[open] { background: color-mix(in srgb, var(--look-c) 7%, var(--rl-surface-raised)); }
.tool.look--sound-effects .sfx-starters summary {
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
    list-style: none;
}
.tool.look--sound-effects .sfx-starters summary::-webkit-details-marker { display: none; }
.tool.look--sound-effects .sfx-starters summary::before {
    content: "";
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    margin-right: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.12rem) rotate(-45deg);
    transition: transform 0.15s ease;
    opacity: 0.6;
}
.tool.look--sound-effects .sfx-starters details[open] summary::before { transform: translateY(-0.2rem) rotate(45deg); }
.tool.look--sound-effects .sfx-chips { padding: 0.1rem 0.6rem 0.55rem; }

.tool.look--sound-effects .tool__actions .btn--primary { border-radius: 0.45rem; letter-spacing: 0.02em; }
/* Gold is too light under white text: the run button takes the deeper end of the tool's colours. */
.tool.look--sound-effects .tool__actions .btn--primary:not(:disabled),
.tool.look--text-to-music .tool__actions .btn--primary:not(:disabled) {
    background: linear-gradient(135deg, hsl(var(--look-hue) 78% 36%), hsl(calc(var(--look-hue) + var(--look-turn)) 70% 42%));
}

/* =================================================================================================================
   Text to music — manuscript paper on the stage, with a few notes on it, and lyrics written on ruled lines. */

.tool.look--text-to-music .tool__stage {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 288'%3E%3Cg opacity='.3'%3E%3Cg fill='%234ee46c'%3E%3Cellipse cx='52' cy='29.5' rx='5.4' ry='4' transform='rotate(-22 52 29.5)'/%3E%3Cpath d='M56.8 28.5V3.5' fill='none' stroke='%234ee46c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/g%3E%3Cg fill='%2384de35'%3E%3Cellipse cx='96' cy='22.5' rx='5.4' ry='4' transform='rotate(-22 96 22.5)'/%3E%3Cpath d='M100.8 21.5V-3.5q7 4 9 11' fill='none' stroke='%2384de35' stroke-width='1.8' stroke-linecap='round'/%3E%3C/g%3E%3Cg fill='%234ee46c'%3E%3Cellipse cx='140' cy='26' rx='5.4' ry='4' transform='rotate(-22 140 26)'/%3E%3Cpath d='M144.8 25V0' fill='none' stroke='%234ee46c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/g%3E%3Cg fill='%2384de35'%3E%3Cellipse cx='300' cy='91' rx='5.4' ry='4' transform='rotate(-22 300 91)'/%3E%3Cpath d='M304.8 90V65q7 4 9 11' fill='none' stroke='%2384de35' stroke-width='1.8' stroke-linecap='round'/%3E%3C/g%3E%3Cg fill='%234ee46c'%3E%3Cellipse cx='342' cy='98' rx='5.4' ry='4' transform='rotate(-22 342 98)'/%3E%3Cpath d='M346.8 97V72' fill='none' stroke='%234ee46c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/g%3E%3Cg fill='%2384de35'%3E%3Cellipse cx='70' cy='159.5' rx='5.4' ry='4' transform='rotate(-22 70 159.5)'/%3E%3Cpath d='M74.8 158.5V133.5' fill='none' stroke='%2384de35' stroke-width='1.8' stroke-linecap='round'/%3E%3C/g%3E%3Cg fill='%234ee46c'%3E%3Cellipse cx='400' cy='177' rx='5.4' ry='4' transform='rotate(-22 400 177)'/%3E%3Cpath d='M404.8 176V151q7 4 9 11' fill='none' stroke='%234ee46c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/g%3E%3Cg fill='%2384de35'%3E%3Cellipse cx='440' cy='170' rx='5.4' ry='4' transform='rotate(-22 440 170)'/%3E%3Cpath d='M444.8 169V144' fill='none' stroke='%2384de35' stroke-width='1.8' stroke-linecap='round'/%3E%3C/g%3E%3Cg fill='%234ee46c'%3E%3Cellipse cx='210' cy='238.5' rx='5.4' ry='4' transform='rotate(-22 210 238.5)'/%3E%3Cpath d='M214.8 237.5V212.5q7 4 9 11' fill='none' stroke='%234ee46c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/g%3E%3Cg fill='%2384de35'%3E%3Cellipse cx='252' cy='245.5' rx='5.4' ry='4' transform='rotate(-22 252 245.5)'/%3E%3Cpath d='M256.8 244.5V219.5' fill='none' stroke='%2384de35' stroke-width='1.8' stroke-linecap='round'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 72' preserveAspectRatio='none'%3E%3Cg stroke='%234ee46c' stroke-opacity='.2' stroke-width='1'%3E%3Cpath d='M0 8.5H40M0 15.5H40M0 22.5H40M0 29.5H40M0 36.5H40'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 30rem 18rem, 2.5rem 4.5rem;
    background-position: center 1.2rem, left 1.2rem;
}

.tool.look--text-to-music .tool-sec--toned:nth-child(odd) { --tone: var(--look-c); }
.tool.look--text-to-music .tool-sec--toned:nth-child(even) { --tone: var(--look-c2); }

.tool.look--text-to-music .tool-sec__ico.ui-ico { border-radius: 50%; }

/* The lyrics, on lined paper that scrolls with the words. */
.tool.look--text-to-music #ttm-lyrics {
    line-height: 1.75rem;
    padding-top: 0.45rem;
    background-image:
        linear-gradient(90deg, transparent 2.1rem, color-mix(in srgb, var(--look-c2) 45%, transparent) 2.1rem calc(2.1rem + 1px), transparent calc(2.1rem + 1px)),
        repeating-linear-gradient(to bottom, transparent 0 calc(1.75rem - 1px), color-mix(in srgb, var(--look-c) 24%, transparent) calc(1.75rem - 1px) 1.75rem);
    background-position: 0 0, 0 0.45rem;
    background-attachment: local;
    padding-left: 2.6rem;
}

.tool.look--text-to-music .ttm-chips .btn { border-radius: 999px; }
.tool.look--text-to-music .tool__actions .btn--primary { border-radius: 999px; }

/* =================================================================================================================
   From a track — a cassette deck: the stage shows one track's waveform splitting into a new version, the mode buttons are a
   deck's keys. */

.tool.look--from-a-track .tool__stage {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400' preserveAspectRatio='xMidYMid slice'%3E%3Cg stroke-width='3.6' stroke-linecap='round'%3E%3Cpath d='M0 248.8V251.3M8 242.6V257.4M16 239.9V260.1M24 244.8V255.2M32 232.8V267.2M40 238.9V261.1M48 241.3V258.7M56 233.1V266.9M64 238.6V261.4M72 237.3V262.7M80 227.9V272.1M88 239.8V260.2M96 238.6V261.4M104 235.5V264.5M112 242.9V257.1M120 233.5V266.5M128 234.5V265.5M136 244.9V255.1M144 229.7V270.3M152 235.8V264.2M160 243.5V256.5M168 233.1V266.9M176 233V267M184 240V260M192 234.7V265.3M200 237.2V262.8M208 238.5V261.5M216 234.3V265.7M224 241.6V258.4M232 236.4V263.6M240 231.9V268.1M248 241.7V258.3M256 236.2V263.8M264 235.5V264.5M272 244.7V255.3M280 232.2V267.8M288 237.1V262.9M296 242.5V257.5' stroke='%2391aef3' stroke-opacity='.26'/%3E%3Cpath d='M312 245V255M320 235V265M328 235V265M336 229.9V270.1M344 239.1V260.9M352 241.9V258.1M360 237.2V262.8M368 234.1V265.9M376 238.1V261.9M384 242.6V257.4M392 240.7V259.3M400 237.1V262.9M408 230.7V269.3M416 238.5V261.5M424 245.3V254.7M432 239V261M440 231.6V268.4M448 232.4V267.6M456 240.7V259.3M464 243.3V256.7M472 236.6V263.4M480 236.1V263.9M488 236.7V263.3M496 243V257M504 241V259M512 235.4V264.6M520 231.7V268.3M528 239.1V260.9M536 245.6V254.4M544 239.8V260.2M552 234V266M560 237.5V262.5M568 241.2V258.8M576 243.5V256.5M584 239.1V260.9M592 235.6V264.4M600 237.2V262.8M608 244V256M616 241.8V258.2M624 239.3V260.7M632 234.6V265.4M640 238.4V261.6M648 246.1V253.9M656 240.4V259.6M664 240.4V259.6M672 238.4V261.6M680 242.7V257.3M688 245.4V254.6M696 239V261M704 236.9V263.1M712 236.8V263.2M720 244.4V255.6M728 244.2V255.8M736 239.1V260.9M744 236.8V263.2M752 240.9V259.1M760 246.2V253.8M768 243.1V256.9M776 241.7V258.3M784 241.2V258.8M792 243.5V256.5M800 246.2V253.8' stroke='%234e7be4' stroke-opacity='.24'/%3E%3Cpath d='M312 241.5V258.5M320 234.1V252.2M328 223.3V253.6M336 213.8V254.9M344 216V245.1M352 221.5V232.5M360 214.3V233M368 206.8V234.1M376 199.6V235M384 203.6V225M392 204V218.7M400 192.8V224.2M408 186V225.4M416 188.4V217.5M424 193.1V207.5M432 189.2V206.1M440 177V213.1M448 179.5V205.4M456 176.4V203.5M464 181.8V193.1M472 173.4V196.6M480 167.1V198.1M488 168.2V192.2M496 169V186.7M504 169.3V181.6M512 158.9V187.4M520 152V189.8M528 156V181.2M536 156.9V175.8M544 154.5V173.7M552 146.9V176.9M560 144.9V174.5M568 142.7V172.3M576 149.7V161M584 139.3V167.2M592 130.6V171.6M600 132.7V165.3M608 134.8V159.1M616 137.7V151.9M624 130.8V154.7M632 119.4V162M640 121.4V155.9M648 127.3V146M656 124.7V144.5M664 113.8V151.4M672 117.8V143.4M680 113.9V143.3M688 120.5V132.8M696 114.4V135M704 106.7V138.7M712 106V135.6M720 106.2V131.5M728 110.5V123.4M736 98V132M744 95.1V131.1M752 98.8V123.6M760 100.2V118.4M768 99.3V115.6M776 93.4V117.7M784 91.2V116.2M792 90.1V113.6M800 94V106' stroke='%23b135de' stroke-opacity='.3'/%3E%3C/g%3E%3Ccircle cx='304' cy='250' r='7' fill='%2391aef3' fill-opacity='.4'/%3E%3C/svg%3E"),
        radial-gradient(color-mix(in srgb, var(--rl-text) 8%, transparent) 1px, transparent 1.2px);
    background-size: 100% 100%, 18px 18px;
    background-position: center, 0 0;
    background-repeat: no-repeat, repeat;
}

.tool.look--from-a-track .tool-sec--toned:nth-child(odd) { --tone: var(--look-c); }
.tool.look--from-a-track .tool-sec--toned:nth-child(even) { --tone: var(--look-c2); }

.tool.look--from-a-track .tool-sec--lead .ttm-chips { gap: 0; }
.tool.look--from-a-track .tool-sec--lead .ttm-chips .btn {
    border-radius: 0;
    padding-inline: 0.9rem;
    box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.18);
}
.tool.look--from-a-track .tool-sec--lead .ttm-chips .btn:first-child { border-radius: 0.5rem 0 0 0.5rem; }
.tool.look--from-a-track .tool-sec--lead .ttm-chips .btn:last-child { border-radius: 0 0.5rem 0.5rem 0; }
.tool.look--from-a-track .tool-sec--lead .ttm-chips .btn + .btn { margin-left: -1px; }
.tool.look--from-a-track .tool-sec--lead .ttm-chips .btn--primary {
    background: linear-gradient(135deg, var(--look-c), var(--look-c2));
    border-color: transparent;
    color: #fff;
    box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.3);
}

.tool.look--from-a-track .tool__actions .btn--primary { border-radius: 0.6rem; box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.2); }
