:root {
  --ink: #17231d;
  --muted: #6d756f;
  --line: #e4e7df;
  --canvas: #f5f6f1;
  --paper: #ffffff;
  --paper-soft: #fafbf7;
  --green: #116149;
  --green-2: #1f7a5d;
  --green-soft: #dceee5;
  --lime: #d9ed94;
  --blue: #235ad6;
  --blue-soft: #e8efff;
  --orange: #d8662e;
  --orange-soft: #fae8dd;
  --shadow: 0 20px 60px rgba(24, 48, 37, 0.1);
  --shadow-soft: 0 8px 28px rgba(24, 48, 37, 0.07);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  font-family: "DM Sans", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 4% 0%, rgba(217, 237, 148, 0.24), transparent 24rem),
    var(--canvas);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid rgba(223, 227, 218, 0.92);
  background: rgba(247, 248, 244, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.brand-mark,
.topbar-actions,
.mode-switch,
.inline,
.avatar-line,
.section-title,
.card-footer,
.tag-row,
.filter-row,
.bottom-nav,
.action-bar,
.meta-row,
.segmented,
.stats-strip,
.admin-topline {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  justify-content: center;
  border-radius: 12px;
  color: white;
  background: var(--green);
  box-shadow: 0 8px 24px rgba(17, 97, 73, 0.24);
}

.brand-copy small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.topbar-actions {
  gap: 14px;
}

.mode-switch {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.mode-btn {
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.mode-btn.active {
  color: #fff;
  background: var(--green);
}

.points-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid #c8dda8;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #f5fbdc;
}

.user-avatar,
.tiny-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #173f34, #3f856b);
}

.user-avatar {
  width: 38px;
  height: 38px;
}

.tiny-avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.page {
  width: min(1440px, 100%);
  min-height: calc(100vh - 72px);
  margin: 0 auto;
}

.mobile-layout {
  position: relative;
  max-width: 1180px;
  padding: 36px 28px 110px;
}

.hero-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 6px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 5px;
  font-size: 16px;
}

.subtitle,
.muted {
  color: var(--muted);
}

.subtitle {
  max-width: 600px;
  margin-bottom: 0;
  line-height: 1.7;
}

