:root {
  --green-950: #102f28;
  --green-900: #173f35;
  --green-800: #245d4d;
  --green-700: #2f735f;
  --green-100: #dfece7;
  --green-050: #eef3f1;
  --white: #ffffff;
  --ink: #17211e;
  --muted: #68736f;
  --border: #d2ddd9;
  --border-strong: #b8c8c2;
  --good: #287647;
  --good-bg: #e2f2e8;
  --watch: #9a6500;
  --watch-bg: #fff0cf;
  --major: #aa3636;
  --major-bg: #fbe2e2;
  --neutral-bg: #edf0ef;
  --shadow-sm: 0 3px 10px rgba(16, 47, 40, .06);
  --shadow-md: 0 10px 28px rgba(16, 47, 40, .10);
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 19px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, video { display: block; max-width: 100%; }

.acq-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(36,93,77,.08), transparent 26rem),
    var(--green-050);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.site-hero {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255,255,255,.04), transparent 45%),
    linear-gradient(115deg, var(--green-950), var(--green-900) 52%, var(--green-800));
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(16,47,40,.18);
}

.site-hero__inner {
  width: min(var(--content), 100%);
  margin: 0 auto;
  padding: 32px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.site-hero h1 { margin: 3px 0 5px; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.035em; }
.site-hero p { margin: 0; color: rgba(255,255,255,.76); max-width: 720px; }
.hero-badge { padding: 9px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.08); font-size: .78rem; font-weight: 800; white-space: nowrap; }

.page-shell { width: min(var(--content), 100%); margin: 0 auto; padding: 22px 15px 80px; }
.property-page { display: grid; gap: 18px; }

