/* Customer app: Map → Video → Plan → Place. Mobile first. */

/* ---------- Discover (map + rail) ---------- */
.discover-search {
  margin-bottom: 12px;
}
/* On a phone the heading gives way to the filters and the map. */
@media (max-width: 800px) {
  #view-map .page-head.compact h1 {
    font-size: 21px;
    margin-bottom: 0;
  }
}
.search-row {
  display: flex;
  gap: 8px;
}
.search-row input {
  margin-top: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.zone-pick {
  margin: 0;
  flex: 0 1 auto;
  max-width: 46%;
}
.zone-pick select {
  margin-top: 0;
  padding-left: 10px;
  padding-right: 6px;
}
.chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 0 2px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chips button {
  white-space: nowrap;
  flex: none;
  font-size: 13px;
  border-radius: 22px;
}
.chips button[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
/* Icons are drawn from path data; their colour follows the text unless a rule says otherwise. */
.icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: none;
}
/* The round mark of a group: its colour with the sub-type's icon in white, as on the map. */
.type-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--group, var(--ink));
  display: inline-grid;
  place-items: center;
  flex: none;
}
.type-dot .icon {
  width: 15px;
  height: 15px;
  fill: white;
}
.chips.groups button[data-group]:not([data-group='all']) {
  padding-left: 8px;
}
.chips.groups button[aria-pressed='true'] {
  background: var(--group, var(--ink));
  border-color: var(--group, var(--ink));
}
.chips.groups button[aria-pressed='true'] .type-dot {
  background: white;
}
.chips.groups button[aria-pressed='true'] .type-dot .icon {
  fill: var(--group);
}
.chips.kinds {
  padding-top: 6px;
}
.chips.kinds button[data-kind] .icon {
  fill: var(--group);
}
.chips.kinds button[data-kind][aria-pressed='true'] {
  background: #f1f5f2;
  background: color-mix(in srgb, var(--group) 13%, white);
  border-color: var(--group);
  color: var(--ink);
  font-weight: 650;
}
.chip-gap {
  flex: none;
  width: 1px;
  background: var(--line);
  margin: 8px 3px;
}
.eyebrow.type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.4px;
  text-transform: none;
  font-size: 12px;
}
.eyebrow.type .type-dot {
  width: 20px;
  height: 20px;
}
.eyebrow.type .type-dot .icon {
  width: 12px;
  height: 12px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 10px;
}
.badge-line {
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--soft);
  font-weight: 600;
}
.badge-line.ticket {
  background: #fff3d6;
  color: #6b4e00;
}
.badge-line.free,
.badge-line.open {
  background: #e2f1e8;
  color: #1f5c40;
}
.badge-line.closed,
.badge-line.warn {
  background: #f4e3e0;
  color: #7d2a22;
}
.badge-line.video {
  background: var(--ink);
  color: white;
}
.discover {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.map-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e5e9df;
}
/* Tall enough to be the main surface, short enough that the page can still be scrolled
   from the search above or the cards below. */
#map {
  height: 46svh;
  min-height: 300px;
  max-height: 520px;
  width: 100%;
}
.map-tools {
  position: absolute;
  left: 10px;
  right: 52px;
  top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}
.map-tools button {
  pointer-events: auto;
  font-size: 12.5px;
  box-shadow: 0 4px 15px #243d371f;
  padding: 8px 12px;
}
/* Sits above the attribution line at the bottom of the map, never over it. */
.map-note {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 34px;
  z-index: 2;
  background: #fffffff2;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.map-note button {
  min-height: 36px;
  padding: 6px 12px;
  flex: none;
}
.map-pin {
  background: none;
  border: 0;
  padding: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}
