/* Integrated production v0.5: one order's printer board ("what our floor sees, you see"). Illustration only, not live data. */
.integrated { padding: 112px 0 88px; background: #F4F5F2; scroll-margin-top: 24px; }
.sec-label { font-size: 15px; font-weight: 500; color: var(--muted); margin-bottom: 16px; }
.integrated-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 64px; }
.integrated h2 { font-size: 56px; line-height: 1.15; font-weight: 600; }
.integrated-lead { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 30em; }
.ix-foot { margin-top: 20px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.ix-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.ob { --ok: #1E7A4E; --warn: #A85F0C; margin-top: 56px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: stretch; }
.ob-side { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-width: 0; }
.ob-points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ob-points li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ob-points li > svg { width: 20px; height: 20px; margin-top: 4px; color: var(--accent); }
.ob-points b { display: block; font-size: 19px; line-height: 1.4; font-weight: 600; }
.ob-points div > span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.ob-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ob-toggle { display: inline-flex; gap: 4px; padding: 4px; background: #E7E9E5; border-radius: 6px; }
.ob-toggle button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 4px; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.ob-toggle button svg { width: 16px; height: 16px; }
.ob-toggle button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(29,36,42,.12); }
.ob-login { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--ink); text-underline-offset: 5px; }
.ob-login:hover { color: var(--accent); }
.ob-login svg { width: 17px; height: 17px; }

.ob-board { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding: 28px; background-color: var(--stage); background-image: linear-gradient(rgba(242,243,241,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(242,243,241,.035) 1px, transparent 1px); background-size: 28px 28px; border: 1px solid rgba(242,243,241,.10); border-radius: 8px; color: var(--on-stage); box-shadow: none; --ok: #7BD3A6; --warn: #F0B36F; }
/* Same console header as the hero cluster: label left, live indicator right. */
.ob-hud { margin: -8px 0 -4px; }
.ob-order { display: flex; flex-direction: column; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid rgba(242,243,241,.12); }
.ob-order-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ob-id { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--on-stage-muted); }
.ob-id .mono { font-size: 15px; font-weight: 600; color: var(--on-stage); }
.ob-demo { font-style: normal; font-size: 12px; color: var(--on-stage-muted); border: 1px solid rgba(242,243,241,.16); border-radius: 4px; padding: 0 6px; line-height: 20px; }
.ob-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 12px; border-radius: 4px; font-size: 14px; font-weight: 600; color: var(--ok); background: rgba(30,122,78,.18); transition: color 240ms ease, background-color 240ms ease; }
.ob-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ob-badge-risk { display: none; }
.ob[data-ob-mode="risk"] .ob-badge { color: var(--warn); background: rgba(168,95,12,.20); }
.ob[data-ob-mode="risk"] .ob-badge-plan { display: none; }
.ob[data-ob-mode="risk"] .ob-badge-risk { display: inline; }
.ob-order-grid { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 32px; align-items: end; }
.ob-due, .ob-total p { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--on-stage-muted); }
.ob-due b { font-size: 24px; line-height: 1.2; font-weight: 600; color: var(--on-stage); }
.ob-total p { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ob-total b { font-size: 15px; font-weight: 500; color: var(--on-stage); }
.ob-total b .mono { font-size: 20px; font-weight: 600; }
.ob-tbar { display: block; height: 8px; background: rgba(242,243,241,.12); border-radius: 2px; overflow: hidden; }
.ob-tbar i { display: block; height: 100%; width: 100%; background: var(--stage-accent); transform: scaleX(.46); transform-origin: left center; transition: transform 900ms cubic-bezier(.22,.75,.15,1); }

.ob-counts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ob-counts div { display: flex; flex-direction: column; gap: 2px; padding: 0 16px; border-left: 1px solid rgba(242,243,241,.12); min-width: 0; }
.ob-counts div:first-child { padding-left: 0; border-left: 0; }
.ob-counts dt { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--on-stage-muted); white-space: nowrap; }
.ob-counts dt::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 2px; }
.ob-counts dd { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 600; color: var(--on-stage); }
.c-run dt::before { background: #2346D8; box-shadow: 0 0 0 1px var(--stage-accent); }
.c-wait dt::before { border: 1.5px solid var(--on-stage-muted); }
.c-done dt::before { background: var(--on-stage); }
.c-hold dt::before { background: var(--warn); }

.ob-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ob-m { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px 12px 10px; border: 1px solid rgba(242,243,241,.12); border-radius: 6px; background: rgba(242,243,241,.02); transition: border-color 240ms ease, background-color 240ms ease; }
.ob-m-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.ob-m-top b { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.ob-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--stage-accent); white-space: nowrap; }
.ob-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ob-pb { display: block; height: 4px; background: rgba(242,243,241,.10); border-radius: 2px; overflow: hidden; }
.ob-pb i { display: block; height: 100%; width: 100%; background: var(--stage-accent); transform-origin: left center; transition: transform 900ms linear; }
.ob-t { font-size: 12px; color: var(--on-stage-muted); }
.ob-t .mono { font-size: 12px; }
/* Printing = cobalt, matching this order's printers in the hero cluster. */
.ob-m[data-st="run"] { border-color: rgba(143,166,255,.34); background: rgba(35,70,216,.14); }
.ob-m[data-st="wait"] .ob-st { color: var(--on-stage-muted); }
.ob-m[data-st="wait"] .ob-st::before { background: none; border: 1.5px solid currentColor; width: 5px; height: 5px; }
.ob-m[data-st="wait"] { background: transparent; border-style: dashed; }
.ob-m[data-st="done"] .ob-st { color: var(--on-stage); }
.ob-m[data-st="done"] .ob-pb i { background: var(--on-stage); }
.ob-m[data-st="hold"] { border-color: rgba(240,179,111,.45); background: rgba(168,95,12,.12); }
.ob-m[data-st="hold"] .ob-st { color: var(--warn); }
.ob-m[data-st="hold"] .ob-pb i { background: var(--warn); }

