body:has(.sales-workbench) .admin-shell .content { padding: 0; }
.sales-workbench { --sw-header: 104px; --sw-yellow: #ffc729; --sw-border: #eceeef; --sw-muted: #5c656c; display: flex; flex-direction: column; width: 100%; max-width: 600px; height: 100dvh; color: #191c1e; background: #f2f3f5; }
.sales-workbench.sw-expanded { max-width: none; }
.sales-workbench button { color: inherit; }
.sales-workbench [hidden] { display: none !important; }
.sales-workbench :is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid #805b00; outline-offset: 2px; }
.sales-workbench h2, .sales-workbench h3 { margin: 0; }
.sales-workbench h2 { font-size: 16px; line-height: 1.35; }
.sales-workbench h3 { margin-top: 10px; font-size: 14px; }
.sw-header { flex: 0 0 49px; display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 8px 0 13px; background: white; }
.sw-brand, .sw-header > div { display: flex; align-items: center; gap: 4px; }
.sw-brand strong { font-size: 15px; white-space: nowrap; }
.sw-brand img { width: 76px; height: 37px; object-fit: contain; }
.sw-header button { display: grid; place-items: center; width: 34px; min-height: 38px; border: 0; background: white; border-radius: 8px; }
.sw-header button:hover { background: #f2f3f5; }
.sw-header svg { width: 19px; height: 19px; }
.sw-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); flex: 0 0 55px; padding: 0 7px; background: #fafafa; border-bottom: 1px solid var(--sw-border); }
.sw-tabs button { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 50px; border: 0; background: none; font-size: 12px; font-weight: 650; white-space: nowrap; }
.sw-tabs svg { width: 21px; height: 21px; }
.sw-tabs #sw-tab-favorites svg { fill: #f1464e; stroke: #f1464e; }
.sw-tabs [aria-selected=true]::after { content: ''; position: absolute; inset: auto 14% 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--sw-yellow); }
.sw-tabs [aria-selected=true] svg { fill: #ffe298; }
.sw-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior-y: contain; padding: 10px; display: grid; grid-auto-rows: max-content; gap: 9px; }
.sw-body [role=tabpanel], .sw-body [data-sw-details] { display: grid; gap: 9px; min-width: 0; }
.sw-feedback:not(:empty) { background: #fff6dc; border-radius: 7px; padding: 7px 9px; font-size: 12px; }
.sw-feedback:empty { display: none; }
.sw-card { min-width: 0; padding: 10px; border: 1px solid #f4f4f4; border-radius: 9px; background: white; }
.sw-card-head { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin-bottom: 7px; }
.sw-card-head button { flex-shrink: 0; }
.sw-muted, .sw-empty { color: var(--sw-muted); font-size: 12px; margin: 5px 0; }
.sw-customer, .sw-project-title { width: 100%; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 7px; align-items: center; text-align: left; }
.sw-customer-copy, .sw-project-title > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.sw-customer-copy strong, .sw-project-title strong { overflow-wrap: anywhere; font-size: 15px; line-height: 1.35; }
.sw-customer-copy small, .sw-project-title small { color: var(--sw-muted); font-size: 12px; }
.sw-mark { inline-size: 38px; block-size: 38px; display: inline-grid; place-items: center; border-radius: 12px; color: #805700; background: #fff1c9; flex: none; }
.sw-mark svg { width: 23px; height: 23px; }
.sw-mark.gold { color: #a66a00; }
.sw-mark.blue { color: #1675d0; background: #e6f1ff; }
.sw-mark.purple { color: #713adb; background: #f0e8ff; }
.sw-mark.green { color: #087c42; background: #e1f6e9; }
.sw-pill { display: inline-block; white-space: nowrap; border-radius: 999px; background: #f0f1f2; color: #4c535b; padding: 2px 6px; font-size: 11px; font-weight: 600; }
.sw-pill.green { color: #086b36; background: #e1f6e7; }
.sw-quick { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
.sw-quick button { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 64px; padding: 4px 1px; border: 0; border-radius: 8px; background: #f8f9fa; font-size: 12px; font-weight: 650; }
.sw-quick button:disabled { opacity: .5; cursor: default; }
.sw-quick .sw-mark { width: 35px; height: 35px; }
.sw-button { min-height: 32px; padding: 4px 7px; border: 1px solid transparent; border-radius: 6px; background: #f2f4f5; font-size: 12px; }
.sw-button.outline { border-color: #dce0e2; background: #fff; }
.sw-button.text { min-height: 28px; padding-inline: 2px; color: var(--sw-muted); background: none; }
.sw-button.primary { background: var(--sw-yellow); font-weight: 650; }
.sw-button.row { display: block; width: 100%; text-align: left; margin: 4px 0; overflow-wrap: anywhere; }
.sw-button:disabled { opacity: .6; }
.sw-chips { display: flex; gap: 5px; overflow-x: auto; padding: 2px 2px 5px; scrollbar-width: thin; }
.sw-chips button { flex: 0 0 auto; min-height: 26px; border-radius: 100px; white-space: nowrap; }
.sw-chips button.active { background: var(--sw-yellow); font-weight: 650; }
.sw-recommend { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 5px; }
.sw-recommend .sw-product { grid-template-columns: minmax(0,1fr); grid-template-rows: auto 1fr auto; align-items: start; gap: 4px; }
.sw-recommend .sw-product-copy strong, .sw-recommend .sw-product-copy small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.sw-recommend .sw-product-add { justify-self: end; }
.sw-products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 7px; }
.sw-product { display: grid; grid-template-columns: minmax(0,1fr) auto; align-content: start; align-items: end; gap: 2px; min-width: 0; padding: 4px; border: 1px solid var(--sw-border); border-radius: 7px; background: white; }
.sw-product-img { grid-column: 1 / -1; aspect-ratio: 1; background: #f9fafb; display: grid; place-items: center; border-radius: 5px; overflow: hidden; }
button.sw-product-img { width: 100%; padding: 0; border: 0; }
button.sw-product-img:hover { box-shadow: inset 0 0 0 1px #b58a10; }
.sw-product-img img, .sw-favorite-img img, .sw-thumbnails img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sw-product-copy { min-width: 0; display: grid; padding: 2px; }
.sw-product-copy strong { font-size: 12px; overflow-wrap: anywhere; }
.sw-product-copy small, .sw-favorite small { color: var(--sw-muted); font-size: 11px; overflow-wrap: anywhere; }
.sw-product-add { display: grid; place-items: center; align-self: end; min-width: 23px; min-height: 25px; padding: 1px 3px; border: 0; border-radius: 6px; background: var(--sw-yellow); font-size: 12px; }
.sw-product-add svg, .sw-image-empty svg { width: 16px; height: 16px; }
.sw-thumbnails { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 5px; }
.sw-thumbnails button { min-width: 0; min-height: 44px; aspect-ratio: 1; display: grid; place-items: center; align-content: center; border: 0; border-radius: 7px; background: #f1f3f5; padding: 4px; font-size: 11px; }
.sw-thumbnails svg { width: 19px; height: 19px; }
.sw-project-summary { padding: 7px; border: 1px solid var(--sw-border); border-radius: 7px; }
.sw-project-title { grid-template-columns: auto minmax(0,1fr) auto; border: 0; background: white; padding: 0; }
.sw-project-context { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; margin: 7px 0 0; color: var(--sw-muted); font-size: 12px; overflow-wrap: anywhere; }
.sw-current-project .sw-button.row { min-height: 36px; }
.sw-inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sw-project-stats { display: flex; flex-wrap: wrap; gap: 3px 8px; border-top: 1px solid var(--sw-border); margin-top: 6px; padding-top: 6px; font-size: 11px; color: var(--sw-muted); }
.sw-filter, .sw-search-form label { display: grid; gap: 3px; margin: 5px 0; color: var(--sw-muted); font-size: 12px; min-width: 0; }
.sw-filter :is(input,select,textarea), .sw-search-form :is(input,select) { width: 100%; min-width: 0; min-height: 34px; border: 1px solid #d9dde0; border-radius: 6px; padding: 4px 6px; background: white; }
.sw-search-form { display: flex; align-items: end; gap: 5px; margin-block: 7px; }
.sw-search-form label { flex: 1; margin: 0; }
.sw-favorite { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 8px; align-items: center; border-bottom: 1px solid var(--sw-border); padding: 8px 0; }
.sw-favorite > span:last-child { display: grid; justify-items: start; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.sw-favorite-img { display: grid; place-items: center; height: 56px; background: #f3f4f5; border-radius: 6px; }
.sw-workbench-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 6px; }
.sw-filter-wide { grid-column: 1 / -1; }
.sw-product-dialog { width: min(calc(100% - 24px), 400px); padding: 12px; border: 1px solid #dce0e2; border-radius: 12px; }
.sw-product-dialog::backdrop { background: #1b21254d; }
.sw-detail-photo { aspect-ratio: 1; display: grid; place-items: center; background: #f4f5f6; border-radius: 8px; }
.sw-detail-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.pc-wecom-project :is([data-project-accounts],[data-project-favorites],[data-project-item-overview]) { margin-block: 8px; }
[data-account-editor] { margin-top: 8px; }
[data-account-editor] summary { cursor: pointer; }
[data-account-message]:empty { display: none; }
.sw-customer-dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 5px 9px; margin-block: 8px; font-size: 13px; }
.sw-customer-dl dt { color: var(--sw-muted); }
.sw-customer-dl dd { margin: 0; overflow-wrap: anywhere; }
.sw-link { display: inline-block; padding-block: 5px; text-decoration: underline; }
.sw-catalog-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(124px, 100%), 1fr)); gap: 7px; }
.sw-link-share { display: grid; gap: 9px; }
.sw-link-share .catalog-share-colors { border: 0; margin: 0; padding: 0; min-width: 0; }
.sw-link-share .catalog-share-color-grid { grid-template-columns: repeat(auto-fill, minmax(min(64px, 100%), 1fr)); gap: 5px; max-height: 248px; }
.sw-link-share .catalog-share-color-tile { justify-items: center; gap: 3px; min-height: 44px; padding: 3px; border-radius: 6px; }
.sw-link-share .catalog-share-color-photo { width: min(100%, 58px); font-size: 11px; }
.sw-link-share .catalog-share-color-name { font-size: 12px; line-height: 1.3; padding: 0; }
.sw-link-share .catalog-share-color-option { position: relative; cursor: pointer; }
.sw-link-share .catalog-share-color-option:has(input:disabled) { cursor: default; }
.sw-link-share-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.sw-link-share [role=status]:empty { display: none; }
.sw-selected-product { display: flex; align-items: center; gap: 7px; min-width: 0; }
.sw-selected-product img { width: 46px; height: 46px; border-radius: 5px; background: #f4f5f6; object-fit: contain; }
.sw-selected-product small { display: block; color: var(--sw-muted); }
.sw-selected-product small:empty { display: none; }
.sales-workbench .pc-wecom-create { top: var(--sw-header); }
.sales-workbench .pc-wecom-create .pc-modal { max-height: calc(100dvh - var(--sw-header)); }
.sales-workbench:not([data-tab=projects]) .pc-wecom-create { display: none; }
@media (pointer: coarse) {
  .sw-header button { min-width: 44px; min-height: 44px; }
  .sw-button, .sw-button.text, .sw-chips button, .sw-product-add { min-height: 44px; }
}
