:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --text: #141414;
  --muted: #6f737a;
  --line: #dedfe3;
  --primary: #e31b23;
  --primary-strong: #b51219;
  --accent: #111111;
  --soft: #fff1f1;
  --good: #0e7a4f;
  --warn: #b36b00;
  --cool: #2764bd;
  --shadow: 0 18px 50px rgba(18, 22, 31, 0.08);
}

body[data-skin="estate"] {
  --primary: #0f6b4f;
  --primary-strong: #094733;
  --accent: #d8a031;
  --soft: #eff8f3;
}

body[data-skin="coastal"] {
  --primary: #087ea4;
  --primary-strong: #055c78;
  --accent: #18a999;
  --soft: #edf9fb;
}

body[data-skin="midnight"] {
  --primary: #3454d1;
  --primary-strong: #1f3490;
  --accent: #121826;
  --soft: #eff2ff;
}

body[data-skin="copper"] {
  --primary: #b8572b;
  --primary-strong: #803a1c;
  --accent: #23201d;
  --soft: #fff3ec;
}

body[data-skin="orchid"] {
  --primary: #9b3bc2;
  --primary-strong: #6f248d;
  --accent: #202038;
  --soft: #f8effc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 30px;
  background: var(--accent);
  color: white;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 62px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  font-weight: 900;
}

.brand-logo {
  width: 210px;
  max-width: 100%;
  height: 74px;
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: white;
  object-fit: contain;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 22px;
}

.brand span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.primary-action {
  height: 44px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 800;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  padding: 13px 16px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  background: white;
  color: var(--accent);
}

.plan-card {
  margin-top: auto;
  padding: 20px;
  border-radius: 8px;
  background: white;
  color: var(--text);
}

.plan-card span,
.plan-card p {
  color: var(--muted);
}

.plan-card strong {
  display: block;
  margin: 6px 0;
}

.shell {
  min-height: 100vh;
  margin-left: 280px;
  padding: 28px 32px 48px;
}

.topbar,
.panel-header,
.toolbar,
.skin-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  margin-bottom: 0;
  font-size: 28px;
}

h2 {
  font-size: 18px;
}

.topbar-actions,
.segmented,
.pricing-grid {
  display: flex;
  gap: 10px;
}

