/* Tree Cake Tracker site styles v1 */

:root {
  --pine: #12422f;
  --pine-deep: #0b2c1f;
  --cranberry: #c8102e;
  --cranberry-dark: #a30d25;
  --mint: #e8f1ec;
  --ink: #17231d;
  --muted: #4a5a52;
  --line: #c9d4ce;
  --line-soft: #e2e8e4;
  --page: #f3f7f4;
  --soft: #f7fbf8;
  --focus: #2f8f5b;
  --font-head: Fredoka, system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--page);
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--pine); }
a:hover { color: var(--cranberry); }
h1, h2, h3, legend { font-family: var(--font-head); font-weight: 600; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.only-narrow { display: none; }

/* Header */
.site-header { background: var(--pine); color: #fff; }
.site-header__inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 44px; height: 48px; display: block; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 24px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px; flex-grow: 1; }
.site-nav a { color: #fff; text-decoration: none; padding: 12px 14px; border-radius: 10px; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.site-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.14); font-weight: 600; }
.header-cta {
  background: var(--cranberry); color: #fff; text-decoration: none;
  padding: 13px 20px; border-radius: 999px; font-weight: 600;
}
.header-cta:hover { color: #fff; background: var(--cranberry-dark); }
.header-close {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  color: #fff; border-radius: 10px;
}
.header-close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

/* Footer */
.site-footer { background: var(--pine-deep); color: #dfe9e3; font-size: 14px; margin-top: auto; }
.site-footer__inner {
  max-width: 1200px; margin: 0 auto; padding: 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffb3bf; }

/* Form controls */
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; min-width: 0; }
.hint { font-weight: 400; font-size: 14px; color: var(--muted); margin: 0; }
.input, .select, .textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  min-height: 48px; width: 100%; background: #fff;
}
.select { padding-right: 10px; }
.textarea { resize: vertical; min-height: 96px; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .money[data-invalid="true"] { border-color: var(--cranberry); }

.money {
  display: flex; align-items: center; gap: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; min-height: 52px; padding: 0 14px;
}
.money:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.money__sign { font-size: 20px; color: var(--muted); font-weight: 400; }
.money input {
  font: inherit; font-family: var(--font-head); font-size: 24px; font-weight: 600; color: var(--ink);
  border: 0; outline: none; width: 100%; padding: 8px 0; background: transparent;
}

.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--cranberry); }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; display: block; }
.pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pill span {
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; padding: 10px 18px; min-height: 44px; border-radius: 999px;
  border: 2px solid var(--line); background: #fff; color: var(--pine);
}
.pill input:checked + span { background: var(--pine); border-color: var(--pine); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.pill:hover span { border-color: var(--pine); }

.btn {
  font: inherit; font-weight: 600; border-radius: 999px; min-height: 44px; padding: 10px 18px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--primary { background: var(--cranberry); color: #fff; font-size: 18px; min-height: 52px; padding: 14px 22px; }
.btn--primary:hover:not(:disabled) { background: var(--cranberry-dark); color: #fff; }
.btn--soft { background: var(--mint); color: var(--pine); }
.btn--soft:hover:not(:disabled) { background: #d8e9df; color: var(--pine); }
.btn--outline { background: #fff; color: var(--pine); border-color: var(--pine); }
.btn--outline:hover:not(:disabled) { background: var(--mint); color: var(--pine); }
.btn--link {
  font: inherit; font-weight: 500; color: var(--pine); background: none; border: 0;
  padding: 8px 4px; min-height: 44px; text-decoration: underline; cursor: pointer;
}
.btn--link:hover { color: var(--cranberry); }

.badge { display: inline-block; font-size: 13px; font-weight: 500; padding: 5px 10px; border-radius: 999px; }
.badge--plenty { background: #dff3e6; color: #155c34; }
.badge--some { background: #fff3cd; color: #6e4b00; }
.badge--last-few { background: #fde4e8; color: #a30d25; }
.badge--sold-out { background: #e9ecea; color: #3d4a43; }

.alert {
  margin: 0; padding: 12px 14px; border-radius: 12px;
  background: #fde4e8; color: #7d0a1d; font-weight: 500;
}

/* Report page */
.report-main {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 24px 64px;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start;
}
.report-card {
  flex: 999 1 560px; min-width: 0; background: #fff; border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column; gap: 22px; box-shadow: 0 2px 10px rgba(18, 66, 47, 0.08);
}
.report-head { display: flex; flex-direction: column; gap: 6px; }
.report-head h1, .done h1 { margin: 0; font-size: 40px; line-height: 1.05; }
.lede { margin: 0; color: var(--muted); }

.group { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.group legend { font-size: 20px; padding: 0; margin-bottom: 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-city { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }

/* Store picker */
.picker { display: flex; flex-direction: column; gap: 10px; }
.picker__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search .input { padding-left: 42px; }
.results {
  list-style: none; margin: 0; padding: 6px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; max-height: 380px; overflow-y: auto; box-shadow: 0 6px 20px rgba(18, 66, 47, 0.1);
}
.result {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
}
.result:hover, .result[aria-selected="true"] { background: var(--mint); }
.result__name { font-weight: 600; }
.result__addr { font-size: 14px; color: var(--muted); }
.result__dist { font-size: 13px; color: var(--muted); white-space: nowrap; }
.chosen {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 2px solid var(--pine); border-radius: 14px; background: var(--soft);
}
.chosen__name { font-weight: 600; font-size: 17px; }
.chosen__addr { font-size: 14px; color: var(--muted); }
.manual {
  display: flex; flex-direction: column; gap: 14px; padding: 16px;
  border: 1px solid var(--line-soft); border-radius: 14px; background: var(--soft);
}
.manual .btn--link { align-self: flex-start; }

/* Photo */
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 28px; text-align: center; cursor: pointer;
  border: 2px dashed #9fbfae; border-radius: 16px; background: var(--soft);
}
.drop:hover { border-color: var(--focus); }
.drop:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-chosen { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.photo-chosen img { width: 132px; height: 99px; object-fit: cover; border-radius: 12px; background: var(--mint); }
.photo-chosen__text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.photo-chosen__text .btn--link { padding-left: 0; }

/* Notes and name */
.extras { display: flex; flex-direction: column; gap: 22px; }
.extras-toggle { display: none; align-self: center; }

.submit-row { display: flex; flex-direction: column; gap: 12px; }

/* Side column */
.report-aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.preview {
  background: var(--pine); color: #fff; border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.preview__label { font-size: 14px; color: #bfe0cc; }
.preview__price { font-family: var(--font-head); font-weight: 700; font-size: 64px; line-height: 1; }
.preview__note { font-size: 14px; color: #e3f1e8; margin: 0; }
.preview .badge { align-self: flex-start; }
.tips { background: #fff; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.tips h2 { margin: 0; font-size: 20px; }
.tips p { margin: 0; font-size: 15px; }

/* Thank-you panel */
.done { align-items: flex-start; }
.done p { margin: 0; color: var(--muted); font-size: 17px; }
.done__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Home page */
.page-home { background: #fff; }
.btn--sm { font-size: 16px; min-height: 44px; padding: 10px 18px; }
.btn--light { background: #fff; color: var(--pine); }
.btn--light:hover { background: var(--mint); color: var(--pine); }
.btn--ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; cursor: default; }

.hero { background: var(--pine); color: #fff; padding: 8px 24px 56px; }
.hero__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.hero__text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.hero__kicker { margin: 0; color: #bfe0cc; }
.hero h1 { margin: 0; font-size: 50px; line-height: 1.05; }
.hero__lede { margin: 0; font-size: 17px; color: #e3f1e8; max-width: 520px; }
.hero-card {
  flex: 1 1 420px; background: #fff; color: var(--ink); border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.hero-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hero-card__label { font-weight: 600; color: var(--muted); }
.hero-card__main { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; min-height: 84px; }
.hero-card__price { font-family: var(--font-head); font-weight: 700; font-size: 84px; line-height: 1; color: var(--cranberry); }
.hero-card__store { display: flex; flex-direction: column; gap: 4px; }
.hero-card__store strong { font-size: 18px; }
.hero-card__when { font-size: 13px; color: var(--muted); }
.hero-card__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hero-card__empty strong { font-family: var(--font-head); font-size: 26px; font-weight: 600; }
.hero-card__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  border-top: 1px solid var(--line-soft); padding-top: 18px;
}
.stat { font-family: var(--font-head); font-weight: 600; font-size: 28px; }
.stat__label { font-size: 13px; color: var(--muted); }

.section { padding: 48px 24px 8px; }
.section--list { padding-top: 40px; padding-bottom: 56px; }
.section__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.section__title { display: flex; flex-direction: column; gap: 6px; }
.section__head h2 { margin: 0; font-size: 32px; }
.section__head .hint { font-size: 15px; }

.seg { display: flex; gap: 6px; background: var(--mint); padding: 4px; border-radius: 999px; }
.seg__btn {
  font: inherit; font-weight: 600; border: 0; border-radius: 999px; padding: 10px 16px; min-height: 44px;
  background: transparent; color: var(--pine); cursor: pointer;
}
.seg__btn[aria-pressed="true"] { background: var(--pine); color: #fff; }

.map-row { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.map-card {
  flex: 999 1 620px; min-width: 0; position: relative; background: #dfeaf0; border-radius: 20px; padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.map { height: 520px; border-radius: 14px; background: #dfeaf0; z-index: 0; }
.map .mapboxgl-popup, .map .mapboxgl-ctrl { font-family: var(--font-body); }
.map-msg {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 600;
  margin: 0; max-width: 80%; padding: 14px 18px; border-radius: 14px; text-align: center;
  background: #fff; box-shadow: 0 6px 20px rgba(18, 66, 47, 0.18); font-weight: 500;
}
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0 6px 4px; font-size: 13px; color: #33433b; }
.legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }

.map .mapboxgl-ctrl-group { border-radius: 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); overflow: hidden; }
.map .mapboxgl-ctrl-group button { width: 44px; height: 44px; }
.map .mapboxgl-ctrl-group button:hover { background-color: var(--mint); }
.pin { display: block; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.pin svg { display: block; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.35)); }
.pin:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 50%; }
.map--states .pin { display: none; }
.mapboxgl-popup.pin-tip { pointer-events: none; }
.mapboxgl-popup.pin-tip .mapboxgl-popup-content, .mapboxgl-popup.state-tip .mapboxgl-popup-content {
  border-radius: 10px; padding: 6px 10px; font-family: var(--font-body); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}
.mapboxgl-popup.pin-tip .mapboxgl-popup-content { background: var(--pine-deep); color: #fff; }
.mapboxgl-popup-anchor-bottom.pin-tip .mapboxgl-popup-tip { border-top-color: var(--pine-deep); }
.pin-tip strong, .state-tip strong { display: block; font-family: var(--font-head); font-size: 18px; line-height: 1.2; }
.pin-tip span, .state-tip span { display: block; font-size: 12px; }
.mapboxgl-popup.state-tip { pointer-events: none; }
.mapboxgl-popup.state-tip .mapboxgl-popup-content { background: #fff; color: var(--ink); }

.pick {
  flex: 1 1 300px; background: var(--pine); color: #fff; border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.pick__label { font-size: 14px; color: #bfe0cc; }
.pick__photo {
  height: 170px; border-radius: 14px; background: var(--mint); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pick__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pick__head h3 { margin: 0; font-size: 26px; line-height: 1.1; }
.pick__place { display: block; margin-top: 4px; color: #cfe5d8; font-size: 15px; }
.pick__price { font-family: var(--font-head); font-weight: 700; font-size: 36px; line-height: 1; color: #ffb3bf; white-space: nowrap; }
.pick__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pick__tags:empty, .pick__notes:empty { display: none; }
.tag-dark { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.pick__notes { margin: 0; font-size: 14px; color: #e3f1e8; overflow-wrap: anywhere; }
.pick__actions { margin-top: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pick__report {
  align-self: flex-start; font: inherit; font-size: 13px; color: #cfe5d8; background: none; border: 0;
  padding: 0; min-height: 44px; text-decoration: underline; cursor: pointer;
}
.pick__report:hover { color: #fff; }
.pick__report:disabled { text-decoration: none; cursor: default; }

.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.list-head h2 { margin: 0; font-size: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.input--sm, .select--sm { min-height: 44px; padding: 10px 12px; border-radius: 10px; }
.filter--search .input { width: 200px; }
#list-status:empty { display: none; }
.sightings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sighting {
  width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; background: #fff;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 16px;
  padding: 14px; border: 1px solid var(--line-soft); border-radius: 16px;
}
.sighting:hover { border-color: var(--line); background: var(--soft); }
.sighting__thumb {
  width: 64px; height: 64px; border-radius: 12px; background: var(--mint); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--pine);
}
.sighting__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sighting__thumb img.logo { object-fit: contain; padding: 8px; background: #fff; }
.sighting__text { min-width: 0; }
.sighting__name { display: block; font-weight: 600; font-size: 17px; }
.sighting__meta { display: block; font-size: 14px; color: var(--muted); }
.sighting__extra { display: block; font-size: 13px; color: var(--pine); font-weight: 500; }
.sighting .badge { white-space: nowrap; }
.sighting__price {
  font-family: var(--font-head); font-weight: 700; font-size: 30px; min-width: 90px;
  text-align: right; white-space: nowrap; color: var(--pine);
}
.more { align-self: center; }

@media (max-width: 720px) {
  .hero { padding: 8px 16px 32px; }
  .hero__inner { gap: 24px; }
  .hero h1 { font-size: 34px; }
  .hero__lede { font-size: 16px; }
  .hero-card { padding: 20px; gap: 14px; }
  .hero-card__price { font-size: 64px; }
  .stat { font-size: 22px; }
  .section { padding: 32px 16px 8px; }
  .section--list { padding-bottom: 40px; }
  .section__head h2 { font-size: 26px; }
  .map-row { gap: 16px; }
  .map-card { padding: 8px; }
  .map { height: 380px; }
  .list-head h2 { font-size: 24px; }
  .filters { width: 100%; }
  .filter { flex: 1 1 140px; }
  .filter--search { flex-basis: 100%; }
  .filter--search .input { width: 100%; }
  .sighting { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px; }
  .sighting__thumb { width: 52px; height: 52px; grid-row: span 2; font-size: 17px; }
  .sighting .badge, .sighting > span:nth-child(3) { grid-column: 2; grid-row: 2; justify-self: start; }
  .sighting__price { grid-column: 3; grid-row: 1 / span 2; font-size: 24px; min-width: 0; }
}

/* Admin page */
.admin-badge { font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.page-admin #sign-out { margin-left: auto; min-height: 40px; padding: 8px 16px; }
.admin-main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; }
.admin-signin {
  max-width: 440px; margin: 40px auto; background: #fff; border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 2px 10px rgba(18, 66, 47, 0.08);
}
.admin-signin h1, .admin-head h1 { margin: 0; font-size: 32px; }
.admin-signin__form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.admin-app { display: flex; flex-direction: column; gap: 14px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-tab {
  font: inherit; font-weight: 600; color: var(--pine); background: #fff; cursor: pointer;
  border: 2px solid var(--line); border-radius: 999px; padding: 8px 14px; min-height: 44px;
  display: inline-flex; align-items: center; gap: 8px;
}
.admin-tab:hover { border-color: var(--pine); }
.admin-tab[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: #fff; }
.admin-count {
  font-size: 13px; min-width: 24px; padding: 2px 7px; border-radius: 999px; text-align: center;
  background: var(--mint); color: var(--pine);
}
.admin-tab[aria-pressed="true"] .admin-count { background: rgba(255, 255, 255, 0.2); color: #fff; }
#tab-help { margin: 0; }
.admin-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 16px; }
.admin-tools .filter--search .input { width: 240px; }
.aedit { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.aedit .field { font-size: 14px; gap: 4px; }
.aedit__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.aedit .textarea { min-height: 72px; font-size: 15px; }
.aedit .check { min-height: 36px; font-size: 15px; }
.admin-status { margin: 0; font-weight: 500; }
.admin-status:empty { display: none; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.acard {
  background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
}
/* Whole photo, letterboxed, so nothing is cropped out of view while reviewing. */
.acard__photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e3e8e5; }
.acard__photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.acard__photo--none { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.acard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.acard__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.acard__top strong { font-size: 17px; }
.acard__price { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--pine); }
.acard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.atag { font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: var(--mint); color: var(--pine); }
.atag--pending { background: #fff3cd; color: #6e4b00; }
.atag--approved { background: #dff3e6; color: #155c34; }
.atag--rejected, .atag--hidden { background: #e9ecea; color: #3d4a43; }
.atag--reports { background: #fde4e8; color: #a30d25; }
.atag--ncmec { background: #7d0a1d; color: #fff; }
.acard__facts { font-size: 14px; }
.acard__notes {
  margin: 0; font-size: 14px; padding: 8px 10px; border-radius: 10px; background: var(--soft); overflow-wrap: anywhere;
}
.acard__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.acard__actions .btn { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.acard__danger { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 6px; }
.acard__danger .btn { min-height: 40px; padding: 8px 2px; font-size: 14px; }
.btn--approve { background: var(--pine); color: #fff; }
.btn--approve:hover:not(:disabled) { background: var(--pine-deep); color: #fff; }
.btn--danger-link {
  background: none; border-color: transparent; color: var(--cranberry-dark);
  text-decoration: underline; padding-left: 6px; padding-right: 6px;
}
.btn--danger-link:hover:not(:disabled) { color: var(--cranberry); }
.acard__msg { margin: 0; font-size: 14px; font-weight: 500; color: var(--pine); }
.acard__msg:empty { display: none; }
.acard--gone { min-height: 120px; justify-content: center; align-items: center; background: var(--soft); border-style: dashed; }
.acard__gone { margin: 0; padding: 16px; text-align: center; color: var(--muted); font-weight: 500; }
.admin-note { margin-top: 24px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line-soft); }
.admin-note h2 { margin: 0 0 6px; font-size: 18px; }
.admin-note p { margin: 0; font-size: 14px; }

@media (max-width: 720px) {
  .admin-main { padding: 20px 16px 40px; }
  .admin-signin { margin: 16px auto; padding: 20px; }
  .admin-signin h1, .admin-head h1 { font-size: 26px; }
}

/* Stash page */
.page-stash { background: #fff; }
.stash-main {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 24px 64px;
  display: flex; flex-direction: column; gap: 24px;
}
.stash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.stash-head h1 { margin: 0; font-size: 44px; line-height: 1.05; }
.stash-head p { margin: 6px 0 0; color: var(--muted); font-size: 17px; }
.chips-wrap { display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 999px; min-height: 44px; cursor: pointer;
  border: 2px solid var(--line); background: #fff; color: var(--pine);
}
.chip:hover { border-color: var(--pine); }
.chip[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: #fff; }
.chip:disabled { opacity: 0.6; cursor: progress; }
#chip-hint:empty, .stash-status:empty { display: none; }
.stash-status { margin: 0; font-weight: 500; }
.stash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; transition: opacity 0.15s; }
.stash-grid[aria-busy="true"] { opacity: 0.5; }
.scard {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line-soft); background: #fff;
  display: flex; flex-direction: column;
}
.scard__photo {
  position: relative; display: block; width: 100%; height: 200px; padding: 0; border: 0; margin: 0;
  background: var(--mint); overflow: hidden; cursor: zoom-in; font: inherit;
}
.scard__photo:focus-visible { outline-offset: -4px; }
.scard__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.scard__photo:hover img { transform: scale(1.03); }
.scard__photo--none { display: flex; align-items: center; justify-content: center; cursor: default; }
.scard__none { color: var(--muted); font-size: 14px; }
.scard__price {
  position: absolute; left: 12px; top: 12px; z-index: 1; background: var(--cranberry); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 22px; padding: 4px 12px; border-radius: 10px;
}
.scard__body { flex: 1; padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.scard__name { font-size: 17px; overflow-wrap: anywhere; }
.scard__place { font-size: 14px; color: var(--muted); }
.scard__by { font-size: 13px; color: var(--muted); }
.scard__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.scard__foot .badge { white-space: nowrap; }
.report-link {
  font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; padding: 0 2px;
  min-height: 44px; text-decoration: underline; cursor: pointer;
}
.report-link:hover { color: var(--cranberry); }
.report-link:disabled { text-decoration: none; cursor: default; color: var(--pine); }

/* Photo viewer */
body:has(.viewer[open]) { overflow: hidden; }
.viewer {
  border: 0; padding: 0; border-radius: 20px; background: #fff; color: var(--ink);
  width: min(1040px, calc(100vw - 48px)); max-width: none; max-height: calc(100vh - 48px); overflow: auto;
}
.viewer::backdrop { background: rgba(11, 44, 31, 0.78); }
.viewer__inner { display: flex; flex-wrap: wrap; }
.viewer__photo {
  flex: 999 1 560px; min-width: 0; min-height: 320px; background: var(--pine-deep);
  display: flex; align-items: center; justify-content: center;
}
.viewer__photo img { display: block; max-width: 100%; max-height: calc(100vh - 48px); object-fit: contain; }
.viewer__none { margin: 0; padding: 24px; color: #dfe9e3; }
.viewer__info { flex: 1 1 300px; min-width: 0; padding: 28px 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.viewer__head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-right: 40px; }
.viewer__head h2 { margin: 0; font-size: 26px; line-height: 1.1; overflow-wrap: anywhere; }
.viewer__place { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.viewer__price { font-family: var(--font-head); font-weight: 700; font-size: 34px; line-height: 1; color: var(--cranberry); white-space: nowrap; }
.viewer__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.viewer__tags:empty, .viewer__notes:empty { display: none; }
.tag-light { font-size: 13px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: var(--mint); color: var(--pine); }
.viewer__notes { margin: 0; font-size: 15px; padding: 10px 12px; border-radius: 12px; background: var(--soft); overflow-wrap: anywhere; }
.viewer__dir { align-self: flex-start; margin-top: 4px; }
.viewer .report-link { align-self: flex-start; }
.viewer__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.viewer__close:hover { background: var(--mint); }

@media (prefers-reduced-motion: reduce) {
  .scard__photo img, .stash-grid { transition: none; }
  .scard__photo:hover img { transform: none; }
}

@media (max-width: 720px) {
  .stash-main { padding: 20px 16px 40px; gap: 16px; }
  .stash-head h1 { font-size: 32px; }
  .stash-head p { font-size: 15px; }
  .chips { gap: 8px; }
  .chip { padding: 8px 14px; }
  .stash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .scard { border-radius: 14px; }
  .scard__photo { height: auto; aspect-ratio: 1 / 1; }
  .scard__price { left: 8px; top: 8px; font-size: 18px; padding: 2px 8px; border-radius: 8px; }
  .scard__body { padding: 10px 10px 2px; gap: 2px; }
  .scard__name { font-size: 15px; }
  .scard__place { font-size: 13px; }
  .scard__by { font-size: 12px; }
  .scard__foot .badge { font-size: 12px; padding: 4px 8px; }
  .viewer {
    width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border-radius: 0;
  }
  .viewer__photo { flex-basis: 100%; min-height: 200px; }
  .viewer__photo img { max-height: 62vh; }
  .viewer__info { padding: 18px 16px 24px; }
  .viewer__head { flex-direction: row; justify-content: space-between; gap: 12px; padding-right: 0; }
  .viewer__head h2 { font-size: 22px; }
  .viewer__price { font-size: 28px; }
}

/* Contact page */
.contact-main { width: 100%; max-width: 760px; margin: 0 auto; padding: 40px 24px 64px; }
.contact-card {
  background: #fff; border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column; gap: 22px; box-shadow: 0 2px 10px rgba(18, 66, 47, 0.08);
}
.contact-head { display: flex; flex-direction: column; gap: 6px; }
.contact-head h1, .contact-done h1 { margin: 0; font-size: 40px; line-height: 1.05; }
.contact-head .hint { font-size: 16px; }
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.pills.pills--stack { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.pills--stack .pill span { justify-content: flex-start; text-align: left; border-radius: 14px; padding: 10px 16px; }
.contact-form .opt { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-done { align-items: flex-start; }
.contact-done .hint { font-size: 17px; }
.contact-done:focus { outline: none; }

@media (max-width: 720px) {
  .contact-main { padding: 16px 16px 32px; }
  .contact-card { padding: 20px; gap: 18px; }
  .contact-form .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .contact-head h1, .contact-done h1 { font-size: 28px; }
}

/* Phone: quick report layout */
@media (max-width: 720px) {
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  .site-header__inner { padding: 14px 16px; gap: 12px; justify-content: space-between; }
  .brand { gap: 10px; }
  .brand img { width: 33px; height: 36px; }
  .brand span { font-size: 19px; }
  .site-nav { order: 3; flex-basis: 100%; gap: 4px; margin: -4px 0 -6px -12px; }
  .site-nav a { padding: 8px 12px; }
  .header-cta { padding: 10px 16px; font-size: 15px; }
  .page-report .site-nav, .page-report .header-cta { display: none; }
  .page-report .header-close { display: flex; }

  .report-main { padding: 16px 16px 32px; gap: 16px; }
  .report-card { padding: 0; gap: 16px; background: transparent; box-shadow: none; flex-basis: 100%; }
  .report-head { order: -2; }
  .report-head h1, .done h1 { font-size: 28px; line-height: 1.1; }
  .lede { display: none; }
  .group--photo { order: -1; }
  .group legend { font-size: 17px; margin-bottom: 8px; }
  .group--photo legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .drop { padding: 22px 16px; min-height: 150px; justify-content: center; background: #fff; }
  .pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pill span { padding: 10px; }
  .extras-toggle { display: inline-flex; }
  .extras:not(.is-open) { display: none; }
  .report-aside { display: none; }
  .done { padding: 20px; background: #fff; border-radius: 20px; }
  .site-footer__inner { padding: 18px 16px; }
}
