:root {
  color-scheme: light dark;
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  --background: light-dark(#f4f5f2, #151816);
  --surface: light-dark(#fff, #1c211e);
  --ink: light-dark(#17221f, #e9edea);
  --muted: light-dark(#52615a, #adb9b0);
  --border: light-dark(#d6ded7, #3e4a42);
  --accent: light-dark(#185a48, #94dec2);
  --on-accent: light-dark(#fff, #172c24);
  --error: light-dark(#9b2c23, #ffaca2);
  background: var(--background);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px max(20px, calc((100vw - 1160px) / 2)); border-bottom: 1px solid var(--border); background: var(--surface); }
h1 { font-size: 19px; margin: 0; }
main { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
h2 { font-size: 19px; margin: 0 0 18px; }
.card { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 22px; }
.login { max-width: 400px; margin: 70px auto; display: grid; gap: 14px; }
.login h2 { margin: 0 0 4px; }
.login form:not(.login) { display: grid; gap: 14px; }
nav, .heading, form:not(.login) { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
nav { margin-bottom: 16px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
label.check { display: flex; align-items: center; min-height: 36px; }
input, select, button { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 8px 11px; max-width: 100%; min-height: 38px; }
input[type="checkbox"] { min-height: auto; }
button { cursor: pointer; }
button[type="submit"], button[aria-current="page"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
button:disabled { opacity: .65; cursor: wait; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); }
.heading { justify-content: space-between; align-items: start; }
.table { overflow: auto; margin-top: 15px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
th, td { padding: 11px 8px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
td:last-child { min-width: 90px; }
#tasks table { min-width: 660px; }
#task-list td:nth-child(1), #task-list td:nth-child(4), #task-list td:nth-child(5) { white-space: nowrap; }
#notice { border: 1px solid var(--border); padding: 10px 14px; border-radius: 6px; }
#notice[data-error] { color: var(--error); }
#review { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; }
@media (max-width: 570px) { .card { padding: 15px; } form:not(.login) > label:not(.check) { flex: 1 0 100%; } }
