/* A compact workspace, not a second landing page. Keep employee roles above the fold. */
#marketplace { padding-top: 24px; }
#marketplace .market-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 20px; }
#marketplace .market-heading > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
#marketplace .market-heading h1 { margin: 0; font-size: 30px; line-height: 1.3; letter-spacing: -.035em; }
#marketplace .market-heading p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; }
#marketplace .market-heading .industry-pricing { margin: 0; color: #687077; font-size: 14px; white-space: nowrap; }
.industry-pricing strong { color: #42494c; font-weight: 600; }
.industry-picker { margin: 0 0 14px; }
.industry-picker[hidden], .industry-pricing[hidden] { display: none; }
.industry-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.industry-tabs button { min-height: 48px; padding: 11px 18px; border: 1px solid #dedfdf; border-radius: 12px; background: #fff; color: #555b60; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.industry-tabs button:hover { border-color: #879499; background: #f6f7f6; }
.industry-tabs button[aria-pressed="true"] { border-color: #303b3d; background: #303b3d; color: #fff; }
.industry-tabs button:focus-visible { outline: 3px solid #a4c8e9; outline-offset: 3px; }
.industry-mobile-select { display: none; }
#marketplace .market-toolbar { display: flex; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; min-height: 0; margin: 0 0 24px; padding: 0; border: 0; }
#marketplace .market-toolbar .segmented { width: auto; padding: 3px; }
#marketplace .market-toolbar .segmented button { min-width: 0; min-height: 44px; padding: 8px 16px; font-size: 15px; }
#marketplace .market-workflow-select, #marketplace .industry-mobile-select select { width: auto; min-width: 0; min-height: 48px; margin: 0; padding: 10px 32px 10px 14px; border: 1px solid #dedfdf; border-radius: 12px; background-color: #fff; color: #42494c; font: inherit; font-size: 15px; font-weight: 500; }
#marketplace .market-workflow-select { max-width: 300px; }
#marketplace select:focus-visible { outline: 3px solid #a4c8e9; outline-offset: 2px; }
#marketplace .workflow-catalog { gap: 38px; }
#marketplace .workflow-group { gap: 12px; }
#marketplace .workflow-group-head h2 { font-size: 22px; line-height: 1.4; }
.workflow-explainer { display: grid; gap: 7px; padding-bottom: 3px; }
.workflow-steps { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0; padding: 0; list-style: none; }
.workflow-steps li { display: flex; align-items: center; gap: 7px; color: #414d56; font-size: 15px; line-height: 1.5; }
.workflow-steps li:not(:last-child)::after { content: "→"; margin: 0 12px 0 5px; color: #90999d; }
.workflow-step-index { display: inline-grid; place-items: center; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--workflow-avatar-soft, #eff1f1); color: var(--workflow-ink, #556367); font-size: 12px; font-weight: 600; }
.workflow-deliverable { margin: 0; color: #687077; font-size: 14px; line-height: 1.6; }
.workflow-deliverable b { margin-right: 10px; color: #536068; font-weight: 600; }
#marketplace .employee-name { font-size: 14px; }
/* Filtering and background refreshes should not replay an entrance animation. */
#marketplace .employee-card { animation: none; }
#marketplace .employee-role { font-size: 11px; }
#marketplace .portrait-state { font-size: 12px; }
#marketplace .employee-body h3 { line-height: 1.35; }
#marketplace .employee-tagline { font-size: 15px; font-weight: 400; line-height: 1.65; min-height: 50px; }
#marketplace .capability-tags span { font-size: 12px; }
#marketplace .employee-output { padding: 12px; border-radius: 10px; }
#marketplace .employee-output small { font-size: 12px; }
#marketplace .employee-output b { font-size: 14px; line-height: 1.55; }
#marketplace .employee-meta > span { font-size: 12px; }
#marketplace .employee-meta .text-button { font-size: 15px; }
.employee-salary { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; padding: 2px 0 16px; color: #323c41; }
.employee-salary strong { font-size: 21px; font-weight: 650; letter-spacing: -.5px; }
.employee-salary small { font-size: 14px; font-weight: 400; color: #636970; }
.employee-salary .salary-retained { font-size: 12px; margin-left: auto; }
.employee-meta .text-button { min-height: 48px; }
.employee-avatar-fallback { border: 4px solid #fff; background: linear-gradient(145deg, var(--workflow-avatar-start, #eaf1f5), var(--workflow-avatar-end, #b4cce0)); color: var(--workflow-ink, #315369); font-size: 23px; font-weight: 650; box-shadow: 0 0 0 2px var(--workflow-line, #d8e1e7); }
.industry-first-task { padding: 18px 20px; background: #f3f6f5; border: 1px solid #e0e8e4; border-radius: 14px; line-height: 1.7; }
.industry-first-task b { display: block; margin-bottom: 5px; color: #365b50; }
.industry-first-task p { margin: 0; }
@media (max-width: 600px) {
  #marketplace { padding-top: 18px; }
  #marketplace .market-heading { display: grid; gap: 6px; margin-bottom: 14px; }
  #marketplace .market-heading > div { column-gap: 12px; }
  #marketplace .market-heading h1 { font-size: 27px; }
  #marketplace .market-heading p { margin: 0; font-size: 14px; }
  /* Individual card prices remain visible; don't repeat the range above a small screen. */
  #marketplace .market-heading .industry-pricing { display: none; }
  .industry-picker { margin-bottom: 10px; }
  .industry-tabs { display: none; }
  .industry-mobile-select { display: flex; flex-direction: row; align-items: center; gap: 16px; margin: 0; font-size: 16px; }
  .industry-mobile-select > span { flex: 0 0 auto; color: #687077; font-weight: 500; }
  #marketplace .industry-mobile-select select { flex: 1; font-size: 16px; }
  #marketplace .market-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; margin-bottom: 22px; }
  #marketplace .market-toolbar .segmented { display: flex; }
  #marketplace .market-toolbar .segmented button { flex: 0 0 auto; min-height: 44px; padding: 8px 10px; font-size: 16px; }
  #marketplace .market-toolbar .segmented button > span { display: none; }
  #marketplace .market-workflow-select { width: 100%; max-width: none; padding-left: 10px; padding-right: 22px; font-size: 16px; }
  #marketplace .workflow-group-head h2 { font-size: 21px; }
  #marketplace .workflow-catalog { gap: 30px; }
  .workflow-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
  .workflow-steps li { align-items: baseline; font-size: 15px; }
  .workflow-steps li:not(:last-child)::after { display: none; }
  .workflow-deliverable { font-size: 14px; }
  #marketplace .employee-tagline { font-size: 16px; }
  #marketplace .employee-output b { font-size: 15px; }
  html[data-language="en"] #marketplace .market-toolbar { grid-template-columns: 1fr; }
  html[data-language="en"] #marketplace .market-toolbar .segmented button { flex: 1; }
  .employee-salary strong { font-size: 23px; }
}
