@import url("https://fonts.googleapis.com/css2?family=Akshar:wght@400;500;600&display=swap");

:root {
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --line: #ece8f2;
  --line-strong: #d8d2df;
  --text: #111111;
  --muted: #666666;
  --accent: #2f74ea;
  --accent-deep: #1f5fd0;
  --accent-soft: rgba(47, 116, 234, 0.08);
  --accent-glow: rgba(47, 116, 234, 0.16);
  --success: #111111;
  --warning: #111111;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
  --radius-xl: 22px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Akshar", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: #f5f5f5;
}

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

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 12px;
}

.sidebar,
.panel,
.section-card {
  backdrop-filter: blur(18px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-mark-image {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  box-shadow: none;
}

.brand-mark-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-title,
.brand-subtitle,
.eyebrow,
.sidebar-label,
.sidebar-note,
.metric-card span,
.metric-card em,
.property-card p,
.client-row p,
.timeline-item p,
.deal-board p,
.funnel-step span {
  margin: 0;
}

.brand-title {
  font-size: 1rem;
  font-weight: 800;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.nav {
  display: grid;
  gap: 10px;
}

.nav-item {
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #ffffff;
  color: inherit;
  display: block;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: 0.25s ease;
  position: relative;
}

.nav-item:hover,
.nav-item.active {
  background: var(--accent-soft);
  border-color: rgba(47, 116, 234, 0.18);
  transform: none;
}

.nav-item.active::before {
  display: none;
}

.sidebar-card {
  margin-top: auto;
  padding: 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.sidebar-card h3 {
  margin: 8px 0 12px;
  font-size: 1.5rem;
}

.progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}

.sidebar-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.appointment-form .form-group-full-width {
  grid-column: 1 / -1;
}

.appointment-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.appointment-count {
  color: var(--muted);
  font-size: 0.9rem;
}

.appointment-board-head {
  padding: 34px 48px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.appointment-board-head h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
}

.table-search-box input {
  width: 180px;
}

.table-shell {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.appointment-table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}

.appointment-table th,
.appointment-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.55;
  vertical-align: top;
}

.appointment-table th {
  color: #111111;
  font-weight: 800;
  background: #ffffff;
  white-space: nowrap;
}

.appointment-table td {
  color: #3d3d3d;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.appointment-table th:nth-child(1),
.appointment-table td:nth-child(1) {
  min-width: 180px;
}

.appointment-table th:nth-child(4),
.appointment-table td:nth-child(4) {
  min-width: 150px;
}

.appointment-table th:nth-child(6),
.appointment-table td:nth-child(6) {
  min-width: 110px;
}

.appointment-table th:nth-child(7),
.appointment-table td:nth-child(7) {
  min-width: 130px;
}

.appointment-table tbody tr:hover {
  background: rgba(47, 116, 234, 0.03);
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.table-pagination {
  display: flex;
  gap: 8px;
}

.login-body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(6, 14, 28, 0.76) 0%, rgba(6, 14, 28, 0.48) 36%, rgba(6, 14, 28, 0.12) 68%, rgba(6, 14, 28, 0.02) 100%),
    url("../assets/bg.avif") center / cover no-repeat;
}

.login-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 56px 22px;
}

.login-card {
  width: min(440px, 100%);
  padding: 28px 30px 26px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.login-brand {
  text-align: left;
}

.login-logo {
  width: 104px;
  max-width: 42vw;
  height: auto;
  object-fit: contain;
}

.login-brand h1,
.login-support {
  margin: 0;
}

.login-brand h1 {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.15;
  color: var(--accent-deep);
}

.login-brand p {
  margin: 10px 0 0;
  color: #566071;
  font-size: 0.92rem;
  line-height: 1.55;
}

.login-form {
  width: 100%;
  margin: 24px auto 0;
}

.login-field {
  margin-bottom: 12px;
}

.login-field label {
  display: block;
  margin-bottom: 6px;
  color: #1f1f1f;
  font-size: 0.76rem;
  font-weight: 800;
}

.login-field input {
  width: 100%;
  height: 46px;
  padding: 0 15px;
  border: 1px solid #d6dbe7;
  border-radius: 12px;
  background: #ffffff;
  color: #222222;
  font-size: 0.9rem;
}

.login-field input::placeholder {
  color: #7b7b7b;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.login-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
}

.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #1f1f1f;
  font-size: 0.76rem;
}

.remember-me input {
  width: 14px;
  height: 14px;
}

.login-submit {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.login-submit:disabled {
  background: #cfcfcf;
  color: #ffffff;
  cursor: not-allowed;
  box-shadow: none;
}

.login-support {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(47, 116, 234, 0.16);
  border-radius: 12px;
  background: rgba(47, 116, 234, 0.07);
  color: #4d5668;
  font-size: 0.78rem;
  line-height: 1.6;
}

.login-support strong {
  color: var(--accent-deep);
  font-weight: 800;
}

.topbar,
.hero,
.section-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.topbar {
  overflow: visible;
  z-index: 30;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
}

.topbar h1,
.hero h2,
.section-header h3,
.property-card h4,
.client-row h4,
.timeline-item h4 {
  margin: 0;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.accent {
  color: var(--accent-deep);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-box {
  position: relative;
}

.search-box input {
  width: min(360px, 42vw);
  padding: 14px 18px;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  outline: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(420px, 72vw);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  z-index: 20;
}

.search-dropdown-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--muted);
  font-size: 0.88rem;
}

.search-results {
  display: grid;
}

.search-result {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.search-result:first-child {
  border-top: none;
}

.search-result:hover {
  background: rgba(47, 116, 234, 0.04);
}

.search-main,
.search-sub {
  margin: 0;
}

.search-main {
  font-weight: 700;
}

.search-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-meta {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.search-highlight {
  color: var(--accent-deep);
  background: rgba(47, 116, 234, 0.1);
  border-radius: 6px;
  padding: 0 2px;
}

.primary-btn,
.ghost-btn,
.chip {
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: none;
}

.ghost-btn {
  padding: 12px 18px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--accent-deep);
  border: 1px solid rgba(47, 116, 234, 0.14);
}

.primary-btn:hover,
.ghost-btn:hover,
.chip:hover {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 24px;
  padding: 30px;
}

.hero-copy {
  padding-right: 10px;
}

.hero h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 1.08;
}

.hero-text {
  margin: 16px 0 24px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.metric-card.strong {
  background: #ffffff;
}

.metric-card span,
.metric-card em {
  color: var(--muted);
  font-style: normal;
}

.metric-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 2rem;
}

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

.section-card {
  padding: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--muted);
}

.chip.active {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: rgba(47, 116, 234, 0.22);
}

.badge-pending {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  background: #fff7e6;
  color: #d46b08;
  border: 1px solid #ffd591;
}

.badge-done {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  background: #f6ffed;
  color: #389e0d;
  border: 1px solid #b7eb8f;
}

.property-list,
.client-list,
.timeline,
.deal-funnel,
.deal-board,
.listing-form,
.structure-summary,
.structure-grid {
  display: grid;
  gap: 14px;
}

.form-section {
  grid-column: 1 / -1;
}

.listing-form {
  gap: 18px;
}

.publish-page {
  padding: 28px;
}

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

.publish-note {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.publish-tabs {
  display: inline-flex;
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.publish-tab {
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.publish-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ffffff;
}

.publish-panels {
  display: grid;
}

.publish-panel {
  display: none;
}

.publish-panel.active {
  display: grid;
}

.structure-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.summary-card,
.structure-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.summary-card span,
.summary-card em,
.structure-tag {
  margin: 0;
  color: var(--muted);
}

.summary-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 1.8rem;
}

.summary-card em {
  font-style: normal;
}

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

.structure-card h4,
.structure-list {
  margin: 0;
}

.structure-tag {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.structure-card h4 {
  margin-top: 10px;
  font-size: 1.08rem;
}

.structure-list {
  margin-top: 14px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

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

.profile-hero {
  align-items: stretch;
}

.profile-hero-main {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 800;
}

.profile-copy h2,
.profile-company-card h4 {
  margin: 0;
}

.profile-intro {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.profile-badges span {
  padding: 10px 14px;
  border: 1px solid rgba(47, 116, 234, 0.18);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-property-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-company-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.profile-company-card p,
.profile-company-list,
.profile-company-list li {
  margin: 0;
}

.profile-company-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.85;
}

.profile-company-list {
  margin-top: 14px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.profile-message-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.profile-message-form,
.profile-message-board {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.profile-message-board {
  display: grid;
  gap: 14px;
  align-content: start;
}

.property-rich {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 16px;
  align-items: stretch;
}

.listing-image {
  display: grid;
  place-items: center;
  min-height: 136px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(47, 116, 234, 0.08), rgba(0, 0, 0, 0.03)),
    linear-gradient(180deg, #ffffff, #f5f5f5);
  color: var(--accent-deep);
  font-weight: 800;
  font-size: 1.2rem;
}

.property-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.listing-board {
  display: grid;
  gap: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

.listing-toolbar {
  display: flex;
  justify-content: flex-end;
}

.listing-page-size {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #666666;
  font-size: 0.86rem;
}

.listing-page-size select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #ffffff;
  color: #111111;
}

.listing-board-head,
.listing-row {
  display: grid;
  grid-template-columns: minmax(320px, 2.2fr) 1fr 1fr 1fr 1fr 1fr 200px;
  gap: 14px;
  align-items: center;
}

.listing-board-head {
  padding: 14px 18px;
  background: #fafafa;
  color: #7a7a7a;
  font-size: 0.8rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.listing-board-list {
  display: grid;
}

.listing-row {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.listing-row:last-child {
  border-bottom: none;
}

.listing-row:hover,
.system-home-listing:hover {
  background: rgba(47, 116, 234, 0.03);
}

.listing-row-info {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.listing-row-thumb {
  width: 96px;
  height: 72px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background:
    linear-gradient(135deg, rgba(47, 116, 234, 0.08), rgba(0, 0, 0, 0.02)),
    #f3f5f8;
}

.listing-row-main {
  min-width: 0;
}

.listing-row-main h4,
.listing-row-price strong,
.listing-row-meta strong,
.listing-row-contact strong,
.listing-row-date strong {
  margin: 0;
}

.listing-row-main h4 {
  font-size: 1rem;
  line-height: 1.35;
}

.listing-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.listing-row-tags span {
  padding: 5px 8px;
  border-radius: 10px;
  background: rgba(47, 116, 234, 0.08);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
}

.listing-row-price,
.listing-row-meta,
.listing-row-contact,
.listing-row-date {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.listing-row-price strong {
  color: #ff5a5f;
  font-size: 1.2rem;
}

.listing-row-price span,
.listing-row-meta span,
.listing-row-contact span,
.listing-row-date span {
  color: #7a7a7a;
  font-size: 0.78rem;
}

.listing-row-meta strong,
.listing-row-contact strong,
.listing-row-date strong {
  font-size: 0.98rem;
}

.listing-title-link {
  color: #141414;
  text-decoration: none;
}

.listing-title-link:hover {
  color: var(--accent-deep);
}

.listing-row-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
}

.listing-row-action .ghost-btn {
  white-space: nowrap;
  padding: 5px 10px;
  font-size: 0.82rem;
}

.detail-hero-card,
.detail-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.04);
}

.detail-anchor-nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.detail-anchor-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(47, 116, 234, 0.16);
  border-radius: 12px;
  background: rgba(47, 116, 234, 0.06);
  color: var(--accent-deep);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.detail-anchor-nav a:hover {
  background: rgba(47, 116, 234, 0.1);
}

.detail-hero-card {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1.2fr);
  gap: 22px;
  padding: 22px;
}

.detail-hero-gallery,
.detail-hero-main,
.detail-grid,
.detail-params-grid,
.detail-appointment-list,
.detail-action-list {
  display: grid;
}

.detail-hero-gallery {
  gap: 14px;
}

.detail-hero-cover,
.detail-thumb {
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(47, 116, 234, 0.08), rgba(0, 0, 0, 0.02)),
    #f3f5f8;
  color: var(--accent-deep);
  font-weight: 700;
}

.detail-hero-cover {
  min-height: 300px;
}

.detail-hero-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.detail-thumb {
  min-height: 82px;
  font-size: 0.8rem;
}

.detail-hero-main {
  gap: 18px;
}

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

.detail-title-row h1,
.detail-price-row strong {
  margin: 0;
}

.detail-title-row h1 {
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1.15;
}

.detail-subtitle {
  margin: 10px 0 0;
  color: #727272;
  font-size: 0.92rem;
}

.detail-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(47, 116, 234, 0.08);
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 700;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.detail-price-row strong {
  color: #ff5a5f;
  font-size: 2rem;
}

.detail-price-row span {
  color: #666666;
  font-size: 0.95rem;
  font-weight: 700;
}

.detail-key-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-key-grid article,
.detail-params-grid article,
.detail-appointment-list article {
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  background: #fbfbfb;
}

.detail-key-grid span,
.detail-key-grid strong,
.detail-contact-bar span,
.detail-contact-bar strong,
.detail-params-grid span,
.detail-params-grid strong,
.detail-appointment-list strong,
.detail-appointment-list p,
.detail-appointment-list span {
  display: block;
  margin: 0;
}

.detail-key-grid span,
.detail-contact-bar span,
.detail-params-grid span {
  color: #7a7a7a;
  font-size: 0.76rem;
}

.detail-key-grid strong,
.detail-contact-bar strong,
.detail-params-grid strong {
  margin-top: 8px;
  font-size: 1rem;
}

.detail-contact-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-contact-bar > div {
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  background: #ffffff;
}

.detail-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.detail-card {
  padding: 20px;
}

.detail-card-wide {
  grid-column: 1 / -1;
}

.detail-params-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.detail-facility-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-facility-list span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(47, 116, 234, 0.16);
  border-radius: 12px;
  background: rgba(47, 116, 234, 0.08);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.detail-description {
  color: #4f4f4f;
  line-height: 1.9;
}

.detail-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-highlight-grid article {
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  background: #fbfbfb;
}

.detail-highlight-grid span,
.detail-highlight-grid strong,
.detail-highlight-grid p {
  display: block;
  margin: 0;
}

.detail-highlight-grid span {
  color: #7a7a7a;
  font-size: 0.76rem;
}

.detail-highlight-grid strong {
  margin-top: 8px;
  font-size: 1rem;
}

.detail-highlight-grid p {
  margin-top: 8px;
  color: #666666;
  font-size: 0.82rem;
  line-height: 1.75;
}

.detail-appointment-list,
.detail-action-list {
  gap: 12px;
}

.detail-appointment-list p,
.detail-appointment-list span {
  margin-top: 6px;
  color: #666666;
  font-size: 0.78rem;
}

.detail-action-list .primary-btn,
.detail-action-list .ghost-btn {
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

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

.form-grid.dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.option-group-multi {
  gap: 10px;
}

.option-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.option-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  transition: 0.2s ease;
}

.option-pill input:checked + span {
  border-color: rgba(47, 116, 234, 0.22);
  background: var(--accent-soft);
  color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(47, 116, 234, 0.06);
}

.option-pill:hover span {
  border-color: rgba(47, 116, 234, 0.18);
}

.form-group label,
.upload-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.search-box input::placeholder {
  color: var(--muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.search-box input:focus {
  border-color: rgba(47, 116, 234, 0.28);
  box-shadow: 0 0 0 3px rgba(47, 116, 234, 0.08);
}

.form-group input[readonly] {
  background: #f8fafc;
  color: #555555;
}

.form-feedback {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.form-feedback.is-error {
  color: #d14343;
}

.form-feedback.is-success {
  color: #188038;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-upload {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  background: #ffffff;
}

.publish-map-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.publish-map-panel iframe {
  width: 100%;
  min-height: 260px;
  border: 0;
  border-radius: 12px;
  background: #f3f5f8;
}

.upload-title,
.upload-note {
  margin: 0;
}

.upload-note {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.7;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.upload-grid-single {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.upload-input {
  display: none;
}

.upload-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.upload-card {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  overflow: hidden;
  text-align: center;
}

.upload-card[role="button"] {
  cursor: pointer;
}

.upload-card[role="button"]:hover {
  border-color: rgba(47, 116, 234, 0.3);
  background: #f8fbff;
}

.upload-card[role="button"]::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 20px;
  font-weight: 700;
}

.upload-card.has-image {
  padding: 0;
  border-style: solid;
}

.upload-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-card[draggable="true"] {
  cursor: grab;
}

.upload-card.is-dragging {
  opacity: 0.55;
}

.upload-card-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.upload-card-status {
  position: absolute;
  left: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  font-size: 11px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.property-card,
.client-row,
.timeline-item,
.funnel-step,
.deal-board article {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.property-card {
  position: relative;
  overflow: hidden;
}

.property-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: #111111;
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
}

.property-badge.urgent {
  background: rgba(0, 0, 0, 0.04);
  color: #111111;
}

.property-badge.new {
  background: rgba(0, 0, 0, 0.04);
  color: #111111;
}

.property-card p,
.client-row p,
.timeline-item p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.property-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.property-meta strong {
  font-size: 1.2rem;
}

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

.client-row,
.timeline-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.status,
.date-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.status.hot {
  background: rgba(0, 0, 0, 0.04);
  color: #111111;
}

.status.warm {
  background: rgba(0, 0, 0, 0.04);
  color: #111111;
}

.status.cold {
  background: rgba(0, 0, 0, 0.04);
  color: #111111;
}

.date-pill {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 78px;
  top: 22px;
  bottom: -16px;
  width: 1px;
  background: var(--line-strong);
}

.timeline-item:last-child::before {
  display: none;
}

.time {
  min-width: 52px;
  font-weight: 800;
  color: #111111;
}

.deal-funnel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.funnel-step strong {
  display: block;
  margin-top: 8px;
  font-size: 1.5rem;
}

.deal-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.deal-board article strong {
  display: block;
  margin-top: 10px;
  font-size: 1.4rem;
}

.text-link {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .app-shell,
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .app-shell > * {
    min-width: 0;
  }

  .sidebar {
    padding-bottom: 22px;
  }

  .deal-funnel,
  .deal-board,
  .form-grid,
  .upload-grid,
  .publish-map-panel,
  .structure-summary,
  .structure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 760px) {
  .app-shell {
    padding: 14px;
    gap: 14px;
  }

  .table-shell {
    border-radius: 16px;
  }

  .appointment-table {
    table-layout: auto;
  }

  .appointment-table th,
  .appointment-table td {
    padding: 13px 10px;
    font-size: 0.78rem;
  }

  .sidebar,
  .topbar,
  .hero,
  .section-card {
    border-radius: 24px;
  }

  .topbar,
  .topbar-actions,
  .property-meta,
  .client-row,
  .timeline-item,
  .section-header,
  .form-upload,
  .form-actions,
  .publish-head,
  .table-footer,
  .appointment-toolbar {
    flex-direction: column;
  }

  .search-box input {
    width: 100%;
  }

  .search-box {
    width: 100%;
  }

  .table-search-box input {
    width: 100%;
  }

  .search-dropdown {
    left: 0;
    width: 100%;
  }

  .hero,
  .section-card {
    padding: 20px;
  }

  .hero-metrics,
  .deal-funnel,
  .deal-board,
  .form-grid,
  .upload-grid,
  .publish-map-panel,
  .structure-summary,
  .structure-grid {
    grid-template-columns: 1fr;
  }

  .publish-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .listing-board {
    overflow-x: auto;
  }

  .listing-board-head,
  .listing-row {
    min-width: 920px;
  }

  .property-rich {
    grid-template-columns: 1fr;
  }

  .listing-image {
    min-height: 180px;
  }

  .timeline-item::before {
    display: none;
  }

  .login-layout {
    justify-content: center;
    width: 100%;
    padding: 22px 14px;
  }

  .login-card {
    width: 100%;
    padding: 22px 16px;
    border-radius: 16px;
  }

  .login-form {
    margin-top: 14px;
  }

  .login-field input,
  .login-submit {
    height: 40px;
  }

  .login-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.system-home-body {
  background: #f5f5f5;
}

.system-home-shell {
  min-height: 100vh;
  padding: 0;
}

.system-home-avatar-wrap {
  position: static;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
}

.system-home-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 800;
  box-shadow: none;
}

.system-home-app {
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  padding: 18px;
  border: none;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.system-home-header,
.system-home-bar,
.system-home-listing,
.system-home-visitor {
  display: flex;
  align-items: center;
}

.system-home-header {
  gap: 18px;
  margin-bottom: 16px;
  padding: 4px 0 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.system-home-brand,
.system-home-stat-card,
.system-home-main,
.system-home-side-card,
.system-home-board {
  background: #ffffff;
}

.system-home-brand {
  min-width: 126px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  color: #111111;
  text-decoration: none;
  font-weight: 700;
  background: #ffffff;
}

.system-home-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 126px;
  height: 48px;
  padding: 6px 10px;
  background: #ffffff;
}

.system-home-brand-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.system-home-greeting {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  max-width: 180px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(47, 116, 234, 0.14);
  border-radius: 14px;
  background: #ffffff;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-home-search {
  flex: 1;
}

.system-home-search .search-dropdown {
  width: 100%;
  min-width: 100%;
  max-width: none;
}

.system-home-search input {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  background: #ffffff;
  color: #111111;
  box-shadow: none;
}

.system-home-search input::placeholder {
  color: #7b7b7b;
}

.system-home-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-home-quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(47, 116, 234, 0.16);
  border-radius: 12px;
  background: #ffffff;
  color: var(--accent-deep);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.system-home-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: none;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--accent);
}

.system-home-lang {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.system-home-lang span {
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
}

.system-home-lang small {
  color: #7a7a7a;
  font-size: 0.58rem;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #ffffff;
  height: 42px;
  white-space: nowrap;
}

.language-switcher button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.language-flag {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 17px;
  height: 12px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.language-flag-cn,
.language-flag-vn {
  background: #de2910;
}

.language-flag-cn::before,
.language-flag-vn::before {
  content: "★";
  position: absolute;
  left: 2px;
  top: -2px;
  color: #ffde00;
  font-size: 8px;
  line-height: 1;
}

.language-flag-vn::before {
  left: 5px;
  top: 0;
  font-size: 8px;
}

.language-flag-us {
  background:
    linear-gradient(
      to bottom,
      #b22234 0 7.7%,
      #ffffff 7.7% 15.4%,
      #b22234 15.4% 23.1%,
      #ffffff 23.1% 30.8%,
      #b22234 30.8% 38.5%,
      #ffffff 38.5% 46.2%,
      #b22234 46.2% 53.9%,
      #ffffff 53.9% 61.6%,
      #b22234 61.6% 69.3%,
      #ffffff 69.3% 77%,
      #b22234 77% 84.7%,
      #ffffff 84.7% 92.4%,
      #b22234 92.4% 100%
    );
}

.language-flag-us::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  background: #3c3b6e;
}

.language-switcher button.active {
  background: var(--accent);
  color: #ffffff;
}

.language-switcher-login {
  align-self: flex-end;
  margin-bottom: 18px;
}

.system-home-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
  padding: 10px 0 2px;
  border: none;
  background: transparent;
}

.system-home-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #ffffff;
  color: #4a4a4a;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: 0.2s ease;
}

.system-home-nav-item.active {
  color: var(--accent-deep);
  border-color: rgba(47, 116, 234, 0.16);
  background: rgba(47, 116, 234, 0.08);
  font-weight: 700;
}

.system-home-nav-item:hover {
  color: var(--accent-deep);
  border-color: rgba(47, 116, 234, 0.14);
}

.system-home-content {
  padding: 2px 0 0;
}

.system-home-bar {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  color: #8c8c8c;
  font-size: 0.72rem;
}

.system-home-bar p,
.system-home-bar a {
  margin: 0;
}

.system-home-bar-actions {
  display: flex;
  gap: 10px;
}

.system-home-bar a {
  min-width: 160px;
  padding: 8px 12px;
  border: 1px solid rgba(47, 116, 234, 0.16);
  border-radius: 12px;
  background: #ffffff;
  color: var(--accent-deep);
  text-align: center;
  text-decoration: none;
}

.system-home-stats,
.system-home-grid {
  display: grid;
  gap: 18px;
}

.system-home-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.system-home-stat-card {
  padding: 20px 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  color: #111111;
  text-align: left;
  font-size: 0.82rem;
  background: #ffffff;
}

.system-home-stat-card span,
.system-home-stat-card strong,
.system-home-stat-card em {
  display: block;
}

.system-home-stat-card span {
  color: #6d6d6d;
}

.system-home-stat-card strong {
  margin-top: 10px;
  font-size: 1.5rem;
}

.system-home-stat-card em {
  margin-top: 6px;
  color: #7b7b7b;
  font-style: normal;
  font-size: 0.72rem;
}

.system-home-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.listing-center-stats {
  margin-bottom: 18px;
}

.listing-center-panel {
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.04);
}

.listing-center-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.system-home-form-stack {
  margin-top: 18px;
}

.agent-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.9fr);
  gap: 18px;
  margin-bottom: 18px;
}

.agent-hero-main,
.agent-hero-side,
.agent-listing-card,
.agent-company-box,
.agent-message-list article {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.04);
}

.agent-hero-main {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
}

.agent-avatar {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(47, 116, 234, 0.14), rgba(47, 116, 234, 0.28));
  color: var(--accent-deep);
  font-size: 2rem;
  font-weight: 800;
}

.agent-hero-copy h1,
.agent-company-box h4,
.agent-listing-content strong {
  margin: 0;
}

.agent-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.agent-title-row h1 {
  font-size: 2rem;
}

.agent-subtitle {
  margin: 10px 0 0;
  color: #666666;
}

.agent-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.agent-meta-list span,
.agent-company-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(47, 116, 234, 0.14);
  border-radius: 12px;
  background: rgba(47, 116, 234, 0.06);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

.agent-contact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.agent-contact-strip article,
.agent-side-card {
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  background: #fbfbfb;
}

.agent-contact-strip span,
.agent-contact-strip strong,
.agent-side-card span,
.agent-side-card strong,
.agent-side-card p,
.agent-listing-content p,
.agent-listing-content em,
.agent-message-list strong,
.agent-message-list span,
.agent-message-list p {
  display: block;
  margin: 0;
}

.agent-contact-strip span,
.agent-side-card span,
.agent-message-list span {
  color: #7a7a7a;
  font-size: 0.76rem;
}

.agent-contact-strip strong,
.agent-side-card strong {
  margin-top: 8px;
  font-size: 1rem;
}

.agent-hero-side {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.agent-side-card p {
  margin-top: 8px;
  color: #666666;
  font-size: 0.82rem;
  line-height: 1.7;
}

.agent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.agent-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.agent-listing-card {
  overflow: hidden;
}

.agent-listing-cover {
  height: 148px;
  background:
    linear-gradient(135deg, rgba(47, 116, 234, 0.08), rgba(0, 0, 0, 0.02)),
    #f3f5f8;
}

.agent-listing-content {
  padding: 16px;
}

.agent-listing-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-listing-content p {
  margin-top: 10px;
  color: #666666;
  line-height: 1.7;
}

.agent-listing-content em {
  margin-top: 10px;
  color: #ff5a5f;
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 800;
}

.agent-company-box {
  margin-top: 18px;
  padding: 20px;
}

.agent-company-box p {
  margin: 12px 0 0;
  color: #555555;
  line-height: 1.9;
}

.agent-company-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.agent-message-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.agent-message-list article {
  padding: 16px;
}

.agent-message-list span {
  margin-top: 6px;
}

.agent-message-list p {
  margin-top: 10px;
  color: #555555;
  line-height: 1.8;
}

.system-home-action-card {
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #ffffff;
  color: #111111;
  text-decoration: none;
}

.system-home-action-card span,
.system-home-action-card strong,
.system-home-action-card p {
  display: block;
  margin: 0;
}

.system-home-action-card span {
  color: #7a7a7a;
  font-size: 0.74rem;
}

.system-home-action-card strong {
  margin-top: 10px;
  font-size: 1rem;
}

.system-home-action-card p {
  margin-top: 8px;
  color: #5f5f5f;
  font-size: 0.74rem;
  line-height: 1.6;
}

.system-home-grid {
  grid-template-columns: minmax(0, 1.7fr) 300px;
}

.system-home-main,
.system-home-side-card {
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  background: #ffffff;
}

.system-home-panel-head {
  margin-bottom: 14px;
}

.system-home-panel-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.system-home-panel-head h3 {
  margin: 0;
  color: #6b6b6b;
  font-size: 0.78rem;
  font-weight: 700;
}

.system-home-panel-head a {
  color: var(--accent-deep);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
}

.system-home-listing {
  align-items: flex-start;
  gap: 18px;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0;
  background: transparent;
}

.system-home-listing-cover {
  width: 112px;
  height: 74px;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(47, 116, 234, 0.08), rgba(0, 0, 0, 0.02)),
    #f3f5f8;
}

.system-home-listing-copy {
  flex: 1;
  min-width: 0;
}

.system-home-listing-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #1a1a1a;
  font-size: 0.78rem;
}

.system-home-rent-tag {
  color: var(--accent-deep);
  font-weight: 800;
}

.system-home-sale-tag {
  color: var(--accent-deep);
}

.system-home-listing-copy p,
.system-home-listing-copy small,
.system-home-listing-side span,
.system-home-visitor p,
.system-home-visitor strong,
.system-home-appointment-list strong,
.system-home-appointment-list p {
  margin: 0;
}

.system-home-listing-copy p {
  margin-top: 8px;
  color: #4d4d4d;
  font-size: 0.72rem;
  line-height: 1.45;
}

.system-home-listing-copy small {
  display: block;
  margin-top: 6px;
  color: #666666;
  font-size: 0.68rem;
}

.system-home-listing-side {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 72px;
}

.system-home-round {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
}

.system-home-listing-side:last-child .system-home-round {
  background: var(--accent-deep);
}

.system-home-round-dark {
  background: var(--accent-deep);
}

.system-home-listing-side span {
  color: #505050;
  font-size: 0.62rem;
  text-align: center;
}

.system-home-main > .system-home-listing:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.system-home-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
  background: transparent;
}

.system-home-mini-card {
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #fbfbfb;
}

.system-home-mini-card span,
.system-home-mini-card strong,
.system-home-mini-card p {
  display: block;
  margin: 0;
}

.system-home-mini-card span {
  color: #7b7b7b;
  font-size: 0.74rem;
}

.system-home-mini-card strong {
  margin-top: 10px;
  color: #111111;
  font-size: 0.96rem;
}

.system-home-mini-card p {
  margin-top: 8px;
  color: #666666;
  font-size: 0.72rem;
  line-height: 1.5;
}

.system-home-side {
  display: grid;
  gap: 18px;
}

.system-home-side-card-large {
  min-height: 220px;
}

.system-home-visitor-list,
.system-home-appointment-list {
  display: grid;
  gap: 16px;
}

.system-home-visitor {
  gap: 12px;
}

.system-home-visitor-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f1f2f4;
  flex: 0 0 auto;
}

.system-home-visitor strong,
.system-home-appointment-list strong {
  display: block;
  color: #111111;
  font-size: 0.72rem;
}

.system-home-visitor p,
.system-home-appointment-list p {
  margin-top: 4px;
  color: #666666;
  font-size: 0.64rem;
}

.demand-center-panel {
  display: grid;
  gap: 18px;
}

.demand-page-body .system-home-stat-card,
.demand-page-body .listing-center-panel,
.demand-page-body .system-home-bar a {
  border-radius: 5px;
}

.demand-page-body .system-home-stat-card,
.demand-page-body .listing-center-panel {
  border-color: #e5e7eb;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.demand-page-body .system-home-stat-card {
  background: #ffffff;
}

.demand-page-body .system-home-bar a {
  border-color: #ece8f2;
  background: #ffffff;
}

.demand-center-list {
  display: grid;
  gap: 14px;
}

.demand-center-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1.55fr) minmax(160px, 0.7fr) minmax(140px, 0.62fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid #ece8f2;
  border-radius: 5px;
  background: #ffffff;
}

