:root {
  --bg: #06070c; --ink: #f2f4fa; --soft: #a3aabd; --faint: #6a7186;
  --line: rgba(255,255,255,.09); --glass: rgba(255,255,255,.035); --glass-hi: rgba(255,255,255,.07);
  --a: #45e0ff; --b: #ff5ac8; --mid: #8f7dff; --ok: #5ef0b0; --warn: #ffc56b; --err: #ff8f8f;
  --mix: .5;
  --blend: color-mix(in oklab, var(--b) calc(var(--mix) * 100%), var(--a));
  --radius: 22px;
  --ui: "Instrument Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --display: "Bricolage Grotesque", "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --edge: linear-gradient(140deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 30%, rgba(255,255,255,.03) 70%, rgba(255,255,255,.14));
}
/* The site's own typefaces: open fonts, kept in /static/fonts (see LICENSE.txt there). */
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url(/static/fonts/InstrumentSans-400.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: swap; src: url(/static/fonts/InstrumentSans-500.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600 700; font-display: swap; src: url(/static/fonts/InstrumentSans-600.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url(/static/fonts/BricolageGrotesque-600.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700 800; font-display: swap; src: url(/static/fonts/BricolageGrotesque-700.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400 600; font-display: swap; src: url(/static/fonts/JetBrainsMono-500.woff2) format("woff2"); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--ui); min-height: 100vh; overflow-x: hidden;
       -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ backdrop */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.sky i:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: var(--a); animation: drift1 26s ease-in-out infinite alternate; }
.sky i:nth-child(2) { width: 42vw; height: 42vw; right: -12vw; top: 4vw; background: var(--b); animation: drift2 31s ease-in-out infinite alternate; }
.sky i:nth-child(3) { width: 38vw; height: 38vw; left: 30vw; bottom: -24vw; background: var(--mid); opacity: .35; animation: drift3 37s ease-in-out infinite alternate; }
.sky::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(1200px 700px at 50% -10%, transparent, var(--bg) 78%),
              linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px) 0 0 / 100% 44px,
              linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px) 0 0 / 44px 100%;
  mask-image: linear-gradient(#000, transparent 85%); -webkit-mask-image: linear-gradient(#000, transparent 85%); }
.sky::before { content: ""; position: absolute; inset: 0; background: rgba(6,7,12,.42); z-index: 1; }
@keyframes drift1 { to { transform: translate(14vw, 10vw) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vw, 12vw) scale(.9); } }
@keyframes drift3 { to { transform: translate(-10vw, -12vw) scale(1.2); } }

/* -------------------------------------------------------------- layout */
.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.01em; font-size: 18px; }
.mark { width: 34px; height: 34px; position: relative; }
.mark::before, .mark::after { content: ""; position: absolute; top: 5px; width: 24px; height: 24px; border-radius: 50%; mix-blend-mode: screen; }
.mark::before { left: 0; background: var(--a); } .mark::after { right: 0; background: var(--b); }
.steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 5px; border: 1px solid var(--line); border-radius: 999px;
         background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 13.5px; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; color: var(--faint); transition: .35s; }
.steps b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.steps li.on { color: var(--ink); background: var(--glass-hi); }
.steps li.on b { border-color: transparent; background: linear-gradient(135deg, var(--a), var(--b)); color: #06070c; }
.steps li.done { color: var(--soft); } .steps li.done b { border-color: var(--ok); color: var(--ok); }
@media (max-width: 640px) { .steps span { display: none; } .steps li { padding: 6px 8px; } }

.hero { text-align: center; padding: clamp(28px, 7vw, 72px) 0 clamp(22px, 4vw, 40px); }
.hero h1 { font-size: clamp(34px, 6.4vw, 68px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 700; text-wrap: balance; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--a), var(--mid) 50%, var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--soft); font-size: clamp(16px, 2vw, 19px); max-width: 56ch; margin: 0 auto; text-wrap: pretty; }

.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass);
        backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
        padding: clamp(18px, 3vw, 30px); margin-bottom: 18px; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
        background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.07), transparent 60%); }
.card:hover::before { opacity: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 0 0 6px; }
h2 { font-size: clamp(21px, 2.6vw, 27px); letter-spacing: -.02em; margin: 0 0 6px; font-weight: 650; }
.lead { color: var(--soft); margin: 0 0 20px; max-width: 62ch; }
.rise { animation: rise .55s cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------------------------------------------------------- step 1 */
.picks { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
@media (max-width: 720px) { .picks { grid-template-columns: 1fr; } .plus { justify-self: center; } }
.drop { --c: var(--a); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
        min-height: 190px; padding: 22px; border-radius: 18px; cursor: pointer; position: relative;
        border: 1.5px dashed color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 5%, transparent);
        transition: transform .25s, border-color .25s, background .25s, box-shadow .25s; }
.drop.b { --c: var(--b); }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); transform: translateY(-2px);
        box-shadow: 0 18px 50px -24px var(--c); }
