/* ---- the voice 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.
   Eight tools, spread round the wheel so no two read alike: the voice-over booth is red, the Narrator's book amber,
   the Web reader's highlighter lime, the Voice Studio's scope green, the fish's water aqua, the dialogue's call sheet
   blue, the drama stage purple, the personalities' dressing room magenta. */

.look--voice-over { --look-hue: 0; --look-turn: 28; }
.look--narrator { --look-hue: 38; --look-turn: -18; }
.look--reader { --look-hue: 80; --look-turn: -28; }
.look--voice-studio { --look-hue: 152; --look-turn: 34; }
.look--fish { --look-hue: 194; --look-turn: 30; }
.look--dialogue { --look-hue: 236; --look-turn: -36; }
.look--drama { --look-hue: 276; --look-turn: 40; }
.look--personalities { --look-hue: 320; --look-turn: 34; }

/* Text in a look's colour that stays readable on either theme's surface: the hue pulled toward the theme's own text. */
.look--voice-over, .look--narrator, .look--reader, .look--voice-studio, .look--fish, .look--dialogue, .look--drama,
.look--personalities {
    --vo-ink: color-mix(in srgb, var(--look-c) 62%, var(--rl-text));
}

/* ---- Voice-over: a recording booth --------------------------------------------------------------------------------------
   The stage is lined with pyramid foam with the red light on above it, the record button is the round red one on the desk,
   and the script is a ruled page with a margin. */

.tool.look--voice-over .tool__stage {
    background-color: color-mix(in srgb, var(--look-c) 7%, var(--rl-surface-sunken));
    background-image: conic-gradient(from 45deg,
        color-mix(in srgb, var(--look-c) 15%, transparent) 0 25%,
        rgb(0 0 0 / 0.16) 0 50%,
        color-mix(in srgb, var(--look-c) 5%, transparent) 0 75%,
        rgb(255 255 255 / 0.07) 0);
    background-size: 28px 28px;
    box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--look-c) 12%, var(--rl-surface-sunken)), inset 0 14px 28px -14px rgb(0 0 0 / 0.4);
}

.tool.look--voice-over .tool__stage::before {
    content: "";
    position: absolute;
    top: 0.42rem;
    right: 0.7rem;
    width: 2.2rem;
    height: 0.42rem;
    border-radius: 999px;
    background: hsl(0 88% 58%);
    box-shadow: 0 0 0 2px hsl(0 88% 58% / 0.22), 0 0 14px hsl(0 90% 58% / 0.85);
    animation: vo-onair 2.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes vo-onair { 50% { opacity: 0.5; } }

.tool.look--voice-over .tool__stage .ui-card { --tone: var(--look-c); }

/* While there are no takes, the booth says what to do under the empty Takes card, with the microphone art. */
.tool.look--voice-over .tool__stage:has(> .ui-card .card__empty) > .tool__empty { display: flex; order: 1; }
.tool.look--voice-over .tool__empty p {
    padding: 0.45rem 0.85rem;
    border-radius: 12px;
    background: color-mix(in srgb, var(--rl-surface) 84%, transparent);
    color: var(--rl-text);
}

.tool.look--voice-over .studio__row .btn--primary:not(:disabled) {
    border-color: transparent;
    border-radius: 999px;
    padding-inline: 1rem 1.25rem;
    background: radial-gradient(circle at 32% 28%, hsl(0 95% 72%), hsl(0 80% 50%) 60%, hsl(352 78% 40%));
    color: #fff;
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.35);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--look-c) 22%, transparent), 0 8px 18px -8px hsl(0 85% 45% / 0.8);
}

.tool.look--voice-over .studio__row .btn--primary:not(:disabled):hover { filter: brightness(1.08); }

