.art-save-menu[hidden], .art-room-dialog [hidden] { display: none !important; }
.art-save-menu {
  position: fixed; z-index: 10050; display: flex; flex-direction: column;
  gap: 2px; padding: 4px; background: #fff; border: 1px solid #d6d6d6;
  border-radius: 6px; box-shadow: 0 3px 14px #0002;
}
.art-save-menu > button {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px;
  min-height: 0; padding: 9px; border: 0; border-radius: 4px; background: transparent;
  color: #292929; cursor: pointer;
}
.art-save-menu > button:hover, .art-save-menu > button:focus-visible { background: #f1f3f2; }
.art-save-menu button:focus-visible, .art-room-dialog :focus-visible { outline: 2px solid #315b45; outline-offset: 2px; }
.art-save-menu .bookmark-icon, .art-save-menu .bookmark-icon__svg { display: block; width: 24px; height: 24px; }
.art-save-menu .bookmark-icon__heart { fill: #fff; stroke: #292929; stroke-width: 2; }
.art-save-menu .is-filled .bookmark-icon__heart { fill: #c41a1a; stroke: #c41a1a; }
.art-save-house { display: block; width: 24px; height: 24px; background: currentColor; mask: url('../vendor/lucide/house.svg') center / contain no-repeat; }
.art-save-tooltip {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  padding: 5px 8px; background: #292929; color: #fff; border-radius: 4px;
  font-size: 13px; line-height: 1.4; font-weight: 400; white-space: nowrap; pointer-events: none; visibility: hidden;
}
.art-save-menu[data-tooltip-side="right"] .art-save-tooltip { right: auto; left: calc(100% + 10px); }
.art-save-menu button:hover .art-save-tooltip, .art-save-menu button:focus-visible .art-save-tooltip { visibility: visible; }
.art-room-dialog {
  box-sizing: border-box; width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 32px);
  margin: auto; padding: 20px; border: 1px solid #ddd; border-radius: 8px;
  background: #fff; color: #292929; box-shadow: 0 12px 50px #0003; overflow: auto;
  font-size: 16px; line-height: 1.4;
}
.art-room-dialog::backdrop { background: #0006; }
.art-room-dialog__header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.art-room-dialog__header h2 { font-size: 20px; font-weight: 500; line-height: 1.3; margin: 0; flex: 1; }
.art-room-close { width: 36px; height: 36px; flex: 0 0 36px; padding: 6px; background: transparent; border: 0; cursor: pointer; }
.art-room-close::before { content: ''; display: block; width: 24px; height: 24px; background: #292929; mask: url('../vendor/lucide/x.svg') center / contain no-repeat; }
.art-room-status { margin: 0 0 16px; overflow-wrap: anywhere; }
.art-room-status:empty { display: none; }
.art-room-status.is-error { color: #b51c1c; }
.art-room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.art-room-choice {
  display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0 0 8px;
  text-align: left; border: 1px solid #d9dedb; border-radius: 6px; overflow: hidden;
  font: inherit; color: inherit; background: #fff; cursor: pointer;
}
.art-room-choice:hover { border-color: #315b45; }
.art-room-choice:disabled { opacity: .6; cursor: wait; }
.art-room-choice > span:last-child { padding: 0 10px; overflow-wrap: anywhere; }
.art-room-preview { width: 100%; aspect-ratio: 4 / 3; background: #edf0ee; display: grid; place-items: center; overflow: hidden; }
.art-room-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.art-room-preview .art-save-house { width: 40px; height: 40px; color: #85918b; }
.art-room-dialog__footer { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 20px; }
.art-room-dialog__footer a, .art-room-dialog__footer button { font: inherit; }
.art-room-dialog__footer button { border: 0; background: transparent; padding: 8px 0; text-decoration: underline; color: #292929; cursor: pointer; }
.art-room-dialog__confirmation > a { background: #315b45; border-color: #315b45; color: #fff; padding: 10px 16px; }
@media (max-width: 480px) {
  .art-room-dialog { padding: 16px; }
  .art-room-grid { gap: 12px; }
  .art-room-choice { font-size: 14px; }
}