.demand-center-avatar,
.demand-profile-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(47, 116, 234, 0.12), rgba(47, 116, 234, 0.24));
  color: var(--accent-deep);
  font-size: 1.2rem;
  font-weight: 800;
}

.demand-center-main,
.demand-center-side,
.demand-center-time {
  min-width: 0;
}

.demand-center-title {
  display: inline-block;
  color: #111111;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.demand-center-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  color: #666666;
  font-size: 0.76rem;
}

.demand-type-chip,
.demand-plain-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 5px;
  font-size: 0.74rem;
  font-weight: 700;
}

.demand-type-chip {
  background: rgba(47, 116, 234, 0.1);
  color: var(--accent-deep);
}

.demand-plain-chip {
  background: #f5f5f5;
  color: #555555;
  border: 1px solid #ece8f2;
}

.demand-center-main p,
.demand-center-side strong,
.demand-center-time strong,
.demand-center-time span,
.demand-detail-grid article span,
.demand-detail-grid article strong,
.demand-section-card p,
.demand-match-list strong,
.demand-match-list p,
.demand-profile-head strong,
.demand-profile-head span,
.demand-profile-meta p {
  margin: 0;
}

.demand-center-main p {
  margin-top: 10px;
  color: #555555;
  font-size: 0.76rem;
  line-height: 1.7;
}

