/* Webmail: só o que o painel (../admin/style.css) não tem. */

/* ---------- Entrada ---------- */
.login.gate { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(340px, 1fr) minmax(380px, 1.05fr); padding: 0; place-items: stretch; }
.gate-form { display: grid; place-items: center; padding: 48px 32px; background: var(--paper); }
.gate-card { width: min(400px, 100%); display: grid; gap: 16px; }
.gate-intro { display: grid; gap: 4px; }
.gate-intro h1 { font-size: 28px; letter-spacing: -.02em; }
.field > span.pass-wrap { font-size: inherit; font-weight: inherit; color: inherit; }
.pass-wrap { position: relative; display: block; }
.pass-wrap input { padding-right: 40px; }
.pass-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.gate-aside {
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: 64px 72px; color: var(--ink);
  background:
    radial-gradient(640px 360px at 85% 12%, var(--accent-soft), transparent 70%),
    linear-gradient(165deg, var(--sheet) 0%, var(--paper) 100%);
  border-left: 1px solid var(--rule);
}
.gate-aside h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.12; letter-spacing: -.03em; max-width: 14ch; margin: 0; }
.gate-aside h2.domain { max-width: 16ch; font-size: clamp(28px, 3.2vw, 40px); overflow-wrap: anywhere; }
.gate-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gate-points li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.gate-points .ico { color: var(--accent); margin-top: 2px; }
@media (max-width: 900px) {
  .login.gate { grid-template-columns: 1fr; }
  .gate-aside { display: none; }
  .gate-form { padding: 32px 20px; }
}
[v-cloak] { display: none; }
.grow { flex: 1; min-width: 0; }
.push { margin-left: auto; }

/* ---------- Menu lateral ---------- */
.compose-wrap { padding: 4px 12px 12px; }
.compose-wrap .btn { justify-content: center; }
.wm .rail-scroll { padding-top: 4px; }
.rail-item.faint { color: var(--ink-3); font-weight: 400; }
.rail-item.drop { outline: 1px dashed var(--rule-2); outline-offset: -2px; }
.rail-item.drop:hover { background: var(--accent-soft); outline-color: var(--accent); color: var(--accent); }
.rail-badge.plain { background: transparent; color: var(--ink-3); font-weight: 500; }
.rail-sep { height: 1px; background: var(--rule); margin: 8px 10px; }
.quota { padding: 6px 12px 10px; display: grid; gap: 6px; }
.quota-bar { height: 4px; border-radius: 99px; background: var(--rule); overflow: hidden; }
.quota-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.quota-bar i.hot { background: var(--warn); }