.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.search-panel {
  position: relative;
  z-index: 5;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(221, 225, 216, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.search-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.search-bar input,
.field input,
.field textarea,
.field select,
.table-search,
.kb-search {
  width: 100%;
  border: 1px solid var(--line);
  outline: 0;
  color: var(--ink);
  background: var(--paper-soft);
  transition: 0.2s ease;
}

.search-bar input {
  height: 48px;
  padding: 0 16px;
  border: 0;
  background: transparent;
}

.search-bar input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus,
.table-search:focus,
.kb-search:focus {
  border-color: rgba(17, 97, 73, 0.55);
  box-shadow: 0 0 0 4px rgba(17, 97, 73, 0.08);
}

.icon-btn,
.btn,
.filter-chip,
.tag,
.nav-item,
.admin-nav-item,
.category-card,
.district-pin,
.quick-chip,
.tab,
.switch {
  border: 0;
  cursor: pointer;
}

.icon-btn {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--green-soft);
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: white;
  background: var(--green);
  box-shadow: 0 8px 20px rgba(17, 97, 73, 0.2);
}

.btn-primary:hover {
  background: #0c543f;
}

.btn-soft {
  border-color: #d5e6dd;
  color: var(--green);
  background: #eff7f3;
}

.btn-ghost {
  border-color: var(--line);
  background: var(--paper);
}

.btn-danger {
  color: #a33d22;
  background: #fff0e9;
}

.btn-small {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

.filter-row {
  gap: 8px;
  overflow-x: auto;
  padding: 13px 0 1px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip,
.quick-chip,
.tag,
.status,
.permission-pill {
  white-space: nowrap;
  border-radius: 999px;
}

.filter-chip {
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: #4c554f;
  background: var(--paper);
}

.filter-chip.active {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 18px;
}

.card {
  border: 1px solid rgba(224, 228, 219, 0.9);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.map-card {
  position: relative;
  min-height: 545px;
  overflow: hidden;
  background: #e9eee8;
}

.map-card::before,
.map-card::after {
  position: absolute;
  inset: 0;
  content: "";
}

.map-card::before {
  opacity: 0.78;
  background-image:
    linear-gradient(31deg, transparent 48%, rgba(255,255,255,.85) 49%, rgba(255,255,255,.85) 52%, transparent 53%),
    linear-gradient(121deg, transparent 46%, rgba(255,255,255,.65) 47%, rgba(255,255,255,.65) 50%, transparent 51%),
    repeating-linear-gradient(0deg, transparent, transparent 52px, rgba(82, 112, 92, 0.12) 53px),
    repeating-linear-gradient(90deg, transparent, transparent 62px, rgba(82, 112, 92, 0.12) 63px);
}

.map-card::after {
  background:
    radial-gradient(circle at 25% 30%, rgba(175, 211, 171, 0.52), transparent 18%),
    radial-gradient(circle at 72% 70%, rgba(170, 206, 180, 0.58), transparent 21%),
    linear-gradient(115deg, transparent 48%, rgba(108, 177, 211, .34) 49%, rgba(108, 177, 211, .34) 54%, transparent 55%);
}

.map-label {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.map-tools {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  display: grid;
  gap: 8px;
}

.map-tool {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(222, 227, 219, 0.9);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255,255,255,.94);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.map-tool.active {
  color: #fff;
  background: var(--green);
}

.district-pin {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 2px solid white;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  background: var(--blue);
  box-shadow: 0 6px 16px rgba(35, 90, 214, 0.25);
  transition: transform .18s ease, background .18s ease;
}

.district-pin:hover,
.district-pin.active {
  z-index: 5;
  transform: scale(1.08);
  background: var(--orange);
}

.map-caption {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.map-caption p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.side-stack {
  display: grid;
  align-content: start;
  gap: 18px;
}

.panel-pad {
  padding: 20px;
}

.section-title {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-title h2,
.section-title h3,
.section-title p {
  margin-bottom: 0;
}

.link-btn {
  padding: 0;
  border: 0;
  color: var(--green);
  font-weight: 600;
  background: none;
  cursor: pointer;
}

.recommend-list {
  display: grid;
  gap: 12px;
}

.mini-property {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.mini-property:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.property-thumb,
.property-hero,
.property-card-visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #ddebe3 0%, #f4f1e6 100%);
}

.property-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-hero-image {
  object-position: center;
}

.property-thumb {
  height: 72px;
  border-radius: 11px;
}

.building-art {
  position: absolute;
  right: 3%;
  bottom: 0;
  width: 88%;
  height: 92%;
}

.property-meta strong,
.property-meta span {
  display: block;
}

.property-meta strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.property-meta span {
  color: var(--muted);
  font-size: 12px;
}

.price {
  color: var(--orange);
  font-weight: 700;
  white-space: nowrap;
}

.ai-card {
  color: white;
  background:
    radial-gradient(circle at 90% 8%, rgba(217,237,148,.52), transparent 12rem),
    linear-gradient(145deg, #123e33, #17654e);
}

.ai-card .muted {
  color: rgba(255,255,255,.7);
}

.ai-orb {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  color: #173d32;
  background: var(--lime);
  box-shadow: 0 8px 28px rgba(217, 237, 148, .18);
}

.content-section {
  margin-top: 30px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.property-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.property-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.property-card-visual {
  height: 176px;
}

.property-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  background: rgba(20, 38, 31, .78);
  backdrop-filter: blur(6px);
}

.favorite-btn {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #30443b;
  background: rgba(255,255,255,.88);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.favorite-btn.active {
  color: #fff;
  background: var(--orange);
}

.property-card-body {
  padding: 16px;
}

.property-card-body h3 {
  margin-bottom: 9px;
}

.tag-row {
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 5px 8px;
  color: #4d5b53;
  font-size: 11px;
  background: #f0f2ed;
}

.tag.green {
  color: var(--green);
  background: var(--green-soft);
}

.card-footer {
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.small {
  font-size: 12px;
}

.bottom-nav {
  position: fixed;
  z-index: 40;
  right: 50%;
  bottom: 20px;
  justify-content: center;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(215, 222, 212, .94);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 50px rgba(23, 47, 36, .16);
  transform: translateX(50%);
  backdrop-filter: blur(16px);
}

.nav-item {
  display: flex;
  min-width: 78px;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 11px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 11px;
  background: transparent;
}

.nav-item.active {
  color: var(--green);
  background: var(--green-soft);
}

.nav-item svg {
  width: 19px;
  height: 19px;
}

.find-hero,
.cooperate-hero,
.profile-hero {
  padding: 28px;
  margin-bottom: 22px;
  border-radius: var(--radius-xl);
}

.find-hero {
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(217,237,148,.26), transparent 24rem),
    #153d32;
}

.find-hero .subtitle {
  color: rgba(255,255,255,.68);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.category-card {
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  color: #fff;
  text-align: left;
  background: rgba(255,255,255,.08);
}

.category-card strong,
.category-card span {
  display: block;
}

.category-card strong {
  margin: 24px 0 3px;
  font-size: 24px;
}

.category-card span {
  color: rgba(255,255,255,.65);
  font-size: 12px;
}

.category-card.highlight {
  color: #17352c;
  background: var(--lime);
}

.category-card.highlight span {
  color: #52705f;
}

.empty-state {
  padding: 72px 24px;
  border: 1px dashed #cdd4cb;
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,.55);
}

.empty-state .empty-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 20px;
  color: var(--green);
  background: var(--green-soft);
}

.cooperate-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  overflow: hidden;
  color: #fff;
  background: #173e33;
}

.cooperate-hero h1 {
  max-width: 680px;
}

.commission-card {
  align-self: stretch;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: rgba(255,255,255,.08);
}

.commission-card strong {
  display: block;
  margin: 14px 0 6px;
  color: var(--lime);
  font-size: 40px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.benefit-card {
  padding: 22px;
}

.benefit-icon,
.feature-icon,
.metric-icon {
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--green-soft);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border-radius: 14px;
}

.public-knowledge-entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin: 16px 0 20px;
  background: linear-gradient(135deg, #eef6e9, #fffdf2);
}

.public-knowledge-entry .benefit-icon {
  margin: 0;
}

.public-knowledge-entry strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.public-knowledge-entry p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.knowledge-public-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 80px;
}

.knowledge-public-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
}

.knowledge-public-hero h1,
.public-knowledge-detail h1 {
  margin: 4px 0 8px;
  font-size: clamp(30px, 4.5vw, 52px);
}

.knowledge-search-panel {
  margin-bottom: 20px;
}

.knowledge-public-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.public-knowledge-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 22px;
  cursor: pointer;
}

.public-knowledge-card h2 {
  margin: 16px 0 10px;
  font-size: 21px;
}

.public-knowledge-card > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.public-knowledge-card .card-footer {
  margin-top: auto;
}

.knowledge-back {
  margin-bottom: 18px;
}

.public-knowledge-detail {
  max-width: 860px;
  padding: clamp(24px, 5vw, 58px);
  margin: 0 auto;
}

.knowledge-detail-meta,
.knowledge-card-status,
.knowledge-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.knowledge-detail-meta {
  justify-content: flex-start;
  color: var(--muted);
  font-size: 13px;
}

.knowledge-rich-body {
  margin: 30px 0;
  font-size: 16px;
  line-height: 1.9;
}

.knowledge-rich-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px auto;
  border-radius: 14px;
}

.knowledge-rich-body a {
  color: var(--green);
  text-decoration: underline;
}

.knowledge-rich-body blockquote {
  padding: 12px 18px;
  margin-left: 0;
  border-left: 4px solid var(--lime);
  color: var(--muted);
  background: var(--paper-soft);
}

.knowledge-video-cards {
  margin: 26px 0;
}

.knowledge-video-cards > h3 {
  margin: 0 0 12px;
}

.knowledge-video-cards > div {
  display: grid;
  gap: 10px;
}

.knowledge-video-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper-soft);
}

.knowledge-video-card:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.knowledge-video-card span:last-child {
  display: grid;
  gap: 3px;
}

.knowledge-video-card small,
.knowledge-video-count {
  color: var(--muted);
}

.knowledge-video-play {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
}

.knowledge-video-count {
  display: inline-block;
  margin: -10px 0 16px;
  font-size: 12px;
}

.modal-knowledge-body {
  max-height: 58vh;
  overflow-y: auto;
}

.knowledge-card-actions {
  align-items: flex-end;
  margin-top: auto;
}

.knowledge-card-actions > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.knowledge-body-editor {
  min-height: 220px;
}

.knowledge-form-tip {
  padding: 11px 14px;
  margin-top: 14px;
  border-radius: 12px;
  color: var(--green);
  font-size: 13px;
  background: var(--green-soft);
}

.knowledge-empty {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .knowledge-public-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .public-knowledge-entry {
    grid-template-columns: auto 1fr;
  }

  .public-knowledge-entry .btn {
    grid-column: 1 / -1;
  }

  .knowledge-public-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .knowledge-public-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-card-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(135deg, #eef3e9, #f9faee);
}

.profile-avatar {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 24px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #173f34, #3f856b);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.menu-list {
  display: grid;
}

.menu-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.menu-row:last-child {
  border-bottom: 0;
}

.menu-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--green);
  background: var(--green-soft);
}

.property-detail {
  padding-bottom: 100px;
}

.detail-nav {
  margin-bottom: 18px;
}

.property-hero {
  height: min(52vw, 500px);
  min-height: 320px;
  border-radius: var(--radius-xl);
}

.property-hero .building-art {
  right: 7%;
  width: 75%;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  margin-top: 20px;
}

.detail-main,
.detail-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.fact {
  padding: 14px;
  border-radius: 12px;
  background: var(--paper-soft);
}

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

.fact span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.article-copy {
  color: #455048;
  line-height: 1.9;
}

.room-sketch {
  display: grid;
  min-height: 260px;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: #dfe5dd;
}

.room-sketch div {
  display: grid;
  place-items: center;
  border: 1px solid #c7cec5;
  border-radius: 10px;
  color: #5d695f;
  background: #f8f9f5;
  font-size: 12px;
}

