/* Forms to Sheet: 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; }
#drop .progress { width: min(360px, 100%); }

.results-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-bottom: 4px; }
.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; }

.headings { border: 0; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.headings legend { float: left; font-weight: 700; font-size: var(--step--1); margin-right: 4px; padding: 0; }

/* The preview table scrolls inside its own box, with the header row and file column kept in view. */
.table-wrap { overflow: auto; max-height: min(70vh, 640px); border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.table-wrap:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
#table { border-collapse: separate; border-spacing: 0; font-size: var(--step--1); min-width: 100%; }
#table th, #table td { padding: 8px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); white-space: nowrap; max-width: 28ch; overflow: hidden; text-overflow: ellipsis; }
#table thead th { position: sticky; top: 0; z-index: 2; background: var(--hero); color: var(--on-hero); font-weight: 700; }
#table tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); font-weight: 600; border-right: 1px solid var(--line); }
#table thead th:first-child { left: 0; z-index: 3; }
#table td.num { text-align: right; font-variant-numeric: tabular-nums; }
#table td.empty { color: var(--muted); }
#table tbody tr:hover td, #table tbody tr:hover th { background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.small { font-size: var(--step--1); margin-top: 8px; }

#issues h3 { font-size: var(--step-1); margin: 28px 0 6px; }
#issues > p { margin: 0 0 10px; font-size: var(--step--1); color: var(--muted); }
.issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.issues li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--highlight); border-radius: var(--radius-s); padding: 10px 14px; overflow-wrap: anywhere; }
.issues b { display: block; }
.how { margin-top: 28px; font-size: var(--step--1); max-width: 80ch; }

@media (max-width: 600px) {
  #table th, #table td { max-width: 20ch; }
  #table tbody th, #table thead th:first-child { max-width: 13ch; }
}
