:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #0b1117; color: #f0f4f5; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% -10%, #1b4c53 0, transparent 42%), #0b1117; }
main { width: min(100%, 540px); margin: auto; padding: max(env(safe-area-inset-top), 28px) 22px 48px; }
header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 50px; }
.mark { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .04em; }
.mark img { width: 32px; height: 32px; }
.eyebrow { color: #83a5a9; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1 { font-size: clamp(32px, 9vw, 48px); letter-spacing: -.05em; line-height: 1.02; margin: 12px 0; }
p { color: #aab9bd; line-height: 1.55; }
.card { background: #17232b; border: 1px solid #2b3c44; border-radius: 22px; padding: 23px; margin-top: 22px; box-shadow: 0 12px 40px #0002; }
.status { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 650; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #6f7980; box-shadow: 0 0 0 5px #ffffff0d; }
.dot.online { background: #5edbb3; box-shadow: 0 0 0 5px #5edbb31e; }
.dot.offline { background: #ff8a7e; box-shadow: 0 0 0 5px #ff8a7e1e; }
button, input { font: inherit; }
button { border: 0; border-radius: 14px; padding: 15px 18px; background: #5edbb3; color: #10221e; font-weight: 750; cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.secondary { background: #263740; color: #d8e6e6; padding: 9px 13px; font-size: 13px; }
input { width: 100%; padding: 15px; border: 1px solid #49606a; border-radius: 14px; background: #0f1a21; color: #fff; margin: 16px 0; outline-color: #5edbb3; }
.wide { width: 100%; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.muted { color: #8fa4a9; font-size: 13px; }
.history { list-style: none; padding: 0; margin: 8px 0 0; }
.history li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #2b3c44; padding: 14px 0; font-size: 14px; }
.history li span:last-child { color: #aab9bd; }
.error { color: #ffada3; min-height: 24px; }
.pair-code { color: #5edbb3; font-size: 25px; font-weight: 750; letter-spacing: .09em; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
