/* ==========================================================================
   Atelier Souffle — feuille de style unique
   Maquette WebnexLab. Aucune dépendance, aucun build.

   Registre : studio. Courbes larges, beaucoup de blanc, une sérif posée pour
   les titres. Rien n'est partagé avec les autres maquettes.
   ========================================================================== */

/* --- 1. Jetons de couleur (une ambiance = un bloc) ----------------------- */

:root,
[data-palette="sauge"] {
  --bg: #f4f7f2;
  --bg-alt: #e8efe6;
  --surface: #ffffff;
  --deep: #1e2a22;
  --ink: #1c2620;
  --muted: #5f7267;
  --line: #dbe6d9;
  --accent: #7c9a82;
  --accent-deep: #567560;
  --accent-soft: #e6efe6;
  --accent-fg: #f7fbf6;
  --shadow: 30 42 34;
}

[data-palette="argile"] {
  --bg: #faf4ee;
  --bg-alt: #f3e8dd;
  --surface: #fffdfb;
  --deep: #2a1f1a;
  --ink: #281e18;
  --muted: #7b675a;
  --line: #ebdccd;
  --accent: #c08457;
  --accent-deep: #9a6540;
  --accent-soft: #f7e9dc;
  --accent-fg: #fff9f4;
  --shadow: 42 31 26;
}

[data-palette="brume"] {
  --bg: #f3f5f9;
  --bg-alt: #e7ebf3;
  --surface: #ffffff;
  --deep: #1b2029;
  --ink: #1a1f27;
  --muted: #5c6678;
  --line: #dae0eb;
  --accent: #7e8ca8;
  --accent-deep: #5c6a86;
  --accent-soft: #e6eaf3;
  --accent-fg: #f8f9fc;
  --shadow: 27 32 41;
}

[data-palette="nocturne"] {
  --bg: #101312;
  --bg-alt: #161a18;
  --surface: #181c1a;
  --deep: #0a0d0c;
  --ink: #e9efe9;
  --muted: #94a397;
  --line: #242a26;
  --accent: #9fc0a4;
  --accent-deep: #86a98c;
  --accent-soft: #1d231f;
  --accent-fg: #0f1310;
  --shadow: 0 0 0;
}

/* --- 2. Jetons non colorés ---------------------------------------------- */

:root {
  --display: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --shell: 1140px;
  --gutter: clamp(1.15rem, 5vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --r: 22px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* --- 3. Base ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.7; font-weight: 300;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

/* L'attribut `hidden` du HTML doit toujours gagner. */
[hidden] { display: none !important; }

/* Vignette intégrée dans le site WebnexLab (`?apercu=1`). */
.is-apercu, .is-apercu body { overflow: hidden; }
.is-apercu .palette-picker,
.is-apercu .demo-flag { display: none; }
.is-apercu .reveal { opacity: 1; transform: none; transition: none; }

p { margin: 0; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.15rem; }
em { font-style: italic; color: var(--accent-deep); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

.skip-link {
  position: fixed; top: .6rem; left: 50%; transform: translate(-50%, -200%);
  z-index: 300; padding: .6rem 1.1rem; border-radius: 999px;
  background: var(--deep); color: #fff; font-size: .85rem;
}
.skip-link:focus { transform: translate(-50%, 0); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 6px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

.over { font-size: .7rem; text-transform: uppercase; letter-spacing: .22em; font-weight: 500; color: var(--accent-deep); margin-bottom: 1rem; }

/* --- 4. Apparition ------------------------------------------------------ */

.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* --- 5. Boutons --------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  font-size: .9rem; font-weight: 500;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--accent-deep); color: var(--accent-fg); }
.btn--solid:hover { filter: brightness(1.08); }
.btn--line { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--line:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.btn--full { width: 100%; }

/* --- 6. Sélecteur de palette (sous l'en-tête, à gauche) ----------------- */

.palette-picker { position: fixed; top: 5.8rem; left: 1rem; z-index: 120; }
.palette-picker__toggle {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem .5rem .8rem;
  border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgb(var(--shadow) / .1); font-size: .8rem; font-weight: 500;
  transition: border-color .25s var(--ease);
}
.palette-picker__toggle:hover { border-color: var(--accent-deep); }
.palette-picker__panel {
  margin-top: .5rem; width: 15.5rem; padding: 1rem; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgb(var(--shadow) / .14); animation: pop .28s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) } }
.palette-picker__title { font-size: .64rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); font-weight: 500; margin-bottom: .7rem; }
.palette-picker__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.palette-picker__grid button {
  display: flex; align-items: center; gap: .5rem; padding: .5rem; border-radius: 12px;
  border: 1px solid var(--line); font-size: .76rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.palette-picker__grid button:hover { border-color: var(--accent-deep); }
.palette-picker__grid button[aria-checked="true"] { border-color: var(--accent-deep); background: var(--accent-soft); color: var(--accent-deep); font-weight: 500; }
.palette-picker__grid button span {
  width: 1.1rem; height: 1.1rem; flex: none; border-radius: 999px;
  background: linear-gradient(135deg, var(--sw1) 0 33%, var(--sw2) 33% 66%, var(--sw3) 66%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12);
}
.palette-picker__note { margin-top: .8rem; font-size: .71rem; line-height: 1.5; color: var(--muted); }

/* --- 7. Bandeau démonstration ------------------------------------------ */

.demo-flag { position: fixed; right: 1rem; bottom: 1rem; z-index: 120; max-width: min(23rem, calc(100vw - 2rem)); }
.demo-flag__row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }

