:root {
  --ink: #111827;
  --muted: #5b6472;
  --line: #d8dde5;
  --paper: #f7f8f6;
  --white: #ffffff;
  --taxi: #f4c430;
  --green: #12745b;
  --green-dark: #0d5140;
  --steel: #27313f;
  --danger: #b42318;
  --warning-bg: #fff6d7;
  --success-bg: #dff4ee;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.13);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(216, 221, 229, 0.78);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.nav,
.footer-inner,
.page-shell,
.hero-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: 194px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-links a:not(.button),
.language-switch {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.account-menu {
  position: relative;
}

.account-menu summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
  list-style: none;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
}

.account-menu summary:hover,
.account-menu summary.active,
.account-menu[open] summary {
  color: var(--ink);
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.account-dropdown a {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--steel);
  white-space: normal;
}

.account-dropdown a:hover {
  color: var(--ink);
  background: #f7f8f6;
}

.language-switch {
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff8df;
  font-weight: 900;
}

.button,
button.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  color: var(--white);
  background: var(--green);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 12px 30px rgba(18, 116, 91, 0.22);
}

.button:hover {
  background: var(--green-dark);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.danger {
  background: var(--danger);
  box-shadow: none;
}

.hero-shell {
  padding: 54px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--success-bg);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.page-shell {
  padding: 24px 0 64px;
}

.panel,
.card,
.listing-card,
.form-panel {
  border: 1px solid rgba(216, 221, 229, 0.9);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 35px rgba(17, 24, 39, 0.06);
}

.panel,
.form-panel {
  padding: 24px;
}

.layout-two {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 24px;
  align-items: start;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

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

.hint {
  color: var(--muted);
  font-size: 13px;
}

.checkbox-line {
  margin: 18px 0;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.checkbox-line input {
  min-height: auto;
  margin-top: 4px;
}

.alert {
  margin-bottom: 18px;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--steel);
  background: var(--warning-bg);
  font-weight: 700;
}

.alert.success {
  background: var(--success-bg);
}

.alert.error {
  color: var(--danger);
  background: #fff1f0;
}

.status-row,
.actions-row,
.tag-row,
.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.actions-row {
  margin-top: 18px;
}

.tag {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 9px;
  color: var(--steel);
  background: #eef2f6;
  font-size: 12px;
  font-weight: 900;
}

.tag.verified {
  color: var(--green-dark);
  background: var(--success-bg);
}

.tag.locked {
  color: #8a5a00;
  background: var(--warning-bg);
}

.tag.danger {
  color: var(--danger);
  background: #fff1f0;
}

.listing-grid {
  display: grid;
  gap: 14px;
}

.listing-card {
  padding: 18px;
}

.listing-card h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.listing-card p {
  color: var(--muted);
}

.listing-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sensitive-box {
  margin-top: 14px;
  border: 1px dashed rgba(18, 116, 91, 0.38);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfb;
}

.locked-box {
  margin-top: 14px;
  border: 1px dashed rgba(138, 90, 0, 0.35);
  border-radius: 8px;
  padding: 14px;
  color: #654200;
  background: var(--warning-bg);
  font-weight: 700;
}

.review-box {
  margin-top: 14px;
  border: 1px solid rgba(18, 116, 91, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfb;
}

.review-box.locked {
  border-style: dashed;
  border-color: rgba(138, 90, 0, 0.35);
  color: #654200;
  background: var(--warning-bg);
}

.collaboration-box,
.history-box {
  margin-top: 14px;
  border: 1px solid rgba(216, 221, 229, 0.95);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.collaboration-box {
  border-color: rgba(18, 116, 91, 0.28);
  background: #fbfdfb;
}

.history-box.locked {
  border-style: dashed;
  border-color: rgba(138, 90, 0, 0.35);
  color: #654200;
  background: var(--warning-bg);
}

.history-box h4 {
  margin: 14px 0 8px;
  color: var(--steel);
  font-size: 14px;
  letter-spacing: 0;
}

.history-box h4:first-of-type {
  margin-top: 6px;
}

.button-form {
  margin: 0;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.review-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-list li {
  display: grid;
  gap: 4px;
  border-top: 1px solid #eef2f6;
  padding-top: 8px;
}

.review-list.compact small {
  color: var(--muted);
  font-weight: 700;
}

.history-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-list li {
  display: grid;
  gap: 4px;
  border-top: 1px solid #eef2f6;
  padding-top: 10px;
}

.history-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.history-list small {
  color: var(--muted);
  font-weight: 700;
}

.dashboard-history .actions-row {
  margin-top: 8px;
}

.info-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f6;
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list strong {
  color: var(--steel);
}

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

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.empty {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 780px) {
  .nav,
  .footer-inner,
  .page-shell,
  .hero-shell {
    width: min(100% - 24px, 1120px);
  }

  .nav {
    min-height: auto;
    padding: 12px 0;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .brand-logo {
    width: 150px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    font-size: 13px;
    white-space: normal;
  }

  .nav-links a:not(.button),
  .language-switch,
  .account-menu summary {
    min-height: 40px;
    border: 1px solid rgba(216, 221, 229, 0.9);
    border-radius: 8px;
    padding: 0 8px;
    background: #fff;
    text-align: center;
  }

  .account-menu {
    grid-column: 1 / -1;
    width: 100%;
  }

  .account-menu summary {
    width: 100%;
  }

  .account-dropdown {
    position: static;
    min-width: 0;
    margin-top: 8px;
    box-shadow: none;
  }

  .nav-links .button {
    grid-column: 1 / -1;
    min-height: 38px;
    padding: 0 12px;
    width: 100%;
  }

  .hero-grid,
  .layout-two,
  .form-grid,
  .filters-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    padding-top: 36px;
  }

  h1 {
    font-size: 32px;
  }

  .lead {
    font-size: 17px;
  }

  .panel,
  .form-panel,
  .listing-card {
    padding: 18px;
  }

  .info-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

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

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

  .actions-row .button,
  .actions-row button {
    width: 100%;
  }

  .button-form .button {
    width: 100%;
  }

  .tag-row,
  .listing-meta,
  .status-row,
  .review-head {
    align-items: stretch;
  }

  .tag {
    justify-content: center;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: 44px;
  }
}
