/* Hallmark: editorial workspace; reference ElevenLabs cream; app-specific polish. */
/* Critique: preserve working controls; replace red tint and cramped type with quiet, readable surfaces. */
/* Waiver: dense operational records need more than 80 words; existing app wiring retained. */
/* Waiver 24b: retained legacy app spacing protects existing dense controls and responsive grids; align to a strict 4px scale only after browser layout review. */
:root{--ui-paper:var(--color-bg,#fdfcfc);--ui-surface:var(--color-surface,#f5f3f1);--ui-line:var(--color-border,#ddd9d4);--ui-ink:var(--color-ink,#171513);--ui-muted:var(--color-muted,#68625b);--ui-overlay:#18161466;--ui-font:var(--font-body,Inter,Arial,sans-serif)}
dialog{border:1px solid var(--ui-line);border-radius:14px;padding:28px;width:min(660px,calc(100% - 28px));max-height:90vh;overflow:auto;box-shadow:0 20px 100px var(--ui-overlay)}dialog::backdrop{background:var(--ui-overlay)}.dialoghead{display:flex;align-items:center;justify-content:space-between;gap:15px}.dialoghead h2{margin:0 0 12px}.dialoghead button{font-size:22px}dialog label{display:block;font-size:13px;font-weight:600;margin:17px 0}dialog input,dialog textarea,dialog select{margin-top:6px}dialog .controls{display:grid;grid-template-columns:1fr 1fr;gap:15px}#consentList{max-height:250px;overflow:auto}#consentList article{border-bottom:1px solid var(--ui-surface);padding:15px 0;font-size:13px}#draftError,#consentError{color:var(--ui-muted)}.detail .message{white-space:pre-wrap}.detail .actions{margin-top:18px}.detail .badge{display:inline-block;margin-bottom:10px}.detail dl{display:grid;grid-template-columns:130px 1fr;gap:12px;font-size:13px}.detail dd{margin:0;overflow-wrap:anywhere}.detail dt{color:var(--ui-muted)}#page{align-self:center;font-size:13px}.notice{overflow-wrap:anywhere}@media(max-width:600px){dialog{padding:20px}dialog .controls{grid-template-columns:1fr}.pagehead{gap:15px;align-items:start}.detail dl{grid-template-columns:1fr}.detail dt{margin-top:8px}}
/* Existing app layout, rebased to editorial tokens. */
:root{color:var(--ui-ink);background:var(--ui-paper)}.notice,.badge{background:var(--ui-surface);color:var(--ui-muted)}.primary{background:var(--ui-muted);color:var(--ui-paper);border-color:var(--ui-muted)}.primary:hover{background:var(--ui-ink)}.leadCard.selected{border-color:var(--ui-muted);background:var(--ui-paper)}.message{background:var(--ui-paper);border-color:var(--ui-surface)}dialog::backdrop{background:var(--ui-overlay)}

html,body{overflow-x:clip}body{background:var(--ui-paper);color:var(--ui-ink);font-family:var(--ui-font)}
h1,h2,h3{min-width:0;overflow-wrap:break-word}h1{font-weight:300;letter-spacing:-.035em}h2{font-weight:400}p{line-height:1.65}
button,a.button,.button{border-radius:999px;min-height:44px}button{font-weight:500}input,select,textarea{border-radius:10px;min-height:44px;background:var(--ui-paper);border-color:var(--ui-line)}
:where(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--ui-ink);outline-offset:4px}
.eyebrow{text-transform:none;letter-spacing:0;font-size:13px;font-weight:400}.brand{color:var(--ui-ink)}
.notice,.provider,.read-only,.integrations,.warning{background:var(--ui-surface);color:var(--ui-muted);border-color:var(--ui-line);border-radius:20px;font-size:13px}
.metric,.metrics article,.detail-card,.leadCard,.detail,.record,dialog{border-color:var(--ui-line);border-radius:20px}.metric strong{color:var(--ui-ink);font-weight:300}.chip,.badge{background:var(--ui-surface);color:var(--ui-muted);border-radius:999px;font-size:13px}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

button:disabled{background:var(--ui-surface);color:var(--ui-muted);border:1px solid var(--ui-line);cursor:not-allowed;background:var(--ui-surface);color:var(--ui-muted);cursor:not-allowed}button:not(:disabled):active{transform:translateY(1px)}h1,h2{text-wrap:balance}

@media(max-width:720px){input,select,textarea{font-size:16px}}
