.aibos-tool-center,
.aibos-tool-center * {
  box-sizing: border-box;
}

.aibos-tool-center {
  --bd-brand: #a8244f;
  --bd-brand-dark: #7f1738;
  --bd-ink: #2f2928;
  --bd-muted: #86777a;
  --bd-line: #eadfdd;
  --bd-soft: #fbf7f5;
  min-height: calc(100vh - 52px);
  color: var(--bd-ink);
  font: 13px/1.5 "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

.aibos-tool-center button,
.aibos-tool-center input,
.aibos-tool-center select,
.aibos-tool-center textarea {
  font: inherit;
}

.bd-center-tabs {
  display: flex;
  align-items: stretch;
  gap: 36px;
  min-height: 58px;
  margin: 0 0 14px;
  padding: 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 0;
  border-bottom: 1px solid var(--bd-line);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 3px 10px rgba(91, 51, 57, .05);
}

.bd-center-tabs::-webkit-scrollbar {
  display: none;
}

.bd-center-tabs button {
  position: relative;
  flex: 0 0 auto;
  min-height: 58px;
  padding: 0 4px;
  white-space: nowrap;
  color: #332d2d;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.bd-subnav button,
.bd-button {
  min-height: 34px;
  padding: 7px 14px;
  white-space: nowrap;
  color: #55494b;
  border: 1px solid var(--bd-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.bd-subnav button.active,
.bd-button.primary {
  color: #fff;
  border-color: var(--bd-brand);
  background: var(--bd-brand);
}

.bd-center-tabs button:hover,
.bd-center-tabs button:focus-visible,
.bd-center-tabs button.active {
  color: var(--bd-brand);
  background: transparent;
}

.bd-center-tabs button.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--bd-brand);
  content: "";
}

@media (max-width: 600px) {
  .bd-center-tabs {
    gap: 24px;
    min-height: 52px;
    padding: 0 10px;
  }

  .bd-center-tabs button {
    min-height: 52px;
  }
}

.bd-button.flow {
  border-color: #cf9cae;
  background: #fff5f8;
  color: var(--bd-brand-dark);
}
.bd-button.small{height:32px;padding:0 12px;font-size:12px}
.bd-governance{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.bd-governance>section{border:1px solid var(--bd-line);border-radius:10px;overflow:hidden;background:#fff}
.bd-governance>section>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;background:#fff8fa;border-bottom:1px solid var(--bd-line)}
.bd-governance header strong,.bd-governance header small{display:block}.bd-governance header small{margin-top:3px;color:var(--bd-muted);font-size:12px}
.bd-attachment-list,.bd-approval-list{max-height:160px;overflow:auto;padding:8px}
.bd-attachment-list>div{display:grid;grid-template-columns:1fr auto;border-bottom:1px solid #f0e5e8}
.bd-attachment-list>div>button:first-child{display:grid;grid-template-columns:30px 1fr;gap:2px 8px;width:100%;padding:8px;border:0;background:#fff;text-align:left;cursor:pointer}
.bd-attachment-list>div>button:first-child>span{grid-row:1/3;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#fbe9ef;color:var(--bd-brand)}
.bd-attachment-list .archive{align-self:center;margin-right:6px;border:0;background:transparent;color:var(--bd-brand);font-size:12px;cursor:pointer}
.bd-attachment-list small,.bd-approval-list small{color:var(--bd-muted);font-size:12px}
.bd-attachment-list p,.bd-approval-list p{margin:12px;color:var(--bd-muted);font-size:12px}
.bd-approval-list>div{display:grid;grid-template-columns:58px 1fr;gap:3px 8px;padding:8px;border-bottom:1px solid #f0e5e8}
.bd-approval-list>div>span{grid-row:1/3;font-size:12px;font-weight:700;color:var(--bd-brand)}
.bd-receipt-evidence{margin-top:14px;border:1px solid #cfe5d9;border-radius:10px;background:#f3faf6;overflow:hidden}
.bd-receipt-evidence.exception{border-color:#ead5b6;background:#fff8ee}
.bd-receipt-evidence.empty{border-color:var(--bd-line);background:#fcfaf9}
.bd-receipt-evidence>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border-bottom:1px solid rgba(72,128,96,.15)}
.bd-receipt-evidence>header strong,.bd-receipt-evidence>header small{display:block}
.bd-receipt-evidence>header small{margin-top:2px;color:var(--bd-muted);font-size:11px}
.bd-receipt-evidence>header>span{padding:3px 8px;border-radius:12px;background:#fff;color:#2c7953;font-size:11px;font-weight:700}
.bd-receipt-evidence.exception>header>span{color:#a66522}
.bd-receipt-evidence.empty>header>span{color:var(--bd-muted)}
.bd-receipt-evidence>p{margin:0;padding:13px;color:var(--bd-muted);font-size:12px}
.bd-receipt-evidence>dl{display:grid;grid-template-columns:repeat(4,1fr);margin:0;padding:13px}
.bd-receipt-evidence dt{color:var(--bd-muted);font-size:10px}
.bd-receipt-evidence dd{margin:3px 0 0;font-size:12px;font-weight:700}
.bd-receipt-evidence>footer{display:flex;gap:8px;padding:0 13px 13px}
.bd-receipt-evidence>footer button{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:5px 10px;border:1px solid #d8e6dd;border-radius:7px;background:#fff;color:#39765a;cursor:pointer}
.bd-receipt-evidence>footer button:disabled{opacity:.45;cursor:not-allowed}
.bd-verification-receipt{display:flex;align-items:center;gap:9px;margin:0 15px 13px;padding:10px 12px;border-radius:8px;background:var(--bd-green-soft);color:var(--bd-green)}
.bd-verification-receipt>span strong,.bd-verification-receipt>span small{display:block}
.bd-verification-receipt>span small{margin-top:2px;color:#70827a;font-size:9px}
@media(max-width:760px){.bd-governance{grid-template-columns:1fr}}
@media(max-width:760px){.bd-receipt-evidence>dl{grid-template-columns:1fr 1fr}.bd-receipt-evidence>footer{display:grid;grid-template-columns:1fr 1fr}}

.bd-business-shell {
  display: grid;
  gap: 14px;
}

.bd-overview {
  display: grid;
  grid-template-columns: minmax(230px, 1.35fr) repeat(4, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--bd-line);
  border-radius: 12px;
  background: linear-gradient(105deg, #fff 0%, #fffafa 62%, #fbf1ef 100%);
}

.bd-overview-title span,
.bd-dialog-title span {
  display: block;
  color: var(--bd-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.bd-overview-title h1 {
  margin: 3px 0 2px;
  font-size: 22px;
  line-height: 1.2;
}

.bd-overview-title p,
.bd-stat small,
.bd-card-head p,
.bd-empty,
.bd-tip {
  margin: 0;
  color: var(--bd-muted);
  font-size: 12px;
}

.bd-stat {
  display: grid;
  align-content: center;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid var(--bd-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .88);
}

.bd-stat span {
  color: var(--bd-muted);
  font-size: 12px;
}

.bd-stat strong {
  margin: 2px 0;
  font-size: 20px;
  line-height: 1.2;
}

.bd-overview-actions {
  display: grid;
  align-content: center;
  gap: 7px;
}

.bd-subnav {
  display: flex;
  gap: 6px;
  padding: 0 4px;
  overflow-x: auto;
}

.bd-subnav button {
  border-color: transparent;
  background: transparent;
}

.bd-subnav button.active {
  color: var(--bd-brand);
  border-color: var(--bd-line);
  background: #fff;
  box-shadow: inset 0 -2px var(--bd-brand);
}

.bd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bd-card,
.bd-panel {
  overflow: hidden;
  border: 1px solid var(--bd-line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(70, 39, 43, .04);
}

.bd-flow-card {
  min-height: 138px;
  padding: 15px;
  cursor: pointer;
}

.bd-flow-card:hover {
  border-color: #d3a6af;
  transform: translateY(-1px);
}

.bd-flow-card i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  color: var(--bd-brand);
  border-radius: 10px;
  background: #f8e9ed;
  font-style: normal;
  font-weight: 800;
}

.bd-flow-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.bd-flow-card p {
  margin: 0;
  color: var(--bd-muted);
  font-size: 12px;
}

.bd-flow-card small {
  display: block;
  margin-top: 9px;
  color: var(--bd-brand);
}

.bd-card-head,
.bd-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--bd-line);
}

.bd-card-head h2 {
  margin: 0;
  font-size: 16px;
}

.bd-toolbar {
  background: var(--bd-soft);
}

.bd-toolbar .bd-search {
  position: relative;
  flex: 1;
  max-width: 520px;
}

.bd-toolbar input,
.bd-toolbar select,
.bd-form input,
.bd-form select,
.bd-form textarea,
.bd-verify-box input {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  color: var(--bd-ink);
  border: 1px solid #dfd3d1;
  border-radius: 7px;
  background: #fff;
}

.bd-table-wrap {
  width: 100%;
  overflow: auto;
}

.bd-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.bd-table th,
.bd-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--bd-line);
  text-align: left;
  vertical-align: middle;
}

.bd-table th {
  color: var(--bd-muted);
  background: #fcfaf9;
  font-size: 12px;
  font-weight: 600;
}

.bd-table td strong,
.bd-table td small {
  display: block;
}

.bd-table td small {
  color: var(--bd-muted);
  font-size: 12px;
}

.bd-table button {
  padding: 3px 7px;
  color: var(--bd-brand);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bd-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  color: #7c4050;
  border-radius: 999px;
  background: #f7e9ec;
  font-size: 12px;
}

.bd-status.done {
  color: #257052;
  background: #e8f4ed;
}

.bd-status.warn {
  color: #9a5b08;
  background: #fff2d8;
}

.bd-customer-grid,
.bd-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.bd-customer-card,
.bd-template-card {
  padding: 14px;
  border: 1px solid var(--bd-line);
  border-radius: 9px;
  background: #fff;
}

.bd-customer-card h3,
.bd-template-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.bd-customer-card p,
.bd-template-card p {
  margin: 3px 0;
  color: var(--bd-muted);
  font-size: 12px;
}

.bd-customer-card footer,
.bd-template-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--bd-line);
}

.bd-customer-card button,
.bd-template-card button {
  color: var(--bd-brand);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bd-verify-layout {
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(420px, 1.15fr);
  gap: 14px;
}

.bd-verify-box {
  padding: 18px;
}

.bd-verify-box h2 {
  margin: 0 0 5px;
  font-size: 18px;
}

.bd-verify-form {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.bd-verify-result {
  padding: 15px;
  border: 1px solid #d9e9df;
  border-radius: 9px;
  background: #f3faf6;
}

.bd-verify-result.invalid {
  border-color: #efd2d2;
  background: #fff5f5;
}

.bd-verify-result h3 {
  margin: 0 0 7px;
}

.bd-verify-result dl,
.bd-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
}

.bd-verify-result dt,
.bd-detail-meta span {
  color: var(--bd-muted);
  font-size: 12px;
}

.bd-verify-result dd,
.bd-detail-meta strong {
  margin: 1px 0 0;
  font-weight: 700;
}

.bd-permission {
  padding: 40px;
  border: 1px solid var(--bd-line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.bd-permission h2 {
  margin: 0 0 8px;
}

.bd-permission p {
  margin: 0 auto;
  max-width: 620px;
  color: var(--bd-muted);
}

.bd-modal {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(42, 31, 32, .54);
}

.bd-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(920px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(38, 20, 23, .25);
}

.bd-dialog.wide {
  width: min(1120px, 97vw);
}

.bd-dialog > header,
.bd-dialog > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--bd-line);
}

.bd-dialog > footer {
  justify-content: flex-end;
  border-top: 1px solid var(--bd-line);
  border-bottom: 0;
}

.bd-dialog-title h2 {
  margin: 2px 0 0;
  font-size: 19px;
}

.bd-dialog-close {
  width: 34px;
  min-height: 34px;
  padding: 0;
  color: var(--bd-muted);
  border: 1px solid var(--bd-line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.bd-dialog-body {
  min-height: 0;
  padding: 16px 18px;
  overflow: auto;
}

.bd-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bd-form label {
  display: grid;
  gap: 5px;
  color: var(--bd-muted);
  font-size: 12px;
}

.bd-form label.wide {
  grid-column: span 2;
}

.bd-form label.full {
  grid-column: 1 / -1;
}

.bd-form textarea {
  min-height: 68px;
  resize: vertical;
}

.bd-line-editor {
  grid-column: 1 / -1;
  overflow: auto;
  border: 1px solid var(--bd-line);
  border-radius: 8px;
}

.bd-line-editor table {
  width: 100%;
  min-width: 1240px;
  border-collapse: collapse;
}

.bd-line-editor th,
.bd-line-editor td {
  padding: 6px;
  border-right: 1px solid var(--bd-line);
  border-bottom: 1px solid var(--bd-line);
  text-align: center;
}

.bd-line-editor th {
  color: var(--bd-muted);
  background: var(--bd-soft);
  font-size: 12px;
}

.bd-line-editor input {
  min-width: 70px;
  text-align: center;
}

.bd-line-editor output {
  display: inline-flex;
  min-width: 72px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  color: var(--bd-ink);
  font-variant-numeric: tabular-nums;
}
.bd-line-editor [data-line-match] { display:block; margin-top:3px; color:#7a6a70; font-size:10px; line-height:1.25; white-space:normal; }

.bd-line-image-editor {
  display: grid;
  min-width: 146px;
  gap: 5px;
}

.bd-line-image-preview {
  display: grid;
  width: 64px;
  height: 48px;
  margin: 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--bd-line);
  background: #fff;
  color: var(--bd-muted);
  font-size: 10px;
}

.bd-line-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bd-line-image-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr 28px;
  gap: 3px;
}

.bd-line-image-actions button,
.bd-line-image-actions select {
  min-width: 0;
  height: 28px;
  padding: 2px 4px;
  border: 1px solid var(--bd-line);
  border-radius: 5px;
  background: #fff;
  color: var(--bd-accent);
  font-size: 10px;
}

.bd-detail-chain {
  display: flex;
  gap: 7px;
  margin: 14px 0;
  overflow-x: auto;
}

.bd-detail-chain span {
  min-width: 116px;
  padding: 8px 10px;
  text-align: center;
  border: 1px solid var(--bd-line);
  border-radius: 8px;
  background: var(--bd-soft);
}

.bd-source-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 8px;
  padding: 9px 10px;
  border: 1px solid #dce8df;
  border-radius: 9px;
  background: #f4faf6;
}

.bd-source-links > strong {
  color: #315b42;
  font-size: 12px;
  white-space: nowrap;
}

.bd-source-links span {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #fff;
}

.bd-source-links b,
.bd-source-links small,
.bd-source-links em {
  font-size: 11px;
  font-style: normal;
}

.bd-source-links em {
  color: #24754a;
}

.bd-a4-wrap {
  padding: 18px;
  overflow: auto;
  background: #eeeae7;
}

.bd-a4-wrap,
.bd-a4-wrap * {
  box-sizing: border-box;
}

.bd-a4 {
  position: relative;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 13mm 13mm 10mm;
  color: #281f1f;
  background: #fff;
  box-shadow: 0 10px 36px rgba(45, 30, 30, .16);
}

.bd-a4-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  padding-top: 5mm;
  border-top: 1.5mm solid var(--bd-brand-dark);
}

.bd-a4-logo {
  width: 88mm;
  height: 20mm;
  object-fit: contain;
  object-position: left center;
}

.bd-a4-code {
  text-align: right;
}

.bd-a4-code span {
  display: block;
  color: var(--bd-brand-dark);
  letter-spacing: .12em;
}

.bd-a4-code strong {
  font-size: 16px;
}

.bd-a4-title {
  margin: 8mm 0 6mm;
  text-align: center;
}

.bd-a4-title h1 {
  margin: 0;
  color: var(--bd-brand-dark);
  font: 700 28px/1.2 "Microsoft YaHei", serif;
  letter-spacing: .18em;
}

.bd-a4-title p {
  margin: 2mm 0 0;
  color: #766568;
}

.bd-a4-info,
.bd-a4-items {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.bd-a4-info td {
  height: 12mm;
  padding: 2mm;
  border: 1px solid #ead8d5;
}

.bd-a4-info td.label {
  width: 26mm;
  color: var(--bd-brand-dark);
  font-weight: 700;
}

.bd-a4-items {
  margin-top: 5mm;
}

.bd-a4-items th,
.bd-a4-items td {
  height: 16mm;
  padding: 1.5mm;
  border: 1px solid #dcbfc0;
  text-align: center;
}

.bd-a4-items th {
  height: 9mm;
  color: #fff;
  background: var(--bd-brand-dark);
}

.bd-a4-total {
  display: flex;
  justify-content: space-around;
  gap: 10mm;
  padding: 5mm;
  border: 1px solid #ead8d5;
  border-top: 0;
  background: #fff9f7;
}

.bd-a4-total strong {
  color: var(--bd-brand-dark);
  font-size: 20px;
}

.bd-a4-bottom {
  display: grid;
  grid-template-columns: 1fr 29mm;
  gap: 5mm;
  margin-top: 5mm;
}

.bd-signatures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 28mm;
  border: 1px solid #ead8d5;
}

.bd-signatures div {
  padding: 3mm;
  border-right: 1px solid #ead8d5;
}

.bd-signatures div:last-child {
  border-right: 0;
}

.bd-qr {
  display: grid;
  place-items: center;
  padding: 2mm;
  border: 1px solid #ead8d5;
  text-align: center;
}

.bd-qr-grid {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  width: 22mm;
  height: 22mm;
  padding: 1mm;
  background: #fff;
}
.bd-real-qr {
  display: block;
  width: 27mm;
  height: 27mm;
  margin: 2mm auto 1mm;
  background: #fff;
}

.bd-qr-grid i {
  background: #fff;
}

.bd-qr-grid i.on {
  background: #171313;
}

.bd-a4-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 5mm;
  padding-top: 3mm;
  color: #786c6d;
  border-top: 1px solid #ddd0ce;
  font-size: 11px;
}

/* Delivery note — approved A4 portrait template */
.bd-a4-tone-external {
  --bd-document-accent: #670907;
  --bd-document-emphasis: #a00707;
  --bd-document-line: #fda2a7;
  --bd-document-soft: #fcf6f6;
}

.bd-a4-tone-internal {
  --bd-document-accent: #25527c;
  --bd-document-emphasis: #024b79;
  --bd-document-line: #82afd9;
  --bd-document-soft: #dbe4ed;
}

.bd-a4-delivery {
  --bd-delivery-wine: var(--bd-document-accent);
  --bd-delivery-red: var(--bd-document-emphasis);
  --bd-delivery-line: var(--bd-document-line);
  --bd-delivery-cn-font: "Source Han Serif CN", "Source Han Serif SC", "思源宋体 CN", "思源宋体", SimSun, serif;
  --bd-delivery-latin-font: Arial, "Arial Unicode MS", sans-serif;
  box-sizing: border-box;
  height: 297mm;
  min-height: 297mm;
  padding: 5mm 5mm 4mm;
  overflow: hidden;
  color: #241d1d;
  font-family: var(--bd-delivery-cn-font);
  font-size: 10pt;
  font-weight: 700;
  line-height: 1.32;
}

.bd-delivery-topline {
  width: 100%;
  height: 1.2mm;
  background: var(--bd-delivery-wine);
}

.bd-delivery-head {
  position: relative;
  height: 20mm;
}

.bd-delivery-logo {
  position: absolute;
  top: 5mm;
  left: 50%;
  width: 78mm;
  height: 13mm;
  object-fit: contain;
  object-position: center;
  transform: translateX(-50%);
}

.bd-delivery-code {
  position: absolute;
  top: 4mm;
  right: 0;
  width: 46mm;
  text-align: center;
}

.bd-delivery-code span {
  display: block;
  margin-bottom: 1.5mm;
  color: var(--bd-delivery-wine);
  font-family: var(--bd-delivery-latin-font);
  font-size: 11pt;
  font-weight: 400;
  letter-spacing: .08em;
}

.bd-document-barcode {
  display: block;
  width: 43mm;
  height: 10.5mm;
  margin: 0 auto 1mm;
  fill: #111;
  shape-rendering: crispEdges;
}

.bd-delivery-code strong {
  display: block;
  color: #352d2d;
  font-family: var(--bd-delivery-cn-font);
  font-size: 11pt;
  font-weight: 700;
  letter-spacing: .02em;
}

.bd-delivery-title {
  display: grid;
  align-content: center;
  height: 23mm;
  text-align: center;
}

.bd-delivery-title h1 {
  margin: 0;
  color: var(--bd-delivery-wine);
  font-family: var(--bd-delivery-cn-font);
  font-size: 27pt;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .05em;
  transform: translateY(-1.6mm);
}

.bd-delivery-title p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3mm;
  margin: 1.5mm 0 0;
  color: #65595a;
  font-family: var(--bd-delivery-cn-font);
  font-size: 10pt;
  font-weight: 700;
  letter-spacing: .06em;
}

.bd-delivery-title p i {
  width: 6mm;
  height: 1px;
  background: var(--bd-delivery-line);
}

.bd-delivery-info,
.bd-delivery-items {
  width: 200mm;
  min-width: 0;
  max-width: 200mm;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.bd-delivery-info {
  height: 40mm;
  overflow: hidden;
  border: .5mm solid var(--bd-delivery-line);
  border-radius: 1.5mm;
}

.bd-delivery-info col:nth-child(1),
.bd-delivery-info col:nth-child(3) {
  width: 33mm;
}

.bd-delivery-info col:nth-child(2) {
  width: 66mm;
}

.bd-delivery-info th,
.bd-delivery-info td {
  height: 10mm;
  padding: 1.3mm 2.5mm;
  border-right: .5mm dashed var(--bd-delivery-line);
  border-bottom: .5mm dashed var(--bd-delivery-line);
  vertical-align: middle;
}

.bd-delivery-info tr:last-child th,
.bd-delivery-info tr:last-child td {
  border-bottom: 0;
}

.bd-delivery-info th:last-child,
.bd-delivery-info td:last-child {
  border-right: 0;
}

.bd-delivery-info th {
  color: #3a3030;
  font-family: var(--bd-delivery-cn-font);
  font-size: 11pt;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.bd-delivery-info th .bd-icon {
  display: inline-block;
  width: 5mm;
  height: 5mm;
  margin-right: 2mm;
  color: var(--bd-delivery-red);
  vertical-align: -3px;
}

.bd-delivery-info td {
  font-family: var(--bd-delivery-cn-font);
  font-size: 11pt;
  font-weight: 700;
  letter-spacing: .01em;
}

.bd-delivery-items {
  margin-top: 2.5mm;
  border-top: .5mm solid var(--bd-delivery-red);
  border-left: .5mm solid var(--bd-delivery-line);
  border-bottom: .5mm solid var(--bd-delivery-line);
}

.bd-delivery-items col.image { width: 12%; }
.bd-delivery-items col.name { width: 11%; }
.bd-delivery-items col.sku { width: 11%; }
.bd-delivery-items col.color { width: 9%; }
.bd-delivery-items col.spec { width: 9%; }
.bd-delivery-items col.qty { width: 9%; }
.bd-delivery-items col.unit { width: 8%; }
.bd-delivery-items col.price { width: 8%; }
.bd-delivery-items col.amount { width: 11%; }
.bd-delivery-items col.remark { width: 11%; }

.bd-delivery-items th,
.bd-delivery-items td {
  padding: 1mm;
  border-right: .5mm solid var(--bd-delivery-line);
  border-bottom: .5mm solid var(--bd-delivery-line);
  overflow-wrap: anywhere;
  text-align: center;
  vertical-align: middle;
}

.bd-delivery-items thead th {
  height: 11.2mm;
  color: #fff;
  background: var(--bd-delivery-wine);
  font-family: var(--bd-delivery-cn-font);
  font-size: 10pt;
  font-weight: 700;
  letter-spacing: .01em;
}

.bd-delivery-items tbody tr {
  height: 24mm;
}

.bd-delivery-items tbody td {
  height: 24mm;
  font-family: var(--bd-delivery-cn-font);
  font-size: 10pt;
  font-weight: 700;
}

.bd-delivery-items tbody tr:last-child td {
  border-bottom: 0;
}

.bd-delivery-items tbody td.bd-item-code,
.bd-delivery-items tbody td.bd-item-number {
  font-family: var(--bd-delivery-cn-font);
  font-weight: 700;
}

.bd-delivery-items tbody td img {
  display: block;
  width: 22.5mm;
  height: 22.5mm;
  margin: 0 auto;
  object-fit: contain;
}

.bd-delivery-items tfoot td {
  height: 15.8mm;
  padding: 0;
  border-top: .5mm solid var(--bd-delivery-line);
  border-bottom: 0;
  background: var(--bd-document-soft);
}

.bd-delivery-total-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  height: 100%;
}

.bd-delivery-items tfoot span {
  display: grid;
  grid-template-columns: 9mm auto auto;
  grid-template-rows: 6mm 7mm;
  align-items: center;
  justify-content: center;
  column-gap: 3mm;
  width: 100%;
  height: 100%;
  text-align: left;
}

.bd-delivery-items tfoot span:first-child {
  border-right: .5mm solid var(--bd-delivery-line);
}

.bd-delivery-items tfoot .bd-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 9mm;
  height: 9mm;
  padding: 1.8mm;
  color: var(--bd-delivery-red);
  border: .5mm solid var(--bd-delivery-red);
  border-radius: 50%;
}

.bd-delivery-items tfoot b {
  grid-column: 2 / 4;
  grid-row: 1;
  align-self: end;
  font-family: var(--bd-delivery-cn-font);
  font-size: 11pt;
  line-height: 1.1;
}

.bd-delivery-items tfoot strong {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  color: var(--bd-delivery-wine);
  font-family: var(--bd-delivery-cn-font);
  font-size: 18pt;
  font-weight: 700;
  line-height: 1;
}

.bd-delivery-items tfoot em {
  grid-column: 3;
  grid-row: 2;
  align-self: center;
  margin-left: -1.5mm;
  color: #44393a;
  font-style: normal;
  font-size: 10pt;
}

.bd-delivery-address {
  display: flex;
  align-items: center;
  min-height: 11mm;
  padding: 1mm;
  color: #302727;
  font-family: var(--bd-delivery-cn-font);
  font-size: 10pt;
  font-weight: 700;
}

.bd-delivery-address .bd-icon {
  flex: 0 0 5mm;
  width: 5mm;
  height: 5mm;
  margin-right: 2mm;
  color: var(--bd-delivery-red);
}

.bd-delivery-address b {
  margin-right: 1.5mm;
  font-family: var(--bd-delivery-cn-font);
}

.bd-delivery-bottom {
  display: grid;
  grid-template-columns: 166mm 30mm;
  gap: 4mm;
  height: 30mm;
}

.bd-delivery-signatures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: .5mm solid var(--bd-delivery-line);
  border-radius: 1mm;
}

.bd-delivery-signatures > div {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 2mm;
  padding: 3mm 2mm 1.5mm;
  overflow: visible;
  border-right: .35mm solid #564848;
  text-align: center;
}

.bd-delivery-signatures > div:last-child {
  border-right: 0;
}

.bd-delivery-signatures b {
  margin-bottom: 2mm;
  color: var(--bd-delivery-wine);
  text-align: center;
  font-family: var(--bd-delivery-cn-font);
  font-size: 11pt;
  font-weight: 700;
}

.bd-delivery-signatures span {
  width: 100%;
  font-family: var(--bd-delivery-cn-font);
  font-size: 9pt;
  font-weight: 700;
  text-align: center;
}

.bd-delivery-signatures img {
  position: absolute;
  bottom: -10mm;
  left: -1mm;
  z-index: 2;
  width: 41mm;
  height: 41mm;
  object-fit: contain;
  pointer-events: none;
}

.bd-delivery-qr {
  display: grid;
  place-items: center;
  align-content: center;
  border: .5mm solid var(--bd-delivery-line);
  border-radius: 1mm;
  text-align: center;
}

.bd-delivery-qr b {
  color: #302727;
  font-family: var(--bd-delivery-cn-font);
  font-size: 8pt;
  font-weight: 700;
}

.bd-delivery-qr .bd-real-qr,
.bd-delivery-qr .bd-qr-grid {
  width: 21mm;
  height: 21mm;
  margin: .5mm auto 0;
}

.bd-delivery-qr small {
  margin-top: -1mm;
  font-family: var(--bd-delivery-cn-font);
  font-size: 7pt;
  font-weight: 700;
}

.bd-delivery-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 8mm;
  margin-top: 2mm;
  padding-top: 1.5mm;
  border-top: 1.2mm solid var(--bd-delivery-wine);
  color: #5d5152;
  font-family: var(--bd-delivery-cn-font);
  font-size: 9pt;
  font-weight: 700;
}

.bd-delivery-foot b {
  min-width: 27mm;
  padding: 1.5mm 4mm;
  color: var(--bd-delivery-wine);
  border: 1px solid var(--bd-delivery-line);
  border-radius: 1mm;
  font-family: var(--bd-delivery-cn-font);
  font-size: 11pt;
  font-weight: 700;
  text-align: center;
}

.bd-a4-standard {
  --bd-standard-wine: var(--bd-document-accent);
  --bd-standard-red: var(--bd-document-emphasis);
  --bd-standard-line: var(--bd-document-line);
  --bd-standard-cn-font: "Source Han Serif CN", "Source Han Serif SC", "思源宋体 CN", "思源宋体", SimSun, serif;
  --bd-standard-latin-font: Arial, "Arial Unicode MS", sans-serif;
  height: 297mm;
  min-height: 297mm;
  padding: 5mm 5mm 4mm;
  overflow: hidden;
  color: #2c2424;
  font-family: var(--bd-standard-cn-font);
  font-size: 9pt;
  font-weight: 700;
  line-height: 1.28;
}

.bd-standard-topline {
  width: 100%;
  height: 1.2mm;
  background: var(--bd-standard-wine);
}

.bd-standard-head {
  position: relative;
  height: 20mm;
}

.bd-standard-logo {
  position: absolute;
  top: 5mm;
  left: 50%;
  width: 78mm;
  height: 13mm;
  object-fit: contain;
  object-position: center;
  transform: translateX(-50%);
}

.bd-standard-code {
  position: absolute;
  top: 4mm;
  right: 0;
  width: 50mm;
  text-align: center;
}

.bd-standard-code span {
  display: block;
  min-height: 4mm;
  margin-bottom: 1mm;
  color: var(--bd-standard-wine);
  font-family: var(--bd-standard-latin-font);
  font-size: 7pt;
  font-weight: 400;
  letter-spacing: .03em;
  white-space: nowrap;
}

.bd-standard-code .bd-document-barcode {
  width: 43mm;
  height: 9mm;
  margin-bottom: .8mm;
}

.bd-standard-code strong {
  display: block;
  color: #352d2d;
  font-family: var(--bd-standard-cn-font);
  font-size: 10pt;
  font-weight: 700;
}

.bd-standard-title {
  display: grid;
  align-content: center;
  height: 21mm;
  text-align: center;
}

.bd-standard-title h1 {
  margin: 0;
  color: var(--bd-standard-wine);
  font-family: var(--bd-standard-cn-font);
  font-size: 25pt;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .08em;
}

.bd-standard-title p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3mm;
  margin: 1.5mm 0 0;
  color: #65595a;
  font-size: 9pt;
  letter-spacing: .04em;
}

.bd-standard-title p i {
  width: 6mm;
  height: 1px;
  background: var(--bd-standard-line);
}

.bd-standard-info,
.bd-standard-items {
  width: 200mm;
  max-width: 200mm;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.bd-standard-info {
  height: 36mm;
  overflow: hidden;
  border: .45mm solid var(--bd-standard-line);
  border-radius: 1.5mm;
}

.bd-standard-info col:nth-child(1),
.bd-standard-info col:nth-child(3) {
  width: 32mm;
}

.bd-standard-info col:nth-child(2),
.bd-standard-info col:nth-child(4) {
  width: 68mm;
}

.bd-standard-info th,
.bd-standard-info td {
  height: 9mm;
  padding: 1mm 2mm;
  border-right: .4mm dashed var(--bd-standard-line);
  border-bottom: .4mm dashed var(--bd-standard-line);
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.bd-standard-info tr:last-child th,
.bd-standard-info tr:last-child td {
  border-bottom: 0;
}

.bd-standard-info th:last-child,
.bd-standard-info td:last-child {
  border-right: 0;
}

.bd-standard-info th {
  color: #3a3030;
  font-size: 9.5pt;
  text-align: left;
  white-space: nowrap;
}

.bd-standard-info th .bd-icon {
  display: inline-block;
  width: 4.5mm;
  height: 4.5mm;
  margin-right: 1.5mm;
  color: var(--bd-standard-red);
  vertical-align: -3px;
}

.bd-standard-items {
  margin-top: 2.5mm;
  border-top: .5mm solid var(--bd-standard-red);
  border-left: .45mm solid var(--bd-standard-line);
  border-bottom: .45mm solid var(--bd-standard-line);
}

.bd-standard-items th,
.bd-standard-items td {
  padding: .8mm;
  border-right: .45mm solid var(--bd-standard-line);
  border-bottom: .45mm solid var(--bd-standard-line);
  overflow-wrap: anywhere;
  text-align: center;
  vertical-align: middle;
}

.bd-standard-items thead th {
  height: 10mm;
  color: #fff;
  background: var(--bd-standard-wine);
  font-size: 8.5pt;
  letter-spacing: .01em;
}

.bd-standard-items tbody tr,
.bd-standard-items tbody td {
  height: 22mm;
}

.bd-standard-items tbody td {
  font-size: 8.5pt;
}

.bd-standard-items tbody tr:last-child td {
  border-bottom: 0;
}

.bd-standard-items tbody td img {
  display: block;
  width: 19mm;
  height: 19mm;
  margin: 0 auto;
  object-fit: contain;
}

.bd-standard-items tfoot td {
  height: 15mm;
  padding: 0;
  border-top: .5mm solid var(--bd-standard-line);
  border-bottom: 0;
  background: var(--bd-document-soft);
}

.bd-standard-total-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  height: 100%;
}

.bd-standard-total-grid span {
  display: grid;
  grid-template-columns: 8mm auto;
  grid-template-rows: auto auto;
  align-content: center;
  justify-content: center;
  column-gap: 3mm;
  min-width: 0;
  text-align: left;
}

.bd-standard-total-grid span:first-child {
  border-right: .45mm solid var(--bd-standard-line);
}

.bd-standard-total-grid .bd-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 8mm;
  height: 8mm;
  padding: 1.4mm;
  color: var(--bd-standard-red);
  border: .45mm solid var(--bd-standard-red);
  border-radius: 50%;
}

.bd-standard-total-grid b {
  grid-column: 2;
  align-self: end;
  font-size: 9pt;
}

.bd-standard-total-grid strong {
  grid-column: 2;
  align-self: start;
  color: var(--bd-standard-wine);
  font-size: 15pt;
  line-height: 1.1;
}

.bd-standard-terms {
  display: flex;
  align-items: flex-start;
  min-height: 8mm;
  padding: 1.2mm 1mm;
  /* The product table owns the closing border; notes stay outside without a duplicate floating rule. */
  border-bottom: 0;
  font-size: 8.5pt;
  line-height: 1.55;
}

.bd-standard-terms b {
  flex: 0 0 auto;
  margin-right: 1.5mm;
  color: var(--bd-standard-wine);
}

.bd-standard-bottom {
  display: grid;
  grid-template-columns: 166mm 30mm;
  gap: 4mm;
  height: 28mm;
  margin-top: 2mm;
}

.bd-standard-signatures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: .45mm solid var(--bd-standard-line);
  border-radius: 1mm;
}

.bd-standard-signatures > div {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 1.5mm;
  padding: 2.5mm 2mm 1mm;
  border-right: .35mm solid #68595a;
  text-align: center;
}

.bd-standard-signatures > div:last-child {
  border-right: 0;
}

.bd-standard-signatures b {
  margin-bottom: 1mm;
  color: var(--bd-standard-wine);
  text-align: center;
  font-size: 9.5pt;
}

.bd-standard-signatures span {
  width: 100%;
  font-size: 8pt;
  text-align: center;
}

.bd-standard-signatures img {
  position: absolute;
  right: -2mm;
  bottom: -7mm;
  z-index: 2;
  width: 36mm;
  height: 36mm;
  object-fit: contain;
  pointer-events: none;
}

.bd-standard-qr {
  display: grid;
  place-items: center;
  align-content: center;
  border: .45mm solid var(--bd-standard-line);
  border-radius: 1mm;
  text-align: center;
}

.bd-standard-qr b {
  font-size: 7.5pt;
}

.bd-standard-qr .bd-real-qr,
.bd-standard-qr .bd-qr-grid {
  width: 19mm;
  height: 19mm;
  margin: .5mm auto 0;
}

.bd-standard-qr small {
  margin-top: -.5mm;
  font-size: 6.5pt;
}

.bd-standard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 8mm;
  margin-top: 2mm;
  padding-top: 1.5mm;
  border-top: 1.2mm solid var(--bd-standard-wine);
  color: #5d5152;
  font-size: 8pt;
}

.bd-standard-foot b {
  min-width: 27mm;
  padding: 1.2mm 3mm;
  color: var(--bd-standard-wine);
  border: 1px solid var(--bd-standard-line);
  border-radius: 1mm;
  font-size: 9.5pt;
  text-align: center;
}

/* Millimetre coordinates traced from the user's A4 CorelDRAW PDF master. */
.bd-a4-purchase-contract {
  --bd-purchase-wine: var(--bd-document-accent);
  --bd-purchase-red: var(--bd-document-emphasis);
  --bd-purchase-line: var(--bd-document-line);
  --bd-purchase-soft: var(--bd-document-soft);
  --bd-purchase-cn-font: "Source Han Serif CN", "Source Han Serif SC", "思源宋体 CN", "思源宋体", SimSun, serif;
  --bd-purchase-latin-font: Arial, "Arial Unicode MS", sans-serif;
  height: 297mm;
  min-height: 297mm;
  padding: 6.2mm 5mm 4mm;
  overflow: hidden;
  color: #2f2424;
  font-family: var(--bd-purchase-cn-font);
  font-size: 7.5pt;
  font-weight: 700;
  line-height: 1.25;
}

.bd-purchase-topline {
  width: 100%;
  height: 1.2mm;
  background: var(--bd-purchase-wine);
}

.bd-purchase-head {
  position: relative;
  height: 19mm;
}

.bd-purchase-logo {
  position: absolute;
  top: 4.1mm;
  left: 50%;
  width: 72mm;
  height: 11.5mm;
  object-fit: contain;
  object-position: center;
  transform: translateX(-50%);
}

.bd-purchase-code {
  position: absolute;
  top: 5.2mm;
  right: 0;
  width: 43mm;
  text-align: center;
}

.bd-purchase-code span {
  display: block;
  min-height: 3.2mm;
  margin-bottom: 3.35mm;
  color: var(--bd-purchase-red);
  font-family: var(--bd-purchase-latin-font);
  font-size: 9pt;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
}

.bd-purchase-code .bd-document-barcode {
  width: 42mm;
  height: 10mm;
  margin-bottom: .5mm;
}

.bd-purchase-code strong {
  display: block;
  font-size: 11pt;
  letter-spacing: .03em;
}

.bd-purchase-title {
  display: grid;
  align-content: start;
  height: 20mm;
  padding-top: .2mm;
  text-align: center;
}

.bd-purchase-title h1 {
  margin: 0;
  color: var(--bd-purchase-wine);
  font-size: 27pt;
  line-height: 1.05;
  letter-spacing: .08em;
}

.bd-purchase-title p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5mm;
  margin: 2.8mm 0 0;
  color: #5f5253;
  font-size: 10pt;
  letter-spacing: .04em;
}

.bd-purchase-title p i {
  width: 6mm;
  height: .4mm;
  background: var(--bd-purchase-line);
}

.bd-purchase-info,
.bd-purchase-items {
  width: 199mm;
  max-width: 199mm;
  min-width: 0;
  margin-left: .35mm;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.bd-purchase-info {
  width: 198.3mm;
  max-width: 198.3mm;
  height: 31.84mm;
  overflow: hidden;
  border: .45mm solid var(--bd-purchase-red);
}

.bd-purchase-info col:nth-child(1),
.bd-purchase-info col:nth-child(3) { width: 30mm; }
.bd-purchase-info col:nth-child(2) { width: 85mm; }
.bd-purchase-info col:nth-child(4) { width: 53.3mm; }

.bd-purchase-info th,
.bd-purchase-info td {
  height: 7.83mm;
  padding: .65mm 2mm;
  border-right: .4mm dashed var(--bd-purchase-line);
  border-bottom: .4mm dashed var(--bd-purchase-line);
  overflow: hidden;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.bd-purchase-info tr:last-child th,
.bd-purchase-info tr:last-child td { border-bottom: 0; }
.bd-purchase-info th:last-child,
.bd-purchase-info td:last-child { border-right: 0; }
.bd-purchase-info th { font-size: 10pt; line-height: 1; text-align: left; white-space: nowrap; }
.bd-purchase-info td {
  font-size: 10pt;
  line-height: 1.18;
  text-align: left;
}
.bd-purchase-info th .bd-icon {
  display: inline-block;
  width: 4.8mm;
  height: 4.8mm;
  margin-right: 1.4mm;
  color: var(--bd-purchase-red);
  vertical-align: -3px;
}

.bd-purchase-items {
  margin-top: 1.8mm;
  border-top: .45mm solid var(--bd-purchase-red);
  border-left: .4mm solid var(--bd-purchase-line);
  border-bottom: .4mm solid var(--bd-purchase-line);
}

.bd-purchase-items col.supplier { width: 9%; }
.bd-purchase-items col.image { width: 12%; }
.bd-purchase-items col.name { width: 9%; }
.bd-purchase-items col.color { width: 8%; }
.bd-purchase-items col.color-code { width: 8%; }
.bd-purchase-items col.spec { width: 8%; }
.bd-purchase-items col.qty { width: 10%; }
.bd-purchase-items col.unit { width: 8%; }
.bd-purchase-items col.price { width: 8%; }
.bd-purchase-items col.amount { width: 10%; }
.bd-purchase-items col.remark { width: 11%; }

.bd-purchase-items th,
.bd-purchase-items td {
  padding: .7mm;
  border-right: .4mm solid var(--bd-purchase-line);
  border-bottom: .4mm solid var(--bd-purchase-line);
  overflow: hidden;
  overflow-wrap: anywhere;
  text-align: center;
  vertical-align: middle;
}

.bd-purchase-items thead th {
  height: 11.5mm;
  color: #fff;
  background: var(--bd-purchase-wine);
  font-size: 10pt;
}

.bd-purchase-items tbody tr,
.bd-purchase-items tbody td { height: 23.5mm; }
.bd-purchase-items tbody td { font-size: 8pt; }
.bd-purchase-items tbody td img {
  display: block;
  width: 19mm;
  height: 19mm;
  margin: 0 auto;
  object-fit: contain;
}

.bd-purchase-items tfoot td {
  height: 14.65mm;
  padding: 0;
  border-bottom: 0;
  background: var(--bd-purchase-soft);
}

.bd-purchase-total-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  height: 100%;
}

.bd-purchase-total-grid span {
  display: grid;
  grid-template-columns: 8mm auto auto;
  grid-template-rows: auto auto;
  align-content: center;
  justify-content: center;
  column-gap: 2.2mm;
  text-align: left;
}

.bd-purchase-total-grid span:first-child { border-right: .4mm solid var(--bd-purchase-line); }
.bd-purchase-total-grid .bd-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 8mm;
  height: 8mm;
  padding: 1.3mm;
  color: var(--bd-purchase-red);
  border: .45mm solid var(--bd-purchase-red);
  border-radius: 50%;
}
.bd-purchase-total-grid b { grid-column: 2 / 4; align-self: end; font-size: 9.5pt; }
.bd-purchase-total-grid strong { grid-column: 2; align-self: start; color: var(--bd-purchase-red); font-size: 16pt; line-height: 1; }
.bd-purchase-total-grid em { grid-column: 3; align-self: start; font-style: normal; font-size: 8pt; }

.bd-purchase-terms {
  width: 199mm;
  margin-left: .35mm;
  margin-top: 2mm;
  border: .4mm solid var(--bd-purchase-red);
  font-size: 8pt;
  line-height: 1.35;
}

.bd-purchase-terms > div {
  display: grid;
  grid-template-columns: 21mm minmax(0, 1fr);
  height: 5.1mm;
  min-height: 5.1mm;
  border-bottom: .35mm dashed var(--bd-purchase-line);
}
.bd-purchase-terms > div:first-child { grid-template-columns: 21mm 78.5mm 21mm 78.5mm; }
.bd-purchase-terms > div:last-child { border-bottom: 0; }
.bd-purchase-terms > div.tall { height: 12.98mm; min-height: 12.98mm; }
.bd-purchase-terms b,
.bd-purchase-terms span { display: flex; align-items: center; padding: .55mm 1.5mm; white-space: pre-line; }
.bd-purchase-terms b { justify-content: center; color: var(--bd-purchase-red); border-right: .35mm dashed var(--bd-purchase-line); font-size: 8pt; line-height: 1.05; }
.bd-purchase-terms span { color: #251f20; font-size: 8pt; line-height: 1.4; }

.bd-purchase-bottom {
  display: grid;
  grid-template-columns: 167mm 30mm;
  gap: 2mm;
  width: 199mm;
  height: 36.2mm;
  margin-left: .35mm;
  margin-top: 2mm;
}

.bd-purchase-parties {
  position: relative;
  display: grid;
  grid-template-columns: 80mm 87mm;
  grid-template-rows: 27mm 9.2mm;
}

.bd-purchase-parties section {
  position: relative;
  display: grid;
  grid-template-rows: 5.5mm repeat(5, 4.3mm);
  min-width: 0;
  border: .35mm solid var(--bd-purchase-red);
}
.bd-purchase-parties section.buyer { border-right: 0; }
.bd-purchase-parties p {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 22mm minmax(0, 1fr);
  min-width: 0;
  margin: 0;
  border-bottom: .3mm dashed var(--bd-purchase-line);
  color: #171313;
  font-size: 8pt;
  line-height: 1;
}
.bd-purchase-parties p:last-child { border-bottom: 0; }
.bd-purchase-parties p b,
.bd-purchase-parties p span { display: flex; align-items: center; padding: .25mm 1.1mm; overflow: hidden; white-space: nowrap; }
.bd-purchase-parties p b { color: var(--bd-purchase-red); border-right: .3mm dashed var(--bd-purchase-line); }
.bd-purchase-parties p span {
  justify-content: flex-start;
  text-align: left;
}
.bd-purchase-parties footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 3mm;
  padding: 0 4mm;
  color: #171313;
  font-size: 8pt;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 1px #fff, 0 0 2px #fff;
}
.bd-purchase-parties footer.buyer-sign { grid-column: 1; grid-row: 2; }
.bd-purchase-parties footer.supplier-sign { grid-column: 2; grid-row: 2; padding: 0 3mm; gap: 1.5mm; }
.bd-purchase-parties footer.supplier-sign .bd-purchase-supplier-signature {
  position: absolute;
  left: 20mm;
  bottom: .2mm;
  z-index: 3;
  width: 24mm;
  height: 8mm;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.bd-purchase-parties p b,
.bd-purchase-parties p span,
.bd-purchase-parties footer span { position: relative; z-index: 2; }
.bd-purchase-parties p span,
.bd-purchase-parties footer span { text-shadow: 0 0 1px #fff, 0 0 2px #fff; }
.bd-purchase-parties .bd-purchase-seal {
  position: absolute;
  top: 4mm;
  left: 23mm;
  z-index: 1;
  width: 40mm;
  height: 40.4mm;
  object-fit: contain;
  opacity: 1;
  pointer-events: none;
}

.bd-purchase-qr {
  display: grid;
  place-items: center;
  align-content: center;
  border: .4mm solid var(--bd-purchase-line);
  border-radius: 1mm;
  height: 33mm;
  align-self: start;
  text-align: center;
}
.bd-purchase-qr b { font-size: 7pt; }
.bd-purchase-qr .bd-real-qr,
.bd-purchase-qr .bd-qr-grid { width: 23mm; height: 23mm; margin: .5mm auto 0; }
.bd-purchase-qr small { margin-top: -.3mm; font-size: 6.2pt; }

.bd-purchase-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 10.5mm;
  margin-top: 0;
  padding: 2mm 1mm 0;
  border-top: 1.2mm solid var(--bd-purchase-wine);
  font-size: 9pt;
}
.bd-purchase-foot b {
  min-width: 29mm;
  padding: 1mm 3mm;
  color: var(--bd-purchase-wine);
  border: .4mm solid var(--bd-purchase-line);
  border-radius: 1mm;
  font-size: 11pt;
  text-align: center;
}

/* Shared formal-document header geometry and four-character field-label grid. */
.bd-a4 .bd-document-topline {
  width: 100%;
  height: 1.2mm;
  background: var(--bd-document-accent);
}

.bd-a4 .bd-document-head {
  position: relative;
  height: 20mm;
}

.bd-a4 .bd-document-logo {
  position: absolute;
  top: 4mm;
  left: 50%;
  width: 78mm;
  height: 13mm;
  object-fit: contain;
  object-position: center;
  transform: translateX(-50%);
}

.bd-a4 .bd-document-code {
  position: absolute;
  top: 4mm;
  right: 0;
  width: 46mm;
  text-align: center;
}

.bd-a4 .bd-document-code > span {
  display: block;
  min-height: 3.2mm;
  margin-bottom: 1.2mm;
  overflow: visible;
  color: var(--bd-document-emphasis);
  font-family: Arial, "Arial Unicode MS", sans-serif;
  font-size: 8pt;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .04em;
  text-overflow: clip;
  white-space: nowrap;
}

.bd-a4 .bd-document-code > span.is-long {
  font-size: 6.5pt;
  letter-spacing: .015em;
}

.bd-a4 .bd-document-code > span.is-very-long {
  font-size: 5.5pt;
  letter-spacing: 0;
}

.bd-a4 .bd-document-code .bd-document-barcode {
  width: 43mm;
  height: 10mm;
  margin: 0 auto .6mm;
}

.bd-a4 .bd-document-code > strong {
  display: block;
  color: #231916;
  font-size: 11pt;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .03em;
}

.bd-a4 .bd-document-title {
  display: grid;
  align-content: start;
  height: 20mm;
  padding-top: .2mm;
  text-align: center;
}

.bd-a4 .bd-document-title h1 {
  margin: 0;
  color: var(--bd-document-accent);
  font-size: 27pt;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .08em;
  transform: none;
}

.bd-a4 .bd-document-title p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5mm;
  margin: 2.2mm 0 0;
  color: #5f5253;
  font-size: 9.5pt;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
}

.bd-a4 .bd-document-title p i {
  width: 6mm;
  height: .4mm;
  background: var(--bd-document-line);
}

.bd-a4 .bd-document-info {
  height: 32mm;
}

.bd-a4 .bd-document-info col:nth-child(1),
.bd-a4 .bd-document-info col:nth-child(3) {
  width: 30mm;
}

.bd-a4 .bd-document-info col:nth-child(2) {
  width: 84.5mm;
}

.bd-a4 .bd-document-info col:nth-child(4) {
  width: 55mm;
}

.bd-a4 .bd-document-info th,
.bd-a4 .bd-document-info td {
  height: 8mm;
  padding: .65mm 2mm;
  overflow: hidden;
  font-size: 10pt;
  line-height: 1.1;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.bd-a4 .bd-document-info th {
  overflow: hidden;
  text-align: left;
  white-space: nowrap;
}

.bd-a4 .bd-document-info th .bd-icon {
  display: inline-block;
  width: 4.8mm;
  height: 4.8mm;
  margin-right: 1.4mm;
  color: var(--bd-document-emphasis);
  vertical-align: -3px;
}

.bd-a4-field-label {
  display: inline-block;
  width: 4em;
  max-width: 4em;
  overflow: hidden;
  line-height: 1;
  text-align: justify;
  text-align-last: justify;
  vertical-align: middle;
  white-space: nowrap;
}

/* All formal A4 documents share equal outer whitespace and one product-table grid. */
.bd-a4-delivery,
.bd-a4-standard,
.bd-a4-purchase-contract {
  display: flex;
  flex-direction: column;
  padding: 5mm;
}

.bd-a4-delivery > *,
.bd-a4-standard > *,
.bd-a4-purchase-contract > * {
  flex: 0 0 auto;
}

.bd-delivery-info,
.bd-delivery-items,
.bd-standard-info,
.bd-standard-items,
.bd-purchase-info,
.bd-purchase-items {
  width: 200mm;
  min-width: 200mm;
  max-width: 200mm;
  margin-left: 0;
  align-self: flex-start;
}

/* Info tables draw their rounded outer border outside the grid; 199.5mm + border = 200mm. */
.bd-delivery-info,
.bd-standard-info,
.bd-purchase-info {
  width: 199.5mm;
  min-width: 199.5mm;
  max-width: 199.5mm;
}

.bd-delivery-items thead th,
.bd-standard-items thead th,
.bd-purchase-items thead th {
  height: 11mm;
}

.bd-delivery-items tbody tr,
.bd-delivery-items tbody td,
.bd-standard-items tbody tr,
.bd-standard-items tbody td,
.bd-purchase-items tbody tr,
.bd-purchase-items tbody td {
  height: 23.5mm;
}

.bd-delivery-items tbody td img,
.bd-standard-items tbody td img,
.bd-purchase-items tbody td img {
  width: 21mm;
  height: 21mm;
  max-width: calc(100% - 1mm);
}

.bd-delivery-items tfoot td,
.bd-standard-items tfoot td,
.bd-purchase-items tfoot td {
  height: 15mm;
}

/* Bottom approval blocks follow the PDF master: content line above, approvals anchored low, footer close below. */
.bd-delivery-bottom,
.bd-standard-bottom,
.bd-purchase-bottom {
  margin-top: auto;
}

.bd-delivery-foot,
.bd-standard-foot,
.bd-purchase-foot {
  margin-top: 2mm;
}

.bd-purchase-terms {
  margin-top: 1mm;
}

.bd-paper-stage-delivery {
  overflow: hidden;
}

.bd-paper-stage-delivery > .bd-a4-wrap {
  width: 445px;
  height: 630px;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.bd-paper-stage-delivery .bd-a4-delivery {
  margin: 0;
  transform: scale(.56);
  transform-origin: top left;
}

.bd-paper-stage-formal {
  --bd-template-preview-scale: .56;
  width: 100%;
  min-width: 0;
  align-content: start;
  justify-content: center;
}

.bd-print-preview-body,
.bd-print-preview-stage {
  min-width: 0;
}

.bd-paper-stage-formal > .bd-a4-wrap {
  width: calc(793.7008px * var(--bd-template-preview-scale));
  height: calc(1122.5197px * var(--bd-template-preview-scale));
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.bd-paper-stage-formal .bd-a4 {
  margin: 0;
  transform: scale(var(--bd-template-preview-scale));
  transform-origin: top left;
}

/* Tool Center 3.0 — card-first home and unified duotone icon system */
.aibos-tool-center.is-home {
  padding-bottom: 24px;
}

.bd-tool-home {
  display: grid;
  gap: 16px;
}

.bd-tool-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: 16px 22px;
  border: 0;
  border-radius: 14px;
  background: transparent;
}

.bd-tool-home-header span {
  display: block;
  color: var(--bd-brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.bd-tool-home-header h1 {
  display: inline;
  margin: 0 14px 0 0;
  color: #211c1d;
  font-size: 26px;
  line-height: 1.2;
}

.bd-tool-home-header p {
  display: inline;
  margin: 0;
  color: var(--bd-muted);
  font-size: 13px;
}

.bd-tool-home-header > em {
  flex: 0 0 auto;
  padding: 6px 11px;
  color: var(--bd-brand-dark);
  border: 1px solid #efd7df;
  border-radius: 999px;
  background: #fff7f9;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.bd-tool-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.bd-tool-card {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
  min-height: 230px;
  padding: 22px 18px 18px;
  overflow: hidden;
  color: #d69b43;
  border: 1px solid color-mix(in srgb, currentColor 25%, #fff);
  border-radius: 16px;
  background: color-mix(in srgb, currentColor 4%, #fff);
  box-shadow: 0 10px 28px rgba(80, 45, 50, .045);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.bd-tool-card::before {
  position: absolute;
  top: -70px;
  left: 50%;
  width: 210px;
  height: 150px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: currentColor;
  opacity: .035;
  content: "";
}

.bd-tool-card:hover,
.bd-tool-card:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, currentColor 44%, #fff);
  box-shadow: 0 16px 36px rgba(80, 45, 50, .09);
  outline: none;
}

.bd-tool-card.teal,
.bd-tool-shortcuts button.teal { color: #268e89; }
.bd-tool-card.blue,
.bd-tool-shortcuts button.blue { color: #4d89c9; }
.bd-tool-card.violet,
.bd-tool-shortcuts button.violet { color: #8c5bb0; }
.bd-tool-card.rose,
.bd-tool-shortcuts button.rose { color: #b84870; }
.bd-tool-card.gold,
.bd-tool-shortcuts button.gold { color: #d69b43; }

.bd-tool-card > i {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, currentColor 16%, #fff);
  border-radius: 24px;
  background: color-mix(in srgb, currentColor 7%, #fff);
  box-shadow: inset 0 1px #fff, 0 8px 22px color-mix(in srgb, currentColor 11%, transparent);
}

.bd-tool-icon {
  display: block;
  width: 54px;
  height: 54px;
  overflow: visible;
}

.bd-tool-icon .soft {
  fill: currentColor;
  stroke: none;
  opacity: .16;
}

.bd-tool-icon .main {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bd-tool-icon .accent {
  fill: currentColor;
  stroke: none;
}

.bd-tool-icon .accent-line {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bd-tool-card > span {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--bd-ink);
  text-align: center;
}

.bd-tool-card > span strong {
  font-size: 18px;
}

.bd-tool-card > span small {
  min-height: 38px;
  color: #75696b;
  font-size: 12px;
}

.bd-tool-card > span em {
  color: currentColor;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.bd-tool-card > b {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  border-radius: 50%;
  background: var(--bd-brand);
}

.bd-tool-card > b .bd-icon {
  width: 14px;
  height: 14px;
}

.bd-tool-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .85fr);
  gap: 14px;
}

.bd-tool-home-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--bd-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(80, 45, 50, .04);
}

.bd-tool-home-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1e7e5;
}

.bd-tool-home-panel > header h2 {
  margin: 0;
  font-size: 16px;
}

.bd-tool-home-panel > header p {
  margin: 2px 0 0;
  color: var(--bd-muted);
  font-size: 11px;
}

.bd-tool-home-panel > header > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 0;
  color: var(--bd-brand);
  border: 0;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.bd-tool-home-panel > header > button .bd-icon {
  width: 13px;
  height: 13px;
}

.bd-tool-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.bd-tool-shortcuts > button {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 76px;
  padding: 11px;
  color: #d69b43;
  border: 1px solid #eee4e1;
  border-radius: 12px;
  background: #fffdfc;
  text-align: left;
  cursor: pointer;
}

.bd-tool-shortcuts > button:hover {
  border-color: color-mix(in srgb, currentColor 35%, #fff);
  background: color-mix(in srgb, currentColor 4%, #fff);
}

.bd-tool-shortcuts > button > i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: color-mix(in srgb, currentColor 8%, #fff);
}

.bd-tool-shortcuts .bd-tool-icon {
  width: 32px;
  height: 32px;
}

.bd-tool-shortcuts > button > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--bd-ink);
}

.bd-tool-shortcuts > button strong,
.bd-tool-shortcuts > button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bd-tool-shortcuts > button strong { font-size: 13px; }
.bd-tool-shortcuts > button small { color: var(--bd-muted); font-size: 10px; }
.bd-tool-shortcuts > button > .bd-icon { width: 13px; height: 13px; color: #b49da2; }

.bd-tool-recent > div {
  display: grid;
}

.bd-tool-recent > div > button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 49px;
  padding: 7px 14px;
  border: 0;
  border-bottom: 1px solid #f3eae8;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.bd-tool-recent > div > button:hover { background: #fff9fa; }
.bd-tool-recent > div > button:last-child { border-bottom: 0; }
.bd-tool-recent > div > button > i { display: grid; place-items: center; width: 32px; height: 32px; color: #d69b43; border-radius: 9px; background: #fff6e8; }
.bd-tool-recent > div > button > i.teal { color: #268e89; background: #ecf8f7; }
.bd-tool-recent .bd-tool-icon { width: 22px; height: 22px; }
.bd-tool-recent > div > button > span { display: grid; min-width: 0; }
.bd-tool-recent > div > button strong,
.bd-tool-recent > div > button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-tool-recent > div > button strong { color: #433a3b; font-size: 12px; }
.bd-tool-recent > div > button small { color: var(--bd-muted); font-size: 10px; }
.bd-tool-recent time { color: #a59498; font-size: 10px; }

.bd-tool-module-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.bd-tool-module-bar > button {
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  padding: 0;
  color: var(--bd-brand);
  border: 1px solid #ecd9df;
  border-radius: 9px;
  background: #fff7f9;
  cursor: pointer;
}

.bd-tool-module-bar > button .bd-icon {
  width: 15px;
  height: 15px;
  transform: rotate(180deg);
}

.bd-tool-module-bar > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.bd-tool-module-bar small { color: var(--bd-brand); font-size: 16.5px; font-weight: 800; }
.bd-tool-module-bar strong { color: #2d2627; font-size: 18px; }
.bd-tool-module-bar span { overflow: hidden; color: var(--bd-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.bd-tool-module-bar-minimal {
  min-height: 34px;
  margin-bottom: 8px;
  padding-top: 0;
  padding-bottom: 0;
}

.bd-boxcalc-shell {
  min-height: calc(100vh - 188px);
  overflow: hidden;
  border: 1px solid #ead8d5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(85, 48, 54, .055);
}

.bd-boxcalc-frame {
  display: block;
  width: 100%;
  min-height: calc(100vh - 190px);
  height: 820px;
  border: 0;
  background: #fff;
}

@media (max-width: 1440px) {
  .bd-tool-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .bd-tool-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-tool-card { min-height: 210px; }
  .bd-tool-home-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .bd-tool-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-tool-home-header { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (max-width: 560px) {
  .bd-tool-card-grid,
  .bd-tool-shortcuts { grid-template-columns: 1fr; }
  .bd-tool-card { min-height: 195px; }
  .bd-tool-home-header h1,
  .bd-tool-home-header p { display: block; }
  .bd-tool-home-header p { margin-top: 5px; }
  .bd-tool-module-bar span { display: none; }
}

@media (max-width: 1180px) {
  .bd-overview {
    grid-template-columns: minmax(230px, 1.2fr) repeat(2, minmax(150px, 1fr));
  }
  .bd-overview-actions {
    grid-column: span 3;
    grid-template-columns: repeat(2, auto);
    justify-content: end;
  }
  .bd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .bd-overview,
  .bd-form,
  .bd-verify-layout {
    grid-template-columns: 1fr;
  }
  .bd-overview-actions,
  .bd-form label.wide,
  .bd-form label.full {
    grid-column: auto;
  }
  .bd-customer-grid,
  .bd-template-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .bd-grid {
    grid-template-columns: 1fr;
  }
  .bd-overview {
    padding: 10px;
  }
  .bd-toolbar,
  .bd-card-head {
    align-items: stretch;
    flex-direction: column;
  }
  .bd-dialog {
    max-height: 96vh;
  }
  .bd-source-links {
    align-items: stretch;
    flex-direction: column;
  }
  .bd-source-links span {
    grid-template-columns: 1fr auto;
  }
  .bd-source-links small {
    grid-column: 1 / -1;
  }
}

/* Business documents 2.0 — unified operational workspace */
.bd-redesign {
  --bd-canvas: #faf7f5;
  --bd-card: #fffdfc;
  --bd-wine: #9d2149;
  --bd-wine-dark: #741533;
  --bd-wine-soft: #f9e9ee;
  --bd-green: #2d8b67;
  --bd-green-soft: #eaf6f1;
  --bd-amber: #c67a25;
  --bd-amber-soft: #fff3e5;
  --bd-violet: #7453a6;
  --bd-violet-soft: #f1ecfa;
  gap: 16px;
  padding-bottom: 24px;
}

.bd-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bd-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 104px;
  padding: 18px 22px;
  border: 1px solid var(--bd-line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% 20%, rgba(168, 36, 79, .065), transparent 28%),
    linear-gradient(110deg, #fff 0%, #fffdfc 68%, #fcf3f1 100%);
}

.bd-page-heading span {
  color: var(--bd-wine);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.bd-page-heading h1 {
  margin: 3px 0 4px;
  color: #211c1d;
  font-size: 25px;
  line-height: 1.2;
}

.bd-page-heading p {
  margin: 0;
  color: var(--bd-muted);
  font-size: 13px;
}

.bd-page-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.bd-page-actions .bd-button,
.bd-context-panel footer .bd-button,
.bd-customer-profile footer .bd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.bd-redesign > .bd-subnav {
  gap: 26px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--bd-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
}

.bd-redesign > .bd-subnav button {
  position: relative;
  min-height: 42px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  color: #74686b;
  background: transparent;
  box-shadow: none;
  font-weight: 600;
}

.bd-redesign > .bd-subnav button.active {
  color: var(--bd-wine);
  background: transparent;
  box-shadow: none;
}

.bd-redesign > .bd-subnav button.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--bd-wine);
  content: "";
}

.bd-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.bd-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 14px 16px;
  border: 1px solid var(--bd-line);
  border-radius: 12px;
  background: var(--bd-card);
  box-shadow: 0 8px 22px rgba(67, 38, 43, .035);
}

.bd-metric > i {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--bd-wine);
  border-radius: 50%;
  background: var(--bd-wine-soft);
  font-style: normal;
}

.bd-metric.amber > i {
  color: var(--bd-amber);
  background: var(--bd-amber-soft);
}

.bd-metric.green > i {
  color: var(--bd-green);
  background: var(--bd-green-soft);
}

.bd-metric.violet > i {
  color: var(--bd-violet);
  background: var(--bd-violet-soft);
}

.bd-metric.danger > i {
  color: #b23a43;
  background: #fdebed;
}

.bd-metric span,
.bd-metric small {
  display: block;
  color: var(--bd-muted);
  font-size: 11px;
}

.bd-metric strong {
  display: block;
  margin: 1px 0;
  color: #282122;
  font-size: 21px;
  line-height: 1.25;
}

.bd-work-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--bd-line);
  border-radius: 12px;
  background: var(--bd-card);
  box-shadow: 0 8px 24px rgba(69, 39, 43, .035);
}

.bd-work-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  border-bottom: 1px solid #f0e7e5;
}

.bd-work-card > header h2 {
  margin: 0;
  font-size: 15px;
}

.bd-work-card > header p {
  margin: 2px 0 0;
  color: var(--bd-muted);
  font-size: 11px;
}

.bd-work-card > header button {
  color: var(--bd-wine);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bd-workspace-grid {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.bd-workspace-grid.overview {
  grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr);
}

.bd-workspace-grid.detail,
.bd-workspace-grid.purchase {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.bd-workspace-grid.customer-detail {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}

.bd-flow-board.compact {
  overflow-x: auto;
}

.bd-process {
  display: flex;
  align-items: stretch;
  min-width: 760px;
  padding: 15px;
}

.bd-process + .bd-process {
  border-top: 1px solid #f0e7e5;
}

.bd-process-step {
  position: relative;
  display: grid;
  flex: 1 1 0;
  min-width: 90px;
  place-items: center;
  padding: 9px 5px;
  color: #30292a;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bd-process-step > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  color: var(--bd-wine);
  border-radius: 10px;
  background: var(--bd-wine-soft);
  font-style: normal;
}

.bd-process-step > span,
.bd-process-step > strong,
.bd-process-step > small {
  display: block;
}

.bd-process-step > span {
  font-size: 12px;
  font-weight: 700;
}

.bd-process-step > strong {
  margin: 2px 0;
  font-size: 18px;
}

.bd-process-step > small {
  color: var(--bd-muted);
  font-size: 10px;
}

.bd-process-step small em {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--bd-green);
  vertical-align: middle;
}

.bd-process-step > b {
  position: absolute;
  top: 2px;
  right: 2px;
  padding: 1px 4px;
  color: var(--bd-green);
  border-radius: 4px;
  background: var(--bd-green-soft);
  font-size: 9px;
  font-weight: 600;
}

.bd-process-arrow {
  display: grid;
  flex: 0 0 16px;
  place-items: center;
  color: #c9babc;
}

.bd-process-arrow .bd-icon {
  width: 14px;
}

.bd-todo-card > div > button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 11px 15px;
  color: #3d3436;
  border: 0;
  border-bottom: 1px solid #f3eae8;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.bd-todo-card > div > button > i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--bd-wine);
  border-radius: 8px;
  background: var(--bd-wine-soft);
  font-style: normal;
}

.bd-todo-card em {
  padding: 2px 6px;
  color: #7b6d6f;
  border-radius: 10px;
  background: #f3eeee;
  font-size: 10px;
  font-style: normal;
}

.bd-todo-card em.danger {
  color: #a72c3d;
  background: #fdebed;
}

.bd-todo-card em.amber {
  color: #a66019;
  background: var(--bd-amber-soft);
}

.bd-modern-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  border-bottom: 1px solid #f0e7e5;
}

.bd-modern-toolbar > label {
  display: flex;
  flex: 1 1 260px;
  align-items: center;
  gap: 8px;
  min-width: 170px;
  height: 36px;
  padding: 0 11px;
  color: var(--bd-wine);
  border: 1px solid #e5d7d5;
  border-radius: 8px;
  background: #fff;
}

.bd-modern-toolbar input,
.bd-modern-toolbar select {
  min-width: 0;
  height: 34px;
  color: #554b4d;
  border: 1px solid #e5d7d5;
  border-radius: 8px;
  background: #fff;
  outline: none;
}

.bd-modern-toolbar input {
  width: 100%;
  border: 0;
}

.bd-modern-toolbar select {
  flex: 0 1 125px;
  padding: 0 9px;
}

.bd-modern-table-wrap {
  max-width: 100%;
  overflow: auto;
}

.bd-modern-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.bd-modern-table th,
.bd-modern-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0e7e5;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.bd-modern-table th {
  color: #75686a;
  background: #fcf8f7;
  font-size: 11px;
  font-weight: 600;
}

.bd-modern-table td {
  color: #4c4244;
  font-size: 12px;
}

.bd-modern-table tbody tr {
  cursor: pointer;
}

.bd-modern-table tbody tr:hover,
.bd-modern-table tbody tr.selected {
  background: #fff8fa;
}

.bd-modern-table td > strong,
.bd-modern-table td > small {
  display: block;
}

.bd-modern-table td > small {
  margin-top: 2px;
  color: var(--bd-muted);
  font-size: 10px;
}

.bd-doc-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.bd-doc-type .bd-icon {
  color: var(--bd-wine);
}

.bd-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bd-row-actions button {
  padding: 2px 5px;
  color: var(--bd-wine);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bd-row-actions button.more {
  color: #8c7f81;
}

.bd-row-actions > .bd-icon {
  margin-left: 4px;
  color: #8c7f81;
}

.bd-status {
  display: inline-flex;
  min-width: 52px;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 12px;
  color: #786b6d;
  background: #f2eeee;
  font-size: 10px;
}

.bd-status.done,
.bd-status.active {
  color: #237453;
  background: var(--bd-green-soft);
}

.bd-status.wait,
.bd-status.warn {
  color: #a5631d;
  background: var(--bd-amber-soft);
}

.bd-status.running {
  color: #7151a1;
  background: var(--bd-violet-soft);
}

.bd-mine-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--bd-muted);
  font-size: 11px;
}

.bd-mine-toggle input {
  position: absolute;
  opacity: 0;
}

.bd-mine-toggle i,
.bd-switch {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 17px;
  border-radius: 10px;
  background: #d9cecf;
}

.bd-mine-toggle i::after,
.bd-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: .15s;
}

.bd-mine-toggle input:checked + i,
.bd-switch.on {
  background: var(--bd-wine);
}

.bd-mine-toggle input:checked + i::after,
.bd-switch.on::after {
  left: 16px;
}

.bd-sync-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 8px 13px;
  color: #31765d;
  border: 1px solid #cee7dc;
  border-radius: 10px;
  background: var(--bd-green-soft);
  font-size: 11px;
}

.bd-sync-strip span {
  color: #70827a;
}

.bd-context-panel > dl,
.bd-customer-profile > dl,
.bd-verification-result > dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin: 0;
  padding: 15px;
}

.bd-context-panel dt,
.bd-customer-profile dt,
.bd-verification-result dt {
  color: var(--bd-muted);
  font-size: 10px;
}

.bd-context-panel dd,
.bd-customer-profile dd,
.bd-verification-result dd {
  margin: 2px 0 0;
  color: #302829;
  font-size: 12px;
  font-weight: 600;
}

.bd-context-panel > h3,
.bd-context-panel > .bd-mini-files,
.bd-context-panel > footer {
  margin: 0;
  padding: 12px 15px;
}

.bd-context-panel > h3 {
  padding-bottom: 3px;
  font-size: 12px;
}

.bd-timeline {
  margin: 0;
  padding: 7px 15px 8px;
  list-style: none;
}

.bd-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding-bottom: 13px;
}

.bd-timeline li::before {
  position: absolute;
  top: 20px;
  bottom: 0;
  left: 11px;
  width: 1px;
  background: #e5d9d8;
  content: "";
}

.bd-timeline li:last-child::before {
  display: none;
}

.bd-timeline li > i {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: #a89a9c;
  border: 1px solid #ddcecc;
  border-radius: 50%;
  background: #fff;
}

.bd-timeline li.done > i {
  color: #fff;
  border-color: var(--bd-green);
  background: var(--bd-green);
}

.bd-timeline strong,
.bd-timeline small {
  display: block;
  font-size: 11px;
}

.bd-timeline small {
  color: var(--bd-muted);
  font-size: 9px;
}

.bd-latest-event {
  margin: 0 15px;
  padding: 10px;
  border-radius: 8px;
  background: #faf6f5;
}

.bd-latest-event b,
.bd-latest-event span,
.bd-latest-event small {
  display: block;
  font-size: 10px;
}

.bd-latest-event span,
.bd-latest-event small {
  color: var(--bd-muted);
}

.bd-context-panel > footer,
.bd-customer-profile > footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  border-top: 1px solid #f0e7e5;
}

.bd-arrival-card > button {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 50px 90px 55px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 15px;
  color: #453c3e;
  border: 0;
  border-bottom: 1px solid #f0e7e5;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.bd-arrival-card > button span b,
.bd-arrival-card > button span small {
  display: block;
}

.bd-arrival-card > button span small,
.bd-arrival-card > button time,
.bd-arrival-card > button em {
  color: var(--bd-muted);
  font-size: 10px;
  font-style: normal;
}

.bd-arrival-card > button > i {
  color: var(--bd-amber);
  font-size: 10px;
  font-style: normal;
}

.bd-arrival-card > button > i.done {
  color: var(--bd-green);
}

.bd-arrival-card > footer {
  padding: 10px 15px;
  text-align: right;
}

.bd-icon-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--bd-line) !important;
  border-radius: 8px;
}

.bd-mini-files {
  display: grid;
  gap: 6px;
}

.bd-mini-files button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  color: #554b4d;
  border: 1px solid #eee3e1;
  border-radius: 7px;
  background: #fff;
  text-align: left;
}

.bd-customer-table {
  min-width: 1040px;
}

.bd-customer-profile > header span {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 7px;
  color: var(--bd-wine);
  border-radius: 10px;
  background: var(--bd-wine-soft);
  font-size: 10px;
}

.bd-customer-profile > section {
  padding: 0 15px 13px;
}

.bd-customer-profile > section span {
  display: block;
  margin-top: 8px;
  color: var(--bd-muted);
  font-size: 10px;
}

.bd-customer-profile > section p {
  margin: 2px 0;
  font-size: 11px;
}

.bd-customer-chain {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  padding: 0 15px 15px;
}

.bd-customer-chain > div {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 1px 6px;
  padding: 9px;
  border: 1px solid #eee3e1;
  border-radius: 8px;
}

.bd-customer-chain i {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  color: var(--bd-wine);
  font-style: normal;
}

.bd-customer-chain span {
  color: var(--bd-muted);
  font-size: 9px;
}

.bd-customer-chain strong {
  font-size: 11px;
}

.bd-recent-activity {
  padding: 12px 15px;
  border-top: 1px solid #f0e7e5;
}

.bd-recent-activity h3 {
  margin: 0 0 8px;
  font-size: 12px;
}

.bd-recent-activity > div {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 7px;
  padding: 5px 0;
  font-size: 10px;
}

.bd-recent-activity > div i {
  align-self: center;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cfbfc1;
}

.bd-recent-activity > div i.done {
  background: var(--bd-green);
}

.bd-recent-activity time {
  color: var(--bd-muted);
}

.bd-template-workspace {
  display: grid;
  grid-template-columns: 250px minmax(460px, 1fr) 245px;
  gap: 14px;
  align-items: start;
}

.bd-template-list .bd-modern-toolbar {
  display: block;
}

.bd-template-filters {
  display: flex;
  gap: 5px;
  padding: 0 12px 9px;
}

.bd-template-filters button {
  padding: 4px 7px;
  color: var(--bd-muted);
  border: 0;
  border-radius: 12px;
  background: #f4efee;
  font-size: 9px;
}

.bd-template-filters button.active {
  color: var(--bd-wine);
  background: var(--bd-wine-soft);
}

.bd-template-list > div:last-child > button {
  display: grid;
  grid-template-columns: 32px 1fr 17px;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 12px;
  color: #504648;
  border: 0;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #f1e8e6;
  background: #fff;
  text-align: left;
}

.bd-template-list > div:last-child > button.active {
  border-left-color: var(--bd-wine);
  background: #fff7f9;
}

.bd-template-list > div:last-child > button > i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--bd-wine);
  border-radius: 8px;
  background: var(--bd-wine-soft);
  font-style: normal;
}

.bd-template-list strong,
.bd-template-list small {
  display: block;
}

.bd-template-list small {
  color: var(--bd-muted);
  font-size: 9px;
}

.bd-template-list small em {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bd-green);
}

.bd-template-canvas > header > div:last-child {
  display: flex;
  gap: 5px;
}

.bd-template-canvas > header button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border: 1px solid var(--bd-line);
  border-radius: 6px;
  background: #fff;
  font-size: 9px;
}

.bd-paper-stage {
  display: grid;
  min-height: 650px;
  place-items: start center;
  padding: 24px;
  overflow: auto;
  background: #eee9e7;
}

.bd-paper-preview {
  width: 445px;
  min-height: 630px;
  padding: 25px;
  color: #302829;
  background: #fff;
  box-shadow: 0 8px 25px rgba(55, 40, 41, .12);
}

.bd-paper-preview > header {
  display: grid;
  grid-template-columns: 126px 1fr;
  align-items: center;
  min-height: 65px;
  border-top: 3px solid var(--bd-wine);
}

.bd-paper-preview > header img {
  display: block;
  width: 116px;
  max-height: 45px;
  object-fit: contain;
  object-position: left center;
}

.bd-paper-preview > header div {
  text-align: right;
}

.bd-paper-preview h2 {
  margin: 0 0 4px;
  color: var(--bd-wine-dark);
  font-size: 21px;
}

.bd-paper-preview > header span {
  color: var(--bd-muted);
  font-size: 8px;
}

.bd-paper-preview .info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 12px 0;
  border-top: 1px solid #d9cdcb;
  border-left: 1px solid #d9cdcb;
}

.bd-paper-preview .info > div {
  min-height: 29px;
  padding: 7px;
  border-right: 1px solid #d9cdcb;
  border-bottom: 1px solid #d9cdcb;
  font-size: 8px;
}

.bd-paper-preview .info > div.wide {
  min-height: 40px;
}

.bd-paper-preview table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.bd-paper-preview th,
.bd-paper-preview td {
  height: 36px;
  padding: 4px;
  border: 1px solid #d9cdcb;
  font-size: 7px;
  text-align: center;
}

.bd-paper-preview th {
  color: #fff;
  background: var(--bd-wine);
}

.bd-paper-preview tbody tr {
  height: 58px;
}

.bd-paper-preview > footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 34px;
  gap: 6px;
  align-items: end;
  min-height: 74px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #d9cdcb;
  font-size: 7px;
}

.bd-paper-preview > footer i {
  display: grid;
  place-items: center;
  height: 34px;
  color: var(--bd-wine);
  border: 1px solid #d9cdcb;
}

.bd-template-settings details {
  border-bottom: 1px solid #f0e7e5;
}

.bd-template-settings summary {
  padding: 11px 14px;
  font-weight: 700;
  cursor: pointer;
}

.bd-template-settings details label {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  color: #605456;
  font-size: 10px;
}

.bd-template-settings details input {
  width: 60px;
  height: 28px;
  padding: 0 7px;
  border: 1px solid var(--bd-line);
  border-radius: 6px;
}

.bd-template-settings details em {
  color: var(--bd-muted);
  font-size: 9px;
  font-style: normal;
}

.bd-template-settings > footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 13px;
}

.bd-verification-workspace {
  display: grid;
  grid-template-columns: 280px minmax(430px, 1fr) 230px;
  gap: 14px;
  align-items: start;
}

.bd-scan-card {
  padding-bottom: 12px;
  text-align: center;
}

.bd-scan-frame {
  display: grid;
  width: 135px;
  height: 135px;
  margin: 18px auto 8px;
  place-items: center;
  color: var(--bd-wine);
  border: 2px dashed #d8adb9;
  border-radius: 16px;
  background: #fff8fa;
}

.bd-scan-frame .bd-icon {
  width: 72px;
  height: 72px;
  stroke-width: .8;
}

.bd-scan-card > p {
  margin: 0 12px 12px;
  color: var(--bd-muted);
  font-size: 10px;
}

.bd-scan-card > .bd-verify-form {
  display: grid;
  gap: 7px;
  padding: 0 14px;
}

.bd-scan-card > .bd-verify-form label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--bd-line);
  border-radius: 7px;
}

