:root{font-family:Tahoma,"Segoe UI",Arial,sans-serif;color:#283a50;background:#dce3ea;color-scheme:light;font-size:13px}
*{box-sizing:border-box}
body{margin:0}
button,input,select{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.45;cursor:not-allowed}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #1b64ad;outline-offset:2px}
.app-desktop{min-height:100vh;min-height:100dvh;max-width:1450px;margin:0 auto;background:#e8edf3;border-left:1px solid #b9c7d7;border-right:1px solid #b9c7d7;display:flex;flex-direction:column}
.site-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 15px;background:#245c9b;color:#fff;border-bottom:3px solid #174678}
.brand{display:flex;align-items:center;gap:10px}
.brand-initial{width:35px;height:35px;display:grid;place-items:center;font-size:22px;font-family:Georgia,serif;font-weight:bold;color:#194775;background:#f0b657;border:1px solid #f8d795}
.brand-name{display:flex;flex-direction:column;gap:2px}
.brand-name strong{font-size:20px;letter-spacing:.1px}
.brand-name span{font-size:11px;color:#d9e6f6}
.header-reset{border:1px solid #a6bedb;background:#e6eff9;color:#244970;border-radius:2px;padding:8px 12px;font-weight:bold;font-size:12px}
.studio-layout{display:flex;flex-direction:column;gap:10px;padding:10px;flex:1}
.preview-workspace{border:1px solid #9daec2;background:#f6f8fb;min-width:0}
.workspace-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;background:#d9e3ef;border-bottom:1px solid #b5c4d5}
.toolbar-title{font-weight:700;color:#314b6c;font-size:13px}
.preview-switch{display:flex;align-items:center;gap:4px}
.tool-button,.zoom-controls button{padding:7px 12px;background:#e7edf4;color:#3a526c;border:1px solid #a3b3c5;border-radius:2px;font-weight:700;font-size:12px}
.tool-button.is-selected{background:#3977b6;border-color:#205990;color:#fff}
.canvas-stage{min-height:320px;height:min(57vh,610px);background:#f7f9fb;overflow:hidden}
.single-stage{display:flex;justify-content:center;align-items:center;width:100%;height:100%;padding:14px;overflow:auto}
.single-stage img{max-width:none;max-height:100%;height:auto;object-fit:contain;display:block;min-width:0}
.compare-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);height:100%;gap:1px;background:#b9c5d2}
.comparison-pane{min-width:0;min-height:0;display:flex;flex-direction:column;background:#f7f9fb}
.pane-heading{flex:0 0 auto;background:#e7edf4;color:#4c6381;font-weight:700;padding:8px 11px;border-bottom:1px solid #c7d2df}
.comparison-canvas{min-height:0;min-width:0;display:flex;align-items:center;justify-content:center;flex:1;overflow:auto;padding:10px}
.comparison-canvas img{max-width:none;max-height:100%;height:auto;object-fit:contain;display:block;min-width:0}
.empty-preview{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center;padding:15px;color:#76879b}
.workspace-bottom{padding:7px 12px;background:#e9eff5;border-top:1px solid #b5c3d4;display:flex;justify-content:space-between;align-items:center;gap:10px}
.zoom-controls{display:flex;gap:4px}
.zoom-controls button{padding:4px 11px;min-width:33px}
.workspace-hint{color:#60738a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.controls-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:start}
.control-panel{border:1px solid #a6b7c9;background:#fff;min-width:0;height:100%}
.panel-heading{background:#dbe5f0;border-bottom:1px solid #b0bfd0;display:flex;align-items:center;gap:9px;padding:10px 12px}
.step-index{background:#447cb8;color:#fff;font-weight:bold;display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;font-size:12px;border:1px solid #2c629c}
.panel-heading h2{font-size:13px;margin:0;color:#2d4867}
.panel-body{padding:13px}
.panel-body input[type=file]{width:100%;max-width:100%;font-size:12px;color:#3f5670}
.panel-body input[type=file]::file-selector-button{background:#e2ebf6;color:#245887;border:1px solid #92aaca;padding:9px 11px;cursor:pointer;margin-right:9px;font-weight:700}
.help-text{font-size:11px;color:#708198;line-height:1.6;margin:10px 0 0}
.file-details{display:flex;flex-direction:column;gap:5px;margin-top:12px;padding:9px;border:1px solid #ccd8e5;background:#f5f8fc;overflow-wrap:anywhere;font-size:11px}
.file-details span{color:#71829a}
.detected-color{background:#f1f6ef;border:1px solid #bed2b9;display:flex;justify-content:space-between;align-items:center;gap:9px;padding:9px;font-size:11px;color:#516d4c}
.detected-color strong{color:#32683e}
.setting-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:11px}
.setting-grid label,.advanced-inside label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:11px;font-weight:700;color:#4a5d74}
.setting-grid select,.advanced-inside input:not([type=checkbox]){width:100%;min-width:0;background:#fff;color:#273e58;border:1px solid #a8b9cb;padding:9px;border-radius:2px}
.advanced-options{margin-top:12px;border-top:1px solid #e0e8f0;padding-top:9px}
.advanced-options summary{color:#315e91;font-size:11px;font-weight:bold;cursor:pointer}
.advanced-inside{display:grid;gap:10px;padding-top:11px}
.advanced-inside .check-option{flex-direction:row;gap:8px;align-items:center}
.advanced-inside .check-option input{margin:0}
.action-button,.export-button{border:1px solid #317542;border-radius:2px;background:#3c9453;color:#fff;padding:11px 12px;width:100%;font-weight:bold}
.export-button{background:#357ab9;border-color:#23619c;margin-top:10px}
.status-line{font-size:11px;color:#6a7b91;line-height:1.5;overflow-wrap:anywhere;margin:10px 0 0}
.result-details{display:flex;flex-direction:column;gap:5px;border:1px solid #bed5bc;background:#eff8ee;padding:9px;margin-top:10px;font-size:11px;overflow-wrap:anywhere}
.result-details strong{color:#32633f}
.result-details span{color:#566f62;line-height:1.55}
.diagnostic-toggle{border:0;background:transparent;color:#376a9e;padding:0;text-decoration:underline;font-size:11px;margin-top:11px}
.diagnostic-panel{border:1px solid #cbd8e4;background:#f1f5f8;padding:9px;font-size:10px;margin-top:8px;overflow-wrap:anywhere}
.diagnostic-panel code{font-family:Consolas,monospace}
.site-footer{font-size:11px;color:#6c7d90;padding:12px 16px;text-align:center}
.loading{margin:35vh auto;text-align:center;color:#426d9c}
#blazor-error-ui{background:#fff1df;border-top:1px solid #d8ac50;padding:10px;position:fixed;bottom:0;width:100%;z-index:10}
@media(max-width:850px){.controls-grid{grid-template-columns:1fr 1fr}.control-panel:last-child{grid-column:1/-1}.canvas-stage{height:44vh;min-height:260px}}
@media(max-width:580px){.site-header{padding:8px 10px}.brand-initial{width:30px;height:30px;font-size:20px}.brand-name strong{font-size:17px}.brand-name span{font-size:10px}.header-reset{font-size:11px;padding:7px 8px}.studio-layout{padding:7px;gap:8px}.canvas-stage{height:36vh;min-height:215px}.workspace-toolbar{padding:8px}.toolbar-title{font-size:12px}.tool-button{padding:7px 8px;font-size:11px}.controls-grid{grid-template-columns:1fr;gap:8px}.control-panel:last-child{grid-column:auto}.panel-body{padding:12px}.comparison-canvas{padding:5px}.pane-heading{padding:7px;font-size:11px}.workspace-bottom{padding:6px 8px}.zoom-controls button{padding:4px 8px}}

/* PR #16: clearly separated, optional edge-refinement A/B controls. */
.engine-experiment{margin-top:12px;border:1px solid #b9ccde;background:#f2f6fb;padding:11px;display:flex;flex-direction:column;gap:7px}
.engine-experiment label{font-size:11px;font-weight:700;color:#284d73}
.engine-experiment select{width:100%;min-width:0;padding:9px;background:#fff;border:1px solid #94afcb;color:#234262}
.engine-experiment p,.ab-report p{margin:2px 0 0;color:#5c7088;line-height:1.55;font-size:11px}
.ab-report{margin-top:12px;padding:10px;border:1px solid #b6cce1;background:#f5f9fd;min-width:0}
.ab-report>strong{font-size:12px;color:#294e75}
.ab-table-scroll{overflow-x:auto;margin:9px 0}
.ab-report table{border-collapse:collapse;width:100%;font-size:11px}
.ab-report th,.ab-report td{padding:7px 6px;border:1px solid #c7d7e6;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.ab-report th:first-child,.ab-report td:first-child{text-align:left}
.ab-report th{background:#e3eef7;color:#355477}
.ab-report td{background:#fff;color:#354f68}
.ab-report .ab-warning{color:#8b4b21;font-weight:700}
.ab-report .ab-different{color:#316846;font-weight:700}
.export-button.ab-secondary{background:#e5eff9;color:#245e99;border-color:#97b7d6;margin-top:7px}
@media(max-width:580px){.preview-switch{gap:2px}.tool-button{padding:7px 6px;font-size:10px}.toolbar-title{font-size:11px}.ab-report th,.ab-report td{padding:6px 5px}}

/* PR #17: direct browser downloads and richly detailed SVG metadata. */
.download-links{display:flex;flex-direction:column;gap:7px;margin-top:10px}
.download-links .export-button{display:block;margin:0;text-align:center;text-decoration:none;line-height:1.4;touch-action:manipulation}
.download-links .export-button:focus-visible,.download-fallback:focus-visible{outline:2px solid #1b64ad;outline-offset:2px}
.download-fallback{display:block;color:#235c96;text-align:center;font-size:11px;line-height:1.5;padding:5px;text-decoration:underline;overflow-wrap:anywhere}
.svg-metadata{min-width:0;border:1px solid #bdccdc;background:#f5f8fc;margin-top:12px;color:#294862}
.svg-metadata>summary{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;background:#e4edf6;font-size:12px;font-weight:700;cursor:pointer;overflow-wrap:anywhere}
.svg-metadata>summary::marker{color:#375e8b}
.svg-metadata .meta-summary{color:#536d89;font-size:10px;font-weight:400}
.metadata-body{padding:10px;min-width:0}
.metadata-body h3{font-size:12px;margin:15px 0 7px;color:#244d78;border-bottom:1px solid #ccdce9;padding-bottom:6px}
.metadata-body h3:first-child{margin-top:0}
.metadata-grid{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.metadata-grid>div{border:1px solid #d6e0ec;background:#fff;padding:7px 8px;min-width:0}
.metadata-grid dt{color:#667d95;font-size:10px;margin-bottom:4px;overflow-wrap:anywhere}
.metadata-grid dd{margin:0;color:#213e5a;font-size:11px;font-weight:700;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.metadata-grid code{font-family:Consolas,monospace;overflow-wrap:anywhere}
.meta-note{font-size:10px;color:#6a7e94;line-height:1.6;margin:9px 0}
.svg-colors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:275px;overflow:auto}
.svg-color{display:flex;align-items:center;gap:8px;min-width:0;padding:7px;border:1px solid #d5dfeb;background:#fff}
.color-swatch{width:26px;height:26px;border:1px solid #b5c5d5;flex:0 0 26px}
.svg-color>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.svg-color strong{font-family:Consolas,monospace;font-size:11px;color:#34516f}
.svg-color span:not(.color-swatch){font-size:10px;color:#617792;overflow-wrap:anywhere}
@media(max-width:580px){.metadata-grid{grid-template-columns:1fr 1fr}.svg-colors{grid-template-columns:1fr}.svg-metadata>summary{padding:9px}.metadata-body{padding:8px}}
@media(max-width:355px){.metadata-grid{grid-template-columns:1fr}}

/* Documentation link is a native anchor; works under GitHub Pages subpaths. */
.header-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.header-docs{display:inline-flex;align-items:center;gap:5px;border:1px solid #8cb5df;background:#154a83;color:#fff;text-decoration:none;padding:8px 12px;border-radius:3px;font-weight:bold;font-size:12px;white-space:nowrap}
.header-docs:hover{background:#0c3765;color:#fff}
.header-docs:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(max-width:580px){
  .header-tools{gap:5px}
  .header-docs{padding:7px 8px;font-size:11px}
}
@media(max-width:395px){
  .brand-name strong{font-size:15px}
  .brand-name span{display:none}
  .header-docs{padding:7px 6px;font-size:10px}
  .header-reset{padding:7px 6px;font-size:10px}
}


/* PR #22 — GPU-composited Before/After preview.
   No canvas resizing or SVG recomputation during pan/zoom/drag. */
.preview-widget{--preview-split:50%;--preview-zoom:1;--preview-pan-x:0px;--preview-pan-y:0px;min-width:0}
.preview-stage{position:relative;user-select:none;-webkit-user-select:none}
.preview-viewport{width:100%;height:100%;position:relative;overflow:hidden;isolation:isolate;touch-action:none;cursor:grab;background:#f7f9fb}
.preview-viewport:active{cursor:grabbing}
.preview-viewport:focus-visible{outline:3px solid #3977b6;outline-offset:-3px}
.preview-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.preview-layer img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center;max-width:none;max-height:none;transform-origin:center center;transform:translate3d(var(--preview-pan-x),var(--preview-pan-y),0) scale(var(--preview-zoom));user-select:none;-webkit-user-drag:none;pointer-events:none;will-change:transform}
.preview-reveal{clip-path:inset(0 0 0 var(--preview-split))}
.preview-divider{position:absolute;top:0;bottom:0;left:var(--preview-split);width:0;z-index:2;pointer-events:none}
.preview-divider-line{height:100%;width:2px;background:#f0b657;transform:translateX(-50%);box-shadow:0 0 0 1px #174678}
.preview-divider-handle{position:absolute;z-index:4;top:50%;left:var(--preview-split);transform:translate(-50%,-50%);display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#f0b657;color:#174678;border:2px solid #fff;box-shadow:0 0 0 2px #174678;cursor:col-resize;font-weight:bold;font-size:26px;touch-action:none;user-select:none}
.preview-divider-handle:focus-visible{outline:3px solid #3977b6;outline-offset:4px}
.preview-tag{position:absolute;top:13px;z-index:3;font-size:11px;letter-spacing:.02em;font-weight:700;background:#245c9b;color:#fff;padding:7px 10px;border:1px solid #174678;pointer-events:none;max-width:45%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.preview-tag-before,.preview-tag-single{left:12px}
.preview-tag-after{right:12px;background:#3c9453;border-color:#317542}
.preview-widget[data-comparison="false"] .preview-divider,
.preview-widget[data-comparison="false"] .preview-divider-handle,
.preview-widget[data-comparison="false"] .preview-reveal{display:none}
.preview-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:9px;padding:9px 12px}
.preview-bottom .zoom-controls{flex-shrink:0;display:flex;align-items:center;gap:4px}
.preview-bottom .zoom-controls button{font-size:12px;min-width:32px;padding:6px 9px}
.preview-bottom .zoom-controls button[data-preview-reset]{min-width:80px;font-variant-numeric:tabular-nums}
.preview-bottom .zoom-controls button.zoom-max{border-color:#245c9b;color:#245c9b;font-weight:700}
.preview-bottom .zoom-controls button:disabled{opacity:.45;cursor:default}
.zoom-slider-label{display:flex;align-items:center;gap:8px;min-width:120px;flex:1;max-width:340px;font-size:11px;color:#3a526c;font-weight:700}
.zoom-slider-label input{accent-color:#3977b6;width:100%;min-width:75px;cursor:pointer}
.preview-split-controls{display:flex;align-items:center;gap:12px;padding:8px 12px;border-top:1px solid #b5c3d4;background:#e9eff5}
.preview-split-controls label{font-size:11px;font-weight:700;color:#314b6c;min-width:110px}
.preview-split-controls input{flex:1;width:100%;accent-color:#3977b6;min-width:50px;cursor:pointer}
.preview-split-percent{font-variant-numeric:tabular-nums}
.preview-tip{font-size:10px;color:#60738a;line-height:1.5;margin:0;background:#f6f8fb;padding:8px 12px;border-top:1px solid #d5e0ea}
@media(max-width:680px){
  .preview-stage{height:min(55vh,570px);min-height:300px}
  .preview-bottom{gap:7px}
  .preview-bottom .zoom-controls{width:100%;justify-content:center}
  .zoom-slider-label{max-width:none;width:100%;flex:1 1 100%}
  .preview-bottom .workspace-hint{width:100%;text-align:center}
  .preview-divider-handle{width:42px;height:42px;font-size:23px}
}
@media(max-width:375px){
  .preview-tag{font-size:9px;padding:6px 7px;max-width:43%}
  .preview-bottom .zoom-controls button{padding:6px 7px}
  .preview-tip{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
  .preview-layer img{transition:none}
}


/* PR #23: FIX Android blank/blur frames from old scale(18x..1000x)
 * The raster is now redrawn INSIDE a fixed, capped canvas, and SVG is
 * rasterized natively from its moving viewBox. Never transform huge images.
 */
.preview-viewport{background:#d9e3ed;contain:layout paint}
.preview-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.preview-layer canvas,
.preview-native-svg{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}
.preview-layer canvas{object-fit:fill}
.preview-native-svg svg{display:block;width:100%;height:100%;overflow:hidden}
.preview-layer canvas[hidden]{display:none!important}
.preview-loading{
  position:absolute;z-index:8;left:50%;bottom:14px;
  transform:translateX(-50%);font-size:11px;line-height:1.4;
  color:#174678;background:#f0b657;padding:9px 12px;
  border:1px solid #174678;font-weight:bold;text-align:center;
  max-width:90%;white-space:normal;pointer-events:none
}
.preview-loading[hidden]{display:none!important}
/* The original IMG-based transform is intentionally not used by the
 * replacement canvas/native SVG layers. No giant GPU texture at 1000x.
 */

/* Native Windows/macOS file drop: no giant overlay canvas, no thumbnail decoding
   outside Blazor's existing size/type checks. Upload button remains accessible. */
.app-desktop{position:relative}
.file-dropzone{border:2px dashed #7395ba;background:#f4f8fd;padding:13px 11px;min-width:0}
.file-dropzone-heading{font-size:12px;font-weight:800;color:#245887}
.file-dropzone-hint{font-size:11px;color:#607792;line-height:1.5;margin:5px 0 12px}
.file-dropzone input[type=file]{width:100%;max-width:100%}
.desktop-file-overlay{display:none;position:fixed;inset:12px;z-index:9999;pointer-events:none;border:4px dashed #245c9b;background:rgba(232,241,253,.92);align-items:center;justify-content:center;padding:24px}
.desktop-file-overlay span{max-width:420px;text-align:center;font-size:19px;line-height:1.5;color:#194b83;font-weight:800;background:#fff;border:1px solid #7aa3cb;padding:18px 24px}
.app-desktop.has-file-drag .desktop-file-overlay{display:flex}
.app-desktop.has-file-drag .file-dropzone{background:#e1f0ff;border-color:#235ca4}
@media(max-width:580px){.desktop-file-overlay span{font-size:14px}.file-dropzone{padding:10px}}


/* Mobile UI clean-up: DikaTrace controls instead of browser/Android form chrome. */
.studio-select-field{display:flex;flex-direction:column;gap:6px;min-width:0;width:100%}
.studio-select-label{color:#4a5d74;font-size:11px;font-weight:700}
.studio-select{position:relative;min-width:0;width:100%}
.studio-select>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;box-sizing:border-box;width:100%;min-height:40px;background:#fff;border:1px solid #a8b9cb;border-radius:3px;padding:9px 11px;color:#273e58;font-size:12px;font-weight:600;cursor:pointer;user-select:none;-webkit-user-select:none;touch-action:manipulation}
.studio-select>summary::-webkit-details-marker{display:none}
.studio-select>summary::marker{content:""}
.studio-select>summary:focus-visible{outline:2px solid #1b64ad;outline-offset:2px}
.studio-select[open]>summary{border-color:#3977b6;background:#f7fbff}
.studio-select-current{min-width:0;overflow-wrap:anywhere;line-height:1.45}
.studio-select-chevron{height:8px;width:8px;flex:0 0 8px;border-right:2px solid #416789;border-bottom:2px solid #416789;transform:translateY(-2px) rotate(45deg);transition:transform .12s ease}
.studio-select[open] .studio-select-chevron{transform:translateY(2px) rotate(225deg)}
.studio-select[open]{z-index:80}
.studio-select-menu{position:absolute;top:calc(100% + 4px);left:0;right:0;max-height:min(42vh,270px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;z-index:90;background:#fff;border:1px solid #87a7c8;border-radius:5px;box-shadow:0 10px 24px rgba(25,58,100,.20);padding:5px;display:flex;flex-direction:column;gap:2px}
.studio-select.open-upwards .studio-select-menu{top:auto;bottom:calc(100% + 4px)}
.studio-select-option{width:100%;min-height:40px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border:0;background:transparent;border-radius:3px;text-align:left;color:#284663;font-size:12px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;touch-action:manipulation}
.studio-select-option:hover,.studio-select-option:focus-visible{background:#e5eff9;outline:0}
.studio-select-option.is-current{background:#dcebf9;color:#18588f;font-weight:700}
.studio-select-check{color:#2875b6;flex:0 0 auto;font-size:15px}
.studio-select.is-disabled{opacity:.55;pointer-events:none}
.engine-experiment .studio-select-label{color:#284d73}
@media(max-width:580px){.studio-select-menu{max-height:min(38vh,245px)}.studio-select-option{min-height:44px;font-size:12px}}

/* Browser keeps its secure file picker functionality but never renders its native button/text. */
.file-picker{display:inline-flex;position:relative;max-width:100%;min-width:125px;min-height:40px;border:1px solid #8aa8c5;border-radius:3px;background:#e2ebf6;color:#245887;cursor:pointer;overflow:hidden;align-items:stretch}
.file-picker-button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:9px 15px;min-height:40px;font-size:12px;font-weight:750;pointer-events:none}
.file-picker .file-picker-input{position:absolute;inset:0;width:100%;height:100%;max-width:none;padding:0;margin:0;opacity:0;cursor:pointer;z-index:2;font-size:0}
.file-picker:focus-within{outline:2px solid #1b64ad;outline-offset:3px}
.file-picker:hover{background:#d5e6f7}
.file-picker.is-disabled{opacity:.55;cursor:default;pointer-events:none}

/* Compact visual handle; expanded invisible hit surface preserves touch dragging. */
.preview-divider-handle{width:26px;height:26px;box-sizing:border-box;border:2px solid #fff;box-shadow:0 0 0 2px #174678;background:#efba61;font-size:0;line-height:0}
.preview-divider-handle::before{content:"";position:absolute;inset:-10px;border-radius:50%;background:transparent}
@media(max-width:680px){.preview-divider-handle{width:26px;height:26px;font-size:0}}

/* Uniform sliders, checkboxes and disclosure arrows on mobile/desktop. */
.zoom-slider-label input[type=range],.preview-split-controls input[type=range]{-webkit-appearance:none;appearance:none;height:6px;border:0;border-radius:999px;background:#becbd7;outline-offset:5px;margin:8px 0;touch-action:pan-y}
.zoom-slider-label input[type=range]::-webkit-slider-thumb,.preview-split-controls input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border:2px solid #fff;border-radius:50%;background:#3977b6;box-shadow:0 0 0 1px #3977b6;cursor:ew-resize}
.zoom-slider-label input[type=range]::-moz-range-thumb,.preview-split-controls input[type=range]::-moz-range-thumb{width:15px;height:15px;border:2px solid #fff;border-radius:50%;background:#3977b6;box-shadow:0 0 0 1px #3977b6;cursor:ew-resize}
.zoom-slider-label input[type=range]:disabled,.preview-split-controls input[type=range]:disabled{opacity:.5;cursor:default}
.advanced-inside input[type=checkbox]{-webkit-appearance:none;appearance:none;position:relative;width:18px;height:18px;min-width:18px;margin:0;background:#fff;border:1.5px solid #8faac5;border-radius:3px;cursor:pointer}
.advanced-inside input[type=checkbox]:checked{border-color:#3977b6;background:#3977b6}
.advanced-inside input[type=checkbox]:checked::after{content:"";position:absolute;left:5px;top:1px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}
.advanced-inside input[type=checkbox]:disabled{opacity:.45;cursor:default}
.advanced-inside input[type=number]{-moz-appearance:textfield;appearance:textfield}
.advanced-inside input[type=number]::-webkit-inner-spin-button,.advanced-inside input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.advanced-options>summary{list-style:none;display:flex;align-items:center;gap:8px}
.advanced-options>summary::-webkit-details-marker{display:none}
.advanced-options>summary::before{content:"";border-right:2px solid #315e91;border-bottom:2px solid #315e91;width:7px;height:7px;transform:rotate(-45deg);transition:transform .12s ease}
.advanced-options[open]>summary::before{transform:rotate(45deg)}
