/* DOES: Stylesheet for preprestore.com/home-inventory/ (Room-by-Room Pre-Storm Home Inventory & Photo Tracker).
   IN:   CSS custom properties from /assets/pr.css?v=20261204d; html[data-mode="light|dark"]
   OUT:  Progress bar, 7-room interactive tracker cards, dynamic item schedule rows, print-ready inventory table
   LAWS: 0 <style> tags, 0 style= attributes, 0 em-dashes, normal vertical scrolling (overflow-y: auto). */

html, body {
  overflow-y: auto;
}

.inv-hero {
  padding-block: clamp(28px, 5vw, 56px) clamp(20px, 3vw, 32px);
  max-width: 56rem;
}

.privacy-banner {
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--ink);
}

.privacy-banner strong {
  font-weight: 700;
}

.inv-dashboard {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 18px;
}

.inv-dash-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.inv-score-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}

.inv-pct {
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1;
  color: var(--ink);
}

.inv-count {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.inv-progress {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  accent-color: var(--accent);
}

.inv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.inv-status-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ok);
  font-weight: 600;
}

.inv-areas {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.area-card {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.area-card[data-complete="true"] {
  border-color: var(--ok);
}

.area-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.area-head > div {
  min-width: 0;
  max-width: 44rem;
}

.area-title {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  margin: 4px 0 6px;
}

.area-guide {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.area-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--soft);
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
}

.area-card[data-complete="true"] .area-pill {
  background: transparent;
  color: var(--ok);
  border-color: var(--ok);
}

.photo-checks {
  display: grid;
  gap: 10px;
}

@media (min-width: 780px) {
  .photo-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.photo-check {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
}

.photo-check input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 1.1rem;
  padding: 0;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.item-rows {
  display: grid;
  gap: 10px;
}

.item-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

@media (min-width: 900px) {
  .item-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
  }
}

.item-row input {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.92rem;
}

.area-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .inv-toolbar .btn,
  .actions .btn {
    white-space: normal;
    text-align: center;
    padding-block: 10px;
  }
}

@media print {
  .site-head,
  .site-foot,
  .inv-toolbar,
  .area-foot,
  #resource-links,
  #newsletter,
  #contact {
    display: none;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
  .area-card,
  .inv-dashboard {
    break-inside: avoid;
    border-color: #666666;
  }
}
