:root {
  --bg: #f6fffb;
  --card: #ffffff;
  --border: #dfe7e5;
  --text: #142321;
  --muted: #5d6c68;
  --green: #1f9d6a;
  --green-soft: #def7ec;
  --amber: #b7791f;
  --amber-soft: #fff4db;
  --red: #c53030;
  --red-soft: #ffe3e3;
  --blue-soft: #e8f3ff;
  --shadow: 0 10px 30px rgba(20, 35, 33, 0.06);
  --radius: 18px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #f7fffb 0%, #f7fbff 100%);
  color: var(--text);
}
button, input, select, textarea {
  font: inherit;
}
.app-shell {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px 16px 96px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #d8ff73 0%, #43d392 52%, #65cfff 100%);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.brand h1 {
  font-size: 22px;
  margin: 0;
}
.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.section-title h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--border);
}
.stat strong { font-size: 28px; display: block; }
.stat span { color: var(--muted); font-size: 13px; }
.stat.dark { background: #0f1f1c; color: white; border: none; }
.stat.dark span { color: rgba(255,255,255,.8); }
.stat.red { background: var(--red-soft); color: var(--red); border: none; }
.stat.amber { background: var(--amber-soft); color: var(--amber); border: none; }
.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
label {
  display: block;
  margin-bottom: 10px;
}
label small {
  display: block;
  color: var(--muted);
  margin-bottom: 5px;
}
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid #cfd8d5;
  background: white;
}
textarea { min-height: 88px; resize: vertical; }
.btn {
  border: none;
  border-radius: 14px;
  padding: 11px 14px;
  cursor: pointer;
}
.btn-primary { background: #0f1f1c; color: white; }
.btn-secondary { background: white; border: 1px solid #cfd8d5; color: var(--text); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.property-card, .item-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}
.item-card h3, .property-card h3 { margin: 0 0 4px; font-size: 16px; }
.muted { color: var(--muted); font-size: 13px; }
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge.current { background: var(--green-soft); color: var(--green); }
.badge.due { background: var(--amber-soft); color: var(--amber); }
.badge.overdue, .badge.missing { background: var(--red-soft); color: var(--red); }
.badge.review { background: var(--blue-soft); color: #2b6cb0; }
.nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
}
.nav-inner {
  max-width: 460px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 10px 10px 16px;
}
.nav button {
  border: none;
  background: transparent;
  padding: 10px 6px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
}
.nav button.active {
  background: #0f1f1c;
  color: white;
}
.hidden { display: none; }
hr.sep {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}
@media (min-width: 800px) {
  .app-shell { max-width: 900px; }
  .summary-grid { grid-template-columns: repeat(4, 1fr); }
  .nav-inner { max-width: 900px; }
}
