/* Kofe Room — the studio: the room is the hero, the tools sit around it.
 * One accent (the lamp), soft neutral glass that reads beside bright and dark rooms,
 * and solid fallbacks where glass is not supported. */

.st, .rm-news, .rm-closed {
  --st-glass: rgba(255, 253, 249, 0.72);
  --st-glass-2: rgba(255, 255, 255, 0.86);
  --st-edge: rgba(255, 255, 255, 0.7);
  --st-line: rgba(31, 25, 18, 0.09);
  --st-ink: #1f1912;
  --st-muted: #6f6556;
  --st-faint: #9a8f7f;
  --st-sel: rgba(31, 25, 18, 0.06);
  --st-acc: #d9962f;
  --st-acc-ink: #2a1c05;
  --st-dark: rgba(22, 17, 13, 0.62);
  --st-shadow: 0 1px 2px rgba(40, 28, 12, 0.06), 0 18px 44px -22px rgba(40, 28, 12, 0.4);
  --st-r: 22px;
}
:root:not([data-theme="light"]) :is(.st, .rm-news, .rm-closed) {
  --st-glass: rgba(34, 28, 22, 0.72);
  --st-glass-2: rgba(48, 40, 32, 0.9);
  --st-edge: rgba(255, 255, 255, 0.08);
  --st-line: rgba(244, 238, 226, 0.1);
  --st-ink: #f4eee2;
  --st-muted: #b9ae9d;
  --st-faint: #8c8273;
  --st-sel: rgba(244, 238, 226, 0.08);
  --st-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 44px -22px rgba(0, 0, 0, 0.8);
}

/* -------------------------------------------------------------- layout */
.rm-shell .main:has(.st) { max-width: none; padding-top: 12px; }
#rm-body.is-editing { display: block !important; }
.st {
  --tray-h: 208px;
  --avail-h: calc(100vh - var(--top-h) - var(--tray-h) - 44px);
  --avail-h: calc(100dvh - var(--top-h) - var(--tray-h) - 44px);
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "tray";
  gap: 12px; max-width: 1680px; margin: 0 auto; color: var(--st-ink); font-family: var(--body);
}
.st.has-insp { grid-template-columns: minmax(0, 1fr) clamp(320px, 26vw, 380px); grid-template-areas: "stage insp" "tray tray"; }
.st-stage { grid-area: stage; justify-self: center; width: min(100%, calc(var(--avail-h) * 16 / 9)); position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--st-shadow) !important; }
.st-stage .rm-scene { width: 100%; max-height: none; min-height: 0; }
.st-insp { grid-area: insp; min-height: 0; }
.st-tray { grid-area: tray; }

/* -------------------------------------------------------------- the glass */
.st-tray, .st-insp:not(.is-sheet), .st-bar .st-grp, .st-ctx, .st-restore {
  background: var(--st-glass); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: var(--st-shadow), inset 0 1px 0 var(--st-edge), inset 0 0 0 1px var(--st-line);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .st-tray, .st-insp:not(.is-sheet), .st-bar .st-grp, .st-ctx, .st-restore { background: var(--st-glass-2); }
}

