/* The composition and inbox use the same type tiles as the profile and bell. */
.em-center,.em-dialog:not(.em-notifications){font:400 15px/1.45 Barlow,Arial,sans-serif;color:var(--em-ink)}
.em-center *,.em-dialog *{box-sizing:border-box}
.em-center [hidden],.em-dialog [hidden]{display:none!important}
.em-center h2,.em-center h3,.em-dialog h2{color:var(--em-ink);font-family:Barlow,Arial,sans-serif;letter-spacing:-.025em;line-height:1.12;margin:0}
.em-center h2,.em-dialog h2{font-size:clamp(24px,3vw,32px);font-weight:650}
.em-center h3{font-size:20px;font-weight:650}
.em-center{margin:0 0 35px;min-width:0}
.em-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 24px;border-radius:23px;border:1px solid var(--em-line);background:color-mix(in srgb,var(--em-purple) 5%,var(--em-surface));margin-bottom:22px}
.em-intro-copy{display:flex;align-items:flex-start;gap:15px;min-width:0}
.em-kicker{font-size:11px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;color:var(--em-muted);margin:0 0 5px}
.em-intro-copy>div>p:last-child{margin:6px 0 0;color:var(--em-muted)}
.em-hero-icon{width:52px;height:52px;border-radius:17px}.em-hero-icon svg{width:26px;height:26px}
.em-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:13px;border:1px solid var(--em-line);background:var(--em-surface);color:var(--em-ink);font:650 14px/1.2 Barlow,Arial,sans-serif;cursor:pointer;text-decoration:none;white-space:nowrap}
.em-button svg,.em-private svg,.em-link svg,.em-list-head>span svg,.em-success svg{width:18px;height:18px;flex:none}
.em-button:hover{border-color:var(--em-accent)}.em-button:disabled{opacity:.45;cursor:default}
.em-primary{background:#c92043;border-color:#c92043;color:white}.em-primary:not(:disabled):hover{background:#ae1737;border-color:#ae1737}
.em-quiet{border-color:transparent;background:transparent;padding-inline:6px}
.em-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.em-filters{display:flex;gap:3px;padding:3px;border:1px solid var(--em-line);border-radius:11px;background:var(--em-input)}
.em-filters button{min-height:35px;padding:6px 10px;display:flex;align-items:center;gap:6px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--em-muted);font:600 13px/1.25 Barlow,Arial,sans-serif;cursor:pointer}
.em-filters button[aria-pressed=true]{background:var(--em-surface);border-color:var(--em-line);color:var(--em-ink)}
.em-filters .em-count{min-width:17px;min-height:17px}
.em-list{display:grid;gap:9px;margin:0 0 14px}
.em-row,.em-choice,.em-recipient{width:100%;min-width:0;display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--em-line);border-radius:15px;background:var(--em-surface);color:var(--em-ink);font:inherit;text-align:left;cursor:pointer}
.em-row.em-new{border-color:color-mix(in srgb,var(--em-tone) 32%,var(--em-line));background:color-mix(in srgb,var(--em-tone) 7%,var(--em-surface))}
.em-row:hover,.em-choice:hover,.em-recipient:hover{border-color:var(--em-tone,var(--em-accent))}
.em-row-copy{min-width:0;flex:1;display:grid;gap:3px}
.em-row-title,.em-row-copy strong{font-size:16px;font-weight:650;overflow-wrap:anywhere}
.em-row-copy small,.em-preview,.em-row-tail{color:var(--em-muted);font-size:13px;line-height:1.25}
.em-preview{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.em-row-tail{display:flex;align-items:center;gap:9px;flex:none}
.em-row-tail svg{width:16px;height:16px;color:var(--em-tone,var(--em-muted))}
.em-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--em-tone,var(--em-accent));flex:none}
.em-empty,.em-loading{display:flex;align-items:center;gap:10px;margin:0;padding:20px;border:1px dashed var(--em-line);border-radius:15px;color:var(--em-muted);background:var(--em-surface)}
.em-empty svg{width:24px;height:24px;flex:none;color:var(--em-purple)}
.em-success,.em-private{display:flex;gap:9px;align-items:flex-start;border-radius:12px;padding:10px 13px}
.em-success{color:var(--em-green);background:color-mix(in srgb,var(--em-green) 10%,var(--em-surface))}
.em-private{font-size:13px;color:var(--em-muted);background:var(--em-input);margin:12px 0 0}
.em-error{color:var(--em-accent);font-weight:650;margin:12px 0 0}
.em-thread{min-width:0}
.em-message{padding:17px;border:1px solid color-mix(in srgb,var(--em-tone) 28%,var(--em-line));border-radius:17px;background:color-mix(in srgb,var(--em-tone) 6%,var(--em-surface));margin:8px 0 16px}
.em-message-top{display:flex;align-items:flex-start;gap:12px}
.em-message-top h2{font-size:24px;overflow-wrap:anywhere}
.em-message-top .em-kicker{color:var(--em-tone)}
.em-message-top small,.em-conversation-note{color:var(--em-muted);font-size:13px}
.em-message-text,.em-reply p{white-space:pre-wrap;overflow-wrap:anywhere;margin:13px 0}
.em-link{display:inline-flex;align-items:center;gap:7px;color:var(--em-tone);font-size:14px;font-weight:650;text-decoration:underline;text-underline-offset:3px;min-height:32px}
.em-conversation{border:1px solid var(--em-line);border-radius:17px;padding:16px;background:var(--em-surface)}
.em-conversation-note{margin:-4px 0 12px}
.em-replies{list-style:none;margin:0 0 15px;padding:0;display:grid;gap:8px;max-height:50dvh;overflow:auto}
.em-replies:empty{display:none}
.em-reply{justify-self:start;max-width:min(90%,580px);border-radius:14px 14px 14px 4px;background:var(--em-input);padding:9px 13px}
.em-reply.em-mine{justify-self:end;border-radius:14px 14px 4px 14px;background:color-mix(in srgb,var(--em-purple) 11%,var(--em-surface))}
.em-reply small{color:var(--em-muted);font-size:12px}.em-reply p{margin:3px 0 0}
.em-reply-form label,.em-compose-fields>label,.em-label-row label,.em-recipient-picker>label{font-weight:650}
.em-reply-form .em-primary{display:flex;width:max-content;margin:10px 0 0 auto}
.em-center textarea,.em-dialog input:not([type=checkbox]),.em-dialog textarea{font:400 16px/1.4 Barlow,Arial,sans-serif;width:100%;min-width:0;max-width:none;border-radius:11px;border:1px solid var(--em-line);padding:10px 12px;background:var(--em-input);color:var(--em-ink);margin:4px 0 0}
.em-dialog textarea,.em-center textarea{resize:vertical;min-height:75px}
.em-center button:focus-visible,.em-dialog button:focus-visible,.em-center a:focus-visible,.em-center textarea:focus-visible,.em-dialog :is(input,textarea):focus-visible{outline:2px solid var(--em-accent);outline-offset:2px}
.em-dialog:not(.em-notifications){width:min(610px,calc(100% - 28px));max-height:calc(100dvh - 34px);padding:0;border:1px solid var(--em-line);border-radius:24px;background:var(--em-surface);box-shadow:0 24px 80px #0005;overflow:hidden}
.em-dialog::backdrop{background:#14141b80;backdrop-filter:blur(3px)}
.em-compose{display:flex;flex-direction:column;max-height:inherit;min-width:0}
.em-compose .em-dialog-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:20px 22px 13px}
.em-steps{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:0;padding:0 22px 13px;border-bottom:1px solid var(--em-line)}
.em-steps li{display:flex;align-items:center;gap:6px;color:var(--em-muted);font-size:12px;font-weight:650}
.em-steps li>span{width:22px;height:22px;border:1px solid var(--em-line);border-radius:50%;display:grid;place-items:center;flex:none;color:inherit;font-size:11px}
.em-steps li svg{width:13px;height:13px}.em-steps li[aria-current]{color:var(--em-accent)}.em-steps li[aria-current]>span{color:#fff;background:#c92043;border-color:#c92043}.em-steps li[data-complete=true]{color:var(--em-green)}
.em-compose-body{padding:15px 22px;overflow:auto;overscroll-behavior:contain}
.em-step-intro{margin:0 0 13px;color:var(--em-muted)}
.em-choices,.em-people{display:grid;gap:8px}.em-people{max-height:210px;overflow:auto;margin-top:8px}
.em-choice,.em-recipient{padding:9px 11px;gap:10px;background:var(--em-surface)}
.em-choice>span:nth-child(2),.em-recipient>span:nth-child(2),.em-inline-type>span:nth-child(2){display:grid;gap:2px;min-width:0;flex:1}
.em-choice strong,.em-recipient strong,.em-inline-type strong{font-weight:650;overflow-wrap:anywhere}
.em-choice small,.em-recipient small,.em-inline-type small,.em-compose-fields label small{color:var(--em-muted);font-size:13px}
.em-choice-mark{display:grid;place-items:center;width:22px;height:22px;border:1px solid var(--em-line);border-radius:50%;color:transparent;flex:none}
.em-choice-mark svg{width:13px;height:13px}
.em-choice[aria-pressed=true],.em-recipient[aria-pressed=true]{border-color:var(--em-accent);background:color-mix(in srgb,var(--em-accent) 6%,var(--em-surface))}
[aria-pressed=true]>.em-choice-mark{background:#c92043;border-color:#c92043;color:#fff}
.em-recipient-picker{margin-top:12px}.em-recipient .em-type-icon{width:35px;height:35px}.em-recipient .em-type-icon svg{width:18px;height:18px}
.em-compose-fields{display:grid;gap:5px}.em-compose-fields>label,.em-label-row{margin-top:7px}
.em-inline-type,.em-label-row,.em-include{display:flex;align-items:center;gap:9px}
.em-label-row{justify-content:space-between}
.em-text-button{padding:3px 0;border:0;background:transparent;color:var(--em-accent);font:650 13px/1.4 Barlow,Arial,sans-serif;text-decoration:underline;cursor:pointer}
.em-include input{width:16px;height:16px;margin:0;accent-color:#c92043}
.em-compose-fields .em-include{font-size:13px;color:var(--em-muted);padding:5px 0}
.em-dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 22px 17px;border-top:1px solid var(--em-line);background:var(--em-surface)}
.em-sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:680px){
  .em-intro{display:grid;padding:14px;gap:12px;border-radius:17px}
  .em-intro-copy{gap:10px}.em-hero-icon{width:40px;height:40px;border-radius:12px}.em-hero-icon svg{width:21px;height:21px}
  .em-intro>.em-primary{justify-self:stretch}.em-list-head h3{font-size:18px}
  .em-row{padding:9px;gap:8px}.em-row>.em-type-icon{width:36px;height:36px}.em-row>.em-type-icon svg{width:19px;height:19px}
  .em-row-tail{gap:6px}.em-row-tail time{display:none}.em-preview{max-width:100%}
  .em-dialog:not(.em-notifications){width:calc(100% - 16px);max-height:calc(100dvh - 20px);border-radius:20px}
  .em-compose .em-dialog-head{padding:16px 15px 11px}.em-steps{padding:0 15px 11px}.em-steps li{gap:4px;font-size:11px}.em-steps li>span{width:19px;height:19px}
  .em-compose-body{padding:12px 15px}.em-dialog-footer{padding:11px 15px max(12px,env(safe-area-inset-bottom))}
  .em-dialog-footer .em-primary{min-width:118px}.em-message{padding:13px}.em-message-top h2{font-size:21px}
}
@media(max-width:360px){.em-steps{gap:3px;padding-inline:10px}.em-steps li{font-size:10px}.em-steps li>span{width:17px;height:17px}}
