.gallery-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; margin-top: 1rem; }
.thumb { padding: 0; border: 1px solid var(--line); background: var(--bg-2); border-radius: 14px; overflow: hidden; cursor: pointer; }
.thumb.is-active { border-color: var(--gold); }
.thumb img, .compare-photo { width: 100%; height: 92px; object-fit: cover; }
.compare-photo { height: 120px; border-radius: 12px; }
.admin-form, .job-panel, .admin-car { padding: 1.1rem; margin: 1rem 0; }
.fold-toggle {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 0;
border: 0;
background: transparent;
color: inherit;
text-align: left;
cursor: pointer;
}
.fold-toggle h2 { margin: 0; }
.fold-mark {
width: 1.6rem;
height: 1.6rem;
flex: none;
border: 1px solid var(--gold);
border-radius: 999px;
position: relative;
}
.fold-mark::before,
.fold-mark::after {
content: "";
position: absolute;
left: 0.4rem;
right: 0.4rem;
top: 0.7rem;
height: 1px;
background: var(--gold);
}
.fold-mark::after { transform: rotate(90deg); }
.fold-toggle[aria-expanded="true"] .fold-mark::after { display: none; }
.fold-body { margin-top: 0.9rem; }
.admin-form.reveal,
.admin-fields > .reveal {
  opacity: 1;
  transform: none;
  filter: none;
}
.admin-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
.admin-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.shot-body p { color: var(--muted); font-size: 0.82rem; }
.admin-form .inline-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
  margin-top: 1.15rem;
  position: relative;
  z-index: 1;
}
.admin-form .inline-actions .btn {
  width: 100%;
  min-width: 0;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}