/* -------------------------------------------------------------- controls */
.st button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.st button:disabled { cursor: default; opacity: 0.38; }
.st :focus-visible { outline: 2px solid var(--st-acc); outline-offset: 2px; }
.st-ic { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 12px; background: transparent; transition: background 0.15s ease, transform 0.1s ease; }
.st-ic svg { width: 19px; height: 19px; }
.st-ic:not(:disabled):hover { background: var(--st-sel); }
.st-ic:not(:disabled):active { transform: scale(0.94); }
.st-ic[aria-pressed="true"] { background: var(--st-sel); color: var(--st-acc); }
.st-ic.is-sm { width: 30px; height: 30px; border-radius: 10px; }
.st-ic.is-sm svg { width: 16px; height: 16px; }
.st-txt { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; font-size: 14px; font-weight: 600; white-space: nowrap; }
.st-txt svg { width: 16px; height: 16px; }
.st-txt:hover { background: var(--st-sel); }
.st-txt.is-danger { color: var(--danger); padding-left: 0; }
.st-pill { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--st-ink); color: var(--st-glass-2) !important; font-size: 13px; font-weight: 650; white-space: nowrap; }
:root:not([data-theme="light"]) .st-pill { color: #1b1611 !important; }
.st-done { height: 36px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--st-acc); color: var(--st-acc-ink); font-size: 14px; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); transition: filter 0.15s ease; }
.st-done:hover:not(:disabled) { filter: brightness(1.05); }
.st-done.is-failed { background: var(--danger); color: #fff; }
.st-muted { color: var(--st-muted); font-size: 13.5px; line-height: 1.45; margin: 0; }
.st-k { display: block; color: var(--st-muted); font-size: 12.5px; font-weight: 650; letter-spacing: 0.01em; margin: 0; }

[data-tip] { position: relative; }
@media (hover: hover) {
  .st [data-tip]:hover::after, .rm-page [data-tip].rm-note-x:hover::after {
    content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 40;
    padding: 5px 9px; border-radius: 8px; background: #1b1611; color: #f4eee2; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none;
  }
  .st-ctx [data-tip]:hover::after { bottom: auto; top: calc(100% + 8px); }
}

/* -------------------------------------------------------------- on the room */
.st-bar { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 30; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.st-grp { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 16px; pointer-events: auto; }
.st-restore { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; white-space: nowrap; max-width: calc(100% - 24px); animation: st-in 0.3s var(--ease) both; }
.st-restore span { overflow: hidden; text-overflow: ellipsis; }
.st-ctx { position: absolute; z-index: 25; display: flex; align-items: center; gap: 1px; padding: 4px 5px; border-radius: 16px; max-width: calc(100% - 16px); overflow-x: auto; scrollbar-width: none; animation: st-in 0.18s var(--ease) both; }
.st-ctx::-webkit-scrollbar { display: none; }
.st-ctx[hidden] { display: none; }
.st-ctx-n { padding: 0 8px 0 8px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.st-ctx-sep { flex: none; width: 1px; height: 20px; margin: 0 3px; background: var(--st-line); }
.st-ctx .st-txt { height: 34px; padding: 0 10px; }
.st-guides i { position: absolute; z-index: 24; pointer-events: none; opacity: 0; transition: opacity 0.1s; background: rgba(217, 150, 47, 0.9); box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.5); }
.st-guides .st-gx { top: 0; bottom: 0; width: 1px; }
.st-guides .st-gy { left: 0; right: 0; height: 1px; }
.st-guides i.is-on { opacity: 1; }
@keyframes st-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.st-restore { animation-name: st-in-c; }
@keyframes st-in-c { from { opacity: 0; transform: translate(-50%, 4px); } to { opacity: 1; transform: translateX(-50%); } }

/* what is picked in the room: a soft lit outline, not a gold box */
.st .rm-scene.is-edit .rm-obj, .st .rm-scene.is-edit .rm-furn { cursor: grab; touch-action: none; }
.st .rm-scene.is-edit .rm-obj.is-dragging, .st .rm-scene.is-edit .rm-furn.is-dragging { cursor: grabbing; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.45)); }
.st .rm-scene.is-edit .rm-obj:hover:not(.is-selected) { outline: 1.5px solid rgba(255, 255, 255, 0.55); outline-offset: 3px; border-radius: 6px; }
.st .rm-scene.is-edit .is-selected { outline: 2px solid #fff !important; outline-offset: 4px; border-radius: 8px; box-shadow: 0 0 0 6px rgba(217, 150, 47, 0.35) !important; }

/* -------------------------------------------------------------- the tray */
.st-tray { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 8px; height: var(--tray-h); padding: 10px 12px 12px; border-radius: var(--st-r); min-width: 0; }
.st-handle { display: none; }
.st-cats { display: flex; gap: 2px; padding: 3px; border-radius: 13px; background: var(--st-sel); justify-self: start; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.st-cats::-webkit-scrollbar { display: none; }
.st-cats button { flex: none; height: 32px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--st-muted); font-size: 13.5px; font-weight: 650; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.st-cats button[aria-selected="true"] { background: var(--st-glass-2); color: var(--st-ink); box-shadow: 0 1px 2px rgba(40, 28, 12, 0.12), 0 0 0 0.5px rgba(40, 28, 12, 0.06); }
.st-body { position: relative; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.st-hint { margin: 0; color: var(--st-faint); font-size: 12.5px; }

.st-strip { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; min-height: 0; flex: 1; align-items: stretch; }
.st-strip > * { scroll-snap-align: start; }

/* rooms: a picture of each, its name under it */
.st-room { flex: none; display: grid; gap: 6px; width: 148px; padding: 0; border: 0; background: none; text-align: left; }
.st-room-pic { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 14px; background: center / cover no-repeat #1a1410; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.st-room:hover .st-room-pic { transform: translateY(-2px); }
.st-room[aria-checked="true"] .st-room-pic { box-shadow: 0 0 0 2px var(--st-glass-2), 0 0 0 4px var(--st-acc); }
.st-room b { font-size: 13px; font-weight: 650; line-height: 1.25; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-check { position: absolute; right: 7px; top: 7px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--st-acc); color: var(--st-acc-ink); }
.st-check svg { width: 13px; height: 13px; }

/* objects: one look for every card, one action */
.st-sub, .st-flt, .st-seg, .st-chips { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.st-sub::-webkit-scrollbar, .st-flt::-webkit-scrollbar, .st-seg::-webkit-scrollbar, .st-chips::-webkit-scrollbar { display: none; }
.st-chips.is-wrap { flex-wrap: wrap; overflow: visible; }
:is(.st-sub, .st-flt, .st-seg, .st-chips) > button, .st-preset > button:first-child {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px;
  background: var(--st-sel); color: var(--st-ink); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background 0.15s, color 0.15s;
}
:is(.st-sub, .st-flt, .st-seg, .st-chips) > button:hover { background: color-mix(in srgb, var(--st-ink) 10%, transparent); }
:is(.st-sub, .st-flt, .st-seg, .st-chips) > button[aria-pressed="true"] { background: var(--st-ink); color: var(--st-glass-2); }
:root:not([data-theme="light"]) :is(.st-sub, .st-flt, .st-seg, .st-chips) > button[aria-pressed="true"] { color: #1b1611; }
.st-chips.is-wrap > button { height: auto; min-height: 32px; padding: 6px 12px; white-space: normal; text-align: left; line-height: 1.3; }
.st-seg i, .st-preset i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.st-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--st-acc); color: var(--st-acc-ink); font-size: 11px; font-weight: 750; }

.st-item { position: relative; flex: none; display: grid; grid-template-rows: auto auto; align-content: start; gap: 5px; width: 104px; padding: 0; border: 0; background: none; text-align: center; }
.st-item-pic { position: relative; display: grid; place-items: center; height: 74px; border-radius: 14px; background: var(--st-sel); overflow: hidden; transition: background 0.15s, box-shadow 0.15s; }
.st-item-pic img, .st-item-pic svg { max-width: 76%; max-height: 80%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.22)); }
.st-item:hover .st-item-pic { background: color-mix(in srgb, var(--st-ink) 10%, transparent); }
.st-item.is-on .st-item-pic { box-shadow: 0 0 0 2px var(--st-acc); }
.st-item b { font-size: 12.5px; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-item small { margin-top: -3px; color: var(--st-faint); font-size: 11px; }
.st-plus { position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--st-glass-2); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); opacity: 0; transform: scale(0.8); transition: opacity 0.15s, transform 0.15s; }
.st-plus svg { width: 13px; height: 13px; filter: none !important; }
.st-item.is-add:hover .st-plus, .st-item.is-add:focus-visible .st-plus { opacity: 1; transform: none; }
@media (hover: none) { .st-plus { opacity: 1; transform: none; } }
.st-item.is-stored { width: 132px; }
.st-item-acts { display: flex; justify-content: center; gap: 4px; align-items: center; }
.st-empty { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; color: var(--st-muted); font-size: 13.5px; }
.st-empty svg { width: 22px; height: 22px; flex: none; color: var(--st-faint); }
.st-find { display: flex; gap: 8px; align-items: center; min-width: 0; }
.st-search { display: flex; align-items: center; gap: 6px; flex: 0 1 200px; min-width: 120px; height: 32px; padding: 0 10px; border-radius: 999px; background: var(--st-sel); color: var(--st-muted); }
.st-search svg { width: 15px; height: 15px; flex: none; }
.st-search input { width: 100%; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 13.5px; color: var(--st-ink); }
.st-flt { flex: 1; min-width: 0; }

/* atmosphere */
.st-rows { display: grid; gap: 8px; overflow-y: auto; padding-right: 4px; min-height: 0; }
.st-row { display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; }
.st-input { height: 34px; width: min(420px, 100%); padding: 0 12px; border: 0; border-radius: 10px; background: var(--st-sel); color: var(--st-ink); font: inherit; font-size: 14px; outline: none; }
.st-input:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--st-acc) 60%, transparent); }
.st-preset { display: inline-flex; align-items: center; flex: none; border-radius: 999px; background: var(--st-sel); }
.st-preset > button:first-child { background: none; padding-right: 4px; }
.st-x { display: grid; place-items: center; width: 26px; height: 26px; margin-right: 3px; border: 0; border-radius: 50%; background: none; color: var(--st-muted); }
.st-x svg { width: 12px; height: 12px; }
.st-x:hover { background: var(--st-sel); color: var(--st-ink); }
.st-add { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px dashed color-mix(in srgb, var(--st-ink) 22%, transparent); border-radius: 999px; background: none; font-size: 13px; font-weight: 600; }
.st-add svg { width: 14px; height: 14px; }
.st-preset-new { display: inline-flex; gap: 6px; align-items: center; flex: none; }
.st-preset-new input { width: 160px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--st-sel); color: var(--st-ink); font: inherit; font-size: 13.5px; outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--st-acc) 50%, transparent); }

