.snd-wrap { max-width: 760px; margin: 0 auto; padding: 96px 16px 48px; color: var(--text-primary); box-sizing: border-box; }
.snd-wrap { --snd-ok: var(--color-success); --snd-warn: var(--color-warning, #f59e0b); --snd-err: var(--color-danger-hover, #f87171); }
:root[data-theme="light"] .snd-wrap { --snd-ok: #15803d; --snd-warn: #b45309; --snd-err: #b91c1c; }
.snd-wrap *, .snd-wrap *::before, .snd-wrap *::after { box-sizing: border-box; }
.snd-wrap [hidden] { display: none !important; }
.snd-intro h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 8px; }
.snd-intro p { color: var(--text-secondary); margin: 0 0 16px; max-width: 70ch; }
.snd-card { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px 16px; margin: 16px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.snd-card h2 { font-size: 1.2rem; margin: 0; }
.snd-label { font-weight: 600; font-size: 0.95rem; }
.snd-field { width: 100%; max-width: 100%; min-width: 0; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-primary); color: var(--text-primary); font: inherit; }
.snd-field:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.snd-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88rem; }
.snd-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.snd-hint { color: var(--text-secondary); font-size: 0.9rem; margin: 0; overflow-wrap: anywhere; }
.snd-warn { color: var(--snd-warn); font-weight: 600; margin: 0; }
.snd-msg { font-size: 1.1rem; font-weight: 600; margin: 0; }
.snd-error { color: var(--snd-err); min-height: 1em; margin: 0; overflow-wrap: anywhere; }
.snd-error:empty { min-height: 0; }
.snd-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.snd-btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); background: transparent; color: var(--text-primary); border-radius: 10px; padding: 9px 16px; cursor: pointer; font: inherit; text-decoration: none; line-height: 1.2; }
.snd-btn:hover { border-color: var(--color-primary); }
.snd-btn--primary { background: var(--color-primary); border-color: var(--color-primary); color: #fff; font-weight: 600; }
.snd-btn--primary:hover { background: var(--color-primary-active, #4f46e5); }
.snd-btn--danger { border-color: var(--snd-err); color: var(--snd-err); font-weight: 600; }
.snd-btn:disabled { opacity: 0.55; cursor: progress; }
.snd-btn:focus-visible, .snd-file-btn:focus-within, .snd-x:focus-visible, .snd-link:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.snd-sr { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.snd-file-btn { position: relative; }

.snd-drop { display: grid; justify-items: center; gap: 8px; padding: 24px 16px; border: 2px dashed var(--border-color); border-radius: 12px; background: var(--bg-primary); text-align: center; transition: border-color .15s, background .15s; }
.snd-drop.is-over { border-color: var(--color-primary); }
.snd-drop-icon { width: 32px; height: 32px; color: var(--text-secondary); }
.snd-drop-text { margin: 0; color: var(--text-secondary); }
.snd-drop.is-busy { opacity: 0.6; pointer-events: none; }

.snd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; max-height: 360px; overflow-y: auto; }
.snd-list:empty { display: none; }
.snd-list li { display: flex; align-items: center; gap: 8px 10px; min-width: 0; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-primary); font-size: 0.92rem; }
.snd-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snd-size { color: var(--text-secondary); white-space: nowrap; }
.snd-tick { width: 1.2em; text-align: center; color: var(--snd-ok); font-weight: 700; }
.snd-tick:empty { display: none; }
.snd-x { border: 0; background: transparent; color: var(--text-primary); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 2px 6px; border-radius: 999px; }
.snd-x:hover { background: var(--bg-secondary); }

#filesWrap { display: grid; gap: 12px; min-width: 0; }
.snd-rows { max-height: none; }
.snd-rows li { flex-wrap: wrap; }
.snd-rows .snd-name { flex: 1 1 160px; font-weight: 600; }
.snd-status { flex: 1 0 100%; font-size: 0.85rem; color: var(--text-secondary); margin: 0; overflow-wrap: anywhere; }
.snd-status:empty { display: none; }
.snd-status.ok { color: var(--snd-ok); }
.snd-status.err { color: var(--snd-err); }
.snd-rows .snd-btn { padding: 6px 12px; }

.snd-options { display: grid; gap: 12px; }
.snd-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.snd-check input { width: 18px; height: 18px; accent-color: var(--color-primary); }

.snd-progress { display: grid; gap: 6px; }
.snd-bar { height: 10px; border-radius: 999px; background: var(--bg-primary); border: 1px solid var(--border-color); overflow: hidden; }
.snd-bar-fill { height: 100%; width: 0; background: var(--color-primary); transition: width .2s; }

.snd-copyrow { display: flex; gap: 8px; min-width: 0; }
.snd-copyrow .snd-field { flex: 1 1 auto; }
.snd-report { margin: 0; }
.snd-link { border: 0; background: none; padding: 0; color: var(--text-secondary); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.9rem; }
.snd-dialog { width: min(480px, calc(100vw - 32px)); border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-secondary); color: var(--text-primary); padding: 20px 16px; }
.snd-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.snd-dialog h2 { font-size: 1.15rem; margin: 0 0 4px; }
.snd-dialog .snd-col { gap: 10px; }
.snd-dialog textarea { resize: vertical; }

.img-foot { text-align: center; padding: 24px 16px; font-size: 0.875rem; }
.img-foot a { color: var(--text-secondary); }
@media (max-width: 480px) {
  .snd-copyrow { flex-direction: column; }
  .snd-actions .snd-btn, .snd-copyrow .snd-btn { width: 100%; }
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[tabindex="-1"]:focus { outline: none; }