.tool.look--voice-over #script {
    padding: 0.5rem 0.8rem 0.5rem 2.9rem;
    line-height: 1.6rem;
    background-color: color-mix(in srgb, var(--look-c) 3%, var(--rl-surface));
    background-image:
        linear-gradient(90deg, transparent 2.15rem, color-mix(in srgb, var(--look-c) 60%, transparent) 2.15rem 2.25rem, transparent 2.25rem),
        repeating-linear-gradient(to bottom, transparent 0 calc(1.6rem - 1px), color-mix(in srgb, var(--look-c) 18%, var(--rl-border)) calc(1.6rem - 1px) 1.6rem);
    background-position: 0 0, 0 0.5rem;
    background-attachment: local;
}

.tool.look--voice-over .tool-sec__title { letter-spacing: 0.01em; }

/* ---- Voice Studio: a voice lab ------------------------------------------------------------------------------------------
   The stage is a scope's graticule with three formant traces along its foot, the mode is a lit hardware selector, the
   groups wear round knob-like badges, and the numbers read like the lab's readouts. */

.tool.look--voice-studio .tool__stage {
    background-color: color-mix(in srgb, var(--look-c) 7%, var(--rl-surface-sunken));
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 160' preserveAspectRatio='none'%3E%3Cg fill='none' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M0 140C80 120 150 112 230 126S380 154 460 132 560 114 600 120' stroke='%2334c98a' stroke-opacity='.4'/%3E%3Cpath d='M0 92C70 74 150 62 230 84S370 110 450 74 560 58 600 64' stroke='%2334c98a' stroke-opacity='.28'/%3E%3Cpath d='M0 44C90 36 160 22 240 38S380 56 460 26 560 18 600 22' stroke='%2322b8d8' stroke-opacity='.26'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(color-mix(in srgb, var(--look-c) 20%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--look-c) 20%, transparent) 1px, transparent 1px),
        linear-gradient(color-mix(in srgb, var(--look-c) 8%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--look-c) 8%, transparent) 1px, transparent 1px);
    background-size: 100% 11rem, 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: left bottom 0.5rem, -1px -1px, -1px -1px, -1px -1px, -1px -1px;
    background-repeat: no-repeat, repeat, repeat, repeat, repeat;
    box-shadow: inset 0 0 40px -10px color-mix(in srgb, var(--look-c) 30%, transparent);
}

.tool.look--voice-studio .tool-sec,
.tool.look--voice-studio .tool__stage .ui-card { --tone: var(--look-c); }

/* While there are no takes, the art sits under the empty Takes card. The sentence under it names the machinery, which is
   not for everyone, so only the picture shows. */
.tool.look--voice-studio .tool__stage:has(> .ui-card .card__empty) > .tool__empty { display: flex; order: 1; }
.tool.look--voice-studio .tool__empty p { display: none; }

.tool.look--voice-studio .tool-sec__ico.ui-ico {
    border-radius: 50%;
    color: var(--vo-ink);
    background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--look-c) 34%, var(--rl-surface)), color-mix(in srgb, var(--look-c) 12%, var(--rl-surface-sunken)));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--look-c) 28%, transparent), 0 2px 5px rgb(0 0 0 / 0.25);
}

.tool.look--voice-studio .tool-sec--lead .tool-chips {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--look-c) 7%, var(--rl-surface-sunken));
    box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.28), inset 0 0 0 1px color-mix(in srgb, var(--look-c) 24%, var(--rl-border));
}

.tool.look--voice-studio .tool-sec--lead .tool-chip {
    border-color: transparent;
    border-radius: 9px;
    background: transparent;
}

.tool.look--voice-studio .tool-sec--lead .tool-chip:hover:not(:disabled) { background: color-mix(in srgb, var(--look-c) 8%, transparent); }

.tool.look--voice-studio .tool-sec--lead .tool-chip--on,
.tool.look--voice-studio .tool-sec--lead .tool-chip--on:hover:not(:disabled) {
    background: linear-gradient(180deg, color-mix(in srgb, var(--look-c) 26%, var(--rl-surface)), color-mix(in srgb, var(--look-c) 13%, var(--rl-surface)));
    color: var(--vo-ink);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.3), inset 0 0 0 1px color-mix(in srgb, var(--look-c) 50%, transparent);
}

