/* A single workflow; the workbench retains the underlying editing controls. */
.demo-workflow {
  max-width: 1080px;
  margin: 34px auto 0;
  padding: 0 24px;
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr);
  border-bottom: 1px solid var(--line);
}
.workflow-steps button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 13px 10px 15px;
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-xs);
  text-align: left;
  line-height: 1.45;
}
.workflow-steps button:first-child {
  padding-left: 0;
}
.workflow-steps button[aria-current="step"] {
  border-bottom-color: var(--navy);
  color: var(--navy);
  font-weight: 650;
}
.workflow-steps button span {
  font-family: "Geist Mono", monospace;
  font-size: var(--fs-mono);
  color: var(--faint);
  flex-shrink: 0;
}
.workflow-steps button:disabled {
  opacity: 0.45;
  cursor: default;
}
.workflow-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0 17px;
}
.workflow-next h2 {
  font-size: var(--fs-xl);
  letter-spacing: -0.65px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--navy);
}
.workflow-next p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
  max-width: 680px;
  overflow-wrap: anywhere;
}
.workflow-next > button {
  min-width: 120px;
  padding: 11px 17px;
  flex-shrink: 0;
}
body[data-workflow-step] #evidence-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
body[data-workflow-step="parts"] #evidence-workspace {
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
}
body[data-workflow-step="refine"] #evidence-workspace {
  grid-template-columns: minmax(270px, 0.82fr) minmax(0, 1.18fr);
}
body[data-workflow-step] .panel {
  box-shadow: none;
  border-radius: var(--r-sm);
}
body[data-workflow-step] .panel:last-child {
  grid-column: auto;
}
body[data-workflow-step="upload"] #parts-panel,
body[data-workflow-step="upload"] #refine-panel,
body[data-workflow-step="parts"] #refine-panel,
body[data-workflow-step="refine"] #upload-panel,
body[data-workflow-step="source"] #evidence-workspace,
body[data-workflow-step]:not([data-workflow-step="refine"]) #refinement-tools,
body[data-workflow-step]:not([data-workflow-step="source"]) #sourcing-next {
  display: none !important;
}
body[data-workflow-step] #analyze,
body[data-workflow-step] #import-structure {
  display: none;
}
body[data-workflow-step="parts"]
  #upload-panel
  > .body
  > :not(#photos):not(#file-review) {
  display: none;
}
body[data-workflow-step="parts"] #upload-panel .visual {
  height: 300px;
}
body[data-workflow-step="upload"] #upload-panel .visual {
  height: 300px;
}
body[data-workflow-step="upload"] #upload-panel > .body {
  max-width: 740px;
  margin: auto;
  padding: 22px 24px;
}
body[data-workflow-step] .section-title {
  min-height: 48px;
  padding: 13px 16px;
}
body[data-workflow-step] .visual {
  background: var(--surface-sunken);
  border-bottom-color: var(--line);
}
body[data-workflow-step] .cross {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 4px;
}
body[data-workflow-step] .placeholder h2 {
  font-size: var(--fs-lg);
}
body[data-workflow-step] #details > .badge {
  display: none;
}
body[data-workflow-step] #details > .muted {
  font-size: var(--fs-mono);
}
body[data-workflow-step] #details .definition {
  gap: 12px;
}
body[data-workflow-step] #details input,
body[data-workflow-step] #details textarea {
  background: var(--surface);
}
body[data-workflow-step] #details #save {
  color: var(--navy);
  background: var(--surface);
  border-color: var(--line-strong);
}
body[data-workflow-step] .extra-requirements {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
  font-size: var(--fs-xs);
  color: var(--muted);
}
body[data-workflow-step] .extra-requirements summary {
  cursor: pointer;
}
body[data-workflow-step] #selection-source {
  border-top: 1px solid var(--line);
  padding: 15px 18px;
  font-size: var(--fs-xs);
}
body[data-workflow-step] #selection-source > .body {
  padding: 15px 0 0;
}
body[data-workflow-step] .group-tools {
  position: relative;
  font-size: var(--fs-mono);
  align-self: center;
}
body[data-workflow-step] .group-tools summary {
  cursor: pointer;
  padding: 7px 0;
  color: var(--muted);
}
body[data-workflow-step] .group-tools button {
  margin: 5px 0;
}
body[data-workflow-step] #analysis-history {
  border-top: 1px solid var(--line);
  margin-top: 14px;
}
body[data-workflow-step] #analysis-history summary {
  font-size: var(--fs-mono);
  color: var(--muted);
  cursor: pointer;
}
body[data-workflow-step] #analysis-history > label {
  margin-top: 14px;
}
body[data-workflow-step] #proposals {
  padding: 18px;
}
body[data-workflow-step] #proposals > h3 {
  font-size: var(--fs-md);
}
body[data-workflow-step] .proposal-detail {
  padding-bottom: 12px;
}
.flow-allowance {
  max-width: 1080px;
  padding: 0 24px;
  margin: 0 auto 17px;
  color: var(--muted);
  font-size: var(--fs-mono);
}
.flow-allowance strong {
  font-weight: 400;
}
body[data-workflow-step="source"] .flow-allowance {
  display: none;
}
.file-formats,
.sample-files,
.analysis-settings,
body[data-workflow-step] .key-settings {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  margin-top: 12px;
  padding: 12px 0 0;
  font-size: var(--fs-mono);
  color: var(--muted);
  box-shadow: none;
}
.file-formats summary,
.sample-files summary,
.analysis-settings summary,
body[data-workflow-step] .key-settings summary {
  cursor: pointer;
}
.sample-files > button {
  margin: 12px 6px 0 0;
}
.analysis-settings > label {
  margin-top: 14px;
}
#refinement-tools {
  width: calc(100% - 48px);
  max-width: 1032px;
  margin: 22px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 16px 18px;
  font-size: var(--fs-xs);
  color: var(--muted);
}
#refinement-tools > summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 550;
}
#refinement-tools .refine-tool {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 15px;
}
#refinement-tools .refine-tool > summary {
  cursor: pointer;
}
#refinement-tools .build-section,
#refinement-tools .bottom {
  margin: 18px 0 0;
  padding: 0;
}
#refinement-tools .bottom {
  grid-template-columns: minmax(0, 1fr);
}
#refinement-tools .build-heading > div > .eyebrow,
#refinement-tools .local-badge {
  display: none;
}
#refinement-tools .build-heading h2 {
  font-size: var(--fs-lg);
}
body[data-workflow-step] #sourcing-next {
  display: block;
  width: calc(100% - 48px);
  max-width: 1032px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 24px;
  background: white;
  color: var(--navy);
}
body[data-workflow-step] #sourcing-next::before {
  display: none;
}
body[data-workflow-step] #sourcing-next > div:first-child {
  display: none;
}
body[data-workflow-step] #sourcing-next p {
  color: var(--muted);
}
body[data-workflow-step] #sourcing-next .sourcing-actions {
  display: block;
  margin-top: 22px;
}
body[data-workflow-step] #sourcing-next .sourcing-actions > button {
  margin-right: 8px;
}
body[data-workflow-step] #sourcing-next #download-manufacturing,
body[data-workflow-step] #sourcing-next #handoff {
  display: none;
}
body[data-workflow-step] #sourcing-next .contact-link {
  display: inline-block;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: var(--fs-mono);
  margin-top: 12px;
  color: var(--navy);
}
#source-parts {
  overflow-x: auto;
}
#source-parts table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-xs);
}
#source-parts th {
  color: var(--muted);
  font-size: var(--fs-mono);
  font-weight: 500;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
