/* ---- the words 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.

   The seven word tools share one frame (ToolLayout) and one tab strip, so each is told apart by what its page is made of:
   translate is a conversation (speech-bubble boxes over a globe), rewrite an exercise book (ruled lines, a red margin),
   thesaurus a tree (a trunk with each sense a branch, leaf-shaped chips), dictionary an open book (a serif headword, a
   thumb index down the edge), acronyms letter tiles, alliteration ripples of a repeated sound, and the font generator a
   typesetter's case. Pastebook is a clipboard, Passwords a vault door, Price alerts price tags and a coupon. Each page also
   takes its colour as the site's accent, so its focus rings, chips and links match it. */

.look--translate { --look-hue: 190; --look-turn: 40; }
.look--rewrite { --look-hue: 352; --look-turn: 26; }
.look--thesaurus { --look-hue: 142; --look-turn: 34; }
.look--dictionary { --look-hue: 230; --look-turn: 24; }
.look--acronyms { --look-hue: 268; --look-turn: 34; }
.look--alliteration { --look-hue: 312; --look-turn: 30; }
.look--fonts { --look-hue: 40; --look-turn: -20; }
.look--paste { --look-hue: 96; --look-turn: -36; }
.look--passwords { --look-hue: 166; --look-turn: 30; }
.look--alerts { --look-hue: 18; --look-turn: 28; }

/* The tool's colour as the accent of its own page: mixed with the text colour, so it is darker on a light theme and lighter on
   a dark one, and the accent's contrast colour stays readable on it either way. */
.tool:is(.look--translate, .look--rewrite, .look--thesaurus, .look--dictionary, .look--acronyms, .look--alliteration, .look--fonts),
.app__content.look--paste .paste, .app__content.look--passwords .pw-page, .app__content.look--alerts .alerts {
    --rl-accent: color-mix(in srgb, hsl(var(--look-hue) 72% 52%) 74%, var(--rl-text));
}

/* ---- the family: the tab strip between the seven, each tab in its own tool's colour ---- */

:is(.look--translate, .look--rewrite, .look--thesaurus, .look--dictionary, .look--acronyms, .look--alliteration, .look--fonts) .words__tab { --tab-hue: 225; }
:is(.look--translate, .look--rewrite, .look--thesaurus, .look--dictionary, .look--acronyms, .look--alliteration, .look--fonts) .words__tab[href$="translate"] { --tab-hue: 190; }
:is(.look--translate, .look--rewrite, .look--thesaurus, .look--dictionary, .look--acronyms, .look--alliteration, .look--fonts) .words__tab[href$="rewrite"] { --tab-hue: 352; }
:is(.look--translate, .look--rewrite, .look--thesaurus, .look--dictionary, .look--acronyms, .look--alliteration, .look--fonts) .words__tab[href$="thesaurus"] { --tab-hue: 142; }
:is(.look--translate, .look--rewrite, .look--thesaurus, .look--dictionary, .look--acronyms, .look--alliteration, .look--fonts) .words__tab[href$="dictionary"] { --tab-hue: 230; }
:is(.look--translate, .look--rewrite, .look--thesaurus, .look--dictionary, .look--acronyms, .look--alliteration, .look--fonts) .words__tab[href$="acronyms"] { --tab-hue: 268; }
:is(.look--translate, .look--rewrite, .look--thesaurus, .look--dictionary, .look--acronyms, .look--alliteration, .look--fonts) .words__tab[href$="alliteration"] { --tab-hue: 312; }
:is(.look--translate, .look--rewrite, .look--thesaurus, .look--dictionary, .look--acronyms, .look--alliteration, .look--fonts) .words__tab[href$="fonts"] { --tab-hue: 40; }

:is(.look--translate, .look--rewrite, .look--thesaurus, .look--dictionary, .look--acronyms, .look--alliteration, .look--fonts) .words__tabs .words__tab svg {
    color: hsl(var(--tab-hue) 70% 55%);
    opacity: 1;
}

:is(.look--translate, .look--rewrite, .look--thesaurus, .look--dictionary, .look--acronyms, .look--alliteration, .look--fonts) .ui-seg .words__tab.active {
    background: color-mix(in srgb, hsl(var(--tab-hue) 72% 55%) 17%, var(--rl-surface));
    color: color-mix(in srgb, hsl(var(--tab-hue) 72% 50%) 45%, var(--rl-text));
    box-shadow: inset 0 0 0 1px hsl(var(--tab-hue) 70% 55% / 0.55), var(--rl-shadow-sm);
}

