:root {
  --paper: #f3efe6;
  --paper-deep: #e9e2d5;
  --surface: #fffcf7;
  --surface-strong: #ffffff;
  --ink: #19231e;
  --ink-soft: #34423a;
  --muted: #5d6962;
  --line: #d8d0c2;
  --line-strong: #b9ae9d;
  --forest: #24513d;
  --forest-dark: #173b2c;
  --forest-deep: #102b21;
  --forest-soft: #dfeae2;
  --forest-pale: #edf3ee;
  --clay: #a65236;
  --clay-dark: #7e3a26;
  --gold: #a97a3f;
  --danger: #9c302f;
  --danger-soft: #f7e8e6;
  --cream: #f8f3e9;
  --shadow-sm: 0 8px 24px rgba(26, 38, 31, .06);
  --shadow-md: 0 20px 50px rgba(26, 38, 31, .1);
  --shadow-lg: 0 30px 80px rgba(16, 43, 33, .16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 38px;
  --content: 1240px;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 255, 255, .72), transparent 34rem),
    linear-gradient(180deg, var(--paper) 0%, #f6f2ea 58%, var(--paper) 100%);
  color: var(--ink);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

button {
  color: inherit;
}

button,
input,
select,
textarea {
  font-size: 1rem;
}

code {
  border-radius: 5px;
  background: var(--paper-deep);
  padding: .12em .38em;
  font-size: .9em;
}

[hidden] {
  display: none !important;
}

::selection {
  background: #c8dccd;
  color: var(--forest-deep);
}

:focus-visible {
  outline: 3px solid #b5603d;
  outline-offset: 3px;
}

.sr-only,
.live-region {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  transform: translateY(-180%);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: .75rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: .82rem;
}

.count {
  color: var(--muted);
  font: 600 .82rem/1 var(--font-body);
  letter-spacing: .04em;
}

.preserve-lines {
  white-space: pre-line;
}

.inline-form {
  display: inline-flex;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 7vw, 5rem);
}

