:root {
  --cream: #f6f0e4;
  --cream-soft: #fbf7ee;
  --cream-card: #fffdf8;
  --paper: #f1ead9;
  --green: #2f6e51;
  --green-deep: #1f5239;
  --green-ink: #213a2c;
  --orange: #d9633a;
  --gold: #d9a441;
  --text: #2c2b26;
  --muted: #6f6e64;
  --line: #e7dfce;
  --line-soft: #efe8d8;
  --danger: #b42318;
  --shadow-sm: 0 10px 24px rgba(45, 60, 40, 0.08);
  --shadow-md: 0 18px 40px rgba(45, 60, 40, 0.12);
  --r-sm: 12px;
  --r-md: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Ensure [hidden] wins over utility display: rules (e.g. .step-actions). */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 100% -5%, rgba(217, 164, 65, 0.12), transparent 60%),
    radial-gradient(800px 500px at -5% 30%, rgba(47, 110, 81, 0.08), transparent 55%),
    var(--cream);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--green-ink);
  line-height: 1.15;
  margin: 0 0 0.7rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

a {
  color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s var(--ease), box-shadow 0.25s ease,
    background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 22px rgba(47, 110, 81, 0.28);
}

.btn-green:hover {
  background: var(--green-deep);
}

.btn-outline {
  background: transparent;
  border-color: var(--green);
  color: var(--green-deep);
}

.btn-text {
  background: transparent;
  color: var(--green);
  padding: 0.4rem 0.2rem;
  box-shadow: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 240, 228, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: var(--display);
  color: var(--green-ink);
  font-size: 1.15rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--green-ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.claim-main {
  padding: 2.5rem 0 4rem;
}

.claim-shell {
  max-width: 720px;
  margin: 0 auto;
}

.claim-shell.wide {
  max-width: 960px;
}

.progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

.progress-seg {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
}

.progress-seg.is-active {
  background: var(--green);
}

.step {
  display: none;
}

.step.is-active {
  display: block;
}

.step-kicker {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.step h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.field {
  margin: 1.25rem 0;
}

.field label,
.field legend {
  display: block;
  font-weight: 600;
  color: var(--green-ink);
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea,
.field select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  padding: 0.9rem 1.05rem;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(47, 110, 81, 0.35);
  border-color: var(--green);
}

.field input:not([type="checkbox"]):not([type="radio"])[readonly],
.field textarea[readonly] {
  background: var(--cream-soft);
  color: var(--muted);
}

.listing-form .field label,
.listing-form .field legend {
  font-size: 1.1rem;
}

.listing-form .field input:not([type="checkbox"]):not([type="radio"]),
.listing-form .field textarea,
.listing-form .field select {
  font-size: 1.15rem;
}

.field-error,
.form-error {
  color: var(--danger);
  font-size: 0.88rem;
  margin-top: 0.4rem;
}

.form-error {
  margin: 0.75rem 0;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.step-actions .spacer {
  flex: 1;
}

.landing-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.landing-visual {
  background: linear-gradient(160deg, rgba(47, 110, 81, 0.12), rgba(217, 164, 65, 0.14));
  border-radius: var(--r-md);
  min-height: 280px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  padding: 2rem;
}

.landing-visual-mark {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 2.5rem;
  box-shadow: var(--shadow-md);
}

.split-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.search-field {
  margin: 1.25rem 0;
}

.search-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.search-form input {
  flex: 1;
  width: auto;
  min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--text);
}

.search-form input:focus {
  outline: 2px solid rgba(47, 110, 81, 0.35);
  border-color: var(--green);
}

.search-form .btn {
  flex-shrink: 0;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.result-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.85rem;
}

.result-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: var(--paper);
  object-fit: cover;
}

.result-meta h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.result-meta p {
  margin: 0;
  font-size: 0.88rem;
}

.confirm-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 1.25rem 0;
}

.claimant-card {
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}

.claimant-card .business-context-label {
  margin: 0 0 0.65rem;
}

.claimant-card .confirm-dl {
  margin: 0;
}

.confirm-banner {
  background: rgba(47, 110, 81, 0.1);
  color: var(--green-deep);
  padding: 0.85rem 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.confirm-body {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
}

.confirm-photo {
  width: 140px;
  height: 140px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--paper);
}

.confirm-dl {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.confirm-dl div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.92rem;
}

.confirm-dl dt {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
  padding-top: 0.1rem;
}

