.mail-icon{position:relative;flex:none;width:37px;height:34px;background:transparent;border:1px solid #807765;color:#e9dbbe;font:21px Georgia,'SPQR CJK',serif;line-height:1}
.mail-icon:hover{background:#3c3f35}
.mail-icon:focus-visible,.mailbox button:focus-visible,.mailbox input:focus-visible,.mailbox select:focus-visible{outline:2px solid #b64737;outline-offset:2px}
.mail-dot{position:absolute;right:-6px;top:-7px;min-width:17px;height:17px;padding:1px 3px;border-radius:10px;background:#ac342e;color:#fff;font:700 10px Arial,'SPQR CJK',sans-serif;line-height:15px}
.mail-backdrop{position:fixed;z-index:30;inset:0;background:#101510c4;display:grid;place-items:center;padding:18px}
.mailbox{width:min(970px,100%);max-height:min(820px,95vh);overflow:auto;background:#e8dcc0;color:#342a21;border:3px double #8b6949;box-shadow:0 15px 40px #000a}
.mail-head{display:flex;justify-content:space-between;align-items:center;padding:17px 21px 12px;border-bottom:2px solid #9d7551;background:linear-gradient(#eee2c8,#d7c5a5)}
.mail-head small{font:700 10px Arial,'SPQR CJK',sans-serif;letter-spacing:2px;color:#995440}.mail-head h2{margin:4px 0;font:24px Georgia,'SPQR CJK',serif}
.mail-head button{width:30px;height:30px;border:1px solid #9e8465;background:#ead7b5;color:#593629;font:22px Georgia,'SPQR CJK',serif}
.mail-tabs{display:flex;flex-wrap:wrap;gap:2px;padding:8px 12px;border-bottom:1px solid #bba784}
.mail-tabs button,.mail-controls button,.mail-actions button{padding:7px 9px;background:#f0e5cc;border:1px solid #ac9470;color:#483426;font:12px Arial,'Microsoft YaHei','SPQR CJK',sans-serif}
.mail-tabs button.active{background:#754233;color:#fff2dc}
.mail-controls{display:flex;align-items:end;flex-wrap:wrap;gap:9px;padding:10px 15px;border-bottom:1px solid #bba784}
.mail-controls label{display:grid;gap:3px;font:10px Arial,'Microsoft YaHei','SPQR CJK',sans-serif;color:#76573e}.mail-controls input,.mail-controls select{min-width:105px;padding:6px;border:1px solid #b6a17c;background:#fcf4e2;color:#3b3028}
.mail-controls input{min-width:190px}
.mail-columns{display:grid;grid-template-columns:minmax(220px,36%) minmax(0,1fr);min-height:320px;max-height:460px}
.mail-list{overflow:auto;border-right:1px solid #b6a17c;background:#ded0af}
.mail-row{display:grid;gap:5px;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #b8a582;background:transparent;color:#413229;text-align:left}
.mail-row:hover,.mail-row[aria-current=true]{background:#f6ead1}
.mail-row.unread{box-shadow:inset 4px 0 #a14334}.mail-row.critical{border-left:4px solid #a14334}
.mail-row strong{font:700 12px Georgia,'SPQR CJK',serif}.mail-row span{font:12px Georgia,'SPQR CJK',serif}.mail-row small{font:10px Arial,'SPQR CJK',sans-serif;color:#775e48}
.mail-letter{overflow:auto;padding:24px 29px;background:linear-gradient(135deg,#f8eed7,#eadbbc);font:14px/1.6 Georgia,'Noto Serif SC','SPQR CJK',serif}
.mail-letter h3{font:21px Georgia,'Noto Serif SC','SPQR CJK',serif;margin:14px 0 8px;color:#55392b}
.mail-letter p{max-width:65ch}.mail-letter .mail-from{border-bottom:1px solid #b8a17e;padding-bottom:9px;color:#79543a}
.mail-seal{float:right;border:2px double #a05240;border-radius:50%;width:72px;height:72px;display:grid;place-items:center;text-align:center;transform:rotate(-13deg);font:700 12px Georgia,'SPQR CJK',serif;color:#9a4938;opacity:.7}
.mail-portrait{float:left;width:54px;height:54px;margin:0 12px 8px 0;border:2px solid #ac9470;border-radius:50%;object-fit:cover}
.mail-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:24px}.mail-actions button:hover{background:#dfcda9}.mail-response{font-style:italic;color:#76513c}
.mail-actions label,.mail-actions small{flex-basis:100%;font:12px Arial,'Microsoft YaHei','SPQR CJK',sans-serif;color:#76513c}.mail-actions select{flex-basis:100%;max-width:100%;padding:7px;border:1px solid #ac9470;background:#fcf4e2;color:#483426}.mail-actions button:disabled{opacity:.5;cursor:not-allowed}
.mail-empty{padding:18px;color:#806c55;font:13px Georgia,'SPQR CJK',serif}
.mail-thread{border-top:1px solid #baa481;margin-top:18px;padding-top:10px}.mail-thread h4{font:700 11px Arial,'SPQR CJK',sans-serif;letter-spacing:1px;text-transform:uppercase;color:#76513c}.mail-thread p{font-size:12px;margin:6px 0}
.mail-settings{display:flex;flex-wrap:wrap;gap:12px;padding:9px 15px;border-top:1px solid #bba784;font:11px Arial,'Microsoft YaHei','SPQR CJK',sans-serif}
.mail-settings label{display:flex;align-items:center;gap:5px}.mail-settings select{max-width:170px;padding:5px;border:1px solid #ac9470;background:#fcf4e2;color:#483426}.mail-expired{color:#9a4938;font-weight:700}
@media(max-width:700px){body{min-width:0}.top{padding:0 7px;gap:7px}.mail-backdrop{padding:5px}.mailbox{max-height:98vh}.mail-head{padding:9px 11px}.mail-head h2{font-size:18px}.mail-tabs{max-height:80px;overflow:auto}.mail-columns{grid-template-columns:1fr;max-height:none}.mail-list{max-height:150px;border-right:0;border-bottom:1px solid #b6a17c}.mail-letter{min-height:250px;max-height:42vh;padding:14px}.mail-icon{width:32px;height:30px;font-size:18px}}
