/* 【吸吸配色】：背景 #FFFFFF · 卡片底 #F6F6F6 · 正文 #1A1D12 · 主按钮 #1A1D12 · 按钮文字 #FFFFFF · 点缀 #B6E0C8 */
/* Chrome 61 基线层 + 能力检测增强层（跨端安全区 & 触摸适配） */
:root {
  --bg: #FFFFFF;
  --card: #F6F6F6;
  --ink: #1A1D12;
  --ink-sub: #5E6354;
  --primary: #1A1D12;
  --primary-text: #FFFFFF;
  --accent: #B6E0C8;
  --accent-soft: #EBF6EF;
  --border: #E8EAE4;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  width: 100%;
  height: 100%;
  touch-action: manipulation;
}

body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  color: var(--ink);
  background: var(--bg);
}

/* Full-container adaptive shell (PC Simulator & Real Phones) */
#mobile-app {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  height: var(--app-height, 100%);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 1. Compact Mobile Top Header */
.m-header {
  flex: 0 0 auto;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 12px 8px;
  padding-top: 10px;
  padding-top: calc(10px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
  z-index: 30;
}

.m-header-top {
  display: flex;
  justify-content: flex-start;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: 100px;
  padding-right: calc(100px + env(safe-area-inset-right, 0px));
  margin-bottom: 8px;
}
.m-actions {
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  row-gap: 4px;
}
.m-actions > * + * { margin-left: 4px; }
.supports-flex-gap .m-actions { column-gap: 4px; }
.supports-flex-gap .m-actions > * + * { margin-left: 0; }

.m-btn {
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}
.m-btn:active { opacity: 0.72; }
.m-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.m-btn.primary {
  background: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
}

/* 4-Style Switcher Bar */
.m-style-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 4px;
  gap: 4px;
  background: transparent;
  border-bottom: 1px solid var(--border);
}
.m-style-pill {
  position: relative;
  border: 0;
  background: transparent;
  padding: 7px 2px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-sub);
  cursor: pointer;
  white-space: nowrap;
}
.m-style-pill.active { color: #633F35; font-weight: 700; }
.m-style-pill.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%; margin-left: -10px;
  width: 20px; height: 3px; border-radius: 2px; background: #A66554;
}
#btn-save, #btn-demo { background: transparent; border-color: transparent; }
/* === STRICT 3 : 2 SPLIT WORKSPACE === */
.m-workspace {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 2. Upper Interactive Collage Stage (3 parts = 60%) */
#m-stage {
  position: relative;
  flex: 3 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #FCFBF8;
  transition: background-color 0.25s ease;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

#m-stage.art-retro {
  background-color: #EAE0CE;
  background-image:
    radial-gradient(ellipse at center, rgba(250, 244, 232, 0.45) 36%, rgba(154, 126, 94, 0.24) 100%),
    repeating-linear-gradient(90deg, rgba(132, 102, 72, 0.065) 0px, rgba(132, 102, 72, 0.065) 12px, transparent 12px, transparent 24px);
}
#m-stage.art-sweet {
  background-color: #F4CFD9;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.62) 3.5px, transparent 3.5px),
    radial-gradient(rgba(255, 255, 255, 0.45) 3.5px, transparent 3.5px);
  background-size: 26px 26px;
  background-position: 0 0, 13px 13px;
}
#m-stage.art-fresh {
  background-color: #F4F8FC;
  background-image:
    linear-gradient(to right, rgba(106, 175, 230, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(106, 175, 230, 0.16) 1px, transparent 1px);
  background-size: 20px 20px;
}

.deco-star { position: absolute; pointer-events: none; z-index: 2; opacity: 0.7; }
#m-stage.art-retro .deco-star path { fill: #B8935A; }
#m-stage.art-sweet .deco-star path { fill: #FFF4B8; stroke: #8E4B63; stroke-width: 1; }
#m-stage.art-fresh .deco-star path { fill: #E86A42; }

/* Dollhouse Base Canvas */
#dollhouse-canvas-area {
  position: relative;
  flex: 0 0 auto;
  width: 664px;
  padding: 6px 26px 0;
  transform-origin: center center;
  transition: transform 0.30s cubic-bezier(.22,.8,.32,1);
  z-index: 6;
}
#dollhouse-canvas-area.has-shutters { width: 732px; padding: 6px 60px 0; }
.house-shell { position: relative; width: 100%; }
/* The roof, rooms and base together fill a square as wide as the visible house. */
.house-shell::before {
  content: '';
  display: block;
  padding-top: calc(108% - 15px + var(--room-height-gain, 0px));
}
.doors-open .house-shell::before { padding-top: calc(100% + 108px - 15px + var(--room-height-gain, 0px)); }
.has-shutters .house-shell { perspective: 1000px; }
#house-interactive-stage {
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  display: flex;
  flex-direction: column;
}

#dollhouse-canvas-area[data-layout="2"] { --room-height-gain: 96px; }
#dollhouse-canvas-area[data-layout="3"] { --room-height-gain: 64px; }

.house-roof {
  flex: none;
  position: relative;
  width: 106%;
  left: -3%;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -4px;
}
.house-roof img, .house-roof svg { width: 100%; height: auto; display: block; pointer-events: none; }

.house-body-row { flex: 1; min-height: 0; position: relative; width: 100%; display: flex; align-items: stretch; }
.house-frame {
  position: relative;
  width: 100%;
  background: #FDFBF7;
  border: 2.5px solid #6E584B;
  border-radius: 3px;
  box-shadow: 0 12px 28px rgba(26, 29, 18, 0.12);
  overflow: visible;
  z-index: 5;
}
#m-stage.art-retro .house-frame { border-color: #4E3B31; }
#m-stage.art-sweet .house-frame { border-color: #5B3A42; border-width: 3px; }
#m-stage.art-fresh .house-frame { border-color: #262B33; }

.house-ground {
  width: 108%;
  margin-left: -4%;
  height: 15px;
  background: #8B6D5C;
  border-top: 2px solid #5D473B;
  border-radius: 0 0 10px 10px;
}
#m-stage.art-retro .house-ground { background: #5C4334; border-top-color: #3E2B20; }
#m-stage.art-sweet .house-ground { background: #D989A5; border-top-color: #5B3A42; }
#m-stage.art-fresh .house-ground { background: #9DB7CB; border-top-color: #262B33; }

