:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --text: #111827;
  --muted: #667085;
  --line: #d8dde5;
  --primary: #111827;
  --primary-contrast: #ffffff;
  --accent: #f59e0b;
  --success: #0f8a5f;
  --danger: #c9362b;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.09);
  --radius: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, "Noto Sans SC", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); line-height: 1.55; }
.safe-top { padding-top: max(14px, var(--safe-top)); }
.safe-bottom { padding-bottom: max(12px, var(--safe-bottom)); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  padding-left: 18px;
  padding-right: 18px;
  padding-bottom: 14px;
  color: #fff;
  background: rgba(17, 24, 39, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.topbar h1 { margin: 0; font-size: clamp(1.18rem, 4.6vw, 1.65rem); line-height: 1.25; }
.topbar .muted { margin: 4px 0 0; color: #c8ced9; font-size: .86rem; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-back { min-height: 40px; display: inline-flex; align-items: center; padding: 7px 9px; color: #fff; border-radius: 10px; background: rgba(255,255,255,.11); font-size: .76rem; font-weight: 800; text-decoration: none; }
.eyebrow { margin: 0 0 4px; font-size: .68rem; letter-spacing: .16em; color: #fbbf24; font-weight: 800; }

.page-shell { width: min(100%, 1180px); margin: 0 auto; padding: 16px 14px 120px; }
.panel {
  background: var(--surface);
  border: 1px solid rgba(216,221,229,.9);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.panel h2, .panel h3 { margin-top: 0; }
.center-panel { text-align: center; padding: 42px 20px; }
.step-label { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; background: #fff4d6; color: #8a5200; font-weight: 800; font-size: .77rem; margin-bottom: 9px; }

.button, .upload-button, .icon-button, .viewer-button, .filter-chip, .text-button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  touch-action: manipulation;
}
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; font-weight: 800; text-decoration: none; }
.button.primary { color: var(--primary-contrast); background: var(--primary); }
.button.secondary { color: var(--text); background: var(--surface-2); border: 1px solid var(--line); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button.full { width: 100%; }
.button.compact { min-height: 40px; padding: 9px 13px; border-radius: 10px; font-size: .9rem; }
.text-button { color: #295ba7; background: transparent; padding: 7px 4px; font-weight: 750; }
.text-button.small { min-height: 32px; font-size: .8rem; }
.icon-button { width: 44px; background: rgba(255,255,255,.13); color: #fff; font-size: 1.15rem; font-weight: 900; }

.stack-form { display: grid; gap: 15px; }
label > span { display: block; margin-bottom: 7px; font-weight: 750; font-size: .9rem; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  color: var(--text);
  background: #fff;
  outline: none;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #667085; box-shadow: 0 0 0 3px rgba(102,112,133,.13); }
.check-row { display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: start; color: #495365; font-size: .84rem; line-height: 1.5; }
.check-row input { width: 21px; min-height: 21px; margin: 2px 0 0; }
.check-row span { margin: 0; font-weight: 500; }

.upload-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 15px 0; }
.upload-button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-height: 128px;
  padding: 14px 8px;
  text-align: center;
  background: #f8fafc;
  border: 1.5px dashed #abb4c2;
}
.upload-button:active { background: #eef1f5; }
.upload-button strong { font-size: .91rem; }
.upload-button small { color: var(--muted); }
.upload-icon { font-size: 1.65rem; line-height: 1; }
.file-list { margin: 12px 0; display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: #f7f8fa; color: #414b5b; font-size: .84rem; }
.browse-all-box { display: grid; gap: 13px; padding: 16px; margin-bottom: 16px; border: 1px solid #c9d7e8; border-radius: 15px; background: #f2f7ff; }
.browse-all-box strong { display: block; margin-bottom: 5px; font-size: 1.02rem; }
.browse-all-box span { display: block; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.option-divider { display: flex; align-items: center; gap: 10px; margin: 5px 0 18px; color: var(--muted); font-size: .76rem; text-align: center; }
.option-divider::before, .option-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.face-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 15px 0; }
.face-card { position: relative; border: 2px solid transparent; border-radius: 16px; padding: 8px; background: #f2f4f7; cursor: pointer; }
.face-card.selected { border-color: var(--primary); background: #fff7e6; }
.face-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 11px; }
.face-card .face-check { position: absolute; top: 13px; right: 13px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); border: 2px solid var(--line); font-weight: 900; }
.face-card.selected .face-check { color: #fff; background: var(--primary); border-color: var(--primary); }
.face-card p { margin: 8px 2px 2px; font-size: .75rem; color: var(--muted); }
.face-card .warning { color: #996000; }

.result-heading, .section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 20px 4px 12px; }
.result-heading h2, .section-title-row h2 { margin: 0; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 1px 13px; scrollbar-width: none; position: sticky; top: 80px; z-index: 20; background: linear-gradient(var(--bg) 75%, rgba(244,245,247,0)); }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; min-height: 38px; padding: 8px 12px; color: #4d5868; background: #e9ecf0; font-weight: 750; }
.filter-chip.active { color: #fff; background: var(--primary); }
.filter-chip span { opacity: .8; }

.photo-grid { display: block; min-height: 1px; }
.photo-window { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.virtual-spacer { width: 100%; pointer-events: none; }
.photo-card { position: relative; min-width: 0; border: 0; padding: 0; background: #dfe3e8; border-radius: 9px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; }
.photo-card img { width: 100%; height: 100%; object-fit: contain; display: block; background: #e7eaee; transition: opacity .18s ease; }
.photo-card.loading img { opacity: .25; }
.photo-card.load-failed img { cursor: pointer; opacity: 1; }
.photo-card .score-badge { position: absolute; left: 6px; bottom: 6px; min-height: 23px; padding: 3px 7px; border-radius: 999px; color: #fff; background: rgba(17,24,39,.76); font-size: .68rem; font-weight: 800; backdrop-filter: blur(8px); }
.photo-card .select-badge { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 31px; height: 31px; border: 2px solid rgba(255,255,255,.92); border-radius: 50%; color: transparent; background: rgba(17,24,39,.28); box-shadow: 0 1px 7px rgba(0,0,0,.2); }
.photo-card.selected .select-badge { color: #fff; background: var(--accent); border-color: #fff; }
.photo-card.selected { outline: 3px solid var(--accent); outline-offset: -3px; }

.selection-bar {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(17,24,39,.96);
  backdrop-filter: blur(15px);
  box-shadow: 0 -8px 30px rgba(17,24,39,.18);
}
.selection-bar .text-button { color: #f8cb68; }
.selection-actions { display: flex; gap: 8px; }
.selection-bar .secondary { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.12); }

.viewer { position: fixed; inset: 0; z-index: 100; color: #fff; background: #05070a; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.viewer-top, .viewer-bottom { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding-left: 12px; padding-right: 12px; background: rgba(5,7,10,.86); }
.viewer-bottom { gap: 12px; justify-content: center; }
.viewer-save-actions { display: flex; align-items: center; gap: 8px; }
.viewer-save-settings { min-height: 40px; border: 0; padding: 0 6px; color: #fff; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.viewer-button { min-width: 44px; padding: 6px 11px; color: #fff; background: rgba(255,255,255,.13); font-size: 1.55rem; }
.viewer-button.text { font-size: .9rem; font-weight: 800; }
.viewer-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; touch-action: none; cursor: grab; }
.viewer-stage.zoomed { cursor: grabbing; }
.viewer-stage img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transform-origin: center; will-change: transform; }
.viewer-nav { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 44px; height: 70px; border: 0; color: #fff; background: rgba(5,7,10,.22); font-size: 2.4rem; }
.viewer-nav.prev { left: 0; border-radius: 0 14px 14px 0; }
.viewer-nav.next { right: 0; border-radius: 14px 0 0 14px; }
.viewer .spinner { position: absolute; }

.dialog-card { width: min(calc(100vw - 28px), 520px); border: 0; border-radius: 18px; padding: 22px; color: var(--text); box-shadow: 0 25px 80px rgba(0,0,0,.34); }
.dialog-card::backdrop { background: rgba(17,24,39,.67); backdrop-filter: blur(3px); }
.dialog-card form { position: relative; }
.dialog-close { position: absolute; right: -8px; top: -10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #eef0f3; font-size: 1.5rem; }
.dialog-card ol { padding-left: 22px; line-height: 1.65; }
.save-quality-options { display: grid; gap: 9px; margin: 14px 0; padding: 0; border: 0; }
.save-quality-options legend { margin-bottom: 7px; font-weight: 800; }
.save-quality-option { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; cursor: pointer; }
.save-quality-option:has(input:checked) { border-color: var(--primary); background: #eef4ff; box-shadow: 0 0 0 1px var(--primary); }
.save-quality-option input { margin-top: 4px; accent-color: var(--primary); }
.save-quality-option span { display: grid; gap: 3px; }
.save-quality-option small { color: var(--muted); line-height: 1.45; }
.save-quality-options .small-copy { margin: 2px 2px 0; }
.download-links { display: grid; gap: 10px; margin-top: 16px; }
.dialog-secondary { margin-top: 10px; }
.small-copy { font-size: .84rem; }
.share-progress { height: 8px; margin: 16px 0 12px; overflow: hidden; border-radius: 999px; background: #e1e5eb; }
.share-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--primary); transition: width .2s ease; }
.face-settings-panel { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.settings-heading { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.settings-heading h4, .calibration-report h4 { margin: 0 0 5px; }
.face-settings-form { margin-top: 14px; }
.face-settings-form label > small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.45; }
.calibration-switch { display: flex; align-items: start; gap: 10px; }
.calibration-switch input { width: auto; margin-top: 4px; }
.calibration-switch span { display: grid; gap: 3px; }
.calibration-report { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
.calibration-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.calibration-table th, .calibration-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.calibration-table th:first-child, .calibration-table td:first-child { text-align: left; }
.calibration-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 14px; padding: 12px; border: 1px solid #d7a600; border-radius: 12px; background: #fff9df; }
.calibration-tools p { margin: 3px 0 0; }
.calibration-actions { position: absolute; z-index: 3; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 5px; }
.calibration-actions button { flex: 1; min-height: 34px; border: 1px solid rgba(255,255,255,.75); border-radius: 9px; padding: 5px 6px; color: #fff; background: rgba(15,23,42,.86); font-size: .74rem; font-weight: 800; }
.calibration-actions button.active.match { background: #087f5b; }
.calibration-actions button.active.not-match { background: #b42318; }
.photo-card.calibration-labeled-match { box-shadow: inset 0 0 0 3px #0a9b70; }
.photo-card.calibration-labeled-not-match { opacity: .66; }

.toast { position: fixed; z-index: 200; left: 50%; bottom: calc(92px + var(--safe-bottom)); transform: translateX(-50%); width: min(calc(100vw - 30px), 460px); padding: 12px 15px; color: #fff; background: rgba(17,24,39,.94); border-radius: 12px; text-align: center; box-shadow: var(--shadow); }
.spinner { width: 32px; height: 32px; margin: 0 auto 12px; border: 3px solid #d5dae2; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
.spinner.light { border-color: rgba(255,255,255,.28); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.home-page { min-height: 100dvh; display: grid; place-items: center; padding: 18px; }
.home-card { width: min(100%, 470px); padding: 36px 24px; border-radius: 24px; background: #fff; text-align: center; box-shadow: var(--shadow); }
.home-card h1 { margin: 8px 0; }
.home-card p { color: var(--muted); margin-bottom: 24px; }
.brand-mark { font-size: 3.2rem; }

.collection-shell { padding-bottom: 60px; }
.collection-hero { position: relative; min-height: 210px; margin-bottom: 22px; overflow: hidden; border-radius: 20px; background: #1f2937; box-shadow: var(--shadow); }
.collection-hero img { width: 100%; height: clamp(210px, 38vw, 390px); display: block; object-fit: cover; }
.collection-hero-shade { position: absolute; inset: auto 0 0; padding: 45px 18px 16px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.collection-hero-shade p { max-width: 760px; margin: 0; line-height: 1.55; font-weight: 650; }
.collection-list-heading { align-items: center; }
.collection-list-heading h2 { margin: 2px 0 0; }
.eyebrow.dark { color: #9a5d00; }
.collection-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.collection-card { min-width: 0; padding: 0; overflow: hidden; color: var(--text); border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); text-align: left; cursor: pointer; }
.collection-card:disabled { opacity: .62; cursor: wait; }
.collection-card-media { position: relative; height: 190px; display: grid; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(135deg, #273449, #667085); font-size: 1.1rem; font-weight: 900; letter-spacing: .14em; }
.collection-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .2s ease; }
.collection-pinned { position: absolute; top: 10px; left: 10px; padding: 5px 9px; border-radius: 999px; color: #5c3900; background: #ffd86b; font-size: .7rem; font-weight: 900; letter-spacing: 0; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.collection-card-body { min-height: 150px; display: grid; align-content: start; gap: 5px; padding: 15px 16px; }
.collection-card-body strong { font-size: 1.08rem; line-height: 1.4; }
.collection-card-date { color: #8a5200; font-size: .78rem; font-weight: 850; }
.collection-card-open { align-self: end; margin-top: 8px; color: #295ba7; font-size: .82rem; font-weight: 850; }

.admin-shell { padding-bottom: 60px; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.form-grid { display: grid; gap: 13px; }
.form-submit { align-self: end; }
.admin-album-list { display: grid; gap: 14px; }
.admin-collection-list { display: grid; gap: 14px; margin-bottom: 26px; }
.admin-album-card { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.admin-album-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.admin-album-head h3 { margin: 0 0 4px; }
.status-badge { display: inline-flex; min-height: 27px; align-items: center; padding: 4px 9px; border-radius: 999px; background: #e9edf2; font-size: .72rem; font-weight: 850; }
.status-badge.READY { color: #075b40; background: #d9f4e9; }
.status-badge.INDEXING, .status-badge.SYNCING { color: #174a86; background: #e2efff; }
.status-badge.ERROR { color: #8d1f18; background: #fde3e0; }
.album-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 13px 0; }
.stat-box { padding: 10px; border-radius: 11px; background: #f3f5f7; text-align: center; }
.stat-box strong { display: block; font-size: 1.08rem; }
.stat-box span { color: var(--muted); font-size: .72rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.danger-button { color: #9b1c15 !important; background: #fff0ef !important; border-color: #efc3bf !important; }
.checkbox-row { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 9px; }
.checkbox-row > input { width: 21px; min-height: 21px; margin: 2px 0 0; }
.checkbox-row > span { display: grid; gap: 3px; margin: 0; }
.checkbox-row small, label > small { color: var(--muted); line-height: 1.45; }
.collection-edit-form { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.collection-album-fieldset { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.collection-album-fieldset legend { padding: 0 5px; font-weight: 800; }
.collection-album-options { display: grid; gap: 8px; }
.collection-album-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 9px 10px; border-radius: 10px; background: #f4f6f8; }
.collection-album-option.unpublished { opacity: .65; }
.collection-album-option > label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start; min-width: 0; }
.collection-album-option input { width: 20px; min-height: 20px; margin: 1px 0 0; }
.collection-album-option label > span { display: grid; gap: 2px; min-width: 0; margin: 0; }
.collection-album-option small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.collection-album-option .pin-option { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.active-job-panel { margin: 13px 0; padding: 14px; border: 1px solid #bed8f8; border-radius: 13px; background: #f2f7ff; }
.active-job-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.active-job-head strong { font-size: .92rem; }
.active-job-head span { flex: none; color: #174a86; font-weight: 850; }
.active-job-count { margin-top: 9px; font-size: .84rem; }
.active-job-eta { margin-top: 5px; color: #173f70; font-size: .8rem; font-weight: 700; line-height: 1.5; }
.active-job-breakdown { margin-top: 4px; color: var(--muted); font-size: .76rem; }
.active-job-note { margin-top: 5px; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.active-job-panel .job-actions { margin-top: 10px; }
.job-list { margin-top: 12px; display: grid; gap: 8px; }
.job-row { padding: 10px; border-radius: 10px; background: #f5f6f8; font-size: .78rem; }
.job-progress { height: 7px; margin-top: 6px; border-radius: 999px; overflow: hidden; background: #dfe3e8; }
.job-progress.large { height: 11px; margin-top: 10px; background: #d7e4f3; }
.job-progress span { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width .35s ease; }
.job-progress.indeterminate span { animation: job-progress-slide 1.4s ease-in-out infinite alternate; }

@keyframes job-progress-slide {
  from { transform: translateX(-70%); }
  to { transform: translateX(190%); }
}

@media (min-width: 600px) {
  .page-shell { padding-left: 22px; padding-right: 22px; }
  .photo-window { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .face-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form-grid .full-span { grid-column: 1 / -1; }
  .filter-row { top: 86px; }
  .browse-all-box { grid-template-columns: 1fr auto; align-items: center; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .topbar { padding-left: max(28px, calc((100vw - 1180px) / 2)); padding-right: max(28px, calc((100vw - 1180px) / 2)); }
  .photo-window { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
  .panel { padding: 26px; }
  .upload-actions { max-width: 660px; }
  .selection-bar { left: 50%; right: auto; width: min(760px, calc(100vw - 40px)); transform: translateX(-50%); bottom: 18px; border-radius: 16px; padding-bottom: 10px; }
  .admin-album-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-collection-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .photo-window { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (hover: hover) {
  .button:hover, .filter-chip:hover, .upload-button:hover { filter: brightness(.96); }
  .photo-card:hover img { transform: scale(1.015); }
  .collection-card:hover img { transform: scale(1.025); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
