/* bias.beauty site world: 大头贴机 (a photo-booth sticker machine). Loaded after each page's own CSS.
   Two registers of one world:
   - booth (home, /universe): playful, like meeting people. Light lilac paper with polka dots, a violet print
     strip, white-bordered prints, thick ink outlines with hard offset shadows, stickers, a fat marker.
   - lab (body.lab: 面部测试, 风格测试, 实验室, 工作台, login, portal): the same booth on plain paper (no dots or grid
     under the reading), with the long lists on white panels.
   No blurred glows, gradients-as-decoration or eyebrow chips above headings. Spec: DESIGN.md next to the pages. */

:root {
    --paper: #fdf8ff; --surface: #ffffff; --ink: #1a1a1a;
    --muted: rgba(26, 26, 26, .66); --faint: rgba(26, 26, 26, .46); --line: rgba(26, 26, 26, .14); --rule: #1a1a1a;
    --film: #721bff; --edge: rgba(255, 255, 255, .72);
    --pencil: #721bff; --pencil-on-film: #ffd84d;
    --pencil2: #16a36f; --pencil2-on-film: #7cf0c0;
    --action: #721bff; --bad: #e5484d; --bad-wash: #fdecec;
    --sun: #ffd84d; --pink: #ff6fb5; --mint: #3cc99a; --sky: #5aa6e6; --coral: #ff7a59;
    --pop-c: #1a1a1a; --pop: 4px 4px 0 var(--pop-c); --pop-sm: 2px 2px 0 var(--pop-c); --pop-lg: 6px 6px 0 var(--pop-c);
    --bd: 2.5px solid var(--ink);
    --dots: radial-gradient(circle, rgba(114, 27, 255, .09) 1.6px, transparent 1.9px) 0 0 / 22px 22px;
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    /* names the older page CSS still reads */
    --bg: var(--paper); --you: var(--pencil); --you-wash: rgba(114, 27, 255, .1); --you-soft: #f1e9ff;
    --ta: var(--pencil2); --ta-wash: #e3fbf1; --tile: #f1e9ff; --line-v: var(--line);
    --card-shadow: none;
    --loop-you: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M18.5 16.9C20.3 15.8 25.7 12.2 29.5 10.2C33.3 8.1 37.1 5.7 41.3 4.6C45.4 3.6 50.2 3.2 54.4 3.9C58.6 4.6 62.6 7.1 66.6 8.8C70.5 10.5 75.1 11.5 78.4 14.1C81.6 16.7 83.8 20.9 86.1 24.5C88.4 28.0 90.4 31.7 92.0 35.6C93.6 39.5 95.5 43.7 95.6 47.8C95.8 52.0 94.3 56.3 93.1 60.4C91.9 64.4 90.6 68.4 88.5 72.0C86.4 75.5 83.6 78.8 80.6 81.7C77.6 84.6 74.1 87.2 70.4 89.1C66.7 91.1 62.6 92.7 58.5 93.4C54.4 94.1 50.0 93.7 45.8 93.2C41.7 92.7 37.5 91.8 33.6 90.3C29.8 88.9 25.8 87.0 22.6 84.4C19.4 81.8 16.7 78.4 14.5 74.9C12.3 71.5 11.0 67.6 9.5 63.8C8.1 60.0 6.3 56.1 5.9 52.1C5.5 48.1 5.8 43.6 7.1 39.8C8.3 36.0 11.1 32.7 13.4 29.4C15.6 26.0 17.6 22.4 20.4 19.7C23.3 17.1 27.0 15.2 30.6 13.3C34.2 11.5 39.9 9.4 41.8 8.6' fill='none' stroke='%23721bff' stroke-width='4.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    --loop-ta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M18.5 16.9C20.3 15.8 25.7 12.2 29.5 10.2C33.3 8.1 37.1 5.7 41.3 4.6C45.4 3.6 50.2 3.2 54.4 3.9C58.6 4.6 62.6 7.1 66.6 8.8C70.5 10.5 75.1 11.5 78.4 14.1C81.6 16.7 83.8 20.9 86.1 24.5C88.4 28.0 90.4 31.7 92.0 35.6C93.6 39.5 95.5 43.7 95.6 47.8C95.8 52.0 94.3 56.3 93.1 60.4C91.9 64.4 90.6 68.4 88.5 72.0C86.4 75.5 83.6 78.8 80.6 81.7C77.6 84.6 74.1 87.2 70.4 89.1C66.7 91.1 62.6 92.7 58.5 93.4C54.4 94.1 50.0 93.7 45.8 93.2C41.7 92.7 37.5 91.8 33.6 90.3C29.8 88.9 25.8 87.0 22.6 84.4C19.4 81.8 16.7 78.4 14.5 74.9C12.3 71.5 11.0 67.6 9.5 63.8C8.1 60.0 6.3 56.1 5.9 52.1C5.5 48.1 5.8 43.6 7.1 39.8C8.3 36.0 11.1 32.7 13.4 29.4C15.6 26.0 17.6 22.4 20.4 19.7C23.3 17.1 27.0 15.2 30.6 13.3C34.2 11.5 39.9 9.4 41.8 8.6' fill='none' stroke='%2316a36f' stroke-width='4' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
    :root {
        --paper: #17121f; --surface: #221a2f; --ink: #f6f2fc;
        --muted: rgba(246, 242, 252, .68); --faint: rgba(246, 242, 252, .46); --line: rgba(246, 242, 252, .16); --rule: #f6f2fc;
        --film: #5b16d6; --pencil: #b28cff; --pencil2: #4fe0a6;
        --bad: #ff7b7b; --bad-wash: rgba(255, 123, 123, .12);
        --pop-c: #8b5cff;
        --dots: radial-gradient(circle, rgba(178, 140, 255, .13) 1.6px, transparent 1.9px) 0 0 / 22px 22px;
        --you-wash: rgba(178, 140, 255, .16); --you-soft: #2c2240; --ta-wash: rgba(79, 224, 166, .13); --tile: #2c2240;
        --loop-you: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M18.5 16.9C20.3 15.8 25.7 12.2 29.5 10.2C33.3 8.1 37.1 5.7 41.3 4.6C45.4 3.6 50.2 3.2 54.4 3.9C58.6 4.6 62.6 7.1 66.6 8.8C70.5 10.5 75.1 11.5 78.4 14.1C81.6 16.7 83.8 20.9 86.1 24.5C88.4 28.0 90.4 31.7 92.0 35.6C93.6 39.5 95.5 43.7 95.6 47.8C95.8 52.0 94.3 56.3 93.1 60.4C91.9 64.4 90.6 68.4 88.5 72.0C86.4 75.5 83.6 78.8 80.6 81.7C77.6 84.6 74.1 87.2 70.4 89.1C66.7 91.1 62.6 92.7 58.5 93.4C54.4 94.1 50.0 93.7 45.8 93.2C41.7 92.7 37.5 91.8 33.6 90.3C29.8 88.9 25.8 87.0 22.6 84.4C19.4 81.8 16.7 78.4 14.5 74.9C12.3 71.5 11.0 67.6 9.5 63.8C8.1 60.0 6.3 56.1 5.9 52.1C5.5 48.1 5.8 43.6 7.1 39.8C8.3 36.0 11.1 32.7 13.4 29.4C15.6 26.0 17.6 22.4 20.4 19.7C23.3 17.1 27.0 15.2 30.6 13.3C34.2 11.5 39.9 9.4 41.8 8.6' fill='none' stroke='%23b28cff' stroke-width='4.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
        --loop-ta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M18.5 16.9C20.3 15.8 25.7 12.2 29.5 10.2C33.3 8.1 37.1 5.7 41.3 4.6C45.4 3.6 50.2 3.2 54.4 3.9C58.6 4.6 62.6 7.1 66.6 8.8C70.5 10.5 75.1 11.5 78.4 14.1C81.6 16.7 83.8 20.9 86.1 24.5C88.4 28.0 90.4 31.7 92.0 35.6C93.6 39.5 95.5 43.7 95.6 47.8C95.8 52.0 94.3 56.3 93.1 60.4C91.9 64.4 90.6 68.4 88.5 72.0C86.4 75.5 83.6 78.8 80.6 81.7C77.6 84.6 74.1 87.2 70.4 89.1C66.7 91.1 62.6 92.7 58.5 93.4C54.4 94.1 50.0 93.7 45.8 93.2C41.7 92.7 37.5 91.8 33.6 90.3C29.8 88.9 25.8 87.0 22.6 84.4C19.4 81.8 16.7 78.4 14.5 74.9C12.3 71.5 11.0 67.6 9.5 63.8C8.1 60.0 6.3 56.1 5.9 52.1C5.5 48.1 5.8 43.6 7.1 39.8C8.3 36.0 11.1 32.7 13.4 29.4C15.6 26.0 17.6 22.4 20.4 19.7C23.3 17.1 27.0 15.2 30.6 13.3C34.2 11.5 39.9 9.4 41.8 8.6' fill='none' stroke='%234fe0a6' stroke-width='4' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    }
}

/* ---------- browser surfaces ---------- */
body { background: var(--paper); color: var(--ink); caret-color: var(--pencil); }
::selection { background: var(--pencil); color: #fff; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 2.5px solid var(--pencil); outline-offset: 3px; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- motion: short, already-visible defaults ---------- */
.js [data-reveal] { transform: translateY(10px); transition-duration: .55s, .55s; }
.js [data-reveal="scale"] { transform: translateY(10px); }
.progress { background: var(--pencil); height: 3px; }

/* ---------- nav ---------- */
.nav { background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav .wrap { border-bottom-color: transparent; }
.nav.scrolled { box-shadow: 0 2.5px 0 var(--ink); }
.nav-links a::after { height: 2.5px; background: var(--ink); border-radius: 2px; }

/* ---------- buttons: chunky booth keys ---------- */
.btn { min-height: 46px; padding: 0 22px; border-radius: 999px; border: var(--bd); background: var(--surface); color: var(--ink); font-weight: 700;
    box-shadow: var(--pop); transition: transform .12s, box-shadow .12s, background .2s, color .2s; }
.btn::before { display: none; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--pop-c); background: var(--sun); color: #1a1a1a; border-color: var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--pop-c); }
.btn.solid, .btn.solid:hover { background: var(--action); border-color: var(--ink); color: #fff; }
.btn.sm { min-height: 36px; padding: 0 16px; box-shadow: 3px 3px 0 var(--pop-c); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .btn:active { transform: none; transition: none; } }

/* ---------- page furniture ---------- */
section { border-top: 0; }
.hero { background: none; }
.hero .orbits, .fa-hero .orbits { display: none; }
.hero .meta, .meta { color: var(--faint); }
.measure { max-width: 34em; }

/* panels that hold a working tool: the booth's screen */
.stage, .st-block, .tool, .login-card { background: var(--surface); border: var(--bd); border-radius: 22px; box-shadow: var(--pop-lg); }
.g-opt, .pick, .loading, .why-pair figure { background: var(--tile); }

/* small labels are stickers */
.edge, .soon, .fa-points li, .st-points li {
    display: inline-block; padding: 3px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--sun); color: #1a1a1a;
    font: 700 13px/1.5 var(--sans); letter-spacing: 0; box-shadow: var(--pop-sm); }
.fa-points li:nth-child(3n+2), .st-points li:nth-child(3n+2) { background: var(--pink); }
.fa-points li:nth-child(3n), .st-points li:nth-child(3n) { background: var(--mint); }
.soon::before, .fa-points li::before, .st-points li::before { display: none; }
.fa-points, .st-points { display: flex; flex-wrap: wrap; gap: 10px 10px; }

/* a fat marker loop around anything */
.loop { position: relative; }
.loop::after { content: ""; position: absolute; inset: -18% -14%; background: var(--loop-you) center / 100% 100% no-repeat; pointer-events: none; transform: rotate(-3deg); }
.loop.ta::after { background-image: var(--loop-ta); transform: rotate(4deg); }

/* notes written beside the work */
.honest { background: var(--ta-wash); border: 2px solid var(--ink); border-radius: 16px; padding: 12px 16px; }
.honest b { color: var(--pencil2); font-weight: 700; }

/* ---------- download close ---------- */
.dl { background: none; color: var(--ink); }
.dl .row { border: 0; border-radius: 0; box-shadow: none; padding-top: 32px; padding-bottom: 0;
    /* the top rule stays inside the .wrap gutter */
    background: linear-gradient(var(--rule), var(--rule)) no-repeat 32px 0 / calc(100% - 64px) 3px; }
/* face-analysis.css styles every .row as a result line; the band is not one */
.dl .row.wrap { display: flex; padding-left: 32px; padding-right: 32px; cursor: auto; }
.dl .row.wrap:hover { background-color: transparent; }
@media (max-width: 640px) { .dl .row, .dl .row.wrap { padding-top: 24px; padding-left: 16px; padding-right: 16px; background-position: 16px 0; background-size: calc(100% - 32px) 3px; } }
.dl .sub, .dl-cap { opacity: 1; color: var(--muted); }
.dl .btn:last-child, .dl .btn:last-child:hover { background: var(--action); color: #fff; }

/* ---------- footer ---------- */
.footer { border-top: 2.5px solid var(--ink); }
.footer .wrap > .legal:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.field input, .field select, .field textarea { border-radius: 14px; border: 2px solid var(--ink); }

/* the interest universe band */
.uni-band { background: none; color: var(--ink); }
.uni-band .stars { display: none; }
.uni-band .muted, .uni-band .sub { color: var(--muted); }
.uni-band .btn, .uni-band .btn:hover { color: #1a1a1a; border-color: var(--ink); }
.uni-band .btn { background: var(--surface); }
.uni-band .btn:hover { background: var(--sun); }
.uni-band .btn.solid, .uni-band .btn.solid:hover { background: var(--action); color: #fff; }
@media (prefers-color-scheme: dark) { .uni-band .btn { color: var(--ink); } .uni-band .btn:hover { color: #1a1a1a; } }

/* round stickers: how interests (星球) appear */
.stickers { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 12px; align-items: center; }
.sticker { --c: var(--sun); display: grid; place-items: center; width: var(--s, 92px); aspect-ratio: 1; border-radius: 50%; background: var(--c); color: #1a1a1a;
    font: 400 calc(var(--s, 92px) * .17)/1.15 var(--brand); text-align: center; padding: 10px; transform: rotate(var(--r, 0deg));
    border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--pop-c); }
.sticker.y { --c: #ffd84d; } .sticker.r { --c: #ff7a59; } .sticker.b { --c: #5aa6e6; } .sticker.g { --c: #3cc99a; } .sticker.w { --c: #ffffff; } .sticker.p { --c: #ff6fb5; }
.sticker.you { --c: var(--action); color: #fff; }

/* a booth slip: short promises with ticked boxes */
.slip { background: var(--surface); border: var(--bd); border-radius: 22px; padding: 22px 26px 18px; transform: rotate(-.8deg); box-shadow: var(--pop-lg); }
.slip-head, .slip-foot { display: flex; justify-content: space-between; margin: 0; font: 700 13px/1.6 var(--sans); color: var(--faint); }
.slip-head { padding-bottom: 12px; border-bottom: 2px dashed var(--line); }
.slip-foot { padding-top: 12px; border-top: 2px dashed var(--line); }
.slip-rows { list-style: none; margin: 0; padding: 4px 0; }
.slip-rows li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; padding: 14px 0; }
.slip-rows li + li { border-top: 2px dashed var(--line); }
.slip-rows li::before { content: ""; grid-row: 1 / 3; width: 24px; height: 24px; margin-top: 2px; border: 2px solid var(--ink); border-radius: 7px;
    background: var(--sun) no-repeat center / 26px 26px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M4 14.5c2 1.4 3.6 3.2 5 5.4C12 13 16.5 7.8 23 3.5' fill='none' stroke='%23721bff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); box-shadow: var(--pop-sm); }
.slip-rows b { font: 400 22px/1.3 var(--brand); }
.slip-rows span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .slip { transform: none; } }

#safe .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 72px; align-items: start; }
#safe .sec-intro { display: block; margin: 0; }
@media (max-width: 860px) { #safe .wrap { grid-template-columns: 1fr; } }

/* ---------- /universe ---------- */
.uni-band.uni-hero { padding: 40px 0 72px; background: var(--dots); }
.uni-hero h1 { color: var(--ink); font-size: clamp(44px, 6.4vw, 88px); line-height: 1.05; }
.hero-stickers { justify-content: center; max-width: 560px; margin-left: auto; gap: 18px 16px; }
@media (max-width: 920px) { .hero-stickers { margin: 12px auto 0; } .hero-stickers .sticker { --s: 96px !important; } }
.later-note { margin-top: 12px; }
/* interest planets: a sheet of round stickers; tap one to circle it with the marker */
.dot-sheet { background: var(--surface); border: var(--bd); border-radius: 26px; padding: 16px 28px; box-shadow: var(--pop-lg); }
.dot-sheet-edge { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin: 0; font: 700 13px/1.6 var(--sans); color: var(--faint); }
.dot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 14px; margin: 14px 0; padding: 24px 4px; border-block: 2px dashed var(--line); }
.dot { --c: #ffd84d; position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 8px; border: 2.5px solid var(--ink); border-radius: 50%;
    background: var(--c); color: #1a1a1a; font: 400 14px/1.15 var(--brand); text-align: center; text-wrap: balance; cursor: pointer;
    box-shadow: 3px 3px 0 var(--pop-c); transition: transform .15s, box-shadow .15s; }
.dot.y { --c: #ffd84d; } .dot.r { --c: #ff7a59; } .dot.b { --c: #5aa6e6; } .dot.g { --c: #3cc99a; } .dot.w { --c: #ffffff; }
.dot:hover { transform: translate(-1px, -2px) rotate(-3deg); box-shadow: 4px 5px 0 var(--pop-c); }
.dot:focus-visible { outline: 2.5px solid var(--pencil); outline-offset: 3px; }
.dot[aria-pressed="true"]::after { content: ""; position: absolute; inset: -16%; background: var(--loop-you) center / 100% 100% no-repeat;
    transform: rotate(var(--lr, 0deg)); pointer-events: none; animation: dot-loop .35s ease-out; }
@keyframes dot-loop { from { opacity: 0; transform: rotate(var(--lr, 0deg)) scale(.82); } }
.dot.peeled { background: transparent; box-shadow: none; border: 2px dashed var(--line); cursor: default; }
@media (prefers-reduced-motion: reduce) { .dot, .dot[aria-pressed="true"]::after { transition: none; animation: none; } }
@media (max-width: 920px) { .dot-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .dot-sheet { padding: 14px 14px; }
    .dot-sheet-edge { font-size: 12px; }
    .dot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 12px; padding: 20px 2px; }
    .dot { font-size: 13px; }
    .dot.extra { display: none; }
}
.steps li::before { border: 2px solid var(--ink); border-radius: 50%; background: var(--sun); color: #1a1a1a; font: 400 18px/1 var(--brand); box-shadow: var(--pop-sm); }
.steps li::after { background: none; border-left: 2px dashed var(--ink); width: 0; opacity: .35; }
.mask, .mask img:first-child { border-radius: 14px; }
.chat-demo, .vote-card, .match-card, .quiz, .tpl { border: var(--bd); border-radius: 20px; box-shadow: var(--pop); }
.vote-card { padding: 22px 24px; }
.mask { border: 2.5px solid #1a1a1a; box-shadow: 4px 4px 0 var(--pop-c); }
.duo .you, .duo .ta { box-shadow: none; }

/* ======================================================================
   LAB: 面部测试 / 风格测试 / 实验室 / 工作台 / login / portal.
   Same booth as the home page (2026-11-23): booth paper, ink outlines, hard shadows, sticker labels,
   booth buttons. What changes is the surface under the reading: plain paper with no grid or dots,
   and long lists sit on white panels, so rows of readings are easy to scan.
   ====================================================================== */
body.lab {
    --hair: rgba(26, 26, 26, .22); --hover: rgba(114, 27, 255, .05); --well: #f6f1fc; --photo-bg: #efe8f8;
    --you-wash: rgba(114, 27, 255, .08);
    background: var(--paper); color: var(--ink);
}
@media (prefers-color-scheme: dark) {
    body.lab { --hair: rgba(246, 242, 252, .3); --hover: rgba(246, 242, 252, .06); --well: #1c1527; --photo-bg: #120d19; --you-wash: rgba(178, 140, 255, .14); }
}

/* the photo slot: a dashed booth window */
/* lab cards and work panels are booth cards; upload slots are dashed windows */
body.lab .lab-frame { background: var(--surface); border: var(--bd); border-radius: 20px; box-shadow: var(--pop); transform: none; }
body.lab a.lab-card { transition: transform .12s, box-shadow .12s; }
body.lab a.lab-card:hover { border-color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--pop-c); }
body.lab .lab-soon .lab-card { border: 2.5px dashed var(--hair); box-shadow: none; background: transparent; }
body.lab .drop, body.lab .cg-drop, body.lab .rt-drop { border: 2.5px dashed var(--hair); border-radius: 18px; background: var(--surface); box-shadow: none; transform: none; }
body.lab .drop:hover, body.lab .drop.over, body.lab .cg-drop:hover, body.lab .cg-drop.over, body.lab .rt-drop:hover, body.lab .rt-drop.over { border-color: var(--pencil); }
body.lab .drop.over { transform: none; }
body.lab .fa-photo { background: var(--photo-bg); }
body.lab .drop.has-photo { background: var(--photo-bg); border-style: solid; border-color: var(--ink); }
body.lab .drop-empty { color: var(--muted); }
body.lab .drop-empty b { color: var(--ink); }
body.lab .drop-empty svg { color: var(--pencil); }
body.lab .field input, body.lab .field select, body.lab .field textarea { background: var(--surface); color: var(--ink); }
body.lab .field input:focus { border-color: var(--pencil); box-shadow: 0 0 0 3px var(--you-wash); }

/* segmented switches: a booth key row */
body.lab .seg { border: 2px solid var(--ink); border-radius: 999px; background: var(--surface); padding: 3px; }
body.lab .seg button { border-radius: 999px; color: var(--muted); font-weight: 600; }
body.lab .seg button[aria-checked="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
body.lab .stage-title, body.lab .stage h2 { font-family: var(--brand); font-weight: 400; }

/* readings: rows on white, the chosen one marked in violet */
body.lab .fa-all, body.lab .fa-style { background: var(--surface); border: var(--bd); border-radius: 22px; box-shadow: var(--pop-lg); padding: 22px 24px 14px; }
@media (max-width: 640px) { body.lab .fa-all, body.lab .fa-style { padding: 16px 14px 10px; border-radius: 18px; box-shadow: var(--pop); } }
body.lab .top { border-radius: 14px; }
body.lab .top.on { border-color: var(--pencil); box-shadow: none; }
body.lab .row.on { background: var(--you-wash); box-shadow: inset 3px 0 0 var(--pencil); }
body.lab .row:hover { background: var(--hover); }
body.lab .d-track { background: var(--line); }
body.lab .scanline { background: var(--pencil2); box-shadow: none; }
body.lab .fa-result .photo, body.lab .fa-result .ph, body.lab .st-result .photo, body.lab .fa-photo-sm { border-radius: 16px; }
body.lab .share-panel { border-radius: 20px; }
body.lab .share-img { border-radius: 12px; }
body.lab .share-x { border-radius: 999px; }

/* 风格卡: a white booth card with the style as a colour chip */
body.lab .st-card { background: var(--surface); color: var(--ink); border: var(--bd); border-radius: 20px; box-shadow: var(--pop); }
body.lab .st-card::after, body.lab .st-card-photo::after { display: none; }
body.lab .st-card-photo { margin: 10px 10px 0; border-radius: 12px; }
body.lab .st-card-body { margin-top: 0; padding: 14px 18px 40px; }
body.lab .st-card-kicker { background: none; border: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; font: 600 12px/1.4 var(--sans, system-ui); color: var(--faint); }
body.lab .st-card-name { color: var(--ink); text-shadow: none; }
body.lab .st-card-name::before { content: ""; display: inline-block; width: .42em; height: .42em; border-radius: 50%; background: var(--c); margin-right: .24em; vertical-align: .14em; }
body.lab .st-card-say { color: var(--muted); opacity: 1; }
body.lab .st-card-also { color: var(--muted); opacity: 1; }
body.lab .st-card-also i { box-shadow: none; }
body.lab .st-card-brand { color: var(--faint); opacity: 1; }
.row.st-card-actions { display: flex; grid-template-columns: none; gap: 12px; padding: 0; border: 0; background: none; box-shadow: none; }
.st-card-actions .btn { white-space: nowrap; }

/* portal: the featured tool is the violet one */
body.lab .tool.feature { background: var(--you-soft); color: var(--ink); }
body.lab .tool.feature h3, body.lab .tool.feature .go { color: var(--ink); }
body.lab .tool.feature p, body.lab .tool.feature .code { color: var(--muted); }
body.lab .tool:hover { transform: translate(-1px, -1px); box-shadow: 7px 7px 0 var(--pop-c); }

/* universe: 兴趣 × 审美, two stickers overlapping; the shared part is where recommendations come from */
.duo-venn { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; overflow: visible; }
.duo-venn .sh { fill: var(--pop-c); }
.duo-venn .face { stroke: var(--ink); stroke-width: 2.5; }
.duo-venn .cl.face { fill: var(--you-soft); }
.duo-venn .cr.face { fill: #e3fbf1; fill: color-mix(in srgb, var(--ta) 14%, var(--surface)); }
.duo-venn .lens { fill: var(--sun); stroke: var(--ink); stroke-width: 2.5; }
.duo-venn .spark { fill: var(--pink); stroke: #1a1a1a; stroke-width: 2.5; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; }
.duo-venn.in .spark { animation: twinkle 2.4s ease-in-out 1.4s infinite; }
@keyframes twinkle { 0%, 70%, 100% { transform: scale(1) rotate(0); } 82% { transform: scale(1.25) rotate(20deg); } }
.duo-venn text { font-family: var(--brand); }
.duo-venn .t { font-size: 30px; }
.duo-venn .s { font-size: 15px; fill: var(--muted); }
.duo-venn .cl .t { fill: var(--pencil); }
.duo-venn .cr .t { fill: var(--pencil2); }
.duo-venn .mid .t { fill: #1a1a1a; }
.duo-venn .mid .s { fill: rgba(26, 26, 26, .72); }
.duo-venn .tag rect { stroke: #1a1a1a; stroke-width: 2.5; }
.duo-venn .tag.pk rect { fill: var(--pink); }
.duo-venn .tag.mt rect { fill: var(--mint); }
.duo-venn .tag text { font-size: 17px; fill: #1a1a1a; }
.duo-venn .cl, .duo-venn .cr { transform-box: view-box; transition: transform 1.1s cubic-bezier(.16, 1, .3, 1), opacity .8s; }
.duo-venn .lens, .duo-venn .mid { transition: opacity .4s .8s; }
.js .duo-venn:not(.in) .cl { transform: translateX(-60px); opacity: 0; }
.js .duo-venn:not(.in) .cr { transform: translateX(60px); opacity: 0; }
.js .duo-venn:not(.in) .lens, .js .duo-venn:not(.in) .mid { opacity: 0; }
@media (max-width: 640px) { .duo-venn .s { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .duo-venn.in .spark { animation: none; } .duo-venn .cl, .duo-venn .cr, .duo-venn .lens, .duo-venn .mid { transition: none; } }

/* "新" on the nav's 实验室 link until the visitor has opened a lab page (localStorage bias-lab-seen, set on /lab pages) */
.nav-links .nav-new { position: absolute; top: -7px; right: -15px; padding: 0 4px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--pink);
    color: #fff; font: 700 10px/1.45 var(--sans, system-ui); font-style: normal; transform: rotate(8deg); pointer-events: none; }
.lab-seen .nav-links .nav-new { display: none; }
@media (max-width: 760px) { .nav-links a:has(.nav-new) { margin-right: 10px; } }