.room-sketch div:first-child {
  grid-row: span 2;
}

.contact-card {
  position: sticky;
  top: 92px;
}

.contact-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin: 16px 0;
  border-radius: 14px;
  background: var(--paper-soft);
}

.qr-placeholder {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  margin-left: auto;
  border: 6px solid white;
  border-radius: 10px;
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--ink) 12%, transparent 12% 24%, var(--ink) 24% 36%, transparent 36% 48%, var(--ink) 48% 60%, transparent 60% 72%, var(--ink) 72% 84%, transparent 84%),
    linear-gradient(var(--ink) 12%, transparent 12% 24%, var(--ink) 24% 36%, transparent 36% 48%, var(--ink) 48% 60%, transparent 60% 72%, var(--ink) 72% 84%, transparent 84%);
  background-size: 18px 18px;
}

.action-bar {
  position: fixed;
  z-index: 42;
  right: 50%;
  bottom: 20px;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  transform: translateX(50%);
  backdrop-filter: blur(14px);
}

/* AI workspace */
.workspace-layout,
.admin-layout {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: calc(100vh - 72px);
}

.side-nav {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  background: rgba(249,250,246,.72);
}

.side-nav-label {
  padding: 0 11px;
  margin: 8px 0 10px;
  color: #949b95;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.admin-nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  margin-bottom: 4px;
  border-radius: 11px;
  color: #59635d;
  text-align: left;
  background: transparent;
}

.admin-nav-item.active {
  color: var(--green);
  font-weight: 600;
  background: var(--green-soft);
}

.nav-spacer {
  height: 22px;
}

.side-promo {
  position: absolute;
  right: 18px;
  bottom: 22px;
  left: 18px;
  padding: 16px;
  border-radius: 16px;
  color: #fff;
  background: #173e33;
}

.side-promo p {
  margin: 7px 0 14px;
  color: rgba(255,255,255,.65);
  font-size: 11px;
  line-height: 1.6;
}

.workspace-main,
.admin-main {
  min-width: 0;
  padding: 34px;
}

.workspace-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 18px;
}

.composer {
  min-height: 520px;
  padding: 24px;
}

.composer textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: 0;
  color: var(--ink);
  background: var(--paper-soft);
  line-height: 1.8;
}

