/* Naber Community Header Gallery.
   Public: the slides sit inside the existing .naber-hero-media layer (same size, radius and
   clipping as the single cover) so the header layout never shifts. Controls sit above the scrim
   and stay clear of the Community title.
   Editor: Community Settings → Appearance → Header & Cover → Cover Gallery. */

/* ---------- Public header ---------- */
/* Own stacking context: slide z-indexes must never rise above the scrim (title, kicker, avatar). */
.naber-hero-media.naber-hg { background-image: none; isolation: isolate; z-index: 0; }
.naber-hg .naber-hg-slide {
  position: absolute; inset: 0;
  background-size: cover; background-repeat: no-repeat; background-position: center;
  opacity: 0; z-index: 0;
  transition: opacity var(--hg-dur, 600ms) ease;
  will-change: opacity;
}
.naber-hg .naber-hg-slide.is-active { opacity: 1; z-index: 2; }
/* Fade: the outgoing image stays fully visible underneath until the new one has faded in (no grey flash). */
.naber-hg .naber-hg-slide.is-leaving { opacity: 1; z-index: 1; transition: none; }
.naber-hg.is-hg-slide .naber-hg-slide { opacity: 1; transition: transform var(--hg-dur, 600ms) cubic-bezier(.22,.61,.36,1); will-change: transform; }
.naber-hg.is-hg-slide .naber-hg-slide.is-from-right { transform: translateX(100%); transition: none; }
.naber-hg.is-hg-slide .naber-hg-slide.is-from-left { transform: translateX(-100%); transition: none; }
.naber-hg.is-hg-slide .naber-hg-slide.is-to-left { transform: translateX(-100%); }
.naber-hg.is-hg-slide .naber-hg-slide.is-to-right { transform: translateX(100%); }
.naber-hg.is-hg-none .naber-hg-slide { transition: none; }
/* Visit / Random: hold the image back until the browser has picked it; reveal anyway if scripts never run. */
.naber-hg.is-hg-pending .naber-hg-slide.is-active { opacity: 0; animation: naber-hg-reveal 0s linear 1.2s forwards; }
@keyframes naber-hg-reveal { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .naber-hg .naber-hg-slide, .naber-hg.is-hg-slide .naber-hg-slide { transition: none !important; }
}

