:root {
  color-scheme: dark;
  --bg: #171916;
  --panel: #20221e;
  --line: #383b31;
  --text: #eee9dc;
  --muted: #a1a394;
  --amber: #e8ac65;
  --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; }
body { margin: 0; background: var(--bg); color: var(--text); min-width: 320px; }
body::before { position: fixed; inset: 0; pointer-events: none; content: ""; opacity: .1; background-image: radial-gradient(#a2a58c .7px, transparent .7px); background-size: 7px 7px; z-index: -1; }
button, input, textarea { font: inherit; }
button, a, input, textarea, 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(--amber); outline-offset: 5px; }
.shell { max-width: 1280px; padding: 0 64px; margin: auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; padding: 34px 0; border-bottom: 1px solid var(--line); gap: 20px; }
.wordmark { text-decoration: none; font-size: 25px; font-weight: 850; letter-spacing: .07em; display: flex; align-items: center; gap: 11px; }
.wordmark-dot { color: var(--amber); margin-left: -12px; }
.mark { width: 34px; height: 34px; fill: var(--amber); }
.connection { display: flex; align-items: center; gap: 20px; font-size: 12px; }
.connection-state { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.light { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #777c6e; flex-shrink: 0; }
.light-amber { background: var(--amber); }
.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: #303329; 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: #3b3e32; border-color: #6e735d; }
.button:not(:disabled):active { transform: translateY(1px); }
.button-small { font-size: 12px; padding: 10px 13px; white-space: nowrap; }
.button-quiet { background: transparent; }
.button-primary { width: 100%; background: var(--amber); color: #282017; border-color: var(--amber); justify-content: space-between; padding: 17px 20px; font-size: 15px; }
.button-primary:not(:disabled):hover { background: #f1bd7e; border-color: #f1bd7e; }
.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 { display: grid; grid-template-columns: 1fr 1.02fr; gap: 70px; align-items: start; padding: 84px 0 72px; }
.intro { padding-top: 24px; }
.eyebrow { font: 10px var(--mono); letter-spacing: .14em; color: var(--amber); display: flex; align-items: center; gap: 12px; }
.small-cross { font-size: 14px; }
h1 { font-size: clamp(48px, 5.3vw, 71px); font-weight: 550; line-height: 1.07; letter-spacing: -.055em; margin: 28px 0; }
h1 em { font-style: normal; color: var(--amber); }
.lead { font-size: 15px; line-height: 1.8; color: var(--muted); margin: 0 0 42px; }
.specs { display: flex; gap: 30px; }
.specs > div { display: flex; flex-direction: column; gap: 8px; }
.spec-value { font: 13px var(--mono); color: #d8d7c7; }
.spec-label { font-size: 11px; color: var(--muted); }
.orbit { margin-top: 52px; max-width: 350px; position: relative; color: #747966; }
.orbit svg { width: 100%; fill: none; stroke: currentColor; stroke-width: .7; }
.orbit circle { fill: var(--amber); stroke: var(--amber); }
.orbit .orbit-dash { stroke-dasharray: 2 5; opacity: .5; }
.orbit span { position: absolute; bottom: 6px; right: 2px; font: 8px var(--mono); letter-spacing: .18em; color: #8a907b; }
.console { min-width: 0; padding: 8px 0 24px; border: 1px solid #414539; border-radius: 9px; background: var(--panel); box-shadow: 0 15px 60px #0002; overflow: hidden; }
.console-top, .console-bottom { display: flex; align-items: center; justify-content: space-between; font: 9px var(--mono); letter-spacing: .13em; color: var(--muted); padding: 18px 25px; }
.console-top > span:first-child { display: flex; align-items: center; gap: 9px; }
.deck-number { color: #767b6b; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 25px; border-bottom: 1px solid var(--line); }
.tab { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 13px; padding: 15px 0; margin-bottom: -1px; display: flex; justify-content: space-between; gap: 10px; }
.tab:first-child { margin-right: 24px; }
.tab[aria-selected=true] { border-bottom-color: var(--amber); color: var(--text); }
.tab span { color: var(--amber); }
.panel { padding: 25px 25px 0; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 224px; padding: 28px 20px; border: 1px dashed #575d4c; border-radius: 5px; background: #252820; cursor: pointer; transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone.dragging { background: #2b3025; border-color: var(--amber); }
.dropzone:focus-within { outline: 2px solid var(--amber); outline-offset: 3px; }
.dropzone.busy { pointer-events: none; }
.file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.cargo-icon { width: 42px; height: 42px; stroke: var(--amber); stroke-width: 1.2; fill: none; margin-bottom: 20px; }
.drop-title { font-size: 15px; font-weight: 550; overflow-wrap: anywhere; max-width: 100%; }
.drop-subtitle { font-size: 12px; color: var(--muted); margin-top: 10px; }
.browse { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.file-size { font: 10px var(--mono); color: var(--muted); margin-top: 17px; display: block; }
.file-note { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 13px 0 19px; }
.input-error { font-size: 12px; color: #edab91; line-height: 1.6; margin: 10px 0 0; }
[aria-invalid=true] { border-color: #edab91; }
.transfer-progress { margin-top: 24px; }
.progress-heading { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: #cbcdbc; }
.progress-heading > span:last-child { font-family: var(--mono); color: var(--amber); }
progress { display: block; width: 100%; height: 4px; margin-top: 12px; appearance: none; border: 0; border-radius: 2px; background: #3c4133; overflow: hidden; }
progress::-webkit-progress-bar { background: #3c4133; }
progress::-webkit-progress-value { background: var(--amber); transition: width .2s; }
progress::-moz-progress-bar { background: var(--amber); }
.transfer-progress p { font-size: 11px; line-height: 1.6; color: var(--muted); margin: 10px 0 0; }
.result { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
.result-heading { display: flex; align-items: center; gap: 9px; }
h2 { font-size: 16px; font-weight: 550; margin: 0; }
.result p { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 10px 0 14px; }
.link-row { display: flex; gap: 8px; }
input:not([type=file]), textarea { min-width: 0; width: 100%; border: 1px solid #484e3f; border-radius: 4px; background: #171b15; color: var(--text); font: 12px var(--mono); padding: 13px; outline-offset: 2px; }
#share-link { font-size: 10px; }
.result-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--muted); margin-top: 10px; }
.receive-intro { padding: 18px 0 24px; }
.receive-symbol { font-size: 29px; color: var(--amber); display: block; margin-bottom: 20px; }
.receive-intro h2 { font-size: 24px; letter-spacing: -.025em; }
.receive-intro p { font-size: 13px; line-height: 1.7; color: var(--muted); }
#receive-form > label { display: block; font: 9px var(--mono); letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
textarea { resize: vertical; min-height: 90px; line-height: 1.7; }
#receive-form .button { margin-top: 18px; }
.received-name { overflow-wrap: anywhere; color: var(--text) !important; margin-bottom: 0 !important; }
#send { margin-top: 14px; }
#send:disabled:not([hidden]) { opacity: .65; }
#share { margin-top: 14px; padding-top: 0; border-top: 0; }
#copy-link { background: var(--amber); color: #282017; border-color: var(--amber); }
#copy-link:hover { background: #f1bd7e; }
#media-preview :is(img, video) { display: block; max-width: 100%; max-height: 65vh; margin: auto; border-radius: 5px; }
#media-preview audio { display: block; width: 100%; }
#save-file { margin-top: 18px; }
.status { padding: 0 25px; margin-top: 20px; color: var(--muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.status.error { color: #edab91; }
.status:empty { margin-top: 0; }
.console-bottom { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; padding-bottom: 16px; font-size: 8px; }
.transfer-details { padding: 16px 25px 0; font-size: 10px; color: var(--muted); }
.transfer-details summary { cursor: pointer; }
.transfer-details pre { font: 10px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; }
footer { border-top: 1px solid var(--line); padding: 25px 0 35px; display: flex; justify-content: space-between; gap: 24px; font-size: 11px; color: var(--muted); }
footer p { margin: 0; line-height: 1.7; }
.about { max-width: 400px; text-align: right; }
.about summary { cursor: pointer; color: #c6c8b6; }
.about div { font-size: 11px; line-height: 1.8; margin-top: 16px; text-align: left; }
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: 0 15px 60px #0006; }
dialog::backdrop { background: #0009; backdrop-filter: blur(3px); }
dialog h2 { font-size: 24px; margin-top: 20px; }
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; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.noscript { text-align: center; color: var(--amber); padding: 20px; }
@media (min-width: 1400px) {
  .shell { max-width: 1340px; }
  main { padding-top: 105px; padding-bottom: 90px; gap: 110px; }
}
@media (max-width: 1000px) {
  .shell { padding: 0 35px; }
  main { gap: 35px; padding-top: 60px; }
  .specs { gap: 20px; }
  h1 { font-size: 55px; }
  .connection { gap: 12px; }
}
@media (max-width: 760px) {
  .shell { padding: 0 22px; }
  .masthead { padding: 22px 0; }
  .wordmark { font-size: 20px; }
  .mark { width: 28px; height: 28px; }
  .connection-state { display: none; }
  main { display: block; padding: 40px 0; }
  .intro { padding-top: 0; }
  h1 { font-size: 57px; margin: 24px 0 20px; }
  .lead { font-size: 14px; margin-bottom: 26px; }
  .specs { gap: 35px; margin-bottom: 34px; }
  .orbit { display: none; }
  .console { max-width: 520px; }
  .panel { padding: 23px 20px 0; }
  .tabs { margin: 0 20px; }
  .console-top, .console-bottom { padding-left: 20px; padding-right: 20px; }
  .status { padding-left: 20px; padding-right: 20px; }
  .dropzone { min-height: 210px; }
  footer { font-size: 10px; gap: 20px; }
  .about { max-width: 48%; }
  .result-footer { align-items: flex-start; line-height: 1.5; }
  .link-row { gap: 6px; }
  .link-row .button { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
