:root {
  --black: #000000;
  --bg: #09090b;
  --charcoal: #09090b;
  --panel: #18181b;
  --panel-2: #1f1f23;
  --input: #111114;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.16);
  --gold: #d9a62e;
  --gold-soft: #ecc55f;
  --white: #ffffff;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --danger: #ef4444;
  --s-available: #22c55e;
  --s-reserved: #f59e0b;
  --s-negotiation: #f97316;
  --s-sold: #ef4444;
  --s-rented: #3b82f6;
  --s-offmarket: #71717a;
  --s-new: #8b5cf6;
  --sans: 'Inter', 'Segoe UI', system-ui, Arial, sans-serif;
  --serif: 'Inter', 'Segoe UI', system-ui, Arial, sans-serif;
  --wrap: 1320px;
  --pad: clamp(16px, 3.2vw, 40px);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--charcoal);
  /* dark stone texture */
  background-image:
    radial-gradient(ellipse at 15% 20%, rgba(255,255,255,.035), transparent 45%),
    radial-gradient(ellipse at 85% 60%, rgba(255,255,255,.03), transparent 50%),
    radial-gradient(ellipse at 40% 90%, rgba(217,166,46,.035), transparent 45%);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--gold); text-decoration: none; }
.muted { color: var(--muted); }
a:hover { color: var(--gold-soft); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------- header */
.site-header { position: relative; z-index: 20; padding-top: 12px; }
.site-header.over-hero { position: absolute; left: 0; right: 0; top: 0; }
.topstrip {
  background: var(--black);
  display: flex; justify-content: flex-end; align-items: center; gap: 18px;
  padding: 5px 20px; font-size: 14px; min-height: 32px;
}
.topstrip .who { color: var(--gold); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topstrip .who em { font-style: normal; }
.topstrip button { white-space: nowrap; }
@media (max-width: 600px) { .topstrip { gap: 14px; font-size: 13px; padding: 5px 12px; } .topstrip .who em { display: none; } }
.topstrip .who span { color: var(--white); margin-right: 6px; }
.topstrip button { background: none; border: 0; color: var(--text); cursor: pointer; padding: 2px 0; font-size: 14px; }
.topstrip button:hover { color: var(--gold); }
.headrow { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0 0; }
.brand { display: flex; align-items: center; min-height: 64px; }
.brand img { height: 78px; width: auto; }
.wordmark { display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--gold); }
.wordmark b { font-weight: 500; font-size: 22px; letter-spacing: .02em; }
.wordmark small { font-size: 10px; letter-spacing: .42em; margin-top: 5px; padding-left: .42em; }
.nav {
  background: var(--black); border-radius: 999px;
  display: flex; align-items: center; padding: 10px 26px; gap: 0;
}
.nav a { color: var(--white); font-size: 18px; padding: 2px 0; white-space: nowrap; }
.nav a:hover { color: var(--gold-soft); }
.nav a.active { color: var(--gold); }
.nav .sep { color: var(--gold); padding: 0 18px; user-select: none; }
.menu-btn { display: none; background: var(--black); border: 0; border-radius: 999px; padding: 10px 18px; color: var(--gold); cursor: pointer; }

@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; right: 0; top: calc(100% + 10px); flex-direction: column; align-items: stretch;
         border-radius: 18px; padding: 10px 0; min-width: 220px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 24px; }
  .nav .sep { display: none; }
  .brand img { height: 60px; }
}

/* ---------------------------------------------------------- hero */
.hero {
  position: relative; min-height: min(760px, 88vh); display: flex; align-items: flex-end; justify-content: center;
  background: #0d0c0a center / cover no-repeat; text-align: center; padding: 200px var(--pad) 48px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.62) 100%);
}
.hero.empty { background-image:
  linear-gradient(135deg, rgba(217,166,46,.10), transparent 40%),
  repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 1px, transparent 1px 90px); }
.hero-inner { position: relative; max-width: 900px; width: 100%; }
.hero h1 { margin: 0; font-weight: 500; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.1; color: var(--white);
  text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero .sub { font-family: var(--serif); color: var(--gold); font-size: clamp(22px, 2.6vw, 34px); margin: 14px 0 0; font-weight: 400; }
.hero .caption { font-family: var(--serif); color: var(--text); font-size: 17px; margin: 18px 0 0; opacity: .92; }
.hero .caption a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.35); }
.hero-search { display: flex; margin: 30px auto 0; max-width: 620px; background: rgba(0,0,0,.72); border-radius: 999px;
  padding: 6px; border: 1px solid rgba(217,166,46,.45); }
