/* ==========================================================================
 * Festival Studio - Details / New festival, and the shared location picker
 *
 * Two families of classes live here:
 *   st-details-*   the form in js/views/details.js
 *   st-tpl-*       New event's template cards (js/ui/template-picker.js)
 *   st-locpick*    the location picker in js/map/location-picker.js, which
 *                  the schedule's activity form also opens (pickLocation).
 *                  index.html loads this sheet on every screen.
 * Everything else comes from the kit in /studio/studio.css.
 *
 * INDEX
 *  1. Page layout, notes
 *  2. When
 *  2b. Member passes
 *  3. Where
 *  4. Location picker (shared)
 *  5. Cover image, upload states
 *  6. Marker: picture grid, logo, colour
 *  7. Marker preview (the app's marker, drawn in DOM)
 *  8. Map and points (advanced), reveal preview dialog
 *  9. Festival status
 * 10. Save bar
 * 11. Responsive, reduced motion
 * 12. Map style for attendees (B13)
 * 13. New event: start from a template (E4), st-tpl-*
 * ========================================================================== */

/* ---------- 1. Page layout, notes ---------- */
/* A form reads best in one measured column; the page header above it keeps
   the full width so the title lines up with every other section. */
.st-details { display: flex; flex-direction: column; gap: 16px; max-width: 960px; }
.st-details-notice[hidden] { display: none; }

/* One quiet line of context under a field or a group: icon + text. */
.st-details-note { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.5; color: var(--st-text-muted); }
.st-details-note > .st-icon { margin-top: 2px; }
.st-details-note strong { color: var(--st-text-dim); font-weight: 600; }
.st-details-note .st-textlink { font-size: inherit; }
.st-details-warn { color: #fcd34d; }
.st-details-points { display: flex; flex-direction: column; gap: 6px; padding-left: 2px; }
.st-details-points li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.5; color: var(--st-text-dim); }
.st-details-points li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--st-text-muted); }

/* ---------- 2. When ---------- */
.st-details-when__summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 13.5px; font-weight: 500; color: var(--st-text); font-variant-numeric: tabular-nums; }
.st-details-when__summary .st-icon { color: var(--st-text-muted); }
.st-details-when__summary .st-muted { font-weight: 400; }

/* ---------- 2b. Member passes ---------- */
.st-details-passes__note[hidden] { display: none; }

/* ---------- 3. Where ---------- */
.st-details-where__status:empty { display: none; }
.st-details-where__suggest { font-size: 12.5px; }
.st-details-where__suggest .st-textlink { font-size: 12.5px; }

/* ---------- 4. Location picker (shared) ---------- */
.st-locpick { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.st-locpick__search { position: relative; z-index: 3; }
.st-locpick__search .st-search__input { padding-right: 62px; }
.st-locpick__busy { position: absolute; right: 36px; display: grid; place-items: center; }
.st-locpick__results {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; max-height: 296px; overflow-y: auto; padding: 4px;
  background: var(--st-bg-pop); border: 1px solid var(--st-border-strong); border-radius: var(--st-r-10); box-shadow: var(--st-shadow-pop);
}
.st-locpick__option { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.st-locpick__option.is-active { background: rgba(255, 255, 255, 0.08); }
.st-locpick__option > .st-icon { margin-top: 2px; color: var(--st-text-muted); }
.st-locpick__option-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.st-locpick__option-name { font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.st-locpick__option-detail { font-size: 12.5px; color: var(--st-text-muted); overflow-wrap: anywhere; }
.st-locpick__note { padding: 10px 12px; font-size: 13px; line-height: 1.5; color: var(--st-text-dim); }

.st-locpick__map {
  position: relative; height: 340px; overflow: hidden;
  border: 1px solid var(--st-border-strong); border-radius: var(--st-r-12); background: var(--st-bg-elev);
}
/* Sized, not positioned: Mapbox's own stylesheet sets position: relative on
   the container and loads after this one. */
.st-locpick__canvas { width: 100%; height: 100%; }
.st-locpick__loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px; color: var(--st-text-dim); background: var(--st-bg-elev);
}
.st-field.is-invalid .st-locpick__map { border-color: var(--st-red); box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.22); }
/* Mapbox positions the marker element itself with a transform - only paint here. */
.st-locpick__pin { cursor: grab; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }
.st-locpick__pin:active { cursor: grabbing; }

.st-locpick__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; min-height: 30px; }
.st-locpick__foot[hidden] { display: none; }
.st-locpick__coords { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--st-text-dim); }
.st-locpick__coords .st-icon { color: var(--st-lavender); }
.st-locpick__coords.is-empty { color: var(--st-text-muted); }

