/*
 * 久宏销冠系统 · Premium UI Theme
 * 只覆盖视觉层，不改变现有业务结构与本地数据逻辑。
 */

:root {
  --jh-navy-950: #09162d;
  --jh-navy-900: #102647;
  --jh-navy-800: #17385f;
  --jh-blue-700: #1d4ed8;
  --jh-blue-600: #2563eb;
  --jh-blue-500: #3b82f6;
  --jh-blue-100: #dbeafe;
  --jh-blue-50: #eff6ff;
  --jh-ink: #17233a;
  --jh-ink-soft: #33445f;
  --jh-muted: #6b7b91;
  --jh-muted-light: #8c99aa;
  --jh-canvas: #f4f7fb;
  --jh-surface: #ffffff;
  --jh-surface-soft: #f8fafc;
  --jh-line: #dfe7f2;
  --jh-line-strong: #cbd7e6;
  --jh-green: #138a5b;
  --jh-green-soft: #e8f7f0;
  --jh-amber: #a86712;
  --jh-amber-soft: #fff6df;
  --jh-red: #cf3f4b;
  --jh-red-soft: #fff0f1;
  --jh-purple: #7255b5;
  --jh-purple-soft: #f3efff;
  --jh-radius-card: 12px;
  --jh-radius-control: 8px;
  --jh-shadow-card: 0 1px 2px rgba(15, 35, 65, .035), 0 8px 24px rgba(15, 35, 65, .045);
  --jh-shadow-float: 0 22px 64px rgba(7, 24, 50, .22);

  --ink: var(--jh-ink);
  --muted: var(--jh-muted);
  --line: var(--jh-line);
  --surface: var(--jh-surface);
  --canvas: var(--jh-canvas);
  --blue: var(--jh-blue-600);
  --blue-soft: var(--jh-blue-50);
  --green: var(--jh-green);
  --amber: var(--jh-amber);
}

