@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/Roboto-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/Roboto-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("../assets/fonts/RobotoMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cousine";
  src: url("../assets/fonts/Cousine-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Surgena";
  src: url("../assets/fonts/Surgena-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Desktop right-panel system — synced to the editable Figma frames. */
.panel-dismiss {
  display: none;
}

@media (min-width: 760px) {
  .panel-backdrop {
    left: var(--rail-width);
    background: rgba(18, 18, 17, 0.2);
    backdrop-filter: none;
  }

  .context-panel:not([data-view="welcome"]) {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(430px, calc(100vw - var(--rail-width)));
    height: 100dvh;
    max-height: none;
    padding: 0;
    overflow: hidden;
    transform: translateX(104%);
    border: 0;
    border-left: 1px solid var(--line-strong);
    border-radius: 36px 0 0 36px;
    background: var(--paper-bright);
    box-shadow: -18px 0 62px rgba(15, 15, 14, 0.22);
    transition: transform 260ms var(--ease);
  }

  .context-panel:not([data-view="welcome"]).is-open {
    transform: translateX(0);
  }

  .context-panel:not([data-view="welcome"]) .panel-handle {
    display: none;
  }

  .context-panel:not([data-view="welcome"]) .panel-content {
    width: 100%;
    height: 100%;
    min-height: 100%;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .context-panel:not([data-view="welcome"]) .panel-dismiss {
    position: absolute;
    z-index: 30;
    top: 39px;
    right: 22px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(44, 43, 40, 0.34);
    color: var(--paper-bright);
    font-size: 0;
    line-height: 0;
    transition: background-color 160ms ease, transform 160ms ease;
  }

  .context-panel:not([data-view="welcome"]) .panel-dismiss::before,
  .context-panel:not([data-view="welcome"]) .panel-dismiss::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 2.5px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
  }

  .context-panel:not([data-view="welcome"]) .panel-dismiss::after {
    transform: rotate(-45deg);
  }

  .context-panel:not([data-view="welcome"]) .panel-dismiss:hover {
    background: rgba(44, 43, 40, 0.48);
  }

  .context-panel:not([data-view="welcome"]) .panel-dismiss:active {
    transform: scale(0.96);
  }

  .context-panel:not([data-view="welcome"]) :is(.sheet-close, .panel-close),
  .context-panel:not([data-view="welcome"]) .figma-page-navigation {
    display: none;
  }

  .context-panel:is(
    [data-view="browse"],
    [data-view="edit"],
    [data-view="report"],
    [data-view="privacy"]
  ) .panel-content {
    padding: 88px 27px 40px;
  }

  .context-panel[data-view="location"] .location-sheet,
  .context-panel[data-view="contribute"] .contribution-view,
  .context-panel[data-view="detail"] .moment-detail {
    width: 100%;
    height: auto;
    min-height: 100%;
    padding: 88px 27px 40px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .context-panel[data-view="contribute"] .form-stack {
    padding-top: 18px;
  }

  .participant-view,
  .anchor-view,
  .contact-view,
  .menu-view {
    width: 100%;
    min-height: 100%;
    padding: 96px 27px 40px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .contact-copy {
    padding-top: 51px;
  }

  .about-view {
    width: 100%;
    min-height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .about-title {
    top: 147px;
    left: 27px;
    right: 18px;
    font-size: 46px;
    line-height: 46px;
  }

  .about-copy {
    top: 440px;
    right: 22px;
    left: 21px;
    width: auto;
  }
}

@media (max-width: 759px) {
  .site-shell.map-sheet-open .panel-backdrop {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .context-panel {
    transition: none !important;
  }
}

@font-face {
  font-family: "Surgena";
  src: url("../assets/fonts/Surgena-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Surgena";
  src: url("../assets/fonts/Surgena-SemiBold.otf") format("opentype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Surgena";
  src: url("../assets/fonts/Surgena-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Motive";
  src: url("../assets/fonts/Motive-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #deddd8;
  --paper-bright: #ecebe7;
  --paper-raised: #f6f5f1;
  --paper-deep: #cecdc7;
  --ink: #2c2b28;
  --ink-soft: #55534e;
  --ink-faint: #77746e;
  --line: rgba(44, 43, 40, 0.2);
  --line-strong: rgba(44, 43, 40, 0.42);
  --map: #242422;
  --map-deep: #191918;
  --connected: #f25f9f;
  --grounded: #f0c526;
  --distant: #36b8e3;
  --danger: #8c302d;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --panel-width: 410px;
  --rail-width: 246px;
  --radius: 20px;
  --font-body: Roboto, "Helvetica Neue", Helvetica, Arial, "PingFang SC", sans-serif;
  --font-display: "Surgena", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-desktop-ui: "Helvetica Neue", Helvetica, Arial, "PingFang SC", sans-serif;
  --font-mobile-ui: "Roboto", "Helvetica Neue", Helvetica, Arial, "PingFang SC", sans-serif;
  --font-map-mono: "Cousine", "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  --font-mobile-mono: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  --font-mono: var(--font-mobile-mono);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--map);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body::after {
  display: none;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--distant);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 200;
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--paper-bright);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Opening sequence: the line is Milan's municipal outline, not an abstract logo. */
.opening-intro {
  position: fixed;
  z-index: 1000;
  inset: 0;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: #242422;
  color: #ecebe7;
  opacity: 0;
  transition: opacity 480ms ease;
}

.opening-intro.is-running {
  opacity: 1;
}

.opening-intro.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.opening-intro::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0;
  background-image:
    linear-gradient(rgba(236, 235, 231, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 235, 231, 0.065) 1px, transparent 1px);
  background-size: 52px 52px;
}

.opening-intro.is-running::before {
  animation: intro-grid-in 900ms ease 180ms forwards;
}

.opening-intro__enter {
  position: absolute;
  z-index: 10;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.opening-intro__enter:focus-visible {
  outline: 1px solid rgba(236, 235, 231, 0.8);
  outline-offset: -8px;
}

.opening-intro__wordmark,
.opening-intro__legend {
  position: absolute;
  z-index: 2;
  margin: 0;
  opacity: 0;
  color: rgba(236, 235, 231, 0.9);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.075em;
  line-height: 1.4;
}

.opening-intro__wordmark {
  top: calc(25px + var(--safe-top));
  left: 22px;
}

.opening-intro.is-running .opening-intro__wordmark {
  animation: intro-copy-in 600ms ease 180ms forwards;
}

.opening-intro__map {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 49%;
  width: min(94vw, 620px);
  opacity: 0;
  transform: translate(-50%, -47%) scale(0.965);
}

.opening-intro.is-running .opening-intro__map {
  animation: intro-map-settle 920ms var(--ease) 260ms forwards;
}

.opening-intro__map svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.intro-contour {
  fill: none;
  stroke: rgba(236, 235, 231, 0.27);
  stroke-width: 0.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  transform: translate(var(--contour-x), var(--contour-y)) scale(var(--contour-scale));
}

.intro-contour--edge {
  stroke: rgba(255, 255, 252, 0.84);
  stroke-width: 1.15;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.12));
}

.opening-intro.is-running .intro-contour {
  animation: intro-contour-draw 2.25s var(--ease) calc(410ms + var(--contour-index) * 105ms) forwards;
}

.intro-marker {
  color: var(--connected);
}

.intro-marker--grounded {
  color: var(--grounded);
}

.intro-marker--distant {
  color: var(--distant);
}

.intro-marker__stem {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  vector-effect: non-scaling-stroke;
}

.intro-marker__point {
  fill: currentColor;
  opacity: 0;
  transform: scale(0.35);
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 7px currentColor);
}

.intro-marker__ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0;
  transform: scale(0.42);
  transform-box: fill-box;
  transform-origin: center;
  vector-effect: non-scaling-stroke;
}

.opening-intro.is-running .intro-marker__stem {
  animation: intro-stem-draw 520ms var(--ease) var(--marker-delay) forwards;
}

.opening-intro.is-running .intro-marker__point {
  animation:
    intro-point-in 420ms var(--ease) var(--marker-delay) forwards,
    intro-point-blink 760ms ease calc(var(--marker-delay) + 430ms) 1;
}

.opening-intro.is-running .intro-marker__ring {
  animation: intro-marker-pulse 920ms var(--ease) calc(var(--marker-delay) + 340ms) 1;
}

.opening-intro__legend {
  right: 22px;
  bottom: calc(25px + var(--safe-bottom));
  display: grid;
  gap: 5px;
  justify-items: end;
}

.opening-intro__legend span {
  display: grid;
  grid-template-columns: 7px auto;
  align-items: center;
  gap: 8px;
}

.opening-intro__legend i {
  width: 5px;
  height: 5px;
  display: block;
  border-radius: 50%;
  background: var(--legend-color);
  box-shadow: 0 0 7px var(--legend-color);
}

.opening-intro.is-running .opening-intro__legend {
  animation: intro-copy-in 620ms ease 2.75s forwards;
}

@keyframes intro-grid-in {
  to { opacity: 0.34; }
}

@keyframes intro-copy-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes intro-map-settle {
  from { opacity: 0; transform: translate(-50%, -45%) scale(0.965); }
  to { opacity: 1; transform: translate(-50%, -47%) scale(1); }
}

@keyframes intro-contour-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes intro-stem-draw {
  from { stroke-dashoffset: 140; opacity: 0; }
  to { stroke-dashoffset: 0; opacity: 0.78; }
}

@keyframes intro-point-in {
  from { opacity: 0; transform: scale(0.35); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes intro-point-blink {
  0%, 100% { opacity: 1; }
  48% { opacity: 0.42; }
}

@keyframes intro-marker-pulse {
  0% { opacity: 0.68; transform: scale(0.42); }
  100% { opacity: 0; transform: scale(2.25); }
}

.opening-intro.is-reduced,
.opening-intro.is-reduced::before,
.opening-intro.is-reduced .opening-intro__wordmark,
.opening-intro.is-reduced .opening-intro__map,
.opening-intro.is-reduced .opening-intro__legend,
.opening-intro.is-reduced .intro-marker__point {
  opacity: 1;
}

.opening-intro.is-reduced .opening-intro__map {
  transform: translate(-50%, -47%) scale(1);
}

.opening-intro.is-reduced .intro-contour,
.opening-intro.is-reduced .intro-marker__stem {
  stroke-dashoffset: 0;
}

.opening-intro.is-reduced .intro-marker__point,
.opening-intro.is-reduced .intro-marker__ring {
  transform: scale(1);
}

.opening-intro.is-reduced .intro-marker__ring {
  opacity: 0;
}

@media (min-width: 760px) {
  .opening-intro::before {
    background-size: 72px 72px;
  }

  .opening-intro__wordmark {
    top: 40px;
    left: 44px;
    font-size: 10px;
  }

  .opening-intro__map {
    top: 50%;
    width: min(63vw, 760px);
  }

  .opening-intro__legend {
    right: 44px;
    bottom: 38px;
    font-size: 10px;
  }
}

/* Final mobile alignment pass against Figma page 03 · Mobile Screens. */
.menu-view {
  min-height: 100%;
  padding: 28px;
}

.figma-menu-list {
  display: grid;
  gap: 18px;
  margin-top: 54px;
}

.figma-menu-list button {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  text-align: left;
}

.contact-view {
  position: relative;
  min-height: 100%;
}

.contact-copy {
  display: grid;
  gap: 18px;
  padding-top: 88px;
}

.contact-copy h1,
.contact-copy p {
  margin: 0;
}

.contact-email {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

@media (max-width: 759px) {
  .mobile-header {
    min-height: calc(76px + var(--safe-top));
    padding: 0;
  }

  .mobile-header .wordmark {
    position: absolute;
    top: calc(44px + var(--safe-top));
    left: 20px;
  }

  .mobile-header .menu-button {
    position: absolute;
    top: calc(48px + var(--safe-top));
    right: 32px;
  }

  .map-toolbar {
    top: calc(106px + var(--safe-top));
    left: 20px;
    right: 20px;
  }

  .filter-button {
    min-height: 32px;
    padding: 7px 12px;
  }

  .mobile-add-button {
    bottom: calc(62px + var(--safe-bottom));
    min-height: 40px;
  }

  .maplibregl-ctrl-top-right {
    top: auto;
    right: 20px;
    bottom: calc(122px + var(--safe-bottom));
  }

  .maplibregl-ctrl-group button {
    width: 44px !important;
    height: 46px !important;
  }

  .map-loading > span {
    top: 50%;
    left: 50%;
    margin: -5px 0 0 -5px;
  }

  .location-instruction {
    display: none !important;
  }

  .location-target {
    position: absolute;
    z-index: 8;
    top: 128px;
    left: 50%;
    width: 42px;
    height: 42px;
    transform: translateX(-50%);
    border: 2px solid var(--connected);
    border-radius: 50%;
    pointer-events: none;
  }

  .location-target span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--connected);
  }

  .site-shell.map-sheet-open .mobile-header,
  .site-shell.map-sheet-open .map-toolbar,
  .site-shell.map-sheet-open .mobile-add-button,
  .site-shell.map-sheet-open .maplibregl-ctrl-top-right {
    visibility: hidden;
    pointer-events: none;
  }

  .context-panel[data-view="welcome"],
  .context-panel[data-view="menu"],
  .context-panel[data-view="participant"],
  .context-panel[data-view="mine"],
  .context-panel[data-view="about"],
  .context-panel[data-view="contact"] {
    top: 0;
    bottom: 0;
    max-height: none;
    padding-bottom: 0;
    overflow: auto;
    transform: translateX(104%);
    border-radius: 36px;
  }

  .context-panel[data-view="welcome"].is-open,
  .context-panel[data-view="menu"].is-open,
  .context-panel[data-view="participant"].is-open,
  .context-panel[data-view="mine"].is-open,
  .context-panel[data-view="about"].is-open,
  .context-panel[data-view="contact"].is-open {
    transform: translateX(0);
  }

  .context-panel[data-view="contact"] .panel-handle {
    display: none;
  }

  .context-panel[data-view="contact"] .panel-content {
    min-height: 100%;
    padding: 0;
  }

  .context-panel[data-view="menu"] {
    background: var(--paper-bright);
  }

  .menu-view {
    position: relative;
    min-height: 100dvh;
    padding: 0;
    overflow: hidden;
    border-radius: 36px;
    background: var(--paper-bright);
  }

  .menu-wordmark {
    position: absolute;
    top: calc(46px + var(--safe-top));
    left: 18px;
    font-family: var(--font-display);
    font-size: 15px;
    line-height: normal;
  }

  .menu-close {
    position: absolute;
    z-index: 2;
    top: calc(36px + var(--safe-top));
    right: 39px;
  }

  .figma-menu-list {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
  }

  .figma-menu-list button {
    position: absolute;
    left: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 500;
    line-height: 44px;
    text-align: left;
  }

  .figma-menu-list button:nth-child(1) { top: 150px; left: 23px; }
  .figma-menu-list button:nth-child(2) { top: 252px; }
  .figma-menu-list button:nth-child(3) { top: 354px; }
  .figma-menu-list button:nth-child(4) { top: 456px; left: 15px; }

  .participant-view .figma-page-navigation {
    align-items: flex-start;
  }

  .participant-view .figma-page-navigation.is-menu-only {
    justify-content: flex-end;
    margin-right: 10px;
  }

  .participant-view h1 {
    margin-top: 13px;
  }

  .anchor-view .figma-page-navigation {
    right: 35px;
  }

  .about-view .figma-page-navigation,
  .contact-view .figma-page-navigation {
    right: 30px;
  }

  .context-panel[data-view="location"] {
    top: auto;
    bottom: max(14px, var(--safe-bottom));
    left: 11px;
    right: 11px;
    width: auto;
    height: min(286px, calc(100dvh - 28px));
    max-height: none;
    padding-bottom: 0;
    overflow: hidden;
    border-radius: 43px;
    background: var(--paper-bright);
  }

  .location-sheet {
    height: 100%;
    align-content: start;
    gap: 16px;
    padding: 28px 24px 18px;
  }

  .location-sheet .sheet-title-row h2 {
    max-width: 285px;
  }

  .location-sheet > p {
    margin: 0;
  }

  .location-sheet .privacy-measure {
    margin-top: -4px;
  }

  .location-sheet .secondary-button {
    width: 100%;
    margin-top: auto;
  }

  .context-panel[data-view="contribute"] {
    top: auto;
    bottom: max(14px, var(--safe-bottom));
    left: 11px;
    right: 11px;
    width: auto;
    height: min(615px, calc(100dvh - 28px));
    max-height: none;
    padding-bottom: 0;
    overflow: hidden;
    border-radius: 43px;
    background: var(--paper);
  }

  .contribution-view {
    height: 100%;
    padding: 37px 14px 18px 24px;
  }

  .contribution-view > .sheet-title-row {
    height: 38px;
    margin-left: -5px;
    padding-right: 10px;
  }

  .contribution-view .form-stack {
    position: relative;
    display: block;
    width: min(330px, 100%);
    padding-top: 20px;
  }

  .contribution-view .feeling-fieldset {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .contribution-view .feeling-fieldset > legend,
  .contribution-view .moment-field > label {
    padding: 0;
    font-family: Roboto, Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

  .contribution-view .feeling-options {
    gap: 4px;
    margin-top: 14px;
  }

  .contribution-view .feeling-option {
    width: 330px;
    max-width: 100%;
    min-height: 72px;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
    border-radius: 30px;
    background: var(--paper-bright);
  }

  .contribution-view .feeling-mark {
    width: 18px;
    height: 18px;
  }

  .contribution-view .feeling-option strong {
    line-height: 18px;
  }

  .contribution-view .feeling-option small {
    display: block;
    margin-top: 2px;
    line-height: 16px;
  }

  .contribution-view .moment-field {
    display: grid;
    gap: 8px;
    margin-top: 14px;
  }

  .contribution-view textarea {
    width: 330px;
    max-width: 100%;
    min-height: 104px;
    padding: 14px;
    border-radius: 35px;
    background: var(--paper-bright);
    font-size: 14px;
    line-height: 21px;
  }

  .contribution-view textarea::placeholder {
    color: var(--ink-faint);
    opacity: 1;
  }

  .contribution-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
  }

  .contribution-actions .photo-field {
    min-width: 0;
  }

  .contribution-view .upload-button {
    width: 180px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 30px;
    background: var(--paper-bright);
    font-size: 12px;
    font-weight: 400;
  }

  .contribution-view .submit-button {
    min-width: 65px;
    min-height: 40px;
    margin: 0;
    padding: 0 20px;
    box-shadow: none;
  }

  .contribution-actions .photo-preview {
    width: 180px;
    height: 40px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 3px 9px 3px 3px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--paper-bright);
  }

  .contribution-actions .photo-preview img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
  }

  .contribution-actions .photo-preview > div {
    min-width: 0;
    gap: 5px;
  }

  .contribution-actions .photo-preview > div span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .contribution-view .form-error:not([hidden]) {
    position: absolute;
    z-index: 3;
    left: 4px;
    right: 4px;
    bottom: 46px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 14px;
    background: var(--paper-bright);
  }

  .context-panel[data-view="detail"] {
    top: auto;
    bottom: max(15px, var(--safe-bottom));
    left: 11px;
    right: 10px;
    width: auto;
    height: min(403px, calc(100dvh - 30px));
    max-height: none;
    padding-bottom: 0;
    overflow: hidden;
    border-radius: 43px;
    background: var(--paper-bright);
  }

  .moment-detail {
    height: 100%;
    display: block;
    padding: 24px 11px 18px 16px;
  }

  .moment-detail .sheet-title-row {
    height: 38px;
    padding: 0 9px 0 8px;
  }

  .moment-detail .moment-text,
  .moment-detail .pending-copy {
    height: 73px;
    margin: 15px 12px 0;
    overflow: hidden;
  }

  .moment-detail .moment-photo,
  .moment-detail .moment-photo-placeholder {
    width: 342px;
    max-width: 100%;
    height: 112px;
    margin-top: 15px;
  }

  .moment-detail .pending-copy + .pending-copy {
    display: none;
  }

  .moment-detail .report-link {
    display: block;
    margin: 22px 0 0 8px;
    padding: 0;
    line-height: 14px;
  }

  .moment-detail .detail-add {
    min-height: 40px;
    display: flex;
    margin: 15px auto 0;
  }

  .anchor-view .my-list {
    padding-top: 66px;
  }

  .anchor-add {
    min-height: 40px;
    display: flex;
    margin: 70px auto 0;
    padding: 0 20px;
    border: 0;
    border-radius: 20px;
    font-size: 12px;
  }

  .anchor-view .empty-state + .anchor-add {
    margin-top: 24px;
  }

  .preferences-disclosure {
    margin: 48px 0 84px;
    color: var(--ink-soft);
    font-size: 12px;
  }

  .preferences-disclosure > summary {
    cursor: pointer;
  }

  .anchor-view .preferences-form {
    margin: 18px 0 0;
  }

  .contact-view {
    min-height: 100dvh;
    padding: calc(118px + var(--safe-top)) 21px calc(30px + var(--safe-bottom));
    overflow: hidden;
    border-radius: 36px;
    background: var(--paper-bright);
  }

  .contact-copy {
    position: absolute;
    left: 21px;
    right: 21px;
    bottom: calc(52px + var(--safe-bottom));
    gap: 20px;
    padding: 0;
  }

  .contact-copy h1 {
    font-family: var(--font-display);
    font-size: 34px;
    line-height: 38px;
  }

  .contact-copy p {
    max-width: 32ch;
    font-size: 16px;
    line-height: 25px;
  }

  .toast::before {
    background: var(--toast-accent, var(--connected));
  }
}

/* Map wayfinding: one quiet paper control, drawn to match the Figma language. */
.map-search-shell {
  position: absolute;
  z-index: 35;
  top: 28px;
  left: 28px;
  width: min(354px, calc(100% - 56px));
  color: var(--ink);
}

.map-search-form {
  height: 42px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-bright);
  box-shadow: 0 8px 24px rgba(15, 15, 14, 0.12);
}

.map-search-form input {
  min-width: 0;
  padding: 0 8px 0 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 42px;
}

.map-search-form input::-webkit-search-cancel-button {
  display: none;
}

.map-search-form input::placeholder {
  color: var(--ink-faint);
  opacity: 1;
}

.map-search-submit,
.map-locate-button {
  position: relative;
  min-width: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.map-search-submit:hover,
.map-locate-button:hover {
  background: rgba(44, 43, 40, 0.055);
}

.map-search-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  transform: translate(-57%, -57%);
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.map-search-symbol::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 1.5px;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
  background: currentColor;
}

.map-locate-button {
  border-left: 1px solid var(--line);
}

.map-locate-button::before,
.map-locate-button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.map-locate-button::before {
  width: 15px;
  height: 15px;
  border: 1.5px solid currentColor;
  box-shadow:
    0 -4px 0 -3px currentColor,
    0 4px 0 -3px currentColor,
    -4px 0 0 -3px currentColor,
    4px 0 0 -3px currentColor;
}

.map-locate-button::after {
  width: 4px;
  height: 4px;
  background: currentColor;
}

.map-locate-button.is-locating::before {
  animation: map-locate-pulse 850ms ease-in-out infinite alternate;
}

.map-search-results {
  max-height: min(340px, calc(100dvh - 180px));
  margin-top: 7px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--paper-bright);
  box-shadow: 0 16px 36px rgba(15, 15, 14, 0.2);
}

.map-search-message {
  min-height: 50px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 14px 16px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 18px;
}

.map-search-message.is-loading::after {
  width: 5px;
  height: 5px;
  margin-left: 8px;
  content: "";
  border-radius: 50%;
  background: var(--ink);
  animation: map-search-blink 700ms ease-in-out infinite alternate;
}

.map-search-result-list {
  display: grid;
}

.map-search-result-list button {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px 11px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.map-search-result-list button:hover,
.map-search-result-list button:focus-visible {
  background: rgba(44, 43, 40, 0.055);
}

.map-search-result-list strong,
.map-search-result-list small {
  display: block;
}

.map-search-result-list strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-search-result-list small {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-search-result-list em {
  max-width: 68px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
}

.map-search-attribution {
  margin: 0;
  padding: 7px 14px 8px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.03em;
}

.map-focus-marker {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid var(--paper-bright);
  border-radius: 50%;
  background: rgba(36, 36, 34, 0.7);
  box-shadow: 0 0 0 7px rgba(236, 235, 231, 0.13);
}

.map-focus-marker::before,
.map-focus-marker::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.map-focus-marker::before {
  width: 6px;
  height: 6px;
  background: var(--paper-bright);
}

.map-focus-marker::after {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(236, 235, 231, 0.3);
}

@keyframes map-locate-pulse {
  from { opacity: 0.35; transform: translate(-50%, -50%) scale(0.76); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes map-search-blink {
  from { opacity: 0.28; }
  to { opacity: 1; }
}

@media (min-width: 760px) {
  .map-toolbar {
    top: 82px;
  }
}

@media (max-width: 759px) {
  .map-search-shell {
    position: fixed;
    top: calc(82px + var(--safe-top));
    left: 20px;
    right: 20px;
    width: auto;
  }

  .map-toolbar {
    top: calc(132px + var(--safe-top));
  }

  .map-search-results {
    max-height: min(285px, calc(100dvh - 206px));
  }

  .site-shell.map-sheet-open .map-search-shell {
    visibility: hidden;
    pointer-events: none;
  }
}

@media (max-height: 640px) {
  .opening-intro__map {
    width: min(92vh, 560px);
  }
}

/* The second motion pass turns the municipal boundary into a rotating terrain. */
.opening-intro {
  transition-duration: 720ms;
}

.opening-intro__wordmark {
  width: min(250px, calc(100vw - 44px));
  display: grid;
  gap: 5px;
  overflow: visible;
}

.opening-intro__name {
  width: max-content;
  display: block;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

.opening-intro.is-running .opening-intro__name {
  animation:
    intro-name-scan 980ms steps(18, end) 180ms forwards,
    intro-text-flicker 3.6s steps(1, end) 1.3s infinite;
}

.opening-intro__status-rail {
  position: relative;
  width: 100%;
  height: 1.45em;
  display: block;
  color: rgba(236, 235, 231, 0.48);
  font-size: 8px;
  letter-spacing: 0.095em;
}

.opening-intro__status-rail > span {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
}

.opening-intro.is-running .opening-intro__status-rail > span {
  animation: intro-status-cycle 9.6s steps(1, end) calc(780ms + var(--status-delay)) infinite;
}

.opening-intro__map {
  top: 51%;
  width: min(88vw, 680px);
  aspect-ratio: 826 / 750;
  perspective: 950px;
  perspective-origin: 50% 43%;
}

.opening-intro__terrain {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: 50% 52%;
  will-change: transform;
}

.opening-intro.is-running .opening-intro__terrain {
  animation: intro-terrain-orbit 9.7s cubic-bezier(0.42, 0, 0.32, 1) 260ms both;
}

.intro-terrain__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  transform: translateZ(var(--terrain-z)) scale(var(--terrain-scale));
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
}

.intro-terrain__layer .intro-contour {
  fill: rgba(236, 235, 231, 0.012);
  stroke: rgba(236, 235, 231, 0.38);
  stroke-width: 0.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.64;
  vector-effect: non-scaling-stroke;
  transform: none;
}

.intro-terrain__layer--top .intro-contour {
  fill: rgba(236, 235, 231, 0.035);
  stroke: rgba(255, 255, 252, 0.96);
  stroke-width: 1.25;
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.opening-intro.is-running .intro-terrain__layer .intro-contour {
  animation:
    intro-contour-draw 2.45s var(--ease) calc(380ms + var(--terrain-level) * 70ms) forwards,
    intro-line-flicker 3.1s steps(1, end) calc(3s + var(--terrain-level) * 90ms) infinite;
}

.intro-marker {
  position: absolute;
  z-index: 4;
  width: 0;
  height: 0;
  display: block;
  color: var(--connected);
  transform: translate3d(-50%, -50%, var(--marker-z));
  transform-style: preserve-3d;
}

.intro-marker--grounded {
  color: var(--grounded);
}

.intro-marker--distant {
  color: var(--distant);
}

.intro-marker--connected {
  color: var(--connected);
}

.intro-marker__stem,
.intro-marker__point,
.intro-marker__ring {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
}

.intro-marker__stem {
  left: 0;
  bottom: 0;
  width: 1px;
  height: var(--marker-stem);
  border: 0;
  background: currentColor;
  opacity: 0;
  transform: rotateX(-90deg) scaleY(0);
  transform-origin: 50% 100%;
  box-shadow: 0 0 6px currentColor;
}

.intro-marker__point,
.intro-marker__ring {
  left: 0;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, var(--marker-stem)) rotateX(-63deg) scale(0.3);
  transform-origin: center;
}

.intro-marker__point {
  border: 0;
  background: currentColor;
  opacity: 0;
  box-shadow: 0 0 10px currentColor;
}

.intro-marker__ring {
  border: 1px solid currentColor;
  background: transparent;
  opacity: 0;
}

.opening-intro.is-running .intro-marker__stem {
  animation: intro-3d-stem-rise 640ms var(--ease) var(--marker-delay) forwards;
}

.opening-intro.is-running .intro-marker__point {
  animation:
    intro-3d-point-in 480ms var(--ease) var(--marker-delay) forwards,
    intro-point-signal 2.45s steps(1, end) calc(var(--marker-delay) + 520ms) infinite;
}

.opening-intro.is-running .intro-marker__ring {
  animation: intro-3d-marker-pulse 2.45s var(--ease) calc(var(--marker-delay) + 440ms) infinite;
}

.opening-intro.is-running .opening-intro__legend {
  animation: intro-copy-in 620ms ease 2.15s forwards;
}

.opening-intro__legend span {
  opacity: 0.58;
}

.opening-intro.is-running .opening-intro__legend span {
  animation: intro-legend-signal 3.1s steps(1, end) calc(2.5s + var(--legend-delay)) infinite;
}

@keyframes intro-name-scan {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); }
  8% { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}

@keyframes intro-text-flicker {
  0%, 44%, 48%, 100% { opacity: 1; }
  45%, 47% { opacity: 0.42; }
}

@keyframes intro-status-cycle {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); }
  4%, 21% { opacity: 1; clip-path: inset(0 0 0 0); }
  23% { opacity: 0.3; }
  25%, 100% { opacity: 0; clip-path: inset(0 0 0 0); }
}

@keyframes intro-terrain-orbit {
  0% { transform: rotateX(70deg) rotateY(-5deg) rotateZ(-28deg) scale(0.8); }
  24% { transform: rotateX(60deg) rotateY(4deg) rotateZ(-5deg) scale(0.88); }
  52% { transform: rotateX(67deg) rotateY(-4deg) rotateZ(23deg) scale(0.85); }
  78% { transform: rotateX(58deg) rotateY(5deg) rotateZ(48deg) scale(0.9); }
  100% { transform: rotateX(65deg) rotateY(-3deg) rotateZ(70deg) scale(0.84); }
}

@keyframes intro-line-flicker {
  0%, 46%, 50%, 100% { filter: brightness(1); }
  47% { filter: brightness(0.64); }
  49% { filter: brightness(1.45); }
}

@keyframes intro-3d-stem-rise {
  from { opacity: 0; transform: rotateX(-90deg) scaleY(0); }
  to { opacity: 0.82; transform: rotateX(-90deg) scaleY(1); }
}

@keyframes intro-3d-point-in {
  from { opacity: 0; transform: translate3d(-50%, -50%, var(--marker-stem)) rotateX(-63deg) scale(0.3); }
  to { opacity: 1; transform: translate3d(-50%, -50%, var(--marker-stem)) rotateX(-63deg) scale(1); }
}

@keyframes intro-point-signal {
  0%, 34%, 40%, 100% { filter: brightness(1) drop-shadow(0 0 2px currentColor); }
  36% { filter: brightness(0.55) drop-shadow(0 0 0 currentColor); }
  38% { filter: brightness(1.55) drop-shadow(0 0 7px currentColor); }
}

@keyframes intro-3d-marker-pulse {
  0%, 56% {
    opacity: 0;
    transform: translate3d(-50%, -50%, var(--marker-stem)) rotateX(-63deg) scale(0.45);
  }
  60% { opacity: 0.68; }
  88%, 100% {
    opacity: 0;
    transform: translate3d(-50%, -50%, var(--marker-stem)) rotateX(-63deg) scale(2.55);
  }
}

@keyframes intro-legend-signal {
  0%, 68%, 100% { opacity: 0.58; filter: brightness(0.84); transform: translateX(0); }
  72%, 82% { opacity: 1; filter: brightness(1.35); transform: translateX(-2px); }
}

.opening-intro.is-reduced .opening-intro__terrain {
  animation: none !important;
  transform: rotateX(62deg) rotateY(0) rotateZ(8deg) scale(0.86);
}

.opening-intro.is-reduced .intro-terrain__layer .intro-contour {
  animation: none !important;
  stroke-dashoffset: 0;
}

.opening-intro.is-reduced .opening-intro__name {
  animation: none !important;
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.opening-intro.is-reduced .opening-intro__status-rail > span {
  animation: none !important;
  opacity: 0;
}

.opening-intro.is-reduced .opening-intro__status-rail > span:first-child {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.opening-intro.is-reduced .intro-marker__stem {
  animation: none !important;
  opacity: 0.82;
  transform: rotateX(-90deg) scaleY(1);
}

.opening-intro.is-reduced .intro-marker__point {
  animation: none !important;
  opacity: 1;
  transform: translate3d(-50%, -50%, var(--marker-stem)) rotateX(-63deg) scale(1);
}

.opening-intro.is-reduced .intro-marker__ring {
  animation: none !important;
  opacity: 0;
}

@media (min-width: 760px) {
  .opening-intro__map {
    top: 51%;
    width: min(55vw, 760px);
    perspective: 1200px;
  }

  .opening-intro__status-rail {
    font-size: 9px;
  }
}

/* Keep these pixel-critical mobile values last so earlier legacy rules cannot win. */
@media (max-width: 759px) {
  .map-toolbar {
    top: calc(106px + var(--safe-top));
  }

  .filter-button {
    min-height: 32px;
    padding: 7px 12px;
  }

  .mobile-add-button {
    bottom: calc(62px + var(--safe-bottom));
  }

  .maplibregl-ctrl-top-right {
    top: auto;
    right: 20px;
    bottom: calc(122px + var(--safe-bottom));
  }

  .participant-view h1 {
    margin-top: 13px;
  }

  .context-panel[data-view="location"] {
    top: auto;
    bottom: max(14px, var(--safe-bottom));
    height: min(286px, calc(100dvh - 28px));
    max-height: none;
    padding-bottom: 0;
    overflow: hidden;
    border-radius: 43px;
  }

  .location-sheet {
    height: 100%;
    gap: 16px;
    padding: 28px 24px 18px;
  }

  .location-sheet > p {
    margin: 0;
  }

  .location-sheet .privacy-measure {
    margin-top: -4px;
  }

  .location-sheet .secondary-button {
    width: 100%;
    margin-top: auto;
  }

  .context-panel[data-view="contribute"] {
    top: auto;
    bottom: max(14px, var(--safe-bottom));
    height: min(615px, calc(100dvh - 28px));
    max-height: none;
    padding-bottom: 0;
    overflow: hidden;
    border-radius: 43px;
    background: var(--paper);
  }

  .contribution-view {
    height: 100%;
    padding: 37px 14px 18px 24px;
  }

  .contribution-view > .sheet-title-row {
    height: 38px;
    margin-left: -5px;
    padding-right: 10px;
  }

  .contribution-view .form-stack {
    position: relative;
    display: block;
    width: min(330px, 100%);
    padding-top: 20px;
  }

  .contribution-view .feeling-fieldset {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .contribution-view .feeling-fieldset > legend,
  .contribution-view .moment-field > label {
    padding: 0;
    font-family: Roboto, Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

  .contribution-view .feeling-options {
    gap: 4px;
    margin-top: 14px;
  }

  .contribution-view .feeling-option {
    width: 330px;
    max-width: 100%;
    min-height: 72px;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
    background: var(--paper-bright);
  }

  .contribution-view .feeling-mark {
    width: 18px;
    height: 18px;
  }

  .contribution-view .feeling-option strong {
    line-height: 18px;
  }

  .contribution-view .feeling-option small {
    display: block;
    margin-top: 2px;
    line-height: 16px;
  }

  .contribution-view .moment-field {
    display: grid;
    gap: 8px;
    margin-top: 14px;
  }

  .contribution-view textarea {
    width: 330px;
    max-width: 100%;
    min-height: 104px;
    padding: 14px;
    background: var(--paper-bright);
    font-size: 14px;
    line-height: 21px;
  }

  .contribution-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
  }

  .contribution-view .upload-button {
    width: 180px;
    min-height: 40px;
    padding: 0 12px;
    background: var(--paper-bright);
    font-size: 12px;
    font-weight: 400;
  }

  .contribution-view .submit-button {
    min-width: 65px;
    min-height: 40px;
    margin: 0;
    padding: 0 20px;
    box-shadow: none;
  }

  .context-panel[data-view="detail"] {
    top: auto;
    bottom: max(15px, var(--safe-bottom));
    height: min(403px, calc(100dvh - 30px));
    max-height: none;
    padding-bottom: 0;
    overflow: hidden;
    border-radius: 43px;
  }

  .moment-detail {
    height: 100%;
    display: block;
    padding: 24px 11px 18px 16px;
  }

  .moment-detail .sheet-title-row {
    height: 38px;
    padding: 0 9px 0 8px;
  }

  .moment-detail .moment-text,
  .moment-detail .pending-copy {
    height: 73px;
    margin: 15px 12px 0;
    overflow: hidden;
  }

  .moment-detail .moment-photo,
  .moment-detail .moment-photo-placeholder {
    width: 342px;
    max-width: 100%;
    height: 112px;
    margin-top: 15px;
  }

  .moment-detail .report-link {
    display: block;
    margin: 22px 0 0 8px;
    padding: 0;
    line-height: 14px;
  }

  .moment-detail .detail-add {
    min-height: 40px;
    display: flex;
    margin: 15px auto 0;
  }

  .toast::before {
    background: var(--toast-accent, var(--connected));
  }
}

@media (max-height: 640px) {
  .opening-intro__map {
    width: min(78vh, 540px);
  }
}

.app-root,
.site-shell {
  width: 100%;
  min-height: 100dvh;
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.mobile-header {
  position: fixed;
  z-index: 32;
  top: 0;
  left: 0;
  right: 0;
  min-height: calc(66px + var(--safe-top));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: calc(10px + var(--safe-top)) 14px 10px;
  pointer-events: none;
}

.wordmark,
.icon-button {
  pointer-events: auto;
}

.wordmark {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(236, 235, 231, 0.34);
  border-radius: var(--radius);
  background: rgba(35, 35, 33, 0.84);
  color: #ebeae5;
  text-align: left;
  backdrop-filter: blur(16px);
}

.wordmark > span {
  font-family: var(--font-display);
  font-size: 15px;
  font-stretch: condensed;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
}

.wordmark small {
  color: rgba(235, 234, 229, 0.6);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 1px solid rgba(236, 235, 231, 0.34);
  border-radius: var(--radius);
  background: rgba(35, 35, 33, 0.84);
  color: #ebeae5;
  backdrop-filter: blur(16px);
}

.menu-button span {
  width: 18px;
  height: 1px;
  background: currentColor;
}

.research-rail {
  display: none;
}

.map-workspace,
.map-stage,
.map-canvas {
  position: absolute;
  inset: 0;
}

.map-workspace {
  min-height: 100dvh;
  overflow: hidden;
  background: var(--map);
}

.map-stage {
  background:
    radial-gradient(circle at 52% 44%, rgba(255, 255, 255, 0.035), transparent 42%),
    var(--map-deep);
}

.map-stage::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.32);
}

.map-stage.is-picking::before {
  position: absolute;
  z-index: 4;
  inset: 0;
  content: "";
  pointer-events: none;
  border: 2px solid rgba(230, 201, 90, 0.64);
  box-shadow: inset 0 0 52px rgba(230, 201, 90, 0.09);
}

.map-stage.is-picking + .map-toolbar,
.site-shell:has(.map-stage.is-picking) .mobile-add-button {
  display: none;
}

.map-canvas {
  z-index: 1;
}

.map-loading,
.map-fallback {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  background: var(--map);
  color: rgba(236, 235, 231, 0.78);
}

.map-loading > span {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  animation: loading-orbit 1.8s var(--ease) infinite;
}

.map-loading > span:nth-child(2) {
  animation-delay: 0.24s;
}

.map-loading > span:nth-child(3) {
  animation-delay: 0.48s;
}

.map-loading p {
  margin: 90px 0 0;
  color: rgba(236, 235, 231, 0.52);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes loading-orbit {
  0% { opacity: 0; transform: scale(0.6); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: scale(5); }
}

.map-fallback {
  padding: 24px;
  text-align: center;
}

.fallback-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
}

.map-fallback h2,
.map-fallback p,
.map-fallback button {
  position: relative;
}

.map-fallback h2 {
  margin: 0;
  color: #ebeae5;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
}

.map-fallback p {
  max-width: 30ch;
  margin: 0;
  color: rgba(235, 234, 229, 0.6);
  line-height: 1.5;
}

.map-caption {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: calc(94px + var(--safe-bottom));
  display: grid;
  justify-items: end;
  gap: 3px;
  pointer-events: none;
  color: rgba(235, 234, 229, 0.52);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.location-instruction {
  position: absolute;
  z-index: 8;
  top: calc(76px + var(--safe-top));
  left: 50%;
  width: min(340px, calc(100vw - 28px));
  display: grid;
  gap: 5px;
  padding: 12px 44px 12px 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(230, 201, 90, 0.76);
  border-radius: var(--radius);
  background: rgba(34, 34, 32, 0.92);
  color: #efede7;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.location-instruction span {
  font-size: 13px;
  font-weight: 600;
}

.location-instruction small {
  color: rgba(239, 237, 231, 0.62);
  font-size: 11px;
  line-height: 1.35;
}

.location-instruction button {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: none;
  color: var(--grounded);
  font-size: 11px;
}

.map-toolbar {
  position: absolute;
  z-index: 12;
  left: 10px;
  right: 10px;
  bottom: calc(82px + var(--safe-bottom));
  pointer-events: none;
}

.filter-group {
  display: flex;
  gap: 5px;
  pointer-events: auto;
}

.filter-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border: 1px solid rgba(236, 235, 231, 0.26);
  border-radius: var(--radius);
  background: rgba(35, 35, 33, 0.8);
  color: rgba(235, 234, 229, 0.54);
  font-size: 11px;
  backdrop-filter: blur(16px);
  transition: border-color 180ms var(--ease), color 180ms var(--ease), opacity 180ms var(--ease);
}

.browse-button {
  min-width: 44px;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid rgba(236, 235, 231, 0.26);
  border-radius: var(--radius);
  background: rgba(35, 35, 33, 0.8);
  color: rgba(235, 234, 229, 0.78);
  font-size: 10px;
  backdrop-filter: blur(16px);
}

.filter-button.is-active {
  border-color: rgba(236, 235, 231, 0.54);
  color: #f0eee8;
}

.filter-button:not(.is-active) {
  opacity: 0.55;
}

.filter-symbol {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--feeling);
  color: #1c1c1a;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.add-button {
  display: none;
}

.mobile-add-button {
  position: fixed;
  z-index: 30;
  left: 12px;
  bottom: calc(14px + var(--safe-bottom));
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 6px 20px 6px 7px;
  border: 1px solid rgba(236, 235, 231, 0.72);
  border-radius: var(--radius);
  background: rgba(236, 235, 231, 0.94);
  color: #242421;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(14px);
}

.mobile-add-button > span:first-child,
.add-button > span:first-child {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2c2b28;
  color: var(--paper-bright);
  font-size: 22px;
  font-weight: 300;
}

.mobile-add-button:active,
.primary-button:active,
.secondary-button:active,
.add-button:active {
  transform: translateY(1px) scale(0.985);
}

.connection-banner {
  position: absolute;
  z-index: 18;
  left: 10px;
  right: 10px;
  top: calc(72px + var(--safe-top));
  padding: 10px 12px;
  border: 1px solid rgba(230, 201, 90, 0.62);
  background: rgba(36, 36, 34, 0.92);
  color: #eee9d9;
  font-size: 12px;
  text-align: center;
}

.panel-backdrop {
  position: fixed;
  z-index: 38;
  inset: 0;
  background: rgba(18, 18, 17, 0.32);
  backdrop-filter: blur(2px);
}

.context-panel {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(88dvh, 780px);
  padding-bottom: var(--safe-bottom);
  overflow: auto;
  overscroll-behavior: contain;
  transform: translateY(104%);
  border-top: 1px solid var(--line-strong);
  border-radius: 10px 10px 0 0;
  background: var(--paper);
  box-shadow: 0 -18px 62px rgba(15, 15, 14, 0.24);
  transition: transform 260ms var(--ease);
}

.context-panel.is-open {
  transform: translateY(0);
}

.context-panel[data-view="location"] {
  max-height: 250px;
}

.panel-handle {
  position: sticky;
  z-index: 2;
  top: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(var(--paper) 72%, transparent);
}

.panel-handle::after {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 38px;
  height: 3px;
  content: "";
  transform: translateX(-50%);
  border-radius: 4px;
  background: rgba(44, 43, 40, 0.28);
}

.panel-content {
  padding: 4px 18px 30px;
}

.panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 44px);
  font-stretch: condensed;
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.panel-kicker {
  margin: 0 0 8px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-close,
.admin-exit {
  min-height: 34px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
}

.panel-intro,
.welcome-lead,
.prose-lead {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.5;
}

.welcome-view {
  min-height: min(580px, 74dvh);
  display: grid;
  grid-template-rows: auto auto minmax(140px, 1fr) auto auto;
  gap: 18px;
}

.welcome-lead {
  max-width: 31ch;
  margin: 0;
}

.signal-study {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(rgba(44, 43, 40, 0.24) 0.55px, transparent 0.7px);
  background-size: 7px 7px;
}

.signal-study > span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 12px;
  height: 12px;
  border: 1px solid rgba(44, 43, 40, 0.55);
  border-radius: 50%;
  background: var(--signal);
}

.signal-study > span::after {
  position: absolute;
  inset: -1px;
  content: "";
  border: 1px solid var(--signal);
  border-radius: 50%;
  animation: signal-pulse 2.8s var(--ease) var(--delay) infinite;
}

@keyframes signal-pulse {
  from { opacity: 0.72; transform: scale(1); }
  to { opacity: 0; transform: scale(6.5); }
}

.signal-study i {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--line);
  transform-origin: left;
}

.signal-study i:nth-of-type(1) { top: 35%; transform: rotate(9deg); }
.signal-study i:nth-of-type(2) { top: 58%; transform: rotate(-5deg); }
.signal-study i:nth-of-type(3) { top: 75%; transform: rotate(3deg); }

.welcome-actions {
  display: grid;
  gap: 8px;
}

.primary-button,
.secondary-button,
.upload-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform 160ms var(--ease), background 160ms var(--ease);
}

.primary-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-bright);
}

.primary-button:hover {
  background: #191917;
}

.secondary-button,
.upload-button {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.secondary-button:hover,
.upload-button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.micro-copy,
.field-help,
.moderation-note,
.privacy-measure {
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.45;
}

.micro-copy {
  margin: 0;
  text-align: center;
}

.panel-nav {
  display: grid;
  padding: 10px 0 26px;
}

.panel-nav button {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 300;
  text-align: left;
}

.panel-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}

.panel-stat-row > div {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: var(--paper-bright);
}

.panel-stat-row strong {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 400;
}

.panel-stat-row span {
  color: var(--ink-faint);
  font-size: 11px;
}

.form-stack {
  display: grid;
  gap: 24px;
  padding-top: 22px;
}

.field-group {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-group > label,
.field-group > legend {
  padding: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.field-help {
  margin: -3px 0 2px;
}

input[type="text"],
input[type="email"],
input[type="password"],
.field-group > input:not([type="radio"]):not([type="checkbox"]),
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: 0;
  background: rgba(245, 244, 239, 0.52);
  color: var(--ink);
  font-size: 16px;
}

textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(114, 183, 214, 0.34);
}

.choice-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.choice-list label,
.check-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  line-height: 1.45;
}

