/* Onboarding (decided 2026-11-01): the public application to sell
   (vendors.stemlot.com/#apply), a new vendor's opening checklist on Home, and
   Applications for StemLot platform admins. */

/* ── Apply to sell ─────────────────────────────────────────────────────────── */
.apply-page { align-items: start; }
.apply-page .apply-brand { justify-content: space-between; }
.apply-home { display: inline-flex; border-radius: 6px; }
.apply-back { display: inline-flex; align-items: center; min-height: 44px; color: #171717; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.apply-wrap { justify-self: center; width: min(100%, 720px); padding: 8px 0 72px; }
.apply-card { display: grid; gap: 22px; }
.apply-heading { display: grid; gap: 12px; }
.apply-heading h1 { color: #151515; font-size: 32px; font-weight: 720; letter-spacing: -1px; line-height: 1.2; }
.apply-heading h1:focus { outline: none; }
.apply-heading p { max-width: 620px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.apply-heading p strong { color: #1a1a1a; font-weight: 600; overflow-wrap: anywhere; }
.apply-kicker { display: inline-flex; align-items: center; gap: 6px; color: #176b43 !important; font-size: 14px !important; font-weight: 600; }
.apply-kicker .icon { width: 18px; height: 18px; }
#apply-status:focus, #apply-upload-status:focus { outline: none; }
#apply-status .alert + .alert, #apply-upload-status .alert + .alert { margin-top: 8px; }
.apply-form { display: grid; gap: 30px; }
.apply-section { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.apply-section legend { margin-bottom: 14px; padding: 0; color: #1a1a1a; font-size: 18px; font-weight: 650; letter-spacing: -.3px; }
.apply-state { margin-top: -6px; color: var(--muted); font-size: 14px; }
.apply-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.apply-grid .apply-wide { grid-column: 1 / -1; }
.apply-field input, .apply-lookup input { width: 100%; font-size: 15px; }
.apply-field .form-hint { margin-top: 0; }
.apply-form input[aria-invalid="true"] { border-color: #c4473b; }
.apply-field-error { color: #a12a24; font-size: 13px; font-weight: 550; line-height: 1.5; }
.apply-lookup { display: flex; gap: 10px; }
.apply-lookup .button { flex: none; }
.apply-license-result:empty { display: none; }
.apply-license-card { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; padding: 14px 16px; border: 1px solid #e3e3e3; border-radius: 12px; background: #fafafa; color: #333; font-size: 14px; line-height: 1.5; }
.apply-license-card > .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.apply-license-card > div { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.apply-license-card strong { font-weight: 650; }
.apply-license-card small { margin-top: 4px; font-size: 13px; }
.apply-license-card a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.apply-license-card .text-button { justify-self: start; min-height: 40px; color: inherit; text-decoration: underline; }
.apply-license-card.is-match { border-color: #bee4cf; background: #effaf3; color: #14532d; }
.apply-license-card.is-warning { border-color: #f0d9b5; background: #fff8ec; color: #6b4513; }
.apply-license-card.is-problem { border-color: #edc9c4; background: #fff4f2; color: #8f2620; }
.apply-license-card.is-checking { align-items: center; color: var(--muted); }
.apply-attest-field { display: grid; gap: 6px; }
.apply-attest { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 12px 14px; border: 1px solid #e3e3e3; border-radius: 12px; background: #fff; font-size: 15px; font-weight: 550; line-height: 1.45; cursor: pointer; }
.apply-attest input[type="checkbox"] { width: 20px; height: 20px; margin-top: 1px; }
.apply-attest:has(input[aria-invalid="true"]) { border-color: #c4473b; }
.apply-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.apply-actions .button { min-width: 200px; }
.apply-actions .form-hint { flex: 1 1 260px; margin-top: 0; }
.apply-documents { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.apply-documents li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1px solid #e3e3e3; border-radius: 12px; background: #fff; }
.apply-documents li > .icon { flex: none; width: 20px; height: 20px; color: #555; }
.apply-documents li > .icon:last-child { color: #176b43; }
.apply-documents li > span { display: grid; flex: 1; gap: 2px; min-width: 0; }
.apply-documents strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.apply-documents small { color: var(--muted); font-size: 12px; }
.apply-empty { color: var(--muted); font-size: 14px; }
.apply-upload { display: grid; justify-items: start; gap: 8px; }
.apply-upload .form-hint { margin-top: 0; }
.apply-done { justify-items: start; }
.apply-done-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #dff2e7; color: #146c43; }
.apply-done-mark .icon { width: 28px; height: 28px; }
.apply-next { display: grid; gap: 10px; margin: 0; padding-left: 20px; color: #333; font-size: 15px; line-height: 1.55; }
.auth-apply a { color: #171717; font-weight: 600; text-underline-offset: 3px; }

/* ── Opening checklist (Home) ──────────────────────────────────────────────── */
.home-launch { margin-bottom: 24px; }
.home-launch:empty { display: none; }
.launch-panel .panel-heading { align-items: flex-start; }
.launch-panel .panel-heading > .status { margin-top: 2px; }
#launch-status:focus { outline: none; }
#launch-status .alert { margin: 16px 24px 0; }
.launch-steps { display: grid; gap: 2px; margin: 0; padding: 8px 12px; list-style: none; }
.launch-step > a, .launch-step > div { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; }
.launch-step > a:hover { background: #f7f7f7; }
.launch-step > a > .icon { flex: none; width: 16px; height: 16px; color: #888; }
.launch-mark { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f2f2f2; color: #8a8a8a; }
.launch-mark .icon { width: 18px; height: 18px; }
.launch-step.is-done .launch-mark { background: #dff2e7; color: #146c43; }
.launch-text { display: grid; flex: 1; gap: 2px; min-width: 0; }
.launch-text strong { font-size: 15px; font-weight: 600; }
.launch-text span { color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.launch-step.is-done .launch-text strong { color: #555; }
.launch-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 24px 20px; border-top: 1px solid #ededed; }
.launch-progress { color: var(--muted); font-size: 13px; font-weight: 600; }
.launch-request { display: grid; justify-items: end; gap: 6px; }
.launch-request .form-hint { margin-top: 0; }
.launch-requested { display: flex; align-items: flex-start; gap: 10px; max-width: 640px; color: #14532d; font-size: 14px; line-height: 1.5; }
.launch-requested > .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.launch-requested p { display: grid; gap: 2px; }
.launch-requested span, .launch-note { color: var(--muted); font-size: 13px; }
.launch-retry { padding: 0 24px 20px; }
.launch-panel > .alert { margin: 20px 24px 12px; }

/* ── Applications ──────────────────────────────────────────────────────────── */
.applications-page { max-width: 1240px; }
.applications-tabs a .count-badge { margin-left: 8px; }
.applications-content { display: grid; gap: 20px; }
.applications-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 24px; border-bottom: 1px solid var(--border); }
.applications-search .search-field input { height: auto; min-height: var(--control-height); }
.applications-panel .empty-state { min-height: 200px; }
.application-rows { margin: 0; padding: 0; list-style: none; }
.application-rows > li + li { border-top: 1px solid var(--border); }
.application-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.15fr) minmax(0, 1fr) auto; align-items: center; gap: 8px 20px; min-height: 76px; padding: 16px 24px; color: inherit; text-decoration: none; }
.application-row:hover { background: #fafafa; }
.application-row:focus-visible { outline-offset: -3px; }
.application-row-main, .application-row-meta { display: grid; gap: 3px; min-width: 0; }
.application-row-main strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.application-row-main small, .application-row-meta, .application-row-meta small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.application-row-status { justify-self: end; }
.application-check { display: inline-flex; align-items: flex-start; gap: 6px; font-size: 13px; font-weight: 550; line-height: 1.45; }
.application-check .icon { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.application-check.is-ok { color: #176b43; }
.application-check.is-warn { color: #8a4a0f; }
.application-check.is-muted { color: var(--muted); }
.application-detail { display: grid; gap: 0; }
.application-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.application-heading > div { display: grid; gap: 6px; min-width: 0; }
.application-heading h2 { font-size: 24px; letter-spacing: -.6px; overflow-wrap: anywhere; }
.application-heading h2:focus { outline: none; }
.application-heading p { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.application-feedback:focus { outline: none; }
.application-feedback:not(:empty) { display: grid; gap: 8px; margin-bottom: 16px; }
.application-feedback .alert + .alert { margin-top: 0; }
.application-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: start; gap: 20px; }
.application-main { display: grid; gap: 20px; min-width: 0; }
.application-decision { position: sticky; top: 20px; }
.application-section .panel-heading { flex-wrap: wrap; }
.application-section .panel-heading h3, .application-decision .panel-heading h3 { font-size: 16px; font-weight: 650; }
.application-section-body { padding: 16px 24px 20px; }
.application-compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.application-compare th, .application-compare td { padding: 10px 12px 10px 0; border-bottom: 1px solid #f0f0f0; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.application-compare thead th { padding-top: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.application-compare tbody th { width: 22%; color: var(--muted); font-size: 13px; font-weight: 550; }
.application-compare tbody td { width: 39%; }
.application-compare tr.is-different td { color: #6b4513; }
.application-differs { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #fff1ce; color: #805d09; font-size: 11px; font-weight: 600; }
.application-reason { margin-top: 14px; }
.application-documents, .application-members, .application-history { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.application-document { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1px solid #e7e7e7; border-radius: 12px; color: inherit; text-decoration: none; }
.application-document:hover { background: #fafafa; }
.application-document > .icon { flex: none; width: 20px; height: 20px; color: #555; }
.application-document > span { display: grid; flex: 1; gap: 2px; min-width: 0; }
.application-document strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.application-document small, .application-members small, .application-history small { color: var(--muted); font-size: 12px; }
.application-members li > span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.application-members strong { font-size: 14px; font-weight: 600; }
.application-history li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 4px 12px; }
.application-history li > span:last-child { display: grid; gap: 2px; min-width: 0; }
.application-history strong { font-size: 13px; font-weight: 600; }
.application-history-reason { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.application-empty { color: var(--muted); font-size: 14px; }
.application-question { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.application-question code, .application-approved code, .launch-row code { padding: 1px 6px; border-radius: 6px; background: #f2f2f2; font-size: 13px; }
.application-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.application-decision .application-section-body { display: grid; gap: 14px; }
.application-form { gap: 14px; }
.application-form textarea, .application-form input { width: 100%; }
.application-approved { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; border: 1px solid #bee4cf; border-radius: 12px; background: #effaf3; color: #14532d; font-size: 14px; }
.application-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.application-facts dt { color: var(--muted); font-size: 12px; }
.application-facts dd { margin: 3px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.application-facts a { color: inherit; text-underline-offset: 3px; }
.launch-rows { margin: 0; padding: 0; list-style: none; }
.launch-row { display: grid; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--border); }
.launch-rows > .launch-row:first-child { border-top: 0; }
.launch-row-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.launch-row-name { display: grid; gap: 6px; min-width: 0; }
.launch-row-name h3 { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.launch-row-name p { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.registry-latest { display: grid; gap: 16px; }
.registry-latest-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.registry-latest-head > div { display: grid; gap: 4px; min-width: 0; }
.registry-latest-head h3 { font-size: 20px; font-weight: 650; letter-spacing: -.4px; }
.registry-latest-head p, .registry-note { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.registry-counts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; }
.registry-counts > div { padding: 12px 14px; border-radius: 12px; background: #f7f7f7; }
.registry-counts dt { color: var(--muted); font-size: 12px; }
.registry-counts dd { margin: 4px 0 0; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.registry-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.applications-panel .form-hint { margin-top: 10px; }
.registry-history-wrap { overflow-x: auto; }
.registry-history { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; }
.registry-history th, .registry-history td { padding: 10px 12px 10px 0; border-bottom: 1px solid #f0f0f0; text-align: left; vertical-align: top; }
.registry-history th { color: var(--muted); font-size: 12px; font-weight: 600; }
.registry-history td small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.registry-history .status { font-size: 11px; }

@media (max-width: 1100px) {
  .application-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; }
  .application-row-meta { grid-column: 1 / 3; grid-row: 2; }
  .registry-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .application-layout { grid-template-columns: minmax(0, 1fr); }
  .application-decision { position: static; }
}
@media (max-width: 760px) {
  .apply-page { gap: 20px; padding: 20px 16px; }
  .apply-page .auth-brand .logo { width: 112px; }
  .apply-wrap { padding: 0 0 48px; }
  .apply-heading h1 { font-size: 28px; letter-spacing: -.85px; }
  .apply-heading p { font-size: 15px; }
  .apply-grid { grid-template-columns: minmax(0, 1fr); }
  .apply-field input, .apply-lookup input { font-size: 16px; }
  .apply-lookup .button { min-width: 0; padding-inline: 16px; }
  .apply-actions .button { flex: 1 1 100%; min-width: 0; }
  .apply-actions .text-button { flex: 1 1 100%; text-align: center; min-height: 44px; }
  .home-launch { margin-bottom: 20px; }
  .launch-steps { padding: 6px 4px; }
  .launch-step > a, .launch-step > div { gap: 12px; padding: 10px 12px; }
  .launch-footer { padding: 14px 16px 18px; }
  .launch-request { justify-items: stretch; width: 100%; }
  .launch-request .button { width: 100%; }
  #launch-status .alert { margin: 12px 16px 0; }
  .applications-search { padding: 12px 16px; }
  .applications-search .search-field { flex-basis: 100%; }
  .applications-search .search-field input { font-size: 16px; }
  .applications-search .button { flex: 1; }
  .application-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 16px; }
  .application-row-main { grid-column: 1; grid-row: 1; }
  .application-row-status { grid-column: 2; grid-row: 1; align-self: start; }
  .application-row-check { grid-column: 1 / -1; grid-row: 2; }
  .application-row-meta { grid-column: 1 / -1; grid-row: 3; }
  .application-heading { flex-direction: column; gap: 10px; }
  .application-heading h2 { font-size: 22px; }
  .application-section-body { padding: 14px 16px 16px; }
  .application-compare thead { display: none; }
  .application-compare, .application-compare tbody, .application-compare tr, .application-compare th, .application-compare td { display: block; width: auto; }
  .application-compare tr { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
  .application-compare th, .application-compare td { padding: 0; border: 0; }
  .application-compare tbody th { width: auto; margin-bottom: 4px; }
  .application-compare tbody td { width: auto; }
  .application-compare tbody td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 550; }
  .application-facts { grid-template-columns: minmax(0, 1fr); }
  .application-actions .button { flex: 1 1 0; min-width: 0; }
  .application-form textarea, .application-form input { font-size: 16px; }
  .launch-row { padding: 14px 16px; }
  .launch-row-main .application-actions { width: 100%; }
  .registry-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .registry-actions .button { flex: 1 1 100%; }
}
