/* Bunkmark styles, shared by the app (index.html) and the public gear page (gear.html). */
/* Layout: one phone-width column; each stay is a card with a motel key fob that carries its score; tabs pinned to the bottom. */
:root {
  --bg: #EBEFED;
  --surface: #FFFFFF;
  --surface-2: #F4F7F6;
  --ink: #15201E;
  --muted: #586764;
  --line: #D2DAD7;
  --accent: #0E5A52;
  --accent-ink: #FFFFFF;
  --brass: #A87924;
  /* Score colors: blue (good), yellow (middle), red (poor). Chosen so they stay easy to tell apart with every common
     kind of color blindness, and every score also shows its number. --X-ink is for text, --on-X for text on a filled X. */
  --good: #1D6BA8; --good-ink: #1D6BA8; --good-soft: #DDEBF7; --on-good: #FFFFFF;
  --mid: #F2C14E;  --mid-ink: #7A5300;  --mid-soft: #FBF0D2;  --on-mid: #1A1405;
  --poor: #A8262C; --poor-ink: #A8262C; --poor-soft: #F8E0E0; --on-poor: #FFFFFF;
  --on-band: #FFFFFF;
  --shadow: 0 1px 2px rgba(16,36,33,.06), 0 4px 14px rgba(16,36,33,.06);
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1413; --surface: #151F1E; --surface-2: #1B2725; --ink: #E5ECEA; --muted: #95A5A1; --line: #2A3835;
    --accent: #5CBFB1; --accent-ink: #05211D; --brass: #D7A74A;
    --good: #62B0F0; --good-ink: #62B0F0; --good-soft: #16293A; --on-good: #0C1413; --mid: #F5C451; --mid-ink: #F5C451; --mid-soft: #382E16; --on-mid: #0C1413;
    --poor: #EE6874; --poor-ink: #EE6874; --poor-soft: #3D1F24; --on-poor: #0C1413;
    --on-band: #0C1413; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1413; --surface: #151F1E; --surface-2: #1B2725; --ink: #E5ECEA; --muted: #95A5A1; --line: #2A3835;
  --accent: #5CBFB1; --accent-ink: #05211D; --brass: #D7A74A;
  --good: #62B0F0; --good-ink: #62B0F0; --good-soft: #16293A; --on-good: #0C1413; --mid: #F5C451; --mid-ink: #F5C451; --mid-soft: #382E16; --on-mid: #0C1413;
    --poor: #EE6874; --poor-ink: #EE6874; --poor-soft: #3D1F24; --on-poor: #0C1413;
  --on-band: #0C1413; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.wrap { max-width: 620px; margin: 0 auto; padding: 0 16px 120px; }
body[data-view="form"] .wrap { padding-bottom: 150px; }

/* Header */
.top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 12px; padding: 20px 0 14px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: .9; letter-spacing: .01em; text-transform: uppercase; display: block; }
.wordmark span { color: var(--brass); }
.tagline { color: var(--muted); font-size: 14px; display: block; margin-top: 4px; }
.sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.sync svg { width: 13px; height: 13px; flex: none; }
.sync[data-mode="cloud"] .dot { background: var(--good); }
.sync .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mid); flex: none; }
.status { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--mid-soft); color: var(--ink); font-size: 14px; }