.choice-list label {
  min-height: 48px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

input[type="radio"],
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}

.form-section,
.consent-block,
.preferences-form {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(236, 235, 231, 0.42);
}

.form-section h3,
.preferences-form h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
}

.check-row {
  font-size: 12px;
}

.privacy-summary {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.privacy-summary summary {
  width: max-content;
  cursor: pointer;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
}

.privacy-summary p {
  max-width: 46ch;
  margin: 12px 0;
}

.inline-link,
.text-button,
.my-item-actions button,
.moderation-actions button,
.admin-header-actions button,
.admin-tools button {
  width: max-content;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
}

.form-error,
.admin-error {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--danger);
  background: rgba(140, 48, 45, 0.08);
  color: #6f2422;
  font-size: 12px;
  line-height: 1.45;
}

.submit-button {
  position: sticky;
  bottom: calc(10px + var(--safe-bottom));
  z-index: 3;
  box-shadow: 0 12px 34px rgba(40, 39, 36, 0.2);
}

.compact-panel {
  display: grid;
  gap: 14px;
}

.compact-panel p {
  margin: 0;
  line-height: 1.45;
}

.location-summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  text-align: left;
}

.location-summary > span:first-child {
  display: grid;
  gap: 4px;
}

.location-summary small {
  color: var(--ink-faint);
  font-size: 11px;
}

