/* FDS extensions: company-price workspace and the shared material-style library. */
.fpa-price-page .fpa-v2-notice { font-size: .8125rem; line-height: 1.6; color: var(--fds-text-secondary); background: var(--fds-bg-panel); margin-block: 0 var(--fds-space-4); }
.fpa-price-workspace { display: grid; gap: var(--fds-space-4); }
.fpa-price-context { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--fds-space-4); padding: var(--fds-space-5); }
.fpa-price-context > label { display: grid; gap: var(--fds-space-2); min-width: 0; flex: 0 1 360px; font-size: .8125rem; color: var(--fds-text-secondary); }
.fpa-price-context select { width: 100%; }
.fpa-price-context-summary { display: flex; align-items: center; flex-wrap: wrap; gap: var(--fds-space-3); font-size: .8125rem; }
.fpa-price-version { color: var(--fds-text-secondary); }
.fpa-price-pending { padding: 4px 8px; border-radius: var(--fds-radius-sm); background: var(--fds-bg-muted); color: var(--fds-text-secondary); font-size: .75rem; font-variant-numeric: tabular-nums; }
.fpa-price-pending[data-dirty="true"] { background: var(--fds-amber-50); color: var(--fds-amber-700); }
.fpa-price-panel { padding: 0; overflow: hidden; }
.fpa-price-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--fds-space-3); padding: var(--fds-space-4) var(--fds-space-5); }
.fpa-price-toolbar-group { display: flex; align-items: center; flex-wrap: wrap; gap: var(--fds-space-2); }
.fpa-price-reference { margin: 0; padding: 0 var(--fds-space-5) var(--fds-space-4); color: var(--fds-text-secondary); font-size: .75rem; line-height: 1.6; }
.fpa-price-table-scroll { overflow-x: auto; border-top: 1px solid var(--fds-border); }
.fpa-price-panel .fpa-price-table { width: 100%; min-width: 1040px; font-size: .8125rem; }
.fpa-price-panel .fpa-price-table th { top: auto; padding: 12px 16px; background: var(--fds-bg-muted); color: var(--fds-text-secondary); font-size: .75rem; font-weight: 500; white-space: nowrap; }
.fpa-price-panel .fpa-price-table td { padding: 16px; vertical-align: middle; border-bottom: 1px solid var(--fds-border); }
.fpa-price-panel .fpa-price-table tr:last-child td { border-bottom: 0; }
.fpa-price-panel .fpa-price-table th:first-child, .fpa-price-panel .fpa-price-table td:first-child { width: 26%; min-width: 230px; }
.fpa-price-panel .fpa-price-table th:last-child, .fpa-price-panel .fpa-price-table td:last-child { min-width: 170px; }
.fpa-price-product { display: flex; align-items: flex-start; gap: var(--fds-space-2); }
.fpa-price-product input { flex: none; margin-top: 3px; }
.fpa-price-product > div { min-width: 0; }
.fpa-price-product strong { font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.fpa-price-table td small { display: block; margin-top: 5px; font-size: .75rem; line-height: 1.5; color: var(--fds-text-secondary); overflow-wrap: anywhere; }
.fpa-price-product small { color: var(--fds-text-muted) !important; }
.fpa-price-amount strong { display: block; font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fpa-price-tiers { font-variant-numeric: tabular-nums; min-width: 120px; }
.fpa-price-state { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: var(--fds-radius-sm); background: var(--fds-bg-muted); color: var(--fds-text-secondary); font-size: .75rem; white-space: nowrap; }
.fpa-price-state[data-state="verified"] { background: var(--fds-green-50); color: var(--fds-green-700); }
.fpa-price-state[data-state="pending"] { background: var(--fds-amber-50); color: var(--fds-amber-700); }
.fpa-price-table .fpa-price-stale { color: var(--fds-amber-700); max-width: 160px; }
.fpa-price-row-actions { gap: 6px; }
.fpa-price-row-actions .fds-btn { white-space: nowrap; }
.fpa-price-empty, .ss-style-empty { display: grid; justify-items: center; text-align: center; gap: var(--fds-space-3); padding: 56px 24px; color: var(--fds-text-secondary); }
.fpa-price-empty { border-top: 1px solid var(--fds-border); }
.fpa-price-empty h2, .ss-style-empty h2 { margin: 0; font-size: .9375rem; font-weight: 600; color: var(--fds-text-primary); }
.fpa-price-empty p, .ss-style-empty p { max-width: 52ch; margin: 0; font-size: .8125rem; line-height: 1.7; }
.fpa-panel-empty-art { display: block; width: 44px; height: 44px; margin-bottom: var(--fds-space-2); border: 1px solid var(--fds-border); border-radius: var(--fds-radius-md); background: linear-gradient(var(--fds-border),var(--fds-border)) 10px 13px / 22px 1px no-repeat,linear-gradient(var(--fds-border),var(--fds-border)) 10px 21px / 22px 1px no-repeat,linear-gradient(var(--fds-border),var(--fds-border)) 10px 29px / 14px 1px no-repeat,var(--fds-bg-muted); }
.fpa-price-access { padding: 24px; font-size: .875rem; line-height: 1.7; color: var(--fds-text-secondary); }
.fpa-price-editor { width: min(960px, calc(100vw - 32px)); padding: 20px; }
.fpa-price-editor > header { position: sticky; top: -20px; z-index: 2; background: var(--fds-bg-panel); margin: -20px -20px 16px; padding: 16px 20px; border-bottom: 1px solid var(--fds-border); }
.fpa-price-editor .fpa-v2-form { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 16px; border: 1px solid var(--fds-border); border-radius: var(--fds-radius-md); background: var(--fds-bg-page); }
.fpa-price-editor .fpa-v2-form label { min-width: 0; gap: 6px; }
.fpa-price-editor label:has([data-price-field="itemId"]) { grid-column: span 2; }
.fpa-price-editor label:has([data-price-field="zeroConfirmed"]) { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.fpa-price-editor .fpa-v2-errors:empty { display: none; }
.fpa-price-editor pre { max-height: 240px; overflow: auto; font-size: .75rem; }
.fpa-price-editor-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--fds-space-2); position: sticky; bottom: -20px; z-index: 2; margin: 16px -20px -20px; padding: 16px 20px; background: var(--fds-bg-panel); border-top: 1px solid var(--fds-border); }
.ss-style-library-toolbar { padding: var(--fds-space-4) var(--fds-space-5); gap: var(--fds-space-3); }
.ss-style-library-toolbar > .ssa-field-help { font-size: .75rem; color: var(--fds-text-muted); }
.ss-style-library-toolbar .ss-material-filters { gap: var(--fds-space-4); padding-block: 4px; }
.ss-style-library-toolbar .ss-material-filters label { gap: 6px; }
.ss-style-library-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,340px),1fr)); gap: var(--fds-space-5); align-items: stretch; }
.ss-style-library-grid .ss-style-library-card { padding: 0; gap: 0; overflow: hidden; display: flex; flex-direction: column; border-color: var(--fds-border); }
.ss-style-library-card:hover { border-color: var(--fds-border-strong); }
.ss-style-library-card .ss-style-sample { padding: 42px 20px 20px; background: var(--fds-bg-page); }
.ss-style-library-card .ss-style-state { top: 12px; right: 16px; padding: 3px 8px; border-radius: var(--fds-radius-sm); font-size: .75rem; }
.ss-style-library-card[data-enabled="true"] .ss-style-state { color: var(--fds-green-700); background: var(--fds-green-50); border-color: transparent; }
.ss-style-library-card .ss-style-swatches { gap: 10px; }
.ss-style-library-card .ss-style-swatch { height: 76px; border-radius: var(--fds-radius-sm); }
.ss-style-library-card .ss-style-material-name { font-size: .75rem; font-weight: 500; }
.ss-style-library-card .ss-material-card-body { padding: 20px; gap: 8px; flex: 1; }
.ss-style-library-card .ss-material-card-body h2 { font-size: 1rem; line-height: 1.5; margin: 0; }
.ss-style-library-card .ss-material-id { font-size: .6875rem; color: var(--fds-text-muted); margin: 0; }
.ss-style-library-card .ss-style-description { margin: 0; min-height: 0; font-size: .8125rem; }
.ss-style-library-card .ss-style-coverage { padding: 8px 10px; margin-top: 4px !important; background: var(--fds-bg-page); font-size: .75rem; }
.ss-style-library-card .ss-material-card-actions { margin-top: auto; padding-top: 8px; }
.ss-style-empty { grid-column: 1 / -1; min-height: 240px; background: var(--fds-bg-panel); border: 1px dashed var(--fds-border); border-radius: var(--fds-radius-md); }
.ss-style-edit-sheet .ss-material-edit-layout { gap: 24px; }
.ss-style-edit-sheet .ss-material-form { align-content: start; }
.ss-style-edit-sheet .ss-material-preview-panel { border: 1px solid var(--fds-border); border-radius: var(--fds-radius-md); padding: 16px; background: var(--fds-bg-page); }
@media(max-width:780px) {
 .fpa-price-context, .fpa-price-toolbar { padding: 16px; }
 .fpa-price-context > label { flex-basis: 100%; }
 .fpa-price-context-summary { width: 100%; justify-content: space-between; }
 .fpa-price-toolbar-group { gap: 8px; }
 .fpa-price-editor .fpa-v2-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .ss-style-library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
}
@media(max-width:480px) {
 .fpa-price-editor .fpa-v2-form { grid-template-columns: minmax(0,1fr); padding: 12px; }
 .fpa-price-editor label:has([data-price-field="itemId"]) { grid-column: auto; }
 .fpa-price-context-summary { gap: 10px; justify-content: flex-start; }
 .ss-style-library-grid { grid-template-columns: minmax(0,1fr); }
 .ss-style-library-toolbar { padding: 16px; }
 .ss-style-library-card .ss-style-swatch { height: 68px; }
}

