*{box-sizing:border-box;margin:0;padding:0}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:#0d1117;color:#e6edf3;min-height:100vh}
.app{display:flex;min-height:100vh}
.sidebar{width:320px;background:#161b22;border-right:1px solid #30363d;padding:20px;display:flex;flex-direction:column;gap:12px}
.brand{font-size:22px;font-weight:700;display:flex;align-items:center;gap:10px}
.logo{background:#f97316;border-radius:10px;padding:6px 10px;font-size:18px}
.btn-primary{background:#f97316;border:none;color:#fff;font-weight:700;padding:12px;border-radius:10px;cursor:pointer;font-size:15px}
.btn-primary:hover{background:#ea6a0a}
.addr-input input,.addr-token-row input{width:100%;background:#0d1117;border:1px solid #30363d;color:#e6edf3;padding:10px;border-radius:8px;font-size:14px}
.inbox-head{display:flex;justify-content:space-between;color:#8b949e;font-size:13px;font-weight:600;margin-top:8px}
.link{background:none;border:none;color:#8b949e;cursor:pointer;font-size:13px}
.addr-list{display:flex;flex-direction:column;gap:6px;overflow-y:auto}
.addr-item{display:flex;justify-content:space-between;align-items:center;background:#0d1117;border:1px solid #30363d;border-radius:8px;padding:10px;cursor:pointer;font-size:14px}
.addr-item.active{border-color:#f97316}
.addr-item .count{background:#21262d;border-radius:12px;padding:2px 8px;font-size:12px}
.main{flex:1;padding:24px;max-width:900px}
.current-addr{display:flex;align-items:center;gap:10px;background:#3b1d0e;border:1px solid #f97316;border-radius:10px;padding:12px 16px;margin-bottom:16px;font-weight:600;overflow:hidden}
.current-addr .dot{width:8px;height:8px;border-radius:50%;background:#3fb950;flex-shrink:0}
#addrText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.btn-small{background:#f97316;border:none;color:#fff;border-radius:6px;padding:6px 12px;cursor:pointer;font-size:13px;flex-shrink:0}
h2{margin-bottom:10px}
.tabs{display:flex;gap:8px;margin-bottom:12px}
.tab{flex:1;background:#161b22;border:1px solid #30363d;color:#8b949e;padding:10px;border-radius:8px;cursor:pointer;font-size:14px}
.tab.active{color:#f97316;border-color:#f97316}
.search{width:100%;background:#161b22;border:1px solid #30363d;color:#e6edf3;padding:10px 14px;border-radius:8px;margin-bottom:12px;font-size:14px}
.msg-list{display:flex;flex-direction:column;gap:8px}
.msg{background:#161b22;border:1px solid #30363d;border-radius:10px;padding:14px;cursor:pointer}
.msg:hover{border-color:#f97316}
.msg .from{font-weight:600;font-size:14px}
.msg .subj{color:#c9d1d9;font-size:14px;margin-top:2px}
.msg .time{color:#8b949e;font-size:12px;margin-top:4px}
.otp-badge{display:inline-block;background:#1a2e1a;border:1px solid #3fb950;color:#3fb950;border-radius:6px;padding:2px 10px;font-weight:700;letter-spacing:2px;margin-left:8px;font-size:14px}
.empty{text-align:center;color:#8b949e;padding:60px 20px}
.msg-detail{background:#161b22;border:1px solid #30363d;border-radius:10px;padding:20px}
.msg-detail .meta{color:#8b949e;font-size:13px;margin-bottom:12px}
.msg-detail .meta b{color:#e6edf3}
.msg-detail pre{white-space:pre-wrap;word-wrap:break-word;font-family:inherit;font-size:14px;background:#0d1117;padding:14px;border-radius:8px;max-height:400px;overflow-y:auto}
.otp-box{background:#1a2e1a;border:1px solid #3fb950;border-radius:10px;padding:16px;margin-bottom:14px;text-align:center}
.otp-box .label{color:#3fb950;font-size:12px;font-weight:700;letter-spacing:1px}
.otp-box .code{font-size:34px;font-weight:800;letter-spacing:6px;margin:8px 0}
.otp-box button{background:#3fb950;border:none;color:#06270f;font-weight:700;border-radius:8px;padding:8px 20px;cursor:pointer}
.detail-actions{display:flex;gap:8px;margin-bottom:12px}
.detail-actions button{background:#21262d;border:1px solid #30363d;color:#e6edf3;border-radius:8px;padding:8px 14px;cursor:pointer;font-size:13px}
.detail-actions button.danger{color:#f85149;border-color:#f85149}
.hidden{display:none}
@media(max-width:768px){.app{flex-direction:column}.sidebar{width:100%}}