.location-summary > span:last-child {
  border-bottom: 1px solid currentColor;
  color: var(--ink-soft);
  font-size: 11px;
}

.feeling-options {
  display: grid;
  gap: 8px;
}

.feeling-option {
  position: relative;
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px 12px 9px 8px;
  border: 1px solid var(--line);
  background: rgba(236, 235, 231, 0.26);
}

.feeling-option:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 3px 0 0 var(--feeling);
}

.feeling-option input {
  position: absolute;
  opacity: 0;
}

.feeling-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(44, 43, 40, 0.42);
  border-radius: 50%;
  background: var(--feeling);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.feeling-option > span:last-child {
  display: grid;
  gap: 3px;
}

.feeling-option strong {
  font-size: 13px;
}

.feeling-option small {
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.35;
}

.character-count {
  justify-self: end;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
}

.upload-button {
  width: 100%;
  cursor: pointer;
}

.photo-field > input[type="file"] {
  width: 100%;
  font-size: 12px;
}

.photo-preview {
  display: grid;
  gap: 8px;
}

.photo-preview img {
  width: 100%;
  max-height: 240px;
  display: block;
  object-fit: cover;
  filter: saturate(0.72) contrast(0.96);
}

.photo-preview > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-faint);
  font-size: 10px;
}

.photo-preview button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--danger);
}

.moderation-note {
  margin: -6px 0 0;
  padding: 12px;
  border-left: 2px solid var(--grounded);
  background: rgba(230, 201, 90, 0.08);
}

.moment-detail {
  display: grid;
  gap: 22px;
  padding-top: 24px;
}

.browse-list {
  display: grid;
  padding-top: 8px;
}

.browse-item {
  min-height: 78px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.browse-item > span:first-child {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--feeling);
  font-family: var(--font-mono);
  font-size: 9px;
}

.browse-item > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.browse-item strong {
  font-size: 12px;
}

.browse-item small {
  color: var(--ink-faint);
  font-size: 9px;
}

.browse-item em {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-signal {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.detail-signal > span {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--feeling);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.detail-signal i,
.detail-signal::before,
.detail-signal::after {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid var(--feeling);
  border-radius: 50%;
  opacity: 0;
  animation: detail-pulse 3.4s var(--ease) infinite;
}

.detail-signal::before { animation-delay: 0.7s; }
.detail-signal::after { animation-delay: 1.4s; }

@keyframes detail-pulse {
  0% { opacity: 0.62; transform: scale(0.7); }
  100% { opacity: 0; transform: scale(3.6); }
}

.moment-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(27px, 7vw, 40px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.pending-copy {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.moment-photo {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  filter: saturate(0.72) contrast(0.96);
}

.detail-meta,
.my-item-meta,
.moderation-state {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.detail-reflection {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.report-link {
  color: var(--ink-faint);
}

.prose-view {
  display: grid;
  gap: 18px;
  padding: 22px 0;
}

.prose-view p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.62;
}

.prose-view .prose-lead {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
}

.prose-view h3 {
  margin: 14px 0 -8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
}

.panel-skeleton {
  display: grid;
  gap: 12px;
  padding: 28px 0;
}

.panel-skeleton span {
  height: 94px;
  background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.52), rgba(255,255,255,0.2));
  background-size: 220% 100%;
  animation: skeleton 1.8s ease infinite;
}

@keyframes skeleton {
  from { background-position: 120% 0; }
  to { background-position: -100% 0; }
}

.my-list {
  display: grid;
  gap: 0;
  padding-top: 10px;
}

.my-item {
  display: grid;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.my-item-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.my-item-heading > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--feeling);
  font-family: var(--font-mono);
  font-size: 9px;
}

.my-item-heading > div {
  display: grid;
  gap: 2px;
}

.my-item-heading strong {
  font-size: 13px;
}

.my-item-heading small {
  color: var(--ink-faint);
  font-size: 10px;
}

.my-item > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.48;
}

.my-item-actions {
  display: flex;
  gap: 18px;
}

.my-item-actions button:last-child {
  color: var(--danger);
}

.preferences-form {
  margin-top: 26px;
}

.empty-state {
  display: grid;
  gap: 16px;
  padding: 42px 0;
  color: var(--ink-soft);
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: calc(86px + var(--safe-bottom));
  width: max-content;
  max-width: calc(100vw - 28px);
  padding: 12px 15px;
  transform: translate(-50%, 12px);
  border: 1px solid rgba(236, 235, 231, 0.38);
  border-radius: var(--radius);
  background: rgba(35, 35, 33, 0.94);
  color: #eeece6;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.25);
  opacity: 0;
  font-size: 12px;
  text-align: center;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast[data-tone="error"] {
  border-color: rgba(237, 143, 184, 0.64);
}

.admin-page {
  position: fixed;
  z-index: 70;
  inset: 0;
  overflow: auto;
  background: var(--paper);
}

.admin-login-wrap {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  padding: 24px;
}

.admin-exit {
  position: fixed;
  top: 18px;
  left: 18px;
}

.admin-login {
  width: min(420px, calc(100vw - 36px));
  display: grid;
  gap: 22px;
}

.admin-login h1,
.admin-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 9vw, 64px);
  font-weight: 300;
  letter-spacing: -0.045em;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 18px;
  border-bottom: 1px solid var(--line-strong);
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.admin-loading,
.admin-error {
  margin: 18px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line-strong);
}

.admin-metrics > div {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.admin-metrics strong {
  font-family: var(--font-mono);
  font-size: 31px;
  font-weight: 400;
}

.admin-metrics span {
  color: var(--ink-faint);
  font-size: 11px;
}

.admin-tools {
  display: grid;
  gap: 20px;
  padding: 22px 18px;
  border-bottom: 1px solid var(--line-strong);
}

.admin-tools h2,
.admin-queue h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
}

.admin-tools p {
  max-width: 58ch;
  margin: 7px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.45;
}

.admin-tools > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-queue {
  padding: 22px 18px 60px;
}

.admin-queue > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
}

.admin-queue > header span {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 10px;
}

.moderation-list {
  display: grid;
}

.moderation-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.moderation-marker {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--feeling);
  font-family: var(--font-mono);
  font-size: 9px;
}

.moderation-body {
  min-width: 0;
  display: grid;
  gap: 11px;
}

.moderation-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
}

.moderation-heading span {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
}

.moderation-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.moderation-body img {
  width: min(100%, 420px);
  max-height: 320px;
  object-fit: cover;
}

.moderation-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.moderation-actions .danger-action {
  color: var(--danger);
}

.admin-empty {
  padding: 40px 0;
  color: var(--ink-faint);
}

/* MapLibre controls are treated as instruments, not floating cards. */
.maplibregl-ctrl-top-right {
  top: calc(70px + var(--safe-top));
  right: 2px;
}

.maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid rgba(236, 235, 231, 0.28) !important;
  border-radius: var(--radius) !important;
  background: rgba(35, 35, 33, 0.82) !important;
  box-shadow: none !important;
  backdrop-filter: blur(14px);
}

.maplibregl-ctrl-group button {
  width: 42px !important;
  height: 42px !important;
  border-bottom-color: rgba(236, 235, 231, 0.18) !important;
}

.maplibregl-ctrl-icon {
  filter: invert(1) opacity(0.78);
}

.maplibregl-ctrl-attrib {
  max-width: 160px;
  background: rgba(35, 35, 33, 0.58) !important;
  color: rgba(235, 234, 229, 0.46) !important;
  font-size: 8px !important;
}

.maplibregl-ctrl-attrib a {
  color: inherit !important;
}

.maplibregl-canvas:focus-visible {
  outline: 2px solid var(--distant);
  outline-offset: -3px;
}

@media (min-width: 760px) {
  .mobile-header,
  .mobile-add-button {
    display: none;
  }

  .research-rail {
    position: fixed;
    z-index: 24;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-width);
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 34px;
    padding: 28px 24px 22px;
    border-right: 1px solid var(--line-strong);
    background: var(--paper);
  }

  .rail-wordmark {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    backdrop-filter: none;
  }

  .rail-wordmark > span {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -0.055em;
    line-height: 0.91;
  }

  .rail-wordmark small {
    margin-top: 10px;
    color: var(--ink-faint);
    font-size: 8px;
  }

  .rail-intro {
    max-width: 19ch;
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.5;
  }

  .rail-data {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
  }

  .rail-data > div {
    display: grid;
    gap: 4px;
    padding: 14px 7px 14px 0;
  }

  .rail-data > div + div {
    padding-left: 10px;
    border-left: 1px solid var(--line);
  }

  .rail-data strong {
    font-family: var(--font-mono);
    font-size: 19px;
    font-weight: 400;
  }

  .rail-data span,
  .rail-footer {
    color: var(--ink-faint);
    font-size: 9px;
    line-height: 1.4;
  }

  .rail-nav {
    align-self: start;
    display: grid;
  }

  .rail-nav button {
    min-height: 42px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink-soft);
    font-size: 11px;
    text-align: left;
  }

  .rail-nav button:hover,
  .rail-nav button.is-active {
    color: var(--ink);
    padding-left: 8px;
  }

  .rail-footer {
    display: grid;
    gap: 12px;
  }

  .rail-footer p {
    margin: 0;
  }

  .rail-footer button {
    width: max-content;
    padding: 0 0 2px;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: none;
    color: inherit;
    font-size: inherit;
  }

  .map-workspace {
    left: var(--rail-width);
  }

  .map-toolbar {
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
  }

  .filter-button {
    min-height: 42px;
    padding-right: 12px;
    font-size: 12px;
  }

  .browse-button {
    min-height: 42px;
  }

  .filter-symbol {
    width: 31px;
    height: 31px;
  }

  .add-button {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 18px 6px 7px;
    border: 1px solid rgba(236, 235, 231, 0.72);
    border-radius: var(--radius);
    background: rgba(236, 235, 231, 0.94);
    color: var(--ink);
    pointer-events: auto;
    font-size: 13px;
  }

  .map-caption {
    right: 18px;
    bottom: 88px;
  }

  .maplibregl-ctrl-top-right {
    top: 8px;
  }

  .context-panel {
    top: 0;
    left: auto;
    right: 0;
    bottom: 0;
    width: var(--panel-width);
    max-height: none;
    padding-bottom: 0;
    transform: translateX(104%);
    border-top: 0;
    border-left: 1px solid var(--line-strong);
    border-radius: 0;
    box-shadow: -18px 0 62px rgba(15, 15, 14, 0.22);
  }

  .context-panel.is-open {
    transform: translateX(0);
  }

  .context-panel[data-view="location"] {
    top: auto;
    right: 22px;
    bottom: 86px;
    width: 350px;
    max-height: 260px;
    border: 1px solid var(--line-strong);
    box-shadow: 0 18px 54px rgba(15, 15, 14, 0.24);
  }

  .context-panel[data-view="location"] .panel-handle {
    display: none;
  }

  .panel-handle {
    display: none;
  }

  .panel-content {
    padding: 28px 28px 42px;
  }

  .panel-header h2 {
    font-size: 44px;
  }

  .panel-backdrop {
    left: var(--rail-width);
  }

  .toast {
    bottom: 28px;
  }

  .connection-banner {
    top: 14px;
    left: 50%;
    right: auto;
    width: max-content;
    max-width: 500px;
    transform: translateX(-50%);
  }

  .admin-header,
  .admin-tools,
  .admin-queue {
    padding-left: 34px;
    padding-right: 34px;
  }

  .admin-metrics {
    grid-template-columns: repeat(5, 1fr);
  }

  .admin-metrics > div {
    min-height: 140px;
    padding: 24px 34px;
    border-bottom: 0;
  }

  .admin-tools {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .moderation-item {
    grid-template-columns: 48px minmax(0, 1fr) 190px;
    gap: 18px;
    padding: 22px 0;
  }

  .moderation-actions {
    grid-column: 3;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1180px) {
  :root {
    --rail-width: 276px;
    --panel-width: 430px;
  }

  .research-rail {
    padding: 34px 30px 26px;
  }

  .rail-wordmark > span {
    font-size: 37px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .wordmark,
  .icon-button,
  .filter-button,
  .location-instruction,
  .maplibregl-ctrl-group {
    background: #282826 !important;
    backdrop-filter: none;
  }

  .panel-backdrop {
    background: rgba(18, 18, 17, 0.58);
    backdrop-filter: none;
  }
}

/* Figma Mobile Screens / visual sync — August 2026 */
.mobile-header {
  min-height: calc(70px + var(--safe-top));
  align-items: center;
  padding: calc(22px + var(--safe-top)) 20px 8px;
}

.mobile-header .wordmark {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.mobile-header .wordmark > span {
  font-family: "Surgena", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: normal;
}

.mobile-header .icon-button,
.figma-menu {
  width: 32px;
  height: 22px;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--paper-bright);
  backdrop-filter: none;
}

.mobile-header .menu-button span,
.figma-menu span {
  width: 32px;
  height: 1px;
  display: block;
  background: currentColor;
}

.map-workspace,
.map-stage {
  background: var(--map);
}

.map-stage::after {
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.16);
}

.map-caption {
  z-index: 3;
  inset: 0;
  display: block;
  font-size: 8px;
  letter-spacing: 0.14em;
  pointer-events: none;
}

.map-caption span {
  position: absolute;
}

.map-caption span:first-child {
  top: 45.4%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.38;
}

.map-caption span:last-child {
  left: 24px;
  bottom: calc(30px + var(--safe-bottom));
  opacity: 0.24;
}

.map-toolbar {
  z-index: 33;
  top: calc(99px + var(--safe-top));
  bottom: auto;
  left: 20px;
  right: 18px;
}

.filter-group {
  gap: 7px;
}

.filter-button {
  min-height: 34px;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-bright);
  color: var(--ink);
  font-family: "Surgena", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  backdrop-filter: none;
}

