/* M10g + t335: seeker / hotel onboarding and pool-join (signup/steps/*.js) and the sign-in gate "Why?" (gate/signin-modal.js).
   The step stays centred; t335 puts the HotelierHub brand header (same .top chrome, dark mode, EN/ID) on every step. */
.fx-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.fx-page .fx-top { flex: 0 0 auto; }
.fx-page .fx-flow { flex: 1 1 auto; min-height: 0; }
.fx-flow { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 24px; box-sizing: border-box; }
.fx-page .fx-flow { min-height: 0; }
.fx-col { width: 100%; max-width: 560px; margin: auto; }          /* margin:auto centres it and still lets a long step scroll from its top */
.fx-flow.wide .fx-col { max-width: 1040px; }
.fx-flow .fx-sub { max-width: none; margin: 0 0 8px; padding: 0; min-height: 44px; }
.fx-flow .fx-main { max-width: none; margin: 0; padding: 0; }
.fx-flow .fx-next { position: static; background: none; padding: 24px 0 0; z-index: auto; }
.fx-flow .fx-next .in-w { max-width: none; margin: 0; justify-content: flex-start; flex-wrap: wrap; }
.fx-flow .fx-next .fx-saved { order: 9; margin: 0 0 0 auto; align-self: center; }
.fx-flow .fx-next .fx-btn.coral, .fx-flow .fx-next .fx-btn[aria-disabled] { min-width: 160px; }
.fx-flow .fx-q > :last-child { margin-bottom: 0; }
.fx-actions { margin-top: 28px; }
.fx-center { justify-content: center; text-align: center; }
.fx-link-flush { padding-left: 0; }
@media (max-width: 600px) {
  .fx-flow { padding: 16px; }
  .fx-flow .fx-next .in-w > .fx-btn { flex: 1 1 auto; }
}

/* Skills: count + "None yet", your own skill */
.fx-skbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.fx-skbar .fx-count { margin: 0; }
.fx-chip.fx-none[aria-pressed="true"] { background: var(--coral-strong); border-color: var(--coral-strong); color: var(--on-coral); }
.fx-addrow { display: flex; gap: 8px; align-items: stretch; }
.fx-addrow .fx-in { flex: 1 1 auto; min-width: 0; }
.fx-addrow .fx-btn { min-height: 52px; }
#fx-skmine .fx-chip[aria-pressed="true"]::after { content: " \00d7"; }

/* Role: the suggestions list only shows while it helps */
.fx-combo .fx-list[hidden] { display: none; }

/* Character picker: tabs, the scrollable row of plain characters, the designer */
.av-pick { margin-top: 8px; }
.av-modes { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--chip); margin-bottom: 16px; }
.av-mode { min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.av-mode[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(15,23,42,.12); }
.av-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.av-card { position: relative; flex: 0 0 auto; width: 150px; height: 188px; border-radius: 18px; border: 2px solid var(--line); background: var(--card); padding: 0; overflow: hidden; cursor: pointer; scroll-snap-align: start; }
.av-card img { position: absolute; left: 50%; bottom: -6px; height: 112%; width: auto; transform: translateX(-50%); pointer-events: none; }
.av-card[aria-checked="true"] { border-color: var(--coral-strong); box-shadow: 0 0 0 3px rgba(249,99,70,.28); }
.av-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.av-tick { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--coral-strong); color: var(--on-coral); display: none; place-items: center; }
.av-card[aria-checked="true"] .av-tick { display: grid; }
.av-design { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.av-prev { position: sticky; top: 16px; text-align: center; }
.av-prev-in { width: 220px; height: 275px; margin: 0 auto; border-radius: 24px; background: radial-gradient(circle at 50% 35%, var(--card), var(--chip)); border: 1px solid var(--line); overflow: hidden; }
.av-prev-in svg { width: 100%; height: 100%; display: block; }
.av-grp { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.av-grp legend { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; padding: 0; }
.av-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.av-chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--fx-ctl); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.av-chip[aria-pressed="true"] { background: var(--ink); color: var(--page); border-color: var(--ink); }
.av-chip.sw { width: 40px; height: 40px; min-height: 40px; padding: 0; display: grid; place-items: center; }
.av-chip.sw[aria-pressed="true"] { background: var(--card); box-shadow: 0 0 0 3px var(--coral-strong); border-color: var(--card); }
.av-sw { width: 28px; height: 28px; border-radius: 50%; display: block; border: 1px solid rgba(0,0,0,.15); }
.avc.avs { display: block; position: relative; overflow: hidden; border-radius: 50%; background: var(--chip); }
.avc.avs svg { width: 100%; height: 100%; display: block; }
@media (max-width: 720px) {
  .av-design { grid-template-columns: 1fr; }
  .av-prev { position: static; }
  .av-prev-in { width: 168px; height: 210px; }
  .av-card { width: 124px; height: 156px; }
}

/* Sign-in gate: "Why?" */
.gate-why-btn { background: none; border: 0; padding: 0 2px; color: var(--coral-text); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.gate-why-body { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--chip); color: var(--ink); font-size: 14px; line-height: 1.5; }
.gate-why-body[hidden] { display: none; }

/* t335: during sign-in the brand stays clickable above the scrim, so a mid-flow logo click can confirm before leaving. */
.top.top-above-signin { z-index: 60; }
