/* 1.9.12. Range controls are deliberately isolated from theme input resets. */
dialog.bsgp-photo-v1912 {width:960px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}
.bsgp-photo-v1912 .bsgp-photo-layout {grid-template-columns:minmax(240px,350px) minmax(0,1fr);gap:24px}
.bsgp-photo-v1912 .bsgp-photo-canvas {position:relative;background-color:#fff;background-image:linear-gradient(45deg,#e5e9f0 25%,transparent 25%),linear-gradient(-45deg,#e5e9f0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e5e9f0 75%),linear-gradient(-45deg,transparent 75%,#e5e9f0 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;border:1px solid #bac8db}
.bsgp-photo-v1912 .bsgp-photo-canvas canvas {width:100%!important;height:auto!important;max-width:100%;display:block;touch-action:none;user-select:none;-webkit-user-select:none}
.bsgp-photo-v1912 .bsgp-photo-controls nav button {padding:12px 9px;font-size:14px;min-height:48px}
.bsgp-photo-v1912 .bsgp-photo-zoom-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}
.bsgp-photo-v1912 .bsgp-photo-zoom-heading label {margin:0;white-space:nowrap;font-size:14px}
.bsgp-photo-v1912 [data-zoom-value] {font-family:inherit;font-weight:700;font-size:14px;line-height:1.4;font-variant-numeric:tabular-nums;min-width:64px;padding:5px 8px;background:#eef2f8;border-radius:6px;text-align:center;color:#18265d}
.bsgp-photo-v1912 .bsgp-photo-zoom-row {display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:12px;margin:5px 0 12px}
.bsgp-photo-v1912 .bsgp-photo-zoom-row button {min-width:44px;width:44px;min-height:44px;height:44px;padding:0;line-height:1;font-size:24px;touch-action:manipulation}
.bsgp-photo-v1912 input[type=range] {appearance:none!important;-webkit-appearance:none!important;display:block!important;visibility:visible!important;opacity:1!important;position:static!important;transform:none!important;float:none!important;width:100%!important;min-width:0!important;max-width:100%!important;height:44px!important;min-height:44px!important;max-height:44px!important;box-sizing:border-box!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;cursor:pointer;touch-action:pan-y;pointer-events:auto!important}
.bsgp-photo-v1912 input[type=range]::-webkit-slider-runnable-track {width:100%;height:6px;background:#cdd8e8!important;border:0;border-radius:10px;box-shadow:none}
.bsgp-photo-v1912 input[type=range]::-webkit-slider-thumb {appearance:none!important;-webkit-appearance:none!important;margin-top:-7px;width:20px;height:20px;border-radius:50%;border:2px solid #fff;background:#18265d;box-shadow:0 0 0 1px #18265d;cursor:grab}
.bsgp-photo-v1912 input[type=range]::-moz-range-track {width:100%;height:6px;background:#cdd8e8!important;border:0;border-radius:10px;box-shadow:none}
.bsgp-photo-v1912 input[type=range]::-moz-range-thumb {width:17px;height:17px;border:2px solid #fff;border-radius:50%;background:#18265d;box-shadow:0 0 0 1px #18265d;cursor:grab}
.bsgp-photo-v1912 input[type=range]:disabled {cursor:wait;opacity:.6!important}
.bsgp-photo-v1912 .bsgp-photo-small-tools {display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.bsgp-photo-v1912 .bsgp-photo-small-tools button {font-size:13px;min-height:42px;padding:10px 12px;white-space:nowrap;flex:0 1 auto}
.bsgp-photo-v1912 .bsgp-photo-small-tools button[aria-pressed=true] {background:#e8f1f8;color:#163e63;border-color:#7aadc8}
.bsgp-photo-v1912 .bsgp-photo-background-tools {border-top:1px solid #e3e9f2;margin-top:12px;padding-top:8px}
.bsgp-photo-v1912 .bsgp-photo-background-tools label {margin:10px 0 0}
.bsgp-photo-v1912 .bsgp-photo-background-tools small {margin:2px 0 6px}
.bsgp-photo-v1912 .bsgp-photo-quality {font-size:12px;line-height:1.55;margin-top:12px;color:#65718a}
.bsgp-photo-v1912 .bsgp-photo-quality.is-low {background:#fff8e9;border:1px solid #e9d49f;border-radius:8px;color:#785920;padding:10px 12px}
.bsgp-photo-v1912 .bsgp-photo-legend {font-size:12px;line-height:1.55;color:#65718a;margin-top:10px}
.bsgp-photo-v1912 [data-status] {font-size:13px;line-height:1.6;min-height:2em}
.bsgp-photo-v1912 .bsgp-photo-privacy {font-size:11px;margin:10px 0 0;line-height:1.6}
.bsgp-photo-v1912 footer {position:sticky;bottom:0;z-index:3}
.bsgp-photo-v1912 [data-contour-tools] p {font-size:13px}
@media (max-width:700px) {
  .bsgp-photo-v1912 .bsgp-photo-layout {grid-template-columns:minmax(0,1fr);padding:16px;gap:16px}
  .bsgp-photo-v1912 .bsgp-photo-preview {width:min(100%,260px);margin:auto}
  .bsgp-photo-v1912 .bsgp-photo-small-tools button {flex:1 1 auto;min-width:0;white-space:normal}
  .bsgp-photo-v1912 .bsgp-photo-controls nav button {font-size:13px;min-height:48px;padding:10px 6px}
  .bsgp-photo-v1912 .bsgp-photo-controls section {padding-top:4px}
  .bsgp-photo-v1912 footer button {font-size:13px;white-space:nowrap;min-width:0;padding:11px 12px}
}
@media (max-width:380px) {
  .bsgp-photo-v1912 .bsgp-photo-layout {padding:12px}
  .bsgp-photo-v1912 .bsgp-photo-zoom-row {gap:9px}
  .bsgp-photo-v1912 .bsgp-photo-preview {width:min(100%,224px)}
}
/* 1.17.26: clear restoration controls for difficult blond hair and busy backdrops. */
.bsgp-photo-v11726 [data-brush-tools] {margin:12px 0;padding:12px;border:1px solid #cfdbe9;border-radius:10px;background:#f7f9fc}
.bsgp-photo-v11726 .bsgp-photo-help {font-size:13px;line-height:1.6;margin:0 0 8px;color:#263851}
.bsgp-photo-v11726 [data-brush-tools] label {display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;font-weight:600;color:#263851}
.bsgp-photo-v11726 [data-brush-tools] output {font-variant-numeric:tabular-nums;font-weight:700;color:#18265d}
.bsgp-photo-v11726 [data-brush-tools] .bsgp-photo-small-tools button {flex:1 1 145px}
.bsgp-photo-v11726 [data-brush-tools] .bsgp-photo-small-tools button[aria-pressed="true"] {background:#162b4a;color:#fff;border-color:#162b4a}
.bsgp-photo-v11726 [data-start-over] {background:#fff;color:#18265d;border-color:#ccd5e4}
.bsgp-photo-v11726 canvas[aria-label] {outline-offset:3px}

/* 1.17.30: inspect transparency against white/dark backgrounds before saving. */
.bsgp-photo-v11730 .bsgp-photo-canvas[data-backdrop="white"] {background:#fff!important;background-image:none!important}
.bsgp-photo-v11730 .bsgp-photo-canvas[data-backdrop="dark"] {background:#283343!important;background-image:none!important}
.bsgp-photo-v11730 .bsgp-photo-backdrop-options {display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:12px}
.bsgp-photo-v11730 .bsgp-photo-backdrop-options span {font-size:12px;flex-basis:100%;font-weight:650;color:#3c4b60}
.bsgp-photo-v11730 .bsgp-photo-backdrop-options button {font-size:12px;min-height:38px;padding:8px 10px;background:#f6f8fc;color:#1e3047;border:1px solid #c4d1e2;border-radius:8px}
.bsgp-photo-v11730 .bsgp-photo-backdrop-options button[aria-pressed="true"] {background:#193757;color:#fff;border-color:#193757}