.ghost,
.avatar,
.toolbar button,
.panel button,
.listing-card button,
.event button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.avatar {
  width: 42px;
  padding: 0;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.profile-menu-wrap {
  position: relative;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 8;
  width: 180px;
  display: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.profile-menu.open {
  display: grid;
}

.profile-menu button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.profile-menu button:hover {
  background: var(--soft);
}

.skin-strip {
  justify-content: flex-start;
  margin-bottom: 24px;
  padding: 10px;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.skin-strip.in-settings {
  box-shadow: none;
  border: 1px solid var(--line);
}

.skin-strip span {
  margin: 0 4px 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.skin {
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.skin.active {
  background: var(--soft);
  color: var(--primary);
  font-weight: 800;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.metric,
.panel,
.phone-preview,
.price-card,
.listing-card,
.address-modal {
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric {
  padding: 22px;
}

.metric span,
.metric small {
  display: block;
  color: var(--muted);
}

.metric strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 34px;
}

.dashboard-grid,
.builder-grid,
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
  gap: 18px;
}

.panel {
  padding: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.hot {
  background: #ffe8e8;
  color: var(--primary-strong);
}

.warm {
  background: #fff4dc;
  color: var(--warn);
}

.cool {
  background: #eaf2ff;
  color: var(--cool);
}

.phone-preview {
  display: grid;
  place-items: center;
  padding: 22px;
}

.phone {
  width: min(100%, 330px);
  padding: 20px;
  border: 10px solid var(--accent);
  border-radius: 32px;
  background: white;
}

.phone-top {
  width: 70px;
  height: 7px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: var(--line);
}

.phone label,
.panel label {
  display: block;
  margin: 13px 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
}

.phone input {
  width: 100%;
}

.segmented button {
  flex: 1;
  min-height: 38px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
}

.segmented .selected,
.submit,
.toolbar button,
.panel button:last-child {
  background: var(--primary);
  color: white;
  box-shadow: none;
}

.submit {
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  border-radius: 999px;
  font-weight: 800;
}

.toolbar {
  justify-content: flex-start;
  margin-bottom: 18px;
}

.toolbar input {
  width: min(420px, 100%);
}

.listing-grid,
.schedule {
  display: grid;
  gap: 16px;
}

.listing-builder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.listing-builder p:last-child,
.photo-manager p {
  margin-bottom: 0;
  color: var(--muted);
}

.photo-manager {
  margin-bottom: 18px;
}

.create-wizard {
  display: none;
  margin-bottom: 18px;
}

.create-wizard.open {
  display: block;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
  border-bottom: 3px solid var(--line);
}

.wizard-steps span {
  position: relative;
  padding-bottom: 12px;
  color: var(--muted);
  font-weight: 800;
}

.wizard-steps span.active {
  color: var(--primary);
}

.wizard-steps span.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--primary);
}

.wizard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.inline-address-wrap {
  position: relative;
}

#inline-address-search {
  width: 100%;
}

#inline-address-suggestions {
  position: absolute;
  z-index: 3;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  box-shadow: var(--shadow);
}

.link-button {
  min-height: auto !important;
  margin-top: 12px;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--text) !important;
  box-shadow: none !important;
  font-weight: 800;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.details-grid input,
.details-grid select {
  width: 100%;
}

.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.wizard-footer span {
  color: var(--muted);
}

.wizard-footer button {
  min-height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 800;
}

.wizard-footer button:disabled {
  background: #e5e1e1;
  color: #918b8b;
  cursor: not-allowed;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.upload-button input {
  display: none;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.photo-tile {
  position: relative;
  min-height: 150px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.photo-tile.hero::before {
  content: "Hero";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.photo-tile img,
.photo-placeholder {
  width: 100%;
  height: 112px;
  display: block;
  object-fit: cover;
}

.photo-placeholder {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.24)),
    linear-gradient(145deg, #d8e5f2 0%, #adc4d7 38%, #f5f0e8 39%, #d8cab8 62%, #47734b 63%, #28552e 100%);
}

.photo-placeholder.kitchen {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.18)),
    linear-gradient(145deg, #fafafa 0%, #ded7ca 34%, #b88f62 35%, #8f623a 56%, #f3efe7 57%, #d8d0c0 100%);
}

.photo-placeholder.living {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.2)),
    linear-gradient(145deg, #dbe8ec 0%, #bdd3d9 36%, #e9dfd0 37%, #c8a98b 64%, #7a8469 65%, #545d49 100%);
}

.photo-tile figcaption {
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.listing-photo {
  min-height: 150px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.2)),
    linear-gradient(145deg, #d8e5f2 0%, #adc4d7 38%, #f5f0e8 39%, #d8cab8 62%, #47734b 63%, #28552e 100%);
}

.listing-photo.two {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.22)),
    linear-gradient(145deg, #d6ecf3 0%, #b9d7dc 42%, #e8d8bf 43%, #c9ad88 64%, #315b48 65%, #234234 100%);
}

.listing-photo.three {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.18)),
    linear-gradient(145deg, #dfe9ee 0%, #b7cdd8 36%, #f4eadc 37%, #ceb492 62%, #345e41 63%, #263f31 100%);
}

.status-tabs,
.settings-tabs {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
  flex-wrap: wrap;
}

.status-filter,
.settings-tab {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: white;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 800;
}

.status-filter.active,
.settings-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: none;
}

.status-filter.coming {
  color: #8f5f00;
}

.status-filter.past {
  color: #6f737a;
}

.active-pill {
  background: #ddf8ed;
  color: #087a4a;
}

.coming-pill {
  background: #fff4d6;
  color: #8f5f00;
}

.past-pill {
  background: #eef0f2;
  color: #666b73;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: var(--soft);
}

.limit-banner {
  margin: 16px -20px -20px;
  padding: 16px 20px;
  border-radius: 0 0 8px 8px;
  background: var(--soft);
  color: var(--primary-strong);
  font-weight: 800;
}

.event,
.automation,
.question,
.integration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.event + .event,
.automation + .automation,
.question + .question,
.integration + .integration {
  margin-top: 10px;
}

