/* Палитра ws-* — infra/brand.md. Свои значения цветов здесь не изобретаются. */
:root {
  --ws-charcoal: #404040;
  --ws-charcoal-soft: #6b7280;
  --ws-orange: #d05030;
  --ws-orange-soft: #ff855d;
  --ws-teal: #40c0c0;
  --ws-teal-soft: #b8e6e6;
  --ws-bg: #ffffff;
  --ws-bg-soft: #f4f6f8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ws-charcoal);
  background: var(--ws-bg-soft);
}

.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }

h1 { font-size: 22px; margin: 0 0 4px; }
.sub { color: var(--ws-charcoal-soft); margin: 0 0 24px; }

.card {
  background: var(--ws-bg);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

label { display: block; font-weight: 600; margin-bottom: 8px; }

input[type="text"], input[type="email"] {
  width: 100%;
  padding: 14px;
  font-size: 20px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 2px solid #dfe3e8;
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
input[type="email"] { letter-spacing: normal; text-transform: none; font-size: 16px; font-family: inherit; }
input:focus { outline: none; border-color: var(--ws-teal); }

button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--ws-orange);
  cursor: pointer;
}
button:hover:not(:disabled) { background: var(--ws-orange-soft); }
button:disabled { background: #c9ced4; cursor: default; }
button.ghost { background: transparent; color: var(--ws-charcoal-soft); border: 1px solid #dfe3e8; }
button.ghost:hover:not(:disabled) { background: var(--ws-bg-soft); color: var(--ws-charcoal); }

.msg { margin-top: 12px; padding: 12px 14px; border-radius: 10px; display: none; }
.msg.show { display: block; }
.msg.err { background: #fdeceb; color: #8c2d1c; }
.msg.ok { background: var(--ws-teal-soft); color: #1c5e5e; }

.track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f4;
}
.track:last-child { border-bottom: 0; }
.track .t-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track audio { width: 220px; max-width: 45vw; }

.device { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef1f4; }
.device:last-child { border-bottom: 0; }
.device .d-name { flex: 1; }
.device .d-badge { font-size: 12px; color: var(--ws-teal); font-weight: 600; }

.bar { height: 8px; background: #eef1f4; border-radius: 4px; overflow: hidden; margin-top: 12px; }
.bar > i { display: block; height: 100%; background: var(--ws-teal); width: 0; transition: width .2s; }

.muted { color: var(--ws-charcoal-soft); font-size: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.unit {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ws-teal);
  padding: 16px 0 6px;
  border-bottom: 2px solid var(--ws-teal-soft);
}
.unit:first-child { padding-top: 0; }

/* Ссылка, выглядящая кнопкой: ведёт на другой сайт, поэтому именно <a>, а не <button> —
   средний клик и «открыть в новой вкладке» должны работать как у обычной ссылки. */
.btnlink {
  display: inline-block;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--ws-orange);
  text-decoration: none;
}
.btnlink:hover { background: var(--ws-orange-soft); }
