/* Spacing and responsive layout. UI controls retain the default 7.css styling. */
body { margin: 24px 0; font: 14px/1.5 "Segoe UI", Tahoma, sans-serif; background: var(--w7-surface); }
.shell { max-width: 640px; margin: 0 auto; padding: 0 16px; }
h1 { font-size: 22px; margin: 16px 0; overflow-wrap: anywhere; }
p { margin: 12px 0; }
fieldset { min-width: 0; margin: 16px 0; padding: 12px; }
.selection-row, .actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.selection-row > div { min-width: 0; overflow-wrap: anywhere; }
.actions { flex-wrap: wrap; }
.link-row { display: flex; gap: 8px; margin: 4px 0 12px; }
.link-row input { flex: 1; width: 0; min-width: 0; }
#upload-key { display: block; max-width: 100%; margin-top: 4px; }
#drop-zone.dragging { outline: 2px solid Highlight; }
#status[data-error="true"] { color: #a32424; }
#status:empty, #copy-status:empty, [hidden] { display: none !important; }
.details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.hash { font-family: monospace; }
.file-preview { display: block; max-width: 100%; max-height: 360px; margin: 16px auto; object-fit: contain; }
a { overflow-wrap: anywhere; }
footer.shell { margin-top: 24px; }
@media (max-width: 400px) { .link-row { flex-wrap: wrap; } .link-row input { flex-basis: 100%; } .details { grid-template-columns: 1fr; gap: 4px; } .details dd { margin-bottom: 8px; } }
