:root {
  --ink: #0a0b0d;
  --ink-2: #101216;
  --ink-3: #171a20;
  --ink-4: #20242b;
  --line: #2a2f38;
  --line-soft: #20242b;
  --text: #f4f0e8;
  --muted: #a4a29c;
  --faint: #74736e;
  --paper: #fff8ed;
  --lime: #9ec8be;
  --red: #e33b35;
  --cyan: #76d7d0;
  --violet: #a58cff;
  --amber: #e1a33f;
  --green: #78d690;
  --danger: #ef5a56;
  --radius: 8px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 248, 237, 0.08);
  background: rgba(10, 11, 13, 0.92);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.topbar-inner {
  width: calc(100% - 32px);
  max-width: var(--max);
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--paper);
  position: relative;
  display: block;
  padding: 0;
  background: #050607;
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 1px;
}

.brand-mark::before {
  left: 8px;
  bottom: 7px;
  width: 4px;
  height: 12px;
  background: var(--paper);
  box-shadow:
    8px -7px 0 var(--lime),
    16px -2px 0 var(--paper),
    24px -12px 0 var(--lime);
}

.brand-mark::after {
  left: 7px;
  right: 7px;
  top: 10px;
  height: 1px;
  background: rgba(255, 248, 237, 0.28);
  box-shadow:
    0 8px 0 rgba(255, 248, 237, 0.18),
    0 16px 0 rgba(255, 248, 237, 0.12);
}

.brand-pulse {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--lime);
  border-radius: 50%;
  background: #050607;
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  display: block;
  font-weight: 800;
  line-height: 1;
  font-size: 18px;
}

.brand-sub {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1;
}

.desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  border-color: rgba(255, 248, 237, 0.1);
  background: rgba(255, 248, 237, 0.04);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
  min-width: 0;
}

.icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button,
.tool-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  color: var(--muted);
  cursor: pointer;
}

.admin-entry {
  text-decoration: none;
}

.icon-button:hover,
.tool-button:hover {
  color: var(--text);
  border-color: rgba(255, 248, 237, 0.18);
}

.page {
  width: calc(100% - 32px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 0 72px;
  overflow-x: hidden;
}

main {
  overflow-x: hidden;
}

.screen-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.03;
  font-weight: 850;
  max-width: 780px;
  width: 100%;
  overflow-wrap: anywhere;
}

.h2 {
  margin: 0 0 14px;
  font-size: 25px;
  line-height: 1.16;
  font-weight: 800;
}

.h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.lede {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 690px;
}

.muted {
  color: var(--muted);
}

.faint {
  color: var(--faint);
}

.tiny {
  font-size: 12px;
  line-height: 1.35;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 15px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.button.primary {
  background: var(--paper);
  color: #050607;
}

.button.accent {
  background: var(--lime);
  color: #050607;
}

.button.dark {
  background: var(--ink-3);
  color: var(--text);
  border-color: var(--line);
}

.button.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.button.danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(239, 90, 86, 0.4);
}

.button.compact {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}

.button:hover {
  transform: translateY(-1px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
  gap: 18px;
  align-items: stretch;
}

.experience-panel,
.surface {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.experience-panel {
  min-height: 520px;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.panel-pad {
  padding: 18px;
}

.quick-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 118px 148px;
  gap: 9px;
  align-items: end;
}

.quick-controls .button {
  align-self: end;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.label {
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.field-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.quick-note {
  margin-top: 9px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.35;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #08090b;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.textarea {
  min-height: 92px;
  padding: 11px 12px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: #5d5e5a;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(158, 200, 190, 0.72);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.chip {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  max-width: 100%;
}

.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 7px;
}

.chip.active {
  color: var(--text);
  border-color: var(--chip-color, var(--lime));
  background: color-mix(in srgb, var(--chip-color, var(--lime)) 13%, transparent);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.meta-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 248, 237, 0.1);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-pill.strong {
  color: var(--paper);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stat {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--ink-3);
}

.stat-value {
  display: block;
  font-size: 22px;
  font-weight: 850;
}

.stat-label {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 12px;
}

.weekend-strip {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.day-row,
.list-row,
.result-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 11px;
  background: var(--ink-3);
  cursor: pointer;
}

.day-row:hover,
.list-row:hover,
.result-row:hover {
  border-color: rgba(255, 248, 237, 0.18);
  background: #1b1f25;
}

.date-tile {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #090a0c;
  color: var(--paper);
  text-align: center;
  line-height: 1.05;
  font-weight: 850;
  flex: 0 0 55px;
}

.date-tile small {
  display: block;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.row-title {
  font-weight: 850;
  min-width: 0;
  overflow-wrap: anywhere;
}

.row-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.entity-card {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--ink-2);
  overflow: hidden;
  cursor: pointer;
}

.entity-card:hover {
  border-color: rgba(255, 248, 237, 0.18);
  transform: translateY(-1px);
}

.visual {
  min-height: 132px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 248, 237, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 248, 237, 0.04) 1px, transparent 1px),
    #111419;
  background-size: 24px 24px;
}

.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 248, 237, 0.13) 18px 19px),
    linear-gradient(0deg, rgba(10, 11, 13, 0.92), transparent 60%);
}

