.screenshot-assist{margin:18px 0;padding:14px;border:1px solid #b8cfc1;border-radius:10px;background:#f3f8f3}
.screenshot-assist [hidden]{display:none!important}
.screenshot-assist p{font-size:12px;line-height:1.55}
.screenshot-assist input[type=file]{display:block;width:100%;margin:8px 0}
.screenshot-dimensions{display:flex;gap:15px;margin:12px 0}
.screenshot-dimensions label{display:flex;align-items:center;gap:7px;font-size:12px}
.screenshot-dimensions input{width:66px;padding:7px;border:1px solid #aebeb3;border-radius:5px;background:#fff;color:#17372a}
.screenshot-preview{display:block;max-width:100%;height:auto;margin:10px auto;cursor:crosshair;touch-action:none}
.screenshot-preview:not([width]){display:none}
.screenshot-pipes-tools{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;margin:9px 0;font-size:11px}
.screenshot-pipes-tools .screenshot-auto{margin-right:8px;padding:7px 9px;min-height:32px;font-size:11px}
.screenshot-pipes-tools [data-pipes-box]{min-width:30px;min-height:30px;padding:3px 6px;border:1px solid #91af9c;border-radius:5px;background:#fff;color:#245b46;font-weight:700;cursor:pointer}
.screenshot-pipes-tools [data-pipes-box]:hover{background:#e7f2e9}
.screenshot-detail{display:block;width:100%;max-width:560px;height:auto;margin:10px auto 15px;border-radius:7px;background:#141d25}
.screenshot-pipe-note{margin:3px 0 8px;font-size:11px}
.screenshot-review-grid input.source-marker{box-shadow:inset 0 0 0 2px #769bdf}
.screenshot-pipe-picker{margin:10px 0;padding:10px;border:1px solid #a8c6b3;border-radius:7px;background:#eaf3ed}
.screenshot-pipe-picker strong{display:block;font-size:11px;margin-bottom:8px}
.screenshot-pipe-picker>div{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.screenshot-pipe-picker button{display:grid;place-items:center;min-width:0;height:46px;padding:3px;border:1px solid #adc4b7;border-radius:5px;background:#1c2a32;cursor:pointer}
.screenshot-pipe-picker button[aria-pressed=true]{border:3px solid #e5b952}
.screenshot-pipe-picker button svg{width:36px;height:36px}
.screenshot-status{min-height:1.5em;color:#245b46;font-weight:700}
.screenshot-review{max-width:100%;overflow:auto;margin:12px 0}
.screenshot-palette-map{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;margin-bottom:12px}
.screenshot-palette-map p{width:100%;margin:0 0 3px}
.screenshot-palette-map label{display:flex;align-items:center;gap:5px;font-size:11px}
.screenshot-palette-map select{width:45px;padding:4px;background:#fff;color:#17372a}
.screenshot-swatch{width:22px;height:22px;border:1px solid #5a6b65;border-radius:4px;display:inline-block}
.screenshot-review-grid{display:grid;grid-template-columns:repeat(var(--screenshot-columns),minmax(0,1fr));width:100%;min-width:0;gap:2px}
.screenshot-review-grid input{box-sizing:border-box;min-width:0;width:100%;height:38px;padding:2px;text-align:center;border:1px solid #89aa97;border-radius:3px;background:#fff;color:#153f2e;font-size:12px}
.screenshot-review-grid input.uncertain{border:2px solid #be6727;background:#fff0d8;color:#66350a}
.screenshot-review-grid input.suggested{border:1px dashed #b18841;background:#fffaf0}
.screenshot-relation-note{margin:16px 0 7px;font-weight:700;color:#245b46}
.screenshot-relation-grid{display:grid;grid-template-columns:repeat(var(--relation-grid-size),minmax(18px,1fr));width:max-content;min-width:min(100%,360px);gap:2px;align-items:center;justify-items:center;padding:8px;border:1px solid #b8cfc1;border-radius:7px;background:#e9f0e9}
.screenshot-relation-cell{display:grid;place-items:center;width:30px;height:30px;border-radius:5px;background:#fff;color:#244f3a;font-size:12px;font-weight:800}
.screenshot-relation-edge{display:grid;place-items:center;width:25px;height:25px;padding:0;border:1px solid #b8cfc1;border-radius:5px;background:#f5faf5;color:#7b9682;cursor:pointer;font-size:15px;font-weight:800}
.screenshot-relation-edge[data-kind=same],.screenshot-relation-edge[data-kind=different]{background:#245b55;color:#fff;border-color:#245b55}
.screenshot-relation-edge.uncertain{background:#fff0d8;color:#8b3f12;border-color:#be6727}
.screenshot-relation-gap{width:8px;height:8px}
html[data-theme=dark] .screenshot-assist,[data-theme=dark] .screenshot-assist{background:#1d3330;border-color:#56776b;color:#e0eee7}
html[data-theme=dark] .screenshot-dimensions input,html[data-theme=dark] .screenshot-review-grid input{background:#162724;color:#f1f8f2;border-color:#6a9680}
html[data-theme=dark] .screenshot-palette-map select{background:#162724;color:#f1f8f2;border-color:#6a9680}
html[data-theme=dark] .screenshot-review-grid input.uncertain{background:#503d24;color:#ffe8aa;border-color:#d79d4b}
html[data-theme=dark] .screenshot-review-grid input.suggested{background:#26352b;border-color:#a68e5c}
html[data-theme=dark] .screenshot-pipes-tools [data-pipes-box]{background:#162724;color:#d6f2e6;border-color:#6a9680}
html[data-theme=dark] .screenshot-pipes-tools [data-pipes-box]:hover{background:#28463c}
html[data-theme=dark] .screenshot-pipe-picker{background:#172d29;border-color:#56776b}
html[data-theme=dark] .screenshot-status{color:#b8eac9}
html[data-theme=dark] .screenshot-relation-note{color:#b8eac9}
html[data-theme=dark] .screenshot-relation-grid{background:#18312c;border-color:#56776b}
html[data-theme=dark] .screenshot-relation-cell{background:#274039;color:#f1f8f2}
html[data-theme=dark] .screenshot-relation-edge{background:#1d3330;color:#b8d3c1;border-color:#56776b}
html[data-theme=dark] .screenshot-relation-edge[data-kind=same],html[data-theme=dark] .screenshot-relation-edge[data-kind=different]{background:#4a947c;color:#fff}
html[data-theme=dark] .screenshot-relation-edge.uncertain{background:#503d24;color:#ffe8aa;border-color:#d79d4b}
