.entry-panel > summary,
.maintenance > summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  padding: 5px 0;
}
.entry-panel[open] > summary,
.maintenance[open] > summary { margin-bottom: 20px; }
.entry-panel > form { margin-top: 18px; }
.entry-panel summary:focus-visible,
.maintenance summary:focus-visible { outline: 2px solid #c94c6f; outline-offset: 5px; }
.toolbar label:has(#stock-scope) { flex: 0 1 240px; }
.history-memo { max-width: 320px; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 5px; }
.stock-row .small { max-width: 440px; color: var(--muted); }
.test-banner { margin: 0; text-align: center; background: #fff3dc; padding: 8px; color: #805718; }
.dialog-open { overflow: hidden; }
.modal:focus { outline: none; }
.maintenance section { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.main .section-heading { flex-wrap: wrap; }
#mobile-more { position: relative; flex: 1; }
#mobile-more > summary { list-style: none; display: flex; flex-direction: column; align-items: center; font-size: 18px; font-weight: 700; padding: 10px 5px; cursor: pointer; }
#mobile-more > summary::-webkit-details-marker { display: none; }
.more-menu { position: absolute; bottom: calc(100% + 8px); right: 8px; width: 230px; padding: 8px; border: 1px solid var(--line); background: white; border-radius: 12px; box-shadow: 0 8px 30px #17253d33; }
.more-menu .tab { display: block; width: 100%; text-align: left; padding: 15px; }
.table-wrap { overscroll-behavior-x: contain; }
#mov-category { width: auto; min-width: 150px; }
.grid-form > datalist { display: none; }
.ship-count-row td { vertical-align: top; }
.mobile-label { display: none; }
@media(max-width:650px) {
  #supply-rows .table, #mov-results .table { min-width: 0; display: block; }
  #supply-rows thead, #mov-results thead { display: none; }
  #supply-rows tbody, #mov-results tbody { display: grid; gap: 12px; }
  #supply-rows tr, #mov-results tr { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
  #supply-rows td, #mov-results td { display: block; border: 0; padding: 0; min-width: 0; overflow-wrap: anywhere; }
  #supply-rows tr { grid-template-columns: 48px minmax(0,1fr) 65px; }
  #supply-rows td:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
  #supply-rows td:nth-child(2) { grid-column: 2; grid-row: 2; font-size: 11px; }
  #supply-rows td:nth-child(3) { grid-column: 2; grid-row: 1; }
  #supply-rows td:nth-child(4) { display: none; }
  #supply-rows td:nth-child(5) { grid-column: 3; grid-row: 2; font-size: 11px; text-align: right; }
  #supply-rows td:nth-child(6) { grid-column: 1 / 3; font-size: 11px; }
  #supply-rows td:nth-child(7) { grid-column: 3; grid-row: 1; text-align: right; font-size: 17px; }
  #supply-rows td:nth-child(8) { grid-column: 3; text-align: right; font-size: 11px; }
  #supply-rows .supply-photo-preview { width: 46px; height: 46px; }
  #supply-rows .supply-name-button { padding: 0; min-width: 0; }
  .mobile-label { display: block; font-size: 10px; font-weight: 400; color: var(--muted); }
  #mov-results tr { grid-template-columns: minmax(0,1fr) auto; }
  #mov-results td:nth-child(1) { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
  #mov-results td:nth-child(2) { grid-row: 2; grid-column: 1; }
  #mov-results td:nth-child(3) { grid-row: 3; grid-column: 1; }
  #mov-results td:nth-child(4) { grid-row: 2 / 4; grid-column: 2; text-align: right; }
  #mov-results td:nth-child(5), #mov-results td:nth-child(6) { grid-column: 1 / -1; }
  #mov-results td:nth-child(6) { border-top: 1px solid var(--line); padding-top: 8px; }
  .bottom-tabs { overflow: visible; }
  .bottom-tabs > .tab { min-width: 0; flex: 1 1 0; padding: 10px 4px; }
  .bottom-tabs small { font-size: 11px; }
  .more-menu .tab { display: block; font-size: 14px; padding: 16px; }
  .stock-row { grid-template-columns: minmax(0,1fr) 88px; }
  .stock-row button { grid-column: auto; min-height: 42px; }
  .stock-row .mini { display: block; }
  .stock-row .small { font-size: 11px; line-height: 1.5; }
  .section-heading .btn-bar { width: 100%; }
  .section-heading .btn-bar > button { flex: 1; }
  .toolbar label:has(#stock-scope) { flex: 1 1 100%; }
  input, select, textarea { font-size: 16px; }
  .stat .v { font-size: 25px; }
  .stat-link { padding: 12px; gap: 3px; }
  .stat-link .v { margin: 2px 0 0; }
  .stat-link > .small { font-size: 10px; }
  .stat-grid { margin-bottom: 12px; }
  #toast { bottom: 80px; }
  .main { padding-bottom: 100px; }
}

.supply-stepper {
  display: grid;
  grid-template-columns: 3rem minmax(0,1fr) 3rem;
  gap: .5rem;
  max-width: 19rem;
}
.supply-stepper button, .supply-stepper input { min-height: 44px; text-align: center; }
.supply-stepper button { font-size: 1.25rem; padding: .25rem; }
#supply-delta-save { margin-top: .75rem; }

.packaging-sku { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; min-width: 0; }
.packaging-badge { font: 600 .72rem/1.3 system-ui, sans-serif; background: #eaf0f6; color: #293e58; overflow-wrap: anywhere; }

.product-master-row.compact-stock-row { grid-template-columns: auto minmax(0,1fr) auto; }
.stock-location-pills { display: flex; flex-wrap: wrap; gap: .25rem; }
.stock-location-pills .variant-pill { white-space: normal; }
.stock-action-list .variant-detail-row { grid-template-columns: minmax(0,1fr) auto; }
.variant-stock-location { max-width: 12rem; align-self: start; }
.variant-stock-location .stock-location-pills { justify-content: flex-end; }
.amazon-guide { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(8rem,100%),1fr)); gap: .75rem; padding: 0; list-style: none; }
.amazon-guide a { display: grid; gap: .4rem; color: inherit; font-size: .85rem; }
.amazon-guide img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: white; border: 1px solid var(--line); border-radius: .5rem; }
.amazon-guide-download { display: inline-block; padding: .6rem .8rem; border-radius: .5rem; text-decoration: none; }

.product-list-controls { margin-bottom: .75rem; }
.stat-sku-count { font-size: .68em; font-weight: 600; white-space: nowrap; }
.product-list-controls label { min-width: min(100%, 9rem); margin: 0; }