.visual-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.7);
}

.visual:has(.visual-img)::after {
  opacity: 0.64;
}

.visual[data-tone="red"] {
  background-color: #191111;
}

.visual[data-tone="cyan"] {
  background-color: #0e1717;
}

.visual[data-tone="violet"] {
  background-color: #14111c;
}

.visual[data-tone="amber"] {
  background-color: #18140e;
}

.visual[data-tone="green"] {
  background-color: #101911;
}

.visual-symbol {
  position: absolute;
  inset: 18px;
  z-index: 1;
  display: grid;
  align-content: end;
  color: var(--paper);
}

.artist-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 248, 237, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 248, 237, 0.05) 1px, transparent 1px),
    var(--ink-3);
  background-size: 20px 20px;
  display: grid;
  place-items: center;
  color: var(--faint);
  font-weight: 850;
  text-align: center;
}

.artist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
}

.visual-symbol b {
  font-size: 44px;
  line-height: 0.88;
  font-weight: 900;
  max-width: 250px;
  overflow-wrap: anywhere;
}

.card-body {
  padding: 14px;
}

.card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.card-copy {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.filters {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 155px 155px;
  gap: 10px;
}

.swiss-map {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f1115;
}

.swiss-map.compact {
  min-height: 320px;
}

.leaflet-swiss-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #0f1115;
}

.leaflet-container {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #0f1115;
}

.leaflet-control-attribution {
  border: 1px solid rgba(255, 248, 237, 0.1);
  border-radius: 6px 0 0 0;
  background: rgba(6, 7, 8, 0.74) !important;
  color: var(--faint) !important;
  font-size: 10px;
}

.leaflet-control-attribution a {
  color: var(--muted) !important;
}

.freq-leaflet-icon {
  border: 0;
  background: transparent;
}

.freq-map-point {
  width: 16px;
  height: 16px;
  display: block;
  border: 2px solid var(--marker, var(--lime));
  border-radius: 50%;
  background: #060708;
  box-shadow:
    0 0 0 4px rgba(6, 7, 8, 0.7),
    0 12px 24px rgba(0, 0, 0, 0.42);
}

.freq-map-point.club {
  border-radius: 4px;
}

.freq-map-point.collective {
  border-radius: 3px;
}

.freq-map-point.festival {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.freq-map-origin {
  width: 18px;
  height: 18px;
  display: block;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: rgba(158, 200, 190, 0.18);
  box-shadow:
    0 0 0 5px rgba(158, 200, 190, 0.18),
    0 0 0 10px rgba(6, 7, 8, 0.58),
    0 14px 28px rgba(0, 0, 0, 0.45);
}

.freq-map-cluster {
  min-width: 36px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 248, 237, 0.18);
  border-left: 3px solid var(--marker, var(--lime));
  border-radius: 6px;
  padding: 0 9px;
  background: rgba(6, 7, 8, 0.92);
  color: var(--paper);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border: 1px solid var(--line);
  background: #060708;
  color: var(--text);
  box-shadow: var(--shadow);
}

.leaflet-popup-content {
  margin: 10px;
}

.leaflet-tooltip {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(6, 7, 8, 0.92);
  color: var(--text);
  box-shadow: var(--shadow);
}

.leaflet-tooltip-top::before {
  border-top-color: rgba(6, 7, 8, 0.92);
}

.freq-map-popup {
  min-width: 180px;
  display: grid;
  gap: 6px;
}

