/* Roomly studio — quiet paper, sage green, warm wood. */
:root {
  color-scheme: light;
}
body {
  background: #f4f1e9 !important;
  color: #364139 !important;
  font-family:
    system-ui,
    -apple-system,
    sans-serif !important;
}
header {
  padding: 16px 32px !important;
  background: #fbfaf6 !important;
  border-color: #e5e1d6 !important;
}
.logo {
  font-size: 32px !important;
  color: #354d3d;
}
header span {
  font-size: 11px !important;
  color: #919184 !important;
}
.btn {
  font-family: inherit !important;
}
.btn.d {
  background: #49634e !important;
  color: #fff !important;
  border-color: #49634e !important;
}
main {
  max-width: 1660px !important;
  grid-template-columns: minmax(0, 1fr) 354px !important;
  padding: 28px 32px !important;
  gap: 28px !important;
}
.workspace {
  min-width: 0;
}
.workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
}
.section-kicker {
  color: #8b917f !important;
  font-size: 9px !important;
  letter-spacing: 0.16em !important;
}
#roomName {
  font:
    normal 28px Georgia,
    serif;
  color: #3d4a3e;
  background: transparent;
  border: 0;
  outline: none;
  max-width: 100%;
  width: 370px;
  padding: 2px 0;
}
#roomName:focus {
  box-shadow: 0 1px #849d81;
}
.offline-dot {
  font-size: 10px;
  color: #7b8b74;
  white-space: nowrap;
}
.offline-dot:before {
  content: ' ';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #8baa80;
  border-radius: 50%;
  margin-right: 6px;
}
.stage {
  border-radius: 24px !important;
  border: 1px solid #e1dfd1 !important;
  background: radial-gradient(ellipse at 50% 43%, #fbf2df, #e9ecdf 85%) !important;
  box-shadow:
    inset 0 0 80px #c0bfa018,
    0 12px 40px #6d77540a !important;
}
#room {
  width: 100%;
  max-height: 67vh !important;
  min-height: 430px;
}
.stage-note {
  position: absolute;
  top: 20px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  color: #89917c;
  font-size: 10px;
  pointer-events: none;
}
.canvas-tools {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  background: #fffdf6eb;
  border: 1px solid #e1dfd1;
  padding: 5px;
  border-radius: 14px;
  box-shadow: 0 4px 12px #3e492a08;
}
.canvas-tools .btn {
  border: 0;
  background: transparent;
  padding: 7px 11px;
  font-size: 12px;
}
.canvas-tools .btn.on {
  background: #dde8d8;
}
.bar {
  display: none !important;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 13px 2px 22px;
  color: #929482;
  font-size: 10px;
}
.text-btn {
  background: none;
  border: 0;
  color: #6d8166;
  font: 500 11px system-ui;
  cursor: pointer;
  padding: 4px;
}
.text-btn:hover {
  color: #3e5d39;
  text-decoration: underline;
}
aside {
  background: #fcfbf7 !important;
  border-color: #e5e1d6 !important;
  border-radius: 20px !important;
  padding: 20px !important;
  max-height: calc(100vh - 130px) !important;
  top: 20px !important;
  --card: #fcfbf7;
  --soft: #f2f1e9;
  --ink: #384638;
  --mute: #8d9283;
  --line: #e5e3d9;
  --acc: #52694d;
  --onacc: #fff;
}
.nav-tabs {
  background: #eeefe7 !important;
  border: 0 !important;
}
.nav-tab {
  font-family: inherit !important;
}
.nav-tab.active {
  background: #fffdf8 !important;
  color: #465d41 !important;
}
aside h2 {
  font-weight: 400 !important;
  font-size: 26px !important;
  margin: 8px 0 !important;
}
aside p {
  font-size: 11px !important;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e1e3d7;
  border-radius: 10px;
  padding: 9px 11px;
  color: #8f9788;
  margin-bottom: 16px;
}
.search-box input {
  width: 100%;
  border: 0;
  background: none;
  outline: none;
  font: 11px system-ui;
  color: #44503c;
}
.search-box kbd {
  font-size: 10px;
  border: 1px solid #dedfd3;
  padding: 0 4px;
  border-radius: 4px;
}
.chips {
  flex-wrap: wrap !important;
  gap: 5px !important;
}
.chip {
  font-family: system-ui !important;
  font-size: 10px !important;
  white-space: nowrap;
}
.chip.on {
  background: #5e7556 !important;
  color: #fff !important;
  border-color: #5e7556 !important;
}
.catalog-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #929687;
  margin: -2px 0 10px;
}
.grid {
  gap: 8px !important;
}
.it {
  position: relative;
  background: #f1f0e7 !important;
  border: 1px solid #e9e8de !important;
  border-radius: 12px !important;
  padding: 13px 5px 9px !important;
  color: #58604f;
  cursor: pointer !important;
}
.it:hover {
  border-color: #93aa87 !important;
  background: #e9efdf !important;
}
.it svg {
  height: 66px !important;
  overflow: visible;
  padding: 4px;
}
.it span {
  font-size: 10px !important;
  font-weight: 500 !important;
}
.it .fav {
  position: absolute;
  right: 4px;
  top: 2px;
  background: none;
  border: 0;
  color: #909c84;
  cursor: pointer;
  opacity: 0;
  font-size: 14px;
  padding: 3px;
}
.it:hover .fav,
.it .fav.on {
  opacity: 1;
}
.it .fav.on {
  color: #b7837e;
}
.it:focus-visible,
.btn:focus-visible,
.chip:focus-visible,
button:focus-visible {
  outline: 2px solid #69855c;
  outline-offset: 3px;
}
#inspector {
  background: #fcfbf7;
  border: 1px solid #e3e1d5;
  border-radius: 16px;
  padding: 20px;
  min-height: 105px;
}
.empty-inspector {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #7a8670;
}
.empty-inspector > span {
  font-size: 32px;
}
.empty-inspector b {
  font:
    18px Georgia,
    serif;
  color: #58664d;
}
.empty-inspector p {
  margin: 5px 0;
  font-size: 11px;
}
.inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.inspector-head h3 {
  font: 22px Georgia;
  margin: 0;
  color: #40543d;
}
.inspector-head small {
  font-size: 10px;
  color: #8a947e;
}
.inspector-actions {
  display: flex;
  gap: 5px;
}
.designs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.design-card {
  border: 1px solid #e5e3d8;
  background: #f3f1e8;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  color: #66715c;
  font: 10px system-ui;
}
.design-card svg {
  display: block;
  width: 100%;
  height: 65px;
  margin-bottom: 5px;
  overflow: visible;
}
.design-card.on {
  border-color: #819875;
  background: #eaf0e1;
  box-shadow: 0 0 0 1px #819875;
}
.palette {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #8b9380;
}
.palette button {
  width: 20px;
  height: 20px;
  border: 2px solid #fcfbf7;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px #ddd;
}
.palette button.on {
  box-shadow: 0 0 0 2px #819875;
}
.preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.preset-grid button {
  background: #eeefe4;
  border: 1px solid #e2e6d7;
  border-radius: 12px;
  padding: 13px 8px;
  text-align: left;
  font: 24px Georgia;
  color: #7b9070;
  cursor: pointer;
}
.preset-grid b {
  font: 11px system-ui;
  display: block;
  margin-top: 8px;
  color: #53624b;
}
.preset-grid small {
  display: block;
  font: 9px system-ui;
  color: #929780;
  margin-top: 3px;
}
.preset-grid button:hover {
  background: #e2ead8;
}
.danger {
  color: #b47f70;
  text-align: left;
}
.panel-sec select {
  padding: 10px;
  border: 1px solid #dedfd3;
  border-radius: 10px;
  background: #f7f6ee;
  color: #58644f;
  width: 100%;
}
dialog {
  max-width: 460px;
  border: 1px solid #e0dfd2;
  border-radius: 22px;
  background: #fcfaf2;
  padding: 32px;
  color: #59614f;
  box-shadow: 0 30px 100px #26321f30;
}
dialog::backdrop {
  background: #2e392866;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font: 28px Georgia;
}
dialog p {
  font-size: 12px;
  line-height: 1.8;
}
dialog dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 12px;
  gap: 10px;
}
dialog dt {
  font-weight: 600;
}
dialog dd {
  margin: 0;
}
.dialog-close {
  float: right;
}
.toast {
  background: #4c6546 !important;
  color: #fff !important;
}
.saved-state {
  font-size: 9px;
  color: #8b9b7c;
}
.tab-content {
  scrollbar-width: thin;
  scrollbar-color: #d8ddcc transparent;
}
.it small {
  font-size: 8px;
}
.weather-line {
  animation: rainFall 1.4s linear infinite;
}
@keyframes rainFall {
  to {
    transform: translate(-12px, 35px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
@media (min-width: 1600px) {
  #room {
    min-height: 600px;
  }
}
@media (max-width: 1100px) {
  main {
    padding: 20px !important;
    gap: 18px !important;
    grid-template-columns: minmax(0, 1fr) 310px !important;
  }
  aside {
    padding: 16px !important;
  }
  .offline-dot {
    display: none;
  }
  #roomName {
    font-size: 25px;
  }
  header span {
    display: none;
  }
}
@media (max-width: 850px) {
  main {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
  }
  aside {
    position: static !important;
    max-height: 650px !important;
  }
  #room {
    min-height: 350px;
    max-height: none !important;
  }
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .workspace-heading {
    margin-bottom: 12px;
  }
  header {
    padding: 14px 16px !important;
  }
  .workspace-footer > span {
    max-width: 75%;
  }
  .designs {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  #room {
    min-height: 300px;
  }
  #roomName {
    width: 280px;
    font-size: 23px;
  }
  .stage-note {
    top: 12px;
    left: 14px;
    right: 14px;
    font-size: 9px;
  }
  .canvas-tools {
    bottom: 10px;
  }
  .canvas-tools .btn {
    padding: 5px 8px;
  }
  .inspector-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .designs {
    grid-template-columns: repeat(2, 1fr);
  }
  .workspace-footer {
    font-size: 9px;
  }
  #inspector {
    padding: 15px;
  }
  .act {
    gap: 4px;
  }
  .act .btn {
    padding: 8px;
  }
  .logo {
    font-size: 27px !important;
  }
}
/* Placement, architecture and local play. */
#placementStatus {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  font: 10px system-ui;
  color: #64795a;
  background: #fcfbf2e8;
  border: 1px solid #d8dfcb;
  border-radius: 9px;
  padding: 7px 12px;
  max-width: 86%;
  text-align: center;
  pointer-events: none;
  z-index: 6;
}
#placementStatus.invalid {
  color: #ac665b;
  border-color: #dbb4a8;
}
#objectMenu {
  position: absolute;
  z-index: 7;
  transform: translateX(-50%);
  display: flex;
  padding: 4px;
  border: 1px solid #dfdfd0;
  border-radius: 12px;
  background: #fffdf4f5;
  box-shadow: 0 6px 20px #3c4c2820;
}
#objectMenu[hidden],
#turnBanner[hidden],
#overflowTray[hidden] {
  display: none;
}
#objectMenu button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #627756;
  width: 31px;
  height: 29px;
  cursor: pointer;
  font-size: 17px;
}
#objectMenu button:hover {
  background: #e6eddc;
}
#turnBanner {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  background: #f8f4e4;
  border: 1px solid #d8deca;
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 11px;
  color: #6a795c;
  max-width: 85%;
  text-align: center;
}
.secret-room #room {
  visibility: hidden;
}
.secret-room:after {
  content: '✧ Тайный выбор · ваша общая комната скоро откроется';
  position: absolute;
  inset: 35% 12% auto;
  text-align: center;
  line-height: 1.8;
  font: 23px Georgia;
  color: #7f8f73;
  pointer-events: none;
}
.secret-room .canvas-tools {
  visibility: hidden;
}
.secret-room #placementStatus {
  display: none;
}
.placement-inspector {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 20px;
}
.placement-inspector svg {
  width: 100%;
  height: 90px;
}
.placement-inspector h3 {
  font: 24px Georgia;
  margin: 4px 0;
}
.placement-inspector p {
  font-size: 11px;
  color: #8e967f;
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.material-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 18px;
}
.material-grid label,
.wall-color {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #e3e4d6;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 10px;
  color: #7d8971;
}
.material-grid input,
.wall-color input {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.inspector-options {
  margin-top: 12px;
}
.saved-looks {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  overflow: auto;
}
.saved-looks svg {
  width: 40px;
  height: 35px;
}
.note-editor {
  margin-top: 16px;
  border-top: 1px solid #e5e5d8;
  padding-top: 14px;
  font-size: 11px;
  color: #7d8d71;
}
.note-editor summary {
  cursor: pointer;
}
.note-editor textarea {
  display: block;
  width: 100%;
  min-height: 75px;
  resize: vertical;
  margin: 12px 0;
  border: 1px solid #dfdfd0;
  background: #f7f5ea;
  border-radius: 9px;
  padding: 12px;
  color: #52674b;
  font: 12px/1.7 system-ui;
}
.setting-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: #849077;
}
.setting-label:has(input[type='checkbox']) {
  flex-direction: row;
  align-items: center;
}
.setting-label input {
  accent-color: #7a946a;
}
.panel-sec small {
  font-size: 10px;
  color: #969b85;
}
.player-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}
.player-names label {
  font-size: 10px;
  color: #86917a;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.player-names input {
  width: 100%;
  padding: 10px;
  border: 1px solid #dedfcf;
  background: #f6f4e9;
  border-radius: 9px;
  color: #5b6e50;
  font: 12px system-ui;
}
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.activity-card {
  background: #eef0e3;
  border: 1px solid #e0e5d5;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  color: #637c56;
}
.activity-card:hover {
  background: #e5ebd9;
}
.activity-card span {
  float: left;
  font-size: 25px;
  margin-right: 14px;
}
.activity-card b {
  display: block;
  font: 12px system-ui;
  margin: 0 0 5px;
}
.activity-card small {
  font: 10px/1.6 system-ui;
  color: #91997f;
}
.current-activity {
  margin-top: 16px;
  border: 1px solid #ccdbbe;
  border-radius: 13px;
  background: #f3f5e9;
  padding: 16px;
}
.current-activity h3 {
  font: 20px Georgia;
  color: #5b704f;
}
.current-activity p {
  line-height: 1.8;
}
#overflowTray {
  background: #eee5d3;
  border: 1px solid #e0d4bb;
  padding: 15px;
  border-radius: 13px;
  margin-bottom: 14px;
}
#overflowTray p {
  font-size: 11px;
  color: #968b73;
}
.tray-items {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-tab {
  padding: 9px 6px !important;
}
.canvas-tools {
  white-space: nowrap;
}
.canvas-tools .btn {
  padding: 7px 9px !important;
}
.steam {
  animation: steamRise 3s ease-out infinite;
}
.plant-sway {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: leafSway 7s ease-in-out infinite;
}
.fire-flicker {
  animation: fireDance 1.2s ease-in-out infinite;
}
.sleeping {
  animation: sleepDrift 4s ease-in-out infinite;
}
.music-note {
  animation: sleepDrift 2s ease-out infinite;
}
.window-rain {
  animation: windowDrip 1.2s linear infinite;
}
.snowflake {
  animation: snowDrift 5s ease-in-out infinite;
}
@keyframes steamRise {
  from {
    transform: translateY(5px);
    opacity: 0;
  }
  30% {
    opacity: 0.65;
  }
  to {
    transform: translateY(-14px);
    opacity: 0;
  }
}
@keyframes leafSway {
  50% {
    transform: skewX(0.8deg);
  }
}
@keyframes fireDance {
  50% {
    opacity: 0.45;
    transform: translateY(-2px);
  }
}
@keyframes sleepDrift {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-6px);
  }
}
@keyframes windowDrip {
  to {
    transform: translate(-3px, 8px);
  }
}
@keyframes snowDrift {
  50% {
    transform: translate(2px, 4px);
    opacity: 0.4;
  }
}
@media (max-width: 1100px) {
  .material-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .canvas-tools .btn {
    padding: 6px !important;
    font-size: 10px !important;
  }
  #placementStatus {
    bottom: 58px;
    font-size: 9px;
    width: 85%;
  }
  .placement-inspector {
    grid-template-columns: 65px 1fr;
    gap: 12px;
  }
  .placement-inspector .row {
    gap: 4px;
  }
  .material-grid {
    gap: 6px;
  }
  .material-grid label {
    padding: 7px;
    font-size: 9px;
  }
  .stage-note {
    font-size: 8px !important;
  }
  .secret-room:after {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .steam,
  .plant-sway,
  .fire-flicker,
  .sleeping,
  .music-note,
  .window-rain,
  .snowflake {
    animation: none !important;
  }
}
/* Keep controls in their own strip so they never cover the furniture. */
.stage {
  padding-bottom: 88px !important;
}
#placementStatus {
  bottom: 65px;
}
#room {
  overflow: visible;
}
/* The changing workbench, inspired by a small furniture showroom. */
.compact-studio {
  background: #eae9df !important;
}
.compact-studio header {
  background: #f4f2e9 !important;
  border-color: #dedfd3 !important;
}
.compact-studio main {
  max-width: 1600px !important;
  grid-template-columns: minmax(0, 1fr) 356px !important;
  gap: 22px !important;
  padding-top: 18px !important;
}
.studio-nav {
  grid-column: 1/-1;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  background: #3c463eea;
  border: 1px solid #69706570;
  border-radius: 25px;
  box-shadow: 0 5px 18px #34422e12;
  max-width: 100%;
  overflow: auto;
  scrollbar-width: none;
}
.studio-nav button {
  background: transparent;
  color: #d4dacd;
  border: 0;
  border-radius: 20px;
  padding: 10px 22px;
  font: 11px system-ui;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.2s;
}
.studio-nav button.active {
  background: #f0efdf2b;
  color: #fff9e9;
  box-shadow: inset 0 0 0 1px #f6f2d820;
}
.studio-nav button:hover {
  background: #f0efdf18;
}
.compact-studio .workspace-heading {
  margin-bottom: 15px;
}
.compact-studio #roomName {
  font-size: 27px;
}
.compact-studio .stage {
  background: radial-gradient(ellipse at 47% 38%, #faf1dc, #e3e7d8 80%) !important;
  border: 1px solid #d4d9c9 !important;
  box-shadow:
    inset 0 0 90px #f3dfb916,
    0 16px 45px #48593a0a !important;
  transition:
    background 0.7s,
    border-color 0.7s;
}
.compact-studio #room {
  min-height: 480px !important;
  max-height: 68vh !important;
}
.compact-studio .stage-note {
  font-size: 10px;
  color: #7f8b73;
}
.compact-studio aside {
  background: #39443ced !important;
  border: 1px solid #69756670 !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 40px #28382212 !important;
  padding: 20px !important;
  max-height: calc(100vh - 172px) !important;
  top: 18px !important;
  --card: #414d43;
  --soft: #4c584b;
  --ink: #f0f0df;
  --mute: #bbc2b0;
  --line: #707a6566;
  --acc: #b5c99d;
  --onacc: #2e3e2c;
  color: #eef0df;
  backdrop-filter: blur(18px);
}
.workbench-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.workbench-heading .section-kicker {
  color: #aab99a !important;
  font-size: 8px !important;
}
.workbench-heading h2 {
  font: normal 25px Georgia !important;
  color: #f3efdf !important;
  margin: 4px 0 0 !important;
}
.workbench-dot {
  font-size: 25px;
  color: #bacd9f;
}
.compact-studio aside > .nav-tabs,
.compact-studio #tab-settings {
  display: none !important;
}
.workbench-page {
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #8b97755e transparent;
  padding-right: 2px;
}
.workbench-page[hidden],
.editor-page[hidden],
.workbench-subnav[hidden] {
  display: none !important;
}
.workbench-page:not([hidden]) {
  display: block !important;
}
.workbench-subnav {
  display: flex;
  gap: 3px;
  margin: 0 0 17px;
  padding: 4px;
  border-radius: 12px;
  background: #25382b55;
}
.workbench-subnav button {
  flex: 1;
  border: 0;
  background: none;
  color: #bcc7b2;
  font: 10px system-ui;
  padding: 8px 5px;
  border-radius: 8px;
  cursor: pointer;
}
.workbench-subnav button.active {
  color: #f8f1df;
  background: #e6efd31c;
}
.compact-studio aside p,
.workbench-intro {
  color: #b6c0aa !important;
  font-size: 11px !important;
  line-height: 1.75;
  margin: 0 0 14px;
}
.compact-studio aside .panel-title {
  color: #e4e9d6;
}
.compact-studio aside .section-kicker {
  color: #adbd9c !important;
}
.compact-studio aside .panel-sec {
  border-color: #a6b28b25;
  padding: 15px 0;
  gap: 13px;
}
.compact-studio aside .setting-label,
.compact-studio aside .inp-lbl {
  color: #c4ceb7;
  font-size: 11px;
}
.compact-studio aside small {
  color: #a4b294;
}
.compact-studio aside .btn {
  background: #a5b1961c;
  color: #edf0dc;
  border-color: #89967955;
  font-weight: 500;
}
.compact-studio aside .btn:hover {
  background: #becba32a;
  border-color: #b0c09880;
}
.compact-studio aside .btn.d {
  background: #bacba1 !important;
  border-color: #bacba1 !important;
  color: #2c3d2b !important;
}
.compact-studio aside .text-btn {
  color: #bdcfa6;
}
.compact-studio aside input[type='range'] {
  accent-color: #c9d3ae;
  width: 100%;
}
.compact-studio aside input[type='checkbox'] {
  accent-color: #b7c99d;
}
.compact-studio aside select,
.compact-studio aside .player-names input {
  color: #ecefdc;
  background: #a9b59b15;
  border-color: #a2af8e45;
}
.compact-studio aside select option {
  color: #f2f0df;
  background: #3e4b3e;
}
.compact-studio aside .wall-color {
  color: #c5d0b7;
  border-color: #9bac8a33;
  background: #9cab8c0a;
}
.compact-studio aside .pat-opt {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  border-color: #76846b;
}
.compact-studio aside .pat-opt.on {
  box-shadow:
    0 0 0 2px #46523f,
    0 0 0 3px #c5d2aa;
  border-color: #becda4;
}
.compact-studio aside .search-box {
  background: #c5d5b80b;
  border-color: #91a18255;
  color: #b5c6a2;
  margin-bottom: 12px;
}
.compact-studio aside .search-box input {
  color: #f1f0df;
}
.compact-studio aside .search-box input::placeholder {
  color: #aebd9f;
}
.compact-studio aside .search-box kbd {
  border-color: #9fad8b55;
}
.compact-studio aside .chips {
  gap: 4px !important;
  margin-bottom: 10px;
}
.compact-studio aside .chip {
  border-color: #8b9c7744;
  background: #b9c7a50c;
  color: #bfcdb0;
  font-size: 9px !important;
  padding: 5px 8px;
}
.compact-studio aside .chip.on {
  background: #bdcba3 !important;
  border-color: #bdcba3 !important;
  color: #35452c !important;
}
.compact-studio aside .catalog-sub {
  color: #abbc96;
  margin: 1px 0 10px;
}
.compact-studio aside .sidebar-heading {
  display: none;
}
.compact-studio aside #tab-lib > p {
  font-size: 10px !important;
}
.compact-studio aside .grid {
  gap: 7px !important;
}
.compact-studio aside .it {
  background: #d1d9ba0d !important;
  border: 1px solid #9ead8838 !important;
  border-radius: 12px !important;
  color: #e4e8d4;
  padding: 10px 4px 9px !important;
}
.compact-studio aside .it:hover {
  background: #b3c3a025 !important;
  border-color: #b5c69a80 !important;
  box-shadow: none;
}
.compact-studio aside .it svg {
  height: 58px !important;
  filter: drop-shadow(0 6px 6px #17251c25);
}
.compact-studio aside .it span {
  font-size: 9px !important;
}
.compact-studio aside .it small {
  font-size: 8px;
  color: #a5b594 !important;
}
.compact-studio aside .it .fav {
  color: #c4d4b0;
}
.compact-studio aside .it .fav.on {
  color: #e6b6aa;
}
.compact-studio #inspector {
  padding: 0;
  border: 0;
  background: none;
  min-height: 0;
}
.object-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 4px 0 17px;
}
.object-heading h3 {
  font: 25px/1.15 Georgia;
  color: #f0eddc;
  margin: 6px 0 0;
}
.object-heading .section-kicker {
  font-size: 8px !important;
  max-width: 250px;
}
.object-showcase {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 13px 9px;
  background: radial-gradient(ellipse at 50% 42%, #b5bda01c, #b5bda009 75%);
  border: 1px solid #96a48635;
  border-radius: 18px;
  min-height: 230px;
}
.showcase-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.showcase-tools .btn {
  padding: 0 !important;
  width: 29px;
  height: 31px;
  border-radius: 9px;
  font-size: 17px;
}
.hero-sprite {
  position: relative;
  min-width: 0;
  width: 100%;
  text-align: center;
  padding: 8px 0 27px;
}
.hero-sprite > svg {
  display: block;
  width: 100%;
  height: 164px;
  overflow: visible;
  filter: drop-shadow(0 12px 12px #17251c25);
}
.size-badge {
  display: inline-block;
  margin-top: 7px;
  color: #c1cbb2;
  background: #b1bf9813;
  border: 1px solid #a1b18b33;
  border-radius: 12px;
  font-size: 9px;
  padding: 4px 9px;
}
.variant-rail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 236px;
  overflow: auto;
  scrollbar-width: none;
  width: 62px;
}
.variant-tile {
  background: #bdc7ab10;
  border: 1px solid #9caa8c40;
  border-radius: 11px;
  color: #c3d0b5;
  padding: 5px;
  cursor: pointer;
  width: 62px;
  min-height: 65px;
}
.variant-tile.active {
  border-color: #d0d7ad;
  background: #c7d3ae25;
  box-shadow: inset 0 0 0 1px #c7d3ae30;
}
.variant-tile svg {
  width: 100%;
  height: 43px;
  display: block;
  overflow: visible;
}
.variant-tile small {
  display: block;
  font: 8px/1.3 system-ui;
  margin-top: 4px;
}
.editor-sections {
  display: flex;
  gap: 3px;
  margin: 15px 0 12px;
  border-bottom: 1px solid #a5b58a30;
}
.editor-sections button {
  flex: 1;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #a8b99a;
  padding: 9px 4px;
  font: 11px system-ui;
  cursor: pointer;
}
.editor-sections button.active {
  color: #f0efdb;
  border-color: #c3d0a7;
}
.editor-page {
  padding: 2px 0;
}
.editor-page .palette {
  margin: 2px 0 15px;
  gap: 8px;
}
.compact-studio .palette button {
  border-color: #3e4c3c;
  box-shadow: 0 0 0 1px #83927066;
}
.compact-studio .palette button.on {
  box-shadow: 0 0 0 2px #d0dcba;
}
.compact-studio .material-grid {
  grid-template-columns: 1fr !important;
  margin: 0 0 10px;
  gap: 8px;
}
.compact-studio .material-grid label {
  background: #a9ba9310;
  border-color: #a3b38d3b;
  color: #d0dbc0;
  padding: 10px;
  font-size: 10px;
}
.compact-studio .note-editor {
  border: 0;
  padding-top: 3px;
}
.compact-studio .note-editor textarea {
  color: #e9eddb;
  border-color: #9fac8c44;
  background: #b5c5a20c;
}
.compact-studio .note-editor textarea::placeholder {
  color: #a5b596;
}
.object-hint {
  display: block;
  font-size: 9px !important;
  margin-top: 14px;
}
.full-width {
  width: 100%;
}
.compact-studio .placement-explanation {
  margin: 13px 2px 9px;
  font-size: 10px !important;
}
.support-picker {
  margin: 10px 0;
  padding: 11px 0;
  border-top: 1px solid #9fad8a33;
  font: 10px/1.6 system-ui;
  color: #b9caa8;
}
.support-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
}
.support-options .btn {
  font-size: 9px !important;
  padding: 6px 8px !important;
  text-align: left;
}
.support-options .btn.selected {
  background: #b9caa12e;
  border-color: #c8d5aa;
}
.support-picker .text-btn {
  font-size: 10px;
}
.add-object-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #a3b58c35;
}
.add-object-footer > .btn {
  flex: 1;
}
.single-color {
  width: 38px;
  height: 38px;
  border: 1px solid #a8b88f55;
  overflow: hidden;
  border-radius: 11px;
  padding: 5px;
}
.single-color input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.compact-studio .empty-inspector {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 24px 8px;
  gap: 15px;
}
.compact-studio .empty-inspector b {
  font-size: 21px;
  color: #e6ebd5;
}
.compact-studio .empty-inspector p {
  margin: 12px 0 18px;
}
.compact-studio aside .preset-grid button,
.compact-studio aside .activity-card {
  background: #b0be9b10;
  border-color: #a2b18c40;
  color: #d9e2c6;
}
.compact-studio aside .preset-grid b {
  color: #e0e7cf;
}
.compact-studio aside .preset-grid small,
.compact-studio aside .activity-card small {
  color: #b5c1a5;
}
.compact-studio aside .activity-card:hover {
  background: #b1c39a22;
}
.compact-studio aside .current-activity {
  background: #a8c18f11;
  border-color: #a7bf8c66;
}
.compact-studio aside .current-activity h3 {
  color: #e4e9d2;
}
.compact-studio aside .upload-drop {
  background: #b7c8a40b;
  border-color: #aab99370;
}
.compact-studio aside .upload-icon {
  background: #8da47c25;
  color: #dce8ce;
}
.day-night-switch {
  display: flex;
  gap: 7px;
}
.day-night-switch button {
  flex: 1;
  color: #c4d1b5;
  background: #a2b58d10;
  border: 1px solid #a6b79044;
  border-radius: 10px;
  padding: 10px;
  font: 11px system-ui;
  cursor: pointer;
}
.day-night-switch button.on {
  background: #bacb9e28;
  border-color: #c6d3a77a;
  color: #f8efd9;
}
.setting-label output {
  font-size: 10px;
  color: #d5d8b1;
  float: right;
}
.garland-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 10px;
  margin: 0 0 14px;
  background: radial-gradient(ellipse, #dbc0801a, transparent);
  border: 1px solid #a7b98f22;
  border-radius: 14px;
  color: #ead39a;
  gap: 0;
}
.garland-preview span {
  font-size: 24px;
  text-shadow: 0 0 16px #ecc98380;
}
.garland-preview i {
  display: block;
  width: 34px;
  height: 7px;
  border-bottom: 1px solid #b6b48a;
  border-radius: 0 0 80% 80%;
}
.compact-studio .saved-looks {
  margin: 10px 0;
}
.compact-studio .saved-looks svg {
  width: 44px;
}
.compact-studio #overflowTray {
  padding: 11px 14px;
  max-height: 130px;
  overflow: auto;
}
.sun-dust {
  animation: rayDust 8s ease-in-out infinite;
}
.fairy-twinkle {
  animation: fairyBreath 4.8s ease-in-out infinite;
}
.warm-flicker {
  animation: lightFlicker 3s ease-in-out infinite;
}
.flame-dance {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: flameSway 1.5s ease-in-out infinite;
}
.tank-bubble {
  animation: bubbleRise 3.5s ease-in infinite;
}
.screen-status {
  animation: fairyBreath 3s ease-in-out infinite;
}
@keyframes rayDust {
  0%,
  100% {
    opacity: 0.12;
    transform: translate(0, 0);
  }
  50% {
    opacity: 0.75;
    transform: translate(5px, -11px);
  }
}
@keyframes fairyBreath {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}
@keyframes lightFlicker {
  0%,
  100% {
    opacity: 0.85;
  }
  35% {
    opacity: 0.65;
  }
  70% {
    opacity: 1;
  }
}
@keyframes flameSway {
  50% {
    transform: skewX(5deg) scaleY(0.84);
  }
}
@keyframes bubbleRise {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  30% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateY(-13px);
  }
}
:root[data-scene='night'] .compact-studio {
  background: #252e2c !important;
}
:root[data-scene='night'] .compact-studio header {
  background: #2e3831 !important;
  border-color: #485344 !important;
}
:root[data-scene='night'] .compact-studio .logo {
  color: #e9e8d4;
}
:root[data-scene='night'] .compact-studio #roomName {
  color: #e0e2cb;
}
:root[data-scene='night'] .compact-studio .stage {
  background: radial-gradient(ellipse at 45% 47%, #353d3a, #202c31 86%) !important;
  border-color: #465346 !important;
  box-shadow:
    inset 0 0 100px #0d182343,
    0 12px 40px #101b1a1c !important;
}
:root[data-scene='night'] .compact-studio .stage-note {
  color: #9ba68b;
}
:root[data-scene='night'] .compact-studio .canvas-tools {
  background: #394538e8;
  border-color: #70826555;
}
:root[data-scene='night'] .compact-studio .canvas-tools .btn {
  color: #dae2c7;
}
:root[data-scene='night'] .compact-studio #placementStatus {
  background: #344131eb;
  border-color: #66795b66;
  color: #c0cba8;
}
:root[data-scene='night'] .compact-studio .workspace-footer {
  color: #a6b198;
}
:root[data-scene='night'] .compact-studio header .btn {
  background: #414c3e;
  color: #dce4cc;
  border-color: #65725b;
}
:root[data-scene='night'] .compact-studio header span {
  color: #a7b296 !important;
}
@media (max-width: 1100px) {
  .compact-studio main {
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 16px !important;
  }
  .compact-studio aside {
    padding: 16px !important;
  }
  .studio-nav button {
    padding: 9px 17px;
  }
  .object-showcase {
    gap: 6px;
    padding: 10px 7px;
  }
  .variant-rail,
  .variant-tile {
    width: 57px;
  }
  .hero-sprite > svg {
    height: 155px;
  }
}
@media (max-width: 850px) {
  .compact-studio main {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
    gap: 13px !important;
  }
  .studio-nav {
    justify-self: stretch;
    justify-content: space-between;
    position: sticky;
    top: 8px;
    z-index: 15;
  }
  .studio-nav button {
    padding: 9px 12px;
    font-size: 10px;
  }
  .compact-studio #room {
    min-height: 340px !important;
    max-height: none !important;
  }
  .compact-studio aside {
    position: relative !important;
    top: 0 !important;
    max-height: 600px !important;
    min-height: 340px;
    border-radius: 20px !important;
  }
  .workbench-heading {
    margin-bottom: 10px;
  }
  .object-showcase {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    min-height: 220px;
  }
  .hero-sprite > svg {
    height: 165px;
  }
  .variant-rail,
  .variant-tile {
    width: 68px;
  }
  .variant-tile svg {
    height: 44px;
  }
  .compact-studio .workbench-page {
    max-height: 490px;
  }
  .compact-studio .workspace-footer {
    margin-bottom: 1px;
  }
  .compact-studio #roomName {
    font-size: 23px;
  }
  .compact-studio .material-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .compact-studio aside .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .compact-studio aside .it span {
    font-size: 9px !important;
  }
}
@media (max-width: 480px) {
  .studio-nav button {
    padding: 8px 10px;
    font-size: 9px;
  }
  .compact-studio #room {
    min-height: 300px !important;
  }
  .compact-studio .workspace-heading {
    margin-bottom: 10px;
  }
  .compact-studio .workspace-heading .section-kicker {
    font-size: 8px !important;
  }
  .compact-studio aside .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .compact-studio aside .it svg {
    height: 60px !important;
  }
  .compact-studio .material-grid {
    grid-template-columns: 1fr !important;
  }
  .compact-studio .workbench-heading h2 {
    font-size: 23px !important;
  }
  .object-showcase {
    min-height: 210px;
  }
  .hero-sprite > svg {
    height: 145px;
  }
  .variant-tile,
  .variant-rail {
    width: 63px;
  }
  .variant-tile svg {
    height: 40px;
  }
  .compact-studio .stage {
    border-radius: 20px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sun-dust,
  .fairy-twinkle,
  .warm-flicker,
  .flame-dance,
  .tank-bubble,
  .screen-status {
    animation: none !important;
  }
}
@media (max-width: 850px) {
  .compact-studio aside {
    scroll-margin-top: 65px;
  }
  .compact-studio .studio-nav {
    scroll-margin-top: 8px;
  }
}
@media (min-width: 851px) {
  .compact-studio #room {
    min-height: 320px !important;
    max-height: calc(100vh - 345px) !important;
  }
  .compact-studio .workspace-footer {
    margin: 10px 2px 0;
  }
}

