.stationery {
  position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(0,1fr);
  background:#69452f url(assets/furniture/grain.webp) center/950px auto;
  scroll-margin:0;
}
.desk-overview { position:relative; grid-area:1/1; align-self:start; height:160svh; min-height:780px; }
.desktop-picture {
  position:sticky; top:0; width:100%; height:100svh; min-height:420px; overflow:hidden;
  isolation:isolate; background:linear-gradient(#706a52 0 22%,#543e31 22% 25%,#92705b 25% 55%,#8d6343 55% 80%,#69472f 80%);
}
.desk-load-status { display:none; }
html[data-view] .desktop-picture.is-loading { background:#c7bcaa; }
html[data-view] .desktop-picture.is-loading > :is(.hutch-fallback,.desk-objects) { display:none; }
html[data-view] .is-loading > .desk-load-status {
  position:absolute; inset:0; display:grid; place-items:center; margin:0; color:#493d39;
  font:500 15px/1.4 var(--headline); animation:desk-load-status .6s step-end;
}
@keyframes desk-load-status { from { opacity:0; } to { opacity:1; } }
.furniture-canvas { display:block; position:absolute; inset:0; width:100%; height:100%; opacity:0; }
.desktop-picture.is-rendered .furniture-canvas { opacity:1; }
.hutch-fallback { position:absolute; inset:24% 0 0; border-block:12px ridge #795737; background:#865d40 url(assets/furniture/grain.webp) center/cover; }
.hutch-fallback::before { content:""; position:absolute; inset:0 0 70%; background:#372b2180; border-bottom:14px ridge #89603e; }
.is-rendered .hutch-fallback { display:none; }
.desk-objects { position:absolute; inset:0; pointer-events:none; }
.desk-objects :is(a,button) {
  pointer-events:auto; position:absolute; display:grid; place-items:center;
  width:max-content; max-width:48%; min-height:44px; padding:9px 13px;
  transform:translate(-50%,-50%) rotate(-3deg); background:#f8e9c5; border:1px solid #705740;
  box-shadow:2px 3px 0 #37261e4d; color:#35291e; text-align:center; text-decoration:none;
  font:600 clamp(13px,1.3vw,19px)/1.1 var(--headline); cursor:pointer;
}
.object-plane { left:48%; top:61%; }
.object-proof { left:20%; top:32%; }
.object-archive { left:73%; top:32%; }
.object-scope { left:24%; top:45%; }
.object-file { left:26%; top:59%; }
.object-epoch { left:83%; top:28%; }
.object-book { left:70%; top:61%; }
.object-tape { left:15%; top:75%; }
.object-letters { left:68%; top:76%; }
.object-drawer,.postcat { left:48%; top:89%; }
.is-rendered .desk-objects :is(a,button) {
  left:var(--screen-x); top:var(--screen-y); width:var(--hit-width,56px); height:var(--hit-height,44px);
  min-height:0; max-width:none; padding:0; transform:translate(-50%,-50%); border:0; box-shadow:none; background:none;
}
.is-rendered .desk-objects [data-outside] { visibility:hidden; }
.is-rendered .desk-objects span {
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
.is-rendered .desk-objects :focus-visible { outline:2px dashed #fff3cb; outline-offset:4px; border-radius:5px; box-shadow:0 0 0 4px #44302dad; }
.graphics-warning {
  position:absolute; z-index:2; color:#fff7e8; background:#30261eec; left:50%; top:12%;
  transform:translateX(-50%); width:max-content; max-width:90%; margin:0;
  font:500 13px/1.4 var(--headline); border-radius:3px; padding:9px 13px;
}
.is-rendered .graphics-warning { top:auto; bottom:12px; font-size:12px; pointer-events:none; }
.desk-reading { position:relative; background:#f6ebdb; }
.studio-ready .desk-reading {
  scroll-margin-top:clamp(22px,6svh,65px); grid-area:1/1; align-self:start; z-index:3; width:min(94%,1220px); margin:var(--opening,20vh) auto 42px;
  padding:0 0 clamp(28px,4vw,60px); border:1px solid #9c836b; border-radius:3px 8px 6px 3px;
  background:var(--room-wall,#f5ebda); box-shadow:1px 3px #ccbfaa,3px 5px #ffefd8,5px 7px #a18a75,2px 18px 30px #23150f60;
}
.stationery[data-open="desk"] { --room-wall:#e8eada; }
.stationery[data-open="catalogue"] { --room-wall:#e8e1d3; }
.stationery[data-open="about"] { --room-wall:#e9e1ea; }
.stationery[data-open="elsewhere"] { --room-wall:#e8e2ed; }
@media(max-width:620px) {
  .desk-overview { height:148svh; }
  .studio-ready .desk-reading { width:94%; }
}
@media(prefers-reduced-motion:reduce) {
  .desk-overview { height:100svh; min-height:510px; }
}
.desk-rail {
  width: min(92%, 1120px);
  margin: auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.8vw, 25px);
  border-bottom: 1px solid #a68f8a;
}
.desk-rail a {
  color: #59484f;
  padding: 8px 2px;
  text-underline-offset: 4px;
  text-decoration: none;
  font: 580 15px var(--headline);
}
.desk-rail .back-to-desk { margin-right: auto; }
.desk-rail a:is([aria-current="page"],:hover,:focus-visible) { color: #513145; text-decoration: underline; }
.stationery [data-room] { scroll-margin-top: 70px; }
.stationery .workbench, .stationery .catalogue, .stationery .notebook, .letter-room {
  padding-block: clamp(22px, 3.2vw, 46px) 0;
}
.stationery .desk-heading,.stationery .catalogue-head,.notebook-heading,.letter-heading { margin: 0 0 clamp(17px, 2.3vw, 30px); }
.stationery .desk-heading h2,.stationery .catalogue-head h2,.notebook-heading h2,.letter-heading h2 {
  margin: 0;
  font: 670 clamp(33px, 4.1vw, 59px)/1.04 var(--headline);
  letter-spacing: -.055em;
}
.stationery .desk-sheet {
  border: 1px solid #c9bba4;
  box-shadow: 2px 4px 0 #c8bea5, 3px 6px 0 #f1ecde, 1px 12px 18px #4e493719;
}
.stationery .catalogue-list {
  background: #fffcf0;
  border: 1px solid #aa947b;
  box-shadow: 2px 3px 0 #d0bda6, 3px 5px 0 #f9edd8, 4px 7px 0 #a78e73;
  padding: 8px clamp(14px, 2.6vw, 40px) 16px;
}
.stationery .catalogue-list a { padding-block: 15px; }
.stationery .catalogue-list strong { font-size: clamp(18px,1.65vw,23px); }
.file-cabinet {
  display: grid; grid-template-columns: clamp(145px, 17vw, 210px) minmax(0,1fr);
  align-items: start; gap: clamp(20px, 3.5vw, 48px);
}
.file-dividers>img { display: block; width: 100%; height: auto; border: 4px solid #fff4de; box-shadow: 1px 3px 5px #523c2f24; transform: rotate(-2deg); }
.file-stack { min-width: 0; }
.stationery .catalogue-filters { margin: 18px 0 0; gap: 4px; flex-direction: column; }
.stationery .catalogue-filters button {
  background: var(--tab-paper, #ead3b2); color: #4d3629; border: 1px solid #b6a087; border-radius: 2px 9px 2px 2px;
  text-align: left; padding: 10px 12px; display: flex; align-items: baseline; justify-content: space-between;
}
.catalogue-filters button:nth-child(2) { --tab-paper: #e2b9ab; }
.catalogue-filters button:nth-child(3) { --tab-paper: #c7d2b8; }
.catalogue-filters button:nth-child(4) { --tab-paper: #d9c9dd; }
.catalogue-filters button:nth-child(5) { --tab-paper: #f1d9a3; }
.stationery .catalogue-filters button::after { content: attr(data-count); font: 11px var(--mono); margin-left: 8px; }
.stationery .catalogue-filters button:hover { box-shadow: inset 3px 0 #987359; }
.stationery .catalogue-filters button[aria-pressed="true"] { background: #76523e; color: #fff8e8; }
.stationery .catalogue-tail { margin-top: 21px; }
.file-pager,.leaf-pager,.post-controls { display: flex; align-items: center; gap: 10px; }
.file-pager button,.leaf-pager a,.post-controls button {
  min-height: 38px;
  padding: 8px 14px;
  font: 580 14px/1.2 var(--headline);
  border: 1px solid #a89388;
  border-radius: 3px;
  background: #fff7e9;
  color: #4a3733;
  text-decoration: none;
}
.file-pager span,.leaf-pager span { font: 12px var(--mono); }
.file-pager button:disabled { opacity:.45; cursor: default; }
.letter-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:14px; }
.letter-heading nav { display:flex; gap:20px; }
.letter-heading nav a { text-underline-offset:4px; }
.post-office {
  width: min(100%, 720px); margin: 30px auto 0;
}
.post-hand,.calling-card-hand { perspective:1100px; cursor:grab; touch-action:none; user-select:none; }
.post-hand.holding,.calling-card-hand.holding { cursor:grabbing; }
.post-hand:focus-visible,.calling-card-hand:focus-visible { outline:2px dashed #8c6c65; outline-offset:4px; }
.postcard { display:grid; position:relative; transform-style:preserve-3d; pointer-events:none; }
.postcard::before { content:""; grid-area:1/1; align-self:start; aspect-ratio:3/2; }
.postcard-front,.postcard-back {
  grid-area:1/1; min-width:0; width:100%; backface-visibility:hidden;
  -webkit-backface-visibility:hidden; border:1px solid #b9a791; border-radius:2px;
  background:#fff9e9; box-shadow:1px 2px 1px #57445336,0 9px 20px #4e324319;
}
.postcard-front { height:100%; min-height:0; position:absolute; inset:0; object-fit:contain; padding:6px; transform:translateZ(1px); }
.postcard-back {
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:5%; color:#46373f;
  padding:clamp(12px,3vw,34px); transform:rotateY(180deg) translateZ(1px);
}
.post-message { align-self:center; min-width:0; }
.post-message h3 { font:650 clamp(20px,3.1vw,41px)/1 var(--headline); letter-spacing:-.045em; margin:0; }
.post-message p { font: 12px/1.3 var(--mono); margin:12px 0; }
.post-message ol { margin:0; padding:0; list-style:none; }
.post-message li { padding:4px 0; border-bottom:1px dotted #ac9b86; font-size: clamp(13px,1.25vw,17px); }
.post-address { min-width:0; gap:5px; border-left:1px solid #b78e85; padding-left:8%; display:flex; flex-direction:column; justify-content:space-between; }
.cat-stamp { margin-left:auto; width:clamp(36px,7vw,95px); height:clamp(36px,7vw,95px); object-fit:cover; border:4px dotted #f9eed7; }
.post-address p { margin:0; font: 550 clamp(16px,2.2vw,28px)/1.3 var(--headline); padding-bottom:6px; border-bottom:1px solid #ad9b8c; }
.post-delivery { display:grid; gap:5px; overflow-wrap:anywhere; }
.post-location { margin-top:5px; font:600 clamp(13px,2vw,20px)/1.25 var(--headline); }
.post-address small { font: clamp(10px,1.6vw,13px) var(--mono); overflow-wrap:anywhere; }
.post-office figcaption { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:12px; margin-top:12px; }
.post-controls button:hover,.leaf-pager a:hover { background:#f6e1c5; }
#post-status { font-size:13px; text-align:center; margin:6px 0 0; }
@media(max-width:720px) {
  .file-cabinet { display:block; }
  .file-dividers>img { display:none; }
  .desk-rail { gap:5px; justify-content:space-between; width:94%; padding:5px 0; }
  .desk-rail a { padding:10px 2px; font-size:13px; }
  .desk-rail .back-to-desk { margin-right:0; }
  .stationery .catalogue-filters { margin:0 0 10px; flex-flow:row wrap; gap:4px; }
  .stationery .catalogue-filters button { padding:7px 10px; }
  .stationery .catalogue-filters button::after { display:none; }
  .stationery .catalogue-list { padding:5px 14px 10px; }
  .stationery .catalogue-tail { gap:9px 13px; }
  .letter-heading nav { gap:16px; }
  .post-office { margin-top:20px; }
  .post-message p { margin:6px 0; }
  .post-message li { font-size:12px; padding:2px 0; }
  .post-address p { font-size:15px; }
  .post-controls { gap:7px; }
}
@media print {
  .desk-rail,.desk-overview,.post-controls,.file-pager,.leaf-pager,.notebook-tabs { display:none !important; }
  .stationery{border:0;background:white;padding:0;}
}
.desktop-picture { touch-action:pan-y pinch-zoom; }
.desktop-picture.looking-around,.desktop-picture.looking-around canvas { user-select:none; }

/* The two front doors share ordinary fragment links and browser history. */
html[data-view] #studio:not(.studio-ready) .desk-reading,
html[data-view="desk"] .shop, html[data-view="shelf"] .desk-overview,
html[data-view="shelf"] .studio-ready:not([data-open]), .mode-shelf { display:none; }
html[data-view="shelf"] .mode-desk { display:none; }
html[data-view="shelf"] .mode-shelf { display:inline; }
html[data-view] .desk-overview, html[data-view] .desktop-picture {
  height:calc(100svh - 64px); min-height:360px;
}
html[data-view] .desktop-picture { position:relative; top:auto; }
html[data-view] .mast-inner { min-height:64px; }
html[data-view] .stationery[data-open] { min-height:calc(100svh - 64px); }
html[data-view] .stationery[data-open] .desk-overview { grid-area:1/1; }
html[data-view] .studio-ready .desk-reading { margin:clamp(12px,3vh,26px) auto; scroll-margin-top:10px; }
html[data-view="shelf"] .desk-reading { grid-area:auto; }
.stationery[data-open] .desktop-picture { pointer-events:none; }
.studio-ready .desktop-picture:not(.is-rendered) .desk-objects {
  display:grid; align-content:center; justify-content:center; grid-template-columns:repeat(3,minmax(0,175px)); gap:7px; padding:12vh 18px 7vh;
}
.studio-ready .desktop-picture:not(.is-rendered) .desk-objects :is(a,button) {
  position:static; width:auto; max-width:none; min-height:36px; transform:none;
}
.studio-ready .desktop-picture:not(.is-rendered) .object-plane {
  grid-column:1/-1; background:#754457; color:#fff6e4; font-weight:700;
}
html[data-view] .is-rendered .desk-objects :is(a,button) { cursor:inherit; }
.is-rendered .furniture-canvas, .is-rendered .desk-objects { cursor:auto; }
.is-rendered[data-aim="object"], .is-rendered[data-aim="object"] .furniture-canvas,
.is-rendered[data-aim="object"] .desk-objects { cursor:url(assets/furniture/nib.svg) 4 3, pointer; }
.is-rendered.looking-around, .is-rendered.looking-around * { cursor:grabbing; user-select:none; }
@media (max-width:680px) {
  html[data-view] .mast-inner { min-height:54px; flex-wrap:nowrap; padding-block:0; }
  html[data-view] .mast nav { width:auto; }
  html[data-view] .desk-overview, html[data-view] .desktop-picture { height:calc(100svh - 54px); }
  .studio-ready .desktop-picture:not(.is-rendered) .desk-objects { gap:4px; padding-inline:8px; }
}
.pickup {
  --pencil:#463e44; color:var(--pencil); width:min(91vw,510px); max-height:92dvh;
  margin:auto; padding:clamp(15px,2.6vw,26px); border:1px solid #9c8d7e; border-radius:3px;
  background:#faf6e9; box-shadow:2px 3px #c4b39e,0 15px 65px #2c202e50;
}
.pickup::backdrop { background:#211d25a6; }
.pickup-head,.pickup-foot,.sketch-tools { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pickup-head { padding-bottom:12px; }
.pickup h2 { font:620 clamp(20px,3vw,30px)/1.1 var(--headline); margin:0; letter-spacing:-.035em; }
.pickup button,.pickup a { color:#553f50; }
.pickup-head button,.pickup-foot button,.sketch-tools button,.pickup-foot a {
  font:550 14px/1.25 var(--headline); padding:9px 7px; min-height:38px; border:0; background:transparent; text-underline-offset:3px;
}
.pickup-head button { border:1px solid #a69795; border-radius:3px; padding-inline:12px; }
.pickup-foot { margin-top:9px; flex-wrap:wrap; }
.pickup:has(.photo-piece:not([hidden])) {
  --photo-height:min(60dvh,510px); width:min(90vw,calc(var(--photo-height) * var(--print-ratio,1)));
  overflow:visible; padding:0; border:0;
  color:#fff9ef; background:transparent; box-shadow:none;
}
.pickup:has(.photo-piece:not([hidden]))::backdrop { background:#211a1ecf; }
.pickup:has(.photo-piece:not([hidden])) .pickup-head { padding:0 0 10px; }
.pickup:has(.photo-piece:not([hidden])) .put-down,.pickup .photo-link { color:#fff5e6; }
.pickup:has(.photo-piece:not([hidden])) .put-down { border-color:#b7a69a; }
.photo-piece .pickup-foot { justify-content:center; }
.photo-hand {
  width:100%; aspect-ratio:var(--print-ratio,1); display:grid; place-items:center;
  perspective:1100px; touch-action:none; user-select:none; -webkit-user-select:none; cursor:grab;
}
.photo-hand.holding { cursor:grabbing; }
.photo-hand:focus-visible { outline:2px dashed #cbb9a0; outline-offset:5px; }
.photo-print {
  position:relative; width:100%;
  aspect-ratio:var(--print-ratio,1); transform-style:preserve-3d; pointer-events:none;
}
.photo-front,.photo-back {
  position:absolute; inset:0; backface-visibility:hidden; -webkit-backface-visibility:hidden;
  background:#f5f0e5; border:1px solid #b9ae9c; border-radius:2px;
  box-shadow:0 2px 1px #b9ae9c,0 7px 22px #120d1336; overflow:hidden;
}
.photo-front { padding:clamp(6px,1.4vw,12px); transform:translateZ(1px); }
.photo-front::after {
  content:""; position:absolute; inset:0; background:linear-gradient(115deg,transparent,#fff 65%,transparent);
  opacity:var(--glint,0);
}
.photo-front img { display:block; width:100%; height:100%; object-fit:cover; }
.photo-back {
  display:flex; flex-direction:column; justify-content:space-between; align-items:flex-start;
  padding:clamp(14px,4vmin,32px); color:#443e49; background:#f2eadb;
  transform:rotateY(180deg) translateZ(1px);
}
.photo-back[aria-hidden=false] { pointer-events:auto; }
.photo-back small,.photo-back figcaption { font:500 clamp(10px,1.6vmin,13px)/1.35 var(--mono,monospace); }
.photo-back small:first-child { border-bottom:1px solid #a69e90; width:100%; padding-bottom:.5em; }
.photo-back p { margin:0; font:italic clamp(15px,3.2vmin,27px)/1.15 Georgia,serif; }
.photo-back img { display:block; min-height:0; max-height:42%; max-width:100%; object-fit:contain; align-self:center; }
.photo-back .contact-strip { height:auto; width:100%; transform:rotate(-2deg); }
.photo-back .neighbor-sketch { width:auto; height:42%; }
.photo-back figure { width:100%; margin:0; }
.photo-back figure img { width:100%; height:auto; max-height:none; }
.photo-back figcaption { display:flex; justify-content:space-between; }
.print-equation { align-self:center; font:500 clamp(17px,4.5vmin,39px)/1.4 var(--mono,monospace); color:#645168; text-align:center; }
.pickup [hidden] { display:none; }
.sketch-paper { width:100%; max-height:56dvh; display:block; border:1px solid #bdb3a4; background:repeating-linear-gradient(0deg,#fffaf0 0 21px,#ddd7d0 21px 22px); touch-action:none; cursor:crosshair; }
.sketch-paper path { stroke-width:2.4; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.sketch-tools { justify-content:start; flex-wrap:wrap; margin-top:10px; }
.sketch-tools button[aria-pressed="true"] { box-shadow:inset 0 -2px #886273; }
.sketch-tools button:disabled { opacity:.5; }

/* The room fills the window. Its only view control is the little shelf glyph. */
html[data-view="desk"] .mast { display:none; }
html[data-view="desk"] .desk-overview, html[data-view="desk"] .desktop-picture { height:100svh; }
.mode-switch {
  position:fixed; z-index:12; top:max(14px,env(safe-area-inset-top)); right:max(16px,env(safe-area-inset-right));
  display:inline-flex; align-items:center; gap:7px; height:44px; padding:0 14px; border:1px solid #806b62; border-radius:24px;
  font:650 14px/1 var(--headline); text-decoration:none; white-space:nowrap;
  color:#4c3945; background:#fff9ef; box-shadow:0 2px 0 #826e63,0 3px 13px #30241c30; touch-action:manipulation;
}
.mode-switch:hover,.profile-links a:hover { color:#823955; background:#fff; }
.mode-switch:focus-visible,.profile-links a:focus-visible { outline:3px solid #76435c; outline-offset:3px; }
html[data-view="shelf"] .mast-inner { padding-right:130px; }
html[data-view="shelf"] .mode-switch { top:10px; }
html[data-view="shelf"] .mode-shelf { display:initial; }
html[data-view="shelf"] .mast nav a { display:inline; }
.desk-rail { padding-right:42px; }
.brand-symbols { position:absolute; pointer-events:none; }
.profile-links { display:flex; align-items:center; gap:4px; }
.profile-links a {
  display:inline-flex; align-items:center; justify-content:center; gap:7px; color:#443640;
  font:640 14px/1 var(--headline); text-decoration:none; border-radius:5px; padding:10px;
}
.profile-links svg { flex:none; fill:currentColor; }
.desk-profiles {
  position:fixed; z-index:8; bottom:max(14px,env(safe-area-inset-bottom)); left:max(16px,env(safe-area-inset-left));
  padding:2px 4px; border:1px solid #8e7663; border-radius:8px; background:#fff8eaf5;
  box-shadow:0 2px 0 #8c715d,0 5px 15px #38241e30;
}
body:has(.stationery[data-open],dialog[open]) .desk-profiles { visibility:hidden; }
html[data-view="desk"] body:has(.stationery[data-open]) .mode-switch { position:absolute; }
html[data-view="desk"] .studio-ready .desk-reading { margin-top:66px; scroll-margin-top:66px; }
.desk-profiles a { width:44px; height:44px; padding:10px; }
.letter-heading { align-items:start; flex-direction:column; }
.letter-heading .address-links { display:grid; width:min(100%,38rem); gap:0; }
.address-links a { display:grid; grid-template-columns:auto 1fr auto; font-size:clamp(17px,2.4vw,26px); padding:14px 4px; gap:12px; border-radius:0; border-bottom:1px solid #b8aab4; }
.address-links small { font:400 clamp(11px,1.4vw,15px) var(--mono); text-align:right; }
.address-links a:hover { background:#fff9f580; }
.drawer-post { width:min(90vw,85dvh,720px); max-height:94dvh; color:#fff9ef; background:transparent; border:0; padding:0; overflow:visible; }
.drawer-post::backdrop { background:#211a1ecf; }
.drawer-post form { text-align:right; }
.return-post,.return-calling-card,.put-object-back,.use-object {
  color:#473641; background:#fff8e9; border:1px solid #9a897f; border-radius:6px; padding:10px 14px; font:600 15px var(--headline); touch-action:manipulation;
}
.drawer-post .post-office { margin:10px auto; }
.drawer-post .return-post,.drawer-post #save-post { color:#fff5e6; background:#3c3135; border:1px solid #b7a69a; }
.object-view[open] {
  position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none; margin:0; padding:0;
  border:0; background:transparent; overflow:hidden; color:#fff9ed;
}
.object-view::backdrop { background:transparent; }
.turn-surface { position:absolute; inset:0; cursor:grab; touch-action:none; outline-offset:-6px; }
.turn-surface:active { cursor:grabbing; }
.turn-surface:focus:not(:focus-visible) { outline:none; }
.put-object-back { position:absolute; z-index:2; top:16px; right:16px; border-radius:50%; font:400 29px/1 var(--headline); width:46px; height:46px; padding:0; }
.use-object { position:absolute; left:50%; bottom:4%; transform:translateX(-50%); }
body:has(.object-view[open],.drawer-post[open]) { overflow:hidden; }
body:has(.object-view[open]) .mode-switch,.inspecting .graphics-warning { visibility:hidden; }
.soft-pan:not(.inspecting):not(.looking-around) :is(.desk-objects,.furniture-canvas) {
  transform:scale(1.022) translate(var(--pan-x,0%),var(--pan-y,0%));
}
@media (max-width:680px) {
  .desk-profiles { bottom:10px; left:10px; }
  .desk-profiles a { padding:10px; }
  .desk-profiles svg { width:21px; height:21px; }
  html[data-view="shelf"] .mast-inner { padding-right:124px; flex-wrap:wrap; }
  html[data-view="shelf"] .mast nav { width:auto; gap:10px; }
  .use-object { bottom:7%; }
  .studio-ready .is-rendered .graphics-warning { bottom:60px; }
}

@media (max-width:390px) {
  .address-links a { column-gap:6px; }
}
html:not([data-view]):not(:has(#projects:target)) .mast { display:none; }
.put-down-surface {
  position:absolute; z-index:1; inset:0; width:100%; height:100%; border:0; padding:0;
  background:transparent; touch-action:pan-y pinch-zoom;
}
@media screen and (max-width:680px) {
  .open-project {
    --exposed-desk:clamp(32px,5.5svh,48px);
    inset:var(--exposed-desk) 0 0; height:calc(100dvh - var(--exposed-desk));
  }
  html[data-view="desk"] .studio-ready .desk-reading {
    width:calc(100% - 24px); margin:66px auto 28px; scroll-margin-top:66px;
  }
}
@media (max-width:520px) {
  html[data-view="shelf"] .mast-inner { display:grid; grid-template-columns:1fr; padding:0 0 8px; gap:0; }
  html[data-view="shelf"] .byline { display:flex; align-items:center; min-height:56px; width:max-content; }
  html[data-view="shelf"] .mast nav { width:100%; justify-content:start; gap:22px; }
}
