/* Ko'k Gumbaz — the guest's Mini App. Lapis, turquoise and sand; laid out for 375 px, everything inside .g-root (the
   demo puts the same app into a phone frame, so nothing here is fixed to the window). */
.g-root {
  --ink: #14233f; --blue: #1d3f7a; --deep: #10284f; --teal: #1f9fb0; --teal-d: #157f8d; --gold: #d9a441; --sand: #f6f0e4; --card: #fffdf8;
  --line: #e7dcc8; --muted: #6a7285; --ok: #1c8f62; --warn: #c97a12; --bad: #c2463a; --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  position: relative; height: 100dvh; overflow: hidden; background: var(--sand); color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
}
body:has(> .g-root) { margin: 0; background: #f6f0e4; }
.g-root *, .g-root *::before, .g-root *::after { box-sizing: border-box; }
:where(.g-root) button { font: inherit; color: inherit; cursor: pointer; }
.g-root h1, .g-root h2, .g-root h3, .g-root p { margin: 0; }
.g-root [hidden] { display: none !important; }
.g-app { height: 100%; display: flex; flex-direction: column; }
.g-outside { margin: 28px 22px; text-align: center; color: var(--muted); }

.g-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--deep); color: #fff; min-height: 54px; flex: none; }
.g-mark { width: 30px; height: 30px; color: var(--teal); flex: none; }
.g-mark svg { display: block; width: 100%; height: 100%; }
.g-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.g-title { font: 600 18px/1.15 var(--serif); letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-sub { font-size: 11.5px; opacity: .72; }
.g-back, .g-lang { border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; flex: none; }
.g-lang { font-weight: 700; letter-spacing: .5px; min-width: 44px; }
.g-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.g-page { padding: 14px 14px 20px; display: flex; flex-direction: column; gap: 12px; min-height: 100%; }
.g-tabs { display: flex; background: var(--card); border-top: 1px solid var(--line); flex: none; padding-bottom: env(safe-area-inset-bottom); }
.g-tab { flex: 1; border: 0; background: none; padding: 8px 4px 9px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); }
.g-tab.on { color: var(--blue); font-weight: 650; }
.g-tab-i { width: 22px; height: 22px; }
.g-tab-i svg { width: 100%; height: 100%; display: block; }

