/* Split Sheets: 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: 6px 0; }
.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.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; }
.panel .field { margin-bottom: 12px; }
.mode { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.mode select, .mode input[type="number"], .small-field input { font: inherit; padding: 0.3em 0.5em; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--bg); color: var(--fg); max-width: 100%; }
.mode input[type="number"] { width: 7em; }
.small-field input { width: 5em; }
.files-wrap { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-s); }
#files { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
#files th, #files td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
#files thead th { position: sticky; top: 0; background: var(--hero); color: var(--on-hero); }
#files td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
#files tr.blank td:first-child { color: var(--muted); font-style: italic; }
.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 h3 { margin: 0 0 6px; }
.done p { margin: 0 0 10px; }
@media (max-width: 860px) { .split-grid { grid-template-columns: minmax(0, 1fr); } }

/* Combine Sheets extras */
.sources { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; max-height: 360px; overflow: auto; }
.sources li { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 10px; display: grid; gap: 4px; overflow-wrap: anywhere; }
.src-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.link-btn { font: inherit; font-size: var(--step--1); border: 0; background: none; color: var(--primary); cursor: pointer; text-decoration: underline; padding: 0; }
.sources .bad { color: var(--danger); font-size: var(--step--1); margin: 0; }
.mode legend { font-weight: 700; font-size: var(--step--1); padding: 0; margin-bottom: 4px; }
.columns { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.col-chip { font-size: var(--step--1); padding: 3px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.col-chip.partial { border-color: var(--highlight); background: color-mix(in srgb, var(--highlight) 25%, var(--surface)); }
.col-chip small { color: var(--muted); }
.preview-title { font-size: var(--step-0, 1rem); margin: 18px 0 8px; }
.table-wrap { overflow: auto; max-height: 420px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
#preview { border-collapse: collapse; font-size: var(--step--1); min-width: 100%; }
#preview th, #preview td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
#preview thead th { position: sticky; top: 0; background: var(--hero); color: var(--on-hero); }
