/* Request form: the slip a client fills in at the artist's counter. One
   question per sheet, torn from the artist's pad; at the end a copy in
   stencil ink to check before it goes. Any number of questions, any kind.
   Scoped to .rq and rq-*; the server's Tailwind build needs nothing new.
   Headlines: Fraunces (soft, normal width, -0.01em); the rest Satoshi. */

.rq {
    --ink: #1C1712;
    --ink-2: #231C16;
    --ink-3: #2E251E;
    --ink-line: #3A3028;
    --ink-soft: #B7AA9A;
    --paper: #F7F3EC;
    --paper-2: #EFE6D8;
    --paper-3: #E6DCCB;
    --card: #FFFDF8;
    --line: #E6DFD3;
    --rule: #E9E1D4;
    --soft: #6B5F53;
    --ember: #D65A31;
    --ember-ui: #C24E26;
    --ember-deep: #A83E1E;
    --ember-tint: #FFE9E0;
    --ember-glow: #FF9B72;
    --gold: #E2B95E;
    --stencil: #4B3FB5;
    --stencil-tint: #EEEBFA;
    --kraft: #D7B583;
    --display: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: Satoshi, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bar: 64px;
    --foot: 84px;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--paper);
    font-family: var(--sans);
    background:
        radial-gradient(900px 520px at 12% -8%, rgba(214, 90, 49, .16), transparent 62%),
        radial-gradient(700px 600px at 108% 108%, rgba(75, 63, 181, .14), transparent 60%),
        var(--ink);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
.rq:lang(ja) { --display: "Fraunces", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }
.rq:lang(ko) { --display: "Fraunces", "Apple SD Gothic Neo", "Noto Serif KR", "Malgun Gothic", serif; }

/* Below every Tailwind utility (this file loads first), so the sign-in modal
   and anything else Tailwind draws on this page keeps its looks. */
@layer rq-reset {
    :where(.rq) *, :where(.rq) *::before, :where(.rq) *::after { box-sizing: border-box; }
    :where(.rq) :where(img, svg) { display: block; max-width: 100%; }
    :where(.rq) :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
    :where(.rq) :where(h1, h2, h3, p, figure, dl, dd, dt, fieldset) { margin: 0; }
    :where(.rq) :where(fieldset) { border: 0; padding: 0; min-width: 0; }
    :where(.rq) :where(a) { color: inherit; text-decoration: none; }
    :where(.rq) :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
    :where(.rq) :where(input, textarea) { font: inherit; color: inherit; }
}

