:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #17253b;
  background: #f3f5f8;
  --ink: #17253b;
  --muted: #5b687b;
  --accent: #244ed7;
  --accent-hover: #1d3daf;
  --line: #e1e6ef;
  --surface: #fff;
  --surface-shadow: 0 2px 4px #192b5405, 0 12px 36px #192b5409;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  margin: 0;
  background: #f3f5f8;
}

button, input, select, textarea { font: inherit; }
button, .primary { touch-action: manipulation; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #6486ff; outline-offset: 3px; }

.site-header {
  width: min(100%, 1160px);
  margin: auto;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -.04em;
  font-weight: 750;
  text-decoration: none;
}

.brand img { display: block; width: 32px; height: 32px; border-radius: 8px; }
.site-tools { display: flex; align-items: center; gap: 6px; }
.site-tools .plain-button {
  min-height: 38px;
  margin: 0;
  padding-inline: 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
}
.site-tools .plain-button:hover:not(:disabled) { color: var(--accent); background: #e9eef9; text-decoration: none; }
#space-open-link { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

.workspace { width: min(100%, 1160px); padding: 30px 28px 44px; margin: auto; }
#receive-view { max-width: 527px; margin: 38px auto 0; }

.card {
  padding: 28px;
  border: 1px solid #e4e9f3;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--surface-shadow);
}

h2, h3 { color: var(--ink); line-height: 1.35; }
.card h2 { margin: 0 0 16px; font-size: 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.secondary { color: var(--muted); font-size: 13px; line-height: 1.55; }

#space-file-name, #receive-title { overflow-wrap: anywhere; }

.transfer-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  background: #e7edff;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.terms {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 13px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 10px 15px;
  border: 0;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.primary:hover:not(:disabled) { background: var(--accent-hover); }
.primary:disabled { color: #5a6683; background: #e8edf7; cursor: default; }
.full { width: 100%; }

progress { width: 100%; height: 8px; margin: 17px 0 0; border: 0; accent-color: var(--accent); }
.status { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.status.error { color: #a12638; }
.result { border-top: 1px solid var(--line); margin-top: 21px; padding-top: 19px; }
.result .secondary { margin: 0 0 12px; }

.link-row { display: flex; align-items: stretch; gap: 8px; }
.link-row .primary { flex-shrink: 0; }

.link-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 9px 12px;
  color: var(--ink);
  background: #f6f8fc;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
}

.input-label { display: block; font-weight: 700; margin-bottom: 9px; }

.text-action {
  border: 0;
  background: none;
  color: #a12638;
  padding: 9px 0 2px;
  margin-top: 7px;
  font-size: 13px;
}

.text-action:hover { text-decoration: underline; }
.text-action:disabled { color: var(--muted); cursor: default; }

.under-card { margin: 19px auto 0; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.55; }
.receive-summary { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.receive-summary h1 { margin: 0 0 3px; font-size: 22px; line-height: 1.3; }
.receive-summary p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.space-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.space-field { margin-top: 15px; }
.secondary-button { min-height: 38px; padding: 6px 11px; color: var(--ink); background: #f4f6fc; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.secondary-button:hover:not(:disabled) { background: #e7edff; }
.secondary-button:disabled { opacity: .65; cursor: default; }
.link-row .secondary-button { flex-shrink: 0; }
.check-row { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; font-size: 14px; }
.check-row input { accent-color: var(--accent); }
.space-details { margin-top: 9px; }
.space-details summary { cursor: pointer; font-size: 14px; }
.pair-image { display: block; max-width: 100%; height: auto; margin: 0 auto 12px; }
.plain-button { display: inline-flex; align-items: center; min-height: 40px; margin-top: 5px; padding: 5px 0; color: var(--accent); background: transparent; border: 0; font-weight: 680; }
.plain-button:hover:not(:disabled) { text-decoration: underline; }
.plain-button:disabled { color: var(--muted); cursor: default; }
.history-card { margin-top: 17px; }
.history-card > summary { cursor: pointer; font-size: 17px; font-weight: 700; }

#spaces-heading {
  margin: 0 0 22px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -.045em;
}
.transfer-layout {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.transfer-workspace { display: grid; gap: 16px; min-width: 0; }
.device-panel {
  padding: 20px;
  border-radius: 18px;
  color: #f5f7ff;
  background: radial-gradient(ellipse at 90% 0%, #25499a, transparent 72%), #172948;
  box-shadow: var(--surface-shadow);
}
.device-header { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.device-header h2 { color: inherit; margin: 0; font-size: 17px; }
.device-header p { margin: 8px 0 0; color: #ccd7ea; font-size: 13px; }
.device-header p::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-end: 7px;
  border-radius: 50%;
  background: #7be0bb;
}
.device-panel .secondary-button {
  min-height: 34px;
  color: #f5f7ff;
  background: #ffffff12;
  border-color: #ffffff40;
}
.device-panel .secondary-button:hover:not(:disabled) { background: #ffffff22; }
.access-card { max-width: 490px; margin: 38px auto 0; }
.access-card h1 { margin: 0; font-size: 24px; }
.access-card p { margin: 10px 0 16px; font-size: 15px; }
.access-card a { margin: 0; }

.confirmation-code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  background: #e7eefb;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.confirmation-code code { color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: .045em; }
.access-card .confirmation-code { margin-bottom: 4px; }

.connect-panel {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 8px 2px;
  border-top: 1px solid #ffffff29;
  text-align: center;
}
#space-connect-qr {
  display: block;
  width: 144px;
  height: auto;
  max-width: 100%;
  border: 7px solid #fff;
  border-radius: 13px;
  background: #fff;
}
.connect-address { min-width: 0; width: 100%; }
.connection-hint { margin: 0 0 9px; color: #ccd7ea; font-size: 13px; line-height: 1.5; }
.connect-address .space-actions { position: relative; justify-content: center; margin-top: 12px; }
#space-code-host { display: block; color: #c2cee5; font-size: 12px; }
#space-code-value { color: #fff; white-space: nowrap; letter-spacing: .12em; }
.connect-feedback, .download-feedback { color: #19614b; font-size: 12px; }
.device-panel .connect-feedback { color: #a4efd3; }
.device-panel .connect-feedback.error { color: #ffd3d3; }
.join-requests { display: grid; gap: 8px; max-height: 300px; overflow: auto; margin-top: 14px; }
.join-request {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid #ffffff2c;
  border-radius: 12px;
  background: #ffffff12;
}
.join-request .secondary { color: #e2ebfd; }
.join-request .primary { background: #f0f4ff; color: #1a3b8f; }
.join-request .primary:hover:not(:disabled) { background: #dce6ff; }
.join-request-copy { flex: 1 1 230px; }
.join-request p { margin: 2px 0 0; }
.join-request .primary, .join-request .secondary-button { min-height: 32px; padding: 5px 9px; }

.receive-dialog {
  width: min(calc(100% - 28px), 430px);
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 20px 70px #17254b38;
}
.receive-dialog::backdrop { background: #0d1c4260; }
body:has(.receive-dialog[open]) { overflow: hidden; }
.receive-dialog-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #eef1f7;
}
.receive-dialog-header h2 { margin: 0; font-size: 20px; }
.receive-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--muted);
  background: #f4f6fb;
  border: 0;
  border-radius: 12px;
  font-size: 27px;
  line-height: 1;
}
.receive-close:hover { color: var(--ink); background: #e9eef8; }
.receive-dialog-body { padding: 16px 20px 20px; }

.space-code {
  display: block;
  min-width: 0;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: anywhere;
}
#space-copy-fallback { margin-top: 9px; background: #fff; }

.dialog-settings > .secondary { margin: 10px 0 12px; }
#space-legacy-records { display: grid; gap: 8px; margin-top: 10px; }
#space-legacy-records .space-record { justify-self: stretch; width: 100%; max-width: 100%; }
#space-approve-description { margin: 0 0 14px; }

.chat-composer, .transfer-files {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--surface-shadow);
}
.chat-history {
  display: flex;
  flex-direction: column;
  min-height: 172px;
  max-height: min(560px, 65dvh);
  overflow: auto;
  overflow-anchor: none;
  padding: 0 18px 14px;
}
.chat-history:focus-visible { outline-offset: -3px; }
.chat-more { align-self: center; margin-top: 12px; }
.chat-empty { display: grid; justify-items: center; gap: 11px; margin: auto; color: var(--muted); font-size: 13px; }
.chat-empty p { margin: 0; }
.empty-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eff3fb;
}
.empty-icon::before {
  content: "";
  width: 19px;
  height: 14px;
  border: 1.6px solid #6681b6;
  border-radius: 3px;
  box-shadow: 0 -4px 0 -1px #eff3fb, 0 -5px 0 -1px #6681b6;
}
#space-records, #space-shares-records { display: grid; gap: 8px; }
#space-records.preview-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 228px), 1fr)); }
.transfer-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; padding: 16px 18px; }
.transfer-toolbar h2, .chat-composer h2 { font-size: 16px; margin: 0; font-weight: 730; }
.transfer-controls { display: flex; gap: 6px; max-width: 100%; }
.transfer-controls select, .transfer-controls button {
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
  color: var(--ink);
  font-size: 12px;
}
.transfer-controls select { padding-right: 4px; }
.transfer-controls button[aria-pressed="true"] { background: #eaf0ff; color: #2248ba; border-color: #d6e2fd; }
.space-record {
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
#space-records:not(.preview-grid) > .space-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: center;
}
.transfer-name { display: flex; align-items: center; gap: 9px; }
.transfer-name .transfer-icon {
  width: 35px;
  height: 35px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 730;
  background: #eaf0ff;
}
.space-record[data-direction="received"] .transfer-icon { background: #e8f4f4; color: #245d68; }
#space-records:not(.preview-grid) .transfer-name { grid-row: 1; grid-column: 1; }
#space-records:not(.preview-grid) .space-record > .secondary { grid-column: 1 / -1; }
#space-records:not(.preview-grid) .record-actions { grid-row: 1; grid-column: 2; justify-content: flex-end; margin: 0; }
#space-records:not(.preview-grid) .transfer-content { grid-column: 1 / -1; }
.transfer-content:empty, .transfer-preview:empty { display: none; }
.transfer-thumbnail {
  display: block;
  width: 144px;
  height: 104px;
  max-width: 100%;
  margin-top: 8px;
  object-fit: contain;
  border-radius: 8px;
  background: #f4f6fb;
}
.transfer-preview .transfer-thumbnail { width: 100%; height: 152px; }
#space-shares-more { margin-top: 8px; }
.device-list { list-style: none; margin: 0 0 16px; padding: 0; }
.device-list li { padding: 9px 11px; background: #f5f7fb; border-radius: 8px; font-size: 13px; }
.device-list li + li { margin-top: 6px; }
.dialog-settings h3 { margin: 2px 0 8px; font-size: 15px; }
#space-storage-meter { display: block; width: 100%; accent-color: var(--accent); }
#space-member-actions { margin-top: 12px; }
#space-delete-account { margin-top: 15px; }
.space-record strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.space-record .secondary { margin: 5px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.space-record .space-actions { margin-top: 8px; }
.space-record .secondary-button,
.space-record .primary { min-height: 36px; padding: 5px 9px; font-size: 12px; }
.space-record .text-action { margin: 0; padding: 5px 3px; }
a.secondary-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.record-menu-trigger {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #fff;
}
.record-menu-trigger::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -5px 0 currentColor, 5px 0 currentColor;
}
.record-menu-trigger:hover, .record-menu-trigger:has(+ :popover-open) {
  color: var(--accent);
  background: #eaf0ff;
}
.record-menu {
  position: fixed;
  inset: auto;
  width: max-content;
  min-width: 156px;
  max-width: min(254px, calc(100vw - 16px));
  margin: 0;
  padding: 5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 28px #192b5426;
  overflow: auto;
  overscroll-behavior: contain;
}
.record-menu-actions { display: grid; gap: 2px; }
.record-menu .record-menu-actions button {
  min-height: 38px;
  padding: 7px 10px;
  text-align: left;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
  text-decoration: none;
}
.record-menu .record-menu-actions button:hover:not(:disabled) { background: #edf2fc; }
.record-menu .record-menu-actions button:focus-visible { outline-offset: -2px; }
.record-menu .link-input { margin: 6px 0 0; }
.share-copy-status {
  margin: 6px 0 0;
  padding: 7px 10px;
  border-radius: 7px;
  background: #ecf7f2;
  color: #19614b;
  font-size: 13px;
}
.space-record .chat-text {
  max-height: 16rem;
  overflow: auto;
  margin: 7px 0 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  unicode-bidi: plaintext;
}

.chat-composer { padding: 16px 18px; }
.chat-composer h2 { margin-bottom: 11px; }
.chat-composer > .status { margin: 0 0 7px; }
#space-form { border-radius: 11px; }
#space-form.dragging { outline: 2px dashed var(--accent); outline-offset: 4px; }
#space-text {
  display: block;
  width: 100%;
  min-height: 66px;
  max-height: 24dvh;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #f7f9fd;
  font-size: 16px;
}
.chat-compose-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.chat-file label { display: inline-flex; align-items: center; gap: 4px; font-weight: 680; cursor: pointer; touch-action: manipulation; }
.chat-file label span { font-size: 17px; line-height: 1; color: var(--accent); }
.chat-file input:focus-visible + label { outline: 3px solid #6486ff; outline-offset: 3px; }
.chat-file input:disabled + label { opacity: .65; cursor: default; }
.chat-attachment { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 8px; font-size: 14px; }
.chat-attachment button { min-height: 34px; }
#space-send { min-width: 86px; min-height: 40px; }

@media (max-width: 760px) {
  .transfer-layout { grid-template-columns: 1fr; gap: 12px; }
  .device-panel { padding: 15px; }
  .connect-panel {
    grid-template-columns: minmax(82px, 112px) minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding-inline: 0;
    margin-top: 11px;
    padding-top: 11px;
    text-align: left;
  }
  .connect-address { grid-column: 2; }
  .connect-address .space-actions { justify-content: flex-start; margin-top: 7px; }
  .chat-history { max-height: none; overflow: visible; }
}
@media (max-width: 520px) {
  .site-header { padding: 10px 12px; }
  .site-tools { gap: 3px; }
  .site-tools .plain-button { padding-inline: 7px; }
  .workspace { padding: 18px 12px 22px; }
  #spaces-heading { margin-bottom: 13px; }
  .transfer-workspace { gap: 12px; }
  #receive-view { margin-top: 12px; }
  .card { padding: 19px; border-radius: 18px; }
  .chat-composer, .transfer-toolbar { padding: 12px; }
  .chat-history { padding: 0 12px 12px; min-height: 130px; }
  .space-code { font-size: 23px; }
  .connection-hint { margin-bottom: 5px; }
  .access-card { margin-top: 12px; }
  .join-request-copy { flex-basis: 100%; }
  .receive-dialog {
    width: 100%;
    max-width: none;
    margin: auto auto 0;
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 21px 21px 0 0;
    border-bottom: 0;
  }
  .receive-dialog-header, .receive-dialog-body { padding-inline: 16px; }
}

.qr-share-dialog {
  width: min(calc(100% - 28px), 350px);
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding-bottom: 0;
}
.qr-share-dialog .receive-dialog-body { text-align: center; }
.qr-share-dialog .secondary { margin: 0; }

.landing-nav { font-weight: 650; }
.landing-hero {
  display: grid;
  grid-template-columns: 1fr minmax(290px, .92fr);
  align-items: center;
  gap: clamp(20px, 5vw, 72px);
  padding: clamp(22px, 4.5vw, 60px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--surface-shadow);
}
.landing-intro h1 {
  margin: 0;
  font-size: clamp(32px, 5.2vw, 66px);
  line-height: 1.12;
  letter-spacing: -.055em;
}
.landing-intro p { max-width: 28em; margin: 20px 0 24px; color: var(--muted); line-height: 1.75; }
.landing-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.landing-task {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.landing-task-send { background: #edf3ff; border-color: #d9e5fb; }
.landing-task h2 { margin: 0; font-size: 18px; }
.landing-task > p:not(.status) { margin: 7px 0 13px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.landing-task .link-row { max-width: 350px; }
.landing-task .link-row button { padding-inline: 15px; }
.landing-start { padding-inline: 18px; cursor: pointer; }
#landing-file:focus-visible + .landing-start { outline: 3px solid #6486ff; outline-offset: 3px; }
#landing-file:disabled + .landing-start { opacity: .65; cursor: default; }
.landing-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 292px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 72% 20%, #355bc6, transparent 65%),
    repeating-linear-gradient(90deg, transparent 0 31px, #ffffff0c 31px 32px),
    repeating-linear-gradient(0deg, transparent 0 31px, #ffffff0c 31px 32px),
    #172948;
}
.landing-art img {
  z-index: 1;
  margin: 0 12% 11% 0;
  border: 1px solid #ffffff69;
  border-radius: 16px;
  box-shadow: 0 12px 30px #102451aa;
}
.landing-laptop, .landing-phone {
  position: absolute;
  border: 2px solid #b4c8ff;
  background: #142343;
  box-shadow: 0 14px 28px #101c3b88;
}
.landing-laptop { width: 57%; height: 51%; left: 13%; top: 22%; border-radius: 12px 12px 5px 5px; }
.landing-laptop::after {
  content: "";
  position: absolute;
  inset: auto -8% -8px;
  height: 8px;
  border-radius: 2px 2px 9px 9px;
  background: #9eb8f8;
}
.landing-phone { width: 24%; height: 52%; right: 15%; bottom: 16%; border-radius: 16px; }
.landing-laptop span, .landing-phone span {
  position: absolute;
  inset: 9px;
  border-radius: 7px;
  background: linear-gradient(145deg, #3658a1, #1e3370);
}
.landing-phone span { inset: 5px; border-radius: 11px; }
.landing-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.landing-features section {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  background: var(--surface);
}
.landing-features h2 { margin: 0 0 7px; font-size: 16px; }
.landing-features h2 a { color: var(--accent); text-decoration: none; }
.landing-features h2 a:hover { text-decoration: underline; }
.landing-features p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
@media (max-width: 720px) {
  .landing-hero, .landing-features { grid-template-columns: 1fr; }
  .landing-art { min-height: 212px; }
  .landing-features { gap: 8px; margin-top: 12px; }
  .landing-features section { padding: 13px 16px; }
}

@media (max-width: 600px) {
  .landing .landing-hero { display: block; }
  .landing .landing-art { display: none; }
  .landing .landing-intro p { margin: 12px 0 0; font-size: 14px; }
  .landing-actions { grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
  .landing-task { padding: 16px; }
}

.drop-workspace { max-width: 980px; }
.drop-workspace h1 { margin: 0 0 8px; font-size: clamp(27px, 4vw, 39px); letter-spacing: -.045em; }
.drop-intro { margin: 0 0 20px; color: var(--muted); }
.drop-native-hint { margin: 14px 0 0; }
.drop-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.drop-panel {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--surface-shadow);
}
.drop-panel h2 { margin: 0 0 12px; font-size: 17px; }
#drop-self { margin: 0 0 12px; }
#drop-devices { display: grid; gap: 7px; list-style: none; margin: 0; padding: 0; }
#drop-discovery-status { margin: 0 0 9px; }
.drop-device { display: block; width: 100%; text-align: left; min-height: 42px; }
.drop-panel .status:empty { display: none; }
.drop-file-label { display: inline-flex; align-items: center; cursor: pointer; }
#drop-file:disabled + label { opacity: .55; cursor: default; }
#drop-file:focus-visible + label { outline: 3px solid #6486ff; outline-offset: 3px; }
#drop-offer { margin-top: 16px; padding: 10px 12px; background: #edf3ff; border-radius: 10px; }
#drop-offer-name { margin: 0 0 8px; overflow-wrap: anywhere; }
#drop-downloads { list-style: none; margin: 10px 0 0; padding: 0; }
#drop-downloads:empty { display: none; }
#drop-downloads li { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
#drop-downloads li span { min-width: 0; overflow-wrap: anywhere; }
#drop-downloads :is(a, button) { flex: none; }
#drop-downloads button { margin: 0; padding: 7px 0; }
@media (max-width: 660px) {
  .drop-layout { grid-template-columns: 1fr; gap: 10px; }
  .drop-panel { padding: 14px; }
}