.map-pin-frame {
  width: 52px;
  height: 60px;
  border-radius: 14px;
  border: 3px solid white;
  box-shadow: 0 5px 18px #243d3740;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: block;
}
.map-pin-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.map-pin-frame.glyph {
  display: grid;
  place-items: center;
  color: white;
  font-size: 22px;
}
.map-pin-play {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #243d37cc;
  color: white;
  font-size: 9px;
  display: grid;
  place-items: center;
}
.map-pin-label {
  font-size: 11px;
  font-weight: 650;
  max-width: 104px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
  background: #ffffffe6;
  padding: 1px 6px;
  border-radius: 8px;
}
.map-pin.selected {
  z-index: 3;
}
.map-pin.selected .map-pin-frame,
.map-pin:hover .map-pin-frame,
.map-pin:focus-visible .map-pin-frame {
  border-color: var(--accent);
  transform: scale(1.18);
}
.map-pin:focus-visible {
  outline: none;
}
.map-here {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1d6fd6;
  border: 3px solid white;
  box-shadow: 0 0 0 6px #1d6fd633;
  display: block;
}
.maplibregl-ctrl-attrib {
  font-size: 11px;
}
/* A cluster: white disc, ring in group colours (drawn as SVG), total in the middle. */
.map-cluster {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 50%;
  min-height: 0;
  background: none;
  box-shadow: 0 3px 10px #10221d38;
  cursor: pointer;
}
.map-cluster svg {
  position: absolute;
  inset: 0;
}
.map-cluster span {
  position: relative;
  font-size: 14px;
  font-weight: 750;
  color: var(--ink);
}
/* The small card that opens over a tapped pin. It is anchored to the pin, never pinned
   to the bottom of the screen. */