:is(.look--translate, .look--rewrite, .look--thesaurus, .look--dictionary, .look--acronyms, .look--alliteration, .look--fonts) .ui-seg .words__tab.active svg { color: hsl(var(--tab-hue) 76% 58%); }

/* The lead group's head wears the tool's own glyph, in a tile of its colour. */
.tool.look--translate { --words-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231fa8c4' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4.5h8.5M6.2 2.5v2M8.6 4.5c-.8 3.6-3 6-6.1 7.4M4.2 7.4c.9 1.9 2.6 3.5 4.9 4.4M10.5 17.5l3.2-7.6 3.2 7.6M11.6 15h4.2'/%3E%3C/svg%3E"); }
.tool.look--rewrite { --words-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23e23c58' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.8 3.6l3.6 3.6L7.2 16.4H3.6v-3.6zM10.9 5.5l3.6 3.6M3 18.5h14'/%3E%3C/svg%3E"); }
.tool.look--thesaurus { --words-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2322a85a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.2 10h3M9.2 10c2.2 0 2-5.2 4.6-5.2M9.2 10h4.6M9.2 10c2.2 0 2 5.2 4.6 5.2'/%3E%3Ccircle cx='4.4' cy='10' r='1.9'/%3E%3Ccircle cx='15.6' cy='4.8' r='1.6'/%3E%3Ccircle cx='15.6' cy='10' r='1.6'/%3E%3Ccircle cx='15.6' cy='15.2' r='1.6'/%3E%3C/svg%3E"); }
.tool.look--dictionary { --words-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234d66e8' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5.2C8 3.7 5 3.3 2 3.8v11.4c3-.5 6-.1 8 1.4 2-1.5 5-1.9 8-1.4V3.8c-3-.5-6-.1-8 1.4zM10 5.2v11.4M4.5 7h3M4.5 9.5h3M12.5 7h3'/%3E%3C/svg%3E"); }
.tool.look--acronyms { --words-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%238447e6' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.8 13.6l3.2-7.4 3.2 7.4M7.9 11.2h4.2'/%3E%3Crect x='2.5' y='2.5' width='15' height='15' rx='3.5'/%3E%3C/svg%3E"); }
.tool.look--alliteration { --words-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23c93cb0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.8 15.5V4.5h3a2.6 2.6 0 0 1 0 5.2h-3M10.6 15.5V4.5h3a2.6 2.6 0 0 1 0 5.2h-3'/%3E%3C/svg%3E"); }
.tool.look--fonts { --words-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23d9921a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.8 16L6.2 4.2 10.6 16M3.4 12.2h5.6M17.8 11.4v4.6'/%3E%3Ccircle cx='15.2' cy='13.6' r='2.6'/%3E%3C/svg%3E"); }

.tool:is(.look--translate, .look--rewrite, .look--thesaurus, .look--dictionary, .look--acronyms, .look--alliteration, .look--fonts) .tool-sec--lead > .tool-sec__head::before {
    content: "";
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    background: var(--words-glyph) center / 1.1rem no-repeat, color-mix(in srgb, var(--look-c) 18%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--look-c) 35%, transparent);
}

/* Where a banner carries buttons over its art (the acronym modes, the price alerts' buttons), they sit on frosted glass. */
.app__content:is(.look--acronyms, .look--alerts) .hero--look .hero__actions {
    padding: 0.3rem;
    border-radius: 999px;
    background: rgb(8 4 14 / 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* ---- translate: a conversation over a globe ---- */

.tool.look--translate .tool__stage {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%233cc6e0' stroke-opacity='.13' stroke-width='1.2'%3E%3Ccircle cx='200' cy='200' r='190'/%3E%3Cellipse cx='200' cy='200' rx='64' ry='190'/%3E%3Cellipse cx='200' cy='200' rx='128' ry='190'/%3E%3Cpath d='M200 10v380M10 200h380M28 120h344M28 280h344M78 55h244M78 345h244'/%3E%3C/svg%3E"), radial-gradient(circle at 50% 44%, color-mix(in srgb, var(--look-c) 12%, transparent), transparent 62%);
    background-size: min(36rem, 94%) auto, 100% 100%;
    background-position: 50% 40%, 0 0;
    background-repeat: no-repeat;
}

/* What you write is one speech bubble and the translation the other, each with its corner where the tail would be. */
.tool.look--translate #words-source {
    border-radius: 18px 18px 18px 4px;
    border-color: color-mix(in srgb, var(--look-c) 40%, var(--rl-border));
    background-color: color-mix(in srgb, var(--look-c) 5%, var(--rl-surface-raised));
}

.tool.look--translate .words__out {
    border-radius: 18px 18px 4px 18px;
    border-color: color-mix(in srgb, var(--look-c2) 40%, var(--rl-border));
    background: color-mix(in srgb, var(--look-c2) 8%, var(--rl-surface-raised));
    font-size: 1.06rem;
    line-height: 1.6;
}

/* From in the source's colour, To in the translation's. */
.tool.look--translate #words-from { border-left: 4px solid var(--look-c); }
.tool.look--translate #words-to { border-left: 4px solid var(--look-c2); }

.tool.look--translate .words__swapBtn {
    border-radius: 999px;
    border-color: color-mix(in srgb, var(--look-c) 45%, var(--rl-border));
    background: color-mix(in srgb, var(--look-c) 10%, transparent);
    color: color-mix(in srgb, var(--look-c) 65%, var(--rl-text));
}

.tool.look--translate .tool__actions .btn--primary { border-radius: 999px; }

/* ---- rewrite: an exercise book, marked in red pen ---- */

.tool.look--rewrite .tool__stage {
    background-color: color-mix(in srgb, var(--look-c) 3%, var(--rl-surface-sunken));
    background-image:
        radial-gradient(circle at 1.2rem 50%, var(--rl-surface) 0 0.38rem, color-mix(in srgb, var(--rl-text) 14%, transparent) 0.38rem 0.46rem, transparent 0.5rem),
        linear-gradient(90deg, transparent 2.6rem, color-mix(in srgb, var(--look-c) 55%, transparent) 2.6rem calc(2.6rem + 1.5px), transparent calc(2.6rem + 1.5px)),
        repeating-linear-gradient(180deg, transparent 0 31px, color-mix(in srgb, var(--rl-text) 9%, transparent) 31px 32px);
    background-size: 100% 7rem, auto, auto;
    background-repeat: repeat-y, no-repeat, repeat;
    background-position: 0 2rem, 0 0, 0 1rem;
    padding-left: 3.4rem;
}

.tool.look--rewrite #words-rewrite,
.tool.look--rewrite .words__out {
    border-radius: 6px;
    line-height: 26px;
    padding: 6px 12px 6px 2.6rem;
    background-color: var(--rl-surface-raised);
    background-image:
        linear-gradient(90deg, transparent 1.9rem, color-mix(in srgb, var(--look-c) 55%, transparent) 1.9rem calc(1.9rem + 1.5px), transparent calc(1.9rem + 1.5px)),
        repeating-linear-gradient(180deg, transparent 0 25px, color-mix(in srgb, var(--rl-text) 11%, transparent) 25px 26px);
    background-position: 0 0, 0 6px;
    background-attachment: local;
}

.tool.look--rewrite .words__out { font-size: 1.04rem; }

.tool.look--rewrite #words-mode { border-left: 4px solid var(--look-c); }

.tool.look--rewrite .tool__actions .btn--primary { border-radius: 6px; letter-spacing: 0.01em; }

/* ---- thesaurus: a word and its branches ---- */

.tool.look--thesaurus .tool__stage {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 240' fill='none' stroke='%2345d27a' stroke-opacity='.14' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M30 60c40 0 44-34 84-34M30 60c40 0 50 28 92 28M30 60c18 40 30 70 64 76M114 26c26 0 30 14 52 14M122 88c30 0 34 22 62 22M206 150c30 0 40-36 74-36M206 150c34 0 42 32 76 32M206 150c16 30 22 52 52 60'/%3E%3Cg fill='%2345d27a' fill-opacity='.22' stroke='none'%3E%3Ccircle cx='30' cy='60' r='5'/%3E%3Ccircle cx='114' cy='26' r='3'/%3E%3Ccircle cx='122' cy='88' r='3'/%3E%3Ccircle cx='94' cy='136' r='3'/%3E%3Ccircle cx='166' cy='40' r='2.2'/%3E%3Ccircle cx='184' cy='110' r='2.2'/%3E%3Ccircle cx='206' cy='150' r='5'/%3E%3Ccircle cx='280' cy='114' r='3'/%3E%3Ccircle cx='282' cy='182' r='3'/%3E%3Ccircle cx='258' cy='210' r='3'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 320px 240px;
}

/* The word looked up is the root: a big pill; the sentence it is used in sits under it, quieter. */
.tool.look--thesaurus #words-word {
    border-radius: 999px;
    padding-inline: 1.1rem;
    font-size: 1.15rem;
    font-weight: 650;
    border-color: color-mix(in srgb, var(--look-c) 45%, var(--rl-border));
    background-color: color-mix(in srgb, var(--look-c) 8%, var(--rl-surface-raised));
}

.tool.look--thesaurus #words-context { border-radius: 999px; padding-inline: 1.1rem; font-style: italic; }

/* The results grow as a tree: a trunk from the word down the left, a branch out to each sense. */
.tool.look--thesaurus .words__results { position: relative; padding-left: 1.7rem; }
.tool.look--thesaurus .words__results::before {
    content: "";
    position: absolute;
    left: 0.6rem;
    top: 2.6rem;
    bottom: 2.4rem;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(var(--look-c), var(--look-c2));
    opacity: 0.65;
}
.tool.look--thesaurus .words__resultHead { margin-left: -1.7rem; }
.tool.look--thesaurus .words__heading {
    padding: 0.2rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--look-c), var(--look-c2));
    color: #fff;
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
}
.tool.look--thesaurus .words__sense { position: relative; }
.tool.look--thesaurus .words__sense::before {
    content: "";
    position: absolute;
    left: -1.1rem;
    top: 1.5rem;
    width: 1.1rem;
    height: 2px;
    background: color-mix(in srgb, var(--look-c) 65%, transparent);
}

/* Synonyms as leaves. */
.tool.look--thesaurus .words__chip {
    border-radius: 1rem 0.3rem 1rem 0.3rem;
    border-color: color-mix(in srgb, var(--look-c) 35%, var(--rl-border));
    background: color-mix(in srgb, var(--look-c) 8%, var(--rl-surface-raised));
}
.tool.look--thesaurus .words__chip--anti { background: transparent; border-style: dashed; }

.tool.look--thesaurus .tool__actions .btn--primary { border-radius: 1.3rem 0.4rem 1.3rem 0.4rem; }

/* ---- dictionary: an open book ---- */

/* A thumb index cut down the right edge, as in a printed dictionary. */
.tool.look--dictionary .tool__stage {
    padding-right: 1.9rem;
    background-image: radial-gradient(circle at 100% 50%, color-mix(in srgb, var(--look-c) 32%, transparent) 0 0.55rem, transparent calc(0.55rem + 1px));
    background-size: 1.2rem 3.2rem;
    background-repeat: repeat-y;
    background-position: 100% 0.9rem;
}

/* While it is empty, the stage is the open spread: two pages of faint lines either side of the spine's shadow. */
.tool.look--dictionary .tool__stage:has(> .tool__empty:only-child) {
    background-image:
        radial-gradient(circle at 100% 50%, color-mix(in srgb, var(--look-c) 32%, transparent) 0 0.55rem, transparent calc(0.55rem + 1px)),
        linear-gradient(90deg, transparent calc(50% - 3rem), rgb(0 0 0 / 0.16) 50%, transparent calc(50% + 3rem)),
        repeating-linear-gradient(180deg, transparent 0 23px, color-mix(in srgb, var(--look-c) 13%, transparent) 23px 24px),
        repeating-linear-gradient(180deg, transparent 0 23px, color-mix(in srgb, var(--look-c) 13%, transparent) 23px 24px);
    background-size: 1.2rem 3.2rem, 100% 100%, calc(50% - 4.5rem) calc(100% - 3rem), calc(50% - 5.5rem) calc(100% - 3rem);
    background-repeat: repeat-y, no-repeat, no-repeat, no-repeat;
    background-position: 100% 0.9rem, 0 0, left 2rem top 1.5rem, right 3rem top 1.5rem;
}

.tool.look--dictionary #words-define { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; }

.tool.look--dictionary .words__define .ui-card__title { align-items: baseline; flex-wrap: wrap; column-gap: 0.75rem; }
.tool.look--dictionary .words__word { font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 700; line-height: 1.15; }
.tool.look--dictionary .words__pron {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 1.02rem;
    color: color-mix(in srgb, #d99a2b 72%, var(--rl-text));
}
.tool.look--dictionary .words__entry .ui-h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 600;
    text-transform: none;
    font-size: 0.98rem;
    letter-spacing: 0;
    color: color-mix(in srgb, var(--look-c) 70%, var(--rl-text));
}
.tool.look--dictionary .words__defs li::marker { color: var(--look-c); font-weight: 700; font-family: Georgia, "Times New Roman", serif; }
.tool.look--dictionary .words__example { font-family: Georgia, "Times New Roman", serif; }
.tool.look--dictionary .words__origin { font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem; }

.tool.look--dictionary .tool__actions .btn--primary { border-radius: 5px; font-family: Georgia, "Times New Roman", serif; letter-spacing: 0.02em; }

/* ---- acronyms: letter tiles ---- */

.tool.look--acronyms .tool__stage {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Crect x='4' y='4' width='38' height='38' rx='8' fill='%239a63f0' fill-opacity='.06' stroke='%239a63f0' stroke-opacity='.12'/%3E%3C/svg%3E");
    background-size: 46px 46px;
}

/* "Shorten a phrase" has no run button; its empty foot goes. */
.tool.look--acronyms .tool__actions:not(:has(.btn)) { display: none; }

/* The initials, one tile each. A monospace face puts every letter in a cell the same width as its tile. */
.tool.look--acronyms .words__big { padding: 0.75rem 0 0.5rem; text-align: center; }
.tool.look--acronyms .words__bigText {
    display: inline-block;
    max-width: 100%;
    padding: 0.06em 0 0.14em 0.25em;
    font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.5em;
    color: #fff;
    text-shadow: 0 2px 0 rgb(0 0 0 / 0.22);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Crect x='5' y='4' width='90' height='92' rx='16' fill='%237a45dc'/%3E%3Crect x='5' y='4' width='90' height='84' rx='16' fill='%239a63f0'/%3E%3Crect x='14' y='9' width='72' height='6' rx='3' fill='%23fff' fill-opacity='.3'/%3E%3C/svg%3E") 0 0 / calc(1ch + 0.5em) 100% repeat-x;
    clip-path: inset(0 0.25em 0 0);
}

.tool.look--acronyms .words__acrWord {
    min-width: 0;
    padding: 0.1rem 0.55rem 0.16rem;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--look-c), color-mix(in srgb, var(--look-c) 78%, #000));
    box-shadow: 0 3px 0 color-mix(in srgb, var(--look-c) 50%, #000);
    color: #fff;
    font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
    letter-spacing: 0.1em;
}
.tool.look--acronyms .words__acrText strong {
    color: color-mix(in srgb, var(--look-c) 72%, var(--rl-text));
    text-decoration: underline 2px color-mix(in srgb, var(--look-c) 55%, transparent);
    text-underline-offset: 3px;
}

/* The three ways in, on the banner: the chosen one is a tile. */
.app__content.look--acronyms .words__modes .words__mode.is-on {
    background: linear-gradient(180deg, var(--look-c), color-mix(in srgb, var(--look-c) 75%, #000));
    color: #fff;
    box-shadow: 0 2px 0 color-mix(in srgb, var(--look-c) 45%, #000);
}

.tool.look--acronyms .tool__actions .btn--primary:not(:disabled) {
    border-radius: 10px;
    box-shadow: 0 4px 0 color-mix(in srgb, var(--look-c) 50%, #000), 0 10px 20px -10px hsl(268 80% 40% / 0.7);
}

/* ---- alliteration: the same sound, rippling out ---- */

.tool.look--alliteration .tool__stage {
    background-image:
        repeating-radial-gradient(circle at -6% 106%, transparent 0 26px, color-mix(in srgb, var(--look-c) 15%, transparent) 26px 27.5px),
        radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--look-c) 12%, transparent), transparent 70%);
    background-size: auto;
}

/* The letter is the point of the page: a big drop-cap of a picker. */
.tool.look--alliteration #words-letter {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: color-mix(in srgb, var(--look-c) 70%, var(--rl-text));
    border-color: color-mix(in srgb, var(--look-c) 45%, var(--rl-border));
}

.tool.look--alliteration .words__list { counter-reset: twister; }
.tool.look--alliteration .words__line::before {
    counter-increment: twister;
    content: counter(twister);
    flex: none;
    align-self: center;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--look-c) 16%, transparent);
    color: color-mix(in srgb, var(--look-c) 75%, var(--rl-text));
    font-size: 0.8rem;
    font-weight: 800;
}
.tool.look--alliteration .words__lineText { font-size: 1.08rem; }
/* Every word that carries the sound, with its first letter standing up out of the line. */
.tool.look--alliteration .words__hit {
    display: inline-block;
    padding: 0;
    background: none;
    color: inherit;
    font-weight: 600;
    text-decoration: underline wavy color-mix(in srgb, var(--look-c) 50%, transparent) 1.5px;
    text-underline-offset: 5px;
}
.tool.look--alliteration .words__hit::first-letter {
    color: color-mix(in srgb, var(--look-c) 78%, var(--rl-text));
    font-size: 1.22em;
    font-weight: 850;
}

.tool.look--alliteration .tool__actions .btn--primary { border-radius: 999px; letter-spacing: 0.02em; }

/* ---- font generator: a typesetter's case ---- */

.tool.look--fonts .tool__stage {
    background-color: color-mix(in srgb, var(--look-c) 6%, var(--rl-surface-sunken));
    background-image:
        linear-gradient(90deg, color-mix(in srgb, var(--look-c) 22%, transparent) 3px, transparent 3px),
        linear-gradient(180deg, color-mix(in srgb, var(--look-c) 22%, transparent) 3px, transparent 3px),
        linear-gradient(90deg, color-mix(in srgb, var(--look-c) 11%, transparent) 2px, transparent 2px);
    background-size: 138px 100%, 100% 96px, 69px 48px;
    box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--look-c) 16%, transparent);
}

/* Each style is a specimen: a sort's bar along its top, the sample big, a dashed baseline under it. */
.tool.look--fonts .words__style {
    border-radius: 6px;
    border-top: 3px solid color-mix(in srgb, var(--look-c) 60%, var(--rl-border));
}
.tool.look--fonts .words__styleName { color: color-mix(in srgb, var(--look-c) 70%, var(--rl-text)); }
.tool.look--fonts .words__styleOut {
    padding-bottom: 0.3rem;
    font-size: 1.4rem;
    border-bottom: 1px dashed color-mix(in srgb, var(--look-c) 45%, transparent);
}

.tool.look--fonts #words-fancy { font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }

/* ---- Pastebook: a clipboard and a link ---- */

.app__content.look--paste .paste__layout { margin-top: 0.8rem; }

/* The compose card is the clipboard, with its clip. */
.app__content.look--paste .paste__compose { position: relative; }
.app__content.look--paste .paste__compose::before {
    content: "";
    position: absolute;
    top: -0.9rem;
    left: 50%;
    width: 6.5rem;
    height: 1.7rem;
    transform: translateX(-50%);
    border-radius: 0.6rem 0.6rem 0.4rem 0.4rem;
    background:
        radial-gradient(circle at 50% 40%, rgb(0 0 0 / 0.5) 0 0.24rem, transparent 0.28rem),
        linear-gradient(180deg, #f4f8ee, #98a688);
    box-shadow: 0 3px 8px rgb(0 0 0 / 0.35);
    pointer-events: none;
}

/* The body is a code editor: a gutter down its left. */
.app__content.look--paste .paste__editor {
    padding-left: 3.3rem;
    border-color: color-mix(in srgb, var(--look-c) 28%, var(--rl-border));
    background-image: linear-gradient(90deg, color-mix(in srgb, var(--look-c) 9%, transparent) 0 2.5rem, color-mix(in srgb, var(--look-c) 32%, transparent) 2.5rem calc(2.5rem + 1px), transparent calc(2.5rem + 1px));
    background-attachment: local;
}

/* Who may open it: two option cards, the chosen one lit. */
.app__content.look--paste .paste__choice {
    margin: 0.4rem 0;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--rl-border);
    border-radius: 10px;
    background: var(--rl-surface-raised);
    transition: border-color var(--rl-dur), background-color var(--rl-dur);
}
.app__content.look--paste .paste__choice:has(input:checked) {
    border-color: color-mix(in srgb, var(--look-c) 60%, var(--rl-border));
    background: color-mix(in srgb, var(--look-c) 11%, var(--rl-surface-raised));
}

.app__content.look--paste .paste__compose .btn--primary:not(:disabled) {
    border-color: transparent;
    background: linear-gradient(135deg, hsl(96 62% 52%), hsl(66 70% 50%));
    color: #142409;
}

/* Your pastes, with a link chain in the corner. */
.app__content.look--paste .paste__mine {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%238fd14f' stroke-opacity='.2' stroke-width='9'%3E%3Cg transform='rotate(-38 60 60)'%3E%3Crect x='14' y='44' width='54' height='32' rx='16'/%3E%3Crect x='52' y='44' width='54' height='32' rx='16'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right -2rem bottom -2rem;
    background-size: 7.5rem;
}
.app__content.look--paste .paste__mine .ui-empty__ico { width: 3.4rem; height: 3.4rem; border: 0; background: url(paste/spot.svg) center / contain no-repeat; }
.app__content.look--paste .paste__mine .ui-empty__ico svg { display: none; }

.app__content.look--paste .paste__code, .app__content.look--paste .paste__raw { border-left: 3px solid color-mix(in srgb, var(--look-c) 55%, var(--rl-border)); }

/* ---- Passwords: a vault door ---- */

.app__content.look--passwords .pw-gate__card {
    --rivet: color-mix(in srgb, #c8902c 75%, var(--rl-surface));
    position: relative;
    border: 2px solid color-mix(in srgb, var(--look-c) 35%, var(--rl-border));
    background:
        radial-gradient(circle at 14px 14px, var(--rivet) 0 3px, transparent 4px),
        radial-gradient(circle at calc(100% - 14px) 14px, var(--rivet) 0 3px, transparent 4px),
        radial-gradient(circle at 14px calc(100% - 14px), var(--rivet) 0 3px, transparent 4px),
        radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), var(--rivet) 0 3px, transparent 4px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none'%3E%3Ccircle cx='100' cy='100' r='92' stroke='%232fd0a8' stroke-opacity='.18' stroke-width='2'/%3E%3Ccircle cx='100' cy='100' r='82' stroke='%232fd0a8' stroke-opacity='.22' stroke-width='8' stroke-dasharray='1.4 7.19'/%3E%3Ccircle cx='100' cy='100' r='80' stroke='%23e0b25a' stroke-opacity='.3' stroke-width='14' stroke-dasharray='2.6 39.29'/%3E%3Ccircle cx='100' cy='100' r='40' stroke='%23e0b25a' stroke-opacity='.25' stroke-width='3'/%3E%3C/svg%3E") right -6.5rem top -7rem / 14.5rem no-repeat,
        linear-gradient(165deg, color-mix(in srgb, var(--look-c) 8%, var(--rl-surface-raised)), var(--rl-surface-raised) 60%);
    box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--look-c) 6%, transparent), var(--rl-shadow-md, 0 8px 24px rgb(0 0 0 / 0.12));
}