.bd-scan-card > .bd-verify-form input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
}

.bd-scan-card > small {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 9px 14px 0;
  color: var(--bd-muted);
  font-size: 9px;
  text-align: left;
}

.bd-verify-history {
  margin-top: 15px;
  border-top: 1px solid #f0e7e5;
  text-align: left;
}

.bd-verify-history header {
  display: flex;
  justify-content: space-between;
  padding: 12px 14px 6px;
}

.bd-verify-history h3 {
  margin: 0;
  font-size: 11px;
}

.bd-verify-history header button {
  color: var(--bd-wine);
  border: 0;
  background: transparent;
  font-size: 9px;
}

.bd-verify-history > div {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 2px 6px;
  padding: 7px 14px;
  border-top: 1px solid #f5eeec;
  font-size: 9px;
}

.bd-verify-history time {
  grid-row: 1 / 3;
  color: var(--bd-muted);
}

.bd-verify-history small {
  color: var(--bd-muted);
}

.bd-verify-history em {
  grid-column: 3;
  grid-row: 1 / 3;
  color: var(--bd-green);
  font-style: normal;
}

.bd-verify-history em.amber {
  color: var(--bd-amber);
}

.bd-verify-history em.danger {
  color: #b23a43;
}

.bd-verification-result > header > em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  color: var(--bd-green);
  border-radius: 14px;
  background: var(--bd-green-soft);
  font-size: 10px;
  font-style: normal;
}

