/* Shared welcome milestones and focused person profiles. */
.welcome-goal{max-width:440px}.welcome-goal .welcome-goal-steps{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.welcome-goal .welcome-step{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #e2e9eb;border-radius:12px;background:#f7f9fa;min-width:0}.welcome-step>div{min-width:0}.welcome-goal .welcome-step b{display:block;font-size:12px;font-weight:650;color:#405763}.welcome-goal .welcome-step small{display:block;font-size:11px;line-height:1.45;color:#697b84}.welcome-goal .welcome-step-icon{display:grid;place-items:center;flex:0 0 24px;height:24px;border-radius:50%;background:#e6ecef;color:#657781;font-size:12px;font-weight:700}.welcome-goal .welcome-step.done{background:#eef7f2;border-color:#cfe6d9}.welcome-goal .done .welcome-step-icon{background:#32735a;color:white}.welcome-goal .done b,.welcome-goal .done small{color:#30654f}.welcome-goal .welcome-step.current{background:#f1f5fb;border-color:#cbd8e8}.welcome-goal .current .welcome-step-icon{background:#526d91;color:white}.welcome-goal-track{height:12px}.welcome-goal.overdue .welcome-goal-track i{background:#c37b36}.welcome-goal .welcome-goal-heading strong{font-size:13px!important}.welcome-goal .welcome-preferences{font-size:12px!important;line-height:1.5;color:#60717b;margin:10px 0 0;padding-top:9px;border-top:1px solid #e0e7eb}
#profile-shell{max-width:1120px;margin-inline:auto}#profile-shell .profile-hero{background:#fff;border:1px solid #e2e8ec;box-shadow:none;border-radius:20px;padding:24px;gap:20px;align-items:center}#profile-shell .profile-title h2{font-size:clamp(26px,3vw,36px);letter-spacing:-.035em;line-height:1.18;margin:6px 0 12px}#profile-shell .eyebrow{font-size:11px;letter-spacing:.08em;color:#687d87}#profile-shell .profile-subline{gap:6px}#profile-shell .chip{font-size:11px;font-weight:550}#profile-shell .profile-actions{display:flex;flex-wrap:wrap;gap:6px}#profile-shell .profile-actions button{border-radius:10px;min-height:40px;padding:9px 12px;font-size:12px;box-shadow:none}#profile-shell .profile-actions button b{font-weight:600}#profile-shell .profile-actions button span{width:16px;height:16px}#profile-shell .profile-preference-note{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#f3f7f7;border:1px solid #dfe8e7;border-radius:14px;padding:16px 20px;margin:16px 0}#profile-shell .profile-preference-note h3{font-size:13px;margin:0 0 5px;color:#345b56}#profile-shell .profile-preference-note p{font-size:13px;line-height:1.6;margin:0;color:#596e76}#profile-shell .profile-preference-note button{flex-shrink:0}#profile-shell .profile-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}#profile-shell .profile-card{padding:16px 18px;background:#fff;border:1px solid #e3e9ec;border-radius:14px;box-shadow:none;min-width:0}#profile-shell .profile-card p{font-size:12px;margin:0 0 6px;color:#6a7a83}#profile-shell .profile-card strong{font-size:16px;font-weight:600;letter-spacing:-.015em}#profile-shell .profile-welcome-goal{padding:20px;border-radius:16px}#profile-shell .profile-welcome-goal .welcome-goal{max-width:none}#profile-shell .profile-layout{gap:16px;grid-template-columns:1.2fr 1fr}#profile-shell .section-card{padding:20px;border:1px solid #e2e8ec;border-radius:16px;box-shadow:none;background:#fff}#profile-shell .section-card h3{font-size:15px;font-weight:650;letter-spacing:-.01em;margin:0 0 14px}#profile-shell .context-box{font-size:14px;line-height:1.65;padding:0;background:none;border:0;color:#526773}#profile-shell .empty-state{padding:12px 0;font-size:13px;color:#77868e;background:none;border:0}#profile-shell .profile-secondary summary,#profile-shell .profile-editor summary{cursor:pointer;font-size:14px;font-weight:600;color:#526773}#profile-shell details[open]>summary{margin-bottom:18px}#profile-shell .profile-editor{margin-top:16px}#profile-shell .edit-form{margin-top:12px}#profile-shell .timeline-body>strong,#profile-shell .action-item>strong{font-size:13px;font-weight:600}#profile-shell .timeline-body p{font-size:13px;line-height:1.6}#profile-shell .timeline-body small{font-size:11px;line-height:1.6}#profile-shell .profile-danger-zone{margin-top:20px}
@media(max-width:720px){#profile-shell .profile-hero{padding:20px;display:block}#profile-shell .profile-actions{margin-top:18px}#profile-shell .profile-actions button{flex:1;padding:9px 8px;gap:5px}#profile-shell .profile-preference-note{align-items:flex-start;flex-direction:column;gap:10px;padding:16px}#profile-shell .profile-metrics{gap:6px}#profile-shell .profile-card{padding:12px 10px}#profile-shell .profile-card strong{font-size:13px}#profile-shell .profile-card p{font-size:11px}#profile-shell .profile-layout{display:block}#profile-shell .profile-layout>div+div{margin-top:16px}#profile-shell .section-card,#profile-shell .profile-welcome-goal{padding:16px}.welcome-goal .welcome-step{gap:6px;padding:8px}.welcome-goal .welcome-step small{font-size:10px}}

#profile-shell .welcome-preferences{display:none}

/* One focused editor, reached from the profile header. */
#profile-shell .profile-editor-dialog{width:min(620px,calc(100vw - 32px));max-height:min(800px,calc(100dvh - 48px));padding:0;margin:auto;border:1px solid #dce5e8;border-radius:24px;background:#fff;color:#28434f;box-shadow:0 24px 90px #183c4d33;overflow:hidden}
#profile-shell .profile-editor-dialog::backdrop{background:#17344166;backdrop-filter:blur(4px)}
#profile-shell .profile-editor-dialog[open]{display:flex;flex-direction:column}
#profile-shell .profile-editor-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 26px 18px;flex-shrink:0}
#profile-shell .profile-editor-header p{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:#6b8089;margin:0 0 5px}
#profile-shell .profile-editor-header h2{font-size:23px;letter-spacing:-.03em;line-height:1.25;margin:0;font-weight:650}
#profile-shell #profile-editor-close{border:0;border-radius:50%;background:#f0f4f5;color:#637680;font-size:25px;width:36px;height:36px;padding:0;flex-shrink:0;cursor:pointer}
#profile-shell .profile-editor-nav{display:flex;gap:3px;background:#f0f4f5;border-radius:12px;margin:0 24px 20px;padding:4px;flex-shrink:0}
#profile-shell .profile-editor-nav button{flex:1;border:0;border-radius:9px;background:transparent;color:#687c85;font-size:12px;font-weight:600;padding:10px 7px;cursor:pointer}
#profile-shell .profile-editor-nav button[aria-pressed="true"]{background:white;color:#22655d;box-shadow:0 1px 5px #1b3d4c16}
#profile-shell #profile-edit-form{display:flex;flex-direction:column;min-height:0;margin:0;gap:0}
#profile-shell .profile-editor-body{overflow-y:auto;overscroll-behavior:contain;padding:0 26px 24px;min-height:0}
#profile-shell .profile-editor-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px 16px}
#profile-shell .profile-editor-fields[hidden],#profile-shell .profile-editor-dialog [hidden]{display:none!important}
#profile-shell .profile-editor-fields>.full{grid-column:1/-1}
#profile-shell .profile-editor-fields label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:550;min-width:0}
#profile-shell .profile-editor-fields label>span>small{display:inline;font-weight:400;margin-left:6px;color:#829097}
#profile-shell .profile-editor-fields input:not([type="checkbox"]),#profile-shell .profile-editor-fields select,#profile-shell .profile-editor-fields textarea{width:100%;box-sizing:border-box;border:1px solid #dce5e8;border-radius:11px;background:#fafcfc;padding:12px;color:#2e4853;font:inherit;font-size:14px;font-weight:400;min-height:44px;box-shadow:none}
#profile-shell .profile-editor-fields textarea{resize:vertical;min-height:94px;line-height:1.6}
#profile-shell .profile-editor-fields :is(input,select,textarea):focus{outline:2px solid #8abfb5;outline-offset:2px;background:white}
#profile-shell .profile-editor-fields small{font-size:12px;line-height:1.5;color:#71828a;font-weight:400}
#profile-shell .profile-editor-intro h3,#profile-shell .profile-editor-immediate h3{font-size:14px;margin:0 0 5px;font-weight:650}
#profile-shell .profile-editor-intro p,#profile-shell .profile-editor-immediate>p,#profile-shell .profile-editor-danger p{font-size:12px;line-height:1.6;margin:0;color:#71828a}
#profile-shell label.profile-editor-check{flex-direction:row;align-items:flex-start;padding:14px;border:1px solid #dce8e5;border-radius:12px;background:#f4f9f7;gap:10px}
#profile-shell .profile-editor-check input{width:18px;height:18px;margin:1px 0;accent-color:#397d70;flex-shrink:0}
#profile-shell .profile-editor-check span>small{display:block;margin:5px 0 0}
#profile-shell .profile-editor-immediate{border-top:1px solid #e5ebee;padding-top:20px}
#profile-shell .profile-preference-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid #edf1f3}
#profile-shell .profile-preference-row:last-child{border-bottom:0;padding-bottom:0}
#profile-shell .profile-preference-row strong{display:block;font-size:12px;font-weight:600;margin-bottom:4px}
#profile-shell .profile-preference-row small{display:block}
#profile-shell .profile-preference-row button{max-width:210px;font-size:11px;line-height:1.4;flex-shrink:0}
#profile-shell .profile-editor-immediate>button{margin-top:14px}
#profile-shell .profile-editor-danger{border-top:1px solid #e5ebee;padding-top:18px}
#profile-shell .profile-editor-danger summary{font-size:12px;color:#8a6060;cursor:pointer;font-weight:500}
#profile-shell .profile-editor-danger p{margin:12px 0}
#profile-shell .profile-editor-footer{border-top:1px solid #e5ebee;padding:16px 24px;background:#fff;flex-shrink:0}
#profile-shell .profile-editor-footer>div{display:flex;justify-content:flex-end;gap:8px}
#profile-shell .profile-editor-footer button{padding:11px 18px;border-radius:11px;font-size:13px;font-weight:600;min-height:42px}
#profile-shell .profile-editor-footer .primary-btn{background:#286c61;color:white;border:1px solid #286c61;box-shadow:none}
#profile-shell .profile-editor-footer .form-message:empty{display:none}
#profile-shell .profile-editor-footer .form-message{margin:0 0 10px;font-size:12px}
#profile-shell .profile-editor-unsaved{margin:10px 0!important;color:#906931!important}
#profile-shell .profile-editor-dialog button:disabled{opacity:.45;cursor:not-allowed}
#profile-shell .profile-secondary{background:#f9fbfc;padding:16px 20px}
#profile-shell .profile-secondary summary{font-size:13px}
#profile-shell .profile-actions #profile-edit-toggle{background:#edf5f2;color:#326b5f;border-color:#d9e8e2}
@media(max-width:600px){#profile-shell .profile-editor-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 24px);border-radius:20px}#profile-shell .profile-editor-header{padding:20px 18px 16px}#profile-shell .profile-editor-header h2{font-size:21px}#profile-shell .profile-editor-nav{margin:0 14px 18px}#profile-shell .profile-editor-nav button{font-size:11px;padding:10px 5px}#profile-shell .profile-editor-body{padding:0 18px 20px}#profile-shell .profile-editor-fields{gap:16px;grid-template-columns:1fr}#profile-shell .profile-editor-footer{padding:12px 18px}#profile-shell .profile-preference-row{align-items:flex-start;flex-direction:column;gap:8px}#profile-shell .profile-preference-row button{max-width:none}#profile-shell .profile-editor-footer>div>button{flex:1}}

#profile-shell .profile-editor-fields label.profile-editor-check>span>small{display:block;margin:5px 0 0}

.contact-status-panel{display:flex;align-items:flex-start;gap:11px;border:1px solid #ebcccc;border-left:4px solid #b85a55;border-radius:12px;background:#fff3f1;padding:14px 16px;margin:14px 0 16px;color:#81433e;max-width:480px}
.contact-status-panel .contact-status-symbol{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#b85a55;color:white;font-weight:700;flex-shrink:0}
#view-moves .contact-status-panel strong{display:block;font-size:15px;font-weight:700;color:#81433e}
#view-moves .contact-status-panel p{font-size:13px;line-height:1.5;margin:4px 0;color:#86504b}
#view-moves .contact-status-panel small{font-size:12px;line-height:1.5;margin:4px 0 0;color:#86504b}
.contact-status-panel.exempt{background:#f2f5fa;border-color:#d5ddea;border-left-color:#6d7f9f;color:#4c607d}.contact-status-panel.exempt .contact-status-symbol{background:#6d7f9f}
#view-moves .contact-status-panel.exempt :is(strong,p,small){color:#4c607d}
#view-moves .contact-status-panel~.welcome-goal .welcome-preferences{display:none}
@media(max-width:600px){.contact-status-panel{padding:12px;gap:8px}#view-moves .contact-status-panel strong{font-size:14px}}

.contact-status-panel small b{display:block;font-size:12px;font-weight:650;margin:8px 0 3px}.contact-status-panel small{display:block;line-height:1.6}.profile-welcome-goal:has(.contact-status-panel){padding:0!important;border:0!important;background:transparent!important}.profile-welcome-goal .contact-status-panel{max-width:none;margin:0}

/* Direct recording uses the existing welcome step, with native keyboard/touch behavior. */
.welcome-goal button.welcome-invitation-action{font:inherit;text-align:left;cursor:pointer;min-height:44px;color:inherit;width:100%;box-sizing:border-box}
.welcome-invitation-action>span:last-child{min-width:0;overflow-wrap:anywhere}.welcome-invitation-action small{text-decoration:underline;text-underline-offset:2px}
.welcome-invitation-action:focus-visible{outline:3px solid var(--focus-ring,#0877b7);outline-offset:3px}.welcome-invitation-action:disabled{cursor:default}.welcome-invitation-action.done small{text-decoration:none}

/* Welcome invitation recording stays recognizable as an action in either theme. */
.welcome-goal .welcome-invitation-action{border-color:#abc6d5;background:#edf6fb;transition:background .15s,border-color .15s}
.welcome-goal .welcome-invitation-action:not(:disabled):hover{background:#e3f0f8;border-color:#6397b5}
.welcome-invitation-action .welcome-invitation-cta{display:block;margin-top:5px;font-size:12px;line-height:1.4;font-weight:650;color:#175678;text-decoration:none}
.welcome-invitation-action small{text-decoration:none}.welcome-invitation-action[data-invitation-state="failed"]{border-color:#b56565}.welcome-invitation-action[data-invitation-state="failed"] .welcome-invitation-cta{color:#963b3b}
.welcome-invitation-action[data-invitation-state="saving"],.welcome-invitation-action[data-invitation-state="opening"]{opacity:1;border-style:dashed}
.welcome-invitation-action.done .welcome-invitation-cta{color:#30654f}
html[data-theme="dark"] .welcome-goal .welcome-invitation-action{background:#203846!important;border-color:#527c94!important;color:var(--ink)}
html[data-theme="dark"] .welcome-invitation-action :is(b,small,.welcome-invitation-cta){color:#c3dfef!important}
html[data-theme="dark"] .welcome-goal .welcome-invitation-action.done{background:#203b32!important;border-color:#426c57!important}
html[data-theme="dark"] .welcome-invitation-action.done .welcome-invitation-cta{color:#9ae0b3!important}
html[data-theme="dark"] .welcome-invitation-action[data-invitation-state="failed"] .welcome-invitation-cta{color:#f4acb5!important}
#member-contact-modal.invitation-mode .member-contact-dialog{display:flex;flex-direction:column;overflow:hidden;padding:0;max-height:calc(100dvh - 24px);background:var(--surface,#fff)}
#member-contact-modal.invitation-mode .member-contact-head{flex-shrink:0;margin:0;padding:20px;border-bottom:1px solid var(--line,#d7e3eb);background:var(--surface,#fff);gap:12px}
#member-contact-modal.invitation-mode #member-contact-title{font-size:24px;line-height:1.2;margin:4px 0 8px}
#member-contact-modal.invitation-mode #member-contact-assignment{font-size:13px;line-height:1.5;color:var(--muted,#58708a);margin:0;max-width:45ch}
#member-contact-modal.invitation-mode #member-contact-form{overflow-y:auto;min-height:0;margin:0;padding:20px;overscroll-behavior:contain;scroll-padding:16px}
#member-contact-modal.invitation-mode #member-contact-person{display:none}
#member-contact-modal.invitation-mode .invitation-person-name{display:block;font-size:16px;line-height:1.5;color:var(--ink,#142f4d);overflow-wrap:anywhere;white-space:normal;font-weight:650}
#member-contact-modal.invitation-mode #member-contact-close{width:44px;height:44px;min-width:44px;flex-shrink:0}
#member-contact-modal.invitation-mode .compact-additional-contact{display:none}
#member-contact-modal.invitation-mode :is(#member-contact-save,#member-contact-cancel,#member-contact-more-toggle){min-height:44px}
#member-contact-modal.invitation-mode #member-contact-message:not(:empty){padding:12px;border-radius:10px;background:var(--surface-soft,#f2f6f8);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:620px){#member-contact-modal.invitation-mode .member-contact-head{padding:16px}#member-contact-modal.invitation-mode #member-contact-form{padding:16px}#member-contact-modal.invitation-mode .member-contact-dialog{max-height:94dvh}}

html[data-theme="dark"] #view-moves .welcome-goal button.welcome-invitation-action{background:#203846!important;border-color:#527c94!important;color:#c3dfef!important}
html[data-theme="dark"] #view-moves .welcome-goal button.welcome-invitation-action.done{background:#203b32!important}
@media(max-width:620px){#view-moves .moves-person:not(.moves-person-departed){display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px}#view-moves .moves-person:not(.moves-person-departed) .moves-person-copy{min-width:0}#view-moves .moves-person:not(.moves-person-departed)>.small-action-btn{grid-column:2;justify-self:start}#view-moves .moves-person .welcome-goal-steps{grid-template-columns:1fr}#view-moves .moves-person .welcome-step{min-width:0}}