.demand-center-side strong {
  color: #222222;
  font-size: 0.82rem;
}

.demand-viewer-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.demand-viewer-avatars span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5f5f5;
  color: var(--accent-deep);
  font-size: 0.62rem;
  font-weight: 800;
  border: 1px solid #ece8f2;
}

.demand-center-time {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: #666666;
  font-size: 0.74rem;
}

.demand-center-time strong {
  color: #222222;
}

.demand-center-time a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.demand-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 320px;
  gap: 18px;
}

.demand-detail-main {
  display: grid;
  gap: 18px;
}

.demand-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demand-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.demand-detail-grid article,
.demand-section-card,
.demand-profile-card {
  border: 1px solid #ece8f2;
  border-radius: 5px;
  background: #ffffff;
}

.demand-detail-grid article {
  padding: 16px;
  background: #fafafa;
}

.demand-detail-grid article span {
  display: block;
  color: #7a7a7a;
  font-size: 0.72rem;
}

.demand-detail-grid article strong {
  display: block;
  margin-top: 8px;
  color: #111111;
  font-size: 0.88rem;
  line-height: 1.7;
}

.demand-section-card {
  padding: 18px;
}

.demand-section-card p {
  color: #555555;
  font-size: 0.82rem;
  line-height: 1.9;
}

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

