.af-public{margin:0;background:#f1f7fa;color:#103e60;font:16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.af-wrap{max-width:1180px;margin:auto;padding:24px}.af-brand{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.af-brand a{color:#103e60;text-decoration:none;font-size:28px;font-weight:750}.af-brand span{display:block;font-size:11px;letter-spacing:4px;color:#1598bf}.af-brand>div{font-weight:650}.af-urgent{padding:12px 16px;border:1px solid #c5ddea;background:#e8f3fa;border-radius:12px;font-size:14px}.af-public a{color:#126785}.af-public h1{font-size:clamp(26px,4vw,38px);line-height:1.2}.af-public h2,.af-office h2{font-size:18px}.af-login{max-width:540px;margin:40px auto;background:white;border:1px solid #d5e2ed;border-radius:20px;padding:30px}.af-eyebrow{font-size:12px;letter-spacing:1.5px;font-weight:750}.af-hint{font-size:14px;color:#547083}.af-public button,.af-office button{font:inherit;cursor:pointer;border:1px solid #bcd5e3;background:white;border-radius:10px;padding:10px 14px;color:#103e60;min-height:44px}.af-login button,#af-send,.af-invite button,.af-manage form>button{background:#103e60;color:white;border-color:#103e60}.af-public input,.af-public textarea,.af-public select,.af-office input:not([type=checkbox]),.af-office textarea,.af-office select{box-sizing:border-box;font:inherit;width:100%;border:1px solid #bcd5e3;border-radius:9px;padding:11px;background:white;color:#103e60}.af-public label,.af-office label{display:block;font-weight:650;margin:12px 0 6px}.af-login button{margin-top:16px;width:100%}.af-public button:focus-visible,.af-public a:focus-visible,.af-public input:focus-visible,.af-public textarea:focus-visible{outline:3px solid #1d8caf;outline-offset:3px}.af-welcome{display:flex;justify-content:space-between;align-items:center;margin:20px 0;gap:15px}.af-welcome h1{font-size:25px;margin:0}.af-welcome p{margin:4px 0}.af-notice,#af-status:not(:empty){background:#edf6fc;border:1px solid #bdd7e6;padding:12px;border-radius:10px}#ah-family-app{display:grid;grid-template-columns:290px minmax(0,1fr);border:1px solid #c9dce7;border-radius:16px;background:#fff;overflow:hidden;margin:20px 0}#ah-family-app>aside{background:#f7fafc;border-right:1px solid #d5e2ed;padding:18px}#ah-family-app>section{padding:20px;min-width:0}#af-threads{display:grid;gap:9px}#af-threads button{text-align:left;padding:12px;background:#fff}#af-threads button.selected{background:#e9f4fc;border-color:#3884aa}#af-threads strong,#af-threads small{display:block}#af-threads small{margin-top:4px;font-size:12px}.af-thread-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.af-thread-heading h2{margin:0}.af-thread-heading p{font-size:13px;color:#547083;margin:6px 0}#af-history{height:auto;max-height:330px;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:12px 0;scroll-behavior:auto}#af-history article{border:1px solid #d8e5ed;border-radius:12px;background:#f5f9fb;padding:12px 14px;max-width:85%;align-self:flex-start;overflow-wrap:anywhere}#af-history article.own{align-self:flex-end;background:#e6f3fb;border-color:#c1ddeb}#af-history article strong,#af-history time,#af-history small{display:block}#af-history time,#af-history small{font-size:12px;color:#547083}#af-history p{white-space:pre-wrap;margin:7px 0}#af-typing{min-height:18px;font-size:13px;margin:2px 0}#af-compose textarea{resize:vertical;min-height:90px}.af-send-row{display:flex;gap:12px;align-items:end;justify-content:space-between}.af-send-row label{font-size:13px}.af-send-row select{min-width:190px;width:auto}.af-invite,.af-manage{background:#fff;border:1px solid #c9dce7;border-radius:14px;padding:18px;margin:18px 0}.af-invite summary,.af-manage summary{cursor:pointer;font-weight:700}.af-manage form{max-width:600px}.af-contact{padding:16px;border-top:1px solid #d5e2ed}.af-contact form{display:flex;gap:8px;flex-wrap:wrap}.af-public footer{font-size:13px;text-align:center;color:#547083;margin:30px 0}.af-office{max-width:1400px;color:#103e60}.af-office button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:740px){.af-wrap{padding:14px}.af-login{padding:22px;margin:24px auto}#ah-family-app{grid-template-columns:minmax(0,1fr)}#ah-family-app>aside{border-right:0;border-bottom:1px solid #d5e2ed;padding:14px}#af-threads{max-height:200px;overflow:auto}#ah-family-app>section{padding:14px}#af-history{height:auto;max-height:45vh}#af-history article{max-width:92%}.af-send-row{align-items:stretch;flex-direction:column}.af-send-row select{width:100%}.af-brand a{font-size:24px}}

.af-audience-notice{padding:12px 16px;border:1px solid #c5ddea;background:#edf6fc;border-radius:12px;margin:16px 0;font-size:14px}.af-audience-notice strong{display:block;margin-bottom:4px}

.af-brand img{display:block;max-width:190px;height:auto}.af-brand .af-header-call{font-size:14px;font-weight:500;color:#24718d}.af-login-home{max-width:1040px;display:grid;grid-template-columns:1.05fr 1fr;gap:0;padding:0;overflow:hidden;box-shadow:0 12px 40px #123f5910;margin:36px auto}.af-login-intro{background:linear-gradient(135deg,#103e60,#17567c);color:white;padding:42px 36px}.af-login-intro .af-eyebrow{color:#bce8f4}.af-login-intro h1{margin-top:16px;font-size:38px;max-width:400px}.af-login-intro>p:not(.af-eyebrow){color:#e3eff5}.af-promise{display:grid;gap:14px;margin-top:28px;font-size:15px}.af-promise span{padding-left:20px;position:relative}.af-promise span:before{content:"";width:7px;height:7px;border-radius:50%;background:#7dcde5;position:absolute;left:0;top:8px}.af-login-form{padding:40px 34px;align-self:center}.af-login-form h2{font-size:25px;margin:0 0 8px}.af-login-form>p{color:#547083}.af-login-form button{border-radius:26px}.af-public #ah-family-app{box-shadow:0 6px 24px #123f5909}.af-public .af-welcome{padding:14px 0}.af-public .af-brand>div{text-align:right}
@media(max-width:740px){.af-login-home{grid-template-columns:1fr;padding:0}.af-login-intro,.af-login-form{padding:26px 22px}.af-login-intro h1{font-size:30px}.af-promise{gap:10px;margin-top:20px}.af-brand img{max-width:155px}.af-brand>div{font-size:14px}}

.af-followups{margin-top:16px;padding:14px;border:1px solid #bfd5e2;border-radius:12px;background:#eef7fb}.af-followups>form{padding:12px 0;border-top:1px solid #bfd5e2}.af-followups p{white-space:pre-wrap;overflow-wrap:anywhere}.af-followups select,.af-followups textarea{width:100%;max-width:100%;box-sizing:border-box}.af-followups label{display:block;margin:8px 0}

#af-history:empty{padding:0;max-height:0}.af-empty-history{margin:12px 0;color:#547083;font-size:14px}#af-typing:empty{display:none}.af-privacy{font-size:13px;line-height:1.45;color:#547083;margin:12px 0}#af-threads button[aria-pressed="true"]{border-left:4px solid #247da0}

#af-status.af-success:not(:empty){background:#e7f5eb;border-color:#81b994;color:#185b32;font-weight:700}

.af-public [hidden],.af-office [hidden]{display:none!important}

/* Focused portal header; steady phone action, no pulse. */
.af-brand>div{text-align:right}.af-brand>div strong{display:block;font-size:16px;margin-bottom:5px}.af-brand .af-header-call{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;box-sizing:border-box;border:1px solid #bcd5e3;border-radius:28px;background:#fff;color:#103e60;font-weight:650;font-size:14px;transition:background .15s}.af-brand .af-header-call span{font:inherit;letter-spacing:normal;color:inherit}.af-brand .af-call-short{display:none}.af-brand .af-header-call:hover{background:#eaf4f8;color:#103e60}.af-brand .af-header-call:not(:hover),.af-brand .af-header-call:focus:not(:focus-visible){background:#fff;color:#103e60}.af-brand picture{display:block}
@media(max-width:740px){.af-brand{background:linear-gradient(135deg,#103e60,#092c46);margin:-14px -14px 18px;padding:14px;gap:12px}.af-brand img{width:160px;max-width:100%;height:auto}.af-brand>a{min-width:0}.af-brand>div{flex-shrink:0}.af-brand>div strong{font-size:11px;color:#fff;margin:0 0 5px}.af-brand .af-header-call{padding:0 17px;font-size:14px;border-color:#fff}.af-brand .af-call-number{display:none}.af-brand .af-call-short{display:inline}}

/* Keep each audience heading attached to its description. */
.af-audience-notice p{line-height:1.5}.af-audience-notice p>strong{display:block;margin:0 0 3px;line-height:1.35}

/* Checkboxes keep their natural width and sit beside wrapping labels. */
.af-public label:has(>input[type="checkbox"]),.af-office label:has(>input[type="checkbox"]){display:flex;align-items:flex-start;gap:10px;line-height:1.5;margin:12px 0;cursor:pointer}
.af-public input[type="checkbox"],.af-office input[type="checkbox"]{appearance:auto;box-sizing:border-box;display:inline-block;flex:0 0 18px;width:18px;min-width:18px;max-width:18px;height:18px;padding:0;margin:3px 0 0;accent-color:#103e60}
.af-public input[type="checkbox"]:disabled,.af-office input[type="checkbox"]:disabled{cursor:not-allowed}

/* Larger portraits outside each bubble; compact sender and timestamp line. */
#af-history article{display:flex;align-items:flex-start;gap:12px;background:transparent;border:0;padding:0;max-width:100%;width:100%;box-sizing:border-box}
#af-history article.own{background:transparent;border:0;flex-direction:row-reverse}
#af-history article>.af-person-photo{display:flex;flex:0 0 56px;width:56px;height:56px;border-radius:10px;margin:0;overflow:hidden;background:#dcecf5;align-items:center;justify-content:center;font-size:21px;font-weight:700}
#af-history article>.af-person-photo img{width:100%;height:100%;object-fit:cover;object-position:center top}
#af-history .af-message-bubble{min-width:0;max-width:calc(85% - 68px);border:1px solid #d8e5ed;border-radius:12px;background:#f5f9fb;padding:12px 14px;box-sizing:border-box}
#af-history article.own .af-message-bubble{background:#e6f3fb;border-color:#c1ddeb}
#af-history .af-person-heading{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:12px;row-gap:2px;margin:0}
#af-history .af-person-heading strong{margin:0}
#af-history .af-person-heading time{margin:0;font-size:12px;font-weight:400;white-space:normal}
@media(max-width:740px){#af-history article{gap:8px}#af-history article>.af-person-photo{flex-basis:40px;width:40px;height:40px;border-radius:8px;font-size:16px}#af-history .af-message-bubble{max-width:calc(100% - 48px);padding:10px 12px}#af-history .af-person-heading{column-gap:8px}}

#af-history .af-person-heading .af-receipt{font-size:12px;font-weight:400;margin:0;white-space:normal}#af-history .af-person-heading .af-receipt:before{content:"· ";}

#af-history article{align-items:center}

/* Consistent left alignment; color distinguishes incoming and own messages. */
#af-history article.own{flex-direction:row;align-self:flex-start}

/* Space each profile-photo action without affecting other portal forms. */
.af-invite form:has(input[name="photo_action"]){margin:20px 0 0;padding:0}.af-invite form:has(input[name="photo_action"]) button{margin-top:12px}.af-invite form:has(input[name="photo_action"][value="remove"]){padding-top:16px;border-top:1px solid #d5e2ed;margin-top:24px}.af-invite form:has(input[name="photo_action"][value="remove"]) button{margin-top:0}

.af-voice-tools{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}.af-message-bubble audio,#af-compose audio{display:block;max-width:100%;width:100%;margin:10px 0}#af-compose .af-voice-tools+p{font-size:13px}

#af-threads .af-team-logo{width:36px;height:36px;object-fit:contain;float:left;margin:0 10px 8px 0;border-radius:7px}
