/* WingMe app prototype — app styles (embed mode: inside the phone frame, on a real phone, or ?embed=1).
 * Colours only from tokens.css. Spacing on an 8px grid (4px for fine steps). Screens: app-screens.css; viewer: app-viewer.css. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; font: 400 15px/1.5 var(--wm-font); color: var(--wm-ink-2); background: var(--wm-bg-2);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "ss01", "cv11";
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--wm-blue); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono, .mono-dd dd { font-family: var(--wm-mono); font-feature-settings: normal; }
.noscript { padding: 24px; text-align: center; }

/* ---------- app frame ---------- */
body.mode-app { height: 100%; overflow: hidden; overscroll-behavior: none; }
.app {
  --pad: 20px; --head-top: 0px; --bottom: 0px;
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 480px;
  height: 100vh; height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--wm-bg-2);
}
body.is-phone .app { --head-top: env(safe-area-inset-top, 0px); --bottom: env(safe-area-inset-bottom, 0px); }
body.is-framed .app { --bottom: 20px; }             /* room for the device's home indicator */
@media (min-width: 481px) { body.mode-app:not(.is-framed) { background: var(--wm-bg-3); } body.mode-app:not(.is-framed) .app { box-shadow: var(--wm-shadow-2); } }
@media (max-width: 359px) { .app { --pad: 16px; } }
body.is-static .app { pointer-events: none; user-select: none; }
.app-view { position: relative; flex: 1; min-height: 0; overflow: hidden; }

/* screens: head (fixed) · body (scrolls) · foot (sticky action bar) */
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--wm-bg-2); outline: none; }
.scr.is-white { background: var(--wm-bg); }
.scr-head { position: relative; z-index: 4; flex: none; padding-top: var(--head-top); background: var(--wm-bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.scr.is-scrolled .scr-head { border-bottom-color: var(--wm-line); }
.scr-head:empty { display: none; }
.scr-body { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; }
.scr-body::-webkit-scrollbar { display: none; }
.scr-foot { flex: none; position: relative; z-index: 4; padding: 12px var(--pad) calc(12px + var(--bottom)); background: var(--wm-bg); border-top: 1px solid var(--wm-line); }
.has-tabbar .scr-foot { padding-bottom: 12px; }

/* screen transitions (JS skips them under prefers-reduced-motion) */
.scr.is-leaving { pointer-events: none; }
.in-push { animation: wmInPush .32s cubic-bezier(.2, .8, .2, 1) both; }
.out-push { animation: wmOutPush .32s cubic-bezier(.2, .8, .2, 1) both; }
.in-back { animation: wmInBack .32s cubic-bezier(.2, .8, .2, 1) both; }
.out-back { animation: wmOutBack .28s cubic-bezier(.4, 0, .6, 1) both; z-index: 2; }
.in-fade { animation: wmFadeIn .22s ease both; }
.out-fade { animation: wmFadeOut .18s ease both; }
@keyframes wmInPush { from { transform: translateX(28%); opacity: 0; } }
@keyframes wmOutPush { to { transform: translateX(-12%); opacity: 0; } }
@keyframes wmInBack { from { transform: translateX(-12%); opacity: .2; } }
@keyframes wmOutBack { to { transform: translateX(32%); opacity: 0; } }
@keyframes wmFadeIn { from { opacity: 0; } }
@keyframes wmFadeOut { to { opacity: 0; } }

/* ---------- type ---------- */
.t-title { font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.025em; color: var(--wm-ink); }
.t-sec { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--wm-ink); }
.t-cap { font-size: 13px; line-height: 1.4; color: var(--wm-muted); }
.lead { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--wm-muted); }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--wm-muted); }
.body-p { font-size: 15px; line-height: 1.6; color: var(--wm-ink-2); }
.body-s { font-size: 14px; line-height: 1.5; color: var(--wm-ink-2); }
.wordmark { font-weight: 600; letter-spacing: -.04em; color: var(--wm-ink); }
.ta-r { text-align: right; }

