/* PropertyMetrics portfolio workspace
   The existing portfolio data and feature styles remain underneath this
   layer; this file supplies the new application shell and product views. */

:root {
  --pf-side: 232px;
  --pf-top: 68px;
  --pf-paper: #f7f5f0;
  --pf-card: #fff;
  --pf-ink: #1a1916;
  --pf-muted: #6f6a62;
  --pf-faint: #9c9589;
  --pf-line: #e4dfd7;
  --pf-line-strong: #cdc7bc;
  --pf-green: #1b4332;
  --pf-green-mid: #2d6a4f;
  --pf-green-soft: #e9f1ed;
  --pf-clay: #d97706;
  --pf-red: #b91c1c;
}

body {
  min-height: 100vh;
  padding: 0 !important;
  background: var(--pf-paper) !important;
  overflow-x: hidden;
}

body > .nav,
body > .account-tabs,
body > .mega-overlay,
body > .mega-panel,
body > #site-footer,
body > footer.footer,
body > .fl-float-btn {
  display: none !important;
}

.pf-shell-scrim {
  position: fixed;
  inset: 0;
  z-index: 699;
  display: none;
  background: rgba(15, 25, 20, 0.42);
  backdrop-filter: blur(2px);
}

.pf-shell-scrim.open { display: block; }

.pf-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 700;
  width: var(--pf-side);
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--pf-ink);
  border-right: 1px solid var(--pf-line);
}

.pf-side-head { padding: 22px 20px 16px; }

.pf-back-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 24px;
  color: var(--pf-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.18s ease;
}

.pf-back-home:hover { color: var(--pf-green); }

