.da-rails, .da-rails * { box-sizing: border-box; }
.da-rails { width: 100%; max-width: 100%; min-width: 0; margin: 0; }
.da-rails-stage { position: relative; width: 100%; isolation: isolate; }
.da-rails-stage > .da-rails-photo { display: block; width: 100%; height: auto; margin: 0; }
.da-rails-stage > .da-rails-overlay { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.da-rails .da-rails-controls { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: block; width: max-content; max-width: calc(100% - 24px); margin: 0; padding: 0; }
/* Native select sizing reserves only the longest option plus its arrow. */
.da-rails .da-rails-select { display: block; width: auto; max-width: 100%; min-width: 0; margin: 0; padding: 8px 10px; min-height: 36px; border: 1px solid #666; border-radius: 4px; color: #fff; background: #151515; font: 400 14px/1.25 Arial, sans-serif; cursor: pointer; color-scheme: dark; }
@media (pointer: coarse) {
  .da-rails .da-rails-select { min-height: 44px; font-size: 16px; }
}
/* Hide legacy markup immediately, before the script removes it. */
.da-rails [data-da-toggle], .da-rails [data-da-controls][hidden] { display: none !important; }