/* Collections stay independent of room categories and favorites. */
.collection-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 10px;
  color: #7e8875;
  font-size: 11px;
  letter-spacing: 0.03em;
}
.collection-filter select {
  min-width: 0;
  flex: 1;
  border: 1px solid #d6ddcd;
  border-radius: 12px;
  padding: 9px 28px 9px 12px;
  background: #f7f8f1;
  color: #46513f;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.collection-filter select:focus-visible {
  outline: 2px solid #85976d;
  outline-offset: 2px;
}
.object-style-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 16px;
  font-size: 12px;
  color: var(--muted, #89957b);
}
.object-style-label select {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #77846655;
  border-radius: 12px;
  background: var(--panel, #f2f3e8);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.object-style-label select:focus-visible {
  outline: 2px solid #a3b786;
  outline-offset: 2px;
}
/* Leave room for confirmation after choosing a style and a type. */
.object-type-label {
  margin: 0 0 7px !important;
  font-size: 8px !important;
}
.object-type-label + .object-showcase {
  min-height: 190px;
  padding: 8px;
}
.object-type-label + .object-showcase .hero-sprite {
  padding: 3px 0 22px;
}
.object-type-label + .object-showcase .hero-sprite > svg {
  height: 132px;
}
.object-type-label + .object-showcase .variant-rail {
  max-height: 176px;
}

/* A home is a handful of different rooms, with an overview that stays out of the editor. */
.apartment-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  max-width: 100%;
  min-width: 0;
}
.apartment-bar button {
  font: 11px system-ui;
  border: 1px solid #76816855;
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
  white-space: nowrap;
  background: #455247;
  color: #e6e9d5;
}
.home-plan-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #58664c !important;
}
.home-plan-button[aria-pressed='true'] {
  border-color: #bdcda5 !important;
}
.home-room-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  flex: 1;
}
.home-room-tabs button {
  background: #e0e3d722;
  color: #5c6955;
  border-color: #a6b39650;
}
.home-room-tabs button[aria-current='page'] {
  background: #cad6b8;
  color: #354831;
  border-color: #b9cba5;
}
.home-add-button {
  font-size: 18px !important;
  padding: 4px 11px !important;
}
.apartment-overview {
  position: absolute;
  inset: 0;
  z-index: 9;
  padding: 22px 24px;
  background: radial-gradient(ellipse at 40% 10%, #485849, #273d32 85%);
  color: #eee9d7;
  border-radius: inherit;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #b6c49d55 transparent;
}
.apartment-overview[hidden] {
  display: none !important;
}
.home-plan-open > .canvas-tools,
.home-plan-open > #placementStatus,
.home-plan-open > #objectMenu,
.home-plan-open > .stage-note {
  visibility: hidden !important;
}
.home-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.home-overview-head .section-kicker {
  font-size: 8px;
  color: #b4c59d;
}
.home-overview-head input {
  display: block;
  max-width: 100%;
  width: 330px;
  font: 27px Georgia;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  color: #f3ebd5;
  padding: 4px 0;
}
.home-overview-head input:focus {
  outline: 0;
  border-bottom-color: #b3c59a;
}
.home-overview-head p,
.home-overview-footer p {
  font: 10px/1.6 system-ui;
  color: #bdc6b1;
  margin: 6px 0;
}
.home-overview-head > .btn {
  color: #dce4ca;
  background: #75866c25;
  border-color: #86947655;
}
.apartment-room-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  min-height: 190px;
}
.home-room-card {
  background: #e3e7d50a;
  border: 1px solid #a8b68e35;
  border-radius: 16px;
  overflow: hidden;
}
.home-room-card.current {
  border-color: #c2d0a5;
  box-shadow: inset 0 0 0 1px #c2d0a533;
}
.home-room-open {
  display: block;
  width: 100%;
  border: 0;
  color: #e9e8d4;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 9px;
}
.home-room-open svg {
  width: 100%;
  display: block;
  max-height: 130px;
  filter: drop-shadow(0 4px 6px #14251c30);
}
.home-room-open b {
  display: block;
  font: 12px Georgia;
  overflow-wrap: anywhere;
  margin: 6px 0 4px;
}
.home-room-open small {
  font: 9px system-ui;
  color: #aab99a;
}
.home-card-actions {
  display: flex;
  gap: 1px;
  padding: 0 8px 8px;
}
.home-card-actions button {
  background: transparent;
  border: 0;
  color: #b1bea1;
  font: 9px system-ui;
  cursor: pointer;
  padding: 4px 6px;
}
.home-card-actions button:last-child {
  margin-left: auto;
}
.home-card-actions button:disabled {
  opacity: 0.25;
}
.home-overview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 17px;
}
.home-overview-footer .btn,
.room-composer .btn {
  font-size: 10px;
  padding: 8px 11px;
  white-space: nowrap;
}
.room-composer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  padding: 18px;
  background: #dae4c40a;
  border: 1px solid #97aa7d44;
  border-radius: 16px;
}
.room-composer label,
.room-transfer label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: 11px system-ui;
  color: #c7d1b6;
}
.room-composer input,
.room-composer select,
.room-transfer select {
  padding: 10px 11px;
  background: #3d4e3e;
  color: #f0ecd8;
  border: 1px solid #82937166;
  border-radius: 9px;
  font: 11px system-ui;
  min-width: 0;
}
.room-name-field,
.room-furnish,
.room-composer > .row {
  grid-column: 1/-1;
}
.room-composer .room-furnish {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.room-furnish input {
  accent-color: #b9cd9e;
}
.room-transfer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #a5b38c33;
}
.room-transfer small {
  display: block;
  font-size: 10px;
  margin-top: 8px;
  line-height: 1.6;
}
.compact-studio .workspace:has(.apartment-bar) #room {
  min-height: 410px !important;
  max-height: 59vh !important;
}
.fabric-breathe {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: fabricBreath 7s ease-in-out infinite;
}
.home-steam {
  animation: homeSteam 4s ease-in-out infinite;
  opacity: 0.45;
}
.home-firefly {
  animation: homeFirefly 4s ease-in-out infinite;
}
.home-ripple {
  animation: homeRipple 2.4s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.home-page {
  animation: homePage 8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: left bottom;
}
.home-note {
  animation: homeNote 3s ease-in-out infinite;
}
.home-dewdrop {
  animation: homeDew 5s ease-in-out infinite;
}
@keyframes fabricBreath {
  50% {
    transform: skewX(0.6deg);
  }
}
@keyframes homeSteam {
  0%,
  100% {
    opacity: 0.12;
    transform: translateY(3px);
  }
  50% {
    opacity: 0.6;
    transform: translateY(-5px);
  }
}
@keyframes homeFirefly {
  0%,
  100% {
    opacity: 0.25;
    transform: translate(0, 0);
  }
  50% {
    opacity: 1;
    transform: translate(2px, -4px);
  }
}
@keyframes homeRipple {
  0% {
    opacity: 0.7;
    transform: scale(0.7);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}
@keyframes homePage {
  0%,
  75%,
  100% {
    transform: scaleX(1);
  }
  88% {
    transform: scaleX(0.65);
  }
}
@keyframes homeNote {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(3px);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-8px);
  }
}
@keyframes homeDew {
  50% {
    opacity: 0.2;
  }
}
@media (max-width: 1050px) {
  .home-plan-button span {
    display: none;
  }
  .apartment-overview {
    padding: 18px;
  }
  .apartment-room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-room-card {
    grid-area: auto !important;
  }
  .home-room-open svg {
    max-height: 120px;
  }
}
@media (max-width: 850px) {
  .compact-studio .workspace:has(.apartment-bar) #room {
    min-height: 340px !important;
    max-height: none !important;
  }
  .home-room-tabs button {
    max-width: 150px;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .home-overview-head input {
    width: 235px;
    font-size: 24px;
  }
  .home-overview-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .apartment-overview {
    padding: 16px;
  }
  .home-room-card .home-room-open {
    padding: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fabric-breathe,
  .home-steam,
  .home-firefly,
  .home-ripple,
  .home-page,
  .home-note,
  .home-dewdrop {
    animation: none !important;
  }
}
@media (min-width: 851px) {
  .compact-studio .workspace:has(.apartment-bar) #room {
    min-height: 350px !important;
    max-height: 50vh !important;
  }
}
.home-plan-open > #room {
  visibility: hidden;
}
.compact-studio #room [role='button']:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 3px #c3d8a2);
}
[data-scene='night'] .home-room-tabs button:not([aria-current='page']) {
  background: #e2e8d416;
  color: #c9d2ba;
  border-color: #8b9a7550;
}
/* A quiet online layer, with setup kept out of the decorating workbench. */
.online-launch {
  margin-left: auto;
  white-space: nowrap;
}
.online-dialog {
  width: min(460px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 32px;
  border: 1px solid #d9d5c6;
  border-radius: 24px;
  background: #f8f5ea;
  color: #454c3e;
  box-shadow: 0 24px 90px #29312640;
}
.online-dialog::backdrop {
  background: #29312666;
  backdrop-filter: blur(5px);
}
.online-dialog h2 {
  font-family: Georgia, serif;
  font-size: 30px;
  margin: 12px 0;
}
.online-dialog p {
  line-height: 1.6;
}
.online-dialog label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  font-size: 13px;
}
.online-dialog input {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  padding: 12px;
  border: 1px solid #d9d5c6;
  border-radius: 10px;
  background: #fffdf7;
  color: #454c3e;
  font: inherit;
}
.online-dialog .btn {
  white-space: normal;
}
.online-dialog .dialog-close {
  position: absolute;
  right: 16px;
  top: 16px;
}
.online-dialog .online-hint {
  font-size: 12px;
  color: #737966;
}
.online-people {
  white-space: pre-line;
  padding: 12px;
  border-radius: 12px;
  background: #e5ebdb;
  font-size: 13px;
  line-height: 1.8;
}
#onlineStatus {
  margin: 18px 0 0;
  font-size: 13px;
  color: #69795d;
}
.online-badge {
  font-size: 11px;
  padding: 9px 16px;
  color: #65725b;
  background: #e6eddd;
  border-bottom: 1px solid #d7decc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.online-cursors {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 15;
}
.online-cursor {
  position: absolute;
  padding: 4px 8px;
  background: #6e8064;
  color: #fff9e9;
  border-radius: 2px 12px 12px;
  font: 11px system-ui;
  white-space: nowrap;
  transition:
    left 0.1s,
    top 0.1s,
    opacity 0.5s;
  box-shadow: 0 3px 8px #28312420;
}
.online-badge[hidden],
.online-dialog [hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  .online-launch {
    font-size: 11px;
    padding: 7px;
  }
  header {
    flex-wrap: wrap;
  }
  .online-dialog {
    padding: 26px 22px;
  }
}
.online-dialog .online-cursor-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 6px 10px;
  padding: 12px;
  border-radius: 12px;
  background: #e8ecdf;
}
.online-dialog .online-cursor-option input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.online-cursor-option small {
  grid-column: 2;
  color: #737966;
  font-size: 11px;
  line-height: 1.5;
}