/* my content: a few calm doors */
.st-doors { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; overflow-y: auto; min-height: 0; padding: 2px; }
.st-door { display: grid; grid-template-columns: 36px minmax(0, 1fr) 16px; align-items: center; gap: 10px; min-height: 58px; padding: 8px 10px; border: 0; border-radius: 14px; background: var(--st-sel); text-align: left; transition: background 0.15s, box-shadow 0.15s; }
.st-door:hover { background: color-mix(in srgb, var(--st-ink) 10%, transparent); }
.st-door[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--st-acc); }
.st-door-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--st-glass-2); color: var(--st-acc); box-shadow: 0 1px 2px rgba(40, 28, 12, 0.08); }
.st-door-ic svg { width: 20px; height: 20px; }
.st-door b { display: block; font-size: 14px; font-weight: 650; line-height: 1.25; }
.st-door small { display: block; color: var(--st-muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-door > svg { width: 16px; height: 16px; color: var(--st-faint); }

/* the inspector */
.st-insp:not(.is-sheet) { position: sticky; top: calc(var(--top-h) + 12px); display: flex; flex-direction: column; height: calc(var(--avail-h)); max-height: calc(var(--avail-h)); border-radius: var(--st-r); overflow: hidden; animation: st-in 0.22s var(--ease) both; }
.st-insp-h { display: flex; align-items: center; gap: 6px; padding: 10px 12px 6px; }
.st-insp-h h3 { margin: 0; font-family: var(--body); font-size: 16px; font-weight: 700; }
.st-insp-b { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 14px; padding: 6px 16px 18px; }
.st-insp-b .field { display: grid; gap: 6px; margin: 0; }
.st-insp-b .field label { color: var(--st-muted); font-size: 12.5px; font-weight: 650; }
.st-insp-b :is(input:not([type=checkbox]):not([type=range]), textarea) { width: 100%; min-height: 40px; padding: 9px 12px; border: 0; border-radius: 11px; background: var(--st-sel); color: var(--st-ink); font: inherit; font-size: 15px; outline: none; box-shadow: none; resize: vertical; }
.st-insp-b :is(input, textarea):focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--st-acc) 60%, transparent); }
.st-insp-b .rm-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.st-insp-b .rm-ph input { min-height: 34px; padding: 6px 10px; font-size: 13px; margin-top: 6px; }
.st-insp-b .rm-add { border: 1px dashed color-mix(in srgb, var(--st-ink) 22%, transparent); background: none; border-radius: 12px; color: var(--st-muted); }
.st-insp-b .rm-addbox { padding: 12px; border: 0; border-radius: 14px; background: var(--st-sel); }
.st-insp-b .rm-addbox :is(input) { background: var(--st-glass-2); }
.st-insp-b .rm-li { border: 0; border-radius: 12px; background: var(--st-sel); }
.st-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.st-radio { display: grid; gap: 6px; }
.st-radio button { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; border: 0; border-radius: 14px; background: var(--st-sel); text-align: left; }
.st-radio button i { width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--st-ink) 35%, transparent); }
.st-radio button[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--st-acc); }
.st-radio button[aria-checked="true"] i { box-shadow: inset 0 0 0 5px var(--st-acc); }
.st-radio b { display: block; font-size: 14px; }
.st-radio small { display: block; color: var(--st-muted); font-size: 12.5px; line-height: 1.4; }