.rq [x-cloak] { display: none !important; }
.rq :focus-visible { outline: 3px solid var(--ember-glow); outline-offset: 3px; }
.rq-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── Bar ───────────────────────────────────────────────────────────── */
.rq-bar {
    position: sticky; top: 0; z-index: 30;
    background: rgba(28, 23, 18, .92);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ink-line);
}
.rq-bar__row {
    display: flex; align-items: center; gap: 12px;
    width: min(1180px, 100% - 32px); margin-inline: auto; height: var(--bar);
}
.rq-bar__close {
    flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
    color: var(--paper); border: 1px solid var(--ink-line); transition: background .2s, border-color .2s;
}
.rq-bar__close:hover { background: var(--ink-3); border-color: #54473B; }
.rq-bar__who { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.rq-bar__avatar { flex: none; width: 32px; height: 32px; border-radius: 999px; overflow: hidden; background: var(--ink-3); display: grid; place-items: center; font-family: var(--display); font-weight: 600; color: var(--gold); box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px #54473B; }
.rq-bar__avatar img { width: 100%; height: 100%; object-fit: cover; }
.rq-bar__name { min-width: 0; line-height: 1.2; }
.rq-bar__name small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.rq-bar__name strong { display: block; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq-bar__count { flex: none; font-family: var(--display); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; color: var(--paper); }
.rq-bar__count span { color: var(--ink-soft); font-size: 15px; }

/* One stitch per question, and one for the check at the end. */
.rq-stitches { display: flex; gap: 4px; width: min(1180px, 100% - 32px); margin-inline: auto; padding: 0 0 10px; }
.rq-stitch { flex: 1 1 0; height: 4px; border-radius: 4px; background: var(--ink-line); transition: background .35s ease; }
.rq-stitch.is-done { background: #8E7B67; }
.rq-stitch.is-now { background: var(--ember); box-shadow: 0 0 12px rgba(214, 90, 49, .55); }

/* ── Layout ────────────────────────────────────────────────────────── */
.rq-layout {
    width: min(1180px, 100% - 32px); margin-inline: auto;
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px;
    padding: 24px 0 calc(var(--foot) + 40px);
}
@media (min-width: 1024px) {
    .rq-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; padding-top: 48px; }
}

/* ── The artist, and the list of questions (side column) ──────────── */
.rq-side { display: none; }
@media (min-width: 1024px) {
    .rq-side { display: block; position: sticky; top: calc(var(--bar) + 40px); align-self: start; }
}
.rq-card { display: grid; gap: 14px; }
.rq-card__avatar {
    width: 88px; height: 88px; border-radius: 999px; overflow: hidden; background: var(--ink-3);
    display: grid; place-items: center; font-family: var(--display); font-size: 34px; font-weight: 600; color: var(--gold);
    box-shadow: 0 0 0 4px var(--ink), 0 0 0 5px #6A5848, 0 18px 40px rgba(0, 0, 0, .45);
}
.rq-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.rq-kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.rq-card__name { font-family: var(--display); font-weight: 640; font-variation-settings: "opsz" 144, "SOFT" 100; font-size: 34px; line-height: 1.04; letter-spacing: -0.01em; color: var(--paper); overflow-wrap: break-word; text-wrap: balance; }
.rq-card__where { color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.rq-card__where a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

.rq-contents { margin-top: 34px; border-top: 1px solid var(--ink-line); padding-top: 18px; counter-reset: rq; }
.rq-contents__title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; margin-bottom: 10px; }
.rq-contents li + li { margin-top: 2px; }
.rq-contents button, .rq-contents span.rq-contents__item {
    width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; text-align: left;
    padding: 8px 10px; border-radius: 10px; color: var(--ink-soft); font-size: 14px; line-height: 1.35;
}
.rq-contents button:hover { background: var(--ink-2); color: var(--paper); }
.rq-contents__mark { width: 22px; height: 22px; border-radius: 999px; border: 1px solid #54473B; display: grid; place-items: center; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: -1px; }
.rq-contents .is-done .rq-contents__mark { background: #54473B; border-color: #54473B; color: var(--paper); }
.rq-contents .is-now { color: var(--paper); background: var(--ink-2); }
.rq-contents .is-now .rq-contents__mark { background: var(--ember); border-color: var(--ember); color: #fff; }
.rq-contents__text { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }

/* ── Phone cover (first question only) ─────────────────────────────── */
.rq-cover { display: flex; align-items: center; gap: 16px; padding: 4px 2px 6px; }
.rq-cover .rq-card__avatar { width: 64px; height: 64px; font-size: 26px; flex: none; }
.rq-cover .rq-card__name { font-size: clamp(26px, 7.4vw, 32px); }
@media (min-width: 1024px) { .rq-cover { display: none; } }

/* ── Notes above the sheet: a trip, a paid deposit, a sent request ── */
.rq-notices { display: grid; gap: 12px; }
.rq-notices:empty { display: none; }
.rq-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--ink-line); color: var(--paper); font-size: 14px; line-height: 1.45; }
.rq-notice__icon { flex: none; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--ember-ui); color: #fff; font-size: 14px; }
.rq-notice--paid .rq-notice__icon { background: #2F7D57; }
.rq-notice strong { display: block; font-weight: 700; }
.rq-notice small { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 2px; }
/* The trip: a gold boarding pass. */
.rq-notice--trip { background: #F3DFA9; color: var(--ink); border: 0; }
.rq-notice--trip .rq-notice__icon { background: var(--ink); color: var(--gold); }
.rq-notice--trip small { color: #5B4A2B; }

/* ── The sheet ─────────────────────────────────────────────────────── */
.rq-main { min-width: 0; display: grid; gap: 18px; align-content: start; }
.rq-stack { position: relative; }
/* Two more slips under the one being filled in: a pad. */
.rq-stack::before, .rq-stack::after {
    content: ""; position: absolute; inset: 10px 8px -10px; border-radius: 22px; background: #E7DCCB; transform: rotate(1.2deg); z-index: 0;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.rq-stack::after { inset: 5px 4px -5px; background: #F1E8DA; transform: rotate(-.7deg); }
.rq-sheet {
    position: relative; z-index: 1; color: var(--ink);
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(226, 185, 94, .10), transparent 50%),
        var(--card);
    border-radius: 22px; padding: 34px clamp(20px, 5vw, 48px) 36px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 24px 50px rgba(0, 0, 0, .28);
    animation: rq-in .42s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rq-in { from { opacity: 0; transform: translateY(14px) rotate(-.5deg); } }
@media (prefers-reduced-motion: reduce) { .rq-sheet { animation: none; } .rq-stitch { transition: none; } }
/* Punched along the top where it tore off the pad. */
.rq-sheet__perf {
    position: absolute; left: 18px; right: 18px; top: 12px; height: 8px;
    background: radial-gradient(circle at 4px 4px, var(--ink) 2.6px, transparent 3.2px) 0 0 / 16px 8px repeat-x;
    opacity: .9;
}
.rq-sheet__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; margin-top: 6px; }
.rq-sheet__no {
    font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -0.01em;
    color: transparent; -webkit-text-stroke: 1.4px var(--ember-ui); font-variant-numeric: tabular-nums;
}
.rq-sheet__no--icon { -webkit-text-stroke: 0; color: var(--stencil); font-size: 30px; }
.rq-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.rq-chip--optional { background: var(--paper-2); color: var(--soft); }
.rq-chip--required { background: var(--ember-tint); color: var(--ember-deep); }

.rq-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--soft); }
.rq-lang i { color: var(--stencil); }
.rq-lang button { color: var(--ember-ui); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* The artist's own words, then the question. */
.rq-notes { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; margin-top: 18px; }
.rq-notes__avatar { width: 34px; height: 34px; border-radius: 999px; overflow: hidden; background: var(--paper-3); display: grid; place-items: center; font-family: var(--display); font-weight: 600; color: var(--ember-deep); }
.rq-notes__avatar img { width: 100%; height: 100%; object-fit: cover; }
.rq-notes p { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 18px; line-height: 1.45; color: #4A4037; overflow-wrap: break-word; }
.rq-notes p + p { margin-top: 6px; }
.rq-q {
    margin-top: 14px; font-family: var(--display); font-weight: 640; font-variation-settings: "opsz" 144, "SOFT" 100;
    font-size: clamp(27px, 4.6vw, 40px); line-height: 1.08; letter-spacing: -0.01em; color: var(--ink);
    overflow-wrap: break-word; text-wrap: balance; outline: none;
}
/* Focused only so screen readers start at the new question; not a control, so no ring. */
.rq-q:focus, .rq-q:focus-visible { outline: none; }
.rq-fields { display: grid; gap: 26px; margin-top: 26px; }
.rq-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin-bottom: 10px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.rq-label em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ember-ui); }

/* Text: ruled paper. */
.rq-writing {
    display: block; width: 100%; min-height: calc(32px * 6 + 12px); resize: vertical;
    padding: 6px 16px; border-radius: 14px; border: 1px solid var(--line);
    font-size: 17px; line-height: 32px; color: var(--ink);
    background: repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px) 0 6px / 100% 32px local, #FFFEFB;
    transition: border-color .2s, box-shadow .2s;
}
.rq-writing::placeholder { color: #A09384; }
.rq-writing:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px rgba(214, 90, 49, .16); }

/* One choice: tiles, lettered when the artist gave them no icon. */
.rq-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 10px; }
.rq-tile { position: relative; display: block; cursor: pointer; }
.rq-tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rq-tile__body {
    height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 16px 15px;
    border-radius: 16px; border: 1.5px solid var(--line); background: #FFFEFB; transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
}
.rq-tile:hover .rq-tile__body { border-color: #D8C7B2; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(28, 23, 18, .06); }
.rq-tile__mark { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); font-size: 16px; font-weight: 700; transition: background .18s, color .18s; }
.rq-tile__text { font-weight: 600; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.rq-tile__tick { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; color: #fff; background: var(--ember-ui); transform: scale(0); transition: transform .2s cubic-bezier(.2, .9, .3, 1.4); }
.rq-tile input:checked + .rq-tile__body { border-color: var(--ember-ui); background: var(--ember-tint); }
.rq-tile input:checked + .rq-tile__body .rq-tile__mark { background: var(--ember-ui); color: #fff; }
.rq-tile input:checked ~ .rq-tile__tick { transform: scale(1); }
.rq-tile input:focus-visible + .rq-tile__body { outline: 3px solid var(--ember-glow); outline-offset: 3px; }
/* Phones: a list of choices, icon beside the words. */
@media (max-width: 560px) {
    .rq-tiles { gap: 8px; }
    .rq-tile__body { flex-direction: row; align-items: center; gap: 14px; padding: 12px 48px 12px 12px; }
    .rq-tile__tick { top: 50%; right: 14px; margin-top: -11px; }
}

/* Several choices: chips to tick. */
.rq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rq-pick { position: relative; display: inline-block; cursor: pointer; max-width: 100%; }
.rq-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rq-pick__body {
    display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 10px 16px; border-radius: 999px;
    border: 1.5px solid var(--line); background: #FFFEFB; font-weight: 600; font-size: 15px; line-height: 1.3; transition: background .18s, border-color .18s, color .18s;
}
.rq-pick__body > span:last-child { overflow-wrap: anywhere; }
.rq-pick__box { flex: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #BFB09C; display: grid; place-items: center; font-size: 10px; color: transparent; transition: inherit; }
.rq-pick:hover .rq-pick__body { border-color: #D8C7B2; }
.rq-pick input:checked + .rq-pick__body { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.rq-pick input:checked + .rq-pick__body .rq-pick__box { background: var(--ember); border-color: var(--ember); color: #fff; }
.rq-pick input:focus-visible + .rq-pick__body { outline: 3px solid var(--ember-glow); outline-offset: 3px; }

/* Photos: a board to pin references to. */
.rq-board {
    border-radius: 18px; padding: 14px; background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .16) 0 1px, transparent 1.5px) 0 0 / 9px 9px,
        radial-gradient(circle at 70% 60%, rgba(95, 66, 30, .14) 0 1px, transparent 1.5px) 0 0 / 7px 7px,
        #D9BE92;
    box-shadow: inset 0 0 0 1px rgba(95, 66, 30, .18), inset 0 2px 10px rgba(95, 66, 30, .18);
    transition: box-shadow .2s;
}
.rq-board.is-over { box-shadow: inset 0 0 0 3px var(--ember), inset 0 2px 10px rgba(95, 66, 30, .18); }
.rq-board__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 124px), 1fr)); gap: 14px; }
.rq-board__add {
    position: relative; display: grid; place-items: center; align-content: center; gap: 6px; min-height: 150px; padding: 16px 12px;
    border-radius: 12px; border: 2px dashed rgba(60, 40, 15, .38); background: rgba(255, 253, 248, .55); text-align: center; cursor: pointer; color: #3E2E19;
    transition: background .2s, border-color .2s;
}
.rq-board__add:hover { background: rgba(255, 253, 248, .8); border-color: rgba(60, 40, 15, .6); }
.rq-board__add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.rq-board__add:has(input:focus-visible) { outline: 3px solid var(--ember-glow); outline-offset: 3px; }
.rq-board__plus { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 18px; }
.rq-board__title { font-weight: 700; font-size: 15px; }
.rq-board__hint { font-size: 12px; color: #5B4A33; line-height: 1.35; }
.rq-board.is-full .rq-board__add { display: none; }
/* Nothing pinned yet: the whole board is the place to drop them. */
.rq-board__grid > li:only-of-type { grid-column: 1 / -1; }
.rq-board__grid > li:only-of-type .rq-board__add { min-height: 190px; }
.rq-pin { position: relative; padding: 8px 8px 22px; background: #fff; border-radius: 3px; box-shadow: 0 10px 18px rgba(60, 40, 15, .28); transform: rotate(-2deg); }
.rq-pin:nth-child(3n) { transform: rotate(1.6deg); }
.rq-pin:nth-child(3n+2) { transform: rotate(-.6deg); }
.rq-pin img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1px; background: var(--paper-2); }
.rq-pin::before { content: ""; position: absolute; top: -6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 999px; background: radial-gradient(circle at 35% 35%, #FF9B72, #C24E26 60%, #8A2F14); box-shadow: 0 3px 4px rgba(0, 0, 0, .3); z-index: 1; }
.rq-pin button { position: absolute; right: 4px; bottom: 2px; width: 26px; height: 22px; display: grid; place-items: center; border-radius: 6px; color: var(--soft); font-size: 13px; }
.rq-pin button:hover { color: var(--ember-deep); background: var(--paper-2); }

/* Budget: two price tags. */
.rq-tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 420px) { .rq-tags { grid-template-columns: minmax(0, 1fr); } }
.rq-tag {
    position: relative; display: block; padding: 12px 16px 14px 34px; background: #F3DFA9; color: var(--ink);
    clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%);
    border-radius: 0 14px 14px 0;
}
.rq-tag::before { content: ""; position: absolute; left: 14px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 999px; background: var(--card); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.rq-tag__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5B4A2B; }
.rq-tag__row { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.rq-tag__cur { font-family: var(--display); font-size: 26px; font-weight: 600; color: #5B4A2B; }
.rq-tag input { width: 100%; min-width: 0; background: transparent; border: 0; padding: 0; font-family: var(--display); font-weight: 640; font-size: 30px; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--ink); }
.rq-tag input::placeholder { color: rgba(28, 23, 18, .32); }
.rq-tag input:focus { outline: none; }
.rq-tag:has(input:focus) { background: #F7E7BE; }
.rq-tag:has(input:focus-visible) { box-shadow: none; }
.rq-tag input::-webkit-outer-spin-button, .rq-tag input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rq-tag input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.rq-tags__hint { margin-top: 10px; font-size: 13px; color: var(--soft); }

/* Placement: the figure on tracing paper. */
.rq-trace {
    border-radius: 18px; padding: 16px; display: grid; gap: 16px; justify-items: center;
    background:
        linear-gradient(rgba(75, 63, 181, .06) 1px, transparent 1px) 0 0 / 22px 22px,
        linear-gradient(90deg, rgba(75, 63, 181, .06) 1px, transparent 1px) 0 0 / 22px 22px,
        #FAF7F1;
    border: 1px solid var(--line);
}
.rq-sides { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); }
.rq-sides button { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--soft); transition: background .2s, color .2s; }
.rq-sides button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.rq-figure { position: relative; width: min(240px, 72vw); aspect-ratio: 226 / 373; }
.rq-figure > div { position: absolute; inset: 0; }
.rq-figure svg { width: 100%; height: 100%; }
.rq-figure [data-key] { color: #E3D8C6; stroke: #FAF7F1; stroke-width: 1.2; cursor: pointer; transition: color .18s ease, filter .18s ease; }
.rq-figure [data-key]:hover { color: #D2C2AB; }
.rq-figure [data-key]:focus { outline: none; }
.rq-figure [data-key]:focus-visible { color: #C9B699; stroke: var(--ember); stroke-width: 2.5; }
.rq-figure [data-key].bodymap-selected { color: var(--ember); filter: drop-shadow(0 0 6px rgba(214, 90, 49, .45)); }
.rq-areas { width: 100%; display: grid; gap: 8px; }
.rq-areas__none { text-align: center; font-size: 14px; color: var(--soft); }
.rq-areas__side { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rq-areas__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-right: 4px; }
.rq-area { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; }
.rq-area button { width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; color: var(--ink-soft); }
.rq-area button:hover { color: #fff; background: var(--ink-3); }

/* ── The copy to check: printed in stencil ink ───────────────────── */
.rq-sheet--copy { color: var(--ink); }
.rq-copy__lead { margin-top: 10px; color: var(--soft); font-size: 16px; line-height: 1.5; }
.rq-copy { margin-top: 24px; border-top: 2px dashed #CFC7EE; }
.rq-copy__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 16px 0; border-bottom: 1px dashed #DAD4F2; }
.rq-copy__q { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); overflow-wrap: anywhere; }
.rq-copy__a { grid-column: 1; color: var(--stencil); font-size: 16px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.rq-copy__a > span:first-child { white-space: pre-line; }
.rq-copy__a > span:first-child:empty { display: none; }
.rq-copy__a.is-empty { color: #A79FCB; font-weight: 500; font-style: italic; }
.rq-copy__editcell { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.rq-copy__edit { display: block; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--stencil); background: var(--stencil-tint); }
.rq-copy__edit:hover { background: #E2DDF7; }
.rq-copy__thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.rq-copy__thumbs img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; filter: saturate(.85); box-shadow: 0 0 0 1px #DAD4F2; }
.rq-copy__guest { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--soft); }
.rq-copy__guest i { color: var(--stencil); margin-top: 3px; }

/* ── Foot ──────────────────────────────────────────────────────────── */
.rq-foot {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(28, 23, 18, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--ink-line);
    padding-bottom: env(safe-area-inset-bottom);
}
.rq-foot__row { width: min(1180px, 100% - 32px); margin-inline: auto; min-height: var(--foot); display: flex; align-items: center; gap: 12px; padding: 12px 0; }
@media (min-width: 1024px) { .rq-foot__row { padding-left: 356px; } }
.rq-foot__hint { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
.rq-foot__hint strong { color: var(--paper); font-weight: 700; }
.rq-error { display: flex; gap: 8px; align-items: flex-start; color: #FFC2AD; font-weight: 600; }
.rq-error i { margin-top: 2px; }
.rq-btn {
    flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
    border-radius: 999px; font-weight: 700; font-size: 16px; transition: background .2s, transform .15s, box-shadow .2s, color .2s;
}
.rq-btn--back { padding: 0 16px; color: var(--paper); border: 1px solid #54473B; }
.rq-btn--back:hover { background: var(--ink-3); }
@media (max-width: 639px) {
    .rq-btn--back .rq-btn__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
.rq-btn--go { background: var(--ember-ui); color: #fff; box-shadow: 0 10px 24px rgba(194, 78, 38, .35); }
.rq-btn--go:hover { background: var(--ember-deep); }
.rq-btn--go:active { transform: translateY(1px); }
.rq-btn--go[aria-disabled="true"] { background: #6A4A3C; color: #E8D9CF; box-shadow: none; cursor: not-allowed; }
.rq-btn--send { background: var(--paper); color: var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.rq-btn--send:hover { background: #fff; }
.rq-btn__spin { width: 16px; height: 16px; border-radius: 999px; border: 2px solid currentColor; border-right-color: transparent; animation: rq-spin .8s linear infinite; }
@keyframes rq-spin { to { transform: rotate(360deg); } }
@media (max-width: 420px) {
    .rq-layout { padding-bottom: calc(var(--foot) + 90px); }
    .rq-foot__row { flex-wrap: wrap; gap: 8px 10px; }
    .rq-foot__hint { flex-basis: 100%; order: -1; }
    .rq-foot__hint:empty { display: none; }
    .rq-btn--go, .rq-btn--send { flex: 1; }
}