.confirm-dl dd {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
  min-width: 0;
}

.intro-steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 1rem;
}

.intro-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.9rem;
  align-items: start;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1rem;
}

.intro-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(47, 110, 81, 0.12);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.business-context {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.25rem;
}

.business-context-label {
  margin: 0 0 0.15rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.business-context strong {
  display: block;
  font-family: var(--display);
  color: var(--green-ink);
  font-size: 1.15rem;
  margin-bottom: 0.15rem;
}

.business-context span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.combobox {
  position: relative;
}

.combobox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.combobox-tags:not(:empty) {
  margin-bottom: 0.5rem;
}

.combobox-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.35rem 0.3rem 0.7rem;
  border: 1px solid var(--green, #2f6b3f);
  background: rgba(47, 107, 63, 0.08);
  border-radius: 999px;
  font-size: 0.9rem;
}

.combobox-tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(47, 107, 63, 0.18);
  color: var(--green, #2f6b3f);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.combobox-tag-remove:hover {
  background: rgba(47, 107, 63, 0.32);
}

.combobox-input {
  width: 100%;
}

.combobox-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  margin: 0.25rem 0 0;
  padding: 0.25rem;
  list-style: none;
  max-height: 15rem;
  overflow-y: auto;
  background: var(--paper, #fff);
  border: 1px solid var(--line, #d7d2c7);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.combobox-item {
  padding: 0.5rem 0.65rem;
  border-radius: 0.35rem;
  cursor: pointer;
}

.combobox-item.is-active,
.combobox-item:hover {
  background: rgba(47, 107, 63, 0.1);
}

.combobox-empty {
  padding: 0.5rem 0.65rem;
  color: var(--muted, #6b6459);
}

.muted {
  color: var(--muted, #6b6459);
}

.next-card {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

.next-card h2 {
  font-size: 1.2rem;
}

.next-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--text);
}

.pagination {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.legal {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1rem;
}

.home-hero {
  padding: 4rem 0;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.home-actions {
  justify-content: center;
  flex-wrap: wrap;
}

.auth-shell,
.businesses-shell,
.business-detail-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.business-detail-shell.wide {
  max-width: 860px;
}

.auth-shell.wide {
  max-width: 720px;
}

.businesses-shell {
  max-width: 760px;
}

.auth-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.businesses-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.businesses-list {
  display: grid;
  gap: 0.85rem;
}

.business-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.business-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.business-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.business-address {
  margin: 0;
  color: var(--muted);
}

.status-pill {
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--green-ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.status-dl {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.status-dl > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-soft);
}

.status-dl dt {
  color: var(--muted);
  font-weight: 500;
}

.status-dl dd {
  margin: 0;
  color: var(--text);
}

.notice-banner {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  background: rgba(47, 110, 81, 0.1);
  color: var(--green-ink);
  border: 1px solid rgba(47, 110, 81, 0.2);
}

.notice-banner-danger {
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
  border-color: rgba(180, 35, 24, 0.25);
}

.empty-state {
  padding: 2rem 0;
  text-align: center;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.btn.danger,
.btn-text.danger {
  color: var(--danger);
}

.listing-intro {
  margin-bottom: 1.25rem;
}

#listing-sections {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.listing-section.confirm-card {
  padding: 1.35rem 1.5rem 1.5rem;
  margin: 0;
}

.listing-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.listing-section-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.listing-section-body > .muted:first-child,
.listing-section-body > .confirm-dl:first-child,
.listing-section-body > .listing-list:first-child {
  margin-top: 0;
}

.listing-section-body > .muted:last-child,
.listing-section-body > .confirm-dl:last-child,
.listing-section-body > .listing-list:last-child {
  margin-bottom: 0;
}

.listing-form {
  display: grid;
  gap: 0.9rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}

.checkbox-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  margin: 0.35rem 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
}

.checkbox-row input[type="checkbox"],
.checkbox-row input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--green);
}

.category-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.35rem 0.75rem;
}

.field-hint {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
}

.attribute-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attribute-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.2rem 0.65rem 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.3;
}

