:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202723;
  background: #f6f7f6;
  font-size: 15px;
  letter-spacing: 0;
  --muted: #626b66;
  --line: #dce2de;
  --accent: #256347;
  --danger: #b63830;
}
* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body { margin: 0; min-width: 320px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-underline-offset: 3px; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, a:focus-visible { outline: 3px solid #90b6a0; outline-offset: 3px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 500; }
input, select, textarea { min-width: 0; width: 100%; min-height: 46px; padding: 11px 12px; color: #202723; background: #fff; border: 1px solid #bfc9c2; border-radius: 6px; font-size: 16px; }
input::placeholder, textarea::placeholder { color: #79817c; opacity: 1; }
input:focus, select:focus, textarea:focus { outline: 2px solid #bdd7c6; outline-offset: 1px; border-color: var(--accent); }
textarea { resize: vertical; line-height: 1.6; }
fieldset { display: grid; gap: 16px; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); margin: 8px 0; min-width: 0; }
legend { padding: 0 8px 0 0; font-size: 14px; font-weight: 600; }
.button { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 11px 17px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background .15s, border-color .15s; }
.button-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button-primary:hover { background: #1b4d36; border-color: #1b4d36; }
.button-quiet { background: #fff; color: #313e36; border-color: #bfc9c2; }
.button-quiet:hover { background: #eef3ef; border-color: #879d8e; }
.small-button { min-height: 44px; }
.full-button { width: 100%; }
.text-button, .back-button { background: none; border: 0; color: var(--accent); padding: 8px 0; font-size: 14px; }
.text-button { margin-top: 22px; text-decoration: underline; text-underline-offset: 4px; }
.back-button { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 20px; }
.icon { width: 19px; height: 19px; flex-shrink: 0; vertical-align: middle; }
.muted, .form-hint { color: var(--muted); font-size: 14px; line-height: 1.6; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 600; }
.toast { position: fixed; z-index: 1000; right: 20px; bottom: 20px; max-width: min(400px, calc(100% - 40px)); padding: 14px 18px; border: 1px solid #c9d9ce; border-radius: 6px; background: #edf7ef; color: #203e2b; box-shadow: 0 4px 18px #16251b12; opacity: 0; pointer-events: none; }
.toast.show { opacity: 1; }
.toast.error { background: #fff0ee; border-color: #e4b6b2; color: #8c2921; }
.auth-shell { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; justify-items: center; padding: 48px 24px; }
.auth-card { width: min(100%, 380px); }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 42px; color: #263d2e; text-decoration: none; }
.brand-lockup strong { font-size: 25px; font-weight: 650; }
.brand-lockup .icon { width: 25px; height: 25px; }
.auth-card h1 { margin: 0 0 28px; font-size: 25px; line-height: 1.3; font-weight: 600; }
.stack-form { display: grid; gap: 19px; }
.stack-form .button { margin-top: 3px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.divider { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; margin: 24px 0; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.app-shell { min-height: 100vh; }
.topbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 max(24px, calc((100% - 1180px) / 2)); border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 30; }
.brand-lockup.compact { margin: 0; }
.brand-lockup.compact strong { font-size: 21px; }
.brand-lockup.compact .icon { width: 22px; height: 22px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.user-chip { color: var(--muted); font-size: 14px; }
.icon-button, .close-button { border: 1px solid var(--line); background: #fff; color: #48544b; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 6px; }
.icon-button:hover, .close-button:hover { background: #eef3ef; border-color: #aab9ae; }
.close-button { font-size: 25px; line-height: 1; }
.workspace { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 38px 0 80px; }
.dashboard-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.dashboard-head h1 { margin: 0; font-size: 28px; font-weight: 600; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); margin-bottom: 24px; }
.metric { padding: 20px 24px; border-right: 1px solid var(--line); }
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }
.metric b { display: block; font-size: 25px; font-weight: 600; font-variant-numeric: tabular-nums; }
.metric span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.toolbar { display: flex; gap: 12px; margin-bottom: 22px; }
.search-box { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; border: 1px solid #bfc9c2; border-radius: 6px; background: #fff; padding: 0 12px; color: var(--muted); }
.search-box:focus-within { outline: 2px solid #bdd7c6; outline-offset: 1px; border-color: var(--accent); }
.search-box input { border: 0; background: transparent; padding-left: 0; box-shadow: none; outline: none; }
.toolbar select { max-width: 200px; }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.property-card { min-width: 0; min-height: 240px; display: flex; flex-direction: column; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.property-card:hover { border-color: #90aa97; }
.property-card .card-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.status-pill { color: #305c42; font-size: 12px; background: #edf4ee; padding: 4px 7px; border-radius: 4px; }
.rating { color: #8d6d2b; font-size: 14px; }
.property-card h3 { font-size: 18px; font-weight: 600; line-height: 1.4; margin: 16px 0 7px; overflow-wrap: anywhere; }
.property-card .place { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.property-card .price { margin-top: auto; padding-top: 22px; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.card-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--muted); font-size: 13px; margin-top: 8px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; color: var(--accent); font-size: 13px; }
.empty-state { text-align: center; padding: 72px 16px; border-block: 1px solid var(--line); }
.empty-state h2 { font-size: 19px; font-weight: 500; color: var(--muted); margin: 0 0 22px; }
.dialog { width: min(760px, calc(100% - 28px)); max-height: calc(100vh - 28px); max-height: calc(100svh - 28px); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #202723; }
.dialog::backdrop { background: #101d1666; }
.dialog-card { padding: 28px; max-height: calc(100svh - 30px); overflow: auto; }
.dialog-card.narrow { max-width: 480px; margin: auto; }
.dialog:has(.narrow) { max-width: 480px; }
.dialog-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 24px; }
.dialog-head h2 { font-size: 23px; line-height: 1.35; font-weight: 600; margin: 6px 0 0; overflow-wrap: anywhere; }
.form-grid, .inline-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .wide, .inline-form .wide { grid-column: 1 / -1; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 24px; }
.detail-section { padding: 24px 0; border-top: 1px solid var(--line); }
.detail-section h3 { font-size: 17px; font-weight: 600; margin: 0 0 18px; }
.detail-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 24px; }
.detail-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 22px 0; border-block: 1px solid var(--line); }
.detail-stat { padding: 16px 8px; }
.detail-stat b { display: block; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.detail-stat span { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.detail-list { display: grid; gap: 8px; margin-bottom: 20px; }
.detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-row div { min-width: 0; }
.detail-row small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.5; }
.note { padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.note strong { display: block; font-size: 15px; }
.note small { display: block; color: var(--muted); margin-top: 5px; }
.note p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; font-size: 14px; margin: 10px 0; }
.passkey-list { display: grid; gap: 9px; margin-bottom: 20px; }
.passkey-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.passkey-item small { display: block; color: var(--muted); margin-top: 4px; }
.danger-button { border: 0; background: none; color: var(--danger); padding: 8px 0 8px 8px; font-size: 13px; }
.attachment-link { color: var(--accent); font-size: 14px; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) { .property-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .auth-shell { padding: 32px 24px; }
  .brand-lockup { margin-bottom: 34px; }
  .workspace { width: calc(100% - 32px); padding-top: 26px; }
  .topbar { padding: 0 16px; }
  .user-chip { max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dashboard-head { gap: 12px; }
  .dashboard-head h1 { font-size: 24px; }
  .dashboard-head .button { padding: 10px 12px; }
  .property-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric { padding: 16px; border-bottom: 1px solid var(--line); }
  .metric:nth-child(odd) { padding-left: 0; }
  .metric:nth-child(even) { border-right: 0; }
  .metric:nth-last-child(-n+2) { border-bottom: 0; }
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; }
  .search-box { grid-column: 1 / -1; }
  .toolbar select { max-width: none; }
  .two-col, .form-grid, .inline-form { grid-template-columns: 1fr; }
  .form-grid .wide, .inline-form .wide { grid-column: auto; }
  .dialog-card { padding: 22px 18px; }
  .dialog-head h2 { font-size: 21px; }
  .detail-stats { grid-template-columns: 1fr 1fr; }
  .dialog-actions { justify-content: stretch; }
  .dialog-actions .button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
