:root {
  --bg: #f8f6f1;
  --surface: #ffffff;
  --ink: #1f2937;
  --muted: #5b6472;
  --line: #e4dfd2;
  --accent: #b45309;
  --accent-2: #15803d;
  --warn: #c2410c;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px rgba(16, 24, 40, 0.06);
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand h1 {
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.01em;
}
.tagline {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.site-nav a {
  font-size: 14px;
  color: var(--ink);
}

main { max-width: 1100px; margin: 0 auto; padding: 32px 24px 64px; }

section { margin-bottom: 56px; }
.section-head h2 {
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.section-head p {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 640px;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero h2 {
  font-size: 28px;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.hero p { color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

.hero-card {
  background: #fffaf0;
  border: 1px dashed #e7d7b4;
  border-radius: var(--radius);
  padding: 16px;
  font-size: 14px;
}
.card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.card-row em { color: var(--muted); font-style: normal; margin-left: auto; font-size: 12px; }
.tag {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}
.card-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e7d7b4;
  color: var(--accent-2);
  font-weight: 600;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot.dog { background: #b45309; }
.dot.cat { background: #15803d; }
.dot.bird { background: #0ea5e9; }
.dot.other { background: #7c3aed; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover { background: #92400e; }
.btn.ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn.ghost:hover { background: #f3f1ea; }

.layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.pet-form { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { font-size: 13px; font-weight: 600; color: var(--ink); }
input, select, textarea {
  font: inherit;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid #fcd34d;
  outline-offset: 1px;
  border-color: #b45309;
}
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.presets { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.presets h3 { margin: 0 0 6px; font-size: 15px; }
.presets ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.preset {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  cursor: pointer;
}
.preset:hover { background: #fff7ed; }

.roster { margin-top: 20px; }
.roster h3 { font-size: 15px; margin: 0 0 10px; }
.pet-list { display: grid; gap: 10px; }
.pet-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafaf7;
}
.pet-item .name { font-weight: 600; }
.pet-item .meta { font-size: 13px; color: var(--muted); }
.pet-item .actions { display: flex; gap: 6px; }
.icon-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}
.icon-btn:hover { background: #f3f1ea; }

.empty-state {
  margin-top: 10px;
  padding: 14px;
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.side { display: grid; gap: 16px; align-content: start; }
.side-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.side-block h3 { margin: 0 0 6px; font-size: 15px; }
.side-block p, .side-block ul { margin: 0; font-size: 14px; color: var(--muted); }
.side-block ul { padding-left: 18px; margin-top: 6px; }

.schedule-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.schedule-grid {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.grid-head, .grid-row {
  display: grid;
  grid-template-columns: 140px repeat(24, 1fr);
  align-items: center;
  font-size: 12px;
}
.grid-head {
  background: #f3f1ea;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.grid-head .hour, .grid-row .hour {
  padding: 6px 8px;
  border-right: 1px solid var(--line);
}
.grid-row { border-bottom: 1px solid var(--line); }
.grid-row:last-child { border-bottom: none; }
.cell {
  height: 22px;
  border-left: 1px solid #f1ede1;
  background: #fbfaf6;
}
.cell.out { background: #fde68a; }
.cell.bark { background: #fca5a5; }
.cell.active { background: #bbf7d0; }
.cell.bird { background: #bae6fd; }

.heatmap {
  display: grid;
  grid-template-columns: 140px repeat(24, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.heatmap-head {
  background: #f3f1ea;
  padding: 6px 8px;
  font-weight: 600;
  font-size: 12px;
  border-right: 1px solid var(--line);
}
.heatmap-head.hour, .heatmap-cell {
  padding: 6px 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.heatmap-cell { height: 28px; }
.heat-0 { background: #fbfaf6; }
.heat-1 { background: #fef3c7; }
.heat-2 { background: #fdba74; }
.heat-3 { background: #f87171; }
.heat-4 { background: #b91c1c; color: #fff; }

.legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid var(--line);
}
.swatch.low { background: #fef3c7; }
.swatch.med { background: #fdba74; }
.swatch.high { background: #f87171; }

.scenario {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.scenario-col h3 { margin: 0 0 8px; font-size: 16px; }
.scenario-col ul { padding-left: 18px; }
.scenario-col li { margin-bottom: 6px; }

#building-notes {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  font: inherit;
  box-shadow: var(--shadow);
}

.troubleshoot {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.troubleshoot h3 { margin: 0 0 6px; font-size: 15px; }
.troubleshoot ol { padding-left: 18px; margin: 0; }
.troubleshoot li { margin-bottom: 4px; font-size: 14px; }
.troubleshoot p { font-size: 14px; color: var(--muted); }

.steps { padding-left: 22px; display: grid; gap: 10px; max-width: 720px; }
.steps li { font-size: 15px; }
.content h3 { margin-top: 24px; font-size: 16px; }
.content p, .content ul { color: var(--muted); max-width: 720px; }
.content ul { padding-left: 18px; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.footer-inner nav { display: flex; gap: 16px; flex-wrap: wrap; }

.muted { color: var(--muted); font-size: 13px; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .scenario, .troubleshoot { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .grid-head, .grid-row { grid-template-columns: 120px repeat(24, 1fr); font-size: 11px; }
  .heatmap { grid-template-columns: 120px repeat(24, 1fr); }
  .site-header { flex-direction: column; align-items: flex-start; }
}

@media print {
  body { background: #fff; }
  .site-header, .site-footer, .schedule-controls, .hero-actions, .presets, .form-actions, .side { display: none; }
  main { padding: 0; max-width: none; }
  section { page-break-inside: avoid; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
