/* watchland.ca/studio: the AI Face Creator in the browser (closed beta). On top of wl.css. */

.page-studio .nav { position: sticky; }
.studio { padding-top: 28px; padding-bottom: 80px; min-height: calc(100vh - 140px); }
.studio-state { max-width: 560px; margin: 40px auto; }
.studio-state h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 14px; }
.studio-state p { color: var(--muted); margin-bottom: 14px; }
.studio-state .btn { margin-top: 6px; }
.studio-muted { color: var(--faint); font-size: 14px; }
.studio-err { color: var(--err); min-height: 1.4em; font-size: 14px; margin-top: 10px; }
.studio-ok { color: var(--ok); }

/* who is signed in, in the nav */
.who { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 14px; color: var(--muted); }
.who .credits { color: var(--gold); font-weight: 700; white-space: nowrap; background: rgba(255, 209, 102, 0.08); border: 1px solid rgba(255, 209, 102, 0.28); border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.who .credits:hover { border-color: var(--gold); }
.who .credits:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* buying credits */
.dialog-buy .buy-balance { color: var(--text); }
.packs { display: grid; gap: 10px; margin-bottom: 14px; }
.pack { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.pack strong { color: var(--gold); font-family: var(--display); font-size: 20px; }
.pack span { font-weight: 700; }
.pack:hover:not(:disabled) { border-color: var(--gold); }
.pack:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pack:disabled { opacity: 0.55; cursor: default; }
.pack.busy { opacity: 1; border-color: var(--gold); }
.pack.busy span::after { content: ' …'; }
.dialog .buy-note { font-size: 13px; color: var(--faint); }
.who .btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.who-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .who-name { display: none; } }

/* sign in */
.signin { display: grid; gap: 12px; margin-top: 18px; }
.btn-idp { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); width: 100%; }
.btn-idp:hover { border-color: var(--gold); }
.btn-idp svg { width: 20px; height: 20px; }
/* Apple’s white button style: white with a black logo and label. */
.btn-apple { background: #fff; color: #000; border-color: #fff; }
.btn-apple:hover { background: #fff; border-color: var(--gold); }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; margin: 6px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field textarea, .prompt textarea, .name-row input {
  width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 12px 14px; font: 400 16px/1.4 var(--body);
}
.field input:focus, .prompt textarea:focus, .name-row input:focus { outline: none; border-color: var(--gold); }

/* tabs */
.tabs { display: flex; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; color: var(--muted); font: 700 15px/1 var(--body); padding: 12px 14px; cursor: pointer; border-bottom: 2px solid transparent; }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--orange); }