.g-btn { border: 0; border-radius: 12px; background: var(--blue); color: #fff; padding: 12px 18px; font-weight: 650; font-size: 15px; transition: transform .12s, filter .12s; }
.g-btn:active, .g-btn.pressing, .p-btn.pressing, .g-day.pressing, .g-mine.pressing, .g-tab.pressing { transform: scale(.97); filter: brightness(.92); }
.g-btn:disabled { background: #c9c3b6; color: #fff; cursor: default; }
.g-btn.wide { width: 100%; }
.g-btn.small { padding: 8px 12px; font-size: 13.5px; border-radius: 10px; }
.g-btn.ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px #cfd6e4; }
.g-btn.danger { background: var(--bad); }
.g-btn.ghost.danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1.5px #ecc5bf; }
.g-row { display: flex; gap: 10px; }
.g-row > * { flex: 1; }
.g-muted { color: var(--muted); font-size: 13.5px; }
.g-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.g-card.soft { background: #f0e9da; border-color: transparent; font-size: 13.5px; }
.g-card h3, .g-sheet-title { font: 600 15px var(--serif); }
.g-chip { display: inline-block; border-radius: 999px; padding: 3px 9px; font-size: 11.5px; font-weight: 650; background: #e8eef7; color: var(--blue); white-space: nowrap; }
.g-chip.v-dome { background: #dff3f5; color: var(--teal-d); } .g-chip.v-garden { background: #e3f1e2; color: #2f7d55; } .g-chip.v-street { background: #f3e7d6; color: #8a5a2b; }
.g-chip.s-confirmed { background: #dfeafc; color: var(--blue); } .g-chip.s-checked_in { background: #dcf3e8; color: var(--ok); }
.g-chip.s-held { background: #fbecc8; color: #8a5a06; } .g-chip.s-cancelled { background: #f6dedb; color: var(--bad); } .g-chip.s-checked_out { background: #e9e6df; color: #5f6470; }
.g-empty { margin: 26px 8px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.g-empty h2 { font: 600 20px var(--serif); }

.g-art { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #efe6d3; flex: none; }
.g-art svg { display: block; width: 100%; height: 100%; }
.g-hero { position: relative; margin: -14px -14px 0; height: 132px; overflow: hidden; flex: none; }
.g-hero-art, .g-hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.g-hero-text { position: absolute; left: 16px; right: 16px; top: 14px; color: #fff; text-shadow: 0 1px 8px rgba(8, 20, 45, .55); }
.g-hero-text h1 { font: 600 24px/1.15 var(--serif); }
.g-hero-text p { font-size: 12.5px; opacity: .92; margin-top: 3px; }

.g-cal { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px 8px 8px; margin-top: -26px; position: relative; box-shadow: 0 8px 22px rgba(16, 40, 79, .1); }
.g-cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 6px; }
.g-cal-head b { font: 600 17px var(--serif); }
.g-cal-nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 20px; line-height: 1; color: var(--blue); }
.g-cal-nav:disabled { opacity: .35; cursor: default; }
.g-cal-wd, .g-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.g-cal-wd span { text-align: center; font-size: 11px; color: var(--muted); padding: 2px 0 4px; font-weight: 600; }
.g-cal-wd .we { color: var(--gold); }
.g-day { border: 0; background: #f5f8f7; border-radius: 10px; padding: 5px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 0; min-height: 52px; line-height: 1.15; position: relative; }
.g-day.blank { background: none; }
.g-day b { font-size: 15px; font-weight: 650; }
.g-day b small { font-size: 9px; font-weight: 600; margin-left: 2px; color: var(--teal-d); text-transform: lowercase; }
.g-day.in b small, .g-day.out b small { color: #cfe6ee; } .g-day.off b small { color: #c5c0b4; }
.g-day i { font-style: normal; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.g-day em { font-style: normal; font-size: 9.5px; font-weight: 650; color: var(--ok); white-space: nowrap; }
.g-day.we { background: #fbf4e3; }
.g-day.few em { color: var(--warn); }
.g-day.full { background: #efece6; } .g-day.full b, .g-day.full i { color: #a9a59b; } .g-day.full em { color: #a05b52; } .g-day.full i { text-decoration: line-through; }
.g-day.off { background: none; cursor: default; } .g-day.off b { color: #c5c0b4; font-weight: 500; }
.g-day.today::after { content: ""; position: absolute; top: 4px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.g-day.mid { background: #d9e9f2; border-radius: 4px; }
.g-day.in, .g-day.out { background: var(--blue); }
.g-day.in b, .g-day.out b, .g-day.in i, .g-day.out i, .g-day.in em, .g-day.out em { color: #fff; text-decoration: none; }
.g-day.in { border-radius: 10px 4px 4px 10px; } .g-day.out { border-radius: 4px 10px 10px 4px; }
.g-legend { font-size: 12px; color: var(--muted); padding: 0 4px; }
.g-dock { margin-top: auto; position: sticky; bottom: -20px; margin-inline: -14px; margin-bottom: -20px; padding: 10px 14px 14px; background: linear-gradient(180deg, rgba(246, 240, 228, 0), var(--sand) 22%); display: flex; flex-direction: column; gap: 8px; }
.g-cal-hint { text-align: center; font-size: 13px; color: var(--muted); }
.g-cal-hint.done { color: var(--ink); font-weight: 650; font-size: 14.5px; }

.g-stayline { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.g-stayline b { font: 600 18px var(--serif); } .g-stayline span, .g-found { color: var(--muted); font-size: 13.5px; }
.g-room { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 4px 14px rgba(16, 40, 79, .06); flex: none; }
.g-room .g-art { border-radius: 0; }
.g-room-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.g-room-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.g-room-top h2 { font: 600 18px var(--serif); }
.g-room-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 4px; }
.g-price { display: flex; flex-direction: column; min-width: 0; }
.g-price b { font-size: 19px; font-variant-numeric: tabular-nums; } .g-price span { font-size: 12px; color: var(--muted); }
.g-night { display: flex; align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.g-night span { flex: 1; min-width: 0; } .g-night b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-night.total { border-bottom: 0; padding-bottom: 0; font-size: 15.5px; } .g-night.total b { font-size: 18px; color: var(--blue); }
.g-tag { font-style: normal; font-size: 10.5px; font-weight: 650; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.g-tag.we { background: #fbecc8; color: #8a5a06; } .g-tag.hi { background: #f6dedb; color: var(--bad); }

.g-sheet { position: absolute; inset: 0; z-index: 30; background: rgba(12, 24, 48, .5); display: flex; align-items: flex-end; animation: g-fade .18s; }
.g-sheet-box { width: 100%; max-height: 88%; overflow-y: auto; background: var(--card); border-radius: 20px 20px 0 0; padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 10px; animation: g-up .22s; }
.g-sheet-title { font-size: 19px; }
.g-sheet-text { font-size: 14.5px; }
.g-alt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fff; }
.g-alt div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .g-alt span { font-size: 12.5px; color: var(--muted); }
.g-toasts { position: absolute; left: 12px; right: 12px; bottom: 76px; z-index: 40; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.g-toast { background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); animation: g-up .2s; transition: opacity .4s; }
.g-toast.bad { background: var(--bad); } .g-toast.out { opacity: 0; }

.g-holdbox { background: var(--deep); color: #fff; border-radius: 20px; padding: 18px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.g-holdbox h2 { font: 600 19px var(--serif); } .g-holdbox .g-muted { color: rgba(255, 255, 255, .75); }
.g-ring { position: relative; width: 150px; height: 150px; }
.g-ring svg { width: 100%; height: 100%; display: block; }
.g-ring circle { fill: none; stroke-width: 8; } .g-ring .track { stroke: rgba(255, 255, 255, .14); }
.g-ring .bar { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .25s linear; } .g-ring.late .bar { stroke: #ef7d6f; }
.g-ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.g-ring-time { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .5px; } .g-ring-in span { font-size: 10.5px; opacity: .75; max-width: 96px; line-height: 1.2; }
.g-sum { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.g-sum div { display: flex; flex-direction: column; min-width: 0; } .g-sum span { font-size: 12.5px; color: var(--muted); }
.g-sum-total { font-size: 18px; white-space: nowrap; color: var(--blue); }

/* the test provider's page looks like another company's on purpose */
.p-page { margin: -14px -14px -20px; padding: 16px 16px 22px; background: #f3f4f8; min-height: calc(100% + 34px); display: flex; flex-direction: column; gap: 12px; font-family: "Segoe UI", Roboto, Arial, sans-serif; flex: 1; }
.p-brand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .p-brand b { font-size: 18px; color: #2b2f3a; }
.p-logo { width: 30px; height: 30px; border-radius: 9px; background: #5b4bdb; color: #fff; display: grid; place-items: center; font-weight: 800; }
.p-brand em { font-style: normal; margin-left: auto; background: #fff1c9; color: #7a5200; border: 1px dashed #d9a441; border-radius: 8px; padding: 4px 8px; font-size: 11.5px; font-weight: 650; }
.p-card { background: #fff; border-radius: 14px; padding: 4px 14px; box-shadow: 0 1px 3px rgba(20, 30, 60, .08); }
.p-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #eef0f4; font-size: 13.5px; color: #6b7080; }
.p-row b { color: #2b2f3a; text-align: right; font-weight: 600; } .p-row:last-child { border-bottom: 0; }
.p-row.sum b { font-size: 20px; font-weight: 750; }
.p-btn { border: 0; border-radius: 12px; background: #5b4bdb; color: #fff; padding: 14px; font-weight: 700; font-size: 16px; }
.p-btn:disabled { opacity: .7; }
.p-note { font-size: 12px; color: #7b8090; text-align: center; margin: 0; }

.g-okbox { display: flex; align-items: center; gap: 12px; background: #dcf3e8; border-radius: 16px; padding: 12px 14px; animation: g-up .3s; }
.g-okbox div { display: flex; flex-direction: column; } .g-okbox b { font: 600 17px var(--serif); color: #12603f; } .g-okbox span { font-size: 13px; color: #2d6b51; }
.g-ok { width: 38px; height: 38px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; } .g-ok svg { width: 22px; height: 22px; }
.g-ticket { background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 24px rgba(16, 40, 79, .12); flex: none; }
.g-ticket .g-art { border-radius: 0; aspect-ratio: 16 / 6; }
.g-ticket-head { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px 6px; align-items: flex-start; }
.g-ticket-head small { color: var(--muted); font-size: 11.5px; display: block; } .g-ticket-head h2 { font: 700 26px var(--serif); margin: 2px 0 6px; }
.g-qr-box { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 104px; flex: none; text-align: center; } .g-qr-box small { font-size: 10px; line-height: 1.2; }
.g-qr { width: 100px; height: 100px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; } .g-qr svg { display: block; width: 100%; height: 100%; }
.g-ticket-cut { height: 16px; background: radial-gradient(circle at 0 50%, var(--sand) 8px, transparent 8.5px), radial-gradient(circle at 100% 50%, var(--sand) 8px, transparent 8.5px), linear-gradient(var(--line), var(--line)) center / calc(100% - 28px) 1px no-repeat; }
.g-ticket-body { padding: 4px 14px 14px; display: flex; flex-direction: column; }
.g-trow { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13.5px; } .g-trow span { color: var(--muted); flex: none; } .g-trow b { text-align: right; font-weight: 600; }
.g-tnights { border-top: 1px dashed var(--line); margin-top: 4px; }
.g-paid { margin-top: 8px !important; align-self: flex-start; background: #dcf3e8; color: #12603f; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 650; }
.g-ticket.s-cancelled .g-art, .g-ticket.s-checked_out .g-art { filter: grayscale(.8); opacity: .7; } .g-ticket.s-cancelled .g-paid { display: none; }
.g-mine { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; border-left: 5px solid var(--blue); flex: none; }
.g-mine.s-held { border-left-color: var(--gold); } .g-mine.s-checked_in { border-left-color: var(--ok); } .g-mine.s-cancelled, .g-mine.s-checked_out { border-left-color: #c9c3b6; }
.g-mine-top, .g-mine-bot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.g-mine-top b { font: 600 17px var(--serif); } .g-mine-mid { font-size: 14px; } .g-mine-bot span { font-size: 12.5px; color: var(--muted); }
.g-stars { display: flex; gap: 6px; } .g-stars button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 10px; font-size: 24px; color: var(--gold); padding: 6px 0; }
@keyframes g-up { from { transform: translateY(14px); opacity: 0; } }
@keyframes g-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .g-root * { animation: none !important; transition: none !important; } }