/* -------------------------------------------------------------- on a phone: the room on top, a sheet below */
@media (max-width: 760px) {
  .rm-studio .tabbar, .rm-studio .main > .page-foot { display: none !important; }
  .rm-studio body { overscroll-behavior: none; }
  .rm-shell .main:has(.st) { padding: 0 !important; }
  .st { --sheet-h: 252px; --avail-h: calc(100dvh - var(--top-h) - var(--sheet-h) - 10px); display: block; padding: 6px 0 calc(var(--sheet-h) + 10px); }
  .st-stage { width: min(100%, calc(var(--avail-h) / 1.4)); margin: 0 auto; border-radius: 20px; }
  .st-bar { left: 8px; right: 8px; top: 8px; }
  .st-grp { padding: 3px; border-radius: 14px; }
  .st-ic { width: 40px; height: 40px; }
  .st-done, .st-txt { height: 40px; }
  .st-restore { top: 58px; font-size: 12.5px; white-space: normal; border-radius: 16px; }
  .st-ctx { padding: 3px; }
  .st-ctx-n { display: none; }
  .st-tray {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--sheet-h);
    padding: 6px 12px calc(12px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0;
    grid-template-rows: auto auto 1fr; transition: height 0.32s var(--ease);
  }
  .st-tray[data-size="full"] { height: min(82dvh, calc(100dvh - var(--top-h) - 40px)); }
  .st-handle { display: grid; place-items: center; justify-self: center; width: 64px; height: 22px; margin: -2px 0 -4px; border: 0; background: none; touch-action: none; }
  .st-handle i { width: 38px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--st-ink) 26%, transparent); }
  .st-cats { justify-self: stretch; }
  .st-cats button { flex: 1 0 auto; padding: 0 12px; height: 36px; }
  .st-tray[data-size="full"] .st-strip { flex-wrap: wrap; overflow-y: auto; align-content: start; }
  .st-tray[data-size="full"] .st-room { width: calc(50% - 5px); }
  .st-room { width: 132px; }
  .st-item { width: 92px; }
  .st-item-pic { height: 70px; }
  .st-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .st-row .st-k { grid-column: 1 / -1; }
  .st-doors { grid-template-columns: minmax(0, 1fr); }
  .st-find { flex-wrap: wrap; }
  .st-search { flex: 1 1 100%; }
  .st-insp.is-sheet { display: flex; flex-direction: column; min-height: 0; grid-row: 2 / -1; }
  .st-insp.is-sheet .st-insp-h { padding: 4px 0 4px; }
  .st-insp.is-sheet .st-insp-b { padding: 6px 2px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .st *, .st-tray { animation: none !important; transition: none !important; }
}