/* Quiet, consistent line icons and controls sized for fingers. */
.ui-icon {
  display: block;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  pointer-events: none;
}
#undo,
#redo {
  width: 40px;
  height: 40px;
  padding: 9px;
}
.canvas-tools .btn {
  min-width: 36px;
  min-height: 38px;
}
.canvas-tools .btn.on {
  background: #dce6cf !important;
  box-shadow: inset 0 0 0 1px #8da17c;
  color: #344c35 !important;
}
.session-modes {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid #cfd6c5;
  border-radius: 14px;
  background: #e5e9dc;
  margin-left: 12px;
  flex-shrink: 0;
}
.session-modes .btn {
  margin: 0;
  border: 0;
  background: transparent !important;
  color: #697660 !important;
  font-size: 11px;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 10px;
}
.session-modes .btn[aria-pressed='true'] {
  background: #4d634b !important;
  color: #fff7e7 !important;
  box-shadow: 0 2px 5px #34432b18;
}
.online-badge {
  box-sizing: border-box;
  max-width: 1536px;
  margin: 14px auto 0;
  padding: 11px 18px;
  border: 1px solid #cbd6c1;
  border-radius: 12px;
  background: #e2e9d9;
  color: #53664b;
  font: 11px/1.6 system-ui;
  white-space: normal;
  overflow-wrap: anywhere;
  width: calc(100% - 64px);
}
.compact-studio .offline-dot {
  font-size: 10px;
  color: #6c7c62;
}
.offline-dot:before {
  background: #a1a68d;
}
body[data-session='online'] .offline-dot:before {
  background: #608d62;
}
/* The object menu stays in the room, anchored to the current item. */
.compact-studio #objectMenu {
  display: none !important;
  transform: none;
  box-sizing: border-box;
  width: 272px;
  max-width: calc(100% - 16px);
  padding: 10px;
  background: #faf7eafa;
  border: 1px solid #c4ceb6;
  border-radius: 16px;
  color: #3d513b;
  box-shadow: 0 8px 28px #263d3030;
  z-index: 18;
  touch-action: manipulation;
}
@media (max-width: 850px) {
  .compact-studio #objectMenu {
    display: block !important;
  }
}
.compact-studio #objectMenu[hidden] {
  display: none !important;
}
.object-menu-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font: 14px Georgia;
  margin: 0 3px 9px;
}
.object-menu-heading small {
  font: 9px system-ui;
  color: #7c896e;
  white-space: nowrap;
}
.object-menu-actions {
  display: flex;
  gap: 4px;
}
#objectMenu button {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: auto;
  min-width: 0;
  height: 49px;
  padding: 5px;
  border-radius: 10px;
  font: 10px system-ui;
  color: #4e6446;
  background: #e7ecdc;
  touch-action: manipulation;
}
#objectMenu button:hover {
  background: #dae4cc;
}
#objectMenu button[data-action='delete'] {
  color: #a26654;
  background: #f1e3d9;
}
#objectMenu button[data-action='place'] {
  background: #4e674a;
  color: #fff9e9;
}
#objectMenu button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.object-menu-design {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-top: 1px solid #d9dfcb;
  margin-top: 10px;
  padding-top: 10px;
}
.object-menu-design label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font: 10px system-ui;
  color: #647758;
  min-width: 0;
  margin: 0;
}
.object-menu-design select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  background: #fffdf5;
  color: #3f523a;
  border: 1px solid #ccd5bf;
  border-radius: 8px;
  padding: 9px 5px;
  font: 11px system-ui;
  min-height: 38px;
}
.object-menu-design .object-type-label {
  display: none;
}
.object-menu-design .object-menu-color {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.object-menu-color input {
  width: 42px;
  height: 36px;
  border: 1px solid #c9d3ba;
  border-radius: 8px;
  padding: 4px;
  background: #fffdf5;
}
.object-menu-reason {
  font: 10px/1.4 system-ui;
  color: #a36654;
  margin: 8px 3px 0;
}
#objectMenu.is-moving .object-menu-design {
  display: none;
}
.stage {
  scroll-margin-top: 65px;
}
:root[data-scene='night'] .session-modes {
  background: #344132;
  border-color: #66765b;
}
:root[data-scene='night'] .session-modes .btn {
  color: #bccbad !important;
}
:root[data-scene='night'] .session-modes .btn[aria-pressed='true'] {
  color: #fff9e8 !important;
  background: #5d7551 !important;
}
@media (max-width: 1100px) {
  header > div:first-child > span {
    display: none !important;
  }
}
@media (max-width: 850px) {
  .compact-studio header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px !important;
  }
  .compact-studio header .logo {
    font-size: 25px !important;
  }
  .compact-studio header .act {
    margin-left: auto;
    gap: 5px;
  }
  .compact-studio header .btn {
    min-height: 40px;
    font-size: 11px;
    padding: 8px 10px;
  }
  .compact-studio header .session-modes {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }
  .session-modes .btn {
    flex: 1;
  }
  .compact-studio .studio-nav {
    position: relative;
    top: 0;
    border-radius: 16px;
    justify-self: stretch;
  }
  .studio-nav button {
    flex: 1;
    padding: 10px 8px;
    font-size: 10px;
  }
  .compact-studio .workspace-heading {
    align-items: center;
  }
  .compact-studio #roomName {
    width: 100%;
    font-size: 22px;
    min-width: 0;
  }
  .workspace-heading > div {
    min-width: 0;
  }
  .compact-studio .offline-dot {
    display: block;
    max-width: 115px;
    white-space: normal;
    line-height: 1.5;
    text-align: right;
    flex-shrink: 0;
  }
  .compact-studio .workspace:has(.apartment-bar) #room {
    height: clamp(350px, 54svh, 520px) !important;
    min-height: 350px !important;
    max-height: none !important;
  }
  .compact-studio .canvas-tools {
    bottom: 10px;
    gap: 1px;
    padding: 4px;
    max-width: calc(100% - 16px);
    box-sizing: border-box;
  }
  .compact-studio .canvas-tools .btn {
    padding: 7px !important;
    min-height: 40px;
    min-width: 32px;
  }
  .canvas-tools .ui-icon {
    width: 18px;
    height: 18px;
  }
  #placementStatus {
    display: none;
  }
  .online-badge {
    width: calc(100% - 24px);
    margin: 12px 12px 0;
    padding: 10px 13px;
  }
  .apartment-bar {
    margin-top: 14px;
    gap: 6px;
  }
  .apartment-bar button {
    min-height: 42px;
  }
  .home-plan-button span {
    display: inline;
    font-size: 10px;
  }
  .home-plan-button {
    padding: 8px !important;
  }
  .home-room-tabs button {
    padding: 8px 11px;
    font-size: 11px;
  }
  .home-add-button {
    min-width: 40px;
  }
  .compact-studio aside {
    min-height: 280px;
    max-height: none !important;
  }
  .compact-studio .workbench-page {
    max-height: 460px;
  }
  .compact-studio aside .it {
    min-height: 105px;
  }
  .compact-studio #inspector button {
    min-height: 40px;
  }
}
@media (max-width: 360px) {
  .compact-studio header {
    padding: 10px !important;
  }
  .compact-studio header .act .btn {
    padding: 7px;
    font-size: 10px;
  }
  #undo,
  #redo {
    width: 34px;
  }
  .canvas-tools #capture {
    font-size: 9px !important;
  }
  .home-plan-button span {
    display: none;
  }
}
@media (max-width: 850px) {
  .compact-studio .studio-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    gap: 1px;
  }
  .compact-studio .studio-nav button {
    padding: 10px 0;
    min-width: 0;
    font-size: 10px;
  }
  .compact-studio .workspace .stage #room {
    height: clamp(350px, 54svh, 520px) !important;
  }
}
@media (max-width: 380px) {
  .compact-studio .studio-nav button {
    font-size: 9px;
  }
  .compact-studio .home-plan-button span {
    display: none;
  }
}
@media (max-width: 850px) {
  .compact-studio .stage {
    padding-bottom: 62px !important;
  }
  .toast {
    z-index: 30;
    max-width: calc(100% - 32px);
    width: max-content;
    font-size: 12px;
    box-sizing: border-box;
    text-align: center;
  }
}

