.error-analysis{margin:20px 0 28px;padding:22px;border:1px solid var(--line,#d9e2da);border-radius:18px;background:#fff;max-width:1100px}.error-analysis h2{margin:0 0 8px;font-size:1.3rem}.error-analysis p{line-height:1.65}.error-analysis .ea-subtitle,.ea-meta{color:#647269;font-size:.9rem}.ea-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:18px 0}.ea-controls label{display:grid;gap:6px;min-width:145px}.ea-controls select,.ea-controls input{width:100%;padding:9px 11px;border:1px solid #c8d4ca;border-radius:9px;background:#fff;font:inherit}.ea-controls details{flex-basis:100%}.ea-controls details label{max-width:300px;margin-top:10px}.ea-dates{display:flex;gap:12px;flex-wrap:wrap}.ea-preview{padding:14px;background:#f3f7f2;border-radius:12px;margin:12px 0}.ea-preview strong{font-size:1.05rem}.ea-consent{display:flex;gap:9px;align-items:start;margin:14px 0;line-height:1.5}.ea-consent input{width:auto;flex:none;margin-top:4px}.ea-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.ea-actions button{min-height:42px}.ea-notice{padding:10px 0;margin:0;white-space:pre-line}.ea-notice[role=alert]{color:#9c3434}.ea-report{margin-top:20px;border-top:1px solid #d9e2da;padding-top:16px}.ea-report h3{margin:0 0 8px}.ea-report-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.ea-example-links{display:flex;gap:10px;flex-wrap:wrap}.ea-history{margin-top:18px}.ea-history ul{padding-left:20px}.ea-history li{margin:8px 0}.ea-history button{background:transparent;text-align:left}.error-analysis [hidden]{display:none!important}@media(max-width:620px){.error-analysis{padding:16px 12px;margin:14px 0}.ea-controls{gap:10px}.ea-controls>label{flex:1 1 42%;min-width:0}.ea-dates{width:100%}.ea-dates label{flex:1;min-width:120px}.ea-actions button{flex:1 1 auto}.ea-report-text{font-size:.95rem}}

.ea-sent-material{margin:12px 0}.ea-sent-material pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;background:#f6f7f4;padding:12px;font-size:.8rem}

.ea-material-list{padding-left:24px}.ea-material-list>li{padding:12px 0;border-bottom:1px solid #e3e8e1}.ea-material-list dl{display:grid;grid-template-columns:130px 1fr;gap:8px 12px;margin:12px 0}.ea-material-list dt{font-weight:600}.ea-material-list dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.ea-sent-material>details{margin-top:12px}@media(max-width:620px){.ea-material-list dl{grid-template-columns:1fr;gap:5px}.ea-material-list dd{margin-bottom:10px}}

/* B60: separate saved report scope from the next analysis form. */
.error-analysis{max-width:none;margin-top:0;color:var(--ink,#244637)}
.error-analysis .ea-new-analysis{border:1px solid var(--line,#d9e2da);border-radius:14px;padding:18px;background:#fafbf7;margin:20px 0}
.error-analysis .ea-new-analysis h3{margin:0 0 6px;font-size:1.05rem}
.error-analysis .ea-report{border-top:0;padding:0;margin-top:28px}
.error-analysis .ea-report-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.error-analysis .ea-report-heading h3{margin:0;font-size:1.15rem}
.error-analysis .ea-saved-badge{padding:4px 10px;border-radius:30px;color:#325c42;background:#eaf2e5;font-size:.82rem;white-space:nowrap}
.error-analysis .ea-report-meta{display:grid;grid-template-columns:150px minmax(0,1fr);gap:8px 14px;font-size:.9rem;margin:16px 0 22px;padding:16px;background:#f5f6f0;border-radius:12px}
.error-analysis .ea-report-meta dt{color:#647269}
.error-analysis .ea-report-meta dd{margin:0;overflow-wrap:anywhere}
.error-analysis .ea-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.error-analysis .ea-stat{display:flex;flex-direction:column;gap:6px;padding:18px 12px;border:1px solid #e0e6da;border-radius:12px;background:#fff;text-align:center}
.error-analysis .ea-stat strong{font-size:1.8rem;line-height:1.1;font-weight:650;font-variant-numeric:tabular-nums}
.error-analysis .ea-stat span{font-size:.88rem;color:#647269}
.error-analysis .ea-stat-note{font-size:.88rem;color:#647269;margin:12px 0 4px}
.error-analysis .ea-count-help{font-size:.85rem;color:#647269;margin:8px 0 16px}
.error-analysis .ea-count-help p{margin:8px 0}
.error-analysis .ea-overview{margin:18px 0}
.error-analysis .ea-issues{display:grid;gap:16px}
.error-analysis .ea-issue-card{border:1px solid #d9e2d5;border-radius:16px;padding:20px;background:#fff}
.error-analysis .ea-issue-card header{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.error-analysis .ea-issue-number{font-size:.8rem;color:#536b50;background:#f0f4e8;padding:4px 8px;border-radius:7px;white-space:nowrap}
.error-analysis .ea-issue-card h4{font-size:1.1rem;margin:0;overflow-wrap:anywhere}
.error-analysis .ea-issue-card h5{font-size:.95rem;margin:20px 0 10px}
.error-analysis .ea-advice{border-left:3px solid #70936b;background:#f6f8f1;padding:12px 14px;border-radius:0 10px 10px 0}
.error-analysis .ea-advice p{margin:6px 0 0}
.error-analysis .ea-example{border:1px solid #e1e7dc;border-radius:10px;margin:8px 0;padding:12px 14px;background:#fafbf8}
.error-analysis .ea-example summary{cursor:pointer;font-weight:600;min-height:24px;overflow-wrap:anywhere}
.error-analysis .ea-evidence-grid{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px 14px;font-size:.92rem}
.error-analysis .ea-evidence-grid dt{font-weight:600}
.error-analysis .ea-evidence-grid dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.error-analysis .ea-original-link{display:inline-block;margin-top:8px;min-height:36px;line-height:36px}
.error-analysis .ea-history{border-top:1px solid #d9e2da;padding-top:16px;margin-top:24px}
.error-analysis .ea-history button{white-space:normal;overflow-wrap:anywhere;min-height:44px;line-height:1.5}
.error-analysis .ea-limitations{padding:12px;background:#f8f6ed;border-radius:10px}
.error-analysis summary:focus-visible,.error-analysis a:focus-visible,.error-analysis button:focus-visible{outline:2px solid #467451;outline-offset:3px}
@media(max-width:620px){
 .error-analysis .ea-new-analysis{padding:14px 12px}
 .error-analysis .ea-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .error-analysis .ea-stat{padding:14px 8px}
 .error-analysis .ea-report-meta,.error-analysis .ea-evidence-grid{grid-template-columns:minmax(0,1fr);gap:5px}
 .error-analysis .ea-report-meta dd,.error-analysis .ea-evidence-grid dd{margin-bottom:9px}
 .error-analysis .ea-issue-card{padding:15px 12px}
 .error-analysis .ea-example{padding:12px 10px}
}
