/* Find Duplicates: page-specific styles. Shared look comes from brand.css and app-shell.css. */
.app-title { font-size: var(--step-3); margin-bottom: 0.3em; }
.intro { color: var(--muted); max-width: 72ch; margin-bottom: 20px; }
.small { font-size: var(--step--1); margin: 6px 0; }
#drop { min-height: 200px; }

.browser-note { border-left: 4px solid var(--primary); background: var(--surface); border-radius: var(--radius-s); padding: 10px 14px; max-width: 72ch; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 18px; min-width: 0; }
.panel h3 { font-size: var(--step-1); margin: 0 0 10px; }
.options { margin: 18px 0 0; display: grid; gap: 10px; max-width: 72ch; min-width: 0; }
.options legend { font-weight: 700; padding: 0 6px; }
.leave-out { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.leave-out summary { cursor: pointer; font-weight: 700; font-size: var(--step--1); }
#options-slot .options { border: 0; border-radius: 0; padding: 10px 0 0; margin: 0; background: none; }
#options-slot .options legend { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field.inline { display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; }
.field.inline select { max-width: 100%; min-width: 0; }
.check { align-items: flex-start; }
.check input { flex: none; margin-top: 3px; }

#scanning { max-width: 640px; margin: 40px auto; }
#scanning h2:focus { outline: none; }
#scan-progress { margin: 18px 0 8px; }

.results-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
.results-head h2 { font-size: var(--step-2); margin: 0 0 4px; }
.results-head h2:focus { outline: none; }
.results-head .muted { font-size: var(--step--1); max-width: 80ch; margin: 0; overflow-wrap: anywhere; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.results-head .actions { margin-top: 0; }

.problems { border-left: 4px solid var(--danger); background: var(--surface); border-radius: var(--radius-s); padding: 10px 14px; margin: 0 0 16px; }
.problems h3 { font-size: var(--step-0); margin: 0 0 4px; }
.problems ul { margin: 0; padding-left: 1.2em; font-size: var(--step--1); display: grid; gap: 4px; overflow-wrap: anywhere; }

.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.mode { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; min-width: 0; }
.mode legend { font-weight: 700; font-size: var(--step--1); padding: 0; margin-bottom: 4px; }
.radios, .kinds { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.keep-folder, .where-field { margin: 0 0 10px; }
.keep-folder select, .where-field select { max-width: 100%; }

.tidy .total { margin: 0 0 4px; font-size: var(--step-0); color: var(--muted); width: fit-content; }
.tidy .total b { font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); color: var(--fg); line-height: 1.1; margin-right: 4px; }
.move-note { color: var(--muted); }
#move-progress { margin-top: 12px; }
.done { border: 2px solid var(--ok); border-radius: var(--radius-m); background: var(--surface); padding: 14px 18px; margin: 14px 0 0; }
.done:focus { outline: none; }
.done:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.done h3 { margin: 0 0 6px; }
.done p { margin: 0; }
.report { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 2px; }
.report .small { margin-bottom: 0; }

.groups-head { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin: 20px 0 10px; }
.groups-head h3 { font-size: var(--step-1); margin: 0; }
#groups { display: grid; gap: 12px; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px 16px; min-width: 0; }
.group.left { opacity: 0.8; }
.g-head { display: flex; gap: 6px 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.g-head h4 { display: inline; font-family: var(--font); font-weight: 700; font-size: var(--step-0); margin: 0; overflow-wrap: anywhere; }
.g-head .kind { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0 8px; margin-right: 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); vertical-align: 2px; }
.g-meta { margin: 0; font-size: var(--step--1); color: var(--muted); }
.g-save { margin: 0; font-size: var(--step--1); color: var(--muted); white-space: nowrap; }
.g-save b { color: var(--fg); font-size: var(--step-0); }
.group fieldset { border: 0; padding: 0; margin: 8px 0 0; min-width: 0; }
.files { list-style: none; margin: 0; padding: 0; display: grid; }
.file { display: flex; gap: 6px 12px; align-items: flex-start; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); min-width: 0; }
.file label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: start; flex: 1; min-width: 0; cursor: pointer; font-size: var(--step--1); }
.file input[type="radio"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); }
.file .where { overflow-wrap: anywhere; }
.file .dir { color: var(--muted); }
.file b { font-weight: 600; }
.file .to { display: block; color: var(--muted); font-style: italic; }
.file .when { color: var(--muted); white-space: nowrap; }
.file.is-moved .where b, .file.is-moved .dir { text-decoration: line-through; text-decoration-thickness: 1px; }
.fate { flex: none; font-size: 0.8rem; font-weight: 700; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.fate.keep { background: #CFF3E8; border-color: #9ADFC9; color: #0B4F3E; }
.fate.spare { background: #E7E1FB; border-color: #C9BDF3; color: #3A2A7A; }
.fate.moved { background: var(--bg); }
.g-foot { display: flex; gap: 8px 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--muted); }
.link-btn { font: inherit; color: var(--primary); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.empty { padding: 16px 0; }
.more { margin: 16px 0 0; }
.how { margin-top: 24px; font-size: var(--step--1); max-width: 80ch; }

@media (max-width: 860px) { .split-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .file { flex-wrap: wrap; }
  .file label { grid-template-columns: auto minmax(0, 1fr); flex-basis: 100%; }
  .file .when { grid-column: 2; white-space: normal; }
  .fate { margin-left: 28px; }
  .tidy .total b { font-size: var(--step-2); }
}
