:root{font-family:system-ui,sans-serif;color:var(--brand-text,#1f3b2c);background:var(--brand-background,#f5efe4)}*{box-sizing:border-box}body{margin:0}header,main{max-width:680px;margin:auto;padding:20px}header{border-bottom:3px solid var(--brand-border,#ca9650);display:flex;align-items:center;justify-content:space-between;gap:12px}.wordmark{font-weight:800;letter-spacing:.04em;font-size:18px}.wordmark small{display:block;font-weight:500;font-size:12px}img{max-width:180px;max-height:70px}h1{font-size:30px}section{background:var(--brand-card,#fffdf8);border-radius:16px;padding:24px;margin:20px 0;border:1px solid var(--brand-border,#ca9650)}label{display:block;font-weight:600;margin:14px 0 8px}input,button,.button{font:inherit;width:100%;min-height:48px;border-radius:8px;padding:12px}input{border:1px solid var(--brand-text,#1f3b2c)}button,.button{background:var(--brand-text,#1f3b2c);color:white;border:0;display:block;text-align:center;margin-top:16px;text-decoration:none}button{cursor:pointer}.secondary{background:var(--brand-secondary,#e27658);color:var(--brand-text,#1f3b2c)}a{color:var(--brand-text,#1f3b2c)}header button{margin:0;font-size:14px;padding:8px}p{line-height:1.6}.line{color:var(--brand-accent,#875719);font-weight:700}.invite{overflow-wrap:anywhere}footer{padding:20px;text-align:center} @media(max-width:420px){header,main{padding:16px}section{padding:20px}}

.owners-only{display:inline-block;margin:0 0 4px;padding:4px 10px;border-radius:999px;background:var(--brand-background,#f5efe4);border:1px solid var(--brand-border,#ca9650);color:var(--brand-accent,#875719);font-size:13px;font-weight:700;line-height:1.4}
textarea{font:inherit;width:100%;min-height:130px;border:1px solid var(--brand-text,#1f3b2c);border-radius:8px;padding:12px}article{border-bottom:1px solid var(--brand-border,#ca9650);padding:12px 0;overflow-wrap:anywhere}.preserve{white-space:pre-wrap}main{overflow-wrap:anywhere}nav a{display:inline-block;min-height:48px;padding:12px 4px}

.document-actions{margin-top:8px}

.doc-item{margin:14px 0}.doc-item+.doc-item{border-top:1px solid #ca9650;padding-top:12px}.doc-title{font-weight:700;margin:0 0 6px}
.account-menu{position:relative;max-width:55%}.account-menu summary{cursor:pointer;min-height:48px;padding:12px;border:1px solid var(--brand-border,#ca9650);border-radius:8px;font-weight:600}.account-menu nav{position:absolute;right:0;top:100%;min-width:180px;background:var(--brand-card,#fffdf8);padding:12px;border:1px solid var(--brand-border,#ca9650);border-radius:8px;z-index:10;box-shadow:0 8px 20px #0002}.account-menu nav a{display:block}input[readonly]{background:#eee9df}
select{font:inherit;width:100%;min-height:48px;border:1px solid var(--brand-text,#1f3b2c);border-radius:8px;padding:12px;background:var(--brand-card,#fffdf8)}fieldset{min-width:0;border:1px solid var(--brand-border,#ca9650);border-radius:12px;margin:20px 0;padding:16px}legend{font-weight:700}input[type=file]{max-width:100%}

.home-logo{display:inline-flex;align-items:center;text-decoration:none;color:inherit}.home-logo:focus-visible{outline:2px solid #ca9650;outline-offset:4px;border-radius:6px}
.prospect-filters{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}.prospect-filters button{margin:0;min-height:44px}fieldset{border:1px solid #b7c6b5;border-radius:12px;margin:1rem 0;padding:1rem}fieldset label{display:inline-flex;align-items:center;gap:.5rem;margin:.4rem;padding:.5rem;background:#edf2e8;border-radius:8px}fieldset input[type=radio]{width:auto;margin:0}.priority{display:inline-block;border-radius:1rem;padding:.15rem .65rem;background:#e1ebd8}article p{overflow-wrap:anywhere}li{margin:.6rem 0}input,textarea{max-width:100%;box-sizing:border-box}
/* Prospect actions: cedar primary, outlined secondary controls. */
.outline,.toggle-chip{background:transparent;color:var(--brand-text,#1f3b2c);border:1px solid var(--brand-text,#1f3b2c)}
.toggle-chip{width:auto;border-radius:24px;padding:9px 14px;font-size:14px}
.toggle-chip[aria-pressed=true],.choice-chip:has(input:checked){background:var(--brand-text,#1f3b2c);color:white}
.status-chip{display:inline-block;font-size:12px;font-weight:600;border-radius:20px;padding:4px 10px;background:#e1ebd8}
.phone-number{display:block;font-size:14px;font-weight:400;margin-top:3px}
.primary-call{font-weight:700;font-size:18px;padding:16px}
.prospect-contact>.outline{width:auto;display:inline-block;padding:8px 16px;font-size:14px}
.contact-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.contact-links .button{width:auto;min-height:44px;margin:0;padding:10px;font-size:14px;overflow-wrap:anywhere}
.prospect-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.prospect-search label{grid-column:1/-1;margin-bottom:0}.prospect-search button{margin:0;width:auto}
article>.button{display:inline-block;width:auto;min-height:44px;padding:8px 14px;margin-top:0;font-size:14px}article>.button .phone-number{display:inline;margin-left:6px}
.outcome-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0;border:0}.outcome-options legend{margin-bottom:12px}.outcome-options .choice-chip{position:relative;display:flex;justify-content:center;text-align:center;margin:0;padding:10px 6px;min-height:44px;border:1px solid var(--brand-text,#1f3b2c);background:transparent;font-size:14px;font-weight:500;cursor:pointer}
.choice-chip input{position:absolute;opacity:0;width:1px;min-height:0}.choice-chip:has(input:focus-visible){outline:3px solid #ca9650;outline-offset:2px}.outcome-options .muted{color:#59665b;border-color:#879386}.outcome-options .choice-chip:has(input:checked){background:var(--brand-text,#1f3b2c);color:white}
.follow-up-options{padding:10px}.follow-up-options label{font-size:13px;padding:7px;margin:3px;border:1px solid #879386;background:transparent}.follow-up-options label:has(input:checked){background:var(--brand-text,#1f3b2c);color:white}.follow-up-options input[type=radio]{min-height:0}.edit-link{display:inline-block;margin:8px 0}
/* Portal coaches */
.coach-cards{display:grid;gap:14px}.coach-card{margin:0;padding:20px}.coach-card h2{margin:12px 0 4px}.coach-card p{margin:8px 0}.coach-initial{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#e1ebd8;font-weight:800}.coach-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.coach-choices .button{margin:0}.context-chip{display:flex;gap:12px;align-items:center;justify-content:space-between;border-radius:12px;padding:12px;background:#e1ebd8;font-size:14px}.context-chip a{flex-shrink:0}.coach-thread{padding:16px}.coach-message{border:0;border-radius:12px;padding:14px;margin:10px 0;background:#edf2e8}.coach-message.user{background:var(--brand-background,#f5efe4);margin-left:20px}.coach-message p{margin:6px 0 0}.coach-starters{margin-top:24px}.coach-starters summary{min-height:44px;padding:10px 0;cursor:pointer}.coach-typing{font-size:14px}.coach-compose textarea{min-height:100px}@media(min-width:600px){.coach-cards{grid-template-columns:1fr 1fr}}
/* Shared, safe-area-aware CRM navigation, centered on desktop and mobile. */
body:has(.crm-bar){padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
.crm-bar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:680px;z-index:30;display:flex;justify-content:space-around;align-items:end;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px));background:#fffdf8;border:1px solid #b7c6b5;border-radius:20px 20px 0 0;box-shadow:0 -4px 20px #1f3b2c12}
.crm-bar .crm-item{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;min-width:44px;min-height:64px;padding:4px 1px;gap:4px;font-size:12px;font-weight:600;text-decoration:none;border-radius:12px}
.crm-item svg{width:24px;height:24px;display:block}.crm-item[aria-current=page]{background:#e1ebd8;color:#1f3b2c;box-shadow:inset 0 -3px #1f3b2c}.crm-call span{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#1f3b2c;color:#fff}.crm-bar .crm-call{margin-top:-24px}.crm-item:focus-visible{outline:3px solid #875719;outline-offset:2px}
.quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick-actions .button{margin:0;padding:12px 6px}.number-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.number-tiles>div{padding:12px 6px;background:#edf2e8;border-radius:12px;text-align:center}.number-tiles strong{display:block;font-size:32px}.number-tiles span{font-size:13px;font-weight:600}.secondary{background:#edf2e8;color:#1f3b2c;border:1px solid #1f3b2c}
@media(min-width:600px){.quick-actions{grid-template-columns:repeat(4,minmax(0,1fr))}}

.coach-avatar{width:72px;height:72px;border-radius:50%;object-fit:cover;display:block;margin-bottom:10px;border:2px solid var(--brand-border,#ca9650)}.coach-avatar.small{width:32px;height:32px;display:inline-block;vertical-align:middle;margin:0 8px 0 0;border-width:1px}
.coach-reply{line-height:1.55}.coach-reply h3,.coach-reply h4{margin:14px 0 6px;font-size:17px}.coach-reply p{margin:8px 0}.coach-reply ul,.coach-reply ol{margin:6px 0 10px;padding-left:22px}.coach-reply li{margin:4px 0}.coach-reply code{background:rgba(31,59,44,.08);padding:1px 5px;border-radius:4px}.coach-reply hr{border:0;border-top:1px solid var(--brand-border,#ca9650);margin:12px 0}
.coach-role{font-weight:700;margin:4px 0 8px}.coach-intro{line-height:1.55;margin:0 0 14px}

.coach-voice{margin:1rem 0;padding:1rem;border:2px solid #315b48;border-radius:12px;background:#f3f8f4}.voice-buttons{display:flex;flex-wrap:wrap;gap:.5rem}.voice-buttons button{min-height:44px;margin:0;flex:1 1 125px}.voice-buttons .voice-stop{background:transparent;color:#315b48;border:1px solid #315b48;flex:0 0 auto;font-size:.9rem;min-height:44px}.coach-voice label{display:flex;gap:.5rem;align-items:center}.coach-voice input[type=checkbox]{width:auto}.coach-voice [role=status]{font-weight:bold;font-size:1.2rem}.coach-voice[data-state=LISTENING]{border-color:#25804b}.coach-voice[data-state=SPEAKING]{border-color:#265bba}.coach-card button{min-height:44px;margin-top:.5rem}button:focus-visible{outline:3px solid #265bba;outline-offset:3px}
.voice-dock{position:fixed;bottom:calc(82px + env(safe-area-inset-bottom));left:12px;right:12px;z-index:5;display:flex;align-items:center;gap:6px;background:#f3f8f4;border:2px solid #315b48;border-radius:12px;padding:8px;box-shadow:0 3px 16px #0003}.voice-dock[hidden]{display:none}.voice-dock span{flex:1;font-size:.9rem;font-weight:bold}.voice-dock button{min-height:48px;padding:8px;margin:0;font-size:.9rem}.voice-dock [data-dock-stop]{background:transparent;color:#315b48;border:1px solid #315b48}.coach-voice{scroll-margin-bottom:170px}@media(min-width:700px){.voice-dock{left:auto;max-width:500px}}
.calendar-controls{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;margin:1rem 0}.calendar-controls form{display:flex;gap:.5rem;margin:0}.calendar-controls button[aria-pressed=true]{background:var(--brand-text);color:var(--brand-card)}.calendar-event{border-left:5px solid #23715a;padding:.8rem;margin:.7rem 0;background:var(--brand-card)}.calendar-event.outside{border-left-color:#6452ad}.calendar-event.followup{border-left-color:#b76819}.calendar-event summary{cursor:pointer;line-height:1.6}.event-time{display:inline-block;min-width:5rem}.event-location{display:block;margin-left:5rem}.calendar-day.is-today{outline:2px solid var(--brand-accent);outline-offset:3px}.legend-outside{color:#6452ad;margin-left:.5rem}.legend-followup{color:#96550d;margin-left:.5rem}.calendar-day h2{font-size:1.2rem}#calendar-feed{width:100%}
.calendar-controls form{width:auto;flex:0 1 auto}.calendar-controls button{width:auto;min-width:76px;margin:0;white-space:nowrap}.calendar-controls>.button{width:auto;margin:0}.calendar-event input[type=checkbox],input[name=all_day]{width:auto;min-height:20px}

.voice-buttons{align-items:center}.voice-buttons .voice-mic{width:104px;height:104px;min-width:104px;border-radius:50%;flex:0 0 104px;background:#315b48;color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:.95rem}.voice-mic [aria-hidden]{font-size:28px}.voice-conversation{flex:1;font-size:.95rem}.voice-settings{margin-top:12px}.voice-settings summary{cursor:pointer;padding:10px 0;min-height:44px}.voice-settings button{min-height:44px}.coach-voice [hidden]{display:none}.coach-voice[data-state=SPEAKING]{border-color:#315b48}.voice-dock span{white-space:nowrap;font-size:.8rem}.voice-dock button{font-size:.8rem}
.voice-conversation input[role=switch]{appearance:none;flex:0 0 40px;width:40px;height:24px;border:1px solid #315b48;border-radius:20px;background:#dce3dc;position:relative;cursor:pointer}.voice-conversation input[role=switch]::before{content:"";position:absolute;width:18px;height:18px;top:2px;left:2px;background:#315b48;border-radius:50%;transition:transform .15s}.voice-conversation input[role=switch]:checked{background:#315b48}.voice-conversation input[role=switch]:checked::before{background:white;transform:translateX(16px)}
.voice-buttons .voice-stop{width:auto;padding:6px 14px;min-height:36px}.voice-conversation input[role=switch]{min-height:24px;margin:0}.voice-buttons .voice-conversation{min-width:150px}.voice-buttons .voice-mic{width:104px}

.dev-copy-banner{background:#641d8e;color:#fff;font-weight:700;padding:.65rem 1rem;text-align:center}
