:root {
  --forest: #ff4a12;
  --forest-dark: #171b18;
  --paper: #f6f6f6;
  --white: #fff;
  --line: #e1e1df;
  --text: #242528;
  --muted: #777;
  --green-soft: rgba(255, 74, 18, 0.12);
  --blue: #4a667a;
  --gold: #b99a65;
  --danger: #9a3d32;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --forest-bg: url("assets/fon-cloud-tunnel.png");
}

@media (max-width: 600px) {
  .aggregator-head { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .aggregator-mark { width: 38px; height: 38px; }
  .connection-status { display: none; }
  .aggregator-open { justify-self: end; }
  .aggregator-meta { flex-direction: column; gap: 3px; }
  .aggregator-actions { display: grid; grid-template-columns: 1fr; }
  .aggregator-create { grid-template-columns: 1fr; }
  .aggregator-create-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Manrope, Arial, sans-serif;
  background: #f6f6f6 var(--forest-bg) center/cover fixed no-repeat;
  color: var(--text);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.58)),
    var(--forest-bg) center/cover fixed no-repeat;
}
.login-card {
  width: min(420px, 100%);
  padding: 34px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.login-logo {
  display: block;
  width: min(170px, 100%);
  max-height: 96px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 18px;
}
.login-card h1 { margin: 0 0 8px; }
.login-card p, .muted { color: var(--muted); line-height: 1.5; }
.demo-pin {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--forest-dark) !important;
}
.login-card input, .login-card button {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border-radius: 8px;
}
.login-card input {
  border: 1px solid var(--line);
  padding: 0 14px;
}
.login-card button, .primary-button {
  border: 0;
  background: var(--forest);
  color: #fff;
  font-weight: 800;
}

