/* HomeSphere demo · MakinForU. System fonts only; brand tokens are set from JS (white-label). */
:root {
  color-scheme: light;
  --brand: #0e7c66;
  --brand-ink: #0e7c66;
  --on-brand: #ffffff;
  --brand-soft: #e7f2ef;
  --brand-softer: #f3f9f7;
  --brand-deep: #0b5a4b;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #15202b;
  --ink-2: #344150;
  --muted: #5a6574;
  --line: #e1e6ec;
  --line-2: #cbd3dd;
  --ok: #146c34;
  --ok-bg: #e6f5eb;
  --warn: #7f4d00;
  --warn-bg: #fff3d6;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --info: #1d5fb8;
  --info-bg: #e8f0fc;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.07);
  --shadow-2: 0 18px 40px -18px rgba(16, 24, 40, 0.35);
  --demobar-h: 44px;
  --head-h: 64px;
  --tabbar-h: 0px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--demobar-h) + var(--head-h) + 12px);
}
body {
  margin: 0;
  padding-top: var(--demobar-h);
  padding-bottom: var(--tabbar-h);
  font: 15px/1.5 var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
body.tour-open,
body.has-dialog {
  overflow: hidden;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.4em;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
}
h2,
.h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
}
h3,
.h3 {
  font-size: 1.12rem;
}
.h4 {
  font-size: 0.98rem;
}
p {
  margin: 0 0 0.8em;
}
a {
  color: var(--brand-ink);
}
img,
svg {
  max-width: 100%;
}
code,
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}
h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus {
  outline: none;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.84rem;
}
.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 2000;
  padding: 10px 14px;
  background: #111827;
  color: #fff;
  border-radius: 8px;
}
.skip:focus {
  top: 8px;
}
:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}
.ic {
  flex: none;
  vertical-align: middle;
}
.wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) {
  .wrap {
    padding: 0 24px;
  }
}
.noscript,
.boot {
  padding: 40px 16px;
  text-align: center;
  color: var(--muted);
}

/* ---------- demo bar (always visible) ---------- */
.demobar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1500;
  height: var(--demobar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  background: #0b1220;
  color: #e5e7eb;
  font-size: 13px;
}
.demobar__id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fcd34d;
  color: #1f1300;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}
.demo-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b45309;
}
.demobar__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #cbd5e1;
}
.demobar__name b {
  color: #fff;
}
.demobar__by {
  color: #94a3b8;
}
.demobar__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.demobar .seg {
  display: flex;
  background: #1e293b;
  border-radius: 9px;
  padding: 3px;
}
.demobar .seg__b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 7px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.demobar .seg__b.is-on {
  background: #fff;
  color: #0b1220;
}
.dbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: transparent;
  color: #e5e7eb;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.dbtn:hover {
  background: #1e293b;
}
@media (max-width: 1080px) {
  .demobar__name {
    display: none;
  }
}
@media (max-width: 860px) {
  .hide-md {
    display: none;
  }
}
@media (max-width: 520px) {
  .demobar .seg__b span {
    display: none;
  }
  .demobar .seg__b {
    padding: 6px 9px;
  }
}

/* ---------- buttons, fields ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn--sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.9rem;
}
.btn--lg {
  min-height: 50px;
  padding: 12px 22px;
  font-size: 1.02rem;
}
.btn--block {
  width: 100%;
}
.btn--grow {
  flex: 1;
}
.btn--brand {
  background: var(--brand);
  color: var(--on-brand);
}
.btn--brand:hover {
  filter: brightness(0.94);
}
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  background: #f1f4f7;
}
.btn--ghost.is-on {
  color: var(--bad);
  border-color: #f2b8b5;
}
.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-1);
}
.btn--dark {
  background: #111827;
  color: #fff;
}
.btn--ok {
  background: var(--ok);
  color: #fff;
}
.btn--danger,
.danger {
  color: var(--bad) !important;
}
.btn--danger {
  background: var(--bad);
  color: #fff !important;
}
.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.icon-btn:hover {
  background: rgba(15, 23, 42, 0.06);
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-ink);
  font-weight: 650;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  cursor: pointer;
}
.link:hover {
  text-decoration: underline;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
.field > label,
.field > legend,
.label,
.fgroup > legend {
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink-2);
  padding: 0;
}
.field--inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.field--grow {
  flex: 1;
}
input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  min-width: 0;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
}
select {
  padding-right: 30px;
}
textarea {
  resize: vertical;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent);
  border-color: var(--brand-ink);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--brand);
  width: 18px;
  height: 18px;
}
.hint {
  font-size: 0.8rem;
  color: var(--muted);
}
.stack > * + * {
  margin-top: 14px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.row-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.row-between {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.grid-2,
.grid-3 {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.color-row {
  display: flex;
  gap: 8px;
}
.color-row input[type="color"] {
  width: 52px;
  height: 42px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--line-2);
  background: var(--c);
  cursor: pointer;
}
.swatch.is-on {
  box-shadow: 0 0 0 2px var(--ink);
}

/* chips, toggles */
.fchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fchip {
  position: relative;
}
.fchip input,
.mode input,
.style input,
.plan input,
.radio-card input,
.co-m input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.fchip span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-2);
}
.fchip input:checked + span {
  background: var(--brand-soft);
  border-color: var(--brand-ink);
  color: var(--brand-ink);
}
.fchip input:checked + span::before {
  content: "✓";
  margin-right: 5px;
  font-weight: 800;
}
.fchip input:focus-visible + span,
.mode input:focus-visible + span,
.style input:focus-visible + .style__img,
.plan input:focus-visible + .plan__b,
.radio-card input:focus-visible + span,
.co-m input:focus-visible ~ span:last-child {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}
.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  position: relative;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch__ui {
  flex: none;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: #c3cbd6;
  position: relative;
  transition: background 0.15s;
}
.switch__ui::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.switch input:checked + .switch__ui {
  background: var(--brand);
}
.switch input:checked + .switch__ui::after {
  transform: translateX(16px);
}
.switch input:focus-visible + .switch__ui {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}
.seg--light {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.seg--light .seg__b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink-2);
  font-weight: 650;
  text-decoration: none;
  font-size: 0.9rem;
}
.seg--light .seg__b.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* badges, pills, tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.badge--feat {
  background: #111827;
  color: #fff;
}
.badge--tour {
  background: var(--brand);
  color: var(--on-brand);
}
.badge--ok {
  color: var(--ok);
}
.sample-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #fff3d6;
  border: 1px solid #f2cf7a;
  color: #6b4500;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 3px;
}
.sample-inline {
  display: inline-block;
  padding: 0 6px;
  border-radius: 5px;
  background: #fff3d6;
  color: #6b4500;
  font-size: 0.78em;
  font-weight: 700;
}
.sim-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: #fff3d6;
  color: #6b4500;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.pill--ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.pill--warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.pill--bad {
  background: var(--bad-bg);
  color: var(--bad);
}
.pill--info {
  background: var(--info-bg);
  color: var(--info);
}
.pill--muted {
  background: #eef1f5;
  color: var(--ink-2);
}
.tagx {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 6px;
  background: #eef1f5;
  color: var(--ink-2);
  font-size: 0.74rem;
  font-weight: 650;
}
.count,
.nbadge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.74rem;
  font-weight: 800;
}
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 800;
}
.avatar--xs {
  width: 26px;
  height: 26px;
  font-size: 0.7rem;
}
.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  margin: 0 0 16px;
  font-size: 0.92rem;
}
.note--warn {
  background: var(--warn-bg);
  color: #4a2d00;
}

