@font-face {
  font-family: Onest;
  src: url("preview-font.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  font: 15px/1.5 Onest, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #11233f;
  background: #f6f7f9;
  --blue: #0752ce;
  --muted: #52657f;
  --line: #dfe7f0;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, dl, ol { margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #0752ce; outline-offset: 3px; }
button:disabled { opacity: .65; cursor: default; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: absolute; z-index: 2; left: 8px; top: 8px; padding: 10px; background: #fff; }
.app-bar { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; background: #fff; border-bottom: 1px solid #d7e2f0; }
.brand-name { display: flex; align-items: baseline; gap: 11px; }
.wordmark { color: #101828; font-size: 30px; font-weight: 850; line-height: 40px; letter-spacing: -1.5px; }
.wordmark span { color: var(--blue); }
.brand-detail, .preview-label { color: var(--muted); }
.brand-detail { font-size: 17px; }
.preview-label { font-size: 13px; }
.app-layout { display: grid; grid-template-columns: 190px minmax(0,1fr); min-height: calc(100vh - 80px); }
.workspace-nav { padding: 28px 14px; background: #fff; border-right: 1px solid var(--line); }
.workspace-label { padding: 0 12px 15px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: var(--muted); text-transform: uppercase; }
.workspace-nav a { display: flex; align-items: center; min-height: 48px; margin-bottom: 5px; padding: 10px 12px; border-radius: 8px; color: #273d59; text-decoration: none; font-weight: 550; font-size: 14px; }
.workspace-nav a:hover, .utility:hover { background: #eaf1fd; }
.workspace-nav a[aria-current] { color: #fff; background: var(--blue); font-weight: 650; }
.workspace-nav a:last-child { margin-top: 12px; }
#mail-workspace { min-width: 0; padding: 24px 28px 36px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.workspace-heading h1 { font-size: 30px; line-height: 40px; font-weight: 800; letter-spacing: -1.1px; }
.workspace-heading p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.utility, .back-button { background: #fff; color: #334c6c; font-weight: 550; font-size: 13px; border: 1px solid #d4deeb; border-radius: 8px; min-height: 44px; padding: 8px 14px; }
.view-intro { color: var(--muted); font-size: 14px; margin: 12px 0 18px; max-width: 80ch; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.card-header { padding: 14px 18px; border-bottom: 1px solid #e6edf5; }
.card-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; }
.card h2 { font-size: 16px; line-height: 24px; font-weight: 700; }
#sent-count { color: var(--muted); font-size: 12px; }
.search-label { display: block; margin-top: 12px; }
.search-label input { display: block; width: 100%; min-height: 44px; border: 1px solid #dce5f0; border-radius: 8px; padding: 9px 12px; background: #f3f6fb; font-size: 14px; color: #11233f; }
.search-label input::placeholder { color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(240px, 43%) minmax(0, 1fr); min-height: 428px; }
.messages { min-width: 0; background: #fafbfd; border-right: 1px solid #e7edf4; }
#message-list { list-style: none; padding: 0; max-height: 65vh; overflow-y: auto; }
.message-row { display: block; width: 100%; min-height: 86px; padding: 16px 14px; border: 0; border-bottom: 1px solid #e7edf4; border-left: 3px solid transparent; background: #fafbfd; text-align: left; color: #11233f; }
.message-row:hover { background: #f3f7ff; }
.message-row[aria-pressed="true"] { background: #eff5ff; border-left-color: #0754ed; }
.message-row:focus-visible { outline-offset: -3px; }
.row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.row-top strong, .row-subject, .row-to { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-top strong { font-size: 14px; line-height: 20px; font-weight: 650; }
.row-top time { font-size: 12px; line-height: 18px; color: var(--muted); flex-shrink: 0; }
.row-subject, .row-to { display: block; margin-top: 4px; }
.row-subject { font-size: 14px; line-height: 21px; font-weight: 600; }
.row-to { font-size: 13px; color: var(--muted); }
.list-note, .load-status { color: var(--muted); font-size: 13px; line-height: 20px; }
.list-note { padding: 14px 17px; }
.list-note:empty, .load-status:empty { display: none; }
.load-status { margin-top: 12px; }
.reader { min-width: 0; background: white; }
.reader-top { padding: 22px 24px 16px; }
.reader h3 { font-size: 20px; line-height: 28px; font-weight: 750; letter-spacing: -.02em; overflow-wrap: anywhere; }
.receipt-line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; margin: 10px 0; color: var(--muted); font-size: 13px; }
.status-label { display: inline-block; margin: 0; border: 1px solid #dce8fb; border-radius: 5px; padding: 3px 8px; background: #f3f8ff; color: var(--blue); font-weight: 650; font-size: 12px; }
details { margin-top: 10px; font-size: 13px; }
summary { color: var(--blue); width: fit-content; min-height: 30px; display: list-item; }
.receipt-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin-top: 4px; }
.receipt-details dt { color: var(--muted); }
.receipt-details dd { margin: 0; overflow-wrap: anywhere; }
.message-preview { padding: 16px; border-top: 1px solid #e2e9f3; background: #f7f9fc; }
.message-preview iframe { display: block; width: 100%; min-height: 420px; height: 71vh; border: 1px solid #d8e2ef; background: #fff; }
.reader-foot { padding: 12px 22px; color: var(--muted); font-size: 12px; line-height: 19px; }
.back-button { display: none; }
.empty-reader { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 320px; text-align: center; padding: 24px; color: var(--muted); }
.empty-wordmark { font-size: 27px; font-weight: 800; letter-spacing: -1px; color: #718bb7; }
.empty-reader h3 { margin: 14px 0 8px; font-size: 16px; line-height: 24px; color: #405875; }
.empty-reader p { max-width: 44ch; font-size: 14px; line-height: 22px; }
.inbox-list { padding: 20px; font-size: 14px; }
.inbox-list p { margin-top: 4px; font-size: 13px; color: var(--muted); }
.overview { padding: clamp(18px, 3vw, 32px); }
.overview h2 { font-size: 24px; line-height: 32px; letter-spacing: -.025em; }
.section-intro, .result-note { color: var(--muted); font-size: 14px; max-width: 72ch; margin: 8px 0 20px; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-block: 1px solid var(--line); }
.metric { margin: 20px 0; padding: 0 20px; border-left: 1px solid var(--line); }
.metric:first-child { padding-left: 0; border: 0; }
.metric dt { font-size: 14px; font-weight: 600; }
.metric dd { margin: 0; }
.metric .metric-value { font-size: 32px; line-height: 44px; font-weight: 650; letter-spacing: -.035em; }
.metric .metric-description, .snapshot-date { font-size: 13px; color: var(--muted); }
.snapshot-date { margin: 14px 0 22px; }
.action { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; background: var(--blue); color: #fff; border-radius: 8px; text-decoration: none; font-weight: 650; }
.action:hover { background: #0642a5; }
.result-note { margin-bottom: 0; }
.result-list { max-width: 720px; padding: 0; margin: 16px 0; list-style: none; }
.result-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 12px 0; }
.result-list small { color: var(--muted); }
@media (max-width: 1000px) {
  .app-layout { grid-template-columns: 148px minmax(0,1fr); }
  #mail-workspace { padding: 20px 16px 28px; }
  .split { grid-template-columns: minmax(205px, 39%) minmax(0,1fr); }
}
@media (max-width: 760px) {
  .app-bar { min-height: 58px; padding: 8px 16px; }
  .wordmark { font-size: 26px; }
  .app-layout { display: block; }
  .workspace-label { display: none; }
  .workspace-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace-nav a, .workspace-nav a:last-child { justify-content: center; min-height: 44px; margin: 0; padding: 6px 3px; font-size: 13px; }
  #mail-workspace { padding: 14px 10px 22px; }
  .workspace-heading h1 { font-size: 26px; line-height: 34px; }
  .card { border-radius: 12px; }
  .card-header { padding: 12px 14px; }
  .split { display: block; min-height: 0; }
  .messages { border: 0; }
  #message-list { max-height: 42vh; }
  .reader { border-top: 1px solid var(--line); }
  .reader-top { padding: 16px; }
  .back-button { display: inline-block; margin-bottom: 14px; }
  .message-preview { padding: 6px; }
  .mobile-reading #sent .messages, .mobile-reading #sent .card-header { display: none; }
  .inbox-list { border-bottom: 1px solid var(--line); }
  .empty-reader { min-height: 200px; }
  .metrics { grid-template-columns: 1fr; }
  .metric, .metric:first-child { border: 0; margin: 0; padding: 14px 0; }
  .metric + .metric { border-top: 1px solid var(--line); }
}
.queue-return { margin-bottom: 14px; }
.masthead-identity { display: flex; align-items: center; gap: 20px; }
.workspace-home {display:inline-flex;align-items:center;gap:5px;min-height:44px;color:#0752ce;font-weight:650;text-underline-offset:3px;}
.app-bar {position:sticky;top:0;z-index:2;}
.masthead-identity strong { font-size: 14px; font-weight: 650; }
.workspace-nav a:last-child { margin-top: 0; }
.workspace-nav a[data-view="results"] { margin-top: 12px; }
.design-picker { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.design-picker select { width: min(100%, 430px); min-height: 44px; padding: 6px 10px; color: #11233f; background: #fff; font: inherit; border: 1px solid var(--line); border-radius: 8px; }
#design-preview { padding-block: 14px; margin-top: 16px; }
#design-preview iframe { max-width: 760px; margin-inline: auto; }
#design-preview .current-email-frame { display: block; min-height: 180px; background: white; }
.sender-address { overflow-wrap: anywhere; }
.snapshot-details { margin-top: 14px; max-width: 760px; }
.snapshot-details dt { color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 12px; }
.snapshot-details dd { margin: 3px 0 12px; overflow-wrap: anywhere; }
#queue-panel:first-of-type, [data-folder="contacts"] #queue-panel { margin-top: 0; }
@media(max-width:760px) {
  .workspace-nav { display: flex; overflow-x: auto; gap: 4px; }
  .workspace-nav a { flex: 0 0 auto; padding: 8px 10px; }
  .workspace-nav a:last-child, .workspace-nav a[data-view="results"] { margin-top: 0; }
  .masthead-identity { flex-direction: column; align-items: flex-end; gap: 1px; min-width: 0; text-align: right; line-height: 16px; }
  .masthead-identity strong, .masthead-identity .preview-label { font-size: 12px; }
  .brand-name { gap: 6px; }
}
.brand-detail { font-size: 13px; }
.workspace-nav { background: #f6f7f9; }
.workspace-label { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 13px; }
.workspace-nav a[aria-current] { background: #dfeaff; color: #0744bd; }
.workspace-nav a[data-view="sent"]::before { content: "↗"; margin-right: 9px; }
.workspace-nav a[data-view="inbox"]::before { content: "▣"; margin-right: 9px; }
.help-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; color: #243c5b; text-decoration: none; font-size: 13px; font-weight: 650; }
.help-link:hover { background: #f3f6fb; }
@media(min-width:1001px) {
  .app-layout { grid-template-columns: clamp(190px,16.5vw,238px) minmax(0,1fr); }
  .split { grid-template-columns: minmax(260px,36%) minmax(0,1fr); }
}
@media(max-width:760px) {
  .brand-name { display: block; }
  .brand-detail { display: block; margin-top: -4px; font-size: 11px; }
  .help-link { display: none; }
  .workspace-nav a[data-view="sent"]::before, .workspace-nav a[data-view="inbox"]::before { content: none; }
}
.embedded .app-bar { min-height: 56px; padding-block: 8px; }
.embedded .app-layout { min-height: calc(100vh - 56px); }
.embedded #mail-workspace { padding-top: 14px; }
.embedded[data-folder="sent"] .workspace-heading p, .embedded[data-folder="sent"] .view-intro { display: none; }
.embedded[data-folder="sent"] .workspace-heading { margin-bottom: 10px; }
.embedded[data-folder="sent"] .workspace-heading h1 { font-size: 25px; line-height: 33px; }
.embedded #sent .card-header { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; padding: 10px 14px; }
.embedded #sent .card-heading { order: 2; }
.embedded #sent .card-heading h2 { display: none; }
.embedded #sent .search-label { flex: 1 1 240px; margin: 0; }
.embedded .reader-top { padding-block: 14px 10px; }
.embedded .message-preview { padding: 10px; }
@media(max-width:760px) {
  .embedded.mobile-reading #sent .card-header { display: none; }
  .embedded .workspace-nav { padding-block: 3px; }
  .embedded #mail-workspace { padding-top: 9px; }
}

/* Continuous stockpile. The virtual window and its rows share a fixed 60px pitch. */
.queue { margin: 0; padding: clamp(16px,2.2vw,26px); }
#campaign-summary { margin-top: 18px; }
#queue-heading { font-size: 23px; line-height: 30px; }
body:is([data-folder="campaign"],[data-folder="contacts"]) .view-intro,
body:is([data-folder="campaign"],[data-folder="contacts"]) .workspace-heading p { display: none; }
body:is([data-folder="campaign"],[data-folder="contacts"]) .workspace-heading { margin-bottom: 12px; }
.queue-header { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.demo-button { justify-content: center; min-width: 124px; border: 0; }
.demo-note { margin: 6px 0 14px; color: var(--muted); font-size: 14px; }
.demo-progress { display: flex; gap: 4px 12px; flex-wrap: wrap; align-items: baseline; font-size: 13px; }
#demo-count { color: var(--muted); font-variant-numeric: tabular-nums; }
#demo-progress { flex-basis: 100%; width: 100%; height: 5px; margin: 2px 0; border: 0; border-radius: 5px; appearance: none; background: #e3eaf4; color: var(--blue); }
#demo-progress::-webkit-progress-bar { border-radius: 5px; background: #e3eaf4; }
#demo-progress::-webkit-progress-value { border-radius: 5px; background: var(--blue); }
#demo-progress::-moz-progress-bar { border-radius: 5px; background: var(--blue); }
.playback-tools { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.playback-tools label { display: flex; align-items: center; gap: 6px; min-height: 40px; color: var(--muted); font-size: 13px; }
.follow input { width: 16px; height: 16px; accent-color: var(--blue); }
.speed select { padding: 3px 5px; color: #11233f; border: 1px solid #d7e0ed; border-radius: 5px; background: white; font: inherit; }
.stockpile-search { margin-top: 0; }
.stockpile-search summary { min-height: 34px; padding-block: 6px; }
.queue-filters, .queue-filters form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.queue-filters form { margin: 0; }
.queue-filters label { display: grid; gap: 4px; font-size: 13px; }
.queue-filters select, .queue-filters input { max-width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #ccd8e8; background: white; border-radius: 8px; font: inherit; }
.queue-filters input { width: 130px; }
.queue .list-note { padding: 4px 0 9px; }
.stockpile-table { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.queue-grid { display: grid; grid-template-columns: minmax(55px,.6fr) minmax(120px,1.65fr) minmax(105px,1.25fr) minmax(95px,1fr); align-items: center; gap: 0 10px; padding: 0 14px; }
.queue-columns { min-height: 35px; background: #f3f6fa; border-bottom: 1px solid var(--line); color: #445a75; font-size: 12px; font-weight: 650; }
#queue-viewport { overflow: auto; overscroll-behavior-y: contain; overflow-anchor: none; height: clamp(240px,48vh,510px); outline-offset: -3px; }
#queue-viewport:focus-visible { outline: 3px solid #0752ce; }
#queue-body { position: relative; min-width: 0; }
.queue-row { position: absolute; left: 0; right: 0; height: 60px; background: #fff; border-bottom: 1px solid #e7edf5; font-size: 13px; }
.queue-row .col-number { color: var(--muted); font-variant-numeric: tabular-nums; }
.queue-row .col-saved, .queue-row .col-demo { color: var(--muted); }
.col-address { min-width: 0; overflow: hidden; white-space: nowrap; }
.address-mask { display: inline-block; color: #425a7b; letter-spacing: .5px; line-height: 20px; font-size: 13px; filter: blur(2.5px); user-select: none; }
.queue-link { text-align: left; padding: 6px 0; border: 0; background: transparent; color: var(--blue); font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.queue-row[data-demo-state="current"] { background: #e8f1ff; box-shadow: inset 3px 0 var(--blue); }
.queue-row[data-demo-state="current"] .col-demo { color: #0744bd; font-weight: 700; }
.queue-row[data-demo-state="complete"] .col-demo { color: #17654e; }
@media(min-width:850px) {
  .playback-tools { float: right; }
  .stockpile-search { min-height: 40px; margin-top: 2px; }
  .stockpile-search[open] .queue-filters { clear: both; padding-top: 8px; }
  .queue .list-note { clear: both; }
}
@media(max-width:760px) {
  .queue { padding: 14px; }
  .demo-note { margin: 6px 0 10px; font-size: 13px; }
  .workspace-heading h1 { font-size: 24px; }
  .demo-button { min-width: 106px; padding-inline: 12px; font-size: 14px; }
  .stockpile-search summary { min-height: 32px; padding-block: 4px; }
  #queue-viewport { height: clamp(235px,47vh,430px); }
}
@media(max-width:570px) {
  .queue { padding: 12px; }
  #queue-heading { font-size: 20px; }
  .queue-grid { grid-template-columns: minmax(40px,.55fr) minmax(82px,1.55fr) minmax(65px,.85fr); column-gap: 6px; padding: 0 7px; }
  .queue-columns { font-size: 11px; }
  .queue-columns .col-saved { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .queue-row { grid-template-rows: 28px 30px; font-size: 12px; }
  .queue-row .col-number, .queue-row .col-demo { grid-row: 1/3; }
  .queue-row .col-number { grid-column: 1; }
  .queue-row .col-address { grid-area: 1/2; align-self: end; }
  .queue-row .col-saved { grid-area: 2/2; align-self: start; color: var(--muted); font-size: 11px; }
  .queue-row .col-saved .queue-link { padding: 2px 0; }
  .queue-row .col-demo { grid-column: 3; }
  .queue .list-note { font-size: 12px; }
}
.routing { margin: 18px 0 24px; }
.routing h3 { font-size: 17px; line-height: 24px; }
.routing .snapshot-details { margin-top: 8px; }
.queue-row .col-saved { line-height: 16px; }
@media(max-width:570px) {
  .queue-row .col-saved { line-height: 13px; }
  .queue-row .col-saved .queue-link { line-height: 13px; padding: 0; }
}

.visitor-form {max-width: 38rem; display: grid; gap: 14px;}
.visitor-form label {display: grid; gap: 5px; font-weight: 650;}
.visitor-form input {width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #9db1cc; border-radius: 7px; color: var(--ink,#11233f); font-size: 16px;}
.visitor-form details {margin: 0; font-size: inherit;}
.visitor-form details label {margin: 9px 0;}
.visitor-form summary {padding: 5px 0;}
.visitor-form .action, .sample-actions .action {width: fit-content; border: 0;}
.sample-actions {display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px;}
.sample-rows {padding: 0; margin-top: 15px; list-style: none;}
.sample-rows li {display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; border-top: 1px solid var(--line); padding: 12px 0;}
.sample-rows li span, .sample-feedback {color: var(--muted); font-size: 13px;}
.sample-feedback:not(:empty) {margin-top: 12px;}
.sample-inquiry {margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px;}
.sample-inquiry h3 {font-size: 17px;}
.visitor-design {padding: 0;}
.visitor-email-frame {display: block; width: 100%; height: clamp(440px,70vh,750px); border: 0; background: white;}
.brand-detail, #workspace-identity, #folder-heading, .sample-inquiry dd, #sample-workspace {overflow-wrap: anywhere;}