.freq-map-popup strong {
  font-size: 14px;
}

.freq-map-popup span,
.freq-map-popup small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.freq-map-popup button {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  background: var(--ink-3);
  color: var(--paper);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.map-fallback {
  position: absolute;
  inset: 74px 18px 18px;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px;
  background: #0f1115;
  color: var(--muted);
  text-align: center;
}

.map-fallback[hidden] {
  display: none;
}

.map-label {
  position: absolute;
  left: 18px;
  bottom: 15px;
  z-index: 3;
  color: var(--faint);
  font-size: 12px;
}

.swiss-map.compact .map-label {
  display: none;
}

.map-controls {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.map-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: calc(100% - 168px);
  border: 1px solid rgba(255, 248, 237, 0.08);
  border-radius: 8px;
  padding: 5px;
  background: rgba(6, 7, 8, 0.58);
  backdrop-filter: blur(10px);
}

.map-filter-chip {
  min-height: 28px;
  gap: 7px;
  padding: 0 9px;
  font-size: 11px;
}

.type-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chip-color, var(--lime));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--chip-color, var(--lime)) 14%, transparent);
}

.map-tools {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.map-zoom-label {
  min-width: 48px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(6, 7, 8, 0.74);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.map-count-panel {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(255, 248, 237, 0.11);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(6, 7, 8, 0.66);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.map-count-panel strong {
  color: var(--paper);
  font-size: 22px;
  line-height: 1;
}

.map-count-panel span {
  color: var(--muted);
  font-size: 12px;
}

.map-count-panel button {
  width: fit-content;
  margin-top: 4px;
  border: 0;
  border-bottom: 1px solid var(--lime);
  padding: 0;
  background: transparent;
  color: var(--lime);
  cursor: pointer;
}

.detail-hero {
  min-height: 340px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.detail-main {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--ink-2);
  overflow: hidden;
}

.detail-info {
  padding: 18px;
}

.detail-title {
  margin: 0;
  font-size: 42px;
  line-height: 1.02;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.detail-copy {
  color: var(--muted);
  line-height: 1.62;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.section-stack {
  display: grid;
  gap: 14px;
}

.section {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--ink-2);
}

.timeline {
  display: grid;
  gap: 8px;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--faint);
  background: rgba(255, 248, 237, 0.02);
}

.search-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
}

.search-box {
  padding: 18px;
}

.big-search {
  min-height: 58px;
  font-size: 20px;
  font-weight: 750;
}

.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 6px;
}

.admin-side .nav-link {
  justify-content: flex-start;
  width: 100%;
}

.admin-panel {
  min-width: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.table-list {
  display: grid;
  gap: 8px;
}

.score {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.score-bar {
  width: 42px;
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.score-bar span {
  display: block;
  height: 100%;
  width: var(--score, 0%);
  background: var(--score-color, var(--lime));
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.74);
}

.modal-panel {
  width: min(720px, 100%);
  max-height: min(880px, 92vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: var(--shadow);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--ink-2);
}

.modal-body {
  padding: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.form-note-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 10px;
  color: var(--faint);
  font-size: 12px;
  background: rgba(255, 248, 237, 0.03);
}

.pending-linker {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 248, 237, 0.025);
}

.pending-linker .check-grid {
  max-height: 170px;
  overflow: auto;
  padding-right: 2px;
}

.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.check-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-chip span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.check-chip input:checked + span {
  color: var(--text);
  border-color: var(--lime);
  background: rgba(158, 200, 190, 0.12);
}

.brandbook-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.name-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 14px;
}

.name-card.reco {
  border-color: rgba(158, 200, 190, 0.5);
}

.logo-lab {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.logo-concept {
  min-height: 170px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--ink-2);
}

.logo-preview {
  min-height: 84px;
  display: grid;
  place-items: center;
}

.mark-a,
.mark-b,
.mark-c,
.mark-d {
  width: 64px;
  height: 64px;
  position: relative;
}

.mark-a {
  display: block;
  border: 1px solid var(--paper);
  background: #050607;
}

.mark-a i {
  display: none;
}

.mark-a::before,
.mark-a::after {
  content: "";
  position: absolute;
  border-radius: 1px;
}

.mark-a::before {
  left: 14px;
  right: 14px;
  top: 14px;
  height: 8px;
  background: var(--paper);
}

.mark-a::after {
  top: 14px;
  bottom: 12px;
  left: 50%;
  width: 9px;
  transform: translateX(-50%);
  background: var(--lime);
}

.mark-b {
  border: 1px solid var(--paper);
}

.mark-b::before,
.mark-b::after {
  content: "";
  position: absolute;
  background: var(--lime);
}

.mark-b::before {
  left: 13px;
  top: 10px;
  width: 8px;
  height: 44px;
}

.mark-b::after {
  right: 12px;
  top: 24px;
  width: 30px;
  height: 8px;
}

.mark-c {
  border: 1px solid var(--paper);
  transform: rotate(45deg);
}

.mark-c::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 8px solid var(--lime);
}