h2 {
  margin: 0 0 .65rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

h3 {
  margin: 0 0 .35rem;
  font-size: 1.35rem;
}

p {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 .6rem;
  color: var(--clay-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #bfd6c7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
  padding: .9rem 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(185, 174, 157, .48);
  background: rgba(243, 239, 230, .9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.08;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--forest-dark);
  color: var(--cream);
  font: 600 1rem/1 var(--font-display);
  letter-spacing: .03em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.brand-copy strong {
  overflow: hidden;
  font-size: .95rem;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small,
.footer-brand small {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: .52rem .8rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 14px;
  height: 1.5px;
  background: currentColor;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-toggle-lines::before {
  top: -4px;
}

.nav-toggle-lines::after {
  top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .35rem .8rem;
  font-size: .89rem;
}

.nav-link {
  border-radius: 999px;
  padding: .42rem .6rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(36, 81, 61, .09);
  color: var(--forest-dark);
}

.nav-link-auth {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: .48rem .85rem;
}

.nav-account,
.nav-user {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.nav-user {
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.nav-user-name {
  max-width: 15rem;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-role {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.container {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
  padding: 1.4rem 0 5rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: .66rem 1.1rem;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.button:hover {
  border-color: var(--ink);
  background: var(--surface-strong);
  transform: translateY(-1px);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: wait;
  opacity: .62;
  transform: none;
}

.button-primary {
  border-color: var(--forest-dark);
  background: var(--forest-dark);
  color: white;
  box-shadow: 0 9px 22px rgba(23, 59, 44, .18);
}

.button-primary:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: white;
}

.button-quiet {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink-soft);
}

.button-quiet:hover {
  border-color: var(--line-strong);
  background: white;
  color: var(--forest-dark);
}

.button-danger-quiet {
  border-color: #e3c4c0;
  background: transparent;
  color: var(--danger);
}

.button-danger-quiet:hover {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

.button-small {
  min-height: 36px;
  padding: .42rem .72rem;
  font-size: .78rem;
}

.button-block {
  width: 100%;
}

.form-field {
  min-width: 0;
}

.form-field > label,
.stack-form .form-field > label,
.search-panel .form-field > label {
  display: block;
  margin: 0 0 .34rem;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .015em;
  line-height: 1.3;
}

.required-mark {
  color: var(--clay-dark);
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--ink);
  padding: .68rem .78rem;
  line-height: 1.35;
  transition: border-color .18s ease, box-shadow .18s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select {
  cursor: pointer;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #918674;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--forest);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(36, 81, 61, .14);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b5603d;
  outline-offset: 2px;
}

input::placeholder,
textarea::placeholder {
  color: #8a918c;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.1rem;
  min-height: 1.1rem;
  accent-color: var(--forest);
}

.form-field small,
.form-hint {
  display: block;
  margin-top: .32rem;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-grid,
.filter-grid,
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
}

.form-actions,
.search-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.2rem;
}

.stack-form {
  display: grid;
  gap: .9rem;
}

.stack-form .button {
  margin-top: .35rem;
}

.alert {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: .82rem .95rem;
  margin: 1rem 0;
  font-size: .9rem;
}

.alert-error {
  border-color: #e3b8b2;
  background: var(--danger-soft);
  color: #74201f;
}

.alert-success {
  border-color: #b9d4c0;
  background: var(--forest-pale);
  color: var(--forest-dark);
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .36rem;
  border-radius: 999px;
  background: #ebe6dc;
  color: var(--ink-soft);
  padding: .24rem .58rem;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.badge-dot {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: currentColor;
}

.badge-published {
  background: #dbeadd;
  color: #1f5437;
}

.badge-draft {
  background: #f3ead2;
  color: #6b531b;
}

.badge-archived {
  background: #e8e5df;
  color: #5d5a54;
}

.location-pin {
  display: inline-block;
  width: .46rem;
  height: .46rem;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 15% 20%, rgba(101, 145, 116, .28), transparent 22rem),
    linear-gradient(135deg, var(--forest-dark), var(--forest-deep));
  color: var(--cream);
  padding: 1.4rem;
  box-shadow: var(--shadow-lg);
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: -9rem;
  right: -9rem;
  width: 27rem;
  height: 27rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(255, 255, 255, .025), 0 0 0 10rem rgba(255, 255, 255, .018);
  content: "";
}

.hero-copy {
  padding: 1rem .35rem 1.4rem;
}

.hero h1 {
  max-width: 9ch;
  color: white;
}

.hero-lead {
  max-width: 44rem;
  margin-bottom: 1.2rem;
  color: #d8e4db;
  font-size: 1.02rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .9rem;
  padding: 0;
  margin: 0;
  color: #dce8df;
  font-size: .78rem;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.hero-points li::before {
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: #b4d4bc;
  content: "";
}

.search-panel {
  align-self: end;
  border: 1px solid rgba(216, 208, 194, .8);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  padding: 1.15rem;
  box-shadow: var(--shadow-md);
}

.search-panel-heading {
  margin-bottom: 1rem;
}

.search-panel-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .84rem;
}

.search-panel .form-field + .form-field {
  margin-top: .1rem;
}

.input-unit {
  position: relative;
}

.input-unit > span {
  position: absolute;
  top: 50%;
  left: .78rem;
  color: var(--muted);
  font-weight: 700;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-unit input {
  padding-left: 1.85rem;
}

.results-section {
  padding-top: 2.4rem;
}

.results-header,
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.results-header h2,
.section-heading h2 {
  margin-bottom: 0;
}

.results-count,
.section-count {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 247, .66);
  padding: .42rem .72rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.listing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.listing-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.listing-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.listing-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
}

.listing-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.listing-card:hover .listing-card-media img {
  transform: scale(1.025);
}

.listing-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 29, 21, .22), transparent 36%, transparent 58%, rgba(14, 29, 21, .42));
}

.listing-card-tags {
  position: absolute;
  top: .7rem;
  left: .7rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.tag {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  background: rgba(14, 35, 25, .62);
  color: white;
  padding: .24rem .55rem;
  font-size: .65rem;
  font-weight: 750;
  letter-spacing: .07em;
  line-height: 1.2;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.tag-strong {
  background: rgba(248, 243, 233, .94);
  color: var(--forest-deep);
}

.listing-card-status {
  position: absolute;
  right: .7rem;
  bottom: .7rem;
}

.listing-card-body {
  display: flex;
  min-height: 185px;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.listing-card-location {
  display: flex;
  align-items: center;
  gap: .42rem;
  margin: 0 0 .45rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.listing-card h2 {
  margin-bottom: .55rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.listing-card h2 a {
  text-decoration: none;
}

.listing-card h2 a:hover {
  text-decoration: underline;
}

.listing-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .55rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .78rem;
}

.listing-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: .8rem;
  border-top: 1px solid #ece6da;
}

.price {
  color: var(--forest-dark);
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.card-arrow {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--forest);
  font-size: .9rem;
}

.image-placeholder,
.gallery-empty,
.dashboard-thumb > span {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .4rem;
  background:
    linear-gradient(135deg, rgba(36, 81, 61, .08), rgba(166, 82, 54, .06)),
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(25, 35, 30, .025) 12px, rgba(25, 35, 30, .025) 13px);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.image-placeholder > span,
.gallery-empty > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest-dark);
  color: var(--cream);
  font: 600 1rem/1 var(--font-display);
}

.empty-state {
  display: grid;
  min-height: 310px;
  place-items: center;
  align-content: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, .55);
  padding: 2rem;
  text-align: center;
}

.empty-state h2 {
  max-width: 22ch;
  margin-bottom: .55rem;
}

.empty-state p {
  max-width: 48ch;
  color: var(--muted);
}

.empty-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-bottom: .9rem;
  border-radius: 50%;
  background: var(--forest-soft);
  color: var(--forest-dark);
  font: 500 1.7rem/1 var(--font-display);
}

.empty-state-compact {
  min-height: 250px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.page-link {
  display: inline-grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: .35rem .7rem;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
}

.page-link:hover,
.page-link-current {
  border-color: var(--forest-dark);
  background: var(--forest-dark);
  color: white;
}

.page-link-disabled {
  cursor: not-allowed;
  opacity: .42;
}

.page-link-disabled:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink-soft);
}

.page-gap,
.page-summary {
  color: var(--muted);
  font-size: .75rem;
}

.breadcrumbs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .45rem;
  margin: .4rem 0 1.3rem;
  color: var(--muted);
  font-size: .76rem;
}

.breadcrumbs a {
  color: var(--forest-dark);
  font-weight: 700;
}

.breadcrumbs span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 1rem;
  border: 1px solid #e2d3ad;
  border-radius: var(--radius-sm);
  background: #fbf4e1;
  padding: .7rem .85rem;
  color: #614e1e;
  font-size: .84rem;
}

.detail-heading {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.35rem;
}

.detail-title-block h1 {
  max-width: 20ch;
  margin-bottom: .6rem;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  overflow-wrap: anywhere;
}

.detail-location {
  display: flex;
  align-items: center;
  gap: .48rem;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.detail-price-block {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: .45rem;
}

.detail-price-label {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.detail-price {
  color: var(--forest-dark);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -.035em;
  line-height: 1;
}

.detail-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
  margin-bottom: 1.25rem;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: var(--paper-deep);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-zoom {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(16, 43, 33, .68);
  color: white;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.gallery-empty {
  min-height: 260px;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
}

.gallery-count-1 .gallery-featured {
  aspect-ratio: 16 / 9;
}

.key-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
  margin: 0 0 2rem;
}

.key-facts > div {
  background: var(--surface);
  padding: .9rem .95rem;
}

.key-facts dt {
  margin-bottom: .25rem;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.key-facts dd {
  margin: 0;
  color: var(--forest-dark);
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
}

.detail-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.detail-content {
  min-width: 0;
}

.detail-section {
  padding: 1.2rem 0 1.6rem;
  border-top: 1px solid var(--line);
}

.detail-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.detail-section > p:last-child {
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.8;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem .8rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  color: var(--ink-soft);
}

.feature-list li > span {
  display: inline-grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  margin-top: .08rem;
  border-radius: 50%;
  background: var(--forest-soft);
  color: var(--forest-dark);
  font-size: .68rem;
  font-weight: 800;
}

.contact-card {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(237, 243, 238, .8)),
    var(--surface);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.contact-card h2 {
  font-size: clamp(1.55rem, 4vw, 2rem);
}

.contact-card > p:not(.eyebrow) {
  color: var(--muted);
  font-size: .88rem;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 1.1rem 0;
}

.contact-avatar {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--forest-dark);
  color: white;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-person > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.contact-person small,
.contact-facts dt {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-person strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-facts {
  display: grid;
  gap: .55rem;
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.contact-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.contact-facts dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: .8rem;
  text-align: right;
}

.lightbox {
  width: min(94vw, 1080px);
  max-width: none;
  max-height: 94vh;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  padding: 0;
}

.lightbox::backdrop {
  background: rgba(7, 17, 12, .86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--forest-deep);
  padding: .7rem;
}

.lightbox-panel img {
  max-height: 82vh;
  width: auto;
  max-width: 100%;
  border-radius: calc(var(--radius-md) - 6px);
  object-fit: contain;
}

.lightbox-panel p {
  margin: .55rem 0 0;
  color: #dbe7df;
  font-size: .8rem;
}

.lightbox-close {
  position: absolute;
  top: .65rem;
  right: .65rem;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: rgba(8, 22, 15, .72);
  color: white;
  font-size: 1.45rem;
  cursor: pointer;
}

.auth-layout {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.auth-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(128, 169, 140, .26), transparent 18rem),
    linear-gradient(145deg, var(--forest-dark), var(--forest-deep));
  color: var(--cream);
  padding: 2rem 1.35rem;
}

.auth-story::after {
  position: absolute;
  z-index: -1;
  right: -6rem;
  bottom: -8rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(255, 255, 255, .024), 0 0 0 6rem rgba(255, 255, 255, .016);
  content: "";
}

.auth-story h1 {
  max-width: 12ch;
  color: white;
  font-size: clamp(2.35rem, 6vw, 3.8rem);
}

.auth-story > p:not(.eyebrow) {
  max-width: 42ch;
  color: #d7e3da;
}

.auth-points,
.setup-steps {
  display: grid;
  gap: .6rem;
  padding: 0;
  margin: 1.5rem 0 0;
  color: #dce8df;
  font-size: .84rem;
  list-style: none;
}

.auth-points li {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.auth-points li::before {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: #b9d7c1;
  content: "";
}

.setup-steps li {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.setup-steps span {
  color: #a9c5b0;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.auth-form-panel {
  padding: 1.5rem 1.25rem 1.8rem;
}

.auth-form-panel h2 {
  margin-bottom: .45rem;
  font-size: clamp(1.85rem, 5vw, 2.5rem);
}

.auth-form-panel > .muted {
  margin-bottom: 1.1rem;
  font-size: .88rem;
}

.auth-note {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.5;
}

.dashboard-heading,
.form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  gap: 1rem;
  margin: .7rem 0 1.5rem;
}

.dashboard-heading h1,
.form-heading h1 {
  margin-bottom: .45rem;
  font-size: clamp(2.4rem, 6vw, 3.9rem);
}

.dashboard-heading > div > p:last-child,
.form-heading > div > p:last-child {
  max-width: 62ch;
  margin-bottom: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin-bottom: 1.8rem;
}

.stat {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: .95rem;
}

.stat::after {
  position: absolute;
  right: -.8rem;
  bottom: -.9rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--forest-pale);
  content: "";
}

.stat-label {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.stat strong {
  position: relative;
  z-index: 1;
  margin: .3rem 0 .05rem;
  color: var(--forest-dark);
  font: 600 2rem/1 var(--font-display);
}

.stat-detail {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: .7rem;
}

.dashboard-section {
  margin-top: 1.2rem;
}

.dashboard-list {
  display: grid;
  gap: .7rem;
}

.dashboard-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: .65rem;
  box-shadow: var(--shadow-sm);
}

.dashboard-thumb {
  display: block;
  overflow: hidden;
  width: 76px;
  height: 76px;
  border-radius: 11px;
  background: var(--paper-deep);
}

.dashboard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-thumb > span {
  font-family: var(--font-display);
}

.dashboard-main {
  min-width: 0;
  align-self: center;
}

.dashboard-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  color: var(--clay-dark);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-main h2 {
  overflow: hidden;
  margin: .14rem 0 .1rem;
  font-size: 1.2rem;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.dashboard-main h2 a {
  text-decoration: none;
}

.dashboard-main h2 a:hover {
  text-decoration: underline;
}

.dashboard-location,
.dashboard-owner {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
}

.dashboard-owner {
  margin-top: .08rem;
  font-size: .7rem;
}

.dashboard-status {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem .75rem;
  padding-top: .55rem;
  border-top: 1px solid #ece6da;
}

.dashboard-price {
  color: var(--forest-dark);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.dashboard-updated {
  color: var(--muted);
  font-size: .7rem;
}

.dashboard-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  flex-wrap: wrap;
  gap: .42rem;
}

.form-page {
  max-width: 1040px;
  margin: 0 auto;
}

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

.form-section {
  min-width: 0;
  min-inline-size: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.form-section + .form-section {
  margin-top: 0;
}

.form-section > legend {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: 0 .38rem;
  color: var(--forest-dark);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -.025em;
}

.form-section > legend span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest-pale);
  color: var(--forest);
  font: 800 .68rem/1 var(--font-body);
  letter-spacing: .04em;
}

.form-section > .form-field,
.form-section > .form-grid,
.form-section > .form-hint,
.form-section > .visibility-field {
  margin-top: .9rem;
}

.form-section > .form-field:first-of-type,
.form-section > .form-grid:first-of-type,
.form-section > .form-hint:first-of-type {
  margin-top: .55rem;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.character-count {
  color: var(--muted);
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
}

.visibility-field {
  min-width: 0;
  margin: .9rem 0 0;
  padding: 0;
  border: 0;
}

.visibility-field > legend {
  margin-bottom: .3rem;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 750;
}

.visibility-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
  margin-top: .55rem;
}

.visibility-option {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: .65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  padding: .8rem;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.visibility-option:hover {
  border-color: var(--line-strong);
}

.visibility-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.visibility-control {
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  margin-top: .1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: white;
}

.visibility-control::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--forest);
  content: "";
  opacity: 0;
  transform: scale(.5);
  transition: opacity .15s ease, transform .15s ease;
}

.visibility-option:has(input:checked) {
  border-color: var(--forest);
  background: var(--forest-pale);
  box-shadow: 0 0 0 2px rgba(36, 81, 61, .1);
}

.visibility-option input:checked + .visibility-control {
  border-color: var(--forest);
}

.visibility-option input:checked + .visibility-control::after {
  opacity: 1;
  transform: scale(1);
}

.visibility-option input:focus-visible + .visibility-control {
  outline: 3px solid #b5603d;
  outline-offset: 3px;
}

.visibility-option > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.visibility-option strong {
  font-size: .84rem;
}

.visibility-option small {
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.4;
}

.existing-images,
.upload-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin: .8rem 0;
}

.existing-images figure,
.upload-preview figure {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  margin: 0;
}

.existing-images img,
.upload-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.existing-images figcaption,
.upload-preview figcaption {
  overflow: hidden;
  padding: .38rem .5rem;
  color: var(--muted);
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .6rem;
  min-height: 150px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(237, 243, 238, .45);
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.upload-dropzone:hover,
.upload-dropzone:focus-within,
.upload-dropzone.is-dragging {
  border-color: var(--forest);
  background: var(--forest-pale);
}

.upload-dropzone:focus-within {
  outline: 3px solid #b5603d;
  outline-offset: 3px;
}

.upload-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest-dark);
  color: white;
  font-size: 1.35rem;
  line-height: 1;
}

.upload-dropzone > span:last-of-type {
  display: flex;
  flex-direction: column;
}

.upload-dropzone strong {
  font-size: .9rem;
}

.upload-dropzone small {
  color: var(--muted);
  font-size: .74rem;
}

.upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

.upload-status {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
}

.form-actions-sticky {
  position: sticky;
  z-index: 5;
  bottom: .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 247, .94);
  padding: .65rem;
  box-shadow: 0 18px 42px rgba(25, 35, 30, .14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.form-submit-note {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: .68rem;
  text-align: center;
}

.panel-form,
.users-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.panel-form .section-heading,
.users-section .section-heading {
  align-items: flex-start;
  flex-direction: column;
  gap: .2rem;
}

.admin-user-list {
  display: grid;
  gap: .75rem;
}

.admin-user-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  padding: .85rem;
}

.user-card-heading,
.user-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .7rem;
}

