@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@500;700;800&display=swap');

:root {
  --bg: #fafafa; --bg-2: #f0f0f2; --clay: #ffffff; --clay-deep: #f1f1f4;
  --ink: #2d2450; --ink-2: #5d5482; --muted: #8f88ad;
  --pop: #ff7a90; /* coral — primary action */ --pop-2: #ffd166; /* butter — lock/secondary */ --pop-3: #7ed9b8; /* mint — success */ --pop-4: #9d8cff; /* lilac — secondary action */
  --hi: rgba(255,255,255,.9); --lo: rgba(40, 36, 60, .14); --lo-2: rgba(40, 36, 60, .08);
  --clay-shadow: 0 10px 24px -8px var(--lo), 0 2px 0 var(--hi) inset, 0 -4px 10px -6px var(--lo) inset;
  --clay-shadow-hover: 0 16px 32px -10px var(--lo), 0 2px 0 var(--hi) inset, 0 -4px 10px -6px var(--lo) inset;
  --clay-pressed: 0 3px 8px -4px var(--lo), 0 4px 10px -4px var(--lo) inset;
  --r: 22px; --r-sm: 14px; --r-pill: 999px;
  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif; --font-body: 'Nunito', system-ui, sans-serif;
  --ease: cubic-bezier(.34, 1.4, .5, 1); --ease-out: cubic-bezier(.22, 1, .36, 1);
}
[data-theme="dark"] {
  /* Neutral grays only — same rule as the light ground: the palette must be the only color on the page. */
  --bg: #17161a; --bg-2: #0f0e11; --clay: #232227; --clay-deep: #1b1a1e;
  --ink: #f1eff5; --ink-2: #c6c2cf; --muted: #928da0;
  --pop: #ff8aa0; --pop-2: #ffd97a; --pop-3: #8fe3c4; --pop-4: #a99cff;
  --hi: rgba(255,255,255,.08); --lo: rgba(0,0,0,.5); --lo-2: rgba(0,0,0,.28);
}
body {
  background: radial-gradient(1200px 600px at 10% -10%, var(--bg-2), transparent 60%), radial-gradient(900px 500px at 110% 110%, var(--bg-2), transparent 60%), var(--bg);
  color: var(--ink); font-family: var(--font-body); font-weight: 700;
}

/* ---------- Base ---------- */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --toolbar-h: 64px;
  --fg: var(--ink);
  --accent: var(--pop);
  --mono: "SF Mono", "Cascadia Code", Consolas, Menlo, monospace;
  --recess: 0 4px 10px -4px var(--lo) inset, 0 -1px 0 var(--hi) inset;
  /* translucent tints derived from the swatch text color (light/dark set by JS) */
  --on-swatch: color-mix(in srgb, currentColor 16%, transparent);
  --on-swatch-strong: color-mix(in srgb, currentColor 28%, transparent);
}

html, body {
  height: 100%;
  overflow: hidden;
}
body { display: flex; flex-direction: column; }
html { background: var(--bg); }

button, input, select { font-family: inherit; font-weight: 700; color: inherit; }
h1, h2, h3, .logo, .modal-header h2 { font-family: var(--font-display); }

kbd {
  background: var(--clay-deep);
  border: 0;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-family: inherit;
  box-shadow: var(--recess);
}

/* ---------- Toolbar ---------- */

.toolbar {
  flex: none;
  height: var(--toolbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  gap: 10px;
  position: relative;
  z-index: 20;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.hint { color: var(--muted); font-size: 13px; white-space: nowrap; }

.divider { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .5; }

.btn {
  border: 0;
  background: var(--clay);
  color: var(--ink);
  border-radius: var(--r-pill);
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--clay-shadow);
  transition: transform .18s var(--ease), box-shadow .18s, background .18s;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--clay-shadow-hover); }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.98); box-shadow: var(--clay-pressed); }
.btn:disabled { opacity: 0.35; cursor: default; }

.btn-primary { background: var(--pop); color: var(--clay); }
.btn-primary:hover:not(:disabled) { background: var(--pop); }

.btn-block { width: 100%; }

.icon-btn {
  padding: 8px 12px;
  font-size: 15px;
  line-height: 1;
}

.count-label {
  font-size: 13px;
  font-weight: 800;
  min-width: 18px;
  text-align: center;
  color: var(--muted);
}

.mode-select {
  border: 0;
  border-radius: var(--r-pill);
  padding: 9px 12px;
  font-size: 13px;
  background: var(--clay);
  color: var(--ink);
  cursor: pointer;
  max-width: 170px;
  box-shadow: var(--clay-shadow);
  transition: transform .18s var(--ease), box-shadow .18s;
}
.mode-select:hover { transform: translateY(-2px); box-shadow: var(--clay-shadow-hover); }
.mode-select:active { transform: translateY(1px) scale(.98); box-shadow: var(--clay-pressed); }

