.ws-setup-dialog, .ws-paint-dialog {
  position: fixed;
  inset: 0;
  width: min(590px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #bdd8ef;
  border-radius: 24px;
  color: var(--ws-navy, #10294a);
  background: #fff;
  box-shadow: 0 30px 100px #16376559, 0 4px 16px #28588322;
}
.ws-setup-dialog::backdrop, .ws-paint-dialog::backdrop {
  background: rgb(18 53 87 / 36%);
  backdrop-filter: blur(5px);
}
html:has(.ws-setup-dialog[open], .ws-paint-dialog[open]) { overflow: hidden; }
.ws-setup-dialog .setup-card, .paint-sheet {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(22px, 4vw, 34px);
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #f2faff, #fff 38%);
  box-shadow: none;
}
.ws-dialog-close {
  position: absolute;
  z-index: 1;
  top: 17px;
  right: 17px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0 0 2px;
  place-items: center;
  border: 1px solid #d9e7f2;
  border-radius: 50%;
  background: #f4f9fd;
  color: #244568;
  font-size: 24px;
  line-height: 1;
}
.ws-dialog-close:hover { background: #deefff; }
.ws-setup-dialog .setup-heading { align-items: flex-start; padding-right: 32px; }
.ws-setup-dialog .setup-icon {
  display: grid; width: 44px; height: 44px; border-radius: 13px;
  color: #095ac8; background: linear-gradient(135deg, #dceeff, #bfe9ff);
}
.ws-setup-dialog .setup-heading h2, .paint-sheet h2 { margin: 0; color: var(--ws-navy, #10294a); font-size: clamp(1.35rem, 4vw, 1.75rem); letter-spacing: -.045em; }
.ws-setup-dialog .setup-heading p, .paint-sheet header p, .paint-note { margin: 7px 0 0; color: #49617b; font-size: .875rem; line-height: 1.5; }
.ws-setup-dialog .quick-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ws-setup-dialog .quick-fields select { width: 100%; border-color: #c1d4e5; }
.ws-setup-dialog .quick-fields label { color: #304e70; }
.ws-setup-dialog .quick-fields select:disabled { color: #64788e; background-color: #f1f6fa; border-color: #dbe5ed; }
.ws-setup-dialog .setup-actions .button:disabled { background: #e2ebf5; color: #5c7189; border-color: #d7e3ef; }
.ws-setup-dialog .setup-actions, .paint-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-top: 1px solid var(--ws-line, #d4e2ef); margin-top: 24px; padding-top: 18px;
}
.ws-paint-dialog { width: min(430px, calc(100% - 28px)); }
.paint-sheet header { margin-bottom: 16px; padding-right: 34px; }
.quick-paint-preview {
  display: grid; place-items: center;
  height: clamp(110px, 19dvh, 156px); padding: 15px 18px;
  border-radius: 13px; border: 1px solid #d8e9f7; background:
    radial-gradient(ellipse at 50% 78%, #aecad9 0%, #e0ecf5 25%, transparent 59%),
    linear-gradient(#edf7ff, #f9fcff 72%, #ddeaf4 73%, #f2f8fd);
}
.quick-paint-preview svg { display: block; width: 100%; height: 100%; }
.paint-choices { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 19px 0; }
.paint-choice {
  position: relative; aspect-ratio: 1; padding: 0; border-radius: 50%; border: 1px solid #10294a25;
  background: linear-gradient(145deg, #ffffff22, transparent 58%), var(--sample);
}
.paint-choice[aria-pressed="true"] { box-shadow: inset 0 0 0 2px white, 0 0 0 2px var(--ws-blue, #0754cd); }
.paint-choice:focus-visible, .ws-dialog-close:focus-visible { outline: 3px solid #007bd4; outline-offset: 4px; }
.paint-custom, .paint-custom-input { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; }
.paint-custom-input output { font: .76rem ui-monospace, monospace; color: #425c75; }
.paint-custom input[type=color] { width: 46px; height: 34px; padding: 3px; background: white; border: 1px solid #bcd2e4; border-radius: 7px; cursor: pointer; }
.paint-actions { justify-content: flex-end; margin-top: 18px; }
.quick-paint-trigger i { display: inline-block; width: 13px; height: 13px; border: 1px solid #17395e45; border-radius: 50%; background: var(--sample); vertical-align: middle; }
.room-vehicle-body, .room-parked, .shop-stage-car { padding: 0; border: 0; background: transparent; }
.room-vehicle-label { border: 0; }
.room-display, .room-vacancy { pointer-events: none; }
.room-vehicle-body, .room-vehicle-label, .room-parked { pointer-events: auto; }
.guide-art[data-guide-paint] { width: 100%; }
@media (max-width: 430px) {
  .ws-dialog-close { top: 12px; right: 12px; width: 32px; height: 32px; }
  .ws-setup-dialog .setup-icon { width: 34px; height: 34px; }
  .ws-setup-dialog .quick-fields { gap: 13px 10px; }
  .paint-choices { gap: 5px; }
}