.question.locked {
  background: var(--soft);
}

.qr-panel {
  text-align: center;
}

.qr {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  margin: 24px auto;
  border: 12px solid var(--accent);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--accent) 10px, transparent 10px) 0 0 / 40px 40px,
    linear-gradient(var(--accent) 10px, transparent 10px) 0 0 / 40px 40px,
    white;
  color: var(--primary);
  font-size: 42px;
  font-weight: 900;
}

.automation span,
.integration span {
  color: var(--primary);
  font-weight: 800;
}

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

.price-card {
  padding: 24px;
}

.price-card.featured {
  background: var(--accent);
  color: white;
}

.price-card span,
.price-card p {
  color: var(--muted);
}

.price-card.featured span,
.price-card.featured p {
  color: rgba(255, 255, 255, 0.68);
}

.price-card strong {
  display: block;
  margin: 12px 0;
  font-size: 34px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(27, 34, 43, 0.46);
  backdrop-filter: blur(3px);
}

.modal-backdrop.open {
  display: flex;
}

.address-modal {
  position: relative;
  width: min(100%, 520px);
  padding: 22px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
}

.modal-row,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-row {
  margin: 14px 0 8px;
}

.modal-row label {
  margin: 0;
}

.manual-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.manual-toggle input {
  min-height: auto;
}

#address-search,
.manual-fields input {
  width: 100%;
}

.address-suggestions {
  display: none;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.address-suggestions.open {
  display: block;
}

.address-suggestion {
  width: 100%;
  padding: 12px 14px;
  background: white;
  color: var(--text);
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.address-suggestion:last-child {
  border-bottom: 0;
}

.address-suggestion strong,
.address-suggestion span {
  display: block;
}

.address-suggestion span {
  color: var(--muted);
  font-size: 13px;
}

.manual-fields {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.manual-fields.open {
  display: grid;
}

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

.modal-actions span {
  color: var(--muted);
  font-size: 13px;
}

.modal-actions button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 800;
}

.timezone-label,
.duration-row span {
  color: var(--muted);
  font-size: 13px;
}

.duration-row {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 8px;
}

.duration-range {
  width: 100%;
  accent-color: var(--primary);
}

.duration-scale {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.open-house-detail {
  display: none;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  margin-bottom: 24px;
}

.open-house-detail.open {
  display: grid;
}

.detail-main {
  display: grid;
  gap: 20px;
}

.back-link {
  width: fit-content;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.ready-card {
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-align: center;
  box-shadow: var(--shadow);
}

.ready-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary);
  font-weight: 900;
}

.ready-actions,
.tool-grid {
  display: grid;
  gap: 10px;
}

.ready-actions {
  grid-template-columns: auto auto auto;
}

.ready-actions button:first-child,
.tool-grid button {
  background: var(--primary);
  color: white;
}

.ready-actions button,
.tool-grid button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 800;
}

.ready-actions button:last-child {
  background: white;
  color: var(--text);
}

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

.tool-grid button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  background: white;
  color: var(--text);
  text-align: left;
}

.tool-grid span {
  color: var(--muted);
  font-size: 22px;
}

.detail-side {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.import-photos {
  width: 100%;
  min-height: 36px;
  margin-top: 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--primary);
  font-weight: 800;
}

.settings-pane {
  display: none;
}

.settings-pane.active {
  display: block;
}

.user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.user-row + .user-row {
  margin-top: 10px;
}

.registration-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
}

.device-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.device-tabs button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-weight: 800;
}

.tablet-preview,
.mobile-preview {
  border: 10px solid var(--accent);
  background: white;
  box-shadow: var(--shadow);
}

.tablet-preview {
  min-height: 250px;
  padding: 20px;
  border-radius: 18px;
}

.mobile-preview {
  min-height: 320px;
  padding: 18px;
  border-radius: 28px;
}

.lead-timeline {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.lead-timeline div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.manage-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  margin-top: 14px;
}

.manager-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.manager-card span {
  color: var(--muted);
}

.compact-table th,
.compact-table td {
  padding: 12px 8px;
  font-size: 13px;
}

