:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202625;
  background: #f6f5f0;
  font-synthesis: none;
  --paper: #f6f5f0;
  --surface: #fffefa;
  --ink: #202625;
  --muted: #626660;
  --line: #d5d6cd;
  --blue: #234cc0;
  --blue-dark: #173586;
  --blue-wash: #edf1fc;
  --blue-border: #b6c4ee;
  --danger: #993d27;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-size: 1rem; line-height: 1.6; }
body { display: flex; flex-direction: column; min-height: 100vh; }
body[data-workspace="admin"] {
  --blue: #303c42;
  --blue-dark: #172329;
  --blue-wash: #e6eaeb;
  --blue-border: #b5bec2;
}
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, ol, figure { margin: 0; }
h1, h2, h3 { line-height: 1.1; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.4rem, 4.7vw, 4.5rem); font-weight: 750; letter-spacing: -.05em; }
h2 { font-size: clamp(1.5rem, 2.7vw, 2.15rem); font-weight: 700; letter-spacing: -.035em; }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.02em; }
p { overflow-wrap: anywhere; }
p + p { margin-top: .8rem; }
strong { font-weight: 700; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 1rem;
  min-height: 46px; padding: .7rem 1.1rem; border: 1px solid var(--blue); border-radius: 0;
  background: var(--blue); color: #fff; font-size: .92rem; font-weight: 650;
  line-height: 1.35; text-align: center; text-decoration: none; cursor: pointer;
}
button:hover, .button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.button-secondary { background: transparent; border-color: #90958b; color: var(--ink); }
.button-secondary:hover { background: #e9eae2; border-color: var(--ink); color: var(--ink); }
.button-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.button-danger:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.button-small { min-height: 44px; padding: .55rem .8rem; font-size: .84rem; }
button:disabled { color: var(--muted); background: #e7e8e1; border-color: var(--line); cursor: not-allowed; }
input, select, textarea {
  width: 100%; min-width: 0; min-height: 46px; border: 1px solid #90958b; border-radius: 0;
  padding: .65rem .75rem; color: var(--ink); background: var(--surface); line-height: 1.5;
}
select {
  appearance: none; padding-right: 2.5rem;
  background-image: url("/static/chevron-down.svg"); background-repeat: no-repeat;
  background-position: right .75rem center; background-size: 1rem;
}
input::placeholder, textarea::placeholder { color: #73766f; opacity: 1; }
input[type="file"] { padding: .45rem; font-size: .88rem; }
input[type="file"]::file-selector-button { border: 0; border-right: 1px solid var(--line); padding: .2rem .7rem .2rem .2rem; margin-right: .7rem; background: transparent; font: inherit; font-weight: 650; color: var(--ink); cursor: pointer; }
textarea { display: block; resize: vertical; }
label, legend { font-size: .9rem; font-weight: 650; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: .6rem; font-size: 1.15rem; }
form { margin: 0; }
summary { padding: .75rem 0; min-height: 44px; font-size: .92rem; font-weight: 650; cursor: pointer; }
summary:hover { color: var(--blue); }
details[open] > summary { margin-bottom: .7rem; }
.shell { width: min(100% - 5rem, 1180px); margin-inline: auto; }
.main-content { flex: 1; padding-top: 1.25rem; padding-bottom: 3rem; }
.main-content.public-layout { padding-top: 0; }
.narrow { max-width: 760px; margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 10; padding: .7rem 1rem; background: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.eyebrow { font-size: .7rem; font-weight: 750; line-height: 1.5; text-transform: uppercase; letter-spacing: .13em; }
.muted, .meta, .field-help, .optional { color: var(--muted); }
.meta, .field-help { font-size: .85rem; line-height: 1.6; }
.optional { font-size: .8rem; font-weight: 400; }
.prose { max-width: 70ch; line-height: 1.8; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
.quiet-link { color: var(--ink); font-size: .92rem; font-weight: 600; }
.field { display: grid; align-content: start; gap: .45rem; min-width: 0; }
.field-help { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.form-panel { display: grid; gap: 1.5rem; padding: 2rem; border: 1px solid var(--line); background: var(--surface); }
.form-panel > .notice { margin: 0; }
.notice { margin-bottom: 1.5rem; padding: 1rem 1.2rem; border: 1px solid var(--blue-border); border-left: 3px solid var(--blue); background: var(--blue-wash); color: var(--blue-dark); font-size: .92rem; overflow-wrap: anywhere; }
.notice-error { color: #7e301e; background: #fcf0e9; border-color: #ddbba8; border-left-color: var(--danger); }
.notice-warning { color: #704316; background: #f5efdf; border-color: #d3c29d; border-left-color: #8b5a23; }
.notice p { margin-top: .4rem; }
.badge { display: inline-block; padding: .2rem .55rem; border: 1px solid #bbbfb3; border-radius: 0; color: #4b5147; background: #eeefe8; font-size: .7rem; font-weight: 700; line-height: 1.5; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.badge-approved { color: var(--blue-dark); border-color: var(--blue-border); background: var(--blue-wash); }
.badge-pending { color: #704316; border-color: #d3c29d; background: #f5efdf; }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wordmark { flex-shrink: 0; color: var(--ink); text-decoration: none; font-size: 1.55rem; line-height: 1.2; font-weight: 750; letter-spacing: -.04em; }
.wordmark:hover { color: var(--ink); }
.account-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .25rem 1.2rem; }
.account-controls a, .account-controls button { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 0; border: 0; background: transparent; color: var(--ink); font-size: .82rem; font-weight: 600; text-decoration: none; }
.account-controls a:hover, .account-controls a[aria-current], .account-controls button:hover { color: var(--blue); text-decoration: underline; }
.file-tabs { display: flex; align-items: stretch; gap: .4rem; padding-right: .5rem; }
.file-tabs a { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 4px; margin-bottom: -1px; padding: .6rem 1.35rem; border: 1px solid var(--ink); background: #e8e7df; color: var(--ink); font-size: .86rem; font-weight: 650; line-height: 1.35; text-decoration: none; }
.file-tabs a:hover { color: var(--blue); }
.file-tabs a[aria-current] { z-index: 1; margin-top: 0; padding-top: calc(.6rem + 4px); border-bottom-color: var(--surface); background: var(--surface); }
.file-tabs a:focus-visible { z-index: 2; }
.public-sheet { padding: 1.5rem; border: 1px solid var(--ink); background: var(--surface); }
.workspace { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: start; align-content: start; gap: 2rem; border-top: 1px solid var(--ink); }
.workspace-sidebar { min-width: 0; }
.workspace-label { margin-bottom: .65rem; color: var(--muted); font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.workspace-note { margin-top: 1rem; padding-inline: .75rem; color: var(--muted); font-size: .75rem; }
.workspace-nav { display: grid; gap: .25rem; }
.workspace-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: .55rem .75rem; border-left: 3px solid transparent; color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; }
.workspace-nav a:hover { background: #e8e7df; }
.workspace-nav a[aria-current] { border-color: var(--blue); background: var(--blue-wash); color: var(--blue-dark); }
body[data-workspace="admin"] .workspace-nav a[aria-current] { background: var(--blue); color: #fff; border-color: var(--blue-dark); }
.workspace-content { min-width: 0; }
.workspace-main .page-heading { padding-top: 0; }
.workspace-main h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.workspace-main > .section { margin-top: 1.5rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.5rem; padding-block: 1.25rem; color: var(--muted); font-size: .78rem; }
.footer-inner > span { margin-right: auto; }
.section { margin-top: 3.5rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading .eyebrow { margin-bottom: .5rem; }
.section-heading > a { font-size: .86rem; font-weight: 600; }
.shoe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.shoe-card { min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.shoe-card-link { display: block; height: 100%; color: var(--ink); text-decoration: none; }
.shoe-card-link:hover { color: var(--ink); outline: 1px solid var(--ink); }
.shoe-card-link:focus-visible { outline: 3px solid var(--blue); }
.shoe-card-image { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #edece5; border-bottom: 1px solid var(--line); }
.shoe-card-image img { width: 100%; height: 100%; object-fit: contain; aspect-ratio: 4 / 3; }
.image-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1rem; color: var(--muted); font-size: .76rem; }
.shoe-card-body { padding: 1.2rem; }
.shoe-card .eyebrow { display: flex; justify-content: space-between; color: var(--muted); font-size: .65rem; }
.card-year { font-weight: 500; letter-spacing: .04em; }
.shoe-card h3 { margin-top: .4rem; font-size: 1.3rem; }
.shoe-card-rating { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; font-size: .78rem; }
.shoe-card-rating strong { font-size: 1.5rem; letter-spacing: -.05em; }
.page-heading { padding-block: .8rem 2rem; }
.page-heading .eyebrow { margin-bottom: .8rem; color: var(--blue); }
.page-heading > p:not(.eyebrow), .page-heading > div > p:not(.eyebrow) { margin-top: 1rem; max-width: 65ch; color: var(--muted); }
.page-heading .notice { margin-top: 1.5rem; }
.catalogue { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
.catalogue-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(10rem, .55fr) auto; align-items: end; gap: .8rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
/* Flatten the disclosure into the toolbar grid without losing its native toggle. */
.filters-disclosure, .filters-disclosure::details-content { display: contents; }
.filters-disclosure > summary { align-self: end; min-height: 46px; margin: 0; padding: .7rem 1rem; border: 1px solid #90958b; line-height: 1.5; list-style-position: inside; }
.filters-disclosure[open] > summary { margin: 0; background: var(--blue-wash); border-color: var(--blue); color: var(--blue-dark); }
.filters-disclosure:not([open]) > .filter-panel { display: none; }
/* Hidden results still size the second row; filters fill it without changing the toolbar. */
.filter-panel { position: absolute; grid-area: 2 / 1 / 3 / 2; inset: 0; display: grid; align-content: start; gap: 1rem; padding: 1rem; border: 1px solid var(--line); background: var(--surface); overflow: auto; }
.filter-panel > .field { width: min(100%, 26rem); }
.catalogue-filters:has(.filters-disclosure[open]) + #catalog-results { visibility: hidden; }
.results-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1.2rem; }
.results-heading h2 { font-size: 1.3rem; }
.featured-shoe { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); border: 1px solid var(--line); }
.featured-shoe-image { display: grid; place-items: center; min-height: 240px; background: #edece5; border-right: 1px solid var(--line); }
.featured-shoe-image img { width: 100%; height: 100%; max-height: 350px; object-fit: contain; }
.featured-shoe-body { min-width: 0; padding: 1.5rem; }
.featured-shoe-body .eyebrow { color: var(--muted); }
.featured-shoe h3 { margin-top: .4rem; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.featured-shoe h3 a { color: var(--ink); text-decoration: none; }
.featured-shoe h3 a:hover { color: var(--blue); text-decoration: underline; }
.featured-shoe-description { margin-top: .8rem; color: var(--muted); font-size: .9rem; }
.featured-shoe-rating { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1rem; font-size: .8rem; }
.featured-shoe-rating strong { font-size: 1.35rem; }
.featured-shoe-rating strong span { font-size: .85rem; font-weight: 400; color: var(--muted); }
.featured-scores { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.featured-scores dt { font-size: .7rem; color: var(--muted); }
.featured-scores dd { margin: .2rem 0 0; font-size: 1rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.ad-placement { display: grid; place-items: center; min-height: 90px; margin-block: 1.5rem; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.about-page section + section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.about-page h2 { margin-bottom: 1rem; font-size: 1.5rem; }
.aspect-guide { margin-bottom: 1.5rem; }
.aspect-guide > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.aspect-guide dt { font-weight: 650; }
.aspect-guide dd { margin: 0; color: var(--muted); font-size: .92rem; }
.empty-state { grid-column: 1 / -1; border: 1px dashed #a8ad9f; padding: 2.5rem; background: #eeefe8; }
.empty-state p { margin: .8rem 0 1.2rem; color: var(--muted); max-width: 55ch; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; }
.pagination > :first-child { justify-self: start; }
.pagination > :last-child { justify-self: end; }
.breadcrumb { display: flex; align-items: baseline; flex-wrap: wrap; gap: .7rem; margin-bottom: 2rem; color: var(--muted); font-size: .8rem; }
.shoe-detail { display: grid; grid-template-columns: 1.25fr 1fr; align-items: start; gap: 3rem; }
.shoe-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.shoe-gallery figure { min-width: 0; }
.shoe-gallery figure:first-child { grid-column: 1 / -1; }
.shoe-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #edece5; border: 1px solid var(--line); }
.shoe-gallery figcaption { font-size: .75rem; color: var(--muted); margin-top: .4rem; }
.detail-placeholder { aspect-ratio: 4 / 3; background: #edece5; border: 1px solid var(--line); }
.shoe-summary .eyebrow { color: var(--blue); }
.shoe-summary h1 { margin: .7rem 0 1.2rem; font-size: clamp(2.2rem, 4vw, 3.5rem); }
.shoe-summary > .prose { font-size: .9rem; color: #525850; }
.overall-rating { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.overall-rating > strong { display: block; font-size: 3.5rem; letter-spacing: -.07em; line-height: 1.1; }
.overall-rating > strong > span { font-size: 1.2rem; font-weight: 400; letter-spacing: -.02em; color: var(--muted); }
.overall-rating > a, .overall-rating > p { display: inline-block; margin-top: .6rem; font-size: .85rem; }
.aspect-scores { margin-top: 1.5rem; }
.aspect-scores > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.aspect-scores dd { display: flex; align-items: center; gap: .8rem; margin: 0; font-variant-numeric: tabular-nums; }
meter { appearance: none; width: clamp(4rem, 10vw, 8rem); height: .45rem; border: 0; border-radius: 0; background: #dedfd6; }
meter::-webkit-meter-bar { border: 0; border-radius: 0; background: #dedfd6; height: .45rem; }
meter::-webkit-meter-optimum-value { background: var(--blue); border-radius: 0; }
meter::-moz-meter-bar { background: var(--blue); border-radius: 0; }
.shoe-actions { display: grid; gap: .75rem; margin-top: 1.75rem; }
.favorite-control button, .favorite-control > .button { width: 100%; }
.favorite-control .notice { margin-bottom: .8rem; }
.heading-count { color: var(--muted); font-weight: 400; font-size: .7em; margin-left: .4rem; }
.record-list { border-top: 1px solid var(--ink); }
.record { padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.record-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem 1.5rem; flex-wrap: wrap; }
.record-heading h2 { font-size: 1.4rem; }
.record > .meta { margin-top: .5rem; }
.record > .prose { margin-block: 1.2rem; }
.record > .field-help { margin-top: .6rem; }
.record-heading .meta { margin: 0; }
.review-scores { display: flex; flex-wrap: wrap; gap: .8rem 1.7rem; margin-top: 1.2rem; }
.review-scores > div { display: flex; gap: .5rem; align-items: baseline; }
.review-scores dt { font-size: .75rem; color: var(--muted); }
.review-scores dd { margin: 0; font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.review-scores dd span { font-weight: 400; font-size: .75rem; color: var(--muted); }
.rating-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.verification { min-width: 0; }
.verification-status { margin-top: .5rem; }
.decision-note { margin-block: 1rem; padding: .8rem 1rem; border-left: 2px solid #92998b; background: #eeefe8; font-size: .88rem; }
.decision-note p { margin-top: .4rem; }
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.account-heading > .button { flex-shrink: 0; }
.delete-confirm > summary { color: var(--danger); font-size: .83rem; }
.delete-confirm form { padding: 1rem; border: 1px solid var(--line); font-size: .85rem; }
.delete-confirm form p { margin-bottom: .8rem; }
.signin-layout { flex: 1; display: grid; place-items: center; padding-block: 2rem; }
.signin-panel { width: min(100%, 26rem); aspect-ratio: 1; padding: 2rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.signin-panel h1 { margin-bottom: 1.5rem; font-size: 1.75rem; font-weight: 650; letter-spacing: -.025em; }
.signin-panel > .notice:last-child { margin-bottom: 0; }
.signin-button { width: 100%; gap: 10px; padding-inline: 12px; background: #fff; border-color: #747775; color: #1f1f1f; font-size: 14px; font-weight: 500; line-height: 20px; }
.signin-button:hover { background: #f2f2f2; border-color: #747775; color: #1f1f1f; }
.signin-button img { flex: 0 0 20px; }
.nav-count { display: inline-block; margin-left: .25rem; padding: .1rem .4rem; background: #e5e7dd; color: #4b5147; font-size: .7rem; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; padding: 1.2rem 0; border-block: 1px solid var(--line); margin-bottom: 1.5rem; }
.filter-bar > .field { min-width: 12rem; }
.filter-bar > .meta { margin: 0 0 .7rem auto; }
.request-decisions { padding: .25rem 1.25rem; border: 1px solid var(--line); background: var(--surface); }
.request-decisions > details + details { border-top: 1px solid var(--line); }
.admin-form { display: grid; gap: 1.25rem; padding-bottom: 1.5rem; }
.admin-form > button { justify-self: start; }
.list-scroll { position: relative; width: 100%; overflow-x: auto; border-top: 1px solid var(--ink); }
/* Shared tracks keep headers and disclosures aligned, including while scrolling. */
.workspace-list { --list-columns: minmax(16rem, 1fr) 8rem 7rem 2rem; min-width: 38rem; }
.list-with-person { --list-columns: minmax(14rem, 1fr) minmax(12rem, .8fr) 8rem 7rem 2rem; min-width: 50rem; }
.favorites-list { --list-columns: minmax(16rem, 1fr) 6rem 13rem; min-width: 39rem; }
.shoes-list { --list-columns: minmax(16rem, 1fr) 5rem 4rem 7rem 9rem; min-width: 47rem; }
.photos-list { --list-columns: minmax(0, 1fr) 2rem; min-width: 0; }
.users-list { --list-columns: minmax(12rem, 1.35fr) 7rem 6rem minmax(7rem, .7fr) minmax(12rem, 1fr); min-width: 50rem; }
.list-heading, .list-row { display: grid; grid-template-columns: var(--list-columns); gap: 1rem; align-items: center; padding: .5rem .75rem; }
.list-heading { min-height: 40px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.list-entry { border-bottom: 1px solid var(--line); }
.list-row { min-height: 54px; margin: 0; font-size: .85rem; font-weight: 400; line-height: 1.5; list-style: none; }
.list-row::-webkit-details-marker { display: none; }
.list-row::marker { content: ""; }
.list-row > * { min-width: 0; font-variant-numeric: tabular-nums; }
.list-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row > div { overflow-wrap: anywhere; }
.list-row .list-primary { font-weight: 600; }
.list-primary > a { display: flex; align-items: center; min-height: 44px; }
.list-row .meta { display: block; font-size: .75rem; font-weight: 400; }
.list-row p.meta { margin-top: .5rem; }
.list-line { display: block; }
summary.list-row:hover, .list-entry[open] > .list-row { background: var(--blue-wash); color: var(--ink); }
.list-entry[open] > .list-row { margin-bottom: 0; }
.list-row:focus-visible { outline-offset: -3px; }
.list-toggle { display: flex; align-items: center; justify-content: flex-end; min-height: 1.5rem; color: var(--blue); }
.list-toggle::after { content: ""; width: .45rem; height: .45rem; flex-shrink: 0; margin-right: .2rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.15rem) rotate(45deg); }
.list-entry[open] > .list-row .list-toggle::after { transform: translateY(.1rem) rotate(225deg); }
.list-details { display: grid; justify-items: start; gap: 1rem; padding: 1.25rem .75rem; border-top: 1px solid var(--line); background: var(--surface); overflow-wrap: anywhere; }
.list-details > * { min-width: 0; max-width: 100%; }
.list-details > p, .list-details > .review-scores, .list-details > .decision-note { margin: 0; }
.list-details > .request-decisions { width: 100%; }
.ban-form { display: grid; justify-items: start; gap: .5rem; }
.ban-form .field-help { font-size: .75rem; }
.photo-shoe { width: 100%; }
.photo-upload { margin-bottom: 1.5rem; padding: 1.5rem; }
.photo-upload > button { justify-self: start; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
/* Shared row heights keep badges and wrapped metadata from offsetting the controls. */
.photo-card { display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: 0; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.photo-preview { display: block; border-bottom: 1px solid var(--line); background: #edece5; }
.photo-preview img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.photo-card-body { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; padding: 1.5rem; }
.photo-card-body > .record-heading { align-items: start; align-content: start; min-height: 1.8rem; }
.photo-card-body h3 { font-size: 1rem; }
.photo-card-body > .meta { margin-top: .6rem; font-size: .78rem; }
.alt-form { display: grid; gap: .8rem; margin-block: 1.3rem; }
.alt-form > button { justify-self: start; }
.photo-actions { display: flex; flex-wrap: wrap; gap: .7rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.photo-card .delete-confirm { margin-top: .7rem; }

@media (forced-colors: active) {
  select { appearance: auto; background-image: none; padding-right: .75rem; }
}

@media (max-width: 1000px) {
  .shell { width: calc(100% - 3rem); }
  .header-inner { gap: 1rem; }
  .workspace { gap: 1.5rem; }
  .shoe-detail { gap: 2rem; }
  .form-panel { padding: 1.5rem; }
  .featured-shoe-body { padding: 1.1rem; }
  .featured-scores { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shoe-grid { gap: 1rem; }
}

@media (max-width: 760px) {
  .main-content { padding-top: .75rem; padding-bottom: 2rem; }
  .public-sheet { padding: 1.1rem; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .workspace-sidebar { padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
  .workspace-label { margin-bottom: .3rem; }
  .workspace-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .2rem; }
  .workspace-nav a { justify-content: center; padding-inline: .4rem; border-left: 0; border-bottom: 3px solid transparent; font-size: .82rem; }
  .catalogue-filters { grid-template-columns: minmax(0, 1fr) auto; }
  .filters-disclosure > summary { text-align: center; }
  .featured-shoe { grid-template-columns: minmax(0, 1fr); }
  .featured-shoe-image { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 2 / 1; }
  .featured-shoe-image img { height: auto; max-height: 260px; aspect-ratio: 2 / 1; }
  .featured-scores { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .shoe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shoe-detail { grid-template-columns: 1fr; }
  .shoe-gallery { gap: .75rem; }
  .shoe-gallery figure:first-child img { max-height: 450px; }
  .shoe-summary { padding-top: .5rem; }
  .shoe-summary h1 { font-size: 3rem; }
  meter { width: 9rem; }
  .account-heading { flex-direction: column; align-items: start; gap: 1.2rem; }
  .section { margin-top: 2.5rem; }
  .photo-grid { gap: 1rem; }
  .photo-card-body { padding: 1rem; }
}

@media (max-width: 480px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 76px; gap: .75rem; }
  .wordmark { font-size: 1.2rem; }
  .account-controls { gap: 0 .7rem; }
  .account-controls a, .account-controls button { font-size: .75rem; }
  .file-tabs { gap: .25rem; padding-right: 0; }
  .file-tabs a { padding-inline: .75rem; font-size: .75rem; }
  .public-sheet { padding: .85rem; }
  .shoe-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .shoe-card-image, .shoe-card-image img { aspect-ratio: 3 / 2; }
  .shoe-card h3 { font-size: 1.4rem; }
  .shoe-card-rating { margin-top: 1rem; }
  .catalogue-filters { gap: .6rem; }
  .catalogue-search-submit { padding-inline: .65rem; font-size: .8rem; }
  .filters-disclosure > summary { padding-inline: .6rem; font-size: .8rem; }
  .featured-shoe-body { padding: 1rem; }
  .featured-scores { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aspect-guide > div { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .form-panel, .signin-panel { padding: 1.2rem; }
  .form-grid, .rating-fields, .photo-grid { grid-template-columns: 1fr; }
  .form-panel .actions { align-items: stretch; flex-direction: column; }
  .form-panel .actions > a { align-self: start; }
  .rating-fields { gap: 1rem; }
  .page-heading { padding-bottom: 1.5rem; }
  .record { padding-block: 1.5rem; }
  .record-heading { gap: .7rem; }
  .review-scores { gap: .6rem 1.1rem; }
  .review-scores > div { flex-basis: calc(50% - .6rem); justify-content: space-between; }
  .empty-state { padding: 1.5rem; }
  .filter-bar > .field { flex: 1; min-width: 10rem; }
  .filter-bar > .meta { flex-basis: 100%; margin: 0; }
  .request-decisions { padding-inline: 1rem; }
  .photo-upload { padding: 1rem; }
  .photo-upload > button { width: 100%; }
  .pagination { gap: .75rem; }
  .pagination .button { padding-inline: .8rem; }
}