.drop.filled { border-style: solid; border-color: var(--c); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.glyph { font-size: 62px; line-height: 1; font-weight: 600; color: var(--c); text-shadow: 0 0 34px color-mix(in srgb, var(--c) 55%, transparent); min-height: 66px; }
.drop b { font-size: 17px; font-weight: 650; }
.drop small { color: var(--soft); font-size: 14px; overflow-wrap: anywhere; }
.drop .tick { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; display: none; place-items: center;
        background: var(--c); color: #06070c; font-weight: 800; font-size: 14px; }
.drop.filled .tick { display: grid; }
.plus { align-self: center; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: var(--soft);
        border: 1px solid var(--line); background: var(--glass); }
.demos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; color: var(--soft); font-size: 14.5px; }
.chip { border: 1px solid var(--line); background: var(--glass); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: .2s; font-size: 14.5px; }
.chip:hover { border-color: var(--mid); background: var(--glass-hi); }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.btn { position: relative; border: 0; border-radius: 14px; padding: 15px 28px; font-weight: 650; font-size: 17px; cursor: pointer; color: #06070c;
       background: linear-gradient(100deg, var(--a), var(--mid) 55%, var(--b)); background-size: 160% 100%; overflow: hidden;
       transition: transform .2s, box-shadow .3s, background-position .6s, opacity .2s; box-shadow: 0 14px 44px -18px var(--mid); }
.btn:hover:not(:disabled) { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 20px 54px -16px var(--b); }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-20deg);
       background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); }
.btn:hover:not(:disabled)::after { animation: sheen 1s ease; }
@keyframes sheen { to { left: 130%; } }
.btn:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.ghost { border: 1px solid var(--line); background: var(--glass); border-radius: 12px; padding: 10px 16px; cursor: pointer; color: var(--soft); transition: .2s; }
.ghost:hover { color: var(--ink); border-color: rgba(255,255,255,.25); }
.hint { color: var(--soft); font-size: 14.5px; }
.msg { color: var(--err); font-size: 15px; }

/* --------------------------------------------------------- step 2 */
.mixer { display: grid; grid-template-columns: 1fr minmax(0, 1.25fr) 1fr; gap: 12px; align-items: center; text-align: center; margin: 6px 0 26px; }
.orb { --c: var(--a); display: grid; gap: 4px; justify-items: center; transition: opacity .3s, transform .3s; }
.orb.b { --c: var(--b); }
.orb .ball { width: clamp(84px, 15vw, 132px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: clamp(34px, 6vw, 56px);
        line-height: 1; color: var(--ink); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
        background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 34%, transparent), transparent 70%);
        box-shadow: 0 0 calc(60px * var(--w, .5)) calc(-6px + 10px * var(--w, .5)) var(--c), inset 0 0 30px -12px var(--c); transition: box-shadow .2s; }
.orb b { font-weight: 600; font-size: 15px; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orb span { color: var(--c); font-variant-numeric: tabular-nums; font-weight: 650; font-size: 20px; }
.core { position: relative; display: grid; place-items: center; min-height: clamp(130px, 22vw, 200px); }
.core .big { font-size: clamp(88px, 17vw, 168px); line-height: 1; letter-spacing: -.02em; color: var(--blend);
        filter: drop-shadow(0 0 34px color-mix(in srgb, var(--blend) 55%, transparent)); transition: opacity .25s, filter .3s; }

.core::before { content: ""; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; z-index: -1; opacity: .5;
        background: conic-gradient(from 0deg, var(--a), var(--b), var(--mid), var(--a)); filter: blur(46px); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
@media (max-width: 560px) { .mixer { grid-template-columns: 1fr 1fr; } .core { grid-column: 1 / -1; grid-row: 1; } }

.slide { position: relative; padding: 6px 0 2px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; background: transparent; height: 34px; margin: 0; cursor: pointer; }
input[type=range]:focus { outline: none; }
#mix::-webkit-slider-runnable-track { height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--a), var(--mid), var(--b));
        box-shadow: 0 0 30px -4px var(--blend), inset 0 0 0 1px rgba(255,255,255,.14); }
#mix::-moz-range-track { height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--a), var(--mid), var(--b)); box-shadow: 0 0 30px -4px var(--blend); }
#mix::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -11px; border-radius: 50%; border: 4px solid #fff;
        background: var(--blend); box-shadow: 0 0 0 6px color-mix(in srgb, var(--blend) 25%, transparent), 0 6px 24px -2px var(--blend); transition: transform .15s; }
