/* ============================================================================
   EXIF Data Remover (rebuilt 2026-10-12)
   Everything is scoped to .edr (the tool container) or a edr- class.
   Light mode default, dark mode via [data-theme="dark"] on <html>. Accent #339966.
   ========================================================================== */
.edr {
    --edr-primary: #339966;
    --edr-primary-dark: #267a50;
    --edr-primary-soft: rgba(51, 153, 102, 0.12);
    --edr-primary-mid: rgba(51, 153, 102, 0.28);
    --edr-btn: #26794f;
    --edr-btn-hover: #1d5f3e;
    --edr-success: #339966;
    --edr-success-soft: rgba(51, 153, 102, 0.12);
    --edr-danger: #e64e4e;
    --edr-danger-soft: rgba(230, 78, 78, 0.10);
    --edr-warning: #b7791f;
    --edr-warning-soft: rgba(245, 158, 11, 0.12);
    --edr-elevated: var(--bg-elevated, #ffffff);
    --edr-bg-2: #f1f5f9;
    --edr-text: #1e293b;
    --edr-text-2: #475569;
    --edr-muted: #64748b;
    --edr-border: #e2e8f0;
    --edr-border-strong: #cbd5e1;
    --edr-checker: #eef2f6;
    --edr-switch-off: #cbd5e1;
    --edr-switch-off-border: #94a3b8;
    --edr-r-sm: 8px;
    --edr-r-md: 12px;
    --edr-r-lg: 16px;
    --tool-accent: #339966;
    color: var(--edr-text);
    box-sizing: border-box;
}
[data-theme="dark"] .edr {
    --edr-primary: #4cc38a;
    --edr-primary-dark: #7dd9ab;
    --edr-primary-soft: rgba(76, 195, 138, 0.15);
    --edr-primary-mid: rgba(76, 195, 138, 0.32);
    --edr-success: #4ade80;
    --edr-success-soft: rgba(74, 222, 128, 0.14);
    --edr-danger: #f87171;
    --edr-danger-soft: rgba(248, 113, 113, 0.14);
    --edr-warning: #fbbf24;
    --edr-warning-soft: rgba(251, 191, 36, 0.14);
    --edr-elevated: #1e293b;
    --edr-bg-2: #273449;
    --edr-text: #f1f5f9;
    --edr-text-2: #cbd5e1;
    --edr-muted: #94a3b8;
    --edr-border: #334155;
    --edr-border-strong: #475569;
    --edr-checker: #2b3a50;
    --edr-switch-off: #475569;
    --edr-switch-off-border: #64748b;
}

.edr *, .edr *::before, .edr *::after { box-sizing: border-box; }
.edr [hidden] { display: none !important; }
.edr button { width: auto; }   /* custom_styles.css makes every button 100% wide under 768px */
.edr a { color: var(--edr-primary); }
.edr a:hover { color: var(--edr-primary-dark); }
.edr i[data-lucide], .edr svg.lucide { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- breadcrumb + header ---------- */
.edr .edr-crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: 0.82rem; color: var(--edr-muted); }
.edr .edr-crumbs li { display: inline-flex; align-items: center; gap: 0.35rem; min-width: 0; }
.edr .edr-crumbs li + li::before { content: '/'; color: var(--edr-border-strong); }
.edr .edr-crumbs a { color: var(--edr-muted); text-decoration: none; }
.edr .edr-crumbs a:hover { color: var(--edr-primary); text-decoration: underline; }
.edr .edr-crumbs [aria-current] { color: var(--edr-text-2); font-weight: 600; }
.edr .edr-title-icon {
    width: 56px; height: 56px; border-radius: var(--edr-r-md);
    background: var(--edr-primary); color: #fff;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
[data-theme="dark"] .edr .edr-title-icon { background: #26794f; }
.edr .edr-title-icon svg, .edr .edr-title-icon i { width: 28px; height: 28px; display: block; }
.edr .edr-title { color: var(--edr-primary); }

/* ---------- error / notes ---------- */
.edr .edr-error {
    display: flex; gap: 0.75rem; align-items: flex-start;
    background: var(--edr-danger-soft); border: 1px solid var(--edr-danger); color: var(--edr-text);
    border-radius: var(--edr-r-md); padding: 0.85rem 1rem; margin: 0 0 1rem;
}
.edr .edr-error > svg { color: var(--edr-danger); margin-top: 2px; }
.edr .edr-error p { margin: 0; line-height: 1.55; }
.edr .edr-error-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.edr .edr-x { background: none; border: 0; color: var(--edr-muted); cursor: pointer; padding: 2px; border-radius: 6px; display: inline-flex; margin: 0; }
.edr .edr-x:hover { color: var(--edr-text); background: var(--edr-bg-2); }

/* ---------- cards ---------- */
.edr .edr-card { background: var(--edr-elevated); border: 1px solid var(--edr-border); border-radius: var(--edr-r-lg); padding: 1.25rem; min-width: 0; }

/* ---------- upload ---------- */
.edr .edr-drop {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.45rem;
    min-height: 250px; padding: 2.25rem 1.25rem; text-align: center; cursor: pointer; margin: 0;
    border: 2px dashed var(--edr-border-strong); border-radius: var(--edr-r-lg);
    background: var(--edr-elevated); transition: border-color 0.2s ease, background-color 0.2s ease;
}
.edr .edr-drop:hover, .edr .edr-drop.edr-over, .edr .edr-drop:focus-within { border-color: var(--edr-primary); background: var(--edr-primary-soft); }
.edr .edr-drop-icon {
    width: 64px; height: 64px; border-radius: 50%; background: var(--edr-primary-soft); color: var(--edr-primary);
    display: flex; align-items: center; justify-content: center; margin-bottom: 0.35rem;
}
.edr .edr-drop-icon svg { width: 30px; height: 30px; }
.edr .edr-drop strong { font-size: 1.2rem; color: var(--edr-text); }
.edr .edr-drop-link { color: var(--edr-primary); text-decoration: underline; text-underline-offset: 3px; }
.edr .edr-drop-sub { color: var(--edr-muted); font-size: 0.92rem; }
.edr .edr-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.6rem; }
.edr .edr-badge {
    display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem; border-radius: 999px;
    background: var(--edr-bg-2); color: var(--edr-text-2); font-size: 0.8rem; font-weight: 600;
}
.edr .edr-badge svg { width: 14px; height: 14px; color: var(--edr-success); }
.edr .edr-sample-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }
.edr .edr-reading { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.75rem; color: var(--edr-muted); font-size: 0.92rem; }

/* ConvertICO ring loader (same rings as the header logo) */
.edr .edr-loader { display: block; width: 32px; height: 32px; overflow: visible; flex-shrink: 0;
    --cico-outer: #f2534e; --cico-outer-soft: #f8d3d1; --cico-mid: #31ae77; --cico-mid-soft: #d0e7dd; --cico-inner: #2b9edb; }
[data-theme="dark"] .edr .edr-loader { --cico-outer-soft: rgba(242, 83, 78, 0.22); --cico-mid-soft: rgba(49, 174, 119, 0.22); }
.edr .edr-loader circle { fill: none; stroke-width: 72; transform-box: fill-box; transform-origin: center; }
.edr .edr-loader .bp { stroke: var(--cico-outer-soft); }
.edr .edr-loader .gp { stroke: var(--cico-mid-soft); }
.edr .edr-loader .b { stroke: var(--cico-outer); stroke-linecap: round; stroke-dasharray: 35.3 100; animation: edrSpinL 1.3s linear infinite; }
.edr .edr-loader .g { stroke: var(--cico-mid); stroke-linecap: round; stroke-dasharray: 75.8 100; animation: edrSpinR 2.1s linear infinite; }
.edr .edr-loader .r { stroke: var(--cico-inner); animation: edrBreathe 1.3s ease-in-out infinite; }
.edr .edr-loader-sm { width: 18px; height: 18px; }
@keyframes edrSpinL { from { transform: rotate(117deg); } to { transform: rotate(-243deg); } }
@keyframes edrSpinR { from { transform: rotate(36deg); } to { transform: rotate(396deg); } }
@keyframes edrBreathe { 50% { transform: scale(0.9); } }
@media (prefers-reduced-motion: reduce) {
    .edr .edr-loader .b { animation-duration: 4s; }
    .edr .edr-loader .g { animation-duration: 6s; }
    .edr .edr-loader .r { animation: none; }
}

/* ---------- recent ---------- */
.edr .edr-recent { margin-top: 1rem; }
.edr .edr-recent-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.65rem; }
.edr .edr-recent-head h2 { display: flex; align-items: center; gap: 0.45rem; margin: 0; font-size: 1rem; color: var(--edr-text); }
.edr .edr-recent-head h2 svg { color: var(--edr-primary); }
.edr .edr-recent-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.65rem; }
.edr .edr-recent-item { position: relative; min-width: 0; border: 1px solid var(--edr-border); border-radius: var(--edr-r-md); overflow: hidden; background: var(--edr-elevated); }
.edr .edr-recent-thumb { height: 92px; display: flex; align-items: center; justify-content: center; background: var(--edr-checker); }
.edr .edr-recent-thumb img { max-width: 100%; max-height: 92px; display: block; }
.edr .edr-recent-thumb svg { width: 30px; height: 30px; color: var(--edr-muted); }
.edr .edr-recent-info { padding: 0.45rem 0.55rem; font-size: 0.78rem; color: var(--edr-muted); display: flex; align-items: center; gap: 0.4rem; }
.edr .edr-recent-text { min-width: 0; flex: 1; }
.edr .edr-recent-name { display: block; color: var(--edr-text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edr .edr-recent-dl {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--edr-border);
    background: var(--edr-elevated); color: var(--edr-primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.edr .edr-recent-dl:hover { background: var(--edr-primary-soft); }
.edr .edr-recent-dl svg { width: 15px; height: 15px; }

/* ---------- buttons ---------- */
.edr .edr-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; margin: 0;
    min-height: 44px; padding: 0.6rem 1.15rem; border-radius: var(--edr-r-md);
    font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none; line-height: 1.2;
    border: 1px solid transparent; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.edr .edr-btn:focus-visible { outline: 2px solid var(--edr-primary); outline-offset: 2px; }
.edr .edr-btn-primary, .edr a.edr-btn-primary { background: var(--edr-btn); color: #fff; }
.edr .edr-btn-primary:hover, .edr a.edr-btn-primary:hover { background: var(--edr-btn-hover); color: #fff; }
.edr .edr-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.edr .edr-btn-ghost { background: var(--edr-elevated); color: var(--edr-text); border-color: var(--edr-border-strong); }
.edr .edr-btn-ghost:hover { border-color: var(--edr-primary); color: var(--edr-primary); }
.edr .edr-btn-ghost:disabled { opacity: 0.5; cursor: not-allowed; }
.edr .edr-btn-danger { background: var(--edr-danger); color: #fff; }
.edr .edr-btn-danger:hover { background: #c93c3c; color: #fff; }
.edr .edr-btn-sm { white-space: nowrap; flex-shrink: 0; min-height: 34px; padding: 0.35rem 0.75rem; font-size: 0.85rem; border-radius: var(--edr-r-sm); }
.edr .edr-btn-sm svg { width: 15px; height: 15px; }
.edr .edr-link-btn { background: none; border: 0; padding: 0.25rem; margin: 0; font: inherit; font-size: 0.85rem; color: var(--edr-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; }
.edr .edr-link-btn:hover { color: var(--edr-danger); }
.edr .edr-link-btn svg { width: 15px; height: 15px; }

/* ---------- editor layout ---------- */
.edr .edr-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.edr .edr-grid > * { min-width: 0; }
.edr .edr-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.edr .edr-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; min-width: 0; }
.edr .edr-panel-head h2 { display: flex; align-items: center; gap: 0.45rem; margin: 0; font-size: 1rem; font-weight: 700; color: var(--edr-text); white-space: nowrap; }
.edr .edr-panel-head h2 svg { color: var(--edr-primary); }
.edr .edr-chip {
    display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; font-weight: 700; min-width: 0;
    color: var(--edr-primary); background: var(--edr-primary-soft); border-radius: 6px; padding: 0.18rem 0.55rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.edr .edr-checker {
    background-color: var(--edr-elevated);
    background-image: linear-gradient(45deg, var(--edr-checker) 25%, transparent 25%), linear-gradient(-45deg, var(--edr-checker) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--edr-checker) 75%), linear-gradient(-45deg, transparent 75%, var(--edr-checker) 75%);
    background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.edr .edr-hint { font-size: 0.8rem; color: var(--edr-muted); margin: 0.55rem 0 0; line-height: 1.45; }
.edr .edr-caption { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--edr-muted); margin: 0 0 0.45rem; }
.edr .edr-block { background: var(--edr-elevated); border: 1px solid var(--edr-border); border-radius: var(--edr-r-md); padding: 0.9rem 1rem; margin-bottom: 0.875rem; }
.edr .edr-keep { display: flex; align-items: flex-start; gap: 0.45rem; margin-top: 0.7rem; font-size: 0.85rem; color: var(--edr-text-2); line-height: 1.4; }
.edr .edr-keep svg { width: 16px; height: 16px; color: var(--edr-primary); margin-top: 2px; }

/* segmented choices */
.edr .edr-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; }
.edr .edr-seg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.edr .edr-seg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.edr .edr-seg-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.edr .edr-qcard {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; padding: 0.5rem 0.6rem; min-height: 54px; min-width: 0; margin: 0;
    border: 1px solid var(--edr-border-strong); border-radius: var(--edr-r-sm); background: var(--edr-elevated); cursor: pointer; font: inherit; text-align: left; color: var(--edr-text);
}
.edr .edr-qcard > svg { width: 18px; height: 18px; color: var(--edr-primary); margin-bottom: 0.15rem; }
.edr .edr-qcard b { font-size: 0.86rem; }
.edr .edr-qcard span { font-size: 0.72rem; color: var(--edr-muted); line-height: 1.3; }
.edr .edr-qcard:hover { border-color: var(--edr-primary); }
.edr .edr-qcard.edr-on { border-color: var(--edr-primary); background: var(--edr-primary-soft); box-shadow: inset 0 0 0 1px var(--edr-primary); }
.edr .edr-qcard.edr-on b { color: var(--edr-primary); }
.edr .edr-qcard:disabled { opacity: 0.45; cursor: not-allowed; }
.edr .edr-q {
    min-height: 36px; padding: 0.3rem 0.25rem; margin: 0; border: 1px solid var(--edr-border-strong); border-radius: var(--edr-r-sm);
    background: var(--edr-elevated); color: var(--edr-text); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; line-height: 1.2; min-width: 0;
}
.edr .edr-q small { display: block; font-size: 0.68rem; font-weight: 500; color: var(--edr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edr .edr-q:hover { border-color: var(--edr-primary); }
.edr .edr-q.edr-on { background: var(--edr-primary-soft); border-color: var(--edr-primary); color: var(--edr-primary); }
.edr .edr-q:disabled { opacity: 0.45; cursor: not-allowed; }

/* number steppers */
.edr .edr-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.edr .edr-stepper { display: flex; align-items: stretch; border: 1px solid var(--edr-border-strong); border-radius: var(--edr-r-sm); overflow: hidden; background: var(--edr-elevated); min-width: 0; }
.edr .edr-stepper:focus-within { border-color: var(--edr-primary); box-shadow: 0 0 0 3px var(--edr-primary-soft); }
.edr .edr-stepper input {
    flex: 1; min-width: 0; width: 100%; border: 0; margin: 0; background: transparent; color: var(--edr-text); text-align: center; box-shadow: none;
    font: inherit; font-size: 0.98rem; font-weight: 600; padding: 0.45rem 0.2rem; -moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums;
}
.edr .edr-stepper input::-webkit-outer-spin-button, .edr .edr-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.edr .edr-stepper input:focus { outline: none; }
.edr .edr-unit { display: inline-flex; align-items: center; padding: 0 0.45rem; font-size: 0.78rem; color: var(--edr-muted); font-weight: 700; background: var(--edr-bg-2); }
.edr .edr-field { min-width: 0; }
.edr .edr-field-label { display: flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 700; color: var(--edr-text-2); margin-bottom: 0.35rem; }
.edr .edr-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.75rem; }
.edr .edr-select, .edr .edr-input {
    width: 100%; min-width: 0; height: 38px; margin: 0; padding: 0 0.6rem; border: 1px solid var(--edr-border-strong); border-radius: var(--edr-r-sm);
    background: var(--edr-elevated); color: var(--edr-text); font: inherit; font-size: 0.9rem;
}
.edr .edr-select:focus, .edr .edr-input:focus { outline: none; border-color: var(--edr-primary); box-shadow: 0 0 0 3px var(--edr-primary-soft); }

/* ranges */
.edr .edr-range { width: 100%; accent-color: var(--edr-primary); margin: 0.2rem 0; }
.edr .edr-range-head { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.8rem; color: var(--edr-muted); margin-top: 0.2rem; }
.edr .edr-range-head span { display: inline-flex; align-items: center; gap: 0.35rem; }
.edr .edr-range-head span svg { width: 14px; height: 14px; color: var(--edr-primary); }
.edr .edr-range-head b { color: var(--edr-primary); font-variant-numeric: tabular-nums; }
.edr .edr-range-ends { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--edr-muted); }

/* ---------- secondary options: one-line rows ---------- */
.edr .edr-adv { background: var(--edr-elevated); border: 1px solid var(--edr-border); border-radius: var(--edr-r-md); overflow: hidden; margin-bottom: 0.875rem; }
.edr .edr-adv-row + .edr-adv-row { border-top: 1px solid var(--edr-border); }
.edr .edr-adv-head {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 52px; padding: 0.6rem 0.9rem; margin: 0;
    background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: var(--edr-text);
}
.edr .edr-adv-head:hover { background: var(--edr-bg-2); }
.edr .edr-adv-head:focus-visible { outline: 2px solid var(--edr-primary); outline-offset: -2px; }
.edr .edr-adv-left, .edr .edr-adv-right { display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0; }
.edr .edr-adv-right { flex-shrink: 0; gap: 0.5rem; }
.edr .edr-adv-left > svg { width: 16px; height: 16px; color: var(--edr-primary); }
.edr .edr-adv-text { display: flex; flex-direction: column; min-width: 0; }
.edr .edr-adv-title { font-size: 0.86rem; font-weight: 600; color: var(--edr-text); white-space: nowrap; }
.edr .edr-adv-hint { font-size: 0.75rem; color: var(--edr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edr .edr-adv-value {
    font-size: 0.76rem; font-weight: 700; color: var(--edr-primary); background: var(--edr-primary-soft); border-radius: 6px;
    padding: 0.15rem 0.5rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.edr .edr-adv-chev { width: 16px; height: 16px; color: var(--edr-muted); transition: transform 0.2s ease; }
.edr .edr-adv-row.edr-open .edr-adv-chev { transform: rotate(180deg); }
.edr .edr-adv-row.edr-open .edr-adv-head, .edr .edr-adv-row.edr-open .edr-adv-body { background: var(--edr-bg-2); }
.edr .edr-adv-body { padding: 0.25rem 0.9rem 0.9rem; display: flex; flex-direction: column; gap: 0.55rem; animation: edrReveal 0.18s ease; }
@keyframes edrReveal { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.edr .edr-subrow { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 0.35rem; }
.edr .edr-subrow-text { display: flex; flex-direction: column; min-width: 0; }
.edr .edr-subrow-text b { font-size: 0.84rem; color: var(--edr-text); font-weight: 600; }
.edr .edr-subrow-text span { font-size: 0.74rem; color: var(--edr-muted); }
.edr .edr-switchwrap { display: inline-flex; align-items: center; gap: 0.45rem; flex-shrink: 0; }
.edr .edr-state { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; color: var(--edr-muted); min-width: 26px; text-align: right; }
.edr .edr-state.edr-on { color: var(--edr-primary); }

/* switch - must out-specify the site-wide checkbox style in custom_styles.css */
.tool-container input[type="checkbox"].edr-switch {
    -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
    box-sizing: border-box !important; position: relative !important; display: inline-block !important;
    width: 44px !important; min-width: 44px !important; max-width: 44px !important;
    height: 24px !important; min-height: 24px !important; padding: 0 !important; margin: 0 !important;
    border: 1px solid var(--edr-switch-off-border) !important; border-radius: 999px !important;
    background: var(--edr-switch-off) !important; background-color: var(--edr-switch-off) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08) !important; cursor: pointer !important; flex-shrink: 0 !important;
    outline: none !important; vertical-align: middle !important; transition: background-color 0.2s ease, border-color 0.2s ease !important;
}
.tool-container input[type="checkbox"].edr-switch:hover { border-color: var(--edr-primary) !important; }
.tool-container input[type="checkbox"].edr-switch:checked {
    background: var(--edr-primary) !important; background-color: var(--edr-primary) !important; border-color: var(--edr-primary) !important; box-shadow: none !important;
}
.tool-container input[type="checkbox"].edr-switch::before { content: none !important; display: none !important; }
.tool-container input[type="checkbox"].edr-switch::after,
.tool-container input[type="checkbox"].edr-switch:checked::after {
    content: '' !important; position: absolute !important; display: block !important; top: 2px !important; left: 2px !important; right: auto !important; bottom: auto !important;
    width: 18px !important; height: 18px !important; margin: 0 !important; padding: 0 !important; font-size: 0 !important; line-height: 0 !important;
    border-radius: 50% !important; border: 1px solid rgba(0, 0, 0, 0.12) !important; background: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important; transform: none !important; transition: transform 0.2s ease !important;
}
.tool-container input[type="checkbox"].edr-switch:checked::after { transform: translateX(20px) !important; }
.tool-container input[type="checkbox"].edr-switch:focus-visible { outline: 2px solid var(--edr-primary) !important; outline-offset: 2px !important; }

/* summary + guards */
.edr .edr-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; background: var(--edr-primary-soft); border-radius: var(--edr-r-md); padding: 0.75rem 0.9rem; }
.edr .edr-sum-item { display: flex; flex-direction: column; min-width: 0; }
.edr .edr-sum-item span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--edr-muted); font-weight: 700; white-space: nowrap; }
.edr .edr-sum-item b { font-size: 1.02rem; color: var(--edr-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.edr .edr-guard { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.75rem; padding: 0.65rem 0.8rem; border-radius: var(--edr-r-md); font-size: 0.84rem; line-height: 1.5; background: var(--edr-primary-soft); color: var(--edr-text); border: 1px solid transparent; }
.edr .edr-guard svg { width: 17px; height: 17px; color: var(--edr-primary); margin-top: 1px; }
.edr .edr-guard.edr-warn { background: var(--edr-warning-soft); border-color: rgba(245, 158, 11, 0.35); }
.edr .edr-guard.edr-warn svg { color: var(--edr-warning); }
.edr .edr-guard p { margin: 0; }

.edr .edr-actions { display: flex; justify-content: flex-end; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
.edr .edr-kbd { font-size: 0.75rem; color: var(--edr-muted); align-self: center; margin-right: auto; }
.edr kbd { font: inherit; font-size: 0.72rem; border: 1px solid var(--edr-border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 0.3rem; background: var(--edr-elevated); color: var(--edr-text-2); }

/* ---------- processing overlay ---------- */
.edr .edr-overlay { position: fixed; inset: 0; z-index: 9000; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.edr .edr-proc { width: 100%; max-width: 420px; min-width: 0; background: var(--edr-elevated); border: 1px solid var(--edr-border); border-radius: var(--edr-r-lg); padding: 1.5rem 1.4rem; text-align: center; }
.edr .edr-stages { display: flex; align-items: flex-start; justify-content: center; margin-bottom: 1.1rem; }
.edr .edr-stage { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 600; color: var(--edr-muted); width: 62px; }
.edr .edr-stage svg { width: 20px; height: 20px; box-sizing: content-box; padding: 6px; border-radius: 50%; background: var(--edr-bg-2); color: var(--edr-muted); }
.edr .edr-stage.edr-active { color: var(--edr-primary); }
.edr .edr-stage.edr-active svg { background: var(--edr-primary); color: #fff; }
.edr .edr-stage.edr-done { color: var(--edr-success); }
.edr .edr-stage.edr-done svg { background: var(--edr-success); color: #fff; }
.edr .edr-conn { width: 28px; height: 2px; background: var(--edr-border-strong); margin-top: 16px; flex-shrink: 0; }
.edr .edr-conn.edr-done { background: var(--edr-success); }
.edr .edr-bar { height: 8px; border-radius: 999px; background: var(--edr-bg-2); overflow: hidden; }
.edr .edr-bar-fill { height: 100%; width: 0; background: var(--edr-primary); border-radius: 999px; transition: width 0.35s ease; }
.edr .edr-proc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; margin-top: 0.6rem; }
.edr .edr-proc-pct { font-weight: 800; color: var(--edr-text); font-size: 1rem; }
.edr .edr-proc-status { color: var(--edr-muted); font-size: 0.86rem; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edr .edr-proc-file { margin: 0.75rem 0 0; font-size: 0.8rem; color: var(--edr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- results ---------- */
.edr .edr-res-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.edr .edr-res-badge { width: 48px; height: 48px; border-radius: 50%; background: var(--edr-success-soft); color: var(--edr-success); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.edr .edr-res-badge svg { width: 26px; height: 26px; }
.edr .edr-res-head h2 { margin: 0; font-size: 1.3rem; color: var(--edr-text); }
.edr .edr-res-head p { margin: 0.1rem 0 0; color: var(--edr-muted); font-size: 0.9rem; }
.edr .edr-res-bulk { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.edr .edr-res-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.85rem; }
.edr .edr-res-list.edr-single { grid-template-columns: minmax(0, 1fr); }
.edr .edr-res { border: 1px solid var(--edr-border); border-radius: var(--edr-r-md); padding: 0.9rem; background: var(--edr-elevated); min-width: 0; }
.edr .edr-res-title { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.7rem; min-width: 0; }
.edr .edr-res-name { font-weight: 700; color: var(--edr-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.edr .edr-res-box { height: 220px; border-radius: var(--edr-r-sm); border: 1px solid var(--edr-border); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.edr .edr-res-list.edr-single .edr-res-box { height: 300px; }
.edr .edr-res-box img { max-width: 100%; max-height: 100%; display: block; }
.edr .edr-stats { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.edr .edr-stat { font-size: 0.78rem; padding: 0.22rem 0.55rem; border-radius: 999px; background: var(--edr-bg-2); color: var(--edr-text-2); white-space: nowrap; }
.edr .edr-stat b { color: var(--edr-text); }
.edr .edr-stat.edr-good { background: var(--edr-success-soft); color: var(--edr-success); }
.edr .edr-stat.edr-good b { color: var(--edr-success); }
.edr .edr-stat.edr-bad { background: var(--edr-warning-soft); color: var(--edr-warning); }
.edr .edr-stat.edr-bad b { color: var(--edr-warning); }
.edr .edr-stat svg { width: 13px; height: 13px; vertical-align: -2px; }
.edr .edr-res-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.edr .edr-res-actions a { text-decoration: none; }
.edr .edr-res-note { font-size: 0.8rem; color: var(--edr-muted); margin: 0.85rem 0 0; line-height: 1.5; }

/* ---------- file list ---------- */
.edr .edr-add { cursor: pointer; }
.edr .edr-list-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem; margin: -0.3rem 0 0.6rem; font-size: 0.8rem; color: var(--edr-muted); }
.edr .edr-list { display: flex; flex-direction: column; gap: 0.4rem; max-height: 340px; overflow-y: auto; min-width: 0; }
.edr .edr-item { display: flex; align-items: center; gap: 0.35rem; min-width: 0; border: 1px solid var(--edr-border); border-radius: var(--edr-r-md); background: var(--edr-elevated); padding: 0.35rem 0.35rem 0.35rem 0.4rem; }
.edr .edr-item.edr-on { border-color: var(--edr-primary); background: var(--edr-primary-soft); }
.edr .edr-item-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.6rem; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.edr .edr-item-main:focus-visible { outline: 2px solid var(--edr-primary); outline-offset: 2px; border-radius: 8px; }
.edr .edr-ithumb { width: 52px; height: 44px; flex: 0 0 52px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--edr-checker); }
.edr .edr-ithumb img, .edr .edr-ithumb canvas { max-width: 100%; max-height: 100%; display: block; }
.edr .edr-ithumb svg { width: 20px; height: 20px; color: var(--edr-muted); }
.edr .edr-item-text { display: flex; flex-direction: column; min-width: 0; gap: 0.1rem; }
.edr .edr-item-name { font-size: 0.86rem; font-weight: 700; color: var(--edr-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edr .edr-item-meta { font-size: 0.74rem; color: var(--edr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edr .edr-pill { font-size: 0.7rem; font-weight: 700; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--edr-bg-2); color: var(--edr-text-2); white-space: nowrap; }
.edr .edr-pill-good { background: var(--edr-success-soft); color: var(--edr-success); }
.edr .edr-pill-warn { background: var(--edr-warning-soft); color: var(--edr-warning); }
.edr .edr-pill-own { background: var(--edr-primary-soft); color: var(--edr-primary); }

/* presets */
.edr .edr-presets { margin-bottom: 0.85rem; }
.edr .edr-presets-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.45rem; }
.edr .edr-presets-head .edr-caption { display: inline-flex; align-items: center; gap: 0.35rem; margin: 0; }
.edr .edr-presets-head .edr-caption svg { width: 13px; height: 13px; }
.edr .edr-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.edr .edr-chips > .edr-chip, .edr button.edr-chip {
    display: inline-flex; align-items: center; gap: 0.3rem; min-height: 32px; padding: 0.25rem 0.65rem; margin: 0;
    border: 1px solid var(--edr-border-strong); border-radius: 999px; background: var(--edr-elevated); color: var(--edr-text);
    font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: visible;
}
.edr .edr-chips .edr-chip svg { width: 14px; height: 14px; color: var(--edr-primary); }
.edr .edr-chips .edr-chip:hover { border-color: var(--edr-primary); }
.edr .edr-chips .edr-chip.edr-on { border-color: var(--edr-primary); background: var(--edr-primary-soft); color: var(--edr-primary); }

/* tabs */
.edr .edr-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.3rem; background: var(--edr-bg-2); padding: 0.3rem; border-radius: var(--edr-r-md); margin-bottom: 0.875rem; }
.edr .edr-tabs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.edr .edr-tab {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 40px; padding: 0.4rem 0.5rem; margin: 0;
    border: 0; border-radius: 9px; background: transparent; color: var(--edr-text-2); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.edr .edr-tab svg { width: 16px; height: 16px; }
.edr .edr-tab.edr-on { background: var(--edr-elevated); color: var(--edr-primary); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
.edr .edr-tab:focus-visible { outline: 2px solid var(--edr-primary); outline-offset: 1px; }

/* before / after compare */
.edr .edr-cmp { position: relative; overflow: hidden; border-radius: var(--edr-r-md); border: 1px solid var(--edr-border); user-select: none; touch-action: none; line-height: 0; }
.edr .edr-cmp img, .edr .edr-cmp canvas { display: block; width: 100%; height: auto; }
.edr .edr-cmp-after { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 0 0 50%); }
.edr .edr-cmp-after img, .edr .edr-cmp-after canvas { width: 100%; height: 100%; }
.edr .edr-cmp-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); pointer-events: none; }
.edr .edr-cmp-knob { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: #fff; color: #1e293b; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); pointer-events: none; }
.edr .edr-cmp-knob svg { width: 18px; height: 18px; }
.edr .edr-cmp-tag { position: absolute; top: 8px; font-size: 0.7rem; font-weight: 700; line-height: 1.3; color: #fff; background: rgba(15, 23, 42, 0.72); border-radius: 6px; padding: 0.1rem 0.45rem; pointer-events: none; }
.edr .edr-cmp-tag-l { left: 8px; }
.edr .edr-cmp-tag-r { right: 8px; }

/* info / content */
.tool-container .edr-info { margin-top: 2rem; }
.edr .edr-info { display: flex; flex-direction: column; gap: 1rem; }
.edr .edr-info-card { background: var(--edr-elevated); border: 1px solid var(--edr-border); border-radius: var(--edr-r-lg); padding: 1.4rem 1.5rem; min-width: 0; }
.edr .edr-info-card h2 { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.85rem; font-size: 1.3rem; color: var(--edr-text); }
.edr .edr-info-card h2 svg { width: 22px; height: 22px; color: var(--edr-primary); }
.edr .edr-info-card h3 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--edr-text); }
.edr .edr-info-card p, .edr .edr-info-card li { color: var(--edr-text-2); line-height: 1.7; font-size: 0.97rem; }
.edr .edr-info-card p { margin: 0 0 0.75rem; }
.edr .edr-info-card p:last-child { margin-bottom: 0; }
.edr .edr-ul { margin: 0 0 0.75rem; padding-left: 1.2rem; }
.edr .edr-ul li { margin-bottom: 0.35rem; }
.edr .edr-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; margin-bottom: 0.75rem; }
.edr .edr-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.edr .edr-two > div { background: var(--edr-bg-2); border-radius: var(--edr-r-md); padding: 0.9rem 1rem; min-width: 0; }
.edr .edr-two p { font-size: 0.92rem; margin: 0 0 0.5rem; }
.edr .edr-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.15rem 0.5rem; border-radius: 6px; background: var(--edr-primary-soft); color: var(--edr-primary); margin-bottom: 0.4rem; }
.edr .edr-table-wrap { overflow-x: auto; border: 1px solid var(--edr-border); border-radius: var(--edr-r-md); margin-bottom: 0.75rem; }
.edr .edr-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 460px; }
.edr .edr-table th, .edr .edr-table td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--edr-border); color: var(--edr-text-2); }
.edr .edr-table th { background: var(--edr-bg-2); color: var(--edr-text); font-weight: 700; font-size: 0.82rem; }
.edr .edr-table tr:last-child td { border-bottom: 0; }
.edr .edr-table td:first-child { font-weight: 600; color: var(--edr-text); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .edr .edr-grid { grid-template-columns: minmax(0, 1fr); }
    .edr .edr-three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .edr .edr-title-icon { width: 46px; height: 46px; }
    .edr .edr-title-icon svg { width: 24px; height: 24px; }
    .edr .edr-card { padding: 0.9rem; }
    .edr .edr-block { padding: 0.8rem; }
    .edr .edr-pair { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
    .edr .edr-seg-4, .edr .edr-seg-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .edr .edr-two { grid-template-columns: minmax(0, 1fr); }
    .edr .edr-tab { font-size: 0.8rem; padding: 0.4rem 0.3rem; }
    .edr .edr-adv-hint { white-space: normal; }
    .edr .edr-info-card { padding: 1.1rem; }
    .edr .edr-kbd { display: none; }
    .edr .edr-actions .edr-btn { flex: 1 1 auto; }
    .edr .edr-res-list { grid-template-columns: minmax(0, 1fr); }
    .edr .edr-res-box { height: 190px; }
    .edr .edr-summary { padding: 0.65rem 0.7rem; }
    .edr .edr-sum-item b { font-size: 0.92rem; }
}

/* ============================================================================
   EXIF Data Remover - tool parts
   ========================================================================== */
.edr .edr-mt { margin-top: 0.85rem; }
.edr .edr-rep { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.edr .edr-repimg { height: 140px; border-radius: var(--edr-r-md); border: 1px solid var(--edr-border); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.edr .edr-repimg img { max-width: 100%; max-height: 100%; display: block; }
.edr .edr-repbody { min-width: 0; }
.edr .edr-repname { margin: 0 0 0.5rem; font-weight: 700; font-size: 0.9rem; color: var(--edr-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edr .edr-report { display: flex; flex-direction: column; gap: 0.35rem; max-height: 360px; overflow-y: auto; }
.edr .edr-find { display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.5rem 0.6rem; border-radius: var(--edr-r-sm); background: var(--edr-bg-2); border: 1px solid var(--edr-border); min-width: 0; }
.edr .edr-find > svg { width: 16px; height: 16px; margin-top: 2px; color: var(--edr-muted); }
.edr .edr-find-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.edr .edr-find-text b { font-size: 0.84rem; color: var(--edr-text); }
.edr .edr-find-text span { font-size: 0.78rem; color: var(--edr-text-2); overflow-wrap: anywhere; }
.edr .edr-find-tag { flex-shrink: 0; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.1rem 0.4rem; border-radius: 999px; background: var(--edr-elevated); color: var(--edr-muted); }
.edr .edr-find.edr-high { background: var(--edr-danger-soft); border-color: rgba(230, 78, 78, 0.35); }
.edr .edr-find.edr-high > svg, .edr .edr-find.edr-high .edr-find-tag { color: var(--edr-danger); }
.edr .edr-find.edr-mid { background: var(--edr-warning-soft); border-color: rgba(245, 158, 11, 0.35); }
.edr .edr-find.edr-mid > svg, .edr .edr-find.edr-mid .edr-find-tag { color: var(--edr-warning); }
.edr .edr-find.edr-kept { background: var(--edr-success-soft); border-color: rgba(51, 153, 102, 0.3); }
.edr .edr-find.edr-kept > svg, .edr .edr-find.edr-kept .edr-find-tag { color: var(--edr-success); }
.edr .edr-clean { display: flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.7rem; border-radius: var(--edr-r-sm); background: var(--edr-success-soft); color: var(--edr-text); font-size: 0.9rem; }
.edr .edr-clean svg { color: var(--edr-success); }
.edr .edr-pill-bad { background: var(--edr-danger-soft); color: var(--edr-danger); }
.edr .edr-sum-bad b { color: var(--edr-danger); }
.edr .edr-legend { display: flex; flex-wrap: wrap; gap: 0.9rem; font-size: 0.78rem; color: var(--edr-muted); }
.edr .edr-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.edr .edr-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.edr .edr-dot-high { background: var(--edr-danger); }
.edr .edr-dot-mid { background: var(--edr-warning); }
.edr .edr-dot-low { background: var(--edr-border-strong); }
@media (max-width: 560px) {
    .edr .edr-rep { grid-template-columns: minmax(0, 1fr); }
    .edr .edr-repimg { height: 160px; }
}
