
:root { --ink:#1d2433; --muted:#5b6475; --line:#e3e7ee; --bg:#f6f7f9; --card:#fff; --accent:#1f5fbf; --accent-ink:#fff;
  --good:#1f7a4d; --good-bg:#e6f4ec; --warn:#8a5a00; --warn-bg:#fff4d6; --bad:#a3262a; --bad-bg:#fde8e8; --sim:#5a3fa0; --sim-bg:#efe9ff; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color:var(--ink); background:var(--bg); }
a { color:var(--accent); }
.topbar { background:#14213d; color:#fff; }
.topbar .inner { max-width:1180px; margin:0 auto; padding:10px 16px; display:flex; flex-wrap:wrap; align-items:center; gap:6px 18px; }
.brand { font-weight:700; letter-spacing:.2px; color:#fff; text-decoration:none; margin-right:8px; }
.topnav { display:flex; flex-wrap:wrap; gap:4px 14px; flex:1; }
.topnav a { color:#d6e2ff; text-decoration:none; font-size:15px; padding:2px 0; }
.topnav a:hover, .topnav a[aria-current="page"] { color:#fff; text-decoration:underline; }
.topbar form { margin:0; }
.topbar button { background:transparent; color:#d6e2ff; border:1px solid #42507a; }
main.wrap { max-width:1180px; margin:0 auto; padding:20px 16px 48px; }
h1 { font-size:28px; line-height:1.2; margin:8px 0 12px; }
h2 { font-size:20px; margin:28px 0 10px; }
h3 { font-size:17px; margin:20px 0 8px; }
p { margin:8px 0; }
small, .muted { color:var(--muted); }
ul { padding-left:22px; }
table { width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:8px; overflow:hidden; margin:8px 0 16px; font-size:15px; }
th, td { text-align:left; vertical-align:top; padding:9px 10px; border-bottom:1px solid var(--line); }
th { background:#eef1f6; font-weight:600; font-size:14px; color:#38425a; }
tr:last-child td { border-bottom:0; }
.table-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
button, input[type=submit] { font:inherit; font-size:15px; background:var(--accent); color:var(--accent-ink); border:0; border-radius:6px; padding:7px 14px; cursor:pointer; }
button[disabled] { opacity:.5; cursor:default; }
button.secondary { background:#e9edf4; color:var(--ink); }
input[type=text], input[type=email], input:not([type]), textarea, select { font:inherit; padding:8px 10px; border:1px solid #c9d0dc; border-radius:6px; background:#fff; max-width:100%; }
textarea { width:100%; max-width:720px; }
label { font-weight:600; }
form.inline { display:inline; }
.card { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:14px 18px; margin:12px 0; }
.prose { max-width:760px; white-space:pre-wrap; }
.pre-wrap { white-space:pre-wrap; font-family:inherit; margin:0; }
.badge { display:inline-block; font-size:12px; font-weight:600; line-height:1; padding:4px 7px; border-radius:999px; vertical-align:middle; }
.badge-sim { color:var(--sim); background:var(--sim-bg); }
.banner-test { background:var(--warn-bg); color:#5c4300; border:1px solid #f0d58a; border-radius:8px; padding:10px 14px; margin:0 0 14px; }
.stats { list-style:none; padding:0; display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:10px; }
.stats li { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:12px 14px; }
.msg { margin:12px 0; padding:10px 12px; background:var(--card); border:1px solid var(--line); border-radius:8px; }
.msg-iris { margin-left:24px; border-left:4px solid var(--accent); }
.msg-note { margin-left:24px; color:var(--muted); font-style:italic; }
@media (max-width: 640px) {
  h1 { font-size:23px; }
  table { display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  th, td { padding:8px; font-size:14px; }
  .msg-iris, .msg-note { margin-left:8px; }
}
