/* Original Secmail presentation; native Roundcube controllers and forms remain intact. */
:root,[data-secmail-palette=keppel]{--sc-soft:#f3faf8;--sc-pale:#d5f2eb;--sc-mid:#4db3a2;--sc-accent:#236258;--sc-ink:#0c2725;--sc-line:#dce8e3}
[data-secmail-palette=chestnut]{--sc-soft:#fcf5f4;--sc-pale:#f2dbd9;--sc-mid:#b34d4d;--sc-accent:#953b3d;--sc-ink:#3b1618;--sc-line:#eadedc}
[data-secmail-palette=seagull]{--sc-soft:#f2f9fd;--sc-pale:#e3f2fb;--sc-mid:#68c2e8;--sc-accent:#146590;--sc-ink:#0f2e42;--sc-line:#dbe6ed}
.sc-shell{--sc-border:#e4e8e6;--sc-text:#25342f;--sc-muted:#718078;font-family:Inter,'Segoe UI',Arial,sans-serif;color:var(--sc-text);background:#f4f6f5;letter-spacing:-.15px}
.sc-masthead{height:72px;position:absolute;inset:0 0 auto;display:flex;align-items:center;gap:26px;padding:0 28px;background:#f4f6f5;z-index:101;box-sizing:border-box}
.sc-wordmark{display:flex;align-items:center;gap:9px;font-size:25px;font-weight:650;letter-spacing:-1px;color:#21362e;white-space:nowrap}.sc-wordmark-dot{color:var(--sc-accent);margin-left:-9px}.sc-mark{display:grid;place-items:center;width:32px;height:32px;background:var(--sc-accent);color:white;border-radius:10px}.sc-mark svg{width:21px;height:21px}
.sc-location{display:flex;align-items:center;gap:24px;color:#66736d;font-size:13px}.sc-location-divider{height:20px;width:1px;background:#d9e0dc}.sc-header-actions{margin-left:auto;display:flex;align-items:center;gap:20px}.sc-pilot-status{font-size:11px;color:#69776f;background:#e9eeeb;padding:6px 10px;border-radius:7px;white-space:nowrap}
.sc-appearance-button{display:flex;align-items:center;gap:8px;padding:8px 12px;background:white;border:1px solid #dce3df;border-radius:10px;color:#35463d;font:inherit;font-size:12px;cursor:pointer}.sc-appearance-button svg{width:17px;height:17px}.sc-appearance-button:hover,.sc-appearance-button[aria-expanded=true]{border-color:var(--sc-accent);background:var(--sc-soft)}
.sc-appearance-panel{position:fixed;right:24px;top:65px;z-index:2001;width:292px;box-sizing:border-box;padding:22px;background:white;border:1px solid #dde4df;border-radius:18px;box-shadow:0 16px 56px #1931261c;color:#25342f}.sc-appearance-panel[hidden]{display:none!important}.sc-appearance-panel h2{font:600 16px/1.4 Inter,'Segoe UI',sans-serif;margin:0 0 6px;letter-spacing:-.4px}.sc-appearance-panel p{font-size:12px;line-height:1.6;color:#77827c;margin:0 0 18px}
.sc-palette-options{display:grid;gap:7px}.sc-palette-option{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #e8ece9;border-radius:11px;padding:11px;background:white;cursor:pointer;color:#263a30;font:inherit}.sc-palette-option:hover{background:#f7f9f8}.sc-palette-option[aria-pressed=true]{border-color:var(--sc-accent);background:var(--sc-soft)}.sc-palette-chip{width:28px;height:28px;border-radius:9px;flex:none}.sc-palette-chip.keppel{background:#4db3a2}.sc-palette-chip.chestnut{background:#b34d4d}.sc-palette-chip.seagull{background:#68c2e8}.sc-palette-label{display:grid;gap:2px}.sc-palette-label strong{font-size:12px;font-weight:600}.sc-palette-label small{font-size:11px;color:#7c8781}.sc-density-label{display:block;margin:20px 0 8px;font-size:12px;font-weight:600}.sc-density-select{width:100%;height:38px;background:#f7f9f8;border:1px solid #dfe5e1;border-radius:9px;padding:0 9px;color:#34483c}
.sc-shell :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--sc-accent);outline-offset:3px}
.sc-shell #layout{position:absolute;top:72px;bottom:14px;left:14px;right:14px;width:auto;height:auto;border:1px solid var(--sc-border);border-radius:18px;overflow:hidden;box-shadow:0 3px 14px #19312604}
.sc-shell .iframe-wrapper{position:relative}.sc-empty-reader{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#fff;color:#6b7d71;z-index:1;text-align:center;padding:28px;pointer-events:none}.sc-empty-reader[hidden]{display:none}.sc-empty-reader>span{display:grid;place-items:center;width:70px;height:70px;border-radius:22px;background:var(--sc-soft);color:var(--sc-accent);margin-bottom:20px}.sc-empty-reader svg{width:32px;height:32px}.sc-empty-reader h2{font-size:19px;font-weight:550;letter-spacing:-.5px;color:#304c3b;margin:0 0 9px}.sc-empty-reader p{font-size:12px;line-height:1.8;max-width:245px;margin:0;color:#91a095}
.sc-shell #layout-menu{background:#eff3f0;border-right:1px solid var(--sc-border)}.sc-shell #layout-menu .popover-header{background:#eff3f0!important;border:0}.sc-shell #layout-menu #logo{max-width:52px;padding:12px 6px;opacity:.85}.sc-shell #taskmenu .special-buttons{background:transparent!important}.sc-shell #taskmenu .special-buttons a{background:transparent!important;color:#7b8881!important}.sc-shell #taskmenu .special-buttons a:hover{background:#e4ebe6!important;color:#2a4737!important}
.sc-shell #taskmenu{background:transparent;padding:8px 7px}.sc-shell #taskmenu a{color:#7b8881;border-radius:12px;margin-bottom:6px;border:0;transition:background .15s,color .15s}.sc-shell #taskmenu a.selected{background:#fff;color:var(--sc-accent);box-shadow:0 2px 6px #1d392c08}.sc-shell #taskmenu a:hover{background:#e4ebe6;color:#2a4737}.sc-shell #taskmenu a.compose{color:#fff;background:var(--sc-accent);margin-bottom:20px;box-shadow:0 3px 6px #173f2e12}.sc-shell #taskmenu a.compose:hover{background:var(--sc-ink)}
.sc-shell #layout-sidebar{background:#f8faf8;border-right:1px solid var(--sc-border)}.sc-shell #layout-sidebar>.header{background:transparent;border:0;height:68px;padding-left:22px;color:#4b5d51;font-size:12px}.sc-shell #folderlist-content{padding:8px 12px}.sc-shell .folderlist li a{border-radius:9px;margin:3px 0;padding:11px 12px;color:#637268;font-size:12px}.sc-shell .folderlist li a:before{color:#89978e}.sc-shell .folderlist li.selected>a{background:var(--sc-pale)!important;color:var(--sc-ink)!important;font-weight:600}.sc-shell .folderlist li.selected>a:before{color:var(--sc-accent)}.sc-shell .folderlist li a:hover{background:#ebf0ec}.sc-shell .folderlist .unreadcount{border-radius:6px;background:#fff;color:var(--sc-accent);font-size:10px}
.sc-shell #layout-list{background:white;border-right:1px solid var(--sc-border)}.sc-shell #layout-list>.header{height:68px;background:white;border-bottom:1px solid #edf0ee;padding:12px}.sc-shell .header .toolbar a,.sc-shell .toolbar a.button{color:#7b8980}.sc-shell .toolbar a.button:hover{color:var(--sc-accent);background:var(--sc-soft);border-radius:8px}.sc-shell .toolbar a.button.disabled{opacity:.35}.sc-shell #layout-list>.searchbar{background:#f6f8f6;border:1px solid #e7ece8;border-radius:10px;margin:14px 14px 8px;min-height:38px;height:38px}.sc-shell #layout-list>.searchbar input{font-size:12px;background:transparent}.sc-shell #layout-list>.searchbar a{color:#839087}.sc-shell #messagelist-content{background:#fff}.sc-shell #messagelist{border-collapse:separate;border-spacing:0;width:100%}.sc-shell #messagelist td{padding-top:14px;padding-bottom:14px;border-color:#edf0ee;color:#607168;font-size:11px;transition:background .12s}.sc-shell #messagelist td.subject{padding-left:18px;padding-right:16px}.sc-shell #messagelist .subject .fromto{color:#32483b;font-size:12px;font-weight:550}.sc-shell #messagelist .subject .date{font-size:10px;color:#99a39d}.sc-shell #messagelist .subject .subject{font-size:13px;line-height:1.7;color:#5e7064}.sc-shell #messagelist tr.unread td{font-weight:600}.sc-shell #messagelist tr.unread .subject .fromto,.sc-shell #messagelist tr.unread .subject .subject{color:#1d3326}.sc-shell #messagelist tr:hover td{background:#f7faf8}.sc-shell #messagelist tr.selected td{background:var(--sc-soft)!important;color:var(--sc-ink)!important}.sc-shell #messagelist tr.selected td.subject{box-shadow:inset 3px 0 var(--sc-accent)}
[data-secmail-density=compact] .sc-shell #messagelist td{padding-top:7px;padding-bottom:7px}[data-secmail-density=compact] .sc-shell #messagelist .subject .subject{line-height:1.5}
.sc-shell #layout-content{background:#fff}.sc-shell #layout-content>.header{height:68px;background:#fff;border-bottom:1px solid #edf0ee;padding:10px 20px}.sc-shell #layout-content .iframe-wrapper{background:#fff}.sc-shell .footer{background:transparent;border-top:1px solid #edf0ee;color:#8d9991;font-size:10px}.sc-shell #layout-sidebar>.footer{padding:14px}.sc-shell .pagenav a{color:#74877a}.sc-shell .column-resizer{background:transparent}.sc-shell .column-resizer:hover{background:var(--sc-pale)}
.sc-shell .btn-primary,.sc-shell .button.mainaction{background:#253a2e!important;border-color:#253a2e!important;color:#fff!important;border-radius:10px!important;font-weight:550;box-shadow:none;padding:9px 18px}.sc-shell .btn-primary:hover,.sc-shell .button.mainaction:hover{background:var(--sc-accent)!important;border-color:var(--sc-accent)!important}.sc-shell input.form-control,.sc-shell select.form-control,.sc-shell textarea.form-control{border-radius:9px;border-color:#dfe6e1;color:#344d3d;background:#fff;font-size:13px}.sc-shell .form-control:focus{border-color:var(--sc-accent);box-shadow:0 0 0 3px var(--sc-soft)}.sc-shell .input-group-text{background:#f5f8f5;border-color:#dfe6e1}.sc-shell .formbuttons{background:#fff;border-color:#e7ece8}.sc-shell .ui-dialog{border-radius:18px;overflow:hidden;box-shadow:0 18px 70px #20352a28}.sc-shell .popover{border-radius:13px;border-color:#e1e7e2;box-shadow:0 8px 32px #1e39261a}.sc-shell .popover .listing li a:hover{background:var(--sc-soft)}
/* Real native compose, including uploads, drafts and recipient widgets. */
.sc-message-frame{font-family:Inter,'Segoe UI',Arial,sans-serif;color:#354b3d;background:#fff}.sc-message-frame .message-header{padding:28px 30px 18px;border-bottom:1px solid #edf0ee}.sc-message-frame .message-header h2{font-size:21px;line-height:1.4;font-weight:550;letter-spacing:-.6px;color:#263d2f}.sc-message-frame .message-content{padding:22px 30px}.sc-message-frame .message-part{font-size:14px;line-height:1.85}.sc-message-frame .attachmentslist{padding:12px;background:#f7faf8;border:1px solid #e5ece7;border-radius:11px}.sc-message-frame a{color:var(--sc-accent)}
.sc-message-frame #message-header{padding:26px 28px 18px;border-bottom:1px solid #edf0ee}.sc-message-frame #message-header h2{font-size:21px;line-height:1.4;font-weight:550;letter-spacing:-.6px;color:#263d2f}.sc-message-frame #message-content{padding:22px 28px}.sc-shell #composebody{padding:48px 20px 20px!important}
.sc-shell.action-compose #layout-content .content{padding:24px 30px}.sc-shell #compose-headers{max-width:1100px}.sc-shell #compose-headers .form-group{margin-bottom:14px}.sc-shell #compose-headers label{color:#839087;font-size:11px}.sc-shell #compose-subject{font-size:17px;font-weight:550;padding-top:12px;padding-bottom:12px;height:auto;border-radius:9px}.sc-shell #composebodycontainer{margin-top:20px}.sc-shell #composebody{min-height:300px;padding:20px!important;line-height:1.8;border:1px solid #e0e7e1!important;border-radius:12px!important;background:#fcfdfc;color:#354b3d}.sc-shell .tox-tinymce{border-radius:12px;border-color:#dfe6e0}.sc-shell #compose-attachments{padding:20px 18px}.sc-shell #compose-attachments .btn{border-radius:9px;font-size:12px}.sc-shell #compose-attachments .hint{font-size:11px;color:#8b978f}.sc-shell #compose-options{padding:0 18px}.sc-shell #compose-options label{font-size:11px;color:#6b7c70}
.sc-shell.task-login{background:var(--sc-soft)}.sc-shell.task-login .sc-masthead{background:transparent}.sc-shell.task-login #layout-content{background:transparent;padding:96px 24px 40px;overflow:auto}.sc-shell #login-form{width:min(440px,100%);max-width:none;padding:38px;border:1px solid var(--sc-line);border-radius:22px;background:#fff;box-shadow:0 20px 70px #17392b08}.sc-shell #login-form #logo{display:none}.sc-login-intro{margin-bottom:28px}.sc-eyebrow{color:var(--sc-accent);font-size:9px;font-weight:650;letter-spacing:1.8px}.sc-login-intro h1{font-size:29px;line-height:1.22;letter-spacing:-1.1px;font-weight:550;margin:12px 0}.sc-login-intro p{font-size:12px;color:#859087;line-height:1.7;margin:0}.sc-shell #login-form input{height:44px}.sc-shell #login-form .input-group-text{border-radius:9px 0 0 9px}.sc-shell #login-form .input-group input{border-radius:0 9px 9px 0}.sc-shell #login-form .btn-primary{min-height:44px;margin-top:12px}.sc-shell #login-footer{color:#98a39b;font-size:10px}
@media(min-width:1200px){.sc-shell #layout-menu{width:76px;min-width:76px}.sc-shell #layout-menu>.popover-header{display:none}.sc-shell #layout-sidebar{width:226px;min-width:190px}.sc-shell #layout-list{width:350px;min-width:290px}.sc-shell #layout-content{min-width:330px}}
@media(max-width:1199px){.sc-masthead{padding:0 20px}.sc-shell #layout{left:8px;right:8px;bottom:8px;border-radius:14px}.sc-shell #layout-sidebar>.header{padding-left:14px}.sc-shell #folderlist-content{padding:5px 8px}}
@media(max-width:767px){.sc-masthead{height:60px;padding:0 16px;gap:12px}.sc-wordmark{font-size:22px}.sc-mark{width:28px;height:28px;border-radius:9px}.sc-location{display:none}.sc-header-actions{gap:10px}.sc-pilot-status{font-size:9px;padding:5px 7px}.sc-appearance-button{padding:7px}.sc-appearance-button span{display:none}.sc-shell #layout{top:60px;bottom:0;left:0;right:0;border-radius:0;border-left:0;border-right:0}.sc-shell #layout-content>.header,.sc-shell #layout-list>.header,.sc-shell #layout-sidebar>.header{height:58px;padding:8px}.sc-shell.action-compose #layout-content .content{padding:16px}.sc-shell #composebody{min-height:240px}.sc-appearance-panel{top:55px;right:10px;width:min(292px,calc(100vw - 20px))}.sc-shell #login-form{padding:28px}.sc-login-intro h1{font-size:26px}.sc-shell.task-login #layout-content{padding-top:78px}.sc-shell #layout-menu{border:0}}
@media(prefers-reduced-motion:reduce){.sc-shell *{transition:none!important}}
.sc-shell.action-compose #composebody{padding:48px 20px 20px!important}