/* ---------- Palette columns ---------- */

/* One raised clay slab; the columns inside sit flush against each other */
.palette {
  --slab-gap: 14px;
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0 var(--slab-gap) var(--slab-gap);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--clay-shadow);
  background: var(--clay-deep);
}

.color-col {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 12vh;
  transition: flex-basis 0.2s;
  min-width: 0;
  user-select: none;
}

.color-col.drag-over { outline: 3px dashed var(--on-swatch-strong); outline-offset: -8px; }
.color-col.dragging { opacity: 0.55; }

.col-hex {
  font-size: clamp(14px, 1.7vw, 24px);
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: 0.5px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
  background: var(--on-swatch);
  box-shadow: var(--recess);
  transition: background .18s;
}
.col-hex:hover { background: var(--on-swatch-strong); }

.col-name {
  font-size: clamp(10px, 0.85vw, 13px);
  opacity: 0.65;
  margin-top: 6px;
  text-align: center;
  padding: 0 8px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col-tools {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 22px;
  opacity: 0;
  transition: opacity 0.15s;
}
.color-col:hover .col-tools, .color-col.touch-active .col-tools { opacity: 1; }

.col-tool {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 17px;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: transform .18s var(--ease), background .18s;
}
.col-tool:hover { background: var(--on-swatch); transform: translateY(-2px); }
.col-tool:active { transform: translateY(1px) scale(.98); }
.col-tool svg { width: 19px; height: 19px; fill: currentColor; }

.col-tool.locked { opacity: 1 !important; background: var(--pop-2); color: var(--ink); box-shadow: var(--clay-shadow); }
.color-col .col-tool.lock-btn.locked { opacity: 1; }
.color-col:not(:hover):not(.touch-active) .col-tools.has-lock { opacity: 1; }
.color-col:not(:hover):not(.touch-active) .col-tools.has-lock .col-tool:not(.locked) { visibility: hidden; }

/* insert-between button */
.insert-btn {
  position: absolute;
  top: 50%;
  right: -21px;
  transform: translateY(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--clay);
  color: var(--ink);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--clay-shadow);
  opacity: 0;
  transition: opacity 0.15s, transform .18s var(--ease), box-shadow .18s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.color-col:hover .insert-btn { opacity: 1; }
.insert-btn:hover { transform: translateY(-50%) scale(1.15); box-shadow: var(--clay-shadow-hover); }
.insert-btn:active { transform: translateY(-50%) scale(.98); box-shadow: var(--clay-pressed); }
.color-col:last-child .insert-btn { display: none; }

/* ---------- Shades overlay ---------- */

.shades-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 5;
  overflow: hidden;
}
.shade-cell {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  transition: flex-grow .15s;
}
.shade-cell:hover { flex-grow: 1.6; }
.shade-cell span { opacity: 0; transition: opacity .12s; }
.shade-cell:hover span { opacity: 1; }
.shade-cell.current::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px var(--on-swatch-strong);
}

/* whole-palette adjust: before (top) / after (bottom) split */
.adjust-preview {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  pointer-events: none;
  box-shadow: 0 -1px 0 var(--on-swatch-strong);
}
.adjust-preview span { opacity: .7; }

.col-sim {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: clamp(10px, 0.9vw, 13px);
  opacity: .75;
}

/* ---------- Modals ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--bg-2) 65%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.hidden { display: none !important; }

.modal {
  background: var(--clay);
  border-radius: var(--r);
  width: 640px;
  max-width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--clay-shadow-hover);
}
.modal-small { width: 420px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 8px;
}
.modal-header h2 { font-size: 20px; font-weight: 600; }

.modal-body {
  padding: 14px 22px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.export-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  border: 0;
  background: var(--clay);
  color: var(--ink);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--clay-shadow);
  transition: transform .18s var(--ease), box-shadow .18s, background .18s;
}
.tab:hover { transform: translateY(-2px); box-shadow: var(--clay-shadow-hover); }
.tab:active { transform: translateY(1px) scale(.98); box-shadow: var(--clay-pressed); }
.tab.active { background: var(--pop-4); color: var(--clay); box-shadow: var(--clay-pressed); }

.export-output {
  background: var(--clay-deep);
  border: 0;
  border-radius: var(--r-sm);
  box-shadow: var(--recess);
  padding: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  overflow: auto;
  max-height: 320px;
  white-space: pre-wrap;
  word-break: break-all;
}

.text-input {
  width: 100%;
  border: 0;
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--clay-deep);
  color: var(--ink);
  box-shadow: var(--recess);
}
.text-input::placeholder { color: var(--muted); }
.text-input:focus { outline: 2px solid var(--pop); outline-offset: 0; }

.save-preview {
  display: flex;
  height: 56px;
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--clay-shadow);
}
.save-preview div { flex: 1; }

/* ---------- Library ---------- */