/* FDS extension: product and company-price tables share a bounded worksheet layout. */
.fpa-product-page .fpa-v2-notice { font-size: 12px; line-height: 1.6; color: var(--fds-text-secondary); background: var(--fds-bg-panel); }
.fpa-product-page #fpa-v2-root { display: grid; gap: 16px; }
.fpa-product-commandbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px; }
.fpa-product-commandbar .fpa-v2-tabs,.fpa-product-commandbar .fpa-v2-actions { margin: 0; }
.fpa-product-commandbar .fpa-v2-tabs { padding: 3px; background: var(--fds-bg-muted); border-radius: var(--fds-radius-md); }
.fpa-product-commandbar .fpa-v2-tabs .fds-btn { border-color: transparent; background: transparent; color: var(--fds-text-secondary); }
.fpa-product-commandbar .fpa-v2-tabs [aria-pressed="true"] { background: var(--fds-bg-panel); color: var(--fds-text-primary); box-shadow: 0 1px 3px rgb(17 24 39 / .1); }
.fpa-product-commandbar .fpa-v2-summary { padding-inline: 8px; font-size: 12px; color: var(--fds-text-secondary); font-variant-numeric: tabular-nums; }
.fpa-product-filters { margin: 0; padding: 16px; align-items: flex-end; gap: 12px 16px; }
.fpa-product-filters > label:first-child { flex: 1 1 260px; }
.fpa-product-filters input[type="search"] { min-width: 0; width: 100%; }
.fpa-product-filters > label:has(select) { flex: 0 1 160px; }
.fpa-product-filters > label:has(input[type="checkbox"]) { min-height: var(--faus-control,30px); }
.fpa-product-panel { padding: 0; min-width: 0; }
.fpa-product-result-count,.fpa-price-result-count { padding: 12px 16px; margin: 0; font-size: 12px; color: var(--fds-text-secondary); font-variant-numeric: tabular-nums; border-top: 1px solid var(--fds-border); }
.fpa-product-result-count { border-top: 0; }
.fpa-product-table-scroll { overflow-x: auto; border-top: 1px solid var(--fds-border); }
.fpa-product-panel .fpa-product-table { min-width: 1120px; font-size: 13px; }
.fpa-product-panel th { top: auto; color: var(--fds-text-secondary); background: var(--fds-bg-muted); font-size: 12px; font-weight: 500; padding: 12px 16px; }
.fpa-product-panel td { padding: 16px; vertical-align: middle; }
.fpa-product-panel th:first-child,.fpa-product-panel td:first-child { width: 260px; min-width: 260px; border-inline-end: 1px solid var(--fds-border); }
.fpa-product-panel th:last-child,.fpa-product-panel td:last-child { min-width: 220px; border-inline-start: 1px solid var(--fds-border); }
.fpa-product-panel tr:last-child td { border-bottom: 0; }
.fpa-product-panel .fpa-v2-names { min-width: 220px; gap: 8px; }
.fpa-product-panel .fpa-v2-table input:not([type="checkbox"]) { width: 80px; }
.fpa-product-panel .fpa-v2-names input { width: 100% !important; }
.fpa-product-panel .fpa-v2-row-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.fpa-product-panel .fpa-v2-row-actions .fds-btn { white-space: nowrap; }
.fpa-product-code { display: flex; align-items: center; gap: 4px; font-size: 13px; overflow-wrap: anywhere; }
.fpa-product-code input { flex: none; }
.fpa-product-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--fds-text-secondary); }
.fpa-product-status { padding: 2px 6px; border-radius: var(--fds-radius-xs); background: var(--fds-bg-muted); }
.fpa-product-status[data-status="active"] { background: var(--fds-green-50); color: var(--fds-green-700); }
.fpa-product-status[data-status="draft"] { background: var(--fds-amber-50); color: var(--fds-amber-700); }
.fpa-product-meta .fpa-v2-meta { font-size: 11px; color: var(--fds-text-muted); line-height: 1.5; }
.fpa-product-empty { margin: 0; padding: 48px 24px; text-align: center; color: var(--fds-text-secondary); }
.fpa-product-table tr:hover td,.fpa-price-table tr:hover td { background: var(--fds-gray-25); }
.fpa-product-table tr:focus-within td,.fpa-price-table tr:focus-within td { background: var(--fds-blue-50); }
.fpa-product-table tr.is-dirty td:first-child,.fpa-price-table tr.is-dirty td:first-child { box-shadow: inset 3px 0 var(--fds-amber-700); }
.fpa-price-context { padding: 16px 20px; }
.fpa-price-context-summary { gap: 16px; }
.fpa-price-version { padding-inline-end: 16px; border-inline-end: 1px solid var(--fds-border); }
.fpa-price-code { display: block; margin-top: 5px; font-size: 12px; color: var(--fds-text-secondary); }
.fpa-price-product strong { display: block; font-size: 14px; }
.fpa-price-product small { font-size: 11px !important; }
.fpa-price-panel .fpa-price-table th:first-child,.fpa-price-panel .fpa-price-table td:first-child { border-inline-end: 1px solid var(--fds-border); }
.fpa-price-panel .fpa-price-table th:last-child,.fpa-price-panel .fpa-price-table td:last-child { width: 230px; min-width: 230px; border-inline-start: 1px solid var(--fds-border); }
.fpa-price-row-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.fpa-price-row-actions button:last-child { grid-column: 1 / -1; }
.fpa-price-moq { display: block; font-size: 12px; color: var(--fds-text-muted); margin-bottom: 6px; }
.fpa-price-tier-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 4px; border-top: 1px solid var(--fds-border); font-size: 12px; }
.fpa-price-tier-line > span { color: var(--fds-text-secondary); }
.fpa-price-tier-line strong { font-weight: 500; }
@media(max-width:780px) {
 .fpa-product-commandbar,.fpa-product-filters { padding: 12px; }
 .fpa-product-commandbar .fpa-v2-actions { width: 100%; }
 .fpa-product-filters > label:has(select) { flex: 1 1 120px; }
 .fpa-product-panel th:last-child,.fpa-product-panel td:last-child,.fpa-price-panel .fpa-price-table th:last-child,.fpa-price-panel .fpa-price-table td:last-child { position: static; }
 .fpa-product-panel th:first-child,.fpa-product-panel td:first-child { min-width: 210px; width: 210px; }
 .fpa-price-panel .fpa-price-table th:first-child,.fpa-price-panel .fpa-price-table td:first-child { min-width: 200px; width: 200px; }
 .fpa-price-version { padding-inline-end: 0; border: 0; }
}
/* Only the product identity stays pinned; actions must not paint over status cells. */
.fpa-product-panel th:last-child,.fpa-product-panel td:last-child,.fpa-price-panel .fpa-price-table th:last-child,.fpa-price-panel .fpa-price-table td:last-child { position: static; }
.fpa-price-panel .fpa-price-table { table-layout: fixed; min-width: 1100px; }
.fpa-price-panel .fpa-price-table th:first-child { width: 24%; }
.fpa-price-panel .fpa-price-table th:nth-child(2) { width: 16%; }
.fpa-price-panel .fpa-price-table th:nth-child(3) { width: 12%; }
.fpa-price-panel .fpa-price-table th:nth-child(4) { width: 15%; }
.fpa-price-panel .fpa-price-table th:nth-child(5) { width: 10%; }
.fpa-price-panel .fpa-price-table th:last-child { width: 23%; }
.fpa-price-table td { overflow-wrap: anywhere; }
.fpa-product-table-scroll:focus-visible,.fpa-price-table-scroll:focus-visible { outline: 2px solid var(--fds-blue-600); outline-offset: -2px; }