#mix::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; border: 4px solid #fff; background: var(--blend); box-shadow: 0 6px 24px -2px var(--blend); }
#mix:active::-webkit-slider-thumb { transform: scale(1.14); }
#mix:focus-visible::-webkit-slider-thumb { outline: 3px solid #fff; outline-offset: 4px; }
.ends { display: flex; justify-content: space-between; color: var(--soft); font-size: 14px; margin-top: 2px; }
.quick { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.stage { margin-top: 26px; border-radius: 18px; border: 1px solid var(--line); background: rgba(0,0,0,.28); padding: clamp(16px, 3vw, 28px); }
.stagebar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; color: var(--soft); font-size: 14.5px; }
.size { display: flex; align-items: center; gap: 10px; }
.size input { width: 150px; height: 22px; }
#size::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); }
#size::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #fff; }
#size::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); }
#size::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }
#preview { display: block; width: 100%; border: 0; background: transparent; resize: none; outline: none; overflow: hidden; padding: 4px 0;
        font-size: 64px; line-height: 1.15; color: var(--ink); caret-color: var(--blend); transition: opacity .2s; }
#preview::placeholder { color: var(--faint); }
.compare { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; align-items: baseline; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.compare label { font-size: 13px; color: var(--faint); white-space: nowrap; }
.compare div { font-size: clamp(24px, 4.4vw, 38px); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compare .mine { color: var(--blend); }

/* --------------------------------------------------------- step 3 */
.save { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }
@media (max-width: 640px) { .save { grid-template-columns: 1fr; } }
.field label { display: block; color: var(--soft); font-size: 14.5px; margin-bottom: 6px; }
.field input { width: 100%; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.3); padding: 15px 16px; font-size: 18px; outline: none; transition: .2s; }
.field input:focus { border-color: var(--blend); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blend) 22%, transparent); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--soft); font-size: 14.5px; }
.facts li::before { content: "✓"; color: var(--ok); margin-right: 8px; font-weight: 700; }

details.tune { margin-top: 4px; }
details.tune summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
details.tune summary::-webkit-details-marker { display: none; }
details.tune summary::after { content: "+"; font-size: 26px; color: var(--soft); transition: transform .3s; }
details.tune[open] summary::after { transform: rotate(45deg); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--soft); font-size: 14px; margin: 12px 0 14px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 7px; vertical-align: -1px; border: 1.5px solid var(--line); }
#glyphs { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 7px; }
#glyphs button { position: relative; height: 58px; border-radius: 12px; border: 1.5px solid var(--line); background: rgba(0,0,0,.25); cursor: pointer;
        font-size: 30px; line-height: 1; padding: 0; overflow: hidden; transition: .15s; }
#glyphs button:hover { border-color: #fff; transform: translateY(-2px); }
#glyphs button.diff { border-color: color-mix(in srgb, var(--warn) 70%, transparent); }
#glyphs button[data-mode="A"] { border-color: var(--a); background: color-mix(in srgb, var(--a) 14%, transparent); }
#glyphs button[data-mode="B"] { border-color: var(--b); background: color-mix(in srgb, var(--b) 14%, transparent); }
#glyphs button[data-mode="interp"] { border-color: var(--mid); background: color-mix(in srgb, var(--mid) 16%, transparent); }
#glyphs button[data-tag]::after { content: attr(data-tag); position: absolute; right: 4px; top: 3px; font: 700 9px/1 var(--ui); letter-spacing: .04em; color: var(--ink); opacity: .9; }

/* ------------------------------------------------- working indicator */
.pulse { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 30px; margin-top: 14px; font-size: 15px; color: var(--soft);
         transition: color .25s; }
.pulse .dot { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #06070c; }
.pulse.work { color: var(--ink); }
.pulse.work .dot { border: 2.5px solid color-mix(in srgb, var(--blend) 30%, transparent); border-top-color: var(--blend); animation: spin .7s linear infinite; }
.pulse.done .dot { background: var(--ok); }
.pulse.done .dot::before { content: "✓"; }
.pulse.idle { opacity: 0; }
.warm { text-align: center; color: var(--faint); font-size: 13.5px; margin-top: 4px; min-height: 20px; transition: opacity .6s; }
.warm i { display: inline-block; width: 90px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); vertical-align: middle; margin-left: 8px; overflow: hidden; }
.warm i b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--a), var(--b)); transition: width .6s; }
.stage { position: relative; overflow: hidden; }
.stage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; opacity: 0; transition: opacity .2s;
         background: linear-gradient(90deg, transparent, var(--a), var(--b), transparent); background-size: 50% 100%; background-repeat: no-repeat; }
.busy .stage::before { opacity: 1; animation: sweep 1s linear infinite; }
@keyframes sweep { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.busy #preview, .busy .compare .mine, .busy #glyphs { opacity: .45; }
.busy .core .big { animation: breathe .9s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: .35; } to { opacity: .8; } }
.lockable { transition: opacity .25s, filter .25s; }
.busy .lockable { opacity: .45; filter: saturate(.4); pointer-events: none; cursor: progress; }
.busy .btn { box-shadow: none; }

footer { color: var(--faint); font-size: 13.5px; text-align: center; padding: 26px 0 46px; }

/* ------------------------------------------------------- fusing veil */
.veil { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(6,7,12,.82);
        backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: fade .3s both; text-align: center; padding: 24px; }
