/* =========================================================
   Swades — the rooms: a gallery wall you can walk up to
   ========================================================= */
html, body.app { height: 100%; overflow: hidden; overscroll-behavior: none; }
body.app { --top: 68px; --bot: 62px; }

/* ---------- top bar ---------- */
.bar-top {
  position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 clamp(14px, 2.4vw, 28px); border-bottom: var(--line); background: var(--cream);
}
.bar-top .wordmark { justify-self: start; }
.room-title { text-align: center; display: grid; justify-items: center; line-height: 1.1; min-width: 0; }
.room-title h1 { font-size: 24px; font-weight: 380; font-style: italic; letter-spacing: -.01em; }
.room-title .mono-sm { opacity: .8; }
.room-sub { font-size: 12.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 44vw; }
.bar-actions { justify-self: end; display: flex; gap: 8px; }

/* ---------- stage + canvas ---------- */
.stage {
  position: fixed; left: 0; right: 0; top: var(--top); bottom: var(--bot);
  overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
  background:
    radial-gradient(ellipse at 50% 38%, color-mix(in srgb, var(--paper) 70%, transparent), transparent 70%),
    var(--cream);
}
.stage.is-dragging { cursor: grabbing; }
.canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; --inv: 1; }
.canvas.is-gliding { transition: transform .5s var(--ease); }
.loading { position: absolute; inset: 0; display: grid; place-items: center; }

/* an artwork hung on the wall: outer frame line, inner mat line */
.art { position: absolute; background: var(--paper); }
.art::before, .art::after { content: ""; position: absolute; pointer-events: none; }
.art::before { inset: -26px; border: calc(1.6px * var(--inv)) solid var(--rust); }
.art::after { inset: -14px; border: calc(1px * var(--inv)) solid var(--rust-3); }
.art-clip { position: absolute; inset: 0; overflow: hidden; }
.art-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; -webkit-user-drag: none; pointer-events: none; }
.art.is-waiting .art-img, .art.is-waiting .fig { opacity: 0; }
.art.is-drawing .art-img { animation: inkIn 1.6s var(--ease-io) both; }
.art.is-drawing .fig { animation: inkIn 1.3s var(--ease-io) both; }
.art.is-drawing .fig:nth-child(2) { animation-delay: .18s; }
.art.is-drawing .fig:nth-child(3) { animation-delay: .36s; }
.art.is-drawing .fig:nth-child(4) { animation-delay: .54s; }
@keyframes inkIn {
  from { clip-path: inset(0 100% 0 0); opacity: .2; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}
.art-label { position: absolute; left: 0; top: calc(100% + 40px); white-space: nowrap; font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rust); }
.art-label b { font-family: var(--f-display); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }

/* figures in The Human's portrait */
.portrait { background: var(--paper); }
.portrait .floor { position: absolute; left: 6%; right: 6%; border-top: calc(1px * var(--inv)) solid var(--rust-3); }
.fig { position: absolute; }
.fig img { width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }

/* ---------- hotspots ---------- */
.spot {
  position: absolute; display: block; border-radius: calc(4px * var(--inv));
  outline: none; cursor: pointer; background: transparent;
}
/* a small ring marks where to tap (touch screens, or after pressing R) */
.spot::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: calc(11px * var(--inv)); height: calc(11px * var(--inv)); margin: calc(-5.5px * var(--inv)) 0 0 calc(-5.5px * var(--inv));
  border-radius: 50%; border: calc(1.5px * var(--inv)) solid var(--rust); background: color-mix(in srgb, var(--cream) 70%, transparent);
  opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s var(--ease);
}
.stage.show-dots .spot::before, .stage.is-touch .spot::before { opacity: .9; transform: scale(1); }
.stage.is-touch .spot::before { animation: breathe 2.8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.25); opacity: .55; } }

/* hover: a spotlight on the object, the rest of the room steps back */
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: calc(1.6px * var(--inv)) solid transparent;
  transition: border-color .18s, box-shadow .3s var(--ease);
}
@media (hover: hover) {
  .stage:not(.is-dragging) .spot:hover::after,
  .spot.is-hot::after { border-color: var(--rust); box-shadow: 0 0 0 200vmax color-mix(in srgb, var(--cream) 52%, transparent); }
  .stage:not(.is-dragging) .spot:hover::before { opacity: 0; }
}
.spot:focus-visible::after, .spot.is-active::after { border-color: var(--rust); box-shadow: 0 0 0 200vmax color-mix(in srgb, var(--cream) 52%, transparent); }
.spot.is-active::after { border-width: calc(2.4px * var(--inv)); }

