.received-letter-layout{display:grid;grid-template-columns:minmax(300px,390px) minmax(0,1fr);gap:24px;align-items:start}
.received-letter-upload{padding:28px;position:sticky;top:24px}
.received-letter-upload h2,.received-letter-heading h2{margin:0;font-size:22px}
.received-letter-upload .muted{margin-bottom:4px}
.received-letter-upload input[type=file]{padding:10px;background:#f8faf9}
.received-letter-heading{display:flex;justify-content:space-between;align-items:center;margin:4px 0 18px}
.received-letter-count{padding:7px 11px;border-radius:999px;background:#e4efe9;color:var(--green);font-size:12px;font-weight:800}
.received-date-group{overflow:hidden;margin-bottom:18px}
.received-date-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--line);background:linear-gradient(90deg,#f0f6f3,#fbfcfb)}
.received-date-head h3{margin:0;font-size:16px}
.received-date-head span{color:var(--muted);font-size:12px;font-weight:700}
.received-file-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px;border-bottom:1px solid #edf1ef}
.received-file-row:last-child{border-bottom:0}
.received-file-main{display:flex;align-items:center;gap:13px;min-width:0}
.received-file-icon{display:grid;place-items:center;min-width:48px;height:48px;border-radius:12px;background:#e7f2ed;color:var(--green);font-size:10px;font-weight:900;letter-spacing:.4px}
.received-file-copy{min-width:0}
.received-file-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.received-file-copy span{display:block;color:var(--muted);font-size:12px;margin-top:5px}
.received-file-actions{display:flex;align-items:center;gap:7px;flex:none}
.danger-link{color:var(--danger)}
@media(max-width:1000px){.received-letter-layout{grid-template-columns:1fr}.received-letter-upload{position:static}}
@media(max-width:620px){.received-file-row{align-items:flex-start;flex-direction:column}.received-file-actions{width:100%}.received-file-actions .secondary{flex:1}.received-date-head{align-items:flex-start;gap:6px;flex-direction:column}}