.filter-button.is-active {
  border-color: var(--line);
  color: var(--ink);
}

.filter-button:not(.is-active) {
  opacity: 0.46;
}

.filter-symbol {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--feeling);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--feeling) 14%, transparent);
}

.browse-button {
  display: none;
}

.mobile-add-button {
  left: 50%;
  bottom: calc(55px + var(--safe-bottom));
  min-height: 40px;
  gap: 0;
  padding: 0 20px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  background: var(--paper-bright);
  color: var(--ink);
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
}

.mobile-add-button > span:first-child {
  display: none;
}

.mobile-add-button:active {
  transform: translateX(-50%) translateY(1px) scale(0.985);
}

.maplibregl-ctrl-top-right {
  top: calc(139px + var(--safe-top));
  right: 12px;
}

.maplibregl-ctrl-group {
  border: 0 !important;
  border-radius: 20px !important;
  background: var(--paper-bright) !important;
  backdrop-filter: none;
}

.maplibregl-ctrl-group button {
  width: 44px !important;
  height: 46px !important;
  border-bottom-color: rgba(44, 43, 40, 0.08) !important;
}

.maplibregl-ctrl-icon {
  filter: none;
  opacity: 0.92;
}

.panel-backdrop {
  background: rgba(18, 18, 17, 0.2);
  backdrop-filter: none;
}

.context-panel {
  border-top: 0;
  background: var(--paper);
}

.context-panel[data-view="welcome"],
.context-panel[data-view="menu"],
.context-panel[data-view="participant"],
.context-panel[data-view="mine"],
.context-panel[data-view="about"],
.context-panel[data-view="privacy"] {
  top: 0;
  bottom: 0;
  max-height: none;
  padding-bottom: 0;
  overflow: auto;
  transform: translateX(104%);
  border-radius: 36px;
}

.context-panel[data-view="welcome"].is-open,
.context-panel[data-view="menu"].is-open,
.context-panel[data-view="participant"].is-open,
.context-panel[data-view="mine"].is-open,
.context-panel[data-view="about"].is-open,
.context-panel[data-view="privacy"].is-open {
  transform: translateX(0);
}

.context-panel[data-view="welcome"] .panel-handle,
.context-panel[data-view="menu"] .panel-handle,
.context-panel[data-view="participant"] .panel-handle,
.context-panel[data-view="mine"] .panel-handle,
.context-panel[data-view="about"] .panel-handle,
.context-panel[data-view="privacy"] .panel-handle {
  display: none;
}

.context-panel[data-view="welcome"] .panel-content,
.context-panel[data-view="menu"] .panel-content,
.context-panel[data-view="participant"] .panel-content,
.context-panel[data-view="mine"] .panel-content,
.context-panel[data-view="about"] .panel-content {
  min-height: 100%;
  padding: 0;
}