/* Shutters */
.shutter-door {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 54px;
  background: #C8DCEB;
  border: 2px solid #6E584B;
  z-index: 20;
  cursor: pointer;
  transition: transform 0.35s ease;
}
#dollhouse-canvas-area.has-shutters .shutter-door { display: block; }
.capture-shutters .shutter-door { transition: none; }
.shutter-left { left: -54px; transform-origin: right center; border-radius: 4px 0 0 4px; }
.shutter-right { right: -54px; transform-origin: left center; border-radius: 0 4px 4px 0; }
.house-body-row.shutters-closed .shutter-left { transform: rotateY(155deg); }
.house-body-row.shutters-closed .shutter-right { transform: rotateY(-155deg); }

/* Rooms & Draggable Divider Handle */
.rooms-grid { position: relative; height: 100%; display: flex; flex-direction: column; width: 100%; overflow: hidden; border-radius: 1px; }
.floor-row { min-height: 0; flex-basis: 0; position: relative; display: grid; width: 100%; }
.room-box {
  min-height: 0;
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1.5px solid #6E584B;
  cursor: pointer;
}
.room-box svg { width: 100%; height: 100%; display: block; pointer-events: none; }
.room-box.active-room::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  bottom: 3px;
  left: 3px;
  border: 2.5px dashed #1A1D12;
  border-radius: 4px;
  pointer-events: none;
  z-index: 6;
  opacity: 0.45;
}

.row-resize-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  margin-left: -9px;
  z-index: 24;
  cursor: col-resize;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.row-resize-pill {
  width: 6px;
  height: 34px;
  border-radius: 999px;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  box-shadow: 0 2px 6px rgba(26,29,18,0.18);
}

/* Stickers & Direct On-Box Handles */
#stickers-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 15;
}
.placed-sticker {
  position: absolute;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}
.placed-sticker:active { cursor: grabbing; }

.sticker-rot-box {
  position: relative;
  width: 100%;
  height: 100%;
}
.sticker-selection {
  position: absolute;
  pointer-events: none;
  z-index: 2147483647;
}
.sticker-selection::before {
  content: '';
  position: absolute;
  top: -4px; right: -4px; bottom: -4px; left: -4px;
  border: 3px dashed #533f38;
  border-radius: 8px;
  box-shadow: 0 0 0 1.5px #fff, inset 0 0 0 1.5px #fff;
}
.sticker-selection .sticker-handle { pointer-events: auto; }

.sticker-handle {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 2px solid var(--ink);
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(26, 29, 18, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  touch-action: none;
  cursor: pointer;
}
.sticker-handle:active {
  background: var(--accent);
}
.sticker-handle svg {
  pointer-events: none;
  display: block;
}
.sticker-handle-rotate {
  top: -16px;
  right: -16px;
  cursor: grab;
}
.sticker-handle-scale {
  right: -16px;
  bottom: -16px;
  cursor: nwse-resize;
}

.sticker-inner, .sticker-visual {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seamless-img, .deco-svg, .sprite-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;

}
.photo-sticker-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(26,29,18,0.22));
}

/* Stage Top Floating Pills */
.stage-float-left {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 28;
}
.stage-float-right {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  z-index: 28;
}
.stage-float-right > * + * { margin-left: 6px; }
.supports-flex-gap .stage-float-right { column-gap: 6px; }
.supports-flex-gap .stage-float-right > * + * { margin-left: 0; }

.stage-pill {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(26,29,18,0.08);
}
.stage-pill:active { opacity: 0.72; }
.stage-pill.focus-back {
  background: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
}

/* Selected Sticker Compact Icon-Only Toolbar */
#m-sticker-bar {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 8px;
  box-shadow: 0 8px 22px rgba(26, 29, 18, 0.14);
  z-index: 29;
  display: flex;
  align-items: center;
}
#m-sticker-bar > * + * { margin-left: 6px; }
.supports-flex-gap #m-sticker-bar { column-gap: 6px; }
.supports-flex-gap #m-sticker-bar > * + * { margin-left: 0; }

.m-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: opacity 0.15s ease, transform 0.12s ease;
}
.m-icon-btn:active { opacity: 0.72; transform: scale(0.92); }
.m-icon-btn.danger {
  color: #B91C1C;
  border-color: #FECACA;
  background: #FEF2F2;
}

.m-mini-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.m-mini-btn:active { opacity: 0.72; }

/* 3. Bottom Operation Sheet (2 parts = 40%, strict 3:2 with stage!) */
#m-sheet {
  flex: 2 1 0;
  min-height: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.m-sheet-top {
  flex: 0 0 auto;
  padding: 8px 14px 6px;
  border-bottom: 1px solid var(--border);
}
.m-main-tabs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 4px;
  gap: 4px;
  background: var(--card);
  padding: 3px;
  border-radius: 10px;
}
.m-tab-btn {
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 5px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-sub);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.m-tab-btn.active {
  background: var(--primary);
  color: var(--primary-text);
}

.m-sheet-body {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 14px 10px;
  padding-bottom: 10px;
  padding-bottom: calc(10px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  overflow: hidden;
}
.m-panel {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.m-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-right: 2px;
}

/* Flat 6-Category Sticker Bar */
.m-flat-cats {
  display: flex;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 7px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
  scrollbar-width: none;
}
.m-flat-cats > * + * { margin-left: 6px; }
.supports-flex-gap .m-flat-cats { column-gap: 6px; }
.supports-flex-gap .m-flat-cats > * + * { margin-left: 0; }
.m-flat-cats::-webkit-scrollbar { display: none; }

.m-flat-cat {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink-sub);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.m-flat-cat.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

/* 4-Column Clean Sticker Grid */
.m-sticker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 7px;
  gap: 7px;
  align-content: start;
  padding-bottom: 10px;
}
.m-tile {
  border: 1px solid transparent;
  background: var(--card);
  border-radius: 12px;
  padding: 6px 4px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease;
}
.m-tile > * + * { margin-top: 3px; }
.supports-flex-gap .m-tile { row-gap: 3px; }
.supports-flex-gap .m-tile > * + * { margin-top: 0; }
.m-tile:active { transform: scale(0.94); border-color: var(--ink); }

