/* easyRep dashboard */
:root {
  --red: #d6402f;
  --red-deep: #a92f21;
  --orange: #f39237;
  --peach: #fff1e6;
  --bg: #fbf7f4;
  --panel: #ffffff;
  --side: #fffaf6;
  --text: #2b1d18;
  --soft: #4a3a33;
  --muted: #7a6a63;
  --line: #efe3da;
  --accent: var(--red);
  --accent-soft: #fdebe4;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --ok: #1d7a4a;
  --ok-soft: #e8f6ee;
  --warn-soft: #fff4e2;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120f; --panel: #211a16; --side: #1c1613; --text: #f3ebe6; --soft: #d9ccc5; --muted: #a8968d; --line: #3a2e28;
    --accent: #f06b4f; --accent-soft: #3a211b; --peach: #3a2618; --danger: #f97066; --danger-soft: #3a1f1e;
    --ok: #47cd89; --ok-soft: #173326; --warn-soft: #3a3120;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; margin: 0; }
h2 { font-size: 1.15rem; margin: 0 0 .8rem; }
h3 { font-size: 1.02rem; margin: 0 0 .2rem; }
.muted, .hint { color: var(--muted); font-size: .9rem; }
.hint { font-weight: normal; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin: 0 0 .3rem; }

/* ---------- logo */
.logo { display: inline-flex; align-items: center; font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px 8px 8px 3px; background: linear-gradient(135deg, var(--red), var(--orange)); margin-right: .5rem; }
.logo-rep { color: var(--red); font-style: italic; }

/* ---------- app frame */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: linear-gradient(90deg, var(--side) 249px, var(--line) 249px, var(--line) 250px, transparent 250px); }
.side { background: var(--side); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { padding: 0 8px; }
.side .business { font-weight: 600; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; }
.switch { display: flex; gap: .35rem; }
.switch select { margin: 0; padding: .35rem .5rem; font-size: .88rem; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side nav a { display: flex; justify-content: space-between; align-items: center; padding: .5rem .7rem; border-radius: 9px; color: var(--soft); font-size: .93rem; font-weight: 500; }
.side nav a:hover { background: var(--accent-soft); text-decoration: none; color: var(--text); }
.side nav a.active { background: var(--panel); color: var(--accent); font-weight: 600; box-shadow: 0 1px 2px rgba(43, 29, 24, .06); border: 1px solid var(--line); }
.side .group { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 14px 10px 4px; font-weight: 700; }
.badge { background: linear-gradient(135deg, var(--red), var(--orange)); color: #fff; border-radius: 999px; padding: 0 .45rem; font-size: .72rem; font-weight: 700; min-width: 1.4rem; text-align: center; }
.me { border-top: 1px solid var(--line); padding: 12px 8px 0; font-size: .88rem; }
.me-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-links { display: flex; gap: .9rem; margin-top: .3rem; align-items: center; }
.me-links form { margin: 0; }
.tag { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: .05rem .5rem; font-size: .72rem; font-weight: 600; font-family: var(--sans); }

.content { padding: 28px 36px 60px; max-width: 1100px; width: 100%; }
.head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.filters { display: flex; gap: .25rem; margin-left: auto; }
.filters a { padding: .3rem .8rem; border-radius: 999px; color: var(--muted); font-size: .9rem; }
.filters a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.notice { background: var(--ok-soft); color: var(--ok); padding: .7rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.error { background: var(--danger-soft); color: var(--danger); padding: .7rem 1rem; border-radius: 12px; margin-bottom: 1rem; }
.error ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.empty { background: var(--panel); border: 1.5px dashed var(--line); border-radius: 14px; padding: 2rem; text-align: center; color: var(--muted); }

table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 1rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--side); }
tr:last-child td { border-bottom: 0; }
tr.highlight td { background: var(--warn-soft); }
td.clip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }

.pill { display: inline-block; padding: .12rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pill.ok, .pill.order_placed, .pill.transferred { background: var(--ok-soft); color: var(--ok); }
.pill.message_taken, .pill.warn { background: var(--warn-soft); color: #9a5b00; }
.pill.failed { background: var(--danger-soft); color: var(--danger); }

.cards { display: grid; gap: .8rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.3rem; margin-bottom: 1rem; }
.cards .card { margin: 0; }
.card.soft { background: linear-gradient(160deg, var(--panel), var(--peach)); }
.card.urgent { border-left: 4px solid var(--danger); }
.card p { margin: .5rem 0; white-space: pre-wrap; }
.card summary { cursor: pointer; font-weight: 600; }
.narrow-card { max-width: 520px; }
.row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.right { margin-left: auto; }
.items { margin: .5rem 0; padding-left: 1.1rem; }
form.inline { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
ul.plain { margin: 0; padding-left: 1.1rem; }
ul.plain li { margin-bottom: .35rem; }

.transcript { display: flex; flex-direction: column; gap: .6rem; max-width: 760px; }
.line { display: flex; flex-direction: column; }
.line .who { font-size: .75rem; color: var(--muted); margin: 0 .3rem .15rem; }
.line .bubble { padding: .6rem .9rem; border-radius: 14px; max-width: 85%; white-space: pre-wrap; }
.line.caller .bubble { background: var(--panel); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.line.agent { align-items: flex-end; }
.line.agent .bubble { background: var(--peach); border-bottom-right-radius: 4px; }
.line.tool { align-self: center; font-size: .82rem; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: 999px; padding: .25rem .8rem; }
.line.tool span { font-weight: 600; color: var(--text); }

/* ---------- forms */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .9rem; }
label .hint { display: block; margin-top: .1rem; }
input, select, textarea { display: block; width: 100%; margin-top: .3rem; padding: .6rem .7rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-weight: normal; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(243, 146, 55, .2); }
input:disabled, select:disabled, textarea:disabled { opacity: .7; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--red); }
label.check, label.radio { display: flex; gap: .55rem; align-items: center; font-weight: normal; flex-wrap: wrap; }
label.check input, label.radio input { width: auto; margin: 0; }
label.check .hint { display: inline; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: end; }
.grid-form label:nth-child(5) { grid-column: 1 / -1; }
.money { display: inline-flex; align-items: center; gap: .2rem; }
.money input { width: 110px; margin: 0; display: inline-block; }
.hours { border: 0; background: transparent; }
.hours td { border: 0; padding: .3rem .5rem .3rem 0; vertical-align: middle; background: transparent; }
.hours input, .hours select { margin: 0; }
.inline-input { width: 200px; margin: 0; display: inline-block; }
.search-row { display: flex; gap: .5rem; margin: .5rem 0 1rem; max-width: 560px; }
.search-row input { margin: 0; }

button { background: linear-gradient(135deg, var(--red), #e2582f); color: #fff; border: 0; border-radius: 999px; padding: .6rem 1.2rem; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
button:hover { filter: brightness(1.06); }
button.secondary { background: var(--accent-soft); color: var(--accent); }
button.danger { background: var(--danger-soft); color: var(--danger); }
button.small { padding: .3rem .8rem; font-size: .84rem; }
button.link { background: none; color: var(--accent); padding: 0; font-weight: 500; }
button.wide { width: 100%; }
.btn-link { font-weight: 600; white-space: nowrap; }

/* ---------- getting started */
.progress { width: 100%; height: 10px; border-radius: 999px; overflow: hidden; margin: 0 0 1.4rem; appearance: none; border: 0; background: var(--line); }
.progress::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
.progress::-webkit-progress-value { background: linear-gradient(90deg, var(--red), var(--orange)); border-radius: 999px; }
.progress::-moz-progress-bar { background: linear-gradient(90deg, var(--red), var(--orange)); border-radius: 999px; }
ol.steps { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .7rem; }
.step { display: flex; align-items: center; gap: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.2rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }
.step .check { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.step.done .check { background: var(--ok); border-color: var(--ok); }
.step.waiting .check { background: var(--orange); border-color: var(--orange); }
.step .btn-link { margin-left: auto; }
.live-card { background: linear-gradient(135deg, var(--red-deep), var(--red) 60%, var(--orange)); color: #fff; border: 0; }
.live-card .eyebrow, .live-card .muted { color: rgba(255, 255, 255, .85); }
.live-card h2 { font-size: 1.6rem; color: #fff; }
.waiting-card { border-left: 4px solid var(--orange); }
.admin-card { border: 1.5px dashed var(--orange); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-card p { margin: 0; flex: 1; }

/* ---------- voice & numbers */
.voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.voice { display: flex; gap: .7rem; align-items: flex-start; background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px; padding: .9rem; font-weight: normal; margin: 0; cursor: pointer; }
.voice:has(input:checked), .voice.selected { border-color: var(--red); background: linear-gradient(160deg, var(--panel), var(--peach)); }
.voice input { width: auto; margin-top: .3rem; }
.voice-body { flex: 1; min-width: 0; }
.voice p { margin: .2rem 0 .5rem; font-size: .86rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.voice audio { width: 100%; height: 34px; }
.sticky-save { position: sticky; bottom: 0; padding: 1rem 0; background: linear-gradient(0deg, var(--bg) 60%, transparent); }
.number-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.number-option { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .9rem; }
.number-option:hover { border-color: var(--orange); }
.number-option div { display: flex; flex-direction: column; }
.number-option .muted { font-size: .8rem; }
ul.numbers { list-style: none; padding: 0; margin: 0 0 .5rem; }
ul.numbers li { font-size: 1.2rem; font-family: var(--serif); margin-bottom: .3rem; }

/* ---------- plan & usage */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1rem; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.2rem; display: flex; flex-direction: column; }
.stat span { font-size: .82rem; color: var(--muted); }
.stat strong { font-family: var(--serif); font-size: 1.9rem; }
.stat em { font-style: normal; font-size: .85rem; color: var(--muted); }
.bar { width: 100%; height: 8px; margin-top: .6rem; appearance: none; border: 0; border-radius: 999px; background: var(--line); }
.bar::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
.bar::-webkit-progress-value { background: var(--ok); border-radius: 999px; }
.bar::-moz-progress-bar { background: var(--ok); border-radius: 999px; }
.bar.warn::-webkit-progress-value { background: var(--orange); }
.bar.warn::-moz-progress-bar { background: var(--orange); }
.bar.over::-webkit-progress-value { background: var(--danger); }
.bar.over::-moz-progress-bar { background: var(--danger); }
.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.pick { display: flex; gap: .6rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem; font-weight: normal; cursor: pointer; margin: 0; }
.pick input { width: auto; margin-top: .25rem; }
.pick:has(input:checked), .pick.selected { border-color: var(--red); background: var(--peach); }
.pick small { color: var(--muted); }

/* ---------- sign-in */
body.plain { background: radial-gradient(800px 380px at 100% 0, rgba(243, 146, 55, .18), transparent 60%), var(--bg); }
main.login { max-width: 420px; margin: 9vh auto 40px; padding: 0 16px; display: flex; flex-direction: column; gap: 1.2rem; align-items: stretch; }
main.login .logo { align-self: center; font-size: 1.8rem; }
main.login .card { padding: 1.8rem; border-radius: 20px; box-shadow: 0 12px 32px -14px rgba(169, 47, 33, .25); }
main.login h1 { margin-bottom: .3rem; }
main.login form { margin-top: 1rem; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; background: none; }
  .side { position: static; height: auto; }
  .side nav { flex-direction: row; flex-wrap: wrap; }
  .side .group { width: 100%; margin-top: 6px; }
  .content { padding: 20px 16px 40px; }
  .stats, .plan-pick, .two, .grid-form { grid-template-columns: 1fr; }
  th:nth-child(5), td:nth-child(5) { display: none; }
}

/* ---------- number search, cart, API spending */
.search-grid { display: grid; grid-template-columns: 1.2fr 1fr .7fr .8fr auto; gap: 12px; align-items: end; margin-top: .5rem; }
.search-grid label { margin-bottom: 0; }
table.results td { vertical-align: middle; }
.right-cell { text-align: right; }
.cart-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; align-items: start; }
table.cart { border: 0; margin-bottom: 1rem; }
table.cart td { vertical-align: middle; }
table.cart tfoot td { border-top: 2px solid var(--line); border-bottom: 0; background: var(--side); }
td.num { text-align: right; white-space: nowrap; }
.qty { width: 90px; display: inline-block; margin: 0 0 0 .4rem; }
.inline-label { display: inline-flex; align-items: center; margin: 0; }
h2.spaced { margin-top: 1.4rem; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
table.budgets td { vertical-align: middle; }
table.budgets select { margin: 0; }
.rates { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.rates label:nth-child(5) { grid-column: auto; }
.rates label { display: flex; flex-direction: column; gap: .3rem; }
.rates .money input { width: 130px; }
.warn-notice { background: var(--warn-soft); color: #9a5b00; }
.card.extras .row { gap: 1rem; }
@media (max-width: 860px) {
  .search-grid, .cart-grid, .stats.four { grid-template-columns: 1fr; }
}

/* ---------- clients, service reminders, emails */
a.button { display: inline-block; background: linear-gradient(135deg, var(--red), #e2582f); color: #fff; border-radius: 999px; padding: .55rem 1.1rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
a.button:hover { filter: brightness(1.06); }
.head-actions { display: inline-flex; gap: 1rem; align-items: center; }
.head h2 { margin: 0; }
.card > .head { margin-bottom: .4rem; }
.search-grid.three, .service-grid { grid-template-columns: repeat(3, 1fr); }
.visit-form { grid-template-columns: 1.4fr .9fr .9fr 1.2fr auto; margin-bottom: .4rem; }
.pair { display: flex; gap: .5rem; align-items: center; }
.pair input { width: 90px; flex: none; }
.pair span { font-weight: normal; white-space: nowrap; }
form.stack label:last-of-type { margin-bottom: .9rem; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
.consent-record { background: var(--side); border: 1px dashed var(--line); border-radius: 12px; padding: .6rem .9rem; margin: .6rem 0; }
.consent-record p { margin: .3rem 0; }
.failed-text, .danger-text { color: var(--danger); }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--danger-soft); border-radius: 16px; padding: 1rem 1.3rem; background: var(--panel); }
.danger-zone p { margin: 0; }
.form-share { display: flex; gap: 1.5rem; align-items: flex-start; }
.form-share .qr { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.form-share .qr svg { width: 180px; height: 180px; border-radius: 8px; }
.grow { flex: 1; min-width: 0; }
input.copy { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem; background: var(--side); }
details.rule summary { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
details.rule summary .pill { margin-left: auto; }
details.rule[open] summary { margin-bottom: 1rem; }
ul.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
ul.checklist li { display: flex; gap: .6rem; align-items: center; }
ul.checklist .check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: #fff; flex: none; }
ul.checklist li.done .check { background: var(--ok); border-color: var(--ok); }
ul.checklist li.done { color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: .6rem 0 1rem; }
.slot { border: 1.5px dashed var(--line); border-radius: 12px; padding: .6rem .8rem; display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; }
.slot span { font-weight: 600; }
.slot.filled { border-style: solid; border-color: var(--orange); background: var(--peach); }
.ai-card { background: linear-gradient(160deg, var(--panel), var(--peach)); }
.ai-card .search-row { max-width: none; }
.row.wrap { gap: .8rem; }
code { background: var(--side); border: 1px solid var(--line); border-radius: 6px; padding: 0 .3rem; font-size: .85em; }
/* public form */
main.public-form { max-width: 520px; margin: 6vh auto 40px; padding: 0 16px; }
main.public-form .biz-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; text-align: center; margin: 0 0 1rem; }
main.public-form .card { padding: 1.6rem; border-radius: 20px; box-shadow: 0 12px 32px -14px rgba(169, 47, 33, .25); }
main.public-form form + form { margin-top: .6rem; }
main.public-form .powered { font-size: .8rem; margin-top: 1rem; }
label.consent { align-items: flex-start; flex-wrap: nowrap; font-size: .88rem; line-height: 1.45; background: var(--side); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; }
label.consent input { margin-top: .2rem; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) {
  .search-grid.three, .service-grid, .visit-form, .slots { grid-template-columns: 1fr; }
  .form-share, .danger-zone { flex-direction: column; align-items: stretch; }
}
.pill.neutral { background: var(--side); color: var(--muted); border: 1px solid var(--line); }
details.rule summary .muted { font-weight: 500; }
.search-grid.three, .service-grid { margin-bottom: .9rem; }
.pair { margin-top: .3rem; }
.pair input, .pair select { margin-top: 0; }
.visit-form label .hint { display: inline; margin-left: .3rem; }
/* ---------- plan & usage services */
.account-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1rem; align-items: start; }
.account-grid > div > h2 { margin: .2rem 0; }
.service-card { margin-top: .8rem; }
.service-card.on { border-color: var(--orange); }
.service-card h3 { margin: 0; display: flex; gap: .5rem; align-items: center; }
.service-card p.muted { margin: .3rem 0 .8rem; }
.tier-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.tier-pick .pick { font-size: .88rem; }
.bill { position: sticky; top: 16px; }
table.bill-lines { border: 0; margin-bottom: .6rem; }
table.bill-lines td { border-bottom: 1px solid var(--line); padding: .5rem 0; background: transparent; }
table.bill-lines tr.discount td { color: var(--ok); font-weight: 600; }
table.bill-lines tfoot td { border: 0; font-weight: 700; padding-top: .7rem; }
table.bill-lines tfoot td.num { font-family: var(--serif); font-size: 1.3rem; }
.upsell { max-width: 620px; }
.upsell h1 { margin: .2rem 0 .6rem; }
.meters { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.meter span { display: block; font-size: .85rem; color: var(--muted); }
.meter span em { font-style: normal; margin-left: .3rem; }
.meter strong { font-family: var(--serif); font-size: 1.5rem; }
.meter small { font-family: var(--sans); font-size: .85rem; color: var(--muted); font-weight: 500; }
@media (max-width: 860px) {
  .account-grid, .meters { grid-template-columns: 1fr; }
  .tier-pick { grid-template-columns: 1fr 1fr; }
  .bill { position: static; }
}
/* ---------- free trial and more services */
.trial-banner { display: flex; gap: 1rem; align-items: center; justify-content: space-between; background: var(--warn-soft); border: 1px solid #f5d9a8; color: #6b4300; border-radius: 12px; padding: .7rem 1rem; margin-bottom: 1rem; }
.trial-banner.ended { background: var(--danger-soft); border-color: #f3c2bd; color: var(--danger); }
.trial-banner form { flex: none; }
.side nav a.more { color: var(--muted); }
.side nav a.more:hover { color: var(--accent); }
.tag.free { background: var(--ok-soft); color: var(--ok); }
.tag.soon { background: var(--side); color: var(--muted); border: 1px solid var(--line); }
.card.promo { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; background: linear-gradient(160deg, var(--panel), var(--peach)); border-color: #f6cfae; }
.card.promo h2 { margin: .1rem 0 .3rem; }
.card.promo p.muted { margin: 0; }
ul.ticks li { list-style: none; position: relative; padding-left: 1.4rem; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
ul.ticks { padding-left: 0; }
.trial-form .tier-pick { grid-template-columns: repeat(3, 1fr); margin-bottom: .6rem; }
@media (max-width: 860px) { .card.promo, .trial-banner { flex-direction: column; align-items: stretch; } .trial-form .tier-pick { grid-template-columns: 1fr; } }
.side nav a.more > span:first-child, .side nav a.more .tag { white-space: nowrap; }
.side nav a.more .tag { font-size: .68rem; }

/* guided setup: Start / Continue card on Get started, and Back / Next on each setup page */
.card.start-card { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; border-color: #f6cfae; background: linear-gradient(160deg, var(--panel), var(--accent-soft)); }
.card.start-card h2 { margin: 0 0 .3rem; }
.card.start-card p.muted { margin: 0; }
.card.start-card.done { background: linear-gradient(160deg, var(--panel), var(--ok-soft)); border-color: #bfe3cc; }
.flow-bar { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--panel); border: 1px solid #f6cfae; border-radius: 14px; padding: .75rem 1rem; margin-bottom: 1rem; position: sticky; top: .5rem; z-index: 5; box-shadow: 0 6px 18px -12px rgba(169, 47, 33, .35); }
.flow-bar.bottom { position: static; justify-content: flex-end; margin-top: 1.5rem; box-shadow: none; }
.flow-info { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; min-width: 0; }
.flow-count { color: var(--muted); font-size: .85rem; }
.flow-dots { display: inline-flex; gap: 4px; }
.flow-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.flow-dots i.past { background: var(--orange); }
.flow-dots i.now { background: var(--accent); width: 18px; border-radius: 4px; }
.flow-actions { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; }
.flow-back, .flow-exit { color: var(--soft); text-decoration: none; font-size: .92rem; }
.flow-exit { color: var(--muted); }
.flow-back:hover, .flow-exit:hover { text-decoration: underline; }
@media (max-width: 860px) { .card.start-card { flex-direction: column; align-items: stretch; } .flow-bar { position: static; } .flow-actions .button { flex: 1 1 100%; text-align: center; } }
.flow-bar a.button { white-space: normal; }
.head-action { margin-left: auto; }

/* Emails: numbered setup steps */
.email-steps { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.email-steps a { display: flex; gap: .55rem; align-items: center; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--soft); text-decoration: none; font-size: .9rem; min-width: 0; }
.email-steps .num { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-weight: 700; font-size: .85rem; }
.email-steps li.done .num { background: var(--ok-soft); color: var(--ok); }
.email-steps li.now a { border-color: var(--accent); color: var(--text); font-weight: 600; box-shadow: 0 0 0 3px var(--accent-soft); }
.email-steps li.now .num { background: var(--accent); color: #fff; }
.email-step h2 { margin-bottom: .2rem; }
.email-step > p.muted { margin-top: 0; }
.step-actions { display: flex; gap: 1rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: .5rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.step-actions .flow-back { margin-right: auto; }
.big-check { font-weight: 600; }
.settings-summary { list-style: none; padding: 0; margin: 0; }
.settings-summary li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--line); }
.settings-summary li:first-child { border-top: 0; }
.settings-summary p { margin: .15rem 0 0; }
.next-steps { list-style: none; padding: 0; margin: 0; }
.next-steps li { display: flex; gap: .7rem; align-items: flex-start; padding: .5rem 0; }
.next-steps li.done { color: var(--muted); }
.next-steps li.done a { display: none; }
@media (max-width: 860px) { .email-steps { grid-template-columns: 1fr 1fr; } }
.next-steps .check { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: #fff; }
.next-steps li.done .check { background: var(--ok); border-color: var(--ok); }

/* Emails inbox, rules, send, own domain */
.filter-tabs { display: inline-flex; gap: .3rem; flex-wrap: wrap; margin-left: auto; }
.filter-tabs a { padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); text-decoration: none; font-size: .85rem; }
.filter-tabs a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.error-note { font-size: .8rem; display: inline-block; max-width: 22rem; }
.group-tag { display: inline-block; margin: .15rem .15rem 0 0; text-decoration: none; background: var(--accent-soft); color: var(--red-deep); }
.send-form fieldset.audience { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.send-form legend { font-weight: 600; margin-bottom: .4rem; }
.pick-row { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.pick-row:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pick-row select { margin-top: .35rem; max-width: 100%; }
.rule-when { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; font-weight: 600; }
.rule-when input[type=number] { width: 6rem; }
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.card.preset { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--text); margin: 0; }
.card.preset:hover { border-color: var(--accent); }
.danger-zone { margin-top: 1rem; }
.from-card { display: flex; flex-direction: column; gap: .2rem; }
.from-card strong { font-size: 1.15rem; }
.address-row { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.address-row label { flex: 1 1 12rem; margin: 0; }
.address-row .at { padding-bottom: .65rem; font-weight: 700; }
.setup-list { padding-left: 1.2rem; display: grid; gap: .8rem; }
table.dns code.copy { user-select: all; word-break: break-all; }
.small { font-size: .8rem; }
@media (max-width: 860px) { .preset-grid { grid-template-columns: 1fr; } .filter-tabs { margin-left: 0; } }
.pick-row input[type=radio] { width: auto; flex: none; margin: .25rem 0 0; }
.pick-row > span { flex: 1; min-width: 0; font-weight: 400; }
.pick-row small { font-weight: 400; color: var(--muted); }
.rule-when select { width: auto; max-width: 100%; }
.rule-when input[type=number] { width: 6rem; flex: none; }
@media (max-width: 860px) {
  .content table { display: block; overflow-x: auto; }
  .head { min-width: 0; }
  .head > * { min-width: 0; overflow-wrap: anywhere; }
  .filter-tabs { max-width: 100%; }
  .settings-summary li { flex-wrap: wrap; }
  .settings-summary p, .from-card strong, .clip { overflow-wrap: anywhere; }
}
.content { min-width: 0; }
.setup-list > li { min-width: 0; overflow-wrap: anywhere; } .setup-list code { white-space: normal; word-break: break-all; }
