/* © Complxx Web Designs LLC */
/* UI2: iOS-style Settings (grouped rows, own pages), tabbed place card, photo gallery, Look around. Square corners, no glow/gradients. */

/* ---- settings ---- */
.sx-q { width: 100%; margin: 4px 0 10px; }
.sx-g { height: 14px; }
.sx-list { display: flex; flex-direction: column; border: 1px solid var(--line); background: rgba(var(--panel2-rgb), .45); }
.sx-list > * + * { border-top: 1px solid var(--line); }
.sx-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 10px 12px; text-align: left; background: transparent; border: 0; font: 700 15px var(--f); }
.sx-row .sx-l { flex: 1; min-width: 0; }
.sx-row .sx-v { color: var(--dim); font: 600 12px var(--fm); max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-row i { font-style: normal; color: var(--dim); font-size: 20px; line-height: 1; }
.sx-row.sel .sx-v { color: var(--go); }
.sx-r { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 12px; }
.sx-r > span:first-child { flex: 0 0 auto; font-weight: 700; }
.sx-r input:not([type=checkbox]):not([type=range]) { flex: 1; min-width: 0; text-align: right; background: transparent; border: 0; border-bottom: 1px solid var(--line); }
.sx-r input[type=range] { flex: 1; padding: 0; }
.sx-r .seg { margin-left: auto; }
.sx-r.flash, .sx-styles.flash { outline: 2px solid var(--text); outline-offset: -2px; }
.sx-h { gap: 6px; } .sx-h b { flex: 1; text-align: center; } .sx-back { min-width: 44px; font-size: 26px; line-height: 1; background: transparent; border: 0; padding: 0 8px; }
.sx > .seg { display: flex; margin: 8px 0; } .sx > .seg button { flex: 1; }
.sx-sw { position: relative; width: 52px; height: 30px; flex: none; display: block; }
.sx-sw input { appearance: none; -webkit-appearance: none; width: 52px !important; height: 30px !important; min-height: 0 !important; margin: 0; padding: 0; border: 1px solid var(--line); background: rgba(var(--panel2-rgb), .8); }
.sx-sw i { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; background: var(--dim); pointer-events: none; transition: transform .15s; }
.sx-sw input:checked { background: var(--go); border-color: var(--go); }
.sx-sw input:checked + i { transform: translateX(22px); background: #00160b; }
.sx-badge { margin-left: auto; padding: 4px 10px; font: 800 12px var(--fm); border: 1px solid var(--line); color: var(--dim); }
.sx-badge.on { background: var(--go); border-color: var(--go); color: #00160b; }
.sx-av { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; }
.sx-av span { width: 64px; height: 64px; display: grid; place-items: center; font: 900 30px var(--f); color: #fff; border: 1px solid var(--line); }
.sx-av b { font: 900 20px var(--f); }
.sx-emo { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; } .sx-emo button { min-height: 40px; padding: 0; font-size: 22px; }
.sx-styles { margin: 0 0 10px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (min-width: 700px) { .sx { max-width: 560px; } }

/* ---- place card ---- */
#pcard { display: flex; flex-direction: column; overflow: hidden; max-height: min(74vh, 560px); }
#pcard .pb1 { margin-top: 10px; flex: none; } #pcard .pb1 > * { flex: 1 1 45%; }
#pcard .pb2 { margin-top: 8px; } #pcard .pb2 > * { flex: 1 1 22%; min-height: 40px; font-size: 12px; }
.ptabs { display: flex; margin-top: 10px; border-bottom: 1px solid var(--line); flex: none; overflow-x: auto; }
.ptabs button { flex: 1 0 auto; min-height: 38px; padding: 0 10px; background: transparent; border: 0; border-bottom: 3px solid transparent; font: 700 12px var(--f); white-space: nowrap; }
.ptabs button.on { background: transparent; color: var(--text); border-color: var(--text); }
#pcard .ppane { flex: 1; min-height: 64px; overflow: hidden; padding-top: 8px; }
.phero { display: block; width: 100%; padding: 0; border: 0; background: none; min-height: 0; } .phero img { width: 100%; height: 110px; object-fit: cover; display: block; }
.gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; touch-action: pan-x; }
.gal::-webkit-scrollbar { display: none; }
.gal img { flex: 0 0 100%; width: 100%; height: 190px; object-fit: cover; scroll-snap-align: center; cursor: zoom-in; background: rgba(var(--panel2-rgb), .6); }
.gdots { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; } .gdots span { font: 700 11px var(--fm); margin-right: 6px; color: var(--dim); }
.gdots i { width: 7px; height: 7px; background: var(--line); display: block; } .gdots i.on { background: var(--text); }
#pcard .phall > div { padding: 7px 0; border-bottom: 1px solid var(--line); font: 600 12px var(--fm); } #pcard .phall .today { font-weight: 800; color: var(--go); }
.pnote { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--line); } .pnote span { color: var(--dim); font-size: 13px; }
#pcard .ppane .row { margin-top: 10px; }
#lightbox:not([hidden]) img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---- look around ---- */
.lk { display: flex; flex-direction: column; gap: 6px; }
.lk-v { position: relative; background: #000; height: 200px; overflow: hidden; touch-action: pan-y; user-select: none; cursor: ew-resize; border: 1px solid var(--line); }
.lk-i { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.lk-no { position: absolute; inset: 0; display: grid; place-items: center; font: 800 14px var(--f); }
.lk-c { position: absolute; top: 6px; left: 6px; padding: 3px 8px; background: rgba(0,0,0,.6); font: 800 12px var(--fm); color: #fff; }
.lk-bar { display: flex; gap: 6px; } .lk-bar button { flex: 1; min-height: 44px; font-size: 20px; padding: 0; }
.lk-bar button[data-lk=js], .lk-bar button[data-lk=fs] { font: 800 13px var(--fm); }
.lk-btn { margin: 8px 0 0; }
#lookfs { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; padding: calc(10px + var(--sa-t)) 10px calc(10px + var(--sa-b)); background: rgba(var(--panel-rgb), .96); }
#lookfs[hidden] { display: none; }
.lk-top { display: flex; justify-content: space-between; align-items: center; flex: none; padding-bottom: 8px; } .lk-top b { font: 900 18px var(--f); } .lk-top .x { border: 0; background: transparent; font-size: 28px; min-width: 44px; }
#lookfs-b { flex: 1; min-height: 0; display: flex; } #lookfs-b .lk { flex: 1; } #lookfs-b .lk-v { flex: 1; height: auto; }
#pcard .pb1 .pri { flex: 1 1 45%; }
.phero img { height: 84px; }
/* people + devices (© Complxx Web Designs LLC) */
.person { position: relative; border-radius: 0; } .person b { font: 900 14px var(--f); } .person.stale { opacity: .55; }
.person .pn { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); background: rgba(11,11,13,.82); color: #fff; font: 700 10px var(--f); padding: 1px 5px; white-space: nowrap; }
.fav { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #fff; font-weight: 800; flex: none; }
.fn { display: flex; flex-direction: column; flex: 1; min-width: 0; } .fn small { color: var(--dim, #9aa); font-weight: 500; }
.sx-r.fam, .sx-r.dev { flex-wrap: wrap; } .sx-r.fam .btn, .sx-r.dev .btn { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; text-decoration: none; }
.sx-per { border: 1px solid var(--line); margin-bottom: 8px; } .sx-per > summary { display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 52px; cursor: pointer; list-style: none; } .sx-per > summary small { margin-left: auto; color: var(--dim, #9aa); }
#ringbar { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0); z-index: 99; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #c0392b; color: #fff; } #ringbar[hidden] { display: none; }

/* ---- no-scroll engine (fit.js): horizontal pages + segmented sections ---- */
.pgd { column-count: 1; column-fill: auto; overflow-x: auto !important; overflow-y: hidden !important; touch-action: pan-x !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pgd::-webkit-scrollbar { display: none; }
.pgd :is(.sx-row,.sx-r,.card,.turn,.haz,.s,.seg,.chips,.swatch,.sx-emo,.vgrid,.row,.btn,button,input,textarea,select,label,img,summary,.h4,.sum,.alt,.pr,.pa,.ph,.pb,.phall>div,.pnote,.tl,.lk,.modes,.sx-av,.sx-g,.dim,.gal,.gdots,.ac,.sx-per,.person,.hrs,.prev,.eta,.big) { break-inside: avoid-column; }
.pgd .sx, .pgd .sx-list, .pgd .form, .pgd .list { display: block; }
.pgn { flex: none; height: 30px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.pgn[hidden] { display: none; }
.pgn button { min-height: 28px; min-width: 44px; padding: 0; background: transparent; border: 0; font-size: 22px; line-height: 1; }
.pgn .pgs { display: flex; align-items: center; gap: 6px; } .pgn .pgs i { display: block; width: 8px; height: 8px; background: var(--line); } .pgn .pgs i.on { background: var(--text); } .pgn .pgs b { font: 700 11px var(--fm); color: var(--dim); }
#sh-tabs { flex: none; display: flex; gap: 4px; overflow-x: auto; padding: 6px 12px 0; scrollbar-width: none; touch-action: pan-x; border-top: 1px solid var(--line); }
#sh-tabs::-webkit-scrollbar { display: none; } #sh-tabs[hidden] { display: none; }
#sh-tabs button { flex: 1 0 auto; min-height: 36px; padding: 0 12px; font: 700 12px var(--f); white-space: nowrap; }
#sh-tabs button.on { background: var(--text); color: var(--bg); }
.fit-tabs details.sec > summary { display: none; } .fit-tabs details.sec { border-top: 0; }
.fit-off { display: none !important; }

.sx-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sx-t { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 72px; padding: 8px 10px; text-align: left; align-items: flex-start; }
.sx-t b { font: 800 14px var(--f); } .sx-t span { color: var(--dim); font: 600 11px var(--fm); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sx-t.out b { color: var(--red); }
@media (orientation: landscape) and (max-height: 520px) { .sx-t { min-height: 52px; } .sx-q { margin: 2px 0 6px; } }

.screen { overflow: hidden !important; } .screen .authbox { max-height: calc(100dvh - 40px); overflow: hidden; }
.eta b { white-space: nowrap; font-size: 26px; } .eta { grid-template-columns: 1fr 1fr 1.5fr; }
#gaslist .ca { padding: 4px 12px 8px; } #gaslist .ca > * { min-height: 34px; } #gaslist .card > .ct { padding-top: 6px; }
@media (orientation: landscape) and (max-height: 520px) {
  #pcard { padding: 8px 10px 6px; } #pcard .pt { font-size: 16px; } #pcard .pm { margin: 0; font-size: 11px; }
  #pcard .pb1 { margin-top: 4px; } #pcard .pb1 button { min-height: 34px; } .ptabs { margin-top: 4px; } .ptabs button { min-height: 30px; }
  #pcard .ppane { padding-top: 4px; } .lk-v { height: 110px; } .lk-bar button { min-height: 34px; } .phero img { height: 60px; } .gal img { height: 120px; }
  .eta b { font-size: 22px; } #gaslist .card { } .sh-h { padding: 2px 0; }
}