.admin-form .notice:empty { display: none; }
.admin-fields input, .admin-fields select {
  width: 100%;
  margin-top: 0.35rem;
  min-height: 46px;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background-color: var(--bg);
  color: var(--text);
  color-scheme: dark;
}
.admin-fields select {
  appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23f5c518' d='M1 1.2 6 6.8 11 1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px 8px;
  cursor: pointer;
}
.admin-fields select:focus, .admin-fields input:focus {
  outline: none;
  border-color: rgba(245, 197, 24, 0.7);
}
.admin-fields option, .admin-fields optgroup {
  background: #181818;
  color: #ffffff;
}
.job-head, .admin-car-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.admin-car-head .inline-actions { justify-content: flex-end; flex: 1 1 16rem; }
.bar { height: 8px; margin: 0.8rem 0; background: #111; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--gold); }
.shot-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.7rem; margin-top: 1rem; }
.shot { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.shot.is-cover { border-color: var(--gold); }
.shot img, .empty-shot { width: 100%; height: 140px; object-fit: cover; }
.empty-shot { display: grid; place-items: center; color: var(--muted); background: #151515; }
.shot-body { padding: 0.7rem; }
.shot-actions { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.45rem; }
.shot-actions button, .file-btn { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 9px; padding: 0.25rem 0.4rem; font-size: 0.72rem; cursor: pointer; }
.file-btn input { display: none; }
.user-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.9rem 1rem; margin: 0.6rem 0; }
.shot-pick { margin-top: 1rem; }
.pick-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pick-head b { color: var(--gold); }
.angle-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.55rem; margin-top: 0.7rem; }
.angle-card { display: flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 14px; background: #111; color: var(--text); cursor: pointer; }
.angle-card.is-on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.angle-card span { font-size: 0.82rem; }
.angle-card input { accent-color: #f5c518; }
.notice.is-bad { color: #ffb4b4; }
.scan-stats { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0.8rem 0; }
.scan-stats b { color: var(--gold); }
.scan-card { display: grid; grid-template-columns: 240px 1fr; gap: 0.9rem; align-items: start; padding: 0.8rem; margin: 0.6rem 0; }
.scan-card img { width: 240px; height: 150px; object-fit: cover; border-radius: 12px; background: #151515; }
.scan-card p { margin: 0.25rem 0 0; }
.scan-file { color: var(--gold); }
.scan-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; margin-top: 0.7rem; }
.scan-picks select, .scan-picks button { width: 100%; }
.scan-picks select {
appearance: none;
min-height: 46px;
padding: 0.6rem 2.2rem 0.6rem 0.8rem;
border-radius: 12px;
border: 1px solid var(--line);
background-color: #181818;
color: #ffffff;
color-scheme: dark;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23f5c518' d='M1 1.2 6 6.8 11 1.2'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 0.75rem center;
background-size: 12px 8px;
cursor: pointer;
}
.scan-picks select:focus { outline: none; border-color: rgba(245, 197, 24, 0.7); }
.scan-picks option { background: #181818; color: #ffffff; }
.scan-note { min-height: 1.2em; }
.gallery-admin-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin:0 0 1.25rem; }
.gallery-admin-hero h1 { margin:.1rem 0 .35rem; }
.gallery-admin-hero .lede { margin:0; }
.gallery-admin-hero .notice { max-width:24rem; margin:0; }
.gallery-library { margin:1rem 0; }
.gallery-library-head { display:flex; align-items:flex-end; justify-content:space-between; gap:1.2rem; margin-bottom:1rem; }
.gallery-library-head h2 { margin:0; }
.gallery-library-head > div:first-child > .muted { margin:.4rem 0 0; }
.gallery-filters { display:grid; grid-template-columns:repeat(2,minmax(10rem,1fr)); gap:.55rem; min-width:min(100%,25rem); }
.gallery-filters label { display:grid; gap:.25rem; color:var(--muted); font-size:.8rem; }
.gallery-filters select { min-height:42px; padding:.55rem .7rem; border:1px solid var(--line); border-radius:11px; background:#111; color:var(--text); color-scheme:dark; }
.gallery-filters .muted { grid-column:1/-1; margin:0; text-align:right; }
.gallery-message { min-height:1.2rem; margin:.5rem 0; color:var(--muted); }
.gallery-message:empty { display:none; }
.gallery-library > .admin-list { display:grid; gap:.65rem; }
.admin-car { padding:0; margin:0; overflow:hidden; }
.admin-car > summary { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.9rem 1rem; cursor:pointer; list-style:none; }
.admin-car > summary::-webkit-details-marker { display:none; }
.admin-car > summary h3 { margin:.1rem 0; }
.admin-car > summary p { margin:.15rem 0; }
.admin-car[open] > summary { border-bottom:1px solid var(--line); }
.admin-car[open] > summary .fold-mark::after { display:none; }
.gallery-car-body { padding:1rem; }
.gallery-car-body > .muted { margin:0 0 .65rem; }
.gallery-car-body .inline-actions { margin-top:.7rem; }
.shot-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.7rem; }
.shot { min-width:0; background:var(--bg); border:1px solid var(--line); border-radius:15px; overflow:hidden; }
.shot img, .empty-shot { width:100%; height:135px; object-fit:cover; }
.empty-shot { display:grid; place-items:center; color:var(--muted); background:#151515; font-size:.8rem; }
.shot-body { padding:.65rem; }
.shot-body p { color:var(--muted); font-size:.78rem; }
.shot-actions { display:flex; flex-wrap:wrap; gap:.3rem; }
.shot-actions button, .file-btn { border:1px solid var(--line); background:transparent; color:var(--text); border-radius:9px; padding:.25rem .4rem; font-size:.7rem; cursor:pointer; }
.file-btn input { display:none; }
@media (max-width: 820px) {
  .gallery-admin-hero, .gallery-library-head { align-items:flex-start; flex-direction:column; }
  .gallery-admin-hero .notice { max-width:none; }
  .gallery-filters { width:100%; }
}
@media (max-width: 560px) {
  .gallery-filters { grid-template-columns:1fr; }
  .gallery-filters .muted { text-align:left; }
  .shot-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
.shot-grid, .gallery-strip, .admin-fields, .angle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .admin-fields, .admin-form .inline-actions { grid-template-columns: 1fr; }
}