.tool.look--voice-studio .tool-sec--lead .tool-chip--on::before {
    content: "";
    flex: none;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--look-c);
    box-shadow: 0 0 6px var(--look-c);
}

.tool.look--voice-studio .tool-sec input[type=number],
.tool.look--voice-studio #seed {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    color: var(--vo-ink);
    background-color: color-mix(in srgb, var(--look-c) 6%, var(--rl-surface-sunken));
}

/* The scope's green is light; the run button takes it deeper so its white label reads. */
.tool.look--voice-studio .tool__actions .btn--primary:not(:disabled) {
    background: linear-gradient(135deg, hsl(152 64% 34%), hsl(186 70% 36%));
}

/* ---- Dialogue: a call sheet of lines ------------------------------------------------------------------------------------
   The stage is ruled like the spreadsheet it is fed, with a column for the cue number and one for who speaks; in the table
   the cue is a numbered badge, the speaker a capitalised cue and the line typed like a script. */

.tool.look--dialogue .tool__stage {
    background-color: color-mix(in srgb, var(--look-c) 4%, var(--rl-surface));
    background-image:
        linear-gradient(color-mix(in srgb, var(--look-c) 13%, transparent) 0 2.4rem, transparent 2.4rem),
        linear-gradient(90deg, transparent 3.2rem, color-mix(in srgb, var(--look-c) 32%, transparent) 3.2rem calc(3.2rem + 1px), transparent calc(3.2rem + 1px) 11rem, color-mix(in srgb, var(--look-c) 20%, transparent) 11rem calc(11rem + 1px), transparent calc(11rem + 1px)),
        repeating-linear-gradient(to bottom, transparent 0 calc(2.4rem - 1px), color-mix(in srgb, var(--look-c) 14%, var(--rl-border)) calc(2.4rem - 1px) 2.4rem);
    background-size: 100% 100%, 100% 100%, auto;
    background-repeat: no-repeat, no-repeat, repeat;
}

.tool.look--dialogue .tool__stage .ui-card { --tone: var(--look-c); }

.tool.look--dialogue .tool-sec code {
    padding: 0.05em 0.35em;
    border-radius: 5px;
    background: color-mix(in srgb, var(--look-c) 14%, var(--rl-surface));
    color: var(--vo-ink);
}

.app__content.look--dialogue .dialogue__table th {
    background: color-mix(in srgb, var(--look-c) 12%, var(--rl-surface-raised));
    color: var(--vo-ink);
}

.app__content.look--dialogue .dialogue__table td.dialogue__num {
    width: 2.4rem;
    text-align: center;
    font-weight: 700;
    color: var(--vo-ink);
    background: radial-gradient(circle at 50% 1.08rem, color-mix(in srgb, var(--look-c) 20%, transparent) 0 0.78rem, transparent 0.82rem);
}

.app__content.look--dialogue .dialogue__table td:nth-child(2) input {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--vo-ink);
}

.app__content.look--dialogue .dialogue__table textarea {
    font-family: "Courier New", Courier, ui-monospace, monospace;
    font-size: 0.92rem;
    background-color: color-mix(in srgb, var(--look-c) 3%, var(--rl-surface));
}

.app__content.look--dialogue .dialogue__table select {
    border-radius: 999px;
    color: var(--vo-ink);
    background-color: color-mix(in srgb, var(--look-c) 8%, var(--rl-surface));
}

/* ---- Personality Studio: a dressing room ---------------------------------------------------------------------------------
   The library is a mirror ringed with bulbs, each personality a headshot in the look's ring, and the masks sit beside what a
   personality is. */