/* -------------------------------------------------------------- around the room, not editing */
.rm-news {
  position: absolute; left: 16px; bottom: 16px; z-index: 6; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
  padding: 8px 12px 8px 12px; border: 0; border-radius: 16px; background: var(--st-glass); color: var(--st-ink); font: inherit; text-align: left; cursor: pointer;
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: var(--st-shadow), inset 0 1px 0 var(--st-edge);
  animation: st-in 0.4s var(--ease) 0.4s both;
}
.rm-news span { display: grid; min-width: 0; }
.rm-news small { color: var(--st-muted); font-size: 11.5px; font-weight: 650; }
.rm-news b { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-news svg { width: 16px; height: 16px; flex: none; color: var(--st-faint); }
.rm-news-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--st-acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--st-acc) 25%, transparent); }
.rm-mini ~ .rm-news, .rm-news:has(~ .rm-mini) { bottom: 76px; }
.rm-newsheet { display: grid; gap: 14px; }
.rm-newslist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-height: 56vh; overflow-y: auto; }
.rm-newslist li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; }
.rm-newslist b { font-size: 14.5px; }
.rm-newslist p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.rm-newslist small { color: var(--muted); font-size: 12px; }
.rm-news-art { display: grid; place-items: center; width: 40px; height: 40px; }
.rm-news-art img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rm-notes li { position: relative; }
.rm-note-x { position: absolute; right: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 9px; background: none; color: var(--faint); cursor: pointer; opacity: 0; transition: opacity 0.15s, background 0.15s; }
.rm-note-x svg { width: 15px; height: 15px; }
.rm-notes li:hover .rm-note-x, .rm-note-x:focus-visible { opacity: 1; }
.rm-note-x:hover { background: var(--surface); color: var(--danger); }
@media (hover: none) { .rm-note-x { opacity: 0.7; } }
.rm-gb-k { margin-top: 6px; }
.rm-closed { display: grid; justify-items: center; gap: 14px; max-width: 460px; margin: 10vh auto; padding: 32px; text-align: center; border-radius: 28px; background: var(--st-glass); box-shadow: var(--st-shadow), inset 0 1px 0 var(--st-edge); }
.rm-closed h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.2; color: var(--st-ink); }

