.collection-shell .my-bikes {
  --inventory-red: #ed1c24;
  background: #141414;
  border: 1px solid #424242;
  border-top-color: var(--inventory-red);
  border-radius: .65rem;
  padding: clamp(.8rem, 2.5vw, 1.5rem);
  scroll-margin-top: 1rem;
}
.collection-shell .my-bikes-list { display: grid; gap: .75rem; margin-top: 1rem; }
.collection-shell .my-bikes-row {
  background: #1a1a1a;
  border: 1px solid #454545;
  border-left: 2px solid #ed1c24;
  border-radius: .55rem;
  min-width: 0;
}
.collection-shell .my-bikes-row > summary {
  display: grid;
  grid-template-columns: minmax(10rem,1.5fr) minmax(8rem,1fr) minmax(7rem,1fr) auto;
  align-items: center;
  gap: .5rem 1rem;
  min-height: 3.5rem;
  padding: .65rem 1rem;
  cursor: pointer;
  overflow-wrap: anywhere;
  list-style: none;
}
.collection-shell .my-bikes-row > summary::-webkit-details-marker { display: none; }
.collection-shell .my-bikes-row[open] > summary { background: #242424; border-bottom: 1px solid #454545; }
.collection-shell .my-bikes-row > summary:hover { background: #282828; }
.my-bikes-status { font-size: .9rem; color: #ddd; }
.my-bikes-edit-label { font-weight: 700; white-space: nowrap; }
.my-bikes-edit-label::after { content: ' ▾'; color: #ed1c24; }
.my-bikes-row[open] .my-bikes-edit-label::after { content: ' ▴'; }
.my-bikes-editor { padding: clamp(.65rem,2vw,1.3rem); min-width: 0; }
.my-bikes-bike-editor { margin-bottom: .6rem; }
.collection-shell .my-bikes-fieldset {
  border: 1px solid #464646;
  border-radius: .5rem;
  min-width: 0;
  padding: .8rem;
  margin: 0;
}
.my-bikes-fieldset > legend { font-weight: 700; padding: 0 .3rem; }
.my-bikes-fieldset > p { margin: .2rem 0 .75rem; }
.collection-shell .my-bikes input:not([type=checkbox]), .collection-shell .my-bikes select { min-height: 2.75rem; }
.collection-shell .my-bikes textarea { min-height: 8rem; resize: vertical; }
.collection-shell .my-bikes input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: #ed1c24; }
.collection-shell .my-bikes-drop {
  display: grid;
  gap: .4rem;
  padding: .85rem;
  border: 1px dashed #949494;
  border-radius: .5rem;
  background: #202020;
}
.collection-shell .my-bikes-drop.is-dragging { border-color: #ed1c24; background: #32171a; }
.my-bikes-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .7rem; }
.my-bikes-photos figure { min-width: 0; margin: .35rem 0; }
.collection-shell .my-bikes-photos img { aspect-ratio: 3/2; object-fit: contain; }
.collection-shell .my-bikes .collection-example-photo { max-width: 32rem; margin-bottom: 1rem; }
.collection-shell .my-bikes :is(button,.collection-pill,.collection-button),
.collection-shell.my-bikes-theme > .collection-nav a {
  align-self: start;
  min-height: 2.65rem;
  height: auto;
  border: 1px solid #666;
  border-radius: .5rem;
  background: #242424;
  color: #fff;
  padding: .55rem .85rem;
  font-weight: 700;
  text-decoration: none;
}
.collection-shell .my-bikes button[type=submit],
.collection-shell.my-bikes-theme > .collection-nav a[aria-current="page"] {
  background: #ed1c24;
  border-color: #ed1c24;
  color: #fff;
}
.collection-shell .my-bikes :is(button,.collection-pill,.collection-button):hover,
.collection-shell.my-bikes-theme > .collection-nav a:hover { border-color: #ed1c24; }
@media(max-width: 45rem) {
  .collection-shell .my-bikes-row > summary { grid-template-columns: 1fr auto; padding: .65rem; }
  .my-bikes-row > summary > strong { grid-column: 1; grid-row: 1; }
  .my-bikes-row > summary > .collection-hint { grid-column: 1/-1; grid-row: 2; }
  .my-bikes-row > summary > .my-bikes-status { grid-column: 1/-1; grid-row: 3; }
  .my-bikes-row > summary > .my-bikes-edit-label { grid-column: 2; grid-row: 1; }
  .collection-shell .my-bikes .collection-fields { grid-template-columns: minmax(0, 1fr); }
}

.collection-shell .my-bikes-overview { margin-top: 1rem; }
.collection-shell .my-bikes-filter {
  display: grid;
  grid-template-columns: minmax(12rem, 2fr) minmax(8rem, 1fr) auto;
  align-items: end;
  gap: .7rem;
  margin-bottom: .8rem;
}
.my-bikes-filter label { display: grid; gap: .25rem; font-size: .9rem; font-weight: 700; }
.my-bikes-filter p { margin: 0; padding: .5rem 0; }
.collection-shell .my-bikes-overview-table { table-layout: fixed; font-size: .9rem; }
.collection-shell .my-bikes-overview-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #222;
  color: #fff;
  border-bottom-color: #ed1c24;
  white-space: normal;
}
.my-bikes-overview-table th:first-child { width: 22%; }
.my-bikes-overview-table th:nth-child(5) { width: 18%; }
.collection-shell .my-bikes-overview-table td,
.collection-shell .my-bikes-overview-table th { padding: .6rem .55rem; overflow-wrap: anywhere; }
.my-bikes-overview-row { cursor: pointer; }
.my-bikes-overview-row:hover, .my-bikes-overview-row:focus-within, .my-bikes-overview-row.is-open { background: #242424; }
.my-bikes-cell-content { display: grid; gap: .1rem; }
.my-bikes-cell-label { display: none; }
.my-bikes-identity { font-size: .83rem; }
.collection-shell .my-bikes .my-bikes-open {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-height: 0;
  width: fit-content;
  max-width: 100%;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: #ed1c24;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
.collection-shell .my-bikes .my-bikes-open::after { content: ' ›'; color: #ed1c24; }
.collection-shell .my-bikes .my-bikes-open[aria-expanded="true"]::after { content: ' ▾'; }
.collection-shell .my-bikes-overview-editor > td { padding: 0; background: #191919; border-left: 2px solid #ed1c24; }
.my-bikes-overview [hidden] { display: none !important; }
@media(max-width: 52rem) {
  .collection-shell .my-bikes-filter { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .my-bikes-filter p { grid-column: 1/-1; padding: 0; font-size: .85rem; }
  .my-bikes-overview-table, .my-bikes-overview-table tbody { display: block; }
  .my-bikes-overview-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .my-bikes-overview-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border-bottom: 1px solid #494949; }
  .collection-shell .my-bikes-overview-row td { border: 0; padding: .35rem .45rem; }
  .collection-shell .my-bikes-overview-row td:first-child { padding-top: .6rem; }
  .collection-shell .my-bikes-overview-row td:nth-child(2) { padding-top: .6rem; }
  .my-bikes-cell-label { display: block; color: #c8c8c8; font-size: .77rem; }
  .my-bikes-overview-row td:first-child .my-bikes-cell-label { display: none; }
  .my-bikes-overview-editor, .my-bikes-overview-editor > td { display: block; }
}