.user-card-heading {
  padding-bottom: .75rem;
  border-bottom: 1px solid #ece6da;
}

.user-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .65rem;
}

.user-identity > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.user-identity strong,
.user-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-identity small {
  color: var(--muted);
  font-size: .72rem;
}

.user-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.user-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: .7rem;
  margin: .8rem 0;
}

.user-card-footer {
  padding-top: .7rem;
  border-top: 1px solid #ece6da;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 650;
}

.user-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
}

.row-status {
  color: var(--forest-dark);
  font-size: .74rem;
  font-weight: 700;
}

.row-status.is-error {
  color: var(--danger);
}

.message-page {
  display: flex;
  min-height: 58vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 3rem 1rem;
  text-align: center;
}

.message-page h1 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
}

.message-page > p:not(.eyebrow) {
  max-width: 52ch;
}

.message-mark,
.message-code {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--forest-dark);
  color: var(--cream);
  font: 600 1.35rem/1 var(--font-display);
}

.message-code {
  background: var(--paper-deep);
  color: var(--forest-dark);
  font-size: 1.6rem;
}

.site-footer {
  display: flex;
  width: min(calc(100% - 2rem), var(--content));
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  gap: .9rem;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.2rem;
  color: var(--muted);
  font-size: .78rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--ink);
}

