/* The shade library: a hand that takes any CND Shellac colour, and the shades to choose from. */
.shades-hero { padding: 56px var(--gutter) 28px; }
.shades-hero .lede { margin-top: 16px; }
.shades-app { display: grid; gap: 28px; padding: 0 var(--gutter) 96px; }
.preview { position: sticky; top: var(--top); z-index: 5; background: var(--paper); padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.hand-wrap { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 14px; }
.hand { display: block; width: 100%; height: 34vh; max-height: 420px; background: var(--stone); }
.hand .shading { mix-blend-mode: multiply; pointer-events: none; }
.hand .shadow { mix-blend-mode: multiply; pointer-events: none; }
.hand .light { mix-blend-mode: screen; pointer-events: none; }
.hand .gloss { mix-blend-mode: screen; pointer-events: none; }
.hand .sparkle { mix-blend-mode: screen; pointer-events: none; }
.hand rect { transition: fill .5s ease, opacity .5s ease; }
.tones { display: flex; flex-direction: column; gap: 10px; padding-bottom: 6px; }
.tones[hidden] { display: none; }
.tones-label { display: none; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.tone { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(18, 18, 18, .18); background: var(--t); cursor: pointer; padding: 0; outline-offset: 3px; }
.tone[aria-checked="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }
.current { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.current > .guide { display: none; }
.current .eyebrow { margin: 0 0 4px; }
.current-name { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.05; color: var(--ink); margin: 0; }
.current .actions { display: flex; align-items: center; gap: 16px; }
.current .btn { height: 44px; padding: 0 18px; font-size: 11.5px; }
.copy { appearance: none; background: none; border: 0; padding: 6px 0; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-bottom: 1px solid transparent; }
.copy:hover { color: var(--ink); border-color: var(--ink); }
.copy:disabled { color: var(--muted); cursor: progress; }
/* The picture to send */
.snap { border: 0; padding: 0; background: var(--paper); color: var(--text); width: min(92vw, 440px); max-height: 94vh; overflow: auto; box-shadow: 0 30px 80px -30px rgba(18, 18, 18, .5); }
.snap::backdrop { background: rgba(18, 18, 18, .5); }
.snap-inner { padding: 20px 20px 22px; display: grid; gap: 14px; }
.snap-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.snap-title { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 0; color: var(--ink); }
.snap-close { appearance: none; background: none; border: 0; padding: 6px 0; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.snap-close:hover { color: var(--ink); }
.snap-img { display: block; width: 100%; height: auto; max-height: 56vh; object-fit: contain; background: var(--stone); }
.snap-hint { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.snap-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.snap-actions .btn { height: 48px; padding: 0 24px; font-size: 12px; }
.snap-actions .copy { text-decoration: none; }
.current-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.save { appearance: none; background: none; border: 0; padding: 6px 0; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; flex: none; }
.save::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1px solid currentColor; transition: background .2s; }
.save:hover, .save[aria-pressed="true"] { color: var(--ink); }
.save[aria-pressed="true"]::before { background: var(--ink); }
.shortlist { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.shortlist[hidden] { display: none; }
.shortlist-label { font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.shortlist-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.shortlist-dots button { appearance: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 48%), var(--c); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .12), 0 1px 2px rgba(18, 18, 18, .1); }
.shortlist-dots button[aria-current="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }
.shortlist-send { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 3px; margin-left: auto; }
.shortlist-send:hover { border-color: transparent; }
.shortlist-clear { appearance: none; background: none; border: 0; padding: 4px 0; font-family: var(--sans); font-size: 12px; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.guide { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--muted); }
.library { min-width: 0; }
.tools { display: grid; gap: 14px; margin-bottom: 18px; }
.search { width: 100%; height: 50px; padding: 0 18px; border: 1px solid var(--line-ink); background: var(--paper); font-family: var(--sans); font-size: 16px; color: var(--ink); border-radius: 0; -webkit-appearance: none; }
.search:focus { outline: none; border-color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border: 1px solid var(--line-ink); background: var(--paper); font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--ink); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); border: 1px solid rgba(18, 18, 18, .12); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.count { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 18px 10px; }
.swatch { appearance: none; background: none; border: 0; padding: 0; width: 100%; cursor: pointer; display: grid; justify-items: center; gap: 8px; color: var(--text); font-family: var(--sans); }
.drop { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .62) 0, rgba(255, 255, 255, .18) 22%, rgba(255, 255, 255, 0) 48%), var(--c); box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(18, 18, 18, .08); transition: transform .25s ease; position: relative; }
.drop.glitter::after, .drop.shimmer::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background-image: radial-gradient(circle at 20% 60%, rgba(255,255,255,.9) 0 1px, transparent 1.6px), radial-gradient(circle at 70% 30%, rgba(255,255,255,.85) 0 1px, transparent 1.6px), radial-gradient(circle at 55% 75%, rgba(255,255,255,.8) 0 .8px, transparent 1.4px), radial-gradient(circle at 38% 42%, rgba(255,255,255,.7) 0 .8px, transparent 1.4px), radial-gradient(circle at 80% 68%, rgba(255,255,255,.8) 0 .8px, transparent 1.4px); opacity: .9; }
.drop.shimmer::after { opacity: .45; }
.swatch:hover .drop { transform: scale(1.06); }
.swatch[aria-pressed="true"] .drop { box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--ink), inset 0 -6px 12px rgba(0, 0, 0, .12); }
.swatch .name { font-size: 12px; line-height: 1.25; text-align: center; color: var(--text); }
.swatch[aria-pressed="true"] .name { color: var(--ink); font-weight: 500; }
.swatch:focus-visible { outline: none; }
.swatch:focus-visible .drop { box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--ink); }
.empty { padding: 40px 0; color: var(--muted); }
@media (min-width: 900px) {
  .shades-hero { padding: 72px var(--gutter) 36px; }
  .shades-app { grid-template-columns: minmax(380px, 520px) 1fr; gap: 72px; align-items: start; padding-bottom: 140px; }
  .preview { position: sticky; top: calc(var(--top) + 24px); border: 0; padding: 0; }
  .chips { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }   /* room to show every family; the scroll row is for phones */
  /* The whole preview (hand, shade name, Book button) must fit the screen or the browser can only pin its top and the
     name and button sit below the fold until the end of the list. 311px is the name block, its margin and breathing room. */
  .hand-wrap { grid-template-columns: 1fr; width: min(100%, calc((100vh - var(--top) - 351px) * 0.8)); min-width: 300px; }
  .preview.has-list .hand-wrap { width: min(100%, calc((100vh - var(--top) - 407px) * 0.8)); }   /* the shortlist row takes about 56px */
  .hand { height: auto; max-height: none; aspect-ratio: 4 / 5; }
  .tones { flex-direction: row; align-items: center; gap: 10px; padding: 14px 0 0; }   /* under the photo, not on it */
  .tones-label { display: block; margin-right: 6px; }
  .tone { width: 26px; height: 26px; }
  .current { gap: 14px; margin-top: 22px; }
  .current > .guide { display: block; }
  .current-name { font-size: 40px; }
  .current .btn { height: 52px; padding: 0 28px; font-size: 12.5px; }
  .tools { margin-bottom: 24px; }
  .swatches { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 22px 12px; }
  .drop { width: 62px; height: 62px; }
}
@media (prefers-reduced-motion: reduce) { .hand path, .drop { transition: none; } }