.key-help { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-bottom: 12px; }
.key-row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.key-row .text-input { flex: 1; min-width: 0; }
.key-box {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: 12.5px;
  background: var(--clay-deep); color: var(--ink);
  border-radius: var(--r-sm); padding: 10px 12px;
  box-shadow: var(--recess);
  overflow-wrap: anywhere; user-select: all;
}
.key-subhead { font-size: 14px; font-weight: 600; margin: 16px 0 8px; }
.key-merge { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.key-merge input { accent-color: var(--pop); }

.library-list { display: flex; flex-direction: column; gap: 14px; }
.library-empty { color: var(--muted); text-align: center; padding: 30px 0; }
.library-note {
  background: var(--pop-2);
  border: 0;
  color: var(--ink);
  border-radius: var(--r-sm);
  padding: 9px 14px;
  font-size: 13px;
  box-shadow: var(--clay-shadow);
}

.library-item {
  border: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--clay);
  box-shadow: var(--clay-shadow);
  transition: transform .18s var(--ease), box-shadow .18s;
}
.library-item:hover { transform: translateY(-2px); box-shadow: var(--clay-shadow-hover); }
.library-strip {
  display: flex;
  height: 52px;
  cursor: pointer;
}
.library-strip div { flex: 1; }
.library-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  gap: 8px;
}
.library-name { font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-date { font-size: 12px; color: var(--muted); white-space: nowrap; }
.library-actions { display: flex; gap: 6px; }
.library-actions .btn { padding: 6px 11px; font-size: 12px; }

/* ---------- Adjust popover ---------- */

.adjust-panel {
  position: fixed;
  z-index: 60;
  background: var(--clay);
  border: 0;
  border-radius: var(--r);
  box-shadow: var(--clay-shadow-hover);
  padding: 16px;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.adjust-row {
  display: grid;
  grid-template-columns: 74px 1fr 34px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.adjust-row input[type="range"] { width: 100%; accent-color: var(--pop); }
.adjust-val { font-size: 12px; color: var(--muted); text-align: right; }
.hex-input { font-family: var(--mono); text-transform: uppercase; }

/* ---------- Adjust whole palette ---------- */

.adjust-all-panel {
  position: fixed;
  z-index: 60;
  right: 24px;
  top: calc(var(--toolbar-h) + 10px);
  width: 320px;
  max-width: calc(100vw - 28px);
  background: var(--clay);
  border-radius: var(--r);
  box-shadow: var(--clay-shadow-hover);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.adjust-all-title { font-family: var(--font-display); font-size: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.adjust-all-hint { font-family: var(--font-body); font-size: 11px; color: var(--muted); }
.adjust-all-panel .adjust-row { grid-template-columns: 86px 1fr 38px; }

/* ---------- CVD bar ---------- */

.cvd-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 14px 10px;
  padding: 8px 8px 8px 16px;
  background: var(--pop-2);
  color: var(--ink);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--clay-shadow);
  text-transform: capitalize;
}
.cvd-bar span { flex: 1; }
.cvd-bar .btn { padding: 6px 12px; font-size: 12px; text-transform: none; }

/* ---------- ⋯ menu ---------- */

.menu {
  position: fixed;
  z-index: 70;
  right: 14px;
  top: calc(var(--toolbar-h) - 6px);
  width: 250px;
  background: var(--clay);
  border-radius: var(--r);
  box-shadow: var(--clay-shadow-hover);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 4px 8px; }
.menu-opts { display: flex; gap: 4px; padding: 0 4px 8px; }
.menu-opt {
  flex: 1;
  border: 0;
  background: var(--clay-deep);
  color: var(--ink);
  border-radius: var(--r-pill);
  padding: 6px 0;
  font-size: 12px;
  cursor: pointer;
  box-shadow: var(--recess);
}
.menu-opt.active { background: var(--pop-4); color: var(--clay); }
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 13.5px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: left;
  transition: background .18s;
}
.menu-item:hover { background: var(--clay-deep); }

/* ---------- Zen mode ---------- */

body.zen .toolbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--bg);
  transform: translateY(-100%);
  transition: transform .25s var(--ease-out);
}
body.zen.zen-peek .toolbar { transform: none; box-shadow: var(--clay-shadow); }
body.zen .palette { margin-top: var(--slab-gap); }
body.zen .cvd-bar { margin-top: var(--slab-gap); }

/* ---------- Quick view ---------- */

