:root {
  --bg: #f6f3ee;
  --paper: #ffffff;
  --ink: #1d1b19;
  --muted: #77716a;
  --line: #e4ded5;
  --accent: #8a6a46;
  --accent-ink: #ffffff;
  --chip: #efe9e0;
  --shadow: 0 1px 2px rgba(30, 25, 20, .06), 0 8px 28px rgba(30, 25, 20, .07);
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(246, 243, 238, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.bar-in { max-width: 1320px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand .logo { height: 22px; width: auto; display: block; }
.brand span { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: .2px; padding-left: 14px;
  border-left: 1px solid currentColor; line-height: 1; padding-top: 2px; padding-bottom: 2px; opacity: .9; }
.brand { flex: none; }
.nav { display: flex; flex: none; gap: 6px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.nav a.on, .nav a:hover { background: var(--chip); color: var(--ink); }

/* hero */
.hero { max-width: 1320px; margin: 22px auto 0; padding: 0 24px; }
.hero-in { position: relative; border-radius: 22px; overflow: hidden; min-height: 380px; display: flex; align-items: flex-end;
  background: #2b2621 center/cover no-repeat; box-shadow: var(--shadow); }
.hero-in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.62)); }
.hero-txt { position: relative; z-index: 1; padding: 36px 40px; color: #fff; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: 52px; line-height: 1.05; margin: 0 0 10px; }
.hero p { margin: 0; font-size: 17px; opacity: .92; }
.stats { display: flex; gap: 26px; margin-top: 18px; }
.stats div { font-size: 13px; opacity: .85; text-transform: uppercase; letter-spacing: 1.2px; }
.stats b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: 0; text-transform: none; opacity: 1; }

/* the landing hero: full width, few words, the photo speaks */
.home .bar { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease; }
.home .bar .brand, .home .bar .nav a { color: #fff; }
.home .bar .nav a.on, .home .bar .nav a:hover { background: rgba(255,255,255,.16); color: #fff; }
.home .bar.solid { background: rgba(246,243,238,.92); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.home .bar.solid .brand, .home .bar.solid .nav a { color: var(--ink); }
.home .bar.solid .nav a { color: var(--muted); }
.home .bar.solid .nav a.on, .home .bar.solid .nav a:hover { background: var(--chip); color: var(--ink); }
.hero2 { position: relative; height: 92vh; min-height: 560px; max-height: 1100px; overflow: hidden; background: #2a2622; color: #fff; }
.slides, .slide { position: absolute; inset: 0; }
.slide { background: center/cover no-repeat; opacity: 0; transform: scale(1.06); transition: opacity 1.8s ease, transform 9s ease-out; }
.slide.on { opacity: 1; transform: scale(1); }
.hero2-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(20,16,12,.62) 0%, rgba(20,16,12,.36) 34%, rgba(20,16,12,.06) 62%, rgba(20,16,12,0) 75%),
  linear-gradient(180deg, rgba(20,16,12,.42) 0%, rgba(20,16,12,0) 20%, rgba(20,16,12,0) 62%, rgba(20,16,12,.48) 100%); }
.hero2 h1, .eyebrow, .link-cta { text-shadow: 0 1px 24px rgba(0,0,0,.25); }
.hero2-txt { position: absolute; left: max(24px, calc((100vw - 1320px) / 2 + 24px)); bottom: 15vh; max-width: 720px; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; opacity: .85; margin-bottom: 22px; }
.hero2 h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6.2vw, 92px); line-height: 1.02; letter-spacing: -.02em; margin: 0; }
.hero2-cta { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.link-cta { color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: .02em; padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.7); transition: border-color .2s ease; }
.link-cta span { display: inline-block; margin-left: 8px; transition: transform .25s ease; }
.link-cta:hover span { transform: translateX(4px); }
.link-cta.quiet { border-bottom-color: rgba(255,255,255,.3); opacity: .85; }
.hero2-foot { position: absolute; right: max(24px, calc((100vw - 1320px) / 2 + 24px)); bottom: 34px; display: flex; align-items: center; gap: 18px;
  font-size: 12px; letter-spacing: .08em; opacity: .85; }
.hero2-foot a { color: #fff; }
.ticks { display: flex; gap: 6px; }
.ticks i { width: 22px; height: 2px; background: rgba(255,255,255,.35); border-radius: 2px; transition: background .4s ease; }
.ticks i.on { background: #fff; }
.intro { max-width: 1320px; margin: 70px auto 0; padding: 0 24px; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.intro h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 40px; letter-spacing: -.01em; }
.intro p { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.home .filters { margin-top: 22px; }

/* filters */
.filters { max-width: 1320px; margin: 26px auto 0; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 14px; font-size: 14px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sel, .inp { border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 8px 12px; font: inherit; }
.inp { min-width: 200px; }
/* one arrow for every dropdown, with room to breathe */
select.sel, label.f select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2377716a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
select.sel:hover, label.f select:hover { border-color: #cfc6b9; }
select.sel:focus-visible, label.f select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.grow { flex: 1; }
.count { color: var(--muted); font-size: 14px; }

/* grid */
.grid { max-width: 1320px; margin: 18px auto 60px; padding: 0 24px; display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease; text-decoration: none; display: flex; flex-direction: column; }
@media (hover: hover) { .card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(30,25,20,.06), 0 16px 40px rgba(30,25,20,.12); } }
.card-img { aspect-ratio: 4/3; background: #ddd center/cover no-repeat; position: relative; }
.badge { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 3px 10px;
  font-size: 12px; font-weight: 600; }
.badge.new { left: auto; right: 12px; background: var(--accent); color: #fff; }
.card-b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.dots { display: flex; gap: 5px; flex-wrap: wrap; }
.dot { width: 22px; height: 22px; border-radius: 50%; background: #ccc center/cover; border: 1px solid rgba(0,0,0,.08); }
.meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.meta b { color: var(--ink); font-weight: 600; }

/* series panel */
.panel-bg { position: fixed; inset: 0; background: rgba(20,17,14,.45); z-index: 40; display: none; }
/* a closed panel is hidden, not only moved off screen: its shadow showed as a white haze on the right edge */
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(1040px, 100%); background: var(--bg); z-index: 41; overflow-y: auto;
  overscroll-behavior: contain; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
.panel.open { transform: none; visibility: visible; transition: transform .25s ease; box-shadow: -10px 0 40px rgba(0,0,0,.15); }
.panel-bg.open { display: block; }
.panel-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 24px;
  background: var(--bg); border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 28px; }
.x { margin-left: auto; border: 0; background: var(--chip); width: 38px; height: 38px; border-radius: 50%; font-size: 20px; }
.panel-body { padding: 20px 24px 50px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 160px; gap: 10px; }
.gallery div { border-radius: 12px; background: #ddd center/cover; cursor: zoom-in; }
.gallery div:first-child { grid-row: span 2; }
.tag { color: var(--muted); font-size: 14px; }
h4 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 26px 0 10px; }
.sw-row { display: flex; gap: 12px; flex-wrap: wrap; }
.sw { width: 92px; text-align: center; font-size: 12.5px; background: none; border: 0; padding: 0; }
.sw i { display: block; width: 92px; height: 92px; border-radius: 12px; background: #ccc center/cover; margin-bottom: 6px;
  border: 2px solid transparent; box-shadow: var(--shadow); }
.sw.on i { border-color: var(--ink); }
.sw-big { margin-top: 14px; display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.sw-big .pic { border-radius: 12px; background: #ccc center/cover; aspect-ratio: 1; box-shadow: var(--shadow); }
.sw-big p { margin: 0 0 8px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn { border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn.ghost { background: transparent; color: var(--ink); }
table.t { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); font-size: 14px; }
.t th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted);
  padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbfaf8; }
.t td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.t tr:last-child td { border-bottom: 0; }
.t td.n { text-align: right; font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: 13px; margin-top: 8px; }
.lightbox { position: fixed; inset: 0; background: rgba(10,9,8,.92); z-index: 60; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 6px; }

footer { max-width: 1320px; margin: 0 auto; padding: 26px 24px 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

/* room page */
.room { display: grid; grid-template-columns: minmax(0, 1fr) 420px; height: calc(100vh - 63px); }
.stage { position: relative; background: #e9e5df; }
.stage canvas { display: block; width: 100%; height: 100%; }
.stage .hint { position: absolute; left: 16px; bottom: 14px; background: rgba(255,255,255,.85); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; color: var(--muted); }
.hint .touch { display: none; }
@media (hover: none) and (pointer: coarse) { .hint .mouse { display: none; } .hint .touch { display: inline; } }
.views { position: absolute; left: 16px; top: 14px; display: flex; gap: 6px; }
.side { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--paper); border-left: 1px solid var(--line); }
.side-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px 12px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; flex: 1; background: var(--chip); border-radius: 12px; padding: 4px; }
.tabs button { flex: 1; border: 0; background: transparent; border-radius: 9px; padding: 9px 0; font-weight: 600; color: var(--muted); }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.pro { display: flex; flex: none; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.pro input { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line); position: relative; margin: 0; cursor: pointer; transition: background .15s; }
.pro input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.pro input:checked { background: var(--ink); }
.pro input:checked::after { left: 16px; }
.side-body { flex: 1; overflow-y: auto; padding: 16px 18px 24px; }
.cur { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--bg); border-radius: 12px; }
.cur i { width: 54px; height: 54px; border-radius: 9px; background: #ccc center/cover; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.cur b { display: block; font-family: var(--serif); font-weight: 500; font-size: 18px; }
.cur span { font-size: 13px; color: var(--muted); }
.lbl { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.lbl span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); font-size: 13px; }
.chips.small .chip { padding: 6px 12px; font-size: 13px; }
.chips.one { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chips.one::-webkit-scrollbar { display: none; }
.chips.one .chip { flex: none; padding: 5px 11px; }
.strip { display: flex; gap: 10px; overflow-x: auto; padding: 10px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.scard { flex: none; width: 104px; border: 0; background: none; padding: 0; text-align: left; scroll-snap-align: start; }
.scard i { display: block; width: 104px; height: 78px; border-radius: 10px; background: #ccc center/cover; border: 2px solid transparent; }
.scard.on i { border-color: var(--ink); }
.scard b { display: block; font-size: 13px; font-weight: 600; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard span { font-size: 11.5px; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 44px; height: 44px; border-radius: 10px; border: 2px solid transparent; background: #ccc center/cover; padding: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.swatches button.on { border-color: var(--ink); }
.grouts { display: flex; gap: 10px; }
.grouts button { width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.grouts button.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
details.more { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 4px; }
details.more summary { cursor: pointer; list-style: none; padding: 12px 0 4px; font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-size: 18px; color: var(--muted); }
details.more[open] summary::after { content: "−"; }
.seg.wide { display: flex; }
.seg.wide button { flex: 1; }
.step { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.step div { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.step button { border: 0; background: var(--bg); width: 38px; height: 38px; font-size: 18px; }
.step input { width: 64px; border: 0; text-align: right; font: inherit; font-size: 15px; font-weight: 600; -moz-appearance: textfield; }
.step input::-webkit-outer-spin-button, .step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step em { font-style: normal; color: var(--muted); padding: 0 8px 0 4px; font-size: 13px; }
.sumbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--paper); }
.sumbar b { display: block; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; }
.sumbar span { font-size: 12.5px; color: var(--muted); }
.sheet-bg { position: fixed; inset: 0; background: rgba(20,17,14,.4); z-index: 50; display: none; }
.sheet-bg.open { display: block; }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--bg); z-index: 51; overflow-y: auto;
  overscroll-behavior: contain; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
.sheet.open { transform: none; visibility: visible; transition: transform .25s ease; box-shadow: -10px 0 40px rgba(0,0,0,.15); }
.sheet-head { position: sticky; top: 0; display: flex; align-items: center; padding: 14px 20px; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 1; }
.sheet-head h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 24px; }
.sheet-body { padding: 16px 20px 40px; }
.sheet-body #list > div { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 12px; }
body.pro-mode .sheet-body #list .line { font-size: 13.5px; }
.blk { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 14px; }
.blk h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 500; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
label.f input, label.f select { border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; font: inherit; font-size: 14px; color: var(--ink); background-color: #fff; width: 100%; }
label.f select { padding-right: 28px; background-position: right 10px center; text-overflow: ellipsis; }
.mini-sw { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.mini-sw button { width: 38px; height: 38px; border-radius: 9px; border: 2px solid transparent; background: #ccc center/cover; padding: 0; }
.mini-sw button.on { border-color: var(--ink); }
.picked { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.picked b { color: var(--ink); }
.res { font-size: 13.5px; }
.res .line { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.res .line:last-child { border-bottom: 0; }
.res .line span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.res .big { font-size: 16px; }
.total { background: var(--ink); color: #fff; }
.total .line { border-color: rgba(255,255,255,.18); }
.total h3 { color: #fff; }
.seg { display: inline-flex; background: var(--chip); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 5px 11px; font-size: 13px; }
.seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.est { font-size: 11.5px; color: var(--muted); }
.total .est { color: rgba(255,255,255,.65); }

@media (max-width: 900px) {
  .room { grid-template-columns: minmax(0, 1fr); height: auto; }
  .stage { height: 58vh; }
  .hero h1 { font-size: 30px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .sw-big { grid-template-columns: 1fr; }
  .nav a { padding: 7px 10px; font-size: 14px; }
  .bar-in { padding: 10px 16px; gap: 10px; }
  .brand .long { display: none; }
  .brand .logo { height: 19px; }
  .nav .long { display: none; }
  .hero, .filters, .grid, .intro { padding: 0 16px; }
  .hero2 { height: 78vh; min-height: 480px; }
  .hero2-txt { left: 16px; right: 16px; bottom: 90px; }
  .hero2-cta { gap: 22px; }
  .eyebrow { letter-spacing: .18em; font-size: 11px; }
  .hero2-shade { background: linear-gradient(180deg, rgba(20,16,12,.45) 0%, rgba(20,16,12,.1) 25%, rgba(20,16,12,.25) 50%, rgba(20,16,12,.7) 100%); }
  .hero2-foot { left: 16px; right: auto; bottom: 26px; }
  .intro { margin-top: 44px; }
  .intro h2 { font-size: 30px; }
  .hero-in { min-height: 340px; }
  .hero-txt { padding: 22px 20px; }
  .hero p { font-size: 15px; }
  .stats { flex-wrap: wrap; gap: 14px 20px; }
  .stats b { font-size: 24px; }
  .inp { min-width: 0; flex: 1; }
  .panel-body, .panel-head { padding-left: 16px; padding-right: 16px; }
  .t { font-size: 12.5px; }
  .t th, .t td { padding: 7px 6px; }
  .side { min-height: 70vh; }
  .sumbar { position: sticky; bottom: 0; z-index: 5; }
  /* a phone: 16 px in every box, or the iPhone zooms in on a tap; buttons a finger can hit */
  .sel, .inp, .step input, label.f input, label.f select { font-size: 16px; }
  .seg button { padding: 9px 11px; }
  .chip, .chips.one .chip { padding: 8px 14px; }
  /* the filters: looks in one line to swipe, search across, then the dropdowns two by two */
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .filters .chips { grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .filters .chips::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; }
  .filters .inp { grid-column: 1 / -1; order: 1; }
  .filters .sel { order: 2; min-width: 0; width: 100%; padding-left: 12px; text-overflow: ellipsis; }
  .filters .grow { display: none; }
  .filters .count { order: 3; align-self: center; padding-left: 4px; }
  .sw-row { display: grid; grid-template-columns: repeat(3, 1fr); }
  .sw, .sw i { width: auto; }
  .sw i { height: auto; aspect-ratio: 1; }
}
@media (max-width: 640px) {
  /* the formats table as one card per variant: the format and its 3D link on top, the facts below */
  table.t, .t tbody { display: block; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
  .t thead { display: none; }
  .t tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; background: var(--paper); border-radius: 12px;
    box-shadow: var(--shadow); padding: 12px 14px; margin-bottom: 10px; }
  .t td, .t td.n { padding: 0; border: 0; text-align: left; font-size: 13.5px; overflow-wrap: anywhere; }
  .t td::before { content: attr(data-l); display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
  .t td.fmt { grid-column: 1 / 4; font-weight: 600; font-size: 15px; }
  .t td.go { grid-column: 4; grid-row: 1; text-align: right; }
  .t td.go a { display: inline-block; padding: 4px 0 4px 12px; font-weight: 600; }
}
@media (max-width: 400px) {
  .bar-in { padding: 10px 12px; gap: 8px; }
  .brand .logo { height: 16px; }
  .nav { gap: 2px; }
  .nav a { padding: 7px 9px; font-size: 13.5px; }
}
@media (max-width: 340px) {
  .brand .logo { height: 14px; }
  .nav a { padding: 6px 7px; font-size: 12.5px; }
}
@media print {
  .bar, .stage, .no-print, .btns, .room, .sheet-bg { display: none !important; }
  .sheet { position: static; transform: none; width: auto; box-shadow: none; overflow: visible; visibility: visible; }
  .sheet-body #list > div { box-shadow: none; border: 1px solid #ccc; }
  .blk { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .total { background: #fff; color: #000; }
  .total h3, .total .est { color: #000; }
}