.composer-label {
  display: block;
  margin: 20px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.quick-chip {
  padding: 8px 11px;
  color: #526058;
  background: #eef1eb;
}

.quick-chip.active {
  color: var(--green);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px #c9dfd4;
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.result-box {
  min-height: 180px;
  padding: 18px;
  border: 1px solid #cfe2d8;
  border-radius: 15px;
  background: #f0f8f4;
  line-height: 1.8;
}

.result-placeholder {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: #8a938d;
  text-align: center;
}

.feature-stack {
  display: grid;
  gap: 12px;
}

.feature-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  cursor: pointer;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.feature-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.kb-search {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
}

.segmented {
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #eef1eb;
}

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

.tab.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 44, 33, .08);
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.note-card {
  padding: 18px;
}

.note-card .status {
  display: inline-flex;
  margin-bottom: 24px;
}

.note-card p {
  min-height: 56px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* Admin */
.admin-layout {
  grid-template-columns: 248px 1fr;
}

.admin-sidebar {
  background: #162d25;
}

.admin-sidebar .side-nav-label {
  color: rgba(255,255,255,.35);
}

.admin-sidebar .admin-nav-item {
  color: rgba(255,255,255,.62);
}

.admin-sidebar .admin-nav-item.active {
  color: #fff;
  background: rgba(217,237,148,.13);
}

.admin-topline {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-topline h1 {
  margin-bottom: 4px;
  font-size: 32px;
}

.date-pill {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  font-size: 12px;
  background: var(--paper);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card {
  padding: 18px;
}

.metric-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.metric-card strong {
  display: block;
  margin: 18px 0 6px;
  font-size: 28px;
  letter-spacing: -.04em;
}

.trend-up,
.trend-down {
  font-size: 11px;
  font-weight: 600;
}

.trend-up { color: var(--green); }
.trend-down { color: var(--orange); }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 18px;
}

.chart-card,
.activity-card {
  padding: 20px;
}

.bar-chart {
  display: grid;
  height: 230px;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 14px;
  padding: 22px 8px 0;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to bottom, transparent, transparent 47px, #eef0eb 48px);
}

.bar-group {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.bar {
  width: min(34px, 64%);
  min-height: 8px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(to top, var(--green), #58a789);
  transition: height .4s ease;
}

.bar-group span {
  color: var(--muted);
  font-size: 10px;
}

.activity-list {
  display: grid;
  gap: 16px;
}

.activity-row {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: start;
  gap: 10px;
}

.activity-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.activity-row p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.activity-row time {
  color: #9aa19b;
  font-size: 10px;
}

.table-card {
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.table-search {
  max-width: 280px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
}

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

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf0ea;
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
}

.data-table th {
  color: #7b847e;
  font-weight: 600;
  background: #fafbf8;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 600;
}

.status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: currentColor;
}

.status.online,
.status.approved {
  color: var(--green);
  background: var(--green-soft);
}

.status.pending {
  color: #a55f1e;
  background: #fff0d8;
}

.status.offline {
  color: #7e8580;
  background: #edf0eb;
}

.status.review {
  color: #6d58b6;
  background: #eeebfb;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-grid,
.settings-grid,
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.review-card {
  overflow: hidden;
}

.review-preview {
  display: grid;
  height: 140px;
  place-items: center;
  color: var(--green);
  background: linear-gradient(135deg, #e0ebe5, #f4efe1);
}

.review-body {
  padding: 16px;
}

.review-body p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.role-card,
.setting-card {
  padding: 20px;
}

.role-count {
  display: block;
  margin: 22px 0 7px;
  font-size: 30px;
  font-weight: 700;
}

.permission-pill {
  display: inline-flex;
  padding: 5px 8px;
  margin: 3px;
  color: #56625b;
  font-size: 10px;
  background: #eef1eb;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.setting-row:last-child {
  border-bottom: 0;
}

.switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #d9ded8;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  content: "";
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  transition: transform .2s ease;
}

.switch.on {
  background: var(--green);
}

.switch.on::after {
  transform: translateX(18px);
}

/* Public website, login and account-scoped administration */
.topbar .brand {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.public-mini-header {
  position: sticky;
  z-index: 80;
  top: 0;
  display: flex;
  height: 74px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(219,225,216,.72);
  color: var(--green);
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: .04em;
  background: rgba(249,250,246,.95);
  box-shadow: 0 6px 24px rgba(28,51,40,.04);
  backdrop-filter: blur(16px);
}

.public-admin-login {
  position: absolute;
  right: max(14px, calc((100vw - 980px) / 2));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(12,107,82,.25);
  border-radius: 999px;
  color: var(--green);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  background: #fff;
  cursor: pointer;
}

.public-admin-login:hover {
  color: #fff;
  background: var(--green);
}

.mode-public .mobile-layout {
  max-width: 1240px;
  padding-top: 42px;
}

.mode-public .bottom-nav {
  display: flex;
  right: 0;
  bottom: 0;
  width: 100%;
  justify-content: space-around;
  padding: 10px max(18px, calc((100vw - 920px) / 2));
  border-radius: 0;
  transform: none;
  box-shadow: 0 -10px 28px rgba(23, 47, 36, .10);
}

.mode-public .bottom-nav .nav-item {
  min-width: 96px;
  min-height: 58px;
  font-size: 14px;
}

.mode-public .page {
  padding-bottom: 116px;
}

.account-badge,
.sidebar-account {
  display: flex;
  align-items: center;
}

.account-badge {
  gap: 9px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.account-badge > span:last-child {
  display: grid;
  gap: 1px;
  min-width: 70px;
}

.account-badge strong {
  font-size: 13px;
}

.account-badge small,
.sidebar-account span {
  color: var(--muted);
  font-size: 10px;
}

.sidebar-account {
  gap: 10px;
  padding: 10px 10px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.sidebar-account > div {
  display: grid;
  gap: 3px;
}

.sidebar-account .user-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.admin-sidebar .sidebar-account {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  color: rgba(255,255,255,.62);
  font: inherit;
  text-align: left;
  background: transparent;
}

.admin-sidebar button.sidebar-account {
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}

.admin-sidebar button.sidebar-account:hover {
  color: rgba(255,255,255,.84);
  background: rgba(255,255,255,.06);
}

.admin-sidebar .sidebar-account strong,
.admin-sidebar .sidebar-account span {
  color: inherit;
}

.admin-sidebar .sidebar-account .user-avatar {
  color: inherit;
  background: rgba(255,255,255,.08);
}

.admin-sidebar .sidebar-account.active {
  color: #fff;
  background: rgba(217,237,148,.13);
}

.admin-sidebar .sidebar-account.active .user-avatar {
  color: #fff;
  background: rgba(255,255,255,.13);
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(28px, 6vw, 72px) 20px;
  background:
    radial-gradient(circle at 14% 20%, rgba(217,237,148,.42), transparent 29rem),
    linear-gradient(135deg, #f8faf3 0%, #f1f5ed 58%, #e8f1eb 100%);
}

.login-card {
  width: min(460px, 100%);
  justify-self: center;
  padding: 30px;
  box-shadow: 0 30px 90px rgba(22,61,48,.16);
}

.login-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.login-card-head h2,
.login-card-head p {
  margin-bottom: 2px;
}

.login-card-head p {
  color: var(--muted);
  font-size: 12px;
}

.login-card form {
  display: grid;
  gap: 14px;
}

.login-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.login-actions .btn {
  min-height: 48px;
}

.profile-hero-aside {
  display: flex;
  align-items: center;
  gap: 28px;
}

.profile-admin-login {
  align-self: flex-start;
}

.login-public-link {
  margin-top: 18px;
}

.login-result-card {
  display: grid;
  gap: 14px;
  text-align: center;
}

.login-result-card > p {
  margin: 0 0 4px;
  color: var(--muted);
}

.login-status-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  font-size: 27px;
  font-weight: 800;
}

.login-status-icon.error {
  color: #b13d2f;
  background: #fde9e4;
}

.login-status-icon.success {
  color: var(--green);
  background: var(--green-soft);
}

.owner-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: #55615a;
  font-size: 11px;
  background: #eef1ec;
}

.owner-pill.mine {
  color: var(--green);
  background: var(--green-soft);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.empty-state.compact {
  padding: 36px 20px;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.report-card {
  min-width: 0;
  padding: 22px;
}

.report-card + .report-card {
  margin-top: 0;
}

.report-table {
  min-width: 560px;
}

@media (max-width: 980px) {
  .login-card {
    justify-self: stretch;
  }

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

@media (max-width: 820px) {
  .sidebar-account {
    min-width: 150px;
    padding: 2px 10px 2px 0;
    margin: 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .account-badge > span:last-child,
  .admin-topbar .brand-copy small {
    display: none;
  }

  .login-page {
    min-height: 100vh;
    padding: 36px 20px 80px;
  }

  .profile-hero-aside {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .mode-public .mobile-layout {
    padding-top: 22px;
  }

  .login-card {
    padding: 22px;
  }

  .profile-hero-aside {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .profile-hero {
    position: relative;
  }

  .profile-admin-login {
    position: absolute;
    top: 22px;
    right: 22px;
  }

  .admin-topbar .brand-copy,
  .admin-topbar .mode-btn span,
  .admin-topbar .account-badge,
  .admin-topbar .points-pill {
    display: none;
  }
}

/* Modals */
.modal-backdrop {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  padding: 22px;
  place-items: center;
  background: rgba(14, 25, 20, .52);
  backdrop-filter: blur(7px);
  animation: fadeIn .18s ease;
}

.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 32px 80px rgba(5, 20, 14, .28);
  animation: riseIn .22s ease;
}

.modal.wide {
  width: min(760px, 100%);
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.database-import-preview {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-soft);
  line-height: 1.75;
}

.database-import-preview strong {
  color: var(--green);
}

.database-import-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.database-import-confirm input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--green);
}

.circle-enrichment-safeguards {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 13px 15px;
  border-left: 4px solid var(--green);
  border-radius: 12px;
  background: color-mix(in srgb, var(--lime) 34%, var(--paper));
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.circle-enrichment-safeguards strong,
.circle-confidence {
  color: var(--green);
}

.circle-enrichment-table-wrap {
  max-height: 360px;
  margin-top: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.circle-enrichment-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.55;
}

.circle-enrichment-table th,
.circle-enrichment-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.circle-enrichment-table th {
  position: sticky;
  top: 0;
  background: var(--paper-soft);
  color: var(--muted);
  font-weight: 700;
}

.more-circles-details {
  margin-top: 14px;
}

.more-circles-details summary {
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.more-circles-details summary::-webkit-details-marker {
  display: none;
}

.more-circles-details summary::after {
  content: "⌄";
  display: inline-block;
  margin-left: 6px;
  transition: transform .18s ease;
}

.more-circles-details[open] summary::after {
  transform: rotate(180deg);
}

.more-circles-panel {
  margin-top: 10px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--paper-soft);
}

.property-import-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.property-import-steps span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--paper-soft);
  color: var(--muted);
  font-size: 12px;
}

.property-import-steps b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.property-import-progress {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe6de;
}

.property-import-progress > div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width .2s ease;
}

@media (max-width: 640px) {
  .property-import-steps { grid-template-columns: 1fr; }
}

.modal-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #eef1eb;
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #58625c;
  font-size: 12px;
  font-weight: 600;
}

.field.is-unknown label,
.field.is-unknown input,
.field.is-unknown select {
  color: #c73d3d;
}

.field.is-unknown input,
.field.is-unknown select {
  border-color: rgba(199, 61, 61, .45);
  background: #fff8f7;
}

.field input,
.field textarea,
.field select {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 11px;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.property-editor-card,
.property-fields-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-soft);
}

.property-fields-card {
  margin-top: 14px;
  background: var(--paper);
}

.property-editor-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.property-editor-heading h3 {
  margin: 0;
  font-size: 17px;
}

.property-editor-heading p {
  margin: 5px 0 0;
  line-height: 1.55;
}

.property-body-editor {
  min-height: 270px;
  padding: 16px;
  overflow: auto;
  border: 1px solid #cad4ca;
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  line-height: 1.85;
  white-space: normal;
}

.property-body-editor:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 107, 80, .12);
}

.property-body-editor:empty::before {
  content: attr(data-placeholder);
  color: #9aa49c;
  pointer-events: none;
}

.property-body-editor p,
.property-body-editor ul,
.property-body-editor ol,
.property-body-editor blockquote {
  margin: 0 0 12px;
}

.property-body-editor img,
.property-rich-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.property-image-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.property-image-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  object-fit: cover;
  border-radius: 10px;
}

.property-rich-body .property-image-gallery {
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 22px 0;
}

.property-photo-block {
  display: grid;
  gap: 10px;
  margin: 0;
  min-width: 0;
}

.property-photo-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 4px 0 0;
  padding: 10px 16px 2px;
  color: var(--green);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.property-photo-caption-label {
  overflow-wrap: anywhere;
}

.property-photo-sequence {
  color: var(--muted);
  font-size: .68em;
  font-weight: 700;
  white-space: nowrap;
}

.property-photo-caption-arrow {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--green);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(2px);
}

.property-rich-body .property-image-gallery img,
.property-rich-body > img,
.property-rich-body figure img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  cursor: zoom-in;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(24, 54, 43, .1);
}

.property-image-preview {
  display: block;
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 16px;
  background: #0f1714;
}

.property-editor-tip {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.property-rich-body > :first-child {
  margin-top: 0;
}

.property-rich-body > :last-child {
  margin-bottom: 0;
}

.ai-chat {
  display: grid;
  gap: 13px;
  max-height: 420px;
  overflow-y: auto;
  padding: 2px 3px 12px;
}

.bubble {
  max-width: 84%;
  padding: 12px 14px;
  border-radius: 15px;
  font-size: 13px;
  line-height: 1.65;
}

.bubble.ai {
  justify-self: start;
  border-bottom-left-radius: 4px;
  background: #eef1eb;
}

.bubble.user {
  justify-self: end;
  border-bottom-right-radius: 4px;
  color: white;
  background: var(--green);
}

.chat-result {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
}

.chat-result .property-thumb {
  height: 56px;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  max-width: 340px;
  padding: 12px 16px;
  border-radius: 12px;
  color: white;
  font-size: 13px;
  background: #183a2f;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: .22s ease;
}

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

.skeleton {
  position: relative;
  overflow: hidden;
  background: #ebeee8;
}

.skeleton::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.62), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@keyframes fadeIn {
  from { opacity: 0; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
}

.mini-topbar .user-avatar {
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.mini-topbar {
  position: sticky;
}

.mini-topbar .brand {
  position: absolute;
  left: 50%;
  color: var(--green);
  transform: translateX(-50%);
}

.mini-topbar .brand-copy {
  color: var(--green);
}

.mini-topbar .brand-copy small {
  color: var(--green-2);
}

.mini-topbar .user-avatar {
  margin-left: auto;
}

.search-submit {
  min-width: 78px;
  padding-right: 12px;
  padding-left: 12px;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .real-map-card .map-label,
body.modal-open .real-map-card .map-tools,
body.modal-open .real-map-card .map-caption,
body.modal-open .real-map-card .leaflet-control-container {
  visibility: hidden;
}

.compact-home-hero {
  display: block;
  margin-bottom: 14px;
}

.compact-home-hero h1 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 5px;
  font-size: clamp(25px, 3vw, 38px);
  white-space: nowrap;
}

.hero-city {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
  color: var(--green);
  font-size: .56em;
  font-weight: 700;
  letter-spacing: 0;
}

.compact-home-hero .subtitle {
  padding-left: 1px;
  font-size: 13px;
}

.real-map-card::before,
.real-map-card::after {
  display: none;
}

.real-map-card #property-map {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: #e7ece5;
}

.real-map-card #detail-property-map {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: #e7ece5;
}

.real-map-card.compact {
  min-height: 315px;
}

.real-map-card.fullscreen {
  position: fixed;
  z-index: 800;
  inset: 0 0 76px;
  width: 100vw;
  min-height: 0;
  margin: 0;
  border-radius: 0;
}

.draw-prompt {
  position: absolute;
  z-index: 720;
  top: 50%;
  left: 50%;
  width: min(680px, calc(100% - 44px));
  padding: 34px 36px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 26px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 24px 70px rgba(20, 56, 43, .24);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(18px);
}

.draw-prompt-title {
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 27px);
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
}