.demo-flag__admin {
  display: inline-flex; align-items: center;
  padding: .55rem 1rem;
  background: var(--surface, #fff); color: var(--ink, #111);
  border: 1px solid var(--line, #ddd);
  font-size: .76rem; font-weight: 600;
  box-shadow: 0 10px 26px rgb(var(--shadow, 0 0 0) / .16);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.demo-flag__admin:hover { transform: translateY(-2px); border-color: currentColor; }

.demo-flag__btn {
  display: flex; align-items: center; gap: .5rem; margin-left: auto;
  padding: .55rem 1rem .55rem .8rem; border-radius: 999px;
  background: var(--deep); color: #fff; font-size: .78rem; font-weight: 500;
  box-shadow: 0 10px 26px rgb(var(--shadow) / .2); transition: transform .25s var(--ease);
}
.demo-flag__btn:hover { transform: translateY(-2px); }
.demo-flag__note {
  margin-top: .6rem; padding: 1.05rem 1.15rem; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .79rem; line-height: 1.6; color: var(--muted);
  box-shadow: 0 16px 40px rgb(var(--shadow) / .14); animation: pop .28s var(--ease);
}
.demo-flag__note p + p { margin-top: .6rem; }
.demo-flag__note strong { color: var(--ink); font-weight: 500; }
.demo-flag__note em { font-style: italic; }

/* --- 8. En-tête --------------------------------------------------------- */

.head { position: sticky; top: 0; z-index: 90; background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line); }
.head__in { display: flex; align-items: center; gap: 1.4rem; min-height: 4.9rem; }

.brand { display: flex; align-items: center; gap: .75rem; margin-right: auto; }
.brand__mark { width: 2.3rem; height: 2.3rem; color: var(--accent-deep); flex: none; }
.brand strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.2rem; line-height: 1.2; }
.brand small { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.7rem; font-size: .88rem; }
.nav a { color: var(--muted); transition: color .25s var(--ease); }
.nav a:hover { color: var(--accent-deep); }
.nav__account {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink) !important;
}
.nav__account:hover { border-color: var(--accent-deep); color: var(--accent-deep) !important; }

.burger { display: none; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 999px; border: 1px solid var(--line); }

/* --- 9. Héros ----------------------------------------------------------- */

.hero { position: relative; padding-block: clamp(3.5rem, 8vw, 6.5rem); overflow: hidden; }
.hero__wash {
  position: absolute; top: -25%; left: 50%; transform: translateX(-50%);
  width: 48rem; max-width: 130%; aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent) 0%, transparent 60%);
  pointer-events: none;
}
.hero__in { position: relative; text-align: center; }
.hero h1 { margin-bottom: 1.6rem; }
.hero__lede { max-width: 42ch; margin-inline: auto; color: var(--muted); font-size: 1.06rem; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.4rem; }
.hero__free { margin-top: 1.6rem; font-size: .85rem; color: var(--accent-deep); }

/* --- 10. Titre de bloc -------------------------------------------------- */

