:root{--bg:#f6f7f9;--panel:#fff;--border:#e5e7eb;--muted:#6b7280;--accent:#f59e0b;--text:#111827}@media (prefers-color-scheme:dark){:root{--bg:#0b0f14;--panel:#131a22;--border:#232c37;--muted:#93a1b2;--accent:#f59e0b;--text:#e7edf3}}*{box-sizing:border-box}html,body,#mailbox-app{height:100%;margin:0}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;font-family:Instrument Sans,system-ui,-apple-system,sans-serif}a{color:inherit}.app{flex-direction:column;max-width:720px;height:100%;margin:0 auto;display:flex}.topbar{border-bottom:1px solid var(--border);background:var(--panel);z-index:5;justify-content:space-between;align-items:center;padding:14px 18px;display:flex;position:sticky;top:0}.topbar h1{margin:0;font-size:18px}.list{flex:1;overflow-y:auto}.row{border-bottom:1px solid var(--border);cursor:pointer;padding:14px 18px;text-decoration:none;display:block}.row:hover{background:#7f7f7f0f}.row .from{justify-content:space-between;font-weight:600;display:flex}.row.unread:before{content:""}.dot{background:var(--accent);border-radius:50%;width:8px;height:8px;margin-right:8px;display:inline-block}.subject{margin:2px 0}.snippet{color:var(--muted);font-size:14px}.time{color:var(--muted);font-size:12px;font-weight:400}.btn{background:var(--accent);color:#111;cursor:pointer;border:none;border-radius:10px;padding:10px 16px;font-size:15px;font-weight:600}.btn.ghost{color:var(--muted);background:0 0}.fab{border-radius:50%;width:56px;height:56px;font-size:26px;position:fixed;bottom:22px;right:22px;box-shadow:0 6px 20px #0003}.form{flex-direction:column;gap:12px;padding:18px;display:flex}.form input,.form textarea{border:1px solid var(--border);background:var(--panel);width:100%;color:var(--text);font:inherit;border-radius:10px;padding:12px}.reader{padding:18px;overflow-y:auto}.reader .meta{color:var(--muted);margin-bottom:12px;font-size:13px}.reader .body{line-height:1.6}.center{justify-content:center;align-items:center;height:100%;display:flex}.card{background:var(--panel);border:1px solid var(--border);border-radius:16px;width:320px;padding:28px}.error{color:#ef4444;font-size:14px}.empty{text-align:center;color:var(--muted);padding:60px 20px}
