body.prototype-frontend {
  --proto-bg: #f7f3ee;
  --proto-bg-soft: #fffaf2;
  --proto-page-end: #fffdf8;
  --proto-surface: #fffdf8;
  --proto-surface-cool: #eef3f4;
  --proto-field: #fffefa;
  --proto-ink: #06324f;
  --proto-ink-strong: #021c30;
  --proto-muted: #5d6873;
  --proto-line: #d8d0c3;
  --proto-line-strong: #bfb2a2;
  --proto-gold: #f2b02e;
  --proto-gold-strong: #b86f14;
  --proto-green: #2d7066;
  --proto-purple: #7353c6;
  --proto-purple-soft: #efe9ff;
  --proto-shadow: 0 22px 60px rgba(6, 50, 79, 0.14);
  --proto-shadow-soft: 0 12px 34px rgba(6, 50, 79, 0.1);
  --proto-radius: 14px;
  --proto-radius-small: 10px;
  --proto-max: 1180px;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(242, 176, 46, 0.13), transparent 34%),
    linear-gradient(215deg, rgba(45, 112, 102, 0.1), transparent 42%),
    linear-gradient(180deg, var(--proto-bg-soft) 0%, var(--proto-bg) 48%, var(--proto-page-end) 100%);
  color: var(--proto-ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

body.prototype-frontend::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(6, 50, 79, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 50, 79, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, black 0%, transparent 58%);
  content: "";
}

.prototype-frontend a {
  color: var(--proto-ink);
  text-underline-offset: 3px;
}

.prototype-frontend a:hover {
  color: var(--proto-gold-strong);
}

.prototype-frontend button,
.prototype-frontend input,
.prototype-frontend select,
.prototype-frontend textarea {
  font: inherit;
}

.prototype-frontend button {
  cursor: pointer;
}

.prototype-frontend button:focus-visible,
.prototype-frontend a:focus-visible,
.prototype-frontend input:focus-visible,
.prototype-frontend select:focus-visible,
.prototype-frontend textarea:focus-visible,
.prototype-frontend summary:focus-visible {
  outline: 3px solid rgba(242, 176, 46, 0.36);
  outline-offset: 2px;
}

.prototype-frontend h1,
.prototype-frontend h2,
.prototype-frontend h3,
.prototype-frontend p {
  margin-top: 0;
}

.prototype-frontend main {
  width: auto;
  margin: 0;
}

.prototype-frontend .shell {
  width: min(var(--proto-max), calc(100% - 40px));
  margin-inline: auto;
}

.prototype-frontend .skip-link {
  position: absolute;
  top: 12px;
  left: -999px;
  z-index: 100;
  border-radius: var(--proto-radius-small);
  background: var(--proto-ink-strong);
  color: #fffdf8;
  padding: 10px 12px;
}

.prototype-frontend .skip-link:focus {
  left: 12px;
}

.prototype-frontend .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  border-bottom: 1px solid rgba(216, 208, 195, 0.86);
  background: rgba(255, 250, 242, 0.9);
  padding: 0;
  backdrop-filter: blur(18px);
}

.prototype-frontend .topbar-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.prototype-frontend .brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--proto-ink);
  font-weight: 900;
  text-decoration: none;
}

.prototype-frontend .brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(6, 50, 79, 0.16);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--proto-shadow-soft);
}

.prototype-frontend .brand-mark img {
  display: block;
  width: 132%;
  height: 132%;
  object-fit: cover;
  transform: translateY(3px);
}

.prototype-frontend .brand-text {
  display: grid;
  line-height: 1.1;
}