/* owned: a small solid tick that stays */
.spot.is-owned::before {
  opacity: 1; transform: none; animation: none;
  left: auto; top: auto; right: calc(-6px * var(--inv)); top: calc(-6px * var(--inv)); margin: 0;
  width: calc(18px * var(--inv)); height: calc(18px * var(--inv)); border: 0; background: var(--rust)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23EEE9E4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* hover caption, in screen space so it never scales */
.cap {
  position: fixed; z-index: 25; pointer-events: none; display: grid; gap: 2px; padding: 8px 12px 9px;
  background: var(--rust); color: var(--cream); border-radius: 2px; max-width: 280px;
  opacity: 0; transform: translateY(4px); transition: opacity .16s, transform .2s var(--ease);
}
.cap.is-on { opacity: 1; transform: none; }
.cap b { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 17px; line-height: 1.15; }
.cap span { opacity: .85; }

/* ---------- zoom ---------- */
.zoom { position: fixed; right: calc(clamp(12px, 2vw, 24px) + 12px); bottom: calc(var(--bot) + 96px); z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.zoom-level { text-align: center; padding-top: 2px; }
.zoom .icon-btn { width: 40px; height: 40px; }

/* ---------- rooms bar ---------- */
.rooms-bar { position: fixed; inset: auto 0 0 0; height: var(--bot); z-index: 30; border-top: var(--line); background: var(--cream); }
.rooms-bar ol { height: 100%; display: flex; justify-content: center; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.rooms-bar ol::-webkit-scrollbar { display: none; }
.rooms-bar li { display: flex; }
.room-tab {
  display: flex; align-items: center; gap: 10px; padding: 0 clamp(12px, 1.8vw, 26px); border-left: var(--hair);
  white-space: nowrap; font-size: 14.5px; transition: background-color .2s, color .2s; position: relative; text-decoration: none;
}
.rooms-bar li:last-child .room-tab { border-right: var(--hair); }
.room-tab .rn { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; opacity: .75; }
.room-tab .rname { font-family: var(--f-display); font-size: 17px; font-weight: 380; }
.room-tab .rcount { font-family: var(--f-mono); font-size: 10px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; display: none; place-items: center; background: var(--rust); color: var(--cream); }
.room-tab .rcount.has { display: inline-grid; }
.room-tab[aria-current="page"] { background: var(--rust); color: var(--cream); }
.room-tab[aria-current="page"] .rcount { background: var(--cream); color: var(--rust); }
@media (hover: hover) {
  .room-tab:not([aria-current="page"]):hover { background: var(--rust-4); }
  .room-tab:not([aria-current="page"]):hover .rname { font-style: italic; }
}
.room-tab:focus-visible { outline-offset: -4px; }

/* ---------- the jhola (cart) ---------- */
.jhola {
  position: fixed; right: clamp(12px, 2vw, 24px); bottom: calc(var(--bot) + 14px); z-index: 22;
  width: 64px; height: 64px; display: grid; place-items: center; border: var(--line); border-radius: 50%;
  background: var(--cream); color: var(--rust); transition: background-color .2s, color .2s, transform .25s var(--ease);
}
.jhola svg { width: 34px; height: 34px; transition: transform .35s var(--ease); }
.jhola-count {
  position: absolute; top: -4px; right: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  display: grid; place-items: center; background: var(--rust); color: var(--cream); border: 1.5px solid var(--cream);
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
}
@media (hover: hover) {
  .jhola:hover { background: var(--rust); color: var(--cream); }
  .jhola:hover svg { transform: translateY(-2px) rotate(-6deg); }
  .jhola:hover .jhola-count { background: var(--cream); color: var(--rust); border-color: var(--rust); }
}
.jhola:focus-visible { background: var(--rust); color: var(--cream); }
.jhola.bump { animation: bump .5s var(--ease); }
.jhola.bump .jhola-count { animation: pop .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.12) rotate(-5deg); } 60% { transform: scale(.97) rotate(3deg); } }
@keyframes pop { 40% { transform: scale(1.5); } }

/* ---------- panels and drawers ---------- */
.panel { position: fixed; z-index: 28; background: var(--cream); border: var(--line); border-radius: var(--r); }
.panel-h, .drawer-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.household { left: clamp(12px, 2vw, 24px); top: calc(var(--top) + 14px); width: 340px; padding: 16px 18px 18px; display: grid; gap: 14px; }
.hh-intro { font-size: 14px; line-height: 1.45; }
.hh-row { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 10px; }
.hh-label { font-size: 13.5px; font-weight: 500; }
.seg { display: flex; border: var(--line); border-radius: var(--r); overflow: hidden; }
.seg button { flex: 1; height: 34px; padding: 0 8px; font-size: 13px; border-left: var(--hair); transition: background-color .18s, color .18s; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--rust); color: var(--cream); }
@media (hover: hover) { .seg button:not([aria-pressed="true"]):hover { background: var(--rust-4); } }
.seg button:focus-visible { outline-offset: -3px; }
.hh-switch { cursor: pointer; }
.hh-switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 44px; height: 24px; border: var(--line); border-radius: 12px; position: relative; transition: background-color .2s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--rust); transition: transform .25s var(--ease), background-color .2s; }
.hh-switch input:checked + .switch { background: var(--rust); }
.hh-switch input:checked + .switch::after { transform: translateX(20px); background: var(--cream); }
.hh-switch input:focus-visible + .switch { outline: 1.5px solid var(--rust); outline-offset: 3px; }
@media (hover: hover) { .hh-switch:hover .switch { background: var(--rust-4); } .hh-switch:hover input:checked + .switch { background: var(--rust); } }
.hh-done { justify-self: end; }