/* The home is one shared floor, with a continuous corridor and rooms you can enter. */
.home-view-switch {
  display: flex;
  flex-shrink: 0;
  gap: 2px;
  padding: 3px;
  border: 1px solid #a8b39666;
  border-radius: 12px;
  background: #d7dfca55;
}
.apartment-bar .home-view-switch button {
  border: 0;
  background: transparent;
  color: #66775c;
  border-radius: 9px;
  padding: 8px 12px;
}
.apartment-bar .home-view-switch button[aria-pressed='true'] {
  background: #53664a;
  color: #fcf5e4;
}
.workspace:has(.home-plan-open) .workspace-heading {
  display: none;
}
.home-plan-open > #room {
  display: none !important;
}
.compact-studio .stage.home-plan-open {
  padding: 0 !important;
}
.home-plan-open .apartment-overview {
  position: relative;
  inset: auto;
  min-height: 540px;
  padding: 22px 24px;
}
.home-plan-open #placementStatus,
.home-plan-open .canvas-tools,
.home-plan-open .stage-note {
  display: none !important;
}
.home-overview-head {
  margin-bottom: 15px;
}
.home-overview-head > .btn {
  padding: 8px;
  min-height: 36px;
  min-width: 36px;
}
.house-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 9px;
}
.house-map-toolbar b {
  font: 12px Georgia;
  color: #e4e9d5;
}
.house-map-toolbar small {
  font: 10px system-ui;
  color: #aebc9c;
  margin-left: 12px;
}
.house-zoom {
  display: flex;
  gap: 2px;
  background: #d8e4c813;
  padding: 3px;
  border: 1px solid #a9bb8c33;
  border-radius: 10px;
}
.house-zoom button {
  min-height: 32px;
  min-width: 34px;
  border: 0;
  background: none;
  color: #dbe6c5;
  font: 11px system-ui;
  border-radius: 7px;
  cursor: pointer;
}
.house-zoom button:hover {
  background: #e6eed51c;
}
.house-viewport {
  height: 380px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #c0cfa420;
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 40%, #8c9d7218, transparent 75%);
  scrollbar-width: thin;
  scrollbar-color: #b8c5a45e transparent;
  touch-action: pan-x pan-y;
}
.house-model {
  display: block;
  min-width: 100%;
  height: auto;
  min-height: 100%;
  margin: auto;
  overflow: visible;
}
.house-model [data-home-room],
.house-model [data-home-slot] {
  cursor: pointer;
  outline: none;
}
.house-model [data-home-room]:hover,
.house-model [data-home-room]:focus-visible {
  filter: brightness(1.12);
}
.house-room-label rect {
  fill: #fbf4e7ed;
  stroke: #899f78;
  stroke-width: 0.8;
}
.house-room-label text {
  fill: #42563b;
  font: 11px system-ui;
  pointer-events: none;
}
.house-model.is-plan .house-room-label text {
  font-size: 13px;
}
.house-empty-label {
  fill: #c0cda9;
  font: 11px system-ui;
}
.house-corridor-label {
  fill: #5f684f;
  font: 10px system-ui;
  pointer-events: none;
}
.house-room-controls {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #b5c39b2e;
}
.house-room-controls label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #b9c9a4;
  font: 10px system-ui;
  min-width: 0;
  flex: 1;
}
.house-room-controls select {
  min-width: 0;
  width: 100%;
  padding: 10px 9px;
  border: 1px solid #98ac7c55;
  border-radius: 9px;
  background: #3a4e3c;
  color: #edeed9;
  font: 11px system-ui;
}
.house-room-controls > .btn {
  background: #c4d2ad;
  color: #31442c;
  border-color: #b1c599;
  min-height: 37px;
  padding: 9px 12px;
  font-size: 10px;
}
.house-room-controls > .text-btn {
  color: #cfb09c;
  padding: 10px 4px;
  font-size: 10px;
}
.house-room-controls button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.house-complete {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  background: #d2dfb610;
  border: 1px solid #b1c5933d;
  border-radius: 13px;
  margin-top: 14px;
  padding: 14px;
}
.house-complete b {
  font: 15px Georgia;
  color: #ebe9d0;
}
.house-complete p {
  font: 10px/1.6 system-ui;
  color: #b7c6a4;
  margin: 5px 0 0;
}
.house-complete > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.house-complete .btn {
  font: 10px system-ui;
  padding: 9px;
  color: #e0e7cd;
  background: #8da66d26;
  border-color: #a7bb8555;
}
.house-complete .text-btn {
  font-size: 10px;
  color: #c8d4b2;
}
.room-composer-title {
  grid-column: 1/-1;
}
.room-composer-title h3 {
  font: 23px Georgia;
  margin: 0 0 8px;
  color: #f0ecd5;
}
.room-composer-title p {
  font: 11px/1.6 system-ui;
  color: #b3c3a2;
  margin: 0 0 6px;
}
.room-composer > label input {
  max-width: 100%;
}
:root[data-scene='night'] .apartment-bar .home-view-switch {
  background: #3e4b3c;
}
:root[data-scene='night'] .apartment-bar .home-view-switch button {
  color: #bdcba9;
}
:root[data-scene='night'] .apartment-bar .home-view-switch button[aria-pressed='true'] {
  background: #697f58;
  color: #fff3dc;
}
@media (max-width: 1100px) {
  .house-complete {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .house-room-controls {
    flex-wrap: wrap;
  }
  .house-room-controls label {
    flex-basis: 35%;
  }
  .house-room-controls > .btn {
    flex: 1;
  }
}
@media (max-width: 850px) {
  .apartment-bar {
    flex-wrap: wrap;
  }
  .home-view-switch {
    flex: 1;
  }
  .apartment-bar .home-view-switch button {
    flex: 1;
    min-height: 38px;
  }
  .apartment-bar .home-room-tabs {
    order: 3;
    flex-basis: 100%;
    margin-top: 3px;
  }
  .home-plan-open .apartment-overview {
    padding: 16px 12px;
    min-height: 480px;
  }
  .house-viewport {
    height: 310px;
  }
  .house-map-toolbar small {
    display: block;
    margin: 3px 0 0;
  }
  .house-room-controls {
    gap: 8px;
  }
  .house-room-controls label {
    flex-basis: 42%;
  }
  .house-complete {
    padding: 12px;
  }
  .house-complete > div:last-child {
    flex-wrap: wrap;
  }
  .room-composer {
    padding: 13px;
    gap: 10px;
  }
  .home-overview-head input {
    font-size: 25px;
    width: 100%;
  }
  .home-overview-head > div {
    min-width: 0;
  }
  .home-overview-head p {
    font-size: 10px;
  }
  .home-overview-footer {
    gap: 10px;
  }
  .home-overview-footer .btn {
    width: 100%;
    min-height: 40px;
  }
  .home-overview-footer p {
    margin: 0;
  }
  .home-plan-open .apartment-overview .btn {
    min-height: 38px;
  }
}
/* Give the whole home the full canvas; enter a room to open its furniture workshop. */
.compact-studio main:has(.home-plan-open) {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 1440px !important;
}
.compact-studio main:has(.home-plan-open) > aside,
.compact-studio main:has(.home-plan-open) > .studio-nav {
  display: none !important;
}
.house-model {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}
.house-viewport {
  height: 440px;
}
@media (max-width: 850px) {
  .house-viewport {
    height: 310px;
  }
  .home-room-tabs button {
    max-width: none;
  }
  .home-room-tabs {
    flex-shrink: 0;
  }
}
/* House mode is the live room canvas, with all connected rooms in the same scene. */
.compact-studio .stage.home-world-open #room {
  display: block !important;
  height: clamp(520px, 67vh, 740px) !important;
  min-height: 520px !important;
  max-height: none !important;
}
.house-world-room-name {
  fill: #68795d;
  font: 15px system-ui;
  paint-order: stroke;
  stroke: #f4edda;
  stroke-width: 2px;
  stroke-opacity: 0.65;
  opacity: 0.8;
}
.home-world-open #room {
  touch-action: none;
}
.home-world-open .stage-note {
  z-index: 2;
}
@media (max-width: 850px) {
  .compact-studio .stage.home-world-open #room {
    height: clamp(400px, 61svh, 600px) !important;
    min-height: 400px !important;
  }
  .house-world-room-name {
    font-size: 18px;
  }
}
@media (max-width: 850px) {
  .compact-studio .studio-nav button {
    font-size: 10px !important;
    padding: 10px 1px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
/* Leave a clear gap between the placement hint and camera controls. */
.compact-studio #placementStatus {
  bottom: 88px;
  max-width: 75%;
  font-size: 9px;
  padding: 6px 10px;
  line-height: 1.4;
}
.opening-catalog {
  border-bottom: 1px solid #a0b58a33;
  padding-bottom: 14px;
  margin-bottom: 15px;
}
.opening-catalog > div:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}
.opening-catalog button {
  border: 1px solid #a5b78b55;
  border-radius: 12px;
  background: #a7be9410;
  color: #e7ead6;
  padding: 9px;
  cursor: pointer;
  font: 11px system-ui;
  text-align: left;
}
.opening-catalog svg {
  display: block;
  width: 100%;
  height: 55px;
}
.opening-catalog button span {
  display: block;
  margin: 6px 0 3px;
}
.opening-catalog small {
  font-size: 9px;
  color: #b2c29f;
}
.opening-hero svg {
  display: block;
  height: 120px;
  width: 100%;
  margin: 12px 0 18px;
}
.opening-variants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 17px;
}
.opening-variants button {
  border: 1px solid #9fb58b55;
  border-radius: 11px;
  background: #a6bb9310;
  color: #dce5cc;
  cursor: pointer;
  padding: 8px;
  font: 10px system-ui;
}
.opening-variants button.on {
  background: #b2c69b28;
  border-color: #c0d0a6;
}
.opening-variants svg {
  display: block;
  width: 100%;
  height: 68px;
  margin-bottom: 5px;
}
.opening-curtains {
  font: 11px system-ui;
  color: #bccdad;
  margin-bottom: 18px;
}
.opening-curtains > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.opening-curtains .btn {
  font-size: 10px;
  padding: 8px;
}
.opening-curtains .btn.on {
  background: #c6d5af33;
  border-color: #bfd3a0;
}
.home-world-open [data-opening] {
  cursor: grab;
}
.compact-studio aside .collection-story {
  font-size: 10px !important;
  line-height: 1.6;
  margin: -3px 0 14px;
  color: #b9c9a5 !important;
}
.library-return {
  font: 11px system-ui;
  color: #6d7d60;
  text-decoration: none;
  white-space: nowrap;
  margin-right: 14px;
}
.library-return:hover {
  text-decoration: underline;
}
.library-return[hidden] {
  display: none;
}
@media (max-width: 850px) {
  .library-return {
    order: -1;
    width: 100%;
    margin: 0;
    font-size: 10px;
  }
}
.showcase-tools [data-action='rotate'] {
  font-size: 10px !important;
  width: auto !important;
  padding: 6px 9px !important;
}
.workbench-subnav {
  flex-wrap: wrap;
}
/* Labels keep their intrinsic width; icon controls get a full touch target. */
#undo,
#redo {
  width: auto !important;
  min-width: 78px !important;
  min-height: 44px !important;
  height: auto !important;
  padding: 10px 16px !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.compact-studio header .act {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.compact-studio header .act .btn {
  min-height: 44px;
  white-space: nowrap;
}
.showcase-tools [data-action='rotate'] {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  padding: 11px !important;
  display: grid;
  place-items: center;
}
.showcase-tools {
  gap: 7px !important;
}
.showcase-tools .btn {
  min-width: 40px;
  min-height: 40px;
}
.opening-catalog {
  margin-top: 0;
  padding-top: 0;
}
@media (max-width: 600px) {
  #undo,
  #redo {
    min-width: 68px !important;
    padding: 10px 12px !important;
  }
  .compact-studio header .act {
    gap: 6px;
    justify-content: flex-end;
  }
  .compact-studio header .act .btn {
    font-size: 11px !important;
  }
  .showcase-tools [data-action='rotate'] {
    width: 44px !important;
  }
}
.window-dimensions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.window-dimensions label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  flex: 1;
  min-width: 120px;
}
.window-dimensions input[type='number'] {
  width: 80px;
  min-height: 40px;
  padding: 8px;
  border: 1px solid #d8ddcc;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}
.window-dimensions input[type='color'] {
  width: 44px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}
.wall-art-tip {
  font-size: 12px;
  color: #6d7968;
  padding: 10px;
  background: #f1f2e9;
  border-radius: 10px;
}
/* Explicit grid hook: the following picture button must not change grid selection. */
.opening-catalog .opening-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.opening-catalog .opening-cards > button {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}
.opening-catalog > .add-wall-picture {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 14px;
  padding: 13px 12px;
  min-height: 44px;
  line-height: 1.4;
  text-align: center;
}
.opening-catalog {
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.family-variant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  max-height: 210px;
  overflow-y: auto;
  width: 100%;
  grid-column: 1/-1;
}
.family-variant-grid .variant-tile {
  width: 100%;
  min-width: 0;
}
.family-variant-grid .variant-tile svg {
  display: block;
  width: 100%;
  height: 48px;
}
.variant-tile small {
  overflow-wrap: anywhere;
}
/* Give the side thumbnails more vertical room without enlarging the object. */
.object-showcase {
  min-height: 270px;
}
.object-showcase .variant-rail {
  max-height: 270px;
  scrollbar-width: thin;
  scrollbar-color: #a8b89166 transparent;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}
.object-type-label + .object-showcase {
  min-height: 254px;
}
.object-type-label + .object-showcase .variant-rail {
  max-height: 240px;
}
.variant-rail::-webkit-scrollbar {
  width: 4px;
}
.variant-rail::-webkit-scrollbar-thumb {
  background: #a8b89166;
  border-radius: 6px;
}
/* Keep the scrollbar in its own gutter, outside the full thumbnail cards. */
.object-showcase .variant-rail {
  width: 108px;
  box-sizing: border-box;
  padding: 2px 8px 2px 2px;
  scrollbar-gutter: stable;
  overflow-x: hidden;
  gap: 8px;
}
.object-showcase .variant-rail .variant-tile {
  width: 80px;
  box-sizing: border-box;
  flex: 0 0 auto;
  min-height: 76px;
}
.object-showcase .variant-rail .variant-tile svg {
  height: 48px;
}
.object-showcase .variant-rail .variant-tile small {
  font-size: 9px;
  line-height: 1.35;
}
@media (min-width: 1101px) {
  .compact-studio main:not(:has(.home-plan-open)):has(#wb-object.active) {
    grid-template-columns: minmax(0, 1fr) 410px !important;
  }
}
@media (min-width: 851px) and (max-width: 1100px) {
  .compact-studio main:not(:has(.home-plan-open)):has(#wb-object.active) {
    grid-template-columns: minmax(0, 1fr) 360px !important;
  }
}
/* Keep furniture SVG sizing from leaking into the favorite icon. */
.compact-studio aside .it .fav {
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 5px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  opacity: 0.75;
  z-index: 2;
  line-height: 1;
  border-radius: 50%;
  background: #39443c55;
}
.compact-studio aside .it .fav svg {
  display: block;
  width: 13px !important;
  height: 13px !important;
  min-width: 0;
  padding: 0 !important;
  margin: 0;
  filter: none;
  overflow: visible;
}
.compact-studio aside .it .fav:hover,
.compact-studio aside .it .fav.on {
  opacity: 1;
}

.upload-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.upload-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}
.upload-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}
.clear-room-furniture {
  width: 100%;
  margin-top: 18px;
}