.pf-side-brand {
  display: block;
  color: var(--pf-ink);
  font-family: var(--pm-font-display, Georgia, serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pf-side-brand span { color: var(--pf-green-mid); font-style: italic; font-weight: 500; }

.pf-workspace-label {
  margin-top: 5px;
  color: var(--pf-faint);
  font-family: var(--pm-font-display, Georgia, serif);
  font-size: 13px;
}

.pf-side-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 12px 18px;
  scrollbar-width: none;
}

.pf-side-scroll::-webkit-scrollbar { display: none; }

.pf-nav-group { margin-top: 20px; }

.pf-nav-label {
  padding: 0 10px 8px;
  color: var(--pf-faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pf-nav-link {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 2px 0;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #56534d;
  font: 600 13px/1.2 var(--pm-font-body, Inter, sans-serif);
  text-align: left;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}

a.pf-nav-link { text-decoration: none; }
.pf-nav-link:hover { color: var(--pf-green); background: var(--pf-green-soft); }
.pf-nav-link.active { color: var(--pf-green); background: var(--pf-green-soft); }

.pf-nav-icon {
  display: none;
}

.pf-nav-link.active .pf-nav-icon {
  display: none;
}

.pf-nav-badge {
  min-width: 22px;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: #eeeae3;
  color: var(--pf-faint);
  font-size: 10px;
  text-align: center;
}

.pf-side-foot {
  padding: 14px 12px 18px;
  border-top: 1px solid var(--pf-line);
}

.pf-side-tip {
  padding: 13px;
  border: 1px solid var(--pf-line);
  border-radius: 11px;
  background: var(--pf-paper);
}

.pf-side-tip strong { display: block; color: var(--pf-green); font-size: 11px; }
.pf-side-tip span { display: block; margin-top: 4px; color: var(--pf-faint); font-size: 10px; line-height: 1.45; }

.pf-topbar {
  position: fixed;
  inset: 0 0 auto var(--pf-side);
  z-index: 650;
  height: var(--pf-top);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  background: rgba(247, 245, 240, 0.94);
  border-bottom: 1px solid var(--pf-line);
  backdrop-filter: blur(18px);
}

.pf-mobile-menu,
.pf-mobile-brand { display: none; }

.pf-top-copy { min-width: 155px; }
.pf-top-copy strong { display: block; font-family: var(--pm-font-display, Georgia, serif); font-size: 17px; line-height: 1.05; }
.pf-top-copy span { display: block; margin-top: 3px; color: var(--pf-faint); font-size: 10px; }

.pf-search {
  position: relative;
  width: min(440px, 42vw);
  margin-left: auto;
}

.pf-search::before {
  content: '⌕';
  position: absolute;
  left: 14px;
  top: 50%;
  color: var(--pf-faint);
  font-size: 18px;
  transform: translateY(-52%);
  pointer-events: none;
}

.pf-search input {
  width: 100%;
  height: 40px;
  padding: 0 15px 0 38px;
  border: 1px solid var(--pf-line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--pf-ink);
  font: 500 12px var(--pm-font-body, Inter, sans-serif);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.pf-search input:focus { border-color: var(--pf-green-mid); box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1); }

.pf-top-add {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 999px;
  background: var(--pf-green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(27, 67, 50, 0.16);
}

.pf-top-add:hover { background: var(--pf-green-mid); }

.pf-topbar .nav-inner {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  gap: 0;
}

.page-main {
  width: auto !important;
  max-width: none !important;
  min-height: 100vh;
  margin: 0 0 0 var(--pf-side) !important;
  padding: calc(var(--pf-top) + 34px) 34px 72px !important;
  background: var(--pf-paper);
}

#grid-view,
#detail-view { width: min(100%, 1450px); margin: 0 auto; }

.page-header {
  align-items: center !important;
  margin-bottom: 24px !important;
}

.page-kicker,
.pf-eyebrow {
  margin-bottom: 9px;
  color: var(--pf-green-mid);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.page-title {
  font-family: var(--pm-font-display, Georgia, serif) !important;
  font-size: clamp(31px, 4vw, 46px) !important;
  font-weight: 600 !important;
  letter-spacing: -0.035em !important;
}

.pf-page-intro { max-width: 650px; margin-top: 8px; color: var(--pf-muted); font-size: 13px; line-height: 1.55; }

.pf-dashboard { display: grid; gap: 22px; }

.pf-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.pf-kpi {
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--pf-line);
  border-radius: 14px;
  background: var(--pf-card);
  box-shadow: 0 1px 3px rgba(26, 25, 22, 0.04);
}

.pf-kpi-label { color: var(--pf-faint); font-size: 9px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.pf-kpi-value { margin-top: 14px; color: var(--pf-ink); font-family: var(--pm-font-display, Georgia, serif); font-size: 27px; font-weight: 700; line-height: 1; }
.pf-kpi-note { margin-top: 9px; color: var(--pf-muted); font-size: 10px; line-height: 1.35; }
.pf-kpi.positive .pf-kpi-value { color: #166534; }
.pf-kpi.attention .pf-kpi-value { color: var(--pf-clay); }

.pf-grid-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr); gap: 18px; }

.pf-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--pf-line);
  border-radius: 15px;
  background: var(--pf-card);
}

.pf-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.pf-panel-head h2 { font-family: var(--pm-font-display, Georgia, serif); font-size: 19px; font-weight: 650; }
.pf-panel-head p { margin-top: 4px; color: var(--pf-faint); font-size: 10px; }
.pf-panel-link { border: 0; background: transparent; color: var(--pf-green); font-size: 11px; font-weight: 700; cursor: pointer; }

.pf-stage-list { display: grid; gap: 12px; }
.pf-stage-row { display: grid; grid-template-columns: 115px 1fr 28px; align-items: center; gap: 12px; }
.pf-stage-name { color: var(--pf-muted); font-size: 11px; font-weight: 650; }
.pf-stage-track { height: 8px; overflow: hidden; border-radius: 99px; background: #eeeae3; }
.pf-stage-fill { height: 100%; border-radius: inherit; background: var(--pf-green-mid); }
.pf-stage-count { color: var(--pf-faint); font-size: 11px; text-align: right; }

.pf-action-list { display: grid; gap: 1px; }
.pf-action {
  width: 100%;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid #eeeae3;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.pf-action:last-child { border-bottom: 0; }
.pf-action:hover .pf-action-title { color: var(--pf-green); }
.pf-action-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pf-clay); }
.pf-action-title { display: block; overflow: hidden; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.pf-action-sub { display: block; margin-top: 3px; overflow: hidden; color: var(--pf-faint); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.pf-action-date { color: var(--pf-muted); font-size: 9px; white-space: nowrap; }

.pf-empty-mini { padding: 24px 10px; color: var(--pf-faint); font-size: 11px; line-height: 1.55; text-align: center; }

.pf-recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pf-recent-card { width: 100%; display: flex; min-width: 0; gap: 12px; padding: 11px; border: 1px solid var(--pf-line); border-radius: 11px; background: #fff; color: inherit; cursor: pointer; font: inherit; text-align: left; transition: border-color 0.16s ease, transform 0.16s ease; }
.pf-recent-card:hover { border-color: #95b8a7; transform: translateY(-1px); }
.pf-recent-img { width: 56px; height: 50px; flex: 0 0 auto; overflow: hidden; border-radius: 8px; background: linear-gradient(135deg, #dcebe3, #95b8a7); }
.pf-recent-img img { width: 100%; height: 100%; object-fit: cover; }
.pf-recent-copy { min-width: 0; align-self: center; }
.pf-recent-copy strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.pf-recent-copy span { display: block; margin-top: 4px; color: var(--pf-faint); font-size: 9px; }

.pf-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--pf-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.pf-view-tabs { display: flex; gap: 5px; }
.pf-view-tab { padding: 7px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--pf-muted); font-size: 10px; font-weight: 700; cursor: pointer; }
.pf-view-tab.active { background: var(--pf-green); color: #fff; }

.pf-pipeline-wrap { overflow-x: auto; padding: 2px 1px 14px; scrollbar-color: #c9c3b9 transparent; }
.pf-pipeline { min-width: 1260px; display: grid; grid-template-columns: repeat(7, minmax(165px, 1fr)); gap: 10px; }
.pf-pipe-column { min-height: 430px; padding: 10px; border: 1px solid var(--pf-line); border-radius: 13px; background: #efede7; }
.pf-pipe-column.drag-over { border-color: var(--pf-green-mid); background: var(--pf-green-soft); }
.pf-pipe-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 3px 11px; }
.pf-pipe-head strong { color: #4e4a44; font-size: 10px; letter-spacing: 0.02em; }
.pf-pipe-head span { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: #fff; color: var(--pf-faint); font-size: 9px; text-align: center; }
.pf-pipe-cards { display: grid; align-content: start; gap: 8px; min-height: 360px; }
.pf-pipe-card { padding: 11px; border: 1px solid #ddd8cf; border-radius: 10px; background: #fff; cursor: grab; box-shadow: 0 1px 2px rgba(30, 28, 24, 0.04); }
.pf-pipe-card:active { cursor: grabbing; }
.pf-pipe-card:hover { border-color: #91b4a4; }
.pf-pipe-card:focus-visible, .pf-action:focus-visible, .pf-recent-card:focus-visible { outline: 3px solid rgba(45, 106, 79, 0.2); outline-offset: 2px; }
.pf-pipe-address { font-size: 10px; font-weight: 750; line-height: 1.35; }
.pf-pipe-suburb { margin-top: 3px; color: var(--pf-faint); font-size: 8.5px; }
.pf-pipe-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 10px; }
.pf-pipe-metric { padding: 6px; border-radius: 6px; background: var(--pf-paper); }
.pf-pipe-metric span { display: block; color: var(--pf-faint); font-size: 7px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.pf-pipe-metric strong { display: block; margin-top: 2px; font-size: 9px; }
.pf-pipe-next { margin-top: 9px; padding-top: 8px; border-top: 1px solid #eeeae3; color: var(--pf-green); font-size: 8px; font-weight: 700; }
.pf-feas-chip { display: inline-flex; margin-top: 8px; padding: 3px 7px; border-radius: 99px; background: var(--pf-green-soft); color: var(--pf-green); font-size: 7.5px; font-weight: 800; text-transform: uppercase; }
.pf-pipe-stage { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px; margin-top: 9px; padding-top: 8px; border-top: 1px solid #eeeae3; color: var(--pf-faint); font-size: 7px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.pf-pipe-stage select { width: 100%; min-width: 0; padding: 5px 20px 5px 7px; border: 1px solid var(--pf-line); border-radius: 6px; background: #fff; color: var(--pf-ink); font: 650 8px var(--pm-font-body, Inter, sans-serif); letter-spacing: 0; outline: none; text-transform: none; }
.pf-pipe-stage select:focus { border-color: var(--pf-green-mid); box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.1); }

.prop-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; gap: 16px !important; }
.prop-card { box-shadow: none !important; }
.prop-card:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 24px rgba(27, 67, 50, 0.09) !important; }

.pf-task-table { overflow: hidden; border: 1px solid var(--pf-line); border-radius: 13px; background: #fff; }
.pf-task-row { display: grid; grid-template-columns: 28px minmax(220px, 1.4fr) minmax(150px, 0.8fr) 110px 110px; align-items: center; gap: 12px; min-height: 58px; padding: 9px 14px; border-bottom: 1px solid var(--pf-line); }
.pf-task-row:last-child { border-bottom: 0; }
.pf-task-row.head { min-height: 38px; background: #f0ede7; color: var(--pf-faint); font-size: 8px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.pf-task-check { width: 18px; height: 18px; border: 1.5px solid var(--pf-line-strong); border-radius: 50%; background: #fff; cursor: pointer; }
.pf-task-check:hover { border-color: var(--pf-green); background: var(--pf-green-soft); }
.pf-task-main strong { display: block; font-size: 11px; }
.pf-task-main span { display: block; margin-top: 3px; color: var(--pf-faint); font-size: 9px; }
.pf-task-cell { color: var(--pf-muted); font-size: 10px; }
.pf-task-open { border: 0; background: transparent; color: var(--pf-green); font-size: 9px; font-weight: 800; cursor: pointer; text-align: left; }

.pf-buybox { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: 20px; }
.pf-form-card, .pf-explain-card { padding: 22px; border: 1px solid var(--pf-line); border-radius: 15px; background: #fff; }
.pf-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-form-field.full { grid-column: 1 / -1; }
.pf-form-field label { display: block; margin-bottom: 6px; color: var(--pf-muted); font-size: 9px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.pf-form-field input, .pf-form-field select, .pf-form-field textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1.5px solid var(--pf-line-strong); border-radius: 9px; background: #fff; color: var(--pf-ink); font: 500 12px var(--pm-font-body, Inter, sans-serif); outline: none; }
.pf-form-field textarea { min-height: 90px; resize: vertical; }
.pf-form-field input:focus, .pf-form-field select:focus, .pf-form-field textarea:focus { border-color: var(--pf-green-mid); box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.08); }
.pf-form-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.pf-save-state { color: var(--pf-faint); font-size: 10px; }
.pf-explain-card { background: var(--pf-green); color: #fff; }
.pf-explain-card h2 { font-family: var(--pm-font-display, Georgia, serif); font-size: 22px; }
.pf-explain-card p { margin-top: 10px; color: rgba(255, 255, 255, 0.66); font-size: 11px; line-height: 1.65; }
.pf-explain-list { display: grid; gap: 10px; margin-top: 20px; }
.pf-explain-item { display: flex; gap: 10px; color: rgba(255, 255, 255, 0.78); font-size: 10px; line-height: 1.5; }
.pf-explain-item b { width: 21px; height: 21px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; background: rgba(255, 255, 255, 0.11); color: #95d5b2; }

#detail-view { max-width: 1320px; }
.detail-back { margin-bottom: 18px !important; }
.detail-hero { height: 250px !important; margin-bottom: 18px !important; border-radius: 15px !important; }
.detail-header { padding: 0 2px 18px; border-bottom: 1px solid var(--pf-line); }
.detail-addr h2 { font-family: var(--pm-font-display, Georgia, serif); font-size: clamp(25px, 3vw, 35px); font-weight: 650; }
.property-workspace-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 24px; }
.property-workspace-body .detail-tabs { position: sticky; top: calc(var(--pf-top) + 24px); display: grid; gap: 4px; margin: 0; padding: 8px; border: 1px solid var(--pf-line); border-radius: 12px; background: #fff; overflow: visible; }
.property-workspace-body .tab-btn { width: 100%; padding: 11px 12px; border-radius: 8px; color: var(--pf-muted); font-size: 10px; text-align: left; }
.property-workspace-body .tab-btn:hover { background: var(--pf-paper); color: var(--pf-green); }
.property-workspace-body .tab-btn.active { background: var(--pf-green); color: #fff; }
.property-workspace-body .tab-btn.active::after { display: none; }
.property-workspace-body .tab-panel { min-width: 0; }
.property-workspace-body .tab-panel.active { display: block; }
.ov-section, .share-section { border: 1px solid var(--pf-line) !important; box-shadow: none !important; }

.pf-feas-summary { margin-bottom: 16px; padding: 18px; border: 1px solid rgba(27, 67, 50, 0.18); border-radius: 12px; background: var(--pf-green-soft); }
.pf-feas-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.pf-feas-head strong { color: var(--pf-green); font-family: var(--pm-font-display, Georgia, serif); font-size: 17px; }
.pf-feas-head span { color: var(--pf-muted); font-size: 9px; }
.pf-feas-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.pf-feas-stat { padding: 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.72); }
.pf-feas-stat span { display: block; color: var(--pf-faint); font-size: 7px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.pf-feas-stat strong { display: block; margin-top: 4px; color: var(--pf-ink); font-family: var(--pm-font-body, Inter, sans-serif); font-size: 10px; }
.pf-feas-history { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(27, 67, 50, 0.14); }
.pf-feas-history-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pf-feas-history-head strong { color: var(--pf-ink); font-family: var(--pm-font-body, Inter, sans-serif); font-size: 10px; }
.pf-feas-history-head span { color: var(--pf-muted); font-size: 8px; }
.pf-feas-history-list { display: grid; gap: 6px; max-height: 230px; margin-top: 9px; overflow-y: auto; }
.pf-feas-history-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 9px 10px; border: 1px solid rgba(27, 67, 50, 0.09); border-radius: 8px; background: rgba(255, 255, 255, 0.68); }
.pf-feas-history-row div { min-width: 0; }
.pf-feas-history-row strong { display: block; overflow: hidden; color: var(--pf-ink); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.pf-feas-history-row span { display: block; margin-top: 3px; color: var(--pf-muted); font-size: 8px; line-height: 1.35; }
.pf-feas-history-row time { flex: 0 0 auto; color: var(--pf-faint); font-size: 8px; }

.pf-dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pf-dd-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--pf-line); border-radius: 10px; background: #fff; cursor: pointer; }
.pf-dd-item:has(input:checked) { border-color: rgba(27, 67, 50, 0.22); background: var(--pf-green-soft); }
.pf-dd-item input { margin-top: 1px; accent-color: var(--pf-green); }
.pf-dd-item strong { display: block; font-size: 10px; }
.pf-dd-item span { display: block; margin-top: 3px; color: var(--pf-faint); font-size: 8.5px; line-height: 1.4; }

.pf-mobile-dock { display: none; }

@media (max-width: 1180px) {
  .pf-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-kpi:nth-child(4), .pf-kpi:nth-child(5) { grid-column: span 1; }
  .pf-feas-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --pf-side: 0px; --pf-top: 64px; }
  .pf-sidebar { width: 264px; transform: translateX(-105%); transition: transform 0.24s ease; box-shadow: 12px 0 36px rgba(10, 24, 17, 0.24); }
  .pf-sidebar.open { transform: translateX(0); }
  .pf-topbar { left: 0; height: var(--pf-top); padding: 0 16px; gap: 11px; }
  .pf-mobile-menu { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--pf-line); border-radius: 50%; background: #fff; color: var(--pf-green); font-size: 19px; cursor: pointer; }
  .pf-mobile-brand { display: inline; color: var(--pf-ink); font-size: 16px; font-weight: 800; letter-spacing: -0.03em; }
  .pf-mobile-brand span { color: var(--pf-green); }
  .pf-top-copy { display: none; }
  .pf-search { width: auto; flex: 1; margin-left: 0; }
  .pf-search input { height: 38px; }
  .pf-top-add { width: 38px; min-width: 38px; height: 38px; min-height: 38px; padding: 0; font-size: 0; }
  .pf-top-add::before { content: '+'; font-size: 21px; }
  .page-main { margin-left: 0 !important; padding: calc(var(--pf-top) + 24px) 18px 94px !important; }
  .pf-grid-2, .pf-buybox { grid-template-columns: 1fr; }
  .property-workspace-body { grid-template-columns: 1fr; }
  .property-workspace-body .detail-tabs { position: sticky; top: var(--pf-top); z-index: 40; display: flex; overflow-x: auto; border-radius: 0; margin: 0 -18px; padding: 8px 18px; border-width: 1px 0; }
  .property-workspace-body .tab-btn { width: auto; white-space: nowrap; }
  .pf-mobile-dock { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 620; display: flex; gap: 4px; padding: 6px; border: 1px solid var(--pf-line); border-radius: 999px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 8px 28px rgba(20, 35, 28, 0.16); backdrop-filter: blur(12px); transform: translateX(-50%); }
  .pf-mobile-dock button { min-width: 62px; padding: 7px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--pf-muted); font-size: 9px; font-weight: 750; }
  .pf-mobile-dock button.active { background: var(--pf-green); color: #fff; }
}

@media (max-width: 720px) {
  .pf-mobile-brand { display: none; }
  .pf-kpis { grid-template-columns: 1fr 1fr; }
  .pf-kpi { min-height: 108px; padding: 15px; }
  .pf-kpi-value { font-size: 23px; }
  .pf-kpi:last-child { grid-column: 1 / -1; }
  .pf-recent-grid { grid-template-columns: 1fr; }
  .pf-task-row { grid-template-columns: 28px minmax(0, 1fr) 80px; }
  .pf-task-row > :nth-child(3), .pf-task-row > :nth-child(4) { display: none; }
  .pf-form-grid, .pf-dd-grid { grid-template-columns: 1fr; }
  .pf-form-field.full { grid-column: auto; }
  .detail-actions { width: 100%; overflow-x: auto; padding-bottom: 3px; }
  .detail-hero { height: 190px !important; }
  .pf-feas-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .page-main { padding-left: 13px !important; padding-right: 13px !important; }
  .pf-topbar { padding: 0 11px; }
  .pf-search input::placeholder { color: transparent; }
  .pf-kpis { gap: 8px; }
  .pf-panel, .pf-form-card, .pf-explain-card { padding: 16px; }
  .property-workspace-body .detail-tabs { margin-left: -13px; margin-right: -13px; padding-left: 13px; padding-right: 13px; }
}

@media print {
  .pf-sidebar, .pf-topbar, .pf-mobile-dock, .pf-shell-scrim { display: none !important; }
  .page-main { margin: 0 !important; padding: 0 !important; }
}
