:root{--blue:#0f6cbd;--blue2:#115ea3;--blue-soft:#cfe8ff;--ink:#242424;--muted:#616161;--line:#e0e0e0;--panel:#fff;--canvas:#f5f5f5;--hover:#f0f6fc;--selected:#cfe8ff;--danger:#c42b1c;--shadow:0 8px 28px rgba(0,0,0,.18);font-family:"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;color:var(--ink);font-size:14px}
*{box-sizing:border-box}html,body,#app{height:100%;margin:0}body{overflow:hidden;background:var(--canvas);-webkit-user-select:none;user-select:none}button,input,textarea,select{font:inherit;color:inherit}button{border:0;background:transparent;cursor:pointer;-webkit-user-select:none;user-select:none}input,textarea,[contenteditable="true"],.message-view{-webkit-user-select:text;user-select:text}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[contenteditable]:focus-visible{outline:2px solid var(--blue);outline-offset:1px}button:disabled{opacity:.45;cursor:not-allowed}.muted{color:var(--muted)}[hidden]{display:none!important}
.startup-view{position:absolute;z-index:300;inset:0;display:grid;place-content:center;justify-items:center;gap:12px;background:var(--canvas);color:var(--muted)}
.login-view{height:100%;display:grid;place-items:center;background:radial-gradient(circle at 18% 20%,#e9f5ff 0,transparent 35%),linear-gradient(140deg,#f7fbff,#e8f1fb)}.login-card{width:min(430px,calc(100% - 32px));padding:42px;border-radius:12px;background:#fff;box-shadow:0 16px 45px rgba(15,108,189,.16);border:1px solid #dde8f2}.brand{display:flex;align-items:center;flex:0 0 auto;white-space:nowrap}.brand img{display:block;object-fit:contain}.brand-header img{width:auto;height:38px}.brand-login{display:block;width:min(300px,100%);margin-bottom:30px}.brand-login img{width:100%;height:auto}.login-card h1{margin:0 0 8px;font-size:25px;font-weight:600}.login-card p{color:var(--muted);margin:0 0 26px}.login-card label{display:grid;gap:7px;margin:15px 0;font-weight:600}.login-card input{height:44px;border:1px solid #aaa;border-radius:4px;padding:0 12px}.login-card small{display:block;text-align:center;margin-top:22px;color:var(--muted)}.form-error{padding:10px 12px;margin-top:14px;border-left:3px solid var(--danger);background:#fde7e9;color:#7a1710}.primary{background:var(--blue);color:#fff!important;border-radius:4px!important;padding:9px 16px!important}.primary:hover{background:var(--blue2)!important}.wide{width:100%;height:44px;margin-top:8px}
.login-mfa-card p{line-height:1.5;overflow-wrap:anywhere}.login-mfa-card p strong{color:var(--ink)}.login-otp-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:22px 0 16px}.login-card .login-otp-input{width:100%;height:54px;min-width:0;padding:0;text-align:center;font-size:25px;font-weight:600;font-variant-numeric:tabular-nums;border-color:#879eb2;border-radius:7px}.login-otp-input:focus{border-color:var(--blue);box-shadow:0 0 0 2px rgba(15,108,189,.15)}.login-mfa-links{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:10px;margin-top:20px}.login-mfa-links button{padding:7px 0;color:var(--blue);text-decoration:underline;text-underline-offset:2px}.login-mfa-links button:hover{color:var(--blue2)}
.mail-view{--folder-pane-width:260px;height:100%;display:grid;grid-template-rows:48px 50px minmax(0,1fr)}.topbar{display:flex;align-items:center;gap:22px;padding:0 16px;background:linear-gradient(180deg,#fafbfc 0,#eef1f4 100%);color:#253344;border-bottom:1px solid #d5dbe2;box-shadow:0 1px 4px rgba(35,51,68,.10)}.search-wrap{height:34px;display:flex;align-items:center;gap:8px;flex:0 1 620px;margin-left:70px;padding:0 10px;border:1px solid #cbd3dc;border-radius:5px;background:#fff;color:var(--muted);box-shadow:0 1px 2px rgba(35,51,68,.06)}.search-wrap input{min-width:80px;width:100%;border:0;outline:0;background:transparent}.search-wrap select{max-width:125px;height:30px;padding:0 20px 0 4px;border:0;outline:0;background-color:transparent;color:#374151;font-size:12px;cursor:pointer}.search-divider{width:1px;height:20px;flex:0 0 1px;background:#d7dde4}.search-spinner{width:15px;height:15px;flex:0 0 15px;border:2px solid #cbd6e1;border-top-color:var(--blue);border-radius:50%;animation:search-spin .65s linear infinite}@keyframes search-spin{to{transform:rotate(360deg)}}.top-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.icon-button{width:36px;height:36px;display:grid;place-items:center;border-radius:4px;color:inherit;font-size:20px}.icon-button:hover,.account-button:hover{background:rgba(45,78,113,.09)}.account-button{display:flex;align-items:center;gap:8px;padding:4px 8px;border-radius:4px;color:#253344}.account-button>span:first-child{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#3f79ad;color:#fff;font-weight:700}.live-state{display:flex;align-items:center;gap:6px;font-size:12px}.live-state i{width:8px;height:8px;border-radius:50%;background:#57d163;box-shadow:0 0 0 3px rgba(87,209,99,.18)}.live-state.off i{background:#f9a825;box-shadow:none}
.commandbar{display:flex;align-items:center;gap:4px;padding:7px 12px;border-bottom:1px solid var(--line);background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.08);z-index:3}.commandbar button{height:34px;padding:0 11px;border-radius:4px}.commandbar button:hover{background:#eee}.command-spacer{flex:1}
.mail-grid{min-height:0;display:grid;grid-template-columns:var(--folder-pane-width,260px) 6px var(--message-pane-width,390px) 6px minmax(320px,1fr);background:#fff}.folder-pane,.list-pane,.reading-pane{min-height:0;overflow:hidden}.folder-pane{position:relative;border-right:1px solid var(--line);background:#fafafa;padding:12px 8px}.folder-account{height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;overflow:hidden}.folder-account strong{overflow:hidden;text-overflow:ellipsis}.folder-list{height:calc(100% - 38px);overflow:auto}.folder-loading{position:absolute;z-index:8;inset:54px 8px 54px;display:grid;place-content:center;justify-items:center;gap:10px;background:rgba(250,250,250,.94);color:var(--muted);font-size:12px}.folder-loading-spinner{width:28px;height:28px;border:3px solid #cfd8e2;border-top-color:var(--blue);border-radius:50%;animation:folder-spin .7s linear infinite}@keyframes folder-spin{to{transform:rotate(360deg)}}.folder-item{width:100%;height:38px;display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;text-align:left;padding:0 10px;border-radius:4px;gap:6px}.folder-item:hover{background:#eee}.folder-item.active{background:var(--selected);color:#0a4b78}.folder-item strong{font-weight:600}.folder-item .count{font-size:12px;color:var(--blue);font-weight:700}.folder-indent{padding-left:24px}.folder-divider{height:1px;background:var(--line);margin:8px}.pane-resizer{position:relative;min-width:6px;cursor:col-resize;touch-action:none;background:#f7f7f7;z-index:4}.pane-resizer:after{content:"";position:absolute;top:0;bottom:0;left:2px;width:1px;background:#d2d2d2}.pane-resizer:hover:after,.pane-resizer:focus-visible:after,.pane-resizer.active:after{left:1px;width:3px;background:var(--blue)}body.pane-resizing{cursor:col-resize;user-select:none}.list-pane{display:grid;grid-template-rows:58px minmax(0,1fr) auto;border-right:1px solid var(--line)}.pane-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 10px 0 14px;border-bottom:1px solid var(--line)}.pane-heading>div:first-child{min-width:0}.pane-heading h2{margin:0;font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pane-heading span{font-size:12px;color:var(--muted)}.pane-heading-actions{display:flex;align-items:center;gap:4px}.pane-heading-actions select{width:116px;height:30px;padding:0 5px;border:1px solid #aaa;border-radius:3px;background:#fff;font-size:12px}.pane-heading button{font-size:20px}.message-list{overflow:auto}.message-row{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:7px;padding:12px 12px 11px;border-bottom:1px solid #ececec;cursor:pointer}.message-row:hover{background:var(--hover)}.message-row.active{background:var(--selected)}.message-row.unread{font-weight:700}.message-row.unread:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--blue)}.message-row input{grid-row:1/3;align-self:start;margin-top:4px}.message-sender,.message-subject-line{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-time{font-size:12px;color:var(--muted);white-space:nowrap}.message-subject-line{grid-column:2/3;margin-top:4px;font-size:13px;color:#444}.message-attachment{grid-column:3;grid-row:2;min-width:20px;height:20px;margin-top:1px;display:flex;align-items:center;justify-content:flex-end;color:#566574;font-weight:400}.paperclip-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.message-flags{color:#c239b3}.message-pagination{min-height:48px;display:flex;align-items:center;justify-content:center;gap:5px;padding:7px 8px;border-top:1px solid var(--line);background:#fafafa}.message-pagination button{width:34px;height:32px;border:1px solid #bbb;border-radius:4px;background:#fff;color:var(--blue);font-size:19px;line-height:1}.message-pagination button:hover:not(:disabled){background:#e9f3fc;border-color:#8bbbe3}.message-pagination button:disabled{color:#888;background:#f4f4f4}.message-pagination span{min-width:145px;text-align:center;font-size:12px;color:var(--muted);white-space:nowrap}.empty-list{padding:50px 25px;text-align:center;color:var(--muted)}
.reading-pane{overflow:auto;background:#f7f7f7;padding:10px}.empty-reading{height:100%;display:grid;place-content:center;text-align:center;color:var(--muted)}.empty-reading h2{margin:14px 0 4px;font-size:18px}.empty-reading p{margin:0}.empty-icon{font-size:42px;color:#8abce6}.message-view{min-height:100%;background:#fff;border:1px solid var(--line);border-radius:6px}.message-subject{display:block;padding:18px 20px;border-bottom:1px solid var(--line)}.message-subject-heading{display:flex;align-items:flex-start;gap:12px}.message-subject h1{min-width:0;font-size:21px;font-weight:600;margin:0;word-break:break-word}.message-view-actions{display:flex;flex:0 0 auto;gap:3px;margin-left:auto}.message-view-actions button{width:34px;height:32px;border-radius:4px;color:var(--blue);font-size:18px}.message-view-actions button:hover{background:#eee}.message-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.message-actions button{display:inline-flex;align-items:center;gap:6px;width:auto;min-height:32px;padding:0 10px;border:1px solid #b8c5d1;border-radius:4px;background:#fff;color:var(--blue);font-size:13px;white-space:nowrap}.message-actions button:hover{border-color:#8bbbe3;background:#eef6fc}.message-action-icon{font-size:17px;line-height:1}.message-meta{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;padding:15px 20px}.message-meta time{font-size:12px;color:var(--muted)}.sender-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#d8b4e2;color:#54245f;font-weight:700}.attachment-list{display:flex;flex-wrap:wrap;gap:8px;padding:0 20px}.attachment-chip{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:4px;background:#fafafa}.message-body{width:100%;min-height:500px;border:0;padding:10px 18px;background:#fff}
.remote-images{margin:0 20px 12px;padding:9px 12px;border-left:3px solid var(--blue);background:#eef6fc;color:#444}.remote-images button{color:var(--blue);font-weight:600;text-decoration:underline}.message-actions button.active{background:#d9edff;color:#074f88}
.message-security-warning{margin:0 20px 12px;padding:10px 12px;border-left:4px solid #b86e00;border-radius:3px;background:#fff4df;color:#5f3900;line-height:1.45}
.message-security-warning strong,.message-security-warning span{display:block}.message-security-warning strong{margin-bottom:2px;font-size:14px}
html[data-theme="dark"] .message-security-warning{background:#42351f;color:#ffe3ac}
@media(max-width:780px){.message-security-warning{margin-right:14px;margin-left:14px}}
.compose-dialog,.settings-dialog,.confirm-dialog{border:0;padding:0;box-shadow:var(--shadow);background:#fff}.compose-dialog::backdrop,.settings-dialog::backdrop,.confirm-dialog::backdrop{background:rgba(0,0,0,.38)}.compose-dialog{width:min(760px,calc(100vw - 28px));height:min(700px,calc(100vh - 60px));margin:auto;border-radius:8px;overflow:hidden}.compose-dialog form{height:100%;display:grid;grid-template-rows:48px auto minmax(180px,1fr) auto 54px}.compose-dialog header{display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:#f3f3f3;border-bottom:1px solid var(--line)}.compose-dialog header button{font-size:20px;padding:8px}.compose-fields{position:relative;padding:5px 14px;border-bottom:1px solid var(--line)}.compose-fields label{display:flex;align-items:center;border-bottom:1px solid #eee;min-height:40px}.compose-fields label span{width:76px;color:var(--muted)}.compose-fields input{min-width:0;flex:1;border:0;outline:0}.compose-fields #ccRow{gap:8px}.compose-fields #ccRow span{width:auto}.cc-toggle{position:absolute;right:12px;top:10px;color:var(--blue)}.recipient-suggestions{position:absolute;z-index:30;max-width:calc(100% - 28px);max-height:260px;overflow:auto;padding:4px;background:#fff;border:1px solid #aaa;border-radius:4px;box-shadow:0 8px 22px rgba(0,0,0,.2)}.recipient-suggestion{display:grid;width:100%;min-height:46px;padding:6px 10px;border-radius:3px;text-align:left}.recipient-suggestion:hover,.recipient-suggestion.active{background:#e9f3fc}.recipient-suggestion strong,.recipient-suggestion span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recipient-suggestion strong{font-weight:600}.recipient-suggestion span{color:var(--muted);font-size:12px}.compose-body{padding:16px;overflow:auto;line-height:1.5}.compose-body:empty:before{content:"Schrijf een bericht";color:#999}.compose-attachments{display:flex;gap:8px;overflow:auto;padding:4px 14px}.compose-dialog footer{display:flex;align-items:center;gap:10px;padding:8px 14px;border-top:1px solid var(--line)}.attach-button{padding:8px;cursor:pointer}.danger-link{color:var(--danger)}
.compose-dialog .compose-fields .compose-receipt-option{min-height:32px;padding:3px 0 0;border-bottom:0;cursor:pointer}.compose-dialog .compose-fields .compose-receipt-option input{flex:0 0 16px;min-width:16px;width:16px;height:16px;margin:0 8px 0 0;accent-color:var(--blue)}.compose-dialog .compose-fields .compose-receipt-option>span{flex:0 1 auto;width:auto;height:auto;margin:0;justify-content:flex-start;border:0;background:transparent;color:var(--ink);font-size:13px}
.compose-dialog .compose-fields .compose-subject-row>span{justify-content:flex-start;border:0;background:transparent;color:var(--muted)}.compose-dialog .compose-fields label.compose-receipt-option>span.compose-receipt-label{color:var(--ink)}
.read-receipt-dialog{width:min(480px,calc(100vw - 32px))}.read-receipt-dialog strong{overflow-wrap:anywhere}.read-receipt-dialog form>div{flex-wrap:wrap}.read-receipt-dialog .primary{background:var(--blue);border-color:var(--blue);color:#fff}.read-receipt-warning{padding:9px;border:1px solid #d19a36;border-radius:4px;background:#fff7e8;color:#573b13}
.standalone-compose-window body{background:var(--panel)}.standalone-compose-window:not(.compose-editor-ready) body:before{content:"Nieuw bericht openen…";position:fixed;z-index:2147483646;inset:0;display:grid;place-items:center;background:var(--panel);color:var(--muted);font-size:15px}.standalone-compose-window body>:not(#composeDialog):not(#toastRegion):not(#confirmDialog):not(#forwardAttachmentsDialog):not(#composeCloseDialog):not(#promptDialog){display:none!important}.standalone-compose-window .compose-dialog{inset:0;width:100vw;height:100vh;max-width:none;max-height:none;margin:0;border-radius:0;box-shadow:none}.standalone-compose-window .compose-dialog::backdrop{background:transparent}.standalone-compose-window .compose-dialog form{grid-template-rows:auto 42px minmax(180px,1fr) auto 54px}.standalone-compose-window .compose-dialog header{display:none}.standalone-compose-window .compose-body{min-height:0}.standalone-compose-window .toast-region{z-index:2147483647}
.standalone-calendar-event-window body{background:var(--panel)}.standalone-calendar-event-window:not(.calendar-event-window-ready) body:before{content:"Agenda-item openen…";position:fixed;z-index:2147483646;inset:0;display:grid;place-items:center;background:var(--panel);color:var(--muted);font-size:15px}.standalone-calendar-event-window body>:not(#calendarEventDialog):not(#calendarSchedulingDialog):not(#toastRegion):not(#confirmDialog){display:none!important}.standalone-calendar-event-window .calendar-event-dialog{inset:0;width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none}.standalone-calendar-event-window .calendar-event-dialog::backdrop{background:transparent}.standalone-calendar-event-window .calendar-event-dialog form{height:100%;max-height:none}.standalone-calendar-event-window .toast-region{z-index:2147483647}
.compose-outlook-control{display:flex}.compose-dialog .compose-fields{min-height:164px;padding:8px 18px 7px 122px}.compose-dialog .compose-fields label,.compose-dialog .compose-from-row{min-height:37px;border-bottom:1px solid #d8d8d8}.compose-dialog .compose-fields label>span,.compose-dialog .compose-address-button{width:78px;height:32px;display:flex;align-items:center;justify-content:center;flex:0 0 78px;margin-right:12px;border:1px solid #b7b7b7;border-radius:3px;background:#fff;color:var(--ink)}.compose-dialog .compose-fields label:first-of-type{padding-right:42px}.compose-dialog .compose-fields label:last-of-type>span{justify-content:flex-start;border:0;background:transparent;color:var(--muted)}.compose-dialog .compose-fields input{height:36px;background:transparent}.compose-dialog .compose-from-row{align-items:center}.compose-dialog .compose-address-button i{width:7px;height:7px;margin:-3px 0 0 9px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg)}.compose-dialog .compose-from-address{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#4f5964}.compose-dialog .compose-send-top{position:absolute;left:18px;top:15px;width:80px;height:78px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid #9aa5b1;border-radius:4px;background:#fff;color:#202b36}.compose-dialog .compose-send-top:hover{border-color:#6f7d8b;background:#f1f5f8}.compose-dialog .compose-send-top svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}.compose-dialog .cc-toggle{top:48px;right:20px;height:32px;padding:0 4px;background:var(--panel)}.compose-dialog .recipient-suggestions{left:122px;max-width:calc(100% - 140px)}.compose-dialog footer>button[type="submit"]{display:none}
.settings-dialog{width:min(980px,calc(100vw - 30px));height:min(760px,calc(100vh - 50px));border-radius:8px;overflow:hidden}.settings-layout{height:100%;display:grid;grid-template-columns:230px 1fr}.settings-layout aside{padding:22px 10px;background:#f3f3f3;border-right:1px solid var(--line)}.settings-layout aside h2{padding:0 12px}.settings-layout aside button{display:block;width:100%;text-align:left;padding:10px 12px;border-radius:4px}.settings-layout aside button.active{background:var(--selected);color:#0a4b78;font-weight:600}.settings-layout>section{min-width:0;display:grid;grid-template-rows:64px 1fr}.settings-layout>section>header{display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid var(--line)}.settings-layout>section>header button{font-size:24px}.settings-content{padding:24px;overflow:auto}.settings-section{max-width:680px}.settings-section h3{margin-top:0}.settings-form{display:grid;gap:14px}.settings-form label{display:grid;gap:6px}.settings-form input,.settings-form textarea,.settings-form select{width:100%;padding:8px;border:1px solid #aaa;border-radius:3px}.settings-form .check{display:flex;align-items:center;gap:8px}.settings-form .check input{width:auto}.settings-form button{justify-self:start}.settings-list{border-top:1px solid var(--line)}.settings-list-row{display:flex;align-items:center;gap:10px;padding:10px 4px;border-bottom:1px solid var(--line)}.settings-list-row>div{flex:1}.settings-card{padding:16px;border:1px solid var(--line);border-radius:5px;margin-bottom:16px}.settings-card h4{margin:0 0 12px}.inline-form{display:flex;align-items:end;gap:8px}.inline-form label{flex:1}.badge{display:inline-block;padding:2px 7px;border-radius:10px;background:#e6f2ff;color:#0a4b78;font-size:12px}
.confirm-dialog{width:min(430px,calc(100vw - 32px));border-radius:8px}.confirm-dialog form{padding:22px}.confirm-dialog h2{margin-top:0}.confirm-dialog form>div{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.confirm-dialog button{padding:8px 14px;border-radius:4px;border:1px solid #bbb}.confirm-dialog .danger{background:var(--danger);border-color:var(--danger);color:#fff}.confirm-dialog label{display:grid;gap:7px}.confirm-dialog input{width:100%;padding:9px;border:1px solid #aaa}.toast-region{position:fixed;right:18px;bottom:18px;z-index:100;display:grid;gap:8px}.toast{min-width:280px;max-width:430px;padding:12px 15px;border-radius:5px;background:#323130;color:#fff;box-shadow:var(--shadow)}.toast.error{background:#a4262c}.skeleton-list{height:480px;background:repeating-linear-gradient(#fff 0 69px,#eee 70px),linear-gradient(90deg,transparent,#f5f5f5,transparent);animation:pulse 1.4s infinite}@keyframes pulse{50%{opacity:.55}}
.folder-item{grid-template-columns:16px 22px minmax(0,1fr) auto;padding-left:calc(8px + var(--folder-depth,0) * 18px);gap:4px}.folder-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.folder-toggle{display:grid;place-items:center;width:16px;height:24px;font-size:18px;color:#555}.folder-toggle.empty{visibility:hidden}.folder-indent{padding-left:calc(8px + var(--folder-depth,0) * 18px)}
.folder-item .count:not(:empty){min-width:20px;height:20px;display:grid;place-items:center;padding:0 6px;border-radius:10px;background:var(--blue);color:#fff;font-size:11px;line-height:20px}.folder-item.active .count:not(:empty){background:#0a4b78}
.attachment-group{display:inline-flex;min-width:0;align-items:stretch}.attachment-group .attachment-chip{border-radius:4px 0 0 4px}.attachment-download{display:grid;place-items:center;min-width:36px;border:1px solid var(--line);border-left:0;border-radius:0 4px 4px 0;background:#fafafa;font-size:18px;text-decoration:none}.attachment-chip:hover,.attachment-download:hover{background:#eef6fc}
.attachment-chip{min-width:0;color:inherit;text-decoration:none}.attachment-details{min-width:0;display:grid;gap:2px}.attachment-name{max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-details small{color:var(--muted);font-size:11px}.attachment-file-icon{position:relative;width:31px;height:38px;display:grid;flex:0 0 31px;place-items:end center;padding:0 2px 6px;overflow:hidden;border-radius:3px;background:#687681;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);font-weight:800;line-height:1}.attachment-file-icon:before{content:"";position:absolute;top:0;right:0;width:9px;height:9px;background:rgba(255,255,255,.62);clip-path:polygon(0 0,100% 100%,0 100%)}.attachment-file-icon span{max-width:100%;overflow:hidden;font-size:9px;letter-spacing:-.02em;white-space:nowrap}.attachment-file-icon.file-word{background:#185abd}.attachment-file-icon.file-excel{background:#107c41}.attachment-file-icon.file-powerpoint{background:#c43e1c}.attachment-file-icon.file-pdf{background:#d13438}.attachment-file-icon.file-image{background:#8764b8}.attachment-file-icon.file-audio{background:#c239b3}.attachment-file-icon.file-video{background:#008272}.attachment-file-icon.file-archive{background:#ca5010}.attachment-file-icon.file-calendar{background:#0078d4}.attachment-file-icon.file-mail{background:#5b5fc7}.attachment-file-icon.file-text{background:#5c6b73}.attachment-file-icon.file-code{background:#7a7574}.attachment-file-icon.file-audio span,.attachment-file-icon.file-video span,.attachment-file-icon.file-mail span{font-size:14px}
.attachment-preview-dialog{width:min(1100px,calc(100vw - 36px));height:min(820px,calc(100vh - 36px));max-width:none;max-height:none;padding:0;border:0;border-radius:8px;background:#fff;color:var(--text);box-shadow:0 18px 55px rgba(0,0,0,.3)}.attachment-preview-dialog::backdrop{background:rgba(14,24,36,.55)}.attachment-preview-card{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.attachment-preview-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:14px 18px;border-bottom:1px solid var(--line)}.attachment-preview-card h2{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px}.attachment-preview-card header p{margin:3px 0 0;color:var(--muted);font-size:12px}.attachment-preview-close{width:34px;height:34px;flex:0 0 34px;border-radius:4px;font-size:24px;line-height:1}.attachment-preview-close:hover{background:#eee}.attachment-preview-content{position:relative;min-height:0;display:grid;place-items:start center;overflow:auto;background:#eef1f5}.attachment-preview-media{display:block;max-width:100%;max-height:100%;width:auto;height:auto;border:0}.attachment-preview-content img.attachment-preview-media{place-self:center;object-fit:contain}.attachment-preview-spinner{position:absolute;z-index:2;place-self:center;width:34px;height:34px;border:4px solid #ced9e4;border-top-color:var(--blue);border-radius:50%;animation:search-spin .7s linear infinite}.attachment-preview-pdf-page{display:block;max-width:calc(100% - 40px);height:auto;margin:20px auto;background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.2)}.attachment-preview-text{width:100%;min-height:100%;margin:0;padding:22px;overflow:visible;background:#fff;color:#242424;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.5 Consolas,"Courier New",monospace}.attachment-preview-unavailable{place-self:center;max-width:440px;display:grid;justify-items:center;gap:10px;padding:28px;text-align:center;color:var(--muted)}.attachment-preview-unavailable>span{font-size:52px}.attachment-preview-unavailable strong{color:var(--text);font-size:17px}.attachment-preview-unavailable p{margin:0}.attachment-preview-card>footer{display:flex;align-items:center;gap:8px;padding:12px 18px;border-top:1px solid var(--line)}.attachment-preview-spacer{flex:1}.attachment-preview-pages{display:flex;align-items:center;gap:7px}.attachment-preview-pages span{min-width:100px;text-align:center;color:var(--muted);font-size:12px}.attachment-preview-card>footer a{display:inline-flex;align-items:center;text-decoration:none}.attachment-preview-card>footer .button,.attachment-preview-card>footer button{min-height:34px;padding:7px 13px;border:1px solid #aaa;border-radius:4px;background:#fff;color:inherit}.attachment-preview-pages button{min-width:34px;padding:5px!important;font-size:19px;line-height:1}.attachment-preview-card>footer .primary{border-color:var(--blue);background:var(--blue);color:#fff}
.standalone-attachment-body{background:#eef1f5}.attachment-preview-dialog.attachment-preview-standalone{inset:0;width:100vw;height:100vh;margin:0;border-radius:0;box-shadow:none}.attachment-preview-dialog.attachment-preview-standalone::backdrop{background:#eef1f5}.standalone-attachment-loading{height:100%;display:grid;place-content:center;justify-items:center;gap:12px;color:var(--muted)}html[data-theme="dark"] .attachment-preview-dialog.attachment-preview-standalone::backdrop{background:#15191e}
.message-source-dialog{width:min(1100px,calc(100vw - 36px));height:min(820px,calc(100vh - 36px));padding:0;border:0;border-radius:8px;overflow:hidden;background:#fff;color:var(--ink);box-shadow:var(--shadow)}.message-source-dialog::backdrop{background:rgba(14,24,36,.55)}.message-source-shell{height:100%;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto}.message-source-shell>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:14px 18px;border-bottom:1px solid var(--line);background:#f6f8fa}.message-source-shell>header h2{max-width:900px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:18px}.message-source-shell>header p{margin:3px 0 0;color:var(--muted);font-size:12px}.message-source-shell>header button{width:34px;height:34px;flex:0 0 34px;border-radius:4px;font-size:24px}.message-source-shell>header button:hover{background:#e6ebef}.message-source-shell>main{position:relative;min-height:0;overflow:hidden;background:#f4f6f8}.message-source-loading{height:100%;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted)}.message-source-loading .folder-loading-spinner{display:inline-block}.message-source-shell pre{width:100%;height:100%;margin:0;padding:18px;overflow:auto;background:#fff;color:#20262d;white-space:pre;tab-size:4;font:13px/1.5 Consolas,"Courier New",monospace;user-select:text}.message-source-shell>footer{display:flex;align-items:center;gap:8px;padding:11px 16px;border-top:1px solid var(--line);background:#f8f9fa}.message-source-shell>footer button,.message-source-shell>footer .button{min-height:34px;display:inline-flex;align-items:center;padding:7px 13px;border:1px solid #aab2ba;border-radius:4px;background:#fff;color:inherit;text-decoration:none}.message-source-shell>footer button:disabled{opacity:.55}
.message-authentication{display:flex;align-items:center;gap:14px;padding:9px 16px;border-bottom:1px solid var(--line);background:#fbfcfd}.message-authentication>strong{flex:0 0 auto;color:#3f4b57;font-size:12px}.message-authentication>div{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.message-auth-result{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:3px 8px 3px 5px;border:1px solid #c4cbd2;border-radius:14px;background:#f4f5f6;color:#59636d;font-size:11px}.message-auth-result i{width:18px;height:18px;display:grid;place-items:center;border-radius:50%;background:#818a93;color:#fff;font:700 14px/1 "Segoe UI",sans-serif}.message-auth-result b{color:inherit;font-size:11px}.message-auth-result.success{border-color:#82b87b;background:#eaf6e8;color:#286f24}.message-auth-result.success i{background:#3b9334}.message-auth-result.error{border-color:#cf8580;background:#fbe8e7;color:#94291e}.message-auth-result.error i{background:#c43b2f}.message-auth-result.warning{border-color:#d6ac58;background:#fff4da;color:#805600}.message-auth-result.warning i{background:#c48b19}
.message-authentication[hidden]{display:none}
.message-source-shell:has(> .message-authentication[hidden]){grid-template-rows:auto minmax(0,1fr) auto}
@media(max-width:620px){.message-source-dialog{width:100vw;height:100vh;max-width:none;max-height:none;border-radius:0}.message-source-shell>header h2{max-width:calc(100vw - 85px)}.message-authentication{align-items:flex-start;flex-direction:column;gap:7px}.message-source-shell>footer{overflow-x:auto}.message-source-shell>footer .command-spacer{display:none}}
.message-context-menu{position:fixed;z-index:250;width:255px;padding:6px;background:#fff;border:1px solid #c8c8c8;border-radius:6px;box-shadow:0 8px 26px rgba(0,0,0,.22)}.message-context-menu button{width:100%;height:34px;display:grid;grid-template-columns:30px 1fr;align-items:center;padding:0 9px;border-radius:3px;text-align:left}.message-context-menu button:hover,.message-context-menu button:focus{background:#e9f3fc;outline:0}.message-context-menu button span:first-child{color:var(--blue);text-align:center}.message-context-menu .danger-item,.message-context-menu .danger-item span:first-child{color:var(--danger)}.context-separator{height:1px;margin:5px 7px;background:var(--line)}
.standalone-message-body{overflow:hidden;background:#f3f6f9}.standalone-message{height:100%;min-height:0;display:grid;grid-template-rows:32px 52px minmax(0,1fr);overflow:hidden}.standalone-message>header{position:relative;z-index:5;display:flex;align-items:center;gap:14px;padding:0 15px;background:linear-gradient(180deg,#fafbfc 0,#eef1f4 100%);color:#253344;border-bottom:1px solid #d5dbe2;box-shadow:0 1px 4px rgba(35,51,68,.10)}.standalone-message>header .window-title{min-width:0;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.standalone-message>header .window-actions{display:flex;flex:0 0 auto;gap:3px;margin-left:auto}.standalone-message>header button{height:34px;padding:0 11px;border-radius:4px;color:#253344}.standalone-message>header button:hover{background:rgba(45,78,113,.09)}.standalone-message main{width:100%;min-height:0;margin:0;padding:14px;overflow:auto}.standalone-message .message-view{width:100%;min-height:100%}.standalone-message .message-body{display:block;width:100%;padding:0;overflow:hidden}
.standalone-message-body,.standalone-message{width:100%;max-width:100%;min-width:0}.standalone-message>header,.standalone-message main,.standalone-message .message-view,.standalone-message .message-subject,.standalone-message .message-meta{min-width:0;max-width:100%}.standalone-message>header{overflow:hidden}.standalone-message>header .window-actions{min-width:0;overflow:hidden}.standalone-message .message-subject h1,.standalone-message .message-meta>div{min-width:0}
@media(max-width:900px){.standalone-message>header{gap:6px;padding:0 8px}.standalone-message>header .window-title{display:none}.standalone-message>header button{padding:0 7px;font-size:12px}}
.message-row.multi-selected{background:#deefff}.message-row.multi-selected.active{background:#c7e5ff}.message-row.keyboard-focus:not(.active){background:#eaf4fc;box-shadow:inset 3px 0 var(--blue)}.message-row.multi-selected.keyboard-focus{background:#c7e5ff}.message-row.keyboard-focus:focus{outline:2px solid var(--blue);outline-offset:-2px}.message-row.dragging{opacity:.42;cursor:grabbing}.folder-item.drag-target{background:#d9edff!important;box-shadow:inset 0 0 0 2px var(--blue);color:#074f88}
.message-row.message-entering{animation:message-row-enter .18s ease-out}.message-row.message-removing{opacity:.35;transform:translateX(-8px);pointer-events:none;transition:opacity .14s ease,transform .14s ease}@keyframes message-row-enter{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.message-row.message-entering{animation:none}.message-row.message-removing{transition:none}}
.message-search-loading{height:100%;min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--muted);text-align:center}.message-search-spinner{width:30px;height:30px;border:3px solid #d8e2ec;border-top-color:var(--blue);border-radius:50%;animation:search-spin .7s linear infinite}.message-search-loading strong{font-weight:600}
.message-row.search-result{grid-template-columns:minmax(0,1fr) auto}.message-row.search-result .message-sender{grid-column:1;grid-row:1;min-width:0}.message-row.search-result .message-time{grid-column:2;grid-row:1}.message-row.search-result .message-subject-line{grid-column:1;grid-row:2;min-width:0}.message-row.search-result .message-attachment{grid-column:2;grid-row:2}
.xelamail-search-highlight{padding:0 .04em;border-radius:2px;background:#ffe46b;color:inherit;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.mobile-only{display:none}
.folder-account{height:76px;align-items:flex-start;padding:4px 10px}.folder-account-main{min-width:0;flex:1}.folder-account-main>strong{display:block;height:24px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.folder-list{height:calc(100% - 76px)}.mailbox-quota{padding:2px 0 5px}.mailbox-quota-text{display:flex;justify-content:space-between;gap:7px;font-size:11px;color:var(--muted);white-space:nowrap}.mailbox-quota-track{height:5px;margin-top:5px;overflow:hidden;border-radius:4px;background:#ddd}.mailbox-quota-track span{display:block;height:100%;min-width:1px;border-radius:inherit;background:var(--blue);transition:width .2s ease}.mailbox-quota.warning .mailbox-quota-track span{background:#ca8a04}.mailbox-quota.critical .mailbox-quota-track span{background:var(--danger)}
.folder-account{height:42px;align-items:center}.folder-list{height:calc(100% - 42px)}.account-add-button{width:100%;height:32px;padding:0 8px;border-radius:4px;text-align:left;color:var(--blue);font-weight:600}.account-add-button:hover{background:#e9f3fc}.folder-account-group{margin-bottom:7px}.folder-account-root{width:100%;height:36px;display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:4px;padding:0 8px;border-radius:4px;text-align:left}.folder-account-root:hover{background:#eee}.folder-account-root.active{color:#0a4b78}.folder-account-root strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.folder-account-root .account-unread:not(:empty){min-width:20px;height:20px;display:grid;place-items:center;padding:0 6px;border-radius:10px;background:var(--blue);color:#fff;font-size:11px}.folder-account-folders .folder-item{padding-left:calc(18px + var(--folder-depth,0) * 18px)}
.folder-account-root[draggable="true"]{cursor:grab}.folder-account-root.account-dragging{opacity:.42;cursor:grabbing}.folder-account-root.account-drop-before{box-shadow:inset 0 3px var(--blue)}.folder-account-root.account-drop-after{box-shadow:inset 0 -3px var(--blue)}
.accounts-dialog{width:min(620px,calc(100vw - 30px));max-height:min(760px,calc(100vh - 50px));padding:0;border:0;border-radius:8px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}.accounts-dialog::backdrop{background:rgba(0,0,0,.38)}.accounts-dialog>form{display:grid;grid-template-rows:auto minmax(80px,1fr) auto auto auto;max-height:inherit}.accounts-dialog header{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 22px 14px;border-bottom:1px solid var(--line)}.accounts-dialog header h2{margin:0 0 4px}.accounts-dialog header p{margin:0;color:var(--muted)}.accounts-dialog header>button{font-size:24px}.account-manager-list{padding:8px 22px;overflow:auto}.account-manager-row{display:flex;align-items:center;gap:10px;min-height:48px;border-bottom:1px solid var(--line)}.account-manager-row>div{min-width:0;flex:1}.account-manager-row strong,.account-manager-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-add-fields{display:grid;gap:10px;padding:16px 22px;border-top:1px solid var(--line);background:#fafafa}.account-add-fields h3{margin:0}.account-add-fields label{display:grid;gap:5px;font-weight:600}.account-add-fields input{height:38px;padding:0 10px;border:1px solid #aaa;border-radius:4px}.account-add-fields .primary{justify-self:start}.account-session-note{padding:10px 22px;color:var(--muted);font-size:13px;line-height:1.35;background:#f6f9fc;border-top:1px solid var(--line)}.accounts-dialog footer{display:flex;align-items:center;justify-content:space-between;padding:12px 22px;border-top:1px solid var(--line)}.accounts-dialog footer button{padding:8px 12px;border-radius:4px}.accounts-dialog footer button:last-child{border:1px solid #aaa;background:#fff}
@media(max-width:1050px){.mail-view{--folder-pane-width:220px}.mail-grid{--message-pane-width:350px}.search-wrap{margin-left:20px}}
@media(max-width:780px){.mobile-only{display:grid}.mail-view{grid-template-rows:48px 46px minmax(0,1fr)}.topbar{gap:8px;padding:0 8px}.brand-header img{width:112px;height:auto}.account-button span:last-child,.live-state{display:none}.search-wrap{margin:0;flex:1}.commandbar{overflow:auto}.commandbar button span{display:none}.mail-grid{grid-template-columns:1fr}.pane-resizer{display:none}.folder-pane{position:fixed;z-index:20;top:48px;bottom:0;left:0;width:min(310px,85vw);transform:translateX(-105%);transition:.18s;box-shadow:var(--shadow)}.folder-pane.open{transform:translateX(0)}.list-pane{grid-column:1;grid-row:1}.reading-pane{position:fixed;inset:94px 0 0;z-index:9;display:none;padding:0}.reading-pane.open{display:block}.message-view{border-radius:0;border:0}.message-body{min-height:calc(100vh - 280px)}.settings-layout{grid-template-columns:1fr}.settings-layout aside{display:none}.compose-dialog{width:100vw;height:100vh;max-width:none;max-height:none;border-radius:0}.settings-dialog{width:100vw;height:100vh;max-width:none;max-height:none;border-radius:0}.inline-form{display:grid}}

/* Klassieke applicatiemenu's tussen de titelbalk en de berichtacties. */
.mail-view{grid-template-rows:48px 31px 50px minmax(0,1fr)}
.app-menubar{position:relative;z-index:15;display:flex;align-items:center;gap:1px;padding:0 11px;border-bottom:1px solid #d9dde2;background:#f8f9fa;color:#273444}
.app-menu{position:relative;height:100%;display:flex;align-items:center}
.app-menu-trigger{height:26px;padding:0 11px;border-radius:4px;font-size:13px}
.app-menu-trigger:hover,.app-menu.open>.app-menu-trigger{background:#e3e8ed}
.app-menu-popup{position:absolute;z-index:30;top:28px;left:0;width:220px;padding:5px;border:1px solid #c9cfd6;border-radius:6px;background:#fff;box-shadow:0 9px 26px rgba(24,38,52,.18)}
.app-menu-popup button{width:100%;min-height:34px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:6px 10px;border-radius:4px;text-align:left}
.app-menu-popup button:hover,.app-menu-popup button:focus-visible{background:#eaf2f9;outline:0}
.app-menu-popup kbd{color:#697482;font:12px "Segoe UI",sans-serif}
.app-menu-separator{display:block;height:1px;margin:4px 6px;background:#e1e4e8}
.app-menu-label{display:block;padding:6px 10px 4px;color:#697482;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.app-menu-popup button[data-reading-layout]{grid-template-columns:18px minmax(0,1fr);gap:5px}
.app-menu-check{color:var(--blue);font-weight:700;text-align:center}

@media(min-width:781px){
  .mail-grid.reading-bottom{grid-template-columns:var(--folder-pane-width,260px) 6px minmax(320px,1fr);grid-template-rows:minmax(180px,var(--message-pane-height,42%)) 6px minmax(240px,1fr)}
  .mail-grid.reading-bottom .folder-pane{grid-column:1;grid-row:1/4}
  .mail-grid.reading-bottom #folderPaneResizer{grid-column:2;grid-row:1/4}
  .mail-grid.reading-bottom .list-pane{grid-column:3;grid-row:1;border-right:0;border-bottom:1px solid var(--line)}
  .mail-grid.reading-bottom #messagePaneResizer{grid-column:3;grid-row:2;min-width:0;min-height:6px;cursor:row-resize}
  .mail-grid.reading-bottom #messagePaneResizer:after{top:2px;right:0;bottom:auto;left:0;width:auto;height:1px}
  .mail-grid.reading-bottom #messagePaneResizer:hover:after,.mail-grid.reading-bottom #messagePaneResizer:focus-visible:after,.mail-grid.reading-bottom #messagePaneResizer.active:after{top:1px;left:0;width:auto;height:3px}
  .mail-grid.reading-bottom .reading-pane{grid-column:3;grid-row:3}
  .mail-grid.reading-off{grid-template-columns:var(--folder-pane-width,260px) 6px minmax(320px,1fr)}
  .mail-grid.reading-off .list-pane{grid-column:3;border-right:0}
  .mail-grid.reading-off #messagePaneResizer,.mail-grid.reading-off .reading-pane{display:none}
  body.pane-resizing-horizontal{cursor:row-resize;user-select:none}
}

/* Over XelaMail en de updatebediening. */
.about-dialog{width:min(500px,calc(100vw - 32px));border:0;padding:0;border-radius:10px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}
.about-dialog::backdrop{background:rgba(0,0,0,.38)}
.about-card>header{height:82px;display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:linear-gradient(180deg,#fafbfc,#eef1f4);border-bottom:1px solid #d8dde3}
.about-card>header img{width:225px;height:auto}
.about-card>header button{width:34px;height:34px;border-radius:5px;font-size:24px}
.about-card>header button:hover{background:rgba(45,78,113,.09)}
.about-card>section{padding:22px 24px}
.about-card h2{margin:0 0 7px;font-size:22px}
.about-card p{margin:0;color:var(--muted)}
.about-versions{margin:20px 0 0;border:1px solid #e0e4e8;border-radius:6px}
.about-versions>div{display:grid;grid-template-columns:145px minmax(0,1fr);gap:12px;padding:11px 13px}
.about-versions>div+div{border-top:1px solid #e0e4e8}
.about-versions dt{font-weight:600}
.about-versions dd{margin:0;color:#4d5966}
.about-update-status{min-height:20px!important;margin-top:15px!important}
.about-card>footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:13px 20px;border-top:1px solid #dfe3e7;background:#f8f9fa}
.about-card>footer button,.about-download{min-height:36px;padding:8px 13px;border:1px solid #b8c0c8;border-radius:4px;background:#fff;text-decoration:none}
.about-card>footer .primary{border-color:var(--blue);background:var(--blue);color:#fff}
.about-download{margin-right:auto;color:var(--blue)}

@media(max-width:780px){.mail-view{grid-template-rows:48px 31px 46px minmax(0,1fr)}.app-menubar{padding-left:7px}.folder-pane{top:79px}.reading-pane{inset:125px 0 0}.message-body{min-height:calc(100vh - 311px)}.about-card>header img{width:200px}.about-versions>div{grid-template-columns:1fr;gap:3px}.about-card>footer{flex-wrap:wrap}.about-download{width:100%;margin:0;text-align:center}}

/* Het volledige mailboxpaneel kan tot een smalle, heropenbare rail worden ingeklapt. */
.folder-account>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#344354;font-size:13px}
.folder-pane-controls{display:flex;align-items:center;gap:3px;margin-left:auto}
.folder-pane-collapse{width:30px;height:30px;display:grid;place-items:center;border-radius:4px;color:#315b82;font-size:22px;line-height:1}
.folder-pane-collapse:hover{background:#e5edf4}
.folder-account-label{min-width:0;display:flex;align-items:center;gap:6px}
.folder-account-label strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shared-mailbox-tag,.shared-mailbox-badge{display:inline-flex;align-items:center;justify-content:center;border:1px solid #9fc4e4;border-radius:9px;background:#e9f4fd;color:#155a8f;font-size:10px;font-weight:700;line-height:16px;letter-spacing:.025em;text-transform:uppercase;white-space:nowrap}
.shared-mailbox-tag{height:17px;padding:0 6px}
.shared-mailbox-group>.folder-account-root{box-shadow:inset 3px 0 #67a6d7}
.shared-mailbox-group>.folder-account-root:hover{background:#edf6fd}
.shared-mailbox-group>.folder-account-root.active{background:#dceefd}
.folder-title-line,.folder-subtitle-line{min-width:0;display:flex;align-items:center;gap:7px}
.folder-title-line h2{min-width:0}
.shared-mailbox-badge{height:18px;padding:0 7px}
.folder-subtitle-line{margin-top:2px;overflow:hidden;white-space:nowrap}
.shared-mailbox-owner{max-width:190px;overflow:hidden;text-overflow:ellipsis;color:#155a8f!important;font-weight:600}
.shared-mailbox-owner:not([hidden])+#messageCount:before{content:"·";margin-right:7px;color:var(--muted)}
@media(min-width:781px){
  .mail-grid.folders-collapsed:not(.reading-bottom):not(.reading-off){grid-template-columns:42px 0 var(--message-pane-width,390px) 6px minmax(320px,1fr)}
  .mail-grid.reading-bottom.folders-collapsed,.mail-grid.reading-off.folders-collapsed{grid-template-columns:42px 0 minmax(320px,1fr)}
  .mail-grid.folders-collapsed .folder-pane{padding:4px}
  .mail-grid.folders-collapsed .folder-account{padding:0;justify-content:center}
  .mail-grid.folders-collapsed .folder-account>strong,.mail-grid.folders-collapsed .folder-list,.mail-grid.folders-collapsed .folder-loading,.mail-grid.folders-collapsed .mailbox-quota{display:none!important}
  .mail-grid.folders-collapsed .module-switcher{display:none!important}
  .mail-grid.folders-collapsed .folder-pane-controls{margin:0}
  .mail-grid.folders-collapsed #folderPaneResizer{display:block;min-width:0;visibility:hidden;pointer-events:none}
}
@media(max-width:780px){.folder-pane-collapse{display:none}}

/* Persoonlijk adresboek en afgeschermde domeindirectory. */
.address-book-dialog{width:min(1120px,calc(100vw - 28px));height:min(820px,calc(100vh - 36px));padding:0;border:0;border-radius:9px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}
.address-book-dialog::backdrop{background:rgba(0,0,0,.38)}
.address-book-shell{height:100%;display:grid;grid-template-rows:auto auto minmax(0,1fr)}
.address-book-shell>header{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 21px 14px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fafbfc,#f2f5f7)}
.address-book-shell>header h2{margin:0 0 4px}.address-book-shell>header p{margin:0;color:var(--muted)}.address-book-shell>header button{width:34px;height:34px;border-radius:4px;font-size:24px}.address-book-shell>header button:hover{background:#e6ebef}
.address-book-toolbar{display:flex;align-items:center;gap:9px;padding:10px 14px;border-bottom:1px solid var(--line)}
.address-book-toolbar>input{min-width:220px;height:36px;flex:1;padding:0 11px;border:1px solid #aab2ba;border-radius:4px}
.address-book-filters{display:flex;padding:2px;border:1px solid #c9cfd6;border-radius:5px;background:#f4f6f8}.address-book-filters button{height:30px;padding:0 11px;border-radius:3px}.address-book-filters button.active{background:#fff;color:#0a4b78;box-shadow:0 1px 3px rgba(0,0,0,.14);font-weight:600}
.address-book-body{min-height:0;display:grid;grid-template-columns:315px minmax(0,1fr)}
.address-book-list{overflow:auto;border-right:1px solid var(--line);background:#fafafa}
.address-book-group-title{position:sticky;top:0;z-index:1;padding:8px 13px 6px;background:#eef2f5;color:#596675;font-size:11px;font-weight:700;letter-spacing:.035em;text-transform:uppercase}
.address-book-item{width:100%;min-height:62px;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid #e8eaec;text-align:left}
.address-book-item:hover{background:#edf5fc}.address-book-item.active{background:#d8ecfc;box-shadow:inset 3px 0 var(--blue)}
.address-book-avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#d8e8f5;color:#24577e;font-weight:700}.address-book-item.directory .address-book-avatar{background:#e7e3f4;color:#584985}
.address-book-item strong,.address-book-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.address-book-item small{margin-top:2px;color:var(--muted)}
.address-book-empty{padding:38px 18px;color:var(--muted);text-align:center}
.contact-editor{min-width:0;overflow:auto;background:#fff}.contact-empty{height:100%;display:grid;place-content:center;justify-items:center;text-align:center;color:var(--muted)}.contact-empty>span{font-size:46px;color:#82b5dc}.contact-empty h3{margin:10px 0 3px}.contact-empty p{margin:0}
.contact-editor form{min-height:100%;padding:20px 24px}.contact-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.contact-editor-heading>div{display:flex;align-items:center;gap:9px}.contact-editor-heading h3{margin:0;font-size:21px}.contact-editor-heading .check{display:flex;align-items:center;gap:6px}
.contact-source-badge{padding:2px 8px;border-radius:10px;background:#e5f2fd;color:#155a8f;font-size:11px;font-weight:700}.contact-source-badge.directory{background:#eeeaf8;color:#584985}
.contact-readonly-notice{margin-bottom:15px;padding:9px 12px;border-left:3px solid #705da2;background:#f3f0fa;color:#4d416d}
.contact-editor fieldset{margin:0 0 15px;padding:13px;border:1px solid var(--line);border-radius:5px}.contact-editor legend{padding:0 6px;font-weight:700}.contact-editor label{display:grid;gap:5px;margin-bottom:10px;color:#46515d;font-size:12px;font-weight:600}.contact-editor input,.contact-editor textarea{width:100%;padding:8px 9px;border:1px solid #aab2ba;border-radius:4px;background:#fff;font-size:14px;color:var(--ink)}.contact-editor input:disabled,.contact-editor textarea:disabled{background:#f5f6f7;color:#5e6770}.contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.contact-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.contact-editor footer{position:sticky;bottom:-20px;display:flex;align-items:center;gap:8px;margin:6px -24px -20px;padding:12px 24px;border-top:1px solid var(--line);background:#f8f9fa}
@media(max-width:780px){.address-book-dialog{width:100vw;height:100vh;max-width:none;max-height:none;border-radius:0}.address-book-toolbar{flex-wrap:wrap}.address-book-toolbar>input{width:100%;flex-basis:100%}.address-book-body{grid-template-columns:1fr}.address-book-list{border-right:0}.contact-editor{position:absolute;z-index:2;inset:126px 0 0;display:none}.contact-editor.open{display:block}.contact-grid,.contact-grid.three{grid-template-columns:1fr}.contact-editor form{padding:16px}.contact-editor footer{margin-right:-16px;margin-left:-16px;padding-right:16px;padding-left:16px}.address-book-filters{flex:1}.address-book-filters button{flex:1}}

/* Outlook-achtige ontvangerkiezer voor Aan, Cc en Bcc. */
.compose-dialog .compose-recipient-picker{width:78px;height:32px;display:flex;align-items:center;justify-content:center;flex:0 0 78px;margin-right:12px;border:1px solid #b7b7b7;border-radius:3px;background:#fff;color:var(--ink)}.compose-dialog .compose-fields #ccRow{gap:0}
.compose-dialog .compose-recipient-picker:hover{border-color:#768696;background:#f1f5f8}
.standalone-compose-window body>#recipientPickerDialog#recipientPickerDialog#recipientPickerDialog#recipientPickerDialog#recipientPickerDialog#recipientPickerDialog[open]{display:block!important}
.recipient-picker-dialog{width:min(760px,calc(100vw - 28px));height:min(680px,calc(100vh - 36px));padding:0;border:0;border-radius:9px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}
.recipient-picker-dialog::backdrop{background:rgba(0,0,0,.38)}
.recipient-picker-shell{height:100%;display:grid;grid-template-rows:auto auto minmax(180px,1fr) auto auto}
.recipient-picker-shell>header{display:flex;align-items:flex-start;justify-content:space-between;padding:16px 20px 13px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fafbfc,#f2f5f7)}
.recipient-picker-shell>header h2{margin:0 0 3px;font-size:20px}.recipient-picker-shell>header p{margin:0;color:var(--muted)}.recipient-picker-shell>header button{width:34px;height:34px;border-radius:4px;font-size:24px}.recipient-picker-shell>header button:hover{background:#e6ebef}
.recipient-picker-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,260px);gap:12px;padding:12px 15px;border-bottom:1px solid var(--line)}
.recipient-picker-toolbar label{display:grid;gap:5px;color:#46515d;font-size:12px;font-weight:600}.recipient-picker-toolbar input,.recipient-picker-toolbar select{width:100%;height:36px;padding:0 10px;border:1px solid #aab2ba;border-radius:4px;background:#fff;color:var(--ink)}
.recipient-picker-list{min-height:0;overflow:auto;background:#fafafa;outline:0}.recipient-picker-list[aria-busy="true"]{display:grid;place-items:center}
.recipient-picker-group-title{position:sticky;top:0;z-index:1;padding:7px 13px 5px;background:#eef2f5;color:#596675;font-size:11px;font-weight:700;letter-spacing:.035em;text-transform:uppercase}
.recipient-picker-item{width:100%;min-height:56px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:7px 13px;border-bottom:1px solid #e8eaec;text-align:left}.recipient-picker-item:hover,.recipient-picker-item.active{background:#e2f1fc}.recipient-picker-item.active{box-shadow:inset 3px 0 var(--blue)}.recipient-picker-item.directory .address-book-avatar{background:#e7e3f4;color:#584985}
.recipient-picker-item.chosen .recipient-picker-source{color:#0875bd;font-weight:700}.recipient-picker-item.chosen .recipient-picker-source:after{content:" ✓"}
.recipient-picker-item>span:nth-child(2){min-width:0}.recipient-picker-item strong,.recipient-picker-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recipient-picker-item small{margin-top:2px;color:var(--muted)}.recipient-picker-item .recipient-picker-source{color:var(--muted);font-size:11px}
.recipient-picker-loading{display:flex;align-items:center;justify-content:center;gap:10px;padding:40px 18px;color:var(--muted)}.recipient-picker-loading .folder-loading-spinner{display:inline-block}
.recipient-picker-selections{display:grid;grid-template-columns:68px minmax(0,1fr);gap:7px 9px;padding:12px 15px;border-top:1px solid var(--line)}.recipient-picker-selections button{height:34px;border:1px solid #aab2ba;border-radius:4px;background:#fff}.recipient-picker-selections button.active{border-color:var(--blue);background:#e7f3fc;color:#07558f;font-weight:700}.recipient-picker-selections input{min-width:0;height:34px;padding:0 9px;border:1px solid #b8c0c8;border-radius:3px;background:#fff;color:var(--ink)}
.recipient-picker-selected-list{min-width:0;min-height:36px;display:flex;align-items:center;gap:5px;overflow-x:auto;padding:3px 5px;border:1px solid #b8c0c8;border-radius:3px;background:#fff}.recipient-picker-selections .recipient-picker-selected-chip{min-width:0;max-width:100%;height:28px;display:flex;align-items:center;gap:7px;padding:0 7px 0 9px;border:1px solid #9dbbd2;border-radius:14px;background:#edf6fc;color:#174a70}.recipient-picker-selected-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recipient-picker-selected-chip b{font-size:17px;font-weight:400;line-height:1}.recipient-picker-selections .recipient-picker-selected-chip:hover{border-color:#d06a63;background:#fff0ef;color:#9d241d}
.recipient-picker-shell>footer{display:flex;align-items:center;gap:9px;padding:10px 15px;border-top:1px solid var(--line);background:#f8f9fa}.recipient-picker-shell>footer span{min-width:0;flex:1;color:var(--muted);font-size:12px}.recipient-picker-shell>footer button{height:34px;min-width:88px;padding:0 16px;border:1px solid #aab2ba;border-radius:4px;background:#fff}.recipient-picker-shell>footer button.primary{border-color:var(--blue);background:var(--blue);color:#fff}
@media(max-width:620px){.recipient-picker-dialog{width:100vw;height:100vh;max-width:none;max-height:none;border-radius:0}.recipient-picker-toolbar{grid-template-columns:1fr}.recipient-picker-item .recipient-picker-source{display:none}.recipient-picker-shell>footer span{display:none}}

.migration-dialog{width:min(900px,calc(100vw - 30px));height:min(820px,calc(100vh - 40px));padding:0;border:0;border-radius:12px;overflow:hidden;background:#fff;box-shadow:var(--shadow)}
.migration-dialog::backdrop{background:rgba(15,23,42,.48)}
.migration-shell{height:100%;display:grid;grid-template-rows:auto auto minmax(0,1fr)}
.migration-shell>header{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 28px 16px;border-bottom:1px solid var(--line)}
.migration-shell>header h2{margin:0 0 4px;font-size:24px}.migration-shell>header p{margin:0;color:var(--muted)}.migration-shell>header>button{font-size:25px;padding:4px 8px}
.migration-steps{display:grid;grid-template-columns:repeat(5,1fr);margin:0;padding:18px 36px 16px;list-style:none;background:#f7f9fc;border-bottom:1px solid var(--line)}
.migration-steps li{position:relative;display:grid;justify-items:center;gap:5px;color:#7b8491;font-size:12px}.migration-steps li:not(:last-child)::after{content:"";position:absolute;z-index:0;top:15px;left:calc(50% + 18px);right:calc(-50% + 18px);height:2px;background:#d9dee7}
.migration-steps span{position:relative;z-index:1;display:grid;place-items:center;width:30px;height:30px;border:2px solid #d0d6df;border-radius:50%;background:#fff;font-weight:700}.migration-steps li.active,.migration-steps li.done{color:#174f80}.migration-steps li.active span,.migration-steps li.done span{border-color:#256fae;background:#256fae;color:#fff}.migration-steps li.done:not(:last-child)::after{background:#256fae}
.migration-content{overflow:auto;padding:26px 30px 32px}.migration-card{max-width:760px;margin:0 auto}.migration-card>h3{margin:0 0 6px;font-size:21px}.migration-card>.muted{margin-top:0}
.migration-form{display:grid;gap:18px;margin-top:22px}.migration-provider-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.migration-provider-option input{position:absolute;opacity:0;pointer-events:none}.migration-provider-option span{display:grid;place-items:center;min-height:54px;padding:8px;border:1px solid #c8d0da;border-radius:8px;background:#fff;text-align:center;font-weight:600;cursor:pointer}.migration-provider-option input:checked+span{border-color:#1976c9;background:#e8f3fd;color:#0b568f;box-shadow:0 0 0 1px #1976c9}
.migration-grid{display:grid;grid-template-columns:1fr 120px 170px;gap:12px}.migration-form label{display:grid;gap:6px;font-weight:600}.migration-form input,.migration-form select{width:100%;height:42px;padding:0 11px;border:1px solid #aeb6c0;border-radius:5px;background:#fff}.migration-form input:disabled,.migration-form select:disabled{background:#f1f3f5;color:#667085}.migration-provider-note{margin:0;padding:10px 12px;border-radius:5px;background:#eef5fb;color:#34536c;font-size:13px}.migration-security-note{display:flex;gap:9px;align-items:flex-start;padding:12px;border:1px solid #d8e5ef;border-radius:6px;background:#f8fbfd;font-size:13px;line-height:1.45}.migration-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:24px}.migration-actions .command-spacer{flex:1}
.migration-actions a.primary{display:inline-flex;align-items:center;text-decoration:none}.migration-actions .link-button{padding-left:0;color:var(--blue);background:transparent}.migration-oauth-wait{text-align:center}.migration-oauth-wait>.folder-loading-spinner{display:block;margin:8px auto 18px}.migration-oauth-wait .migration-provider-note{text-align:left;margin-top:18px}
.migration-security-note.warning{border-color:#e7b45d;background:#fff7e8;color:#754500}.migration-security-note.warning strong{display:block;margin-bottom:3px}
.migration-progress{margin:24px 0}.migration-progress-head{display:flex;justify-content:space-between;gap:16px;margin-bottom:9px}.migration-progress-track{height:12px;overflow:hidden;border-radius:999px;background:#e5eaf0}.migration-progress-track span{display:block;height:100%;min-width:2px;border-radius:inherit;background:linear-gradient(90deg,#176caa,#2d91d2);transition:width .35s ease}.migration-progress-message{margin:10px 0 0;color:var(--muted)}
.migration-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.migration-summary article{padding:15px;border:1px solid var(--line);border-radius:7px;background:#fafbfd}.migration-summary span,.migration-summary small{display:block;color:var(--muted)}.migration-summary b{display:block;margin:4px 0;font-size:20px}.migration-summary .warning{color:#9a5b00}
.migration-folders{margin-top:18px;border:1px solid var(--line);border-radius:7px;overflow:hidden}.migration-folders summary{padding:12px 14px;background:#f6f8fa;cursor:pointer;font-weight:600}.migration-folder-list{max-height:220px;overflow:auto}.migration-folder-row{display:grid;grid-template-columns:minmax(0,1fr) 100px 110px;gap:12px;padding:8px 14px;border-top:1px solid #edf0f3;font-size:13px}.migration-folder-row span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.migration-result{padding:18px;border-radius:8px;background:#f3f8fc;border:1px solid #d4e4f0}.migration-result.success{background:#f0f8f3;border-color:#b9ddc4}.migration-result.error{background:#fff3f2;border-color:#efc2bf}.migration-error{max-height:180px;overflow:auto;margin-top:14px;padding:12px;border-radius:5px;background:#fff;border:1px solid #e2b8b5;color:#8d2520;white-space:pre-wrap;font:12px/1.45 ui-monospace,monospace}
.migration-history{margin-top:30px;padding-top:18px;border-top:1px solid var(--line)}.migration-history h4{margin:0 0 10px}.migration-history-row{display:grid;grid-template-columns:minmax(0,1fr) 150px 130px;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #edf0f3}.migration-history-row button{text-align:left}.migration-status{justify-self:start;padding:3px 8px;border-radius:999px;background:#e8eef4;font-size:12px}.migration-status.succeeded{background:#dbf0e2;color:#216c39}.migration-status.failed{background:#fbe1df;color:#9c2923}.migration-status.running,.migration-status.checking,.migration-status.queued,.migration-status.pending_check{background:#dcecf9;color:#145b8f}
@media(max-width:780px){.migration-dialog{width:100vw;height:100vh;max-width:none;max-height:none;border-radius:0}.migration-shell>header{padding:16px}.migration-steps{padding:12px 8px}.migration-steps b{font-size:10px}.migration-content{padding:20px 16px}.migration-provider-options{grid-template-columns:repeat(2,1fr)}.migration-grid{grid-template-columns:1fr}.migration-summary{grid-template-columns:1fr}.migration-folder-row{grid-template-columns:minmax(0,1fr) 72px 82px}.migration-history-row{grid-template-columns:1fr auto}.migration-history-row time{display:none}}

/* Licht, donker of automatisch volgens het besturingssysteem. */
:root{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark;--blue:#58a9e6;--blue2:#308dcc;--blue-soft:#173d59;--ink:#f1f3f5;--muted:#aeb7c2;--line:#3a4149;--panel:#20252b;--canvas:#171b20;--hover:#28333d;--selected:#204d70;--danger:#ff8177;--shadow:0 10px 34px rgba(0,0,0,.52)}
.theme-setting-label{display:grid;gap:7px;font-weight:600}.theme-setting-label select{width:min(340px,100%);height:38px;padding:0 9px;border:1px solid #aaa;border-radius:4px;background:var(--panel)}
.app-menu-popup button[data-theme-choice]{grid-template-columns:18px minmax(0,1fr);gap:5px}

html[data-theme="dark"] body{background:var(--canvas);color:var(--ink)}
html[data-theme="dark"] .primary{background:#1473b9}html[data-theme="dark"] .primary:hover{background:#1a82cc!important}
html[data-theme="dark"] .brand img{filter:brightness(0) invert(1)}
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),html[data-theme="dark"] textarea,html[data-theme="dark"] select{border-color:#5a646f;background:#252b32;color:var(--ink)}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8e99a5}
html[data-theme="dark"] .login-view{background:radial-gradient(circle at 18% 20%,#183247 0,transparent 38%),linear-gradient(140deg,#171b20,#202a34)}
html[data-theme="dark"] .login-card{border-color:#39444e;background:#20252b;box-shadow:0 16px 45px rgba(0,0,0,.45)}
html[data-theme="dark"] .form-error{background:#4b2526;color:#ffb7b2}

html[data-theme="dark"] .topbar,html[data-theme="dark"] .standalone-message>header{border-color:#3a424b;background:linear-gradient(180deg,#252b31,#20252b);color:var(--ink);box-shadow:0 1px 4px rgba(0,0,0,.35)}
html[data-theme="dark"] .search-wrap{border-color:#4a5662;background:#171b20;color:var(--muted);box-shadow:none}
html[data-theme="dark"] .search-wrap select{color:#d8dee5}
html[data-theme="dark"] .search-divider{background:#46515d}
html[data-theme="dark"] .account-button{color:var(--ink)}
html[data-theme="dark"] .icon-button:hover,html[data-theme="dark"] .account-button:hover,html[data-theme="dark"] .standalone-message>header button:hover{background:#343c45}
html[data-theme="dark"] .standalone-message>header button{color:var(--ink)}
html[data-theme="dark"] .app-menubar{border-color:var(--line);background:#20252b;color:var(--ink)}
html[data-theme="dark"] .app-menu-trigger:hover,html[data-theme="dark"] .app-menu.open>.app-menu-trigger{background:#343c45}
html[data-theme="dark"] .app-menu-popup,html[data-theme="dark"] .message-context-menu{border-color:#4a535d;background:#252b32;box-shadow:0 10px 30px rgba(0,0,0,.5)}
html[data-theme="dark"] .app-menu-popup button:hover,html[data-theme="dark"] .app-menu-popup button:focus-visible,html[data-theme="dark"] .message-context-menu button:hover,html[data-theme="dark"] .message-context-menu button:focus{background:#303b45}
html[data-theme="dark"] .app-menu-separator,html[data-theme="dark"] .context-separator{background:var(--line)}
html[data-theme="dark"] .app-menu-label,html[data-theme="dark"] .app-menu-popup kbd{color:var(--muted)}
html[data-theme="dark"] .commandbar{border-color:var(--line);background:#20252b;box-shadow:0 1px 3px rgba(0,0,0,.32)}
html[data-theme="dark"] .commandbar button:hover{background:#343c45}

html[data-theme="dark"] .mail-grid{background:#1d2228}
html[data-theme="dark"] .folder-pane,html[data-theme="dark"] .message-pagination,html[data-theme="dark"] .mailbox-quota{background:#20252b}
html[data-theme="dark"] .folder-loading{background:rgba(32,37,43,.94)}
html[data-theme="dark"] .folder-loading-spinner{border-color:#4c5661;border-top-color:var(--blue)}
html[data-theme="dark"] .folder-item:hover,html[data-theme="dark"] .folder-account-root:hover{background:#2d343c}
html[data-theme="dark"] .folder-item.active{background:var(--selected);color:#d9efff}
html[data-theme="dark"] .folder-account-root.active,html[data-theme="dark"] .folder-account>strong{color:#cde9ff}
html[data-theme="dark"] .folder-toggle{color:#aeb7c2}
html[data-theme="dark"] .folder-pane-collapse{color:#9acdf2}
html[data-theme="dark"] .folder-pane-collapse:hover,html[data-theme="dark"] .account-add-button:hover{background:#2b3741}
html[data-theme="dark"] .pane-resizer{background:#1a1f24}
html[data-theme="dark"] .pane-resizer:after{background:#414951}
html[data-theme="dark"] .pane-heading-actions select{border-color:#59636e;background:#252b32}
html[data-theme="dark"] .message-row{border-color:#343b43}
html[data-theme="dark"] .message-subject-line{color:#c5ccd3}
html[data-theme="dark"] .xelamail-search-highlight{background:#a87800;color:#fff}
html[data-theme="dark"] .message-attachment{color:#aeb8c2}
html[data-theme="dark"] .message-row.multi-selected{background:#1d4665}
html[data-theme="dark"] .message-row.multi-selected.active,html[data-theme="dark"] .message-row.keyboard-focus:not(.active),html[data-theme="dark"] .message-row.multi-selected.keyboard-focus{background:#235578}
html[data-theme="dark"] .folder-item.drag-target{background:#24465f!important;color:#d8efff}
html[data-theme="dark"] .message-pagination button{border-color:#505a65;background:#252b32;color:var(--blue)}
html[data-theme="dark"] .message-pagination button:hover:not(:disabled){border-color:#559bd0;background:#2a3946}
html[data-theme="dark"] .message-pagination button:disabled{background:#20252b;color:#737d87}
html[data-theme="dark"] .skeleton-list{background:repeating-linear-gradient(#20252b 0 69px,#343b43 70px),linear-gradient(90deg,transparent,#293038,transparent)}

html[data-theme="dark"] .reading-pane,html[data-theme="dark"] .standalone-message-body{background:#171b20}
html[data-theme="dark"] .message-view{background:#20252b}
html[data-theme="dark"] .message-view-actions button:hover{background:#333b44}
html[data-theme="dark"] .message-actions button{border-color:#56616c;background:#252b32}
html[data-theme="dark"] .message-actions button:hover{background:#333b44}
html[data-theme="dark"] .message-actions button.active{background:#214c6b;color:#bfe3ff}
html[data-theme="dark"] .attachment-chip,html[data-theme="dark"] .attachment-download{background:#252b32}
html[data-theme="dark"] .attachment-chip:hover,html[data-theme="dark"] .attachment-download:hover{background:#303b45}
html[data-theme="dark"] .attachment-preview-dialog{background:#20252b;color:#f3f3f3}html[data-theme="dark"] .attachment-preview-content{background:#15191e}html[data-theme="dark"] .attachment-preview-close:hover{background:#303b45}html[data-theme="dark"] .attachment-preview-card>footer .button,html[data-theme="dark"] .attachment-preview-card>footer button{border-color:#56616c;background:#252b32;color:#f3f3f3}html[data-theme="dark"] .attachment-preview-card>footer .primary{border-color:var(--blue);background:var(--blue);color:#fff}
html[data-theme="dark"] .message-source-dialog{background:#20252b;color:var(--ink)}html[data-theme="dark"] .message-source-shell>header,html[data-theme="dark"] .message-source-shell>footer{border-color:var(--line);background:#252b32}html[data-theme="dark"] .message-source-shell>main{background:#15191e}html[data-theme="dark"] .message-source-shell pre{background:#171b20;color:#dce5ec}html[data-theme="dark"] .message-source-shell>footer button,html[data-theme="dark"] .message-source-shell>footer .button{border-color:#56616c;background:#252b32;color:#f3f3f3}html[data-theme="dark"] .message-source-shell>header button:hover{background:#303b45}
html[data-theme="dark"] .message-authentication{border-color:var(--line);background:#20252b}html[data-theme="dark"] .message-authentication>strong{color:#d7dfe6}html[data-theme="dark"] .message-auth-result{border-color:#59636d;background:#2b3239;color:#d0d8df}html[data-theme="dark"] .message-auth-result.success{border-color:#4c8248;background:#203a22;color:#a9dda5}html[data-theme="dark"] .message-auth-result.error{border-color:#96544e;background:#432523;color:#f2aaa4}html[data-theme="dark"] .message-auth-result.warning{border-color:#906d2c;background:#3d321d;color:#ecd08d}
html[data-theme="dark"] .remote-images{background:#243746;color:#d4e7f5}
html[data-theme="dark"] .message-body{background:#20252b}

html[data-theme="dark"] .compose-dialog,html[data-theme="dark"] .settings-dialog,html[data-theme="dark"] .confirm-dialog,html[data-theme="dark"] .accounts-dialog,html[data-theme="dark"] .about-dialog,html[data-theme="dark"] .address-book-dialog,html[data-theme="dark"] .migration-dialog{background:#20252b;color:var(--ink)}
html[data-theme="dark"] .compose-dialog header,html[data-theme="dark"] .settings-layout aside,html[data-theme="dark"] .account-add-fields{background:#252b32}
html[data-theme="dark"] .compose-fields label{border-color:#353d45}
html[data-theme="dark"] .compose-fields input{background:transparent}
html[data-theme="dark"] .compose-dialog .compose-fields label,html[data-theme="dark"] .compose-dialog .compose-from-row{border-color:#48515b}
html[data-theme="dark"] .compose-dialog .compose-fields label>span,html[data-theme="dark"] .compose-dialog .compose-address-button,html[data-theme="dark"] .compose-dialog .compose-send-top{border-color:#59636e;background:#252b32;color:var(--ink)}
html[data-theme="dark"] .compose-dialog .compose-send-top:hover{border-color:#71808e;background:#303841}
html[data-theme="dark"] .compose-dialog .compose-from-address{color:#bdc7d1}
html[data-theme="dark"] .recipient-suggestions{border-color:#535d67;background:#252b32;box-shadow:0 8px 25px rgba(0,0,0,.5)}
html[data-theme="dark"] .recipient-suggestion:hover,html[data-theme="dark"] .recipient-suggestion.active{background:#303b45}
html[data-theme="dark"] .compose-body:empty:before{color:#818c97}
html[data-theme="dark"] .settings-layout aside button.active{background:var(--selected);color:#d9efff}
html[data-theme="dark"] .settings-form input,html[data-theme="dark"] .settings-form textarea,html[data-theme="dark"] .settings-form select,html[data-theme="dark"] .confirm-dialog input,html[data-theme="dark"] .account-add-fields input{border-color:#59636e;background:#252b32}
html[data-theme="dark"] .badge{background:#23445d;color:#cbe9ff}
html[data-theme="dark"] .accounts-dialog footer button:last-child,html[data-theme="dark"] .about-card>footer button,html[data-theme="dark"] .about-download{border-color:#56616c;background:#252b32}
html[data-theme="dark"] .account-session-note{background:#222b33}

html[data-theme="dark"] .about-card>header,html[data-theme="dark"] .address-book-shell>header{border-color:var(--line);background:linear-gradient(180deg,#252b32,#22272d)}
html[data-theme="dark"] .about-versions{border-color:var(--line)}
html[data-theme="dark"] .about-versions>div+div{border-color:var(--line)}
html[data-theme="dark"] .about-versions dd{color:#bac2cb}
html[data-theme="dark"] .about-card>footer,html[data-theme="dark"] .contact-editor footer{border-color:var(--line);background:#252b32}
html[data-theme="dark"] .shared-mailbox-tag,html[data-theme="dark"] .shared-mailbox-badge{border-color:#47799f;background:#243f54;color:#bde2ff}
html[data-theme="dark"] .shared-mailbox-group>.folder-account-root:hover{background:#293946}
html[data-theme="dark"] .shared-mailbox-group>.folder-account-root.active{background:#24465f}
html[data-theme="dark"] .shared-mailbox-owner{color:#9dd3fa!important}

html[data-theme="dark"] .address-book-filters{border-color:#4a535d;background:#252b32}
html[data-theme="dark"] .address-book-filters button.active{background:#37414b;color:#cdeaff;box-shadow:0 1px 3px rgba(0,0,0,.4)}
html[data-theme="dark"] .address-book-list,html[data-theme="dark"] .contact-editor{background:#20252b}
html[data-theme="dark"] .address-book-group-title{background:#293038;color:#bac2cb}
html[data-theme="dark"] .address-book-item{border-color:#343b43}
html[data-theme="dark"] .address-book-item:hover{background:#2a3540}
html[data-theme="dark"] .address-book-item.active{background:#234b69}
html[data-theme="dark"] .contact-editor label{color:#bac2cb}
html[data-theme="dark"] .contact-editor input,html[data-theme="dark"] .contact-editor textarea{border-color:#59636e;background:#252b32;color:var(--ink)}
html[data-theme="dark"] .contact-editor input:disabled,html[data-theme="dark"] .contact-editor textarea:disabled{background:#1c2126;color:#89939d}
html[data-theme="dark"] .contact-readonly-notice{background:#302c40;color:#d3c9ee}
html[data-theme="dark"] .recipient-picker-dialog{background:#20252b;color:var(--ink)}
html[data-theme="dark"] .recipient-picker-shell>header{border-color:var(--line);background:linear-gradient(180deg,#252b32,#22272d)}
html[data-theme="dark"] .recipient-picker-toolbar label{color:#bac2cb}
html[data-theme="dark"] .recipient-picker-toolbar input,html[data-theme="dark"] .recipient-picker-toolbar select,html[data-theme="dark"] .recipient-picker-selections input,html[data-theme="dark"] .recipient-picker-selections button,html[data-theme="dark"] .recipient-picker-shell>footer button{border-color:#59636e;background:#252b32;color:var(--ink)}
html[data-theme="dark"] .recipient-picker-selected-list{border-color:#59636e;background:#20252b}
html[data-theme="dark"] .recipient-picker-selections .recipient-picker-selected-chip{border-color:#47799f;background:#243f54;color:#cdeaff}
html[data-theme="dark"] .recipient-picker-selections .recipient-picker-selected-chip:hover{border-color:#b96059;background:#4a2928;color:#ffd2ce}
html[data-theme="dark"] .recipient-picker-list{background:#20252b}
html[data-theme="dark"] .recipient-picker-group-title{background:#293038;color:#bac2cb}
html[data-theme="dark"] .recipient-picker-item{border-color:#343b43}
html[data-theme="dark"] .recipient-picker-item:hover,html[data-theme="dark"] .recipient-picker-item.active{background:#234b69}
html[data-theme="dark"] .recipient-picker-item.chosen .recipient-picker-source{color:#82caff}
html[data-theme="dark"] .recipient-picker-selections button.active{border-color:#55a5df;background:#214c6b;color:#cdeaff}
html[data-theme="dark"] .recipient-picker-shell>footer{border-color:var(--line);background:#252b32}
html[data-theme="dark"] .recipient-picker-shell>footer button.primary{border-color:var(--blue);background:var(--blue);color:#fff}
html[data-theme="dark"] .compose-dialog .compose-recipient-picker{border-color:#59636e;background:#252b32;color:var(--ink)}
html[data-theme="dark"] .compose-dialog .compose-recipient-picker:hover{border-color:#71808e;background:#303841}

html[data-theme="dark"] .migration-steps{background:#252b32}
html[data-theme="dark"] .migration-steps li{color:#9ba6b1}
html[data-theme="dark"] .migration-steps li:not(:last-child)::after{background:#49515a}
html[data-theme="dark"] .migration-steps span{border-color:#59636e;background:#20252b}
html[data-theme="dark"] .migration-steps li.active,html[data-theme="dark"] .migration-steps li.done{color:#bfe3ff}
html[data-theme="dark"] .migration-provider-option span,html[data-theme="dark"] .migration-form input,html[data-theme="dark"] .migration-form select{border-color:#59636e;background:#252b32}
html[data-theme="dark"] .migration-provider-option input:checked+span{background:#204867;color:#d2edff}
html[data-theme="dark"] .migration-form input:disabled,html[data-theme="dark"] .migration-form select:disabled{background:#1b2025;color:#87919b}
html[data-theme="dark"] .migration-provider-note,html[data-theme="dark"] .migration-security-note{border-color:#3c5365;background:#243440;color:#c7dbe9}
html[data-theme="dark"] .migration-security-note.warning{border-color:#80642f;background:#3d321e;color:#f5d494}
html[data-theme="dark"] .migration-summary article,html[data-theme="dark"] .migration-folders summary{background:#252b32}
html[data-theme="dark"] .migration-result{background:#23313c}
html[data-theme="dark"] .migration-result.success{background:#20372a;border-color:#386348}
html[data-theme="dark"] .migration-result.error{background:#402625;border-color:#71413e}
html[data-theme="dark"] .migration-error{border-color:#70423f;background:#251d1d;color:#ffaaa4}
html[data-theme="dark"] .migration-status{background:#343c45}
html[data-theme="dark"] .migration-status.succeeded{background:#244631;color:#8cdda6}
html[data-theme="dark"] .migration-status.failed{background:#4a2928;color:#ffaaa4}
html[data-theme="dark"] .migration-status.running,html[data-theme="dark"] .migration-status.checking,html[data-theme="dark"] .migration-status.queued,html[data-theme="dark"] .migration-status.pending_check{background:#24435a;color:#a9dafc}

.message-actions .edit-draft-button{width:auto;min-width:130px;padding:0 12px;border:1px solid #8dbce0;background:#eaf4fb;color:#075f9f;font-size:13px;font-weight:600}
.compose-dialog{width:min(820px,calc(100vw - 28px));height:min(740px,calc(100vh - 60px))}
.compose-dialog form{position:relative;grid-template-rows:48px auto 42px minmax(180px,1fr) auto 54px}
.compose-toolbar{display:flex;align-items:center;gap:2px;min-width:0;padding:5px 10px;border-bottom:1px solid var(--line);background:#fafbfc;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.compose-toolbar button,.compose-color-button{position:relative;width:32px;height:31px;display:grid;flex:0 0 32px;place-items:center;border-radius:4px;color:#343a40;cursor:pointer}
.compose-toolbar button:hover,.compose-color-button:hover{background:#e8edf2}
.compose-toolbar button.active{background:#d8eaf8;color:#075f9f;box-shadow:inset 0 0 0 1px #91bde0}
.compose-toolbar button strong,.compose-toolbar button em,.compose-toolbar button u{font-family:Georgia,serif;font-size:17px}
.compose-toolbar select{height:30px;flex:0 0 auto;margin-right:3px;padding:0 24px 0 8px;border:1px solid #c7cdd3;border-radius:4px;background:#fff;font-size:12px}
.compose-toolbar .compose-language{max-width:170px}
#composeFontName{width:124px}#composeFontSize{width:68px}
.compose-toolbar-separator{width:1px;height:22px;flex:0 0 1px;margin:0 4px;background:#d7dce1}
.compose-color-button>span{font:600 15px Georgia,serif;line-height:17px}.compose-color-button.highlight>span{padding:1px 3px;background:#fff2a8;color:#242424;font:600 11px "Segoe UI",sans-serif}
.compose-color-button>i{position:absolute;right:7px;bottom:3px;left:7px;height:3px;border-radius:2px;background:var(--format-color)}
.compose-color-button input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.format-list-icon{position:relative;width:20px;padding-left:2px;font-size:17px;line-height:16px}.format-list-icon i,.format-list-icon i:before,.format-list-icon i:after{position:absolute;right:1px;width:11px;height:1px;background:currentColor;content:""}.format-list-icon i{top:8px}.format-list-icon i:before{top:-4px}.format-list-icon i:after{top:4px}.format-list-icon.numbered{font-size:11px;font-weight:600}
.format-align-icon{width:18px;display:grid;gap:3px}.format-align-icon i{display:block;height:1px;background:currentColor}.format-align-icon i:nth-child(2){width:12px}.format-align-icon.center i:nth-child(2){justify-self:center}
.compose-toolbar button>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.format-clear-icon{position:relative;font:600 16px Georgia,serif}.format-clear-icon i{position:absolute;right:-7px;bottom:-4px;color:var(--danger);font:700 12px "Segoe UI",sans-serif}
.compose-body img{max-width:100%;height:auto;vertical-align:middle;cursor:pointer}
.compose-image-resizer{position:absolute;z-index:35;border:2px solid #1473b9;border-radius:2px;box-shadow:0 0 0 1px rgba(255,255,255,.75);pointer-events:none}
.compose-image-controls{position:absolute;right:-2px;bottom:calc(100% + 7px);height:34px;display:flex;align-items:center;gap:9px;padding:3px 6px;border:1px solid #8eb9dc;border-radius:5px;background:#fff;color:#263746;box-shadow:0 3px 10px rgba(0,0,0,.16);pointer-events:auto;white-space:nowrap}
.compose-image-controls label{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600}
.compose-image-controls select{height:26px;padding:0 22px 0 7px;border:1px solid #aeb8c2;border-radius:3px;background:#fff;color:#263746;font-size:12px}
.compose-image-controls output{min-width:72px;color:#66727d;font-size:11px;text-align:right}
.compose-image-resize-handle{position:absolute;right:-9px;bottom:-9px;width:17px;height:17px;padding:0;border:2px solid #fff;border-radius:50%;background:#1473b9;box-shadow:0 0 0 1px #1473b9;cursor:nwse-resize;pointer-events:auto;touch-action:none}
.compose-image-resizer.controls-inside .compose-image-controls{top:5px;bottom:auto;right:5px}
.compose-attachment-chip{position:relative;padding-right:34px}
.compose-attachment-remove{position:absolute;top:3px;right:3px;width:26px;height:26px;border-radius:4px;color:#666;font-size:18px;line-height:1}
.compose-attachment-remove:hover{background:#eee;color:var(--danger)}
#saveDraftButton{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:0 13px;white-space:nowrap;border:1px solid #8eb9dc;border-radius:4px;background:linear-gradient(180deg,#fff,#eef6fc);color:#075f9f;font-weight:600;box-shadow:0 1px 2px rgba(15,108,189,.08);transition:background .12s,border-color .12s,box-shadow .12s,transform .05s}
#saveDraftButton svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
#saveDraftButton:hover{border-color:#4f95ca;background:#e3f1fb;box-shadow:0 1px 3px rgba(15,108,189,.16)}
#saveDraftButton:active{background:#d7eafa;transform:translateY(1px)}
html[data-theme="dark"] .message-actions .edit-draft-button{border-color:#47799f;background:#243f54;color:#bde2ff}
html[data-theme="dark"] .compose-toolbar{background:#252b32}
html[data-theme="dark"] .compose-toolbar button,html[data-theme="dark"] .compose-color-button{color:#dce2e7}
html[data-theme="dark"] .compose-toolbar button:hover,html[data-theme="dark"] .compose-color-button:hover{background:#343d46}
html[data-theme="dark"] .compose-toolbar button.active{background:#214c6b;color:#bfe3ff;box-shadow:inset 0 0 0 1px #47799f}
html[data-theme="dark"] .compose-toolbar select{border-color:#59636e;background:#20252b;color:var(--ink)}
html[data-theme="dark"] .compose-toolbar-separator{background:#4a535d}
html[data-theme="dark"] .compose-image-resizer{border-color:#56b4f5;box-shadow:0 0 0 1px rgba(20,25,30,.85)}
html[data-theme="dark"] .compose-image-controls{border-color:#47799f;background:#252b32;color:#e1e7ec;box-shadow:0 3px 12px rgba(0,0,0,.45)}
html[data-theme="dark"] .compose-image-controls select{border-color:#59636e;background:#20252b;color:#e1e7ec}
html[data-theme="dark"] .compose-image-controls output{color:#aeb8c2}
html[data-theme="dark"] .compose-image-resize-handle{border-color:#252b32;background:#56b4f5;box-shadow:0 0 0 1px #56b4f5}
html[data-theme="dark"] .compose-attachment-remove{color:#b9c2ca}
html[data-theme="dark"] .compose-attachment-remove:hover{background:#3a424a;color:#ffaaa4}
html[data-theme="dark"] #saveDraftButton{border-color:#47799f;background:linear-gradient(180deg,#263b4b,#213442);color:#bde2ff;box-shadow:0 1px 2px rgba(0,0,0,.2)}
html[data-theme="dark"] #saveDraftButton:hover{border-color:#67a7d6;background:#294b63}
html[data-theme="dark"] #saveDraftButton:active{background:#315771}
@media(max-width:780px){.compose-dialog footer{overflow-x:auto}.compose-dialog footer #draftState{display:none}.message-actions .edit-draft-button{min-width:118px}}
.mail-view{min-width:0;width:100%}
.commandbar{min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden}
.commandbar button{flex:0 0 auto;padding-right:8px;padding-left:8px;white-space:nowrap}
@media(min-width:781px) and (max-width:1180px){.commandbar button:not(.primary):not([data-command="spam"]) span{display:none}}
.message-attachment{gap:4px}
.message-attachment-icon{display:inline-flex;align-items:center;justify-content:center}
.message-response-status{display:inline-block;color:var(--blue);font-size:17px;font-weight:600;line-height:18px}
html[data-theme="dark"] .message-response-status{color:#69b7f0}
.message-response-summary{display:grid;gap:3px;margin:0 20px 10px;padding:7px 10px;border:1px solid #d4e6f5;border-radius:4px;background:#f4f9fd;color:#25465c;font-size:12px}
.message-response-summary[hidden]{display:none}
.message-response-summary-row{display:flex;align-items:center;gap:7px;min-height:18px}
.message-response-summary-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:0 0 18px;color:var(--blue);font-size:17px;font-weight:600;line-height:1}
html[data-theme="dark"] .message-response-summary{border-color:#385268;background:#233440;color:#d8eaf6}
html[data-theme="dark"] .message-response-summary-icon{color:#69b7f0}
@media(max-width:780px){.message-response-summary{margin-right:14px;margin-left:14px}}
.standalone-actions-menu{position:fixed;z-index:30;top:49px;right:86px;width:min(270px,calc(100vw - 16px));padding:5px;border:1px solid var(--line);border-radius:6px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.22)}
.standalone-actions-menu[hidden]{display:none}
.standalone-actions-menu button{display:block;width:100%;padding:9px 11px;border-radius:4px;text-align:left;font-size:13px}
.standalone-actions-menu button[hidden]{display:none}
.standalone-actions-menu button:hover,.standalone-actions-menu button:focus-visible{background:#eaf4fc}
.standalone-actions-menu hr{height:1px;margin:4px 6px;border:0;background:var(--line)}
.standalone-message-notice{margin:12px;padding:10px 12px;border:1px solid #c6e5c8;border-radius:4px;background:#f0faf1;color:#22632b}
.standalone-message-notice[hidden]{display:none}
.standalone-action-dialog,.standalone-source-dialog,.standalone-blocked-dialog{border:0;border-radius:8px;background:#fff;color:var(--ink);box-shadow:var(--shadow)}
.standalone-action-dialog::backdrop,.standalone-source-dialog::backdrop,.standalone-blocked-dialog::backdrop{background:rgba(0,0,0,.42)}
.standalone-form-dialog{width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:auto;border:0;border-radius:8px;background:#fff;color:var(--ink);box-shadow:var(--shadow)}
.standalone-form-dialog::backdrop{background:rgba(0,0,0,.42)}
.standalone-form-dialog form{display:grid;gap:8px;padding:22px}
.standalone-form-dialog h2{margin:0;font-size:20px}
.standalone-form-dialog p{margin:0 0 8px;line-height:1.45}
.standalone-form-dialog label{margin-top:5px;font-weight:600;font-size:13px}
.standalone-form-dialog input,.standalone-form-dialog select{width:100%;min-height:38px;padding:8px;border:1px solid #b8c5d1;border-radius:4px;background:#fff;color:var(--ink)}
.standalone-form-dialog input[readonly]{background:#f4f6f8}
.standalone-form-dialog .form-error{margin:5px 0 0}
.standalone-form-dialog .standalone-dialog-actions{margin-top:12px}
.standalone-form-dialog .standalone-dialog-actions button{padding:8px 13px;border:1px solid #b8c5d1;border-radius:4px;background:#fff}
.standalone-form-dialog .standalone-dialog-actions button.primary{border-color:var(--blue);background:var(--blue);color:#fff}
.standalone-dialog-content{padding:22px}
.standalone-dialog-content h2{margin:0 0 12px;font-size:20px}
.standalone-dialog-content p{margin:0;line-height:1.5}
.standalone-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}
.standalone-dialog-actions button,.standalone-source-dialog footer button,.standalone-blocked-dialog footer button{padding:8px 13px;border:1px solid #b8c5d1;border-radius:4px;background:#fff}
.standalone-dialog-actions button.primary{border-color:var(--blue);background:var(--blue);color:#fff}
.standalone-dialog-actions button.danger{border-color:var(--danger);background:var(--danger);color:#fff}
.standalone-source-dialog,.standalone-blocked-dialog{width:min(820px,calc(100vw - 24px));max-height:calc(100dvh - 36px);padding:0}
.standalone-source-dialog[open],.standalone-blocked-dialog[open]{display:grid;grid-template-rows:auto auto minmax(120px,1fr) auto}
.standalone-source-dialog[open]{grid-template-rows:auto auto auto minmax(120px,1fr) auto}
.standalone-source-authentication{min-width:0;flex-wrap:wrap}
.standalone-source-dialog header,.standalone-blocked-dialog header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 18px;border-bottom:1px solid var(--line)}
.standalone-source-dialog header h2,.standalone-blocked-dialog header h2{margin:0;font-size:19px}
.standalone-source-dialog header button,.standalone-blocked-dialog header button{font-size:22px}
.standalone-source-dialog>p,.standalone-blocked-dialog>p{margin:0;padding:10px 18px;color:var(--muted);font-size:13px}
.standalone-source-dialog pre{min-height:150px;margin:0;padding:14px 18px;overflow:auto;background:#f7f8fa;font:12px/1.45 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.standalone-source-dialog footer,.standalone-blocked-dialog footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:12px 18px;border-top:1px solid var(--line)}
.standalone-source-dialog footer a{margin-right:auto;color:var(--blue)}
.standalone-blocked-list{min-height:120px;overflow:auto;padding:0 18px}
.standalone-blocked-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}
.standalone-blocked-row span{min-width:0;flex:1;overflow-wrap:anywhere}
.standalone-blocked-row button{padding:6px 9px;border:1px solid #b8c5d1;border-radius:4px;color:var(--danger)}
@media(max-width:900px){.standalone-actions-menu{right:8px}.standalone-message>header .window-actions{overflow-x:auto;scrollbar-width:thin}}
html[data-theme="dark"] .standalone-actions-menu,html[data-theme="dark"] .standalone-action-dialog,html[data-theme="dark"] .standalone-source-dialog,html[data-theme="dark"] .standalone-blocked-dialog,html[data-theme="dark"] .standalone-form-dialog{border-color:#3a424b;background:#20252b;color:var(--ink)}
html[data-theme="dark"] .standalone-form-dialog input,html[data-theme="dark"] .standalone-form-dialog select,html[data-theme="dark"] .standalone-form-dialog .standalone-dialog-actions button{border-color:#59636e;background:#252b32;color:var(--ink)}
html[data-theme="dark"] .standalone-form-dialog input[readonly]{background:#1a1f25}
html[data-theme="dark"] .standalone-form-dialog .standalone-dialog-actions button.primary{background:var(--blue);color:#fff}
html[data-theme="dark"] .standalone-actions-menu button:hover,html[data-theme="dark"] .standalone-actions-menu button:focus-visible{background:#30475a}
html[data-theme="dark"] .standalone-source-dialog pre{background:#171b20}
html[data-theme="dark"] .standalone-dialog-actions button,html[data-theme="dark"] .standalone-source-dialog footer button,html[data-theme="dark"] .standalone-blocked-dialog footer button{border-color:#59636e;background:#252b32;color:var(--ink)}
.standalone-message>header .window-actions{flex:1 1 auto;margin-left:0;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:thin}
.standalone-message>header .window-actions>button{flex:0 0 auto}
.standalone-actions-menu{right:auto;left:8px;max-height:calc(100vh - 60px);overflow-y:auto}
.standalone-message-context-menu{z-index:260;max-height:calc(100vh - 16px);overflow-y:auto}
.message-print-frame{position:fixed;left:-10000px;top:0;width:1px;height:1px;border:0;opacity:0;pointer-events:none}
.security-secret{display:inline-block;max-width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:4px;background:var(--canvas);font-size:14px;overflow-wrap:anywhere;user-select:all}
.security-qr-wrap{display:flex;justify-content:center;max-width:310px;margin:12px 0 18px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff}
.security-qr{display:block;width:min(100%,280px);height:auto;image-rendering:pixelated}

/* Agenda-module */
.calendar-list-header select{min-width:0;max-width:240px;height:30px;border:1px solid #bac3cb;border-radius:4px;background:#fff;padding:0 6px;font-size:12px;font-weight:600}
.module-switcher{height:54px;display:flex;align-items:stretch;justify-content:center;gap:2px;padding:5px 8px;border-top:1px solid var(--line);background:#f8fafc}.module-switcher button{min-width:62px;display:grid;grid-template-rows:20px 14px;place-items:center;padding:2px 8px;border-radius:5px;color:#465462;font-size:18px}.module-switcher button b{font-size:11px;font-weight:500}.module-switcher button:hover:not(:disabled){background:#e5f1fa;color:var(--blue)}.module-switcher button.active{background:#d9edfb;color:#075f9f}.module-switcher button:disabled{opacity:.45}.module-switch-icon{position:relative;width:24px;height:20px;display:grid;place-items:center}.module-unread-badge{position:absolute;top:-8px;right:-15px;min-width:20px;height:20px;display:grid;place-items:center;padding:0 5px;border:2px solid #f8fafc;border-radius:11px;background:#d13438;color:#fff;font:700 11px/1 "Segoe UI",sans-serif;font-style:normal}.module-switcher button:hover .module-unread-badge{border-color:#e5f1fa}.module-switcher button.active .module-unread-badge{border-color:#d9edfb}
.command-separator{width:1px;height:28px;flex:0 0 1px;margin:0 5px;background:var(--line)}.calendar-commandbar button.active{background:#d9edfb;color:#075f9f;box-shadow:inset 0 0 0 1px #8ebee2}
.calendar-workspace{min-width:0;min-height:0;display:grid;grid-template-columns:var(--folder-pane-width,260px) 6px minmax(0,1fr);overflow:hidden;background:var(--canvas)}.calendar-sidebar{min-width:0;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:42px auto 42px minmax(0,1fr) 54px;padding:0 8px 12px;overflow:hidden;border-right:1px solid var(--line);background:#fafafa}
.calendar-mini-header,.calendar-list-header{display:flex;align-items:center;justify-content:space-between;padding:0 12px}.calendar-mini-header button,.calendar-list-header button{width:30px;height:30px;border-radius:4px;font-size:20px}.calendar-mini-header button:hover,.calendar-list-header button:hover{background:#e8eef3}.mini-calendar{padding:4px 12px 14px;border-bottom:1px solid var(--line)}.mini-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:12px}.mini-calendar-grid span,.mini-calendar-grid button{height:27px;display:grid;place-items:center;border-radius:50%}.mini-calendar-grid .weekday{height:22px;color:#68727d;font-size:10px;font-weight:700;text-transform:uppercase}.mini-calendar-grid button:hover{background:#e3edf5}.mini-calendar-grid button.outside{color:#a0a8b0}.mini-calendar-grid button.today{box-shadow:inset 0 0 0 1px var(--blue);color:#075f9f;font-weight:700}.mini-calendar-grid button.selected{background:var(--blue);color:#fff}
.calendar-list{min-height:0;overflow:auto;padding:2px 8px 10px}.calendar-list-group{margin:8px 2px 3px;color:#586674;font-size:11px;font-weight:700;text-transform:uppercase}.calendar-list-item{width:100%;display:grid;grid-template-columns:24px minmax(0,1fr) 30px;align-items:center;gap:4px;padding:7px 6px;border-radius:4px;text-align:left}.calendar-list-item:hover{background:#e9eff4}.calendar-list-item.selectable{cursor:pointer}.calendar-list-item.selected{background:color-mix(in srgb,var(--calendar-color) 13%,white);box-shadow:inset 3px 0 var(--calendar-color)}.calendar-list-item.selected>span{font-weight:600}.calendar-list-item.selected>span small{font-weight:400}.calendar-list-item input{width:16px;height:16px;accent-color:var(--calendar-color)}.calendar-list-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-list-item small{display:block;color:#74808b}.calendar-list-edit{height:26px;border-radius:4px}.calendar-list-edit:hover{background:#d8e6f1}.calendar-quota{margin-top:0}.calendar-quota .mailbox-quota-text{display:flex;justify-content:space-between}.calendar-quota .mailbox-quota-track{height:4px;margin-top:5px;background:#dce3e9}.calendar-quota .mailbox-quota-track span{display:block;height:100%;background:var(--blue)}
.calendar-main{min-width:0;min-height:0;display:grid;grid-template-rows:52px minmax(0,1fr);background:#fff}.calendar-heading{display:flex;align-items:center;gap:12px;padding:0 16px;border-bottom:1px solid var(--line)}.calendar-heading h1{margin:0;font-size:22px}.calendar-grid{min-width:0;min-height:0;overflow:auto;position:relative}
.calendar-month{min-width:780px;height:100%;min-height:650px;display:grid;grid-template-columns:repeat(7,minmax(110px,1fr));grid-template-rows:30px repeat(6,minmax(95px,1fr))}.calendar-month-weekday{padding:6px 8px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);color:#5c6873;font-size:12px;font-weight:600}.calendar-month-day{min-width:0;padding:5px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);overflow:hidden}.calendar-month-day:hover{background:#fbfdff}.calendar-month-day.outside{background:#fafafa;color:#9099a2}.calendar-day-number{width:25px;height:25px;display:grid;place-items:center;margin:0 0 3px auto;border-radius:50%;font-size:12px}.calendar-month-day.today .calendar-day-number{background:var(--blue);color:#fff}.calendar-day-events{display:grid;gap:2px}.calendar-event-chip{width:100%;display:block;padding:3px 5px;border-left:3px solid var(--event-color);border-radius:3px;background:color-mix(in srgb,var(--event-color) 16%,white);color:#24313d;font-size:11px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-event-chip:hover{filter:brightness(.96)}.calendar-event-chip.declined{text-decoration:line-through;opacity:.6}.calendar-event-chip .event-time{margin-right:4px;font-weight:700}
.calendar-year{min-width:800px;display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:18px 24px;padding:18px 22px 28px}.calendar-year-month{min-width:0}.calendar-year-month h2{margin:0 0 7px;color:#24313d;font-size:15px;font-weight:600;text-transform:capitalize}.calendar-year-month-grid{display:grid;grid-template-columns:repeat(7,minmax(24px,1fr));gap:2px;text-align:center}.calendar-year-month-grid>b{height:22px;display:grid;place-items:center;color:#74808b;font-size:10px;text-transform:uppercase}.calendar-year-empty,.calendar-year-day{height:27px}.calendar-year-day{position:relative;display:grid;place-items:center;border-radius:50%;font-size:11px}.calendar-year-day:hover{background:#e6f1f9}.calendar-year-day.today{background:var(--blue);color:#fff;font-weight:700}.calendar-year-day.has-events:not(.today){background:color-mix(in srgb,var(--year-event-color) 9%,transparent)}.calendar-year-day i{width:4px;height:4px;position:absolute;bottom:2px;border-radius:50%;background:var(--year-event-color)}.calendar-year-day.today i{background:#fff}
.calendar-time-view{min-width:720px;display:grid;grid-template-columns:58px repeat(var(--day-count),minmax(150px,1fr));grid-template-rows:42px 36px 1440px;position:relative}.calendar-time-corner,.calendar-time-day-heading{position:sticky;top:0;z-index:8;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}.calendar-time-day-heading{padding:5px 8px;text-align:center}.calendar-time-day-heading b{display:block}.calendar-time-day-heading.today b{color:var(--blue)}.calendar-all-day-label,.calendar-all-day-cell{position:sticky;top:42px;z-index:7;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fbfcfd}.calendar-all-day-label{padding:9px 4px;color:#6c7781;font-size:10px}.calendar-all-day-cell{padding:3px;overflow:hidden}.calendar-hours{position:relative;border-right:1px solid var(--line)}.calendar-hour-label{position:absolute;right:7px;transform:translateY(-8px);color:#68737d;font-size:10px}.calendar-day-column{position:relative;border-right:1px solid var(--line);background:repeating-linear-gradient(to bottom,transparent 0,transparent 29px,#eef1f3 30px,transparent 31px,transparent 59px,var(--line) 60px)}.calendar-day-column.today{background-color:#f8fcff}.calendar-timed-event{position:absolute;z-index:3;right:3px;left:3px;min-height:20px;padding:3px 5px;border-left:4px solid var(--event-color);border-radius:3px;background:color-mix(in srgb,var(--event-color) 19%,white);box-shadow:0 1px 2px rgba(0,0,0,.08);font-size:11px;text-align:left;overflow:hidden}.calendar-timed-event b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar-timed-event span{font-size:10px}
.calendar-event-dialog{width:min(760px,calc(100vw - 28px));max-height:calc(100vh - 35px);padding:0}.calendar-event-dialog form,.calendar-manage-dialog form,.calendar-share-dialog form{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:inherit}.calendar-event-dialog header,.calendar-manage-dialog header,.calendar-share-dialog header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line);background:#f7f9fb}.calendar-event-dialog h2,.calendar-manage-dialog h2,.calendar-share-dialog h2{margin:0}.calendar-event-dialog header p,.calendar-share-dialog header p{margin:3px 0 0;color:#68727d}.calendar-event-dialog header>button,.calendar-manage-dialog header>button,.calendar-share-dialog header>button{width:34px;height:34px;border-radius:4px;font-size:22px}.calendar-event-form{display:grid;grid-template-columns:1fr 1fr;gap:13px;padding:18px;overflow:auto}.calendar-event-form label,.calendar-share-form label,.calendar-manage-dialog form>div label{display:grid;gap:5px;color:#56616c;font-size:12px}.calendar-event-form input,.calendar-event-form select,.calendar-event-form textarea,.calendar-share-form input,.calendar-share-form select,.calendar-manage-dialog input,.calendar-manage-dialog select{width:100%;padding:8px;border:1px solid #aeb8c2;border-radius:4px;background:#fff;color:var(--ink);font:inherit}.calendar-event-form>.wide{grid-column:1/-1;width:auto;height:auto;margin-top:0}.calendar-event-form .check,.calendar-share-form .check{display:flex;align-items:center;gap:7px}.calendar-event-form .check input,.calendar-share-form .check input{width:auto}.calendar-attendees{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px;border:1px solid #cfe0ed;border-radius:5px;background:#f4f9fd}.calendar-attendees p{grid-column:1/-1;margin:0;color:#61717e;font-size:11px}.calendar-response{padding:12px;border:1px solid #cfe0ed;border-radius:5px;background:#f4f9fd}.calendar-response div{display:flex;gap:8px;margin-top:8px}.calendar-response button{padding:8px 12px;border:1px solid #8db9d9;border-radius:4px;background:#fff}.calendar-response button.active{background:#d5ecfb;color:#075f9f}.calendar-event-dialog footer,.calendar-manage-dialog footer,.calendar-share-dialog footer{display:flex;align-items:center;gap:8px;padding:12px 18px;border-top:1px solid var(--line);background:#fafafa}.calendar-event-dialog footer button,.calendar-manage-dialog footer button,.calendar-share-dialog footer button{min-height:35px;padding:0 14px;border:1px solid #aeb8c2;border-radius:4px;background:#fff}.calendar-event-dialog footer button.primary,.calendar-manage-dialog footer button.primary,.calendar-share-dialog footer button.primary{border-color:var(--blue);background:var(--blue);color:#fff}
.calendar-manage-dialog{width:min(480px,calc(100vw - 28px));padding:0}.calendar-manage-dialog form>div{display:grid;gap:12px;padding:18px}.calendar-share-dialog{width:min(600px,calc(100vw - 28px));max-height:calc(100vh - 35px);padding:0}.calendar-share-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px;overflow:auto}.calendar-share-form .check,.calendar-shares-list{grid-column:1/-1}.calendar-shares-list{display:grid;gap:5px}.calendar-share-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:8px;border-top:1px solid var(--line)}.calendar-share-row small{display:block;color:#6f7b86}.calendar-share-row button{color:var(--danger)}
html[data-theme="dark"] .module-switcher,html[data-theme="dark"] .calendar-sidebar,html[data-theme="dark"] .calendar-event-dialog header,html[data-theme="dark"] .calendar-manage-dialog header,html[data-theme="dark"] .calendar-share-dialog header,html[data-theme="dark"] .calendar-event-dialog footer,html[data-theme="dark"] .calendar-manage-dialog footer,html[data-theme="dark"] .calendar-share-dialog footer{background:#252b32}html[data-theme="dark"] .module-switcher button{color:#bac4cd}html[data-theme="dark"] .module-switcher button.active,html[data-theme="dark"] .calendar-commandbar button.active{background:#214c6b;color:#bfe3ff}html[data-theme="dark"] .module-unread-badge{border-color:#252b32}html[data-theme="dark"] .module-switcher button:hover .module-unread-badge{border-color:#303943}html[data-theme="dark"] .module-switcher button.active .module-unread-badge{border-color:#214c6b}html[data-theme="dark"] .calendar-list-item.selected{background:color-mix(in srgb,var(--calendar-color) 24%,#252b32)}html[data-theme="dark"] .calendar-main,html[data-theme="dark"] .calendar-time-corner,html[data-theme="dark"] .calendar-time-day-heading{background:#20252b}html[data-theme="dark"] .calendar-year-month h2{color:#edf3f7}html[data-theme="dark"] .calendar-year-day:hover{background:#303b45}html[data-theme="dark"] .calendar-month-day.outside{background:#1c2126}html[data-theme="dark"] .calendar-month-day:hover{background:#252e36}html[data-theme="dark"] .calendar-event-chip,html[data-theme="dark"] .calendar-timed-event{background:color-mix(in srgb,var(--event-color) 24%,#20252b);color:#edf3f7}html[data-theme="dark"] .calendar-all-day-label,html[data-theme="dark"] .calendar-all-day-cell{background:#252b32}html[data-theme="dark"] .calendar-day-column.today{background-color:#1d2b35}html[data-theme="dark"] .calendar-event-dialog,html[data-theme="dark"] .calendar-manage-dialog,html[data-theme="dark"] .calendar-share-dialog{background:#20252b;color:var(--ink)}html[data-theme="dark"] .calendar-event-form input,html[data-theme="dark"] .calendar-event-form select,html[data-theme="dark"] .calendar-event-form textarea,html[data-theme="dark"] .calendar-share-form input,html[data-theme="dark"] .calendar-share-form select,html[data-theme="dark"] .calendar-manage-dialog input,html[data-theme="dark"] .calendar-manage-dialog select{border-color:#59636e;background:#252b32;color:var(--ink)}html[data-theme="dark"] .calendar-attendees,html[data-theme="dark"] .calendar-response{border-color:#38566d;background:#243440}html[data-theme="dark"] .calendar-response button,html[data-theme="dark"] .calendar-event-dialog footer button,html[data-theme="dark"] .calendar-manage-dialog footer button,html[data-theme="dark"] .calendar-share-dialog footer button{border-color:#59636e;background:#252b32;color:var(--ink)}
@media(max-width:780px){.calendar-workspace{grid-template-columns:1fr}.calendar-sidebar{display:none}.calendar-commandbar button span{display:none}.calendar-commandbar .primary span{display:inline}.calendar-month{min-width:700px}.calendar-event-form,.calendar-share-form{grid-template-columns:1fr}.calendar-event-form .wide,.calendar-share-form .check,.calendar-shares-list{grid-column:1}.calendar-attendees{grid-template-columns:1fr}.calendar-attendees p{grid-column:1}}

/* Agenda v2 */
.calendar-category-label>span{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:6px}.calendar-category-label input[type="color"]{height:35px;padding:3px}.calendar-recurrence-options{display:grid;grid-template-columns:110px minmax(230px,1fr) minmax(150px,1fr) minmax(130px,1fr);gap:10px;padding:11px;border:1px solid #cfe0ed;border-radius:5px;background:#f7fbfe}.calendar-recurrence-options fieldset,.calendar-working-days{display:flex;align-items:center;gap:6px;margin:0;padding:5px 8px;border:1px solid #bdc8d2;border-radius:4px}.calendar-recurrence-options fieldset label,.calendar-working-days label{display:flex;align-items:center;gap:2px}.calendar-recurrence-options input[type="checkbox"],.calendar-working-days input{width:auto}.calendar-meeting-options{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.calendar-meeting-options button{padding:7px 10px;border:1px solid #8db9d9;border-radius:4px;background:#fff;color:#075f9f}.calendar-proposal,.calendar-proposals{padding:12px;border:1px solid #d2dce5;border-radius:5px;background:#fafcfd}.calendar-proposal>div{display:grid;grid-template-columns:1fr 1fr minmax(140px,1fr) auto;gap:7px;margin-top:8px}.calendar-proposal input{min-width:0}.calendar-proposal button,.calendar-proposal-row button{padding:7px 10px;border:1px solid #8db9d9;border-radius:4px;background:#fff}.calendar-proposal-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--line)}.calendar-proposal-row:first-of-type{margin-top:8px}.calendar-proposal-row small{display:block;color:#66737e}.calendar-event-chip[draggable="true"],.calendar-timed-event[draggable="true"]{cursor:grab}.calendar-drag-target{box-shadow:inset 0 0 0 2px var(--blue);background:#eaf6ff!important}
.calendar-scheduling-dialog{width:min(880px,calc(100vw - 28px));max-height:calc(100vh - 35px);padding:0}.calendar-scheduling-dialog form{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:inherit}.calendar-scheduling-dialog header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line);background:#f7f9fb}.calendar-scheduling-dialog h2{margin:0}.calendar-scheduling-dialog header p{margin:3px 0 0;color:#68727d}.calendar-scheduling-dialog header>button{width:34px;height:34px;font-size:22px}.calendar-scheduling-form{display:grid;grid-template-columns:minmax(230px,1fr) 140px 140px 120px auto;align-items:end;gap:10px;padding:18px;overflow:auto}.calendar-scheduling-form label{display:grid;gap:5px;font-size:12px;color:#56616c}.calendar-scheduling-form input,.calendar-scheduling-form select{width:100%;padding:8px;border:1px solid #aeb8c2;border-radius:4px;background:#fff;color:var(--ink)}.calendar-scheduling-form button{min-height:35px;padding:0 12px;border-radius:4px}.calendar-availability-results{grid-column:1/-1;display:grid;gap:7px;margin-top:8px}.calendar-availability-person{display:grid;grid-template-columns:210px minmax(0,1fr);gap:8px;align-items:center}.calendar-busy-track{height:26px;position:relative;border:1px solid #d0d8df;background:#f8fafb}.calendar-busy-block{height:100%;position:absolute;background:#cf4b4b;opacity:.72}.calendar-suggestions{display:flex;flex-wrap:wrap;gap:6px;padding-top:10px;border-top:1px solid var(--line)}.calendar-suggestion{padding:7px 10px;border:1px solid #79abd0;border-radius:4px;background:#edf7ff;color:#075f9f}.calendar-scheduling-dialog footer{display:flex;justify-content:flex-end;padding:12px 18px;border-top:1px solid var(--line);background:#fafafa}.calendar-scheduling-dialog footer button{min-height:35px;padding:0 14px;border:1px solid #aeb8c2;border-radius:4px;background:#fff}
.calendar-message-card{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;margin:12px 20px 4px;padding:15px 16px;border:1px solid #b8d7ee;border-left:4px solid var(--blue);border-radius:6px;background:#f5faff;color:var(--ink)}.calendar-message-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:5px;background:var(--blue);color:#fff;font-size:16px;font-weight:700}.calendar-message-icon:before{content:"";width:100%;height:9px;position:absolute}.calendar-message-content{min-width:0}.calendar-message-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.calendar-message-heading small{display:block;margin-bottom:2px;color:#607180;font-size:11px}.calendar-message-heading h2{margin:0;font-size:18px}.calendar-message-heading>strong{padding:4px 8px;border-radius:12px;background:#e1edf6;color:#31586f;font-size:11px;white-space:nowrap}.calendar-message-content>p{margin:6px 0;font-size:13px}.calendar-message-time{font-weight:600}.calendar-message-actions{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.calendar-message-actions button{min-height:34px;padding:0 12px;border:1px solid #78aeda;border-radius:4px;background:#fff;color:#075f9f;font-weight:600}.calendar-message-actions button:hover,.calendar-message-actions button.active{background:#d9edfb;box-shadow:inset 0 0 0 1px #78aeda}.calendar-message-actions button:disabled{opacity:.6}.calendar-response-summary{display:flex;flex-wrap:wrap;gap:6px;margin:9px 0}.calendar-response-summary span{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border-radius:13px;background:#e6ebef;color:#4e5b66;font-size:12px;font-weight:700;white-space:nowrap}.calendar-response-summary .accepted{background:#dff4e4;color:#166534}.calendar-response-summary .tentative{background:#fff1c7;color:#7a5200}.calendar-response-summary .declined{background:#fde2e1;color:#a4262c}.calendar-message-attendees summary{cursor:pointer;color:#315f7e;font-size:12px;font-weight:600}.calendar-message-attendees ul,.calendar-attendee-status ul{display:grid;gap:0;margin:12px 0 0;padding:0;list-style:none}.calendar-message-attendees li,.calendar-attendee-status li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 2px;border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent)}.calendar-message-attendees li small,.calendar-attendee-status li small{display:block;margin-top:2px;color:#687783;font-size:12px}.calendar-attendee-state{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#e6ebef;color:#52616d;font-weight:700}.calendar-attendee-response{padding:4px 8px;border-radius:11px;background:#e6ebef;color:#52616d;font-size:11px;white-space:nowrap}.calendar-attendee-accepted .calendar-attendee-state,.calendar-attendee-accepted .calendar-attendee-response{background:#dff4e4;color:#166534}.calendar-attendee-tentative .calendar-attendee-state,.calendar-attendee-tentative .calendar-attendee-response{background:#fff1c7;color:#7a5200}.calendar-attendee-declined .calendar-attendee-state,.calendar-attendee-declined .calendar-attendee-response{background:#fde2e1;color:#a4262c}.calendar-attendee-status{padding:14px;border:1px solid #a9cde7;border-left:4px solid var(--blue);border-radius:5px;background:#f8fbfd}.calendar-attendee-status-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.calendar-attendee-status-heading>strong{padding-top:4px;color:#23445d;font-size:14px}.calendar-attendee-status-heading .calendar-response-summary{margin:0}
html[data-theme="dark"] .calendar-scheduling-dialog,html[data-theme="dark"] .calendar-scheduling-dialog header,html[data-theme="dark"] .calendar-scheduling-dialog footer{background:#252b32;color:var(--ink)}html[data-theme="dark"] .calendar-scheduling-form input,html[data-theme="dark"] .calendar-scheduling-form select{background:#20252b;border-color:#59636e;color:var(--ink)}html[data-theme="dark"] .calendar-recurrence-options,html[data-theme="dark"] .calendar-proposal,html[data-theme="dark"] .calendar-proposals{background:#243440;border-color:#38566d}html[data-theme="dark"] .calendar-busy-track{background:#20252b;border-color:#59636e}
html[data-theme="dark"] .calendar-message-card,html[data-theme="dark"] .calendar-attendee-status{border-color:#385f7d;background:#213441}html[data-theme="dark"] .calendar-message-heading>strong,html[data-theme="dark"] .calendar-response-summary span{background:#34414c;color:#e3ebf1}html[data-theme="dark"] .calendar-message-actions button{border-color:#47799f;background:#252b32;color:#bde2ff}html[data-theme="dark"] .calendar-message-actions button:hover,html[data-theme="dark"] .calendar-message-actions button.active{background:#214c6b}html[data-theme="dark"] .calendar-message-attendees li,html[data-theme="dark"] .calendar-attendee-status li{border-color:#40505d}
@media(max-width:780px){.calendar-recurrence-options,.calendar-proposal>div,.calendar-scheduling-form{grid-template-columns:1fr}.calendar-availability-results{grid-column:1}.calendar-availability-person{grid-template-columns:1fr}}
@media(max-width:620px){.calendar-message-card{grid-template-columns:1fr;margin:8px 10px}.calendar-message-icon{display:none}.calendar-message-heading,.calendar-attendee-status-heading{display:block}.calendar-message-heading>strong{display:inline-block;margin-top:6px}}

/* Aanraakvriendelijke webmail: de rij blijft een direct kind van de berichtenlijst. */
.message-swipe-content{display:contents}
.message-swipe-actions,.mobile-module-switcher,.mobile-message-back{display:none}

@media(max-width:780px), (max-height:600px) and (pointer:coarse){
  html,body,#app{height:100dvh}
  .mobile-only{display:grid}
  .mail-view{height:100dvh;grid-template-rows:48px 36px 52px minmax(0,1fr) calc(58px + env(safe-area-inset-bottom,0px))}
  .topbar{position:relative;gap:5px;padding:0 6px;min-width:0}
  .topbar .brand-header img{width:101px}
  .topbar #navToggle,.topbar #mobileSearchToggle,.top-actions .icon-button,.account-button{width:42px;min-width:42px;height:42px;padding:0;display:grid;place-items:center}
  .topbar .search-wrap{display:none}
  .topbar.search-open .search-wrap:not([hidden]){position:absolute;z-index:30;top:48px;left:0;right:0;height:52px;margin:0;padding:0 12px;display:flex;border-radius:0;box-shadow:0 4px 12px rgba(0,0,0,.17)}
  .topbar.search-open .search-wrap select{max-width:112px;flex:0 0 112px}
  .topbar.search-open .search-wrap input{min-width:0;font-size:16px}
  .top-actions{gap:1px}
  .account-button span:last-child,.live-state{display:none}
  .app-menubar{min-width:0;padding:0 6px}
  .app-menu-trigger{min-height:36px;padding:0 10px}
  .commandbar{min-width:0;gap:3px;padding:4px 6px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;box-shadow:none}
  .commandbar::-webkit-scrollbar{display:none}
  .commandbar button{height:44px;min-width:44px;flex:0 0 auto;padding:0 8px;font-size:20px}
  .commandbar button span{display:none}
  .commandbar .command-spacer{display:none}
  .commandbar #composeButton{min-width:144px;font-size:15px;font-weight:600}
  .commandbar #composeButton span{display:inline}
  .commandbar #folderAddButton{font-size:14px}
  .calendar-commandbar button{font-size:14px}
  .calendar-commandbar button span{display:none}
  .calendar-commandbar .primary{min-width:130px}
  .calendar-commandbar .primary span{display:inline}
  .mail-grid,.calendar-workspace{height:100%;min-width:0;min-height:0;overflow:hidden}
  .mail-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
  .mail-grid.folders-collapsed{grid-template-columns:minmax(0,1fr)}
  .pane-resizer{display:none}
  .list-pane{min-width:0;min-height:0;grid-column:1;grid-row:1;grid-template-rows:60px minmax(0,1fr) auto}
  .pane-heading{padding:0 8px 0 13px}
  .pane-heading-actions select{width:116px;height:40px}
  .pane-heading-actions button{width:40px;height:40px}
  .message-list{min-width:0;min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .message-row{display:block;min-width:0;padding:0;overflow:hidden;touch-action:pan-y}
  .message-row.unread:before{z-index:2}
  .message-swipe-content{position:relative;z-index:1;display:grid;grid-template-columns:28px minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:7px;min-height:76px;padding:13px 12px 12px;background:var(--swipe-row-bg,#fff);touch-action:pan-y;transform:translate3d(var(--swipe-offset,0px),0,0);transition:transform .18s ease}
  .message-row.swipe-dragging .message-swipe-content{transition:none}
  .message-row:hover{--swipe-row-bg:var(--hover)}
  .message-row.active{--swipe-row-bg:var(--selected)}
  .message-row.multi-selected{--swipe-row-bg:#deefff}
  .message-row input{width:18px;height:18px;margin-top:3px}
  .message-sender{font-size:14px}
  .message-subject-line{font-size:13px}
  .message-swipe-actions{position:absolute;top:0;bottom:0;display:flex;align-items:stretch;z-index:0}
  .message-swipe-actions.swipe-start{left:0;width:92px}
  .message-swipe-actions.swipe-end{right:0;width:156px}
  .message-swipe-actions button{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:2px;color:#fff;font-size:11px;font-weight:600}
  .message-swipe-actions button span{font-size:22px;line-height:1}
  .swipe-start button{background:#0f6cbd}
  .swipe-end button[data-swipe-action="archive"]{background:#56768f}
  .swipe-end button[data-swipe-action="delete"]{background:#c42b1c}
  .swipe-end button{width:78px}
  .message-row.search-result .message-swipe-content{grid-template-columns:minmax(0,1fr) auto}
  .message-pagination{min-height:50px;padding:5px}
  .message-pagination button{min-width:40px;height:40px}
  .message-pagination span{min-width:0}
  .folder-pane{position:fixed;top:84px;bottom:calc(58px + env(safe-area-inset-bottom,0px));left:0;width:min(340px,90vw);padding:8px;z-index:35;transform:translateX(-105%);transition:transform .18s ease;box-shadow:var(--shadow)}
  .folder-pane.open{transform:translateX(0)}
  .folder-pane .module-switcher{display:none}
  .reading-pane{display:none}
  .reading-pane.open{position:fixed;display:block;inset:84px 0 calc(58px + env(safe-area-inset-bottom,0px));z-index:20;overflow:auto}
  .message-view{min-height:100%}
  .mobile-message-back{display:flex;align-items:center;gap:5px;min-height:44px;margin:-7px 0 8px;padding:0 5px;color:var(--blue);font-size:17px;font-weight:600}
  .mobile-message-back span{font-size:14px}
  .message-subject{padding:12px 14px}
  .message-subject h1{font-size:19px}
  .message-actions button{min-height:44px;padding:0 9px}
  .message-meta{grid-template-columns:38px minmax(0,1fr);gap:8px;padding:12px 14px}
  .message-meta time{grid-column:2}
  .attachment-list{padding:0 14px}
  .attachment-name{max-width:calc(100vw - 130px)}
  .message-body{min-height:calc(100dvh - 330px);max-width:100%}
  .mobile-module-switcher{grid-row:5;z-index:30;height:auto;display:flex;align-items:center;justify-content:center;padding:4px 8px calc(4px + env(safe-area-inset-bottom,0px))}
  .mobile-module-switcher button{min-width:74px;max-width:120px;min-height:48px;flex:1;grid-template-rows:23px 17px;font-size:21px}
  .mobile-module-switcher button b{font-size:12px}
  .calendar-sidebar{position:fixed;top:84px;bottom:calc(58px + env(safe-area-inset-bottom,0px));left:0;z-index:35;width:min(340px,90vw);display:grid;grid-template-rows:42px auto 42px minmax(0,1fr);padding:0 8px 8px;transform:translateX(-105%);transition:transform .18s ease;box-shadow:var(--shadow)}
  .calendar-sidebar.open{transform:translateX(0)}
  .calendar-sidebar .module-switcher{display:none}
  .calendar-workspace{grid-template-columns:1fr}
  .calendar-mini-header #calendarSidebarClose{display:grid;min-width:40px;height:40px;place-items:center;font-size:25px}
  .calendar-main{min-width:0;min-height:0}
  .calendar-month{min-width:0;min-height:calc(100dvh - 215px);grid-template-columns:repeat(7,minmax(0,1fr))}
  .calendar-month-weekday{overflow:hidden;padding:6px 2px;text-align:center;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
  .calendar-month-day{padding:3px}
  .calendar-day-number{margin-right:auto;margin-left:auto}
  .calendar-day-events{gap:3px}
  .calendar-day-events .calendar-event-chip{height:7px;padding:0;border:0;border-radius:5px;background:var(--event-color);font-size:0}
  .calendar-day-events small{font-size:9px}
  .calendar-year{min-width:0;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));padding:12px}
  .calendar-time-view{min-width:0}
  .calendar-event-dialog,.calendar-scheduling-dialog,.calendar-manage-dialog,.calendar-share-dialog{inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border-radius:0}
  .calendar-event-dialog form,.calendar-scheduling-dialog form,.calendar-manage-dialog form,.calendar-share-dialog form{height:100%;max-height:none}
  .compose-dialog{inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border-radius:0}
  .compose-dialog form{height:100%;grid-template-rows:48px auto 46px minmax(0,1fr) auto calc(54px + env(safe-area-inset-bottom,0px))}
  .compose-dialog .compose-fields{min-height:0;padding:8px 12px}
  .compose-dialog .compose-send-top{position:static;width:100%;height:44px;flex-direction:row;justify-content:flex-start;gap:8px;margin:0 0 6px;padding:0 14px;border-color:var(--blue);background:var(--blue);color:#fff;font-weight:700}
  .compose-dialog .compose-send-top svg{width:22px;height:22px}
  .compose-dialog .compose-fields label>span,.compose-dialog .compose-address-button,.compose-dialog .compose-recipient-picker{width:64px;flex-basis:64px;margin-right:7px}
  .compose-dialog .compose-fields label:first-of-type{padding-right:45px}
  .compose-dialog .cc-toggle{right:12px;top:94px}
  .compose-dialog .recipient-suggestions{left:12px;max-width:calc(100% - 24px)}
  .compose-dialog .compose-body{min-height:0;padding:12px;font-size:16px}
  .compose-dialog footer{gap:4px;padding:8px 6px calc(8px + env(safe-area-inset-bottom,0px));overflow:visible}
  .compose-dialog footer .attach-button{padding:6px;font-size:12px}
  .compose-dialog footer #saveDraftButton{min-width:0;padding:6px 8px;font-size:12px}
  .compose-dialog footer #saveDraftButton span{display:none}
  .compose-dialog footer #saveDraftButton:after{content:"Concept"}
  .compose-dialog footer #discardCompose{padding:6px 3px;font-size:12px}
  .compose-toolbar button{min-width:40px;height:38px;flex-basis:40px}
  .settings-dialog,.address-book-dialog,.accounts-dialog,.recipient-picker-dialog{height:100dvh;max-height:none}
  .login-card{padding:26px 22px}
  .toast-region{right:8px;bottom:calc(66px + env(safe-area-inset-bottom,0px));left:8px}
  .toast{min-width:0;max-width:none}
}

@media(max-width:380px){
  .topbar .brand-header img{width:82px}
  .topbar #navToggle,.topbar #mobileSearchToggle,.top-actions .icon-button,.account-button{width:40px;min-width:40px}
  .topbar{gap:3px}
  .message-actions button{font-size:12px}
  .pane-heading-actions #listSelectAll{display:none}
  .pane-heading-actions select{width:110px}
  #messagePagination #firstPage,#messagePagination #lastPage{display:none}
  .message-pagination span{overflow:hidden;text-overflow:ellipsis}
}

@media(hover:none) and (pointer:coarse) and (min-width:781px){
  .commandbar button,.app-menu-trigger,.folder-item,.calendar-list-item{min-height:44px}
  .message-row{display:block;min-width:0;min-height:72px;padding:0;overflow:hidden;touch-action:pan-y}
  .message-swipe-content{position:relative;z-index:1;display:grid;grid-template-columns:28px minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:7px;min-height:72px;padding:12px;background:var(--swipe-row-bg,#fff);touch-action:pan-y;transform:translate3d(var(--swipe-offset,0px),0,0);transition:transform .18s ease}
  .message-row.swipe-dragging .message-swipe-content{transition:none}
  .message-row:hover{--swipe-row-bg:var(--hover)}
  .message-row.active{--swipe-row-bg:var(--selected)}
  .message-row.search-result .message-swipe-content{grid-template-columns:minmax(0,1fr) auto}
  .message-swipe-actions{position:absolute;top:0;bottom:0;display:flex;align-items:stretch;z-index:0}
  .message-swipe-actions.swipe-start{left:0;width:92px}
  .message-swipe-actions.swipe-end{right:0;width:156px}
  .message-swipe-actions button{width:78px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:2px;color:#fff;font-size:11px;font-weight:600}
  .message-swipe-actions button span{font-size:22px;line-height:1}
  .swipe-start button{width:92px;background:#0f6cbd}
  .swipe-end button[data-swipe-action="archive"]{background:#56768f}
  .swipe-end button[data-swipe-action="delete"]{background:#c42b1c}
  .module-switcher button{min-width:70px}
}

html[data-theme="dark"] .message-swipe-content{--swipe-row-bg:#20252b}
html[data-theme="dark"] .message-row:hover .message-swipe-content{--swipe-row-bg:#283748}
html[data-theme="dark"] .message-row.active .message-swipe-content{--swipe-row-bg:var(--selected)}

/* Opstelvenster: menubalk tussen titelbalk en adresvelden. */
.compose-dialog form{grid-template-rows:48px 32px auto 42px minmax(180px,1fr) auto 54px}
.standalone-compose-window .compose-dialog form{grid-template-rows:32px auto 42px minmax(180px,1fr) auto 54px}
.compose-dialog.compose-toolbar-hidden form{grid-template-rows:48px 32px auto 0 minmax(180px,1fr) auto 54px}
.standalone-compose-window .compose-dialog.compose-toolbar-hidden form{grid-template-rows:32px auto 0 minmax(180px,1fr) auto 54px}
.compose-dialog .compose-toolbar[hidden]{display:none}
.compose-menubar{position:relative;z-index:40;display:flex;align-items:center;gap:2px;min-height:32px;padding:0 10px;border-bottom:1px solid #d9dde2;background:#f8f9fa;color:#273444}
.compose-menu{position:relative;align-self:stretch;display:flex;align-items:center}
.compose-menu-trigger{height:28px;padding:0 11px;border-radius:4px;font-size:13px}
.compose-menu-trigger:hover,.compose-menu.open>.compose-menu-trigger{background:#e3e8ed}
.compose-menu-popup{position:absolute;z-index:50;top:30px;left:0;min-width:225px;max-width:min(320px,calc(100vw - 16px));padding:5px;border:1px solid #c9cfd6;border-radius:6px;background:#fff;box-shadow:0 9px 26px rgba(24,38,52,.18)}
.compose-menu-popup[hidden]{display:none}
.compose-menu-popup button[hidden]{display:none}
@media(max-width:505px){.standalone-message .compose-menu:last-child .compose-menu-popup{left:auto;right:0}}
@media(max-width:380px){.standalone-message .compose-menu:nth-last-child(2) .compose-menu-popup{left:auto;right:0}}
.compose-menu-popup button{width:100%;min-height:35px;display:flex;align-items:center;gap:7px;padding:6px 10px;border-radius:4px;text-align:left;white-space:nowrap}
.compose-menu-popup button:hover,.compose-menu-popup button:focus-visible{background:#eaf2f9;outline:0}
.compose-menu-popup button[role="menuitemcheckbox"]{padding-left:5px}
.compose-menu-check{width:18px;flex:0 0 18px;color:var(--blue);font-weight:700;text-align:center}
.compose-menu-separator{display:block;height:1px;margin:4px 6px;background:#e1e4e8}
.compose-menubar>input[hidden]{display:none}
html[data-theme="dark"] .compose-menubar{border-color:var(--line);background:#20252b;color:var(--ink)}
html[data-theme="dark"] .compose-menu-trigger:hover,html[data-theme="dark"] .compose-menu.open>.compose-menu-trigger{background:#343c45}
html[data-theme="dark"] .compose-menu-popup{border-color:#4a535d;background:#252b32;box-shadow:0 10px 30px rgba(0,0,0,.5)}
html[data-theme="dark"] .compose-menu-popup button:hover,html[data-theme="dark"] .compose-menu-popup button:focus-visible{background:#303b45}
html[data-theme="dark"] .compose-menu-separator{background:var(--line)}
@media(max-width:780px){
  .compose-dialog form{grid-template-rows:48px 32px auto 46px minmax(0,1fr) auto calc(54px + env(safe-area-inset-bottom,0px))}
  .compose-dialog.compose-toolbar-hidden form{grid-template-rows:48px 32px auto 0 minmax(0,1fr) auto calc(54px + env(safe-area-inset-bottom,0px))}
  .standalone-compose-window .compose-dialog form{grid-template-rows:32px auto 46px minmax(0,1fr) auto calc(54px + env(safe-area-inset-bottom,0px))}
  .standalone-compose-window .compose-dialog.compose-toolbar-hidden form{grid-template-rows:32px auto 0 minmax(0,1fr) auto calc(54px + env(safe-area-inset-bottom,0px))}
  .compose-menubar{padding:0 6px}
  .compose-menu-trigger{padding:0 9px}
}
