/* Profile stories use the same typography, palette, paper surfaces and soft
   illustration backdrops as the other marketing animations. */
.profile-section .profile-art{
 width:100%;max-width:740px;margin:25px auto 0;position:relative;isolation:isolate;
 font:400 15px/1.5 Poppins,sans-serif;color:var(--canvas-text-primary);
}
.profile-art:before{content:'';position:absolute;inset:5% -3% 9%;z-index:-1;border-radius:46% 54% 48% 52%;background:radial-gradient(circle at 2px 2px,color-mix(in srgb,var(--canvas-accent-1) 16%,transparent) 1px,transparent 1.5px) 0 0/24px 24px,var(--canvas-accent-1-light);pointer-events:none}
.workflow-section:nth-child(even) .profile-art:before{background-color:var(--canvas-shell)}
.profile-art h3,.profile-art h4{font-family:inherit;font-weight:500;letter-spacing:-.03em;line-height:1.3;margin:0;color:var(--canvas-primary)}
.profile-art h3{font-size:26px}.profile-art h4{font-size:20px}.profile-art p{font:inherit;margin:0}.profile-art strong,.profile-art b{font-weight:500}
.profile-art .profile-eyebrow{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--canvas-text-secondary);font-weight:400}

.profile-window{position:relative;padding:10px;background:transparent}
.profile-header,.patient-data-card,.profile-team,.coverage-map-card,.coverage-area-list>div,.profile-review{background:var(--canvas-tile-surface);border:1px solid var(--canvas-tile-border);border-radius:var(--radius-lg);box-shadow:0 12px 28px var(--canvas-shadow)}
.profile-header{padding:20px;margin-bottom:14px}.profile-person{display:flex;align-items:center;gap:13px;padding-bottom:16px}
.profile-avatar{width:46px;height:46px;flex-shrink:0;border-radius:var(--radius-full);background:var(--canvas-accent-3-light);display:grid;place-items:center;font-size:17px;font-weight:500;color:var(--canvas-accent-3)}
.profile-avatar.nurse,.mini-avatar.nurse{background:var(--canvas-discipline-rn-light);color:var(--canvas-discipline-rn)}
.profile-identity{min-width:0;flex:1}.patient-story .profile-identity{display:flex;align-items:center;gap:11px;flex-wrap:wrap}.profile-identity-tags{display:flex;gap:7px;align-items:center}
.profile-pill{display:inline-block;padding:4px 9px;border-radius:var(--radius-full);font-size:11px;background:var(--canvas-accent-1-light);color:var(--canvas-accent-1);white-space:nowrap}
.profile-mrn{background:var(--canvas-accent-3-light);color:var(--canvas-accent-3);padding:4px 8px;border-radius:var(--radius-full);font-size:11px}
.product-button{display:inline-block;padding:10px 12px;color:var(--canvas-button-text);background:var(--canvas-accent-1);border-radius:var(--radius-sm);font-size:12px;white-space:nowrap}
.profile-summary{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:12px;border-top:1px solid var(--canvas-tile-border);padding:15px 0}
.profile-summary dl{margin:0}.profile-summary dt{font-size:10px;color:var(--canvas-text-secondary);margin-bottom:6px;letter-spacing:.03em}.profile-summary dd{margin:0;font-size:13px}.profile-link{color:var(--canvas-accent-1)!important}
.discipline-tag{display:inline-block;padding:3px 7px;border-radius:var(--radius-sm);font-size:11px;font-weight:500;color:var(--canvas-button-text)}.discipline-tag.rn{background:var(--canvas-discipline-rn)}.discipline-tag.pt{background:var(--canvas-discipline-pt)}
.profile-tabs{display:flex;gap:5px;background:var(--canvas-shell);padding:4px;border-radius:var(--radius-sm);font-size:12px;color:var(--canvas-text-secondary)}
.profile-tabs>span{flex:1;text-align:center;padding:10px 5px;border-radius:var(--radius-sm);line-height:1.4}
.profile-tabs>span.is-active{color:var(--canvas-button-text);background:var(--canvas-accent-1);box-shadow:0 3px 7px var(--canvas-shadow)}
.profile-body{display:grid;gap:14px}.patient-data-stage{display:grid;min-height:215px}.patient-data-panel{grid-area:1/1;min-width:0}.patient-details-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:14px}.patient-data-card{padding:18px}.patient-data-card h4{font-size:19px;margin-bottom:14px}.patient-data-card h4>span{font-size:12px;background:var(--canvas-accent-3-light);color:var(--canvas-accent-3);padding:3px 7px;border-radius:var(--radius-full);margin-left:5px}
.compact-data{margin:0}.compact-data>div{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-top:1px solid var(--canvas-tile-border);font-size:13px}.compact-data dt{color:var(--canvas-text-secondary)}.compact-data dd{margin:0;text-align:right}
.compact-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.compact-card-heading h4{margin:0}.compact-card-heading>span{font-size:11px;color:var(--canvas-text-secondary)}.draft-pill{background:var(--canvas-accent-3-light);color:var(--canvas-accent-3)!important}
.profile-data-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px;text-align:left}.profile-data-table th{padding:10px 8px;background:var(--canvas-shell);font-size:10px;color:var(--canvas-text-secondary);font-weight:400;text-transform:uppercase;letter-spacing:.03em}.profile-data-table td{padding:14px 8px;border-bottom:1px solid var(--canvas-tile-border);vertical-align:middle}.profile-data-table tr:last-child td{border-bottom:0}.profile-data-table .discipline-tag{font-size:11px;padding:3px 6px}.discipline-name{margin-left:6px}.compact-plan-footer{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--canvas-tile-border);padding-top:12px;margin-top:8px;font-size:11px;color:var(--canvas-text-secondary)}
.profile-team{padding:16px;display:flex;justify-content:space-between;align-items:center;gap:12px}.compact-team-identities{display:flex;align-items:center;gap:11px}.team-avatar-pair{display:flex;padding-right:6px}.team-avatar-pair .profile-avatar{width:32px;height:32px;font-size:10px;border:2px solid var(--canvas-tile-surface);margin-right:-6px}.compact-team-identities h4{font-size:16px}.compact-team-identities p{font-size:11px;color:var(--canvas-text-secondary);margin-top:4px}
.profile-action{position:relative;display:inline-flex;gap:8px;align-items:center;padding:11px;background:var(--canvas-accent-1);color:var(--canvas-button-text);border-radius:var(--radius-sm);font-size:11px;white-space:nowrap}.profile-action svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.profile-action:after{content:'';position:absolute;inset:0;outline:2px solid var(--canvas-accent-1);outline-offset:4px;border-radius:var(--radius-sm);opacity:var(--press,0);pointer-events:none}.popup-anchor{visibility:hidden}
/* Same action-to-card expansion used in the Sonar story. */
.patient-story{padding-bottom:240px}
.profile-popup{--pop-progress:1;position:absolute;right:0;bottom:0;width:min(440px,calc(100% - 16px));height:340px;border-radius:var(--radius-lg);border:1px solid var(--canvas-paper-edge);overflow:hidden;z-index:var(--z-dropdown);pointer-events:none;transform-origin:top left;background:color-mix(in srgb,var(--canvas-tile-surface) calc(var(--pop-progress)*100%),var(--canvas-accent-1));box-shadow:0 calc(24px*var(--pop-progress)) calc(55px*var(--pop-progress)) color-mix(in srgb,var(--canvas-primary) calc(var(--pop-progress)*18%),transparent)}
.profile-popup-body{width:100%;height:340px;padding:18px;display:flex;flex-direction:column}.profile-popup-body header{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--canvas-tile-border);padding-bottom:12px}.profile-popup-body header h4{font-size:18px}.profile-popup-body header p{font-size:11px;color:var(--canvas-text-secondary);margin-top:3px}.popup-close{margin-left:auto;font-size:23px;color:var(--canvas-text-secondary)}
.popup-chat-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:var(--radius-sm);background:var(--canvas-accent-1-light);color:var(--canvas-accent-1);flex-shrink:0}.popup-chat-icon svg,.popup-launch-label svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.popup-launch-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--canvas-button-text);font-size:11px;white-space:nowrap;opacity:0}.popup-participants{display:flex;align-items:center;margin:12px 0;font-size:10px;color:var(--canvas-text-secondary)}
.mini-avatar{width:26px;height:26px;border-radius:var(--radius-full);background:var(--canvas-accent-3-light);color:var(--canvas-accent-3);font-size:9px;display:grid;place-items:center;border:2px solid var(--canvas-tile-surface);margin-right:-5px}.mini-avatar.last{margin-right:10px}.popup-message-space{flex:1}.profile-chat-bubble{background:var(--canvas-accent-1-light);padding:10px 12px;font-size:12px;margin-left:16px;border-radius:var(--radius-md) var(--radius-md) 0 var(--radius-md)}.profile-chat-bubble small{display:block;font-size:9px;color:var(--canvas-text-secondary);margin-top:4px}.profile-chat-reply{margin:9px 16px 0 0;padding:10px 12px;background:var(--canvas-accent-3-light);border-radius:var(--radius-md) var(--radius-md) var(--radius-md) 0;font-size:12px}.profile-chat-reply strong{display:block;color:var(--canvas-accent-3);font-size:11px;margin-bottom:3px}.profile-chat-composer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px;padding:8px 12px;background:var(--canvas-shell);border-radius:var(--radius-sm);font-size:11px;color:var(--canvas-text-secondary)}.profile-chat-composer span:last-child{display:grid;place-items:center;width:26px;height:26px;background:var(--canvas-accent-1);color:var(--canvas-button-text);border-radius:var(--radius-sm);font-size:19px}
/* Staff coverage and records share a fixed stage and the site's local map. */
.staff-name{display:flex;align-items:center;gap:12px}.staff-identity-fields{display:flex;align-items:center;gap:9px;margin-top:8px;font-size:13px;color:var(--canvas-text-secondary)}.profile-staff-stats{display:flex;gap:9px;margin-bottom:16px;flex-wrap:wrap}.profile-stat{display:flex;align-items:center;gap:8px;background:var(--canvas-shell);padding:8px 12px;border-radius:var(--radius-full)}.profile-stat small{color:var(--canvas-text-secondary);font-size:12px}.profile-stat strong{font-size:12px;color:var(--canvas-accent-1)}.profile-stat .profile-warning{color:var(--canvas-signal)}.profile-state{display:grid}.profile-state>*{grid-area:1/1;justify-self:start}.profile-warning{color:var(--canvas-signal)}.profile-ready{color:var(--canvas-accent-1)!important}
.staff-records{min-width:0}.staff-tab-panels{display:grid;min-height:374px}.staff-tab-panel{grid-area:1/1;min-width:0;align-self:start}.staff-coverage{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:12px;opacity:0}.coverage-map-card,.coverage-area-list>div{padding:15px}.coverage-map-card h4{font-size:19px}.coverage-map-card .compact-card-heading>span{font-size:10px}.staff-coverage-map{width:100%;display:block;border:1px solid var(--canvas-map-road-edge);border-radius:var(--radius-md);overflow:hidden}.coverage-primary-area{fill:none;stroke:var(--canvas-accent-1);stroke-width:2;stroke-dasharray:5 6;opacity:.45}.coverage-pin path{fill:var(--canvas-accent-1);stroke:var(--canvas-shell);stroke-width:2}.coverage-pin.emergency path{fill:var(--canvas-signal)}.coverage-pin circle{fill:var(--canvas-shell)}.coverage-pin text{font:500 10px Poppins,sans-serif;fill:var(--canvas-button-text)}
.coverage-map-legend{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:10px;color:var(--canvas-text-secondary)}.coverage-map-legend>span{display:flex;align-items:center;gap:5px}.coverage-map-legend i{width:8px;height:8px;background:var(--canvas-accent-1);border-radius:var(--radius-full)}.coverage-map-legend .emergency i{background:var(--canvas-signal)}.coverage-map-legend small{margin-left:auto;font-size:8px;white-space:nowrap}.coverage-area-list{display:grid;align-content:start;gap:12px}.coverage-area-list h4{font-size:15px;margin-bottom:9px}.coverage-area-list h4 b{font-size:10px;background:var(--canvas-accent-1-light);color:var(--canvas-accent-1);padding:3px 6px;border-radius:var(--radius-full);margin-left:4px}.coverage-area-list p{font-size:13px;padding:12px 0;border-top:1px solid var(--canvas-tile-border)}.coverage-area-list p strong{display:inline-grid;place-items:center;width:22px;height:22px;background:var(--canvas-accent-1-light);color:var(--canvas-accent-1);border-radius:var(--radius-full);font-size:11px;margin-right:4px}.coverage-area-list small{font-size:11px;color:var(--canvas-text-secondary)}.coverage-area-list .emergency h4 b{color:var(--canvas-signal);background:var(--canvas-signal-soft)}
.profile-review{padding:20px}.profile-card-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.profile-review h4{font-size:22px}.review-count{display:grid;background:var(--canvas-accent-1-light);padding:9px 12px;border-radius:var(--radius-md);color:var(--canvas-accent-1);font-size:18px}.review-count b{grid-area:1/1}.review-progress{display:flex;gap:6px;margin:15px 0}.review-progress i{flex:1;background:var(--canvas-accent-1);height:5px;border-radius:var(--radius-sm)}.credential-subtabs{display:flex;gap:5px;margin:16px 0 12px;font-size:12px;color:var(--canvas-text-secondary)}.credential-subtabs>span{background:var(--canvas-shell);padding:9px 11px;border-radius:var(--radius-sm)}.credential-subtabs>.is-active{background:var(--canvas-accent-1-light);color:var(--canvas-accent-1)}
.staff-credential-table th:first-child{width:36%}.staff-credential-table td{height:58px;font-size:14px}.record-status{display:inline-block;justify-self:start;width:max-content;max-width:100%;padding:4px 8px;border-radius:var(--radius-full);font-size:11px;white-space:nowrap}.record-status.verified{color:var(--canvas-accent-1);background:var(--canvas-accent-1-light)}.record-status.attention{color:var(--canvas-signal);background:var(--canvas-signal-soft)}.profile-review-action{display:grid;justify-content:end;margin-top:12px;min-height:36px;align-items:center}.profile-review-action>*{grid-area:1/1;justify-self:end}.profile-review-action .profile-action{font-size:12px;padding:10px 14px}.review-receipt{font-size:12px;color:var(--canvas-accent-1)}.profile-readiness{margin-top:14px;display:flex;align-items:center;gap:12px;padding:16px;background:var(--canvas-accent-1-light);border:1px solid var(--canvas-tile-border);border-radius:var(--radius-md)}.profile-readiness strong{font-size:15px;font-weight:500}.profile-readiness p{font-size:12px;color:var(--canvas-text-secondary);margin-top:3px}.profile-readiness svg{width:27px;height:32px;flex-shrink:0;stroke:var(--canvas-accent-1);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* Stable final compositions when scripting is disabled. */
.profile-art [data-beat="details"],.profile-art [data-beat="pending"],.profile-art [data-beat="pending-stat"],.profile-art [data-beat="pending-count"],.profile-art [data-beat="review-click"]{opacity:0}
.profile-section .workflow-label>span{flex-shrink:0}
@media(min-width:1051px){.profile-section .profile-art{margin-top:0}}
@media(max-width:760px){
 .profile-section .profile-art{margin-top:28px}.profile-art:before{inset:4% -1% 9%}.profile-window{padding:9px 0}.profile-header{padding:14px;margin-bottom:12px;border-radius:var(--radius-md)}.profile-person{gap:9px;padding-bottom:14px}.profile-art h3{font-size:20px}.profile-avatar{width:36px;height:36px;font-size:14px}.patient-story .profile-identity{display:block}.profile-identity-tags{margin-top:5px;gap:5px}.profile-pill,.profile-mrn{font-size:9px;padding:3px 6px}.product-button{font-size:9px;padding:8px}.profile-summary{grid-template-columns:1.5fr 1fr;gap:12px;padding:13px 0}.profile-summary dt{font-size:8px}.profile-summary dd{font-size:11px}.discipline-tag{font-size:10px;padding:3px 6px}.profile-tabs{font-size:10px;gap:3px}.profile-tabs>span{padding:9px 3px}
 .patient-data-stage{min-height:259px}.patient-details-grid{grid-template-columns:1fr;gap:9px}.patient-data-card{padding:13px;border-radius:var(--radius-md)}.patient-data-card h4{font-size:16px;margin-bottom:11px}.compact-data{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:8px}.compact-data>div{display:block;padding:0;border:0;font-size:10px}.compact-data dd{text-align:left;font-size:10px;margin-top:4px}.patient-details-grid .profile-data-table td{padding:8px}.profile-data-table{font-size:11px}.profile-data-table th{font-size:8px;padding:8px 5px}.profile-data-table td{padding:13px 5px}.profile-data-table .discipline-tag{font-size:9px;padding:3px 5px}.discipline-name{display:none}.care-plan-table td{height:59px}.compact-plan-footer{font-size:9px;margin-top:18px}.profile-team{padding:13px;gap:9px;flex-wrap:wrap;border-radius:var(--radius-md)}.compact-team-identities{gap:9px}.compact-team-identities h4{font-size:14px}.compact-team-identities p{font-size:10px}.team-avatar-pair .profile-avatar{width:27px;height:27px;font-size:9px}.profile-team .profile-action{margin-left:auto;font-size:10px;padding:9px}.profile-action svg{width:14px;height:14px}
 .profile-popup-body{padding:14px}.profile-popup-body header h4{font-size:16px}.profile-popup-body header p{font-size:10px}.popup-chat-icon{width:32px;height:32px}.popup-launch-label{font-size:10px;gap:8px}.popup-launch-label svg{width:14px}.popup-participants{font-size:9px}.profile-chat-bubble,.profile-chat-reply{font-size:11px;padding:10px;margin-left:5px;margin-right:5px}.profile-chat-composer{font-size:10px}
 .staff-name{gap:8px;flex-wrap:wrap}.staff-identity-fields{font-size:10px;gap:7px}.profile-staff-stats{gap:6px;margin-bottom:14px}.profile-stat{padding:7px 9px;gap:6px}.profile-stat small,.profile-stat strong{font-size:10px}.staff-tabs{font-size:10px}.staff-tabs>span{padding:10px 5px}.staff-tab-panels{min-height:460px}.staff-coverage{grid-template-columns:1fr;gap:9px}.coverage-map-card{padding:13px;border-radius:var(--radius-md)}.coverage-map-card h4{font-size:16px}.coverage-map-card .compact-card-heading>span{font-size:9px}.coverage-area-list{grid-template-columns:1fr 1fr;gap:8px}.coverage-area-list>div{padding:12px;border-radius:var(--radius-md)}.coverage-area-list h4{font-size:11px;margin-bottom:8px;line-height:1.5}.coverage-area-list h4 b{font-size:9px;padding:2px 4px;margin-left:2px}.coverage-area-list p{font-size:10px;padding:9px 0}.coverage-area-list p strong{width:16px;height:16px;font-size:9px;margin-right:2px}.coverage-area-list small{font-size:9px}.coverage-map-legend{gap:8px;font-size:9px}.coverage-map-legend small{font-size:7px}
 .profile-review{padding:14px;border-radius:var(--radius-md)}.profile-review h4{font-size:18px}.profile-review .profile-eyebrow{font-size:9px}.review-count{font-size:15px;padding:7px}.credential-subtabs{font-size:9px;gap:4px}.credential-subtabs>span{padding:8px 5px}.staff-credential-table th{font-size:8px}.staff-credential-table td{font-size:10px;padding:13px 4px;height:63px}.record-status{font-size:9px;padding:4px 5px}.profile-review-action .profile-action,.review-receipt{font-size:10px}.profile-readiness{padding:14px}.profile-readiness strong{font-size:12px}.profile-readiness p{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.staff-tab-panels{display:flex;flex-direction:column;gap:12px}.staff-coverage{opacity:1!important;transform:none!important}.coverage-pin{opacity:1!important}}

/* Continuity markers follow measured source/target cells, independent of layout. */
.discipline-bridge{position:absolute;left:0;top:0;z-index:var(--z-dropdown);pointer-events:none;opacity:0}
.profile-typing{position:absolute;bottom:88px;left:22px;display:flex;align-items:center;gap:8px;color:var(--canvas-text-secondary);font-size:11px;opacity:0}.profile-typing span{font-size:20px;line-height:1}
.coverage-area-list p{background:color-mix(in srgb,var(--canvas-accent-1-light) calc(var(--area-focus,0)*100%),transparent)}
.staff-credential-table tr:last-child{background:color-mix(in srgb,var(--canvas-accent-3-light) calc(var(--review-focus,0)*100%),transparent)}
.profile-header,.patient-data-card,.profile-team,.coverage-map-card,.coverage-area-list>div,.profile-review{box-shadow:0 8px 24px var(--canvas-shadow)}

@media(max-width:760px){
 .profile-art h3{font-size:20px}.profile-summary dt{font-size:9px}.profile-summary dd{font-size:12px}.profile-tabs{font-size:11px}.patient-data-card h4{font-size:17px}.profile-data-table{font-size:12px}.profile-data-table th{font-size:9px}.compact-data>div,.compact-data dd{font-size:11px}.compact-plan-footer{font-size:10px}.profile-team .profile-action{font-size:11px}.profile-chat-bubble,.profile-chat-reply{font-size:12px}.profile-chat-composer{font-size:11px}.profile-staff-stats small,.profile-staff-stats strong{font-size:11px}.coverage-area-list p{font-size:11px}.staff-credential-table td{font-size:11px}.record-status{font-size:9px}.profile-readiness p{font-size:11px}.discipline-bridge{font-size:9px;padding:3px 5px}
}
@media(prefers-reduced-motion:reduce){.discipline-bridge,.profile-typing{display:none}}

@media(max-width:360px){.staff-credential-table th:first-child{width:31%}.staff-credential-table th:nth-child(2){width:39%}.staff-credential-table th:nth-child(3){width:30%}.staff-credential-table td{font-size:10px}}
