.bom-email-root{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#15304b;line-height:1.5;max-width:100%;box-sizing:border-box}.bom-email-root *{box-sizing:border-box}.bom-email-root .bom-shell{max-width:960px;margin:24px auto;background:#fff;border:1px solid #dce6ee;border-radius:18px;overflow:hidden;box-shadow:0 10px 35px rgba(11,43,74,.08)}.bom-header{background:linear-gradient(115deg,#07345c,#09618a);color:#fff;padding:26px 30px;display:flex;align-items:center;justify-content:space-between;gap:18px}.bom-header h2{font-size:clamp(21px,3vw,30px);line-height:1.3;color:#fff;margin:5px 0}.bom-header p{margin:0;color:#d9eaf4;font-size:14px}.bom-eyebrow{font-size:11px;letter-spacing:1.3px;font-weight:700}.bom-head-actions{display:flex;gap:8px;flex-wrap:wrap}.bom-main{padding:26px 30px}.bom-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}.bom-wide{grid-column:1/-1}.bom-field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;min-width:0}.bom-field b{color:#d63d40}.bom-email-root input:not([type=checkbox]):not([type=radio]),.bom-email-root select{font:inherit;min-width:0;width:100%;min-height:45px;border:1px solid #bfcfda;border-radius:9px;background:#fff;color:#163450;padding:10px 12px}.bom-email-root input:focus,.bom-email-root select:focus{outline:2px solid #2b9bc5;outline-offset:1px}.bom-email-root button{cursor:pointer;font:inherit}.bom-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 16px;min-height:42px;border-radius:9px;font-size:14px;font-weight:700;border:1px solid transparent;text-decoration:none}.bom-primary{background:#086b9b;color:white!important}.bom-primary:hover{background:#07577d}.bom-outline{border-color:#aac8db;color:#075780;background:white}.bom-header .bom-outline{background:rgba(255,255,255,.1);color:#fff;border-color:rgba(255,255,255,.5)}.bom-generate{margin-top:24px;width:100%;font-size:16px;min-height:49px}.bom-subheading{font-size:17px;font-weight:800;border-top:1px solid #e1e9ef;padding-top:18px}.bom-muted,.bom-help{font-size:13px;color:#61778a;margin:0}.bom-hint{background:#fff6e8;border-radius:8px;padding:10px 12px;color:#79521c}.bom-hint.bom-success{background:#eaf7f3;color:#12674f}.bom-hint .bom-field{margin-top:10px}.bom-cc{border:1px solid #e0e9f0;background:#f7fafc;border-radius:10px;padding:13px}.bom-checks{display:flex;gap:8px 18px;flex-wrap:wrap;margin:10px 0}.bom-cc-item{display:flex;align-items:center;gap:7px;font-size:13px}.bom-cc-item input{width:17px;height:17px}.bom-result{margin-top:24px;border-top:2px solid #d8e7f0;padding-top:18px}.bom-result h3{margin:0 0 12px}.bom-preview{border:1px solid #d9e5ed;border-radius:10px;overflow:hidden}.bom-preview>div{padding:10px 14px;border-bottom:1px solid #edf1f5;overflow-wrap:anywhere}.bom-preview>div:last-child{border-bottom:0}.bom-body-preview{white-space:pre-wrap;max-height:180px;overflow:auto;font-size:13px;background:#f8fafc}.bom-result-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}.bom-notice{padding:12px;border-radius:9px;margin-bottom:16px;background:#fff1f0;color:#9a2820}.bom-notice.ok{background:#e6f6ed;color:#145c37}.bom-footer{padding:18px 25px;background:#f2f7fa;text-align:center;font-size:13px;color:#607789}.bom-footer p{margin:12px 0 0;font-weight:700}.bom-footer-row{display:flex;gap:10px 22px;justify-content:center;flex-wrap:wrap}.bom-link{background:none;border:0;text-decoration:underline;color:#075e88;padding:4px}.bom-overlay{position:fixed;z-index:999999;inset:0;background:rgba(8,27,44,.6);display:flex;align-items:center;justify-content:center;padding:16px}.bom-dialog{background:white;border-radius:15px;max-width:600px;width:100%;max-height:88vh;overflow:auto;padding:24px;position:relative;box-shadow:0 15px 60px #001a2d44}.bom-dialog h3{font-size:22px;margin:0 40px 16px 0}.bom-dialog h4{font-size:16px;margin:24px 0 10px}.bom-dialog p{line-height:1.65}.bom-modal-close{position:absolute;top:12px;right:15px;border:0;background:transparent;font-size:28px;color:#35556c}.bom-modal-list>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 0;border-bottom:1px solid #e4eaf0;flex-wrap:wrap;overflow-wrap:anywhere}.bom-modal-list button{background:transparent;border:0;color:#a43838;text-decoration:underline}.bom-inline{display:flex;gap:8px;margin-top:12px}.bom-inline input{flex:1}.bom-danger{background:#fff2f2;border-color:#d99;color:#a22}.bom-dialog .bom-field{margin:12px 0}.bom-email-root [hidden]{display:none!important}.bom-email-root[dir=rtl] .bom-modal-close{right:auto;left:15px}.bom-email-root[dir=rtl] .bom-dialog h3{margin:0 0 16px 40px}.bom-email-root [type=email]{direction:ltr;text-align:left}@media(max-width:640px){.bom-email-root .bom-shell{margin:0;border-radius:12px}.bom-header{padding:20px 16px;flex-direction:column;align-items:stretch}.bom-head-actions{justify-content:flex-start}.bom-main{padding:20px 15px}.bom-grid{grid-template-columns:minmax(0,1fr);gap:14px}.bom-wide{grid-column:1}.bom-result-actions .bom-btn{flex:1}.bom-footer{padding:16px 12px}.bom-dialog{padding:20px 14px}.bom-inline{flex-wrap:wrap}.bom-inline input{min-width:180px}}

.bom-footer a{color:#075e88;text-decoration:underline;font-weight:700}.bom-footer a:hover{text-decoration:none}

/* v1.0.5 visual refinements */
.bom-email-root .bom-header h2,.bom-email-root .bom-header h2 *{color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:none!important;font-weight:800!important}
.bom-email-root .bom-community-badge{display:inline-flex;align-items:center;margin-top:12px;padding:5px 12px;border:1px solid rgba(255,255,255,.45);background:rgba(255,255,255,.14);border-radius:999px;color:#fff;font-size:12px;font-weight:750;letter-spacing:.02em}
.bom-email-root .bom-header{background:linear-gradient(125deg,#062b50 0%,#084e7b 62%,#0877a3 100%);padding:34px 32px}
.bom-email-root .bom-header p{color:#e8f5ff;font-weight:500}
.bom-email-root .bom-welcome{display:flex;flex-direction:column;gap:5px;padding:16px 18px;margin-bottom:24px;background:#eef7fd;border:1px solid #d8eaf5;border-radius:12px;color:#163b5a}
.bom-email-root .bom-welcome strong{font-size:16px}.bom-email-root .bom-welcome span{font-size:13px;color:#4c687e}
.bom-email-root .bom-field{gap:8px}.bom-email-root input:not([type=checkbox]):not([type=radio]),.bom-email-root select{min-height:49px;border-radius:11px;border-color:#b7ccda;background:#fff}
.bom-email-root input:focus-visible,.bom-email-root select:focus-visible,.bom-email-root button:focus-visible{outline:3px solid #58b5df;outline-offset:2px}
.bom-email-root .bom-btn{border-radius:11px;min-height:46px}.bom-email-root .bom-generate{min-height:54px;font-size:17px;box-shadow:0 6px 14px rgba(8,107,155,.18)}
.bom-email-root .bom-subheading{color:#073e66;margin-top:10px}.bom-email-root .bom-cc{background:#f3f8fc;padding:16px;border-radius:13px}
.bom-email-root .bom-dialog{max-width:680px;padding:30px;background:#f8fbfd}.bom-email-root .bom-dialog h3{color:#073e66;font-size:23px}.bom-email-root .bom-settings-intro{margin:0 0 18px;color:#536e82;font-size:14px}
.bom-email-root .bom-settings-card{padding:18px;margin:14px 0;background:#fff;border:1px solid #dce8f0;border-radius:14px;box-shadow:0 3px 12px rgba(11,43,74,.035)}
.bom-email-root .bom-settings-card h4{margin:0 0 5px;font-size:17px;color:#0a4167}.bom-email-root .bom-settings-card .bom-modal-list{margin:12px 0}.bom-email-root .bom-settings-card .bom-modal-list>div{padding:12px 0;gap:12px}.bom-email-root .bom-settings-card .bom-inline{align-items:stretch}.bom-email-root .bom-settings-danger{border-color:#f1d6d6}
.bom-email-root .bom-footer a{color:#075e88;font-weight:800}
@media(max-width:640px){.bom-email-root .bom-header{padding:24px 18px}.bom-email-root .bom-header h2{font-size:25px!important}.bom-email-root .bom-head-actions .bom-btn{flex:1}.bom-email-root .bom-main{padding:18px 14px}.bom-email-root .bom-welcome{margin-bottom:18px}.bom-email-root .bom-dialog{padding:20px 14px}.bom-email-root .bom-settings-card{padding:14px}.bom-email-root .bom-settings-card .bom-modal-list>div{align-items:flex-start}}
