:root{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:#1c3443;background:#f4f6f8;font-size:14px}*{box-sizing:border-box}body{margin:0}header{padding:22px 5%;display:flex;justify-content:space-between;border-bottom:1px solid #dfe6ea;background:#fff}.brand{font-size:12px;font-weight:800;letter-spacing:1.4px}.brand span{color:#9aadb8;margin:0 12px}.tag{font-size:12px;color:#607786}main{max-width:1450px;margin:auto;padding:36px 5%}.eyebrow{font-size:11px;letter-spacing:2px;color:#56818b;font-weight:700}h1{font-size:32px;font-weight:650;letter-spacing:-1px;margin:14px 0}.intro>p:last-child{color:#617988;line-height:1.8}.steps{display:flex;gap:16px;justify-content:space-between;margin:30px 0;color:#587485;font-size:12px;border-top:1px solid #dce4e9;padding-top:18px}.workspace{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(380px,1.1fr);gap:22px}.input-panel,.output-panel{background:white;border:1px solid #e0e7eb;border-radius:14px;padding:24px;min-width:0}.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px}h2{font-size:18px;margin:0}label{display:block;font-size:12px;line-height:1.8;color:#607786}textarea,input,select{font:inherit;width:100%;border:1px solid #cfdce2;border-radius:7px;padding:10px;color:#243e4d;background:#fcfdfe;outline:none}textarea:focus,input:focus,select:focus{border-color:#268782;box-shadow:0 0 0 3px #26878218}textarea{resize:vertical;line-height:1.7;margin-top:8px;font-size:13px}button{font:inherit;border:0;cursor:pointer;border-radius:7px;padding:10px 13px;font-size:12px;transition:.15s}button:disabled{opacity:.4;cursor:default}.light{background:#edf3f5;color:#365b6b}.light:hover:not(:disabled){background:#dfecef}.primary{background:#14766f;color:white;flex:1;font-size:14px}.primary span{margin-left:16px}.primary:hover:not(:disabled){background:#0b5c56}.actions{display:flex;gap:10px;margin-top:22px}.hint{font-size:11px;line-height:1.8;color:#748795;margin:10px 0 18px}details{border-top:1px solid #e8edf0;padding:15px 0 0;margin-top:12px}summary{cursor:pointer;font-weight:600;font-size:13px;margin-bottom:14px}.config{display:grid;grid-template-columns:1fr 1fr;gap:10px}.wide{grid-column:1/-1}#status{padding:10px 14px;background:#f0f5f7;border-radius:6px;font-size:12px;color:#57717f;line-height:1.7;overflow-wrap:anywhere}#status.error{background:#fff0e9;color:#9f4c27}.empty{text-align:center;padding:70px 15px;color:#6e8290;line-height:1.9}.empty h3{color:#345565;font-weight:500}.empty p{font-size:12px}.empty-mark{font-size:50px;color:#95b4bc}.metrics{display:flex;gap:10px;margin:18px 0;flex-wrap:wrap}.metric{background:#f6f8fa;padding:12px;border-radius:8px;flex:1;min-width:95px}.metric b{display:block;font-size:23px;margin-bottom:5px}.metric span{font-size:10px;color:#657e8a}.result{border:1px solid #dde7eb;border-radius:9px;margin-top:15px;padding:18px}.result-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.badge{font-size:10px;letter-spacing:.5px;padding:6px 8px;border-radius:5px;background:#e7f2ed;color:#296e55}.badge.review{background:#fff0d8;color:#946213}.badge.check{background:#fbe8e2;color:#a9472d}.badge.insufficient{background:#e9edf6;color:#556a95}.reason{font-size:13px;line-height:1.8}.fields{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.fields span{font-family:Consolas,monospace;background:#f1f5f7;padding:5px 8px;border-radius:4px;font-size:11px}.issues{font-size:12px;color:#9c4c2e;background:#fff5ee;padding:12px;border-radius:6px;line-height:1.8}blockquote{margin:8px 0;border-left:3px solid #accbc9;padding:8px 12px;background:#f6f9fa;font-size:12px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}.source{white-space:pre-wrap;font-size:12px;line-height:1.9;color:#5d7380}ul{padding-left:20px;font-size:12px;line-height:1.9}.reviewer{margin-top:14px}.reviewer textarea{font-size:12px}footer{font-size:11px;line-height:2;color:#78909c;padding:24px 0}button:focus-visible{outline:3px solid #77b6bf;outline-offset:2px}@media(max-width:900px){.workspace{grid-template-columns:1fr}h1{font-size:26px}.steps{flex-wrap:wrap}.tag{display:none}main{padding:24px 4%}.input-panel,.output-panel{padding:18px}}
/* Reference-led visual redesign */
:root{color:#242323;background:#f6f3ed;--red:#ee3454;--blue:#3158ed;--yellow:#ffcf19;--ink:#242323}
header{max-width:1440px;margin:auto;padding:24px 4%;background:transparent;border-bottom:2px solid var(--ink);align-items:center}.brand{font-family:Consolas,monospace;display:flex;gap:10px;align-items:center}.brand span{margin:0;color:var(--ink)}.brand-icon{background:var(--yellow);border:2px solid var(--ink);font-size:25px;padding:0 6px;box-shadow:3px 3px var(--ink)}main{max-width:1440px;padding:30px 4%}.eyebrow{color:#726b62;font-family:Consolas,monospace}h1{font-size:46px;line-height:1.2;font-weight:900;letter-spacing:-2px}.title-dot{color:var(--red)}.intro{margin-bottom:30px}.intro>p:last-child{color:#726b62}.intro:after{content:'';display:block;width:112px;height:6px;margin-top:21px;background:repeating-linear-gradient(90deg,var(--red) 0 20px,var(--blue) 20px 34px,var(--ink) 34px 48px)}.workspace{gap:24px;align-items:start}.input-panel,.output-panel{border:2px solid var(--ink);border-radius:0;box-shadow:6px 6px #ded9ce;padding:22px}.input-panel{position:sticky;top:20px}.section-head{padding-bottom:16px;border-bottom:2px solid #e8e4dc}h2{font-size:17px;display:flex;align-items:center;gap:12px}.section-label{font-family:Consolas,monospace;letter-spacing:1px;background:var(--yellow);color:var(--blue);font-size:12px;font-weight:900;padding:4px 8px;transform:rotate(-3deg);display:inline-block}label{color:#625f59}textarea,input,select{border:2px solid #d7d3cc;border-radius:0;background:#fffdfa;color:var(--ink)}textarea:focus,input:focus,select:focus{border-color:var(--blue);box-shadow:3px 3px var(--blue)}#records{min-height:300px;line-height:1.9}button{font-weight:700;border:2px solid var(--ink);border-radius:0;box-shadow:2px 2px var(--ink);transition:transform .12s,box-shadow .12s}button:hover:not(:disabled){transform:translate(-1px,-1px);box-shadow:4px 4px var(--ink)}button:active:not(:disabled){transform:translate(2px,2px);box-shadow:none}button:disabled{box-shadow:none}.light,.light:hover:not(:disabled){background:#fff;color:var(--ink)}.primary,.primary:hover:not(:disabled){background:var(--red);color:#fff;padding:13px 18px}#demo{background:var(--yellow)}.hint{color:#79736a}details{border-color:#dedbd5}summary{font-weight:700}.config{gap:14px}#status{background:#f4f2ed;border-left:4px solid var(--ink);border-radius:0;color:#686158}#status.error{background:#fff0ed;border-color:var(--red);color:#a02d3d}.empty{padding:65px 12px;color:#77716a}.empty h3{color:var(--ink);font-size:21px;font-weight:700}.empty-mark{font-size:44px;color:var(--ink);background:var(--yellow);border:3px solid var(--ink);box-shadow:5px 5px var(--ink);width:78px;height:78px;line-height:72px;margin:0 auto 28px;transform:rotate(-5deg)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.metric{border:1px solid #d7d3cc;padding:12px 9px;background:#fff;border-radius:0;min-width:0}.metric b{font-family:Consolas,monospace;font-size:26px}.metric span{color:#6d6861}.metric:first-child{border-top:4px solid var(--red)}.metric:nth-child(2){border-top:4px solid #21976a}.metric:nth-child(3){border-top:4px solid var(--blue)}.metric:nth-child(4){border-top:4px solid var(--yellow)}.result{border:2px solid var(--ink);border-radius:0;margin-top:18px}.result-top>b{font-family:Consolas,monospace;font-size:18px}.badge{font-weight:800;border:1px solid var(--ink);border-radius:0;background:#d8f2de;color:#215f3f}.badge.review{background:#ffe7a0;color:#66480b}.badge.check{background:#ffd8db;color:#8c2335}.badge.insufficient{background:#dfe5ff;color:#243e98}.fields span{border-radius:0;background:#f4f2ed}.fields span:last-child{background:var(--yellow);font-weight:bold}.issues{border-radius:0;border-left:3px solid var(--red)}blockquote{border-color:var(--blue);background:#f5f6ff}.source{color:#69635b}footer{color:#79736a}footer b{background:var(--yellow);padding:2px 6px;margin-right:8px;color:var(--ink)}button:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:4px}dialog{border:3px solid var(--ink);box-shadow:8px 8px var(--yellow);max-width:550px;width:calc(100% - 40px);padding:24px;background:#fffdf7;color:var(--ink)}dialog::backdrop{background:#22222a80;backdrop-filter:blur(3px)}#closeSettings{font-size:20px;padding:2px 10px}#doneSettings{width:100%}@media(max-width:900px){.input-panel{position:static}h1{font-size:34px}.brand{font-size:10px;gap:6px}.input-panel,.output-panel{padding:16px}h2{font-size:15px;gap:8px}.section-label{font-size:10px}.config{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,1fr)}.actions{flex-wrap:wrap}.actions .primary{min-width:160px}}
/* Softer tool layout */
header{border-bottom:1px solid #d8d3c9}.brand-icon{border-radius:9px;border-width:1.5px;box-shadow:2px 2px #403c36}.intro{margin-bottom:28px}h1{font-size:42px;letter-spacing:-1.6px}.intro:after{border-radius:3px;overflow:hidden}.workspace{align-items:stretch}.left-column{display:flex;flex-direction:column;gap:24px;min-width:0}.input-panel{position:static}.input-panel,.output-panel{border:1.5px solid #37332e;border-radius:16px;box-shadow:4px 4px #e0dbd0;padding:24px}.output-panel{min-height:100%}.section-head{border-bottom:1px solid #e7e2d9}.section-label{border-radius:4px;transform:rotate(-2deg)}button{border-radius:9px;border-width:1.5px;box-shadow:2px 2px #403c36;padding:10px 14px}button:hover:not(:disabled){box-shadow:3px 3px #403c36}textarea,input,select{border-radius:9px;border-width:1px;background:#fdfcf9;padding:12px}textarea:focus,input:focus,select:focus{box-shadow:0 0 0 3px #3158ed15}#records{margin-top:0;min-height:260px;font-size:13px}.actions{margin-top:18px}.primary{border-radius:9px}#status{border-radius:7px;border-left-width:3px;background:#f6f4ee}.result{border-width:1px;border-color:#ccc6bc;border-radius:12px;padding:18px}.badge{border:0;border-radius:6px;padding:7px 9px;font-size:9px}.fields span{border-radius:5px}.metric{border-radius:8px;padding:12px 8px}.metric b{font-size:24px}.empty{padding:70px 12px}.empty-mark{border-radius:20px 20px 26px 9px;border-width:2px;box-shadow:4px 4px #39352e;transform:rotate(-3deg)}.empty h3{font-size:20px}.issues{border-radius:7px}blockquote{border-radius:0 7px 7px 0}dialog{border-width:2px;border-radius:16px;box-shadow:6px 6px #e7c85b}#closeSettings{border-radius:8px}.handbook{background:#efebe2;border:1px solid #dbd4c6;border-radius:16px;padding:24px;flex:1}.handbook .section-head{border-bottom-color:#d9d1c2}.book-icon{color:#3158ed;font-size:25px}.mini-label{font:10px Consolas,monospace;letter-spacing:1px;color:#7e776b}.handbook ol{padding-left:22px;margin:20px 0 4px}.handbook li{padding-left:7px;margin-bottom:18px}.handbook li::marker{color:#a49881;font-weight:700}.handbook strong{font-size:13px;font-weight:600}.handbook p{font-size:12px;line-height:1.8;color:#766e61;margin:5px 0}.handbook code{font-size:11px;background:#e7e1d5;padding:2px 4px;border-radius:4px}.handbook details{border-color:#d9d1c2}.handbook summary{font-weight:600;color:#5a5349}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}footer{font-size:10px;letter-spacing:1px;color:#8e8679}#results .result details b{font-size:12px;color:#655d51}#results .result details label{margin-top:12px}@media(max-width:900px){h1{font-size:32px}.input-panel,.output-panel,.handbook{padding:18px}.workspace{align-items:start}.brand{letter-spacing:0;font-size:9px}.brand span{margin:0}header{gap:12px}header button{font-size:11px;padding:8px}.section-head{flex-wrap:wrap}.badge{max-width:65%;overflow-wrap:anywhere}.metrics{grid-template-columns:repeat(2,1fr)}}
/* Pull-out handbook note */
.handbook-drawer{align-self:stretch;margin-top:2px}.handbook-tab{display:inline-flex;align-items:center;gap:12px;background:#f3d97d;border:1px solid #b3a06a;border-radius:10px 10px 7px 7px;box-shadow:2px 3px #ded2ae;color:#51462b;padding:12px 18px;font-size:13px}.note-symbol{font-size:20px;font-weight:400}.note-arrow{margin-left:20px;transition:transform .3s}.is-open .note-arrow{transform:rotate(180deg)}.note-reveal{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .4s ease,opacity .25s ease}.is-open .note-reveal{grid-template-rows:1fr;opacity:1}.note-clip{overflow:hidden;min-height:0;padding:0 8px}.handbook-note{position:relative;margin:14px 0 12px;padding:25px 27px 20px 38px;border:1px solid #e0ca83;border-radius:3px 3px 22px 3px;color:#554b34;background:repeating-linear-gradient(transparent 0 29px,#bba15824 29px 30px),linear-gradient(110deg,#fff5c9,#fbebae);box-shadow:3px 6px 8px #51462b14;transform:translateY(-20px);transition:transform .4s ease}.is-open .handbook-note{transform:translateY(0)}.handbook-note:before{content:'';position:absolute;left:24px;top:0;bottom:0;width:1px;background:#d987722e}.handbook-note:after{content:'';position:absolute;bottom:0;right:0;width:24px;height:24px;background:linear-gradient(135deg,#e4cc84 49%,#f6f3ed 51%);border-radius:4px 0 20px 0}.note-top{display:flex;justify-content:space-between;align-items:center;font:10px Consolas,monospace;letter-spacing:1.8px;color:#9d8753}.note-close{border:0;background:transparent;box-shadow:none;font-size:23px;color:#998052;padding:0 4px;line-height:1.2}.note-close:hover:not(:disabled){background:#ead18d55;box-shadow:none;transform:none}.handbook-note h2{font-size:27px;font-family:Georgia,serif;font-style:italic;font-weight:500;color:#53462a;margin:14px 0 6px}.handbook-note p{font-size:12px;line-height:1.9;margin:4px 0;color:#796847}.handbook-note .note-lead{margin-bottom:20px}.handbook-note ol{padding-left:20px;margin:0}.handbook-note li{padding-left:7px;margin:0 0 15px}.handbook-note li::marker{color:#a08340;font-family:Georgia,serif;font-style:italic}.handbook-note strong{font-size:13px;color:#5b4c2c;font-weight:650}.handbook-note code{background:#e8cf7c33;padding:2px 4px;border-radius:3px;font-size:11px}.note-tip{border-left:3px solid #d4ad4f;padding:3px 12px;margin:20px 0;font-size:12px}.note-tip b{color:#5b4c2c}.handbook-note details{border-color:#cdb57066;margin-top:12px;padding-top:12px}.handbook-note summary{font-size:12px;color:#806b3c;font-weight:500}.note-signoff{font:italic 14px Georgia,serif;color:#a08443;margin-top:22px;padding-top:10px}.note-signoff span{float:right;font-size:22px}.left-column{gap:20px}@media(prefers-reduced-motion:reduce){.note-reveal,.handbook-note,.note-arrow{transition:none}}@media(max-width:900px){.handbook-note{padding:22px 20px 20px 33px}.handbook-note:before{left:21px}.note-clip{padding:0 3px}}

/* Keep results independent of the expanded help note. */
.workspace { align-items: start; }
.output-panel { align-self: start; min-height: 0; }
body, body * { font-family: Georgia, serif; }
* { font-family: Georgia, serif !important; }

/* Homepage navigation */
a.brand{color:inherit;text-decoration:none}