#source-parts td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--surface-sunken);
  overflow-wrap: anywhere;
}
#source-parts td small {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: var(--fs-mono);
}
#source-parts th:first-child,
#source-parts td:first-child {
  padding-left: 0;
}
#source-parts th:last-child,
#source-parts td:last-child {
  padding-right: 0;
}
#sourcing-next #readiness {
  margin-top: 16px;
  background: transparent;
  padding: 0;
}
.demo-sourcing-note {
  font-size: var(--fs-mono) !important;
  line-height: 1.65;
  max-width: 670px;
  margin-top: 12px !important;
}
#source-enrichment {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.source-enrichment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.source-enrichment-heading h3 {
  margin: 5px 0 0;
  font-size: var(--fs-lg);
  letter-spacing: -0.6px;
}
.source-live-label {
  font-size: var(--fs-mono);
  color: var(--ok);
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--ok-tint);
  padding: 7px 10px;
  border-radius: var(--r-lg);
}
.source-search-controls {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 22px;
}
.source-search-controls label {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: var(--fs-mono);
}
.source-search-controls select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 10px 12px;
  background: var(--surface);
  color: var(--navy);
  font: inherit;
  font-size: var(--fs-sm);
}
.source-search-controls button {
  min-height: 42px;
  flex-shrink: 0;
}
.source-all-progress {
  margin-top: 20px;
}
#sourcing-next #source-all-status {
  margin: 0 0 8px;
  font-size: var(--fs-xs);
  color: var(--navy);
}
#source-all-progress {
  display: block;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: var(--r-sm);
  accent-color: var(--ok);
  overflow: hidden;
}
#source-all-progress::-webkit-progress-bar {
  background: var(--line);
}
#source-all-progress::-webkit-progress-value {
  background: var(--ok);
}
.source-all-parts {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}
.source-all-part {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.source-all-inspect {
  display: flex;
  flex: 1;
  min-width: 0;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  text-align: left;
  color: var(--ink-2);
}
.source-all-inspect[aria-pressed="true"] {
  border-color: var(--ok-mid);
  background: var(--paper);
}
.source-all-inspect strong {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-xs);
  overflow-wrap: anywhere;
}
.source-all-inspect span {
  max-width: 58%;
  text-align: right;
  font-size: var(--fs-mono);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.source-all-part[data-status="failed"] .source-all-inspect span,
.source-all-part[data-status="gated"] .source-all-inspect span {
  color: var(--warn);
}
.source-part-retry {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-2);
  padding: 9px 12px;
  font-size: var(--fs-mono);
}
#sourcing-next .source-part-requirements,
#sourcing-next #source-enrichment-status {
  font-size: var(--fs-xs);
  line-height: 1.6;
  margin-top: 12px;
}
#source-enrichment-results .supplier-provenance {
  font-size: var(--fs-mono);
  font-weight: 600;
  margin: 22px 0 12px;
}
#source-enrichment-results .supplier-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}
#source-enrichment-results .enriched-supplier {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  background: white;
  overflow-wrap: anywhere;
}
#source-enrichment-results .supplier-role {
  display: block;
  color: var(--muted);
  font-size: var(--fs-mono);
}
#source-enrichment-results h3 {
  color: var(--navy);
  margin: 8px 0;
  font-size: 19px;
  letter-spacing: -0.4px;
}
#source-enrichment-results .supplier-location,
#source-enrichment-results .supplier-summary,
#source-enrichment-results .supplier-match,
#source-enrichment-results .supplier-access-note,
#source-enrichment-results .supplier-review-note {
  font-size: var(--fs-mono);
  line-height: 1.7;
}
#source-enrichment-results .supplier-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 12px 0;
}
#source-enrichment-results .supplier-capabilities span {
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--muted);
  padding: 4px 6px;
  font-size: var(--fs-mono);
}
#source-enrichment-results .supplier-links {
  margin-top: 15px;
}
#source-enrichment-results a {
  display: inline-block;
  font-size: var(--fs-xs);
  color: var(--navy);
  text-underline-offset: 3px;
}
#source-enrichment-results .supplier-continue {
  margin-top: 3px;
  font-weight: 500;
}
body[data-workflow-step] #sourcing-next #source-bom {
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--line-strong);
}
@media (max-width: 600px) {
  .source-enrichment-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .source-search-controls {
    align-items: stretch;
    flex-direction: column;
  }
}
.project-resources {
  width: calc(100% - 48px);
  max-width: 1032px;
  margin: 25px auto 20px;
  font-size: var(--fs-mono);
  color: var(--muted);
}
.project-resources summary {
  cursor: pointer;
}
.project-resources a {
  display: inline-block;
  margin: 13px 20px 0 0;
  color: var(--muted);
}
body[data-workflow-step] #status {
  max-width: 1032px;
  width: calc(100% - 48px);
  margin: 14px auto 28px;
  font-size: var(--fs-mono);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.auth-gate {
  max-width: 1080px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 70px;
  padding: 50px 24px;
}
.auth-story h1 {
  font-size: clamp(36px, 4vw, 51px);
  letter-spacing: -1.6px;
}
.auth-lead {
  font-size: var(--fs-base);
}
.auth-path {
  list-style: none;
  margin: 25px 0;
  padding: 0;
}
.auth-path li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.auth-path span {
  font-family: "Geist Mono", monospace;
  font-size: var(--fs-mono);
  color: var(--faint);
  padding-top: 2px;
}
.auth-card {
  box-shadow: none;
}
@media (min-width: 701px) {
  body[data-workflow-step] #upload-panel label.upload:has(#camera) {
    display: none;
  }
}
@media (max-width: 800px) {
  body[data-workflow-step="parts"] #evidence-workspace,
  body[data-workflow-step="refine"] #evidence-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  body[data-workflow-step="parts"] #upload-panel .visual {
    height: 180px;
  }
  body[data-workflow-step="parts"] #upload-panel > .body {
    padding: 10px 16px;
  }
  .auth-gate {
    display: flex;
    flex-direction: column;
    gap: 26px;
    align-items: stretch;
    padding: 30px 24px;
    min-height: auto;
  }
  .auth-path {
    margin: 18px 0 8px;
  }
  .auth-path li {
    padding: 7px 0;
  }
}
@media (max-width: 600px) {
  .demo-workflow {
    margin-top: 20px;
    padding: 0 16px;
  }
  /* Four columns at 390px wrapped every label onto two lines and cost a fifth
     of the first screen. One swipeable line keeps every step reachable. */
  .workflow-steps {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .workflow-steps::-webkit-scrollbar {
    display: none;
  }
  .workflow-steps button {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 13px 14px;
    font-size: var(--fs-mono);
  }
  .workflow-steps button span {
    display: inline;
    margin: 0;
    font-size: var(--fs-mono);
  }
  .workflow-next {
    display: block;
    padding: 22px 0 14px;
  }
  .workflow-next h2 {
    font-size: var(--fs-lg);
  }
  .workflow-next p {
    font-size: var(--fs-xs);
  }
  .workflow-next > button {
    width: 100%;
    margin-top: 16px;
  }
  .flow-allowance {
    padding: 0 16px;
    margin-bottom: 12px;
  }
  body[data-workflow-step] #evidence-workspace {
    padding: 0 16px;
    gap: 14px;
  }
  body[data-workflow-step="upload"] #upload-panel .visual {
    height: 230px;
  }
  body[data-workflow-step="upload"] #upload-panel > .body {
    padding: 18px 16px;
  }
  #refinement-tools,
  .project-resources,
  body[data-workflow-step] #status,
  body[data-workflow-step] #sourcing-next {
    width: calc(100% - 32px);
  }
  body[data-workflow-step] #sourcing-next {
    padding: 18px 16px;
  }
  body[data-workflow-step] #sourcing-next .sourcing-actions > button {
    width: 100%;
    margin: 0 0 9px;
  }
  #source-parts th,
  #source-parts td {
    padding: 11px 7px;
    font-size: var(--fs-mono);
  }
  #source-parts td {
    max-width: 160px;
  }
  .auth-gate {
    padding: 28px 20px;
  }
  .auth-story h1 {
    font-size: 38px;
  }
}