@keyframes fade { from { opacity: 0; } }
.fuse { position: relative; width: 190px; height: 120px; margin: 0 auto 26px; filter: blur(.4px) contrast(1.05); }
.fuse i { position: absolute; top: 20px; width: 80px; height: 80px; border-radius: 50%; mix-blend-mode: screen; }
.fuse i:nth-child(1) { left: 0; background: var(--a); box-shadow: 0 0 60px var(--a); animation: joinL 1.8s cubic-bezier(.6,0,.3,1) infinite alternate; }
.fuse i:nth-child(2) { right: 0; background: var(--b); box-shadow: 0 0 60px var(--b); animation: joinR 1.8s cubic-bezier(.6,0,.3,1) infinite alternate; }
@keyframes joinL { to { transform: translateX(46px) scale(1.08); } }
@keyframes joinR { to { transform: translateX(-46px) scale(1.08); } }
.veil h3 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 6px; }
.veil p { color: var(--soft); margin: 0; min-height: 1.6em; transition: opacity .3s; }
.bar { width: min(320px, 80vw); height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); margin: 22px auto 0; overflow: hidden; }
.bar i { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, var(--a), var(--b)); animation: slidebar 1.4s ease-in-out infinite; }
@keyframes slidebar { from { transform: translateX(-110%); } to { transform: translateX(260%); } }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
/* --------------------------------------------------------- refine */
.knobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.knob { border: 1px solid var(--line); border-radius: 16px; background: rgba(0,0,0,.22); padding: 16px 18px 12px; transition: border-color .2s; }
.knob:focus-within, .knob.touched { border-color: color-mix(in srgb, var(--blend) 60%, transparent); }
.knobhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.knobhead label { font-weight: 600; font-size: 15.5px; }
.knobhead output { font-variant-numeric: tabular-nums; color: var(--blend); font-weight: 650; font-size: 15px; min-width: 4ch; text-align: right; }
input.fine { height: 30px; }
input.fine::-webkit-slider-runnable-track { height: 6px; border-radius: 6px;
       background: linear-gradient(90deg, var(--blend) var(--fill, 0%), rgba(255,255,255,.14) var(--fill, 0%)); }
input.fine::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255,255,255,.14); }
input.fine::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--blend); }
input.fine::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff;
       border: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--blend) 30%, transparent), 0 4px 14px -2px var(--blend); transition: transform .15s; }
input.fine::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; }
input.fine:active::-webkit-slider-thumb { transform: scale(1.15); }
input.fine:focus-visible::-webkit-slider-thumb { outline: 3px solid #fff; outline-offset: 3px; }
.knob .ends { font-size: 13px; }
@media (max-width: 760px) { .steps span { display: none; } .steps li { padding: 6px 8px; } }

/* --------------------------------------------- formats and language */
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 18px; }
.fmt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 14px; cursor: pointer;
       border: 1.5px solid var(--line); background: rgba(0,0,0,.22); transition: .2s; }
.fmt:hover { border-color: rgba(255,255,255,.3); }
.fmt input { position: absolute; opacity: 0; pointer-events: none; }
.fmt .box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid rgba(255,255,255,.3); display: grid; place-items: center;
       font-size: 13px; font-weight: 800; color: transparent; transition: .2s; margin-top: 1px; }
.fmt b { display: block; font-size: 15.5px; letter-spacing: .02em; }
.fmt small { display: block; color: var(--soft); font-size: 13.5px; line-height: 1.35; }
.fmt:has(input:checked) { border-color: var(--blend); background: color-mix(in srgb, var(--blend) 10%, transparent); }
.fmt:has(input:checked) .box { background: var(--blend); border-color: transparent; color: #06070c; }
.fmt:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 3px; }
.sub { color: var(--soft); font-size: 14.5px; margin: 22px 0 0; }
.fmtnote { color: var(--soft); font-size: 14px; margin: 10px 0 0; min-height: 1.4em; }
.lang { position: relative; }
.langbtn { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 12px; border-radius: 999px; cursor: pointer; font-size: 14px;
       color: var(--ink); border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: .2s; }
.langbtn:hover, .lang.open .langbtn { border-color: rgba(255,255,255,.28); background: var(--glass-hi); }
.langbtn svg { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; opacity: .8; }
.langbtn .chev { width: 12px; height: 12px; stroke-width: 2; transition: transform .25s; }
.lang.open .chev { transform: rotate(180deg); }
.langmenu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 190px; margin: 0; padding: 6px; list-style: none;
       border-radius: 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(16,17,25,.86);
       backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
       box-shadow: 0 24px 60px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03) inset;
       opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity .18s, transform .18s; }
.lang.open .langmenu { opacity: 1; transform: none; pointer-events: auto; }
.langmenu:focus { outline: none; }
.langmenu li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: 11px; cursor: pointer;
       font-size: 14.5px; color: var(--soft); transition: background .15s, color .15s; }
