/* PropertyProof components — copied from design-system/project/components/bundle.css; keep the two the same. */

/* PropertyProof components. Every value comes from tokens.css; nothing here sets a colour of its own except the
   photo stand-in (.pp-photo), which plays a photograph and is the same in every theme. */

.pp-preview-unused { margin: 0; padding: var(--space-5); background: var(--canvas); color: var(--ink); font-family: var(--font-text); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
.pp-preview * { box-sizing: border-box; }
.pp-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.pp-stack { display: flex; flex-direction: column; gap: var(--space-3); }
.pp-phone { width: 100%; max-width: 390px; }
.pp-num { font-variant-numeric: tabular-nums; }
.pp-ic { width: var(--icon); height: var(--icon); flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pp-ic--sm { width: var(--icon-sm); height: var(--icon-sm); stroke-width: 2.25; }
:where(.pp-preview) :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ── Wordmark ─────────────────────────────────────────────────────────────── */
.pp-wordmark { display: inline-flex; align-items: center; gap: 0.18em; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.pp-wordmark__chip { display: inline-flex; align-items: center; padding: 0.12em 0.26em 0.16em; border-radius: 0.28em; background: linear-gradient(135deg, var(--grad-start), var(--grad-end)); color: var(--on-brand); }
.pp-wordmark--on-night { color: var(--on-night); }
.pp-wordmark--lg { font-size: 56px; }
.pp-wordmark--sm { font-size: 20px; }

/* ── Button ───────────────────────────────────────────────────────────────── */
.pp-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-height); padding: 0 var(--space-6); border: 1px solid transparent; border-radius: var(--radius-pill); font-family: var(--font-text); font-size: 16px; line-height: 20px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .12s ease, background-color .12s ease; -webkit-tap-highlight-color: transparent; }
.pp-btn:active { transform: scale(0.98); }
.pp-btn--primary { background: linear-gradient(135deg, var(--grad-start), var(--grad-end)); color: var(--on-brand); box-shadow: var(--shadow-brand); }
.pp-btn--primary:active { background: var(--brand-strong); }
.pp-btn--secondary { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.pp-btn--quiet { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.pp-btn--danger { background: var(--poor-soft); color: var(--poor); border-color: var(--poor); }
.pp-btn--block { display: flex; width: 100%; }
.pp-btn--icon { width: var(--control-height); padding: 0; }
.pp-btn[disabled], .pp-btn[aria-disabled="true"] { background: var(--surface-sunken); color: var(--ink-muted); border-color: var(--line); box-shadow: none; cursor: not-allowed; transform: none; }

/* ── Status badge ─────────────────────────────────────────────────────────── */
.pp-badge { display: inline-flex; align-items: center; gap: var(--space-1); height: 26px; padding: 0 10px 0 8px; border-radius: var(--radius-pill); font-family: var(--font-text); font-size: 11px; line-height: 16px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; background: var(--surface-sunken); color: var(--ink-secondary); }
.pp-badge--good { background: var(--good-soft); color: var(--good); }
.pp-badge--fair { background: var(--fair-soft); color: var(--fair); }
.pp-badge--poor { background: var(--poor-soft); color: var(--poor); }
.pp-badge--brand { background: var(--brand-soft); color: var(--brand); }
.pp-badge--plain { background: none; padding: 0; height: auto; }

/* ── Condition toggle ─────────────────────────────────────────────────────── */
.pp-toggle { display: grid; grid-template-columns: repeat(var(--pp-options, 4), 1fr); gap: var(--space-1); padding: var(--space-1); min-height: var(--control-height); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface-sunken); margin: 0; }
.pp-toggle legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pp-toggle__opt { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 var(--space-2); border-radius: var(--radius-pill); font-size: 15px; line-height: 20px; font-weight: 700; color: var(--ink-secondary); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pp-toggle__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pp-toggle__opt .pp-ic { display: none; }
.pp-toggle__opt:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.pp-toggle__opt:has(input:checked) .pp-ic { display: block; }
.pp-toggle__opt--good:has(input:checked) { background: var(--good-soft); color: var(--good); box-shadow: inset 0 0 0 1.5px var(--good); }
.pp-toggle__opt--fair:has(input:checked) { background: var(--fair-soft); color: var(--fair); box-shadow: inset 0 0 0 1.5px var(--fair); }
.pp-toggle__opt--poor:has(input:checked) { background: var(--poor-soft); color: var(--poor); box-shadow: inset 0 0 0 1.5px var(--poor); }
.pp-toggle__opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ── Stepper ──────────────────────────────────────────────────────────────── */
.pp-stepper { display: flex; list-style: none; margin: 0; padding: 0; }
.pp-step { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.pp-step + .pp-step::before { content: ""; position: absolute; top: 17px; right: calc(50% + 24px); left: calc(-50% + 24px); border-top: 2px dashed var(--line-strong); }
.pp-step--done + .pp-step::before, .pp-step--done + .pp-step--done::before { border-top-style: solid; border-color: var(--brand); }
.pp-step__dot { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink-muted); font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.pp-step__label { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pp-step--done .pp-step__dot { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }
.pp-step--done .pp-step__label { color: var(--ink-secondary); }
.pp-step--current .pp-step__dot { background: linear-gradient(135deg, var(--grad-start), var(--grad-end)); border-color: transparent; color: var(--on-brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.pp-step--current .pp-step__label { color: var(--brand); font-weight: 800; }

/* ── Room progress (sticky) ───────────────────────────────────────────────── */
.pp-progress { position: sticky; top: 0; z-index: 2; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.pp-progress__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.pp-progress__room { font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }
.pp-progress__count { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-secondary); font-variant-numeric: tabular-nums; }
.pp-bar { height: 8px; border-radius: var(--radius-pill); background: var(--surface-sunken); overflow: hidden; }
.pp-bar__fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--grad-start), var(--grad-end)); }
.pp-bar--done .pp-bar__fill { background: var(--good); }
.pp-progress__missed { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--poor); text-decoration: none; }
.pp-rooms { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.pp-roomchip { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-secondary); font-size: 14px; font-weight: 600; white-space: nowrap; }
.pp-roomchip--done { border-color: var(--good); color: var(--good); background: var(--good-soft); }
.pp-roomchip--current { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); font-weight: 800; }

/* ── Card ─────────────────────────────────────────────────────────────────── */
.pp-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); color: var(--ink); }
.pp-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.pp-card__title { margin: 0; font-size: 17px; line-height: 24px; font-weight: 700; }
.pp-card__meta { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-secondary); }
.pp-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-secondary); }
.pp-card--brand { background: var(--brand-soft); border-color: var(--brand-line); box-shadow: none; }

