/* ResiInspect polish — NRPS sky accent, built-up layouts, sharper type */
:root {
  --sky: #4BBFD8;
  --sky-ink: #0C7388;
  --sky-soft: #E8F7FB;
  --display: "Segoe UI", "Avenir Next", system-ui, sans-serif;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(26, 51, 56, 0.08);
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.018em;
}
h1 { font-size: clamp(26px, 2.8vw, 34px); }
.eyebrow { color: var(--sky-ink); font-weight: 700; }
.sidebar .brand-sub { color: var(--sky); }
a { color: var(--sky-ink); }
.card header a { color: var(--sky-ink); }

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav a.active {
  color: var(--sky);
  box-shadow: inset 3px 0 0 var(--sky);
}
.nav-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
}
.menu-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

.kpi::after { background: var(--sky); }
.kpi strong {
  font-weight: 800;
  color: var(--navy);
  overflow-wrap: anywhere;
  font-size: clamp(22px, 2.3vw, 32px);
}
.kpi-grid.compact { margin-top: 8px; }
.kpi-grid.compact .kpi { padding: 14px 16px 12px; }
.kpi-grid.compact .kpi strong { font-size: 24px; }

.card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.btn, .prop-card, .wo-card, .nav a, .action-tile, .demo-card {
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease, color .16s ease;
}
.prop-card:hover, .wo-card:hover, .action-tile:hover {
  border-color: var(--sky);
  transform: translateY(-1px);
}

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

img {
  image-rendering: auto;
}
.photos img,
.marketing-card img,
.ai-card img,
.strip-card img,
.property-hero img,
.prop-thumb {
  image-rendering: -webkit-optimize-contrast;
}

.dash-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 16px;
}
.dash-split > .card { margin-top: 0; }
.dash-split > .card + .card { margin-top: 0; }

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
}
.about-grid { margin: 16px 0; }
.action-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #fff 0%, var(--sky-soft) 100%);
}
.action-tile strong { color: var(--navy); font-weight: 800; }
.action-tile span { color: var(--muted); font-size: 13px; line-height: 1.4; }

.tip-board header { margin-bottom: 12px; }
.tip-grid { display: grid; gap: 12px; }
.tip-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 12px;
  background: var(--sky-soft);
  border: 1px solid rgba(75, 191, 216, 0.28);
  border-radius: 14px;
}
.tip-card h3 { font-size: 16px; margin: 0 0 4px; }
.tip-card p { margin: 0 0 10px; color: var(--text); }

.photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.strip-card { display: block; text-decoration: none; color: inherit; }
.strip-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}
.strip-card span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.property-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.property-hero img,
.hero-fallback {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
.hero-fallback {
  background:
    radial-gradient(circle at 82% 18%, rgba(201, 162, 39, 0.42), transparent 42%),
    linear-gradient(135deg, #1A3338 0%, #0C7388 56%, #4BBFD8 100%);
}
.property-hero .hero-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 22px 18px;
  background: linear-gradient(transparent, rgba(26, 51, 56, 0.82));
  color: #fff;
}
.property-hero .hero-copy h2,
.property-hero .hero-copy p { color: #fff; margin: 0; }
.property-hero .hero-copy h2 { margin: 4px 0 6px; }
.property-hero .eyebrow { color: var(--sky); }

.prop-card { overflow: hidden; }
.prop-thumb {
  width: calc(100% + 32px);
  max-width: none;
  margin: -16px -16px 12px;
  height: 148px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}

.empty-state {
  text-align: center;
  padding: 28px 18px 22px;
  max-width: 440px;
  margin: 0 auto;
}
.empty-illu {
  width: 160px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
}
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); margin: 0 0 14px; }

.empty-quiet {
  color: var(--muted);
  font-size: 13px;
  padding: 18px 10px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fff;
}

.login-card {
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  border-color: transparent;
}

.tech-tabbar a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.tech-tabbar .nav-ico { width: 18px; height: 18px; }

.toolbar { row-gap: 8px; }
.toolbar > * { max-width: 100%; }

@media (max-width: 1100px) {
  .dash-split { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .kpi-grid,
  .kpi-grid.compact { grid-template-columns: 1fr 1fr; }
  .property-hero img,
  .hero-fallback { height: 200px; }
  .kanban { grid-template-columns: repeat(7, minmax(156px, 1fr)); }
  .search-wrap input { width: min(180px, 34vw); }
}

@media (max-width: 430px) {
  .topbar {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 8px;
  }
  .topbar-title { flex: 1 1 auto; min-width: 0; }
  .topbar-actions {
    flex: 1 1 100%;
    order: 3;
  }
  .search-wrap { flex: 1; }
  .search-wrap input { width: 100%; }
  .view {
    padding: 16px 14px 88px;
    overflow-x: hidden;
  }
  .kpi-grid,
  .kpi-grid.compact { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px 12px 10px; }
  .kpi strong { font-size: 20px; }
  h1 { font-size: 22px; }
  .prop-grid { grid-template-columns: 1fr; }
  .invoice-sheet { padding: 16px; overflow-x: auto; }
  .action-grid { grid-template-columns: 1fr; }
  .photo-strip { grid-auto-columns: minmax(148px, 70vw); }
}

@media print {
  .dash-split,
  .quick-actions,
  .tip-board,
  .photo-strip,
  .empty-illu,
  .property-hero { break-inside: avoid; }
}

/* NRPS hero-style tagline: "From the Field. For the field." */
@font-face{font-family:'Oswald';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/oswald-normal-latin.woff2) format('woff2')}
@font-face{font-family:'Oswald Fallback';src:local('Arial Narrow'),local('Arial');size-adjust:88%;ascent-override:110%;descent-override:22%;line-gap-override:0%}
.ri-tagline{margin:14px 0 6px;text-align:center}
.ri-tagline-head{font-family:'Oswald','Oswald Fallback','Arial Narrow',Arial,sans-serif;font-weight:700;text-transform:uppercase;letter-spacing:.01em;line-height:1.05;font-size:30px;color:#1A3338;margin:0}
.ri-tagline-head em{font-style:italic;font-weight:400;color:#0C7388}
.ri-tagline-line{display:block;width:72px;height:4px;border-radius:2px;background:#4BBFD8;margin:12px auto 0}
.login-h1{font-size:20px;margin:14px 0 0;text-align:center;color:#1A3338}
.login-card .login-lead{margin-top:6px}
.ri-dash-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#1A3338;color:#F4EFE6;border-radius:18px;padding:22px 24px;margin-bottom:18px}
.ri-dash-hero .ri-tagline{text-align:left;margin:0}
.ri-dash-hero .ri-tagline-head{color:#F4EFE6;font-size:34px}
.ri-dash-hero .ri-tagline-head em{color:#4BBFD8}
.ri-dash-hero .ri-tagline-line{margin:12px 0 0}
.ri-dash-hero p.ri-dash-sub{margin:0;max-width:420px;color:#CBD1D6;font-size:14px;line-height:1.6}
@media (max-width:600px){.ri-tagline-head{font-size:26px}.ri-dash-hero .ri-tagline-head{font-size:28px}}
