/* nys.events — "Tribeca loft": stone, graphite and a single brass accent */
:root {
  --stone: #f3f3f1;
  --panel: #ffffff;
  --ink: #1d2124;
  --ink-2: #3c4247;
  --muted: #6b7278;
  --line: #dfe0dd;
  --line-2: #ecedea;
  --graphite: #262b2f;
  --brass: #a07f4f;
  --brass-ink: #7a5f37;
  --brass-soft: #f2ece2;
  --ok: #2f6b4f;
  --ok-soft: #e4efe8;
  --warn: #7d5a1e;
  --warn-soft: #f5eddd;
  --bad: #9b2c25;
  --bad-soft: #f6e4e2;
  --r: 6px;
  --r-sm: 4px;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(29, 33, 36, .05), 0 12px 32px -18px rgba(29, 33, 36, .25);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone); color: var(--ink); font: 400 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--brass); }
a:hover { color: var(--brass-ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 .5em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.h3, h3 { font-family: var(--sans); font-size: 1.06rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; margin: 2.2rem 0 .6rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.right { text-align: right; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.inline { display: inline; }

/* category tones: quiet variations of graphite, not colors */
.gel-photo, .gel-video, .gel-podcast, .gel-music, .gel-dance, .gel-event, .gel-workshop, .gel-kitchen { --t: #2a2f33; }
.gel-video { --t: #23292e; } .gel-podcast { --t: #2d2a27; } .gel-music { --t: #25272c; }
.gel-dance { --t: #2b2a2d; } .gel-event { --t: #2e2b26; } .gel-workshop { --t: #262c2a; } .gel-kitchen { --t: #2c2b27; }
.ph { display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 18px 20px; position: relative; overflow: hidden;
  background: linear-gradient(115deg, rgba(255, 255, 255, .07) 0 38%, transparent 38% 54%, rgba(255, 255, 255, .04) 54% 66%, transparent 66%), var(--t, var(--graphite)); }
.ph::after { content: ""; position: absolute; left: 20px; right: 20px; top: 18px; height: 1px; background: rgba(160, 127, 79, .55); }
.ph span { color: #f3f1ec; font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.05; max-width: 10ch; text-decoration: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 600 .95rem/1 var(--sans); letter-spacing: .01em;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: var(--r-sm); padding: .95em 1.4em; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--brass-ink); border-color: var(--brass-ink); color: #fff; }
.btn:disabled { opacity: .4; cursor: not-allowed; background: var(--ink); border-color: var(--ink); }
.btn-lg { font-size: 1rem; padding: 1.05em 1.7em; }
.btn-sm { font-size: .84rem; padding: .6em .95em; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #b9bcb8; }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: #7a1f19; border-color: #7a1f19; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--brass); }
.linklike.danger { color: var(--bad); text-decoration-color: var(--bad); }
.text-link { font-weight: 600; }

/* header */
.site-head { background: rgba(243, 243, 241, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .94rem; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 6px; }
.nav .btn { color: #fff; text-decoration: none; }
.nav .linklike { color: var(--muted); text-decoration: none; font-size: .94rem; }
.nav-user { padding: .35em .85em; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid #c6c8c4; border-radius: var(--r-sm); padding: .5em .9em; font: 600 .9rem var(--sans); color: var(--ink); }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 70px; background: var(--panel); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 14px 16px 22px; gap: 16px; }
  .nav.open { display: flex; }
}

/* flashes & badges */
.flashes { margin-top: 16px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--r-sm); border-left: 3px solid; background: var(--panel); overflow-wrap: anywhere; }
.flash-success { border-color: var(--ok); background: var(--ok-soft); }
.flash-error { border-color: var(--bad); background: var(--bad-soft); }
.flash-info { border-color: var(--brass); background: var(--brass-soft); }
.badge { display: inline-block; font-size: .76rem; font-weight: 600; padding: .25em .65em; border-radius: var(--r-sm); white-space: nowrap; letter-spacing: .01em; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-muted { background: var(--line-2); color: var(--muted); }

/* forms */
.field { display: grid; gap: 6px; font-size: .9rem; }
.field > span { font-weight: 600; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
input, select, textarea { font: 400 1rem/1.3 var(--sans); color: var(--ink); background: var(--panel); border: 1px solid #cfd1cd; border-radius: var(--r-sm); padding: .8em .85em; width: 100%; min-width: 0; }
textarea { resize: vertical; line-height: 1.55; }
input:hover, select:hover, textarea:hover { border-color: #b3b6b2; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--brass-soft); }
input:disabled { background: var(--line-2); color: var(--muted); }
.input-sm { padding: .45em .6em; font-size: .88rem; width: auto; }
.check { display: flex; gap: 8px; align-items: center; font-size: .95rem; }
.check input, .choice input { width: auto; accent-color: var(--ink); }
.stack { display: grid; gap: 16px; }
.card-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; margin-bottom: 20px; }
.card-form .h3 { margin-top: 0; }
.choice { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); }
.choice label { display: flex; gap: 8px; align-items: center; border: 1px solid #cfd1cd; border-radius: var(--r-sm); padding: .85em .9em; cursor: pointer; font-weight: 500; }
.choice label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.row-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.row-inline .field { flex: 1 1 140px; }
.row-inline .field.narrow { flex: 0 1 90px; }
.row-inline .field.grow { flex: 3 1 220px; }
.form-error { color: var(--bad); font-weight: 600; font-size: .9rem; }
@media (max-width: 640px) { .row3 { grid-template-columns: 1fr; } .choice { grid-template-columns: 1fr; } }

/* layout pieces */
.page { padding: 40px 0 80px; }
.narrow-page { width: min(500px, 100% - 32px); margin: 0 auto; padding: 56px 0 80px; }
.narrow-page.wide { width: min(780px, 100% - 32px); }
.page-title { font-size: clamp(2.1rem, 4vw, 3rem); }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.section { padding: 88px 0 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 0; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 56ch; line-height: 1.65; }
.empty { padding: 44px 32px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.empty p { color: var(--muted); max-width: 52ch; margin: 0 auto 18px; }

/* hero — graphite stage, the one dark moment on the page */
.hero { background: var(--graphite); color: #ecebe7; border-bottom: 1px solid #000; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; padding: 88px 0 96px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 6.8vw, 5.6rem); line-height: .98; letter-spacing: -0.02em; max-width: 11ch; color: #fff; margin-bottom: .4em; }
.hero .lede { color: #b9bcbe; font-size: 1.14rem; }
.search { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 36px; background: #3a4045; border: 1px solid #3a4045; border-radius: var(--r); overflow: hidden; }
.search .field { background: #2e3438; padding: 12px 14px 10px; gap: 2px; }
.search .field > span { font-size: .76rem; font-weight: 500; color: #9a9fa2; letter-spacing: .02em; }
.search input, .search select { background: transparent; border: 0; color: #fff; padding: .35em 0; font-size: 1rem; color-scheme: dark; }
.search input:focus, .search select:focus { box-shadow: none; }
.search select option { color: var(--ink); }
.search .field:focus-within { background: #353b40; }
.search .btn { grid-column: 1 / -1; border-radius: 0; background: var(--brass); border-color: var(--brass); padding: 1.15em; }
.search .btn:hover { background: #b38f5c; border-color: #b38f5c; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; padding: 56px 0 64px; } }
@media (max-width: 560px) { .search { grid-template-columns: 1fr; } }

/* the day board — signature element */
.dayboard { margin: 0; background: var(--panel); color: var(--ink); border-radius: var(--r); padding: 22px 22px 24px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.dayboard figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dayboard figcaption strong { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.dayboard figcaption span { color: var(--muted); font-size: .9rem; }
.dayboard-hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dayboard-hours li { display: grid; grid-template-columns: 54px 1fr; align-items: stretch; min-height: calc(30px * var(--span, 1) + 4px * (var(--span, 1) - 1)); }
.db-h { font-size: .76rem; color: var(--muted); padding-top: 6px; font-variant-numeric: tabular-nums; }
.db-label { border-radius: var(--r-sm); padding: 6px 11px; font-size: .88rem; font-weight: 500; display: flex; justify-content: space-between; align-items: flex-start; }
.db-label small { font-weight: 400; opacity: .8; }
.db-open .db-label { border: 1px solid var(--line); color: var(--muted); }
.db-block .db-label { background: repeating-linear-gradient(135deg, #eeefec 0 6px, #e5e6e3 6px 12px); color: var(--ink-2); }
.db-mine .db-label { background: var(--ink); color: #fff; box-shadow: inset 3px 0 0 var(--brass); font-weight: 600; }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 22px 22px; background: var(--panel); text-decoration: none; color: var(--ink); transition: background .15s; }
.cat:hover { background: var(--brass-soft); color: var(--ink); }
.cat-name { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; line-height: 1.15; }
.cat-count { color: var(--muted); font-size: .84rem; white-space: nowrap; }
@media (max-width: 860px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .cat-grid { grid-template-columns: 1fr; } }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 26px; }
@media (max-width: 980px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card-img { position: relative; display: block; text-decoration: none; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--line-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-img:hover img { transform: scale(1.025); }
.card-price { position: absolute; right: 14px; bottom: 14px; background: var(--panel); color: var(--ink); font-weight: 600; padding: .35em .7em; border-radius: var(--r-sm); font-size: .95rem; }
.card-price small { font-weight: 400; color: var(--muted); }
.card-body { padding-top: 14px; }
.card-title { font-family: var(--serif); font-weight: 500; font-size: 1.32rem; line-height: 1.15; margin: 0 0 6px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--brass-ink); }
.card-meta { margin: 0; color: var(--muted); font-size: .9rem; }
.stars { color: var(--brass); font-weight: 600; }
.stars-off { color: var(--line); }
.mini-ruler { display: flex; gap: 2px; margin-top: 14px; height: 6px; }
.mini-ruler i { flex: 1; background: var(--ink); }
.mini-ruler i.taken { background: #c4c6c2; }
.mini-ruler i.past { background: var(--line); }
.mini-cap { margin: 7px 0 0; font-size: .8rem; color: var(--muted); }

/* how it works band */
.band { margin-top: 96px; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps-wrap { padding: 80px 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; color: var(--ink-2); padding: 28px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--brass); margin-bottom: 16px; }
.steps strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }
.steps-plain { grid-template-columns: 1fr; border-top: 0; }
.steps-plain li, .steps-plain li + li { padding: 0 0 0 60px; border-left: 0; position: relative; margin-bottom: 22px; }
.steps-plain li::before { position: absolute; left: 0; top: 0; font-size: 1.8rem; }
.steps-plain strong { display: inline; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li + li { padding: 24px 0 0; border-left: 0; } }
.host-cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 88px 0 24px; flex-wrap: wrap; }
.host-cta h2 { max-width: 18ch; }
.host-cta .lede { margin: 0; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.filters .field { flex: 1 1 140px; }
.filters .field.grow { flex: 2 1 220px; }
.filters .field.narrow { flex: 0 1 100px; }
.result-count { margin: 26px 0; color: var(--muted); }
.pager { display: flex; gap: 6px; margin-top: 40px; }
.pager a { padding: .45em .9em; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); background: var(--panel); }
.pager a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* studio page */
.crumbs { font-size: .9rem; margin-bottom: 10px; color: var(--muted); }
.studio-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 20ch; }
.studio-sub { color: var(--muted); }
.gallery { display: grid; gap: 6px; border-radius: var(--r); overflow: hidden; margin: 12px 0 40px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.gallery:not(.gallery-multi) img { max-height: 480px; }
.gallery-multi { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(260px, 42vw, 500px); }
.gallery-multi img { aspect-ratio: auto; }
.gallery-multi img:first-child { grid-row: span 2; }
.gallery-ph { height: clamp(200px, 30vw, 360px); padding: 30px 34px; }
.gallery-ph::after { left: 34px; right: 34px; top: 30px; }
.gallery-ph span { font-size: clamp(2.2rem, 5vw, 3.8rem); }
@media (max-width: 700px) { .gallery-multi { grid-template-columns: 1fr; grid-template-rows: none; height: auto; } .gallery-multi img { aspect-ratio: 16/10; } .gallery-multi img:not(:first-child) { display: none; } .gallery-multi img:first-child { grid-row: auto; } }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: start; }
@media (max-width: 980px) { .studio-grid { grid-template-columns: 1fr; } }
.studio-main { max-width: 66ch; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 16px 16px 16px 0; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { padding-left: 0; border-left: 0; } .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.prose { color: var(--ink-2); }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.amenities li { padding-left: 18px; position: relative; }
.amenities li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--brass); }
.hours-table { border-collapse: collapse; }
.hours-table th { text-align: left; font-weight: 500; padding: 6px 36px 6px 0; border-bottom: 1px solid var(--line-2); }
.hours-table td { padding: 6px 0; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--line-2); }
.reviews { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.reviews li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.reviews li p:last-child { margin: 0; }
.review-head { margin-bottom: 4px; }

/* booking panel */
.book-panel { position: sticky; top: 92px; }
.book-form { background: var(--panel); border-radius: var(--r); padding: 26px; display: grid; gap: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.book-price { margin: 0; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.book-price strong { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; color: var(--ink); }
.ruler-day { margin: 0 0 8px; font-weight: 600; font-size: .92rem; }
.ruler { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.slot { font: 500 .84rem/1 var(--sans); font-variant-numeric: tabular-nums; padding: 12px 4px; border-radius: var(--r-sm); border: 1px solid #cfd1cd; background: var(--panel); color: var(--ink); cursor: pointer; transition: border-color .12s, background .12s; }
.slot:hover:not(:disabled) { border-color: var(--ink); }
.slot.taken { border-color: transparent; color: #a3a7a5; background: repeating-linear-gradient(135deg, #f1f1ef 0 5px, #e8e9e6 5px 10px); text-decoration: line-through; cursor: not-allowed; }
.slot.past { border-color: transparent; background: var(--line-2); color: #b1b4b1; cursor: not-allowed; }
.slot.sel, .slot.sel:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 var(--brass); }
.slot.sel-bad { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.ruler-closed { grid-column: 1 / -1; margin: 6px 0; }
.ruler-key { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin: 10px 0 0; }
.k { width: 12px; height: 12px; border-radius: 2px; display: inline-block; margin-left: 8px; }
.k:first-child { margin-left: 0; }
.k-free { background: var(--panel); border: 1px solid #b9bcb8; }
.k-taken { background: repeating-linear-gradient(135deg, #f1f1ef 0 3px, #d9dad7 3px 6px); }
.k-sel { background: var(--ink); box-shadow: inset 0 -2px 0 var(--brass); }
.breakdown { margin: 0; display: grid; gap: 7px; font-size: .95rem; }
.breakdown div { display: flex; justify-content: space-between; gap: 12px; }
.breakdown dt { color: var(--muted); }
.breakdown dd { margin: 0; font-variant-numeric: tabular-nums; }
.breakdown .total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-weight: 600; font-size: 1.05rem; }
.breakdown .total dt { color: var(--ink); }
.mobile-book { display: none; }
@media (max-width: 980px) {
  .book-panel { position: static; scroll-margin-top: 86px; }
  .mobile-book { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .studio { padding-bottom: 96px; }
}

/* bookings list */
.blist { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.blist-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 18px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
a.blist-row:hover { border-color: #b9bcb8; color: var(--ink); }
.blist-row img { width: 100px; height: 76px; object-fit: cover; border-radius: var(--r-sm); }
.blist-main { display: grid; gap: 2px; min-width: 0; }
.blist-main strong { font-weight: 600; }
.blist-side { display: grid; justify-items: end; gap: 6px; font-weight: 600; }
.actions { display: flex; gap: 16px; flex-wrap: wrap; font-size: .9rem; margin-top: 4px; }
.admin-actions { margin-top: 8px; }
@media (max-width: 600px) { .blist-row { grid-template-columns: 64px 1fr; } .blist-row img { width: 64px; height: 56px; } .blist-side { grid-column: 2; justify-items: start; } }

/* ticket */
.confirm-banner { border-radius: var(--r); padding: 28px 32px; margin-bottom: 20px; background: var(--graphite); color: #ecebe7; border-left: 4px solid var(--brass); }
.confirm-banner h1 { font-size: 2.4rem; color: #fff; margin-bottom: 6px; }
.confirm-banner p { margin: 0; color: #c3c6c8; }
.ticket { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 32px; display: grid; gap: 22px; }
.ticket-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ticket-head p { margin: 0; }
.ticket-title { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; margin: 4px 0 0; }
.ticket-title a { color: var(--ink); text-decoration: none; }
.ticket-badges { display: flex; gap: 6px; align-items: flex-start; }
.ticket-time { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; gap: 12px; }
.ticket-time div { display: grid; }
.ticket-time strong { font-weight: 600; }
@media (max-width: 600px) { .ticket-time { grid-template-columns: 1fr; } .ticket { padding: 22px; } }
.kv { margin: 0; display: grid; gap: 8px; }
.kv div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.ticket-actions { margin: 22px 0; display: grid; gap: 12px; justify-items: start; }
.cancel-box { width: 100%; }
.cancel-box summary { cursor: pointer; color: var(--bad); font-weight: 600; }
.cancel-box form { margin-top: 12px; max-width: 440px; }
.rating { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rating input { position: absolute; opacity: 0; width: 1px; }
.rating label { font-size: 2rem; color: var(--line); cursor: pointer; line-height: 1; }
.rating input:checked ~ label, .rating label:hover, .rating label:hover ~ label { color: var(--brass); }
.rating input:focus-visible + label { outline: 2px solid var(--brass); }

/* dashboards */
.subnav, .tabs { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.subnav a, .tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover, .tabs a:hover { color: var(--ink); }
.subnav a[aria-current], .tabs a[aria-current] { color: var(--ink); border-color: var(--brass); }
.tabs { border-bottom-color: var(--line-2); }
.tabs a { font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; margin-bottom: 30px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stats > div { background: var(--panel); padding: 20px 22px; display: grid; gap: 2px; }
.stat-n { font-family: var(--serif); font-size: 2.2rem; font-weight: 500; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.stat-l { color: var(--muted); font-size: .88rem; }
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .82rem; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafaf8; }
.slist { padding-left: 1.2em; }
.slist li { margin-bottom: 6px; }
.block-form { margin-top: 32px; }

/* studio form */
.studio-form { display: grid; gap: 22px; max-width: 880px; }
.studio-form fieldset { border: 1px solid var(--line); background: var(--panel); border-radius: var(--r); padding: 26px; margin: 0; display: grid; gap: 16px; }
.studio-form legend { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; padding: 0 8px; }
.hours-edit { display: grid; gap: 8px; }
.hours-row { display: grid; grid-template-columns: 150px 130px auto 130px; gap: 10px; align-items: center; }
.hours-row select { padding: .5em; }
@media (max-width: 560px) { .hours-row { grid-template-columns: 1fr 1fr; } .hours-row .check { grid-column: 1 / -1; } .hours-row > span { display: none; } }
.amen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo-grid figure { margin: 0; }
.photo-grid img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); width: 100%; }
.photo-grid figcaption { display: flex; justify-content: space-between; font-size: .85rem; margin-top: 4px; color: var(--muted); }
.form-foot { display: flex; justify-content: flex-end; }

/* host page & prose pages */
.host-hero { padding: 40px 0 48px; max-width: 780px; }
.host-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; max-width: 15ch; }
.host-points { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.host-points > div { padding: 26px 26px 0 0; }
.host-points > div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.host-points .h3 { margin-top: 0; font-family: var(--serif); font-weight: 500; font-size: 1.4rem; }
.host-points p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .host-points { grid-template-columns: 1fr; } .host-points > div, .host-points > div + div { padding: 24px 0 0; border-left: 0; } }
.prose-page h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose-page p { color: var(--ink-2); }

/* footer */
.site-foot { background: var(--graphite); color: #b9bcbe; padding: 64px 0 28px; margin-top: 88px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid a { display: block; color: #dcdcd8; text-decoration: none; margin-bottom: 8px; font-size: .94rem; }
.foot-grid a:hover { color: #d6b98a; }
.site-foot .muted { color: #9a9fa2; }
.foot-brand { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin-bottom: 10px; color: #fff; }
.foot-h { font-weight: 600; margin-bottom: 12px; color: #fff; font-size: .94rem; }
.foot-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* homepage featured section + admin */
.section-head > div { min-width: 0; }
.section-intro { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
.admin-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.admin-split .h3 { margin-top: 0; }
@media (max-width: 900px) { .admin-split { grid-template-columns: 1fr; } }
.feat-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.feat-row { display: grid; grid-template-columns: 28px 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.feat-pos { font-family: var(--serif); font-size: 1.5rem; color: var(--brass); text-align: center; }
.feat-row img { width: 72px; height: 54px; object-fit: cover; border-radius: var(--r-sm); }
.feat-main { display: grid; gap: 2px; min-width: 0; }
.feat-main a { text-decoration: none; }
.feat-actions { display: flex; gap: 6px; }
.feat-actions form { margin: 0; }
.feat-add { margin-top: 8px; }
.badge-feat { background: var(--brass-soft); color: var(--brass-ink); }
.btn-ghost:disabled { background: transparent; border-color: var(--line); color: #c3c5c1; opacity: 1; }
@media (max-width: 600px) { .feat-row { grid-template-columns: 28px minmax(0, 1fr); } .feat-row img { display: none; } .feat-actions { grid-column: 2; } }

/* booking panel: modes, calendar, availability */
.book-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.book-price-alt { font-size: .92rem; color: var(--ink-2); }
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #cfd1cd; border-radius: var(--r-sm); padding: 3px; gap: 3px; }
.mode-tabs button { font: 600 .9rem/1 var(--sans); padding: .75em; border: 0; border-radius: 3px; background: transparent; color: var(--muted); cursor: pointer; }
.mode-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.mode-pane { display: grid; gap: 14px; }
.mode-pane[hidden] { display: none; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-head strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.cal-nav { width: 34px; height: 34px; border: 1px solid #cfd1cd; border-radius: var(--r-sm); background: var(--panel); font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--ink); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow span { font-size: .72rem; color: var(--muted); text-align: center; padding: 2px 0 4px; }
.cal-day { aspect-ratio: 1; font: 500 .86rem/1 var(--sans); border-radius: var(--r-sm); border: 1px solid #cfd1cd; background: var(--panel); color: var(--ink); cursor: pointer; padding: 0; font-variant-numeric: tabular-nums; }
.cal-day:hover:not(:disabled) { border-color: var(--ink); }
.cal-day.partial { border-color: transparent; background: linear-gradient(135deg, var(--panel) 50%, #e3e4e1 50%); color: var(--muted); cursor: not-allowed; }
.cal-day.booked, .cal-day.closed { border-color: transparent; background: repeating-linear-gradient(135deg, #f1f1ef 0 4px, #e5e6e3 4px 8px); color: #a3a7a5; cursor: not-allowed; }
.cal-day.past, .cal-day.far { border-color: transparent; background: transparent; color: #c0c3c0; cursor: default; }
.cal-day.sel { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 var(--brass); }
.k-part { background: linear-gradient(135deg, var(--panel) 50%, #d9dad7 50%); border: 1px solid #cfd1cd; }
.avail { border-radius: var(--r-sm); padding: 12px 14px; background: var(--line-2); font-size: .92rem; }
.avail-msg { margin: 0; }
.avail[data-state="checking"] { color: var(--muted); }
.avail[data-state="ok"] { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.avail[data-state="fail"] { background: var(--bad-soft); color: var(--bad); }
.avail-sug { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.avail-sug:not(:empty) { margin-top: 10px; }
.avail-sug .btn { background: var(--panel); color: var(--ink); }
.avail-sug .muted { width: 100%; color: var(--ink-2); }
.card-price small + small { margin-left: 2px; }

/* messages & offers */
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brass); color: #fff; font-size: .74rem; font-weight: 700; line-height: 1; vertical-align: 1px; }
.blist-row.is-unread { border-color: var(--brass); }
.blist-row.is-unread strong { font-weight: 700; }
.msg-preview { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head { margin-bottom: 18px; }
.chat-title { margin: 6px 0 2px; }
.chat-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .chat-grid { grid-template-columns: 1fr; } }
.chat-main { display: grid; gap: 10px; }
.thread { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; height: min(62vh, 640px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.thread-empty { margin: auto; text-align: center; max-width: 40ch; }
.msg { display: flex; flex-direction: column; max-width: 78%; }
.msg-me { align-self: flex-end; align-items: flex-end; }
.msg-them { align-self: flex-start; align-items: flex-start; }
.msg-system { align-self: center; max-width: 90%; }
.msg-bubble { border-radius: 12px; padding: 10px 14px; background: var(--line-2); color: var(--ink); overflow-wrap: anywhere; }
.msg-me .msg-bubble { background: var(--ink); color: #f3f3f1; border-bottom-right-radius: 4px; }
.msg-them .msg-bubble { border-bottom-left-radius: 4px; }
.msg-text { margin: 0; }
.msg-bubble .offer + .msg-text { margin-top: 10px; }
.msg-meta { margin: 4px 2px 0; font-size: .76rem; color: var(--muted); }
.msg-system .msg-system, p.msg-system { margin: 0; text-align: center; font-size: .84rem; color: var(--muted); }
p.msg-system time { margin-left: 4px; color: #a3a7a5; }
.offer { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: var(--r-sm); padding: 12px 14px; min-width: min(320px, 70vw); }
.offer-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.offer-from { font-weight: 600; color: var(--ink-2); }
.offer-price { margin: 6px 0 2px; font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
.offer-price span { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.offer-when { margin: 0 0 4px; font-weight: 500; }
.offer-total { margin: 0; font-size: .82rem; color: var(--muted); }
.offer-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.offer-actions:empty { display: none; }
.offer-actions form { margin: 0; }
.offer-accepted { border-left-color: var(--ok); }
.offer-booked { border-left-color: var(--ok); background: var(--ok-soft); }
.offer-declined, .offer-expired, .offer-withdrawn, .offer-countered { border-left-color: #c4c6c2; opacity: .75; }
.offer-expired .offer-price, .offer-declined .offer-price, .offer-withdrawn .offer-price, .offer-countered .offer-price { text-decoration: line-through; text-decoration-thickness: 1px; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.composer textarea { resize: none; min-height: 48px; }
.offer-panel { position: sticky; top: 92px; }
.offer-form .h3 { margin: 0; }
.message-host { margin-top: 18px; }
.message-host .h3 { margin: 0; }
[hidden] { display: none !important; }
.msg-me .msg-bubble:has(.offer) { background: var(--line-2); color: var(--ink); }

/* admin SEO */
.seo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
@media (max-width: 1000px) { .seo-grid { grid-template-columns: 1fr; } }
.seo-grid .studio-form { max-width: none; }
.seo-page { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.seo-page .h3 { margin: 0; }
.field .count { font-size: .76rem; min-height: 1em; }
.seo-preview { position: sticky; top: 92px; display: grid; gap: 12px; }
.seo-preview .h3 { margin: 10px 0 0; font-size: .95rem; }
.serp { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; font-family: Arial, sans-serif; }
.serp-url { margin: 0 0 4px; font-size: .82rem; color: #202124; }
.serp-title { margin: 0 0 4px; font-size: 1.2rem; line-height: 1.3; color: #1a0dab; }
.serp-desc { margin: 0; font-size: .86rem; line-height: 1.5; color: #4d5156; }
.share-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.share-card img, .og-studio { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; display: block; background: var(--graphite); border-radius: var(--r-sm); }
.share-card img { border-radius: 0; }
.share-meta { padding: 10px 14px 12px; background: #f0f2f5; font-family: Arial, sans-serif; }
.share-host { margin: 0; font-size: .72rem; color: #65676b; letter-spacing: .02em; }
.share-title { margin: 2px 0 0; font-weight: 700; font-size: .95rem; color: #050505; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- maps (Leaflet + OpenStreetMap) ---------- */
.map { position: relative; z-index: 0; border: 1px solid var(--line); border-radius: var(--r); background: #e9e9e6; overflow: hidden; }
.map .leaflet-tile-pane { filter: grayscale(.85) contrast(.95) brightness(1.03); }
.map .leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.8); }
.map .leaflet-control-zoom a { color: var(--ink); }
.map-area { height: 280px; margin: .4rem 0 1rem; }
.map-pick { height: 320px; margin-top: 6px; cursor: crosshair; }
.map-results { height: 420px; margin-bottom: 18px; }
.price-pin span { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; padding: 4px 9px; border-radius: 999px; background: var(--panel); color: var(--ink); font: 600 .8rem/1.2 var(--sans); border: 1px solid var(--graphite); box-shadow: 0 2px 6px rgba(29,33,36,.2); font-variant-numeric: tabular-nums; }
.price-pin:hover span, .leaflet-marker-icon.price-pin:focus span { background: var(--graphite); color: #fff; }
.leaflet-popup-content-wrapper { border-radius: var(--r); }
.leaflet-popup-content { margin: 10px; }
.pop { display: grid; gap: 2px; text-decoration: none; color: var(--ink); font-family: var(--sans); }
.pop img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r-sm); margin-bottom: 6px; }
.pop span { color: var(--muted); font-size: .82rem; }
.pop .pop-price { color: var(--ink); font-weight: 600; }

/* search: list / map toggle, split view, more filters */
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.view-toggle a { padding: 7px 16px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .92rem; }
.view-toggle a + a { border-left: 1px solid var(--line); }
.view-toggle a[aria-current] { background: var(--graphite); color: #fff; }
.more-filters { flex: 1 1 100%; border-top: 1px solid var(--line-2); padding-top: 10px; }
.more-filters summary { cursor: pointer; font-weight: 500; color: var(--ink-2); font-size: .94rem; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 12px 0; }
.amen-filter { border: 0; padding: 0; margin: 0; }
.amen-filter legend { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.results-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.results-split .map-results { order: 2; position: sticky; top: 16px; height: calc(100vh - 32px); max-height: 760px; margin: 0; }
.results-split .cards { grid-template-columns: 1fr 1fr; }
@media (max-width: 980px) {
  .results-split { grid-template-columns: 1fr; }
  .results-split .map-results { order: 0; position: relative; top: 0; height: 380px; }
}
@media (max-width: 600px) { .results-split .cards { grid-template-columns: 1fr; } }

/* host form: cancellation policy */
.policy-pick { display: grid; gap: 10px; }
.policy-opt { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); cursor: pointer; }
.policy-opt input { width: auto; margin-top: 4px; accent-color: var(--ink); }
.policy-opt span { display: grid; gap: 2px; }
.policy-opt small { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.policy-opt:has(input:checked) { border-color: var(--graphite); box-shadow: inset 3px 0 0 var(--brass); }
.policy-list { padding-left: 1.1rem; display: grid; gap: 8px; font-size: .92rem; }

/* daily range on the calendar */
.cal-grid { touch-action: none; user-select: none; }
.cal-day.sel-pre { background: var(--brass-soft); border-color: var(--brass); }
.cal-day.sel-start, .cal-day.sel-end { box-shadow: inset 0 -3px 0 var(--brass), 0 0 0 2px var(--brass); }
.cal-hint { margin: 8px 0 0; }

/* ---------- admin: system & users ---------- */
.sys-tabs { margin-top: -14px; }
.sys-form { max-width: 820px; }
.status-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
@media (max-width: 640px) { .mode-pick { grid-template-columns: 1fr; } }
code { font-size: .85em; background: var(--line-2); padding: 1px 5px; border-radius: 3px; word-break: break-all; }
.role-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.role-tabs a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); text-decoration: none; color: var(--ink-2); font-size: .9rem; }
.role-tabs a span { color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.role-tabs a[aria-current] { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.role-tabs a[aria-current] span { color: #cfd2d4; }
.perm-help { margin: 14px 0 18px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.perm-help summary { cursor: pointer; font-weight: 500; }
.perm-help dl { display: grid; gap: 8px; margin: 12px 0 0; }
.perm-help dl div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; font-size: .92rem; }
.perm-help dt { font-weight: 600; }
.perm-help dd { margin: 0; color: var(--ink-2); }
.user-list { display: grid; gap: 8px; }
.user-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.user-id { display: grid; gap: 2px; min-width: 0; }
.user-id .small { overflow-wrap: anywhere; }
.user-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.perm-grid { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; border: 0; border-top: 1px solid var(--line-2); padding: 10px 0 0; margin: 0; }
.perm-grid legend { padding: 0; margin-bottom: 4px; width: 100%; }
.perm-grid[hidden] { display: none; }
.perm-read { grid-column: 1 / -1; margin: 0; }
@media (max-width: 640px) { .user-row { grid-template-columns: 1fr; } }

/* ---------- add-ons ---------- */
.addon-rows { display: grid; gap: 12px; margin-bottom: 10px; }
.addon-row { display: grid; grid-template-columns: 2fr 1fr 1fr .7fr; gap: 8px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--stone); }
.addon-row .addon-desc { grid-column: 1 / -1; }
@media (max-width: 640px) { .addon-row { grid-template-columns: 1fr 1fr; } .addon-row label:first-of-type { grid-column: 1 / -1; } }
.extras { border: 0; padding: 0; margin: 4px 0 12px; display: grid; gap: 8px; }
.extras legend { font-size: .82rem; color: var(--muted); margin-bottom: 4px; padding: 0; }
.extra { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--panel); }
.extra-main { display: flex; gap: 8px; align-items: flex-start; flex: 1; }
.extra-main > span, label.extra-main:not(.check) { display: grid; gap: 1px; }
.extra select { width: auto; }
.addon-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.addon-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; background: var(--panel); }
.addon-list li > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- request to book ---------- */
.request-box { margin-top: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.request-box > summary { cursor: pointer; display: grid; gap: 2px; list-style: none; }
.request-box > summary::-webkit-details-marker { display: none; }
.request-box > summary strong::after { content: " ↓"; color: var(--brass); }
.request-box[open] > summary strong::after { content: " ↑"; }
.request-form { margin-top: 12px; }
.req-opt { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; margin: 0; display: grid; gap: 8px; }
.req-opt[hidden] { display: none; }
.req-opt legend { font-weight: 600; font-size: .9rem; padding: 0 4px; }
.req-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.req-row [hidden] { display: none; }
.req-options { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.req-options li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(255,255,255,.6); color: var(--ink); }
.req-options li > div { display: grid; gap: 1px; }
.req-options li.chosen { border-color: var(--brass); box-shadow: inset 3px 0 0 var(--brass); }
.req-decline summary { cursor: pointer; font-size: .9rem; color: var(--ink-2); }
.req-decline form { margin-top: 8px; }
.req-alert { padding: 14px 18px; border: 1px solid var(--brass); background: var(--brass-soft); border-radius: var(--r); margin: 0 0 24px; }
.req-alert h2 { margin-top: 0; }
.req-alert ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 4px; }
