/* Concept 01: a tactile, local email-to-quote workbench. */
.workbench-section { padding-block: 72px 68px; scroll-margin-top: 24px; }
.wb-intro { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 32px; }
.wb-eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .065em; font-weight: 750; text-transform: uppercase; margin: 0 0 12px; }
.wb-intro h2 { font: 740 clamp(34px,4.1vw,57px)/1.08 var(--sans); letter-spacing: -.055em; margin: 0; }
.wb-intro > p { color: var(--muted); max-width: 34ch; margin: 0 0 3px; font-size: 17px; line-height: 1.65; }
.workbench { background: #eeebf8; border: 1px solid #e6e1f3; border-radius: 20px; padding: 26px 32px 20px; }
.workbench [hidden] { display: none !important; }
.wb-topline { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: #625d78; }
.wb-kicker { text-transform: uppercase; font-weight: 750; letter-spacing: .11em; color: var(--dark); }
.wb-desk { display: grid; grid-template-columns: minmax(0,1fr) 100px minmax(0,1.14fr); align-items: center; padding: 44px 12px 35px; }
.wb-paper { position: relative; background: #fffefb; border: 1px solid white; border-radius: 11px; padding: 24px 25px; box-shadow: 0 2px 0 #ddd8e4, 0 6px 0 -2px #f4f1f5, 0 8px 0 -2px #d9d3e1, 0 22px 28px -19px #655a8a75; min-width: 0; transition: transform .45s ease; }
.wb-email { transform: rotate(-2deg); }
.wb-quote { transform: rotate(1.4deg); min-height: 427px; }
.workbench[data-phase="reading"] .wb-email, .workbench[data-phase="matching"] .wb-quote, .wb-paper:focus-within { transform: rotate(0); }
.wb-paper-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 13px; margin-bottom: 15px; border-bottom: 1px solid #e5e1ea; color: #686273; font-size: 11px; font-weight: 650; }
.wb-pill { background: #f0edf7; color: var(--accent); border-radius: 4px; padding: 3px 7px; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.wb-paper h3 { margin: 0 0 4px; font-size: clamp(22px,2vw,29px); line-height: 1.2; letter-spacing: -.045em; }
.wb-from { margin: 0 0 23px; font-size: 12px; color: #6b6576; }
.wb-email-body { font-size: 14px; line-height: 1.65; }
.wb-email-body p { margin: 0 0 13px; }
.wb-email-body ul { list-style: none; padding: 0; margin: 0 -7px 18px; }
.wb-email-body li { padding: 5px 7px; border-radius: 5px; margin: 3px 0; transition: background .25s, color .25s; }
.wb-email-body strong { font-weight: 650; }
.wb-email-body li.is-active, .wb-email-body li.is-read, .wb-email-body li.is-matched { background: #eae4ff; color: #34246e; }
.wb-email-body li.is-flagged, .wb-email-body li[data-request="handle"].is-active { background: #fae8ba; color: #604414; }
.wb-source-note { border-top: 1px solid #e5e1ea; margin: 21px 0 0; padding-top: 13px; font-size: 11px; color: #746c81; }
.wb-connection { text-align: center; position: relative; z-index: 1; }
.wb-connection img { width: 57px; height: 57px; display: block; margin: auto; filter: drop-shadow(0 6px 5px #493ac423); transition: transform .4s; }
.wb-connection span { font-size: 10px; font-weight: 800; letter-spacing: .04em; display: block; margin-top: 9px; color: var(--accent); }
.workbench[data-phase="reading"] .wb-connection img, .workbench[data-phase="matching"] .wb-connection img { transform: translateY(-5px) rotate(-7deg); }
.wb-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 272px; padding: 20px 15px; text-align: center; background: #f7f5fa; border-radius: 6px; border: 1px dashed #d7cfe7; }
.wb-empty p { font-size: 19px; font-weight: 650; margin: 20px 0 7px; letter-spacing: -.035em; }
.wb-empty > span { max-width: 25ch; color: #746c81; font-size: 12px; line-height: 1.7; }
.wb-table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.wb-table thead th { text-align: left; font-size: 10px; font-weight: 650; color: #6b6576; padding: 0 0 9px; border-bottom: 1px solid #e2deea; }
.wb-table thead th:nth-child(2) { width: 58px; text-align: center; }
.wb-table thead th:last-child { width: 77px; text-align: right; }
.wb-table td, .wb-table tbody th { border-bottom: 1px solid #ebe7ef; padding: 11px 0; vertical-align: middle; }
.wb-table tbody th { text-align: left; font-weight: 650; padding-right: 9px; line-height: 1.4; }
.wb-table tbody th small, .wb-table .wb-item-code, .wb-table .wb-source, .wb-table .wb-unit-price { display: block; font-size: 10px; font-weight: 500; color: #746c81; margin-top: 3px; }
.wb-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.wb-table input { display: block; width: 49px; min-height: 37px; margin: auto; text-align: center; padding: 4px 1px 4px 5px; border: 1px solid #d7d1e0; border-radius: 4px; background: #fff; font-size: 12px; color: var(--ink); }
.wb-table input:focus { border-color: var(--accent); }
.wb-table input[aria-invalid="true"] { border-color: var(--error); background: #fff1f0; }
.wb-table .wb-flag, .wb-row[data-item="handle"] .wb-needs-review { color: #704c0e; background: #fae8ba; border-radius: 3px; padding: 2px 5px; display: inline-block; font-size: 10px; font-weight: 650; }
.wb-quantity-error, .wb-error { font-size: 10px; color: var(--error); line-height: 1.3; display: block; max-width: 65px; margin-top: 4px; }
.wb-row { animation: wb-enter .35s ease both; }
.wb-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 11px; font-weight: 650; }
.wb-sum strong { font-size: 25px; line-height: 1.1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wb-total-note { text-align: right; margin: 7px 0 14px; font-size: 10px; color: #746c81; }
.wb-draft-foot { border-top: 1px solid #e5e1ea; padding-top: 11px; }
.wb-draft-foot p { font-size: 11px; line-height: 1.5; color: #6b6576; margin: 0; }
.wb-draft-foot .wb-text-button { font-size: 11px; margin-top: 2px; min-height: 32px; }
.wb-review { background: #fff7e1; border: 1px solid #ecd9a5; border-radius: 9px; padding: 21px 24px; display: grid; grid-template-columns: 1fr 1.65fr; gap: 28px; margin: 7px 0 26px; animation: wb-enter .35s ease both; }
.wb-review .wb-eyebrow { color: #775113; font-size: 10px; margin-bottom: 7px; }
.wb-review h4 { font-size: 21px; line-height: 1.2; margin: 0 0 7px; letter-spacing: -.035em; }
.wb-review-copy > p { font-size: 12px; line-height: 1.6; margin: 0; color: #705b36; max-width: 37ch; }
#wb-review-form { display: flex; gap: 12px; align-items: center; }
#wb-review-form fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex: 1; min-width: 0; }
.wb-choice { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid #d7c69e; border-radius: 6px; background: #fffdf5; cursor: pointer; flex: 1; }
.wb-choice:hover { border-color: #7e6c47; }
.wb-choice:has(input:checked) { border-color: var(--accent); background: #f1edff; }
.wb-choice input { accent-color: var(--accent); margin: 3px 0 0; width: 15px; height: 15px; flex-shrink: 0; }
.wb-choice strong { font-size: 12px; }
.wb-choice span span, .wb-choice small { display: block; font-size: 10px; line-height: 1.5; color: #746343; margin-top: 2px; }
.wb-choice small { font-weight: 700; }
.wb-confirm { color: #fff; background: var(--dark); border-color: var(--dark); font-size: 12px; padding: 9px 13px; min-height: 42px; white-space: nowrap; }
.wb-confirm:hover { background: var(--accent); color: white; }
.wb-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 6px 0 26px; }
.wb-action-group { display: flex; flex-wrap: wrap; gap: 7px 21px; align-items: center; }
.wb-action-group .btn { min-width: 164px; }
.wb-text-button { background: none; border: 0; padding: 7px 0; font-weight: 650; font-size: 13px; color: var(--dark); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #a69cbc; min-height: 40px; }
.wb-text-button:hover { color: var(--accent); }
.wb-text-button:disabled { opacity: .4; cursor: default; }
.wb-human-note { background: var(--signal); border-radius: 6px; padding: 9px 15px; margin: 0; font-size: 12px; font-weight: 700; white-space: nowrap; }
.wb-steps { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; padding: 0; margin: 0; }
.wb-steps li { display: flex; align-items: center; gap: 10px; border-top: 2px solid #d6cfe6; padding-top: 11px; font-size: 12px; color: #7b728f; font-weight: 600; transition: border-color .25s, color .25s; }
.wb-steps li > span { font-size: 10px; font-family: var(--mono); opacity: .8; }
.wb-steps li.is-active, .wb-steps li.is-complete, .wb-steps li[aria-current="step"] { border-color: var(--accent); color: var(--accent); }
.wb-status { font-size: 11px; color: #6b627f; margin: 13px 0 0; min-height: 18px; }
.wb-below { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 17px; }
.wb-below p { font-size: 11px; color: var(--muted); margin: 0; }
.wb-below a { font-size: 12px; flex-shrink: 0; }
@keyframes wb-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width:1100px) {
 .wb-desk { grid-template-columns: minmax(0,1fr) 70px minmax(0,1.15fr); padding-inline: 0; }
 .wb-paper { padding: 21px 20px; }
 .wb-connection img { width: 47px; height: 47px; }
 .wb-review { grid-template-columns: 1fr 1.4fr; gap: 20px; padding: 20px; }
 #wb-review-form { align-items: stretch; flex-direction: column; }
 .wb-confirm { align-self: flex-start; }
}
@media (max-width:900px) {
 .workbench-section { padding-block: 40px; }
 .wb-intro { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 25px; }
 .wb-intro h2 { font-size: 40px; }
 .wb-intro > p { font-size: 15px; max-width: 43ch; }
 .workbench { padding: 21px 21px 18px; border-radius: 14px; }
 .wb-topline { font-size: 10px; flex-wrap: wrap; gap: 7px 20px; }
 .wb-desk { grid-template-columns: 1fr; padding-block: 28px 24px; gap: 18px; }
 .wb-paper { padding: 22px; }
 .wb-email { transform: rotate(-1deg); }
 .wb-quote { transform: rotate(.7deg); min-height: 405px; }
 .wb-connection { display: flex; align-items: center; gap: 9px; justify-content: center; }
 .wb-connection img { width: 36px; height: 36px; margin: 0; }
 .wb-connection span { margin: 0; }
 .wb-email-body { font-size: 14px; }
 .wb-from { margin-bottom: 19px; }
 .wb-review { grid-template-columns: 1fr; gap: 16px; margin-top: 0; padding: 19px 16px; }
 .wb-review-copy > p { max-width: none; }
 .wb-controls { flex-direction: column; align-items: stretch; margin-top: 3px; gap: 14px; }
 .wb-human-note { align-self: flex-start; }
 .wb-action-group { gap: 6px 19px; }
 .wb-steps { gap: 10px; }
 .wb-steps li { font-size: 10px; line-height: 1.4; gap: 5px; align-items: flex-start; }
 .wb-steps li > span { font-size: 9px; }
 .wb-below { flex-direction: column; gap: 12px; }
}
@media (max-width:380px) {
 .workbench { padding-inline: 16px; }
 .wb-paper { padding: 17px; }
 .wb-table thead th:nth-child(2) { width: 46px; }
 .wb-table thead th:last-child { width: 65px; }
 .wb-table input { width: 40px; }
 .wb-choice { padding: 10px 8px; gap: 6px; }
 .wb-intro h2 { font-size: 35px; }
}
@media (prefers-reduced-motion:reduce) { .wb-paper, .wb-row, .wb-review, .wb-connection img { animation: none !important; transition: none !important; } }

/* Keep catalog facts compact and the original request easy to trace. */
.wb-item-meta { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-top: 3px; }
.wb-table .wb-item-meta small { margin-top: 0; }
.wb-table .wb-source { font-size: 10px; margin-top: 5px; line-height: 1.45; }
.wb-row.is-unresolved .wb-item-name { color: #684812; }
.wb-paper { scroll-margin-top: 24px; }
@media (min-width: 901px) and (max-width: 1100px) { .workbench { padding-inline: 24px; } .wb-desk { grid-template-columns: minmax(0,1fr) 60px minmax(0,1.2fr); } }