/* ── Hero card ────────────────────────────────────────────────────────────── */
.pp-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--grad-start), var(--grad-end)); color: var(--on-brand); box-shadow: var(--shadow-brand); }
.pp-hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.pp-hero__head { display: flex; gap: var(--space-3); align-items: flex-start; }
.pp-hero__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.34); }
.pp-hero__title { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 600; }
.pp-hero__text { margin: 2px 0 0; font-size: 14px; line-height: 20px; font-weight: 500; opacity: 0.92; }
.pp-hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); position: relative; z-index: 1; }
.pp-btn--glass { min-height: var(--touch-min); padding: 0 var(--space-4); background: rgba(255, 255, 255, 0.12); color: var(--on-brand); border: 1.5px solid rgba(255, 255, 255, 0.5); font-size: 15px; }

/* ── Stat overview ────────────────────────────────────────────────────────── */
.pp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.pp-stat__value { display: block; font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pp-stat__label { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-secondary); }
.pp-overline { margin: 0; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--ink-secondary); }

/* ── Action tile ──────────────────────────────────────────────────────────── */
.pp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.pp-tile { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6); min-height: 132px; padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none; font-size: 16px; line-height: 20px; font-weight: 700; }
.pp-tile__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand); }
.pp-tile--primary { background: linear-gradient(135deg, var(--grad-start), var(--grad-end)); color: var(--on-brand); border-color: transparent; box-shadow: var(--shadow-brand); }
.pp-tile--primary .pp-tile__icon { background: rgba(255, 255, 255, 0.18); color: var(--on-brand); }
.pp-tile__count { font-size: 13px; font-weight: 600; color: var(--ink-secondary); }
.pp-tile--primary .pp-tile__count { color: var(--on-brand); opacity: 0.9; }