.attribute-chip-mark {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.attribute-chip-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.attribute-chip-status {
  color: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.78;
  white-space: nowrap;
}

.attribute-chip-status::before {
  content: "·";
  margin-right: 0.3rem;
  opacity: 0.55;
}

.attribute-chip-verified {
  border-color: rgba(47, 107, 63, 0.22);
  background: rgba(47, 107, 63, 0.08);
  color: var(--green-ink, #213a2c);
}

.attribute-chip-verified .attribute-chip-mark {
  background: rgba(47, 110, 81, 0.9);
  color: #fff;
}

.attribute-chip-unverified {
  border-color: rgba(120, 110, 80, 0.22);
  background: rgba(120, 110, 80, 0.07);
  color: #3a372c;
}

.attribute-chip-unverified .attribute-chip-mark {
  background: rgba(120, 110, 80, 0.18);
  color: #5c5644;
  font-size: 0.95rem;
}

.attribute-check-row {
  align-items: flex-start;
}

.attribute-check-label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}

.attribute-check-name {
  font-weight: 500;
}

.attribute-edit-status {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.attribute-edit-status-verified {
  color: var(--green, #2f6b3f);
}

.attribute-edit-status-unverified {
  color: #8a7350;
}

.listing-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.listing-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
}

.listing-list li {
  margin: 0.35rem 0;
}

.hours-editor {
  display: grid;
  gap: 0.65rem;
}

.hours-row {
  display: grid;
  grid-template-columns: 110px auto 1fr 1fr;
  gap: 0.6rem;
  align-items: center;
}

.hours-day {
  font-weight: 600;
  color: var(--green-ink);
}

.special-hours-row {
  grid-template-columns: 150px auto 1fr 1fr 1.4fr auto;
}

.special-hours-row input[type="date"],
.special-hours-row input[type="time"],
.special-hours-row input[type="text"] {
  min-width: 0;
}

.repeatable-rows {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.repeatable-row {
  display: grid;
  grid-template-columns: 140px 1fr 120px auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem;
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
}

.repeatable-row input,
.repeatable-row select,
.repeatable-row textarea,
.hours-row input[type="time"] {
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.45;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--text);
}

.repeatable-row.stacked {
  grid-template-columns: 1fr 1fr;
}

.repeatable-row.stacked textarea,
.repeatable-row.stacked [data-discount-title],
.repeatable-row.stacked [data-payment-identifier] {
  grid-column: 1 / -1;
}

.photo-kind-group {
  margin-bottom: 1.5rem;
}

.photo-kind-group h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.photo-dropzone {
  border: 1.5px dashed var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  background: var(--cream-soft);
  margin-bottom: 0.85rem;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}

.photo-dropzone.is-dragover {
  border-color: var(--green);
  background: rgba(47, 110, 81, 0.08);
}

.photo-dropzone p {
  margin: 0;
}

.photo-dropzone-hint {
  margin-top: 0.4rem !important;
  font-size: 0.82rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.photo-empty {
  grid-column: 1 / -1;
  margin: 0;
}

.photo-tile {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: grab;
}

.photo-tile-ghost {
  opacity: 0.4;
}

.photo-tile-chosen {
  box-shadow: var(--shadow-md);
}

.photo-tile-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--paper);
}

.photo-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-tile-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
  font-size: 0.85rem;
}

.photo-status {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 2;
}

.photo-status-approved {
  background: rgba(47, 110, 81, 0.92);
  color: #fff;
}

.photo-status-pending {
  background: rgba(217, 164, 65, 0.95);
  color: #213018;
}

.photo-status-rejected {
  background: rgba(180, 35, 24, 0.92);
  color: #fff;
}

.photo-primary-badge {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 2;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(33, 58, 44, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
}

.photo-pending-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.35rem 0.5rem;
  background: rgba(33, 58, 44, 0.72);
  color: #fff;
  font-size: 0.75rem;
  text-align: center;
}

.photo-tile-caption,
.photo-tile-notes {
  margin: 0.45rem 0.55rem;
  font-size: 0.82rem;
}

.photo-tile-notes {
  color: var(--danger);
}

.photo-tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  padding: 0 0.35rem 0.45rem;
}

@media (max-width: 860px) {
  .landing-grid,
  .confirm-body {
    grid-template-columns: 1fr;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .result-card {
    grid-template-columns: 56px 1fr;
  }

  .result-card .btn {
    grid-column: 1 / -1;
  }

  .businesses-header {
    flex-direction: column;
  }

  .status-dl > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .hours-row {
    grid-template-columns: 1fr;
  }

  .special-hours-row {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .repeatable-row:not(.stacked) {
    grid-template-columns: 1fr;
  }
}