.tool.look--personalities .tool__stage {
    --bulb: radial-gradient(circle, #fffbea 0 3px, #f0b545 3.5px 4.5px, hsl(42 100% 62% / 0.38) 5px, transparent 9px);
    padding: 1.45rem;
    border: 2px solid color-mix(in srgb, var(--look-c) 32%, var(--rl-border));
    border-radius: 18px;
    background-color: color-mix(in srgb, var(--look-c) 5%, var(--rl-surface-sunken));
    background-image: var(--bulb), var(--bulb), var(--bulb), var(--bulb),
        radial-gradient(80% 60% at 50% 30%, color-mix(in srgb, var(--look-c) 8%, transparent), transparent 70%);
    background-size: 36px 18px, 36px 18px, 18px 36px, 18px 36px, 100% 100%;
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y, no-repeat;
    background-position: center 1px, center calc(100% - 1px), 1px center, calc(100% - 1px) center, center;
}

.tool.look--personalities .tool__stage .ui-card { --tone: var(--look-c); }

.app__content.look--personalities .personalities__who .ui-avatar {
    width: 2.05rem;
    height: 2.05rem;
    box-shadow: 0 0 0 2px var(--rl-surface), 0 0 0 4px color-mix(in srgb, var(--look-c) 55%, transparent);
}

.app__content.look--personalities .personalities__name { font-weight: 700; }

.tool.look--personalities .ui-table th { color: var(--vo-ink); }

.tool.look--personalities .ui-table tbody tr:hover td { background: color-mix(in srgb, var(--look-c) 7%, transparent); }

.tool.look--personalities .tool__controls > .tool-sec:first-child .tool-sec__hint::before {
    content: "";
    float: right;
    width: 5.5rem;
    aspect-ratio: 1;
    margin: 0.1rem 0 0.4rem 0.8rem;
    background: url(personalities/spot.svg) center / contain no-repeat;
    filter: drop-shadow(0 8px 14px hsl(320 70% 30% / 0.35));
}

/* ---- Fish Voice Studio: an aquarium -------------------------------------------------------------------------------------
   The stage is water, lit from above, with bubbles rising; the tags are bubbles too; and while its machine sleeps the
   notice is the tank with the fish in it. */

.tool.look--fish .tool__stage,
.tool.look--fish > .ui-empty--big {
    --bubbles:
        radial-gradient(circle at 8% 82%, transparent 0 6px, rgb(255 255 255 / 0.5) 6.5px 8px, transparent 8.5px),
        radial-gradient(circle at 12% 64%, transparent 0 3px, rgb(255 255 255 / 0.45) 3.5px 4.5px, transparent 5px),
        radial-gradient(circle at 6% 46%, transparent 0 9px, rgb(255 255 255 / 0.35) 9.5px 11px, transparent 11.5px),
        radial-gradient(circle at 92% 72%, transparent 0 5px, rgb(255 255 255 / 0.4) 5.5px 7px, transparent 7.5px),
        radial-gradient(circle at 95% 52%, transparent 0 3px, rgb(255 255 255 / 0.4) 3.5px 4.5px, transparent 5px);
    background-color: color-mix(in srgb, var(--look-c) 10%, var(--rl-surface-sunken));
    background-image: var(--bubbles),
        repeating-linear-gradient(104deg, transparent 0 70px, rgb(255 255 255 / 0.045) 70px 120px, transparent 120px 190px),
        linear-gradient(to bottom, color-mix(in srgb, var(--look-c) 22%, transparent), transparent 55%, color-mix(in srgb, hsl(214 70% 30%) 18%, transparent));
}

.tool.look--fish .tool__stage {
    background-size: auto;
    border-color: color-mix(in srgb, var(--look-c) 40%, var(--rl-border));
    box-shadow: inset 0 2px 0 rgb(255 255 255 / 0.12), inset 0 -24px 40px -28px color-mix(in srgb, var(--look-c) 60%, transparent);
}

.tool.look--fish .tool__stage .ui-card { --tone: var(--look-c); }

.tool.look--fish > .ui-empty--big {
    position: relative;
    min-height: 13rem;
    padding-inline: 2rem 11rem;
    border: 1px solid color-mix(in srgb, var(--look-c) 42%, var(--rl-border));
    border-radius: 20px;
    background-image: url(fish/spot.svg), var(--bubbles),
        repeating-linear-gradient(104deg, transparent 0 70px, rgb(255 255 255 / 0.05) 70px 120px, transparent 120px 190px),
        linear-gradient(to bottom, color-mix(in srgb, var(--look-c) 24%, transparent), color-mix(in srgb, var(--look-c) 6%, transparent));
    background-size: 8rem, auto, auto, auto, auto, auto, auto, auto;
    background-position: right 2.25rem center, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    background-repeat: no-repeat;
    box-shadow: inset 0 2px 0 rgb(255 255 255 / 0.14), inset 0 -26px 40px -26px color-mix(in srgb, var(--look-c) 55%, transparent);
}

.tool.look--fish > .ui-empty--big .ui-empty__ico,
.tool.look--drama > .ui-empty--big .ui-empty__ico {
    border-style: solid;
    border-radius: 50%;
}

.tool.look--fish > .ui-empty--big .ui-empty__ico {
    background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / 0.45), transparent 42%), color-mix(in srgb, var(--look-c) 16%, var(--rl-surface));
}