.draw-prompt-actions {
  display: flex;
  margin-top: 26px;
}

.draw-prompt-action,
.draw-action {
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  color: var(--ink);
  font-weight: 900;
  background: #fff;
  cursor: pointer;
}

.draw-prompt-action {
  width: 100%;
  color: #fff;
  background: #0c6b52;
  box-shadow: 0 12px 26px rgba(12, 107, 82, .22);
}

.draw-surface {
  position: absolute;
  z-index: 680;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.draw-instruction {
  position: absolute;
  z-index: 700;
  top: 24px;
  left: 50%;
  padding: 11px 17px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background: rgba(12, 107, 82, .88);
  transform: translateX(-50%);
  pointer-events: none;
}

.draw-settings {
  position: absolute;
  z-index: 700;
  top: 22px;
  right: 24px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 28px rgba(20, 56, 43, .16);
}

.draw-setting-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.draw-setting-label {
  min-width: 38px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.draw-setting-option,
.draw-color {
  border: 1px solid var(--line);
  cursor: pointer;
}

.draw-setting-option {
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  background: #fff;
}

.draw-setting-option.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.draw-color {
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  opacity: .5;
}

.draw-color.active {
  border: 3px solid #fff;
  outline: 2px solid var(--green);
  opacity: 1;
}

.draw-actions {
  position: absolute;
  z-index: 700;
  right: 50%;
  bottom: 28px;
  display: grid;
  width: min(660px, calc(100% - 44px));
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  transform: translateX(50%);
}

.draw-action.confirm {
  color: #fff;
  background: #0c6b52;
}

.real-map-card.fullscreen .map-caption,
.real-map-card.fullscreen .map-label {
  display: none;
}

/* 公开网页复用小程序的“地图卡片”层：底图仍由 Leaflet 负责定位和点击，
   页面只替换控制层、气泡和全屏布局，不改变当前地图数据与底图来源。 */
.mode-public .real-map-card .leaflet-container {
  background: #e8eee7;
}

.map-controls {
  position: absolute;
  z-index: 650;
  top: 18px;
  right: 30px;
  left: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.map-control {
  display: flex;
  flex: none;
  height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 2px solid rgba(12, 107, 82, .16);
  border-radius: 16px;
  color: #16231e;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  background: #e2f1ea;
  box-shadow: 0 10px 22px rgba(12, 107, 82, .2);
  cursor: pointer;
  pointer-events: auto;
  animation: map-control-float 2.4s ease-in-out infinite;
}

.map-control + .map-control {
  margin-left: 10px;
}

.control-fullscreen,
.control-normal {
  width: 118px;
}

.control-draw {
  width: 184px;
}

.control-reload {
  width: 128px;
}

.map-control:nth-child(2) { animation-delay: .18s; }
.map-control:nth-child(3) { animation-delay: .36s; }
.map-control:nth-child(4) { animation-delay: .54s; }

@keyframes map-control-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.real-map-card.fullscreen .map-controls {
  top: 96px;
  right: auto;
  left: 22px;
  width: 190px;
  flex-direction: column;
  align-items: stretch;
}

.real-map-card.fullscreen .map-control {
  width: 190px;
  height: 70px;
  min-height: 70px;
  padding: 0 14px;
  border-color: rgba(19, 35, 29, .16);
  color: #111b17;
  font-size: 19px;
  background: #e2f1ea;
}

.real-map-card.fullscreen .map-control + .map-control {
  margin-top: 16px;
  margin-left: 0;
}

.real-map-card.fullscreen .map-caption {
  display: none;
}

.real-map-card .map-label,
.real-map-card .map-tools,
.real-map-card .map-caption {
  z-index: 500;
}

.real-map-card .leaflet-control-zoom {
  margin-top: 72px;
}

.real-map-card.fullscreen .leaflet-control-zoom {
  margin-top: 92px;
}

.map-scroll {
  position: absolute;
  z-index: 660;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--green);
  font-family: inherit;
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  background: rgba(255,255,255,.8);
  box-shadow: 0 12px 30px rgba(16,73,55,.18);
  cursor: pointer;
}

.map-scroll-top {
  bottom: 18px;
  left: 18px;
}

.map-scroll-bottom {
  top: 104px;
  right: 18px;
}

.real-map-card.fullscreen .map-scroll-top {
  bottom: 28px;
  left: 28px;
}

.real-map-card.fullscreen .map-scroll-bottom {
  top: 120px;
  right: 28px;
}

.map-results-section,
.fuzzy-results-section,
.detail-map-results {
  margin-top: 26px;
  scroll-margin-top: 92px;
}

.map-results-head,
.find-results-head {
  gap: 14px;
}

.results-title-group {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 10px;
}

.results-title-group h2 {
  margin: 0;
}

.result-count {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
}

.fuzzy-head-button,
.detail-map-link,
.map-switch,
.reset-all-button {
  flex: 0 0 auto;
  padding: 9px 15px;
  border: 2px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  background: rgba(238,247,241,.84);
  cursor: pointer;
}

.detail-map-link.soft {
  border-color: var(--line);
  color: var(--muted);
  background: #fff;
}

.fuzzy-more-button {
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(12,107,82,.2);
  cursor: pointer;
}

.map-empty-state {
  display: grid;
  gap: 10px;
  padding: 28px;
}

.empty-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.map-empty-state .reset-all-button {
  justify-self: center;
  margin-top: 2px;
}

.map-result-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.find-results-head .results-title-group {
  align-items: center;
}

.map-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}

.mini-property-detail {
  max-width: 980px;
  padding-bottom: 108px;
}

.detail-photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 170px 170px;
  gap: 10px;
  overflow: hidden;
  border-radius: 24px;
}