/* ---------- Lista ---------- */
.head-actions { display: flex; gap: 2px; align-items: center; }
.check { display: inline-grid; place-items: center; width: 22px; height: 22px; cursor: pointer; flex: none; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.bulk { display: flex; align-items: center; gap: 4px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--rule); background: var(--accent-soft); flex-wrap: wrap; min-height: 54px; }
.bulk { flex-wrap: nowrap; gap: 2px; }
.bulk .sel-n { font-size: 12.5px; font-weight: 700; min-width: 26px; height: 22px; padding: 0 7px; margin-right: 4px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.bulk .move { max-width: 104px; }
.bulk .move, .reader-actions .move { width: auto; height: 32px; padding: 0 8px; font-size: 13px; }
.search .btn.icon { margin-right: -6px; color: var(--ink-3); }
.search .btn.icon.on { color: var(--accent); background: var(--accent-soft); }
.more-filters.adv { padding: 12px; }
.more-filters .span2 { grid-column: 1 / -1; }
.more-filters .row-end { display: flex; justify-content: flex-end; gap: 8px; }
.filter-line { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip button, .chips-wrap .chip button { border: 0; background: transparent; color: inherit; padding: 0 0 0 4px; cursor: pointer; display: inline-grid; place-items: center; opacity: .7; }
.chip button:hover { opacity: 1; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { display: inline-flex; justify-content: center; align-items: center; gap: 4px; }

.wm-row { cursor: pointer; }
.wm-row.unread .row-top strong, .wm-row.unread .row-subject { font-weight: 600; color: var(--ink); }
.wm-row.unread { box-shadow: inset 3px 0 0 var(--accent); }
.wm-row.picked { background: var(--selected); }
.wm-row.cursor { outline: 2px solid var(--accent); outline-offset: -2px; }
.wm-row .row-subject { display: flex; align-items: center; gap: 4px; }
.wm-row .snippet { flex: 1; min-width: 0; color: var(--ink-3); }
.wm-row .row-meta { flex-wrap: nowrap; }
.wm-row .row-top strong { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.thread-n { font-size: 11px; font-weight: 600; color: var(--ink-3); background: var(--sheet-2); border: 1px solid var(--rule); border-radius: 99px; padding: 0 6px; line-height: 16px; }
.draft-tag { font-style: normal; color: var(--bad); font-weight: 600; }
.star.on { color: #e0a100; fill: #f5c33b; }
.star-btn { border: 0; background: transparent; padding: 2px; margin: -2px -2px -2px 0; color: var(--ink-3); cursor: pointer; opacity: 0; display: inline-grid; place-items: center; border-radius: 4px; }
.star-btn.on, .wm-row:hover .star-btn, .star-btn:focus-visible { opacity: 1; }
.star-btn:hover { color: #e0a100; }
.avatar.pickable { position: relative; cursor: pointer; }
.avatar.pickable .tick { display: none; }
.avatar.pickable:hover .ini, .wm-row.picked .avatar.pickable .ini { display: none; }
.avatar.pickable:hover .tick, .wm-row.picked .avatar.pickable .tick { display: block; }
.wm-row.picked .avatar.pickable { background: var(--accent) !important; color: var(--accent-ink) !important; }
.avatar.pickable:hover { box-shadow: 0 0 0 2px var(--accent); }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.app.compact .wm-row { padding: 7px 16px; gap: 10px; }
.app.compact .wm-row .avatar { width: 28px; height: 28px; font-size: 11px; }
.app.compact .wm-row .row-main { gap: 1px; }
.app.compact .wm-row .row-meta .snippet { display: none; }
.app.compact .wm-row .row-meta { position: absolute; right: 16px; bottom: 7px; }

/* ---------- Menus ---------- */
.ctx { position: fixed; z-index: 70; min-width: 232px; max-height: calc(100dvh - 16px); overflow: visible; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; display: grid; align-content: start; gap: 1px; }
.ctx > button, .ctx-sub > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); font: 400 13.5px/1.2 var(--sans); text-align: left; cursor: pointer; }
.ctx > button:hover, .ctx-sub > button:hover, .ctx-fly > button:hover { background: var(--sheet-2); }
.ctx > .danger { color: var(--bad); }
.ctx-sep { height: 1px; background: var(--rule); margin: 4px 6px; }
.ctx-sub { position: relative; }
.ctx-sub .push { margin-left: auto; color: var(--ink-3); }
.ctx-fly { position: absolute; left: calc(100% - 4px); top: -6px; min-width: 200px; max-height: 280px; overflow: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; display: grid; gap: 1px; }
.ctx.fly-left .ctx-fly { left: auto; right: calc(100% - 4px); }
.ctx-fly > button { display: flex; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); font: 400 13.5px/1.2 var(--sans); text-align: left; cursor: pointer; }
.ctx-empty { margin: 0; padding: 8px 10px; color: var(--ink-3); font-size: 13px; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 230px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; display: grid; gap: 1px; }
.menu.up { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; min-width: 280px; }
.menu > button, .menu > a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); font: 400 13.5px/1.2 var(--sans); text-align: left; cursor: pointer; text-decoration: none; }
.menu > button:hover, .menu > a:hover { background: var(--sheet-2); }
.menu > .danger { color: var(--bad); }
.menu-title { font-size: 12px; color: var(--ink-3); padding: 6px 10px 4px; margin: 0; }
.menu-custom { display: flex; gap: 6px; padding: 8px 6px 4px; border-top: 1px solid var(--rule); margin-top: 4px; }
.menu-custom input { flex: 1; min-width: 0; height: 32px; font-size: 13px; }

/* ---------- Escrever ---------- */
.composer { display: grid; gap: 0; padding: 24px 28px 32px; max-width: 900px; margin: 0 auto; width: 100%; position: relative; }
.composer h2 { font: 600 22px/1.2 var(--sans); margin: 0 0 10px; }
.save-state { margin-right: auto; margin-left: 4px; }
.cfield { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--rule); padding: 2px 0; }
.cfield > span, .rcpt-label { width: 64px; flex: none; font-size: 13px; color: var(--ink-3); }
.cfield input { border: 0; background: transparent; box-shadow: none !important; padding: 10px 0; }
.cfield select { flex: 1; min-width: 0; border: 0; background-color: transparent; box-shadow: none !important; padding: 10px 24px 10px 0; height: auto; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.cfield select:focus { outline: none; }
.rcpt { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; border-bottom: 1px solid var(--rule); padding: 6px 0; min-height: 44px; cursor: text; }
.rcpt:focus-within { border-bottom-color: var(--accent); }
.rcpt input { flex: 1 1 140px; min-width: 120px; border: 0; background: transparent; box-shadow: none !important; padding: 4px 0; }
.rcpt-label { margin-right: 6px; }
.rcpt-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 4px 3px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--ink); font-size: 13px; line-height: 1.2; }
.rcpt-chip.bad { background: var(--bad-soft); color: var(--bad); text-decoration: underline wavy; text-underline-offset: 3px; }
.rcpt-chip button { border: 0; background: transparent; color: inherit; padding: 2px; border-radius: 50%; cursor: pointer; display: inline-grid; place-items: center; opacity: .7; }
.rcpt-chip button:hover { opacity: 1; background: var(--sheet-2); }
.rcpt-menu { position: absolute; left: 64px; top: 100%; z-index: 30; margin: 4px 0 0; padding: 4px; list-style: none; min-width: 300px; max-width: calc(100% - 64px); background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); }
.rcpt-menu li { display: grid; grid-template-columns: 1fr auto; padding: 7px 10px; border-radius: var(--r-sm); cursor: pointer; gap: 0 8px; }
.rcpt-menu li strong { font-weight: 500; font-size: 13.5px; }
.rcpt-menu li small { grid-column: 1; color: var(--ink-3); font-size: 12px; }
.rcpt-menu li .ico { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.rcpt-menu li.on, .rcpt-menu li:hover { background: var(--accent-soft); }
.compose-opts { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 10px 0 2px; }
.opt { position: relative; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-3); cursor: pointer; padding: 3px 8px; border-radius: 99px; border: 1px solid transparent; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt:hover { color: var(--ink); }
.opt.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.opt:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }

.rte { margin-top: 12px; border: 1px solid var(--rule-2); border-radius: var(--r); background: var(--sheet); overflow: hidden; }
.rte:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rte-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px 6px; border-bottom: 1px solid var(--rule); background: var(--sheet-2); }
.rte-btn { border: 0; background: transparent; color: var(--ink-2); width: 30px; height: 28px; border-radius: 5px; display: grid; place-items: center; cursor: pointer; touch-action: manipulation; }
.rte-btn:hover { background: var(--sheet); color: var(--ink); box-shadow: 0 0 0 1px var(--rule); }
.rte-sep { width: 1px; background: var(--rule); margin: 4px 4px; }
.rte-body { min-height: 300px; max-height: 60vh; overflow: auto; padding: 14px 16px; font: 15px/1.6 var(--sans); color: var(--ink); outline: none; overflow-wrap: anywhere; }
.rte.compact .rte-body { min-height: 110px; }
.rte-body:empty::before { content: attr(data-placeholder); color: var(--ink-3); pointer-events: none; }
.rte-body blockquote { margin: 0 0 0 .8ex; border-left: 2px solid var(--rule-2); padding-left: 1ex; color: var(--ink-2); }
.rte-body a { color: var(--accent); }
.rte-body p { margin: 0 0 1em; }
.rte-body h1, .rte-body h2, .rte-body h3, .rte-body h4 { font: 600 16px/1.4 var(--sans); margin: 0 0 .5em; }
.rte-body ul, .rte-body ol { margin: 0 0 1em; padding-left: 1.6em; }
.rte-body .sig, .rte-body img { color: var(--ink-2); max-width: 100%; }
.composer .files { margin-top: 12px; }
.file.static { cursor: default; }
.composer-foot { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.from-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.split { position: relative; display: inline-flex; }
.split > .btn:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.split > .caret { border-radius: 0 var(--r-sm) var(--r-sm) 0; border-left: 1px solid var(--rule); padding: 0 9px; }
.attach { position: relative; overflow: hidden; cursor: pointer; }
.attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-hint { display: none; }
.composer.dropping .drop-hint { display: flex; position: absolute; inset: 8px; z-index: 5; border: 2px dashed var(--accent); border-radius: var(--r-lg); background: var(--accent-soft); align-items: center; justify-content: center; gap: 10px; color: var(--accent); font-weight: 600; pointer-events: none; }

/* ---------- Ler ---------- */
.reader-actions .short { display: none; }
.thread { margin: 20px auto -8px; width: calc(100% - 40px); max-width: 860px; display: grid; gap: 6px; }
.thread-older { margin: 8px auto 24px; }
.thread-title { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); margin: 0 0 2px 4px; }
.tcard { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.tcard-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 14px; border: 0; background: transparent; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.tcard-head:hover { background: var(--sheet-2); }
.tcard-head strong { font-weight: 500; font-size: 13.5px; flex: 0 1 auto; max-width: 40%; }
.tcard-head .snippet { flex: 1; min-width: 0; color: var(--ink-3); font-size: 13px; }
.tcard-body { padding: 0 14px 12px; display: grid; gap: 8px; }
.tcard-body p { margin: 0; }
.tcard-body iframe { width: 100%; height: 280px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: #fff; resize: vertical; }
.tcard-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.img-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-radius: var(--r); background: var(--sheet-2); border: 1px solid var(--rule); font-size: 13px; color: var(--ink-2); margin-bottom: -8px; }
.file.att { cursor: default; max-width: 340px; }
.file.att .grow { display: grid; }
.thumb { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; border: 1px solid var(--rule); padding: 0; background: var(--sheet-2); cursor: zoom-in; flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quick-reply { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--rule); padding-top: 18px; }

/* ---------- Retorno de entrega ---------- */
.dl-ok { color: var(--ok); display: inline-grid; place-items: center; }
.chip.dl { gap: 3px; font-size: 11px; height: 20px; padding: 0 7px; white-space: nowrap; flex: none; }
.dsn-card, .delivery, .invite-card { border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; background: var(--sheet-2); }
.delivery { padding: 8px 12px; gap: 4px; font-size: 13px; }
.dsn-card.bad, .delivery.bad, .invite-card.bad { border-color: var(--bad); background: var(--bad-soft); }
.dsn-card.warn, .delivery.warn, .invite-card.warn { border-color: var(--warn); background: var(--warn-soft); }
.delivery.ok, .invite-card.ok { background: var(--ok-soft); border-color: var(--ok); }
.invite-when { margin: 0; font-weight: 500; }
.warn-ink { color: var(--warn); }
.dsn-head { display: flex; gap: 10px; align-items: flex-start; }
.dsn-card.bad .dsn-head > .ico { color: var(--bad); } .dsn-card.warn .dsn-head > .ico { color: var(--warn); }
.dsn-head p, .dsn-rcpt p { margin: 0; }
.dsn-rcpt { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--rule); }
.dsn-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.diag { display: block; font: 12px/1.5 var(--mono); padding: 8px 10px; border-radius: var(--r-sm); background: var(--sheet); border: 1px solid var(--rule); white-space: pre-wrap; word-break: break-word; color: var(--ink-2); }
.delivery-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.delivery.ok .delivery-head > .ico { color: var(--ok); } .delivery.bad .delivery-head > .ico { color: var(--bad); } .delivery.warn .delivery-head > .ico { color: var(--warn); }
.delivery-row { display: flex; gap: 8px; align-items: baseline; padding-top: 4px; border-top: 1px solid var(--rule); min-width: 0; }
.delivery-row .chip { flex: none; min-width: 0; justify-content: center; }
.delivery-row .grow { display: grid; gap: 2px; min-width: 0; }
.delivery-row .grow strong { font-weight: 500; }
.delivery-row small { font-size: 12.5px; }
.bad-ink { color: var(--bad); }