.demand-match-list article {
  padding: 14px 16px;
  border: 1px solid #ece8f2;
  border-radius: 5px;
  background: #ffffff;
}

.demand-match-list p {
  margin-top: 8px;
  color: #666666;
  font-size: 0.76rem;
  line-height: 1.7;
}

.demand-detail-side {
  display: grid;
  gap: 18px;
}

.demand-profile-card {
  padding: 18px;
}

.demand-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.demand-profile-head strong {
  display: block;
  color: #111111;
  font-size: 1rem;
}

.demand-profile-head span {
  display: block;
  margin-top: 6px;
  color: #666666;
  font-size: 0.74rem;
}

.demand-profile-meta {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #ece8f2;
  color: #555555;
  font-size: 0.78rem;
}

.demand-side-actions {
  display: grid;
  gap: 10px;
}

@media (max-width: 980px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .system-home-header,
  .system-home-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .system-home-tools {
    justify-content: flex-end;
  }

  .system-home-actions {
    grid-template-columns: 1fr;
  }

  .system-home-grid {
    grid-template-columns: 1fr;
  }

  .system-home-board {
    grid-template-columns: 1fr;
  }

  .agent-hero-card,
  .agent-grid,
  .agent-list-grid,
  .agent-contact-strip,
  .demand-detail-layout,
  .demand-detail-grid {
    grid-template-columns: 1fr;
  }

  .agent-hero-main {
    grid-template-columns: 1fr;
  }

  .agent-avatar {
    width: 88px;
    height: 88px;
  }

  .profile-hero-main,
  .profile-property-list,
  .profile-cert-grid,
  .profile-message-grid {
    grid-template-columns: 1fr;
  }

  .profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    font-size: 2rem;
  }
}