.detail-photo {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #c8d9ce, #6e8e7b);
}

.detail-photo.main {
  grid-row: span 2;
}

.detail-photo img,
.detail-photo svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-photo span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15,39,30,.7);
}

.detail-content {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.title-card,
.summary-card,
.facts-card {
  padding: 22px;
}

.title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.title-row h1 {
  margin: 0;
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.22;
}

.main-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.main-facts div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: var(--paper-soft);
}

.main-facts strong {
  color: var(--orange);
  font-size: 18px;
}

.main-facts span,
.fact span {
  color: var(--muted);
  font-size: 13px;
}

.facts-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.fact {
  display: grid;
  gap: 7px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.fact strong {
  font-size: 18px;
}

.fact.full {
  grid-column: 1 / -1;
}

.detail-map-block {
  margin-top: 2px;
}

.detail-map-heading {
  margin-bottom: 12px;
}

.detail-map-results .property-grid {
  margin-top: 14px;
}

.detail-actions {
  position: fixed;
  z-index: 880;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 78px;
  padding: 7px max(12px, calc((100vw - 980px) / 2));
  border-top: 1px solid rgba(219,225,216,.94);
  background: rgba(255,255,255,.96);
  box-shadow: 0 -8px 28px rgba(28,51,40,.08);
  backdrop-filter: blur(18px);
}

.detail-tab {
  display: grid;
  place-items: center;
  gap: 3px;
  border: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
}

.detail-tab.active {
  color: var(--green);
}

.region-map-icon,
.property-map-icon,
.landmark-map-icon {
  border: 0 !important;
  background: none !important;
}

.map-region-marker,
.map-property-marker {
  border: 3px solid #fff;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  background: var(--green);
  box-shadow: 0 6px 18px rgba(13, 69, 54, .3);
  cursor: pointer;
}

.map-region-marker {
  display: flex;
  width: 132px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 18px;
}

.map-region-marker span {
  font-size: 15px;
  font-weight: 500;
  opacity: .86;
}

.map-property-marker {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
}

.map-landmark-marker {
  width: 168px;
  min-height: 52px;
  overflow: hidden;
  padding: 8px 12px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #087a79;
  box-shadow: 0 6px 18px rgba(5, 80, 78, .28);
  cursor: pointer;
}

.drawing-map,
.drawing-map .leaflet-interactive {
  cursor: crosshair !important;
}

.map-fallback {
  display: grid;
  height: 100%;
  place-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, #e8efe8, #f4f6f1);
}

.map-fallback p {
  margin: 0;
  color: var(--muted);
}

.map-fallback > div {
  display: flex;
  max-width: 460px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.cooperate-page-web,
.profile-page-web {
  max-width: 720px;
  padding-top: 26px;
  background: radial-gradient(circle at 90% 4%, rgba(217, 237, 148, .34), transparent 420px), #f4f7ef;
}

.cooperate-hero-web {
  padding: 14px 8px 28px;
}

.cooperate-hero-web h1 {
  max-width: 680px;
  margin: 10px 0 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.4;
}

.cooperate-hero-copy {
  max-width: 640px;
  margin: 14px 0 0;
  color: #758078;
  font-size: 17px;
  line-height: 1.7;
}

.cooperate-page-web .service-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 24px;
  background: #e8ede6;
}

.cooperate-page-web .service-tab {
  min-width: 0;
  height: 58px;
  padding: 0 8px;
  border: 0;
  border-radius: 18px;
  color: #5f6a63;
  font-size: 16px;
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}

.cooperate-page-web .service-tab.active {
  color: #fff;
  background: #0c6b52;
  box-shadow: 0 12px 30px rgba(12, 107, 82, .2);
}

.cooperate-page-web .notice-card {
  padding: 28px;
}

.cooperate-page-web .notice-title-row,
.cooperate-page-web .field-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.notice-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  color: var(--green);
  font-size: 30px;
  font-weight: 900;
  background: var(--green-soft);
}