.admin-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  background:
    linear-gradient(rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.54)),
    var(--forest-bg) center/cover fixed no-repeat;
}
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  box-shadow: 0 18px 46px rgba(23, 27, 24, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.demo-banner div { display: grid; gap: 3px; }
.demo-banner span { color: rgba(36, 37, 40, 0.68); font-size: 13px; line-height: 1.4; }
.demo-banner button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(255, 74, 18, 0.18);
}
.demo-banner button:disabled { opacity: 0.55; cursor: wait; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: 0.58; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
}
.brand-logo {
  display: block;
  width: 138px;
  max-width: 100%;
  max-height: 76px;
  height: auto;
  object-fit: contain;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.nav-item, .site-link, .admin-video-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  font-weight: 800;
}
.nav-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  margin-right: 10px;
  border-radius: 7px;
  background: rgba(45, 58, 45, 0.1);
  color: var(--forest);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.nav-icon img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
  background: var(--forest);
  color: #fff;
}
.nav-item.active .nav-icon img,
.nav-item:hover .nav-icon img {
  filter: invert(1);
}
.nav-item.active, .nav-item:hover, .site-link:hover {
  background: var(--green-soft);
  color: var(--forest);
}
.sidebar-actions {
  margin-top: auto;
  display: grid;
  gap: 10px;
}
.site-link {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 78px;
  padding: 30px 48px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--forest);
  color: #fff;
  font-size: 17px;
  box-shadow: 0 12px 28px rgba(45, 58, 45, 0.2);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.site-link::before {
  content: "ПОСМОТРЕТЬ КАК ГОСТЬ";
  position: absolute;
  top: 12px;
  left: 16px;
  color: rgba(255, 255, 255, .7);
  font-size: 10px;
  letter-spacing: .08em;
}
.site-link::after { content: "↗"; position: absolute; right: 17px; font-size: 25px; line-height: 1; }
.site-link:hover { background: var(--forest-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(45, 58, 45, 0.28); }
.admin-video-link {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(45, 58, 45, .14);
  background: #ecece8;
  color: #4d5149;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.admin-video-link:hover {
  transform: translateY(-1px);
  background: #e2e2dc;
  color: var(--forest-dark);
}

.main {
  min-width: 0;
  overflow-x: hidden;
  padding: 28px clamp(18px, 4vw, 44px);
}
.main-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
}
.main-head.is-global-tab {
  grid-template-columns: minmax(0, 1fr);
}
.main-head h1 { margin: 0 0 6px; font-size: 32px; }
.main-head p { margin: 0; color: var(--muted); }
.main-actions {
  display: flex;
  align-items: end;
  justify-content: stretch;
  gap: 10px;
  min-width: 0;
}
.object-filter {
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.object-switcher {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 7px;
  width: 100%;
  min-width: 0;
}
.object-switch {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--forest-dark);
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.object-switch:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 58, 45, 0.28);
  background: var(--green-soft);
}
.object-switch.active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
  box-shadow: 0 10px 20px rgba(45, 58, 45, 0.16);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.stat-card, .card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(10px);
}
.stat-card {
  padding: 18px;
}
.stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 32px;
}
.card { padding: 20px; }
.requests-card {
  margin-bottom: 18px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.card-head h2 { margin: 0; font-size: 22px; }

.request-badge {
  display: inline-grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: 16px;
}

.secondary-button, .icon-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}
.secondary-button { padding: 0 16px; }
.danger-button {
  min-height: 40px;
  border: 1px solid rgba(154, 61, 50, 0.28);
  border-radius: 8px;
  background: #fff;
  color: var(--danger);
  padding: 0 16px;
  font-weight: 800;
}
.danger-button:hover {
  background: rgba(154, 61, 50, 0.08);
}
.icon-button {
  width: 40px;
  font-size: 24px;
  line-height: 1;
}
.primary-button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.mini-button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
}
.mini-button:hover {
  background: var(--green-soft);
}
.month-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.booking-list, .guest-list {
  display: grid;
  gap: 10px;
}
.booking-item, .guest-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--forest);
  border-radius: 10px;
  background: #fff;
}
.booking-item.clickable {
  cursor: pointer;
}
.booking-item.clickable:hover {
  border-color: rgba(45, 58, 45, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}
.booking-item[data-status="request"] { border-left-color: #9a9a9a; background: #f7f7f7; }
.booking-item[data-status="confirmed"] { border-left-color: #00a651; background: rgba(0, 166, 81, 0.06); }
.booking-item[data-status="blocked"] { border-left-color: #777; background: #f8f8f8; }
.booking-item:has([data-source="avito"]),
.booking-item[data-source="avito"] { border-left-color: #4aa3df; background: rgba(74, 163, 223, 0.08); }
.booking-item h3, .guest-item h3 { margin: 0 0 6px; font-size: 16px; }
.booking-item p, .guest-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.object-pill {
  display: inline-flex;
  width: fit-content;
  margin: 4px 0;
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--green-soft);
  color: var(--forest);
  font-size: 11px;
  font-weight: 900;
}
.booking-date-badge {
  width: 72px;
  min-height: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--forest);
  text-align: center;
}
.booking-date-badge strong {
  font-size: 30px;
  line-height: 1;
}
.booking-date-badge span {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.booking-date-badge small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.blacklist-warning {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 7px;
  border: 1px solid rgba(154, 61, 50, 0.26);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(154, 61, 50, 0.1);
  color: var(--danger);
  font-size: 12px;
  font-weight: 900;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.two-column > *,
.tab-panel {
  min-width: 0;
}

.calendar-layout-wide {
  grid-template-columns: minmax(0, 1fr);
}

.calendar-layout-wide .booking-create-card .form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.calendar-layout-wide .booking-create-card textarea {
  min-height: 64px;
}

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

.sync-card {
  min-height: 260px;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  align-content: start;
}

.sync-card .card-head {
  margin-bottom: 0;
}

.sync-card .muted {
  min-height: 48px;
  margin: 18px 0 22px;
}

.sync-card .actions-row {
  min-height: 44px;
  align-items: center;
  margin-top: 16px;
}

.sync-card .stacked {
  min-height: 68px;
}

.aggregators-card {
  min-height: 0;
  display: block;
}

.aggregators-card .card-head .muted {
  min-height: 0;
  margin: 5px 0 0;
}

.aggregator-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.aggregator-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.aggregator-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
}

.aggregator-head::-webkit-details-marker { display: none; }
.aggregator-item[open] .aggregator-head { border-bottom: 1px solid var(--line); }

.aggregator-head > div { display: grid; gap: 2px; }
.aggregator-head > div span { color: var(--muted); font-size: 12px; }

.aggregator-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 19px;
  font-style: normal;
  font-weight: 900;
}

.aggregator-mark.avito { background: #5b62ef; }
.aggregator-mark.yandex { background: #ffcc00; color: #252525; }
.aggregator-mark.sutochno { background: #ed5b45; }
.aggregator-mark.custom { background: var(--forest); }

.connection-status {
  border-radius: 999px;
  padding: 5px 9px;
  background: #f1f1ef;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.connection-status.connected { background: #e8f4e9; color: #276b35; }

.aggregator-open {
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
}

.aggregator-open::after { content: " ↓"; }
.aggregator-item[open] .aggregator-open::after { content: " ↑"; }

.aggregator-body {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #fbfbfa;
}

.aggregator-item label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.aggregator-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.aggregator-meta strong { color: var(--text); }

.aggregator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.aggregator-actions button { min-height: 38px; }

.aggregator-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fbfbfa;
}

.aggregator-create label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.aggregator-create-actions { display: flex; gap: 8px; }

.demo-integration-note {
  margin: 14px 0 0;
  border-radius: 9px;
  padding: 11px 13px;
  background: #fff7e5;
  color: #72551e;
  font-size: 12px;
  line-height: 1.45;
}
.admin-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.object-calendar-matrix {
  display: grid;
  grid-template-columns: minmax(150px, 190px) repeat(var(--matrix-days), 72px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.matrix-corner,
.matrix-day-head,
.matrix-object-name,
.matrix-cell {
  min-height: 58px;
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.matrix-day-head,
.matrix-cell {
  width: 72px;
}
.matrix-corner,
.matrix-day-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: #f2f2f0;
  color: var(--forest-dark);
  font-size: 12px;
  font-weight: 900;
}
.matrix-corner,
.matrix-object-name {
  position: sticky;
  left: 0;
  z-index: 3;
}
.matrix-day-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.matrix-day-head.today,
.matrix-cell.today {
  box-shadow: inset 0 0 0 2px var(--gold);
}
.matrix-object-name {
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px 12px;
  background: #fbfbfa;
}
.matrix-object-name strong {
  color: var(--forest);
  font-size: 13px;
}
.matrix-object-name span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.matrix-cell {
  display: grid;
  place-items: center;
  border-top: 0;
  border-left: 0;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.matrix-cell.confirmed { background: rgba(0, 166, 81, 0.12); color: var(--forest-dark); }
.matrix-cell.request { background: #f1f1f1; color: var(--text); }
.matrix-cell.avito { background: rgba(74, 163, 223, 0.16); color: var(--text); }
.matrix-cell.blacklist { background: rgba(154, 61, 50, 0.14); color: var(--danger); }
.matrix-cell span {
  display: block;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-weekday, .cal-day {
  min-height: 86px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px;
}
.cal-weekday {
  min-height: 34px;
  background: #f2f2f2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.cal-day { background: #fff; }
.cal-day.blank { background: #fafafa; }
.cal-day.request { background: #f1f1f1; }
.cal-day.confirmed { background: rgba(0, 166, 81, 0.12); }
.cal-day.avito { background: rgba(74, 163, 223, 0.16); }
.cal-day.blacklist {
  background: rgba(154, 61, 50, 0.14);
  box-shadow: inset 0 0 0 2px rgba(154, 61, 50, 0.55);
}
.cal-day.today {
  box-shadow: inset 0 0 0 2px var(--gold);
}
.cal-day button {
  width: 100%;
  min-height: 26px;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 800;
}
.cal-chip {
  display: block;
  width: 100%;
  border: 0;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 6px;
  padding: 4px 6px;
  background: rgba(45, 58, 45, 0.12);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-chip:hover {
  box-shadow: inset 0 0 0 1px rgba(45, 58, 45, 0.25);
  background: #fff;
  color: var(--text);
}

.cal-chip[data-source="avito"] {
  background: rgba(74, 163, 223, 0.22);
  color: var(--text);
}

.cal-chip[data-source="avito"]:hover {
  background: #fff;
  color: var(--text);
}

.cal-chip.blacklist {
  background: rgba(154, 61, 50, 0.2);
  color: var(--text);
}

.cal-chip.blacklist:hover {
  background: #fff;
  color: var(--text);
}

.cal-date-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-top: 6px;
}

.cal-price {
  display: inline-flex;
  width: auto !important;
  min-height: 24px !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px;
  background: #fff !important;
  color: #00a651;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 900;
}

.cal-price:hover {
  background: var(--green-soft) !important;
  color: #008f45;
}

.cal-price.hot {
  border-color: rgba(217, 48, 37, 0.25) !important;
  color: #d93025;
}

.cal-price.hot:hover {
  background: rgba(217, 48, 37, 0.08) !important;
  color: #b3261e;
}

.price-compact { display: none; }

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
}
.legend-dot.confirmed { background: #00a651; }
.legend-dot.avito { background: #4aa3df; }
.legend-dot.request { background: #9a9a9a; }
.legend-dot.blacklist { background: var(--danger); }

.price-dialog {
  width: min(560px, calc(100vw - 32px));
}

.price-edit-row {
  display: flex;
  align-items: end;
  gap: 18px;
}

.price-value-label {
  width: min(160px, 55vw);
}

.price-value-label input {
  font-weight: 900;
}

.price-value-label.is-hot input {
  border-color: rgba(217, 48, 37, 0.45);
  background: rgba(217, 48, 37, 0.08);
  color: #d93025;
}

.hot-option {
  position: relative;
  display: inline-grid !important;
  width: 64px;
  height: 46px;
  grid-template-columns: 30px 18px;
  align-items: center;
  gap: 8px;
  color: var(--text);
  cursor: pointer;
}

.hot-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hot-flame {
  font-size: 28px;
  line-height: 1;
  filter: grayscale(1);
  opacity: 0.55;
}

.hot-dot {
  width: 18px;
  height: 18px;
  border: 2px solid #cfcfcb;
  border-radius: 50%;
  background: #fff;
}

.hot-option input:checked + .hot-flame {
  filter: none;
  opacity: 1;
}

.hot-option input:checked + .hot-flame + .hot-dot {
  border-color: #d93025;
  box-shadow: inset 0 0 0 4px #fff;
  background: #d93025;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-grid label, .stacked {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.form-grid input, .form-grid select, .form-grid textarea, .stacked input, .stacked select, .search-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--text);
  outline: none;
}
.form-grid textarea { min-height: 86px; resize: vertical; }
.full { grid-column: 1 / -1; }

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

.listing-address-grid {
  display: grid;
  grid-template-columns: minmax(1.2fr, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.listing-metrics-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.objects-card {
  margin-bottom: 18px;
}
.object-summary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.object-summary-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
  background: #fff;
  color: var(--text);
  text-align: left;
}
.object-summary-card span {
  color: var(--forest);
  font-weight: 900;
}
.object-summary-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}
.object-summary-card strong {
  color: var(--muted);
  font-size: 12px;
}
.object-summary-card small {
  color: var(--forest-dark);
  font-size: 12px;
  font-weight: 900;
}
.object-summary-card.active,
.object-summary-card:hover {
  border-color: rgba(45, 58, 45, 0.35);
  background: var(--green-soft);
}
.object-summary-card.active {
  box-shadow: inset 0 0 0 2px rgba(45, 58, 45, 0.2);
}

.archived-objects-panel {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.archived-objects-panel h3 {
  margin: 0 0 6px;
  color: var(--forest);
  font-size: 16px;
}

.archived-object-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.archived-object-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fbfbfa;
}

.archived-object-item div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.archived-object-item strong {
  color: var(--forest-dark);
}

.archived-object-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.form-actions .primary-button.full {
  flex: 1 1 100%;
  width: 100%;
}

#deleteObjectButton {
  flex: 0 0 auto;
  min-width: 160px;
  white-space: nowrap;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}

.search-input { max-width: 320px; }
.guest-item { cursor: pointer; }
.guest-item:hover { border-color: var(--forest); }
.blacklist-list {
  display: grid;
  gap: 10px;
}
.blacklist-form-card {
  margin-bottom: 18px;
}
.blacklist-list-card {
  width: 100%;
}
.blacklist-item {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(154, 61, 50, 0.2);
  border-left: 5px solid var(--danger);
  border-radius: 10px;
  padding: 14px;
  background: rgba(154, 61, 50, 0.06);
}
.blacklist-item-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.blacklist-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.blacklist-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.blacklist-item p + p {
  margin-top: 5px;
}
.blacklist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.blacklist-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(242, 242, 242, 0.92);
}
.blacklist-inline-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.blacklist-inline-form input,
.blacklist-inline-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--text);
  outline: none;
}
.blacklist-inline-form textarea {
  min-height: 76px;
  resize: vertical;
}
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.photo-preview {
  grid-column: 1 / -1;
  width: 100%;
  max-height: 260px;
  border-radius: 10px;
  object-fit: cover;
  background: #eee;
}

.price-panel,
.contact-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.price-panel h2,
.contact-panel h2 {
  margin: 0;
  font-size: 22px;
}

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

.contact-fields-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.label-with-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.info-tip {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(45, 58, 45, 0.3);
  border-radius: 50%;
  background: #fff;
  color: var(--forest);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  cursor: help;
  outline: none;
}

.info-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 30;
  width: min(280px, calc(100vw - 56px));
  padding: 11px 13px;
  border-radius: 9px;
  background: #263428;
  color: #fff;
  box-shadow: 0 10px 26px rgba(20, 31, 22, 0.24);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  transform: translate(-50%, 4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.info-tip:hover::after,
.info-tip:focus::after,
.info-tip:focus-visible::after {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.widget-view-panel,
.widget-color-panel,
.booking-mode-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.widget-view-panel h2,
.widget-color-panel h2,
.booking-mode-panel h2 {
  margin: 0;
  font-size: 22px;
}

.settings-toggle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.payment-full-note {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: rgba(45, 58, 45, 0.06);
}

.payment-full-note strong {
  color: var(--text);
}

.payment-full-note span {
  color: var(--muted);
  line-height: 1.45;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  width: min(100%, 420px);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.booking-mode-panel .segmented-control {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 660px);
}

.segmented-control label {
  margin: 0;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-control span {
  display: grid;
  min-height: 40px;
  place-items: center;
  border-radius: 7px;
  padding: 0 12px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}

.segmented-control input:checked + span {
  background: var(--forest);
  color: #fff;
}

.widget-color-control {
  display: grid;
  grid-template-columns: 92px minmax(0, 150px);
  gap: 10px;
  align-items: end;
}

.widget-color-control label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.widget-color-control input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

.widget-color-control input[type="text"] {
  text-transform: uppercase;
}

.price-days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  gap: 10px;
}

.services-editor {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.service-cards {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.service-card-admin {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.service-card-admin > img {
  width: 160px;
  height: 132px;
  border-radius: 10px;
  object-fit: cover;
  background: #eee;
}

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

.service-card-admin p {
  margin: 0 0 10px;
  color: var(--muted);
}

.service-card-admin strong {
  display: block;
  margin-bottom: 10px;
  color: var(--forest);
}

.service-card-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.service-card-photos img {
  width: 46px;
  height: 46px;
  border-radius: 7px;
  object-fit: cover;
  background: #eee;
}

.service-edit-form {
  margin-top: 8px;
}

.service-edit-photos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.service-edit-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  object-fit: cover;
  background: #eee;
}

.service-edit-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
}

.service-edit-dialog::backdrop {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
}

.service-edit-dialog h2 {
  margin-top: 0;
}

.service-create-card {
  margin-top: 18px;
}

.service-editor {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.service-editor img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  background: #eee;
}

.service-fields {
  display: grid;
  grid-template-columns: 1fr 120px 130px;
  gap: 8px;
}

.service-fields input,
.service-fields select,
.service-fields textarea {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.service-fields textarea {
  grid-column: 1 / -1;
  min-height: 64px;
  resize: vertical;
}

.service-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-card {
  margin-top: 18px;
}

.upload-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.upload-button input {
  display: none;
}

.photo-dropzone {
  display: grid;
  gap: 8px;
  min-height: 132px;
  align-content: center;
  border: 1.5px dashed rgba(45, 58, 45, 0.32);
  border-radius: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.74);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.photo-dropzone:hover,
.photo-dropzone.is-dragover {
  border-color: var(--forest);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(45, 58, 45, 0.12);
}

.photo-dropzone input {
  display: none;
}

.photo-dropzone-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.photo-dropzone-text {
  color: var(--muted);
  line-height: 1.45;
}

.photo-dropzone-status {
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
}

.gallery-editor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.upload-preview:empty {
  display: none;
}

.logo-editor {
  display: grid;
}

.background-editor {
  display: grid;
}

.logo-preview {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}

.logo-preview img {
  width: min(190px, 50%);
  max-height: 112px;
  height: auto;
  object-fit: contain;
}

.background-preview {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}

.background-preview > span {
  width: 180px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
}

.gallery-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.gallery-item[draggable="true"] {
  cursor: grab;
}

.gallery-item[draggable="true"]:active {
  cursor: grabbing;
}

.gallery-item.is-dragging {
  opacity: 0.58;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eee;
}

.drag-handle {
  display: block;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.gallery-item button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--danger);
  font-weight: 800;
}

.upload-preview .gallery-item button {
  color: var(--forest);
  cursor: default;
}

.phone-action {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--forest);
  font-weight: 800;
}

.phone-text {
  border-bottom: 1px dashed rgba(45, 58, 45, 0.5);
}

.messenger-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.messenger-actions a,
.messenger-actions button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 5px 9px;
  color: var(--text);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}

.messenger-actions a:hover,
.messenger-actions button:hover {
  background: var(--green-soft);
  color: var(--forest);
}

.guest-dialog,
.booking-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 48px));
  border: 0;
  border-radius: 14px;
  padding: 30px;
  overflow: auto;
  box-shadow: var(--shadow);
}

#editBookingDialog {
  width: min(860px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  padding: 22px 30px 24px;
  overflow: hidden;
}

#editBookingDialog h2 {
  margin: 18px 0 22px;
}

#editBookingDialog .form-grid {
  gap: 9px 14px;
}

#editBookingDialog .form-grid label {
  gap: 5px;
}

#editBookingDialog .form-grid input,
#editBookingDialog .form-grid select,
#editBookingDialog .form-grid textarea {
  min-height: 38px;
  padding: 8px 10px;
}

#editBookingDialog .form-grid textarea {
  min-height: 68px;
}

.date-extend-field {
  grid-template-columns: minmax(0, 1fr) auto;
}

.date-extend-field input {
  grid-column: 1 / -1;
}

.date-extend-field .mini-button {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

#editBookingDialog .form-message {
  min-height: 16px;
}

#extendBookingOneDay {
  min-height: 30px;
  justify-self: start;
  padding: 0 12px;
}

.guest-dialog::backdrop,
.booking-dialog::backdrop { background: rgba(0, 0, 0, 0.3); }
.admin-video-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-height: min(88vh, 760px);
  border: 0;
  border-radius: 18px;
  padding: 28px;
  background: #fff;
  opacity: 1;
  box-shadow: 0 26px 70px rgba(26, 33, 24, .28);
}
.admin-video-dialog::backdrop { background: rgba(0, 0, 0, .34); }
.admin-video-dialog h2 {
  margin: 0 48px 20px 0;
  color: var(--forest);
  font-size: 28px;
  line-height: 1.2;
}
.admin-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(45, 58, 45, .16);
  border-radius: 14px;
  background:
    linear-gradient(rgba(24, 32, 22, .35), rgba(24, 32, 22, .48)),
    url("uploads/demo-house-1.png") center / cover no-repeat,
    #20251d;
}
.admin-video-frame.is-loaded { background: #10150e; }
.admin-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.admin-video-start {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.admin-video-start span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--forest);
  font-size: 32px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .22);
  text-indent: 5px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.admin-video-start:hover span {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .26);
}
.guest-dialog .booking-list {
  margin-top: 18px;
}
.guest-dialog .booking-item {
  grid-template-columns: 1fr auto;
  padding: 12px 14px;
}
.booking-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.day-bookings-dialog h2 { margin: 4px 0 18px; }
.day-bookings-list {
  display: grid;
  gap: 10px;
}
.day-booking-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  color: var(--text);
  text-align: left;
}
.day-booking-option:hover { background: var(--green-soft); }
.day-booking-option span { display: grid; gap: 4px; }
.day-booking-option strong { font-size: 15px; }
.day-booking-option small { color: var(--muted); }
.day-booking-option b { color: var(--forest); font-size: 24px; }
.detail-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}
.detail-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.detail-box strong {
  font-size: 15px;
}
.detail-box.full {
  grid-column: 1 / -1;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.back-button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--forest);
  padding: 0 12px;
  font-weight: 900;
}
.dialog-close {
  float: right;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  font-size: 22px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--forest);
  color: #fff;
  box-shadow: var(--shadow);
  visibility: hidden;
  opacity: 0;
  transform: translateY(calc(100% + 40px));
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0s linear 0.2s;
}
.toast.show { visibility: visible; opacity: 1; transform: translateY(0); transition-delay: 0s; }

