/* Plain, functional, readable on a phone. */
:root { --fg: #111; --bg: #fff; --muted: #555; --line: #ccc; --bad: #a00;
        --ok: #060; --good: #dfd; --head: #f2f2f2; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.4 system-ui, sans-serif; color: var(--fg);
       background: var(--bg); }
header { padding: 8px 16px; background: var(--head);
         border-bottom: 1px solid var(--line); display: flex;
         flex-wrap: wrap; gap: 8px 16px; align-items: center;
         justify-content: space-between; }
nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
main { padding: 0 16px 32px; max-width: 1100px; }
h1 { font-size: 1.4em; } h2 { font-size: 1.15em; margin-top: 1.6em; }
a { color: #04c; }
form.inline { display: inline; margin: 0; }
button { font: inherit; padding: 6px 14px; }
button.link { background: none; border: none; color: #04c; padding: 0;
              text-decoration: underline; cursor: pointer; }
fieldset { border: 1px solid var(--line); margin: 0 0 16px; padding: 8px 12px;
           display: grid; grid-template-columns: repeat(auto-fill,
           minmax(230px, 1fr)); gap: 10px 16px; }
legend { font-weight: bold; }
fieldset label, fieldset > div { display: flex; flex-direction: column; }
fieldset label span, fieldset > div > span { font-weight: 600;
           font-size: .92em; }
input, select { font: inherit; padding: 4px 6px; width: 100%; }
small, .note { color: var(--muted); font-size: .85em; }
fieldset .note { grid-column: 1 / -1; margin: 0; }
.months { display: grid; grid-template-columns: repeat(6, auto); gap: 2px; }
label.chk { flex-direction: row; align-items: center; gap: 2px;
            font-size: .9em; }
label.chk input { width: auto; }
.error { color: var(--bad); font-style: normal; font-size: .9em; }
.bad input, .bad select { border: 2px solid var(--bad); }
.ok { color: var(--ok); font-weight: bold; }
.fail { color: var(--bad); font-weight: bold; }
.scroll { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; font-size: .88em; }
th, td { border: 1px solid var(--line); padding: 3px 6px; text-align: right;
         vertical-align: top; white-space: nowrap; }
th { background: var(--head); }
table.kv th { text-align: left; }
td.good { background: var(--good); }
pre { font: 13px/1.3 ui-monospace, monospace; background: #fafafa;
      border: 1px solid var(--line); padding: 8px; overflow-x: auto; }
details { margin: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
form.login { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
form.login label { display: flex; flex-direction: column; min-width: 240px; }
