:root {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color-scheme: dark;
  color: #edf4ff;
  background: #0b101b;
  font-synthesis: none;
  --text: #edf4ff;
  --muted: #a9b9d1;
  --surface: #141d30;
  --line: #2a3a53;
  --cyan: #52e2ff;
  --blue: #2359ed;
  --floating: #141d30ed;
  --nav-height: calc(62px + env(safe-area-inset-bottom, 0px));
}

* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .45; cursor: default; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
a { color: inherit; }
.material-symbols-outlined {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  overflow: hidden;
  font-size: 21px;
  line-height: 1;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.app { min-height: 100dvh; display: flex; flex-direction: column; }
.map-app { height: 100dvh; min-height: 530px; }
.map-app { --map-top-inset: 145px; --map-bottom-inset: 218px; }
.map-app[data-top-collapsed=true] { --map-top-inset: 60px; }
.map-app[data-bottom-collapsed=true] { --map-bottom-inset: 64px; }
.map-app[data-top-collapsed=true] .topbar,
.map-app[data-top-collapsed=true] .filter-content,
.map-app[data-bottom-collapsed=true] .result-content,
.map-app[data-bottom-collapsed=true] .bottom-nav { display: none; }
.topbar { background: #0c1220; border-bottom: 1px solid #ffffff10; z-index: 5; }
.top-inner {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 57px;
  margin: auto;
  padding: 0 14px;
}
.brand {
  display: inline-block;
  border: 0;
  background: none;
  padding: 0 .08em 0 0;
  color: #eef7ff;
  letter-spacing: -.10em;
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
}
.brand span { color: var(--cyan); }
.city-picker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 7px;
  min-width: 0;
  min-height: 33px;
  background: #172239;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.city-picker .material-symbols-outlined { color: var(--cyan); font-size: 16px; }
.city-picker select {
  cursor: pointer;
  color: var(--text);
  background: transparent;
  border: 0;
  width: 100%;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
}
select option, select optgroup { background: #182438; color: var(--text); }
.user-button, .icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--floating);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  color: var(--text);
  font-weight: 800;
}
.user-button {
  margin-left: auto;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  color: var(--cyan);
}

.workspace { position: relative; flex: 1; min-width: 0; }
.map-app .workspace { display: flex; flex-direction: column; }
.filters {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 8px;
  padding: 11px 14px 0;
  min-width: 0;
}
.map-app .filters { position: absolute; inset: 0 0 auto; pointer-events: none; }
.map-app .filters > * { pointer-events: auto; }
.filter-row { display: grid; grid-template-columns: minmax(0, 1fr) 43px 43px; gap: 7px; }
.search {
  min-width: 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  background: var(--floating);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 5px 15px #06091560;
  color: var(--muted);
}
.search:focus-within { border-color: #4e82ff; }
.search input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 13px;
}
.search input::placeholder { color: var(--muted); }
.filter-button { color: var(--cyan); box-shadow: 0 5px 15px #06091560; }
.filter-button[aria-expanded=true] { border-color: #5484ff; background: #1b3570; }
.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 3px 14px 5px;
  margin-inline: -14px;
}
.chips button {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex: none;
  min-height: 33px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--floating);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.chips .material-symbols-outlined { font-size: 16px; }
.chips button[aria-pressed=true] {
  background: #1a3474;
  border-color: #547dff;
  color: #edf5ff;
  box-shadow: 0 0 13px #2359ed50;
}
.chips button[aria-pressed=true] .material-symbols-outlined { color: var(--cyan); }
.filter-panel, .location-message {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 9px;
  padding: 11px;
  background: var(--floating);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 20px #05091399;
  font-size: 12px;
}
.filter-panel label { flex: 1; display: grid; gap: 5px; font-weight: 700; }
.filter-panel select {
  min-height: 36px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1627;
  padding-inline: 5px;
}
.location-message { align-items: center; justify-content: space-between; }

.discovery { position: relative; min-width: 0; }
.map-view { flex: 1; }
.map { position: absolute; inset: 0; overflow: hidden; background: #111b2b; }
.map-plane { position: absolute; inset: 0; }
.maplibregl-canvas:focus:not(:focus-visible) { outline: none; }
.map .maplibregl-ctrl-bottom-right { bottom: 187px; }
.map .maplibregl-ctrl-attrib {
  color: #b3c2d9;
  background: #0b1220ed;
  font-size: 9px;
}
.map .maplibregl-ctrl-attrib a { color: inherit; }
.map .maplibregl-ctrl-attrib-button { filter: invert(1); }
.map-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  padding: 0;
  border: 2px solid #5a7594;
  border-radius: 50%;
  background: #172339;
  color: var(--category);
  box-shadow: 0 3px 12px #020710bd;
}
.map-pin::after {
  content: "";
  position: absolute;
  bottom: -3px;
  width: 7px;
  height: 7px;
  border: inherit;
  border-width: 0 2px 2px 0;
  background: inherit;
  transform: rotate(45deg);
}
.map-pin[aria-pressed=true] {
  background: linear-gradient(140deg,#153bbb,#285fff 60%,#42cbf7);
  border-color: #d9f6ff;
  color: #fff;
  box-shadow: 0 0 0 5px #3180ff38, 0 0 24px #246cffb8;
  scale: 1.13;
}
.map-user-pin {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #2d6bff;
  box-shadow: 0 0 0 6px #2870ff59, 0 0 16px #44c8ff;
}
.map-actions { position: absolute; right: 13px; top: 113px; z-index: 3; display: grid; gap: 7px; }
.map-app .map-actions { top: var(--map-top-inset); }
.map-app .maplibregl-ctrl-bottom-right { bottom: calc(var(--map-bottom-inset) - 5px); }
.map-actions button, .carousel-controls button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--floating);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}
.map-actions button:first-child, .map-actions button[aria-pressed=true] { color: var(--cyan); }
.map-actions .radar-control {
  color: var(--cyan);
  background: #1b367c;
  border-color: #507dff;
  box-shadow: 0 0 16px #2455ed72;
}
.zoom-controls { display: grid; gap: 4px; }
.zoom-controls button { height: 32px; }
.map-error {
  position: absolute;
  top: 42%;
  left: 50%;
  translate: -50%;
  width: max-content;
  max-width: 76%;
  background: var(--floating);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  z-index: 2;
  font-size: 12px;
}

.results { min-width: 0; }
.map-view .results {
  position: absolute;
  z-index: 3;
  bottom: 0;
  width: 100%;
  padding: 23px 14px 14px;
  background: linear-gradient(transparent,#080e1adf 25%,#080e1afa 100%);
  pointer-events: none;
}
.map-view .results > * { pointer-events: auto; }
.result-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.result-head h2 { font-size: 13px; font-weight: 800; letter-spacing: -.025em; }
.map-view .result-head h2 { text-transform: uppercase; letter-spacing: .055em; font-size: 10px; }
.map-view .result-head h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  vertical-align: 1px;
}
.result-count, .category {
  color: var(--cyan);
  background: #14274a;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 800;
}
.carousel-controls { margin-left: auto; display: flex; gap: 5px; }
.carousel-controls button { width: 32px; height: 32px; }
.event-cards { display: grid; gap: 12px; }
.map-view .event-cards {
  position: relative;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.map-view .event-cards::after { content: ""; flex: 0 0 9px; }
.event-card {
  position: relative;
  min-width: 0;
  border: 1px solid #33425d;
  border-radius: 16px;
  background: #151e30;
  overflow: hidden;
}
.map-view .event-card {
  flex: 0 0 calc(100% - 19px);
  min-height: 112px;
  scroll-snap-align: start;
}
.event-card[data-selected] { border-color: #4a78ff; background: #182744; }
.card-target {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 9px;
  min-height: 100%;
  padding: 9px;
  text-align: left;
  background: transparent;
  border: 0;
}
.card-target:focus-visible { outline-offset: -3px; }
.event-image {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  color: var(--category);
  background: var(--tone);
}
.event-image .material-symbols-outlined { font-size: 29px; }
.event-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-target .event-image { flex: 0 0 74px; }
.card-info { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: start; gap: 4px; }
.card-info strong { padding-right: 24px; font-size: 13px; line-height: 1.25; }
.card-location { display: flex; align-items: center; gap: 3px; color: var(--muted); font-size: 10px; }
.card-location .material-symbols-outlined { font-size: 13px; color: var(--cyan); }
.card-meta { display: flex; flex-wrap: wrap; gap: 5px; color: var(--muted); font-size: 10px; }
.card-meta b { color: var(--text); }
.map-view .card-meta { padding-right: 55px; }
.save { position: absolute; right: 6px; top: 6px; padding: 5px; border: 0; color: var(--muted); }
.save .material-symbols-outlined { font-size: 17px; }
.filled { color: var(--cyan); font-variation-settings: "FILL" 1; }
.card-detail {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 3px;
  right: 8px;
  bottom: 8px;
  min-height: 25px;
  border-radius: 999px;
  padding: 3px 7px;
  border: 1px solid #537bff;
  background: #244cc4;
  font-size: 10px;
  font-weight: 800;
}
.card-detail .material-symbols-outlined { font-size: 13px; }
.demo-note { display: block; color: var(--muted); font-size: 9px; margin-top: 6px; }
.empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--floating);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
}
.catalog-app .workspace { width: min(100%, 1100px); margin: 0 auto; }
.page-title { padding: 24px 14px 12px; font-size: clamp(26px, 5vw, 44px); letter-spacing: -.05em; }
.list-view { padding: 14px 14px 24px; }
.list-view .card-target { min-height: 104px; }
.list-view .card-target .event-image { flex-basis: 96px; }

.bottom-nav {
  flex: 0 0 var(--nav-height);
  align-self: stretch;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #0b111f;
  border-top: 1px solid #26354b;
  padding: 4px 5px calc(4px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px #05091150;
}
.catalog-app .bottom-nav { position: sticky; bottom: 0; flex: 0 0 auto; min-height: var(--nav-height); }
.bottom-nav button {
  display: flex;
  min-height: 44px;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  background: none;
  border: 0;
}
.bottom-nav button[aria-current], .bottom-nav button:hover { color: var(--cyan); }
.bottom-nav button[aria-current] .material-symbols-outlined { font-variation-settings: "FILL" 1; }
dialog {
  width:min(500px,100% - 28px);
  max-height:calc(100dvh - 32px);
  padding:0;
  border:1px solid var(--line);
  border-radius:24px;
  color:inherit;
  background:var(--surface);
  box-shadow:0 16px 70px #0009;
}

dialog::backdrop {
  background:#020610bb;
}

.dialog-body {
  position:relative;
}

.dialog-close {
  position:absolute;
  z-index:1;
  right:12px;
  top:12px;
  padding:8px;
}

.detail-image {
  height:200px;
  border-radius:0;
}

.detail-content,.account {
  padding:23px;
}

.detail-content h2,.account h2 {
  font-size:29px;
  line-height:1.15;
  letter-spacing:-.05em;
  margin:9px 0;
}

.detail-content p,.account p {
  font-size:14px;
  color:var(--muted);
  line-height:1.55;
}

.event-facts {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.event-facts div {
  background:#182438;
  border-radius:12px;
  padding:10px;
  font-size:12px;
}

.event-facts dt {
  display:flex;
  align-items:center;
  gap:5px;
  font-weight:800;
  color:var(--cyan);
}

.event-facts .material-symbols-outlined {
  font-size:16px;
}

.event-facts dd {
  margin:5px 0 0;
  line-height:1.4;
}

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

.primary,.google-button {
  border:1px solid transparent;
  border-radius:12px;
  background:var(--blue);
  color:#f4f8ff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 15px;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
}

.primary:hover:not(:disabled) {
  background:#154dd3;
}

.google-button {
  background:var(--surface);
  color:inherit;
  border-color:var(--line);
}

.google-g {
  font-size:18px;
  color:#91b7ff;
  font-weight:800;
}

.text-button {
  border:0;
  background:none;
  color:var(--cyan);
  font-weight:800;
  font-size:12px;
  padding:7px 0;
  text-align:left;
  text-decoration:underline;
  text-underline-offset:3px;
}

.account {
  display:grid;
  gap:8px;
  padding:30px;
}

.account h2,.account p {
  margin:0;
}

.account form,.account label {
  display:grid;
  gap:6px;
}

.account form {
  gap:10px;
  margin:7px 0;
}

.account label {
  font-size:12px;
  font-weight:800;
}

.account input {
  border:1px solid var(--line);
  min-height:42px;
  color:var(--text);
  background:#101829;
  border-radius:10px;
  padding:8px 10px;
}

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

.notice {
  margin-top:10px!important;
  padding:8px 10px;
  background:#192945;
  border-radius:9px;
}


@media (min-width: 600px) {
  .top-inner { padding-inline: 22px; }
  .city-picker select { font-size: 12px; }
  .filters { padding-inline: 22px; }
  .filter-row, .filter-panel, .location-message { max-width: 560px; }
  .chips { margin: 0; padding-inline: 2px; }
  .map-actions { right: 22px; }
  .map-view .results { padding-inline: 22px; }
  .map-view .event-card { flex-basis: 302px; }
  .map-view .event-cards::after { display: none; }
  .list-view .event-cards { grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); }
  .list-view .card-target { flex-direction: column; }
  .list-view .card-target .event-image { flex-basis: auto; height: 170px; }
  .bottom-nav { justify-content: center; gap: 18px; }
  .bottom-nav button { flex: 0 1 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

.filter-content { display: grid; gap: 8px; }
.map-panel-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 40px;
  min-height: 36px;
  padding: 0 10px;
  color: var(--cyan);
  background: var(--floating);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 12px #04091380;
}
.map-app .top-panel-toggle { position: absolute; top: calc(100% + 3px); right: 22px; }
.map-app .bottom-panel-toggle { position: absolute; left: 50%; bottom: calc(100% - 16px); translate: -50%; }
.map-app .top-panel-toggle[aria-expanded=true],
.map-app .bottom-panel-toggle[aria-expanded=true] { min-height: 30px; }
.map-app[data-bottom-collapsed=true] .results { padding: 0; background: none; }
.map-app[data-bottom-collapsed=true] .bottom-panel-toggle { bottom: 8px; }

@media (max-width: 599px) {
  .map-app:has(.filter-panel) { --map-top-inset: 210px; }

  .map-app .map-panel-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    justify-self: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px;
    color: var(--cyan);
    background: var(--floating);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 4px 12px #04091380;
  }

  .map-app .filters { gap: 3px; }
  .map-app[data-bottom-collapsed=true] .bottom-panel-toggle {
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }
}

.bottom-nav .create-nav { color: var(--cyan); }
.create-nav .material-symbols-outlined { font-size: 25px; }

.create-page {
  width: min(100%, 640px);
  margin-inline: auto;
  padding: 22px 14px 24px;
}
.create-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.create-heading h1 { font-size: clamp(25px, 5vw, 35px); letter-spacing: -.05em; }
.create-heading p, .create-form fieldset p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 4px;
}
.create-form { display: grid; gap: 14px; }
.create-form fieldset {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.create-form legend { color: var(--cyan); padding: 0 6px; font-size: 12px; font-weight: 800; }
.create-form label { display: grid; min-width: 0; gap: 5px; font-size: 12px; font-weight: 700; }
.create-form input, .create-form select, .create-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px;
  color: var(--text);
  background: #0d1627;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  font-size: 16px;
}
.create-form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.location-picker {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #111b2b;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.location-picker .map-plane { cursor: crosshair; touch-action: none; }
.location-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: white;
  background: #2559e0;
  border: 1px solid var(--cyan);
  border-radius: 50%;
}
.location-actions, .create-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.location-actions, .create-actions .icon-button, .local-event-note { font-size: 12px; }
.location-actions .icon-button, .create-actions button { min-height: 44px; }
.location-actions span[role=status], .local-event-note { color: var(--muted); }
.create-actions { justify-content: flex-end; }
.create-error { color: #ffc5ca; font-size: 13px; }

.create-form input[type=file] {
  padding: 6px;
  font-size: 13px;
}
.create-form input[type=file]::file-selector-button {
  padding: 7px 9px;
  margin-right: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1a3474;
  color: var(--text);
  cursor: pointer;
}
.cover-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}
.cover-remove { justify-self: start; }
.create-form fieldset .create-error { color: #ffc5ca; }

.edit-event-button { margin-top: 12px; padding-inline: 12px; min-height: 44px; font-size: 13px; }
.edit-event-button .material-symbols-outlined { color: var(--cyan); font-size: 18px; }

.form-errors {
  scroll-margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid #aa596b;
  border-radius: 13px;
  color: #ffd6de;
  background: #352235;
}
.form-errors h2 { font-size: 15px; }
.form-errors ul { margin: 7px 0 0; padding-left: 19px; font-size: 13px; line-height: 1.6; }
.form-errors a { text-underline-offset: 2px; }
.create-form [aria-invalid=true] { border-color: #e78e9f; }

.theme-toggle {
  margin-left: auto;
  min-height: 36px;
  white-space: nowrap;
  color: var(--cyan);
  font-size: 11px;
}
.theme-toggle .material-symbols-outlined { font-size: 17px; }
.theme-toggle + .user-button { margin-left: 0; }
.card-info .category { color: var(--badge-color); background: var(--badge-tone); }

.app[data-theme=day] {
  color-scheme: light;
  --text: #22252b;
  --muted: #58515a;
  --surface: #fffdf9;
  --line: #dfd5c9;
  --cyan: #a53522;
  --blue: #22252b;
  --floating: #fffaf3f5;
  background: #fffaf3;
  color: var(--text);
}
.app[data-theme=day] .topbar,
.app[data-theme=day] .bottom-nav { background: #fffaf3; border-color: var(--line); }
.app[data-theme=day] .brand { color: var(--text); }
.app[data-theme=day] .brand span { color: #ff6b46; }
.app[data-theme=day] .city-picker,
.app[data-theme=day] .result-count,
.app[data-theme=day] .category { background: #d9c9ff; color: #403256; }
.app[data-theme=day] select option,
.app[data-theme=day] select optgroup { background: var(--surface); }
.app[data-theme=day] .search,
.app[data-theme=day] .filter-button,
.app[data-theme=day] .filter-panel,
.app[data-theme=day] .location-message,
.app[data-theme=day] .map-panel-toggle { box-shadow: 0 4px 14px #61423326; }
.app[data-theme=day] .search:focus-within { border-color: #be4c32; }
.app[data-theme=day] .chips button[aria-pressed=true],
.app[data-theme=day] .filter-button[aria-expanded=true],
.app[data-theme=day] .radar-control {
  border-color: #cf9c24;
  background: #ffce4a;
  color: var(--text);
  box-shadow: 0 0 10px #9a711033;
}
.app[data-theme=day] .filter-panel select,
.app[data-theme=day] .create-form :is(input, select, textarea),
.app[data-theme=day] .account input { background: #fffaf3; }
.app[data-theme=day] .map, .app[data-theme=day] .location-picker { background: #fffaf3; }
.app[data-theme=day] .map .maplibregl-ctrl-attrib { background: #fffaf3ed; color: var(--text); }
.app[data-theme=day] .map .maplibregl-ctrl-attrib-button { filter: none; }
.app[data-theme=day] .map-pin {
  background: #fffaf3;
  color: #5e3b77;
  border-color: #a780b5;
  box-shadow: 0 3px 10px #46394844;
}
.app[data-theme=day] .map-pin[aria-pressed=true] {
  background: linear-gradient(140deg,#ffce4a,#ff6b46);
  color: #22252b;
  border-color: #fffaf3;
  box-shadow: 0 0 0 5px #ff6b464a, 0 2px 12px #75402354;
}
.app[data-theme=day] .map-view .results { background: linear-gradient(transparent,#fffaf3e8 25%,#fffaf3 100%); }
.app[data-theme=day][data-bottom-collapsed=true] .results { background: none; }
.app[data-theme=day] .event-card { background: #fffdf9; border-color: var(--line); }
.app[data-theme=day] .event-card[data-selected] { background: #fff3e6; border-color: #db805f; }
.app[data-theme=day] .card-detail {
  color: var(--text);
  background: #ffce4a;
  border-color: #c48f1e;
}
.app[data-theme=day] .event-facts div { background: #f1e9ff; }
.app[data-theme=day] .primary:hover:not(:disabled) { background: #45404a; }
.app[data-theme=day] .notice { background: #e6f5ea; }
.app[data-theme=day] .location-crosshair,
.app[data-theme=day] .create-form input[type=file]::file-selector-button {
  background: #c4f0d5;
  color: var(--text);
}
.app[data-theme=day] .form-errors {
  background: #fff0e8;
  color: #802b20;
  border-color: #d8927d;
}
.app[data-theme=day] .create-form fieldset .create-error { color: #802b20; }

@media (max-width: 360px) {
  .top-inner { gap: 6px; }
  .theme-toggle { padding-inline: 7px; }
}