.bd-verification-result > header > div > span {
  color: var(--bd-wine);
  font-size: 9px;
  font-weight: 700;
}

.bd-verification-result > dl {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #f0e7e5;
}

.bd-verification-result .bd-modern-table {
  min-width: 650px;
}

.bd-verification-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 15px;
}

.bd-verification-timeline > div {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
}

.bd-verification-timeline > div::after {
  position: absolute;
  top: 11px;
  right: -50%;
  left: 50%;
  height: 1px;
  background: #dfd3d2;
  content: "";
}

.bd-verification-timeline > div:last-child::after {
  display: none;
}

.bd-verification-timeline i {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: #96898b;
  border: 1px solid #d9ccca;
  border-radius: 50%;
  background: #fff;
}

.bd-verification-timeline .done i {
  color: #fff;
  border-color: var(--bd-green);
  background: var(--bd-green);
}

.bd-verification-timeline span,
.bd-verification-timeline small {
  z-index: 1;
  display: block;
  background: #fff;
  font-size: 9px;
}

.bd-verification-timeline small {
  color: var(--bd-muted);
  font-size: 8px;
}

.bd-data-source {
  padding: 9px 15px;
  color: var(--bd-muted);
  border-top: 1px solid #f0e7e5;
  font-size: 9px;
}