body[data-workflow-step] #source-bom {
  background: var(--navy);
  color: var(--surface);
  border-color: var(--navy);
  min-height: 44px;
}

.auth-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 9px;
  padding: 13px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--navy);
  font-size: var(--fs-sm);
  text-decoration: none;
  background: var(--surface);
}
.auth-demo-link:hover {
  background: var(--paper);
  border-color: var(--faint);
}
@media (prefers-reduced-motion: no-preference) {
  .workflow-steps button,
  .workflow-next > button {
    transition:
      background 0.18s,
      border-color 0.18s,
      color 0.18s;
  }
}

/* Persistent next action keeps the path to suppliers visible after review. */
body[data-workflow-step] { padding-bottom: 160px; }
.workflow-dock { position: fixed; z-index: 20; left: 50%; bottom: 40px; transform: translateX(-50%); width: min(1040px, calc(100% - 32px)); box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 8px 32px #00286824; }
.workflow-dock strong { display: block; font-size: 16px; color: var(--navy); line-height: 1.35; }
.workflow-dock-eyebrow { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 700; letter-spacing: .09em; color: var(--muted); }
.workflow-dock .primary { min-height: 48px; min-width: 180px; font-size: 15px; }
.workflow-steps button[data-workflow-step="source"]:not(:disabled) { color: var(--navy); font-weight: 700; background: var(--paper); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.connection-help { font-size: 13px; line-height: 1.6; margin: 14px 0; }
.connection-help a { font-weight: 650; color: var(--navy); text-decoration: underline; }
@media(max-width:600px) {
  body[data-workflow-step] { padding-bottom: 195px; }
    /* The dock becomes the thumb bar: flush to the bottom edge, above the home
     indicator, with the page padded so it never covers what it sits on. A card
     hovering 48px off the bottom hid the content underneath it on a phone. */
  .workflow-dock { left: 0; right: 0; bottom: 0; width: 100%; transform: none; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; box-shadow: 0 -4px 20px #00286814; }
  .workflow-dock strong { font-size: var(--fs-mono); font-weight: 600; color: var(--muted); }
  .workflow-dock strong:empty { display: none; }
  .workflow-dock .primary { min-height: 52px; }
  body[data-workflow-step] { padding-bottom: 116px; }
  .workflow-next > button { display: none; }
  .workflow-dock strong { font-size: 14px; }
  .workflow-dock-eyebrow { display: none; }
  .workflow-dock .primary { width: 100%; min-width: 0; }
  .workflow-steps button { font-size: 12px; min-height: 60px; }
}

.workflow-activity { margin: 4px 0 20px; padding: 22px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.workflow-activity[hidden] { display: none; }
.activity-heading { display: flex; align-items: center; gap: 14px; }
.activity-heading strong { color: var(--navy); font-size: 17px; }
.activity-heading p { color: var(--muted); line-height: 1.5; margin: 6px 0 0; font-size: 13px; }
#activity-elapsed { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--navy); }
.activity-spinner { flex: 0 0 24px; width: 24px; height: 24px; border: 3px solid var(--line-strong); border-top-color: var(--navy); border-radius: 50%; animation: activity-turn 1s linear infinite; }
.activity-parts { display: grid; gap: 9px; margin-top: 20px; }
.activity-parts span { display: block; height: 14px; border-radius: var(--r-sm); background: linear-gradient(90deg,var(--line),var(--surface),var(--line)); background-size: 200% 100%; animation: activity-shimmer 2s linear infinite; }
.activity-parts span:nth-child(2) { width: 78%; }
.activity-parts span:nth-child(3) { width: 58%; }
.activity-next { margin: 18px 0 0; font-size: 12px; color: var(--navy); font-weight: 600; }
.activity-next span { color: var(--muted); font-weight: 400; }
@keyframes activity-turn { to { transform: rotate(360deg); } }
@keyframes activity-shimmer { to { background-position: -200% 0; } }
@media(max-width:600px) { .workflow-activity { padding: 16px; } .activity-heading { flex-wrap: wrap; } .activity-heading > div { flex: 1; } #activity-elapsed { margin-left: 38px; } }
@media(prefers-reduced-motion:reduce) { .activity-spinner, .activity-parts span { animation: none; } }

.guest-draft-choice { max-width: 1032px; box-sizing: border-box; margin: 0 auto 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.guest-draft-choice strong { color: var(--navy); font-size: 15px; }
.guest-draft-choice p { color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 620px; margin: 6px 0 0; }
.guest-draft-actions { display: flex; gap: 8px; flex-shrink: 0; }
.guest-draft-actions button { min-height: 44px; }
@media(max-width:800px) { .guest-draft-choice { margin-inline:16px; flex-direction:column; align-items:stretch; } .guest-draft-actions { flex-wrap:wrap; } .guest-draft-actions button { flex:1; } }

/* Editing is the default; grouping checkboxes only appear inside Organize mode. */
#parts-panel:not(.grouping-mode) #tree .row > input { display: none; }
#tree .tree-open { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; text-align: left; padding: 8px 0; white-space: normal; }
#tree .tree-open:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.specification-suggestions { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.specification-suggestions summary { cursor: pointer; font-weight: 600; }
.specification-suggestions p { font-size: 13px; line-height: 1.5; }
.specification-option { padding: 12px 0; border-top: 1px solid var(--line); }
.specification-option strong { display: block; overflow-wrap: anywhere; }
.specification-option button { display: block; margin-top: 8px; }
.supplier-choice { display: block; margin: 10px 0; white-space: normal; width: 100%; }