@media (max-width: 980px) {
  .admin-app { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
  }
  .sidebar nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .stats-grid, .two-column, .sync-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .admin-app { display: block; }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 10px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  }
  .brand-logo {
    width: 92px;
    max-height: 48px;
  }
  .sidebar nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .nav-item {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 10px;
    scroll-snap-align: start;
    white-space: nowrap;
    font-size: 13px;
  }
  .nav-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    margin-right: 6px;
  }
  .sidebar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 0;
  }
  .site-link,
  .admin-video-link {
    min-height: 44px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
  }
  .site-link {
    justify-content: center;
    box-shadow: none;
  }
  .site-link::before,
  .site-link::after {
    display: none;
  }
  .main { padding: 18px 10px 42px; }
  .demo-banner { flex-direction: column; align-items: stretch; }
  .demo-banner button { width: 100%; }
  .main-head {
    grid-template-columns: 1fr;
    margin-bottom: 16px;
  }
  .main-head h1 { font-size: 28px; }
  .card-head { flex-direction: column; align-items: stretch; }
  .main-actions {
    flex-basis: auto;
    width: 100%;
  }
  .object-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
  .card { padding: 14px; }
  .calendar-card { padding: 12px 8px; }
  .calendar-card .card-head {
    align-items: center;
    text-align: center;
  }
  .month-controls {
    width: 100%;
    justify-content: space-between;
  }
  .month-controls strong { font-size: 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .listing-metrics-grid,
  .listing-address-grid,
  .contact-fields-grid,
  .settings-toggle-row {
    grid-template-columns: 1fr;
  }
  .admin-calendar { border-radius: 8px; }
  .cal-weekday {
    min-height: 28px;
    padding: 6px 2px;
    text-align: center;
    font-size: 10px;
  }
  .cal-day {
    position: relative;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
  }
  .cal-day > button[data-date] {
    height: 100%;
    min-height: 0;
    padding: 0;
    text-align: center;
    font-size: 15px;
  }
  .cal-date-tools,
  .cal-chip { display: none; }
  .cal-day.request::after,
  .cal-day.confirmed::after,
  .cal-day.avito::after,
  .cal-day.blacklist::after {
    display: none;
  }
  .calendar-legend {
    justify-content: center;
    gap: 8px 12px;
    margin-top: 12px;
    font-size: 10px;
  }
  .guest-dialog,
  .booking-dialog,
  #editBookingDialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    margin: auto;
    padding: 20px;
    overflow: auto;
  }
  #editBookingDialog h2 { margin: 10px 0 16px; }
  .dialog-close {
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .service-editor, .service-fields { grid-template-columns: 1fr; }
  .service-editor img { width: 100%; height: 150px; }
  .service-card-admin { grid-template-columns: 1fr; }
  .service-card-admin > img { width: 100%; height: 180px; }
  .booking-item {
    grid-template-columns: minmax(0, 1fr) 62px;
  }
  .booking-date-badge {
    width: 62px;
    min-height: 68px;
  }
  .booking-date-badge strong {
    font-size: 26px;
  }
  .background-preview {
    grid-template-columns: 1fr;
  }
  .background-preview > span {
    width: 100%;
  }
  .blacklist-item-main,
  .blacklist-inline-form {
    grid-template-columns: 1fr;
  }
  .blacklist-actions {
    justify-content: flex-start;
  }
  .price-days-grid { grid-template-columns: 1fr 1fr; }
}

body { font-family: "Trebuchet MS", Verdana, sans-serif; }
.standalone-login { align-items: center; background: linear-gradient(145deg,#eef6fb,#fff4ed); display: flex; inset: 0; justify-content: center; padding: 24px; position: fixed; z-index: 9999; }
.standalone-login.hidden { display: none; }
.standalone-login-card { background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.9); border-radius: 28px; box-shadow: 0 28px 80px rgba(24,35,31,.16); display: grid; gap: 14px; max-width: 420px; padding: 34px; width: 100%; }
.standalone-login-card img { max-height: 52px; max-width: 180px; object-fit: contain; }
.standalone-login-card span { color: #ff4a12; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.standalone-login-card h1,.standalone-login-card p { margin: 0; }
.standalone-login-card label { display: grid; font-size: 13px; font-weight: 700; gap: 7px; }
.standalone-login-card input { border: 1px solid #d8dedb; border-radius: 12px; font: inherit; padding: 13px 14px; }
.standalone-login-card button { background: #344e41; border: 0; border-radius: 12px; color: #fff; cursor: pointer; font: inherit; font-weight: 800; padding: 14px; }
.standalone-login-card small { color: #b13d2a; min-height: 18px; }
