/* CFL-FONTS-MID (halfway between backups/css-pre-fonts and the prior larger scale) */
/* Additions for the working app, on top of the mockup's styles.css (Elora Mill palette). */
.ll-page { min-height: 100vh; }
input[type="password"], input[type="search"] {
  padding: 0.72rem 0.8rem; border: 1px solid #cfc7b8; border-radius: 6px; background: var(--white); color: var(--text); font: inherit;
}
.field input[type="password"] { width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--cedar); outline-offset: 2px; }
.sr-only { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.center { text-align: center; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.form-card .btn-full + .btn-full { margin-top: 0.6rem; }
.form-error {
  margin: 0 0 0.9rem; padding: 0.65rem 0.8rem; border-radius: 6px;
  background: #f6ece8; border: 1px solid #e4c9c2; color: var(--amber-deep); font-weight: 600; font-size: 1.0125rem;
}
.form-error[hidden] { display: none; }
.linkish { background: none; border: 0; padding: 0; color: var(--amber); font: inherit; text-decoration: underline; cursor: pointer; }
.btn-ghost { background: transparent; border: 1px solid transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); border-color: var(--line); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Mobile landlord nav (sidebar is hidden under 960px).
   Tabs never shrink or overlap: they stay nowrap with real padding and
   scroll sideways. "More" stays pinned so its menu isn't clipped.
   A fade on the scroller shows that a cut-off label continues off-screen. */
.mobile-nav { display: none; }
@media (max-width: 960px) {
  .mobile-nav {
    display: flex; align-items: stretch; justify-content: flex-start;
    gap: 0; flex-wrap: nowrap; overflow: visible;
    padding: 0; background: var(--ink); position: relative; z-index: 20;
  }
  .mobile-nav-scroll {
    display: flex; align-items: center; gap: 0.4rem;
    flex: 1 1 auto; min-width: 0; flex-wrap: nowrap;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0.55rem 1.25rem;
    scrollbar-width: none;
    padding: 0.35rem 1.15rem 0.5rem 0.55rem;
  }
  .mobile-nav-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .mobile-nav-scroll.has-scroll.is-start {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.35rem), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.35rem), transparent 100%);
  }
  .mobile-nav-scroll.has-scroll.is-end {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1.15rem, #000 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 1.15rem, #000 100%);
  }
  .mobile-nav-scroll.has-scroll:not(.is-start):not(.is-end) {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1.15rem, #000 calc(100% - 1.35rem), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 1.15rem, #000 calc(100% - 1.35rem), transparent 100%);
  }
  .mobile-nav a, .mobile-nav .linkish, .nav-more > summary {
    color: #d6cec0; text-decoration: none; padding: 0.42rem 0.7rem; border-radius: 999px;
    font-size: 0.875rem; font-weight: 600; line-height: 1.2;
    white-space: nowrap; overflow-wrap: normal; word-break: normal;
    flex: 0 0 auto; flex-shrink: 0; text-align: center;
    min-width: max-content; max-width: none;
    scroll-snap-align: start;
  }
  .mobile-nav a.is-on, .nav-more.is-on > summary, .nav-more-menu a.is-on {
    background: rgba(196, 163, 106, 0.18); color: var(--gold);
  }
  .nav-more {
    position: relative; flex: 0 0 auto; align-self: center;
    padding: 0.35rem 0.45rem 0.5rem 0.35rem;
    background: var(--ink);
    box-shadow: -12px 0 10px 2px var(--ink);
  }
  .nav-more > summary {
    list-style: none; cursor: pointer; display: block; flex: 0 0 auto;
    padding: 0.42rem 0.7rem;
  }
  .nav-more > summary::-webkit-details-marker, .nav-more > summary::marker { display: none; content: none; }
  .nav-more[open] > summary { background: rgba(196, 163, 106, 0.18); color: var(--gold); }
  .nav-more-menu {
    position: absolute; right: 0.35rem; top: calc(100% - 0.15rem);
    min-width: 13.5rem; display: grid; gap: 0.1rem;
    background: #2a2a28; border-radius: 0.85rem; padding: 0.35rem;
    box-shadow: 0 14px 36px rgba(29, 29, 28, 0.4); z-index: 30;
  }
  .nav-more-menu a, .nav-more-menu button {
    display: block; width: 100%; text-align: left; appearance: none;
    padding: 0.72rem 0.9rem; border: 0; border-radius: 0.6rem;
    background: none; color: #f3eee4; cursor: pointer;
    font: inherit; font-size: 1rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  }
  .nav-more-menu a:hover, .nav-more-menu button:hover { background: rgba(255, 248, 240, 0.08); }
  .ll-header .who { display: none; }
}
@media (max-width: 600px) {
  .board { grid-template-columns: 1fr; }
  .dash { padding: 1rem 0.85rem 1.4rem; }
  .filters { gap: 0.5rem; }
  .filter-pair { flex: 1 1 45%; }
  .filter-pair select, .filter-pair input { width: 100%; }
  .view-toggle { width: 100%; }
  .dash-head .btn { width: 100%; justify-content: center; }
}
.filter-search { min-width: 11rem; background-image: none; }
.col-empty { margin: 0.2rem 0.3rem 0.6rem; font-size: 0.91rem; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.empty { padding: 1.2rem 1.25rem; margin-bottom: 0.9rem; }
.empty h1, .empty h2 { font-family: var(--serif); font-size: 1.375rem; margin: 0 0 0.4rem; }
.empty p { margin: 0; color: var(--muted); }
.empty[hidden] { display: none; }

/* Detail page */
.status-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.status-pick button {
  font: inherit; font-size: 0.9925rem; font-weight: 600; padding: 0.55rem 0.5rem; border-radius: 6px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
}
.status-pick button:hover { border-color: var(--ink); }
.status-pick button.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.note-opts { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; }
.note-opts .btn { margin-left: auto; }
.radio-inline { display: inline-flex; gap: 0.35rem; align-items: center; font-size: 1.0025rem; }
.msg-internal { background: #f1ede4; border-style: dashed; }
.job-form { display: grid; gap: 0.4rem; }
.job-form input { width: 100%; }
.job-form .btn { justify-self: start; margin-top: 0.2rem; }
.outbox { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.92rem; }
.outbox li { border-top: 1px solid var(--line); padding-top: 0.45rem; overflow-wrap: anywhere; }
.photos a { display: block; }
.modal-wide { width: min(46rem, 100%); max-height: 92vh; }
.modal form, form.modal { display: block; }
.notice-text {
  width: 100%; margin-top: 0.6rem; min-height: 22rem; font: 0.86rem/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  background: #fffdf8;
}
#notice-reason { width: 100%; margin-top: 0.3rem; }
.notice-warn { background: #f6ece8; border: 1px solid #e4c9c2; border-radius: 6px; padding: 0.55rem 0.75rem; margin-bottom: 0.7rem; color: var(--amber-deep); font-size: 0.9925rem; }
.notice-warn p { margin: 0.15rem 0; }
.notice-warn[hidden] { display: none; }
.modal-actions { flex-wrap: wrap; }

/* Links */
.link-box { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.link-box input { flex: 1 1 14rem; min-width: 0; font-size: 0.9725rem; padding: 0.5rem 0.6rem; }
.props { display: grid; gap: 0.9rem; }
.prop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.prop-head h2 { margin: 0 0 0.15rem; }
.prop-head .fine { margin: 0; }
.link-row { display: grid; gap: 0.3rem; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.link-label { font-weight: 700; font-size: 1.0025rem; }
.add-unit { border-top: 1px solid var(--line); padding-top: 0.7rem; margin-top: 0.2rem; display: grid; gap: 0.3rem; }
.add-unit input { font-size: 1.0125rem; }
.plan-line { margin: 0 0 0.8rem; color: var(--muted); font-size: 1.0225rem; }
.welcome { padding: 1rem 1.2rem; margin-bottom: 0.9rem; border-left: 4px solid var(--sage); }
.welcome h2 { margin: 0 0 0.3rem; font-family: var(--serif); font-size: 1.265rem; }
.welcome p { margin: 0; }
.welcome[hidden] { display: none; }
.upgrade .upgrade-msg { margin: 0 0 0.6rem; }
.upgrade-list { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--muted); }
.upgrade-list li { margin: 0.2rem 0; }

/* Tenant pages */
.fixed-prop { margin: 0.2rem 0 0.5rem; font-weight: 700; }
#unit-pick[hidden] { display: none; }
.photo-zone { cursor: pointer; display: flex; align-items: center; justify-content: center; }
.thumb figcaption .linkish { font-size: 0.875rem; }
.save-link { padding: 0.8rem 1rem; margin: 0.6rem 0 0.4rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 1.0225rem; }
.visit-card { padding: 0.85rem 1rem; margin-top: 0.8rem; display: grid; gap: 0.15rem; }
.visit-card strong { font-size: 1.1187rem; }
dd.photo-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.photo-drop { position: relative; }
@media (max-width: 960px) {
  .ll-header { height: auto; }
  .ll-header .header-inner { height: auto; min-height: var(--header-h); }
}
@media (max-width: 600px) {
  .filters { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
  .filter-pair { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .filters .view-toggle { grid-column: 1 / -1; display: flex; gap: 0.4rem; }
  .filters .view-toggle .btn { flex: 1; justify-content: center; }
  .filter-search { min-width: 0; }
}
.radio-inline input { width: auto !important; margin: 0; }
@media (max-width: 600px) {
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .filter-pair { min-width: 0; }
  .filters select, .filters .filter-select, .filters input { width: 100%; min-width: 0; }
  .filters .view-toggle { margin-left: 0; }
}
.side-foot a { color: var(--gold); }

/* ---------- Fast multi-item tenant form ---------- */
.fast-page { padding-top: 0.9rem; }
.fast-head h1 { font-family: var(--serif); font-size: 1.7437rem; margin: 0.1rem 0 0.2rem; letter-spacing: -0.02em; }
.fast-head .eyebrow { margin: 0; }
.fast-where { margin: 0 0 0.8rem; font-size: 0.9925rem; color: var(--muted); }
.fast-label { margin: 0 0 0.45rem; font-weight: 700; font-size: 0.9875rem; }
.fast-contact { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.6rem 0.85rem; margin-bottom: 0.7rem; font-size: 1.0125rem; }
.fast-contact[hidden], .fast-contact-edit[hidden], .fast-unit[hidden] { display: none; }
.fast-contact-edit, .fast-unit { padding: 0.75rem 0.85rem; margin-bottom: 0.7rem; }
.fast-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.fast-contact-grid input { width: 100%; min-width: 0; padding: 0.6rem 0.7rem; }
.fast-contact-grid .span-2 { grid-column: 1 / -1; }
.fast-items { display: grid; gap: 0.7rem; }
.fast-item { padding: 0.7rem 0.75rem 0.75rem; display: grid; gap: 0.5rem; }
.fast-item.has-error { border-color: var(--amber); box-shadow: 0 0 0 2px var(--amber-soft); }
.fast-item.has-error .fast-desc { border-color: var(--amber); }
.fast-item-head { display: flex; justify-content: space-between; align-items: center; }
.fast-item-n { font-size: 0.86rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fast-x { border: 0; background: none; font-size: 1.575rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 0.3rem; }
.fast-x[hidden] { display: none; }
.chip-row { display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 1px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row.wrap { flex-wrap: wrap; overflow: visible; }
.tchip {
  flex: 0 0 auto; font: inherit; font-size: 0.9825rem; font-weight: 600; padding: 0.42rem 0.75rem; min-height: 2.25rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
}
.tchip.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tchip-cat.is-on { background: var(--amber); border-color: var(--amber); }
.tchip.is-guess { background: var(--amber-soft); color: var(--amber-deep); border-color: var(--amber-soft); }
.fast-desc { width: 100%; font-size: 1.0938rem; padding: 0.7rem 0.75rem; }
.fast-item-foot { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.fast-photo-btn {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.42rem 0.7rem; min-height: 2.25rem; border-radius: 999px;
  border: 1.5px dashed #cfc7b8; background: var(--paper); font-size: 0.9825rem; font-weight: 700; color: var(--muted); cursor: pointer; position: relative;
}
.fast-thumbs { display: flex; gap: 0.3rem; }
.fast-thumb { width: 2.25rem; height: 2.25rem; padding: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #2a1e14; color: #fff; font-size: 0.775rem; cursor: pointer; }
.fast-thumb img { width: 100%; height: 100%; object-fit: cover; }
.seg { display: inline-flex; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.seg button { font: inherit; font-size: 0.9525rem; font-weight: 700; border: 0; background: none; padding: 0.42rem 0.6rem; min-height: 2.25rem; cursor: pointer; color: var(--muted); }
.seg button.is-on { background: var(--ink); color: var(--white); }
.seg button[data-v="emergency"].is-on { background: var(--amber); }
.fast-add { width: 100%; margin-top: 0.7rem; padding: 0.85rem; border: 1.5px dashed #cfc7b8; border-radius: 8px; background: transparent; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.fast-entry { padding: 0.7rem 0.85rem; margin-top: 0.8rem; }
.fast-entry summary { cursor: pointer; font-weight: 700; font-size: 1.0125rem; }
.fast-entry[open] summary { margin-bottom: 0.6rem; }
#emergency-note { margin-top: 0.7rem; }
#emergency-note[hidden] { display: none; }
.fast-spacer { height: 5.5rem; }
.fast-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(243, 238, 230, 0.96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(29,29,28,0.08);
}
.fast-bar[hidden] { display: none; }
.fast-bar .btn { max-width: 28.5rem; margin: 0 auto; display: flex; justify-content: center; min-height: 3rem; font-size: 1.1038rem; }
.fast-bar .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.batch-list { display: grid; gap: 0.55rem; margin-top: 0.8rem; }
.batch-item { display: grid; gap: 0.15rem; padding: 0.7rem 0.85rem; text-decoration: none; color: inherit; }
.batch-item:hover { box-shadow: var(--shadow-sm); color: inherit; }
.batch-top { display: flex; justify-content: space-between; align-items: center; }
/* Large lists stay smooth: the browser skips layout/paint for off-screen cards. */
.fast-item { content-visibility: auto; contain-intrinsic-size: auto 230px; }
.fast-item.is-sent { opacity: 0.55; pointer-events: none; }
.fast-item-foot .fast-photo-btn + .fast-photo-btn { margin-left: -0.1rem; }
.fast-thumb.is-pending { background: repeating-linear-gradient(45deg, #ddd5c6 0 6px, #eae3d6 6px 12px); animation: pend 1s linear infinite; }
@keyframes pend { to { background-position: 24px 0; } }
.fast-progress { margin: 0 auto 0.45rem; max-width: 28.5rem; font-size: 0.92rem; font-weight: 600; color: var(--ink); text-align: center; }
.fast-progress[hidden] { display: none; }
/* Photo evidence */
.pmeta { display: flex; flex-wrap: wrap; gap: 0.15rem 0.6rem; font-size: 0.87rem; color: var(--muted); margin-top: 0.3rem; line-height: 1.35; }
.pmeta span, .pmeta a { white-space: nowrap; }
.psrc { font-weight: 800; color: var(--ink) !important; }
.psrc-camera::before { content: "● "; color: var(--sage); }
.psrc-library::before { content: "● "; color: var(--gold); }
.pflag { color: var(--amber-deep) !important; font-weight: 700; white-space: normal !important; }
.phash { font-family: ui-monospace, Menlo, Consolas, monospace; }
.porig { color: var(--amber-deep); }
/* Accountability */
.stamps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.stamps li { display: grid; grid-template-columns: 1.4rem 1fr auto; align-items: center; gap: 0.4rem; padding: 0.35rem 0; border-bottom: 1px dashed var(--line); font-size: 1.0125rem; }
.stamps li:last-child { border-bottom: 0; }
.sdot { width: 1.2rem; height: 1.2rem; border-radius: 50%; border: 1.5px solid var(--limestone); display: grid; place-items: center; font-size: 0.85rem; color: var(--white); }
.stamps li.is-done .sdot { background: var(--sage); border-color: var(--sage); }
.slabel { font-weight: 700; }
.swhen { color: var(--muted); font-size: 0.91rem; text-align: right; }
.stamps li:not(.is-done) .swhen { color: var(--amber-deep); }
.wait-note { margin: 0.6rem 0 0; font-size: 0.9925rem; color: var(--muted); }
.wait-note.is-late { color: var(--amber-deep); background: #f6ece8; border-radius: 6px; padding: 0.5rem 0.65rem; }
.confirm-card, .declined-card { margin-top: 0.8rem; padding: 0.85rem 1rem; display: grid; gap: 0.5rem; }
.declined-card { border-left: 4px solid var(--amber); }
.declined-card p { margin: 0; }
.confirm-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.followup-row { margin-top: 0.8rem; }
.evlog { margin-top: 0.5rem; font-size: 0.92rem; }
.evlog summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.evlog ul { margin: 0.4rem 0 0; padding-left: 1rem; }
.evlog time { color: var(--muted); margin-right: 0.3rem; }
.ev-photos { display: grid; gap: 0.7rem; }
.ev-photo { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem; }
.ev-photo img { width: 100%; border-radius: 4px; }
.add-photos { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-top: 0.6rem; }
.link-list { margin: 1rem 0 0; font-size: 1.0025rem; text-align: center; }
.badge-overdue { background: #8b534a; color: #fff; }
.badge-followup { background: #c4a36a; color: #1d1d1c; }
.badge-fixed { background: var(--sage); color: #fff; }
.badge-disputed { background: #4a302c; color: #fff; }
.badge-declined { background: #5c564e; color: #fff; }
.badge-awaiting { background: var(--sage-soft); color: #33402a; }
.fast-picks { padding: 0.7rem 0.8rem; margin-bottom: 0.7rem; }
.fast-picks .chip-row { gap: 0.3rem; }
.tchip.pick { font-size: 0.9625rem; padding: 0.35rem 0.6rem; min-height: 2rem; text-align: left; white-space: normal; }
.tchip.pick-urgent { border-color: #e4c9c2; }
.tchip.pick.is-added { background: var(--sage-soft); border-color: var(--sage-soft); color: #33402a; }
#picks-more { margin-top: 0.4rem; }
.urg-hint { margin: 0; font-size: 0.88rem; color: var(--amber-deep); }
.urg-hint[hidden] { display: none; }
.late { color: var(--amber-deep); font-weight: 700; }
.hist-summary { margin: 0.8rem 0 0; font-weight: 800; font-size: 1.0375rem; text-align: center; }
/* History */
.hist-top { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.hist-top .hist-summary { margin: 0; text-align: left; }
.hist-tabs { display: flex; gap: 0.3rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; margin-bottom: 0.7rem; padding: 0 0 0.35rem; }
.hist-tabs button { flex: 0 0 auto; flex-shrink: 0; white-space: nowrap; font: inherit; font-size: 0.9725rem; font-weight: 700; padding: 0.4rem 0.7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.hist-tabs button.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.hist-tabs .n { opacity: 0.7; margin-left: 0.15rem; }
.hist-list { display: grid; gap: 0.55rem; }
.hist-item { padding: 0.7rem 0.85rem; }
.hist-row { display: flex; justify-content: space-between; gap: 0.6rem; align-items: flex-start; }
.hist-title { font-weight: 700; color: var(--ink); text-decoration: none; }
.mini-stamps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.3rem; margin: 0.55rem 0 0; padding: 0; font-size: 0.86rem; color: var(--muted); }
.mini-stamps li { border-top: 3px solid var(--line); padding-top: 0.25rem; }
.mini-stamps li.ok { border-top-color: var(--sage); }
.mini-stamps b { color: var(--ink); font-weight: 700; }
.hist-reason { margin: 0.5rem 0 0; font-size: 0.9875rem; background: #f1ede4; border-radius: 6px; padding: 0.45rem 0.6rem; }
.hist-shell { width: min(44rem, 100%); }
.print-only { display: none; }
@media print {
  .no-print, .app-header, .sidebar, .mobile-nav, .fast-bar, .toast { display: none !important; }
  .print-only { display: block; }
  body { background: #fff !important; }
  .ll-shell { display: block; }
  .card { box-shadow: none !important; break-inside: avoid; }
}
.stat-link { text-decoration: none; color: inherit; }
.stat small { display: block; font-size: 0.85rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--muted); margin-top: 0.1rem; }
.flags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0.25rem 0 0.3rem; }
.flags .badge { font-size: 0.81rem; }
.check-inline { display: inline-flex; gap: 0.35rem; align-items: center; font-weight: 600; font-size: 0.9875rem; white-space: nowrap; }
.check-inline input { width: auto !important; }
.settings-card { padding: 0.6rem 0.85rem; margin: 0 0 0.9rem; font-size: 1.0025rem; }
.settings-card summary { cursor: pointer; }
.settings-form { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-top: 0.6rem; }
.settings-form input { width: 5rem; padding: 0.35rem 0.5rem; }
.req-card .flags + .meta { margin-top: 0; }
.attn-banner { background: #f6ece8; border: 1px solid #e4c9c2; border-left: 4px solid var(--amber); border-radius: 6px; padding: 0.5rem 0.8rem; margin-bottom: 0.9rem; color: var(--amber-deep); font-size: 1.0125rem; }
.attn-banner p { margin: 0.15rem 0; }
.attn-banner[hidden] { display: none; }
.photos .ev-photo { padding: 0.4rem; }
.pmore { width: 100%; }
.pmore summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.pmore ul { margin: 0.3rem 0 0; padding-left: 1rem; }
.pmore li { white-space: normal; }
.pmore code { font-size: 0.83rem; word-break: break-all; }
.more-card { padding: 0.7rem 0.9rem; }
.more-card summary { cursor: pointer; font-weight: 700; font-size: 1.0025rem; color: var(--muted); }
.more-card[open] summary { margin-bottom: 0.5rem; }
/* Reserved for the phase-2 Start/Stop timer */
.timer-slot[hidden] { display: none; }
.more-filters { align-self: center; }
.more-filters > summary { cursor: pointer; font-weight: 700; font-size: 0.9875rem; color: var(--muted); padding: 0.4rem 0; }
.more-filters-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.more-filters[open] { flex-basis: 100%; order: 10; }
/* Item card: 1) room  2) what needs fixing */
.fast-step { margin: 0.55rem 0 0.35rem; font-size: 0.86rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.fast-item-head + .fast-step { margin-top: 0.1rem; }
.room-grid { gap: 0.35rem; }
.room-grid .tchip { min-height: 2.6rem; font-size: 1.0125rem; }
.room-current { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--white); font: inherit; font-size: 1.0225rem; cursor: pointer; }
.room-current .muted { color: #cfc9bd; font-weight: 600; margin-left: 0.3rem; }
.fast-common { gap: 0.35rem; margin-bottom: 0.5rem; }
.fast-common .tchip.pick { font-size: 0.9925rem; min-height: 2.5rem; padding: 0.4rem 0.75rem; }
.fast-common .tchip.pick.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.fast-combo { display: flex; gap: 0.4rem; }
.fast-combo .fast-desc { flex: 1; min-width: 0; min-height: 3rem; }
.fast-az { flex: none; min-height: 3rem; padding: 0 0.85rem; border-radius: 10px; border: 1.5px solid var(--line, #d9d2c3); background: var(--white); font: inherit; font-weight: 700; font-size: 1.0125rem; color: var(--ink); cursor: pointer; }
.fast-list { margin-top: 0.4rem; max-height: min(55vh, 26rem); overflow-y: auto; border: 1.5px solid var(--line, #d9d2c3); border-radius: 12px; background: var(--white); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.fast-list-head { position: sticky; top: 0; margin: 0; padding: 0.45rem 0.85rem; background: var(--paper, #f6f1e7); font-size: 0.86rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line, #e6dfd1); }
.fast-opt { display: block; width: 100%; text-align: left; min-height: 3rem; padding: 0.7rem 0.85rem; border: 0; border-bottom: 1px solid #efe9dd; background: none; font: inherit; font-size: 1.0938rem; color: var(--ink); cursor: pointer; }
.fast-opt:active, .fast-opt:hover { background: var(--amber-soft); }
.fast-opt-other { font-weight: 700; color: var(--amber-deep); }
.fast-opt-all { color: var(--muted); font-size: 1.0125rem; border-bottom: 0; }
.fast-cat { margin-top: 0.45rem; font-size: 0.9875rem; }
.fast-cat summary { cursor: pointer; color: var(--ink); padding: 0.2rem 0; }
.fast-cat .chip-row { margin-top: 0.4rem; }
.fast-item [hidden] { display: none !important; }
.fast-spot { margin-top: 0.5rem; }
.fast-spot-q { margin: 0 0 0.3rem; font-size: 0.9875rem; font-weight: 700; }
.fast-spot .tchip { min-height: 2.4rem; }
.fast-spot-text { width: 100%; margin-top: 0.4rem; min-height: 2.6rem; font-size: 1.0375rem; padding: 0.5rem 0.7rem; }
.chip-time b { font-weight: 800; margin-left: 0.25rem; white-space: nowrap; }
/* "+ Add another request" on tenant status / list / history pages */
.add-another{display:flex;align-items:center;justify-content:center;min-height:52px;font-size: 1.1187rem;font-weight:700;margin:0.2rem 0 0.9rem;text-decoration:none}
.add-another[hidden]{display:none}
.time-rows{margin-top:0.6rem;display:grid;gap:0.55rem}
.time-day{margin:0 0 0.25rem;font-weight:700;font-size: 1.0225rem}
.time-narrow{margin:0.3rem 0 0.1rem 0.2rem}
.time-narrow-toggle{font-size: 1.0125rem}
.time-hours{margin-top:0.3rem}
.chip-hour{font-size: 0.9925rem;font-weight:600}
.time-narrow [hidden]{display:none !important}
.time-narrow-cap{margin:0.15rem 0 0;font-size: 0.9875rem;font-weight:600;color:var(--muted,#6b675f)}
/* Home + header login */
.btn-big{min-height:56px;font-size: 1.1338rem;font-weight:800}
.home-card{display:grid;gap:0.7rem}
.home-or{margin:0.4rem 0 0;text-align:center;font-weight:700;color:var(--muted,#6b675f)}
.home-choice{flex-direction:column;gap:0.15rem;line-height:1.3;padding-block:0.65rem}
.home-choice small{font-weight:500;font-size: 0.9925rem;opacity:0.85}
.app-header .header-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0.35rem 0.6rem}
.logo{flex:1 1 8rem;min-width:0}
.hdr-auth{display:flex;align-items:center;gap:0.7rem;flex:0 0 auto}
.hdr-btn{display:inline-flex;align-items:center;min-height:40px;padding:0 0.95rem;border-radius:8px;border:1.5px solid #e9e3d5;background:transparent;color:#fbf8f2;font:inherit;font-weight:800;font-size: 1.0375rem;text-decoration:none;cursor:pointer}
.hdr-link{color:#e9e3d5;font-weight:700;font-size: 1.0225rem;text-decoration:underline;text-underline-offset:3px}
@media (max-width:380px){.app-header .logo-text span{display:none}}
/* Tenant mode */
.my-head h1{font-size: 1.6313rem}
.my-tip{padding:0.8rem 0.95rem;margin:0 0 0.8rem}
.my-list{display:grid;gap:0.6rem;margin-bottom:1rem}
.my-item{padding:0.8rem 0.95rem;display:grid;gap:0.35rem}
.my-item.is-overdue{border-left:4px solid #8b534a}
.my-item-main{display:grid;gap:0.25rem;color:inherit;text-decoration:none}
.my-top{display:flex;align-items:center;gap:0.5rem;flex-wrap:wrap}
.my-state{background:#e3ddcf;color:#1d1d1c}
.my-state-fixed,.my-state-done{background:#5a6b4e;color:#fbf8f2}
.my-state-not-fixed{background:#8b534a;color:#fbf8f2}
.my-actions{display:flex;justify-content:flex-end}
.my-actions .btn{min-height:42px;min-width:7.5rem}
.my-share{padding:0.95rem 1rem;display:grid;gap:0.6rem;margin-bottom:1rem}
.my-share h2{font-size: 1.1338rem;margin:0}
.share-url{width:100%;font-size: 0.9875rem}
.my-share-btns{display:grid;gap:0.5rem}
.my-share select{min-height:46px;font-size: 1.0938rem}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:0.6rem}
/* One big "+ Photo" button: opens the phone's Take Photo / Photo Library sheet */
.fast-photos{display:flex;align-items:center;gap:0.55rem;flex-wrap:wrap;margin-top:0.6rem}
.photo-plus{display:inline-flex;align-items:center;justify-content:center;min-height:52px;min-width:9rem;padding:0 1.2rem;border-radius:10px;background:var(--ink,#1d1d1c);color:#fbf8f2;font-weight:800;font-size: 1.1338rem;cursor:pointer;position:relative}
.photo-plus:focus-within{outline:3px solid #b9874a}
.fast-photos .fast-thumb{width:3.2rem;height:3.2rem}
.add-photos .photo-plus{margin-right:0.5rem}
.plater{display:inline-block;font-weight:800;color:#44513c;background:#e6eadf;border-radius:6px;padding:0.05rem 0.4rem;margin-bottom:0.15rem}

/* Free-plan photo usage meter + upgrade prompt */
.usage-meter { display: grid; gap: 0.35rem; background: #fbf8f2; border: 1px solid #d6cec0; border-radius: 8px; padding: 0.6rem 0.8rem; margin: 0 0 0.9rem; color: #1d1d1c; font-size: 1.1187rem; }
.usage-meter.is-full { border-color: #8b534a; background: #f6ece8; }
.side-foot .usage-meter { background: transparent; border: 0; padding: 0.4rem 0 0; margin: 0; color: inherit; font-size: 0.9875rem; }
.meter { display: block; height: 10px; background: #e3ddcf; border-radius: 999px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: #1d1d1c; border-radius: 999px; }
.meter > span.is-full { background: #8b534a; }
.meter-note { font-weight: 600; }
.meter-up { font-weight: 700; }
.upgrade-meter { display: grid; gap: 0.35rem; margin: 0.4rem 0 0.8rem; }
.upgrade-price { margin: 0.4rem 0 0.2rem; }

/* ---- Text size (Nov 2026): halfway between the original type and the first larger scale.
   Body ~17.5px at the default root, inputs and buttons just over 16px, labels a little under 16px at 1rem root.
   On iPhone/iPad (app and Safari) the root size follows Settings > Display & Brightness > Text Size
   (Dynamic Type); everything above grows with it. The cap in common.js keeps the largest sizes usable. */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html { font: -apple-system-body; }
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
input, select, textarea, button { font-size: 1.0375rem; }
input[type="checkbox"], input[type="radio"] { width: 1.25rem; height: 1.25rem; }
small { font-size: max(1rem, 16px); }
h1, h2, h3, p, li, label, td, th, dd, dt, summary, button, a, span { overflow-wrap: break-word; word-break: normal; }
@media print { html { font-size: 13px !important; } }
/* bigger text: let long select options/labels shrink instead of pushing past the screen edge */
.grid2, .grid3, .stack > *, .grid2 > *, .grid3 > * { min-width: 0; }
select, input, textarea { max-width: 100%; }
/* bigger text: keep the dark header to one tidy row on phones */
.pill { white-space: nowrap; letter-spacing: 0.04em; }
.logo-text strong { white-space: nowrap; }
@media (max-width: 520px) {
  .logo-text span { display: none; }
  .logo-text strong { white-space: normal; }
  .pill { padding: 0.15rem 0.45rem; letter-spacing: 0.02em; }
}
@media (max-width: 360px) {
  .logo { gap: 0.4rem; }
  .logo-text strong { font-size: 1rem; }
  .header-meta { gap: 0.45rem; }
  .hdr-btn { padding: 0 0.6rem; }
}
@media (max-width: 360px) { header:has(.hdr-link) .logo-text { display: none; } }
/* beats the iOS app shell's older 16px input rule, so fields follow the mid-size type */
:root body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), :root body select, :root body textarea { font-size: 1.0375rem; }

/* ----- Guest sample walkthrough ----- */
.guest-banner {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.65rem;
  padding: calc(0.28rem + env(safe-area-inset-top, 0px)) 0.75rem 0.28rem;
  background: #1d1d1c;
  color: #fbf8f2;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  box-sizing: border-box;
}
.guest-banner span { min-width: 0; flex: 1 1 auto; }
.guest-banner .btn {
  flex: 0 0 auto;
  padding: 0.25rem 0.7rem;
  min-height: 2rem;
  font-size: 0.85rem;
}
/* Banner already includes the status-bar inset, so the header below it shouldn't add another. */
body.has-guest-banner { background-color: #1d1d1c; }
body.has-guest-banner .ll-page,
body.has-guest-banner .tenant-shell { background-color: var(--paper, #f3eee6); }
body.has-guest-banner .app-header {
  padding-top: 0 !important;
  min-height: var(--header-h, 4.15rem) !important;
  height: auto;
}
body.has-guest-banner .app-header::before { height: 8px !important; }
body.has-guest-banner .app-header::after { top: 8px !important; }

/* Stacked rows for phone: description + amount on one line, meta underneath. No letter-by-letter wraps. */
.stack-list { list-style: none; margin: 0; padding: 0; }
.stack-row { padding: 0.65rem 0; border-bottom: 1px solid var(--line, #d6cec0); }
.stack-row:last-child { border-bottom: 0; }
.stack-row-main { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.stack-row-desc { min-width: 0; overflow-wrap: break-word; word-break: normal; }
.stack-row-amt { flex: 0 0 auto; white-space: nowrap; font-weight: 800; }
.stack-row-sub { margin-top: 0.15rem; font-size: 0.9rem; color: var(--muted, #5c564e); }
.ye-acc { border-bottom: 1px solid var(--line, #d6cec0); }
.ye-acc > summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem;
  cursor: pointer; padding: 0.75rem 0; font-weight: 650; list-style: none;
}
.ye-acc > summary::-webkit-details-marker, .ye-acc > summary::marker { display: none; }
.ye-acc > summary::before { content: "▸ "; color: var(--muted, #5c564e); font-weight: 400; }
.ye-acc[open] > summary::before { content: "▾ "; }
.ye-acc-label { min-width: 0; overflow-wrap: break-word; word-break: normal; }
.ye-totals { list-style: none; margin: 0 0 0.8rem; padding: 0; }
.ye-totals li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.35rem 0; }
.ye-totals strong { white-space: nowrap; }
.ye-income { color: var(--muted, #5c564e); font-size: 0.95rem; margin: 0 0 0.8rem; }

/* Phone: never use table columns. Cards/stacked rows instead, so headers don't wrap as D a t e. */
@media (max-width: 640px) {
  .table-wrap { overflow-x: visible; }
  table.exp-table, table.req-table {
    display: block; width: 100%;
  }
  table.exp-table thead, table.req-table thead { display: none; }
  table.exp-table tbody, table.exp-table tfoot,
  table.req-table tbody, table.req-table tfoot {
    display: block; width: 100%;
  }
  table.exp-table tr, table.req-table tr {
    display: block;
    width: 100%;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line, #d6cec0);
  }
  table.exp-table td, table.exp-table th,
  table.req-table td, table.req-table th {
    display: block;
    width: 100%;
    border: 0;
    padding: 0.1rem 0;
    text-align: left;
    overflow-wrap: break-word;
    word-break: normal;
  }
  table.exp-table td.money, table.req-table td.money { font-weight: 800; white-space: nowrap; }
  table.exp-table tfoot td { border-top: 0; padding-top: 0.35rem; }
  table.req-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted, #5c564e);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

@media print {
  .guest-banner { display: none !important; }
  .ye-acc { border: 0; break-inside: avoid; }
  .ye-acc > summary::before { content: none; }
}
.home-split {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.15rem 0;
  color: var(--muted, #6b675f);
  font-weight: 700;
}
.home-split::before, .home-split::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line, #ddd5c6);
}
#modal-guest-signup .modal { max-width: 26rem; }
#modal-guest-signup .modal-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
#modal-guest-signup .modal-actions .btn { flex: 1 1 auto; }

.home-tools { margin: 1.4rem 0 2rem; }
.home-tools h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.home-tools p { margin: 0 0 0.7rem; }
.home-tools-list { display: grid; gap: 0.6rem; }
.home-tool { display: block; padding: 0.85rem 1rem; border: 1px solid var(--line, #e4dfd5); border-radius: 10px; text-decoration: none; color: inherit; background: #fff; }
.home-tool strong { display: block; }
.home-tool small { display: block; color: #5c564e; margin-top: 0.15rem; }

.tip-card { margin: 0 0 0.9rem; }
.tip-card-inner { display: flex; gap: 0.7rem; align-items: flex-start; justify-content: space-between; padding: 0.75rem 0.9rem; background: #f6f1e6; border: 1px solid var(--line, #e4dfd5); border-radius: 10px; }
.tip-card h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.tip-card p { margin: 0.2rem 0 0; }
.tip-dismiss { flex: 0 0 auto; }
@media (max-width: 390px) {
  .tip-card-inner { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .ll-header .logo-text span { display: none; }
  .mobile-nav-scroll { gap: 0.35rem; padding: 0.35rem 1.15rem 0.5rem 0.5rem; }
  .mobile-nav a, .mobile-nav .linkish, .nav-more > summary { padding: 0.42rem 0.65rem; }
  .dash-head h1 { font-size: 1.45rem; line-height: 1.3; }
  .grid3, .grid2 { grid-template-columns: 1fr; }
}

/* Keep the landlord brand and plan pill from colliding on narrow phones.
   This comes after .app-header .header-inner { flex-wrap: wrap } so it wins. */
@media (max-width: 960px) {
  .app-header.ll-header .header-inner {
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.7rem;
  }
  .app-header.ll-header .logo { min-width: 0; flex: 1 1 auto; }
  .app-header.ll-header .logo-text { min-width: 0; }
  .app-header.ll-header .header-meta {
    flex: 0 0 auto;
    margin-left: auto;
  }
  .app-header.ll-header .pill {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* ----- t758u: saved confirmation, phone bar, progress ring, move-out compare, running totals ----- */
.cfl-cele { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 18%); transform: translate(-50%, 0) scale(.9); z-index: 400;
  display: flex; align-items: center; gap: .55rem; padding: .7rem 1.1rem .7rem .75rem; border-radius: 999px; background: #1d1d1c; color: #fbf8f2;
  font: 700 1rem/1.2 var(--sans, system-ui); box-shadow: 0 14px 34px rgba(29,29,28,.28); opacity: 0; animation: cflPop .32s cubic-bezier(.2,1.4,.4,1) forwards; pointer-events: none; }
.cfl-cele.out { transition: opacity .4s, transform .4s; opacity: 0 !important; transform: translate(-50%, -8px) scale(.96); }
.cfl-cele-ck { width: 30px; height: 30px; border-radius: 50%; background: #c4a36a; display: grid; place-items: center; }
.cfl-cele-ck svg { width: 20px; height: 20px; fill: none; stroke: #1d1d1c; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: cflTick .38s .18s ease-out forwards; }
@keyframes cflPop { to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes cflTick { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .cfl-cele, .cfl-cele-ck svg { animation: none; opacity: 1; stroke-dashoffset: 0; transform: translate(-50%, 0); } }
.cfl-phone-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); width: min(calc(100% - 24px), 460px);
  box-sizing: border-box; z-index: 115; background: rgba(251,248,242,.97); color: #3b3a36; border: 1px solid rgba(196,163,106,.5); border-radius: 14px;
  padding: .45rem .8rem; font: 500 .84rem/1.35 var(--sans, system-ui); text-align: center; box-shadow: 0 6px 18px rgba(29,29,28,.10); }
.cfl-phone-bar a { color: #7a4a1c; font-weight: 700; text-decoration: underline; }
body.has-phone-bar { padding-bottom: calc(var(--pb-h, 48px) + 22px + env(safe-area-inset-bottom, 0px)); }
html body.has-phone-bar.cl-skin .dash { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 7rem + var(--pb-h, 48px)); }
.cfl-prog { display: flex; align-items: center; gap: .7rem; margin: 0 0 .8rem; font: 600 1rem/1.2 var(--sans, system-ui); color: #1d1d1c; }
.cfl-prog svg { width: 48px; height: 48px; transform: rotate(-90deg); flex: 0 0 48px; }
.cfl-prog circle { fill: none; stroke-width: 5; }
.cfl-prog .cfl-prog-bg { stroke: #e7dfd0; }
.cfl-prog .cfl-prog-fg { stroke: #c4a36a; stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.cfl-prog b { font-size: 1.15rem; }
.room-done-row { margin: .8rem 0 0; }
.pdi-room-card.is-done b { color: inherit; }
.cmp-prior { margin: .7rem 0 0; padding: .6rem .7rem; border-radius: 12px; background: #f3eee6; border: 1px dashed #d9cdb6; }
.cmp-prior .lbl { margin: 0 0 .25rem; }
.cmp-note { margin: 0 0 .4rem; }
.dmg-row { margin: .6rem 0 0; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.dmg-btn { border: 1.5px solid #7a3328; color: #7a3328; background: #fff; }
.dmg-btn.is-on { background: #7a3328; color: #fff; }
.pdi-pill.is-dmg { background: #7a3328; color: #fff; margin-right: .3rem; }
.ytd-card { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin: .8rem 0; padding: .8rem 1rem; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 rgba(29,29,28,.06); }
.ytd-card b { font: 700 1.35rem/1.1 var(--serif, Georgia); }
.ytd-card span { color: #6b665c; font-size: .92rem; }
.dep-head h1 { margin: .2rem 0 .4rem; }
.dep-sum { font-size: 1.05rem; }
.dep-item h2 { font-size: 1.15rem; }
.dep-ph { margin: .4rem 0; }
.dep-ph img { width: 100%; max-width: 360px; border-radius: 10px; display: block; }
.dep-ph figcaption { font-size: .8rem; color: #6b665c; }
.dep-amt { margin: .6rem 0 0; font-weight: 600; }
.dep-legal { margin-top: 1rem; }
@media print { .dep-item { break-inside: avoid; } .cfl-phone-bar, .cfl-cele { display: none !important; } }
.tools-phase { margin: 1rem 0; padding: .8rem 1rem; border-radius: 16px; background: #fff; border: 1px solid #e7dfd0; }
.tools-phase p { margin: 0 0 .5rem; }
.f-sum .ytd-card { display: flex; }
.ytd-card { text-decoration: none; color: inherit; }
.home-sample { text-align: center; margin: .35rem 0 1rem; font-size: .95rem; } .home-sample a { font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Home record (t760u) ---- */
.hr .panel-c { margin: 0 0 1rem; }
.hr-score-top { display: flex; align-items: center; gap: 1rem; }
.hr-ring { width: 84px; height: 84px; transform: rotate(-90deg); flex: none; }
.hr-ring circle { fill: none; stroke-width: 9; }
.hr-ring-bg { stroke: #ece5d8; }
.hr-ring-fg { stroke: #c9962a; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.hr-score-n b { display: block; font-size: 2rem; line-height: 1; }
.hr-score-n span { color: #6b665c; font-weight: 600; }
.hr-parts { list-style: none; margin: .9rem 0 .6rem; padding: 0; display: grid; gap: .5rem; }
.hr-parts li { display: grid; grid-template-columns: 1fr auto; gap: .15rem .5rem; font-size: .95rem; }
.hr-parts i { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: linear-gradient(90deg, #c9962a var(--w), #ece5d8 var(--w)); }
.hr-next { display: grid; gap: .5rem; padding: .7rem .8rem; border-radius: 14px; background: #f7f1e4; }
.hr-next p { margin: 0; }
.hr-sm { list-style: none; margin: .4rem 0 .8rem; padding: 0; display: grid; gap: .5rem; }
.hr-sm li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .7rem; border: 1px solid #ece5d8; border-radius: 12px; background: #fff; }
.hr-sm li.is-hot { border-color: #c9962a; background: #fff8e8; }
.hr-sm li div { min-width: 0; }
.hr-sm b { display: block; }
.hr-sm span { display: block; font-size: .88rem; color: #6b665c; }
.hr-sm .btn { flex: none; }
.hr-mo input { max-width: 12rem; }
.hr-tax h2 { margin: 0 0 .2rem; }
.hr-tl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.hr-tl-head h2 { margin: 0; }
.hr-chips { display: flex; gap: .4rem; overflow-x: auto; padding: .7rem 0 .5rem; scrollbar-width: none; }
.hr-chip { flex: none; border: 1px solid #d9d0bf; background: #fff; border-radius: 99px; padding: .35rem .75rem; font: inherit; font-weight: 600; font-size: .9rem; min-height: 36px; }
.hr-chip.is-on { background: #1d1d1c; color: #fff; border-color: #1d1d1c; }
.hr-chip small { opacity: .7; }
.hr-list { list-style: none; margin: 0; padding: 0; }
.hr-it { display: flex; gap: .65rem; padding: .7rem 0; border-top: 1px solid #ece5d8; }
.hr-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #1d1d1c; display: grid; place-items: center; font-size: 1rem; }
.hr-body { min-width: 0; flex: 1; }
.hr-t { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.hr-t a { color: inherit; }
.hr-amt { float: right; }
.hr-m, .hr-n { margin: .15rem 0 0; font-size: .88rem; color: #6b665c; }
.hr-n { color: inherit; white-space: pre-wrap; }
.hr-imgs { display: flex; gap: .35rem; margin-top: .4rem; }
.hr-imgs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.hr-empty { padding: .8rem 0; color: #6b665c; }
.hr-app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.hr-app-grid > div { min-width: 0; }
.hr-app-grid input { width: 100%; }
.hr-card { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; margin: .9rem 0; padding: .8rem .9rem; border-radius: 16px; background: #fff; border: 1px solid #e7dfd0; }
.hr-card b { display: block; }
.hr-card span { font-size: .9rem; color: #6b665c; }
.hr-card .hr-card-go { margin-left: auto; font-weight: 700; color: #1d1d1c; }
/* Context bar on Photos / Notepad (t760u) */
.ctx-bar { margin: 0 0 .6rem; padding: .55rem .75rem; border-radius: 12px; background: #f7f1e4; font-size: .95rem; }
.ctx-tag { margin: 0 0 .7rem; }
.ctx-tag select, .tag-sel { min-height: 40px; }
.tag-sel { margin-top: .35rem; font-size: .88rem; }
.chk-card select[data-tag] { width: 100%; margin: .3rem 0; font-size: .85rem; }
/* Fear-and-fix line (t760u) */
.fear { margin: .2rem 0 .8rem; font-weight: 700; color: #8a3b2a; }
/* Calm keep-it card for guests (t760u) */
.keep-card { margin: 1rem 0; padding: .9rem 1rem; border-radius: 16px; background: #f7f1e4; border: 1px solid #e7dfd0; }
.keep-card h2, .keep-card h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.keep-card p { margin: 0 0 .6rem; }
.keep-card .row { gap: .45rem; flex-wrap: wrap; }
.q-grid .p-batch { display: contents; }
.q-grid .tag-sel { grid-column: 1 / -1; margin: 0 0 .4rem; }
.ctx-links { margin: .4rem 0 0; }
/* Live demo strip + "See what you get" (t760u). CSS-only animation, no video; static when reduced motion is on. */
.dstrip { margin: 1.2rem 0; display: grid; grid-template-columns: 150px 1fr; gap: 1rem; align-items: center; }
.dstrip-phone { position: relative; width: 150px; height: 270px; border-radius: 26px; background: #1d1d1c; padding: 9px; box-shadow: 0 10px 30px rgba(29,29,28,.25); }
.dstrip-scr { position: relative; width: 100%; height: 100%; border-radius: 18px; overflow: hidden; background: #fbf8f2; }
.dstrip-f { position: absolute; inset: 0; padding: 10px 9px; opacity: 0; animation: dstripF 16s infinite; font: 600 10px/1.3 "Source Sans 3", system-ui, sans-serif; color: #1d1d1c; }
.dstrip-f.f2 { animation-delay: 4s; } .dstrip-f.f3 { animation-delay: 8s; } .dstrip-f.f4 { animation-delay: 12s; }
@keyframes dstripF { 0% { opacity: 0; transform: translateY(6px); } 3%, 22% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; } }
.dstrip-f b { display: block; font-size: 11px; margin-bottom: 6px; }
.dstrip-ring { width: 54px; height: 54px; border-radius: 50%; margin: 4px auto 8px; background: conic-gradient(#c9962a 0 33%, #ece5d8 33% 100%); display: grid; place-items: center; }
.dstrip-ring::after { content: "8/24"; width: 40px; height: 40px; border-radius: 50%; background: #fbf8f2; display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.dstrip-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.dstrip-tiles i { aspect-ratio: 1; border-radius: 6px; background: #1d1d1c; }
.dstrip-tiles i.d { background: #c9962a; }
.dstrip-f img { display: block; width: 100%; border-radius: 8px; object-fit: cover; }
.dstrip-f .f-big { height: 130px; }
.dstrip-pill { display: inline-block; margin-top: 7px; padding: 3px 7px; border-radius: 99px; background: #8a3b2a; color: #fff; font-size: 9px; }
.dstrip-two { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dstrip-two img { height: 90px; }
.dstrip-two span { display: block; font-size: 8.5px; color: #6b665c; margin-top: 2px; }
.dstrip-doc { background: #fff; border: 1px solid #e7dfd0; border-radius: 8px; padding: 7px; }
.dstrip-doc i { display: block; height: 5px; border-radius: 3px; background: #e7dfd0; margin: 5px 0; }
.dstrip-doc i.s { width: 60%; } .dstrip-doc i.g { background: #c9962a; width: 40%; }
.dstrip-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; counter-reset: ds; }
.dstrip-steps li { counter-increment: ds; padding: .45rem .6rem; border-radius: 12px; font-weight: 700; animation: dstripS 16s infinite; }
.dstrip-steps li::before { content: counter(ds); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: .45rem; border-radius: 50%; background: #1d1d1c; color: #d9a93a; font-size: .8rem; }
.dstrip-steps li:nth-child(2) { animation-delay: 4s; } .dstrip-steps li:nth-child(3) { animation-delay: 8s; } .dstrip-steps li:nth-child(4) { animation-delay: 12s; }
@keyframes dstripS { 0%, 24% { background: #f3e6c4; } 26%, 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) {
  .dstrip-f, .dstrip-steps li { animation: none; }
  .dstrip-f.f3 { opacity: 1; }
}
.wyg { margin: 1.4rem 0; }
.wyg h2 { margin: 0 0 .6rem; }
.wyg-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.wyg-card { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid #e7dfd0; border-radius: 14px; overflow: hidden; }
.wyg-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wyg-card b { display: block; padding: .45rem .5rem 0; font-size: .92rem; line-height: 1.2; }
.wyg-card small { display: block; padding: .1rem .5rem .55rem; color: #6b665c; font-size: .8rem; line-height: 1.25; }
.hf-h { margin: .8rem 0 .2rem; font-size: .95rem; color: #6b665c; }
.rp-list li { flex-wrap: wrap; }

/* ---- Walkthrough tools (t763-t766) ---- */
.wk-dock { position: fixed; left: 50%; transform: translateX(-50%); width: min(calc(100% - 20px), 460px); z-index: 110; background: rgba(251,248,242,.97); border: 1px solid #e2d8c4; border-radius: 18px; box-shadow: 0 8px 24px rgba(29,29,28,.16); padding: 6px; }
.wk-strip { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 2px 6px; -webkit-overflow-scrolling: touch; }
.wk-strip::-webkit-scrollbar { display: none; }
.wk-pill { flex: none; scroll-snap-align: start; border: 1px solid #d9d0bf; background: #fff; color: #1d1d1c; border-radius: 99px; padding: 0 .8rem; min-height: 36px; font: 600 .88rem/1 var(--sans, system-ui); white-space: nowrap; }
.wk-pill.is-on { background: #1d1d1c; color: #fff; border-color: #1d1d1c; }
.wk-pill.is-done:not(.is-on) { border-color: #c9962a; color: #7a5a14; }
.wk-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wk-acts button { appearance: none; border: 0; border-radius: 12px; background: #1d1d1c; color: #fff; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: .4rem; font: 700 .92rem/1 var(--sans, system-ui); }
.wk-acts svg { width: 20px; height: 20px; fill: none; stroke: #d9a93a; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
body.has-wk-dock { padding-bottom: var(--wk-h, 200px); }
html body.has-wk-dock.cl-skin .dash { padding-bottom: calc(var(--wk-h, 200px) + 1rem); }
body.has-wk-dock .cfl-phone-bar { display: none !important; }
.wk-root { position: fixed; inset: 0; z-index: 140; }
.wk-back { position: absolute; inset: 0; background: rgba(29,29,28,.35); }
.wk-sheet { position: absolute; left: 8px; right: 8px; bottom: calc(env(safe-area-inset-bottom, 0px) + 8px); max-width: 520px; margin: 0 auto; display: grid; gap: .55rem; max-height: 85vh; overflow-y: auto; background: #fffdf9; border: 1px solid #e2dbcf; border-radius: 24px; padding: 10px 14px 12px; box-shadow: 0 10px 40px rgba(29,29,28,.2); }
.wk-handle { width: 36px; height: 5px; border-radius: 3px; background: #b4ad9e; margin: 2px auto 4px; }
.wk-x { width: 100%; padding: .8rem; border: 0; border-radius: 14px; background: #ece5d8; color: #1d1d1c; font: 600 1rem/1 var(--sans, system-ui); }
.wk-sheet h2 { margin: 0; font-size: 1.15rem; }
.wk-sheet textarea, .wk-sheet input:not([type=file]), .wk-sheet select { width: 100%; }
.wk-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.wk-shoot { text-align: center; cursor: pointer; }
/* Add to Home Screen tip (t763-t766) */
.a2hs-tip { display: flex; gap: .6rem; align-items: flex-start; margin: .6rem 0; padding: .6rem .75rem; border-radius: 12px; background: #fff; border: 1px solid #e2d8c4; font-size: .92rem; }
.a2hs-tip p { margin: 0; flex: 1; }
.a2hs-tip button { flex: none; }

/* ===== Status colours (t771u): Good sage, Wear ochre, Repair/Urgent terracotta, white text.
   Ochre fills use a deepened #A8661C so white text passes 4.5:1 (the exact #C87D28 is only 3.3:1); the brand ochre stays on borders. ===== */
:root { --st-good: #2E6F40; --st-wear: #C87D28; --st-wear-fill: #A8661C; --st-repair: #B83A2D; --rep-slate: #1C2120; --rep-brass: #B08946; }
.st { display: inline-flex; align-items: center; padding: .08rem .5rem; border-radius: 999px; font-weight: 700; font-size: .85em; line-height: 1.35; color: #fff; white-space: nowrap; vertical-align: middle; }
html body .st-good, html body .badge-fixed, html body .badge-good { background: var(--st-good); color: #fff; border-color: var(--st-good); }
html body .st-wear, html body .badge-followup { background: var(--st-wear-fill); color: #fff; border-color: var(--st-wear); }
html body .st-repair, html body .badge-emergency, html body .badge-urgent, html body .badge-overdue { background: var(--st-repair); color: #fff; border-color: var(--st-repair); }
html body .cond { display: inline-flex; padding: .05rem .5rem; border-radius: 999px; font-weight: 700; font-size: .85em; color: #fff; background: #5c564e; text-transform: none; }
html body .cond.cond-good { background: var(--st-good); color: #fff; }
html body .cond.cond-fair { background: var(--st-wear-fill); color: #fff; }
html body .cond.cond-damaged { background: var(--st-repair); color: #fff; }
html body .pdi-pill.is-dmg, html body.cl-skin .pdi-pill.is-dmg { background: var(--st-repair); color: #fff; border-color: var(--st-repair); }
html body .pdi-pill.is-fixed, html body.cl-skin .pdi-pill.is-fixed { background: var(--st-good); color: #fff; border-color: var(--st-good); }
html body .pdi-status button.is-on[data-status="fixed"] { background: var(--st-good); color: #fff; border-color: var(--st-good); }
html body .dmg-btn { border-color: var(--st-repair); color: var(--st-repair); }
html body .dmg-btn.is-on { background: var(--st-repair); color: #fff; border-color: var(--st-repair); }
html body .hr-chip[data-cond="good"].is-on { background: var(--st-good); border-color: var(--st-good); color: #fff; }
html body .hr-chip[data-cond="fair"].is-on { background: var(--st-wear-fill); border-color: var(--st-wear); color: #fff; }
html body .hr-chip[data-cond="damaged"].is-on { background: var(--st-repair); border-color: var(--st-repair); color: #fff; }
@media print { .st, .cond, .badge, .pdi-pill, .rep-brand { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ===== Branded reports (t771u): slate banner, brass rule, ivory body. Report pages only. ===== */
.rep-brand { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; background: var(--rep-slate); color: #fff; padding: .85rem 1.1rem; border-radius: 12px 12px 0 0; border-bottom: 3px solid var(--rep-brass); margin: 0 0 1rem; }
.rep-brand-n { font-family: "Libre Baskerville", Georgia, serif; font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; color: #fff; }
.rep-brand-n b { color: var(--rep-brass); font-weight: 700; }
.rep-brand-t { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #e9dfc9; }
.rep-brand.print-only { display: none; }
@media print {
  .rep-brand, .rep-brand.print-only { display: flex !important; border-radius: 0; margin: 0 0 14pt; }
  body.rep-doc, body.rep-doc .ll-page, body.rep-doc main { background: #fffdf8 !important; }
}

/* ===== Polish (t780u) ===== */
/* "Open ›" stays on one line. */
.hr-card .hr-card-go { display: inline-flex; align-items: center; white-space: nowrap; flex: none; }
/* The last card or heading clears the floating home bar. */
@media screen and (max-width: 960px) {
  html body.cl-skin .dash { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  html body.has-phone-bar.cl-skin .dash { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px) + var(--pb-h, 48px)); }
  html body.has-wk-dock.cl-skin .dash { padding-bottom: calc(var(--wk-h, 200px) + 1rem + env(safe-area-inset-bottom, 0px)); }
}
/* A subtle 1px edge on white cards (drawn inside, so card and tile sizes don't change). */
html body.cl-skin .panel-c, html body.cl-skin .cl-tile-card, .ytd-card, .hr-card, .rp-list > li, .pp-sample, .a2hs-tip { outline: 1px solid #E4DFD5; outline-offset: -1px; }
@media print { html body.cl-skin .panel-c, .ytd-card, .hr-card { outline: 0; } }

/* ===== Quick capture + (t803u) ===== */
.cl-fab, .cl-fab-root { display: none; }
@media screen and (max-width: 960px) {
  body.cl-skin .cl-fab { display: inline-flex; align-items: center; justify-content: center; position: fixed; z-index: 125;
    right: max(18px, calc(50% - 230px + 6px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 12px + 64px + 12px);
    width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(29,29,28,.18); padding: 0; cursor: pointer;
    background: linear-gradient(145deg, #d8b97c, #b08a4a 60%, #9c773b); color: #1d1d1c;
    box-shadow: 0 6px 16px rgba(29,29,28,.28), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .15s; }
  body.cl-skin .cl-fab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
  body.cl-skin .cl-fab.is-open { transform: rotate(45deg); }
  body.cl-skin .cl-fab:focus-visible { outline: 3px solid #1d1d1c; outline-offset: 2px; }
  body.cl-skin .cl-fab-root:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 124; }
  .cl-fab-back { position: absolute; inset: 0; background: rgba(29,29,28,.25); }
  .cl-fab-menu { position: absolute; right: max(12px, calc(50% - 230px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 12px + 64px + 12px + 64px);
    display: grid; grid-template-columns: repeat(4, 76px); gap: 6px; padding: 10px; background: #fffdf9; border: 1px solid #E4DFD5; border-radius: 22px; box-shadow: 0 10px 30px rgba(29,29,28,.22); }
  .cl-fab-menu a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 2px; border-radius: 14px; text-decoration: none; color: #1d1d1c; font: 600 .78rem/1.15 var(--sans); text-align: center; }
  .cl-fab-menu a:active { background: #f3eee4; }
  .cl-fab-ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: #1d1d1c; color: #c4a36a; }
  .cl-fab-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  /* The last card clears both the dock and the +. */
  html body.has-cl-fab.cl-skin .dash { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  html body.has-cl-fab.has-phone-bar.cl-skin .dash { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px) + var(--pb-h, 48px)); }
  /* Guest "Saved on this device" bar sits above the dock: the + and its menu go above that bar. */
  body.has-phone-bar.cl-skin .cl-fab { bottom: calc(env(safe-area-inset-bottom, 0px) + var(--pb-h, 132px) + 12px); }
  body.has-phone-bar .cl-fab-menu { bottom: calc(env(safe-area-inset-bottom, 0px) + var(--pb-h, 132px) + 12px + 64px); }
  html body.has-cl-fab.has-phone-bar.cl-skin .dash { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px) + var(--pb-h, 48px) - 64px); }
  /* Walkthrough screens have their own capture dock. */
  body.has-wk-dock .cl-fab, body.has-wk-dock .cl-fab-root { display: none !important; }
}
@media print { .cl-fab, .cl-fab-root { display: none !important; } }

/* ===== Row text + right-side button (t809 bug fix) =====
   Text takes the room it needs (never squeezed into a narrow column or broken mid-word); the button sits at the right
   when it fits and wraps below the text on narrow screens. */
.hr-sm li { flex-wrap: wrap; }
.hr-sm li > div { flex: 1 1 11rem; min-width: 0; }
.hr-sm li > div b, .hr-sm li > div span { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.hr-sm li > .btn { flex: 0 0 auto; white-space: nowrap; margin-left: auto; }
/* t863 (STAGING): first-photo backup bar, same spot and look as the phone bar, with a dismiss button */
.cfl-phone-bar.cfl-photo-bar { display: flex; align-items: flex-start; gap: .5rem; text-align: left; }
.cfl-photo-bar .cfl-pb-x { flex: none; margin: -.2rem -.3rem 0 auto; width: 32px; height: 32px; border: 0; background: transparent; font-size: 1.35rem; line-height: 1; color: #5c4a35; cursor: pointer; border-radius: 50%; }
.cfl-photo-bar .cfl-pb-x:focus-visible { outline: 2px solid #8b5a32; }
/* t869u: one bar at a time — the static "Saved on this device only" box hides while the floating backup bar shows */
body.has-photo-bar #save-free { display: none !important; }

/* Simplify pass (Nov 27): first-run home shows only the setup steps; card text no longer breaks mid-word. */
body.is-setup-open #cl-home-body { display: none; }
.hr-card > div { flex: 1 1 auto; min-width: 0; }
.hr-card b, .hr-card span { line-height: 1.3; overflow-wrap: normal; word-break: normal; }
.wyg-card b, .dstrip-f b { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.link-row .hint { margin: .3rem 0 0; }
/* Walkthrough: "Jump to room" no longer cuts the room name to "Exteri"; label above, menu full width. */
html body.cl-skin .pdi-nav { flex-wrap: wrap; gap: .25rem .6rem; }
html body.cl-skin .pdi-nav select { flex: 1 1 100%; }
/* Tap targets: at least 44pt */
html body .cfl-menu-btn, .hdr-btn { min-height: 44px !important; }

/* ---- Section A fixes (Nov 27, Derek's review) ---- */
/* A2: big report titles shrink to fit and never break mid-word ("Walkthroug / h report"). */
@media screen { html body.rep-doc #report h1 { font-size: clamp(1.5rem, 7vw, 2.1rem); line-height: 1.15; overflow-wrap: normal; word-break: normal; hyphens: manual; }
  html body.rep-doc .rep-brand-t { overflow-wrap: normal; word-break: normal; hyphens: manual; } }
/* A3: "Delete this log / walkthrough" is a real outline button (red text), not grey text next to Finish and lock. */
html body .btn.btn-del { background: transparent; color: #8a2b22; border: 2px solid #8a2b22; }
html body .btn.btn-del:hover, html body .btn.btn-del:focus-visible { background: #8a2b22; color: #fff; }
#lock-box .btn { margin: .25rem .4rem .25rem 0; }
/* A4: the brand never runs under the Menu button on small iPhones. */
@media (max-width: 399.98px) {
  .cl-top .cl-brand { padding-right: 64px; letter-spacing: .08em; min-width: 0; }
  .cl-top .cl-brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-header .logo { min-width: 0; max-width: calc(100% - 72px); }
  .app-header .logo-text { min-width: 0; }
  .app-header .logo-text > span { display: none; }
  .app-header .logo-text strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* A6: setup steps are plain numbered text, not button-like pills; example text is clearly lighter than real input. */
html body .setup-steps { gap: .3rem 1rem; }
html body .setup-steps li, html body .setup-steps li.is-on, html body .setup-steps li.is-done { padding: 0; border-radius: 0; background: none; color: #6b6257; font-weight: 600; font-size: .9rem; }
html body .setup-steps li.is-on { color: #1d1d1c; font-weight: 800; }
html body .setup-steps .setup-n { display: inline-block; min-width: 1.1em; font-weight: 800; }
html body .setup-steps li.is-done .setup-n { color: #2f6b3a; }
html body .setup-card .lbl { display: block; margin: 0 0 .3rem; font-weight: 700; }
html body .setup-card input:not([type=checkbox]):not([type=radio]) { display: block; width: 100%; box-sizing: border-box; min-height: 46px; padding: .65rem .8rem; font-size: 1rem; color: #1d1d1c; background: #fff; border: 1px solid #d9d1c3; border-radius: 10px; }
html body .setup-card .grid2 { display: grid; grid-template-columns: 1fr; gap: .8rem; }
html body .setup-card input::placeholder, html body .setup-card textarea::placeholder { color: #b3aa9c; opacity: 1; font-style: italic; }
/* A7: long pages end above the tab bar and the + button; the + hides while typing in a field. */
@media screen and (max-width: 960px) {
  html body.has-cl-fab.cl-skin main:not(.dash) { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  html body.cl-typing .cl-fab, html body.cl-typing .cl-fab-root { display: none !important; }
}

/* ---- Section B: walkthrough simplification (Nov 27) ---- */
/* One bottom bar: Photo / Note / Receipt live behind a single + above the tab bar (no room strip, no second bar). */
html body .wk-dock.wk-dock-plus { left: auto; right: max(18px, calc(50% - 230px + 6px)); transform: none; width: auto; background: none; border: 0; box-shadow: none; padding: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.wk-dock-plus > * { pointer-events: auto; }
.wk-plus { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(29,29,28,.18); padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #d8b97c, #b08a4a 60%, #9c773b); color: #1d1d1c; box-shadow: 0 8px 20px rgba(29,29,28,.25); }
.wk-plus svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; transition: transform .15s; }
.wk-plus[aria-expanded=true] svg { transform: rotate(45deg); }
.wk-plus:focus-visible { outline: 3px solid #1d1d1c; outline-offset: 2px; }
.wk-plus-menu { width: 210px; background: #fffdf8; border: 1px solid #E4DFD5; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 8px; display: grid; gap: 6px; }
.wk-plus-menu[hidden] { display: none; }
.wk-plus-h { margin: 2px 6px 2px; font: 800 .75rem/1.2 var(--sans, system-ui); letter-spacing: .08em; text-transform: uppercase; color: #6b5a45; }
.wk-plus-menu button { appearance: none; border: 0; border-radius: 12px; background: #1d1d1c; color: #fff; min-height: 48px; display: flex; align-items: center; gap: .6rem; padding: 0 .9rem; font: 700 1rem/1 var(--sans, system-ui); cursor: pointer; }
.wk-plus-menu svg { width: 22px; height: 22px; fill: none; stroke: #d9a93a; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* One room at a time: "Room 3 of 24" line; parts as simple chips with one selected style. */
.pdi-step { margin: 0 0 .6rem; font-size: 1rem; color: #3c3a36; }
.pdi-step span { color: #6b6257; font-weight: 600; }
html body .pdi-subs { display: flex; flex-wrap: nowrap; gap: .4rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: .6rem 0; padding-bottom: 2px; }
html body .pdi-subs::-webkit-scrollbar { display: none; }
.pdi-sub-chip { flex: none; white-space: nowrap; }
.pdi-sub-chip { appearance: none; border: 1px solid #d9d1c3; background: #fff; color: #1d1d1c; border-radius: 999px; padding: .45rem .85rem; min-height: 40px; font: 600 .95rem/1.1 var(--sans, system-ui); cursor: pointer; }
.pdi-sub-chip.is-on { background: #1d1d1c; border-color: #1d1d1c; color: #fff; }
html body .room-done-row { margin: 1rem 0 .5rem; }
html body .pdi-pn { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
html.is-native-app [data-web-only] { display: none !important; } /* D: web-only legal/billing bits never show in the iPhone app */

/* ---- Section C: look and feel (Nov 27) ---- */
/* One main-button colour: maroon (.btn-amber) for the main action; black buttons become outline buttons, except a form's
   own submit button, which is its main action and turns maroon. Dark-background sheets keep their own styles. */
html body.cl-skin .btn.btn-ink:not([type=submit]):not(.scan-actions .btn-ink) { background: transparent; color: #1d1d1c; border: 2px solid #1d1d1c; box-shadow: none; }
html body.cl-skin .btn.btn-ink:not([type=submit]):not(.scan-actions .btn-ink):hover { background: #1d1d1c; color: #fff; }
html body.cl-skin button[type=submit].btn.btn-ink { background: var(--amber, #8b534a); border-color: var(--amber, #8b534a); color: #fff; }
/* Sample / guest banner: one short line, not a tall block. */
.guest-banner { flex-wrap: nowrap; justify-content: space-between; text-align: left; font-size: .85rem; padding-bottom: .22rem; }
.guest-banner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* "See what you get" cards: a sideways row on narrow phones so titles never break mid-word. */
@media (max-width: 419.98px) {
  .wyg-row { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 4px; }
  .wyg-row::-webkit-scrollbar { display: none; }
  .wyg-card { flex: 0 0 9.5rem; scroll-snap-align: start; }
}
/* /record before the first walkthrough: a short explainer instead of a 0% ring. */
.hr-score-empty h2 { margin: 0 0 .3rem; }
.hr-score-empty p { margin: 0 0 .6rem; color: #4a4640; }
