:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #070b14;
  color: #e5e7eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, .24), transparent 32rem),
    radial-gradient(circle at 90% 20%, rgba(14, 165, 233, .13), transparent 28rem),
    #070b14;
}

button, input { font: inherit; }

button {
  border: 1px solid #334155;
  border-radius: .75rem;
  padding: .7rem 1rem;
  background: #172033;
  color: #f8fafc;
  cursor: pointer;
}

button:hover { border-color: #60a5fa; }
button:disabled { cursor: wait; opacity: .55; }
button.primary { background: #2563eb; border-color: #3b82f6; }
button.danger { background: #3f1721; border-color: #9f1239; }
button.ghost { padding: .35rem .65rem; background: transparent; }

.shell {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 5rem;
}

.hero, .section-heading, .share-row, .actions, .peer {
  display: flex;
  align-items: center;
}

.hero {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .25rem; font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { margin-bottom: .75rem; }

.subtitle, .hint, .empty { color: #94a3b8; }
.eyebrow {
  margin-bottom: .45rem;
  color: #60a5fa;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.panel {
  margin-bottom: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(71, 85, 105, .65);
  border-radius: 1rem;
  background: rgba(15, 23, 42, .82);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
  backdrop-filter: blur(14px);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.grid .panel { margin-bottom: 0; }
.section-heading { justify-content: space-between; gap: 1rem; }
.share-panel { display: grid; gap: .7rem; }
.share-row { gap: .6rem; }
.share-row input {
  min-width: 0;
  flex: 1;
  padding: .75rem;
  border: 1px solid #334155;
  border-radius: .75rem;
  background: #080d18;
  color: #cbd5e1;
}

.badge, .count {
  border-radius: 999px;
  padding: .35rem .7rem;
  background: #0f3c2f;
  color: #86efac;
  font-size: .8rem;
}
.badge.muted { background: #1e293b; color: #94a3b8; }
.badge.error { background: #4c1725; color: #fda4af; }

.peer-list, .transfer-list { display: grid; gap: .75rem; }
.peer {
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem;
  border: 1px solid #273449;
  border-radius: .85rem;
  background: #0b1220;
}
.peer strong, .transfer strong { display: block; }
.peer small, .transfer small { color: #94a3b8; }

.transfer {
  padding: .85rem;
  border: 1px solid #273449;
  border-radius: .85rem;
  background: #0b1220;
}

.transfer-head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
}

progress {
  width: 100%;
  height: .55rem;
  margin-top: .65rem;
  accent-color: #3b82f6;
}

.incoming { border-color: #2563eb; }
.actions { gap: .7rem; }
.diagnostics { margin-top: 1rem; }
.diagnostics ol {
  max-height: 15rem;
  margin: .5rem 0 0;
  padding-left: 1.5rem;
  overflow: auto;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
}
.diagnostics li { margin-bottom: .35rem; }

.hidden { display: none !important; }

@media (max-width: 760px) {
  .shell { width: min(100% - 1rem, 1080px); padding-top: 1rem; }
  .grid { grid-template-columns: 1fr; }
  .share-row { align-items: stretch; flex-direction: column; }
  .peer { align-items: stretch; flex-direction: column; }
}