/* ---------- site header / footer / tab bar ---------- */
.site-head {
  position: sticky;
  top: var(--demobar-h);
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head__in {
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand__name {
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo {
  display: inline-flex;
  flex: none;
}
.logo svg {
  display: block;
}
.site-nav {
  display: flex;
  gap: 4px;
}
.nav-link {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 650;
}
.nav-link:hover,
.nav-link.is-on {
  background: var(--brand-softer);
  color: var(--brand-ink);
}
.site-head__end {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.shortlist-link .count {
  margin-left: 2px;
}
.site-foot {
  margin-top: 56px;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 32px 0 28px;
}
.site-foot__in {
  display: grid;
  gap: 20px;
}
.site-foot__brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.site-foot__brand p {
  margin: 0;
}
.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.site-foot__links a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
}
.site-foot__links a:hover {
  color: var(--brand-ink);
}
.site-foot__legal {
  margin: 0;
}
@media (min-width: 900px) {
  .site-foot__in {
    grid-template-columns: 1fr 1.4fr;
  }
  .site-foot__legal {
    grid-column: 1 / -1;
  }
}
.tabbar {
  display: none;
}
@media (max-width: 860px) {
  .site-nav,
  .hide-sm {
    display: none !important;
  }
  :root {
    --tabbar-h: calc(64px + env(safe-area-inset-bottom));
    --head-h: 58px;
  }
  .tabbar {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    height: var(--tabbar-h);
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px -14px rgba(0, 0, 0, 0.3);
  }
  .tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 650;
    background: none;
    border: 0;
    font-family: inherit;
  }
  .tab.is-on {
    color: var(--brand-ink);
  }
  .tab.is-on::before {
    content: "";
    position: absolute;
    top: 0;
    left: 30%;
    right: 30%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--brand);
  }
  .tab__badge,
  .tab .nbadge {
    position: absolute;
    top: 6px;
    left: calc(50% + 6px);
    min-width: 18px;
    height: 18px;
    font-size: 0.66rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    background: var(--brand);
    color: var(--on-brand);
  }
  body:has(.lp__bar) .tabbar {
    display: none;
  }
  body:has(.lp__bar) {
    --tabbar-h: calc(68px + env(safe-area-inset-bottom));
  }
}

/* ---------- home ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-ink));
  padding: 40px 0 32px;
}
.hero__bg {
  position: absolute;
  inset: auto 0 0 0;
  height: 70%;
  pointer-events: none;
}
.hero__bg svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero__in {
  position: relative;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.hero h1 {
  max-width: 820px;
  color: #fff;
}
.hero__sub {
  max-width: 640px;
  color: #fff;
  font-size: 1.04rem;
}
.hero .sample-inline {
  vertical-align: 1px;
}
.hsearch {
  margin-top: 18px;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-2);
  max-width: 1040px;
}
.hsearch__modes {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.mode {
  position: relative;
}
.mode span {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 9px;
  font-weight: 750;
  color: var(--ink-2);
  cursor: pointer;
  background: #f1f4f7;
}
.mode input:checked + span {
  background: var(--brand);
  color: var(--on-brand);
}
.hsearch__row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}
.hsearch__row .field--grow {
  grid-column: 1 / -1;
}
.hsearch__go {
  grid-column: 1 / -1;
}
@media (min-width: 900px) {
  .hsearch__row {
    grid-template-columns: 180px 1fr 150px auto;
    align-items: end;
  }
  .hsearch__row .field--grow,
  .hsearch__go {
    grid-column: auto;
  }
}
.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.chip {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.88rem;
}
.chip:hover {
  background: rgba(0, 0, 0, 0.36);
}
.sec {
  padding-top: 36px;
}
.sec__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sec__head h2 {
  margin: 0;
}
.pagehead {
  margin: 4px 0 20px;
}
.pagehead h1 {
  margin-bottom: 4px;
}
.pagehead p {
  margin: 0;
}
.pagehead--row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.cities {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) {
  .cities {
    grid-template-columns: repeat(4, 1fr);
  }
}
.city {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.15s, transform 0.15s;
}
.city:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.city__art svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
}
.city__t {
  display: flex;
  flex-direction: column;
  padding: 10px 14px 14px;
}
.promo {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .promo {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.promo__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.promo__card h3 {
  display: flex;
  gap: 8px;
  align-items: center;
}
.promo__card--brand {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-ink));
  color: #fff;
  border: 0;
}
.promo__card--brand p {
  color: #fff;
}

/* ---------- listing cards ---------- */
.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.cards--3 {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.lcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.lcard:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.lcard__media {
  display: block;
  aspect-ratio: 20 / 13;
  background: #e8edf2;
}
.lcard__media svg,
.mosaic__item svg,
.carousel__slide svg,
.lb__img svg,
.lb__t svg,
.lrow__img svg,
.mini__img svg,
.pick__img svg,
.cmp-head__img svg,
.style__img svg,
.tourcard__art svg,
.done-big__img svg {
  display: block;
  width: 100%;
  height: 100%;
}
.lcard__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.lcard__heart {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-2);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.lcard__heart.is-on {
  color: var(--bad);
}
.lcard__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  flex: 1;
}
.lcard__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
}
.price {
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}
.price--xl {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}
.lcard__sub {
  width: 100%;
  font-size: 0.8rem;
  color: var(--muted);
}
.lcard__title {
  margin: 0;
  font-size: 1rem;
}
.lcard__title a {
  color: var(--ink);
  text-decoration: none;
}
.lcard__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}
.lcard__title a:focus-visible {
  outline: none;
}
.lcard:has(.lcard__title a:focus-visible) {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}
.lcard__heart,
.lcard__foot,
.lcard__badges {
  z-index: 1;
}
.lcard__loc {
  display: flex;
  gap: 4px;
  align-items: flex-start;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.lcard__facts {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.8rem;
  color: var(--ink-2);
}
.lcard__facts li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lcard__foot {
  position: relative;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}
.lcard__by {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cmp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  min-height: 32px;
}
.lcard--compact .lcard__facts li:last-child {
  display: none;
}

/* compare tray */
.tray {
  position: fixed;
  z-index: 65;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + 12px);
  width: min(720px, calc(100% - 24px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #111827;
  color: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
}
.tray__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.tray__item {
  padding: 3px 8px;
  border-radius: 6px;
  background: #1f2937;
  font-size: 0.8rem;
  font-weight: 650;
}
.tray .muted {
  color: #cbd5e1;
}
.tray__act {
  display: flex;
  gap: 6px;
}
@media (max-width: 560px) {
  .tray__item {
    display: none;
  }
}

/* ---------- search ---------- */
.search {
  display: grid;
  gap: 24px;
  padding-top: 24px;
  align-items: start;
}
@media (min-width: 961px) {
  .search {
    grid-template-columns: 290px 1fr;
  }
  .filters {
    position: sticky;
    top: calc(var(--demobar-h) + var(--head-h) + 16px);
    max-height: calc(100vh - var(--demobar-h) - var(--head-h) - 32px);
    overflow: auto;
  }
  .filters__x,
  .filters-btn,
  .scrim--filters {
    display: none !important;
  }
}
.filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.filters__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filters__head h2 {
  margin: 0;
}
.fgroup {
  border: 0;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.fgroup > legend {
  float: left;
  width: 100%;
  margin-bottom: 8px;
}
.fgroup > legend + * {
  clear: both;
}
.fgroup .switch + .switch {
  margin-top: 10px;
}
.filters__foot {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
@media (max-width: 960px) {
  .filters {
    position: fixed;
    z-index: 1200;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: calc(100vh - var(--demobar-h) - 24px);
    overflow: auto;
    border-radius: 18px 18px 0 0;
    transform: translateY(105%);
    transition: transform 0.22s ease;
    visibility: hidden;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .filters__foot {
    position: sticky;
    bottom: calc(-16px - env(safe-area-inset-bottom));
    background: #fff;
    padding-bottom: 6px;
  }
  body.filters-open .filters {
    transform: none;
    visibility: visible;
  }
  .scrim--filters {
    display: none;
  }
  body.filters-open .scrim--filters {
    display: block;
    position: fixed;
    inset: var(--demobar-h) 0 0 0;
    z-index: 1150;
    background: rgba(15, 23, 42, 0.5);
  }
}
.results__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.results__top h1 {
  margin-bottom: 2px;
}
.results__top p {
  margin: 0;
}
.qform {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fff;
  padding-right: 2px;
  min-width: 0;
}
.qform input:not([type]),
.qform input {
  border: 0 !important;
  min-height: 40px;
  background: transparent !important;
}
.results__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 18px;
}
.achips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  align-items: center;
  min-width: 0;
}
.achip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--brand-ink);
  background: var(--brand-softer);
  color: var(--brand-ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}
.results__bar .field--inline select {
  width: auto;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 48px 16px;
  background: #fff;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--ink-2);
}

/* ---------- listing page ---------- */
.lp {
  padding-top: 16px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.crumbs a {
  color: var(--ink-2);
}
.gallery {
  position: relative;
}
.mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: clamp(320px, 38vw, 470px);
  border-radius: 18px;
  overflow: hidden;
}
.mosaic__item {
  padding: 0;
  border: 0;
  background: #e8edf2;
  cursor: zoom-in;
  overflow: hidden;
}
.mosaic__item--big {
  grid-row: span 2;
}
.mosaic__item:hover svg {
  transform: scale(1.02);
}
.mosaic__item svg {
  transition: transform 0.3s;
}
.mosaic__tools {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}
.carousel {
  display: none;
  position: relative;
}
.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: 14px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar {
  display: none;
}
.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 20 / 13;
  padding: 0;
  border: 0;
  background: #e8edf2;
}
.carousel__count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.8);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}
.carousel__tour {
  position: absolute;
  left: 10px;
  bottom: 10px;
}
@media (max-width: 720px) {
  .mosaic {
    display: none;
  }
  .carousel {
    display: block;
  }
  .lp {
    padding-top: 10px;
  }
}
.illus-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.lp__grid {
  display: grid;
  /* minmax(0, ...) so a wide table or chart scrolls inside its card instead of widening the page */
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-top: 20px;
  align-items: start;
}
.lp__main,
.lp__side {
  min-width: 0;
}
@media (min-width: 961px) {
  .lp__grid {
    grid-template-columns: minmax(0, 1fr) 370px;
  }
  .lp__side {
    position: sticky;
    top: calc(var(--demobar-h) + var(--head-h) + 16px);
  }
}
.lp__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.lp__badges .badge {
  box-shadow: none;
  background: #eef1f5;
}
.lp__badges .badge--feat {
  background: #111827;
}
.lp__head h1 {
  margin-bottom: 4px;
}
.lp__loc {
  display: flex;
  gap: 4px;
  align-items: center;
  color: var(--muted);
}
.lp__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.lp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cmp-btn input {
  margin: 0;
}
.keyfacts {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 720px) {
  .keyfacts {
    grid-template-columns: repeat(4, 1fr);
  }
}
.keyfacts li {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: #fff;
  color: var(--brand-ink);
}
.keyfacts li > span {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  min-width: 0;
}
.lp__sec {
  margin-top: 28px;
}
.amen {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.amen li {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
}
.amen .ic {
  color: var(--brand-ink);
}
.tourcard {
  display: grid;
  gap: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: center;
}
@media (min-width: 720px) {
  .tourcard {
    grid-template-columns: 260px 1fr;
  }
}
.tourcard__art {
  position: relative;
  aspect-ratio: 20 / 13;
  border-radius: 12px;
  overflow: hidden;
}
.tourcard__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.3);
}
.tourcard__play span {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.35);
}
.costs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 720px) {
  .costs {
    grid-template-columns: repeat(4, 1fr);
  }
}
.costs > div {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.contact,
.booking {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-1);
}
.booking {
  margin-top: 14px;
}
.booking .btn {
  margin: 4px 0 8px;
}
.contact__who {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.contact__who > div {
  display: flex;
  flex-direction: column;
}
.enquiry h2 {
  margin: 0;
}
.done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.done__ic {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
}
.lp__bar {
  display: none;
}
@media (max-width: 860px) {
  .lp__bar {
    display: flex;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px -14px rgba(0, 0, 0, 0.3);
  }
  .lp__bar .btn {
    min-height: 46px;
  }
}

/* EMI */
.emi {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.emi > * {
  min-width: 0;
}
@media (min-width: 900px) {
  .emi {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}
.emi__in .field > label b {
  color: var(--brand-ink);
  font-size: 1rem;
}
.emi__in .field + .field {
  margin-top: 14px;
}
.emi__in p {
  margin-top: 14px;
}
.emi__head {
  display: flex;
  flex-direction: column;
}
.emi__big {
  font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.emi__split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 12px 0;
}
.emi__legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.emi__legend li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.emi__legend li > span:last-child {
  display: flex;
  flex-direction: column;
}
.legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.82rem;
  color: var(--ink-2);
}
.legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend__sw {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.legend__sw--none {
  background: transparent;
  border: 2px solid var(--line-2);
}
.chart-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.chart-head h3 {
  margin: 0;
}
.chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart .grid {
  stroke: #e5e9ef;
  stroke-width: 1;
}
.chart .base {
  stroke: #9aa5b4;
  stroke-width: 1;
}
.chart .axis {
  fill: var(--muted);
  font-size: 11px;
  font-family: var(--font);
}
.chart .val {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font);
}
.chart .hit:hover rect[fill="transparent"] {
  fill: rgba(15, 23, 42, 0.05);
}
.emi__table {
  margin-top: 10px;
}
.emi__table summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--brand-ink);
  padding: 6px 0;
}
.tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 3000;
  padding: 6px 10px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
  max-width: 280px;
}
.tip.on {
  opacity: 1;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.narrow {
  max-width: 820px;
}

/* tables */
.tablewrap {
  /* The scroller is the containing block for visually hidden (.sr) text inside cells,
     so that text is clipped here instead of stretching the page sideways. */
  position: relative;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.tbl th,
.tbl td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.tbl thead th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: #f8fafc;
  white-space: nowrap;
}
.tbl tbody tr:last-child > * {
  border-bottom: 0;
}
.tbl .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.emi__table .tablewrap {
  max-height: 320px;
}

/* compare */
.compare-wrap {
  margin-bottom: 8px;
}
.compare th[scope="row"] {
  font-weight: 650;
  color: var(--ink-2);
  white-space: nowrap;
}
.compare td {
  min-width: 170px;
}
.sticky-col {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
}
.compare thead .sticky-col {
  background: #f8fafc;
}
.cmp-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  color: var(--ink);
}
.cmp-head a {
  color: var(--ink);
  text-decoration: none;
}
.cmp-head__img {
  display: block;
  aspect-ratio: 20 / 13;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
  max-width: 220px;
}
.best {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 0.74rem;
  font-weight: 800;
}
.yes {
  color: var(--ok);
}
.no {
  color: var(--muted);
}
.pick {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.pick__row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.pick__row > span:last-child {
  display: flex;
  flex-direction: column;
}
.pick__img {
  width: 96px;
  flex: none;
  aspect-ratio: 20 / 13;
  border-radius: 8px;
  overflow: hidden;
}

/* post property */
.stepper {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.stepper li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--muted);
}
.stepper li > span {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef1f5;
  font-size: 0.78rem;
}
.stepper li.is-on {
  border-color: var(--brand-ink);
  color: var(--brand-ink);
}
.stepper li.is-on > span,
.stepper li.is-done > span {
  background: var(--brand);
  color: var(--on-brand);
}
@media (max-width: 560px) {
  .stepper li {
    font-size: 0;
    justify-content: center;
  }
  .stepper li > span {
    font-size: 0.78rem;
  }
}
.upload-sim {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 2px dashed var(--line-2);
  border-radius: 12px;
  color: var(--ink-2);
}
.upload-sim p {
  margin: 0;
}
.styles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.style {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.style__img {
  aspect-ratio: 20 / 13;
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid transparent;
}
.style input:checked + .style__img {
  border-color: var(--brand);
}
.plans {
  display: grid;
  gap: 10px;
}
@media (min-width: 560px) {
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}
.plan {
  position: relative;
  cursor: pointer;
}
.plan__b {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  height: 100%;
}
.plan__p {
  font-size: 1.2rem;
  font-weight: 800;
}
.plan input:checked + .plan__b {
  border-color: var(--brand);
  background: var(--brand-softer);
}
.done-big {
  display: grid;
  gap: 20px;
  align-items: center;
}
@media (min-width: 720px) {
  .done-big {
    grid-template-columns: 300px 1fr;
  }
}
.done-big__img {
  aspect-ratio: 20 / 13;
  border-radius: 12px;
  overflow: hidden;
}

/* ---------- dialogs ---------- */
#layer {
  display: none;
}
#layer.open {
  display: block;
}
.scrim {
  position: fixed;
  inset: var(--demobar-h) 0 0 0;
  z-index: 1300;
  background: rgba(15, 23, 42, 0.55);
}
.dlg {
  position: fixed;
  z-index: 1310;
  left: 50%;
  top: calc(var(--demobar-h) + (100vh - var(--demobar-h)) / 2);
  transform: translate(-50%, -50%);
  width: min(600px, calc(100% - 32px));
  max-height: calc(100vh - var(--demobar-h) - 32px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
}
.dlg--sm {
  width: min(460px, calc(100% - 32px));
}
.dlg--lg {
  width: min(820px, calc(100% - 32px));
}
.dlg--xl {
  width: min(1040px, calc(100% - 32px));
}
.dlg__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 10px 20px;
  border-bottom: 1px solid var(--line);
}
.dlg__title {
  margin: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.dlg__x {
  margin-left: auto;
}
.dlg__body {
  padding: 18px 20px;
  overflow: auto;
}
.dlg__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
}
@media (max-width: 560px) {
  .dlg {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: 100% !important;
    border-radius: 18px 18px 0 0;
    max-height: calc(100vh - var(--demobar-h) - 12px);
  }
  .dlg__foot {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .dlg__foot .btn {
    flex: 1;
  }
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}
.ticks li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.ticks .ic {
  color: var(--ok);
  margin-top: 2px;
}

/* lightbox */
.dlg--lightbox .dlg__body {
  padding: 12px;
}
.lb {
  position: relative;
  margin: 0;
}
.lb__img {
  aspect-ratio: 20 / 13;
  border-radius: 12px;
  overflow: hidden;
  background: #e8edf2;
  max-height: calc(100vh - 300px);
  margin: 0 auto;
}
.lb figcaption {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--muted);
}
.lb__nav {
  position: absolute;
  top: calc(50% - 30px);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-1);
}
.lb__nav--prev {
  left: 10px;
}
.lb__nav--next {
  right: 10px;
}
.lb__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
.lb__t {
  flex: none;
  width: 92px;
  aspect-ratio: 20 / 13;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
}
.lb__t.is-on {
  border-color: var(--brand);
}