/* ---------- layout helpers ---------- */
.pad { padding-left: var(--pad); padding-right: var(--pad); }
.pad-b { padding: 0 var(--pad) 12px; }
.sec { margin-top: 32px; }
.sec-tight { margin-top: 24px; }
.sec-first { margin-top: 16px; }
.sec-last { padding-bottom: 32px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec > .eyebrow, .sec-tight > .eyebrow { margin-bottom: 8px; }
.btn-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.body-s + .btn-stack { margin-top: 16px; }
.sec.btn-stack { margin-top: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 14px; font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  text-align: center; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .1s, opacity .15s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn-lg { min-height: 52px; padding: 0 24px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--wm-primary); color: var(--wm-bg); }
.btn-primary:hover:not(:disabled) { background: var(--wm-primary-hover); }
.btn-secondary { background: var(--wm-bg); color: var(--wm-ink); border-color: var(--wm-line); }
.btn-secondary:hover:not(:disabled) { background: var(--wm-bg-2); }
.btn-ghost { background: transparent; color: var(--wm-blue); }
.btn-danger { background: var(--wm-bad); color: var(--wm-bg); }
.btn-danger-soft { background: var(--wm-bad-bg); color: var(--wm-bad); }
.btn:disabled { background: var(--wm-bg-3); color: var(--wm-muted); border-color: transparent; cursor: not-allowed; }
.btn.is-busy:disabled { background: var(--wm-primary); color: var(--wm-bg); opacity: .9; cursor: progress; }
.spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: wmSpin .7s linear infinite; }
@keyframes wmSpin { to { transform: rotate(360deg); } }
.link { padding: 0; border: 0; background: none; color: var(--wm-blue); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

.ibtn {
  position: relative; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--wm-ink); transition: background-color .15s;
}
.ibtn:hover { background: var(--wm-bg-3); }
.ibtn-soft { background: var(--wm-bg); box-shadow: inset 0 0 0 1px var(--wm-line); }
.ibtn-soft:hover { background: var(--wm-bg-2); }
.ibtn-photo { width: 40px; height: 40px; background: var(--wm-bg); box-shadow: var(--wm-shadow-1); }
.ibtn-photo::before { content: ""; position: absolute; inset: -4px; }
.ibtn-photo:hover { background: var(--wm-bg); }
.ibtn[aria-pressed="true"] { color: var(--wm-bad); }
.ibtn-dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--wm-blue); box-shadow: 0 0 0 2px var(--wm-bg); }

/* chips & segmented control */
.chips { display: flex; gap: 8px; padding: 2px var(--pad); overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips-wrap { flex-wrap: wrap; padding: 0; overflow: visible; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none; height: 44px; padding: 0 16px; border: 1px solid var(--wm-line);
  border-radius: 999px; background: var(--wm-bg); font-size: 14px; font-weight: 500; color: var(--wm-ink-2); white-space: nowrap; transition: .15s;
}
.chip[aria-pressed="true"] { border-color: var(--wm-blue); background: var(--wm-blue-bg); color: var(--wm-blue); }
.chip .ic { margin-left: -4px; }
.seg { display: flex; padding: 4px; border-radius: 12px; background: var(--wm-bg-3); }
.seg-btn {
  position: relative; flex: 1; min-height: 44px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent;
  font-size: 14px; font-weight: 500; color: var(--wm-muted); white-space: nowrap; transition: .15s;
}
.seg-btn[aria-pressed="true"] { background: var(--wm-bg); color: var(--wm-ink); box-shadow: var(--wm-shadow-1); }
.seg-sm { display: inline-flex; flex: none; padding: 3px; border-radius: 10px; }
.seg-sm .seg-btn { flex: none; min-height: 32px; min-width: 44px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.seg-sm .seg-btn::before { content: ""; position: absolute; inset: -6px 0; }

/* status chips */
.st { display: inline-flex; align-items: center; gap: 4px; flex: none; max-width: 100%; min-height: 24px; padding: 3px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; line-height: 1.3; }
.st .ic { flex: none; }
.st-ok { background: var(--wm-ok-bg); color: var(--wm-ok); }
.st-warn { background: var(--wm-warn-bg); color: var(--wm-warn); }
.st-bad { background: var(--wm-bad-bg); color: var(--wm-bad); }
.st-blue { background: var(--wm-blue-bg); color: var(--wm-blue); }
.st-mute { background: var(--wm-bg-3); color: var(--wm-muted); }
.badge-row { position: absolute; top: 12px; left: 12px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--wm-bg); color: var(--wm-ink); font-size: 12px; font-weight: 600; box-shadow: var(--wm-shadow-1); }

/* seats indicator & fill bar */
.seats { display: inline-flex; gap: 2px; flex: none; }
.seat { display: inline-flex; color: var(--wm-faint); }
.seat.is-sold { color: var(--wm-ink-2); }
.seat.is-sold svg, .seat.is-mine svg { fill: currentColor; }
.seat.is-mine { color: var(--wm-blue); }
.fill { position: relative; height: 10px; }
.fill-track { display: flex; height: 100%; overflow: hidden; border-radius: 999px; background: var(--wm-bg-3); }
.fill-sold, .fill-mine { height: 100%; transition: width .3s ease; }
.fill-sold { background: var(--wm-sun); opacity: .5; }
.fill-mine { background: var(--wm-sun); }
.fill-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--wm-ink); }

