:root {
  color-scheme: dark;
  --bg: #101626;
  --panel: #181f32;
  --field: #131a2b;
  --line: #34405b;
  --ink: #f2f5ff;
  --muted: #adb8d3;
  --accent: #a69aff;
  --focus: #79e4d7;
  --error: #ffadba;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; }
a { color: inherit; }
.shell { width: min(100% - 40px, 880px); margin-inline: auto; }
.top { border-bottom: 1px solid #262e45; }
.top .shell { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; letter-spacing: -.025em; }
.mark, .signal-core { display: grid; place-items: center; color: #1b1742; background: var(--accent); font-weight: 800; }
.mark { width: 29px; height: 29px; border-radius: 8px; }
.top-note, footer { color: var(--muted); font-size: .83rem; }
.intro { display: flex; align-items: center; justify-content: space-between; padding: 48px 24px 36px; gap: 18px; }
h1 { font-size: clamp(2.45rem, 7vw, 4.45rem); letter-spacing: -.071em; line-height: .99; margin: 0 0 21px; }
.intro p { margin: 0; max-width: 420px; color: var(--muted); }
.signal { flex: 0 0 238px; position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.ring { position: absolute; border: 1px solid #5d558e; border-radius: 43%; width: 57%; aspect-ratio: 1; transform: rotate(-23deg); }
.ring:nth-child(2) { width: 76%; border-color: #47436b; }
.ring:nth-child(3) { width: 95%; border-color: #333453; transform: rotate(-23deg); }
.signal-core { width: 91px; height: 91px; border-radius: 23px; transform: rotate(-13deg); font-size: 45px; box-shadow: 0 0 55px #8b75fa45; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 16px 36px #080b1640; }
.tabs { display: flex; border-bottom: 1px solid var(--line); padding-inline: 23px; gap: 12px; }
.tab { padding: 17px 15px 14px; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); border-radius: 0; }
.tab[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.card > section { padding: 24px; }
button, input, select { font: inherit; color: inherit; }
button, .download {
  cursor: pointer; border: 0; border-radius: 9px; font-weight: 700; text-decoration: none;
}
button:disabled { cursor: default; opacity: .6; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.drop {
  width: 100%; min-height: 181px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; padding: 18px; border: 1px dashed #6b6599; background: #151b2f; border-radius: 13px;
}
.drop:hover, .drop.drag { border-color: var(--accent); background: #211f3d; }
.drop strong { font-size: 1.06rem; }
.drop span:last-child { color: var(--muted); font-size: .86rem; font-weight: 500; }
.drop-icon { width: 40px; height: 40px; background: #322b55; color: #c5bbff; border-radius: 11px; display: grid; place-items: center; font-size: 23px; margin-bottom: 4px; }
.fields { display: grid; grid-template-columns: 2fr 1fr; gap: 15px; margin-top: 19px; }
label { display: block; font-weight: 650; font-size: .89rem; }
input, select { display: block; background: var(--field); border: 1px solid var(--line); border-radius: 9px; width: 100%; margin-top: 6px; padding: 10px 12px; font-weight: 500; min-width: 0; }
input::placeholder { color: var(--muted); opacity: .8; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.primary, .secondary, .plain, .download { display: inline-block; padding: 10px 15px; white-space: nowrap; }
.primary { background: var(--accent); color: #171336; }
.primary:hover { background: #c2b9ff; }
.primary span { margin-left: 8px; }
.secondary, .download { background: #332c54; color: #ddd5ff; }
.secondary:hover, .download:hover { background: #443764; }
.plain { background: transparent; color: var(--muted); }
.plain:hover { background: #26304a; color: var(--ink); }
.invite { display: flex; align-items: stretch; gap: 8px; margin-top: 6px; }
.invite input { margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 17px; }
#received .section-head { margin-top: 23px; margin-bottom: 8px; }
h2 { font-size: 1.35rem; letter-spacing: -.025em; margin: 0; }
.section-head p, .hint { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }
.stats { margin-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .9rem; font-variant-numeric: tabular-nums; }
progress { width: 100%; height: 12px; appearance: none; border: 0; border-radius: 20px; margin-top: 7px; background: #303853; overflow: hidden; vertical-align: top; }
progress::-webkit-progress-bar { background: #303853; border-radius: 20px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 20px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 20px; }
.tuning { margin-top: 17px; color: var(--muted); font-size: .87rem; }
summary { cursor: pointer; }
.tuning label { margin-top: 8px; max-width: 144px; }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.file-text { min-width: 0; overflow-wrap: anywhere; }
.file-meta { display: block; color: var(--muted); font-size: .81rem; }
.message { background: var(--field); border-radius: 8px; margin: 15px 0 0; padding: 10px 12px; font-size: .88rem; }
.message.error { color: var(--error); }
footer { padding: 19px 0 32px; text-align: center; }
@media (max-width: 640px) {
  .shell { width: calc(100% - 28px); }
  .intro { padding: 27px 4px 21px; }
  .signal { display: none; }
  .tabs { padding-inline: 10px; gap: 6px; }
  .tab { padding-inline: 13px; }
  .card > section { padding: 15px; }
  .drop { min-height: 150px; }
  .fields { grid-template-columns: 1fr; gap: 10px; }
  .section-head { flex-wrap: wrap; }
  .invite .primary, .invite .secondary { padding-inline: 10px; }
}
.speed { color: var(--focus); }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.check input { width: auto; margin: 0; accent-color: var(--accent); }
.file-meta.verified { color: var(--focus); }
.file-meta.hash { overflow-wrap: anywhere; font: .75rem ui-monospace, monospace; }

.local-folder { margin: 0 0 12px; overflow-wrap: anywhere; }
