:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;color:#21302b;background:#f6f8f7;font-size:14px;--green:#187254;--border:#e1e7e3;--muted:#75857c}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{border:1px solid #d6dfd8;background:#fff;color:#293d31;border-radius:6px;padding:7px 11px;cursor:pointer}button:hover{background:#eff5f1}button:disabled{opacity:.4;cursor:default}input,select{border:1px solid #d5ded7;border-radius:6px;padding:8px 10px;background:#fff;color:#253c2d}input:focus,select:focus{outline:2px solid #acd8c3;outline-offset:1px}button:focus-visible{outline:2px solid #187254;outline-offset:2px}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#11573f}.mark{display:inline-flex;align-items:center;justify-content:center;border-radius:7px;width:28px;height:28px;background:var(--green);color:#fff;font-size:16px;font-weight:700}.quiet{color:var(--muted);font-size:12px}header{height:55px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);background:#fff}.brand,.actions{display:flex;gap:10px;align-items:center}.brand strong{font-size:18px}.brand>span:last-child{color:var(--muted);font-size:13px}.actions{gap:7px}.toolbar{padding:10px 18px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--border);background:#fbfcfb}.toolbar input[type=search]{width:285px}.toolbar select{max-width:270px}.check{display:flex;align-items:center;white-space:nowrap;font-size:13px}.check input{accent-color:var(--green)}#stats{margin-left:auto}.workspace{display:grid;grid-template-columns:minmax(310px,38%) 1fr;height:calc(100vh - 110px)}aside{border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:0;background:#fff}.list-head{display:flex;justify-content:space-between;padding:12px 16px;font-size:13px;color:#68766f;border-bottom:1px solid var(--border)}.messages{flex:1;overflow:auto}.mail-row{border:0;border-radius:0;border-bottom:1px solid #edf1ee;padding:12px 16px;display:block;width:100%;text-align:left;background:white}.mail-row:hover{background:#f4f8f5}.mail-row.selected{background:#eaf4ee;box-shadow:inset 3px 0 var(--green)}.row-top,.row-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center}.subject{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:85%;font-size:14px}.unread .subject{font-weight:700}.unread .subject:before{content:"";display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%;margin:0 7px 2px 0}.row-time{white-space:nowrap;font-size:11px;color:var(--muted)}.sender{font-size:12px;color:#5b6e61;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:7px 0 5px}.preview{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#8a978e;font-size:12px}.recipient{font-size:11px;color:#568168;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin-top:6px}.empty{padding:50px 22px;text-align:center;color:#8a968f}.empty-icon{font-size:34px;color:#a5b6ab}.empty h2{font-size:16px;color:#617269;font-weight:500}.empty p{font-size:13px;line-height:1.7}main{background:#fff;overflow:auto;min-width:0}main>.empty{padding-top:18vh}.detail-head{padding:20px 24px 15px;border-bottom:1px solid var(--border)}.detail-head h2{margin:0 0 16px;font-size:20px;line-height:1.5;overflow-wrap:anywhere}.metadata{display:grid;grid-template-columns:54px 1fr;gap:8px;font-size:12px;line-height:1.5}.metadata .key{color:var(--muted)}.metadata .value{overflow-wrap:anywhere}.detail-actions{display:flex;gap:8px;margin-top:15px}.danger{color:#ae3e3e}.mail-body{padding:20px 24px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-family:inherit;font-size:14px;margin:0}.attachments{font-size:12px;color:#6a786f;margin:0 24px 15px;background:#f5f7f5;padding:10px;border-radius:5px}.safe-note{font-size:11px;color:#98a199;margin:0 24px 16px}footer{padding:8px 12px;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;font-size:12px}footer button{font-size:12px;padding:5px 9px}#notice{padding:9px 18px;background:#fff7db;color:#866a19;font-size:12px}.login{min-height:100vh;display:grid;place-items:center}.login form{width:330px;background:#fff;border:1px solid var(--border);padding:28px;border-radius:10px;display:flex;flex-direction:column;gap:12px}.login h1{font-size:23px;margin:4px 0 0}.login p{color:var(--muted);margin:0 0 6px;font-size:13px}.login label{font-size:12px;color:#5c6e61}.login small{color:#ad3d3d;min-height:16px}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#213d30;color:#fff;border-radius:6px;padding:11px 17px;font-size:13px;z-index:10;max-width:95vw;overflow-wrap:anywhere}[hidden]{display:none!important}@media(max-width:800px){header{padding:0 10px}.brand>span:last-child,.actions>.quiet{display:none}.toolbar{padding:8px 10px;flex-wrap:wrap;gap:7px}.toolbar input[type=search]{width:100%;flex:1;min-width:180px}#stats{width:100%;margin:0}.workspace{grid-template-columns:1fr;height:auto}aside{height:42vh;border-right:0;border-bottom:1px solid var(--border)}main{min-height:45vh}.detail-head,.mail-body{padding:16px}.actions button{padding:7px;font-size:12px}}
#app{height:100dvh;display:flex;flex-direction:column}header,.toolbar,#notice{flex-shrink:0}.workspace{height:auto;flex:1;min-height:0}@media(max-width:800px){#app{height:auto;min-height:100dvh}.workspace{flex:none;min-height:0}}