.cooperate-page-web .notice-title {
  flex: 1;
  font-size: 25px;
}

.notice-subtitle {
  margin: 18px 0 0;
  color: #68746d;
  font-size: 16px;
  line-height: 1.75;
}

.notice-list {
  display: grid;
  gap: 12px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #e1e7de;
}

.notice-item,
.product-point {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 8px;
  color: #435149;
  font-size: 16px;
  line-height: 1.6;
}

.notice-item > span:first-child,
.product-point > span:first-child {
  color: var(--green);
  font-weight: 900;
}

.cooperate-section-head {
  align-items: baseline;
  margin: 28px 0 14px;
}

.cooperate-section-head .title {
  margin: 0;
  font-size: 25px;
}

.cooperate-section-head .link {
  color: var(--green-2);
  font-size: 14px;
}

.application-form,
.compact-form {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.cooperate-page-web .field {
  display: grid;
  gap: 9px;
}

.cooperate-page-web .field label {
  color: #526058;
  font-size: 14px;
  font-weight: 800;
}

.cooperate-page-web .field input,
.cooperate-page-web .field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #dce3d8;
  border-radius: 14px;
  color: var(--ink);
  background: #fbfcf9;
}

.cooperate-page-web .field textarea {
  min-height: 150px;
  resize: vertical;
}

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

.upload-choice,
.voice-button {
  min-height: 48px;
  border: 1px solid #b9d5c8;
  border-radius: 14px;
  color: var(--green);
  font-weight: 800;
  background: #e7f3ed;
  cursor: pointer;
}

.upload-tip {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.voice-button {
  padding: 0 14px;
}

.cooperate-upload-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.cooperate-upload-item {
  position: relative;
  height: 132px;
  overflow: hidden;
  border-radius: 14px;
  background: #e5ebe5;
}

.cooperate-upload-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cooperate-upload-file {
  display: grid;
  height: 100%;
  place-content: center;
  gap: 8px;
  padding: 10px;
  text-align: center;
}

.cooperate-upload-file span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin: auto;
  border-radius: 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: var(--green);
}

.cooperate-upload-file small {
  max-width: 100px;
  overflow: hidden;
  color: #34483e;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cooperate-upload-kind {
  position: absolute;
  bottom: 7px;
  left: 7px;
  padding: 4px 8px;
  border-radius: 99px;
  color: #fff;
  font-size: 11px;
  background: rgba(12, 107, 82, .82);
}

.cooperate-upload-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  line-height: 25px;
  background: rgba(18, 39, 31, .75);
  cursor: pointer;
}

.service-intro-card {
  padding: 28px;
  color: #fff;
  background: linear-gradient(135deg, #0c6b52, #285f4e);
}

.service-intro-card h2 {
  margin: 0;
  font-size: 25px;
}

.service-intro-card p,
.benefit-card p,
.product-subtitle {
  color: #68746d;
  line-height: 1.7;
}

.service-intro-card p {
  margin: 10px 0 0;
  color: rgba(255,255,255,.82);
}

.benefit-list,
.product-list {
  display: grid;
  gap: 12px;
}

.benefit-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 22px;
}

.benefit-index {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: var(--green);
  font-weight: 900;
  background: #e2f1e9;
}

.benefit-card h3 {
  margin: 0;
  font-size: 18px;
}

.benefit-card p {
  margin: 7px 0 0;
  font-size: 14px;
}

.product-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.product-number {
  color: #b9dacb;
  font-weight: 900;
  letter-spacing: 3px;
}

.product-name {
  margin: 8px 0 0;
  font-size: 25px;
}

.product-subtitle {
  margin: 8px 0 0;
  font-size: 15px;
}

.product-points {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid #e2e8df;
}

.product-point {
  font-size: 14px;
}

.profile-page-web {
  padding-top: 28px;
}

.profile-visitor-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
}

.profile-visitor-avatar {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  font-size: 27px;
  font-weight: 900;
  background: var(--green);
}

.profile-visitor-card h1 {
  margin: 0;
  font-size: 25px;
}

.profile-visitor-card p {
  margin: 5px 0 0;
  color: var(--muted);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.profile-stats-grid .stat {
  display: grid;
  gap: 6px;
  min-height: 116px;
  place-content: center;
  border: 1px solid var(--line);
  cursor: pointer;
}

.profile-stats-grid .stat strong {
  color: var(--green);
  font-size: 31px;
  text-align: center;
}

.profile-stats-grid .stat span {
  color: var(--muted);
}

.profile-service-heading {
  margin: 28px 0 14px;
  font-size: 25px;
}

.profile-page-web .service-list {
  overflow: hidden;
  padding: 0 22px;
}

.profile-page-web .service-row {
  display: grid;
  width: 100%;
  grid-template-columns: 48px 1fr 24px;
  align-items: center;
  gap: 14px;
  padding: 19px 0;
  border: 0;
  border-bottom: 1px solid #e1e7de;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.profile-page-web .service-row:last-child {
  border-bottom: 0;
}

.profile-page-web .service-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: var(--green);
  font-size: 25px;
  font-weight: 900;
  background: #dff0e8;
}

.service-copy {
  display: grid;
  gap: 5px;
}

.service-copy strong {
  font-size: 18px;
}

.service-copy small {
  color: #7a847e;
  font-size: 14px;
  line-height: 1.5;
}

.service-arrow {
  color: #89928c;
  font-size: 30px;
}

.profile-page-web .privacy-note {
  padding: 25px 18px;
  color: #7a847e;
  line-height: 1.7;
  text-align: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.compact-find-hero {
  padding: 14px;
  margin-bottom: 14px;
}

.compact-category-grid {
  margin-top: 0;
}

.compact-category-card {
  display: grid;
  min-height: 82px;
  place-items: center;
  padding: 10px 8px;
  text-align: center;
}

.compact-category-card strong {
  margin: 4px 0 0;
  font-size: 21px;
  line-height: 1;
}

.compact-category-card span {
  margin-top: 4px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 600;
}

.compact-category-card.highlight span {
  color: #486454;
}

.find-subcategory-panel {
  padding: 14px;
}

.find-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.find-subcategory {
  min-height: 70px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--paper-soft);
  cursor: pointer;
}

.find-subcategory strong,
.find-subcategory span {
  display: block;
}

.find-subcategory strong {
  margin-bottom: 5px;
  color: var(--green);
  font-size: 20px;
}

.find-subcategory span {
  font-size: 12px;
}

.find-subcategory.active {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.find-subcategory.active strong {
  color: var(--lime);
}

.find-results {
  margin-top: 20px;
}

.quick-find-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0 20px;
}

