/* static/css/mail-web.css — one stylesheet, no scripts. */
:root { --ink: #1b1b1b; --paper: #fbfbf9; --rule: #d9d6cf; --accent: #2b5d9b; --warn: #8a2a2a; }
html { background: var(--paper); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
header.site, footer.site { padding: 0.75rem 1rem; border-bottom: 1px solid var(--rule); display: flex; gap: 1rem; align-items: center; }
header.site { position: relative; }
footer.site { border-bottom: 0; border-top: 1px solid var(--rule); margin-top: auto; color: #555; }
.brand { font-weight: 600; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); text-decoration: none; }
a.mark { display: inline-flex; margin-right: -.4rem; }
details.menu > summary.mark { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .4rem; border: 1px solid var(--rule); border-radius: 5px; background: #fff; }
details.menu > summary.mark::after { content: ""; width: 0; height: 0; border-left: .3rem solid transparent; border-right: .3rem solid transparent; border-top: .38rem solid #5b6470; }
details.menu[open] > summary.mark, details.menu > summary.mark:hover { background: #eef2f7; }
.mark .logo, .brand .logo { height: 1.6rem; width: 1.6rem; flex: none; }
/* the main menu: a details element, no script */
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; padding: .15rem .35rem; border-radius: 4px; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu[open] > summary, details.menu > summary:hover { background: #eef2f7; }
details.menu > ul, details.menu > .sheet { position: absolute; left: 0; top: 2.1rem; z-index: 5; margin: 0; padding: .3rem 0; list-style: none; min-width: 10rem; background: #fff; border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
details.menu > ul a, details.menu > ul button.link, details.menu .sheet a { display: block; box-sizing: border-box; width: 100%; padding: .45rem .9rem; color: var(--ink); text-decoration: none; text-align: left; font: inherit; background: none; border: 0; cursor: pointer; }
details.menu > ul a:hover, details.menu > ul button.link:hover, details.menu .sheet a:hover { background: #eef2f7; }
details.menu > ul li:last-child { border-top: 1px solid var(--rule); margin-top: .3rem; padding-top: .3rem; }
/* the main menu's sheet (series mail-web-menu): three groups — the
   four folders, the body, Settings and after — the body scrolls when
   the sheet would run off the screen, the groups at the ends stay in
   reach; the view the member is on is the heading, not a row */
details.menu.main > .sheet { display: flex; flex-direction: column; max-height: calc(100vh - 4.5rem); min-width: 12rem; padding: 0; }
details.menu.main .sheet ul { list-style: none; margin: 0; padding: .3rem 0; flex: 0 0 auto; }
details.menu.main .sheet ul.body { overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 7.5rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); scrollbar-width: thin; }
details.menu.main .sheet p.here { margin: 0; padding: .5rem .9rem .2rem; font-weight: 600; color: #5b6470; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
details.menu.main .sheet ul.top:empty { display: none; }
.topnav details.moveto > summary.icon { padding: .15rem; }
.topnav details.moveto > ul { min-width: 8rem; }
.topnav details.moveto > ul li:last-child { border-top: 0; margin-top: 0; padding-top: 0; }
.topnav details.moveto > ul form { margin: 0; }
.message p.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.message p.actions .button { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; }
.message p.actions .button svg { width: 1.1rem; height: 1.1rem; }
section.purge button.danger { background: #c0392b; border-color: #c0392b; }
a.button.quiet { background: none; color: var(--ink); border: 1px solid var(--rule); }
details.menu .sheet li.filter a { padding-left: 1.4rem; }
/* a filter folder that paints its rows paints its menu item the same (series mail-web-menu-color) */
details.menu .sheet li.paint-red a { background: #fde2e1; } details.menu .sheet li.paint-orange a { background: #ffe8cc; }
details.menu .sheet li.paint-yellow a { background: #fff4bf; } details.menu .sheet li.paint-green a { background: #d9f2df; }
details.menu .sheet li.paint-teal a { background: #d4f1ef; } details.menu .sheet li.paint-blue a { background: #dbe8fb; }
details.menu .sheet li.paint-purple a { background: #e9ddf7; } details.menu .sheet li.paint-gray a { background: #e9ecef; }
section.filters h2 { font-size: 1rem; margin: 1rem 0 .5rem; }
section.card form h2 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
form textarea#sig_custom, form textarea#people_exclude { font: inherit; display: block; width: 100%; max-width: 40rem; padding: .35rem .5rem; margin: .2rem 0 .6rem; border: 1px solid var(--rule); border-radius: 4px; }
form textarea#people_exclude { max-width: 20rem; }
.sigpreview { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: .5rem 0 1rem; }
.sigpreview pre { margin: 0; padding: .6rem .8rem; background: #f6f7f9; border: 1px solid var(--rule); border-radius: 4px; font: inherit; white-space: pre-wrap; }
section.filters form.filter { max-width: 40rem; }
section.filters form.filter input[type=text], section.filters form.filter select { font: inherit; display: block; width: 100%; max-width: 40rem; padding: .35rem .5rem; margin: 0; border: 1px solid var(--rule); border-radius: 4px; }
/* label and field on one line; a join row before each further condition (series mail-web-filters-conditions) */
section.filters form.filter .row { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: .5rem; margin: 0 0 .45rem; }
section.filters form.filter .row label { margin: 0; }
section.filters form.filter .row.join select { width: auto; max-width: none; justify-self: start; font-weight: 600; }
section.filters form.filter .row.actions { margin-top: .6rem; }
section.filters form.filter .row.another button { font: inherit; font-size: .9em; padding: .3rem .7rem; background: #fff; color: var(--link, #2b6cb0); border: 1px solid var(--rule); border-radius: 4px; cursor: pointer; justify-self: start; }
section.filters form.filter .row.another button:hover { border-color: var(--link, #2b6cb0); }
section.filters table.folders td form { margin: 0; }
section.filters button.drop { font: inherit; line-height: 1; padding: 0 .45rem; background: none; border: 1px solid var(--rule); border-radius: 4px; color: inherit; cursor: pointer; }
section.filters button.drop:hover { border-color: #c0392b; color: #c0392b; }
label.check { display: inline-flex; gap: .5rem; align-items: center; margin: 0; }
main { flex: 1; padding: 1rem; max-width: 48rem; width: 100%; box-sizing: border-box; margin: 0 auto; }
/* The page's width is said outright once the window is wider than it
   (series mail-web-storage-total fix-1): a browser that wraps text
   against the width before max-width clamps it (tread 0.120) ran every
   line past the card. main.wide is a page that asks for more (Plans,
   its mainclass); a class, because :has() is not applied everywhere. */
main.wide { max-width: 66rem; }
@media (min-width: 50rem) { main { width: 48rem; } main.wide { width: 100%; } }
@media (min-width: 68rem) { main.wide { width: 66rem; } }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 1.25rem 1.5rem; }
.card h1 { font-size: 1.4rem; margin: 0 0 0.75rem; }
.card.error h1 { color: var(--warn); }
.hint, .muted { color: #555; }
.muted { font-size: .92rem; }
/* what was taken off a link (mail-web-link-unwrap) */
small.via, a.via { color: #555; font-size: .8em; white-space: nowrap; }
a.via { text-decoration: underline dotted; }
/* Help pages (mail-web-help-topics) */
.help .crumbs { margin: 0 0 .4rem; font-size: .9rem; color: #555; }
.help ul.helppages { margin: 0 0 .8rem; padding-left: 1.2rem; }
.help ul.helppages li { margin: .2rem 0; }
.topic-page p { max-width: 70ch; }
/* the sender's layout in a sealed frame (mail-web-show-as-sent) */
.viewswitch { margin: .2rem 0 .6rem; font-size: .92rem; }
.viewswitch .here { font-weight: 600; }
iframe.assent { display: block; width: 100%; height: 70vh; min-height: 320px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.shield { display: flex; gap: .6rem; align-items: flex-start; margin: .5rem 0 .3rem; padding: .55rem .7rem; font-size: .88rem; line-height: 1.35; color: #1f4d2b; background: #eef7ee; border: 1px solid #bfe0c4; border-left: 4px solid #2e7d32; border-radius: 4px; }
.shield svg { flex: 0 0 auto; width: 1.4rem; height: 1.4rem; color: #2e7d32; margin-top: .05rem; }
.shield b { color: #1b5e20; }
.shield .chips { display: inline-flex; flex-wrap: wrap; gap: .3rem; margin-left: .3rem; vertical-align: middle; }
.shield .chip { display: inline-block; padding: .05rem .5rem; border-radius: 999px; background: #fff; border: 1px solid #bfe0c4; color: #1b5e20; font-size: .82rem; white-space: nowrap; text-decoration: none; }
.shield a.chip:hover { border-color: #2e7d32; text-decoration: underline; }
.shield b a { color: inherit; text-decoration: none; border-bottom: 1px dotted #2e7d32; }
details.remote { margin: 0 0 .6rem; font-size: .88rem; color: #3d4752; }
details.remote summary { cursor: pointer; color: #1b5e20; }
details.remote p { margin: .4rem 0; }
table.remote { border-collapse: collapse; margin: .3rem 0; }
table.remote td { padding: .15rem .7rem .15rem 0; vertical-align: top; }
table.remote td:first-child { font-family: ui-monospace, monospace; font-size: .85em; }
details.remote button[disabled] { color: #6b7480; background: #f1f3f5; border: 1px solid #cfd5db; border-radius: 3px; padding: .1rem .5rem; cursor: not-allowed; }
iframe.assent { border-color: #bfe0c4; }
a { color: var(--accent); }
button, .button { font: inherit; padding: 0.6rem 1.1rem; border-radius: 4px; border: 1px solid var(--accent); background: var(--accent); color: #fff; }
a.button { display: inline-block; text-decoration: none; }
.error-text { color: var(--warn); font-weight: 600; }
label { display: block; margin: 0.5rem 0 0.25rem; }
input[type=text], input[type=email] { font: inherit; padding: 0.5rem; border: 1px solid var(--rule); border-radius: 4px; width: 100%; max-width: 20rem; display: block; margin-bottom: 0.75rem; box-sizing: border-box; }
/* a select in a card form (Settings: time zone) reads like the text inputs beside it */
section.card form > p > select { font: inherit; padding: 0.5rem 2rem 0.5rem 0.5rem; border: 1px solid var(--rule); border-radius: 4px; width: 100%; max-width: 20rem; display: block; margin-bottom: 0.75rem; box-sizing: border-box; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6470' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .7rem center; appearance: none; -webkit-appearance: none; color: inherit; cursor: pointer; }
section.card form > p > select:focus { outline: 2px solid var(--accent, #2f6fdd); outline-offset: 1px; }
.topnav { display: flex; gap: 1rem; align-items: center; flex: 1; font-size: .95rem; }
.topnav a.here { font-weight: 600; text-decoration: none; }
.topnav .right { margin-left: auto; display: flex; gap: .8rem; align-items: center; }
.topnav .status { color: #5b6470; font-size: .9rem; font-weight: 600; }
details.profile > summary.avatar { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: .8rem; padding: 0; }
details.profile > ul { left: auto; right: 0; min-width: 12rem; }
details.profile > ul li.who { padding: .45rem .9rem; color: #5b6470; font-size: .85rem; border-bottom: 1px solid var(--rule); margin-bottom: .3rem; }
details.profile > ul button.link[disabled] { color: #9aa3ad; cursor: default; }
details.profile > ul button.link[disabled]:hover { background: none; }
details.profile > ul li:last-child { border: 0; margin: 0; padding-top: 0; }
button.link { background: none; border: none; color: var(--accent); padding: 0; cursor: pointer; font: inherit; text-decoration: underline; }
.icon { display: inline-flex; color: var(--accent); background: none; border: 0; padding: .15rem; cursor: pointer; border-radius: 4px; }
.icon svg { width: 1.5rem; height: 1.5rem; }
.icon:hover { background: #eef2f7; }
/* the footer: brand and version left; .notice (none yet) right */
footer.site .notice { margin-left: auto; text-align: right; }
/* the inbox (series mail-web-inbox) */
table.list { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .95rem; margin: .5rem 0 1rem; }
table.list col.pick { width: 2.1rem; }
table.list col.from { width: 19%; }
/* the subject takes what the others leave: with a width of its own the
   four summed to 100% + the pick column, and a browser that adds them
   up drew the table wider than the card */
table.list col.subj { width: auto; }
table.list col.when { width: 14%; }
table.list th, table.list td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.list td.from, table.list td.subj { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.list td.when, table.list th:last-child { white-space: nowrap; text-align: right; color: #5b6470; }
table.list th a { text-decoration: none; color: inherit; }
table.list th a.here { text-decoration: underline; }
.topnav form.search { display: inline-flex; margin: 0; }
.topnav form.search input { font: inherit; font-size: .9rem; padding: .25rem .5rem; border: 1px solid var(--rule); border-radius: 4px; width: 14rem; max-width: 40vw; }
table.list tbody tr:nth-child(even) td { background: #f5f6f8; }
table.list tbody tr.verdict-fraud td { background: #fff4f4; }
.tag { font-size: .75rem; color: #5b6470; border: 1px solid var(--rule); border-radius: 3px; padding: 0 .3em; }
.verdict { font-size: .85rem; font-weight: 600; }
.verdict-member { color: #1f6b3a; }
.verdict-fraud { color: #9b2226; }
.verdict-external, .verdict-other { color: #5b6470; }
/* the pager sits right-aligned under the list (series mail-web-page-rows, fix-3) */
.pagerbar { display: flex; justify-content: flex-end; margin: .35rem 0 0; }
form.pager { display: flex; gap: .15rem; align-items: center; font-size: .9rem; margin: 0; }
form.pager a { margin: 0; padding: .1rem .4rem; border-radius: 4px; text-decoration: none; font-weight: 600; }
form.pager a:hover { background: #eef2f7; }
form.pager .off { color: #9aa3ad; padding: .1rem .4rem; }
form.pager input[type=number] { font: inherit; width: 3.2rem; padding: .1rem .3rem; margin: 0 .1rem; text-align: center; border: 1px solid var(--rule); border-radius: 4px; }
form.pager .of { color: #5b6470; margin-right: .2rem; }
nav.pager .gap { color: #9aa3ad; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0 0 1rem; }
.facts dt { color: #555; } .facts dd { margin: 0; }
pre.body { white-space: pre-wrap; word-break: break-word; background: #f4f3ee; border: 1px solid var(--rule); border-radius: 4px; padding: 1rem; font: inherit; }
.warning { background: #fff4f4; border: 1px solid #9b2226; color: #9b2226; padding: .5rem .75rem; border-radius: 4px; }
.message h2 { font-size: 1.1rem; margin: 1rem 0 .5rem; }
.attachments { padding-left: 1.2rem; }
code { font-size: .88em; word-break: break-all; }
/* compose (series mail-web-compose) */
form.compose input[type=text] { max-width: 40rem; }
/* Recipients and Subject on one line each (series mail-web-compose-recipients):
   a label column, the fields left-aligned; Cc and Bcc folded away until wanted;
   the hint behind an i that toggles; a rule under the recipients. */
form.compose .row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: center; gap: .5rem; max-width: 40rem; margin: 0 0 .5rem; }
form.compose .row label { margin: 0; }
form.compose .row input[type=text], form.compose .row select { margin: 0; max-width: none; }
form.compose .row.subject { grid-template-columns: auto minmax(0, 1fr); margin-top: .6rem; }
form.compose .row.retention { grid-template-columns: auto auto auto; justify-content: start; margin: .6rem 0; }
form.compose .who { border-bottom: 1px solid var(--rule); padding-bottom: .4rem; margin-bottom: .2rem; }
form.compose details.more > summary { list-style: none; cursor: pointer; color: var(--accent); font-size: .9rem; margin: 0 0 .5rem 3.5rem; width: max-content; }
form.compose details.more > summary::-webkit-details-marker { display: none; }
form.compose details.more[open] > summary { display: none; }
form.compose details.info { position: relative; }
form.compose details.info > summary { list-style: none; cursor: pointer; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-size: .8rem; font-weight: 700; font-style: italic; font-family: Georgia, serif; display: inline-flex; align-items: center; justify-content: center; }
form.compose details.info > summary::-webkit-details-marker { display: none; }
form.compose details.info[open] > summary { background: var(--accent); color: #fff; }
form.compose details.info > p { position: absolute; right: 0; top: 1.8rem; z-index: 5; width: min(26rem, 80vw); margin: 0; padding: .6rem .8rem; font-size: .9rem; color: #374151; background: #f6f7f9; border: 1px solid #e3e6ea; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
form.compose .clip button.send { font: inherit; padding: .4rem 1.1rem; margin-right: .6rem; }
form.compose .clip details.info > p { right: auto; left: 0; }
form.compose .fold { display: flex; align-items: center; gap: .5rem; }
form.compose .fold > details.more { flex: 1 1 auto; min-width: 0; }
form.compose .fold > details.more[open] + details.info { display: none; }
.column figure.pic.sig details.info { align-self: center; }
.column figure.pic.sig details.info > .hint { position: absolute; left: 0; top: 1.8rem; z-index: 5; width: min(26rem, 80vw); padding: .6rem .8rem; font-size: .9rem; color: #374151; background: #f6f7f9; border: 1px solid #e3e6ea; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.column figure.pic.sig details.info > .hint p { margin: 0 0 .5rem; }
.column figure.pic.sig details.info > .hint p:last-child { margin-bottom: 0; }
.column figure.pic.sig details.info > .hint pre { margin: 0 0 .5rem; padding: .4rem .6rem; background: #fff; border: 1px solid #e3e6ea; border-radius: 4px; font-size: .85rem; }
form.compose textarea { font: inherit; width: 100%; max-width: 40rem; display: block; padding: .5rem; border: 1px solid var(--rule); border-radius: 4px; margin-bottom: .75rem; box-sizing: border-box; }
form.compose select { font: inherit; padding: .4rem; border: 1px solid var(--rule); border-radius: 4px; margin-bottom: .75rem; display: block; }
form.compose .attach { max-width: 40rem; margin: 0 0 .75rem; }
section.sent ul { margin: 0 0 .75rem 1.25rem; padding: 0; }
form.compose ul.staged { list-style: none; margin: 0 0 .5rem; padding: 0; }
form.compose ul.staged li { display: flex; align-items: center; gap: .5rem; padding: .3rem .5rem; border: 1px solid var(--rule); border-radius: 4px; margin-bottom: .3rem; }
form.compose ul.staged .name { flex: 1 1 auto; overflow-wrap: anywhere; }
form.compose button.drop { font: inherit; font-size: 1.1rem; line-height: 1; padding: 0 .45rem; background: none; border: 1px solid var(--rule); border-radius: 4px; color: inherit; cursor: pointer; }
form.compose button.drop:hover { border-color: #c0392b; color: #c0392b; }
form.compose .clip { display: flex; align-items: center; gap: .6rem; }
form.compose label.pick { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; padding: .3rem .6rem; border: 1px solid var(--rule); border-radius: 4px; }
form.compose label.pick input[type=file] { font: inherit; max-width: min(28rem, 100%); }
form.compose label.pick input[type=file]::file-selector-button { font: inherit; font-size: .9rem; padding: .2rem .6rem; margin-right: .6rem; border: 1px solid var(--rule); border-radius: 4px; background: #eef2f7; color: inherit; cursor: pointer; }
form.compose .clipicon { width: 1.3rem; height: 1.3rem; }
form.compose button.stage { font: inherit; font-size: .9rem; padding: .3rem .8rem; border: 1px solid var(--rule); border-radius: 4px; background: #eef2f7; color: inherit; cursor: pointer; }
form.compose button.stage:hover { border-color: var(--accent); color: var(--accent); }
/* a phone: no side margins, the card is the page, the list fits */
@media (max-width: 40rem) {
  html { font-size: 15px; }
  header.site, footer.site { padding: .6rem .75rem; gap: .6rem; flex-wrap: wrap; }
  .topnav { gap: .75rem; flex-wrap: wrap; }
  .topnav .status { display: none; }
  main { padding: 0; }
  .card { border-left: 0; border-right: 0; border-radius: 0; padding: .9rem .75rem; }
  input[type=text], input[type=email], form.compose input[type=text], form.compose textarea { max-width: none; }
  table.list { font-size: .9rem; }
  table.list th, table.list td { padding: .35rem .3rem; }
  /* the date column goes; its <col> must give up its width too, or the
     fixed layout keeps a blank 14% at the right (mail-web-tags fix-2) */
  table.list col.pick { width: 2rem; }
  table.list col.from { width: 34%; }
  table.list col.subj { width: auto; }
  table.list col.when { width: 0; }
  table.list tr.actions .bar { gap: .3rem; }
  table.list tr.actions span.muted { display: none; }
  /* the tags table on a phone: one grid row per tag — chip, box, the
     address field taking what is left, delete — the header gone */
  section.tags table.taglist, section.tags table.taglist tbody { display: block; width: 100%; }
  section.tags table.taglist thead { display: none; }
  section.tags table.taglist tr { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr) max-content max-content; gap: .4rem; align-items: start; padding: .4rem 0; border-bottom: 1px solid var(--rule); }
  section.groups table.grouplist tr { grid-template-columns: max-content minmax(0, 1fr) max-content; }
  section.tags table.taglist td { display: block; padding: .15rem 0; }
  section.tags table.taglist td form.addresses { min-width: 0; }
  section.tags table.taglist td form.addresses textarea { flex-basis: 4rem; }
  table.list tr.heads th:nth-child(4), table.list tbody td:nth-child(4) { display: none; }
  .topnav form.search input { width: 9rem; }
  .facts { grid-template-columns: 1fr; gap: 0 }
  .facts dt { margin-top: .4rem; }
  /* the menu: a sheet under the header, full width, finger-sized rows */
  details.menu { position: static; }
  details.menu > ul, details.menu > .sheet { left: 0; right: 0; top: 100%; min-width: 0; border-radius: 0 0 8px 8px; border-left: 0; border-right: 0; padding: .2rem 0 .4rem; }
  details.menu > ul a, details.menu > ul button.link, details.menu .sheet a { padding: .85rem 1rem; font-size: 1.05rem; }
  /* the phone: the sheet takes the screen under the header; the four
     folders as one row, the body scrolls, Settings and after pinned;
     the logo closes it (series mail-web-menu) */
  details.menu.main > .sheet { max-height: calc(100dvh - 3.9rem); padding: 0; border-radius: 0; }
  details.menu.main .sheet ul.top { display: flex; flex-wrap: wrap; padding: .2rem .4rem; gap: .2rem; }
  details.menu.main .sheet ul.top li { flex: 1 1 auto; }
  details.menu.main .sheet ul.top a { text-align: center; padding: .7rem .5rem; border-radius: 6px; }
  details.menu.main .sheet ul.bottom { display: flex; flex-wrap: wrap; padding: .2rem .4rem; gap: .2rem; }
  details.menu.main .sheet ul.bottom li { flex: 1 1 auto; }
  details.menu.main .sheet ul.bottom a { text-align: center; padding: .7rem .5rem; font-size: .95rem; }
}
/* pictures in the reader (series mail-web-inline-render) */
figure.inline { margin: .6rem 0; }
figure.inline img { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
figure.inline.placed { margin: 0; }
figure.inline.placed img { border: 0; border-radius: 0; background: transparent; }
figure.inline.sig { margin: 0; }
figure.inline.sig img { border: 0; border-radius: 0; background: transparent; }
/* The message body as one flow (series mail-web-read-flow): text and the
   pictures placed in it run together, as the recipient's client shows
   them — no box per piece, a rule above the whole. */
.message .content { border-top: 1px solid var(--rule); padding-top: 1rem; margin: .5rem 0 1rem; }
.message .content pre.body { background: none; border: 0; border-radius: 0; padding: 0; margin: 0; }
.message .content figure.inline { margin: .3rem 0; }
figure.inline figcaption { font-size: .85em; color: var(--muted, #666); margin-top: .2rem; }
.pictures { display: flex; flex-wrap: wrap; gap: .8rem; }
.pictures figure.inline img { max-height: 16rem; }
/* the body as a column (series mail-web-compose-blocks) */
.column textarea { display: block; width: 100%; resize: vertical; field-sizing: content; min-height: 3.2rem; margin: 0; }
.column textarea.slim { min-height: 2rem; }
.column textarea.quoted { background: #f6f7f9; color: #4b5563; border-color: #e3e6ea; resize: none; cursor: default; max-height: 7rem; overflow: hidden; }
.column textarea.quoted:focus { outline: none; box-shadow: none; max-height: none; }
.column figure.pic { margin: .3rem 0; padding: .3rem .4rem; display: flex; gap: .7rem; align-items: flex-start; border-left: 3px solid var(--rule); background: #faf9f5; }
.column figure.pic img { display: block; max-height: 7rem; max-width: 40%; height: auto; width: auto; border: 1px solid var(--rule); border-radius: 3px; background: #fff; }
.column figure.pic figcaption { font-size: .95em; display: flex; flex-direction: column; gap: .35rem; }
.column figure.pic .ctl { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .2rem; }
.column figure.pic .ctl button.link { font: inherit; font-size: 1.05em; background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: .25rem .7rem; color: var(--link, #2b6cb0); text-decoration: none; cursor: pointer; line-height: 1.2; }
.column figure.pic .ctl button.link.arrow { font-size: 1.3em; padding: .15rem .7rem; }
.column figure.pic .ctl button.link:hover { border-color: var(--link, #2b6cb0); }
.column .insert { display: flex; gap: .4rem; align-items: center; margin: .2rem 0; font-size: .85em; }
.column .insert select { max-width: 16rem; }
.column figure.pic .ctl input.step { width: 3.2rem; font: inherit; text-align: center; padding: .2rem; border: 1px solid var(--rule); border-radius: 4px; }
/* the picture's width on the wire (series mail-web-picture-size); takes effect on the next click */
.column figure.pic .ctl .size { display: inline-flex; margin: 0; border: 1px solid var(--rule); border-radius: 4px; background: #fff; overflow: hidden; font-size: .85em; line-height: 1.2; }
.column figure.pic .ctl .size label { position: relative; display: inline-block; margin: 0; }
.column figure.pic .ctl .size label + label { border-left: 1px solid var(--rule); }
.column figure.pic .ctl .size input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; pointer-events: none; }
.column figure.pic .ctl .size span { display: inline-block; padding: .3rem .6rem; color: var(--link, #2b6cb0); cursor: pointer; white-space: nowrap; }
.column figure.pic .ctl .size input:checked + span { background: var(--link, #2b6cb0); color: #fff; }
.column figure.pic .ctl .size input:focus-visible + span { outline: 2px solid var(--link, #2b6cb0); outline-offset: -2px; }
/* a width typed on the row (series mail-web-picture-width): beside the three sizes, never instead of them */
.column figure.pic .ctl label.px { display: inline-flex; align-items: center; gap: .3rem; margin: 0; font-size: .85em; color: #555; }
.column figure.pic .ctl label.px input { width: 4.6rem; font: inherit; text-align: right; padding: .2rem .3rem; border: 1px solid var(--rule); border-radius: 4px; }
.column figure.pic .warn, .preview figure.inline .warn { color: var(--warn); font-size: .85em; }
/* the button Enter presses (first in the form): off the page, never in the tab order */
form.compose button.enter { position: absolute; left: -9999px; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; }
/* signature pictures in the column (series mail-web-sig-blocks) */
.column figure.pic.sig { border-left: 0; background: none; padding: .2rem 0; }
.column figure.pic.sig img { max-height: 4rem; max-width: 50%; border: 0; background: transparent; }
.column figure.pic.sig.small img { max-height: 2.8rem; }
/* the recipient's view under the editor (series mail-web-compose-preview) */
.preview { margin: .8rem 0; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.preview button.fold { display: block; width: 100%; text-align: left; cursor: pointer; padding: .4rem .7rem; background: #eef1f5; border: 0; border-radius: 4px; font: inherit; color: inherit; }
.preview button.fold:hover { background: #e3e8ee; }
/* open: a bar with Refresh and Close (series mail-web-preview-side fix) */
.preview .bar { display: flex; align-items: center; gap: .5rem; padding: .3rem .5rem .3rem .7rem; background: #eef1f5; border-radius: 4px; }
.preview .bar .title { flex: 1 1 auto; min-width: 0; }
.preview .bar button.link { font: inherit; font-size: .9em; background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: .25rem .6rem; color: var(--link, #2b6cb0); cursor: pointer; white-space: nowrap; }
.preview .bar button.link:hover { border-color: var(--link, #2b6cb0); }
.preview .rendered { padding: .4rem .9rem .9rem; }
.preview .rendered pre.body { background: none; border: 0; padding: 0; margin: .2rem 0; }
/* the marks as the recipient's reader shows them (compose-people fix-2) — in the Preview and, for a member-written message, on the reading page (mail-web-read-md) */
.md { margin: .2rem 0; font-family: system-ui, sans-serif; }
.md > :first-child { margin-top: 0; }
.md p { margin: 0 0 .8em; }
.md h1, .md h2, .md h3 { margin: .6em 0 .3em; line-height: 1.2; }
.md h1 { font-size: 1.5em; } .md h2 { font-size: 1.3em; } .md h3 { font-size: 1.1em; }
.md ul, .md ol { margin: 0 0 .8em; padding-left: 1.6em; }
.md pre { margin: 0 0 .8em; padding: .5em .7em; background: #f6f7f9; border: 1px solid var(--rule); border-radius: 4px; overflow-x: auto; font-size: .95em; }
.md code { font-size: .95em; background: #f6f7f9; padding: 0 .2em; border-radius: 3px; }
.md pre code { background: none; padding: 0; }
.md blockquote { margin: 0 0 .8em .5em; padding-left: .8em; border-left: 3px solid #bbb; color: #444; }
.md table { border-collapse: collapse; margin: 0 0 .8em; }
.md th, .md td { border: 1px solid #999; padding: .25em .6em; text-align: left; }
.md hr { border: 0; border-top: 1px solid var(--rule); margin: .8em 0; }
.preview figure.inline { margin: .4rem 0; }
.preview figure.inline img { display: block; max-width: 100%; height: auto; }
.preview figure.inline.sig img { max-height: 4rem; }
.preview figure.inline.sig.small img { max-height: 2.8rem; }
/* Preview beside the text on a wide screen (series mail-web-preview-side): the page widens while the Preview is open, the writing keeps its 40rem, the Preview takes the rest and stays in view as the column scrolls */
@media (min-width: 1100px) {
  main:has(> section.card.compose.side) { max-width: 78rem; width: 100%; }
  form.compose { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); column-gap: 1.5rem; align-items: start; }
  form.compose > * { grid-column: 1; }
  form.compose > section.preview { grid-column: 2; grid-row: 1 / span 6; margin: 0; position: sticky; top: .5rem; max-height: calc(100vh - 1rem); overflow: auto; }
  section.card.compose:not(.side) form.compose { display: block; }
}

/* the Sent card: the subject first (compose-preview fix-3) */
section.sent p.subject { font-weight: 600; margin: 0 0 .6rem; }

/* the fold at 100 KiB: the reader and the Preview (series mail-web-reader-fold) */
p.fold { margin: .6rem 0; padding: .4rem .7rem; border-left: 3px solid var(--rule); background: #f6f7f9; }

/* tags (series mail-web-tags): chips on rows and the message, the menu, the page */
.chip { display: inline-block; padding: 0 .5em; border-radius: 999px; font-size: .78em; line-height: 1.5; vertical-align: baseline; white-space: nowrap; border: 1px solid transparent; }
.chip.red    { background: #fde2e1; color: #8a1c13; border-color: #f3b9b5; }
.chip.orange { background: #ffe8cc; color: #8a4b00; border-color: #f5cc99; }
.chip.yellow { background: #fff4bf; color: #7a5a00; border-color: #efdd8a; }
.chip.green  { background: #d9f2df; color: #1d6b32; border-color: #a9dfb8; }
.chip.teal   { background: #d4f1ef; color: #0f5f5a; border-color: #9edcd7; }
.chip.blue   { background: #dbe8fb; color: #1d4e9a; border-color: #aac6f0; }
.chip.purple { background: #e9ddf7; color: #5b2a8c; border-color: #cdb2ea; }
.chip.gray   { background: #e9ecef; color: #3d4752; border-color: #cfd5db; }
.message p.chips { margin: -.4rem 0 .8rem; display: flex; flex-wrap: wrap; gap: .3rem; }
td.subj .chip { margin-left: .15rem; }
.dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-right: .5em; vertical-align: baseline; }
.dot.red { background: #d8463a; } .dot.orange { background: #e08a2b; } .dot.yellow { background: #d9b32a; } .dot.green { background: #3f9a5a; }
.dot.teal { background: #2d9a92; } .dot.blue { background: #3b73d1; } .dot.purple { background: #8451c0; } .dot.gray { background: #7b8692; }
details.menu.tagmenu > ul { min-width: 12rem; }
details.menu.tagmenu > ul button.link.on { font-weight: 600; }
details.menu.tagmenu > ul .check { float: right; color: #3f9a5a; }
details.menu.tagmenu > ul li.none { padding: .45rem .9rem; }
details.menu.tagmenu > ul li.manage { border-top: 1px solid var(--rule); margin-top: .3rem; padding-top: .3rem; }
section.tags h2 { font-size: 1rem; margin: 1rem 0 .5rem; }
/* the tags table (tags fix-2, fixes fix-3): chip · in the subject line · addresses · delete */
section.tags table.taglist { border-collapse: collapse; margin: 0 0 .75rem; max-width: 40rem; }
section.tags table.taglist th { font-weight: 600; font-size: .85rem; color: #5b6470; text-align: left; padding: .25rem .75rem .25rem 0; }
section.tags table.taglist td { padding: .3rem .75rem .3rem 0; vertical-align: top; }
section.tags table.taglist td:nth-child(2) { text-align: center; }
section.tags table.taglist form { margin: 0; }
section.tags table.taglist form.addresses { display: flex; align-items: flex-start; gap: .4rem; min-width: 25rem; }
section.tags table.taglist textarea, section.tags form.tag textarea { font: inherit; width: 100%; max-width: 20rem; min-width: 10rem; padding: .3rem .45rem; margin: 0; border: 1px solid var(--rule); border-radius: 4px; resize: vertical; }
section.tags table.taglist form.addresses textarea { flex: 1 1 20rem; width: auto; min-width: 0; }
section.tags table.taglist form.addresses button { padding: .3rem .6rem; }
section.tags form.tag .row.hint { margin: -.25rem 0 .6rem; }
section.tags table.taglist td.how { max-width: 28rem; }
section.tags table.taglist td.how code { word-break: break-all; }
section.groups table.grouplist td:first-child { white-space: nowrap; }
section.tags button.drop { font: inherit; line-height: 1; padding: 0 .45rem; background: none; border: 1px solid var(--rule); border-radius: 4px; color: inherit; cursor: pointer; }
section.tags button.drop:hover { border-color: #c0392b; color: #c0392b; }
section.tags form.show { display: flex; align-items: center; gap: .75rem; margin: 0 0 1.25rem; }
section.tags form.tag .row { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: .5rem; margin: 0 0 .45rem; max-width: 40rem; }
section.tags form.tag input#name { font: inherit; width: 100%; max-width: 20rem; padding: .35rem .5rem; margin: 0; border: 1px solid var(--rule); border-radius: 4px; }
.swatches { display: flex; gap: .4rem; }
.swatch { position: relative; width: 1.6rem; height: 1.6rem; border-radius: 50%; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2px solid transparent; box-sizing: border-box; }
.swatch input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }
.swatch.red span { background: #d8463a; } .swatch.orange span { background: #e08a2b; } .swatch.yellow span { background: #d9b32a; } .swatch.green span { background: #3f9a5a; }
.swatch.teal span { background: #2d9a92; } .swatch.blue span { background: #3b73d1; } .swatch.purple span { background: #8451c0; } .swatch.gray span { background: #7b8692; }
section.filters form.filter .row.or { margin: -.2rem 0 .25rem; font-size: .85em; }
/* the folder's row color (series mail-web-folder-color): the box and swatches under the conditions, the swatch beside a folder's name, the whole row painted — and striped like the rest of the list: even rows the color, odd rows a lighter tint of it */
section.filters form.filter .paintrow { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
section.filters form.filter .paintrow label { display: flex; align-items: center; gap: .4rem; }
section.filters form.filter .paintrow label.prio { font-size: .9em; color: #5b6470; }
section.filters form.filter .paintrow input[type=number] { font: inherit; width: 3.5rem; padding: .2rem .3rem; margin: 0; border: 1px solid var(--rule); border-radius: 4px; }
section.filters form.filter .row.hint { margin-top: -.25rem; font-size: .9em; }
.swatch.small { display: inline-block; width: .85rem; height: .85rem; vertical-align: -.1rem; cursor: default; }
table.list tbody tr.paint-red td { background: #fde2e1; }
table.list tbody tr.paint-red:nth-child(odd) td { background: #fef0f0; }
table.list tbody tr.paint-orange td { background: #ffe8cc; }
table.list tbody tr.paint-orange:nth-child(odd) td { background: #fff3e5; }
table.list tbody tr.paint-yellow td { background: #fff4bf; }
table.list tbody tr.paint-yellow:nth-child(odd) td { background: #fff9df; }
table.list tbody tr.paint-green td { background: #d9f2df; }
table.list tbody tr.paint-green:nth-child(odd) td { background: #ecf8ef; }
table.list tbody tr.paint-teal td { background: #d4f1ef; }
table.list tbody tr.paint-teal:nth-child(odd) td { background: #e9f8f7; }
table.list tbody tr.paint-blue td { background: #dbe8fb; }
table.list tbody tr.paint-blue:nth-child(odd) td { background: #edf3fd; }
table.list tbody tr.paint-purple td { background: #e9ddf7; }
table.list tbody tr.paint-purple:nth-child(odd) td { background: #f4eefb; }
table.list tbody tr.paint-gray td { background: #e9ecef; }
table.list tbody tr.paint-gray:nth-child(odd) td { background: #f4f5f7; }
/* the tag and group picks are boxes, one tick each (series mail-web-groups fix-2): unticking is one click */
.picks { display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: center; }
.picks label.pick { display: inline-flex; align-items: center; gap: .3rem; margin: 0; white-space: nowrap; }
.picks label.pick input { margin: 0; }
.picks .dot { margin-right: 0; }

/* the pick disc and the action bar (series mail-web-select): the disc
   is a checkbox's label — initials on the party's own color; checked,
   a filled disc with a checkmark and a tinted row. The bar is the
   header row's twin: hidden until a pick is checked, then it takes the
   header's place. No script anywhere. */
/* the disc is the text line's height (fix-1): the row stays as tall as
   it was without it */
table.list td.pick, table.list th.pick { padding: .4rem .15rem .4rem .35rem; vertical-align: top; line-height: 1; }
label.avatar { position: relative; margin: 0; display: flex; align-items: center; justify-content: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; font-size: .62rem; font-weight: 600; letter-spacing: .02em; color: #fff; cursor: pointer; user-select: none; vertical-align: top; }
label.avatar input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
label.avatar .chk { display: none; font-size: .85rem; }
label.avatar:has(input:checked) { background: var(--accent) !important; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
label.avatar:has(input:checked) .ini { display: none; }
label.avatar:has(input:checked) .chk { display: inline; }
label.avatar:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
label.avatar.hue-0 { background: #2f6fb3; } label.avatar.hue-1 { background: #3a8f5a; } label.avatar.hue-2 { background: #b4532b; } label.avatar.hue-3 { background: #7a4fb0; }
label.avatar.hue-4 { background: #1f8a8a; } label.avatar.hue-5 { background: #b0356f; } label.avatar.hue-6 { background: #8a7a1f; } label.avatar.hue-7 { background: #4b5563; }
table.list tbody tr:has(input.pick:checked) td { background: #e3edfb !important; }
table.list tr.actions { display: none; }
table.list tr.actions td { padding: .3rem .4rem; border-bottom: 1px solid var(--rule); }
table.list tr.actions .bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
table.list tr.actions button { padding: .25rem .6rem; font-size: .85rem; }
table.list tr.actions button.quiet { background: transparent; color: inherit; border: 1px solid var(--rule); }
table.list tr.actions label.all { font-size: .85rem; display: inline-flex; align-items: center; gap: .3rem; margin-right: .3rem; }
table.list tr.actions .tagpick { display: inline-flex; gap: .3rem; align-items: center; }
table.list tr.actions select { padding: .2rem .3rem; font-size: .85rem; max-width: 10rem; }
form.bulk:has(input.pick:checked) tr.actions { display: table-row; }
form.bulk:has(input.pick:checked) tr.heads { display: none; }
/* the mailbox meter's sentence over the list (series mail-web-quota):
   right-aligned on every width; the look is the level's class from
   texts/quota.json */
.card.inbox p.quota, .help .demo p.quota { text-align: right; margin: 0 0 .5rem; padding: .35rem .6rem; border-radius: 4px; font-size: .9rem; }
.card.inbox p.quota.notice, .help .demo p.quota.notice { background: #eef3f9; color: #2b4a6f; }
.card.inbox p.quota.warn, .help .demo p.quota.warn { background: #fff3d6; color: #7a4a00; }
.card.inbox p.quota.full, .help .demo p.quota.full { background: #fde2e1; color: var(--warn); font-weight: 600; }
.card.inbox p.quota a, .help .demo p.quota a { color: inherit; font-weight: 600; }
a.button.quiet { background: #fff; color: var(--ink); border-color: var(--rule); }
/* Plans (series mail-web-plans-screens): what the plan service says,
   top to bottom: the member's plan, the team's seats, what it allows,
   the plans with their terms, the ways to pay, the payments. Nothing
   floats and nothing lies over the page (tread); every width is said
   outright. One column on a phone: a term is then a block of its own
   with its button under it. */
.card.plans { max-width: none; }
.card.plans h2 { font-size: 1.1rem; margin: 1.6rem 0 .5rem; padding-top: .8rem; border-top: 1px solid var(--rule); }
.card.plans h2[id] { scroll-margin-top: .75rem; }
.card.plans h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.card.plans p.notice, .card.sales p.notice { background: #eef6f0; border: 1px solid #bfe0c9; border-radius: 8px; padding: .6rem .9rem; }
.card.plans p.warn, .card.sales p.warn { background: #fff4f4; border: 1px solid #e3b5b5; color: var(--warn); border-radius: 8px; padding: .6rem .9rem; }
.card.plans p.waiting { background: #fff3d6; border: 1px solid #e6cf94; border-radius: 8px; padding: .6rem .9rem; }
.card.plans p.plan { font-size: 1.15rem; margin: 0 0 .3rem; }
.card.plans ul.facts { display: block; margin: 0 0 .8rem; padding-left: 1.1rem; }
.card.plans form.choose { margin: 0 0 .4rem; }
.card.plans button.quiet { background: #fff; color: var(--ink); border: 1px solid var(--rule); padding: .3rem .7rem; cursor: pointer; }
.card.plans button.quiet:hover { border-color: #9fb3cc; }
.card.plans .state { display: inline-block; font-size: .72rem; font-weight: 600; line-height: 1.4; padding: .1rem .5rem; border-radius: 999px; background: #e3e6ea; color: #3b4652; vertical-align: middle; }
.card.plans .state.ok { background: #dff1e4; color: #1f6a40; }
.card.plans .state.held { background: #fff3d6; color: #7a4a00; }
.card.plans .state.fail { background: #fde2e1; color: var(--warn); }
.card.plans .state.info { background: #e9f1fa; color: #2b4a6f; }
.card.plans ul.seats { list-style: none; margin: 0 0 .6rem; padding: 0; }
.card.plans ul.seats li { padding: .5rem 0; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.card.plans ul.seats form.act { display: inline-block; margin: 0 0 0 .5rem; }
.card.plans form.seat { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: flex-end; margin: .6rem 0; }
.card.plans form.seat label { flex: 1 1 14rem; margin: 0; }
.card.plans form.seat label input { margin: .25rem 0 0; max-width: none; }
.card.plans table { border-collapse: collapse; width: 100%; margin: 0 0 .8rem; }
.card.plans td, .card.plans th { text-align: left; padding: .4rem .8rem .4rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.card.plans th { font-size: .85rem; font-weight: 400; color: #5b6470; }
.card.plans tr.back td { color: #5b6470; }
.card.plans .rung { border: 1px solid var(--rule); border-radius: 10px; padding: 1rem 1.1rem; margin: 0 0 1rem; background: #fff; }
.card.plans .rung.mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.card.plans .rung > p { margin: 0 0 .5rem; }
.card.plans .tagline { margin: 0 0 .4rem; font-size: .9rem; color: #5b6470; }
.card.plans .with { margin: 0 0 .3rem; font-size: .9rem; font-weight: 600; }
.card.plans ul.features { margin: 0 0 .7rem; padding-left: 1.1rem; font-size: .9rem; line-height: 1.45; }
.card.plans td.take form.choose { margin: 0 0 .3rem; }
.card.plans input.size { display: inline-block; width: 4rem; margin: 0 .4rem 0 0; }
.card.plans .narrow { display: none; }
.card.plans p.sales { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; background: #f3f5f8; border-radius: 8px; padding: .6rem .9rem; }
.card.plans ul.ways { margin: 0 0 .8rem; padding-left: 1.1rem; }
.card.plans .mark { display: inline-block; font-size: .75rem; line-height: 1.5; border: 1px solid var(--rule); border-radius: 4px; padding: 0 .35rem; margin-left: .3rem; color: #3b4652; background: #fff; }
.card.plans .back { margin: 1.2rem 0 0; }
/* The plans' words alone, when the plan service says nothing: a card a
   plan, side by side where there is room. */
.card .tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.card .tiers .tier { border: 1px solid var(--rule); border-radius: 10px; padding: 1rem 1.1rem; background: #fff; }
@media (max-width: 60rem) { .card .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .card .tiers { grid-template-columns: 1fr; } }
@media (max-width: 40rem) {
  .card.plans table.terms, .card.plans table.terms tbody, .card.plans table.terms tr, .card.plans table.terms td { display: block; }
  .card.plans table.terms tr.head { display: none; }
  .card.plans table.terms tr { padding: .5rem 0; border-bottom: 1px solid var(--rule); }
  .card.plans table.terms td { border: 0; padding: .1rem 0; }
  .card.plans table.terms td.months { font-weight: 600; }
  .card.plans .narrow { display: inline; }
  .card.plans ul.seats form.act { display: block; margin: .4rem 0 0; }
}
/* the storage meter on Settings and Plans (mail-web-upgrade fix-1) */
.card .storage { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 8px; background: #f3f5f8; }
.card .storage.near { background: #fff3d6; }
.card .storage.full { background: #fde2e1; }
.card .storage p { margin: 0 0 .45rem; }
.card .storage .bar { height: .55rem; background: #dfe4ea; border-radius: .3rem; overflow: hidden; }
.card .storage .fill { height: 100%; background: var(--accent); border-radius: .3rem; }
.card .storage.near .fill { background: #c97a00; }
.card .storage.full .fill { background: var(--warn); }
/* Settings: the rows field, a short text box (mail-web-upgrade fix-2; a text box since mail-web-settings-tread: tread lays out no number box) */
section.card .rows { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .75rem; }
section.card .rows input { font: inherit; width: 5.5rem; margin: 0; padding: .5rem; border: 1px solid var(--rule); border-radius: 4px; box-sizing: border-box; }
/* Settings: a choice a button (series mail-web-settings-tread), where a drop-down list was: tread draws none. The buttons wrap in the flow of the page; the choice in force is a filled label, not a button. */
section.card h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
section.card .choices { display: flex; flex-wrap: wrap; gap: .4rem .5rem; align-items: center; margin: 0 0 .6rem; }
section.card .choices form.pick { margin: 0; }
section.card .choices button.quiet { font: inherit; background: #fff; color: var(--ink); border: 1px solid var(--rule); border-radius: 6px; padding: .35rem .7rem; cursor: pointer; }
section.card .choices button.quiet:hover { border-color: #9fb3cc; }
section.card .choices .chosen { display: inline-block; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 6px; padding: .35rem .7rem; font-weight: 600; }

/* Help (series mail-web-help): a wireframe beside its words; one column on a phone */
.help h2 { font-size: 1.05rem; margin: 1.6rem 0 .5rem; padding-top: .8rem; border-top: 1px solid var(--rule); }
.help h3 { font-size: .95rem; margin: 1.1rem 0 .4rem; }
.help h2 + p { margin: 0 0 .6rem; }
.help .topic { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: .5rem 1.5rem; align-items: start; }
.help .topic svg { width: 100%; height: auto; display: block; border-radius: 6px; }
.help .topic p { margin: 0 0 .6rem; }
@media (max-width: 720px) { .help .topic { grid-template-columns: 1fr; } }
/* Help's Storage topic shows the real meter and the real notices, not
   a drawing of them (series mail-web-storage-total fix-1): words inside
   an SVG are not drawn by every browser, and the real parts cannot
   drift from the screens. */
.help .demo { border: 1px solid var(--rule); border-radius: 6px; padding: .7rem .8rem; background: var(--paper); font-size: .85rem; }
.help .demo .cap { color: #5b6470; font-size: .78rem; margin: .7rem 0 .25rem; }
.help .demo .cap:first-child { margin-top: 0; }
.help .demo .storage { margin: 0; }
.help .demo .storage .fill { width: 73%; }
.help .demo p.quota { text-align: left; margin: 0; font-size: 1em; }
/* The request to Sales (series mail-web-plans-screens): one column of
   fields, the box for the words as wide as the card allows. */
.card.sales textarea { font: inherit; display: block; box-sizing: border-box; width: 100%; max-width: 32rem; padding: .5rem; border: 1px solid var(--rule); border-radius: 4px; margin-bottom: .75rem; }
.card.sales input.size { max-width: 6rem; }
.card.sales .act { margin: .8rem 0 0; }
.card.sales .back { margin: 1.2rem 0 0; }
.card.sales h1 { margin-top: 0; }
