/* Private workflow pages: local assets only, matching the PrintByLayr palette. */
.workflow { --wrap: 1280px; }
.workflow [hidden] { display: none !important; }
.workflow h1, .workflow h2, .workflow h3 { line-height: 1.2; letter-spacing: -.025em; }
.workflow h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; }
.workflow h2 { font-size: 22px; margin: 0 0 15px; }
.workflow h3 { font-size: 15px; margin: 0 0 7px; }
.workflow p { margin: 0 0 16px; }
.workflow-wrap { max-width: 1328px; margin: 0 auto; padding: 38px 24px; }
.customer-wrap { max-width: 920px; margin: 0 auto; padding: 44px 24px; }
.page-title { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.page-title p:last-child { margin: 0; }
.eyebrow { color: var(--muted); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .14em; margin-bottom: 12px !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.workflow-card { border: 1px solid var(--rule); background: #fff; padding: 28px; border-radius: 5px; margin-bottom: 20px; min-width: 0; }
.login-panel { max-width: 530px; }
.notice { background: #f9f2df; color: #634715; padding: 14px 16px; border: 1px solid #e9d7a8; border-radius: 4px; font-size: 14px; overflow-wrap: anywhere; }
.notice[data-tone="error"] { color: #862f25; background: #fff1ee; border-color: #eac2ba; }
.notice[data-tone="success"] { color: #2b633a; background: #f0f7ef; border-color: #bdd7bc; }
.notice[data-tone="info"] { color: var(--ink); background: var(--paper); border-color: var(--rule); }
.header-actions { display: flex; gap: 18px; align-items: center; }
.header-button { font: inherit; color: var(--paper); border: 1px solid #656158; border-radius: 4px; background: transparent; padding: 7px 12px; cursor: pointer; }
.header-link { color: var(--paper); font-size: 13px; }
.session-identity { font-size: 12px; color: var(--muted-dark); }
.integration-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: 5px; margin: 0 0 24px; }
.integration-strip p { padding: 15px 18px; margin: 0; font-size: 13px; }
.integration-strip p + p { border-left: 1px solid var(--rule); }
.integration-strip strong, .integration-strip span { display: block; }
.integration-strip span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.workspace-grid { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); align-items: start; gap: 24px; }
.job-inbox { padding: 22px 18px; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.section-heading h2 { margin: 0; }
.count-pill { font: 12px var(--mono); background: var(--paper-2); padding: 3px 9px; border-radius: 20px; }
.wf-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; }
.wf-field label { font-size: 13px; font-weight: 600; }
.wf-field input, .wf-field select, .wf-field textarea { width: 100%; min-width: 0; border: 1px solid var(--rule); border-radius: 4px; padding: 10px 12px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.wf-field textarea { resize: vertical; }
.workflow :focus-visible { outline: 3px solid #bc7b13; outline-offset: 3px; }
.wf-field .field-help { font-size: 12px; color: var(--muted); margin: 0; }
.job-list { list-style: none; padding: 0; margin: 20px -7px 0; }
.job-list li + li { margin-top: 6px; }
.job-select { width: 100%; padding: 14px 12px; text-align: left; font: inherit; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 4px; cursor: pointer; }
.job-select:hover { background: var(--paper); }
.job-select[aria-current="true"] { background: #fcf5e7; border-color: #d4a551; box-shadow: inset 3px 0 0 var(--amber); }
.job-select strong { font-size: 14px; display: block; line-height: 1.35; overflow-wrap: anywhere; }
.job-select .job-customer { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.job-select .job-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 9px; font-size: 11px; color: var(--muted); }
.empty-state, .empty-detail { color: var(--muted); }
.empty-state { font-size: 14px; padding: 12px 0; }
.empty-detail { padding: 44px 32px; min-height: 250px; }
.detail-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.detail-header h2 { margin: 0; overflow-wrap: anywhere; }
.reference { font-family: var(--mono); font-size: 11px; overflow-wrap: anywhere; letter-spacing: .01em; }
.detail-header .reference { color: var(--muted); margin-bottom: 10px; }
.status-pill { padding: 5px 10px; border-radius: 3px; background: var(--paper-2); color: #565247; font-size: 11px; font-weight: 600; white-space: nowrap; }
.status-pill[data-status="delivered"] { background: #e7f2e6; color: #30613d; }
.status-pill[data-status="quote_expired"], .status-pill[data-status="revision_requested"] { background: #fff0db; color: #8a5718; }
.status-pill[data-status="printing"], .status-pill[data-status="ready"], .status-pill[data-status="quoted"] { background: #fff0ce; color: #775014; }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; padding: 0; margin: 22px 0; }
.facts-grid > div { min-width: 0; }
.facts-grid dt { color: var(--muted); font-size: 11px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .065em; }
.facts-grid dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.notes-block { border-top: 1px solid var(--rule); padding-top: 18px; margin: 20px 0; }
.notes-block p, .preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.toolbar .btn { font-size: 12px; padding: 9px 12px; }
.request-details { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.workflow summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.workflow details[open] > summary { margin-bottom: 18px; }
.action-card { border-top: 3px solid var(--amber); }
.action-form { margin-top: 24px; }
.check-row { display: flex; align-items: flex-start; gap: 11px; margin: 20px 0; font-size: 13px; cursor: pointer; }
.check-row input { flex: 0 0 auto; margin: 3px 0 0; width: 17px; height: 17px; accent-color: var(--ink); }
.timeline { margin: 22px 0 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 23px 24px; border-left: 1px solid var(--rule); margin-left: 5px; }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before { content: ''; position: absolute; left: -4px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.timeline strong { display: block; font-size: 14px; font-weight: 600; }
.timeline time { color: var(--muted); font-size: 11px; display: block; margin: 4px 0; }
.timeline p { margin: 6px 0 0; font-size: 13px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.workflow-footer { text-align: center; font-size: 11px; color: var(--muted); padding: 18px 24px 40px; }
.skip-link { position: absolute; left: 12px; top: -100px; padding: 12px; background: #fff; z-index: 20; }
.skip-link:focus { top: 10px; }
.private-note { color: var(--muted); font-size: 12px; margin-top: 26px !important; }
.status-explanation { color: var(--muted); max-width: 66ch; font-size: 15px; }
.job-progress { display: grid; grid-template-columns: repeat(5, 1fr); padding: 0; list-style: none; margin: 28px 0; gap: 4px; }
.job-progress li { padding-top: 10px; border-top: 3px solid var(--rule); color: var(--muted); font-size: 11px; }
.job-progress li[data-state="done"] { border-color: var(--ink); color: var(--ink); }
.job-progress li[data-state="current"] { border-color: var(--amber); color: var(--ink); font-weight: 700; }
.quote-price { display: flex; align-items: baseline; gap: 12px; margin: 20px 0; }
.quote-price strong { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.04em; }
.quote-price span { font-size: 12px; color: var(--muted); }
.print-ticket { display: none; }
@media (max-width: 900px) {
  .workspace-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 16px; }
  .workflow-card { padding: 22px; }
  .job-inbox { padding: 18px 12px; }
  .integration-strip p { padding: 13px; }
  .detail-header { flex-wrap: wrap; }
  .session-identity { display: none; }
}
@media (max-width: 700px) {
  .workflow-wrap, .customer-wrap { padding: 28px 16px; }
  .page-title { align-items: start; flex-direction: column; }
  .workspace-grid { display: block; }
  .job-inbox { position: static; max-height: none; }
  .job-list { max-height: 300px; overflow: auto; }
  .integration-strip { grid-template-columns: 1fr; }
  .integration-strip p + p { border-left: 0; border-top: 1px solid var(--rule); }
  .workflow-card { padding: 22px 20px; }
  .facts-grid { gap: 15px; }
  .quote-price { flex-wrap: wrap; gap: 4px 12px; }
  .brand .sub { display: none; }
  .workflow .site-head .wrap { padding: 0 16px; }
}
@media print {
  @page { margin: 15mm; }
  body.studio > :not(.print-ticket) { display: none !important; }
  .studio .print-ticket { display: block; background: #fff; color: #000; font-size: 12px; }
  .print-ticket h1 { font-size: 26px; }
  .print-ticket h2 { font-size: 18px; margin-top: 24px; }
  .print-ticket .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
  .print-ticket .facts-grid dd, .print-ticket p { font-size: 12px; }
  .print-ticket .reference { font-size: 11px; }
  .print-ticket .facts-grid > div { break-inside: avoid; }
  .print-ticket .preserve-lines { white-space: pre-wrap; }
  .customer-job .site-head, .customer-job .workflow-footer, .customer-job form, .customer-job button, .customer-job #changeCard, .customer-job .private-note { display: none; }
  .customer-job .workflow-card { break-inside: avoid; }
}