/* stepper */
.stepper { display: inline-flex; align-items: center; flex: none; border: 1px solid var(--wm-line); border-radius: 14px; background: var(--wm-bg); }
.stepper-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 13px; background: none; color: var(--wm-ink); }
.stepper-btn:disabled { color: var(--wm-faint); cursor: not-allowed; }
.stepper-val { min-width: 28px; text-align: center; font-size: 17px; font-weight: 600; color: var(--wm-ink); font-variant-numeric: tabular-nums; }

/* cards, lists, rows */
.card { position: relative; border: 1px solid var(--wm-line); border-radius: var(--wm-r-l); background: var(--wm-bg); }
.card-pad { padding: 16px; }
button.card { display: block; width: 100%; padding: 0; text-align: left; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
button.card:hover { border-color: var(--wm-faint); }
.list { overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px;
  border: 0; background: none; text-align: left; color: inherit;
}
.list > .row + .row { border-top: 1px solid var(--wm-line-2); }
button.row:hover, label.row:hover { background: var(--wm-bg-2); }
label.row { cursor: pointer; }
.row-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--wm-bg-2); color: var(--wm-ink-2); }
.row-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.row-t { font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--wm-ink); }
.row-s { margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--wm-muted); }
.row-v { flex: none; font-size: 14px; color: var(--wm-muted); }
.row-chev { display: flex; flex: none; color: var(--wm-faint); }
.row-danger .row-t, .row-danger .row-ic { color: var(--wm-bad); }
.row-danger .row-ic { background: var(--wm-bad-bg); }
.row-total { background: var(--wm-bg-2); }
.row-total .row-v { font-family: var(--wm-font); font-size: 15px; font-weight: 600; color: var(--wm-ink); }
.row-note .row-ic { background: var(--wm-blue-bg); color: var(--wm-blue); }
.row-thumb { flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; }

/* photos & avatars */
.ph { position: relative; overflow: hidden; background: var(--wm-bg-3); }
.ph img, .gal-item img { width: 100%; height: 100%; object-fit: cover; }
/* the Galešnjak aerial has a caption burned into its lower-left corner: keep it out of the crop */
.ph img[data-slot="dest_galesnjak"], .gal-item img[data-slot="dest_galesnjak"] { object-position: center 25%; }
.avatar { display: inline-block; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--wm-bg-3); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-40 { width: 40px; height: 40px; }
.avatar-64 { width: 64px; height: 64px; }
.avatar-ini { display: inline-grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--wm-ink-2); }
.avatar-64.avatar-ini { font-size: 20px; }
.avatar-ink { background: var(--wm-ink); color: var(--wm-bg); }
.avatar-mute { background: var(--wm-bg-2); color: var(--wm-muted); box-shadow: inset 0 0 0 1px var(--wm-line); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; }
.brand img { border-radius: 6px; }
.brand-light .wordmark { color: var(--wm-bg); }