.head-block { max-width: 52ch; margin-bottom: 2.6rem; }
.head-block h2 { margin-bottom: .9rem; }
.head-block > p:not(.over) { color: var(--muted); font-size: .97rem; }
.head-block--light .over { color: color-mix(in srgb, var(--accent) 75%, #fff); }
.head-block--light h2 { color: #fff; }

/* --- 11. Planning ------------------------------------------------------- */

.days { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.days button {
  padding: .6rem 1.3rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .88rem; font-weight: 500; color: var(--muted);
  transition: all .25s var(--ease);
}
.days button:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.days button.is-on { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--accent-fg); }

.levels { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 2rem; font-size: .82rem; }
.levels button { color: var(--muted); padding-bottom: .2rem; border-bottom: 1px solid transparent; transition: all .25s var(--ease); }
.levels button:hover { color: var(--ink); }
.levels button.is-on { color: var(--accent-deep); border-bottom-color: var(--accent-deep); font-weight: 500; }

.schedule { border-top: 1px solid var(--line); }
.class {
  display: grid; grid-template-columns: 5rem 1fr auto auto; gap: .4rem 1.4rem; align-items: center;
  padding-block: 1.3rem; border-bottom: 1px solid var(--line);
  transition: background-color .25s var(--ease), padding-left .25s var(--ease);
}
.class:hover { background: var(--accent-soft); padding-left: .7rem; }
.class[hidden] { display: none; }
.class__time { font-family: var(--display); font-size: 1.2rem; color: var(--accent-deep); }
.class__main p { font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.class__level { padding: .25rem .8rem; border-radius: 999px; border: 1px solid var(--line); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.class__slots { font-size: .84rem; font-weight: 500; color: var(--accent-deep); white-space: nowrap; }
.class__slots--full { color: var(--muted); text-decoration: line-through; }

.schedule__empty { margin-top: 2rem; padding: 2rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); }

/* --- 12. Formules ------------------------------------------------------- */

.plans { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); align-items: start; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: .5rem;
  padding: 2rem 1.7rem; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgb(var(--shadow) / .1); }
.plan--star { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.plan__flag {
  position: absolute; top: -.75rem; left: 1.7rem; padding: .25rem .85rem; border-radius: 999px;
  background: var(--accent-deep); color: var(--accent-fg); font-size: .7rem; font-weight: 500;
}
.plan__name { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 500; }
.plan__price { font-family: var(--display); font-size: 3rem; line-height: 1; }
.plan__price span { font-size: 1.3rem; color: var(--muted); }
.plan__sub { font-size: .84rem; color: var(--muted); }
.plan__list { display: grid; gap: .5rem; margin: 1.2rem 0 1.6rem; font-size: .9rem; flex: 1; }
.plan__list li { position: relative; padding-left: 1.4rem; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: .5rem; width: .8rem; height: .42rem;
  border-left: 2px solid var(--accent-deep); border-bottom: 2px solid var(--accent-deep); transform: rotate(-45deg);
}

/* --- 13. Professeurs (bande foncée) ------------------------------------ */

.band { background: var(--deep); color: #fff; }
[data-palette="nocturne"] .band { border-block: 1px solid var(--line); }

.teachers { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.teacher { padding: 1.8rem 1.6rem; border: 1px solid rgb(255 255 255 / .14); border-radius: var(--r); }
.teacher__mark {
  display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.1rem;
  border-radius: 999px; background: color-mix(in srgb, var(--accent) 35%, transparent);
  font-family: var(--display); font-size: 1.3rem; color: #fff;
}
.teacher h3 { color: #fff; }
.teacher__role { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: color-mix(in srgb, var(--accent) 80%, #fff); margin: .3rem 0 .8rem; }
.teacher p:last-child { font-size: .89rem; color: rgb(255 255 255 / .66); }

/* --- 14. Le lieu -------------------------------------------------------- */

.lieu__in { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; }
.lieu__lede { color: var(--muted); margin-top: 1rem; max-width: 44ch; }
.lieu__facts { margin: 2rem 0 0; border-top: 1px solid var(--line); }
.lieu__facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.lieu__facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-deep); font-weight: 500; }
.lieu__facts dd { margin: 0; font-size: .92rem; color: var(--muted); }

/* Vue schématique de la salle : parquet, fenêtres, tapis alignés. */
.lieu__art { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--bg-alt); }
.lieu__room {
  display: block; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(90deg, rgb(120 90 60 / .1) 0 3px, transparent 3px 26px),
    linear-gradient(172deg, #e9dcc6 0%, #d8c5a8 46%, #c2ac8c 100%),
    radial-gradient(circle at 50% 12%, rgb(255 255 255 / .8) 0 22%, transparent 55%);
  position: relative;
}
.lieu__room::before {
  content: ""; position: absolute; inset: 6% 12% auto; height: 26%;
  background: linear-gradient(#fdfbf5, #e5eef2);
  border: 4px solid #6f6355; border-radius: 4px;
  box-shadow: 0 8px 30px rgb(0 0 0 / .12);
}
.lieu__room::after {
  content: ""; position: absolute; inset: auto 14% 10%; height: 42%;
  background:
    repeating-linear-gradient(90deg, #8fa694 0 14%, transparent 14% 20%);
  border-radius: 6px; opacity: .85;
}

/* --- 15. Mon compte ----------------------------------------------------- */

.compte { border-top: 1px solid var(--line); }
.compte__in {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  padding: clamp(2rem, 5vw, 3.2rem); border-radius: var(--r);
  background: var(--accent-soft);
}
.compte__in h2 { margin-bottom: .8rem; }
.compte__in > div > p:not(.over) { color: var(--muted); max-width: 46ch; }
.compte__actions { display: flex; flex-direction: column; gap: .7rem; }

/* --- 16. Pied de page --------------------------------------------------- */

.foot { background: var(--deep); color: #fff; padding-block: 2.8rem 2.2rem; }
.foot__in { display: grid; gap: 1.3rem; }
.foot__name { font-family: var(--display); font-size: 1.35rem; color: color-mix(in srgb, var(--accent) 85%, #fff); }
.foot__in > div p:last-child { font-size: .87rem; color: rgb(255 255 255 / .62); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .87rem; color: rgb(255 255 255 / .7); }
.foot__nav a:hover { color: #fff; }
.foot__legal { font-size: .77rem; color: rgb(255 255 255 / .45); }
.foot__legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-top: .85rem; }
.foot__legal-links a { font-size: .85rem; opacity: .85; padding-block: .35rem; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: currentColor; }
.foot__legal-links a:hover, .foot__legal-links a:focus-visible { opacity: 1; }

/* --- 17. Fenêtre d'inscription ------------------------------------------ */

.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; }
.modal__scrim { position: absolute; inset: 0; width: 100%; height: 100%; background: rgb(var(--shadow) / .5); animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0 } }

.modal__box {
  position: relative; z-index: 1; width: min(28rem, 100%);
  max-height: calc(100vh - 2rem); overflow-y: auto;
  padding: clamp(1.6rem, 4vw, 2.2rem); border-radius: var(--r);
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgb(var(--shadow) / .3); animation: rise .35s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) } }
.modal__box h2 { font-size: 1.5rem; margin-bottom: 1.4rem; }
.modal__x {
  position: absolute; top: 1rem; right: 1rem; width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.modal__x:hover { border-color: var(--accent-deep); color: var(--accent-deep); }

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 500; color: var(--muted); }
.field input {
  width: 100%; padding: .75rem .9rem; font: inherit; font-size: .95rem; border-radius: 12px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
}
.field input:focus { outline: none; border-color: var(--accent-deep); }

.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.check input { margin-top: .3rem; accent-color: var(--accent-deep); }

.form-status { font-size: .83rem; line-height: 1.55; color: var(--accent-deep); font-weight: 500; }
.form-status:empty { display: none; }

/* --- 18. Adaptations ---------------------------------------------------- */

@media (max-width: 900px) {
  .lieu__in, .compte__in { grid-template-columns: 1fr; }
  .lieu__art { order: -1; max-width: 22rem; aspect-ratio: 4 / 3; }
}

@media (max-width: 780px) {
  .burger { display: grid; }
  .nav {
    position: fixed; inset: 4.9rem 0 auto; z-index: 88; flex-direction: column;
    align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.4rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav a { padding-block: .9rem; border-bottom: 1px solid var(--line); }
  .nav__account { margin-top: .8rem; justify-content: center; border-bottom: 1px solid var(--line); }

  .palette-picker { top: 5.6rem; }
  .demo-flag { max-width: calc(100vw - 9.5rem); }
  .demo-flag__note { max-height: 55vh; overflow-y: auto; }

  .class { grid-template-columns: 4.4rem 1fr; }
  .class__level, .class__slots { grid-column: 2; justify-self: start; }
  .lieu__facts div { grid-template-columns: 1fr; gap: .2rem; }
}

@media (max-width: 420px) {
  .palette-picker__toggle span, .demo-flag__btn span { display: none; }
  .palette-picker__panel { width: min(17rem, calc(100vw - 2rem)); }
}
