*{box-sizing:border-box}html{height:100%;scroll-behavior:smooth}body{margin:0;min-height:100%;color:#1e293b;background:#f5f7fa;font-family:'Microsoft YaHei',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.56}a{color:inherit}svg{display:block}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}[hidden]{display:none!important}.layout{display:flex;min-height:100vh}.sidebar{width:246px;flex:0 0 246px;min-height:100vh;position:sticky;top:0;align-self:flex-start;display:flex;flex-direction:column;padding:28px 17px 22px;color:#fff;background:linear-gradient(180deg,#60a5fa 0%,#3b82f6 55%,#3275e3 100%);box-shadow:6px 0 30px rgba(43,110,221,.08);z-index:2}.brand{display:flex;align-items:center;gap:12px;padding:0 10px 37px}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:rgba(255,255,255,.21);border:1px solid rgba(255,255,255,.32);box-shadow:0 8px 18px rgba(34,104,212,.18)}.brand-mark svg{width:25px;height:25px}.brand strong{display:block;font-size:21px;line-height:1.1;font-weight:800;letter-spacing:.055em}.brand span{display:block;margin-top:5px;color:#e6f0ff;font-size:11px;letter-spacing:.09em}.side-label{padding:0 13px;margin:0 0 11px;color:#e6efff;opacity:.85;font-size:11px;letter-spacing:.12em}.navigation{display:grid;gap:5px}.nav-item{min-height:46px;display:flex;align-items:center;gap:13px;width:100%;padding:10px 13px;color:rgba(255,255,255,.93);border:1px solid transparent;border-radius:10px;background:transparent;text-align:left;font-size:14px;font-weight:600;transition:background .16s ease,transform .16s ease}.nav-item:hover{background:rgba(255,255,255,.14)}.nav-item.active{background:#fff;color:#3380ec;box-shadow:0 8px 18px rgba(23,97,202,.16)}.nav-item:active{transform:translateY(1px)}.nav-item svg,.side-lock svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.nav-count{margin-left:auto;font-size:11px;border-radius:7px;padding:2px 6px;background:rgba(255,255,255,.18)}.nav-item.active .nav-count{background:#eff6ff}.side-bottom{margin-top:auto}.privacy-box{display:flex;gap:10px;align-items:flex-start;padding:15px 11px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.10);border-radius:12px}.privacy-dot,.secure-dot,.pill-dot{flex:none;width:8px;height:8px;margin-top:5px;border-radius:50%;background:#bbf7d0;box-shadow:0 0 0 4px rgba(187,247,208,.16)}.privacy-box strong{display:block;font-size:12px;line-height:1.4}.privacy-box small{display:block;margin-top:5px;color:#e8f2ff;font-size:10px;line-height:1.5}.side-lock{display:flex;gap:10px;align-items:center;width:100%;margin-top:12px;padding:10px 13px;border:0;border-radius:9px;color:#fff;background:rgba(10,68,175,.21);text-align:left;font-size:12px;font-weight:600}.side-lock:hover{background:rgba(10,68,175,.34)}.side-lock svg{width:15px;height:15px}.side-foot{margin:21px 4px 0;color:#d9ebff;text-align:center;font-size:10px;letter-spacing:.06em}.main{min-width:0;flex:1;min-height:100vh}.topbar{height:67px;padding:0 clamp(20px,3vw,45px);display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fff;border-bottom:1px solid #e9edf3}.breadcrumbs{display:flex;gap:12px;align-items:center;color:#8b97a8;font-size:13px}.breadcrumbs strong{color:#263650;font-weight:650}.slash{color:#c8d1dd}.top-actions{display:flex;align-items:center;gap:13px}.secure-tag{display:inline-flex;align-items:center;gap:9px;padding:7px 11px;border-radius:30px;background:#f0fdf5;color:#16865a;font-size:11px;font-weight:700}.secure-dot{width:6px;height:6px;margin:0;background:#22c55e;box-shadow:0 0 0 3px #c9f6da}.page-panel{max-width:1610px;padding:37px clamp(20px,3vw,45px) 42px;margin:0 auto}.eyebrow,.section-kicker{display:block;color:#5394f4;font-size:11px;font-weight:800;letter-spacing:.14em}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.page-heading h1{font-size:29px;line-height:1.25;margin:9px 0 7px;color:#1b2b43;letter-spacing:-.025em}.page-heading p{font-size:13px;color:#8190a5;margin:0;line-height:1.7}.primary,.ghost,.danger{min-height:38px;padding:9px 16px;border-radius:9px;font-weight:650;font-size:12px;white-space:nowrap;transition:box-shadow .15s ease,background .15s ease,transform .15s ease}.primary{border:1px solid #3984ef;background:linear-gradient(115deg,#60a5fa,#3b82f6);color:#fff;box-shadow:0 6px 13px rgba(59,130,246,.17)}.primary:hover:not(:disabled){background:linear-gradient(115deg,#4a95f5,#2877ec);box-shadow:0 7px 18px rgba(59,130,246,.25)}.ghost{border:1px solid #dfe7f1;background:#fff;color:#536780}.ghost:hover:not(:disabled){border-color:#9dc4f7;color:#2b76e6;background:#f7fbff}.danger{border:1px solid #fecaca;background:#fff5f5;color:#d24747}.danger:hover{background:#fee9e9}.primary:active,.ghost:active,.danger:active{transform:translateY(1px)}.primary.wide{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:22px;padding:13px 16px;font-size:14px}.plus{display:inline-block;font-size:20px;line-height:0;vertical-align:-2px;margin-right:6px;font-weight:400}.small{padding:7px 12px;min-height:32px;font-size:11px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:22px}.stat-card{position:relative;min-height:149px;padding:23px 21px 18px;border:1px solid #e8edf4;border-radius:14px;background:#fff;box-shadow:0 4px 22px rgba(25,67,128,.035)}.stat-card small{display:block;color:#8492a6;font-size:12px}.stat-card strong{display:block;margin:11px 0 2px;color:#21395b;font-size:26px;line-height:1.1;letter-spacing:-.02em}.stat-card span{color:#9ba6b6;font-size:11px}.stat-icon{position:absolute;right:21px;top:20px;width:37px;height:37px;border-radius:10px;display:grid;place-items:center;font-size:19px;font-weight:600}.stat-icon.blue{background:#eaf3ff;color:#3b82f6}.stat-icon.violet{background:#f0eeff;color:#8774e5}.stat-icon.green{background:#e5faf0;color:#21a875}.surface{background:#fff;border:1px solid #e8edf4;border-radius:14px;box-shadow:0 4px 22px rgba(25,67,128,.035)}.surface-head{min-height:86px;padding:22px 24px 18px;display:flex;align-items:center;justify-content:space-between;gap:15px}.surface-head h2,.mail-toolbar h2{font-size:16px;line-height:1.4;margin:0 0 5px;font-weight:750}.surface-head p,.mail-toolbar p{color:#98a5b5;font-size:11px;margin:0}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{padding:14px 18px;color:#91a0b1;font-weight:600;font-size:11px;background:#f9fbfd;border-top:1px solid #f0f2f6;border-bottom:1px solid #edf0f4;white-space:nowrap}td{padding:15px 18px;border-bottom:1px solid #f0f2f6;vertical-align:middle;color:#52637b}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcff}.index-col{width:58px;padding-left:24px}.addr-cell{display:flex;align-items:center;gap:11px;min-width:225px}.avatar{width:35px;height:35px;display:grid;place-items:center;flex:none;border-radius:10px;background:#eaf3ff;color:#3c84e9;font-size:15px;font-weight:800}.addr-cell strong{display:block;color:#263b56;font-size:12px;font-weight:650;overflow-wrap:anywhere}.addr-cell small{display:block;color:#a0abba;font-size:10px;margin-top:3px}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:30px;padding:5px 9px;font-size:10px;font-weight:650;background:#eff6ff;color:#4788e3}.badge.gray{color:#6e7b8d;background:#f2f4f7}.badge.amber{color:#a9680c;background:#fffae7}.badge.green{color:#16855c;background:#eafaf0}.dot{width:6px;height:6px;border-radius:50%;background:currentColor}.row-actions{display:flex;gap:7px;flex-wrap:wrap}.row-button{padding:7px 10px;border:1px solid #dae6f5;border-radius:7px;color:#397bd8;background:#f5f9ff;font-size:11px;white-space:nowrap}.row-button:hover{background:#e8f2ff}.row-button.remove{border-color:transparent;background:transparent;color:#96a3b4}.row-button.remove:hover{color:#ca5656;background:#fff4f4}.surface-foot{display:flex;justify-content:space-between;gap:12px;padding:16px 24px;border-top:1px solid #f0f3f7;color:#a1adbd;font-size:10px}.empty{padding:65px 20px 75px;display:flex;flex-direction:column;align-items:center;text-align:center;color:#9ba8b7}.empty-icon{width:59px;height:59px;display:grid;place-items:center;border-radius:17px;background:#eaf3ff;color:#5a9bf2;font-size:29px;font-weight:300;margin-bottom:15px}.empty strong,.preview-placeholder strong{color:#43546e;font-size:14px}.empty span,.preview-placeholder span{font-size:11px;line-height:1.65;margin-top:7px;max-width:400px}.text-button{border:0;background:none;color:#3984ef;font-size:12px;font-weight:650;padding:10px 0}.text-button:hover{text-decoration:underline}.empty .text-button{margin-top:13px}.app-foot{display:flex;justify-content:space-between;gap:12px;color:#a7b1bf;font-size:10px;padding:12px clamp(20px,3vw,45px) 30px;max-width:1610px;margin:0 auto}.gate-wrap{min-height:100vh;display:grid;grid-template-columns:minmax(300px,1fr) minmax(310px,470px);align-items:center;gap:clamp(22px,5vw,105px);padding:48px clamp(25px,7vw,120px);max-width:1600px;margin:auto}.gate-intro{position:relative;min-height:580px;padding-top:85px;overflow:hidden}.pill.light{display:inline-flex;align-items:center;gap:10px;border:1px solid #dceafb;border-radius:30px;color:#4e90e6;background:#eaf4ff;padding:8px 12px;font-size:10px;font-weight:800;letter-spacing:.12em}.pill-dot{background:#5b9bf4;box-shadow:0 0 0 4px #d4e9ff;margin:0;width:6px;height:6px}.gate-intro h1{font-size:clamp(34px,4.2vw,58px);letter-spacing:-.055em;line-height:1.22;margin:23px 0;color:#1d3555}.gate-intro p{max-width:500px;color:#778ca6;font-size:14px;line-height:2}.gate-points{display:flex;gap:8px;flex-wrap:wrap;margin-top:28px}.gate-points span{border:1px solid #e0ebf8;background:#fff;color:#6282a8;border-radius:9px;padding:9px 10px;font-size:10px}.gate-illustration{height:216px;max-width:520px;position:relative;margin-top:29px}.illus-orbit{position:absolute;left:48px;bottom:-96px;width:360px;height:360px;border:1px solid #dfedfc;border-radius:50%;box-shadow:0 0 0 26px rgba(230,242,255,.54),0 0 0 54px rgba(230,242,255,.33)}.illus-envelope{position:absolute;left:177px;top:62px;width:83px;height:83px;border-radius:22px;display:grid;place-items:center;color:#fff;font-size:45px;background:linear-gradient(145deg,#71b6ff,#3985f3);box-shadow:0 18px 45px rgba(55,133,242,.22);transform:rotate(-7deg)}.illus-card{position:absolute;width:145px;height:71px;background:#fff;border:1px solid #e2ebf7;border-radius:12px;box-shadow:0 12px 28px rgba(75,124,185,.10);padding:15px}.illus-card.one{top:35px;left:12px;transform:rotate(-7deg)}.illus-card.two{top:106px;left:313px;transform:rotate(8deg)}.illus-card span,.illus-card b,.illus-card i{display:block;height:6px;border-radius:5px;background:#d8eaff;margin-bottom:7px}.illus-card span{width:28px;background:#8abbff}.illus-card b{width:90px}.illus-card i{width:65px}.gate-card{align-self:center;background:#fff;border:1px solid #e6edf5;border-radius:21px;padding:33px clamp(24px,3.1vw,39px) 25px;box-shadow:0 22px 60px rgba(39,89,150,.09)}.gate-card-head{display:flex;align-items:center;gap:8px;color:#93a4b6;font-size:10px;font-weight:700;letter-spacing:.11em;margin-bottom:42px}.card-symbol{width:23px;height:23px;display:grid;place-items:center;border-radius:7px;background:#e7f2ff;color:#4f9cf5;font-size:14px}.gate-card h2{color:#253c58;font-size:25px;letter-spacing:-.025em;margin:9px 0 7px}.muted{color:#8b9aad;font-size:12px;line-height:1.85;margin:0 0 24px}.gate-card label,.modal label{display:block;margin:18px 0 8px;color:#4c607a;font-size:11px;font-weight:700}.gate-card input:not([type=file]),.modal textarea{width:100%;border:1px solid #dde7f2;border-radius:9px;background:#fafcff;color:#243853;outline:none;padding:11px 13px;font-size:12px;transition:border-color .15s}.gate-card input:not([type=file]):focus,.modal textarea:focus{border-color:#67a6f7;box-shadow:0 0 0 3px #e9f3ff}.gate-card .text-button{margin-top:17px}.gate-note{margin-top:27px;border-top:1px solid #f0f2f5;padding-top:17px;color:#9daabd;font-size:10px;line-height:1.65}.gate-note.error{color:#d45a5a}.file-input{width:100%;border:1px dashed #bdd4f4;border-radius:8px;background:#f7faff;padding:11px;color:#536b89;font-size:11px}.mail-layout{display:grid;grid-template-columns:219px minmax(0,1fr);gap:16px;align-items:start}.mail-accounts{padding:18px 10px}.mail-aside-title{display:flex;justify-content:space-between;color:#475a76;font-size:12px;font-weight:800;padding:3px 10px 13px}.mail-aside-title span{background:#eef5fe;color:#598fe0;border-radius:6px;padding:2px 6px;font-size:10px}.account-choice{display:block;width:100%;padding:12px 10px;border:1px solid transparent;background:#fff;border-radius:9px;text-align:left;color:#46607d;font-size:11px;overflow-wrap:anywhere}.account-choice:hover{background:#f5f9ff}.account-choice.active{border-color:#dceafe;background:#eff6ff;color:#367de7}.account-choice strong{display:block;font-size:11px}.account-choice span{display:block;margin-top:5px;font-size:10px;color:#96a7ba}.mail-aside-help{border-top:1px solid #f1f4f8;margin:16px 8px 0;padding-top:13px;font-size:10px;color:#a1afbf;line-height:1.7}.mail-surface{min-width:0;overflow:hidden}.mail-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 21px;border-bottom:1px solid #edf1f6}.searchbox{display:flex;align-items:center;gap:7px;width:210px;padding:8px 10px;border:1px solid #e5ecf5;border-radius:8px;color:#a0adc0}.searchbox svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}.searchbox input{border:0;outline:0;min-width:0;width:100%;background:transparent;color:#435570;font-size:11px}.searchbox:focus-within{border-color:#8abaf8}.mail-notice{padding:11px 19px;background:#fff9ea;border-bottom:1px solid #f9e6b7;color:#956911;font-size:11px}.mail-columns{display:grid;grid-template-columns:minmax(235px,40%) minmax(0,60%);min-height:490px;max-height:calc(100vh - 340px);height:600px}.mail-list{overflow:auto;border-right:1px solid #edf1f6}.mail-row{display:block;width:100%;padding:17px 17px 15px;border:0;border-bottom:1px solid #f0f3f8;background:#fff;color:#3b4f68;text-align:left;transition:background .15s}.mail-row:hover{background:#f8fbff}.mail-row.active{background:#edf6ff;box-shadow:inset 3px 0 #4d96ef}.mail-row.unread .mail-sender,.mail-row.unread .mail-subject{font-weight:800;color:#253c5b}.mail-row-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.mail-sender,.mail-subject{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-sender{font-size:12px;font-weight:650;max-width:65%}.mail-time{color:#9facbe;font-size:10px;white-space:nowrap}.mail-subject{display:block;font-size:11px;margin:8px 0 8px}.mail-row-foot{display:flex;align-items:center;justify-content:space-between;gap:6px}.folder-pill{font-size:10px;color:#5193eb;background:#eaf4ff;padding:4px 7px;border-radius:5px}.folder-pill.junk{color:#ad6a17;background:#fff4de}.mail-dot{display:block;width:6px;height:6px;border-radius:50%;background:#599ced}.mail-preview{min-width:0;overflow:auto;background:#fff}.preview-placeholder,.list-placeholder{min-height:350px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#a3afbe;text-align:center;padding:22px}.list-placeholder{min-height:250px;font-size:12px}.preview-card{padding:28px clamp(17px,3vw,32px)}.preview-kicker{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:16px}.preview-card h2{margin:0 0 19px;font-size:19px;line-height:1.55;overflow-wrap:anywhere;color:#233650}.preview-meta{border-top:1px solid #edf0f5;border-bottom:1px solid #edf0f5;padding:13px 0;display:grid;gap:7px}.preview-meta div{font-size:11px;color:#61748c;overflow-wrap:anywhere}.preview-meta span{display:inline-block;width:45px;color:#a0acba}.preview-body{margin:21px 0;color:#46566d;font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.preview-attachments{padding:12px;border-radius:8px;background:#f7faff;border:1px solid #edf2f9;color:#60728b;font-size:11px;overflow-wrap:anywhere}.preview-security{margin-top:25px;border-top:1px solid #f0f3f6;padding-top:13px;color:#a0adbd;font-size:10px;line-height:1.6}.mail-footer{border-top:1px solid #eef1f5;padding:11px 18px;display:flex;align-items:center;justify-content:space-between;color:#9aaabc;font-size:10px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.settings-card{padding:26px;min-height:235px}.settings-icon{width:38px;height:38px;border-radius:10px;background:#eaf3ff;color:#4086e9;display:grid;place-items:center;font-size:24px}.settings-card h2{font-size:16px;margin:17px 0 8px}.settings-card p{color:#8494a8;font-size:12px;line-height:1.85;max-width:455px;margin:0 0 17px}.settings-hint{font-size:11px;color:#af7b22;padding:10px 11px;background:#fff9e9;border-radius:7px}.danger-card .settings-icon{color:#d96b6b;background:#fff1f1}.modal-backdrop{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(20,42,75,.44);backdrop-filter:blur(3px)}.modal{width:min(520px,100%);max-height:min(90vh,760px);overflow:auto;background:#fff;border-radius:17px;padding:26px 29px;box-shadow:0 35px 95px rgba(19,48,92,.22)}.modal-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:23px}.modal-symbol{width:39px;height:39px;display:grid;place-items:center;border-radius:11px;background:#eaf3ff;color:#5195f4;font-size:27px}.modal-close{border:0;background:#f5f7fa;color:#9da9ba;font-size:20px;line-height:1;width:28px;height:28px;border-radius:6px}.modal h2{font-size:22px;margin:8px 0 9px}.modal p{margin:0;color:#8394a8;font-size:12px;line-height:1.8}.modal code{font:11px/1.6 Consolas,monospace;color:#326dc1;background:#f1f6ff;padding:2px 4px;border-radius:3px;overflow-wrap:anywhere}.modal textarea{resize:vertical;min-height:135px;line-height:1.6}.import-hint{display:flex;gap:9px;padding:12px;background:#f5f9ff;border:1px solid #e6efff;border-radius:9px;margin:13px 0 0;font-size:11px;line-height:1.65;color:#7187a3}.import-hint strong{white-space:nowrap;color:#4387e9}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:23px}.toast{position:fixed;right:26px;bottom:25px;z-index:30;max-width:min(420px,calc(100vw - 30px));padding:13px 16px;border:1px solid #bbdfc9;border-radius:10px;background:#f1fff6;color:#218355;font-size:12px;line-height:1.6;box-shadow:0 12px 30px rgba(25,53,90,.13)}.toast.error{border-color:#f7d5d5;background:#fff6f6;color:#bf4f4f}.toast.info{border-color:#cfe3fa;background:#f7fbff;color:#4675a9}
@media(max-width:1180px){.gate-wrap{padding:42px 35px;gap:25px}.gate-intro{padding-top:60px}.mail-layout{grid-template-columns:174px minmax(0,1fr)}.mail-columns{grid-template-columns:minmax(210px,42%) minmax(0,58%)}}
@media(max-width:920px){.sidebar{width:72px;flex-basis:72px;padding:20px 9px}.brand{padding:0 6px 22px}.brand>div:last-child,.side-label,.nav-item:not(.active) .nav-count,.nav-item .nav-count,.privacy-box,.side-foot,.side-lock{font-size:0}.brand-mark{width:40px;height:40px}.nav-item{justify-content:center;padding:10px}.nav-item svg{width:22px;height:22px}.nav-item{font-size:0}.side-lock{display:flex;justify-content:center}.side-lock svg{width:19px;height:19px}.gate-wrap{grid-template-columns:1fr;max-width:550px;min-height:calc(100vh - 20px);padding:38px 20px}.gate-intro{min-height:0;padding:5px 0 0}.gate-intro h1{font-size:37px}.gate-intro p{font-size:12px}.gate-illustration{display:none}.gate-card{padding:28px}.mail-layout{grid-template-columns:1fr}.mail-accounts{position:static;display:block}.mail-accounts #mailAccounts{display:flex;gap:7px;overflow:auto}.account-choice{min-width:155px}}
@media(max-width:640px){.sidebar{width:100%;min-height:56px;flex:0 0 auto;position:fixed;top:auto;bottom:0;left:0;right:0;align-self:auto;flex-direction:row;justify-content:center;align-items:center;padding:6px 10px;background:#438aef;box-shadow:0 -4px 20px rgba(35,93,183,.1)}.brand,.side-label,.side-bottom{display:none!important}.navigation{display:flex;justify-content:space-around;width:100%;gap:0}.nav-item{width:32%;min-height:42px}.nav-item svg{width:20px;height:20px}.main{padding-bottom:65px}.topbar{height:58px;padding:0 16px}.secure-tag{font-size:0;padding:7px}.secure-dot{margin:0}.page-panel{padding:27px 14px 20px}.page-heading{align-items:flex-start;gap:13px}.page-heading h1{font-size:23px}.page-heading p{font-size:11px}.page-heading .primary{font-size:11px;padding:8px 10px}.stats{gap:8px}.stat-card{min-height:124px;padding:15px 10px}.stat-card small,.stat-card span{font-size:9px}.stat-card strong{font-size:21px;margin:14px 0 1px}.stat-icon{right:9px;top:9px;width:24px;height:24px;font-size:15px}.surface-head{padding:17px 14px;min-height:70px}.surface-head h2{font-size:14px}.surface-head .ghost{font-size:10px;padding:7px}.surface-foot{padding:13px}.mail-toolbar{flex-direction:column;align-items:stretch;padding:14px}.searchbox{width:100%}.mail-columns{grid-template-columns:1fr;height:auto;max-height:none}.mail-list{max-height:330px;border-right:0;border-bottom:1px solid #edf1f6}.mail-preview{min-height:250px;max-height:55vh}.mail-aside-help{display:none}.mail-accounts{padding:11px}.mail-aside-title{padding:5px}.settings-grid{grid-template-columns:1fr}.gate-wrap{padding:40px 18px}.gate-intro h1{font-size:34px}.gate-intro{margin-top:12px}.gate-card{padding:25px}.app-foot{flex-direction:column;padding:12px 16px 22px}.modal{padding:22px 18px}.modal-actions{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
/* Password-free device vault: always enter the mailbox; preserve legacy data. */
.migration-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:14px;padding:15px 18px;margin:12px 0 18px;color:#1e3a5f}
.migration-banner[hidden],.modal-backdrop[hidden]{display:none!important}
.migration-banner div{display:flex;flex-direction:column;gap:5px}
.migration-banner strong{font-size:14px}
.migration-banner span{font-size:12px;line-height:1.6}
.migration-banner button{flex:none}
.danger-banner{background:#fff1f2;border-color:#fecdd3;color:#881337}
.heading-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.migration-input{width:100%;min-height:44px;border:1px solid #d7e1ed;border-radius:9px;padding:10px 12px;margin:7px 0 13px;font:inherit;color:#152941;background:#fff;box-sizing:border-box}
.migration-input:focus{outline:2px solid #2c67d9;outline-offset:1px}
@media(max-width:760px){.migration-banner{align-items:stretch;flex-direction:column}.migration-banner button{align-self:flex-start}}
/* Read-only, user-triggered inbox checks. Statuses remain in the encrypted vault. */
.badge.red{background:#fff1f1;color:#c54848}
.check-time{display:block;margin-top:5px;color:#98a5b5;font-size:10px;white-space:nowrap}
.page-heading p.check-progress{color:#6b7f9a;font-size:11px;margin-top:9px;line-height:1.55}
@media(max-width:640px){#panelAccounts .page-heading{flex-wrap:wrap}#panelAccounts .heading-actions{width:100%;justify-content:flex-start}}

/* Large local vaults: bounded account rendering and batch-import controls. */
.account-filter{display:flex;align-items:center;gap:12px;padding:0 20px 14px;color:#7589a1;font-size:12px}
.account-filter label{white-space:nowrap;font-weight:650}
.account-filter input,.mail-account-search input,.import-options select{min-width:0;border:1px solid #dbe5f0;border-radius:8px;background:#fff;color:#30445d;font:inherit;outline:none}
.account-filter input{width:min(340px,100%);padding:9px 11px}
.account-filter input:focus,.mail-account-search input:focus,.import-options select:focus{border-color:#70aaf3;box-shadow:0 0 0 3px #eaf3ff}
.account-pagination,.mail-account-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:12px 18px;color:#8494a8;font-size:11px}
.account-pagination[hidden],.mail-account-pagination[hidden],.account-no-match[hidden],.import-summary[hidden]{display:none!important}
.account-no-match{padding:20px;color:#98a7b9;text-align:center;font-size:12px}
.mail-account-search{display:block;padding:2px 8px 9px}
.mail-account-search input{width:100%;box-sizing:border-box;padding:8px 10px;font-size:11px}
.mail-account-pagination{justify-content:center;padding:9px 4px;gap:7px}
.mail-account-pagination .ghost{padding:3px 9px;font-size:15px;line-height:1}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.import-modal{width:min(640px,100%)}
.import-file{display:block;width:100%;margin:7px 0 14px;color:#657a92;font-size:11px}
.import-file::file-selector-button{margin-right:10px;padding:7px 11px;border:1px solid #dce7f4;border-radius:7px;background:#f5f9ff;color:#3976bc;font:inherit;cursor:pointer}
.import-options{display:flex;align-items:center;gap:12px;margin-top:14px;color:#62778e;font-size:12px}
.import-options label{white-space:nowrap}.import-options select{flex:1;padding:9px 10px}
.import-summary{margin-top:13px;padding:12px;border:1px solid #d9e9f8;border-radius:9px;background:#f6faff;color:#526c87;font-size:11px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:640px){.account-filter{padding:0 14px 12px}.account-pagination{padding:10px 14px}.import-options{align-items:stretch;flex-direction:column;gap:6px}.import-modal .modal-actions{gap:7px}}

@media(max-width:640px){
  .import-modal .modal-actions{position:sticky;bottom:-18px;z-index:1;margin:12px -18px -18px;padding:12px 18px 16px;background:#fff;box-shadow:0 -8px 18px rgba(34,70,110,.06)}
}

/* Local four-field export: cross-page selection and explicit missing-password policy. */
.export-selection{display:flex;align-items:center;flex-wrap:wrap;gap:7px 14px;padding:0 20px 14px;color:#8292a5;font-size:11px}
.export-selection #selectionCount{color:#416b9d;font-weight:700}
.export-selection .text-button{padding:3px 0;font-size:11px}
.select-col{width:38px;padding-left:20px;padding-right:5px}
.select-col input,.account-checkbox{width:16px;height:16px;accent-color:#3b82f6;vertical-align:middle;cursor:pointer}
#accountRows .select-col{border-right:0}
.password-status{color:#9baabd!important}
.password-status.missing{color:#b88430!important}
.password-update-hint{margin-top:11px!important;color:#9a6b1b!important;font-size:11px!important}
.export-modal{width:min(580px,100%)}
.export-options{display:flex;align-items:center;gap:12px;margin-top:15px;color:#62778e;font-size:12px}
.export-options label{white-space:nowrap}
.export-options select{flex:1;min-width:0;border:1px solid #dbe5f0;border-radius:8px;background:#fff;color:#30445d;font:inherit;padding:9px 10px;outline:none}
.export-options select:focus{border-color:#70aaf3;box-shadow:0 0 0 3px #eaf3ff}
.export-warning{display:flex;gap:9px;padding:12px;background:#fff8ed;border:1px solid #f5dfb9;border-radius:9px;margin:13px 0 0;font-size:11px;line-height:1.65;color:#916b35}
.export-warning strong{white-space:nowrap;color:#a56d18}
@media(max-width:640px){.export-selection{padding:0 14px 12px}.export-options{align-items:stretch;flex-direction:column;gap:6px}.export-options label{margin:8px 0 0}.select-col{padding-left:14px}}
.five-part-confirm{display:flex!important;align-items:center;gap:8px;padding:9px 10px;margin:12px 0 0!important;border:1px solid #e0eaf7;border-radius:8px;background:#f8fbff;line-height:1.5}
.five-part-confirm input{width:16px;height:16px;flex:none;accent-color:#3b82f6}

/* Saved check results: quick selection covers all pages; sort is explicit. */
.selection-quick-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.selection-quick-actions .ghost.small{padding:6px 10px;min-height:30px}
.selection-hint{flex-basis:100%;line-height:1.6}
@media(max-width:640px){.selection-quick-actions{gap:6px}.selection-quick-actions .ghost.small{font-size:10px;padding:6px 8px}}