/* ---------- Páginas ---------- */
.sec-page { max-width: 780px; margin: 0 auto; padding: 24px 28px 40px; display: grid; gap: 18px; width: 100%; align-content: start; }
.sec-page h2 { font: 600 22px/1.2 var(--sans); margin: 0; }
.sec-page h3 { font-size: 15px; margin: 0; }
.sec-page .block { display: grid; gap: 12px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-page .tabs { margin-bottom: 4px; }
.tabs .tab { border: 0; background: transparent; color: var(--ink-3); font: 500 13.5px/1 var(--sans); padding: 10px 12px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs .tab:hover { color: var(--ink); }
.tabs .tab.on { color: var(--ink); border-bottom-color: var(--accent); }
.stackf { display: grid; gap: 16px; }
.stackf textarea { resize: vertical; }
.rule-builder .sentence > span { color: var(--ink-3); font-size: 13px; min-width: 32px; }
.contact-list { display: grid; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.contact { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--rule); min-width: 0; }
.contact:first-child { border-top: 0; }
.contact .grow { display: grid; min-width: 0; }
.contact .grow strong { font-weight: 500; }
.contact .grow small { font-size: 12.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.contact .grow small.quiet { color: var(--ink-3); font-size: 12px; }
.contact-list .empty { border: 0; }
.otp { font-family: var(--mono); font-size: 18px; letter-spacing: .3em; text-align: center; }
.totp-setup { display: flex; gap: 20px; align-items: flex-start; }
.qr { width: 168px; height: 168px; border-radius: 10px; border: 1px solid var(--rule); background: #fff; padding: 6px; flex: none; image-rendering: pixelated; }
.totp-steps { display: grid; gap: 12px; min-width: 0; }
.totp-steps ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.secret { display: inline-block; margin-top: 4px; padding: 3px 8px; border-radius: 6px; background: var(--paper); word-break: break-all; -webkit-user-select: all; user-select: all; }
.fresh { border: 1px solid var(--ok); background: var(--ok-soft); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 8px; }
.fresh p { margin: 0; }
.copy-line code { flex: 1; font-size: 17px; letter-spacing: .08em; -webkit-user-select: all; user-select: all; }

/* ---------- Janelas ---------- */
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(10, 14, 20, .45); display: grid; place-items: center; padding: 20px; animation: fade .15s ease-out; }
.modal-back.dark { background: rgba(5, 8, 12, .82); }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(480px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 20px 20px; display: grid; gap: 14px; }
.modal.wide { width: min(920px, 100%); height: min(720px, calc(100vh - 40px)); grid-template-rows: auto 1fr; }
.modal-head { display: flex; align-items: center; gap: 10px; }
.modal-head h3 { font-size: 16px; margin: 0; flex: 1; min-width: 0; }
.modal-foot { display: flex; gap: 8px; align-items: center; }
.ask-back { z-index: 80; }
.modal.ask { width: min(420px, 100%); }
.modal.ask .modal-foot { justify-content: flex-end; }
.ask-text { margin: 0; color: var(--ink-2); line-height: 1.5; }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger.solid:hover { background: var(--bad); filter: brightness(1.08); }
.raw { margin: 0; overflow: auto; padding: 14px; border-radius: var(--r); background: var(--sheet-2); border: 1px solid var(--rule); font: 12.5px/1.55 var(--mono); white-space: pre-wrap; word-break: break-all; color: var(--ink); }
.small-seg { flex: 0 1 auto; }
.viewer { width: min(1100px, 100%); height: min(860px, calc(100vh - 40px)); display: grid; grid-template-rows: auto 1fr; gap: 10px; background: var(--sheet); border-radius: var(--r-lg); padding: 12px 14px 14px; min-height: 0; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; margin: auto; display: block; min-height: 0; }
.viewer iframe { width: 100%; height: 100%; border: 0; border-radius: var(--r-sm); background: #fff; }
.viewer pre { margin: 0; overflow: auto; padding: 14px; background: var(--sheet-2); border-radius: var(--r); font: 13px/1.55 var(--mono); white-space: pre-wrap; }
.keys-list { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; margin: 0; align-items: center; }
.keys-list dt { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.keys-list dd { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.kbd-sep { color: var(--ink-3); font-size: 12px; }
kbd { font: 500 11.5px/1 var(--mono); border: 1px solid var(--rule-2); border-bottom-width: 2px; border-radius: 4px; padding: 3px 6px; background: var(--sheet); color: var(--ink-2); min-width: 20px; text-align: center; display: inline-block; }
.kbd-hint { margin-top: 10px; }

.toasts { pointer-events: none; }
.toast { pointer-events: auto; }
.toast .grow { flex: 1; }
.toast-undo { margin-left: 10px; background: transparent; border: 0; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; white-space: nowrap; }

/* ---------- Telas menores ---------- */
@media (max-width: 1080px) {
  .rail-sep { margin: 6px 4px; }
}
@media (max-width: 860px) {
  .reader-actions .long { display: none; }
  .reader-actions .short { display: inline; }
  .reader-actions { gap: 4px; width: 100%; margin-left: 0; }
  .reader-actions .hide-sm { display: none; }
  .reader-actions .move { max-width: 120px; flex: 1; }
  .save-state { flex: 1 1 80px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cfield { flex-wrap: wrap; align-items: flex-start; gap: 0; }
  .cfield > span, .rcpt-label { width: auto; }
  .file, .file.att { max-width: 100%; }
  .tcard-head { flex-wrap: wrap; }
  .tcard-head .snippet { display: none; }
  .ctx { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0; width: auto; min-width: 0; max-height: min(78dvh, 560px); overflow: auto; border-radius: 16px 16px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .ctx-fly { position: static; left: auto; right: auto; top: auto; min-width: 0; max-height: 220px; box-shadow: none; border: 0; padding: 0 0 4px 26px; }
  .menu, .menu.up { min-width: 0; width: min(320px, calc(100vw - 24px)); }
  .composer { padding: 16px; }
  .kbd-hint { display: none; }
  .sec-page { padding: 16px; }
  .totp-setup { flex-direction: column; align-items: center; }
  .thread { width: 100%; margin: 0; gap: 0; }
  .thread-title { padding: 12px 16px 6px; margin: 0; }
  .tcard { border-radius: 0; border-width: 1px 0 0; }
  .star-btn { opacity: 1; }
  .from-line { display: none; }
  .rcpt-menu { left: 0; max-width: 100%; min-width: 0; right: 0; }
  .modal-back { padding: 0; align-items: end; }
  .modal { width: 100%; border-radius: 16px 16px 0 0; max-height: 92dvh; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .modal.wide, .viewer { width: 100%; height: min(92dvh, 100%); border-radius: 16px 16px 0 0; }
  .sec-page .tabs { margin: 0 -16px; padding: 0 8px; }
  .contact { padding: 10px 12px; gap: 8px; }
  .contact .btn.icon:nth-of-type(3) { display: none; }
  .bulk { padding: 8px 12px; }
  .rte-body { min-height: 220px; }
  .rte-bar { position: sticky; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); z-index: 5; background: var(--sheet); border-top: 1px solid var(--rule); }
  .rte-btn { width: 44px; height: 40px; }
}
@media (pointer: coarse) {
  .wm-row { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .wm-row.holding { background: var(--sheet-2); }
  .bulk .move, .reader-actions .move, .menu-custom input, .rte-body { font-size: 16px; }
  .btn.small.icon, .star-btn { min-width: 40px; min-height: 40px; }
  .ctx > button, .ctx-sub > button, .ctx-fly > button, .menu > button, .menu > a, .seg button { min-height: 44px; }
}
.link-btn.left { justify-self: start; text-align: left; }

/* ---------- Marcadores, fixar, adiar e foto de perfil ---------- */
.label-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--lc, var(--ink-3)); margin: 0 4px; }
.label-chip {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 99px; flex: none;
  font: 500 11px/1 var(--sans); white-space: nowrap; border: 0; cursor: default;
  color: var(--lc); background: color-mix(in srgb, var(--lc) 14%, transparent);
}
button.label-chip { cursor: pointer; height: 22px; font-size: 12px; }
.pin-ico { color: var(--accent); flex: none; }
.ava-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar.pickable:hover .ava-img, .wm-row.picked .avatar.pickable .ava-img { display: none; }
.avatar.xl { width: 64px; height: 64px; font-size: 20px; }
.avatar-edit { display: flex; gap: 14px; align-items: center; }
.avatar-edit p { margin: 6px 0 0; }
.swatches { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer; }
.swatch.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--sheet) inset; }
.label-pick { display: grid; gap: 2px; margin: 8px 0 12px; max-height: 50vh; overflow: auto; }
.label-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); font: 400 13.5px/1.2 var(--sans); text-align: left; cursor: pointer; }
.label-opt:hover { background: var(--sheet-2); }
.label-opt.on { font-weight: 600; }
.opt.sel select { border: 0; background: transparent; color: inherit; font: inherit; font-size: 12.5px; padding: 0; height: auto; width: auto; min-width: 0; appearance: none; -webkit-appearance: none; box-shadow: none; cursor: pointer; }
.compose-opts .menu-wrap { position: relative; }
.compose-opts .menu { left: 0; right: auto; }
button.opt { background: transparent; font: inherit; font-size: 12.5px; }
.avatar-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* A barra lateral só mostra a rolagem quando o mouse está em cima. */
.rail-scroll { scrollbar-color: transparent transparent; }
.rail-scroll:hover, .rail-scroll:focus-within { scrollbar-color: var(--scroll-thumb) transparent; }
.rail-scroll::-webkit-scrollbar-thumb { background-color: transparent; }
.rail-scroll:hover::-webkit-scrollbar-thumb { background-color: var(--scroll-thumb); }

/* A barra da mensagem segue a largura do painel de leitura (não da janela):
   com a lista aberta ao lado, o painel fica estreito antes da tela. */
.pane.reader { container: reader / inline-size; }
@container reader (max-width: 760px) {
  .reader-actions .long { display: none; }
  .reader-actions .short { display: inline; }
  .reader-actions .hide-sm { display: none; }
  .reader-actions { gap: 4px; }
}

/* Abas das Configurações: quebram linha no computador (são muitas). */
@media (min-width: 861px) {
  .sec-page .tabs { flex-wrap: wrap; overflow: visible; }
}
.bulk .move { min-width: 64px; flex: 0 1 auto; }
.mini-row .swatches { flex: none; flex-wrap: nowrap; }

/* Avisos contra golpe na mensagem aberta */
.warns { display: grid; gap: 6px; }
.warn-bar { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: var(--r-sm); font-size: 13.5px; line-height: 1.4; border: 1px solid transparent; }
.warn-bar > :first-child { flex: none; margin-top: 1px; }
.warn-bar.bad { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.warn-bar.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.warn-bar.info { background: var(--sheet-2); color: var(--ink-2); border-color: var(--rule); }
.dev-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mini-row .grow small.dev-meta { white-space: normal; overflow: visible; text-overflow: clip; }

/* ---------- Tour do primeiro acesso ---------- */
.tour-layer { position: fixed; inset: 0; z-index: 90; }
.tour-layer.dim { background: rgba(8, 10, 14, .55); }
.tour-hole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(8, 10, 14, .55), 0 0 0 2px var(--accent); pointer-events: none; transition: all .25s ease; }
.tour-card { position: fixed; z-index: 91; background: var(--sheet); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px 14px; transition: top .25s ease, left .25s ease; }
.tour-card h3 { margin: 2px 0 6px; font-size: 16px; color: var(--ink); }
.tour-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.tour-n { font-size: 11.5px !important; color: var(--accent) !important; font-weight: 600; letter-spacing: .02em; }
.tour-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
@media (max-width: 600px) {
  .tour-card { left: 12px !important; right: 12px; width: auto !important; }
}

/* ---------- Ajuda ---------- */
.help-body { font-size: 14px; line-height: 1.65; color: var(--ink); }
.help-body p { margin: 0 0 10px; }
.help-body ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 4px; }
.help-body a { color: var(--accent); }
.help-body code, .help-body kbd { font: 12.5px var(--mono); background: var(--sheet-2); border: 1px solid var(--rule); border-radius: 5px; padding: 1px 5px; }
.help-table { border-collapse: collapse; margin: 6px 0 12px; font-size: 13px; width: 100%; }
.help-table td, .help-table th { border-bottom: 1px solid var(--rule); padding: 7px 8px; text-align: left; vertical-align: top; }
.help-table th { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.help-q { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--rule-2); color: var(--ink-3); font: 600 11px/1 var(--sans); text-decoration: none; margin-left: 6px; }
.help-q:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Central de ajuda ---------- */
.hc { --hh: 212; max-width: 1040px; margin: 0 auto; padding: 28px 28px 48px; }
.hc-badge { --hh: inherit; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: hsl(var(--hh) 55% var(--av-l)); color: hsl(var(--hh) 55% var(--av-ink)); }
.hc-badge.sm { width: 30px; height: 30px; border-radius: 9px; }
.hc-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.hc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 12.5px; color: var(--ink-3); }
.hc-crumbs a { color: var(--ink-3); text-decoration: none; }
.hc-crumbs a:hover { color: var(--accent); text-decoration: underline; }

/* topo */
.hc-hero { padding: 34px 32px 28px; margin-bottom: 26px; border: 1px solid var(--rule); border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 55%), var(--sheet); }
.hc-hero.compact { padding: 24px 28px 22px; }
.hc-hero h2 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.hc-hero.compact h2 { font-size: 24px; }
.hc-sub { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; max-width: 560px; }
.hc-search { position: relative; margin-top: 22px; max-width: 640px; }
.hc-search > :first-child { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.hc-search input { width: 100%; height: 52px; padding: 0 18px 0 46px; border-radius: 14px; border: 1px solid var(--rule-2); background: var(--paper); color: var(--ink); font-size: 15.5px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.hc-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.hc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.hc-chips > span { margin-right: 2px; }
.hc-chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--rule); background: var(--sheet-2); color: var(--ink-2); font-size: 13px; text-decoration: none; transition: border-color .15s, color .15s; }
.hc-chip:hover { border-color: var(--accent); color: var(--accent); }

