/* Start page: where to go (js/start.js drawPick, js/site-picker.js). Tokens come from app.css. */
.pick { display: flex; flex-direction: column; gap: 10px; width: min(100%, 460px); margin: 0 auto; animation: rise .6s .05s var(--spring) both; }
.pick[hidden] { display: none; }
.pick-list { display: flex; flex-direction: column; gap: 10px; }
.pick-card {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 12px 16px; border: 0; border-radius: var(--r-l);
  background: var(--glass); box-shadow: var(--shadow), inset 0 0 0 .5px rgba(255, 255, 255, .14); color: var(--fg); font: inherit; text-align: left;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pick-card:active { transform: scale(.98); }
.pick-card.on { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); background: rgba(10, 132, 255, .12); }
.pick-ic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; font-size: 22px; }
.k-preset .pick-ic { background: rgba(255, 159, 10, .2); color: var(--orange); }
.k-none .pick-ic { background: rgba(100, 210, 255, .18); color: var(--cyan); }
.k-room .pick-ic { background: rgba(48, 209, 88, .2); color: var(--green); }
.pick-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pick-txt strong { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 17px; font-weight: 600; }
.pick-badge { flex: none; padding: 1px 7px; border-radius: 8px; font-size: 11px; font-weight: 600; background: var(--fill); color: var(--fg2); }
.pick-meta { font-size: 13px; color: var(--fg2); line-height: 1.35; }
.pick-extra { font-size: 12.5px; color: var(--cyan); }
.pick-extra:empty { display: none; }
.pick-check { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--fg3); position: relative; }
.pick-card.on .pick-check { background: var(--accent); box-shadow: none; }
.pick-card.on .pick-check::after {
  content: ''; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg);
}
/* Links to other pages (Site management, 3D site): same cards, a chevron instead of the check */
.pick.more { margin-top: 6px; animation-delay: .11s; }
a.pick-card { text-decoration: none; }
.pick-card[hidden] { display: none; }
.k-manage .pick-ic { background: rgba(191, 90, 242, .2); color: var(--purple, #bf5af2); }
.k-3d .pick-ic { background: rgba(10, 132, 255, .2); color: var(--accent); }
.pick-go { flex: none; font-size: 26px; line-height: 1; color: var(--fg3); }
.pick-note { padding: 0 4px; font-size: 13px; color: var(--orange); }
.pick-note:empty { display: none; }

/* Start button: mode on the first line, the pick below */
#start-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 6px 16px; }
.start-sub { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--solid-fg); opacity: .62; }
.start-sub:empty { display: none; }
.start-link { display: block; margin-top: 4px; text-align: center; font-size: 13px; color: var(--fg3); text-decoration: none; }
.gps-retry { margin: 4px auto 0; padding: 6px 12px; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; }
#dev[hidden] { display: none; }

/* Landscape phone: the three choices side by side */
@media (orientation: landscape) and (max-height: 500px) {
  .pick { width: min(100%, 820px); }
  .pick-list { flex-direction: row; }
  .pick-card { flex: 1; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 0; position: relative; }
  .pick-check, .pick-go { position: absolute; top: 12px; right: 12px; }
  .pick-ic { width: 38px; height: 38px; font-size: 19px; }
  .pick-txt strong { flex-wrap: wrap; gap: 2px 8px; font-size: 16px; }
  .pick-meta { font-size: 12.5px; }
}

/* iOS Safari: the App Clip entry under Start AR (js/start.js syncClip) */
.clip { margin-top: 10px; text-align: center; }
.clip[hidden] { display: none; }
.clip-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: var(--r-m); font: 600 16px var(--font); color: var(--fg); text-decoration: none; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--accent); }
.clip-btn:active { transform: scale(.98); }
.clip-note { margin: 6px 4px 0; font-size: 13px; line-height: 1.4; color: var(--fg2); }
/* iOS: Start asks to open the App Clip (js/start.js showClipPrompt) */
.clip-prompt { max-width: min(92vw, 420px); padding: 20px; border: 0; border-radius: var(--r-m); color: var(--fg); background: var(--bg, #111); box-shadow: var(--shadow); font: 15px/1.45 var(--font); }
.clip-prompt::backdrop { background: rgba(0, 0, 0, .55); }
.clip-prompt h2 { margin: 0 0 8px; font-size: 19px; }
.clip-prompt p { margin: 0 0 14px; color: var(--fg2); }
.clip-prompt .clip-btn { background: var(--accent); color: #fff; box-shadow: none; }
.clip-prompt .clip-note { margin: 8px 0 0; }
.clip-alt { display: block; width: 100%; min-height: 44px; margin-top: 8px; border: 0; border-radius: var(--r-m); font: 500 15px var(--font); color: var(--fg); background: var(--glass); box-shadow: inset 0 0 0 1px var(--hair); }

/* Two columns (index.html .start-cols): AR modes | Sites on a wide screen; one column on a phone, AR modes first */
.start-cols { display: flex; flex-direction: column; gap: 28px; }
.start-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.col-h { margin: 0; padding: 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fg2); }
.start-col .pick { width: 100%; }
.col-sites .pick.more { margin-top: 0; }
.k-import .pick-ic { background: rgba(48, 209, 88, .2); color: var(--green); }
@media (min-width: 900px) and (min-height: 501px) {
  .start { max-width: 1000px; }
  .start-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
}
/* Sites column: this device's own and joined sites (js/start-sites.js) */
.my-sites { display: flex; flex-direction: column; gap: 8px; }
.my-sites[hidden] { display: none; }
.ms-h { margin: 4px 4px 0; font-size: 15px; font-weight: 600; }
.ms-list { list-style: none; margin: 0; padding: 4px 0; border-radius: var(--r-l); }
.ms-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 14px; }
.ms-row + .ms-row { border-top: .5px solid var(--hair); }
.ms-row.on { background: rgba(10, 132, 255, .1); }
.ms-name { flex: 1 1 140px; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.ms-name strong { font-weight: 600; overflow-wrap: anywhere; }
.ms-badge { padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ms-badge.st-mine { background: rgba(48, 209, 88, .18); color: var(--green); }
.ms-badge.st-shared { background: rgba(191, 90, 242, .18); color: var(--purple); }
.ms-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-acts .btn { min-height: 34px; padding: 0 12px; font-size: 13.5px; text-decoration: none; }
.ms-cur { align-self: center; padding: 0 4px; font-size: 13px; color: var(--fg2); }
