/* Shared Dear Miso color layer. Load after the component stylesheets.
   A midpoint between the original pastels and the first stronger palette;
   this file deliberately changes colors only. */
:root {
  --miso-paper:#fffbf4; /* Explicit warm midpoint avoids powerless-hue mixing. */
  --miso-text:color-mix(in oklch,#354358 50%,#293b59);
  --miso-detail-ink:color-mix(in oklch,#58667a 50%,#4b5871);
  --miso-sky:color-mix(in oklch,#e6effb 50%,#d2e3ff);
  --miso-rose:color-mix(in oklch,#f6e3ec 50%,#f5cddd);
  --miso-lilac:color-mix(in oklch,#eee8f5 50%,#e2d5f4);
  --miso-peach:color-mix(in oklch,#fbefe5 50%,#f9dfce);
  --miso-cream:color-mix(in oklch,#f6ecdc 50%,#f7e5c8);
  --miso-plum:oklch(48.547% .070 325.164);
  --miso-action:color-mix(in oklch,#4b6390 50%,#365a9c);
  --miso-action-hover:color-mix(in oklch,#3f567f 50%,#29477f);
  --miso-kicker-ink:color-mix(in oklch,#536786 50%,#3b5682);
  --miso-line:color-mix(in oklch,#d8dce7 50%,#c6bed7);
  --miso-control:oklch(56.386% .05237 262.307); /* #657695 */
  --miso-rose-accent:color-mix(in oklch,#c19aaa 50%,#a04c77);
  --miso-quiet-sky:color-mix(in oklch,var(--miso-sky) 42%,var(--miso-paper));
  --paper:var(--miso-paper);
  --ink:var(--miso-text);
  --muted:var(--miso-detail-ink);
  --blue:var(--miso-sky);
  --pink:var(--miso-rose);
  --lavender:var(--miso-lilac);
  --rose:var(--miso-rose);
  --cream:var(--miso-cream);
  --sky:var(--miso-sky);
  --soft-lavender:var(--miso-lilac);
  --line:var(--miso-line);
  --accent:var(--miso-action);
}

/* Shared reading, navigation and actions. Semantic error/saving colors stay
   with their components; no image pixels, opacity or filters are changed. */
::selection { background:var(--miso-rose); color:var(--ink); }
em,.miso-editorial em,.moodboard-heading h2 em { color:var(--miso-plum); }
.miso-cover h1,.hero-font-study .hero-font-intro strong { color:var(--ink); }
.brand-dot,.brand-flower,.miso-world-heart { color:var(--miso-rose-accent); }
.site-header .bag-link,.header-cta { border-color:var(--miso-line); }
.preview-note,.miso-caption,.miso-offer-disclosure,.footer-prelaunch { color:var(--muted); }
.miso-text-link { border-bottom-color:var(--miso-control); }
.button,.miso-editorial .button,.miso-edit-copy .button {
  background:var(--accent); border-color:var(--accent); color:var(--paper);
}
.button:hover,.miso-editorial .button:hover,.miso-edit-copy .button:hover {
  background:var(--miso-action-hover); border-color:var(--miso-action-hover);
}
.text-link,.text-button,.body-copy a { color:var(--accent); }
.secondary-button { color:var(--accent); border-color:var(--accent); }

/* Homepage and the concept-to-nails illustration. */
.miso-last-note,.closing,.miso-world-cloud,.custom-nail-story { background:var(--miso-rose); }
.miso-edit { background:var(--miso-lilac); }
.miso-edit-sticker,.miso-mini-portrait,.portrait-backdrop { background:var(--miso-sky); }
.miso-edit-sticker em,.miso-muse-stamp,.mood-note { color:var(--miso-kicker-ink); }
.miso-edit-price span,.custom-story-concept { color:var(--muted); }
.miso-edit-count>span,.custom-story-inspiration,.custom-story-demo { background:var(--paper); }
.miso-muse-stamp { background:var(--miso-lilac); border-color:var(--paper); }
.miso-image-note,.miso-round-arrow { background:var(--paper); color:var(--miso-kicker-ink); }
.miso-questions details,.miso-custom-steps li { border-color:var(--line); }
.miso-mood-image,.miso-editorial .moodboard-image,.moodboard-image { background:var(--miso-lilac); }
.custom-story-header { color:var(--miso-plum); }
.custom-story-outputs img { background:var(--paper); }
.custom-story-pointer { color:var(--ink); fill:var(--paper); }
.custom-story-drop { border-color:var(--miso-control); }
.custom-story-progress { background:var(--miso-lilac); }
.custom-story-replay { color:var(--paper); }
.closing em { color:var(--miso-plum); }
.closing-flower,.custom-teaser>span,.detail-strip span+span:before { color:var(--miso-rose-accent); }

/* Catalogue, fit guidance, bag, receipts and shared form controls inherit the
   same aliases above. Replace only their remaining literal pastel colors. */
.flash,.notice:not(.error),.configurator { background:var(--miso-sky); }
.pearl-art { background:var(--cream); }
.blue-art { background:var(--miso-sky); }
.blush-art,.hero-nail-card { background:var(--miso-rose); }
.design-card.selected .design-art { outline-color:var(--accent); }
.filter-row button { border-color:var(--miso-control); }
.filter-row button.active { border-color:var(--accent); }
.matched-style-option { background:var(--paper); border-color:var(--line); }
.order-summary .total,.brief-summary { border-top-color:var(--line); }
.status-chip { background:var(--paper); border-color:var(--miso-control); }
.timeline li { border-left-color:var(--line); }
.timeline li:before { background:var(--accent); }
.options span { background:var(--paper); border-color:var(--miso-control); }
.options input:checked+span { background:var(--accent); border-color:var(--accent); }
.options input:focus-visible+span { outline-color:var(--accent); }
.form-row select,textarea,.quantity-label select,
.shop-form select,.shop-form input:not([type=checkbox]),.shop-form textarea {
  background:var(--paper); border-color:var(--miso-control); color:var(--ink);
}
input::placeholder,textarea::placeholder { color:var(--muted); opacity:1; }

/* Product offers: blue means chosen, pink/lilac group the existing options. */
.hand-gallery-shape { background:var(--paper); }
.product-purchase-form .purchase-offer,
.product-purchase-form .purchase-style { background:var(--paper); border-color:var(--miso-control); }
.product-purchase-form .purchase-offer.is-selected,
.product-purchase-form .purchase-style.is-included {
  background:var(--miso-sky); border-color:var(--accent);
}
.purchase-radio-mark { border-color:var(--miso-control); }
.purchase-mix-toggle>div,.purchase-pills>div { background:var(--miso-rose); }
.purchase-pills label>span,.purchase-edit-kicker { color:var(--miso-plum); }
.purchase-pills input:checked+span { color:var(--ink); }
.purchase-personal-edit { border-color:var(--line); }
.purchase-personal-edit:hover { background:var(--miso-rose); }
.purchase-total,.product-purchase-form .purchase-sharing { background:var(--miso-lilac); }
.product-purchase-form .purchase-sharing { border-color:var(--miso-control); }
.product-purchase-form .purchase-sharing:has(input:checked) {
  background:var(--miso-sky); border-color:var(--accent);
}
.purchase-pills label:hover>span,.purchase-mix-toggle label:hover>span { background:var(--paper); }

/* The builder defines its own tokens locally, so connect those to the shared
   palette as well as the page-wide aliases. Existing semantic states remain. */
.offer-studio {
  --offer-blue:var(--miso-sky);
  --offer-rose:var(--miso-rose);
  --offer-lilac:var(--miso-lilac);
  --offer-border:var(--miso-control);
  --offer-ink:var(--ink);
}
.offer-collection-option.offer-mini,.offer-collection-option.offer-private { background:var(--offer-rose); }
.offer-collection-option.offer-grand,.offer-next-step { background:var(--offer-lilac); }
.offer-collection-option.offer-archive { background:var(--offer-blue); }
.offer-collection-option:hover { border-color:var(--accent); }
.offer-preview-note>span,.offer-summary-heading>span { color:var(--miso-plum); }
.offer-selection-mark { background:var(--paper); border-color:var(--miso-control); }
.offer-design-number { color:var(--miso-kicker-ink); }
.offer-studio input:not([type=checkbox]):not([type=radio]),
.offer-studio select,.offer-studio textarea { border-color:var(--miso-control); }
.offer-studio input[type=file]::file-selector-button { border-color:var(--miso-control); }
.offer-levels label { border-color:var(--miso-control); }
.offer-levels label.is-selected { border-color:var(--accent); }
.offer-detail-options label { background:var(--miso-quiet-sky); }
.offer-detail-options label.is-selected { background:var(--offer-lilac); border-color:var(--accent); }
.offer-add-design { border-color:var(--miso-control); }
.offer-bundle-choice>label.is-unavailable { color:var(--muted); }
.offer-totals .offer-total,.offer-shipping-note,.offer-bundle-choice { border-top-color:var(--line); }

/* The optional font-comparison view uses the same brand without changing any
   of its specimens, typography, dimensions or selection behavior. */
.hero-font-study .hero-font-controls { background:var(--miso-lilac); border-color:var(--line); }
.hero-font-study :is(.hero-font-eyebrow,.hero-font-count,.hero-font-tag) { color:var(--miso-plum); }
.hero-font-study :is(.hero-font-intro>span:last-child,.hero-font-caption>span,.hero-font-note,p.hero-font-footnote) { color:var(--muted); }
.hero-font-study :is(.hero-font-switcher select,.hero-font-switcher>button,.hero-font-specimen) {
  color:var(--ink); border-color:var(--miso-control);
}
.hero-font-study :is(.hero-font-switcher select,.hero-font-specimen) { background:var(--paper); }
.hero-font-study :is(.hero-font-specimen:nth-child(4n + 2),.hero-font-specimen:nth-child(4n + 3)) { background:var(--miso-sky); }
.hero-font-study .hero-font-specimen[aria-pressed=true] { border-color:var(--accent); }
.hero-font-study :is(.hero-font-tag,.hero-font-switcher>button:hover) { background:var(--miso-lilac); }
.hero-font-study :is(.hero-font-actions a,.hero-font-actions button,.hero-font-load button,.hero-font-try) { color:var(--accent); }
.hero-font-study .hero-font-actions :is(button,a):focus-visible,
.hero-font-study .hero-font-switcher :is(button,select):focus-visible,
.hero-font-study .hero-font-load button:focus-visible,
.hero-font-study .hero-font-specimen:focus-visible { outline-color:var(--accent); }
.hero-font-study .hero-font-specimen:hover { border-color:var(--accent); }