@media (max-width: 760px) {
  .system-home-shell {
    padding: 0;
  }

  .system-home-app {
    padding: 12px;
    min-height: calc(100vh - 24px);
    border-radius: 0;
  }

  .system-home-nav {
    gap: 8px;
    padding-top: 4px;
  }

  .system-home-stats {
    grid-template-columns: 1fr 1fr;
  }

  .system-home-bar-actions {
    flex-direction: column;
  }

  .system-home-listing {
    display: grid;
    grid-template-columns: 1fr;
  }

  .demand-center-item {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .demand-center-time {
    justify-items: start;
  }

.system-home-bar a {
  min-width: 0;
}
}

/* Internal system radius sync: follow parent-site small radius rhythm */
:root {
  --radius-xl: 5px;
  --radius-lg: 5px;
  --radius-md: 5px;
}

.app-shell,
.sidebar,
.panel,
.section-card,
.brand-mark,
.nav-item,
.sidebar-card,
.search-dropdown,
.search-result,
.search-result button,
.metric-card,
.property-card,
.client-row,
.timeline-item,
.deal-board,
.funnel-step,
.system-home-app,
.system-home-search input,
.system-home-quick-link,
.system-home-stat-card,
.system-home-action-card,
.listing-center-panel,
.system-home-main,
.system-home-side-card,
.system-home-listing,
.system-home-listing-cover,
.system-home-mini-card,
.system-home-bar a,
.listing-row,
.listing-row-thumb,
.listing-page-size select,
.chip,
.primary-btn,
.ghost-btn,
.publish-tab,
.publish-panel,
.upload-card,
.detail-card,
.detail-anchor-nav,
.detail-anchor-nav a,
.detail-hero,
.detail-gallery-main,
.detail-gallery-side img,
.detail-metric,
.detail-side-panel,
.table-shell,
.appointment-table,
.agent-hero-main,
.agent-hero-side,
.agent-listing-card,
.agent-company-box,
.agent-message-list article,
.agent-contact-strip article,
.agent-side-card,
.agent-meta-list span,
.agent-company-meta span,
.agent-listing-cover,
.agent-listing-content,
.auth-card,
.auth-tab,
.auth-submit,
.auth-input,
.auth-secondary,
input,
select,
textarea,
button {
  border-radius: 5px;
}

/* Internal system color sync: follow parent detail page gray-white-purple */
.sidebar,
.panel,
.section-card,
.nav-item,
.sidebar-card,
.brand-mark-image,
.system-home-app,
.system-home-stat-card,
.system-home-action-card,
.listing-center-panel,
.system-home-main,
.system-home-side-card,
.system-home-mini-card,
.listing-row,
.listing-row-thumb,
.publish-panel,
.upload-card,
.detail-card,
.auth-card,
.table-shell,
.demand-center-item,
.demand-detail-grid article,
.demand-section-card,
.demand-profile-card {
  border-color: #ece8f2;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.nav-item:hover,
.nav-item.active,
.system-home-nav-item.active,
.chip.active,
.publish-tab.active,
.detail-anchor-nav a.active,
.detail-anchor-nav a:hover {
  background: var(--accent-soft);
  border-color: rgba(47, 116, 234, 0.18);
  color: var(--accent-deep);
}

.system-home-nav-item:hover,
.chip:hover,
.ghost-btn:hover {
  border-color: rgba(47, 116, 234, 0.14);
  color: var(--accent-deep);
}

.primary-btn,
.auth-submit,
.system-home-quick-link,
.system-home-round,
.brand-mark {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.system-home-quick-link {
  color: #ffffff !important;
}

.appointment-table tbody tr:hover,
.listing-row:hover,
.system-home-listing:hover,
.search-result:hover {
  background: rgba(47, 116, 234, 0.03);
}

.agent-meta-list span,
.agent-company-meta span,
.demand-type-chip {
  border-color: rgba(47, 116, 234, 0.14);
  background: rgba(47, 116, 234, 0.08);
  color: var(--accent-deep);
}

/* ===================================================================
   退出登录按钮
   =================================================================== */
.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  margin-left: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.logout-btn:hover {
  background: #fff1f1;
  border-color: #f87171;
  color: #dc2626;
}

.app-alert {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.32);
}

.app-alert-panel {
  width: min(420px, 100%);
  padding: 22px 22px 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.app-alert-title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.app-alert-message {
  min-height: 40px;
  margin: 0;
  color: #273142;
  font-size: 0.92rem;
  line-height: 1.6;
}

.app-alert-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 38px;
  margin-top: 18px;
  float: right;
  border: none;
  border-radius: 10px;
  background: #1f1f1f;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .system-home-app {
    padding: 12px;
  }

  .system-home-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .system-home-greeting {
    width: 100%;
    max-width: none;
    min-width: 0;
    justify-content: flex-start;
    padding: 0 18px;
  }

  .system-home-search {
    width: 100%;
    min-width: 0;
  }

  .system-home-search input {
    height: 48px;
    padding: 0 16px;
    font-size: 0.9rem;
  }

  .system-home-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .system-home-tools > .system-home-quick-link,
  .system-home-avatar-wrap {
    min-width: 0;
  }

  .system-home-quick-link,
  .logout-btn {
    width: 100%;
    height: 42px;
    padding: 0 10px;
    font-size: 0.82rem;
    text-align: center;
    white-space: normal;
    line-height: 1.15;
  }

  .system-home-avatar-wrap {
    display: contents;
  }

  .language-switcher {
    width: 100%;
    justify-content: center;
    height: 42px;
  }

  .language-switcher button {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 6px;
  }

  .system-home-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .system-home-nav-item {
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.86rem;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }

  .system-home-bar {
    gap: 12px;
    padding-top: 8px;
  }

  .system-home-bar-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .system-home-bar a {
    width: 100%;
    min-height: 36px;
    padding: 0 12px;
    justify-content: center;
    text-align: center;
  }

  .system-home-stats {
    gap: 12px;
  }

  .system-home-stat-card {
    min-width: 0;
    padding: 18px 16px;
  }

  .system-home-stat-card span,
  .system-home-stat-card em {
    overflow-wrap: anywhere;
  }

  .system-home-panel-head-row,
  .listing-center-head,
  .publish-head,
  .appointment-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .system-home-panel-head-row a,
  .listing-center-head a,
  .publish-head a {
    width: 100%;
    text-align: center;
  }

  .table-shell {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 14px;
  }

  .appointment-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .appointment-table thead {
    display: none;
  }

  .appointment-table,
  .appointment-table tbody,
  .appointment-table tr,
  .appointment-table td {
    display: block;
    width: 100%;
  }

  .appointment-table tbody {
    display: grid;
    gap: 12px;
  }

  .appointment-table tr {
    padding: 12px;
    border: 1px solid #ece8f2;
    border-radius: 10px;
    background: #ffffff;
  }

  .appointment-table td {
    display: grid;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
    border: none;
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .appointment-table td + td {
    border-top: 1px solid #f1edf5;
  }

  .appointment-table td::before {
    content: attr(data-label);
    color: #6f7482;
    font-weight: 800;
  }

  .appointment-table td:empty {
    display: none;
  }

  .table-footer {
    align-items: center;
    text-align: center;
  }

  .listing-board {
    padding: 14px;
    overflow: visible;
  }

  .listing-board-head {
    display: none;
  }

  .listing-board-list {
    gap: 12px;
  }

  .listing-row {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 0;
    padding: 14px;
    border: 1px solid #ece8f2;
    border-radius: 10px;
  }

  .listing-row-info {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
  }

  .listing-row-thumb {
    width: 88px;
    height: 66px;
  }

  .listing-row-price,
  .listing-row-meta,
  .listing-row-contact,
  .listing-row-date,
  .listing-row-action {
    display: grid;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid #f1edf5;
  }

  .listing-row-price::before,
  .listing-row-meta::before,
  .listing-row-contact::before,
  .listing-row-date::before,
  .listing-row-action::before {
    content: attr(data-label);
    color: #6f7482;
    font-weight: 800;
    font-size: 0.82rem;
  }

  .listing-row-action {
    align-items: stretch;
    justify-content: stretch;
    grid-template-columns: 1fr;
  }

  .listing-row-action::before {
    display: none;
  }

  .listing-row-action .ghost-btn {
    justify-content: center;
    width: 100%;
    min-height: 36px;
  }

  .form-grid,
  .publish-map-panel,
  .upload-grid,
  .detail-grid,
  .detail-hero,
  .detail-gallery,
  .demand-detail-grid,
  .demand-detail-layout {
    grid-template-columns: 1fr !important;
  }

  .demand-center-item {
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .system-home-tools,
  .system-home-nav,
  .system-home-stats {
    grid-template-columns: 1fr 1fr;
  }

  .language-switcher button span:last-child {
    font-size: 0.68rem;
  }
}