.m-tile-img {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-tile-img img, .m-tile-img svg { max-width: 100%; max-height: 100%; object-fit: contain; }
.m-tile-name {
  font-size: 10px;
  font-weight: 500;
  color: var(--ink);
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* House Panel */
.m-sec-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-sub);
  margin: 9px 0 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.m-sec-title:first-child { margin-top: 0; }
.m-room-badge {
  color: #1A1D12;
  background: #B6E0C8;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
}

.m-pill-grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: 5px; gap: 5px; }
.m-pill-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.m-pill-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.m-opt-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: 9px;
  cursor: pointer;
  text-align: center;
}
.m-opt-btn.active {
  background: var(--accent);
  border-color: var(--ink);
  color: var(--ink);
}

.m-width-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 10px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
}
.m-width-card > * + * { margin-top: 4px; }
.supports-flex-gap .m-width-card { row-gap: 4px; }
.supports-flex-gap .m-width-card > * + * { margin-top: 0; }
.m-width-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; }
.m-width-val { color: #1A1D12; }
.m-range-full { width: 100%; accent-color: #1A1D12; }

.m-swatch {
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 5px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--card);
  cursor: pointer;
}
.m-swatch > * + * { margin-top: 3px; }
.supports-flex-gap .m-swatch { row-gap: 3px; }
.supports-flex-gap .m-swatch > * + * { margin-top: 0; }
.m-swatch.active { border-color: var(--ink); background: var(--accent-soft); }
.m-swatch-dot { width: 26px; height: 16px; border-radius: 5px; border: 1px solid rgba(26,29,18,0.14); }
.m-swatch span { font-size: 10px; color: var(--ink); font-weight: 500; }

/* Photo Tab */
.m-photo-box { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:10px; }
.m-photo-header { display:flex; align-items:center; justify-content:space-between; }
.m-photo-title { font-size:13px; font-weight:650; }
.m-photo-pick { padding:0 12px; min-height:34px; cursor:pointer; }
.m-photo-editor { display:grid; grid-template-columns:minmax(60px,.85fr) minmax(166px,1.65fr); align-items:center; gap:10px; margin-top:8px; }
.m-photo-mat { display:flex; justify-content:center; align-items:center; height:106px; padding:6px; background:#ece7df; border-radius:7px; overflow:hidden; }
#photo-preview { display:block; max-width:100%; max-height:100%; width:auto; height:auto; box-shadow:0 1px 4px #45372b30; }
.m-photo-controls { min-width:0; }
#photo-frames { border:0; padding:0; min-width:0; }
#photo-frames legend { font-size:11px; margin-bottom:5px; font-weight:600; }
.m-frame-options { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; }
.m-frame-options label { position:relative; cursor:pointer; }
.m-frame-options input { position:absolute; width:1px; height:1px; opacity:0; }
.frame-chip { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-height:43px; font-size:10px; color:var(--ink); border:1px solid var(--border); border-radius:7px; background:#fff; white-space:nowrap; }
.frame-chip i { display:block; width:18px; height:14px; border:1px solid #b8aaa0; border-radius:1px; }
.chip-classic { background:#fffefb; }
.chip-gingham { background-color:#fff2d9; background-image:repeating-linear-gradient(0deg,#c4915b44 0 2px,transparent 2px 4px),repeating-linear-gradient(90deg,#c4915b44 0 2px,transparent 2px 4px); }
.chip-dots { background:#f4bdc7 radial-gradient(#fff8eb 1px,transparent 1.4px) 0 0 / 5px 5px; }
.m-frame-options input:checked + .frame-chip { border-color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink); font-weight:700; }
.m-frame-options input:focus-visible + .frame-chip { outline:2px solid #826754; outline-offset:2px; }
.m-photo-add { width:100%; min-height:32px; justify-content:center; margin-top:8px; }

.hidden { display: none !important; }

/* Toast */
#m-toast {
  position: absolute;
  top: 98px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--primary);
  color: var(--primary-text);
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}
#m-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.m-layout-select {
  height: 28px;
  padding: 0 18px 0 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235A4F48' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 6px center;
  appearance: none;
  -webkit-appearance: none;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

/* Preview Fallback Modal */
.m-action-mask {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(26, 29, 18, 0.42);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  padding-bottom: 14px;
  padding-bottom: calc(14px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}

.m-preview-card {
  width: 100%;
  max-height: 90%;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  box-shadow: 0 12px 32px rgba(26, 29, 18, 0.24);
}
.m-preview-card > * + * { margin-top: 10px; }
.supports-flex-gap .m-preview-card { row-gap: 10px; }
.supports-flex-gap .m-preview-card > * + * { margin-top: 0; }
.m-preview-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}
.m-preview-img {
  max-width: 100%;
  max-height: 54vh;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: contain;
  -webkit-touch-callout: default;
}
.m-preview-copy {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
  -webkit-user-select: text;
  user-select: text;
}
.m-preview-tip {
  font-size: 11.5px;
  color: var(--ink-sub);
  text-align: center;
  line-height: 1.5;
}

/* Progressive Enhancement Layer (Backdrop Blur) */
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .stage-pill {
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  #m-sticker-bar {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .m-action-mask {
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
}

.sprite-img { display: block; background-repeat: no-repeat; }

.stage-float-left { display:flex; align-items:center; gap:5px; }
.gallery-entry { display:inline-flex; align-items:center; gap:4px; }
.work-gallery { position:absolute; inset:0; z-index:72; display:flex; flex-direction:column; background:#fcf9f4; color:#3f392e; }
.gallery-header { padding:calc(env(safe-area-inset-top,0px) + 12px) 18px 8px; }
.gallery-back,.gallery-text { color:#635749; border:0; background:transparent; font:inherit; cursor:pointer; }
.gallery-back { font-size:13px; padding:6px 0; }
.gallery-header h1 { margin:8px 0 0; font-size:28px; font-weight:670; letter-spacing:-1px; }
.gallery-meta,.gallery-footer { padding:8px 18px; }
.gallery-meta { display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #e8dfd3; }
.gallery-meta p,.gallery-text,.gallery-footer p,.gallery-message { font-size:13px; }
.gallery-text { text-decoration:underline; text-underline-offset:4px; padding:6px 0 6px 10px; }
.gallery-scroll { overflow:auto; flex:1; min-height:0; }
.gallery-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:16px 12px; padding:16px 18px 0; max-width:1000px; margin:auto; }
.work-card { position:relative; min-width:0; display:flex; flex-direction:column; align-items:stretch; text-align:left; background:transparent; color:inherit; border:0; font:inherit; cursor:pointer; }
.work-cover { position:relative; display:block; border-radius:9px; overflow:hidden; background:#ede6da; border:2px solid transparent; }
.work-cover img { width:100%; aspect-ratio:3 / 4; display:block; object-fit:cover; }
.work-card[aria-pressed=true] .work-cover { border-color:#885d47; }
.work-check { position:absolute; top:8px; right:8px; border-radius:50%; width:23px; height:23px; display:grid; place-items:center; background:#fffc; border:1px solid #b7a899; color:#fff; font-size:12px; }
.work-card[aria-pressed=true] .work-check { background:#805640; border-color:#805640; }
.work-name { font-size:13px; margin:6px 0 1px; font-weight:600; }
.work-time { font-size:11px; color:#766c60; }
.gallery-message { text-align:center; color:#73685b; padding:20px 14px; white-space:pre-line; }
.gallery-message:empty { display:none; }
.gallery-footer { border-top:1px solid #e8dfd3; padding-bottom:calc(12px + env(safe-area-inset-bottom,0px)); background:#fffdfa; }
.gallery-footer p { margin:2px 0 8px; }
.gallery-actions { display:flex; gap:10px; }
.gallery-actions button { flex:1; min-height:42px; border-radius:10px; background:#fff; border:1px solid #b8a58d; color:#3f392e; cursor:pointer; font:600 14px system-ui; }
#gallery-delete { color:#a23c37; }
#gallery-delete-confirm { background:#a23c37; color:#fff; border-color:#a23c37; }
#gallery-share { background:#514337; color:#fffaf2; border-color:#514337; }
.gallery-actions button:disabled,.gallery-text:disabled { opacity:.45; cursor:default; }
.preview-extra { width:100%; display:flex; flex-wrap:wrap; gap:6px; justify-content:center; }
.preview-extra img { width:44%; object-fit:contain; max-height:35vh; }

#m-toast { z-index:90; }

.room-box.active-room::after,.sticker-selection::before {content:none;}
.room-box .room-outline,.sticker-outline {
  position:absolute;pointer-events:none;overflow:visible;display:block;
}
.room-box .room-outline {top:4px;left:4px;width:calc(100% - 8px);height:calc(100% - 8px);z-index:6;color:#76685e;opacity:.52;}
.sticker-outline {top:-2px;left:-2px;width:calc(100% + 4px);height:calc(100% + 4px);color:#665248;}
.sticker-handle,.sticker-handle:active {
  width:40px;height:40px;right:-2px;border:0;box-shadow:none;background:transparent;color:#594d45;
}
.sticker-handle::before {
  content:'';position:absolute;width:17px;height:17px;border-radius:50%;background:#fffdf9;
  border:1px solid #7d6b60;box-shadow:0 1px 2px #46342626;pointer-events:none;
}
.sticker-handle:active::before {background:#f6e9e5;}
.sticker-handle svg {position:relative;width:10px;height:10px;stroke-width:1.85;}
.sticker-handle-rotate {top:-2px;transform:translate(50%,-50%) scale(var(--selection-ui-scale,1));}
.sticker-handle-scale {bottom:-2px;transform:translate(50%,50%) scale(var(--selection-ui-scale,1));}

.gallery-header,.gallery-meta,.gallery-footer { width:100%;max-width:1060px;margin-inline:auto; }
.gallery-scroll { padding-bottom:20px; }
.gallery-grid { max-width:1060px; }
.gallery-grid:empty {padding:0}
.gallery-empty { display:none; margin:clamp(32px,9vh,100px) auto 0; width:80px;height:80px;color:#ae897b; }
.gallery-grid:empty + .gallery-empty { display:block; }
.gallery-actions { max-width:520px; }
.gallery-footer { border-top:0; }
.gallery-footer::before { content:"";display:block;height:1px;background:#e8dfd3;margin-bottom:12px; }
.work-gallery { background:#fbf8f3; }
.work-card:focus-visible,.gallery-back:focus-visible,button:focus-visible,select:focus-visible { outline:2px solid #a66472; outline-offset:2px; }
.preview-actions {display:flex;gap:8px;flex-wrap:wrap;justify-content:center;}
.preview-actions button {border:1px solid #d7c6bd;border-radius:8px;background:white;padding:8px 12px;font-weight:600;color:#614b40;cursor:pointer;}
.m-preview-card {max-width:550px;}
.work-cover {width:100%}
.work-picture,.work-caption {display:block;border:0;background:none;padding:0;text-align:left;width:100%;color:inherit;cursor:pointer;}
.work-picture {cursor:zoom-in;}
.work-card .work-check {width:30px;height:30px;border:1.5px solid #967e70;box-shadow:0 1px 3px #0002;cursor:pointer;background:#fffdf9;z-index:1;}
.work-card.is-selected .work-cover {border-color:#885d47;}
.work-card.is-selected .work-check {background:#805640;color:white;}
.work-caption {padding:0 2px 4px;display:flex;flex-direction:column;}
.work-viewer {position:absolute;inset:0;z-index:78;background:#f8f4ef;display:flex;flex-direction:column;}
.view-head {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(12px + env(safe-area-inset-top,0px)) 16px 12px;background:#fffdfa;border-bottom:1px solid #e9dfd5;}
.view-head h2 {font:600 15px system-ui;}
.view-head {justify-content:flex-start;}
.view-port {min-height:0;flex:1;overflow:auto;text-align:center;display:flex;align-items:center;justify-content:center;}
.view-port img {width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-in;}
.view-port.magnified {display:block;touch-action:pan-x pan-y;}
.view-port.magnified img {display:block;width:min(1440px, 200%);max-width:none;max-height:none;height:auto;cursor:zoom-out;}
#view-status {text-align:center;font-size:12px;color:#796758;padding:8px 16px calc(8px + env(safe-area-inset-bottom,0px));}
#view-status:empty,.view-port img:not([src]) {display:none;}

.web-brand { display: none; }
.previous-studio { display:inline-block; margin:20px 0 6px; color:var(--ink-sub); font-size:13px; text-underline-offset:3px; }
@media (min-width:850px) {
  .m-header { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:12px 24px; }
  .web-brand { display:block; color:#513c32; font-size:23px; letter-spacing:.02em; white-space:nowrap; }
  .m-header-top { order:2; margin:0; padding:0; }
  .m-header .m-style-bar { flex:1 1 auto; max-width:440px; border:0; }
  .m-style-pill { font-size:15px; }
  .m-actions .m-btn,.m-layout-select { height:34px; padding-inline:12px; font-size:14px; }
  .m-workspace { display:grid; grid-template-columns:minmax(0,1fr) clamp(350px,33vw,510px); grid-template-rows:minmax(0,1fr); }
  #m-stage { min-width:0; min-height:0; }
  #m-sheet { min-width:0; border-top:0; border-left:1px solid var(--border); }
  .m-sheet-top { padding:16px 14px 10px; }
  .m-tab-btn,.m-opt-btn,.m-flat-cat { font-size:14px; }
  .m-flat-cats { flex-wrap:wrap; }
  .m-tab-btn { min-height:34px; }
  .m-flat-cat { min-height:30px; }
  .m-scroll { padding-inline:14px; }
  .m-sticker-grid { grid-template-columns:repeat(auto-fill,minmax(88px,1fr)); gap:8px; }
  .m-tile { padding:9px 5px 8px; }
  .m-tile-name { white-space:normal; line-height:1.3; font-size:13px; }
  .m-tile:hover { border-color:#c5a89a; background:#fffaf5; }
}

/* Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, 
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
 */
@font-face{font-family:'Atelier Sans';font-weight:100 900;font-display:swap;src:url(notosanssc-90d0af300c1a37df.woff2) format('woff2')}
/* Copyright 2012 Google Inc. All Rights Reserved.

This Font Software is licensed under the SIL Open Font License,
Version 1.1.

This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL

-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font
creation efforts of academic and linguistic communities, and to
provide a free and open framework in which fonts may be shared and
improved in partnership with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply to
any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software
components as distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to,
deleting, or substituting -- in part or in whole -- any of the
components of the Original Version, by changing formats or by porting
the Font Software to a new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed,
modify, redistribute, and sell modified and unmodified copies of the
Font Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components, in
Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the
corresponding Copyright Holder. This restriction only applies to the
primary font name as presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created using
the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
 */
@font-face{font-family:'Atelier Serif';font-weight:200 900;font-display:swap;src:url(notoserifsc-6b8df5562b9b8621.woff2) format('woff2')}
/* Copyright 2024 The LXGW WenKai Project Authors (https://github.com/lxgw/LxgwWenkaiTC)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, 
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
 */
@font-face{font-family:'Atelier Kai';font-weight:400;font-display:swap;src:url(lxgwwenkaitc-a5ec5eaaf2becc67.woff2) format('woff2')}
/* Copyright 2018 The ZCOOL KuaiLe Project Authors (https://github.com/googlefonts/zcool-kuaile)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, 
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
 */
@font-face{font-family:'Atelier Pop';font-weight:400;font-display:swap;src:url(zcoolkuaile-3309add655db213e.woff2) format('woff2')}
@font-face{font-family:'Dollhouse Rounded';font-weight:700;font-display:swap;src:url(wordmark-3715dbaa5c67c46e.woff2) format('woff2')}
:root {
  --ui:"Atelier Sans","PingFang SC","Microsoft YaHei",sans-serif;
  --serif:"Atelier Serif","Songti SC",serif;
  --kai:"Atelier Kai","Kaiti SC",serif;
  --pop:"Atelier Pop",var(--ui);
}
[data-skin=korean] {
  --bg:#fff9f6;--card:#fffbf8;--ink:#503642;--ink-sub:#725b64;--border:#e8ced3;
  --primary:#78475b;--primary-text:#fff9f6;--accent:#f2c9d9;--accent-soft:#fae9ed;
  --head:#f8e2e5;--head-ink:#5a3546;--head-muted:#765a66;--head-line:#dab4bf;--panel:#fcf2ef;
  --paper:#fffaf7;--face:var(--kai);--curve:14px;
}
[data-skin=retro] {
  --bg:#f6f1df;--card:#fcf8eb;--ink:#36392b;--ink-sub:#625e49;--border:#cbbb92;
  --primary:#31483d;--primary-text:#fdf5df;--accent:#dbc69a;--accent-soft:#e9e2ca;
  --head:#273e35;--head-ink:#fff2c8;--head-muted:#e7debb;--head-line:#899477;--panel:#e9e4cf;
  --paper:#f9f4e4;--face:var(--serif);--curve:2px;
}
[data-skin=sweet] {
  --bg:#fff5ed;--card:#fffaf3;--ink:#542537;--ink-sub:#754855;--border:#e7b7b9;
  --primary:#a12b48;--primary-text:#fff8e4;--accent:#f2b8b6;--accent-soft:#fce2df;
  --head:#9c2844;--head-ink:#fff7de;--head-muted:#fff0d7;--head-line:#cf8290;--panel:#f9dcda;
  --paper:#fff7eb;--face:var(--pop);--curve:8px;
}
[data-skin=fresh] {
  --bg:#f6f8f2;--card:#fdfef9;--ink:#2f4641;--ink-sub:#536961;--border:#c4d0c1;
  --primary:#2d5655;--primary-text:#fffff4;--accent:#b6d8c3;--accent-soft:#e0ede0;
  --head:#dbeae0;--head-ink:#294e48;--head-muted:#456057;--head-line:#a5beb1;--panel:#f1f5ec;
  --paper:#fbfcf4;--face:var(--ui);--curve:2px;
}
html body,body #mobile-app {font-family:var(--ui);color:var(--ink);background:var(--bg)}
#mobile-app :is(button,select,input) {font-family:var(--ui)}
#mobile-app button {cursor:pointer}
#mobile-app :is(button,select,input):focus-visible {outline:2px solid var(--primary);outline-offset:2px}
#mobile-app .m-header :is(button,select):focus-visible {outline-color:var(--head-ink)}
#mobile-app .m-header {position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(max-content,1fr) auto minmax(max-content,1fr);align-items:center;align-content:center;gap:clamp(14px,2.1vw,38px);padding:0 clamp(18px,2.2vw,48px);min-height:84px;border:0;border-bottom:1px solid var(--head-line);background:var(--head);color:var(--head-ink)}
#mobile-app .web-brand {grid-area:1/1;display:block;white-space:nowrap;font:700 31px/1.15 "Dollhouse Rounded",var(--ui);letter-spacing:-.015em;color:var(--head-ink)}
#mobile-app #m-style-bar {grid-area:1/2;display:flex;align-items:center;justify-content:center;gap:6px;max-width:none;min-width:0;border:0;background:none}
#mobile-app .m-style-pill {display:inline-flex;align-items:center;justify-content:center;gap:6px;position:relative;min-height:42px;padding:2px 10px;line-height:1.3;font-size:14px;font-weight:450;letter-spacing:.02em;border-radius:var(--curve);background:none;color:var(--head-muted);border:1px solid transparent}
#mobile-app .m-style-pill.active {font-weight:620;color:var(--head-ink)}
#mobile-app .m-style-pill.active::after {content:none}
.style-swatch {display:flex;align-items:center;justify-content:center;flex:none}
.style-swatch {width:26px;height:26px}
.style-swatch img {max-width:100%;max-height:100%;object-fit:contain}
#mobile-app .m-header-top {grid-area:1/3;justify-self:end;margin:0;padding:0}
#mobile-app .m-actions {display:flex;align-items:center;flex-flow:row nowrap;gap:4px}
#mobile-app .m-actions > * {margin:0}
#mobile-app .m-actions button {font:500 13px/1.2 var(--ui);letter-spacing:.025em;display:inline-flex;align-items:center;justify-content:center;height:34px;padding:0 10px;border:1px solid transparent;border-radius:var(--curve);background:transparent;color:var(--head-ink)}
#mobile-app .m-actions #btn-save {background:var(--head-ink);color:var(--head);border-color:var(--head-ink)}
#mobile-app .m-actions .gallery-entry {gap:5px;border-color:var(--head-line)}
.stage-float-left {flex-direction:column;align-items:flex-start}
#mobile-app .stage-float-right {display:grid;grid-template-columns:auto auto;align-items:center;gap:5px}
#mobile-app .stage-float-right > * {margin:0}
#btn-shutter {grid-area:2/1/3/3;justify-self:end}
#btn-clear {grid-area:1/2}
.room-choice {grid-area:1/1;position:relative;display:inline-flex;color:var(--ink)}
#mobile-app .room-choice select {appearance:none;cursor:pointer;height:30px;border:1px solid var(--border);border-radius:var(--curve);background:var(--paper);color:var(--ink);font:500 12px/1.25 var(--ui);padding:0 21px 0 9px}
#mobile-app #m-stage .stage-pill {min-height:30px}
.room-choice::after {position:absolute;right:8px;top:calc(50% - 4px);content:"";width:5px;height:5px;border:solid currentColor;border-width:0 1.3px 1.3px 0;transform:rotate(45deg);pointer-events:none}
.room-choice option {background:var(--bg);color:var(--ink)}
#mobile-app .m-actions button:hover,#mobile-app #m-style-bar button:hover {border-color:var(--head-line)}
#mobile-app #m-sheet {background:var(--panel);border-color:var(--border)}
#mobile-app .m-sheet-top {padding:10px 15px 7px;background:var(--paper);border-color:var(--border)}
#mobile-app .m-main-tabs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:0;border:0;background:transparent}
#mobile-app .m-tab-btn {font-size:13px;font-weight:500;min-height:34px;line-height:1.2;white-space:nowrap;padding:4px 2px;border-radius:var(--curve);color:var(--ink-sub)}
#mobile-app .m-tab-btn.active {background:var(--primary);color:var(--primary-text)}
#mobile-app .m-sheet-body {padding:0 14px 10px}
#mobile-app .m-flat-cats {display:flex;flex-flow:row nowrap;gap:3px;justify-content:space-between;padding:9px 0 8px;margin:0 0 8px;border-color:var(--border)}
#mobile-app .m-flat-cats > * {margin:0}
#mobile-app .m-flat-cat {min-height:29px;border:1px solid transparent;border-radius:var(--curve);padding:2px 8px;font-size:13px;line-height:1.3;font-weight:450;color:var(--ink-sub);background:transparent}
#mobile-app .m-flat-cat.active {color:var(--ink);font-weight:630;background:var(--accent-soft);border-color:var(--border)}
#mobile-app .m-scroll {padding-inline:0;scrollbar-color:var(--border) transparent}
#mobile-app .m-sticker-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#mobile-app .m-tile {border:1px solid var(--border);border-radius:var(--curve);background:var(--card);padding:8px 4px 7px;justify-content:center;gap:5px}
#mobile-app .m-tile:hover {border-color:var(--primary);background:var(--paper)}
#mobile-app .m-tile-img {width:clamp(55px,5vw,78px);height:clamp(55px,5vw,78px)}
#mobile-app .m-tile-name {font:450 13px/1.45 var(--ui);letter-spacing:.015em;white-space:normal;color:var(--ink)}
#mobile-app .stage-pill {font:500 12px/1.25 var(--ui);border-color:var(--border);border-radius:var(--curve);background:var(--paper);color:var(--ink);box-shadow:none}
#mobile-app :is(#panel-house,#panel-photo)>.m-scroll {padding:16px 1px}
#mobile-app :is(.m-opt-btn,.m-swatch,.m-width-card,.m-photo-box,.frame-chip) {border-radius:var(--curve);background:var(--card);color:var(--ink);border-color:var(--border)}
#mobile-app :is(.m-swatch.active,.m-opt-btn.active,.m-frame-options input:checked+.frame-chip) {border-color:var(--primary);background:var(--accent-soft)}
#mobile-app :is(.m-range-full) {accent-color:var(--primary)}
#mobile-app .m-width-val {color:var(--ink)}
#mobile-app .m-room-badge {background:var(--accent);color:var(--ink)}
#mobile-app :is(.m-sec-title,.m-photo-title) {font:550 16px/1.4 var(--face);color:var(--ink)}
#mobile-app .m-sec-title {margin-top:13px}
#mobile-app .m-opt-btn,#mobile-app .m-swatch span {font-size:12px}
#mobile-app .m-photo-pick {background:var(--primary);color:var(--primary-text);border-color:var(--primary);border-radius:var(--curve)}
#mobile-app .m-photo-mat {background:var(--accent-soft)}
/* The cream counter: a scalloped linen valance and softly rounded display windows. */
[data-skin=korean] #mobile-app .m-header::after {content:"";position:absolute;inset:auto 0 -5px;height:6px;background:radial-gradient(ellipse at 50% 0,var(--head) 54%,#debcc6 64%,transparent 71%) 0 0 / 16px 8px repeat-x;pointer-events:none}
[data-skin=korean] #mobile-app .m-style-pill.active {background:#fff9f5;border-color:#d6a9b5;border-radius:50% 46% 43% 48% / 23% 25% 22% 23%}
[data-skin=korean] #mobile-app .m-style-pill {font-family:var(--kai);font-size:16px;font-weight:550}
[data-skin=korean] #mobile-app .m-actions #btn-save {border-radius:18px}
[data-skin=korean] #mobile-app .m-tile {border-radius:29px 29px 9px 9px;border-color:#eddbdc}
[data-skin=korean] #mobile-app .m-tile-name {font-family:var(--kai);font-size:14px;font-weight:550}
[data-skin=korean] #mobile-app .m-flat-cat.active {background:#f1d5dd;border-color:transparent}
/* A brass-trimmed map case: dark binding, an engraved marker and labelled specimen cards. */
[data-skin=retro] #mobile-app .m-header {box-shadow:inset 0 3px #273e35,inset 0 4px #a89e72,inset 0 -4px #273e35,inset 0 -5px #a89e72}
[data-skin=retro] #mobile-app .m-style-pill {font:510 15px/1.4 var(--serif);padding-inline:11px}
[data-skin=retro] #mobile-app .m-style-pill.active {border:1px solid #c0ad78;color:#fff2cd;box-shadow:inset 0 0 0 2px #273e35,inset 0 0 0 3px #77836a}
[data-skin=retro] #mobile-app .m-actions #btn-save {color:var(--head-ink);background:transparent;border:1px solid #b2aa7b}
[data-skin=retro] #mobile-app .m-tab-btn {font-family:var(--serif);font-size:15px}
[data-skin=retro] #mobile-app .m-flat-cat.active {background:var(--primary);color:var(--primary-text)}
[data-skin=retro] #mobile-app .m-tile {padding:8px 0 0;border-color:#c9c09e}
[data-skin=retro] #mobile-app .m-tile-name {padding:4px 2px;font-family:var(--serif);font-weight:550;border-top:1px solid #ded5b9;background:#f1ecd9}
/* A cherry soda counter: enamel lettering, a checkerboard lip and tickets on the tray. */
[data-skin=sweet] #mobile-app .m-header {border-bottom:0;padding-bottom:7px}
[data-skin=sweet] #mobile-app .m-header::after {content:"";position:absolute;inset:auto 0 0;height:7px;background:repeating-conic-gradient(#982943 0 25%,#fff1d1 0 50%) 0 0 / 14px 14px}
[data-skin=sweet] #mobile-app .m-style-pill.active {background:#fff0d3;color:#8b243c;border-color:#fff0d3;border-radius:22px;box-shadow:2px 3px 0 #731e34}
[data-skin=sweet] #mobile-app .m-actions #btn-save {border-radius:18px}
[data-skin=sweet] #mobile-app .m-tab-btn.active {border-radius:14px 5px 14px 5px}
[data-skin=sweet] #mobile-app .m-tile {border-color:#d89098;box-shadow:0 2px 0 #eac1bc;margin-bottom:2px;border-radius:12px 4px 12px 4px}
[data-skin=sweet] #mobile-app .m-flat-cat.active {background:#a12b48;color:#fff3dd;border-radius:20px}
[data-skin=sweet] #mobile-app .m-tile-name {font-weight:580}
/* A stationery drawer: squared tabs, fine grid paper and unboxed illustrated items. */
[data-skin=fresh] #mobile-app .m-header {border-top:4px solid #446a5a}
[data-skin=fresh] #mobile-app .m-style-pill {border-radius:0}
[data-skin=fresh] #mobile-app .m-style-pill.active {color:#274c40;background:#f9fcf4;box-shadow:inset 0 -3px #487761}
[data-skin=fresh] #mobile-app .m-actions #btn-save {border-radius:3px}
[data-skin=fresh] #mobile-app .m-main-tabs {border-bottom:1px solid var(--border)}
[data-skin=fresh] #mobile-app .m-tab-btn.active {background:transparent;color:var(--primary);box-shadow:inset 0 -2px var(--primary)}
[data-skin=fresh] #mobile-app .m-flat-cat.active {border-color:var(--primary);background:transparent}
[data-skin=fresh] #mobile-app .m-sticker-grid {gap:0;background:var(--paper);border-top:1px solid var(--border);border-left:1px solid var(--border)}
[data-skin=fresh] #mobile-app .m-tile {border:0;border-right:1px solid var(--border);border-bottom:1px solid var(--border);border-radius:0;background:transparent}
[data-skin=fresh] #mobile-app .m-tile:hover {background:var(--accent-soft)}
@media(min-width:850px) and (max-width:1150px) {
  #mobile-app .m-header {gap:10px;padding-inline:15px}
  #mobile-app #m-style-bar {gap:2px}
  #mobile-app #m-style-bar button {padding-inline:6px;gap:4px}
  #mobile-app .m-actions button {padding-inline:7px}
  .style-swatch {width:22px;height:22px}
}
@media(max-width:849px) {
  #mobile-app .m-header {min-height:0;grid-template-columns:auto 1fr;gap:5px 8px;padding:7px 13px 6px}
  #mobile-app .m-header .web-brand {grid-area:1/1;font-size:23px}
  #mobile-app .m-header-top {grid-area:1/2}
  #mobile-app #m-style-bar {grid-area:2/1/3/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;max-width:560px;justify-self:center;gap:3px}
  #mobile-app #m-style-bar button {min-width:0;padding:2px;gap:3px;min-height:32px;font-size:13px;letter-spacing:0}
  #mobile-app .m-actions button {font-size:12px;height:30px;padding-inline:8px}
  .style-swatch {width:20px;height:20px}
  #mobile-app .m-sheet-top {padding:4px 10px}
  #mobile-app .m-tab-btn {min-height:28px;font-size:13px}
  #mobile-app .m-sheet-body {padding:0 10px 6px}
  #mobile-app .m-flat-cats {padding:4px 0 3px;margin:0 0 4px;justify-content:flex-start;gap:4px}
  #mobile-app .m-flat-cat {padding:2px 7px;min-height:24px;font-size:12px}
  #mobile-app .m-sticker-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  [data-skin=fresh] #mobile-app .m-sticker-grid {gap:0}
  #mobile-app .m-tile-img {width:46px;height:46px}
  #mobile-app .m-tile {padding:4px 2px;gap:2px}
  #mobile-app .m-tile-name {font-size:11px;line-height:1.35}
  [data-skin=sweet] #mobile-app .m-header {padding-bottom:11px}
  [data-skin=retro] #mobile-app .m-header {padding-block:8px}
}
@media(max-width:389px) {
  #mobile-app .m-header {padding-inline:7px}
  #mobile-app #m-style-bar button {font-size:12px;gap:2px}
  .style-swatch {width:14px;height:14px}
  #mobile-app .m-actions {gap:0}
}
@media(max-height:500px) and (max-width:849px) {
  #mobile-app .m-header {padding-block:3px;gap:2px}
}
[data-skin=sweet] #mobile-app .m-header::after {background-size:10px 10px;height:10px}
@media(max-width:849px) {
  [data-skin=sweet] #mobile-app .m-header::after {height:6px;background-size:6px 6px}
}
@media(max-width:389px) {
  #mobile-app #m-style-bar {grid-template-columns:minmax(0,1fr) minmax(0,1.18fr) minmax(0,1fr) minmax(0,1fr)}
}

#sheet-divider {display:none}
@media (min-width:850px) {
  .m-workspace {
    --min-sheet:280px;
    --min-stage:320px;
    --divider:10px;
    /* The pointer target straddles the seam without reserving a visible gutter. */
    grid-template-columns:minmax(0,1fr) 0
      clamp(var(--min-sheet),var(--sheet-width,clamp(350px,33vw,510px)),calc(100% - var(--min-stage) - var(--divider)));
  }
  #mobile-app #m-sheet {border-left:0}
  #mobile-app .m-sticker-grid {grid-template-columns:repeat(auto-fill,minmax(91px,1fr))}
  #sheet-divider {
    display:grid;position:relative;place-items:center;justify-self:center;z-index:31;
    width:var(--divider);background:transparent;border:0;outline:none;
    cursor:col-resize;touch-action:none;user-select:none;
  }
  .is-resizing #sheet-divider::after,#sheet-divider:focus-visible::after {
    content:"";width:7px;height:34px;border:1px solid var(--primary);border-radius:4px;background:var(--paper);
  }
  .m-workspace.is-resizing,.m-workspace.is-resizing * {cursor:col-resize;user-select:none}
  .is-resizing #dollhouse-canvas-area {transition:none !important}
}

/* The first paint cannot expose the empty shell while the initial scene is assembled. */
.house-loading {display:none}
#m-stage:has(#rooms-grid:empty) .house-loading {display:block;font:500 14px/1.5 var(--ui);color:var(--ink-sub)}
#dollhouse-canvas-area:has(#rooms-grid:empty) {visibility:hidden;position:absolute}

#work-gallery [hidden],.gallery-footer.confirming :is(#gallery-selection,#gallery-main-actions) {display:none !important}
.gallery-modes {display:flex;gap:12px;align-items:center}
#work-gallery .gallery-modes button {min-height:34px;text-decoration:none;padding:5px 10px}
#gallery-multi {border:1px solid var(--border);border-radius:var(--curve);color:var(--primary);background:var(--paper)}
#gallery-multi[aria-pressed=true] {background:var(--primary);border-color:var(--primary);color:var(--primary-text)}
.work-media {position:relative}
.work-tools {position:absolute;bottom:7px;right:7px;display:flex;align-items:center;padding:2px;gap:1px;border:1px solid #d7cdbd;border-radius:8px;background:#fffdf7;box-shadow:0 1px 3px #30281926}
#work-gallery .work-action {display:grid;place-items:center;width:32px;height:32px;background:transparent;border:0;border-radius:5px;color:#4e4439}
.work-action svg {width:17px;height:17px}
#work-gallery .work-action:hover,#work-gallery .work-action:focus-visible {background:var(--accent-soft)}
#work-gallery .work-action[data-action=remove] {color:#973e3f}
#work-gallery .work-check {appearance:auto;accent-color:var(--primary);width:23px;height:23px;display:block;margin:0;top:8px;right:8px}
#work-gallery .work-card.is-selected .work-cover {border-color:var(--primary)}
#work-gallery.is-multi .work-picture {cursor:pointer}
#work-gallery .work-card,#work-gallery .work-caption {cursor:default}
#work-gallery .gallery-grid {grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr))}
@media(max-width:430px) {
  #work-gallery .gallery-grid {padding-inline:10px;gap:12px 7px;grid-template-columns:repeat(2,minmax(0,1fr))}
  #work-gallery .work-action {width:32px;height:34px}
}
#work-gallery .gallery-footer:not(.confirming) {display:flex;align-items:center;justify-content:space-between}
#gallery-selection {margin:0;color:var(--ink)}
#gallery-main-actions {gap:8px}
#gallery-main-actions button {display:grid;place-items:center;flex:none;width:42px;min-height:38px}
#gallery-main-actions svg {width:19px;height:19px}

#m-stage {touch-action:none}
#m-stage #dollhouse-canvas-area {transition:none;cursor:grab}
#m-stage.canvas-dragging, #m-stage.canvas-dragging * {cursor:grabbing}
.canvas-zoom {display:flex;align-items:center;border:1px solid var(--border);background:var(--paper);border-radius:var(--curve);color:var(--ink);overflow:hidden;pointer-events:auto}
.canvas-zoom button {border:0;background:transparent;color:inherit;font:600 18px/1 var(--ui);min-width:32px;height:32px;cursor:pointer}
.canvas-zoom button:focus-visible {outline:2px solid currentColor;outline-offset:-3px}
.canvas-zoom button:disabled {opacity:.35}
.canvas-zoom #canvas-reset {font-size:12px;min-width:44px;font-variant-numeric:tabular-nums}
