:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-strong: #f8f7f3;
  --ink: #111111;
  --muted: #676760;
  --line: #dfddd5;
  --charcoal: #0f0f0f;
  --charcoal-soft: #181818;
  --blue: #0074ff;
  --blue-dark: #005ed1;
  --blue-soft: #eef6ff;
  --green: #16845f;
  --green-soft: #eaf8f1;
  --red: #c2413b;
  --red-soft: #fff1f0;
  --amber: #b7791f;
  --amber-soft: #fff8e5;
  --shadow: 0 18px 45px rgba(17, 17, 17, 0.09);
  --shadow-soft: 0 8px 22px rgba(17, 17, 17, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 92px 0 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/ownerslot-icon-black.png");
  background-position: center 42%;
  background-repeat: no-repeat;
  background-size: min(880px, 78vw);
  opacity: 0.045;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 370px minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 15, 15, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 2px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  text-align: left;
  transition: transform 160ms ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-logo {
  display: block;
  width: min(336px, 100%);
  height: 62px;
  object-fit: contain;
  object-position: left center;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: #fff;
  padding: 0 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.searchbar:focus-within {
  border-color: rgba(0, 116, 255, 0.3);
  box-shadow: 0 0 0 4px rgba(0, 116, 255, 0.12);
}

.search-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid var(--muted);
  border-radius: 50%;
  opacity: 0.72;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: var(--muted);
  transform: rotate(45deg);
}

.searchbar input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon {
  transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon::before {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon::after {
  top: 0;
  transform: rotate(-90deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.account-badge {
  display: inline-flex;
  align-items: center;
  max-width: 190px;
  min-height: 40px;
  border: 1px solid rgba(0, 116, 255, 0.2);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notification-count {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 800;
}

.primary-button,
.ghost-button,
.danger-button,
.outline-button,
.text-button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-button {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 116, 255, 0.24);
}

.primary-button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.ghost-button {
  background: transparent;
  color: #344054;
}

.ghost-button:hover,
.ghost-button.active {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.outline-button {
  border: 1px solid var(--line);
  background: #fff;
  color: #344054;
}

.outline-button:hover {
  border-color: rgba(0, 116, 255, 0.28);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.text-button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
}

.text-button:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.danger-button {
  background: var(--red-soft);
  color: var(--red);
}

.danger-button:hover {
  background: #fee4e2;
}

.topbar .ghost-button {
  color: rgba(255, 255, 255, 0.82);
}

.topbar .ghost-button:hover,
.topbar .ghost-button.active {
  background: rgba(0, 116, 255, 0.22);
  color: #ffffff;
}

.topbar .ghost-button.active {
  background: var(--blue);
}

.topbar .outline-button {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.topbar .outline-button:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: #ffffff;
  color: var(--ink);
}

.topbar #createAccountButton {
  border-color: #f59e0b;
  background: #f59e0b;
  color: #111111;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.24);
}

.topbar #createAccountButton:hover {
  border-color: #fbbf24;
  background: #fbbf24;
  color: #111111;
}

.topbar .account-badge {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.wide {
  width: 100%;
}

main {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 22px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  max-width: none;
  margin: 0;
  padding: 20px max(22px, calc((100vw - 1440px) / 2 + 22px)) 22px;
  border-top: 0;
  background: var(--charcoal);
  color: #ffffff;
}

.footer-brand img {
  display: block;
  width: min(170px, 100%);
  height: auto;
  margin-bottom: 6px;
}

.footer-brand p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.4;
}

.footer-brand .company-note {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.footer-columns section {
  display: grid;
  align-content: start;
  gap: 5px;
}

.footer-columns h2 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 15px;
}

.footer-columns a,
.footer-columns span,
.footer-link-button {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  text-decoration: none;
}

.footer-columns a:hover,
.footer-link-button:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-link-button {
  width: max-content;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.sidebar {
  position: sticky;
  top: 86px;
  align-self: start;
}

.sidebar-block,
.listing-form,
.management-card,
.dialog-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.sidebar-block {
  padding: 20px;
  margin-bottom: 16px;
}

.sidebar-block h2 {
  margin: 0 0 16px;
  font-size: 16px;
}

.filter-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.filter-panel summary::-webkit-details-marker {
  display: none;
}

.filter-panel summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.filter-panel[open] summary::after {
  transform: rotate(225deg);
}

.filter-content {
  padding-top: 16px;
}

.filter-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.filter-range > span {
  grid-column: 1 / -1;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.filter-range label {
  margin-bottom: 0;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 116, 255, 0.12);
}

.field-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.verification-card p,
.verification-card li,
.section-heading p,
.form-layout p,
.owner-check span,
.listing-meta,
.empty-state p,
.status-note,
.seller-details {
  color: var(--muted);
}

.verification-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.verification-card {
  border-color: rgba(0, 116, 255, 0.22);
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
}

.verification-card h2 {
  color: var(--blue-dark);
}

.verification-card p {
  color: #164a8b;
  font-weight: 800;
}

.verification-card li {
  color: #24598f;
  font-weight: 700;
}

.verification-card li::marker {
  color: var(--blue);
}

.view {
  display: none;
  min-width: 0;
}

.active-view {
  display: block;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0;
  line-height: 1.05;
}

.section-heading p,
.form-layout p {
  margin: 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.55;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.listing-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.listing-card:hover {
  border-color: rgba(0, 116, 255, 0.22);
  box-shadow: 0 22px 50px rgba(16, 24, 40, 0.13);
  transform: translateY(-2px);
}

.sold-listing-card {
  border-color: rgba(17, 17, 17, 0.18);
  background: #f7f7f5;
}

.sold-listing-card .listing-image img {
  filter: grayscale(0.85);
  opacity: 0.74;
}

.listing-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #cbd5e1, #eef2f7);
}

.listing-photo-button,
.gallery-photo-button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.listing-photo-button {
  height: 100%;
}

.gallery-photo-button {
  aspect-ratio: 4 / 3;
}

.listing-photo-button:focus-visible,
.gallery-photo-button:focus-visible {
  outline: 3px solid rgba(0, 116, 255, 0.5);
  outline-offset: -3px;
}

.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 260ms ease;
}

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

.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.82);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.sold-badge {
  background: rgba(194, 65, 59, 0.94);
}

.listing-body {
  padding: 16px;
}

.price {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 800;
}

.listing-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
}

.listing-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: var(--surface-strong);
  padding: 0 8px;
}

.listing-card .primary-button {
  width: 100%;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(320px, 1.25fr);
  gap: 22px;
}

.owner-check {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
  padding: 16px;
}

.listing-form {
  padding: 20px;
}

.image-preview {
  margin: -2px 0 16px;
}

.preview-grid,
.contact-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.preview-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  aspect-ratio: 1;
}

