/* makeupme.ai r26: the home mirror's added controls, on the home page only: the colour pickers, the lip finish, the before/after split,
   the kept looks and the words to search with. The tokens (--ink, --muted, --line, --paper, --stage) come from style.css. */
.palette .row.many { gap: 8px; }
.palette .row.many .swatch { width: 36px; height: 36px; }
.palette .row.many .swatch.lip { width: 32px; height: 32px; }
.palette .row.many .swatch.none::after { left: 7px; right: 7px; }
.palette .pick { display: flex; align-items: center; gap: 10px; margin: -6px 0 16px; }
.palette .pick label { display: inline; margin: 0; font-size: 0.9rem; color: var(--muted); }
.palette .pick input[type="color"] { width: 52px; height: 36px; padding: 2px; border: 2px solid var(--line); border-radius: 2px; background: transparent; cursor: pointer; }
.palette fieldset.finish { border: 0; margin: -6px 0 16px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.palette fieldset.finish legend { float: left; padding: 0; margin: 0 2px 0 0; font-size: 0.9rem; color: var(--muted); }
.palette fieldset.finish label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 0.9rem; color: var(--ink); cursor: pointer; min-height: 32px; }
.palette fieldset.finish input { accent-color: var(--ink); margin: 0; width: 18px; height: 18px; }
/* the split: a divider over the picture, the untouched picture on its left */
.mirror.split-on { touch-action: none; cursor: ew-resize; }
.mirror .split { position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; margin-left: -22px; z-index: 2; cursor: ew-resize; touch-action: none; outline: none; }
.mirror .split[hidden] { display: none; }
.mirror .split::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(23, 17, 21, 0.55); }
.mirror .split::after { content: ""; position: absolute; left: 9px; top: 50%; width: 22px; height: 22px; margin-top: -13px; border-radius: 50%; background: #fff; border: 2px solid #171115; }
.mirror .split:focus-visible::after { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #171115; }
.mirror .split .tag { position: absolute; top: 10px; font-size: 0.75rem; font-weight: 700; line-height: 1.2; background: rgba(23, 17, 21, 0.78); color: #f1e9ec; padding: 4px 7px; white-space: nowrap; }
.mirror .split .tag-before { right: 30px; }
.mirror .split .tag-after { left: 30px; }
/* the kept looks, side by side */
.looks h2 { font-size: 1.4rem; margin: 1.4em 0 0.4em; }
.looks .kept { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; max-width: 760px; }
.looks figure { margin: 0; }
.looks .use { display: block; width: 100%; padding: 0; border: 2px solid var(--line); background: var(--stage); cursor: pointer; border-radius: 2px; }
.looks .use:hover { border-color: var(--ink); }
.looks canvas { display: block; width: 100%; height: auto; }
.looks figcaption { font-size: 0.8rem; color: var(--muted); margin: 5px 0 4px; line-height: 1.35; }
.looks .rm { font: inherit; font-size: 0.8rem; font-weight: 700; padding: 4px 9px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; border-radius: 2px; }
.looks .hint { font-size: 0.85rem; color: var(--muted); margin: 8px 0 0; }
/* B64: the code on the box */
.palette .boxcode { margin: -6px 0 16px; }
.palette .boxcode .pick { flex-wrap: wrap; margin: 0 0 6px; }
.palette .boxcode input[type="text"] { font: inherit; font-size: 1rem; width: 8.5em; padding: 6px 8px; border: 2px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink); }
.palette .boxcode select { font: inherit; font-size: 0.9rem; padding: 6px 4px; border: 2px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink); }
.palette .boxcode .boxout { font-size: 0.92rem; margin: 0 0 6px; }
.palette .boxcode .boxout:empty { display: none; }
.palette .boxcode .links { font-size: 0.92rem; margin: 0 0 6px; }
.palette .boxcode .links a { font-weight: 700; }
.palette .boxcode .note { color: var(--muted); font-size: 0.82rem; margin: 0; }
/* the words to search with */
.palette .shop { margin: 20px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.palette .shop h2 { margin: 0 0 8px; }
.palette .shop p { margin: 0 0 8px; font-size: 0.92rem; }
.palette .shop .words b { font-weight: 700; overflow-wrap: anywhere; }
.palette .shop .links a { font-weight: 700; }
.palette .shop .warn { border-left: 3px solid #b4532a; padding-left: 10px; }
.palette .shop .note { color: var(--muted); font-size: 0.82rem; }
.mirror img.still { visibility: visible; object-fit: contain; }
/* r31: r27's loading background is now the poster picture under the canvas (index.html), in AVIF or WebP at the size shown */

/* r30 (4 Nov 2026): the divider's handle is the one berry thing on the picture: a 32 px knob with the two arrows the drag follows,
   in a 44 px hit area; while the page's first reveal wipes the divider across, the knob is hidden so it reads as a wipe, not a slider */
.mirror .split::before { background: #fff; box-shadow: 0 0 0 1px rgba(23, 17, 21, 0.6); }
.mirror .split::after { content: "\2039\00a0\203A"; display: flex; align-items: center; justify-content: center; left: 6px; width: 32px; height: 32px; margin-top: -16px; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(23, 17, 21, 0.6); color: #fff; font: 700 17px/1 var(--sans); padding-bottom: 2px; transition: transform 0.12s ease; }
.mirror .split:hover::after { transform: scale(1.08); }
.mirror .split:focus-visible::after { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--accent); }
.mirror.revealing .split::after { opacity: 0; }
.mirror.revealing .split .tag { opacity: 1; }
/* r31: the home rows are written into the page (its opening state: copper hair, berry lips, as its poster); their colours, here,
   so they show from the first paint (the script sets the same --sw when it wires them) */
#hair-row .swatch[data-id="jet"] { --sw: #141214; }
#hair-row .swatch[data-id="espresso"] { --sw: #2c1b15; }
#hair-row .swatch[data-id="dark-brown"] { --sw: #3d2a1e; }
#hair-row .swatch[data-id="medium-brown"] { --sw: #523b2a; }
#hair-row .swatch[data-id="light-brown"] { --sw: #6d523b; }
#hair-row .swatch[data-id="dark-blonde"] { --sw: #8e6f50; }
#hair-row .swatch[data-id="medium-blonde"] { --sw: #af8d66; }
#hair-row .swatch[data-id="light-blonde"] { --sw: #cdab7d; }
#hair-row .swatch[data-id="lightest-blonde"] { --sw: #e1c292; }
#hair-row .swatch[data-id="platinum"] { --sw: #e9dfcf; }
#hair-row .swatch[data-id="ash-brown"] { --sw: #484138; }
#hair-row .swatch[data-id="dark-ash-blonde"] { --sw: #7c7365; }
#hair-row .swatch[data-id="light-ash-blonde"] { --sw: #bbaf9a; }
#hair-row .swatch[data-id="silver"] { --sw: #b4b6b9; }
#hair-row .swatch[data-id="golden-brown"] { --sw: #754f25; }
#hair-row .swatch[data-id="honey"] { --sw: #c99a46; }
#hair-row .swatch[data-id="golden-blonde"] { --sw: #d6aa55; }
#hair-row .swatch[data-id="dark-copper"] { --sw: #863d1b; }
#hair-row .swatch[data-id="copper"] { --sw: #b65a2c; }
#hair-row .swatch[data-id="light-copper"] { --sw: #d98350; }
#hair-row .swatch[data-id="auburn"] { --sw: #7e3121; }
#hair-row .swatch[data-id="bright-red"] { --sw: #b92f2c; }
#hair-row .swatch[data-id="chestnut"] { --sw: #5a3522; }
#hair-row .swatch[data-id="mahogany"] { --sw: #662c28; }
#hair-row .swatch[data-id="burgundy"] { --sw: #7e3243; }
#hair-row .swatch[data-id="plum"] { --sw: #602f52; }
#hair-row .swatch[data-id="rose-gold"] { --sw: #d7a59a; }
#hair-row .swatch[data-id="pastel-pink"] { --sw: #f3b6c9; }
#hair-row .swatch[data-id="rose"] { --sw: #cf6a89; }
#hair-row .swatch[data-id="lavender"] { --sw: #8f73bf; }
#hair-row .swatch[data-id="purple"] { --sw: #6a3b9a; }
#hair-row .swatch[data-id="teal"] { --sw: #2b8f94; }
#hair-row .swatch[data-id="blue"] { --sw: #2f55b8; }
#lip-row .swatch[data-id="pale-nude"] { --sw: #d8a593; }
#lip-row .swatch[data-id="nude"] { --sw: #c68c7a; }
#lip-row .swatch[data-id="deep-nude"] { --sw: #8e5a48; }
#lip-row .swatch[data-id="baby-pink"] { --sw: #e8a0b0; }
#lip-row .swatch[data-id="rose-pink"] { --sw: #c8607a; }
#lip-row .swatch[data-id="hot-pink"] { --sw: #d6286e; }
#lip-row .swatch[data-id="mauve"] { --sw: #a8697a; }
#lip-row .swatch[data-id="dusty-rose"] { --sw: #b9787f; }
#lip-row .swatch[data-id="rosewood"] { --sw: #b06a6e; }
#lip-row .swatch[data-id="peach"] { --sw: #e89272; }
#lip-row .swatch[data-id="coral"] { --sw: #e2634b; }
#lip-row .swatch[data-id="orange-red"] { --sw: #d9432c; }
#lip-row .swatch[data-id="cherry"] { --sw: #c2222f; }
#lip-row .swatch[data-id="blue-red"] { --sw: #b0162f; }
#lip-row .swatch[data-id="deep-blue-red"] { --sw: #7d1426; }
#lip-row .swatch[data-id="brick-red"] { --sw: #9e3426; }
#lip-row .swatch[data-id="raspberry"] { --sw: #b5294f; }
#lip-row .swatch[data-id="berry"] { --sw: #8f2346; }
#lip-row .swatch[data-id="wine"] { --sw: #6e1a2e; }
#lip-row .swatch[data-id="plum"] { --sw: #5b2040; }
#lip-row .swatch[data-id="deep-plum"] { --sw: #431631; }
#lip-row .swatch[data-id="cinnamon"] { --sw: #9a5440; }
#lip-row .swatch[data-id="mocha"] { --sw: #7a4a3e; }
#lip-row .swatch[data-id="chocolate"] { --sw: #5e3329; }

/* B70 */ .buy p{margin:.35rem 0}.buy ul{margin:.2rem 0 .4rem 1.2rem;padding:0}.buy li{margin:.15rem 0}.buy .note{font-size:.9em}