.quick-nav { display: flex; align-items: center; gap: 6px; }
.quick-swatch {
  height: 88px;
  border-radius: var(--r-sm);
  box-shadow: var(--clay-shadow);
  display: flex;
  align-items: flex-end;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 15px;
}
.quick-list { display: flex; flex-direction: column; gap: 6px; }
.quick-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 0;
  background: var(--clay-deep);
  color: var(--ink);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: var(--recess);
  transition: background .18s;
  text-align: left;
}
.quick-row:hover { background: var(--pop-4); color: var(--clay); }
.quick-label { font-size: 11px; font-weight: 800; letter-spacing: .6px; width: 44px; flex: none; }
.quick-value { font-family: var(--mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Palette history ---------- */

.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-strip {
  display: flex;
  height: 40px;
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--clay-shadow);
  transition: transform .18s var(--ease), box-shadow .18s;
}
.history-strip:hover { transform: translateY(-2px); box-shadow: var(--clay-shadow-hover); }
.history-strip div { flex: 1; }
.history-time { flex: none; width: 64px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); background: var(--clay-deep); }

/* ---------- Shortcuts ---------- */

.shortcut-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; font-size: 13.5px; }
.shortcut-list dt { white-space: nowrap; }
.shortcut-list dd { color: var(--ink-2); font-weight: 500; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pop-3);
  color: var(--ink);
  padding: 11px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 800;
  z-index: 200;
  box-shadow: var(--clay-shadow-hover);
  animation: toast-in 0.25s var(--ease);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---------- Roles ---------- */

.col-role {
  border: 0;
  background: var(--on-swatch);
  color: inherit;
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 10px;
  box-shadow: var(--recess);
  transition: background .18s;
}
.col-role:hover { background: var(--on-swatch-strong); }

.role-panel {
  position: fixed;
  z-index: 60;
  background: var(--clay);
  border: 0;
  border-radius: var(--r);
  box-shadow: var(--clay-shadow-hover);
  padding: 10px;
  width: 230px;
}
.role-panel-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  padding: 4px 8px 8px;
}
.role-list { display: flex; flex-direction: column; gap: 2px; }
.role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  background: none;
  color: var(--ink);
  font-size: 13.5px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: left;
  transition: background .18s;
}
.role-row:hover { background: var(--clay-deep); }
.role-row.active { background: var(--clay-deep); font-weight: 800; box-shadow: var(--recess); }
.role-check { color: var(--pop); font-weight: 800; }
.role-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 0;
  box-shadow: 0 0 0 1px var(--lo);
  flex: none;
}

/* ---------- Preview modal ---------- */

.modal-wide { width: 1060px; max-height: 92vh; }
.modal-wide .modal-header { gap: 12px; flex-wrap: wrap; }
.preview-tabs { display: flex; gap: 6px; flex: 1; justify-content: center; flex-wrap: wrap; }
@media (max-width: 760px) {
  .modal-wide .modal-header { flex-wrap: nowrap; }
  .preview-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; min-width: 0; padding-bottom: 2px; }
  .preview-tabs::-webkit-scrollbar { display: none; }
  .preview-tabs .tab { flex: none; white-space: nowrap; }
}
.preview-body { gap: 10px; }

.preview-legend { display: flex; gap: 6px; flex-wrap: wrap; }
.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: var(--clay-deep);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-size: 12px;
  box-shadow: var(--recess);
}
.legend-chip em { color: var(--muted); font-style: normal; font-size: 10px; }
.legend-swatch { width: 13px; height: 13px; border-radius: 4px; box-shadow: 0 0 0 1px var(--lo); }

.preview-canvas {
  border: 0;
  border-radius: var(--r-sm);
  box-shadow: var(--recess);
  overflow: auto;
  max-height: 62vh;
}

/* templates — everything below renders from the --p-* role variables */
.pv { background: var(--p-bg); color: var(--p-text); font-family: inherit; min-width: 640px; }
.pv h1, .pv h2, .pv h3 { color: var(--p-heading); }
.pv .pv-glyph { color: var(--p-icon); }
.pv-logo { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 17px; color: var(--p-heading); }
.pv-btn {
  background: var(--p-primary);
  color: var(--p-on-primary);
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: default;
}
.pv-btn-ghost {
  background: transparent;
  color: var(--p-accent);
  border: 1.5px solid var(--p-accent);
}