.preview-grid img,
.contact-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.preview-grid figcaption {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.photo-remove:hover {
  background: var(--red);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.confirm-box {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 12px;
  margin-bottom: 14px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.legal-checkbox {
  margin: 4px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 12px;
  line-height: 1.5;
}

.legal-checkbox .text-button {
  display: inline;
  min-height: auto;
  white-space: normal;
}

.legal-policy {
  max-width: 900px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.legal-policy h2 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.legal-policy p {
  margin: 0 0 12px;
  color: #475467;
  line-height: 1.65;
}

.legal-policy a {
  color: var(--blue-dark);
  font-weight: 700;
}

.management-list {
  display: grid;
  gap: 16px;
}

.notification-list {
  display: grid;
  gap: 10px;
  max-height: min(520px, 65vh);
  overflow-y: auto;
}

.notification-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 12px;
}

.notification-item p {
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 700;
}

.notification-item span {
  color: var(--muted);
  font-size: 12px;
}

.unread-notification {
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
}

.management-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.sold-management-card {
  background: #f7f7f5;
}

.sold-management-card img {
  filter: grayscale(0.85);
  opacity: 0.74;
}

.management-card img {
  width: 130px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  background: #e4e7ec;
}

.management-card h3 {
  margin: 0 0 6px;
}

.account-name-button {
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  padding: 0;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.account-name-button:hover {
  text-decoration: underline;
}

.account-card {
  grid-template-columns: 64px minmax(0, 1fr) auto;
}

.account-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 24px;
  font-weight: 800;
}

.management-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.status-approved {
  background: var(--green-soft);
  color: var(--green);
}

.status-pending {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-rejected {
  background: var(--red-soft);
  color: var(--red);
}

.status-sold {
  background: var(--red-soft);
  color: var(--red);
}

.status-unlisted {
  background: #eef2f6;
  color: #475467;
}

.status-active {
  background: var(--green-soft);
  color: var(--green);
}

.status-suspended {
  background: var(--red-soft);
  color: var(--red);
}

.hidden {
  display: none !important;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

dialog {
  width: min(520px, calc(100% - 28px));
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: transparent;
}

.wide-dialog {
  width: min(980px, calc(100% - 28px));
}

dialog::backdrop {
  background: rgba(16, 24, 40, 0.5);
  backdrop-filter: blur(4px);
}

.dialog-card {
  position: relative;
  padding: 24px;
  box-shadow: 0 28px 70px rgba(16, 24, 40, 0.18);
}

.dialog-card h2 {
  margin: 0 0 8px;
}

.dialog-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-panel {
  margin: 0;
}

.auth-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.verification-targets {
  display: grid;
  margin: 0 0 14px;
  border: 1px solid rgba(0, 116, 255, 0.2);
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  padding: 12px;
  font-size: 14px;
  font-weight: 800;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-strong);
  color: #344054;
  font-size: 24px;
  line-height: 1;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.contact-gallery {
  margin-bottom: 16px;
}

.contact-gallery .gallery-photo-button {
  overflow: hidden;
  border-radius: 8px;
}

.contact-gallery img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: #e4e7ec;
}

.contact-gallery .gallery-photo-button:first-child {
  grid-column: span 3;
  grid-row: span 2;
}

.photo-dialog {
  width: min(1120px, calc(100% - 28px));
}

.photo-dialog-card {
  position: relative;
  display: grid;
  gap: 12px;
  border-radius: 10px;
  background: #0b1220;
  padding: 16px;
  box-shadow: 0 30px 80px rgba(16, 24, 40, 0.34);
}

.photo-dialog-card img {
  display: block;
  width: 100%;
  max-height: 78vh;
  border-radius: 8px;
  object-fit: contain;
  background: #020617;
}

.photo-dialog-card p {
  margin: 0;
  color: #f8fafc;
  font-weight: 800;
  text-align: center;
}

.photo-close-button {
  background: rgba(255, 255, 255, 0.92);
}

.review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding-right: 36px;
}

.review-header h2 {
  margin: 10px 0 6px;
  font-size: 28px;
  line-height: 1.1;
}

.review-header p {
  margin: 0;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.review-gallery {
  margin-bottom: 20px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.review-grid h3,
.review-description h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.detail-list {
  display: grid;
  gap: 8px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 10px 12px;
}

.detail-row strong {
  color: #344054;
}

.detail-row span {
  color: var(--muted);
  text-align: right;
}

.review-description {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 12px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 36px));
  border-radius: 8px;
  background: #101828;
  color: #fff;
  padding: 13px 16px;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.dialog-toast {
  position: absolute;
  top: 54px;
  right: 16px;
  bottom: auto;
  max-width: calc(100% - 32px);
  z-index: 30;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .top-actions {
    flex-wrap: wrap;
    align-items: stretch;
    overflow: visible;
  }

  .top-actions > * {
    min-width: 0;
  }

  main {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .filter-panel {
    margin-bottom: 10px;
    padding: 12px 14px;
  }

  .filter-content {
    padding-top: 12px;
  }

  .form-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body::before {
    inset: 118px 0 0;
    background-position: center 150px;
    background-size: min(560px, 118vw);
    opacity: 0.04;
  }

  .topbar,
  main,
  .site-footer {
    padding: 12px;
  }

  .site-footer {
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .footer-brand img {
    width: min(118px, 100%);
    margin-bottom: 3px;
  }

  .footer-brand p:not(.company-note) {
    display: none;
  }

  .footer-brand .company-note {
    margin-top: 0;
    font-size: 11px;
  }

  .footer-columns section {
    gap: 3px;
  }

  .footer-columns h2 {
    display: none;
  }

  .footer-columns a,
  .footer-columns span,
  .footer-link-button {
    font-size: 12px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
  }

  main {
    gap: 10px;
  }

  .verification-card {
    display: none;
  }

  .filter-panel {
    box-shadow: none;
  }

  .filter-panel:not([open]) {
    border-color: rgba(0, 116, 255, 0.22);
    background: var(--blue-soft);
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .brand-logo {
    width: min(258px, calc(100vw - 86px));
    height: 48px;
  }

  .searchbar {
    grid-column: 1 / -1;
    min-height: 38px;
    padding: 0 12px;
  }

  .mobile-menu-toggle {
    display: grid;
    grid-column: 2;
    grid-row: 1;
  }

  .top-actions {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    left: 12px;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: min(420px, calc(100vh - 120px));
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    padding: 10px;
    box-shadow: 0 20px 44px rgba(16, 24, 40, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .top-actions.menu-open {
    display: grid;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .top-actions .primary-button,
  .top-actions .ghost-button,
  .top-actions .outline-button {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
    text-align: left;
  }

  .topbar .top-actions .ghost-button {
    color: #303030;
  }

  .topbar .top-actions .ghost-button:hover,
  .topbar .top-actions .ghost-button.active {
    background: var(--blue-soft);
    color: var(--blue-dark);
  }

  .topbar .top-actions .ghost-button.active {
    background: var(--blue);
    color: #ffffff;
  }

  .topbar .top-actions .outline-button {
    border-color: var(--line);
    background: #ffffff;
    color: #303030;
  }

  .topbar .top-actions .outline-button:hover {
    border-color: rgba(0, 116, 255, 0.28);
    background: var(--blue-soft);
    color: var(--blue-dark);
  }

  .topbar .top-actions .account-badge {
    border-color: rgba(0, 116, 255, 0.2);
    background: var(--blue-soft);
    color: var(--blue-dark);
  }

  .account-badge {
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    min-height: 40px;
    grid-column: auto;
    padding: 0 12px;
    font-size: 14px;
  }

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

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .contact-gallery .gallery-photo-button:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .review-header,
  .review-grid,
  .detail-row {
    display: grid;
  }

  .review-actions {
    justify-content: stretch;
  }

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

  .detail-row span {
    text-align: left;
  }

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

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

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

  .account-avatar {
    width: 54px;
    height: 54px;
  }

  .management-card img {
    width: 92px;
  }

  .management-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .management-actions button {
    flex: 1 1 120px;
  }
}
