/* THE DOORWAY on Storefront — the sheet system from the design pass (raptor-site/design/doorway-ds):
   the room is the page; the page is ONE sheet of paper on the glass, on the side its anchor leaves free (body.sim-side-*);
   money pages (cart, checkout, account) sit on a calmer, wider, more opaque sheet; on a phone the room is a window on top. */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Sans+3:ital,wght@0,400;0,600;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap");
:root { --paper: #f6f2e9; --ink: #171821; --ink-2: #4b4f5c; --ink-3: #7a7d88; --line: rgba(23,24,33,.14); --gold: #e7b451; --gold-ink: #b7791f; --blue: #1c3f9c; --red: #e8452b;
        --chip: #101420; --chip-ink: #e8e4da; --chip-line: #3a3f52; --sheet: rgba(246,242,233,.86); --sheet-money: rgba(246,242,233,.96); --blur: 14px;
        --display: "Bebas Neue", "Oswald", Impact, sans-serif; --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace; }
/* THE TITLE SCREEN: over the room, under the sheet, from first paint until the room says loaded */
#sim-title { position: fixed; inset: 0; z-index: 1; background: var(--ink) center / cover no-repeat; transition: opacity 0.7s ease; }
#sim-title::before { content: ""; position: absolute; inset: 0; background: rgba(23,24,33,0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#sim-title.is-done { opacity: 0; pointer-events: none; }
.sim-title-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, 86vw); padding: 34px 36px 26px; background: var(--sheet); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 12px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.sim-title-art { display: block; max-width: 100%; height: auto; margin: 0 auto 10px; }
.sim-title-name { font: 400 clamp(44px, 7vw, 76px)/0.95 var(--display); letter-spacing: 0.03em; color: var(--ink); }
.sim-title-tag { margin-top: 10px; font: 14px var(--mono); color: var(--ink-2); letter-spacing: 0.04em; }
.sim-title-bar { position: relative; height: 3px; margin-top: 22px; background: rgba(23,24,33,0.12); overflow: hidden; border-radius: 2px; }
.sim-title-bar i { position: absolute; top: 0; bottom: 0; width: 32%; background: var(--gold); animation: sim-load 1.4s ease-in-out infinite; }
@keyframes sim-load { 0% { left: -32%; } 100% { left: 100%; } }
body.sim-mode-web #sim-title { display: none; }
/* THE TWO VIEWS: the toggle at the top right; Webpage = the sheet at full width with the anchor's still as its hero */
#sim-mode { position: fixed; top: 24px; right: 24px; z-index: 6; display: flex; align-items: center; gap: 8px; border: 1px solid var(--chip-line); border-radius: 999px; background: var(--chip); color: var(--chip-ink); font: 12px var(--mono); letter-spacing: 0.04em; padding: 5px 12px 5px 6px; cursor: pointer; }
.sim-mode-track { position: relative; width: 34px; height: 18px; border-radius: 9px; background: rgba(246,242,233,0.22); }
.sim-mode-knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); transition: left 0.18s ease, background 0.18s ease; }
#sim-mode[data-mode="web"] .sim-mode-knob { left: 18px; background: var(--paper); }
body.sim-side-right #sim-mode { right: auto; left: 24px; }   /* the toggle keeps to the free corner */
.sim-hero { display: none; }
body.sim-mode-web { background: var(--paper-2, #ece6d8); }
body.sim-mode-web #sim-doorway, body.sim-mode-web #sim-doorway-ui, body.sim-mode-web #sim-hint { display: none !important; }
/* Webpage: the theme's own full-width page — no sheet, no card; the room's still as a hero across the top */
body.sim-mode-web { background: var(--paper); }
body.sim-doorway-on.sim-mode-web #page, body.sim-doorway-on.sim-mode-web.sim-side-right #page, body.sim-doorway-on.sim-mode-web.sim-side-money #page { position: static; width: auto; min-width: 0; max-width: none; margin: 0; padding: 0; transform: none; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); box-shadow: none; border-radius: 0; overflow: visible; }
body.sim-mode-web .col-full { max-width: 66.4989em; margin: 0 auto; padding: 0 2.617924em; }
body.sim-mode-web .sim-hero { display: block; height: 42vh; min-height: 220px; background: var(--ink) center / cover no-repeat; border-radius: 0; margin: 0 0 24px; }
/* DEPARTMENTS: tiles on the shop page (the product grid stays under them for the Webpage view and search engines) */
.sim-depts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 18px; }
body.sim-mode-web .sim-depts { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sim-dept { display: block; border-radius: 8px; overflow: hidden; background: var(--paper-2, #ece6d8); color: var(--ink); text-decoration: none !important; box-shadow: 0 1px 0 rgba(23,24,33,0.08); }
.sim-dept:hover .sim-dept-name { color: var(--gold-ink); }
.sim-dept-img { display: block; aspect-ratio: 4 / 3; background: var(--ink) center / cover no-repeat; }
.sim-dept-name { display: block; font: 400 24px/1 var(--display); letter-spacing: 0.03em; padding: 10px 12px 2px; }
.sim-dept-meta { display: block; font: 12px var(--mono); color: var(--ink-2); padding: 0 12px 10px; }
body.sim-doorway-on.post-type-archive-product #content ul.products, body.sim-doorway-on.post-type-archive-product .woocommerce-result-count, body.sim-doorway-on.post-type-archive-product .woocommerce-pagination { display: none; }
body.sim-mode-web.post-type-archive-product #content ul.products { display: flex; }
.sim-dept-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.sim-dept-back { font: 13px var(--mono); color: var(--ink-2); text-decoration: none; }
.sim-dept-open { background: var(--gold); color: var(--ink); border: 0; border-radius: 6px; padding: 8px 12px; font: 600 13px var(--body); cursor: pointer; }
body.sim-mode-web .sim-dept-open { display: none; }
/* THE SHOWCASE over the room: the department's fixture with the store's stock; the sheet steps aside */
#sim-showcase { position: fixed; inset: 0; width: 100vw; height: 100vh; border: 0; z-index: 3; background: #0d1118; }
body.sim-showcase-on #page, body.sim-showcase-on #sim-doorway-ui, body.sim-showcase-on #sim-look { display: none !important; }
#sim-showcase-bar { position: fixed; top: 24px; left: 24px; z-index: 6; display: flex; gap: 10px; align-items: center; }
#sim-showcase-bar[hidden], #sim-showcase[hidden] { display: none !important; }
#sim-showcase-bar b { font: 400 26px/1 var(--display); letter-spacing: 0.04em; color: var(--paper); text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
#sim-showcase-bar .sim-pill { text-decoration: none; }
/* the hint keeps to the free side beside a sheet */
body.sim-side-left .sim-hint { left: auto; right: 24px; transform: none; } body.sim-side-right .sim-hint { left: 24px; right: auto; transform: none; }
/* the lifted item's card while a department's showcase runs on the room's own fixture (the free side) */
#sim-item-card { position: fixed; right: 24px; top: 50%; transform: translateY(-50%); z-index: 6; width: 260px; background: var(--sheet); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); padding: 16px 18px; color: var(--ink); font: 14px/1.4 var(--body); }
body.sim-side-right #sim-item-card { right: auto; left: 24px; }
#sim-item-card h3 { font: 400 26px/1 var(--display); letter-spacing: 0.03em; margin: 0 0 4px; }
#sim-item-card .sub { color: var(--ink-2); font-size: 13px; } #sim-item-card .price { font: 400 26px/1.2 var(--display); color: var(--gold-ink); margin: 8px 0 2px; } #sim-item-card .stock { font: 12px var(--mono); color: var(--ink-2); margin-bottom: 10px; }
#sim-item-card button { display: block; width: 100%; margin-top: 8px; padding: 9px 12px; border-radius: 6px; border: 0; background: var(--gold); color: var(--ink); font: 600 13px var(--body); cursor: pointer; }
#sim-item-card button.ghost { background: transparent; border: 1px solid var(--ink); } #sim-item-card button[disabled] { opacity: 0.5; cursor: default; }
@media (max-width: 768px) { #sim-item-card, body.sim-side-right #sim-item-card { left: 14px; right: 14px; width: auto; top: auto; bottom: 14px; transform: none; } }
/* the room */
.themify_popup, .tb_popup_overlay, #themify_popup { display: none !important; }   /* no sample pop-ups over the sheet */
#sim-doorway { position: fixed; inset: 0; width: 100vw; height: 100vh; border: 0; z-index: 0; background: #0d1118; }
html, body.sim-doorway-on { background: transparent !important; }
/* the sheet */
body.sim-doorway-on { font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); }
body.sim-doorway-on #page { position: fixed; top: 24px; bottom: 84px; left: 24px; width: 42vw; min-width: 380px; max-width: 600px; z-index: 2; overflow: auto; overscroll-behavior: contain;
  background: var(--sheet); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); border-radius: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.25); padding: 0 0 56px; }
body.sim-doorway-on.sim-side-right #page { left: auto; right: 24px; }
body.sim-doorway-on.sim-side-money #page { left: 50%; right: auto; transform: translateX(-50%); width: 62vw; max-width: 780px; background: var(--sheet-money); }
/* one column inside it */
body.sim-doorway-on .col-full { max-width: none; margin: 0; padding: 0 26px; }
body.sim-doorway-on #primary, body.sim-doorway-on .content-area { width: 100%; float: none; margin: 0; }
body.sim-doorway-on #secondary { display: none; }
body.sim-doorway-on .storefront-breadcrumb { margin: 0; padding: 8px 0 0; } body.sim-doorway-on .woocommerce-breadcrumb { font: 12.5px/1.4 var(--mono); color: var(--ink-3); }
/* the header on the sheet */
body.sim-doorway-on .site-header { background: transparent; padding: 18px 0 0; margin: 0; border-bottom: 1px solid var(--line); }
body.sim-doorway-on .site-header .site-branding { float: none; width: auto; margin: 0 0 6px; }
body.sim-doorway-on .site-title { font: 400 30px/1 var(--display); letter-spacing: .04em; margin: 0; } body.sim-doorway-on .site-title a { color: var(--ink); text-decoration: none; }
body.sim-doorway-on .site-description { color: var(--ink-3); font-size: 14px; margin: 2px 0 6px; }
body.sim-doorway-on .site-header .site-search, body.sim-doorway-on .site-header .site-header-cart .cart-contents .count { display: none; }
body.sim-doorway-on .storefront-primary-navigation { background: transparent; }
body.sim-doorway-on .main-navigation { float: none; } body.sim-doorway-on .main-navigation ul.menu { display: flex; flex-wrap: wrap; gap: 0 18px; } body.sim-doorway-on .main-navigation ul.menu > li { margin: 0; } body.sim-doorway-on .main-navigation ul.menu > li > a { font: 600 14.5px/1 var(--body); padding: 10px 0; margin: 0; color: var(--ink-2); }
body.sim-doorway-on .main-navigation ul.menu > li.current_page_item > a, body.sim-doorway-on .main-navigation ul.menu > li.current-menu-item > a { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); }
body.sim-doorway-on .site-header-cart { float: right; margin-top: -40px; }
body.sim-doorway-on .site-branding { max-width: calc(100% - 150px); }   /* the tagline wraps before the cart total */
body.sim-doorway-on .woocommerce-products-header { padding: 0; margin: 0; }
body.sim-doorway-on .storefront-sorting { margin: 0 0 14px; }
body.sim-doorway-on.single-product div.product { padding-top: 18px; }
/* the cart and checkout blocks stay inside the money sheet (Storefront's .alignwide reaches past the column) */
body.sim-doorway-on .wp-block-woocommerce-cart.alignwide, body.sim-doorway-on .wp-block-woocommerce-checkout.alignwide { margin-left: 0 !important; margin-right: 0 !important; width: auto !important; max-width: 100% !important; }   /* the theme's wide alignment is set with more weight */
body.sim-doorway-on .wc-block-cart .wc-block-components-sidebar { padding-right: 0; }
/* the sheet has its own cart affordances (the header count, the toast): no dock over the room */
body.sim-doorway-on #addon-shopdock, body.sim-doorway-on .shopdock_cart { display: none !important; } body.sim-doorway-on .site-header-cart .cart-contents { padding: 10px 0; font: 14px var(--body); color: var(--ink-2); } body.sim-doorway-on .site-header-cart .cart-contents .amount { color: var(--ink); font-weight: 600; }
/* type and money */
body.sim-doorway-on h1, body.sim-doorway-on h2, body.sim-doorway-on h3, body.sim-doorway-on .entry-title, body.sim-doorway-on .product_title, body.sim-doorway-on .woocommerce-products-header__title { font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: 1; color: var(--ink); text-wrap: balance; }
body.sim-doorway-on h1, body.sim-doorway-on .product_title, body.sim-doorway-on .woocommerce-products-header__title { font-size: 40px; } body.sim-doorway-on h2 { font-size: 28px; } body.sim-doorway-on h3 { font-size: 22px; }
body.sim-doorway-on.home .entry-title, body.sim-doorway-on.post-type-archive-product .woocommerce-products-header__title, body.sim-doorway-on .storefront-sorting .woocommerce-ordering { display: none; }   /* the sheet's copy names the page; the shop's "Shop" title is noise */
body.sim-doorway-on .price, body.sim-doorway-on .woocommerce-Price-amount, body.sim-doorway-on ul.products li.product .price, body.sim-doorway-on div.product p.price { font-family: var(--display) !important; font-size: 24px !important; letter-spacing: .03em; color: var(--gold-ink) !important; }
body.sim-doorway-on .stock, body.sim-doorway-on .sku_wrapper, body.sim-doorway-on .posted_in, body.sim-doorway-on .woocommerce-result-count, body.sim-doorway-on .woocommerce-ordering select { font: 13px/1.4 var(--mono); color: var(--ink-3); }
body.sim-doorway-on .stock.in-stock { color: #2f7d32; }
body.sim-doorway-on .button, body.sim-doorway-on button.button, body.sim-doorway-on .single_add_to_cart_button, body.sim-doorway-on .checkout-button, body.sim-doorway-on input[type=submit], body.sim-doorway-on .wc-block-components-button, body.sim-doorway-on .module-buttons a { background: var(--gold) !important; color: var(--ink) !important; border: 0 !important; border-radius: 6px !important; font: 600 15px/1 var(--body) !important; padding: 12px 18px !important; text-shadow: none !important; }
body.sim-doorway-on .button.alt, body.sim-doorway-on .module-buttons .ghost a { background: transparent !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--ink); }
body.sim-doorway-on ul.products li.product { text-align: left; } body.sim-doorway-on ul.products li.product .woocommerce-loop-product__title { font: 600 15px/1.25 var(--body); color: var(--ink); }
body.sim-doorway-on ul.products li.product img { border-radius: 4px; }
body.sim-doorway-on .sl-doorway-find { margin-top: 10px; font-size: 15px; } body.sim-doorway-on .sl-doorway-find .sim-loc { color: var(--ink); text-decoration: underline dotted; text-underline-offset: 3px; }
body.sim-doorway-on .site-footer { background: transparent; color: var(--ink-3); font-size: 12px; margin: 28px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
body.sim-doorway-on .site-footer .site-info { font: 12.5px/1.5 var(--mono); }
body.sim-doorway-on .storefront-handheld-footer-bar { display: none; }
.sim-trail { font: 12.5px/1.4 var(--mono); color: var(--ink-3); margin-top: 8px; } .sim-trail b { color: var(--ink); font-weight: 500; }
/* wayfinding, outside the sheet */
#sim-doorway-ui { position: fixed; left: 24px; bottom: 24px; z-index: 5; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* the Look panel: the room's render settings, above the pills */
#sim-look { position: absolute; left: 0; bottom: calc(100% + 10px); width: 280px; max-height: min(70vh, 560px); overflow: auto; background: var(--sheet); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); padding: 12px 14px; font: 13px/1.4 var(--body); color: var(--ink); }
#sim-look .sim-look-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; font-family: var(--display); font-size: 18px; letter-spacing: 0.04em; }
#sim-look .sim-look-reset { background: none; border: 0; padding: 0; color: var(--gold-ink); font: 12px var(--mono); cursor: pointer; text-decoration: underline; }
#sim-look .sim-look-row { display: grid; grid-template-columns: 1fr 96px 34px; align-items: center; gap: 8px; padding: 4px 0; border-top: 1px solid rgba(23,24,33,0.08); }
#sim-look .sim-look-row span { color: var(--ink-2); }
#sim-look select, #sim-look input[type="range"] { grid-column: 2 / 4; width: 100%; min-height: 0; padding: 2px 4px; font: 12px var(--body); }
#sim-look input[type="range"] { grid-column: 2; }
#sim-look input[type="checkbox"] { grid-column: 2; justify-self: start; width: 16px; height: 16px; }
#sim-look output { font: 11px var(--mono); color: var(--ink-2); text-align: right; }
/* the letter rail (rung 4c): the long box's alphabet tabs on the sheet's side, under the item card */
#sim-rail { position: fixed; right: 24px; top: calc(50% + 150px); z-index: 6; width: 260px; display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: var(--sheet); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
body.sim-side-right #sim-rail { right: auto; left: 24px; }
#sim-rail button { width: 24px; height: 24px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); font: 600 12px var(--mono); cursor: pointer; }
#sim-rail button:hover { background: var(--paper-2, #ece6d8); } #sim-rail button.is-active { background: var(--gold); color: var(--ink); } #sim-rail button:disabled { color: var(--ink-2); opacity: .35; cursor: default; }
body.sim-showcase-on #sim-rail { display: none !important; }
.sim-hint { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 6; max-width: 56vw; white-space: normal; text-align: center; background: var(--chip); color: var(--chip-ink); border: 1px solid var(--chip-line); border-radius: 8px; padding: 8px 12px; font: 12px var(--mono); white-space: nowrap; pointer-events: none; }
.sim-pill { background: var(--chip); color: var(--gold); border: 1px solid var(--chip-line); border-radius: 8px; padding: 9px 12px; font: 13px/1 var(--mono); cursor: pointer; }
.sim-where { color: var(--chip-ink); background: var(--chip); border: 1px solid var(--chip-line); border-radius: 6px; padding: 6px 10px; font: 12.5px/1.3 var(--mono); }
.sim-where:empty { display: none; } .sim-where .k { color: var(--gold); }
body.sim-doorway-walk #page { display: none; } body.sim-doorway-walk #sim-doorway { z-index: 2; }
.sim-toast { position: fixed; right: 16px; bottom: 16px; z-index: 6; background: var(--chip); color: var(--chip-ink); border: 1px solid var(--chip-line); border-radius: 8px; padding: 10px 14px; font: 13px var(--mono); }
/* phones: the room is a window at the top, the sheet the page below it */
@media (max-width: 768px) {
  :root { --sim-win: 44vh; }   /* the room's share of the screen — the seam sets it (the Chair's split view, 09-25) */
  #sim-doorway { height: var(--sim-win); }
  body.sim-doorway-on #page, body.sim-doorway-on.sim-side-right #page, body.sim-doorway-on.sim-side-money #page { position: static; width: auto; min-width: 0; max-width: none; margin: var(--sim-win) 0 0; transform: none; border-radius: 16px 16px 0 0; background: rgba(246,242,233,.98); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 -10px 30px rgba(0,0,0,.25); padding-bottom: 32px; overflow: visible; }
  body.sim-doorway-on .col-full { padding: 0 18px; }
  body.sim-doorway-on h1, body.sim-doorway-on .product_title, .tb_section-street h1 { font-size: 40px !important; }
  /* THE SEAM (the Chair's phone note, 09-23/24): the trail pill hung over the edge between the room window and the page (two rows from
     50 px above the window's foot) — the UI now grows UP from the window's foot and never crosses it; the window casts a shadow on
     the page scrolling under it, so the boundary reads as a pane over a page, not a cut */
  #sim-doorway-ui { top: auto; bottom: calc(100vh - var(--sim-win) + 12px); left: 14px; right: 14px; }
  body.sim-mode-sim #sim-doorway-ui .sim-pill, body.sim-mode-sim #sim-where { display: none; }   /* the ≡ menu carries them on a phone */
  #sim-mode { display: none; }   /* the view switch lives in the ≡ menu; the element stays for the page's own use */
  #sim-where { max-width: 100%; }
  #sim-doorway { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38); }
  #sim-title { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38); }
  #sim-mode { top: 10px; right: 10px; } body.sim-side-right #sim-mode { left: auto; right: 10px; }
  #sim-rail, body.sim-side-right #sim-rail { position: fixed; top: var(--sim-win); left: 0; right: 0; width: auto; border-radius: 0; box-shadow: 0 6px 16px rgba(0,0,0,.25); flex-wrap: nowrap; overflow-x: auto; padding: 6px 10px; }   /* a strip right under the room window while a box is open */
  /* the title screen covers the room's window, not the page; the whole screen only in walk mode */
  #sim-title { height: var(--sim-win); bottom: auto; } body.sim-doorway-walk #sim-title { height: 100vh; }
  .sim-title-card { width: 82vw; padding: 16px 14px 12px; } .sim-title-name { font-size: clamp(30px, 9vw, 44px); } .sim-title-bar { margin-top: 12px; }
  body.sim-mode-web .sim-hero { height: 30vh; margin: 0 0 12px; } body.sim-mode-web .col-full { padding: 0 18px; }
  .sim-depts { grid-template-columns: 1fr 1fr; gap: 12px; } .sim-dept-img { aspect-ratio: 1 / 1; } .sim-dept-name { font-size: 24px; }   /* the sketch: big square tiles */
  #sim-showcase-bar { top: auto; bottom: 14px; left: 14px; right: 14px; flex-wrap: wrap; } #sim-showcase-bar b { font-size: 20px; }
  #sim-mode button { padding: 7px 10px; font-size: 11px; }
  .sim-title-card { padding: 26px 22px 20px; }

  body.sim-doorway-walk #sim-doorway { height: 100vh; }
  body.sim-doorway-walk #sim-doorway-ui { top: auto; bottom: 14px; }
  #sim-look { width: min(280px, calc(100vw - 28px)); }

  /* the theme's header (#masthead) is z-index 999 and starts right at the seam: everything of ours that can sit on it goes above */
  /* THE SEAM: a grip on the edge between the room and the page — slide it up or down (double-tap resets) */
  #sim-seam { position: fixed; left: 0; right: 0; top: calc(var(--sim-win) - 12px); height: 24px; z-index: 1001; touch-action: none; cursor: row-resize; display: flex; align-items: center; justify-content: center; }
  #sim-seam i { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--paper); box-shadow: 0 1px 4px rgba(0,0,0,.5); opacity: .9; }
  #sim-seam.is-dragging i { width: 64px; background: var(--gold); }
  body.sim-doorway-walk #sim-seam, body.sim-mode-web #sim-seam, body.sim-showcase-on #sim-seam { display: none; }
  /* THE ≡ AND ITS MENU: one button in the room's corner; the menu is this context's actions */
  #sim-menu-btn { position: fixed; top: 10px; right: 10px; z-index: 1002; width: 42px; height: 42px; border: 1px solid var(--chip-line); border-radius: 10px; background: var(--chip); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
  #sim-menu-btn span { display: block; width: 18px; height: 2px; background: var(--chip-ink); border-radius: 1px; }
  body.sim-doorway-walk #sim-menu-btn { display: none; }
  #sim-menu { position: fixed; top: 60px; right: 10px; left: 10px; z-index: 1002; background: var(--sheet); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.35); padding: 12px; max-height: calc(100vh - 80px); overflow: auto; }
  #sim-menu[hidden] { display: none; }
  .sim-menu-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 2px 4px 10px; border-bottom: 1px solid rgba(23,24,33,.12); margin-bottom: 8px; } .sim-menu-head b { font: 400 22px/1 var(--display); letter-spacing: .03em; } .sim-menu-head span { font: 12px var(--mono); color: var(--ink-2); }
  .sim-menu-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 8px; } .sim-menu-row button { padding: 10px; border: 1px solid var(--chip-line); border-radius: 8px; background: transparent; color: var(--ink); font: 600 13px var(--body); } .sim-menu-row button.is-on { background: var(--ink); color: var(--paper); }
  .sim-menu-item { display: block; width: 100%; box-sizing: border-box; text-align: left; padding: 12px 10px; margin: 0 0 4px; border: 0; border-radius: 8px; background: var(--paper-2, #ece6d8); color: var(--ink) !important; font: 600 15px var(--body); text-decoration: none !important; } .sim-menu-item.is-gold { background: var(--gold); }
  .sim-menu-label { font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 10px 4px 6px; }
  .sim-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .sim-menu-grid a { display: block; padding: 14px 10px; border-radius: 8px; background: var(--paper-2, #ece6d8); color: var(--ink) !important; font: 400 18px/1.1 var(--display); letter-spacing: .03em; text-decoration: none !important; }
  .sim-hint { bottom: 64px; white-space: normal; text-align: center; max-width: 80vw; }
  body.sim-doorway-on .storefront-handheld-footer-bar { display: none; }
  /* the theme's header (#masthead) is z-index 999 and starts right at the seam: ours that can sit on it stack above it */
  #sim-rail, body.sim-side-right #sim-rail, #sim-item-card, .sim-hint, .sim-toast { z-index: 1001; }
}