/* Compact actions keep FAUS control sizes and use less space between controls. */
.fpa-product-panel td,.fpa-price-panel .fpa-price-table td { padding-block: 12px; }
.fpa-product-panel .fpa-v2-row-actions,.fpa-price-row-actions { gap: 4px; }
.fpa-product-panel .fpa-v2-row-actions .fds-btn,.fpa-price-row-actions .fds-btn { box-shadow: none; }
.fpa-product-panel .fpa-v2-row-actions .fds-btn-primary:disabled { background: var(--fds-bg-muted); border-color: var(--fds-border); color: var(--fds-text-muted); opacity: 1; }
.fpa-product-commandbar .fpa-v2-actions,.fpa-price-toolbar-group { gap: 6px; }
.fpa-v2-history { gap: 12px; min-width: 0; }
.fpa-v2-history article { display: grid; gap: 12px; padding: 16px 20px; border-color: var(--fds-border); border-radius: var(--fds-radius-lg); background: var(--fds-bg-panel); min-width: 0; }
.fpa-history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fpa-history-head strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.fpa-history-type { padding: 3px 8px; border-radius: var(--fds-radius-sm); font-size: 12px; color: var(--fds-text-secondary); background: var(--fds-bg-muted); }
.fpa-history-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--fds-text-muted); }
.fpa-history-meta time { font-variant-numeric: tabular-nums; }
.fpa-history-fields { display: flex; flex-wrap: wrap; gap: 6px; }
.fpa-history-fields span { padding: 3px 8px; border: 1px solid var(--fds-border); border-radius: var(--fds-radius-xs); font-size: 12px; color: var(--fds-text-secondary); }
.fpa-v2-history article > details { border-top: 1px solid var(--fds-border); padding-top: 12px; min-width: 0; }
.fpa-v2-history summary { cursor: pointer; font-size: 12px; color: var(--fds-text-secondary); line-height: 1.7; }
.fpa-v2-history article > .fds-btn { justify-self: end; }
.fpa-history-diff { width: 100%; table-layout: fixed; border-collapse: collapse; margin-block: 12px; font-size: 12px; }
.fpa-history-diff th,.fpa-history-diff td { padding: 10px 12px; text-align: start; vertical-align: top; border: 1px solid var(--fds-border); overflow-wrap: anywhere; white-space: pre-wrap; }
.fpa-history-diff th { font-weight: 500; color: var(--fds-text-secondary); background: var(--fds-bg-page); }
.fpa-history-diff th:first-child { width: 24%; }
.fpa-history-diff td:last-child { background: var(--fds-green-50); }
.fpa-history-raw { padding: 12px; border-radius: var(--fds-radius-md); background: var(--fds-bg-page); }
.fpa-v2-history pre { margin-bottom: 0; max-height: 320px; overflow: auto; padding: 12px; border: 1px solid var(--fds-border); border-radius: var(--fds-radius-sm); background: var(--fds-bg-page); font-size: 12px; }
.fpa-history-empty { margin: 0; padding: 56px 24px; text-align: center; color: var(--fds-text-muted); font-size: 13px; border: 1px dashed var(--fds-border); border-radius: var(--fds-radius-lg); background: var(--fds-bg-panel); }
.fpa-history-dialog { width: min(960px,calc(100vw - 32px)); }
.fpa-history-dialog > header { margin-bottom: 20px; }
@media(max-width:600px) { .fpa-v2-history article { padding: 16px; } .fpa-history-diff th,.fpa-history-diff td { padding: 8px; } }
.fpa-product-panel .fpa-v2-row-actions .fds-btn-secondary,.fpa-price-row-actions .fds-btn-secondary { border-color: transparent; background: transparent; color: var(--fds-text-secondary); }
.fpa-product-panel .fpa-v2-row-actions .fds-btn-secondary:hover,.fpa-price-row-actions .fds-btn-secondary:hover { background: var(--fds-bg-muted); color: var(--fds-text-primary); }
.fpa-product-page #fpa-v2-root > .fds-btn { justify-self: start; }
.fpa-v2-history > .fds-btn { justify-self: center; }

