/* Spamasubi. Yellow ground, rice surfaces, nori ink. Pink marks caught email and nothing else. */
:root {
  color-scheme: light;
  --yellow: #f8dd65;
  --pink: #ee91aa;
  --pink-light: #fce0e7;
  --pink-ink: #8e3252;
  --nori: #203d32;
  --nori-hover: #2f5244;
  --green: #55715e;
  --rice: #fffdf4;
  --muted: #4f5f53;
  /* Greyed-out text that still reads at 4.5:1 on rice. */
  --faint: #6b766d;
  --line: rgba(32, 61, 50, .13);
  --shadow: 0 1px 1px rgba(32, 61, 50, .06), 0 22px 44px -26px rgba(32, 61, 50, .55);
  --shell: 1120px;
  font-family: "Avenir Next", Avenir, "Trebuchet MS", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--nori);
  background: var(--yellow);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body[data-view="app"] { --shell: 760px; }
body[data-view="guide"] { --shell: 820px; }
main { flex: 1 0 auto; padding-bottom: 64px; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--nori); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { width: min(var(--shell), 100% - 48px); margin-inline: auto; }

/* Header and footer */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.wordmark img { width: 40px; height: 40px; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 26px 0 34px; border-top: 1px solid rgba(32, 61, 50, .16); font-size: 14px; color: var(--muted); }
.site-footer a { font-weight: 600; color: var(--nori); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
/* The page menu: plain links, the current page picked out with a soft fill. */
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.site-nav a:hover { background: rgba(32, 61, 50, .07); color: var(--nori); }
.site-nav a[aria-current="page"] { background: rgba(32, 61, 50, .1); color: var(--nori); }
.loading { padding: 80px 0; color: var(--muted); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border: 0; border-radius: 12px; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button.primary { background: var(--nori); color: var(--rice); }
.button.primary:hover:not(:disabled) { background: var(--nori-hover); }
.button.outline { background: transparent; color: var(--nori); box-shadow: inset 0 0 0 1.5px rgba(32, 61, 50, .5); }
.button.outline:hover:not(:disabled) { background: rgba(32, 61, 50, .05); box-shadow: inset 0 0 0 1.5px var(--nori); }
.button.link { min-height: 0; padding: 6px 2px; background: none; color: var(--nori); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.button.link:hover:not(:disabled) { text-decoration-thickness: 2.5px; }
.button.small { min-height: 38px; padding: 8px 14px; border-radius: 10px; font-size: 14px; }
.google svg { flex: none; box-sizing: content-box; padding: 4px; border-radius: 50%; background: #fff; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.hint { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Label chips look like Gmail labels. Pink is the caught label. */
.chip { display: inline-block; flex: none; padding: 1px 8px; border-radius: 6px; background: var(--pink); color: var(--nori); font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap; vertical-align: 1px; }
.chip.plain { background: var(--rice); box-shadow: inset 0 0 0 1px rgba(32, 61, 50, .28); }
.chip.warning { background: var(--pink-light); color: var(--pink-ink); }

.panel { background: var(--rice); border-radius: 20px; box-shadow: var(--shadow); }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 14px 16px 14px 20px; border-radius: 14px; background: var(--pink-light); font-size: 15px; line-height: 1.5; }
.banner:first-child { margin-top: 4px; }

/* Welcome */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: clamp(40px, 6vw, 88px); padding: clamp(20px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); }
.hero h1 { max-width: 9.5em; font-size: clamp(46px, 6.1vw, 80px); font-weight: 850; line-height: .96; letter-spacing: -.045em; text-wrap: balance; }
.lead { max-width: 30em; margin-top: 24px; font-size: 19px; line-height: 1.55; }
.connect { margin-top: 36px; }
.connect .hint { margin-top: 14px; }

.setup { margin-top: 36px; padding: 24px 26px 26px; }
.setup h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.setup > p { margin-top: 6px; font-size: 15px; line-height: 1.55; }
.setup .hint { margin: 0 0 18px; }
.checklist { display: grid; gap: 8px; margin: 18px 0 14px; padding: 0; list-style: none; }
.checklist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(32, 61, 50, .05); font-size: 15px; }
.checklist small { display: block; overflow-wrap: anywhere; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--muted); }
.checklist .mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(32, 61, 50, .3); }
.checklist .done .mark { background: var(--green); box-shadow: none; }
.checklist .done .mark::after { content: ""; width: 5px; height: 10px; margin-top: -2px; border: solid var(--rice); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.checklist .state { font-size: 13px; font-weight: 700; color: var(--pink-ink); }
.checklist .done .state { color: var(--green); }

.example { position: relative; margin: 0; padding-top: 64px; }
.perched { position: absolute; z-index: 2; top: 0; right: 28px; width: 128px; height: 128px; transform: rotate(8deg); pointer-events: none; }
.inbox { overflow: hidden; border-radius: 18px; background: var(--rice); box-shadow: var(--shadow); }
.inbox-bar { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--nori); color: var(--rice); font-size: 14px; font-weight: 700; }
.tag { padding: 1px 9px; border-radius: 999px; background: rgba(255, 253, 244, .16); font-size: 12px; font-weight: 600; }
.rows { margin: 0; padding: 4px 0; list-style: none; }
.row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 20px; font-size: 14px; }
.row + .row { border-top: 1px solid var(--line); }
.row .from { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.row .content { display: flex; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; }
.row .chip { margin-right: 8px; overflow: hidden; }
.row .subject { flex: 0 1 auto; min-width: 0; overflow: hidden; font-weight: 700; text-overflow: ellipsis; }
.row .snippet { flex: 1 1 0; min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; }
.row .snippet::before { content: "\00a0– "; }
.row .time { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.row.caught .from, .row.caught .subject { font-weight: 500; color: var(--muted); }

/* Below the hero: two roomy sections, each a big heading and a short line, then pictures with a little text. */
.landing-section { padding-top: clamp(72px, 10vw, 136px); }
.how-section { padding-top: clamp(24px, 4vw, 48px); }
.section-intro { max-width: 34rem; }
.section-intro h2 { font-size: clamp(34px, 4.2vw, 52px); font-weight: 850; line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.section-intro p { margin-top: 14px; font-size: 19px; line-height: 1.5; color: var(--muted); }

.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; margin: 48px 0 0; padding: 0; list-style: none; }
.how-art { aspect-ratio: 280 / 190; border-radius: 20px; background: var(--rice); box-shadow: var(--shadow); }
.how-art svg { display: block; width: 100%; height: 100%; }
.how-steps h3 { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -.015em; text-wrap: balance; }
.step-number { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--nori); color: var(--rice); font-size: 12px; font-weight: 800; line-height: 1; }
/* Three across until the pictures get cramped, then one under the other at a readable width. */
@media (max-width: 860px) {
  /* Shorter pictures, so all three steps fit on one phone screen. */
  .how-steps { grid-template-columns: minmax(0, 1fr); max-width: 30rem; gap: 28px; margin-top: 28px; }
  .how-art { aspect-ratio: auto; height: 150px; }
  .how-steps h3 { margin-bottom: 12px; }
}

/* The example card sits beside the points on wide screens, and between the heading and the points on narrow ones. */
.privacy-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); grid-template-areas: "intro sent" "points sent"; column-gap: clamp(40px, 7vw, 96px); }
.privacy-section .section-intro { grid-area: intro; }
.privacy-section .points { grid-area: points; }
.privacy-section .sent { grid-area: sent; align-self: center; }
.points { display: grid; gap: 28px; margin: 44px 0 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 18px; }
.point-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--rice); color: var(--nori); box-shadow: 0 1px 1px rgba(32, 61, 50, .06), 0 10px 20px -12px rgba(32, 61, 50, .5); }
.point-icon svg { width: 21px; height: 21px; }
.points h3 { padding-top: 1px; font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.points p { margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.points a { font-weight: 600; color: var(--nori); }

.sent { position: relative; margin: 0; padding-top: 52px; }
.sent .perched { right: 22px; width: 104px; height: 104px; transform: rotate(-7deg); }
.sent-card { overflow: hidden; border-radius: 18px; background: var(--rice); box-shadow: var(--shadow); }
.sent .inbox-bar svg { width: 16px; height: 16px; }
.sent dl { margin: 0; padding: 10px 22px 0; }
.sent dl div { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.sent dt { font-weight: 700; color: var(--muted); }
.sent dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.sent-body { padding: 16px 22px 0; font-size: 15px; line-height: 1.8; }
/* Swapped-out details read like redactions. */
.sent mark { padding: 2px 7px; border-radius: 6px; background: var(--nori); color: var(--rice); font-size: 13px; font-weight: 600; white-space: nowrap; }
.sent-cut { margin: 18px 22px 0; padding: 12px 0 18px; border-top: 1.5px dashed rgba(32, 61, 50, .22); font-size: 13px; color: var(--muted); }
.sent figcaption { max-width: 30rem; margin-top: 18px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Dashboard */
.status { margin-top: 20px; padding: 26px 28px; }
.status-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 20px; }
.status-mascot { position: relative; width: 72px; height: 72px; }
.status-mascot img { width: 72px; height: 72px; filter: grayscale(1); opacity: .5; transform: rotate(-8deg); transition: filter .3s ease, opacity .3s ease; }
.status-mascot.on img { filter: none; opacity: 1; }
.status-mascot::after { content: ""; position: absolute; right: 4px; bottom: 8px; width: 14px; height: 14px; border-radius: 50%; background: #9aa396; box-shadow: 0 0 0 3px var(--rice); }
.status-mascot.on::after { background: #3f8f57; }
.status-account { margin-bottom: 4px; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; color: var(--muted); }
.status-actions { display: flex; gap: 10px; }
.status-title { font-size: clamp(26px, 4vw, 32px); font-weight: 850; line-height: 1.1; letter-spacing: -.035em; }
.status-detail { max-width: 34em; margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--muted); }

.switch { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-top: 22px; padding: 20px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch-text strong { display: block; font-size: 16px; transition: color .2s ease; }
.switch-text > span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.65; color: var(--muted); transition: color .2s ease; }
.switch-text .chip { transition: background-color .2s ease, color .2s ease; }
/* Off: the text greys out as the switch slides, before the page hears back. */
.switch:has(input:not(:checked)) .switch-text strong { color: var(--muted); }
.switch:has(input:not(:checked)) .switch-text > span { color: var(--faint); }
.switch:has(input:not(:checked)) .switch-text .chip { background: rgba(32, 61, 50, .1); color: var(--muted); }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.track { position: relative; width: 50px; height: 30px; border-radius: 999px; background: #cfd3c4; transition: background-color .2s ease; }
.track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .22); transition: transform .2s cubic-bezier(.3, 1.3, .5, 1); }
.switch input:checked + .track { background: var(--nori); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid var(--nori); outline-offset: 3px; }
.switch input:disabled + .track { opacity: .5; }
/* In Settings the switch comes first, set off from the fields below by a line. */
#settings-form .switch { margin-top: 0; padding: 8px 0 20px; border-top: 0; border-bottom: 1px solid var(--line); }

.recent { margin-top: 44px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 14px; }
.section-head h2 { font-size: 24px; font-weight: 850; letter-spacing: -.03em; }
.section-head .hint { margin-top: 2px; }
.last-check { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
/* The period picker and Check now read as one control. */
.check-control { display: inline-flex; align-items: stretch; border-radius: 10px; box-shadow: inset 0 0 0 1.5px rgba(32, 61, 50, .5); }
.check-control select { min-height: 38px; padding: 0 30px 0 14px; border: 0; border-radius: 10px 0 0 10px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23203d32' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center / 10px 6px; font: inherit; font-size: 14px; font-weight: 600; color: var(--nori); cursor: pointer; appearance: none; -webkit-appearance: none; }
.check-control select:hover:not(:disabled) { background-color: rgba(32, 61, 50, .05); }
.check-control select:disabled { cursor: not-allowed; opacity: .45; }
/* Chrome keeps a focus ring on a dropdown after a mouse pick; show it only to keyboard users, inside the control. */
.check-control select:focus-visible { outline: 2px solid var(--nori); outline-offset: -4px; }
:root:not([data-keyboard]) .check-control select:focus-visible { outline: none; }
.check-control .button { border-radius: 0 10px 10px 0; }
.list { position: relative; overflow: hidden; }
/* Check now's progress: a thin bar along the top of the list. */
/* Kept between the panel's rounded corners, with rounded ends of its own, so nothing gets clipped. */
.progress { position: absolute; z-index: 1; top: 0; right: 22px; left: 22px; height: 3px; overflow: hidden; border-radius: 0 0 3px 3px; background: rgba(32, 61, 50, .1); opacity: 0; pointer-events: none; transition: opacity .5s ease .6s; }
.progress.on { opacity: 1; transition-delay: 0s; }
.progress span { display: block; height: 100%; background: var(--nori); transform: scaleX(0); transform-origin: left center; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.last-check .checking { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--nori); }
[data-block="status-action"]:empty { display: none; }
.entries { margin: 0; padding: 0; list-style: none; }
.entry { display: flex; align-items: center; gap: 16px; padding: 14px 22px; }
.entry + .entry { border-top: 1px solid var(--line); }
.entry-main { flex: 1; min-width: 0; }
.entry-top { display: flex; align-items: baseline; gap: 12px; }
.entry .from { min-width: 0; overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.entry .time { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.entry-subject { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 3px; font-size: 14px; }
.entry-subject .subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-subject a.subject { text-decoration: none; }
.entry-subject a.subject:hover { text-decoration: underline; }
.entry-preview { display: -webkit-box; margin-top: 3px; overflow: hidden; font-size: 13px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.entry.undone .from { font-weight: 600; color: var(--muted); }
.entry.undone .subject { color: var(--muted); }
.entry.pending { background: var(--pink-light); }
.entry-note { flex: none; font-size: 13px; font-weight: 700; color: var(--green); }
.entry-side { display: flex; flex: none; align-items: center; gap: 12px; }
.entry-side .button.link { padding: 4px 2px; font-size: 13px; }
.empty { display: flex; align-items: center; gap: 18px; padding: 20px 24px; }
.empty img { flex: none; width: 72px; height: 72px; }
.empty p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.empty strong { display: block; font-size: 16px; color: var(--nori); }

.fixes { margin-top: 44px; }
.fixes h2 { font-size: 20px; font-weight: 850; letter-spacing: -.02em; }
.fixes .hint { margin-top: 4px; }
.fixes ul { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.fixes li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.65; }
.fixes li::before { content: ""; position: absolute; top: .62em; left: 0; width: 8px; height: 8px; border-radius: 2px; background: var(--nori); }

/* Toast and settings dialog */
.notice { position: fixed; z-index: 10; bottom: 24px; left: 50%; width: max-content; max-width: min(520px, 100% - 32px); padding: 14px 20px; border-radius: 14px; background: var(--nori); color: var(--rice); font-size: 15px; line-height: 1.45; box-shadow: 0 14px 36px -12px rgba(16, 40, 30, .55); transform: translateX(-50%); }
dialog { width: min(560px, 100% - 32px); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 22px; background: var(--rice); color: var(--nori); box-shadow: 0 0 0 1px rgba(32, 61, 50, .08), 0 30px 80px -24px rgba(16, 40, 30, .55); }
dialog::backdrop { background: rgba(255, 253, 244, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
/* The panel doesn't scroll as a whole: the title and buttons stay put and the fields scroll between them. */
dialog { overflow: hidden; }
dialog[open] { display: flex; flex-direction: column; }
#settings-form { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 28px 12px; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.dialog-body { flex: 1 1 auto; min-height: 0; padding: 0 14px 24px 28px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
#settings-form.scrolled .dialog-head { border-bottom-color: var(--line); }
#settings-form.more .dialog-actions { border-top-color: var(--line); }
/* A slim scrollbar with no track, clear of the rounded corners. */
.dialog-body::-webkit-scrollbar { width: 14px; }
.dialog-body::-webkit-scrollbar-track { background: transparent; }
.dialog-body::-webkit-scrollbar-thumb { border: 4px solid transparent; border-radius: 999px; background: rgba(32, 61, 50, .2) padding-box; }
.dialog-body::-webkit-scrollbar-thumb:hover { background-color: rgba(32, 61, 50, .36); }
@supports not selector(::-webkit-scrollbar) {
  .dialog-body { scrollbar-width: thin; scrollbar-color: rgba(32, 61, 50, .3) transparent; }
}
.dialog-head h2 { font-size: 24px; font-weight: 850; letter-spacing: -.03em; }
.icon-button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; font-size: 26px; line-height: 1; cursor: pointer; }
.icon-button:hover { background: rgba(32, 61, 50, .07); }
.field { display: block; margin-top: 20px; }
.field > span { display: block; font-size: 14px; font-weight: 700; }
/* A ? after a field title explains it in a small tooltip, on hover or focus. */
.field > .field-title { position: relative; display: flex; align-items: center; gap: 7px; }
.help { display: inline-flex; }
.help-button { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: rgba(32, 61, 50, .12); color: var(--nori); font-size: 11px; font-weight: 800; line-height: 1; cursor: help; transition: background-color .15s ease; }
.help-button:hover, .help-button:focus-visible { background: rgba(32, 61, 50, .22); }
.help-button:focus-visible { outline-width: 2px; outline-offset: 2px; }
.help-tip { position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; width: max-content; max-width: min(340px, 100%); padding: 9px 12px; border-radius: 10px; background: var(--nori); color: var(--rice); font-size: 13px; font-weight: 500; line-height: 1.45; box-shadow: 0 12px 28px -12px rgba(16, 40, 30, .6); opacity: 0; visibility: hidden; transform: translateY(-3px); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; }
.help:hover .help-tip, .help-button:focus + .help-tip { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.field input, .field textarea { display: block; width: 100%; margin-top: 8px; padding: 11px 13px; border: 1.5px solid rgba(32, 61, 50, .3); border-radius: 10px; background: #fff; font-size: 15px; line-height: 1.55; }
.field input:focus, .field textarea:focus { border-color: var(--nori); outline: none; box-shadow: 0 0 0 3px rgba(32, 61, 50, .15); }
.field textarea { min-height: 150px; resize: vertical; }
.field small { display: block; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.hidden-names, .label-names { margin: 18px 0 0; padding: 0; border: 0; border-top: 1px solid var(--line); }
.hidden-names legend, .label-names legend { float: left; width: 100%; padding: 16px 0 0; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.hidden-names > small, .label-names > small { display: block; clear: both; padding-top: 2px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.hidden-names .field, .label-names .field { margin-top: 14px; }
.form-error { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--pink-ink); }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 18px; padding: 14px 28px 18px; border-top: 1px solid transparent; transition: border-color .2s ease; }
.dialog-actions .form-error { flex-basis: 100%; margin: 0; }
.dialog-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--muted); }

/* Privacy page: one readable column. */
.legal { max-width: 44rem; padding-top: clamp(16px, 3vw, 40px); }
.legal h1 { font-size: clamp(40px, 5vw, 60px); font-weight: 850; line-height: 1; letter-spacing: -.04em; }
.legal .updated { margin-top: 12px; font-size: 14px; color: var(--muted); }
.legal .summary { margin-top: 28px; font-size: 19px; line-height: 1.55; }
.legal h2 { margin-top: 48px; font-size: 22px; font-weight: 850; letter-spacing: -.02em; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal a { font-weight: 600; }

/* Setup guide */
.guide-intro { padding: clamp(16px, 3vw, 40px) 0 8px; }
.guide-intro h1 { font-size: clamp(38px, 5vw, 58px); font-weight: 850; line-height: 1; letter-spacing: -.04em; }
.guide-intro p { max-width: 34em; margin-top: 18px; font-size: 18px; line-height: 1.55; }
.steps { margin: 36px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { position: relative; padding: 24px 0 24px 56px; border-top: 1.5px solid rgba(32, 61, 50, .2); counter-increment: step; }
.steps > li::before { content: counter(step); position: absolute; top: 22px; left: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--nori); color: var(--rice); font-size: 15px; font-weight: 800; }
.steps h2 { font-size: 19px; font-weight: 800; letter-spacing: -.015em; }
.steps p { max-width: 38em; margin-top: 6px; font-size: 15px; line-height: 1.65; }
.steps a { font-weight: 600; }
.code { display: flex; align-items: center; gap: 12px; max-width: 38rem; margin-top: 12px; padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--rice); box-shadow: var(--shadow); }
.code code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; line-height: 1.5; }
.code .button { flex: none; }
.good-to-know { margin-top: 20px; padding: 24px 26px; }
.good-to-know h2 { font-size: 19px; font-weight: 800; }
.good-to-know ul { display: grid; gap: 10px; margin: 12px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.6; }

@media (prefers-reduced-motion: no-preference) {
  /* The one orchestrated moment: the example inbox gets its labels. */
  .inbox.play .row.caught .chip { animation: label-in .55s cubic-bezier(.3, 1.45, .5, 1) backwards; }
  .inbox.play .row.caught .from, .inbox.play .row.caught .subject { animation: settle .45s ease backwards; }
  .inbox.play .row.caught.delay-1 :is(.chip, .from, .subject) { animation-delay: .9s; }
  .inbox.play .row.caught.delay-2 :is(.chip, .from, .subject) { animation-delay: 1.35s; }
  .inbox.play .row.caught.delay-3 :is(.chip, .from, .subject) { animation-delay: 1.8s; }
  .notice:not([hidden]) { animation: rise .25s ease-out; }
  /* A caught email slides into the list, its label pops on, and a pink glow fades. */
  .progress.on:not(.known) span { width: 35%; animation: sweep 1.3s ease-in-out infinite; }
  .entry.entering { overflow: hidden; animation: row-in .5s cubic-bezier(.2, .8, .2, 1) backwards, row-glow 2.4s ease-out .35s backwards; }
  .entry.entering .chip { animation: label-in .55s cubic-bezier(.3, 1.45, .5, 1) .3s backwards; }
  .entry.leaving { overflow: hidden; animation: row-out .35s ease forwards; }
  dialog[open] { animation: rise-dialog .2s ease-out; }
}
@keyframes label-in { from { max-width: 0; margin-right: 0; padding-inline: 0; opacity: 0; transform: scale(.4); } to { max-width: 16em; } }
@keyframes settle { from { font-weight: 700; color: var(--nori); } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes row-in { from { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; transform: translateY(-6px); } to { max-height: 140px; } }
@keyframes row-glow { from { background-color: var(--pink-light); } }
@keyframes row-out { from { max-height: 140px; } to { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@keyframes rise-dialog { from { opacity: 0; transform: translateY(10px) scale(.98); } }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .privacy-section { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "sent" "points"; }
  .privacy-section .sent { margin-top: 28px; }
  .sent { max-width: 36rem; }
  .hero h1 { max-width: 11em; }
  .example { max-width: 640px; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .site-header { gap: 8px; padding: 16px 0; }
  .wordmark { gap: 7px; font-size: 19px; }
  .wordmark img { width: 30px; height: 30px; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 7px 8px; font-size: 14px; }
  .hero { gap: 28px; padding-top: 12px; }
  .hero h1 { font-size: clamp(40px, 12.4vw, 54px); }
  .lead { margin-top: 18px; font-size: 17px; }
  .connect { margin-top: 28px; }
  .connect .google { width: 100%; }
  .actions { gap: 8px 18px; }
  .setup { padding: 20px; }
  .example { padding-top: 50px; }
  .perched { right: 14px; width: 100px; height: 100px; }
  .inbox-bar { padding: 11px 16px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 12px 16px; }
  .row .from { grid-row: 1; grid-column: 1; }
  .row .time { grid-row: 1; grid-column: 2; }
  .row .content { grid-row: 2; grid-column: 1 / -1; }
  .row .snippet { display: none; }
  .section-intro p { font-size: 17px; }
  .banner { flex-direction: column; align-items: flex-start; }
  .status { padding: 22px 20px; }
  .status-row { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
  .status-mascot, .status-mascot img { width: 56px; height: 56px; }
  .status-mascot::after { right: 2px; bottom: 6px; width: 12px; height: 12px; }
  .status-row > [data-block="status-action"] { grid-column: 1 / -1; }
  .status-actions .button { flex: 1; }
  .switch { gap: 16px; }
  .recent, .fixes { margin-top: 36px; }
  .last-check { width: 100%; justify-content: space-between; }
  .entry { gap: 12px; padding: 14px 16px; }
  /* Everything in this list is caught, so the label chip only costs room on a phone. */
  .entry-subject .chip:not(.warning) { display: none; }
  .entry .button.small { min-height: 34px; padding: 6px 12px; font-size: 13px; }
  .empty { padding: 18px; }
  main { padding-bottom: 44px; }
  .dialog-head { padding: 16px 20px 10px; }
  .dialog-body { padding: 0 6px 20px 20px; }
  .dialog-actions { justify-content: space-between; padding: 12px 20px 16px; }
  .steps > li { padding-left: 48px; }
  .code { flex-direction: column; align-items: stretch; padding: 12px; }
  .code .button { align-self: flex-start; }
}