/* Bottom tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); }
.tabs-in { max-width: 620px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 8px 16px 12px; }
.tab { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; text-align: center; padding: 10px 6px; border-radius: 10px; }
.tab[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.tab-log { background: var(--accent); color: var(--accent-ink); padding: 11px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 15px; box-shadow: var(--shadow); }
body[data-view="form"] .tabs { display: none; }

/* Generic */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; box-shadow: var(--shadow); }
.stack { display: grid; gap: 14px; }
.h-section { font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
.hint { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.btn { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 11px 16px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--poor-ink); }
.btn.small { padding: 8px 12px; font-size: 14px; }
.btn:disabled { opacity: .6; cursor: default; }
.link-btn { appearance: none; background: none; border: 0; padding: 6px 0; color: var(--accent); font-weight: 600; font-size: 14px; cursor: pointer; }
.link-btn.danger { color: var(--poor-ink); }
.pill { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.yes { background: var(--good-soft); border-color: transparent; color: var(--good-ink); }
.pill.maybe { background: var(--mid-soft); border-color: transparent; color: var(--mid-ink); }
.pill.no { background: var(--poor-soft); border-color: transparent; color: var(--poor-ink); }
.pill.example { background: var(--brass); border-color: transparent; color: #15120A; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* Summary */
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.tile-num { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.tile-lbl { color: var(--muted); font-size: 13px; margin-top: 4px; }
.insight { margin: 0; font-size: 15px; color: var(--ink); }
.insight b { font-weight: 700; }
.listbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sortseg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.sortseg button { appearance: none; border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.sortseg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* Stay card with key fob */
.stays { display: grid; gap: 12px; }
.stay { display: grid; grid-template-columns: 62px 1fr; gap: 14px; align-items: center; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); transition: transform .15s ease; }
.stay:hover { transform: translateY(-1px); }
.stay-name { font-weight: 700; font-size: 17px; line-height: 1.25; }
.stay-meta { color: var(--muted); font-size: 14px; }
.stay-body { display: grid; gap: 4px; min-width: 0; }
.stay-body .pills { margin-top: 4px; }
.fob { position: relative; width: 62px; height: 92px; display: grid; place-items: center; align-content: center; gap: 0; padding-top: 14px;
  clip-path: polygon(50% 0, 100% 16%, 100% 84%, 50% 100%, 0 84%, 0 16%);
  background: var(--fob, var(--brass)); color: var(--on-fob, var(--on-band)); transform: rotate(-4deg); }
.fob::before { content: ""; position: absolute; top: 11px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
.fob-num { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.fob-lbl { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
[data-band="good"] { --fob: var(--good); --band: var(--good); --band-ink: var(--good-ink); --band-soft: var(--good-soft); --on-fob: var(--on-good); }
[data-band="mid"]  { --fob: var(--mid);  --band: var(--mid);  --band-ink: var(--mid-ink);  --band-soft: var(--mid-soft);  --on-fob: var(--on-mid); }
[data-band="poor"] { --fob: var(--poor); --band: var(--poor); --band-ink: var(--poor-ink); --band-soft: var(--poor-soft); --on-fob: var(--on-poor); }
[data-band="none"] { --fob: var(--muted); --band: var(--muted); --band-ink: var(--muted); --band-soft: var(--surface-2); --on-fob: var(--on-band); }
.fob.big { width: 84px; height: 124px; padding-top: 18px; }
.fob.big::before { top: 15px; width: 14px; height: 14px; margin-left: -7px; }
.fob.big .fob-num { font-size: 36px; }

.empty { text-align: left; display: grid; gap: 10px; }
.empty h2 { font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1; }

/* Detail */
.back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; }
.dhead { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
.dhead h1 { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: .95; text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; margin: 0; }
.facts div { min-width: 0; }
.facts dt { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.warn { background: var(--poor-soft); color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.warn b { color: var(--poor-ink); }
.crows { display: grid; gap: 14px; }
.crow { display: grid; gap: 6px; }
.crow-head { display: flex; align-items: baseline; gap: 8px; }
.crow-name { font-weight: 700; }
.crow-val { margin-left: auto; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; color: var(--band-ink, var(--band)); font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--band); border-radius: 99px; }
.crow-subs { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; color: var(--muted); }
.crow-subs b { color: var(--ink); font-variant-numeric: tabular-nums; }
.imp { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.imp-4 { color: var(--poor-ink); }
.imp-3 { color: var(--ink); }
.imp-0 { opacity: .7; }
.notes { white-space: pre-wrap; margin: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Form */
.form-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 18px; }
.form-head h1 { font-family: var(--display); font-weight: 800; font-size: 34px; text-transform: uppercase; line-height: 1; }
.field { display: grid; gap: 6px; }
label, .label { font-weight: 600; font-size: 14.5px; }
input[type="text"], input[type="search"], input[type="date"], input[type="time"], input:not([type]), textarea, select {
  width: 100%; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 11px 12px; font-size: 16px; min-width: 0;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.err { color: var(--poor-ink); font-size: 14px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { appearance: none; border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 8px 13px; font-size: 14.5px; font-weight: 600; cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.nights { color: var(--muted); font-size: 14px; min-height: 1em; }
.draft { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--surface-2); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14px; color: var(--muted); }

.cat { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.cat:first-of-type { border-top: 0; padding-top: 6px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cat-name { font-weight: 700; font-size: 16px; }
.rate { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.rate .r { appearance: none; height: 38px; min-width: 0; border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; padding: 0; font-variant-numeric: tabular-nums; transition: background .12s ease, color .12s ease; }
.rate .r.fill { background: var(--band-soft); border-color: transparent; color: var(--band-ink, var(--band)); }
.rate .r.on { background: var(--band); color: var(--on-fob, var(--on-band)); border-color: var(--band); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); font-weight: 800; }
.sub .rate .r { height: 32px; font-size: 13px; border-radius: 7px; }
.cat-foot { display: flex; align-items: center; gap: 10px; }
.derived { font-size: 13.5px; color: var(--muted); }
.subs { display: none; gap: 12px; padding: 6px 0 2px 12px; border-left: 2px solid var(--line); }
.cat.open .subs { display: grid; }
.sub { display: grid; gap: 5px; }
.sub-name { font-size: 14px; font-weight: 600; color: var(--muted); }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); }
.savebar-in { max-width: 620px; margin: 0 auto; padding: 10px 16px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live { display: flex; align-items: center; gap: 10px; }
.live .fob { width: 38px; height: 56px; padding-top: 9px; transform: rotate(-4deg); }
.live .fob::before { top: 7px; width: 7px; height: 7px; margin-left: -3.5px; }
.live .fob-num { font-size: 17px; }
.live-lbl { font-size: 13px; color: var(--muted); line-height: 1.2; }
.live-lbl b { display: block; color: var(--ink); font-size: 14.5px; }

/* What matters */
.mcat { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.mcat:first-of-type { border-top: 0; padding-top: 4px; }
.mcat.off .mcat-name, .msub.off .msub-name { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { width: 40px; height: 24px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .15s ease; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s ease; }
.switch input:checked + .sw { background: var(--accent); }
.switch input:checked + .sw::after { transform: translateX(16px); }
.switch input:focus-visible + .sw { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch.sm .sw { width: 34px; height: 20px; }
.switch.sm .sw::after { width: 14px; height: 14px; }
.switch.sm input:checked + .sw::after { transform: translateX(14px); }
.mcat-name { font-weight: 700; }
.impseg { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.impseg button { appearance: none; border: 0; background: none; padding: 7px 2px; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.impseg button.on { background: var(--accent); color: var(--accent-ink); }
.impseg button.on[data-v="4"] { background: var(--poor); color: var(--on-poor); }
.mcat-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.imp-full { font-size: 13.5px; color: var(--muted); }
.msubs { display: grid; gap: 8px; padding: 4px 0 0 12px; border-left: 2px solid var(--line); }
.msub { display: grid; gap: 6px; padding-bottom: 4px; }
.msub-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.msub-sel { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.msub-name { font-size: 14.5px; }
.msub select { padding: 7px 8px; font-size: 16px; }
.pts { display: grid; grid-template-columns: 40px 1fr 30px 40px; align-items: center; gap: 10px; }
.step { appearance: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 22px; font-weight: 600; line-height: 1; cursor: pointer; color: var(--ink); }
.step:disabled { opacity: .35; cursor: default; }
.pts-meter { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.pts-meter i { height: 12px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line); }
.pts-meter i.on { background: var(--accent); border-color: var(--accent); }
.pts-meter i.avg { box-shadow: 0 3px 0 -1px var(--brass); }
.pts-num { font-family: var(--display); font-weight: 800; font-size: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.budget { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--bg); border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow); }
.budget small { font-weight: 500; opacity: .75; font-size: 12.5px; }
.budget-num { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; color: var(--brass); min-width: 1.4em; text-align: center; font-variant-numeric: tabular-nums; }
.budget.over { background: var(--poor); color: var(--on-poor); }
.budget.over .budget-num { color: var(--on-poor); }
.facts .wide { grid-column: 1 / -1; }
.chip.sm { padding: 6px 10px; font-size: 13.5px; }
.attr-note { font-size: 13px; color: var(--muted); }
.x { appearance: none; border: 0; background: none; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; }
.x:hover { background: var(--surface-2); color: var(--poor-ink); }
.addrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.addcat { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.addcat select { width: auto; }

/* Toast + dialog */
.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(12px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-width: calc(100% - 32px); z-index: 60; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.dialog { position: fixed; inset: 0; z-index: 50; background: rgba(8,16,15,.5); display: grid; place-items: center; padding: 16px; }
.dialog[hidden] { display: none; }
.dialog-box { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 20px; max-width: 400px; width: 100%; display: grid; gap: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.dialog-box h2 { font-size: 19px; }
.dialog-box p { margin: 0; color: var(--muted); }
.dialog-choices { display: grid; gap: 8px; }
.dialog-choices[hidden] { display: none; }
.dialog-choices .btn { width: 100%; justify-content: center; }
.draft-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.dialog-actions[hidden] { display: none; }

@media (max-width: 400px) {
  .summary .tile-num { font-size: 28px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .addcat { grid-template-columns: 1fr 1fr; }
  .addcat input { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }

/* ---------- Accounts, people and sharing ---------- */
.sync[hidden], .badge[hidden] { display: none; }
.tabs-in { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 6px 8px 10px; }
.tab { position: relative; padding: 10px 2px; font-size: 13.5px; }
.tab-log { padding: 10px 4px; text-align: center; font-size: 14px; white-space: nowrap; }
.badge { position: absolute; top: -4px; right: -2px; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; border-radius: 99px; background: var(--poor); color: var(--on-poor); font-size: 11px; font-weight: 700; }
body[data-view="auth"] .tabs { display: none; }
input[type="email"], input[type="password"] { width: 100%; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 11px 12px; font-size: 16px; min-width: 0; }
.auth { max-width: 440px; margin: 8px auto 0; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; flex: none; }
.avatar.big { width: 56px; height: 56px; font-size: 20px; }
.plist { display: grid; gap: 2px; }
.prow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.plist .prow:first-child, .card > .prow:nth-child(2) { border-top: 0; }
.pname { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.star { appearance: none; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; width: 42px; height: 42px; display: inline-grid; place-items: center; cursor: pointer; color: var(--muted); flex: none; }
.star svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.star.on { color: var(--brass); background: var(--mid-soft); border-color: transparent; }
.star.on svg { fill: currentColor; }
.star.wide { width: auto; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; height: 36px; font-weight: 600; font-size: 14px; margin-top: 8px; }
.fhead { display: flex; align-items: center; gap: 14px; }
.invite { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.invite input { font-size: 14px; }
.code { font-family: var(--display); font-size: 20px; letter-spacing: .08em; }
.tagcard { border-color: var(--brass); }
.tagrow { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: start; padding-top: 4px; }
.tagtext { min-width: 0; }
.tagbtns { display: flex; align-items: center; gap: 14px; }
.tagrow .tagbtns { grid-column: 2; }
.tag-ask .tagbtns { grid-column: auto; }
.fhere { margin-top: 10px; padding: 10px 12px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 10px; }
.fhere-h { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14.5px; color: var(--ink); }
.fhere-h svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fhere-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 14.5px; }
.fhere-txt { display: grid; gap: 4px; min-width: 0; }
.fhere-scores { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--muted); font-size: 13.5px; }
.fhere-scores b { color: var(--ink); font-size: 15px; }
.fhere-pics { display: grid; grid-template-columns: repeat(3, minmax(0, 64px)); gap: 6px; }
.fhere-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.fhere .pills { margin: 0; }
.fhere-note { margin: 0; padding: 2px 0 2px 10px; border-left: 3px solid var(--line); color: var(--ink); font-style: italic; font-size: 14px; }
.lbl-sub { font-weight: 500; color: var(--muted); }
#f-roomtype { padding-right: 6px; text-overflow: ellipsis; }
.rt-other { margin-top: 6px; }
.type-note { margin: 10px 0 0; }
.need-list { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.need-list[disabled] { opacity: .6; }
/* Notifications card */
.nt-list { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.nt-sw { align-items: flex-start; font-size: 15.5px; }
.nt-sw .sw { margin-top: 1px; }
.nt-sw small { display: block; color: var(--muted); font-size: 13.5px; }
.sub-h { font-size: 16px; font-weight: 700; margin-top: 6px; }
.nt-state { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.nt-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
.nt-dot.on { background: var(--accent); border-color: var(--accent); }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.chip:disabled { opacity: .55; cursor: not-allowed; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; padding: 8px 0; cursor: pointer; font-size: 15.5px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.check small { display: block; color: var(--muted); font-size: 13.5px; }
.need-other { margin: 0 0 4px 34px; width: calc(100% - 34px); }
.req-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.req-list { display: grid; gap: 10px; }
.req-row { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.req-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.req-out { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.req-out li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.req-out li:last-child { border-bottom: 0; }
.req-res { font-weight: 700; color: var(--muted); white-space: nowrap; }
.req-res.r-yes { color: var(--good-ink); } .req-res.r-partly { color: var(--mid-ink); } .req-res.r-no { color: var(--poor-ink); }
.acc-row { display: grid; gap: 4px; }
.acc-line { display: flex; align-items: center; gap: 6px; }
.acc-line svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mcat-type { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.two > .field { min-width: 0; }
.tag-ask { display: grid; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14.5px; }
.locked-stay { grid-template-columns: 1fr auto; border-style: dashed; }
.locked-stay .hint svg, .hint > svg { width: 14px; height: 14px; vertical-align: -2px; }
.sh-h { margin: 10px 0 -4px; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sh-opt .sh-txt .tag-state { color: var(--ink); font-weight: 600; font-size: 13.5px; }
.sh-switch { width: 44px; height: 26px; border-radius: 99px; background: var(--surface-2); border: 2px solid var(--muted); position: relative; flex: none; }
.sh-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: left .15s ease; }
.sh-opt[aria-checked="true"] .sh-switch { background: var(--accent); border-color: var(--accent); }
.sh-opt[aria-checked="true"] .sh-switch::after { left: 21px; background: var(--accent-ink); }
.btn.small { padding: 8px 12px; font-size: 14px; }
.loc { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.suggest [role="option"] { padding: 11px 10px; border-radius: 8px; cursor: pointer; font-size: 15.5px; }
.suggest [role="option"]:hover, .suggest [aria-selected="true"] { background: var(--surface-2); }
.suggest-credit { padding: 4px 10px 2px; font-size: 11.5px; color: var(--muted); }

/* ---------- Profiles, avatars and badges ---------- */
.avatar { color: #fff; overflow: hidden; }
.avatar.ico svg { width: 58%; height: 58%; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.avatar.photo { background: var(--surface-2); }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xl { width: 72px; height: 72px; font-size: 26px; }
.me-card { display: grid; gap: 14px; }
.me-top { display: flex; align-items: center; gap: 14px; }
.me-av { text-decoration: none; border-radius: 50%; }
.me-id { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.me-name { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.me-badge { text-decoration: none; }
.badge-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--mid-soft); color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.medal { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--surface-2); border: 1.5px dashed var(--line); color: var(--muted); }
.medal svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.medal.earned { background: var(--brass); border: 0; color: #fff; box-shadow: inset 0 0 0 3px rgba(255,255,255,.28); }
.medal.sm { width: 22px; height: 22px; }
.medal.lg { width: 56px; height: 56px; }
.gs-list { list-style: none; margin: 0; padding: 0; display: grid; }
.gs-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.gs-row:first-child { border-top: 0; }
.gs-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.gs-check svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.gs-row.done .gs-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gs-text { display: grid; gap: 2px; min-width: 0; }
.gs-text b { font-size: 15.5px; }
.gs-text span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.gs-row.done .gs-text b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.gs-row .btn.small { white-space: nowrap; }
.gs-foot { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.gs-finished { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.subtabs { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.subtabs a { text-align: center; padding: 9px 2px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 13.5px; line-height: 1.2; display: grid; place-items: center; }
.subtabs a[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.badge-tile { appearance: none; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 14px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; color: var(--ink); }
.badge-tile b { font-size: 14.5px; }
.badge-tile span { font-size: 12.5px; color: var(--muted); }
.badge-tile em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--brass); }
.badge-tile.on { border: 2px solid var(--brass); background: var(--mid-soft); }
.badge-list { display: grid; gap: 14px; }
.badge-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.badge-row b { display: block; }
.badge-row span { display: block; font-size: 13.5px; color: var(--muted); }
.badge-row small { font-size: 12px; color: var(--muted); }
.prog { height: 6px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; margin: 6px 0 2px; }
.prog i { display: block; height: 100%; background: var(--brass); }
.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.av-grid button { appearance: none; border: 2px solid transparent; background: none; border-radius: 50%; padding: 2px; cursor: pointer; display: grid; place-items: center; }
.av-grid button[aria-checked="true"] { border-color: var(--brass); }
.av-grid .avatar { width: 44px; height: 44px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { appearance: none; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--brass); }
.vis-list { display: grid; gap: 8px; }
.vis-opt { appearance: none; text-align: left; display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; color: var(--ink); }
.vis-opt span { font-size: 13.5px; color: var(--muted); }
.vis-opt[aria-checked="true"] { border: 2px solid var(--accent); background: var(--surface); }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
label.btn { cursor: pointer; }
#search-results:empty { display: none; }
.pcard { align-items: start; }
.pcard[data-unrated] .fob { background: var(--surface-2); color: var(--muted); outline: 2px dashed var(--muted); outline-offset: -3px; }
.pbook { display: grid; gap: 6px; margin-top: 8px; }
.pbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.pbtns .btn { padding: 7px 10px; font-size: 13.5px; }
.pbook .link-btn { justify-self: start; }
.site-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.site-picks select { padding: 9px 6px; font-size: 16px; }
@media (max-width: 400px) { .site-picks { grid-template-columns: 1fr; } }
.gblock { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 13.5px; width: fit-content; max-width: 100%; }
.gattr { font-family: Roboto, Arial, sans-serif; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.gblock a { font-weight: 600; }
.site-foot { text-align: center; font-size: 13px; color: var(--muted); padding: 18px 0 4px; }
.pcard { grid-template-columns: 62px 1fr; overflow: hidden; padding-top: 0; }
.pphoto { grid-column: 1 / -1; margin: 0 -14px 4px; position: relative; aspect-ratio: 16 / 7; background: var(--surface-2); overflow: hidden; }
.pphoto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pphoto figcaption { position: absolute; right: 6px; bottom: 6px; max-width: 70%; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pphoto figcaption a { color: #fff; }
.pphoto.none, .pphoto.failed { display: flex; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 16 / 4; color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--bg) 14px 28px); }
.pphoto.failed img, .pphoto.failed figcaption { display: none; }
.pphoto.none svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pphoto.none span { font-weight: 600; font-size: 14px; }
.price-tag { font-weight: 700; letter-spacing: .04em; color: var(--good-ink); }

/* Tips & tricks */
.tips-entry { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.tips-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--brass); display: grid; place-items: center; }
.tips-ico svg { width: 22px; height: 22px; }
.tips-go { color: var(--muted); font-size: 26px; line-height: 1; }
.tip { border-top: 1px solid var(--line); }
.tip-group h2 + .tip { border-top: 0; }
.tip summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 0; }
.tip summary::-webkit-details-marker { display: none; }
.tip-head { display: flex; flex-direction: column; gap: 3px; }
.tip-title { font-weight: 700; font-size: 16px; position: relative; padding-left: 1.1em; }
.tip-title::before { content: "+"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.tip[open] .tip-title::before { content: "\2212"; }
.tip-sum { color: var(--muted); font-size: 14px; padding-left: 1.1em; }
.tip summary .pill { flex: none; margin-top: 2px; }
.tip-body { padding: 0 0 16px 1.1em; gap: 10px; }
.tip-body p { margin: 0; font-size: 15px; line-height: 1.5; }
.tip-steps, .tip-src ul { margin: 6px 0 0; padding-left: 1.3em; font-size: 15px; line-height: 1.5; }
.tip-src ul { font-size: 14px; }
.tip-legend { margin: 0; display: grid; gap: 8px; }
.subtabs.two { grid-template-columns: 1fr 1fr; }
.subtabs.two a { font-size: 15px; padding: 10px 4px; display: flex; gap: 6px; justify-content: center; }
.subtabs.three { grid-template-columns: repeat(3, 1fr); }
.subtabs.three a { font-size: 14px; padding: 9px 4px; display: flex; flex-wrap: wrap; gap: 2px 6px; justify-content: center; align-content: center; }
.gear-buy { display: grid; gap: 6px; justify-items: start; }
.gear-ed { gap: 8px; }
.gear-ed h2 { font-size: 24px; margin: 0; }
.gear-ed-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.gear-ed-row select { width: auto; min-width: 190px; }
.gear-old { border: 2px solid var(--brass); }
.gear-musts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.gear-musts li { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.gear-musts li:first-child { border-top: 0; padding-top: 0; }
.gear-musts b { font-size: 16px; }
.gear-musts p { margin: 0; font-size: 15px; line-height: 1.45; }
.gear-must-act { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 4px; }
.gear-sub { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; font-weight: 700; }
.gear-sub + .tip { border-top: 0; }
.gear-pick { display: grid; gap: 6px; padding: 12px 0; border-top: 1px dashed var(--line); justify-items: start; }
.gear-pick:first-child { border-top: 0; padding-top: 0; }
.gear-pick h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.gear-slot { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border: 1.5px solid currentColor; border-radius: 999px; padding: 2px 9px; color: var(--muted); }
.gear-slot.gs-top { color: var(--accent); }
.gear-run { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; background: var(--surface-2); color: var(--ink); margin-left: 4px; }
.gear-musts li > span { justify-self: start; }
.gear-musts .gear-run { margin-left: 0; }
.gear-season-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gear-season-list li { display: grid; gap: 2px; justify-items: start; }
.gear-season-list .linkish { text-align: left; font-weight: 700; }
.gear-cred { color: var(--muted); font-size: 14px !important; }
.gear-cred a { white-space: normal; }
.gear-gap { margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--line); color: var(--muted); font-size: 14px !important; }
.gear-note { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 14px !important; }
.gear-note b { display: block; }
.tab-n { font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 7px; }
.subtabs a[aria-selected="true"] .tab-n { background: var(--accent); color: var(--accent-ink); }
.tip-q { -webkit-appearance: none; appearance: none; }
@media (max-width: 359px) { .subtabs.two .tab-n { display: none; } .subtabs.two a { white-space: nowrap; } }
.tip-start-list { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.tip-start-list li { line-height: 1.35; }
.tip-start-list .pill { vertical-align: 1px; margin-left: 4px; }
.linkish { appearance: none; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent); text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.tip summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.tip-legend div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; }
.tip-legend dd { margin: 0; font-size: 14px; color: var(--muted); }

/* First-time tour */
.tour { position: fixed; inset: 0; z-index: 100; }
.tour-shade { position: absolute; inset: 0; }
.tour-shade svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tour-dim { fill: rgba(5, 15, 13, .6); }
.tour-spot { position: fixed; border-radius: 14px; outline: 3px solid var(--brass); outline-offset: 0; pointer-events: none; }
.tour-page { position: fixed; border-radius: 13px; outline: 3px dashed var(--brass); outline-offset: 0; pointer-events: none; }
.tour-bubble { position: fixed; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 12px; box-shadow: 0 12px 40px rgba(0,0,0,.35); transition: top .25s ease, left .25s ease; }
.tour-bubble h2 { margin: 2px 0 6px; font-family: var(--display); font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.tour-bubble p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.5; }
.tour-count { color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.tour-btns { display: flex; align-items: center; gap: 8px; }
.tour-btns .sp { flex: 1; }
.tour-arrow { position: absolute; width: 14px; height: 14px; background: var(--surface); border: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.tour-arrow.up { top: -8px; border-right: 0; border-bottom: 0; }
.tour-arrow.down { bottom: -8px; border-left: 0; border-top: 0; }
body.touring { overflow: hidden; }
#tour [hidden] { display: none !important; }
.tour { --clipw: 116px; }
@media (min-height: 800px) { .tour { --clipw: 128px; } }
.tour-bubble.has-clip { display: grid; grid-template-columns: var(--clipw) minmax(0, 1fr); column-gap: 14px; align-items: start; }
.tour-bubble.has-clip .tour-btns { grid-column: 1 / -1; margin-top: 10px; }
.tour-bubble.has-clip h2 { font-size: 20px; }
.tour-bubble.has-clip p { font-size: 15px; line-height: 1.45; margin-bottom: 0; }
.tour-clip { position: relative; display: block; width: var(--clipw); aspect-ratio: 480 / 1038; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.tour-clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tour-clip-zoom { position: absolute; inset: 0; z-index: 1; appearance: none; border: 0; padding: 0; margin: 0; background: none; cursor: zoom-in; border-radius: 12px; }
.tour-clip-zoom:focus-visible, .tour-sound:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.tour-clip-ex { position: absolute; left: 0; right: 0; top: 0; padding: 3px 0; background: #FFD60A; color: #111; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.tour-clip-go { position: absolute; right: 6px; top: 24px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .66); display: grid; place-items: center; }
.tour-clip-go svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tour-sound { position: absolute; z-index: 2; left: 5px; right: 5px; bottom: 5px; min-height: 32px; display: flex; align-items: center; justify-content: center; gap: 4px;
  appearance: none; border: 2px solid #FFD60A; border-radius: 999px; background: #111317; color: #fff; font: 700 11.5px/1.1 var(--body); padding: 4px 6px; cursor: pointer; }
.tour-sound svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tour-sound svg path:first-child { fill: currentColor; }
.tour-sound[aria-pressed="true"] { background: #FFD60A; color: #111; }
.tour-watch { margin: 0 0 12px; }
.tour-big { position: fixed; inset: 0; z-index: 2; background: rgba(5, 15, 13, .88); display: grid; place-items: center; padding: 16px; }
.tour-big-in { display: grid; gap: 12px; justify-items: center; }
.tour-big video { display: block; height: min(76vh, calc((100vw - 32px) * 1038 / 480)); width: auto; max-width: calc(100vw - 32px); border-radius: 18px; background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.tour-big-note { margin: 0; color: #fff; opacity: .8; font-size: 13.5px; }
@media (prefers-reduced-motion: reduce) { .tour-bubble { transition: none; } }

/* Add a booking from a screenshot */
.tips-ico.imp { color: var(--accent); }
.tips-ico .cam { width: 22px; height: 22px; }
.import-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.import-link .cam { width: 22px; height: 22px; color: var(--accent); flex: none; }
.import-link b { color: var(--accent); }
.imp-pick { align-self: flex-start; }
.imp-pick .cam { width: 20px; height: 20px; }
.imp-thumb { display: block; max-width: 100%; max-height: 260px; margin: 0 auto; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; background: var(--surface-2); }
.imp-thumb.sm { max-height: 140px; }
.imp-tips { margin: 0; padding-left: 1.2em; font-size: 15px; line-height: 1.5; }
.bar > #imp-bar { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .2s ease; }
.found { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--good-ink); background: var(--good-soft); border-radius: 999px; padding: 1px 7px; vertical-align: 1px; }

/* Photos and album */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acct-row { flex-wrap: wrap; }
.acct-txt { min-width: 0; }
.acct-val { margin: 2px 0 0; overflow-wrap: anywhere; }
.acct-form { padding-top: 2px; }
.top-row { flex-wrap: wrap; }
.top-row .back { margin: 0; }
.add-friend { white-space: nowrap; }
.ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ph-grid.album { grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (min-width: 640px) { .ph-grid.album { grid-template-columns: repeat(5, 1fr); } }
.ph-cell { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 0; padding: 0; cursor: pointer; display: block; }
.ph-grid.album .ph-cell { border-radius: 6px; }
.ph-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-cell img:not([src]) { visibility: hidden; }
.ph-cell:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ph-cell.new { outline: 2px dashed var(--accent); outline-offset: -2px; }
.ph-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.62); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.ph-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-weight: 700; font-size: 20px; }
label.btn .cam { width: 20px; height: 20px; }
.album-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.album-mosaic { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; display: grid; gap: 2px; background: var(--surface-2); }
.album-mosaic.n2, .album-mosaic.n3, .album-mosaic.n4 { grid-template-columns: 1fr 1fr; }
.album-mosaic.n3 img:first-child { grid-row: span 2; }
.album-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.album-group { gap: 8px; }
.album-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.album-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.album-head h2 a { color: inherit; text-decoration: none; }
.viewer { position: fixed; inset: 0; z-index: 45; background: #0b0f0e; color: #f2f5f4; display: grid; grid-template-rows: auto 1fr auto; }
.v-top { display: flex; justify-content: space-between; align-items: center; padding: max(10px, env(safe-area-inset-top)) 12px 6px 16px; }
.v-count { font-size: 14px; font-weight: 600; color: #b9c4c1; }
.v-btn { appearance: none; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; }
.v-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 8px; touch-action: pan-y; }
.v-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.v-nav { position: absolute; top: 50%; transform: translateY(-50%); appearance: none; border: 0; width: 44px; height: 64px; border-radius: 12px; background: rgba(0,0,0,.45); color: #fff; font-size: 34px; cursor: pointer; }
.v-nav.prev { left: 8px; } .v-nav.next { right: 8px; }
.v-nav[disabled] { opacity: 0; pointer-events: none; }
.v-foot { padding: 10px 16px max(14px, env(safe-area-inset-bottom)); display: grid; gap: 6px; max-width: 760px; width: 100%; margin: 0 auto; }
.v-cap { margin: 0; font-size: 16px; line-height: 1.45; }
.v-meta { margin: 0; font-size: 14px; color: #b9c4c1; }
.v-meta a { color: #8fd8cc; }
.v-actions { display: flex; gap: 18px; }
.v-actions .link-btn { color: #8fd8cc; }
.viewer input[type="text"] { background: #1b2523; color: #fff; border-color: #33423f; }

/* Post audience */
.aud-card { padding: 6px 16px 14px; display: grid; gap: 4px; }
.aud-row { appearance: none; background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; font: inherit; text-align: left; display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; cursor: pointer; }
.aud-row:last-of-type { border-bottom: 0; }
.aud-card.nested { padding: 0; gap: 0; }
.aud-ico { width: 24px; height: 24px; color: var(--ink); }
.aud-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aud-txt b { font-size: 16px; }
.aud-txt span { color: var(--muted); font-size: 14.5px; }
.aud-go { color: var(--muted); font-size: 26px; line-height: 1; }
.aud-warn { margin: 4px 0 0; color: var(--warn-ink, var(--ink)); background: var(--warn-soft, var(--surface-2)); border-radius: 10px; padding: 10px 12px; }
.ph-tag { position: absolute; left: 4px; bottom: 4px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 7px; }
.sheet { position: fixed; inset: 0; z-index: 44; background: var(--bg); color: var(--ink); display: grid; grid-template-rows: auto 1fr auto; }
.sh-top { display: flex; align-items: center; padding: max(8px, env(safe-area-inset-top)) 8px 0; max-width: 640px; width: 100%; margin: 0 auto; }
.sh-back { appearance: none; border: 0; background: none; color: var(--ink); font-size: 36px; line-height: 1; width: 44px; height: 44px; cursor: pointer; border-radius: 10px; }
.sh-body { overflow: auto; padding: 4px 18px 16px; max-width: 640px; width: 100%; margin: 0 auto; display: grid; gap: 12px; align-content: start; }
.sh-body h2 { margin: 0; font-size: 22px; font-weight: 800; }
.sh-sub { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.sh-list { display: grid; }
.sh-opt { appearance: none; background: none; border: 0; color: inherit; font: inherit; text-align: left; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 2px; cursor: pointer; border-radius: 10px; }
.sh-opt:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sh-opt .sh-txt { display: flex; flex-direction: column; gap: 2px; }
.sh-opt .sh-txt b { font-size: 16px; }
.sh-opt .sh-txt span { color: var(--muted); font-size: 14px; }
.sh-opt .sh-txt .sh-link { color: var(--accent); font-weight: 600; cursor: pointer; }
.sh-radio, .sh-box { width: 24px; height: 24px; border: 2px solid var(--muted); border-radius: 50%; display: grid; place-items: center; }
.sh-box { border-radius: 7px; }
.sh-opt[aria-checked="true"] .sh-radio { border-color: var(--accent); }
.sh-opt[aria-checked="true"] .sh-radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.sh-opt[aria-checked="true"] .sh-box { border-color: var(--accent); background: var(--accent); }
.sh-opt[aria-checked="true"] .sh-box::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.sh-opt.noico { grid-template-columns: 1fr auto; }
body.touring .toast { bottom: 150px; }
.sh-search { width: 100%; }
.sh-current { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.sh-current .sh-txt { display: flex; flex-direction: column; }
.sh-current .sh-txt span { color: var(--muted); font-size: 13px; }
.sh-foot { padding: 10px 18px max(14px, env(safe-area-inset-bottom)); max-width: 640px; width: 100%; margin: 0 auto; display: grid; gap: 10px; }
.sh-def { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 15px; }
.sh-def input { width: 22px; height: 22px; accent-color: var(--accent); }
.sh-done { width: 100%; }
.ph-grid.pick .ph-cell[aria-checked="true"] { outline: 3px solid var(--accent); outline-offset: -3px; }
.ph-check { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.35); display: grid; place-items: center; }
.ph-cell[aria-checked="true"] .ph-check { background: var(--accent); }
.ph-cell[aria-checked="true"] .ph-check::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }

.sh-opt.off { opacity: .42; cursor: not-allowed; }
.aud-warn .sh-link { display: block; margin-top: 6px; color: var(--accent); font-weight: 700; cursor: pointer; }
.sh-opt.off .sh-radio, .sh-opt.off .sh-box { border-style: dashed; }
.dialog-box.warn h2 { text-align: center; line-height: 1.3; }
.dialog-box.warn #dialog-msg { white-space: pre-line; }

/* Sharing a stay */
.share-pre { max-width: 520px; margin: 0 auto; gap: 18px; }
.share-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding-top: 8px; }
.share-hero h1 { margin: 0; font-family: var(--display); font-size: 30px; line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; }
.fan { position: relative; height: 170px; margin: 4px auto 0; width: 100%; max-width: 360px; }
.fan img { position: absolute; left: 50%; top: 14px; width: 54%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 4px solid var(--surface); box-shadow: 0 10px 26px rgba(0,0,0,.22); background: var(--surface-2); transform-origin: 50% 90%; }
.fan img:not([src]) { visibility: hidden; }
.fan.n1 img { transform: translateX(-50%); }
.fan.n2 img:nth-child(1) { transform: translateX(-66%) rotate(-7deg); }
.fan.n2 img:nth-child(2) { transform: translateX(-34%) rotate(6deg); }
.fan.n3 img:nth-child(1) { transform: translateX(-80%) rotate(-10deg); }
.fan.n3 img:nth-child(2) { transform: translateX(-20%) rotate(9deg); }
.fan.n3 img:nth-child(3) { transform: translateX(-50%) translateY(-6px); z-index: 2; }
.share-sum { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.share-sum .fob { width: 74px; height: 74px; }
.share-name { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2; }
.share-go { width: 100%; font-size: 17px; padding: 15px; }
.share-about { margin: 8px 0 0; text-align: center; }
.share-banner { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; }
.share-cta { text-align: center; align-items: center; }
.share-cta .btn { width: 100%; max-width: 320px; }
#share-sentinel { height: 1px; }
.back-link { align-self: flex-start; }
.ss-what { gap: 8px; }
.danger-link { color: var(--danger, #b42318); align-self: flex-start; }

/* Unexpected fees */
.fee-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.fee-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.fee-row:last-child { border-bottom: 0; }
.fee-acts { display: flex; gap: 14px; flex: none; }
.fee-edit { background: var(--surface-2); border-radius: 12px; padding: 12px; gap: 10px; }

/* The public gear page */
.gear-public { max-width: 680px; margin: 0 auto; padding: 20px 16px 56px; }
.gear-public .gear-top { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; justify-content: space-between; }
.gear-public h1 { font-size: 34px; margin: 0; }
.gear-public .site-foot { margin-top: 8px; }