/* checkout */
.dlg--checkout .dlg__head {
  background: var(--brand-softer);
  border-radius: 18px 18px 0 0;
}
.testbanner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #fff3d6;
  border: 1px solid #f2cf7a;
  color: #4a2d00;
  font-size: 0.88rem;
}
.co-sum {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.co-sum > div {
  display: flex;
  flex-direction: column;
}
.co-amt {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.co-lines {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 10px 0 0;
  font-size: 0.86rem;
}
.co-lines dt {
  color: var(--muted);
}
.co-lines dd {
  margin: 0;
  text-align: right;
}
.co-methods {
  border: 0;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}
.co-methods legend {
  font-weight: 700;
  margin-bottom: 6px;
}
.co-m {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.co-m > span:last-child {
  display: flex;
  flex-direction: column;
}
.co-m:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-softer);
}
.co-m__ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef1f5;
}
.co-state:empty {
  display: none;
}
.co-done {
  text-align: center;
  padding: 10px 0;
}
.co-done__ic {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  margin-bottom: 8px;
}
.spin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* invoice */
.invoice {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  font-size: 0.9rem;
}
.invoice__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.invoice__brand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.invoice__brand > div,
.invoice__meta,
.invoice__parties > div {
  display: flex;
  flex-direction: column;
}
.invoice__meta {
  text-align: right;
}
.invoice__parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 0;
}
.invoice__tbl {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}
.invoice__tbl th,
.invoice__tbl td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.invoice__tbl .num {
  text-align: right;
  white-space: nowrap;
}
.invoice__total td {
  font-weight: 800;
  border-top: 2px solid var(--ink);
}

