/* OpenModule Mail 3.3.1: consolidated application styles. */

@font-face{font-family:Lexend;font-style:normal;font-weight:400;font-display:swap;src:url(fonts/lexend-400.woff2) format("woff2")}
@font-face{font-family:Lexend;font-style:normal;font-weight:500;font-display:swap;src:url(fonts/lexend-500.woff2) format("woff2")}
@font-face{font-family:Lexend;font-style:normal;font-weight:700;font-display:swap;src:url(fonts/lexend-700.woff2) format("woff2")}
:root{color-scheme:light;--bg:#f8fafc;--panel:#fff;--raised:#f6f3f5;--ink:#302a32;--muted:#7b707a;--line:#eae4e9;--accent:#2563eb;--accent-hover:#1d4ed8;--tint:#eff5ff;--success:#168660;--danger:#c93b4c;--shadow:0 3px 18px #35202d04;--radius:20px;--text-main:var(--ink);--text-muted:var(--muted);--border-color:var(--line);--bg-color:var(--panel);--otp-surface:#f4f4f5;--otp-button:#e4e4e7;--otp-hover:#d4d4d8;--otp-border:#d4d4d8;--otp-muted:#71717a}
:root[data-theme=dark]{color-scheme:dark;--bg:#111216;--panel:#1d1e24;--raised:#282730;--ink:#eeedf1;--muted:#b7afbd;--line:#38343e;--accent:#82b0ff;--accent-hover:#a5c5ff;--tint:#17243c;--success:#67d6ae;--danger:#ff9aab;--shadow:none}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:400 13px/1.6 Lexend,Arial,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a,button,input,select{outline-offset:4px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent)}
button:disabled{opacity:.5;cursor:wait}
input,select{min-width:0;color:var(--ink)}
input::placeholder{color:var(--muted);opacity:.8}
button{color:inherit}
h1,h2,h3,p{margin:0}
h2{font-size:16px;font-weight:600;letter-spacing:-.35px}
h3{font-size:15px;font-weight:500}
svg{display:block}
.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
[hidden]{display:none!important}
.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:500;color:var(--muted)}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:var(--panel);padding:8px;color:var(--muted);flex-shrink:0;transition:background .15s,color .15s}
.icon-button:hover{background:var(--raised);color:var(--ink)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border-radius:999px;padding:10px 18px;border:1px solid transparent;font-size:12px;font-weight:500;line-height:1.4;white-space:nowrap;transition:background .15s,box-shadow .15s}
.btn .icon{width:17px;height:17px}
.generate,.primary{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:0 4px 12px #2563eb12}
.generate:hover,.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
[data-theme=dark] .generate,[data-theme=dark] .primary{color:#fff}
.btn.delete,.secondary{background:var(--panel);border-color:var(--line);color:var(--ink)}
.btn.delete:hover,.secondary:hover{background:var(--raised)}
.btn.danger,.danger-button{background:var(--danger);color:#fff!important;border-color:var(--danger)}
.danger{color:var(--danger)!important}
.danger-hover:hover{background:var(--tint);color:var(--danger)}
.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--success);flex-shrink:0}
.brand{display:inline-flex;gap:10px;align-items:center;white-space:nowrap;font-size:18px;letter-spacing:-.65px;font-weight:600}
.brand-mark{height:36px;width:36px;border-radius:11px;display:grid;place-items:center;color:#fff;box-shadow:inset 0 1px #ffffff30}
.brand-mark .icon{width:22px;height:22px}
.brand-accent{color:#82b0ff;font-weight:500}
.auth-header,.navbar{background:#080808;color:#fff;display:flex;align-items:center;justify-content:space-between;height:76px;padding:0 32px;position:fixed;inset:0 0 auto;z-index:70;border-bottom:1px solid #242026}
.navbar-brand{display:flex;align-items:center;gap:12px}
.header-caption{font-size:9px;color:#8b828e;letter-spacing:2px;margin-right:40px}
.header-actions{display:flex;gap:15px;align-items:center}
.connection-label{font-size:10px;color:#c1b7c3;display:flex;align-items:center;gap:7px}
.connection-label .status-dot{background:#62cda3}
.auth-header .icon-button,.navbar .icon-button{background:#1b191e;border-color:#353039;color:#c7bec9}
.owner-avatar{display:grid;place-items:center;width:34px;height:34px;border:1px solid #c8d9ff;border-radius:50%;font-size:12px;font-weight:600}
.menu-icon{display:none}
.theme-toggle .icon{width:18px;height:18px}
.menu-overlay{position:fixed;left:0;top:76px;bottom:0;width:238px;padding:26px 16px 18px;background:var(--panel);border-right:1px solid var(--line);z-index:60;display:flex;flex-direction:column}
.menu-header{display:none}
.workspace-profile{display:flex;align-items:center;gap:10px;margin:0 5px 30px}
.profile-icon{display:grid;place-items:center;width:36px;height:36px;background:var(--tint);color:var(--accent);border-radius:11px}
.workspace-profile strong{display:block;font-size:11px;font-weight:500}
.workspace-profile small{font-size:10px;color:var(--muted)}
.nav-label{font-size:9px;letter-spacing:1.4px;color:var(--muted);margin:0 14px 10px}
.side-nav{display:grid;gap:5px;margin-bottom:26px}
.nav-item{display:flex;align-items:center;gap:11px;width:100%;min-height:43px;border:0;background:transparent;border-radius:12px;text-align:left;color:var(--muted);font-size:12px}
.nav-item .icon{width:18px;height:18px}
.nav-item:hover{background:var(--raised);color:var(--ink)}
.nav-item.active{background:var(--tint);color:var(--accent);font-weight:500}
.nav-item b{margin-left:auto;background:var(--accent);color:var(--panel);border-radius:6px;padding:0 6px;font-size:10px}
.sidebar-bottom{margin-top:auto}
.privacy-card{padding:17px 15px;border:1px solid var(--line);border-radius:16px;margin:0 5px 15px;background:var(--bg)}
.privacy-card>.icon{color:var(--accent);width:22px;height:22px;margin-bottom:12px}
.privacy-card strong{display:block;font-size:11px;font-weight:500}
.privacy-card p{font-size:10px;color:var(--muted);margin-top:5px;line-height:1.8}
.logout-btn{color:var(--muted)}
.sidebar-version{font-size:8px;letter-spacing:1.3px;color:var(--muted);display:flex;justify-content:space-between;padding:14px 14px 0}
.container{margin-left:238px;margin-top:76px;padding:36px clamp(24px,4vw,64px) 20px;max-width:1520px}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:25px}
.page-heading h1{font-weight:600;letter-spacing:-1.1px;line-height:1.4;margin:5px 0}
.page-heading p{font-size:12px;color:var(--muted)}
.overview-row{gap:14px;margin-bottom:24px}
.overview-row>div{display:flex;gap:13px;align-items:center;padding:15px 18px;border-radius:16px;background:var(--panel);border:1px solid var(--line)}
.overview-row>div>div>span{color:var(--muted)}
.overview-row strong{font-size:21px;line-height:1.3;margin-top:3px;letter-spacing:-.7px}
.stat-icon{width:38px;height:38px;background:var(--tint);color:var(--accent);display:grid;place-items:center;border-radius:12px}
.stat-icon.green{color:#168660;background:#e9f5ef}
.stat-icon.purple{color:#875dc1;background:#f1edfa}
[data-theme=dark] .stat-icon.green{background:#1b362d;color:#7ed6b3}
[data-theme=dark] .stat-icon.purple{background:#30263f;color:#c5a4f1}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);margin-bottom:20px;min-width:0}
.card-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.card-header p{font-size:11px;color:var(--muted);margin-top:4px}
.card-title{display:flex;align-items:center;gap:12px;min-width:0}
.card-title h2{font-size:14px}
.card-title p{font-size:10px}
.card-icon{display:grid;place-items:center;width:38px;height:38px;color:var(--accent);background:var(--tint);border-radius:12px;flex-shrink:0}
.badge{border:1px solid var(--line);padding:5px 10px;border-radius:999px;font-size:9px;color:var(--muted);white-space:nowrap}
.badge.permanent{background:var(--tint);color:var(--accent);border-color:transparent}
.address-box{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 20px;background:var(--bg);border:1px solid var(--line);border-radius:14px}
.address{font-size:clamp(16px,1.8vw,23px);font-weight:500;letter-spacing:-.7px;overflow-wrap:anywhere;min-width:0;line-height:1.6}
.copy-btn{background:var(--panel);border-color:var(--line);color:var(--accent);width:40px;height:40px;border-radius:12px}
.address-bottom{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:16px;font-size:10px;color:var(--muted)}
.session-validity{display:flex;align-items:center}
.session-validity .icon{width:14px;height:14px}
.session-validity strong{font-family:Lexend,sans-serif;font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums}
.expiry-control{display:flex;gap:7px;align-items:center}
.expiry-control select{background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:6px 8px;font-size:10px}
.btn-row{display:flex;gap:10px;margin-top:20px}
.address-actions .btn{padding:10px 20px;min-width:140px}
.inbox-select{width:100%;margin-top:12px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:9px 12px;font-size:11px;color:var(--muted)}
.inbox-header{margin-bottom:17px}
.inbox-title{display:flex;gap:14px;align-items:center}
.inbox-title h2{display:flex;align-items:center;gap:8px}
.count-badge{font-size:10px;font-weight:500;color:var(--muted);background:var(--raised);border-radius:7px;min-width:20px;text-align:center;line-height:21px}
.count-badge:empty{display:none}
.refresh-indicator{display:flex;align-items:center;gap:5px;color:var(--success);font-size:9px}
.refresh-indicator .status-dot{width:5px;height:5px}
.inbox-tools{display:flex;gap:7px}
.inbox-tools .icon-button{width:32px;height:32px}
.inbox-tools .icon{width:16px;height:16px}
.search-box{display:flex;align-items:center;gap:10px;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:10px 13px;margin-bottom:15px;color:var(--muted)}
.search-box input{border:0;background:transparent;outline:none;flex:1;width:100%;font-size:11px;line-height:1.6}
.search-box>.icon{width:17px;height:17px}
.search-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px #2563eb09}
.search-box kbd{font:10px Lexend;border:1px solid var(--line);border-radius:4px;padding:1px 5px}
.empty-state{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:36px 16px 31px;min-height:230px}
.empty-art{display:grid;place-items:center;width:62px;height:62px;border-radius:20px;background:var(--raised);border:1px solid var(--line);margin-bottom:17px;color:#9e8e9b;position:relative}
.empty-art:after{content:"";position:absolute;width:10px;height:10px;border:3px solid var(--panel);background:var(--accent);border-radius:50%;right:-3px;bottom:3px}
.empty-art .icon{width:29px;height:29px;stroke-width:1.3}
.empty-state h3{font-size:14px;letter-spacing:-.25px}
.empty-state p{font-size:10px;color:var(--muted);margin-top:5px}
.empty-foot{display:flex;align-items:center;gap:6px;font-size:9px;color:var(--muted);margin-top:21px}
.empty-foot .status-dot{width:5px;height:5px}
.inbox-foot{display:flex;gap:6px;align-items:center;border-top:1px solid var(--line);padding-top:14px;margin-top:10px;font-size:9px;color:var(--muted)}
.inbox-foot .icon{width:12px;height:12px}
.inbox-foot #sync-time{margin-left:auto}
.item-list{display:flex;flex-direction:column}
.mail-item{display:flex;gap:12px;align-items:center;padding:17px 4px;border-bottom:1px solid var(--line);cursor:pointer;touch-action:pan-y;position:relative;transition:background .12s}
.mail-item:last-child{border-bottom:0}
.mail-item:hover{background:var(--bg)}
.sender-avatar{height:36px;width:36px;border-radius:11px;background:var(--raised);color:var(--muted);display:grid;place-items:center;font-size:13px;font-weight:500;flex-shrink:0}
.mail-item.unread .sender-avatar{color:var(--accent);background:var(--tint)}
.mail-copy{min-width:0;flex:1}
.mail-sender{font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mail-subject{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.mail-time{font-size:9px;color:var(--muted);flex-shrink:0;align-self:flex-start}
.mail-item>.icon{width:16px;height:16px;color:var(--muted)}
.mail-item.unread:before{content:"";position:absolute;left:-13px;width:4px;height:4px;background:var(--accent);border-radius:50%}
.mail-item:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:8px}
.folder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.folder-card{border:1px solid var(--line);border-radius:16px;cursor:pointer;transition:border-color .15s,box-shadow .15s;background:var(--panel)}
.folder-card:hover{border-color:#a9c6f0;box-shadow:0 4px 16px #2563eb07}
.folder-header{display:flex;align-items:flex-start}
.folder-symbol{height:43px;width:43px;border-radius:13px;display:grid;place-items:center;color:var(--accent);background:var(--tint);margin-bottom:18px}
.folder-title{font-size:13px;font-weight:500;overflow-wrap:anywhere}
.folder-count{font-size:10px;color:var(--muted);margin-top:4px}
.folder-text{flex:1;min-width:0}
.forward-note{font-size:9px;color:var(--muted);overflow-wrap:anywhere;margin-top:10px;display:flex;gap:4px;align-items:center}
.forward-note .icon{height:12px;width:12px}
.folder-detail-heading{display:flex;align-items:center;gap:12px;min-width:0}
.folder-detail-heading h2{overflow-wrap:anywhere}
.back-btn{width:34px;height:34px}
.address-entry{display:flex;align-items:center;gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}
.address-entry:last-child{border-bottom:0}
.address-entry .folder-symbol{margin:0;width:36px;height:36px;border-radius:11px}
.address-entry .folder-text{flex:1}
.addr{font-size:12px;font-weight:500;overflow-wrap:anywhere;cursor:pointer}
.addr:hover{color:var(--accent)}
.address-caption{font-size:9px;color:var(--muted);margin-top:4px}
.dropdown{position:relative;flex-shrink:0}
.dropdown-btn{width:32px;height:32px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;background:var(--panel);color:var(--muted);padding:5px}
.dropdown-btn .icon{width:18px;height:18px}
.dropdown-btn:hover{background:var(--raised);color:var(--ink)}
.dropdown-content{display:none;position:absolute;top:calc(100% + 7px);right:0;min-width:177px;padding:6px;background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 36px #2418221c;z-index:65}
.dropdown-content.show{display:block;animation:appear 80ms ease-out}
.dropdown-item{display:flex;align-items:center;gap:10px;border:0;border-radius:9px;background:transparent;color:var(--ink);padding:10px 11px;font-size:11px;white-space:nowrap;width:100%;text-align:left}
.dropdown-item .icon{width:16px;height:16px;color:var(--muted)}
.dropdown-item:hover{background:var(--raised)}
.dropdown-item.danger .icon{color:var(--danger)}
.folder-empty{padding:44px 20px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:14px;font-size:11px;grid-column:1/-1}
.folder-empty .icon{margin:0 auto 12px;width:28px;height:28px;color:var(--accent)}
.history-row{display:flex;padding:17px 0}
.history-copy{min-width:0;flex:1}
.history-address{font-size:12px;overflow-wrap:anywhere;font-weight:500}
.history-caption{display:flex;flex-wrap:wrap;gap:5px 10px;font-size:9px;color:var(--muted);margin-top:5px}
.history-actions{display:flex;gap:6px;align-items:center}
.mini-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:7px 10px;border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:999px;font-size:10px;cursor:pointer;min-height:32px}
.mini-btn .icon{width:14px;height:14px}
.mini-btn:hover{background:var(--raised);color:var(--ink)}
.settings-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start}
.settings-side .card{margin-bottom:20px}
.stack{display:flex;flex-direction:column}
.stack label{display:block;font-size:11px;font-weight:500}
.form-input,.modal-form input,.modal-form select{width:100%;min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);font-size:12px;line-height:1.6}
.stack label .form-input{margin-top:7px}
.optional{font-size:9px;font-weight:400;color:var(--muted);float:right}
.form-hint{font-size:10px;color:var(--muted);line-height:1.8}
.field-error{font-size:11px;color:var(--danger);background:var(--tint);border-radius:10px;padding:10px 12px}
.workspace-details{display:grid;grid-template-columns:1fr auto;margin:0;font-size:10px}
.workspace-details dt{color:var(--muted)}
.workspace-details dd{margin:0;text-align:right}
.app-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:27px;padding-bottom:10px;color:var(--muted);font-size:9px}
.app-footer>span:last-child{display:flex;align-items:center;gap:5px}
.app-footer .icon{width:11px;height:11px}
.footer-dot{padding:0 5px}
.mobile-dock{display:none}
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:10px;top:10px;z-index:300;background:var(--panel);padding:10px}
.modal-symbol{width:46px;height:46px;border-radius:14px;background:var(--tint);color:var(--accent);display:grid;place-items:center;margin-bottom:17px}
.modal-symbol .icon{width:23px;height:23px}
.modal-description{color:var(--muted);font-size:12px;line-height:1.9;margin-bottom:20px;overflow-wrap:anywhere}
.modal-form{display:flex;flex-direction:column;gap:16px}
.modal-form label{display:block;font-size:11px;font-weight:500}
.modal-form label input,.modal-form label select{margin-top:7px}
.modal-form .form-hint{margin-top:-7px}
.modal-form .modal-actions{margin-top:5px}
.modal-actions{display:flex;gap:10px;margin-top:24px}
.modal-actions .btn{flex:1;min-width:0}
.form-address-preview{font-size:10px;border:1px solid var(--line);background:var(--bg);border-radius:10px;color:var(--muted);overflow-wrap:anywhere}
.message-meta{padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid var(--line)}
.detail-grid{display:grid;grid-template-columns:85px minmax(0,1fr);gap:8px 12px;font-size:11px;margin:0;overflow-wrap:anywhere}
.detail-grid dt{color:var(--muted)}
.detail-grid dd{margin:0;color:var(--ink)}
.message-frame{display:block;width:100%;height:55vh;min-height:300px;border:1px solid var(--line);border-radius:12px;background:#fff}
.message-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:15px}
.attachment{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);font-size:10px;margin:8px 6px 0 0;max-width:100%;overflow-wrap:anywhere}
.attachment .icon{width:15px;height:15px}
.attachment-image,.attachment-video{max-width:100%;max-height:55vh;border-radius:12px;margin-top:16px}
.otp-button{border:1px solid var(--otp-border);background:var(--otp-button);color:var(--ink);padding:8px 12px;border-radius:999px;font-size:11px;box-shadow:none}
.message-actions .btn{min-height:34px}
.reader-error{padding:20px;border:1px solid var(--line);border-radius:12px;color:var(--danger)}
#toast-container{position:fixed;right:24px;bottom:24px;z-index:200;display:grid;gap:8px;pointer-events:none;max-width:380px}
.toast{display:flex;align-items:center;gap:10px;padding:13px 18px;border:1px solid var(--line);background:var(--panel);border-radius:14px;box-shadow:0 8px 32px #2418221c;color:var(--ink);font-size:11px;animation:appear .1s ease-out;overflow-wrap:anywhere}
.toast:before{content:"";height:6px;width:6px;flex-shrink:0;background:var(--success);border-radius:50%}
.toast.error:before{background:var(--danger)}
.toast.warning:before{background:#b98230}
.sync-failed{color:var(--danger)}
.auth-page{min-height:100svh;display:flex;flex-direction:column}
.auth-header{position:static;flex-shrink:0}
.auth-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:100px;align-items:center;width:100%;max-width:1120px;padding:65px 36px;margin:auto}
.auth-story h1{font-size:48px;line-height:1.22;letter-spacing:-2px;font-weight:600;margin:20px 0}
.auth-story h1>span{color:var(--accent)}
.auth-story>p{font-size:13px;color:var(--muted);line-height:1.9}
.auth-story>.eyebrow{color:var(--accent);font-size:10px}
.auth-illustration{max-width:360px;margin-top:35px;padding:18px;background:var(--panel);border:1px solid var(--line);border-radius:18px;box-shadow:0 16px 45px #4f123b08;transform:rotate(-2deg);position:relative}
.auth-illustration:before{content:"";position:absolute;inset:16px -12px -12px 16px;border:1px solid var(--line);border-radius:18px;z-index:-1;background:var(--tint);transform:rotate(5deg)}
.illustration-top{display:flex;gap:8px;align-items:center;margin-bottom:17px}
.mail-art-icon{color:var(--accent);margin-right:auto}
.art-dot{width:5px;height:5px;border-radius:50%;background:var(--success)}
.art-line{height:5px;width:38px;background:var(--line);border-radius:10px}
.art-address{display:flex;align-items:center;gap:8px;background:var(--bg);border:1px solid var(--line);border-radius:11px;padding:13px 10px;font-size:10px;white-space:nowrap;margin-bottom:8px}
.art-address>.icon{width:14px;height:14px;color:var(--accent)}
.art-address>span>span{color:var(--muted)}
.art-check{margin-left:auto;color:var(--success)}
.art-check .icon{width:14px;height:14px}
.art-row{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid var(--line)}
.art-avatar{height:28px;width:28px;border-radius:9px;background:var(--raised);display:grid;place-items:center;color:var(--muted)}
.art-avatar .icon{width:13px;height:13px}
.art-pink{color:var(--accent);background:var(--tint)}
.art-lines{display:flex;flex-direction:column;gap:7px;flex:1}
.art-lines i{width:75%;height:5px;border-radius:20px;background:var(--line)}
.art-lines i:last-child{width:50%;opacity:.6}
.art-pill{height:5px;width:28px;border-radius:20px;background:var(--line)}
.art-footer{font-size:8px;color:var(--muted);display:flex;gap:5px;align-items:center;margin-top:14px}
.art-footer .icon{width:11px;height:11px}
.auth-features{display:flex;gap:23px;font-size:9px;color:var(--muted);margin-top:38px}
.auth-features>span{display:flex;align-items:center;gap:6px}
.auth-features .icon{width:14px;height:14px;color:var(--accent)}
.login-box{background:var(--panel);border:1px solid var(--line);border-radius:24px;padding:36px;width:100%;box-shadow:0 8px 40px #29152004}
.login-icon{display:grid;place-items:center;height:44px;width:44px;border:1px solid var(--line);background:var(--bg);color:var(--accent);border-radius:14px;margin-bottom:22px}
.login-icon .icon{width:22px;height:22px}
.login-box>.eyebrow{font-size:9px;letter-spacing:1.2px}
.login-box h2{font-size:28px;letter-spacing:-1px;margin:6px 0 4px}
.form-intro{font-size:12px;color:var(--muted);margin-bottom:28px}
.login-form>label{display:block;font-size:11px;font-weight:500}
.input-wrap{margin-bottom:19px;position:relative}
.input-wrap input{width:100%;min-height:47px;background:var(--panel);border:1px solid var(--line);border-radius:12px;font-size:12px}
.input-wrap input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #2563eb0b}
.password-wrap input{padding-right:48px}
.password-toggle{position:absolute;right:7px;top:6px;border:0;background:transparent;width:34px;height:34px}
.password-toggle .icon{width:17px;height:17px}
.login-submit{width:100%;justify-content:space-between;padding:14px 18px;margin-top:5px}
.login-form .field-error{margin-bottom:15px}
.login-secure{display:flex;justify-content:center;align-items:center;gap:6px;border-top:1px solid var(--line);margin-top:25px;padding-top:20px;font-size:9px;color:var(--muted)}
.login-secure .icon{width:13px;height:13px}
.auth-footer{display:flex;justify-content:space-between;gap:12px;width:100%;max-width:1120px;padding:20px 36px;margin:0 auto;font-size:9px;color:var(--muted)}
@keyframes appear{
0%{opacity:0;transform:translateY(5px)}
to{opacity:1;transform:none}}
@keyframes fadeOut{
to{opacity:0;transform:translateY(5px)}}
@media(min-width:1500px){
.container{margin-right:auto}}
@media(max-width:1150px){
.header-caption{display:none}
.container{padding:30px 28px 20px}
.menu-overlay{width:216px}
.container{margin-left:216px}
.folder-grid{grid-template-columns:1fr}
.auth-layout{gap:55px}
.auth-story h1{font-size:41px}
.settings-side{display:grid;grid-template-columns:1fr 1fr;gap:20px}}
@media(max-width:800px){
.auth-header,.navbar{height:66px;padding:0 20px}
.brand{font-size:17px;gap:8px}
.brand-mark{height:32px;width:32px;border-radius:10px}
.brand-mark .icon{width:20px;height:20px}
.menu-icon{display:inline-flex;background:transparent!important;border:0!important;width:25px;padding:0;color:#bcb0c0!important}
.navbar-brand{gap:12px}
.header-actions{gap:10px}
.connection-label{display:none}
.navbar .theme-toggle{width:32px;height:32px}
.owner-avatar{display:none}
.menu-overlay{top:0;width:300px;max-width:86vw;z-index:120;transform:translateX(-100%);transition:transform .2s;padding:20px 18px;box-shadow:8px 0 40px #1f0e231f}
.menu-overlay.open{transform:none;transition-duration:.15s}
.menu-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px;padding-left:7px}
.menu-heading{font-size:17px;font-weight:500;letter-spacing:-.5px}
.close-menu{width:32px;height:32px}
.workspace-profile{margin-bottom:30px}
.sidebar-bottom{margin-top:auto}
.container{margin:66px 0 0;max-width:none;padding:25px 20px 112px}
.page-heading{margin-bottom:21px;align-items:center}
.page-heading h1{font-size:26px;margin:4px 0}
.page-heading p{font-size:11px}
.page-heading .eyebrow{font-size:8px}
.overview-row{gap:9px;margin-bottom:19px}
.overview-row>div{padding:13px 12px;gap:8px;min-width:0}
.overview-row strong{font-size:20px}
.stat-icon{width:29px;height:29px;border-radius:9px}
.stat-icon .icon{width:16px;height:16px}
.card{padding:21px;margin-bottom:18px}
.card-header{gap:12px}
.card-header h2{font-size:14px}
.card-header p{font-size:10px}
.address{font-size:18px}
.address-box{padding:15px 14px;gap:11px}
.address-bottom{font-size:9px}
.expiry-control select{font-size:9px;padding:6px}
.address-actions .btn{flex:1;min-width:0}
.inbox-title{gap:9px}
.inbox-title h2{font-size:14px}
.refresh-indicator{font-size:8px;gap:4px}
.inbox-tools{gap:4px}
.inbox-tools .icon-button{height:29px;width:29px}
.inbox-tools .icon{height:14px;width:14px}
.folder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.folder-header{padding:17px 14px;gap:8px}
.folder-symbol{height:36px;width:36px;border-radius:11px}
.folder-title{font-size:12px}
.folder-count{font-size:9px}
.folder-detail-heading{gap:9px}
.folder-detail-heading p{max-width:180px}
.card-header .btn{font-size:10px;padding:9px 13px;min-height:36px}
.card-header .btn .icon{width:14px;height:14px}
.folder-detail-heading .back-btn{width:30px;height:30px}
.addr{font-size:11px}
.address-entry{gap:10px}
.address-entry .folder-symbol{width:32px;height:32px}
.address-entry .folder-symbol .icon{width:16px;height:16px}
.settings-side{grid-template-columns:1fr}
.settings-side .card{margin-bottom:18px}
.mobile-dock{position:fixed;z-index:75;display:flex;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(410px,100% - 32px);gap:4px;border:1px solid var(--line);background:var(--panel);box-shadow:0 5px 35px #2d17241a;border-radius:999px;align-items:center}
.mobile-dock>button{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:8px 4px;border:0;border-radius:999px;background:transparent;font-size:8px;color:var(--muted);height:52px}
.mobile-dock .icon{width:18px;height:18px}
.mobile-dock>button.active{background:var(--tint);color:var(--accent)}
.app-footer{font-size:8px;margin-top:22px;flex-wrap:wrap}
.app-footer>span:last-child{font-size:8px}
#menu-backdrop{display:block;position:fixed;inset:0;z-index:110;background:#160e2655;backdrop-filter:blur(3px)}
.auth-layout{grid-template-columns:1fr;max-width:480px;gap:0;padding:40px 24px;margin:auto}
.auth-story{display:none}
.login-box{max-width:none;padding:32px;border-radius:22px}
.auth-footer{max-width:480px;padding:20px 24px}
.auth-page{background:radial-gradient(ellipse at 50% 35%,var(--tint),transparent 70%),var(--bg)}
.auth-header{position:static}
.auth-header .theme-toggle{width:32px;height:32px}
.auth-footer{font-size:8px}
.message-frame{height:50vh}
.detail-grid{font-size:10px}
.history-actions{gap:4px}
.history-actions .mini-btn{padding:6px 8px;font-size:9px}
.history-actions .icon{width:12px;height:12px}
.history-address{font-size:11px}
.history-row .sender-avatar{width:30px;height:30px;border-radius:10px}
.history-caption{font-size:8px}
#toast-container{bottom:92px;left:20px;right:20px;max-width:none}
.toast{font-size:10px;padding:12px 15px;border-radius:12px}
.modal-open #toast-container{bottom:22px}
.modal-open .mobile-dock{visibility:hidden}
.modal-form input,.modal-form select{font-size:16px}
.modal-form label{font-size:11px}
.modal-form .form-input{font-size:13px}
.modal-form .form-input[type=email],.modal-form .form-input[type=text]{font-size:16px}
.modal-actions{gap:8px}
.modal-actions .btn{font-size:11px}}
@media(max-width:430px){
.navbar .brand{font-size:16px}
.navbar-brand{gap:10px}
.navbar .brand-mark{height:29px;width:29px;border-radius:9px}
.navbar .brand-mark .icon{height:18px;width:18px}
.container{padding:24px 16px 108px}
.overview-row>div{padding:12px 10px;gap:0}
.stat-icon{display:none}
.overview-row strong{font-size:21px;margin-top:5px}
.card{padding:19px 17px}
.address-box{padding:14px 12px}
.address{letter-spacing:-.5px}
.copy-btn{height:34px;width:34px;border-radius:10px;padding:7px}
.copy-btn .icon{width:17px;height:17px}
.card-title{gap:9px}
.card-title h2{font-size:13px}
.card-title p{font-size:9px}
.card-icon{height:34px;width:34px;border-radius:10px}
.card-icon .icon{width:18px;height:18px}
.badge{font-size:8px;padding:5px 8px}
.page-heading{gap:10px}
.page-heading p{font-size:10px;max-width:200px}
.expiry-control{gap:4px}
.expiry-control>select{padding:5px 4px;max-width:85px}
.address-bottom{gap:8px;font-size:8px}
.session-validity{gap:4px}
.session-validity .icon{height:12px;width:12px}
.folder-grid{grid-template-columns:1fr}
.folder-header{padding:18px}
.folder-symbol{margin-bottom:12px}
.folder-header .folder-text{display:grid;grid-template-columns:36px 1fr;gap:0 12px;align-items:center}
.folder-header .folder-symbol{grid-row:1/3;margin:0}
.folder-header .folder-title{align-self:end}
.folder-header .folder-count{align-self:start}
.folder-header .forward-note{grid-column:1/-1}
.folder-detail-heading p{font-size:9px;max-width:155px}
.folder-detail-heading h2{font-size:13px}
.folder-detail-heading .back-btn{display:none}
.inbox-title{gap:8px}
.inbox-title h2{font-size:13px}
.refresh-indicator{font-size:7px;gap:3px}
.inbox-tools .icon-button{height:27px;width:27px;padding:5px}
.inbox-foot>.icon{height:10px;width:10px}
.empty-state{padding:30px 8px;min-height:220px}
.empty-state h3{font-size:13px}
.empty-state p{font-size:9px}
.login-box{padding:29px 24px}
.auth-layout{padding:32px 20px}
.auth-footer{padding:20px}
.history-actions .mini-btn{padding:6px}
.history-actions .mini-btn .button-label{display:none}
.history-row{gap:9px}}
@media(max-width:350px){
.navbar-brand{gap:7px}
.navbar .brand{font-size:14px;gap:7px}
.navbar .theme-toggle{height:29px;width:29px}
.navbar .brand-mark{height:26px;width:26px}
.navbar .menu-icon{width:21px}
.overview-row{gap:7px}
.address{font-size:15px}
.copy-btn{height:31px;width:31px}
.card-title h2{font-size:12px}
.inbox-title{gap:6px}
.refresh-indicator{font-size:6px}
.inbox-foot #sync-time{display:none}
.badge{font-size:7px}
.address-entry{gap:8px}
.address-entry .folder-symbol{display:none}}
@media(prefers-reduced-motion:reduce){
*,:after,:before{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
body.menu-open{overflow:hidden}
:root[data-theme=dark]{--bg:#09090b;--panel:#18181b;--raised:#242429;--line:#303036;--accent:#2563eb;--accent-hover:#3b82f6;--tint:#16243b;--ink:#f4f4f5;--muted:#a1a1aa;--otp-surface:#202023;--otp-button:#2a2a2e;--otp-hover:#34343a;--otp-border:#3a3a40;--otp-muted:#a1a1aa}
.brand-accent{color:#83b0ff}
.brand-mark{background:#2563eb}
.owner-avatar{background:#eaf1ff;color:#2563eb;border-color:#c8d9ff}
.container{padding-top:24px}
.page-heading{margin-bottom:14px}
.page-heading h1{font-size:25px;margin:0}
#page-description,.app-footer,.card-header p,.header-caption,.modal-symbol,.page-heading .eyebrow,.privacy-card{display:none}
.overview-row{display:flex;gap:24px;margin-bottom:16px;align-items:center}
.overview-row>div{background:transparent;border:0;padding:0;gap:0}
.overview-row .stat-icon{display:none}
.overview-row>div>div{flex-direction:row;align-items:center;gap:7px}
.overview-row>div>div>span{font-size:10px}
.overview-row strong{font-size:13px;margin:0;letter-spacing:0;font-weight:500}
.card{padding:18px;margin-bottom:14px;border-radius:16px}
.card-header{margin-bottom:14px}
.card-title h2{font-size:13px}
.card-icon{height:31px;width:31px;border-radius:9px}
.card-icon .icon{width:17px;height:17px}
.address-box{position:relative;padding:12px 14px}
.address{font-size:18px;pointer-events:none;padding-right:12px}
.copy-btn{height:34px;width:34px;z-index:2;border-radius:10px}
.copy-btn .icon{height:17px;width:17px}
.address-box #address-switcher{position:absolute;inset:0 58px 0 0;opacity:0;width:calc(100% - 58px);height:100%;margin:0;cursor:pointer}
.address-box:has(#address-switcher:not([hidden])) .address:after{content:"";display:inline-block;vertical-align:middle;margin-left:10px;width:5px;height:5px;border:solid var(--muted);border-width:0 1px 1px 0;transform:translateY(-2px) rotate(45deg)}
.address-box:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.address-bottom{margin-top:12px}
.address-actions{margin-top:14px}
.address-actions .btn{min-height:36px;padding:9px 15px;min-width:0}
.inbox-header{margin-bottom:12px}
.search-box{padding:8px 11px;margin-bottom:8px}
.empty-state{min-height:145px;padding:20px 10px}
.empty-foot,.empty-state>p{display:none}
.empty-art{height:42px;width:42px;border-radius:14px;margin-bottom:12px}
.empty-art .icon{width:23px;height:23px}
.empty-state h3{font-size:12px}
.inbox-foot{padding-top:10px;margin-top:8px}
.menu-overlay{padding-top:22px}
.workspace-profile{margin-bottom:22px}
.side-nav{margin-bottom:18px}
.nav-item{min-height:40px;padding:9px 13px}
.folder-header{padding:16px}
.folder-symbol{height:34px;width:34px;margin-bottom:12px}
.folder-symbol .icon{width:18px;height:18px}
.folder-empty{padding:28px 16px}
.address-entry{padding:13px 0}
.stack{gap:12px}
.form-input,.modal-form input,.modal-form select{min-height:40px;padding:9px 12px}
.form-hint{font-size:9px}
.settings-grid{gap:16px}
.settings-side .card{margin-bottom:14px}
.workspace-details{gap:12px}
.modal-description{font-size:11px;line-height:1.7;margin-bottom:3px}
.modal-form{gap:13px}
.modal-form .modal-actions{margin-top:3px}
.modal-actions{margin-top:18px}
.btn{min-height:38px}
.auth-layout{display:block;max-width:425px;padding:28px 24px}
.auth-footer,.auth-story{display:none}
.login-box{padding:28px;max-width:none;border-radius:20px}
.login-icon{height:36px;width:36px;margin-bottom:17px;border-radius:11px}
.login-icon .icon{height:19px;width:19px}
.form-intro,.login-box>.eyebrow,.login-secure{display:none}
.login-box h2{font-size:25px;margin:0 0 22px}
.input-wrap{margin-bottom:16px}
.input-wrap input{min-height:44px}
.login-submit{margin-top:2px}
.login-form>label{margin-bottom:6px}
.auth-page{background:var(--bg)}
.form-address-preview{padding:8px 10px}
.reader-error{font-size:12px}
.sidebar-version{padding-top:12px}
@media(max-width:800px){
.container{padding-top:19px;padding-bottom:100px}
.page-heading{margin-bottom:12px}
.page-heading h1{font-size:23px}
.overview-row{gap:17px;margin-bottom:15px}
.overview-row>div>div{gap:5px}
.overview-row>div>div>span{font-size:8px}
.overview-row strong{font-size:11px}
.card{padding:16px;margin-bottom:13px}
.card-header{margin-bottom:13px}
.address{font-size:17px}
.address-box{padding:12px}
.address-bottom{margin-top:11px}
.address-actions{margin-top:13px}
.address-actions .btn{padding:9px 12px;min-height:36px;font-size:11px}
.inbox-header{margin-bottom:11px}
.empty-state{padding:20px 8px}
.empty-art{height:41px;width:41px}
.modal-description{font-size:11px;line-height:1.7}
.modal-form .form-hint{font-size:9px}
.modal-actions .btn{padding:10px 12px;min-height:39px}
.settings-grid{gap:0}
.settings-side .card{margin-bottom:13px}
.auth-layout{max-width:405px;padding:25px 20px}
.login-box{padding:27px 24px}
.card-title h2{font-size:13px}
.workspace-profile{margin-bottom:22px}
.menu-header{margin-bottom:23px}
.mail-item{padding:13px 2px}
.folder-header .folder-text{gap:0 11px}
.folder-header{padding:15px}
.card-header p{display:none}
.inbox-foot{font-size:8px}
.form-hint{font-size:9px}}
@media(max-width:430px){
.container{padding-left:15px;padding-right:15px}
.card{padding:15px}
.page-heading h1{font-size:22px}
.overview-row{justify-content:flex-start;gap:14px}
.overview-row>div>div>span{font-size:8px}
.address{font-size:16px}
.address-box{padding:11px 12px}
.copy-btn{height:32px;width:32px}
.card-icon{height:29px;width:29px}
.card-title h2{font-size:12px}
.address-bottom{margin-top:10px}
.card-header{margin-bottom:12px}
.inbox-foot{font-size:7px}
.empty-state{min-height:138px}
.empty-state h3{font-size:12px}
.overview-row>div>div{gap:4px}
.stack{gap:12px}
.sidebar-bottom{padding-top:15px}
.modal-form{gap:12px}
.modal-description{font-size:10px}
.auth-layout{padding:24px 20px}}
@media(max-width:350px){
.card{padding:14px}
.overview-row{gap:10px}
.overview-row>div>div>span{font-size:7px}
.overview-row strong{font-size:10px}
.address{font-size:14px}
.copy-btn{height:30px;width:30px}
.address-actions .btn{font-size:10px}}
*{-webkit-tap-highlight-color:transparent}
body{font-size:16px;line-height:1.55}
a,button,input,select,textarea{touch-action:manipulation}
:root[data-pointer=true] :is(button,a,input,select,textarea,[tabindex]):focus{outline:none!important;box-shadow:none!important}
:root[data-pointer=false] :is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.icon-button{width:44px;height:44px}
.address-actions .btn,.btn{min-height:44px;font-size:14px;padding:11px 17px}
.btn .icon{width:18px;height:18px}
.auth-header .brand,.navbar .brand{font-size:20px}
.menu-heading{font-size:20px}
.workspace-profile strong{font-size:14px}
.workspace-profile small{font-size:13px}
.nav-label{font-size:12px}
.nav-item{font-size:15px;min-height:46px;padding:11px 14px}
.nav-item .icon{width:21px;height:21px}
.sidebar-version{font-size:11px}
.container{max-width:1460px;padding-top:27px}
.page-heading h1{font-size:29px}
.overview-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}
.overview-row>div>div{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.overview-row>div>div>span{font-size:13px}
.overview-row strong{font-size:20px}
.card{padding:22px;margin-bottom:18px;border-radius:18px}
.card-header{margin-bottom:17px;gap:14px}
.card-header h2,.card-title h2,.inbox-title h2{font-size:18px;font-weight:500}
.card-title{gap:11px}
.card-icon{width:36px;height:36px;border-radius:11px}
.card-icon .icon{width:21px;height:21px}
.badge{font-size:13px;padding:6px 11px}
.address-box{padding:15px 16px}
.address{font-size:22px;line-height:1.5;letter-spacing:-.5px}
.copy-btn{width:44px;height:44px}
.copy-btn .icon{width:21px;height:21px}
.address-box #address-switcher{inset:0 68px 0 0;width:calc(100% - 68px);font-size:16px}
.address-bottom{margin-top:14px;font-size:13px;gap:10px}
.session-validity{gap:6px;font-size:13px}
.session-validity .icon{width:16px;height:16px}
.expiry-control{font-size:13px;gap:8px}
.expiry-control select{font-size:14px;min-height:40px;max-width:none;padding:8px 10px;border-radius:10px}
.address-actions{margin-top:17px}
.inbox-title{gap:13px}
.count-badge{font-size:13px;line-height:24px;min-width:24px}
.refresh-indicator{font-size:12px;gap:6px}
.inbox-tools{gap:6px}
.inbox-tools .icon-button{width:38px;height:38px}
.inbox-tools .icon{width:18px;height:18px}
.search-box{padding:11px 13px;min-height:46px;gap:11px;margin-bottom:12px}
.search-box input{font-size:15px}
.search-box .icon{width:20px;height:20px}
.search-box kbd{font-size:12px}
.empty-state{min-height:150px;padding:25px 10px}
.empty-state h3{font-size:16px}
.empty-art{width:48px;height:48px}
.inbox-foot{font-size:12px;line-height:1.6;padding-top:13px;gap:7px}
.inbox-foot .icon{height:14px;width:14px}
.mail-item{padding:17px 3px;gap:13px}
.sender-avatar{width:42px;height:42px;font-size:17px;border-radius:12px}
.mail-sender{font-size:15px}
.mail-subject{font-size:14px;margin-top:4px}
.mail-time{font-size:12px;padding-top:3px}
.mail-item>.icon{width:18px;height:18px}
.folder-title{font-size:16px}
.folder-count{font-size:13px}
.folder-header{padding:20px;gap:12px}
.folder-symbol{width:42px;height:42px;border-radius:12px}
.folder-symbol .icon{width:23px;height:23px}
.folder-empty{font-size:14px;padding:30px 18px}
.dropdown-btn{width:40px;height:40px}
.dropdown-content{min-width:205px;padding:7px;z-index:85}
.dropdown-item{font-size:14px;min-height:44px;padding:10px 12px;gap:11px}
.dropdown-item .icon{width:18px;height:18px}
.forward-note{font-size:12px;line-height:1.6}
.addr{font-size:16px}
.address-caption{font-size:13px}
.address-entry{padding:17px 0;gap:13px}
.address-entry .folder-symbol{width:40px;height:40px}
.history-address{font-size:15px}
.history-caption{font-size:12px;gap:5px 8px}
.history-actions .mini-btn{font-size:13px;min-height:40px;padding:8px 11px}
.history-actions .icon{width:17px;height:17px}
.history-row{gap:12px}
.history-row .sender-avatar{height:36px;width:36px}
.stack{gap:17px}
.stack label{font-size:14px}
.form-input,.modal-form input,.modal-form select{font-size:16px;min-height:46px;padding:11px 13px}
.optional{font-size:12px}
.form-hint{font-size:13px;line-height:1.7}
.field-error{font-size:14px;padding:11px 13px}
.workspace-details{font-size:14px;gap:15px}
.settings-grid{gap:20px}
.settings-side .card{margin-bottom:18px}
.modal-description{font-size:14px;line-height:1.65;margin-bottom:4px}
.modal-form{gap:17px}
.modal-form label{font-size:14px}
.modal-form .form-hint{font-size:13px}
.modal-actions{gap:11px;margin-top:21px}
.modal-actions .btn{font-size:14px;min-height:45px;padding:11px 15px}
.form-address-preview{font-size:14px;padding:10px 12px}
.detail-grid{font-size:14px;grid-template-columns:90px minmax(0,1fr);gap:10px 12px}
.attachment{font-size:13px;padding:10px 13px}
.attachment .icon{width:17px;height:17px}
.message-actions .mini-btn{font-size:13px;min-height:40px}
.otp-button{font-size:14px;padding:10px 13px;box-shadow:none}
.toast{font-size:14px;padding:13px 17px}
.login-box{max-width:420px;padding:32px}
.auth-layout{max-width:460px}
.login-box h2{font-size:29px;margin-bottom:24px}
.login-form>label{font-size:14px;margin-bottom:8px}
.input-wrap input{font-size:16px;min-height:49px;padding:12px 14px}
.password-wrap input{padding-right:49px}
.password-toggle{width:38px;height:38px}
.login-submit{font-size:16px;min-height:48px}
@media(max-width:1150px){
.settings-grid{grid-template-columns:1fr}
.settings-side{grid-template-columns:1fr}}
@media(max-width:800px){
.auth-header,.navbar{height:70px;padding:0 19px}
.auth-header .brand,.navbar .brand{font-size:19px;gap:8px}
.navbar-brand{gap:13px}
.navbar .brand-mark{width:32px;height:32px}
.navbar .brand-mark .icon{width:21px;height:21px}
.navbar .theme-toggle{width:38px;height:38px}
.container{margin-top:70px;padding:23px 19px 110px}
.page-heading{margin-bottom:17px}
.page-heading h1{font-size:28px}
.overview-row{gap:12px;margin-bottom:20px}
.overview-row>div>div>span{font-size:13px}
.overview-row strong{font-size:19px}
.card{padding:19px;margin-bottom:17px;border-radius:18px}
.card-header{margin-bottom:16px;gap:11px}
.card-header h2,.card-title h2,.inbox-title h2{font-size:17px}
.card-header .btn{font-size:13px;min-height:42px;padding:10px 13px}
.card-header .btn .icon{width:16px;height:16px}
.card-icon{width:34px;height:34px}
.card-title{gap:10px}
.badge{font-size:12px;padding:6px 9px}
.address{font-size:20px;letter-spacing:-.6px}
.address-box{padding:14px;gap:12px}
.copy-btn{width:42px;height:42px;padding:10px}
.address-box #address-switcher{inset:0 64px 0 0;width:calc(100% - 64px)}
.address-bottom{font-size:13px;margin-top:13px;gap:8px;flex-wrap:wrap}
.session-validity{font-size:13px;gap:5px}
.session-validity .icon{width:15px;height:15px}
.expiry-control{font-size:13px;gap:6px}
.expiry-control select{font-size:14px;min-height:40px;padding:7px 8px;max-width:none}
.address-actions{gap:10px;margin-top:16px}
.address-actions .btn{font-size:14px;min-height:45px;padding:11px 13px;gap:7px}
.address-actions .btn .icon{width:18px;height:18px}
.inbox-title{gap:10px}
.refresh-indicator{font-size:11px;gap:5px}
.inbox-tools .icon-button{width:36px;height:36px;padding:8px}
.inbox-tools .icon{width:17px;height:17px}
.inbox-tools{gap:5px}
.search-box{min-height:46px;padding:10px 12px}
.search-box input{font-size:16px}
.search-box kbd{display:none}
.empty-state{min-height:145px;padding:24px 10px}
.empty-state h3{font-size:15px}
.inbox-foot{font-size:12px;padding-top:12px;gap:6px;flex-wrap:wrap}
.inbox-foot .icon{width:13px;height:13px}
.inbox-foot #sync-time{display:none}
.sender-avatar{width:38px;height:38px;font-size:16px}
.mail-sender{font-size:15px}
.mail-subject{font-size:14px}
.mail-time{font-size:11px}
.mail-item{gap:11px;padding:16px 1px}
.folder-grid{grid-template-columns:1fr}
.folder-header{padding:18px}
.folder-title{font-size:16px}
.folder-count{font-size:13px}
.folder-header .folder-text{grid-template-columns:40px 1fr;gap:0 12px}
.folder-symbol{width:40px;height:40px}
.forward-note{font-size:12px}
.addr{font-size:15px}
.address-caption{font-size:12px}
.address-entry{gap:11px}
.address-entry .folder-symbol{display:grid;width:34px;height:34px}
.address-entry .folder-symbol .icon{width:19px;height:19px}
.folder-detail-heading h2{font-size:17px}
.history-address{font-size:14px}
.history-caption{font-size:12px}
.history-row{gap:10px}
.history-actions .mini-btn{padding:8px;min-width:38px;min-height:40px}
.history-actions .mini-btn .button-label{display:none}
.history-actions .icon{width:17px;height:17px}
.history-row .sender-avatar{display:none}
.modal-form{gap:16px}
.modal-form label{font-size:14px}
.modal-form .form-input,.modal-form input,.modal-form select{font-size:16px;min-height:46px}
.modal-form .form-hint{font-size:13px}
.modal-description{font-size:14px;line-height:1.65}
.modal-actions .btn{font-size:14px;min-height:45px;padding:11px 13px}
.detail-grid{font-size:13px;grid-template-columns:65px minmax(0,1fr)}
.toast{font-size:13px;padding:13px 16px}
.workspace-details{font-size:14px;gap:14px}
.stack{gap:16px}
.stack label{font-size:14px}
.form-input{font-size:16px;min-height:46px}
.form-hint{font-size:13px}
.mobile-dock{width:min(460px,100% - 30px);padding:5px}
.mobile-dock>button{font-size:12px;height:57px;gap:4px;padding:7px 3px}
.mobile-dock .icon{width:21px;height:21px}
.auth-layout{max-width:450px;padding:28px 23px}
.login-box{padding:30px 27px}
.login-box h2{font-size:28px}
.input-wrap{margin-bottom:20px}
.login-form>label{font-size:14px}
.input-wrap input{font-size:16px;min-height:48px}
.login-submit{min-height:48px;font-size:15px}
.menu-header{margin-bottom:25px}
.menu-overlay{padding:21px 18px}
.menu-heading{font-size:20px}
.nav-item{font-size:15px;min-height:47px}
.nav-label{font-size:12px}
.workspace-profile strong{font-size:14px}
.workspace-profile small{font-size:13px}
.sidebar-version{font-size:11px}}
@media(max-width:430px){
.auth-header,.navbar{padding:0 17px}
.auth-header .brand,.navbar .brand{font-size:18px}
.navbar-brand{gap:11px}
.container{padding:22px 16px 110px}
.page-heading h1{font-size:27px}
.overview-row>div>div>span{font-size:12px}
.overview-row strong{font-size:18px}
.card{padding:18px 16px}
.card-header h2,.card-title h2{font-size:16px}
.card-icon{height:32px;width:32px}
.badge{font-size:12px;padding:6px 8px}
.address{font-size:18px;line-height:1.5;padding-right:8px}
.address-box{padding:13px 12px;gap:10px}
.copy-btn{width:40px;height:40px}
.copy-btn .icon{width:20px;height:20px}
.session-validity{font-size:12px}
.expiry-control{font-size:12px}
.expiry-control select{font-size:14px;padding:7px 6px}
.address-actions .btn{font-size:14px;padding:11px 10px;gap:6px}
.inbox-title{flex-wrap:wrap;gap:3px 8px}
.inbox-title h2{font-size:17px}
.refresh-indicator{font-size:10px}
.inbox-tools .icon-button{width:34px;height:34px;padding:7px}
.inbox-tools{gap:4px}
.search-box input{font-size:15px}
.inbox-foot{font-size:12px}
.mail-item{gap:10px}
.mail-sender{font-size:14px}
.mail-subject{font-size:14px}
.mail-time{font-size:11px}
.mail-item>.icon{display:none}
.mobile-dock>button{font-size:11px}
.modal-actions .btn{font-size:14px;padding:11px 12px}
.folder-detail-heading h2{font-size:16px}
.card-header .btn{font-size:13px;padding:10px 11px}
.card-header .btn .icon{width:15px;height:15px}
.addr{font-size:15px}
.address-entry .folder-symbol{display:none}
.settings-grid{gap:0}
.settings-side .card{margin-bottom:17px}
.overview-row>div>div{gap:3px}
.form-hint{font-size:13px}
.modal-description{font-size:14px}
.login-box{padding:29px 25px}
.auth-layout{padding:25px 21px}}
@media(max-width:350px){
.auth-header .brand,.navbar .brand{font-size:16px}
.navbar-brand{gap:8px}
.navbar .theme-toggle{height:35px;width:35px}
.navbar .brand-mark{height:29px;width:29px}
.navbar .menu-icon{width:23px}
.container{padding-left:12px;padding-right:12px}
.page-heading{gap:10px}
.page-heading h1{font-size:25px}
.card{padding:17px 14px}
.card-title{gap:8px}
.card-title h2{font-size:15px}
.badge{font-size:11px;padding:5px 7px}
.address{font-size:17px}
.address-actions .btn{font-size:13px;gap:5px;padding:10px 8px}
.address-actions .btn .icon{width:16px;height:16px}
.address-bottom{font-size:12px}
.session-validity{font-size:12px}
.expiry-control{font-size:12px}
.mobile-dock>button{font-size:10px}
.inbox-title h2{font-size:16px}
.refresh-indicator{font-size:10px}
.inbox-foot{font-size:11px}
.modal-actions .btn{font-size:13px;padding:11px 10px}
.history-address{font-size:14px}
.history-caption{font-size:11px}
.card-header .btn{font-size:12px;padding:9px}
.card-header .btn .icon{width:14px;height:14px}}
:root[data-pointer=true] .address-box:focus-within{outline:none;box-shadow:none}
.mail-item{-webkit-touch-callout:none;user-select:none}
.address .email-domain{white-space:nowrap}
.settings-side .btn-row{flex-wrap:wrap}
.settings-side .btn-row .btn{font-size:13px;padding:10px 13px}
.sidebar-compose{margin:0 20px 8px;width:calc(100% - 40px);justify-content:center}
.saved-sender{font-size:14px;color:var(--muted);overflow-wrap:anywhere;line-height:1.7;margin-bottom:4px}
.sender-address-field{display:flex;align-items:center;min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--bg);overflow:hidden}
.sender-address-field:focus-within{border-color:var(--accent)}
.sender-address-field .form-input{width:0;min-width:0;flex:1;border:0;box-shadow:none;background:transparent;outline:none}
.sender-domain{padding-right:13px;flex-shrink:0;white-space:nowrap;font-size:13px;color:var(--muted);font-weight:400}
/* Shared adaptive dialogs */
.modal-overlay{position:fixed;inset:0 0 auto;top:var(--modal-viewport-top,0px);height:var(--modal-viewport-height,100dvh);width:100%;z-index:150;display:flex;align-items:center;justify-content:center;padding:20px;background:#16101870;backdrop-filter:blur(5px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity 180ms ease,visibility 180ms ease}
.modal-overlay.show{opacity:1;visibility:visible;pointer-events:auto}
.modal-content{display:flex;flex-direction:column;width:100%;max-width:440px;max-height:calc(var(--modal-viewport-height,100dvh) - 40px);min-height:0;border:1px solid var(--line);border-radius:20px;background:var(--panel);box-shadow:0 24px 80px #160e2630;overflow:hidden;transform:translateY(10px) scale(.985);transition:transform 180ms cubic-bezier(.2,.8,.2,1)}
.modal-overlay.show .modal-content{transform:none}
.modal-content.modal-wide{max-width:720px}
.modal-content.modal-compose{max-width:640px}
.modal-content.modal-reader{max-width:720px}
.modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid var(--line);flex-shrink:0}
.modal-header h3{font-size:18px;line-height:1.4;margin:0;font-weight:500}
.modal-close{width:36px;height:36px;flex-shrink:0}
.modal-close .icon{width:19px;height:19px}
#modal-body{padding:20px 22px;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-gutter:stable}
.modal-reader .message-frame{height:clamp(220px,48dvh,520px);min-height:0}
/* Compose */
.compose-form{gap:15px}
.compose-sender{display:grid;grid-template-columns:auto minmax(0,1fr);gap:1px 10px;align-items:baseline;padding-bottom:12px;border-bottom:1px solid var(--line);font-size:13px;overflow-wrap:anywhere}
.compose-sender>span{color:var(--muted);grid-row:span 2}
.compose-sender strong{font-weight:400;color:var(--ink)}
.compose-sender small{color:var(--muted);font-size:12px}
.compose-fields{display:grid;grid-template-columns:1fr;gap:13px}
.compose-form label{font-size:13px;color:var(--muted)}
.compose-form .form-input{font-size:16px;min-height:44px;padding:10px 12px;color:var(--ink);border-radius:11px}
.compose-form textarea.form-input{height:clamp(120px,22dvh,200px);min-height:100px;resize:vertical;max-height:50dvh;line-height:1.65;font-family:inherit}
.compose-attachments{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.compose-attachments .btn{font-size:13px;padding:9px 13px;min-height:40px}
.compose-attachments>small{font-size:12px;color:var(--muted)}
.compose-files{display:grid;gap:6px}
.compose-file{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 10px;border:1px solid var(--line);border-radius:9px;font-size:12px}
.compose-file span{min-width:0;overflow-wrap:anywhere}
.compose-file button{flex-shrink:0;min-height:34px}
.compose-actions{position:sticky;bottom:-20px;z-index:1;background:var(--panel);padding:12px 0 0;margin-top:0;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}
.compose-actions .btn{flex:0 1 auto;min-width:110px;min-height:44px;font-size:14px}
/* Sent list and reader */
#sent-list{display:block}
.sent-item{display:flex;width:100%;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 0;text-align:left;background:transparent;color:var(--ink);font:inherit;border:0;border-radius:0}
.sent-item+.sent-item{border-top:1px solid var(--line)}
.sent-item .mail-copy{display:flex;flex-direction:column;gap:6px;min-width:0;white-space:normal;overflow-wrap:anywhere}
.sent-item strong{font-size:15px;line-height:1.5;font-weight:500}
.sent-item small{font-size:12px;color:var(--muted);line-height:1.6}
.sent-row-meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0;max-width:42%;font-size:11px;color:var(--muted);text-align:right;line-height:1.6}
.sent-state-note,.sent-empty{font-size:13px;color:var(--muted);line-height:1.6}
.sent-subject{font-size:21px;line-height:1.45;font-weight:500;overflow-wrap:anywhere;margin:0 0 16px}
.sent-meta{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 14px;font-size:13px;line-height:1.65;padding-bottom:18px;margin:0;border-bottom:1px solid var(--line)}
.sent-meta dt{color:var(--muted)}
.sent-meta dd{margin:0;color:var(--ink);overflow-wrap:anywhere}
.sent-body{font-family:inherit;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:15px;padding:18px 0 4px;user-select:text}
/* Consistent interaction motion */
body,.navbar,.card,.mobile-dock,.form-input,.address-box,.search-box{transition:background-color 180ms ease,color 180ms ease,border-color 180ms ease}

.btn,.icon-button,.nav-item,.mobile-dock button,.theme-toggle,.dropdown-item{transition:background-color 160ms ease,color 160ms ease,border-color 160ms ease,box-shadow 160ms ease,transform 160ms ease}
.btn:active,.icon-button:active{transform:scale(.98)}
.menu-overlay,.menu-overlay.open{transition:transform 180ms cubic-bezier(.2,.8,.2,1),background-color 180ms ease,color 180ms ease,border-color 180ms ease}
.dropdown-content.show{animation:surface-in 140ms ease-out}
@keyframes surface-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:600px){.modal-overlay{padding:12px}.modal-content{max-height:calc(var(--modal-viewport-height,100dvh) - 24px);border-radius:17px}.modal-header{padding:15px 17px}.modal-header h3{font-size:17px}#modal-body{padding:17px;scrollbar-gutter:auto}.compose-form{gap:13px}.compose-actions{bottom:-17px}.sent-row-meta{font-size:10px;max-width:38%}.sent-item{gap:12px}.sent-subject{font-size:19px}}
@media(max-width:350px){.sent-item{flex-direction:column;gap:7px}.sent-row-meta{max-width:100%;align-items:flex-start;text-align:left}.compose-actions .btn{min-width:0;flex:1}.sent-meta{gap:7px 10px;font-size:12px}.compose-attachments>small{font-size:11px}}
@media(prefers-reduced-motion:reduce){.modal-overlay,.modal-content,.btn,.icon-button,.nav-item,.mobile-dock button,.menu-overlay,.menu-overlay.open,.dropdown-content.show,body,.navbar,.card,.mobile-dock,.form-input,.address-box,.search-box{transition:none;animation:none}.btn:active,.icon-button:active{transform:none}}/* Verification code actions */
.inbox-mail-item{display:block;cursor:default}
.mail-open{display:flex;align-items:center;gap:13px;width:100%;min-width:0;padding:0;border:0;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.mail-open .mail-copy{display:flex;flex-direction:column;min-width:0;flex:1}
.mail-open .mail-sender,.mail-open .mail-subject{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mail-open>.icon{width:18px;height:18px;flex-shrink:0;color:var(--muted)}
.mail-open .sender-avatar,.mail-open .mail-time{flex-shrink:0}
.inbox-code-action{padding:12px 0 0 55px}
.inbox-code-action .otp-button{font-size:13px;line-height:1.4;padding:9px 13px;min-height:38px;max-width:100%;overflow-wrap:anywhere;white-space:normal}
.otp-summary{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-bottom:20px;padding:18px;border:1px solid var(--otp-border);border-radius:15px;background:var(--otp-surface)}
.otp-summary-title{font-size:13px;color:var(--otp-muted)}
.otp-value{font-size:30px;font-weight:500;line-height:1.4;letter-spacing:4px;color:var(--ink);max-width:100%;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.otp-summary .otp-button{font-size:14px;min-height:40px;padding:9px 17px}
@media(max-width:800px){.mail-open{gap:11px}.inbox-code-action{padding-left:49px}}
@media(max-width:430px){.mail-open>.icon{display:none}.otp-value{font-size:28px;letter-spacing:3px}.otp-summary{padding:16px}}
@media(max-width:350px){.inbox-code-action{padding-left:0}.inbox-code-action .otp-button{font-size:12px}.mail-open .mail-time{font-size:10px}.otp-value{font-size:25px}}

.plain-email-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;padding:16px 0;user-select:text;color:var(--ink)}

.otp-button:hover{background:var(--otp-hover)}
