.product-library-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: -4px 0 18px; }
.product-library-actions button { min-height: 44px; }
.product-material-picker { width: min(940px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; border: 1px solid #d7e1dc; border-radius: 16px; background: #fff; color: #14231e; box-shadow: 0 28px 80px rgb(20 35 30 / 24%); }
.product-material-picker::backdrop { background: rgb(16 29 24 / 46%); backdrop-filter: blur(5px); }
.product-material-picker-shell { max-height: calc(100dvh - 32px); overflow: auto; padding: 26px; }
.product-material-picker-header, .product-material-picker-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.product-material-picker-header h2 { margin: 7px 0 0; font-size: 24px; }
.product-material-picker-toolbar { margin: 22px 0 16px; }
.product-material-picker-search { display: flex; align-items: center; gap: 8px; width: min(440px, 100%); min-height: 44px; padding: 0 12px; border: 1px solid #bccbc4; border-radius: 6px; background: #fff; }
.product-material-picker-search:focus-within { outline: 3px solid rgb(11 110 174 / 24%); border-color: #0b6eae; }
.product-material-picker-search img { width: 17px; opacity: .6; }
.product-material-picker-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; }
.product-material-picker-status { min-height: 24px; color: #66756e; }
.product-material-picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product-material-picker-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; min-height: 168px; padding: 14px; border: 1px solid #d9e3de; border-radius: 8px; background: #fff; }
.product-material-picker-image, .product-material-picker-placeholder { width: 132px; height: 140px; border-radius: 6px; background: #f2f6f3; object-fit: cover; }
.product-material-picker-placeholder { display: grid; place-items: center; }
.product-material-picker-placeholder img { width: 30px; opacity: .55; }
.product-material-picker-copy { min-width: 0; }
.product-material-picker-copy h3 { margin: 2px 0 5px; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.product-material-picker-copy p, .product-material-picker-copy small { display: block; margin: 0 0 8px; color: #66756e; line-height: 1.5; }
.product-material-picker-copy small { min-height: 39px; }
.product-material-picker-copy .primary-button { width: 100%; min-height: 40px; }
.task-history-card { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.task-history-card > a { height: auto; }
.task-history-card-actions { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; padding: 0 16px 16px; }
.task-history-card-actions .secondary-button { width: 100%; min-height: 44px; justify-content: center; }
.task-history-delete { display: inline-grid; width: 44px; height: 44px; border: 1px solid #e1e5e9; border-radius: 7px; background: #fff; place-items: center; cursor: pointer; }
.task-history-delete:not(:disabled):hover { border-color: #e3b7b2; background: #fff7f6; }
.task-history-delete:focus-visible { outline: 3px solid rgb(163 59 50 / 24%); outline-offset: 2px; }
.task-history-delete:disabled { cursor: wait; opacity: .58; }
.task-history-delete img { width: 17px; height: 17px; }
@media (max-width: 1023px) {
  .header-actions .product-material-nav-link,
  .character-header-nav .product-material-nav-link { width: 44px; min-width: 44px; padding: 0; justify-content: center; }
  .header-actions .product-material-nav-link span,
  .character-header-nav .product-material-nav-link span { display: none; }
}
@media (max-width: 900px) {
  .header-actions .task-history-button,
  .header-actions .restart-button { width: 44px; min-width: 44px; padding: 0; justify-content: center; }
  .header-actions .task-history-button span,
  .header-actions .restart-button span { display: none; }
}
@media (max-width: 700px) {
  .product-library-actions > * { flex: 1 1 150px; }
  .product-material-picker { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .product-material-picker-shell { max-height: calc(100dvh - 20px); padding: 20px 16px; }
  .product-material-picker-toolbar { align-items: stretch; flex-direction: column; }
  .product-material-picker-toolbar .secondary-button { justify-content: center; }
  .product-material-picker-grid { grid-template-columns: 1fr; }
  .product-material-picker-card { grid-template-columns: 104px minmax(0, 1fr); }
  .product-material-picker-image, .product-material-picker-placeholder { width: 104px; height: 128px; }
}
