.rooms-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-width: 1040px;
  max-height: calc(100dvh - 36px);
  padding: 28px;
  border: 0;
  border-radius: 24px;
  color: var(--ink, #24323d);
  background: var(--surface, #fff);
  overflow: auto;
}
.rooms-dialog::backdrop { background: rgb(15 30 44 / 55%); backdrop-filter: blur(5px); }
.room-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.room-dialog-heading h2 { margin: 5px 0 0; font-size: clamp(24px, 3vw, 32px); }
.room-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.room-select-label { display: block; min-width: 180px; }
.room-select-label select { width: 100%; border: 1px solid var(--border, #dce6ec); border-radius: 12px; background: var(--surface, white); color: inherit; font: inherit; font-size: 14px; padding: 10px 36px 10px 12px; }
.room-stars { font-size: 13px; font-weight: 700; color: var(--muted, #667784); }
.room-stars::before { content: '★'; color: #edb53c; margin-right: 7px; font-size: 17px; }
.room-workspace { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr); align-items: start; gap: 30px; }
.room-art-backdrop { min-height: 310px; display: grid; place-items: center; padding: 25px 18px 14px; border-radius: 22px; background: radial-gradient(ellipse at 50% 75%, #e6edf6 0, #f4f7fb 55%, #f8fafc 100%); overflow: hidden; }
.room-scene { position: relative; width: 100%; max-width: 450px; filter: drop-shadow(0 16px 10px rgb(56 60 79 / 8%)); }
.room-art-layer { display: block; position: absolute; object-fit: fill; pointer-events: none; user-select: none; transition: opacity 220ms ease, filter 220ms ease; }
.room-art-layer.is-unplaced { opacity: 0; }
.room-navigation { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 14px; }
.room-navigation button { min-width: 44px; min-height: 38px; padding: 6px 16px; }
.room-counter { min-width: 55px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted, #667784); font-variant-numeric: tabular-nums; }
.room-note, .room-free-note { text-align: center; font-size: 12px; color: var(--muted, #667784); margin: 12px 0 0; }
.room-progress-label { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 5px; }
.room-progress-label h3 { margin: 0; font-size: 17px; }
.room-progress-text { font-size: 11px; color: var(--muted, #667784); }
.room-progress-bar { display: block; width: 100%; height: 6px; border: 0; border-radius: 20px; overflow: hidden; margin: 13px 0 16px; background: #e7eef3; accent-color: #00afcb; }
.room-progress-bar::-webkit-progress-bar { background: #e7eef3; }
.room-progress-bar::-webkit-progress-value { background: #00afcb; border-radius: 20px; }
.room-progress-bar::-moz-progress-bar { background: #00afcb; border-radius: 20px; }
.room-tasks { display: grid; gap: 7px; max-height: 340px; overflow: auto; padding: 2px; scrollbar-width: thin; }
.room-task { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; padding: 11px 12px; border: 1px solid var(--border, #e4ebf0); border-radius: 10px; font-size: 13px; cursor: pointer; background: var(--surface, #fff); transition: border-color 150ms, background 150ms; }
.room-task input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.room-task:focus-within { outline: 3px solid #00b3d2; outline-offset: 2px; }
.room-task:hover { border-color: #63ccdb; }
.room-task.is-done { border-color: #a9e2e9; background: #f0fbfc; color: #22656f; }
.room-task-check { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border: 1px solid #d3e0e7; border-radius: 50%; color: transparent; font-size: 13px; font-weight: 800; }
.room-task.is-done .room-task-check { color: white; background: #00afcb; border-color: #00afcb; }
.room-actions { display: flex; gap: 9px; margin-top: 16px; }
.room-actions button { flex: 1; font-size: 12px; min-height: 42px; padding: 9px 10px; }
.room-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dark .rooms-dialog, [data-theme="dark"] .rooms-dialog { background: #1d2a37; color: #eff7fc; }
.dark .room-select-label select, [data-theme="dark"] .room-select-label select { background: #253543; border-color: #3b5061; }
.dark .room-task, [data-theme="dark"] .room-task { background: #263644; border-color: #3b5061; }
.dark .room-task.is-done, [data-theme="dark"] .room-task.is-done { background: #194653; color: #c1f4f8; border-color: #2d7b8b; }
.dark .room-art-backdrop, [data-theme="dark"] .room-art-backdrop { background: radial-gradient(ellipse at 50% 75%, #3b4054, #2c3447 70%); }
@media (max-width: 720px) {
  .rooms-dialog { padding: 20px; }
  .room-workspace { grid-template-columns: 1fr; gap: 20px; }
  .room-art-backdrop { min-height: 200px; padding: 15px 20px 10px; }
  .room-scene { width: min(100%, 340px); }
  .room-tasks { max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .room-task { font-size: 12px; padding: 10px; }
  .room-task-check { width: 18px; height: 18px; flex-basis: 18px; font-size: 11px; }
}
@media (max-width: 390px) {
  .rooms-dialog { padding: 16px; width: calc(100vw - 20px); }
  .room-stars { font-size: 11px; }
  .room-select-label { min-width: 150px; }
  .room-tasks { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .room-art-layer, .room-task { transition: none; } }
