/* Results shared by spell, LanguageTool, syntax, and curated usage modules. */
.analysis-list{display:grid;gap:12px;margin-top:18px}.analysis-list h3{margin:0 0 2px;font-size:16px}.analysis-item,.spelling-item{padding:14px;border:1px solid #dde7dd;border-radius:12px;background:#fff}.analysis-item p,.spelling-item p{margin:8px 0 0;font-size:13px;line-height:1.65}.analysis-item small{display:block;margin-top:8px;color:#758079;font-size:11px}.sentence-text{font-weight:650}.analysis-item details{margin-top:8px;font-size:13px}.analysis-item summary{cursor:pointer;color:var(--green)}.token-list,.suggestions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.token-chip,.suggestion{display:inline-flex;align-items:center;border:1px solid #dfe8df;border-radius:999px;background:#f1f5f1;padding:4px 9px;font-size:11px}.scope-note{font-size:12px;line-height:1.65}
/* Phase 4: verdict, per-item checks, before/after comparison, meaning. */
.badge.overall-correct{background:#e3f1e8;color:#25613f;border-color:#b9dcc6}.badge.overall-needs_improvement{background:#fdf3dc;color:#7a5410;border-color:#f0d9a3}.badge.overall-error{background:#fbe6e3;color:#9a2f22;border-color:#efc1ba}.badge.overall-pending{background:#eef0ee;color:#5c665f;border-color:#d8ddd8}
.check-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;margin:0}.check-row{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid #dde7dd;border-radius:10px;background:#fff}.check-row dt{font-size:12px;color:#5c665f}.check-row dd{margin:0}.check-row small{display:block;margin-top:4px;font-size:11px;line-height:1.5;color:#758079}
.status-chip{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:650;border:1px solid transparent}.status-ok{background:#e3f1e8;color:#25613f}.status-error{background:#fbe6e3;color:#9a2f22}.status-warning{background:#fdf3dc;color:#7a5410}.status-pending{background:#eef0ee;color:#5c665f}.status-info{background:#e7eef6;color:#2d4f73}
.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media (max-width:640px){.compare-grid{grid-template-columns:1fr}}.compare-box{padding:14px;border:1px solid #dde7dd;border-radius:12px;background:#fff;min-width:0}.compare-box h3{margin:0 0 6px;font-size:14px}.compare-box.after{border-color:#b9dcc6;background:#f7fbf8}.sentence-line{margin:6px 0 0;font-size:16px;line-height:1.9;overflow-wrap:anywhere}.sentence-line.corrected{font-weight:600;color:#25613f}.compare-sub{margin:10px 0 0;font-size:12px;color:#758079}.muted{font-size:13px;color:#758079}
.hl{border-radius:4px;padding:1px 3px;background:#f1f5f1;color:inherit}.hl-spelling{background:#fbd9d3;box-shadow:inset 0 -2px #d0533f}.hl-grammar{background:#fde2c8;box-shadow:inset 0 -2px #d17a22}.hl-verb_usage{background:#eadcf6;box-shadow:inset 0 -2px #8a4fbf}.hl-preposition{background:#d6e6f8;box-shadow:inset 0 -2px #3a76bd}.hl-pos{background:#d5efec;box-shadow:inset 0 -2px #2f8c80}.hl-naturalness{background:#fbefc4;box-shadow:inset 0 -2px #b8901c}mark.sev-warning{text-decoration:underline dashed;text-underline-offset:3px}.badge[class*=overall-]{font-size:14px;font-weight:700;padding:6px 14px;border:1px solid}
.legend{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0;font-size:11px}.fix-list{margin:10px 0 0;padding-left:18px;font-size:13px}.fix-list li{margin:4px 0}.fix-list small{display:block;font-size:11px;color:#758079}.fix-before{text-decoration:line-through;color:#9a2f22}.fix-after{font-weight:650;color:#25613f}.rule-line{font-weight:600}
.sev-border-error{border-left:4px solid #d0533f}.sev-border-warning{border-left:4px solid #d9a92b}
.analysis-list>p{margin:0;font-size:13px;color:#58635c}
/* Correction view: headline, quip, numbered critique cards. */
.optional{display:inline-block;margin-left:6px;padding:1px 7px;border:1px solid var(--line);border-radius:999px;font-size:11px;font-weight:600;color:var(--muted);vertical-align:2px}
.text-button{padding:0;border:0;background:none;color:var(--green);font-size:12px;text-decoration:underline;text-underline-offset:3px}
.headline{margin:14px 0 0;font-size:16px;font-weight:650;line-height:1.7}.quip{margin:4px 0 0;font-family:Georgia,"Times New Roman",serif;font-style:italic;color:#5c665f;font-size:14px}.quip.small{font-size:12.5px;margin-top:10px;padding-top:8px;border-top:1px dashed #dde7dd}
.critique-head{display:flex;align-items:center;gap:8px;margin:0}.critique-num{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#28322d;color:#fff;font-size:11px;font-weight:700}.fix-pair{margin:10px 0 0;font-size:16px;overflow-wrap:anywhere}.fix-flag{background:#fbe6e3;border-radius:4px;padding:1px 4px}.critique-message{font-size:14px!important;color:#28322d}.critique-detail{color:#58635c}.critique-en{color:#758079;font-size:12px!important}
.structure{margin-top:18px;font-size:13px}.structure summary{cursor:pointer;color:var(--green);font-weight:600}.result-foot{margin:20px 0 0;font-size:12px;color:var(--muted)}.result-foot a{color:var(--green)}
/* Prompts (お題) and the stage section of the result. */
.prompt-card{padding:14px 16px;border:1px solid #b9dcc6;border-radius:12px;background:#f7fbf8}.prompt-card .eyebrow{margin:0}.prompt-ja{margin:6px 0 0;font-size:17px;font-weight:650;line-height:1.7}.prompt-pattern{margin:8px 0 0;font-size:13px}.prompt-pattern span{font-weight:650;color:var(--green)}.prompt-meaning{margin:4px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}.prompt-actions{display:flex;justify-content:flex-end;gap:16px;margin-top:10px}
.stage-item p{margin:8px 0 0}.stage-item .reference{font-size:15px;font-weight:600;color:#25613f;overflow-wrap:anywhere}.hl-scenario{background:#f7dcea;box-shadow:inset 0 -2px #b0457a}
.stage-links{display:flex;flex-wrap:wrap;gap:8px 18px}.stage-links a{color:var(--green);font-weight:600}
.also-list{margin:4px 0 0;padding-left:18px;font-size:14px;line-height:1.7;color:#355844;overflow-wrap:anywhere}
.love-note:empty{display:none}.love-card{border-left:4px solid #f27d86;background:#fff8f5}.love-score{background:#fde4e1;color:#9a2f3a}.love-score-2,.love-score-3{background:#fdeedd;color:#8a4a12}.love-score-4,.love-score-5{background:#e3f1e8;color:#25613f}.love-facts{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:10px 0;font-size:14px}.love-facts dt{color:#758079;font-weight:600}.love-facts dd{margin:0}
/* お題 card: model answer right under the prompt; "もう一度書いてみる" is a small extra that hides it. */
.prompt-model{margin-top:10px;padding:10px 12px;border-radius:10px;background:#f7fbf8;border:1px solid #d5e8dc}.prompt-model .model-label{margin:0;font-size:12px;font-weight:650;color:var(--green)}.prompt-model .reference{margin-top:2px}.prompt-model .also-list{margin-top:2px}
.retry{margin-top:10px}.retry-start{font-size:13px}
.retry-input{min-height:0;padding:9px 12px;font-size:16px}.retry-actions{display:flex;align-items:center;gap:8px;margin-top:8px}.retry-actions button{flex:0 0 auto;width:auto;padding:5px 12px;font-size:13px;font-weight:600;border-radius:7px}
.prompt-result.retrying .prompt-model,.prompt-result.retrying .prompt-explain{display:none}
.retry-compare{display:grid;gap:8px;margin:10px 0 0}.retry-row{padding:8px 12px;border:1px solid #dde7dd;border-radius:10px;background:#fff}.retry-row dt{font-size:12px;color:#5c665f;font-weight:600}.retry-row dd{margin:2px 0 0;font-size:16px;line-height:1.7;overflow-wrap:anywhere}.retry-row.now{border-color:#9cc8ad}.retry-row.model{background:#f7fbf8}.retry-row.model dd{font-weight:600;color:#25613f}
.critique-head .status-chip{flex-shrink:0;white-space:nowrap}