.tool.look--fish .fish-chip {
    border-radius: 999px;
    background: radial-gradient(circle at 28% 24%, rgb(255 255 255 / 0.4), transparent 42%), color-mix(in srgb, var(--look-c) 14%, var(--rl-surface));
    border-color: color-mix(in srgb, var(--look-c) 40%, var(--rl-border));
}

.tool.look--fish .fish-tags > summary { color: var(--vo-ink); }

/* The water's aqua is light; the run button takes it deeper so its white label reads. */
.tool.look--fish .tool__actions .btn--primary:not(:disabled) {
    background: linear-gradient(135deg, hsl(196 72% 38%), hsl(222 66% 44%));
}

/* ---- Drama Voice Studio: a theatre --------------------------------------------------------------------------------------
   Velvet curtains either side of the stage under a scalloped valance, a spotlight's pool on the boards, and while the
   machine sleeps the notice is the stage before the curtain goes up. */

.tool.look--drama .tool__stage,
.tool.look--drama > .ui-empty--big {
    --velvet: repeating-linear-gradient(90deg, hsl(276 58% 16%) 0, hsl(278 60% 40%) 0.55rem, hsl(276 58% 16%) 1.1rem);
    --valance: radial-gradient(circle at 50% 0, hsl(278 58% 30%) 0 66%, hsl(44 92% 64%) 67% 72%, transparent 74%);
    background-color: color-mix(in srgb, var(--look-c) 6%, var(--rl-surface-sunken));
    background-image: var(--valance), var(--velvet), var(--velvet),
        radial-gradient(42% 26% at 50% 100%, hsl(44 100% 66% / 0.3), transparent 72%),
        conic-gradient(from 158deg at 50% -12%, transparent 0deg, hsl(44 100% 72% / 0.11) 9deg 35deg, transparent 44deg);
    background-size: 2.6rem 1.35rem, 2.6rem 100%, 2.6rem 100%, 100% 100%, 100% 100%;
    background-position: 0 0, left top, right top, center, center top;
    background-repeat: repeat-x, no-repeat, no-repeat, no-repeat, no-repeat;
}

.tool.look--drama .tool__stage {
    padding: 2.1rem 3.4rem 1.25rem;
    border-color: color-mix(in srgb, var(--look-c) 40%, var(--rl-border));
    box-shadow: inset 0 -3px 0 hsl(44 92% 64% / 0.45);
}

.tool.look--drama .tool__stage .ui-card { --tone: var(--look-c); }