.drawer {
  position: fixed; top: var(--top); bottom: var(--bot); right: 0; z-index: 35; width: min(420px, 100vw);
  background: var(--cream); border-left: var(--line); display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .38s var(--ease);
}
.drawer.is-open { transform: none; }
.drawer-h { padding: 18px 20px 14px; border-bottom: var(--hair); }
.drawer-h h2 { font-size: 28px; font-weight: 360; font-style: italic; margin-top: 2px; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 0 24px; }

.dir-tools { padding: 12px 20px; border-bottom: var(--hair); display: grid; gap: 10px; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: var(--line); border-radius: var(--r); transition: background-color .2s; }
.search:focus-within { background: var(--paper); }
.search svg { width: 16px; height: 16px; flex: none; }
.search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 14.5px; min-width: 0; }
.search input::placeholder { color: var(--rust-2); }
.dir-filter { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.dir-filter input { accent-color: var(--rust); width: 16px; height: 16px; }
.dir-group { padding: 14px 20px 6px; }
.dir-group h3 { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; padding-bottom: 6px; border-bottom: var(--line); display: flex; justify-content: space-between; }
.dir-row {
  width: 100%; display: grid; grid-template-columns: 1fr auto 18px; gap: 10px; align-items: center; text-align: left;
  padding: 10px 6px; border-bottom: var(--hair); font-size: 14.5px; transition: background-color .15s, padding .2s var(--ease);
}
.dir-row .dr-brand { font-family: var(--f-display); font-style: italic; font-size: 15.5px; }
.dir-row .dr-go { opacity: 0; transition: opacity .2s, transform .2s var(--ease); transform: translateX(-4px); }
.dir-row .dr-tick { width: 18px; height: 18px; border-radius: 50%; background: var(--rust); color: var(--cream); display: grid; place-items: center; }
.dir-row .dr-tick svg { width: 12px; height: 12px; }
@media (hover: hover) {
  .dir-row:hover { background: var(--rust-5); padding-left: 12px; }
  .dir-row:hover .dr-go { opacity: 1; transform: none; }
}
.dir-row:focus-visible { outline-offset: -2px; background: var(--rust-5); }
.dir-row:focus-visible .dr-go { opacity: 1; transform: none; }
.dir-empty { padding: 30px 20px; font-size: 14.5px; }
.dir-count { padding: 10px 20px 0; font-size: 12.5px; opacity: .85; }

/* cart */
.cart-scene { padding: 16px 20px 4px; }
.cart-scene h3 { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; padding-bottom: 6px; border-bottom: var(--line); }
.cart-row { display: grid; grid-template-columns: 36px 1fr auto 30px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: var(--hair); }
.cart-row .cr-name { font-size: 15px; line-height: 1.2; }
.cart-row .cr-name small { display: block; font-size: 12px; opacity: .8; }
.cart-empty { padding: 34px 22px; display: grid; gap: 14px; font-size: 15px; }
.cart-empty svg { width: 70px; height: 70px; opacity: .6; }
.cart-foot { border-top: var(--line); padding: 16px 20px 20px; display: grid; gap: 14px; }
.cart-score { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: end; column-gap: 12px; }
.cart-score b { grid-row: 1 / 3; grid-column: 2; font-size: 58px; font-weight: 320; line-height: .85; font-style: italic; }
.cart-score #cartTier { font-family: var(--f-display); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 18px; }

/* logos: the only full-colour things */
.logo { width: 36px; height: 36px; border: var(--hair); border-radius: 4px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.logo img { width: 78%; height: 78%; object-fit: contain; }
.logo--ph { background: var(--paper); font-family: var(--f-display); font-style: italic; font-size: 17px; }

/* ---------- brand popup ---------- */
.pop {
  position: fixed; z-index: 40; width: 348px; max-height: min(78vh, 640px); display: flex; flex-direction: column;
  background: var(--cream); border: var(--line); border-radius: var(--r);
  opacity: 0; transform: scale(.97); transform-origin: var(--ox, 0) var(--oy, 50%); transition: opacity .18s, transform .22s var(--ease);
}
.pop.is-on { opacity: 1; transform: none; }
.pop-arrow { position: absolute; width: 14px; height: 14px; background: var(--cream); border: var(--line); transform: rotate(45deg); top: var(--ay, 40px); margin-top: -7px; }
.pop[data-side="right"] .pop-arrow { left: -8px; border-right: 0; border-top: 0; }
.pop[data-side="left"] .pop-arrow { right: -8px; border-left: 0; border-bottom: 0; }
.pop[data-side="dock"] .pop-arrow, .pop[data-side="float"] .pop-arrow { display: none; }
.pop-h { display: flex; justify-content: space-between; gap: 10px; padding: 14px 12px 12px 16px; border-bottom: var(--line); position: relative; z-index: 1; background: var(--cream); }
.pop-title { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 21px; line-height: 1.1; }
.pop-h .mono-sm { margin-top: 4px; opacity: .85; }
.cards { overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.card { border-bottom: var(--hair); }
.card:last-child { border-bottom: 0; }
.card-h { width: 100%; display: grid; grid-template-columns: 36px 1fr auto 14px; gap: 12px; align-items: center; padding: 10px 14px 10px 16px; text-align: left; transition: background-color .15s; }
.card-h .ch-rank { font-family: var(--f-mono); font-size: 10px; opacity: .7; letter-spacing: .06em; }
.card-h .ch-name { font-size: 15.5px; font-weight: 500; line-height: 1.15; display: flex; align-items: center; gap: 6px; }
.card-h .ch-name .own-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--rust); display: inline-grid; place-items: center; }
.card-h .ch-name .own-dot svg { width: 9px; height: 9px; color: var(--cream); }
.card-h .ch-rate { font-size: 13px; white-space: nowrap; }
.card-h .chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.card.is-open .card-h { background: var(--rust); color: var(--cream); }
.card.is-open .card-h .chev { transform: rotate(180deg); }
.card.is-open .logo { border-color: var(--cream); }
.card.is-open .own-dot { background: var(--cream); }
.card.is-open .own-dot svg { color: var(--rust); }
@media (hover: hover) { .card:not(.is-open) .card-h:hover { background: var(--rust-4); } }
.card-h:focus-visible { outline-offset: -3px; }
.card-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s var(--ease); }
.card.is-open .card-b { grid-template-rows: 1fr; }
.card-b > div { overflow: hidden; }
.card-in { padding: 14px 16px 16px; display: grid; gap: 12px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; }
.rating { position: relative; display: inline-flex; align-items: center; gap: 4px; border-bottom: 1px dotted var(--rust-2); cursor: help; outline: none; }
.rating .stars { letter-spacing: 1px; }
.rating::after {
  content: attr(data-hint); position: absolute; left: 0; bottom: calc(100% + 8px); width: max-content; max-width: 240px;
  padding: 7px 9px; background: var(--rust); color: var(--cream); font-size: 12px; line-height: 1.35; border-radius: 2px;
  opacity: 0; transform: translateY(3px); pointer-events: none; transition: opacity .15s, transform .2s var(--ease); z-index: 3;
}
@media (hover: hover) { .rating:hover::after { opacity: 1; transform: none; } }
.rating:focus-visible::after { opacity: 1; transform: none; }
.story { font-size: 14px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.note { font-size: 12.5px; font-style: italic; opacity: .85; }
.card-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card-act .visit { grid-column: 1 / -1; }
.card-act .btn { padding: 0 12px; font-size: 14px; --bh: 40px; }
.own-btn svg { width: 14px; height: 14px; }
.pop-foot { padding: 10px 16px 12px; border-top: var(--hair); opacity: .85; line-height: 1.5; text-transform: none; letter-spacing: .02em; }

.pointer-line { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 39; pointer-events: none; display: none; overflow: visible; }
.pointer-line.is-on { display: block; }
.pointer-line line { stroke: var(--rust); stroke-width: 1.2; stroke-dasharray: 3 3; }
.pointer-line circle { fill: var(--rust); }

/* ---------- report card ---------- */
.report { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--cream) 94%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow-y: auto; opacity: 0; transition: opacity .25s; }
.report.is-on { opacity: 1; }
.report-in { max-width: 1060px; margin: 0 auto; padding: clamp(16px, 3vw, 34px); min-height: 100%; display: flex; flex-direction: column; }
.report-h { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 14px; border-bottom: var(--line); }
.report-h h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 340; font-style: italic; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(20px, 4vw, 48px); padding-top: 24px; align-items: start; }
.report-preview { display: grid; place-items: center; padding: 12px; border: 1.5px solid var(--rust); }
.report-preview canvas { width: 100%; height: auto; max-height: calc(100vh - 190px); object-fit: contain; border: 1px solid var(--rust-3); }
.report-side { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field input[type="text"] { height: 44px; padding: 0 12px; border: var(--line); border-radius: var(--r); background: transparent; font-size: 15px; outline: none; transition: background-color .2s; }
.field input[type="text"]:focus { background: var(--paper); }
.field input::placeholder { color: var(--rust-2); }
.field .seg button { height: 40px; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share { height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: var(--line); border-radius: var(--r); font-size: 14.5px; font-weight: 500; transition: background-color .2s, color .2s; }
.share svg { width: 20px; height: 20px; flex: none; }
@media (hover: hover) { .share:hover { background: var(--rust); color: var(--cream); } }
.share:focus-visible { background: var(--rust); color: var(--cream); }
.share:active { transform: translateY(1px); }
.report-more { display: flex; flex-wrap: wrap; gap: 8px; }
.report-more .btn { --bh: 42px; font-size: 14px; padding: 0 14px; }
.report-note { font-size: 13px; opacity: .85; line-height: 1.5; }

.scrim { position: fixed; inset: 0; z-index: 34; background: color-mix(in srgb, var(--rust) 10%, transparent); }

/* ---------- touch / small screens ---------- */
@media (max-width: 860px) {
  .hide-sm { display: none; }
  .room-title h1 { font-size: 20px; }
  .room-sub { display: none; }
  .room-tab .rcount { display: none !important; }
}
@media (max-width: 640px) {
  body.app { --top: 58px; --bot: 58px; }
  .bar-top { grid-template-columns: auto 1fr auto; gap: 8px; }
  .wordmark b { font-size: 22px; }
  .bar-actions .btn { padding: 0 10px; }
  .bar-actions .btn span { display: none; }
  .bar-actions .btn svg { width: 18px; height: 18px; }
  .rooms-bar ol { justify-content: flex-start; }
  .room-tab { padding: 0 14px; gap: 6px; }
  .room-tab .rname { font-size: 15.5px; }
  .zoom { bottom: calc(var(--bot) + 84px); }
  .zoom .icon-btn { width: 36px; height: 36px; }
  .zoom-level { display: none; }
  .household { left: 10px; right: 10px; width: auto; top: calc(var(--top) + 10px); }
  .drawer { top: var(--top); bottom: 0; width: 100vw; border-left: 0; z-index: 45; }
  .pop[data-side="dock"] { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-height: 60vh; border-width: 1px 0 0; border-radius: 10px 10px 0 0; transform-origin: 50% 100%; }
  .pop[data-side="dock"] .pop-h::before { content: ""; position: absolute; left: 50%; top: 6px; width: 36px; height: 3px; margin-left: -18px; border-radius: 2px; background: var(--rust-3); }
  .report-grid { grid-template-columns: 1fr; }
  .report-preview canvas { max-height: 56vh; }
  .jhola { width: 56px; height: 56px; }
  .jhola svg { width: 30px; height: 30px; }
}