.footer-brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.brand-mark-small {
  width: 34px;
  height: 34px;
  font-size: .78rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.footer-nav a {
  color: var(--ink-soft);
  font-weight: 650;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 520px) {
  .container {
    width: min(calc(100% - 2.5rem), var(--content));
  }

  .site-header,
  .site-footer {
    width: min(calc(100% - 2.5rem), var(--content));
  }

  .form-grid,
  .filter-grid,
  .field-row,
  .user-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-field-wide {
    grid-column: 1 / -1;
  }

  .visibility-options,
  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .existing-images,
  .upload-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .site-footer {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .site-footer p {
    margin-left: auto;
  }
}

@media (min-width: 720px) {
  .container {
    padding-top: 2rem;
  }

  .hero {
    padding: 2.2rem;
  }

  .hero-copy {
    padding-bottom: 2rem;
  }

  .search-panel {
    padding: 1.35rem;
  }

  .detail-gallery {
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    max-height: 540px;
  }

  .gallery-item {
    aspect-ratio: auto;
    min-height: 0;
    height: 100%;
  }

  .gallery-featured {
    grid-row: 1 / -1;
  }

  .gallery-count-1 {
    display: block;
    max-height: none;
  }

  .gallery-count-1 .gallery-featured {
    aspect-ratio: 16 / 8.5;
  }

  .gallery-count-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }

  .gallery-count-2 .gallery-featured {
    grid-row: auto;
  }

  .dashboard-heading,
  .form-heading {
    align-items: flex-end;
    flex-direction: row;
  }

  .dashboard-heading .button,
  .form-heading .button {
    flex: 0 0 auto;
  }

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

  .dashboard-card {
    grid-template-columns: 98px minmax(0, 1fr);
  }

  .dashboard-thumb {
    width: 98px;
    height: 82px;
  }

  .dashboard-status,
  .dashboard-actions {
    grid-column: 2;
  }

  .dashboard-status {
    border-top: 0;
    padding-top: 0;
  }

  .form-section {
    padding: 1.35rem;
  }

  .panel-form,
  .users-section {
    padding: 1.35rem;
  }
}

@media (min-width: 880px) {
  .site-header {
    padding: 1rem 0;
  }

  .nav-toggle {
    display: none !important;
  }

  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    gap: 2.2rem;
    align-items: stretch;
    padding: 2.6rem;
  }

  .hero-copy {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 1rem 0;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 5.4vw, 5.3rem);
  }

  .search-panel {
    align-self: center;
  }

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

  .detail-heading {
    align-items: flex-end;
    justify-content: space-between;
    flex-direction: row;
  }

  .detail-price-block {
    align-items: flex-end;
    text-align: right;
  }

  .detail-columns {
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .7fr);
    gap: 2.6rem;
  }

  .contact-card {
    position: sticky;
    top: 6.2rem;
  }

  .auth-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
    min-height: 610px;
  }

  .auth-story,
  .auth-form-panel {
    padding: 3.2rem;
  }

  .auth-form-panel {
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  .dashboard-card {
    grid-template-columns: 116px minmax(0, 1fr) 150px;
    align-items: center;
    gap: .85rem 1rem;
    padding: .75rem;
  }

  .dashboard-thumb {
    width: 116px;
    height: 88px;
  }

  .dashboard-status {
    grid-column: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }

  .dashboard-actions {
    grid-column: 1 / -1;
    padding-top: .6rem;
    border-top: 1px solid #ece6da;
  }
}

