:root {
  color-scheme: dark;
  --bg: #141413;
  --panel: #1c1b19;
  --line: #39332c;
  --text: #f3ecde;
  --muted: #b6ada0;
  --amber: #ff9339;
  --copper-light: #ffa451;
  --copper-deep: #f08a3f;
  --copper-edge: #6b4c3b;
  --green: #9abd8d;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
.button-primary, #copy-link, .tab, #history-send, .panel-hint .text-button, .history-renew, .history-code span, .emphasis, footer p a,
.fine-print-trigger, .fine-print-dialog a, .recovery-word span, .noscript, h1 em {
  --copper-text: linear-gradient(var(--light-angle, 235deg), var(--copper-light) 0%, var(--amber) 14% 72%, var(--copper-deep) 100%);
  --copper-fill: linear-gradient(var(--light-angle, 55deg), var(--copper-light), var(--amber) 14% 72%, var(--copper-deep));
}
.history-status::before, #funding-bar::before {
  --copper-dot: radial-gradient(circle at calc(50% - 25% * sin(var(--light-angle, 145deg))) calc(50% + 25% * cos(var(--light-angle, 145deg))), var(--copper-light), var(--amber) 14% 72%, var(--copper-deep));
}
body { margin: 0; background: var(--bg); color: var(--text); min-width: 320px; }
button, input { font: inherit; }
button, a, input, summary, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 5px; }
.paint-defs { position: absolute; pointer-events: none; }
.shell { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100svh; padding: 0 clamp(22px, 4vw, 80px); }
.scene { position: absolute; inset: 0 0 auto; height: 100svh; z-index: -1; overflow: hidden; pointer-events: none; }
.scene img { position: absolute; left: 0; bottom: 0; width: max(77vw, 106svh); height: auto; }
.scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 32%, #14141338 48%, var(--bg) 76%), linear-gradient(180deg, var(--bg) 5%, #14141335 45%, transparent 74%, #14141389); }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.wordmark { text-decoration: none; font-size: 25px; font-weight: 800; letter-spacing: .13em; display: flex; align-items: center; gap: 11px; }
.mark { position: relative; width: 27px; height: 26px; }
.mark::before, .mark::after { content: ""; position: absolute; inset: 0; }
.mark::before {
  mask-image: linear-gradient(128deg, transparent 22%, black 22% 41%, transparent 41%);
  background: linear-gradient(var(--light-angle, 317deg), #eb9454 10%, #db8248 50%, #cb7741 95%);
}
.mark::after {
  mask-image: linear-gradient(128deg, transparent 51%, black 51% 70%, transparent 70%);
  background: linear-gradient(var(--light-angle, 317deg), var(--copper-light) 0%, var(--amber) 14% 72%, #ed873e 94%);
}
.connection { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 14px; }
.connection-state { display: flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; }
#connection-link { color: var(--text); background: #242822; border: 1px solid #454e3f; border-radius: 6px; padding: 8px 11px; text-decoration: none; }
#connection-link:hover { background: #30362b; border-color: var(--green); }
#connect, #disconnect { min-height: 38px; font-size: 14px; }
#disconnect { padding: 8px 12px; border: 1px solid #51453a; border-radius: 6px; background: #25211d; color: var(--text); }
#disconnect:hover { background: #332b24; border-color: #795b43; text-decoration: none; }
.light { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #777c6e; flex-shrink: 0; }
.light-green { background: var(--green); box-shadow: 0 0 10px #9abd8d25; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 5px; background: #302923; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.2; padding: 15px 18px; transition: background .15s, border-color .15s, transform .15s; }
.button:not(:disabled):hover { background: #3c3129; border-color: #795b43; }
.button:not(:disabled):active { transform: translateY(1px); }
.button-small { font-size: 12px; padding: 10px 13px; white-space: nowrap; }
.button-quiet { background: transparent; }
:is(#disconnect, #connect, .button-quiet) { box-shadow: inset 0 1px #ffcd9e0b; }
.button-primary { width: 100%; background: var(--copper-fill); color: #282017; border-color: #e88550; box-shadow: inset calc(sin(var(--light-angle, 55deg)) * 1px) calc(cos(var(--light-angle, 55deg)) * -1px) #ffe8cb22; justify-content: space-between; padding: 17px 20px; font-size: 15px; }
.button-primary:not(:disabled):hover { background: var(--copper-fill); border-color: var(--copper-light); filter: brightness(1.03); }
.text-button { border: 0; background: transparent; padding: 4px 0; color: var(--amber); font-size: 12px; text-underline-offset: 4px; }
.text-button:hover { text-decoration: underline; }
main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); align-items: start; padding: clamp(38px, 7svh, 90px) 0 40px; }
.intro { padding-top: 6px; }
h1 { font-size: clamp(44px, 5.4vw, 92px); font-weight: 740; line-height: .99; letter-spacing: -.059em; margin: 0; }
h1:focus { outline: none; }
h1 em { padding-inline-end: .059em; margin-inline-end: -.059em; font-style: normal; color: transparent; background: var(--copper-text); background-clip: text; }
@media (forced-colors: active) { h1 em { color: CanvasText; } }
.lead { position: relative; isolation: isolate; max-width: 42ch; width: fit-content; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: var(--text); margin: 20px 0 0; text-shadow: 0 1px 5px #141413b0; }
.lead::before { content: ""; position: absolute; z-index: -1; inset: -12px -16px; background: #1414139e; backdrop-filter: blur(7px); mask-image: linear-gradient(180deg, transparent, #000 14% 86%, transparent), linear-gradient(90deg, transparent, #000 8% 92%, transparent); mask-composite: intersect; }
.emphasis { color: var(--amber); }
.console { --inset: 25px; container-type: inline-size; position: relative; display: flex; flex-direction: column; height: clamp(365px, 62svh, 570px); min-width: 0; padding: 10px 0 18px; border: 1px solid var(--line); border-radius: 12px; background: #1c1b19ed; box-shadow: inset 0 1px #ffe2b908, 0 20px 70px #09080767; overflow: hidden; }
.tabs { display: flex; flex: none; gap: 24px; margin: 0 25px; border-bottom: 1px solid var(--line); }
.tab { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 15px; font-weight: 660; padding: 14px 3px; margin-bottom: -1px; }
.tab[aria-selected=true] { border-bottom-color: var(--amber); border-image: var(--copper-fill) 1; color: var(--text); }
#history-tab { display: grid; place-items: center; min-width: 48px; margin-left: auto; }
.panel { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; padding: 25px 25px 8px; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: clamp(224px, 34svh, 350px); padding: 28px 20px; border: 1px dashed var(--copper-edge); border-radius: 7px; background: #201c18; cursor: pointer; transition: background .15s, border-color .15s; }
.dropzone, .wave-editor {
  --edge-x: calc(50% - 50% * sin(var(--light-angle, 55deg)));
  --edge-y: calc(50% + 50% * cos(var(--light-angle, 55deg)));
  --lit-border: color-mix(in srgb, var(--copper-light) calc(100% - var(--edge-y)), var(--copper-deep))
    color-mix(in srgb, var(--copper-light) var(--edge-x), var(--copper-deep))
    color-mix(in srgb, var(--copper-light) var(--edge-y), var(--copper-deep))
    color-mix(in srgb, var(--copper-light) calc(100% - var(--edge-x)), var(--copper-deep));
}
.dropzone.dragging { background: #2a211a; border-color: var(--lit-border); }
.dropzone:has(.sr-only:focus-visible) { outline: 2px solid var(--copper-light); outline-offset: 3px; }
@media (hover: hover) {
  .dropzone:hover:not(.dragging) { border-color: var(--lit-border); }
}
.cargo-icon { stroke: var(--lit-stroke, url(#copper-stroke)) var(--amber); }
.dropzone.busy { pointer-events: none; }
.cargo-icon { width: 68px; height: 68px; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; margin-bottom: 14px; }
.drop-title { font-size: clamp(17px, 1.7vw, 23px); font-weight: 620; overflow-wrap: anywhere; max-width: 100%; }
#cargo-title { display: grid; place-items: center; }
#cargo-title > span, #cargo-title::after { grid-area: 1 / 1; }
#cargo-title[aria-busy="true"] > span { visibility: hidden; }
#cargo-title::after { color: var(--amber); }
.drop-subtitle { font-size: 14px; color: var(--muted); margin-top: 10px; }
.file-size { font: 12px var(--mono); color: var(--muted); margin-top: 14px; display: block; }
.input-error { font-size: 12px; color: #edab91; line-height: 1.6; margin: 10px 0 0; }
input[aria-invalid=true]:not([type=file]) { border-color: #edab91; }
.result { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
h2 { font-size: 16px; font-weight: 550; margin: 0; }
.result p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 10px 0 14px; }
.link-row { display: flex; gap: 8px; }
input:not([type=file]) { min-width: 0; width: 100%; border: 1px solid #4b4036; border-radius: 6px; background: #25221f; color: var(--text); font: 13px var(--mono); padding: 13px; outline-offset: 2px; }
#send-panel { display: flex; flex-direction: column; }
.cargo { display: flex; flex: 1; flex-direction: column; }
.dropzone { flex: 1; }
.cargo, .receive-input { position: relative; }
.wave-editor { flex: 1; display: flex; flex-direction: column; min-height: 150px; border: 1px dashed var(--copper-edge); border-radius: 7px; background: #201c18; overflow: hidden; transition: border-color .15s; }
.wave-editor:focus-within { border-style: solid; border-color: var(--lit-border); }
.wave-head { display: flex; flex: none; align-items: center; gap: 12px; padding: 9px 44px 9px 13px; border-bottom: 1px solid #2d2620; }
#wave-name { flex: 1; min-width: 0; border: 0; border-bottom: 1px dashed #4b4036; border-radius: 0; background: transparent; padding: 3px 0; font: 13px var(--mono); }
#wave-name:focus-visible { outline: none; border-bottom-color: var(--amber); }
#wave-name:read-only { border-bottom-color: transparent; }
#wave-count { flex: none; font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
#wave-count.over { color: #edab91; }
#wave-text { flex: 1; min-height: 0; width: 100%; margin: 0; padding: 12px 13px; border: 0; border-radius: 0; resize: none; background: transparent; color: var(--text); font: 13px/1.6 var(--mono); tab-size: 4; }
#wave-text:focus-visible { outline: none; }
#wave-text::placeholder, #wave-name::placeholder { color: #7f766a; }
.panel-hint { flex: none; margin: 12px 0 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--muted); }
.panel-hint .text-button { font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.receive-input:has(#clear-receive:not([hidden])) #file-code { padding-right: 44px; }
.clear-button { position: absolute; top: 0; right: 0; width: 44px; border: 0; background: transparent; color: var(--muted); font-size: 23px; line-height: 1; }
.clear-button:hover { color: var(--text); }
.clear-button:focus-visible { outline-offset: -4px; }
#clear-receive { bottom: 0; }
#clear-cargo { height: 44px; }
#receive-form .button { margin-top: 18px; }
#send { margin-top: 14px; }
#send:disabled:not([hidden]) { opacity: .65; }
#share { margin-top: 14px; padding-top: 0; border-top: 0; }
#copy-link { font-size: 14px; background: var(--copper-fill); color: #282017; border-color: #e88550; box-shadow: inset calc(sin(var(--light-angle, 55deg)) * 1px) calc(cos(var(--light-angle, 55deg)) * -1px) #ffe8cb22; }
#copy-link, .history-code { position: relative; }
.copied > span:not(.copied-feedback) { visibility: hidden; }
.copied .copied-feedback { position: absolute; inset: 0; display: grid; place-items: center; white-space: nowrap; }
.history-code.copied .copied-feedback { justify-content: start; }
#copy-link:hover { filter: brightness(1.03); }
.sent-history { display: flex; flex-direction: column; color: var(--muted); font-size: 13px; }
#sent-empty { display: grid; flex: 1; place-content: center; justify-items: center; gap: 14px; min-height: 190px; padding: 20px 16px; border: 1px solid #4b3b30; border-radius: 8px; background: radial-gradient(ellipse at 50% 20%, #38271c66, transparent 70%), #201c1880; text-align: center; }
.cargo-icon-empty { height: 77px; margin-bottom: 0; }
#sent-empty h2 { margin: 0; color: var(--text); font-size: clamp(17px, 2.2vw, 22px); font-weight: 620; line-height: 1.25; }
#history-send { padding: 8px 4px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.sent-history ul { flex: 1; min-height: 0; margin: 0 0 8px; padding: 0; overflow: auto; list-style: none; }
.history-footer { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 4px; }
#history-pages { display: flex; align-items: center; gap: 3px; font: 12px var(--mono); white-space: nowrap; }
#history-pages button { min-width: 26px; min-height: 32px; padding: 0; color: var(--text); font-size: 21px; }
#clear-sent-links { flex: none; margin-left: auto; }
@container (max-width: 320px) {
  #history-pages { font-size: 10px; gap: 0; }
  #clear-sent-links { padding-inline: 6px; }
}
.sent-history li { --action-size: 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto repeat(2, var(--action-size)); align-items: center; column-gap: clamp(2px, 1cqw, 8px); padding: 8px 0; border-top: 1px solid var(--line); }
.sent-history li:first-child { border-top: 0; }
.history-code { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--text); font: 13px var(--mono); text-align: left; }
.history-code span { display: block; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.5; }
.history-kind { flex: none; width: 15px; height: 15px; color: var(--amber); }
.history-code:hover { color: var(--amber); }
.sent-history time { white-space: nowrap; }
.history-status, .history-renew, .history-skull { display: grid; place-items: center; width: var(--action-size); height: var(--action-size); }
.history-status:not([data-availability="missing"])::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--copper-dot); }
.history-renew, .history-skull { padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--amber); }
.history-renew { font-size: 22px; line-height: 1; }
.history-renew:hover { color: var(--copper-light); }
.history-renew[aria-busy="true"] { opacity: .65; }
.history-skull { color: #fff; }
.history-skull svg { width: 23px; height: 23px; }
.history-skull:hover, .history-renew:hover { filter: brightness(1.05); }
#receive-panel { display: flex; flex-direction: column; }
#receive-form { flex: none; }
#received { position: relative; display: flex; flex: 1; flex-direction: column; min-height: 0; gap: 12px; margin-top: 14px; padding: 0; border: 0; }
#media-preview, #expanded-preview { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; }
#media-preview :is(img, video), #expanded-preview :is(img, video) { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 5px; }
#media-preview audio { display: block; width: 100%; }
.pdf-preview { display: block; flex: 1; width: 100%; min-height: 0; border: 1px solid var(--line); border-radius: 5px; }
.text-preview { min-height: 0; margin: 0; padding: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #171614; color: var(--text); font: 13px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.text-preview:focus-visible { outline-offset: -2px; }
.preview-actions { display: flex; justify-content: flex-end; flex: none; align-items: center; gap: 8px; }
#expand-preview { margin-right: auto; }
.preview-caption { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12px var(--mono); color: var(--muted); }
#copy-text { min-width: 62px; }
#fork-hint { margin: 0; }
#media-preview:has(> img) + .preview-actions { position: absolute; top: calc(var(--image-inset-y, 0px) + 6px); right: calc(var(--image-inset-x, 0px) + 6px); gap: 4px; }
#media-preview:has(> img) + .preview-actions button { box-shadow: 0 1px 4px #0008; }
#cargo-title[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(var(--light-angle, 55deg), var(--copper-light), var(--copper-deep)); mask: radial-gradient(closest-side, transparent calc(100% - 2px), black calc(100% - 1.5px)), conic-gradient(from var(--spinner-angle), transparent 75deg, black 76deg); mask-composite: intersect; animation: busy-spin .8s linear infinite; }
@property --spinner-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes busy-spin { to { --spinner-angle: 1turn; } }
#expand-preview, #save-file { width: 36px; height: 36px; justify-content: center; padding: 0; font-size: 20px; line-height: 1; }
@media (pointer: coarse) {
  #expand-preview, #save-file { width: 44px; height: 44px; }
  .sent-history li { --action-size: 44px; }
}
.status:not(:empty) { flex: none; margin-top: 12px; padding: 9px 12px; border-left: 2px solid #78604a; border-radius: 0 5px 5px 0; background: #25211d; color: var(--text); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.status.error:not(:empty) { border-color: #d18b70; color: #f0bba6; }
.app-status:not(:empty) { margin-inline: var(--inset); max-height: 30%; overflow: auto; }
.console:has(#send-panel:not([hidden])):not(:has(#wave-editor:not([hidden]))) #funding-bar { display: none; }
#funding-bar { flex: none; display: flex; align-items: center; gap: 10px; margin: 8px var(--inset) 0; padding: 4px 6px 4px 12px; border: 1px solid var(--copper-edge); border-radius: 7px; background: #2b231d; }
#funding-bar::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--copper-dot); }
#funding-status { flex: 1; color: var(--text); font-size: 14px; }
.toast-area { position: sticky; top: max(8px, env(safe-area-inset-top)); z-index: 2; display: flex; justify-content: center; height: 0; pointer-events: none; }
.toast { align-self: flex-start; max-width: min(42ch, 100%); padding: 8px 16px; color: var(--text); background: #302820; border: 1px solid var(--copper-edge); border-radius: 9px; box-shadow: 0 4px 18px #0008; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.toast:empty { padding: 0; border: 0; box-shadow: none; }
.toast.error { color: #edab91; }
footer { padding: 25px 0 30px; display: flex; justify-content: space-between; gap: 24px; font-size: 13px; color: var(--text); text-shadow: 0 1px 5px #000; }
footer p { margin: 0; font-size: 15px; line-height: 1.55; }
footer p a { color: var(--amber); font-weight: 650; text-decoration: none; }
.fine-print-trigger { flex: none; font-size: 13px; }
dialog { width: min(440px, calc(100% - 32px)); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 32px; box-shadow: inset 0 1px #ffe2b908, 0 20px 70px #09080767; }
dialog::backdrop { background: #0009; backdrop-filter: blur(3px); }
#preview-dialog[open] { display: flex; width: min(1100px, calc(100% - 24px)); height: min(84dvh, 900px); padding: 44px 12px 12px; }
#expanded-preview { justify-content: center; }
#expanded-preview .text-preview { overflow: auto; }
#close-preview { top: 0; right: 4px; height: 44px; }
dialog h2 { margin: 0; padding-right: 18px; font-size: 24px; line-height: 1.2; }
dialog h2:focus { outline: none; }
dialog p { overflow-wrap: anywhere; }
dialog p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 18px 0 24px; }
dialog .text-button { display: block; margin: 20px auto 0; }
.fine-print-dialog a { color: var(--amber); text-underline-offset: 3px; }
.fine-print-dialog p { margin: 14px 0; font-size: 14px; }
dialog:not(#preview-dialog) .clear-button { top: 4px; right: 4px; height: 44px; }
#connection-message:empty { display: none; }
.recovery-words { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.recovery-word { position: relative; min-width: 0; }
.recovery-word span { position: absolute; top: 50%; left: 8px; transform: translateY(-50%); color: var(--amber); font: 10px var(--mono); pointer-events: none; }
.recovery-word input:not([type=file]) { display: block; padding: 10px 5px 10px 27px; }
.recovery-word input[readonly] { border-color: #7e684b; background: #25241d; }
@media (max-width: 400px) {
  .recovery-words { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#recovery-form .input-error { margin: 8px 0 0; }
#recovery-continue { justify-content: center; margin-top: 14px; }
#recovery-generate { width: 100%; margin-top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (forced-colors: none) {
  .emphasis, footer p a, .fine-print-trigger, .fine-print-dialog a, #history-send, .panel-hint .text-button,
  .history-renew, .history-code:hover span, .recovery-word span, .noscript {
    background-image: var(--copper-text);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    text-decoration-color: var(--amber);
  }
}
@media (forced-colors: active) {
  .cargo-icon { stroke: currentColor; }
}
.noscript { text-align: center; color: var(--amber); padding: 20px; }
@media (max-width: 760px) {
  .shell { padding: 0 22px; }
  .scene { height: min(100svh, 760px); opacity: .62; }
  .scene img { width: max(105vw, 620px); left: 50%; transform: translateX(-50%); }
  .scene::after { background: linear-gradient(180deg, var(--bg) 3%, #1414137a 36%, #14141321 69%, var(--bg)); }
  .masthead { min-height: 65px; }
  .wordmark { font-size: 20px; }
  .mark { width: 28px; height: 28px; }
  main { display: block; padding: 28px 0; }
  .intro { padding-top: 0; }
  h1 { font-size: clamp(43px, 9vw, 65px); }
  .lead { margin: 14px 0 24px; }
  .console { --inset: 20px; height: clamp(348px, 58svh, 480px); background: #1c1b19ab; }
  .panel { padding: 23px 20px 8px; }
  .tabs { margin: 0 20px; }
  .dropzone { min-height: 210px; background: #201c184f; }
  .dropzone.dragging { background: #2a211a96; }
  .wave-editor { background: #201c184f; }
  #wave-name, #wave-text { font-size: 16px; }
  footer { gap: 20px; }
  input:not([type=file]):not([readonly]) { font-size: 16px; }
  dialog { padding: 24px; }
  dialog p { font-size: 14px; }

  .link-row { gap: 6px; }
  .link-row .button { padding: 10px; }
}
@media (max-width: 400px) {
  .connection { gap: 6px; flex-wrap: wrap; }
  #connection-link { padding: 4px 7px; font-size: 12px; }
  #disconnect { min-height: 32px; padding: 4px 8px; font-size: 12px; }
}
@media (max-height: 675px) {
  .dropzone { min-height: 158px; padding-block: 16px; }
  .wave-editor { min-height: 110px; }
  .cargo-icon { width: 52px; height: 52px; margin-bottom: 10px; }
  .cargo-icon-empty { height: 59px; margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  #cargo-title[aria-busy="true"]::after { animation: none; }
}
