:root{color-scheme:light;--ink:#192b3a;--muted:#647586;--border:#e0e6ea;--accent:#19465d;--bg:#f6f8fa;--white:#fff;--soft:#f1f5f7}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.55}.shell{max-width:1000px;margin:auto;padding:30px 22px 48px}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.brand{font-size:18px;font-weight:750;display:flex;align-items:center;gap:10px}.mark{display:grid;place-items:center;width:33px;height:33px;background:var(--accent);color:white;border-radius:10px}.subtitle,.muted,.hint{color:var(--muted)}.subtitle{font-size:12px}.panel{background:var(--white);border:1px solid var(--border);border-radius:16px;padding:30px;margin-bottom:19px;box-shadow:0 4px 20px #20304307}.sectiontitle{display:flex;gap:14px;align-items:flex-start;margin-bottom:23px}.number{font-weight:700;color:#597181;background:#ebf1f4;border-radius:9px;padding:6px 10px}.sectiontitle h1,.sectiontitle h2{font-size:22px;letter-spacing:-.6px;font-weight:680;margin:-4px 0 2px}.sectiontitle p{color:var(--muted);margin:0;font-size:13px}.scope-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:22px}.scope{cursor:pointer}.scope input{position:absolute;opacity:0}.scope span{display:block;border:1px solid var(--border);border-radius:10px;padding:13px 15px;font-weight:650;min-height:72px}.scope small{display:block;font-weight:400;color:var(--muted);font-size:11px;margin-top:4px}.scope input:checked+span{border-color:#31647d;background:#f0f6f8;box-shadow:inset 0 0 0 1px #31647d}.scope input:focus-visible+span{outline:3px solid #9dc6e0}.upload{border:1px dashed #b9c9d2;border-radius:10px;min-height:88px;display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding:16px;margin-bottom:22px;background:#fbfcfd}.upload.drag{background:#eff8fb;border-color:#326d89}.uploadButton{border:1px solid #bacbd3;border-radius:8px;background:white;padding:9px 14px;cursor:pointer;color:var(--ink);font-weight:650}.filename{font-size:12px;color:#155d50;overflow-wrap:anywhere}label:not(.scope):not(.codewrap){display:block;font-weight:650;margin-bottom:8px}textarea,input[type=password]{width:100%;font:inherit;border:1px solid #cdd8df;border-radius:9px;padding:12px 13px;outline:none;color:var(--ink);background:white}textarea:focus,input:focus{border-color:#34718f;box-shadow:0 0 0 3px #d7edf5}textarea{resize:vertical}.optional{margin:17px 0 20px;border-top:1px solid var(--border);padding-top:16px}.optional summary{cursor:pointer;font-weight:650;list-style-position:outside}.hint{font-size:12px;font-weight:400;margin-left:8px}.optional textarea{margin-top:12px}.controls,.action-row{display:flex;justify-content:space-between;align-items:end;gap:12px}.codewrap{width:210px;color:var(--muted);font-size:11px}.codewrap input{display:block;margin-top:5px;padding:9px;font-size:12px}.primary,.secondary,.quiet{font:inherit;cursor:pointer;border-radius:9px;padding:11px 17px;font-weight:650}.primary{background:var(--accent);color:white;border:1px solid var(--accent)}.primary:hover{background:#123749}.secondary{background:white;border:1px solid #bfd0d9;color:var(--accent)}.quiet{border:0;background:transparent;color:var(--accent);padding:7px 2px}.primary:disabled,.secondary:disabled{opacity:.55;cursor:wait}.result{min-height:190px}.empty{padding:32px 18px;background:var(--soft);border-radius:10px;color:var(--muted);text-align:center}.summary{font-size:16px;line-height:1.65;margin:0 0 22px}h3{font-size:14px;margin:24px 0 11px}.observation{border-left:3px solid #9db8c5;background:#f7f9fa;padding:12px 16px;margin:10px 0;border-radius:0 8px 8px 0}.observation strong{display:block;margin-bottom:4px}.observation p{margin:3px 0}.observation .suggestion{color:#365a6d;margin-top:7px}.note{background:var(--soft);border-radius:9px;padding:15px;margin:0;white-space:pre-wrap}.compare-head{display:flex;justify-content:space-between;align-items:center}.comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px}.comparison>div{background:#f5f7f8;border:1px solid var(--border);border-radius:10px;padding:16px;min-width:0}.comparison>div+div{background:#f0f7f7;border-color:#d6e8e7}.eyebrow{font-size:10px;color:var(--muted);font-weight:750;letter-spacing:1px}.copytext{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:12px;font-size:13px}.meaning{font-size:12px;color:#586d7b;margin:12px 2px}.refine{border-top:1px solid var(--border);margin-top:26px;padding-top:2px}.refine h3{margin-bottom:3px}.refine>.muted{margin:0 0 13px;font-size:12px}.action-row{margin-top:10px;justify-content:flex-end}.chatlog{margin:12px 0;max-height:300px;overflow:auto;border:1px solid var(--border);border-radius:10px;padding:10px}.bubble{padding:10px 12px;border-radius:9px;margin:7px 0;white-space:pre-wrap;font-size:12px;background:#f3f6f8}.bubble.user{background:#eaf3f6;margin-left:15%}.bubble.assistant{margin-right:10%}.status{min-height:18px;color:var(--muted);font-size:12px;text-align:center}footer{font-size:11px;color:#8896a2;text-align:center;margin-top:24px}@media(max-width:680px){.shell{padding:18px 12px}.panel{padding:18px}.subtitle{display:none}.scope-row,.comparison{grid-template-columns:1fr}.scope span{min-height:auto}.controls,.action-row{align-items:stretch;flex-direction:column}.codewrap{width:100%}.primary,.secondary{width:100%}.hint{display:block;margin-left:0}}
/* v0.3: wording-only comparison table */
.help{font-size:12px;color:var(--muted);margin:5px 0 0}.upload .small{font-size:12px;padding:3px 5px}.source-note{font-size:12px;color:#697b89;margin:0 0 11px}.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:10px}.edit-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px;line-height:1.55}.edit-table thead th{text-align:left;background:#f3f6f8;color:#405668;font-weight:700;font-size:12px;border-bottom:1px solid var(--border);padding:13px 14px}.edit-table thead th:nth-child(1){width:17%}.edit-table thead th:nth-child(2),.edit-table thead th:nth-child(3){width:30%}.edit-table thead th:nth-child(4){width:23%}.edit-table tbody th.section-label{text-align:left;font-weight:650}.edit-table tbody td,.edit-table tbody th.section-label{vertical-align:top;padding:14px;border-bottom:1px solid #e7edf0;overflow-wrap:anywhere;white-space:pre-wrap}.edit-table tbody .suggestion-cell{background:#f4f9f8}.edit-table tbody .reason-cell{color:#536a78;font-size:12px}.edit-table tbody .unchanged .reason-cell{color:#9aa8b0}.edit-table tbody .group-row th{padding:11px 14px;background:#eaf1f5;color:#29485c;text-align:left;font-size:12px;font-weight:700;letter-spacing:.1px}.edit-table tbody tr:last-child td,.edit-table tbody tr:last-child th{border-bottom:none}.edit-table tbody .unchanged .suggestion-cell{background:#fcfdfd}.compare-head{gap:12px}.status.error{color:#b04040}.edit-table .source-cell{color:#304655}
@media(max-width:700px){.edit-table,.edit-table tbody,.edit-table tr,.edit-table th,.edit-table td{display:block;width:100%}.edit-table thead{display:none}.edit-table tbody tr.changed,.edit-table tbody tr.unchanged{border-bottom:1px solid var(--border);padding:8px 0}.edit-table tbody th.section-label{padding:10px 12px 5px;border-bottom:none}.edit-table tbody td{padding:9px 12px!important;border-bottom:0}.edit-table tbody td:before{content:attr(data-label);display:block;font-size:10px;letter-spacing:.5px;text-transform:uppercase;color:#748795;font-weight:750;margin-bottom:5px}.edit-table tbody .suggestion-cell{border-radius:5px;margin:0 6px;width:calc(100% - 12px)}.edit-table tbody .group-row th{padding:10px 12px}.edit-table tbody tr:last-child{border-bottom:none}}
