:root {
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
  color: #24233c;
  background: #f5f5fa;
  --muted: #605e77;
  --border: #deddeb;
  --accent: #5143ac;
}
* { box-sizing: border-box; }
body { margin: 0; }
.topbar { background: white; border-bottom: 1px solid var(--border); }
.topbar-inner {
  max-width: 1152px; margin: auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 750; }
.brand-icon {
  display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px;
  color: white; background: var(--accent); font-size: 1.35rem;
}
.platform { font-size: .875rem; color: var(--muted); }
main { width: min(100% - 40px, 760px); margin: 52px auto; }
.intro { margin-bottom: 28px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); letter-spacing: -.055em; line-height: 1.12; }
.intro p { margin-top: 10px; }
p, #destination { color: var(--muted); }
.connection, details, .composer { background: white; border: 1px solid var(--border); border-radius: 14px; }
.connection {
  padding: 17px 20px; display: flex; align-items: center; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; overflow-wrap: anywhere;
}
details { margin: 12px 0 24px; }
summary { cursor: pointer; padding: 12px 20px; font-size: .9rem; font-weight: 650; color: var(--accent); }
#settings { display: grid; gap: 15px; padding: 0 20px 20px; }
#settings button { justify-self: start; }
code { overflow-wrap: anywhere; color: #333055; }
.composer { box-shadow: 0 12px 36px #302b6010; }
.card-header, .card-body, .card-footer { padding: 20px 24px; }
.card-header { border-bottom: 1px solid var(--border); }
h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: grid; gap: 7px; font-size: .9rem; font-weight: 650; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #c9c7da; border-radius: 8px;
  background: white; color: inherit; font: 400 1rem/1.45 "Segoe UI", system-ui, sans-serif;
}
select { appearance: none; padding-right: 36px; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%235b5876' stroke-width='1.5'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
select:disabled { background-color: #f7f7fb; color: var(--muted); }
.message-label { margin-top: 18px; }
textarea { min-height: 138px; resize: vertical; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; border-top: 1px solid var(--border);
}
#destination { font-size: .9rem; overflow-wrap: anywhere; }
button {
  background: var(--accent); color: white; border: 1px solid transparent;
  border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 650; cursor: pointer;
}
button:hover:enabled { background: #41348f; }
button.secondary { background: #f1effb; color: #493b9e; }
button.secondary:hover:enabled { background: #e6e1fa; }
button:disabled { opacity: .66; cursor: default; }
:focus-visible { outline: 3px solid #7d68db; outline-offset: 3px; }
#feedback:not(:empty) { margin-top: 14px; padding: 12px 16px; border-radius: 8px; background: #e6f4eb; color: #1b563a; overflow-wrap: anywhere; }
#feedback.error { background: #fcebec; color: #821f29; }
#feedback a { color: inherit; font-weight: 650; }
@media (max-width: 540px) {
  main { margin-top: 30px; }
  .fields { grid-template-columns: 1fr; }
  .card-header, .card-body, .card-footer { padding: 16px; }
}