/* animation rests while the room is out of sight */
.rm-scene.is-away *, .rm-scene.is-away *::before, .rm-scene.is-away *::after { animation-play-state: paused !important; }
.st-subrow { display: flex; align-items: center; gap: 14px; min-width: 0; }
.st-subrow .st-hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-cats .st-s { display: none; }
.st-tray { justify-self: center; width: max(min(100%, calc(var(--avail-h) * 16 / 9)), min(100%, 980px)); }
.st.has-insp .st-tray { width: 100%; }
.st-room { width: 140px; }
@media (max-width: 760px) {
  .st { --sheet-h: 262px; }
  .st-tray { width: auto; justify-self: stretch; background: var(--st-glass-2); }
  .st-tray[data-size="full"] { box-shadow: 0 -20px 60px -10px rgba(20, 12, 4, 0.35), inset 0 1px 0 var(--st-edge); }
  .st-subrow .st-hint { display: none; }
  .st-cats .st-l { display: none; }
  .st-cats .st-s { display: inline; }
}
.st-subrow .st-find { flex: 1; min-width: 0; }
.st-insp-b .btn-primary { color: var(--btn-ink) !important; }
.st-insp-b .btn-ghost, .st-insp-b .btn-quiet { color: var(--st-ink); }
.st-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; row-gap: 10px; align-content: start; }
.st-row { grid-template-columns: 92px minmax(0, 1fr) auto; }
.st-row.is-wide { grid-column: 1 / -1; }
.st-row .st-chips { flex-wrap: wrap; overflow: visible; }
.st-row .st-chips > button { height: 28px; padding: 0 10px; font-size: 12.5px; }
@media (max-width: 1100px) { .st-rows { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .st-subrow { flex-wrap: wrap; gap: 8px; }
  .st-subrow .st-find { flex: 1 1 100%; flex-wrap: nowrap; }
  .st-subrow .st-search { flex: 0 0 132px; }
  .st-row .st-chips { flex-wrap: nowrap; overflow-x: auto; }
}
@media (max-width: 760px) {
  .st { --sheet-h: 278px; }
  .st-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .st-row .st-k { grid-column: 1 / -1; }
  .st-row > .st-seg, .st-row > .st-chips, .st-row > .st-input { grid-column: 1; min-width: 0; }
  .st-item-pic { height: 60px; }
  .st-insp.is-sheet { grid-area: auto; grid-row: 2 / -1; grid-column: 1 / -1; }
  .st-tray:has(.st-insp.is-sheet) { grid-template-rows: auto minmax(0, 1fr); }
}

/* the fire in the fireplace room gives a little living light to the floor */
.rm-scene.theme-fireplace.has-plate .rm-backdrop::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(38% 46% at 5% 62%, rgba(255, 150, 60, 0.26), transparent 70%);
  animation: rm-firelight 3.4s ease-in-out infinite;
}
@keyframes rm-firelight { 0%, 100% { opacity: 0.75; } 30% { opacity: 1; } 55% { opacity: 0.82; } 80% { opacity: 0.95; } }
@media (prefers-reduced-motion: reduce) { .rm-scene.theme-fireplace.has-plate .rm-backdrop::after { animation: none; } }
.st-stage { align-self: start; }

/* ---------------------------------------------------------------- atmosphere: big, playful choices (one row at a time) */
.st-looks, .st-sounds, .st-moods { gap: 12px; align-items: start; padding-top: 4px; }
.st-look, .st-sound, .st-mood { position: relative; flex: none; display: grid; justify-items: center; gap: 7px; padding: 0; border: 0; background: none; text-align: center; transition: transform 0.18s var(--ease); }
.st-look b, .st-sound b, .st-mood b { max-width: 100%; font-size: 12.5px; font-weight: 650; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--st-muted); transition: color 0.15s; }
.st-look[aria-checked="true"] b, .st-sound[aria-checked="true"] b, .st-mood[aria-checked="true"] b { color: var(--st-ink); }
.st-look:active, .st-sound:active, .st-mood:active { transform: scale(0.95); }