.tool.look--drama > .ui-empty--big {
    min-height: 13rem;
    padding: 3rem 4.5rem 2rem;
    border: 1px solid color-mix(in srgb, var(--look-c) 42%, var(--rl-border));
    border-radius: 20px;
    background-size: 2.6rem 1.35rem, 3.6rem 100%, 3.6rem 100%, 100% 100%, 100% 100%;
    box-shadow: inset 0 -3px 0 hsl(44 92% 64% / 0.45);
}

.tool.look--drama > .ui-empty--big .ui-empty__ico {
    border-color: hsl(44 92% 64% / 0.7);
    background: radial-gradient(circle, hsl(44 100% 70% / 0.28), transparent 70%), color-mix(in srgb, var(--look-c) 12%, var(--rl-surface));
    color: hsl(40 90% 52%);
}

@media (max-width: 640px) {
    .tool.look--drama .tool__stage { padding-inline: 1.6rem; background-size: 2.6rem 1.35rem, 1.1rem 100%, 1.1rem 100%, 100% 100%, 100% 100%; }
    .tool.look--drama > .ui-empty--big { padding-inline: 2rem; background-size: 2.6rem 1.35rem, 1.4rem 100%, 1.4rem 100%, 100% 100%, 100% 100%; }
    .tool.look--fish > .ui-empty--big { padding-inline: 1.25rem; background-image: var(--bubbles), linear-gradient(to bottom, color-mix(in srgb, var(--look-c) 24%, transparent), transparent); }
}

/* ---- Narrator: a book read aloud ----------------------------------------------------------------------------------------
   The cards take the amber of the banner's book, the keys are real keycaps, each mode is a bookmark ribbon, and the
   reference underneath opens like a book, two pages either side of a spine. */

.app__content.look--narrator .ui-card { --tone: var(--look-c); }

.app__content.look--narrator kbd {
    display: inline-block;
    min-width: 1.7em;
    padding: 0.08em 0.45em 0.04em;
    border: 1px solid color-mix(in srgb, var(--look-c) 45%, var(--rl-border));
    border-bottom-width: 3px;
    border-radius: 6px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--look-c) 6%, var(--rl-surface)), color-mix(in srgb, var(--look-c) 16%, var(--rl-surface-sunken)));
    color: var(--rl-text);
    font-size: 0.78em;
    font-weight: 700;
    text-align: center;
    opacity: 1;
}

.app__content.look--narrator .narrator__modes dt {
    align-self: start;
    padding: 0.08rem 0.9rem 0.08rem 0.6rem;
    background: linear-gradient(180deg, hsl(38 90% 66%), hsl(30 82% 52%));
    color: hsl(28 70% 14%);
    font-size: 0.86rem;
    clip-path: polygon(0 0, 100% 0, calc(100% - 0.5rem) 50%, 100% 100%, 0 100%);
}

@media (min-width: 64rem) {
    .app__content.look--narrator .narrator > .ui-card {
        border-radius: 8px 8px 16px 16px;
        background:
            linear-gradient(90deg, transparent calc(50% - 2.4rem), rgb(0 0 0 / 0.1) calc(50% - 0.15rem), rgb(0 0 0 / 0.2) 50%, rgb(0 0 0 / 0.1) calc(50% + 0.15rem), transparent calc(50% + 2.4rem)),
            linear-gradient(90deg, color-mix(in srgb, var(--look-c) 9%, var(--rl-surface)), color-mix(in srgb, var(--look-c) 3%, var(--rl-surface)) 47%, color-mix(in srgb, var(--look-c) 3%, var(--rl-surface)) 53%, color-mix(in srgb, var(--look-c) 9%, var(--rl-surface)));
        box-shadow: inset 0 2px 0 color-mix(in srgb, var(--look-c) 75%, transparent),
            0 3px 0 -1px color-mix(in srgb, var(--look-c) 22%, var(--rl-surface)),
            0 6px 0 -2px color-mix(in srgb, var(--look-c) 14%, var(--rl-surface-sunken)),
            var(--rl-shadow-sm);
    }

    .app__content.look--narrator .narrator > .ui-card .ui-pair { column-gap: 3.5rem; }
}