.saved-button {
  background: #ddf8ed !important;
  color: #087a4a !important;
}

.detail-side h3 {
  margin: 16px 0 6px;
  font-size: 15px;
}

.detail-side p {
  color: var(--muted);
  line-height: 1.45;
}

.side-photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  min-height: 112px;
  overflow: hidden;
  border-radius: 8px;
}

.side-photo {
  min-height: 112px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.18)),
    linear-gradient(145deg, #cce4f2 0%, #a8c3d4 35%, #e2d1bb 36%, #c2a17f 61%, #47734b 62%, #275630 100%);
}

.side-photo.two {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.2)),
    linear-gradient(145deg, #f2efe8 0%, #d8ccb8 36%, #b88755 37%, #8f6038 58%, #ebe3d5 59%, #cbc0ac 100%);
}

.side-photo.three {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.16)),
    linear-gradient(145deg, #dcebed 0%, #c1d5da 38%, #ede5da 39%, #c9aa8c 64%, #777f63 65%, #4e5845 100%);
}

.side-photo.four {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.16)),
    linear-gradient(145deg, #e7eef4 0%, #bfd2df 38%, #f5f1e8 39%, #d3c4ae 64%, #355f3c 65%, #24472b 100%);
}

.side-photo.five {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.16)),
    linear-gradient(145deg, #f6f6f4 0%, #ded8cf 38%, #ccb69b 39%, #9c7552 64%, #d8d0c2 65%, #b9ad9b 100%);
}

.action-dialog {
  width: min(100%, 980px);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
}

.action-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.action-list label,
.action-list input,
.action-list textarea,
.action-list select {
  width: 100%;
}

.action-list textarea {
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
  font: inherit;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.registration-page {
  background:
    linear-gradient(rgba(244, 245, 247, 0.88), rgba(244, 245, 247, 0.88)),
    linear-gradient(145deg, #d8e5f2 0%, #adc4d7 38%, #f5f0e8 39%, #d8cab8 62%, #47734b 63%, #28552e 100%);
}

.visitor-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.visitor-card {
  width: min(100%, 520px);
  padding: 28px;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.visitor-card img {
  width: 220px;
  max-width: 100%;
  display: block;
  margin-bottom: 18px;
}

.visitor-card label {
  display: block;
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.visitor-card input,
.visitor-card select {
  width: 100%;
}

.visitor-photos {
  margin-bottom: 18px;
}

.qr-corner {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow);
  font-weight: 900;
}

.visitor-success {
  display: none;
  margin: 16px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: #ddf8ed;
  color: #087a4a;
  font-weight: 800;
}

.visitor-success.show {
  display: block;
}

.landing-shell {
  min-height: 100vh;
  padding: 26px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.9)),
    linear-gradient(145deg, #d8e5f2 0%, #adc4d7 38%, #f5f0e8 39%, #d8cab8 62%, #47734b 63%, #28552e 100%);
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto 70px;
}

.landing-nav img {
  width: 220px;
  height: auto;
}

.landing-nav button,
.landing-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 800;
}

.landing-nav button:first-child {
  background: white;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.landing-hero {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: center;
  margin: 0 auto;
}

.landing-hero h1 {
  font-size: 58px;
}

.landing-hero p {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.landing-auth {
  padding: 24px;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.landing-auth label {
  display: block;
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.landing-auth input {
  width: 100%;
}

@media (max-width: 980px) {
  .sidebar {
    position: static;
    width: auto;
    min-height: auto;
  }

  .shell {
    margin-left: 0;
    padding: 22px;
  }

  .metric-grid,
  .dashboard-grid,
  .landing-hero,
  .builder-grid,
  .settings-grid,
  .pricing-grid,
  .open-house-detail,
  .tool-grid,
  .ready-actions,
  .listing-card,
  .wizard-steps,
  .wizard-grid,
  .details-grid,
  .photo-grid,
  .manual-fields {
    grid-template-columns: 1fr;
  }

  .topbar,
  .toolbar,
  .skin-strip,
  .listing-builder,
  .wizard-footer,
  .modal-actions,
  .panel-header {
    align-items: stretch;
    flex-wrap: wrap;
  }
}
