/* Customer & Pet Records product moments — shared homepage and module UI. */
.crm-scene,.crm-scene *{box-sizing:border-box}
.crm-scene{position:relative;width:100%;height:100%;min-height:0;overflow:hidden;color:#17263d;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:12px;text-align:left}
.crm-stage{position:relative;width:100%;height:100%;min-height:205px;overflow:hidden;padding:0 17px 16px;background:#fff}
.crm-top{height:31px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 -17px 8px;padding:0 17px;border-bottom:1px solid #e8edf3;color:#728096;font-size:9px}
.crm-brand{color:#1254ad;font-weight:800}.crm-brand i{display:inline-block;width:3px;height:3px;margin:0 5px 2px;border-radius:50%;background:#a7b7c9}.crm-crumb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crm-heading{display:flex;align-items:end;justify-content:space-between;gap:9px;margin-bottom:9px}.crm-heading small,.crm-profile-head small,.crm-pet-title small{display:block;margin-bottom:4px;color:#7b8aa0;font-size:8px;font-weight:750;letter-spacing:.08em}.crm-heading strong{display:block;font-size:19px;line-height:1.1;letter-spacing:-.045em}.crm-count,.crm-pill{flex:none;padding:5px 7px;border-radius:5px;background:#e8f1fd;color:#0d4c9e;font-size:9px;font-weight:750;white-space:nowrap}.crm-pill{background:#eaf6ef;color:#218052}
.crm-a,.crm-b{transition:opacity .16s ease}.crm-b{display:none}.crm-scene[data-state="b"] .crm-a{display:none}.crm-scene[data-state="b"] .crm-b{display:block}
.crm-contact .crm-b{padding-top:1px}.crm-contact .crm-heading{margin-bottom:10px}.crm-search{height:27px;display:flex;align-items:center;margin-bottom:11px;padding:0 9px;border:1px solid #e5ebf2;border-radius:6px;color:#a0aab8;font-size:10px}.crm-table-head,.crm-table-row{display:grid;grid-template-columns:minmax(0,1fr) 52px 53px 47px;align-items:center;gap:7px}.crm-table-head{padding:0 5px 7px;color:#9aa7b7;font-size:7px;font-weight:800;letter-spacing:.06em}.crm-table-row{min-height:51px;padding:6px 5px;border-top:1px solid #edf0f5;font-size:10px}.crm-table-row>b{font-size:9px}.crm-table-row em{color:#218052;font-size:9px;font-style:normal}.crm-row-person{min-width:0;display:flex;align-items:center;gap:7px}.crm-row-person b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.crm-row-person small{display:block;overflow:hidden;margin-top:3px;color:#8593a4;font-size:8px;font-weight:500;text-overflow:ellipsis}.crm-person{width:26px;height:26px;display:grid;place-items:center;flex:none;border-radius:50%;background:#e2edfa;color:#0e4b9b;font-size:9px;font-weight:800}.crm-person-muted{background:#f1eafa;color:#88639c}.crm-open{padding:5px 3px;border-radius:5px;background:#e9f1fd;color:#0d4c9e;font-size:9px;font-weight:800;text-align:center}.crm-muted-row{opacity:.68}
.crm-back{display:inline-flex;align-items:center;min-height:25px;margin:-6px 0 4px;color:#0d53ad;font-size:10px;font-weight:800}.crm-profile-head{display:flex;align-items:center;gap:9px;margin-bottom:11px}.crm-profile-head>.crm-person{width:38px;height:38px;font-size:13px}.crm-profile-head strong{display:block;font-size:17px;letter-spacing:-.04em}.crm-profile-head .crm-pill{margin-left:auto}.crm-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.crm-contact-grid>div{min-width:0;padding:8px;border:1px solid #e8edf4;border-radius:6px}.crm-contact-grid small,.crm-facts small{display:block;margin-bottom:4px;color:#8a98a9;font-size:7px;font-weight:800;letter-spacing:.07em}.crm-contact-grid strong{display:block;overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.crm-pets-line{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;padding:8px 9px;border-radius:6px;background:#f5f8fd;font-size:9px}.crm-pets-line span{color:#64758a}.crm-pets-line b{color:#0d4c9e}
.crm-pet-rail{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:11px}.crm-pet-choice{display:flex;align-items:center;gap:8px;min-width:0;padding:7px;border:1px solid #e4eaf2;border-radius:8px}.crm-pet-choice b,.crm-pet-choice small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-pet-choice b{font-size:11px}.crm-pet-choice small{margin-top:3px;color:#7b8aa0;font-size:8px}.crm-scene[data-state="a"] .crm-pip,.crm-scene[data-state="b"] .crm-mochi{border-color:#9dbdea;background:#edf4fe}.crm-pet-avatar{width:25px;height:25px;display:grid;place-items:center;flex:none;border-radius:8px;background:#e7effb;color:#1855a2;font-size:12px;font-weight:800}.crm-cat{background:#f9e8f1;color:#c9367e}.crm-pet-sheet{padding:12px;border:1px solid #e4eaf2;border-radius:9px;background:#fff;box-shadow:0 8px 22px rgba(30,55,88,.06)}.crm-pet-title{display:flex;align-items:center;gap:9px;margin-bottom:12px}.crm-pet-title strong{display:block;font-size:17px;letter-spacing:-.04em}.crm-pet-title em{margin-left:auto;padding:4px 7px;border-radius:5px;background:#eaf6ef;color:#218052;font-size:9px;font-style:normal;font-weight:750}.crm-large{width:34px;height:34px;font-size:16px}.crm-mochi-value,.crm-mochi-avatar{display:none!important}.crm-scene[data-state="b"] .crm-pip-value,.crm-scene[data-state="b"] .crm-pip-avatar{display:none!important}.crm-scene[data-state="b"] .crm-mochi-value,.crm-scene[data-state="b"] .crm-mochi-avatar{display:block!important}.crm-scene[data-state="b"] .crm-mochi-avatar{display:grid!important}.crm-facts{display:grid;grid-template-columns:1fr 1fr;gap:7px}.crm-facts>div{min-width:0;padding:7px 8px;border-radius:6px;background:#f6f8fb}.crm-facts b{display:block;overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.crm-care-head,.crm-related-head{margin-bottom:10px}.crm-tabs{display:flex;gap:16px;margin-bottom:10px;border-bottom:1px solid #e7ecf3;color:#7d8ca0;font-size:10px;font-weight:750}.crm-tabs>span{display:inline-flex;align-items:center;gap:5px;min-height:27px;border-bottom:2px solid transparent;white-space:nowrap}.crm-scene[data-state="a"] .crm-tab-overview,.crm-scene[data-state="b"] .crm-tab-care,.crm-scene[data-state="b"] .crm-tab-related{border-bottom-color:#1355b2;color:#0e4fa7}.crm-care-identity{display:flex;align-items:center;gap:9px;margin:13px 0}.crm-care-identity strong,.crm-care-identity small{display:block}.crm-care-identity strong{font-size:14px}.crm-care-identity small{margin-top:3px;color:#7b8aa0;font-size:9px}.crm-care-content .crm-facts{margin-top:12px}.crm-note{position:relative;margin:0 0 6px;padding:8px 10px;border:1px solid #e7ecf3;border-radius:7px}.crm-note:first-child{border-left:3px solid #e868a2}.crm-note>span,.crm-note strong,.crm-note small{display:block}.crm-note>span{margin-bottom:3px;color:#7b8aa0;font-size:7px;font-weight:800;letter-spacing:.08em}.crm-note strong{font-size:10px}.crm-note small{margin-top:2px;color:#8997a7;font-size:8px}
.crm-care-title{display:flex;align-items:center;gap:8px;min-width:0}.crm-care-head-avatar{display:none}.crm-scene[data-state="b"] .crm-care-head-avatar{display:grid}
.crm-related-summary{display:flex;align-items:center;gap:10px;margin:13px 0 11px;padding:11px;border:1px solid #e7ecf3;border-radius:8px}.crm-related-summary>span{width:31px;height:31px;display:grid;place-items:center;flex:none;border-radius:50%;background:#e2edfa;color:#0e4b9b;font-size:10px;font-weight:800}.crm-related-summary strong,.crm-related-summary small{display:block}.crm-related-summary strong{font-size:10px}.crm-related-summary small{margin-top:4px;color:#7d8b9f;font-size:9px}.crm-summary-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.crm-summary-counts>div{padding:10px;border-radius:7px;background:#f3f7fc}.crm-summary-counts b,.crm-summary-counts small{display:block}.crm-summary-counts b{color:#1254ad;font-size:17px}.crm-summary-counts small{margin-top:3px;color:#65768c;font-size:8px}.crm-tab-related>b{padding:2px 4px;border-radius:4px;background:#eaf1fd;font-size:8px}.crm-record{display:grid;grid-template-columns:27px minmax(0,1fr) 12px;align-items:center;gap:8px;min-height:43px;border-bottom:1px solid #edf0f5}.crm-record-icon{width:25px;height:25px;display:grid;place-items:center;border-radius:6px;background:#e7f0fc;color:#1254ad;font-size:10px;font-weight:800}.crm-record-rose{background:#fceaf2;color:#c7367c}.crm-record strong,.crm-record small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-record strong{font-size:10px}.crm-record small{margin-top:3px;color:#8290a3;font-size:8px}.crm-record>b{color:#7893b9;font-size:12px}
.crm-pointer{position:absolute;z-index:5;left:86%;top:9%;width:23px;height:23px;pointer-events:none;transition:left .22s cubic-bezier(.35,0,.2,1),top .22s cubic-bezier(.35,0,.2,1),transform .09s ease;filter:drop-shadow(0 1px 1px rgba(46,42,76,.14))}.crm-pointer svg{display:block;width:100%;height:100%}.crm-pointer.crm-click{transform:scale(.84)}
/* Stock photos sit inside actual record/photo fields; initials remain as a fallback. */
.crm-person,.crm-pet-avatar,.crm-related-summary>span{position:relative;overflow:hidden}
.crm-person::before,.crm-pet-avatar::before,.crm-related-summary>span::before{content:"";position:absolute;inset:0;background-size:cover;background-position:center}
.crm-person::before,.crm-related-summary>span::before{background-image:url("./stock-customer-nora.jpg");background-size:210%;background-position:31% 13%}
.crm-person-muted::before{content:none}
.crm-pip .crm-pet-avatar::before,.crm-pip-avatar::before{background-image:url("./stock-pet-pip.jpg")}
.crm-mochi .crm-pet-avatar::before,.crm-mochi-avatar::before,.crm-care .crm-pet-avatar::before{background-image:url("./stock-pet-mochi.jpg")}
.crm-pets .crm-pet-rail{margin-bottom:7px}.crm-pets .crm-pet-choice{padding:5px}.crm-pets .crm-pet-sheet{padding:8px}.crm-pets .crm-pet-title{margin-bottom:7px}.crm-pets .crm-facts{gap:5px}.crm-pets .crm-facts>div{padding:5px 7px}
.crm-care .crm-tabs,.crm-related .crm-tabs{margin-bottom:6px}.crm-care .crm-note{margin-bottom:4px;padding:5px 8px}.crm-care .crm-note>span{margin-bottom:1px}.crm-care .crm-note strong{font-size:9px}.crm-care .crm-note small{margin-top:1px;font-size:7px}.crm-related .crm-record{min-height:38px}
#module-03 .moment-demo-link{display:inline-flex;align-items:center;gap:4px;margin-top:8px;color:#1355b2;font-size:11px;font-weight:750}#module-03 .moment-demo-link:hover{text-decoration:underline;text-underline-offset:3px}#module-03 .moment-visual.crm-moment-visual{overflow:hidden;padding:0;border-color:#dce6f2;background:white}
.customer-moment-visual{padding:0!important;background:white!important}.customer-moment-visual .crm-stage{padding-bottom:12px}
.highlights .highlight-card{height:410px}.highlights .highlight-copy{min-height:125px}.highlights .highlight-visual.customer-moment-visual{margin-top:0}
@media(max-width:900px){.crm-stage{padding-right:12px;padding-left:12px}.crm-top{margin-right:-12px;margin-left:-12px;padding-right:12px;padding-left:12px}.crm-contact-grid strong{font-size:8px}}
@media(max-width:680px){#module-03 .moment-grid{grid-auto-rows:420px}.crm-stage{padding-right:14px;padding-left:14px}.crm-top{margin-right:-14px;margin-left:-14px;padding-right:14px;padding-left:14px}.crm-contact-grid strong{font-size:9px}}
@media(max-width:620px){.highlights .highlight-card{height:400px}.highlights .highlight-copy{min-height:120px}.customer-moment-visual .crm-stage{padding-bottom:8px}}
@media(prefers-reduced-motion:reduce){.crm-a,.crm-b,.crm-pointer{transition:none!important}.crm-pointer{display:none!important}}
