/* CFL-FONTS-MID (halfway between backups/css-pre-fonts and the prior larger scale) */
/* Records pages: reminders, unit history, standards, photo logs, contractors, year-end. Solid cream panels, dark 18px+ text. */
.rec { font-size: 1.2375rem; line-height: 1.5; color: #1d1d1c; }
.rec .panel-c { background: #fbf8f2; border: 1px solid #d6cec0; border-radius: 10px; padding: 1rem 1.05rem; margin: 0 0 1rem; box-shadow: 0 6px 16px rgba(29,29,28,0.06); }
.rec h1 { font-family: var(--serif); font-size: 1.8rem; margin: 0.1rem 0 0.2rem; color: #1d1d1c; }
.rec h2 { font-family: var(--serif); font-size: 1.375rem; margin: 0 0 0.6rem; color: #1d1d1c; }
.rec h3 { font-size: 1.2375rem; margin: 0 0 0.25rem; color: #1d1d1c; }
.rec p, .rec li, .rec label, .rec td, .rec th { font-size: 1.2375rem; color: #1d1d1c; }
.rec .muted, .rec .fine { color: #4a453e; font-size: 1.1187rem; }
.rec .eyebrow { font-size: 0.9875rem; }
.rec input[type=text], .rec input[type=date], .rec input[type=number], .rec input[type=email], .rec input[type=tel], .rec select, .rec textarea {
  width: 100%; font: inherit; font-size: 1.2375rem; padding: 0.7rem 0.8rem; border: 1.5px solid #b8ae9c; border-radius: 8px; background: #fff; color: #1d1d1c; min-height: 48px;
}
.rec textarea { min-height: 5rem; }
.rec .btn { font-size: 1.1187rem; min-height: 46px; }
.rec .btn-sm { font-size: 1.0938rem; min-height: 42px; }
.rec .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.rec .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.rec .stack { display: grid; gap: 0.75rem; }
.rec .row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.rec .lbl { display: block; font-weight: 700; margin-bottom: 0.25rem; }
.rec .tabs { display: flex; gap: 0.4rem; overflow-x: auto; margin: 0 0 1rem; padding-bottom: 0.2rem; }
.rec .tabs a { padding: 0.55rem 0.95rem; border-radius: 999px; background: #e9e3d5; color: #1d1d1c; text-decoration: none; font-weight: 700; white-space: nowrap; }
.rec .tabs a.is-on { background: #1d1d1c; color: #e9e3d5; }
.rec .note-box { background: #e9e3d5; border-left: 4px solid #1d1d1c; border-radius: 6px; padding: 0.7rem 0.85rem; margin: 0.6rem 0; }
.rem-list, .tl-list, .simple-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.rem-item { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; align-items: center; background: #fbf8f2; border: 1px solid #d6cec0; border-left: 6px solid #b4ad9e; border-radius: 8px; padding: 0.75rem 0.85rem; }
.rem-item.is-overdue { border-left-color: #8b534a; }
.rem-item.is-due_soon { border-left-color: #c4a36a; }
.rem-item.is-paused { opacity: 0.65; }
.rem-when { font-weight: 800; }
.rem-item.is-overdue .rem-when { color: #7a3328; }
.rem-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.tl-item { background: #fbf8f2; border: 1px solid #d6cec0; border-radius: 8px; padding: 0.75rem 0.85rem; }
.tl-top { display: flex; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.tl-date { font-weight: 800; white-space: nowrap; }
.tl-kind { display: inline-block; font-size: 0.9875rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; background: #e9e3d5; color: #1d1d1c; border-radius: 4px; padding: 0.1rem 0.45rem; margin-right: 0.35rem; }
.tl-files { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.tl-files a.thumbf { display: block; width: 84px; height: 84px; border-radius: 6px; overflow: hidden; border: 1px solid #d6cec0; background: #e9e3d5; }
.tl-files a.thumbf img { width: 100%; height: 100%; object-fit: cover; }
.tl-files a.pdf { display: inline-flex; align-items: center; height: 84px; padding: 0 0.8rem; border: 1px solid #d6cec0; border-radius: 6px; background: #e9e3d5; color: #1d1d1c; font-weight: 700; text-decoration: none; }
.dash-rem { margin: 0 0 1rem; }
.dash-rem .rem-item { padding: 0.6rem 0.75rem; }
.std-table { width: 100%; border-collapse: collapse; }
.std-table th, .std-table td { text-align: left; padding: 0.35rem 0.3rem; vertical-align: top; border-bottom: 1px solid #e3ddcf; }
.std-table th { font-size: 1.0938rem; }
.std-table input[type=text] { min-height: 42px; padding: 0.45rem 0.55rem; font-size: 1.1187rem; }
.std-rowlabel { font-weight: 700; min-width: 7rem; }
.room-sec { border-top: 1px solid #d6cec0; padding-top: 0.8rem; margin-top: 0.8rem; }
.room-sec:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; margin-top: 0.5rem; }
.ph-card { background: #fff; border: 1px solid #d6cec0; border-radius: 8px; overflow: hidden; }
.ph-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e9e3d5; }
.ph-cap { padding: 0.4rem 0.5rem; font-size: 1.0375rem; color: #1d1d1c; }
.ph-cap b { display: block; }
.ph-cap .x { margin-top: 0.3rem; }
.cmp-room { border-top: 2px solid #1d1d1c; padding-top: 0.7rem; margin-top: 1rem; break-inside: avoid; }
.cmp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.cmp-cols h4 { margin: 0 0 0.3rem; font-size: 1.1187rem; }
.cmp-cols .ph-grid { grid-template-columns: 1fr; }
.cond { font-weight: 800; }
.cond-damaged { color: #7a3328; }
.money { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.exp-table { width: 100%; border-collapse: collapse; }
.exp-table th, .exp-table td { padding: 0.45rem 0.4rem; border-bottom: 1px solid #e3ddcf; text-align: left; overflow-wrap: break-word; word-break: normal; }
.exp-table th { white-space: nowrap; }
.exp-table tfoot td { font-weight: 800; border-top: 2px solid #1d1d1c; }
.print-head { display: none; }
@media (max-width: 640px) {
  .rec .grid2, .rec .grid3 { grid-template-columns: 1fr; }
  .cmp-cols { gap: 0.4rem; }
  .cmp-cols .ph-cap { font-size: 1.0125rem; }
  .rem-item { grid-template-columns: 1fr; }
  .rem-actions { justify-content: flex-start; }
  .std-table thead { display: none; }
  .std-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; border-bottom: 1px solid #d6cec0; padding: 0.5rem 0; }
  .std-table td { border: 0; padding: 0; }
  .std-table td.std-rowlabel { grid-column: 1 / -1; }
  .std-table td::before { content: attr(data-h); display: block; font-size: 0.9875rem; font-weight: 700; color: #4a453e; }
}
@media print {
  .app-header, .sidebar, .mobile-nav, .no-print, .toast { display: none !important; }
  .ll-shell { display: block !important; }
  .ll-main, .dash { padding: 0 !important; margin: 0 !important; }
  body { background: #fff !important; }
  .rec .panel-c { box-shadow: none; border-color: #999; break-inside: avoid; }
  .print-head { display: block; }
  .cmp-cols .ph-grid { grid-template-columns: 1fr; }
  .ph-card img { aspect-ratio: auto; max-height: 9cm; object-fit: contain; }
}

.locked-card { border: 2px solid #1d1d1c; }
.locked-card ul { margin: 0.3rem 0 0.8rem 1.2rem; }
.blurred { filter: blur(5px); user-select: none; }
.teaser-box { height: 140px; border-radius: 8px; background: repeating-linear-gradient(45deg, #e9e3d5, #e9e3d5 10px, #e3ddcf 10px, #e3ddcf 20px); }

.made-with { margin: 1.2rem 0 0.4rem; padding-top: 0.5rem; border-top: 1px solid #d6cec0; text-align: center; font-size: 1.0125rem !important; color: #4a453e !important; letter-spacing: 0.02em; }
.made-with a { color: #1d1d1c; }
@media print { .made-with { font-size: 9pt !important; break-inside: avoid; } }
.share-big { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.share-big input { flex: 1 1 16rem; font-weight: 700; }
.share-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.share-stats div { background: #e9e3d5; border-radius: 8px; padding: 0.7rem; text-align: center; }
.share-stats b { display: block; font-size: 2.025rem; font-family: var(--serif); }
.rec label.btn-ink, .rec label.btn-amber, .rec label.btn-sage { color: var(--white); } /* "+ Photos" label-buttons were dark-on-dark */

/* Searchable unit-standards finder */
.std-find { position: relative; margin-top: 0.85rem; }
.std-find input[type=search] { width: 100%; min-height: 3rem; }
.std-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 0.2rem); z-index: 8;
  max-height: 18rem; overflow: auto;
  background: #fbf8f2; border: 1px solid #d6cec0; border-radius: 12px;
  box-shadow: 0 10px 28px rgba(29, 29, 28, 0.14);
}
.std-sg-h {
  padding: 0.5rem 0.85rem 0.15rem; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: #5c564e;
}
.std-sg-item {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 0.7rem 0.85rem; font: inherit; cursor: pointer; border-radius: 0;
}
.std-sg-item:hover, .std-sg-item.is-on { background: #e4d6d0; }
.std-saved { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.std-saved-item {
  width: 100%; text-align: left; border: 1px solid #d6cec0; background: #fbf8f2;
  border-radius: 12px; padding: 0.75rem 0.9rem; font: inherit; cursor: pointer;
}
.std-saved-item strong { display: block; font-size: 1.05rem; }
.std-saved-sum { display: block; color: #5c564e; margin-top: 0.2rem; }
.std-detail .eyebrow .linkish { background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }

.tl-year { list-style: none; margin: 0; }
.tl-year .tl-list, .tl-year .rem-list { margin-top: 0.5rem; }

/* Ontario rent-increase guideline + lease dates */
.rent-guide h2 { margin-top: 0; }
.rent-guide p { margin: 0.4rem 0 0; }
.rent-guide p:first-child { margin-top: 0; }
.rent-guide-links { flex-wrap: wrap; margin-top: 0.7rem; }
.dash-guide { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--line, #e4dfd5); }
.dash-rent-soon p { margin: 0.3rem 0 0; }
.rem-item.is-rent h3::after { content: " · N1"; font-weight: 500; color: #8a5a12; }
.lease-panel .rent-guide { margin-top: 0.4rem; }

/* Move-in vs move-out side by side on the walkthrough */
.room-sec { margin-top: 1rem; }
.cmp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; align-items: start; }
.cmp-col h4 { margin: 0 0 0.4rem; font-size: 0.92rem; }
.room-cmp .ph-grid { grid-template-columns: 1fr; }
@media (max-width: 359px) {
  .cmp-cols { grid-template-columns: 1fr; }
}

/* Rent ledger */
.rent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; margin-top: 0.7rem; }
.rent-month { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; padding: 0.5rem 0.55rem; border: 1px solid var(--line, #e4dfd5); border-radius: 10px; background: #fff; text-align: left; cursor: pointer; min-height: 3.4rem; width: 100%; font: inherit; }
.rent-month:disabled { opacity: 0.55; cursor: default; }
.rent-month-name { font-weight: 700; }
.rent-month-state { font-size: 0.8rem; color: #5c5850; line-height: 1.25; }
.rent-month-check { font-weight: 800; color: #2c6a3a; }
.rent-month.is-received { background: #eef6ee; border-color: #c5ddc8; }
.rent-month.is-late { background: #fbeeee; border-color: #e3c0c0; }
.rent-month.is-late .rent-month-state { color: #8a2b2b; font-weight: 700; }
.rent-mark { margin-top: 0.8rem; padding: 0.7rem; border: 1px solid var(--line, #e4dfd5); border-radius: 10px; background: #f6f1e6; }
@media (max-width: 480px) {
  .rent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec .tabs a { padding: 0.45rem 0.7rem; font-size: 0.92rem; }
  .dash-head { gap: 0.6rem; }
}

/* First-run setup + attention home */
.setup-card { margin: 0 0 1rem; }
.setup-steps { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.4rem 0 0.8rem; padding: 0; list-style: none; }
.setup-steps li { padding: 0.25rem 0.65rem; border-radius: 999px; background: #e9e3d5; font-size: 0.85rem; font-weight: 700; }
.setup-steps li.is-on { background: #1d1d1c; color: #e9e3d5; }
.setup-steps li.is-done { background: #c5ddc8; }
.setup-progress { margin: 0 0 0.6rem; font-weight: 600; }
.dash-home-section { margin: 0 0 1rem; }
.dash-home-section h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.attn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.attn-list a, .attn-list .attn-item { display: block; padding: 0.7rem 0.8rem; border: 1px solid var(--line, #e4dfd5); border-radius: 10px; background: #fff; text-decoration: none; color: inherit; }
.attn-list a:hover { border-color: #1d1d1c; }
.attn-item-title { font-weight: 700; margin: 0; }
.attn-item-meta { margin: 0.15rem 0 0; font-size: 0.9rem; color: #5c5850; }
.attn-late .attn-item-title, .badge-late { color: #8a2b2b; }
.dash-caught { text-align: left; padding: 1rem; }
.dash-board-wrap { margin-top: 1.2rem; }
.est-list { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.est-list li { padding: 0.45rem 0; border-top: 1px solid var(--line, #e4dfd5); }

.walk-types { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.walk-types a {
  display: inline-block; border: 1px solid var(--line, #d9d3c7); border-radius: 999px;
  padding: 0.4rem 0.85rem; background: #fff; color: inherit; text-decoration: none; font-weight: 600;
}
.walk-types a.is-on { background: var(--ink, #1c1915); color: #fff; border-color: var(--ink, #1c1915); }
.pdi-item { padding: 0.85rem 0; border-top: 1px solid var(--line, #e4dfd5); }
.pdi-item h3 { margin: 0; }
.pdi-status { display: flex; gap: 0.3rem; }
.pdi-status button { border: 1px solid var(--line, #d9d3c7); background: #fff; border-radius: 999px; padding: 0.2rem 0.7rem; font: inherit; cursor: pointer; }
.pdi-status button.is-on[data-status="open"] { background: #f4e3c0; border-color: #c9a35a; }
.pdi-status button.is-on[data-status="fixed"] { background: #d8ead4; border-color: #6e9b68; }
.pdi-item textarea { width: 100%; min-height: 3.2rem; margin-top: 0.35rem; }

/* hidden must beat .btn / .row / .panel-c display rules */
[hidden] { display: none !important; }
/* Compact PDI / QA report (1-2 letter pages) */
.rp-tbl { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
.rp-tbl th, .rp-tbl td { border: 1px solid #bbb; padding: .25rem .4rem; text-align: left; vertical-align: top; }
.rp-tbl thead th { background: #eee; font-size: .8rem; }
.rp-tbl tr.rp-room th { background: #f5f5f5; font-size: .82rem; padding: .15rem .4rem; }
.rp-tbl .rp-n { width: 2.6em; text-align: center; }
.rp-line { margin: .4rem 0; font-size: .88rem; }
.rp-h { font-size: 1rem; margin: .8rem 0 .3rem; }
.rp-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .4rem; }
.rp-thumbs figure { margin: 0; break-inside: avoid; }
.rp-thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border: 1px solid #ccc; }
.rp-thumbs figcaption { font-size: .68rem; line-height: 1.2; margin-top: .1rem; }
@media print {
  @page { size: letter; margin: 0.4in; }
  body.rp-pdi { font-size: 10.5pt !important; background: #fff !important; color: #000 !important; }
  body.rp-pdi #report .panel-c, body.rp-pdi .rp-compact { border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 0 6pt !important; background: #fff !important; }
  body.rp-pdi #report h1 { font-size: 15pt !important; margin: 0 0 2pt !important; }
  body.rp-pdi #report .eyebrow { font-size: 8pt !important; margin: 0 !important; }
  body.rp-pdi #report p { margin: 1pt 0 !important; }
  body.rp-pdi #report .fine { font-size: 8pt !important; }
  body.rp-pdi .rp-tbl { font-size: 10pt; }
  body.rp-pdi .rp-tbl th, body.rp-pdi .rp-tbl td { border-color: #000; padding: 2pt 4pt; }
  body.rp-pdi .rp-tbl tr { break-inside: avoid; }
  body.rp-pdi .rp-tbl thead { display: table-header-group; }
  body.rp-pdi .rp-line { font-size: 9.5pt; }
  body.rp-pdi .rp-h { font-size: 11pt; margin: 6pt 0 3pt; }
  body.rp-pdi .rp-thumbs { grid-template-columns: repeat(6, 1fr); gap: 4pt; }
  body.rp-pdi .rp-thumbs figcaption { font-size: 7pt; }
  body.rp-pdi .ll-main, body.rp-pdi main.dash { padding: 0 !important; margin: 0 !important; }
}
.rp-tbl { table-layout: fixed; line-height: 1.25; }
.rp-tbl th:nth-child(2) { width: 30%; } .rp-tbl th:nth-child(4) { width: 4.5em; } .rp-tbl th.rp-n { width: 3.2em; }
@media print { body.rp-pdi .rp-tbl, body.rp-pdi .rp-tbl * { line-height: 1.2 !important; } body.rp-pdi .rp-tbl td, body.rp-pdi .rp-tbl th { padding: 1.5pt 4pt !important; } body.rp-pdi .rp-tbl tr.rp-room th { font-size: 8.5pt !important; padding: 1pt 4pt !important; } }
@media print { body.rp-pdi .rp-tbl td, body.rp-pdi .rp-tbl td b { font-size: 10pt !important; } body.rp-pdi .rp-tbl thead th { font-size: 8.5pt !important; } }

/* Paid-report preview + unlock (t780u) */
.pp-sample { display: block; margin: .7rem 0 .9rem; padding: .6rem; border: 1px solid #d9d0bf; border-radius: 14px; background: #fff; color: inherit; text-decoration: none; }
.pp-imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .5rem; }
.pp-img { display: block; }
.pp-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.pp-img small { display: block; margin-top: .25rem; font-size: .8rem; font-weight: 600; color: #5c564e; }
.pp-cta { display: block; margin-top: .5rem; font-weight: 700; text-decoration: underline; }
.pp-btns { gap: .5rem; flex-wrap: wrap; }
.pp-btns .btn { flex-direction: column; line-height: 1.15; }
.pp-price { display: block; font-size: .78rem; font-weight: 600; opacity: .9; margin-top: .15rem; }
