/* IREPworkspaces client app: photo-led poster system (directions B + C) */
:root {
  --navy: #16253F;
  --navy-d: #0D1729;
  --navy-soft: #E7EBF2;
  --red: #E02A28;
  --red-d: #B91F1D;
  --red-soft: #FCE9E8;
  --grey: #C1C6C8;
  --light: #F6F6F6;
  --paper: #FFFFFF;
  --ink: #111A2B;
  --muted: #5A6577;
  --line: #E3E7EC;
  --ok: #1D7A4E;
  --ok-soft: #E4F3EB;
  --page: #DDE2E9;
  --r: 4px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: Lato, system-ui, sans-serif; background: var(--page); color: var(--ink); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.dot { color: var(--red); }
.disp { font-weight: 900; text-transform: uppercase; letter-spacing: -0.045em; line-height: .88; }

/* ---------- stage ---------- */
.stage { min-height: 100vh; display: grid; grid-template-columns: minmax(260px, 380px) auto; gap: 64px; align-items: center; justify-content: center; padding: 24px 40px; }
.side h1 { font-size: 54px; color: var(--navy); margin: 26px 0 16px; }
.side-lead { color: var(--muted); font-size: 16px; line-height: 1.55; }
.side-label { margin: 30px 0 10px; font-weight: 900; font-size: 14px; color: var(--navy); }
.flows { display: grid; gap: 8px; }
.flow-btn { text-align: left; background: var(--paper); border-radius: var(--r); padding: 14px 16px; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s; }
.flow-btn:hover { box-shadow: inset 0 0 0 1.5px var(--red); }
.flow-btn strong { display: block; font-size: 15px; color: var(--navy); }
.flow-btn span { font-size: 13px; color: var(--muted); }
.side-foot { margin-top: 26px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.side-foot a { color: var(--navy); font-weight: 700; }

.device-wrap { width: calc(410px * var(--s, 1)); height: calc(864px * var(--s, 1)); }
.device { width: 410px; height: 864px; border-radius: 58px; background: #0B1220; padding: 10px; position: relative; transform: scale(var(--s, 1)); transform-origin: top left; box-shadow: 0 40px 80px -30px rgba(0,0,0,.35); }
.island { position: absolute; top: 21px; left: 50%; width: 120px; height: 34px; margin-left: -60px; background: #000; border-radius: 20px; z-index: 30; }
.app { position: relative; width: 390px; height: 844px; border-radius: 48px; overflow: hidden; background: var(--light); display: flex; flex-direction: column; }

@media (max-width: 860px) {
  .stage { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  .side { display: none; }
  .device-wrap { width: 100%; height: 100dvh; min-width: 0; overflow: hidden; }
  .device { width: 100%; height: 100%; border-radius: 0; padding: 0; transform: none; box-shadow: none; background: var(--light); }
  .island { display: none; }
  .app { width: 100%; height: 100%; border-radius: 0; }
}

/* ---------- chrome ---------- */
.statusbar { position: absolute; top: 0; left: 0; right: 0; height: 54px; display: flex; justify-content: space-between; align-items: center; padding: 6px 34px 0; font-weight: 700; font-size: 16px; z-index: 20; background: var(--light); }
.app.photo-top .statusbar { background: transparent; color: #fff; transition: background .2s, color .2s; }
.app.photo-top.scrolled .statusbar { background: var(--light); color: var(--ink); }
.sb-icons { display: flex; gap: 5px; align-items: center; }
.sb-icons i { display: block; width: 17px; height: 11px; border-radius: 3px; background: currentColor; opacity: .9; }
.sb-icons i:first-child { width: 16px; clip-path: polygon(0 100%, 25% 100%, 25% 70%, 50% 70%, 50% 40%, 75% 40%, 75% 10%, 100% 10%, 100% 100%); }
.sb-icons i:nth-child(2) { width: 15px; border-radius: 50% 50% 0 0; clip-path: polygon(50% 100%, 0 20%, 100% 20%); }
.sb-icons i:last-child { width: 25px; }

.view { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; position: relative; scrollbar-width: none; padding-top: 54px; }
.app.photo-top .view { padding-top: 0; }
.view::-webkit-scrollbar { display: none; }
.screen { min-height: 100%; padding: 0 0 28px; animation: fadein .2s ease-out; }
.screen.push { animation: slidein .28s cubic-bezier(.2,.8,.2,1); }
@keyframes fadein { from { opacity: .4; } to { opacity: 1; } }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.tabbar { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-top: 1px solid var(--line); padding: 6px 6px 28px; }
.tab { display: grid; justify-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: #6F7888; padding: 6px 0 2px; min-height: 50px; position: relative; }
.tab svg { width: 25px; height: 25px; }
.tab.on { color: var(--navy); font-weight: 900; }
.tab.on svg { stroke-width: 2.2; }
.tab.on::before { content: ""; position: absolute; top: -6px; left: 50%; width: 26px; height: 3px; margin-left: -13px; background: var(--red); }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 4px 12px; min-height: 48px; }
.nav-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r); color: var(--navy); }
.nav-btn svg { width: 24px; height: 24px; }
.nav-title { font-weight: 900; font-size: 15px; color: var(--muted); }
.photo-nav { position: absolute; top: 54px; left: 0; right: 0; z-index: 3; }
.photo-nav .nav-btn { background: #fff; }
.photo-nav .nav-title { color: #fff; }

.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 20px 16px; }
.big-title { font-size: 52px; color: var(--navy); }
.title-sub { font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 10px; }
.sq-btn { width: 48px; height: 48px; border-radius: var(--r); background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.sq-btn svg { width: 24px; height: 24px; stroke-width: 2.2; }

.section-h { display: flex; justify-content: space-between; align-items: baseline; padding: 24px 20px 10px; }
.section-h h2 { font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; color: var(--navy); }
.section-h button { font-size: 14px; font-weight: 900; color: var(--red-d); }

.group { margin: 0 16px; background: var(--paper); border-radius: var(--r); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; min-height: 62px; width: 100%; text-align: left; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .ico { width: 40px; height: 40px; border-radius: var(--r); background: var(--light); color: var(--navy); display: grid; place-items: center; flex: none; }
.row .ico svg { width: 21px; height: 21px; }
.row .txt { flex: 1; min-width: 0; }
.row .t1 { display: block; font-weight: 900; font-size: 16px; }
.row .t2 { display: block; font-size: 14px; color: var(--muted); margin-top: 1px; }
.row .chev { color: #A3ABB8; width: 18px; height: 18px; flex: none; }
.ini { width: 40px; height: 40px; border-radius: 50%; background: var(--light); color: var(--navy); font-weight: 900; font-size: 13px; display: grid; place-items: center; flex: none; }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 900; padding: 4px 8px; border-radius: 2px; background: var(--navy-soft); color: var(--navy); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.alert { background: var(--red); color: #fff; }
.chip.ghost { background: var(--light); color: var(--muted); }
.chip.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

.seg { display: flex; gap: 22px; margin: 0 20px 16px; border-bottom: 1px solid #D9DEE5; }
.seg button { padding: 10px 0 9px; font-size: 15px; font-weight: 900; color: #6F7888; position: relative; }
.seg button.on { color: var(--navy); }
.seg button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red); }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; border-radius: var(--r); font-weight: 900; font-size: 16px; background: var(--red); color: #fff; }
.btn.navy { background: var(--navy); }
.btn.secondary { background: var(--paper); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn.quiet { background: transparent; color: var(--navy); }
.btn[disabled] { background: #C9CED6; color: #fff; cursor: default; }
.btn svg { width: 20px; height: 20px; }
.pad { padding: 0 16px; }
.empty { text-align: center; padding: 40px 30px; color: var(--muted); font-size: 15px; }
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* red open frame, taken from the logo */
.frame { position: relative; }
.frame::after { content: ""; position: absolute; left: 30px; top: -6px; right: -6px; bottom: -6px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); pointer-events: none; }
.frame::before { content: ""; position: absolute; left: -6px; right: -6px; bottom: -6px; border-bottom: 2px solid var(--red); pointer-events: none; }

/* ---------- photo hero ---------- */
.hero { position: relative; height: 440px; background: var(--navy) center/cover; color: #fff; display: flex; flex-direction: column; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,23,41,.6) 0%, rgba(13,23,41,0) 26%, rgba(13,23,41,.12) 50%, rgba(13,23,41,.9) 100%); }
.hero > * { position: relative; }
.hero-bar { display: flex; justify-content: space-between; align-items: center; padding: 58px 20px 0; }
.pill { background: #fff; color: var(--navy); border-radius: var(--r); padding: 9px 12px 9px 10px; font-size: 13px; font-weight: 900; display: flex; align-items: center; gap: 6px; }
.pill svg { width: 20px; height: 20px; }
.hero-txt { margin-top: auto; padding: 0 20px 26px; }
.hero-txt small { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.9); }
.hero-txt .disp { font-size: 62px; margin-top: 10px; }

/* ---------- home bento ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 16px 0; }
.tile { border-radius: var(--r); padding: 14px; position: relative; text-align: left; background: var(--paper); min-height: 108px; display: flex; flex-direction: column; }
.tile .k { font-size: 12px; font-weight: 700; color: var(--muted); }
.tile .v { font-size: 22px; font-weight: 900; color: var(--navy); margin-top: 4px; letter-spacing: -0.02em; line-height: 1.1; }
.tile .s { font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 6px; }
.t-photo { grid-column: span 2; min-height: 200px; background: var(--navy) center/cover; color: #fff; justify-content: flex-end; overflow: hidden; }
.t-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,23,41,0) 28%, rgba(13,23,41,.9)); }
.t-photo > * { position: relative; }
.t-photo .tag { align-self: flex-start; background: var(--red); color: #fff; font-size: 12px; font-weight: 900; padding: 4px 8px; }
.t-photo .disp { font-size: 34px; margin-top: 10px; }
.t-photo .m { font-size: 14px; color: rgba(255,255,255,.9); margin-top: 6px; }
.t-navy { background: var(--navy); color: #fff; }
.t-navy .k { color: rgba(255,255,255,.8); }
.t-navy .num { font-size: 54px; font-weight: 900; letter-spacing: -0.06em; line-height: .9; margin-top: 6px; }
.t-navy .num small { font-size: 16px; letter-spacing: 0; color: rgba(255,255,255,.75); }
.cells { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-top: auto; padding-top: 10px; }
.cells i { height: 6px; background: #fff; }
.cells i.u { background: rgba(255,255,255,.22); }
.t-pay .go { position: absolute; right: 12px; bottom: 12px; background: var(--red); color: #fff; font-size: 13px; font-weight: 900; padding: 7px 12px; border-radius: 2px; }
.t-guest { flex-direction: row; align-items: center; gap: 10px; }
.t-guest strong { display: block; font-size: 15px; }
.t-guest span { font-size: 13px; color: var(--muted); }
.prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: auto; padding-top: 10px; }
.prog i { height: 4px; background: var(--line); }
.prog i.on { background: var(--navy); }
.prog i.cur { background: var(--red); }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 16px 0; }
.act { border-radius: var(--r); padding: 14px 12px; font-weight: 900; font-size: 14px; line-height: 1.15; display: grid; align-content: space-between; gap: 22px; text-align: left; min-height: 104px; }
.act svg { width: 24px; height: 24px; }
.act.r { background: var(--red); color: #fff; }
.act.n { background: var(--navy); color: #fff; }
.act.w { background: var(--paper); color: var(--navy); }
.notice { margin: 0 16px; border-radius: var(--r); background: var(--paper); padding: 16px; display: flex; gap: 12px; }
.notice .ico { width: 36px; height: 36px; border-radius: var(--r); background: var(--light); color: var(--navy); display: grid; place-items: center; flex: none; }
.notice .ico svg { width: 20px; height: 20px; }
.notice p { font-size: 15px; line-height: 1.45; }
.notice p strong { display: block; }

/* ---------- booking ---------- */
.rooms-row { display: flex; gap: 10px; padding: 0 16px 16px; overflow-x: auto; scrollbar-width: none; }
.rooms-row::-webkit-scrollbar { display: none; }
.room-card { flex: none; width: 150px; height: 124px; border-radius: var(--r); background: var(--navy) center/cover; position: relative; overflow: hidden; color: #fff; text-align: left; padding: 10px; display: flex; flex-direction: column; justify-content: flex-end; }
.room-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,23,41,0) 25%, rgba(13,23,41,.9)); }
.room-card > * { position: relative; }
.room-card strong { font-size: 19px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; }
.room-card span { font-size: 12px; color: rgba(255,255,255,.9); }
.room-card .free { position: absolute; top: 8px; left: 8px; background: #fff; color: var(--navy); font-size: 11px; font-weight: 900; padding: 3px 6px; }
.days { display: flex; gap: 6px; padding: 0 16px 14px; overflow-x: auto; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 52px; padding: 8px 0 7px; border-radius: var(--r); background: var(--paper); display: grid; justify-items: center; gap: 1px; }
.day span { font-size: 12px; font-weight: 700; color: var(--muted); }
.day strong { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; }
.day.on { background: var(--navy); color: #fff; }
.day.on span { color: rgba(255,255,255,.8); }
.tl { margin: 0 16px; background: var(--paper); border-radius: var(--r); overflow: hidden; }
.tl-scroll { overflow-x: auto; scrollbar-width: none; }
.tl-scroll::-webkit-scrollbar { display: none; }
.tl-grid { position: relative; padding: 10px 0 8px; }
.tl-hours { display: flex; height: 22px; }
.tl-corner { position: sticky; left: 0; z-index: 3; flex: none; width: 100px; background: var(--paper); border-right: 1px solid var(--line); }
.tl-hours span:not(.tl-corner) { flex: none; width: 64px; font-size: 12px; font-weight: 900; color: var(--muted); padding-left: 5px; border-left: 1px solid var(--line); }
.tl-row { display: flex; align-items: center; height: 60px; border-top: 1px solid var(--line); }
.tl-room { position: sticky; left: 0; z-index: 3; width: 100px; flex: none; height: 100%; padding: 11px 10px 10px 14px; background: var(--paper); border-right: 1px solid var(--line); }
.tl-room strong { display: block; font-size: 14px; font-weight: 900; text-transform: uppercase; }
.tl-room span { font-size: 12px; color: var(--muted); }
.tl-track { position: relative; height: 100%; display: flex; }
.slot { flex: none; width: 32px; height: 100%; border-left: 1px solid #F1F3F6; }
.slot:nth-child(odd) { border-left-color: var(--line); }
.slot.free:hover { background: var(--red-soft); }
.slot.past { background: #F1F2F4; cursor: default; }
.blk { position: absolute; top: 8px; bottom: 8px; border-radius: 2px; background: #DFE3E9; color: var(--muted); font-size: 12px; font-weight: 900; padding: 6px 8px; overflow: hidden; white-space: nowrap; pointer-events: none; }
.blk.mine { background: var(--navy); color: #fff; }
.blk.pick { background: var(--red); color: #fff; }
.now-line { position: absolute; top: 32px; bottom: 0; width: 2px; background: var(--red); z-index: 2; pointer-events: none; }
.now-line::before { content: "NOW"; position: absolute; top: -14px; left: -14px; background: var(--red); color: #fff; font-size: 10px; font-weight: 900; padding: 1px 4px; }
.legend { display: flex; gap: 16px; padding: 12px 20px 0; font-size: 13px; color: var(--muted); font-weight: 700; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -1px; margin-right: 6px; }
.hint { padding: 10px 20px 0; font-size: 14px; color: var(--muted); }

/* ---------- sheet ---------- */
.scrim { position: absolute; inset: 0; background: rgba(11,18,32,.5); opacity: 0; pointer-events: none; transition: opacity .22s; z-index: 40; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90%; background: var(--paper); border-radius: 18px 18px 0 0; z-index: 41; transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; overflow: hidden; }
.sheet.on { transform: none; }
.grab { width: 38px; height: 5px; border-radius: 3px; background: #D3D8DF; margin: 8px auto 0; flex: none; }
.sheet.has-photo .grab { position: absolute; left: 50%; margin-left: -19px; top: 0; z-index: 2; background: rgba(255,255,255,.85); }
.sheet-photo { height: 150px; flex: none; background: var(--navy) center/cover; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 10px 6px 20px; flex: none; }
.sheet-head h3 { font-size: 30px; color: var(--navy); }
.sheet-body { overflow-y: auto; padding: 4px 20px 16px; scrollbar-width: none; }
.sheet-foot { padding: 12px 20px 34px; border-top: 1px solid var(--line); flex: none; }
.sum { background: var(--light); border-radius: var(--r); padding: 2px 16px; margin-bottom: 16px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.sum div:first-child { border-top: 0; }
.sum span { color: var(--muted); }
.sum strong { text-align: right; }
.label { display: block; font-size: 13px; font-weight: 900; color: var(--navy); margin: 16px 0 8px; }
.field { width: 100%; min-height: 50px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--light); padding: 12px 14px; font-size: 16px; }
.field:focus { outline: none; border-color: var(--navy); background: #fff; }
textarea.field { min-height: 84px; resize: none; }
.stepper { display: flex; align-items: center; justify-content: space-between; background: var(--light); border-radius: var(--r); padding: 4px; }
.stepper button { width: 46px; height: 46px; border-radius: 2px; background: var(--navy); color: #fff; font-size: 22px; font-weight: 700; }
.stepper button[disabled] { opacity: .3; }
.stepper strong { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-chip { padding: 10px 14px; border-radius: var(--r); border: 1.5px solid var(--line); font-size: 15px; font-weight: 700; background: #fff; min-height: 44px; }
.pick-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cat { display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border-radius: var(--r); border: 1.5px solid var(--line); font-size: 13px; font-weight: 900; }
.cat svg { width: 24px; height: 24px; color: var(--navy); }
.cat.on { border-color: var(--red); background: var(--red); color: #fff; }
.cat.on svg { color: #fff; }
.photo-add { display: flex; gap: 10px; align-items: center; }
.photo-add button { width: 72px; height: 72px; border-radius: var(--r); border: 1.5px dashed var(--grey); display: grid; place-items: center; color: var(--muted); }
.photo-add button svg { width: 24px; height: 24px; }
.thumb { width: 72px; height: 72px; border-radius: var(--r); background: #8a9099 url(img/room-small.jpg) center/cover; display: block; }
.people { display: flex; gap: 8px; flex-wrap: wrap; }
.person { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: var(--r); border: 1.5px solid var(--line); font-size: 14px; font-weight: 700; min-height: 44px; }
.person b { width: 30px; height: 30px; border-radius: 50%; background: var(--light); color: var(--navy); display: grid; place-items: center; font-size: 12px; }
.person.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.person.on b { background: #fff; }
.done-wrap { text-align: center; padding: 10px 0 6px; }
.done-wrap h3 { font-size: 34px; color: var(--navy); margin-top: 16px; }
.done-wrap p { color: var(--muted); margin-top: 8px; font-size: 15px; line-height: 1.45; }
.tick { width: 64px; height: 64px; border-radius: var(--r); background: var(--navy); color: #fff; display: grid; place-items: center; margin: 0 auto; }
.tick svg { width: 32px; height: 32px; stroke-width: 2.6; }
.qr-card { width: 220px; margin: 22px auto 6px; padding: 16px; background: #fff; }
.qr-card svg { width: 100%; height: auto; display: block; }
.qr-card p { font-size: 13px; color: var(--muted); margin-top: 12px; }
.qr-card strong { display: block; font-size: 26px; font-weight: 900; letter-spacing: .25em; color: var(--navy); margin-top: 2px; }
.paymethods { display: grid; gap: 8px; }
.pm { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); border: 1.5px solid var(--line); text-align: left; width: 100%; }
.pm .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--grey); flex: none; }
.pm.on { border-color: var(--navy); }
.pm.on .radio { border: 7px solid var(--red); }
.pm strong { display: block; font-size: 16px; }
.pm span { font-size: 13px; color: var(--muted); }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--navy-soft); border-top-color: var(--red); margin: 18px auto; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- detail pages ---------- */
.d-head { padding: 6px 20px 4px; }
.d-head h1 { font-size: 44px; color: var(--navy); margin: 12px 0 8px; }
.d-head p { color: var(--muted); font-size: 14px; }
.photo-head { height: 270px; position: relative; background: var(--navy) center/cover; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 20px 20px; }
.photo-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,23,41,.5) 0%, rgba(13,23,41,0) 35%, rgba(13,23,41,.9) 100%); }
.photo-head > * { position: relative; }
.photo-head > .photo-nav { position: absolute; top: 54px; left: 0; right: 0; }
.photo-head h1 { font-size: 46px; }
.photo-head p { font-size: 14px; color: rgba(255,255,255,.9); margin-top: 8px; }
.steps { margin: 0 16px; background: var(--paper); border-radius: var(--r); padding: 18px 16px 6px; }
.st { display: grid; grid-template-columns: 24px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.st::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.st:last-child::before { display: none; }
.st.done::before { background: var(--navy); }
.st .b { width: 24px; height: 24px; border-radius: 2px; border: 2px solid var(--grey); background: #fff; display: grid; place-items: center; z-index: 1; }
.st.done .b { background: var(--navy); border-color: var(--navy); color: #fff; }
.st.done .b svg { width: 14px; height: 14px; stroke-width: 3; }
.st.cur .b { border-color: var(--red); background: var(--red); }
.st.cur .b::after { content: ""; width: 8px; height: 8px; background: #fff; }
.st strong { font-size: 16px; font-weight: 900; display: block; }
.st span { font-size: 14px; color: var(--muted); }
.st.todo strong { color: #7F8898; }
.tech { margin: 12px 16px 0; background: var(--paper); border-radius: var(--r); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.tech .txt { flex: 1; }
.tech .txt strong { display: block; font-weight: 900; }
.tech .txt span { font-size: 14px; color: var(--muted); }
.call { width: 46px; height: 46px; border-radius: var(--r); background: var(--red); color: #fff; display: grid; place-items: center; }
.call svg { width: 20px; height: 20px; }
.note-card { margin: 12px 16px 0; background: var(--paper); border-radius: var(--r); padding: 16px; font-size: 15px; line-height: 1.5; }
.note-card .k { font-size: 13px; font-weight: 900; color: var(--navy); margin-bottom: 6px; }
.stars { display: flex; gap: 6px; margin-top: 10px; }
.stars button { width: 46px; height: 46px; border-radius: var(--r); background: var(--light); color: #A3ABB8; display: grid; place-items: center; }
.stars button.on { background: var(--red); color: #fff; }
.stars svg { width: 22px; height: 22px; }

/* ---------- payments ---------- */
.due { margin: 14px 22px 0 16px; background: var(--navy); color: #fff; border-radius: var(--r); padding: 20px; }
.due .k { font-size: 14px; color: rgba(255,255,255,.8); font-weight: 700; }
.due .v { font-size: 46px; font-weight: 900; letter-spacing: -0.05em; margin: 6px 0 4px; line-height: 1; }
.due .d { font-size: 14px; color: rgba(255,255,255,.8); margin-bottom: 18px; }
.lines { margin: 0 16px; background: var(--paper); border-radius: var(--r); padding: 4px 16px; }
.lines div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; }
.lines div:first-child { border-top: 0; }
.lines span small { display: block; color: var(--muted); font-size: 13px; }
.lines .total { font-weight: 900; font-size: 19px; color: var(--navy); }

/* ---------- office / community ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 16px 0; }
.stat { background: var(--paper); border-radius: var(--r); padding: 16px; }
.stat .k { font-size: 13px; color: var(--muted); font-weight: 700; }
.stat .v { font-size: 34px; font-weight: 900; color: var(--navy); margin-top: 4px; letter-spacing: -0.04em; line-height: 1; }
.stat .v small { font-size: 14px; color: var(--muted); letter-spacing: 0; }
.stat .v.sm { font-size: 18px; letter-spacing: -0.01em; line-height: 1.2; }
.bars { margin: 0 16px; background: var(--paper); border-radius: var(--r); padding: 16px; }
.bars-row { display: flex; align-items: flex-end; gap: 10px; height: 116px; margin-top: 12px; }
.bars-row div { flex: 1; display: grid; justify-items: center; gap: 6px; height: 100%; align-content: end; font-size: 12px; color: var(--muted); font-weight: 700; }
.bars-row b { color: var(--ink); font-size: 14px; }
.bars-row i { display: block; width: 100%; border-radius: 2px; background: var(--navy-soft); }
.bars-row div.on i { background: var(--navy); }
.event { margin: 0 16px 10px; background: var(--paper); border-radius: var(--r); overflow: hidden; }
.event-img { height: 150px; background: var(--navy) center/cover; position: relative; display: flex; align-items: flex-end; padding: 12px; }
.event-img .date { background: var(--red); color: #fff; padding: 6px 10px 5px; text-align: center; font-weight: 900; line-height: .95; font-size: 26px; letter-spacing: -0.03em; }
.event-img .date small { display: block; font-size: 11px; letter-spacing: 0; text-transform: uppercase; }
.event-body { padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.event-body .txt { flex: 1; }
.event-body strong { display: block; font-size: 17px; font-weight: 900; }
.event-body span { font-size: 14px; color: var(--muted); }
.rsvp { padding: 10px 16px; border-radius: var(--r); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--navy); color: var(--navy); font-weight: 900; font-size: 14px; min-height: 44px; }
.rsvp.on { background: var(--navy); color: #fff; }

/* ---------- toast ---------- */
.toast { position: absolute; left: 12px; right: 12px; top: 54px; z-index: 60; background: var(--navy-d); color: #fff; border-radius: var(--r); padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: 15px; font-weight: 700; transform: translateY(calc(-100% - 90px)); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: 0 16px 30px -12px rgba(0,0,0,.4); }
.toast.on { transform: none; }
.toast .ti { width: 34px; height: 34px; border-radius: 2px; background: var(--red); display: grid; place-items: center; flex: none; }
.toast .ti svg { width: 18px; height: 18px; }
.toast small { display: block; color: rgba(255,255,255,.78); font-size: 13px; font-weight: 400; }

/* ---------- hero buttons ---------- */
.hb-right { display: flex; gap: 8px; }
.hb-btn { width: 40px; height: 40px; border-radius: var(--r); background: #fff; color: var(--navy); font-weight: 900; font-size: 13px; display: grid; place-items: center; position: relative; }
.hb-btn svg { width: 21px; height: 21px; }
.hb-btn i { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; }
.tag-red { align-self: flex-start; background: var(--red); color: #fff; font-size: 12px; font-weight: 900; padding: 4px 8px; margin-bottom: 10px; }
.link { color: var(--red-d); font-weight: 900; font-size: inherit; }
.btn.danger { color: var(--red-d); }
.ico.red { background: var(--red); color: #fff; }

/* ---------- sign in ---------- */
.screen.auth { height: 100%; padding-bottom: 0; }
.auth-hero { height: 100%; min-height: 600px; position: relative; background: var(--navy) center/cover; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 20px 40px; }
.auth-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,23,41,.35) 0%, rgba(13,23,41,.2) 30%, rgba(13,23,41,.92) 72%); }
.auth-hero > * { position: relative; }
.auth-copy small { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.88); }
.auth-copy .disp { font-size: 66px; margin: 12px 0 14px; }
.auth-copy p { font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.88); max-width: 320px; }
.auth-cta { margin-top: 28px; }
.auth-cta p { font-size: 13px; color: rgba(255,255,255,.8); text-align: center; margin-top: 12px; }
.phone-field { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1.5px solid var(--navy); border-radius: var(--r); padding: 0 16px; min-height: 64px; }
.phone-field span { font-size: 22px; font-weight: 900; color: var(--navy); padding-right: 12px; border-right: 1.5px solid var(--line); }
.phone-field input { border: 0; outline: 0; background: none; font-size: 24px; font-weight: 900; letter-spacing: .04em; width: 100%; min-width: 0; color: var(--ink); }
.otp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 24px 20px 4px; }
.otp span { height: 72px; border-radius: var(--r); background: var(--paper); border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 34px; font-weight: 900; color: var(--navy); }
.otp span.cur { border: 2px solid var(--red); }
.sms { display: flex; justify-content: center; padding: 16px 0 6px; }
.sms button { background: var(--paper); border-radius: var(--r); padding: 10px 16px; font-size: 14px; color: var(--muted); }
.sms strong { color: var(--navy); font-weight: 900; margin-left: 6px; letter-spacing: .08em; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 20px 24px; }
.keypad button { height: 58px; border-radius: var(--r); background: var(--paper); font-size: 26px; font-weight: 900; color: var(--navy); display: grid; place-items: center; }
.keypad button svg { width: 24px; height: 24px; }
.keypad button:active { background: var(--navy); color: #fff; }

/* ---------- sign in / sign up ---------- */
.sso { display: grid; gap: 8px; }
.sso-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: var(--r); background: #fff; color: var(--ink); font-weight: 900; font-size: 16px; box-shadow: inset 0 0 0 1.5px var(--line); }
.sso-btn svg { width: 20px; height: 20px; }
.sso.on-photo .sso-btn { box-shadow: none; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--muted); font-size: 13px; font-weight: 700; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: #D9DEE5; }
.pw-field { position: relative; }
.pw-field .field { padding-right: 70px; }
.pw-field .link { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 10px; font-size: 14px; }
.row-end { display: flex; justify-content: flex-end; margin: 4px 0 14px; }
.row-end .link { padding: 8px 0; font-size: 14px; }
.err { color: var(--red-d); font-size: 14px; font-weight: 700; min-height: 4px; margin-top: 8px; }
.err:empty { margin: 0; }
.foot-note { text-align: center; font-size: 14px; color: var(--muted); margin: 18px 0 8px; }
.link.light { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.auth-cta p .link { font-size: 13px; }
.phone-field.small { min-height: 52px; border-color: var(--line); border-width: 1.5px; background: var(--light); }
.phone-field.small span { font-size: 16px; }
.phone-field.small input { font-size: 16px; font-weight: 400; letter-spacing: 0; }
.match { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; border-radius: var(--r); }
.match:empty { display: none; }
.match.found, .match.new { padding: 10px 12px; margin-top: 8px; }
.match.found { background: var(--ok-soft); color: var(--ok); }
.match.new { background: var(--navy-soft); color: var(--navy); }
.match svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.match b { display: block; font-size: 14px; }
.rules { list-style: none; display: grid; gap: 6px; margin: 10px 0 4px; font-size: 13px; color: var(--muted); }
.rules li { display: flex; align-items: center; gap: 8px; }
.rules li::before { content: ""; width: 14px; height: 14px; border-radius: 2px; border: 1.5px solid var(--grey); flex: none; }
.rules li.ok { color: var(--ok); font-weight: 700; }
.rules li.ok::before { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 3px var(--ok-soft); }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 18px 0 16px; line-height: 1.4; }
.check-row input { width: 22px; height: 22px; accent-color: var(--navy); flex: none; }
.check-row b { color: var(--navy); }
.otp.six { gap: 8px; }
.otp.six { grid-template-columns: repeat(6, 1fr); }
.otp.six span { height: 60px; font-size: 28px; }
.sso-head { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.sso-head svg { width: 22px; height: 22px; flex: none; }

/* ---------- gaps: pending, reschedule, help ---------- */
.blk.mine.pending { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.checked.wait { background: var(--navy-soft); color: var(--navy); }
.chips.nowrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.chips.nowrap::-webkit-scrollbar { display: none; }
.chips.nowrap .pick-chip { flex: none; }
.chips .person.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.faq { margin: 14px 16px 0; background: var(--paper); border-radius: var(--r); overflow: hidden; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; font-weight: 900; font-size: 16px; cursor: pointer; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 18px; height: 18px; flex: none; transition: transform .2s; color: var(--muted); }
.faq details[open] summary .chev { transform: rotate(90deg); color: var(--red); }
.faq details p { padding: 0 16px 16px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.faq .empty[hidden] { display: none; }

/* ---------- notifications ---------- */
.n-meta { display: grid; justify-items: end; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 700; flex: none; align-self: flex-start; padding-top: 2px; }
.n-meta i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.nav-action { color: var(--red-d); font-weight: 900; font-size: 14px; padding: 10px 6px; }

/* ---------- booking / guest / event ---------- */
.checked { display: flex; gap: 12px; align-items: center; background: var(--ok-soft); color: var(--ok); border-radius: var(--r); padding: 14px 16px; }
.checked svg { width: 26px; height: 26px; stroke-width: 2.6; flex: none; }
.checked strong { display: block; font-size: 16px; }
.checked span { font-size: 14px; }
.faces { display: flex; flex: none; }
.faces .ini { width: 34px; height: 34px; font-size: 11px; margin-left: -8px; box-shadow: 0 0 0 2px #fff; background: var(--navy-soft); }
.faces .ini:first-child { margin-left: 0; }
.qr-card.frame { margin-left: auto; margin-right: auto; }

/* ---------- chat ---------- */
.online { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.msgs { display: grid; gap: 10px; padding: 18px 16px 12px; }
.msg { max-width: 80%; justify-self: start; }
.msg p { background: var(--paper); border-radius: var(--r); padding: 11px 14px; font-size: 15px; line-height: 1.45; }
.msg span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.msg.me { justify-self: end; text-align: right; }
.msg.me p { background: var(--navy); color: #fff; text-align: left; }
.msg.typing p { display: flex; gap: 4px; padding: 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--grey); animation: blink 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .3; } }
.composer { position: sticky; bottom: -28px; background: var(--light); padding: 8px 16px 16px; border-top: 1px solid var(--line); margin-bottom: -28px; }
.qr-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.qr-row::-webkit-scrollbar { display: none; }
.qr-row button { flex: none; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); padding: 9px 12px; font-size: 14px; font-weight: 700; color: var(--navy); }
.send-row { display: flex; gap: 8px; }
.send-row .field { background: #fff; }

/* ---------- centre guide ---------- */
.wifi { margin: 6px 22px 0 16px; background: var(--paper); border-radius: var(--r); padding: 6px 16px 16px; }
.wifi div { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wifi div span { color: var(--muted); font-size: 14px; width: 80px; }
.wifi div strong { flex: 1; font-size: 17px; font-weight: 900; color: var(--navy); }
.wifi .btn { margin-top: 14px; }
.wifi p { font-size: 13px; color: var(--muted); margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* =====================================================================
   Apple HIG layer (iOS 26). Overrides the poster system above.
   System font, sentence-case large titles, inset grouped lists,
   Liquid Glass only on the functional layer (tab bar, nav buttons,
   sheets, banners). Navy is the tint; red is kept for status.
   ===================================================================== */
:root {
  --sys-bg: #F2F2F7;
  --sys-card: #FFFFFF;
  --label: #000000;
  --label-2: rgba(60, 60, 67, .62);
  --label-3: rgba(60, 60, 67, .32);
  --sep: rgba(60, 60, 67, .18);
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .2);
  --tint: #1F3A68;
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(255, 255, 255, .6);
  --muted: rgba(60, 60, 67, .62);
  --ink: #000000;
  --light: #F2F2F7;
  --line: rgba(60, 60, 67, .14);
  --r: 12px;
}
body, button, input, textarea, select { font-family: Lato, -apple-system, system-ui, sans-serif; }
body { letter-spacing: 0; }
.app { background: var(--sys-bg); }
.disp { text-transform: none; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
:focus-visible { outline: 2px solid var(--tint); }
.glass { background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); box-shadow: inset 0 0 0 .5px var(--glass-line), 0 8px 24px -10px rgba(0,0,0,.25); }

/* side panel */
.side h1 { font-size: 48px; color: var(--label); }
.flow-btn { border-radius: 14px; }
.flow-btn:hover { box-shadow: inset 0 0 0 1.5px var(--tint); }

/* status bar: scroll edge blur, no solid fill */
.statusbar { background: linear-gradient(180deg, rgba(242,242,247,.92) 40%, rgba(242,242,247,0)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--label); }
.app.photo-top .statusbar { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.app.photo-top.scrolled .statusbar { background: linear-gradient(180deg, rgba(242,242,247,.92) 40%, rgba(242,242,247,0)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--label); }

/* floating Liquid Glass tab bar */
.tabbar { position: absolute; left: 14px; right: 14px; bottom: 22px; z-index: 30; border: 0; border-radius: 34px; padding: 6px; gap: 0; background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.7), 0 10px 30px -10px rgba(0,0,0,.28), 0 0 0 .5px rgba(0,0,0,.06); }
.tab { min-height: 54px; border-radius: 28px; font-size: 11px; font-weight: 600; color: rgba(60,60,67,.8); gap: 2px; padding: 6px 0 4px; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--tint); font-weight: 600; background: rgba(118,118,128,.14); }
.tab.on::before { display: none; }
.screen { padding-bottom: 116px; }
.screen.auth { padding-bottom: 0; }

/* navigation: glass circle buttons, inline title */
.nav { padding: 4px 16px; min-height: 52px; }
.nav-btn { width: 44px; height: 44px; border-radius: 50%; color: var(--label); background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); box-shadow: inset 0 0 0 .5px var(--glass-line), 0 4px 14px -6px rgba(0,0,0,.25); }
.nav-btn svg { width: 22px; height: 22px; stroke-width: 2.2; }
.nav-title { font-size: 17px; font-weight: 600; color: var(--label); }
.nav-action { color: var(--tint); font-size: 17px; font-weight: 400; }
.photo-nav .nav-btn { background: rgba(255,255,255,.35); color: #fff; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.5); }

/* large titles */
.title-row { padding: 8px 16px 12px; }
.big-title { font-size: 34px; color: var(--label); }
.d-head { padding: 4px 16px 4px; }
.d-head h1 { font-size: 34px; color: var(--label); margin: 10px 0 6px; }
.d-head p { font-size: 15px; color: var(--label-2); }
.sq-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--tint); }
.sq-btn svg { width: 22px; height: 22px; }

/* section headers + inset grouped lists */
.section-h { padding: 24px 20px 8px; }
.section-h h2 { font-size: 20px; font-weight: 700; text-transform: none; letter-spacing: -0.02em; color: var(--label); }
.section-h button { color: var(--tint); font-weight: 400; font-size: 17px; }
.group, .lines, .steps, .notice, .tech, .note-card, .bars, .stat, .tl, .event, .faq, .wifi, .due { border-radius: 22px; }
.group { margin: 0 16px; background: var(--sys-card); }
.row { min-height: 52px; padding: 11px 16px; gap: 14px; border-top: 0; position: relative; }
.row + .row::before, .row + label.row::before { content: ""; position: absolute; top: 0; right: 0; left: 60px; height: .5px; background: var(--sep); }
.row .ico { width: 30px; height: 30px; border-radius: 8px; background: var(--tint); color: #fff; }
.row .ico svg { width: 18px; height: 18px; stroke-width: 2; }
.ico.red { background: var(--red); }
.row .t1 { font-size: 17px; font-weight: 400; letter-spacing: -0.02em; }
.row .t2 { font-size: 15px; color: var(--label-2); }
.row .chev { color: var(--label-3); width: 14px; height: 14px; stroke-width: 2.6; }
.ini { background: var(--fill) !important; color: var(--label) !important; font-weight: 600; }
.lines { margin: 0 16px; padding: 0 16px; }
.lines div { border-top: .5px solid var(--sep); font-size: 17px; padding: 12px 0; }
.lines span small { font-size: 13px; color: var(--label-2); }
.lines .total { font-size: 17px; font-weight: 700; color: var(--label); }
.sum { border-radius: 14px; background: var(--fill); }
.sum div { border-top: .5px solid var(--sep); font-size: 15px; }

/* chips + segmented control */
.chip { border-radius: 99px; font-weight: 600; padding: 4px 10px; font-size: 13px; background: var(--fill); color: var(--label); }
.chip.alert { background: var(--red); }
.chip.ghost { background: var(--fill); color: var(--label-2); }
.seg { gap: 0; margin: 0 16px 16px; border: 0; background: var(--fill); border-radius: 99px; padding: 2px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.seg button { padding: 7px 0; font-size: 14px; font-weight: 600; color: var(--label); border-radius: 99px; }
.seg button.on { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }
.seg button.on::after { display: none; }

/* buttons: capsules, one prominent per view */
.btn { border-radius: 99px; min-height: 52px; font-weight: 600; font-size: 17px; background: var(--tint); letter-spacing: -0.02em; }
.btn.navy { background: var(--tint); }
.btn.secondary { background: var(--fill); color: var(--tint); box-shadow: none; }
.btn.quiet { color: var(--tint); font-weight: 400; min-height: 44px; }
.btn.danger { color: var(--red); }
.btn[disabled] { background: var(--fill-2); color: rgba(60,60,67,.35); }
.link { color: var(--tint); font-weight: 400; }
.link.light { color: #fff; font-weight: 600; }

/* remove the poster-only devices */
.frame::before, .frame::after { display: none; }
.tag-red, .t-photo .tag { border-radius: 99px; padding: 4px 10px; font-weight: 600; font-size: 13px; }

/* home */
.hero { height: 450px; }
.hero-txt .disp { font-size: 44px; }
.hero-txt small { font-size: 15px; font-weight: 500; }
.hb-btn { border-radius: 50%; width: 44px; height: 44px; background: rgba(255,255,255,.3); color: #fff; -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.5); font-weight: 600; font-size: 15px; }
.hb-btn i { box-shadow: none; top: 9px; right: 10px; }
.pill { border-radius: 99px; padding: 0 16px 0 12px; height: 44px; background: rgba(255,255,255,.3); color: #fff; font-weight: 600; font-size: 15px; -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.5); }
.actions { gap: 10px; }
.act, .act.r, .act.n, .act.w { background: var(--sys-card); color: var(--label); border-radius: 22px; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; min-height: 100px; }
.act svg { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--tint); color: #fff; stroke-width: 2; }
.tile { border-radius: 22px; }
.tile .k { font-size: 13px; font-weight: 500; color: var(--label-2); }
.tile .v { font-weight: 700; color: var(--label); }
.t-photo .disp { font-size: 28px; }
.t-navy .k { color: rgba(255,255,255,.75); }
.t-navy .num { font-weight: 700; letter-spacing: -0.04em; }
.cells i { border-radius: 2px; }
.t-pay .go { border-radius: 99px; background: var(--tint); font-weight: 600; padding: 7px 14px; }
.prog i { border-radius: 2px; }
.notice .ico { border-radius: 8px; background: var(--tint); color: #fff; width: 30px; height: 30px; }

/* booking */
.room-card { border-radius: 20px; }
.room-card strong { text-transform: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.room-card .free { border-radius: 99px; font-weight: 600; padding: 3px 9px; }
.day { border-radius: 14px; background: var(--sys-card); }
.day strong { font-weight: 700; }
.day.on { background: var(--tint); }
.tl-room strong { text-transform: none; font-weight: 600; font-size: 15px; }
.tl-hours span:not(.tl-corner) { font-weight: 600; }
.blk { border-radius: 8px; font-weight: 600; }
.blk.mine { background: var(--tint); }
.blk.pick { background: var(--red); }
.blk.mine.pending { box-shadow: inset 0 0 0 2px var(--tint); color: var(--tint); }
.now-line::before { border-radius: 4px; font-weight: 700; }
.slot.free:hover { background: rgba(31,58,104,.08); }
.legend i { border-radius: 4px; }

/* sheets: rounded glass, grabber, centred title, glass close */
.sheet { left: 8px; right: 8px; bottom: 8px; border-radius: 38px; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6); box-shadow: 0 -10px 40px -10px rgba(0,0,0,.3), inset 0 0 0 .5px rgba(255,255,255,.7); }
.sheet-photo { border-radius: 30px; margin: 8px 8px 0; height: 150px; }
.sheet.has-photo .grab { top: 6px; }
.sheet-head { justify-content: center; position: relative; padding: 14px 64px 8px; min-height: 56px; }
.sheet-head h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--label); text-align: center; }
.sheet-head .nav-btn { position: absolute; right: 12px; top: 8px; background: var(--fill); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; width: 40px; height: 40px; }
.sheet-head .nav-btn svg { width: 18px; height: 18px; stroke-width: 2.4; }
.sheet-foot { border-top: 0; padding: 8px 16px 24px; }
.label { font-size: 13px; font-weight: 400; color: var(--label-2); margin: 16px 4px 6px; }
.field { border: 0; border-radius: 12px; background: var(--fill); font-size: 17px; min-height: 48px; }
.field:focus { background: var(--fill); box-shadow: 0 0 0 2px var(--tint); }
.app > .view .field { background: var(--sys-card); }
.stepper { border-radius: 99px; background: var(--fill); }
.stepper button { border-radius: 50%; background: #fff; color: var(--tint); box-shadow: 0 1px 3px rgba(0,0,0,.12); width: 44px; height: 44px; }
.stepper strong { font-weight: 600; font-size: 17px; }
.pick-chip { border-radius: 99px; border: 0; background: var(--fill); font-weight: 500; font-size: 15px; min-height: 40px; padding: 9px 16px; }
.pick-chip.on { background: var(--tint); color: #fff; }
.cat { border: 0; border-radius: 16px; background: var(--fill); font-weight: 500; }
.cat svg { color: var(--tint); }
.cat.on { background: var(--tint); }
.person { border: 0; background: var(--fill); border-radius: 99px; font-weight: 500; }
.person.on, .chips .person.on { background: var(--tint); }
.pm { border: 0; border-radius: 16px; background: var(--fill); }
.pm.on { box-shadow: inset 0 0 0 2px var(--tint); }
.pm.on .radio { border: 7px solid var(--tint); }
.photo-add button { border-radius: 14px; }
.thumb { border-radius: 14px; }
.tick { border-radius: 50%; background: var(--tint); }
.done-wrap h3 { font-size: 28px; color: var(--label); }
.qr-card { border-radius: 24px; box-shadow: 0 0 0 .5px var(--sep); }
.qr-card strong { font-weight: 700; color: var(--label); }
.spinner { border-top-color: var(--tint); }

/* detail pages */
.photo-head h1 { font-size: 34px; }
.photo-head p { font-size: 15px; }
.st .b { border-radius: 50%; }
.st.done .b { background: var(--tint); border-color: var(--tint); }
.st.done::before { background: var(--tint); }
.st.cur .b { background: #fff; border-color: var(--red); }
.st.cur .b::after { background: var(--red); border-radius: 50%; }
.st strong { font-weight: 600; font-size: 17px; }
.call { border-radius: 50%; background: var(--tint); }
.stars button { border-radius: 12px; background: var(--fill); }
.stars button.on { background: #FF9F0A; }
.checked { border-radius: 16px; }
.due { background: var(--tint); margin: 8px 16px 0; }
.due .v { font-weight: 700; letter-spacing: -0.035em; }
.due .btn { background: #fff; color: var(--tint); }
.stat { border-radius: 22px; }
.stat .v { font-weight: 700; color: var(--label); }
.bars-row i, .bars-row div.on i { border-radius: 6px; }
.bars-row div.on i { background: var(--tint); }
.event-img .date { border-radius: 12px; font-weight: 700; }
.event-body strong { font-weight: 600; }
.rsvp { border-radius: 99px; box-shadow: none; background: var(--fill); color: var(--tint); font-weight: 600; }
.rsvp.on { background: var(--tint); color: #fff; }
.faces .ini { box-shadow: 0 0 0 2px #fff; }

/* banners: glass notification */
.toast { border-radius: 26px; background: rgba(30,30,32,.78); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); font-weight: 600; top: 52px; }
.toast .ti { border-radius: 9px; background: var(--tint); }

/* switches (iOS) */
input.switch { -webkit-appearance: none; appearance: none; width: 51px; height: 31px; border-radius: 99px; background: var(--fill-2); position: relative; flex: none; cursor: pointer; transition: background .2s; }
input.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 0 0 .5px rgba(0,0,0,.04); transition: transform .2s; }
input.switch:checked { background: #34C759; }
input.switch:checked::after { transform: translateX(20px); }

/* sign in / sign up */
.auth-copy .disp { font-size: 48px; }
.sso-btn { border-radius: 99px; font-weight: 600; font-size: 17px; box-shadow: none; background: #fff; }
.sso.on-photo .sso-btn { background: rgba(255,255,255,.95); }
.view .sso-btn { background: var(--sys-card); }
.phone-field { border: 0; border-radius: 14px; background: var(--sys-card); }
.phone-field span { font-weight: 600; border-right: .5px solid var(--sep); color: var(--label); }
.phone-field input { font-weight: 600; }
.phone-field.small { background: var(--sys-card); border: 0; }
.otp span { border: 0; border-radius: 14px; background: var(--sys-card); font-weight: 600; color: var(--label); }
.otp span.cur { border: 0; box-shadow: inset 0 0 0 2px var(--tint); }
.sms button { border-radius: 99px; background: var(--sys-card); }
.sms strong { color: var(--label); font-weight: 700; }
.keypad button { border-radius: 10px; background: #fff; font-weight: 400; font-size: 26px; color: var(--label); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.keypad button:active { background: #D1D1D6; color: var(--label); }
.rules li::before { border-radius: 50%; }
.rules li.ok { color: #248A3D; }
.rules li.ok::before { background: #34C759; border-color: #34C759; box-shadow: inset 0 0 0 3px #fff; }
.check-row input { accent-color: var(--tint); }
.match { border-radius: 14px; }
.err { color: var(--red); font-weight: 500; }

/* chat */
.msg p { border-radius: 20px; font-size: 17px; }
.msg.me p { background: var(--tint); }
.composer { background: transparent; border-top: 0; bottom: 92px; margin-bottom: 0; }
.composer .send-row .field { border-radius: 99px; background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 .5px var(--sep); }
.qr-row button { border: 0; border-radius: 99px; background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--tint); font-weight: 500; box-shadow: inset 0 0 0 .5px var(--sep); }
.send-row .sq-btn { width: 48px; height: 48px; }

/* help + guide */
.faq summary { font-weight: 400; font-size: 17px; }
.faq details { border-top: .5px solid var(--sep); }
.faq details[open] summary .chev { color: var(--tint); }
.wifi { margin: 0 16px; }
.wifi div { border-bottom: .5px solid var(--sep); }
.wifi div strong { font-weight: 600; color: var(--label); }

@media (prefers-reduced-transparency: reduce) {
  .tabbar, .nav-btn, .sheet, .toast, .hb-btn, .pill, .qr-row button, .composer .send-row .field { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; color: var(--label); }
  .toast { background: #1C1C1E; color: #fff; }
}

.t-guest strong { color: var(--label); font-weight: 600; }

/* Lato only: it ships 400/700/900, so map Apple's semibold to 700 and keep titles heavy */
.disp, .big-title, .d-head h1, .photo-head h1, .hero-txt .disp, .auth-copy .disp, .done-wrap h3, .side h1 { font-weight: 900; letter-spacing: -0.02em; }
.tab, .tab.on, .chip, .seg button, .btn, .nav-title, .sheet-head h3, .pick-chip, .person, .cat, .rsvp, .sso-btn, .tag-red, .t-photo .tag, .room-card .free, .hb-btn, .pill, .act, .t-pay .go, .blk, .st strong, .event-body strong, .t-guest strong, .phone-field span, .phone-field input, .otp span, .qr-row button, .wifi div strong, .stepper strong, .tl-room strong, .tl-hours span:not(.tl-corner), .link.light { font-weight: 700; }
.row .t1, .faq summary, .msg p, .lines div, .field, .keypad button, .nav-action, .section-h button, .btn.quiet, .link { letter-spacing: 0; }
.btn, .act, .row .t1, .room-card strong, .section-h h2 { letter-spacing: -0.01em; }

/* view-as switch (side panel) */
.viewas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--fill); padding: 4px; border-radius: 16px; }
.viewas button { border-radius: 12px; padding: 8px 6px; text-align: center; }
.viewas button strong { display: block; font-size: 15px; font-weight: 700; color: var(--label); }
.viewas button span { font-size: 12px; color: var(--label-2); }
.viewas button.on { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.viewas button.on strong { color: var(--tint); }

.pm strong { color: var(--label); }
.pm > span > span { display: block; color: var(--label-2); }

/* iOS status bar and Dynamic Island, drawn like the real thing (system UI, so SF, not Lato) */
.statusbar { height: 54px; padding: 0 30px 0 44px; align-items: center; }
.statusbar .sb-time { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; padding-top: 2px; }
.sb-icons { gap: 6px; padding-top: 2px; }
.sb-icons i { display: none; }
.sb-icons svg { display: block; fill: currentColor; }
.sb-signal { width: 18px; height: 12px; }
.sb-wifi { width: 16px; height: 12px; }
.sb-batt { width: 27px; height: 13px; }
.sb-android { display: none; }
.island { top: 21px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.island::after { content: ""; position: absolute; right: 11px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #3a4a6b 0 18%, #10141c 40%, #05070a 70%); box-shadow: 0 0 0 1.5px #0d0f14; }

/* edit profile (both apps) */
.ep-photo { display: grid; justify-items: center; gap: 8px; padding: 6px 0 4px; }
.ini.xl { width: 96px; height: 96px; font-size: 32px; }
.ini.photo, .hb-photo { background: linear-gradient(135deg, #16253F 0%, #24375C 55%, #8A4B2A 100%) !important; color: #fff !important; position: relative; }
.ini.photo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.hb-photo { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; }
.ep-photo .link { font-size: 16px; font-weight: 700; padding: 6px 10px; }
.lines.locked strong { color: var(--label-2); }
.row .t2.tint { color: var(--tint); font-weight: 700; }
.prof-head { display: flex; gap: 14px; align-items: center; margin-top: 6px; width: 100%; text-align: left; }
.prof-head p + p { margin-top: 2px; }
.nav-action[disabled] { color: var(--label-3); }

/* portfolio demo: scroll without a visible scrollbar, like the real app on a phone */
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