.hc-h { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); }

/* comece por aqui */
.hc-start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 30px; }
.hc-start-card { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: 14px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); text-align: left; text-decoration: none; font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.hc-start-card .hc-badge { margin-bottom: 6px; }
.hc-start-card strong { font-size: 15px; }
.hc-start-card small { color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.hc-start-card:hover, .hc-cat:hover, .hc-item:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--rule)); transform: translateY(-1px); }

/* assuntos */
.hc-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.hc-cat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 4px 14px; padding: 18px; border-radius: 14px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.hc-cat .hc-badge { grid-row: span 2; }
.hc-cat-text { display: grid; gap: 4px; }
.hc-cat-text strong { font-size: 15px; }
.hc-cat-text small { color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.hc-count { grid-column: 2; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; font-weight: 500; color: hsl(var(--hh) 55% var(--av-ink)); }

/* listas de artigos */
.hc-section { margin-bottom: 30px; }
.hc-list { display: grid; gap: 8px; }
.hc-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.hc-item-text { display: grid; gap: 3px; flex: 1; min-width: 0; }
.hc-item-text strong { font-size: 14.5px; }
.hc-item-text small { color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.hc-item-cat { flex: none; font-size: 12px; color: var(--ink-3); padding: 3px 9px; border-radius: 99px; background: var(--sheet-2); }
.hc-go { flex: none; color: var(--ink-3); }
.hc-empty { color: var(--ink-3); margin: 4px 2px 0; }

/* artigo */
.hc-article-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.hc-side { position: sticky; top: 16px; display: grid; gap: 2px; padding: 14px; border-radius: 14px; border: 1px solid var(--rule); background: var(--sheet); }
.hc-side-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 600; font-size: 13.5px; color: var(--ink); text-decoration: none; }
.hc-side-link { display: block; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); text-decoration: none; }
.hc-side-link:hover { background: var(--sheet-2); color: var(--ink); }
.hc-side-link.on { background: hsl(var(--hh) 55% var(--av-l)); color: hsl(var(--hh) 55% var(--av-ink)); font-weight: 600; }
.hc-side-all { margin-top: 8px; padding: 7px 10px; font-size: 12.5px; color: var(--accent); text-decoration: none; border-top: 1px solid var(--rule); }
.hc-article { min-width: 0; max-width: 720px; }
.hc-title { margin: 0 0 18px; font-size: 28px; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
.hc-article .help-body { font-size: 15px; line-height: 1.7; }
.hc-article .help-body ul { gap: 8px; }
.hc-article .help-body li::marker { color: var(--accent); }
.hc-article .help-table { border: 1px solid var(--rule); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.hc-article .help-table tr:last-child td { border-bottom: 0; }
.hc-article .help-table th { background: var(--sheet-2); }
.hc-related { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule); display: grid; gap: 4px; }
.hc-related-link { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; }
.hc-related-link:hover { background: var(--sheet-2); color: var(--accent); }
.hc-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: var(--sheet-2); color: var(--ink-2); font-size: 14px; }
.hc-more > span { margin-right: auto; font-weight: 500; }

