﻿:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #132238;
  --muted: #64748b;
  --line: #dbe3ee;
  --brand: #0f766e;
  --brand-2: #2563eb;
  --danger: #e11d48;
  --warn: #ca8a04;
  --ok: #16a34a;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }
.screen-splash { display: none; place-items: center; background: radial-gradient(circle at top, #e0f2fe, #f8fafc 42%, #e6fffb); }
.screen-splash.active { display: grid; }
.brand-pulse { text-align: center; animation: pulseIn .7s ease both; }
.brand-mark { width: 112px; height: 112px; border-radius: 26px; display: grid; place-items: center; background: linear-gradient(145deg, #0f766e, #2563eb); color: #fff; font-size: 34px; font-weight: 900; box-shadow: 0 22px 50px rgba(15, 118, 110, .26); margin: 0 auto 18px; }
.brand-mark.small { width: 44px; height: 44px; border-radius: 12px; font-size: 15px; margin: 0; }
.brand-pulse h1 { margin: 0; font-size: 34px; letter-spacing: 0; }
.brand-pulse p { margin: 8px 0 0; color: var(--muted); font-weight: 700; }
@keyframes pulseIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.auth-screen { place-items: center; padding: 24px; }
.auth-screen.active { display: grid; }
.auth-card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 18px 60px rgba(15, 23, 42, .08); }
.auth-card-wide { width: min(760px, 100%); }
.brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.brand-row strong { display: block; font-size: 18px; }
.brand-row span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.form-stack, .form-section { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: #334155; font-size: 13px; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff; color: var(--ink); outline: none; }
textarea { min-height: 86px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.password-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.password-row button, .secondary-btn, .ghost-btn, .primary-btn { border: 0; border-radius: 10px; padding: 11px 14px; font-weight: 900; }
.password-row button, .secondary-btn { background: #eaf2ff; color: #1d4ed8; }
.primary-btn { background: var(--brand); color: #fff; }
.ghost-btn { background: #f1f5f9; color: #334155; }
.check-row { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.check-row input { width: auto; }
.role-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.role-option { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #f8fafc; color: var(--ink); }
.role-option strong { display: block; font-size: 14px; }
.role-option span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.role-option.active { border-color: var(--brand); background: #ecfdf5; box-shadow: 0 0 0 3px rgba(15, 118, 110, .1); }
.app-shell.active { display: grid; grid-template-columns: 270px 1fr; }
.sidebar { min-height: 100vh; background: #0f172a; color: #e2e8f0; padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.side-brand { margin-bottom: 6px; }
.sidebar nav { display: grid; gap: 8px; }
.nav-item { width: 100%; border: 0; text-align: left; border-radius: 10px; background: transparent; color: #cbd5e1; padding: 12px 14px; font-weight: 800; }
.nav-item.active, .nav-item:hover { background: #1e293b; color: #fff; }
.sidebar .ghost-btn { margin-top: auto; background: #1e293b; color: #fff; }
.main-panel { min-width: 0; }
.topbar { min-height: 78px; padding: 18px 22px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
h2, h3 { margin: 0; letter-spacing: 0; }
.view { display: none; padding: 18px 22px 28px; }
.view.active { display: block; }
.profile-strip, .metrics-grid, .panel-grid, .form-grid, .toggle-grid { display: grid; gap: 14px; }
.profile-strip { grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; }
.profile-strip div, .metric-card, .panel-card, .empty-card, .form-section { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.profile-strip span, .metric-card span, .muted { color: var(--muted); font-size: 12px; font-weight: 800; }
.profile-strip strong, .metric-card strong { display: block; margin-top: 8px; font-size: 24px; }
.metrics-grid { grid-template-columns: repeat(4, 1fr); }
.metric-card { text-align: left; }
button.metric-card:hover { border-color: #93c5fd; }
.panel-grid { grid-template-columns: 1fr 1fr; margin-top: 14px; }
.summary-list { margin-top: 14px; display: grid; gap: 10px; }
.summary-item { display: flex; justify-content: space-between; gap: 12px; color: #334155; font-size: 13px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.property-list { display: grid; gap: 12px; }
.property-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; grid-template-columns: 128px 1fr; gap: 14px; }
.property-photo { width: 128px; height: 112px; border-radius: 10px; background: #dbeafe; object-fit: cover; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { width: fit-content; border-radius: 999px; padding: 4px 9px; background: #f1f5f9; color: #334155; font-size: 12px; font-weight: 900; }
.form-section { margin-bottom: 14px; }
.form-section h3 { margin-bottom: 2px; }
.form-grid { grid-template-columns: repeat(3, 1fr); }
.form-grid .wide { grid-column: 1 / -1; }
.inline-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.inline-add button { border: 0; border-radius: 10px; background: #eef2ff; color: #3730a3; font-weight: 900; min-width: 42px; }
.toggle-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 10px 0; }
.toggle-grid label { display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.toggle-grid input { width: auto; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 10px; }
.photo-tile { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f8fafc; }
.photo-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.photo-tile span { position: absolute; left: 6px; top: 6px; border-radius: 999px; background: rgba(15, 23, 42, .72); color: #fff; font-size: 11px; padding: 3px 7px; font-weight: 800; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.help-grid article, .settings-list { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.settings-list { display: grid; gap: 10px; max-width: 420px; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 20; background: #0f172a; color: #fff; border-radius: 12px; padding: 12px 16px; font-weight: 800; display: none; box-shadow: 0 14px 40px rgba(15, 23, 42, .22); }
.toast.show { display: block; }
@media (max-width: 900px) {
  .app-shell.active { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; }
  .profile-strip, .metrics-grid, .panel-grid, .form-grid, .toggle-grid, .help-grid, .role-switch { grid-template-columns: 1fr; }
  .property-card { grid-template-columns: 1fr; }
  .property-photo { width: 100%; height: 190px; }
}
