:root{--navy:#0f1d3a;--gold:#c8a24d;--cream:#faf7f0;--sand:#e8d7c6;--ink:#182033;--muted:#6b7280;--danger:#a92727;--line:#e6dfd5;--white:#fffdf8}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;background:var(--cream);color:var(--ink)}button,input,select,textarea{font:inherit}.auth-page{min-height:100vh;display:grid;place-items:center;padding:32px;background:linear-gradient(135deg,#faf7f0,#f2eadf)}.auth-card{width:min(560px,100%);background:var(--white);border:1px solid var(--line);border-radius:28px;padding:32px;box-shadow:0 24px 80px rgba(15,29,58,.14)}.brand{display:flex;gap:14px;align-items:center}.brand-mark{width:48px;height:48px;border-radius:16px;background:var(--navy);color:var(--gold);display:grid;place-items:center;font-weight:800;letter-spacing:.08em}.brand h1{margin:0;font-family:Georgia,serif;font-size:30px}.subtitle,.hint,.me{color:var(--muted);font-size:13px;line-height:1.45}.field{display:flex;flex-direction:column;gap:7px;margin:14px 0}.field label{font-weight:700;font-size:13px}input,select,textarea{width:100%;border:1px solid var(--line);background:white;border-radius:14px;padding:11px 12px;color:var(--ink)}textarea{min-height:92px}.btn{border:0;border-radius:14px;padding:11px 14px;cursor:pointer;font-weight:800}.btn.primary{background:var(--navy);color:white}.btn.secondary{background:#f3eee7;color:var(--navy)}.btn.danger{background:var(--danger);color:white}.error{background:#fff1f1;color:#8c1f1f;border:1px solid #f0caca;padding:12px;border-radius:14px;margin:16px 0}.notice{background:#fff8df;border:1px solid #ead89b;padding:12px;border-radius:14px;margin:16px 0}.shell{display:grid;grid-template-columns:310px 1fr;min-height:100vh}.sidebar{background:var(--navy);color:white;padding:24px;overflow:auto}.sidebar .brand{margin-bottom:20px}.sidebar .brand-mark{background:var(--gold);color:var(--navy)}.sidebar h1{color:white}.sidebar .me{color:#d7deee}.nav-section{font-size:11px;letter-spacing:.11em;text-transform:uppercase;color:#b7c0d6;margin:22px 0 8px}.nav-btn{display:block;width:100%;text-align:left;margin:5px 0;padding:11px 12px;border-radius:14px;border:1px solid transparent;background:transparent;color:#eef3ff}.nav-btn:hover,.nav-btn.active{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.18)}.content{padding:28px;overflow:auto}.topbar{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:20px}.topbar h2{font-family:Georgia,serif;font-size:34px;margin:0 0 6px}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.card{background:var(--white);border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:0 10px 35px rgba(15,29,58,.06)}.metric{font-size:31px;font-weight:900;color:var(--navy)}.metric.small{font-size:15px;line-height:1.5}.toolbar{background:#fff8e8;border:1px solid #ead9a8;border-radius:18px;padding:12px 16px;margin-bottom:16px}.table-wrap{background:var(--white);border:1px solid var(--line);border-radius:22px;overflow:auto;box-shadow:0 10px 35px rgba(15,29,58,.06)}table{border-collapse:collapse;width:100%;min-width:1000px}th,td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line);font-size:13px;vertical-align:top}th{background:#fbf5ec;color:var(--navy);font-size:12px;text-transform:uppercase;letter-spacing:.06em}.pill{display:inline-flex;border-radius:999px;padding:4px 8px;background:#edf2f7;color:#1f2937;font-weight:800;font-size:11px}.pill.ACTIVE,.pill.APPROVED,.pill.VERIFIED,.pill.READY_FOR_AUCTION,.pill.EXECUTED{background:#e6f6eb;color:#16733b}.pill.LOCKED,.pill.CANCELLED,.pill.REJECTED,.pill.REVOKED{background:#fae7e7;color:#8e2424}.json-cell{display:inline-block;max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thumb-button{border:0;background:transparent;padding:0;cursor:pointer;border-radius:16px}.thumb-button:focus-visible,.link-btn:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.inline-thumb-button{display:inline-flex;align-self:flex-start}.table-thumb{display:block;width:72px;height:72px;object-fit:cover;border-radius:16px;border:1px solid var(--line);box-shadow:0 8px 24px rgba(15,29,58,.08)}.table-thumb.large{width:160px;height:160px}.link-btn{border:0;background:transparent;padding:0;color:var(--navy);text-align:left;cursor:pointer;font-weight:700;text-decoration:underline}.drawer{position:fixed;inset:0;background:rgba(15,29,58,.35);display:none;justify-content:flex-end}.drawer.open{display:flex}.drawer-panel{width:min(760px,100%);height:100%;background:var(--cream);padding:26px;overflow:auto}.image-lightbox{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:30}.image-lightbox.open{display:flex}.image-lightbox-backdrop{position:absolute;inset:0;background:rgba(15,29,58,.7)}.image-lightbox-panel{position:relative;max-width:min(92vw,1100px);max-height:88vh;padding:20px;border-radius:28px;background:var(--white);border:1px solid var(--line);box-shadow:0 28px 90px rgba(15,29,58,.3);display:flex;flex-direction:column;gap:14px}.image-lightbox-panel img{display:block;max-width:100%;max-height:72vh;object-fit:contain;border-radius:20px;background:#f7f2ea}.image-lightbox-caption{font-size:14px;font-weight:700;color:var(--ink)}.image-lightbox-close{align-self:flex-end}.image-sample-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.image-sample-grid.single{grid-template-columns:minmax(0,220px)}.image-sample-card{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:12px;display:flex;flex-direction:column;gap:10px;min-height:220px}.image-sample-card.empty{justify-content:center;align-items:flex-start;background:#fcfaf6}.image-sample-label{font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}.image-sample-button{display:block}.image-sample-thumb{display:block;width:100%;height:150px;object-fit:cover;border-radius:14px;border:1px solid var(--line);background:#f7f2ea}.image-sample-caption{font-size:12px;color:var(--ink);word-break:break-word}.image-sample-empty{font-size:13px;color:var(--muted);line-height:1.5}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid .wide{grid-column:1/-1}.action-panel{margin:0 0 18px}.result{background:#101828;color:#d9e4ff;border-radius:16px;padding:14px;white-space:pre-wrap;overflow:auto;max-height:320px}.workspace-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}.workspace-tab{border:1px solid var(--line);background:var(--white);color:var(--ink);padding:10px 14px;border-radius:999px;font-weight:700;cursor:pointer;box-shadow:0 8px 24px rgba(15,29,58,.04)}.workspace-tab.active{background:var(--navy);color:#fff;border-color:var(--navy)}.workspace-summary{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.pipeline-section{margin-bottom:22px}.section-label{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 10px}.pipeline-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.pipeline-column{background:var(--white);border:1px solid var(--line);border-radius:22px;padding:16px;box-shadow:0 10px 35px rgba(15,29,58,.06)}.pipeline-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.pipeline-head h3{margin:0;font-size:16px;font-family:Georgia,serif;color:var(--navy)}.pipeline-list{display:flex;flex-direction:column;gap:10px}.pipeline-item{padding:12px;border:1px solid var(--line);border-radius:16px;background:#fcfaf6}.pipeline-item-title{font-weight:800;color:var(--ink);margin-bottom:4px}.empty-state{padding:16px;text-align:center;color:var(--muted)}.panel{background:var(--white);border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:0 10px 35px rgba(15,29,58,.06);margin-bottom:18px}.grid-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 16px}@media(max-width:1100px){.pipeline-grid,.image-sample-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:900px){.shell{grid-template-columns:1fr}.sidebar{position:relative}.cards{grid-template-columns:1fr}.topbar{display:block}.form-grid{grid-template-columns:1fr}.pipeline-grid,.image-sample-grid{grid-template-columns:1fr}.workspace-tabs{overflow:auto;padding-bottom:4px}.image-lightbox-panel{max-width:96vw;padding:14px}.table-thumb{width:60px;height:60px}.table-thumb.large{width:120px;height:120px}}
.workflow-section {
  margin-bottom: 22px;
}
.auction-status-layout {
  margin-bottom: 14px;
}
.auction-status-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.auction-status-tab {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15,29,58,.04);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.auction-status-tab span {
  font-size: 13px;
}
.auction-status-tab strong {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3eee7;
  color: var(--navy);
  font-size: 12px;
}
.auction-status-tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.auction-status-tab.active strong {
  background: rgba(255,255,255,.14);
  color: #fff;
}
.auction-status-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.auction-status-table-wrap {
  margin-top: 0;
}
.btn:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: saturate(0.65);
  box-shadow: none;
}
input:disabled,
select:disabled,
textarea:disabled,
input[readonly],
textarea[readonly] {
  background: #f2eee7;
  color: #7d8696;
  border-color: #d7d0c6;
  cursor: not-allowed;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
select:disabled,
input:disabled,
textarea:disabled {
  opacity: 1;
}
input[readonly],
textarea[readonly] {
  pointer-events: none;
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.workflow-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 10px 35px rgba(15,29,58,.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.workflow-card h4,
.workflow-step-panel h4 {
  margin: 0;
  font-size: 18px;
  color: var(--navy);
  font-family: Georgia, serif;
}
.workflow-card-head,
.workflow-card-footer,
.workflow-inline-action,
.workflow-step-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.workflow-card-stats {
  display: grid;
  gap: 10px;
}
.workflow-card-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fcfaf6;
}
.workflow-card-stats strong {
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.workflow-card-stats span {
  color: var(--ink);
  line-height: 1.45;
}
.workflow-checklist {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.workflow-check {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff9ef;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.workflow-check span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #9a6a00;
}
.workflow-check strong {
  color: var(--ink);
}
.workflow-check.done {
  background: #edf8ef;
  border-color: #cfe7d3;
}
.workflow-check.done span {
  color: #16733b;
}
.workflow-step-panel {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 35px rgba(15,29,58,.06);
}
.workflow-step-panel.active {
  border-color: #d9c38f;
  box-shadow: 0 12px 40px rgba(200,162,77,.16);
  background: #fffdf7;
}
.workflow-inline-action {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.field-help {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #6b7280;
}
.btn.small {
  padding: 8px 12px;
  font-size: 12px;
}
.stack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.additional-picture-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.additional-picture-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.additional-picture-field {
  flex: 1;
  margin: 0;
}
.additional-picture-remove {
  white-space: nowrap;
}
.additional-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.additional-info-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.additional-info-field {
  flex: 1;
  margin: 0;
}
.additional-info-remove {
  white-space: nowrap;
}
.rule-step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.rule-step-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.rule-step-field {
  flex: 1;
  margin: 0;
}
.rule-step-remove {
  white-space: nowrap;
}
.rule-preview-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fcfaf6;
  color: var(--ink);
  line-height: 1.5;
}
.rule-form-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 10px 35px rgba(15,29,58,.06);
}
.rule-form-section-emphasis {
  border-color: #d9c38f;
  background: #fffdf7;
  box-shadow: 0 12px 40px rgba(200,162,77,.12);
}
.rule-form-section-head {
  margin-bottom: 8px;
}
.rule-form-section-head h3 {
  margin: 0;
  font-size: 18px;
  color: var(--navy);
  font-family: Georgia, serif;
}
.rule-form-section-head p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.rule-form-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rule-form-section-grid .wide {
  grid-column: 1 / -1;
}
@media (max-width: 900px) {
  .additional-picture-row {
    flex-direction: column;
    align-items: stretch;
  }
  .additional-info-row {
    flex-direction: column;
    align-items: stretch;
  }
  .rule-step-row {
    flex-direction: column;
    align-items: stretch;
  }
  .workflow-grid,
  .workflow-checklist {
    grid-template-columns: 1fr;
  }
  .workflow-card-head,
  .workflow-card-footer,
  .workflow-inline-action,
  .workflow-step-head {
    flex-direction: column;
    align-items: stretch;
  }
  .rule-form-section-grid {
    grid-template-columns: 1fr;
  }
  .orders-delivery-modal-panel .history-insight-stack,
  .orders-delivery-modal-panel .workflow-checklist,
  .orders-delivery-modal-panel .workflow-inline-action,
  .orders-delivery-wizard-nav,
  .orders-delivery-facts {
    grid-template-columns: 1fr;
  }
}
.auction-cell-title {
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.auction-cell-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.auction-timing-stack,
.auction-live-cell,
.auction-rule-cell,
.auction-winner-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auction-rule-head,
.auction-rule-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.auction-rule-meta-row {
  align-items: center;
  flex-wrap: wrap;
}
.auction-rule-usage {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid #d8dbe4;
  background: #f5f7fb;
  color: #31415f;
}
.auction-rule-usage.shared {
  background: #fff3da;
  border-color: #e4c57d;
  color: #8a5a00;
}
.auction-rule-usage.single {
  background: #edf6ef;
  border-color: #cde3d2;
  color: #1d6a39;
}
.rule-summary-cell {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
}
.rule-preview-table-wrap {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: auto;
  background: var(--white);
}
.rule-preview-table-wrap.compact {
  margin-top: 0;
  border-radius: 14px;
}
.rule-preview-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
}
.rule-preview-table th,
.rule-preview-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  vertical-align: top;
}
.rule-preview-table th {
  background: #fbf5ec;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rule-preview-table.compact th,
.rule-preview-table.compact td {
  padding: 8px 10px;
  font-size: 11px;
}
.history-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}
.history-modal.open {
  display: flex;
}
.history-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 29, 58, 0.7);
}
.history-modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(1100px, 94vw);
  max-height: 88vh;
  padding: 22px;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 28px 90px rgba(15, 29, 58, 0.3);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.history-modal-panel h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 24px;
  color: var(--navy);
}
.history-modal-close {
  align-self: flex-end;
}
.history-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.history-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fcfaf6;
  min-width: 150px;
}
.history-pill strong {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.history-pill-link {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  font: inherit;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}
.history-pill-link:hover,
.history-pill-link:focus-visible {
  text-decoration: underline;
  outline: none;
}
.history-table-wrap {
  max-height: 56vh;
  overflow: auto;
}
.history-table-wrap table {
  min-width: 860px;
}
.history-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0;
}
.history-panel {
  margin-bottom: 0;
}
.history-panel h4 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--navy);
  font-family: Georgia, serif;
}
.history-panel.wide {
  grid-column: 1 / -1;
}
.history-insight-stack {
  display: grid;
  gap: 10px;
}
.history-insight-stack > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fcfaf6;
}
.publish-readiness-modal-panel {
  width: min(760px, 94vw);
}
.publish-readiness-panel {
  border: 1px solid #ead9a8;
  border-radius: 20px;
  background: #fff8e8;
  padding: 16px 18px;
}
.publish-readiness-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9a6a00;
  margin-bottom: 12px;
}
.publish-readiness-list {
  margin: 0 0 14px;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}
