.account-main{grid-template-columns:minmax(280px,390px) minmax(440px,650px)}
.account-card{min-height:560px}
.upload-document{margin:24px 0;padding:22px;border:1px solid #d4e0eb;border-radius:17px;background:#f7fafc}
.upload-document h3,.history h3{margin:0;color:#0a2540;font-size:20px}
.upload-document>p{margin:8px 0 18px;color:#607183;font-size:15px}
.upload-document input[type=file]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.file-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.file-button{min-height:50px;display:flex!important;align-items:center;justify-content:center;border:1px dashed #2563eb!important;border-radius:11px;background:#eff6ff;color:#1d4ed8!important;cursor:pointer}
.upload-document>span{display:block;margin:9px 0;color:#607183;font-size:13px;overflow-wrap:anywhere}
.upload-document .privacy-note{margin:13px 0 0;font-size:12px;line-height:1.5}
.analysis-result{scroll-margin-top:100px;margin:26px 0;padding:25px;border:1px solid #bfd1e2;border-radius:18px;background:#fff;box-shadow:0 14px 38px #0a254010}
.result-head{display:flex;justify-content:space-between;gap:12px;color:#0f766e;font-size:12px;font-weight:900;letter-spacing:.8px}
.analysis-result>h3{margin:13px 0 10px;color:#0a2540;font-size:25px}
.result-summary{color:#405469;font-size:16px;line-height:1.7}
.analysis-result section{margin-top:21px}
.analysis-result h4{margin:0 0 9px;color:#24445f;font-size:14px;text-transform:uppercase;letter-spacing:.5px}
.analysis-result ul{margin:0;padding-left:21px}
.analysis-result li{margin:7px 0;color:#405469;line-height:1.55}
.result-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.suggested-reply{padding:18px;border-radius:12px;background:#eff6ff}
.suggested-reply p{line-height:1.65}.suggested-reply small{color:#607183;font-weight:800}
.result-warning{margin-top:20px;padding:13px;border-radius:9px;background:#fff8eb;color:#7a4a0b;line-height:1.5}
.history{margin:28px 0}.history>div:first-child{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.history>div>button{border:0;background:transparent;color:#2563eb;font-weight:800}
.file-preview{margin:16px 0;padding:14px;border:1px solid #cbd9e7;border-radius:12px;background:#fff}
.file-preview img{display:block;max-width:100%;max-height:280px;object-fit:contain;margin:auto;border-radius:6px}
.file-preview p,.credit-notice{font-size:14px!important;line-height:1.6;margin:12px 0!important;color:#405469!important}
.preview-actions,.result-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.preview-actions a,.preview-actions button,.result-actions button,.result-actions a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border:1px solid #cbd9e7;border-radius:9px;background:#fff;color:#1d4ed8;font:inherit;font-size:14px;font-weight:600;text-align:center}
.result-actions{margin:16px 0 24px}
.result-actions p{flex-basis:100%;font-size:14px;margin:0;color:#405469}
.result-actions p:empty,#upload-status:empty{display:none}
#upload-status{font-size:14px;margin:12px 0 0;color:#405469}
#history-title,.upload-document{scroll-margin-top:100px}
.history-item{width:100%;min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin:8px 0;padding:13px 15px;border:1px solid #d7e1ea;border-radius:11px;background:#fff;color:#0a2540;text-align:left}
.history-item span{min-width:0}.history-item strong,.history-item small{display:block}
.history-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-item small{margin-top:5px;color:#607183;font-size:12px}.history-item b{color:#2563eb;font-size:13px}.history-item:disabled{opacity:.7}
.history p{color:#607183}
@media(max-width:820px){.account-main{grid-template-columns:1fr}.account-card{min-height:520px}}
@media(max-width:520px){.result-columns{grid-template-columns:1fr}.analysis-result{padding:20px 17px}.result-head{display:grid}.upload-document{padding:18px}.file-actions{grid-template-columns:1fr}}