/* Balanced editor header: identity, centered session, compact actions. */
.compact-studio header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 14px 28px !important;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}
.header-brand .library-return {
  margin: 0;
  white-space: nowrap;
}
.header-brand > div {
  min-width: 0;
}
.header-brand .logo {
  flex-shrink: 0;
}
.header-brand > div > span {
  white-space: nowrap;
}
.compact-studio header .session-modes {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  border-radius: 14px;
}
.header-tools {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  min-width: 0;
}
.compact-studio header .act {
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
}
.compact-studio header .act .btn {
  min-height: 38px;
  height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.compact-studio header #undo,
.compact-studio header #redo {
  min-width: 60px !important;
  min-height: 38px !important;
  padding: 8px 12px !important;
}
.compact-studio header #sv {
  width: 38px;
  min-width: 38px;
  padding: 9px;
}
.compact-studio header .ui-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.compact-studio header #tg span {
  font-size: 11px !important;
  color: inherit !important;
}
.header-tools .language-switch {
  margin: 0;
  padding: 3px;
  font-size: 10px;
  background: #e9ecdf;
  color: #46563f;
}
.header-tools .language-switch button {
  padding: 5px 7px;
}
.header-tools .language-switch button[aria-pressed='true'] {
  background: #596f4e;
  color: white;
}
@media (max-width: 1500px) {
  .header-brand > div > span {
    display: none !important;
  }
  .header-tools {
    gap: 16px;
  }
  .compact-studio header {
    gap: 18px;
  }
}
@media (max-width: 1000px) {
  .compact-studio header {
    gap: 12px;
    padding: 12px 18px !important;
  }
  .header-brand {
    gap: 14px;
  }
  .header-tools {
    gap: 10px;
  }
  .compact-studio header #undo,
  .compact-studio header #redo {
    min-width: 48px !important;
    padding: 8px !important;
  }
  .header-tools .language-switch button {
    padding: 5px;
  }
}
@media (max-width: 760px) {
  .compact-studio header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .header-brand {
    grid-column: 1;
    grid-row: 1;
  }
  .header-tools {
    display: contents;
  }
  .header-tools .language-switch {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .compact-studio header .session-modes {
    grid-column: 1;
    grid-row: 2;
    width: auto;
    justify-self: start;
  }
  .compact-studio header .act {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    gap: 4px;
  }
  .compact-studio header .act .btn {
    font-size: 10px !important;
    padding: 7px 9px;
  }
  .compact-studio header #undo,
  .compact-studio header #redo {
    min-width: 44px !important;
    padding: 7px !important;
  }
  .compact-studio header .session-modes .btn {
    font-size: 10px;
    padding: 7px 10px;
    min-height: 32px;
  }
  .header-brand .logo {
    font-size: 27px !important;
  }
}
@media (max-width: 390px) {
  .compact-studio header {
    padding: 10px !important;
    gap: 9px;
  }
  .header-brand {
    gap: 10px;
  }
  .compact-studio header #undo,
  .compact-studio header #redo {
    min-width: 36px !important;
    padding: 6px !important;
  }
  .compact-studio header .act .btn {
    padding: 6px;
  }
  .compact-studio header #tg {
    gap: 4px;
  }
  .compact-studio header #sv {
    width: 32px;
    min-width: 32px;
  }
  .compact-studio header .session-modes .btn {
    padding: 7px;
  }
  .compact-studio header .ui-icon {
    width: 15px;
    height: 15px;
  }
}