.publish-readiness-list li {
  color: var(--ink);
  line-height: 1.45;
}
.customer-detail-grid {
  align-items: start;
  gap: 14px;
}
.customer-detail-modal-panel {
  max-width: min(1120px, 94vw);
}
.customer-detail-summary {
  gap: 6px;
  margin-bottom: 12px;
}
.customer-detail-summary .history-pill {
  padding: 6px 9px;
  border-radius: 12px;
}
.customer-detail-summary .history-pill strong {
  font-size: 10px;
}
.customer-detail-summary .history-pill span {
  font-size: 11px;
}
.customer-hero-panel {
  background: linear-gradient(180deg, #fffdf9 0%, #f8f2e8 100%);
  border-color: #dfd1bb;
  padding: 12px;
}
.customer-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.customer-hero-kicker {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.customer-hero-top h4 {
  margin: 0 0 4px;
  font-size: 18px;
}
.customer-summary-head {
  margin-bottom: 12px;
}
.customer-summary-head h5 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--navy);
}
.customer-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.customer-summary-tile {
  border: 1px solid #d9cbb7;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  padding: 10px 12px;
}
.customer-summary-tile span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.customer-summary-tile strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.35;
  word-break: break-word;
}
.customer-hero-main {
  min-width: 0;
}
.customer-profile-tabs {
  margin: 0 0 10px;
}
.customer-profile-tab-panel {
  min-width: 0;
}
.customer-hero-subtitle {
  color: var(--muted);
  font-size: 12px;
}
.customer-hero-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.customer-hero-signal-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.customer-hero-signal {
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #e1d6c6;
}
.customer-hero-signal span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.customer-hero-signal strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.3;
  word-break: break-word;
}
.customer-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.customer-hero-grid-triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.customer-hero-grid-quad {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.customer-hero-column {
  min-width: 0;
}
.customer-category-card {
  border: 1px solid #e1d6c6;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  padding: 10px;
}
.customer-category-head {
  margin-bottom: 8px;
}
.customer-category-head h5 {
  margin: 0 0 3px;
  font-size: 12px;
  color: var(--navy);
}
.customer-category-head .subtitle {
  font-size: 11px;
  line-height: 1.35;
}
.customer-detail-tabs {
  margin: 2px 0 14px;
}
.customer-fact-list {
  display: grid;
  gap: 8px;
}
.customer-fact-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fcfaf6;
}
.customer-fact-row span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.customer-fact-row strong {
  color: var(--ink);
  font-size: 12px;
  text-align: right;
  line-height: 1.4;
  max-width: 58%;
  word-break: break-word;
}
.customer-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.customer-metric-grid-compact {
  gap: 8px;
}
.customer-metric-card {
  padding: 12px;
  border: 1px solid #e1d6c6;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.customer-metric-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.customer-metric-value {
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}
.customer-metric-grid-compact .customer-metric-card {
  padding: 10px 11px;
  border-radius: 14px;
}
.customer-metric-grid-compact .customer-metric-label {
  margin-bottom: 6px;
  font-size: 10px;
}
.customer-metric-grid-compact .customer-metric-value {
  font-size: 18px;
}
.customer-metric-grid-compact .customer-metric-meta {
  font-size: 10px;
  margin-top: 4px;
}
.customer-metric-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  margin-top: 6px;
}
.customer-detail-grid .history-panel {
  padding: 14px;
  border-radius: 18px;
}
.customer-detail-grid .history-panel h4 {
  margin-bottom: 6px;
  font-size: 15px;
}
.customer-detail-grid .history-panel .subtitle {
  font-size: 12px;
  margin-bottom: 10px;
}
.customer-detail-grid .table-wrap table {
  min-width: 760px;
}
.customer-detail-grid .table-wrap th,
.customer-detail-grid .table-wrap td {
  padding: 10px 11px;
  font-size: 12px;
}
.table-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.customer-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 220px;
}
.customer-row-actions-triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 320px;
}
.customer-row-actions .btn {
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
}
.customer-row-actions-wide {
  margin-top: 12px;
}
.history-ranking-wrap {
  max-height: 320px;
}
.cockpit-modal-panel {
  width: min(1280px, 96vw);
}
.orders-delivery-modal-panel {
  width: min(1020px, 92vw);
  padding: 18px;
  gap: 10px;
}
.orders-delivery-modal-panel .history-summary {
  gap: 6px;
}
.orders-delivery-modal-panel .history-pill {
  min-width: 118px;
  padding: 8px 10px;
  border-radius: 14px;
}
.orders-delivery-modal-panel .history-insight-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.orders-delivery-modal-panel .history-insight-stack > div {
  padding: 8px 10px;
  border-radius: 12px;
}
.orders-delivery-modal-panel .workflow-checklist {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.orders-delivery-modal-panel .workflow-check {
  padding: 8px 10px;
  border-radius: 12px;
}
.orders-delivery-modal-panel .workflow-step-panel {
  padding: 12px;
  border-radius: 16px;
  margin-bottom: 12px;
}
.orders-delivery-step-shell.completed {
  opacity: .72;
}
.orders-delivery-step-shell.dim {
  opacity: .42;
}
.orders-delivery-step-shell.active {
  opacity: 1;
}
.orders-delivery-modal-panel .workflow-step-head {
  margin-bottom: 6px;
}
.orders-delivery-modal-panel .workflow-step-panel h4 {
  font-size: 15px;
}
.orders-delivery-modal-panel .form-grid {
  gap: 6px 8px;
  align-items: start;
}
.orders-delivery-modal-panel .field {
  gap: 4px;
  margin: 4px 0;
}
.orders-delivery-modal-panel .field label {
  font-size: 11px;
}
.orders-delivery-modal-panel input,
.orders-delivery-modal-panel select,
.orders-delivery-modal-panel textarea {
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 13px;
}
.orders-delivery-modal-panel textarea {
  min-height: 58px;
}
.orders-delivery-modal-panel .actions {
  width: 100%;
  justify-content: flex-end;
  gap: 6px;
}
.orders-delivery-modal-panel .workflow-inline-action {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
  margin-top: 6px;
  padding-top: 8px;
}
.orders-delivery-modal-panel .workflow-inline-action .hint {
  margin: 0;
}
.orders-delivery-step-footer {
  position: sticky;
  bottom: -12px;
  z-index: 2;
  margin-top: 10px;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(255,253,248,0) 0%, rgba(255,253,248,.96) 35%, rgba(255,253,248,1) 100%);
}
.orders-delivery-step-footer .actions {
  justify-content: flex-end;
}
.orders-delivery-wizard-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.orders-delivery-wizard-step {
  text-align: left;
  border: 1px solid var(--line);
  background: #fcfaf6;
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--ink);
}
.orders-delivery-wizard-step span {
  display: block;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.orders-delivery-wizard-step strong {
  display: block;
  font-size: 13px;
  color: var(--navy);
}
.orders-delivery-wizard-step.active {
  background: var(--navy);
  border-color: var(--navy);
}
.orders-delivery-wizard-step.active span,
.orders-delivery-wizard-step.active strong {
  color: #fff;
}
.orders-delivery-wizard-step.done {
  background: #edf8ef;
  border-color: #cfe7d3;
}
.orders-delivery-wizard-step:disabled {
  opacity: .45;
}
.orders-delivery-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.orders-delivery-fact {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfaf6;
}
.orders-delivery-overview-panel .orders-delivery-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}
.orders-delivery-overview-panel .orders-delivery-fact {
  padding: 7px 8px;
  border-radius: 10px;
}
.orders-delivery-fact span {
  display: block;
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.orders-delivery-overview-panel .orders-delivery-fact span {
  font-size: 9px;
}
.orders-delivery-fact strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.35;
}
.orders-delivery-overview-panel .orders-delivery-fact strong {
  font-size: 12px;
  line-height: 1.25;
}
.orders-delivery-wizard-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.cockpit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.cockpit-panel {
  margin-bottom: 0;
}
.cockpit-dev-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.cockpit-panel h4 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--navy);
  font-family: Georgia, serif;
}
.cockpit-table-wrap {
  max-height: 260px;
}
.cockpit-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.cockpit-list-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fcfaf6;
  margin-bottom: 10px;
}
.live-ops-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.live-ops-sidebar,
.live-ops-detail {
  min-width: 0;
}
.live-ops-room-list {
  display: grid;
  gap: 12px;
}
.live-ops-room-card {
  width: 100%;
  text-align: left;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf9;
  cursor: pointer;
}
.live-ops-room-card.active {
  border-color: var(--navy);
  box-shadow: 0 14px 30px rgba(21, 34, 56, 0.08);
}
.live-ops-room-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(21, 34, 56, 0.06);
}
.live-ops-room-card h4 {
  margin: 10px 0 6px;
  font-size: 17px;
  color: var(--navy);
}
.live-ops-room-price {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}
.live-ops-room-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.live-ops-room-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.live-ops-room-meta strong {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}
.live-ops-room-meta span {
  display: block;
  color: var(--navy);
  font-size: 13px;
}
.live-ops-room-panel {
  display: grid;
  gap: 16px;
}
.live-ops-monitor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .95fr);
  gap: 16px;
  align-items: start;
}
.live-ops-monitor-window {
  border-radius: 26px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 191, 73, 0.18), transparent 28%),
    linear-gradient(135deg, #10243d 0%, #18385d 55%, #0b1c30 100%);
  color: #f7f4ef;
  box-shadow: 0 22px 50px rgba(10, 21, 37, 0.2);
  display: grid;
  gap: 18px;
}
.live-ops-customer-stage {
  gap: 22px;
}
.live-ops-monitor-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.live-ops-window-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #f6c56d;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live-ops-monitor-window h3 {
  margin: 12px 0 6px;
  font-size: 30px;
  line-height: 1.1;
  color: #fffaf3;
}
.live-ops-monitor-subtitle {
  color: rgba(247, 244, 239, 0.78);
  font-size: 14px;
}
.live-ops-monitor-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.live-ops-monitor-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.live-ops-monitor-metric {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.live-ops-monitor-metric span {
  display: block;
  font-size: 12px;
  color: rgba(247, 244, 239, 0.72);
  margin-bottom: 6px;
}
.live-ops-monitor-metric strong {
  display: block;
  font-size: 27px;
  color: #fffaf3;
}
.live-ops-monitor-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.live-ops-monitor-summary div {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(8, 18, 31, 0.32);
}
.live-ops-monitor-summary strong {
  display: block;
  font-size: 11px;
  color: rgba(247, 244, 239, 0.66);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.live-ops-monitor-summary span {
  display: block;
  color: #fffaf3;
  font-size: 14px;
  line-height: 1.35;
}
.live-ops-customer-stage-main {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.live-ops-customer-media {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  min-height: 240px;
}
.live-ops-customer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.live-ops-customer-media-empty {
  height: 100%;
  min-height: 240px;
  display: grid;
  place-items: center;
  color: rgba(247, 244, 239, 0.7);
  font-size: 14px;
}
.live-ops-customer-stage-board {
  display: grid;
  gap: 14px;
}
.live-ops-customer-stage-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.live-ops-customer-stat,
.live-ops-customer-price-row > div,
.live-ops-customer-stage-meta > div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.live-ops-customer-stat span,
.live-ops-customer-price-row span,
.live-ops-customer-stage-meta strong {
  display: block;
  font-size: 12px;
  color: rgba(247, 244, 239, 0.68);
  margin-bottom: 6px;
}
.live-ops-customer-stat strong {
  display: block;
  font-size: 34px;
  color: #fffaf3;
  letter-spacing: .03em;
}
.live-ops-customer-price-row {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 12px;
}
.live-ops-customer-price-row strong {
  display: block;
  font-size: 28px;
  color: #fffaf3;
}
.live-ops-customer-stage-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.live-ops-customer-stage-meta span {
  display: block;
  color: #fffaf3;
  font-size: 14px;
  line-height: 1.35;
}
.live-ops-customer-stage-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(8,18,31,0.34);
}
.live-ops-customer-stage-cta .hint {
  color: rgba(247, 244, 239, 0.72);
}
.live-ops-side-stack {
  display: grid;
  gap: 16px;
}
.live-ops-window {
  border-radius: 22px;
}
.live-ops-window-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.live-ops-window-wide {
  grid-column: 1 / -1;
}
.live-ops-feed-list {
  display: grid;
  gap: 10px;
}
.live-ops-feed-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffdf9;
}
.live-ops-feed-row div {
  display: grid;
  gap: 4px;
}
.live-ops-feed-row strong {
  color: var(--navy);
  font-size: 14px;
}
.live-ops-feed-row span {
  color: var(--muted);
  font-size: 12px;
}
.live-ops-top-bidders {
  display: grid;
  gap: 10px;
}
.live-ops-top-bidder-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fffdf9;
}
.live-ops-top-bidder-rank {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #10243d;
  color: #fffaf3;
  font-weight: 700;
}
.live-ops-top-bidder-row strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
}
.live-ops-top-bidder-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.live-ops-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .history-analytics-grid,
  .cockpit-grid,
  .cockpit-split,
  .live-ops-layout,
  .live-ops-monitor-layout,
  .live-ops-grid {
    grid-template-columns: 1fr;
  }
  .live-ops-window-grid,
  .live-ops-monitor-metrics,
  .live-ops-monitor-summary,
  .live-ops-customer-stage-main,
  .live-ops-customer-stage-stats,
  .live-ops-customer-price-row,
  .live-ops-customer-stage-meta {
    grid-template-columns: 1fr;
  }
  .live-ops-monitor-top,
  .live-ops-feed-row,
  .live-ops-customer-stage-cta {
    flex-direction: column;
  }
  .live-ops-monitor-badges {
    justify-content: flex-start;
  }
  .customer-hero-top,
  .customer-fact-row {
    flex-direction: column;
  }
  .customer-hero-tags {
    justify-content: flex-start;
  }
  .customer-hero-grid,
  .customer-metric-grid,
  .customer-summary-strip {
    grid-template-columns: 1fr;
  }
  .auction-status-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .customer-row-actions {
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .customer-row-actions-triple {
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .customer-fact-row strong {
    text-align: left;
    max-width: 100%;
  }
  .workflow-grid,
  .workflow-checklist {
    grid-template-columns: 1fr;
  }
  .cockpit-dev-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.settings-repeat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.settings-repeat-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fcfaf6;
}

.settings-repeat-action {
  min-width: 120px;
}

@media (max-width: 900px) {
  .customer-detail-modal-panel {
    max-width: 96vw;
  }
  .customer-detail-grid {
    gap: 12px;
  }
  .customer-hero-grid-triple {
    grid-template-columns: 1fr;
  }
  .customer-hero-grid-quad {
    grid-template-columns: 1fr;
  }
  .customer-hero-signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .table-pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .settings-repeat-row {
    grid-template-columns: 1fr;
  }
}