.naber-hero.has-hg-swipe { touch-action: pan-y; }
.naber-hg-controls { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 16px; }
.naber-hg-controls button { pointer-events: auto; }
.naber-hg-arrow {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; margin: 0;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.38);
  background: rgba(17,28,36,.36); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(10,20,28,.18);
  transition: background-color .15s ease, transform .15s ease, opacity .15s ease;
}
.naber-hg-arrow:hover { background: rgba(17,28,36,.58); }
.naber-hg-arrow:active { transform: scale(.94); }
.naber-hg-arrow:focus-visible, .naber-hg-dot:focus-visible, .naber-hg-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.naber-hg-controls.is-arrows-sides > .naber-hg-arrow { position: absolute; top: 50%; transform: translateY(-50%); }
.naber-hg-controls.is-arrows-sides > .naber-hg-arrow:active { transform: translateY(-50%) scale(.94); }
.naber-hg-controls.is-arrows-sides > .is-prev { left: 14px; }
.naber-hg-controls.is-arrows-sides > .is-next { right: 14px; }
.naber-hg-bar {
  position: absolute; bottom: 12px; left: 16px; right: 16px;
  display: flex; align-items: center; gap: 10px; justify-content: center; pointer-events: none;
}
.naber-hg-bar.is-left { justify-content: flex-start; }
.naber-hg-bar.is-right { justify-content: flex-end; }
.naber-hg-bar .naber-hg-arrow { width: 32px; height: 32px; }
.naber-hg-dots {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px 6px; pointer-events: auto;
  border-radius: 999px; background: rgba(17,28,36,.30);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.naber-hg-dot {
  appearance: none; position: relative; width: 22px; height: 22px; padding: 0; margin: 0;
  border: 0; background: transparent; cursor: pointer;
}
.naber-hg-dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 999px;
  background: rgba(255,255,255,.55); transform: translate(-50%,-50%);
  transition: width .2s ease, background-color .2s ease;
}
.naber-hg-dot:hover::before { background: rgba(255,255,255,.85); }
.naber-hg-dot[aria-current="true"]::before { width: 18px; background: #fff; }
.naber-hg-pause {
  appearance: none; position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.34); background: rgba(17,28,36,.34); color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.naber-hg-pause .naber-hg-ico-play, .naber-hg-pause.is-paused .naber-hg-ico-pause { display: none; }
.naber-hg-pause.is-paused .naber-hg-ico-play { display: block; }
.naber-hg-pause[hidden] { display: none; }
/* Lift the title block above a bottom control bar so the two never overlap. */
.naber-hero.has-hg-bar .naber-hero-scrim { padding-bottom: 50px; }
.naber-hero.has-hg-bar .naber-hero-avatar { z-index: 4; }
@media (max-width: 960px) {
  .naber-hero.has-hg-bar .naber-hero-scrim { padding-bottom: 48px; }
  /* Mobile: the title stack fills the hero, so side arrows move to the top corners. */
  .naber-hg-controls.is-arrows-sides > .naber-hg-arrow { top: 12px; transform: none; width: 34px; height: 34px; }
  .naber-hg-controls.is-arrows-sides > .naber-hg-arrow:active { transform: scale(.94); }
  .naber-hg-controls.is-arrows-sides > .is-prev { left: auto; right: 54px; }
  .naber-hg-controls.is-arrows-sides > .is-next { right: 14px; }
  .naber-hero.has-hg .naber-hg-pause { top: 14px; left: 14px; right: auto; }
}

/* ---------- Settings editor (Header & Cover dialog) ---------- */
body.naber-app .naber-hg-mode { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 2px 0 16px; }
body.naber-app .naber-hg-mode-label { font-size: 14px; font-weight: 700; color: #273f4e; }
body.naber-app .naber-hg-segment {
  display: grid; grid-template-columns: 1fr 1fr; flex: 1 1 340px; max-width: 460px;
  padding: 4px; border-radius: 999px; background: #eef1ef; border: 1px solid #e1e6e3;
}
body.naber-app .naber-hg-segment label { position: relative; margin: 0 !important; cursor: pointer; display: block !important; }
body.naber-app .naber-hg-segment input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
body.naber-app .naber-hg-segment span {
  display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px;
  border-radius: 999px; font-size: 13px; font-weight: 650; color: #5c6e74; transition: background-color .15s, color .15s, box-shadow .15s;
}
body.naber-app .naber-hg-segment input:checked + span { background: #fff; color: #1f3340; box-shadow: 0 1px 4px rgba(30,50,60,.12); }
body.naber-app .naber-hg-segment input:focus-visible + span { outline: 2px solid #3d6170; outline-offset: 1px; }

body.naber-app .naber-hg-editor h3 { margin: 0 0 3px !important; font-size: 16px !important; font-weight: 700 !important; line-height: 1.3 !important; color: #273f4e !important; }
body.naber-app .naber-hg-preview-top, body.naber-app .naber-hg-section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
body.naber-app .naber-hg-preview-tools, body.naber-app .naber-hg-section-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.naber-app .naber-hg-devices { display: inline-flex; padding: 3px; border-radius: 999px; background: #eef1ef; border: 1px solid #e1e6e3; }
body.naber-app .naber-hg-devices button, body.naber-app .naber-hg-play {
  appearance: none; min-height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent;
  font-size: 12px; font-weight: 650; color: #5c6e74; cursor: pointer;
}
body.naber-app .naber-hg-devices button.is-active { background: #fff; color: #1f3340; box-shadow: 0 1px 3px rgba(30,50,60,.12); }
body.naber-app .naber-hg-play { min-height: 34px; border: 1px solid #d8dfdb; background: #fff; color: #2a414d; padding: 0 14px; }
body.naber-app .naber-hg-play[aria-pressed="true"] { background: #263945; border-color: #263945; color: #fff; }
body.naber-app .naber-hg-play[hidden] { display: none; }

body.naber-app .naber-hg-preview-frame { display: flex; justify-content: center; border-radius: 15px; transition: background-color .2s; }
body.naber-app .naber-hg-preview-frame[data-device="mobile"] { background: #eef1ef; padding: 14px 0; }
body.naber-app .naber-hg-preview-frame[data-device="mobile"] .naber-hg-preview { width: 360px; max-width: 100%; aspect-ratio: 1.06/1; }
body.naber-app .naber-appearance-dialog .naber-hg-preview { user-select: none; }
body.naber-app .naber-hg-preview-stage { position: absolute; inset: 0; overflow: hidden; }
body.naber-app .naber-hg-preview-stage > div {
  position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; background-position: center;
  opacity: 0; transition: opacity var(--hg-dur, 600ms) ease, transform var(--hg-dur, 600ms) cubic-bezier(.22,.61,.36,1);
}
body.naber-app .naber-hg-preview-stage > div.is-active { opacity: 1; z-index: 2; }
body.naber-app .naber-hg-preview-stage > div.is-leaving { opacity: 1; z-index: 1; transition: none; }
body.naber-app .naber-hg-preview-stage.is-slide > div { opacity: 1; }
body.naber-app .naber-hg-preview-stage.is-slide > div:not(.is-active):not(.is-out) { visibility: hidden; }
body.naber-app .naber-hg-preview-stage.is-slide > div.is-out { z-index: 1; }
body.naber-app .naber-hg-preview-stage .is-from-right { transform: translateX(100%); transition: none !important; }
body.naber-app .naber-hg-preview-stage .is-from-left { transform: translateX(-100%); transition: none !important; }
body.naber-app .naber-hg-preview-stage .is-to-left { transform: translateX(-100%); }
body.naber-app .naber-hg-preview-stage .is-to-right { transform: translateX(100%); }
body.naber-app .naber-hg-preview-stage.is-none > div { transition: none; }
body.naber-app .naber-hg-preview .naber-cover-live-shade, body.naber-app .naber-hg-preview .naber-cover-live-identity { z-index: 3; }
body.naber-app .naber-hg-preview .naber-hg-preview-controls { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
body.naber-app .naber-hg-preview .naber-hg-preview-controls button { pointer-events: auto; }
body.naber-app .naber-hg-preview.has-bar .naber-cover-live-identity { bottom: 52px; }
body.naber-app .naber-hg-preview .naber-hg-arrow { width: 34px; height: 34px; }
body.naber-app .naber-hg-preview .naber-hg-bar .naber-hg-arrow { width: 28px; height: 28px; }
body.naber-app .naber-hg-preview .is-arrows-sides > .naber-hg-arrow { position: absolute; top: 50%; transform: translateY(-50%); }
body.naber-app .naber-hg-preview .is-arrows-sides > .is-prev { left: 12px; }
body.naber-app .naber-hg-preview .is-arrows-sides > .is-next { right: 12px; }
body.naber-app .naber-hg-preview-frame[data-device="mobile"] .is-arrows-sides > .naber-hg-arrow { top: 12px; transform: none; width: 30px; height: 30px; }
body.naber-app .naber-hg-preview-frame[data-device="mobile"] .is-arrows-sides > .is-prev { left: auto; right: 48px; }
body.naber-app .naber-hg-preview-frame[data-device="mobile"] .naber-cover-live-identity { left: 16px; bottom: 16px; }
body.naber-app .naber-hg-preview-frame[data-device="mobile"] .naber-hg-preview.has-bar .naber-cover-live-identity { bottom: 48px; }
body.naber-app .naber-hg-preview-frame[data-device="mobile"] .naber-cover-live-shade { background: linear-gradient(180deg, rgba(13,25,34,.15), rgba(13,25,34,.62)); }
body.naber-app .naber-hg-empty {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 20px; text-align: center; color: #fff; background: linear-gradient(135deg,#3a5361,#24394a);
}
body.naber-app .naber-hg-empty[hidden] { display: none; }
body.naber-app .naber-hg-empty strong { font-size: 15px; }
body.naber-app .naber-hg-empty span { font-size: 12.5px; max-width: 380px; opacity: .85; line-height: 1.45; }

body.naber-app .naber-hg-position[hidden] { display: none; }
body.naber-app #naber-appearance-dialog-header .naber-hg-position .neighbor-position-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
body.naber-app #naber-appearance-dialog-header .naber-hg-position .neighbor-position-controls label { display: block !important; min-width: 0; }
body.naber-app #naber-appearance-dialog-header .naber-hg-position .neighbor-position-controls label span { float: right; display: inline; font-variant-numeric: tabular-nums; color: #667c7f; }
body.naber-app .naber-hg-position-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
body.naber-app .naber-hg-alt { flex: 1 1 260px; display: flex !important; flex-direction: column; gap: 5px; font-size: 12px !important; font-weight: 650 !important; color: #2d434e !important; margin: 10px 0 0 !important; }
body.naber-app .naber-hg-alt input, body.naber-app .naber-hg-field input, body.naber-app .naber-hg-field select {
  min-height: 38px !important; border: 1px solid #d8dfdb !important; border-radius: 10px !important; background: #fff !important;
  padding: 0 11px !important; font-size: 13px !important; color: #233843 !important; box-shadow: none !important; width: 100%; box-sizing: border-box;
}

body.naber-app .naber-hg-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e7ebe8; }
body.naber-app .naber-hg-count { font-size: 12px; color: #667c7f; font-variant-numeric: tabular-nums; }
body.naber-app .naber-hg-strip {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
body.naber-app .naber-hg-strip:empty::before {
  content: "No images yet. Choose Add Images to build your gallery."; grid-column: 1 / -1; display: block;
  padding: 18px; border: 1px dashed #cfd8d4; border-radius: 12px; color: #667c7f; font-size: 13px; text-align: center;
}
body.naber-app .naber-hg-tile { position: relative; margin: 0; padding: 0; border-radius: 12px; transition: transform .15s, opacity .15s; }
body.naber-app .naber-hg-tile.is-dragging { opacity: .45; }
body.naber-app .naber-hg-tile.is-drop-before::before, body.naber-app .naber-hg-tile.is-drop-after::after {
  content: ""; position: absolute; top: 6px; bottom: 30px; width: 3px; border-radius: 3px; background: #2f5566;
}
body.naber-app .naber-hg-tile.is-drop-before::before { left: -8px; }
body.naber-app .naber-hg-tile.is-drop-after::after { right: -8px; }
body.naber-app .naber-hg-thumb {
  appearance: none; display: block; width: 100%; aspect-ratio: 8/3; padding: 0; margin: 0; cursor: grab;
  border-radius: 11px; border: 2px solid transparent; background: #e3e8e6 center/cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(33,50,59,.10);
}
body.naber-app .naber-hg-thumb:active { cursor: grabbing; }
body.naber-app .naber-hg-tile.is-selected .naber-hg-thumb { border-color: #263945; box-shadow: 0 0 0 1px #263945; }
body.naber-app .naber-hg-thumb:focus-visible { outline: 2px solid #3d6170; outline-offset: 2px; }
body.naber-app .naber-hg-badge {
  position: absolute; left: 7px; top: 7px; padding: 2px 8px; border-radius: 999px; pointer-events: none;
  background: rgba(255,255,255,.92); color: #1f3340; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
}
body.naber-app .naber-hg-num {
  position: absolute; right: 7px; top: 7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; pointer-events: none;
  display: inline-flex; align-items: center; justify-content: center; background: rgba(17,28,36,.55); color: #fff; font-size: 11px; font-weight: 700;
}
body.naber-app .naber-hg-tile-tools { display: flex; align-items: center; gap: 2px; margin-top: 5px; }
body.naber-app .naber-hg-tile-tools button {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 28px; padding: 0 6px;
  border: 0; border-radius: 8px; background: transparent; color: #4b5f67; font-size: 12px; font-weight: 650; cursor: pointer;
}
body.naber-app .naber-hg-tile-tools button:hover:not(:disabled) { background: #eef1ef; color: #1f3340; }
body.naber-app .naber-hg-tile-tools button:disabled { opacity: .35; cursor: default; }
body.naber-app .naber-hg-tile-tools .naber-hg-remove { margin-left: auto; }
body.naber-app .naber-hg-tile-tools .naber-hg-remove:hover { color: #9a2f2f !important; }
body.naber-app .naber-hg-tile-tools .naber-hg-make-default[aria-pressed="true"] { color: #1f3340; }

body.naber-app .naber-hg-group { margin-top: 18px; border: 1px solid #e3e8e5; border-radius: 14px; background: #fafbfa; }
body.naber-app .naber-hg-group[hidden] { display: none; }
body.naber-app .naber-hg-group > summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer;
}
body.naber-app .naber-hg-group > summary::-webkit-details-marker { display: none; }
body.naber-app .naber-hg-group > summary::after {
  content: ""; width: 9px; height: 9px; border-right: 2px solid #5c6e74; border-bottom: 2px solid #5c6e74; transform: rotate(45deg) translateY(-3px); transition: transform .15s; flex: 0 0 auto;
}
body.naber-app .naber-hg-group[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
body.naber-app .naber-hg-group > summary span { display: flex; flex-direction: column; gap: 2px; }
body.naber-app .naber-hg-group > summary strong { font-size: 14.5px; font-weight: 700; color: #273f4e; }
body.naber-app .naber-hg-group > summary small { font-size: 12px; color: #667c7f; }
body.naber-app .naber-hg-group > summary:focus-visible { outline: 2px solid #3d6170; outline-offset: -2px; border-radius: 14px; }
body.naber-app .naber-hg-group-body { padding: 0 16px 16px; }
body.naber-app .naber-hg-radios { display: grid; gap: 2px; }
body.naber-app .naber-hg-radio, body.naber-app .naber-hg-check {
  display: flex !important; align-items: center; gap: 11px; min-height: 40px; margin: 0 !important; padding: 0 6px; border-radius: 10px; cursor: pointer;
  font-size: 13.5px !important; font-weight: 550 !important; color: #233843 !important;
}
body.naber-app .naber-hg-radio:hover, body.naber-app .naber-hg-check:hover { background: #f0f3f1; }
body.naber-app .naber-hg-radio input, body.naber-app .naber-hg-check input, body.naber-app .naber-hg-choice input {
  -webkit-appearance: none !important; appearance: none !important; box-sizing: border-box !important;
  flex: 0 0 16px !important; width: 16px !important; height: 16px !important; min-width: 16px !important; max-width: 16px !important;
  min-height: 16px !important; max-height: 16px !important; aspect-ratio: 1 / 1; padding: 0 !important; margin: 0 !important;
  border: 1.5px solid #9fadab !important; background: #fff !important; box-shadow: none !important; cursor: pointer;
  display: inline-block !important; vertical-align: middle; transition: border-color .12s, box-shadow .12s, background-color .12s;
}
body.naber-app .naber-hg-radio input, body.naber-app .naber-hg-choice input { border-radius: 50% !important; }
/* Selected: a centred dot drawn with an inset ring, so it stays perfectly round at any zoom level. */
body.naber-app .naber-hg-radio input:checked, body.naber-app .naber-hg-choice input:checked { border-color: #263945 !important; background: #263945 !important; box-shadow: inset 0 0 0 3.5px #fff !important; }
body.naber-app .naber-hg-check input { border-radius: 4px !important; }
body.naber-app .naber-hg-check input:checked { border-color: #263945 !important; background: #263945 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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat !important; }
body.naber-app .naber-hg-radio input:hover:not(:checked), body.naber-app .naber-hg-check input:hover:not(:checked) { border-color: #6f8582 !important; }
body.naber-app .naber-hg-radio input:focus-visible, body.naber-app .naber-hg-check input:focus-visible, body.naber-app .naber-hg-choice input:focus-visible { outline: 2px solid #3d6170 !important; outline-offset: 2px !important; }
body.naber-app .naber-hg-radio, body.naber-app .naber-hg-check { gap: 10px !important; min-height: 36px !important; line-height: 1.3; }
body.naber-app .naber-hg-radio small { color: #667c7f; font-weight: 500; font-size: 12px; }
body.naber-app .naber-hg-auto { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 22px; margin-top: 10px; padding-top: 12px; border-top: 1px solid #e7ebe8; }
body.naber-app .naber-hg-auto > .naber-hg-field { flex: 0 1 220px; min-width: 180px; }
body.naber-app .naber-hg-auto > .naber-hg-field[data-hg-custom-wrap] { flex-basis: 110px; min-width: 96px; }
body.naber-app .naber-hg-auto > .naber-hg-check { flex: 0 0 auto; min-height: 38px !important; padding: 0 6px; }
body.naber-app .naber-hg-auto[hidden] { display: none; }
body.naber-app .naber-hg-auto > .neighbor-field-hint { flex: 1 0 100%; margin: 2px 0 0 !important; }
body.naber-app .naber-hg-field { display: flex !important; flex-direction: column; gap: 5px; margin: 0 !important; font-size: 12px !important; font-weight: 650 !important; color: #2d434e !important; }
body.naber-app .naber-hg-field[hidden] { display: none !important; }
body.naber-app .naber-hg-field.is-disabled { opacity: .5; }
body.naber-app .naber-hg-nav-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 16px; align-items: center; }

body.naber-app .naber-hg-picker-card { width: min(760px, 100%) !important; max-height: calc(100% - 20px); display: flex; flex-direction: column; }
body.naber-app .naber-hg-picker-card .naber-logo-image-body { overflow: auto; }
body.naber-app .naber-hg-upload-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
body.naber-app .naber-hg-upload-btn {
  position: relative; display: inline-flex !important; align-items: center; min-height: 38px; padding: 0 16px; margin: 0 !important;
  border-radius: 999px; background: #263945; color: #fff !important; font-size: 13px !important; font-weight: 650 !important; cursor: pointer;
}
body.naber-app .naber-hg-upload-btn input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
body.naber-app .naber-hg-upload-btn:focus-within { outline: 2px solid #3d6170; outline-offset: 2px; }
body.naber-app .naber-hg-upload-btn.is-busy { opacity: .6; pointer-events: none; }
body.naber-app .naber-hg-catalog h4 { margin: 14px 0 8px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #667c7f; }
body.naber-app .naber-hg-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
body.naber-app .naber-hg-pick { position: relative; display: block !important; margin: 0 !important; cursor: pointer; }
body.naber-app .naber-hg-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
body.naber-app .naber-hg-pick-thumb { display: block; aspect-ratio: 8/3; border-radius: 10px; border: 2px solid transparent; background: #e3e8e6 center/cover no-repeat; box-shadow: inset 0 0 0 1px rgba(33,50,59,.1); }
body.naber-app .naber-hg-pick input:checked + .naber-hg-pick-thumb { border-color: #263945; box-shadow: 0 0 0 1px #263945; }
body.naber-app .naber-hg-pick input:focus-visible + .naber-hg-pick-thumb { outline: 2px solid #3d6170; outline-offset: 2px; }
body.naber-app .naber-hg-pick input:disabled { cursor: default; }
body.naber-app .naber-hg-pick input:disabled + .naber-hg-pick-thumb { opacity: .45; }
body.naber-app .naber-hg-pick-name { display: block; margin-top: 5px; font-size: 12px; color: #3b4f58; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.naber-app .naber-hg-pick-check {
  position: absolute; top: 6px; right: 6px; z-index: 1; display: none; width: 20px; height: 20px; border-radius: 50%;
  background: #263945; color: #fff; font-size: 12px; line-height: 20px; text-align: center;
}
body.naber-app .naber-hg-pick input:checked ~ .naber-hg-pick-check { display: block; }

@media (max-width: 600px) {
  /* Narrow screens: the preview is phone-sized whichever device is chosen, so use the mobile arrow placement. */
  body.naber-app .naber-hg-preview .is-arrows-sides > .naber-hg-arrow { top: 12px; transform: none; width: 30px; height: 30px; }
  body.naber-app .naber-hg-preview .is-arrows-sides > .is-prev { left: auto; right: 48px; }
  body.naber-app .naber-hg-segment { max-width: none; }
  body.naber-app .naber-hg-strip { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  body.naber-app .naber-hg-nav-grid { grid-template-columns: minmax(0,1fr); }
  body.naber-app .naber-hg-auto { flex-direction: column; align-items: stretch; gap: 6px; }
  body.naber-app .naber-hg-auto > .naber-hg-field { flex: 0 0 auto; min-width: 0; }
  body.naber-app .naber-hg-nav-grid > span[aria-hidden] { display: none; }
  body.naber-app #naber-appearance-dialog-header .naber-hg-position .neighbor-position-controls { grid-template-columns: minmax(0,1fr); }
  body.naber-app .naber-hg-catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.naber-app .naber-hg-preview-frame[data-device="mobile"] { padding: 10px 0; }
}

/* ---------- Appearance choices (Arrows / Pagination Dots / Play Button) ---------- */
body.naber-app .naber-hg-nav-body { display: grid; gap: 18px; }
body.naber-app .naber-hg-subgroup h4 { margin: 0 0 8px !important; font-size: 13px !important; font-weight: 700 !important; color: #273f4e !important; letter-spacing: 0; text-transform: none; }
body.naber-app .naber-hg-subgroup + .naber-hg-subgroup { padding-top: 16px; border-top: 1px solid #e7ebe8; }
body.naber-app .naber-hg-subgroup.naber-hg-nav-grid h4 { grid-column: 1 / -1; margin-bottom: 0 !important; }
body.naber-app .naber-hg-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 8px; }
body.naber-app .naber-hg-choice {
  position: relative; display: flex !important; align-items: center; gap: 10px; margin: 0 !important; padding: 9px 11px;
  border: 1px solid #dfe5e2; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .12s, box-shadow .12s;
  font-size: 12.5px !important; font-weight: 600 !important; color: #2d434e !important;
}
body.naber-app .naber-hg-choice:hover { border-color: #b9c7c3; }
body.naber-app .naber-hg-choice:has(input:checked) { border-color: #263945; box-shadow: 0 0 0 1px #263945; }
body.naber-app .naber-hg-choice:has(input:focus-visible) { outline: 2px solid #3d6170; outline-offset: 2px; }
body.naber-app .naber-hg-choice-art {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #5d7f8e, #2f4756); color: #fff;
}
body.naber-app .naber-hg-choice-label { min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
body.naber-app .naber-hg-art-arrow, body.naber-app .naber-hg-art-play { display: inline-flex; align-items: center; justify-content: center; }
body.naber-app .naber-hg-art-arrow.is-circle, body.naber-app .naber-hg-art-play.is-circle { width: 22px; height: 22px; border-radius: 50%; background: rgba(17,28,36,.45); border: 1px solid rgba(255,255,255,.45); }
body.naber-app .naber-hg-art-arrow.is-circle svg { width: 13px; height: 13px; }
body.naber-app .naber-hg-art-arrow.is-plain svg, body.naber-app .naber-hg-art-play.is-icon svg { filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.45)); }
body.naber-app .naber-hg-art-play.is-hover { opacity: .45; outline: 1px dashed rgba(255,255,255,.75); outline-offset: 3px; border-radius: 4px; }
body.naber-app .naber-hg-art-dots { display: inline-flex; align-items: center; gap: 4px; }
body.naber-app .naber-hg-art-dots.is-pill { padding: 4px 6px; border-radius: 999px; background: rgba(17,28,36,.4); }
body.naber-app .naber-hg-art-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.55); }
body.naber-app .naber-hg-art-dots i.is-on { width: 10px; border-radius: 999px; background: #fff; }
body.naber-app .naber-hg-art-dots.is-plain i { box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
body.naber-app .naber-hg-art-dots.is-plain i.is-on { width: 6px; height: 6px; border-radius: 50%; }
body.naber-app .naber-hg-art-none { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.8); position: relative; }
body.naber-app .naber-hg-art-none::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1.5px; background: rgba(255,255,255,.85); transform: translateX(-50%) rotate(45deg); }
body.naber-app .naber-hg-pos-field { margin-top: 10px !important; max-width: 280px; }
body.naber-app .naber-hg-pos-field[hidden] { display: none !important; }
body.naber-app .naber-hg-nav-warning { margin: 0; padding: 9px 12px; border-radius: 10px; background: #fdf6e4; border: 1px solid #ecdcae; color: #5d4c1c; font-size: 12.5px; }
body.naber-app .naber-hg-nav-warning[hidden] { display: none; }
body.naber-app .naber-hg-preview .naber-hg-pause { position: absolute; top: 12px; right: 12px; }

/* ---------- Public (and preview) control styles ---------- */
/* Arrows only: just the chevron, with a soft shadow so it reads on light and dark images; the button keeps a 44px tap target. */
.is-arrow-plain .naber-hg-arrow, .is-arrow-plain .naber-hg-arrow:hover {
  width: 44px; height: 44px; background: transparent; border-color: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff;
}
.is-arrow-plain .naber-hg-arrow svg { width: 30px; height: 30px; stroke-width: 2.6; filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)) drop-shadow(0 0 6px rgba(0,0,0,.25)); transition: transform .15s ease; }
.is-arrow-plain .naber-hg-arrow:hover svg { transform: scale(1.12); }
.is-arrow-plain .naber-hg-bar .naber-hg-arrow { width: 40px; height: 40px; }
.is-arrow-plain .naber-hg-bar .naber-hg-arrow svg { width: 24px; height: 24px; }
/* Dots only: no container; active dot solid white, inactive translucent, both outlined for light images. */
.is-dots-plain .naber-hg-dots { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; gap: 0; }
.is-dots-plain .naber-hg-dot::before { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); box-shadow: 0 0 0 1px rgba(0,0,0,.22), 0 1px 3px rgba(0,0,0,.3); }
.is-dots-plain .naber-hg-dot:hover::before { background: rgba(255,255,255,.8); }
.is-dots-plain .naber-hg-dot[aria-current="true"]::before { width: 10px; height: 10px; background: #fff; }
/* Play button: icon only, reveal on hover / touch, or visually hidden (still reachable by keyboard). */
.naber-hg-pause.is-play-icon, .naber-hg-pause.is-play-hover { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; width: 36px; height: 36px; }
.naber-hg-pause.is-play-icon svg, .naber-hg-pause.is-play-hover svg { width: 18px; height: 18px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.naber-hg-pause.is-play-hover { opacity: 0; transition: opacity .2s ease; }
.naber-hero:hover .naber-hg-pause.is-play-hover, .naber-hero.is-hg-touched .naber-hg-pause.is-play-hover, .naber-hg-pause.is-play-hover:focus-visible, .naber-hg-pause.is-play-hover.is-paused,
.naber-hg-preview:hover .naber-hg-pause.is-play-hover { opacity: 1; }
@media (hover: none) { .naber-hero:not(.is-hg-touched) .naber-hg-pause.is-play-hover:not(.is-paused) { pointer-events: none; } }
.naber-hg-pause.is-play-hidden:not(:focus-visible) { opacity: 0; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); pointer-events: none; }
@media (max-width: 960px) {
  .naber-hg-controls.is-arrows-sides.is-arrow-plain > .naber-hg-arrow { width: 44px; height: 44px; top: 6px; }
  .naber-hg-controls.is-arrows-sides.is-arrow-plain > .is-prev { right: 52px; }
  .naber-hg-controls.is-arrows-sides.is-arrow-plain > .is-next { right: 8px; }
  .naber-hg-controls.is-arrow-plain .naber-hg-arrow svg { width: 26px; height: 26px; }
}
@media (max-width: 600px) {
  body.naber-app .naber-hg-choices { grid-template-columns: minmax(0,1fr); }
  body.naber-app .naber-hg-auto > .naber-hg-field[data-hg-custom-wrap] { flex: 0 0 auto; min-width: 0; }
}
