:root { font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; color: #17324a; background: #eef4f8; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #edb74d; outline-offset: 2px; }
.top { background: #163b57; color: white; display: flex; align-items: center; justify-content: space-between; padding: 18px max(24px, calc((100% - 1180px)/2)); }
.brand { font-size: 20px; font-weight: 700; letter-spacing: .04em; }
.brand span { margin-left: 12px; font-size: 14px; font-weight: 400; color: #c5d9e8; }
.status { color: #cae8de; font-size: 14px; }
main { max-width: 1180px; padding: 30px 24px 48px; margin: auto; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 26px; }
.eyebrow { margin: 0 0 4px; color: #28705f; font-weight: 700; }
h1 { font-size: clamp(27px, 4vw, 38px); line-height: 1.25; margin: 0 0 8px; }
.lead, .section-head p { color: #597082; margin: 0; }
.count { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; color: #597082; }
.count strong { color: #237460; font-size: 36px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 24px; align-items: start; }
.editor, .library, .tasks, .rules, .family { background: #fff; border: 1px solid #d4e2ea; border-radius: 12px; padding: 24px; }
.tasks, .rules, .family { margin-top: 24px; }
.child-form { display: flex; align-items: end; gap: 14px; }
.child-form label { flex: 1; margin: 0; max-width: 360px; }
.child-list-item { padding: 10px 0; border-bottom: 1px solid #e5edf2; }
.rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.task-fields { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.task-choices { max-height: 240px; overflow-y: auto; border: 1px solid #d4e2ea; border-radius: 7px; padding: 8px 12px; }
.task-choice { display: flex; align-items: start; gap: 10px; margin: 8px 0; font-weight: 400; overflow-wrap: anywhere; }
.task-choice input { width: 19px; height: 19px; flex: none; accent-color: #237460; }
.section-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e5edf2; padding-bottom: 15px; margin-bottom: 18px; }
h2 { font-size: 21px; margin: 0; } .section-head p { font-size: 14px; }
label { display: block; margin: 15px 0; font-weight: 600; }
input:not([type=checkbox]):not([type=radio]), textarea, select { display: block; width: 100%; border: 1px solid #a9bdc9; background: white; color: #17324a; border-radius: 7px; padding: 10px 12px; margin-top: 6px; }
textarea { resize: vertical; }
.options-title { display: flex; justify-content: space-between; margin-top: 20px; font-weight: 700; }
.options-title span:last-child { font-size: 13px; color: #597082; font-weight: 400; }
.option { border-top: 1px solid #e9f0f4; padding: 12px 0; }
.option-line { display: flex; gap: 10px; align-items: center; }
.option-line input[type=text] { flex: 1; margin: 0; }
.option-line label { display: flex; align-items: center; margin: 0; gap: 6px; }
.option-line input[type=checkbox], .option-line input[type=radio] { width: 20px; height: 20px; accent-color: #237460; }
.option textarea { margin-top: 8px; font-size: 14px; }
.quiet { color: #246b5b; background: transparent; border: 0; padding: 6px 0; font-weight: 700; }
.quiet.remove { color: #83544d; }
.points { max-width: 160px; }
.hint, .footnote { color: #597082; font-size: 13px; }
.primary { border: 0; background: #237460; color: white; border-radius: 7px; padding: 11px 24px; font-weight: 700; }
.primary:disabled { opacity: .6; cursor: wait; }
.error { color: #a12724; min-height: 1.5em; }
.notice { color: #237460; }
.import { background: #f2f8f5; border-left: 4px solid #7bb7a3; padding: 16px; margin-bottom: 20px; }
.import h3 { margin: 0; font-size: 16px; }
.template-link { display: inline-block; margin-top: 8px; color: #176653; font-size: 14px; font-weight: 700; }
.import p { color: #506a61; font-size: 13px; margin: 7px 0; }
.import label { font-size: 14px; }
.secondary { border: 1px solid #237460; background: white; color: #236b59; border-radius: 7px; padding: 8px 16px; font-weight: 700; }
#import-result { margin: 10px 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty { color: #60798a; padding: 22px 0; }
.question { padding: 16px 0; border-bottom: 1px solid #e5edf2; }
.question:last-child { border-bottom: 0; }
.question-meta { color: #597082; font-size: 13px; }
.question-title { margin: 5px 0; font-weight: 700; white-space: pre-wrap; overflow-wrap: anywhere; }
.answer { color: #286a59; font-size: 14px; }
.footnote { margin-top: 20px; }
[hidden] { display: none !important; }
.auth-screen { max-width: 480px; margin: 8vh auto; padding: 28px; background: white; border-radius: 12px; box-shadow: 0 12px 35px rgba(23,50,74,.09); }
.auth-screen h1 { margin: 0; font-size: 25px; }
.auth-screen p { color: #597082; font-size: 14px; line-height: 1.6; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .workspace, .task-fields, .rule-grid { grid-template-columns: 1fr; } .task-fields { gap: 0; } .child-form { align-items: stretch; flex-direction: column; } .intro { align-items: start; flex-direction: column; } .count strong { font-size: 25px; } .editor, .library, .tasks, .rules, .family { padding: 18px; } .top { padding: 16px 20px; } main { padding: 24px 16px; } }
