/* YURA Mail — responsive three-column workplace mail, no external CSS frameworks */
.ym-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.ym-head h1{margin:2px 0 6px;font-size:24px}.ym-head p{margin:0;color:var(--muted,#64748b)}.ym-head-buttons{display:flex;gap:8px;flex-wrap:wrap}.ym-head button,.ym-app button,.ym-dialog button{cursor:pointer}.ym-app{display:grid;grid-template-columns:minmax(195px,22%) minmax(250px,32%) minmax(0,1fr);min-height:66vh;max-height:calc(100vh - 230px);border:1px solid #d5dce6;border-radius:12px;background:var(--surface,#fff);overflow:hidden}.ym-side,.ym-list-panel,.ym-read-panel{min-width:0;min-height:0;overflow-y:auto}.ym-side{padding:14px;border-right:1px solid #d5dce6}.ym-list-panel{border-right:1px solid #d5dce6;display:flex;flex-direction:column}.ym-pick-label{display:block;font-size:13px;font-weight:600}.ym-pick-label select{width:100%;margin-top:7px;font-size:13px;padding:9px;border-radius:7px}.ym-muted{font-size:12px;color:#64748b;margin:8px 0}.ym-folders{display:grid;gap:5px;margin:18px 0}.ym-folder{width:100%;text-align:left;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:inherit;font-weight:500}.ym-folder.selected{background:#e8efff;color:#234e98}.ym-tip{font-size:12px;line-height:1.6;color:#6b7280;padding:10px 3px}.ym-disconnect{margin-top:12px;color:#991b1b}.ym-search{display:flex;gap:7px;padding:11px;border-bottom:1px solid #e2e8f0}.ym-search input{flex:1;min-width:0;padding:9px 10px;border:1px solid #d1d5db;border-radius:8px}.ym-search button{padding:8px 11px}.ym-list-header{display:flex;justify-content:space-between;align-items:center;gap:5px;padding:12px;border-bottom:1px solid #e2e8f0}.ym-list-header button{background:#1d4ed8;color:white;border:0;border-radius:7px;padding:9px}.ym-message-list{overflow-y:auto;flex:1;min-height:160px}.ym-item{display:grid;grid-template-columns:1fr auto;gap:4px 8px;width:100%;text-align:left;padding:12px 13px;border:0;border-bottom:1px solid #e2e8f0;background:transparent;color:inherit}.ym-item:hover,.ym-item.active{background:#eaf2ff}.ym-item.unread .ym-sender,.ym-item.unread strong{font-weight:800}.ym-item .ym-sender{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.ym-item time{font-size:11px;color:#64748b}.ym-item strong,.ym-snippet{grid-column:1/-1;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.ym-snippet{font-size:12px;color:#64748b}.ym-pagination{text-align:center;padding:10px}.ym-read-panel{padding:18px}.ym-reader-top h2{font-size:19px;line-height:1.4;margin:8px 0 15px;overflow-wrap:anywhere}.ym-meta{font-size:13px;color:inherit;overflow-wrap:anywhere;margin:5px 0}.ym-reader-actions{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0;padding-bottom:13px;border-bottom:1px solid #e2e8f0}.ym-reader-actions button{padding:8px 10px}.ym-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:14px}.ym-attachments{color:#64748b;font-size:12px;padding:15px 0}.ym-empty{color:#64748b;padding:25px;text-align:center;line-height:1.6}.ym-dialog{width:min(95vw,540px);max-height:90vh;overflow:auto;padding:24px;border:1px solid #ddd;border-radius:13px}.ym-dialog::backdrop{background:rgba(15,23,42,.55)}.ym-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.ym-dialog-head h2{margin:0 0 10px;font-size:20px}.ym-dialog-head button{border:0;background:transparent;font-size:20px}.ym-provider{display:block;width:100%;padding:12px;margin:10px 0;text-align:left;border:1px solid #cbd5e1;border-radius:10px;background:transparent;font-size:15px;font-weight:700}.ym-provider small{display:block;font-size:12px;color:#64748b;margin-top:6px;font-weight:400}.ym-compose-dialog{width:min(96vw,680px)}.ym-compose-dialog label{display:block;margin:12px 0;font-weight:500;font-size:13px}.ym-compose-dialog input,.ym-compose-dialog textarea{display:block;width:100%;margin-top:5px;padding:10px;border:1px solid #cbd5e1;border-radius:8px;font-family:inherit;font-weight:400}.ym-compose-actions{display:flex;justify-content:flex-end;gap:8px}.ym-error{color:#b91c1c;margin:8px 0;font-size:13px}.ym-back{display:none}
@media(max-width:1190px){.ym-app{grid-template-columns:minmax(165px,25%) minmax(230px,37%) minmax(0,1fr)}}
@media(max-width:820px){.ym-head{flex-direction:column}.ym-app{grid-template-columns:185px minmax(0,1fr);max-height:none;min-height:65vh}.ym-read-panel{grid-column:2;min-height:300px;border-top:1px solid #e2e8f0}.ym-side{grid-row:1/3}.ym-list-panel{border-right:0;max-height:380px}.ym-back{display:inline-block}}
@media(max-width:540px){.ym-app{display:block;overflow:visible}.ym-side{border-right:0;border-bottom:1px solid #e2e8f0}.ym-folders{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;margin:8px 0}.ym-tip{display:none}.ym-list-panel{max-height:430px}.ym-read-panel{min-height:320px;padding:13px}.ym-head h1{font-size:21px}.ym-head-buttons{width:100%}.ym-head-buttons button{flex:1}.ym-dialog{padding:14px}}

/* v2.18.3: Outlook-style native command bar and productive three-pane layout. */
.ym-commandbar{display:flex;align-items:center;gap:10px;padding:10px 13px;background:var(--surface,#fff);border:1px solid #d5dce6;border-radius:10px 10px 0 0;border-bottom:none}.ym-commandbar button{padding:9px 14px;border-radius:6px;border:1px solid #d2d9e5;background:var(--surface,#fff);cursor:pointer}.ym-commandbar #ymNewMail{background:#1367b7;color:white;border-color:#1367b7;font-weight:600}.ym-commandbar button:disabled{opacity:.55}.ym-command-separator{height:27px;border-left:1px solid #d2d9e5}.ym-commandbar-caption{color:#64748b;font-size:13px;margin-left:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ym-app{border-radius:0 0 10px 10px;max-height:calc(100vh - 270px)}.ym-head{align-items:center}.ym-head h1{font-size:22px;margin:0}.ym-side{background:#f7f9fc}.ym-item.active{box-shadow:inset 3px 0 #1367b7}.ym-read-panel{background:var(--surface,#fff)}
@media(max-width:820px){.ym-app{max-height:none}.ym-commandbar{flex-wrap:wrap}.ym-commandbar-caption{max-width:100%}}

/* v2.18.3: Outlook-style signature manager and compose signature preview. */
.ym-signature-dialog{width:min(96vw,640px)}
.ym-signature-dialog label{display:block;margin:12px 0;font-size:13px;font-weight:600}
.ym-signature-dialog input:not([type=checkbox]),.ym-signature-dialog textarea,.ym-signature-dialog select{display:block;width:100%;margin-top:6px;font-size:14px;border:1px solid #cbd5e1;border-radius:8px;padding:9px 11px}
.ym-signature-dialog textarea{min-height:132px;resize:vertical;white-space:pre-wrap}
.ym-signature-defaults{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:10px 0}
.ym-signature-defaults label{display:flex!important;gap:8px;align-items:center;margin:4px 0;font-weight:500}
.ym-signature-defaults input[type=checkbox]{width:17px!important;height:17px!important;min-width:17px!important;margin:0!important;flex:0 0 17px}
.ym-signature-preview{white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f8fc;color:#334155;padding:12px;border:1px solid #e3e9f3;border-radius:8px;font-family:inherit;font-size:12px;line-height:1.5;max-height:150px;overflow-y:auto}
.ym-quoted-preview{font-size:12px;color:#64748b;background:#f8fafc;padding:8px 10px;border-left:3px solid #cbd5e1;margin:9px 0}
.ym-commandbar #ymSignatures{white-space:nowrap}
@media(max-width:540px){.ym-signature-defaults{display:block}.ym-commandbar #ymSignatures{flex:1}}

.ym-compose-dialog #ymComposeSignature{display:block;width:100%;min-height:40px;margin-top:5px;padding:9px 11px;border:1px solid #cbd5e1;border-radius:8px;background:var(--surface,#fff);color:inherit}
.ym-compose-dialog #ymSignaturePreview{margin:7px 0 11px}

/* v2.18.5: provider attachments, signature HTML, and long-message preview. */
.ym-attachments{padding:16px 0;color:inherit}.ym-attachments h3{font-size:14px;margin:0 0 10px}.ym-file-list{display:grid;gap:8px}.ym-file{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #d6e0ec;background:#f8fafc;border-radius:9px;padding:10px 12px;flex-wrap:wrap}.ym-file-name{display:flex;align-items:center;gap:6px;overflow-wrap:anywhere;min-width:0;flex:1;font-size:13px}.ym-file-name small{color:#64748b;white-space:nowrap;margin-left:auto}.ym-file-actions{display:flex;gap:7px}.ym-file button{border:1px solid #cbd5e1;border-radius:6px;background:white;padding:6px 10px;color:#15549b;font-size:12px;cursor:pointer}.ym-file button:disabled{opacity:.4}.ym-danger,#ymEmptyTrash{color:#b42318!important;border-color:#fecaca!important}.ym-mail-html{width:100%;min-height:440px;height:56vh;border:0;display:block;background:#fff}.ym-preview-dialog{width:min(96vw,960px);max-height:94vh}.ym-attachment-preview{display:block;max-width:100%;width:100%;height:min(72vh,720px);object-fit:contain;border:0}.ym-clip{font-size:12px;color:#64748b;grid-column:1/-1}.ym-signature-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:8px 0}.ym-signature-toolbar button{min-width:36px;border:1px solid #cbd5e1;border-radius:6px;padding:7px;background:#fff;color:#334155}.ym-signature-toolbar label{display:flex!important;align-items:center;gap:7px!important;margin:0!important}.ym-signature-toolbar input[type=color]{width:38px!important;height:30px!important;padding:1px!important;margin:0!important}.ym-signature-editor{min-height:140px;max-height:320px;overflow:auto;border:1px solid #cbd5e1;border-radius:8px;padding:12px;background:#fff;color:#17212f;font-family:Arial,sans-serif;font-size:13px;line-height:1.6}.ym-signature-editor:focus{outline:2px solid #93c5fd}.ym-signature-editor img{max-width:100%;height:auto}.ym-signature-preview{white-space:normal}.ym-signature-preview img{max-width:100%;height:auto}
@media(max-width:540px){.ym-mail-html{min-height:380px}.ym-file{display:block}.ym-file-actions{margin-top:8px}.ym-file-name small{margin-left:8px}.ym-list-header{flex-wrap:wrap}}

/* v2.18.6: clear Outlook-like information hierarchy and readable scroll panels. */
.ym-app{grid-template-columns:minmax(175px,21%) minmax(280px,33%) minmax(340px,1fr);min-height:590px;max-height:calc(100vh - 235px);border-color:#d7dee9;background:#fff}
.ym-side{background:#f7f9fc;padding:12px}.ym-list-panel{background:#fff;min-height:0}.ym-read-panel{background:#fff;padding:20px 22px;min-height:0}
.ym-message-list{overscroll-behavior:contain;scrollbar-gutter:stable}.ym-item{padding:12px 14px;line-height:1.35}.ym-item.active{background:#eaf3ff}.ym-item strong{font-size:13.5px}.ym-snippet{font-size:12px;line-height:1.5;color:#66758a}
.ym-reader-top h2{font-size:20px;line-height:1.4}.ym-reader-actions{position:sticky;top:0;background:#fff;z-index:2;padding:9px 0 12px;margin:7px 0 12px}
.ym-search{background:#f9fbff}.ym-list-header{min-height:51px}.ym-folder{padding:9px 11px}.ym-folder.selected{font-weight:700}
@media(max-width:1180px){.ym-app{grid-template-columns:175px minmax(250px,35%) minmax(0,1fr)}}
@media(max-width:860px){.ym-app{grid-template-columns:185px minmax(0,1fr);max-height:none}.ym-read-panel{grid-column:2}}
@media(max-width:560px){.ym-app{display:block;max-height:none;min-height:0}.ym-read-panel{padding:14px}.ym-message-list{max-height:460px}}

/* v2.18.7: Outlook-inspired compose and reliable independently scrolling mailbox */
.ym-app{height:clamp(600px,calc(100vh - 235px),920px);min-height:0;max-height:none;grid-template-columns:minmax(180px,20%) minmax(305px,35%) minmax(0,1fr)}
.ym-side{overflow-y:auto}.ym-list-panel{overflow:hidden;min-height:0}.ym-message-list{overflow-y:auto;min-height:0;flex:1 1 auto;overscroll-behavior-y:contain}.ym-pagination{flex:0 0 auto;min-height:44px;border-top:1px solid #e2e8f0;padding:6px 10px;display:flex;gap:10px;justify-content:center;align-items:center}.ym-load-state{font-size:12px;color:#64748b}.ym-pagination button{padding:7px 12px}
.ym-read-panel{overflow-y:auto;min-height:0}.ym-item{min-height:85px;cursor:pointer}.ym-item:focus-visible{outline:2px solid #1367b7;outline-offset:-2px}.ym-search input{background:#fff}.ym-reader-top{border-bottom:1px solid #e4eaf2;padding-bottom:12px}.ym-reader-actions button{border:1px solid #d6e0ed;background:#fff;border-radius:7px}
.ym-compose-dialog{width:min(96vw,850px);padding:0;overflow:auto;background:#fff;color:#22304a}.ym-compose-dialog #ymComposeForm{padding:0 22px 18px}.ym-compose-dialog .ym-dialog-head{margin:0 -22px 10px;padding:15px 22px;border-bottom:1px solid #dce5f0;background:#f7f9fc}.ym-compose-body-label{display:block;font-size:13px;font-weight:600;margin:15px 0 7px}.ym-compose-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:7px 9px;background:#f7f9fc;border:1px solid #cbd5e1;border-radius:8px 8px 0 0}.ym-compose-toolbar button{min-width:34px;min-height:31px;border:1px solid #cbd5e1;background:#fff;color:#263a57;border-radius:5px;padding:5px 9px}.ym-compose-toolbar label{display:flex!important;align-items:center;gap:4px!important;margin:0 3px!important;font-size:12px!important}.ym-compose-toolbar input[type=color]{display:inline-block!important;width:32px!important;height:28px!important;padding:1px!important;margin:0!important;flex:none}
.ym-compose-editor{min-height:220px;max-height:52vh;overflow-y:auto;padding:14px 16px;border:1px solid #cbd5e1;border-top:0;border-radius:0 0 8px 8px;background:#fff;color:#202124;font:14px/1.65 Arial,sans-serif;overflow-wrap:anywhere;outline:0}.ym-compose-editor:focus{box-shadow:inset 0 0 0 2px #93c5fd}.ym-compose-editor:empty:before{content:attr(data-placeholder);color:#94a3b8;pointer-events:none}.ym-compose-editor table{max-width:100%}.ym-compose-editor img{max-width:100%;height:auto}.ym-compose-format-hint{margin:5px 0 11px;color:#64748b;font-size:11px}
.ym-mail-html{height:min(78vh,820px);min-height:480px}.ym-body{white-space:normal}.ym-commandbar{background:#f8fafe}
@media(max-width:1020px){.ym-app{grid-template-columns:168px minmax(260px,36%) minmax(0,1fr)}}
@media(max-width:860px){.ym-app{height:auto;min-height:0;max-height:none;grid-template-columns:180px minmax(0,1fr)}.ym-read-panel{grid-column:2;min-height:390px}.ym-list-panel{height:440px}}
@media(max-width:560px){.ym-app{display:block;height:auto;max-height:none;min-height:0}.ym-side{max-height:235px}.ym-list-panel{height:400px}.ym-read-panel{min-height:420px}.ym-compose-dialog #ymComposeForm{padding:0 12px 12px}.ym-compose-dialog .ym-dialog-head{margin:0 -12px 10px;padding:12px}.ym-compose-toolbar{gap:4px}.ym-compose-toolbar label{font-size:11px!important}.ym-compose-editor{min-height:190px}}


/* v2.18.7.3 — Outlook Web-inspired neutral mail canvas, compact workplace rhythm. */
.ym-head{margin:0 0 7px!important;padding:1px 1px 0;align-items:center}.ym-head .overline{display:none}.ym-head h1{font-size:21px!important;font-weight:650;margin:0!important;letter-spacing:-.035em;color:#202b3b}.ym-head .ym-head-buttons{gap:6px}.ym-head-buttons button,.ym-commandbar button{box-shadow:none!important;border:1px solid #d6dce4!important;background:#fff!important;color:#26374b!important;border-radius:5px!important;font-size:12px!important;padding:7px 11px!important;min-height:33px!important}
.ym-head-buttons #ymRefresh{display:none!important}.ym-head-buttons #ymConnect{font-weight:600;color:#1765a6!important}.ym-head-buttons #ymConnect:hover{background:#f0f5fb!important}
.ym-commandbar{border:1px solid #e3e8ef!important;background:#fff!important;border-radius:7px 7px 0 0!important;padding:8px 12px!important;min-height:49px;gap:8px!important}
.ym-commandbar #ymNewMail{background:#1768ac!important;border-color:#1768ac!important;color:#fff!important;padding:8px 15px!important}.ym-commandbar #ymNewMail:hover{background:#0f5591!important}.ym-commandbar #ymSignatures{color:#485669!important}.ym-command-separator{border-color:#e7ebf0!important;height:23px}.ym-commandbar-caption{font-size:12px!important;color:#6b7686!important}
.ym-app{height:clamp(580px,calc(100vh - 202px),950px)!important;grid-template-columns:minmax(155px,17%) minmax(320px,32%) minmax(0,1fr)!important;border:1px solid #e2e7ee!important;border-top:0!important;border-radius:0 0 7px 7px!important;background:#fff!important;color:#26313e}
.ym-side{padding:17px 12px!important;background:#f9fafc!important;border-right:1px solid #e5eaf0!important}
.ym-pick-label{color:#516173!important;font-size:11px!important;font-weight:600;letter-spacing:.02em}.ym-pick-label select{font-size:12px!important;margin-top:8px!important;padding:9px 6px!important;background:#fff!important;border:1px solid #d6dee8!important;border-radius:5px!important}
.ym-muted{font-size:11px!important;color:#738093!important;overflow-wrap:anywhere}.ym-folders{gap:2px!important;margin:17px 0!important}.ym-folder{display:flex;align-items:center;gap:11px;padding:10px 11px!important;border-radius:5px!important;color:#42526a!important;font-weight:500!important;font-size:13px!important;min-height:37px!important;text-align:left;background:transparent!important}.ym-folder-icon{display:inline-flex;justify-content:center;align-items:center;width:19px;font-size:16px;color:#7e8ba0}.ym-folder:hover{background:#f1f4f8!important}.ym-folder.selected{color:#155b99!important;background:#edf4fc!important;font-weight:650!important}.ym-folder.selected .ym-folder-icon{color:#155b99}.ym-disconnect{font-size:12px!important;color:#9f3b3b!important;border:1px solid #f0d8d8!important;background:transparent!important;border-radius:5px!important;padding:8px 11px!important}
.ym-list-panel{border-right:1px solid #e3e8ee!important;background:#fff!important}.ym-search{padding:11px 11px 8px!important;background:#fff!important;border-bottom:0!important}.ym-search input{border:1px solid #d7dfe9!important;border-radius:5px!important;font-size:12px!important;padding:9px 11px!important;background:#f8fafc!important;min-height:37px!important}.ym-search button{border:1px solid #d7dfe9!important;border-radius:5px!important;background:#fff!important;color:#526177!important;font-size:12px!important;min-width:42px!important}
.ym-list-header{padding:8px 13px 11px!important;border-color:#e9edf2!important;min-height:43px!important}.ym-list-header strong{font-size:14px!important;font-weight:650!important;color:#263445}.ym-list-header #ymCompose{display:none!important}
.ym-message-list{scrollbar-gutter:auto!important;background:#fff}.ym-item{min-height:86px!important;display:grid!important;padding:11px 14px!important;border-bottom:1px solid #edf0f4!important;gap:4px 8px!important;background:#fff!important;color:#243145!important}.ym-item:hover{background:#f6f8fb!important}.ym-item.active{background:#eef5fb!important;box-shadow:inset 3px 0 #2779b4!important}.ym-item .ym-sender{font-size:12.5px!important;font-weight:600!important;color:#33445a!important}.ym-item time{font-size:10.5px!important;color:#8994a2!important}.ym-item strong{font-size:12.5px!important;font-weight:550!important;color:#243144!important}.ym-item.unread .ym-sender,.ym-item.unread strong{font-weight:750!important;color:#152a42!important}.ym-snippet{font-size:11.5px!important;color:#798595!important;white-space:nowrap!important;line-height:1.4!important}.ym-clip{font-size:11px!important;color:#7b8794!important}
.ym-pagination{background:#fff!important;border-color:#edf0f4!important}.ym-pagination button{border:1px solid #d9e1ea!important;background:#fff!important;color:#3575a2!important;border-radius:5px!important;font-size:12px!important}
.ym-read-panel{padding:0 22px 24px!important;background:#fff!important}.ym-reader-top{padding:18px 0 14px!important;border-bottom:1px solid #edf0f4!important}.ym-reader-top h2{font-size:20px!important;font-weight:650!important;letter-spacing:-.02em;line-height:1.4!important;color:#233044;margin:0 0 15px!important}.ym-meta{margin:5px 0!important;color:#57677b!important;font-size:12px!important;line-height:1.5!important}.ym-meta b{color:#26384d!important;font-weight:620}.ym-reader-actions{position:sticky!important;top:0!important;padding:10px 0!important;margin:0 0 14px!important;background:#fff!important;border-bottom:1px solid #edf0f4!important;gap:6px!important;z-index:2}.ym-reader-actions button{padding:7px 10px!important;min-height:32px!important;border-radius:5px!important;background:#fff!important;color:#47566b!important;border:1px solid #dfe5ec!important;font-size:11.5px!important}.ym-reader-actions button:hover{background:#f2f6fa!important;border-color:#b9c8d8!important}
.ym-body{font-size:14px!important;line-height:1.65!important;color:#27313f}.ym-mail-html{min-height:600px!important;height:min(85vh,1000px)!important;background:#fff}.ym-attachments{padding:5px 0 15px!important}.ym-attachments h3{margin:6px 0 10px!important;color:#485669!important;font-size:12.5px!important;font-weight:600!important}.ym-file-list{gap:6px!important}.ym-file{padding:9px 11px!important;border:1px solid #e2e7ee!important;border-radius:5px!important;background:#fafbfd!important}.ym-file-name{font-size:12px!important;color:#273a53!important}.ym-file-name b{font-weight:570!important}.ym-file-name small{color:#8290a0!important;font-size:11px!important}.ym-file button{font-size:11.5px!important;border-radius:4px!important;background:#fff!important;color:#316ca3!important;border:1px solid #d6e1eb!important;padding:6px 9px!important}
.ym-empty{font-size:13px!important;color:#718096!important}.ym-compose-dialog{border-radius:9px!important}.ym-compose-dialog .ym-dialog-head{background:#fff!important}.ym-compose-editor{font-family:Arial,Roboto,sans-serif!important}.ym-dialog button:focus-visible,.ym-app button:focus-visible{outline:2px solid #4d9fe2!important;outline-offset:2px}
@media(max-width:1250px){.ym-app{grid-template-columns:160px minmax(280px,35%) minmax(0,1fr)!important}.ym-read-panel{padding:0 15px 18px!important}}
@media(max-width:860px){.ym-app{height:auto!important;max-height:none!important;grid-template-columns:165px minmax(0,1fr)!important}.ym-read-panel{grid-column:2!important;min-height:400px!important}.ym-list-panel{height:440px!important}}
@media(max-width:560px){.ym-app{display:block!important;height:auto!important}.ym-side{padding:10px!important}.ym-folders{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:3px!important}.ym-list-panel{height:420px!important}.ym-read-panel{padding:0 12px 12px!important}.ym-reader-actions{position:static!important}.ym-mail-html{height:650px!important}}

/* v2.18.7.4: Chrome-safe native PDF preview and fallback tab control. */
.ym-preview-actions{display:flex;align-items:center;gap:10px}.ym-preview-open-tab{font-size:13px;line-height:1.3;color:#155a91;text-decoration:none;border:1px solid #dae3ec;border-radius:6px;padding:7px 10px;background:#fff}.ym-preview-open-tab:hover{text-decoration:underline;background:#f5f8fc}.ym-preview-open-tab[hidden]{display:none!important}


/* v2.18.7.5 — clear Gmail-like read/unread rows, generous reading space. */
.ym-app{grid-template-columns:minmax(150px,14%) minmax(270px,27%) minmax(0,1fr)!important}
.ym-item.read{background:#fff!important;color:#596473!important}
.ym-item.read .ym-sender{font-weight:450!important;color:#566476!important}
.ym-item.read strong{font-weight:450!important;color:#4f5b6b!important}
.ym-item.read time{font-weight:400!important;color:#93a0af!important}
.ym-item.unread{background:#f1f6fd!important}
.ym-item.unread .ym-sender{font-weight:750!important;color:#172c47!important}
.ym-item.unread strong{font-weight:750!important;color:#182c44!important}
.ym-item.unread time{font-weight:700!important;color:#1e527d!important}
.ym-item.unread .ym-sender:before{content:"";display:inline-block;background:#1873cf;width:7px;height:7px;border-radius:50%;margin-right:7px;vertical-align:middle}
.ym-item.active,.ym-item.active.unread{background:#eaf2fd!important;box-shadow:inset 3px 0 #2475bc!important}
.ym-item.active.read{background:#edf3f8!important}
.ym-reader-expand{margin-right:6px!important;background:#f3f7fb!important;color:#205c93!important;font-weight:650!important}
.ym-app.ym-reader-expanded{grid-template-columns:minmax(150px,14%) minmax(0,1fr)!important}
.ym-app.ym-reader-expanded .ym-list-panel{display:none!important}
.ym-app.ym-reader-expanded .ym-read-panel{grid-column:2!important;padding-left:28px!important;padding-right:28px!important}
.ym-app.ym-reader-expanded .ym-mail-html{height:min(100vh,1100px)!important}
.ym-reader-top h2{font-weight:650!important;font-size:19px!important;line-height:1.45!important}
.ym-preview-dialog{width:min(96vw,1420px)!important;max-width:none!important;max-height:95vh!important;height:min(93vh,1000px);padding:16px 18px!important;box-sizing:border-box;display:none;flex-direction:column;overflow:hidden!important}
.ym-preview-dialog[open]{display:flex!important}
.ym-preview-dialog .ym-dialog-head{flex:0 0 auto;margin-bottom:10px}
.ym-preview-dialog #ymPreviewContent{min-height:0;min-width:0;flex:1 1 auto;display:flex;overflow:hidden}
.ym-preview-dialog .ym-attachment-preview{height:100%!important;width:100%!important;max-height:none!important;object-fit:contain!important}
.ym-preview-dialog.ym-preview-fullscreen{width:calc(100vw - 12px)!important;height:calc(100vh - 12px)!important;max-height:none!important;max-width:none!important;padding:10px 12px!important}
.ym-preview-dialog #ymPreviewExpand{font-size:12px;border:1px solid #d3dde8;background:#f8fafc;border-radius:5px;padding:7px 11px;color:#275f91}
@media(max-width:1250px){.ym-app{grid-template-columns:155px minmax(240px,30%) minmax(0,1fr)!important}.ym-app.ym-reader-expanded{grid-template-columns:155px minmax(0,1fr)!important}}
@media(max-width:860px){.ym-app{grid-template-columns:165px minmax(0,1fr)!important}.ym-app.ym-reader-expanded{grid-template-columns:165px minmax(0,1fr)!important}.ym-app.ym-reader-expanded .ym-read-panel{grid-column:2!important;padding:0 14px 16px!important}}
@media(max-width:560px){.ym-app.ym-reader-expanded{display:block!important}.ym-app.ym-reader-expanded .ym-side{display:none!important}.ym-app.ym-reader-expanded .ym-read-panel{padding:0 12px 16px!important}.ym-preview-dialog{width:calc(100vw - 8px)!important;height:calc(100vh - 18px)!important;padding:8px!important}.ym-preview-actions{gap:5px!important}.ym-preview-open-tab{font-size:11px!important;padding:5px!important}}

/* v2.18.7.6 — legible destructive action, compact attachment chooser. */
.ym-list-header #ymEmptyTrash{background:#fff5f5!important;color:#ad2434!important;border:1px solid #efb9c1!important;border-radius:6px!important;font-size:12px!important;font-weight:700!important;padding:8px 11px!important;white-space:nowrap;box-shadow:none!important}
.ym-list-header #ymEmptyTrash:hover{background:#ffe7eb!important;border-color:#db8897!important}
.ym-list-header #ymEmptyTrash:disabled{opacity:.55!important;cursor:wait!important}
.ym-compose-dialog #ymFiles{padding:8px!important;min-height:43px!important;background:#fff!important;color:#334155!important;cursor:pointer}
.ym-compose-dialog #ymFiles::file-selector-button{padding:7px 12px;margin-right:12px;background:#f3f6fa;border:1px solid #cbd5e1;border-radius:5px;color:#243954;cursor:pointer;font-weight:600}
.ym-compose-dialog #ymFiles::file-selector-button:hover{background:#e7edf5}
.ym-selected-files{font-size:12px;line-height:1.5;color:#64748b;margin:-4px 0 12px;overflow-wrap:anywhere}
.ym-selected-files.ym-files-over-limit{color:#b42318;font-weight:650}

/* v2.18.7.9: show actionable send errors at the top of the compose dialog. */
.ym-compose-dialog .ym-compose-error-banner:not([hidden]){position:sticky;top:0;z-index:6;display:block;margin:6px 0 10px;padding:10px 12px;border:1px solid #efbbc2;border-radius:7px;background:#fff2f3;color:#932329;font-size:13px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
.ym-compose-dialog .ym-compose-error-banner[hidden]{display:none!important}


/* v2.18.7.9: user-adjustable Mail column widths, desktop only. */
@media(min-width:861px){
 .ym-app.ym-resizable:not(.ym-reader-expanded){grid-template-columns:var(--ym-side-width,205px) var(--ym-list-width,390px) minmax(0,1fr)!important;position:relative}
 .ym-app.ym-resizable:not(.ym-reader-expanded) .ym-resize-handle{display:block!important}
}
.ym-app{position:relative}
.ym-resize-handle{display:none;position:absolute;z-index:8;top:0;bottom:0;width:10px;cursor:col-resize;touch-action:none;background:transparent;transition:background .15s ease}
.ym-resize-side{left:calc(var(--ym-side-width,205px) - 5px)}
.ym-resize-list{left:calc(var(--ym-side-width,205px) + var(--ym-list-width,390px) - 5px)}
.ym-resize-handle:hover,.ym-resize-handle.dragging,.ym-resize-handle:focus-visible{background:rgba(35,103,171,.16);outline:none}
.ym-resize-handle:after{content:"";position:absolute;left:4px;top:44%;height:40px;width:2px;border-radius:4px;background:#9caec3;opacity:.7}
body.ym-resizing,body.ym-resizing *{cursor:col-resize!important;user-select:none!important}
.ym-commandbar #ymBrowserNotify[aria-pressed="true"]{background:#e9f3fc!important;color:#1d5d94!important;border-color:#b8d4ec!important;font-weight:650!important}
.ym-commandbar #ymBrowserNotify{white-space:nowrap;font-size:12px!important;padding:8px 11px!important}
@media(max-width:860px){.ym-resize-handle{display:none!important}}

/* v2.19.7: optional safe link fallback outside the sandboxed email frame */
.ym-message-links{margin:12px 0 16px;border:1px solid #dce5ef;border-radius:6px;background:#fbfdff;padding:10px 12px;font-size:12px;color:#475569}
.ym-message-links summary{cursor:pointer;font-weight:600;color:#2563a0}
.ym-message-links-list{display:flex;flex-direction:column;gap:8px;padding:10px 0 0;overflow-wrap:anywhere}
.ym-message-links-list a{color:#135b99;text-decoration:underline;text-underline-offset:2px;display:block}

/* v2.20.8: compose formatting commands in Outlook-like grouped toolbar. */
.ym-compose-toolbar{gap:6px!important;padding:9px 10px!important;background:#f6f8fc!important;align-items:center!important}
.ym-toolbar-group{display:flex;align-items:center;flex-wrap:wrap;gap:4px;min-width:0}
.ym-compose-toolbar .ym-toolbar-selects{flex:0 1 auto;gap:6px}
.ym-compose-toolbar .ym-toolbar-field{display:inline-flex!important;margin:0!important;min-width:0}
.ym-compose-toolbar select{display:block;min-width:0;margin:0!important;max-width:158px;width:auto;padding:6px 24px 6px 9px!important;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#243951;font:13px Arial,sans-serif;height:34px}
.ym-compose-toolbar #ymComposeFont{max-width:155px}.ym-compose-toolbar #ymComposeFontSize{max-width:85px}.ym-compose-toolbar #ymComposeBlock{max-width:118px}
.ym-compose-toolbar button{font-size:13px!important;font-weight:550;min-height:33px!important;padding:5px 9px!important;border-radius:6px!important;white-space:nowrap}
.ym-toolbar-separator{height:27px;width:1px;background:#cbd5e1;margin:0 2px}
.ym-compose-toolbar .ym-toolbar-colors label{display:inline-flex!important;gap:4px!important;font-size:12px!important}
.ym-compose-toolbar :is(button,select,input):focus-visible{outline:2px solid #2563eb;outline-offset:1px}
.ym-compose-editor{font-size:14px!important;line-height:1.6!important;min-height:260px}
.ym-compose-editor h2{font-size:23px;line-height:1.4}.ym-compose-editor h3{font-size:19px;line-height:1.4}
.ym-compose-toolbar .sr-only{position:absolute;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;width:1px;height:1px;padding:0;margin:-1px;border:0}
@media(max-width:690px){.ym-compose-toolbar{gap:5px!important}.ym-toolbar-separator{display:none}.ym-compose-toolbar .ym-toolbar-selects{width:100%}.ym-compose-toolbar select{max-width:100%!important}.ym-compose-toolbar .ym-toolbar-field{flex:1 1 88px}.ym-compose-toolbar button{min-height:38px!important}}


/* v2.20.17 — multi-select mail, accessible checkboxes and compact batch toolbar. */
.ym-bulkbar[hidden],.ym-bulk-actions button[hidden]{display:none!important}
.ym-bulkbar{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;padding:9px 12px;border-bottom:1px solid #dbe6f3;background:#f5f9ff;color:#243b57;font-size:13px;min-width:0}
.ym-bulk-select-all{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;cursor:pointer;user-select:none;font-weight:600}
.ym-bulk-select-all input,.ym-mail-select input{accent-color:#2464c7;width:17px;height:17px;cursor:pointer;flex:0 0 auto}
.ym-bulk-count{color:#61748e;white-space:nowrap;font-size:12px}
.ym-bulk-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-left:auto}
.ym-bulk-actions button{border:1px solid #cedaed;border-radius:6px;background:#fff;color:#235d98;cursor:pointer;padding:7px 10px;font-size:12px;white-space:nowrap;font-weight:600;min-height:32px}
.ym-bulk-actions button.ym-bulk-danger{color:#af2d40;border-color:#efc8cf;background:#fff8f8}
.ym-bulk-actions button:hover:not(:disabled){background:#e9f3ff}
.ym-bulk-actions button.ym-bulk-danger:hover:not(:disabled){background:#fee8ec}
.ym-bulk-actions button:disabled{opacity:.5;cursor:not-allowed}
.ym-bulk-status{flex-basis:100%;font-size:12px;color:#49627e;line-height:1.45}
.ym-bulk-status:empty{display:none}
.ym-mail-row{display:flex;align-items:stretch;border-bottom:1px solid #e5ebf3;min-width:0;background:#fff}
.ym-mail-row:hover,.ym-mail-row.is-selected{background:#eaf2ff}
.ym-mail-row .ym-item{border-bottom:0!important;flex:1;min-width:0;width:auto!important;background:transparent!important}
.ym-mail-row .ym-item:hover,.ym-mail-row .ym-item.active{background:#eaf2ff!important}
.ym-mail-select{display:flex;align-items:flex-start;justify-content:center;flex:0 0 37px;padding:14px 1px 0 8px;cursor:pointer}
.ym-mail-row.is-selected .ym-mail-select{background:#eaf2ff}
.ym-mail-select input:focus-visible,.ym-bulk-select-all input:focus-visible{outline:2px solid #2459bb;outline-offset:2px}
@media(max-width:560px){.ym-bulkbar{padding:8px 9px;gap:6px 8px}.ym-bulk-actions{width:100%;margin-left:0}.ym-bulk-actions button{flex:1 1 auto}.ym-mail-select{flex-basis:34px;padding-left:6px}}

/* v2.20.17: dark mode bulk selection keeps sufficient text contrast. */
html[data-yura-theme="dark"] .ym-bulkbar{background:#1b2d44!important;color:#e4efff!important;border-color:#38516f!important}
html[data-yura-theme="dark"] .ym-bulk-count,html[data-yura-theme="dark"] .ym-bulk-status{color:#bfd1e6!important}
html[data-yura-theme="dark"] .ym-bulk-actions button{background:#253a56!important;color:#dceaff!important;border-color:#47617f!important}
html[data-yura-theme="dark"] .ym-bulk-actions button.ym-bulk-danger{background:#422838!important;color:#ffc4cb!important;border-color:#a15b6d!important}
html[data-yura-theme="dark"] .ym-mail-row{background:#17283d!important;border-color:#334c67!important}
html[data-yura-theme="dark"] .ym-mail-row:hover,html[data-yura-theme="dark"] .ym-mail-row.is-selected,html[data-yura-theme="dark"] .ym-mail-row.is-selected .ym-mail-select{background:#254b79!important}
html[data-yura-theme="dark"] .ym-mail-row .ym-item{color:#e8f0fa!important}

/* v2.21.1: mailbox connection diagnostics; compact in all three columns. */
.ym-health{padding:10px 9px;margin:9px 0 12px;border:1px solid #d9e2ee;border-radius:7px;background:var(--surface,#fff);font-size:12px;line-height:1.45}
.ym-health-label{font-weight:600;color:#52627a;font-size:11px;margin-bottom:5px}
.ym-health-state{font-weight:650;color:#506079;overflow-wrap:anywhere}
.ym-health-state[data-state="active"]{color:#147652}.ym-health-state[data-state="reconnect"]{color:#ac4c2d}.ym-health-state[data-state="temporary"]{color:#935b1b}
.ym-health-checked{font-size:11px;color:#64748b;margin-top:5px;overflow-wrap:anywhere}
.ym-health-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.ym-health-actions button{padding:6px 9px!important;min-height:29px;border:1px solid #c7d6e9;border-radius:5px;background:transparent;color:inherit;font-size:11px;cursor:pointer}
.ym-health-actions button[hidden]{display:none!important}
.ym-health-actions:not(:has(button:not([hidden]))){display:none}
.ym-health-actions button:disabled{opacity:.55;cursor:default}
@media(max-width:540px){.ym-health{margin:8px 0}.ym-health-actions button{flex:1}}

/* v2.21.16.5: Visible mail attachment upload / Gmail acknowledgement state. */
.ym-send-status:not([hidden]){display:block;margin:8px 0 12px;padding:10px 12px;border:1px solid #a7c5f7;border-radius:8px;background:#f0f6ff;color:#174b97;font-size:13px;line-height:1.5;font-weight:600}
.ym-compose-actions button[disabled]{opacity:.65;cursor:progress}

/* v2.21.16.5: widen or expand Mail compose window without changing mail content. */
.ym-compose-window-actions{display:flex;align-items:center;gap:9px}
.ym-compose-dialog .ym-compose-window-actions #ymComposeExpand{font-size:12px;border:1px solid #cbd5e1;background:#fff;color:#27527d;border-radius:6px;padding:7px 12px;white-space:nowrap}
.ym-compose-dialog.ym-compose-expanded{width:calc(100vw - 28px)!important;max-width:none!important;max-height:calc(100vh - 24px)!important;height:calc(100vh - 24px)!important;box-sizing:border-box}
.ym-compose-dialog.ym-compose-expanded #ymComposeForm{min-height:100%;box-sizing:border-box}
.ym-compose-dialog.ym-compose-expanded .ym-compose-editor{min-height:40vh;max-height:none;height:clamp(280px,46vh,700px)}
@media(max-width:560px){.ym-compose-dialog .ym-compose-window-actions #ymComposeExpand{display:none}.ym-compose-dialog{width:calc(100vw - 12px)!important;max-width:none!important}.ym-compose-editor{min-height:210px!important}}
