:root {
  color-scheme: dark;
  --bg: #0b101b;
  --panel: #121a29;
  --panel-2: #172235;
  --line: #26354b;
  --text: #f0f4fb;
  --muted: #91a0b7;
  --accent: #61e0bf;
  --blue: #8fa9ff;
  --danger: #ff8e99;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 78% 7%, rgba(53, 83, 132, .19), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px max(24px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid rgba(145, 160, 183, .15);
  background: rgba(11, 16, 27, .72);
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; background: var(--accent); color: #0b201f;
  font-size: 15px; font-weight: 900; letter-spacing: -1px;
}
.brand-copy { display: grid; gap: 4px; letter-spacing: .09em; }
.brand-copy strong { font-size: 12px; }
.brand-copy small { color: var(--muted); font-size: 9px; letter-spacing: .2em; }
.server-indicator { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7b879b; flex: 0 0 auto; }
.dot.online { background: var(--accent); box-shadow: 0 0 12px rgba(97, 224, 191, .42); }
.dot.busy { background: #ffbd69; }
.dot.offline { background: var(--danger); }
.page { max-width: 1120px; margin: 0 auto; padding: 54px 24px 26px; }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-bottom: 36px; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
h1 { margin: 14px 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
h1 span { color: var(--blue); }
.hero-copy { max-width: 540px; color: var(--muted); line-height: 1.7; font-size: 14px; }
.hero-mark {
  flex: 0 0 235px; min-height: 135px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; border: 1px solid var(--line);
  border-radius: 18px; background: linear-gradient(145deg, rgba(23, 34, 53, .9), rgba(15, 23, 37, .7));
}
.hero-mark > span { color: var(--muted); font-size: 9px; letter-spacing: .19em; }
.wave { height: 48px; display: flex; align-items: center; gap: 5px; }
.wave i { width: 4px; border-radius: 5px; background: var(--accent); opacity: .9; }
.wave i:nth-child(1), .wave i:nth-child(7) { height: 17px; }
.wave i:nth-child(2), .wave i:nth-child(6) { height: 30px; }
.wave i:nth-child(3), .wave i:nth-child(5) { height: 42px; }
.wave i:nth-child(4) { height: 23px; }
.dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.panel {
  min-width: 0; border: 1px solid var(--line); border-radius: 17px;
  background: linear-gradient(145deg, rgba(18, 26, 41, .98), rgba(15, 23, 36, .98));
  padding: 24px; box-shadow: 0 18px 55px rgba(0, 0, 0, .12);
}
.audio-panel { grid-column: 1 / -1; }
.panel-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 24px; }
.step {
  flex: 0 0 35px; height: 35px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid #344560; color: var(--blue);
  font-size: 11px; font-weight: 800;
}
.panel-heading h2 { margin: 1px 0 6px; font-size: 17px; letter-spacing: -.02em; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.panel-heading > div { flex: 1; }
form { display: grid; gap: 10px; }
label, .field-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
input {
  width: 100%; min-height: 44px; margin-bottom: 7px; padding: 11px 13px;
  border: 1px solid #2c3b52; border-radius: 9px; outline: none;
  background: #0c1421; color: var(--text); font: inherit;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(97, 224, 191, .1); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 42px; padding: 10px 15px; border: 1px solid transparent;
  border-radius: 9px; font: inherit; font-weight: 750; font-size: 12px; cursor: pointer;
  transition: transform .15s, opacity .15s, background .15s;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .36; }
.primary { background: var(--accent); color: #0b201f; }
.secondary { background: #1b293d; border-color: #34445e; color: var(--text); }
.quiet { background: transparent; border-color: #34445e; color: var(--muted); margin-left: auto; }
#login-button { width: 100%; margin-top: 7px; }
.message { min-height: 18px; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.message.error { color: var(--danger); }
.message.success { color: var(--accent); }
.fine-print { color: #76869e; font-size: 10px; line-height: 1.5; margin: 8px 0 0; }
.welcome-row { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.avatar {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: var(--accent); background: rgba(97, 224, 191, .1); border: 1px solid rgba(97, 224, 191, .25);
  font-size: 12px; font-weight: 900;
}
.welcome-row > div { display: grid; gap: 4px; }
.welcome-row strong { font-size: 14px; }
.status-card {
  display: flex; gap: 13px; align-items: flex-start; padding: 17px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 17, 28, .55);
}
.status-card > .dot { margin-top: 5px; }
.status-text { display: grid; gap: 7px; }
.status-text strong { font-size: 14px; }
.status-text p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.tag {
  margin-left: auto; white-space: nowrap; color: #c5b7ff; background: rgba(143, 121, 225, .1);
  border: 1px solid rgba(143, 121, 225, .26); border-radius: 6px;
  padding: 6px 8px; font-size: 8px; letter-spacing: .1em; font-weight: 800;
}
.source-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.source {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 16px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(9, 16, 27, .56);
}
.source-icon {
  flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 9px;
  background: #1a2a3d; color: var(--blue); font-size: 10px; font-weight: 900;
}
.source > div { flex: 1; min-width: 0; display: grid; gap: 5px; }
.source strong { font-size: 12px; }
.source small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.source-state { font-size: 8px; line-height: 1.5; letter-spacing: .05em; color: #8592a7; white-space: nowrap; }
.notice {
  margin-top: 15px; display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid rgba(143, 169, 255, .17); border-radius: 11px;
  padding: 13px; background: rgba(143, 169, 255, .045);
}
.notice-mark {
  display: grid; place-items: center; width: 18px; height: 18px; flex: 0 0 18px;
  border: 1px solid #6f85bb; border-radius: 50%; color: var(--blue); font-size: 11px;
}
.notice p { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.7; }
.notice strong { color: var(--text); }
footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid rgba(145, 160, 183, .15); margin-top: 30px; padding: 20px 0 8px;
  color: #7e8ca2; font-size: 9px; letter-spacing: .11em;
}
.footer-separator { color: var(--accent); margin: 0 5px; }
@media (max-width: 760px) {
  .page { padding: 36px 16px 22px; }
  .topbar { padding: 14px 16px; }
  .hero { align-items: flex-start; }
  .hero-mark { display: none; }
  .dashboard { grid-template-columns: 1fr; }
  .audio-panel { grid-column: auto; }
  .source-list { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
}
@media (max-width: 440px) {
  .server-indicator { font-size: 10px; }
  .brand-copy strong { font-size: 10px; }
  .button-row .button { width: 100%; }
  .source-state { white-space: normal; text-align: right; }
}
