@font-face { font-family: Inter; src: url('fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url('fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url('fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url('fonts/inter-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/jetbrains-mono-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
:root { color-scheme: light; --paper: #f7f7f5; --surface: #fff; --ink: #18211c; --muted: #68726c; --forest: #1a3c2b; --forest-strong: #11291d; --line: #d9deda; --line-strong: #aeb8b1; --mono: 'JetBrains Mono', ui-monospace, monospace; --heading: 'Space Grotesk', Inter, sans-serif; font: 14px/1.5 Inter, system-ui, sans-serif; color: var(--ink); background: var(--paper); }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--forest); text-underline-offset: 4px; }
a:hover { color: var(--forest-strong); }
button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 9px 16px; border: 1px solid var(--forest); border-radius: 2px; background: var(--forest); color: #fff; font-weight: 500; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: var(--forest-strong); color: #fff; }
button.quiet, .button.quiet { color: var(--ink); background: transparent; border-color: var(--line); }
button.quiet:hover, .button.quiet:hover { background: var(--paper); border-color: var(--line-strong); }
button.small { min-height: 32px; padding: 4px 10px; font-size: 12px; }
button:disabled { opacity: .55; cursor: not-allowed; }
input, select, textarea { display: block; width: 100%; min-height: 42px; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 2px; background: #fff; color: var(--ink); }
input[type='hidden'] { display: none; }
select { padding-right: 28px; text-overflow: ellipsis; }
textarea { resize: vertical; min-height: 144px; line-height: 1.65; }
label { display: block; font-size: 12px; font-weight: 600; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 600; overflow-wrap: anywhere; }
h1 { margin-bottom: 12px; font-size: 32px; letter-spacing: -.04em; line-height: 1.2; }
h2 { margin-bottom: 8px; font-size: 22px; letter-spacing: -.025em; line-height: 1.3; }
h3 { margin-bottom: 8px; font-size: 17px; letter-spacing: -.02em; line-height: 1.4; }
p { margin-bottom: 16px; }
.icon { flex: 0 0 auto; vertical-align: middle; }
.muted, time, .helptext { color: var(--muted); }
.helptext { font-size: 12px; font-weight: 400; line-height: 1.6; margin: 8px 0; }
.helptext:empty { display: none; }
.eyebrow { margin-bottom: 12px; font: 11px/1.5 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.address-label { font: 12px/1.6 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
code, pre { font: 12px/1.7 var(--mono); }
pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; border: 1px solid var(--line); background: var(--paper); }
summary { cursor: pointer; color: var(--forest); }
details > summary { min-height: 40px; padding: 10px 0; }
details > p { margin: 8px 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: #fff; padding: 12px 16px; }
.skip:focus { top: 8px; }
.topbar { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 0 32px; gap: 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 600 21px/1 var(--heading); letter-spacing: -.035em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { display: block; width: 32px; height: 32px; background: url('logo.svg') center/contain no-repeat; }
.topnav { display: flex; align-items: stretch; gap: 32px; align-self: stretch; }
.topnav > a { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; padding: 12px 0; font-weight: 500; }
.topnav > a:hover, .topnav > a[aria-current] { color: var(--forest); }
.topnav > a[aria-current] { border-color: var(--forest); }
.page-content { width: min(100%, 1024px); margin: 0 auto; padding: 48px 32px 64px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.page-heading h1, .page-heading form { margin: 0; }
.page-heading .eyebrow { margin-bottom: 8px; }
.section-heading { margin: 32px 0 24px; }
.section-heading p:last-child { margin-bottom: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 24px; margin: 20px 0; overflow-wrap: anywhere; }
.panel-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-heading h3 { margin: 0; }
.badge { display: inline-block; padding: 2px 6px; font-size: 11px; background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.badge.new { background: #ddf6e5; color: #23643b; }
.notice { padding: 12px 16px; margin: 12px 0; border-left: 2px solid #715700; background: #fff8df; font-size: 13px; overflow-wrap: anywhere; }
.flash-messages { flex: 0 0 auto; }
.flash-messages .notice { margin-top: 0; }
.errorlist { color: #8b3420; font-size: 13px; padding-left: 20px; }
.status-dot, .active-indicator { display: inline-block; width: 6px; height: 6px; flex: 0 0 auto; background: currentColor; border-radius: 50%; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin: 16px 0; font-size: 12px; }
.pagination a { min-height: 40px; display: inline-flex; align-items: center; }
/* The shared inbox has a global search bar above the mailbox navigation. */
.workspace-page { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); }
.workspace { --gutter: 24px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.workspace .flash-messages .notice { margin: 0; padding: 6px var(--gutter); }
.demo-page [inert][data-demo-form] { opacity: .55; }
.inbox-controls { order: -1; flex: none; position: relative; z-index: 2; background: var(--surface); }
.inbox-heading, .inbox-subnav { display: flex; align-items: center; padding-inline: var(--gutter); border-bottom: 1px solid var(--line); }
.inbox-heading { min-height: 56px; gap: clamp(20px, 2.5vw, 40px); }
.workspace-identity { flex: none; gap: 10px; font-size: 20px; }
.workspace-identity .brand-mark { width: 28px; height: 28px; }
.back-to-list { display: none; }
.workspace-search { display: flex; align-items: center; flex: 1; min-width: 0; gap: 12px; }
.search-field { display: flex; align-items: center; flex: 1; min-width: 0; max-width: 448px; height: 36px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); }
.search-field:focus-within { outline: 2px solid var(--forest); outline-offset: 1px; }
.search-field input { min-width: 0; min-height: 0; height: 100%; margin: 0; padding: 0 8px 0 0; border: 0; background: transparent; }
.search-field input:focus-visible { outline: 0; }
.search-submit { width: 34px; min-height: 0; height: 100%; padding: 0; flex: none; border: 0; background: transparent; color: var(--muted); }
.search-submit:hover { background: var(--line); color: var(--forest); }
.search-submit .icon { width: 17px; }
.workspace-account { margin-left: auto; flex: none; }
.settings-link, .inbox-controls summary { display: flex; align-items: center; gap: 7px; }
.settings-link { min-height: 36px; color: var(--muted); text-decoration: none; font-size: 13px; }
.domain-picker, .demo-menu, .filter-menu { position: relative; }
.inbox-controls summary, .tag-editor summary { list-style: none; }
.inbox-controls summary::-webkit-details-marker, .tag-editor summary::-webkit-details-marker { display: none; }
.inbox-controls summary .icon { width: 14px; height: 14px; }
.domain-picker { min-width: 0; max-width: min(220px, 32%); }
.domain-picker > summary { justify-content: space-between; min-height: 36px; gap: 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); font-size: 13px; }
.domain-picker summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.domain-picker .filter-active { border-color: var(--line-strong); color: var(--forest); font-weight: 600; }
.demo-menu > summary { min-height: 36px; padding: 4px 0; font-size: 13px; font-weight: 600; }
.inbox-controls summary:hover { color: var(--forest); }
.workspace-popover { position: absolute; z-index: 25; top: calc(100% + 4px); left: 0; width: min(256px, calc(100vw - 24px)); max-height: min(360px, 50dvh); overflow-y: auto; padding: 4px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 6px 18px rgb(17 41 29 / .1); }
.workspace-popover > a, .workspace-popover > button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 36px; padding: 7px 10px; font: inherit; font-size: 13px; overflow-wrap: anywhere; text-decoration: none; border: 0; background: transparent; color: var(--ink); }
.workspace-popover > :is(a, button):hover, .workspace-popover > [aria-current] { background: var(--paper); color: var(--forest); }
.workspace-popover :focus-visible { outline-offset: -2px; }
.workspace-popover .icon { width: 16px; }
.demo-menu .workspace-popover, .filter-menu .workspace-popover, .domain-picker .workspace-popover { right: 0; left: auto; }
.demo-menu .workspace-popover { width: 190px; }
.demo-menu p { padding: 6px 10px; margin: 0; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.inbox-subnav { min-height: 44px; justify-content: space-between; gap: 20px; }
.mailbox-tabs, .settings-tabs { display: flex; align-items: stretch; gap: 24px; }
.mailbox-tabs { align-self: stretch; min-width: 0; overflow-x: auto; }
.mailbox-tabs > a, .settings-tabs a { display: inline-flex; align-items: center; padding: 8px 0; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; text-decoration: none; }
.mailbox-tabs > a, .filter-menu > summary { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.mailbox-tabs > a:hover, .settings-link:hover { color: var(--ink); }
.mailbox-tabs > a:focus-visible { outline-offset: -2px; }
.mailbox-tabs > a[aria-current], .settings-tabs a[aria-current] { color: var(--forest); border-color: var(--forest); }
.filter-menu { flex: none; }
.filter-menu > summary { min-height: 42px; padding: 4px 0 4px 6px; font-weight: 600; color: var(--muted); }
.filter-menu[open] > summary, .filter-menu:has(.filter-count) > summary { color: var(--forest); }
.filter-menu > summary .icon { width: 16px; height: 16px; }
.filter-count { padding: 0 5px; min-width: 17px; text-align: center; background: #e6eee8; border-radius: 2px; font: 600 11px/17px var(--mono); }
.filter-panel { padding: 16px; }
.filter-panel select { min-height: 36px; padding-block: 6px; margin: 4px 0 12px; font-size: 13px; }
.filter-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.filter-actions a { margin-right: auto; font-size: 12px; }
.inbox-split {
  --list-min: 228px;
  --reader-min: 340px;
  --list-default: clamp(280px, 32%, 460px);
  display: grid;
  grid-template-columns: clamp(var(--list-min), var(--list-width, var(--list-default)), calc(100% - var(--reader-min))) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
.list-divider:not([hidden]) { grid-area: 1 / 2; z-index: 1; justify-self: start; width: 12px; margin-inline-start: -6px; display: grid; place-items: center; cursor: col-resize; touch-action: none; user-select: none; }
.list-divider::after { content: ""; width: 2px; height: 32px; border-radius: 2px; background: var(--line-strong); }
.list-divider:is(:hover, :focus-visible, :active)::after { background: var(--forest); }
.list-divider:focus-visible { outline-offset: -2px; }
.conversation-list { grid-area: 1 / 1; min-width: 0; overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--line); }
.thread-row { display: block; padding: 15px var(--gutter); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.thread-row:hover { background: var(--paper); color: var(--ink); }
.thread-row[aria-current] { background: #eef3ef; box-shadow: inset 3px 0 var(--forest); color: var(--ink); }
.thread-row:focus-visible { outline-offset: -4px; }
.row-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.row-domain { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 10px/1.6 var(--mono); letter-spacing: .055em; text-transform: uppercase; }
.row-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.row-footer .address-label { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.attention-label { display: inline-flex; align-items: center; gap: 4px; color: #8a4217; font-weight: 600; }
.attention-label .icon { width: 14px; height: 14px; stroke-width: 2; }
.attention-label circle { fill: currentColor; stroke: none; }
.attention-label circle + path { stroke: white; stroke-width: 2.4; }
.row-meta time { flex: none; }
.new-label { color: var(--forest); font-size: 11px; font-weight: 600; }
.star-marker { display: inline-flex; color: var(--forest); }
.star-marker .icon { width: 14px; height: 14px; fill: currentColor; }
.thread-row h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 15px/1.45 Inter, sans-serif; margin: 0 0 2px; letter-spacing: -.015em; }
.thread-row.unread h2 { font-weight: 700; }
.row-preview { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; margin: 0; }
.reading-pane { grid-area: 1 / 2; container-type: inline-size; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.thread-scroll { flex: 1 1 0; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.thread-scroll:focus-visible { outline-offset: -2px; }
.reading-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; padding: 32px; text-align: center; }
.reading-empty > .icon { width: 36px; height: 36px; color: var(--line-strong); margin-bottom: 20px; }
.reading-empty h2 { font-size: 22px; }
.list-empty { padding: 56px 24px; text-align: center; color: var(--muted); }
.list-empty > .icon { margin-bottom: 20px; width: 28px; height: 28px; }
.list-empty h2 { font-size: 18px; color: var(--ink); }
.list-empty p { font-size: 13px; }
.thread-content, .composer-inner, .composer-actions { width: min(100%, 940px); margin-inline: auto; padding-inline: clamp(20px, 5cqi, 52px); }
.thread-content { padding-block: clamp(24px, 4cqi, 44px) 28px; }
.thread-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.thread-heading h1 { margin: 0; font-size: clamp(22px, 3.4cqi, 28px); line-height: 1.2; }
.thread-actions, .thread-tools, .tag-add, .organization-actions, .challenge-actions { display: flex; align-items: center; gap: 6px; }
.thread-actions { flex: none; gap: 6px; }
.thread-actions button { min-height: 32px; padding: 4px 10px; }
.thread-actions .icon-button { width: 32px; padding: 0; color: var(--muted); }
.icon-button .icon { width: 18px; height: 18px; }
.thread-actions button:hover, .thread-actions [aria-pressed="true"] { color: var(--forest); background: var(--paper); }
.thread-actions [aria-pressed="true"] .icon { fill: currentColor; }
.thread-tools { flex-wrap: wrap; align-items: flex-start; gap: 6px 8px; margin-top: 12px; }
.thread-tools form { max-width: 100%; }
.thread-tools input, .thread-tools button { min-height: 28px; margin: 0; padding: 3px 8px; font-size: 12px; }
.tag-editor { max-width: 100%; }
.tag-editor > summary { display: flex; align-items: center; gap: 4px; min-height: 28px; padding: 3px 6px; color: var(--muted); font-size: 12px; }
.tag-editor > summary:hover { color: var(--forest); background: var(--paper); }
.tag-editor > summary .icon { width: 14px; height: 14px; }
.tag-add { margin-top: 4px; min-width: 0; }
.tag-add input { width: 12em; min-width: 0; }
.tag-chip { gap: 5px; max-width: 100%; overflow-wrap: anywhere; }
.tag-chip .icon { width: 12px; height: 12px; }
.read-action { margin-left: auto; }
.read-action button { padding-inline: 2px; border: 0; background: transparent; color: var(--muted); }
.read-action button:hover { color: var(--forest); text-decoration: underline; }
.organization-actions, .challenge-actions { flex-wrap: wrap; }
.message { padding: 26px 0; }
.message + .message { border-top: 1px solid var(--line); }
.message-envelope { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.message-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.message-heading h2 { min-width: 0; font: 600 14px/1.5 Inter, sans-serif; letter-spacing: -.01em; margin: 0; }
.message-heading h2 span { color: var(--muted); font-weight: 400; }
.message-heading time { font-size: 12px; }
.message-origin, .reply-address { font-size: 13px; color: var(--muted); margin: 3px 0 0; overflow-wrap: anywhere; }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; padding-top: 20px; font-size: 16px; line-height: 1.7; }
.message .message-body { max-width: 78ch; }
.reply-divider:not([hidden]) { display: grid; place-items: center; flex: 0 0 12px; border-block: 1px solid var(--line); background: var(--paper); cursor: row-resize; touch-action: none; user-select: none; }
.reply-divider::after { content: ""; width: 36px; height: 2px; border-radius: 2px; background: var(--line-strong); }
.reply-divider:is(:hover, :focus-visible, :active)::after { background: var(--forest); }
.reply-divider:focus-visible { outline-offset: -2px; }
.reply-composer { display: flex; flex-direction: column; flex: none; min-height: var(--reply-height, 0px); max-height: 76%; padding-top: clamp(12px, 2dvh, 22px); border-top: 1px solid var(--line-strong); background: var(--surface); }
.reply-divider:not([hidden]) + .reply-composer { border-top: 0; }
.reply-composer.manually-sized { height: var(--reply-height); }
.composer-scroll { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.composer-inner, .composer-inner [data-draft-form] { display: flex; flex-direction: column; flex: 1 0 auto; }
.composer-inner { padding-bottom: 4px; }
.composer-heading, .composer-actions { display: flex; align-items: center; gap: 12px; }
.composer-heading h2 { margin: 0; font-size: 20px; }
.composer-heading .helptext { margin: 0; }
.reply-address { margin-bottom: 12px; }
.reply-composer textarea { flex: 1 0 auto; min-height: clamp(88px, 13dvh, 132px); margin: 0; padding: 10px 12px; border-color: var(--line-strong); font-size: 15px; line-height: 1.55; field-sizing: content; resize: none; }
.reply-composer textarea[data-autosize] { overflow: hidden; }
.composer-actions { flex: none; justify-content: flex-end; padding-block: 10px max(20px, env(safe-area-inset-bottom)); gap: 8px; }
.composer-actions .helptext { flex: 1; margin: 0; }
.composer-actions button { min-height: 38px; padding: 6px 15px; }
dialog { max-width: min(440px, calc(100% - 32px)); padding: 28px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink); box-shadow: 0 12px 32px rgb(17 41 29 / .12); }
dialog::backdrop { background: rgb(24 33 28 / .3); }
dialog h2 { font-size: 22px; }
dialog p { color: var(--muted); }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 12px; margin-top: 24px; }
.classification-line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; min-height: 28px; margin-block: 5px 0; color: var(--muted); font-size: 12px; }
.classification-line [data-priority]:not(.attention-label) .icon { display: none; }
.classification-line [data-priority]:not([hidden]) { border-inline-start: 1px solid var(--line); padding-inline-start: 10px; }
.classification-source { font: 10px/1.5 var(--mono); color: var(--muted); background: var(--paper); padding: 1px 4px; }
.classification-line a { font-weight: 500; text-underline-offset: 3px; }
.classification-note { margin: 2px 0 8px; color: var(--muted); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.classification-line [hidden], .attention-label[hidden] { display: none; }
#triage-editor { width: min(420px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow: auto; }
#triage-editor .dialog-actions { align-items: center; margin-top: 4px; }
#triage-editor .dialog-actions a { font-size: 13px; }
#triage-editor .filters > div { flex: 1 1 135px; min-width: 0; }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.filters label { flex: 1 1 160px; }
.triage-reset { margin-top: 16px; }
#triage_summary { min-height: 96px; margin-bottom: 16px; }
/* Settings use local tabs; the global Settings entry remains in the topbar. */
.settings-tabs { border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.settings-tabs a { padding: 14px 0; }
.add-domain { padding: 0 24px; }
.add-domain > summary { display: flex; gap: 8px; align-items: center; font-weight: 500; padding: 18px 0; list-style: none; }
.add-domain > summary::-webkit-details-marker { display: none; }
.address-form { padding: 4px 0 24px; }
.address-fields { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 20px; margin-bottom: 20px; }
.receiving-choices { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.receiving-choices legend { font-weight: 600; margin-bottom: 12px; }
.receiving-choice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; font-size: 14px; }
.receiving-choice input[type='radio'] { flex: 0 0 18px; width: 18px; min-height: 18px; margin: 3px 0 0; padding: 0; accent-color: var(--forest); }
.receiving-choice .helptext { display: block; margin: 4px 0 0; }
.domain-heading { display: flex; align-items: center; gap: 12px; }
.domain-heading h3, .domain-heading p { margin: 0; }
.domain-heading p { font-size: 12px; margin-top: 4px; }
.domain-icon { color: var(--muted); display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line); }
.domain-addresses { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0; }
.readiness { display: flex; flex-wrap: wrap; gap: 20px 48px; margin: 24px 0; }
dt { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
dd { margin: 0; overflow-wrap: anywhere; }
.pending { color: #715700; }
.ready { color: #23643b; }
.domain-dns { border-top: 1px solid var(--line); }
.domain-dns > summary { padding: 16px 0 0; font-size: 12px; }
.domain-dns[open] > summary { padding-bottom: 16px; }
.dns-record { padding: 16px; border: 1px solid var(--line); background: var(--paper); }
.dns-record > div + div { margin-top: 12px; }
.agent-connection { max-width: 720px; }
.connection-domain { max-width: 360px; margin-top: 24px; }
.connection-details { display: grid; gap: 16px; margin: 24px 0; }
.connection-details > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
.copy-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#agent-prompt { font: 12px/1.7 var(--mono); }
.setup-instructions { border-top: 1px solid var(--line); margin-top: 24px; }
.settings-empty { padding: 48px 24px; text-align: center; }
.settings-empty > .icon { width: 32px; height: 32px; color: var(--muted); margin-bottom: 20px; }
/* Public landing and sign-in share the same calm visual system. */
.landing-page .topbar { padding-left: max(32px, calc((100% - 1120px) / 2)); padding-right: max(32px, calc((100% - 1120px) / 2)); }
.hero { text-align: center; padding: 88px 24px 56px; }
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 { font-size: clamp(42px, 5.5vw, 68px); line-height: 1.08; margin-bottom: 24px; letter-spacing: -.05em; }
.hero-description { font-size: 17px; line-height: 1.7; color: var(--muted); }
.text-action { font-weight: 500; text-decoration: none; }
.product-preview { width: min(1120px, calc(100% - 64px)); margin: 0 auto; border: 1px solid var(--line-strong); background: #fff; }
.preview-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 16px 24px; }
.preview-heading > span:first-child { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.preview-heading .eyebrow { margin: 0; }
.preview-workspace { display: grid; grid-template-columns: 38% minmax(0, 1fr); }
.preview-list { border-right: 1px solid var(--line); }
.preview-row { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.preview-row:last-child { border-bottom: 0; }
.preview-row.selected { background: #eff4f0; box-shadow: inset 3px 0 var(--forest); }
.preview-row h3 { font: 600 14px/1.5 Inter, sans-serif; }
.preview-row p { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.preview-conversation { padding: 28px 32px; }
.preview-conversation h2 { font-size: 22px; }
.preview-conversation > p:not(.eyebrow) { font-size: 13px; line-height: 1.8; }
.preview-sender { display: flex; align-items: center; gap: 12px; margin: 24px 0; font-size: 12px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--forest); background: #eff4f0; }
.preview-sender > div { display: flex; flex-direction: column; }
.preview-sender > div > span { font-size: 11px; color: var(--muted); }
.preview-sender > span:last-child { margin-left: auto; color: var(--muted); font-size: 11px; }
.preview-draft { border: 1px solid var(--line); padding: 16px; background: var(--paper); font-size: 12px; }
.preview-draft > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.preview-draft > div > span { font-size: 11px; color: var(--muted); }
.preview-draft p { margin: 0; color: var(--muted); }
.workflow-section, .faq-section { width: min(1120px, calc(100% - 64px)); margin: 88px auto; }
.workflow-section .section-heading { margin-top: 0; margin-bottom: 32px; }
.workflow-section h2, .faq-section h2 { font-size: 30px; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.workflow-grid article { position: relative; padding: 32px; border-right: 1px solid var(--line); }
.workflow-grid article:first-child { padding-left: 0; }
.workflow-grid article:last-child { border-right: 0; }
.workflow-grid .icon { display: block; width: 24px; height: 24px; color: var(--forest); margin-bottom: 24px; }
.step-number { position: absolute; right: 24px; top: 32px; color: var(--muted); font: 11px var(--mono); }
.workflow-grid h3 { font-size: 18px; }
.workflow-grid p { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0; }
.faq-section { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.faq-section .section-heading { margin: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { padding: 20px 0; font-weight: 500; color: var(--ink); }
.faq-list p { font-size: 13px; line-height: 1.7; color: var(--muted); padding-right: 24px; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px max(32px, calc((100% - 1120px) / 2)); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.site-footer > span:first-child { color: var(--ink); font: 600 16px var(--heading); }
.site-footer a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.auth-page { padding: 80px 24px; }
.auth-card { width: min(100%, 440px); margin: 0 auto; padding: 32px; border: 1px solid var(--line); background: #fff; }
.auth-card h1 { font-size: 30px; }
.auth-field { margin-top: 20px; }
.auth-card form { margin: 28px 0 20px; }
.auth-card form > button { width: 100%; margin-top: 24px; justify-content: space-between; }
.domain-start-form { width: min(100%, 560px); margin: 28px auto 20px; text-align: left; }
.domain-start-controls { display: flex; gap: 12px; margin-top: 8px; }
.domain-start-controls input { min-width: 0; margin: 0; min-height: 46px; }
.domain-start-controls button { flex: 0 0 auto; min-height: 46px; }
.hero-secondary { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.onboarding-card { width: min(100%, 640px); margin: 0 auto; padding: 32px; border: 1px solid var(--line); background: #fff; }
.onboarding-card h1 { font-size: 30px; }
.onboarding-card .domain-start-form { margin-left: 0; }
.onboarding-domain { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin: 20px 0 28px; }
.onboarding-domain strong, .pending-domain { font: 14px/1.6 var(--mono); overflow-wrap: anywhere; }
.onboarding-domain a { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; }
.setup-progress { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; padding: 0; margin: 0 0 32px; color: var(--muted); font-size: 11px; }
.setup-progress li + li::before { content: '›'; margin-right: 16px; }
.setup-progress [aria-current] { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.onboarding-options { margin: 16px 0 24px; border-block: 1px solid var(--line); }
.onboarding-options summary { min-height: 44px; font-size: 12px; padding: 12px 0; }
.onboarding-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 8px 0 20px; }
.section-heading.with-action { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
@container (max-width: 510px) {
  .thread-heading { flex-wrap: wrap; gap: 10px; }
  .thread-heading h1 { flex: 1 1 250px; }
  .thread-content { padding-top: 20px; }
  .message-envelope { padding-bottom: 12px; }
  .message { padding-block: 20px; }
  .message-body { padding-top: 16px; }
}
@media (pointer: coarse), (max-width: 760px) {
  .reply-divider:not([hidden]) { flex-basis: 24px; }
}
@media (max-width: 760px) {
  .workspace { --gutter: 14px; }
  .inbox-split { display: block; }
  .list-divider:not([hidden]) { display: none; }
  .conversation-list { height: 100%; border-right: 0; }
  .reading-pane, .thread-open .conversation-list { display: none; }
  .thread-open .reading-pane { display: flex; height: 100%; }
  .inbox-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; min-height: 50px; padding-block: 6px 10px; }
  .workspace-identity { justify-self: start; font-size: 18px; }
  .workspace-identity .brand-mark { width: 24px; height: 24px; }
  .workspace-account { grid-area: 1 / 2; }
  .workspace-search { grid-area: 2 / 1 / 3 / -1; gap: 8px; }
  .search-field { max-width: none; }
  .domain-picker { max-width: 42%; }
  .inbox-subnav { gap: 10px; }
  .mailbox-tabs { gap: clamp(10px, 3.5vw, 22px); }
  .thread-open .inbox-heading { padding-block: 3px; }
  .thread-open :is(.workspace-identity, .workspace-search, .inbox-subnav) { display: none; }
  .back-to-list { display: inline-flex; align-items: center; justify-self: start; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
  .back-to-list .icon { width: 18px; }
  .reply-composer { padding-top: 12px; }
  .reply-composer textarea { min-height: 78px; }
  .composer-actions { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .preview-workspace { grid-template-columns: 1fr; }
  .preview-list { display: none; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid article, .workflow-grid article:first-child { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow-grid article:last-child { border-bottom: 0; }
  .workflow-grid .icon { margin-bottom: 16px; }
  .step-number { right: 0; top: 28px; }
  .faq-section { grid-template-columns: 1fr; gap: 24px; }
  .address-fields { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 500px) {
  button, .button, input, select { min-height: 44px; }
  .topbar, .landing-page .topbar { min-height: 64px; padding: 0 16px; gap: 12px; }
  .brand { gap: 8px; font-size: 18px; }
  .brand-mark { width: 28px; height: 28px; }
  .topnav { gap: 16px; font-size: 12px; }
  .topnav a:first-child:not(:only-child) { display: none; }
  .topnav .icon { width: 16px; height: 16px; }
  .workspace { --gutter: 14px; }
  .mailbox-tabs > a, .filter-menu > summary { font-size: 11px; letter-spacing: .025em; }
  .filter-menu > summary { gap: 5px; min-height: 44px; }
  .search-field, .domain-picker > summary { height: 40px; }
  .thread-actions button, .tag-editor > summary, .thread-tools button { min-height: 36px; }
  .thread-actions .icon-button { width: 36px; }
  .reply-address { margin-bottom: 8px; }
  .composer-actions button { min-height: 40px; }
  .page-content { padding: 32px 16px; }
  .panel { padding: 20px 16px; }
  .add-domain { padding: 0 16px; }
  .settings-tabs { gap: 24px; }
  .settings-tabs a { font-size: 13px; }
  .page-heading { margin-bottom: 20px; }
  .readiness { gap: 20px 24px; }
  .readiness > div { min-width: 105px; }
  .connection-details > div { grid-template-columns: 1fr; gap: 0; }
  .hero { padding: 56px 20px 40px; }
  .hero-description { font-size: 15px; }
  .desktop-break { display: none; }
  .product-preview, .workflow-section, .faq-section { width: calc(100% - 32px); }
  .preview-heading { padding: 16px; font-size: 12px; }
  .preview-heading .eyebrow { font-size: 9px; }
  .preview-conversation { padding: 24px 20px; }
  .preview-conversation h2 { font-size: 21px; }
  .workflow-section, .faq-section { margin: 56px auto; }
  .workflow-section h2, .faq-section h2 { font-size: 27px; }
  .site-footer { padding: 24px 16px; }
  .site-footer > span:nth-child(2) { order: 3; width: 100%; }
  .auth-page { padding: 40px 16px; }
  .auth-card { padding: 28px 20px; }
  .auth-card h1 { font-size: 28px; }
  .domain-start-controls { flex-direction: column; }
  .onboarding-card { padding: 28px 20px; }
  .onboarding-card h1 { font-size: 28px; }
  .onboarding-fields { grid-template-columns: 1fr; }
}
@media (max-width: 375px) {
  .inbox-subnav { gap: 6px; }
  .mailbox-tabs { gap: 10px; }
  .filter-menu > summary .icon { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: color 120ms ease-out, background-color 120ms ease-out; }
}