.ob-msg { display: none; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid rgba(240,179,111,.30); border-left: 3px solid var(--warn); border-radius: 6px; background: rgba(168,95,12,.10); }
.ob[data-ob-mode="risk"] .ob-msg { display: grid; animation: ob-in 320ms ease both; }
.ob-av { width: 32px; height: 32px; border-radius: 50%; background: var(--stage-accent); color: var(--stage); display: inline-grid; place-items: center; font-size: 13px; font-weight: 600; }
.ob-msg p { font-size: 14px; line-height: 1.6; color: var(--on-stage); }
.ob-msg b { display: block; font-size: 13px; font-weight: 600; color: var(--on-stage-muted); }
.ob-ship { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; padding-top: 16px; border-top: 1px solid rgba(242,243,241,.12); font-size: 13px; color: var(--on-stage-muted); }
.ob-ship b { font-size: 15px; color: var(--on-stage); margin-left: 4px; }
.ob-ship-note { margin-left: auto; font-size: 12px; }
@keyframes ob-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

#fast, #owner, #projects, #batch { scroll-margin-top: 24px; }

@media (max-width: 1199px) {
  .integrated h2 { font-size: 48px; }
  .ob { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ob-board { order: -1; }
  .ob-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 0; }
  .ob-points li { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; padding: 16px 0 0; border-top: 1px solid var(--ink); border-bottom: 0; }
  .ob-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .integrated { padding: 80px 0 64px; }
  .integrated h2 { font-size: 36px; }
  .integrated-intro { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .integrated-lead { font-size: 17px; }
}
@media (max-width: 767px) {
  .integrated h2 { font-size: 30px; }
  .ob-points { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ob-points li { padding: 14px 0; border-top: 0; border-bottom: 1px solid var(--line); grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
  .ob-points b { font-size: 17px; }
  .ob-board { padding: 16px; gap: 16px; }
  .ob-order-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ob-due { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .ob-due b { font-size: 20px; }
  .ob-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .ob-counts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ob-counts dd { font-size: 22px; }
  .ob-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ob-ship-note { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 379px) {
  .ob-board { padding: 12px; }
  .ob-m { padding: 10px 8px 8px; }
  .ob-toggle button { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ob-tbar i, .ob-pb i, .ob-m, .ob-badge { transition: none; }
  .ob[data-ob-mode="risk"] .ob-msg { animation: none; }
}