/* light: the room itself, in each light (like choosing a filter) */
.st-look { width: 116px; }
.st-look-pic { position: relative; display: grid; place-items: center; width: 116px; height: 78px; border-radius: 18px; overflow: hidden; background: center / cover no-repeat #1a1410; box-shadow: 0 6px 16px -10px rgba(30, 18, 6, 0.6); transition: box-shadow 0.2s, transform 0.2s var(--ease); }
.st-look:hover .st-look-pic { transform: translateY(-2px); }
.st-look[aria-checked="true"] .st-look-pic { box-shadow: 0 0 0 2.5px var(--st-glass-2), 0 0 0 5px var(--st-acc), 0 10px 22px -10px rgba(217, 150, 47, 0.8); }
.st-tint { position: absolute; inset: 0; pointer-events: none; }
.tint-warm { background: radial-gradient(90% 80% at 30% 20%, rgba(255, 190, 110, 0.45), rgba(255, 140, 60, 0.18) 60%, rgba(40, 18, 4, 0.15)); mix-blend-mode: soft-light; }
.tint-golden { background: linear-gradient(160deg, rgba(255, 215, 120, 0.55), rgba(255, 170, 60, 0.25)); mix-blend-mode: overlay; }
.tint-candle { background: radial-gradient(70% 60% at 50% 70%, rgba(255, 150, 50, 0.45), rgba(30, 10, 0, 0.5)); mix-blend-mode: multiply; }
.tint-dim { background: linear-gradient(180deg, rgba(10, 8, 6, 0.55), rgba(10, 8, 6, 0.35)); }
.tint-cool { background: linear-gradient(160deg, rgba(150, 190, 240, 0.5), rgba(90, 120, 170, 0.3)); mix-blend-mode: soft-light; }

/* sound: soft orbs, each its own colour */
.st-sound { width: 92px; }
.st-sound-orb { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 18px -10px rgba(30, 18, 6, 0.7); transition: box-shadow 0.2s, transform 0.2s var(--ease); }
.st-sound-orb svg { width: 28px; height: 28px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2)); }
.snd-none .st-sound-orb { background: linear-gradient(160deg, #cfc6b8, #9d9384); }
.snd-rain .st-sound-orb { background: linear-gradient(160deg, #8fc0ff, #4f7fd6); }
.snd-fire .st-sound-orb { background: linear-gradient(160deg, #ffc56b, #f0702e); }
.snd-cafe .st-sound-orb { background: linear-gradient(160deg, #d9a87a, #8a5a34); }
.st-sound:hover .st-sound-orb, .st-mood:hover .st-mood-orb { transform: translateY(-2px) scale(1.03); }
.st-sound[aria-checked="true"] .st-sound-orb, .st-mood[aria-checked="true"] .st-mood-orb { box-shadow: 0 0 0 2.5px var(--st-glass-2), 0 0 0 5px var(--st-acc), 0 10px 22px -8px rgba(217, 150, 47, 0.8); }
.st-listen { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: var(--st-sel); font-size: 13px; font-weight: 650; white-space: nowrap; }
.st-listen svg { width: 15px; height: 15px; }
.st-listen.is-on { background: var(--st-acc); color: var(--st-acc-ink); }
.st-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.st-eq b { width: 3px; border-radius: 2px; background: currentColor; animation: st-eq 0.9s ease-in-out infinite; }
.st-eq b:nth-child(2) { animation-delay: -0.3s; } .st-eq b:nth-child(3) { animation-delay: -0.6s; }
@keyframes st-eq { 0%, 100% { height: 4px; } 50% { height: 12px; } }

/* mood: big friendly emoji, Snapchat style */
.st-mood { width: 84px; }
.st-mood-orb { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; font-size: 30px; line-height: 1; background: var(--st-glass-2); box-shadow: inset 0 0 0 1px var(--st-line), 0 8px 18px -12px rgba(30, 18, 6, 0.7); transition: box-shadow 0.2s, transform 0.2s var(--ease); }
.st-mood[aria-checked="true"] .st-mood-orb { background: radial-gradient(circle at 50% 35%, #fff6e2, #ffd98f); }
.st-status { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; max-width: 420px; height: 32px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--st-sel); }
.st-status-k { flex: none; color: var(--st-muted); font-size: 12.5px; font-weight: 650; }
.st-status input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--st-ink); font: inherit; font-size: 13.5px; }

/* saved atmospheres */
.st-look.is-preset .st-look-hit { padding: 0; border: 0; background: none; }
.st-look-badge { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 999px; background: rgba(20, 14, 8, 0.45); color: #fff; font-size: 13px; font-style: normal; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.st-look-badge:empty { display: none; }
.st-look-badge svg { width: 13px; height: 13px; }
.st-look-x { position: absolute; right: -6px; top: -6px; display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--st-glass-2); color: var(--st-muted); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); opacity: 0; transition: opacity 0.15s; }
.st-look-x svg { width: 11px; height: 11px; }
.st-look.is-preset:hover .st-look-x, .st-look-x:focus-visible { opacity: 1; }
@media (hover: none) { .st-look-x { opacity: 1; } }
.st-look.is-add .st-look-pic { background: none; border: 1.5px dashed color-mix(in srgb, var(--st-ink) 25%, transparent); box-shadow: none; color: var(--st-muted); }
.st-look.is-add .st-look-pic svg { width: 22px; height: 22px; }
.st-look.is-add b { color: var(--st-ink); white-space: normal; }
.st-look.is-new { width: 200px; }
.st-newname { display: flex; align-items: center; gap: 4px; width: 100%; height: 32px; padding: 0 3px 0 10px; border-radius: 999px; background: var(--st-sel); box-shadow: 0 0 0 2px color-mix(in srgb, var(--st-acc) 50%, transparent); }
.st-newname input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--st-ink); font: inherit; font-size: 13px; }
.st-newname button { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--st-acc); color: var(--st-acc-ink); }
.st-newname button svg { width: 13px; height: 13px; }
.st-saved-hint { align-self: center; max-width: 340px; margin: 0 0 18px 6px; color: var(--st-muted); font-size: 13.5px; line-height: 1.45; }

@media (max-width: 760px) {
  .st-look, .st-look-pic { width: 104px; }
  .st-look-pic { height: 70px; }
  .st-sound { width: 80px; }
  .st-sound-orb, .st-mood-orb { width: 56px; height: 56px; }
  .st-mood { width: 76px; }
  .st-status { flex: 1 1 100%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .st-eq b { animation: none; height: 8px; } }
.st { --tray-h: 222px; }
.st .st-listen { font-size: 13px; }
.st-look-pic { height: 70px; }
/* each light, clearly itself */
.lk-warm { filter: saturate(1.15) brightness(1.08); }
.lk-golden { filter: brightness(1.35) saturate(1.45) sepia(0.15); }
.lk-candle { filter: brightness(0.8) saturate(1.3); }
.lk-dim { filter: brightness(0.5) saturate(0.85); }
.lk-cool { filter: saturate(0.55) brightness(1.1); }
.tint-golden { background: linear-gradient(160deg, rgba(255, 220, 120, 0.6), rgba(255, 180, 60, 0.3)); mix-blend-mode: overlay; }
.tint-candle { background: radial-gradient(60% 55% at 50% 72%, rgba(255, 150, 50, 0.6), rgba(20, 6, 0, 0.65)); mix-blend-mode: normal; opacity: 0.75; }
.tint-cool { background: linear-gradient(160deg, rgba(140, 185, 245, 0.75), rgba(80, 115, 175, 0.55)); mix-blend-mode: color; }
.st-looks, .st-sounds, .st-moods { padding: 8px 6px 6px; }
@media (max-width: 760px) {
  .st-restore { left: 8px; right: 8px; transform: none; max-width: none; animation-name: st-in; padding: 6px 6px 6px 14px; }
  .st-restore span { flex: 1; min-width: 0; white-space: normal; line-height: 1.3; }
}
.st-group { flex: none; display: grid; align-items: start; justify-items: center; width: 22px; padding-top: 8px; }
.st-group i { writing-mode: vertical-rl; transform: rotate(180deg); font-style: normal; font-size: 11px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--st-faint); white-space: nowrap; }
.st-group + .st-room { margin-left: -4px; }
.st-rooms .st-group:not(:first-child) { margin-left: 10px; border-left: 1px solid var(--st-line); width: 30px; }
@media (max-width: 760px) {
  .st-tray[data-size="full"] .st-group { width: 100%; padding: 6px 2px 0; justify-items: start; border: 0 !important; margin: 0 !important; }
  .st-tray[data-size="full"] .st-group i { writing-mode: horizontal-tb; transform: none; }
}
/* bright rooms: the dark wall gradient and evening shade lift */
.rm-scene.is-bright { color: #2a2219; }
.rm-scene.is-bright .rm-light { mix-blend-mode: soft-light; opacity: 0.6; }
.st-room { grid-template-columns: minmax(0, 1fr); }
.st-room-pic { width: 100%; height: auto; }
.st-room { align-content: start; align-self: start; }
