.ai-pcb-page { background: var(--canvas); }
.ai-pcb-shell { max-width: 820px; }
.ai-pcb-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px 30px; }
.ai-pcb-heading h1 { margin: 6px 0 12px; font-size: clamp(30px, 3.5vw, 46px); line-height: 1.25; letter-spacing: -.03em; overflow-wrap: anywhere; }
.ai-pcb-heading p { max-width: 670px; margin: 0; color: var(--muted); }
.ai-pcb-back { color: var(--green); font-size: 14px; }
.ai-pcb-form, .ai-pcb-result, .ai-pcb-recent, .ai-pcb-brief { min-width: 0; padding: 30px; }
.ai-pcb-form { display: grid; gap: 22px; }
.ai-pcb-result h2 { margin: 0; font-size: 23px; }
.ai-pcb-result > p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.ai-pcb-form label { display: grid; align-content: start; gap: 9px; font-size: 14px; font-weight: 600; }
.ai-pcb-form input, .ai-pcb-form textarea { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font-weight: 400; }
.ai-pcb-form textarea { resize: vertical; line-height: 1.7; }
.ai-pcb-form :is(input, textarea):focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.ai-pcb-form label > span, .ai-pcb-actions p { color: var(--muted); font-size: 13px; font-weight: 400; margin: 0; }
.ai-pcb-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.ai-pcb-result > form { margin-block-start: 18px; }
.ai-pcb-recent, .ai-pcb-brief { margin-block-start: 20px; }
.ai-pcb-recent h2 { margin: 0 0 12px; font-size: 18px; }
.ai-pcb-recent ul { list-style: none; padding: 0; margin: 0; }
.ai-pcb-recent a { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-block-start: 1px solid var(--line); color: var(--green); overflow-wrap: anywhere; }
.ai-pcb-brief summary { cursor: pointer; font-size: 16px; font-weight: 650; }
.ai-pcb-errors { padding: 12px 16px; color: #8b3224; background: #fff3ed; border-radius: 8px; }
.ai-pcb-errors p { margin: 5px 0; font-size: 13px; }
.ai-pcb-page pre { padding: 20px; margin: 18px 0 0; border: 1px solid var(--line); border-radius: 8px; background: #fafcf9; color: var(--ink-2); font-family: inherit; font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-pcb-brief .ai-pcb-actions { margin-block-start: 12px; }
.workshop-plan { margin-block-start: 24px; color: var(--ink-2); font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.workshop-plan :is(h1, h2, h3, h4) { color: var(--ink); line-height: 1.5; margin: 28px 0 12px; }
.workshop-plan h1 { font-size: 23px; }
.workshop-plan h2 { font-size: 19px; padding-block-end: 8px; border-block-end: 1px solid var(--line); }
.workshop-plan :is(h3, h4) { font-size: 16px; }
.workshop-plan > :first-child { margin-block-start: 0; }
.workshop-plan p { margin: 10px 0; }
.workshop-plan :is(ul, ol) { padding-inline-start: 24px; }
.workshop-plan li + li { margin-block-start: 8px; }
.workshop-plan a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.workshop-plan table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin-block: 16px; }
.workshop-plan :is(th, td) { padding: 10px 12px; border: 1px solid var(--line); text-align: start; vertical-align: top; min-width: 110px; }
.workshop-plan th { color: var(--ink); background: var(--canvas); font-weight: 650; }
.workshop-plan code { font-size: .93em; padding: 2px 4px; background: var(--canvas); border-radius: 4px; }
.workshop-plan blockquote { margin: 16px 0; padding-inline-start: 14px; border-inline-start: 3px solid var(--green); }
.ai-pcb-result > .ai-pcb-actions { margin-block-start: 24px; padding-block-start: 20px; border-block-start: 1px solid var(--line); }
.product-flow { margin-block-start: 30px; }
.product-flow-heading { margin-bottom: 18px; }
.product-flow-heading h2 { margin: 4px 0 8px; font-size: 25px; line-height: 1.3; }
.product-flow-heading p { margin: 0; color: var(--muted); line-height: 1.6; }
.product-flow-eyebrow { color: var(--green) !important; font-size: 12px; font-weight: 700; }
.product-flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.product-flow-card { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.product-flow-card > div { min-width: 0; }
.product-flow-number { display: grid; place-items: center; flex: 0 0 31px; height: 31px; border-radius: 9px; color: var(--green); background: #edf7f1; font-size: 12px; font-weight: 750; }
.product-flow-card h3 { margin: 3px 0 8px; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.product-flow-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.product-flow-card a, .product-flow-link { display: inline-block; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--green); font: inherit; font-size: 13px; font-weight: 650; text-align: start; cursor: pointer; }
.product-flow-card a:hover, .product-flow-link:hover { text-decoration: underline; }
.product-flow-evidence, .product-flow-copy-status { display: block; margin-top: 9px; color: #466957; font-size: 12px; line-height: 1.5; }
.product-flow-note { margin: 14px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
@media (max-width: 700px) { .product-flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .product-flow-grid { grid-template-columns: 1fr; } .product-flow-card { padding: 15px; } }
@media (min-width: 901px) and (max-width: 1400px) { .nav-search { display: none; } .primary-nav { gap: 12px; } }
@media (min-width: 901px) and (max-width: 1120px) {
  .header-inner { min-height: 64px; }
  .nav-toggle { display: block; cursor: pointer; flex-shrink: 0; }
  .primary-nav { position: absolute; inset: calc(100% + 1px) 16px auto; display: none; padding: 16px; max-height: calc(100vh - 80px); overflow-y: auto; border: 1px solid var(--line); border-radius: 0 0 14px 14px; background: var(--surface); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: grid; gap: 3px; }
  .nav-link { width: 100%; padding: 10px; }
  .nav-search { display: block; width: 100%; min-width: 0; }
  .account-menu { width: 100%; margin-block: 7px; }
  .account-menu-label { display: inline; }
  .account-menu-panel { position: static; margin-top: 8px; box-shadow: none; }
}
@media (max-width: 560px) {
  .ai-pcb-heading { flex-wrap: wrap; padding-block-start: 0; }
  .ai-pcb-form, .ai-pcb-result, .ai-pcb-recent, .ai-pcb-brief { padding: 22px; }
  .ai-pcb-page pre { padding: 16px; font-size: 13px; }
  .ai-pcb-actions > .button-primary { width: 100%; }
}

.workshop-intake .ai-pcb-shell { max-width: 1120px; }
.workshop-intake-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  align-items: start;
  gap: 20px;
}
.workshop-intake .ai-pcb-form,
.workshop-intake .product-flow {
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}
.workshop-intake .product-flow { margin-block-start: 0; }
.workshop-intake .product-flow-grid { grid-template-columns: 1fr; gap: 0; }
.workshop-intake .product-flow-card {
  padding: 10px 0;
  border: 0;
  border-block-end: 1px solid var(--line);
  border-radius: 0;
}
.workshop-intake .product-flow-heading { margin-block-end: 8px; }
.workshop-intake .product-flow-heading h2 { font-size: 20px; }
.workshop-intake .product-flow-card h3 { margin-block: 0 3px; }
.workshop-intake .ai-pcb-form :is(input:not([type="hidden"]), textarea) { background: var(--canvas); }
.workshop-intake .ai-pcb-form label { font-size: 15px; }
.ai-pcb-result[data-state="queued"],
.ai-pcb-result[data-state="running"] { border-inline-start: 4px solid var(--change); }

@media (max-width: 760px) {
  .workshop-intake-grid { grid-template-columns: 1fr; }
}