/* A quiet garden surrounds the miniature; all atmosphere layers ignore input. */
.compact-studio .stage {
  isolation: isolate;
}
:root[data-scene='night'] .compact-studio .stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('../../assets/garden-atmosphere.svg') center bottom/cover no-repeat;
  opacity: 0.55;
  animation: gardenBreath 18s ease-in-out infinite;
  transform-origin: 50% 100%;
}
:root[data-scene='night'] .compact-studio .stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 30% 8%, #ffe9b966, transparent 60%);
  border-radius: inherit;
}
:root[data-scene='night'] .compact-studio .stage #room {
  filter: drop-shadow(0 22px 14px #354c3826);
}
:root[data-scene='night'] .compact-studio .stage {
  background: radial-gradient(ellipse at 48% 45%, #4e5140 0, #2a3b3b 48%, #192b33 100%) !important;
  box-shadow:
    inset 0 0 85px #0b182c55,
    0 18px 55px #0d1b2940 !important;
}
:root[data-scene='night'] .compact-studio .stage::before {
  opacity: 0.23;
  filter: brightness(0.6) saturate(0.65);
}
:root[data-scene='night'] .compact-studio .stage::after {
  background:
    radial-gradient(ellipse at 75% 5%, #a4cce321, transparent 50%),
    radial-gradient(ellipse at 45% 70%, #efba6720, transparent 55%);
}
@keyframes gardenBreath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.018);
  }
}
@media (prefers-reduced-motion: reduce) {
  .compact-studio .stage::before {
    animation: none !important;
  }
}
@media (max-width: 760px) {
  .compact-studio .stage::before {
    opacity: 0.35;
  }
}

