:root {
  --forest: #15345b;
  --moss: #b71f36;
  --lime: #dbe8f5;
  --paper: #000;
  --card: #efbb8a;
  --ink: #1f2a36;
  --muted: #78828e;
  --line: #e1e6ed;
  --gold: #fff;
  --red: #bd1f38;
}

.topbar {
  position: relative;
  display: block;
  height: 45px;
  padding: 0;
  background: transparent;
  border-bottom: 0;
  box-shadow: 0 3px 14px #102b4b26;
}
.header-stripes { display: grid; grid-template-rows: repeat(3, 1fr); width: 100%; height: 100%; }
.cards:not(.list) .card-photo { height: auto; aspect-ratio: 3 / 4; }
.cards:not(.list) .card-photo img { object-fit: contain; background: #fff; }
.cards.list .card-photo { aspect-ratio: auto; }
.auth-button { position: absolute; z-index: 4; right: max(calc((100vw - 1320px)/2 + 28px), 28px); top: 7px; padding: 7px 10px; }
.reader-owned { display: inline-block; cursor: default; }
.reader-owned:hover { cursor: default; }
.field input[readonly], .field textarea[readonly], .field select:disabled { color: #334761; opacity: 1; background: #f2f4f6; }
.field input:disabled, .field input[readonly], .field textarea[readonly] { cursor: default; }
.set-price-reader { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; }
#login-dialog { width: min(420px, calc(100vw - 28px)); padding: 28px 30px; }
#login-dialog form { position: relative; display: grid; gap: 12px; }
#login-dialog h2 { margin: 0; color: var(--forest); font: 700 22px Helvetica, sans-serif; }
#login-dialog p { margin: 0; color: var(--muted); }
.login-password { display: grid; gap: 6px; color: var(--forest); font-size: 12px; font-weight: 700; }
.login-password input { padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; font: 14px Helvetica, sans-serif; }
#login-dialog .login-error { min-height: 17px; color: var(--red); font-size: 12px; }
.header-stripes span:nth-child(1) { background: #bd1f38; }
.header-stripes span:nth-child(2) { background: #fff; }
.header-stripes span:nth-child(3) { background: #15345b; }
.controls select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23536175' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.joe-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 6px 7px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 0 #b71f36;
}
.logo-star {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  background: #bf2038;
  color: white;
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 95%,50% 72%,21% 95%,32% 57%,2% 35%,39% 35%);
  font-size: 0;
}
.logo-type {
  color: #18375c;
  font: 700 22px Helvetica, "Arial Narrow", sans-serif;
  letter-spacing: .7px;
  transform: skew(-7deg);
}
.logo-bars { display: flex; flex-direction: column; gap: 3px; margin-left: 2px; }
.logo-bars i { display: block; width: 20px; height: 4px; background: #bb2037; }
.logo-bars i:nth-child(2) { background: #17375f; }
.brand h1 { color: #e7edf5; font-size: 18px; }
.local-dot { background: #d73c52; box-shadow: 0 0 0 3px #d73c5227; }
.intro {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 32px;
  background: linear-gradient(113deg, #e4edf7 0%, #fff 100%);
  border: 1px solid #d7e1ed;
  border-left: 4px solid #bd1f36;
  border-radius: 8px;
}
.intro-heading { grid-column: 1; }
.intro-logo { display: block; grid-column: 2; justify-self: center; width: min(330px, 100%); max-height: 86px; height: auto; object-fit: contain; margin: 0; }
.intro-stats { grid-column: 3; display: flex; align-items: center; }
.intro .stat { margin-left: 0; }
.intro .eyebrow { color: #355375; }
.intro-copy { color: #667384; }
.stat { border-color: #ccd7e3; }
.stat span, .muted { color: #707b88; }
.controls { flex-wrap: wrap; margin-bottom: 11px; }
.hidden-toggle { display: flex; align-items: center; gap: 6px; color: #667384; font-size: 11px; white-space: nowrap; }
.hidden-toggle input { accent-color: #15345b; }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin: 7px 0 10px; padding: 0 2px; }
.toolbar-actions, .selection-tools, .selection-actions { display: flex; align-items: center; gap: 8px; }
.results-tools .toolbar-actions { gap: 8px; }
.selection-actions { flex-wrap: wrap; }
.selection-count { color: #d7deea; font-size: 11px; white-space: nowrap; }
.selection-actions .danger-button:disabled { opacity: .45; cursor: not-allowed; }
.toolbar p { margin: 0; color: #76818f; font-size: 11px; }
.add-button { background: #bb2038; box-shadow: 0 2px 0 #86192a; }
.add-button:hover { background: #a91b31; }
.year-tab { border-radius: 5px; color: #536175; }
.year-tab:hover { border-color: #99acc3; }
.year-tab.active { box-shadow: inset 0 -3px 0 #c3233d; }
.card { border-radius: 7px; }
.card-photo { background: linear-gradient(145deg, #edf2f7, #fbfcfe); }
.photo-placeholder { color: #b7c5d7; }
.photo-count { background: #15345bdc; }
.tag { color: #315174; background: #eaf0f7; border-radius: 3px; }
.owned.yes { color: #1f6284; }
.owned.no { color: #b43b4c; }
.card h3 { color: #1f3651; }
.card-foot { align-items: center; border-top: 2px solid #e32636; }
.quick-own {
  border: 1px solid #c5d0dd;
  border-radius: 4px;
  padding: 5px 7px;
  background: #f7f9fc;
  color: #24476e;
  font: 600 10px "American Typewriter", sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.quick-own:hover { background: #e6edf6; border-color: #8298b2; }
.possession-toggle { display: flex; gap: 4px; flex-shrink: 0; }
.quick-own.is-owned { background: #2f7a4c; color: #fff; border-color: #2f7a4c; }
.quick-own.is-not-owned { background: #b71f36; color: #fff; border-color: #b71f36; }
.hidden-record { opacity: .69; }
.record-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.danger-button {
  border: 1px solid #e6c5cb;
  border-radius: 5px;
  background: #fff7f8;
  color: #ae2438;
  padding: 9px 12px;
  font: 600 11px "American Typewriter", sans-serif;
  cursor: pointer;
}
.danger-button:hover { background: #fbe8eb; }
.set-card { border-radius: 7px; }
.set-card a, .source-link { color: #b21d34; }
dialog::backdrop { background: #102847cc; }
.upload-button { background: #eaf0f7; color: #25476c; border-radius: 5px; }
.field input, .field select, .field textarea { border-color: #dfe4eb; color: #33455b; outline-color: #7e99b8; }
.primary { border-radius: 5px; }
.secondary { border-radius: 5px; color: #566477; }
.danger-button + .primary { background: var(--forest); }
#toast { background: #15345b; border-radius: 5px; }
.empty strong { color: #284a71; }

.results-tools { display: flex; align-items: center; gap: 10px; }
.type-nav { display: flex; gap: 10px; margin: 16px 0 5px; padding-top: 12px; border-top: 3px solid #bd1f36; }
.type-nav .year-tab { flex: 0 0 auto; }
.sort-headers { display: flex; align-items: center; gap: 14px; }
.sort-heading { border: 0; padding: 6px 2px; background: transparent; color: #718097; font: 700 11px "American Typewriter", sans-serif; letter-spacing: .4px; cursor: pointer; white-space: nowrap; }
.sort-heading::first-line { text-decoration: none; }
.sort-heading.active { color: #2867e8; text-decoration: underline; text-underline-offset: 3px; }
.sort-heading:hover { color: #2867e8; }
.card-meta { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.year-pill { display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid #c9d8e9; border-radius: 999px; background: #edf3fa; color: #254a72; font-size: 10px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.cards.list .card { grid-template-columns: 90px minmax(0, 1fr); }
.cards.list .card-photo { height: 88px; }
.cards.list .card-body { display: grid; grid-template-columns: minmax(0, 1fr) max-content; grid-template-rows: auto auto; align-content: center; align-items: center; gap: 5px 22px; min-width: 0; padding: 10px 16px; }
.cards.list .card-top { grid-column: 1; grid-row: 1; min-width: 0; }
.cards.list .card-top .tag { max-width: 100%; }
.cards.list .card h3 { grid-column: 1; grid-row: 2; min-width: 0; margin: 0; text-align: left; }
.cards.list .card-foot { grid-column: 2; grid-row: 1 / 3; justify-content: flex-end; justify-self: end; align-self: center; min-width: 0; border: 0; padding: 0; }
.cards.list .card-meta { max-width: 100%; }
.card-meta > span:last-child { display: inline-flex; min-width: 0; min-height: 0; flex: 0 0 auto; overflow: visible; white-space: nowrap; line-height: 1.2; }
.cards.list .card-meta > span:last-child { display: inline-flex; min-height: 0; white-space: nowrap; }
.cards.list .card-foot .quick-own { flex-shrink: 0; }
.card-info { display: contents; }
.cards.list .card-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.cards.list .card-info > .tag { max-width: 100%; }
.cards.list .card-info .card-meta { max-width: 100%; }
.card { position: relative; border: 0; border-radius: 20px; padding: 12px; background: #111; }
.card::after { content: ""; position: absolute; inset: 5px; z-index: 5; border: 5px dashed #fff; border-radius: 14px; pointer-events: none; }
.bulk-select { display: none; position: absolute; top: 20px; left: 20px; z-index: 8; width: 25px; height: 25px; cursor: pointer; }
.cards.selection-mode .bulk-select { display: grid; place-items: center; }
.bulk-select input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bulk-select span { display: grid; place-items: center; width: 23px; height: 23px; border: 2px solid #15345b; border-radius: 5px; background: #fff; box-shadow: 0 1px 4px #0008; }
.bulk-select input:checked + span { border-color: #bd1f38; background: #bd1f38; }
.bulk-select input:checked + span::after { content: "✓"; color: #fff; font: 700 16px Helvetica, sans-serif; }
.bulk-select input:focus-visible + span { outline: 3px solid #6fa0ff; outline-offset: 2px; }
.card.is-selected { box-shadow: 0 0 0 3px #e32636; }
.cards:not(.list) .card-body { display: flex; flex-direction: column; }
.cards:not(.list) .card h3 { order: 1; min-height: 2.4em; margin: 0 0 2px; line-height: 1.2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.cards .version { min-height: 1.2em; }
.cards:not(.list) .version { order: 2; }
.cards:not(.list) .card-top { order: 3; justify-content: flex-start; gap: 8px; margin: 8px 0 10px; }
.cards:not(.list) .card-foot { order: 4; }
.cards .card-foot { justify-content: flex-end; }
.card-price { margin-right: auto; color: #24476c; font: 700 12px Helvetica, sans-serif; white-space: nowrap; }
.card-photo { border-radius: 8px 8px 0 0; }
.card-body { border-radius: 0 0 12px 12px; background: #efbb8a; }
.set-card { position: relative; border: 12px solid #111; border-radius: 20px; padding: 12px; background: #efbb8a; }
.set-card::after { content: ""; position: absolute; inset: 3px; z-index: 5; border: 5px dashed #fff; border-radius: 12px; pointer-events: none; }
.set-price-row { display: flex; align-items: end; gap: 9px; margin-top: 12px; padding-top: 10px; border-top: 3px solid #bd1f36; }
.set-price-row label { display: flex; flex: 1; flex-direction: column; gap: 4px; color: #25476c; font: 700 10px Helvetica, sans-serif; text-transform: uppercase; letter-spacing: .35px; }
.set-price-row input { width: 100%; min-width: 0; height: 34px; border: 1px solid #c8d3df; border-radius: 5px; padding: 6px 9px; background: #fff; color: #243b58; font: 13px "American Typewriter", sans-serif; }
.set-price-row .secondary { flex: 0 0 auto; height: 34px; padding: 7px 10px; background: #15345b; color: #fff; border-color: #15345b; }
.set-transfer-row { display: flex; margin-top: 10px; }
.set-transfer-row .secondary { width: 100%; background: #15345b; color: #fff; border-color: #15345b; }
body { color: #f4f5f8; }
.intro { background: transparent; border-color: #ffffff55; border-left-color: #bd1f38; }
.intro .eyebrow, .intro h2, .intro-copy, .stat strong, .stat span { color: #f4f5f8; }
.stat { border-color: #ffffff55; }
.toolbar p, .hidden-toggle { color: #d7deea; }
.results-head { border-color: #ffffff55; }
.results-head h2 { color: #f4f5f8; }
.muted, footer { color: #c0c8d4; }
.sort-heading { color: #b8c4d6; }
.sort-heading.active, .sort-heading:hover { color: #6fa0ff; }
.photo-dropzone { justify-content: center; min-height: 66px; padding: 10px; border: 2px dashed #bdcde0; border-radius: 7px; background: #f7f9fc; transition: .15s ease; }
.photo-dropzone.drag-active { border-color: #2867e8; background: #eaf1ff; box-shadow: 0 0 0 3px #2867e822; }
.photo-dropzone .upload-hint { text-align: center; }

@media (max-width: 700px) {
  .intro { display: flex; gap: 15px; }
  .intro-heading { width: 100%; }
  .intro-stats { width: 100%; justify-content: space-around; }
  .results-tools { flex-wrap: wrap; justify-content: flex-end; }
  .results-tools .toolbar-actions { flex-wrap: wrap; flex-direction: row; align-items: center; justify-content: flex-end; }
  .results-tools .selection-actions { justify-content: flex-end; }
  .intro-logo { flex: 0 1 280px; width: min(280px, 70vw); max-height: 65px; margin: 0 auto; }
  .results-tools { gap: 6px; }
  .sort-headers { gap: 8px; }
  .sort-heading { font-size: 9px; }
  .cards.list .card { grid-template-columns: 68px minmax(0, 1fr); }
  .cards.list .card-photo { height: 104px; }
  .cards.list .card-body { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 8px 10px; }
  .cards.list .card-top, .cards.list .card h3, .cards.list .card-foot { grid-column: 1; }
  .cards.list .card-top { grid-row: 1; }
  .cards.list .card h3 { grid-row: 2; }
  .cards.list .card-foot { grid-row: 3; gap: 8px; justify-content: flex-end; justify-self: end; }
  .cards.list .card-meta { max-width: 55%; }
  .cards.list .quick-own { padding: 5px 7px; font-size: 9px; }
  .toolbar p { max-width: 55%; }
  .toolbar { align-items: flex-start; gap: 10px; }
  .toolbar-actions { align-items: flex-end; flex-direction: column-reverse; }
  .selection-actions { justify-content: flex-end; gap: 5px; }
  .quick-own { padding: 5px; font-size: 9px; }
  .possession-toggle { gap: 3px; }
  .dialog-actions { align-items: flex-start; flex-direction: column; }
  .dialog-actions > div:last-child { align-self: flex-end; }
}
@media (max-width: 410px) {
  .cards:not(.list) .card { display: flex; flex-direction: column; }
  .cards:not(.list) .card-photo { width: 100%; height: auto; min-height: 0; }
}
@media (max-width: 410px) {
  .hidden-toggle { width: 100%; }
  .toolbar p { font-size: 10px; }
}

.photo-tile { height: 132px; }
.photo-tile img { display: block; width: 100%; height: 98px; object-fit: contain; background: #fff; }
.photo-credit { color: #758090; font-size: 9px; line-height: 1.2; padding: 4px 3px; text-align: center; white-space: nowrap; }
.photo-credit a { color: #b21d34; text-decoration: none; }
.photo-credit a:hover { text-decoration: underline; }
.metadata-details { border-top: 1px solid var(--line); padding-top: 10px; }
.metadata-details summary { color: #315174; cursor: pointer; font-size: 11px; font-weight: 700; }
.metadata-fields { margin-top: 12px; }
.identity-fields { margin: 0 0 16px; padding: 12px; border-radius: 7px; background: #f5f7fa; }

/* Product sheet layout: large image with an editable inventory panel. */
#item-dialog { width: min(1020px, calc(100vw - 28px)); }
#item-form { padding: 30px; }
.product-sheet-head { display: grid; grid-template-columns: minmax(300px, 1.1fr) minmax(250px, .9fr); gap: 30px; align-items: center; margin: -30px -30px 24px; padding: 30px; border-bottom: 1px solid #e1e6ed; background: #f5f7fa; }
.product-gallery { min-width: 0; }
.product-hero { height: 350px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #fff; border: 1px solid #e1e6ed; }
.product-hero img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-photo-placeholder { color: #b7c6d8; font: 700 54px Helvetica, sans-serif; }
.product-hero-credit { margin: 7px 1px 0; color: #7a8796; font-size: 10px; }
.product-hero-credit a { color: #bd1f38; }
.product-thumbnails { display: flex; gap: 9px; margin-top: 11px; overflow-x: auto; padding: 2px 2px 5px; }
.product-thumb-wrap { position: relative; flex: 0 0 72px; text-align: center; }
.product-thumb { display: block; width: 72px; height: 72px; padding: 2px; border: 2px solid transparent; border-radius: 7px; background: #fff; cursor: pointer; overflow: hidden; }
.product-thumb.active { border-color: #15345b; }
.product-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-thumb-wrap .photo-credit { padding-top: 3px; font-size: 8px; }
.delete-photo { position: absolute; top: -5px; right: -5px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #bd1f38; color: #fff; font-size: 15px; line-height: 20px; cursor: pointer; }
.product-heading { align-self: center; padding: 8px 4px; }
.product-kicker { margin: 0 0 10px; color: #657c98; font: 700 11px Helvetica, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; }
.product-heading .dialog-title { margin: 0; color: #15345b; font: 700 clamp(27px, 3vw, 38px) Helvetica, sans-serif; line-height: 1.1; }
.product-version { margin: 8px 0 0; color: #748294; font: 600 17px Helvetica, sans-serif; }
.product-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 19px; }
.product-tags span { max-width: 100%; padding: 7px 10px; border-radius: 5px; background: #e5edf6; color: #315174; font: 600 10px Helvetica, sans-serif; }
.product-sheet-prompt { margin: 20px 0 0; color: #8994a1; font: 11px Helvetica, sans-serif; }
.identity-fields { margin: 0 0 16px; }
.product-sheet-layout { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: 30px; align-items: start; }
.product-gallery { position: sticky; top: 0; min-width: 0; }
.product-hero { height: min(64vh, 540px); min-height: 330px; }
.product-details { min-width: 0; }
.product-titlebar { margin: 3px 0 28px; }
.product-titlebar .product-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.product-line-pill { padding: 8px 13px; border-radius: 8px; background: #e2edf7; color: #315174; letter-spacing: 0; text-transform: none; }
.product-titlebar .dialog-title { font-size: clamp(28px, 3vw, 44px); overflow-wrap: anywhere; }
.product-fields { gap: 18px 20px; }
.product-fields .field label, .product-fields .field legend { color: #15345b; font: 700 12px Helvetica, sans-serif; letter-spacing: .4px; text-transform: uppercase; }
.product-fields .field input, .product-fields .field select, .product-fields .field textarea { border-radius: 5px; min-height: 44px; background: #f3f5f7; border-color: #e3e7eb; color: #1d2b3b; font: 14px Helvetica, sans-serif; }
.product-fields .field textarea { min-height: 145px; resize: vertical; }
.possession-field { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 7px 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.possession-field legend { flex-basis: 100%; margin-bottom: 1px; padding: 0; }
.radio-choice { display: inline-flex; flex-direction: row !important; align-items: center; gap: 8px !important; color: #1d2b3b !important; font: 600 14px Helvetica, sans-serif !important; text-transform: none !important; cursor: pointer; }
.radio-choice input { accent-color: #15345b; width: 18px; height: 18px; min-height: 0 !important; margin: 0; }
.product-source { min-height: 35px; padding-top: 13px; }
.product-source .source-link { color: #bd1f38; font: 13px Helvetica, sans-serif; }
.product-upload { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin: 17px 0 0; }
.product-upload .upload-hint { line-height: 1.5; }
.new-entry-sheet { max-width: 720px; }
.new-entry-sheet .product-titlebar { margin-bottom: 25px; }
.new-entry-sheet .dialog-actions { justify-content: flex-end; }
@media (max-width: 760px) {
  .product-sheet-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .product-gallery { position: static; }
  .product-hero { height: min(78vw, 440px); min-height: 280px; }
  .product-upload { flex-direction: row; flex-wrap: wrap; }
  .product-titlebar { margin: 0 0 20px; }
}
@media (max-width: 460px) {
  .product-fields { grid-template-columns: 1fr; }
  .product-fields .field.wide { grid-column: auto; }
}
/* Keep the product sheet compact and its select arrow clear of the edge. */
#item-dialog { max-height: 96vh; overflow: hidden; }
#item-form { max-height: 96vh; overflow: hidden; }
.product-sheet-layout { grid-template-columns: minmax(205px, 260px) minmax(0, 1fr); gap: 26px; }
.product-hero { height: min(42vh, 420px); min-height: 270px; }
.product-titlebar { margin-bottom: 19px; }
.product-titlebar .product-kicker { margin-bottom: 7px; }
.product-fields { gap: 12px 18px; }
.product-fields .field input, .product-fields .field select { min-height: 39px; padding-top: 7px; padding-bottom: 7px; }
.product-fields .field textarea { min-height: 78px; height: 78px; resize: none; }
.product-fields .field select { appearance: none; -webkit-appearance: none; padding-right: 46px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%2315345b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 17px center; }
.product-source { min-height: 28px; padding-top: 9px; }
.product-upload { margin-top: 11px; }
@media (max-width: 760px) {
  #item-dialog { max-height: 94vh; }
  #item-form { max-height: 94vh; overflow-y: auto; }
  .product-sheet-layout { grid-template-columns: minmax(0, 1fr); }
  .product-hero { height: min(58vw, 360px); min-height: 220px; }
  .product-fields .field textarea { min-height: 78px; }
}
.cards.list .card { border-radius: 0 20px 20px 0; }
.cards.list .card::after { border-radius: 0 14px 14px 0; }
.cards.list .card { align-items: stretch; }
.cards.list .card-photo { width: 90px; height: 90px; min-height: 90px; aspect-ratio: 1 / 1; align-self: center; border-radius: 0; }
.cards.list .card-body { display: flex; grid-template-columns: none; grid-template-rows: none; flex-direction: row; align-items: center; justify-content: space-between; align-self: stretch; min-height: 88px; gap: 16px; border-radius: 0 12px 12px 0; }
.cards.list .card h3 { order: 1; }
.cards.list .card-top { display: flex; order: 2; flex: 0 1 auto; grid-column: auto; grid-row: auto; align-items: center; gap: 8px; max-width: 42%; margin: 0; }
.cards.list .card-top .tag { max-width: min(290px, 28vw); }
.cards.list .card h3 { flex: 1 1 auto; grid-column: auto; grid-row: auto; min-width: 0; margin: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cards.list .card-foot { display: flex; order: 3; flex: 0 0 auto; grid-column: auto; grid-row: auto; align-items: center; justify-content: flex-end; justify-self: auto; align-self: center; gap: 0; margin-left: auto; border: 0; padding: 0; }
@media (max-width: 760px) {
  .cards.list .card { grid-template-columns: 68px minmax(0, 1fr); }
  .cards.list .card-photo { width: 68px; height: 68px; min-height: 68px; }
  .cards.list .card-body { gap: 8px; padding: 8px; }
  .cards.list .card-top { gap: 5px; max-width: 45%; }
  .cards.list .card-top .tag { max-width: clamp(72px, 23vw, 170px); }
  .cards.list .card h3 { font-size: 13px; }
  .cards.list .quick-own { padding: 5px 7px; font-size: 9px; }
}
@media (max-width: 700px) {
  #item-form { padding: 20px 17px; }
  .product-sheet-head { grid-template-columns: 1fr; gap: 17px; margin: -20px -17px 20px; padding: 20px 17px; }
  .product-hero { height: min(68vw, 330px); }
  .product-heading { padding: 0 2px; }
  .product-sheet-prompt { margin-top: 12px; }
}