/* landing */
.pv-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
  background: var(--p-surface);
  border-bottom: 1px solid var(--p-border);
}
.pv-links { display: flex; gap: 20px; font-size: 14px; }
.pv-links a { opacity: 0.85; }
.pv-hero { text-align: center; padding: 64px 40px 48px; }
.pv-tagline {
  display: inline-block;
  color: var(--p-accent);
  border: 1px solid var(--p-accent);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.pv-hero h1 { font-size: 40px; letter-spacing: -1px; margin-bottom: 14px; }
.pv-hero p { max-width: 480px; margin: 0 auto 26px; opacity: 0.85; font-size: 16px; line-height: 1.6; }
.pv-cta-row { display: flex; gap: 10px; justify-content: center; }
.pv-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 12px 32px 48px; }
.pv-card {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: 12px;
  padding: 22px;
}
.pv-icon { color: var(--p-icon); font-size: 26px; margin-bottom: 10px; }
.pv-card h3 { font-size: 16px; margin-bottom: 6px; }
.pv-card p { font-size: 13.5px; line-height: 1.55; opacity: 0.85; }
.pv-footer {
  padding: 18px 32px;
  border-top: 1px solid var(--p-border);
  font-size: 13px;
  opacity: 0.7;
}

/* dashboard */
.pv-dash { display: flex; min-height: 480px; }
.pv-side {
  width: 200px;
  flex: none;
  background: var(--p-surface);
  border-right: 1px solid var(--p-border);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pv-side .pv-logo { padding: 0 10px 16px; }
.pv-navitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  opacity: 0.85;
}
.pv-navitem.active {
  background: var(--p-primary);
  color: var(--p-on-primary);
  opacity: 1;
  font-weight: 600;
}
.pv-navitem.active .pv-glyph { color: var(--p-on-primary); }
.pv-main { flex: 1; padding: 24px 28px; min-width: 0; }
.pv-mainhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.pv-mainhead h2 { font-size: 22px; }
.pv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.pv-stat {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pv-stat-label { font-size: 12px; opacity: 0.7; }
.pv-stat-val { font-size: 26px; font-weight: 800; }
.pv-c-primary { color: var(--p-primary); }
.pv-c-accent { color: var(--p-accent); }
.pv-c-icon { color: var(--p-icon); }
.pv-stat-sub { font-size: 12px; opacity: 0.65; }
.pv-panel {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.pv-panel h3 { font-size: 14px; margin-bottom: 12px; }
.pv-chart { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.pv-chart div { flex: 1; border-radius: 6px 6px 0 0; background: var(--p-primary); }
.pv-chart div:nth-child(3n+2) { background: var(--p-accent); }
.pv-chart div:nth-child(3n) { background: var(--p-icon); }
.pv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pv-table td { padding: 10px 8px; border-top: 1px solid var(--p-border); }
.pv-table td:nth-child(2) { opacity: 0.65; white-space: nowrap; }
.pv-pill {
  background: var(--p-accent);
  color: var(--p-on-accent);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
}

/* blog */
.pv-bloghead { text-align: center; padding: 48px 32px 8px; }
.pv-bloghead .pv-logo { justify-content: center; margin-bottom: 20px; }
.pv-bloghead h1 { font-size: 32px; letter-spacing: -0.5px; margin-bottom: 8px; }
.pv-bloghead p { opacity: 0.8; }
.pv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 28px 32px 44px; }
.pv-post {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 18px;
}
.pv-cover { height: 110px; background: var(--p-primary); margin-bottom: 14px; }
.pv-tag {
  display: inline-block;
  margin: 0 16px 8px;
  background: var(--p-accent);
  color: var(--p-on-accent);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pv-post h3 { font-size: 16.5px; margin: 0 16px 8px; line-height: 1.35; }
.pv-post p { font-size: 13px; line-height: 1.55; margin: 0 16px 12px; opacity: 0.85; }
.pv-byline { font-size: 12px; margin: 0 16px; opacity: 0.6; }

/* mobile app */
.pv-mobile { display: flex; justify-content: center; padding: 28px; }
.pv-phone { width: 320px; background: var(--p-surface); border: 10px solid var(--p-heading); border-radius: 36px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.pv-statusbar { display: flex; justify-content: space-between; padding: 8px 18px 2px; font-size: 11px; opacity: .7; }
.pv-appbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; font-size: 16px; color: var(--p-heading); }
.pv-screen { background: var(--p-bg); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 380px; }
.pv-screen h2 { font-size: 20px; margin-bottom: 4px; }
.pv-screen h3 { font-size: 13px; margin-top: 8px; opacity: .8; }
.pv-mcard { background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.pv-mcard div { flex: 1; display: flex; flex-direction: column; }
.pv-mcard small { opacity: .6; font-size: 11px; }
.pv-mcard-hero { background: var(--p-primary); color: var(--p-on-primary); flex-direction: column; align-items: flex-start; gap: 4px; }
.pv-mcard-hero .pv-stat-label { color: inherit; }
.pv-mcard-hero .pv-btn { background: var(--p-surface); color: var(--p-heading); margin-top: 8px; }
.pv-tabbar { display: flex; justify-content: space-around; padding: 10px 6px 14px; background: var(--p-surface); border-top: 1px solid var(--p-border); font-size: 10px; }
.pv-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 3px; opacity: .6; }
.pv-tabbar span.active { opacity: 1; color: var(--p-primary); }
.pv-tabbar span.active .pv-glyph { color: var(--p-primary); }
.pv-tabbar i { font-style: normal; font-size: 16px; }

/* branding */
.pv-brand { padding: 40px; display: flex; flex-direction: column; gap: 32px; }
.pv-lockup { display: flex; align-items: center; gap: 18px; }
.pv-lockup h1 { font-size: 44px; letter-spacing: -1px; line-height: 1; }
.pv-lockup p { opacity: .75; margin-top: 4px; }
.pv-mark { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; background: var(--p-primary); color: var(--p-on-primary); font-size: 34px; flex: none; }
.pv-bizcards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pv-bizcard { aspect-ratio: 1.75; border-radius: 12px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; box-shadow: 0 16px 30px -18px rgba(0,0,0,.5); }
.pv-bizcard .pv-mark { width: 34px; height: 34px; border-radius: 9px; font-size: 18px; margin-bottom: auto; }
.pv-bizcard small { font-size: 12px; opacity: .7; }
.pv-bizcard-front { background: var(--p-surface); border: 1px solid var(--p-border); color: var(--p-text); }
.pv-bizcard-front strong { color: var(--p-heading); }
.pv-bizcard-back { background: var(--p-primary); color: var(--p-on-primary); align-items: center; justify-content: center; }
.pv-bizcard-back .pv-mark { margin: 0 0 8px; background: var(--p-accent); color: var(--p-on-accent); }
.pv-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.pv-tile { aspect-ratio: .9; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; color: #fff; mix-blend-mode: normal; }
.pv-tile strong { font-size: 13px; }
.pv-var { font-size: 10px; opacity: .8; font-family: var(--mono); }
.pv-tile[style*="--p-surface"], .pv-tile[style*="--p-bg"] { color: var(--p-text); }

/* typography */
.pv-type { padding: 48px 56px; max-width: 760px; }
.pv-type .pv-tag { margin: 0 0 18px; }
.pv-t1 { font-size: 48px; line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 14px; }
.pv-t2 { font-size: 32px; line-height: 1.15; margin-bottom: 12px; }
.pv-t3 { font-size: 22px; margin-bottom: 18px; }
.pv-type p { font-size: 16px; line-height: 1.65; margin-bottom: 18px; }
.pv-type a { color: var(--p-primary); text-decoration: underline; text-underline-offset: 3px; }
.pv-type blockquote { border-left: 4px solid var(--p-accent); padding: 8px 20px; margin: 0 0 18px; font-size: 20px; line-height: 1.45; color: var(--p-heading); background: var(--p-surface); border-radius: 0 10px 10px 0; }
.pv-type cite { display: block; font-size: 13px; font-style: normal; opacity: .65; margin-top: 6px; color: var(--p-text); }
.pv-small { font-size: 13px; opacity: .7; }
.pv-list { padding-left: 22px; line-height: 1.8; font-size: 15px; }
.pv-list li::marker { color: var(--p-icon); }

/* pattern */
.pv-pattern { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 24px; }
.pv-pat { aspect-ratio: 1.2; border-radius: 14px; border: 1px solid var(--p-border); background-color: var(--p-surface); }
.pv-pat-dots { background-image: radial-gradient(var(--p-primary) 22%, transparent 24%), radial-gradient(var(--p-accent) 22%, transparent 24%); background-size: 28px 28px; background-position: 0 0, 14px 14px; }
.pv-pat-stripes { background-image: repeating-linear-gradient(45deg, var(--p-primary) 0 12px, var(--p-surface) 12px 24px, var(--p-accent) 24px 36px, var(--p-surface) 36px 48px); }
.pv-pat-checks { background-image: linear-gradient(45deg, var(--p-heading) 25%, transparent 25%, transparent 75%, var(--p-heading) 75%), linear-gradient(45deg, var(--p-heading) 25%, transparent 25%, transparent 75%, var(--p-heading) 75%); background-size: 32px 32px; background-position: 0 0, 16px 16px; background-color: var(--p-accent); }
.pv-pat-zig { background: linear-gradient(135deg, var(--p-primary) 25%, transparent 25%) -16px 0, linear-gradient(225deg, var(--p-primary) 25%, transparent 25%) -16px 0, linear-gradient(315deg, var(--p-icon) 25%, transparent 25%), linear-gradient(45deg, var(--p-icon) 25%, transparent 25%); background-size: 32px 32px; background-color: var(--p-bg); }
.pv-pat-rings { background-image: repeating-radial-gradient(circle at 50% 50%, var(--p-accent) 0 8px, var(--p-surface) 8px 16px, var(--p-primary) 16px 24px, var(--p-surface) 24px 32px); }
.pv-pat-grid { background-image: linear-gradient(var(--p-border) 2px, transparent 2px), linear-gradient(90deg, var(--p-border) 2px, transparent 2px), radial-gradient(var(--p-icon) 18%, transparent 20%); background-size: 24px 24px, 24px 24px, 48px 48px; background-position: 0 0, 0 0, 12px 12px; background-color: var(--p-bg); }

/* illustration */
.pv-illo svg { display: block; width: 100%; height: auto; }

/* e-commerce */
.pv-cart { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.pv-shophead { display: flex; justify-content: space-between; align-items: center; padding: 28px 32px 8px; flex-wrap: wrap; gap: 12px; }
.pv-shophead h2 { font-size: 24px; }
.pv-filters { display: flex; gap: 8px; }
.pv-chip { border: 1px solid var(--p-border); background: var(--p-surface); border-radius: 999px; padding: 5px 12px; font-size: 12px; }
.pv-chip.active { background: var(--p-primary); color: var(--p-on-primary); border-color: var(--p-primary); }
.pv-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 16px 32px 40px; }
.pv-product { background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.pv-photo { height: 140px; background: var(--p-primary); position: relative; }
.pv-photo .pv-tag { position: absolute; top: 10px; left: 10px; margin: 0; }
.pv-product h3 { font-size: 15px; margin: 12px 14px 2px; }
.pv-product small { margin: 0 14px; font-size: 12px; opacity: .65; }
.pv-price { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 12px 14px 14px; }
.pv-price strong { font-size: 16px; color: var(--p-heading); }
.pv-price s { font-size: 12px; opacity: .55; font-weight: 500; }
.pv-price .pv-btn { padding: 7px 12px; font-size: 12px; }

/* email */
.pv-email { padding: 32px; }
.pv-mail { max-width: 520px; margin: 0 auto; background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 14px; overflow: hidden; }
.pv-mailhead { padding: 18px 24px; border-bottom: 1px solid var(--p-border); }
.pv-mailhero { background: var(--p-primary); color: var(--p-on-primary); padding: 36px 24px; text-align: center; }
.pv-mailhero h1 { color: inherit; font-size: 26px; margin-bottom: 8px; }
.pv-mailhero p { opacity: .9; margin-bottom: 18px; font-size: 14px; }
.pv-mailhero .pv-btn { background: var(--p-accent); color: var(--p-on-accent); }
.pv-mailbody { padding: 12px 24px; }
.pv-mailrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--p-border); font-size: 14px; }
.pv-mailrow div { flex: 1; display: flex; flex-direction: column; }
.pv-mailrow small { font-size: 12px; opacity: .6; }
.pv-thumb { width: 44px; height: 44px; border-radius: 8px; background: var(--p-icon); flex: none; }
.pv-mailtotal { display: flex; justify-content: space-between; padding: 14px 0; font-size: 15px; }
.pv-mailfoot { padding: 16px 24px; font-size: 12px; opacity: .6; text-align: center; }
.pv-mailfoot a { text-decoration: underline; }

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  .desktop-only { display: none; }
  .toolbar { flex-wrap: wrap; height: auto; padding: 8px; }
  .palette { flex-direction: column; --slab-gap: 8px; border-radius: var(--r); }
  .color-col {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 16px;
    align-items: center;
  }
  .adjust-preview { top: 0; bottom: 0; left: auto; right: 0; width: 50%; height: auto; align-items: center; justify-content: flex-end; padding: 0 14px 0 0; box-shadow: -1px 0 0 var(--on-swatch-strong); }
  .col-sim { display: none; }
  .adjust-all-panel { right: 8px; left: 8px; width: auto; }
  .menu { right: 8px; top: 8px; }
  .col-tools { flex-direction: row; margin-bottom: 0; opacity: 1; }
  .col-tools.has-lock .col-tool:not(.locked) { visibility: visible !important; }
  .col-hex { font-size: 16px; }
  .col-name { display: none; }
  .col-role { margin-bottom: 0; padding: 3px 9px; font-size: 10px; }
  .insert-btn {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -20px;
    transform: translateX(-50%);
  }
  .insert-btn:hover { transform: translateX(-50%) scale(1.15); }
  .insert-btn:active { transform: translateX(-50%) scale(.98); }
  .shades-overlay { flex-direction: row; }
}

/* ---------- Contrast checker ---------- */

.btn-contrast { display: inline-flex; align-items: center; gap: 7px; }
.btn-image { display: inline-flex; align-items: center; gap: 6px; }
.contrast-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 0 3px var(--lo-2);
}
.btn-contrast[data-level="good"] .contrast-dot { background: var(--pop-3); }
.btn-contrast[data-level="warn"] .contrast-dot { background: var(--pop-2); }
.btn-contrast[data-level="bad"]  .contrast-dot { background: var(--pop); }

.contrast-summary {
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: var(--clay-shadow);
}
.contrast-summary[data-level="good"] { background: var(--pop-3); }
.contrast-summary[data-level="warn"] { background: var(--pop-2); }
.contrast-summary[data-level="bad"]  { background: var(--pop); }

.contrast-list { display: flex; flex-direction: column; gap: 10px; }
.contrast-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: var(--clay-deep);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  box-shadow: var(--recess);
}
.contrast-sample {
  flex: none;
  width: 44px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  border: 0;
  box-shadow: var(--clay-shadow);
}
.contrast-label {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
}
.contrast-label em { color: var(--muted); font-style: normal; font-size: 11.5px; font-weight: 500; }
.contrast-ratio {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.contrast-badge {
  flex: none;
  min-width: 62px;
  text-align: center;
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: var(--clay-shadow);
}
.contrast-badge.good { background: var(--pop-3); }
.contrast-badge.warn { background: var(--pop-2); }
.contrast-badge.bad  { background: var(--pop); }

.contrast-foot { font-size: 12px; color: var(--muted); line-height: 1.6; font-weight: 500; }
.contrast-foot strong { color: var(--ink); }

/* ---------- Image extraction / CVD simulation ---------- */
.palette.cvd-protanopia { filter: url(#cvd-protanopia); }
.palette.cvd-deuteranopia { filter: url(#cvd-deuteranopia); }
.palette.cvd-tritanopia { filter: url(#cvd-tritanopia); }
.palette.cvd-achromatopsia { filter: url(#cvd-achromatopsia); }
.drop-hint {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--pop-4) 18%, transparent); border: 4px dashed var(--pop-4);
  font-size: 1.5rem; font-weight: 700; font-family: var(--font-display);
  color: var(--pop-4); pointer-events: none;
}

.menu-sep { height: 1px; margin: 6px 10px; background: var(--lo-2); }
a.menu-item { text-decoration: none; color: inherit; display: flex; }

/* Export extras */
.export-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.export-row .mode-select { flex: 1; }
.export-preview { width: 100%; height: auto; border-radius: var(--r-sm); box-shadow: var(--clay-shadow); background: var(--clay-deep); }
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.share-actions .btn { text-decoration: none; display: inline-flex; align-items: center; }

/* ---------- Welcome + tour ---------- */
.welcome { text-align: center; padding: 28px 28px 24px; }
.welcome h2 { font-family: var(--font-display); font-size: 1.7rem; margin: 14px 0 8px; }
.welcome p { color: var(--ink-2); margin: 0 0 8px; line-height: 1.5; }
.welcome .welcome-sub { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.welcome .modal-actions { justify-content: center; }
.welcome-strip { display: flex; height: 64px; border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--recess); }
.welcome-strip i { flex: 1; }
.welcome-strip i:nth-child(1) { background: var(--pop); }
.welcome-strip i:nth-child(2) { background: var(--pop-2); }
.welcome-strip i:nth-child(3) { background: var(--pop-3); }
.welcome-strip i:nth-child(4) { background: var(--pop-4); }
.welcome-strip i:nth-child(5) { background: var(--ink); }

.tour-overlay { position: fixed; inset: 0; z-index: 90; display: none; }
.tour-overlay.on { display: block; }
.tour-ring {
  position: fixed; pointer-events: none; border-radius: var(--r-pill);
  box-shadow: 0 0 0 4px var(--pop), 0 0 0 9999px color-mix(in srgb, var(--bg) 55%, transparent);
  transition: all .28s var(--ease-out);
}
.tour-card {
  position: fixed; background: var(--clay); color: var(--ink); border-radius: var(--r);
  box-shadow: var(--clay-shadow); padding: 18px 20px 16px; transition: top .28s var(--ease-out), left .28s var(--ease-out);
}
.tour-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 2px 0 6px; }
.tour-card p { color: var(--ink-2); margin: 0 0 14px; line-height: 1.5; font-size: .95rem; }
.tour-step { font-size: .75rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.tour-actions { display: flex; gap: 8px; align-items: center; }
.tour-spacer { flex: 1; }

a.logo { color: inherit; text-decoration: none; }
a.logo:hover strong { color: var(--pop); }