/* toasts */
.toasts {
  position: fixed;
  z-index: 2500;
  left: 50%;
  top: calc(var(--demobar-h) + 12px);
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  width: min(440px, calc(100% - 24px));
  pointer-events: none;
}
.toast {
  padding: 12px 16px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-2);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.in {
  opacity: 1;
  transform: none;
}
.toast--warn {
  background: #7f4d00;
}

/* ---------- 360 tour ---------- */
.tour {
  position: fixed;
  inset: var(--demobar-h) 0 0 0;
  z-index: 1400;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  background: #0b1220;
  color: #e5e7eb;
}
.tour__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 8px 16px;
}
.tour__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-width: 0;
}
.tour__title h2 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}
.tour__close {
  color: #fff;
}
.tour__close:hover {
  background: rgba(255, 255, 255, 0.12);
}
.tour__view {
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background: #d9d4ca;
  outline-offset: -3px;
}
.tour__view.is-dragging {
  cursor: grabbing;
}
.tour__view:focus-visible {
  outline: none;
}
.tour__view:focus-visible::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  box-shadow: inset 0 0 0 3px #2563eb;
  pointer-events: none;
}
.tour__stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transition: opacity 0.2s;
}
.tour__view.is-fading .tour__stage {
  opacity: 0;
}
.tface {
  position: absolute;
  left: 0;
  top: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.tface > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--k, 1));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.hotspot__dot {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0b1220;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 55%, transparent), 0 8px 18px rgba(0, 0, 0, 0.35);
  animation: pulse 2s ease-in-out infinite;
}
.hotspot__l {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.85);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.hotspot:hover .hotspot__dot {
  background: #fff;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 14px color-mix(in srgb, var(--brand) 25%, transparent), 0 8px 18px rgba(0, 0, 0, 0.35);
  }
}
.tour__now {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.8);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
  pointer-events: none;
}
.tour__map {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 12px;
  width: 178px;
  height: 132px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-2);
}
.tmap {
  position: relative;
  width: 100%;
  height: 100%;
}
.tmap__r {
  position: absolute;
  display: grid;
  place-items: start center;
  padding-top: 3px;
  padding: 0;
  border: 2px solid #2b3440;
  background: #f4f6f8;
  color: #1e2833;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  margin: -1px;
}
.tmap__r.is-on {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.tmap__cone {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: conic-gradient(from -32deg, color-mix(in srgb, var(--brand) 70%, transparent) 0deg 64deg, transparent 64deg);
  pointer-events: none;
}
.tmap__cone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #fff;
}
.tour__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 4px;
}
.tour__rooms {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
}
.troom {
  flex: none;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #334155;
  background: transparent;
  color: #e5e7eb;
  font: inherit;
  font-weight: 650;
  font-size: 0.88rem;
  cursor: pointer;
}
.troom.is-on {
  background: #fff;
  color: #0b1220;
  border-color: #fff;
}
.tour__btns {
  display: flex;
  gap: 4px;
}
.tour__btns .icon-btn {
  color: #e5e7eb;
  border-color: #334155;
}
.tour__btns .icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.tour__btns .icon-btn[aria-pressed="true"] {
  background: #fff;
  color: #0b1220;
}
.tour__help {
  margin: 0;
  padding: 2px 16px calc(10px + env(safe-area-inset-bottom));
  font-size: 0.78rem;
  color: #aab4c3;
}
@media (max-width: 560px) {
  .tour__map {
    width: 132px;
    height: 100px;
  }
  .tmap__r {
    font-size: 8px;
  }
  .tour__help {
    display: none;
  }
  .tour__now {
    top: auto;
    bottom: 12px;
    left: auto;
    right: 12px;
    transform: none;
    white-space: normal;
    max-width: calc(100% - 140px);
    text-align: right;
  }
}

