/* All selectors are restricted to account screens; the public home is unchanged. */
.workspace-mode .identity-card{overflow:hidden;position:relative}
@media(min-width:1051px){.workspace-mode .account-layout{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}}
.identity-card{scroll-margin-top:112px}
.identity-heading{display:flex;align-items:center;gap:18px;margin-bottom:28px}.workspace-mode .identity-heading h2{margin:0 0 8px}.identity-heading p{font-size:14px;color:var(--muted);line-height:1.6}.identity-emblem{display:grid;place-items:center;width:64px;height:64px;flex-shrink:0;border-radius:18px;background:linear-gradient(135deg,#e8efff,#f3f7ff);color:#315bc2}.identity-emblem svg{width:40px;height:40px}
.identity-steps{list-style:none;padding:0;margin:0 0 28px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.identity-steps li{font-size:12px;line-height:1.6;color:var(--muted);border-top:2px solid var(--line);padding-top:12px;display:flex;gap:8px;align-items:flex-start}.identity-steps li[aria-current]{border-color:var(--blue);color:var(--blue);font-weight:600}.identity-steps li.complete{border-color:#34805a;color:#296b4a}.identity-steps li>span{font-weight:700}
.identity-state{padding:20px;border:1px solid #dfe7f1;background:#f7f9fc;border-radius:14px;margin-top:24px}.identity-state>p{margin-top:14px;font-size:14px;line-height:1.8}.identity-card[data-identity-status=approved] .identity-state{background:#f0f8f3;border-color:#c2dfcc}.identity-card[data-identity-status=pending] .identity-state{background:#f2f5ff;border-color:#cdd9f3}.identity-card[data-identity-status=rejected] .identity-state{background:#fff8ef;border-color:#e8d3b4}.identity-review-note{padding:18px;border-inline-start:3px solid #b5782f;background:#fffaf1;border-radius:8px;margin-top:20px}.identity-review-note p{margin-top:10px;white-space:pre-wrap;font-size:14px}
.workspace-mode .identity-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.identity-upload{min-width:0;position:relative}.identity-drop{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:24px 16px;min-height:286px;border:1px dashed #9cb1d2;background:linear-gradient(160deg,#fcfdff,#f2f6fc);border-radius:16px;cursor:pointer;position:relative;transition:border-color .2s,box-shadow .2s,transform .2s;overflow:hidden}.identity-drop:hover{border-color:var(--blue);box-shadow:0 8px 24px #254b9810;transform:translateY(-2px)}.identity-drop:focus-within{outline:3px solid var(--blue);outline-offset:3px}.identity-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.identity-drop>strong{font-size:15px;line-height:1.5}.identity-file-icon{width:52px;height:52px;color:#5479b8;display:grid;place-items:center}.identity-file-icon svg{width:48px;height:48px}.identity-file-hint{color:var(--muted);font-size:12px;line-height:1.7}.identity-select{display:flex;align-items:center;justify-content:center;gap:14px;font-size:13px;font-weight:600;color:#2854b0;min-height:42px;padding:8px 14px;border:1px solid #d6e1f2;border-radius:8px;background:white;margin-top:auto}.identity-preview{width:100%;height:150px;object-fit:contain;border-radius:10px;background:#eaf0f8;animation:identity-reveal .25s ease-out}.identity-file-name{font-size:12px;overflow-wrap:anywhere;max-width:100%;line-height:1.6;color:var(--muted)}.identity-upload[data-ready=true] .identity-drop{border-style:solid;border-color:#7ca48a;background:#f7fbf8}.identity-upload[data-ready=true] .identity-file-icon,.identity-upload[data-ready=true] .identity-file-hint{display:none}.identity-remove{width:100%;text-align:center;font-size:13px}.identity-selection-count{font-size:13px;font-weight:600;margin-top:20px;color:#365b96}.workspace-mode .identity-form>.field-hint{font-size:12px;margin-block:16px}.identity-privacy{font-size:13px;color:var(--muted);padding:16px;border-radius:10px;background:#f5f7fa;line-height:1.7}.workspace-mode .identity-form>[type=submit]{width:100%;justify-content:center;margin-top:24px}.identity-form[aria-busy=true] .identity-drop{opacity:.65;transform:none;box-shadow:none}.identity-form[aria-busy=true] [type=submit]{animation:identity-pulse 1.5s ease-in-out infinite}.identity-card .verification-channels{grid-template-columns:repeat(2,minmax(0,1fr))}
@keyframes identity-reveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes identity-pulse{50%{opacity:.65}}
@media(max-width:1200px) and (min-width:1051px){.workspace-mode .identity-form .form-grid{grid-template-columns:1fr}}
@media(max-width:500px){.workspace-mode .identity-form .form-grid{grid-template-columns:1fr}.identity-drop{min-height:240px}.identity-heading{gap:14px}.identity-emblem{width:52px;height:52px;border-radius:14px}.identity-steps{gap:8px}.identity-steps li{font-size:11px}.identity-preview{height:190px}}
@media(prefers-reduced-motion:reduce){.identity-drop{transition:none}.identity-drop:hover{transform:none}.identity-preview,.identity-form[aria-busy=true] [type=submit]{animation:none}}
.auth-mode .auth-layout{width:calc(100% - 96px);max-width:1440px;margin:40px auto 64px;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);border:1px solid var(--line);border-radius:24px;overflow:hidden;background:#fff;box-shadow:0 16px 64px #14274c08;align-items:stretch}
.auth-mode .auth-art{min-height:720px;height:auto;position:relative}
.auth-mode .auth-art>div{inset-inline:36px;bottom:40px}
.auth-mode .auth-art h2{font-size:clamp(32px,3.5vw,52px);max-width:13ch}
.auth-mode .auth-form-area{width:100%;max-width:680px;justify-self:center;padding:40px 48px}
.auth-mode #auth-flow{margin-block:32px}
.auth-mode #auth-flow>h1{font-size:clamp(30px,3vw,44px);line-height:1.2;margin-bottom:16px;letter-spacing:-.035em}
.auth-mode #auth-flow>.eyebrow{display:none}
.auth-mode .field{margin-block:22px}
.auth-mode .field>span{font-size:14px;font-weight:600;margin-bottom:9px}
.auth-mode .field :is(input,select){min-height:52px;border-radius:10px;background:#fcfdff}
.auth-mode .signup-steps{margin-block:28px;gap:12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.auth-mode .signup-steps li{min-width:0;font-size:12px;line-height:1.5;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding-block:12px;border-top:0;border-bottom:2px solid var(--line)}
.auth-mode .signup-steps li[aria-current]{color:var(--blue);border-color:var(--blue)}
.auth-mode #registration-step>h2{font-size:23px;line-height:1.4;margin-bottom:24px}
.auth-mode .signup-actions{justify-content:space-between;margin-top:28px}
.auth-mode .registration-review>div{padding-block:14px;gap:24px}.auth-mode .registration-review dd{overflow-wrap:anywhere}
.auth-mode .password-guide{font-size:13px;background:#f5f7fb;box-shadow:none}.auth-mode .password-guide ul{margin-block:8px}
.password-input{display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;background:#fcfdff;overflow:hidden}.password-input input{border:0!important;min-width:0;flex:1;width:0!important}.password-toggle{border:0;background:transparent;font-size:12px;color:var(--blue);padding:12px;min-height:48px;max-width:130px;line-height:1.4;flex-shrink:0}
.field-error{display:block;color:#a32936;font-size:13px;margin-top:8px}.field [aria-invalid=true]{border-color:#a32936!important}.form-status{margin-top:16px;color:var(--blue);font-size:14px}.verification-context{padding:16px 20px;border:1px solid var(--line);border-radius:12px;margin-block:24px;background:#f6f8fc;overflow-wrap:anywhere}
.workspace-mode .workspace-main{max-width:none;padding-top:24px}.workspace-mode .workspace-heading{margin-top:16px}.workspace-mode .panel-date{color:var(--muted);font-size:13px}
.workspace-mode .workspace-card,.workspace-mode .appointment-focus{border-radius:16px;box-shadow:none}.workspace-mode .panel-tools{padding-block:4px 20px;border-bottom:1px solid var(--line);gap:20px}
.workspace-mode .workspace-sidebar nav a{border-radius:10px}.workspace-mode .workspace-sidebar nav a[aria-current]{box-shadow:none;border-inline-start:3px solid var(--blue)}
.workspace-mode .next-step{padding:24px 28px;background:white;border:1px solid #d9e2f4;border-inline-start:4px solid var(--blue);border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.workspace-mode .next-step h2{font-size:20px;line-height:1.4;margin-bottom:8px}.workspace-mode .next-step p{font-size:14px;color:var(--muted)}.workspace-mode .next-step .button{flex-shrink:0}
.workspace-mode .panel-shortcuts small{font-size:13px;color:var(--muted)}.workspace-mode .record-row{gap:20px;min-height:88px}.workspace-mode .record-row>span{min-width:0}.workspace-mode .record-row strong{overflow-wrap:anywhere}
.workspace-mode .specialist-card{background:white;border:1px solid var(--line);border-radius:16px;box-shadow:none;overflow:hidden}.workspace-mode .specialist-card h3{font-size:23px;line-height:1.3;margin-block:8px 12px}.workspace-mode .specialist-card .specialist-portrait{border-radius:10px;aspect-ratio:4/3;object-fit:cover;margin-bottom:20px}
.workspace-mode .directory-actions{display:flex;justify-content:flex-end}.workspace-mode #specialist-results>.empty-state{grid-column:1/-1}.workspace-mode .full-profile{max-width:1200px;width:100%;align-self:center}
.workspace-mode .upload-panel{padding:28px;border:1px dashed #8ca5cc;border-radius:16px;background:#f9fbff;gap:24px}.workspace-mode .upload-panel h2{font-size:26px;margin-bottom:12px}.workspace-mode .upload-panel p{font-size:14px}.upload-status{padding:22px;border:1px solid var(--line);border-radius:12px;background:#fff}.upload-status strong{overflow-wrap:anywhere}.upload-status p{margin-block:12px}.upload-status progress{width:100%;accent-color:var(--blue)}
.workspace-mode .document-row{grid-template-columns:44px minmax(0,1fr) auto auto auto}.workspace-mode .document-row strong{overflow-wrap:anywhere}.workspace-mode .booking-tabs{display:flex;gap:12px;flex-wrap:wrap;padding-block:20px}.workspace-mode .booking-tabs a{padding:10px 16px;border-radius:24px;background:#f3f6fb;font-size:14px}.workspace-mode .booking-tabs a[aria-current]{background:var(--ink);color:white}
.workspace-mode .message-layout{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}.workspace-mode .conversation-list{padding:20px}.workspace-mode .conversation{padding:20px 16px;border-radius:10px;margin-top:8px}.workspace-mode .conversation.selected{background:#eaf0ff}.workspace-mode .chat-heading{padding:20px;border-bottom:1px solid var(--line);gap:16px;flex-wrap:wrap}.workspace-mode .message-compose{border-top:1px solid var(--line);background:#fff;flex-wrap:wrap}.workspace-mode .message-list{padding:24px}.workspace-mode .message{max-width:85%;overflow-wrap:anywhere}
.workspace-mode .account-layout h2{font-size:25px;line-height:1.3;margin-bottom:16px}.workspace-mode .verification-channels>div{background:#f5f7fb;border-radius:12px;padding:16px}.workspace-mode .identity-card .field-hint{line-height:1.7}
.workspace-mode .mobile-workspace-links{display:none}
.workspace-mode .request-detail-links{display:flex;gap:12px;flex-wrap:wrap;margin-block:24px}.workspace-mode .booking-summary{padding:24px;background:#f1f5fc;border:1px solid var(--line);border-radius:14px;margin-bottom:24px}.workspace-mode .booking-summary strong{font-size:21px;line-height:1.5}.workspace-mode .booking-summary p{margin-top:12px;color:var(--muted)}
.workspace-mode :is(.workspace-card,.next-step,.card-heading,.record-row,.booking-summary)>*{min-width:0}
.workspace-mode :is(.workspace-card,.next-step,.request-detail-links,.card-heading) .button{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:start}
.auth-mode :is(.auth-links,.signup-actions,.registration-review)>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
.workspace-mode #workspace-content>.card-heading>h2{display:none}
@media(max-width:700px){.workspace-mode .workspace-heading{flex-direction:row;align-items:center;gap:16px}.workspace-mode .workspace-heading>.button{width:auto;max-width:135px;font-size:13px;padding:12px;flex-shrink:0}.workspace-mode .workspace-heading h1{font-size:25px}.workspace-mode .panel-tools{display:flex;flex-wrap:wrap;gap:12px}.workspace-mode .panel-tools>button{flex:1 1 100%;min-height:48px}.workspace-mode .panel-tools>a[href*="/tools"]{display:none}.workspace-mode .policy-draft{font-size:13px;padding:16px}}
.workspace-mode .modal-body>p,.auth-mode .modal-body>p{margin-block:16px}.workspace-mode .modal-body>h3{margin-top:24px}.workspace-mode .event-list{padding-block:24px}.workspace-mode .slot-options{display:flex;gap:12px;flex-wrap:wrap}.workspace-mode .slot-options label{min-height:48px;padding:10px;border:1px solid var(--line);border-radius:8px}
@media(min-width:1500px){.workspace-mode .workspace-main{padding-inline:48px}.workspace-mode #workspace-content{max-width:1560px;margin-inline:auto}}
@media(max-width:1000px){.auth-mode .auth-layout{width:calc(100% - 48px);grid-template-columns:minmax(0,.65fr) minmax(0,1fr)}.auth-mode .auth-form-area{padding:32px}.auth-mode .auth-art>div{inset-inline:24px}.workspace-mode .next-step{align-items:flex-start;flex-direction:column}}
@media(max-width:700px){.auth-mode .auth-layout{display:block;width:calc(100% - 32px);margin:24px auto 40px;border-radius:16px}.auth-mode .auth-art{display:none}.auth-mode .auth-form-area{padding:24px 20px}.auth-mode #auth-flow{margin-top:28px}.auth-mode .signup-steps{gap:8px}.auth-mode .signup-steps li{font-size:11px}.auth-mode .form-grid{grid-template-columns:1fr}.workspace-mode .mobile-workspace-links{display:flex;gap:10px;overflow-x:auto;padding:4px 0 16px;scrollbar-width:thin}.workspace-mode .mobile-workspace-links a{white-space:nowrap;padding:10px 14px;min-height:44px;border:1px solid var(--line);background:#fff;border-radius:24px;font-size:13px}.workspace-mode .mobile-workspace-links a[aria-current]{background:var(--ink);color:#fff}.workspace-mode .next-step{padding:20px}.workspace-mode .panel-tools{margin-bottom:16px}.workspace-mode .upload-panel{padding:22px;align-items:flex-start;flex-direction:column}.workspace-mode .document-row{grid-template-columns:44px minmax(0,1fr);row-gap:16px}.workspace-mode .document-row>:nth-child(n+3){grid-column:auto;justify-self:start}.workspace-mode .message-compose textarea{flex-basis:100%;min-height:80px}.workspace-mode .message-layout{min-width:0}.workspace-mode .conversation-list{padding:16px}.workspace-mode .message-list{padding:16px}.workspace-mode .panel-shortcuts{grid-template-columns:1fr 1fr}.workspace-mode .booking-tabs a{font-size:13px;padding:10px 12px}}
@media(max-width:700px){
 .workspace-mode .workspace-heading{flex-wrap:wrap;align-items:flex-start}
 .workspace-mode .workspace-heading>div{flex:1 1 200px}
 .workspace-mode .workspace-heading>.button{max-width:100%;width:auto}
 .workspace-mode .card-heading{flex-wrap:wrap}
 .workspace-mode .card-heading .text-link{flex-shrink:1;overflow-wrap:anywhere}
 .modal{padding:0;max-height:calc(100dvh - 20px);overflow:auto}
 .modal-heading{top:0;padding:18px 20px}
 .modal-heading h2{min-width:0;overflow-wrap:anywhere;line-height:1.35}
 .modal-body{padding:24px 20px calc(24px + env(safe-area-inset-bottom))}
 .modal .button{max-width:100%;overflow-wrap:anywhere;white-space:normal}
}

/* Keep the underlying page stationary while a service dialog is open. */
html:has(dialog[open]){overflow:hidden}
