.reception-statusbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 14px;
}

.reception-stat {
  min-width: 0;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
}

.reception-stat:last-child { border-right: 0; }
.reception-stat span { display: block; color: var(--muted); font-size: .74rem; }
.reception-stat strong { display: block; margin-top: 4px; font-size: 1.12rem; }

.reception-workspace {
  height: calc(100vh - 165px);
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(210px, .72fr) minmax(320px, 1.15fr) minmax(340px, 1.2fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.reception-column { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.reception-column + .reception-column { border-left: 1px solid var(--line); }
.reception-column-head { min-height: 54px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.reception-column-head strong { display: block; font-size: .88rem; }
.reception-column-head span { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; }
.conversation-message-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.conversation-message-head > div:first-child { min-width: 0; }
.conversation-takeover-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.conversation-takeover-actions .reception-badge { margin: 0; white-space: nowrap; }
.conversation-takeover-actions .pill { min-height: 30px; padding: 0 9px; font-size: .68rem; white-space: nowrap; }
.reception-scroll { min-height: 0; overflow: auto; }

.conversation-row,
.order-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.conversation-row:hover,
.conversation-row.active,
.order-row:hover,
.order-row.active { background: #f6f5ff; }
.row-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .84rem; font-weight: 800; }
.row-source { margin-top: 4px; color: var(--muted); font-size: .72rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-preview { margin-top: 5px; color: var(--muted); font-size: .75rem; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.message-stream { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.message-timeline { flex: 1 1 auto; min-height: 0; padding: 16px; overflow: auto; overscroll-behavior: contain; }
.conversation-history-section { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid #d7dde4; }
.conversation-history-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: #596675; }
.conversation-history-heading strong { font-size: .7rem; }
.conversation-history-heading span { font-size: .62rem; }
.conversation-history-drawer { margin-bottom: 6px; border: 1px solid #d7dde4; border-radius: 6px; background: #edf1f4; overflow: hidden; }
.conversation-history-drawer > summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 11px; color: #344150; cursor: pointer; list-style: none; }
.conversation-history-drawer > summary::-webkit-details-marker { display: none; }
.conversation-history-drawer > summary::before { content: "›"; flex: 0 0 auto; color: #667688; font-size: 1rem; transform: rotate(0deg); transition: transform 120ms ease; }
.conversation-history-drawer[open] > summary::before { transform: rotate(90deg); }
.conversation-history-drawer > summary > span { min-width: 0; display: grid; gap: 2px; margin-right: auto; }
.conversation-history-drawer > summary strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.conversation-history-drawer > summary small,
.conversation-history-drawer > summary time { color: #758190; font-size: .6rem; }
.conversation-history-drawer > summary time { flex: 0 0 auto; }
.conversation-history-messages { padding: 13px 12px 2px; border-top: 1px solid #d7dde4; background: #f8fafb; }
.conversation-history-messages .message-bubble { opacity: .92; }
.message-bubble { max-width: 88%; margin-bottom: 14px; }
.message-bubble.outbound { margin-left: auto; text-align: right; }
.message-bubble.outbound .message-content { text-align: left; border-radius: 10px 4px 10px 10px; background: #e8f7ee; }
.message-bubble.outbound .message-images { justify-content: end; }
.message-meta { margin-bottom: 5px; color: var(--muted); font-size: .7rem; }
.message-content { display: inline-block; padding: 9px 11px; border-radius: 4px 10px 10px 10px; background: #f1f1f4; font-size: .84rem; line-height: 1.6; white-space: pre-wrap; }
.message-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 7px; }
.message-images img { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 6px; object-fit: cover; cursor: zoom-in; }
.message-image-card { margin: 0; text-align: left; }
.message-image-card figcaption { margin-top: 4px; color: var(--muted); font-size: .66rem; line-height: 1.35; }
.message-file { min-height: 72px; display: grid; align-content: center; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-decoration: none; overflow: hidden; }
.message-file strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .74rem; }
.message-file span { color: var(--muted); font-size: .68rem; }
.message-status { margin-top: 5px; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.message-status.error { color: #9d3034; }
.message-ingest-error { display: flex; align-items: center; gap: 8px; margin-top: 7px; padding: 8px 10px; border-left: 3px solid #c7373c; background: #fff5f5; color: #9d3034; font-size: .7rem; }
.reply-composer { position: relative; z-index: 2; flex: 0 0 auto; padding: 10px; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -5px 14px rgba(24, 27, 34, .05); }
.reply-composer.manual-active { border-top-color: #e4b65b; background: #fffdf7; }
.reply-composer-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.reply-composer-head strong { font-size: .74rem; }
.reply-composer-head span { color: var(--muted); font-size: .64rem; text-align: right; }
.manual-takeover-note { display: grid; gap: 3px; margin-bottom: 9px; padding: 8px 10px; border-left: 3px solid #c78b23; background: #fff7e6; }
.manual-takeover-note strong { color: #7a5412; font-size: .74rem; }
.manual-takeover-note span { color: #765f36; font-size: .68rem; line-height: 1.45; }
.reply-composer textarea { width: 100%; min-height: 70px; resize: vertical; border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; font: inherit; font-size: .82rem; line-height: 1.5; }
.reply-composer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.reply-composer-actions span { color: var(--muted); font-size: .68rem; line-height: 1.4; }
.reply-preview-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
.reply-preview-list figure { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fafafa; }
.reply-preview-list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.reply-preview-list figcaption { padding: 4px 6px; color: var(--muted); font-size: .62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-preview-list button { position: absolute; top: 4px; right: 4px; min-height: 22px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.92); font-size: .62rem; }

.order-body { padding: 14px; }
.order-section { padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-section:first-child { padding-top: 0; }
.order-section:last-child { border-bottom: 0; }
.order-label { margin-bottom: 6px; color: var(--muted); font-size: .7rem; font-weight: 800; }
.order-copy { font-size: .83rem; line-height: 1.6; white-space: pre-wrap; }
.order-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.reception-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; background: #f0eff5; color: #555861; font-size: .68rem; font-weight: 800; }
.reception-badge.urgent { background: #fff0f0; color: #c7373c; }
.reception-badge.ready { background: #e9f8ef; color: #28784a; }
.reception-badge.human { background: #fff5df; color: #986315; }
.capability-execution { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 14px; border: 1px solid #efd39c; border-left: 3px solid #f59e0b; border-radius: 6px; background: #fffaf0; }
.capability-execution.running { border-color: #b8cffd; border-left-color: #2563eb; background: #f5f8ff; }
.capability-execution.completed { border-color: #a9dec6; border-left-color: #16a36a; background: #f3fbf7; }
.capability-execution.failed { border-color: #efb5b5; border-left-color: #dc2626; background: #fff6f6; }
.capability-execution-main { min-width: 0; }
.capability-execution-main > strong { display: inline-block; margin-right: 10px; color: var(--ink); }
.capability-execution-main > span { color: var(--muted); font-size: .68rem; }
.capability-execution-main p { margin: 5px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.capability-execution-main p b { color: #a85b00; }
.capability-execution-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; }
.capability-execution-actions span { width: 100%; color: var(--muted); font-size: .65rem; text-align: right; }
.capability-execution .capability-error { color: #b42318; font-weight: 700; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.order-actions .pill, .order-actions .dark { min-height: 32px; font-size: .76rem; }
.order-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.parameter-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); background: #fafafd; }
.parameter-summary > div { min-width: 0; display: grid; gap: 3px; }
.parameter-summary span, .parameter-summary small { color: var(--muted); font-size: .62rem; }
.parameter-summary strong { overflow: hidden; font-size: .74rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.parameter-summary button { flex: 0 0 auto; }
.parameter-confirm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; padding: 7px 0 2px; }
.parameter-confirm-head strong { color: #865d18; font-size: .72rem; }
.parameter-confirm-head span { color: var(--muted); font-size: .62rem; }
.parameter-field.needs-confirmation { padding: 7px 8px; border-left: 3px solid #c78b23; background: #fff8e8; }
.parameter-disclosure:not(.show-all-parameters) .parameter-field.confirmed-field { display: none !important; }
.parameter-disclosure:not(.has-confirmations):not(.show-all-parameters) > .order-actions { display: none; }
.order-edit-grid label { margin: 0; color: var(--muted); font-size: .68rem; }
.order-edit-grid input, .order-edit-grid select { height: 34px; margin-top: 4px; border-radius: 7px; font-size: .76rem; }
.order-edit-full { grid-column: 1 / -1; }
.order-check { display: flex !important; align-items: center; gap: 8px; min-height: 34px; padding-top: 18px; }
.order-check input { width: 17px; height: 17px; margin: 0; }
.project-link-row { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.project-link-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .72rem; }
.order-version-list, .status-history { display: grid; gap: 1px; }
.order-record-drawer { min-width: 0; }
.order-record-drawer > summary { padding: 8px 0; color: var(--muted); font-size: .7rem; font-weight: 800; cursor: pointer; }
.order-record-drawer[open] > summary { color: var(--text); }
.order-version-row { display: flex; align-items: center; gap: 8px; background: #f7f7f9; }
.order-version-row > a { min-width: 0; flex: 1; }
.order-version-row > button { flex: 0 0 auto; margin-right: 7px; padding: 5px 8px; font-size: .66rem; }
.order-version-list a, .status-history > div, .delivery-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px; background: #f7f7f9; text-decoration: none; font-size: .72rem; }
.order-version-list small, .status-history small { color: var(--muted); white-space: nowrap; font-size: .64rem; }
.delivery-row strong { font-size: .66rem; }
.quote-form > div:last-of-type, .delivery-form > div:last-of-type { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.quote-form label { margin: 0; }
.quote-form input, .delivery-form select { height: 34px; margin-top: 4px; border-radius: 7px; font-size: .76rem; }

.reception-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(18,18,23,.58); }
.reception-modal[hidden] { display: none; }
.reception-dialog { width: min(680px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 10px; background: #fff; }
.members-dialog { width: min(560px, 100%); }
.member-row { min-height: 50px; display: grid; grid-template-columns: minmax(0, 1fr) 76px auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .76rem; }
.member-row > div { display: grid; gap: 3px; }
.member-row > div span { color: var(--muted); font-size: .68rem; }
.member-add-form { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto; align-items: end; gap: 8px; margin-top: 16px; }
.member-add-form label { margin: 0; }
.reception-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.reception-form { padding: 18px; }
.reception-form textarea { width: 100%; min-height: 120px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; resize: vertical; }
.image-drop { margin-top: 12px; padding: 14px; border: 1px dashed #cfd0d7; border-radius: 8px; background: #fafafd; }
.intake-previews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.intake-previews img { width: 100%; aspect-ratio: 1; border-radius: 5px; object-fit: cover; }
.intake-file { min-height: 74px; display: grid; place-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; text-align: center; overflow: hidden; }
.intake-file strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: .68rem; }
.reception-empty { padding: 28px 18px; color: var(--muted); font-size: .8rem; line-height: 1.6; text-align: center; }

@media (max-width: 920px) {
  .reception-workspace { height: auto !important; min-height: 0; grid-template-columns: 220px minmax(300px, 1fr); }
  .reception-workspace > .reception-column:not(.orders) { height: min(65dvh, 560px); }
  .reception-column.orders { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); max-height: min(70vh, 720px); }
}

@media (max-width: 760px) {
  .production-folder-bar, .production-file-row { align-items: stretch; flex-direction: column; }
  .production-folder-actions, .production-download-actions { width: 100%; }
  .production-folder-actions > *, .production-download-actions > * { flex: 1; text-align: center; }
  .admin-main { padding: 14px; }
  .reception-statusbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reception-stat:nth-child(2) { border-right: 0; }
  .reception-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .reception-workspace { height: auto; min-height: 0; grid-template-columns: 1fr; overflow: visible; }
  .reception-workspace > .reception-column:not(.orders) { height: auto; }
  .reception-column + .reception-column { border-left: 0; border-top: 1px solid var(--line); }
  .reception-scroll { max-height: 420px; }
  .message-stream { height: min(70dvh, 560px); max-height: none; }
  .reply-composer-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .reply-composer-head span { text-align: left; }
  .intake-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-edit-grid { grid-template-columns: 1fr; }
  .parameter-summary, .parameter-confirm-head { align-items: flex-start; flex-direction: column; }
  .parameter-summary strong { white-space: normal; }
  .order-edit-full { grid-column: 1; }
  .member-add-form { grid-template-columns: 1fr; }
}
.reception-app-shell { min-height: 100vh; background: var(--bg); }
.reception-app-head { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.reception-app-head > div { display: grid; gap: 3px; }
.reception-app-head > div strong { font-size: .96rem; }
.reception-app-head > div span { color: var(--muted); font-size: .72rem; }
.reception-app-head nav { display: flex; align-items: center; gap: 8px; }
.store-switcher { width: auto; min-width: 160px; height: 34px; border-radius: 8px; font-size: .72rem; }
.reception-app-main { padding: 22px; }
.reception-title { margin-bottom: 14px; }
.reception-title h1 { font-size: 1.25rem; }
.reception-title p { margin: 5px 0 0; color: var(--muted); font-size: .8rem; }
.reception-access-message { width: min(520px, calc(100% - 32px)); margin: 15vh auto 0; padding: 24px; border: 1px solid var(--line); background: #fff; }
.reception-access-message p { color: var(--muted); line-height: 1.6; }
.reception-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) 190px; gap: 8px; margin-bottom: 10px; }
.reception-toolbar input, .reception-toolbar select { height: 36px; border-radius: 8px; }
.operation-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 14px; border-bottom: 1px solid var(--line); overflow: visible; }
.operation-tabs button { flex: 0 0 auto; min-height: 38px; padding: 0 13px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-size: .76rem; font-weight: 800; }
.operation-tabs button.active { border-bottom-color: #22232a; color: var(--text); }
.operation-more { position: relative; flex: 0 0 auto; }
.operation-more summary { min-height: 38px; display: flex; align-items: center; padding: 0 13px; color: var(--muted); cursor: pointer; font-size: .76rem; font-weight: 800; list-style: none; }
.operation-more summary::-webkit-details-marker { display: none; }
.operation-more summary::after { content: "▾"; margin-left: 5px; font-size: .62rem; }
.operation-more > div { position: absolute; top: 40px; right: 0; z-index: 20; min-width: 140px; display: grid; padding: 5px; border: 1px solid var(--line); background: #fff; box-shadow: 0 8px 22px rgba(20,22,28,.12); }
.operation-more > div button { width: 100%; border-bottom: 0; text-align: left; }
.operation-more > div button:hover { background: #f4f4f6; }
.operation-more:has(button.active) summary { color: var(--text); }
.operation-view { min-height: 500px; }
.operation-heading { min-height: 52px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.operation-heading h2 { margin: 0; font-size: 1.05rem; }
.operation-heading p { margin: 5px 0 0; color: var(--muted); font-size: .76rem; }
.operation-loading { padding: 60px 20px; color: var(--muted); text-align: center; }
.overview-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); background: #fff; }
.overview-metric { min-width: 0; min-height: 88px; display: grid; align-content: center; gap: 6px; padding: 12px 14px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; text-align: left; }
.overview-metric:hover { background: #f7f7f9; }
.overview-metric span { color: var(--muted); font-size: .7rem; }
.overview-metric strong { font-size: 1.35rem; }
.today-actions { margin-bottom: 14px; border: 1px solid var(--line); border-top: 3px solid #20242b; background: #fff; }
.today-actions-head { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.today-actions-head > div { display: flex; align-items: baseline; gap: 8px; }
.today-actions-head strong { font-size: .86rem; }
.today-actions-head span { color: var(--muted); font-size: .68rem; }
.today-action-list { display: grid; }
.today-action { min-width: 0; min-height: 64px; display: grid; grid-template-columns: 126px minmax(0, 1fr) 110px; align-items: center; gap: 12px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; text-align: left; }
.today-action:last-child { border-bottom: 0; }
.today-action:hover { background: #f7f7f9; }
.today-action-state { width: fit-content; padding: 4px 7px; border-radius: 4px; background: #f0f1f3; color: #555861; font-size: .64rem; font-weight: 750; }
.today-action-main { min-width: 0; display: grid; gap: 4px; }
.today-action-main strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.today-action-main small, .today-action em { overflow: hidden; color: var(--muted); font-size: .66rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.today-action em { text-align: right; }
.today-action.urgent { border-left: 3px solid #b7232a; }
.today-action.customer { border-left: 3px solid #346b8a; }
.today-action.production { border-left: 3px solid #28784a; }
.today-action.delivery { border-left: 3px solid #6d5e9b; }
.today-action.quote { border-left: 3px solid #a06d18; }
.compact-overview { margin-top: 0; }
.operation-panel { margin-top: 14px; padding: 16px; border: 1px solid var(--line); background: #fff; }
.operation-panel h3 { margin: 0 0 12px; font-size: .88rem; }
.priority-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.priority-lines button { min-height: 66px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; }
.priority-lines button:last-child { border-right: 0; }
.priority-lines strong { font-size: 1.2rem; }
.priority-lines span { color: var(--muted); font-size: .74rem; }
.order-list-filters { display: grid; grid-template-columns: minmax(180px, 1fr) repeat(4, minmax(120px, .55fr)) auto auto; gap: 7px; margin-bottom: 10px; }
.order-list-filters input, .order-list-filters select, .client-search input { height: 36px; border-radius: 7px; font-size: .73rem; }
.filter-check { min-height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 8px; white-space: nowrap; font-size: .72rem; }
.filter-check input { width: 16px; height: 16px; }
.operation-table-wrap { overflow-x: auto; }
.operation-table { width: 100%; border-collapse: collapse; font-size: .74rem; }
.operation-table th { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; white-space: nowrap; }
.operation-table td { min-width: 100px; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.operation-table tbody tr { cursor: pointer; }
.operation-table tbody tr:hover { background: #f7f7f9; }
.operation-table td:first-child { min-width: 230px; }
.operation-table td:first-child strong, .operation-table td:first-child span { display: block; }
.operation-table td:first-child span { max-width: 420px; margin-top: 3px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; }
.operation-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 12px; color: var(--muted); font-size: .7rem; }
.order-kanban { display: grid; grid-template-columns: repeat(10, 230px); gap: 8px; padding-bottom: 12px; overflow-x: auto; }
.kanban-column { min-height: 480px; border: 1px solid var(--line); background: #f6f6f8; }
.kanban-column header { height: 43px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-bottom: 1px solid var(--line); background: #fff; font-size: .74rem; }
.kanban-column header span { color: var(--muted); }
.kanban-column > button { width: calc(100% - 12px); min-height: 88px; display: grid; gap: 5px; margin: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; text-align: left; }
.kanban-column > button span, .kanban-column > button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kanban-column > button strong { font-size: .75rem; }
.kanban-column > button span { color: #555861; font-size: .68rem; }
.kanban-column > button small { color: var(--muted); font-size: .63rem; }
.kanban-empty { padding: 28px 10px; color: var(--muted); font-size: .7rem; text-align: center; }
.client-search { display: grid; grid-template-columns: minmax(220px, 420px) auto; justify-content: start; gap: 7px; margin-bottom: 10px; }
.client-list { border: 1px solid var(--line); background: #fff; }
.client-row { width: 100%; min-height: 66px; display: grid; grid-template-columns: minmax(0, 1fr) 90px 120px; align-items: center; gap: 16px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; text-align: left; }
.client-row:hover { background: #f7f7f9; }
.client-row > div { display: grid; gap: 4px; }
.client-row span, .client-row small { color: var(--muted); font-size: .68rem; }
.quality-finding-row { grid-template-columns: minmax(0, 1fr) auto; }
.quality-finding-row > button { justify-self: end; white-space: nowrap; }
.client-detail-grid { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(420px, 1.25fr); gap: 14px; }
.client-profile-form { display: grid; gap: 10px; }
.client-profile-form label, .store-settings-form label { margin: 0; color: var(--muted); font-size: .7rem; }
.client-profile-form input, .client-profile-form textarea, .store-settings-form input { margin-top: 4px; border-radius: 7px; }
.client-profile-form textarea { min-height: 90px; }
.client-history .operation-panel:first-child { margin-top: 0; }
.recent-delivery { display: block; margin-top: 12px; font-size: .72rem; }
.history-order { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; }
.history-order span { min-width: 0; display: grid; gap: 4px; }
.history-order small, .history-order em { color: var(--muted); font-size: .66rem; font-style: normal; }
.production-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.production-folder-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid #28784a; background: #f7fbf8; }
.production-folder-bar > div:first-child { min-width: 0; display: grid; gap: 4px; }
.production-folder-bar strong { font-size: .78rem; }
.production-folder-bar span { color: var(--muted); font-size: .66rem; line-height: 1.45; }
.production-folder-actions, .production-download-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.production-groups .operation-panel { margin-top: 0; }
.production-groups h3 span { float: right; color: var(--muted); }
.production-order-row { border-bottom: 1px solid var(--line); }
.production-order-heading { display: flex; align-items: center; gap: 8px; }
.production-order-main { min-width: 0; width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 4px; border: 0; border-radius: 0; background: transparent; text-align: left; }
.production-order-main:hover { background: #f7f7f9; }
.production-order-main span { min-width: 0; display: grid; gap: 4px; }
.production-order-main small, .production-order-main em { color: var(--muted); font-size: .66rem; font-style: normal; }
.production-close-order { flex: 0 0 auto; color: #8a3d32; border-color: #d9b7b0; background: #fff; }
.production-close-order:hover { border-color: #b86c5f; background: #fff7f5; }
.production-files { display: grid; gap: 7px; margin: 0 4px 11px; padding: 10px; border-left: 3px solid #20242b; background: #f7f7f9; }
.production-files-head, .production-file-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.production-file-row > div:first-child { min-width: 0; display: grid; gap: 3px; }
.production-file-destination { color: #28784a; font-size: .61rem; overflow-wrap: anywhere; }
.production-files-head > strong { font-size: .7rem; }
.production-files-head > span { color: #28784a; font-size: .63rem; font-weight: 700; }
.production-preflight { grid-column: 1 / -1; border: 1px solid #e2c98f; border-top: 3px solid #b47a18; background: #fffdf8; }
.production-zone-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding-bottom: 11px; border-bottom: 1px solid #eadcbb; }
.production-zone-head > div { min-width: 0; }
.production-zone-head span, .production-ready-heading span { display: block; margin-bottom: 3px; color: #8b5b0e; font-size: .61rem; font-weight: 700; }
.production-zone-head h3 { margin: 0 0 4px; font-size: .9rem; }
.production-zone-head h3 b { margin-left: 5px; color: var(--muted); font-weight: 600; }
.production-zone-head p, .production-ready-heading p { margin: 0; color: var(--muted); font-size: .67rem; line-height: 1.5; }
.production-zone-head > strong { flex: 0 0 auto; padding: 6px 9px; border: 1px solid #e7c77d; background: #fff5dc; color: #895b0f; font-size: .63rem; }
.production-ready-heading { grid-column: 1 / -1; padding: 13px 15px; border-left: 3px solid #28784a; background: #f3faf5; }
.production-ready-heading > div { display: grid; gap: 2px; }
.production-ready-heading span { color: #28784a; }
.production-ready-heading strong { font-size: .82rem; }
.production-order-staging { padding: 0 0 10px; }
.production-batch-workspace { display: grid; gap: 10px; margin: 0 4px 10px; padding: 12px; border: 1px solid #d9e2dc; border-left: 3px solid #3d6655; background: #fbfcfb; }
.production-batch-workspace .batch-print-head p { margin: 4px 0 0; color: var(--muted); font-size: .67rem; }
.production-workspace-role { display: inline-block; margin-left: 7px; color: #28784a; font-size: .63rem; font-weight: 700; }
.production-stage-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.production-stage-strip span { padding: 7px 8px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .64rem; font-weight: 700; text-align: center; }
.production-stage-strip span.done { border-color: #a9c9b7; background: #edf7f0; color: #24633d; }
.production-handoff { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.production-handoff > div { min-width: 0; }
.capability-execution { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-left: 3px solid #f59e0b; padding-left: 14px; }
.capability-execution.running { border-left-color: #2563eb; }
.capability-execution.completed { border-left-color: #16a36a; }
.capability-execution.failed { border-left-color: #dc2626; }
.capability-execution-main { min-width: 0; }
.capability-execution-main > strong { display: inline-block; margin-right: 10px; color: var(--ink); }
.capability-execution-main > span { color: var(--muted); font-size: 12px; }
.capability-execution-main p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.capability-execution-main p b { color: #b45309; }
.capability-execution-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }
.capability-execution-actions span { width: 100%; color: var(--muted); font-size: 12px; text-align: right; }
.capability-config { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(110px, .8fr) minmax(110px, .8fr) auto; gap: 8px; align-items: end; margin-top: 10px; }
.capability-config label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.capability-config select, .capability-config input { width: 100%; min-height: 34px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 6px 9px; }
.capability-config > span { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.capability-execution .capability-error { color: #b42318; font-weight: 700; }
.production-file-missing > button { justify-self: start; margin-top: 3px; }
.production-file-row { min-height: 44px; padding-top: 7px; border-top: 1px solid #dedee3; }
.production-file-row > div, .production-file-missing { min-width: 0; display: grid; gap: 3px; }
.production-file-row strong { overflow-wrap: anywhere; font-size: .7rem; }
.production-file-row small, .production-file-missing span { color: var(--muted); font-size: .62rem; }
.production-download { flex: 0 0 auto; min-width: 86px; text-align: center; text-decoration: none; }
.production-file-missing { padding-top: 7px; border-top: 1px solid #dedee3; }
.production-file-missing strong { color: #9a6514; font-size: .69rem; }
.fulfillment-panel { display: grid; gap: 9px; margin: 0 4px 12px; padding: 11px; border: 1px solid #d6ddd8; border-left: 3px solid #28784a; background: #fbfcfb; }
.fulfillment-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fulfillment-head > div { min-width: 0; display: grid; gap: 2px; }
.fulfillment-head strong { font-size: .75rem; }
.fulfillment-head span { color: var(--muted); font-size: .63rem; }
.fulfillment-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.fulfillment-fields label { min-width: 0; display: grid; gap: 4px; color: #62656c; font-size: .63rem; }
.fulfillment-fields label.wide { grid-column: span 2; }
.fulfillment-fields input, .fulfillment-fields select, .payment-inline input, .payment-inline select { width: 100%; min-width: 0; height: 34px; border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 0 8px; color: var(--text); }
.fulfillment-fields input:disabled, .fulfillment-fields select:disabled { background: #f1f1f3; color: #686b72; }
.fulfillment-notice { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 9px; background: #f1f5f2; color: #47534b; font-size: .66rem; line-height: 1.5; }
.fulfillment-notice span { min-width: 0; overflow-wrap: anywhere; }
.fulfillment-notice button { flex: 0 0 auto; }
.fulfillment-actions { align-items: end; }
.payment-inline { min-width: min(100%, 330px); display: grid; grid-template-columns: auto 110px 100px; align-items: center; gap: 6px; color: #62656c; font-size: .65rem; }
.settings-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(380px, 1.2fr); gap: 12px; }
.role-queue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.role-queue-grid .operation-panel { margin-top: 0; }
.role-queue-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.role-queue-head h3 { margin: 0; }
.role-queue-head span { color: var(--muted); font-size: .66rem; }
.role-queue > button { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; }
.role-queue > button:hover { background: #f7f7f9; }
.role-queue > button span { font-size: .72rem; }
.role-queue > button strong { font-size: .8rem; }
.settings-grid .operation-panel { margin-top: 0; }
.store-settings-form { display: grid; gap: 10px; }
.store-settings-form .store-workflow-switch { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; padding: 12px 0; border-block: 1px solid var(--line); cursor: pointer; }
.store-settings-form .store-workflow-switch input { appearance: none; width: 38px; height: 22px; margin: 0; padding: 0; border: 1px solid #c8ced8; border-radius: 999px; background: #dfe3e9; position: relative; transition: background .16s ease, border-color .16s ease; }
.store-settings-form .store-workflow-switch input::after { content: ""; position: absolute; width: 16px; height: 16px; top: 2px; left: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(15 23 42 / 22%); transition: transform .16s ease; }
.store-settings-form .store-workflow-switch input:checked { border-color: #08785c; background: #0a9a73; }
.store-settings-form .store-workflow-switch input:checked::after { transform: translateX(16px); }
.store-settings-form .store-workflow-switch input:disabled { cursor: not-allowed; opacity: .55; }
.store-settings-form .store-workflow-switch span { display: grid; gap: 3px; }
.store-settings-form .store-workflow-switch strong { color: var(--text); font-size: .78rem; }
.store-settings-form .store-workflow-switch small { color: var(--muted); font-size: .68rem; line-height: 1.45; }
.quote-form > div.quote-summary { display: flex; grid-template-columns: none; align-items: stretch; flex-wrap: wrap; gap: 7px; margin-top: 8px; color: var(--muted); font-size: .7rem; }
.quote-summary > span, .quote-summary > textarea, .quote-summary > .order-actions { flex-basis: 100%; }
.quote-summary textarea { width: 100%; min-width: 0; min-height: 112px; resize: vertical; border: 1px solid var(--line); border-radius: 7px; padding: 9px 10px; background: #fff; color: var(--ink); font: inherit; line-height: 1.55; }
.quote-summary small { flex-basis: 100%; color: #865d18; }
.proof-board { display: grid; gap: 12px; }
.proof-board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.proof-board-head > div:first-child { display: grid; gap: 3px; }
.proof-board-head .order-label { margin: 0; }
.proof-board-head strong { font-size: .82rem; }
.proof-board-head span { color: var(--muted); font-size: .68rem; }
.proof-state { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: #fff0f0; color: #b7232a; font-size: .66rem; font-weight: 800; }
.proof-state.approved { background: #e9f8ef; color: #28784a; }
.proof-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, .8fr); gap: 12px; align-items: start; }
.proof-visual { min-width: 0; display: grid; gap: 7px; }
.proof-image-frame { position: relative; min-height: 180px; display: grid; place-items: center; overflow: hidden; border: 1px solid #d8d8de; border-radius: 6px; background: #ececf0; }
.proof-image-frame img { display: block; width: 100%; max-height: 430px; object-fit: contain; background: #fff; }
.proof-raw-sheet { position: relative; width: 100%; min-width: 0; padding: 56px 16px 16px; background: #f7f7f9; }
.proof-raw-head { position: absolute; top: 12px; right: 14px; left: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #20242b; font-size: .7rem; }
.proof-raw-head span { padding: 5px 8px; border-radius: 3px; background: #b7232a; color: #fff; font-weight: 800; }
.proof-artwork { min-width: 0; overflow: hidden; background: #fff; }
.proof-artwork img { width: 100%; max-height: 330px; }
.proof-watermark { position: absolute; padding: 6px 9px; color: #fff; font-size: .68rem; font-weight: 900; pointer-events: none; }
.proof-watermark.top { top: 8px; left: 8px; background: rgba(22,22,28,.76); }
.proof-watermark.bottom { right: 8px; bottom: 8px; background: rgba(183,35,42,.82); }
.proof-version-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 5px; }
.proof-version-strip button { min-width: 0; display: grid; gap: 2px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-align: left; }
.proof-version-strip button.active { border-color: #26262d; background: #f1f1f4; }
.proof-version-strip strong { font-size: .68rem; }
.proof-version-strip small { overflow: hidden; color: var(--muted); font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }
.proof-controls { min-width: 0; display: grid; gap: 9px; }
.proof-primary-actions, .proof-decision-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.proof-primary-actions .dark { grid-column: 1 / -1; min-height: 38px; }
.proof-primary-actions button, .proof-decision-actions button, .proof-send-step button { min-height: 34px; }
.proof-message-copy { display: grid; gap: 4px; margin: 0; color: var(--muted); font-size: .66rem; }
.proof-message-copy textarea { min-height: 78px; padding: 8px; border-radius: 6px; background: #fafafd; color: var(--text); font-size: .68rem; line-height: 1.5; resize: vertical; }
.proof-clipboard-check { display: flex; align-items: center; gap: 7px; }
.proof-clipboard-check img { width: 56px; height: 40px; border: 1px solid var(--line); border-radius: 4px; object-fit: contain; }
.proof-feedback { min-height: 34px; padding: 7px 8px; border-left: 3px solid #999ba3; background: #f7f7f9; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.proof-feedback[data-tone="success"] { border-color: #28784a; background: #eef9f2; color: #236b43; }
.proof-feedback[data-tone="warning"] { border-color: #b57a16; background: #fff8e8; color: #865d18; }
.proof-feedback[data-tone="error"] { border-color: #c7373c; background: #fff2f2; color: #9d3034; }
.proof-send-step { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px; background: #f7f7f9; }
.proof-send-step span, .proof-history-notice { color: var(--muted); font-size: .64rem; line-height: 1.45; }
.proof-history-notice { padding: 10px; border-left: 3px solid #999ba3; background: #f7f7f9; }
.stage-action-bar { position: sticky; bottom: 0; z-index: 3; margin: 0 -14px -14px; padding: 10px 14px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
.proof-awaiting-submit { display: grid; gap: 7px; }
.proof-awaiting-submit .order-label { margin: 0; }
.proof-awaiting-submit strong { font-size: .82rem; }
.proof-awaiting-submit p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.55; }
.proof-awaiting-submit a { width: fit-content; margin-top: 3px; }
.design-review-feedback { display: grid; gap: 5px; margin: 0; color: var(--muted); font-size: .7rem; }
.design-review-feedback textarea { min-height: 70px; border-radius: 7px; }
.design-review-history { display: grid; gap: 1px; }
.design-review-history > div { display: grid; gap: 3px; padding: 7px 8px; background: #f7f7f9; font-size: .68rem; }
.design-review-history small { color: var(--muted); line-height: 1.45; }
.channel-settings > p { margin: -4px 0 12px; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.channel-row { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.channel-row > div { display: grid; gap: 3px; }
.channel-row span, .channel-row small { color: var(--muted); font-size: .66rem; }
.channel-row em { color: var(--muted); font-size: .68rem; font-style: normal; }
.channel-row em.available { color: #28784a; }
.ilink-qr-dialog { width: min(420px, 100%); }
.ilink-qr-body { display: grid; justify-items: center; gap: 14px; padding: 24px; text-align: center; }
.ilink-qr-body img { width: min(320px, 78vw); height: min(320px, 78vw); object-fit: contain; border: 1px solid var(--line); background: #fff; }
.ilink-qr-body strong { min-height: 22px; font-size: .86rem; }
.ilink-qr-customer-summary { color: var(--muted); font-size: .74rem; }
.ilink-qr-loading { display: grid; place-items: center; width: min(320px, 78vw); min-height: 180px; color: var(--muted); background: #f7f7f9; }
.ilink-qr-loading[hidden] { display: none; }
.channel-actions { display: flex !important; grid-auto-flow: column; align-items: center; justify-content: end; gap: 7px; }
.customer-robot-row { grid-template-columns: minmax(0, 1fr) 90px minmax(300px, auto); }
.customer-robot-row .channel-actions { flex-wrap: wrap; }
.customer-robot-create-form { display: grid; gap: 10px; margin-bottom: 14px; padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.customer-profile-fields { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(130px, .8fr) minmax(150px, .8fr); gap: 8px; }
.customer-profile-fields label { color: var(--muted); font-size: .7rem; }
.customer-profile-fields input { width: 100%; height: 38px; margin-top: 4px; border-radius: 7px; }
.customer-registration-actions { display: flex; align-items: center; gap: 8px; }
.customer-registration-panel .operation-heading { margin-bottom: 4px; }
.batch-print-panel { display: grid; gap: 9px; border-left: 3px solid #3d6655; }
.batch-print-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.batch-print-head .reception-badge { flex: 0 0 auto; white-space: nowrap; }
.batch-print-head strong { font-size: .82rem; }
.batch-print-head p { margin: 4px 0 0; }
.batch-field-map { display: flex; flex-wrap: wrap; gap: 5px; }
.batch-field-map span { padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; background: #f7f7f9; color: #555861; font-size: .64rem; }
.batch-production-settings { display: grid; gap: 8px; padding: 10px 0; border-block: 1px solid var(--line); }
.batch-production-settings > label { display: grid; gap: 5px; color: #585b62; font-size: .68rem; }
.batch-production-settings select,
.batch-production-settings input { width: 100%; min-width: 0; height: 34px; border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 0 9px; color: var(--text); }
.batch-mode-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.batch-mode-fields[hidden] { display: none; }
.batch-mode-fields label { display: grid; gap: 4px; color: #666970; font-size: .64rem; }
.batch-mode-fields .note { grid-column: 1 / -1; margin: 0; }
.certificate-template-picker { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, 1fr) 190px; gap: 8px 14px; align-items: start; padding: 10px; border: 1px solid var(--line); background: #f8f9fa; }
.certificate-template-picker label { display: grid; gap: 5px; }
.certificate-template-picker img { grid-column: 2; grid-row: 1 / span 2; width: 190px; height: 134px; object-fit: contain; border: 1px solid #d7d9de; background: #eef0f3; }
.certificate-template-picker > span { color: #59606a; font-size: .65rem; font-weight: 700; }
.certificate-template-picker .note { grid-column: 1; }
.batch-mode-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.batch-mode-summary strong { font-size: .74rem; }
.batch-mode-summary span { color: #696c73; font-size: .64rem; text-align: right; }
.batch-error { padding: 8px 9px; border-left: 3px solid #c7373c; background: #fff2f2; color: #9d3034; font-size: .68rem; line-height: 1.45; }
.channel-device-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px 0 10px; border-bottom: 1px solid var(--line); }
.channel-device-list span { padding: 4px 7px; border-radius: 5px; background: #f4f4f6; color: #555861; font-size: .64rem; }
.reception-capacity-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; }
.reception-capacity-grid > div { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.reception-capacity-grid span, .reception-capacity-grid small { display: block; color: #686b73; font-size: .64rem; }
.reception-capacity-grid strong { display: block; margin: 4px 0 2px; font-size: 1.15rem; }
.reception-capacity-grid > .warning { border-color: #d8a84f; background: #fff9ed; }
.capacity-warning { margin: 8px 0 12px; padding: 9px 10px; border-left: 3px solid #c98a23; background: #fff9ed; color: #71501d; font-size: .68rem; line-height: 1.5; }

@media (max-width: 760px) {
  .reception-app-head { align-items: flex-start; padding: 12px 14px; }
  .reception-app-head nav { flex-wrap: wrap; justify-content: flex-end; }
  .reception-app-main { padding: 14px; }
  .reception-toolbar { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operation-tabs { overflow: visible; flex-wrap: wrap; }
  .operation-more > div { right: auto; left: 0; }
  .today-action { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .today-action-state { grid-column: 1; }
  .today-action-main { grid-column: 1 / -1; grid-row: 2; }
  .today-action em { grid-column: 2; grid-row: 1; }
  .capability-execution { align-items: stretch; flex-direction: column; gap: 10px; }
  .capability-execution-actions { justify-content: stretch; }
  .capability-execution-actions button, .capability-execution-actions a { flex: 1 1 auto; }
  .capability-execution-actions span { text-align: left; }
  .priority-lines, .production-groups, .settings-grid, .client-detail-grid, .role-queue-grid { grid-template-columns: 1fr; }
  .priority-lines button { border-right: 0; border-bottom: 1px solid var(--line); }
  .order-list-filters { grid-template-columns: 1fr; }
  .client-row { grid-template-columns: minmax(0, 1fr) 64px; }
  .quality-finding-row { grid-template-columns: 1fr; gap: 9px; }
  .quality-finding-row > button { justify-self: start; }
  .customer-robot-row { grid-template-columns: 1fr; gap: 9px; }
  .customer-robot-row .channel-actions { justify-content: flex-start; }
  .client-row > small { display: none; }
  .operation-heading { align-items: center; }
  .proof-layout { grid-template-columns: 1fr; }
  .proof-image-frame { min-height: 140px; }
  .proof-image-frame img { max-height: 320px; }
  .proof-board-head { align-items: flex-start; }
  .batch-mode-fields { grid-template-columns: 1fr; }
  .certificate-template-picker { grid-template-columns: 1fr; }
  .certificate-template-picker img { grid-column: 1; grid-row: auto; width: 100%; height: auto; max-height: 220px; }
  .production-stage-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .production-order-heading { align-items: stretch; flex-direction: column; }
  .production-close-order { align-self: flex-end; margin-top: -7px; }
  .production-handoff { align-items: stretch; flex-direction: column; }
  .production-handoff button { width: 100%; }
  .capability-execution { align-items: stretch; flex-direction: column; }
  .capability-execution-actions { justify-content: stretch; }
  .capability-execution-actions button { flex: 1 1 auto; }
  .capability-config { grid-template-columns: 1fr 1fr; }
  .capability-config label:first-child { grid-column: 1 / -1; }
  .production-zone-head { flex-direction: column; gap: 8px; }
  .production-zone-head > strong { align-self: flex-start; }
  .fulfillment-fields { grid-template-columns: 1fr; }
  .fulfillment-fields label.wide { grid-column: auto; }
  .fulfillment-actions { align-items: stretch; flex-direction: column; }
  .fulfillment-actions > button { width: 100%; }
  .payment-inline { width: 100%; grid-template-columns: 1fr; }
  .batch-mode-summary { align-items: flex-start; flex-direction: column; gap: 3px; }
  .batch-mode-summary span { text-align: left; }
  .customer-profile-fields { grid-template-columns: 1fr; }
  .customer-registration-actions { align-items: stretch; flex-direction: column; }
  .reception-capacity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ZMD store operations console */
.reception-app-shell { min-height: 100vh; background: #f3f6f9; }
.reception-app-head {
  min-height: 58px;
  padding: 8px 20px;
  border-bottom: 1px solid #252a32;
  background: #111318;
  color: #fff;
}
.reception-app-brand { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 10px !important; }
.reception-app-brand img { width: 32px; height: 32px; object-fit: contain; }
.reception-app-brand > div { display: grid; gap: 3px; }
.reception-app-head .reception-app-brand strong { color: #fff; font-size: .9rem; }
.reception-app-head .reception-app-brand span { color: #9ca6b4; font-size: .66rem; }
.reception-app-brand i,
.reception-title p b {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c58b;
  box-shadow: 0 0 0 3px rgba(34, 197, 139, .13);
  animation: reception-online-pulse 2.4s ease-in-out infinite;
}
@keyframes reception-online-pulse {
  0%, 100% { opacity: .72; box-shadow: 0 0 0 3px rgba(34, 197, 139, .10); }
  50% { opacity: 1; box-shadow: 0 0 0 5px rgba(34, 197, 139, .16); }
}
.reception-app-head nav { gap: 7px; }
.reception-app-head .pill,
.reception-app-head .dark,
.reception-app-head .store-switcher {
  min-height: 34px;
  height: 34px;
  border-color: #343a45;
  border-radius: 6px;
  background: #1b1f26;
  color: #d9dfe7;
  font-size: .72rem;
}
.reception-app-head .pill:hover { border-color: #566171; background: #262c35; color: #fff; }
.reception-app-head .dark { border-color: #1463ff; background: #1463ff; color: #fff; }
.reception-app-head .dark:hover { background: #0d51d4; }

.reception-app-main { padding: 18px 20px 24px; }
.reception-title { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.reception-title > div > span { display: block; margin-bottom: 3px; color: #1463ff; font-size: .6rem; font-weight: 800; }
.reception-title h1 { font-size: 1.42rem; font-weight: 750; }
.reception-title p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #cce8dd;
  border-radius: 6px;
  background: #f1faf6;
  color: #267052;
  font-size: .68rem;
  font-weight: 700;
}
.operation-tabs {
  min-height: 44px;
  align-items: stretch;
  gap: 0;
  margin-bottom: 12px;
  padding: 0 6px;
  border: 1px solid #dce2e8;
  border-radius: 8px;
  background: #fff;
}
.operation-tabs button,
.operation-more summary {
  min-height: 42px;
  padding: 0 14px;
  border-bottom-width: 2px;
  color: #667180;
  font-size: .75rem;
  font-weight: 700;
}
.operation-tabs button:hover,
.operation-more summary:hover { background: #f7f9fb; color: #1d2632; }
.operation-tabs button.active { border-bottom-color: #1463ff; color: #0d51d4; }
.operation-more > div { top: 45px; border-radius: 6px; }
.operation-more:has(button.active) summary { color: #0d51d4; }
.reception-toolbar { grid-template-columns: minmax(260px, 1fr) 190px; gap: 8px; }
.reception-toolbar input,
.reception-toolbar select { height: 38px; border-radius: 6px; background: #fff; font-size: .76rem; }
.reception-statusbar {
  margin-bottom: 10px;
  border-color: #dce2e8;
  border-radius: 8px;
  box-shadow: inset 0 2px 0 #f0f3f6;
}
.reception-stat { min-height: 66px; padding: 10px 14px; }
.reception-stat span { font-size: .67rem; }
.reception-stat strong,
.overview-metric strong {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0;
}
.reception-stat strong { font-size: 1rem; }
.reception-workspace {
  height: calc(100vh - 242px);
  min-height: 480px;
  grid-template-columns: minmax(250px, .8fr) minmax(410px, 1.45fr) minmax(350px, 1.08fr);
  border-color: #d5dce4;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(30, 43, 60, .055);
}
.reception-column-head { min-height: 56px; padding: 11px 13px; background: #f8fafc; }
.reception-column-head strong { color: #1a2230; font-size: .8rem; }
.reception-column-head span { color: #778291; font-size: .66rem; }
.conversation-row,
.order-row { min-height: 68px; padding: 11px 13px; transition: background-color 120ms ease, box-shadow 120ms ease; }
.conversation-row:hover,
.order-row:hover { background: #f4f7fb; }
.conversation-row.active,
.order-row.active { background: #edf4ff; box-shadow: inset 3px 0 0 #1463ff; }
.row-title { font-size: .78rem; }
.row-source, .row-preview { font-size: .68rem; }
.message-timeline { padding: 14px 16px; background: #f6f8fa; }
.message-content { border: 1px solid #e1e5ea; border-radius: 5px 9px 9px 9px; background: #fff; font-size: .78rem; }
.message-bubble.outbound .message-content { border-color: #cde5dc; border-radius: 9px 5px 9px 9px; background: #eaf7f1; }
.reply-composer { padding: 11px 12px; box-shadow: 0 -6px 18px rgba(24, 34, 47, .055); }
.reply-composer textarea { min-height: 72px; border-radius: 6px; background: #fbfcfd; }
.reply-composer textarea:focus { background: #fff; }

/* Customer communication command center */
.conversation-command-center {
  height: calc(100vh - 222px);
  min-height: 520px;
  grid-template-columns: minmax(235px, .72fr) minmax(430px, 1.55fr) minmax(355px, 1.08fr);
  border-color: #cfd7e1;
  box-shadow: 0 16px 38px rgba(25, 37, 52, .075);
}
.conversation-command-center .reception-column-head {
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px 13px;
}
.conversation-command-center .reception-column-head .column-kicker {
  display: block;
  margin: 0;
  color: #1463ff;
  font-size: .55rem;
  font-weight: 800;
  line-height: 1.2;
}
.conversation-command-center .reception-column-head strong { font-size: .83rem; }
.conversation-command-center .reception-column-head small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #788493;
  font-size: .61rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-queue-column { background: #f7f9fb; }
.conversation-queue-column .reception-column-head { border-bottom-color: #d8dfe7; background: #eef2f6; }
.conversation-queue-column #conversationList { overflow-x: hidden; background: #f7f9fb; }
.conversation-queue-column .conversation-row {
  min-height: 76px;
  border-left: 3px solid transparent;
  background: #fff;
}
.conversation-queue-column .conversation-row + .conversation-row { margin-top: 1px; }
.conversation-queue-column .conversation-row:hover { border-left-color: #a8c5ff; background: #f4f8ff; }
.conversation-queue-column .conversation-row.active {
  border-left-color: #1463ff;
  background: #eaf2ff;
  box-shadow: inset 0 0 0 1px rgba(20, 99, 255, .08);
}
.conversation-queue-column .conversation-row.active .row-title > span:first-child { color: #0d51d4; }
.conversation-queue-column .row-title > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-queue-column .row-title > span:last-child { flex: 0 0 auto; }
.conversation-primary-column {
  position: relative;
  z-index: 1;
  border-inline: 1px solid #cfd7e1;
  background: #fff;
  box-shadow: 0 0 24px rgba(24, 36, 51, .055);
}
.conversation-primary-column .conversation-message-head {
  display: flex;
  align-items: center;
  grid-template-columns: none;
  justify-content: space-between;
  border-bottom-color: #253241;
  background: #17212c;
}
.conversation-primary-column .conversation-message-head .column-kicker { color: #6e9fff; }
.conversation-primary-column .conversation-message-head strong { color: #fff; font-size: .88rem; }
.conversation-primary-column .conversation-message-head small { max-width: 440px; color: #9eabb9; }
.conversation-primary-column .conversation-takeover-actions .reception-badge.ready { background: #173d31; color: #66d6a3; }
.conversation-primary-column .conversation-takeover-actions .reception-badge.human { background: #4b3516; color: #f0bd67; }
.conversation-primary-column .conversation-takeover-actions .pill { border-color: #465565; background: #202c38; color: #f0f4f7; }
.conversation-primary-column .message-timeline {
  padding: 18px 20px;
  background: #f3f6f8;
  background-image: linear-gradient(#e7ebef 1px, transparent 1px);
  background-size: 100% 42px;
}
.conversation-primary-column .message-bubble { max-width: 80%; margin-bottom: 17px; }
.conversation-primary-column .message-meta { color: #7b8795; font-size: .64rem; font-weight: 650; }
.conversation-primary-column .message-content {
  padding: 10px 12px;
  border-color: #dce2e8;
  background: #fff;
  box-shadow: 0 3px 10px rgba(28, 40, 54, .045);
  line-height: 1.62;
}
.conversation-primary-column .message-bubble.outbound .message-content {
  border-color: #b9dfce;
  background: #e6f6ee;
  box-shadow: 0 3px 10px rgba(28, 92, 63, .055);
}
.conversation-primary-column .message-status { color: #8b96a3; font-size: .61rem; }
.conversation-primary-column .reply-composer {
  padding: 12px 14px 13px;
  border-top: 3px solid #1463ff;
  background: #fff;
  box-shadow: 0 -10px 26px rgba(24, 34, 47, .085);
}
.conversation-primary-column .reply-composer-head strong { color: #17212c; font-size: .72rem; }
.conversation-primary-column .reply-composer textarea { min-height: 78px; border-color: #cfd8e3; background: #f8fafc; }
.conversation-primary-column .reply-composer textarea:focus { border-color: #1463ff; box-shadow: 0 0 0 3px rgba(20, 99, 255, .1); }
.conversation-order-column { background: #f3f5f7; }
.conversation-order-column > .reception-column-head { border-bottom-color: #d3dbe4; background: #e9eef3; }
.conversation-order-column > .reception-column-head .column-kicker { color: #596879; }
.conversation-order-column #orderPanel { background: #f3f5f7; }
.conversation-order-column .order-body { background: #fff; }
.conversation-order-column .order-command-center { border-bottom-color: #cfd8e3; }
.conversation-order-column .order-next-action { background: #f7faff; }
.conversation-order-column .order-section { padding-inline: 2px; }
.conversation-command-center .reception-scroll::-webkit-scrollbar { width: 8px; }
.conversation-command-center .reception-scroll::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 8px; background: #aeb8c3; background-clip: padding-box; }
.conversation-command-center .reception-scroll::-webkit-scrollbar-track { background: transparent; }
.reception-statusbar {
  min-height: 48px;
}
.reception-statusbar .reception-stat {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
}
.reception-statusbar .reception-stat span { font-size: .62rem; }
.reception-statusbar .reception-stat strong { margin: 0; font-size: .9rem; }
.order-body { padding: 12px 14px; }
.order-section { padding: 11px 0; }
.order-label { color: #667180; font-size: .65rem; }
.order-copy { color: #222b37; font-size: .76rem; }
.reception-badge { min-height: 22px; border-radius: 4px; background: #eef1f4; color: #576171; font-size: .64rem; }
.reception-badge.ready { background: #e8f6ef; color: #168653; }
.reception-badge.human { background: #fff3df; color: #9a5a09; }
.reception-badge.urgent { background: #fdecee; color: #c9363e; }
.parameter-summary { border-radius: 6px; background: #f7f9fb; }
.operation-view { animation: operation-view-in 180ms ease both; }
@keyframes operation-view-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.overview-grid { border-radius: 8px; overflow: hidden; box-shadow: inset 0 2px 0 #eef2f6; }
.overview-metric { min-height: 82px; transition: background-color 120ms ease; }
.overview-metric:hover { background: #f3f7ff; }
.today-actions { border-top-color: #1463ff; border-radius: 8px; overflow: hidden; }
.today-action:hover { background: #f3f7ff; }
.operation-panel, .client-list, .kanban-column { border-radius: 8px; overflow: hidden; }
.operation-table thead { background: #f7f9fb; }
.operation-table tbody tr:hover { background: #f3f7ff; }
.production-folder-bar { border-left-color: #168653; border-radius: 8px; }
.proof-state { border-radius: 4px; }
.reception-dialog { border: 1px solid #d6dde5; border-radius: 8px; box-shadow: 0 28px 70px rgba(12, 19, 29, .28); }
.image-drop { border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  .reception-app-brand i, .reception-title p b, .operation-view { animation: none; }
}
@media (max-width: 760px) {
  .reception-app-head { align-items: flex-start; flex-direction: column; padding: 10px 12px; }
  .reception-app-head nav { width: 100%; overflow-x: auto; }
  .reception-app-main { padding: 14px 12px 24px; }
  .reception-title { align-items: flex-start; }
  .reception-title p { flex: 0 0 auto; }
  .operation-tabs { flex-wrap: nowrap; overflow-x: auto; }
}

/* Production control board and work-order command center */
.production-control-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  background: #fff;
}
.production-control-strip > div {
  min-width: 0;
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 4px 10px;
  padding: 12px 15px;
  border-right: 1px solid #e1e6ec;
  box-shadow: inset 0 3px 0 #1463ff;
}
.production-control-strip > div:last-child { border-right: 0; }
.production-control-strip > div[data-stage="producing"] { box-shadow: inset 0 3px 0 #d58a18; }
.production-control-strip > div[data-stage="fulfillment_pending"] { box-shadow: inset 0 3px 0 #17a06b; }
.production-control-strip > div[data-stage="delivered"] { box-shadow: inset 0 3px 0 #6a7380; }
.production-control-strip span { align-self: end; color: #586474; font-size: .68rem; font-weight: 750; }
.production-control-strip strong {
  grid-row: span 2;
  align-self: center;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 1.35rem;
  letter-spacing: 0;
}
.production-control-strip small { overflow: hidden; color: #8a94a2; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.production-groups { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; }
.production-groups > .production-preflight,
.production-groups > .production-ready-heading { grid-column: 1 / -1; }
.production-stage-panel { grid-column: 1 / -1; padding: 0; }
.production-stage-panel[data-production-stage="production_pending"] { border-top: 3px solid #1463ff; }
.production-stage-panel[data-production-stage="producing"] { border-top: 3px solid #d58a18; }
.production-stage-panel[data-production-stage="fulfillment_pending"] { border-top: 3px solid #17a06b; }
.production-stage-panel[data-production-stage="delivered"] { border-top: 3px solid #6a7380; }
.production-stage-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid #e1e6ec;
  background: #f8fafc;
}
.production-stage-head > div { display: flex; align-items: center; gap: 9px; }
.production-stage-head span { color: #8792a0; font: 700 .61rem/1 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace; }
.production-stage-head h3 { margin: 0; color: #202a37; font-size: .78rem; }
.production-stage-head > strong {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #e9eef4;
  color: #455160;
  font: 750 .72rem/1 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}
.production-stage-panel .production-order-row { padding: 0 9px; }
.production-stage-panel .production-order-row:last-child { border-bottom: 0; }
.production-stage-panel .reception-empty.compact,
.production-preflight .reception-empty.compact { padding: 18px 12px; font-size: .7rem; }
.production-completed-details { margin: 0 4px 9px; border-top: 1px solid #e1e6ec; }
.production-completed-details > summary {
  padding: 9px 4px;
  color: #667180;
  cursor: pointer;
  font-size: .66rem;
  font-weight: 750;
}
.production-completed-details[open] > summary { color: #202a37; }

/* Production floor: a connected four-station workflow for shop operators. */
.production-floor-header {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 10px;
  padding: 20px 22px;
  border: 1px solid #202b37;
  border-radius: 8px;
  background: #111820;
  color: #fff;
}
.production-floor-header > div:first-child { min-width: 0; }
.production-floor-header > div:first-child > span { color: #70a1ff; font-size: .6rem; font-weight: 800; }
.production-floor-header h2 { margin: 5px 0 5px; color: #fff; font-size: 1.12rem; }
.production-floor-header p { margin: 0; color: #aeb9c6; font-size: .68rem; line-height: 1.5; }
.production-floor-tools { min-width: min(62%, 690px); display: flex; align-items: stretch; justify-content: flex-end; gap: 9px; }
.production-folder-compact {
  min-width: 0;
  flex: 1 1 400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #344150;
  border-radius: 6px;
  background: #18222d;
}
.production-folder-compact > div:first-child { min-width: 0; display: grid; gap: 4px; }
.production-folder-compact span { color: #8fa0b2; font-size: .58rem; font-weight: 750; }
.production-folder-compact strong { overflow: hidden; color: #d8e0e8; font-size: .62rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.production-folder-compact .production-folder-actions { flex-wrap: nowrap; }
.production-folder-compact .pill,
.production-folder-compact .dark { min-height: 30px; padding-inline: 9px; border-color: #4b5a6b; white-space: nowrap; font-size: .62rem; }
.production-folder-compact .pill { background: #202b37; color: #e4eaf0; }
.production-floor-live {
  min-width: 210px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 9px;
  padding: 11px 13px;
  border: 1px solid #344150;
  border-radius: 6px;
  background: #18222d;
}
.production-floor-live i { width: 8px; height: 8px; grid-row: span 2; border-radius: 50%; background: #2bd18b; box-shadow: 0 0 0 4px rgba(43, 209, 139, .12); }
.production-floor-live span { color: #c6d0db; font-size: .63rem; font-weight: 750; }
.production-floor-live strong { grid-row: span 2; color: #fff; font: 750 1.5rem/1 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace; }
.production-floor-live small { color: #7f8d9c; font-size: .58rem; }
.production-filter-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; background: #f5f7fa; }
.production-filter-strip > button {
  position: relative;
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 4px 10px;
  padding: 12px 18px;
  border: 0;
  border-right: 1px solid #e1e6ec;
  border-radius: 0;
  background: #fff;
  color: #202a37;
  text-align: left;
  box-shadow: inset 0 3px 0 #1463ff;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}
.production-filter-strip > button[data-stage="preflight"] { box-shadow: inset 0 3px 0 #c78319; }
.production-filter-strip > button[data-stage="producing"] { box-shadow: inset 0 3px 0 #d58a18; }
.production-filter-strip > button[data-stage="fulfillment_pending"] { box-shadow: inset 0 3px 0 #17a06b; }
.production-filter-strip > button[data-stage="delivered"] { box-shadow: inset 0 3px 0 #6a7380; }
.production-filter-strip > button:hover,
.production-filter-strip > button:focus-visible,
.production-filter-strip > button.active { z-index: 3; background: #eef4ff; outline: 0; box-shadow: inset 0 3px 0 #1463ff, inset 0 0 0 2px rgba(20, 99, 255, .2); }
.production-filter-strip > button[data-stage="preflight"]:hover,
.production-filter-strip > button[data-stage="preflight"]:focus-visible,
.production-filter-strip > button[data-stage="preflight"].active { background: #fff9ef; box-shadow: inset 0 3px 0 #c78319, inset 0 0 0 2px rgba(199, 131, 25, .22); }
.production-filter-strip > button:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -7px;
  width: 12px;
  height: 12px;
  border-top: 1px solid #bac4cf;
  border-right: 1px solid #bac4cf;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
}
.production-filter-strip > button:hover::after,
.production-filter-strip > button:focus-visible::after,
.production-filter-strip > button.active::after { background: #eef4ff; }
.production-filter-strip > button[data-stage="preflight"]:hover::after,
.production-filter-strip > button[data-stage="preflight"]:focus-visible::after,
.production-filter-strip > button[data-stage="preflight"].active::after { background: #fff9ef; }
.production-filter-strip span { align-self: end; color: #8a95a3; font: 700 .56rem/1 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace; }
.production-filter-strip b { color: #202a37; font-size: .76rem; }
.production-filter-strip strong { grid-row: span 2; align-self: center; color: #202a37; font: 750 1.35rem/1 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace; }
.production-filter-strip small { overflow: hidden; color: #8792a0; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.production-stage-detail-area[hidden],
.production-stage-detail[hidden] { display: none !important; }
.production-stage-detail-area { min-height: 360px; }
.production-stage-detail {
  min-height: 360px;
  margin-top: 0;
  padding: 0;
  border: 1px solid #cfd8e3;
  border-top: 3px solid #1463ff;
  border-radius: 8px;
  background: #f4f6f8;
  box-shadow: 0 16px 38px rgba(22, 32, 45, .09);
  animation: production-detail-in 160ms ease both;
}
.production-stage-detail[data-production-detail="preflight"] { border-top-color: #c78319; background: #fffaf2; }
.production-stage-detail[data-production-detail="producing"] { border-top-color: #d58a18; }
.production-stage-detail[data-production-detail="fulfillment_pending"] { border-top-color: #17a06b; }
.production-stage-detail[data-production-detail="delivered"] { border-top-color: #6a7380; }
@keyframes production-detail-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.production-detail-head {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  border-bottom: 1px solid #dce2e8;
  background: #fff;
}
.production-detail-head > div { min-width: 0; }
.production-detail-head span { color: #1463ff; font-size: .58rem; font-weight: 800; }
.production-stage-detail[data-production-detail="preflight"] .production-detail-head span { color: #9a620d; }
.production-detail-head h3 { margin: 4px 0 3px; color: #17202c; font-size: .94rem; }
.production-detail-head h3 b { margin-left: 5px; color: #687586; font: 700 .72rem/1 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace; }
.production-detail-head p { margin: 0; color: #778291; font-size: .64rem; line-height: 1.45; }
.production-detail-close { flex: 0 0 auto; }
.production-detail-orders { display: grid; gap: 9px; padding: 10px; }
.production-detail-orders > .reception-empty { min-height: 250px; display: grid; place-items: center; padding: 30px; }
.production-stage-detail .production-order-row {
  padding: 0 12px;
  border: 1px solid #dce2e8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(29, 40, 54, .04);
}
.production-stage-detail .production-order-heading { min-height: 62px; }
.production-stage-detail .production-order-main { min-height: 62px; padding-inline: 2px; }
.production-stage-detail .production-files,
.production-stage-detail .fulfillment-panel,
.production-stage-detail .production-batch-workspace { margin-inline: 0; }
.production-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 10px; }
.production-groups > .production-preflight,
.production-groups > .production-ready-heading { grid-column: 1 / -1; }
.production-preflight { padding: 12px 14px; border-top-width: 1px; border-left: 3px solid #c78319; }
.production-preflight.is-empty { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.production-preflight.is-empty .production-zone-head { margin: 0; padding: 0; border: 0; }
.production-preflight.is-empty .reception-empty { padding: 8px 12px; border-left: 1px solid #eadcbb; white-space: nowrap; }
.production-zone-head { margin-bottom: 9px; padding-bottom: 9px; }
.production-ready-heading {
  position: relative;
  padding: 11px 14px 11px 17px;
  border: 1px solid #d7dee7;
  border-left: 3px solid #1463ff;
  background: #f5f8fc;
}
.production-ready-heading::after { content: "向右流转"; position: absolute; top: 12px; right: 14px; color: #748194; font-size: .58rem; font-weight: 750; }
.production-stage-panel {
  min-width: 0;
  min-height: 250px;
  grid-column: auto;
  border-color: #d7dee7;
  border-radius: 7px;
  background: #f4f6f8;
  box-shadow: 0 7px 20px rgba(29, 40, 54, .055);
}
.production-stage-head { min-height: 58px; padding: 10px 12px; background: #fff; }
.production-stage-head > div > div { display: grid; gap: 3px; }
.production-stage-head h3 { font-size: .78rem; }
.production-stage-head small { color: #8a95a3; font-size: .56rem; }
.production-stage-body { max-height: 620px; overflow: auto; overscroll-behavior: contain; }
.production-stage-panel[data-production-stage="delivered"] .production-stage-body { max-height: 480px; }
.production-stage-panel .production-order-row {
  margin: 8px;
  padding: 0 9px;
  border: 1px solid #dce2e8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(29, 40, 54, .035);
}
.production-stage-panel .production-order-row:last-child { border-bottom: 1px solid #dce2e8; }
.production-stage-panel .production-order-main { min-height: 70px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; padding: 10px 2px; }
.production-stage-panel .production-order-main span { width: 100%; }
.production-stage-panel .production-order-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.production-stage-panel .production-order-main small { display: -webkit-box; overflow: hidden; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.production-stage-panel .production-order-main em { width: 100%; padding-top: 6px; border-top: 1px solid #edf0f3; color: #667180; }
.production-stage-panel .production-files,
.production-stage-panel .fulfillment-panel,
.production-stage-panel .production-batch-workspace { margin-inline: 0; }
.production-stage-panel .production-file-row,
.production-stage-panel .production-files-head,
.production-stage-panel .fulfillment-head { align-items: stretch; flex-direction: column; }
.production-stage-panel .production-download-actions { width: 100%; }
.production-stage-panel .production-download-actions > * { flex: 1; text-align: center; }
.production-stage-panel .fulfillment-fields { grid-template-columns: 1fr; }
.production-stage-panel .fulfillment-fields label.wide { grid-column: 1; }
.production-stage-panel .payment-inline { min-width: 0; grid-template-columns: 1fr; }
.production-stage-panel .production-progress-actions > button { flex: 1; }

@media (max-width: 1080px) and (min-width: 761px) {
  .production-floor-header { align-items: stretch; flex-direction: column; }
  .production-floor-tools { width: 100%; min-width: 0; }
  .production-filter-strip { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; }
  .production-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .production-groups > .production-preflight,
  .production-groups > .production-ready-heading { grid-column: 1 / -1; }
}

.order-command-center {
  margin: -12px -14px 10px;
  border-bottom: 1px solid #d7dee7;
  background: #fff;
}
.order-command-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px; }
.order-command-head > div:first-child { min-width: 0; }
.order-command-head > div:first-child > span { color: #1463ff; font-size: .59rem; font-weight: 800; }
.order-command-head h2 { margin: 4px 0 3px; overflow-wrap: anywhere; color: #17202c; font-size: .96rem; line-height: 1.35; }
.order-command-head p { margin: 0; color: #778291; font-size: .65rem; line-height: 1.45; }
.order-command-head > .order-badges { flex: 0 0 auto; justify-content: flex-end; }
.order-stage-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid #e1e6ec; background: #f8fafc; }
.order-stage-track span {
  min-width: 0;
  min-height: 48px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-right: 1px solid #e1e6ec;
  color: #8a94a2;
  font-size: .58rem;
  text-align: center;
}
.order-stage-track span:last-child { border-right: 0; }
.order-stage-track b { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #e6ebf0; color: #697584; font-size: .58rem; }
.order-stage-track span.done { color: #168653; }
.order-stage-track span.done b { background: #dff2e9; color: #168653; }
.order-stage-track span.current { background: #edf4ff; color: #0d51d4; font-weight: 800; }
.order-stage-track span.current b { background: #1463ff; color: #fff; }
.order-next-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 14px; border-left: 3px solid #1463ff; }
.order-next-action > div { min-width: 0; display: grid; gap: 3px; }
.order-next-action > div span { color: #1463ff; font-size: .58rem; font-weight: 800; }
.order-next-action > div strong { color: #17202c; font-size: .82rem; }
.order-next-action > div small { color: #6f7a88; font-size: .63rem; line-height: 1.4; }
.order-next-action dl { display: grid; grid-template-columns: repeat(3, auto); gap: 10px; margin: 0; }
.order-next-action dl div { min-width: 48px; display: grid; gap: 2px; }
.order-next-action dt { color: #8a94a2; font-size: .56rem; }
.order-next-action dd { max-width: 82px; margin: 0; overflow: hidden; color: #34404e; font-size: .62rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.order-command-parameters { display: grid; gap: 4px; padding: 9px 14px 11px; background: #f8fafc; }
.order-command-parameters span { color: #8a94a2; font-size: .57rem; }
.order-command-parameters strong { overflow: hidden; color: #3b4654; font-size: .64rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.order-secondary-head { padding-top: 5px; }
.order-action-dock { margin: 0 -14px 12px; border-block: 1px solid #cfd8e3; background: #f8fafc; }
.order-action-dock-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 10px 14px 8px; border-bottom: 1px solid #dfe6ee; }
.order-action-dock-head > div { display: grid; gap: 2px; }
.order-action-dock-head span { color: #1463ff; font-size: .58rem; font-weight: 800; }
.order-action-dock-head strong { color: #17212c; font-size: .78rem; }
.order-action-dock-head small { max-width: 170px; color: #667586; font-size: .61rem; line-height: 1.4; text-align: right; }
.order-action-dock-main { display: grid; gap: 8px; padding: 10px 14px; }
.order-reply-preview { padding-left: 9px; border-left: 3px solid #79a9ff; }
.order-reply-preview span { color: #6c7a8b; font-size: .59rem; font-weight: 750; }
.order-reply-preview p { margin: 3px 0 0; color: #283544; font-size: .7rem; line-height: 1.55; }
.order-action-dock-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.order-action-dock-buttons .pill, .order-action-dock-buttons .dark { min-height: 31px; font-size: .7rem; }
.order-action-dock-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 14px; border-top: 1px solid #e1e7ee; }
.order-action-dock-foot > span { color: #788595; font-size: .6rem; line-height: 1.4; }
.order-action-dock-foot details { position: relative; }
.order-action-dock-foot summary { color: #566678; font-size: .62rem; cursor: pointer; }
.order-action-dock-foot details > div { position: absolute; right: 0; bottom: 22px; z-index: 5; display: flex; gap: 6px; min-width: max-content; padding: 7px; border: 1px solid #cfd8e3; background: #fff; box-shadow: 0 8px 20px rgba(29, 43, 59, .15); }
.order-action-dock-foot details button { min-height: 28px; font-size: .63rem; }

/* Searchable order index and customer records */
.operation-kicker { display: block; margin-bottom: 4px; color: #1463ff; font-size: .59rem; font-weight: 800; }
.order-list-filters {
  grid-template-columns: minmax(240px, 1.25fr) repeat(4, minmax(125px, .55fr)) auto auto;
  align-items: end;
  padding: 12px;
  border: 1px solid #d7dee7;
  border-radius: 8px;
  background: #fff;
}
.order-list-filters > label { min-width: 0; display: grid; gap: 5px; color: #697584; font-size: .61rem; font-weight: 700; }
.order-list-filters > label > span { min-width: 0; }
.order-list-filters .filter-check { min-height: 36px; display: flex; flex-direction: row; align-items: center; gap: 7px; padding: 0 8px; }
.order-list-filters .filter-check input { flex: 0 0 auto; margin: 0; }
.order-filter-actions { display: flex; align-items: center; gap: 6px; }
.order-filter-actions button { min-height: 36px; white-space: nowrap; }
.order-index-panel { padding: 0; }
.order-index-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #dfe5eb; }
.order-index-summary > div {
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 3px 10px;
  padding: 10px 13px;
  border-right: 1px solid #e1e6ec;
}
.order-index-summary > div:last-child { border-right: 0; }
.order-index-summary span { align-self: end; color: #657181; font-size: .64rem; font-weight: 750; }
.order-index-summary strong { grid-row: span 2; align-self: center; font: 750 1.2rem/1 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace; }
.order-index-summary small { overflow: hidden; color: #929ba7; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.order-index-table tbody tr { position: relative; }
.order-index-table .order-index-main-row { cursor: pointer; }
.order-index-table .order-detail-cell { width: 92px; text-align: right; }
.order-detail-button { min-height: 32px; white-space: nowrap; }
.order-status-chip,
.order-due,
.order-payment { display: inline-flex; align-items: center; min-height: 24px; padding: 0 7px; border-radius: 4px; font-size: .65rem; font-weight: 750; white-space: nowrap; }
.order-status-chip { background: #edf4ff; color: #0d57bf; }
.order-status-chip.production { background: #e8f6ef; color: #168653; }
.order-status-chip.attention { background: #fff3df; color: #9a5a09; }
.order-status-chip.complete { background: #eef1f4; color: #596573; }
.order-status-chip.closed { background: #f1f2f4; color: #8a929d; }
.order-due { padding-inline: 0; color: #657181; }
.order-due.urgent { padding-inline: 7px; background: #fdecee; color: #c9363e; }
.order-payment { padding-inline: 0; color: #7d5414; }
.order-payment.paid { color: #168653; }
.order-payment.partial { color: #a6630b; }
.order-finance-toggle { width: 100%; min-width: 132px; padding: 0 18px 0 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.order-finance-toggle::after { content: "+"; position: absolute; right: 10px; color: #66717f; font-size: .8rem; font-weight: 800; }
.order-finance-toggle[aria-expanded="true"]::after { content: "−"; }
.order-finance-toggle span, .order-finance-toggle small { display: block; }
.order-finance-toggle small { margin-top: 2px; color: #657181; font-size: .6rem; white-space: nowrap; }
.order-finance-row[hidden] { display: none !important; }
.order-index-table .order-finance-row:hover { background: transparent; }
.order-index-table .order-finance-row > td { padding: 0; border-bottom: 1px solid #cfd8e1; background: #f7f9fb; }
.order-finance-workspace { padding: 14px 16px 16px; border-left: 3px solid #2c69d1; }
.order-finance-workspace > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.order-finance-workspace > header > div { min-width: 0; }
.order-finance-workspace > header strong, .order-finance-workspace > header span { display: block; }
.order-finance-workspace > header strong { font-size: .75rem; }
.order-finance-workspace > header span { margin-top: 3px; color: #657181; font-size: .62rem; }
.order-finance-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.order-finance-columns form { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr); align-items: end; gap: 9px 12px; padding: 12px; border: 1px solid #dce3ea; background: #fff; }
.order-finance-columns form:first-child { grid-template-columns: minmax(180px, 1fr) auto; }
.order-finance-label { grid-column: 1 / -1; color: #293645; font-size: .68rem; font-weight: 800; }
.order-finance-columns label { display: grid; gap: 5px; min-width: 0; }
.order-finance-columns label > span { color: #657181; font-size: .6rem; font-weight: 700; }
.order-finance-columns input, .order-finance-columns select { width: 100%; min-width: 0; height: 36px; padding: 0 9px; border: 1px solid #cfd7e0; border-radius: 4px; background: #fff; color: #1f2935; font: 700 .72rem/1 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace; }
.order-finance-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.order-finance-columns form > small { grid-column: 1 / -1; color: #657181; font-size: .59rem; }
.order-finance-feedback { min-height: 18px; padding-top: 7px; color: #a33a2e; font-size: .62rem; }

.customer-registration-drawer { margin-bottom: 12px; border: 1px solid #d7dee7; border-radius: 8px; background: #fff; overflow: hidden; }
.customer-registration-drawer > summary { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; cursor: pointer; list-style: none; }
.customer-registration-drawer > summary::-webkit-details-marker { display: none; }
.customer-registration-drawer > summary > div { min-width: 0; display: grid; gap: 3px; }
.customer-registration-drawer > summary span { color: #1463ff; font-size: .59rem; font-weight: 800; }
.customer-registration-drawer > summary strong { color: #202a37; font-size: .8rem; }
.customer-registration-drawer > summary small { color: #7c8795; font-size: .63rem; }
.customer-registration-drawer > summary > b { flex: 0 0 auto; min-height: 30px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid #ccd5df; border-radius: 5px; color: #566272; font-size: .66rem; }
.customer-registration-drawer[open] > summary { border-bottom: 1px solid #dfe5eb; background: #f8fafc; }
.customer-registration-drawer[open] > summary > b::before { content: "收起"; font-size: .66rem; }
.customer-registration-drawer[open] > summary > b { font-size: 0; }
.customer-registration-drawer .customer-registration-panel { margin: 0; border: 0; border-radius: 0; }
.client-records { border: 1px solid #d7dee7; border-radius: 8px; background: #fff; overflow: hidden; }
.client-records-heading { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; border-bottom: 1px solid #e1e6ec; background: #f8fafc; }
.client-records-heading span { color: #1463ff; font-size: .58rem; font-weight: 800; }
.client-records-heading h3 { margin: 3px 0 0; color: #202a37; font-size: .82rem; }
.client-records-heading h3 b { margin-left: 5px; color: #7a8593; font: 700 .7rem/1 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace; }
.client-records .client-search { grid-template-columns: minmax(220px, 440px) auto; margin: 0; padding: 10px 13px; border-bottom: 1px solid #e1e6ec; }
.client-records .client-search button { min-height: 36px; }
.client-records > .client-list { border: 0; }
.client-record-row { grid-template-columns: minmax(0, 1fr) auto; padding: 0 12px; }
.client-record-row > button:first-child { min-width: 0; min-height: 70px; display: grid; grid-template-columns: minmax(0, 1fr) 90px 170px; align-items: center; gap: 14px; border: 0; background: transparent; text-align: left; }
.client-record-row > button:first-child > div { min-width: 0; display: grid; gap: 4px; }
.client-record-row > button:first-child > div:first-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-record-row > button:first-child small { color: #7d8794; font-size: .64rem; text-align: right; }
.client-record-row > .pill { white-space: nowrap; }
.client-detail-head { min-height: 88px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid #d7dee7; border-left: 3px solid #1463ff; border-radius: 8px; background: #fff; }
.client-detail-head > div { min-width: 0; }
.client-detail-head span { color: #1463ff; font-size: .59rem; font-weight: 800; }
.client-detail-head h2 { margin: 3px 0; overflow-wrap: anywhere; font-size: 1rem; }
.client-detail-head p { margin: 0; color: #727e8d; font-size: .68rem; }
.client-profile-form h3 { margin: 0 0 4px; font-size: .86rem; }
.client-order-history { padding: 0; }
.client-order-history > h3 { margin: 0; padding: 13px 14px; border-bottom: 1px solid #e1e6ec; background: #f8fafc; }

.candidate-panel { display: grid; gap: 9px; }
.candidate-set-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.candidate-set-head strong { color: #26313e; font-size: .73rem; }
.candidate-set-head span { color: #7e8997; font-size: .61rem; }
.candidate-list { display: grid; border: 1px solid #dfe5eb; border-radius: 6px; overflow: hidden; }
.candidate-list label {
  min-width: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-bottom: 1px solid #e7ebef;
  background: #fff;
  color: #3d4957;
  cursor: pointer;
  font-size: .69rem;
  line-height: 1.45;
}
.candidate-list label:last-child { border-bottom: 0; }
.candidate-list label:hover { background: #f6f9fd; }
.candidate-list label.selected { background: #edf4ff; color: #0d51d4; }
.candidate-list .candidateChoice {
  appearance: auto;
  flex: 0 0 16px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border-radius: 3px;
  box-shadow: none;
  accent-color: #1463ff;
}
.candidate-list label > span { min-width: 0; overflow-wrap: anywhere; }
.candidate-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.candidate-actions #candidateSelectionInput { width: 150px; min-width: 120px; height: 34px; }
.candidate-actions button { min-height: 34px; }

@media (max-width: 760px) {
  .reception-app-shell { width: 100%; overflow-x: hidden; }
  .reception-app-head nav,
  .operation-tabs { max-width: 100%; }
  .reception-toolbar { width: 100%; grid-template-columns: minmax(0, 1fr); }
  .reception-toolbar input,
  .reception-toolbar select { width: 100%; min-width: 0; }
  .reception-workspace {
    width: 100%;
    height: auto !important;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
  }
  .reception-workspace > .reception-column,
  .reception-workspace > .reception-column:not(.orders),
  .reception-column.orders {
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: none;
    grid-column: 1;
    border-left: 0;
    border-top: 1px solid #dce2e8;
  }
  .reception-workspace > .reception-column:first-child { border-top: 0; }
  .reception-column .reception-scroll { max-width: 100%; }
  .production-control-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .production-control-strip > div:nth-child(2) { border-right: 0; }
  .production-control-strip > div:nth-child(-n+2) { border-bottom: 1px solid #e1e6ec; }
  .production-filter-strip { display: flex; overflow-x: auto; scroll-snap-type: x proximity; }
  .production-filter-strip > button { min-width: 150px; flex: 1 0 150px; scroll-snap-align: start; }
  .production-groups { grid-template-columns: 1fr; }
  .production-groups > *, .production-stage-panel { grid-column: 1; }
  .production-floor-header { align-items: stretch; flex-direction: column; gap: 14px; padding: 18px; }
  .production-floor-tools { width: 100%; min-width: 0; flex-direction: column; }
  .production-folder-compact { width: 100%; flex: none; align-items: stretch; flex-direction: column; }
  .production-folder-compact .production-folder-actions { width: 100%; }
  .production-folder-compact .production-folder-actions > * { flex: 1; text-align: center; }
  .production-floor-live { width: 100%; min-width: 0; }
  .production-stage-detail-area,
  .production-stage-detail { min-height: 300px; }
  .production-detail-head { align-items: flex-start; }
  .production-detail-orders { padding: 8px; }
  .production-stage-detail .production-order-heading { align-items: stretch; flex-direction: column; padding: 8px 0; }
  .production-stage-detail .production-close-order { align-self: flex-start; }
  .production-preflight.is-empty { grid-template-columns: 1fr; }
  .production-preflight.is-empty .reception-empty { padding: 10px 0 0; border-top: 1px solid #eadcbb; border-left: 0; text-align: left; }
  .order-command-head, .order-next-action { align-items: flex-start; grid-template-columns: 1fr; }
  .order-command-head { flex-direction: column; }
  .order-command-head > .order-badges { justify-content: flex-start; }
  .order-next-action dl { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 8px; border-top: 1px solid #e1e6ec; }
  .order-stage-track span { min-height: 44px; font-size: .53rem; }
  .order-action-dock-head { align-items: flex-start; flex-direction: column; }
  .order-action-dock-head small { max-width: none; text-align: left; }
  .order-list-filters { grid-template-columns: minmax(0, 1fr); }
  .order-filter-actions { width: 100%; }
  .order-filter-actions button { flex: 1; }
  .order-index-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-index-summary > div:nth-child(2) { border-right: 0; }
  .order-index-summary > div:nth-child(-n+2) { border-bottom: 1px solid #e1e6ec; }
  .order-index-table thead { display: none; }
  .order-index-table,
  .order-index-table tbody { display: block; }
  .order-index-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 11px 30px 11px 12px; border-bottom: 1px solid #e1e6ec; }
  .order-index-table td { min-width: 0; padding: 5px 0; border: 0; }
  .order-index-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: #929ba7; font-size: .56rem; }
  .order-index-table td:first-child { min-width: 0; grid-column: 1 / -1; padding-bottom: 8px; }
  .order-index-table td:first-child span { max-width: 100%; white-space: normal; }
  .order-index-table td:last-child { padding-right: 0; }
  .order-index-table .order-finance-row { display: block; padding: 0; }
  .order-index-table .order-finance-row[hidden] { display: none !important; }
  .order-index-table .order-finance-row > td { display: block; width: 100%; }
  .order-index-table .order-finance-row > td::before { display: none; }
  .order-finance-workspace { padding: 12px; }
  .order-finance-workspace > header { align-items: flex-start; flex-direction: column; }
  .order-finance-columns { grid-template-columns: 1fr; gap: 10px; }
  .order-finance-columns form,
  .order-finance-columns form:first-child { grid-template-columns: 1fr; }
  .order-finance-columns form > * { grid-column: 1; }
  .order-finance-actions > button { min-height: 36px; flex: 1 1 120px; }
  .operation-pagination { justify-content: space-between; padding: 10px 12px; }
  .customer-registration-drawer > summary { align-items: flex-start; }
  .client-records .client-search { grid-template-columns: minmax(0, 1fr); }
  .client-record-row { grid-template-columns: minmax(0, 1fr) auto; }
  .client-record-row > button:first-child { grid-template-columns: minmax(0, 1fr) 58px; gap: 8px; }
  .client-record-row > button:first-child small { display: none; }
  .client-detail-head { grid-template-columns: minmax(0, 1fr); }
  .candidate-set-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .candidate-actions { display: grid; grid-template-columns: 1fr; }
  .candidate-actions #candidateSelectionInput,
  .candidate-actions button { width: 100%; }
  .conversation-history-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .conversation-history-drawer > summary { min-width: 0; gap: 7px; padding-inline: 9px; }
  .conversation-history-drawer > summary time { display: none; }
  .conversation-history-messages { padding-inline: 9px; }
  .conversation-history-messages .message-bubble { max-width: 94%; }
  .conversation-primary-column .conversation-message-head { align-items: flex-start; flex-wrap: wrap; }
  .conversation-primary-column .conversation-takeover-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
}