.tray-heading {
  float: right;
  display: flex;
  justify-content: flex-end;
  margin: -4px -4px 0 8px;
}
.tray-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #c24840;
  cursor: pointer;
  opacity: 1;
}
.tray-clear .ui-icon {
  width: 16px;
  height: 16px;
}
.tray-clear:hover {
  color: #a32f28;
  background: #c2484014;
}
.tray-clear:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

#search::-webkit-search-cancel-button,
#search::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  padding: 5px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.search-clear svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.search-clear:hover {
  background: #8a987b22;
}
.search-clear:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.search-clear[hidden],
#searchShortcut[hidden] {
  display: none;
}

/* Quieter controls leave the miniature at the centre of attention. */
.catalog-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 6px;
}
.compact-studio .catalog-filters .collection-filter {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  margin: 0;
  min-width: 0;
}
.catalog-filters select {
  width: 100%;
  min-width: 0;
}
.compact-studio #chips,
.compact-studio #collectionStory {
  display: none !important;
}
.compact-studio .catalog-sub {
  margin-top: 14px;
}
.compact-studio #tab-lib > p:first-of-type {
  display: none;
}
.compact-studio .canvas-tools {
  gap: 3px;
  padding: 5px 7px;
  border-radius: 17px;
}
.canvas-tools #panToggle {
  margin-left: 4px;
  border-left: 1px solid #8c967b33 !important;
  border-radius: 0 !important;
}
.scene-tools-more {
  position: relative;
  font: 11px system-ui;
  color: inherit;
}
.scene-tools-more summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  cursor: pointer;
  list-style: none;
  border-radius: 11px;
  user-select: none;
}
.scene-tools-more summary::-webkit-details-marker {
  display: none;
}
.scene-tools-more summary:hover,
.scene-tools-more[open] summary {
  background: #7e91661a;
}
.scene-tools-more summary:focus-visible {
  outline: 2px solid #7d936e;
  outline-offset: 2px;
}
.scene-tools-more summary span {
  font-size: 17px;
  line-height: 1;
}
.scene-tools-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 15px);
  display: grid;
  gap: 3px;
  width: 210px;
  max-width: calc(100vw - 45px);
  padding: 8px;
  background: #fffdf6;
  border: 1px solid #d9ddce;
  border-radius: 15px;
  box-shadow: 0 12px 35px #26372825;
  color: #46533e;
  z-index: 12;
}
.scene-tools-more:not([open]) .scene-tools-panel {
  display: none;
}
.canvas-tools .scene-tools-panel .btn {
  width: 100%;
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 9px 11px !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 9px;
  font-size: 11px !important;
  color: inherit !important;
}
.canvas-tools .scene-tools-panel .btn:hover {
  background: #87976c18 !important;
}
.canvas-tools .scene-tools-panel .btn.on {
  background: #81945d20 !important;
}
.canvas-tools .scene-tools-panel .danger {
  color: #b35346 !important;
  border-top: 1px solid #8e96742a !important;
  border-radius: 0 0 9px 9px;
}
.compact-studio .workspace-footer {
  justify-content: flex-start;
  min-height: 24px;
}
/* Each time of day carries its own gentle colour and glow. */
.compact-studio header #tg {
  transition:
    background 0.5s,
    border-color 0.5s,
    box-shadow 0.5s,
    color 0.5s;
}
.compact-studio header #tg[data-time='day'] {
  background: #fbefcf !important;
  border-color: #decfa7 !important;
  color: #806737 !important;
  box-shadow:
    0 0 18px #edcc792b,
    inset 0 1px #fffcf2;
}
.compact-studio header #tg[data-time='night'] {
  background: linear-gradient(135deg, #4e557d, #303d63) !important;
  border-color: #8089b4 !important;
  color: #f3edff !important;
  box-shadow:
    0 0 22px #808ed345,
    inset 0 1px #b5bce733;
}
.day-night-switch [data-time='day'].on {
  background: #f1d79b !important;
  color: #554b2d !important;
  border-color: #e6d2a5 !important;
  box-shadow: 0 0 16px #f6d99722;
}
.day-night-switch [data-time='night'].on {
  background: linear-gradient(135deg, #59618b, #364567) !important;
  color: #f7f0ff !important;
  border-color: #909ac6 !important;
  box-shadow: 0 0 20px #8e9bec33;
}
:root[data-scene='night'] .scene-tools-panel {
  background: #303c3c;
  border-color: #657363;
  color: #e1e6d5;
}
:root[data-scene='night'] .canvas-tools .scene-tools-panel .btn:hover {
  background: #bbcc9d14 !important;
}
.compact-studio,
.compact-studio .stage,
.compact-studio header {
  transition:
    background 0.65s,
    border-color 0.65s,
    box-shadow 0.65s;
}
.compact-studio .stage-note {
  transition: color 0.65s;
}
@media (max-width: 480px) {
  .catalog-filters {
    gap: 8px;
  }
  .scene-tools-more summary {
    padding: 0 9px;
  }
  .scene-tools-panel {
    right: -3px;
  }
  .compact-studio .canvas-tools {
    gap: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .compact-studio,
  .compact-studio .stage,
  .compact-studio header,
  .compact-studio header #tg {
    transition: none;
  }
}

#placementStatus[hidden] {
  display: none !important;
}
.stage:has(.scene-tools-more[open]) #placementStatus {
  visibility: hidden;
}
:root[data-scene='night'] .scene-tools-more {
  color: #e1e6d5;
}
:root[data-scene='night'] .canvas-tools .scene-tools-panel .danger {
  color: #efa097 !important;
}