/* ---------- admin ---------- */
body[data-area="admin"] {
  background: #f1f4f8;
}
.adm {
  display: grid;
  min-height: calc(100vh - var(--demobar-h));
}
@media (min-width: 861px) {
  .adm {
    grid-template-columns: 250px 1fr;
  }
  .adm__top {
    display: none !important;
  }
}
.adm__side {
  position: sticky;
  top: var(--demobar-h);
  height: calc(100vh - var(--demobar-h));
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 12px;
  background: #fff;
  border-right: 1px solid var(--line);
  overflow: auto;
}
.adm__side > .brand {
  padding: 4px 8px 18px;
}
.adm__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: auto;
}
.adm__link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
  background: none;
  color: var(--ink-2);
  text-decoration: none;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}
.adm__link:hover {
  background: #f1f4f7;
}
.adm__link.is-on {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.adm__link .nbadge {
  margin-left: auto;
}
.adm__me {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 8px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.adm__me > span:last-child {
  display: flex;
  flex-direction: column;
}
.adm__main {
  min-width: 0;
}
.adm__top {
  position: sticky;
  top: var(--demobar-h);
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.adm__top-end {
  display: flex;
  gap: 6px;
}
.adm__content {
  padding: 22px 16px 40px;
  max-width: 1320px;
}
@media (min-width: 861px) {
  .adm__content {
    padding: 28px 32px 48px;
  }
}
@media (max-width: 860px) {
  .adm__side {
    display: none;
  }
}
.kpis {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 18px;
}
@media (min-width: 1100px) {
  .kpis {
    grid-template-columns: repeat(4, 1fr);
  }
  .kpis--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.kpi {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "ic l" "v v" "s s";
  gap: 4px 10px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
a.kpi:hover {
  box-shadow: var(--shadow-2);
}
.kpi__ic {
  grid-area: ic;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.kpi__l {
  grid-area: l;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink-2);
}
.kpi__v {
  grid-area: v;
  font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.9rem);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi__s {
  grid-area: s;
  font-size: 0.8rem;
  color: var(--muted);
}
.dash {
  display: grid;
  gap: 16px;
}
@media (min-width: 1200px) {
  .dash {
    grid-template-columns: 1.4fr 1fr;
  }
  .dash__wide {
    grid-column: 1;
  }
  .dash > .card:nth-child(2) {
    grid-row: 1;
    grid-column: 2;
  }
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}
.card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.card__head h2 {
  margin: 0;
}
.card .tablewrap {
  border: 0;
  border-radius: 0;
}
.attn {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.attn a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  background: var(--warn-bg);
  color: #4a2d00;
  text-decoration: none;
}
.attn a > span {
  flex: 1;
}
.hbars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.hbars li {
  display: grid;
  grid-template-columns: 112px 1fr 34px;
  gap: 10px;
  align-items: center;
  font-size: 0.86rem;
}
.hbars__l a {
  color: var(--ink);
}
.hbars__track {
  height: 12px;
  border-radius: 0 4px 4px 0;
  background: #eef1f5;
  overflow: hidden;
}
.hbars__bar {
  display: block;
  height: 100%;
  background: #2a78d6;
  border-radius: 0 4px 4px 0;
}
.hbars__v {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.toolbar--filters {
  justify-content: flex-start;
}
.toolbar--filters select {
  width: auto;
}
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
  margin-bottom: 12px;
}
.toolbar .tabs {
  margin-bottom: 0;
}
.tabs__t {
  flex: none;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.9rem;
  white-space: nowrap;
}
.tabs__t:hover {
  background: #e9edf2;
}
.tabs__t.is-on {
  background: var(--ink);
  color: #fff;
}
.tabs__n {
  opacity: 0.75;
  font-weight: 600;
}
.lrow {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 260px;
}
.lrow > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lrow a {
  color: var(--ink);
  text-decoration: none;
}
.lrow a:hover {
  text-decoration: underline;
}
.lrow__img {
  flex: none;
  width: 84px;
  aspect-ratio: 20 / 13;
  border-radius: 8px;
  overflow: hidden;
}
.lrow__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}
.acts__in {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
}
.nowrap {
  white-space: nowrap;
}
.menu {
  position: relative;
}
.menu summary {
  list-style: none;
  border: 1px solid var(--line-2);
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu__pop {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  min-width: 200px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  display: grid;
}
.menu__pop button {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}
.menu__pop button:hover,
.menu__pop button:focus-visible {
  background: #f1f4f7;
}
/* Row tables (listings, payments, leads list) turn into two-line cards before they would
   need sideways scrolling: four-up on a laptop next to the sidebar, two-up on a phone. */
@media (max-width: 1420px) {
  .tbl--rows thead {
    display: none;
  }
  .tbl--rows,
  .tbl--rows tbody {
    display: block;
  }
  .tbl--rows tr {
    display: grid;
    gap: 6px 12px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }
  .tbl--rows tbody tr:last-child {
    border-bottom: 0;
  }
  .tbl--rows td {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 0;
    text-align: left !important;
    min-width: 0;
  }
  .tbl--rows td > * {
    align-self: flex-start;
  }
  .tbl--rows td[data-label]::before {
    content: attr(data-label);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 700;
  }
  .tbl--rows td:first-child::before {
    display: none;
  }
  .lrow {
    min-width: 0;
  }
}
@media (min-width: 861px) and (max-width: 1420px) {
  .tbl--rows tr {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px 16px;
    align-items: start;
  }
  .tbl--rows td:first-child {
    grid-column: span 2;
  }
  .tbl--rows td.acts {
    grid-column: -3 / -1;
    align-self: center;
  }
  .tbl--rows .acts__in {
    flex-wrap: wrap;
  }
  .tbl--rows .price {
    font-size: 1.1rem;
  }
}
@media (max-width: 860px) {
  .tbl--rows tr {
    grid-template-columns: 1fr 1fr;
  }
  .tbl--rows td:first-child,
  .tbl--rows td.acts {
    grid-column: 1 / -1;
  }
  .acts__in {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
@media (min-width: 1421px) {
  .tbl--rows th,
  .tbl--rows td {
    padding-left: 12px;
    padding-right: 12px;
  }
  .tbl--rows .price {
    font-size: 1.06rem;
    white-space: nowrap;
  }
  .tbl--rows td > .sample-tag {
    display: block;
    width: fit-content;
    margin: 3px 0 0;
  }
  .tbl--rows .lrow {
    min-width: 230px;
  }
  .tbl--rows .lrow__img {
    width: 72px;
  }
}

/* edit listing */
.edit {
  display: grid;
  gap: 20px;
  align-items: start;
}
@media (min-width: 1100px) {
  .edit {
    grid-template-columns: 1fr 320px;
  }
  .edit__preview {
    position: sticky;
    top: calc(var(--demobar-h) + 20px);
  }
}
.sticky-save {
  position: sticky;
  bottom: calc(var(--tabbar-h) + 8px);
  z-index: 5;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}

/* leads board */
.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}
@media (max-width: 860px) {
  .board {
    grid-auto-columns: 82%;
  }
}
.col {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  max-height: calc(100vh - var(--demobar-h) - 260px);
  background: #e8edf3;
  border-radius: 14px;
  scroll-snap-align: start;
  min-width: 0;
}
.col.is-focus {
  box-shadow: 0 0 0 2px var(--brand);
}
.col__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 12px 8px;
}
.col__head h2 {
  margin: 0;
}
.col__n {
  min-width: 24px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fff;
  font-weight: 750;
  font-size: 0.8rem;
  text-align: center;
}
.col__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 8px 10px;
  overflow-y: auto;
  border-radius: 0 0 14px 14px;
  transition: background 0.15s;
}
.col__body.is-over {
  background: color-mix(in srgb, var(--brand) 14%, transparent);
}
.col__empty {
  text-align: center;
  padding: 14px 0;
}
.lc {
  position: relative;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #dfe5ec;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  cursor: grab;
}
.lc.is-dragging {
  opacity: 0.5;
}
.lc--fresh {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 35%, transparent);
}
.lc__a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}
.lc__a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.lc__t {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}
.lc__p {
  margin: 2px 0 8px;
  font-size: 0.84rem;
  color: var(--ink-2);
}
.lc__m {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lc__new {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-ink);
}
.filter-note {
  font-size: 0.9rem;
}
.crm-note {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 14px;
}
.drawer-scrim {
  position: fixed;
  inset: var(--demobar-h) 0 0 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.35);
}
.drawer {
  position: fixed;
  z-index: 95;
  top: var(--demobar-h);
  right: 0;
  bottom: 0;
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -20px 0 50px -20px rgba(0, 0, 0, 0.4);
}
.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 14px 12px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 {
  margin: 0;
}
.drawer__head p {
  margin: 2px 0 0;
}
.drawer__body {
  flex: 1;
  overflow: auto;
  padding: 16px 20px 28px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.stages {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.stages li {
  padding: 6px 2px;
  border-radius: 6px;
  background: #eef1f5;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}
.stages li.is-done {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.stages li.is-on {
  background: var(--brand);
  color: var(--on-brand);
}
.mini {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}
.mini > span:last-child {
  display: flex;
  flex-direction: column;
}
.mini__img {
  flex: none;
  width: 92px;
  aspect-ratio: 20 / 13;
  border-radius: 8px;
  overflow: hidden;
}
.quote {
  padding: 12px;
  border-radius: 12px;
  background: #f6f8fa;
}
.quote p {
  margin: 4px 0 0;
}
.notes,
.timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: grid;
  gap: 8px;
}
.notes li {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fffbea;
  border: 1px solid #f3e3a1;
}
.notes p {
  margin: 0 0 2px;
}
.note-form {
  display: grid;
  gap: 8px;
  justify-items: end;
}
.timeline li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 18px;
  font-size: 0.88rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 17px;
  bottom: -10px;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::after {
  display: none;
}

/* settings */
.settings {
  display: grid;
  gap: 16px;
}
@media (min-width: 1000px) {
  .settings {
    grid-template-columns: 1.2fr 1fr;
  }
}
.settings .card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-preview {
  align-self: start;
}
.bp-site {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.bp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.bp-btn {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.8rem;
  font-weight: 700;
}
.bp-hero {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 14px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-ink));
  color: #fff;
}
.bp-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
}
.radio-card {
  position: relative;
  display: flex;
  gap: 10px;
  cursor: pointer;
}
.radio-card > span {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
}
.radio-card input:checked + span {
  border-color: var(--brand);
  background: var(--brand-softer);
}
.team {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.team li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.team li > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.copyrow {
  display: flex;
  gap: 8px;
}

/* sign in */
.signin {
  min-height: calc(100vh - var(--demobar-h));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  padding: 32px 16px;
  background: linear-gradient(160deg, var(--brand-softer), #eef2f6);
}
@media (min-width: 900px) {
  .signin {
    grid-template-columns: 440px 320px;
    justify-content: center;
  }
}
.signin__card {
  width: 100%;
  max-width: 440px;
  padding: 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  display: grid;
  gap: 12px;
}
.signin__card h1 {
  margin: 6px 0 0;
}
.signin__card > p {
  margin: 0;
}
.creds {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #fff3d6;
  border: 1px solid #f2cf7a;
  color: #4a2d00;
}
.creds > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.creds code {
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
}
.signin__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  max-width: 440px;
  width: 100%;
}
.signin__list li {
  display: flex;
  gap: 12px;
  color: var(--ink-2);
}
.signin__list .ic {
  color: var(--brand-ink);
  margin-top: 2px;
}
.signin__list b {
  display: block;
  color: var(--ink);
}

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

@media print {
  body {
    padding: 0;
    background: #fff;
  }
  body > *:not(#layer) {
    display: none !important;
  }
  #layer .scrim,
  .dlg__head,
  .dlg__foot {
    display: none !important;
  }
  .dlg {
    position: static;
    transform: none;
    width: auto !important;
    max-height: none;
    box-shadow: none;
  }
}
