:root {
  --bg: #fff;
  --text: #1c1c1e;
  --muted: #6b6b70;
  --line: #e2e2e6;
  --accent: #2f6fdd;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #161618; --text: #ececf0; --muted: #9a9aa2; --line: #2c2c31; --accent: #6ea0ff; }
}
body { margin: 0; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
header form { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.brand { font-weight: 600; color: var(--text); text-decoration: none; }
main { max-width: 720px; margin: 0 auto; padding: 16px; }
h1 { font-size: 22px; margin: 16px 0; }
h2 { font-size: 16px; margin: 24px 0 8px; }
a { color: var(--accent); }
ul.projects { list-style: none; padding: 0; }
ul.projects li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.small, .hint { font-size: 13px; color: var(--muted); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
td form { margin: 0; }
input { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); min-width: 0; }
button, .button { font: inherit; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); cursor: pointer; text-decoration: none; display: inline-block; }
.button { background: var(--accent); color: #fff; border-color: var(--accent); }
form { display: flex; flex-wrap: wrap; gap: 8px; }
.button.secondary { background: var(--bg); color: var(--text); border-color: var(--line); }
code { font-family: ui-monospace, Consolas, monospace; }
form.stack { flex-direction: column; align-items: flex-start; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.actions { display: flex; gap: 8px; }
td { overflow-wrap: anywhere; }
/* Touch screens: bigger targets, and 16px fields so iOS doesn't zoom. */
@media (pointer: coarse) {
  input, button, .button { font-size: 16px; min-height: 44px; }
  input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; }
  fieldset label { min-height: 40px; display: flex; align-items: center; gap: 8px; }
}
