/* 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; }
/* 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; }
canvas#mirror { background: url("/assets/hero_after.jpg") center / contain no-repeat; }
