:root { --ink: #26322f; --brand: #254e43; --muted: #596762; --surface: #fff; --background: #f5f5ef; --border: #cbd3ca; --radius: .75rem; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--ink); font: 1rem/1.5 system-ui, sans-serif; }
a { color: var(--brand); }
main { max-width: 74rem; margin: auto; padding: 1.75rem 1.25rem 5rem; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.2; margin: .25rem 0 1rem; }
h2 { font-size: 1.4rem; margin-top: 0; }
h3 { font-size: 1.25rem; margin: .75rem 0; }
p { margin: .75rem 0; }
.site-header { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 5%; background: var(--brand); color: var(--surface); }
.site-header a { color: inherit; text-decoration: none; font-weight: 650; }
.site-header span { font-size: .85rem; align-self: center; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.eyebrow { color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.intro { max-width: 47rem; margin-bottom: 1.5rem; }
nav, .actions, .bulk-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
nav { margin-bottom: 1rem; }
nav a, .button, button { display: inline-block; min-height: 2.8rem; padding: .7rem 1rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--surface); color: var(--brand); font: 600 1rem/1.4 system-ui, sans-serif; text-decoration: none; cursor: pointer; text-align: center; }
button:hover, .button:hover, nav a:hover { border-color: var(--brand); }
.primary, nav [aria-current="page"] { background: var(--brand); color: var(--surface); }
.quiet { background: transparent; }
:focus-visible { outline: 3px solid #a36213; outline-offset: 3px; }
.skip-link { position: absolute; top: -5rem; left: 1rem; background: white; padding: .75rem; z-index: 10; }
.skip-link:focus { top: .5rem; }
.count { display: inline-block; padding: .1rem .4rem; border: 1px solid currentColor; border-radius: 1rem; font-size: .8rem; margin-left: .2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.625rem, 1fr)); gap: 1.25rem; align-items: start; }
.card, .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.panel { padding: 1.5rem; margin: 1.25rem 0; }
.upload-panel { margin-bottom: 2.5rem; border-top: 4px solid var(--brand); scroll-margin-top: 1rem; }
.upload-panel form { max-width: 52rem; }
.card img { display: block; width: 100%; height: 19.375rem; object-fit: contain; background: #f0f1ec; }
.card-body { padding: 1rem; }
.card a { text-decoration: none; }
.card-link { display: inline-block; font-weight: 650; padding: .5rem 0; }
.collection-card:hover { border-color: var(--brand); }
.collection-card p { color: var(--muted); }
.photo-placeholder { height: 19.375rem; display: grid; place-items: center; background: #f0f1ec; color: var(--muted); }
.muted { color: var(--muted); font-size: .875rem; }
.status { display: inline-block; background: #e8efe7; border-radius: 1.25rem; padding: .3125rem .75rem; font-size: .875rem; }
label { display: block; margin: .75rem 0; font-weight: 600; }
input, select { width: 100%; margin-top: .35rem; padding: .75rem; border: 1px solid #adbbae; border-radius: .375rem; background: #fff; color: var(--ink); font: inherit; }
input[type="radio"] { width: auto; margin: 0 .5rem 0 0; accent-color: var(--brand); }
input[type="file"] { border-style: dashed; padding: 1rem; background: #fafbf8; }
input::file-selector-button { padding: .5rem .75rem; margin-right: .75rem; border: 1px solid var(--border); border-radius: .25rem; background: #fff; cursor: pointer; }
fieldset { border: 0; padding: 0; }
legend { font-size: .875rem; font-weight: 600; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.filter-form { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin-bottom: 1.5rem; }
.filter-form label { flex: 1 1 15rem; margin: 0; }
.filter-form a { padding: .75rem .25rem; }
.actions { position: sticky; bottom: 0; align-items: center; background: var(--background); border-top: 1px solid var(--border); padding: 1rem 0; margin-top: 1.25rem; z-index: 2; }
.actions [data-save-state] { flex: 1 1 12rem; }
.notice { padding: 1rem; border-left: 4px solid var(--brand); background: #e8efe7; }
.error { border-color: #a02626; background: #fff0ef; }
.error-text, .is-invalid [data-group-summary] { color: #a02626; }
.steps { color: var(--muted); margin-top: 1.5rem; }
.empty { padding: 2rem; text-align: center; grid-column: 1 / -1; margin: 0; }
.photo-link { display: block; position: relative; }
.photo-number { position: absolute; top: .6rem; left: .6rem; min-width: 2rem; padding: .25rem .5rem; border-radius: .35rem; background: var(--brand); color: white; text-align: center; font-weight: 700; }
.enlarge { position: absolute; right: .5rem; bottom: .5rem; padding: .3rem .5rem; background: #fff; border-radius: .3rem; font-size: .8rem; }
.photo-choice { margin: .75rem 0; display: flex; gap: .5rem; }
.photo-choice label { flex: 1; padding: .6rem; margin: .35rem 0 0; border: 1px solid var(--border); border-radius: .35rem; cursor: pointer; }
.photo-choice label:has(input:checked) { background: #e8efe7; border-color: var(--brand); }
.photo-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin: 1rem 0; }
.photo-toolbar p { font-weight: 650; }
.bulk-actions button { font-size: .875rem; }
.is-skipped .photo-link img { opacity: .45; }
.is-skipped .group-control { display: none; }
.is-invalid { border-color: #a02626; }
.group-summary { min-height: 2.6rem; }
.product-preview figure { margin: 0 0 1rem; }
.product-preview figcaption { padding: .4rem 1rem; font-size: .875rem; color: var(--muted); }
@media (max-width: 40rem) {
  .fields, .grid { grid-template-columns: 1fr; }
  .site-header { flex-direction: column; gap: .15rem; }
  .site-header span { align-self: auto; }
  .page-heading { align-items: start; }
  .page-heading .button { font-size: .875rem; white-space: nowrap; }
  .panel { padding: 1rem; }
  nav { gap: .4rem; }
  nav a { font-size: .875rem; padding: .65rem; }
  .actions { gap: .5rem; }
  .actions button, .actions .button { flex: 1 1 auto; }
  .actions [data-save-state] { flex-basis: 100%; }
}
.header-nav { margin: 0; gap: 1rem; align-items: center; }
.header-nav a { min-height: auto; padding: .25rem 0; border: 0; border-radius: 0; background: transparent; color: white; font-size: .9rem; }
.header-nav a:hover { text-decoration: underline; }