/* ---- Web reader: a page under a highlighter -----------------------------------------------------------------------------
   The address bar is the reader's toolbar, the status line is marked with a highlighter stroke, and before a page is open
   the frame is a ruled page with the reader's art on it. */

.app__content.look--reader .reader__bar {
    background: linear-gradient(180deg, color-mix(in srgb, var(--look-c) 11%, var(--rl-surface)), color-mix(in srgb, var(--look-c) 4%, var(--rl-surface)));
    border-bottom: 2px solid color-mix(in srgb, var(--look-c) 45%, var(--rl-border));
}

.app__content.look--reader .reader__bar input {
    border-radius: 999px;
    padding-left: 2.3rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2378a020' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 2.5h7l3.5 3.5v11.5H5z'/%3E%3Cpath d='M8 9h5M8 12h5M8 15h3'/%3E%3C/svg%3E") 0.85rem center / 1.05rem no-repeat, var(--rl-surface);
}

.app__content.look--reader .reader__bar input:focus-visible {
    border-color: color-mix(in srgb, var(--look-c) 70%, var(--rl-border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--look-c) 30%, transparent);
}

.app__content.look--reader .reader__bar .btn--primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--look-c), var(--look-c2));
    color: hsl(82 70% 11%);
    box-shadow: 0 6px 16px -8px hsl(80 80% 40% / 0.7);
}

.app__content.look--reader .reader__bar [data-reader-narrator] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.app__content.look--reader .reader__bar [data-reader-narrator]::before {
    content: "";
    width: 1rem;
    height: 1rem;
    background: var(--vo-ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 7.5h3l4-3.5v12l-4-3.5H3z'/%3E%3Cpath d='M13 7q1.6 3 0 6M15.5 5q3 5 0 10' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%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 20 20'%3E%3Cpath d='M3 7.5h3l4-3.5v12l-4-3.5H3z'/%3E%3Cpath d='M13 7q1.6 3 0 6M15.5 5q3 5 0 10' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.app__content.look--reader .reader__status:not(:empty) {
    width: fit-content;
    max-width: calc(100% - 1.8rem);
    margin: 0.3rem 0.9rem;
    padding: 0.05rem 0.45rem;
    background: linear-gradient(100deg, transparent 0.15rem, color-mix(in srgb, var(--look-c) 42%, transparent) 0.45rem calc(100% - 0.45rem), transparent calc(100% - 0.15rem)) 0 70% / 100% 62% no-repeat;
    color: var(--rl-text);
}

.app__content.look--reader .reader__status--bad:not(:empty) { color: var(--rl-danger, #cf222e); }

.app__content.look--reader .reader__frame:not([src]) {
    --page: min(46rem, 88%);
    background:
        url(reader/spot.svg) center calc(50% + 6rem) / min(9.5rem, 28%) no-repeat,
        linear-gradient(color-mix(in srgb, var(--look-c) 58%, transparent) 0 0) center 7.8rem / calc(var(--page) - 5.4rem) 1rem no-repeat,
        repeating-linear-gradient(to bottom, color-mix(in srgb, var(--rl-text) 13%, transparent) 0 0.5rem, transparent 0.5rem 1.6rem) center 4.85rem / calc(var(--page) - 6rem) 12.3rem no-repeat,
        linear-gradient(color-mix(in srgb, var(--rl-text) 32%, transparent) 0 0) center 2.5rem / calc(var(--page) * 0.42) 1rem no-repeat,
        linear-gradient(var(--rl-surface), var(--rl-surface)) center 1.25rem / var(--page) 100% no-repeat,
        color-mix(in srgb, var(--look-c) 6%, var(--rl-surface-sunken));
}

@media (prefers-reduced-motion: reduce) {
    .tool.look--voice-over .tool__stage::before { animation: none; }
}
