:root {
  --bg: #000;
  --surface: #0f0f11;
  --surface-2: #17171a;
  --surface-3: #212125;
  --line: #2a2a2f;
  --text: #f2f2f4;
  --muted: #8b8b93;
  --accent: #4cc9f0;
  --accent-ink: #001a24;
  --ok: #3ddc84;
  --warn: #ffb020;
  --bad: #ff5468;
  --violet: #a78bfa;
  --radius: 14px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); height: 100%; }
body {
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
.hidden { display: none !important; }

/* ---------- каркас ---------- */
.screen { min-height: 100%; padding: calc(var(--safe-t) + 0px) 0 calc(var(--nav-h) + var(--safe-b) + 16px); }
.topbar {
  position: sticky; top: 0; z-index: 5; background: rgba(0,0,0,.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: calc(var(--safe-t) + 12px) 16px 10px; border-bottom: 1px solid var(--surface-3);
}
.topbar-row { display: flex; align-items: center; gap: 10px; }
.topbar h1 { font-size: 24px; margin: 0; flex: 1; letter-spacing: -.02em; }
.content { padding: 14px 16px; max-width: 900px; margin: 0 auto; }
.content.wide { max-width: none; padding: 14px 0; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; background: rgba(10,10,12,.94); border-top: 1px solid var(--surface-3);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.bottom-nav button {
  flex: 1; background: none; border: 0; color: var(--muted); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; font-size: 11px; position: relative; cursor: pointer;
}
.bottom-nav button.active { color: var(--accent); }
.bottom-nav svg { width: 24px; height: 24px; }
.badge {
  position: absolute; top: 7px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.fab {
  position: fixed; right: 18px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 15;
  width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 24px rgba(76,201,240,.25); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.fab svg { width: 28px; height: 28px; }

/* ---------- элементы ---------- */
.btn {
  border: 0; border-radius: 12px; padding: 12px 16px; background: var(--surface-3); color: var(--text);
  font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ok { background: var(--ok); color: #00210f; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid #4a1f27; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.block { width: 100%; }
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
}
.icon-btn svg { width: 20px; height: 20px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin: 0 0 6px 2px; text-transform: uppercase; letter-spacing: .04em; }
.input, select.input, textarea.input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; outline: none; font-size: 16px;
}
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { border-color: var(--accent); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.row2 .input { min-width: 0; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: 7px 13px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.chip.on { background: var(--text); color: #000; border-color: var(--text); font-weight: 600; }
.chip .n { opacity: .6; margin-left: 4px; }

.search { margin-top: 10px; }

.card {
  background: var(--surface); border: 1px solid var(--surface-3); border-radius: var(--radius);
  padding: 14px; margin-bottom: 10px; cursor: pointer;
}
.card:active { background: var(--surface-2); }
.card-title { font-weight: 650; font-size: 15px; margin-bottom: 4px; }
.meta { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 7px; font-size: 12px;
  font-weight: 600; background: var(--surface-3); color: var(--text);
}
.tag.new { background: rgba(76,201,240,.14); color: var(--accent); }
.tag.in_progress { background: rgba(255,176,32,.14); color: var(--warn); }
.tag.done { background: rgba(61,220,132,.14); color: var(--ok); }
.tag.canceled { background: var(--surface-3); color: var(--muted); }
.tag.overdue { background: rgba(255,84,104,.15); color: var(--bad); }
.tag.high { background: rgba(255,84,104,.15); color: var(--bad); }
.card-top { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }

.avatars { display: flex; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); color: var(--text); flex: none;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
  border: 2px solid var(--surface);
}
.avatars .avatar + .avatar { margin-left: -8px; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; border: 0; }

.section-title { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 22px 0 10px; display: flex; justify-content: space-between; align-items: center; }
.empty { text-align: center; color: var(--muted); padding: 48px 20px; }
.empty svg { width: 44px; height: 44px; opacity: .4; margin-bottom: 10px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.stat { background: var(--surface); border: 1px solid var(--surface-3); border-radius: 12px; padding: 12px; }
.stat b { display: block; font-size: 22px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 12px; }

/* ---------- канбан ---------- */
.board {
  display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 10px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; align-items: flex-start; min-height: 60vh;
}
.column {
  flex: 0 0 min(82vw, 300px); scroll-snap-align: start; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--surface-3); padding: 10px; min-height: 120px;
}
.column.drop { border-color: var(--accent); }
.column-head { padding: 4px 4px 10px; border-bottom: 2px solid var(--accent); margin-bottom: 10px; }
.column-head b { display: block; font-size: 14px; }
.column-head span { color: var(--muted); font-size: 12px; }
.column .card { background: var(--surface-2); border-color: var(--line); }
.amount { font-weight: 700; }

/* ---------- модалки ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet {
  background: var(--bg); width: 100%; max-width: 720px; height: 100%; overflow-y: auto; display: flex; flex-direction: column;
  border-left: 1px solid var(--surface-3); border-right: 1px solid var(--surface-3); animation: up .2s ease-out;
}
.sheet-head {
  position: sticky; top: 0; z-index: 3; background: rgba(0,0,0,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 10px) 12px 10px; border-bottom: 1px solid var(--surface-3);
}
.sheet-head h2 { flex: 1; font-size: 17px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-body { padding: 16px; flex: 1; }
.sheet-foot {
  position: sticky; bottom: 0; background: rgba(0,0,0,.94); border-top: 1px solid var(--surface-3);
  padding: 12px 16px calc(12px + var(--safe-b)); display: flex; gap: 10px;
}
.sheet-foot .btn { flex: 1; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.kv { background: var(--surface); border: 1px solid var(--surface-3); border-radius: var(--radius); overflow: hidden; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--surface-3); }
.kv > div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); flex: none; }
.kv b { font-weight: 500; text-align: right; word-break: break-word; }
.big-title { font-size: 22px; font-weight: 700; margin: 4px 0 10px; letter-spacing: -.02em; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.desc { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--surface-3); border-radius: var(--radius); padding: 14px; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.photo { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.photo .x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }
.photo-add {
  aspect-ratio: 1; border-radius: 10px; border: 1px dashed var(--line); background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; cursor: pointer;
}
.photo-add svg { width: 24px; height: 24px; }
.viewer { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; align-items: center; justify-content: center; }
.viewer img { max-width: 100%; max-height: 100%; }
.viewer .icon-btn { position: absolute; top: calc(var(--safe-t) + 12px); right: 12px; }

.feed-item { display: flex; gap: 10px; margin-bottom: 14px; }
.feed-item .bubble { background: var(--surface); border: 1px solid var(--surface-3); border-radius: 4px 14px 14px 14px; padding: 10px 12px; flex: 1; min-width: 0; }
.feed-item .who { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.feed-item.sys { color: var(--muted); font-size: 13px; gap: 8px; align-items: center; padding-left: 4px; }
.feed-item.sys::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line); flex: none; }
.feed-item .photos { margin-top: 8px; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
.composer { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.composer textarea { min-height: 46px; height: 46px; }

.pick-list .pick { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; border: 1px solid var(--surface-3); margin-bottom: 8px; cursor: pointer; background: var(--surface); }
.pick-list .pick.on { border-color: var(--accent); background: rgba(76,201,240,.08); }
.pick .check { margin-left: auto; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; }
.pick.on .check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pick .check svg { width: 14px; height: 14px; }
.pick:not(.on) .check svg { opacity: 0; }

.stage-edit { display: flex; gap: 8px; margin-bottom: 8px; }
.stage-edit .input { flex: 1; }

/* ---------- вход ---------- */
.auth { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 32px 22px; max-width: 420px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.logo-mark { width: 52px; height: 52px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.logo-mark svg { width: 30px; height: 30px; }
.logo b { font-size: 26px; letter-spacing: -.03em; display: block; }
.logo span { color: var(--muted); font-size: 13px; }
.error { color: var(--bad); font-size: 14px; min-height: 20px; margin: 4px 0 10px; }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 84px); transform: translateX(-50%) translateY(20px);
  background: var(--text); color: #000; padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .2s; z-index: 200; max-width: calc(100% - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.list-user { display: flex; align-items: center; gap: 12px; }
.list-user .grow { flex: 1; min-width: 0; }
.progress { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--ok); }

@media (min-width: 900px) {
  .sheet-wrap { align-items: stretch; justify-content: flex-end; }
  .sheet { height: 100%; }
  .column { flex-basis: 290px; }
}

/* =========================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ========================================================= */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, .desc, .bubble, .kv b, .big-title { -webkit-user-select: text; user-select: text; }
button, a, .card, .chip, .pick { touch-action: manipulation; }

/* крупные зоны нажатия */
.icon-btn { width: 44px; height: 44px; }
.icon-btn.sm { width: 38px; height: 38px; border-radius: 11px; }
.icon-btn.accent { background: rgba(76,201,240,.14); color: var(--accent); }
.chip { padding: 9px 14px; min-height: 38px; font-size: 14px; }
.btn { min-height: 48px; }
.btn.small { min-height: 36px; }
.card { transition: background .1s, transform .1s; }
.card:active { transform: scale(.985); }
.card .icon-btn.sm { margin-left: 2px; }
.card-bottom .meta { gap: 6px 8px; }

/* этапы воронки на телефоне */
.stage-tabs { margin-top: 10px; }
.stage-sum { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin: 0 2px 10px; }
.stage-sum b { color: var(--text); }
.group-title { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 18px 2px 8px; }
.group-title:first-child { margin-top: 2px; }
.group-title.bad { color: var(--bad); }
.group-title span { font-weight: 500; }

/* нижнее меню выбора */
.as-wrap { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.as {
  width: 100%; max-width: 520px; background: var(--surface); border-radius: 22px 22px 0 0; border: 1px solid var(--surface-3); border-bottom: 0;
  padding: 8px 12px calc(12px + var(--safe-b)); animation: sheetUp .22s cubic-bezier(.2,.8,.2,1); max-height: 85vh; display: flex; flex-direction: column;
}
.as-grip { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 2px auto 10px; flex: none; }
.as-title { color: var(--muted); font-size: 13px; text-align: center; padding: 0 12px 10px; }
.as-list { overflow-y: auto; }
.as-item {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border: 0; border-radius: 14px;
  background: transparent; color: var(--text); font-size: 16px; text-align: left; cursor: pointer;
}
.as-item:active { background: var(--surface-3); }
.as-item span { flex: 1; }
.as-item svg { width: 20px; height: 20px; flex: none; }
.as-item.on { color: var(--accent); font-weight: 600; }
.as-item.danger { color: var(--bad); }
.as-item.cancel { justify-content: center; background: var(--surface-2); margin-top: 8px; font-weight: 600; flex: none; }
@keyframes sheetUp { from { transform: translateY(100%); } }

/* потянуть для обновления */
#ptr {
  position: fixed; top: calc(var(--safe-t) + 6px); left: 50%; transform: translate(-50%, 0); z-index: 30; opacity: 0; pointer-events: none;
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
#ptr svg { width: 20px; height: 20px; }
#ptr.spin { opacity: 1 !important; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: translate(-50%, 50px) rotate(360deg); } }

/* нет связи */
#offline {
  position: fixed; left: 0; right: 0; top: 0; z-index: 300; padding: calc(var(--safe-t) + 6px) 16px 6px; background: var(--bad); color: #fff;
  font-size: 13px; font-weight: 600; text-align: center; transform: translateY(-100%); transition: transform .2s;
}
#offline.show { transform: none; }

/* клавиатура открыта */
body.kb .bottom-nav, body.kb .fab { display: none; }
body.kb .screen { padding-bottom: 16px; }

/* фото: камера и галерея */
.photo-add.cam { border-color: rgba(76,201,240,.5); color: var(--accent); }

/* поле комментария растёт по мере ввода */
.composer textarea { resize: none; max-height: 140px; }
.composer .icon-btn { width: 46px; height: 46px; }

.sheet-body { padding-bottom: calc(24px + var(--safe-b)); }
.sheet { overscroll-behavior: contain; will-change: transform; }

@media (max-width: 760px) {
  .topbar h1 { font-size: 22px; }
  .sheet { border: 0; animation: slideIn .24s cubic-bezier(.2,.8,.2,1); }
  .sheet-wrap { background: transparent; animation: none; }
  .content { padding: 12px 12px; }
  .card { padding: 13px; }
  .kv > div { padding: 13px 14px; }
  .actions .btn { min-height: 52px; }
  .sheet-foot .btn { min-height: 52px; font-size: 16px; }
  .fab { right: 16px; }
}
@keyframes slideIn { from { transform: translateX(100%); } }
@media (hover: hover) { .card:hover { border-color: var(--line); } }

/* вход / регистрация */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 22px; }
.seg button { border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 15px; min-height: 42px; border-radius: 10px; cursor: pointer; }
.seg button.on { background: var(--text); color: #000; }
.auth { padding-bottom: calc(32px + var(--safe-b)); }

/* заявки и переключатель */
.pending-card { border-color: rgba(255,176,32,.35); }
.toggle-row { display: flex; align-items: center; gap: 12px; }
.toggle-row .grow { flex: 1; min-width: 0; }
.switch { flex: none; width: 50px; height: 30px; border-radius: 15px; background: var(--surface-3); position: relative; transition: background .15s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch.on { background: var(--ok); }
.switch.on i { transform: translateX(20px); }

.hint { color: var(--muted); font-size: 14px; line-height: 1.5; }
.hint a { font-weight: 600; }

/* права доступа */
.perm { cursor: pointer; margin-bottom: 8px; }
.perm-title { font-weight: 600; font-size: 14px; }
.perm.locked { opacity: .55; cursor: default; }

/* отчёты */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; }
.bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar i { display: block; width: 100%; max-width: 26px; min-height: 2px; background: var(--accent); border-radius: 4px 4px 0 0; }
.bar span { font-size: 10px; color: var(--muted); margin-bottom: 2px; }
.bar em { font-style: normal; font-size: 10px; color: var(--muted); height: 14px; margin-top: 4px; white-space: nowrap; }

/* уведомления */
.bell { position: relative; }
.bell .badge { top: -4px; left: auto; right: -4px; margin: 0; }
.notif { cursor: default; }
.notif[data-act] { cursor: pointer; }
.notif.unread { border-color: rgba(76,201,240,.45); background: rgba(76,201,240,.06); }

/* дом на карте */
.house-seg { margin: 0 0 10px; }
.house-frame { position: relative; height: 260px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--surface-3); background: var(--surface-2); }
.house-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* блок «Дом» как в Яндекс Картах */
.house-card { background: var(--surface); border: 1px solid var(--surface-3); border-radius: var(--radius); padding: 6px 12px 12px; }
.house-link { display: flex; align-items: center; gap: 12px; padding: 12px 2px; font-weight: 600; border-bottom: 1px solid var(--surface-3); margin-bottom: 12px; }
.house-link svg { width: 22px; height: 22px; }
.house-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.house-tile { position: relative; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer;
  background: var(--surface-3) center / cover no-repeat; color: #fff; }
.house-tile iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.house-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.65)); pointer-events: none; }
.house-tile .lbl { position: absolute; left: 10px; bottom: 9px; z-index: 1; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.house-tile .lbl svg { width: 18px; height: 18px; }
.house-tile .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.house-tile .ph svg { width: 34px; height: 34px; opacity: .5; }
.house-tile.has .ph { display: none; }
.house-add { width: 100%; margin-top: 10px; min-height: 46px; border: 0; border-radius: 12px; background: rgba(76,201,240,.12); color: var(--accent);
  font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.house-add svg { width: 20px; height: 20px; }
.pano-body { display: flex; flex-direction: column; }
.pano-full { position: relative; flex: 1; min-height: 60vh; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.pano-full iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.photos.big { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.photo .cap { position: absolute; left: 6px; bottom: 6px; font-size: 11px; background: rgba(0,0,0,.6); padding: 2px 6px; border-radius: 6px; }

.house-tile iframe { width: 250%; height: 250%; transform: scale(.4); transform-origin: 0 0; }

.house-found { display: flex; gap: 8px; align-items: flex-start; padding: 10px 2px 2px; font-size: 13px; color: var(--muted); }
.house-found svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.house-found b { color: var(--text); font-weight: 600; }

.house-link + .house-link { margin-top: -12px; }
.house-tile .ph-ico { display: inline-flex; }
.house-seg.three { grid-template-columns: 1fr 1fr 1fr; }

.tag.price { background: rgba(61,220,132,.12); color: var(--ok); margin-left: auto; }

.invite-link { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; word-break: break-all; -webkit-user-select: all; user-select: all; }