.property-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: rgba(23,63,53,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 6px 22px rgba(16,47,40,.20);
}
.property-header__inner { width: min(var(--content), 100%); margin: 0 auto; padding: 11px 16px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.property-header__title h1 { margin: 0; font-size: clamp(1.1rem, 3vw, 1.55rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.property-header__title p { margin: 1px 0 0; color: rgba(255,255,255,.68); font-size: .82rem; }
.back-link { color: white; text-decoration: none; font-weight: 750; font-size: .86rem; white-space: nowrap; }
.save-state { min-width: 74px; padding: 7px 10px; border-radius: 999px; text-align: center; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.20); font-size: .75rem; font-weight: 800; }
.save-state.is-saving { background: rgba(255,240,207,.18); color: #fff1c8; }
.save-state.is-error { background: rgba(170,54,54,.92); color: white; }

.card, .system-card, .property-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.card { padding: clamp(16px, 2.3vw, 24px); }

h1, h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 6px; font-size: clamp(1.35rem, 2.5vw, 1.8rem); letter-spacing: -.025em; }
h3 { letter-spacing: -.015em; }
.eyebrow { color: var(--green-700); font-size: .72rem; font-weight: 900; letter-spacing: .115em; text-transform: uppercase; }
.eyebrow--light { color: rgba(255,255,255,.66); }
.eyebrow--danger { color: var(--major); }
.section-heading { margin-bottom: 17px; }
.section-heading h2 { margin-top: 3px; }
.section-heading p { margin: 0; color: var(--muted); max-width: 760px; }
.section-heading--actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.section-heading--list { margin: 24px 0 13px; display: flex; justify-content: space-between; align-items: end; gap: 15px; }

.form-grid, .summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; color: var(--ink); font-size: .83rem; font-weight: 800; }
.field--wide { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
textarea { resize: vertical; min-height: 48px; }
input:focus, select:focus, textarea:focus { border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(47,115,95,.12); }
input[readonly] { background: #f3f6f5; color: var(--muted); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 10px 14px; border: 1px solid transparent; border-radius: var(--radius-sm); text-decoration: none; font-weight: 850; line-height: 1; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { color: white; background: linear-gradient(180deg, var(--green-700), var(--green-800)); box-shadow: 0 6px 14px rgba(36,93,77,.20); }
.button--secondary { color: var(--green-900); background: white; border-color: var(--border); }
.button--upload { color: white; background: var(--green-800); cursor: pointer; }
.button--compact { min-height: 36px; padding: 8px 10px; font-size: .76rem; white-space: nowrap; }
.button--delete-card { width: 100%; min-height: 41px; color: var(--major); background: white; border: 0; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-md) var(--radius-md); }
.button--delete-card:hover { background: var(--major-bg); }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; }
.text-button { padding: 3px 0; border: 0; background: transparent; font-size: .75rem; font-weight: 850; }
.text-button--danger { color: var(--major); }

.count-pill { padding: 7px 10px; border-radius: 999px; color: var(--green-800); background: var(--green-100); font-size: .76rem; font-weight: 850; white-space: nowrap; }

.property-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.property-card { overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.property-card:hover { transform: translateY(-2px); box-shadow: 0 14px 35px rgba(16,47,40,.13); }
.property-card__main { display: block; padding: 17px; color: inherit; text-decoration: none; }
.property-card__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.property-card__header h3 { margin: 0 0 3px; font-size: 1.05rem; }
.property-card__header p { margin: 0; color: var(--muted); font-size: .82rem; }
.decision-badge { padding: 6px 9px; border-radius: 999px; background: var(--neutral-bg); color: var(--muted); font-size: .7rem; font-weight: 900; white-space: nowrap; }
.decision-badge--buy { background: var(--good-bg); color: var(--good); }
.decision-badge--maybe { background: var(--watch-bg); color: var(--watch); }
.decision-badge--pass { background: var(--major-bg); color: var(--major); }
.money-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.money-grid div { padding: 9px; border-radius: 10px; background: #f5f8f7; }
.money-grid span { display: block; color: var(--muted); font-size: .67rem; font-weight: 750; }
.money-grid strong { display: block; margin-top: 2px; font-size: .94rem; }
.property-card__stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.property-card__stats span { padding: 5px 8px; border-radius: 999px; background: var(--neutral-bg); color: var(--muted); font-size: .69rem; font-weight: 800; }
.property-card__stats .stat--danger { color: var(--major); background: var(--major-bg); }
.property-card__footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: .72rem; }
.open-link { color: var(--green-800); font-weight: 900; }
.property-grid__empty { grid-column: 1 / -1; }

.empty-state { padding: 36px 20px; border: 2px dashed var(--border-strong); border-radius: var(--radius-md); text-align: center; color: var(--muted); background: rgba(255,255,255,.56); }
.empty-state h3 { margin: 7px 0 4px; color: var(--ink); }
.empty-state p { margin: 0; }
.empty-state__icon { color: var(--green-700); font-size: 2rem; }

.impression-row { margin: 15px 0; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--border); border-radius: 12px; background: #f8faf9; }
.impression-row strong { display: block; }
.impression-row span { display: block; color: var(--muted); font-size: .76rem; }
.stars { display: flex; }
.stars button { padding: 0 2px; border: 0; background: transparent; color: #b6beb9; font-size: 1.9rem; line-height: 1; }
.stars button.is-selected { color: #dfa407; text-shadow: 0 2px 8px rgba(223,164,7,.18); }

.video-upload-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.upload-card { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: linear-gradient(180deg, #fbfcfc, #f5f8f7); }
.upload-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.upload-card__header h3 { margin: 2px 0 0; font-size: .96rem; }
.upload-card__number { color: var(--green-700); font-size: .65rem; font-weight: 900; letter-spacing: .1em; }
.upload-progress { min-height: 20px; margin: 7px 0; color: var(--muted); font-size: .72rem; }
.video-list { display: grid; gap: 8px; }
.video-tile { overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.video-tile video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #111; }
.video-tile__meta { display: flex; justify-content: space-between; gap: 8px; padding: 8px; align-items: center; }
.video-tile__meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .7rem; }
.upload-placeholder { padding: 22px 12px; border: 1px dashed var(--border-strong); border-radius: 9px; text-align: center; color: var(--muted); font-size: .75rem; }

.inspection-section { display: grid; gap: 18px; }
.inspection-heading { margin-bottom: 0; }
.system-group { display: grid; gap: 9px; }
.group-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 2px; }
.group-heading h3 { margin: 0; color: var(--green-900); font-size: 1rem; }
.group-heading span { color: var(--muted); font-size: .72rem; }
.system-stack { display: grid; gap: 10px; }
.system-card { overflow: hidden; }
.system-card__top { display: grid; grid-template-columns: minmax(240px, 1.25fr) minmax(300px, 1fr) auto auto; gap: 10px; align-items: center; padding: 13px 14px 9px; }
.system-toggle { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; color: var(--ink); }
.system-toggle__icon { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--green-100); color: var(--green-900); font-size: 1.45rem; line-height: 1; transition: transform .18s ease; }
.system-card[data-open="true"] .system-toggle__icon { transform: rotate(90deg); }
.system-toggle strong { display: block; font-size: .94rem; }
.system-toggle small { display: block; margin-top: 1px; color: var(--muted); font-size: .68rem; }
.media-count { color: var(--muted); font-size: .7rem; font-weight: 800; white-space: nowrap; }
.system-card__quick { padding: 0 14px 12px 51px; }
.system-quick-notes { min-height: 45px; }

.segmented { display: grid; gap: 5px; }
.segmented--system { grid-template-columns: repeat(4, minmax(56px, 1fr)); }
.segmented--detail { grid-template-columns: repeat(4, minmax(48px, 1fr)); }
.segment { position: relative; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment span { display: block; padding: 7px 5px; border: 1px solid var(--border); border-radius: 8px; background: white; color: var(--muted); text-align: center; font-size: .71rem; font-weight: 850; transition: background .12s ease, border-color .12s ease, color .12s ease; }
.segment input:focus-visible + span { box-shadow: 0 0 0 3px rgba(47,115,95,.15); }
.segment--good input:checked + span, .segment--ok input:checked + span { color: var(--good); background: var(--good-bg); border-color: rgba(40,118,71,.55); }
.segment--watch input:checked + span, .segment--concern input:checked + span { color: var(--watch); background: var(--watch-bg); border-color: rgba(154,101,0,.55); }
.segment--major input:checked + span { color: var(--major); background: var(--major-bg); border-color: rgba(170,54,54,.55); }
.segment--not_checked input:checked + span, .segment--na input:checked + span { color: #59645f; background: var(--neutral-bg); border-color: #c9d1ce; }
.segment--detail span { padding: 6px 4px; font-size: .66rem; }

.media-strip { display: flex; gap: 7px; padding: 0 14px 12px 51px; overflow-x: auto; }
.media-thumb { position: relative; width: 82px; height: 62px; flex: 0 0 auto; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #111; }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; }
.play-badge, .gallery-play { position: absolute; inset: 0; display: grid; place-items: center; color: white; background: rgba(0,0,0,.25); font-size: 1.1rem; }
.system-details { padding: 15px 15px 16px 51px; border-top: 1px solid var(--border); background: #f7faf8; }
.details-heading { margin-bottom: 7px; }
.details-heading strong { display: block; }
.details-heading span { color: var(--muted); font-size: .74rem; }
.detail-list { display: grid; }
.detail-row { display: grid; grid-template-columns: minmax(260px, 1.3fr) minmax(230px, .9fr) minmax(170px, .8fr); gap: 9px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: 0; }
.detail-row__question { font-size: .82rem; font-weight: 760; }
.detail-notes { padding: 8px 9px; font-size: .78rem; }

.deal-card { border-color: rgba(170,54,54,.22); box-shadow: 0 10px 28px rgba(170,54,54,.07); }
.deal-grid { display: grid; gap: 8px; }
.deal-row { display: grid; grid-template-columns: minmax(290px, 1.1fr) 1fr; gap: 10px; align-items: center; padding: 10px; border: 1px solid #ead1d1; border-radius: 10px; background: #fffafa; }
.deal-check { display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 800; }
.deal-check input { width: 20px; height: 20px; accent-color: var(--major); }
.deal-notes { padding: 8px 9px; font-size: .78rem; }

.repair-total { padding: 9px 12px; border-radius: 10px; background: var(--green-100); color: var(--green-900); font-size: .78rem; }
.repair-total strong { margin-left: 6px; font-size: 1.1rem; }
.repair-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.repair-form__submit { align-self: end; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 11px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 820px; background: white; }
.data-table th, .data-table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; font-size: .76rem; vertical-align: top; }
.data-table th { color: var(--green-900); background: #f4f8f6; font-weight: 900; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .numeric { text-align: right; white-space: nowrap; }
.priority { padding: 4px 7px; border-radius: 999px; font-size: .65rem; font-weight: 900; }
.priority--high { color: var(--major); background: var(--major-bg); }
.priority--medium { color: var(--watch); background: var(--watch-bg); }
.priority--low { color: var(--good); background: var(--good-bg); }
.empty-row td { padding: 24px; text-align: center; color: var(--muted); }

.offer-card { background: linear-gradient(140deg, #fff, #f6faf8); }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.offer-result { grid-column: span 1; display: grid; align-content: center; padding: 13px; border-radius: 11px; color: white; background: linear-gradient(135deg, var(--green-900), var(--green-700)); box-shadow: 0 8px 18px rgba(36,93,77,.20); }
.offer-result span { font-size: .7rem; font-weight: 800; opacity: .75; }
.offer-result strong { margin-top: 3px; font-size: 1.55rem; letter-spacing: -.03em; }
.fine-print { margin: 12px 0 0; color: var(--muted); font-size: .7rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.gallery-card { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 11px; background: white; }
.gallery-card__preview { position: relative; width: 100%; padding: 0; border: 0; background: #111; }
.gallery-card__preview img, .gallery-card__preview video { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-card figcaption { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 9px; }
.gallery-card figcaption > div { min-width: 0; display: grid; }
.gallery-card figcaption strong, .gallery-card figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-card figcaption strong { font-size: .75rem; }
.gallery-card figcaption span { color: var(--muted); font-size: .66rem; }
.gallery-grid__empty { grid-column: 1 / -1; }

.timeline { display: grid; }
.timeline__item { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.timeline__item:last-child { border-bottom: 0; }
.timeline time { color: var(--muted); font-size: .7rem; }
.timeline strong { display: block; font-size: .78rem; }
.timeline span { display: block; color: var(--muted); font-size: .72rem; }

.alert { padding: 11px 13px; border-radius: 10px; font-size: .8rem; font-weight: 750; }
.alert--warning { color: var(--watch); background: var(--watch-bg); border: 1px solid rgba(154,101,0,.25); }

.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.lightbox__backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(8,20,17,.83); }
.lightbox__dialog { position: relative; z-index: 1; width: min(1000px, 96vw); max-height: 92vh; padding: 12px; border-radius: 14px; background: #0b1210; box-shadow: 0 25px 70px rgba(0,0,0,.45); }
.lightbox__dialog img, .lightbox__dialog video { width: 100%; max-height: 86vh; object-fit: contain; }
.lightbox__close { position: absolute; top: -12px; right: -12px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; color: white; background: var(--major); font-size: 1.3rem; box-shadow: var(--shadow-md); }

.error-page { display: grid; place-items: center; padding: 20px; }
.error-card { width: min(520px, 100%); padding: 34px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-md); text-align: center; }
.error-card__icon { width: 58px; height: 58px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--major); font-size: 1.8rem; font-weight: 900; }
.error-card h1 { margin: 5px 0 8px; }
.error-card p { color: var(--muted); }

.report-body { margin: 0; color: #202522; background: #edf1ef; font-family: Arial, sans-serif; }
.report-shell { width: min(1000px, 100%); margin: 0 auto; padding: 22px; background: white; }
.report-actions { display: flex; justify-content: space-between; margin-bottom: 15px; }
.report-header { padding: 22px; color: white; background: var(--green-900); }
.report-header h1 { margin: 4px 0; }
.report-header p { margin: 0; color: rgba(255,255,255,.72); }
.report-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.report-summary div { padding: 10px; border: 1px solid var(--border); }
.report-summary span { display: block; color: var(--muted); font-size: .7rem; }
.report-summary strong { display: block; margin-top: 3px; }
.report-section { margin: 20px 0; }
.report-section h2 { font-size: 1.15rem; }
.report-table { width: 100%; border-collapse: collapse; }
.report-table th, .report-table td { padding: 8px; border: 1px solid #cfd7d3; text-align: left; font-size: .78rem; vertical-align: top; }
.report-table th { background: #f0f5f3; }
.report-total { font-weight: bold; background: #e8f1ed; }
.report-status--major td { background: #fff1f1; }
.report-status--watch td { background: #fff9e9; }
.report-list { padding-left: 20px; }
.preserve-lines { white-space: pre-wrap; }

@media (max-width: 980px) {
  .video-upload-grid { grid-template-columns: 1fr; }
  .system-card__top { grid-template-columns: minmax(0, 1fr) auto; }
  .system-toggle { grid-column: 1; }
  .media-count { grid-column: 2; grid-row: 1; }
  .segmented--system { grid-column: 1 / -1; }
  .button--compact { grid-column: 1 / -1; justify-self: start; }
  .system-card__quick, .media-strip, .system-details { padding-left: 14px; }
  .detail-row { grid-template-columns: 1fr; }
  .repair-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-result { grid-column: span 1; }
}

@media (max-width: 720px) {
  .site-hero__inner { align-items: flex-start; flex-direction: column; }
  .property-header__inner { grid-template-columns: 1fr auto; }
  .property-header__title { grid-column: 1 / -1; grid-row: 2; }
  .section-heading--actions, .section-heading--list { align-items: flex-start; flex-direction: column; }
  .form-grid, .summary-grid, .property-grid, .gallery-grid, .repair-form, .offer-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .money-grid { grid-template-columns: 1fr 1fr 1fr; }
  .impression-row { align-items: flex-start; flex-direction: column; }
  .system-card__top { grid-template-columns: 1fr; }
  .system-toggle, .media-count, .segmented--system, .button--compact { grid-column: 1; grid-row: auto; }
  .segmented--system { grid-template-columns: repeat(4, 1fr); }
  .deal-row { grid-template-columns: 1fr; }
  .offer-result { grid-column: auto; }
  .timeline__item { grid-template-columns: 1fr; gap: 3px; }
  .report-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 460px) {
  .page-shell { padding-left: 10px; padding-right: 10px; }
  .card { padding: 15px; }
  .property-header__inner { padding-left: 11px; padding-right: 11px; }
  .back-link { font-size: .76rem; }
  .save-state { min-width: 65px; }
  .money-grid { grid-template-columns: 1fr; }
  .property-card__footer { align-items: flex-start; flex-direction: column; }
  .segmented--system { grid-template-columns: repeat(2, 1fr); }
  .segmented--detail { grid-template-columns: repeat(2, 1fr); }
  .report-summary { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Streamlined 4.1 inspection checklist
   ========================================================================== */

.check-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.check-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-icon {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  font-size: 1rem;
  line-height: 1;
}

.legend-icon--ok { color: white; background: var(--good); }
.legend-icon--issue { color: white; background: var(--major); }
.legend-icon--blank { color: var(--muted); background: var(--neutral-bg); }

.system-stack--streamlined {
  display: grid;
  gap: 14px;
}

.system-card--streamlined {
  overflow: hidden;
  border-color: #c9d8d2;
}

.system-card__header {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(330px, .9fr);
  gap: 18px;
  align-items: center;
  padding: 15px 17px;
  background:
    linear-gradient(90deg, rgba(223,236,231,.70), rgba(255,255,255,.96) 55%),
    white;
  border-bottom: 1px solid var(--border);
}

.system-card__identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.system-number {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: linear-gradient(145deg, var(--green-700), var(--green-900));
  box-shadow: 0 6px 13px rgba(36,93,77,.18);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.system-card__identity h4 {
  margin: 0;
  color: var(--green-950);
  font-size: 1.03rem;
  letter-spacing: -.015em;
}

.system-card__identity p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .70rem;
}

.system-overall {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.system-overall__label {
  color: var(--muted);
  font-size: .70rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.system-guidance {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  margin: 14px 17px 11px;
  padding: 12px 13px;
  border: 1px solid #cfe0d9;
  border-radius: 11px;
  background: linear-gradient(135deg, #f1f8f5, #f8fbfa);
}

.system-guidance__icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green-700);
  font-family: Georgia, serif;
  font-size: .88rem;
  font-weight: 900;
}

.system-guidance strong {
  display: block;
  color: var(--green-900);
  font-size: .76rem;
}

.system-guidance p {
  margin: 2px 0 0;
  color: #4d5d57;
  font-size: .75rem;
  line-height: 1.45;
}

.quick-check-list {
  margin: 0 17px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: white;
}

.quick-check-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.quick-check-row:last-child {
  border-bottom: 0;
}

.quick-check-row:nth-child(even) {
  background: #fafcfb;
}

.quick-check-row__label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-check-row__label > span {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--green-800);
  background: var(--green-100);
  font-size: .62rem;
  font-weight: 900;
}

.quick-check-row__label strong {
  font-size: .80rem;
  font-weight: 780;
  line-height: 1.3;
}

.binary-checks {
  display: flex;
  align-items: center;
  gap: 6px;
}

.binary-choice {
  position: relative;
}

.binary-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.binary-choice > span {
  min-width: 56px;
  height: 38px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 5px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  color: var(--muted);
  background: white;
  transition: transform .12s ease, border-color .12s ease, background .12s ease, color .12s ease, box-shadow .12s ease;
}

.binary-choice > span:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.binary-choice b {
  font-size: 1.1rem;
  line-height: 1;
}

.binary-choice small {
  font-size: .62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.binary-choice--ok input:checked + span {
  color: white;
  border-color: var(--good);
  background: var(--good);
  box-shadow: 0 5px 12px rgba(40,118,71,.20);
}

.binary-choice--issue input:checked + span {
  color: white;
  border-color: var(--major);
  background: var(--major);
  box-shadow: 0 5px 12px rgba(170,54,54,.20);
}

.clear-check {
  min-height: 36px;
  padding: 5px 7px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: .63rem;
  font-weight: 850;
}

.clear-check:hover {
  color: var(--green-900);
  background: var(--neutral-bg);
}

.system-card__workflow {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 13px;
  padding: 13px 17px 17px;
}

.system-notes-field textarea {
  min-height: 105px;
}

.system-media-panel {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #f8faf9;
}

.system-media-panel__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
}

.system-media-panel__top strong {
  display: block;
  font-size: .78rem;
}

.system-media-panel__top .media-count {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 750;
}

.system-upload-progress {
  min-height: 18px;
  margin-top: 5px;
  color: var(--muted);
  font-size: .67rem;
}

.media-strip--workflow {
  padding: 6px 0 0;
}

.system-media-empty {
  margin-top: 6px;
  padding: 10px;
  border: 1px dashed var(--border-strong);
  border-radius: 9px;
  color: var(--muted);
  background: white;
  font-size: .68rem;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .system-card__header {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .system-overall {
    grid-template-columns: auto 1fr;
  }

  .system-card__workflow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .check-legend {
    display: grid;
    grid-template-columns: 1fr;
  }

  .system-card__header {
    padding: 13px;
  }

  .system-overall {
    grid-template-columns: 1fr;
  }

  .system-guidance {
    margin-left: 13px;
    margin-right: 13px;
  }

  .quick-check-list {
    margin-left: 13px;
    margin-right: 13px;
  }

  .quick-check-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .binary-checks {
    padding-left: 35px;
  }

  .binary-choice > span {
    min-width: 70px;
  }

  .system-card__workflow {
    padding: 12px 13px 15px;
  }
}

@media (max-width: 390px) {
  .segmented--system {
    grid-template-columns: repeat(2, 1fr);
  }

  .binary-checks {
    padding-left: 0;
  }

  .binary-choice {
    flex: 1;
  }

  .binary-choice > span {
    width: 100%;
    min-width: 0;
  }
}

@media print {
  .report-body { background: white; }
  .report-shell { width: 100%; padding: 0; }
  .report-actions { display: none; }
  .report-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report-section { break-inside: avoid; }
  .button, .property-header, .lightbox { display: none !important; }
}
