/* One quiet Jobpla palette, with explicit status and bounded mobile cards. */
.person{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:12px;max-width:100%;box-sizing:border-box;align-items:start}
.person>*{min-width:0;max-width:100%;overflow-wrap:anywhere}.person .candidate-open-label{grid-column:2/-1;white-space:normal;font-weight:700}.person.is-new{background:#e4f5f1;border:2px solid #247462;border-left:6px solid #247462;color:#123f36}.person.is-new .muted{color:#365e56}.person h3{margin-top:0}.candidate-actions{flex-wrap:wrap}.candidate-actions>*{max-width:100%;white-space:normal}.detail>section{min-width:0}.detail .card{overflow-wrap:anywhere}
.compact-chat{display:flex;flex-direction:column;height:min(800px,85dvh);min-height:400px;max-width:780px;margin:auto;border:1px solid #d7e5e3;border-radius:18px;overflow:hidden;background:#f3f8f6;padding:0!important}
.compact-chat-header{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#fff;border-bottom:1px solid #d7e5e3;flex:none;position:relative;z-index:4}.compact-chat-header>a{font-size:32px;text-decoration:none;min-width:32px}.compact-chat-identity{min-width:0;flex:1}.compact-chat-identity h1{font-size:1.1rem;margin:0;line-height:1.3;overflow-wrap:anywhere}.compact-chat-identity small{color:#24654d;font-size:.75rem}.compact-chat-menu>summary{font-size:26px;cursor:pointer;list-style:none;min-width:44px;text-align:center}.compact-chat-options{position:absolute;right:8px;top:65px;background:white;box-shadow:0 8px 24px #0002;border:1px solid #d7e5e3;border-radius:14px;padding:16px;width:min(360px,calc(100vw - 24px));max-height:65dvh;overflow:auto}.compact-chat-options>*{max-width:100%}.compact-chat-options h1{font-size:1rem}.compact-chat-options button,.compact-chat-options .button{font-size:.85rem;margin:4px 0;padding:9px}.compact-chat-options .candidate-actions{display:grid}.compact-chat-options .conversation-avatar{display:none}
.compact-chat .inbox-messages{flex:1;min-height:0;height:auto!important;max-height:none;overflow:auto;padding:16px;margin:0;gap:12px;overscroll-behavior:contain;scroll-padding:12px}.compact-chat .bubble{align-self:flex-start;max-width:85%;min-width:0;white-space:normal;background:#fff;border:1px solid #d5e0dc;color:#163d36;border-radius:14px 14px 14px 3px;padding:10px 12px}.compact-chat .bubble.mine{align-self:flex-end;background:#d9efe2;border-color:#a8d2b7;color:#123d2c;border-radius:14px 14px 3px 14px}.compact-chat .bubble.system{align-self:center;background:#e7eeeb;border:0;color:#4b6259}.compact-chat .bubble p{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;line-height:1.5;margin:4px 0}.compact-chat .bubble small{font-size:.7rem;opacity:1;color:#4b655b;line-height:1.4;overflow-wrap:anywhere}.compact-chat .message-receipt{font-size:.65rem}
.compact-chat form{position:static!important;flex:none;background:#fff;border-top:1px solid #d7e5e3;padding:10px 12px calc(10px + env(safe-area-inset-bottom));margin:0;display:flex;gap:8px;align-items:end;flex-wrap:wrap}.compact-chat form>label{flex:1;min-width:0;margin:0;font-size:0}.compact-chat form textarea{font-size:16px;line-height:1.4;min-height:44px;max-height:120px;resize:none;margin:0;padding:10px;border-radius:16px;width:100%;box-sizing:border-box}.compact-chat form>button{padding:12px;min-height:44px;margin:0}.compact-chat .formerror:empty{display:none}.compact-chat .formerror{flex-basis:100%;font-size:.85rem;margin:0}.compact-chat-context{flex-basis:100%;font-size:.75rem}.compact-chat-context select{font-size:13px;max-width:100%}.compact-chat form .emoji-picker,.compact-chat form .chat-emoji{flex-basis:100%}
@media(max-width:760px){.person{grid-template-columns:44px minmax(0,1fr);padding:14px;gap:9px}.person>.badge{grid-column:2}.person .candidate-open-label{grid-column:2}.compact-chat-open{overflow:hidden}.compact-chat-open .top,.compact-chat-open .app-nav,.compact-chat-open .public-footer,.compact-chat-open #support-launcher{display:none!important}.compact-chat{position:fixed;inset:auto 0;top:var(--chat-top,0px);height:var(--chat-height,100dvh);width:100%;max-width:none;min-height:0;margin:0;border:0;border-radius:0;z-index:100}.compact-chat .inbox-messages{padding:12px}.compact-chat .bubble{max-width:88%}.compact-chat-header{padding:8px 10px}.compact-chat-open #toast{bottom:100px;z-index:120}}

.compact-chat-header{background:#063b49;color:#fff}.compact-chat-header>a,.compact-chat-identity h1,.compact-chat-menu>summary{color:#fff}.compact-chat-identity small{color:#acf0d0}.compact-chat-options{color:#163d36}.compact-chat form>label{order:1}.compact-chat form>button{order:2}.compact-chat form>.formerror{order:4}.compact-chat-context{order:3}.compact-emoji{order:0;position:relative;flex:none}.compact-emoji>summary{list-style:none;cursor:pointer;font-size:25px;line-height:44px;width:36px;text-align:center}.compact-emoji .chat-emoji{position:absolute;bottom:50px;left:0;display:flex;background:#fff;border:1px solid #d7e5e3;border-radius:12px;padding:6px;box-shadow:0 4px 18px #0002}.compact-emoji .chat-emoji button{padding:8px;min-width:40px;margin:0}.compact-chat-open #support-launcher{display:none!important}
.compact-chat button:focus-visible,.compact-chat a:focus-visible,.compact-chat summary:focus-visible{outline:3px solid #1b927d;outline-offset:3px}.compact-chat textarea:focus{outline:2px solid #1b927d;outline-offset:1px;border-color:#1b927d}.compact-chat-menu[open]>summary,.compact-emoji[open]>summary{background:#d9efe2;color:#063b49;border-radius:10px}.compact-chat button:active{filter:brightness(.9)}
/* Profiles retain the conversation context without putting a dossier in chat. */
.compact-profile-name{color:inherit;text-decoration:none;display:block}.compact-profile-name:hover{text-decoration:underline}.compact-chat-header .compact-profile-avatar{font-size:inherit;display:flex;min-width:44px}.compact-chat-identity small{display:block}
.candidate-chat-panel{display:none}.candidate-chat-panel .candidate-chat-expand{font-size:.9rem;margin-left:auto;min-width:0}.candidate-chat-panel h2{font-size:1rem;color:white;margin:0}.candidate-chat-state{margin:0;padding:8px 12px;font-size:.8rem}.candidate-chat-panel form textarea{font-size:15px}
@media(min-width:1000px){.candidate-with-chat{grid-template-columns:minmax(0,1fr) minmax(340px,420px);align-items:start}.candidate-chat-aside{position:sticky;top:18px}.candidate-chat-aside>.card{display:none}.candidate-chat-panel{display:flex;height:min(650px,80dvh);min-height:400px;width:100%;box-sizing:border-box}.candidate-chat-panel .bubble{max-width:90%}}
@media(min-width:1000px){body:has(.candidate-chat-panel) #support-launcher{display:none!important}}
/* Shared candidate profile: reusable information and this application stay separate. */
.candidate-profile-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,440px);grid-template-areas:'identity application' 'tabs application' 'profile application';gap:16px;align-items:start}.candidate-profile-layout>*,.application-profile-pane>*{min-width:0}.general-identity{grid-area:identity;display:flex;gap:20px;align-items:start;margin:0}.general-identity h1{font-size:1.7rem;margin:0 0 8px;overflow-wrap:anywhere}.general-identity p{margin:7px 0}.general-portrait{width:120px;height:145px;object-fit:cover;border-radius:12px;flex:none}.general-placeholder{display:grid;place-items:center;background:#dff1ee;color:#063b49;font-size:48px}.general-profile-tag{display:inline-block;padding:5px 10px;background:#e4f2f5;border-radius:8px;font-size:.8rem;color:#063b49}.general-profile-pane{grid-area:profile}.application-profile-pane{grid-area:application}.general-sections{display:grid;grid-template-columns:1fr 1fr;gap:12px}.general-sections .card{margin:0 0 12px;padding:18px}.general-sections summary{font-weight:700;cursor:pointer}.general-sections p{margin-bottom:0}.general-work-gallery{display:flex;gap:10px;overflow-x:auto}.general-photo-open{padding:0;flex:1;min-width:110px;background:none;border-radius:10px;overflow:hidden}.general-photo-open img{display:block;width:100%;height:145px;object-fit:cover}.general-photo-dialog{max-width:90vw;max-height:90dvh;border:0;border-radius:15px;padding:14px}.general-photo-dialog::backdrop{background:#05232dcc}.general-photo-dialog img{display:block;max-width:80vw;max-height:72dvh;object-fit:contain}.profile-view-tabs{grid-area:tabs;display:flex;border-bottom:1px solid #cedfe3;gap:8px}.profile-view-tabs button{background:transparent;color:#4b6471;border-radius:0;border:0;border-bottom:3px solid transparent;padding:12px 18px;margin:0}.profile-view-tabs button[aria-selected=true]{border-color:#07848b;color:#063b49;font-weight:700}.candidate-profile-actions{display:none}.application-profile-pane .candidate-chat-panel{height:550px}.application-profile-pane>.profile-mobile-contact{display:none}.application-context h2{font-size:1.2rem}.candidate-profile-layout .card{overflow-wrap:anywhere}.general-identity a:focus-visible,.profile-view-tabs button:focus-visible,.general-photo-open:focus-visible{outline:3px solid #1b927d;outline-offset:3px}
@media(max-width:999px){.candidate-profile-layout{display:block}.general-identity{gap:14px;padding:18px}.general-portrait{width:82px;height:100px}.general-identity h1{font-size:1.35rem}.general-identity p{font-size:.9rem}.profile-view-tabs{margin:16px 0}.candidate-profile-layout[data-tab=profile]>.application-profile-pane,.candidate-profile-layout[data-tab=application]>.general-profile-pane{display:none}.general-sections{grid-template-columns:1fr}.candidate-profile-actions{display:flex;position:fixed;bottom:calc(74px + env(safe-area-inset-bottom));left:0;right:0;gap:10px;padding:10px 18px;background:white;box-shadow:0 -2px 12px #063b4910;z-index:55}.candidate-profile-actions>*{flex:1;text-align:center;margin:0}.candidate-profile-layout{padding-bottom:95px}body:has(.candidate-profile-actions) #support-launcher{display:none!important}.application-profile-pane>.profile-mobile-contact{display:block}.general-work-gallery{scroll-snap-type:x mandatory}.general-photo-open{scroll-snap-align:start}.general-sections .card{margin-bottom:0}.general-sections{margin-bottom:16px}}
.profile-edit-section{border:1px solid #d5e3e4;border-radius:12px;padding:14px;margin:12px 0;background:#f6fafb}.profile-edit-section summary{cursor:pointer;font-weight:700}.profile-edit-section label{margin-top:14px}.candidate-profile-editor .heading{align-items:center}.candidate-profile-editor .profile-save-top{flex:none}.candidate-profile-editor .image-editor summary{cursor:pointer;font-weight:700}.candidate-profile-editor .image-editor .profile-photo{border-radius:50%}
@media(max-width:760px){.candidate-profile-editor .heading{position:sticky;top:0;background:#f4f9fa;padding:10px 0;z-index:20;gap:10px}.candidate-profile-editor .heading .eyebrow,.candidate-profile-editor .heading .muted{display:none}.candidate-profile-editor .heading h1{font-size:1.35rem;margin:8px 0}.candidate-profile-editor .heading a{font-size:.8rem}.candidate-profile-editor .profile-verification,.candidate-profile-editor .profile-checklist{font-size:.8rem}.candidate-profile-editor .profile-section{padding-top:12px}.candidate-profile-editor .general-identity h1{font-size:1.2rem}.candidate-profile-layout .general-portrait{border-radius:50%;width:82px;height:82px}.profile-view-tabs{border:0;background:#edf3f7;border-radius:12px;padding:4px;gap:4px}.profile-view-tabs button{flex:1;border:0;border-radius:9px;padding:10px}.profile-view-tabs button[aria-selected=true]{background:#c9f2ec;color:#063b49}}

@media(min-width:1000px){.candidate-profile-layout{grid-template-rows:min-content min-content 1fr}}
