/* Handlingshierarki: explicit surfaces, shared by portal and administration. */
.ux-shell { color: #17243a; }
.ux-shell *, .ux-shell *::before, .ux-shell *::after { box-sizing: border-box; }
.ux-shell :where(button, a, input, select, textarea, summary):focus-visible {
    outline: 3px solid #4259d8; outline-offset: 3px;
}
.ux-shell :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) {
    max-width: 100%; min-width: 0; min-height: 44px;
}
.ux-shell :where(button, summary) { min-height: 44px; }
.ux-shell summary { cursor: pointer; }
.ux-shell summary::marker { color: #4259d8; }
.ux-shell :where(h1, h2, h3, p, dd, td) { overflow-wrap: anywhere; }
.ux-shell .ux-workspace {
    background: #fff; border: 1px solid #cbd5e1; border-radius: 12px;
    box-shadow: none; padding: clamp(16px, 3vw, 28px);
}
.ux-shell .ux-info, .ux-shell .ux-records {
    background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0;
}
.ux-shell .ux-records { border-top: 1px solid #dce2e9; padding-top: 20px; }
.ux-shell .ux-info > p:first-child { color: #526176; }
.ux-shell .ux-status-list > * { background: transparent; border: 0; border-left: 2px solid #cbd5e1; border-radius: 0; padding: 4px 16px; }
.ux-shell .ux-help {
    background: transparent; border: 0; border-top: 1px solid #dce2e9;
    border-radius: 0; box-shadow: none; padding: 12px 0;
}
.ux-shell .ux-help > summary { font-weight: 600; color: #40516a; padding: 10px 0; }
.ux-shell .ux-help > :not(summary) { margin-top: 10px; }
/* Places pilot: actions have a blue edge and visible fields; help stays unboxed. */
.ux-shell .ux-place-task {
    background: #fff; border: 1px solid #aab8ca; border-left: 4px solid #2449a5;
    border-radius: 4px; padding: clamp(16px, 3vw, 28px);
}
.ux-shell .ux-place-task label { font-size: 16px; color: #17243a; }
.ux-shell .ux-place-task :where(input:not([type=hidden]), select) {
    border: 1px solid #748399; background: #fff; border-radius: 4px; box-shadow: none;
    color: #17243a; min-height: 48px;
}
.ux-shell .ux-place-task input::placeholder { color: #64748b; font-weight: 400; opacity: 1; }
.ux-shell .ux-place-task :where(input, select):disabled { background: #edf0f4; color: #64748b; }
.ux-shell .ux-place-task button[class*="bg-indigo-600"] { background: #2449a5; border-radius: 4px; box-shadow: none; }
.ux-shell .ux-place-task button[class*="bg-indigo-600"]:hover:not(:disabled) { background: #193778; }
.ux-shell .ux-place-task button[class*="bg-indigo-600"]:disabled { background: #94a3b8; }
.ux-shell .ux-place-task [data-address-role=status]:empty { display: none; }
.ux-shell .ux-place-toggle > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 64px; padding: 16px; border: 1px solid #748399; border-radius: 4px;
    background: #fff; color: #17243a; font-size: 16px; font-weight: 600; list-style: none;
}
.ux-shell .ux-place-toggle > summary::-webkit-details-marker { display: none; }
.ux-shell .ux-place-toggle > summary:hover { background: #edf3ff; border-color: #2449a5; }
.ux-shell .ux-place-toggle > summary > span:last-child,
.ux-shell .ux-place-toggle-closed { color: #2449a5; flex-shrink: 0; }
.ux-shell .ux-place-toggle-open, .ux-shell .ux-place-toggle[open] .ux-place-toggle-closed { display: none; }
.ux-shell .ux-place-toggle[open] .ux-place-toggle-open { display: inline; }
.ux-shell .ux-place-toggle[open] > summary { background: #edf3ff; border-color: #2449a5; }
.ux-shell .ux-place-toggle > .ux-place-task { margin-top: 12px; }
.ux-shell .ux-action-footer {
    display: flex; justify-content: flex-end; gap: 12px; border-top: 1px solid #dce2e9; padding-top: 20px;
}
.ux-shell .ux-action-footer a {
    background: white; color: #3146a8; border: 1px solid #aab8d1; box-shadow: none;
}
.ux-shell .ux-flow { --flow-gap: 24px; }
.ux-shell .ux-flow [data-onboarding-active-content] { display: flex; flex-direction: column; gap: var(--flow-gap); }
.ux-shell .ux-flow [data-onboarding-active-content] > * { margin-top: 0; }
.ux-shell .ux-flow fieldset { min-width: 0; }
.ux-shell .ux-flow .grid > * { min-width: 0; }
.ux-shell .ux-flow .ux-workspace > form > fieldset {
    border: 0; border-top: 1px solid #e2e8f0; border-radius: 0; background: transparent; padding: 20px 0 0;
}
.ux-shell .ux-flow .ux-workspace > form > fieldset:first-of-type { border-top: 0; padding-top: 0; }
.ux-shell .ux-flow .ux-workspace > form > fieldset > legend { padding: 0; }
.ux-shell .ux-step-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.ux-shell .ux-progress { flex: 1 1 160px; max-width: 260px; }
.ux-shell .ux-service-nav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 3px 8px; }
.ux-shell .ux-service-nav a { flex-shrink: 0; min-height: 44px; }
.ux-shell .ux-checklist { background: transparent; border: 0; box-shadow: none; padding: 0 16px 0 0; }
.ux-shell .ux-flow-nav { border: 0; border-bottom: 1px solid #dce2e9; border-radius: 0; box-shadow: none; padding: 0 0 16px; background: transparent; }
.ux-shell .ux-flow-nav nav { display: flex; flex-wrap: wrap; gap: 6px; }
.ux-shell .ux-flow-nav nav a { min-width: 0; border-radius: 6px; box-shadow: none; }
.ux-shell .ux-flow-nav nav a:not([aria-current]) { border-color: transparent; }
.ux-shell .ux-flow-nav nav a span.block.text-\[11px\] { display: none; }
.ux-skip { position: fixed; left: 12px; top: -100px; z-index: 100; padding: 12px 18px; background: #fff; color: #17243a; border: 2px solid #4259d8; }
.ux-skip:focus { top: 12px; }
.ux-shell .ux-error { padding: 16px; border-left: 4px solid #b91c1c; background: #fff1f2; color: #881337; }
.ux-shell .ux-error a { text-decoration: underline; }
.ux-shell #provider-onboarding-navigation-status { max-width: calc(100vw - 32px); }
@media (max-width: 639px) {
    .ux-shell :where(input, select, textarea) { font-size: 16px; }
    .ux-shell #provider-page-content { padding: 16px 12px 32px; }
    .ux-shell .ux-flow { --flow-gap: 20px; }
    .ux-shell .ux-flow > section:first-child { border: 0; padding: 0; box-shadow: none; }
    .ux-shell .ux-flow h1 { font-size: 1.4rem; line-height: 1.3; }
    .ux-shell .ux-workspace { padding: 16px; border-radius: 8px; }
    .ux-shell .ux-action-footer a { width: 100%; text-align: center; }
    .ux-shell .ux-flow-nav > div:first-child > div:first-child { display: none; }
    .ux-shell .ux-flow-nav nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .ux-shell .ux-flow-nav nav a { padding: 8px; gap: 8px; }
    .ux-shell #flash-container { left: 12px; right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .ux-shell *, .ux-shell *::before, .ux-shell *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* Shared onboarding contract. Deliberately scoped away from customer/admin pages. */
.ux-shell .ux-onboarding .ux-workspace {
    background: #fff; border: 1px solid #aab8ca; border-left: 4px solid #2449a5;
    border-radius: 4px; box-shadow: none; padding: clamp(16px, 3vw, 28px);
}
.ux-shell .ux-onboarding label, .ux-shell .ux-onboarding legend { font-size: 16px; color: #17243a; }
.ux-shell .ux-onboarding :where(input:not([type=hidden]):not([type=checkbox]):not([type=radio]), select, textarea) {
    border: 1px solid #748399; background: #fff; border-radius: 4px; box-shadow: none;
    color: #17243a; min-height: 48px; font-size: 16px;
}
.ux-shell .ux-onboarding :where(input, textarea)::placeholder { color: #64748b; font-weight: 400; opacity: 1; }
.ux-shell .ux-onboarding :where(input, select, textarea):disabled,
.ux-shell .ux-onboarding input[readonly] { background: #edf0f4; color: #526176; }
.ux-shell .ux-onboarding :where(input[type=checkbox], input[type=radio]) { accent-color: #2449a5; flex-shrink: 0; }
.ux-shell .ux-onboarding button[class*="bg-indigo-600"] { background: #2449a5; border-radius: 4px; box-shadow: none; }
.ux-shell .ux-onboarding button[class*="bg-indigo-600"]:hover:not(:disabled) { background: #193778; }
.ux-shell .ux-onboarding button[class*="bg-indigo-600"]:disabled { background: #94a3b8; }
.ux-shell .ux-onboarding details:has(form):not(.ux-place-toggle) > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 52px; padding: 12px 16px; border: 1px solid #748399; border-radius: 4px;
    background: #fff; color: #2449a5; font-size: 16px; font-weight: 600; list-style: none;
}
.ux-shell .ux-onboarding details:has(form):not(.ux-place-toggle) > summary::-webkit-details-marker { display: none; }
.ux-shell .ux-onboarding details:has(form):not(.ux-place-toggle) > summary::after { content: '+'; font-size: 22px; flex-shrink: 0; }
.ux-shell .ux-onboarding details[open]:has(form):not(.ux-place-toggle) > summary { background: #edf3ff; border-color: #2449a5; }
.ux-shell .ux-onboarding details[open]:has(form):not(.ux-place-toggle) > summary::after { content: '−'; }
.ux-shell .ux-onboarding .ux-workspace article { border-radius: 4px; box-shadow: none; }
.ux-shell .ux-onboarding .ux-info :where(.bg-slate-50, .bg-emerald-50, .bg-amber-50) { background: transparent; border-radius: 0; box-shadow: none; }
.ux-shell .ux-onboarding .ux-info > .ux-status-list { gap: 12px; margin-top: 12px; }

/* Admin company onboarding: flat status, explicit work areas, distinct editing surfaces. */
.ux-admin-onboarding { color: #17243a; }
.ux-admin-onboarding [id] { scroll-margin-top: 100px; }
.ux-admin-service-context { border-bottom: 1px solid #cbd5e1; padding-bottom: 20px; }
.ux-admin-service-context > strong { display: block; font-size: 20px; }
.ux-admin-service-context > p { margin: 6px 0 12px; color: #475569; font-size: 14px; }
.ux-admin-service-context nav { display: flex; flex-wrap: wrap; gap: 8px; }
.ux-admin-service-context nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid #94a3b8; border-radius: 4px; background: white; color: #173d8d; }
.ux-admin-service-context nav a[aria-current] { background: #2449a5; border-color: #2449a5; color: white; font-weight: 600; }
.ux-admin-overview { padding: 0 0 20px; border-bottom: 1px solid #cbd5e1; }
.ux-admin-overview > .flex { display: block; }
.ux-admin-overview .grid { min-width: 0; margin-top: 16px; text-align: left; gap: 16px; }
.ux-admin-overview .grid > div { padding: 0; background: transparent; box-shadow: none; border-radius: 0; }
.ux-admin-overview > details { background: transparent; border: 0; border-top: 1px solid #e2e8f0; border-radius: 0; }
.ux-admin-followup { padding: 16px 20px; background: #edf3ff; border-left: 4px solid #2449a5; }
.ux-admin-followup h2 { font-size: 18px; font-weight: 700; }
.ux-admin-followup p { font-size: 14px; line-height: 1.6; margin: 8px 0; }
.ux-admin-primary-link { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; background: #2449a5; color: white; border-radius: 4px; font-weight: 600; }
.ux-admin-workareas { border-top: 1px solid #aab8ca; }
.ux-admin-workarea { border-bottom: 1px solid #aab8ca; }
.ux-admin-workarea > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 16px; cursor: pointer; list-style: none; background: white; }
.ux-admin-workarea > summary::-webkit-details-marker { display: none; }
.ux-admin-workarea > summary::after { content: '+'; color: #2449a5; font-size: 26px; flex-shrink: 0; }
.ux-admin-workarea[open] > summary::after { content: '−'; }
.ux-admin-workarea > summary strong { display: block; font-size: 18px; }
.ux-admin-workarea > summary small { display: block; margin-top: 6px; font-size: 14px; color: #475569; font-weight: 400; line-height: 1.5; }
.ux-admin-workarea > summary:hover, .ux-admin-workarea[open] > summary { background: #edf3ff; }
.ux-admin-workarea-body { padding: 20px 16px; display: grid; gap: 24px; }
.ux-admin-workarea-body > p { font-size: 15px; line-height: 1.6; color: #475569; }
.ux-admin-workarea-body :where(section, article, .shadow-sm) { box-shadow: none; border-radius: 4px; }
.ux-admin-workarea-body form { padding: 16px; border: 1px solid #aab8ca; border-left: 4px solid #2449a5; border-radius: 4px; background: white; }
.ux-admin-workarea-body form :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) { width: 100%; min-height: 44px; border: 1px solid #748399; border-radius: 4px; padding: 8px 10px; background: white; font-size: 16px; }
.ux-admin-workarea-body form label { font-size: 14px; line-height: 1.5; }
.ux-admin-workarea-body form button { min-height: 44px; font-size: 14px; }
.ux-admin-workarea-body form :disabled { opacity: .55; cursor: not-allowed; }
.ux-admin-workarea-body > a { color: #173d8d; text-decoration: underline; padding: 10px 0; }
.ux-admin-onboarding :where(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid #2449a5; outline-offset: 3px; }
@media (max-width: 767px) {
    .ux-admin-workarea-body { padding: 16px 0; }
    .ux-admin-workarea-body form { padding: 12px; }
    .ux-admin-workarea-body .grid { grid-template-columns: minmax(0, 1fr); }
    .ux-admin-workarea-body > *, .ux-admin-workarea-body .grid > * { min-width: 0; }
    .ux-admin-workarea-body table { display: block; overflow-x: auto; max-width: 100%; }
}