.langmenu li small { font-size: 11.5px; letter-spacing: .08em; color: var(--faint); }
.langmenu li.active, .langmenu li:hover { background: rgba(255,255,255,.07); color: var(--ink); }
.langmenu li[aria-selected="true"] { color: var(--ink); }
.langmenu li[aria-selected="true"]::after { content: "✓"; font-weight: 800; font-size: 13px;
       background: linear-gradient(135deg, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.langmenu li[aria-selected="true"] small { display: none; }
.topright { display: flex; align-items: center; gap: 12px; }
@media (max-width: 520px) { .brand span.word { display: none; } }

/* describe your font */
.ask { display: flex; gap: 14px; align-items: stretch; margin-top: 14px; }
.ask textarea { flex: 1; min-width: 0; resize: none; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.28);
  color: var(--ink); font: inherit; font-size: 17px; line-height: 1.45; padding: 14px 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.ask textarea::placeholder { color: var(--faint); }
.ask textarea:focus { border-color: var(--mid); box-shadow: 0 0 0 3px rgba(143,125,255,.18); }
.ask .btn { white-space: nowrap; }
.rights { margin-top: 20px; }
.rights[hidden] { display: none; }
.rights b { font-weight: 600; letter-spacing: 0; }
.rights small { margin-top: 4px; }
.tell { margin: 4px 0 6px; }
.tellnote { margin: 8px 2px 0; color: var(--soft); font-size: 15px; }
.tellnote.bad { color: var(--warn); }
.tellnote + .knobs { margin-top: 22px; }
.or { display: flex; align-items: center; gap: 14px; margin: 26px 0 14px; color: var(--faint); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.why { margin: 0 auto 22px; max-width: 70ch; text-align: center; color: var(--soft); font-size: 15.5px; }
.why b { color: var(--ink); font-weight: 600; margin-right: 6px; }
@media (max-width: 640px) { .ask { flex-direction: column; } }

/* ================================================================ design pass
   Typography, depth and detail on top of the layout above. */
::selection { background: color-mix(in srgb, var(--mid) 55%, transparent); color: #fff; }
html { scrollbar-color: rgba(255,255,255,.18) transparent; }
body { font-size: 16.5px; letter-spacing: .003em; font-feature-settings: "kern", "liga", "calt"; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.sky i { opacity: .42; filter: blur(110px); }
.sky::before { background: rgba(6,7,12,.5); }

/* type */
.hero h1, h2, .brand, .veil h3, .btn, .drop b, .orb b { font-family: var(--display); }
.hero h1 { font-weight: 700; font-size: clamp(38px, 7vw, 78px); line-height: .98; letter-spacing: -.045em; }
.hero h1 em { background: linear-gradient(100deg, var(--a), var(--mid) 45%, var(--b)); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 28px color-mix(in srgb, var(--mid) 45%, transparent)); padding-right: .04em; }
.hero p { font-size: clamp(16.5px, 2vw, 20px); color: #b4bbcd; }
h2 { font-weight: 700; font-size: clamp(23px, 2.9vw, 31px); letter-spacing: -.03em; line-height: 1.12; margin-bottom: 8px; }
.brand { font-size: 19px; font-weight: 700; letter-spacing: -.03em; }
.eyebrow, .or, .steps b, .knobhead output, .orb span, .langmenu li small, .docklabel, .compare label, #glyphs button[data-tag]::after {
  font-family: var(--mono); font-feature-settings: "zero" 0; }
.eyebrow { font-size: 12px; letter-spacing: .16em; color: var(--soft); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--a), var(--b)); }
.or { font-size: 11.5px; letter-spacing: .16em; }
.lead { font-size: 17px; line-height: 1.5; }
.compare label { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.knobhead output, .orb span { letter-spacing: -.02em; }

/* glass cards with a lit edge */
.card { border: 0; border-radius: 26px; padding: clamp(20px, 3.4vw, 38px); margin-bottom: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.022));
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.06) inset; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.steps, .langbtn { border-color: rgba(255,255,255,.12); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.steps { font-size: 13.5px; font-weight: 500; }

/* controls */
.btn { font-weight: 700; font-size: 17px; letter-spacing: -.01em; border-radius: 16px; padding: 16px 30px;
  box-shadow: 0 16px 44px -18px var(--mid), 0 1px 0 rgba(255,255,255,.55) inset, 0 -2px 0 rgba(0,0,0,.12) inset; }
.btn:hover:not(:disabled) { box-shadow: 0 22px 60px -16px var(--b), 0 1px 0 rgba(255,255,255,.6) inset, 0 -2px 0 rgba(0,0,0,.12) inset; }
.btn:active:not(:disabled) { transform: translateY(0) scale(.985); }
.ghost { border-radius: 14px; padding: 11px 18px; font-weight: 500; }
.chip { font-weight: 500; padding: 8px 16px; border-color: rgba(255,255,255,.12); }
.chip:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -16px var(--mid); }
.drop { border-radius: 22px; min-height: 210px; background:
  radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c) 13%, transparent), transparent 70%), rgba(0,0,0,.18); }
