* { box-sizing: border-box; }
:root { color-scheme: dark; font: 1rem/1.55 system-ui, sans-serif; background: #111b24; color: #eef5f7; }
body { margin: 0; }
[hidden] { display: none !important; }
header, main { max-width: 70rem; margin: auto; padding: clamp(1rem, 4vw, 2rem); }
header { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 2rem; border-bottom: 1px solid #405261; }
.brand { font-weight: 800; }
.brand span { color: #94f4cf; }
nav { display: flex; flex-wrap: wrap; gap: .75rem; }
nav a, .button, button, select { display: inline-flex; align-items: center; min-height: 48px; }
nav a { padding-inline: .65rem; color: #d6e2e7; }
a, nav a[aria-current="page"] { color: #94f4cf; }
nav a[aria-current="page"] { text-decoration-thickness: 3px; text-underline-offset: .28em; }
:focus-visible { outline: 3px solid #fdf1a5; outline-offset: 4px; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-block: 0 1rem; line-height: 1.2; }
h2 { font-size: 1.12rem; margin: 0; }
.card { padding: clamp(1rem, 3vw, 1.6rem); background: #1c2a36; border: 1px solid #405261; border-radius: 1rem; overflow-wrap: anywhere; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; margin-block: 1rem; }
p { color: #c6d6de; }
.value { font-size: 1.65rem; font-weight: 750; color: #fff; margin: .45rem 0; }
.button, button, select { padding: .65rem .95rem; border: 1px solid #728892; border-radius: .65rem; background: #243644; color: #f2f8fa; font: inherit; max-width: 100%; }
.button { color: #10251e; background: #94f4cf; border-color: #94f4cf; font-weight: 750; text-decoration: none; }
button:not(:disabled), select { cursor: pointer; }
button:disabled { opacity: .65; }
form { display: grid; margin-top: 1.5rem; gap: .65rem; }
#setup { margin-left: 1rem; }
#qr { display: block; background: #fff; padding: .45rem; margin: 1rem 0; }
#notice { border-inline-start: .25rem solid #94f4cf; padding: .65rem .9rem; background: #243644; }


#chat-settings { margin-top: 1rem; }
#chat-form { margin-top: 1rem; }
#chat-form details { border: 1px solid #405261; border-radius: .65rem; padding: .4rem .8rem .8rem; }
#chat-form summary { cursor: pointer; min-height: 48px; padding: .65rem 0; font-weight: 700; }
#chat-form label { display: block; padding: .5rem .1rem .15rem; }
#chat-form label:has(input[type="checkbox"]) { min-height: 48px; display: flex; gap: .6rem; align-items: center; }
#chat-form input:not([type="checkbox"]), #chat-form textarea { display: block; width: min(100%, 36rem); min-height: 48px; padding: .55rem; font: inherit; color: inherit; background: #243644; border: 1px solid #728892; border-radius: .55rem; }
#chat-form input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: #94f4cf; }
.chat-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
#chat-result:empty { display: none; }
#chat-preview-list { padding: .7rem 1rem; border-left: .25rem solid #94f4cf; background: #243644; }