:root{--app-bg:#f5f1f2}.mail-app{margin:0;background:var(--app-bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}.mail-shell{width:min(900px,calc(100% - 28px));margin:32px auto 60px}.mail-shell.narrow{width:min(520px,calc(100% - 28px))}.mail-brand{display:flex;align-items:center;gap:13px;margin-bottom:20px}.mail-brand img{width:58px;height:66px;object-fit:contain;background:#fff;border-radius:12px;padding:4px;box-shadow:0 6px 22px rgba(0,0,0,.08)}.mail-brand b,.mail-brand span{display:block}.mail-brand b{font-size:1.08rem;color:var(--wine)}.mail-brand span{font-size:.84rem;color:var(--muted)}.mail-panel{background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px;box-shadow:0 12px 40px rgba(62,12,25,.07);margin-bottom:20px}.mail-panel h1{font-size:clamp(1.8rem,5vw,2.6rem);color:var(--wine);margin:0 0 10px}.mail-panel h2{color:var(--wine);margin:24px 0 10px}.mail-panel p{color:var(--muted)}.mail-form{display:grid;gap:17px;margin-top:22px}.mail-form label{display:grid;gap:7px;font-weight:800;font-size:.9rem}.mail-form input,.mail-form select{width:100%;box-sizing:border-box;border:1px solid #cbd0d8;border-radius:11px;padding:12px 13px;font:inherit;background:#fff}.mail-form input:focus{outline:3px solid #f6cdd1;border-color:var(--red)}.mail-form small,.muted{font-weight:400;color:var(--muted);line-height:1.45}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:15px}.alert{padding:14px 16px;border-radius:12px;margin:12px 0}.alert.error{background:#fff0f0;border:1px solid #e7abab;color:#8c121c}.alert.success{background:#edf9f0;border:1px solid #b9dfc2;color:#176a32}.progress{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:0 0 14px}.progress span{background:#e6dde0;color:#7a6d71;padding:9px;border-radius:9px;text-align:center;font-size:.75rem;font-weight:800}.progress span.on{background:var(--wine);color:#fff}.privacy-note,.password-help{display:block;margin-top:18px;background:#f7f4f5;border-radius:12px;padding:13px;color:var(--muted);font-size:.84rem}.otp-input{font-size:1.8rem!important;letter-spacing:.35em;text-align:center;font-weight:900}.totp-box{display:grid;gap:12px;background:#f7f4f5;border:1px solid var(--line);border-radius:15px;padding:18px;margin:18px 0}.totp-box code{display:block;word-break:break-all;font-size:1.1rem;background:#fff;padding:12px;border-radius:9px}.mail-success-icon{width:70px;height:70px;border-radius:50%;background:#daf2df;color:#167438;display:grid;place-items:center;font-size:2rem;font-weight:900;margin:22px auto}.text-button{border:0;background:none;color:var(--red);font:inherit;font-weight:800;cursor:pointer;padding:0}.btn-outline-dark{border:1px solid var(--wine);color:var(--wine);background:#fff}.mail-footer{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;color:var(--muted);font-size:.84rem}.mail-footer a{color:var(--wine);font-weight:700}.admin-head{background:var(--wine);color:#fff;padding:16px max(20px,calc((100% - 1200px)/2));display:flex;justify-content:space-between;gap:20px;align-items:center}.admin-head b,.admin-head span{display:block}.admin-head span{font-size:.78rem;color:rgba(255,255,255,.7)}.admin-head nav{display:flex;gap:15px;flex-wrap:wrap}.admin-head a{color:#fff;font-size:.84rem}.admin-shell{width:min(1200px,calc(100% - 28px));margin:28px auto 60px}.admin-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:20px}.mail-panel.wide{padding:24px}.panel-title{display:flex;justify-content:space-between;align-items:center}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:.86rem}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line);white-space:nowrap}th{color:var(--wine);background:#faf7f8}.status-pill{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:.72rem;font-weight:900;background:#eee}.status-pill.active,.status-pill.ok{background:#dff3e4;color:#176a32}.status-pill.authorized{background:#e6eefb;color:#204c91}.status-pill.disabled,.status-pill.warn{background:#fff0d8;color:#875c08}.audit-list{display:grid;gap:7px}.audit-list>div{display:grid;grid-template-columns:190px 1fr 110px;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);font-size:.82rem}.audit-list small{color:var(--muted)}@media(max-width:760px){.mail-panel{padding:22px}.form-two,.admin-grid{grid-template-columns:1fr}.progress{grid-template-columns:1fr 1fr}.admin-head{align-items:flex-start;flex-direction:column}.audit-list>div{grid-template-columns:1fr}.otp-input{letter-spacing:.2em}}