/* notices & empty states */
.notice { display: flex; gap: 12px; margin-top: 12px; padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.45; color: var(--wm-ink-2); }
.notice > .ic { flex: none; margin-top: 1px; }
.notice b { font-weight: 600; color: var(--wm-ink); }
.notice-blue { background: var(--wm-blue-bg); } .notice-blue > .ic { color: var(--wm-blue); }
.notice-ok { background: var(--wm-ok-bg); } .notice-ok > .ic { color: var(--wm-ok); }
.notice-warn { background: var(--wm-warn-bg); } .notice-warn > .ic { color: var(--wm-warn); }
.notice-bad { background: var(--wm-bad-bg); } .notice-bad > .ic { color: var(--wm-bad); }
.notice-mute { background: var(--wm-bg); box-shadow: inset 0 0 0 1px var(--wm-line); } .notice-mute > .ic { color: var(--wm-muted); }
.is-white .notice-mute { background: var(--wm-bg-2); box-shadow: none; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 32px; text-align: center; }
.empty-ic { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: var(--wm-bg); color: var(--wm-muted); box-shadow: inset 0 0 0 1px var(--wm-line); }
.empty .btn { margin-top: 16px; }

/* forms */
.field { margin-top: 16px; }
.card-pad > .field:first-child { margin-top: 0; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--wm-ink-2); }
.input {
  display: block; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--wm-line); border-radius: 12px;
  background: var(--wm-bg); font-size: 16px; color: var(--wm-ink); transition: border-color .15s, box-shadow .15s; appearance: none;
}
.input:focus { border-color: var(--wm-blue); }
.input:focus-visible { outline: 2px solid var(--wm-blue); outline-offset: 2px; }
.input.is-bad { border-color: var(--wm-bad); }
.input.is-bad:focus-visible { outline-color: var(--wm-bad); }
.input::placeholder { color: var(--wm-faint); }
select.input { padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--wm-muted) 50%), linear-gradient(135deg, var(--wm-muted) 50%, transparent 50%); background-position: right 20px center, right 15px center; background-size: 5px 5px; background-repeat: no-repeat; }
.textarea { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.45; resize: none; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 44px; }
.input-suffix { position: absolute; top: 0; right: 14px; bottom: 0; display: flex; align-items: center; font-size: 15px; color: var(--wm-muted); pointer-events: none; }
.field-err { margin-top: 6px; font-size: 13px; color: var(--wm-bad); }
.field-count { margin-top: 4px; text-align: right; }
.radio-row input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-dot { flex: none; width: 22px; height: 22px; border: 2px solid var(--wm-line); border-radius: 50%; background: var(--wm-bg); transition: .15s; }
.radio-row input:checked ~ .radio-dot { border-color: var(--wm-blue); box-shadow: inset 0 0 0 4px var(--wm-bg); background: var(--wm-blue); }
.radio-row:has(input:focus-visible), .check:has(input:focus-visible) { outline: 2px solid var(--wm-blue); outline-offset: -2px; }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 4px 0; font-size: 14px; line-height: 1.5; color: var(--wm-ink-2); cursor: pointer; position: relative; }
.check-box { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border: 2px solid var(--wm-faint); border-radius: 7px; background: var(--wm-bg); color: transparent; transition: .15s; }
.check input:checked + .check-box { border-color: var(--wm-blue); background: var(--wm-blue); color: var(--wm-bg); }
.switch { position: relative; flex: none; width: 51px; height: 31px; margin: 0; border-radius: 999px; background: var(--wm-bg-3); appearance: none; cursor: pointer; transition: background-color .2s; box-shadow: inset 0 0 0 1px var(--wm-line); }
.switch::before { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: var(--wm-bg); box-shadow: var(--wm-shadow-1), 0 2px 6px color-mix(in srgb, var(--wm-ink) 15%, transparent); transition: transform .2s; }
.switch:checked { background: var(--wm-ok); box-shadow: none; }
.switch:checked::before { transform: translateX(20px); }

/* ---------- tab bar ---------- */
.tabbar {
  position: relative; z-index: 6; flex: none; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 4px 8px calc(4px + var(--bottom)); background: var(--wm-bg); border-top: 1px solid var(--wm-line);
}
.tabbar[hidden] { display: none; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 4px 0; border: 0; background: none; font-size: 11px; font-weight: 500; color: var(--wm-muted); }
.tab[aria-current="page"] { color: var(--wm-blue); }
.tab[aria-current="page"] .ic { stroke-width: 2; }

