:root{--bg:#f7f8fa;--surface:#fff;--surface-2:#f5f6f8;--sidebar:#fbfbfc;--text:#232832;--muted:#858b96;--border:#e9ebef;--accent:#ed7925;--accent-hover:#d96a1b;--accent-soft:#fff1e6;--shadow:0 18px 65px #17212f12;--green:#2b855d;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--bg:#15171b;--surface:#1d2026;--surface-2:#252830;--sidebar:#191c21;--text:#edf0f5;--muted:#979da9;--border:#30343d;--accent:#f28b3f;--accent-hover:#ffa45f;--accent-soft:#3b2b20;--shadow:0 18px 65px #0005;--green:#78c6a0;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;color:var(--text);-webkit-font-smoothing:antialiased;margin:0;font-family:Arial,Helvetica,sans-serif;font-size:16px}button,input,textarea,select{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.42;cursor:not-allowed}a{color:inherit;text-decoration:none}button,input,textarea{outline:none}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}button{transition:background .15s,color .15s,transform .15s}button:active:not(:disabled){transform:translateY(1px)}svg{flex-shrink:0}h1,h2,h3,p{margin:0}h1{letter-spacing:-.7px;font-size:24px;font-weight:600}h2{font-size:16px;font-weight:600}h3{font-size:15px}input,textarea,select{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);border-radius:8px;padding:11px 13px;transition:border-color .15s,box-shadow .15s}input::placeholder,textarea::placeholder{color:var(--muted)}input[readonly]{background:var(--surface-2);color:var(--muted)}input[type=checkbox]{accent-color:var(--accent);cursor:pointer;flex-shrink:0;width:15px;height:15px;margin:0}label{flex-direction:column;gap:9px;font-size:14px;font-weight:500;display:flex}textarea{resize:vertical;line-height:1.65}button.primary,button.secondary{white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;gap:9px;min-height:40px;padding:10px 16px;font-size:14px;font-weight:500;display:inline-flex}.primary{border:1px solid var(--accent);background:var(--accent);color:#fff}.primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.secondary{border:1px solid var(--border);background:var(--surface);color:var(--text)}.secondary:hover:not(:disabled){background:var(--surface-2)}.icon-button{width:34px;height:34px;color:var(--muted);background:0 0;border:0;border-radius:7px;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.icon-button:hover:not(:disabled){background:var(--surface-2);color:var(--text)}.text-button{color:var(--muted);background:0 0;border:0;padding:8px;font-size:13px}.text-button:hover{color:var(--accent)}.muted,.field-note{color:var(--muted);font-size:13px;line-height:1.6}.field-note{display:block}.form-error{color:#d35342;font-size:14px;line-height:1.5}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@keyframes rise{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.boot{flex-direction:column;justify-content:center;align-items:center;gap:24px;height:100dvh;display:flex}.boot img{border-radius:12px;width:64px}.auth-page{background:var(--surface);flex-direction:column;justify-content:center;align-items:center;min-height:100dvh;padding:48px 24px;display:flex}.auth-theme{position:absolute;top:26px;right:28px}.auth-card{width:100%;max-width:352px;animation:.4s rise}.auth-logo{background:#fff;border-radius:20px;place-items:center;width:156px;height:156px;margin:0 auto 18px;display:grid}.auth-logo img{object-fit:contain;width:100%;height:100%}.auth-card h1{text-align:center;letter-spacing:-.6px;margin-bottom:32px;font-size:25px}.auth-card form{gap:22px;display:grid}.auth-card input{height:46px;font-size:15px}.auth-submit{width:100%;height:46px;margin-top:3px}.auth-footer{color:var(--muted);margin-top:52px;font-size:12px}.auth-card .field-note{margin-top:-12px}.app-shell{height:100dvh;display:flex;overflow:hidden}.sidebar{background:var(--sidebar);border-right:1px solid var(--border);flex-direction:column;flex-shrink:0;width:232px;padding:26px 16px 0;display:flex}.brand{white-space:nowrap;align-items:center;gap:10px;margin:0 11px 32px;display:flex}.brand-icon{background:#fff;border-radius:8px;place-items:center;width:32px;height:32px;display:grid;overflow:hidden}.brand-icon img{object-fit:contain;width:39px;height:39px}.brand strong{letter-spacing:-1px;font-size:23px;font-weight:700}.brand strong span{color:var(--muted);margin-left:2px;font-weight:400}.compose-button{width:100%;height:45px;margin-bottom:25px;box-shadow:0 3px 8px #ed79251a}.sidebar nav{gap:4px;display:grid}.nav-item{text-align:left;width:100%;color:var(--muted);background:0 0;border:0;border-radius:7px;align-items:center;gap:12px;padding:12px 13px;font-size:14px;display:flex}.nav-item:hover{background:var(--surface-2);color:var(--text)}.nav-item.active{background:var(--accent-soft);color:var(--accent);font-weight:600}.nav-item b{margin-left:auto;font-size:12px;font-weight:500}.nav-item span{flex:1}.sidebar-bottom{margin-top:auto;padding-top:30px}.admin-link{font-size:13px}.account{border-top:1px solid var(--border);align-items:center;gap:9px;margin:17px -3px 0;padding:20px 1px;display:flex}.account>div{flex:1;min-width:0}.account strong{margin-bottom:5px;font-size:12px;font-weight:600;display:block}.account div span{color:var(--muted);text-overflow:ellipsis;font-size:11px;display:block;overflow:hidden}.account .icon-button{width:24px}.avatar{background:var(--accent-soft);color:var(--accent);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:42px;height:42px;font-size:13px;font-weight:600;display:inline-flex}.avatar.small{width:33px;height:33px;font-size:11px}.avatar.tiny{width:31px;height:31px;font-size:10px}.workspace{background:var(--surface);flex-direction:column;flex:1;min-width:0;display:flex}.topbar{border-bottom:1px solid var(--border);align-items:center;gap:20px;height:79px;min-height:79px;padding:0 30px;display:flex}.topbar>.icon-button{display:none}.search-field{width:100%;max-width:480px;color:var(--muted);background:var(--surface-2);border:1px solid #0000;border-radius:8px;align-items:center;gap:11px;height:41px;padding:0 13px;display:flex}.search-field:focus-within{border-color:var(--border)}.search-field input{box-shadow:none;background:0 0;border:0;min-width:0;padding:10px 0;font-size:14px}.search-field kbd{border:1px solid var(--border);border-radius:4px;padding:2px 6px;font-size:12px;line-height:1.2}.topbar-actions{align-items:center;gap:18px;margin-left:auto;display:flex}.notice{border-bottom:1px solid var(--border);background:var(--accent-soft);color:var(--text);flex-shrink:0;align-items:center;gap:10px;padding:9px 20px;font-size:13px;line-height:1.5;display:flex}.notice span{flex:1}.notice>svg{color:var(--accent)}.mail-area{flex:1;min-height:0;display:flex}.message-list{border-right:1px solid var(--border);flex-direction:column;flex-shrink:0;width:397px;min-width:300px;display:flex}.list-heading{justify-content:space-between;align-items:center;height:82px;min-height:82px;padding:0 24px;display:flex}.list-heading>div{align-items:center;gap:12px;display:flex}.list-heading h1{font-size:23px}.count{background:var(--surface-2);color:var(--muted);letter-spacing:0;border-radius:5px;padding:3px 8px;font-size:12px;font-weight:400}.list-toolbar{border-bottom:1px solid var(--border);height:43px;min-height:43px;color:var(--muted);align-items:center;gap:12px;padding:0 20px;font-size:12px;display:flex}.list-toolbar>.icon-button{width:27px}.pagination{white-space:nowrap;align-items:center;gap:1px;margin-left:auto;font-size:11px;display:flex}.pagination .icon-button{width:24px}.messages-scroll{flex:1;min-height:0;overflow-y:auto}.message-row{border-bottom:1px solid var(--border);gap:13px;min-height:106px;padding:19px 15px 18px 20px;transition:background .15s;display:flex;position:relative}.message-row:hover{background:var(--surface-2)}.message-row.selected{background:var(--accent-soft)}.message-row.unread:before{content:"";background:var(--accent);border-radius:0 3px 3px 0;width:3px;position:absolute;top:22px;bottom:22px;left:0}.row-check{align-items:flex-start;padding-top:2px;display:flex}.message-open{text-align:left;background:0 0;border:0;flex-direction:column;flex:1;gap:8px;min-width:0;padding:0;display:flex}.message-meta{align-items:center;gap:8px;width:100%;line-height:1.2;display:flex}.message-meta strong{text-overflow:ellipsis;white-space:nowrap;max-width:75%;font-size:13px;font-weight:400;overflow:hidden}.unread .message-meta strong{font-weight:600}.message-meta time{color:var(--muted);white-space:nowrap;margin-left:auto;font-size:11px}.message-subject{white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:13px;overflow:hidden}.unread .message-subject{font-weight:600}.message-address{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:12px;overflow:hidden}.row-end{flex-direction:column;align-items:center;gap:7px;width:20px;display:flex}.row-end .icon-button{width:23px;height:23px;margin-top:-5px}.row-end>svg{color:var(--muted)}.starred{color:#eea62f;fill:#eea62f}.reader{flex-direction:column;flex:1;min-width:0;display:flex}.reader-empty{height:100%;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:19px;font-size:14px;display:flex}.empty-envelope{border:1px solid var(--border);background:var(--surface);border-radius:20px;place-items:center;width:76px;height:76px;display:grid}.reader-toolbar{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;height:62px;min-height:62px;padding:0 23px;display:flex}.reader-actions{align-items:center;gap:10px;display:flex}.toolbar-separator{background:var(--border);width:1px;height:20px;margin:0 2px}.reader-scroll{flex:1;padding:36px 38px;animation:.22s rise;overflow-y:auto}.reader-scroll>h1{overflow-wrap:anywhere;margin-bottom:29px;font-size:24px;line-height:1.45}.sender{align-items:center;gap:12px;margin-bottom:36px;display:flex}.sender>div{flex:1;min-width:0}.sender strong{overflow-wrap:anywhere;font-size:13px;font-weight:500;line-height:1.5;display:block}.sender div>span{color:var(--muted);overflow-wrap:anywhere;margin-top:5px;font-size:12px;display:block}.sender time{white-space:nowrap;color:var(--muted);align-self:flex-start;padding-top:5px;font-size:11px}.plain-message{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.8}.message-html{background:#fff;border:0;border-radius:5px;width:100%;height:52vh}.attachments{flex-wrap:wrap;gap:10px;margin-top:30px;display:flex}.attachment{background:var(--surface);border:1px solid var(--border);border-radius:8px;align-items:center;gap:12px;max-width:100%;padding:13px;display:flex}.attachment>span{background:var(--surface-2);width:35px;height:35px;color:var(--muted);border-radius:6px;place-items:center;display:grid}.attachment div{min-width:0}.attachment strong{text-overflow:ellipsis;white-space:nowrap;max-width:190px;font-size:12px;font-weight:500;display:block;overflow:hidden}.attachment small{color:var(--muted);margin-top:5px;font-size:11px;display:block}.attachment>svg{color:var(--muted)}.reply-buttons{gap:10px;margin-top:38px;display:flex}.empty-state{color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:15px;min-height:230px;font-size:14px;display:flex}.draft-row{text-align:left;border:0;border-bottom:1px solid var(--border);background:0 0;align-items:flex-start;gap:14px;width:100%;padding:22px 20px;display:flex}.draft-row:hover{background:var(--surface-2)}.draft-row>span:nth-child(2){flex:1;min-width:0}.draft-row strong{font-size:14px;display:block}.draft-row small{color:var(--muted);margin-top:6px;font-size:12px;display:block}.draft-row p{white-space:nowrap;text-overflow:ellipsis;color:var(--muted);margin-top:10px;font-size:12px;overflow:hidden}.draft-row time{color:var(--muted);white-space:nowrap;font-size:11px}.modal-backdrop{z-index:100;background:#0d14234d;justify-content:center;align-items:center;padding:30px;animation:.2s rise;display:flex;position:fixed;inset:0}.modal{background:var(--surface);border:1px solid var(--border);width:100%;max-width:440px;box-shadow:var(--shadow);border-radius:14px;max-height:90dvh;overflow:auto}.modal.wide{max-width:760px}.modal>header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:16px 24px;display:flex}.modal-form{gap:23px;padding:26px;display:grid}.modal-form>footer{justify-content:flex-end;gap:10px;padding-top:7px;display:flex}.composer{flex-direction:column;display:flex}.compose-line{border-bottom:1px solid var(--border);align-items:center;gap:12px;min-height:51px;padding:0 24px;display:flex}.compose-line label{width:57px;color:var(--muted);flex-shrink:0;font-size:13px}.compose-line input{box-shadow:none;background:0 0;border:0;border-radius:0;min-width:0;padding:14px 0;font-size:14px}.compose-line .text-button{white-space:nowrap}.compose-body{resize:none;background:0 0;border:0;border-radius:0;height:38vh;min-height:300px;padding:24px;font-size:15px;line-height:1.8;box-shadow:none!important}.composer>.form-error{padding:12px 24px}.composer>footer{border-top:1px solid var(--border);align-items:center;gap:12px;padding:16px 24px;display:flex}.save-draft{margin-left:auto}.compose-files{flex-wrap:wrap;gap:7px;padding:10px 24px;display:flex}.compose-files>span{background:var(--surface-2);border:1px solid var(--border);overflow-wrap:anywhere;border-radius:5px;align-items:center;gap:7px;max-width:100%;padding:6px 9px;font-size:12px;display:flex}.compose-files small{color:var(--muted);white-space:nowrap}.compose-files button{color:var(--muted);background:0 0;border:0;padding:0;display:flex}.content-page{background:var(--bg);flex:1;padding:34px 40px 55px;overflow-y:auto}.page-title{align-items:center;gap:13px;margin-bottom:30px;display:flex}.page-title>.secondary{margin-left:auto}.title-icon{border:1px solid var(--border);background:var(--surface);width:37px;height:37px;color:var(--accent);border-radius:9px;place-items:center;display:grid}.tabs{border-bottom:1px solid var(--border);align-items:center;gap:28px;margin-bottom:30px;display:flex}.tabs button{color:var(--muted);background:0 0;border:0;align-items:center;gap:9px;padding:0 0 17px;font-size:14px;display:flex;position:relative}.tabs button.active{color:var(--accent);font-weight:500}.tabs button.active:after{content:"";background:var(--accent);height:2px;position:absolute;bottom:-1px;left:0;right:0}.stats{grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:28px;display:grid}.stat{border:1px solid var(--border);background:var(--surface);border-radius:10px;grid-template-columns:1fr 28px;align-items:center;gap:18px;padding:22px;display:grid}.stat>svg{color:var(--accent);grid-area:1/2}.stat>span{color:var(--muted);grid-area:1/1;font-size:14px}.stat>strong{letter-spacing:-1px;font-size:31px;font-weight:500}.panel{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:24px}.panel>h2{margin-bottom:25px}.panel form{gap:23px;display:grid}.panel form>.primary,.panel form>.secondary{justify-self:start}.panel-heading{align-items:center;gap:12px;margin-bottom:24px;display:flex}.panel-heading>h2{align-items:center;gap:10px;display:flex}.panel-heading>.primary,.panel-heading>.muted{margin-left:auto}.table-wrap{overflow-x:auto}table{border-collapse:collapse;white-space:nowrap;width:100%;font-size:13px}th{text-align:left;color:var(--muted);background:var(--sidebar);border-bottom:1px solid var(--border);padding:14px 18px;font-size:12px;font-weight:400}td{border-bottom:1px solid var(--border);padding:20px 18px;line-height:1.5}tbody tr:last-child td{border-bottom:0}.activity-panel{padding:24px 0 0}.activity-panel .panel-heading{padding:0 24px}.audit-icon{width:24px;height:24px;color:var(--green);background:var(--surface-2);vertical-align:middle;border-radius:50%;justify-content:center;align-items:center;margin-right:10px;display:inline-flex}.server-card{border:1px solid var(--border);background:var(--surface);border-radius:10px;align-items:center;gap:16px;margin-top:24px;padding:24px;display:flex}.server-card h2{margin-bottom:7px;font-size:14px}.server-card div>span{color:var(--muted);font-size:12px}.icon-tile{background:var(--surface-2);border:1px solid var(--border);width:39px;height:39px;color:var(--muted);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.server-ports{gap:25px;margin-left:auto;display:flex}.server-ports b{color:var(--text);margin-left:6px;font-size:12px;font-weight:400}.table-panel{padding:24px 0 0}.table-panel .panel-heading{padding:0 24px}.table-actions{justify-content:flex-end;align-items:center;gap:9px;display:flex}.table-actions .secondary{min-height:33px;padding:6px 12px;font-size:12px}.domain-name,.mailbox-person{align-items:center;gap:12px;display:flex}.domain-name strong{font-weight:500}.mailbox-person strong{font-weight:500;display:block}.mailbox-person div>span{color:var(--muted);margin-top:4px;font-size:12px;display:block}.badge{background:var(--surface-2);color:var(--muted);border-radius:5px;align-items:center;padding:5px 8px;font-size:11px;line-height:1.1;display:inline-flex}.badge.orange{background:var(--accent-soft);color:var(--accent)}.settings-grid{grid-template-columns:1fr 1fr;align-items:start;gap:26px;max-width:1000px;display:grid}.connection-settings{margin-top:24px}.connection-settings dl{grid-template-columns:85px 1fr;gap:15px;margin:0;font-size:13px;display:grid}.connection-settings dt{color:var(--muted)}.connection-settings dd{overflow-wrap:anywhere;margin:0}.dns-content{padding:24px}.dns-heading{justify-content:space-between;align-items:center;margin-bottom:22px;display:flex}.dns-record{border:1px solid var(--border);border-radius:8px;margin-bottom:12px;padding:15px;position:relative}.dns-record>div{align-items:center;gap:10px;padding-right:20px;display:flex}.dns-record strong{overflow-wrap:anywhere;font-size:12px;font-weight:500}.dns-status{color:var(--muted);white-space:nowrap;align-items:center;gap:5px;margin-left:auto;font-size:11px;display:flex}.dns-status.verified{color:var(--green)}.dns-record code{background:var(--surface-2);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:5px;margin-top:13px;padding:12px;font-size:12px;line-height:1.7;display:block}.dns-record>.icon-button{width:24px;height:24px;position:absolute;top:10px;right:4px}.dns-record small{color:var(--muted);margin-top:10px;font-size:12px;display:block}.sidebar-scrim{display:none}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-thumb{background:var(--border);border-radius:8px}::selection{background:var(--accent-soft);color:var(--accent)}@media (min-width:1600px){.message-list{width:430px}.reader-scroll{padding:42px 55px}.content-page{padding:40px 55px}}@media (max-width:1200px){.sidebar{width:208px;padding-left:13px;padding-right:13px}.message-list{width:350px}.reader-scroll{padding:28px 25px}.sender{flex-wrap:wrap}.sender time{margin-left:54px}.content-page{padding:28px 25px}.stats{gap:12px}.stat{padding:18px}.server-ports{flex-direction:column;gap:12px}.settings-grid{grid-template-columns:1fr}}@media (max-width:1000px){.message-list{border:0;width:100%}.reader,.has-message .message-list{display:none}.has-message .reader{display:flex}.message-row{padding:20px 24px}.message-meta strong,.message-subject{font-size:14px}.message-address{font-size:13px}.reader-scroll{padding:32px}.topbar{padding:0 24px}.content-page{padding:28px 24px}}@media (max-width:700px){.sidebar{z-index:80;width:240px;transition:transform .2s;position:fixed;top:0;bottom:0;left:0;transform:translate(-100%)}.sidebar.open{transform:translate(0)}.sidebar-scrim{z-index:70;background:#0005;border:0;display:block;position:fixed;inset:0}.topbar{gap:12px;height:67px;min-height:67px;padding:0 15px}.topbar>.icon-button{display:flex}.topbar-actions{gap:8px}.topbar-actions .avatar{display:none}.search-field{max-width:none;height:39px}.search-field kbd{display:none}.list-heading{height:72px;min-height:72px;padding:0 22px}.message-row{padding-left:22px}.modal-backdrop{padding:12px}.modal{max-height:95dvh}.modal.wide{max-width:100%}.modal>header{padding:13px 18px}.compose-line{padding:0 18px}.compose-body{height:39vh;min-height:180px;padding:18px}.composer>footer{gap:8px;padding:13px 15px}.content-page{padding:24px 16px 40px}.page-title{margin-bottom:25px}.stats{grid-template-columns:1fr;gap:10px}.stat{grid-template-columns:28px 1fr auto;gap:14px;padding:17px}.stat>svg{grid-column:1}.stat>span{grid-column:2}.stat>strong{grid-column:3;font-size:24px}.tabs{gap:23px}.tabs button{font-size:13px}.panel-heading{flex-wrap:wrap}.table-panel .panel-heading{padding:0 16px}.panel-heading .primary{min-height:36px;padding:8px 11px;font-size:12px}.panel-heading h2{font-size:15px}.activity-panel .panel-heading{padding:0 18px}.server-card{gap:12px;padding:18px}.server-ports{display:none}.settings-grid{gap:20px}.panel{padding:20px}.table-panel,.activity-panel{padding:20px 0 0}.reader-scroll{padding:26px 22px}.reader-scroll>h1{font-size:23px}.reader-toolbar{padding:0 15px}.sender time{margin-left:54px}.dns-content{padding:17px}.dns-status span{display:none}.dns-record>div{gap:7px}.auth-page{padding:50px 26px}.auth-logo{width:135px;height:135px}.auth-footer{margin-top:38px}.notice{padding-left:15px}.modal-form{padding:22px}.save-draft{font-size:12px}.reader-empty{display:none}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.message-meta strong,.message-subject,.account strong{font-size:14px}.account div span{font-size:12px}.account{gap:7px}.sidebar{width:240px}.auth-footer{font-size:13px}@media (max-width:1200px) and (min-width:701px){.sidebar{width:220px}}