/* The map could not start: say so, and offer coordinates instead. */
.st-locpick__map.is-unavailable { height: auto; border-style: dashed; }
.st-locpick__unavailable { display: grid; justify-items: center; gap: 6px; padding: 24px; text-align: center; }
.st-locpick__unavailable-title { font-size: 15px; font-weight: 600; }
.st-locpick__unavailable-text { max-width: 52ch; font-size: 13px; line-height: 1.5; color: var(--st-text-dim); }
.st-locpick__unavailable .st-btn { margin-top: 8px; }
.st-locpick__manual { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px; }
.st-locpick__manual[hidden] { display: none; }

.st-locpick-modal .st-locpick__map { height: min(54vh, 460px); }

/* ---------- 5. Cover image, upload states ---------- */
.st-details-cover { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.st-details-cover__frame {
  position: relative; aspect-ratio: 2 / 1; overflow: hidden;
  border: 1px solid var(--st-border-strong); border-radius: var(--st-r-12); background: var(--st-bg-elev);
}
.st-details-cover__frame img { width: 100%; height: 100%; object-fit: cover; }
.st-details-cover__empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-size: 12.5px; color: var(--st-text-muted);
}
.st-details-cover__side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.st-details-cover__side .st-field__hint { max-width: 60ch; }
.st-details-upload { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.st-details-upload .st-field__error[hidden] { display: none; }

/* A file dragged over a frame, and an upload in progress (the button next
   to it carries the busy state for assistive tech). */
.st-details-cover__frame.is-drop, .st-details-logo__thumb.is-drop { outline: 2px dashed var(--st-focus); outline-offset: -5px; }
.st-details-cover__frame.is-busy::before, .st-details-logo__thumb.is-busy::before {
  content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(5, 6, 10, 0.62);
}
.st-details-cover__frame.is-busy::after, .st-details-logo__thumb.is-busy::after {
  content: ""; position: absolute; z-index: 2; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; animation: st-spin 0.8s linear infinite;
}

/* ---------- 6. Marker: picture grid, logo, colour ---------- */
.st-details-markerrow { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.st-details-markerrow__controls { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.st-details-glyphpanel { min-height: 84px; }
.st-details-glyphs { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; }
.st-details-glyphs--scroll {
  max-height: 176px; overflow-y: auto; padding: 8px; overscroll-behavior: contain;
  border: 1px solid var(--st-border); border-radius: var(--st-r-10); background: var(--st-bg-elev);
}
.st-details-glyph {
  display: grid; place-items: center; height: 38px; min-width: 0; border-radius: var(--st-r-8);
  border: 1px solid var(--st-border); background: rgba(255, 255, 255, 0.02); color: var(--st-text-dim);
  transition: background var(--st-ease), border-color var(--st-ease), color var(--st-ease);
}
.st-details-glyphs--scroll .st-details-glyph { border-color: transparent; background: transparent; }
.st-details-glyph:hover { background: var(--st-bg-hover); border-color: var(--st-border-strong); color: var(--st-text); }
.st-details-glyph[aria-pressed="true"] { background: rgba(109, 92, 255, 0.2); border-color: rgba(124, 92, 255, 0.75); color: #fff; }
.st-details-glyphs.is-under-image .st-details-glyph[aria-pressed="true"] { background: rgba(255, 255, 255, 0.05); border-color: var(--st-border-strong); border-style: dashed; color: var(--st-text-dim); }
.st-details-glyph__emoji { font-size: 20px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

.st-details-logo { display: flex; align-items: flex-start; gap: 16px; }
.st-details-logo__thumb {
  --st-marker-color: #db2777;
  position: relative; flex: 0 0 auto; width: 72px; height: 72px; overflow: hidden; display: grid; place-items: center;
  border-radius: 50%; background: var(--st-marker-color); box-shadow: inset 0 0 0 3px #fff; color: rgba(255, 255, 255, 0.9);
}
.st-details-logo__thumb img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: cover; border-radius: 50%; }
.st-details-logo__side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

/* ---------- 7. Marker preview ---------- */
.st-details-preview { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* The land colour of the Outdoors style shows until the map image arrives,
   and stays when there is no position yet. */
.st-details-preview__stage {
  position: relative; height: 210px; overflow: hidden;
  border: 1px solid var(--st-border-strong); border-radius: var(--st-r-12); background: #e3ead8;
}
.st-details-preview__map { position: absolute; inset: 0; }
.st-details-preview__map img { width: 100%; height: 100%; object-fit: cover; }
.st-details-preview__caption { font-size: 12.5px; line-height: 1.45; color: var(--st-text-muted); }

/* Sizes are the app's logical pixels (icon_image_service.dart _paintMarker,
   enlarged 1.3x for festivals) times --st-marker-k, the layer's icon-size.
   The disc centre sits on the coordinate, here the middle of the stage. */
.st-details-marker {
  --st-marker-k: 1.15;
  --st-marker-color: #db2777;
  position: absolute; left: 50%; top: calc(50% - 23.4px * var(--st-marker-k)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: calc(4px * var(--st-marker-k));
}
.st-details-marker__disc {
  position: relative; display: grid; place-items: center; flex: 0 0 auto;
  width: calc(46.8px * var(--st-marker-k)); height: calc(46.8px * var(--st-marker-k));
  border-radius: 50%; background: var(--st-marker-color); color: #fff;
}
/* The white ring is drawn over the picture, inside the edge. */
.st-details-marker__disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 calc(2px * var(--st-marker-k)) #fff; pointer-events: none; }
.st-details-marker__disc > .st-icon { width: calc(26px * var(--st-marker-k)); height: calc(26px * var(--st-marker-k)); }
.st-details-marker__emoji { font-size: calc(28.6px * var(--st-marker-k)); line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.st-details-marker__clip { position: absolute; inset: calc(2px * var(--st-marker-k)); display: grid; place-items: center; overflow: hidden; border-radius: 50%; }
.st-details-marker__image { width: 100%; height: 100%; object-fit: cover; }
.st-details-marker__pill {
  display: inline-flex; align-items: center; white-space: nowrap;
  height: calc(20.1px * var(--st-marker-k)); padding: 0 calc(8px * var(--st-marker-k)); border-radius: calc(10px * var(--st-marker-k));
  background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  font-size: calc(11px * var(--st-marker-k)); line-height: 1; font-weight: 600;
}
.st-details-marker__short { color: rgba(0, 0, 0, 0.87); }
.st-details-marker__sep { margin: 0 calc(4px * var(--st-marker-k)); color: rgba(0, 0, 0, 0.38); }
.st-details-marker__sep[hidden] { display: none; }
.st-details-marker__time { font-weight: 700; color: rgba(0, 0, 0, 0.54); }
.st-details-marker__time.is-live { color: #22c55e; }

/* ---------- 8. Map and points (advanced), reveal preview ---------- */
.st-details-advanced__summary {
  position: relative; display: block; padding: 16px 56px 16px 20px; cursor: pointer; list-style: none; border-radius: var(--st-r-14);
}
.st-details-advanced__summary::-webkit-details-marker { display: none; }
.st-details-advanced__summary:hover .st-details-advanced__chevron { color: var(--st-text); }
.st-details-advanced__summary:focus-visible { outline-offset: -2px; }
.st-details-advanced__heading { display: flex; align-items: center; gap: 10px; }
.st-details-advanced__summary .st-card__desc { display: block; }
.st-details-advanced__chevron { position: absolute; right: 20px; top: 20px; color: var(--st-text-muted); transition: transform var(--st-ease), color var(--st-ease); }
.st-details-advanced[open] .st-details-advanced__chevron { transform: rotate(180deg); }
.st-details-advanced[open] > .st-card__body { padding-top: 4px; }
.st-details-advanced__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.st-details-reveal { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.st-details-reveal__end { font-size: 12.5px; color: var(--st-text-muted); white-space: nowrap; }
.st-details-reveal__value {
  min-width: 44px; padding: 3px 8px; border-radius: var(--st-r-8); text-align: center;
  font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--st-border);
}
.st-details-range { flex: 1 1 200px; max-width: 320px; height: 24px; margin: 0; accent-color: var(--st-violet-2); cursor: pointer; }
.st-details-range:focus-visible { outline: 2px solid var(--st-focus); outline-offset: 2px; border-radius: 6px; }
.st-details-reveal .st-btn { margin-left: 6px; }

/* Locked while member passes are off (the input itself dims as :disabled). */
.st-details-advanced .st-field.is-off .st-field__label,
.st-details-advanced .st-field.is-off .st-field__hint { opacity: 0.6; }

.st-details-unit { position: relative; display: flex; align-items: center; }
.st-details-unit .st-input { padding-right: 68px; }
.st-details-unit__suffix { position: absolute; right: 12px; font-size: 12.5px; color: var(--st-text-muted); pointer-events: none; }

.st-details-revealmap {
  position: relative; height: min(50vh, 440px); overflow: hidden;
  border: 1px solid var(--st-border-strong); border-radius: var(--st-r-12); background: var(--st-bg-elev);
}
.st-details-revealstate { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-height: 22px; font-size: 13px; color: var(--st-text-dim); font-variant-numeric: tabular-nums; }

/* ---------- 9. Festival status ---------- */
.st-details-status { display: flex; align-items: flex-start; gap: 12px; }
.st-details-status .st-badge { margin-top: 1px; }

/* ---------- 10. Save bar ---------- */
/* Sticks to the bottom of the scrolling page while the form has unsaved
   changes, and comes to rest under the last card. */
.st-details-bar {
  position: sticky; bottom: 16px; z-index: 30; margin-top: 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding: 10px 12px 10px 16px;
  background: var(--st-bg-pop); border: 1px solid var(--st-border-strong); border-radius: var(--st-r-12); box-shadow: var(--st-shadow-pop);
}
.st-details-bar[hidden] { display: none; }
.st-details-bar__text { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; min-width: 0; }
.st-details-bar__state { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.st-details-bar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-amber); }
.st-details-bar__detail { font-size: 12.5px; color: var(--st-text-muted); }
.st-details-bar__detail:empty { display: none; }
.st-details-bar__detail.is-problem { color: var(--st-red-text); font-weight: 500; }
/* Toasts sit in the same corner as the bar's buttons; lift them clear of it. */
body:has(.st-details-bar:not([hidden])) .st-toasts { bottom: 86px; }
.st-details-bar__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* ---------- 11. Responsive, reduced motion ---------- */
@media (max-width: 1180px) {
  .st-details-markerrow { grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
  .st-details-cover { grid-template-columns: 260px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .st-details-markerrow { grid-template-columns: minmax(0, 1fr); }
  .st-details-preview { max-width: 360px; }
  .st-details-advanced__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .st-details-cover { grid-template-columns: minmax(0, 1fr); }
  .st-details-cover__frame { max-width: 360px; }
  .st-details-advanced__grid { grid-template-columns: minmax(0, 1fr); }
  .st-locpick__map { height: 280px; }
  .st-locpick__manual { grid-template-columns: minmax(0, 1fr); }
  .st-details-bar { flex-wrap: wrap; bottom: 8px; }
  .st-details-bar__actions { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .st-details-cover__frame.is-busy::after, .st-details-logo__thumb.is-busy::after { animation-duration: 1.4s; }
  .st-details-advanced__chevron { transition: none; }
}

/* ---------- 12. Map style for attendees (B13) ---------- */
.st-details-mapstyle { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 12px; }
.st-details-mapstyle__card {
  display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; text-align: left;
  border: 1px solid var(--st-border); border-radius: var(--st-r-12); background: var(--st-bg-elev);
  color: var(--st-text); font: inherit; cursor: pointer;
  transition: border-color var(--st-ease), box-shadow var(--st-ease);
}
.st-details-mapstyle__card:hover { border-color: var(--st-border-strong); }
.st-details-mapstyle__card.is-active { border-color: rgba(124, 92, 255, 0.85); box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.85); }
.st-details-mapstyle__card:focus-visible { outline: 2px solid var(--st-focus); outline-offset: 2px; }
.st-details-mapstyle__thumb {
  position: relative; display: block; aspect-ratio: 2 / 1; background-color: #1b2234; background-size: cover; background-position: center;
}
/* Without a pin (or offline) the thumbnails fall back to a hint of each style. */
.st-details-mapstyle__thumb--default { background-image: linear-gradient(135deg, #dfe8d6, #c9d9c0 55%, #b8d1e6); }
.st-details-mapstyle__thumb--satellite { background-image: linear-gradient(135deg, #34452e, #2a3a26 50%, #4d5a44); }
.st-details-mapstyle__card.is-active .st-details-mapstyle__thumb::after {
  content: ''; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--st-violet-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.st-details-mapstyle__text { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.st-details-mapstyle__label { font-size: 13.5px; font-weight: 600; }
.st-details-mapstyle__help { font-size: 12.5px; line-height: 1.45; color: var(--st-text-muted); }

@media (max-width: 560px) {
  .st-details-mapstyle { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .st-details-mapstyle__card { transition: none; }
}

/* ---------- 13. New event: start from a template (E4) ---------- */
.st-tpl { display: flex; flex-direction: column; gap: 14px; max-width: 1080px; }
.st-tpl[hidden] { display: none; }
.st-tpl__title { margin: 0; font-size: 16px; font-weight: 600; color: var(--st-text); }
.st-tpl__lead { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--st-text-dim); max-width: 680px; }
.st-tpl__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.st-tpl__item { display: flex; }
.st-tpl-card {
  display: flex; flex-direction: column; width: 100%; padding: 0; overflow: hidden; text-align: left;
  border: 1px solid var(--st-border); border-radius: var(--st-r-12); background: var(--st-bg-elev);
  color: var(--st-text); font: inherit; cursor: pointer;
  transition: border-color var(--st-ease), box-shadow var(--st-ease), transform var(--st-ease);
}
.st-tpl-card:hover { border-color: rgba(124, 92, 255, 0.6); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); transform: translateY(-1px); }
.st-tpl-card:focus-visible { outline: 2px solid var(--st-focus); outline-offset: 2px; }
.st-tpl-card__map { display: block; aspect-ratio: 240 / 132; background: #0f1a14; border-bottom: 1px solid var(--st-border); }
.st-tpl-card__map--blank { display: flex; align-items: center; justify-content: center; color: var(--st-text-muted); background: var(--st-bg-card); }
.st-tpl-card--blank { border-style: dashed; }
.st-tpl-map { display: block; width: 100%; height: 100%; }
.st-tpl-map__ground { fill: #13221a; }
.st-tpl-map__spot { stroke: #ffffff; stroke-width: 1.2; }
.st-tpl-card__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.st-tpl-card__name { font-size: 14px; font-weight: 600; }
.st-tpl-card__desc { font-size: 12.5px; line-height: 1.45; color: var(--st-text-dim); }
.st-tpl-card__facts { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.st-tpl-card__fact { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--st-text-muted); font-variant-numeric: tabular-nums; }

.st-tpl-banner {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--st-border); border-radius: var(--st-r-12); background: var(--st-bg-elev);
}
.st-tpl-banner__map { flex: none; width: 84px; height: 46px; overflow: hidden; border-radius: var(--st-r-8); background: #0f1a14; }
.st-tpl-banner__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--st-r-8); background: var(--st-bg-card); color: var(--st-text-muted); }
.st-tpl-banner__text { flex: 1; margin: 0; font-size: 13.5px; line-height: 1.45; }
.st-tpl-bannerhost:empty { display: none; }

@media (max-width: 560px) {
  .st-tpl__grid { grid-template-columns: minmax(0, 1fr); }
  .st-tpl-banner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .st-tpl-card { transition: none; }
  .st-tpl-card:hover { transform: none; }
}
