:root {
  --green: #28c79a;
  --green-dark: #159875;
  --mint: #d7f5ec;
  --mint-soft: #eefbf7;
  --bg: #edf6f3;
  --text: #111820;
  --muted: #8b949e;
  --line: #e6ebef;
  --red: #ff493f;
  --orange: #ff8a2b;
  --card: #ffffff;
}

* { box-sizing: border-box; }
@keyframes pageRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sheetUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes tabbarUp {
  from { opacity: 0; transform: translateX(-50%) translateY(18px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes fadeScale {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideFromRight {
  from { opacity: .35; transform: translateX(28px) scale(1.015); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes slideFromLeft {
  from { opacity: .35; transform: translateX(-28px) scale(1.015); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
body {
  margin: 0;
  background: #1f1f1f;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--text);
}
html.viewer-locked,
body.viewer-locked {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}
body.viewer-locked {
  position: fixed;
  left: 0;
  right: 0;
}
button, input, select, textarea { font: inherit; }
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, opacity .16s ease;
}
button:active { transform: scale(.97); }

.phone-app {
  position: relative;
  width: min(430px, 100vw);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: hidden;
}

.hidden { display: none !important; }
.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 15px;
  background: #eef3f5;
}
.primary { background: var(--green); color: #fff; }
.light { background: #f1f5f7; color: var(--text); }
.danger { background: #ffe8e8; color: #d33; }
.primary { box-shadow: 0 8px 18px rgba(38,197,141,.18); }
.danger { box-shadow: 0 8px 18px rgba(221,51,51,.08); }

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background: linear-gradient(180deg, #d9f8ea, #f4f7f8);
}
.auth-card {
  width: 100%;
  padding: 26px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(0,0,0,.12);
  animation: pageRise .32s ease both;
}
.app-mark {
  width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 18px; background: var(--green); color: #fff;
  font-size: 26px; font-weight: 800;
}
.auth-card h1 { margin: 16px 0 8px; font-size: 26px; }
.auth-card p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; }
.wx-btn { width: 100%; background: var(--green); color: #fff; font-weight: 700; }
#locationGrantBtn { width: 100%; margin-top: 10px; }
.admin-login { display: none !important; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.local-test .admin-login { display: block !important; }
.admin-login span { color: var(--muted); font-size: 13px; }
.admin-login form { display: grid; gap: 10px; margin-top: 10px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
  background: #fff;
  font-size: 16px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(38,197,141,.72);
  box-shadow: 0 0 0 3px rgba(38,197,141,.12);
}

.hero {
  padding: 28px 20px 22px;
  background: linear-gradient(180deg, #d5f4eb 0%, #d5f4eb 52%, #edf6f3 100%);
  color: #17382f;
}
.status-row { display:none; }
.hero h1 { text-align: center; font-size: 24px; margin: 6px 0 22px; color:#123a31; }
.search-box {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  background: rgba(255,255,255,.96); color: var(--text); border-radius: 28px; padding: 7px 8px 7px 18px;
  box-shadow: 0 8px 22px rgba(19, 94, 76, .08);
}
.city-select {
  border:0;
  background:transparent;
  color:var(--text);
  font-size:16px;
  padding:8px 2px;
  min-width:42px;
  text-align:left;
}
.search-box input { border: 0; padding: 8px 4px; }
.search-box button {
  border: 0; border-radius: 24px; background: var(--green); color: #fff;
  padding: 10px 18px; font-weight: 800;
}
.location-tip {
  margin-top: 12px; display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-radius: 12px; background: rgba(37, 82, 67, .78); color:#fff; font-weight: 700;
}
.location-tip button { border: 0; border-radius: 16px; color: #fff; background: var(--green); padding: 8px 14px; }

.quick-panel {
  margin: -8px 12px 18px;
  padding: 18px 16px 14px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 8px 24px rgba(35, 70, 60, .06);
  animation: pageRise .28s ease both;
}
.quick-panel button { border: 0; background: transparent; font-size: 14px; font-weight: 800; color:#111; }
.quick-panel span {
  width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 8px;
  border-radius: 20px; color: #fff; background: linear-gradient(135deg, #e87c62, #22c887);
  transition: transform .18s ease, box-shadow .18s ease;
}
.quick-panel span img { width: 30px; height: 30px; object-fit: contain; filter: brightness(0) invert(1); }
.quick-panel button.active span {
  box-shadow: 0 0 0 6px rgba(38, 197, 141, .16);
}
.quick-panel button:active span {
  transform: translateY(-2px) scale(.96);
}

.list-page {
  min-height: 100vh;
  background: #fff;
  padding-bottom: 86px;
  animation: pageRise .22s ease both;
}
.list-top {
  height: 86px;
  display:grid;
  grid-template-columns:48px 1fr 86px;
  align-items:center;
  padding: 18px 18px 0;
  background:#fff;
  font-size:22px;
}
.list-top button { border:0; background:transparent; font-size:44px; line-height:1; color:#2c3338; }
.list-top strong { text-align:center; font-size:24px; }
.list-search { padding: 8px 18px 20px; }
.list-search input {
  border: 0;
  border-radius: 28px;
  padding: 15px 20px;
  background: #f4f4f4;
  font-size: 18px;
}
.rent-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 10px;
  padding: 18px 18px 22px;
  background: #fff;
}
.rent-entry-grid button {
  border: 0;
  background: transparent;
  color: #30363c;
  font-size: 15px;
  font-weight: 800;
}
.entry-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 9px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease;
}
.rent-entry-grid button:active .entry-icon {
  transform: translateY(-2px) scale(.96);
}
.entry-icon.green { background: linear-gradient(135deg, #11d283, #15b981); }
.entry-icon.blue { background: linear-gradient(135deg, #22b8ff, #268ee8); }
.entry-icon.coral { background: linear-gradient(135deg, #ff746c, #ff5e5a); }
.entry-icon.orange { background: linear-gradient(135deg, #ff9a22, #ff611e); }
.filter-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 14px 0;
  background: #fff;
  border-top: 1px solid #f4f4f4;
  border-bottom: 1px solid #eef1f2;
}
.filter-tabs button {
  border: 0;
  background: transparent;
  font-size: 17px;
  font-weight: 800;
  color: #222;
}
.filter-tabs .active { color: var(--green-dark); }
.list-results { padding-top: 14px; background: var(--bg); min-height: 420px; }
.empty-list {
  grid-column: 1 / -1;
  padding: 30px 12px;
  color: var(--muted);
  text-align: center;
  background: #fff;
  border-radius: 8px;
}

.category-tabs {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 16px 12px;
  background: var(--bg);
}
.category-tabs button {
  border: 0; background: transparent; white-space: nowrap; font-size: 18px; color: #4b525b;
}
.category-tabs .active { color: #111; font-weight: 800; border-bottom: 5px solid var(--green); }

.recommend-box {
  margin: 0 12px 14px; padding: 18px; border-radius: 10px;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(90deg, #effff9, #fff);
}
.recommend-box strong { display: block; font-size: 20px; }
.recommend-box span { color: var(--muted); margin-top: 6px; display: block; }
.recommend-box button { border: 1px solid var(--green); color: var(--green); background: #fff; border-radius: 6px; padding: 8px 12px; }

.listing-grid {
  padding: 0 12px 90px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  color: var(--text);
}
.house-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(19,34,45,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.house-card:active {
  transform: scale(.985);
  box-shadow: 0 3px 10px rgba(19,34,45,.08);
}
.house-photo {
  height: 170px;
  position: relative;
  background: linear-gradient(135deg,#dfe8e6,#f7faf9);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.house-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.house-photo::after { content:""; position:absolute; inset:auto 0 0; height:55%; background:linear-gradient(transparent,rgba(0,0,0,.55)); }
.house-loc { position:absolute; left:10px; bottom:10px; z-index:1; color:#fff; font-size:13px; font-weight:700; }
.loc-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  display:inline-block;
  margin-right:5px;
  background:currentColor;
  vertical-align:1px;
}
.house-body { padding: 10px; background:#fff; color:var(--text); }
.hot-tag { display:inline-block; margin-right:5px; color:#fff; background:var(--red); border-radius:4px; padding:2px 4px; font-size:12px; }
.house-title { color:#111820; font-size: 17px; line-height:1.35; font-weight:800; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.house-meta { margin-top:6px; color:#333; font-size:13px; }
.house-price { margin-top:8px; color:var(--red); font-size:21px; font-weight:900; }
.house-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:8px; }
.house-tags span { background:#f0f4fa; color:#718197; border-radius:4px; padding:3px 5px; font-size:12px; }

.admin-list-results {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0 14px 90px;
  background: #fff;
}
.admin-listing-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 32px;
  gap: 10px;
  min-height: 136px;
  padding: 14px 2px;
  border-bottom: 1px solid #edf0f2;
  background: #fff;
  color: #171b1f;
}
.admin-listing-card:active { background: #f8faf9; }
.admin-listing-cover {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: #eef1f2;
  color: #91999f;
  font-size: 12px;
}
.admin-listing-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.listing-status-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(22, 27, 30, .58);
  color: #fff;
  font-size: 18px;
  letter-spacing: 1px;
}
.admin-listing-content { min-width: 0; padding-right: 2px; }
.admin-listing-content h3 {
  margin: 0;
  color: #171b1f;
  font-size: 17px;
  line-height: 1.38;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.admin-listing-location {
  margin: 6px 0 0;
  overflow: hidden;
  color: #555e65;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-listing-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 5px 0 0;
  color: #252b30;
  font-size: 14px;
}
.admin-listing-summary strong { font-size: 18px; }
.admin-listing-summary span { padding-left: 12px; border-left: 1px solid #d8dde0; }
.admin-listing-highlights {
  display: flex;
  gap: 5px;
  margin-top: 7px;
  overflow: hidden;
  white-space: nowrap;
}
.admin-listing-highlights span {
  flex: 0 0 auto;
  max-width: 90px;
  overflow: hidden;
  padding: 3px 5px;
  border: 1px solid #bfe9dc;
  border-radius: 3px;
  color: #159875;
  background: #effbf7;
  font-size: 11px;
  text-overflow: ellipsis;
}
.listing-menu-wrap { position: relative; align-self: end; justify-self: end; z-index: 8; }
.listing-menu-trigger,
.detail-menu-trigger {
  width: 32px;
  min-height: 32px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #111;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
}
.listing-action-menu {
  position: absolute;
  right: 0;
  top: 34px;
  z-index: 30;
  width: 112px;
  border: 1px solid #e6e9eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}
.listing-action-menu::before {
  content: "";
  position: absolute;
  right: 12px;
  top: -6px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: #fff;
  border-left: 1px solid #e6e9eb;
  border-top: 1px solid #e6e9eb;
}
.listing-action-menu button {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid #eef0f1;
  border-radius: 0;
  background: #fff;
  color: #353b40;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.listing-action-menu button:first-child { border-radius: 8px 8px 0 0; }
.listing-action-menu button:last-child { border-bottom: 0; }
.listing-action-menu button:active { background: #f2f6f4; }
.detail-highlights {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
  padding-top:4px;
}
.detail-highlights span {
  background:#e7fff4;
  color:var(--green-dark);
  padding:9px 14px;
  border-radius:999px;
  font-size:14px;
  font-weight:900;
}
.internal-note {
  margin: 10px;
  padding: 20px 28px;
  min-height: 318px;
  background: #fff;
  border-radius: 12px;
  color: var(--text);
}
.internal-note h2 { margin: 0 0 14px; font-size:18px; font-weight:400; color:#9aa0a6; }
.internal-note p { margin:0; color:#222; line-height:1.7; font-size:18px; }

.detail-top {
  height: 76px; display:grid; grid-template-columns:64px 1fr 64px; align-items:center;
  padding: 14px 14px 0; background:#fff; font-size:19px;
}
.detail-page {
  min-height:100vh;
  padding-bottom:96px;
  background:var(--bg);
  overflow-x:hidden;
  animation: pageRise .24s ease both;
}
.detail-top button {
  width:56px;
  min-height:56px;
  border:0;
  background:transparent;
  color:#111;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  padding:0;
}
.detail-top button span { font-size:54px; line-height:1; display:block; transform:translateY(-2px); }
.detail-top button small { display:none; }
.detail-top strong { text-align:center; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.detail-top > span:last-child { display:block; width:56px; height:1px; }
.detail-menu-wrap { position: relative; justify-self: end; }
.detail-menu-trigger { width: 56px; min-height: 56px; }
.detail-action-menu { top: 50px; right: 4px; width: 148px; }
.detail-hero {
  position:relative;
  background:#111;
  overflow:hidden;
  contain: paint;
}
.detail-gallery {
  position:relative;
  width:100%;
  height: min(56vh, 340px);
  min-height: 240px;
  max-height: 340px;
  display:grid;
  place-items:center;
  color:#fff;
  background:#20272d;
  background-size:cover;
  background-position:center;
  overflow:hidden;
  isolation:isolate;
}
.detail-gallery img,
.detail-gallery video {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
  will-change: transform, opacity;
}
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: #050505;
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.video-poster::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.video-poster::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(50% - 16px);
  transform: translateX(-36%);
  border-left: 18px solid #111;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}
.video-poster span {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 74px;
  transform: translateX(-50%);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  font-weight: 800;
  white-space: nowrap;
}
.detail-gallery.slide-next img,
.detail-gallery.slide-next video { animation: slideFromRight .24s ease both; }
.detail-gallery.slide-prev img,
.detail-gallery.slide-prev video { animation: slideFromLeft .24s ease both; }
.detail-gallery.slide-idle img,
.detail-gallery.slide-idle video { animation: fadeScale .18s ease both; }
.media-tabs {
  position:absolute; left:50%; bottom:16px; transform:translateX(-50%);
  display:flex; gap:4px; padding:4px; border-radius:20px; background:rgba(255,255,255,.72);
}
.media-tabs button { border:0; border-radius:18px; padding:7px 18px; background:transparent; font-weight:800; }
.media-tabs .active { background:var(--red); color:#fff; }
.image-count { position:absolute; right:22px; bottom:26px; color:#fff; font-weight:700; }
.sale-card {
  margin: 0 10px; transform: translateY(-8px); border-radius:18px;
  background:#fff; padding:18px;
  position:relative;
  z-index:1;
  animation: pageRise .24s ease both;
}
.sale-main {
  display:grid;
  grid-template-columns: 118px 1fr 118px;
  gap:14px;
  align-items:start;
  color:var(--red);
  font-weight:900;
}
.sale-main > div {
  min-width:0;
  display:grid;
  grid-template-rows:minmax(36px, auto) 22px;
  align-items:start;
}
.sale-main .sale-price,
.sale-main .sale-area {
  font-size:23px;
}
.sale-main .sale-layout {
  justify-items:center;
  text-align:center;
  font-size:16px;
  line-height:1.18;
}
.sale-main .sale-area {
  transform: translateX(54px);
}
.sale-main span {
  display:block;
  color:#9aa0a6;
  font-size:14px;
  font-weight:400;
  margin-top:4px;
}
.sale-title { margin-top:18px; font-size:22px; line-height:1.35; font-weight:900; }
.sale-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.sale-tags span { background:#f2f5f9; color:#6b7b8e; padding:6px 10px; border-radius:4px; }
.info-card { margin: 10px; padding:18px; border-radius:12px; background:#fff; display:grid; grid-template-columns:1fr 1fr; gap:14px; font-size:18px; }
.info-card b { color:#9aa0a6; font-weight:400; margin-right:8px; }
.bottom-actions {
  position:fixed; left:50%; bottom:0; transform:translateX(-50%); width:min(430px,100vw);
  display:grid; grid-template-columns:1fr 1.1fr 1.4fr; gap:8px; padding:12px 14px max(12px, env(safe-area-inset-bottom));
  background:rgba(255,255,255,.94);
}
.bottom-actions button { border:0; border-radius:8px; padding:13px 8px; font-size:18px; font-weight:800; }
.bottom-actions .chat { background:var(--orange); color:#fff; }
.bottom-actions .call { background:var(--green); color:#fff; }

.admin-page { min-height:100vh; padding:12px 12px 80px; background:var(--bg); overflow-x:hidden; }
.admin-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.admin-head button:first-child { border:0; background:transparent; font-size:36px; }
.admin-card { background:#fff; border-radius:12px; padding:14px; margin-bottom:12px; }
.admin-card { animation: pageRise .22s ease both; }
.section-head, .actions { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.user-list { display:grid; gap:8px; margin-top:10px; }
.user-row { display:grid; grid-template-columns:1fr auto; gap:8px; align-items:center; background:#f7fafb; border-radius:8px; padding:10px; }
.user-row span { display:block; color:var(--muted); font-size:12px; margin-top:3px; }
.role-buttons {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
}
.role-buttons button {
  border:0;
  border-radius:8px;
  padding:8px 7px;
  background:#eef3f5;
  color:#4b525b;
  font-size:12px;
  font-weight:800;
}
.role-buttons .primary {
  background:var(--green);
  color:#fff;
}
.role-buttons button:disabled {
  opacity:.48;
  cursor:not-allowed;
}
.owner-contact-form {
  display:grid;
  gap:10px;
  margin:12px 0 14px;
  padding:12px;
  border-radius:10px;
  background:#f7fafb;
}
.owner-contact-form h3 {
  margin:0;
  font-size:16px;
}
.message-list { display:grid; gap:10px; margin-top:10px; }
.message-row { background:#f7fafb; border-radius:8px; padding:11px; }
.message-row strong, .message-row span { display:block; }
.message-row span { color:var(--muted); font-size:12px; margin-top:4px; }
.message-row p { margin:8px 0 0; }
.message-row button { width:100%; margin-top:10px; }
.last-reply {
  padding:8px;
  border-radius:8px;
  background:#fff;
  color:#33404a;
}
.empty-msg { color:var(--muted); padding:12px; }
.admin-house-list { display:grid; gap:10px; margin-top:10px; }
.admin-list-search { margin-top: 12px; }
.admin-filter-tabs {
  margin: 10px -14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.admin-house-list .admin-listing-card {
  grid-template-columns: 94px minmax(0, 1fr) 30px;
  min-height: 122px;
  padding: 12px 0 12px 30px;
}
.admin-house-list .admin-listing-cover { width: 94px; height: 94px; }
.admin-house-list .admin-listing-content h3 { font-size: 15px; }
.admin-house-list .admin-listing-location { font-size: 12px; }
.admin-house-list .admin-listing-summary strong { font-size: 16px; }
.admin-card-check {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
}
.admin-card-check input { width: 22px; height: 22px; margin: 0; }
.admin-house-row {
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  background:#f7fafb;
  border-radius:8px;
  padding:11px;
  transition: transform .16s ease, background-color .16s ease;
}
.admin-house-row:active { transform: scale(.99); background:#eef7f3; }
.admin-house-row strong,
.admin-house-row span { display:block; }
.admin-house-row span { color:var(--muted); font-size:12px; margin-top:4px; }
.admin-house-row > div:last-child { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
.admin-house-row button { padding:8px 4px; border-radius:7px; }
.profile-page { min-height:100vh; padding:12px; background:var(--bg); }
.messages-page { min-height:100vh; padding:12px 12px 90px; background:var(--bg); animation: pageRise .22s ease both; }
.profile-card { background:#fff; border-radius:14px; padding:16px; display:grid; gap:14px; }
.profile-admin {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:6px;
}
.profile-action {
  border:0;
  border-radius:10px;
  padding:14px;
  background:#eafff6;
  color:var(--green-dark);
  font-weight:900;
}
.avatar-picker input { display:none; }
.avatar { width:76px; height:76px; border-radius:50%; background:var(--green); color:#fff; display:grid; place-items:center; font-size:30px; font-weight:900; overflow:hidden; }
.avatar img { width:100%; height:100%; object-fit:cover; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
.form-grid .floor-field {
  max-width: 120px;
}
label { color:#66717c; font-size:13px; display:grid; gap:6px; }
.check { display:flex; align-items:center; gap:8px; margin:12px 0; }
.check input { width:auto; }
.quick-rule-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}
.rule-chip {
  border: 1px solid #dce9e3;
  border-radius: 999px;
  padding: 7px 11px;
  background: #f6faf8;
  color: #43505a;
  font-size: 12px;
  font-weight: 700;
}
.rule-chip.active {
  border-color: var(--green);
  background: #e8fff5;
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px rgba(38,197,141,.18);
}
.highlight-preview { display:flex; flex-wrap:wrap; gap:7px; margin: -4px 0 8px; }
.highlight-preview span {
  border-radius:999px;
  padding:6px 10px;
  color:var(--green-dark);
  background:#eafff6;
  font-size:12px;
  font-weight:800;
}
.preview {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(82px, 1fr));
  gap:8px;
  margin:8px 0 12px;
  max-width:100%;
  align-items:start;
}
.preview-item {
  width:100%;
  max-width:96px;
  display:grid;
  gap:4px;
  overflow:hidden;
}
.preview-media {
  cursor: zoom-in;
}
.preview img,
.preview video {
  width:100%;
  height:62px;
  object-fit:contain;
  border-radius:6px;
  display:block;
  background:#edf3f5;
  flex:0 0 auto;
}
.preview-actions { display:grid; grid-template-columns:1fr 1fr; gap:4px; }
.preview-item button,
.preview-item span { border:0; border-radius:6px; background:#eefaf5; color:var(--green-dark); font-size:11px; padding:4px 0; text-align:center; }

.tabbar {
  position:fixed; left:50%; bottom:0; transform:translateX(-50%); width:min(430px,100vw);
  height:82px; display:grid; grid-template-columns:repeat(5,1fr); align-items:center;
  z-index:40;
  background:#fff; box-shadow:0 -8px 24px rgba(0,0,0,.08);
  animation: tabbarUp .2s ease both;
}
.tabbar button {
  border:0;
  background:transparent;
  color:#505960;
  font-size:13px;
  display:grid;
  justify-items:center;
  align-content:center;
  gap:4px;
  min-width:0;
}
.tabbar .active { color:var(--green); font-weight:800; }
.tab-icon::before {
  content:"";
  width:27px;
  height:27px;
  display:block;
  background:#505960;
  opacity:.92;
  margin-bottom:1px;
}
.tab-icon.active::before { background:var(--green); }
.tab-icon.home::before {
  clip-path: polygon(50% 6%, 90% 40%, 82% 40%, 82% 90%, 60% 90%, 60% 62%, 40% 62%, 40% 90%, 18% 90%, 18% 40%, 10% 40%);
}
.tab-icon.featured::before {
  clip-path: polygon(12% 20%, 62% 20%, 62% 36%, 88% 22%, 88% 78%, 62% 64%, 62% 80%, 12% 80%);
}
.tab-icon.message::before {
  clip-path: polygon(10% 16%, 90% 16%, 90% 70%, 56% 70%, 42% 88%, 42% 70%, 10% 70%);
}
.tab-icon.profile::before {
  border-radius:50%;
  clip-path: none;
  -webkit-mask:
    radial-gradient(circle at 50% 35%, #000 0 25%, transparent 26%),
    radial-gradient(ellipse at 50% 82%, #000 0 42%, transparent 43%);
  mask:
    radial-gradient(circle at 50% 35%, #000 0 25%, transparent 26%),
    radial-gradient(ellipse at 50% 82%, #000 0 42%, transparent 43%);
}
.tabbar .plus {
  width:auto;
  height:auto;
  margin:auto;
  border-radius:0;
  background:transparent;
  color:transparent;
  font-size:0;
  line-height:1;
  position:relative;
  display:grid;
  place-items:center;
}
.tabbar .plus::before {
  content:"+";
  width:38px;
  height:38px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:var(--green);
  color:#fff;
  font-size:30px;
  font-weight:500;
  line-height:1;
  margin:0;
  clip-path:none;
}
.tabbar .plus::after { content:none; }

.mobile-manage-filters {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:10px 0;
}
.mobile-bulk-actions {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:6px;
  margin-bottom:10px;
}
.mobile-bulk-actions button {
  padding:9px 4px;
  font-size:12px;
}
.admin-house-row {
  position:relative;
  padding-left:38px;
}
.admin-check {
  position:absolute;
  left:10px;
  top:12px;
}
.admin-check input { width:auto; }

.fullscreen-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.96);
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  height: -webkit-fill-available;
  overflow:hidden;
  overscroll-behavior: contain;
  touch-action: none;
  animation: fadeScale .18s ease both;
}
.fullscreen-viewer.hidden {
  display: none !important;
  pointer-events: none !important;
}
.viewer-image {
  width: 100%;
  min-width: 0;
  height: 100dvh;
  height: -webkit-fill-available;
  max-width: 100vw;
  max-height: 100dvh;
  display: grid;
  place-items: center;
  color: #fff;
  overflow:hidden;
  overscroll-behavior: contain;
  touch-action: pan-x;
}

.photo-viewer-frame {
  width: 100vw;
  height: 100dvh;
  height: -webkit-fill-available;
  max-width: 100vw;
  max-height: 100dvh;
  padding: max(54px, env(safe-area-inset-top)) 10px max(58px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: pan-x;
}
.photo-viewer-frame img,
.viewer-image > img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display:block;
  will-change: transform, opacity;
  image-orientation: from-image;
}
.viewer-image > img {
  padding: max(54px, env(safe-area-inset-top)) 10px max(58px, env(safe-area-inset-bottom));
}
.viewer-image video {
  display:block;
  will-change: transform, opacity;
}
.viewer-image video {
  position: relative;
  z-index: 1;
  background: #000;
}
.video-player-wrap {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  background: #000;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
}
.video-player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
@media (orientation: portrait) {
  .video-player-wrap video {
    object-fit: contain;
  }
}
@media (orientation: landscape) {
  .video-player-wrap video {
    object-fit: contain;
  }
}
.video-play-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  border: 0;
  border-radius: 50%;
  width: 76px;
  height: 76px;
  padding: 0;
  background: rgba(0,0,0,.42);
  color: #fff;
  font-weight: 900;
  font-size: 0;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}
.video-play-toggle::before {
  content: "";
  width: 24px;
  height: 30px;
  border-left: 8px solid #fff;
  border-right: 8px solid #fff;
}
.video-play-toggle.paused::before {
  width: 0;
  height: 0;
  border-left: 26px solid #fff;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-right: 0;
}
.video-save-hint {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  z-index: 4;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 13px;
}
.viewer-image.slide-next img,
.viewer-image.slide-next video { animation: slideFromRight .24s ease both; }
.viewer-image.slide-prev img,
.viewer-image.slide-prev video { animation: slideFromLeft .24s ease both; }
.viewer-image.slide-idle img,
.viewer-image.slide-idle video { animation: fadeScale .18s ease both; }
#viewerCloseBtn {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  border: 0;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 28px;
}
#viewerCount {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 900;
}

.owner-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  align-items: end;
  background: rgba(0,0,0,.35);
}
.owner-card {
  width: min(430px, 100vw);
  margin: 0 auto;
  padding: 20px 16px max(20px, env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: #fff;
  position: relative;
  animation: sheetUp .22s ease both;
}
.city-sheet {
  position: fixed;
  inset: 0;
  z-index: 58;
  display: grid;
  align-items: end;
  background: rgba(0,0,0,.35);
}
.city-card {
  width: min(430px, 100vw);
  margin: 0 auto;
  padding: 20px 16px max(20px, env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: #fff;
  position: relative;
  animation: sheetUp .22s ease both;
}
.city-card h2 { margin: 0 0 14px; font-size: 20px; }
.city-current {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px 14px;
  background: #e8fff5;
  color: var(--green-dark);
  font-weight: 900;
  text-align: left;
}
.address-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.address-picker label {
  margin: 0;
  font-size: 12px;
  color: #77828a;
}
.address-picker select {
  margin-top: 6px;
  width: 100%;
  border: 1px solid #dce7e4;
  border-radius: 10px;
  padding: 11px 10px;
  background: #f8fbfa;
  font-size: 15px;
  color: var(--text);
}
.sheet-close {
  position: absolute;
  right: 14px;
  top: 12px;
  border: 0;
  background: #f1f5f7;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
}
.viewer-download {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 3;
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255,255,255,.16);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  backdrop-filter: blur(8px);
}
.video-action-sheet {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  align-items: end;
  background: rgba(0,0,0,.42);
}
.video-action-sheet.hidden {
  display: none !important;
}
.video-action-sheet > div {
  width: min(430px, 100vw);
  margin: 0 auto;
  padding: 10px 12px max(14px, env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 16px 16px 0 0;
}
.video-action-sheet button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 15px;
  margin-top: 8px;
  background: #eef7f3;
  color: var(--green-dark);
  font-weight: 900;
  font-size: 17px;
}
.video-action-sheet button:last-child {
  background: #f2f4f5;
  color: #606b74;
}
.owner-card h2 { margin: 0 0 6px; }
.owner-card p { color: var(--muted); margin: 0 0 14px; }
.owner-option {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  margin-top: 10px;
  background: #eefaf5;
  color: var(--green-dark);
  font-weight: 800;
}
.agent-box {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #f7fafb;
}
.agent-box strong,
.agent-box span { display: block; }
.agent-box span { color: var(--muted); margin-top: 4px; }

.message-sheet,
.chat-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  background: rgba(0,0,0,.35);
}
.message-card,
.chat-card {
  width: min(430px, 100vw);
  margin: 0 auto;
  padding: 20px 18px max(18px, env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: #fff;
  position: relative;
  box-shadow: 0 -18px 40px rgba(0,0,0,.16);
  animation: sheetUp .22s ease both;
}
.message-card h2,
.chat-card h2 { margin: 0 0 8px; }
.message-card p,
.chat-card > p { margin: 0 0 14px; color: var(--muted); line-height: 1.5; }
.message-card textarea,
.chat-card textarea {
  min-height: 128px;
  resize: vertical;
}
.chat-thread {
  max-height: 46vh;
  overflow:auto;
  display:grid;
  gap:10px;
  padding:10px;
  margin-bottom:12px;
  border-radius:12px;
  background:#f4f7f8;
}
.chat-bubble {
  max-width:86%;
  padding:10px;
  border-radius:12px;
  background:#fff;
}
.chat-bubble.admin {
  justify-self:end;
  background:#eafff6;
}
.chat-bubble p {
  margin:5px 0;
  line-height:1.5;
}
.chat-bubble span {
  display:block;
  color:var(--muted);
  font-size:11px;
}
.message-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}

.filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-items: end;
  background: rgba(0,0,0,.38);
}
.filter-card {
  width: min(430px, 100vw);
  min-height: 78vh;
  max-height: 88vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  animation: sheetUp .22s ease both;
}
.filter-card header {
  height: 66px;
  display:grid;
  grid-template-columns:48px 1fr 48px;
  align-items:center;
  padding: 6px 18px 0;
}
.filter-card header button { border:0; background:transparent; font-size:38px; }
.filter-card header strong { text-align:center; font-size:22px; }
#filterContent { overflow:auto; padding: 10px 18px 92px; }
.filter-group { margin-bottom: 30px; }
.filter-group h3 { margin: 0 0 16px; font-size:20px; }
.filter-chip-grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.filter-chip {
  border:0;
  border-radius:2px;
  padding:13px 8px;
  background:#f7f7f7;
  color:#30363c;
  font-size:16px;
  transition: transform .16s ease, background-color .16s ease, color .16s ease;
}
.filter-chip:active { transform: scale(.97); }
.filter-chip.active {
  background:#eafff6;
  color:var(--green-dark);
}
.option-list { display:grid; gap:28px; justify-items:center; padding-top:22px; }
.option-list .filter-chip { background:transparent; font-size:20px; }
.option-list .filter-chip.active { color:var(--green-dark); }
.region-filter { display:grid; grid-template-columns:130px 1fr; min-height:62vh; }
.side-tabs { border-right:1px solid #f0f2f3; display:grid; align-content:start; gap:10px; padding:20px 12px 20px 0; font-size:18px; }
.side-tabs button { border:0; background:transparent; padding:14px 12px; text-align:left; font-size:18px; color:#333; border-radius:8px; }
.side-tabs button.active { color:var(--green-dark); font-weight:800; background:#eafff6; }
.option-column { display:grid; align-content:start; gap:18px; padding:20px 0 20px 24px; }
.option-column .filter-chip { background:transparent; text-align:left; font-size:18px; }
.building-search {
  width:100%;
  height:44px;
  border:0;
  border-radius:8px;
  padding:0 12px;
  background:#f5f6f7;
  font-size:16px;
}
.filter-empty-hint {
  margin:0;
  color:#9aa0a6;
  font-size:16px;
}
.rent-range-filter {
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:end;
  gap:14px;
  padding:42px 8px 0;
}
.rent-range-filter label { display:grid; gap:10px; color:#222; font-size:18px; }
.rent-range-filter input { height:48px; text-align:center; font-size:18px; border:0; border-bottom:2px solid var(--green); border-radius:0; background:#fff; }
.rent-range-filter span { padding-bottom:14px; font-size:24px; color:#8d969f; }
.range-line { margin-top:60px; display:grid; gap:22px; justify-items:center; color:var(--green-dark); font-size:18px; }
.range-line i { display:block; width:70%; height:5px; border-radius:99px; background:var(--green); }
.filter-actions {
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:min(430px,100vw);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  padding:14px 18px max(14px, env(safe-area-inset-bottom));
  background:#fff;
  box-shadow:0 -8px 20px rgba(0,0,0,.04);
}
.filter-actions button {
  border:0;
  border-radius:8px;
  padding:14px;
  font-size:18px;
  font-weight:900;
}
#filterResetBtn { background:#f5f5f5; color:#222; }
#filterConfirmBtn { background:var(--green); color:#fff; }

.toast {
  position:fixed; left:50%; bottom:96px; transform:translateX(-50%) translateY(10px);
  z-index:120;
  background:#162129; color:#fff; border-radius:10px; padding:12px 16px; opacity:0; pointer-events:none; transition:.2s;
  font-weight:800;
  box-shadow:0 10px 26px rgba(0,0,0,.22);
}
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

@media (max-width: 380px) {
  .house-photo { height:150px; }
  .form-grid, .info-card { grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

.conversation-row {
  width:100%;
  border:0;
  display:grid;
  grid-template-columns:44px 1fr auto;
  gap:10px;
  align-items:center;
  padding:11px 4px;
  background:#fff;
  text-align:left;
  border-bottom:1px solid #eef2f3;
}
.conversation-swipe {
  position:relative;
  overflow:hidden;
  border-radius:10px;
  background:#e5484d;
  touch-action:pan-y;
}
.conversation-swipe .conversation-row {
  position:relative;
  z-index:2;
  transform:translateX(var(--swipe-x, 0));
  transition:transform .18s ease;
}
.conversation-swipe.swiping .conversation-row { transition:none; }
.conversation-swipe.show-delete .conversation-row {
  transform:translateX(-78px);
}
.delete-conversation {
  position:absolute;
  inset:0 0 0 auto;
  width:78px;
  border:0;
  background:#e5484d;
  color:#fff;
  font-weight:900;
  font-size:15px;
  z-index:1;
}
.conversation-avatar {
  width:44px;
  height:44px;
  border-radius:8px;
  display:grid;
  place-items:center;
  background:var(--green);
  color:#fff;
  font-weight:900;
}
.conversation-main { min-width:0; display:grid; gap:2px; }
.conversation-main strong { color:#172126; font-size:15px; display:flex; align-items:center; gap:6px; }
.conversation-main em,
.conversation-main small {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-style:normal;
}
.conversation-main em { color:#6d7780; font-size:12px; }
.conversation-main small { color:#1f2a30; font-size:13px; }
.conversation-row time { color:#9aa3aa; font-size:11px; align-self:start; padding-top:3px; }
.msg-dot {
  width:8px;
  height:8px;
  border-radius:50%;
  background:#e5484d;
  display:inline-block;
}
.owner-action-sheet {
  position:fixed;
  inset:0;
  z-index:55;
  display:grid;
  align-items:end;
  background:rgba(0,0,0,.35);
}
.owner-action-card {
  width:min(430px,100vw);
  margin:0 auto;
  padding:20px 16px max(20px, env(safe-area-inset-bottom));
  border-radius:18px 18px 0 0;
  background:#fff;
  position:relative;
  animation:sheetUp .22s ease both;
}
.owner-action-card p {
  margin:8px 0 14px;
  padding:14px;
  border-radius:12px;
  background:#f4f7f8;
  font-size:20px;
  font-weight:900;
  letter-spacing:0;
}
.owner-action-buttons {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.chat-sheet {
  position:fixed;
  inset:0;
  z-index:120;
  display:block;
  background:#ededed;
  animation:pageRise .16s ease both;
}
.chat-card {
  width:min(430px,100vw);
  height:100vh;
  margin:0 auto;
  padding:0 0 max(8px, env(safe-area-inset-bottom));
  border-radius:0;
  background:#ededed;
  display:grid;
  grid-template-rows:auto 1fr auto;
  box-shadow:none;
}
.chat-header {
  min-height:64px;
  display:grid;
  grid-template-columns:58px 1fr;
  align-items:center;
  gap:4px;
  padding:8px 12px;
  background:#f7f7f7;
  border-bottom:1px solid #dedede;
}
.chat-header button {
  width:54px;
  min-height:52px;
  border:0;
  background:transparent;
  color:#222;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  padding:0;
}
.chat-header button span { font-size:46px; line-height:1; display:block; transform:translateY(-2px); }
.chat-header button small { display:none; }
.chat-header h2 { margin:0; font-size:17px; }
.chat-header p { margin:2px 0 0; color:#777; font-size:12px; }
.chat-thread {
  height:100%;
  max-height:none;
  overflow:auto;
  display:grid;
  align-content:start;
  gap:10px;
  padding:14px 12px;
  margin:0;
  border-radius:0;
  background:#ededed;
}
.chat-line { display:flex; }
.chat-line.mine { justify-content:flex-end; }
.chat-line.theirs { justify-content:flex-start; }
.chat-bubble {
  max-width:78%;
  padding:9px 10px;
  border-radius:6px;
  background:#fff;
  box-shadow:0 1px 1px rgba(0,0,0,.03);
}
.chat-line.mine .chat-bubble { background:#95ec69; }
.chat-bubble p {
  margin:0;
  line-height:1.5;
  color:#111;
  word-break:break-word;
}
.chat-bubble strong {
  display:block;
  margin-bottom:4px;
  color:#4b525b;
  font-size:11px;
}
.chat-bubble span {
  display:block;
  color:#7a7a7a;
  font-size:10px;
  margin-top:4px;
  text-align:right;
}
.chat-input-row {
  display:grid;
  grid-template-columns:1fr 68px;
  gap:8px;
  align-items:end;
  padding:8px 10px;
  background:#f7f7f7;
  border-top:1px solid #dedede;
}
.chat-input-row textarea {
  min-height:38px;
  max-height:96px;
  resize:none;
  border-radius:6px;
  background:#fff;
}