/* FDS extension: grouped asset choices and bounded version previews. */
.fpa-asset-dialog { width: min(1120px,calc(100vw - 32px)); padding: 0; }
.fpa-asset-dialog > header { position: sticky; top: 0; z-index: 3; padding: 16px 20px; border-bottom: 1px solid var(--fds-border); background: var(--fds-bg-panel); }
.fpa-asset-dialog > header h2 { font-size: 16px; overflow-wrap: anywhere; }
.fpa-asset-body { display: grid; gap: 20px; padding: 20px; }
.fpa-asset-notice { margin: 0; font-size: 12px; line-height: 1.7; color: var(--fds-text-secondary); }
.fpa-asset-message { margin: 0; padding: 10px 12px; border-radius: var(--fds-radius-sm); background: var(--fds-blue-50); font-size: 12px; line-height: 1.6; }
.fpa-asset-message:empty { display: none; }
.fpa-asset-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
.fpa-asset-panel { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--fds-border); border-radius: var(--fds-radius-md); min-width: 0; background: var(--fds-bg-page); }
.fpa-asset-panel label { display: grid; gap: 6px; font-size: 12px; color: var(--fds-text-secondary); }
.fpa-asset-panel select,.fpa-asset-panel input { width: 100%; min-width: 0; }
.fpa-asset-panel input[type=file] { height: auto; padding: 6px; font-size: 12px; line-height: 1.6; }
.fpa-asset-panel input[type=file]::file-selector-button { min-height: 30px; padding-inline: 10px; margin-inline-end: 8px; background: var(--fds-bg-panel); border: 1px solid var(--fds-border); border-radius: var(--fds-radius-sm); color: var(--fds-text-primary); font-size: 12px; cursor: pointer; }
.fpa-asset-panel > .fds-btn { justify-self: start; }
.fpa-asset-selected-preview { display: grid; place-items: center; min-height: 160px; padding: 12px; border: 1px solid var(--fds-border); border-radius: var(--fds-radius-sm); background: repeating-conic-gradient(var(--fds-gray-100) 0% 25%,var(--fds-white) 0% 50%) 50% / 16px 16px; color: var(--fds-text-muted); font-size: 12px; }
.fpa-asset-selected-photo { display: block; width: 100%; height: 160px; object-fit: contain; }
.fpa-asset-body h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.fpa-asset-design-panel { padding: 16px; border: 1px solid var(--fds-border); border-radius: var(--fds-radius-md); }
.fpa-asset-design { grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; gap: 14px; }
.fpa-asset-design > label { font-size: 12px; min-width: 0; }
.fpa-asset-dialog .fpa-asset-angles { grid-column: 1 / -1; margin: 0; padding: 10px 12px; gap: 16px; border-radius: var(--fds-radius-sm); }
.fpa-asset-angles legend { padding-inline: 4px; font-size: 12px; color: var(--fds-text-secondary); }
.fpa-asset-versions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.fpa-asset-versions article { padding: 12px; gap: 10px; }
.fpa-asset-version-head { display: flex; align-items: start; justify-content: space-between; gap: 8px; min-width: 0; }
.fpa-asset-version-head strong { min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.fpa-asset-type { flex: none; padding: 2px 6px; border-radius: var(--fds-radius-xs); font-size: 10px; color: var(--fds-text-secondary); background: var(--fds-bg-muted); }
.fpa-asset-version-meta { margin: 0; font-size: 11px; line-height: 1.6; color: var(--fds-text-muted); overflow-wrap: anywhere; }
.fpa-asset-versions .fpa-v2-image { height: 140px; width: 100%; object-fit: contain; border-radius: var(--fds-radius-sm); background: var(--fds-bg-page); }
.fpa-asset-versions .fpa-v2-model-preview { grid-column: 1 / -1; width: 100%; height: 240px; margin: 0; }
.fpa-asset-versions .fpa-v2-model-preview canvas { height: 220px; }
.fpa-asset-metadata code,.fpa-asset-metadata p { display: block; margin: 8px 0 0; font-size: 11px; overflow-wrap: anywhere; }
.fpa-asset-selection-history { border-top: 1px solid var(--fds-border); padding-top: 12px; font-size: 12px; color: var(--fds-text-secondary); }
.fpa-asset-selection-history summary { cursor: pointer; }
.fpa-asset-footer { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; margin: 0 -20px -20px; padding: 14px 20px; border-top: 1px solid var(--fds-border); background: var(--fds-bg-panel); }
@media(max-width:780px) { .fpa-asset-versions { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
 .fpa-asset-dialog { width: calc(100vw - 16px); }
 .fpa-asset-body { padding: 16px; gap: 16px; }
 .fpa-asset-dialog > header { padding: 12px 16px; }
 .fpa-asset-grid,.fpa-asset-design,.fpa-asset-versions { grid-template-columns: minmax(0,1fr); }
 .fpa-asset-panel { padding: 12px; }
 .fpa-asset-footer { margin-inline: -16px; margin-bottom: -16px; padding-inline: 16px; }
}
@media(pointer:coarse) { .fpa-asset-panel input[type=file]::file-selector-button { min-height: 44px; font-size: 16px; } }
.fpa-asset-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.fpa-asset-dialog > header { flex: none; position: static; }
.fpa-asset-body { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.fpa-asset-dialog > .fpa-asset-footer { flex: none; position: static; margin: 0; }
.fpa-asset-empty { padding: 20px; margin: 0; border: 1px dashed var(--fds-border); border-radius: var(--fds-radius-md); font-size: 12px; color: var(--fds-text-muted); text-align: center; }

/* FDS extension: image-card dropdown, scoped to product photo selection. */
.fpa-photo-dialog { width: min(760px,calc(100vw - 32px)); }
.fpa-photo-dialog .fpa-asset-selected-preview { min-height: 240px; }
.fpa-photo-dialog .fpa-asset-selected-photo { height: 240px; }
.fpa-photo-trigger { width: 100%; justify-content: flex-start; text-align: start; gap: 10px; }
.fpa-photo-trigger > span:nth-last-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpa-photo-trigger-image { width: 24px; height: 24px; object-fit: contain; flex: none; }
.fpa-photo-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 10px; max-height: 320px; overflow-y: auto; border: 1px solid var(--fds-border); border-radius: var(--fds-radius-sm); background: var(--fds-bg-panel); }
.fpa-photo-options[hidden] { display: none; }
.fpa-photo-option { position: relative; min-width: 0; display: grid; grid-template-rows: 100px auto auto auto; gap: 6px; padding: 10px; border: 1px solid var(--fds-border); border-radius: var(--fds-radius-sm); background: var(--fds-bg-panel); color: var(--fds-text-primary); cursor: pointer; text-align: start; font: inherit; }
.fpa-photo-option:hover { border-color: var(--fds-text-secondary); }
.fpa-photo-option[aria-pressed=true] { border-color: var(--fds-text-primary); box-shadow: inset 0 0 0 1px var(--fds-text-primary); }
.fpa-photo-option strong { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.fpa-photo-option small { font-size: 11px; line-height: 1.5; color: var(--fds-text-secondary); }
.fpa-photo-option-image,.fpa-photo-option > .fpa-photo-empty { width: 100%; height: 100px; object-fit: contain; background: repeating-conic-gradient(var(--fds-gray-100) 0% 25%,var(--fds-white) 0% 50%) 50% / 12px 12px; }
.fpa-photo-empty { display: grid; place-items: center; color: var(--fds-text-muted); font-size: 12px; }
.fpa-photo-check { visibility: hidden; font-size: 11px; font-weight: 600; }
.fpa-photo-option[aria-pressed=true] .fpa-photo-check { visibility: visible; }
.fpa-photo-option:disabled { opacity: .55; cursor: default; }
.fpa-photo-option:focus-visible,.fpa-photo-trigger:focus-visible { outline: 2px solid var(--fds-text-primary); outline-offset: 2px; }
.fpa-photo-dialog .fpa-asset-footer { gap: 8px; }
.fpa-asset-grid:has(> :only-child) { grid-template-columns: minmax(0,1fr); }
@media(max-width:600px) {
 .fpa-photo-dialog { width: calc(100vw - 16px); }
 .fpa-photo-options { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 8px; gap: 8px; }
 .fpa-photo-option { padding: 8px; }
}

/* FDS extension: make the model upload and its progress easy to find. */
.fpa-asset-upload { padding: var(--fds-space-4); border: 1px dashed var(--fds-border); border-radius: var(--fds-radius-md); background: var(--fds-bg-panel); font-weight: 600; }
.fpa-asset-upload:focus-within { outline: 2px solid var(--fds-action-primary); outline-offset: 2px; }
.fpa-asset-message[data-state="error"] { border: 1px solid var(--fds-border); color: var(--fds-text-primary); }
.fpa-asset-message[data-state="busy"] { font-weight: 600; }
