/* Clean Documents: 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: 70ch; margin-bottom: 20px; }
#drop { min-height: 220px; }
.results-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.results-head h2 { font-size: var(--step-2); margin: 0 0 4px; }
.results-head h2:focus { outline: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.small { font-size: var(--step--1); margin: 8px 0 0; }

.clean-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.col-title, .panel h3 { font-size: var(--step-1); margin: 0 0 10px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 18px; min-width: 0; }
.options-panel { position: sticky; top: 12px; }
@media (max-width: 860px) {
  .clean-grid { grid-template-columns: minmax(0, 1fr); }
  .options-panel { position: static; }
}

.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.file-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px 14px; min-width: 0; }
.file-card.has-issue { border-left: 4px solid var(--danger); }
.file-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.file-head h4 { margin: 0; font-size: var(--step-0); overflow-wrap: anywhere; flex: 1 1 12em; min-width: 0; }
.kind { font-size: 0.75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.link-btn { font: inherit; font-size: var(--step--1); border: 0; background: none; color: var(--primary); cursor: pointer; text-decoration: underline; padding: 2px 0; }
.bad { color: var(--danger); font-size: var(--step--1); margin: 6px 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.chip { font-size: var(--step--1); padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.chip.found { background: var(--highlight); color: var(--highlight-ink); border-color: color-mix(in srgb, var(--highlight) 70%, #000); font-weight: 600; }
.chip.kept { border-style: dashed; }
.chip.ok { color: var(--muted); }

details { margin-top: 6px; }
summary { cursor: pointer; color: var(--primary); font-size: var(--step--1); font-weight: 600; width: fit-content; }
.facts { display: grid; grid-template-columns: minmax(8em, max-content) minmax(0, 1fr); gap: 4px 14px; margin: 8px 0 0; font-size: var(--step--1); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.kept-title { font-size: var(--step--1); font-weight: 700; margin: 12px 0 0; }
@media (max-width: 480px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dd { margin-bottom: 6px; }
}

.opts { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.opts legend { font-weight: 700; font-size: var(--step--1); padding: 0; margin-bottom: 8px; }
.opts .check { align-items: flex-start; }
.opts .check input { flex: none; margin-top: 3px; }
.hint { font-size: var(--step--1); color: var(--muted); margin: -6px 0 0 26px; }

.done { border: 2px solid var(--ok); border-radius: var(--radius-m); background: var(--surface); padding: 14px 18px; margin: 0 0 16px; }
.done:focus { outline: none; }
.done:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.done h3 { margin: 0 0 8px; font-size: var(--step-1); }
.done ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; overflow-wrap: anywhere; }
.done .bad { margin: 0; }
