:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #000; font: 16px/1.4 'Space Grotesk', system-ui, sans-serif; }
main { max-width: 640px; margin: 0 auto; padding: 16px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px; }
h1 { margin: 0; font-size: 1.5rem; letter-spacing: .05em; }
p { margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.add { display: grid; gap: 8px; margin-bottom: 16px; }
.small { font-size: .85rem; }

button, .btn {
  font: inherit; background: #fff; color: #000; border: 1px solid #000; border-radius: 0;
  min-height: 44px; padding: 0 12px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
button:active, .btn:active, button[aria-pressed="true"] { background: #000; color: #fff; }
button:disabled { opacity: .4; cursor: default; }
:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

textarea, input { font: inherit; font-size: 16px; width: 100%; background: #fff; color: #000; border: 1px solid #000; border-radius: 0; padding: 8px; }
textarea { min-height: 120px; resize: vertical; }

.card { border: 1px solid #000; padding: 12px; margin-top: 12px; display: grid; gap: 8px; }
.card .label { border: 0; border-bottom: 1px solid #000; padding: 4px 0; font-weight: 700; }
.card .num { border: 0; padding: 0; min-height: 32px; font-family: ui-monospace, Menlo, monospace; text-decoration: underline; }
.card .num:active { background: #fff; color: #000; }
.card .status { font-weight: 700; }
.card .zh:empty, .card .meta:empty { display: none; }
details summary { cursor: pointer; min-height: 32px; }
details ol { margin: 8px 0 0; padding-left: 20px; }
details li { margin-bottom: 8px; }
#empty { margin-top: 16px; }