.drop b { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.glyph { font-size: 70px; min-height: 74px; }
.plus { background: rgba(255,255,255,.05); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset; }
.ask textarea, .field input { border-radius: 16px; border-color: rgba(255,255,255,.11); background: rgba(3,4,8,.5);
  box-shadow: 0 1px 0 rgba(0,0,0,.4) inset, 0 0 0 1px rgba(255,255,255,.02); }
.ask textarea:focus { border-color: color-mix(in srgb, var(--mid) 80%, #fff); box-shadow: 0 0 0 4px rgba(143,125,255,.2), 0 0 40px -10px var(--mid); }
.stage { border-radius: 22px; background: linear-gradient(180deg, rgba(2,3,6,.55), rgba(2,3,6,.32)); border-color: rgba(255,255,255,.08);
  box-shadow: 0 1px 0 rgba(0,0,0,.5) inset; }
.knob { border-radius: 20px; padding: 18px 20px 14px; border-color: rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(0,0,0,.2)); transition: border-color .2s, transform .2s, box-shadow .2s; }
.knob:hover { transform: translateY(-1px); }
.knob.touched { box-shadow: 0 18px 44px -30px var(--blend); }
.knobhead label { font-size: 16px; }
.fmt { border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(0,0,0,.2)); border-color: rgba(255,255,255,.09); }
.fmt b { font-family: var(--mono); font-size: 14.5px; letter-spacing: .04em; }
.rights b { font-family: var(--ui); font-size: 15.5px; }
#glyphs button { border-radius: 14px; }
.why { font-size: 16px; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); }
.mark::before, .mark::after { box-shadow: 0 0 18px -2px currentColor; }
.mark::before { color: var(--a); } .mark::after { color: var(--b); }
footer { font-size: 13px; letter-spacing: .01em; }

/* the dock: the blend stays in view while refining and saving */
.dock { position: fixed; z-index: 15; top: 74px; left: 50%; width: min(1080px, 100% - 24px); display: flex; align-items: center; gap: 18px;
  padding: 10px 14px 10px 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; cursor: pointer; text-align: left; overflow: hidden;
  background: rgba(12,13,20,.78); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.07) inset;
  opacity: 0; transform: translate(-50%, -130%); pointer-events: none; transition: opacity .28s, transform .38s cubic-bezier(.2,.8,.2,1), border-color .2s; }
.dock.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.dock:hover { border-color: rgba(255,255,255,.3); }
.dock::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--a), var(--mid), var(--b)); opacity: .7; }
.busy .dock::before { background: linear-gradient(90deg, transparent, var(--a), var(--b), transparent) no-repeat; background-size: 50% 100%; animation: sweep 1s linear infinite; opacity: 1; }
.docklabel { flex: none; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.docktext { flex: 1; min-width: 0; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.3; color: var(--blend); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; transition: opacity .2s; }
.busy .docktext { opacity: .5; }
.dockup { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: var(--soft);
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); transition: .2s; }
.dock:hover .dockup { color: var(--ink); transform: translateY(-2px); }
@media (max-width: 640px) { .dock { gap: 10px; padding: 8px 10px 8px 14px; border-radius: 16px; } .docklabel { display: none; } }
#blend { scroll-margin-top: 78px; } #refine, #save { scroll-margin-top: 150px; }

/* a family: one row per weight, each showing the sample text in that weight */
.facehint { color: var(--faint); font-size: 14px; margin: 4px 0 0; max-width: 70ch; }
.faces { display: grid; gap: 8px; margin-top: 14px; }
.face { align-items: center; gap: 14px; padding: 10px 16px 10px 14px; }
.face .box { margin-top: 0; }
.face .facename { flex: none; width: 104px; font-family: var(--mono); font-size: 13.5px; letter-spacing: .04em; }
.face .facetext { flex: 1; min-width: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.35; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; color: var(--soft); transition: color .2s, opacity .2s; }
.face:has(input:checked) .facetext { color: var(--ink); }
.face .faceoff { flex: 1; color: var(--faint); font-size: 14px; }
.face.off { cursor: not-allowed; opacity: .55; }
.busy .facetext { opacity: .45; }
@media (max-width: 640px) { .face { flex-wrap: wrap; gap: 6px 12px; } .face .facetext, .face .faceoff { flex-basis: 100%; } }

/* a wordmark: a word in the blend, shown on paper so any ink colour reads */
.markrow { display: grid; grid-template-columns: 1fr 190px auto; gap: 14px; align-items: end; }
.field select { width: 100%; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--ink);
  padding: 15px 16px; font: inherit; font-size: 18px; outline: none; cursor: pointer; transition: .2s; }