.figma-page-navigation {
  position: absolute;
  z-index: 6;
  top: calc(39px + var(--safe-top));
  left: 19px;
  right: 26px;
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.figma-page-label {
  font-family: "Surgena", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
}

.figma-menu {
  color: var(--ink);
}

.figma-back {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 25px;
  font-weight: 300;
}

.welcome-view {
  position: relative;
  min-height: 100dvh;
  display: block;
  overflow: hidden;
  background: var(--paper);
  border-radius: 36px;
}

/* Reveal the Figma welcome frame as the opening animation clears. */
.welcome-view .figma-page-navigation,
.welcome-view .welcome-italy,
.welcome-view .welcome-title,
.welcome-view .welcome-actions {
  transition:
    opacity 620ms ease,
    transform 760ms var(--ease);
}

body.opening-intro-active .welcome-view .figma-page-navigation,
body.opening-intro-active .welcome-view .welcome-title,
body.opening-intro-active .welcome-view .welcome-actions {
  opacity: 0;
  transform: translateY(10px);
}

body.opening-intro-active .welcome-view .welcome-italy {
  opacity: 0;
  transform: scale(1.015);
}

.welcome-italy {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.welcome-italy-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.welcome-italy-svg path {
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 0.85px;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.68;
  vector-effect: non-scaling-stroke;
}

.welcome-milan-marker-ring {
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 1px;
  opacity: 0.8;
}

.welcome-milan-marker {
  fill: var(--ink-faint);
  opacity: 0.9;
}

.welcome-italy > img:not(.welcome-milan-ring):not(.welcome-milan-dot) {
  position: absolute;
  width: auto;
  height: auto;
}

.welcome-milan-ring,
.welcome-milan-dot {
  position: absolute;
}

.welcome-milan-ring {
  inset: 25.12% 83.59% 73.22% 12.56%;
}

.welcome-milan-dot {
  inset: 25.71% 84.87% 73.7% 13.85%;
}

.welcome-title {
  position: absolute;
  z-index: 2;
  top: 43.84%;
  left: -1.28%;
  right: -1.03%;
  display: grid;
  margin: 0;
  color: var(--ink);
  font-family: "Motive", sans-serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 38px;
  text-align: center;
}

.welcome-actions {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: calc(70px + var(--safe-bottom));
  display: grid;
  justify-items: center;
  gap: 10px;
}

.welcome-actions .primary-button {
  min-height: 36px;
  padding: 0 20px;
  border: 0;
  border-radius: 20px;
  background: var(--map);
  color: var(--paper-bright);
  font-size: 12px;
  font-weight: 500;
}

.welcome-explore {
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid rgba(44, 43, 40, 0.4);
  background: transparent;
  color: var(--ink-soft);
  font-size: 10px;
}

.participant-view,
.anchor-view,
.about-view {
  position: relative;
  min-height: 100dvh;
  padding: calc(118px + var(--safe-top)) 24px calc(30px + var(--safe-bottom));
  background: var(--paper);
  border-radius: 36px;
}

.participant-view {
  padding: 0 24px calc(30px + var(--safe-bottom));
}

.participant-view .figma-page-navigation {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  z-index: 20;
  min-height: calc(82px + var(--safe-top));
  padding-top: calc(36px + var(--safe-top));
  background: var(--paper);
}

.participant-view h1,
.anchor-title {
  margin: 0;
  color: var(--ink);
  font-family: "Surgena", sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 36px;
}

.participant-view h1 {
  margin-top: 16px;
}

.participant-view .panel-intro {
  max-width: 31ch;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 17px;
}

.figma-form {
  gap: 28px;
  padding-top: 36px;
}

.figma-form .field-group,
.figma-form .consent-block {
  gap: 8px;
}

.figma-form .field-group > label,
.figma-form .field-group > legend,
.figma-form .form-section h3 {
  font-family: Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.figma-form .field-help {
  margin: 0;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 16px;
}

.figma-form input[type="text"],
.figma-form input[type="email"],
.figma-form .field-group > input:not([type="radio"]):not([type="checkbox"]),
.figma-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  outline: none;
  background: var(--paper-bright);
  color: var(--ink);
  font-size: 13px;
}

.figma-form .form-section,
.figma-form .consent-block {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.figma-form .check-row {
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  font-size: 12px;
  line-height: 18px;
}

.figma-form .privacy-summary {
  margin-left: 32px;
  font-size: 12px;
}

.figma-form .outcome-field {
  gap: 8px;
}

.figma-form .outcome-check {
  margin-top: 8px;
}

.figma-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

.figma-form .submit-button {
  width: 186px;
  min-height: 40px;
  margin-top: 32px;
  justify-self: center;
  border: 0;
  border-radius: 20px;
  font-size: 12px;
}

.context-panel[data-view="contribute"],
.context-panel[data-view="detail"] {
  left: 11px;
  right: 11px;
  width: auto;
  padding-bottom: var(--safe-bottom);
  border-radius: 43px 43px 36px 36px;
  background: var(--paper-bright);
  box-shadow: 0 -8px 32px rgba(15, 15, 14, 0.24);
}

.context-panel[data-view="location"] {
  left: 11px;
  right: 11px;
  width: auto;
  max-height: min(300px, 38dvh);
  padding-bottom: var(--safe-bottom);
  border: 0;
  border-radius: 43px 43px 36px 36px;
  background: var(--paper-bright);
  box-shadow: 0 -8px 32px rgba(15, 15, 14, 0.24);
}

.context-panel[data-view="location"] .panel-handle {
  display: none;
}

.context-panel[data-view="location"] .panel-content {
  padding: 0;
}

.location-sheet {
  gap: 14px;
  padding: 24px 18px 18px;
}

.location-sheet > p {
  font-size: 14px;
  line-height: 21px;
}

.location-sheet .privacy-measure {
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 14px;
}

.location-sheet .secondary-button {
  min-height: 40px;
  border-radius: 20px;
  font-size: 12px;
}

.context-panel[data-view="contribute"] {
  max-height: min(73dvh, 615px);
}

.context-panel[data-view="detail"] {
  max-height: min(52dvh, 430px);
}

.context-panel[data-view="contribute"] .panel-handle,
.context-panel[data-view="detail"] .panel-handle {
  display: none;
}

.context-panel[data-view="contribute"] .panel-content,
.context-panel[data-view="detail"] .panel-content {
  padding: 0;
}

.contribution-view {
  padding: 24px 13px 18px;
}

.sheet-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.sheet-title-row h2 {
  margin: 0;
  font-family: "Surgena", sans-serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 38px;
}

.sheet-title-row p {
  margin: 0 0 2px;
  color: var(--ink-faint);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sheet-close {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(44, 43, 40, 0.34);
  color: var(--paper-bright);
  font-size: 0;
  line-height: 0;
}

.sheet-close::before,
.sheet-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 3px;
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 999px;
  background: currentColor;
}

.sheet-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.sheet-close.menu-close {
  position: absolute;
}

.contribution-view .form-stack {
  gap: 14px;
  padding-top: 14px;
}

.contribution-view .location-summary {
  min-height: 36px;
  padding: 0 6px;
  border: 0;
  font-size: 11px;
}

.contribution-view .feeling-fieldset {
  gap: 7px;
}

.contribution-view .feeling-fieldset > legend {
  font-family: "Surgena", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.contribution-view .feeling-fieldset > .field-help {
  display: none;
}

.contribution-view .feeling-options {
  gap: 6px;
}

.contribution-view .feeling-option {
  min-height: 72px;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: transparent;
}

.contribution-view .feeling-option:has(input:checked) {
  border-color: rgba(44, 43, 40, 0.24);
  background: var(--feeling);
  box-shadow: none;
}

.contribution-view .feeling-mark {
  width: 21px;
  height: 21px;
  border: 0;
  background: var(--feeling);
  color: transparent;
  font-size: 0;
}

.contribution-view .feeling-option:has(input:checked) .feeling-mark {
  background: var(--paper-bright);
}

.contribution-view .feeling-option strong {
  font-family: "Surgena", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
}

.contribution-view .feeling-option small {
  color: var(--ink-soft);
  font-size: 11px;
}

.contribution-view .field-group > label {
  font-family: "Surgena", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.contribution-view .field-group > .field-help {
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 12px;
}

.contribution-view textarea {
  min-height: 104px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 35px;
  background: rgba(222, 221, 216, 0.5);
  font-size: 13px;
  resize: none;
}

.contribution-view .photo-field {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.contribution-view .photo-field > label:first-child {
  grid-column: 1;
}

.contribution-view .photo-field > .field-help {
  grid-column: 1;
}

.contribution-view .upload-button {
  grid-column: 2;
  grid-row: 1 / 3;
  width: auto;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 11px;
}

.contribution-view .moderation-note {
  margin: 0;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 12px;
}

.contribution-view .submit-button {
  min-height: 40px;
  justify-self: center;
  padding: 0 20px;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 -10px 20px var(--paper-bright);
  font-size: 12px;
}

.moment-detail {
  gap: 14px;
  padding: 24px 13px 18px;
}

.moment-detail .moment-text {
  margin: 0 4px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 24px;
}

.moment-photo,
.moment-photo-placeholder {
  width: 100%;
  height: 112px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--map);
  object-fit: cover;
}

.moment-photo-placeholder {
  position: relative;
}

.moment-photo-placeholder span {
  position: absolute;
  left: 14px;
  bottom: 13px;
  color: var(--paper-bright);
  font-family: var(--font-mono);
  font-size: 8px;
}

.moment-detail .report-link {
  margin-left: 4px;
  font-size: 10px;
}

.detail-add {
  min-height: 40px;
  justify-self: center;
  padding: 0 20px;
  border: 0;
  border-radius: 20px;
  font-size: 12px;
}

.anchor-view {
  padding-left: 26px;
  padding-right: 22px;
}

.anchor-title {
  margin-top: 4px;
  line-height: 38px;
}

.anchor-view .my-list {
  gap: 16px;
  padding-top: 66px;
}

.anchor-view .my-item {
  position: relative;
  min-height: 142px;
  gap: 7px;
  padding: 17px 13px 14px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: var(--paper-bright);
}

.anchor-view .my-item-heading {
  gap: 9px;
}

.anchor-view .my-item-heading > span {
  width: 21px;
  height: 21px;
  background: var(--feeling);
}

.anchor-view .my-item-heading strong {
  font-family: "Surgena", sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.my-item-location {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 12px;
  text-transform: uppercase;
}

.anchor-view .my-item > p {
  margin: 0;
  font-size: 13px;
  line-height: 19px;
}

.anchor-view .my-item-actions {
  position: absolute;
  right: 16px;
  bottom: 13px;
  gap: 14px;
}

.anchor-view .my-item-actions button,
.anchor-view .my-item-actions button:last-child {
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.anchor-view .preferences-form {
  margin: 26px 0 84px;
  border-radius: 24px;
}

.about-view {
  background: var(--paper-bright);
}

.about-title {
  position: absolute;
  top: 181px;
  left: 27px;
  right: 18px;
  display: grid;
  margin: 0;
  color: #000;
  font-family: Roboto, Arial, sans-serif;
  font-size: 46px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 46px;
}

.about-copy {
  position: absolute;
  left: 21px;
  right: 21px;
  top: max(64.2dvh, 500px);
  padding-bottom: 26px;
  background: linear-gradient(to bottom, #111 0%, #111 14%, #e0dede 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 25px;
}

.about-copy p {
  margin: 0 0 26px;
}

.toast {
  bottom: calc(127px + var(--safe-bottom));
  width: min(342px, calc(100vw - 38px));
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 16px 0 26px;
  border: 0;
  border-radius: 20px;
  background: var(--paper-bright);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.toast::before {
  width: 10px;
  height: 10px;
  margin-left: -10px;
  content: "";
  border-radius: 50%;
  background: var(--connected);
}

@media (max-height: 720px) {
  .participant-view {
    padding-top: 0;
  }

  .figma-form {
    gap: 12px;
  }

  .context-panel[data-view="contribute"] {
    max-height: 78dvh;
  }

  .contribution-view .feeling-option {
    min-height: 62px;
  }

  .about-copy {
    top: 58dvh;
  }
}

@media (min-width: 760px) {
  .research-rail {
    background: var(--paper);
  }

  .rail-wordmark > span,
  .panel-header h2 {
    font-family: "Surgena", sans-serif;
  }

  .map-workspace {
    border-radius: 36px 0 0 36px;
    overflow: hidden;
  }

  .map-toolbar {
    top: 28px;
    left: 28px;
  }

  .browse-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--paper-bright);
    color: var(--ink);
  }

  .add-button {
    border: 0;
    border-radius: 999px;
    box-shadow: none;
  }

  .add-button > span:first-child {
    display: none;
  }

  .maplibregl-ctrl-top-right {
    top: 28px;
    right: 28px;
  }

  .context-panel[data-view="welcome"],
  .context-panel[data-view="menu"],
  .context-panel[data-view="participant"],
  .context-panel[data-view="mine"],
  .context-panel[data-view="about"],
  .context-panel[data-view="privacy"] {
    width: min(430px, 40vw);
    border-radius: 36px 0 0 36px;
  }

  .context-panel[data-view="contribute"],
  .context-panel[data-view="detail"] {
    top: auto;
    left: auto;
    right: 20px;
    bottom: 20px;
    width: 410px;
    max-height: min(78dvh, 680px);
    border-radius: 43px;
  }

  .context-panel[data-view="location"] {
    top: auto;
    left: auto;
    right: 20px;
    bottom: 20px;
    width: 390px;
    max-height: 320px;
    border-radius: 43px;
  }

  .welcome-title {
    font-size: 40px;
  }

  .about-copy {
    top: max(60dvh, 440px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-view .figma-page-navigation,
  .welcome-view .welcome-italy,
  .welcome-view .welcome-title,
  .welcome-view .welcome-actions,
  .welcome-italy,
  .welcome-title,
  .about-copy {
    transition: none !important;
    transform: none !important;
  }
}

/* Opening frame and timing are synced to Mobile / 00 start. */
.opening-intro {
  border-radius: 36px;
}

.opening-intro::before {
  opacity: 0;
  background-image:
    linear-gradient(rgba(236, 235, 231, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 235, 231, 0.08) 1px, transparent 1px);
  background-position: 70px -17px;
  background-size: 98px 186px;
}

.opening-intro.is-running::before {
  animation: figma-intro-grid 4.2s linear infinite;
}

.opening-intro__wordmark {
  top: calc(38px + var(--safe-top));
  left: 27px;
  width: auto;
  gap: 0;
  font-family: var(--font-mono);
}

.opening-intro__name {
  opacity: 0;
  clip-path: none;
}

.opening-intro.is-running .opening-intro__name {
  animation: figma-intro-wordmark 4.2s linear infinite;
}

.opening-intro__status-rail {
  display: none;
}

.opening-intro__map {
  top: 28.08%;
  left: 7.95%;
  width: 82.05%;
  max-width: none;
  aspect-ratio: 320 / 291;
  opacity: 1;
  perspective: none;
  transform: none;
}

.opening-intro.is-running .opening-intro__map {
  animation: none;
}

.opening-intro__terrain {
  transform: none;
  transform-style: flat;
}

.opening-intro.is-running .opening-intro__terrain {
  animation: figma-intro-contours 4.2s linear infinite;
}

.intro-terrain__layer {
  transform: scale(var(--terrain-scale));
  transform-origin: 50% 47%;
  transform-style: flat;
}

.intro-terrain__layer .intro-contour,
.intro-terrain__layer--top .intro-contour {
  fill: transparent;
  stroke: rgba(247, 245, 239, 0.42);
  stroke-width: 1;
  opacity: 1;
  filter: none;
}

.intro-terrain__layer--top .intro-contour {
  stroke: rgba(247, 245, 239, 0.96);
  stroke-width: 1.12;
}

.opening-intro.is-running .intro-terrain__layer .intro-contour {
  animation: figma-intro-draw 4.2s ease-in-out infinite;
}

.intro-marker {
  z-index: 4;
  transform: translate(-50%, -50%);
  transform-style: flat;
}

.intro-marker__stem {
  bottom: auto;
  top: 8px;
  height: var(--marker-stem);
  background: rgba(247, 245, 239, 0.42);
  box-shadow: none;
  transform: scaleY(0);
  transform-origin: 50% 0;
}

.intro-marker__point,
.intro-marker__ring {
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%) scale(0.68);
}

.intro-marker__point {
  box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 18%, transparent);
}

.opening-intro.is-running .intro-marker__stem {
  animation: figma-intro-stem 4.2s ease-out infinite;
}

.opening-intro.is-running .intro-marker__point {
  animation: figma-intro-pin 4.2s ease-out infinite;
}

.opening-intro.is-running .intro-marker__ring {
  animation: none;
}

.opening-intro__legend {
  right: auto;
  left: 64.1%;
  bottom: calc(45px + var(--safe-bottom));
  justify-items: start;
  font-size: 9px;
}

.opening-intro.is-running .opening-intro__legend {
  animation: figma-intro-legend 4.2s linear infinite;
}

.opening-intro.is-running .opening-intro__legend span {
  animation: none;
}

@keyframes figma-intro-grid {
  0%, 10% { opacity: 0; }
  22%, 100% { opacity: 0.34; }
}

@keyframes figma-intro-wordmark {
  0% { opacity: 0; }
  10.714%, 100% { opacity: 1; }
}

@keyframes figma-intro-contours {
  0%, 4.762% { opacity: 0; transform: translateY(18px) scale(0.94, 0.9); }
  35.714%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes figma-intro-draw {
  0%, 6.667% { visibility: hidden; stroke-dasharray: 0 1; }
  38.81%, 100% { visibility: visible; stroke-dasharray: 1 1; }
}

@keyframes figma-intro-stem {
  0%, 31% { opacity: 0; transform: scaleY(0); }
  54%, 100% { opacity: 1; transform: scaleY(1); }
}

@keyframes figma-intro-pin {
  0%, 31% { opacity: 0; transform: translate(-50%, -50%) scale(0.68); }
  40% { opacity: 1; transform: translate(-50%, -50%) scale(1.16); }
  49%, 72% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  76% { opacity: 0.42; transform: translate(-50%, -50%) scale(1.12); }
  84%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes figma-intro-legend {
  0%, 59% { opacity: 0; transform: translateY(10px); }
  71.905%, 100% { opacity: 1; transform: translateY(0); }
}

.opening-intro.is-reduced::before,
.opening-intro.is-reduced .opening-intro__name,
.opening-intro.is-reduced .opening-intro__legend,
.opening-intro.is-reduced .opening-intro__terrain,
.opening-intro.is-reduced .intro-marker__stem,
.opening-intro.is-reduced .intro-marker__point {
  animation: none !important;
  opacity: 1;
}

.opening-intro.is-reduced .opening-intro__terrain {
  transform: none;
}

.opening-intro.is-reduced .intro-marker__stem {
  transform: scaleY(1);
}

.opening-intro.is-reduced .intro-marker__point {
  transform: translate(-50%, -50%) scale(1);
}

@media (min-width: 760px) {
  .opening-intro__map {
    top: 20%;
    left: 50%;
    width: min(52vw, 680px);
    transform: translateX(-50%);
  }

  .opening-intro__wordmark {
    top: 40px;
    left: 44px;
  }

  .opening-intro__legend {
    left: auto;
    right: 44px;
    bottom: 40px;
  }

  @keyframes figma-intro-contours {
    0%, 4.762% { opacity: 0; transform: translateY(18px) scale(0.94, 0.9); }
    35.714%, 100% { opacity: 1; transform: translateY(0) scale(1); }
  }
}

/* Pixel-critical mobile geometry: this block intentionally closes the cascade. */
@media (max-width: 759px) {
  .map-toolbar { top: calc(106px + var(--safe-top)); }
  .filter-button { min-height: 32px; padding: 7px 12px; }
  .mobile-add-button { bottom: calc(62px + var(--safe-bottom)); }
  .maplibregl-ctrl-top-right {
    top: auto;
    right: 20px;
    bottom: calc(122px + var(--safe-bottom));
  }

  .participant-view h1 { margin-top: 13px; }

  .context-panel[data-view="location"] {
    top: auto;
    bottom: max(14px, var(--safe-bottom));
    height: min(286px, calc(100dvh - 28px));
    max-height: none;
    padding-bottom: 0;
    overflow: hidden;
    border-radius: 43px;
  }

  .location-sheet {
    height: 100%;
    gap: 16px;
    padding: 28px 24px 18px;
  }

  .location-sheet > p { margin: 0; }
  .location-sheet .privacy-measure { margin-top: -4px; }
  .location-sheet .secondary-button { width: 100%; margin-top: auto; }

  .context-panel[data-view="contribute"] {
    top: auto;
    bottom: max(14px, var(--safe-bottom));
    height: min(615px, calc(100dvh - 28px));
    max-height: none;
    padding-bottom: 0;
    overflow: hidden;
    border-radius: 43px;
    background: var(--paper);
  }

  .contribution-view {
    height: 100%;
    padding: 37px 14px 18px 24px;
  }

  .contribution-view > .sheet-title-row {
    height: 38px;
    margin-left: -5px;
    padding-right: 10px;
  }

  .contribution-view .form-stack {
    position: relative;
    display: block;
    width: min(330px, 100%);
    padding-top: 20px;
  }

  .contribution-view .feeling-fieldset {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .contribution-view .feeling-fieldset > legend,
  .contribution-view .moment-field > label {
    padding: 0;
    font-family: Roboto, Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

  .contribution-view .feeling-options { gap: 4px; margin-top: 14px; }

  .contribution-view .feeling-option {
    width: 330px;
    max-width: 100%;
    min-height: 72px;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
    background: var(--paper-bright);
  }

  .contribution-view .feeling-mark { width: 18px; height: 18px; }
  .contribution-view .feeling-option strong { line-height: 18px; }
  .contribution-view .feeling-option small { display: block; margin-top: 2px; line-height: 16px; }

  .contribution-view .moment-field {
    display: grid;
    gap: 8px;
    margin-top: 14px;
  }

  .contribution-view textarea {
    width: 330px;
    max-width: 100%;
    min-height: 104px;
    padding: 14px;
    background: var(--paper-bright);
    font-size: 14px;
    line-height: 21px;
  }

  .contribution-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
  }

  .contribution-view .upload-button {
    width: 180px;
    min-height: 40px;
    padding: 0 12px;
    background: var(--paper-bright);
    font-size: 12px;
    font-weight: 400;
  }

  .contribution-view .submit-button {
    min-width: 65px;
    min-height: 40px;
    margin: 0;
    padding: 0 20px;
    box-shadow: none;
  }

  .context-panel[data-view="detail"] {
    top: auto;
    bottom: max(15px, var(--safe-bottom));
    height: min(403px, calc(100dvh - 30px));
    max-height: none;
    padding-bottom: 0;
    overflow: hidden;
    border-radius: 43px;
  }

  .moment-detail {
    height: 100%;
    display: block;
    padding: 24px 11px 18px 16px;
  }

  .moment-detail .sheet-title-row { height: 38px; padding: 0 9px 0 8px; }

  .moment-detail .moment-text,
  .moment-detail .pending-copy {
    height: 73px;
    margin: 15px 12px 0;
    overflow: hidden;
  }

  .moment-detail .moment-photo,
  .moment-detail .moment-photo-placeholder {
    width: 342px;
    max-width: 100%;
    height: 112px;
    margin-top: 15px;
  }

  .moment-detail .report-link {
    display: block;
    margin: 22px 0 0 8px;
    padding: 0;
    line-height: 14px;
  }

  .moment-detail .detail-add { min-height: 40px; display: flex; margin: 15px auto 0; }

  .participant-view .consent-block { margin-top: 24px; }
  .participant-view .privacy-summary { margin-top: 23px; }
  .participant-view .submit-button { position: relative; left: -7px; margin-top: 41px; }

  .toast::before { background: var(--toast-accent, var(--connected)); }

  /* The Figma frames describe the content, but the mobile website itself is full bleed. */
  html,
  body,
  .app-root,
  .site-shell,
  .map-workspace,
  .map-stage {
    width: 100%;
    min-width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .opening-intro,
  .context-panel[data-view="welcome"],
  .context-panel[data-view="menu"],
  .context-panel[data-view="participant"],
  .context-panel[data-view="mine"],
  .context-panel[data-view="about"],
  .context-panel[data-view="contact"],
  .context-panel[data-view="privacy"],
  .welcome-view,
  .menu-view,
  .participant-view,
  .anchor-view,
  .about-view,
  .contact-view {
    border-radius: 0;
  }
}

/* Keep the search hierarchy above later Figma geometry overrides. */
@media (min-width: 760px) {
  .map-toolbar { top: 82px; }
}

@media (max-width: 759px) {
  .map-toolbar { top: calc(132px + var(--safe-top)); }
}

/* Light cartographic field: the official Milan boundary is the darkest geography. */
body,
.map-workspace,
.map-stage {
  background: #fbfaf7;
}

.map-stage::after {
  box-shadow: inset 0 0 120px rgba(255, 255, 255, 0.26);
}

.mobile-header .wordmark,
.mobile-header .icon-button {
  color: var(--ink);
}

.map-caption {
  color: rgba(44, 43, 40, 0.42);
}

.map-loading,
.map-fallback {
  background: #fbfaf7;
  color: var(--ink-soft);
}

.map-loading > span {
  border-color: rgba(44, 43, 40, 0.58);
}

.map-loading p,
.map-fallback p {
  color: var(--ink-faint);
}

.map-fallback h2 {
  color: var(--ink);
}

.fallback-grid {
  background-image:
    linear-gradient(rgba(44, 43, 40, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 43, 40, 0.07) 1px, transparent 1px);
}

.maplibregl-ctrl-group,
.maplibregl-ctrl-group:hover {
  border-color: var(--line-strong) !important;
  background: rgba(251, 250, 247, 0.96) !important;
}

.maplibregl-ctrl-group button {
  border-bottom-color: var(--line) !important;
}

.maplibregl-ctrl-icon {
  filter: opacity(0.78);
}

.maplibregl-ctrl-attrib {
  background: rgba(251, 250, 247, 0.84) !important;
  color: rgba(56, 73, 81, 0.6) !important;
}

/* Figma mobile action placement: supporting controls sit above one centred bottom action. */
@media (max-width: 759px) {
  .context-panel[data-view="detail"] .panel-content {
    height: 100%;
  }

  .context-panel[data-view="detail"] .moment-detail {
    display: flex;
    flex-direction: column;
  }

  .moment-detail .report-link {
    flex: 0 0 auto;
    align-self: flex-start;
    margin: auto 0 0 8px;
  }

  .moment-detail .detail-add {
    width: max-content;
    flex: 0 0 auto;
    align-self: center;
    margin: 15px auto 0;
  }

  .anchor-view {
    display: flex;
    flex-direction: column;
  }

  .anchor-view .my-list,
  .anchor-view .preferences-disclosure {
    flex: 0 0 auto;
  }

  .anchor-view .preferences-disclosure {
    margin: 28px 0 24px;
  }

  .anchor-view .anchor-add {
    width: max-content;
    flex: 0 0 auto;
    align-self: center;
    margin: auto auto 0;
  }
}

/* Figma mobile map navigation and About frame — node 285:2540 / 22:126. */
@media (max-width: 759px) {
  .mobile-header {
    min-height: 0;
    padding: 0;
    pointer-events: none;
  }

  .map-back-button,
  .map-menu-button {
    position: absolute;
    top: calc(24px + var(--safe-top));
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(244, 243, 239, 0.92);
    color: var(--ink);
    box-shadow: none;
    pointer-events: auto;
  }

  .map-back-button {
    left: 18px;
  }

  .map-menu-button {
    right: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
  }

  .map-back-button img {
    width: 15px;
    height: 8px;
    display: block;
  }

  .map-back-button:active {
    transform: translateX(-1px) scale(0.97);
  }

  .map-menu-button span {
    width: 20px;
    height: 1px;
    display: block;
    background: var(--ink);
  }

  .map-menu-button:active {
    transform: scale(0.97);
  }

  .mobile-add-button {
    border: 1px solid var(--ink) !important;
    background: var(--ink) !important;
    color: #fff !important;
  }

  .about-view {
    width: 100%;
    min-height: 100dvh;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
    background: var(--paper-bright);
  }

  .about-view .figma-page-navigation {
    top: calc(clamp(32px, 6.04dvh, 51px) + var(--safe-top));
    left: 21px;
    right: 30px;
    min-height: 14px;
  }

  .about-view .figma-menu {
    width: 32px;
    height: 14px;
    gap: 6px;
    margin-left: auto;
  }

  .about-title {
    position: absolute;
    top: calc(clamp(104px, 17.3dvh, 146px) + var(--safe-top));
    left: 17px;
    right: auto;
    width: min(356px, calc(100vw - 34px));
    height: clamp(260px, 42.65dvh, 360px);
    display: block;
    margin: 0;
    color: #000;
    font-family: "Surgena", sans-serif;
    font-size: clamp(50px, 7.58dvh, 64px);
    font-weight: 400;
    letter-spacing: 0;
    line-height: clamp(48px, 7.1dvh, 60px);
    word-break: normal;
    overflow-wrap: normal;
  }

  .about-title span {
    display: block;
  }

  .about-copy {
    position: absolute;
    top: calc(clamp(385px, 64.2dvh, 542px) + var(--safe-top));
    left: 21px;
    right: auto;
    width: min(347px, calc(100vw - 42px));
    height: min(275px, calc(100dvh - clamp(385px, 64.2dvh, 542px) - 18px - var(--safe-top)));
    padding: 0;
    overflow: hidden;
    background: linear-gradient(to bottom, #000 0%, #e0dede 99.98%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: Roboto, Arial, sans-serif;
    font-size: clamp(14px, 1.9dvh, 16px);
    font-weight: 400;
    line-height: clamp(21px, 2.96dvh, 25px);
  }

  .about-copy p {
    margin: 0 0 clamp(18px, 2.96dvh, 25px);
  }

  .context-panel[data-view="about"] {
    overflow: hidden;
    background: var(--paper-bright);
  }
}

/* Exact responsive translation of Figma frame 146:252 (390 × 844). */
.context-panel[data-view="welcome"] {
  overflow: hidden;
  background: #f7f7f7;
}

.context-panel[data-view="welcome"] .panel-content {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  container-type: size;
}

.welcome-view {
  width: 100%;
  height: 100%;
  min-height: 0;
  container-type: inline-size;
  border-radius: 9.2308cqw;
}

@supports (width: 1cqw) and (height: 1cqh) {
  .welcome-view {
    width: min(100cqw, calc(100cqh * 390 / 844));
    height: min(100cqh, calc(100cqw * 844 / 390));
  }
}

@media (max-width: 759px) {
  .context-panel[data-view="welcome"] {
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
  }

  .context-panel[data-view="welcome"] .panel-content {
    display: block;
    width: 100%;
    height: 100%;
  }

  .welcome-view {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 0;
  }
}

.welcome-view .figma-page-navigation {
  top: 4.6209%;
  left: 4.8718%;
  right: 6.6667%;
  min-height: 0;
  align-items: flex-start;
}

.welcome-view .figma-page-label {
  font-size: 3.8462cqw;
  line-height: normal;
}

.welcome-view .figma-menu {
  width: 8.2051cqw;
  height: 3.5897cqw;
  margin-top: 0.5128cqw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
}

.welcome-view .figma-menu span {
  width: 100%;
  height: 0.2564cqw;
  flex: 0 0 0.2564cqw;
}

.welcome-italy,
.welcome-region-layer {
  position: absolute;
  inset: 0;
  display: block;
}

.welcome-region,
.welcome-marker {
  position: absolute;
  display: block;
}

.welcome-region img,
.welcome-marker img {
  position: absolute;
  display: block;
  max-width: none;
}

.welcome-region img {
  top: var(--asset-inset);
  left: var(--asset-inset);
  width: calc(100% + var(--asset-grow));
  height: calc(100% + var(--asset-grow));
}

.welcome-milan-ring {
  top: 25.1185%;
  left: 12.5641%;
  width: 3.8462%;
  height: 1.6588%;
}

.welcome-milan-ring img {
  inset: -0.5px;
  width: calc(100% + 1px);
  height: calc(100% + 1px);
}

.welcome-milan-dot {
  top: 25.7109%;
  left: 13.8462%;
  width: 1.2821%;
  height: 0.5924%;
}

.welcome-milan-dot img {
  inset: 0;
  width: 100%;
  height: 100%;
}

.welcome-title {
  inset: 0;
  display: block;
  font-size: 10.2564cqw;
  line-height: 9.7436cqw;
}

.welcome-title span {
  position: absolute;
  display: block;
}

.welcome-title span:first-child {
  top: 43.8389%;
  left: -1.2821%;
  right: 1.0256%;
}

.welcome-title span:last-child {
  top: 50.5924%;
  left: -0.2564%;
  right: 0;
}

.welcome-actions {
  top: 87.4408%;
  left: 37.9487%;
  right: auto;
  bottom: auto;
  width: 15.8974%;
  height: 4.2654%;
  display: block;
}

.welcome-actions .primary-button {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border-radius: 5.1282cqw;
  font-family: Roboto, Arial, sans-serif;
  font-size: 3.0769cqw;
  line-height: 4.1026cqw;
  letter-spacing: 0.0513cqw;
}

/* Pinterest-informed globe opening: grey field, black wireframe, three feelings. */
.opening-intro.opening-intro--globe {
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  transition-duration: 720ms;
}

.opening-intro--globe::before {
  display: none;
}

.opening-intro--globe::after {
  display: none;
}

.intro-year,
.intro-poster-copy {
  position: absolute;
  z-index: 3;
  margin: 0;
  color: var(--ink);
  font-family: "Anonymous Pro", var(--font-mono);
  font-weight: 400;
  transition:
    opacity 260ms ease,
    transform 420ms cubic-bezier(0.22, 0.72, 0.22, 1);
}

.intro-poster-copy {
  display: grid;
  gap: 0;
  font-size: clamp(12px, 3.333vw, 15px);
  line-height: 1.23;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-poster-copy--opening {
  top: 14.455%;
  left: 14.615%;
  width: 56.154%;
}

.intro-poster-copy--closing {
  top: 76.422%;
  right: 14.615%;
  width: 41.282%;
  justify-items: end;
  text-align: right;
}

.intro-copy__line {
  display: block;
  min-height: 1.23em;
  white-space: nowrap;
}

.intro-copy__word,
.intro-year span {
  display: inline-block;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

.opening-intro--globe.is-running .intro-poster-copy--opening .intro-copy__word {
  animation: intro-word-type 85ms linear calc(420ms + var(--word-index) * 125ms) forwards;
}

.opening-intro--globe.is-running .intro-poster-copy--closing .intro-copy__word {
  animation: intro-word-type 85ms linear calc(2.15s + var(--word-index) * 125ms) forwards;
}

.intro-year {
  top: 70.853%;
  left: 8.974%;
  font-size: clamp(13px, 3.59vw, 16px);
  line-height: 1;
}

.opening-intro--globe.is-running .intro-year span {
  animation: intro-word-type 100ms linear 2.15s forwards;
}

.intro-globe-stage {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(102.564vw, 440px);
  aspect-ratio: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transform-origin: center;
}

.opening-intro--globe.is-running .intro-globe-stage {
  animation: intro-globe-stage-in 980ms cubic-bezier(0.2, 0.75, 0.22, 1) 220ms forwards;
}

.intro-globe-body {
  position: absolute;
  inset: 0;
  transform-origin: center;
  transition:
    opacity 260ms ease,
    transform 520ms cubic-bezier(0.22, 0.72, 0.22, 1),
    filter 360ms ease;
  will-change: transform;
}

.intro-globe-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.intro-globe-svg path {
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.intro-globe-sphere {
  fill: url("#intro-globe-depth");
  stroke: none;
  opacity: 0;
}

.intro-globe-coastline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 0.94;
  opacity: 0;
  mix-blend-mode: multiply;
}

.opening-intro--globe.is-running .intro-globe-sphere {
  animation: intro-globe-depth-in 900ms ease 260ms forwards;
}

.opening-intro--globe.is-running.is-globe-ready .intro-globe-coastline {
  animation: intro-globe-coastline-in 760ms ease forwards;
}

.intro-globe-marker {
  position: absolute;
  z-index: 4;
  width: 0;
  height: 0;
  display: block;
  color: var(--connected);
  opacity: 0;
  transition: opacity 180ms linear, transform 220ms ease;
  will-change: left, top, opacity, transform;
}

.intro-globe-marker--grounded { color: var(--grounded); }
.intro-globe-marker--distant { color: var(--distant); }

.intro-globe-marker__ring,
.intro-globe-marker__point {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
}

.intro-globe-marker__ring {
  width: var(--marker-halo);
  height: var(--marker-halo);
  background: color-mix(in srgb, currentColor 24%, transparent);
}

.intro-globe-marker__point {
  width: var(--marker-core);
  height: var(--marker-core);
  background: currentColor;
}

.opening-intro--globe.is-running .intro-globe-marker__point {
  animation:
    intro-globe-point-in 430ms cubic-bezier(0.2, 0.8, 0.2, 1.3) var(--marker-delay) forwards,
    intro-globe-core-breathe 2.35s ease-in-out calc(var(--marker-delay) + 430ms) infinite;
}

.opening-intro--globe.is-running .intro-globe-marker__ring {
  animation: intro-globe-ring-pulse 2.35s ease-out calc(var(--marker-delay) + 180ms) infinite;
}

.intro-map-fragments {
  position: fixed;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.intro-map-fragment {
  transform-box: view-box;
  transform-origin: 0 0;
  transition: opacity 360ms cubic-bezier(0.2, 0.78, 0.2, 1);
  will-change: transform, opacity;
}

.intro-map-fragment__dot {
  transform-box: view-box;
  transform-origin: 0 0;
  transition: opacity 90ms linear;
  will-change: transform, opacity;
}

.intro-map-fragment__dot {
  opacity: 0;
}

.intro-map-fragments.is-dots .intro-map-fragment__dot {
  opacity: 0.72;
}

.intro-map-fragments.is-regions .intro-map-fragment {
  opacity: 0;
}

.intro-map-fragment circle {
  fill: #5f5d59;
  stroke: none;
  transform-box: view-box;
  transform-origin: 0 0;
}

.intro-italy-target {
  position: fixed;
  z-index: 4;
  inset: auto;
  opacity: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.opening-intro--globe.is-map-transitioning .intro-poster-copy,
.opening-intro--globe.is-map-transitioning .intro-year {
  opacity: 0;
  transform: translateY(-7px);
}

.opening-intro--globe.is-map-transitioning .intro-globe-body {
  opacity: 0;
  transform: scale(1.035);
  filter: blur(0.8px);
}

.opening-intro--globe.is-handing-off {
  background: #f7f7f7;
}

@keyframes intro-word-type {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}

@keyframes intro-globe-stage-in {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.84); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes intro-globe-depth-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes intro-globe-coastline-in {
  from { opacity: 0; filter: blur(1.5px); }
  to { opacity: 0.78; filter: blur(0); }
}

@keyframes intro-globe-point-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.35); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes intro-globe-core-breathe {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.86; transform: translate(-50%, -50%) scale(0.94); }
}

@keyframes intro-globe-ring-pulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.72); }
  16% { opacity: 0.7; }
  76%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.26); }
}

@media (min-width: 760px) {
  .intro-poster-copy--opening {
    top: 13.5%;
    left: 15vw;
  }

  .intro-poster-copy--closing {
    top: 76%;
    right: 13vw;
  }

  .intro-year {
    top: 70.5%;
    left: 5vw;
  }

  .intro-globe-stage {
    width: min(52vw, 560px);
  }
}

@media (max-height: 640px) {
  .intro-globe-stage {
    width: min(72vh, 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .opening-intro--globe .intro-copy__word,
  .opening-intro--globe .intro-year span,
  .opening-intro--globe .intro-globe-stage,
  .opening-intro--globe .intro-globe-body,
  .opening-intro--globe .intro-globe-sphere,
  .opening-intro--globe .intro-globe-coastline,
  .opening-intro--globe .intro-globe-marker__point,
  .opening-intro--globe .intro-globe-marker__ring {
    animation: none !important;
  }

  .opening-intro--globe .intro-copy__word,
  .opening-intro--globe .intro-year span,
  .opening-intro--globe .intro-globe-stage,
  .opening-intro--globe .intro-globe-sphere,
  .opening-intro--globe .intro-globe-coastline,
  .opening-intro--globe .intro-globe-marker__point {
    opacity: 1;
  }

  .opening-intro--globe .intro-copy__word,
  .opening-intro--globe .intro-year span {
    clip-path: none;
    transform: none;
  }

  .opening-intro--globe .intro-globe-stage {
    transform: translate(-50%, -50%) scale(1);
  }

  .opening-intro--globe .intro-globe-body {
    transform: none;
  }

  .opening-intro--globe .intro-globe-marker__point {
    transform: translate(-50%, -50%) scale(1);
  }

  .opening-intro--globe .intro-globe-marker__ring {
    opacity: 0;
  }
}

/* Figma Desktop Screens sync — nodes 373:2 and 375:650. */
.welcome-desktop-meta {
  display: none;
}

@media (min-width: 760px) {
  :root {
    --rail-width: 276px;
  }

  .research-rail {
    width: var(--rail-width);
    display: block;
    padding: 34px 30px 26px;
    border-right: 0;
    background: #fbfaf7;
  }

  .rail-wordmark > span {
    font-family: "Surgena", sans-serif;
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.042em;
    line-height: 50px;
  }

  .rail-wordmark small {
    margin: 10px 0 0 5px;
    font-family: Roboto, Arial, sans-serif;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.07em;
  }

  .rail-intro,
  .rail-data,
  .rail-footer {
    display: none;
  }

  .rail-nav {
    position: absolute;
    top: 194px;
    left: 30px;
    right: 30px;
    display: grid;
    align-self: auto;
  }

  .rail-nav button {
    min-height: 56px;
    padding: 0 5px;
    border: 0;
    background: transparent;
    color: #000;
    font-family: "Surgena", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: normal;
  }

  .rail-nav button:hover {
    padding-left: 5px;
    color: #000;
    opacity: 0.55;
  }

  .rail-nav button.is-active {
    padding-left: 5px;
    color: #000;
    opacity: 1;
  }

  .map-workspace {
    left: var(--rail-width);
    border-radius: 36px 0 0 36px;
    overflow: hidden;
  }

  .map-search-shell {
    top: 28px;
    left: 28px;
    width: 354px;
  }

  .map-toolbar {
    inset: 0;
    display: block;
    pointer-events: none;
  }

  .map-toolbar .filter-group {
    position: absolute;
    top: 96px;
    left: 28px;
    gap: 7px;
    pointer-events: auto;
  }

  .map-toolbar .add-button {
    position: absolute;
    left: 50%;
    bottom: 19px;
    min-width: 136px;
    min-height: 56px;
    justify-content: center;
    padding: 0 20px;
    transform: translateX(-50%);
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-family: "Surgena", sans-serif;
    font-size: 13px;
    font-weight: 500;
    box-shadow: none;
    pointer-events: auto;
  }

  .map-toolbar .add-button:active {
    transform: translateX(-50%) translateY(1px) scale(0.985);
  }

  .map-toolbar .browse-button {
    display: inline-flex;
    min-width: 44px;
    min-height: 42px;
  }

  .maplibregl-ctrl-top-right {
    top: 28px;
    right: 28px;
  }

  .context-panel[data-view="welcome"] {
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    transform: translateY(0);
    border: 0;
    border-radius: 0;
    background: #fbfaf7;
    box-shadow: none;
  }

  .context-panel[data-view="welcome"].is-open {
    transform: translateY(0);
  }

  .context-panel[data-view="welcome"] .panel-content {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: block;
    padding: 0;
  }

  .welcome-view {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    border-radius: 0;
    background: #fbfaf7;
    container-type: normal;
  }

  .welcome-view .figma-page-navigation {
    display: none;
  }

  .welcome-desktop-meta {
    position: absolute;
    z-index: 6;
    inset: 0;
    display: block;
    pointer-events: none;
    color: var(--ink);
    font-family: "Surgena", sans-serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 50px;
    transition:
      opacity 620ms ease,
      transform 760ms var(--ease);
  }

  body.opening-intro-active .welcome-desktop-meta {
    opacity: 0;
    transform: translateY(10px);
  }

  .welcome-desktop-meta span {
    position: absolute;
    top: 20px;
    white-space: nowrap;
  }

  .welcome-desktop-brand {
    left: 28px;
  }

  .welcome-desktop-year {
    left: 79.61%;
  }

  .welcome-desktop-city {
    left: 90%;
  }

  .welcome-italy {
    --welcome-map-width: min(43.90625vw, calc((100dvh - 21px) * 562 / 699));
    inset: auto;
    top: 4.7222%;
    left: 50%;
    width: var(--welcome-map-width);
    height: calc(var(--welcome-map-width) * 699 / 562);
    transform: translateX(-50%);
  }

  body.opening-intro-active .welcome-view .welcome-italy {
    transform: translateX(-50%) scale(1.015);
  }

  .welcome-region-layer {
    position: absolute;
    inset: 0;
  }

  .welcome-region[data-region="piemonte"] { top: 5.47% !important; left: 0 !important; width: 21.86% !important; height: 20.73% !important; }
  .welcome-region[data-region="valle-daosta"] { top: 9.45% !important; left: 1.44% !important; width: 9.69% !important; height: 4.65% !important; }
  .welcome-region[data-region="lombardia"] { top: 3.98% !important; left: 15.88% !important; width: 24.53% !important; height: 16.92% !important; }
  .welcome-region[data-region="veneto"] { top: 3.48% !important; left: 33.61% !important; width: 20.82% !important; height: 16.25% !important; }
  .welcome-region[data-region="liguria"] { top: 20.9% !important; left: 7.42% !important; width: 21.45% !important; height: 7.62% !important; }
  .welcome-region[data-region="emilia-romagna"] { top: 16.92% !important; left: 21.65% !important; width: 29.9% !important; height: 12.1% !important; }
  .welcome-region[data-region="toscana"] { top: 22.72% !important; left: 25.77% !important; width: 22.48% !important; height: 19.07% !important; }
  .welcome-region[data-region="umbria"] { top: 30.02% !important; left: 44.33% !important; width: 11.55% !important; height: 10.78% !important; }
  .welcome-region[data-region="marche"] { top: 26.87% !important; left: 46.8% !important; width: 14.64% !important; height: 11.11% !important; }
  .welcome-region[data-region="lazio"] { top: 36.65% !important; left: 40.62% !important; width: 21.65% !important; height: 16.92% !important; }
  .welcome-region[data-region="abruzzo"] { top: 36.15% !important; left: 53.81% !important; width: 14.85% !important; height: 10.45% !important; }
  .welcome-region[data-region="molise"] { top: 43.28% !important; left: 61.65% !important; width: 10.31% !important; height: 6.14% !important; }
  .welcome-region[data-region="campania"] { top: 48.26% !important; left: 60% !important; width: 17.32% !important; height: 12.93% !important; }
  .welcome-region[data-region="puglia"] { top: 42.79% !important; left: 69.9% !important; width: 30.1% !important; height: 20.23% !important; }
  .welcome-region[data-region="basilicata"] { top: 51.41% !important; left: 73.2% !important; width: 12.99% !important; height: 10.61% !important; }
  .welcome-region[data-region="calabria"] { top: 60.03% !important; left: 75.88% !important; width: 13.19% !important; height: 19.07% !important; }
  .welcome-region[data-region="sicilia"] { top: 71.48% !important; left: 44.74% !important; width: 31.34% !important; height: 28.52% !important; }
  .welcome-region[data-region="sardegna"] { top: 49.92% !important; left: 12.78% !important; width: 14.02% !important; height: 21.06% !important; }
  .welcome-region[data-region="trentino"] { top: 0 !important; left: 31.75% !important; width: 17.53% !important; height: 12.27% !important; }
  .welcome-region[data-region="friuli"] { top: 3.81% !important; left: 47.84% !important; width: 13.6% !important; height: 9.13% !important; }

  .welcome-milan-ring,
  .welcome-milan-dot {
    display: none;
  }

  .welcome-title {
    inset: 0;
    display: block;
    font-family: "Motive", sans-serif;
    font-size: clamp(48px, 5vw, 64px);
    font-weight: 400;
    line-height: 38px;
    text-align: center;
  }

  .welcome-title span {
    position: absolute;
    display: block;
    white-space: nowrap;
  }

  .welcome-title span:first-child {
    top: 39.17%;
    left: 23.5%;
    right: auto;
    width: 49.4%;
  }

  .welcome-title span:last-child {
    top: 52.22%;
    left: 32.8%;
    right: auto;
    width: 30.6%;
  }

  .welcome-actions {
    top: 89.5833%;
    left: 46.7969%;
    right: auto;
    bottom: auto;
    width: 62px;
    height: 36px;
    display: block;
  }

  .welcome-actions .primary-button {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border-radius: 20px;
    background: var(--ink);
    color: #fff;
    font-family: Roboto, Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }
}

/* Final desktop panel cascade: every right-edge view shares one Figma shell. */
@media (min-width: 760px) {
  .panel-backdrop {
    left: var(--rail-width);
    background: rgba(18, 18, 17, 0.2);
    backdrop-filter: none;
  }

  .context-panel:not([data-view="welcome"]) {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(430px, calc(100vw - var(--rail-width)));
    height: 100dvh;
    max-height: none;
    padding: 0;
    overflow: hidden;
    transform: translateX(104%);
    border: 0;
    border-left: 1px solid var(--line-strong);
    border-radius: 36px 0 0 36px;
    background: var(--paper-bright);
    box-shadow: -18px 0 62px rgba(15, 15, 14, 0.22);
  }

  .context-panel:not([data-view="welcome"]).is-open {
    transform: translateX(0);
  }

  .context-panel:not([data-view="welcome"]) .panel-handle {
    display: none;
  }

  .context-panel:not([data-view="welcome"]) .panel-content {
    width: 100%;
    height: 100%;
    min-height: 100%;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .context-panel:not([data-view="welcome"]) .panel-dismiss {
    position: absolute;
    z-index: 30;
    top: 39px;
    right: 22px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
  }

  .context-panel:not([data-view="welcome"]) :is(.sheet-close, .panel-close),
  .context-panel:not([data-view="welcome"]) .figma-page-navigation {
    display: none;
  }

  .context-panel:is(
    [data-view="browse"],
    [data-view="edit"],
    [data-view="report"],
    [data-view="privacy"]
  ) .panel-content {
    padding: 88px 27px 40px;
  }

  .context-panel[data-view="location"] .location-sheet,
  .context-panel[data-view="contribute"] .contribution-view,
  .context-panel[data-view="detail"] .moment-detail {
    width: 100%;
    height: auto;
    min-height: 100%;
    padding: 88px 27px 40px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .context-panel[data-view="contribute"] .form-stack {
    padding-top: 18px;
  }

  .participant-view,
  .anchor-view,
  .contact-view,
  .menu-view {
    width: 100%;
    min-height: 100%;
    padding: 96px 27px 40px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .contact-copy {
    padding-top: 51px;
  }

  .about-view {
    width: 100%;
    min-height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .about-title {
    top: 147px;
    left: 27px;
    right: 18px;
    font-size: 46px;
    line-height: 46px;
  }

  .about-copy {
    top: 440px;
    right: 22px;
    left: 21px;
    width: auto;
  }
}
/* Figma typography and spacing calibration — Desktop nodes 373:2–406:2. */
.mobile-map-wordmark {
  display: none;
}

@media (min-width: 760px) {
  html,
  body,
  button,
  input,
  textarea,
  select {
    font-family: var(--font-desktop-ui);
  }

  .rail-wordmark > span {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -2.016px;
    line-height: 50px;
  }

  .rail-wordmark small {
    margin: 10px 0 0 5px;
    color: var(--ink-faint);
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.56px;
    line-height: normal;
  }

  .rail-nav button {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: normal;
  }

  .map-search-form input,
  .map-search-results {
    font-family: var(--font-desktop-ui);
    font-size: 13px;
    font-weight: 400;
  }

  .map-toolbar .filter-button {
    height: 42px;
    min-height: 42px;
    gap: 8px;
    padding: 9px 13px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

  .map-toolbar .browse-button {
    height: 42px;
    font-family: var(--font-desktop-ui);
    font-size: 10px;
    font-weight: 400;
  }

  .map-toolbar .add-button {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: normal;
  }

  .map-caption,
  .map-loading p {
    font-family: var(--font-map-mono);
    font-weight: 400;
    text-transform: uppercase;
  }

  .map-caption {
    font-size: 8px;
    letter-spacing: 1.12px;
    line-height: normal;
  }

  .map-loading p {
    font-size: 10px;
    letter-spacing: 0.8px;
  }

  .context-panel:not([data-view="welcome"]) {
    font-family: var(--font-desktop-ui);
  }

  .context-panel:not([data-view="welcome"]) .panel-dismiss {
    top: 39px;
    right: 22px;
    width: 34px;
    height: 34px;
  }

  .panel-header {
    display: block;
    padding: 0;
    border: 0;
  }

  .panel-header h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -1.98px;
    line-height: 43.12px;
  }

  .panel-kicker {
    margin: 0 0 8px;
    font-family: var(--font-map-mono);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.8px;
    line-height: 12px;
  }

  /* Desktop / 03 — Participant information. */
  .context-panel[data-view="participant"] {
    background: var(--paper);
  }

  .context-panel[data-view="participant"] .participant-view {
    min-height: 720px;
    padding: 98px 24px 30px;
    background: var(--paper);
  }

  .participant-view h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.68px;
    line-height: 36px;
  }

  .participant-view .figma-form {
    gap: 12px;
    padding-top: 36px;
  }

  .participant-view .figma-form .field-group,
  .participant-view .figma-form .consent-block {
    gap: 8px;
  }

  .participant-view .figma-form .field-group > label,
  .participant-view .figma-form .field-group > legend {
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

  .participant-view .figma-form input,
  .participant-view .figma-form select {
    min-height: 48px;
    padding: 0 19px;
    font-family: var(--font-desktop-ui);
    font-size: 13px;
    font-weight: 400;
    line-height: normal;
  }

  .participant-view .figma-form .field-help {
    font-family: var(--font-desktop-ui);
    font-size: 11px;
    line-height: 16px;
  }

  .participant-view .figma-form .check-row {
    gap: 12px;
    font-family: var(--font-desktop-ui);
    font-size: 12px;
    line-height: 18px;
  }

  .participant-view .figma-form .privacy-summary {
    margin: 0 0 0 32px;
    font-family: var(--font-desktop-ui);
    font-size: 11px;
    line-height: 16.5px;
  }

  .participant-view .figma-form .submit-button {
    width: 186px;
    min-height: 40px;
    margin-top: 32px;
    font-family: var(--font-desktop-ui);
    font-size: 12px;
    font-weight: 600;
  }

  /* Desktop / 04 — keep the Figma content position inside the shared full-height shell. */
  .context-panel[data-view="contribute"] {
    background: var(--paper-bright);
  }

  .context-panel[data-view="contribute"] .contribution-view {
    min-height: 720px;
    padding: 170px 13px 18px;
    background: var(--paper-bright);
  }

  .contribution-view .sheet-title-row h2,
  .moment-detail .sheet-title-row h2 {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.68px;
    line-height: 38px;
  }

  .context-panel[data-view="contribute"] .contribution-view .form-stack {
    gap: 14px;
    padding-top: 14px;
  }

  .contribution-view .feeling-fieldset > legend,
  .contribution-view .moment-field > label {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    line-height: 18.9px;
  }

  .contribution-view .feeling-options {
    gap: 6px;
  }

  .contribution-view .feeling-option {
    min-height: 62px;
    padding: 8px 15px;
  }

  .contribution-view .feeling-option strong {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
  }

  .contribution-view .feeling-option small {
    font-family: var(--font-desktop-ui);
    font-size: 11px;
    font-weight: 400;
    line-height: 14.85px;
  }

  .contribution-view textarea {
    min-height: 104px;
    padding: 16px 18px;
    font-family: var(--font-desktop-ui);
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
  }

  .contribution-view .upload-button,
  .contribution-view .submit-button {
    font-family: var(--font-desktop-ui);
    font-weight: 600;
  }

  .contribution-view .upload-button {
    font-size: 11px;
  }

  .contribution-view .submit-button {
    font-size: 12px;
  }

  /* Desktop / 06 — point detail keeps the original bottom alignment. */
  .context-panel[data-view="detail"] {
    background: var(--paper-bright);
  }

  .context-panel[data-view="detail"] .moment-detail {
    min-height: 720px;
    gap: 14px;
    padding: 483px 13px 18px;
    background: var(--paper-bright);
  }

  .moment-detail .moment-text,
  .moment-detail .pending-copy {
    margin: 0 4px;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .moment-detail .report-link {
    margin-left: 4px;
    font-family: var(--font-desktop-ui);
    font-size: 10px;
    font-weight: 400;
    line-height: 14px;
  }

  .moment-detail .detail-add {
    min-height: 40px;
    font-family: var(--font-desktop-ui);
    font-size: 12px;
    font-weight: 600;
  }

  /* Desktop / 07 — Browse moments. */
  .context-panel[data-view="browse"] {
    background: var(--paper);
  }

  .context-panel[data-view="browse"] .panel-content {
    padding: 92px 28px 30px;
  }

  .context-panel[data-view="browse"] .panel-header h2 {
    max-width: 330px;
    font-weight: 500;
  }

  .context-panel[data-view="browse"] .browse-list {
    gap: 0;
    padding-top: 44px;
  }

  .context-panel[data-view="browse"] .browse-item {
    min-height: 82px;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }

  .context-panel[data-view="browse"] .browse-item strong {
    font-family: var(--font-desktop-ui);
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
  }

  .context-panel[data-view="browse"] .browse-item small {
    font-family: var(--font-desktop-ui);
    font-size: 9px;
    font-weight: 400;
    line-height: 12px;
  }

  .context-panel[data-view="browse"] .browse-item em {
    font-family: var(--font-desktop-ui);
    font-size: 12px;
    font-weight: 400;
    line-height: 16.2px;
  }

  /* Desktop / 08 - My Moments. */
  .context-panel[data-view="mine"] {
    background: var(--paper);
  }

  .context-panel[data-view="mine"] .anchor-view {
    min-height: 720px;
    padding: 118px 22px 30px 26px;
    background: var(--paper);
  }

  .anchor-view .anchor-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -0.68px;
    line-height: 38px;
  }

  .anchor-view .my-list {
    gap: 16px;
    padding-top: 66px;
  }

  .anchor-view .my-item {
    min-height: 142px;
    gap: 7px;
    padding: 17px 13px 14px;
    border-radius: 38px;
  }

  .anchor-view .my-item-heading strong {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 16px;
  }

  .anchor-view .my-item-location {
    font-family: var(--font-map-mono);
    font-size: 8px;
    font-weight: 400;
    line-height: 12px;
  }

  .anchor-view .my-item > p {
    font-family: var(--font-desktop-ui);
    font-size: 13px;
    line-height: 19px;
  }

  .anchor-view .my-item-actions button {
    font-family: var(--font-desktop-ui);
    font-size: 10px;
    line-height: 14px;
  }

  .anchor-view .preferences-disclosure,
  .anchor-view .preferences-form {
    font-family: var(--font-desktop-ui);
  }

  .anchor-view .preferences-disclosure > summary {
    font-size: 16px;
    line-height: 24px;
  }

  .anchor-view .preferences-form .field-group > label {
    font-size: 14px;
    font-weight: 600;
  }

  .anchor-view .preferences-form input,
  .anchor-view .preferences-form button {
    font-size: 16px;
  }

  /* Desktop / 09 and / 10 — Edit and report. */
  .context-panel[data-view="edit"],
  .context-panel[data-view="report"] {
    background: var(--paper);
  }

  .context-panel[data-view="edit"] .panel-content,
  .context-panel[data-view="report"] .panel-content {
    padding: 74px 28px 30px;
  }

  .context-panel[data-view="edit"] .form-stack,
  .context-panel[data-view="report"] .form-stack {
    gap: 18px;
    padding-top: 45px;
  }

  .context-panel[data-view="edit"] .field-group > legend,
  .context-panel[data-view="edit"] .field-group > label {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    line-height: 18.9px;
  }

  .context-panel[data-view="edit"] .feeling-options {
    gap: 6px;
  }

  .context-panel[data-view="edit"] .feeling-option {
    min-height: 68px;
    grid-template-columns: 21px minmax(0, 1fr);
    gap: 12px;
    padding: 9px 15px;
    border-radius: 30px;
  }

  .context-panel[data-view="edit"] .feeling-mark {
    width: 21px;
    height: 21px;
    border: 0;
    color: transparent;
    font-size: 0;
  }

  .context-panel[data-view="edit"] .feeling-option strong {
    font-family: var(--font-desktop-ui);
    font-size: 13px;
    font-weight: 700;
  }

  .context-panel[data-view="edit"] .feeling-option small {
    font-family: var(--font-desktop-ui);
    font-size: 11px;
    line-height: 14.85px;
  }

  .context-panel[data-view="edit"] textarea {
    min-height: 104px;
    padding: 16px 18px;
    border-radius: 35px;
    font-family: var(--font-desktop-ui);
    font-size: 13px;
    line-height: 19.5px;
    resize: none;
  }

  .context-panel[data-view="edit"] .primary-button,
  .context-panel[data-view="report"] .primary-button {
    min-height: 40px;
    border-radius: 20px;
    font-family: var(--font-desktop-ui);
    font-size: 16px;
    font-weight: 600;
  }

  .context-panel[data-view="report"] .field-group > legend {
    font-family: var(--font-desktop-ui);
    font-size: 14px;
    font-weight: 600;
    line-height: 18.9px;
  }

  .context-panel[data-view="report"] .choice-list label {
    min-height: 48px;
    font-family: var(--font-desktop-ui);
    font-size: 13px;
    font-weight: 400;
    line-height: 18.85px;
  }

  /* Desktop / 11 — About. */
  .context-panel[data-view="about"] {
    background: var(--paper);
  }

  .context-panel[data-view="about"] .about-view {
    min-height: 720px;
    background: var(--paper);
  }

  .about-title {
    top: 147px;
    left: 27px;
    right: 18px;
    font-family: var(--font-display);
    font-size: 46px;
    font-weight: 500;
    letter-spacing: -0.92px;
    line-height: 46px;
  }

  .about-title span:first-child {
    max-width: 384px;
  }

  .about-copy {
    top: 440px;
    right: 22px;
    left: 21px;
    width: auto;
    padding: 0 0 26px;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
  }

  .about-copy p {
    margin: 0 0 26px;
  }

  /* Desktop / 12 — Contact. */
  .context-panel[data-view="contact"] {
    background: var(--paper);
  }

  .context-panel[data-view="contact"] .contact-view {
    min-height: 720px;
    padding: 0;
    background: var(--paper);
  }

  .contact-view .contact-copy {
    position: static;
    width: 100%;
    height: 100%;
    display: block;
    inset: auto;
    padding: 0;
  }

  .contact-view .contact-copy h1 {
    position: absolute;
    top: 136px;
    left: 28px;
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.8px;
    line-height: 43px;
  }

  .contact-view .contact-copy p {
    position: absolute;
    top: 244px;
    left: 33px;
  }

  .contact-view .contact-email {
    font-family: var(--font-mobile-mono);
    font-size: 24px;
    font-weight: 400;
    line-height: 31px;
  }

  .contact-view .contact-copy > button {
    position: absolute;
    top: 405px;
    left: 33px;
    font-family: var(--font-desktop-ui);
    font-size: 11px;
    line-height: 16.5px;
  }

  /* Desktop / 13 — Privacy. */
  .context-panel[data-view="privacy"] {
    background: var(--paper);
  }

  .context-panel[data-view="privacy"] .panel-content {
    padding: 28px 28px 30px;
  }

  .context-panel[data-view="privacy"] .panel-header h2 {
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -1.98px;
    line-height: 43.12px;
  }

  .context-panel[data-view="privacy"] .privacy-view {
    gap: 18px;
    padding: 32px 0 0;
  }

  .privacy-view .prose-lead {
    font-family: var(--font-desktop-ui);
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
  }

  .privacy-view h3 {
    margin: 14px 0 -8px;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 400;
    line-height: normal;
  }

  .privacy-view p {
    font-family: var(--font-desktop-ui);
    font-size: 14px;
    font-weight: 400;
    line-height: 22.68px;
  }
}

/* Figma mobile typography — nodes 17:20–359:5058. */
@media (max-width: 759px) {
  html,
  body,
  button,
  input,
  textarea,
  select {
    font-family: var(--font-mobile-ui);
  }

  .mobile-map-wordmark {
    position: absolute;
    z-index: 2;
    top: calc(44px + var(--safe-top));
    left: 20px;
    display: block;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    pointer-events: none;
  }

  .map-back-button {
    display: none;
  }

  .map-menu-button {
    top: calc(40px + var(--safe-top));
    right: 32px;
  }

  .filter-button {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 16px;
  }

  .mobile-add-button,
  .welcome-actions .primary-button {
    font-family: var(--font-mobile-ui);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 16px;
  }

  .map-caption,
  .map-loading p {
    font-family: var(--font-mobile-mono);
    font-weight: 400;
  }

  .map-caption {
    font-size: 8px;
    letter-spacing: 0.8px;
    line-height: 12px;
  }

  .map-loading p {
    font-size: 10px;
    letter-spacing: 1.4px;
    line-height: 14px;
  }

  .participant-view h1 {
    width: min(330px, calc(100vw - 48px));
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 36px;
  }

  .participant-view .figma-form .field-group > label,
  .participant-view .figma-form .field-group > legend {
    font-family: var(--font-mobile-ui);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

  .participant-view .figma-form {
    width: min(330px, calc(100vw - 48px));
  }

  .participant-view .figma-form input[type="text"],
  .participant-view .figma-form input[type="email"],
  .participant-view .figma-form .field-group > input:not([type="radio"]):not([type="checkbox"]),
  .participant-view .figma-form select {
    font-family: var(--font-mobile-ui);
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
  }

  .participant-view .figma-form .field-help {
    font-family: var(--font-mobile-ui);
    font-size: 11px;
    line-height: 16px;
  }

  .participant-view .figma-form .check-row {
    font-family: var(--font-mobile-ui);
    font-size: 12px;
    line-height: 18px;
  }

  .participant-view .figma-form .consent-block {
    gap: 0;
  }

  .participant-view .figma-form .consent-block > .check-row {
    min-height: 72px;
  }

  .participant-view .figma-form .privacy-summary {
    margin-top: 12px;
    font-family: var(--font-mobile-ui);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

  .participant-view .figma-form .privacy-summary summary {
    border: 0;
  }

  .participant-view .figma-form .privacy-summary summary::marker {
    content: "";
  }

  .participant-view .figma-form .privacy-summary summary::after {
    content: " →";
  }

  .participant-view .figma-form .submit-button {
    left: 0;
    margin-top: 47px;
    font-family: var(--font-mobile-ui);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 16px;
  }

  .contribution-view .sheet-title-row h2,
  .moment-detail .sheet-title-row h2 {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 38px;
  }

  .contribution-view .feeling-fieldset > legend,
  .contribution-view .moment-field > label {
    font-family: var(--font-mobile-ui);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

  .contribution-view .feeling-option strong {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    line-height: 18px;
  }

  .contribution-view .feeling-option small {
    font-family: var(--font-mobile-ui);
    font-size: 11px;
    line-height: 16px;
  }

  .contribution-view textarea {
    font-family: var(--font-mobile-ui);
    font-size: 14px;
    line-height: 21px;
  }

  .contribution-view .upload-button {
    font-family: var(--font-mobile-ui);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
  }

  .contribution-view .submit-button,
  .moment-detail .detail-add {
    font-family: var(--font-mobile-ui);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 16px;
  }

  .moment-detail .moment-text,
  .moment-detail .pending-copy {
    font-family: var(--font-mobile-ui);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .moment-detail .report-link {
    font-family: var(--font-mobile-ui);
    font-size: 10px;
    font-weight: 400;
    line-height: 14px;
  }

  .anchor-view .anchor-title {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 38px;
  }

  .anchor-view .my-item-heading strong {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 16px;
  }

  .anchor-view .my-item-location {
    font-family: var(--font-mobile-mono);
    font-size: 8px;
    line-height: 12px;
  }

  .anchor-view .my-item > p {
    font-family: var(--font-mobile-ui);
    font-size: 13px;
    line-height: 19px;
  }

  .anchor-view .my-item-actions button {
    font-family: var(--font-mobile-ui);
    font-size: 10px;
    font-weight: 500;
    line-height: 14px;
  }

  .about-title {
    font-family: var(--font-display);
  }

  .about-copy {
    font-family: var(--font-mobile-ui);
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
  }

  .context-panel[data-view="contact"] .contact-view {
    min-height: 100dvh;
    padding: 0;
    background: var(--paper-bright);
  }

  .contact-view .contact-copy {
    position: static;
    width: 100%;
    height: 100%;
    display: block;
    inset: auto;
    padding: 0;
  }

  .contact-view .contact-copy h1 {
    position: absolute;
    top: 547px;
    left: 15px;
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 600;
    line-height: 60px;
  }

  .contact-view .contact-copy p {
    position: absolute;
    top: 637px;
    left: 28px;
  }

  .contact-view .contact-email {
    font-family: var(--font-mobile-ui);
    font-size: 24px;
    font-weight: 400;
    line-height: 25px;
  }

  .contact-view .contact-copy > button {
    position: absolute;
    top: 778px;
    left: 28px;
    font-family: var(--font-mobile-ui);
    font-size: 11px;
    line-height: 16px;
  }

  .context-panel[data-view="privacy"] .panel-header h2,
  .context-panel[data-view="edit"] .panel-header h2,
  .context-panel[data-view="report"] .panel-header h2,
  .context-panel[data-view="browse"] .panel-header h2 {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.68px;
    line-height: 38px;
  }

  .privacy-view .prose-lead {
    font-family: var(--font-mobile-ui);
    font-size: 16px;
    line-height: 24px;
  }

  .privacy-view h3 {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 400;
  }

  .privacy-view p {
    font-family: var(--font-mobile-ui);
    font-size: 14px;
    line-height: 22px;
  }
}

/* Desktop / 04 and / 06 — updated floating cards from Figma (396:2, 398:2, 413:207). */
@media (min-width: 760px) {
  .context-panel[data-view="contribute"] {
    top: auto;
    right: 20px;
    bottom: 20px;
    left: auto;
    width: min(410px, calc(100vw - var(--rail-width) - 40px));
    height: min(554px, calc(100dvh - 40px));
    max-height: none;
    padding: 0;
    overflow: hidden;
    transform: translateX(calc(100% + 22px));
    border: 0;
    border-left: 1px solid var(--line-strong);
    border-radius: 43px;
    background: var(--paper-bright);
    box-shadow: 0 -8px 32px rgba(15, 15, 14, 0.24);
  }

  .context-panel[data-view="contribute"].is-open {
    transform: translateX(0);
  }

  .context-panel[data-view="contribute"] .panel-content {
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .context-panel[data-view="contribute"] .panel-dismiss {
    top: 24px;
    right: 13px;
  }

  .context-panel[data-view="contribute"] .contribution-view {
    width: 100%;
    height: 554px;
    min-height: 554px;
    padding: 24px 13px 18px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--paper-bright);
    box-shadow: none;
  }

  .context-panel[data-view="contribute"] .contribution-view > .sheet-title-row {
    width: 100%;
    height: 38px;
    margin: 0;
    padding: 0 42px 0 0;
  }

  .context-panel[data-view="contribute"] .contribution-view .form-stack {
    position: relative;
    width: 100%;
    height: 474px;
    display: block;
    gap: 0;
    padding: 0;
  }

  .context-panel[data-view="contribute"] .feeling-fieldset {
    position: absolute;
    top: 14px;
    left: 0;
    width: 100%;
    height: 217px;
    display: block;
  }

  .context-panel[data-view="contribute"] .feeling-fieldset > legend {
    width: auto;
    max-width: none;
    height: 19px;
    display: block;
    margin: 0;
    padding: 0;
    white-space: nowrap;
  }

  .context-panel[data-view="contribute"] .feeling-options {
    width: 100%;
    display: grid;
    gap: 6px;
    margin: 0;
  }

  .context-panel[data-view="contribute"] .feeling-option {
    width: 100%;
    min-height: 62px;
    height: 62px;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    padding: 9px 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: transparent;
    box-shadow: none;
  }

  .context-panel[data-view="contribute"] .feeling-option:has(input:checked) {
    border-color: rgba(44, 43, 40, 0.24);
    background: var(--feeling);
    box-shadow: none;
  }

  .context-panel[data-view="contribute"] .feeling-mark {
    width: 21px;
    height: 21px;
    justify-self: start;
    border: 0;
    color: transparent;
    font-size: 0;
  }

  .context-panel[data-view="contribute"] .feeling-option:has(input:checked) .feeling-mark {
    visibility: hidden;
  }

  .context-panel[data-view="contribute"] .feeling-option > span:last-child {
    gap: 3px;
  }

  .context-panel[data-view="contribute"] .moment-field {
    position: absolute;
    top: 245px;
    left: 0;
    width: 100%;
    height: 139px;
    display: grid;
    grid-template-rows: 19px 112px;
    gap: 8px;
  }

  .context-panel[data-view="contribute"] .moment-field > label {
    height: 19px;
    white-space: nowrap;
  }

  .context-panel[data-view="contribute"] .moment-field textarea {
    width: 100%;
    min-height: 112px;
    height: 112px;
    max-height: 112px;
    margin: 0;
    padding: 17px 19px;
    border: 1px solid var(--line);
    border-radius: 35px;
    background: rgba(222, 221, 216, 0.5);
    resize: none;
  }

  .context-panel[data-view="contribute"] .contribution-actions {
    position: absolute;
    top: 402px;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
  }

  .context-panel[data-view="contribute"] .upload-button {
    width: auto;
    min-height: 36px;
    height: 36px;
    padding: 0 16px;
    border-radius: 20px;
    background: transparent;
  }

  .context-panel[data-view="contribute"] .contribution-actions .photo-field {
    min-width: 0;
    max-width: calc(100% - 96px);
  }

  .context-panel[data-view="contribute"] .contribution-actions .photo-preview {
    width: 220px;
    max-width: 100%;
    height: 36px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 2px 10px 2px 2px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: transparent;
  }

  .context-panel[data-view="contribute"] .contribution-actions .photo-preview img {
    width: 30px;
    height: 30px;
    max-height: none;
    display: block;
    border-radius: 50%;
    object-fit: cover;
  }

  .context-panel[data-view="contribute"] .contribution-actions .photo-preview > div {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--ink-faint);
    font-family: var(--font-desktop-ui);
    font-size: 10px;
    line-height: 14px;
  }

  .context-panel[data-view="contribute"] .contribution-actions .photo-preview > div span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .context-panel[data-view="contribute"] .contribution-actions .photo-preview button {
    flex: 0 0 auto;
    padding: 0 0 2px;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: var(--ink-faint);
    font: inherit;
  }

  .context-panel[data-view="contribute"] .submit-button {
    position: static;
    min-width: 84px;
    min-height: 40px;
    height: 40px;
    margin: 0;
    padding: 0 20px;
    border-radius: 20px;
    box-shadow: 0 -10px 10px var(--paper-bright);
  }

  .context-panel[data-view="contribute"] .form-error:not([hidden]) {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 42px;
    left: 0;
    margin: 0;
  }

  .context-panel[data-view="detail"] {
    top: auto;
    right: 0;
    bottom: 28px;
    left: var(--rail-width);
    width: min(675px, calc(100vw - var(--rail-width) - 40px));
    height: 402px;
    max-height: calc(100dvh - 56px);
    margin-right: auto;
    margin-left: auto;
    padding: 0;
    overflow: hidden;
    transform: translateX(calc(100% + 30px));
    border: 0;
    border-left: 1px solid var(--line-strong);
    border-radius: 43px;
    background: var(--paper-bright);
    box-shadow: 0 -8px 32px rgba(15, 15, 14, 0.24);
  }

  .context-panel[data-view="detail"]:has(.moment-detail.has-photo) {
    left: calc(var(--rail-width) + 60px);
  }

  .context-panel[data-view="detail"].is-open {
    transform: translateX(0);
  }

  .context-panel[data-view="detail"] .panel-content {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }

  .context-panel[data-view="detail"] .panel-dismiss {
    top: 33px;
    right: 53px;
  }

  .context-panel[data-view="detail"] .moment-detail {
    position: relative;
    width: 100%;
    height: 402px;
    min-height: 402px;
    display: block;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--paper-bright);
    box-shadow: none;
  }

  .context-panel[data-view="detail"] .moment-detail .sheet-title-row {
    position: absolute;
    top: 29px;
    left: 50px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    margin: 0;
    padding: 0;
  }

  .context-panel[data-view="detail"] .detail-feeling-dot {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    background: var(--feeling);
  }

  .context-panel[data-view="detail"] .sheet-title-row h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.68px;
    line-height: 38px;
    white-space: nowrap;
  }

  .context-panel[data-view="detail"] :is(.moment-text, .pending-copy) {
    position: absolute;
    top: 108px;
    left: 44px;
    width: 311px;
    height: auto;
    max-height: 192px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 24px;
  }

  .context-panel[data-view="detail"] :is(.moment-photo, .moment-photo-placeholder) {
    position: absolute;
    top: 97px;
    left: 404px;
    width: 181px;
    height: 213px;
    margin: 0;
    overflow: hidden;
    border-radius: 30px;
    background: #d9d9d9;
    object-fit: cover;
  }

  .context-panel[data-view="detail"] .moment-photo-placeholder span {
    display: none;
  }

  .context-panel[data-view="detail"] .report-link {
    position: absolute;
    top: 342px;
    left: 43px;
    width: 129px;
    height: 16px;
    margin: 0;
    padding: 0 0 4px;
    font-family: var(--font-desktop-ui);
    font-size: 10px;
    font-weight: 400;
    line-height: normal;
    text-align: center;
    white-space: nowrap;
  }

  .context-panel[data-view="detail"] .detail-add {
    position: absolute;
    top: 342px;
    left: 270px;
    width: 154px;
    min-height: 40px;
    height: 40px;
    margin: 0;
    padding: 0 20px;
    border-radius: 20px;
    font-family: var(--font-desktop-ui);
    font-size: 12px;
    font-weight: 600;
    line-height: normal;
    white-space: nowrap;
  }
}

@media (min-width: 760px) and (max-width: 1030px) {
  .context-panel[data-view="detail"]:has(.moment-detail.has-photo) {
    left: var(--rail-width);
  }

  .context-panel[data-view="detail"] .panel-dismiss {
    right: 30px;
  }

  .context-panel[data-view="detail"] .moment-detail .sheet-title-row {
    left: 30px;
  }

  .context-panel[data-view="detail"] :is(.moment-text, .pending-copy) {
    left: 30px;
    width: 46%;
  }

  .context-panel[data-view="detail"] :is(.moment-photo, .moment-photo-placeholder) {
    right: 44px;
    left: auto;
    width: 27%;
  }

  .context-panel[data-view="detail"] .report-link {
    left: 30px;
  }

  .context-panel[data-view="detail"] .detail-add {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Brighter right-panel hierarchy: paper-bright shell with a raised control surface. */
.context-panel:not([data-view="welcome"]),
.context-panel:not([data-view="welcome"]) .panel-content,
.context-panel:not([data-view="welcome"]) :is(
  .location-sheet,
  .contribution-view,
  .moment-detail,
  .participant-view,
  .anchor-view,
  .about-view,
  .contact-view,
  .menu-view
) {
  background-color: var(--paper-bright);
}

.context-panel:not([data-view="welcome"]) .participant-view .figma-page-navigation {
  background: var(--paper-bright);
}

.context-panel:not([data-view="welcome"]) .panel-handle {
  background: linear-gradient(var(--paper-bright) 72%, transparent);
}

.context-panel:not([data-view="welcome"]) :is(
  input[type="text"],
  input[type="email"],
  input[type="password"],
  select,
  textarea,
  .feeling-option,
  .choice-list label,
  .my-item,
  .preferences-form,
  .photo-preview,
  .upload-button
) {
  background-color: var(--paper-raised);
}

.context-panel[data-view="contribute"] .feeling-option:has(input:checked) {
  background-color: var(--feeling);
}

/* Pre-launch research and privacy additions. Existing type and surface tokens stay unchanged. */
.welcome-duration {
  position: absolute;
  z-index: 3;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-mobile-ui);
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

.compact-check {
  margin-top: 2px;
}

.moment-guidance,
.photo-guidance,
.moderation-note,
.review-status,
.moment-meta,
.my-item-review {
  color: var(--ink-faint);
  font-family: var(--font-desktop-ui);
  font-size: 11px;
  line-height: 15px;
}

.contribution-view .field-group > .moment-guidance {
  font-size: 11px;
  line-height: 15px;
}

.photo-guidance {
  margin: 8px 0 0;
}

.moment-meta {
  display: block;
  letter-spacing: 0.02em;
}

.review-status {
  margin: 0;
}

.nearby-link {
  color: var(--ink-soft);
  font-size: 10px;
}

.private-reference-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper-raised);
}

.private-reference-card span {
  grid-column: 1 / -1;
  color: var(--ink-faint);
  font-size: 10px;
}

.private-reference-card strong {
  overflow-wrap: anywhere;
  font-family: var(--font-map-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.private-reference-card button {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
}

.my-photo-preview {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
}

.about-outcome {
  padding: 4px 0 28px;
}

.about-outcome h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 26px;
}

.about-outcome span {
  display: inline-block;
  color: var(--ink-faint);
  font-family: var(--font-map-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.admin-withdrawal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 24px;
  padding: 24px;
  border-top: 1px solid var(--line);
}

.admin-withdrawal form,
.moderation-metadata {
  display: grid;
  gap: 10px;
}

.admin-withdrawal label,
.moderation-metadata label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 11px;
}

.admin-withdrawal input,
.moderation-metadata input,
.moderation-metadata select,
.moderation-metadata textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper-bright);
  color: var(--ink);
  font: inherit;
}

.moderation-metadata {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

@media (min-width: 760px) {
  .welcome-duration {
    top: 84.5%;
    left: 50%;
    width: 300px;
    transform: translateX(-50%);
  }

  .welcome-actions {
    left: 50%;
    width: 136px;
    transform: translateX(-50%);
  }

  .context-panel[data-view="contribute"] {
    height: min(620px, calc(100dvh - 40px));
  }

  .context-panel[data-view="contribute"] .contribution-view {
    height: 620px;
    min-height: 620px;
  }

  .context-panel[data-view="contribute"] .contribution-view .form-stack {
    height: 540px;
  }

  .context-panel[data-view="contribute"] .moment-field {
    height: 174px;
    grid-template-rows: 19px 112px auto;
  }

  .context-panel[data-view="contribute"] .moment-guidance {
    margin: 0 8px;
  }

  .context-panel[data-view="contribute"] .contribution-actions {
    top: 448px;
  }

  .context-panel[data-view="contribute"] .photo-guidance {
    position: absolute;
    top: 494px;
    left: 8px;
    width: 48%;
  }

  .context-panel[data-view="contribute"] .moderation-note {
    position: absolute;
    top: 494px;
    right: 8px;
    width: 46%;
    margin: 0;
    text-align: right;
  }

  .context-panel[data-view="detail"] .moment-meta {
    position: absolute;
    top: 82px;
    left: 44px;
  }

  .context-panel[data-view="detail"] .review-status {
    position: absolute;
    top: 305px;
    left: 44px;
    max-width: 310px;
  }

  .context-panel[data-view="detail"] .nearby-link {
    position: absolute;
    top: 321px;
    left: 44px;
  }

  .anchor-view .my-list {
    padding-top: 28px;
  }

  .context-panel[data-view="about"],
  .context-panel[data-view="about"] .panel-content {
    overflow-y: auto;
  }

  .context-panel[data-view="about"] .about-view {
    min-height: 1220px;
  }

  .about-copy {
    height: auto;
    overflow: visible;
    background: none;
    color: var(--ink);
  }
}

@media (max-width: 759px) {
  .welcome-duration {
    top: 82.8%;
    left: 10%;
    width: 80%;
  }

  .welcome-actions {
    left: 50%;
    width: 136px;
    transform: translateX(-50%);
  }

  .context-panel[data-view="participant"] .participant-view {
    min-height: 1120px;
  }

  .context-panel[data-view="contribute"] {
    height: min(735px, calc(100dvh - 28px));
    max-height: calc(100dvh - 28px);
  }

  .context-panel[data-view="contribute"] .panel-content {
    overflow-y: auto;
  }

  .contribution-view {
    min-height: 700px;
  }

  .contribution-view .moment-guidance,
  .contribution-view .photo-guidance,
  .contribution-view .moderation-note {
    width: min(330px, 100%);
    margin: 6px 0 0;
    font-family: var(--font-mobile-ui);
    font-size: 11px;
    line-height: 15px;
  }

  .contribution-actions {
    margin-top: 12px;
  }

  .moment-detail .moment-meta {
    margin: 8px 12px 0;
  }

  .moment-detail .review-status,
  .moment-detail .nearby-link {
    display: block;
    margin: 8px 12px 0;
  }

  .private-reference-card {
    margin-top: 22px;
  }

  .context-panel[data-view="about"] {
    overflow-y: auto;
  }

  .context-panel[data-view="about"] .about-view {
    height: auto;
    min-height: 1500px;
    overflow: visible;
  }

  .about-copy {
    height: auto;
    overflow: visible;
    background: none;
    color: var(--ink);
  }

  .admin-withdrawal {
    grid-template-columns: 1fr;
  }
}

/* Figma desktop refinements — Desktop / 03 Participant information and / 10 Report moment. */
@media (min-width: 760px) {
  .context-panel[data-view="participant"],
  .context-panel[data-view="participant"] .panel-content,
  .context-panel[data-view="participant"] .participant-view {
    background: var(--paper);
  }

  .context-panel[data-view="participant"] .participant-view {
    min-height: 720px;
    padding: 98px 24px 30px;
  }

  .participant-view .figma-form {
    gap: 12px;
    padding-top: 36px;
  }

  .participant-view .figma-form .field-group,
  .participant-view .figma-form .consent-block {
    gap: 8px;
  }

  .participant-view .figma-form .field-group > label {
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
  }

  .participant-view .figma-form :is(input[type="text"], input[type="email"], select) {
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper-bright);
    font-family: var(--font-desktop-ui);
    font-size: 13px;
    font-weight: 400;
    line-height: normal;
  }

  .participant-view .figma-form .field-help {
    margin: 0;
    font-family: var(--font-desktop-ui);
    font-size: 11px;
    line-height: 16px;
  }

  .participant-view .figma-form .consent-block {
    margin-top: 0;
  }

  .participant-view .figma-form .privacy-summary {
    margin: 0 0 0 32px;
  }

  .participant-view .figma-form .submit-button {
    left: 0;
    width: 186px;
    min-height: 40px;
    margin: 0 auto;
    font-family: var(--font-desktop-ui);
    font-size: 12px;
    font-weight: 600;
  }

  .context-panel[data-view="report"],
  .context-panel[data-view="report"] .panel-content {
    background: var(--paper-bright);
  }

  .context-panel[data-view="report"] .panel-content {
    padding: 74px 28px 30px;
  }

  .context-panel[data-view="report"] .panel-header h2 {
    max-width: 327px;
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -1.98px;
    line-height: 43.12px;
  }

  .context-panel[data-view="report"] .report-form {
    gap: 0;
    padding-top: 45px;
  }

  .context-panel[data-view="report"] .report-form .field-group {
    gap: 0;
    border: 0;
  }

  .context-panel[data-view="report"] .report-question {
    display: block;
    width: 100%;
    margin: 0;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    line-height: 18.9px;
    white-space: nowrap;
  }

  .context-panel[data-view="report"] .choice-list {
    border: 0;
  }

  .context-panel[data-view="report"] .choice-list label {
    min-height: 48px;
    border: 0;
    background: transparent;
    font-family: var(--font-desktop-ui);
    font-size: 13px;
    font-weight: 400;
    line-height: 18.85px;
  }

  .context-panel[data-view="report"] .choice-list input[type="radio"] {
    width: 18px;
    height: 18px;
    border: 1px solid #767676;
    background: #fff;
  }

  .context-panel[data-view="report"] .report-form .primary-button {
    width: 100%;
    min-height: 52px;
    margin-top: 47px;
    border-radius: 20px;
    font-family: var(--font-desktop-ui);
    font-size: 16px;
    font-weight: 600;
  }
}

/* Figma Desktop / 02 Welcome — final layout and particle handoff target. */
@media (min-width: 760px) {
  .welcome-desktop-meta {
    letter-spacing: -2.035px;
  }

  .welcome-desktop-meta span {
    top: 20px;
  }

  .welcome-desktop-brand {
    left: 2.8125%;
  }

  .welcome-desktop-year {
    top: 27px !important;
    left: 79.609375%;
  }

  .welcome-desktop-city {
    top: 27px !important;
    left: 90%;
  }

  .welcome-italy {
    --welcome-map-width: min(46.328125vw, calc((100dvh + 17px) * 593 / 737));
    top: 2.777778%;
    left: 50.976563%;
    width: var(--welcome-map-width);
    height: calc(var(--welcome-map-width) * 737 / 593);
    transform: translateX(-50%);
  }

  body.opening-intro-active .welcome-view .welcome-italy {
    transform: translateX(-50%) scale(1.015);
  }

  .welcome-title span:first-child,
  .welcome-title span:last-child {
    left: 50%;
    width: auto;
    transform: translateX(-50%);
  }

  .welcome-title span:first-child {
    top: 41.944444%;
  }

  .welcome-title span:last-child {
    top: 48.580556%;
  }

  .welcome-duration {
    display: none;
  }

  .welcome-actions {
    top: 80.555556%;
    left: 50%;
    width: 80px;
    height: 46px;
    transform: translateX(-50%);
  }

  body.opening-intro-active .welcome-view .welcome-actions {
    transform: translate(-50%, 10px);
  }

  .welcome-actions .primary-button {
    font-size: 15px;
  }

  .intro-italy-target {
    transform: none !important;
  }
}

/* Figma Desktop / 11 About — updated conversational layout. */
@media (min-width: 760px) {
  .context-panel[data-view="about"] {
    overflow: hidden;
    background: var(--paper);
  }

  .context-panel[data-view="about"] .panel-content {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper-bright);
  }

  .context-panel[data-view="about"] .about-view {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100%;
    padding: 92px 16px 48px 27px;
    overflow: visible;
    background: var(--paper-bright);
  }

  .context-panel[data-view="about"] .about-title {
    position: static;
    width: 384px;
    height: auto;
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -0.92px;
    line-height: 46px;
  }

  .context-panel[data-view="about"] .about-copy {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 47px;
    padding: 0 0 26px;
    overflow: visible;
    background: linear-gradient(to bottom, #111 0%, #111 14%, #e0dede 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
  }

  .context-panel[data-view="about"] .about-copy p {
    margin: 0 0 32px;
  }

  .context-panel[data-view="about"] .about-copy p:last-child {
    margin-bottom: 0;
  }
}

/* Figma mobile refinements — About gradient, /06 Point detail, /09 Contact. */
@media (max-width: 759px) {
  .context-panel[data-view="about"] {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .context-panel[data-view="about"] .about-copy {
    height: auto;
    overflow: visible;
    background: linear-gradient(to bottom, #111 0%, #111 14%, #e0dede 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .context-panel[data-view="about"] .about-copy p {
    margin: 0 0 clamp(24px, 3.4dvh, 30px);
  }

  .context-panel[data-view="about"] .about-copy p:last-child {
    margin-bottom: 0;
  }

  .context-panel[data-view="detail"] {
    top: auto;
    right: 10px;
    bottom: max(15px, var(--safe-bottom));
    left: 11px;
    width: auto;
    height: min(472px, calc(100dvh - 30px));
    max-height: none;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 43px;
    background: var(--paper-bright);
    box-shadow: 0 -8px 32px rgba(15, 15, 14, 0.24);
  }

  .context-panel[data-view="detail"] .panel-content {
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
  }

  .context-panel[data-view="detail"] .panel-dismiss {
    top: 26px;
    right: 28px;
    width: 33px;
    height: 33px;
  }

  .context-panel[data-view="detail"] .moment-detail {
    position: relative;
    width: 100%;
    height: 472px;
    min-height: 472px;
    display: block;
    padding: 0;
    overflow: hidden;
    background: var(--paper-bright);
  }

  .context-panel[data-view="detail"] .moment-detail .sheet-title-row {
    position: absolute;
    top: 24px;
    left: 38px;
    width: auto;
    height: 38px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0;
    padding: 0;
  }

  .context-panel[data-view="detail"] .detail-feeling-dot {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--feeling);
  }

  .context-panel[data-view="detail"] .sheet-title-row h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 38px;
    white-space: nowrap;
  }

  .context-panel[data-view="detail"] .moment-meta,
  .context-panel[data-view="detail"] .nearby-link,
  .context-panel[data-view="detail"] .review-status {
    display: none;
  }

  .context-panel[data-view="detail"] :is(.moment-text, .pending-copy) {
    position: absolute;
    top: 77px;
    left: 28px;
    width: 313px;
    height: 119px;
    max-height: 119px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: var(--font-mobile-ui);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
  }

  .context-panel[data-view="detail"] :is(.moment-photo, .moment-photo-placeholder) {
    position: absolute;
    top: 186px;
    left: 102px;
    width: 161px;
    height: 156px;
    margin: 0;
    overflow: hidden;
    border-radius: 30px;
    background: #d9d9d9;
    object-fit: cover;
  }

  .context-panel[data-view="detail"] .moment-photo-placeholder span {
    display: none;
  }

  .context-panel[data-view="detail"] .report-link {
    position: absolute;
    top: 376px;
    left: 28px;
    width: auto;
    height: 14px;
    display: block;
    margin: 0;
    padding: 0 0 2px;
    font-family: var(--font-mobile-ui);
    font-size: 10px;
    font-weight: 400;
    line-height: 14px;
    white-space: nowrap;
  }

  .context-panel[data-view="detail"] .detail-add {
    position: absolute;
    top: 402px;
    left: 106px;
    width: 157px;
    height: 40px;
    min-height: 40px;
    display: flex;
    margin: 0;
    padding: 0 20px;
    border-radius: 20px;
    font-family: var(--font-mobile-ui);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 16px;
    white-space: nowrap;
  }

  .context-panel[data-view="contact"] {
    overflow: hidden;
    background: var(--paper-bright);
  }

  .context-panel[data-view="contact"] .panel-dismiss {
    display: none;
  }

  .context-panel[data-view="contact"] .figma-page-navigation {
    position: absolute;
    z-index: 20;
    top: 47px;
    right: 30px;
    left: 30px;
    height: 18px;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  .context-panel[data-view="contact"] .figma-back {
    width: 20px;
    height: 11px;
    display: grid;
    place-items: center;
    padding: 0;
    font-size: 20px;
    line-height: 10px;
  }

  .context-panel[data-view="contact"] .figma-menu {
    width: 32px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    margin: 4px 0 0;
    padding: 0;
  }

  .context-panel[data-view="contact"] .figma-menu span {
    width: 32px;
    height: 1px;
    display: block;
    background: var(--ink);
  }

  .context-panel[data-view="contact"] .contact-view {
    position: relative;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    padding: 0;
    overflow: hidden;
    background: var(--paper-bright);
  }

  .context-panel[data-view="contact"] .contact-copy {
    position: static;
    width: 100%;
    height: 100%;
    padding: 0;
  }

  .context-panel[data-view="contact"] .contact-copy h1 {
    position: absolute;
    top: 55.6872%;
    left: 18px;
    width: 386px;
    height: 81px;
    margin: 0;
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 60px;
  }

  .context-panel[data-view="contact"] .contact-copy p {
    position: absolute;
    top: 66.3507%;
    left: 25px;
    width: 359px;
    height: 35px;
    margin: 0;
  }

  .context-panel[data-view="contact"] .contact-email {
    font-family: var(--font-mobile-mono);
    font-size: 24px;
    font-weight: 400;
    line-height: 25px;
    white-space: nowrap;
  }

  .context-panel[data-view="contact"] .contact-copy > button {
    position: absolute;
    top: 89.218%;
    left: 25px;
    width: 235px;
    height: 23px;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    font-family: var(--font-mobile-mono);
    font-size: 15px;
    font-weight: 400;
    line-height: 25px;
    color: var(--ink-faint);
    text-align: left;
    white-space: nowrap;
  }
}

/* Point-detail copy: mono typography with clean wrapping in every review state. */
.context-panel[data-view="detail"] :is(.moment-text, .pending-copy) {
  box-sizing: border-box;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-family: var(--font-mobile-mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 21px;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

/* Privacy uses the same circular close control as the other mobile panels. */
@media (max-width: 759px) {
  .context-panel[data-view="privacy"] .panel-dismiss {
    position: absolute;
    z-index: 30;
    top: calc(39px + var(--safe-top));
    right: 22px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(44, 43, 40, 0.34);
    color: var(--paper-bright);
    font-size: 0;
    line-height: 0;
  }

  .context-panel[data-view="privacy"] .panel-dismiss::before,
  .context-panel[data-view="privacy"] .panel-dismiss::after {
    position: absolute;
    width: 15px;
    height: 2.5px;
    content: "";
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
  }

  .context-panel[data-view="privacy"] .panel-dismiss::after {
    transform: rotate(-45deg);
  }
}

/* Mobile regression fixes: keep detail close control right-aligned and remove
   the contrasting selected-feeling dot from the filled option. */
@media (max-width: 759px) {
  .context-panel[data-view="detail"] .moment-detail .sheet-title-row {
    right: 28px;
    width: auto;
    justify-content: flex-start;
  }

  .context-panel[data-view="detail"] .moment-detail .sheet-close {
    margin-left: auto;
  }

  .context-panel[data-view="contribute"] .feeling-option:has(input:checked) .feeling-mark {
    visibility: hidden;
    background: var(--feeling);
  }
}