.prototype-frontend .brand-text small {
  color: var(--proto-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.prototype-frontend .nav-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.prototype-frontend .button,
.prototype-frontend .button-secondary,
.prototype-frontend .tool-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.prototype-frontend .button {
  border: 1px solid var(--proto-ink);
  background: var(--proto-ink);
  color: #fffdf8;
  box-shadow: 0 14px 30px rgba(6, 50, 79, 0.22);
  padding: 0 18px;
}

.prototype-frontend .button:hover {
  border-color: var(--proto-ink-strong);
  background: var(--proto-ink-strong);
  color: #fffdf8;
}

.prototype-frontend .button-secondary,
.prototype-frontend .tool-link {
  border: 1px solid rgba(6, 50, 79, 0.18);
  background: rgba(255, 253, 248, 0.82);
  color: var(--proto-ink);
  padding: 0 13px;
}

.prototype-frontend .button-secondary:hover,
.prototype-frontend .tool-link:hover {
  background: #f9edcf;
  color: var(--proto-ink-strong);
}

.prototype-frontend .nav-current {
  box-shadow: none;
}

.prototype-frontend .button-disabled,
.prototype-frontend .button-disabled:hover {
  border-color: #d6cdc0;
  background: rgba(255, 253, 248, 0.58);
  color: #8b8074;
  cursor: not-allowed;
}

.prototype-frontend .button:active,
.prototype-frontend .button-secondary:active,
.prototype-frontend .chip:active,
.prototype-frontend .event-card:active,
.prototype-frontend .event-action-trigger:active,
.prototype-frontend .event-icon-action:active,
.prototype-frontend .event-calendar-add:active,
.prototype-frontend .copy-action:active {
  transform: translateY(1px);
}

.prototype-frontend .export-menu {
  position: relative;
}

.prototype-frontend .export-menu summary {
  list-style: none;
}

.prototype-frontend .export-menu summary::-webkit-details-marker {
  display: none;
}

.prototype-frontend .export-menu-panel {
  border-color: var(--proto-line);
  border-radius: var(--proto-radius-small);
}

.prototype-frontend .export-menu-panel button {
  color: var(--proto-ink);
}

.prototype-frontend .hero {
  display: grid;
  min-height: min(700px, calc(100dvh - 68px));
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.68fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(34px, 6vw, 72px) 0 30px;
}

.prototype-frontend .hero-copy {
  max-width: 740px;
}

.prototype-frontend h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2.8rem, 7vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.prototype-frontend .hero-subhead {
  max-width: 610px;
  margin-bottom: 22px;
  color: var(--proto-muted);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.45;
}

.prototype-frontend .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.prototype-frontend .finder-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  max-width: 760px;
  margin: 0;
  border: 1px solid rgba(6, 50, 79, 0.13);
  border-radius: var(--proto-radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--proto-shadow);
  padding: 18px;
}

.prototype-frontend .finder-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.prototype-frontend .finder-title h2 {
  margin: 0;
  color: var(--proto-ink);
  font-size: 1rem;
}

.prototype-frontend .finder-title span,
.prototype-frontend .filter-status {
  color: var(--proto-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.prototype-frontend .finder-grid {
  display: grid;
  grid-template-columns: minmax(94px, 0.72fr) minmax(126px, 0.8fr) minmax(140px, 0.9fr) auto;
  gap: 10px;
  align-items: end;
}

.prototype-frontend label {
  display: grid;
  gap: 6px;
  color: var(--proto-muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.prototype-frontend input,
.prototype-frontend select,
.prototype-frontend textarea {
  width: 100%;
  border: 1px solid var(--proto-line);
  border-radius: var(--proto-radius-small);
  background: var(--proto-field);
  color: var(--proto-ink);
}

.prototype-frontend input,
.prototype-frontend select {
  min-height: 42px;
  padding: 0 12px;
}

.prototype-frontend .filter-status {
  display: block;
  min-height: 18px;
  margin: -4px 0 0;
}

.prototype-frontend .hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 480px;
}

.prototype-frontend .photo-frame {
  position: sticky;
  top: 96px;
  height: min(560px, calc(100dvh - 132px));
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(6, 50, 79, 0.15);
  border-radius: var(--proto-radius);
  background: #ffffff;
  box-shadow: var(--proto-shadow);
}

.prototype-frontend .photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prototype-frontend .warm-card {
  position: absolute;
  right: clamp(12px, 4vw, 32px);
  bottom: 26px;
  max-width: 270px;
  border: 1px solid rgba(242, 176, 46, 0.34);
  border-radius: var(--proto-radius-small);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 18px 42px rgba(6, 50, 79, 0.18);
  padding: 16px;
  backdrop-filter: blur(14px);
}

.prototype-frontend .warm-card p {
  margin: 0 0 6px;
  color: var(--proto-muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.prototype-frontend .warm-card strong {
  display: block;
  color: var(--proto-ink);
  font-size: 1.18rem;
  line-height: 1.16;
}

.prototype-frontend .category-band {
  padding-bottom: 28px;
}

.prototype-frontend .category-panel {
  display: grid;
  grid-template-columns: minmax(210px, 0.5fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-top: 1px solid rgba(6, 50, 79, 0.16);
  border-bottom: 1px solid rgba(6, 50, 79, 0.16);
  padding: 18px 0;
}

.prototype-frontend .category-panel p {
  margin: 0;
  color: var(--proto-muted);
  font-weight: 750;
}

.prototype-frontend .category-copy {
  display: grid;
  gap: 8px;
  align-content: start;
}

.prototype-frontend .category-reset {
  width: max-content;
  border: 0;
  background: transparent;
  color: var(--proto-green);
  font-weight: 900;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prototype-frontend .category-reset:hover,
.prototype-frontend .category-reset:focus {
  color: var(--proto-ink);
}

.prototype-frontend .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prototype-frontend .chip {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(6, 50, 79, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.84);
  color: var(--proto-ink);
  font-weight: 900;
  padding: 6px 13px 6px 7px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.prototype-frontend .chip-icon {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #fffdf8;
  box-shadow: inset 0 0 0 2px rgba(242, 176, 46, 0.72);
  color: var(--proto-ink);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.prototype-frontend .chip:hover {
  border-color: rgba(6, 50, 79, 0.34);
  background: #fff6df;
}

.prototype-frontend .chip.is-selected {
  border-color: var(--proto-ink);
  background: var(--proto-ink);
  color: #fffdf8;
}

.prototype-frontend .chip.is-selected .chip-icon {
  background: #fffdf8;
  box-shadow: inset 0 0 0 2px var(--proto-gold);
  color: var(--proto-ink-strong);
}

.prototype-frontend .events-zone {
  padding: 8px 0 56px;
}

.prototype-frontend .results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.58fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

.prototype-frontend .event-list {
  min-width: 0;
}

.prototype-frontend .list-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.prototype-frontend .list-header h2 {
  margin: 0 0 4px;
  color: var(--proto-ink);
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.prototype-frontend .list-header p {
  margin: 0;
  color: var(--proto-muted);
}

.prototype-frontend .list-header strong {
  color: var(--proto-ink);
}

.prototype-frontend .event-card-stack {
  display: grid;
  gap: 12px;
}

.prototype-frontend .event-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(72px, auto);
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(6, 50, 79, 0.12);
  border-radius: var(--proto-radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 24px rgba(6, 50, 79, 0.08);
  cursor: pointer;
  padding: 12px;
  transition: background 180ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.prototype-frontend .event-card:hover,
.prototype-frontend .event-card:focus-within,
.prototype-frontend .event-card:focus {
  border-color: rgba(242, 176, 46, 0.72);
  box-shadow: 0 16px 34px rgba(6, 50, 79, 0.13);
}

.prototype-frontend .event-card.is-active {
  border-color: rgba(115, 83, 198, 0.72);
  background: rgba(239, 233, 255, 0.86);
  box-shadow: 0 18px 38px rgba(73, 48, 142, 0.22);
}

.prototype-frontend .event-card.is-expanded {
  align-items: start;
}

.prototype-frontend .event-card.is-active .date-tile {
  background: var(--proto-purple);
  color: #fffdf8;
}

.prototype-frontend .event-card.is-active .date-top,
.prototype-frontend .event-card.is-active .date-tile strong {
  color: #fffdf8;
}

.prototype-frontend .date-tile {
  display: grid;
  min-height: 94px;
  place-items: center;
  align-content: center;
  border-radius: var(--proto-radius-small);
  background: var(--proto-surface-cool);
  color: var(--proto-ink);
  padding: 12px 8px;
  text-align: center;
}

.prototype-frontend .date-top {
  display: block;
  color: var(--proto-muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.prototype-frontend .date-tile strong {
  display: block;
  margin-top: 4px;
  color: var(--proto-ink);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1;
}

.prototype-frontend .event-main {
  min-width: 0;
}

.prototype-frontend .event-main h3 {
  margin: 0 0 7px;
  color: var(--proto-ink-strong);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.16;
}

.prototype-frontend .event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: var(--proto-muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.prototype-frontend .event-details span {
  max-width: 100%;
}

.prototype-frontend .event-main p {
  max-width: 62ch;
  margin: 8px 0 0;
  color: #3f4b56;
  font-size: 0.94rem;
}

.prototype-frontend .event-cta {
  display: grid;
  gap: 10px;
  justify-items: end;
  position: relative;
}

.prototype-frontend .distance {
  color: var(--proto-green);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: right;
}

.prototype-frontend .event-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.prototype-frontend .event-action-menu {
  position: relative;
  justify-self: end;
}

.prototype-frontend .event-action-trigger {
  display: inline-grid;
  width: 42px;
  min-height: 42px;
  place-items: center;
  justify-self: end;
  border: 1px solid rgba(6, 50, 79, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--proto-ink);
  cursor: pointer;
  list-style: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.prototype-frontend .event-action-trigger::-webkit-details-marker {
  display: none;
}

.prototype-frontend .event-action-menu[open] .event-action-trigger,
.prototype-frontend .event-card.is-expanded .event-action-trigger,
.prototype-frontend .event-action-trigger:hover,
.prototype-frontend .event-action-trigger:focus {
  border-color: rgba(6, 50, 79, 0.3);
  background: #f9edcf;
  color: var(--proto-ink-strong);
}

.prototype-frontend .event-action-ellipsis {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: -8px 0 0 currentColor, 8px 0 0 currentColor;
}

.prototype-frontend .event-action-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 40px);
  gap: 8px;
  min-width: 224px;
  border: 1px solid rgba(6, 50, 79, 0.16);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 18px 38px rgba(6, 50, 79, 0.16);
  padding: 10px;
}

.prototype-frontend .event-icon-action,
.prototype-frontend .event-calendar-add {
  display: inline-grid;
  width: 40px;
  min-height: 40px;
  place-items: center;
  border: 1px solid rgba(6, 50, 79, 0.18);
  border-radius: 999px;
  background: #fffefa;
  color: var(--proto-ink);
  cursor: pointer;
  list-style: none;
  padding: 0;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.prototype-frontend .event-icon-action:hover,
.prototype-frontend .event-icon-action:focus,
.prototype-frontend .event-calendar-menu-card[open] .event-calendar-add,
.prototype-frontend .event-calendar-add:hover,
.prototype-frontend .event-calendar-add:focus {
  border-color: var(--proto-ink);
  background: var(--proto-ink);
  color: #fffdf8;
}

.prototype-frontend .event-icon-action.is-copied {
  border-color: rgba(28, 116, 86, 0.45);
  background: rgba(219, 241, 231, 0.96);
  color: var(--proto-green);
}

.prototype-frontend .event-icon-action-disabled,
.prototype-frontend .event-icon-action-disabled:hover,
.prototype-frontend .event-panel-button-disabled,
.prototype-frontend .event-panel-button-disabled:hover {
  border-color: #d6cdc0;
  background: rgba(255, 253, 248, 0.58);
  color: #8b8074;
  cursor: not-allowed;
}

.prototype-frontend .event-action-glyph {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: currentColor;
}

.prototype-frontend .event-action-glyph-info {
  border: 1.8px solid currentColor;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
}

.prototype-frontend .event-action-glyph-link::before,
.prototype-frontend .event-action-glyph-link::after {
  position: absolute;
  width: 10px;
  height: 7px;
  border: 1.8px solid currentColor;
  border-radius: 999px;
  content: "";
  transform: rotate(-35deg);
}

.prototype-frontend .event-action-glyph-link::before {
  left: 1px;
  top: 5px;
}

.prototype-frontend .event-action-glyph-link::after {
  right: 1px;
  top: 6px;
}

.prototype-frontend .event-action-glyph-copy::before,
.prototype-frontend .event-action-glyph-copy::after {
  position: absolute;
  width: 10px;
  height: 12px;
  border: 1.8px solid currentColor;
  border-radius: 4px;
  content: "";
}

.prototype-frontend .event-action-glyph-copy::before {
  left: 2px;
  top: 2px;
  opacity: 0.62;
}

.prototype-frontend .event-action-glyph-copy::after {
  right: 2px;
  bottom: 2px;
  background: currentColor;
  box-shadow: inset 0 0 0 8px #fffefa;
}

.prototype-frontend .event-icon-action:hover .event-action-glyph-copy::after,
.prototype-frontend .event-icon-action:focus .event-action-glyph-copy::after {
  box-shadow: inset 0 0 0 8px var(--proto-ink);
}

.prototype-frontend .event-action-glyph-plus {
  border: 1.8px solid currentColor;
  border-radius: 999px;
}

.prototype-frontend .event-action-glyph-plus::before,
.prototype-frontend .event-action-glyph-plus::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 9px;
  height: 1.8px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.prototype-frontend .event-action-glyph-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.prototype-frontend .event-action-glyph-share::before {
  position: absolute;
  left: 2px;
  top: 8px;
  width: 11px;
  height: 7px;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  border-radius: 0 8px 0 0;
  content: "";
  transform: rotate(-18deg);
}

.prototype-frontend .event-action-glyph-share::after {
  position: absolute;
  right: 2px;
  top: 4px;
  width: 7px;
  height: 7px;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.prototype-frontend .event-action-glyph-eye::before {
  position: absolute;
  inset: 4px 1px;
  border: 1.8px solid currentColor;
  border-radius: 999px 999px 999px 999px / 720px 720px 560px 560px;
  content: "";
}

.prototype-frontend .event-action-glyph-eye::after {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.prototype-frontend .event-action-glyph-calendar {
  border: 1.8px solid currentColor;
  border-radius: 2px;
  background: linear-gradient(currentColor, currentColor) 0 5px / 100% 1.8px no-repeat;
}

.prototype-frontend .event-action-glyph-calendar::before {
  position: absolute;
  left: 4px;
  top: -4px;
  width: 2px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 8px 0 0 currentColor;
  content: "";
}

.prototype-frontend .event-action-glyph-calendar::after {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: currentColor;
  content: "";
}

.prototype-frontend .event-copy-status {
  min-height: 16px;
  color: var(--proto-green);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1;
  text-align: left;
}

.prototype-frontend .event-copy-fallback {
  min-height: 86px;
  resize: vertical;
  border: 1px solid rgba(6, 50, 79, 0.16);
  border-radius: 12px;
  background: #fffefa;
  color: var(--proto-ink);
  font: 0.76rem ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.35;
  padding: 8px;
}

.prototype-frontend .event-info-panel {
  grid-column: 2 / -1;
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(6, 50, 79, 0.12);
  color: #3f4b56;
  cursor: default;
  padding: 14px 0 4px;
}

.prototype-frontend .event-info-panel[hidden] {
  display: none;
}

.prototype-frontend .event-info-source {
  margin: 0;
}

.prototype-frontend .event-info-description {
  margin: 0;
}

.prototype-frontend .event-info-source strong,
.prototype-frontend .event-info-source span {
  display: block;
}

.prototype-frontend .event-info-source strong {
  color: var(--proto-ink);
  font-size: 0.72rem;
  font-weight: 950;
}

.prototype-frontend .event-info-source span {
  color: var(--proto-muted);
  font-size: 0.88rem;
}

.prototype-frontend .event-info-description {
  max-width: 72ch;
  color: #3f4b56;
  font-size: 0.94rem;
}

.prototype-frontend .event-info-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.prototype-frontend .event-panel-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(6, 50, 79, 0.18);
  border-radius: 999px;
  background: #fffefa;
  color: var(--proto-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  list-style: none;
  padding: 0 12px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.prototype-frontend .event-panel-button:hover,
.prototype-frontend .event-panel-button:focus,
.prototype-frontend .event-share-menu[open] .event-panel-button,
.prototype-frontend .event-calendar-menu-inline[open] .event-panel-button {
  border-color: var(--proto-ink);
  background: var(--proto-ink);
  color: #fffdf8;
}

.prototype-frontend .event-share-menu,
.prototype-frontend .event-calendar-menu-inline {
  position: relative;
}

.prototype-frontend .event-share-menu summary::-webkit-details-marker,
.prototype-frontend .event-calendar-menu-inline summary::-webkit-details-marker {
  display: none;
}

.prototype-frontend .event-share-panel,
.prototype-frontend .event-calendar-menu-inline .event-calendar-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 45;
  display: grid;
  min-width: 180px;
  overflow: hidden;
  border: 1px solid rgba(6, 50, 79, 0.16);
  border-radius: var(--proto-radius-small);
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 18px 38px rgba(6, 50, 79, 0.16);
}

.prototype-frontend .event-share-panel a,
.prototype-frontend .event-share-panel button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(6, 50, 79, 0.12);
  background: #fffefa;
  color: var(--proto-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.1;
  padding: 10px 12px;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}

.prototype-frontend .event-share-panel a:last-child,
.prototype-frontend .event-share-panel button:last-child {
  border-bottom: 0;
}

.prototype-frontend .event-share-panel a:hover,
.prototype-frontend .event-share-panel a:focus,
.prototype-frontend .event-share-panel button:hover,
.prototype-frontend .event-share-panel button:focus {
  background: #f9edcf;
}

.prototype-frontend .event-calendar-menu-card {
  position: relative;
}

.prototype-frontend .event-calendar-add {
  position: relative;
}

.prototype-frontend .event-calendar-add::-webkit-details-marker {
  display: none;
}

.prototype-frontend .event-calendar-menu-card .event-calendar-panel {
  top: calc(100% + 8px);
  right: 0;
}

.prototype-frontend .map-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.prototype-frontend .map-shell {
  overflow: hidden;
  border: 2px solid var(--proto-ink);
  border-radius: var(--proto-radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 42px rgba(6, 50, 79, 0.2);
}

.prototype-frontend .events-map {
  min-height: 620px;
  border: 0;
  border-radius: 0;
  background: #eef3f4;
  box-shadow: none;
}

.prototype-frontend .map-note {
  margin: 0;
  color: var(--proto-muted);
  font-size: 0.88rem;
}

.prototype-frontend .map-purple .leaflet-tile {
  filter: grayscale(0.2) sepia(0.22) hue-rotate(152deg) saturate(1.08) brightness(1.02) contrast(1.04);
}

.prototype-frontend .event-marker-dot {
  background: var(--proto-gold);
  box-shadow: 0 4px 12px rgba(6, 50, 79, 0.34), 0 0 0 5px rgba(242, 176, 46, 0.22);
  transform: translate(var(--marker-offset-x, 0), var(--marker-offset-y, 0));
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.prototype-frontend .event-marker-dot-active {
  background: var(--proto-purple);
  box-shadow: 0 7px 18px rgba(73, 48, 142, 0.42), 0 0 0 7px rgba(115, 83, 198, 0.24), 0 0 24px rgba(115, 83, 198, 0.42);
  transform: translate(var(--marker-offset-x, 0), var(--marker-offset-y, 0)) scale(1.18);
}

.prototype-frontend .static-marker {
  width: 26px;
  height: 26px;
  max-width: none;
  transform: translate(calc(-13px + var(--marker-offset-x, 0px)), calc(-13px + var(--marker-offset-y, 0px)));
}

.prototype-frontend .static-marker-dot {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background: var(--proto-gold);
  box-shadow: 0 4px 12px rgba(6, 50, 79, 0.34), 0 0 0 5px rgba(242, 176, 46, 0.22);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.prototype-frontend .static-marker-active .static-marker-dot {
  background: var(--proto-purple);
  box-shadow: 0 7px 18px rgba(73, 48, 142, 0.42), 0 0 0 7px rgba(115, 83, 198, 0.24), 0 0 24px rgba(115, 83, 198, 0.42);
  transform: scale(1.18);
}

.prototype-frontend .map-popup-title,
.prototype-frontend .map-popup-source-link {
  color: var(--proto-ink);
}

.prototype-frontend .empty {
  margin-top: 12px;
  border: 1px dashed var(--proto-line-strong);
  border-radius: var(--proto-radius);
  background: rgba(255, 253, 248, 0.82);
  color: var(--proto-muted);
  padding: 28px;
  text-align: center;
}

.prototype-frontend .embed-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 22px;
}

.prototype-frontend .tool-details {
  border: 1px solid rgba(6, 50, 79, 0.13);
  border-radius: var(--proto-radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 24px rgba(6, 50, 79, 0.07);
  overflow: hidden;
}

.prototype-frontend .tool-details summary {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--proto-ink);
  cursor: pointer;
  font-weight: 950;
  list-style: none;
  padding: 0 16px;
}

.prototype-frontend .tool-details summary::-webkit-details-marker {
  display: none;
}

.prototype-frontend .tool-details summary span {
  color: var(--proto-muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.prototype-frontend .details-body {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(6, 50, 79, 0.12);
  padding: 16px;
}

.prototype-frontend .details-body p {
  margin: 0;
  color: var(--proto-muted);
}

.prototype-frontend .map-embed-code-label {
  margin: 0;
}

.prototype-frontend .map-embed-code {
  min-height: 104px;
  resize: vertical;
  border: 1px solid var(--proto-line);
  border-radius: var(--proto-radius-small);
  background: #fffefa;
  color: var(--proto-ink);
  font: 0.84rem ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.45;
  padding: 10px;
}

.prototype-frontend .embed-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.prototype-frontend .copy-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--proto-ink);
  border-radius: 999px;
  background: var(--proto-ink);
  color: #fffdf8;
  font-weight: 900;
  padding: 0 14px;
}

.prototype-frontend .copy-action:hover,
.prototype-frontend .copy-action:focus {
  background: var(--proto-ink-strong);
  color: #fffdf8;
}

.prototype-frontend .copy-icon::after {
  background: var(--proto-ink);
}

.prototype-frontend .copy-action:hover .copy-icon::after,
.prototype-frontend .copy-action:focus .copy-icon::after {
  background: var(--proto-ink-strong);
}

.prototype-frontend .copy-status {
  margin: 0;
  color: var(--proto-muted);
}

.prototype-frontend .subpage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 34px);
  align-items: end;
  padding: clamp(42px, 7vw, 86px) 0 24px;
}

.prototype-frontend .subpage-hero h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(2.65rem, 6vw, 5.25rem);
  line-height: 0.98;
}

.prototype-frontend .subpage-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--proto-muted);
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
}

.prototype-frontend .subpage-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.prototype-frontend .subpage-panel {
  margin-bottom: 54px;
}

.prototype-frontend .subpage-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.prototype-frontend .subpage-section-heading h2 {
  margin: 0 0 4px;
  color: var(--proto-ink);
  font-size: clamp(1.18rem, 2vw, 1.6rem);
  line-height: 1.08;
}

.prototype-frontend .subpage-section-heading p {
  margin: 0;
  color: var(--proto-muted);
}

.prototype-frontend .calendar-shell {
  display: grid;
  gap: 16px;
  margin-top: 0;
}

.prototype-frontend .calendar-embed-shell {
  min-height: min(680px, calc(100dvh - 180px));
  border: 1px solid rgba(6, 50, 79, 0.14);
  border-radius: var(--proto-radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--proto-shadow);
}

.prototype-frontend .calendar-frame {
  min-height: min(680px, calc(100dvh - 180px));
  background: #ffffff;
}

.prototype-frontend .embed-instructions {
  display: grid;
  gap: 12px;
  margin-top: 0;
  border: 1px solid rgba(6, 50, 79, 0.13);
  border-radius: var(--proto-radius);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 10px 24px rgba(6, 50, 79, 0.07);
  padding: 16px;
}

.prototype-frontend .embed-heading {
  margin-bottom: 0;
}

.prototype-frontend .embed-code {
  min-height: 118px;
  border: 1px solid var(--proto-line);
  border-radius: var(--proto-radius-small);
  background: #fffefa;
  color: var(--proto-ink);
}

.prototype-frontend .calendar-copy-status {
  min-height: 20px;
  margin: 0;
  color: var(--proto-muted);
  font-size: 0.9rem;
}

.prototype-frontend .data-hero {
  align-items: center;
}

.prototype-frontend .data-window-control {
  width: min(280px, 100%);
  min-width: min(280px, 100%);
  border: 1px solid rgba(6, 50, 79, 0.13);
  border-radius: var(--proto-radius-small);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 10px 24px rgba(6, 50, 79, 0.07);
  padding: 12px;
}

.prototype-frontend .data-section {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.prototype-frontend .snapshot-note {
  max-width: 920px;
  margin: 0 0 4px;
  color: var(--proto-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.prototype-frontend .snapshot-error {
  margin: 0;
  color: #9b1c31;
  font-size: 0.9rem;
}

.prototype-frontend .data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.prototype-frontend .data-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px;
  align-items: start;
  margin-top: 0;
}

.prototype-frontend .source-analysis-card {
  grid-column: 1 / -1;
}

.prototype-frontend .metric {
  border: 1px solid rgba(6, 50, 79, 0.13);
  border-radius: var(--proto-radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 24px rgba(6, 50, 79, 0.07);
  color: var(--proto-ink);
  padding: 16px;
}

.prototype-frontend .metric-label {
  display: block;
  margin-bottom: 6px;
  color: var(--proto-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: none;
}

.prototype-frontend .metric > strong {
  display: block;
  color: var(--proto-ink-strong);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.prototype-frontend .metric-hint,
.prototype-frontend .chart-caption {
  color: var(--proto-muted);
}

.prototype-frontend .breakdown {
  display: grid;
  gap: 10px;
}

.prototype-frontend .breakdown-row {
  color: var(--proto-muted);
}

.prototype-frontend .breakdown-row strong,
.prototype-frontend .pie-legend-item strong,
.prototype-frontend .vertical-bar-item strong {
  color: var(--proto-ink);
}

.prototype-frontend .breakdown-bar {
  background: rgba(6, 50, 79, 0.09);
}

.prototype-frontend .breakdown-bar span {
  background: linear-gradient(90deg, var(--proto-gold), var(--proto-green));
}

.prototype-frontend .pie-chart {
  box-shadow: inset 0 0 0 10px rgba(255, 253, 248, 0.74), 0 10px 24px rgba(6, 50, 79, 0.1);
}

.prototype-frontend .pie-swatch,
.prototype-frontend .vertical-bar-track,
.prototype-frontend .vertical-bar-track span {
  border-radius: 999px;
}

.prototype-frontend .vertical-bar-track {
  background: rgba(6, 50, 79, 0.08);
}

.prototype-frontend .vertical-bar-item {
  color: var(--proto-muted);
}

.prototype-frontend .data-export-panel {
  border: 1px solid rgba(6, 50, 79, 0.13);
  border-radius: var(--proto-radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 24px rgba(6, 50, 79, 0.07);
}

.prototype-frontend .data-export-panel strong {
  color: var(--proto-ink);
}

.prototype-frontend .data-export-panel p {
  color: var(--proto-muted);
}

.prototype-frontend .site-footer {
  display: block;
  border-top: 1px solid rgba(6, 50, 79, 0.14);
  background: rgba(255, 253, 248, 0.72);
  color: var(--proto-muted);
  padding: 22px 0;
}

.prototype-frontend .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.prototype-frontend .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.prototype-frontend .footer-links a {
  color: var(--proto-ink);
  font-weight: 850;
}

.prototype-frontend .rss-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.prototype-frontend .rss-icon {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  overflow: hidden;
}

.prototype-frontend .rss-icon::before,
.prototype-frontend .rss-icon::after {
  position: absolute;
  left: 0;
  bottom: 0;
  border: 2px solid currentColor;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 999px 0 0;
  content: "";
}

.prototype-frontend .rss-icon::before {
  width: 13px;
  height: 13px;
}

.prototype-frontend .rss-icon::after {
  width: 8px;
  height: 8px;
}

.prototype-frontend .rss-dot {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.prototype-frontend.embed-map-view {
  background: #ffffff;
}

.prototype-frontend.embed-map-view .topbar,
.prototype-frontend.embed-map-view .hero,
.prototype-frontend.embed-map-view .category-band,
.prototype-frontend.embed-map-view .event-list,
.prototype-frontend.embed-map-view .embed-panel,
.prototype-frontend.embed-map-view .site-footer,
.prototype-frontend.embed-map-view .map-note {
  display: none;
}

.prototype-frontend.embed-map-view main,
.prototype-frontend.embed-map-view .events-zone,
.prototype-frontend.embed-map-view .results-layout {
  display: block;
  width: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}

.prototype-frontend.embed-map-view .map-panel {
  position: static;
  min-height: 100dvh;
}

.prototype-frontend.embed-map-view .map-shell {
  min-height: 100dvh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.prototype-frontend.embed-map-view .events-map {
  min-height: calc(100dvh - 54px);
}

@media (prefers-reduced-motion: reduce) {
  .prototype-frontend *,
  .prototype-frontend *::before,
  .prototype-frontend *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .prototype-frontend .topbar-inner,
  .prototype-frontend .list-header,
  .prototype-frontend .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .prototype-frontend .nav-actions,
  .prototype-frontend .footer-links {
    justify-content: flex-start;
  }

  .prototype-frontend .hero,
  .prototype-frontend .results-layout,
  .prototype-frontend .category-panel,
  .prototype-frontend .embed-panel,
  .prototype-frontend .subpage-hero,
  .prototype-frontend .data-grid,
  .prototype-frontend .data-details-grid {
    grid-template-columns: 1fr;
  }

  .prototype-frontend .hero {
    min-height: auto;
  }

  .prototype-frontend .hero-visual,
  .prototype-frontend .photo-frame {
    min-height: 360px;
  }

  .prototype-frontend .photo-frame,
  .prototype-frontend .map-panel {
    position: relative;
    top: auto;
  }

  .prototype-frontend .events-map {
    min-height: 480px;
  }
}

@media (max-width: 720px) {
  .prototype-frontend .shell {
    width: min(100% - 24px, var(--proto-max));
  }

  .prototype-frontend .finder-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .prototype-frontend .finder-grid {
    grid-template-columns: 1fr;
  }

  .prototype-frontend .event-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .prototype-frontend .date-tile {
    min-height: 72px;
    justify-items: start;
    text-align: left;
  }

  .prototype-frontend .event-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
  }

  .prototype-frontend .distance {
    text-align: left;
  }

  .prototype-frontend .event-action-trigger {
    justify-self: end;
  }

  .prototype-frontend .event-info-panel {
    grid-column: 1;
  }

  .prototype-frontend .event-info-actions {
    align-items: stretch;
  }

  .prototype-frontend .event-actions,
  .prototype-frontend .hero-actions,
  .prototype-frontend .nav-actions,
  .prototype-frontend .subpage-hero-actions {
    width: 100%;
  }

  .prototype-frontend .button,
  .prototype-frontend .button-secondary,
  .prototype-frontend .copy-action {
    width: 100%;
  }

  .prototype-frontend .nav-actions .button,
  .prototype-frontend .nav-actions .button-secondary {
    width: auto;
    min-height: 38px;
    flex: 0 0 auto;
    padding-inline: 14px;
  }

  .prototype-frontend .brand-text small {
    display: none;
  }

  .prototype-frontend .subpage-hero {
    padding-top: 34px;
  }

  .prototype-frontend .subpage-section-heading,
  .prototype-frontend .data-export-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .prototype-frontend .calendar-embed-shell,
  .prototype-frontend .calendar-frame {
    min-height: 560px;
  }

  .prototype-frontend .warm-card {
    position: static;
    max-width: none;
    margin-top: 12px;
  }
}
