.deca-supply {
  --supply-paper: #faf9f6;
  --supply-ink: #353833;
  --supply-muted: #62665f;
  --supply-line: #dedfd8;
  --supply-iris: #eeebf5;
  --supply-green: #315a43;
  container: deca-supply / inline-size;
  color: var(--supply-ink);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  min-width: 0;
  width: 100%;
  text-align: left;
}
.deca-supply *, .deca-supply *::before, .deca-supply *::after { box-sizing: border-box; letter-spacing: 0; }
.deca-supply h1, .deca-supply h2, .deca-supply h3, .deca-supply p, .deca-supply dl, .deca-supply dd { margin: 0; }
.deca-supply h1 { font-size: 25px; line-height: 1.35; font-weight: 650; }
.deca-supply h2 { font-size: 18px; line-height: 1.5; font-weight: 650; }
.deca-supply h3 { font-size: 16px; line-height: 1.5; font-weight: 600; }
.deca-supply p, .deca-supply h1, .deca-supply h2, .deca-supply h3, .deca-supply dd, .deca-supply a { overflow-wrap: anywhere; }
.deca-supply button, .deca-supply input, .deca-supply select, .deca-supply textarea { font: inherit; color: inherit; }
.deca-supply button, .deca-supply a { touch-action: manipulation; }
.deca-supply button { cursor: pointer; }
.deca-supply button:disabled { opacity: .6; cursor: wait; }
.deca-supply svg { width: 18px; height: 18px; flex: none; stroke-width: 1.7; }
.deca-supply :is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid #594481; outline-offset: 3px; }
.deca-supply [hidden] { display: none !important; }
.supply-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.supply-heading p { color: var(--supply-muted); margin-top: 6px; }
.supply-eyebrow { color: var(--supply-muted); font-size: 12px; margin-bottom: 7px; }
.supply-heading-actions, .supply-row-tags, .supply-row-actions, .supply-links, .supply-product-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.supply-button { min-height: 42px; border: 1px solid #cfd3ca; border-radius: 5px; background: #fff; padding: 8px 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; line-height: 1.45; text-align: center; font-weight: 550; }
.supply-button:hover:not(:disabled) { background: #f2f3ee; border-color: #9ca592; }
.supply-button.primary { background: var(--supply-ink); color: #faf9f6; border-color: var(--supply-ink); box-shadow: inset 3px 0 #d8f037; }
.supply-button.primary:hover { background: #474b42; }
.supply-icon-button { width: 42px; height: 42px; flex: none; display: inline-grid; place-items: center; background: transparent; border: 1px solid var(--supply-line); border-radius: 5px; }
.supply-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border-radius: 4px; background: var(--supply-iris); color: #514268; font-size: 12px; line-height: 1.4; }
.supply-badge.neutral { background: #f0f1ec; color: #555b50; }
.supply-badge.good { background: #e8f2e8; color: #315a43; }
.supply-badge.warning { background: #fff2dc; color: #7e5115; }
.supply-badge.danger { background: #fbe9e8; color: #943d38; }
.supply-privacy { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; background: var(--supply-iris); border-left: 3px solid #7962b2; font-size: 12px; }
.supply-privacy svg { margin-top: 2px; }
.supply-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 22px 0 !important; border-block: 1px solid var(--supply-line); }
.supply-metrics > div { padding: 15px 18px; min-width: 0; border-right: 1px solid var(--supply-line); }
.supply-metrics > div:first-child { padding-left: 0; }
.supply-metrics > div:last-child { border-right: 0; }
.supply-metrics dt { color: var(--supply-muted); font-size: 12px; }
.supply-metrics dd { font-size: 27px; line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; }
.supply-tabs { display: flex; border-bottom: 1px solid var(--supply-line); gap: 20px; margin-bottom: 18px; }
.supply-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 3px 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--supply-muted); font-weight: 550; }
.supply-tabs button[aria-selected="true"] { color: var(--supply-ink); border-bottom-color: var(--supply-ink); box-shadow: 0 2px #d8f037; font-weight: 650; }
.supply-filters { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.supply-field { min-width: 0; display: grid; gap: 6px; }
.supply-field > span { font-size: 12px; color: #565d51; }
.supply-field :is(input, select, textarea), .supply-search { width: 100%; min-height: 43px; border: 1px solid #cbd0c5; background: #fff; border-radius: 5px; padding: 10px 11px; }
.supply-field textarea { min-height: 90px; resize: vertical; }
.supply-filters .supply-field { min-width: 135px; }
.supply-search { display: flex; align-items: center; gap: 8px; width: auto; flex: 1 1 220px; }
.supply-search input { min-width: 0; width: 100%; padding: 0; border: 0; background: transparent; }
.supply-search input:focus-visible { outline-offset: 5px; }
.supply-search-submit { margin-bottom: 0; }
.supply-message { color: #315a43; min-height: 28px; margin: 8px 0 4px !important; font-size: 13px; }
.supply-source-status { border-block: 1px solid var(--supply-line); background: #f4f5f0; padding: 14px 16px; margin-bottom: 24px; }
.supply-source-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.supply-source-top > strong { font-size: 14px; }
.supply-source-top > .supply-button { margin-left: auto; min-height: 36px; font-size: 12px; }
.supply-source-status dl { display: flex; gap: 12px 28px; flex-wrap: wrap; font-size: 12px; margin-top: 10px; }
.supply-source-status dl > div { display: flex; gap: 8px; }
.supply-source-status dt { color: var(--supply-muted); }
.supply-source-status details { font-size: 12px; margin-top: 12px; }
.supply-source-status summary, .supply-rules summary { cursor: pointer; min-height: 30px; padding: 4px 0; }
.supply-source-status ul { padding-left: 20px; }
.supply-source-status details p { color: var(--supply-muted); }
.supply-status-error { color: #815015; font-size: 12px; margin-top: 8px !important; }
.supply-section-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 12px; }
.supply-section-title > span { font-size: 12px; color: var(--supply-muted); }
.supply-section-title > .supply-button { margin-left: auto; }
.supply-news-list { border-top: 1px solid var(--supply-line); }
.supply-news-item { padding: 20px 0; border-bottom: 1px solid var(--supply-line); }
.supply-news-meta { display: flex; align-items: center; gap: 7px 12px; flex-wrap: wrap; font-size: 12px; color: var(--supply-muted); margin-bottom: 9px; }
.supply-news-item h3 { max-width: 75ch; margin-bottom: 8px; }
.supply-news-item > p { color: #555c50; max-width: 90ch; margin-bottom: 10px; }
.supply-source-link { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: #4d426b; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.supply-source-link svg { width: 15px; height: 15px; }
.supply-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.supply-product { display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 18px; border: 1px solid var(--supply-line); background: #fff; border-radius: 6px; }
.supply-product .supply-brand { color: #62665f; font-size: 12px; margin-top: 5px; }
.supply-product > p:not(.supply-brand) { font-size: 13px; color: #555c50; }
.supply-product dl { font-size: 12px; }
.supply-product dl > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; margin: 4px 0; }
.supply-product dt { color: var(--supply-muted); }
.supply-verification { display: flex; align-items: flex-start; gap: 7px; color: #66532d !important; font-size: 12px !important; }
.supply-verification svg { width: 16px; height: 16px; margin-top: 2px; }
.supply-product-actions { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; padding-top: 12px; margin-top: auto; border-top: 1px solid var(--supply-line); }
.supply-product-actions .supply-button { font-size: 12px; min-height: 36px; }
.supply-local-list { border-top: 1px solid var(--supply-line); }
.supply-local-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--supply-line); }
.supply-row-main { min-width: 0; }
.supply-row-main h3 { margin: 8px 0 5px; }
.supply-row-main > p, .supply-row-main > small { font-size: 12px; color: var(--supply-muted); }
.supply-row-main > small { display: block; margin-top: 7px; }
.supply-row-actions { justify-content: end; }
.supply-row-actions .supply-button { font-size: 12px; }
.supply-return-reason { color: #943d38 !important; margin-top: 7px !important; }
.supply-ledger-head { display: flex; justify-content: space-between; padding: 9px 0; font-size: 12px; color: var(--supply-muted); }
.supply-rules { margin-top: 32px; border-top: 2px solid #ddd6f1; padding-top: 1px; }
.supply-rules > p { font-size: 13px; color: var(--supply-muted); margin-bottom: 16px; }
.supply-rules details { border-bottom: 1px solid var(--supply-line); padding: 9px 0; }
.supply-rules details > p { margin: 8px 0; font-size: 13px; }
.supply-rules details ul { padding-left: 20px; font-size: 13px; }
.supply-portals { display: flex; gap: 9px 20px; flex-wrap: wrap; padding: 18px 0; }
.supply-empty { padding: 32px 16px; text-align: center; color: var(--supply-muted); width: 100%; }
.supply-empty > svg { width: 27px; height: 27px; margin-bottom: 9px; }
.supply-empty h3 { font-size: 15px; margin-bottom: 6px; }
.supply-empty p { font-size: 13px; max-width: 440px; margin: 0 auto; }
.supply-muted { color: var(--supply-muted); font-size: 12px; }
.supply-dialog { color: var(--supply-ink); background: var(--supply-paper); width: min(760px, calc(100vw - 32px)); max-width: none; max-height: 90dvh; margin: auto; padding: 0; border: 1px solid #c8cec0; border-radius: 7px; box-shadow: 0 20px 70px #20291e30; font: inherit; }
.supply-dialog::backdrop { background: #252a2466; }
.supply-dialog > header { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--supply-paper); position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--supply-line); padding: 16px 22px; }
.supply-dialog > header h2 { font-size: 19px; min-width: 0; }
.supply-dialog-content { padding: 22px; }
.supply-dialog-content > p { margin: 12px 0; }
.supply-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.supply-span { grid-column: 1 / -1; }
.supply-consent { display: flex; align-items: flex-start; gap: 9px; margin: 17px 0; font-size: 12px; color: #555c50; }
.supply-consent input { flex: none; accent-color: #594481; width: 18px; height: 18px; margin: 1px 0 0; }
.supply-modal-footer { display: flex; justify-content: end; gap: 10px; padding-top: 16px; border-top: 1px solid var(--supply-line); margin-top: 16px; }
.supply-form-note { font-size: 12px; color: var(--supply-muted); margin-top: 14px !important; }
.supply-form-error { color: #943d38; font-size: 13px; }
.supply-form-error:not(:empty) { padding: 10px; margin-top: 12px; background: #fbe9e8; border-left: 3px solid #b14c45; }
.supply-alert { padding: 12px; margin: 14px 0 !important; background: #fff2dc; border-left: 3px solid #a26c26; color: #704b20; font-size: 13px; }
.supply-detail-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; padding: 20px 0; }
.supply-detail-fields dt { font-size: 12px; color: var(--supply-muted); }
.supply-detail-fields dd { font-size: 14px; margin-top: 3px; white-space: pre-wrap; }
.supply-detail-summary { white-space: pre-wrap; margin-bottom: 14px !important; }
.supply-detail-subtitle { margin: 24px 0 10px !important; }
.supply-review-form { padding-block: 22px; margin-top: 20px; border-top: 1px solid var(--supply-line); }
.supply-review-form > h3 { margin-bottom: 16px; }
.supply-audit { padding-top: 20px; margin-top: 18px; border-top: 1px solid var(--supply-line); }
.supply-audit > h3 { margin-bottom: 10px; }
.supply-audit article { border-left: 2px solid #ddd6f1; padding: 6px 0 12px 14px; margin: 10px 0; }
.supply-audit article > div { display: flex; gap: 6px 14px; justify-content: space-between; flex-wrap: wrap; }
.supply-audit strong { font-size: 13px; }
.supply-audit time, .supply-audit p { font-size: 12px; color: var(--supply-muted); }
.supply-audit p { margin-top: 5px; white-space: pre-wrap; }
.supply-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
@container deca-supply (max-width: 650px) {
  .supply-heading { flex-direction: column; gap: 14px; }
  .supply-heading h1 { font-size: 23px; }
  .supply-heading-actions { width: 100%; }
  .supply-heading-actions .supply-badge { margin-right: auto; }
  .supply-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supply-metrics > div { padding: 12px !important; }
  .supply-metrics > div:nth-child(2) { border-right: 0; }
  .supply-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--supply-line); }
  .supply-metrics dd { font-size: 24px; }
  .supply-tabs { gap: 0; justify-content: space-between; }
  .supply-tabs button { gap: 5px; font-size: 13px; padding-inline: 4px; }
  .supply-filters { gap: 9px; }
  .supply-search { flex-basis: 100%; }
  .supply-filters .supply-field { flex: 1 1 42%; min-width: 0; }
  .supply-filters .supply-field select { width: 100%; }
  .supply-source-status { padding: 12px; }
  .supply-source-status dl { display: grid; gap: 5px; }
  .supply-local-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .supply-row-actions { justify-content: start; }
  .supply-row-actions .supply-button { min-height: 42px; }
  .supply-ledger-head { display: none; }
  .supply-section-title > .supply-button { margin-left: 0; }
}
@media (max-width: 600px) {
  .supply-dialog { width: calc(100vw - 20px); max-height: 94dvh; }
  .supply-dialog > header { padding: 12px 15px; }
  .supply-dialog-content { padding: 18px 15px; }
  .supply-form-grid, .supply-detail-fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .supply-form-grid input, .supply-form-grid select, .supply-form-grid textarea { font-size: 16px; }
  .supply-modal-footer { position: sticky; bottom: -18px; background: var(--supply-paper); padding-bottom: 12px; }
  .supply-modal-footer .supply-button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .deca-supply * { scroll-behavior: auto !important; } }
