* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #1f2933; background: #f5f7fa; }
header { display: flex; align-items: center; gap: 24px; padding: 10px 24px; background: #fff; border-bottom: 1px solid #e4e7eb; position: sticky; top: 0; z-index: 1; }
header h1 { font-size: 18px; margin: 0; }
nav { display: flex; gap: 4px; }
nav button { border: none; background: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 14px; }
nav button.active { background: #e3ecfa; color: #1a56db; font-weight: 600; }
#user { margin-left: auto; display: flex; gap: 8px; align-items: center; color: #616e7c; }
main { padding: 16px 24px 48px; max-width: 1400px; }
h2 { font-size: 16px; margin: 20px 0 8px; }
button { padding: 6px 12px; border: 1px solid #cbd2d9; border-radius: 6px; background: #fff; cursor: pointer; font-size: 13px; }
button.primary { background: #1a56db; color: #fff; border-color: #1a56db; }
button:disabled { opacity: .5; cursor: default; }
.toolbar { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.spacer { flex: 1; }
.card { background: #fff; border: 1px solid #e4e7eb; border-radius: 8px; padding: 12px 16px; margin: 8px 0; }
.card h2 { margin-top: 0; }
.hint { color: #7b8794; font-size: 12px; }
.badge { display: inline-block; min-width: 24px; padding: 0 8px; border-radius: 10px; background: #e4e7eb; font-size: 12px; text-align: center; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e4e7eb; }
th, td { text-align: left; padding: 6px 10px; border-bottom: 1px solid #eef0f2; vertical-align: top; }
th { background: #f9fafb; font-weight: 600; white-space: nowrap; }
td.answer { white-space: pre-wrap; word-break: break-word; max-width: 560px; }
tr.self-added td { background: #fff8e1; }
.tag { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 12px; background: #e4e7eb; }
.tag.self { background: #ffe8a3; color: #8a5a00; }
.tag.multi { background: #fde2e2; color: #9b1c1c; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: #fff; border: 1px solid #e4e7eb; border-radius: 12px; padding: 2px 10px; }
textarea { width: 100%; min-height: 40px; font: inherit; padding: 4px 6px; border: 1px solid #cbd2d9; border-radius: 4px; resize: vertical; }
textarea.dirty { border-color: #f0b429; background: #fffbea; }
pre { background: #f5f7fa; padding: 8px; border-radius: 6px; white-space: pre-wrap; max-height: 240px; overflow: auto; }
#msg { margin: 8px 24px 0; padding: 8px 12px; border-radius: 6px; background: #e3f8ff; color: #035388; }
#msg.error { background: #ffe3e3; color: #8a1c1c; }
#login { padding: 40px 0; }
input.name-edit { width: 140px; padding: 3px 6px; border: 1px solid #cbd2d9; border-radius: 4px; }