@media (max-width: 1080px) {
  .hc-article-wrap { grid-template-columns: 1fr; }
  .hc-side { display: none; }
}
@media (max-width: 860px) {
  .hc { padding: 12px 14px 32px; }
  .hc-hero { padding: 24px 18px 20px; border-radius: 16px; margin-bottom: 20px; }
  .hc-hero h2 { font-size: 24px; }
  .hc-start { grid-template-columns: 1fr; }
  .hc-start-card { grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; }
  .hc-start-card .hc-badge { grid-row: span 2; margin: 0; }
  .hc-cats { grid-template-columns: 1fr; }
  .hc-item-cat { display: none; }
  .hc-title { font-size: 23px; }
  .hc-search input { font-size: 16px; }
  .hc-article .help-table { display: block; overflow-x: auto; white-space: nowrap; font-size: 12.5px; }
}

/* Chance de spam no editor */
.spam-hint { position: relative; }
.spam-hint > .btn { color: var(--ink-3); }
.spam-hint.media > .btn { color: var(--warn); }
.spam-hint.alta > .btn { color: var(--bad); font-weight: 600; }
.spam-pop { width: min(380px, calc(100vw - 32px)); padding: 6px 12px 10px; white-space: normal; }
.spam-pop ul { margin: 4px 0 8px; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; line-height: 1.45; color: var(--ink); }
.spam-pop .quiet { margin: 4px 0 0; line-height: 1.45; }
.ask-list { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink); line-height: 1.45; font-size: 14px; }