.quick-find-card {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.quick-find-card:hover,
.quick-find-card.active {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.simplified-results {
  margin-top: 0;
}

.compact-cooperate-hero {
  align-items: center;
  padding: 18px 22px;
  margin-bottom: 18px;
}

.compact-cooperate-hero h1 {
  font-size: clamp(25px, 3.2vw, 38px);
}

.compact-cooperate-hero .commission-card {
  padding: 15px 18px;
}

.compact-cooperate-hero .commission-card strong {
  margin: 5px 0 2px;
  font-size: 25px;
}

.filter-modal-body {
  display: grid;
  max-height: 58vh;
  gap: 22px;
  overflow-y: auto;
  padding-right: 4px;
}

.filter-section h3,
.custom-range h3 {
  margin-bottom: 11px;
}

.filter-option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.filter-option-grid.compact-options {
  grid-template-columns: repeat(2, minmax(0, 160px));
}

.filter-option {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #48534c;
  background: var(--paper-soft);
  cursor: pointer;
}

.filter-option.active {
  border-color: var(--green);
  color: var(--green);
  font-weight: 600;
  background: var(--green-soft);
}

.custom-range {
  padding: 15px;
  border-radius: 14px;
  background: var(--paper-soft);
}

.custom-range-fields {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: end;
  gap: 9px;
  margin-bottom: 12px;
}

.custom-range-fields label span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.custom-range-fields input {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.custom-range-fields i,
.custom-range-fields b {
  padding-bottom: 11px;
  font-size: 12px;
  font-style: normal;
}

.announcement-copy {
  color: #465149;
  line-height: 1.8;
}

.announcement-copy h3 {
  margin-top: 18px;
}

.announcement-copy li {
  margin: 7px 0;
}

.personal-service-card {
  align-content: start;
}

.service-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 13px;
  margin-bottom: 20px;
}

.service-summary .benefit-icon {
  margin: 0;
}

@media (max-width: 1080px) {
  .home-grid,
  .workspace-grid,
  .dashboard-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .property-grid,
  .review-grid,
  .settings-grid,
  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .topbar {
    height: 64px;
    padding: 0 16px;
  }

  .brand-copy small,
  .points-pill,
  .mode-btn span {
    display: none;
  }

  .mode-btn {
    padding: 8px 10px;
  }

  .page {
    min-height: calc(100vh - 64px);
  }

  .mobile-layout,
  .workspace-main,
  .admin-main {
    padding: 24px 16px 100px;
  }

  .workspace-layout,
  .admin-layout {
    display: block;
  }

  .side-nav {
    position: static;
    display: flex;
    width: 100%;
    height: auto;
    gap: 5px;
    overflow-x: auto;
    padding: 9px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-nav-label,
  .side-promo,
  .nav-spacer {
    display: none;
  }

  .admin-nav-item {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
  }

  .admin-sidebar .sidebar-account {
    width: auto;
    min-width: 150px;
    flex: 0 0 auto;
    padding: 6px 12px 6px 4px;
    margin: 0;
    border-right: 1px solid rgba(255,255,255,.28);
    border-bottom: 0;
  }

  .hero-head,
  .workspace-hero,
  .cooperate-hero {
    grid-template-columns: 1fr;
  }

  .hero-head {
    align-items: start;
  }

  .city-chip {
    justify-self: start;
  }

  .property-grid,
  .benefit-grid,
  .profile-grid,
  .kb-grid,
  .review-grid,
  .settings-grid,
  .roles-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .data-table {
    min-width: 760px;
  }

  .table-card {
    overflow-x: auto;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 21px;
  }

  .mobile-layout {
    padding-top: 22px;
  }

  .hero-head {
    margin-bottom: 18px;
  }

  .home-grid {
    display: block;
  }

  .map-card {
    min-height: 390px;
    margin-bottom: 14px;
  }

  .side-stack {
    gap: 14px;
  }

  .ai-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
  }

  .ai-orb {
    width: 46px;
    height: 46px;
    margin: 0;
  }

  .ai-card p {
    display: none;
  }

  .property-grid,
  .benefit-grid,
  .profile-grid,
  .kb-grid,
  .review-grid,
  .settings-grid,
  .roles-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .property-card {
    display: grid;
    grid-template-columns: 134px 1fr;
  }

  .property-card-visual {
    height: 100%;
    min-height: 184px;
  }

  .property-card-body {
    min-width: 0;
  }

  .property-card-body .tag-row .tag:nth-child(n+3) {
    display: none;
  }

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

  .category-card {
    min-height: 118px;
  }

  .category-card:last-child {
    grid-column: 1 / -1;
  }

  .bottom-nav {
    right: 10px;
    bottom: 10px;
    left: 10px;
    transform: none;
  }

  .nav-item {
    min-width: 0;
    flex: 1;
    padding: 7px 4px;
  }

  .cooperate-hero,
  .find-hero,
  .profile-hero {
    padding: 22px;
  }

  .profile-hero {
    align-items: start;
    flex-direction: column;
  }

  .property-hero {
    height: 330px;
  }

  .action-bar {
    right: 10px;
    bottom: 10px;
    left: 10px;
    transform: none;
  }

  .action-bar .btn {
    flex: 1;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 12px;
  }

  .workspace-main,
  .admin-main {
    padding-top: 22px;
  }

  .composer {
    padding: 18px;
  }

  .workspace-hero,
  .admin-topline {
    align-items: start;
    flex-direction: column;
  }

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

  .field.full {
    grid-column: auto;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal {
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
  }

  .toast {
    right: 14px;
    bottom: 88px;
    left: 14px;
    max-width: none;
  }
}

@media (max-width: 820px) {
  .compact-home-hero h1 {
    font-size: 28px;
  }

  .compact-category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
  }

  .compact-category-card {
    min-height: 74px;
    padding: 8px 4px;
  }

  .find-subcategory-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .compact-cooperate-hero {
    grid-template-columns: 1.25fr .75fr;
  }
}

@media (max-width: 600px) {
  .compact-home-hero {
    margin-bottom: 12px;
  }

  .compact-home-hero h1 {
    gap: 9px;
    font-size: clamp(20px, 6.1vw, 28px);
  }

  .hero-city {
    padding-right: 9px;
  }

  .compact-home-hero .subtitle {
    font-size: 12px;
  }

  .search-panel {
    padding: 10px;
  }

  .search-bar {
    gap: 5px;
  }

  .search-bar .btn {
    padding: 9px 10px;
    font-size: 12px;
  }

  .search-bar .btn span {
    display: none;
  }

  .filter-row {
    justify-content: space-between;
    gap: 4px;
  }

  .filter-chip {
    flex: 1 0 auto;
    padding: 7px 8px;
    font-size: 11px;
  }

  .real-map-card {
    min-height: 470px;
  }

  .map-caption p {
    display: none;
  }

  .map-caption {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .compact-category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .compact-category-card:last-child {
    grid-column: auto;
  }

  .compact-category-card {
    min-height: 70px;
  }

  .compact-category-card > span:first-child {
    display: none !important;
  }

  .compact-category-card strong {
    font-size: 18px;
  }

  .compact-category-card span {
    font-size: 11px;
  }

  .find-subcategory-panel {
    padding: 10px;
  }

  .find-subcategory-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .find-subcategory {
    min-height: 64px;
    padding: 7px 4px;
  }

  .compact-cooperate-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .compact-cooperate-hero p {
    margin-bottom: 10px;
  }

  .compact-cooperate-hero .commission-card {
    display: none;
  }

  .filter-option-grid,
  .range-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-find-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }

  .quick-find-card {
    min-height: 62px;
    padding: 9px 7px;
    font-size: 12px;
  }
}

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