/* Save Attachments: 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%); }
.small { font-size: var(--step--1); margin: 6px 0; }

.howto { margin-top: 20px; max-width: 80ch; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); padding: 12px 16px; }
.howto summary { cursor: pointer; font-weight: 700; }
.howto dl { margin: 12px 0 0; display: grid; gap: 4px; }
.howto dt { font-weight: 700; margin-top: 8px; }
.howto dd { margin: 0; color: var(--muted); }
.howto b { color: var(--fg); font-weight: 600; }

.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; }

.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 6px; }
.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; }
.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; }
.mode { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.mode legend { font-weight: 700; font-size: var(--step--1); padding: 0; margin-bottom: 4px; }
.kinds { display: grid; gap: 10px; }
.check { align-items: flex-start; }
.check input { flex: none; margin-top: 2px; }
.sender-field { margin-bottom: 14px; }
.sender-field select { max-width: 100%; }
.example { color: var(--muted); overflow-wrap: anywhere; }
.example span { color: var(--fg); font-weight: 600; }
.chip { font: inherit; font-size: 0.8rem; padding: 2px 8px; margin: 2px 2px 2px 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); cursor: pointer; }
.chip:hover { border-color: var(--primary); }
#build-progress { margin-top: 14px; max-width: 420px; }
.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; }

.list-title { font-size: var(--step-1); margin: 28px 0 10px; }
.table-wrap { overflow: auto; max-height: 560px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
#list { border-collapse: collapse; width: 100%; min-width: 760px; font-size: var(--step--1); }
#list th, #list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
#list thead th { position: sticky; top: 0; z-index: 1; background: var(--hero); color: var(--on-hero); }
#list tbody tr:last-child td { border-bottom: 0; }
#list td:first-child { width: 2.2em; }
#list input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); margin: 1px 0 0; }
#list .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
#list .when { white-space: nowrap; }
#list .name { min-width: 16em; }
#list .orig { display: block; font-weight: 600; }
#list .out { display: block; color: var(--muted); margin-top: 2px; }
#list .out b { color: var(--fg); font-weight: 600; }
#list .why { font-style: italic; }
#list tr.skip .orig { color: var(--muted); font-weight: 400; }
#list tr.nested .name { padding-left: 26px; position: relative; }
#list tr.nested .name::before { content: ""; position: absolute; left: 12px; top: 8px; bottom: 50%; width: 8px; border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); }
#list .tag { display: inline-block; font-size: 0.75rem; padding: 0 7px; margin: 2px 6px 0 0; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.how { margin-top: 20px; font-size: var(--step--1); max-width: 80ch; }

@media (max-width: 860px) { .split-grid { grid-template-columns: minmax(0, 1fr); } }
/* Keep short columns on one line: "Type" values like PNG or XLSX must never break mid-word. */
#list th:nth-child(3), #list td:nth-child(3), #list th:nth-child(4), #list td:nth-child(4) { white-space: nowrap; }