.mark-d {
  border-left: 12px solid var(--lime);
  border-top: 1px solid var(--paper);
  border-right: 1px solid var(--paper);
  border-bottom: 1px solid var(--paper);
}

.mark-d::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 11px;
  bottom: 11px;
  width: 1px;
  background: var(--paper);
  box-shadow: 14px 0 0 var(--paper), 28px 0 0 var(--paper);
}

.palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.swatch {
  min-height: 72px;
  border: 1px solid rgba(255, 248, 237, 0.12);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  align-items: end;
  color: var(--paper);
  font-size: 10px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: 360px;
  border: 1px solid rgba(158, 200, 190, 0.45);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: #070808;
  color: var(--paper);
  box-shadow: var(--shadow);
  font-weight: 750;
}

.mobile-nav {
  display: none;
}

.hide-desktop {
  display: none;
}

@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .topbar-inner {
    grid-template-columns: auto 1fr;
  }

  .top-actions {
    justify-self: end;
  }

  .hero-grid,
  .split,
  .detail-hero,
  .section-grid,
  .search-shell,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-side {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 840px) {
  .app-shell {
    padding-bottom: 76px;
  }

  .page {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    padding-top: 18px;
  }

  .topbar-inner {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    min-height: 62px;
    gap: 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-sub {
    display: none;
  }

  .screen-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .h1 {
    font-size: 31px;
  }

  .top-actions {
    gap: 0;
  }

  .top-actions .icon-button[aria-label="Recherche"],
  .top-actions .button.dark {
    display: none;
  }

  .hero-grid,
  .experience-panel {
    min-height: auto;
  }

  .quick-controls,
  .filter-grid,
  .stat-grid,
  .directory-grid,
  .admin-grid,
  .brandbook-grid,
  .logo-lab,
  .form-grid,
  .suggestion-grid {
    grid-template-columns: 1fr;
  }

  .swiss-map {
    min-height: 430px;
  }

  .detail-title {
    font-size: 34px;
  }

  .mobile-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    border: 1px solid rgba(255, 248, 237, 0.12);
    border-radius: var(--radius);
    background: rgba(10, 11, 13, 0.94);
    backdrop-filter: blur(18px);
    padding: 6px;
  }

  .mobile-nav button {
    min-width: 0;
    height: 50px;
    display: grid;
    place-items: center;
    gap: 2px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 9.5px;
    font-weight: 750;
  }

  .mobile-nav button.active {
    background: rgba(255, 248, 237, 0.07);
    color: var(--text);
  }

  .mobile-nav .icon {
    width: 18px;
    height: 18px;
  }

  .hide-mobile {
    display: none;
  }

  .hide-desktop {
    display: initial;
  }
}

@media (max-width: 520px) {
  .page {
    width: calc(100vw - 18px);
    max-width: calc(100vw - 18px);
  }

  .h1 {
    font-size: 29px;
  }

  .panel-pad,
  .section,
  .filters,
  .search-box {
    padding: 13px;
  }

  .day-row,
  .list-row,
  .result-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .row-action {
    display: none;
  }

  .top-actions .button {
    padding: 0 10px;
  }

  .top-actions .button span {
    display: none;
  }

  .map-controls {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    flex-direction: column;
    padding: 12px;
    background: rgba(10, 11, 13, 0.72);
  }

  .map-tools {
    width: 100%;
    justify-content: space-between;
  }

  .map-zoom-label {
    flex: 1;
  }

  .map-count-panel {
    top: 190px;
    right: 10px;
    bottom: auto;
    min-width: 132px;
    padding: 10px;
  }

  .map-label {
    display: none;
  }

  .swiss-map {
    min-height: 620px;
  }
}