/* ── Photo stand-in and markup ────────────────────────────────────────────── */
.pp-photo { position: relative; flex: none; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; background: var(--photo-frame); }
.pp-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(165deg, #d9d2c6 0%, #b7ad9f 48%, #8e8478 49%, #a39889 100%); }
.pp-photo--b::before { background: linear-gradient(200deg, #e6e1d8 0%, #c9c0b2 60%, #6f6559 61%, #85796b 100%); }
.pp-photo--c::before { background: linear-gradient(120deg, #cfd6d9 0%, #a8b2b6 55%, #ececec 56%, #d6d6d4 100%); }
.pp-photo__mark { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--poor); stroke-width: 3; stroke-linecap: round; }
.pp-photo__time { position: absolute; left: 4px; bottom: 4px; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.62); color: #fff; font-family: var(--font-data); font-size: 10px; line-height: 14px; }
.pp-photo--lg { width: 100%; height: 180px; border-radius: var(--radius-md); }

/* ── Checklist item ───────────────────────────────────────────────────────── */
.pp-item__desc { margin: 0; color: var(--ink-secondary); font-size: 15px; line-height: 22px; }
.pp-media { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; }
.pp-addbtn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: none; width: 72px; height: 72px; border-radius: var(--radius-sm); border: 1.5px dashed var(--line-strong); background: var(--surface); color: var(--brand); font-size: 12px; line-height: 16px; font-weight: 700; cursor: pointer; }
.pp-voice { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--surface-sunken); }
.pp-voice__play { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--brand); color: var(--on-brand); border: 0; }
.pp-voice__text { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-secondary); min-width: 0; }
.pp-voice__len { font-family: var(--font-data); font-size: 12px; color: var(--ink-muted); flex: none; }

/* ── Requirement list ─────────────────────────────────────────────────────── */
.pp-reqs { list-style: none; margin: 0; padding: 0 var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.pp-req { display: flex; align-items: center; gap: var(--space-3); min-height: 64px; padding: var(--space-3) 0; }
.pp-req + .pp-req { border-top: 1px solid var(--line); }
.pp-req__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand); }
.pp-req__body { flex: 1; min-width: 0; }
.pp-req__label { display: block; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-secondary); }
.pp-req__value { display: block; font-size: 15px; line-height: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-req__value--empty { color: var(--ink-muted); font-weight: 500; }

/* ── Bottom navigation ────────────────────────────────────────────────────── */
.pp-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-1); padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); box-shadow: var(--shadow-raised); }
.pp-nav__item { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-width: var(--touch-min); height: var(--touch-min); padding: 0 12px; border-radius: var(--radius-pill); color: var(--ink-muted); text-decoration: none; font-size: 15px; font-weight: 700; }
.pp-nav__item[aria-current="page"] { background: linear-gradient(135deg, var(--grad-start), var(--grad-end)); color: var(--on-brand); padding: 0 18px; }
.pp-nav__dot { position: absolute; top: 8px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--poor); box-shadow: 0 0 0 2px var(--surface); }
.pp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Capture bar (thumb zone) ─────────────────────────────────────────────── */
.pp-capture { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: var(--shadow-raised); }
.pp-capture__info { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); font-size: 14px; font-weight: 600; color: var(--ink-secondary); }
.pp-capture__rec { display: inline-flex; align-items: center; gap: 6px; color: var(--poor); font-family: var(--font-data); font-size: 13px; }
.pp-capture__rec::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--poor); }
.pp-capture__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-3); }
.pp-capture__side { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: var(--touch-min); background: none; border: 0; color: var(--ink); font: inherit; font-size: 12px; line-height: 16px; font-weight: 700; cursor: pointer; }
.pp-capture__side .pp-ic { width: 26px; height: 26px; }
.pp-shutter { width: var(--shutter); height: var(--shutter); border-radius: 50%; border: 4px solid var(--surface); background: linear-gradient(135deg, var(--grad-start), var(--grad-end)); box-shadow: 0 0 0 2px var(--brand), var(--shadow-brand); color: var(--on-brand); display: grid; place-items: center; cursor: pointer; }
.pp-shutter .pp-ic { width: 30px; height: 30px; }