/* ---------- top navigation ---------- */
.nav { display: grid; grid-template-columns: 96px minmax(0, 1fr) 96px; align-items: center; height: 52px; padding: 0 4px; }
.nav-title { overflow: hidden; text-align: center; white-space: nowrap; text-overflow: ellipsis; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--wm-ink); transition: opacity .2s; }
.nav-right { display: flex; justify-content: flex-end; }
.nav-sp { width: 44px; }
.ibtn-nav { margin: 0 2px; }
.lt-head { padding: 16px var(--pad) 12px; }
.lt-head + .pad-b, .lt-head .pad-b { padding: 0; margin-top: 12px; }
.op-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.op-head .t-title { margin: 2px 0; }

/* sticky action bar */
.foot-bar { display: flex; align-items: center; gap: 16px; }
.foot-sum { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.foot-total { font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: var(--wm-ink); }
.foot-sum .t-cap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot-hint { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 10px; font-size: 13px; line-height: 1.4; color: var(--wm-muted); }
.foot-hint .ic { flex: none; margin-top: 1px; }
.foot-hint.is-ok { color: var(--wm-ok); }

/* ---------- overlays: sheet, dialog, toast, notification banner ---------- */
.layer { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.layer > * { pointer-events: auto; }
.ov { position: absolute; inset: 0; }
.ov-back { position: absolute; inset: 0; background: color-mix(in srgb, var(--wm-ink) 42%, transparent); opacity: 0; transition: opacity .22s; }
.ov.is-in .ov-back { opacity: 1; }
.ov-box { position: absolute; display: flex; flex-direction: column; background: var(--wm-bg); outline: none; }
.ov-sheet .ov-box { left: 0; right: 0; bottom: 0; max-height: 88%; border-radius: 24px 24px 0 0; box-shadow: var(--wm-shadow-3); transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.ov-sheet.is-in .ov-box { transform: none; }
.sheet-grab { flex: none; width: 36px; height: 5px; margin: 8px auto 0; border-radius: 999px; background: var(--wm-line); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; padding: 8px 12px 8px var(--pad, 20px); }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px var(--pad, 20px) 24px; scrollbar-width: none; }
.sheet-body > .body-s + .field, .sheet-body > .body-s + .card { margin-top: 16px; }
.sheet-body > .card + .field { margin-top: 16px; }
.card-pad > .field:first-child { margin-top: 0; }
.sheet-body .field:first-child { margin-top: 0; }
.sheet-foot { flex: none; padding: 12px var(--pad, 20px) calc(16px + var(--bottom, 0px)); border-top: 1px solid var(--wm-line-2); }
.ov-dialog .ov-box { top: 50%; left: 24px; right: 24px; padding: 24px 20px 20px; border-radius: 20px; box-shadow: var(--wm-shadow-3); opacity: 0; transform: translateY(-50%) scale(.96); transition: opacity .2s, transform .2s; }
.ov-dialog.is-in .ov-box { opacity: 1; transform: translateY(-50%); }
.dialog-text { margin: 8px 0 20px; font-size: 15px; line-height: 1.5; color: var(--wm-ink-2); }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dialog-actions .btn { padding: 0 12px; white-space: normal; line-height: 1.2; }
.toast {
  position: absolute; left: 16px; right: 16px; bottom: calc(112px + var(--bottom, 0px)); z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 14px; background: var(--wm-ink); color: var(--wm-bg); font-size: 14px; font-weight: 500; line-height: 1.4;
  box-shadow: var(--wm-shadow-3); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.is-in { opacity: 1; transform: none; }
.toast .ic { flex: none; }
.banner {
  position: absolute; top: calc(8px + var(--head-top, 0px)); left: 8px; right: 8px; z-index: 4; display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--wm-line); border-radius: 20px; background: color-mix(in srgb, var(--wm-bg) 96%, transparent); text-align: left;
  box-shadow: var(--wm-shadow-3); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transform: translateY(calc(-100% - 24px)); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.banner.is-in { transform: none; }
.banner-logo { flex: none; width: 36px; height: 36px; border-radius: 9px; }
.banner-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.banner-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--wm-muted); }
.banner-top b { font-weight: 600; color: var(--wm-ink); }
.banner-t { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--wm-ink); }
.banner-s { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.4; color: var(--wm-ink-2); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .spin { animation: wmSpin 1.2s linear infinite !important; }
}

/* The Galešnjak photo has a caption burned into its bottom-left corner: crop it out. */
img[data-slot="dest_galesnjak"] { transform: scale(1.14); transform-origin: 50% 15%; }
