:root { color-scheme: light; font-family: system-ui, sans-serif; color: #203f39; background: #f6f4ec; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 780px; margin: auto; padding: 40px 22px 64px; }
header { margin-bottom: 28px; }
.brand { color: #287766; font-size: 22px; font-weight: 800; }
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin-bottom: 14px; }
h2 { font-size: 23px; margin-top: 0; }
p { line-height: 1.6; color: #536b63; }
.card { background: #fffef9; border: 1px solid #e0e5d9; border-radius: 20px; padding: 26px; margin: 20px 0; }
label { display: block; font-weight: 650; margin: 18px 0 8px; }
input, select { width: 100%; padding: 14px; border: 1px solid #a5bdb2; border-radius: 10px; background: white; font: inherit; color: inherit; }
button { border: 0; border-radius: 10px; background: #287766; color: white; font: inherit; font-weight: 650; padding: 14px 20px; cursor: pointer; margin-top: 16px; }
button:disabled { opacity: .55; cursor: wait; }
button.secondary { background: #eaf0e9; color: #285449; }
button.danger { color: #964d3b; background: #faeee7; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #c5a344; outline-offset: 3px; }
.toolbar, .device { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.toolbar h2 { margin-bottom: 0; }
.toolbar button { margin: 0; }
.device { border-top: 1px solid #e0e5d9; padding: 16px 0; }
.device p { margin: 5px 0 0; font-size: 14px; }
.device button { margin: 0; }
#pairing { border-top: 1px solid #e0e5d9; margin-top: 24px; padding-top: 18px; }
#setup-code { display: block; font: 700 clamp(20px, 4vw, 30px) ui-monospace, monospace; letter-spacing: 1px; color: #287766; overflow-wrap: anywhere; }
#status:empty { display: none; }
#status { background: #eaf0e9; border-radius: 10px; padding: 14px; }
[hidden] { display: none !important; }
@media (max-width: 480px) { .card { padding: 20px; } .device { flex-wrap: wrap; } }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.lang { display: flex; gap: 6px; }
.lang button { margin: 0; padding: 7px 12px; background: #eaf0e9; color: #285449; font-size: 14px; }
.lang button[aria-pressed="true"] { background: #287766; color: white; }
.trial { white-space: pre-line; background: #fbf3dc; border-radius: 10px; padding: 12px 14px; color: #6b5420; font-weight: 650; }
.agent { border-top: 1px solid #e0e5d9; padding: 14px 0; }
.agent p { margin: 4px 0 0; font-size: 14px; }
.agent a { color: #287766; }