/* ── Text field ───────────────────────────────────────────────────────────── */
.pp-field { display: flex; flex-direction: column; gap: 6px; }
.pp-field__label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.pp-input { width: 100%; min-height: var(--control-height); padding: 0 var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font-family: var(--font-text); font-size: 16px; line-height: 24px; }
.pp-input::placeholder { color: var(--ink-muted); }
.pp-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pp-input--reading { font-family: var(--font-data); font-size: 20px; letter-spacing: 0.02em; }
.pp-field__help { font-size: 13px; line-height: 18px; color: var(--ink-secondary); }
.pp-field--error .pp-input { border-color: var(--poor); border-width: 1.5px; }
.pp-field--error .pp-field__help { color: var(--poor); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }

/* ── Activity feed ────────────────────────────────────────────────────────── */
.pp-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pp-feed__row { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; }
.pp-feed__row + .pp-feed__row { border-top: 1px solid var(--line); }
.pp-feed__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink-secondary); }
.pp-feed__icon--good { background: var(--good-soft); color: var(--good); }
.pp-feed__icon--poor { background: var(--poor-soft); color: var(--poor); }
.pp-feed__text { flex: 1; min-width: 0; margin: 0; font-size: 15px; line-height: 22px; }
.pp-feed__time { flex: none; font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* ── Evidence seal ────────────────────────────────────────────────────────── */
.pp-seal { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--brand-line); }
.pp-seal__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--brand-soft); color: var(--brand); }
.pp-seal__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pp-seal__title { margin: 0; font-size: 16px; line-height: 22px; font-weight: 700; }
.pp-seal__hash { margin: 0; font-family: var(--font-data); font-size: 13px; line-height: 20px; color: var(--ink-secondary); overflow-wrap: anywhere; }

/* ── Website hero ─────────────────────────────────────────────────────────── */
.pp-site { background: var(--night); color: var(--on-night); border-radius: var(--radius-xl); overflow: hidden; position: relative; }
.pp-site::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -200px; border-radius: 50%; background: radial-gradient(circle, var(--grad-start), rgba(0, 0, 0, 0) 68%); opacity: 0.55; pointer-events: none; }
.pp-site__bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-8); }
.pp-site__links { display: flex; gap: var(--space-6); font-size: 15px; font-weight: 600; color: var(--night-muted); }
.pp-site__body { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; padding: var(--space-8) var(--space-8) var(--space-16); }
.pp-site__title { margin: 0; font-family: var(--font-display); font-size: 56px; line-height: 60px; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.pp-site__title em { font-style: normal; color: var(--night-muted); }
.pp-site__lead { margin: var(--space-4) 0 var(--space-6); max-width: 34em; font-size: 18px; line-height: 28px; color: var(--night-muted); }
.pp-btn--on-night { background: transparent; color: var(--on-night); border-color: var(--night-muted); }
@media (max-width: 760px) {
  .pp-site__body { grid-template-columns: 1fr; padding: var(--space-6) var(--space-5) var(--space-8); }
  .pp-site__bar { padding: var(--space-4) var(--space-5); }
  .pp-site__links { display: none; }
  .pp-site__title { font-size: 40px; line-height: 44px; }
}