/* Behind the card, the door's frame: a great ring of ticks either side of it. */
.app__content.look--passwords .pw-gate { position: relative; isolation: isolate; overflow: clip; }
.app__content.look--passwords .pw-gate::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: -1;
    width: 46rem;
    height: 46rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 0 21.4rem, color-mix(in srgb, var(--look-c) 22%, transparent) 21.4rem 21.55rem, transparent 21.6rem 22.7rem, color-mix(in srgb, var(--look-c) 16%, transparent) 22.7rem 22.85rem, transparent 22.9rem),
        repeating-conic-gradient(color-mix(in srgb, #c8902c 32%, transparent) 0 0.5deg, transparent 0.5deg 5deg);
    -webkit-mask: radial-gradient(circle, transparent 0 21.3rem, #000 21.4rem 22.9rem, transparent 23rem);
    mask: radial-gradient(circle, transparent 0 21.3rem, #000 21.4rem 22.9rem, transparent 23rem);
    pointer-events: none;
}

/* Its badge is the combination dial. */
.app__content.look--passwords .pw-gate__ico {
    width: 4.2rem;
    height: 4.2rem;
    border: 2px solid color-mix(in srgb, #c8902c 65%, transparent);
    background:
        radial-gradient(circle, color-mix(in srgb, var(--look-c) 20%, var(--rl-surface-raised)) 0 50%, transparent calc(50% + 1px)),
        repeating-conic-gradient(from -2deg, color-mix(in srgb, #c8902c 85%, transparent) 0 4deg, transparent 4deg 30deg),
        color-mix(in srgb, var(--look-c) 8%, var(--rl-surface-raised));
    color: color-mix(in srgb, var(--look-c) 70%, var(--rl-text));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--look-c) 10%, transparent);
}
.app__content.look--passwords .pw-gate__ico .pw-ico { width: 1.5rem; height: 1.5rem; }

.app__content.look--passwords .pw-gate input:not([type=checkbox]) { font-family: "Cascadia Mono", Consolas, "Courier New", monospace; letter-spacing: 0.06em; }

.app__content.look--passwords .pw-gate .btn--primary:not(:disabled) {
    border-color: transparent;
    background: linear-gradient(135deg, hsl(166 64% 38%), hsl(190 62% 36%));
    color: #fff;
    box-shadow: 0 6px 18px -8px hsl(166 70% 30% / 0.8);
}

/* ---- Price alerts: price tags and a coupon ---- */

/* The tabs are tags on a string: a point and a hole at the left of each. */
.app__content.look--alerts .alerts__tabs .ui-seg { gap: 0.35rem; padding: 0; border: 0; background: none; }
.app__content.look--alerts .alerts__tabs .ui-seg button {
    position: relative;
    padding: 0.32rem 0.9rem 0.32rem 1.4rem;
    border-radius: 0 0.5rem 0.5rem 0;
    clip-path: polygon(0.75rem 0, 100% 0, 100% 100%, 0.75rem 100%, 0 50%);
    background: color-mix(in srgb, var(--look-c) 9%, var(--rl-surface-sunken));
}
.app__content.look--alerts .alerts__tabs .ui-seg button::before {
    content: "";
    position: absolute;
    left: 0.6rem;
    top: 50%;
    width: 0.34rem;
    height: 0.34rem;
    margin-top: -0.17rem;
    border-radius: 50%;
    background: var(--rl-bg);
}
.app__content.look--alerts .alerts__tabs .ui-seg button.is-on {
    background: linear-gradient(135deg, var(--look-c), color-mix(in srgb, var(--look-c) 70%, #8a2a00));
    color: #fff;
    box-shadow: none;
}
.app__content.look--alerts .alerts__tabs .ui-seg button:focus-visible { outline-offset: -3px; }

/* Nothing watched yet: a coupon, notched at both sides, with the tag's art. */
.app__content.look--alerts .alerts > .ui-empty--big {
    border: 2px dashed color-mix(in srgb, var(--look-c) 50%, var(--rl-border));
    background: color-mix(in srgb, var(--look-c) 6%, transparent);
    -webkit-mask: radial-gradient(circle at 0 50%, transparent 1.15rem, #000 calc(1.15rem + 1px)) 0 0 / 51% 100% no-repeat,
                  radial-gradient(circle at 100% 50%, transparent 1.15rem, #000 calc(1.15rem + 1px)) 100% 0 / 51% 100% no-repeat;
    mask: radial-gradient(circle at 0 50%, transparent 1.15rem, #000 calc(1.15rem + 1px)) 0 0 / 51% 100% no-repeat,
          radial-gradient(circle at 100% 50%, transparent 1.15rem, #000 calc(1.15rem + 1px)) 100% 0 / 51% 100% no-repeat;
}
.app__content.look--alerts .alerts > .ui-empty--big .ui-empty__ico { width: 8rem; height: 8rem; border: 0; background: url(alerts/spot.svg) center / contain no-repeat; }
.app__content.look--alerts .alerts > .ui-empty--big .ui-empty__ico svg { display: none; }

/* The new-dashboard name box had no field styling of its own; it takes the site's, as a pill beside its button. */
.app__content.look--alerts .boards__name {
    min-height: var(--rl-control-h, 2.4rem);
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--rl-border);
    border-radius: 999px;
    background: var(--rl-surface-raised);
    color: var(--rl-text);
    font: inherit;
}
.app__content.look--alerts .boards__name:focus-visible {
    outline: none;
    border-color: var(--rl-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rl-accent) 28%, transparent);
}

.app__content.look--alerts #alert-target { font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
    .app__content.look--paste .paste__choice { transition: none; }
}