.field select:focus { border-color: var(--blend); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blend) 22%, transparent); }
.field select option { background: #14151c; color: #f2f1ee; }
/* the colour of the wordmark: a few inks to pick from, or a code of your own */
.colorbox { position: relative; }
.colorbtn { display: grid; place-items: center; width: 76px; height: 57px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(0,0,0,.3); cursor: pointer; transition: .2s; }
.colorbtn:hover, .colorbox.open .colorbtn { border-color: rgba(255,255,255,.28); }
.colorbtn:focus-visible { outline: none; border-color: var(--blend); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blend) 22%, transparent); }
.colorbtn i { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.28), 0 6px 16px -6px rgba(0,0,0,.8); }
.colorpop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 232px; padding: 14px;
  border-radius: 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(16,17,25,.92);
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03) inset;
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none; visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s; }
.colorbox.open .colorpop { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; justify-items: center; }
.swatches button { width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22); transition: transform .15s, box-shadow .15s; }
.swatches button:hover { transform: scale(1.1); }
.swatches button:focus-visible { outline: none; box-shadow: 0 0 0 2px #101119, 0 0 0 4px var(--blend); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px #101119, 0 0 0 4px #fff; }
.field .colorpop input { margin-top: 14px; padding: 11px 12px; font-family: var(--mono); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.markview { margin-top: 16px; min-height: 170px; border-radius: 18px; background: #f6f4ef; display: grid; place-items: center;
  padding: clamp(22px, 5vw, 48px); transition: background .25s; }
.markview.dark { background: #0d0e13; box-shadow: 0 0 0 1px var(--line) inset; }
.markview img { display: block; max-width: 100%; max-height: 190px; width: auto; height: auto; }
.markbtns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.markbtns .ghost { padding: 15px 22px; font-size: 16px; }
.markbtns button:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 640px) { .markrow { grid-template-columns: 1fr auto; } .markrow .field:first-child { grid-column: 1 / -1; } }
details.tune summary .eyebrow { margin-bottom: 6px; }
.varrow { display: flex; margin-top: 8px; }
.varrow.off { cursor: not-allowed; opacity: .55; }
/* roll the dice: two fonts from the library, at the right end of the examples */
.chip.dice { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; margin-left: auto; color: var(--ink);
  border-color: color-mix(in srgb, var(--mid) 55%, transparent); }
.chip.dice svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.chip.dice svg circle { fill: currentColor; stroke: none; }
.chip.dice:hover svg { transform: rotate(90deg); }
.chip.dice:disabled { opacity: .5; cursor: wait; }
/* a blinking text cursor only where you can type */
html { caret-color: transparent; }
input, textarea, [contenteditable]:not([contenteditable="false"]) { caret-color: auto; }
/* the header stays in sight: the steps show where you are and take you there */
header.top { position: sticky; top: 0; z-index: 16; transition: padding .25s; }
header.top::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: rgba(8,9,14,.74); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(255,255,255,.08); opacity: 0; transition: opacity .25s; pointer-events: none; }
/* slimmer once the page has scrolled; the margin keeps the page below from jumping */
header.top.stuck { padding: 10px 0; margin-bottom: 24px; }
header.top.stuck::before { opacity: 1; }
.steps.live li:not(#st1) { cursor: pointer; }
.steps.live li:not(#st1):not(.on):hover { color: var(--ink); background: rgba(255,255,255,.05); }
.steps li:focus-visible { border-radius: 999px; }
/* on a phone the language button is just the globe, so the header fits */
@media (max-width: 520px) { #langName { display: none; } .langbtn { padding: 0 10px; gap: 6px; } }
/* account: the button in the header, its menu, the login and "my fonts" windows */
.acctmenu { visibility: hidden; min-width: 230px; transition: opacity .18s, transform .18s, visibility .18s; }
.lang.open .acctmenu { visibility: visible; }
.acctmail { margin: 0; padding: 10px 12px 9px; font-size: 13px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acctmenu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 11px; cursor: pointer;
  font-size: 14.5px; color: var(--soft); transition: background .15s, color .15s; }
.acctmenu button:hover, .acctmenu button:focus-visible { background: rgba(255,255,255,.07); color: var(--ink); }
.acct.in .langbtn svg { opacity: 1; stroke: var(--ok); }
@media (max-width: 900px) { #acctName { display: none; } .acct .langbtn { padding: 0 12px; } }
@media (max-width: 820px) { #langName { display: none; } }
@media (max-width: 520px) { .topright { gap: 8px; } .steps { gap: 2px; } .steps li { padding: 6px 4px; } .acct .langbtn { padding: 0 10px; } }

dialog.sheet { width: min(470px, 100% - 32px); max-height: calc(100% - 32px); padding: 32px 30px 26px; color: var(--ink);
  border: 1px solid rgba(255,255,255,.14); border-radius: 26px; background: rgba(16,17,25,.96);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.07) inset; }
dialog.sheet.wide { width: min(780px, 100% - 32px); }
dialog.sheet::backdrop { background: rgba(6,7,12,.74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
dialog.sheet[open] { animation: sheetin .26s cubic-bezier(.2,.8,.2,1); }
@keyframes sheetin { from { opacity: 0; transform: translateY(10px) scale(.985); } }
dialog.sheet h2 { margin: 0 34px 8px 0; }
dialog.sheet .lead { margin-bottom: 22px; }
dialog.sheet form { display: grid; gap: 16px; }
dialog.sheet form[hidden] { display: none; }
.sheetx { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass);
  color: var(--soft); font-size: 20px; line-height: 1; cursor: pointer; transition: .2s; }
.sheetx:hover { color: var(--ink); border-color: rgba(255,255,255,.25); }
.sheetnote { margin: 16px 0 0; color: var(--soft); min-height: 1.5em; }
.sheetnote:empty, .sheetnote[hidden] { display: none; }
.sheetnote.bad { color: var(--err); }
.sheetnote.good { color: var(--ink); padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent);
  background: color-mix(in srgb, var(--ok) 8%, transparent); }

.shelf { display: grid; gap: 10px; }
.saved { display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 18px; padding: 12px 14px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--glass); }
.savedpic { height: 54px; display: flex; align-items: center; overflow: hidden; }
.savedpic img { max-width: 100%; max-height: 40px; display: block; }
.savedtext { min-width: 0; }
.savedtext b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.savedtext small { display: block; color: var(--faint); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.savedbtns { display: flex; gap: 8px; }
.savedbtns .ghost { padding: 9px 14px; font-size: 14.5px; }
.savedbtns .ghost.armed { color: var(--err); border-color: color-mix(in srgb, var(--err) 50%, transparent); }
@media (max-width: 640px) { .saved { grid-template-columns: 1fr; gap: 8px; } dialog.sheet { padding: 28px 20px 22px; } }

.keeprow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 14px; }
.keepnote { color: var(--soft); font-size: 14.5px; }
.keepnote.bad { color: var(--err); }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 26px; transform: translateX(-50%); max-width: min(560px, 100% - 32px); padding: 13px 20px;
  border-radius: 16px; border: 1px solid rgba(255,255,255,.16); background: rgba(16,17,25,.94); color: var(--ink); font-size: 15px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.9); animation: sheetin .26s cubic-bezier(.2,.8,.2,1); }
.toast[hidden] { display: none; }
/* a field the browser filled in keeps the look of the site (no white or yellow fill) */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink); transition: background-color 600000s 0s, color 600000s 0s, border-color .2s, box-shadow .2s; }
input:autofill { -webkit-text-fill-color: var(--ink); caret-color: var(--ink); transition: background-color 600000s 0s, color 600000s 0s, border-color .2s, box-shadow .2s; }
/* the account window: what we know, what you can tell us, and deleting it all at the very bottom */
.acctinfo { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 0 0 24px; padding: 16px 18px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--glass); font-size: 15px; }
.acctinfo dt { color: var(--faint); }
.acctinfo dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dangerzone { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.dangerzone b { display: block; font-weight: 600; font-size: 15px; }
.dangerzone p { margin: 4px 0 14px; color: var(--soft); font-size: 14.5px; }
.dangerzone .ghost { font-size: 14.5px; padding: 9px 14px; text-align: left; }
.dangerzone .ghost:hover, .dangerzone .ghost.armed { color: var(--err); border-color: color-mix(in srgb, var(--err) 50%, transparent); }
/* footer: the reminder, the legal documents and the copyright line */
footer p { margin: 0; }
footer .legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 0 0 10px; }
footer .legal a, .agree a { color: var(--soft); text-decoration: underline; text-decoration-color: rgba(255,255,255,.2); text-underline-offset: 3px; transition: color .2s; }
footer .legal a:hover, .agree a:hover { color: var(--ink); }
footer .copy { color: var(--faint); }
.agree { margin: 18px 0 0; font-size: 13.5px; color: var(--faint); }
/* the window with a legal document: made for reading */
.legaldate { margin: 0 0 18px; font-size: 13.5px; color: var(--faint); }
.legaltext { font-size: 15.5px; line-height: 1.65; color: var(--soft); }
.legaltext h3 { margin: 26px 0 8px; font-size: 16.5px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.legaltext h3:first-child { margin-top: 0; }
.legaltext p { margin: 0 0 10px; max-width: 70ch; }
.legaltext ul { margin: 0 0 10px; padding-left: 20px; max-width: 70ch; }
.legaltext li { margin-bottom: 6px; }
.legaltext a { color: var(--ink); text-underline-offset: 3px; }
/* a long window scrolls inside, so the scrollbar stays clear of the rounded corners */
dialog.sheet.wide[open] { display: flex; flex-direction: column; overflow: hidden; }
dialog.sheet.wide > * { flex: none; }
dialog.sheet.wide > .legaltext, dialog.sheet.wide > .shelf { flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding-right: 14px; margin-right: -14px; }
/* the contact form */
.field textarea { width: 100%; display: block; resize: vertical; min-height: 120px; border-radius: 16px; border: 1px solid rgba(255,255,255,.11);
  background: rgba(3,4,8,.5); color: var(--ink); padding: 14px 16px; font: inherit; font-size: 17px; line-height: 1.5; outline: none; transition: .2s; }
.field textarea:focus { border-color: var(--blend); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blend) 22%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* only bots fill this in */
