:root {
  --paper: #f7f6f0;
  --card: #fffefa;
  --ink: #293429;
  --muted: #72796b;
  --line: #e4e5db;
  --accent: #3e593c;
  --accent-hover: #2f452e;
  --warm: #bc6b47;
  --radius: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button, a, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--warm); }
a { color: inherit; }
p { line-height: 1.6; }
.wrap { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }
.topbar { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 25px; font-weight: 700; letter-spacing: -1px; white-space: nowrap; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; background: var(--accent); color: #faf9f2; font-size: 22px; font-weight: 600; letter-spacing: -2px; padding-right: 2px; }
.brand-dot { color: var(--warm); }
.main-nav { display: flex; align-items: center; gap: 25px; }
.main-nav a { font-size: 12px; text-decoration: none; color: var(--muted); padding-block: 12px; }
.main-nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 20px; }
.status-pill, .usage-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); background: #eeeee5; border: 1px solid var(--line); border-radius: 30px; font-size: 10px; white-space: nowrap; padding: 7px 11px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #bd9a63; }
.status-pill.configured .status-dot { background: #6c8b5b; }
.quiet { border: 0; background: transparent; color: #58684e; padding: 6px 0; min-height: 32px; font-size: 12px; white-space: nowrap; }
.quiet:hover:enabled { color: var(--warm); }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding-block: 38px; }
.eyebrow { margin: 0 0 12px; color: #7b856f; font-size: 9px; font-weight: 650; letter-spacing: 1.7px; line-height: 1.5; }
.hero h1 { margin: 0; font-size: clamp(40px, 4vw, 51px); font-weight: 500; letter-spacing: -2.5px; line-height: 1.08; }
.hero-copy { font-size: 13px; color: var(--muted); margin: 18px 0 0; line-height: 1.7; }
.hero-note { width: 300px; flex-shrink: 0; padding-left: 30px; border-left: 1px solid #d9dccc; }
.small-label { font-size: 8px; font-weight: 600; letter-spacing: 1.5px; color: #8c9481; }
.hero-note p { font-size: 16px; line-height: 1.8; margin: 17px 0 0; font-weight: 400; color: #707d63; }
.hero-note strong { font-weight: 550; color: #394c32; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 22px; align-items: start; }
.share-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); gap: 36px; align-items: center; margin-bottom: 22px; }
.share-demo .section-copy { margin-bottom: 0; max-width: 470px; }
.share-demo-controls { min-width: 0; }
.share-demo-controls > label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.share-demo-controls > input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: #f8f9f3; color: #59674e; min-height: 42px; font-size: 12px; }
.share-demo-actions { display: flex; align-items: center; gap: 22px; margin-top: 12px; }
.share-demo-actions .quiet { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.share-demo-controls .form-status { margin-bottom: 0; }
.allowance { margin-bottom: 22px; }
.allowance .section-copy { margin-bottom: 15px; }
.allowance-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 14px; }
.allowance-stats dt { color: var(--muted); font-size: 11px; line-height: 1.5; }
.allowance-stats dd { margin: 4px 0 0; color: var(--accent); font-size: 23px; font-weight: 550; letter-spacing: -.7px; line-height: 1.4; }
.allowance-stats > div:nth-child(2) dd { color: #89704c; }
.allowance-meter { display: flex; height: 7px; overflow: hidden; border-radius: 10px; background: #e9ecdf; }
.allowance-used-bar { width: 0; background: var(--accent); }
.allowance-reserved-bar { width: 0; background: #c6ac81; }
.allowance .field-help { max-width: 890px; }
#allowance-updated { margin-top: 5px; font-size: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 2px 3px #27302302; min-width: 0; }
.card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.card-heading > div { min-width: 0; }
.card-heading .eyebrow { margin-bottom: 7px; font-size: 8px; letter-spacing: 1.4px; }
h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.7px; line-height: 1.25; overflow-wrap: anywhere; }
h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.35px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.section-copy { font-size: 12px; line-height: 1.7; margin: 14px 0 19px; }
.field-help { font-size: 10.5px; color: var(--muted); line-height: 1.6; margin: 8px 0 0; }
.card-footnote { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 13px; }
.empty-state { font-size: 12px; color: #8f9686; margin: 25px 0 22px; line-height: 1.7; }
.messages, .saved-call-list, .rule-list { max-height: 340px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cbd2c0 transparent; }
.message { padding: 18px 0 12px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.message-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 9px; }
.message-head strong { font-size: 13px; font-weight: 600; }
.message time { display: block; font-size: 10px; color: #909786; margin-top: 6px; }
.urgency-label { font-size: 9px; color: #945932; background: #f5eadb; border-radius: 4px; padding: 3px 6px; white-space: nowrap; }
.message-note { white-space: pre-wrap; font-size: 12px; color: #586350; margin: 11px 0 0; line-height: 1.65; }
.message-contact { font-size: 11px; color: var(--muted); margin: 9px 0 0; }
.message-actions { display: flex; justify-content: flex-end; align-items: center; gap: 20px; margin-top: 9px; }
.message-actions .quiet { font-size: 11px; }
.delete-message { border: 0; background: none; color: #a66247; padding: 6px 0; min-height: 32px; font-size: 11px; white-space: nowrap; }
.delete-message:hover:enabled { color: #7c3e28; }
.saved-call { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid var(--line); padding: 17px 0; }
.saved-call-identity { min-width: 0; overflow-wrap: anywhere; }
.saved-call-identity strong { display: block; font-size: 12px; font-weight: 600; }
.saved-call-identity time { display: block; font-size: 10px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.saved-call-actions { display: flex; align-items: center; gap: 17px; flex-shrink: 0; }
.saved-call-actions .quiet, .saved-call-actions .delete-message { font-size: 11px; }
.saved-call-meta { margin: 7px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.saved-call-cost { margin: 7px 0 0; font-size: 11px; line-height: 1.5; color: #4f6548; }
.saved-call-components { margin: 3px 0 0; font-size: 10px; line-height: 1.5; color: var(--muted); }
.cost-breakdown { margin: 14px 0 16px; padding: 15px; background: #f3f5ec; border: 1px solid #e1e6d5; border-radius: 9px; overflow-wrap: anywhere; }
.cost-heading { margin: 0; font-size: 12px; line-height: 1.5; font-weight: 600; color: #3e593c; }
.cost-components { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 12px 0 0; }
.cost-components dt { font-size: 10px; color: var(--muted); line-height: 1.5; }
.cost-components dd { margin: 3px 0 0; font-size: 15px; line-height: 1.5; font-weight: 550; }
.cost-note { margin-top: 11px; }
.saved-transcript { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 22px; }
.saved-turns { max-height: 450px; overflow-y: auto; margin-top: 17px; scrollbar-width: thin; scrollbar-color: #cbd2c0 transparent; }
.saved-turn { padding: 14px 0; border-top: 1px solid var(--line); }
.saved-turn strong { font-size: 11px; }
.saved-turn time { font-size: 10px; color: var(--muted); margin-left: 12px; }
.saved-turn p { font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 0; }
.preferences, .caller-rules, .connection { margin-top: 22px; }
.preferences > .section-copy, .caller-rules > .section-copy { max-width: 800px; }
.preferences-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 23px; }
.full-width { grid-column: 1 / -1; }
.field { min-width: 0; }
.field label, dialog label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
.field input, .field select, .field textarea, dialog input { width: 100%; border: 1px solid #dce0d3; border-radius: 7px; background: #fff; color: var(--ink); padding: 11px 12px; font-size: 12px; min-height: 42px; box-shadow: 0 1px 1px #00000002; }
.field textarea { resize: vertical; line-height: 1.6; min-height: 87px; }
.field input::placeholder, .field textarea::placeholder { color: #9b9f91; }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: #f7f7f0; color: #8c9383; }
.optional { font-size: 10px; font-weight: 400; color: #909685; margin-left: 4px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.form-status { min-height: 18px; margin: 12px 0 8px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.form-footer .form-status { margin: 0; }
.primary { border: 0; background: var(--accent); color: #fffef6; display: inline-flex; justify-content: center; align-items: center; gap: 20px; padding: 13px 19px; min-height: 42px; font-size: 12px; font-weight: 600; border-radius: 8px; white-space: nowrap; }
.primary:hover:enabled { background: var(--accent-hover); }
.primary span { font-size: 18px; line-height: 12px; font-weight: 400; }
.rule-form { display: grid; grid-template-columns: 1.1fr 1.2fr 1.3fr 125px; align-items: end; gap: 15px; margin-top: 23px; }
.rule-form .primary { padding-inline: 12px; width: 100%; }
.caller-rule { display: grid; grid-template-columns: minmax(0, 1fr) 180px 110px; align-items: center; gap: 22px; border-top: 1px solid var(--line); padding: 16px 0; }
.rule-identity { min-width: 0; overflow-wrap: anywhere; }
.rule-identity strong { display: block; font-size: 12px; font-weight: 600; }
.rule-identity > span { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
.rule-route { font-size: 10px; padding: 6px 8px; border-radius: 5px; width: fit-content; }
.rule-route.message { background: #e8eee1; color: #48673f; }
.rule-route.bait { background: #f2e8dd; color: #815c40; }
.rule-actions { display: flex; align-items: center; justify-content: flex-end; gap: 21px; }
.rule-actions .quiet { font-size: 11px; }
.connection .card-heading h2 { font-size: 17px; }
.connection .section-copy { margin-bottom: 21px; }
.connection-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.connection-steps > div { display: flex; gap: 10px; align-items: flex-start; }
.check { width: 23px; height: 23px; display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; border: 1px solid #d5dbc9; border-radius: 50%; font-size: 10px; color: #8e987f; }
.check.done { background: #e3ecdb; color: #48703b; border-color: #d3e0c7; }
.connection-steps strong { display: block; font-size: 11px; font-weight: 600; margin: 3px 0 6px; }
.connection-steps div div span { display: block; font-size: 10px; line-height: 1.5; color: var(--muted); }
.footer { display: flex; justify-content: space-between; gap: 25px; margin: 26px 0 32px; font-size: 10px; line-height: 1.6; color: #929985; }
.notice { margin: 0 0 20px; padding: 12px 16px; font-size: 12px; line-height: 1.6; color: #7a572d; background: #fff1dc; border: 1px solid #e4cfad; border-radius: 8px; overflow-wrap: anywhere; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .95em; overflow-wrap: anywhere; }
dialog { width: min(450px, calc(100% - 36px)); border: 1px solid #d7dccd; border-radius: 17px; padding: 33px; background: var(--paper); box-shadow: 0 30px 100px #0003; }
dialog::backdrop { background: #253122bb; backdrop-filter: blur(5px); }
dialog h2 { margin: 24px 0 13px; font-size: 25px; font-weight: 550; letter-spacing: -.8px; }
dialog p { font-size: 12px; color: var(--muted); line-height: 1.7; }
dialog label { margin-top: 23px; }
dialog .primary { margin-top: 4px; width: 100%; justify-content: space-between; }
dialog .login-error { color: #a64e2d; min-height: 18px; font-size: 11px; margin: 11px 0; }
dialog .field-help { font-size: 10.5px; margin-top: 18px; }
dialog .remember-option { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; line-height: 1.5; margin: 19px 0 0; cursor: pointer; }
dialog .remember-option input { flex: 0 0 18px; width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: var(--accent); box-shadow: none; }
dialog .session-help { margin-top: 6px; padding-left: 28px; }
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; padding: 12px; background: #fff; z-index: 10; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 48px); }
  .topbar { gap: 20px; }
  .main-nav { gap: 18px; }
  .top-actions { gap: 13px; }
  .brand { font-size: 23px; }
  .card { padding: 23px; }
  .dashboard-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); gap: 18px; }
  .saved-call { flex-direction: column; align-items: flex-start; gap: 8px; }
  .saved-call-actions { gap: 24px; }
  .rule-form { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 800px) {
  .main-nav { display: none; }
  .hero { gap: 30px; }
  .hero-note { width: 245px; padding-left: 22px; }
  .hero-note p { font-size: 14px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .share-demo { grid-template-columns: 1fr; gap: 20px; }
  .saved-call { flex-direction: row; align-items: center; gap: 15px; }
  .messages, .saved-call-list { max-height: 350px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .topbar { min-height: 78px; gap: 12px; }
  .brand { font-size: 23px; gap: 10px; }
  .brand-mark { width: 35px; height: 35px; font-size: 20px; border-radius: 10px; }
  .status-pill { display: none; }
  .hero { padding-block: 29px; }
  .hero h1 { font-size: 40px; letter-spacing: -2px; }
  .hero-copy { font-size: 12px; }
  .hero-note { display: none; }
  .eyebrow { font-size: 8px; }
  .card { padding: 23px; }
  .card-heading { gap: 15px; }
  h2 { font-size: 20px; }
  .section-copy { font-size: 12px; }
  .dashboard-grid { gap: 16px; }
  .share-demo { margin-bottom: 16px; }
  .allowance { margin-bottom: 16px; }
  .allowance-stats { gap: 12px; }
  .allowance-stats dd { font-size: 21px; }
  .preferences, .caller-rules, .connection { margin-top: 16px; }
  .preferences-form, .rule-form { grid-template-columns: 1fr; gap: 18px; }
  .field input, .field select, .field textarea, dialog input { font-size: 16px; }
  .field textarea { font-size: 14px; }
  .field-help { font-size: 11px; }
  .form-footer { flex-direction: column; align-items: stretch; gap: 13px; }
  .form-footer .primary { width: 100%; }
  .saved-call { flex-direction: column; align-items: flex-start; gap: 8px; }
  .saved-call-actions { gap: 25px; }
  .saved-turns { max-height: 390px; }
  .caller-rule { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .rule-identity { grid-column: 1 / -1; }
  .rule-route { font-size: 11px; }
  .connection .card-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .usage-pill { font-size: 10px; }
  .connection-steps { grid-template-columns: 1fr; gap: 18px; }
  .connection-steps strong { margin-top: 2px; }
  .connection-steps div div span { font-size: 11px; }
  .footer { flex-direction: column; gap: 6px; font-size: 9px; }
  dialog { padding: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
