/* Expert workspace. Shell, rail and type scale come from recruiter-portal.css;
   this file only adds the onboarding, task and admin surfaces. */

.expert-app .rail-brand img { width: 78px; }
.expert-app .recruiter-rail[inert] .rail-nav,
.expert-app .recruiter-rail[inert] .rail-foot { opacity: 0.35; }
.expert-view { min-width: 0; height: 100svh; overflow-y: auto; background: #f7f7f5; animation: workspace-view-in 260ms var(--ease) both; }
.expert-shell { width: min(100%, 1080px); margin-inline: auto; padding: 44px clamp(24px, 5vw, 64px) 80px; letter-spacing: 0.01em; }

/* Element defaults inside the workspace and the admin review page */
:is(.expert-shell, .expert-admin) h1 { margin: 0; color: #171917; font-size: clamp(1.35rem, 1.7vw, 1.58rem); font-weight: 540; letter-spacing: 0.012em; line-height: 1.2; }
:is(.expert-shell, .expert-admin) h2 { margin: 0; color: #1b1e1c; font-size: 1rem; font-weight: 590; letter-spacing: 0.012em; line-height: 1.3; }
:is(.expert-shell, .expert-admin) h3 { margin: 0; color: #1d201e; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.015em; }
:is(.expert-shell, .expert-admin) p { max-width: 72ch; margin: 0 0 12px; color: #4b504c; font-size: 0.8rem; line-height: 1.55; }
:is(.expert-shell, .expert-admin) a { color: #2b2f2c; text-underline-offset: 3px; }
:is(.expert-shell, .expert-admin) a:hover { color: var(--primary-red); }
:is(.expert-shell, .expert-admin) label { display: block; color: #3e423f; font-size: 0.72rem; font-weight: 540; letter-spacing: 0.012em; }
:is(.expert-shell, .expert-admin) label .optional { color: #8b8e8a; font-weight: 450; }
:is(.expert-shell, .expert-admin) :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { display: block; width: 100%; min-height: 42px; margin-top: 6px; padding: 9px 11px; border: 1px solid #d5d7d4; border-radius: 4px; outline: 0; background: #fff; color: #1b1e1c; font: inherit; font-size: 0.8rem; letter-spacing: 0.01em; transition: border-color 130ms ease, box-shadow 130ms ease; }
:is(.expert-shell, .expert-admin) textarea { min-height: 86px; resize: vertical; line-height: 1.5; }
:is(.expert-shell, .expert-admin) :is(input, select, textarea):focus { border-color: #777a76; box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.05); }
:is(.expert-shell, .expert-admin) ::placeholder { color: #a3a6a2; }
:is(.expert-shell, .expert-admin) input[readonly] { background: #f8f8f6; color: #777b78; }
:is(.expert-shell, .expert-admin) input[type=file] { max-width: 100%; padding: 8px; font-size: 0.74rem; }
:is(.expert-shell, .expert-admin) small { display: block; margin-top: 6px; color: #7b7f7b; font-size: 0.68rem; font-weight: 400; }
:is(.expert-shell, .expert-admin) button, .expert-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid #cfd1ce; border-radius: 3px; background: #fff; color: #343835; font: inherit; font-size: 0.74rem; font-weight: 520; letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: border-color 130ms ease, background 130ms ease; }
:is(.expert-shell, .expert-admin) button:hover:not(:disabled), .expert-button:hover { border-color: #aeb2ae; background: #f8f8f6; color: #202321; }
.expert-admin .primary { border-color: #1f2220; background: #1f2220; color: #fff; }
.expert-admin .primary:hover:not(:disabled) { border-color: #000; background: #000; color: #fff; }
:is(.expert-shell, .expert-admin) button:disabled { opacity: 0.45; cursor: not-allowed; }
:is(.expert-shell, .expert-admin) button svg, .expert-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:is(.expert-shell, .expert-admin) :focus-visible { outline: 2px solid #252825; outline-offset: 2px; }
:is(.expert-shell, .expert-admin) progress { width: 100%; height: 6px; margin-top: 14px; accent-color: #2f7a4f; }
.muted, :is(.expert-shell, .expert-admin) p.muted { color: #6b706c; }

/* Page heading */
.expert-shell .intro { margin-bottom: 26px; }
.expert-shell .intro p { margin: 7px 0 0; color: #555a5c; font-size: 0.86rem; }

/* Messages and notes */
.expert-message { margin: 0 0 18px; padding: 11px 14px; border: 1px solid #dab0aa; border-radius: 4px; background: #fff0ed; color: #822c20; font-size: 0.76rem; }
.expert-message:empty { display: none; }
.expert-message.success { border-color: #b9d8c3; background: #edf7f0; color: #245b3c; }
.expert-note { margin: 16px 0; padding: 12px 14px; border: 1px solid #e3e5e2; border-radius: 4px; background: #fafaf8; color: #555a56; font-size: 0.74rem; line-height: 1.5; }
.expert-note.error { border-color: #ecc8c1; background: #fff4f1; color: #822c20; }
.expert-note button { min-height: 30px; margin-left: 8px; }
.expert-status { width: max-content; padding: 3px 8px; border: 1px solid #d9dcda; border-radius: 3px; background: #f2f2f0; color: #454946; font-size: 0.64rem; font-weight: 560; letter-spacing: 0.015em; white-space: nowrap; display: inline-block; }
.expert-status::first-letter { text-transform: uppercase; }
.expert-status.good { border-color: #9cc9ab; background: #e8f5ec; color: #215d36; }
.expert-empty { padding: 28px 0; color: #777b78; font-size: 0.78rem; }

/* Progress */
.expert-progress { margin-bottom: 34px; padding: 18px 22px 16px; border: 1px solid #dedfdd; border-radius: 5px; background: #fff; }
.progress-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.progress-caption strong { color: #1d201e; font-size: 0.78rem; font-weight: 590; }
.progress-caption span { color: #858985; font-size: 0.68rem; font-variant-numeric: tabular-nums; }
.expert-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.expert-stage { display: flex; align-items: flex-start; gap: 5px; padding-top: 9px; border-top: 2px solid #e6e7e5; color: #8b8e8a; font-size: 0.7rem; line-height: 1.35; }
.expert-stage svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.expert-stage.done { border-color: #2f7a4f; color: #2f6b47; }
.expert-stage.current { border-color: var(--primary-red); color: #1d201e; font-weight: 560; }

/* Panels and forms */
.expert-panel { min-width: 0; margin-bottom: 16px; padding: 28px; border: 1px solid #dedfdd; border-radius: 5px; background: #fff; }
.expert-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.expert-panel-header > div { min-width: 0; }
.expert-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.expert-form-grid .wide { grid-column: 1 / -1; }
.expert-stack { display: grid; gap: 20px; }
.expert-subhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.expert-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 12px; font-size: 0.74rem; }
.expert-section { margin-top: 30px; padding-top: 26px; border-top: 1px solid #eceeec; }
.expert-section > h3 + p { margin-top: 4px; }
.expert-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #eceeec; }
.expert-actions > div { display: flex; align-items: center; gap: 8px; }
.expert-actions .expert-save-blocker { max-width: 360px; color: #822c20; font-size: 0.72rem; text-align: right; }
.expert-actions > small, .expert-actions > span { margin: 0; color: #777b78; font-size: 0.7rem; }
.expert-check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; font-size: 0.74rem !important; }
.expert-check input { margin: 3px 0 0; accent-color: #1f2220; }
.expert-secret { display: flex; align-items: flex-end; gap: 6px; }
.expert-secret input { min-width: 0; }
.expert-secret button { min-height: 42px; flex: 0 0 auto; }
.expert-shell details > summary { width: max-content; color: #2b2f2c; font-size: 0.76rem; font-weight: 560; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Onboarding layout */
.onboard-layout { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 28px; align-items: start; }
.onboard-layout > * { min-width: 0; }
.onboard-steps { position: sticky; top: 0; display: grid; gap: 2px; }
.expert-shell .onboard-steps button { width: 100%; min-height: 42px; justify-content: flex-start; gap: 11px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: #5c615d; font-size: 0.76rem; font-weight: 500; letter-spacing: 0.012em; text-align: left; }
.expert-shell .onboard-steps button:hover:not(:disabled) { background: #efefed; color: #202321; }
.expert-shell .onboard-steps button.active { background: #ececea; color: #171917; font-weight: 580; }
.step-dot { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #cfd1ce; border-radius: 50%; background: #fff; color: #5c615d; font-size: 0.64rem; font-weight: 560; }
.onboard-steps button.active .step-dot { border-color: #202321; color: #202321; }
.step-dot.done { border-color: #9cc9ab !important; background: #e8f5ec; color: #215d36 !important; }
.step-dot svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Two-way choice cards (machine access, operating system) */
.expert-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0 0; padding: 0; border: 0; }
.expert-choice legend { margin-bottom: 10px; padding: 0; color: #1d201e; font-size: 0.84rem; font-weight: 590; letter-spacing: 0.012em; }
:is(.expert-shell) .expert-choice label { min-height: 66px; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #d5d7d4; border-radius: 5px; background: #fff; color: #1d201e; font-size: 0.8rem; font-weight: 570; cursor: pointer; transition: border-color 130ms ease, background 130ms ease; }
.expert-choice label:hover { border-color: #aeb2ae; }
.expert-choice label small { margin-top: 2px; color: #7b7f7b; font-size: 0.68rem; font-weight: 400; }
.expert-choice input { position: absolute; opacity: 0; pointer-events: none; }
.expert-choice .choice-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #f2f2f0; color: #4b504c; transition: background 130ms ease, color 130ms ease; }
.expert-choice .choice-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.expert-choice label:has(input:checked) { border-color: #202321; box-shadow: inset 0 0 0 1px #202321; }
.expert-choice label:has(input:checked) .choice-icon { background: #202321; color: #fff; }
.expert-choice label:has(input:focus-visible) { outline: 2px solid #252825; outline-offset: 2px; }

/* Device setup steps */
.expert-steps { margin: 26px 0 0; padding: 0; list-style: none; }
.expert-steps > li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid #eceeec; }
.expert-steps > li:last-child { padding-bottom: 0; }
.step-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; background: #f2f2f0; color: #3e423f; }
.step-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.expert-steps > li.done .step-icon { background: #e8f5ec; color: #215d36; }
.expert-steps strong { display: block; color: #1d201e; font-size: 0.82rem; font-weight: 590; letter-spacing: 0.012em; line-height: 38px; }
.expert-steps p { margin: 0; color: #666b67; font-size: 0.76rem; }
.expert-steps .device-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.expert-steps .expert-note { margin: 10px 0 0; }
.expert-code { color: #171917; font-size: 1.6rem; font-weight: 560; letter-spacing: 0.18em; font-variant-numeric: tabular-nums; line-height: 1.5; }
.device-connected { display: flex; align-items: center; gap: 8px; color: #215d36; font-size: 0.78rem; font-weight: 560; }

/* Tasks */
.expert-tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.expert-task { display: flex; flex-direction: column; margin: 0; border-width: 4px; }
.expert-task.is-todo { border-color: #ffbf00; }
.expert-task.is-done { border-color: #339861; }
.expert-task.is-locked { border-width: 2px; border-color: #dedfdd; background: #eeefed; color: #747974; }
.expert-task.is-locked :is(h2,p) { color: #747974; }
.expert-task-state { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; color: #343835; font-size: .82rem; }
.expert-task-state strong { font-weight: 580; }
.expert-task-marker { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #ffbf00; color: #252825; font-size: 1rem; font-weight: 600; }
.is-done .expert-task-state { color: #267348; }
.is-done .expert-task-marker { background: #2c9057; color: #fff; }
.is-locked .expert-task-state { color: #747974; }
.is-locked .expert-task-marker { background: #dfe2dd; color: #747974; }
.expert-task-marker svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.expert-task .sample-guide-action { margin: 18px 0 26px; }
.expert-task .sample-payment { padding-top: 12px; font-size: .73rem; }
.expert-task .expert-actions { flex-wrap: wrap; gap: 12px; }
.expert-task .expert-actions p { margin: 0; font-size: .74rem; }
.sample-upload-feedback { margin: 12px 0; font-size: .74rem; color: #4b504c; }
.sample-guide-dialog .startup-image img { max-height: 385px; }
.expert-task h2 { margin-bottom: 8px; }
.expert-task-number { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #dedfdd; border-radius: 4px; background: #f7f7f5; color: #3e423f; font-size: 0.74rem; font-weight: 560; }
.expert-task form { display: flex; flex: 1; flex-direction: column; }
.expert-task .expert-actions { margin-top: auto; }
.expert-task form .expert-check { margin-bottom: 28px; }
.expert-task > p { color: #5c615d; }
.expert-instructions { margin: 4px 0 0; padding-left: 18px; color: #4b504c; font-size: 0.78rem; }
.expert-instructions li { padding: 3px 0; }
.expert-file-name { overflow-wrap: anywhere; }

/* Tables and details */
.expert-table-wrap { overflow-x: auto; }
.expert-table { width: 100%; border-collapse: collapse; font-size: 0.74rem; }
.expert-table th { padding: 0 12px 11px; border-bottom: 1px solid #dfe2df; color: #858985; font-size: 0.64rem; font-weight: 560; letter-spacing: 0.025em; text-align: left; }
.expert-table td { padding: 14px 12px; border-bottom: 1px solid #eceeec; color: #343835; }
.expert-table tr:last-child td { border-bottom: 0; }
.expert-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.expert-detail > div { padding: 14px 0; border-top: 1px solid #eceeec; }
.expert-detail dt { color: #858a8c; font-size: 0.66rem; }
.expert-detail dd { margin: 4px 0 0; overflow-wrap: anywhere; color: #292c2d; font-size: 0.8rem; font-weight: 520; }
.expert-money { margin: 4px 0 10px; color: #111; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 580; letter-spacing: 0.005em; line-height: 1.1; }
.expert-device-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #eceeec; font-size: 0.8rem; }
.expert-device-row small { margin: 0; }

/* Admin review page */
.expert-admin { max-width: 1250px; margin: auto; padding: 32px; letter-spacing: 0.01em; }
.expert-admin .expert-topbar { min-height: 52px; display: flex; align-items: center; gap: 22px; border-bottom: 1px solid #dedfdd; font-size: 0.76rem; }
.expert-admin .expert-panel { margin-top: 22px; }
.expert-admin a { color: #386b99; }
.expert-admin .expert-button { color: #343835; }
.expert-admin .intro { margin-bottom: 20px; }
.expert-inline-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.expert-inline-form label { flex: 1; min-width: 170px; }
.expert-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

@media (max-width: 900px) {
  .onboard-layout { grid-template-columns: 1fr; gap: 18px; }
  .onboard-steps { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .onboard-steps::-webkit-scrollbar { display: none; }
  .expert-shell .onboard-steps button { width: auto; flex: 0 0 auto; }
  .expert-tasks, .expert-review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 779px) {
  .expert-view { grid-row: 1; grid-column: 1; height: calc(100svh - 66px); }
  .expert-app .rail-nav { grid-template-columns: repeat(3, 1fr); }
  .expert-shell { padding: 26px 16px 44px; }
  .expert-progress { margin-bottom: 26px; padding: 14px 14px 12px; }
  .expert-stages { gap: 6px; }
  .expert-stage { font-size: 0.6rem; }
  .expert-stage svg { display: none; }
  .expert-panel { padding: 20px 16px; }
  .expert-form-grid, .expert-detail { grid-template-columns: 1fr; }
  .expert-form-grid .wide { grid-column: auto; }
  .expert-actions { flex-wrap: wrap; }
  .expert-admin { padding: 16px; }
}

@media (max-width: 460px) {
  .expert-choice:not(.expert-choice--compact) { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .expert-view { animation: none; }
}

/* Contracting party and clickwrap use the existing tax/payment form scale. */
.contractor-party { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid #e8e9e6; }
.contractor-party [hidden], #entityAuthority[hidden] { display: none; }
.expert-shell .contractor-summary { margin-top: 12px; }
#agreementForm .expert-check { margin: 18px 0 12px; }
#agreementForm .expert-check label { display: inline; font: inherit; }
.expert-shell .terms-link { padding: 0; min-height: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.contractor-terms-modal { width: min(720px, calc(100vw - 32px)); max-height: min(820px, calc(100dvh - 40px)); padding: 0; border: 1px solid #dedfdb; border-radius: 8px; background: #fff; color: #20231f; box-shadow: 0 24px 80px #0003; }
.contractor-terms-modal::backdrop { background: rgb(20 24 20 / 40%); }
.contractor-terms-modal[open] { display: flex; flex-direction: column; }
.contractor-terms-modal header { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-bottom: 1px solid #e8e9e6; }
.contractor-terms-body { overflow-y: auto; overscroll-behavior: contain; padding: 24px 26px; }
.contractor-terms-body section + section { margin-top: 24px; }
.expert-shell .contractor-terms-body p { margin-top: 10px; line-height: 1.65; }
.onboard-steps button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 600px) { .contractor-terms-modal header, .contractor-terms-body { padding: 18px; } }

.contractor-choice { margin-top: 0; }
.contractor-party #companyField { margin-top: 18px; }
@media (max-width: 600px) {
  .expert-shell .contractor-choice label { grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding: 12px 10px; }
  .contractor-choice .choice-icon { width: 30px; height: 30px; }
}

.expert-welcome-brand { font-family: "PrimaryWordmark", sans-serif; font-weight: 700; text-transform: uppercase; }

/* Font Awesome Free 6.7.2 brand silhouettes; see vendor/fontawesome/LICENSE.txt. */
.expert-choice .expert-brand-icon { width: 22px; height: 22px; background: currentColor; mask-position: center; mask-repeat: no-repeat; mask-size: contain; }
.expert-brand-icon--apple { mask-image: url('/assets/vendor/fontawesome/apple.svg'); }
.expert-brand-icon--windows { mask-image: url('/assets/vendor/fontawesome/windows.svg'); }

/* Startup walkthrough: one action and one visual at a time. */
.startup-dialog { width: min(880px, calc(100vw - 32px)); height: min(850px, calc(100dvh - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #dedfdd; border-radius: 8px; background: #fff; color: #202321; box-shadow: 0 24px 80px #0003; }
.startup-dialog[open] { display: flex; flex-direction: column; }
.startup-dialog::backdrop { background: rgb(20 24 20 / 48%); }
.startup-dialog button { min-height: 38px; padding: 8px 14px; border: 1px solid #cfd1ce; border-radius: 4px; background: #fff; color: #343835; font: inherit; font-size: 14px; font-weight: 520; cursor: pointer; }
.startup-dialog button:hover:not(:disabled) { background: #f5f5f3; }
.startup-dialog button:disabled { opacity: .4; cursor: not-allowed; }
.startup-dialog :is(button,a):focus-visible { outline: 2px solid #ff4534; outline-offset: 3px; }
.startup-dialog a { color: #202321; text-underline-offset: 3px; }
.startup-header { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; border-bottom: 1px solid #e8e9e6; }
.startup-header h2 { margin: 0; font-size: 22px; font-weight: 590; letter-spacing: 0; }
.startup-header p { margin: 5px 0 0; font-size: 14px; color: #71766f; }
.startup-toolbar { display: flex; flex: none; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 28px; border-bottom: 1px solid #e8e9e6; font-size: 13px; }
.startup-modes { display: flex; gap: 4px; }
.startup-modes button { border-color: transparent; }
.startup-modes button[aria-pressed=true] { background: #efefec; color: #171917; }
.startup-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px; }
.startup-body h3 { margin: 12px 0; font-size: 23px; line-height: 1.25; font-weight: 570; letter-spacing: 0; }
.startup-body h3:focus { outline: none; }
.startup-body p { max-width: 74ch; margin: 0 0 12px; color: #4b504c; font-size: 15px; line-height: 1.55; }
.startup-body strong { color: #202321; font-weight: 600; }
.startup-index { display: flex; gap: 7px; margin-bottom: 16px; }
.startup-index button { width: 33px; min-height: 33px; padding: 0; border-radius: 50%; font-size: 13px; }
.startup-index button[aria-current=step] { border-color: #ff4534; background: #ff4534; color: #fff; }
.startup-step-count { color: #777b76; font-size: 12px; }
.startup-figure { margin: 20px 0 0; text-align: center; }
.startup-figure a { display: inline-block; max-width: 100%; }
.startup-image { position: relative; display: inline-block; max-width: 100%; vertical-align: top; }
.startup-image img { display: block; width: auto; max-width: 100%; max-height: 330px; object-fit: contain; border-radius: 4px; }
.startup-highlight { position: absolute; border: 3px solid #ff4534; border-radius: 7px; box-shadow: 0 0 0 3px #fff9; pointer-events: none; }
.startup-figure figcaption { margin-top: 9px; color: #777b76; font-size: 12px; }
.startup-body .startup-tip { border-left: 2px solid #d5d7d2; padding-left: 12px; font-size: 13px; }
.startup-step-action { margin-top: 18px; }
.startup-dialog .startup-text-button { border: 0; min-height: 32px; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.startup-footer { flex: none; padding: 16px 28px; border-top: 1px solid #e8e9e6; background: #fff; }
.startup-pagination { display: flex; justify-content: space-between; gap: 12px; }
.startup-footer small { display: block; margin-top: 12px; color: #777b76; font-size: 12px; text-align: center; }
.startup-video { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 18px 0; background: #171917; border-radius: 5px; }
.startup-connection { max-width: 450px; margin: 24px auto 0; padding: 22px; border: 1px solid #dedfdd; border-radius: 6px; background: #f8f8f6; }
.startup-connection > span, .startup-connection > strong { display: block; font-size: 13px; margin-bottom: 8px; }
.startup-connection > strong { margin-bottom: 24px; font-size: 19px; }
.startup-connection > div { margin-bottom: 18px; padding: 12px; border: 1px solid #dedfdd; border-radius: 3px; background: #fff; font-size: 14px; }
.startup-connection small { color: #777b76; font-size: 12px; }
.startup-file { padding: 40px 16px; margin-top: 24px; border: 1px solid #dedfdd; border-radius: 6px; background: #f8f8f6; text-align: center; }
.startup-file > span { display: block; color: #ff4534; font-size: 40px; }
.startup-file strong { display: block; margin: 8px 0; overflow-wrap: anywhere; }
.startup-file p { margin: 0; font-size: 13px; }
@media (max-width: 600px) {
  .startup-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); }
  .startup-header { padding: 16px; }
  .startup-header h2 { font-size: 19px; }
  .startup-header p { font-size: 12px; }
  .startup-toolbar { padding: 10px 12px; gap: 6px; }
  .startup-toolbar button { padding: 7px 10px; font-size: 13px; }
  .startup-body { padding: 18px 16px; }
  .startup-body h3 { font-size: 21px; }
  .startup-body p { font-size: 14px; }
  .startup-footer { padding: 12px 16px; }
  .startup-image img { max-height: 300px; }
}

.startup-index button[aria-current=step]:hover { background: #ff4534; }
.startup-step-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 8px; }
.startup-step-layout.is-wide { grid-template-columns: minmax(0, 1fr); gap: 0; }
.startup-step-layout .startup-figure { margin-top: 12px; }
.startup-step-layout.is-wide .startup-image img { max-height: 275px; }
.startup-step-layout .startup-connection { margin-top: 12px; }
@media (max-width: 600px) { .startup-step-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* Dedicated approval view, derived from received samples and review status. */
.expert-approval { min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 56px 24px; }
.expert-approval-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 50%; color: #454b48; background: #f0f2f0; }
.expert-approval-icon.is-done { color: white; background: #2d9255; }
.expert-approval-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.expert-approval h1 { margin-bottom: 14px; }
.expert-approval p { max-width: 48ch; margin: 0; }
.expert-approval-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 36px; font-size: .72rem; color: #6b706c; }
.expert-help-address { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.expert-shell .expert-copy-email { width: 30px; height: 30px; min-height: 30px; padding: 7px; border: 0; border-radius: 4px; background: transparent; color: #747a76; }
.expert-shell .expert-copy-email:hover:not(:disabled) { background: #f0f2f0; color: #252a27; }
.expert-copy-email img, .expert-shell .expert-copy-email svg { display: block; width: 16px; height: 16px; }
.expert-copy-email img { opacity: .6; }
.expert-shell .expert-copy-email.is-copied { color: #2d9255; }
#helpCopyStatus { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#helpCopyStatus.is-error { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; flex-basis: 100%; font-size: .65rem; }
@media(max-width:600px) { .expert-approval { padding: 36px 18px; } .expert-approval-help>span:first-child { flex-basis: 100%; } }

/* The working portal: repeatable activities above a compact list of real work. */
.work-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:26px 0 14px}
.work-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.work-option{display:flex;flex-direction:column;align-items:flex-start;padding:26px;border:1px solid #dedfdd;border-radius:6px;background:#fff}
.work-symbol{display:grid;place-items:center;width:42px;height:42px;border-radius:8px;background:#f1f3f0;margin-bottom:20px}
.work-symbol img{width:24px;height:24px}
.work-option h2{font-size:19px;margin-bottom:10px}
.work-option ul{padding-left:18px;color:#5d635e;font-size:12px;line-height:1.8;margin:8px 0 24px}
.work-option>button{margin-top:auto}
.work-recent,.work-assigned{margin:26px 0}
.work-list{margin-top:12px;border:1px solid #dedfdd;border-radius:5px;background:#fff;overflow:hidden}
.expert-shell .work-row{display:flex;width:100%;justify-content:space-between;text-align:left;gap:18px;padding:17px 18px;border:0;border-radius:0;border-bottom:1px solid #eceeec;min-height:72px}
.expert-shell .work-row:last-child{border-bottom:0}
.work-row>span:first-child{flex:1;min-width:0}.work-row strong{font-weight:550;overflow-wrap:anywhere}.work-row-meta{text-align:right;font-size:12px}.work-row-meta .is-overdue{color:#a44e28}
.expert-shell .work-back{padding:0;border:0;background:none;min-height:30px;margin-bottom:16px;color:#666e68}
.work-field{margin-top:18px}.work-next{margin-top:20px}
.work-part-layout{display:grid;align-items:start;grid-template-columns:minmax(200px,.7fr) minmax(0,1.3fr);gap:24px}
.work-checklist{padding:20px 0}.work-checklist h3{margin-bottom:8px}.work-checklist ul{list-style:none;padding:0;margin:20px 0;display:grid;gap:16px}.work-checklist li{display:grid;gap:4px;font-size:12px;line-height:1.5}.work-checklist li strong{font-weight:550;color:#343c35}.work-checklist li span{color:#737a74}
.work-files{padding:22px}.work-files .expert-panel-header{margin-bottom:14px}.work-files .expert-actions{flex-wrap:wrap}
.work-file-list{list-style:none;padding:0;margin:16px 0}.work-file-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #eceeec;font-size:12px}.work-file-list li>span:first-child{min-width:0}.work-file-list strong{font-weight:500;overflow-wrap:anywhere}
.expert-shell .work-remove{font-size:11px;min-height:28px;padding:0 8px}
#workUploadStatus{font-size:12px;color:#4b6653;overflow-wrap:anywhere}
.work-record-guide ol{padding-left:22px;margin:0}.work-record-guide li{padding-left:8px;margin:0 0 24px}.work-record-guide li::marker{color:#889187;font-size:14px}.work-record-guide h2{margin-bottom:8px}.work-record-guide>button{margin-right:8px;margin-top:8px}
.expert-approval>button.primary{margin-top:22px;min-height:42px}
@media(max-width:700px){.work-options,.work-part-layout{grid-template-columns:1fr}.work-option{padding:22px}.work-section-heading{align-items:flex-start;flex-direction:column;gap:5px}.work-part-layout{gap:0}.work-row-meta{max-width:110px}.expert-shell .work-row{padding:14px;gap:10px}}

.sample-guide-dialog .recording-controls-crop{position:relative;display:block;aspect-ratio:902/570;overflow:hidden}
.sample-guide-dialog .recording-controls-crop>img{position:absolute;width:212.86%;max-width:none;max-height:none;height:auto;left:-102.44%;top:-61.75%}

.recording-stop-figure a{display:block;width:610px;max-width:100%;margin:auto}

/* Keep the deadline beside the completion count, wrapping together on phones. */
.progress-caption{flex-wrap:wrap;gap:8px 16px}
.progress-summary{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px 18px}
.onboarding-deadline{color:var(--text);font-size:.68rem;font-weight:500;font-variant-numeric:tabular-nums}
@media(max-width:600px){.progress-summary{justify-content:flex-start;width:100%;column-gap:14px}}

.sample-file-examples{padding-left:20px;margin:0 0 20px;color:#4b504c;font-size:.8rem;line-height:1.7}
.sample-draft-files{list-style:none;padding:0;margin:12px 0}
.sample-draft-files li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e8e9e6;font-size:.76rem}
.sample-draft-files li>span{min-width:0;overflow-wrap:anywhere}
.sample-draft-files small{display:block;color:#858985}
.sample-draft-files button{flex-shrink:0;padding:5px 8px;font-size:.7rem}
.sample-part-name{margin-top:16px}
.sample-upload-hint{margin-top:18px!important;font-size:.72rem!important}

/* Part-first intake: one checklist shared by the first and subsequent parts. */
.package-section{padding:22px 0;border-bottom:1px solid #e2e4e2}.package-section:first-child{padding-top:0}.package-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.package-heading>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.package-heading h3{margin:0;font-size:16px;font-weight:600}.package-requirement{font-size:12px;color:#6b706d}.package-section.has-files .package-requirement{color:#267346}.package-section>p{font-size:14px;color:#626762;margin:10px 0;max-width:64ch}.package-files{list-style:none;margin:0;padding:0}.package-files li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0}.package-files li>span{min-width:0;overflow-wrap:anywhere}.package-files small{display:block;color:#707670;margin-top:3px}.package-files button{padding:5px 9px;font-size:12px}.package-intro{max-width:64ch}.recording-bonus{display:inline-block;padding:5px 10px;border-radius:5px;background:#eaf4ec;color:#28683d;font-size:13px;font-weight:500}.expert-stages.intake-stages{grid-template-columns:repeat(2,minmax(0,1fr))}.intake-agreement{margin-top:22px}.intake-agreement label{display:block;margin:12px 0}.intake-agreement input[type=checkbox]{width:auto;display:inline;margin-right:8px}.expert-stack{display:grid;gap:18px}.sample-summary{margin-bottom:24px}.sample-summary p{white-space:pre-line}.recording-setup .expert-panel{max-width:840px}.work-option .recording-bonus{align-self:flex-start}.package-review-context{white-space:pre-line}
@media(max-width:640px){.package-heading{align-items:flex-start;flex-direction:column;gap:10px}.package-heading button{width:100%}.package-section{padding:18px 0}.expert-actions{gap:12px;flex-wrap:wrap}.expert-actions>div{display:flex;flex-wrap:wrap;gap:8px}.expert-stages.intake-stages{grid-template-columns:1fr}.intake-stages .expert-stage{display:block}.package-files li{align-items:flex-start}}
/* Keep consent text inline, independent of the form's block label rules. */
.expert-shell .terms-acceptance{display:flex;align-items:flex-start;gap:10px;margin:20px 0 10px;font-size:14px;line-height:1.6}
.expert-shell .terms-acceptance input[type=checkbox]{flex:0 0 17px;width:17px;height:17px;min-height:0;margin:3px 0 0;padding:0;accent-color:#1f2220}
.expert-shell .terms-acceptance label{display:inline;margin:0;font:inherit;color:inherit;cursor:pointer}
.expert-shell .terms-acceptance .terms-link{display:inline;padding:0;min-height:0;font:inherit;letter-spacing:normal;vertical-align:baseline}
.expert-shell .terms-hint{margin:0;color:#6b706c;font-size:13px;line-height:1.6;max-width:65ch}
.expert-shell .signed-in-identity{margin:0;font-size:14px;color:#6b706c;overflow-wrap:anywhere}
.expert-shell .signed-in-identity strong{font-weight:500;color:#343835}
.expert-shell #termsForm .expert-actions{justify-content:flex-end;margin-top:24px;padding-top:20px}
.expert-shell .payment-address-heading{margin-top:28px}

/* A compact red action that fits the surrounding form controls. */
.expert-shell #sampleEditor button.primary{min-height:44px;padding:10px 18px;border:1px solid var(--primary-red);border-radius:8px;background:var(--primary-red);color:#fff;font-size:16px;font-weight:600;line-height:1.25;letter-spacing:0;box-shadow:none;transition:background 150ms ease,border-color 150ms ease}
.expert-shell #sampleEditor button.primary:hover:not(:disabled){background:#ed301d;border-color:#ed301d}
.expert-shell #sampleEditor button.primary:active:not(:disabled){background:#dc2c1b;border-color:#dc2c1b}
.expert-shell #sampleEditor button.primary:focus-visible{outline:2px solid #111;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.expert-shell #sampleEditor button.primary{transition:none}}

/* Quiet file symbols and compact brand-red upload controls. */
.package-section:last-child{border-bottom:0}
.package-section-title>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.package-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:0 0 24px;color:#777b78}
.package-icon svg{width:21px;height:21px}
.expert-shell .package-heading button.package-upload{min-height:40px;padding:9px 18px;border:1px solid var(--primary-red);border-radius:8px;background:var(--primary-red);color:#fff;font-size:14px;font-weight:600;line-height:1.25;transition:background 150ms ease,border-color 150ms ease}
.expert-shell .package-heading button.package-upload:hover:not(:disabled){background:#ed301d;border-color:#ed301d}
.expert-shell .package-heading button.package-upload:active:not(:disabled){background:#dc2c1b;border-color:#dc2c1b}
.expert-shell .package-heading button.package-upload:focus-visible{outline:2px solid #111;outline-offset:3px}
.package-actions{margin-top:0;padding-top:20px}
@media(max-width:640px){.package-heading{flex-direction:row;align-items:center;gap:12px}.package-heading>div{flex:1;flex-wrap:nowrap;gap:10px}.package-section-title>div{display:block}.package-requirement{display:block;margin-top:4px}.expert-shell .package-heading button.package-upload{width:auto;flex-shrink:0;padding:9px 14px}}
@media(prefers-reduced-motion:reduce){.expert-shell .package-heading button.package-upload{transition:none}}

.package-transfer{margin:14px 0 6px;font-size:13px;line-height:1.5;color:#626762;overflow-wrap:anywhere}
.package-transfer progress{display:block;width:100%;height:6px;margin-top:8px;border:0;border-radius:3px;overflow:hidden;appearance:none;background:#eceeec;accent-color:var(--primary-red)}
.package-transfer progress::-webkit-progress-bar{background:#eceeec;border-radius:3px}
.package-transfer progress::-webkit-progress-value{background:var(--primary-red);border-radius:3px}
.package-transfer progress::-moz-progress-bar{background:var(--primary-red);border-radius:3px}
.expert-shell .package-files button.package-remove{display:inline-flex;align-items:center;justify-content:center;width:40px;min-height:40px;flex:0 0 40px;padding:9px;border:0;border-radius:6px;background:transparent;color:#777b78}
.expert-shell .package-files button.package-remove:hover:not(:disabled){background:#f0f1ef;color:#343835}
.expert-shell .package-files button.package-remove:focus-visible{outline:2px solid #111;outline-offset:2px}
.expert-shell .package-remove svg{width:20px;height:20px}

/* Reward and meter share one grid row, so every amount aligns to the line. */
.part-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 16px;margin:4px 0 42px}
.part-progress-label{grid-column:1/-1;display:flex;align-items:baseline;gap:8px;color:#626762;font-size:14px}
.part-progress-label strong{font-size:21px;font-weight:600;color:#171917;font-variant-numeric:tabular-nums}
.part-progress-label strong span{font-size:17px;font-weight:450;color:#626762}
.part-progress-track{height:12px;background:#e2e5df;border-radius:20px;overflow:hidden}
.part-progress-track>span{display:block;height:100%;border-radius:inherit;background:var(--primary-red)}
.part-progress-reward{display:flex;align-items:center;gap:7px;color:#626762;white-space:nowrap;font-size:14px;line-height:1}
.part-progress-reward>svg{width:25px;height:25px;flex-shrink:0;color:var(--primary-red)}
.part-progress-reward strong{font-size:18px;font-weight:600;color:#171917;letter-spacing:0}
@media(max-width:700px){.part-progress{gap:10px 12px;margin:4px 0 34px}.part-progress-label{gap:6px;font-size:12px}.part-progress-label strong{font-size:19px}.part-progress-label strong span{font-size:16px}.part-progress-track{height:10px}.part-progress-reward{gap:5px;font-size:12px}.part-progress-reward>svg{width:22px;height:22px}.part-progress-reward strong{font-size:16px}}

/* Compact, neutral home cards within the expert workspace. */
.expert-shell:has(.work-dashboard){width:min(100%,1180px);padding-top:36px}
.work-home-heading,.parts-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.expert-shell .work-home-heading p{margin:9px 0 0;color:#737873;font-size:13px}
.expert-shell .work-home-heading h1{font-size:25px;letter-spacing:0;font-weight:540}
.expert-shell .work-library-link{border:0;background:transparent;padding:6px 0;font-size:13px;white-space:nowrap}
.work-library-link>span{display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:50%;background:#e9eae6;font-size:11px}
.work-earn-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.work-earn-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;padding:26px 28px;border:1px solid #dedfdd;border-radius:7px;background:#fff;min-width:0}
.work-earn-icon{display:inline-flex;color:#717873;margin-bottom:20px}
.work-earn-icon svg{width:27px;height:27px}
.work-earn-top{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-bottom:20px}
.work-earn-top .work-earn-icon{margin:0}
.work-recording-badge{position:absolute;z-index:1;top:-12px;right:-8px;display:inline-flex;align-items:center;gap:6px;padding:8px 13px;border:1px solid rgba(255,255,255,.25);border-radius:3px;background:var(--primary-red);color:#fff;font-size:14px;font-weight:650;line-height:1.3;white-space:nowrap;transform:rotate(5deg);box-shadow:0 2px 5px rgba(46,25,20,.18)}
.work-recording-badge--outline{background:#fff;border-color:var(--primary-red);color:var(--primary-red)}
.work-recording-badge svg{width:18px;height:18px;flex:0 0 18px;fill:currentColor;stroke:none}
.expert-shell .work-earn-card h2{font-size:20px;line-height:1.3;font-weight:580;letter-spacing:0;margin-bottom:12px}
.expert-shell .work-earn-card p{font-size:13px;line-height:1.6;margin:0 0 15px;color:#383d39}
.work-earn-card ul{margin:0 0 25px;padding-left:18px;color:#737973;font-size:12px;line-height:1.8}
.expert-shell button.primary,.expert-shell a.expert-button.primary,.expert-prompt button.primary,.startup-dialog button.primary,.expert-shell :is(#partEditor,#sampleEditor,#recordingSubmitForm) .submission-footer button.expert-submit-button{background:var(--primary-red);border-color:var(--primary-red);color:#fff;border-radius:7px;min-height:40px;padding:9px 15px;font-size:13px;font-weight:600;letter-spacing:0;box-shadow:0 2px 0 #ce2e1d;transition:background 130ms ease,border-color 130ms ease,box-shadow 130ms ease,transform 130ms ease}
.expert-shell button.primary:hover:not(:disabled),.expert-shell a.expert-button.primary:hover:not(:disabled),.expert-prompt button.primary:hover:not(:disabled),.startup-dialog button.primary:hover:not(:disabled),.expert-shell :is(#partEditor,#sampleEditor,#recordingSubmitForm) .submission-footer button.expert-submit-button:hover:not(:disabled){background:#ed301d;border-color:#ed301d;color:#fff;box-shadow:0 3px 0 #c42a19;transform:translateY(-1px)}
.expert-shell button.primary:active:not(:disabled),.expert-shell a.expert-button.primary:active:not(:disabled),.expert-prompt button.primary:active:not(:disabled),.startup-dialog button.primary:active:not(:disabled),.expert-shell :is(#partEditor,#sampleEditor,#recordingSubmitForm) .submission-footer button.expert-submit-button:active:not(:disabled){background:#e52e1c;border-color:#e52e1c;box-shadow:0 1px 0 #c42a19;transform:translateY(1px)}
.expert-shell button.primary:focus-visible,.expert-shell a.expert-button.primary:focus-visible,.expert-prompt button.primary:focus-visible,.startup-dialog button.primary:focus-visible{outline:2px solid #111;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.expert-shell button.primary,.expert-shell a.expert-button.primary,.expert-prompt button.primary,.startup-dialog button.primary,.expert-shell :is(#partEditor,#sampleEditor,#recordingSubmitForm) .submission-footer button.expert-submit-button{transition:none}.expert-shell button.primary:is(:hover,:active),.expert-shell a.expert-button.primary:is(:hover,:active),.expert-prompt button.primary:is(:hover,:active),.startup-dialog button.primary:is(:hover,:active),.expert-shell :is(#partEditor,#sampleEditor,#recordingSubmitForm) .submission-footer button.expert-submit-button:is(:hover,:active){transform:none}}
.work-earn-heading{display:flex;align-items:center;gap:12px;margin:12px 0 16px;max-width:100%}
.expert-shell .work-earn-card .work-earn-heading h2{font-size:28px;line-height:1.25;margin:0}
.work-earn-heading .work-earn-icon{flex-shrink:0;margin:0}
.work-earn-heading .work-earn-icon svg{width:30px;height:30px}
.expert-shell .work-earn-card>button.primary{margin-top:auto;min-height:50px;min-width:min(237.5px,100%);max-width:100%;padding:11px 28px;font-size:17px}
@media(max-width:700px){.expert-shell .work-earn-card .work-earn-heading h2{font-size:24px}}
.expert-shell #partEditor button.primary{background:var(--primary-red);border-color:var(--primary-red);color:#fff;border-radius:8px;min-height:42px;padding:10px 17px;font-size:14px;font-weight:600;letter-spacing:0}
.expert-shell #partEditor button.primary:hover:not(:disabled){background:#ed301d;border-color:#ed301d;color:#fff}
.work-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 24px;padding-bottom:20px;border-bottom:1px solid #dedfda}
.expert-shell .work-stats button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:4px 24px;border:0;border-left:1px solid #dedfda;border-radius:0;background:transparent;min-width:0}
.expert-shell .work-stats button:first-child{border-left:0;padding-left:0}
.work-stats strong{font-size:23px;line-height:1.2;font-weight:600;letter-spacing:0;color:#222823}.work-stats span{font-size:12px;color:#737873}
.work-recent-parts .work-section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}
.expert-shell .work-section-heading h2{font-size:16px}
.part-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.part-card{position:relative;min-width:0;border:1px solid #dcdfd9;border-radius:10px;background:#fff;overflow:hidden;display:flex;flex-direction:column;transition:border-color 130ms ease}
.part-card:has(.part-card-open:hover){border-color:#aaaFA9}
.expert-shell button.part-card-open{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:0;padding:20px 18px 15px;border:0;border-radius:0;background:transparent;flex:1;width:100%;min-height:184px;letter-spacing:0}
.expert-shell button.part-card-open:hover{background:#fdfdfa}
.part-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px}
.expert-shell .part-card-icon svg{width:26px;height:26px;color:#7c857d}
.part-state{display:inline-flex;padding:5px 8px;border-radius:5px;background:#f0f1ee;color:#687067;font-size:10px;font-weight:550;line-height:1.2;white-space:nowrap}
.part-state--submitted{background:#fff1d9;color:#8c651d}.part-state--accepted{background:#eaf0f7;color:#3c5a7a}.part-state--paid{background:#e6f3e8;color:#397347}.part-state--needs_changes{background:#ffece6;color:#a04b34}.part-state--archived{background:#ececec;color:#5f6368}
.expert-shell .part-card h3{font-size:14px;line-height:1.4;font-weight:600;letter-spacing:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px;margin:0 0 5px;overflow-wrap:anywhere}
.expert-shell .part-card p{font-size:12px;color:#7a817a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin:0 0 13px}
.part-card-meta{font-size:11px;color:#818880;margin-top:auto}
.part-delete-controls{display:flex;align-items:center;gap:3px;flex-wrap:wrap}
.expert-shell .part-delete-controls button{font-size:11px;padding:6px 8px;min-height:36px;border-radius:6px;letter-spacing:0}
.expert-shell button.part-trash{padding:10px;border:0;background:transparent;color:#858b83;width:38px;min-height:38px}
.expert-shell .part-trash svg{width:18px;height:18px}
.expert-shell button.part-trash:hover{background:#fff0ec;color:#c44029}
.expert-shell .part-delete-confirm{border-color:#f4c9c1;color:#b03623;background:#fff0eb}
.expert-shell .part-delete-cancel{border:0;color:#7b8279;background:transparent}
.part-undo{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;padding:10px 14px;border:1px solid #cfdacb;border-radius:8px;background:#eef4eb;font-size:13px;overflow-wrap:anywhere}
.expert-shell .part-undo button{border:0;background:transparent;color:#35613a;text-decoration:underline;flex-shrink:0}
.expert-shell .parts-heading h1{font-size:25px}.expert-shell .parts-heading p{margin:8px 0 0;font-size:13px}
.parts-filters{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 22px}
.expert-shell .parts-filters button{border:1px solid transparent;background:transparent;border-radius:7px;font-size:12px;min-height:34px;padding:5px 11px;letter-spacing:0}
.expert-shell .parts-filters button[aria-pressed=true]{background:#252b26;color:#fff;border-color:#252b26}
.parts-empty{padding:60px 24px;text-align:center;border:1px dashed #d5d9d1;border-radius:12px}
.parts-empty>svg{width:40px;height:40px;color:#8c9588;margin-bottom:15px}
.expert-shell .parts-empty p{margin:10px auto 20px}
.part-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:25px}
.expert-shell .part-detail-heading h1{margin:12px 0 9px;overflow-wrap:anywhere}
.expert-shell .part-detail-heading p{font-size:12px;color:#788073;margin:0}
.part-detail-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px;align-items:start}
.part-detail-grid .expert-panel{padding:24px;border-radius:10px}
.part-file-count{font-size:12px;color:#828a7c;margin-left:8px}
.part-detail-files{margin-top:22px}
.expert-shell .part-detail-files h3{font-size:11px;color:#818978;font-weight:500}
.part-detail-files ul{margin:8px 0 0;padding:0;list-style:none}
.part-detail-files li{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #edf0e9;font-size:12px;color:#394335}
.part-detail-files li>span{min-width:0;overflow-wrap:anywhere}
.expert-shell .part-detail-files small{white-space:nowrap;font-size:10px;margin:0}
.part-context{margin:22px 0 0}.part-context>div{margin-bottom:20px}.part-context>div:last-child{margin-bottom:0}
.part-context dt{font-size:11px;color:#818978;margin-bottom:6px}.part-context dd{margin:0;font-size:13px;line-height:1.6;color:#394335;white-space:pre-line;overflow-wrap:anywhere}
@media(max-width:1000px){.part-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.work-earn-card{padding:24px}.expert-shell .work-earn-card h2{font-size:19px}}
@media(max-width:700px){.expert-app .rail-nav{grid-template-columns:repeat(4,1fr)}.expert-shell:has(.work-dashboard){padding:25px 20px 60px}.work-home-heading{align-items:flex-start;gap:12px}.expert-shell .work-home-heading h1{font-size:23px;max-width:230px;line-height:1.35}.work-home-heading .work-library-link{font-size:11px}.work-earn-grid{grid-template-columns:1fr;gap:14px}.work-earn-card{padding:23px}.work-earn-top{margin-bottom:15px}.work-earn-card>button{width:100%}.work-stats{margin:0 0 20px;padding-bottom:18px}.expert-shell .work-stats button{padding:3px 12px}.work-stats strong{font-size:20px}.work-stats span{font-size:10px}.part-grid{grid-template-columns:1fr}.work-recent-parts .work-section-heading{flex-direction:row;align-items:center;gap:8px}.expert-shell .work-section-heading h2{font-size:14px}.parts-heading{align-items:flex-start;gap:12px}.expert-shell .parts-heading h1{font-size:24px}.expert-shell .parts-heading p{font-size:12px}.expert-shell .parts-heading button.primary{font-size:12px;white-space:nowrap;padding:9px 12px}.part-detail-grid{grid-template-columns:1fr}.part-detail-heading{flex-wrap:wrap}.part-detail-grid .expert-panel{padding:20px}}

/* Recent parts are compact shortcuts; the Parts library keeps its fuller cards. */
.work-recent-parts{margin-top:26px}
.expert-shell .work-recent-parts .part-card-open{min-height:0;padding:14px 16px 12px}
.work-recent-parts .part-card-top{margin-bottom:8px}
.expert-shell .work-recent-parts .part-card-icon svg{width:21px;height:21px}
.expert-shell .work-recent-parts .part-card h3{min-height:0;-webkit-line-clamp:1;margin:0}
.expert-shell .work-recent-parts .part-card p{display:none}
.work-recent-parts .part-card-meta{margin-top:7px}

/* Keep removal within the card, without a separate footer strip. */
.part-card>.part-delete-controls{position:absolute;right:7px;bottom:5px}
.part-card .part-card-meta{padding-right:32px}
.part-card:has(.part-delete-confirm){padding-bottom:40px}

/* Per-submission rights sit beside the final action, without an overlay. */
.submission-footer{margin-top:24px;position:relative;display:flow-root}
.submission-rights{position:absolute;z-index:20;right:0;bottom:calc(100% + 8px);width:min(580px,100%);box-sizing:border-box;max-height:var(--rights-available-height,70vh);overflow-y:auto;overscroll-behavior:contain;margin:0;padding:22px 24px 14px;background:#f6f7f6;border:1px solid #d9dcd9;border-radius:10px;box-shadow:0 8px 28px #18251b1a;animation:submission-rights-in 160ms ease-out}
.submission-rights[hidden]{display:none}
@keyframes submission-rights-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.submission-rights{animation:none}}
.submission-rights h3{margin:0 0 10px;font-size:17px;font-weight:600}
.submission-rights p{font-size:14px;line-height:1.6;color:#59615b;margin:0 0 12px}
.submission-rights .expert-welcome-brand{font-size:.86em}
.submission-rights .rights-links{font-size:12px}
.expert-shell .submission-rights a.rights-scope-link,.expert-shell .submission-rights a.rights-scope-link:is(:hover,:focus,:active,:visited){color:#59615b;text-decoration:underline;text-underline-offset:3px}
.expert-shell .submission-rights .rights-links a,.expert-shell .submission-rights .rights-links a:is(:hover,:focus,:active,:visited){color:#303530;text-decoration:underline}
.expert-shell .submission-rights label.rights-check{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:8px;width:max-content;max-width:100%;margin:16px 0 0 auto;color:#303530;font-size:14px;font-weight:400;line-height:21px;letter-spacing:0;cursor:pointer}
.expert-shell .submission-rights .rights-check input{appearance:auto;width:18px;height:18px;min-height:0;padding:0;margin:2px 0 0;accent-color:#444b45;cursor:pointer;box-shadow:none}
.expert-shell .submission-rights .rights-check input:focus-visible{outline:2px solid #737a74;outline-offset:3px;box-shadow:none}
.submission-rights .rights-error{color:#b42318;margin:10px 0 0}.rights-error:empty{display:none}
.submission-footer button.primary:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:600px){.submission-rights{padding:18px 18px 14px;max-width:none}.submission-footer .expert-actions{gap:16px;flex-wrap:wrap}}

/* One focused question before the file checklist. */
.part-name-step{width:min(720px,100%);min-height:clamp(380px,65svh,680px);margin:0 auto;display:grid;align-content:center;padding:36px 0 80px}
.expert-shell .part-name-step h1{font-size:30px;line-height:1.3;font-weight:550;letter-spacing:-.3px;margin:0 0 14px}
.expert-shell .part-name-step #partName{font-size:36px;line-height:1.4;font-weight:400;letter-spacing:.03em;min-height:72px;margin:0;padding:12px 0;border:0;border-bottom:1px solid #b8bdb8;border-radius:0;background:transparent;box-shadow:none;color:#252b26;caret-color:var(--primary-red);transition:border-color 140ms ease}
.expert-shell .part-name-step #partName::placeholder{color:#a0a6a0;opacity:1}
.expert-shell .part-name-step #partName:focus{border-bottom:2px solid #4b534c;padding-bottom:11px;box-shadow:none;outline:none}
.part-name-actions{display:flex;align-items:center;gap:16px;margin-top:30px}
.part-name-enter{font-size:12px;color:#7b827c}.part-name-enter kbd{font:inherit;color:#424a43;font-weight:500}
@media(max-width:700px){.part-name-step{min-height:50svh;padding:48px 0 64px}.expert-shell .part-name-step h1{font-size:26px}.expert-shell .part-name-step #partName{font-size:26px;min-height:64px}.part-name-actions{margin-top:26px}.part-name-enter{display:none}}

/* Compact admin control, anchored to the workspace's top-right edge. */
.expert-preview { display:flex; align-items:center; gap:8px; width:max-content; max-width:calc(100% - 32px); margin:12px 16px 0 auto; color:#747970; font-size:11px; line-height:1.3; }
.expert-preview label { margin:0; white-space:nowrap; font-weight:400; }
.expert-preview-combo { position:relative; }
.expert-preview-combo input { width:176px; min-width:0; height:26px; min-height:26px; margin:0; padding:3px 6px; border:1px solid #dcdfd9; border-radius:4px; background:transparent; color:#51574f; font:inherit; letter-spacing:0; }
.expert-preview-combo input::placeholder { color:#9a9f96; }
.expert-preview-combo input:focus-visible,.expert-preview a:focus-visible { outline:2px solid #777e73; outline-offset:2px; }
.expert-preview-list { position:absolute; right:0; top:calc(100% + 4px); z-index:50; width:260px; max-height:320px; overflow-y:auto; margin:0; padding:4px; list-style:none; background:#fff; border:1px solid #dcdfd9; border-radius:6px; box-shadow:0 6px 18px rgba(30,34,28,.12); }
.expert-preview-list li { display:flex; flex-direction:column; gap:1px; padding:6px 8px; border-radius:4px; color:#3f453d; font-size:12px; cursor:pointer; }
.expert-preview-list li small { color:#8a8f86; font-size:10.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.expert-preview-list li[aria-selected=true] { background:#eef0ec; }
.expert-preview-list .expert-preview-empty { color:#8a8f86; cursor:default; }
.expert-preview-status { white-space:nowrap; font-size:10px; color:#81877d; }
.expert-preview a { color:#6d7467; font-size:11px; text-underline-offset:3px; }
.expert-preview + .expert-shell { padding-top:26px; }
@media(max-width:700px){.expert-preview {max-width:calc(100% - 24px);margin:10px 12px 0 auto;gap:6px;} .expert-preview-combo input {width:164px;} .expert-preview-list {width:min(260px, calc(100vw - 24px));} .expert-preview + .expert-shell {padding-top:24px;} }

/* Supplemental uploads stay with their original part and file section. */
.part-files-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.part-files-heading h3{margin:0}
.part-files-heading button{flex-shrink:0;padding:6px 9px;font-size:12px;background:#fff;color:#535c56;border:1px solid #dce0dc;border-radius:6px}
.part-detail-files li>span{min-width:0;overflow-wrap:anywhere}
.part-detail-files li>small{flex-shrink:0}
.part-detail-files [data-pending-files]:empty{display:none}
.part-pending-file small{display:block;color:#7b817c;font-size:11px;margin-top:3px}
.part-pending-file button{font-size:11px;padding:4px 7px;align-self:center}
.part-additions-footer{margin-top:22px;padding-top:16px;border-top:1px solid #e3e6e2}
.part-additions-footer>p{font-size:12px}
.part-additions-footer [data-add-progress]:empty{display:none}

/* Keep file choices recognizable without turning the guidance into a paragraph. */
.package-software{display:flex;flex-wrap:wrap;gap:18px 28px;margin:17px 0 12px;padding:0;list-style:none}
.package-software>li{display:flex;flex-direction:column;gap:8px}
.package-software-name{display:flex;align-items:center;gap:8px;min-height:25px;font-size:12px;color:#333a35;font-weight:500}
.package-software-name img{width:24px;height:24px;object-fit:contain}
.package-software-name img.software-wordmark{width:82px;height:24px}
.package-software-name img[src$="/catia.png"]{filter:brightness(0);opacity:.8}
.package-software-name img.software-wordmark-compact{width:58px;height:18px}
.package-software-name.logo-name-only>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.package-extensions{display:flex;flex-wrap:wrap;gap:5px}
.package-extensions>span{padding:3px 6px;border-radius:4px;background:#f2f3f1;color:#626762;font-size:11px;line-height:1.3}
.package-other-formats .package-software-name{font-size:11px;color:#747a75;font-weight:400}
.package-format-help{margin-top:24px;color:#747a75;font-size:11px}
.expert-shell .package-format-help summary{cursor:pointer;width:fit-content;max-width:100%;color:#747a75;font-size:12px;font-weight:400;text-decoration:underline;text-underline-offset:3px}
.expert-shell .package-format-help p{font-size:12px;max-width:64ch;margin:8px 0 0;line-height:1.5}
@media(max-width:640px){.package-software{display:grid;grid-template-columns:1fr 1fr;gap:18px 12px}.package-software-name{font-size:11px;gap:6px}.package-software-name img{width:22px;height:22px}.package-extensions>span{font-size:10px}}

.expert-shell p.expert-earnings-note { margin: 16px 0 0; font-size: 12px; line-height: 1.5; }
/* Small, conversational shop intake; reused inline and in live prompts. */
.shop-flow{max-width:520px;margin:24px auto 40px;padding:28px;background:var(--panel,#fff);border:1px solid var(--border,#e3e3e3);border-radius:8px;text-align:left}
.shop-topline{display:flex;align-items:center;justify-content:space-between;gap:16px;color:var(--muted,#737373);font-size:13px}
.shop-topline .shop-close{border:0;background:none;font-size:25px;line-height:1;padding:0 4px;color:inherit}
.shop-meter{display:flex;gap:5px;margin:18px 0 26px}.shop-meter span{height:3px;flex:1;background:#e8e8e8;border-radius:2px}.shop-meter .filled{background:var(--primary-red)}
.shop-flow h2{font-size:23px;font-weight:500;line-height:1.25;letter-spacing:-.5px;margin:0 0 10px}.shop-flow h2:focus{outline:none}.shop-hint{font-size:14px;line-height:1.5;color:var(--muted,#737373);margin:0 0 26px}
.shop-form{display:grid;gap:18px}.shop-form label{display:grid;gap:7px;font-size:13px;font-weight:500}.shop-form input:not([type=radio]),.shop-form textarea,.shop-form select{box-sizing:border-box;width:100%;min-width:0;font:400 14px/1.5 Inter,sans-serif;padding:10px 12px;border:1px solid #d7d7d7;border-radius:5px;background:var(--panel,#fff);color:inherit}.shop-form textarea{resize:vertical}.shop-form :is(input,textarea,select):focus{outline:2px solid var(--primary-red);outline-offset:2px}
.shop-access{display:grid;gap:10px;border:0;padding:0;margin:0}.shop-access label{display:flex;align-items:center;gap:10px;padding:15px;border:1px solid #ddd;border-radius:5px;cursor:pointer}.shop-access label:has(:checked){border-color:var(--primary-red);background:#fff8f7}.shop-access input{accent-color:var(--primary-red)}
.shop-form footer{display:flex;align-items:center;gap:12px;margin-top:8px}.shop-form footer .primary{margin-left:auto;min-width:122px}.shop-count,.shop-form small{font-size:12px;color:var(--muted,#737373)}.shop-form small{margin-top:-8px}.shop-error:empty{display:none}.shop-error{color:#b42318;font-size:13px;margin:0}.shop-more{font-size:13px}.shop-more[open]{display:grid;gap:14px}.shop-more summary{cursor:pointer;margin-bottom:12px}
.expert-prompt{border:0;padding:0;background:transparent;color:inherit;max-height:90dvh;width:min(580px,calc(100% - 28px));max-width:580px;overflow:auto}.expert-prompt::backdrop{background:rgba(22,22,22,.38)}.expert-prompt .shop-flow{margin:0;max-width:none}.expert-notice{display:flex;gap:14px;align-items:center;padding:12px 16px;margin:0 0 14px;border:1px solid #ead3a2;border-radius:6px;background:#fff8e8;color:#493813;font-size:14px;line-height:1.5}.expert-notice strong{font-weight:600}.expert-notice p{margin:2px 0;white-space:pre-wrap}.expert-notice button{margin-left:auto;flex:none;background:transparent;color:inherit}.expert-notice-modal p{white-space:pre-wrap;line-height:1.6}.expert-notice-modal footer{display:flex;justify-content:flex-end;margin-top:24px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.shop-flow{margin-top:12px;padding:22px 18px}.shop-flow h2{font-size:21px}.expert-prompt .shop-flow{padding:22px}.expert-notice{align-items:flex-start}.expert-stages{gap:12px}}

.intake-stages.intake-stages-shop{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:600px){.intake-stages.intake-stages-shop{gap:9px}.intake-stages-shop .expert-stage{font-size:11px}}
.expert-prompt button{font:500 14px/1.3 Inter,sans-serif;border:1px solid #d7d7d7;border-radius:5px;padding:10px 16px;cursor:pointer;background:#fff;color:inherit}.expert-prompt .shop-close{border:0;padding:0 4px;background:none;font-size:25px}.expert-prompt button:disabled{opacity:.6;cursor:wait}

/* Home overview and quiet brand imprint. */
.work-home-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;margin:4px 0 42px}
.work-home-summary .part-progress{grid-column:1/-1;grid-row:1;margin:0}
.work-home-summary .part-progress-label{padding-right:250px}
.work-home-earnings{grid-column:2;grid-row:1;align-self:start;z-index:1;color:#626762;font-size:14px;line-height:29px;text-decoration:none;white-space:nowrap}
.work-home-earnings strong{color:#171917;font-size:21px;font-weight:600;font-variant-numeric:tabular-nums}
.work-home-earnings:hover{text-decoration:underline;text-underline-offset:4px}
.work-home-earnings:focus-visible{outline:2px solid #171917;outline-offset:5px;border-radius:2px}
.work-home-summary:not(:has(.part-progress)){margin-bottom:30px}
.work-home-limit{grid-column:1/-1;justify-self:end;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:baseline;gap:4px 8px;margin-top:10px;color:#626762;font-size:14px}.work-home-limit strong{color:#171917;font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}.work-home-limit small{flex-basis:100%;text-align:right;font-size:12.5px}.work-home-limit.is-full strong,.work-home-limit.is-full small{color:#b42318}
.work-home-imprint{display:flex;justify-content:center;margin:76px 0 0;pointer-events:none;user-select:none}
.work-home-imprint svg{display:block;width:200px;max-width:50%;height:auto;overflow:visible}
@media(max-width:700px){.work-home-summary{display:flex;flex-direction:column;gap:14px;margin:0 0 34px}.work-home-earnings{align-self:flex-end;font-size:13px;line-height:26px}.work-home-earnings strong{font-size:19px}.work-home-summary .part-progress-label{padding-right:0}.work-home-imprint{margin-top:62px}.work-home-imprint svg{width:170px}}

.package-checklist>.package-boost{display:flex;align-items:center;gap:12px;max-width:none;margin:22px 0 0;padding:16px;border:1px solid #cfe5d4;border-radius:8px;background:#eff8f0;color:#29563a;font-size:15px;font-weight:400;line-height:1.6}
.package-boost-icon{display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;color:#174c2c}
.package-boost-icon svg{display:block;width:32px;height:32px}
.package-boost-copy{min-width:0}
.package-checklist>.package-boost strong{font-weight:700;color:#163c27}
@media(max-width:700px){.package-checklist>.package-boost{align-items:flex-start;gap:10px;padding:14px}.package-boost-icon{margin-top:2px}}
.package-boost+.package-section{border-top:0}
/* Part page: remove a submitted file (trash, then an inline confirm) and edit the part details in place. */
.part-detail-files li:has(.part-file-actions){align-items:center}
.part-file-actions{display:flex;align-items:center;gap:3px;margin-left:auto;flex-shrink:0}
.expert-shell .part-file-actions button{font-size:11px;padding:5px 8px;min-height:30px;border-radius:6px;letter-spacing:0}
.expert-shell button.part-file-trash{width:30px;min-height:30px;padding:6px}
.expert-shell .part-file-trash svg{width:15px;height:15px}
.part-details-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.expert-shell .part-details-heading h2{margin:0}
.expert-shell button.part-edit{padding:7px;border:0;background:transparent;color:#858b83;width:32px;min-height:32px;border-radius:6px}
.expert-shell .part-edit svg{width:16px;height:16px}
.expert-shell button.part-edit:hover{background:#f1f3ef;color:#394335}
.part-details-form{display:grid;gap:14px;margin-top:18px}
.part-details-form label{display:grid;gap:6px;font-size:12px;color:#5d655a}
.part-details-form textarea{resize:vertical}
.part-details-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}

.part-detail-heading>div{min-width:0;max-width:100%}
.part-title-row{display:flex;align-items:center;gap:5px;max-width:100%}
.part-title-row h1{min-width:0}
.part-title-row .part-edit{flex-shrink:0}
.expert-shell button.part-name-pencil{opacity:.35;background:transparent}
.expert-shell button.part-name-pencil:hover,.expert-shell button.part-name-pencil:focus-visible{opacity:1}
.part-title-edit{margin:0}
.part-title-edit h1{flex:0 1 auto;max-width:calc(100% - 68px)}
.expert-shell #partRenameForm input{field-sizing:content;width:auto;min-height:0;margin:0;min-width:1ch;max-width:100%;box-sizing:border-box;font:inherit;letter-spacing:inherit;line-height:inherit;color:inherit;border:0;border-bottom:1px solid #bec4b9;border-radius:0;background:transparent;padding:0;outline:none;box-shadow:none}
.expert-shell #partRenameForm input:focus{border-bottom-color:#687360;box-shadow:none}
.part-title-actions{display:flex;flex-shrink:0;gap:0}
/* A submitted file being removed, or marked to be removed when the new files are submitted. */
.part-detail-files li.is-removing{opacity:.55}
.part-detail-files li.is-marked>span:first-child{text-decoration:line-through;color:#7b817c}
.part-file-actions small{color:#7b817c;font-size:11px;white-space:nowrap}
.part-file-marked{gap:8px}

/* /experts/connect/: approving a Primary Finder computer */
.finder-connect form, .finder-connect #decide { display: grid; gap: 12px; margin-top: 22px; }
.finder-connect #codeForm input { text-transform: uppercase; letter-spacing: 0.12em; font-size: 1.05rem; }
.finder-connect .finder-device { margin: 0; font-weight: 560; color: #171917; }
.finder-connect #signIn { display: block; margin-top: 22px; text-align: center; text-decoration: none; }
.finder-connect #devices { margin-top: 28px; padding-top: 18px; border-top: 1px solid #eceeec; }
.finder-connect #devices h2 { margin: 0 0 10px; font-size: 0.84rem; font-weight: 600; }
.finder-devices { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.82rem; color: #4b504c; }
.finder-devices li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Shared dropdown appearance for the CAM questionnaire. */
.process-select-field { min-width: 0; color: #3e423f; font-size: .72rem; font-weight: 540; letter-spacing: .012em; }
.process-select { position: relative; margin-top: 6px; }
.process-select select { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.expert-shell .process-select-trigger { width: 100%; min-height: 42px; padding: 9px 11px; justify-content: space-between; gap: 12px; border: 1px solid #d5d7d4; border-radius: 4px; background: #fff; color: #1b1e1c; font-size: .8rem; font-weight: 450; letter-spacing: .01em; text-align: left; }
.expert-shell .process-select-trigger:hover:not(:disabled) { background: #fff; border-color: #aeb2ae; }
.expert-shell .process-select-trigger:focus-visible, .expert-shell .process-select-trigger[aria-expanded="true"] { outline: none; border-color: #777a76; box-shadow: 0 0 0 3px rgba(17,17,17,.05); }
.expert-shell .process-select-trigger[aria-invalid="true"] { border-color: #ad4739; }
.expert-shell .process-select-trigger svg { width: 14px; height: 14px; flex: 0 0 auto; }
.process-select-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.process-select-placeholder { color: #858985; }
.process-select-menu { position: absolute; z-index: 40; top: calc(100% + 5px); left: 0; right: 0; overflow-y: auto; overscroll-behavior: contain; max-height: 270px; margin: 0; padding: 5px; list-style: none; border: 1px solid #d5d7d4; border-radius: 5px; background: #fff; box-shadow: 0 8px 24px rgba(24,30,25,.11); }
.process-select-menu.opens-up { top: auto; bottom: calc(100% + 5px); }
.process-select-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 8px 10px; border-radius: 3px; color: #343835; font-size: .8rem; font-weight: 450; letter-spacing: .01em; line-height: 1.4; cursor: pointer; }
.process-select-option[data-active="true"] { background: #f0f1ee; color: #171917; }
.process-select-option[aria-selected="true"] { font-weight: 550; }
.process-select-option .selected-check { flex: 0 0 auto; opacity: 0; font-size: 14px; }
.process-select-option[aria-selected="true"] .selected-check { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .process-select-trigger svg { transition: transform 120ms ease; } }

/* Keep all conditional post details in a single subordinate panel. */
.custom-post-panel {
  margin-top: -6px;
  padding: 20px;
  border: 1px solid #e1e3de;
  border-radius: 5px;
  background: #f3f4f1;
}
.custom-post-panel .expert-form-grid { gap: 18px 16px; }
.custom-post-panel input, .custom-post-panel textarea,
.expert-shell .custom-post-panel .process-select-trigger { background: #fff; }
@media (max-width: 760px) { .custom-post-panel { padding: 16px; } }

.cam-process-fields [hidden]{display:none!important}.cam-process-fields small{line-height:1.65;font-size:.73rem}.cam-process-fields label{display:block}.cam-process-fields .package-upload{margin-top:12px}.part-details-form>.cam-process-fields{grid-column:1/-1}.cam-process-fields .package-files{margin-top:12px}.cam-process-fields .process-select-menu[hidden]{display:none!important}
.cam-part-name{display:flex;flex-direction:column;gap:6px;margin-bottom:20px}
/* Tools on the files page: upload the library, or describe the tools right under it */
.package-describe{display:block;margin:12px 0 4px;font-size:14px;color:#3d423e;max-width:64ch}.package-describe textarea{display:block;width:100%;margin-top:6px}
.package-section .package-requirement.package-requirement--problem,.package-section.has-files .package-requirement.package-requirement--problem{color:#a23a16;font-weight:600}.package-actions{flex-wrap:wrap}.package-next-error{flex:0 0 100%;order:-1;padding:12px 14px;border:1px solid #efc4b0;border-radius:8px;background:#fdf1eb;color:#8a3d1e;font-size:14px;font-weight:500;line-height:1.45}.package-next-error:empty{display:none}.package-next-error:not(:empty)+.primary{margin-left:auto}

.part-evidence-field { margin-top: 14px; }
.part-evidence-field [hidden] { display: none !important; }
.part-evidence-field label { display: block; }
.part-evidence-field textarea { display: block; width: 100%; margin-top: 6px; }
.part-evidence-field small { display: block; margin: 6px 0; line-height: 1.6; }
.part-evidence-field [data-evidence-description]:not(:first-child) { margin-top: 12px; }

/* Confirmations: a brief toast at the bottom right (errors stay at the top of the page). */
.expert-toasts { position: fixed; right: 24px; bottom: 24px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.expert-toast { display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 420px; padding: 14px 20px; border: 1px solid #8fc4a0; border-left: 4px solid #2f8a52; border-radius: 8px; background: #edf7f0; color: #1d4d31; font-size: 0.95rem; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: opacity .35s, transform .35s; }
.expert-toast::before { content: '✓'; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #2f8a52; color: #fff; font-size: 0.8rem; }
.expert-toast.is-leaving { opacity: 0; transform: translateY(6px); }
@media (max-width: 600px) { .expert-toasts { left: 16px; right: 16px; align-items: stretch; } }

/* The part form's autosave status, beside Submit. */
.part-autosave { margin: 0 0 8px; min-height: 1.2em; color: #6b6f75; font-size: 0.74rem; text-align: right; }
.package-requirements { font-size: 0.8rem; color: #2f3431; }
.package-requirements strong { display: block; margin-bottom: 4px; color: #1d211f; }
.package-requirements ul { margin: 4px 0 6px; padding-left: 18px; }
.package-requirements li { margin: 2px 0; }
.package-cam-check { margin: 10px 0; padding: 10px 12px; border-radius: 8px; font-size: 0.85rem; }
.package-cam-check ul { margin: 4px 0 0; padding-left: 18px; }
.package-cam-check.has-problems { border: 1px solid #e6c9a8; background: #fdf6ec; color: #6b4415; }
.package-cam-check.is-clear { border: 1px solid #cfe5d4; background: #eff8f0; color: #29563a; }
.part-card-badges{display:inline-flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;min-width:0}
.part-card .part-backfill-summary{margin:8px 0 12px;font-size:12px;line-height:1.5;color:#525b50}.part-backfill-summary span{font-weight:550}
.part-backfill-chip{display:inline-flex;padding:4px 8px;border:1px solid #26703d;border-radius:5px;background:#26703d;color:#fff;font-size:10px;font-weight:600;line-height:1.2;white-space:nowrap}
.part-card .part-backfill-chip{background:#fff176;border-color:#fff176;color:#000}
.part-backfill-chip--large{flex:none;padding:7px 11px;font-size:13px}
.part-backfill{margin:0 0 18px}
.part-backfill-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.expert-shell .part-backfill h2{margin:0 0 6px}
.part-backfill h2 mark{background:#fff176;color:#1d211f;padding:0 .2em;border-radius:2px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.expert-shell .part-backfill-heading p{margin:0;font-size:12px;line-height:1.5;color:#60675f}
.part-backfill-list{list-style:none;margin:14px 0 0;padding:0;border-top:1px solid #e8e9e6}
.part-backfill-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #e8e9e6}
.part-backfill-list li strong{font-size:13px;font-weight:550}
.expert-shell .part-backfill-list li p{margin:3px 0 0;font-size:12px;line-height:1.5;color:#60675f}
.part-backfill-changes{margin:12px 0;padding-left:14px;border-left:2px solid #e8e9e6}
.part-backfill-changes>div+div{margin-top:20px}
.part-required-qc .part-backfill-list li>div>p+strong{display:block;margin-top:20px}
.part-backfill-list .part-backfill-cam{align-items:flex-start}
.part-backfill-list button{flex:none;white-space:nowrap}
.expert-shell .part-backfill-note{margin:12px 0 0;font-size:11px;line-height:1.5;color:#788073}
.part-backfill-optional-tag{display:inline-block;margin-left:6px;padding:1px 6px;border:1px solid #c9cdc4;border-radius:4px;font-size:10px;font-weight:600;color:#5b6257;vertical-align:middle}
@media(max-width:700px){.part-backfill-heading{flex-direction:column;gap:10px}.part-backfill-list li{flex-direction:column;align-items:stretch;gap:8px}.part-backfill-list button{width:100%}}

/* Image-led Part cards share the recent rubric card proportions. */
.expert-shell button.part-card-open:has(.part-card-image){padding:0;min-height:0}
.part-card-image{height:150px;background:#f0f2f2;display:flex;align-items:center;justify-content:center;overflow:hidden}
.part-card-image img{width:100%;height:100%;object-fit:contain}
.part-preview-placeholder{display:flex;flex-direction:column;align-items:center;gap:10px;color:#88918d;font-size:13px}
.expert-shell .part-preview-placeholder svg{width:40px;height:40px}
.part-preview-card [hidden]{display:none!important}
.part-card-copy{padding:20px;display:flex;flex-direction:column;flex:1;gap:12px}
.part-preview-card .part-card-top{margin:0;min-height:24px}
.part-preview-card .part-card-badges{justify-content:flex-start}
.expert-shell .part-preview-card h3,.expert-shell .work-recent-parts .part-preview-card h3{min-height:0;margin:0;-webkit-line-clamp:2}
.part-preview-card .part-card-meta,.work-recent-parts .part-preview-card .part-card-meta{margin-top:auto}
.part-card-link{font-size:13px;font-weight:400;margin-top:4px}
.part-preview-card>.part-delete-controls{bottom:15px;right:12px}
@media(max-width:760px){.part-card-image{height:125px}}
/* Software-first part uploads, using the existing expert workspace controls. */
.cam-software-selector{border:0;margin:26px 0 30px;padding:0;min-width:0}.cam-software-selector legend{font-size:17px;font-weight:600;color:#202621}.cam-software-selector>p{margin:6px 0 16px;color:#707670;font-size:13px}.cam-software-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.cam-software-options label{display:flex;align-items:center;gap:10px;cursor:pointer;border:1px solid #dce0dc;border-radius:7px;padding:13px 12px;background:#fff;margin:0;min-height:54px}.cam-software-options label:has(:checked){background:#f3f3f3;border-color:#202020;box-shadow:inset 0 0 0 1px #202020}.cam-software-options label:has(:focus-visible){outline:2px solid #202020;outline-offset:2px}.cam-software-options input[type=radio],.cam-embedded-choice input[type=checkbox]{width:16px;height:16px;margin:0;flex-shrink:0;accent-color:#202020}.cam-software-options .package-software-name{flex-wrap:wrap;gap:7px;font-size:12px}.cam-software-options img.software-wordmark{width:54px}.package-upload-fields{border:0;padding:0;margin:0;min-width:0}.package-upload-fields[disabled]{opacity:.43;pointer-events:none}.cam-included-status{padding:12px 14px;background:#f2f6f2;border:1px solid #dbe6dc;border-radius:6px;color:#315c3b!important}.cam-tutorial{display:inline-block;font-size:12px;color:#316349;margin:2px 0 10px;text-underline-offset:3px}.cam-check-limit{display:block;font-size:12px;font-weight:400;color:#687169;line-height:1.5;margin:8px 0}.expert-shell .cam-embedded-choice{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:start;column-gap:12px;font-size:13px;font-weight:400;line-height:1.5;margin:16px 0 6px;cursor:pointer;max-width:72ch}.expert-shell .cam-embedded-choice input[type=checkbox]{margin:2px 0 0;min-height:0;padding:0}.package-section .cam-format-note{font-size:12px}.package-requirements{font-size:13px;line-height:1.65}.package-requirements li{margin:4px 0}
@media(max-width:700px){.cam-software-options{grid-template-columns:repeat(2,minmax(0,1fr))}.cam-software-options label{padding:11px 9px}}
@media(max-width:400px){.cam-software-options{grid-template-columns:1fr}}