/* Vídeo passo a passo na ajuda */
.hc-video-card { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: center; padding: 14px; margin-bottom: 14px; border-radius: 16px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.hc-video-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.hc-video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0b1020; }
.hc-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #1b2a55; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.hc-play svg { fill: currentColor; margin-left: 3px; }
.hc-video-text { display: grid; gap: 6px; }
.hc-video-text strong { font-size: 18px; }
.hc-video-text > span { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.hc-video-text .hc-kicker { margin: 0; }
.hc-video-text .hc-kicker svg { fill: currentColor; }
.help-video { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 4px 0 16px; border-radius: 12px; background: #0b1020; }
@media (max-width: 860px) {
  .hc-video-card { grid-template-columns: 1fr; gap: 12px; }
}

/* Caixas compartilhadas */
.shared-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 10px 10px; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--ink); font-size: 12.5px; line-height: 1.4; }
.shared-banner .btn { width: 100%; justify-content: center; }
.rail-title { margin: 14px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
button.rail-item { width: 100%; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.sent-by { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 2px 8px; border-radius: 99px; background: var(--sheet-2); color: var(--ink-2); }
/* Chave PGP (WKD) */
.pgp-block { order: 9; }
.pgp-block textarea { width: 100%; font-size: 12.5px; resize: vertical; }
.pgp-fp { font-size: 12.5px; overflow-wrap: anywhere; }
/* Abas da Entrada */
.inbox-tabs { flex: 1 0 100%; width: 100%; display: flex; gap: 2px; border-bottom: 1px solid var(--rule); margin: 2px 0 8px; }
.inbox-tabs button { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 8px 4px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--ink-2); font: 500 13.5px/1 var(--sans); cursor: pointer; }
.inbox-tabs button:hover { color: var(--ink); }
.inbox-tabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
.inbox-tabs small { min-width: 18px; padding: 2px 5px; border-radius: 99px; background: var(--sheet-2); color: var(--ink-2); font-size: 11px; text-align: center; }
.feed-open { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 13px; color: var(--accent); text-decoration: none; }
.feed-open:hover { text-decoration: underline; }

/* Leituras: as newsletters em sequência */
.feed-page { max-width: 720px; margin: 0 auto; padding: 20px 24px 48px; }
.feed-page h2 { margin: 0 0 4px; }
.feed-item { margin-top: 20px; padding: 20px 22px; border: 1px solid var(--rule); border-radius: 14px; background: var(--sheet); }
.feed-item.unread { border-left: 3px solid var(--accent); }
.feed-item header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.feed-item h3 { flex-basis: 100%; margin: 6px 0 10px; font-size: 19px; line-height: 1.3; }
.feed-body { max-height: 240px; overflow: hidden; font-size: 15px; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.feed-body.open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.feed-body a { color: var(--accent); }
.feed-body img { max-width: 100%; height: auto; }
.feed-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 860px) {
  .feed-page { padding: 12px 14px 32px; }
  .feed-item { padding: 16px; }
}
/* Emails mascarados */
.mask-new { display: flex; gap: 8px; margin: 4px 0 8px; }
.mask-new input { flex: 1; min-width: 0; }
.mask-row .toggle { flex: none; }
.mask-row.off strong { color: var(--ink-3); text-decoration: line-through; }
@media (max-width: 600px) {
  .mask-new { flex-direction: column; }
  .mask-row { flex-wrap: wrap; }
  .mask-row .grow { flex: 1 1 60%; }
}
/* Atalhos das respostas prontas */
.reply-shortcut { font: 12.5px var(--mono); padding: 1px 6px; border: 1px solid var(--rule); border-radius: 5px; background: var(--sheet-2); color: var(--ink-2); }
.reply-vars { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.reply-vars code { font: 12px var(--mono); }