html { background: var(--jh-canvas); }
body {
  color: var(--jh-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  background: var(--jh-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
}

::selection { color: #fff; background: var(--jh-blue-600); }

/* App shell */
.app-shell { min-height: 100vh; background: var(--jh-canvas); }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 232px;
  height: 100vh;
  padding: 22px 14px 16px;
  color: #dce7f7;
  background: var(--jh-navy-900);
  box-shadow: inset -1px 0 rgba(255,255,255,.05);
}
.brand {
  gap: 11px;
  min-height: 54px;
  padding: 0 8px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #fff;
  background: var(--jh-blue-600);
  box-shadow: 0 7px 18px rgba(37, 99, 235, .28);
  font-size: 18px;
}
.brand strong { color: #fff; font-size: 15px; letter-spacing: .02em; }
.brand small { margin-top: 4px; color: #8fa6c6; font-size: 11px; }
.main-nav { gap: 3px; margin-top: 14px; }
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #b9cae1;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.nav-item span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 9px;
  border-radius: 7px;
  color: #9fb7d8;
  background: rgba(255,255,255,.055);
  font-size: 14px;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.065); transform: translateX(1px); }
.nav-item.active {
  color: #fff;
  background: rgba(67, 125, 210, .26);
  box-shadow: inset 3px 0 var(--jh-blue-500);
}
.nav-item.active span { color: #fff; background: var(--jh-blue-600); }
.sidebar-user {
  gap: 10px;
  padding: 15px 7px 0;
  border-top-color: rgba(255,255,255,.09);
}
.sidebar-user strong { color: #f5f8fc; font-size: 13px; }
.sidebar-user small { color: #8fa6c6; font-size: 11px; }
.avatar { width: 34px; height: 34px; color: #eaf2ff; background: #284d79; font-weight: 800; }
.account-controls { gap: 6px; }
.account-button {
  min-height: 31px;
  border-color: rgba(255,255,255,.1);
  border-radius: 7px;
  color: #cfe0f5;
  background: rgba(255,255,255,.045);
  font-size: 11px;
}
.account-button:hover { color: #fff; background: rgba(255,255,255,.1); }

.workspace {
  width: calc(100% - 232px);
  max-width: none;
  margin: 0;
  padding: 24px clamp(22px, 3vw, 46px) 44px;
}
.site-filing { display: flex; justify-content: center; padding: 26px 12px 2px; }
.site-filing a { color: #8491a3; font-size: 12px; text-decoration: none; }
.site-filing a:hover { color: var(--jh-blue-600); text-decoration: underline; }
.topbar { min-height: 56px; margin-bottom: 15px; }
.topbar h1 { color: var(--jh-ink); font-size: clamp(22px, 2vw, 27px); font-weight: 780; letter-spacing: -.035em; }
.topbar .eyebrow { margin-bottom: 4px; color: var(--jh-blue-600); font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.eyebrow { color: var(--jh-blue-600); font-size: 11px; font-weight: 750; letter-spacing: .06em; }

/* Shared controls */
.primary-button,
.secondary-button,
.text-button,
.property-toolbar-button,
.choice-button {
  min-height: 38px;
  border-radius: var(--jh-radius-control);
  font-size: 13px;
  font-weight: 700;
  transition: border-color .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.primary-button {
  padding: 9px 14px;
  color: #fff;
  background: var(--jh-blue-600);
  box-shadow: 0 5px 14px rgba(37, 99, 235, .17);
}
.primary-button:hover { background: var(--jh-blue-700); transform: translateY(-1px); }
.secondary-button {
  padding: 8px 13px;
  border: 1px solid var(--jh-line-strong);
  color: var(--jh-ink-soft);
  background: #fff;
}
.secondary-button:hover { border-color: #9bb9e7; color: var(--jh-blue-700); background: var(--jh-blue-50); }
.text-button { color: var(--jh-blue-700); }
button:disabled { transform: none !important; }

input,
select,
textarea {
  border-color: var(--jh-line-strong) !important;
  color: var(--jh-ink-soft) !important;
  background: #fff !important;
}
input::placeholder,
textarea::placeholder { color: #a4afbd; }
input:hover,
select:hover,
textarea:hover { border-color: #afc0d5 !important; }
input:focus,
select:focus,
textarea:focus {
  border-color: var(--jh-blue-500) !important;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1) !important;
}

/* Shared surfaces and headings */
.calendar-card,
.task-card,
.dashboard-kpis article,
.dashboard-card,
.dashboard-activity,
.dashboard-client-operations,
.calculator-panel,
.poster-form-card,
.poster-preview-card,
.book-table-wrap,
.client-filter-panel,
.client-table-wrap,
.analytics-upload-card,
.analytics-dashboard-card,
.deals-upload-card,
.deals-list-card,
.deals-flow-card,
.property-card {
  border-color: var(--jh-line);
  border-radius: var(--jh-radius-card);
  background: var(--jh-surface);
  box-shadow: var(--jh-shadow-card);
}
.calculator-intro,
.poster-header,
.book-header,
.clients-header,
.analytics-header,
.deals-header {
  padding-bottom: 13px;
  border-bottom-color: var(--jh-line);
}
.calculator-intro h2,
.poster-header h2,
.book-header h2,
.clients-header h2,
.analytics-header h2,
.deals-header h2 { color: var(--jh-ink); font-size: 21px; font-weight: 760; letter-spacing: -.02em; }
.calculator-intro p:not(.eyebrow),
.poster-header p:not(.eyebrow),
.book-header p:not(.eyebrow),
.clients-header p:not(.eyebrow),
.analytics-header p:not(.eyebrow),
.deals-header p:not(.eyebrow) { color: var(--jh-muted); font-size: 12px; line-height: 1.6; }

/* Management dashboard */
.dashboard-panel { gap: 12px; }
.dashboard-hero,
.dashboard-hero.management {
  position: relative;
  overflow: hidden;
  padding: 19px 22px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--jh-navy-900);
  box-shadow: 0 14px 34px rgba(8, 28, 58, .15);
}
.dashboard-hero::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 4px;
  content: "";
  background: var(--jh-blue-500);
}
.dashboard-hero p,
.dashboard-hero h2,
.dashboard-hero span,
.dashboard-hero.management p,
.dashboard-hero.management h2,
.dashboard-hero.management span { color: inherit; }
.dashboard-hero p { margin-bottom: 5px; color: #8dbcf8; font-size: 11px; letter-spacing: .06em; }
.dashboard-hero h2 { font-size: 21px; font-weight: 760; }
.dashboard-hero span { margin-top: 6px; color: #aebfd6; font-size: 12px; }
.dashboard-hero .dashboard-link.light {
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 8px;
  color: #f5f8ff;
  background: rgba(255,255,255,.08);
}
.dashboard-hero .dashboard-link.light:hover { background: rgba(255,255,255,.14); }
.dashboard-kpis { gap: 10px; }
.dashboard-kpis article { min-height: 78px; padding: 13px 14px; }
.dashboard-kpis article:hover { border-color: #c7d7ea; }
.dashboard-icon { width: 34px; height: 34px; border-radius: 9px; }
.dashboard-icon.blue { color: var(--jh-blue-700); background: var(--jh-blue-50); }
.dashboard-icon.red { color: var(--jh-red); background: var(--jh-red-soft); }
.dashboard-icon.purple { color: var(--jh-purple); background: var(--jh-purple-soft); }
.dashboard-icon.amber { color: var(--jh-amber); background: var(--jh-amber-soft); }
.dashboard-kpis small,
.dashboard-kpis em { color: var(--jh-muted); font-size: 11px; }
.dashboard-kpis strong { color: var(--jh-ink); font-size: 22px; font-weight: 780; }
.dashboard-card,
.dashboard-activity,
.dashboard-client-operations { padding: 15px 17px; }
.dashboard-card h3,
.dashboard-activity-head h3,
.dashboard-client-operations h3 { color: var(--jh-ink); font-size: 16px; font-weight: 750; }
.dashboard-card p,
.dashboard-activity-head p { color: var(--jh-muted); font-size: 11px; }
.dashboard-card-head { margin-bottom: 7px; }
.dashboard-today-actions { border-top: 3px solid var(--jh-blue-600); }
.dashboard-action-list li,
.dashboard-attention li { padding: 9px 0; border-bottom-color: #edf1f6; }
.dashboard-action-list strong,
.dashboard-attention strong { color: var(--jh-ink-soft); font-size: 13px; }
.dashboard-action-list small,
.dashboard-attention small { color: var(--jh-muted-light); font-size: 11px; }
.dashboard-action-list button,
.dashboard-team-followup-toggle {
  min-height: 31px;
  border-color: #cfdef2;
  border-radius: 7px;
  color: var(--jh-blue-700);
  background: var(--jh-blue-50);
}
.dashboard-activity-grid { gap: 8px; margin-top: 10px; }
.dashboard-activity-grid article { padding: 10px 12px; border: 1px solid #edf1f6; border-radius: 9px; background: var(--jh-surface-soft); }
.dashboard-activity-grid strong { color: var(--jh-blue-700); font-size: 23px; }
.dashboard-client-operations { border-color: #ead9b7; background: #fffcf6; }
.dashboard-client-risk-grid { gap: 8px; margin-top: 10px; }
.dashboard-client-risk-grid article { padding: 10px 12px; border-color: #f0e1c6; border-radius: 9px; }
.dashboard-client-risk-grid strong { color: var(--jh-amber); font-size: 23px; }
/* To-dos and calendar */
#todoLegacy .todo-layout { gap: 12px; }
#todoLegacy .calendar-card,
#todoLegacy .task-card { min-height: 390px; padding: 16px; }
.calendar-header h2,
.task-header h2 { color: var(--jh-ink); font-size: 16px; }
.calendar-header button { color: var(--jh-ink-soft); background: #f0f4f9; }
.calendar-day { color: var(--jh-ink-soft); border-radius: 8px; }
.calendar-day.today { color: var(--jh-blue-700); background: var(--jh-blue-50); }
.calendar-day.selected { outline-color: #86aef0; }
.task-row { border-radius: 9px; }
.task-row.property-task { border-color: #d8e5f5; background: #f4f8fe; }
.task-row.client-task { border-color: #e5ddf4; background: #f8f5fc; }

/* Property management */
.property-section,
.property-drawer {
  --property-blue: var(--jh-blue-600);
  --property-blue-dark: var(--jh-blue-700);
  --property-blue-soft: var(--jh-blue-50);
  --property-navy: var(--jh-navy-900);
  --property-border: var(--jh-line);
  --property-muted: var(--jh-muted);
  color: var(--jh-ink);
}
.property-shell { gap: 10px; }
.property-card { border-radius: var(--jh-radius-card); box-shadow: var(--jh-shadow-card); }
.property-page-head { padding: 13px 15px; }
.property-page-head h2 { color: var(--jh-ink); font-size: 19px; font-weight: 760; }
.property-page-head p { color: var(--jh-muted); }
.property-role-badge { color: var(--jh-blue-700); background: var(--jh-blue-50); }
.property-toolbar-button {
  min-height: 36px;
  border-color: var(--jh-line-strong);
  border-radius: 8px;
  color: var(--jh-ink-soft);
  background: #fff;
}
.property-toolbar-button.primary { border-color: var(--jh-blue-600); background: var(--jh-blue-600); }
.property-tabs { gap: 2px; padding: 4px; border-color: var(--jh-line); border-radius: 10px; background: #eaf0f7; }
.property-tab { min-height: 35px; padding: 8px 14px; border-radius: 7px; color: var(--jh-muted); font-size: 12px; }
.property-tab.active { color: var(--jh-blue-700); box-shadow: 0 1px 4px rgba(15,35,65,.08); }
.property-quick-views { padding: 9px 11px; }
.property-quick-view,
.property-more-views > summary { min-height: 32px; border-radius: 7px; }
.property-quick-view.active,
.property-more-views > summary.active,
.property-more-views[open] > summary { border-color: #b7ccef; color: var(--jh-blue-700); background: var(--jh-blue-50); }
.property-filter-card { padding: 11px 12px; }
.property-filter-main,
.property-advanced-grid { gap: 8px; }
.property-filter-main label,
.property-advanced-grid label,
.property-form-grid label,
.property-field { color: var(--jh-muted); font-size: 11px; }
.property-filter-main input,
.property-filter-main select,
.property-advanced-grid input,
.property-advanced-grid select,
.property-form-grid input,
.property-form-grid select,
.property-form-grid textarea,
.property-field input,
.property-field select,
.property-field textarea { min-height: 36px; border-radius: 7px; }
.property-filter-footer { border-top-color: #ebf0f6; }
.property-table-head { padding: 11px 14px; }
.property-table-head h3 { color: var(--jh-ink); font-size: 15px; }
.property-table { font-size: 12px; }
.property-table th { padding: 9px; color: #5d6d82; background: #f2f5f9; font-size: 11px; font-weight: 750; }
.property-table td { padding: 9px; border-top-color: #ebf0f5; }
.property-table tbody tr:hover { background: #f5f8fc; }
.property-status { border-radius: 6px; }
.property-status.sale { color: #8c6100; background: #fff0bd; }
.property-status.rent { color: #a8343a; background: #ffe8e9; }
.property-status.both { color: #a75506; background: #ffead6; }
.property-status.done { color: #0f744c; background: #e1f6ec; }
.property-status.unknown { color: #667386; background: #edf1f5; }
.property-status.invalid { color: #fff; background: #3d4655; }
.property-row-actions button { border-radius: 6px; }
.property-drawer-backdrop { background: rgba(8, 24, 48, .55); backdrop-filter: blur(4px); }
.property-drawer {
  width: min(1240px, calc(100vw - 56px));
  height: min(820px, calc(100vh - 48px));
  border-color: var(--jh-line-strong);
  border-radius: 15px;
  background: var(--jh-canvas);
  box-shadow: var(--jh-shadow-float);
}
.property-drawer-head { padding: 12px 16px; border-bottom-color: var(--jh-line); background: #fff; }
.property-drawer-head h2 { color: var(--jh-ink); font-size: 19px; }
.property-drawer-body { gap: 8px; padding: 9px; }
.property-detail-card { padding: 11px; border-color: var(--jh-line); border-radius: 10px; }
.property-overview-card { min-height: 205px; }
.property-compact-cell { min-height: 55px; padding: 8px 10px; }
.property-compact-cell span,
.property-status-cell > span { color: var(--jh-muted-light); font-size: 10px; }
.property-compact-cell strong { color: var(--jh-ink-soft); font-size: 12px; }
.property-action-grid button { min-height: 51px; color: var(--jh-ink-soft); }
.property-action-grid button:hover { color: var(--jh-blue-700); background: var(--jh-blue-50); }

.property-primary-actions.property-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e5edf6;
  background: #f7faff;
}
.property-primary-actions.property-action-grid button {
  position: relative;
  justify-content: flex-start;
  min-height: 46px;
  padding: 9px 22px 9px 10px;
  border: 1px solid #bacfe7;
  border-bottom: 3px solid #b4c9e2;
  border-radius: 9px;
  color: #244a70;
  background: #fff;
  box-shadow: 0 2px 4px #1a487513;
  cursor: pointer;
}
.property-primary-actions.property-action-grid button::after { content: '›'; position: absolute; right: 9px; color: #5581ac; font-size: 19px; }
.property-primary-actions.property-action-grid button:hover { border-color: #4e90d5; background: #eef6ff; }
.property-primary-actions.property-action-grid button:focus-visible { outline: 3px solid #88baff; outline-offset: 2px; }
.property-primary-actions.property-action-grid button:active { box-shadow: none; transform: translateY(1px); }
.property-primary-actions.property-action-grid button.primary { color: #fff; border-color: #2363ae; background: #2c73c4; }
.property-primary-actions.property-action-grid button.primary::after { color: #fff; }
.property-page-size { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; color: #637995; font-size: 12px; white-space: nowrap; }
.property-page-size select { width: auto; min-height: 32px; padding: 3px 6px; border: 1px solid #cbd8e9; border-radius: 7px; background: #fff; color: #264c76; }
@media (min-width: 571px) {
  .property-table .property-card-address { white-space: nowrap; }
  .property-table .property-card-address > strong { display: inline; margin-right: 8px; font-size: 12px; }
  .property-table .property-card-address > .property-address-desktop { display: inline; font-size: 11px; color: #536c87; }
}
@media (min-width: 1100px) {
  .property-primary-actions.property-action-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 570px) {
  .property-primary-actions.property-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px; }
  .property-pagination { flex-wrap: wrap; }
}
.property-owner-card,
.property-history-card,
.property-follow-workbench { border-radius: 10px; }
.property-phone-chip { border-radius: 7px; }
.property-modal-card { border-radius: 12px; box-shadow: var(--jh-shadow-float); }

/* Client management */
.clients-header { margin-bottom: 12px; }
.client-stats { gap: 8px; }
.client-stat { padding: 11px 12px; border-color: var(--jh-line); border-radius: 9px; background: #fff; box-shadow: var(--jh-shadow-card); }
.client-stat strong { color: var(--jh-ink); font-size: 21px; }
.client-filter-panel { margin-bottom: 11px; padding: 11px 12px; }
.client-filter-head { margin-bottom: 9px; }
.client-search-field { color: var(--jh-muted); }
.client-search-field input { min-height: 36px; border-radius: 7px; background: #fff; }
.client-table { font-size: 12px; }
.client-table th { color: #5d6d82; background: #f2f5f9; font-size: 11px; font-weight: 750; }
.client-table td { border-color: #ebf0f5; }
.client-status { border-radius: 6px; }
#clientDialog,
#clientDetailDialog,
#clientPoolDialog { border-radius: 14px; box-shadow: var(--jh-shadow-float); }
#clientDetailDialog .client-detail { padding: 0; background: #f3f6fa; }
#clientDetailDialog .client-profile { gap: 8px; padding: 11px; border-color: var(--jh-line); border-radius: 9px; }
.client-profile-item { border-radius: 7px; background: #f6f8fb; }
.client-follow-templates button { border-radius: 7px; }

/* Calculators, marketing, books and reports */
.calculator-tabs { background: #eaf0f7; }
.calculator-tab.active { color: var(--jh-blue-700); }
.calculator-panel,
.poster-form-card,
.poster-preview-card { padding: 15px; }
.loan-type,
.choice-button,
.poster-style-button { border-radius: 7px; }
.result-card { background: var(--jh-navy-800); box-shadow: none; }
.tax-result-card { background: #1d4776; }
.warm-tip { border-color: #ead9b7; background: #fffaf0; }
.poster-preview-card { background: #f8fafc; }
.poster-upload-card,
.poster-result-actions,
.poster-copy-section,
.poster-copy-item { border-color: var(--jh-line); border-radius: 9px; }
.poster-workflow li { border-radius: 7px; }
.book-search { border-color: var(--jh-line-strong); background: #fff; }
.book-table th { color: #5d6d82; background: #f2f5f9; font-size: 11px; }
.book-table td { border-color: #ebf0f5; font-size: 12px; }
.book-table tr:hover td { background: #f5f8fc; }
#bookDialog { border-radius: 14px; box-shadow: var(--jh-shadow-float); }
.book-highlight-box,
.book-stat-item,
.book-text-block { border-radius: 8px; }
.analytics-badge,
.deals-role-badge { color: var(--jh-blue-700); background: var(--jh-blue-50); }
.analytics-upload-card,
.analytics-dashboard-card,
.deals-upload-card,
.deals-list-card { padding: 15px; }
.analytics-card-heading h3,
.analytics-dashboard-heading h3,
.deals-card-heading h3,
.deals-list-heading h3 { color: var(--jh-ink); font-size: 16px; }
.analytics-smart-drop,
.deals-drop { border-color: #9db9df; border-radius: 9px; background: #f7faff; }
.analytics-smart-drop:hover,
.analytics-smart-drop:focus-visible,
.analytics-smart-drop.dragging,
.deals-drop:hover,
.deals-drop:focus-visible,
.deals-drop.dragging { border-color: var(--jh-blue-600); background: var(--jh-blue-50); }
.analytics-smart-icon,
.deals-drop-icon { border-radius: 9px; background: var(--jh-blue-600); }
.analytics-recognition-grid article,
.deals-summary article { border-color: var(--jh-line); border-radius: 8px; background: #fff; }
.analytics-preview-wrap,
.deals-table-wrap { border-color: var(--jh-line); border-radius: 8px; background: var(--jh-surface-soft); }
.deals-table th { color: #5d6d82; background: #f2f5f9; }
.deals-table td { border-color: #ebf0f5; }

/* Dialogs and team accounts */
dialog { border: 1px solid var(--jh-line); border-radius: 14px; box-shadow: var(--jh-shadow-float); }
dialog::backdrop { background: rgba(8, 24, 48, .54); backdrop-filter: blur(4px); }
.dialog-header { margin-bottom: 14px; }
.dialog-header h2 { color: var(--jh-ink); font-size: 19px; font-weight: 760; }
.close-button,
.client-detail-close,
.property-close {
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--jh-muted);
  background: #eef2f7;
}
.close-button:hover,
.client-detail-close:hover,
.property-close:hover { color: var(--jh-ink); background: #e2e8f0; }
#teamAccountsDialog {
  width: min(1080px, calc(100vw - 44px));
  height: min(760px, calc(100vh - 44px));
  border-radius: 16px;
  box-shadow: var(--jh-shadow-float);
}
.team-dialog-header { padding: 18px 22px 13px; border-bottom-color: var(--jh-line); }
.team-dialog-header h2 { color: var(--jh-ink); }
.team-account-toolbar { padding: 10px 22px; border-bottom-color: var(--jh-line); background: #f7f9fc; }
.team-account-body { grid-template-columns: minmax(0,1fr) 240px; background: #f4f7fb; }
.team-list-panel { padding: 17px 19px; }
.team-side-panel { padding: 17px; border-left-color: var(--jh-line); }
.team-user-row { padding: 11px 13px; border-color: var(--jh-line); border-radius: 9px; box-shadow: none; }
.team-user-name strong { color: var(--jh-ink); font-size: 14px; }
.staff-editor-form { border-radius: 14px; }
.permission-checklist { border-color: var(--jh-line); background: #f8fafc; }

/* Auth */
#authGate { background: var(--jh-navy-950); }
#authGate::before,
#authGate::after {
  position: fixed;
  content: "";
  pointer-events: none;
}
#authGate::before { inset: 0 auto 0 0; width: 6px; background: var(--jh-blue-600); }
#authGate::after { top: 0; right: 0; width: 34%; height: 5px; background: var(--jh-blue-500); }
.auth-card {
  width: min(100%, 392px);
  gap: 12px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0,0,0,.34);
}
.auth-mark { width: 44px; height: 44px; border-radius: 10px; background: var(--jh-blue-600); }
.auth-card h1 { color: var(--jh-navy-900); font-size: 28px; letter-spacing: -.04em; }
.auth-card p { color: var(--jh-muted); }
.auth-card input { min-height: 42px; border-radius: 8px; }
.auth-card .primary-button { min-height: 42px; }

.mobile-account-trigger {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.1);
  font: inherit;
  cursor: pointer;
}
.mobile-account-trigger span { font-size: 15px; font-weight: 850; }
#mobileAccountDialog {
  width: min(430px, 100%);
  max-width: none;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 22px 22px 0 0;
  color: var(--jh-ink);
  background: #fff;
  box-shadow: 0 -18px 60px rgba(5, 24, 52, .22);
}
#mobileAccountDialog::backdrop { background: rgba(7, 22, 43, .5); backdrop-filter: blur(2px); }
.mobile-account-sheet { padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); }
.mobile-account-head,
.mobile-account-identity { display: flex; align-items: center; }
.mobile-account-head { justify-content: space-between; gap: 14px; }
.mobile-account-identity { min-width: 0; gap: 12px; }
.mobile-account-identity > span {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--jh-blue-600);
  font-weight: 850;
}
.mobile-account-identity div { display: grid; min-width: 0; gap: 3px; }
.mobile-account-identity strong { color: var(--jh-ink); font-size: 16px; }
.mobile-account-identity small { overflow: hidden; color: var(--jh-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-account-head .close-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--jh-muted);
  background: var(--jh-surface-soft);
  font-size: 24px;
  cursor: pointer;
}
.mobile-account-state { display: flex; align-items: center; gap: 7px; margin-top: 16px; color: #2e7650; font-size: 12px; font-weight: 750; }
.mobile-account-state i { width: 8px; height: 8px; border-radius: 50%; background: #36a36b; box-shadow: 0 0 0 4px #eaf8f0; }
.mobile-account-actions { display: grid; gap: 9px; margin-top: 16px; }
.mobile-account-actions button {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--jh-line);
  border-radius: 11px;
  color: var(--jh-ink-soft);
  background: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.mobile-account-actions button:active { background: var(--jh-surface-soft); }
.mobile-account-actions button.danger { border-color: #f0cfd2; color: #bd3f4a; background: #fff8f8; }

/* Responsive */
@media (max-width: 1100px) {
  .workspace { padding-inline: 20px; }
  .dashboard-grid.management-grid { grid-template-columns: 1fr; }
  .property-drawer { width: calc(100vw - 34px); }
}

@media (max-width: 850px) {
  .sidebar { width: 74px; padding: 17px 9px; }
  .workspace { width: calc(100% - 74px); padding: 20px 16px 36px; }
  .brand { justify-content: center; padding: 0 0 18px; }
  .nav-item { justify-content: center; padding: 8px; font-size: 0; }
  .nav-item span { margin: 0; font-size: 14px; }
  .nav-item.active { box-shadow: inset 0 -3px var(--jh-blue-500); }
  .account-controls { grid-template-columns: 1fr; }
  .account-controls small { display: none; }
  .account-button { min-width: 34px; padding: 7px 3px; font-size: 0; }
  .account-button::after { color: inherit; font-size: 12px; font-weight: 800; }
  #openTeamAccounts::after { content: "人"; }
  #refreshSharedData::after { content: "新"; }
  #logoutButton::after { content: "退"; }
  .property-drawer { width: calc(100vw - 24px); height: calc(100vh - 24px); }
  .property-overview-primary { grid-template-columns: repeat(3, 1fr); }
  .property-overview-secondary { grid-template-columns: 1fr; }
  .property-facts-grid,
  .property-status-panel { border-right: 0; border-bottom: 1px solid var(--jh-line); }
}

@media (max-width: 570px) {
  .app-shell { display: block; }
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 62px;
    padding: 8px 10px;
    flex-direction: row;
  }
  .brand { flex: 0 0 auto; padding: 0 8px 0 0; border: 0; }
  .brand-mark { width: 36px; height: 36px; }
  .main-nav {
    display: flex;
    flex: 1;
    justify-content: flex-start;
    min-width: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-item { flex: 0 0 40px; width: 40px; min-height: 40px; padding: 7px; }
  .nav-item span { width: 27px; height: 27px; }
  .account-controls { display: none; }
  .sidebar-user { display: none; }
  .mobile-account-trigger { display: grid; }
  .workspace { width: 100%; padding: 17px 12px 32px; }
  .topbar { min-height: 48px; margin-bottom: 12px; }
  .topbar h1 { font-size: 21px; }
  .dashboard-hero,
  .dashboard-hero.management { padding: 16px; }
  .dashboard-hero h2 { font-size: 19px; }
  .dashboard-kpis article { min-height: 72px; padding: 11px; }
  .dashboard-card,
  .dashboard-activity,
  .dashboard-client-operations { padding: 13px; }
  .dashboard-activity-grid { grid-template-columns: 1fr; }
  .calendar-card,
  .task-card,
  .calculator-panel,
  .poster-form-card,
  .poster-preview-card { padding: 12px; }
  .property-page-head { align-items: flex-start; padding: 12px; }
  .property-head-badges { justify-content: flex-start; }
  .property-quick-views { overflow-x: auto; }
  .property-drawer { inset: 0; width: 100vw; height: 100dvh; border: 0; border-radius: 0; transform: translateY(3%); }
  .property-drawer.open { transform: none; }
  .property-drawer-head { padding: 11px 12px; }
  .property-drawer-body { padding: 7px; }
  .property-overview-primary { grid-template-columns: 1fr 1fr; }
  .property-facts-grid { grid-template-columns: 1fr 1fr; }
  .property-action-grid button { min-height: 48px; }
  #clientDialog,
  #clientDetailDialog,
  #clientPoolDialog,
  #bookDialog,
  #teamAccountsDialog,
  #editTeamUserDialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
  #teamAccountsDialog { height: 100dvh; }
  .team-account-body { grid-template-columns: 1fr; }
  .primary-button,
  .secondary-button,
  .property-toolbar-button,
  .choice-button { min-height: 42px; }
  input,
  select { min-height: 42px; }
}

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

/* 2026-08-30 · 房源信息层级与全局呼吸感 */
.workspace { padding-top: 28px; padding-bottom: 52px; }
.topbar { margin-bottom: 19px; }
.dashboard-panel,
.property-shell { gap: 16px; }
.clients-header,
.analytics-header,
.deals-header,
.v5-report-header { margin-bottom: 18px; }

.property-quick-views {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 11px 13px;
  border-color: #dce5f0;
  background: linear-gradient(135deg, #f8fbff 0%, #fff 62%);
}
.property-quick-intro { display: grid; gap: 2px; min-width: 82px; }
.property-quick-intro span { color: var(--jh-ink); font-size: 12px; font-weight: 800; }
.property-quick-intro small { color: var(--jh-muted-light); font-size: 9px; white-space: nowrap; }
.property-quick-list { display: grid; grid-template-columns: repeat(5, minmax(88px, 1fr)); gap: 7px; min-width: 0; }
.property-quick-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #536780;
  background: #f0f4f9;
  box-shadow: inset 0 0 0 1px rgba(203, 216, 232, .45);
  text-align: left;
}
.property-quick-view > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.property-quick-view .count {
  display: grid;
  flex: none;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin: 0;
  padding: 0 6px;
  border-radius: 7px;
  color: #56708f;
  background: #fff;
  font-size: 11px;
  font-weight: 850;
  opacity: 1;
}
.property-quick-view:hover { border-color: #c7d8ec; color: var(--jh-blue-700); background: #f7faff; }
.property-quick-view.active {
  border-color: #2f6fd4;
  color: #fff;
  background: linear-gradient(135deg, #245fb9, #357bd6);
  box-shadow: 0 7px 16px rgba(36, 95, 185, .18);
}
.property-quick-view.active .count { color: #215caa; background: rgba(255,255,255,.94); }
.property-quick-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.property-quick-tools .property-more-views { margin-left: 0; }
.property-quick-tools .property-more-views > summary,
.property-quick-tools .property-sandbox-shortcut { min-height: 40px; border-radius: 9px; }

.property-filter-main { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.property-filter-card { padding: 13px 14px; }
.property-filter-footer { margin-top: 11px; padding-top: 10px; }

.property-drawer {
  width: min(1120px, calc(100vw - 72px));
  height: min(780px, calc(100vh - 64px));
}
.property-drawer-head { padding: 13px 17px; }
.property-drawer-body { gap: 11px; padding: 12px; }
.property-overview-card.property-overview-redesign {
  display: block !important;
  min-height: 0 !important;
  padding: 0;
  overflow: hidden;
}
.property-overview-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--jh-line);
  background: linear-gradient(135deg, #f6faff 0%, #fff 68%);
}
.property-overview-identity > div { min-width: 0; }
.property-overview-identity > div > span { color: var(--jh-blue-600); font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.property-overview-identity h3 { margin: 4px 0 2px; color: var(--jh-ink); font-size: 17px; line-height: 1.35; }
.property-overview-identity p { margin: 0; color: var(--jh-muted-light); font-size: 10px; }
.property-overview-identity > .property-status { flex: none; padding: 6px 10px; }
.property-key-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.property-key-metrics > div { min-width: 0; padding: 12px 14px; border-bottom: 1px solid var(--jh-line); }
.property-key-metrics > div + div { border-left: 1px solid var(--jh-line); }
.property-key-metrics span,
.property-detail-strip span { display: block; color: var(--jh-muted-light); font-size: 10px; font-weight: 700; }
.property-key-metrics strong { display: block; margin-top: 5px; color: var(--jh-ink-soft); font-size: 14px; line-height: 1.35; }
.property-key-metrics .price strong { color: var(--jh-red); font-size: 17px; }
.property-detail-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fafbfd; }
.property-detail-strip > div { min-width: 0; padding: 10px 14px; }
.property-detail-strip > div + div { border-left: 1px solid var(--jh-line); }
.property-detail-strip strong { display: block; margin-top: 4px; overflow: hidden; color: var(--jh-ink-soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.property-primary-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--jh-line);
  background: var(--jh-line);
}
.property-primary-actions button { min-height: 48px; padding: 7px 8px; }
.property-primary-actions button span { width: auto; min-width: 28px; padding: 0 5px; font-size: 9px; }
.property-primary-actions button.primary { color: #fff; background: var(--jh-blue-600); }
.property-primary-actions button.primary span { color: var(--jh-blue-700); background: #fff; }
.property-primary-actions button.primary:hover { color: #fff; background: var(--jh-blue-700); }
.property-complete-info-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 11px;
}
.property-complete-info-card > header h3 { margin: 0; color: var(--jh-ink); font-size: 15px; }
.property-complete-info-card > header p { margin: 3px 0 0; color: var(--jh-muted-light); font-size: 10px; }
.property-info-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.property-info-groups article { min-width: 0; padding: 11px; border: 1px solid var(--jh-line); border-radius: 9px; background: #fbfcfe; }
.property-info-groups h4 { margin: 0 0 9px; color: var(--jh-blue-700); font-size: 12px; }
.property-info-groups dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; }
.property-info-groups dl > div { min-width: 0; padding: 7px 8px; border-top: 1px solid #edf1f5; }
.property-info-groups dl > div:nth-child(-n+2) { border-top: 0; }
.property-info-groups dl > div:nth-child(even) { border-left: 1px solid #edf1f5; }
.property-info-groups dl > .wide { grid-column: 1 / -1; border-left: 0; }
.property-info-groups dt { color: var(--jh-muted-light); font-size: 9px; font-weight: 700; }
.property-info-groups dd { margin: 3px 0 0; color: var(--jh-ink-soft); font-size: 11px; font-weight: 750; line-height: 1.45; overflow-wrap: anywhere; }
.property-owner-strip,
.property-follow-workbench,
.property-history-card { padding: 13px 14px; }

@media (max-width: 1280px) {
  .property-quick-views { grid-template-columns: auto minmax(0, 1fr); }
  .property-quick-tools { grid-column: 2; }
  .property-filter-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .workspace { padding-top: 22px; }
  .property-quick-views { display: block; }
  .property-quick-intro { display: none; }
  .property-quick-list { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
  .property-quick-tools { margin-top: 8px; justify-content: flex-start; }
  .property-filter-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .property-drawer { width: calc(100vw - 24px); height: calc(100vh - 24px); }
  .property-key-metrics { grid-template-columns: 1fr 1fr; }
  .property-key-metrics > div:nth-child(3) { border-left: 0; }
  .property-detail-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .property-detail-strip > div:nth-child(4) { border-left: 0; border-top: 1px solid var(--jh-line); }
  .property-detail-strip > div:nth-child(5) { border-top: 1px solid var(--jh-line); }
  .property-primary-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .property-info-groups { grid-template-columns: 1fr; }
}

@media (max-width: 570px) {
  .workspace { padding-top: 18px; padding-bottom: 38px; }
  .property-filter-main { grid-template-columns: 1fr 1fr; }
  .property-overview-card.property-overview-redesign { min-height: 0 !important; }
  .property-overview-identity { align-items: flex-start; padding: 12px; }
  .property-overview-identity h3 { font-size: 15px; }
  .property-key-metrics { grid-template-columns: 1fr 1fr; }
  .property-key-metrics > div { padding: 10px 11px; }
  .property-detail-strip { grid-template-columns: 1fr 1fr; }
  .property-detail-strip > div { padding: 9px 11px; border-top: 1px solid var(--jh-line); }
  .property-detail-strip > div:nth-child(odd) { border-left: 0; }
  .property-primary-actions { grid-template-columns: 1fr 1fr; }
  .property-primary-actions button { min-height: 46px; }
  .property-complete-info-card > header { align-items: flex-start; flex-direction: column; }
  .property-complete-info-card > header button { width: 100%; }
}

/* 2026-08-30 · 手机底部导航与紧凑列表 */
.mobile-nav-more { display: none; }

.staff-password-field small,
.staff-password-note {
  color: var(--jh-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.staff-password-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--jh-line);
  border-radius: 10px;
  background: var(--jh-blue-50);
}

@media (max-width: 570px) {
  .app-shell { min-height: 100dvh; }
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    z-index: 100;
    width: 100%;
    height: calc(66px + env(safe-area-inset-bottom));
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid #dfe6ef;
    color: var(--jh-muted);
    background: rgba(255,255,255,.97);
    box-shadow: 0 -8px 30px rgba(12, 37, 70, .1);
    backdrop-filter: blur(18px);
    transition: height .2s ease;
  }
  body.mobile-nav-expanded .sidebar { height: calc(124px + env(safe-area-inset-bottom)); }
  .sidebar .brand,
  .sidebar .sidebar-user,
  .sidebar .account-controls { display: none; }
  .main-nav {
    display: grid;
    grid-template-columns: repeat(30, minmax(0, 1fr));
    grid-template-rows: 56px;
    gap: 2px 0;
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow: visible;
  }
  .main-nav.mobile-expanded { grid-template-rows: 56px 56px; }
  .nav-item,
  .mobile-nav-more,
  .mobile-account-trigger {
    position: relative;
    display: flex;
    width: auto;
    min-width: 0;
    min-height: 56px;
    height: 56px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    border: 0;
    border-radius: 10px;
    color: #7c8999;
    background: transparent;
    box-shadow: none;
    font-size: 0;
    text-align: center;
    transform: none;
  }
  .nav-item::after,
  .mobile-nav-more::after,
  .mobile-account-trigger::after {
    content: attr(data-mobile-label);
    color: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }
  .nav-item span,
  .mobile-nav-more span,
  .mobile-account-trigger span {
    display: grid;
    width: 27px;
    height: 27px;
    margin: 0;
    place-items: center;
    border-radius: 8px;
    color: #7d8b9c;
    background: transparent;
    font-size: 16px;
    font-weight: 800;
  }
  .nav-item.active { color: var(--jh-blue-600); background: transparent; box-shadow: none; }
  .nav-item.active span { color: var(--jh-blue-600); background: var(--jh-blue-50); }
  .nav-item[hidden] { display: none !important; }
  .nav-item[data-section="todos"] { grid-column: 1 / span 6; grid-row: 1; }
  .nav-item[data-section="properties"] { grid-column: 7 / span 6; grid-row: 1; }
  .nav-item[data-section="clients"] { grid-column: 13 / span 6; grid-row: 1; }
  .mobile-account-trigger { grid-column: 19 / span 6; grid-row: 1; }
  .mobile-nav-more { grid-column: 25 / span 6; grid-row: 1; cursor: pointer; }
  .mobile-nav-more span { transition: transform .2s ease; }
  .main-nav.mobile-expanded .mobile-nav-more span { transform: rotate(180deg); }
  .nav-item.mobile-secondary { display: none; }
  .main-nav.mobile-expanded .nav-item.mobile-secondary { display: flex; grid-row: 2; }
  .nav-item[data-section="calculator"] { grid-column: 1 / span 5; }
  .nav-item[data-section="reports"] { grid-column: 6 / span 5; }
  .nav-item[data-section="poster"] { grid-column: 11 / span 5; }
  .nav-item[data-section="book"] { grid-column: 16 / span 5; }
  .nav-item[data-section="analytics"] { grid-column: 21 / span 5; }
  .nav-item[data-section="deals"] { grid-column: 26 / span 5; }
  .workspace {
    width: 100%;
    padding: 13px 10px calc(82px + env(safe-area-inset-bottom));
    transition: padding-bottom .2s ease;
  }
  body.mobile-nav-expanded .workspace { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
  body:has(#propertySection:not([hidden])) .topbar,
  body:has(#clientsSection:not([hidden])) .topbar { display: none; }

  .property-shell { gap: 7px; }
  .property-shell,
  #propertyContent,
  .property-list-panel,
  .property-list-panel > .property-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .property-page-head { display: flex; align-items: center; padding: 8px 10px; }
  .property-page-head > div:first-child p { display: none; }
  .property-page-head h2 { font-size: 18px; }
  .property-head-badges { flex-wrap: nowrap; justify-content: flex-end; margin-left: auto; }
  #propertyQuotaBadge { display: none; }
  .property-toolbar-button,
  .property-manage-menu > summary { min-height: 36px; padding: 7px 9px; }
  .property-quick-views { padding: 6px; }
  .property-quick-list { gap: 5px; padding: 0; }
  .property-quick-list { width: 100%; min-width: 0; max-width: 100%; }
  .property-quick-view { min-height: 36px; padding: 6px 8px; }
  .property-quick-tools { margin-top: 5px; }
  .property-quick-tools .property-more-views > summary,
  .property-quick-tools .property-sandbox-shortcut { min-height: 34px; padding-block: 6px; }
  .property-filter-card { padding: 7px 8px; }
  .property-filter-main {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .property-filter-main::-webkit-scrollbar { display: none; }
  .property-filter-main label { flex: 0 0 116px; gap: 3px; font-size: 9px; scroll-snap-align: start; }
  .property-filter-main input,
  .property-filter-main select { min-height: 36px; padding: 6px 7px; font-size: 12px; }
  .property-filter-footer { min-height: 34px; margin-top: 5px; padding-top: 5px; flex-direction: row; align-items: center; }
  .property-filter-actions { width: auto; flex-wrap: nowrap; justify-content: flex-end; }
  .property-filter-summary { width: auto; margin: 0; font-size: 10px; white-space: nowrap; }
  .property-table-head { padding: 9px 10px; }
  .property-table-head p { display: none; }
  .property-table { padding: 7px; }

  .clients-header { display: grid; gap: 7px; margin-bottom: 7px; padding-bottom: 7px; }
  .clients-header h2 { font-size: 18px; }
  .clients-header p:not(.eyebrow) { display: none; }
  .clients-actions { width: 100%; flex-wrap: nowrap; justify-content: flex-start; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .clients-actions::-webkit-scrollbar { display: none; }
  .clients-actions > * { flex: 0 0 auto; min-height: 36px; padding: 7px 9px; font-size: 11px; }
  #openClientDialog { order: -1; }
  .client-admin-bar { flex-wrap: nowrap; margin-bottom: 7px; padding: 6px 8px; overflow-x: auto; }
  .client-admin-bar label { display: flex; flex: 0 0 auto; }
  .client-admin-bar select { width: 120px; min-height: 34px; }
  .client-admin-bar > span { display: none; }
  .client-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-bottom: 7px; }
  .client-stat { min-height: 58px; padding: 7px 5px; }
  .client-stat span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .client-stat strong { margin-top: 3px; font-size: 17px; }
  .client-filter-panel { margin-bottom: 7px; padding: 7px 8px; }
  .client-filter-head { display: flex; align-items: end; gap: 7px; margin-bottom: 6px; }
  .client-search-field { min-width: 0; max-width: none; gap: 2px; font-size: 9px; }
  .client-search-field input { min-height: 36px; padding: 6px 8px; font-size: 12px; }
  .client-filter-head > span { flex: 0 0 auto; padding-bottom: 8px; font-size: 9px; }
  .client-filter-panel .client-filters {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .client-filter-panel .client-filters::-webkit-scrollbar { display: none; }
  .client-filter-panel .client-filters label { flex: 0 0 112px; gap: 3px; font-size: 9px; }
  .client-filter-panel .client-filters select { min-height: 34px; padding: 5px 7px; font-size: 11px; }
  .client-table-wrap { overflow: visible; border: 0; background: transparent; }
  .client-table { display: block; min-width: 0; }
  .client-table thead { display: none; }
  .client-table tbody { display: grid; gap: 7px; }
  .client-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 9px; padding: 10px; border: 1px solid var(--jh-line); border-radius: 11px; background: #fff; box-shadow: var(--jh-shadow-card); }
  .client-table td { display: grid; gap: 2px; min-width: 0; padding: 0; border: 0; font-size: 11px; }
  .client-table td::before { content: attr(data-label); color: var(--jh-muted-light); font-size: 8px; font-weight: 750; }
  .client-table td:first-child { grid-column: 1 / -1; }
  .client-table td:first-child[hidden] { display: none; }
  .client-table td span,
  .client-table td small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .client-table .client-status { width: max-content; }
  .client-footnote { display: none; }
}

/* 2026-08-30 · 紧凑房源详情与连续浏览 */
.property-drawer { height: min(820px, calc(100vh - 36px)); }
.property-drawer-head { padding: 9px 12px; }
.property-drawer-head h2 { font-size: 17px; }
.property-drawer-head p { font-size: 10px; }
.property-drawer-head-actions { flex-wrap: nowrap; gap: 7px; }
.property-drawer-navigation {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px;
  border: 1px solid var(--jh-line);
  border-radius: 9px;
  background: #f7f9fc;
}
.property-drawer-navigation > span { padding: 0 5px; color: var(--jh-muted-light); font-size: 10px; font-weight: 700; white-space: nowrap; }
.property-drawer-navigation button { min-height: 30px; padding: 5px 8px; border: 1px solid #d8e2ee; border-radius: 7px; color: #315778; background: #fff; font-size: 11px; font-weight: 750; white-space: nowrap; }
.property-drawer-navigation button:hover:not(:disabled) { color: var(--jh-blue-600); border-color: #9fc2f2; background: var(--jh-blue-50); }
.property-drawer-navigation button:disabled { color: #abb4c0; background: #f1f3f6; cursor: not-allowed; }
.property-drawer-body { display: flex; flex-direction: column; gap: 7px; padding: 8px; }
.property-detail-card { flex: 0 0 auto; padding: 9px 10px; border-radius: 10px; }
.property-detail-card > header { margin-bottom: 7px; }
.property-overview-identity { padding: 9px 12px 8px; }
.property-overview-identity h3 { margin-top: 2px; font-size: 15px; }
.property-key-metrics > div { padding: 8px 10px; }
.property-key-metrics strong { margin-top: 3px; font-size: 13px; }
.property-key-metrics .price strong { font-size: 15px; }
.property-detail-strip > div { padding: 7px 10px; }
.property-detail-strip strong { margin-top: 2px; font-size: 11px; }
.property-follow-snapshot {
  display: grid;
  grid-template-columns: .75fr minmax(0, 2.8fr) 1fr;
  align-items: center;
  border-top: 1px solid var(--jh-line);
  background: #f5f9ff;
}
.property-follow-snapshot > div { min-width: 0; padding: 8px 10px; }
.property-follow-snapshot > div + div { border-left: 1px solid #dfe9f6; }
.property-follow-snapshot span { display: block; color: var(--jh-blue-600); font-size: 9px; font-weight: 800; }
.property-follow-snapshot strong { display: block; margin-top: 2px; overflow: hidden; color: var(--jh-ink-soft); font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.property-follow-snapshot small { display: block; margin-top: 1px; color: var(--jh-muted-light); font-size: 9px; }
.property-primary-actions button { min-height: 42px; padding: 5px 7px; font-size: 11px; }
.property-follow-workbench > header p { margin: 2px 0 0; color: var(--jh-muted-light); font-size: 10px; }
.property-follow-workbench-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 9px; align-items: start; }
.property-follow-form label { padding: 6px 8px; }
.property-follow-form textarea { min-height: 52px; }
.property-follow-actions button { min-height: 36px; }
.property-current-reminders { margin-top: 7px; padding-top: 7px; }
.property-inline-history { min-width: 0; padding: 8px; border: 1px solid #e0e7f0; border-radius: 9px; background: #fbfcfe; }
.property-inline-history .property-follow-list { max-height: 226px; overflow: auto; padding-right: 2px; }
.property-follow-item,
.property-reminder-item { padding: 8px; }
.property-follow-item p,
.property-reminder-item p { margin-top: 4px; font-size: 11px; line-height: 1.5; }
.property-owner-strip,
.property-follow-workbench,
.property-history-card { padding: 9px 10px; }
.property-complete-info-card > header { margin-bottom: 7px; }
.property-info-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.property-info-groups article { padding: 7px; border-radius: 8px; }
.property-info-groups h4 { margin-bottom: 5px; }
.property-info-groups dl > div { padding: 5px 6px; }
.property-info-groups dd { margin-top: 2px; font-size: 10px; line-height: 1.35; }

@media (max-width: 1050px) {
  .property-info-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .property-follow-workbench-grid { grid-template-columns: 1fr; }
  .property-inline-history .property-follow-list { max-height: 190px; }
}

@media (max-width: 570px) {
  .property-drawer { width: calc(100vw - 12px); height: calc(100dvh - 12px); }
  .property-drawer-head { position: relative; display: block; padding: 8px; }
  .property-drawer-title { padding-right: 38px; }
  .property-drawer-head-actions { justify-content: space-between; margin-top: 7px; padding-right: 38px; }
  .property-drawer-head-actions > .property-status { display: none; }
  .property-drawer-head-actions > .property-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; }
  .property-drawer-navigation { flex: 1 1 auto; justify-content: space-between; }
  .property-drawer-navigation button { min-height: 38px; padding-inline: 10px; }
  .property-drawer-body { padding: 6px; }
  .property-follow-snapshot { grid-template-columns: 1fr 1fr; }
  .property-follow-snapshot-content { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid #dfe9f6; border-left: 0 !important; }
  .property-follow-snapshot > div:nth-child(3) { border-left: 1px solid #dfe9f6; }
  .property-info-groups { grid-template-columns: 1fr; }
}