/* Desktop workspace fills the available viewport, including short laptop screens.
   The mode switch lives above the workbench so the room gets the full height. */
@media (min-width: 851px) {
  body.compact-studio {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .compact-studio header {
    flex: 0 0 auto;
    padding: 9px 20px !important;
    gap: 16px;
  }
  .compact-studio main,
  .compact-studio main:not(:has(.home-plan-open)):has(#wb-object.active),
  .compact-studio main:has(.home-plan-open) {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    max-width: none !important;
    margin: 0;
    padding: 12px 16px !important;
    grid-template-columns: minmax(0, 1fr) clamp(264px, 23vw, 328px) !important;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px 14px !important;
    align-items: stretch;
  }
  .compact-studio .workspace {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .compact-studio .studio-nav,
  .compact-studio main:has(.home-plan-open) > .studio-nav {
    display: grid !important;
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-self: stretch;
    position: static;
    border-radius: 16px;
    padding: 4px;
    gap: 2px;
  }
  .compact-studio .studio-nav button {
    padding: 7px 4px;
    border-radius: 10px;
    font-size: 11px;
  }
  .compact-studio aside,
  .compact-studio main:has(.home-plan-open) > aside {
    display: flex !important;
    flex-direction: column;
    grid-column: 2;
    grid-row: 2;
    position: relative !important;
    top: 0 !important;
    min-height: 0;
    height: 100%;
    max-height: none !important;
    padding: 14px !important;
    border-radius: 18px !important;
    backdrop-filter: none;
    background: #414d43 !important;
  }
  .compact-studio .workbench-heading {
    flex-shrink: 0;
    margin-bottom: 10px;
  }
  .compact-studio .workbench-page {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overscroll-behavior: contain;
  }
  .compact-studio .workspace-heading {
    order: -2;
    flex: 0 0 auto;
    margin: 0 4px 7px;
    gap: 8px;
  }
  .compact-studio .workspace-heading .section-kicker {
    display: none;
  }
  .compact-studio #roomName {
    font-size: 23px;
    width: min(370px, 36vw);
  }
  .compact-studio .apartment-bar {
    order: -1;
    flex: 0 0 auto;
    margin: 0 0 9px;
  }
  .compact-studio .apartment-bar button {
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 9px;
  }
  .compact-studio .home-view-switch {
    flex-shrink: 0;
  }
  .compact-studio .workspace .stage,
  .compact-studio .workspace .stage.home-world-open {
    flex: 1 1 0;
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 54px !important;
    border-radius: 20px !important;
  }
  .compact-studio .workspace .stage #room,
  .compact-studio .workspace:has(.apartment-bar) .stage #room,
  .compact-studio .workspace .stage.home-world-open #room {
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    filter: none;
  }
  .compact-studio .stage-note {
    top: 12px;
    left: 16px;
    right: 16px;
  }
  .compact-studio .workspace-footer {
    flex: 0 0 auto;
    margin: 6px 4px 0;
    min-height: 15px;
  }
  .compact-studio .workspace-footer > span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .compact-studio .online-badge {
    flex: 0 0 auto;
    margin: 4px 16px 0;
    padding: 4px 12px;
    width: auto;
    max-width: none;
    font-size: 10px;
  }
  .compact-studio aside .search-box {
    margin-bottom: 10px;
  }
  .compact-studio aside .grid {
    gap: 6px;
  }
  .compact-studio aside .it {
    min-height: 100px;
    content-visibility: auto;
    contain-intrinsic-size: auto 112px;
  }
  .compact-studio aside .it svg {
    height: 60px;
  }
}
@media (min-width: 851px) and (max-height: 800px) {
  .compact-studio header .logo {
    font-size: 27px !important;
  }
  .compact-studio .workbench-heading .section-kicker {
    display: none;
  }
  .compact-studio .workbench-heading h2 {
    font-size: 22px !important;
  }
  .compact-studio .canvas-tools {
    bottom: 10px;
    padding: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .compact-studio .stage *,
  .compact-studio .stage::before {
    animation: none !important;
  }
}

/* The plan is a full-width workspace with its own scroll container. Its map
   yields height to the room controls, including on short laptop screens. */
@media (min-width: 851px) {
  .compact-studio main:has(.home-plan-open) {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr);
  }
  .compact-studio main:has(.home-plan-open) > .studio-nav,
  .compact-studio main:has(.home-plan-open) > aside {
    display: none !important;
  }
  .compact-studio .workspace:has(.home-plan-open) {
    grid-row: 1;
  }
  .compact-studio .workspace .stage.home-plan-open {
    padding: 0 !important;
  }
  .compact-studio .home-plan-open .apartment-overview {
    position: absolute;
    inset: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 14px 18px;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .compact-studio .home-plan-open .apartment-overview > * {
    flex: 0 0 auto;
  }
  .compact-studio .home-plan-open .house-viewport {
    flex: 1 0 170px;
    min-height: 170px;
    height: auto;
  }
  .compact-studio .home-plan-open .home-overview-head {
    margin-bottom: 8px;
  }
  .compact-studio .home-plan-open .home-overview-head p {
    margin-block: 4px;
  }
  .compact-studio .home-plan-open .home-overview-footer {
    margin-top: 8px;
  }
}