.maplibregl-popup {
  z-index: 5;
}
.pin-popup .maplibregl-popup-content {
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 28px #10221d33;
  /* MapLibre sets its own font on the map; the card speaks with the page's voice. */
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}
.pin-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
  margin: 6px 0 2px;
}
.pin-card .badges {
  margin: 6px 0 0;
}
.pin-card .actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}
.pin-card .actions .primary {
  flex: 1 1 auto;
}
.sort-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 13px;
  margin: 0 0 10px;
  white-space: nowrap;
}
.sort-pick select {
  margin-top: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.rail-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
}
.rail-heading a {
  color: var(--accent);
  white-space: nowrap;
  padding: 10px 0;
}
/* Sideways swipe on a phone; the next card peeks in to show there is more. */
.rail {
  position: relative;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 14px;
  scrollbar-width: thin;
}
.rail .place-card {
  flex: 0 0 80%;
  max-width: 320px;
  scroll-snap-align: center;
}
.place-card {
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
}
.place-card.selected {
  border-color: var(--accent);
}
.place-card.gone {
  border-style: dashed;
}
.poster {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 0;
  width: 100%;
  height: 150px;
  display: block;
  overflow: hidden;
  background: var(--soft);
}
.poster img,
.poster .cover-glyph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-glyph {
  display: grid !important;
  place-items: center;
  background: var(--group, #416e69);
  background: linear-gradient(
    150deg,
    color-mix(in srgb, var(--group, #416e69) 55%, white),
    var(--group, #416e69)
  );
  color: white;
  font-size: 40px;
}
.cover-glyph .icon {
  width: 34%;
  max-width: 64px;
  height: auto;
  aspect-ratio: 1;
  fill: white;
}
.poster-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: #243d37dc;
  color: white;
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 12px;
}
.place-card .copy {
  padding: 14px;
}
.place-card h3 {
  margin: 4px 0;
  font-size: 18px;
  line-height: 1.25;
}
.place-card p {
  font-size: 12.5px;
  margin: 4px 0 12px;
}
.place-card .badges {
  margin: -4px 0 12px;
}
.place-card .actions {
  margin-bottom: 4px;
}
.place-card .actions button {
  font-size: 13px;
  padding: 8px 12px;
}
.place-card .text-link {
  font-size: 13px;
  padding: 10px 0;
  display: inline-block;
}
.saved-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ---------- Video ---------- */
.feed-scope {
  font-size: 13px;
  margin-bottom: 10px;
}
.feed-scope .text-link {
  margin-left: 8px;
  color: var(--accent);
  cursor: pointer;
}
/* One review per screen, native vertical scroll with snap. The feed ends at the bottom
   of the small viewport, so the trip button is never under the browser toolbar.
   --feed-top is measured by the view when it renders. */
.feed {
  height: calc(100svh - var(--feed-top, 210px) - 12px);
  min-height: 430px;
  max-height: 780px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  border-radius: 22px;
  background: #172a25;
  overscroll-behavior-y: contain;
}
.video-slide {
  position: relative;
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  padding: 14px;
  color: white;
}
.feed.stepping .video-slide {
  scroll-snap-stop: normal;
}
.video-slide.more {
  align-items: center;
  justify-content: center;
}
/* The player takes whatever height the text and buttons below leave free, so one
   review — video, name and the trip button — fits in the feed without scrolling. */
.video-frame {
  position: relative;
  flex: 1 1 0;
  min-height: 170px;
  border-radius: 14px;
  overflow: hidden;
  background: #0d1915;
  display: flex;
}
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-error {
  position: absolute;
  inset: auto 10px 10px;
  background: #fff4ee;
  color: var(--ink);
  padding: 12px;
  border-radius: var(--radius);
}
.media-error p {
  color: var(--ink);
  margin-bottom: 8px;
  font-size: 13px;
}
.video-copy {
  padding: 12px 52px 4px 2px;
}
.video-copy h2 {
  font-size: 20px;
  margin: 6px 0 4px;
  line-height: 1.25;
}
.video-copy p {
  color: #dbe3dc;
  font-size: 13px;
  margin-bottom: 8px;
}
.video-copy .eyebrow {
  color: #c2cdc4;
}
.place-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}
.chip {
  border: 1px solid #ffffff55;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 13px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.video-copy .actions button {
  font-size: 13px;
}
.more-places summary {
  font-size: 13px;
  color: #dbe3dc;
}
.more-place {
  padding: 8px 0;
  border-top: 1px solid #ffffff22;
  font-size: 14px;
}
.more-place .actions {
  margin-top: 6px;
}
/* Buttons that do what a swipe does, for people who cannot or would rather not swipe. */
.feed-step {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #c2cdc4;
}
.feed-step button {
  width: 44px;
  padding: 0;
  background: #ffffff1a;
  border-color: #ffffff40;
  color: white;
  font-size: 18px;
}
.video-side {
  display: none;
}

/* ---------- Plan ---------- */
.trip-meta {
  margin-bottom: 8px;
  font-size: 14px;
}
.trip-meta summary {
  color: var(--accent);
}
.day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  margin-bottom: 6px;
}
.day-tabs button {
  white-space: nowrap;
  flex: none;
}
.day-tabs [aria-selected='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.day-tabs .count {
  font-size: 11px;
  background: #ffffff33;
  border: 1px solid currentColor;
  border-radius: 20px;
  padding: 0 6px;
  opacity: 0.8;
}
.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 12px;
  max-width: 780px;
}
.plan-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
}
.plan-item.gone {
  border-style: dashed;
}
.plan-item .number {
  width: 30px;
  height: 30px;
  flex: none;
  background: var(--ink);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.plan-thumb {
  width: 54px;
  height: 68px;
  flex: none;
  object-fit: cover;
  border-radius: 10px;
  font-size: 22px !important;
}
.plan-item .copy {
  flex: 1;
  min-width: 0;
}
.plan-item h3 {
  margin: 0 0 4px;
}
.plan-item p {
  font-size: 13px;
  margin-bottom: 10px;
}
.plan-item .actions button {
  padding: 8px 12px;
  min-width: 44px;
}
.plan-item select {
  min-height: 44px;
  padding: 8px 10px;
  font-size: 14px;
}

/* ---------- Place ---------- */
.detail-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 26px;
}
.detail-cover {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}
.detail-copy h1 {
  margin: 6px 0;
}
.detail-copy h2 {
  font-size: 17px;
  margin: 22px 0 8px;
}
.detail-copy .address {
  margin-bottom: 14px;
}
.detail-copy .description {
  margin-top: 16px;
  color: var(--ink);
  white-space: pre-line;
}
.facts {
  margin: 0;
  display: grid;
  gap: 10px;
}
.facts dt {
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}
.facts dd {
  margin: 0;
}
.facts .help {
  display: block;
}
.facts.tickets dt {
  font-size: 14px;
  color: var(--ink);
}
.stale {
  display: block;
  color: #7d2a22;
  font-weight: 600;
}
.hours {
  margin: 0;
  display: grid;
  gap: 2px;
  max-width: 340px;
}
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  padding: 3px 0;
}
.hours dt {
  color: var(--muted);
}
.hours dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.hours .today {
  font-weight: 700;
}
.hours .today dt {
  color: var(--ink);
}
.open-state {
  font-weight: 650;
  margin-bottom: 8px;
}
.open-state.open {
  color: var(--ok);
}
.open-state.closed {
  color: var(--danger);
}
.open-state .help {
  font-weight: 400;
}
.traits {
  margin: 14px 0 0;
  padding-left: 18px;
  font-size: 14px;
}
.review-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
}
.review-tile {
  position: relative;
  flex: 0 0 180px;
  display: grid;
  gap: 4px;
  font-size: 13px;
}
.review-tile img,
.review-tile .cover-glyph {
  width: 180px;
  height: 230px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.review-tile .poster-tag {
  top: 196px;
  bottom: auto;
}
.review-tile small {
  color: var(--muted);
}

@media (min-width: 801px) {
  /* Search beside the group chips; sub-types and yes/no filters on their own line. */
  .discover-search {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 10px 20px;
    align-items: center;
    margin-bottom: 16px;
  }
  .chips {
    padding: 0;
  }
  .chips.kinds {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }
  /* Rail on the left, map as the large surface on the right; same order of actions. */
  .discover {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }
  .rail-panel {
    order: -1;
  }
  #map {
    height: calc(100svh - 320px);
    min-height: 520px;
    max-height: 820px;
  }
  .rail {
    display: block;
    height: calc(100svh - 420px);
    min-height: 420px;
    max-height: 775px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 8px 0 0;
  }
  .rail .place-card {
    max-width: none;
    margin-bottom: 14px;
  }
  .saved-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .video-layout {
    display: grid;
    grid-template-columns: minmax(0, 440px) 300px;
    gap: 44px;
    justify-content: center;
  }
  .video-side {
    display: block;
    padding-top: 44px;
  }
  .video-side h1 {
    font-size: 34px;
  }
  .video-side .actions {
    margin-top: 18px;
  }
  .detail-page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
  }
  .detail-cover {
    height: 520px;
  }
  .plan-thumb {
    width: 76px;
    height: 92px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .map-pin-frame {
    transition:
      transform 0.4s ease-out,
      border-color 0.2s;
  }
  .place-card {
    transition: border-color 0.2s;
  }
  #view-page > * {
    animation: appear 0.32s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------- Ăn gì bây giờ? ---------- */
.page-head.compact {
  flex-wrap: nowrap;
  align-items: center;
}
.page-head.compact > div {
  min-width: 0;
}
.eat-entry {
  flex: none;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 22px;
}
.eat-modes {
  margin-bottom: 12px;
}
.eat-card {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0;
  overflow: hidden;
  max-width: 920px;
}
.eat-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.eat-copy {
  padding: 16px 18px 18px;
}
.eat-copy h2 {
  font-size: 26px;
  margin: 6px 0 4px;
}
.eat-where,
.eat-copy .address {
  margin-bottom: 4px;
}
.eat-where strong {
  color: var(--ink);
}
.eat-why {
  font-size: 13.5px;
  margin: 10px 0 14px;
}
.eat-why strong {
  color: var(--ink);
  font-weight: 600;
}
.eat-copy .actions {
  margin-bottom: 8px;
}
.eat-skip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.eat-skip button {
  font-size: 13px;
  border-radius: 22px;
}
.eat-scope {
  margin: 10px 0 0;
}
.eat-foot {
  margin-top: 18px;
  display: grid;
  gap: 8px;
  justify-items: start;
}
.eat-foot p {
  margin: 0;
}
@media (min-width: 801px) {
  .eat-card {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
  .eat-cover {
    height: 100%;
    min-height: 340px;
  }
  .eat-copy {
    padding: 26px 28px;
  }
}
/* One leading action per card: opening the place. Adding to the trip stays available. */
.eat-copy [data-actions] .primary:not([aria-pressed='true']) {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}
.eat-headline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.eat-headline > div {
  min-width: 0;
}
.eat-thumb {
  display: none !important;
}
@media (max-width: 800px) {
  /* On a phone the answer and its buttons are in view without scrolling, whatever the
     suggestion: the picture becomes a small square beside the name. */
  body[data-view='eat'] .page-head p,
  .eat-media {
    display: none;
  }
  .eat-thumb {
    display: block !important;
    flex: none;
    width: 68px;
    height: 68px;
    border-radius: 14px;
    object-fit: cover;
  }
  .cover-glyph.eat-thumb {
    display: grid !important;
  }
  .eat-modes {
    margin-bottom: 8px;
    padding-top: 0;
  }
  .eat-copy {
    padding-top: 14px;
  }
  .eat-why {
    margin: 4px 0 10px;
  }
}
@media (max-width: 800px) and (max-height: 700px) {
  /* A short phone screen: the picture gives way so the answer needs no scrolling. */
  .eat-copy .address {
    display: none;
  }
  .eat-copy {
    padding-top: 12px;
  }
  .eat-copy h2 {
    font-size: 22px;
  }
}

/* ---------- Góp một địa điểm ---------- */
.contribute-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}
.contribute-position {
  display: grid;
  gap: 6px;
  justify-items: start;
  margin: 4px 0 12px;
}
.contribute-position button[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.contribution-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.contribution-list h3 {
  margin: 8px 0 4px;
}
.contribution-list p {
  margin-bottom: 8px;
}
@media (min-width: 801px) {
  .contribute-grid {
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    gap: 36px;
  }
}
.contribution-composer fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.contribute-intro h2 {
  margin: 12px 0 18px;
  font-size: 24px;
  letter-spacing: -0.6px;
}
.contribute-pickers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 18px;
}
.contribute-pickers button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 98px;
  gap: 8px;
  padding: 12px;
  text-align: left;
  background: #edf4f0;
  border-color: #c9dcd1;
  border-radius: 16px;
  white-space: normal;
}
.contribute-pickers small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.contribute-pickers button:hover {
  background: #dfeee4;
  border-color: #668b76;
}
.contribute-pickers button:focus-visible {
  outline: 3px solid #487e66;
  outline-offset: 3px;
}
.contribute-details {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 16px 0;
}
.contribute-details summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
}
.contribute-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.6;
}
.contribute-consent input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.selected-files {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
}
.selected-files li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #f3f5f1;
  border-radius: 10px;
}
.selected-files span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.selected-files small {
  display: block;
  color: var(--muted);
}
.selected-files button {
  flex-shrink: 0;
}
.contribution-composer [type='submit'] {
  width: 100%;
  min-height: 50px;
}
@media (max-width: 380px) {
  .contribute-pickers {
    grid-template-columns: 1fr;
  }
  .contribute-pickers button {
    min-height: 64px;
  }
}
.contribution-studio {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 10px;
}
.contribution-studio summary {
  min-height: 44px;
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
}
.studio-task {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 12px;
}
.studio-task h3 {
  font-size: 17px;
}
.studio-task canvas {
  display: block;
  max-width: 100%;
  max-height: 400px;
  width: 100%;
  height: auto;
  touch-action: none;
  background: #edf1eb;
  border-radius: 12px;
}
.studio-task button {
  margin: 8px 0;
}
.studio-crop-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.studio-crop-values label {
  font-size: 12px;
  min-width: 0;
}
.studio-crop-values input {
  width: 100%;
  padding: 8px;
}
.selected-files li > div {
  min-width: 0;
  flex: 1;
}
.selected-files img {
  display: block;
  max-height: 120px;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
}
.selected-files video {
  display: block;
  width: 160px;
  max-width: 100%;
  max-height: 220px;
  margin-bottom: 8px;
  border-radius: 10px;
}
.selected-files audio {
  display: block;
  width: 100%;
  margin-bottom: 8px;
}
