/* TalkPanel: plain, high-contrast, works with screen readers and zoom. */
:root { --bg: #fff; --fg: #1a1a1a; --muted: #555; --line: #c8c8c8; --accent: #0b57d0; --ok-bg: #e6f4ea; --ok: #135c2a; --err-bg: #fce8e6; --err: #8c1d18; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #121212; --fg: #ececec; --muted: #b0b0b0; --line: #444; --accent: #8ab4f8; --ok-bg: #0f2e1a; --ok: #9be3b0; --err-bg: #3a1411; --err: #f6aea9; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1.05rem/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
a:focus, button:focus, input:focus, select:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem 1rem; z-index: 10; }
header { border-bottom: 1px solid var(--line); padding: .75rem 1rem; }
.brand { font-weight: 700; font-size: 1.2rem; margin: 0 0 .25rem; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: center; }
nav a[aria-current="page"] { font-weight: 700; }
.who { margin: .4rem 0 0; color: var(--muted); font-size: .95rem; }
main { max-width: 60rem; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.7rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.3rem; margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.field { margin: 0 0 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .25rem; }
.field.check { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.field.check label { display: inline; }
.field.check .help { flex-basis: 100%; }
input[type=text], input[type=password], input[type=email], input[type=number], select {
  width: 100%; max-width: 32rem; padding: .5rem; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--muted); border-radius: 4px; }
input[type=checkbox] { width: 1.2rem; height: 1.2rem; }
fieldset { border: 1px solid var(--line); border-radius: 4px; margin: 0 0 1rem; padding: .75rem 1rem; }
legend { font-weight: 600; padding: 0 .25rem; }
input[type=radio] { width: 1.2rem; height: 1.2rem; }
button:disabled { opacity: .5; cursor: not-allowed; }
button { font: inherit; padding: .5rem 1rem; border: 1px solid var(--accent); background: var(--accent); color: var(--bg); border-radius: 4px; cursor: pointer; }
nav button { padding: .15rem .75rem; }
.inline { display: inline; margin: 0; }
.help { margin: .25rem 0 0; color: var(--muted); font-size: .95rem; }
.msg { padding: .75rem 1rem; border-radius: 4px; border-left: 5px solid; }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg.error { background: var(--err-bg); color: var(--err); }
table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
caption { text-align: left; font-weight: 700; padding-bottom: .4rem; }
th, td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; vertical-align: top; }
thead th { background: color-mix(in srgb, var(--line) 35%, var(--bg)); }
.value { word-break: break-all; font-family: ui-monospace, Consolas, monospace; font-size: .95rem; }
@media (max-width: 40rem) { table, thead, tbody, tr, th, td { font-size: .95rem; } }
