:root {
  --bg: #f5f2ec; --surface: #ffffff; --ink: #1c2629; --muted: #5d6a6e; --line: #e2ddd3;
  --accent: #0f5f63; --accent-soft: #e3efee; --warn: #8a5a00; --warn-soft: #fff1d6;
  --ok: #1d6b3a; --ok-soft: #e2f3e8; --danger: #a33a2c;
  --radius: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 720px; margin: 0 auto; padding: 16px 16px 48px; }
h1 { font-size: clamp(1.45rem, 5.5vw, 2rem); line-height: 1.2; margin: .2rem 0 .6rem; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 0; }
h3 { font-size: .95rem; margin: 1.1rem 0 .2rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.en { display: block; color: var(--muted); font-size: .85em; margin-top: .3rem; }
.honest { background: var(--warn-soft); border: 1px solid #f0d9a8; color: #4d3500; border-radius: var(--radius); padding: 12px 14px; font-size: .92rem; }
.hero { margin: 22px 0 14px; }
.kicker { margin: 0; color: var(--accent); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.lede { color: var(--muted); margin: 0; }

.flow { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.flow li { font-size: .8rem; padding: 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.flow li.global { border-style: dashed; }
.flow li.done { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.flow li.now { background: var(--accent); color: #fff; border-color: transparent; }

.phone, .card, .notes { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.phone { box-shadow: 0 8px 24px rgba(28, 38, 41, .06); }
.phone-top { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.timer { margin-left: auto; font-variant-numeric: tabular-nums; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #c9c3b8; }
.dot.live { background: #2e9d57; box-shadow: 0 0 0 4px rgba(46, 157, 87, .18); }
.caption { font-size: 1.12rem; line-height: 1.45; margin: 14px 0; min-height: 3em; }
.mic { background: var(--ok-soft); color: var(--ok); border-radius: 10px; padding: 8px 12px; font-weight: 600; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chips button { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--accent); background: #fff; color: var(--accent); font: inherit; font-size: .92rem; cursor: pointer; }
.typed { display: flex; gap: 8px; margin-bottom: 12px; }
.typed input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; }
button, .btn { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.phone-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.call { background: #2e9d57; border-color: #2e9d57; color: #fff; flex: 1; font-size: 1.05rem; }
.talk { background: var(--accent); border-color: var(--accent); color: #fff; flex: 1; }
.hang { background: var(--danger); border-color: var(--danger); color: #fff; }
.transcript { margin-top: 12px; font-size: .9rem; }
.transcript summary { cursor: pointer; color: var(--muted); min-height: 32px; }
.transcript ol { padding-left: 1.2rem; margin: 8px 0 0; }
.transcript li.you { color: var(--accent); }

.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #eee9df; color: var(--muted); white-space: nowrap; }
.badge.ph { background: var(--warn-soft); color: var(--warn); }
.badge.new { background: var(--accent-soft); color: var(--accent); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.facts { margin: 12px 0 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .88rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; }
.hint { color: var(--muted); font-size: .82rem; margin: 2px 0 8px; font-weight: 400; }
.plan { list-style: none; padding: 0; margin: 6px 0 0; }
.plan li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.plan li.empty { display: block; color: var(--muted); }
.plan .when { color: var(--muted); font-size: .82rem; text-align: right; white-space: nowrap; }
.plan .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--accent-soft); }
.plan .bar span { display: block; height: 100%; border-radius: 3px; background: var(--accent); }

.sms { background: #eef3f2; border-radius: 16px 16px 16px 4px; padding: 12px 14px; white-space: pre-wrap; font-size: .92rem; margin: 12px 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.rates summary { list-style: none; cursor: pointer; }
.rates summary::-webkit-details-marker { display: none; }
.rates summary h2::after { content: " ▾"; color: var(--muted); }
.rates table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: 10px; }
.rates th, .rates td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.rates input { width: 100%; min-width: 0; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; font: inherit; font-size: .85rem; }
.notes ul { padding-left: 1.1rem; margin: 10px 0; }
.notes li { margin-bottom: 6px; font-size: .93rem; }
.sig { margin: 14px 0 0; font-size: .9rem; }
.sig a { color: var(--accent); }
