:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  background: #f7f5f2; color: #281f20; line-height: 1.55;
  --accent: #a51d27; --muted: #6d6162; --line: #e5dbda;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1 { font-size: 28px; margin: 0 0 16px; }
h2 { font-size: 19px; margin: 0 0 2px; }
p { margin: 0 0 12px; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; }
input, select, textarea { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #b9a9aa; border-radius: 6px; background: white; color: inherit; }
textarea { resize: vertical; }
label { display: grid; gap: 4px; font-size: 14px; }
button { border: 1px solid var(--accent); border-radius: 6px; padding: 8px 14px; background: var(--accent); color: white; cursor: pointer; }
button.secondary { border-color: var(--line); background: white; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.brand { color: var(--accent); font-weight: 700; margin: 0; }
.login { width: min(400px, calc(100% - 32px)); margin: 12vh auto 20px; padding: 26px; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 10px; background: white; }
.login form { display: grid; gap: 10px; }
.bar { background: white; border-bottom: 1px solid var(--line); }
.bar-inner, .workspace { max-width: 1120px; margin: auto; padding: 16px 20px; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.workspace { padding-top: 24px; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding-bottom: 16px; }
.filters a { padding: 8px 0; }
.muted { color: var(--muted); font-size: 13px; }
.notice, .error { padding: 8px 10px; border-radius: 6px; color: #854018; background: #fff0df; }
.entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 338px), 1fr)); gap: 12px; }
.entry, .empty { border: 1px solid var(--line); background: white; border-radius: 8px; padding: 16px; }
.entry-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.entry h2 { overflow-wrap: anywhere; }
.status { padding: 3px 9px; background: #fcefeb; color: #9d282d; border-radius: 4px; white-space: nowrap; font-size: 13px; }
dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
dt { font-size: 13px; color: var(--muted); }
dd { margin: 0; }
.followup { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 9px; }
.followup button { justify-self: start; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 18px 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; clip-path: inset(50%); }