.hero-search input { flex: 1; background: transparent; border: 0; padding: 10px 18px; color: var(--white); min-width: 0; font-size: 16px; }
.hero-search input::placeholder { color: #bdb6a6; }
.hero-search input:focus { outline: none; }
.hero-search button { background: var(--gold); color: var(--black); border: 0; border-radius: 999px; padding: 10px 26px; font-weight: 500; cursor: pointer; }
.hero-search button:hover { background: var(--gold-soft); }

/* ---------------------------------------------------------- sections */
.section { padding: 64px 0; }
.section-title { color: var(--gold); font-weight: 300; font-size: clamp(28px, 3vw, 38px); text-align: center; margin: 0 0 36px; }
.page-head { padding: 40px 0 8px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.page-head h1 { margin: 0; color: var(--gold); font-weight: 300; font-size: clamp(28px, 3vw, 40px); }
.page-head p { margin: 4px 0 0; color: var(--muted); }

.inventory { display: grid; grid-template-columns: repeat(6, 1fr); max-width: 1180px; margin: 0 auto; }
.inventory a { display: block; text-align: center; padding: 8px 10px 14px; color: var(--text); border-left: 1px solid var(--line); }
.inventory a:first-child { border-left: 0; }
.inventory a:hover .num { color: var(--gold-soft); }
.inventory .num { display: block; font-size: clamp(34px, 3.4vw, 48px); font-weight: 300; color: var(--white); line-height: 1.1; }
.inventory .lbl { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin-top: 6px; }
@media (max-width: 800px) {
  .inventory { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .inventory a:nth-child(4) { border-left: 0; }
}

/* photo strip - full bleed */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip a { position: relative; aspect-ratio: 1 / 1.05; overflow: hidden; background: #0d0c0a; color: var(--white); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.strip a:hover img { transform: scale(1.04); }
.strip .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; text-align: left;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.82)); }
.strip .cap b { display: block; font-weight: 500; font-size: 18px; }
.strip .cap span { font-family: var(--serif); color: var(--gold-soft); font-size: 15px; }
.strip .badge { position: absolute; left: 14px; top: 14px; }
.strip a.unavailable img { filter: grayscale(1) brightness(.6); }
.strip .noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-family: var(--serif); }
@media (max-width: 800px) { .strip { grid-template-columns: repeat(2, 1fr); } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.col-title { color: var(--gold); font-weight: 400; font-size: 22px; margin: 0 0 14px; }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.row:hover { color: var(--white); }
.row:hover .row-title { color: var(--gold-soft); }
.row .thumb { width: 64px; height: 48px; object-fit: cover; background: #0d0c0a; }
.row-title { font-weight: 500; }
.row-meta { color: var(--muted); font-size: 13px; }
.row-side { text-align: right; font-size: 13px; color: var(--muted); }
.empty-note { color: var(--muted); padding: 16px 0; font-family: var(--serif); }

/* ---------------------------------------------------------- status */
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.st-Available { --st: var(--s-available); }
.st-Reserved { --st: var(--s-reserved); }
.st-Under-Negotiation { --st: var(--s-negotiation); }
.st-Sold { --st: var(--s-sold); }
.st-Rented { --st: var(--s-rented); }
.st-Off-Market { --st: var(--s-offmarket); }
.dot[class*="st-"] { background: var(--st); }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 10px; border-radius: 999px;
  background: rgba(0,0,0,.78); color: var(--white); font-size: 13px; font-weight: 500; white-space: nowrap; }
.badge .dot { background: var(--st); }

/* ---------------------------------------------------------- filters + grid */
.filters { display: grid; grid-template-columns: 2fr repeat(5, 1fr) auto; gap: 10px; padding: 18px 0 8px; align-items: center; }
@media (max-width: 1100px) { .filters { grid-template-columns: 1fr 1fr 1fr; } .filters .grow { grid-column: 1 / -1; } }
@media (max-width: 560px) { .filters { grid-template-columns: 1fr 1fr; } }
.field, .filters input, .filters select {
  width: 100%; background: var(--black); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--text);
}
.filters input:focus, .filters select:focus, .field:focus { border-color: var(--gold); outline: none; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--text); cursor: pointer; white-space: nowrap; }
.check input { accent-color: var(--gold); width: 16px; height: 16px; }
.result-count { color: var(--muted); margin: 6px 0 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.card { display: block; color: var(--text); background: var(--panel); }
.card:hover { color: var(--text); }
.card:hover .card-title { color: var(--gold-soft); }
.card .ph { position: relative; aspect-ratio: 4 / 3; background: #0d0c0a; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .ph .badge { position: absolute; left: 12px; top: 12px; }
.card .ph .ref { position: absolute; right: 12px; top: 12px; font-size: 12px; background: rgba(0,0,0,.7); padding: 3px 9px; border-radius: 999px; color: var(--gold-soft); }
.card .noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-family: var(--serif); font-size: 14px; }
.card .body { padding: 16px 18px 18px; }
.card-title { font-weight: 500; font-size: 17px; margin: 0 0 2px; color: var(--white); line-height: 1.35; }
.card .loc { color: var(--muted); font-size: 14px; }
.card .facts { display: flex; gap: 14px; color: var(--muted); font-size: 13px; margin-top: 10px; }
.card .price { font-family: var(--serif); color: var(--gold); font-size: 18px; margin-top: 10px; }
/* unavailable - still listed, visibly marked */
.card.unavailable .ph img { filter: grayscale(1) brightness(.55); }
.card.unavailable .price { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }

.pager { display: flex; justify-content: center; gap: 10px; margin: 36px 0 10px; }

/* ---------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 10px 22px;
  border: 1px solid var(--gold); background: var(--gold); color: var(--black); font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--black); }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: rgba(217,166,46,.12); color: var(--gold-soft); }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: rgba(229,83,75,.12); }
.btn.small { padding: 6px 14px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------- listing detail */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; height: min(620px, 70vh); }
.gallery .main { background: #0d0c0a center / cover no-repeat; cursor: zoom-in; border: 0; padding: 0; }
.gallery .side { display: grid; grid-template-rows: 1fr 1fr; gap: 6px; }
.gallery .side button { background: #0d0c0a center / cover no-repeat; border: 0; padding: 0; cursor: zoom-in; position: relative; }
.gallery .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); color: var(--white); font-size: 18px; }
.gallery.single { grid-template-columns: 1fr; }
.gallery.none { display: grid; place-items: center; height: 260px; grid-template-columns: 1fr; background: #0d0c0a; color: var(--muted); font-family: var(--serif); }
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr; height: auto; } .gallery .main { aspect-ratio: 4/3; } .gallery .side { display: none; } }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding: 40px 0 70px; }
@media (max-width: 1000px) { .detail { grid-template-columns: 1fr; } }
.detail h1 { font-weight: 500; font-size: clamp(28px, 3vw, 40px); color: var(--white); margin: 10px 0 4px; line-height: 1.15; }
.detail .subline { font-family: var(--serif); color: var(--gold); font-size: 19px; }
.detail .muted { color: var(--muted); }
.detail h2 { color: var(--gold); font-weight: 400; font-size: 22px; margin: 40px 0 14px; }
.facts-grid { display: flex; flex-wrap: wrap; margin: 25px 0 0 1px; }
.facts-grid div { flex: 0 1 170px; padding: 14px 16px; border: 1px solid var(--line); margin: -1px 0 0 -1px; }
.facts-grid dt { color: var(--muted); font-size: 13px; }
.facts-grid dd { margin: 2px 0 0; color: var(--white); font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 14px; }
.prose { max-width: 72ch; }
.prose p { margin: 0 0 1em; }
.lines { margin: 0; padding-left: 20px; max-width: 72ch; }
.lines li { margin: 4px 0; }
.aside-box { background: var(--black); padding: 24px; margin-bottom: 18px; }
.aside-box .big-price { font-family: var(--serif); color: var(--gold); font-size: 30px; line-height: 1.2; }
.aside-box .price-line { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.aside-box .price-line:last-child { border-bottom: 0; }
.aside-box h3 { margin: 0 0 12px; font-weight: 400; color: var(--gold); font-size: 17px; }
.aside-box.internal { border: 1px solid rgba(217,166,46,.5); }
.aside-box dl { margin: 0; }
.aside-box dt { color: var(--muted); font-size: 13px; margin-top: 10px; }
.aside-box dd { margin: 0; color: var(--white); word-break: break-word; }
.status-control { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.status-control select { flex: 1; }
.map { width: 100%; height: 320px; border: 0; filter: grayscale(.25) contrast(1.05); }
.files { display: grid; gap: 8px; }
.file-link { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; background: var(--panel); color: var(--text); }
.file-link:hover { color: var(--gold-soft); }
.floorplans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.floorplans button { background: #fff center / contain no-repeat; aspect-ratio: 4/3; border: 0; cursor: zoom-in; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94); display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; }
.lightbox img { max-height: 90vh; max-width: 100%; margin: 0 auto; object-fit: contain; }
.lightbox button { background: none; border: 0; color: var(--white); font-size: 34px; cursor: pointer; height: 100%; }
.lightbox .close { position: absolute; top: 14px; right: 20px; height: auto; font-size: 30px; }
.lightbox .count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------- forms */
.form { padding: 10px 0 80px; }
.fs { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 26px 0 30px; display: grid; grid-template-columns: 260px 1fr; gap: 30px; }
@media (max-width: 900px) { .fs { grid-template-columns: 1fr; gap: 14px; } }
.fs > legend { display: contents; }
.fs-head h2 { color: var(--gold); font-weight: 400; font-size: 21px; margin: 0; }
.fs-head p { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 18px; }
@media (max-width: 700px) { .fields { grid-template-columns: 1fr 1fr; } }
.fields .wide { grid-column: 1 / -1; }
.fields .half { grid-column: span 2; }
@media (max-width: 700px) { .fields .half { grid-column: 1 / -1; } }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
label.f .req { color: var(--gold); }
textarea.field { min-height: 96px; resize: vertical; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 16px; }
.rte-bar { display: flex; gap: 4px; margin-bottom: 6px; }
.rte-bar button { background: var(--black); border: 1px solid var(--line); border-radius: 6px; padding: 4px 12px; cursor: pointer; color: var(--text); }
.rte-bar button:hover { border-color: var(--gold); color: var(--gold); }
.rte { min-height: 160px; background: var(--black); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; color: var(--text); }
.rte:focus { outline: none; border-color: var(--gold); }
.rte ul, .rte ol { padding-left: 22px; }
.savebar { position: sticky; bottom: 0; background: rgba(0,0,0,.92); padding: 14px var(--pad); display: flex; justify-content: flex-end; gap: 12px; align-items: center; z-index: 10; border-top: 1px solid var(--line); }
.savebar .msg { margin-right: auto; color: var(--danger); }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.mitem { background: var(--black); position: relative; }
.mitem img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.mitem .cover-tag { position: absolute; left: 8px; top: 8px; background: var(--gold); color: var(--black); font-size: 12px; padding: 2px 9px; border-radius: 999px; font-weight: 500; }
.mitem .tools { display: flex; gap: 4px; padding: 6px; flex-wrap: wrap; }
.mitem .tools button { flex: 1; background: var(--panel); border: 0; color: var(--text); padding: 5px 4px; cursor: pointer; font-size: 12px; }
.mitem .tools button:hover { color: var(--gold); }
.mitem .tools button.del:hover { color: var(--danger); }
.mitem .name { padding: 10px 10px 0; font-size: 13px; word-break: break-all; }
.uploader { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.progress { color: var(--gold-soft); font-size: 14px; }
.link-row { display: grid; grid-template-columns: 150px 1.4fr 1fr auto; gap: 10px; margin-top: 14px; }
@media (max-width: 700px) { .link-row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; min-width: 720px; }
.t th { text-align: left; font-weight: 400; color: var(--muted); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.t td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t tr.inactive td { opacity: .5; }
.role { color: var(--gold-soft); }
.changes { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.changes b { color: var(--text); font-weight: 500; }

/* ---------------------------------------------------------- login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 30px var(--pad); }
.login-box { width: 100%; max-width: 420px; background: var(--black); padding: 40px 36px; }
.login-box .brand { justify-content: center; margin-bottom: 18px; }
.login-box h1 { text-align: center; font-weight: 300; color: var(--gold); font-size: 28px; margin: 0; }
.login-box p.lead { text-align: center; color: var(--muted); font-family: var(--serif); margin: 6px 0 26px; }
.login-box form { display: grid; gap: 16px; }
.login-box .btn { width: 100%; padding: 12px; }
.err { color: var(--danger); min-height: 1.2em; font-size: 14px; }

/* ---------------------------------------------------------- modal + toast */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal { background: var(--charcoal); border: 1px solid var(--line); width: 100%; max-width: 520px; padding: 28px; max-height: 90vh; overflow: auto; }
.modal h2 { margin: 0 0 18px; color: var(--gold); font-weight: 400; font-size: 22px; }
.modal form { display: grid; gap: 14px; }
.modal .actions { justify-content: flex-end; margin-top: 8px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--black); color: var(--white);
  border: 1px solid var(--gold); padding: 11px 22px; border-radius: 999px; z-index: 120; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast.error { border-color: var(--danger); }
.busy { pointer-events: none; opacity: .65; transition: opacity .2s .15s; }
.loading { padding: 120px 0; text-align: center; color: var(--muted); font-family: var(--serif); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------------------------------------------------------- presentations list */
.pres-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 26px; }
.pcard { display: block; background: var(--panel); color: var(--text); }
.pcard:hover { color: var(--text); }
.pcard:hover h3 { color: var(--gold-soft); }
.pcard-img { position: relative; aspect-ratio: 16 / 9; background: #0d0c0a; display: grid; place-items: center; color: var(--muted); font-family: var(--serif); font-size: 14px; }
.pcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard-img .lstate { position: absolute; left: 12px; top: 12px; }
.pcard-body { padding: 16px 18px 18px; }
.pcard h3 { margin: 0 0 4px; font-weight: 500; font-size: 18px; color: var(--white); }
.pcard p { margin: 0; }
.pcard-meta { color: var(--muted); font-size: 13px; margin-top: 10px !important; }
.lstate { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 4px 12px 4px 10px; font-size: 13px; font-weight: 500; background: rgba(0,0,0,.8); color: var(--white); }
.lstate::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--s-available); }
.ls-disabled::before { background: var(--s-offmarket); }
.ls-expired::before { background: var(--s-sold); }
.empty-block { text-align: center; padding: 70px 20px; max-width: 560px; margin: 20px auto; }
.empty-block h2 { color: var(--gold); font-weight: 300; font-size: 28px; margin: 0 0 10px; }
.empty-block p { color: var(--muted); margin: 0 0 22px; }
.empty-block.small { padding: 30px 10px; margin: 0; }
.empty-block.small p { margin: 0; }
.pick-list { display: grid; gap: 8px; }
.pick-row { display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: var(--black); border: 1px solid var(--line); padding: 12px 14px; cursor: pointer; color: var(--text); }
.pick-row:hover { border-color: var(--gold); }
.pick-row b { font-weight: 500; }

/* ---------------------------------------------------------- photo picker */
.modal.picker { max-width: 1040px; display: flex; flex-direction: column; gap: 12px; height: min(88vh, 900px); }
.picker-head { display: flex; justify-content: space-between; align-items: center; }
.picker-head h2 { margin: 0; }
.picker-hint { margin: 0; font-size: 14px; }
.picker-grid { overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; align-content: start; flex: 1; }
.pk { position: relative; border: 2px solid transparent; padding: 0; background: #0d0c0a; cursor: pointer; aspect-ratio: 4 / 3; overflow: hidden; color: var(--white); text-align: left; }
.pk:hover, .pk:focus-visible { border-color: var(--gold); }
.pk img { width: 100%; height: 100%; object-fit: cover; }
.pk.unavailable img { filter: grayscale(1) brightness(.6); }
.pk .badge { position: absolute; left: 6px; top: 6px; font-size: 11px; padding: 2px 8px; }
.pk-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 9px 7px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); font-size: 12px; line-height: 1.3; }
.pk-cap b { display: block; font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-cap span { color: var(--gold-soft); }

/* ---------------------------------------------------------- editor */
.ed { padding: 16px var(--pad) 0; }
.ed-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ed-back { color: var(--muted); font-size: 14px; }
.ed-back::before { content: '‹ '; }
.ed-title { flex: 1; min-width: 200px; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 6px 10px; color: var(--gold); font-size: 24px; font-weight: 300; }
.ed-title:hover { border-color: var(--line); }
.ed-title:focus { outline: none; border-color: var(--gold); background: var(--black); }
.ed-status { color: var(--muted); font-size: 13px; min-width: 60px; }
.ed-status.err { color: var(--danger); }
.ed-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ed-main { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 0; height: calc(100vh - 230px); min-height: 560px; }
.ed-panel { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 12px 6px; cursor: pointer; font-size: 14px; }
.tabs button.on { color: var(--gold); border-bottom-color: var(--gold); }
.tabs button:hover { color: var(--text); }
.tab-body { overflow-y: auto; padding: 18px 18px 40px 0; flex: 1; }
.ed-sec { padding: 0 0 22px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.ed-sec:last-child { border-bottom: 0; }
.ed-sec h3 { color: var(--gold); font-weight: 400; font-size: 17px; margin: 0 0 12px; }
.ed-sec .check { display: flex; margin: 8px 0; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; line-height: 1.5; }
.items { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.item { background: var(--panel); border: 1px solid transparent; }
.item.open { border-color: rgba(217,166,46,.45); }
.item-head { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 10px; }
.ithumb { width: 72px; height: 54px; object-fit: cover; background: #0d0c0a; display: block; }
.item-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item-txt b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--white); }
.item-txt .muted { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-txt .warn .badge { font-size: 11px; padding: 2px 8px; }
.edited-tag { font-size: 11px; color: var(--gold-soft); }
.item-tools { display: flex; gap: 4px; }
.item-tools button { background: var(--black); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 5px 9px; cursor: pointer; font-size: 13px; }
.item-tools button:hover:not([disabled]) { border-color: var(--gold); color: var(--gold); }
.item-tools button[disabled] { opacity: .35; cursor: default; }
.item-tools .edit-btn { min-width: 52px; }
.item-ed { padding: 4px 14px 16px; border-top: 1px solid var(--line); }
.ied-block { padding: 12px 0 6px; }
.frow-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linkish:hover { color: var(--gold-soft); }
.pstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.pth { position: relative; background: #0d0c0a; }
.pth img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.main-tag, .up-tag { position: absolute; left: 4px; top: 4px; background: var(--gold); color: var(--black); font-size: 10px; font-weight: 500; padding: 1px 7px; border-radius: 999px; }
.up-tag { left: auto; right: 4px; background: var(--black); color: var(--gold-soft); }
.pth-tools { display: flex; }
.pth-tools button { flex: 1; background: var(--black); border: 0; color: var(--text); padding: 3px 0; cursor: pointer; font-size: 11px; }
.pth-tools button:hover:not([disabled]) { color: var(--gold); }
.pth-tools button[disabled] { opacity: .3; cursor: default; }
.ied-actions { margin-top: 10px; align-items: center; }
.unused { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px; margin-top: 10px; }
.unused button { border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.unused button:hover { border-color: var(--gold); }
.unused img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ied-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.frow { display: flex; flex-direction: column; min-width: 0; }
.frow.wide { grid-column: 1 / -1; }
.frow .field, .ed-sec .field { font-size: 14px; }
.frow .rte { min-height: 130px; font-size: 14px; }
.ied-checks { display: grid; gap: 6px; margin-top: 14px; font-size: 14px; }
.ied-foot { margin-top: 16px; justify-content: space-between; }
.designs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.design { background: var(--black); border: 2px solid var(--line); padding: 8px; cursor: pointer; color: var(--text); display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.design.on { border-color: var(--gold); }
.design:hover { border-color: var(--gold-soft); }
.design b { font-weight: 500; font-size: 14px; }
.sw { height: 56px; display: flex; align-items: flex-end; gap: 4px; padding: 8px; border: 1px solid rgba(255,255,255,.1); }
.sw i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(128,128,128,.4); }
.share-state { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; font-size: 13px; }
.copy-row { display: flex; gap: 8px; }
.copy-row .field { flex: 1; min-width: 0; }
.ed-preview { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pv-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 0 10px 18px; }
.seg { display: inline-flex; background: var(--black); border-radius: 999px; padding: 3px; }
.seg button { background: none; border: 0; color: var(--muted); padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.seg button.on { background: var(--gold); color: var(--black); }
.pv-open { margin-left: auto; font-size: 13px; }
.pv-wrap { flex: 1; min-height: 0; margin-left: 18px; background: #0a0a0a; display: flex; justify-content: center; }
.pv-wrap iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.pv-wrap.phone { padding: 16px 0; background: #2a2825; }
.pv-wrap.phone iframe { width: 390px; max-width: 100%; border-radius: 24px; border: 8px solid #000; }
.logo-prev { background: var(--black); padding: 24px; display: inline-flex; min-width: 260px; min-height: 100px; align-items: center; justify-content: center; }
.logo-prev img { max-height: 90px; width: auto; }
@media (max-width: 1100px) {
  .ed-main { grid-template-columns: 1fr; height: auto; }
  .ed-panel { border-right: 0; }
  .tab-body { padding-right: 0; overflow: visible; }
  .ed-preview { height: 80vh; margin-top: 10px; }
  .pv-bar, .pv-wrap { margin-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .ied-grid { grid-template-columns: 1fr; }
  .designs { grid-template-columns: 1fr 1fr 1fr; }
  .ed-title { font-size: 20px; }
}


/* ==========================================================================
   SaaS design system (overrides the earlier luxury styles)
   ========================================================================== */
body { background: var(--bg); background-image: none; font-size: 14.5px; line-height: 1.55; font-feature-settings: 'cv11', 'ss01'; }
.muted { color: var(--muted); }
.ic { width: 18px; height: 18px; flex: none; }
.num, .kpi-num, .price { font-variant-numeric: tabular-nums; }

/* buttons */
.btn { border-radius: 8px; padding: 0 16px; height: 38px; font-size: 14px; font-weight: 600; gap: 7px; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.ghost { border-color: var(--line-strong); color: var(--white); background: transparent; }
.btn.ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.28); color: var(--white); }
.btn.danger { border-color: rgba(239,68,68,.5); }
label.btn { cursor: pointer; }

/* fields */
.field, .filters input, .filters select { background: var(--input); border: 1px solid var(--line-strong); border-radius: 8px; color: var(--white); }
.field::placeholder { color: #64748b; }
.field:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,166,46,.18); }
label.f { color: var(--text); font-weight: 500; font-size: 13.5px; }

/* type */
.page-head { padding: 32px 0 8px; }
.page-head h1 { color: var(--white); font-weight: 650; font-size: 28px; letter-spacing: -.02em; }
.page-head p { color: var(--muted); font-size: 14.5px; }
.col-title, .fs-head h2, .detail h2, .ed-sec h3, .modal h2 { color: var(--white); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.fs-head p, .hint { color: var(--muted); }
.detail h1 { font-weight: 650; letter-spacing: -.02em; }
.detail .subline { color: var(--gold-soft); font-size: 16px; }
.aside-box, .aside-box.internal { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.aside-box.internal { border-color: rgba(217,166,46,.35); }
.aside-box h3 { color: var(--white); font-weight: 600; }
.aside-box dt, .facts-grid dt { color: var(--muted); }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.card .price { font-family: var(--sans); font-weight: 600; font-size: 17px; }
.card .loc, .card .facts { color: var(--muted); }
.fs { border-top-color: var(--line); }
.modal { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.toast { border-radius: 10px; background: var(--panel-2); border-color: var(--line-strong); }
.t th { color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------- app header */
.app-header { position: sticky; top: 0; z-index: 40; background: rgba(9,9,11,.82); backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.hwrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); height: 64px; display: flex; align-items: center; gap: 22px; }
.app-header .brand { min-height: 0; }
.app-header .brand img { height: 34px; width: auto; }
.app-header .wordmark b { font-size: 17px; font-weight: 700; }
.app-header .wordmark small { font-size: 8.5px; margin-top: 3px; }
.mainnav { display: flex; gap: 2px; }
.mainnav a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 8px; }
.mainnav a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.mainnav a.active { color: var(--white); background: rgba(255,255,255,.09); }
.hright { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-trigger { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 11px; min-width: 210px; background: var(--input);
  border: 1px solid var(--line); border-radius: 8px; color: var(--muted); cursor: pointer; font-size: 13.5px; }
.search-trigger:hover { border-color: var(--line-strong); color: var(--text); }
.search-trigger .kbd { margin-left: auto; }
.kbd { display: inline-flex; align-items: center; gap: 2px; font: 500 11.5px/1 var(--sans); color: var(--text); background: rgba(255,255,255,.08);
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; white-space: nowrap; }
.avatar-wrap { position: relative; }
.avatar-btn { display: flex; align-items: center; gap: 6px; background: none; border: 1px solid transparent; border-radius: 999px; padding: 3px 8px 3px 3px; cursor: pointer; color: var(--muted); }
.avatar-btn:hover, .avatar-btn[aria-expanded="true"] { background: rgba(255,255,255,.06); border-color: var(--line); color: var(--white); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: #1a1300;
  background: linear-gradient(135deg, #f3d27a, #c8911f); letter-spacing: .02em; }
.avatar-btn .ic { width: 15px; height: 15px; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.55); padding: 6px; display: none; z-index: 60; }
.menu.open { display: block; }
.menu-head { padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head b { display: block; color: var(--white); font-weight: 600; }
.menu-head span { color: var(--muted); font-size: 13px; }
.menu-head .role-pill { display: inline-block; margin-top: 6px; font-size: 11.5px; color: var(--gold-soft); background: rgba(217,166,46,.12); border: 1px solid rgba(217,166,46,.3); border-radius: 999px; padding: 1px 8px; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); background: none; border: 0; cursor: pointer; font-size: 14px; text-align: left; }
.menu a:hover, .menu button:hover { background: rgba(255,255,255,.07); color: var(--white); }
.menu .ic { width: 16px; height: 16px; color: var(--muted); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-label { font-size: 11.5px; color: var(--muted); padding: 6px 10px 2px; font-weight: 500; }
.menu .danger-item { color: #fca5a5; }
.menu .danger-item .ic { color: #fca5a5; }
.hamburger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 38px; height: 38px; color: var(--white); cursor: pointer; place-items: center; }
.mobile-nav { display: none; }
@media (max-width: 1520px) { .search-trigger { min-width: 0; } .search-trigger .st-text { display: none; } }
@media (max-width: 1500px) { #hdr-pres .btn-text { display: none; } }
@media (max-width: 860px) {
  .mainnav { display: none; }
  .hamburger { display: grid; }
  .mobile-nav.open { display: grid; gap: 2px; padding: 8px var(--pad) 12px; border-top: 1px solid var(--line); }
  .mobile-nav a { color: var(--text); padding: 10px 12px; border-radius: 8px; font-weight: 500; }
  .mobile-nav a.active { background: rgba(255,255,255,.08); color: var(--white); }
  .avatar-btn .ic { display: none; }
}
@media (max-width: 600px) {
  .hwrap { gap: 10px; }
  #hdr-pres, .search-trigger { display: none; }
  #hdr-add .btn-text { display: none; }
  #hdr-add { width: 38px; padding: 0; }
  .app-header .brand img { height: 28px; }
}

/* ---------------------------------------------------------- dashboard */
.dash { padding-top: 28px; padding-bottom: 70px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dash-head h1 { margin: 0; color: var(--white); font-size: 26px; font-weight: 650; letter-spacing: -.02em; }
.dash-head p { margin: 4px 0 0; color: var(--muted); }
.dash-date { color: var(--muted); font-size: 13.5px; }
.bigsearch { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; padding: 6px 6px 6px 16px;
  transition: border-color .15s, box-shadow .15s; }
.bigsearch:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,166,46,.15); }
.bigsearch > .ic { color: var(--muted); width: 20px; height: 20px; }
.bigsearch input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--white); font-size: 16px; height: 44px; }
.bigsearch input::placeholder { color: #71809a; }
.bigsearch .kbd-hint { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.bigsearch .btn { height: 44px; padding: 0 20px; border-radius: 9px; }
@media (max-width: 700px) { .bigsearch .kbd-hint { display: none; } .bigsearch .btn { padding: 0 14px; } }

.qfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.qf-wrap { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); overflow: hidden; }
.qf-wrap.on { border-color: rgba(217,166,46,.55); background: rgba(217,166,46,.10); }
.qf { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; color: var(--text); padding: 7px 12px; cursor: pointer; font-size: 13.5px; font-weight: 500; }
.qf:hover { color: var(--white); background: rgba(255,255,255,.05); }
.qf .ic { width: 15px; height: 15px; color: var(--muted); }
.qf-wrap.on .qf { color: var(--gold-soft); }
.qf-wrap.on .qf .ic { color: var(--gold-soft); }
.qf-x { background: none; border: 0; border-left: 1px solid rgba(217,166,46,.35); color: var(--gold-soft); padding: 0 10px; cursor: pointer; font-size: 15px; }
.qf-x:hover { background: rgba(217,166,46,.18); }
.qf-clear { background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; padding: 6px; text-decoration: underline; text-underline-offset: 3px; }
.qf-clear:hover { color: var(--white); }
.popover { position: absolute; z-index: 70; min-width: 240px; max-width: 320px; max-height: 360px; overflow-y: auto; background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.55); padding: 6px; }
.popover .pop-label { font-size: 11.5px; color: var(--muted); padding: 8px 10px 4px; font-weight: 500; }
.popover .pop-item { display: flex; width: 100%; align-items: center; gap: 9px; background: none; border: 0; border-radius: 8px; color: var(--text); padding: 8px 10px; cursor: pointer; text-align: left; font-size: 14px; }
.popover .pop-item:hover, .popover .pop-item.sel { background: rgba(255,255,255,.07); color: var(--white); }
.popover .pop-item.sel::after { content: '✓'; margin-left: auto; color: var(--gold-soft); }
.popover .pop-empty { color: var(--muted); padding: 10px; font-size: 13.5px; }
.pop-price { padding: 8px; display: grid; gap: 10px; }
.pop-price .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pop-price .row2 label { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); }
.pop-price .presets { display: flex; flex-wrap: wrap; gap: 6px; }
.pop-price .presets button { background: var(--input); border: 1px solid var(--line-strong); color: var(--text); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; }
.pop-price .presets button:hover { border-color: var(--gold); color: var(--white); }

.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 26px 0 26px; }
@media (max-width: 1150px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { display: flex; flex-direction: column; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 14px; color: var(--text);
  transition: border-color .15s, background .15s; }
.kpi:hover { border-color: var(--line-strong); background: var(--panel-2); color: var(--text); }
.kpi-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); border-radius: 999px; padding: 3px 10px 3px 8px; }
.kpi-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.kpi-num { font-size: 32px; font-weight: 650; color: var(--white); letter-spacing: -.03em; line-height: 1; }
.kpi-foot { font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.kpi-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.kpi-bar i { display: block; height: 100%; background: var(--c); border-radius: 3px; }

.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 960px) { .panels { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-width: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--white); letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.panel-head h2 .count { font-size: 12px; font-weight: 600; color: var(--text); background: rgba(255,255,255,.08); border-radius: 999px; padding: 1px 8px; }
.panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.panel-link { font-size: 13px; font-weight: 500; color: var(--text); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 4px 8px; border-radius: 6px; }
.panel-link:hover { color: var(--white); background: rgba(255,255,255,.06); }
.panel-link .ic { width: 14px; height: 14px; }
.plist { list-style: none; margin: 0; padding: 6px; }
.prow { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 9px; color: var(--text); }
.prow:hover { background: rgba(255,255,255,.04); color: var(--text); }
.prow:hover .prow-title { color: var(--gold-soft); }
.prow-img { width: 52px; height: 40px; border-radius: 7px; object-fit: cover; background: #111114; border: 1px solid var(--line); }
.prow-title { color: var(--white); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12.5px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px 2px 7px; color: var(--c, var(--text));
  background: color-mix(in srgb, var(--c, #94a3b8) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c, #94a3b8) 30%, transparent); white-space: nowrap; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.due-soon { color: #fbbf24; font-weight: 600; } .due-now { color: #f87171; font-weight: 600; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 38px 24px 34px; gap: 6px; flex: 1; justify-content: center; }
.empty-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text); margin-bottom: 8px; }
.empty-ic .ic { width: 22px; height: 22px; }
.empty h3 { margin: 0; color: var(--white); font-size: 15.5px; font-weight: 600; }
.empty p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; max-width: 34ch; }

/* status badges on photos, higher contrast */
.badge { background: rgba(9,9,11,.82); border: 1px solid rgba(255,255,255,.12); }

/* ---------------------------------------------------------- command palette */
.pal-bg { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.pal { width: 100%; max-width: 620px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.7); overflow: hidden; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.pal-in .ic { color: var(--muted); width: 19px; height: 19px; }
.pal-in input { flex: 1; background: none; border: 0; outline: none; color: var(--white); font-size: 16px; height: 54px; }
.pal-list { max-height: 420px; overflow-y: auto; padding: 6px; }
.pal-label { font-size: 11.5px; color: var(--muted); padding: 8px 10px 4px; font-weight: 500; }
.pal-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 9px; background: none; border: 0; color: var(--text); cursor: pointer; text-align: left; font-size: 14px; }
.pal-item.sel { background: rgba(255,255,255,.08); color: var(--white); }
.pal-item .ic { color: var(--muted); }
.pal-item img, .pal-item .pal-noimg { width: 44px; height: 32px; border-radius: 6px; object-fit: cover; background: #111114; flex: none; }
.pal-item .pal-t { min-width: 0; flex: 1; }
.pal-item .pal-t b { display: block; font-weight: 500; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-item .pal-t span { color: var(--muted); font-size: 12.5px; }
.pal-foot { display: flex; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.pal-empty { color: var(--muted); padding: 22px; text-align: center; }

/* ---------------------------------------------------------- listings page filters */
.lsearch { margin-top: 18px; }
.lbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 12px 0 4px; }
.lbar-right { display: flex; gap: 10px; align-items: center; }
.lbar-right select { background: var(--input); border: 1px solid var(--line-strong); border-radius: 8px; color: var(--white); height: 34px; padding: 0 10px; }
.result-count { color: var(--muted); }

/* ---------------------------------------------------------- save bars */
.savebar { padding: 0; background: rgba(9,9,11,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.savebar-in { display: flex; justify-content: flex-end; gap: 10px; align-items: center; padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.savebar-in .msg { margin-right: auto; color: #f87171; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 20px 0 60px; border-top: 1px solid var(--line); }
.form-actions .form-msg { margin-right: auto; color: #f87171; font-size: 14px; }
.logo-prev { background: var(--input); border: 1px dashed var(--line-strong); border-radius: 12px; }
.fs { grid-template-columns: 280px 1fr; }

/* editor fits under the slimmer header */
.ed-main { height: calc(100vh - 150px); }
.tabs button.on { color: var(--white); border-bottom-color: var(--gold); }
.item { border-radius: 10px; }
.pcard { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pcard h3 { font-weight: 600; }
.login-box { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.login-box h1 { color: var(--white); font-weight: 650; }
.logo-none { color: var(--muted); font-size: 13.5px; max-width: 26ch; text-align: center; }
.check { color: var(--text); font-size: 13.5px; }
.check input { accent-color: var(--gold); }
.ed-title { color: var(--white); font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.app-header .brand img { height: 42px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; }
.lockup .mark { height: 34px; width: auto; }
.app-header .lockup .mark { height: 30px; }
.login-box .lockup .mark { height: 52px; }
.login-box .lockup .wordmark b { font-size: 22px; }
.logo-prev .lockup .mark { height: 56px; }
@media (max-width: 600px) { .app-header .lockup .wordmark { display: none; } }

/* ---------------------------------------------------------- listing cards (dashboard carousel + listings page) */
.grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; align-items: stretch; }
.lcard { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; color: var(--text);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; min-width: 0; }
.lcard:hover { color: var(--text); transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.lcard-img { position: relative; display: block; aspect-ratio: 16 / 10.3; background: #111114; overflow: hidden; border-radius: 20px 20px 0 0; }
.lcard-img img { width: 100%; height: 100%; object-fit: cover; }
/* swipeable photos */
.lcard-slides { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lcard-slides::-webkit-scrollbar { display: none; }
.lcard-slides img { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; user-select: none; -webkit-user-drag: none; background: #111114; }
.lcard-nav { position: absolute; top: 50%; z-index: 2; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); color: #111; box-shadow: 0 2px 10px rgba(0,0,0,.35); cursor: pointer; opacity: 0; transition: opacity .2s, transform .15s; }
.lcard-nav .ic { width: 18px; height: 18px; }
.lcard-nav.prev { left: 10px; }
.lcard-nav.next { right: 10px; }
.lcard-nav[hidden] { display: none; }
.lcard-nav:hover { transform: scale(1.08); }
@media (hover: hover) { .lcard-img:hover .lcard-nav { opacity: 1; } }
.lcard-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.lcard-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); box-shadow: 0 0 3px rgba(0,0,0,.4); transition: background .2s, transform .2s; }
.lcard-dots i.on { background: #fff; transform: scale(1.25); }
.lcard-count { position: absolute; right: 14px; bottom: 10px; z-index: 2; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,.55); border-radius: 10px; padding: 2px 8px; pointer-events: none; }
.lcard-badge, .lcard-ref { z-index: 2; }
.lcard-noimg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; }
.lcard-noimg .ic { width: 26px; height: 26px; }
.lcard-badge { position: absolute; left: 16px; top: 16px; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 6px; padding: 4px 9px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.lcard-badge.dark { color: #1a1300; }
.lcard-ref { position: absolute; right: 14px; top: 16px; font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(0,0,0,.55); border-radius: 6px; padding: 4px 8px; }
.lcard-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px; }
.lcard-title { display: block; color: var(--white); font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.lcard-loc { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--text); font-size: 14.5px; }
.lcard-loc .ic { width: 16px; height: 16px; color: var(--gold); }
.lcard-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 14px; color: #cbd5e1; font-size: 14.5px; line-height: 1.65; }
.lcard-feats { display: grid; gap: 9px; margin-top: 16px; }
.lcard-feats > span { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: 14.5px; }
.lcard-feats .ic { width: 16px; height: 16px; color: var(--gold); }
.lcard-foot { position: relative; margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lcard-foot::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; border-radius: 999px; background: var(--input); border: 1px solid var(--line); }
.lcard-price { position: relative; padding-left: 16px; color: var(--gold); font-size: 19px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 0; }
.lcard-price small { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.lcard-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--gold);
  color: #1a1300; font-size: 13.5px; font-weight: 700; flex: none; transition: background .15s; }
.lcard:hover .lcard-btn { background: var(--gold-soft); }
.lcard-btn .ic { width: 15px; height: 15px; }
.lcard.unavailable .lcard-img img { filter: grayscale(1) brightness(.6); }
.lcard.unavailable .lcard-price { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); }

.showcase { margin: 0 0 30px; }
.sc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sc-head h2 { margin: 0; color: var(--white); font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.sc-head p { margin: 4px 0 0; color: var(--muted); }
.sc-wrap { position: relative; }
.sc-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 4px 2px 14px; overscroll-behavior-x: contain; }
.sc-track::-webkit-scrollbar { display: none; }
.sc-track .lcard { scroll-snap-align: start; }
.sc-arrow { position: absolute; top: 42%; z-index: 3; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--panel-2);
  color: var(--gold); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px rgba(0,0,0,.5); transition: opacity .2s, background .15s; }
.sc-arrow:hover:not([disabled]) { background: #2a2a30; color: var(--gold-soft); }
.sc-arrow[disabled] { opacity: 0; pointer-events: none; }
.sc-arrow .ic { width: 22px; height: 22px; }
.sc-arrow.prev { left: -26px; }
.sc-arrow.next { right: -26px; }
.sc-wrap.static .sc-arrow { display: none; }
@media (max-width: 1380px) { .sc-arrow.prev { left: -12px; } .sc-arrow.next { right: -12px; } }
@media (max-width: 1100px) { .sc-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 700px) {
  .sc-track { grid-auto-columns: 86%; gap: 14px; }
  .sc-arrow { display: none; }
  .lcard-body { padding: 20px; }
  .lcard-price { font-size: 17px; padding-left: 14px; }
  .lcard-btn { padding: 0 15px; gap: 5px; }
}

/* two-currency prices */
.lcard-price.two { font-size: 16.5px; display: flex; flex-direction: column; justify-content: center; line-height: 1.12; padding-top: 3px; padding-bottom: 3px; }
.lcard-foot:has(.lcard-price.two)::before { top: 22px; height: auto; }
.lcard-price.two em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.aside-box .alt-price { color: var(--muted); font-size: 15px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.cur-row { display: flex; flex-direction: column; gap: 8px; }
.cur-row .seg { align-self: flex-start; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: block; color: var(--muted); padding: 6px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.seg-opt input:checked + span { background: var(--gold); color: var(--black); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.cur-row small { font-size: 12.5px; }

/* categories */
.cat-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 600; }
.cat-chip:hover { border-color: var(--gold); color: var(--text); }
.cat-chip .ic { width: 16px; height: 16px; color: var(--gold); }
.cat-chip b, .cat-tab b { font-weight: 700; font-size: 12px; color: var(--muted); background: var(--input); border-radius: 999px; padding: 2px 8px; }
.cat-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--muted); font-size: 14px; font-weight: 600;
  border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.cat-tab:hover { color: var(--text); }
.cat-tab.on { color: var(--text); border-bottom-color: var(--gold); }
.cat-tab.on b { background: var(--gold); color: #1a1300; }
.cat-tab.new { color: var(--gold); }
.cat-tab.new .ic { width: 15px; height: 15px; }
.aside-box.cats h3 { margin: 0 0 10px; font-size: 15px; }
.cat-checks { display: grid; gap: 8px; }
.lcard-remove { position: absolute; z-index: 3; right: 14px; top: 50px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.65); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.lcard-remove:hover { background: #ef4444; }
.pick-list { max-height: 46vh; overflow: auto; display: grid; gap: 6px; margin: 4px 0; }
.pick { display: grid; grid-template-columns: auto 56px 1fr; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; font-size: 13.5px; }
.pick:hover { border-color: var(--line-strong); }
.pick img, .pick-noimg { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--input); display: block; }
.pick small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.money-pair { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: inherit; max-width: 760px; }
@media (max-width: 520px) { .money-pair { gap: 12px; } }

/* property type (like the Excel "property type" column) */
.lcard-type, .type-tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; color: var(--gold); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.lcard-type .ic, .type-tag .ic { width: 14px; height: 14px; }
.type-tag { margin: 12px 0 2px; font-size: 13px; }

/* table view (like the Excel sheets) */
.view-seg { display: inline-flex; }
.seg-a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.seg-a .ic { width: 15px; height: 15px; }
.seg-a:hover { color: var(--text); }
.seg-a.on { background: var(--gold); color: #1a1300; }
.xl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; font-size: 13px; }
.xl-wrap { overflow: auto; max-height: calc(100vh - 220px); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.xl { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.xl th, .xl td { padding: 7px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); white-space: nowrap; text-align: left; max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.xl th { position: sticky; top: 0; z-index: 2; background: #1c1c21; color: var(--text); font-weight: 700; font-size: 12.5px; }
.xl th:first-child, .xl td:first-child { position: sticky; left: 0; z-index: 1; background: #16161a; font-weight: 700; }
.xl th:first-child { z-index: 3; background: #1c1c21; }
.xl td.num, .xl td.money, .xl th.num, .xl th.money { text-align: right; }
.xl tbody tr { cursor: pointer; }
.xl tbody tr:hover td { background: rgba(212,168,67,.08); }
.xl tbody tr:nth-child(even) td:not(:first-child) { background: rgba(255,255,255,.015); }
.xl a { color: var(--gold); }

/* choose pictures for a presentation */
.choose-bar { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; font-size: 13.5px; }
.choose-count { font-weight: 700; margin-right: auto; }
.choose-grid { overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; flex: 1; padding: 2px; }
.ch { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #111; cursor: pointer; aspect-ratio: 4 / 3; }
.ch img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .45; transition: opacity .15s; }
.ch.on { border-color: var(--gold); }
.ch.on img { opacity: 1; }
.ch-n { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.45); color: #1a1300; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center; }
.ch.on .ch-n { background: var(--gold); border-color: var(--gold); }
.choose-foot { justify-content: flex-end; margin-top: 12px; }

/* rental reminders bell */
.bell-wrap { position: relative; }
.bell-btn { position: relative; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.bell-btn:hover { border-color: var(--line-strong); }
.bell-btn .ic { width: 19px; height: 19px; }
.bell-btn.ring { color: var(--gold); border-color: rgba(212,168,67,.5); }
.bell-n { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.bell-n[hidden] { display: none; }
.bell-pop { position: absolute; right: 0; top: 48px; width: min(420px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; z-index: 60; background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.bell-pop[hidden] { display: none; }
.bell-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rem { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.rem-t { color: var(--text); font-size: 14px; }
.rem-t b { color: var(--gold); }
.rem-s { font-size: 13px; color: var(--muted); }
.rem.ended .rem-s b { color: #ef4444; }
.rem-s b { color: #f59e0b; }
.rem-a { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rem-panel { border: 1px solid rgba(245,158,11,.45); background: rgba(245,158,11,.07); border-radius: 16px; padding: 14px 18px 4px; margin: 18px 0 8px; }
.rem-panel-h { display: flex; align-items: center; gap: 8px; }
.rem-panel-h .ic { width: 18px; height: 18px; color: #f59e0b; }
.rem-panel-h a { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.rem-panel-h a .ic { width: 14px; height: 14px; color: inherit; }
.rem-panel .rem:first-of-type { border-top: 0; }

/* rental form */
.rent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .rent-grid { grid-template-columns: 1fr; } }
.len-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { border: 1px solid var(--line); background: var(--input); color: var(--text); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.chip-btn:hover { border-color: var(--gold); color: var(--gold); }

/* calendar */
.cal-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.cal-bar h2 { margin: 0 8px; min-width: 190px; text-align: center; }
.cal-bar.small { justify-content: space-between; margin: 0 0 8px; }
.cal { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.cal-h, .cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-h span { padding: 8px 10px; font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.cd { min-height: 108px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cd:nth-child(7n) { border-right: 0; }
.cd.empty { background: rgba(255,255,255,.015); }
.cdn { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cd.today .cdn { background: var(--gold); color: #1a1300; border-radius: 999px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.cchip { display: block; font-size: 11.5px; font-weight: 600; padding: 2px 6px; border-radius: 5px; color: #fff; background: color-mix(in srgb, var(--c) 30%, transparent); border-left: 3px solid var(--c);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cchip:hover { color: #fff; background: color-mix(in srgb, var(--c) 55%, transparent); }
.cchip.closed { opacity: .5; }
.cmore { font-size: 11px; color: var(--muted); }
.cal.small .cd { min-height: 34px; align-items: center; justify-content: center; padding: 2px; }
.cal.small .cd.busy { background: rgba(212,168,67,.22); }
.cal.small .cd.busy .cdn { color: var(--gold); }
.cal.small .cal-h span { text-align: center; padding: 5px 0; }
.cdot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.rlist li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; }
.rlist li > :nth-child(n+3) { grid-column: 2; font-size: 13px; }
@media (max-width: 700px) { .cd { min-height: 70px; } .cchip { font-size: 10px; padding: 1px 3px; } .cal-bar h2 { min-width: 0; font-size: 18px; } }
.rent-box { margin-top: 30px; }
.rent-box:empty { display: none; }
.rent-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rent-head h2 { margin: 0; }
.rent-cal { max-width: 360px; }
.rent-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.rent-list li { display: flex; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.rent-list li > div:first-child { display: grid; gap: 3px; font-size: 14px; }
.rent-list li.live { border-color: rgba(212,168,67,.55); }
.rent-list .muted { font-size: 13px; }
.rent-acts { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.danger-link { color: #ef4444 !important; }
.app-header .wordmark b, .app-header .wordmark small { white-space: nowrap; }
.app-header .brand { flex: none; }
.mainnav a { white-space: nowrap; }

/* staff chat */
.nav-n { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.nav-n[hidden] { display: none; }
.chat { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: calc(100dvh - 65px); max-width: 1400px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.chat-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.chat-side-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 12px; }
.chat-side-h h1 { margin: 0; font-size: 24px; }
.chat-rooms { overflow-y: auto; flex: 1; padding: 0 8px 12px; }
.croom { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; color: var(--text); }
.croom:hover { background: rgba(255,255,255,.04); color: var(--text); }
.croom.on { background: rgba(212,168,67,.12); }
.croom-t { display: grid; min-width: 0; }
.croom-t b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.croom-t small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.croom-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #1a1300; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cav { width: 42px; height: 42px; border-radius: 50%; background: #2a2a31; color: var(--text); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.cav.team { background: var(--gold); color: #1a1300; }
.cav .ic { width: 20px; height: 20px; }
.chat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-main.empty-main { justify-content: center; }
.chat-h { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chat-h > div { display: grid; }
.chat-h small { font-size: 12.5px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px 18px 8px; display: flex; flex-direction: column; gap: 2px; }
.cm-day { text-align: center; margin: 14px 0 8px; }
.cm-day span { font-size: 12px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.cm-empty, .cm-more { text-align: center; color: var(--muted); margin: 20px 0; }
.cm { display: flex; flex-direction: column; align-items: flex-start; margin-top: 10px; position: relative; max-width: 100%; }
.cm.grouped { margin-top: 2px; }
.cm.mine { align-items: flex-end; }
.cm-who { font-size: 12px; font-weight: 700; color: var(--gold); margin: 0 0 3px 12px; }
.cm-bubble { position: relative; max-width: min(620px, 82%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 8px 12px 18px; display: grid; gap: 6px; }
.cm.mine .cm-bubble { background: rgba(212,168,67,.16); border-color: rgba(212,168,67,.35); }
.cm-text { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.5; min-width: 60px; }
.cm-text a { color: var(--gold); text-decoration: underline; }
.cm-time { position: absolute; right: 10px; bottom: 3px; font-size: 10.5px; color: var(--muted); }
.cm-img { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.cm-img img { display: block; max-width: 300px; max-height: 300px; width: 100%; object-fit: cover; border-radius: 10px; }
.cm-listing { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: center; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 12px; padding: 6px; color: var(--text); max-width: 380px; }
.cm-listing:hover { border-color: var(--gold); color: var(--text); }
.cm-listing img, .cm-noimg { width: 84px; height: 62px; object-fit: cover; border-radius: 8px; background: #222; display: block; }
.cm-listing b { color: var(--gold); }
.cm-listing span { font-size: 13.5px; line-height: 1.35; }
.cm-listing small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.cm-del { display: none; background: none; border: 0; color: #ef4444; font-size: 12px; cursor: pointer; padding: 3px 8px; }
.cm:hover .cm-del, .cm.show-del .cm-del { display: block; }
@media (hover: none) { .cm:hover .cm-del { display: none; } .cm.show-del .cm-del { display: block; } }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat-compose textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; background: var(--input); border: 1px solid var(--line); color: var(--text); border-radius: 14px; padding: 11px 14px; font: inherit; font-size: 14.5px; }
.chat-compose textarea:focus { outline: none; border-color: var(--gold); }
.cc-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.cc-btn:hover { border-color: var(--gold); color: var(--gold); }
.cc-btn .ic { width: 20px; height: 20px; }
.cc-send { width: 48px; height: 44px; padding: 0; justify-content: center; flex: none; }
.pick-row.person { flex-direction: row; align-items: center; gap: 12px; border-radius: 12px; }
.pick-row.person .cav { width: 36px; height: 36px; font-size: 13px; }
@media (max-width: 860px) {
  .chat { grid-template-columns: 1fr; border: 0; height: calc(100dvh - 61px); }
  .chat-side.hide, .chat-main.hide { display: none; }
  .chat-side { border-right: 0; }
  .cm-bubble { max-width: 88%; }
  .cm-img img { max-width: 240px; }
  .chat-compose textarea { font-size: 16px; }
  .chat-compose { padding: 10px; gap: 6px; }
}

/* online status */
.cav { position: relative; }
.odot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #6b7280; border: 2px solid var(--black, #0b0b0d); vertical-align: -1px; margin-right: 6px; }
.odot.on { background: #22c55e; }
.cav .odot { position: absolute; right: -1px; bottom: -1px; margin: 0; width: 13px; height: 13px; }
.online-txt { color: #22c55e; }
.chat-sub .online-txt .odot, td .odot { margin-right: 5px; }


/* new version bar */
.new-version { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--gold); border-radius: 14px; padding: 10px 12px 10px 16px; box-shadow: 0 16px 40px rgba(0,0,0,.5); font-size: 14px; }

/* smart search */
.understood { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 6px; font-size: 13.5px; color: var(--muted); }
.understood .ic { width: 15px; height: 15px; color: var(--gold); }
.uchip { background: rgba(212,168,67,.14); border: 1px solid rgba(212,168,67,.4); color: var(--text); border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: 12.5px; }
.understood .linkish { margin-left: 6px; }

/* notifications in the bell */
.notif { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 6px; border-top: 1px solid var(--line); color: var(--text); border-radius: 8px; }
.notif:hover { background: rgba(255,255,255,.04); color: var(--text); }
.notif.unread { background: rgba(212,168,67,.08); }
.notif-ic { width: 30px; height: 30px; border-radius: 50%; background: #25252c; display: inline-flex; align-items: center; justify-content: center; color: var(--gold); }
.notif-ic .ic { width: 15px; height: 15px; }
.notif b { font-size: 13.5px; font-weight: 600; display: block; }
.notif small { display: block; font-size: 12px; color: #cbd5e1; margin-top: 2px; }
.notif small.muted { color: var(--muted); }
/* viewings */
.vchip { display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 6px; border-radius: 5px; color: #dbeafe; background: rgba(59,130,246,.22); border-left: 3px solid #3b82f6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vchip .ic { width: 12px; height: 12px; flex: none; }
.vchip:hover { color: #fff; background: rgba(59,130,246,.4); }
.vchip.closed { opacity: .5; }
.cal-legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); margin: -6px 0 12px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .ic { width: 14px; height: 14px; color: #3b82f6; }
.lg-rent { width: 14px; height: 10px; border-radius: 3px; background: rgba(212,168,67,.35); border-left: 3px solid var(--gold); display: inline-block; }
.cal.small .cd.has-view .cdn { text-decoration: underline; text-decoration-color: #3b82f6; text-underline-offset: 3px; }
.vdot { color: #3b82f6; display: inline-flex; }
.vdot .ic { width: 16px; height: 16px; }
.vlist li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; }
.vlist li > :nth-child(n+3) { grid-column: 2; font-size: 13px; }
.v-acts { display: inline-flex; gap: 10px; margin-left: 8px; flex-wrap: wrap; }
.rem.view .rem-s b { color: #60a5fa; }
.vpast { margin-top: 8px; }
.vpast summary { cursor: pointer; font-size: 13.5px; }
/* clients */
.req-list { display: grid; gap: 14px; margin-bottom: 20px; }
.req { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.req.paused { opacity: .6; }
.req-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.req-name { font-size: 17px; }
.req-wants { margin: 8px 0; font-size: 15px; color: #e5e7eb; }
.req-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }

/* reports */
.rep-seg { margin: 0 0 18px; flex-wrap: wrap; }
.rep-seg button.seg-a { border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.rep-kpis { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 700px) { .rep-kpis { grid-template-columns: 1fr !important; } }
.rep-sec { margin-top: 18px; }
.rep-h { margin: 34px 0 12px; }
.rep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .rep-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .rep-grid { grid-template-columns: 1fr; } }
.rep-grid .panel { padding: 16px 18px; }
.rep-grid h3 { margin: 0 0 10px; font-size: 15px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.bars li > a, .bars li > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.bars li > a b, .bars li > span b { color: var(--gold); }
.bar { height: 8px; background: #25252c; border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.bars li > b { font-variant-numeric: tabular-nums; min-width: 28px; text-align: right; }
.rep-t td.num, .rep-t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rep-t td small { display: block; color: var(--muted); font-size: 11.5px; }

/* ---------------------------------------------------------------- two-step sign-in */
.sec-page { max-width: 760px; }
.sec-page .page-head p { max-width: 640px; }
.sec-box { padding: 22px; margin-top: 18px; }
.sec-state { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.sec-state > svg { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.06); color: var(--muted); flex: none; }
.sec-state.on > svg { background: rgba(34,197,94,.14); color: #22c55e; }
.sec-state b { display: block; font-size: 17px; color: var(--white); }
.sec-state span { color: var(--muted); font-size: 14px; }
.sec-steps { margin: 0; padding-left: 22px; display: grid; gap: 18px; }
.sec-steps li::marker { color: var(--gold); font-weight: 700; }
.sec-qr { background: #fff; border-radius: 10px; padding: 6px; width: 210px; max-width: 100%; margin: 10px 0 6px; }
.sec-qr svg { display: block; width: 100%; height: auto; }
.sec-manual summary { cursor: pointer; color: var(--gold-soft); font-size: 13.5px; }
.sec-manual code { display: inline-block; margin-top: 6px; font-size: 15px; letter-spacing: .06em; background: var(--input); padding: 6px 10px; border-radius: 8px; word-break: break-all; }
.sec-code { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.sec-code .field { width: 150px; font-size: 20px; letter-spacing: .2em; text-align: center; }
.sec-rec { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sec-rec code { display: block; text-align: center; background: var(--input); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font-size: 15px; letter-spacing: .08em; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.login .code-in { font-size: 20px; letter-spacing: .2em; text-align: center; }
.tfa-on svg { width: 14px; height: 14px; color: #22c55e; vertical-align: -2px; }
.tfa-reset { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin: 6px 0 10px; }
.tfa-reset span { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.tfa-reset svg { width: 16px; height: 16px; color: #22c55e; }

/* ---------------------------------------------------------------- API documentation */
.api-intro { padding: 18px 22px; margin: 18px 0; }
.api-intro p { margin: 0 0 8px; }
.api-docs code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--input); padding: 1px 6px; border-radius: 5px; }
.api-filter { max-width: 420px; }
.api-group h2 { font-size: 18px; margin: 26px 0 10px; }
.api-t td { vertical-align: top; }
.api-m { width: 74px; }
.api-m span { display: inline-block; min-width: 58px; text-align: center; font: 700 11.5px/1 ui-monospace, Consolas, monospace; padding: 5px 6px; border-radius: 6px; background: rgba(255,255,255,.08); }
.api-m .m-get { background: rgba(59,130,246,.18); color: #93c5fd; }
.api-m .m-post { background: rgba(34,197,94,.16); color: #86efac; }
.api-m .m-put, .api-m .m-patch { background: rgba(245,158,11,.16); color: #fcd34d; }
.api-m .m-delete { background: rgba(239,68,68,.16); color: #fca5a5; }
.api-p { white-space: nowrap; }
.api-who { color: var(--muted); white-space: nowrap; font-size: 13px; }
@media (max-width: 720px) {
  .api-t tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; padding: 10px 0; }
  .api-t td { border: 0; padding: 0 8px; }
  .api-t td:nth-child(3), .api-t td:nth-child(4) { grid-column: 1 / -1; }
  .api-p { white-space: normal; word-break: break-all; }
}
.api-t tr[hidden], .api-group[hidden] { display: none !important; }

/* ---------------------------------------------------------------- property alerts (clock button, next to the notifications bell) */
.alert-btn .bell-n { background: #f59e0b; color: #1a1300; }
.alert-btn.ring { color: #f59e0b; border-color: rgba(245,158,11,.5); }
.alert-sub { margin: 10px 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 420px) { .hright { gap: 6px; } .hright .bell-btn { width: 36px; height: 36px; } }
@media (max-width: 640px) { .bell-pop { position: fixed; left: 12px; right: 12px; top: 62px; width: auto; max-height: calc(100vh - 80px); } }

/* ---------------------------------------------------------------- developer role, deleting users */
.role-pill.dev { display: inline-block; font-size: 12px; font-weight: 700; color: #c4b5fd; background: rgba(139,92,246,.16); border: 1px solid rgba(139,92,246,.45); border-radius: 999px; padding: 1px 9px; }
.menu-head .role-pill.dev { color: #c4b5fd; background: rgba(139,92,246,.16); border-color: rgba(139,92,246,.45); }
.del-user { margin: 14px 0 4px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ================================================================ HUD v2: sidebar, top bar, phone tab bar */
:root { --side: 248px; --side-mini: 76px; }
.shell { min-height: 100vh; }
.sbar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side); z-index: 50; display: flex; flex-direction: column; gap: 6px;
  padding: 14px 12px 12px; background: linear-gradient(180deg, #0f0f12 0%, #0a0a0c 100%); border-right: 1px solid var(--line); transition: width .2s ease, transform .25s ease; }
.shell > .topbar, .shell > main { margin-left: var(--side); transition: margin-left .2s ease; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 12px; }
.sbar .brand { min-height: 0; }
.sbar .brand img { height: 40px; width: auto; display: block; }
.side-collapse { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.side-collapse:hover { color: var(--white); border-color: var(--line-strong); }
.side-collapse .ic { width: 16px; height: 16px; transition: transform .2s; }
.side-new { position: relative; padding: 0 2px 6px; }
.side-new-btn { width: 100%; height: 42px; justify-content: center; border-radius: 11px; box-shadow: 0 8px 24px rgba(217,166,46,.18); }
.side-new-btn .ic { width: 18px; height: 18px; }
.new-menu { left: 0; right: auto; width: 290px; }
.new-menu a, .new-menu button, .sheet a, .sheet button { align-items: flex-start !important; }
.new-menu b, .sheet b { display: block; color: var(--white); font-weight: 600; font-size: 14px; }
.new-menu small, .sheet small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.new-menu .ic { margin-top: 2px; color: var(--gold) !important; }
.side-nav { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 2px; padding: 0 2px; scrollbar-width: thin; }
.side-label { margin: 14px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #6b7280; white-space: nowrap; }
.side-label b { color: #22c55e; margin-left: 4px; }
.side-a { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.side-a .ic { width: 19px; height: 19px; flex: none; }
.side-a:hover { color: var(--white); background: rgba(255,255,255,.05); }
.side-a.active { color: var(--white); background: linear-gradient(90deg, rgba(217,166,46,.2), rgba(217,166,46,.04)); }
.side-a.active .ic { color: var(--gold); }
.side-a.active::before { content: ''; position: absolute; left: -2px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--gold); }
.side-c { margin-left: auto; font-size: 12px; color: #6b7280; font-weight: 600; }
.side-n { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.side-alert-n.side-n { background: #f59e0b; color: #1a1300; }
.side-n[hidden], .tab-n[hidden] { display: none; }
.side-foot { border-top: 1px solid var(--line); padding: 8px 2px 0; display: grid; gap: 8px; }
.side-team .side-label { margin: 6px 10px 6px; }
.team-row { display: flex; padding: 0 8px; }
.team-av { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #e2e8f0;
  background: #26262c; border: 2px solid #0b0b0d; margin-right: -6px; }
.team-av i { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; border: 2px solid #0b0b0d; }
.team-av.more { font-size: 10.5px; color: var(--muted); }
.side-me { position: relative; }
.side-user { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--muted); cursor: pointer; text-align: left; }
.side-user:hover, .side-user[aria-expanded="true"] { border-color: var(--line-strong); background: rgba(255,255,255,.05); }
.side-user .avatar { width: 36px; height: 36px; flex: none; position: relative; }
.me-dot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid #0b0b0d; }
.side-user-t { min-width: 0; flex: 1; }
.side-user-t b { display: block; color: var(--white); font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-t small { display: block; font-size: 12px; color: var(--muted); }
.side-user > .ic { width: 15px; height: 15px; transform: rotate(180deg); }
.side-me .menu { left: 0; right: auto; top: auto; bottom: calc(100% + 8px); width: 260px; }
/* collapsed sidebar: icons only */
.shell.mini .sbar { width: var(--side-mini); }
.shell.mini > .topbar, .shell.mini > main { margin-left: var(--side-mini); }
.shell.mini .side-t, .shell.mini .side-label, .shell.mini .side-c, .shell.mini .side-team { display: none; }
.shell.mini .side-top { flex-direction: column; padding: 4px 0 12px; }
.shell.mini .sbar .brand img { height: 30px; width: 34px; object-fit: cover; object-position: left center; }
.shell.mini .side-collapse .ic { transform: rotate(180deg); }
.shell.mini .side-a { justify-content: center; padding: 11px 0; }
.shell.mini .side-n { position: absolute; top: 3px; right: 6px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.shell.mini .side-new-btn { padding: 0; }
.shell.mini .side-user { justify-content: center; padding: 6px 0; border-color: transparent; }
/* top bar */
.topbar { position: sticky; top: 0; z-index: 40; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 clamp(16px, 2.4vw, 32px);
  background: rgba(9,9,11,.78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.tb-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--white); letter-spacing: -.01em; min-width: 110px; white-space: nowrap; }
.tb-brand { display: none; }
.topbar .search-trigger { flex: 1; max-width: 560px; min-width: 0; height: 40px; border-radius: 11px; padding: 0 8px 0 12px; }
.topbar .search-trigger .st-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .hright { margin-left: auto; gap: 8px; }
.tb-icon, .topbar .bell-btn { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.tb-icon:hover { border-color: var(--line-strong); color: var(--white); }
.tb-icon .ic { width: 19px; height: 19px; }
.tb-search { display: none; }
.side-scrim { display: none; }
.tabbar { display: none; }
/* the old header parts that are no longer used */
.hwrap, .mainnav, .mobile-nav { display: none !important; }

@media (max-width: 1100px) {
  .shell > .topbar, .shell > main, .shell.mini > .topbar, .shell.mini > main { margin-left: 0; }
  .sbar, .shell.mini .sbar { width: 280px; transform: translateX(-102%); box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  .sbar.open { transform: none; }
  .shell.mini .side-t, .shell.mini .side-label, .shell.mini .side-c, .shell.mini .side-team { display: revert; }
  .shell.mini .side-a { justify-content: flex-start; padding: 9px 12px; }
  .side-collapse { display: none; }
  .sbar.open + .side-scrim { display: block; position: fixed; inset: 0; z-index: 49; background: rgba(0,0,0,.5); }
  .topbar .hamburger { display: grid; }
  .tb-brand { display: block; min-height: 0; }
  .tb-brand img { height: 32px; width: auto; display: block; }
  .tb-title { display: none; }
}
@media (max-width: 760px) {
  .topbar { gap: 10px; height: 60px; }
  .topbar .search-trigger { display: none; }
  .tb-search { display: inline-flex; }
  #hdr-pres { display: none; }
  .topbar .hamburger { width: 40px; height: 40px; border-radius: 11px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    height: calc(64px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(12,12,14,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600;
    color: var(--muted); background: none; border: 0; cursor: pointer; }
  .tab .ic { width: 22px; height: 22px; }
  .tab.active { color: var(--gold); }
  .tab-add .ic { width: 50px; height: 50px; padding: 13px; border-radius: 50%; background: linear-gradient(135deg, #f3d27a, #d9a62e); color: #1a1300;
    box-shadow: 0 8px 22px rgba(217,166,46,.35); margin-top: -20px; stroke-width: 2.4; }
  .tab-n { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
  .tab-n.side-alert-n { background: #f59e0b; color: #1a1300; }
  .shell > main { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .savebar { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .chat { height: calc(100dvh - 60px - 64px - env(safe-area-inset-bottom, 0px)); }
  .bell-pop { top: 58px; }
}
/* phone "create" sheet */
.sheet-bg { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; opacity: 0; transition: opacity .18s; }
.sheet-bg.open { opacity: 1; }
.sheet { width: 100%; background: var(--panel); border-top: 1px solid var(--line-strong); border-radius: 20px 20px 0 0; padding: 8px 14px calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateY(40px); transition: transform .22s ease; }
.sheet-bg.open .sheet { transform: none; }
.sheet-grip { display: block; width: 40px; height: 4px; border-radius: 4px; background: #3f3f46; margin: 4px auto 10px; }
.sheet h3 { margin: 0 6px 8px; color: var(--white); font-size: 16px; }
.sheet a, .sheet button { display: flex; width: 100%; gap: 14px; padding: 12px 10px; border-radius: 12px; color: var(--text); background: none; border: 0; text-align: left; cursor: pointer; font: inherit; }
.sheet a:hover, .sheet button:hover { background: rgba(255,255,255,.05); }
.sheet .ic { width: 22px; height: 22px; color: var(--gold); margin-top: 1px; }

/* ================================================================ dashboard v2 */
.dash2 { padding-top: 22px; }
.hero2 { position: relative; display: flex; align-items: flex-end; min-height: 300px; padding: 40px clamp(20px, 3vw, 40px) 28px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); background: radial-gradient(120% 140% at 100% 0%, rgba(217,166,46,.18), transparent 55%), #111114; isolation: isolate; }
.hero2::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--hero, none) center / cover no-repeat; opacity: .7; }
.hero2::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(9,9,11,.97) 0%, rgba(9,9,11,.82) 42%, rgba(9,9,11,.25) 100%), linear-gradient(0deg, rgba(9,9,11,.85), transparent 55%); }
.hero2-in { width: 100%; max-width: 760px; }
.hero2-date { margin: 0 0 6px; color: var(--gold); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero2 h1 { margin: 0; color: var(--white); font-size: clamp(26px, 3.2vw, 38px); font-weight: 750; letter-spacing: -.025em; line-height: 1.1; }
.hero2-sub { margin: 8px 0 18px; color: #cbd5e1; font-size: 15px; }
.hero2-sub b { color: var(--white); }
.hero2 .bigsearch { background: rgba(20,20,23,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero2 .qfilters { margin-top: 12px; }
.hero2-tag { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15); }
.hero2-tag .ic { width: 14px; height: 14px; color: var(--gold); }
.dtoday { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.today-t { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, transform .15s; }
.today-t:hover { color: var(--text); border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-2px); }
.today-ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.today-ic .ic { width: 22px; height: 22px; }
.today-x { min-width: 0; }
.today-x b { display: block; font-size: 26px; font-weight: 750; color: var(--white); line-height: 1.05; }
.today-x span { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.today-x small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-go { margin-left: auto; width: 16px; height: 16px; color: #52525b; flex: none; }
.today-t:hover .today-go { color: var(--c); }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0 0 16px; }
.cat-tile { position: relative; height: 150px; padding: 14px; border-radius: 16px; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--line); color: #fff; background: linear-gradient(135deg, #2a2213, #121215); }
.cat-tile::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--img, none) center / cover no-repeat; transition: transform .5s ease; }
.cat-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 60%, rgba(0,0,0,.35) 100%); }
.cat-tile:hover { color: #fff; border-color: rgba(217,166,46,.55); }
.cat-tile:hover::before { transform: scale(1.06); }
.cat-tile-top { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(0,0,0,.4); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14); }
.cat-tile-top .ic { width: 17px; height: 17px; color: var(--gold); }
.cat-tile-b b { display: block; font-size: 17px; font-weight: 700; }
.cat-tile-b span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255,255,255,.8); }
.cat-tile-b .ic { width: 14px; height: 14px; transition: transform .2s; }
.cat-tile:hover .cat-tile-b .ic { transform: translateX(3px); color: var(--gold); }
.inv { padding: 20px 22px; margin-bottom: 8px; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.inv-head h2 { margin: 0; font-size: 17px; color: var(--white); }
.inv-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.inv-total { text-align: right; color: var(--text); }
.inv-total b { display: block; font-size: 30px; font-weight: 750; color: var(--white); line-height: 1; }
.inv-total span { font-size: 12px; color: var(--muted); }
.inv-bar { display: flex; gap: 3px; height: 14px; border-radius: 999px; overflow: hidden; background: #1f1f24; }
.inv-bar a { background: var(--c); min-width: 8px; transition: filter .15s; }
.inv-bar a:hover { filter: brightness(1.25); }
.inv-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.inv-legend a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--text); }
.inv-legend a:hover { border-color: var(--c); color: var(--white); }
.inv-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.inv-legend b { color: var(--white); }
.inv-legend small { color: var(--muted); }
.inv-legend a.zero { opacity: .45; }
.dash2 .showcase { margin-top: 26px; }
.dash-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin-top: 26px; align-items: start; }
.agenda { list-style: none; margin: 0; padding: 0 18px 8px; }
.ag-i { display: grid; grid-template-columns: 74px 36px minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.ag-i:first-child { border-top: 0; }
.ag-d b { display: block; color: var(--white); font-size: 13px; }
.ag-d small { color: var(--muted); font-size: 12px; }
.ag-dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.ag-dot .ic { width: 17px; height: 17px; }
.ag-t { min-width: 0; color: var(--text); }
.ag-t b { display: block; font-size: 14px; color: var(--white); font-weight: 600; }
.ag-t small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 1250px) { .dtoday { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .dash2 { padding-top: 14px; }
  .hero2 { min-height: 0; padding: 26px 18px 18px; border-radius: 16px; }
  .hero2-tag { display: none; }
  .hero2 .bigsearch .btn { display: none; }
  .dtoday { gap: 10px; }
  .today-t { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .today-go { display: none; }
  .today-ic { width: 38px; height: 38px; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-tile { height: 118px; }
  .dash-cols { grid-template-columns: 1fr; }
}

/* listing form on phones: one column, nothing wider than the screen */
.fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fields > * { min-width: 0; }
@media (max-width: 900px) { .fs { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px 0 24px; } }
@media (max-width: 700px) { .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; } }
label.f .req { background: none; border: 0; padding: 0; border-radius: 0; display: inline; }
.cat-tabs { min-width: 0; max-width: 100%; }
.lbar-right { flex-wrap: wrap; min-width: 0; }
@media (max-width: 600px) { .lbar-right { width: 100%; } .lbar-right select { flex: 1; min-width: 0; } }
@media (max-width: 760px) { .inv-legend a.zero { display: none; } .inv { padding: 16px; } }
.sbar-mark { display: none !important; }
.shell.mini .sbar .brand img:not(.sbar-mark) { display: none; }
.shell.mini .sbar .brand .sbar-mark { display: block !important; height: 30px; width: auto; }
@media (max-width: 1100px) { .shell.mini .sbar .brand img:not(.sbar-mark) { display: block; } .shell.mini .sbar .brand .sbar-mark { display: none !important; } }
@media (max-width: 760px) {
  .dtoday .today-t { flex-direction: row; align-items: center; padding: 11px; gap: 10px; }
  .dtoday .today-ic { width: 34px; height: 34px; border-radius: 10px; }
  .dtoday .today-ic .ic { width: 18px; height: 18px; }
  .dtoday .today-x b { font-size: 20px; }
  .dtoday .today-x span { font-size: 12.5px; }
  .dtoday .today-x small { display: none; }
}

/* ---------------------------------------------------------- videos: Photos / Videos switch */
.lcard-pane { position: absolute; inset: 0; display: block; }
.lcard-pane[hidden] { display: none; }
.lcard-vids { background: #000; }
.lcard-vids video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.lcard-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.85); color: #fff; cursor: pointer; backdrop-filter: blur(4px); transition: transform .15s, background .15s; }
.lcard-play .ic { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.lcard-play:hover { transform: scale(1.08); background: rgba(217,166,46,.85); }
.lcard-vnav { position: absolute; top: 50%; z-index: 2; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); color: #111; cursor: pointer; }
.lcard-vnav .ic { width: 18px; height: 18px; }
.lcard-vnav.prev { left: 10px; } .lcard-vnav.next { right: 10px; }
.lcard-vnav[hidden] { display: none; }
.lcard-switch { position: absolute; left: 12px; bottom: 10px; z-index: 3; display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); }
.lcard-switch [data-cv] { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.8); cursor: pointer; }
.lcard-switch [data-cv] .ic { width: 14px; height: 14px; }
.lcard-switch [data-cv].on { background: var(--gold); color: #1a1300; }
.lcard-switch [data-cv].off { opacity: .4; cursor: default; }
.lcard-img:has(.lcard-switch) .lcard-dots { left: auto; right: 64px; justify-content: flex-end; }
/* listing page */
.media-wrap { position: relative; }
.media-switch { position: absolute; z-index: 5; left: 50%; top: 16px; transform: translateX(-50%); display: inline-flex; gap: 3px; padding: 4px; border-radius: 999px;
  background: rgba(0,0,0,.65); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.media-switch button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; border: 0; background: none; color: rgba(255,255,255,.85); font: 600 14px var(--sans); cursor: pointer; }
.media-switch button .ic { width: 17px; height: 17px; }
.media-switch button b { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.14); }
.media-switch button[aria-selected="true"] { background: var(--gold); color: #1a1300; }
.media-switch button[aria-selected="true"] b { background: rgba(0,0,0,.15); }
.media-switch button:disabled { opacity: .4; cursor: default; }
.media-pane[hidden] { display: none; }
.vgal { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 6px; height: min(620px, 70vh); background: #000; }
.vgal.one { grid-template-columns: 1fr; }
.vmain { min-height: 0; background: #000; display: flex; }
.vmain video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vlist { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding-bottom: 70px; background: #0d0c0a; }
.vthumb { position: relative; flex: none; height: 150px; border: 2px solid transparent; padding: 0; background: #000; cursor: pointer; overflow: hidden; }
.vthumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vthumb.on { border-color: var(--gold); }
.vthumb-n { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 600; }
.vthumb-n .ic { width: 12px; height: 12px; fill: #fff; }
.vbox video { max-height: 88vh; max-width: 100%; margin: 0 auto; background: #000; }
.vbox button[hidden] { visibility: hidden; display: block; }
@media (max-width: 800px) {
  .vgal { grid-template-columns: 1fr; height: auto; }
  .vmain video { aspect-ratio: 16 / 10; height: auto; }
  .vlist { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 6px 6px 64px; }
  .vthumb { width: 140px; height: 90px; }
  .media-switch button { padding: 7px 12px; font-size: 13px; }
}
.mitem.vid video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #000; }
.mitem .mvid-tag { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font-size: 11.5px; font-weight: 600; }
.mitem .mvid-tag .ic { width: 13px; height: 13px; }

/* ---------------------------------------------------------- Luxury / Standard / Old tag */
.lcard-tags { position: absolute; left: 16px; top: 16px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.lcard-tags .lcard-badge { position: static; }
.grade-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--g); background: color-mix(in srgb, var(--g) 14%, transparent); border: 1px solid color-mix(in srgb, var(--g) 45%, transparent); }
.grade-tag.on-photo { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; color: #fff;
  background: color-mix(in srgb, var(--g) 70%, #000); border-color: transparent; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.grade-set { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 4px; }
.grade-set .muted { font-size: 13px; margin-right: 4px; }
.grade-set button { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--text); font: 600 12.5px var(--sans); cursor: pointer; }
.grade-set button:hover { border-color: var(--g, var(--muted)); }
.grade-set button.on { background: var(--g, #3f3f46); border-color: var(--g, #3f3f46); color: #111; }
.grade-set button.on:not([style]) { color: var(--white); }
/* headings in descriptions (PROPERTY OVERVIEW, KEY FEATURES ...) */
.prose h3, .rte h3 { margin: 16px 0 6px; font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--white); }
.prose h3:first-child, .rte h3:first-child { margin-top: 0; }

/* ================================================================ sign-in page */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, 1fr); background: var(--bg); }
.auth-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 36px clamp(28px, 4vw, 56px);
  background: #0b0b0d url('/login-bg.jpg') center / cover no-repeat; color: #fff; }
.auth-hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(9,9,11,.55) 0%, rgba(9,9,11,.15) 35%, rgba(9,9,11,.75) 70%, rgba(9,9,11,.96) 100%),
    linear-gradient(90deg, rgba(9,9,11,.8) 0%, rgba(9,9,11,.45) 55%, rgba(9,9,11,.15) 100%); }
.auth-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; box-shadow: inset -1px 0 0 rgba(255,255,255,.06); }
.auth-hero-top img { height: 46px; width: auto; display: block; }
.auth-hero-top .lockup .mark { height: 46px; }
.auth-hero-body { max-width: 560px; }
.auth-eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.auth-hero h2 { margin: 0 0 26px; font-size: clamp(28px, 3.1vw, 44px); line-height: 1.12; font-weight: 750; letter-spacing: -.025em; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 14px; align-items: center; }
.auth-points li > .ic { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 12px; color: var(--gold); background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.auth-points b { display: block; font-size: 15px; color: #fff; }
.auth-points span { font-size: 13.5px; color: rgba(255,255,255,.72); }
.auth-hero-foot { margin: 0; font-size: 12.5px; color: rgba(255,255,255,.55); }
.auth-panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 28px 24px;
  background: radial-gradient(90% 60% at 100% 0%, rgba(217,166,46,.10), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; }
.auth-brand-m { display: none; }
.auth-card h1 { margin: 0; color: var(--white); font-size: 30px; font-weight: 750; letter-spacing: -.02em; }
.auth-lead { margin: 8px 0 28px; color: var(--muted); font-size: 15px; }
.auth-card form { display: grid; gap: 16px; }
.auth-card label.f { font-size: 13.5px; font-weight: 600; color: var(--text); }
.in-ic { position: relative; display: block; margin-top: 7px; }
.in-ic > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #6b7280; pointer-events: none; }
.in-ic .field { width: 100%; height: 48px; padding-left: 44px; font-weight: 400; border-radius: 12px; font-size: 15px; background: #111114; border: 1px solid var(--line-strong); }
.in-ic .field:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,166,46,.15); outline: none; }
.in-ic:focus-within > .ic { color: var(--gold); }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 9px; background: none; color: #6b7280; cursor: pointer; display: grid; place-items: center; }
.pw-eye:hover, .pw-eye.on { color: var(--gold); background: rgba(255,255,255,.05); }
.pw-eye .ic { width: 18px; height: 18px; }
.in-ic:has(.pw-eye) .field { padding-right: 48px; }
.auth-btn { width: 100%; height: 50px; margin-top: 4px; border-radius: 12px; font-size: 15.5px; justify-content: center; gap: 10px; box-shadow: 0 10px 28px rgba(217,166,46,.22); }
.auth-btn .ic { width: 18px; height: 18px; transition: transform .15s; }
.auth-btn:hover .ic { transform: translateX(3px); }
.auth-card .err:empty { display: none; }
.auth-card .err { padding: 10px 12px; border-radius: 10px; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.35); color: #fca5a5; font-size: 13.5px; }
.code-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: rgba(217,166,46,.08); border: 1px solid rgba(217,166,46,.3); font-size: 13.5px; color: var(--text); margin-bottom: 12px; }
.code-note .ic { width: 20px; height: 20px; color: var(--gold); flex: none; }
.auth-card .code-in { height: 52px; font-size: 22px; letter-spacing: .3em; text-align: center; border-radius: 12px; }
.auth-help { display: flex; gap: 8px; align-items: flex-start; margin: 22px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.auth-help .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.auth-copy { position: absolute; bottom: 18px; margin: 0; color: #52525b; font-size: 12px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-hero { min-height: 210px; padding: 22px 20px; justify-content: flex-end; }
  .auth-hero-top { position: absolute; top: 18px; left: 20px; }
  .auth-hero-top img { height: 36px; }
  .auth-hero h2 { font-size: 24px; margin: 0; }
  .auth-points, .auth-hero-foot { display: none; }
  .auth-eyebrow { margin-bottom: 6px; font-size: 11px; }
  .auth-panel { justify-content: flex-start; padding: 26px 20px 60px; }
  .auth-card h1 { font-size: 26px; }
  .auth-lead { margin-bottom: 22px; }
}

/* back button in the top bar */
.tb-back { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255,255,255,.02); color: var(--text); font: 600 14px var(--sans); cursor: pointer; }
.tb-back:hover { border-color: var(--line-strong); color: var(--white); background: rgba(255,255,255,.05); }
.tb-back .ic { width: 18px; height: 18px; }
.topbar .tb-back + .tb-title { margin-left: -4px; }
@media (max-width: 1100px) {
  .topbar:has(.tb-back) .tb-brand { display: none; }
  .topbar:has(.tb-back) .tb-title { display: block; min-width: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 760px) {
  .tb-back { width: 40px; padding: 0; justify-content: center; }
  .tb-back span { display: none; }
}

/* ---------------------------------------------------------- security page */
.sec-must { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin: 18px 0 4px; border-radius: 14px; background: rgba(217,166,46,.1); border: 1px solid rgba(217,166,46,.45); }
.sec-must > .ic { width: 26px; height: 26px; color: var(--gold); flex: none; }
.sec-must b { display: block; color: var(--white); font-size: 16px; }
.sec-must span { color: var(--text); font-size: 14px; }
.sec-h { margin: 34px 0 10px; font-size: 18px; color: var(--white); }
.sec-list { padding: 4px 16px; }
.sec-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sec-row:first-child { border-top: 0; }
.sec-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--muted); }
.sec-ic .ic { width: 18px; height: 18px; }
.sec-row:not(.bad) .sec-ic .ic { color: #4ade80; }
.sec-row.bad .sec-ic { background: rgba(239,68,68,.1); } .sec-row.bad .sec-ic .ic { color: #f87171; }
.sec-t { flex: 1; min-width: 0; }
.sec-t b { display: block; color: var(--white); font-size: 14px; font-weight: 600; }
.sec-t b em { font-style: normal; font-size: 11px; font-weight: 700; color: #1a1300; background: var(--gold); border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }
.sec-t small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-when { font-size: 12.5px; white-space: nowrap; }
.notif.k-security .notif-ic { color: #f87171; background: rgba(239,68,68,.12); }
.user-sec { margin: 12px 0 4px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.user-sec-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.user-sec-h b { color: var(--white); font-size: 14px; }
.user-sec-list { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.user-sec-list li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); }
.user-sec-list li:first-child { border-top: 0; }
.user-sec-list li.bad span:first-child { color: #fca5a5; }
@media (max-width: 600px) { .sec-when { display: none; } .user-sec-list li { flex-direction: column; gap: 0; } }