.bd-data-source span {
  margin-left: 5px;
  padding: 2px 5px;
  color: var(--bd-green);
  border-radius: 8px;
  background: var(--bd-green-soft);
}

.bd-verification-result > footer {
  display: flex;
  gap: 8px;
  padding: 12px 15px;
}

.bd-verification-result > footer button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  color: var(--bd-wine);
  border: 1px solid var(--bd-line);
  border-radius: 6px;
  background: #fff;
  font-size: 9px;
}

.bd-security-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 15px 13px;
  padding: 8px;
  color: #547866;
  border-radius: 7px;
  background: var(--bd-green-soft);
  font-size: 9px;
}

.bd-public-settings > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0e7e5;
}

.bd-public-settings > label span,
.bd-public-settings > label small {
  display: block;
  font-size: 10px;
}

.bd-public-settings > label small {
  color: var(--bd-muted);
  font-size: 8px;
}

.bd-public-settings > p {
  display: flex;
  gap: 5px;
  margin: 12px;
  padding: 9px;
  color: #60766a;
  border-radius: 7px;
  background: var(--bd-green-soft);
  font-size: 8px;
}

@media (max-width: 1320px) {
  .bd-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bd-template-workspace {
    grid-template-columns: 230px minmax(430px, 1fr);
  }

  .bd-template-settings {
    grid-column: 1 / -1;
  }

  .bd-template-settings > details {
    display: inline-block;
    width: 33.333%;
    vertical-align: top;
  }

  .bd-verification-workspace {
    grid-template-columns: 260px minmax(420px, 1fr);
  }

  .bd-public-settings {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .bd-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .bd-page-actions {
    flex-wrap: wrap;
  }

  .bd-workspace-grid.overview,
  .bd-workspace-grid.detail,
  .bd-workspace-grid.purchase,
  .bd-workspace-grid.customer-detail {
    grid-template-columns: 1fr;
  }

  .bd-context-panel,
  .bd-customer-profile {
    width: 100%;
  }

  .bd-modern-toolbar {
    flex-wrap: wrap;
  }

  .bd-template-workspace,
  .bd-verification-workspace {
    grid-template-columns: 1fr;
  }

  .bd-template-settings,
  .bd-public-settings {
    grid-column: auto;
  }

  .bd-template-settings > details {
    display: block;
    width: auto;
  }
}

@media (max-width: 620px) {
  .bd-redesign {
    gap: 10px;
  }

  .bd-page-header {
    min-height: 0;
    padding: 14px;
  }

  .bd-page-heading h1 {
    font-size: 21px;
  }

  .bd-page-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .bd-page-actions .bd-button:first-child {
    grid-column: 1 / -1;
  }

  .bd-redesign > .bd-subnav {
    gap: 18px;
    padding: 0 12px;
  }

  .bd-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .bd-metric {
    min-height: 74px;
    padding: 10px;
  }

  .bd-metric > i {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .bd-metric strong {
    font-size: 17px;
  }

  .bd-modern-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bd-modern-toolbar > label {
    grid-column: 1 / -1;
  }

  .bd-modern-toolbar select {
    width: 100%;
  }

  .bd-context-panel > dl,
  .bd-customer-profile > dl,
  .bd-verification-result > dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bd-template-canvas > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .bd-paper-stage {
    min-height: 490px;
    padding: 12px;
  }

  .bd-paper-preview {
    width: 445px;
    transform: scale(.72);
    transform-origin: top left;
  }

  .bd-template-canvas {
    max-height: 610px;
  }

  .bd-verification-timeline {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 15px;
  }

  .bd-verification-timeline > div:nth-child(2)::after {
    display: none;
  }
}

/* Premium semantic workflow icons — colorful line art with layered soft rings. */
body .aibos-tool-center .bd-reference-ui :is(.bd-process-step,.bd-todo-card > div > button > i) {
  --flow-color: #c92f5b;
  --flow-soft: #fdeaf0;
}

body .aibos-tool-center .bd-reference-ui :is(.bd-process-step,.bd-todo-card > div > button > i).tone-indigo { --flow-color:#5057c9;--flow-soft:#eef0ff; }
body .aibos-tool-center .bd-reference-ui :is(.bd-process-step,.bd-todo-card > div > button > i).tone-teal { --flow-color:#159ba4;--flow-soft:#e7f7f8; }
body .aibos-tool-center .bd-reference-ui :is(.bd-process-step,.bd-todo-card > div > button > i).tone-violet { --flow-color:#7651cb;--flow-soft:#f1ebff; }
body .aibos-tool-center .bd-reference-ui :is(.bd-process-step,.bd-todo-card > div > button > i).tone-blue { --flow-color:#1979c8;--flow-soft:#e8f4ff; }
body .aibos-tool-center .bd-reference-ui :is(.bd-process-step,.bd-todo-card > div > button > i).tone-green { --flow-color:#239253;--flow-soft:#eaf8ef; }
body .aibos-tool-center .bd-reference-ui :is(.bd-process-step,.bd-todo-card > div > button > i).tone-amber { --flow-color:#d9850f;--flow-soft:#fff3df; }

body .aibos-tool-center .bd-reference-ui .bd-process-step > i {
  width: 44px;
  height: 44px;
  margin-bottom: 7px;
  color: var(--flow-color);
  border: 1px solid color-mix(in srgb, var(--flow-color) 22%, #fff);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.98) 0 18%, transparent 19%),
    linear-gradient(145deg, color-mix(in srgb, var(--flow-soft) 76%, #fff), var(--flow-soft));
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--flow-soft) 72%, transparent),
    inset 0 0 0 1px rgba(255,255,255,.78),
    0 5px 12px color-mix(in srgb, var(--flow-color) 13%, transparent);
}

body .aibos-tool-center .bd-reference-ui .bd-process-step > i .bd-flow-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body .aibos-tool-center .bd-reference-ui .bd-process-step.active {
  border-color: color-mix(in srgb, var(--flow-color) 78%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--flow-color) 66%, transparent), 0 7px 18px color-mix(in srgb, var(--flow-color) 10%, transparent);
}

body .aibos-tool-center .bd-reference-ui .bd-process-step:hover,
body .aibos-tool-center .bd-reference-ui .bd-process-step:focus-visible {
  border-color: color-mix(in srgb, var(--flow-color) 42%, #ddd);
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--flow-soft) 24%, #fff));
  outline: 0;
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview .bd-process-step > i {
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--flow-soft) 72%, transparent), inset 0 0 0 1px rgba(255,255,255,.78), 0 4px 10px color-mix(in srgb, var(--flow-color) 11%, transparent);
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview .bd-process-step > i .bd-flow-icon {
  width: 21px;
  height: 21px;
}

body .aibos-tool-center .bd-reference-ui .bd-todo-card > div > button > i {
  width: 34px;
  height: 34px;
  color: var(--flow-color);
  border: 1px solid color-mix(in srgb, var(--flow-color) 18%, #fff);
  background: linear-gradient(145deg, #fff, var(--flow-soft));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--flow-soft) 68%, transparent);
}

body .aibos-tool-center .bd-reference-ui .bd-todo-card > div > button > i .bd-flow-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 390px) {
  .bd-metrics {
    grid-template-columns: 1fr;
  }

  .bd-page-actions {
    grid-template-columns: 1fr;
  }

  .bd-page-actions .bd-button:first-child {
    grid-column: auto;
  }

  .bd-context-panel > footer,
  .bd-customer-profile > footer,
  .bd-template-settings > footer {
    grid-template-columns: 1fr;
  }
}

/* Business documents 2.2 — p-1 ... p-6 reference layout */
.bd-reference-ui {
  --bd-canvas: #fff;
  --bd-card: #fff;
  --bd-wine: #ab1645;
  --bd-wine-dark: #8f1038;
  --bd-wine-soft: #fbecef;
  --bd-line: #e8e2e0;
  width: 100%;
  gap: 0;
  padding: 0 0 18px;
  background: #fff;
}

.bd-reference-ui .bd-page-header {
  min-height: 104px;
  padding: 12px 18px 10px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.bd-reference-ui .bd-page-heading {
  min-width: 0;
}

.bd-reference-ui .bd-page-heading span {
  color: var(--bd-wine);
  font-size: 11px;
  letter-spacing: .12em;
}

.bd-reference-ui .bd-page-heading h1 {
  margin: 5px 0 3px;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.bd-reference-ui .bd-page-heading p {
  color: #706a69;
  font-size: 12px;
}

.bd-reference-ui .bd-page-actions {
  align-self: center;
  gap: 11px;
}

.bd-reference-ui .bd-page-actions .bd-button {
  min-width: 126px;
  min-height: 43px;
  gap: 9px;
  padding: 8px 18px;
  border-color: #d9d3d1;
  border-radius: 5px;
  color: #413c3b;
  background: #fff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}

.bd-reference-ui .bd-page-actions .bd-button.primary {
  color: #fff;
  border-color: var(--bd-wine);
  background: var(--bd-wine);
}

.bd-reference-ui .bd-page-actions .bd-icon {
  width: 19px;
  height: 19px;
}

.bd-reference-ui > .bd-subnav {
  gap: 44px;
  min-height: 47px;
  padding: 0 22px;
  border: 0;
  border-top: 1px solid #f5f1f0;
  border-bottom: 1px solid var(--bd-line);
  border-radius: 0;
  background: #fff;
}

.bd-reference-ui > .bd-subnav button {
  min-height: 46px;
  padding: 0 5px;
  color: #4f4948;
  font-size: 13px;
  font-weight: 500;
}

.bd-reference-ui > .bd-subnav button.active {
  color: var(--bd-wine);
  font-weight: 700;
}

.bd-reference-ui > .bd-subnav button.active::after {
  height: 2px;
  border-radius: 0;
}

.bd-reference-ui .bd-metrics {
  gap: 16px;
  margin: 14px 0;
  padding: 0 18px;
}

.bd-reference-ui .bd-metric {
  min-height: 84px;
  gap: 14px;
  padding: 13px 19px;
  border-color: #e5dfdd;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(51, 40, 39, .025);
}

.bd-reference-ui .bd-metric > i {
  flex-basis: 48px;
  width: 48px;
  height: 48px;
}

.bd-reference-ui .bd-metric > i .bd-icon {
  width: 25px;
  height: 25px;
  stroke-width: 1.7;
}

.bd-reference-ui .bd-metric span {
  color: #625b5a;
  font-size: 12px;
}

.bd-reference-ui .bd-metric strong {
  margin-top: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .01em;
}

.bd-reference-ui .bd-metric small {
  display: inline-block;
  margin-top: 2px;
  font-size: 10px;
}

.bd-reference-ui .bd-metric-chevron {
  display: grid;
  margin-left: auto;
  place-items: center;
  color: var(--bd-wine);
}

.bd-reference-ui .bd-metric-chevron .bd-icon {
  width: 15px;
  height: 15px;
}

.bd-reference-ui .bd-work-card {
  border-color: #e5dfdd;
  border-radius: 7px;
  box-shadow: none;
}

.bd-reference-ui .bd-work-card > header {
  min-height: 51px;
  padding: 12px 17px;
  border-bottom-color: #ede8e6;
}

.bd-reference-ui .bd-work-card > header h2 {
  color: #262120;
  font-size: 16px;
}

.bd-reference-ui .bd-work-card > header p {
  font-size: 10px;
}

.bd-reference-ui .bd-workspace-grid.overview,
.bd-reference-ui .bd-recent-card,
.bd-reference-ui .bd-sync-strip,
.bd-reference-ui .bd-workspace-grid.purchase,
.bd-reference-ui .purchase-detail,
.bd-reference-ui .bd-customer-bulk {
  margin-right: 18px;
  margin-left: 18px;
}

.bd-reference-ui .bd-workspace-grid.overview,
.bd-reference-ui .bd-workspace-grid.purchase,
.bd-reference-ui .purchase-detail,
.bd-reference-ui .bd-workspace-grid.customer-detail,
.bd-reference-ui .bd-template-workspace,
.bd-reference-ui .bd-verification-workspace,
.bd-reference-ui .bd-recent-card {
  margin-bottom: 14px;
}

.bd-reference-ui .bd-workspace-grid.overview {
  grid-template-columns: minmax(0, 2fr) minmax(310px, .92fr);
  gap: 15px;
}

.bd-reference-ui .bd-flow-board > header p,
.bd-reference-ui .bd-todo-card > header p,
.bd-reference-ui .bd-recent-card > header p {
  display: none;
}

.bd-reference-ui .bd-process {
  min-width: 680px;
  gap: 9px;
  padding: 16px;
}

.bd-reference-ui .bd-process + .bd-process {
  padding-top: 13px;
}

.bd-reference-ui .bd-process-step {
  min-width: 84px;
  min-height: 124px;
  padding: 11px 5px 9px;
  border: 1px solid #e6dfdd;
  border-radius: 7px;
  background: #fff;
}

.bd-reference-ui .bd-process-step.active {
  border-color: var(--bd-wine);
  box-shadow: inset 0 0 0 1px var(--bd-wine);
}

.bd-reference-ui .bd-process-step > i {
  width: 39px;
  height: 39px;
  margin-bottom: 4px;
  border-radius: 50%;
}

.bd-reference-ui .bd-process-step > i .bd-icon {
  width: 22px;
  height: 22px;
}

.bd-reference-ui .bd-process-step > span {
  font-size: 11px;
}

.bd-reference-ui .bd-process-step > strong {
  margin: 1px 0;
  font-size: 20px;
}

.bd-reference-ui .bd-process-step > small {
  font-size: 9px;
}

.bd-reference-ui .bd-process-step > b {
  top: auto;
  right: 0;
  bottom: -20px;
  left: 0;
  color: #db8a1e;
  background: transparent;
  font-size: 9px;
  text-align: center;
}

.bd-reference-ui .bd-step-progress {
  display: block;
  width: calc(100% - 14px);
  height: 5px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 4px;
  background: #e6e4e2;
}

.bd-reference-ui .bd-step-progress > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #14853b;
}

.bd-reference-ui.bd-view-overview .bd-process {
  min-width: 620px;
  padding: 10px 15px;
}

.bd-reference-ui.bd-view-overview .bd-process-step {
  min-height: 88px;
  padding: 5px 4px;
  border: 1px solid #e6dfdd;
}

.bd-reference-ui.bd-view-overview .bd-process-step > i {
  width: 31px;
  height: 31px;
  margin-bottom: 2px;
}

.bd-reference-ui.bd-view-overview .bd-process-step > i .bd-icon {
  width: 18px;
  height: 18px;
}

.bd-reference-ui.bd-view-overview .bd-process-step > strong {
  font-size: 17px;
}

.bd-reference-ui.bd-view-overview .bd-step-progress,
.bd-reference-ui.bd-view-overview .bd-process-step > b {
  display: none;
}

.bd-view-overview .bd-modern-toolbar {
  min-height: 43px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.bd-view-overview .bd-modern-table th,
.bd-view-overview .bd-modern-table td {
  height: 36px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.bd-reference-ui .bd-process-arrow {
  flex-basis: 15px;
  color: #4b4746;
}

.bd-reference-ui .bd-todo-card > div > button {
  min-height: 52px;
  padding: 10px 17px;
  font-size: 12px;
}

.bd-reference-ui .bd-todo-card > div > button > i {
  border-radius: 50%;
}

.bd-reference-ui .bd-recent-card > header {
  min-height: 44px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.bd-reference-ui .bd-modern-toolbar {
  gap: 12px;
  min-height: 53px;
  padding: 8px 14px;
}

.bd-reference-ui .bd-modern-toolbar > label,
.bd-reference-ui .bd-modern-toolbar input,
.bd-reference-ui .bd-modern-toolbar select {
  height: 34px;
  border-radius: 5px;
}

.bd-reference-ui .bd-modern-table th,
.bd-reference-ui .bd-modern-table td {
  height: 42px;
  padding: 7px 11px;
}

.bd-reference-ui .bd-modern-table th {
  color: #373130;
  background: #fbf7f6;
  font-size: 11px;
}

.bd-reference-ui .bd-modern-table td {
  color: #423c3b;
  font-size: 11px;
}

.bd-reference-ui .bd-sync-strip {
  min-height: 42px;
  color: #4d4a48;
  border-color: #e2dddb;
  border-radius: 7px;
  background: #fff;
}

.bd-reference-ui .bd-sync-strip > .bd-icon {
  color: #1b983d;
}

/* Overview fidelity pass — follows 2026-07-30_162256.jpg */
.bd-reference-ui .bd-icon-solid {
  fill: none;
  stroke: none;
}

.bd-reference-ui .bd-metric.blue > i {
  color: #2c87d9;
  background: #eaf4ff;
}

.bd-reference-ui.bd-view-overview .bd-metrics {
  gap: 14px;
}

.bd-reference-ui.bd-view-overview .bd-metric {
  min-height: 104px;
  gap: 15px;
  padding: 14px 17px;
}

.bd-reference-ui.bd-view-overview .bd-metric > i {
  flex-basis: 52px;
  width: 52px;
  height: 52px;
}

.bd-reference-ui.bd-view-overview .bd-metric > i .bd-icon {
  width: 29px;
  height: 29px;
}

.bd-reference-ui.bd-view-overview .bd-metric span {
  font-size: 13px;
}

.bd-reference-ui.bd-view-overview .bd-metric strong {
  margin: -1px 0 1px;
  font-size: 26px;
  line-height: 1.15;
}

.bd-reference-ui.bd-view-overview .bd-metric small {
  color: #817977;
  font-size: 10px;
}

.bd-reference-ui.bd-view-overview .bd-metric small em {
  margin-left: 3px;
  color: #c8334d;
  font-style: normal;
  font-weight: 700;
}

.bd-reference-ui.bd-view-overview .bd-metric small em.down {
  color: #2e8a57;
}

.bd-reference-ui.bd-view-overview .bd-flow-board > header,
.bd-reference-ui.bd-view-overview .bd-todo-card > header {
  min-height: 50px;
  padding: 11px 16px;
}

.bd-reference-ui.bd-view-overview .bd-flow-board > header h2,
.bd-reference-ui.bd-view-overview .bd-todo-card > header h2 {
  font-size: 16px;
}

.bd-reference-ui.bd-view-overview .bd-process {
  gap: 8px;
  padding-right: 14px;
  padding-left: 14px;
}

.bd-reference-ui.bd-view-overview .bd-process.sales {
  padding-top: 12px;
  padding-bottom: 13px;
}

.bd-reference-ui.bd-view-overview .bd-process.purchase {
  justify-content: flex-start;
  padding-top: 11px;
  padding-bottom: 13px;
}

.bd-reference-ui.bd-view-overview .bd-process-step {
  min-width: 0;
  min-height: 124px;
  padding: 9px 4px 7px;
  border-color: #e5dfdd;
  border-radius: 7px;
}

.bd-reference-ui.bd-view-overview .bd-process.purchase .bd-process-step {
  display: grid;
  flex: 0 0 112px;
  grid-template-columns: 35px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  min-height: 80px;
  padding: 8px 7px 6px;
  place-items: center start;
}

.bd-reference-ui.bd-view-overview .bd-process-step > i {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
  color: var(--bd-wine);
  background: var(--bd-wine-soft);
}

.bd-reference-ui.bd-view-overview .bd-process-step > i .bd-icon {
  width: 22px;
  height: 22px;
}

.bd-reference-ui.bd-view-overview .bd-process-step > span {
  color: #282322;
  font-size: 11px;
  font-weight: 700;
}

.bd-reference-ui.bd-view-overview .bd-process-step > strong {
  margin: 1px 0;
  font-size: 19px;
  line-height: 1.1;
}

.bd-reference-ui.bd-view-overview .bd-process-step > small {
  color: #77706e;
  font-size: 9px;
}

.bd-reference-ui.bd-view-overview .bd-process.purchase .bd-process-step > i {
  grid-row: 1 / 3;
  margin: 0;
}

.bd-reference-ui.bd-view-overview .bd-process.purchase .bd-process-step > span,
.bd-reference-ui.bd-view-overview .bd-process.purchase .bd-process-step > strong {
  grid-column: 2;
}

.bd-reference-ui.bd-view-overview .bd-process.purchase .bd-process-step > small {
  grid-column: 1 / 3;
  justify-self: center;
}

.bd-reference-ui.bd-view-overview .bd-process-arrow {
  flex-basis: 16px;
  color: #3f3a39;
}

.bd-reference-ui.bd-view-overview .bd-process-arrow .bd-icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.bd-reference-ui.bd-view-overview .bd-todo-card > div > button {
  grid-template-columns: 36px minmax(0, 1fr) auto 18px;
  min-height: 54px;
  padding: 9px 16px;
  border-bottom-color: #eee8e6;
}

.bd-reference-ui.bd-view-overview .bd-todo-card > div > button > i {
  width: 33px;
  height: 33px;
  color: var(--bd-wine);
  background: var(--bd-wine-soft);
}

.bd-reference-ui.bd-view-overview .bd-todo-card > div > button > i .bd-icon {
  width: 18px;
  height: 18px;
}

.bd-reference-ui.bd-view-overview .bd-todo-card > div > button > span {
  font-size: 12px;
}

.bd-reference-ui.bd-view-overview .bd-todo-card em {
  min-width: 43px;
  padding: 3px 8px;
  text-align: center;
}

.bd-reference-ui.bd-view-overview .bd-todo-card > footer {
  display: grid;
  min-height: 45px;
  place-items: center;
}

.bd-reference-ui.bd-view-overview .bd-todo-card > footer button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bd-wine);
  border: 0;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.bd-reference-ui.bd-view-overview .bd-todo-card > footer .bd-icon {
  width: 14px;
  height: 14px;
}

/* Sales: reference image keeps the progress rail fixed at the right edge. */
.bd-reference-ui .bd-sales-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: stretch;
  gap: 15px;
  margin-top: 14px;
  padding: 0 18px;
}

.bd-reference-ui .bd-sales-layout.context-closed {
  grid-template-columns: minmax(0, 1fr);
}

.bd-reference-ui .bd-sales-main {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.bd-reference-ui .bd-sales-main > .bd-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}

.bd-reference-ui .bd-sales-main > .bd-metrics .bd-metric {
  min-height: 96px;
}

.bd-reference-ui .bd-sales-main > .bd-flow-board {
  overflow: visible;
}

.bd-reference-ui .bd-sales-main > .bd-flow-board > header {
  display: none;
}

.bd-reference-ui .bd-sales-main .bd-process {
  min-width: 700px;
  padding-bottom: 29px;
}

.bd-reference-ui .bd-sales-main .bd-workspace-grid.detail {
  display: block;
}

.bd-reference-ui .bd-sales-sync {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.bd-reference-ui .bd-sales-sync > span {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0 8px;
  align-items: center;
  min-height: 42px;
  padding: 6px 13px;
  border-right: 1px solid #e7e2e0;
}

.bd-reference-ui .bd-sales-sync > span:last-child {
  border: 0;
}

.bd-reference-ui .bd-sales-sync .bd-icon {
  grid-row: 1 / 3;
  color: #199442;
}

.bd-reference-ui .bd-sales-sync small {
  color: #508265;
  font-size: 9px;
}

.bd-reference-ui .bd-sales-layout > .bd-context-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border-radius: 0;
}

.bd-reference-ui .bd-panel-close {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: #5f5857;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.bd-reference-ui .bd-context-number {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 3px;
  color: var(--bd-wine);
}

.bd-reference-ui .bd-context-number strong {
  font-size: 14px;
}

.bd-reference-ui .bd-sales-layout > .bd-context-panel > dl {
  grid-template-columns: 1fr;
  padding-top: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee8e6;
}

.bd-reference-ui .bd-sales-layout > .bd-context-panel > dl > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
}

.bd-reference-ui .bd-sales-layout > .bd-context-panel > h3 {
  padding-top: 16px;
}

.bd-reference-ui .bd-sales-layout .bd-timeline {
  flex: 1 1 auto;
  padding-top: 8px;
}

.bd-reference-ui .bd-sales-layout .bd-latest-event {
  margin-top: auto;
}

/* Purchase */
.bd-reference-ui .bd-workspace-grid.purchase {
  grid-template-columns: minmax(0, 1.32fr) minmax(360px, 1fr);
}

.bd-reference-ui .bd-workspace-grid.purchase .bd-process {
  min-width: 620px;
  padding-bottom: 29px;
}

.bd-reference-ui .purchase-detail {
  grid-template-columns: minmax(0, 1fr) 390px;
}

.bd-reference-ui .bd-arrival-card > button {
  min-height: 45px;
  grid-template-columns: minmax(170px, 1.2fr) 80px 110px 58px;
}

.bd-reference-ui .bd-context-panel.purchase .bd-progress-line {
  margin: 4px 15px 8px;
}

/* Customer management */
.bd-reference-ui .bd-workspace-grid.customer-detail {
  grid-template-columns: minmax(0, 1.65fr) minmax(370px, .95fr);
  gap: 15px;
  margin: 0 18px;
}

.bd-reference-ui .bd-customer-table {
  min-width: 980px;
}

.bd-reference-ui .bd-customer-table th:first-child,
.bd-reference-ui .bd-customer-table td:first-child {
  width: 36px;
  text-align: center;
}

.bd-reference-ui .bd-customer-table input {
  accent-color: var(--bd-wine);
}

.bd-reference-ui .bd-table-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  min-height: 48px;
  padding: 7px 14px;
  border-top: 1px solid #eee8e6;
  color: #6d6564;
  font-size: 10px;
}

.bd-reference-ui .bd-table-footer nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.bd-reference-ui .bd-table-footer button,
.bd-reference-ui .bd-table-footer select {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  color: #615a59;
  border: 1px solid #e3dcda;
  border-radius: 4px;
  background: #fff;
}

.bd-reference-ui .bd-table-footer button.active {
  color: #fff;
  border-color: var(--bd-wine);
  background: var(--bd-wine);
}

.bd-reference-ui .bd-table-footer select {
  width: 88px;
  margin-left: 13px;
}

.bd-reference-ui .bd-customer-profile > header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bd-reference-ui .bd-customer-profile > header span {
  margin: 0;
  border-radius: 4px;
}

.bd-reference-ui .bd-customer-profile > dl {
  margin: 0 14px;
  border: 1px solid #eee8e6;
  border-radius: 5px;
}

.bd-reference-ui .bd-customer-chain {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bd-reference-ui .bd-customer-chain > div {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 5px;
  border: 0;
  background: #fff7f8;
}

.bd-reference-ui .bd-customer-chain > b {
  display: grid;
  flex: 0 0 14px;
  place-items: center;
  color: #5f5756;
}

.bd-reference-ui .bd-customer-chain > b .bd-icon {
  width: 13px;
}

.bd-reference-ui .bd-customer-bulk {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 51px;
  padding: 8px 15px;
  color: var(--bd-wine);
  border: 1px solid #efd8de;
  border-radius: 7px;
  background: #fff5f7;
}

.bd-reference-ui .bd-customer-bulk button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  padding: 5px 17px;
  color: var(--bd-wine);
  border: 1px solid #d9a9b7;
  border-radius: 5px;
  background: #fff;
}

.bd-reference-ui .bd-customer-bulk > span {
  margin-left: auto;
  color: #625b5a;
  font-size: 21px;
}

.bd-reference-ui .bd-customer-bulk button:last-child {
  margin-left: auto;
  padding-inline: 11px;
  font-size: 20px;
}

.bd-reference-ui .bd-table-selection {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--bd-wine);
  border-top: 1px solid #eadde0;
  background: #fff8fa;
}

.bd-reference-ui .bd-table-selection button {
  min-height: 30px;
  padding: 4px 12px;
  color: var(--bd-wine);
  border: 1px solid #d9a9b7;
  border-radius: 5px;
  background: #fff;
}

.bd-reference-ui .bd-table-selection button:first-of-type {
  margin-left: auto;
}

.bd-reference-ui .bd-empty-inline {
  display: block;
  padding: 10px 2px;
  color: #8b8381;
  font-size: 12px;
}

.bd-a4.has-watermark::before {
  content: "内部资料";
  position: absolute;
  top: 46%;
  left: 20%;
  z-index: 0;
  color: rgba(143, 22, 54, 0.08);
  font-size: 72px;
  font-weight: 800;
  letter-spacing: 18px;
  transform: rotate(-28deg);
  pointer-events: none;
}

.bd-a4.has-watermark > * {
  position: relative;
  z-index: 1;
}

/* Template editor */
.bd-reference-ui .bd-template-workspace {
  grid-template-columns: 300px minmax(580px, 1fr) 250px;
  gap: 13px;
  padding: 0 18px;
}

.bd-reference-ui .bd-template-list .bd-modern-toolbar {
  padding-bottom: 8px;
}

.bd-reference-ui .bd-template-filters {
  padding: 0 14px 10px;
}

.bd-reference-ui .bd-template-filters button {
  flex: 1;
  min-height: 31px;
  padding: 4px 8px;
  border: 1px solid #ded8d6;
  border-radius: 5px;
  background: #fff;
  font-size: 10px;
}

.bd-reference-ui .bd-template-filters button.active {
  color: #fff;
  border-color: var(--bd-wine);
  background: var(--bd-wine);
}

.bd-reference-ui .bd-template-list > div:last-child > button {
  grid-template-columns: 50px 1fr 17px;
  min-height: 75px;
  padding: 9px 12px;
}

.bd-reference-ui .bd-template-list {
  max-height: 650px;
}

.bd-reference-ui .bd-template-list > div:last-child {
  max-height: 488px;
  overflow: auto;
}

.bd-reference-ui .bd-template-list > div:last-child > button > i {
  width: 44px;
  height: 55px;
  color: #c2bbbb;
  border: 1px solid #e6e0de;
  border-radius: 0;
  background: linear-gradient(#fff, #faf8f7);
}

.bd-reference-ui .bd-template-canvas > header {
  min-height: 56px;
}

.bd-reference-ui .bd-template-canvas > header > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bd-reference-ui .bd-template-canvas > header > div:first-child p {
  display: flex;
  gap: 5px;
  margin: 0;
}

.bd-reference-ui .bd-template-canvas > header > div:first-child p span {
  padding: 2px 6px;
  border: 1px solid #e2dcda;
  border-radius: 11px;
  background: #faf8f7;
}

.bd-reference-ui .bd-paper-stage {
  min-height: 610px;
  padding: 18px;
  background: #f1eeec;
}

.bd-reference-ui .bd-paper-preview {
  width: min(690px, 100%);
  min-height: 540px;
  padding: 22px;
}

.bd-reference-ui .bd-paper-preview > header {
  grid-template-columns: 170px 1fr;
}

.bd-reference-ui .bd-paper-preview > header img {
  width: 160px;
}

.bd-reference-ui .bd-paper-preview tbody tr {
  height: 45px;
}

.bd-reference-ui .bd-template-settings > footer {
  grid-template-columns: 1fr;
}

.bd-reference-ui .bd-template-settings > footer .bd-button {
  min-height: 42px;
  border-radius: 4px;
}

/* Verification */
.bd-reference-ui .bd-verification-workspace {
  grid-template-columns: minmax(300px, .9fr) minmax(550px, 1.55fr) minmax(230px, .7fr);
  gap: 15px;
  padding: 0 18px;
}

.bd-reference-ui .bd-scan-card {
  min-height: 565px;
}

.bd-reference-ui .bd-scan-frame {
  position: relative;
  width: 170px;
  height: 138px;
  margin: 24px auto 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.bd-reference-ui .bd-scan-frame > i,
.bd-reference-ui .bd-scan-frame > span,
.bd-reference-ui .bd-scan-frame > b,
.bd-reference-ui .bd-scan-frame > em {
  position: absolute;
  width: 19px;
  height: 19px;
  border-color: var(--bd-wine);
  border-style: solid;
  content: "";
}

.bd-reference-ui .bd-scan-frame > i {
  top: 0;
  left: 0;
  border-width: 3px 0 0 3px;
}

.bd-reference-ui .bd-scan-frame > span {
  top: 0;
  right: 0;
  border-width: 3px 3px 0 0;
}

.bd-reference-ui .bd-scan-frame > b {
  bottom: 0;
  left: 0;
  border-width: 0 0 3px 3px;
}

.bd-reference-ui .bd-scan-frame > em {
  right: 0;
  bottom: 0;
  border-width: 0 3px 3px 0;
}

.bd-reference-ui .bd-scan-frame > hr {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  margin: 0;
  border: 0;
  background: var(--bd-wine);
}

.bd-reference-ui .bd-scan-frame > video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.bd-reference-ui .bd-scan-frame > i,
.bd-reference-ui .bd-scan-frame > span,
.bd-reference-ui .bd-scan-frame > b,
.bd-reference-ui .bd-scan-frame > em,
.bd-reference-ui .bd-scan-frame > hr {
  z-index: 1;
}

.bd-reference-ui .bd-verify-history > div {
  grid-template-columns: 72px 1fr auto;
}

.bd-reference-ui .bd-verification-result > dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bd-reference-ui .bd-verification-result > dl > div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 7px;
}

.bd-reference-ui .bd-verification-result > footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.bd-reference-ui .bd-verification-result > footer button {
  justify-content: center;
  min-height: 36px;
}

.bd-reference-ui .bd-public-settings {
  min-height: 565px;
}

.bd-reference-ui .bd-public-settings > p {
  margin-top: 115px;
  color: #6b6664;
  background: transparent;
}

@media (max-width: 1380px) {
  .bd-reference-ui .bd-template-workspace {
    grid-template-columns: 260px minmax(500px, 1fr) 230px;
  }

  .bd-reference-ui .bd-verification-workspace {
    grid-template-columns: 270px minmax(480px, 1fr) 215px;
  }
}

@media (max-width: 1160px) {
  .bd-reference-ui .bd-sales-layout {
    grid-template-columns: 1fr;
  }

  .bd-reference-ui .bd-sales-layout > .bd-context-panel {
    min-height: auto;
  }

  .bd-reference-ui .bd-template-workspace,
  .bd-reference-ui .bd-verification-workspace {
    grid-template-columns: 1fr;
  }

  .bd-reference-ui .bd-template-settings,
  .bd-reference-ui .bd-public-settings {
    grid-column: auto;
    min-height: auto;
  }

  .bd-reference-ui .bd-public-settings > p {
    margin-top: 12px;
  }
}

/* The tool can live inside a narrow application pane even when the browser viewport is wide. */
.bd-reference-ui.bd-container-narrow .bd-template-workspace,
.bd-reference-ui.bd-container-narrow .bd-verification-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.bd-reference-ui.bd-container-narrow .bd-template-settings,
.bd-reference-ui.bd-container-narrow .bd-public-settings {
  grid-column: auto;
  min-height: auto;
}

.bd-reference-ui.bd-container-narrow .bd-public-settings > p {
  margin-top: 12px;
}

.bd-reference-ui.bd-container-narrow .bd-template-canvas,
.bd-reference-ui.bd-container-narrow .bd-paper-stage-formal {
  min-width: 0;
}

@media (max-width: 820px) {
  .bd-reference-ui .bd-page-header {
    align-items: flex-start;
    min-height: 0;
    padding: 13px 14px;
  }

  .bd-reference-ui > .bd-subnav {
    gap: 24px;
    padding: 0 14px;
  }

  .bd-reference-ui .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bd-reference-ui .bd-workspace-grid.overview,
  .bd-reference-ui .bd-workspace-grid.purchase,
  .bd-reference-ui .purchase-detail,
  .bd-reference-ui .bd-workspace-grid.customer-detail {
    grid-template-columns: 1fr;
  }

  .bd-reference-ui .bd-sales-main > .bd-flow-board {
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 620px) {
  .bd-reference-ui .bd-page-heading h1 {
    font-size: 24px;
  }

  .bd-reference-ui .bd-page-actions .bd-button {
    min-width: 0;
  }

  .bd-reference-ui .bd-metric {
    min-height: 76px;
    padding: 10px;
  }

  .bd-reference-ui .bd-metric > i {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .bd-reference-ui .bd-metric strong {
    font-size: 18px;
  }

  .bd-reference-ui .bd-metric-chevron {
    display: none;
  }

  .bd-reference-ui .bd-customer-bulk {
    flex-wrap: wrap;
  }

  .bd-reference-ui.bd-view-overview .bd-metric > div {
    min-width: 0;
  }

  .bd-reference-ui.bd-view-overview .bd-metric strong {
    font-size: 18px;
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  .bd-reference-ui.bd-view-overview .bd-metrics {
    grid-template-columns: 1fr;
  }
}

/* Unified software typography and connected overview controls */
.bd-reference-ui {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

.bd-reference-ui .bd-page-heading > span {
  font-size: 12px;
}

.bd-reference-ui .bd-page-heading h1 {
  font-size: 24px;
}

.bd-reference-ui .bd-page-heading p {
  font-size: 13px;
}

.bd-reference-ui .bd-page-actions .bd-button,
.bd-reference-ui > .bd-subnav button {
  font-size: 14px;
}

.bd-reference-ui .bd-work-card > header p,
.bd-reference-ui .bd-metric small,
.bd-reference-ui .bd-modern-table th,
.bd-reference-ui .bd-modern-table td > small,
.bd-reference-ui .bd-status,
.bd-reference-ui .bd-mine-toggle {
  font-size: 12px;
}

.bd-reference-ui .bd-modern-toolbar input,
.bd-reference-ui .bd-modern-toolbar select,
.bd-reference-ui .bd-modern-table td,
.bd-reference-ui .bd-row-actions button,
.bd-reference-ui .bd-sync-strip {
  font-size: 13px;
}

/* Keep the search icon and text field inside one control. Global form rules use
   a 44px minimum height, so the inner search input must explicitly opt out. */
.bd-reference-ui .bd-modern-toolbar > .bd-toolbar-search {
  flex: 1 1 260px;
  width: auto;
  min-width: 170px;
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid #e5d7d5;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}

.bd-reference-ui .bd-modern-toolbar > .bd-toolbar-search > .bd-icon {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
}

.bd-reference-ui .bd-modern-toolbar > .bd-toolbar-search > input[type="search"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: 0;
}

.bd-reference-ui .bd-modern-toolbar > .bd-toolbar-search > input[type="search"]:focus {
  border: 0;
  box-shadow: none;
  outline: 0;
}

.bd-reference-ui .bd-modern-toolbar > .bd-toolbar-search:focus-within {
  border-color: #c77d91;
  box-shadow: 0 0 0 2px rgba(141, 49, 72, .1);
}

.bd-reference-ui.bd-view-overview .bd-metric[data-bd-action] {
  width: 100%;
  color: inherit;
  border: 1px solid #e5dfdd;
  background: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.bd-reference-ui.bd-view-overview .bd-metric[data-bd-action]:hover,
.bd-reference-ui.bd-view-overview .bd-metric[data-bd-action]:focus-visible {
  border-color: #d6a4b4;
  box-shadow: 0 4px 14px rgba(108, 34, 58, .08);
  outline: 0;
  transform: translateY(-1px);
}

.bd-reference-ui.bd-view-overview .bd-metric strong {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.bd-reference-ui.bd-view-overview .bd-metric small,
.bd-reference-ui.bd-view-overview .bd-process-step > small {
  font-size: 12px;
}

.bd-reference-ui.bd-view-overview .bd-process-step > span {
  font-size: 13px;
}

.bd-reference-ui.bd-view-overview .bd-process-step > strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.bd-reference-ui.bd-view-overview .bd-todo-card > div > button > span,
.bd-reference-ui.bd-view-overview .bd-todo-card em,
.bd-reference-ui.bd-view-overview .bd-todo-card > footer button {
  font-size: 13px;
}

.bd-reference-ui:not(.bd-view-overview) .bd-process-step > span,
.bd-reference-ui:not(.bd-view-overview) .bd-process-step > small,
.bd-reference-ui:not(.bd-view-overview) .bd-process-step > b,
.bd-reference-ui .bd-sync-strip small,
.bd-reference-ui .bd-context-panel dt,
.bd-reference-ui .bd-timeline strong,
.bd-reference-ui .bd-timeline small,
.bd-reference-ui .bd-latest-event b,
.bd-reference-ui .bd-latest-event span,
.bd-reference-ui .bd-latest-event small,
.bd-reference-ui .bd-arrival-card > button span small,
.bd-reference-ui .bd-arrival-card > button time,
.bd-reference-ui .bd-arrival-card > button em,
.bd-reference-ui .bd-arrival-card > button > i,
.bd-reference-ui .bd-table-footer,
.bd-reference-ui .bd-table-footer button,
.bd-reference-ui .bd-customer-profile > header span,
.bd-reference-ui .bd-customer-profile dt,
.bd-reference-ui .bd-customer-profile > section span,
.bd-reference-ui .bd-customer-profile > section p,
.bd-reference-ui .bd-customer-chain span,
.bd-reference-ui .bd-customer-chain strong,
.bd-reference-ui .bd-recent-activity > div,
.bd-reference-ui .bd-template-filters button,
.bd-reference-ui .bd-template-list small,
.bd-reference-ui .bd-template-canvas > header button,
.bd-reference-ui .bd-template-settings details label,
.bd-reference-ui .bd-template-settings details em,
.bd-reference-ui .bd-scan-card > p,
.bd-reference-ui .bd-scan-card > small,
.bd-reference-ui .bd-verify-history h3,
.bd-reference-ui .bd-verify-history header button,
.bd-reference-ui .bd-verify-history > div,
.bd-reference-ui .bd-verify-history > div small,
.bd-reference-ui .bd-verification-result > header > em,
.bd-reference-ui .bd-verification-result > header > div > span,
.bd-reference-ui .bd-verification-result dt,
.bd-reference-ui .bd-verification-timeline span,
.bd-reference-ui .bd-verification-timeline small,
.bd-reference-ui .bd-data-source,
.bd-reference-ui .bd-verification-result > footer button,
.bd-reference-ui .bd-security-note,
.bd-reference-ui .bd-public-settings > label span,
.bd-reference-ui .bd-public-settings > label small,
.bd-reference-ui .bd-public-settings > p {
  font-size: 12px;
}

@media (max-width: 620px) {
  .bd-reference-ui.bd-view-overview .bd-metric strong {
    font-size: 24px;
  }
}

/* Tool Center business submenu — match the Product/Warehouse text-tab pattern. */
body .aibos-tool-center .bd-reference-ui > .bd-subnav {
  width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  gap: 32px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-bottom: 1px solid #eadfdd !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .aibos-tool-center .bd-reference-ui > .bd-subnav > button {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #44383b !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

body .aibos-tool-center .bd-reference-ui > .bd-subnav > button:hover,
body .aibos-tool-center .bd-reference-ui > .bd-subnav > button:focus-visible {
  border: 0 !important;
  background: transparent !important;
  color: var(--bd-wine) !important;
}

body .aibos-tool-center .bd-reference-ui > .bd-subnav > button.active {
  border: 0 !important;
  background: transparent !important;
  color: var(--bd-wine) !important;
  box-shadow: none !important;
}

body .aibos-tool-center .bd-reference-ui > .bd-subnav > button::after {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: block !important;
  height: 3px !important;
  border-radius: 3px 3px 0 0 !important;
  background: var(--bd-wine) !important;
  content: "" !important;
  opacity: 0 !important;
}

body .aibos-tool-center .bd-reference-ui > .bd-subnav > button.active::after {
  opacity: 1 !important;
}

@media (max-width: 700px) {
  body .aibos-tool-center .bd-reference-ui > .bd-subnav {
    gap: 24px !important;
    padding-inline: 8px !important;
  }
}

/* Business overview metrics — unified executive metric rail. */
body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 16px 18px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e3dddb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(62, 43, 46, .055), inset 0 1px 0 rgba(255, 255, 255, .94);
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric {
  --metric-accent: #c51f4a;
  --metric-soft: #fde8ed;
  position: relative;
  min-width: 0;
  min-height: 116px;
  gap: 14px;
  margin: 0;
  padding: 17px 20px 19px;
  overflow: hidden;
  border: 0 !important;
  border-right: 1px solid #e7e2e0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric:last-child {
  border-right: 0 !important;
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric.amber {
  --metric-accent: #d99308;
  --metric-soft: #fff0ce;
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric.blue {
  --metric-accent: #147acb;
  --metric-soft: #dfefff;
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric.green {
  --metric-accent: #15945a;
  --metric-soft: #dcf4e9;
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric.violet {
  --metric-accent: #6f4dcc;
  --metric-soft: #eee8ff;
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric::after {
  position: absolute;
  right: 4px;
  bottom: 0;
  left: 4px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--metric-accent) 78%, #fff), var(--metric-accent));
  box-shadow: 0 -2px 8px color-mix(in srgb, var(--metric-accent) 16%, transparent);
  content: "";
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric > i {
  position: relative;
  z-index: 0;
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--metric-accent);
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 5px 5px color-mix(in srgb, var(--metric-accent) 19%, transparent));
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric > i::before {
  position: absolute;
  z-index: -1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fff 0 10%, var(--metric-soft) 35%, transparent 72%);
  content: "";
  opacity: .78;
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric > i .bd-icon {
  width: 38px;
  height: 38px;
  overflow: visible;
  filter: saturate(1.08);
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric > div {
  display: grid;
  align-content: center;
  min-width: 0;
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric span {
  color: #514a49;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric strong {
  margin: 2px 0 3px;
  color: #1f1b1b;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.025em;
  white-space: nowrap;
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #6f6866;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric small::before {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--metric-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--metric-accent) 10%, transparent);
  content: "";
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric small em {
  margin-left: -2px;
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric[data-bd-action]:hover,
body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric[data-bd-action]:focus-visible {
  border-right-color: #e7e2e0 !important;
  background: linear-gradient(150deg, color-mix(in srgb, var(--metric-soft) 32%, #fff), #fff 68%) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--metric-accent) 18%, transparent) !important;
  outline: 0;
  transform: none;
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric:last-child:hover,
body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric:last-child:focus-visible {
  border-right: 0 !important;
}

@media (max-width: 1040px) {
  body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics {
    grid-template-columns: repeat(5, minmax(182px, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric {
    min-height: 108px;
    padding-inline: 16px;
  }
}

@media (max-width: 620px) {
  body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics {
    grid-template-columns: repeat(5, minmax(172px, 1fr));
    margin-inline: 10px;
    border-radius: 12px;
  }

  body .aibos-tool-center .bd-reference-ui.bd-view-overview > .bd-metrics > .bd-metric strong {
    font-size: 25px;
  }
}

/* All Tool Center business metric groups use the same executive metric rail. */
body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) {
  box-sizing: border-box;
  height: var(--aibos-overview-rail-height, 114px) !important;
  min-height: var(--aibos-overview-rail-height, 114px) !important;
  max-height: var(--aibos-overview-rail-height, 114px) !important;
  display: grid;
  grid-template-columns: repeat(var(--metric-count, 5), minmax(0, 1fr)) !important;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e3dddb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(62, 43, 46, .055), inset 0 1px 0 rgba(255, 255, 255, .94);
}

body .aibos-tool-center .bd-reference-ui > .bd-metrics {
  margin: 16px 18px;
}

body .aibos-tool-center .bd-reference-ui .bd-sales-main > .bd-metrics {
  grid-template-columns: repeat(var(--metric-count, 4), minmax(182px, 1fr)) !important;
  margin: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) > .bd-metric {
  --metric-accent: #c51f4a;
  --metric-soft: #fde8ed;
  position: relative;
  min-width: 0;
  height: var(--aibos-overview-item-height, 112px);
  min-height: var(--aibos-overview-item-height, 112px);
  gap: 14px;
  margin: 0;
  padding: 17px 20px 19px;
  overflow: hidden;
  border: 0 !important;
  border-right: 1px solid #e7e2e0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
}

body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) > .bd-metric:nth-child(2) {
  --metric-accent: #d99308;
  --metric-soft: #fff0ce;
}

body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) > .bd-metric:nth-child(3) {
  --metric-accent: #147acb;
  --metric-soft: #dfefff;
}

body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) > .bd-metric:nth-child(4) {
  --metric-accent: #15945a;
  --metric-soft: #dcf4e9;
}

body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) > .bd-metric:nth-child(5) {
  --metric-accent: #6f4dcc;
  --metric-soft: #eee8ff;
}

body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) > .bd-metric.danger {
  --metric-accent: #c7444d;
  --metric-soft: #fdebed;
}

body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) > .bd-metric:last-child {
  border-right: 0 !important;
}

body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) > .bd-metric::after {
  position: absolute;
  right: 4px;
  bottom: 0;
  left: 4px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--metric-accent) 78%, #fff), var(--metric-accent));
  box-shadow: 0 -2px 8px color-mix(in srgb, var(--metric-accent) 16%, transparent);
  content: "";
}

body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) > .bd-metric > i {
  position: relative;
  z-index: 0;
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--metric-accent);
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 5px 5px color-mix(in srgb, var(--metric-accent) 19%, transparent));
}

body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) > .bd-metric > i::before {
  position: absolute;
  z-index: -1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fff 0 10%, var(--metric-soft) 35%, transparent 72%);
  content: "";
  opacity: .78;
}

body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) > .bd-metric > i .bd-icon {
  width: 38px;
  height: 38px;
  overflow: visible;
  filter: saturate(1.08);
}

body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) > .bd-metric > div {
  display: grid;
  align-content: center;
  min-width: 0;
}

body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) > .bd-metric span {
  color: #514a49;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) > .bd-metric strong {
  margin: 2px 0 3px;
  color: #1f1b1b;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.025em;
  white-space: nowrap;
}

body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) > .bd-metric small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #6f6866;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) > .bd-metric small::before {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--metric-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--metric-accent) 10%, transparent);
  content: "";
}

body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) > .bd-metric .bd-metric-chevron {
  display: none;
}

body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) > .bd-metric[data-bd-action]:hover,
body .aibos-tool-center :is(
  .bd-reference-ui > .bd-metrics,
  .bd-reference-ui .bd-sales-main > .bd-metrics
) > .bd-metric[data-bd-action]:focus-visible {
  background: linear-gradient(150deg, color-mix(in srgb, var(--metric-soft) 32%, #fff), #fff 68%) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--metric-accent) 18%, transparent) !important;
  outline: 0;
  transform: none;
}

@media (max-width: 1040px) {
  body .aibos-tool-center :is(
    .bd-reference-ui > .bd-metrics,
    .bd-reference-ui .bd-sales-main > .bd-metrics
  ) {
    grid-template-columns: repeat(var(--metric-count, 5), minmax(182px, 1fr)) !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  body .aibos-tool-center :is(
    .bd-reference-ui > .bd-metrics,
    .bd-reference-ui .bd-sales-main > .bd-metrics
  ) > .bd-metric {
    min-height: 108px;
    padding-inline: 16px;
  }
}

@media (max-width: 620px) {
  body .aibos-tool-center .bd-reference-ui > .bd-metrics {
    margin-inline: 10px;
    border-radius: 12px;
  }

  body .aibos-tool-center :is(
    .bd-reference-ui > .bd-metrics,
    .bd-reference-ui .bd-sales-main > .bd-metrics
  ) {
    grid-template-columns: repeat(var(--metric-count, 5), minmax(172px, 1fr)) !important;
  }

  body .aibos-tool-center :is(
    .bd-reference-ui > .bd-metrics,
    .bd-reference-ui .bd-sales-main > .bd-metrics
  ) > .bd-metric strong {
    font-size: 25px;
  }
}

/* Keep the workflow icon system above all legacy reference-layout overrides. */
body .aibos-tool-center .bd-reference-ui .bd-process-step > i {
  width:44px;
  height:44px;
  margin-bottom:7px;
  color:var(--flow-color);
  border:1px solid color-mix(in srgb,var(--flow-color) 22%,#fff);
  border-radius:50%;
  background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.98) 0 18%,transparent 19%),linear-gradient(145deg,color-mix(in srgb,var(--flow-soft) 76%,#fff),var(--flow-soft));
  box-shadow:0 0 0 5px color-mix(in srgb,var(--flow-soft) 72%,transparent),inset 0 0 0 1px rgba(255,255,255,.78),0 5px 12px color-mix(in srgb,var(--flow-color) 13%,transparent);
}

body .aibos-tool-center .bd-reference-ui .bd-process-step > i .bd-flow-icon {
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.bd-template-contract-summary {
  display:grid; gap:7px; margin:14px 0 2px; padding:12px;
  border:1px solid #ead9de; border-radius:10px; background:#fff8fa; color:#6d3a49;
}
.bd-template-contract-summary b { font-size:13px; }
.bd-template-contract-summary span,
.bd-template-contract-summary small { font-size:11px; color:#876b73; }
.bd-template-contract-summary em { font-size:11px; font-style:normal; line-height:1.55; color:#9e244a; }
.bd-qr-pending {
  border:1px dashed #cdb8be;
  background:repeating-linear-gradient(135deg,#fff 0,#fff 5px,#f4ecef 5px,#f4ecef 10px);
}

/* Cross-center document sync issue workbench. */
body .aibos-tool-center .bd-reference-ui .bd-sync-issues {
  margin-top:16px;
  overflow:hidden;
}

body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list {
  display:grid;
  gap:10px;
  padding:0 18px 18px;
}

body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list > article {
  display:grid;
  grid-template-columns:38px minmax(220px,1fr) auto minmax(290px,auto);
  align-items:center;
  gap:12px;
  min-height:76px;
  padding:12px 14px;
  border:1px solid #eadfdc;
  border-left:3px solid #d89528;
  border-radius:12px;
  background:#fffdfa;
}

body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list > article.status-failed,
body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list > article.status-blocked {
  border-left-color:#bd3d4b;
  background:#fffafa;
}

body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list > article.status-ignored {
  border-left-color:#9a918d;
  opacity:.82;
}

body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list > article > i {
  display:grid;
  width:36px;
  height:36px;
  place-items:center;
  color:#8b2433;
  border-radius:50%;
  background:#f8e9eb;
}

body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list > article > i .bd-icon {
  width:18px;
  height:18px;
}

body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list strong,
body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list small,
body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list p {
  display:block;
}

body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list small {
  margin-top:3px;
  color:#756b67;
  font-size:12px;
}

body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list p {
  margin:5px 0 0;
  color:#9b3a46;
  font-size:12px;
}

body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list footer {
  display:flex;
  justify-content:flex-end;
  gap:6px;
}

body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list footer button {
  min-height:32px;
  padding:0 10px;
  color:#64343a;
  border:1px solid #dcc8c5;
  border-radius:8px;
  background:#fff;
  cursor:pointer;
}

body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list footer button.primary {
  color:#fff;
  border-color:#8b2433;
  background:#8b2433;
}

body .aibos-tool-center .bd-reference-ui .bd-sync-strip.has-error {
  color:#8b2433;
  border-color:#e8c6ca;
  background:#fff5f6;
}

@media (max-width:1100px) {
  body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list > article {
    grid-template-columns:38px minmax(180px,1fr) auto;
  }

  body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list footer {
    grid-column:2 / -1;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
}

@media (max-width:680px) {
  body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list > article {
    grid-template-columns:34px minmax(0,1fr);
  }

  body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list > article > .bd-status,
  body .aibos-tool-center .bd-reference-ui .bd-sync-issue-list footer {
    grid-column:1 / -1;
  }
}

body .aibos-tool-center .bd-reference-ui .bd-process-step.active {
  border-color:color-mix(in srgb,var(--flow-color) 78%,#fff);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--flow-color) 66%,transparent),0 7px 18px color-mix(in srgb,var(--flow-color) 10%,transparent);
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview .bd-process-step > i {
  width:38px;
  height:38px;
  margin-bottom:4px;
  color:var(--flow-color);
  background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.98) 0 18%,transparent 19%),linear-gradient(145deg,color-mix(in srgb,var(--flow-soft) 76%,#fff),var(--flow-soft));
  box-shadow:0 0 0 4px color-mix(in srgb,var(--flow-soft) 72%,transparent),inset 0 0 0 1px rgba(255,255,255,.78),0 4px 10px color-mix(in srgb,var(--flow-color) 11%,transparent);
}

body .aibos-tool-center .bd-reference-ui.bd-view-overview .bd-process-step > i .bd-flow-icon {
  width:21px;
  height:21px;
}

body .aibos-tool-center .bd-reference-ui .bd-todo-card > div > button > i {
  width:34px;
  height:34px;
  color:var(--flow-color);
  border:1px solid color-mix(in srgb,var(--flow-color) 18%,#fff);
  border-radius:50%;
  background:linear-gradient(145deg,#fff,var(--flow-soft));
  box-shadow:0 0 0 3px color-mix(in srgb,var(--flow-soft) 68%,transparent);
}

body .aibos-tool-center .bd-reference-ui .bd-todo-card > div > button > i .bd-flow-icon {
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
