:root { color-scheme: light; font-family: system-ui, sans-serif; background: #f5f7fa; color: #172436; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #185f96; }
button { border: 0; border-radius: .5rem; padding: .7rem 1rem; background: #135e92; color: white; font: inherit; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button.quiet { background: transparent; color: #135e92; padding: .4rem; }
.topbar { background: #fff; border-bottom: 1px solid #d9e1e8; display: flex; justify-content: space-between; align-items: center; padding: 1rem max(1rem, calc((100vw - 1100px)/2)); }
.brand { color: #172436; font-size: 1.3rem; font-weight: 750; text-decoration: none; }
main { max-width: 1100px; margin: 2rem auto; padding: 0 1rem; }
.panel { background: white; border: 1px solid #dce3eb; border-radius: .8rem; padding: 1.25rem; margin-bottom: 1rem; box-shadow: 0 2px 8px #14223508; }
.auth { max-width: 430px; margin: 3rem auto; }
h1 { font-size: 1.8rem; margin: 0 0 .6rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
p { line-height: 1.5; }
label { display: block; font-weight: 600; margin: 1.1rem 0; }
input { display: block; width: 100%; margin-top: .35rem; padding: .7rem; border: 1px solid #aebbc8; border-radius: .45rem; font: inherit; }
.error { color: #9d2230; }
.muted, .message-meta, small { color: #5a6877; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.4rem; }
.heading { display: flex; align-items: center; gap: 1rem; }
.tag { font-size: .75rem; background: #e4f1fc; color: #135e92; border-radius: 999px; padding: .3rem .65rem; font-weight: 700; }
.message { overflow-wrap: anywhere; }
.message h2 { margin-top: .7rem; }
.message p { white-space: pre-wrap; margin-bottom: 0; }
.message-meta { display: flex; gap: 1rem; justify-content: space-between; font-size: .8rem; }
.device-list { padding: 0; list-style: none; }
.device-list li { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #e5e9ee; padding: .7rem 0; gap: .5rem; }
.device-list small { display: block; font-size: .75rem; }
.pair-result, .token-result { font-weight: 700; overflow-wrap: anywhere; user-select: all; }
@media (max-width: 750px) { .layout { grid-template-columns: 1fr; } .message-meta { display: block; } .message-meta time { display: block; } }
