/* EE Holdings Mail. Brand: EE blue #24408e, red #e3262e, yellow #f7e339. */
:root {
  --ee-blue: #24408e; --ee-blue-2: #1b3272; --ee-red: #e3262e; --ee-yellow: #f7e339;
  --bg: #f6f8fc; --panel: #fff; --line: #e3e6ec; --text: #1f1f1f; --dim: #5f6368; --hover: #eef1f8; --sel: #dfe6f6;
  --ok: #137333; --warn: #b06000; --bad: #c5221f; --radius: 16px; --sel-box: #d3e3fd;
  /* one colour per business in the inbox list: EE blue, red, a darker EE yellow, then green, purple, teal */
  --org-0: #24408e; --org-1: #e3262e; --org-2: #b38b00; --org-3: #137333; --org-4: #7b3fc4; --org-5: #0b7285;
  font: 14px/1.45 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); }
a { color: var(--ee-blue); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ee-blue); outline-offset: 2px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dim { color: var(--dim); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
code { font-size: 12px; background: #f1f3f4; padding: 1px 4px; border-radius: 4px; }

/* buttons */
.rm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; text-decoration: none; color: var(--text); font-weight: 500; }
.rm-btn:hover { background: var(--hover); }
.rm-btn-primary { background: var(--ee-blue); border-color: var(--ee-blue); color: #fff; }
.rm-btn-primary:hover { background: var(--ee-blue-2); }
.rm-btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.rm-btn:disabled { opacity: .55; cursor: default; }
.rm-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; font-size: 18px; }
.rm-icon:hover { background: var(--hover); }
.rm-icon:disabled { opacity: .35; cursor: default; }
.rm-linkbtn { border: 0; background: none; color: var(--ee-blue); cursor: pointer; padding: 0; font-weight: 500; }

/* landing and auth */
.rm-plain { background: linear-gradient(180deg, #fff 0, var(--bg) 60%); min-height: 100vh; }
.rm-doors { max-width: 880px; margin: 0 auto; padding: 56px 20px; }
.rm-doors-head { text-align: center; margin-bottom: 36px; }
.rm-doors-head h1 { font-size: 30px; margin: 14px 0 6px; letter-spacing: -.01em; }
.rm-doors-head p { color: var(--dim); margin: 0; font-size: 16px; }
.rm-doors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.rm-door { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--ee-blue); }
.rm-door:nth-child(2) { border-top-color: var(--ee-red); }
.rm-door h2 { margin: 0; font-size: 20px; }
.rm-door p { margin: 0 0 8px; color: var(--dim); flex: 1; }
.rm-door-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.rm-doors-foot { text-align: center; color: var(--dim); margin-top: 28px; font-size: 13px; }
.rm-auth { min-height: 100vh; display: grid; place-items: start center; padding: 48px 16px; }
.rm-auth-card { width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.rm-auth-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; margin-bottom: 18px; }
.rm-auth-card h1 { font-size: 22px; margin: 0 0 6px; }
.rm-lede { color: var(--dim); margin: 0 0 18px; }
.rm-form { display: grid; gap: 14px; }
.rm-form label { display: grid; gap: 6px; font-weight: 500; }
.rm-form input:not([type=checkbox]), .rm-form select { min-height: 44px; padding: 0 12px; border: 1px solid #c4c7cc; border-radius: 10px; background: #fff; width: 100%; }
.rm-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.rm-form legend { font-weight: 700; margin-bottom: 4px; }
.rm-optional { color: var(--dim); font-weight: 400; font-size: 12px; }
.rm-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.rm-check input { margin-top: 3px; width: 18px; height: 18px; }
.rm-check.sm { align-items: center; font-size: 13px; }
.rm-error { color: var(--bad); margin: 0; }
.rm-note { color: var(--ok); margin: 0; }
.rm-hint { color: var(--dim); margin: -6px 0 0; font-size: 13px; }
.rm-alt { text-align: center; color: var(--dim); margin: 18px 0 0; }

/* app shell */
.rm-app { height: 100vh; overflow: hidden; }
#rm { display: flex; flex-direction: column; height: 100%; }
.rm-top { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 16px 0 8px; flex: none; }
.rm-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-size: 20px; font-weight: 500; min-width: 180px; }
.rm-search { flex: 1; max-width: 720px; display: flex; align-items: center; gap: 10px; background: #e9eef6; border-radius: 999px; padding: 0 16px; height: 46px; }
.rm-search:focus-within { background: #fff; box-shadow: 0 1px 3px rgba(32, 33, 36, .28); }
.rm-search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 16px; }
.rm-top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; position: relative; }
.rm-avatar { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ee-blue); color: #fff; font-weight: 600; cursor: pointer; display: inline-grid; place-items: center; flex: none; }
.rm-avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.rm-pop { position: absolute; right: 0; top: 48px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; width: 260px; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); z-index: 30; }
.rm-pop p { margin: 0 0 10px; overflow-wrap: anywhere; }
.rm-body { flex: 1; display: flex; min-height: 0; }
.rm-side { width: 256px; flex: none; padding: 8px 12px 16px 8px; overflow-y: auto; display: flex; flex-direction: column; }
.rm-compose-btn { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px 0 18px; border: 0; border-radius: 16px; background: #c2e7ff; color: #001d35; font-weight: 600; font-size: 15px; cursor: pointer; margin: 0 0 14px 4px; align-self: flex-start; }
.rm-compose-btn:hover { box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.rm-fab { display: none; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 16px; background: #c2e7ff; color: #001d35; font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.rm-folders { list-style: none; margin: 0; padding: 0; }
.rm-folders a { display: flex; align-items: center; gap: 16px; height: 34px; padding: 0 12px 0 22px; border-radius: 0 999px 999px 0; text-decoration: none; color: var(--text); }
.rm-folders a:hover { background: var(--hover); }
.rm-folders a.on { background: #d3e3fd; font-weight: 700; }
.rm-folders a span { flex: 1; }
.rm-folders a b { font-size: 12px; }
.rm-admin-links { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.rm-quota { margin-top: auto; padding: 14px 12px 0 22px; font-size: 12px; }
.rm-quota p { margin: 4px 0 0; }
.rm-quota-bar { height: 4px; background: #e3e6ec; border-radius: 2px; overflow: hidden; }
.rm-quota-bar i { display: block; height: 100%; background: var(--ee-blue); }
.rm-main { flex: 1; min-width: 0; background: var(--panel); border-radius: var(--radius); margin: 0 16px 16px 0; overflow-y: auto; outline: none; }
.rm-loading, .rm-empty { padding: 48px 24px; text-align: center; color: var(--dim); }

/* list */
.rm-listbar { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; min-height: 52px; flex-wrap: wrap; }
.rm-list-title { font-size: 15px; margin: 0 8px; font-weight: 600; }
.rm-bulk { display: flex; gap: 6px; flex-wrap: wrap; }
/* pull-to-refresh: a round badge that follows the finger, turns blue once letting go will check, spins while it checks */
.rm-ptr { position: fixed; left: 50%; top: calc(72px + env(safe-area-inset-top)); z-index: 30; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; background: #fff; color: var(--dim); box-shadow: 0 1px 6px rgba(0, 0, 0, .25); display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(calc(var(--ptr, 0px) - 48px)); transition: opacity .12s; }
.rm-ptr.show { opacity: 1; }
.rm-ptr svg { transform: rotate(var(--ptr-r, 0deg)); }
.rm-ptr.ready { color: var(--brand, #0b57d0); }
.rm-ptr.spin svg { animation: rm-spin .8s linear infinite; }
.rm-main { overscroll-behavior-y: contain; }
.rm-refresh.spin svg { animation: rm-spin .8s linear infinite; }
@keyframes rm-spin { to { transform: rotate(360deg); } }
.rm-listbar.selecting .rm-refresh { display: none; }
.rm-pager { margin-left: auto; color: var(--dim); font-size: 12px; display: flex; align-items: center; gap: 2px; }
.rm-chk { display: inline-grid; place-items: center; width: 32px; height: 32px; cursor: pointer; }
.rm-chk input { width: 16px; height: 16px; }
.rm-list { list-style: none; margin: 0; padding: 0; }
.rm-row { display: flex; align-items: center; gap: 4px; padding: 0 16px 0 8px; height: 44px; border-bottom: 1px solid #f1f3f4; cursor: pointer; background: #f2f6fc; }
.rm-row.unread { background: #fff; }
.rm-row.unread .rm-who, .rm-row.unread .rm-when { font-weight: 700; }
.rm-row:hover { box-shadow: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0, 0 1px 2px rgba(60, 64, 67, .3); position: relative; z-index: 1; }
.rm-star { border: 0; background: none; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; color: #c4c7c5; }
.rm-star[aria-pressed="true"] { color: #f4b400; }
.rm-star[aria-pressed="true"] svg { fill: currentColor; }
.rm-who { width: 200px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 6px; }
.rm-subj { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-subj b { font-weight: 500; }
.rm-row.unread .rm-subj b { font-weight: 700; }
.rm-when { flex: none; font-size: 12px; color: var(--dim); width: 72px; text-align: right; }
.rm-badge { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: #e8eaed; color: #3c4043; white-space: nowrap; margin-left: 6px; }
.s-failed, .s-bounced, .s-hard_bounce, .s-blocked, .s-invalid, .s-spam { background: #fce8e6; color: var(--bad); }
.s-unknown, .s-queued, .s-deferred, .s-soft_bounce, .s-partial { background: #fef7e0; color: var(--warn); }
.s-delivered, .s-accepted { background: #e6f4ea; color: var(--ok); }

/* reading */
.rm-readbar { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; position: sticky; top: 0; background: var(--panel); z-index: 2; }
.rm-read-subj { font-size: 22px; font-weight: 400; margin: 18px 24px 8px 72px; }
.rm-imgnote { margin: 0 24px 8px 72px; padding: 8px 12px; background: #f1f3f4; border-radius: 8px; font-size: 13px; }
.rm-thread { padding: 0 24px 0 16px; }
.rm-msg { border-bottom: 1px solid var(--line); padding: 14px 0; }
.rm-msg header { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: start; }
.rm-msg header > div { min-width: 0; overflow-wrap: anywhere; }
.rm-msg header time { font-size: 12px; white-space: nowrap; }
.rm-frame { width: 100%; border: 0; min-height: 24px; margin: 10px 0 0 52px; width: calc(100% - 52px); display: block; }
.rm-delivery { margin: 8px 0 0 52px; font-size: 13px; }
.rm-delivery ul { margin: 6px 0; padding-left: 18px; }
.rm-delivery p { margin: 4px 0 0; font-size: 12px; }
.rm-atts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0 52px; padding: 0; }
.rm-atts a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; text-decoration: none; color: var(--text); max-width: 280px; }
.rm-atts span:not(.dim) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-replybar { display: flex; gap: 10px; padding: 18px 24px 28px 68px; flex-wrap: wrap; }

/* composer */
.rm-composer { position: fixed; right: 24px; bottom: 0; width: 560px; max-width: calc(100vw - 24px); height: min(560px, 85vh); background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 8px 28px rgba(0, 0, 0, .28); display: flex; flex-direction: column; z-index: 40; }
.rm-composer.min { height: 44px; overflow: hidden; }
.rm-composer > header { display: flex; justify-content: space-between; align-items: center; background: #f2f6fc; padding: 0 6px 0 16px; height: 44px; border-radius: 12px 12px 0 0; flex: none; }
.rm-composer > header .rm-icon { width: 32px; height: 32px; font-size: 15px; }
#c-form { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0 16px; }
.c-row { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #f1f3f4; min-height: 42px; }
.c-row > span:first-child { color: var(--dim); width: 36px; flex: none; }
.c-row input, .c-row select { flex: 1; border: 0; outline: none; min-height: 40px; background: transparent; min-width: 0; }
#c-body { flex: 1; border: 0; outline: none; resize: none; padding: 12px 0; min-height: 120px; font-size: 15px; }
.c-atts { list-style: none; margin: 0; padding: 0; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; }
.c-atts li { background: #f1f3f4; border-radius: 8px; padding: 4px 10px; }
.c-atts li.bad { color: var(--bad); }
#c-form footer { display: flex; align-items: center; gap: 10px; padding: 10px 0 14px; }
.rm-icon-btn { width: 40px; padding: 0; }
#c-state { flex: 1; font-size: 12px; }
.rm-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; background: #323232; color: #fff; padding: 12px 18px; border-radius: 8px; max-width: min(560px, calc(100vw - 48px)); z-index: 60; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.rm-toast.bad { background: #8c1d18; }

/* admin */
.rm-admin { padding: 20px 24px 40px; max-width: 1100px; }
.rm-admin h1 { font-size: 22px; font-weight: 500; margin: 4px 0 16px; }
.rm-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; }
.rm-card h2 { font-size: 16px; margin: 0 0 12px; }
.rm-card p { margin: 6px 0; }
.rm-warn { background: #fef7e0; color: #7a4a00; padding: 10px 14px; border-radius: 10px; }
.rm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.rm-stats div { background: #f6f8fc; border-radius: 12px; padding: 12px; }
.rm-stats b { display: block; font-size: 24px; font-weight: 600; }
.rm-stats span { color: var(--dim); font-size: 12px; }
.rm-hist { display: flex; align-items: flex-end; gap: 3px; height: 60px; margin: 12px 0; }
.rm-hist i { flex: 1 1 0; max-width: 18px; background: var(--ee-blue); border-radius: 2px 2px 0 0; opacity: .8; min-width: 4px; }
.rm-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.rm-table th { text-align: left; color: var(--dim); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.rm-table td { padding: 8px; border-bottom: 1px solid #f1f3f4; vertical-align: top; overflow-wrap: anywhere; }
.rm-acts { white-space: nowrap; }
.rm-acts > * { margin: 0 4px 4px 0; }
.rm-acts select, .rm-table select { min-height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; background: #fff; max-width: 200px; }
.rm-inline { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; align-items: center; }
.rm-inline input:not([type=checkbox]), .rm-inline select { min-height: 38px; padding: 0 10px; border: 1px solid #c4c7cc; border-radius: 10px; background: #fff; flex: 1 1 180px; min-width: 0; }
.rm-inline select[multiple] { min-height: 38px; height: 60px; flex: 0 1 160px; }
.rm-inline.sm input { flex: 0 0 90px; min-height: 32px; }
.rm-audit code { white-space: pre-wrap; word-break: break-word; }
.rm-timeline { margin: 8px 0; padding-left: 20px; }
.rm-timeline li { margin: 3px 0; }

/* account dropdown */
.rm-pop { width: 320px; padding: 0; overflow: hidden; }
.rm-pop-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 12px; }
.rm-pop-head > div { min-width: 0; display: grid; gap: 2px; }
.rm-pop-email { color: var(--dim); overflow-wrap: anywhere; }
.rm-avatar.lg { width: 48px; height: 48px; font-size: 20px; cursor: default; }
.rm-pop-org { margin: 0; padding: 0 18px 14px; color: var(--dim); font-size: 13px; }
.rm-pop-sec { display: block; margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); }
.rm-pop-sec h2 { font-size: 12px; font-weight: 600; color: var(--dim); margin: 0 0 6px; text-transform: none; }
.rm-pop-addrs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rm-pop-addrs li { display: grid; }
.rm-pop-addrs span { overflow-wrap: anywhere; font-weight: 500; }
.rm-pop-addrs small { color: var(--dim); font-size: 12px; }
.rm-pop-switch { display: grid; gap: 6px; font-size: 12px; color: var(--dim); font-weight: 600; }
.rm-pop-switch select { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fff; color: var(--text); font-size: 14px; font-weight: 400; width: 100%; }
.rm-pop-link { display: block; padding: 8px 0; font-weight: 500; text-decoration: none; }
/* Your account: one row per signed-in device, this one marked */
.rm-sess-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.rm-sess { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.rm-sess.here { border-color: var(--ee-blue); }
.rm-sess .rm-btn { flex: none; }
@media (max-width: 560px) { .rm-sess { flex-direction: column; align-items: stretch; } .rm-sess .rm-btn { min-height: 44px; } }
.rm-pop-foot { padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.rm-pop-foot .rm-btn { width: 100%; min-height: 44px; }
.rm-side-brand { display: none; }
.rm-scrim { display: none; }
.rm-act svg { width: 18px; height: 18px; }

/* sign in, claim, codes */
.rm-auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px 24px; background: radial-gradient(1200px 500px at 50% -10%, #e8edf9 0, var(--bg) 60%); }
.rm-auth-card { box-shadow: 0 1px 2px rgba(32, 33, 36, .06), 0 8px 28px rgba(36, 64, 142, .08); padding: 32px; }
.rm-auth-foot { margin: 20px 0 0; font-size: 12px; color: var(--dim); }
.rm-auth-foot a { color: var(--dim); }
.rm-btn-block { width: 100%; min-height: 46px; font-size: 15px; }
.rm-sso { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; border: 1px solid #c9d2e8; border-radius: 999px; background: #fff; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
button.rm-sso { width: 100%; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; padding: 0 18px; }
/* sign-in page: the agreement and Stay signed in, above every way of signing in */
.rm-login-choices { display: grid; gap: 8px; margin: 0 0 4px; }
.rm-default-submit { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.rm-sso:hover { background: #f3f6fd; border-color: var(--ee-blue); }
.rm-sso img { width: 30px; height: auto; }
.rm-or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 13px; margin: 18px 0; }
.rm-or::before, .rm-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rm-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.rm-label-row a { font-weight: 400; font-size: 13px; }
.rm-code { font: 600 24px/1 ui-monospace, Consolas, monospace !important; letter-spacing: .2em; text-align: center; text-transform: uppercase; }
.rm-fine { color: var(--dim); font-size: 13px; margin: 14px 0 0; text-align: center; }
.rm-auth-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.rm-auth-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.rm-auth-row .rm-linkbtn { min-height: 40px; }
.rm-callout { background: #fef7e0; color: #5c3c00; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-size: 14px; }
.rm-claim { margin: 0 0 18px; display: grid; gap: 10px; background: var(--bg); border-radius: 12px; padding: 14px 16px; }
.rm-claim div { display: grid; gap: 2px; }
.rm-claim dt { font-size: 12px; color: var(--dim); }
.rm-claim dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* brand: account circle and organization logos */
:root { --brand: var(--ee-blue); }
.rm-avatar { background: var(--brand); overflow: hidden; }
.rm-avatar.has-logo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.rm-avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rm-pop-pick { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; cursor: pointer; min-height: 44px; color: var(--text); }
.rm-pop-pick:hover { background: var(--hover); }
.rm-pop-pick.on { background: #e8eefc; }
.rm-pop-pick > span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.rm-pop-pick small { color: var(--dim); font-size: 12px; white-space: nowrap; }
.rm-pop-addrs .rm-pop-pick { flex-wrap: wrap; }
.rm-pop-addrs .rm-pop-pick small { flex-basis: 100%; }
.rm-org-logo { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; background: var(--bg); flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.rm-pop-foot { display: grid; gap: 8px; justify-items: center; }
.rm-pop-foot .rm-linkbtn { font-size: 13px; color: var(--dim); min-height: 32px; }

/* inbox switcher: inboxes grouped by business, each with its own unread count */
.rm-boxes { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.rm-boxes-h { font-size: 12px; font-weight: 600; color: var(--dim); padding: 4px 12px 4px 22px; }
.rm-boxes ul { list-style: none; margin: 0; padding: 0; }
.rm-box { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 34px; padding: 0 16px 0 40px; border: 0; border-radius: 0 999px 999px 0; background: none; cursor: pointer; text-align: left; color: var(--text); }
.rm-box-all { padding-left: 22px; }
.rm-box:hover { background: var(--hover); }
.rm-box.on { background: var(--sel-box); font-weight: 700; }
.rm-box-name { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.rm-box-local { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-box-note { flex: none; font-size: 11px; font-weight: 400; color: var(--dim); white-space: nowrap; }
.rm-count { flex: none; font-size: 12px; font-weight: 700; color: var(--text); }
.rm-org-h { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 12px 16px 4px 22px; font-size: 12px; }
.rm-org-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--org); }
.rm-org-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text); }
.rm-org-dom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); }
/* Organization page: its name, and which business you're setting up when you run several */
.rm-admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.rm-admin-head h1 { min-width: 0; overflow-wrap: anywhere; }
.rm-org-switch { display: inline-flex; align-items: center; gap: 8px; }
.rm-org-switch select { min-height: 38px; max-width: 260px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
@media (max-width: 860px) { .rm-org-switch, .rm-org-switch select { width: 100%; max-width: none; } .rm-org-switch select { min-height: 44px; font-size: 16px; } }
/* touch screens of any width (a tablet held sideways is wider than the phone breakpoint) get finger-sized rows */
@media (pointer: coarse) { .rm-box { min-height: 44px; } }
.rm-box-chip { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: #e8eefc; color: var(--ee-blue-2); font-size: 12px; font-weight: 500; vertical-align: middle; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* admin forms and pages */
.rm-sub { font-size: 14px; margin: 18px 0 8px; }
.rm-grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 10px 0; }
.rm-grid-form label { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 8px; font-weight: 500; font-size: 13px; }
.rm-grid-form label > input, .rm-grid-form label > select, .rm-grid-form label > textarea { grid-column: 1 / -1; }
.rm-grid-form label > .rm-optional { justify-self: start; }
.rm-grid-form input:not([type=checkbox]):not([type=color]), .rm-grid-form select, .rm-grid-form textarea { min-height: 40px; padding: 0 10px; border: 1px solid #c4c7cc; border-radius: 10px; background: #fff; width: 100%; font-weight: 400; font-size: 14px; }
.rm-grid-form select[multiple] { height: 72px; }
.rm-grid-form input[type=color] { width: 56px; height: 40px; padding: 2px; border: 1px solid #c4c7cc; border-radius: 10px; background: #fff; }
.rm-span2, .rm-grid-actions { grid-column: 1 / -1; }
.rm-grid-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rm-label { display: inline-block; background: #eef1f8; color: #1f2a44; border-radius: 999px; padding: 2px 10px; margin: 2px 0; font-size: 12px; white-space: nowrap; }
.rm-tag { display: inline-flex; align-items: center; gap: 4px; background: #eef1f8; border-radius: 999px; padding: 2px 4px 2px 10px; margin: 2px 0; font-size: 12px; }
.rm-x { border: 0; background: none; cursor: pointer; width: 24px; height: 24px; border-radius: 50%; color: var(--dim); font-size: 16px; line-height: 1; }
.rm-x:hover { background: #dfe4ef; color: var(--text); }
.rm-brand-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rm-brand-logo { width: 64px; height: 64px; border-radius: 14px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; font-size: 11px; color: var(--dim); }
.rm-key { font-size: 13px; padding: 6px 8px; word-break: break-all; }
.rm-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rm-head-row h1 { margin: 4px 0; }
.rm-table-click tbody tr { cursor: pointer; }
.rm-table-click tbody tr:hover { background: var(--hover); }
.rm-blank { text-align: center; padding: 40px 16px; border: 1px dashed var(--line); border-radius: 14px; color: var(--dim); }
.rm-blank h2 { color: var(--text); font-size: 18px; margin: 0 0 6px; }
.c-draft { background: #e8eaed; color: #3c4043; }
.c-sending { background: #e8f0fe; color: var(--ee-blue-2); }
.c-waiting_limit { background: #fef7e0; color: var(--warn); }
.c-sent { background: #e6f4ea; color: var(--ok); }
.c-cancelled { background: #fce8e6; color: var(--bad); }
.rm-design-frame { width: 100%; min-height: 200px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: block; }
.rm-wide { max-width: 1400px; }
.rm-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.rm-editor #d-live { min-height: 480px; height: 480px; }
.rm-code-area { font: 13px/1.5 ui-monospace, Consolas, monospace !important; padding: 10px !important; min-height: 480px !important; resize: vertical; white-space: pre; }
.rm-label { display: block; font-weight: 500; font-size: 13px; margin-bottom: 6px; }
.rm-warn ul { margin: 6px 0 0; padding-left: 18px; }

/* onboarding: steps, plans, DNS */
.rm-onboard { border-color: #c9d2e8; background: linear-gradient(180deg, #f7f9fe 0, #fff 120px); }
.rm-steps { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; }
.rm-steps li { display: flex; gap: 12px; align-items: flex-start; }
.rm-steps li > div { display: grid; gap: 2px; min-width: 0; }
.rm-step-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c4c7cc; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; margin-top: 1px; }
.rm-steps li.done .rm-step-dot { background: var(--ok); border-color: var(--ok); }
.rm-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 8px 0; }
.rm-plan { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.rm-plan.on { border-color: var(--ee-blue); box-shadow: 0 0 0 1px var(--ee-blue); }
.rm-plan h3 { margin: 0; font-size: 15px; }
.rm-plan p { margin: 0; }
.rm-plan .rm-btn { margin-top: auto; }
.rm-plan-price { font-size: 24px; font-weight: 700; }
.rm-plan-price span { font-size: 13px; font-weight: 400; color: var(--dim); }
.rm-dns { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--bg); }
.rm-dns-val { word-break: break-all; }
.rm-dns p { margin: 0 0 8px; }
.rm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rm-dns .rm-table { min-width: 560px; }
.rm-table .rm-dns-group th { padding-top: 14px; color: var(--text, #202124); font-weight: 600; border-bottom: 1px solid var(--line); }
.rm-dns-name { white-space: nowrap; }
.rm-cf { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.rm-cf summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.rm-cf-steps { margin: 8px 0; padding-left: 20px; }
.rm-cf-steps li { margin: 4px 0; }
.rm-cf-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: #c2570c; color: #fff; font-weight: 600; text-decoration: none; margin: 4px 0 8px; }
.rm-cf-btn:hover { background: #a64a0a; }
.rm-cf-btn[aria-disabled="true"] { background: #80868b; cursor: not-allowed; }
.rm-cf-btn:focus-visible { outline: 2px solid #1f1f1f; outline-offset: 2px; }
.rm-cf details { margin-top: 8px; }
.rm-cf-res { margin: 10px 0 0; padding-left: 18px; font-size: 13px; }
@media (max-width: 640px) {
  .rm-dns .rm-table { min-width: 0; }
  .rm-dns thead { display: none; }
  .rm-dns tbody tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .rm-dns tbody td { display: block; border: 0; padding: 3px 0; }
  .rm-dns tbody td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--dim); }
  .rm-dns .rm-dns-what { font-weight: 600; }
  .rm-dns .rm-dns-group th { display: block; padding: 14px 0 2px; }
}
#l-venture { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fff; }

/* small laptops and tablets in landscape: narrower rail, same layout */
@media (max-width: 1100px) and (min-width: 861px) {
  .rm-side { width: 216px; }
  .rm-brand { min-width: 150px; }
  .rm-who { width: 150px; }
}

/* phones and portrait tablets: drawer navigation, one column */
@media (max-width: 860px) {
  .rm-app { height: 100vh; height: 100dvh; }
  .rm-top { height: 60px; gap: 6px; padding: 0 8px; padding-top: env(safe-area-inset-top); box-sizing: content-box; }
  .rm-menu, .rm-icon { width: 44px; height: 44px; }
  .rm-brand { min-width: 0; }
  .rm-brand span { display: none; }
  .rm-search { height: 44px; padding: 0 14px; min-width: 0; }
  .rm-avatar#rm-account { width: 44px; height: 44px; border: 3px solid var(--bg); background-clip: padding-box; }
  .rm-pop { position: fixed; top: calc(64px + env(safe-area-inset-top)); left: 8px; right: 8px; width: auto; max-height: calc(100dvh - 80px); overflow-y: auto; }
  .rm-scrim { display: block; position: fixed; inset: 0; background: rgba(32, 33, 36, .4); z-index: 49; }
  .rm-scrim[hidden] { display: none; }
  .rm-side { position: fixed; top: 0; bottom: 0; left: calc(-1 * min(300px, 86vw) - 16px); width: min(300px, 86vw); background: var(--bg); z-index: 50; transition: left .2s ease; box-shadow: 4px 0 16px rgba(0, 0, 0, .14); padding: calc(12px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom)) 0; }
  .side-open .rm-side { left: 0; }
  .rm-side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 16px 16px 20px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 16px; }
  .rm-folders a { height: 44px; }
  .rm-quota { padding-bottom: 8px; }
  .rm-main { margin: 0; border-radius: 0; }
  /* the sidebar's Compose stays an ordinary button inside the drawer; the floating one is .rm-fab */
  .rm-fab { display: inline-flex; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; transform: translateZ(0); }
  body:not(.view-list) .rm-fab, body.composing .rm-fab, body.side-open .rm-fab, .rm-unpaid .rm-fab { display: none; }
  .view-list .rm-list { padding-bottom: 96px; }
  .view-list .rm-toast { bottom: calc(92px + env(safe-area-inset-bottom)); }

  /* list */
  .rm-listbar { padding: 4px 8px; gap: 4px; min-height: 52px; }
  .rm-list-title { margin: 0 4px; }
  .rm-chk, .rm-star { width: 44px; height: 44px; }
  .rm-chk input { width: 18px; height: 18px; }
  .rm-row { display: grid; grid-template-columns: 44px 44px minmax(0, 1fr) auto; align-items: center; height: auto; min-height: 64px; padding: 4px 12px 8px 0; gap: 0 4px; }
  .rm-row .rm-chk { grid-row: 1 / span 2; }
  .rm-row .rm-star { grid-row: 1 / span 2; }
  .rm-who { grid-column: 3; grid-row: 1; width: auto; padding-left: 0; font-size: 15px; }
  .rm-when { grid-column: 4; grid-row: 1; width: auto; margin-left: 8px; }
  .rm-subj { grid-column: 3 / -1; grid-row: 2; padding-left: 0; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
  .rm-row .rm-badge { grid-column: 3 / -1; grid-row: 3; justify-self: start; margin: 4px 0 0; }
  .rm-act { width: 44px; min-height: 44px; height: 44px; padding: 0; border-radius: 50%; border-color: transparent; background: transparent; }
  .rm-act span { display: none; }
  .rm-act svg { width: 20px; height: 20px; }
  .rm-bulk { gap: 2px; flex-wrap: nowrap; }
  .rm-pager { gap: 0; }
  .rm-listbar.selecting .rm-list-title, .rm-listbar.selecting .rm-pager { display: none; }

  /* reading */
  .rm-readbar { padding: 4px 8px; gap: 2px; flex-wrap: nowrap; }
  .rm-read-subj { font-size: 20px; margin: 14px 16px 6px; overflow-wrap: anywhere; }
  .rm-imgnote { margin: 0 16px 8px; }
  .rm-thread { padding: 0 16px; }
  .rm-msg header { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; }
  .rm-msg header time { grid-column: 2; }
  .rm-delivery, .rm-atts { margin-left: 0; width: 100%; }
  .rm-frame { margin: 10px -10px 0; width: calc(100% + 20px); }
  .rm-msg header > div .dim { font-size: 13px; }
  .rm-atts a { max-width: 100%; min-height: 44px; }
  .rm-replybar { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
  .rm-replybar .rm-btn { flex: 1 1 0; min-height: 44px; }

  /* composer: a full screen on a phone */
  .rm-composer { right: 0; left: 0; top: 0; bottom: 0; width: auto; max-width: none; height: auto; border-radius: 0; }
  .rm-composer > header { border-radius: 0; height: 56px; padding-top: env(safe-area-inset-top); box-sizing: content-box; }
  .rm-composer > header .rm-icon { width: 44px; height: 44px; }
  #c-min { display: none; }
  .c-row { min-height: 48px; }
  .c-row input, .c-row select, #c-body { font-size: 16px; }
  #c-ccb { min-height: 44px; padding: 0 4px; }
  #c-form footer { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  #c-send { min-height: 44px; padding: 0 24px; }
  .rm-icon-btn { width: 44px; min-height: 44px; }

  /* organization and platform pages */
  .rm-admin { padding: 16px 16px 40px; }
  .rm-card { padding: 16px; }
  .rm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rm-table { display: block; overflow-x: auto; }
  .rm-inline > input:not([type=checkbox]), .rm-inline > select { flex: 1 1 100%; min-height: 44px; font-size: 16px; }
  .rm-inline.sm input { flex: 0 0 90px; }
  .rm-inline .rm-btn { min-height: 44px; }
  .rm-acts select, .rm-table select { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .rm-side { transition: none; } .rm-refresh.spin svg, .rm-ptr.spin svg { animation: none; } }
@media (max-width: 860px) {
  .rm-grid-form, .rm-editor { grid-template-columns: minmax(0, 1fr); }
  .rm-grid-form input:not([type=checkbox]):not([type=color]), .rm-grid-form select, .rm-grid-form textarea { min-height: 44px; font-size: 16px; }
  .rm-editor #d-live, .rm-code-area { min-height: 320px !important; height: 320px; }
  .rm-box { min-height: 44px; }
  .rm-auth-card { padding: 24px 20px; }
  .rm-box-chip { max-width: 160px; }
  .rm-table-click td:first-child { min-width: 150px; }
  .rm-table-click td:first-child .dim { overflow-wrap: anywhere; }
}
.rm-sso-list { display: grid; gap: 10px; }

/* Terms and Privacy */
.rm-legal { max-width: 720px; margin: 0 auto; padding: 32px 20px 56px; line-height: 1.6; font-size: 16px; color: var(--text); }
.rm-legal-brand a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); text-decoration: none; }
.rm-legal h1 { font-size: 30px; line-height: 1.2; margin: 18px 0 4px; }
.rm-legal-meta { color: var(--dim); margin: 0 0 24px; }
.rm-legal h2 { font-size: 19px; margin: 30px 0 8px; }
.rm-legal ul { padding-left: 22px; }
.rm-legal li { margin: 6px 0; }
.rm-legal a { color: #24408e; }
.rm-legal-foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
@media (max-width: 640px) { .rm-legal { padding: 22px 16px 44px; font-size: 15px; } .rm-legal h1 { font-size: 25px; } }
/* before the first payment: no compose button, no folders; the setup step to do now stands out */
.rm-unpaid #rm-compose { display: none; }
.rm-steps li.next b { color: var(--ee-blue); }
.rm-steps li.next .rm-btn { margin-top: 8px; justify-self: start; }
/* reading a message the spam guard (or Brevo) put in Spam */
.rm-spamnote { margin: 0 24px 12px; padding: 10px 14px; border-radius: 10px; background: #fff4e5; color: #5f3b00; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 860px) { .rm-spamnote { margin: 0 12px 12px; } }
/* All inboxes across organizations: which organization an inbox or message is in */
.rm-box-org { display: block; font-size: 11px; color: var(--dim); line-height: 1.2; }
/* which inbox a message came to, in All inboxes; the dot is its business's colour from the sidebar */
.rm-org-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 120px; margin-right: 6px; padding: 0 7px; border-radius: 999px; background: var(--hover); color: var(--text); font-size: 11px; font-weight: 500; vertical-align: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-org-chip .rm-org-dot { width: 6px; height: 6px; }
/* composer: address suggestions under To, Cc, Bcc */
.c-row { position: relative; }
.rm-suggest { position: absolute; top: 100%; left: 56px; right: 8px; z-index: 60; margin: 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .16); max-height: 260px; overflow-y: auto; }
.rm-suggest li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; padding: 8px 12px; cursor: pointer; }
.rm-suggest li span { color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-suggest li small { grid-column: 1 / -1; color: var(--dim); font-size: 11px; }
.rm-suggest li.on, .rm-suggest li:hover { background: var(--hover); }
@media (max-width: 860px) { .rm-suggest { left: 8px; } .rm-suggest li { min-height: 44px; } }
/* the inbox that gets its domain's catch-all, in the account menu */
.rm-badge-catch { background: #e6f4ea; color: #137333; font-size: 11px; margin-left: 6px; vertical-align: 1px; }
/* employee view: a strip at the top and the bottom while an administrator works Mail as someone */
.rm-viewas { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding: 8px 14px; background: #fff4e5; color: #5f3b00; border-bottom: 1px solid #f3d19e; font-size: 13px; text-align: center; }
.rm-viewas:last-child { border-bottom: 0; border-top: 1px solid #f3d19e; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.rm-viewas .rm-btn { background: #fff; }
.rm-viewing .rm-fab { bottom: calc(72px + env(safe-area-inset-bottom)); }
/* read receipts on mail sent to people on this platform */
.rm-badge.rm-read { background: #e6f4ea; color: #137333; }
.rm-badge.rm-unread { background: #f1f3f4; color: #5f6368; }
.rm-receipts { margin: 4px 0 8px 52px; font-size: 13px; line-height: 1.9; }
@media (max-width: 860px) { .rm-receipts { margin-left: 0; } }

/* ------------------------------------------------------------------ phones: admin and settings pages
   Tables become one card per row (each value with its column's label, the first value leading), and buttons keep
   their size: rows of buttons wrap, buttons on a line of their own fill it, every target is at least 44px tall. */
@media (max-width: 860px) {
  .rm-admin h1 { font-size: 22px; overflow-wrap: anywhere; }
  .rm-admin .rm-table-wrap { overflow: visible; }
  .rm-admin .rm-table, .rm-dns .rm-table { display: block; min-width: 0 !important; overflow: visible; margin: 8px 0; }
  .rm-admin .rm-table thead { display: none; }
  .rm-admin .rm-table tbody { display: grid; gap: 10px; }
  .rm-admin .rm-table tr { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .rm-admin .rm-table td { display: grid; grid-template-columns: minmax(92px, 34%) minmax(0, 1fr); gap: 2px 10px; align-items: start; padding: 0; border: 0; font-size: 14px; overflow-wrap: anywhere; }
  .rm-admin .rm-table td::before { content: attr(data-label); color: var(--dim); font-size: 12px; line-height: 1.6; }
  /* everything in a labelled cell stays beside its label, however many lines it has */
  .rm-admin .rm-table td[data-label]:not([data-label=""])::before { grid-column: 1; grid-row: 1 / span 6; }
  .rm-admin .rm-table td[data-label]:not([data-label=""]) > * { grid-column: 2; }
  .rm-admin .rm-table td[data-label=""], .rm-admin .rm-table td:not([data-label]) { grid-template-columns: minmax(0, 1fr); }
  .rm-admin .rm-table td[data-label=""]::before, .rm-admin .rm-table td:not([data-label])::before { display: none; }
  .rm-admin .rm-table td:first-child { font-size: 15px; }
  .rm-admin .rm-table td[colspan] { display: block; }
  .rm-admin .rm-table .rm-dns-group { border: 0; padding: 6px 2px 0; background: none; }
  .rm-admin .rm-table .rm-dns-group th { display: block; padding: 0; border: 0; text-align: left; }
  .rm-dns-name { white-space: normal; }
  .rm-acts { white-space: normal; display: flex !important; flex-wrap: wrap; gap: 8px; }
  .rm-acts > * { margin: 0; }
  .rm-admin .rm-table select, .rm-acts select { width: 100%; max-width: none; min-height: 44px; font-size: 16px; }
  .rm-admin .rm-table .rm-btn { min-height: 44px; }
  .rm-admin .rm-table td > .rm-btn, .rm-acts .rm-btn { flex: 1 1 auto; }

  /* buttons and forms */
  .rm-admin .rm-btn, .rm-admin .rm-linkbtn { min-height: 44px; }
  .rm-inline .rm-btn, .rm-head-row .rm-btn, .rm-cf .rm-btn, .rm-plan .rm-btn { flex: 0 0 auto; white-space: nowrap; }
  .rm-inline > .rm-btn { flex: 1 1 auto; }
  .rm-inline > span { flex: 1 1 100%; }
  .rm-head-row { align-items: stretch; }
  .rm-head-row > form, .rm-head-row > select, .rm-head-row > .rm-btn { width: 100%; }
  .rm-head-row > form.rm-inline { margin: 0; }
  .rm-check { min-height: 44px; align-items: center; }
  .rm-check input { width: 20px; height: 20px; flex: none; }
  .rm-brand-row { align-items: flex-start; }
  .rm-brand-row > form { flex: 1 1 100%; }

  /* setup, plans, Cloudflare, safety */
  .rm-plans { grid-template-columns: minmax(0, 1fr); }
  .rm-plan .rm-btn { width: 100%; min-height: 48px; }
  .rm-steps li .rm-btn { width: 100%; min-height: 44px; }
  .rm-cf .rm-btn, .rm-cf-btn { width: 100%; min-height: 48px; justify-content: center; }
  .rm-cf-res { padding-left: 0; list-style: none; }
  .rm-cf-res li { margin: 6px 0; }
  .rm-cf-away { display: grid; gap: 8px; padding: 10px; border-radius: 10px; background: var(--bg); }
  .rm-sess .rm-inline { width: 100%; margin: 0; }
  .rm-sess .rm-inline .rm-btn { flex: 1 1 0; }
  .rm-stats b { font-size: 20px; }
  .rm-viewas .rm-btn { min-height: 40px; }
  .rm-receipts { line-height: 2.1; }
}
/* plan limit reached */
.rm-stats .rm-full b { color: #b45309; }
.rm-form .ee-legal-line { display: block; font-weight: 400; line-height: 1.45; }
.rm-form .ee-legal-line input[type=checkbox] { width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -4px; }
.ee-legal-note, .ee-legal-login { color: var(--dim); font-size: 13px; margin: 14px 0 0; text-align: center; }

/* signatures: composer picker and Account > Signatures */
#c-form footer .c-sig { max-width: 170px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: transparent; color: inherit; font: inherit; font-size: 13px; }
.rm-sig-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.rm-sig-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.rm-sig-list li > span { flex: none; display: flex; gap: 6px; }
.rm-sig-pre { margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 13px; color: var(--dim, inherit); }
.rm-sig-form { display: grid; gap: 10px; margin: 16px 0; max-width: 560px; }
.rm-sig-form label { display: grid; gap: 4px; }
.rm-sig-form input, .rm-sig-form textarea { width: 100%; box-sizing: border-box; font: inherit; }
@media (max-width: 560px) { .rm-sig-list li { flex-direction: column; } .rm-sig-list li > span .rm-btn { min-height: 44px; flex: 1 1 0; } #c-form footer .c-sig { max-width: 120px; } }

/* Hallmark · pre-emit critique: P4 H5 E4 S4 R5 V4 · header venture picker and a calmer sidebar (Nov 14, 2026)
 * The header says which venture's mail you are reading; the sidebar is mail first (Compose, folders, that venture's
 * inboxes) with business tools folded under "Manage". The account menu only says who you are and how to leave. */
.rm-brand { min-width: 0; }
.rm-venture-wrap { position: relative; flex: none; }
.rm-venture { display: inline-flex; align-items: center; gap: 10px; max-width: 260px; min-height: 44px; padding: 0 12px 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.rm-venture:hover { background: var(--hover); }
.rm-venture[aria-expanded="true"] { background: var(--sel); border-color: var(--sel); }
.rm-venture:focus-visible { outline: 2px solid var(--ee-blue); outline-offset: 2px; }
.rm-venture-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-venture svg, .rm-manage summary svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--dim); }
.rm-venture .rm-org-logo { width: 28px; height: 28px; }
.rm-org-letter { display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: var(--ee-blue-2); background: #e8eefc; }
.rm-org-all { background: conic-gradient(var(--org-0) 0 25%, var(--org-1) 0 50%, var(--org-2) 0 75%, var(--org-3) 0); border-radius: 50%; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px var(--line); }
.rm-venture-pop { left: 0; right: auto; top: 52px; width: 320px; max-height: min(70vh, 560px); overflow-y: auto; padding: 8px 8px 10px; }
.rm-venture-find { position: sticky; top: -8px; margin: -8px -8px 6px; padding: 10px; background: var(--panel); border-bottom: 1px solid var(--line); z-index: 1; }
.rm-venture-find input { width: 100%; box-sizing: border-box; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.rm-venture-list { gap: 2px; }
.rm-venture-list .rm-pop-pick { margin: 0; min-height: 44px; padding: 6px 10px; flex-wrap: nowrap; }
.rm-venture-list .rm-pop-pick > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-venture-list .rm-pop-pick.on { background: var(--sel-box); }
.rm-venture-list .rm-pop-pick:focus-visible { outline: 2px solid var(--ee-blue); outline-offset: -2px; }
.rm-venture-h { padding: 12px 10px 4px; font-size: 12px; font-weight: 600; color: var(--dim); }
.rm-venture-list .rm-count, .rm-venture .rm-count { min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--ee-blue); color: #fff; font-size: 12px; text-align: center; }

/* sidebar: one hairline between mail and tools, tools folded */
.rm-admin-links { margin-top: 8px; padding-top: 8px; }
.rm-manage summary { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 22px; border-radius: 0 999px 999px 0; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; color: var(--dim); }
.rm-manage summary::-webkit-details-marker { display: none; }
.rm-manage summary span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-manage summary:hover { background: var(--hover); color: var(--text); }
.rm-manage[open] summary svg { transform: rotate(180deg); }
.rm-manage ul { list-style: none; margin: 0; padding: 0; }
.rm-boxes-none { padding: 6px 16px 8px 22px; font-size: 13px; color: var(--dim); line-height: 1.45; }
.rm-quota-more summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.rm-quota-more .rm-quota-bar { margin-top: 8px; }

/* small laptops, landscape tablets */
@media (max-width: 1100px) and (min-width: 861px) {
  .rm-venture { max-width: 200px; }
}
/* phones and portrait tablets: the picker keeps its mark and a short name; its menu opens as a full-width sheet */
@media (max-width: 860px) {
  .rm-venture { max-width: 180px; padding: 0 10px 0 6px; gap: 8px; }
  .rm-venture-pop { top: calc(64px + env(safe-area-inset-top)); left: 8px; right: 8px; width: auto; max-height: calc(100dvh - 80px); }
  .rm-venture-find input { min-height: 44px; font-size: 16px; }
  .rm-manage summary { min-height: 44px; }
}
@media (max-width: 600px) {
  .rm-venture { max-width: none; padding: 0; width: 44px; justify-content: center; border-color: transparent; }
  .rm-venture .rm-venture-name, .rm-venture > svg { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rm-manage summary svg { transition: none; } }
/* menus sit above the floating Compose button (45) and the drawer scrim (49) */
.rm-venture-pop, #rm-account-pop { z-index: 60; }
@media (max-width: 860px) { .rm-compose-btn { min-height: 48px; } .rm-quota-more summary { min-height: 44px; } }
.rm-atts .rm-att-blocked { display: inline-flex; align-items: center; gap: 8px; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; color: var(--text); max-width: 280px; min-height: 44px; cursor: not-allowed; }
.rm-atts .rm-att-blocked .dim { white-space: normal; }
.rm-atts .rm-att { display: inline-flex; align-items: stretch; gap: 4px; max-width: 100%; }
.rm-atts .rm-att-dl { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); padding: 0; }
.rm-atts .rm-att-dl:hover, .rm-atts .rm-att-dl:focus-visible { background: var(--hover); }
.rm-att-preview { margin: 12px 0 0 52px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.rm-att-preview iframe { display: block; width: 100%; height: 70vh; min-height: 420px; max-height: 900px; border: 0; background: #f6f7f9; }
.rm-att-preview figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; border-top: 1px solid var(--line); }
.rm-att-preview figcaption > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 160px; }
.rm-att-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-att-actions .rm-btn { min-height: 44px; }
@media (max-width: 760px) { .rm-att-preview { margin-left: 0; } .rm-att-preview iframe { height: 60vh; min-height: 320px; } .rm-att-actions { width: 100%; } .rm-att-actions .rm-btn { flex: 1 1 0; } }