/* step 1: describe */
.describe { display: grid; gap: 14px; max-width: 860px; }
.describe h1 { font-size: clamp(26px, 4vw, 36px); }
.prompt textarea { min-height: 96px; resize: vertical; }
.prompt-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ideas { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: var(--surface); color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 12px; font: 500 13px/1.2 var(--body); cursor: pointer; text-align: left;
}
.chip:hover { color: var(--text); border-color: var(--gold); }
.chip[aria-pressed="true"] { color: #1c1917; background: var(--gold); border-color: var(--gold); }
.thought { color: var(--faint); font-size: 14px; min-height: 1.4em; font-style: italic; }

.designs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
@media (min-width: 900px) { .designs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.design {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
  display: grid; gap: 8px; text-align: left; color: inherit; font: inherit; cursor: pointer;
}
.design:disabled { cursor: default; }
.design:not(:disabled):hover { border-color: var(--gold); }
.design .disc { aspect-ratio: 1; border-radius: 50%; background: var(--bg-2); overflow: hidden; display: grid; place-items: center; position: relative; }
.design .disc img { width: 100%; height: 100%; object-fit: cover; }
.design .d-name { font-weight: 700; font-size: 15px; }
.design .d-notes { color: var(--faint); font-size: 13px; line-height: 1.4; }
.design .d-note-err { color: var(--err); }
.pulse { width: 46%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--orange); animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* my faces */
.mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.mine .design .disc { background: #000; }
.mine-empty { color: var(--muted); }

/* cost confirmation */
.dialog { border: 1px solid var(--line-2); background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 22px; max-width: 420px; width: calc(100% - 32px); }
.dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.dialog h2 { font-size: 22px; margin-bottom: 10px; }
.dialog p { color: var(--muted); margin-bottom: 16px; }

/* the live face (assets/js/studio-live.js) */
.sl-face, .sl-layer { position: absolute; inset: 0; }
.sl-face { overflow: hidden; }
.sl-layer { transition: opacity 0.35s ease; }
.sl-pic { position: absolute; max-width: none; user-select: none; pointer-events: none; }
.mine-tile { display: grid; gap: 8px; justify-items: start; }
.mine-tile .design { width: 100%; }

/* own pictures, sharing, remixes */
.own { display: grid; gap: 8px; }
.own-list { display: flex; gap: 8px; flex-wrap: wrap; }
.own-list button { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; padding: 0; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }
.own-list button:hover, .own-list button:focus-visible { border-color: var(--gold); }
.own-list img { width: 100%; height: 100%; object-fit: cover; }
.file-btn { width: fit-content; }
.remix-of { color: var(--muted); font-size: 14px; }
.remix-of a { color: var(--gold); }
.share-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.share-box p { color: var(--muted); font-size: 14px; word-break: break-all; }
.share-box a { color: var(--gold); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; margin: 10px 0; }
.check input { margin-top: 3px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; color: var(--gold); border: 1px solid rgba(255, 209, 102, 0.35); border-radius: 999px; padding: 2px 8px; }

/* the public page of a shared face */
.share-page { display: grid; gap: 22px; justify-items: center; text-align: center; max-width: 560px; margin: 24px auto; }
.share-page h1 { font-size: clamp(28px, 5vw, 40px); }
.share-page .watch { width: min(100%, 380px); }
.share-meta { color: var(--muted); }
.share-meta a { color: var(--gold); }

/* step 2: the editor ("bench"): a bar with the name and the actions, the watch, the inspector */
.bench-bar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
  position: sticky; top: 64px; z-index: 20; background: rgba(7, 7, 11, 0.88); backdrop-filter: blur(12px);
  margin: -8px 0 6px; padding: 10px 0; border-bottom: 1px solid var(--line);
}
.bench-title { min-width: 0; }
.bench-title input {
  width: 100%; max-width: 520px; background: transparent; border: 1px solid transparent; border-radius: 10px;
  color: var(--text); font: 700 22px/1.2 var(--display); letter-spacing: -0.01em; padding: 4px 8px; margin-left: -8px;
  text-overflow: ellipsis;
}
.bench-title input:hover { border-color: var(--line); }
.bench-title input:focus { outline: none; border-color: var(--gold); background: var(--surface); }
.bench-sub { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--faint); margin: 2px 0 0; }
.state::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--faint); }
.state[data-tone="ok"]::before { background: var(--ok); }
.state[data-tone="warn"]::before { background: var(--gold); }
.state[data-tone="busy"]::before { background: var(--orange); animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.bench-actions, .bench-hist { display: flex; gap: 8px; align-items: center; }
.bench-actions .btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
[data-share-open].is-on { border-color: rgba(255, 209, 102, 0.5); color: var(--gold); }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover:not(:disabled) { border-color: var(--gold); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.bench-note { background: rgba(74, 222, 128, 0.08); border: 1px solid rgba(74, 222, 128, 0.3); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.bench-note strong { color: var(--ok); }
.link-btn { background: none; border: 0; color: var(--gold); font: 600 13px/1 var(--body); cursor: pointer; padding: 6px 4px; }
.link-btn:hover { text-decoration: underline; }

.bench { display: grid; gap: 28px; margin-top: 10px; }
@media (min-width: 960px) { .bench { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: start; } }

/* the watch on its turntable */
.stage { display: grid; gap: 10px; justify-items: center; padding: 8px 0 12px; }
@media (min-width: 960px) { .stage { position: sticky; top: 150px; } }
.turntable {
  width: min(100%, 520px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; position: relative;
  background: radial-gradient(closest-side, rgba(255, 209, 102, 0.07), rgba(255, 153, 4, 0.025) 62%, transparent 100%);
}
.watch {
  width: 80%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #000; position: relative;
  box-shadow: 0 0 0 9px #17171d, 0 0 0 11px #2a2a33, 0 0 0 12px rgba(255, 209, 102, 0.12), 0 34px 90px rgba(0, 0, 0, 0.7);
  transition: filter 0.25s ease;
}
.watch.busy::after { content: ''; position: absolute; inset: 0; background: rgba(7, 7, 11, 0.45); }
.turntable > * { grid-area: 1 / 1; }
/* a quick preview under way: a ring round the bezel fills, then completes and fades */
.progress-ring {
  display: block; width: calc(80% + 60px); aspect-ratio: 1; transform: rotate(-90deg); pointer-events: none; overflow: visible;
  opacity: 0; transition: opacity 0.3s ease; filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.55));
}
.progress-ring circle { fill: none; stroke-width: 4px; vector-effect: non-scaling-stroke; }
.progress-ring .track { stroke: rgba(255, 209, 102, 0.16); }
.progress-ring .arc { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 100; }
.progress-ring.is-on { opacity: 1; }
.progress-ring.is-on .arc { animation: ring-fill 2.4s cubic-bezier(0.12, 0.75, 0.2, 1) forwards; }
.progress-ring.is-done { opacity: 0; transition-delay: 0.2s; }
.progress-ring.is-done .arc { animation: none; stroke-dashoffset: 0; }
@keyframes ring-fill { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 7; } }
/* drawing mode: a painted part changed, the photo waits for saving */
.draw-note {
  width: min(100%, 520px); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: rgba(255, 153, 4, 0.08); border: 1px solid rgba(255, 153, 4, 0.35); border-radius: 12px; padding: 10px 14px;
}
.draw-note p { margin: 0; font-size: 13px; color: var(--text); flex: 1 1 240px; }
.stage .thought { min-height: 1.4em; margin: 0; }
.stage-ctl { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.stage-hint { color: var(--faint); font-size: 13px; text-align: center; margin: 0; max-width: 420px; }
.hot { position: absolute; border: 1.5px dashed rgba(255, 209, 102, 0); border-radius: 12px; cursor: pointer; background: none; padding: 0; }
.hot:hover, .hot:focus-visible, .hot[aria-pressed="true"] { border-color: var(--gold); background: rgba(255, 209, 102, 0.08); }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 3px; }
.seg button { background: none; border: 0; color: var(--muted); font: 600 13px/1 var(--body); padding: 9px 12px; border-radius: 9px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }

/* time and sample data under the watch */
.scrub { width: min(100%, 420px); display: grid; gap: 4px; }
.scrub-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 54px 40px; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.scrub-row input { width: 100%; accent-color: var(--gold); }
.scrub-row output { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }

/* places on the face (drag to move) */
.places { position: absolute; inset: 0; z-index: 5; }
.place {
  position: absolute; border-radius: 50%; display: grid; place-items: center; padding: 4px; cursor: default;
  border: 1.5px dashed rgba(255, 255, 255, 0.35); background: rgba(7, 7, 11, 0.25); color: rgba(255, 255, 255, 0.7);
  font: 700 11px/1.1 var(--body); text-align: center; touch-action: none; transition: left 0.2s ease, top 0.2s ease, box-shadow 0.15s ease;
}
.place span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.place.is-filled {
  cursor: grab; border: 1.5px solid var(--gold); background: rgba(7, 7, 11, 0.55); color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.12);
}
.place.is-filled:hover { background: rgba(7, 7, 11, 0.7); }
.place.is-dragging { cursor: grabbing; z-index: 2; transition: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(255, 209, 102, 0.25); }
.place.is-target { border-style: solid; border-color: var(--orange); background: rgba(255, 153, 4, 0.22); color: #fff; }
.place.is-locked.is-filled { border-color: rgba(255, 209, 102, 0.6); }

/* the inspector */
.inspector { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.insp-tabs { display: flex; gap: 2px; padding: 6px 6px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.insp-tabs::-webkit-scrollbar { display: none; }
.insp-tab {
  background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); white-space: nowrap;
  font: 700 14px/1 var(--body); padding: 12px 12px 13px; cursor: pointer;
}
.insp-tab:hover { color: var(--text); }
.insp-tab[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--orange); }
.insp-tab[data-tab="AI"] { color: var(--gold); margin-right: 6px; }
.insp-body { padding: 16px; display: grid; gap: 16px; }
.insp-sec { display: grid; gap: 16px; }
.insp-hint { color: var(--faint); font-size: 13px; margin: 0; }
/* parts painted into a photo-real dial: their price, and Back to the photo's value */
.cost-mark {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; vertical-align: 1px;
  background: rgba(255, 209, 102, 0.14); color: var(--gold); font: 700 11px/1.4 var(--body); white-space: nowrap;
}
.paint-hint .cost-mark { margin: 0 2px; }
.swatch-tile .cost-mark { margin-left: auto; flex: none; }
.swatch-cell { position: relative; display: grid; min-width: 0; }
.swatch-cell.is-changed .swatch-tile { border-color: rgba(255, 153, 4, 0.6); }
.ctl.is-changed .ctl-label { color: var(--text); }
.ctl-name { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.back-btn {
  background: none; border: 1px solid var(--line-2); color: var(--gold); border-radius: 999px; cursor: pointer;
  padding: 3px 9px; font: 600 12px/1.2 var(--body); white-space: nowrap;
}
.back-btn:hover { border-color: var(--gold); }
.swatch-cell .back-btn { justify-self: start; margin-top: 4px; }
.btn-cost { font-weight: 700; opacity: 0.85; }

/* colours: round swatches with their names; a palette opens under the row */
.st-swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.swatch-tile {
  display: flex; gap: 10px; align-items: center; text-align: left; min-width: 0; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; color: var(--text); font: inherit;
}
.swatch-tile:hover, .swatch-tile[aria-expanded="true"] { border-color: var(--line-2); }
.swatch-tile[aria-expanded="true"] { border-color: var(--gold); }
.swatch {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 -6px 10px rgba(0, 0, 0, 0.25);
}
.swatch.is-none { background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(255, 255, 255, 0.18) 5px 6px); }
.swatch-text { display: grid; min-width: 0; }
.swatch-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swatch-val { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop {
  grid-column: 1 / -1; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px;
  display: grid; gap: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.pop-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.pop-chip {
  aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.pop-chip:hover { transform: scale(1.12); }
.pop-chip[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 4px var(--gold); }
.pop-row { display: flex; gap: 10px; align-items: center; }
.pop-custom { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.pop-custom input { width: 32px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; }
.pop-hex {
  width: 96px; margin-left: auto; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--text); font: 500 13px/1 var(--body); padding: 8px; text-transform: uppercase;
}
.pop-none { justify-self: start; background: none; border: 1px solid var(--line-2); color: var(--muted); border-radius: 999px; padding: 6px 12px; font: 600 12px/1 var(--body); cursor: pointer; }
.pop-none[aria-pressed="true"] { color: #1c1917; background: var(--gold); border-color: var(--gold); }

/* colour schemes: one tap recolours the face (studio-controls.js schemeRow) */
.scheme-wrap { display: grid; gap: 8px; }
.scheme-head { display: flex; align-items: center; justify-content: space-between; }
.scheme-title { font-size: 13px; font-weight: 700; color: var(--muted); }
.scheme-more { background: none; border: 1px solid var(--line-2); color: var(--gold); border-radius: 999px; padding: 4px 10px; font: 600 12px/1.2 var(--body); cursor: pointer; }
.scheme-more:hover { border-color: var(--gold); }
.scheme-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.scheme-chip {
  flex: none; display: grid; justify-items: center; gap: 6px; min-width: 76px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 7px; color: var(--text); font: inherit;
}
.scheme-chip:hover { border-color: var(--gold); }
.scheme-dots { display: flex; }
.scheme-dot { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg-2), inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.scheme-dot + .scheme-dot { margin-left: -6px; }
.scheme-name { font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--muted); }

/* the other controls: name left, input right */
.st-rows { display: grid; }
.ctl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.st-rows .ctl:first-child { border-top: 0; padding-top: 0; }
.ctl-label { color: var(--muted); font-size: 14px; }
.ctl.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 40% { background: rgba(255, 209, 102, 0.12); } 100% { background: transparent; } }
.select, .text-in {
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 8px 10px; font: 500 14px/1.2 var(--body); max-width: 230px;
}
.text-in { width: 200px; text-transform: uppercase; letter-spacing: 0.04em; }
.select:focus, .text-in:focus { outline: none; border-color: var(--gold); }
.st-pills { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; }
.st-pill { background: none; border: 0; color: var(--muted); font: 600 13px/1 var(--body); padding: 7px 10px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.st-pill:hover { color: var(--text); }
.st-pill[aria-checked="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.35); }
.st-switch {
  appearance: none; width: 40px; height: 24px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2);
  position: relative; cursor: pointer; transition: background 0.15s ease;
}
.st-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform 0.15s ease, background 0.15s ease; }
.st-switch:checked { background: rgba(255, 153, 4, 0.35); border-color: var(--orange); }
.st-switch:checked::after { transform: translateX(16px); background: var(--gold); }
.range { display: flex; gap: 10px; align-items: center; }
.range input { width: 150px; accent-color: var(--gold); }
.range output { color: var(--text); font-size: 13px; min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.ctl :disabled, .swatch-tile:disabled { opacity: 0.5; cursor: default; }

/* asking the AI */
.ai-panel { display: grid; gap: 16px; }
.change { display: grid; gap: 8px; }
.change label { font-weight: 700; font-size: 15px; }
.change textarea {
  width: 100%; min-height: 84px; resize: vertical; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 12px 14px; font: 400 15px/1.4 var(--body);
}
.change textarea:focus { outline: none; border-color: var(--gold); }
.target { font-size: 13px; color: var(--gold); min-height: 0; margin: 0; }
.ai-ideas { display: grid; gap: 8px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:disabled, .btn:disabled { opacity: 0.5; cursor: default; }
.share-link { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; margin-bottom: 8px; }
.share-link p { margin: 0; font-size: 14px; word-break: break-all; }
.share-link a { color: var(--gold); }

@media (max-width: 720px) {
  .bench-bar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; top: 56px; }
  .bench-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .bench-hist { gap: 6px; }
  .bench-title input { font-size: 19px; }
  .st-swatches { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pop-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .turntable { width: 100%; }
  .watch { width: 88%; }
  .progress-ring { width: calc(88% + 44px); }
  .select, .text-in { max-width: 180px; }
  .text-in { width: 160px; }
  .range input { width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .state[data-tone="busy"]::before, .ctl.flash { animation: none; }
  .place, .st-switch::after, .watch { transition: none; }
  .progress-ring.is-on .arc { animation: none; stroke-dashoffset: 35; }
}

/* Send to watch: the QR code for the phone. */
.send-qr { width: 220px; margin: 16px auto; padding: 10px; border-radius: 14px; background: #fff; }
.send-qr svg { display: block; width: 100%; height: auto; }

/* Google Play kit */
.dialog-play { max-width: 540px; }
.play-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 20px; padding: 0; counter-reset: step; }
.play-steps li { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; font-size: 13px; line-height: 1.35; color: var(--muted); }
.play-steps svg { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.play-steps li::before { counter-increment: step; content: counter(step); position: absolute; top: -4px; left: calc(50% + 16px); width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #1c1917; font-size: 12px; font-weight: 700; line-height: 20px; }
.play-count { color: var(--faint); font-size: 13px; margin-left: 6px; }
.play-key { border: 0; padding: 0; margin: 16px 0 8px; display: grid; gap: 8px; }
.play-key legend { font-size: 14px; color: var(--muted); margin-bottom: 6px; padding: 0; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--gold); background: rgba(255, 209, 102, 0.06); }
.radio input { margin-top: 3px; accent-color: var(--gold); }
.radio span { display: grid; gap: 2px; font-size: 14px; color: var(--muted); }
.radio strong { color: var(--text); font-weight: 600; }
.play-own { display: grid; gap: 10px; padding-top: 4px; }
.dialog .field-note { font-size: 13px; color: var(--faint); margin: 0; }
.play-id { margin: 8px 0 4px; }
.play-id summary { cursor: pointer; color: var(--muted); font-size: 14px; width: fit-content; }
.play-id summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.play-id .field { margin-top: 8px; }
.dialog .play-note { color: var(--text); background: rgba(255, 209, 102, 0.08); border: 1px solid rgba(255, 209, 102, 0.28); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.dialog .play-warn { background: rgba(255, 138, 138, 0.08); border-color: rgba(255, 138, 138, 0.35); }
/* The Play kit's store pictures, drawn by the render job after the zip: a quiet status card. */
.play-pics { display: grid; gap: 8px; margin: 4px 0 8px; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); }
.play-pics-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.play-pics-head span { color: var(--muted); font-size: 13px; text-align: right; }
.play-pics-what { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.play-bar { height: 4px; border-radius: 2px; background: rgba(255, 209, 102, 0.16); overflow: hidden; }
.play-bar i { display: block; height: 100%; width: 4%; background: var(--gold); border-radius: 2px; transition: width 0.6s ease; }
.play-pics[data-state="ready"] .play-bar, .play-pics[data-state="failed"] .play-bar { display: none; }
.play-pics[data-state="ready"] .play-pics-what { display: none; }
/* "Export for Google Play": the face's way out, highlighted next to Save. */
.btn-export { display: inline-flex; align-items: center; gap: 7px; color: #1c1917; background: linear-gradient(135deg, #ffe08a, var(--gold)); border: 0; box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.5), 0 8px 26px -8px rgba(255, 209, 102, 0.75); font-weight: 700; }
.btn-export:hover { box-shadow: 0 0 0 1px rgba(255, 224, 138, 0.9), 0 10px 32px -6px rgba(255, 209, 102, 0.9); }
.btn-export svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
@media (max-width: 560px) { .btn-export .export-tail { display: none; } }
/* What the export includes, and the extras with their prices (live from the builder). */
.play-get { display: grid; gap: 8px; margin: 14px 0 6px; }
.play-get h3 { font-size: 14px; margin: 6px 0 0; color: var(--text); }
.play-sub { color: var(--faint); font-weight: 400; font-size: 13px; margin-left: 4px; }
.play-incl { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.play-incl li { position: relative; padding-left: 22px; line-height: 1.4; }
.play-incl li::before { content: ""; position: absolute; left: 3px; top: 4px; width: 9px; height: 5px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.play-extras { display: grid; gap: 6px; }
.extra { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.extra:has(input:checked) { border-color: var(--gold); background: rgba(255, 209, 102, 0.06); }
.extra input { margin-top: 3px; accent-color: var(--gold); }
.extra-text { display: grid; gap: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.extra-text b { color: var(--text); font-size: 14px; font-weight: 600; }
.extra-text .link-btn { justify-self: start; padding: 2px 0 0; font-size: 13px; }
.extra-price { font-style: normal; font-weight: 700; font-size: 14px; color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.extra-price s { color: var(--faint); font-weight: 400; margin-right: 4px; }
.extra-all { border-style: dashed; }
.play-balance { margin: 4px 0 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.play-balance b { color: var(--text); }
.play-balance .short { color: #ff9b9b; }
/* Examples of the extras: real pictures and films the render job made. */
.dialog-examples { max-width: 860px; max-height: calc(100vh - 48px); overflow-y: auto; }
.dialog-examples .ex { display: grid; gap: 10px; margin-top: 18px; }
.dialog-examples h3 { font-size: 16px; margin: 0; }
.ex-pics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: start; }
.ex-pics img, .ex-films video { width: 100%; height: auto; border-radius: 8px; background: #000; display: block; }
.ex-pics .wide { grid-column: span 3; }
.ex-pics .wide + .wide { grid-column: span 2; }
.ex-films { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.ex-films figure { margin: 0; display: grid; gap: 4px; }
.ex-films figcaption { font-size: 12px; color: var(--muted); }
.ex-films .wide { grid-column: 1 / -1; }
.ex-words { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--muted); display: grid; gap: 8px; }
.ex-words b { color: var(--text); }
.ex-words p { margin: 0; }
@media (max-width: 640px) { .ex-pics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ex-pics .wide, .ex-pics .wide + .wide { grid-column: 1 / -1; } .ex-films { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .play-steps { grid-template-columns: repeat(2, 1fr); row-gap: 16px; } }
/* the face is loading: dimmed and not yet editable; the ring shows how many of its pictures are in */
.watch.loading { cursor: progress; }
.watch.loading::after { content: ''; position: absolute; inset: 0; background: rgba(7, 7, 11, 0.35); pointer-events: none; }
.progress-ring.is-load .arc { animation: none; transition: stroke-dashoffset 0.3s ease; }
.progress-ring.is-load.is-done .arc { stroke-dashoffset: 0; }

/* ── calmer editor (2026-11-19): fewer boxes, one row of tools, secondary actions in a menu ── */
/* the bar: Send to watch and Save stay; the rest sit behind ⋯ */
.more { position: relative; }
.more-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; min-width: 200px; padding: 6px; display: grid; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.more-menu[hidden] { display: none; }
.menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-radius: 9px;
  color: var(--text); font: 600 14px/1.2 var(--body); padding: 10px 12px; cursor: pointer;
}
.menu-item[hidden] { display: none; }
.menu-item:hover:not(:disabled), .menu-item:focus-visible { background: rgba(255, 255, 255, 0.06); outline: none; }
.menu-item:disabled { opacity: 0.45; cursor: default; }
.menu-item.is-on { color: var(--gold); }
.menu-item .btn-cost { margin-left: auto; color: var(--gold); }
[data-more-btn][aria-expanded="true"] { border-color: var(--gold); }
.icon-btn svg circle { fill: currentColor; stroke: none; }

/* colours: the swatch says the colour; no box round each one, no code under each name */
.st-swatches { gap: 2px 8px; }
.swatch-tile { background: none; border: 0; border-radius: 10px; padding: 7px 8px; }
.swatch-tile:hover:not(:disabled) { background: rgba(255, 255, 255, 0.045); }
.swatch-tile[aria-expanded="true"] { background: rgba(255, 255, 255, 0.06); }
.swatch-tile[aria-expanded="true"] .swatch { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--gold); }
.swatch-name { font-size: 14px; font-weight: 500; color: var(--muted); }
.swatch-tile:hover .swatch-name, .swatch-tile[aria-expanded="true"] .swatch-name { color: var(--text); }
.swatch-val { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.swatch-cell.is-changed .swatch-tile { border: 0; }
.swatch-cell.is-changed .swatch { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--orange); }
.st-swatches + .st-rows, .st-swatches ~ .st-rows { border-top: 1px solid var(--line); padding-top: 4px; }

/* a background picture: a row like the other settings */
.own { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.own-label { margin: 0; color: var(--muted); font-size: 14px; }
.own-list { grid-column: 1 / -1; }
.own-list:empty { display: none; }

/* under the watch: always-on and the time in one row */
.stage-tools { width: min(100%, 520px); display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center; }
.stage-tools .scrub { flex: 1 1 220px; width: auto; }
.stage-tools .scrub-row { grid-template-columns: 40px minmax(0, 1fr) 46px auto; }
.stage-tools .scrub-row .link-btn { padding: 6px 0; }
.stage-hint { margin-top: 2px; }

/* asking the AI: the price once; fewer ideas until asked */
.chip[hidden] { display: none; }
.ai-ideas .link-btn { justify-self: start; padding-left: 0; }
.change .btn-cost { margin-left: 4px; }

@media (max-width: 720px) {
  .bench-bar { grid-template-columns: auto minmax(0, 1fr) auto; }
  /* row 2: undo/redo at the start, the actions at the end, sharing the row without widening column 1 */
  .bench-hist { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .bench-actions { grid-column: 1 / -1; grid-row: 2; justify-self: end; }
  .stage-tools .scrub { flex-basis: 100%; }
}
/* short laptop screens: the watch shrinks so it and the row under it fit the window together */
@media (min-width: 960px) {
  .turntable { width: min(100%, 520px, max(340px, calc(100vh - 340px))); }
}
.stage .thought:empty { display: none; }

/* ── step 1, calmer (2026-11-19): one composer box, three quiet ideas ── */
.describe { max-width: 720px; gap: 18px; }
.describe h1 { font-size: clamp(26px, 3.4vw, 34px); }
.composer {
  display: grid; gap: 10px; padding: 16px 14px 12px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line-2); transition: border-color 0.15s ease;
}
.composer:focus-within { border-color: rgba(255, 209, 102, 0.55); }
.composer textarea, .composer textarea:focus {
  background: none; border: 0; border-radius: 0; padding: 0; min-height: 64px; resize: none; outline: none;
  font: 400 17px/1.45 var(--body); color: var(--text);
}
.composer textarea::placeholder { color: var(--faint); }
.composer .prompt-row { justify-content: flex-end; gap: 14px; }
.composer .btn-primary { box-shadow: none; }
.price-note { color: var(--faint); font-size: 13px; margin-right: auto; }
.ref-photo { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; color: var(--muted, #b9b3a8); font-size: 13px; }
.ref-photo[hidden] { display: none; }
.ref-photo img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.ref-photo span { flex: 1; }
.ref-remove { background: none; border: 0; color: var(--faint); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.try { display: grid; gap: 8px; }
.try:has(.ideas:empty) { display: none; }
.try-label { margin: 0; color: var(--faint); font-size: 13px; }
.try .ideas { display: grid; gap: 4px; justify-items: start; }
.chip.idea {
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: none; border-color: transparent; padding: 6px 10px; margin-left: -10px; font-size: 14px;
}
.chip.idea:hover, .chip.idea:focus-visible { background: rgba(255, 255, 255, 0.05); border-color: transparent; color: var(--text); }
.who .credits { padding: 5px 11px; font-size: 13px; }
.page-studio .brand > span, .who .btn-sm, .who .credits { white-space: nowrap; }
@media (max-width: 560px) {
  .page-studio .brand .badge { display: none; }
  .who { gap: 8px; }
  .who .btn-sm { padding: 0 12px; }
}
.page-studio .nav-row { gap: 12px; }

/* ── home: your faces as projects, a new one first (2026-11-19) ── */
.home-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.home-head h1 { font-size: clamp(26px, 3.4vw, 34px); margin: 0; }
.home-head p { margin: 0; }
.mine { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.mine-tile { position: relative; display: block; }
.mine-tile .tile-del { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; background: rgba(7, 7, 11, 0.7); opacity: 0; transition: opacity 0.15s ease; }
.mine-tile:hover .tile-del, .mine-tile:focus-within .tile-del { opacity: 1; }
@media (hover: none) { .mine-tile .tile-del { opacity: 1; } }
.new-face { border-style: dashed; border-color: var(--line-2); background: none; }
.mine .new-face .disc { background: rgba(255, 209, 102, 0.06); border: 1px dashed rgba(255, 209, 102, 0.35); }
.new-face .disc svg { width: 34%; height: 34%; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
.mine .new-face:hover .disc { background: rgba(255, 209, 102, 0.1); border-color: var(--gold); }
.new-face .d-name { color: var(--gold); }
.back-link {
  justify-self: start; display: inline-flex; align-items: center; gap: 4px; margin: -6px 0 -6px -6px; padding: 6px 8px 6px 4px;
  background: none; border: 0; border-radius: 8px; color: var(--muted); font: 600 14px/1 var(--body); cursor: pointer;
}
.back-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.back-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) {
  .mine { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mine .design { padding: 10px; }
  .mine-tile .tile-del { top: 6px; right: 6px; width: 30px; height: 30px; }
  .new-face .d-notes { display: none; }
}

/* ---------- help: the Guides menu, Start here, "?" beside the tabs (studio-help.js) ---------- */
.help { position: relative; margin-left: auto; }
.nav-row .help ~ .who { margin-left: 0; }
.help-btn { gap: 7px; }
.help-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.help-btn svg circle:last-child { fill: currentColor; stroke: none; }
.help-btn[aria-expanded="true"] { box-shadow: 0 0 0 1px var(--gold) inset; }
@media (max-width: 560px) {
  .help-btn { width: 40px; padding: 0; }
  .help-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.help-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 250px; padding: 6px; display: grid; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
@media (max-width: 560px) { .help-menu { right: -60px; } }
.help-menu a.menu-item { text-decoration: none; }
.help-menu [data-tour-replay] { color: var(--gold); border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; margin-top: 2px; }
.help-note { color: var(--faint); font-size: 12px; line-height: 1.35; padding: 6px 12px 4px; }

.start-card {
  position: relative; display: flex; gap: 18px; align-items: center; margin: 0 0 22px; padding: 16px 52px 16px 16px;
  background: linear-gradient(120deg, rgba(255, 153, 4, 0.13), rgba(139, 92, 246, 0.08) 70%), var(--surface);
  border: 1px solid rgba(255, 209, 102, 0.3); border-radius: var(--radius);
}
.start-face { flex: none; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px #0a0a0f, 0 0 0 4px rgba(255, 209, 102, 0.35); }
.start-face img { width: 100%; height: 100%; object-fit: cover; }
.start-kicker { color: var(--gold); font: 700 11px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.start-text h2 { font-size: 22px; margin-bottom: 4px; }
.start-text > p:not(.start-kicker) { color: var(--muted); font-size: 15px; max-width: 560px; }
.start-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.start-actions .link-quiet { font-size: 14px; }
.start-close { position: absolute; top: 10px; right: 10px; }
@media (max-width: 560px) {
  .start-card { flex-direction: column; align-items: flex-start; gap: 12px; padding-right: 16px; }
  .start-face { width: 64px; height: 64px; }
}

.insp-help {
  flex: none; align-self: center; margin: 0 4px 6px auto; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  color: var(--muted); font: 700 14px/1 var(--body); text-decoration: none; box-shadow: 0 0 0 1px var(--line-2) inset;
}
.insp-help:hover, .insp-help:focus-visible { color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }

/* ---------- the tour: dimmed page, one part spotlit, a bubble with an arrow ---------- */
.tour { position: fixed; inset: 0; z-index: 1000; }
.tour.tour-center { background: rgba(4, 4, 8, 0.72); }
.tour-spot {
  position: fixed; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 200vmax rgba(4, 4, 8, 0.72);
}
.tour-tip {
  position: fixed; left: 0; top: 0; width: max-content; min-width: min(300px, calc(100vw - 24px));
  background: #1d1a14; color: var(--text); border: 1px solid rgba(255, 209, 102, 0.45); border-radius: 16px;
  padding: 16px 16px 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.tour-tip:focus { outline: none; }
.tour-tip:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.tour-arrow { position: absolute; left: calc(var(--ax, 50%) - 9px); width: 18px; height: 18px; background: #1d1a14; transform: rotate(45deg); }
.tour-tip[data-side="top"] .tour-arrow { top: -10px; border-left: 1px solid rgba(255, 209, 102, 0.45); border-top: 1px solid rgba(255, 209, 102, 0.45); }
.tour-tip[data-side="bottom"] .tour-arrow { bottom: -10px; border-right: 1px solid rgba(255, 209, 102, 0.45); border-bottom: 1px solid rgba(255, 209, 102, 0.45); }
.tour-tip[data-side="left"] .tour-arrow, .tour-tip[data-side="right"] .tour-arrow { top: calc(var(--ay, 50%) - 9px); }
.tour-tip[data-side="left"] .tour-arrow { left: -10px; border-left: 1px solid rgba(255, 209, 102, 0.45); border-bottom: 1px solid rgba(255, 209, 102, 0.45); }
.tour-tip[data-side="right"] .tour-arrow { left: auto; right: -10px; border-right: 1px solid rgba(255, 209, 102, 0.45); border-top: 1px solid rgba(255, 209, 102, 0.45); }
.tour-count { color: var(--gold); font: 700 12px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.tour-title { font-size: 20px; margin-bottom: 6px; }
.tour-text { color: var(--muted); font-size: 15px; line-height: 1.5; }
.tour-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.tour-gap { flex: 1; }
.tour-skip { color: var(--muted); padding-left: 0; }
@media (prefers-reduced-motion: no-preference) {
  .tour-anim .tour-spot { transition: left 0.22s ease, top 0.22s ease, width 0.22s ease, height 0.22s ease; }
  .tour-anim .tour-tip { transition: left 0.22s ease, top 0.22s ease; }
  .tour-tip { animation: tour-in 0.2s ease; }
  @keyframes tour-in { from { opacity: 0; transform: translateY(4px); } }
}
@media (forced-colors: active) {
  .tour-spot { outline: 3px solid Highlight; }
  .tour-tip { border: 2px solid CanvasText; }
}

/* Importing a face file (GWD, Watch Face Studio, WatchMaker) and its report */
.import-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 14px 0 4px; }
.import-note { color: var(--faint); font-size: 13px; }
.dialog-import { max-width: 520px; }
.import-report { max-height: 52vh; overflow-y: auto; margin-bottom: 16px; }
.import-report h3 { font-size: 14px; margin: 12px 0 6px; color: var(--text); }
.import-report h3:first-child { margin-top: 0; }
.import-report ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.import-report li { margin: 3px 0; }