@media (min-width: 1040px) {
  .dashboard-card {
    grid-template-columns: 116px minmax(0, 1fr) 170px auto;
  }

  .dashboard-actions {
    grid-column: auto;
    justify-content: flex-end;
    border-top: 0;
    padding-top: 0;
  }

  .existing-images,
  .upload-preview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 879px) {
  .site-header[data-enhanced] {
    flex-wrap: wrap;
  }

  .site-header[data-enhanced] .nav-toggle {
    display: inline-flex;
  }

  .site-header[data-enhanced] .site-nav {
    display: none;
    width: 100%;
    align-items: stretch;
    justify-content: stretch;
    flex-direction: column;
    padding: .45rem 0 .2rem;
  }

  .site-header[data-enhanced].nav-open .site-nav {
    display: flex;
  }

  .site-header[data-enhanced] .nav-link {
    border-radius: var(--radius-sm);
    padding: .7rem .75rem;
  }

  .site-header[data-enhanced] .nav-account {
    justify-content: space-between;
    padding: .55rem .75rem 0;
    border-top: 1px solid var(--line);
  }

  .site-header[data-enhanced] .nav-user {
    align-items: flex-start;
  }
}

@media (max-width: 619px) {
  .results-header,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: .5rem;
  }

  .pagination .page-summary {
    width: 100%;
    order: 4;
    text-align: center;
  }

  .form-actions-sticky {
    border-radius: var(--radius-md);
  }

  .form-actions-sticky .button {
    flex: 1 1 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .pagination,
  .contact-card .button,
  .breadcrumbs {
    display: none;
  }

  body {
    background: white;
  }

  .container {
    width: 100%;
    padding: 0;
  }

  .detail-columns {
    display: block;
  }
}
